@jupyterlab/metadataform-extension 4.0.0-alpha.16
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/package.json +61 -0
- package/schema/metadataforms.json +103 -0
- package/style/index.css +10 -0
- package/style/index.js +10 -0
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jupyterlab/metadataform-extension",
|
|
3
|
+
"version": "4.0.0-alpha.16",
|
|
4
|
+
"description": "A helper to build form for metadata",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"jupyter",
|
|
7
|
+
"jupyterlab",
|
|
8
|
+
"jupyterlab-extension"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/jupyterlab/jupyterlab/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/jupyterlab/jupyterlab.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "BSD-3-Clause",
|
|
19
|
+
"author": "Project Jupyter",
|
|
20
|
+
"sideEffects": [
|
|
21
|
+
"style/**/*"
|
|
22
|
+
],
|
|
23
|
+
"main": "lib/index.js",
|
|
24
|
+
"types": "lib/index.d.ts",
|
|
25
|
+
"style": "style/index.css",
|
|
26
|
+
"directories": {
|
|
27
|
+
"lib": "lib/"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
|
|
31
|
+
"schema/*.json",
|
|
32
|
+
"style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
|
|
33
|
+
"style/index.js"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc",
|
|
37
|
+
"clean": "rimraf lib && rimraf tsconfig.tsbuildinfo",
|
|
38
|
+
"watch": "tsc -w --listEmittedFiles"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@jupyterlab/application": "^4.0.0-alpha.16",
|
|
42
|
+
"@jupyterlab/metadataform": "^4.0.0-alpha.16",
|
|
43
|
+
"@jupyterlab/notebook": "^4.0.0-alpha.16",
|
|
44
|
+
"@jupyterlab/settingregistry": "^4.0.0-alpha.16",
|
|
45
|
+
"@jupyterlab/translation": "^4.0.0-alpha.16",
|
|
46
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.31",
|
|
47
|
+
"@lumino/coreutils": "^2.0.0-alpha.6"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"rimraf": "~3.0.0",
|
|
51
|
+
"typescript": "~4.7.3"
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public"
|
|
55
|
+
},
|
|
56
|
+
"jupyterlab": {
|
|
57
|
+
"extension": true,
|
|
58
|
+
"schemaDir": "schema"
|
|
59
|
+
},
|
|
60
|
+
"styleModule": "style/index.js"
|
|
61
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"title": "Metadata Form",
|
|
4
|
+
"description": "Settings of the metadata form extension.",
|
|
5
|
+
"jupyter.lab.metadataforms": [],
|
|
6
|
+
"jupyter.lab.transform": true,
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"metadataforms": {
|
|
10
|
+
"items": {
|
|
11
|
+
"$ref": "#/definitions/metadataForm"
|
|
12
|
+
},
|
|
13
|
+
"type": "array",
|
|
14
|
+
"default": []
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"definitions": {
|
|
18
|
+
"metadataForm": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"id": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "The section ID"
|
|
24
|
+
},
|
|
25
|
+
"metadataSchema": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"items": {
|
|
28
|
+
"$ref": "#/definitions/metadataSchema"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"uiSchema": {
|
|
32
|
+
"type": "object"
|
|
33
|
+
},
|
|
34
|
+
"metadataOptions": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"items": {
|
|
37
|
+
"$ref": "#/definitions/metadataOptions"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"label": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "The section label"
|
|
43
|
+
},
|
|
44
|
+
"rank": {
|
|
45
|
+
"type": "integer",
|
|
46
|
+
"description": "The rank of the section in the right panel"
|
|
47
|
+
},
|
|
48
|
+
"showModified": {
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"description": "Whether to show that values have been modified from defaults"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": ["id", "metadataSchema"]
|
|
54
|
+
},
|
|
55
|
+
"metadataSchema": {
|
|
56
|
+
"properties": {
|
|
57
|
+
"properties": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"description": "The property set up by extension",
|
|
60
|
+
"properties": {
|
|
61
|
+
"title": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"description": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"type": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"type": "object",
|
|
74
|
+
"required": ["properties"]
|
|
75
|
+
},
|
|
76
|
+
"metadataOptions": {
|
|
77
|
+
"properties": {
|
|
78
|
+
"customWidget": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"customField": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"metadataLevel": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"enum": ["cell", "notebook"],
|
|
87
|
+
"default": "cell"
|
|
88
|
+
},
|
|
89
|
+
"cellTypes": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"enum": ["code", "markdown", "raw"]
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"writeDefault": {
|
|
97
|
+
"type": "boolean"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"type": "object"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
package/style/index.css
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*-----------------------------------------------------------------------------
|
|
2
|
+
| Copyright (c) Jupyter Development Team.
|
|
3
|
+
| Distributed under the terms of the Modified BSD License.
|
|
4
|
+
|----------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
/* This file was auto-generated by ensurePackage() in @jupyterlab/buildutils */
|
|
7
|
+
@import url('~@jupyterlab/ui-components/style/index.css');
|
|
8
|
+
@import url('~@jupyterlab/application/style/index.css');
|
|
9
|
+
@import url('~@jupyterlab/notebook/style/index.css');
|
|
10
|
+
@import url('~@jupyterlab/metadataform/style/index.css');
|
package/style/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*-----------------------------------------------------------------------------
|
|
2
|
+
| Copyright (c) Jupyter Development Team.
|
|
3
|
+
| Distributed under the terms of the Modified BSD License.
|
|
4
|
+
|----------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
/* This file was auto-generated by ensurePackage() in @jupyterlab/buildutils */
|
|
7
|
+
import '@jupyterlab/ui-components/style/index.js';
|
|
8
|
+
import '@jupyterlab/application/style/index.js';
|
|
9
|
+
import '@jupyterlab/notebook/style/index.js';
|
|
10
|
+
import '@jupyterlab/metadataform/style/index.js';
|