Skip to content

Commit 52d8773

Browse files
committed
chore: setup manifest for mono-repo
1 parent 25fd635 commit 52d8773

21 files changed

+1244
-93
lines changed

custom-elements-manifest.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { generateCustomData } from 'cem-plugin-vs-code-custom-data-generator';
1+
// import { generateCustomData } from 'cem-plugin-vs-code-custom-data-generator';
22

33
export default {
4-
plugins: [generateCustomData()],
4+
// FIXME: Adapt for mono-repo structure
5+
// plugins: [generateCustomData({ outdir: 'packages/form' })],
56
};

custom-elements.md

-48
This file was deleted.

packages/carbon/README.md

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# JSON Schema Form Element — ***Carbon*** edition
2+
3+
See the [documentation](../../README.md).
4+
5+
---
6+
7+
# `packages/carbon/src/form.def.ts`:
8+
9+
## Exports
10+
11+
| Kind | Name | Declaration | Module | Package |
12+
| --------------------------- | ------------ | ----------- | ---------------------------- | ------- |
13+
| `custom-element-definition` | `jsf-carbon` | JsfCarbon | /packages/carbon/src/form.js | |
14+
15+
# `packages/carbon/src/form.ts`:
16+
17+
## class: `JsfCarbon`, `jsf-carbon`
18+
19+
### Superclass
20+
21+
| Name | Module | Package |
22+
| ----- | ------ | ------------------ |
23+
| `Jsf` | | @j\_c/jsfe\_\_form |
24+
25+
### Fields
26+
27+
| Name | Privacy | Type | Default | Description | Inherited From |
28+
| ------------- | ------- | ------- | ---------- | ----------- | -------------- |
29+
| `widgets` | public | | `widgets` | | |
30+
| `styleSheets` | public | `array` | `[styles]` | | |
31+
32+
<hr/>
33+
34+
## Exports
35+
36+
| Kind | Name | Declaration | Module | Package |
37+
| ---- | ----------- | ----------- | --------------------------- | ------- |
38+
| `js` | `JsfCarbon` | JsfCarbon | packages/carbon/src/form.ts | |
39+
40+
# `packages/carbon/src/index.ts`:
41+
42+
## Exports
43+
44+
| Kind | Name | Declaration | Module | Package |
45+
| ---- | ----------- | ----------- | --------- | ------------------- |
46+
| `js` | `JsfCarbon` | JsfCarbon | ./form.js | |
47+
| `js` | `*` | \* | | ./widgets/index.js |
48+
| `js` | `*` | \* | | @j\_c/jsfe\_\_types |
49+
50+
# `packages/carbon/src/styles.ts`:
51+
52+
## Variables
53+
54+
| Name | Description | Type |
55+
| -------- | ----------- | -------- |
56+
| `styles` | | `string` |
57+
58+
<hr/>
59+
60+
## Exports
61+
62+
| Kind | Name | Declaration | Module | Package |
63+
| ---- | -------- | ----------- | ----------------------------- | ------- |
64+
| `js` | `styles` | styles | packages/carbon/src/styles.ts | |
65+

packages/carbon/custom-elements.json

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"schemaVersion": "1.0.0",
3+
"readme": "",
4+
"modules": [
5+
{
6+
"kind": "javascript-module",
7+
"path": "packages/carbon/src/form.def.ts",
8+
"declarations": [],
9+
"exports": [
10+
{
11+
"kind": "custom-element-definition",
12+
"name": "jsf-carbon",
13+
"declaration": {
14+
"name": "JsfCarbon",
15+
"module": "/packages/carbon/src/form.js"
16+
}
17+
}
18+
]
19+
},
20+
{
21+
"kind": "javascript-module",
22+
"path": "packages/carbon/src/form.ts",
23+
"declarations": [
24+
{
25+
"kind": "class",
26+
"description": "",
27+
"name": "JsfCarbon",
28+
"members": [
29+
{
30+
"kind": "field",
31+
"name": "widgets",
32+
"privacy": "public",
33+
"default": "widgets"
34+
},
35+
{
36+
"kind": "field",
37+
"name": "styleSheets",
38+
"type": {
39+
"text": "array"
40+
},
41+
"privacy": "public",
42+
"default": "[styles]"
43+
}
44+
],
45+
"superclass": {
46+
"name": "Jsf",
47+
"package": "@j_c/jsfe__form"
48+
},
49+
"tagName": "jsf-carbon",
50+
"customElement": true
51+
}
52+
],
53+
"exports": [
54+
{
55+
"kind": "js",
56+
"name": "JsfCarbon",
57+
"declaration": {
58+
"name": "JsfCarbon",
59+
"module": "packages/carbon/src/form.ts"
60+
}
61+
}
62+
]
63+
},
64+
{
65+
"kind": "javascript-module",
66+
"path": "packages/carbon/src/index.ts",
67+
"declarations": [],
68+
"exports": [
69+
{
70+
"kind": "js",
71+
"name": "JsfCarbon",
72+
"declaration": {
73+
"name": "JsfCarbon",
74+
"module": "./form.js"
75+
}
76+
},
77+
{
78+
"kind": "js",
79+
"name": "*",
80+
"declaration": {
81+
"name": "*",
82+
"package": "./widgets/index.js"
83+
}
84+
},
85+
{
86+
"kind": "js",
87+
"name": "*",
88+
"declaration": {
89+
"name": "*",
90+
"package": "@j_c/jsfe__types"
91+
}
92+
}
93+
]
94+
},
95+
{
96+
"kind": "javascript-module",
97+
"path": "packages/carbon/src/styles.ts",
98+
"declarations": [
99+
{
100+
"kind": "variable",
101+
"name": "styles",
102+
"type": {
103+
"text": "string"
104+
},
105+
"default": "''"
106+
}
107+
],
108+
"exports": [
109+
{
110+
"kind": "js",
111+
"name": "styles",
112+
"declaration": {
113+
"name": "styles",
114+
"module": "packages/carbon/src/styles.ts"
115+
}
116+
}
117+
]
118+
}
119+
]
120+
}

