@ghentcdh/crouton-core 0.0.1-alpha.76 → 0.0.1-alpha.78

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.
Files changed (35) hide show
  1. package/dist/field-input-schemas/array.field-input.schema.json +52 -0
  2. package/dist/field-input-schemas/array.field-input.schema.v1.json +52 -0
  3. package/dist/field-input-schemas/autocomplete.field-input.schema.json +250 -0
  4. package/dist/field-input-schemas/autocomplete.field-input.schema.v1.json +250 -0
  5. package/dist/field-input-schemas/boolean.field-input.schema.json +39 -0
  6. package/dist/field-input-schemas/boolean.field-input.schema.v1.json +39 -0
  7. package/dist/field-input-schemas/custom.field-input.schema.json +39 -0
  8. package/dist/field-input-schemas/custom.field-input.schema.v1.json +39 -0
  9. package/dist/field-input-schemas/date-range.field-input.schema.json +55 -0
  10. package/dist/field-input-schemas/date-range.field-input.schema.v1.json +55 -0
  11. package/dist/field-input-schemas/date.field-input.schema.json +61 -0
  12. package/dist/field-input-schemas/date.field-input.schema.v1.json +61 -0
  13. package/dist/field-input-schemas/markdown.field-input.schema.json +43 -0
  14. package/dist/field-input-schemas/markdown.field-input.schema.v1.json +43 -0
  15. package/dist/field-input-schemas/number.field-input.schema.json +39 -0
  16. package/dist/field-input-schemas/number.field-input.schema.v1.json +39 -0
  17. package/dist/field-input-schemas/relation.field-input.schema.json +64 -0
  18. package/dist/field-input-schemas/relation.field-input.schema.v1.json +64 -0
  19. package/dist/field-input-schemas/select.field-input.schema.json +72 -0
  20. package/dist/field-input-schemas/select.field-input.schema.v1.json +72 -0
  21. package/dist/field-input-schemas/string.field-input.schema.json +39 -0
  22. package/dist/field-input-schemas/string.field-input.schema.v1.json +39 -0
  23. package/dist/field-input-schemas/textarea.field-input.schema.json +39 -0
  24. package/dist/field-input-schemas/textarea.field-input.schema.v1.json +39 -0
  25. package/dist/field-input-schemas/toggle.field-input.schema.json +72 -0
  26. package/dist/field-input-schemas/toggle.field-input.schema.v1.json +72 -0
  27. package/dist/index.cjs +529 -330
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +610 -20
  30. package/dist/index.d.ts +610 -20
  31. package/dist/index.js +501 -322
  32. package/dist/index.js.map +1 -1
  33. package/dist/resource.schema.json +143 -7
  34. package/dist/resource.schema.v1.json +143 -7
  35. package/package.json +2 -2
