Skip to content

Commit 62499b0

Browse files
committed
chore: add custom elements manifests
1 parent 042bdd4 commit 62499b0

File tree

2 files changed

+252
-0
lines changed

2 files changed

+252
-0
lines changed

custom-elements.json

Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
{
2+
"schemaVersion": "1.0.0",
3+
"readme": "",
4+
"modules": [
5+
{
6+
"kind": "javascript-module",
7+
"path": "lib/json-schema-form.ts",
8+
"declarations": [
9+
{
10+
"kind": "class",
11+
"description": "",
12+
"name": "Jsf",
13+
"members": [
14+
{
15+
"kind": "field",
16+
"name": "schema",
17+
"type": {
18+
"text": "JSONSchema7"
19+
},
20+
"default": "{}",
21+
"attribute": "schema"
22+
},
23+
{
24+
"kind": "field",
25+
"name": "data",
26+
"type": {
27+
"text": "any"
28+
},
29+
"default": "{}",
30+
"attribute": "data"
31+
},
32+
{
33+
"kind": "field",
34+
"name": "uiSchema",
35+
"type": {
36+
"text": "UiSchema"
37+
},
38+
"default": "{}",
39+
"attribute": "uiSchema"
40+
},
41+
{
42+
"kind": "field",
43+
"name": "ui",
44+
"type": {
45+
"text": "any"
46+
},
47+
"privacy": "private",
48+
"default": "{}"
49+
},
50+
{
51+
"kind": "field",
52+
"name": "onFormSubmit",
53+
"type": {
54+
"text": "(newData: any, valid: boolean) => void"
55+
}
56+
},
57+
{
58+
"kind": "field",
59+
"name": "onDataChange",
60+
"type": {
61+
"text": "(newData: any) => void"
62+
}
63+
},
64+
{
65+
"kind": "field",
66+
"name": "experimental",
67+
"type": {
68+
"text": "FeatureFlags | undefined"
69+
},
70+
"default": "{}",
71+
"attribute": "experimental"
72+
},
73+
{
74+
"kind": "field",
75+
"name": "_dig",
76+
"privacy": "protected"
77+
},
78+
{
79+
"kind": "method",
80+
"name": "_setToValue",
81+
"privacy": "protected",
82+
"parameters": [
83+
{
84+
"name": "obj",
85+
"type": {
86+
"text": "any"
87+
}
88+
},
89+
{
90+
"name": "value",
91+
"type": {
92+
"text": "any"
93+
}
94+
},
95+
{
96+
"name": "path",
97+
"type": {
98+
"text": "Path"
99+
}
100+
}
101+
]
102+
},
103+
{
104+
"kind": "method",
105+
"name": "_handleChange",
106+
"privacy": "protected",
107+
"parameters": [
108+
{
109+
"name": "path",
110+
"type": {
111+
"text": "Path"
112+
}
113+
},
114+
{
115+
"name": "value",
116+
"type": {
117+
"text": "unknown"
118+
}
119+
}
120+
]
121+
},
122+
{
123+
"kind": "method",
124+
"name": "_updateUi",
125+
"privacy": "protected",
126+
"parameters": [
127+
{
128+
"name": "path",
129+
"type": {
130+
"text": "Path"
131+
}
132+
},
133+
{
134+
"name": "value",
135+
"type": {
136+
"text": "unknown"
137+
}
138+
}
139+
]
140+
}
141+
],
142+
"attributes": [
143+
{
144+
"name": "schema",
145+
"type": {
146+
"text": "JSONSchema7"
147+
},
148+
"default": "{}",
149+
"fieldName": "schema"
150+
},
151+
{
152+
"name": "data",
153+
"type": {
154+
"text": "any"
155+
},
156+
"default": "{}",
157+
"fieldName": "data"
158+
},
159+
{
160+
"name": "uiSchema",
161+
"type": {
162+
"text": "UiSchema"
163+
},
164+
"default": "{}",
165+
"fieldName": "uiSchema"
166+
},
167+
{
168+
"name": "experimental",
169+
"type": {
170+
"text": "FeatureFlags | undefined"
171+
},
172+
"default": "{}",
173+
"fieldName": "experimental"
174+
}
175+
],
176+
"superclass": {
177+
"name": "LitElement",
178+
"package": "lit"
179+
},
180+
"tagName": "json-schema-form",
181+
"customElement": true
182+
}
183+
],
184+
"exports": [
185+
{
186+
"kind": "js",
187+
"name": "Jsf",
188+
"declaration": {
189+
"name": "Jsf",
190+
"module": "lib/json-schema-form.ts"
191+
}
192+
},
193+
{
194+
"kind": "custom-element-definition",
195+
"name": "json-schema-form",
196+
"declaration": {
197+
"name": "Jsf",
198+
"module": "lib/json-schema-form.ts"
199+
}
200+
}
201+
]
202+
}
203+
]
204+
}

custom-elements.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# `lib/json-schema-form.ts`:
2+
3+
## class: `Jsf`, `json-schema-form`
4+
5+
### Superclass
6+
7+
| Name | Module | Package |
8+
| ------------ | ------ | ------- |
9+
| `LitElement` | | lit |
10+
11+
### Fields
12+
13+
| Name | Privacy | Type | Default | Description | Inherited From |
14+
| -------------- | --------- | ---------------------------------------- | ------- | ----------- | -------------- |
15+
| `schema` | | `JSONSchema7` | `{}` | | |
16+
| `data` | | `any` | `{}` | | |
17+
| `uiSchema` | | `UiSchema` | `{}` | | |
18+
| `ui` | private | `any` | `{}` | | |
19+
| `onFormSubmit` | | `(newData: any, valid: boolean) => void` | | | |
20+
| `onDataChange` | | `(newData: any) => void` | | | |
21+
| `experimental` | | `FeatureFlags \| undefined` | `{}` | | |
22+
| `_dig` | protected | | | | |
23+
24+
### Methods
25+
26+
| Name | Privacy | Description | Parameters | Return | Inherited From |
27+
| --------------- | --------- | ----------- | ---------------------------------- | ------ | -------------- |
28+
| `_setToValue` | protected | | `obj: any, value: any, path: Path` | | |
29+
| `_handleChange` | protected | | `path: Path, value: unknown` | | |
30+
| `_updateUi` | protected | | `path: Path, value: unknown` | | |
31+
32+
### Attributes
33+
34+
| Name | Field | Inherited From |
35+
| -------------- | ------------ | -------------- |
36+
| `schema` | schema | |
37+
| `data` | data | |
38+
| `uiSchema` | uiSchema | |
39+
| `experimental` | experimental | |
40+
41+
<hr/>
42+
43+
## Exports
44+
45+
| Kind | Name | Declaration | Module | Package |
46+
| --------------------------- | ------------------ | ----------- | ----------------------- | ------- |
47+
| `js` | `Jsf` | Jsf | lib/json-schema-form.ts | |
48+
| `custom-element-definition` | `json-schema-form` | Jsf | lib/json-schema-form.ts | |

0 commit comments

Comments
 (0)