@golemui/core 0.0.2 → 0.12.0

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/CHANGELOG.md DELETED
@@ -1,517 +0,0 @@
1
- ## 0.19.0 (2026-03-02)
2
-
3
- ### 🚀 Features
4
-
5
- - Logic-Based Visibility Toggling via include.when and exclude.when ([9c44ff38](https://github.com/golemui/formforge/commit/9c44ff38))
6
- - Add RTL support ([85a39657](https://github.com/golemui/formforge/commit/85a39657))
7
- - type tetris to create a golem form biolder ([fc402635](https://github.com/golemui/formforge/commit/fc402635))
8
- - add field size ([a3eb4a9c](https://github.com/golemui/formforge/commit/a3eb4a9c))
9
- - **core:** enhance the I18nTranslator interface to allow providing a language ([7426c8e5](https://github.com/golemui/formforge/commit/7426c8e5))
10
- - optional label ([e57c9c74](https://github.com/golemui/formforge/commit/e57c9c74))
11
- - add support for i18n param interpolation ([7c84f01e](https://github.com/golemui/formforge/commit/7c84f01e))
12
- - Implement the core i18n bindings ([33e98d4e](https://github.com/golemui/formforge/commit/33e98d4e))
13
- - item renderers first draft ([2288470d](https://github.com/golemui/formforge/commit/2288470d))
14
-
15
- ### 🩹 Fixes
16
-
17
- - implement `when` support for disabled and readonly ([f8932db7](https://github.com/golemui/formforge/commit/f8932db7))
18
- - **repeater:** Fix template propery nesting types ([43358f7f](https://github.com/golemui/formforge/commit/43358f7f))
19
- - rename stack to flex ([4486d6a1](https://github.com/golemui/formforge/commit/4486d6a1))
20
- - add type safety to golemForm validators ([965bb2e9](https://github.com/golemui/formforge/commit/965bb2e9))
21
- - **core:** fix FormType inference in root function props ([e052586c](https://github.com/golemui/formforge/commit/e052586c))
22
- - **core:** expose props on all widget kinds so type inference can reach props ([8ca0e029](https://github.com/golemui/formforge/commit/8ca0e029))
23
- - **core:** update kind taxonomy ([17d0aba1](https://github.com/golemui/formforge/commit/17d0aba1))
24
- - **core:** move uid collision to the form initialization ([3452b8ad](https://github.com/golemui/formforge/commit/3452b8ad))
25
- - **core:** function fields validation errors ([e00cb6e7](https://github.com/golemui/formforge/commit/e00cb6e7))
26
- - **core:** add support for prefixes in translation params ([25e7e36a](https://github.com/golemui/formforge/commit/25e7e36a))
27
-
28
- ### ❤️ Thank You
29
-
30
- - Joan Llenas
31
- - joanllenas
32
- - Raul Jimenez @Elecash
33
-
34
- ## 0.18.0 (2026-01-13)
35
-
36
- ### 🚀 Features
37
-
38
- - function fields POC ([290f611](https://github.com/golemui/formforge/commit/290f611))
39
-
40
- ### 🩹 Fixes
41
-
42
- - **lit:** lit uid fixes ([5973338](https://github.com/golemui/formforge/commit/5973338))
43
- - **react:** fix Field Function support ([09f86fa](https://github.com/golemui/formforge/commit/09f86fa))
44
- - add support for validation errors in field functions ([b88d5f9](https://github.com/golemui/formforge/commit/b88d5f9))
45
- - **core:** function fields working ([706713a](https://github.com/golemui/formforge/commit/706713a))
46
- - **core:** functionFieldDecoder should set uid properly ([e65df04](https://github.com/golemui/formforge/commit/e65df04))
47
-
48
- ### ❤️ Thank You
49
-
50
- - Joan Llenas
51
-
52
- ## 0.17.0 (2026-01-11)
53
-
54
- This was a version bump only for core to align it with other projects, there were no code changes.
55
-
56
- ## 0.16.0 (2026-01-05)
57
-
58
- ### 🚀 Features
59
-
60
- - Add support for injectedIssues to the current validation pipeline ([d7de030](https://github.com/golemui/formforge/commit/d7de030))
61
- - add textarea component ([bd8499a](https://github.com/golemui/formforge/commit/bd8499a))
62
-
63
- ### 🩹 Fixes
64
-
65
- - **validators:** fix validators ([66847ae](https://github.com/golemui/formforge/commit/66847ae))
66
- - **vanilla-validators:** add correct check for string length ([28babd9](https://github.com/golemui/formforge/commit/28babd9))
67
- - **core:** use calculatedFields to take advantage of recent optimizations ([c37b86b](https://github.com/golemui/formforge/commit/c37b86b))
68
-
69
- ### ❤️ Thank You
70
-
71
- - Joan Llenas
72
- - Raul Jimenez @Elecash
73
-
74
- ## 0.15.2 (2026-01-03)
75
-
76
- ### 🩹 Fixes
77
-
78
- - rename form error to form health ([5f2ed5e](https://github.com/golemui/formforge/commit/5f2ed5e))
79
-
80
- ### ❤️ Thank You
81
-
82
- - Joan Llenas
83
-
84
- ## 0.15.1 (2025-12-27)
85
-
86
- This was a version bump only for core to align it with other projects, there were no code changes.
87
-
88
- ## 0.15.0 (2025-12-27)
89
-
90
- ### 🚀 Features
91
-
92
- - **core:** add support for custom events ([a1ac0b4](https://github.com/golemui/formforge/commit/a1ac0b4))
93
- - **core:** add generic support to defineForm for type inference ([9b7521f](https://github.com/golemui/formforge/commit/9b7521f))
94
- - **core:** Add public api for callback functions ([37968cc](https://github.com/golemui/formforge/commit/37968cc))
95
- - add callback functions ([763af97](https://github.com/golemui/formforge/commit/763af97))
96
-
97
- ### 🩹 Fixes
98
-
99
- - remove unnecessary field flags ([da74dc3](https://github.com/golemui/formforge/commit/da74dc3))
100
- - layout children calculations ([ea957ae](https://github.com/golemui/formforge/commit/ea957ae))
101
- - layout children includeIn ([f02189c](https://github.com/golemui/formforge/commit/f02189c))
102
- - repeater item removal ([1eb3c76](https://github.com/golemui/formforge/commit/1eb3c76))
103
- - removing fields infinite loop ([3cc0230](https://github.com/golemui/formforge/commit/3cc0230))
104
- - lazy loading of options ([89b17c4](https://github.com/golemui/formforge/commit/89b17c4))
105
- - simplify reactivity by cetralising calculations in one place ([c9d37ac](https://github.com/golemui/formforge/commit/c9d37ac))
106
- - **core:** Enforce type in validateAll ([8a88461](https://github.com/golemui/formforge/commit/8a88461))
107
- - **core:** add back the decodeFieldOrFn decoder in form-field ([a9b805b](https://github.com/golemui/formforge/commit/a9b805b))
108
- - correct type definition for ReactiveFieldValue. Use generic type ([15573a9](https://github.com/golemui/formforge/commit/15573a9))
109
- - expand ReactiveFieldFunction support to events ([9478304](https://github.com/golemui/formforge/commit/9478304))
110
- - expand ReactiveFieldFunction support ([ec344b9](https://github.com/golemui/formforge/commit/ec344b9))
111
- - **code:** fix label decoder ([5782cee](https://github.com/golemui/formforge/commit/5782cee))
112
- - interactive field label with function ([f865e59](https://github.com/golemui/formforge/commit/f865e59))
113
- - types and renaming - remove GUIApi and replace with the FieldFunctionParams type - Enhance type safety a little bit - rename to things to use FieldFunctions in the name ([0b6b12f](https://github.com/golemui/formforge/commit/0b6b12f))
114
-
115
- ### ❤️ Thank You
116
-
117
- - Joan Llenas
118
- - joanllenas
119
- - Raul Jimenez @Elecash
120
-
121
- ## 0.14.11 (2025-12-21)
122
-
123
- This was a version bump only for core to align it with other projects, there were no code changes.
124
-
125
- ## 0.14.10 (2025-12-20)
126
-
127
- This was a version bump only for core to align it with other projects, there were no code changes.
128
-
129
- ## 0.14.9 (2025-12-20)
130
-
131
- This was a version bump only for core to align it with other projects, there were no code changes.
132
-
133
- ## 0.14.8 (2025-12-20)
134
-
135
- This was a version bump only for core to align it with other projects, there were no code changes.
136
-
137
- ## 0.14.7 (2025-12-18)
138
-
139
- This was a version bump only for core to align it with other projects, there were no code changes.
140
-
141
- ## 0.14.6 (2025-12-18)
142
-
143
- This was a version bump only for core to align it with other projects, there were no code changes.
144
-
145
- ## 0.14.5 (2025-12-17)
146
-
147
- This was a version bump only for core to align it with other projects, there were no code changes.
148
-
149
- ## 0.14.4 (2025-12-17)
150
-
151
- ### 🩹 Fixes
152
-
153
- - add support for suffixed properties in all decoders ([b10b5aa](https://github.com/golemui/formforge/commit/b10b5aa))
154
- - improve objectWithSuffix docs ([6b70689](https://github.com/golemui/formforge/commit/6b70689))
155
- - improve the objectWithSuffix decoder ([3464e4b](https://github.com/golemui/formforge/commit/3464e4b))
156
- - create an objectWithSuffix decoder ([298da7d](https://github.com/golemui/formforge/commit/298da7d))
157
-
158
- ### ❤️ Thank You
159
-
160
- - Joan Llenas
161
-
162
- ## 0.14.3 (2025-12-16)
163
-
164
- This was a version bump only for core to align it with other projects, there were no code changes.
165
-
166
- ## 0.14.2 (2025-12-16)
167
-
168
- ### 🩹 Fixes
169
-
170
- - enhance type safety for vanilla loaders ([879042a](https://github.com/golemui/formforge/commit/879042a))
171
-
172
- ### ❤️ Thank You
173
-
174
- - Joan Llenas
175
-
176
- ## 0.14.1 (2025-12-15)
177
-
178
- This was a version bump only for core to align it with other projects, there were no code changes.
179
-
180
- ## 0.14.0 (2025-12-14)
181
-
182
- This was a version bump only for core to align it with other projects, there were no code changes.
183
-
184
- ## 0.13.0 (2025-12-11)
185
-
186
- ### 🚀 Features
187
-
188
- - **core:** add callback functions ([33f0d85](https://github.com/golemui/formforge/commit/33f0d85))
189
-
190
- ### ❤️ Thank You
191
-
192
- - Raul Jimenez @Elecash
193
-
194
- ## 0.12.0 (2025-12-11)
195
-
196
- This was a version bump only for core to align it with other projects, there were no code changes.
197
-
198
- ## 0.11.0 (2025-12-08)
199
-
200
- This was a version bump only for core to align it with other projects, there were no code changes.
201
-
202
- ## 0.10.0 (2025-12-08)
203
-
204
- This was a version bump only for core to align it with other projects, there were no code changes.
205
-
206
- ## 0.9.0 (2025-12-08)
207
-
208
- ### 🚀 Features
209
-
210
- - **core:** introduce SET_FIELD_INITIAL_DATA action and update related logic ([f6c2e89](https://github.com/golemui/formforge/commit/f6c2e89))
211
-
212
- ### ❤️ Thank You
213
-
214
- - Joan Llenas
215
-
216
- ## 0.8.0 (2025-12-07)
217
-
218
- ### 🩹 Fixes
219
-
220
- - **core:** fix the VALIDATE_ALL action ([8697b1e](https://github.com/golemui/formforge/commit/8697b1e))
221
- - create a propsUpdaterByCurrentState abstraction for all frameworks ([4b61116](https://github.com/golemui/formforge/commit/4b61116))
222
- - select's Option type refactor ([11c0fef](https://github.com/golemui/formforge/commit/11c0fef))
223
-
224
- ### ❤️ Thank You
225
-
226
- - Joan Llenas
227
-
228
- ## 0.7.1 (2025-12-07)
229
-
230
- This was a version bump only for core to align it with other projects, there were no code changes.
231
-
232
- ## 0.7.0 (2025-12-04)
233
-
234
- This was a version bump only for core to align it with other projects, there were no code changes.
235
-
236
- ## 0.6.0 (2025-12-03)
237
-
238
- This was a version bump only for core to align it with other projects, there were no code changes.
239
-
240
- ## 0.5.0 (2025-11-30)
241
-
242
- This was a version bump only for core to align it with other projects, there were no code changes.
243
-
244
- ## 0.4.0 (2025-11-30)
245
-
246
- This was a version bump only for core to align it with other projects, there were no code changes.
247
-
248
- ## 0.3.26 (2025-11-29)
249
-
250
- ### 🩹 Fixes
251
-
252
- - force release ([1dc3120](https://github.com/golemui/formforge/commit/1dc3120))
253
-
254
- ### ❤️ Thank You
255
-
256
- - Joan Llenas
257
-
258
- ## 0.3.25 (2025-11-27)
259
-
260
- ### 🩹 Fixes
261
-
262
- - **angular:** force installation of zod v4 ([964f529](https://github.com/golemui/formforge/commit/964f529))
263
-
264
- ### ❤️ Thank You
265
-
266
- - Raul Jimenez @Elecash
267
-
268
- ## 0.3.24 (2025-11-27)
269
-
270
- This was a version bump only for core to align it with other projects, there were no code changes.
271
-
272
- ## 0.3.23 (2025-11-27)
273
-
274
- This was a version bump only for core to align it with other projects, there were no code changes.
275
-
276
- ## 0.3.22 (2025-11-27)
277
-
278
- This was a version bump only for core to align it with other projects, there were no code changes.
279
-
280
- ## 0.3.21 (2025-11-27)
281
-
282
- This was a version bump only for core to align it with other projects, there were no code changes.
283
-
284
- ## 0.3.20 (2025-11-26)
285
-
286
- This was a version bump only for core to align it with other projects, there were no code changes.
287
-
288
- ## 0.3.19 (2025-11-26)
289
-
290
- This was a version bump only for core to align it with other projects, there were no code changes.
291
-
292
- ## 0.3.18 (2025-11-26)
293
-
294
- ### 🩹 Fixes
295
-
296
- - **core:** use regular imports instead of namespace imports ([8cb0e79](https://github.com/golemui/formforge/commit/8cb0e79))
297
- - build all libraries with vite ([2880d7f](https://github.com/golemui/formforge/commit/2880d7f))
298
-
299
- ### ❤️ Thank You
300
-
301
- - Raul Jimenez @Elecash
302
-
303
- ## 0.3.17 (2025-11-25)
304
-
305
- ### 🩹 Fixes
306
-
307
- - change form entry point to an array of fields ([e67ad5c](https://github.com/golemui/formforge/commit/e67ad5c))
308
- - rename remaining Field to DispayField ([779ba6d](https://github.com/golemui/formforge/commit/779ba6d))
309
-
310
- ### ❤️ Thank You
311
-
312
- - Joan Llenas
313
-
314
- ## 0.3.16 (2025-11-25)
315
-
316
- This was a version bump only for core to align it with other projects, there were no code changes.
317
-
318
- ## 0.3.15 (2025-11-25)
319
-
320
- ### 🩹 Fixes
321
-
322
- - build with nx ([3f423b4](https://github.com/golemui/formforge/commit/3f423b4))
323
-
324
- ### ❤️ Thank You
325
-
326
- - Raul Jimenez @Elecash
327
-
328
- ## 0.3.14 (2025-11-24)
329
-
330
- ### 🩹 Fixes
331
-
332
- - package.json paths in core, lit and lit-vanilla ([677e530](https://github.com/golemui/formforge/commit/677e530))
333
-
334
- ### ❤️ Thank You
335
-
336
- - Raul Jimenez @Elecash
337
-
338
- ## 0.3.13 (2025-11-24)
339
-
340
- This was a version bump only for core to align it with other projects, there were no code changes.
341
-
342
- ## 0.3.12 (2025-11-24)
343
-
344
- This was a version bump only for core to align it with other projects, there were no code changes.
345
-
346
- ## 0.3.11 (2025-11-24)
347
-
348
- ### 🩹 Fixes
349
-
350
- - build files to output cjs and js ([20d24ec](https://github.com/golemui/formforge/commit/20d24ec))
351
-
352
- ### ❤️ Thank You
353
-
354
- - Raul Jimenez @Elecash
355
-
356
- ## 0.3.10 (2025-11-24)
357
-
358
- This was a version bump only for core to align it with other projects, there were no code changes.
359
-
360
- ## 0.3.9 (2025-11-24)
361
-
362
- This was a version bump only for core to align it with other projects, there were no code changes.
363
-
364
- ## 0.3.8 (2025-11-24)
365
-
366
- ### 🩹 Fixes
367
-
368
- - build libs for es2022 and commonjs ([7a7c037](https://github.com/golemui/formforge/commit/7a7c037))
369
-
370
- ### ❤️ Thank You
371
-
372
- - Raul Jimenez @Elecash
373
-
374
- ## 0.3.7 (2025-11-23)
375
-
376
- This was a version bump only for core to align it with other projects, there were no code changes.
377
-
378
- ## 0.3.6 (2025-11-23)
379
-
380
- ### 🩹 Fixes
381
-
382
- - **react:** fix react FieldRenderer ([0cb7882](https://github.com/golemui/formforge/commit/0cb7882))
383
-
384
- ### ❤️ Thank You
385
-
386
- - Joan Llenas
387
-
388
- ## 0.3.5 (2025-11-23)
389
-
390
- This was a version bump only for core to align it with other projects, there were no code changes.
391
-
392
- ## 0.3.4 (2025-11-23)
393
-
394
- This was a version bump only for core to align it with other projects, there were no code changes.
395
-
396
- ## 0.3.3 (2025-11-23)
397
-
398
- This was a version bump only for core to align it with other projects, there were no code changes.
399
-
400
- ## 0.3.2 (2025-11-23)
401
-
402
- ### 🩹 Fixes
403
-
404
- - **react:** fix react context provider duplicity ([dcad867](https://github.com/golemui/formforge/commit/dcad867))
405
-
406
- ### ❤️ Thank You
407
-
408
- - Joan Llenas
409
-
410
- ## 0.3.1 (2025-11-23)
411
-
412
- This was a version bump only for core to align it with other projects, there were no code changes.
413
-
414
- ## 0.3.0 (2025-11-23)
415
-
416
- ### 🚀 Features
417
-
418
- - **validators:** Make validators pluggable ([397e67c](https://github.com/golemui/formforge/commit/397e67c))
419
-
420
- ### ❤️ Thank You
421
-
422
- - Joan Llenas
423
-
424
- ## 0.2.4 (2025-11-22)
425
-
426
- This was a version bump only for core to align it with other projects, there were no code changes.
427
-
428
- ## 0.2.3 (2025-11-22)
429
-
430
- ### 🩹 Fixes
431
-
432
- - **react:** fix react package jsons build ([b98d9e2](https://github.com/golemui/formforge/commit/b98d9e2))
433
-
434
- ### ❤️ Thank You
435
-
436
- - Raul Jimenez @Elecash
437
-
438
- ## 0.2.2 (2025-11-22)
439
-
440
- This was a version bump only for core to align it with other projects, there were no code changes.
441
-
442
- ## 0.2.1 (2025-11-16)
443
-
444
- This was a version bump only for core to align it with other projects, there were no code changes.
445
-
446
- ## 0.2.0 (2025-11-16)
447
-
448
- ### 🚀 Features
449
-
450
- - **core:** expose controlsTouched to track controls that can display validation errors ([89aa1b8](https://github.com/golemui/formforge/commit/89aa1b8))
451
- - **core:** Implement the ValidateOn flag core ([41cd4b3](https://github.com/golemui/formforge/commit/41cd4b3))
452
-
453
- ### ❤️ Thank You
454
-
455
- - Joan Llenas
456
-
457
- ## 0.1.5 (2025-11-16)
458
-
459
- ### 🩹 Fixes
460
-
461
- - lint errors and peer dependencies ([d0f139d](https://github.com/golemui/formforge/commit/d0f139d))
462
- - set build paths for release artifacts ([9760118](https://github.com/golemui/formforge/commit/9760118))
463
-
464
- ### ❤️ Thank You
465
-
466
- - Raul Jimenez @Elecash
467
-
468
- ## 0.1.4 (2025-11-16)
469
-
470
- ### 🩹 Fixes
471
-
472
- - set correct paths for release artifacts ([8941d2f](https://github.com/golemui/formforge/commit/8941d2f))
473
- - create release tool ([7cd7845](https://github.com/golemui/formforge/commit/7cd7845))
474
-
475
- ### ❤️ Thank You
476
-
477
- - Raul Jimenez @Elecash
478
-
479
- ## 0.1.3 (2025-11-15)
480
-
481
- This was a version bump only for core to align it with other projects, there were no code changes.
482
-
483
- ## 0.1.2 (2025-11-15)
484
-
485
- This was a version bump only for core to align it with other projects, there were no code changes.
486
-
487
- ## 0.1.1 (2025-11-15)
488
-
489
- This was a version bump only for core to align it with other projects, there were no code changes.
490
-
491
- ## 0.1.0 (2025-11-15)
492
-
493
- ### 🚀 Features
494
-
495
- - **core:** Implement custom validation ([70d657a](https://github.com/golemui/formforge/commit/70d657a))
496
- - **core:** Add touched support to know when users have interacted with the form ([0b6f967](https://github.com/golemui/formforge/commit/0b6f967))
497
- - **angular:** Integrate the required validator in controls ([0bf263d](https://github.com/golemui/formforge/commit/0bf263d))
498
- - **angular:** Add validation support to the textInput ([1a9febf](https://github.com/golemui/formforge/commit/1a9febf))
499
- - Implement schema validators and add a validators field to the model ([dc5f4d7](https://github.com/golemui/formforge/commit/dc5f4d7))
500
- - Add some utility types ([939c4d4](https://github.com/golemui/formforge/commit/939c4d4))
501
- - **angular:** Add support for select controls ([a1e77c9](https://github.com/golemui/formforge/commit/a1e77c9))
502
- - **lit:** Add lit element support ([a122d2d](https://github.com/golemui/formforge/commit/a122d2d))
503
-
504
- ### 🩹 Fixes
505
-
506
- - fix custom error formatting ([fcefa99](https://github.com/golemui/formforge/commit/fcefa99))
507
- - **core:** Adapt json schema and field factories ([549ad2f](https://github.com/golemui/formforge/commit/549ad2f))
508
- - form initialization ([f61f471](https://github.com/golemui/formforge/commit/f61f471))
509
- - **core:** Rename Button to Interactive ([25fcea3](https://github.com/golemui/formforge/commit/25fcea3))
510
- - **core:** Rename DisplayField.ts to FormField.ts ([0be69c2](https://github.com/golemui/formforge/commit/0be69c2))
511
- - **core:** Add readonly to formFlags ([ef5f63e](https://github.com/golemui/formforge/commit/ef5f63e))
512
- - **react:** Add useExternalProps hook and refactor so all components use props ([c0d2a93](https://github.com/golemui/formforge/commit/c0d2a93))
513
-
514
- ### ❤️ Thank You
515
-
516
- - Joan Llenas
517
- - Raul Jimenez @Elecash
@@ -1,67 +0,0 @@
1
- export type RefResolver = (ref: string) => JSONSchemaObject;
2
- export declare function isJsonSchema(json: Record<string, any>): json is JSONSchemaObject;
3
- /**
4
- * JSON Schema Draft 2020-12
5
- * @see
6
- * https://json-schema.org/draft/2020-12
7
- */
8
- export interface JSONSchemaObject {
9
- $schema?: string;
10
- $id?: string;
11
- $ref?: string;
12
- $defs?: Record<string, JSONSchemaObject>;
13
- $comment?: string;
14
- $vocabulary?: Record<string, boolean>;
15
- $dynamicRef?: string;
16
- $dynamicAnchor?: string;
17
- $anchor?: string;
18
- title?: string;
19
- description?: string;
20
- default?: unknown;
21
- deprecated?: boolean;
22
- readOnly?: boolean;
23
- writeOnly?: boolean;
24
- examples?: unknown[];
25
- type?: JSONSchemaType | JSONSchemaType[];
26
- enum?: unknown[];
27
- const?: unknown;
28
- multipleOf?: number;
29
- maximum?: number;
30
- exclusiveMaximum?: number;
31
- minimum?: number;
32
- exclusiveMinimum?: number;
33
- maxLength?: number;
34
- minLength?: number;
35
- pattern?: string;
36
- prefixItems?: JSONSchemaObject[];
37
- items?: JSONSchemaObject;
38
- contains?: JSONSchemaObject;
39
- maxContains?: number;
40
- minContains?: number;
41
- maxItems?: number;
42
- minItems?: number;
43
- uniqueItems?: boolean;
44
- properties?: Record<string, JSONSchemaObject>;
45
- patternProperties?: Record<string, JSONSchemaObject>;
46
- additionalProperties?: JSONSchemaObject;
47
- propertyNames?: JSONSchemaObject;
48
- maxProperties?: number;
49
- minProperties?: number;
50
- required?: string[];
51
- dependentRequired?: Record<string, string[]>;
52
- allOf?: JSONSchemaObject[];
53
- anyOf?: JSONSchemaObject[];
54
- oneOf?: JSONSchemaObject[];
55
- not?: JSONSchemaObject;
56
- if?: JSONSchemaObject;
57
- then?: JSONSchemaObject;
58
- else?: JSONSchemaObject;
59
- dependentSchemas?: Record<string, JSONSchemaObject>;
60
- unevaluatedItems?: JSONSchemaObject;
61
- unevaluatedProperties?: JSONSchemaObject;
62
- format?: string;
63
- contentEncoding?: string;
64
- contentMediaType?: string;
65
- contentSchema?: JSONSchemaObject;
66
- }
67
- export type JSONSchemaType = 'null' | 'boolean' | 'object' | 'array' | 'number' | 'integer' | 'string';
@@ -1,19 +0,0 @@
1
- import { FormWidget } from '../../form-widget';
2
- import { Action } from '../../store/actions';
3
- import { Middleware, State } from '../../store/model';
4
- import { JSONSchemaObject } from './json-schema';
5
- type JsonSchemaTypeMap = 'string' | 'enum' | 'boolean' | 'number' | 'integer' | 'object' | 'oneOf' | 'anyOf' | 'fallback';
6
- /**
7
- * Maps a Json Schema type to a widget name, so
8
- */
9
- export type SchemaToWidgetMap = Record<JsonSchemaTypeMap, (schema: JSONSchemaObject, ...rest: any[]) => FormWidget>;
10
- /**
11
- * Use this middleware to convert a JSON schema into a JSON form.
12
- *
13
- * @example
14
- * protected middlewares = jsonSchemaMiddleware(vanillaSchemaToWidgetMap);
15
- * @example
16
- * <gui-form [middlewares]="middlewares" />
17
- */
18
- export declare const jsonSchemaMiddleware: (schemaToWidgetMap: SchemaToWidgetMap) => Middleware<State, Action>;
19
- export {};
@@ -1,16 +0,0 @@
1
- import { DotPath } from '../shared';
2
- /**
3
- * Heuristically checks if a value looks like a dot notation path
4
- * rather than a standard string.
5
- * To be considered a "potential" dot path, the value must:
6
- * 1. Be a string.
7
- * 2. Start with one of the allowed prefixes ($form.*, $error.* or $meta.*).
8
- * 3. Not contain any spaces (distinguishing it from sentences).
9
- *
10
- * * @example
11
- * isPotentialDotPath('$form.user.id'); // true
12
- * isPotentialDotPath('name'); // false (No prefix)
13
- * isPotentialDotPath('my file'); // false (Contains space)
14
- * isPotentialDotPath(123); // false (Not a string)
15
- */
16
- export declare const isPotentialDotPath: (path: unknown) => path is DotPath;