@@ -0,0 +1,52 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "label": {
6
+ "description": "Override the field label",
7
+ "type": "string"
8
+ },
9
+ "hideLabel": {
10
+ "description": "Hide the label",
11
+ "type": "boolean"
12
+ },
13
+ "placeholder": {
14
+ "type": "string"
15
+ },
16
+ "readonly": {
17
+ "type": "boolean"
18
+ },
19
+ "colspan": {
20
+ "type": "number"
21
+ },
22
+ "width": {
23
+ "type": "string"
24
+ },
25
+ "styles": {
26
+ "type": "object",
27
+ "propertyNames": {
28
+ "type": "string"
29
+ },
30
+ "additionalProperties": {}
31
+ },
32
+ "customRender": {
33
+ "type": "string"
34
+ },
35
+ "layout": {
36
+ "type": "string",
37
+ "enum": [
38
+ "row",
39
+ "column"
40
+ ]
41
+ },
42
+ "elementLabelProp": {
43
+ "type": "string"
44
+ },
45
+ "hideActions": {
46
+ "type": "boolean"
47
+ }
48
+ },
49
+ "additionalProperties": {},
50
+ "$id": "https://ghentcdh.github.io/crouton/schema/v1/array.field-input.schema.json",
51
+ "title": "Crouton fieldInput options: array"
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "label": {
6
+ "description": "Override the field label",
7
+ "type": "string"
8
+ },
9
+ "hideLabel": {
10
+ "description": "Hide the label",
11
+ "type": "boolean"
12
+ },
13
+ "placeholder": {
14
+ "type": "string"
15
+ },
16
+ "readonly": {
17
+ "type": "boolean"
18
+ },
19
+ "colspan": {
20
+ "type": "number"
21
+ },
22
+ "width": {
23
+ "type": "string"
24
+ },
25
+ "styles": {
26
+ "type": "object",
27
+ "propertyNames": {
28
+ "type": "string"
29
+ },
30
+ "additionalProperties": {}
31
+ },
32
+ "customRender": {
33
+ "type": "string"
34
+ },
35
+ "layout": {
36
+ "type": "string",
37
+ "enum": [
38
+ "row",
39
+ "column"
40
+ ]
41
+ },
42
+ "elementLabelProp": {
43
+ "type": "string"
44
+ },
45
+ "hideActions": {
46
+ "type": "boolean"
47
+ }
48
+ },
49
+ "additionalProperties": {},
50
+ "$id": "https://ghentcdh.github.io/crouton/schema/v1/array.field-input.schema.json",
51
+ "title": "Crouton fieldInput options: array"
52
+ }
@@ -0,0 +1,250 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "label": {
8
+ "description": "Override the field label",
9
+ "type": "string"
10
+ },
11
+ "hideLabel": {
12
+ "description": "Hide the label",
13
+ "type": "boolean"
14
+ },
15
+ "placeholder": {
16
+ "type": "string"
17
+ },
18
+ "readonly": {
19
+ "type": "boolean"
20
+ },
21
+ "colspan": {
22
+ "type": "number"
23
+ },
24
+ "width": {
25
+ "type": "string"
26
+ },
27
+ "styles": {
28
+ "type": "object",
29
+ "propertyNames": {
30
+ "type": "string"
31
+ },
32
+ "additionalProperties": {}
33
+ },
34
+ "customRender": {
35
+ "type": "string"
36
+ },
37
+ "labelKey": {
38
+ "type": "string"
39
+ },
40
+ "valueKey": {
41
+ "type": "string"
42
+ },
43
+ "freeText": {
44
+ "type": "boolean"
45
+ },
46
+ "enableCreate": {
47
+ "type": "boolean"
48
+ },
49
+ "storeValue": {
50
+ "type": "boolean"
51
+ },
52
+ "options": {
53
+ "type": "array",
54
+ "items": {}
55
+ },
56
+ "values": {
57
+ "type": "array",
58
+ "items": {}
59
+ }
60
+ },
61
+ "required": [
62
+ "options"
63
+ ],
64
+ "additionalProperties": {}
65
+ },
66
+ {
67
+ "type": "object",
68
+ "properties": {
69
+ "label": {
70
+ "description": "Override the field label",
71
+ "type": "string"
72
+ },
73
+ "hideLabel": {
74
+ "description": "Hide the label",
75
+ "type": "boolean"
76
+ },
77
+ "placeholder": {
78
+ "type": "string"
79
+ },
80
+ "readonly": {
81
+ "type": "boolean"
82
+ },
83
+ "colspan": {
84
+ "type": "number"
85
+ },
86
+ "width": {
87
+ "type": "string"
88
+ },
89
+ "styles": {
90
+ "type": "object",
91
+ "propertyNames": {
92
+ "type": "string"
93
+ },
94
+ "additionalProperties": {}
95
+ },
96
+ "customRender": {
97
+ "type": "string"
98
+ },
99
+ "labelKey": {
100
+ "type": "string"
101
+ },
102
+ "valueKey": {
103
+ "type": "string"
104
+ },
105
+ "freeText": {
106
+ "type": "boolean"
107
+ },
108
+ "enableCreate": {
109
+ "type": "boolean"
110
+ },
111
+ "storeValue": {
112
+ "type": "boolean"
113
+ },
114
+ "uri": {
115
+ "type": "string",
116
+ "description": "Remote endpoint URL"
117
+ },
118
+ "dataField": {
119
+ "description": "Field in response containing the data array",
120
+ "type": "string"
121
+ },
122
+ "skipAuth": {
123
+ "type": "boolean"
124
+ }
125
+ },
126
+ "required": [
127
+ "uri"
128
+ ],
129
+ "additionalProperties": {}
130
+ },
131
+ {
132
+ "type": "object",
133
+ "properties": {
134
+ "label": {
135
+ "description": "Override the field label",
136
+ "type": "string"
137
+ },
138
+ "hideLabel": {
139
+ "description": "Hide the label",
140
+ "type": "boolean"
141
+ },
142
+ "placeholder": {
143
+ "type": "string"
144
+ },
145
+ "readonly": {
146
+ "type": "boolean"
147
+ },
148
+ "colspan": {
149
+ "type": "number"
150
+ },
151
+ "width": {
152
+ "type": "string"
153
+ },
154
+ "styles": {
155
+ "type": "object",
156
+ "propertyNames": {
157
+ "type": "string"
158
+ },
159
+ "additionalProperties": {}
160
+ },
161
+ "customRender": {
162
+ "type": "string"
163
+ },
164
+ "labelKey": {
165
+ "type": "string"
166
+ },
167
+ "valueKey": {
168
+ "type": "string"
169
+ },
170
+ "freeText": {
171
+ "type": "boolean"
172
+ },
173
+ "enableCreate": {
174
+ "type": "boolean"
175
+ },
176
+ "storeValue": {
177
+ "type": "boolean"
178
+ },
179
+ "resource": {
180
+ "type": "string",
181
+ "description": "Relative path to a resource.json"
182
+ },
183
+ "skipAuth": {
184
+ "type": "boolean"
185
+ },
186
+ "dataField": {
187
+ "type": "string"
188
+ }
189
+ },
190
+ "required": [
191
+ "resource"
192
+ ],
193
+ "additionalProperties": {}
194
+ },
195
+ {
196
+ "type": "object",
197
+ "properties": {
198
+ "label": {
199
+ "description": "Override the field label",
200
+ "type": "string"
201
+ },
202
+ "hideLabel": {
203
+ "description": "Hide the label",
204
+ "type": "boolean"
205
+ },
206
+ "placeholder": {
207
+ "type": "string"
208
+ },
209
+ "readonly": {
210
+ "type": "boolean"
211
+ },
212
+ "colspan": {
213
+ "type": "number"
214
+ },
215
+ "width": {
216
+ "type": "string"
217
+ },
218
+ "styles": {
219
+ "type": "object",
220
+ "propertyNames": {
221
+ "type": "string"
222
+ },
223
+ "additionalProperties": {}
224
+ },
225
+ "customRender": {
226
+ "type": "string"
227
+ },
228
+ "labelKey": {
229
+ "type": "string"
230
+ },
231
+ "valueKey": {
232
+ "type": "string"
233
+ },
234
+ "freeText": {
235
+ "type": "boolean"
236
+ },
237
+ "enableCreate": {
238
+ "type": "boolean"
239
+ },
240
+ "storeValue": {
241
+ "type": "boolean"
242
+ }
243
+ },
244
+ "additionalProperties": {}
245
+ }
246
+ ],
247
+ "description": "Autocomplete options: inline array, remote URI, or resource reference",
248
+ "$id": "https://ghentcdh.github.io/crouton/schema/v1/autocomplete.field-input.schema.json",
249
+ "title": "Crouton fieldInput options: autocomplete"
250
+ }
@@ -0,0 +1,250 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "label": {
8
+ "description": "Override the field label",
9
+ "type": "string"
10
+ },
11
+ "hideLabel": {
12
+ "description": "Hide the label",
13
+ "type": "boolean"
14
+ },
15
+ "placeholder": {
16
+ "type": "string"
17
+ },
18
+ "readonly": {
19
+ "type": "boolean"
20
+ },
21
+ "colspan": {
22
+ "type": "number"
23
+ },
24
+ "width": {
25
+ "type": "string"
26
+ },
27
+ "styles": {
28
+ "type": "object",
29
+ "propertyNames": {
30
+ "type": "string"
31
+ },
32
+ "additionalProperties": {}
33
+ },
34
+ "customRender": {
35
+ "type": "string"
36
+ },
37
+ "labelKey": {
38
+ "type": "string"
39
+ },
40
+ "valueKey": {
41
+ "type": "string"
42
+ },
43
+ "freeText": {
44
+ "type": "boolean"
45
+ },
46
+ "enableCreate": {
47
+ "type": "boolean"
48
+ },
49
+ "storeValue": {
50
+ "type": "boolean"
51
+ },
52
+ "options": {
53
+ "type": "array",
54
+ "items": {}
55
+ },
56
+ "values": {
57
+ "type": "array",
58
+ "items": {}
59
+ }
60
+ },
61
+ "required": [
62
+ "options"
63
+ ],
64
+ "additionalProperties": {}
65
+ },
66
+ {
67
+ "type": "object",
68
+ "properties": {
69
+ "label": {
70
+ "description": "Override the field label",
71
+ "type": "string"
72
+ },
73
+ "hideLabel": {
74
+ "description": "Hide the label",
75
+ "type": "boolean"
76
+ },
77
+ "placeholder": {
78
+ "type": "string"
79
+ },
80
+ "readonly": {
81
+ "type": "boolean"
82
+ },
83
+ "colspan": {
84
+ "type": "number"
85
+ },
86
+ "width": {
87
+ "type": "string"
88
+ },
89
+ "styles": {
90
+ "type": "object",
91
+ "propertyNames": {
92
+ "type": "string"
93
+ },
94
+ "additionalProperties": {}
95
+ },
96
+ "customRender": {
97
+ "type": "string"
98
+ },
99
+ "labelKey": {
100
+ "type": "string"
101
+ },
102
+ "valueKey": {
103
+ "type": "string"
104
+ },
105
+ "freeText": {
106
+ "type": "boolean"
107
+ },
108
+ "enableCreate": {
109
+ "type": "boolean"
110
+ },
111
+ "storeValue": {
112
+ "type": "boolean"
113
+ },
114
+ "uri": {
115
+ "type": "string",
116
+ "description": "Remote endpoint URL"
117
+ },
118
+ "dataField": {
119
+ "description": "Field in response containing the data array",
120
+ "type": "string"
121
+ },
122
+ "skipAuth": {
123
+ "type": "boolean"
124
+ }
125
+ },
126
+ "required": [
127
+ "uri"
128
+ ],
129
+ "additionalProperties": {}
130
+ },
131
+ {
132
+ "type": "object",
133
+ "properties": {
134
+ "label": {
135
+ "description": "Override the field label",
136
+ "type": "string"
137
+ },
138
+ "hideLabel": {
139
+ "description": "Hide the label",
140
+ "type": "boolean"
141
+ },
142
+ "placeholder": {
143
+ "type": "string"
144
+ },
145
+ "readonly": {
146
+ "type": "boolean"
147
+ },
148
+ "colspan": {
149
+ "type": "number"
150
+ },
151
+ "width": {
152
+ "type": "string"
153
+ },
154
+ "styles": {
155
+ "type": "object",
156
+ "propertyNames": {
157
+ "type": "string"
158
+ },
159
+ "additionalProperties": {}
160
+ },
161
+ "customRender": {
162
+ "type": "string"
163
+ },
164
+ "labelKey": {
165
+ "type": "string"
166
+ },
167
+ "valueKey": {
168
+ "type": "string"
169
+ },
170
+ "freeText": {
171
+ "type": "boolean"
172
+ },
173
+ "enableCreate": {
174
+ "type": "boolean"
175
+ },
176
+ "storeValue": {
177
+ "type": "boolean"
178
+ },
179
+ "resource": {
180
+ "type": "string",
181
+ "description": "Relative path to a resource.json"
182
+ },
183
+ "skipAuth": {
184
+ "type": "boolean"
185
+ },
186
+ "dataField": {
187
+ "type": "string"
188
+ }
189
+ },
190
+ "required": [
191
+ "resource"
192
+ ],
193
+ "additionalProperties": {}
194
+ },
195
+ {
196
+ "type": "object",
197
+ "properties": {
198
+ "label": {
199
+ "description": "Override the field label",
200
+ "type": "string"
201
+ },
202
+ "hideLabel": {
203
+ "description": "Hide the label",
204
+ "type": "boolean"
205
+ },
206
+ "placeholder": {
207
+ "type": "string"
208
+ },
209
+ "readonly": {
210
+ "type": "boolean"
211
+ },
212
+ "colspan": {
213
+ "type": "number"
214
+ },
215
+ "width": {
216
+ "type": "string"
217
+ },
218
+ "styles": {
219
+ "type": "object",
220
+ "propertyNames": {
221
+ "type": "string"
222
+ },
223
+ "additionalProperties": {}
224
+ },
225
+ "customRender": {
226
+ "type": "string"
227
+ },
228
+ "labelKey": {
229
+ "type": "string"
230
+ },
231
+ "valueKey": {
232
+ "type": "string"
233
+ },
234
+ "freeText": {
235
+ "type": "boolean"
236
+ },
237
+ "enableCreate": {
238
+ "type": "boolean"
239
+ },
240
+ "storeValue": {
241
+ "type": "boolean"
242
+ }
243
+ },
244
+ "additionalProperties": {}
245
+ }
246
+ ],
247
+ "description": "Autocomplete options: inline array, remote URI, or resource reference",
248
+ "$id": "https://ghentcdh.github.io/crouton/schema/v1/autocomplete.field-input.schema.json",
249
+ "title": "Crouton fieldInput options: autocomplete"
250
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "label": {
6
+ "description": "Override the field label",
7
+ "type": "string"
8
+ },
9
+ "hideLabel": {
10
+ "description": "Hide the label",
11
+ "type": "boolean"
12
+ },
13
+ "placeholder": {
14
+ "type": "string"
15
+ },
16
+ "readonly": {
17
+ "type": "boolean"
18
+ },
19
+ "colspan": {
20
+ "type": "number"
21
+ },
22
+ "width": {
23
+ "type": "string"
24
+ },
25
+ "styles": {
26
+ "type": "object",
27
+ "propertyNames": {
28
+ "type": "string"
29
+ },
30
+ "additionalProperties": {}
31
+ },
32
+ "customRender": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ "additionalProperties": {},
37
+ "$id": "https://ghentcdh.github.io/crouton/schema/v1/boolean.field-input.schema.json",
38
+ "title": "Crouton fieldInput options: boolean"
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "label": {
6
+ "description": "Override the field label",
7
+ "type": "string"
8
+ },
9
+ "hideLabel": {
10
+ "description": "Hide the label",
11
+ "type": "boolean"
12
+ },
13
+ "placeholder": {
14
+ "type": "string"
15
+ },
16
+ "readonly": {
17
+ "type": "boolean"
18
+ },
19
+ "colspan": {
20
+ "type": "number"
21
+ },
22
+ "width": {
23
+ "type": "string"
24
+ },
25
+ "styles": {
26
+ "type": "object",
27
+ "propertyNames": {
28
+ "type": "string"
29
+ },
30
+ "additionalProperties": {}
31
+ },
32
+ "customRender": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ "additionalProperties": {},
37
+ "$id": "https://ghentcdh.github.io/crouton/schema/v1/boolean.field-input.schema.json",
38
+ "title": "Crouton fieldInput options: boolean"
39
+ }