packages/form/README.md

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# JSON Schema Form Element — ***Form*** edition
2+
3+
See the [documentation](../../README.md).
4+
5+
---
6+
7+
# `packages/form/src/index.ts`:
8+
9+
## Exports
10+
11+
| Kind | Name | Declaration | Module | Package |
12+
| ---- | ----- | ----------- | --------------------- | ------------------- |
13+
| `js` | `Jsf` | Jsf | ./json-schema-form.js | |
14+
| `js` | `*` | \* | | @j\_c/jsfe\_\_types |
15+
16+
# `packages/form/src/json-schema-form.def.ts`:
17+
18+
## Exports
19+
20+
| Kind | Name | Declaration | Module | Package |
21+
| --------------------------- | ------------------ | ----------- | -------------------------------------- | ------- |
22+
| `custom-element-definition` | `json-schema-form` | Jsf | /packages/form/src/json-schema-form.js | |
23+
24+
# `packages/form/src/json-schema-form.ts`:
25+
26+
## class: `Jsf`, `json-schema-form`
27+
28+
### Superclass
29+
30+
| Name | Module | Package |
31+
| ------------ | ------ | ------- |
32+
| `LitElement` | | lit |
33+
34+
### Fields
35+
36+
| Name | Privacy | Type | Default | Description | Inherited From |
37+
| ---------------- | --------- | --------------------------- | ------- | ----------- | -------------- |
38+
| `schema` | public | `JSONSchema7` | `{}` | | |
39+
| `data` | public | `unknown` | `{}` | | |
40+
| `uiSchema` | public | `UiSchema` | `{}` | | |
41+
| `submitCallback` | public | `OnFormSubmit` | | | |
42+
| `onDataChange` | public | `OnDataChange` | | | |
43+
| `widgets` | public | `Widgets` | `{}` | | |
44+
| `styleSheets` | public | `string[]` | `[]` | | |
45+
| `experimental` | public | `FeatureFlags \| undefined` | `{}` | | |
46+
| `_uiState` | private | `unknown` | `{}` | | |
47+
| `_dig` | protected | | | | |
48+
| `#submit` | private | | | | |
49+
| `#formRef` | private | | | | |
50+
51+
### Methods
52+
53+
| Name | Privacy | Description | Parameters | Return | Inherited From |
54+
| ---------------- | --------- | ----------- | ---------------------------------------------- | ------ | -------------- |
55+
| `_setToValue` | protected | | `object: unknown, value: unknown, path: Path` | | |
56+
| `_handleChange` | protected | | `path: Path, value: unknown, schemaPath: Path` | | |
57+
| `_handleKeydown` | protected | | `event: KeyboardEvent` | | |
58+
| `_updateUi` | protected | | `path: Path, value: unknown` | | |
59+
60+
### Attributes
61+
62+
| Name | Field | Inherited From |
63+
| -------------- | ------------ | -------------- |
64+
| `schema` | schema | |
65+
| `data` | data | |
66+
| `uiSchema` | uiSchema | |
67+
| `widgets` | widgets | |
68+
| `styleSheets` | styleSheets | |
69+
| `experimental` | experimental | |
70+
71+
<hr/>
72+
73+
## Exports
74+
75+
| Kind | Name | Declaration | Module | Package |
76+
| ---- | ----- | ----------- | ------------------------------------- | ------- |
77+
| `js` | `Jsf` | Jsf | packages/form/src/json-schema-form.ts | |
78+

0 commit comments

Comments
 (0)