@htmlbricks/hb-form-composer 0.71.35 → 0.71.37
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/README.md +47 -17
- package/main.iife.js +1 -1
- package/main.iife.js.map +1 -1
- package/manifest.json +173 -6
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +91 -3
- package/types/webcomponent.type.d.ts +8 -17
- package/types/webcomponent_events.type.d.json +80 -1
package/manifest.json
CHANGED
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"id": {
|
|
14
14
|
"type": "string"
|
|
15
15
|
},
|
|
16
|
-
"schema": {
|
|
16
|
+
"schema": {
|
|
17
|
+
"$ref": "#/definitions/FormSchema"
|
|
18
|
+
}
|
|
17
19
|
},
|
|
18
20
|
"required": [
|
|
19
21
|
"schema",
|
|
@@ -26,6 +28,83 @@
|
|
|
26
28
|
"done"
|
|
27
29
|
],
|
|
28
30
|
"type": "object"
|
|
31
|
+
},
|
|
32
|
+
"FormSchema": {
|
|
33
|
+
"items": {
|
|
34
|
+
"$ref": "#/definitions/FormSchemaEntry"
|
|
35
|
+
},
|
|
36
|
+
"type": "array"
|
|
37
|
+
},
|
|
38
|
+
"FormSchemaDependency": {
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"properties": {
|
|
41
|
+
"id": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"values": {
|
|
45
|
+
"items": {
|
|
46
|
+
"type": [
|
|
47
|
+
"string",
|
|
48
|
+
"number",
|
|
49
|
+
"boolean"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"type": "array"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"id"
|
|
57
|
+
],
|
|
58
|
+
"type": "object"
|
|
59
|
+
},
|
|
60
|
+
"FormSchemaEntry": {
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"properties": {
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"items": {
|
|
65
|
+
"$ref": "#/definitions/FormSchemaDependency"
|
|
66
|
+
},
|
|
67
|
+
"type": "array"
|
|
68
|
+
},
|
|
69
|
+
"disabled": {
|
|
70
|
+
"type": "boolean"
|
|
71
|
+
},
|
|
72
|
+
"id": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"label": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"params": {
|
|
79
|
+
"additionalProperties": {},
|
|
80
|
+
"type": "object"
|
|
81
|
+
},
|
|
82
|
+
"placeholder": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"readonly": {
|
|
86
|
+
"type": "boolean"
|
|
87
|
+
},
|
|
88
|
+
"required": {
|
|
89
|
+
"type": "boolean"
|
|
90
|
+
},
|
|
91
|
+
"type": {
|
|
92
|
+
"description": "Discriminator for `hb-form` rows (`row`, `text`, `number`, …). May be omitted on a standalone `schemaentry` when implied by the host tag.",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"validationRegex": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"validationTip": {
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"value": {}
|
|
102
|
+
},
|
|
103
|
+
"required": [
|
|
104
|
+
"id",
|
|
105
|
+
"type"
|
|
106
|
+
],
|
|
107
|
+
"type": "object"
|
|
29
108
|
}
|
|
30
109
|
}
|
|
31
110
|
},
|
|
@@ -37,20 +116,108 @@
|
|
|
37
116
|
"additionalProperties": false,
|
|
38
117
|
"properties": {
|
|
39
118
|
"debug": {
|
|
40
|
-
"
|
|
119
|
+
"description": "From HTML: `yes` / `no` / `true` / `\"\"` are coerced in `$effect`.",
|
|
120
|
+
"type": [
|
|
121
|
+
"boolean",
|
|
122
|
+
"string"
|
|
123
|
+
]
|
|
41
124
|
},
|
|
42
125
|
"id": {
|
|
43
126
|
"type": "string"
|
|
44
127
|
},
|
|
45
128
|
"output_schema": {
|
|
46
|
-
"
|
|
47
|
-
|
|
129
|
+
"anyOf": [
|
|
130
|
+
{
|
|
131
|
+
"type": "string"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"$ref": "#/definitions/FormSchema"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"description": "From HTML: JSON string parsed in `$effect` into `FormSchema`."
|
|
48
138
|
},
|
|
49
139
|
"style": {
|
|
50
140
|
"type": "string"
|
|
51
141
|
}
|
|
52
142
|
},
|
|
53
143
|
"type": "object"
|
|
144
|
+
},
|
|
145
|
+
"FormSchema": {
|
|
146
|
+
"items": {
|
|
147
|
+
"$ref": "#/definitions/FormSchemaEntry"
|
|
148
|
+
},
|
|
149
|
+
"type": "array"
|
|
150
|
+
},
|
|
151
|
+
"FormSchemaDependency": {
|
|
152
|
+
"additionalProperties": false,
|
|
153
|
+
"properties": {
|
|
154
|
+
"id": {
|
|
155
|
+
"type": "string"
|
|
156
|
+
},
|
|
157
|
+
"values": {
|
|
158
|
+
"items": {
|
|
159
|
+
"type": [
|
|
160
|
+
"string",
|
|
161
|
+
"number",
|
|
162
|
+
"boolean"
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
"type": "array"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"required": [
|
|
169
|
+
"id"
|
|
170
|
+
],
|
|
171
|
+
"type": "object"
|
|
172
|
+
},
|
|
173
|
+
"FormSchemaEntry": {
|
|
174
|
+
"additionalProperties": false,
|
|
175
|
+
"properties": {
|
|
176
|
+
"dependencies": {
|
|
177
|
+
"items": {
|
|
178
|
+
"$ref": "#/definitions/FormSchemaDependency"
|
|
179
|
+
},
|
|
180
|
+
"type": "array"
|
|
181
|
+
},
|
|
182
|
+
"disabled": {
|
|
183
|
+
"type": "boolean"
|
|
184
|
+
},
|
|
185
|
+
"id": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
"label": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"params": {
|
|
192
|
+
"additionalProperties": {},
|
|
193
|
+
"type": "object"
|
|
194
|
+
},
|
|
195
|
+
"placeholder": {
|
|
196
|
+
"type": "string"
|
|
197
|
+
},
|
|
198
|
+
"readonly": {
|
|
199
|
+
"type": "boolean"
|
|
200
|
+
},
|
|
201
|
+
"required": {
|
|
202
|
+
"type": "boolean"
|
|
203
|
+
},
|
|
204
|
+
"type": {
|
|
205
|
+
"description": "Discriminator for `hb-form` rows (`row`, `text`, `number`, …). May be omitted on a standalone `schemaentry` when implied by the host tag.",
|
|
206
|
+
"type": "string"
|
|
207
|
+
},
|
|
208
|
+
"validationRegex": {
|
|
209
|
+
"type": "string"
|
|
210
|
+
},
|
|
211
|
+
"validationTip": {
|
|
212
|
+
"type": "string"
|
|
213
|
+
},
|
|
214
|
+
"value": {}
|
|
215
|
+
},
|
|
216
|
+
"required": [
|
|
217
|
+
"id",
|
|
218
|
+
"type"
|
|
219
|
+
],
|
|
220
|
+
"type": "object"
|
|
54
221
|
}
|
|
55
222
|
}
|
|
56
223
|
}
|
|
@@ -140,7 +307,7 @@
|
|
|
140
307
|
}
|
|
141
308
|
}
|
|
142
309
|
],
|
|
143
|
-
"iifeIntegrity": "sha384-
|
|
310
|
+
"iifeIntegrity": "sha384-vbuIRlAmHZdNnJxnczZ6UpThqdBb6CHxZfXt4hiqxDIk07GNnsqPr08Wsjf6JRTF",
|
|
144
311
|
"dependencies": [
|
|
145
312
|
{
|
|
146
313
|
"name": "hb-form",
|
|
@@ -543,5 +710,5 @@
|
|
|
543
710
|
"size": {},
|
|
544
711
|
"iifePath": "main.iife.js",
|
|
545
712
|
"repoName": "@htmlbricks/hb-form-composer",
|
|
546
|
-
"version": "0.71.
|
|
713
|
+
"version": "0.71.37"
|
|
547
714
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-form-composer",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.37",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Visual form-schema builder: internal `hb-form` defines field types, validation flags, and options, mirrored into an `hb-table` preview and editable via `hb-dialogform`. Accumulates `output_schema` as the composed `hb-form` schema array and can emit debug-oriented events for each sub-component interaction.",
|
|
6
6
|
"licenses": [
|
|
@@ -6,20 +6,108 @@
|
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"properties": {
|
|
8
8
|
"debug": {
|
|
9
|
-
"
|
|
9
|
+
"description": "From HTML: `yes` / `no` / `true` / `\"\"` are coerced in `$effect`.",
|
|
10
|
+
"type": [
|
|
11
|
+
"boolean",
|
|
12
|
+
"string"
|
|
13
|
+
]
|
|
10
14
|
},
|
|
11
15
|
"id": {
|
|
12
16
|
"type": "string"
|
|
13
17
|
},
|
|
14
18
|
"output_schema": {
|
|
15
|
-
"
|
|
16
|
-
|
|
19
|
+
"anyOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"$ref": "#/definitions/FormSchema"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"description": "From HTML: JSON string parsed in `$effect` into `FormSchema`."
|
|
17
28
|
},
|
|
18
29
|
"style": {
|
|
19
30
|
"type": "string"
|
|
20
31
|
}
|
|
21
32
|
},
|
|
22
33
|
"type": "object"
|
|
34
|
+
},
|
|
35
|
+
"FormSchema": {
|
|
36
|
+
"items": {
|
|
37
|
+
"$ref": "#/definitions/FormSchemaEntry"
|
|
38
|
+
},
|
|
39
|
+
"type": "array"
|
|
40
|
+
},
|
|
41
|
+
"FormSchemaDependency": {
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"properties": {
|
|
44
|
+
"id": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"values": {
|
|
48
|
+
"items": {
|
|
49
|
+
"type": [
|
|
50
|
+
"string",
|
|
51
|
+
"number",
|
|
52
|
+
"boolean"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"type": "array"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": [
|
|
59
|
+
"id"
|
|
60
|
+
],
|
|
61
|
+
"type": "object"
|
|
62
|
+
},
|
|
63
|
+
"FormSchemaEntry": {
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"properties": {
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"items": {
|
|
68
|
+
"$ref": "#/definitions/FormSchemaDependency"
|
|
69
|
+
},
|
|
70
|
+
"type": "array"
|
|
71
|
+
},
|
|
72
|
+
"disabled": {
|
|
73
|
+
"type": "boolean"
|
|
74
|
+
},
|
|
75
|
+
"id": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"label": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"params": {
|
|
82
|
+
"additionalProperties": {},
|
|
83
|
+
"type": "object"
|
|
84
|
+
},
|
|
85
|
+
"placeholder": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"readonly": {
|
|
89
|
+
"type": "boolean"
|
|
90
|
+
},
|
|
91
|
+
"required": {
|
|
92
|
+
"type": "boolean"
|
|
93
|
+
},
|
|
94
|
+
"type": {
|
|
95
|
+
"description": "Discriminator for `hb-form` rows (`row`, `text`, `number`, …). May be omitted on a standalone `schemaentry` when implied by the host tag.",
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"validationRegex": {
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"validationTip": {
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
"value": {}
|
|
105
|
+
},
|
|
106
|
+
"required": [
|
|
107
|
+
"id",
|
|
108
|
+
"type"
|
|
109
|
+
],
|
|
110
|
+
"type": "object"
|
|
23
111
|
}
|
|
24
112
|
}
|
|
25
113
|
}
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
conditional?: boolean;
|
|
3
|
-
label: string;
|
|
4
|
-
max?: number;
|
|
5
|
-
min?: number;
|
|
6
|
-
required?: boolean;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
type: "textarea" | "text" | "number" | "email" | "select" | "checkbox" | "radio" | "date" | "datetime" | "file" | "range" | "default";
|
|
9
|
-
conditions?: { conditionlabel: string; conditionvalue: string }[];
|
|
10
|
-
options?: { optionlabel: string; optionvalue: string }[];
|
|
11
|
-
};
|
|
1
|
+
import type { FormSchema } from "../../form/types/webcomponent.type";
|
|
12
2
|
|
|
13
3
|
export type Component = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
id?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
/** From HTML: `yes` / `no` / `true` / `""` are coerced in `$effect`. */
|
|
7
|
+
debug?: boolean | string;
|
|
8
|
+
/** From HTML: JSON string parsed in `$effect` into `FormSchema`. */
|
|
9
|
+
output_schema?: string | FormSchema;
|
|
19
10
|
};
|
|
20
11
|
|
|
21
12
|
export type Events = {
|
|
22
|
-
|
|
13
|
+
done: { schema: FormSchema; id: string };
|
|
23
14
|
};
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"id": {
|
|
12
12
|
"type": "string"
|
|
13
13
|
},
|
|
14
|
-
"schema": {
|
|
14
|
+
"schema": {
|
|
15
|
+
"$ref": "#/definitions/FormSchema"
|
|
16
|
+
}
|
|
15
17
|
},
|
|
16
18
|
"required": [
|
|
17
19
|
"schema",
|
|
@@ -24,6 +26,83 @@
|
|
|
24
26
|
"done"
|
|
25
27
|
],
|
|
26
28
|
"type": "object"
|
|
29
|
+
},
|
|
30
|
+
"FormSchema": {
|
|
31
|
+
"items": {
|
|
32
|
+
"$ref": "#/definitions/FormSchemaEntry"
|
|
33
|
+
},
|
|
34
|
+
"type": "array"
|
|
35
|
+
},
|
|
36
|
+
"FormSchemaDependency": {
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"properties": {
|
|
39
|
+
"id": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"values": {
|
|
43
|
+
"items": {
|
|
44
|
+
"type": [
|
|
45
|
+
"string",
|
|
46
|
+
"number",
|
|
47
|
+
"boolean"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"type": "array"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"id"
|
|
55
|
+
],
|
|
56
|
+
"type": "object"
|
|
57
|
+
},
|
|
58
|
+
"FormSchemaEntry": {
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"properties": {
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"items": {
|
|
63
|
+
"$ref": "#/definitions/FormSchemaDependency"
|
|
64
|
+
},
|
|
65
|
+
"type": "array"
|
|
66
|
+
},
|
|
67
|
+
"disabled": {
|
|
68
|
+
"type": "boolean"
|
|
69
|
+
},
|
|
70
|
+
"id": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"label": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"params": {
|
|
77
|
+
"additionalProperties": {},
|
|
78
|
+
"type": "object"
|
|
79
|
+
},
|
|
80
|
+
"placeholder": {
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"readonly": {
|
|
84
|
+
"type": "boolean"
|
|
85
|
+
},
|
|
86
|
+
"required": {
|
|
87
|
+
"type": "boolean"
|
|
88
|
+
},
|
|
89
|
+
"type": {
|
|
90
|
+
"description": "Discriminator for `hb-form` rows (`row`, `text`, `number`, …). May be omitted on a standalone `schemaentry` when implied by the host tag.",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"validationRegex": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"validationTip": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"value": {}
|
|
100
|
+
},
|
|
101
|
+
"required": [
|
|
102
|
+
"id",
|
|
103
|
+
"type"
|
|
104
|
+
],
|
|
105
|
+
"type": "object"
|
|
27
106
|
}
|
|
28
107
|
}
|
|
29
108
|
}
|