@dakataa/crud-react 1.0.10 → 2.1.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.
Files changed (109) hide show
  1. package/CHANGELOG.md +108 -0
  2. package/README.md +482 -169
  3. package/dist/Crud.d.ts +15 -0
  4. package/dist/component/BaseButtonContent.d.ts +10 -0
  5. package/dist/component/Button.d.ts +9 -0
  6. package/dist/component/Dropdown.d.ts +17 -0
  7. package/dist/component/Empty.d.ts +5 -0
  8. package/dist/component/Link.d.ts +6 -0
  9. package/dist/component/LottieAnimation.d.ts +8 -0
  10. package/dist/component/Modal.d.ts +22 -0
  11. package/dist/component/Money.d.ts +7 -0
  12. package/dist/component/Preloader.d.ts +20 -0
  13. package/dist/component/Translation.d.ts +14 -0
  14. package/dist/component/crud/ActionLink.d.ts +10 -0
  15. package/dist/component/crud/CrudLoader.d.ts +29 -0
  16. package/dist/component/crud/DynamicView.d.ts +19 -0
  17. package/dist/component/crud/FiltersView.d.ts +7 -0
  18. package/dist/component/crud/GridView.d.ts +27 -0
  19. package/dist/component/crud/IsListItemActionGranted.d.ts +10 -0
  20. package/dist/component/crud/ItemAction.d.ts +9 -0
  21. package/dist/component/crud/ItemActions.d.ts +8 -0
  22. package/dist/component/crud/ItemLabel.d.ts +7 -0
  23. package/dist/component/crud/ItemValue.d.ts +7 -0
  24. package/dist/component/crud/List.d.ts +19 -0
  25. package/dist/component/crud/ListItem.d.ts +5 -0
  26. package/dist/component/crud/ListView.d.ts +8 -0
  27. package/dist/component/crud/Modify.d.ts +9 -0
  28. package/dist/component/crud/Navigation.d.ts +19 -0
  29. package/dist/component/crud/Paginator.d.ts +3 -0
  30. package/dist/component/crud/ViewLoader.d.ts +15 -0
  31. package/dist/component/crud/batch/BatchActionSelector.d.ts +3 -0
  32. package/dist/component/crud/batch/BatchActionsContext.d.ts +17 -0
  33. package/dist/component/crud/batch/BatchItemSelector.d.ts +5 -0
  34. package/dist/component/crud/form/Form.d.ts +31 -0
  35. package/dist/component/crud/form/FormError.d.ts +6 -0
  36. package/dist/component/crud/form/FormField.d.ts +11 -0
  37. package/dist/component/crud/form/FormGroup.d.ts +76 -0
  38. package/dist/component/crud/form/FormGroupViewLoader.d.ts +2 -0
  39. package/dist/component/crud/form/FormLabel.d.ts +4 -0
  40. package/dist/component/crud/form/FormRequestError.d.ts +14 -0
  41. package/dist/component/crud/form/FormRest.d.ts +2 -0
  42. package/dist/component/crud/form/FormRestError.d.ts +4 -0
  43. package/dist/component/error/ErrorBoundary.d.ts +13 -0
  44. package/dist/component/error/Exception.d.ts +9 -0
  45. package/dist/component/error/HttpException.d.ts +16 -0
  46. package/dist/component/form/Choice.d.ts +24 -0
  47. package/dist/component/form/Collection.d.ts +27 -0
  48. package/dist/component/form/Form.d.ts +62 -0
  49. package/dist/component/form/FormAlert.d.ts +3 -0
  50. package/dist/component/form/FormFieldError.d.ts +6 -0
  51. package/dist/component/form/FormGroup.d.ts +8 -0
  52. package/dist/component/form/FormHelp.d.ts +5 -0
  53. package/dist/component/form/FormLabel.d.ts +7 -0
  54. package/dist/component/form/FormSetting.d.ts +11 -0
  55. package/dist/component/form/FormStore.d.ts +93 -0
  56. package/dist/component/form/Input.d.ts +13 -0
  57. package/dist/component/form/Textarea.d.ts +15 -0
  58. package/dist/component/form/constraint/Contraint.d.ts +6 -0
  59. package/dist/component/form/constraint/NotBlank.d.ts +11 -0
  60. package/dist/component/form/formChoices.d.ts +8 -0
  61. package/dist/component/form/formSession.d.ts +3 -0
  62. package/dist/component/form/formView.d.ts +35 -0
  63. package/dist/component/router/Route.d.ts +12 -0
  64. package/dist/component/templating/Template.d.ts +17 -0
  65. package/dist/component/templating/TemplateBlock.d.ts +8 -0
  66. package/dist/component/templating/TemplateExtend.d.ts +9 -0
  67. package/dist/component/templating/TemplateParentBlock.d.ts +5 -0
  68. package/dist/context/ActionContext.d.ts +46 -0
  69. package/dist/context/AlertContext.d.ts +52 -0
  70. package/dist/context/ConfigContext.d.ts +34 -0
  71. package/dist/context/CrudProvider.d.ts +7 -0
  72. package/dist/context/GetData.d.ts +43 -0
  73. package/dist/context/ListContext.d.ts +69 -0
  74. package/dist/context/ListItemContext.d.ts +8 -0
  75. package/dist/context/LoaderContext.d.ts +5 -0
  76. package/dist/context/ModalContext.d.ts +18 -0
  77. package/dist/context/ModalScopeContext.d.ts +5 -0
  78. package/dist/context/NamespaceContext.d.ts +5 -0
  79. package/dist/crud-react.css +2 -1
  80. package/dist/crud-react.js +4004 -2956
  81. package/dist/denied-Cg2igDWh.js +688 -0
  82. package/dist/helper/ObjectUtils.d.ts +3 -0
  83. package/dist/helper/PathUtils.d.ts +12 -0
  84. package/dist/helper/StringUtils.d.ts +3 -0
  85. package/dist/info-Dfyx45FU.js +626 -0
  86. package/dist/layout/default/Base.d.ts +5 -0
  87. package/dist/layout/default/Error.d.ts +11 -0
  88. package/dist/layout/default/Main.d.ts +5 -0
  89. package/dist/main.d.ts +92 -79
  90. package/dist/setupTests.d.ts +0 -0
  91. package/dist/success-B5xn1-UX.js +559 -0
  92. package/dist/type/ActionRequestType.d.ts +17 -0
  93. package/dist/type/ActionType.d.ts +15 -0
  94. package/dist/type/ColumnType.d.ts +24 -0
  95. package/dist/type/ExceptionType.d.ts +6 -0
  96. package/dist/type/FormType.d.ts +6 -0
  97. package/dist/type/FormViewType.d.ts +96 -0
  98. package/dist/type/ListMetaType.d.ts +8 -0
  99. package/dist/type/ListType.d.ts +32 -0
  100. package/dist/type/ModifyType.d.ts +15 -0
  101. package/dist/type/RedirectType.d.ts +7 -0
  102. package/dist/type/RouteType.d.ts +7 -0
  103. package/dist/type/ViewType.d.ts +17 -0
  104. package/dist/warning-BaaC-X6i.js +630 -0
  105. package/package.json +86 -81
  106. package/dist/denied-CgoMpaA7.js +0 -27
  107. package/dist/info-D-NzIEYs.js +0 -144
  108. package/dist/success-Bu_BJcf1.js +0 -27
  109. package/dist/warning-B1nr7TsB.js +0 -27
@@ -0,0 +1,559 @@
1
+ //#region src/assets/images/alert/success.json
2
+ var e = "5.9.2", t = 25, n = 0, r = 51, i = 800, a = 800, o = "Chulito", s = 0, c = [], l = [{
3
+ ddd: 0,
4
+ ind: 1,
5
+ ty: 4,
6
+ nm: "Capa de formas 1",
7
+ sr: 1,
8
+ ks: {
9
+ o: {
10
+ a: 0,
11
+ k: 100,
12
+ ix: 11
13
+ },
14
+ r: {
15
+ a: 0,
16
+ k: 0,
17
+ ix: 10
18
+ },
19
+ p: {
20
+ a: 0,
21
+ k: [
22
+ 410,
23
+ 436,
24
+ 0
25
+ ],
26
+ ix: 2,
27
+ l: 2
28
+ },
29
+ a: {
30
+ a: 0,
31
+ k: [
32
+ 0,
33
+ 0,
34
+ 0
35
+ ],
36
+ ix: 1,
37
+ l: 2
38
+ },
39
+ s: {
40
+ a: 0,
41
+ k: [
42
+ 79.552,
43
+ 79.552,
44
+ 100
45
+ ],
46
+ ix: 6,
47
+ l: 2
48
+ }
49
+ },
50
+ ao: 0,
51
+ shapes: [{
52
+ ty: "gr",
53
+ it: [
54
+ {
55
+ ind: 0,
56
+ ty: "sh",
57
+ ix: 1,
58
+ ks: {
59
+ a: 0,
60
+ k: {
61
+ i: [
62
+ [0, 0],
63
+ [0, 0],
64
+ [0, 0]
65
+ ],
66
+ o: [
67
+ [0, 0],
68
+ [0, 0],
69
+ [0, 0]
70
+ ],
71
+ v: [
72
+ [-204, -20],
73
+ [-79.486, 91.943],
74
+ [182.972, -155.43]
75
+ ],
76
+ c: !1
77
+ },
78
+ ix: 2
79
+ },
80
+ nm: "Trazado 1",
81
+ mn: "ADBE Vector Shape - Group",
82
+ hd: !1
83
+ },
84
+ {
85
+ ty: "st",
86
+ c: {
87
+ a: 0,
88
+ k: [
89
+ 0,
90
+ .686274509804,
91
+ .274509803922,
92
+ 1
93
+ ],
94
+ ix: 3
95
+ },
96
+ o: {
97
+ a: 0,
98
+ k: 100,
99
+ ix: 4
100
+ },
101
+ w: {
102
+ a: 0,
103
+ k: 64,
104
+ ix: 5
105
+ },
106
+ lc: 2,
107
+ lj: 2,
108
+ bm: 0,
109
+ nm: "Trazo 1",
110
+ mn: "ADBE Vector Graphic - Stroke",
111
+ hd: !1
112
+ },
113
+ {
114
+ ty: "tr",
115
+ p: {
116
+ a: 0,
117
+ k: [0, 0],
118
+ ix: 2
119
+ },
120
+ a: {
121
+ a: 0,
122
+ k: [0, 0],
123
+ ix: 1
124
+ },
125
+ s: {
126
+ a: 0,
127
+ k: [100, 100],
128
+ ix: 3
129
+ },
130
+ r: {
131
+ a: 0,
132
+ k: 0,
133
+ ix: 6
134
+ },
135
+ o: {
136
+ a: 0,
137
+ k: 100,
138
+ ix: 7
139
+ },
140
+ sk: {
141
+ a: 0,
142
+ k: 0,
143
+ ix: 4
144
+ },
145
+ sa: {
146
+ a: 0,
147
+ k: 0,
148
+ ix: 5
149
+ },
150
+ nm: "Transformar"
151
+ }
152
+ ],
153
+ nm: "Forma 1",
154
+ np: 3,
155
+ cix: 2,
156
+ bm: 0,
157
+ ix: 1,
158
+ mn: "ADBE Vector Group",
159
+ hd: !1
160
+ }, {
161
+ ty: "tm",
162
+ s: {
163
+ a: 0,
164
+ k: 0,
165
+ ix: 1
166
+ },
167
+ e: {
168
+ a: 1,
169
+ k: [{
170
+ i: {
171
+ x: [.667],
172
+ y: [1]
173
+ },
174
+ o: {
175
+ x: [.333],
176
+ y: [0]
177
+ },
178
+ t: 8,
179
+ s: [0]
180
+ }, {
181
+ t: 18,
182
+ s: [100]
183
+ }],
184
+ ix: 2
185
+ },
186
+ o: {
187
+ a: 0,
188
+ k: 0,
189
+ ix: 3
190
+ },
191
+ m: 1,
192
+ ix: 2,
193
+ nm: "Recortar trazados 1",
194
+ mn: "ADBE Vector Filter - Trim",
195
+ hd: !1
196
+ }],
197
+ ip: 0,
198
+ op: 51,
199
+ st: -486,
200
+ bm: 0
201
+ }, {
202
+ ddd: 0,
203
+ ind: 2,
204
+ ty: 4,
205
+ nm: "Capa 1 contornos 9",
206
+ sr: 1,
207
+ ks: {
208
+ o: {
209
+ a: 0,
210
+ k: 100,
211
+ ix: 11
212
+ },
213
+ r: {
214
+ a: 1,
215
+ k: [{
216
+ i: {
217
+ x: [.667],
218
+ y: [1]
219
+ },
220
+ o: {
221
+ x: [.333],
222
+ y: [0]
223
+ },
224
+ t: 0,
225
+ s: [-90]
226
+ }, {
227
+ t: 50,
228
+ s: [270]
229
+ }],
230
+ ix: 10
231
+ },
232
+ p: {
233
+ a: 0,
234
+ k: [
235
+ 400,
236
+ 400,
237
+ 0
238
+ ],
239
+ ix: 2,
240
+ l: 2
241
+ },
242
+ a: {
243
+ a: 0,
244
+ k: [
245
+ 586.5,
246
+ 586.5,
247
+ 0
248
+ ],
249
+ ix: 1,
250
+ l: 2
251
+ },
252
+ s: {
253
+ a: 0,
254
+ k: [
255
+ 100,
256
+ 100,
257
+ 100
258
+ ],
259
+ ix: 6,
260
+ l: 2
261
+ }
262
+ },
263
+ ao: 0,
264
+ shapes: [
265
+ {
266
+ ty: "gr",
267
+ it: [
268
+ {
269
+ ind: 0,
270
+ ty: "sh",
271
+ ix: 1,
272
+ ks: {
273
+ a: 0,
274
+ k: {
275
+ i: [
276
+ [0, -185.844],
277
+ [185.844, 0],
278
+ [0, 185.844],
279
+ [-185.844, 0]
280
+ ],
281
+ o: [
282
+ [0, 185.844],
283
+ [-185.844, 0],
284
+ [0, -185.844],
285
+ [185.844, 0]
286
+ ],
287
+ v: [
288
+ [336.5, 0],
289
+ [0, 336.5],
290
+ [-336.5, 0],
291
+ [0, -336.5]
292
+ ],
293
+ c: !0
294
+ },
295
+ ix: 2
296
+ },
297
+ nm: "Trazado 1",
298
+ mn: "ADBE Vector Shape - Group",
299
+ hd: !1
300
+ },
301
+ {
302
+ ty: "st",
303
+ c: {
304
+ a: 1,
305
+ k: [{
306
+ i: {
307
+ x: [.667],
308
+ y: [1]
309
+ },
310
+ o: {
311
+ x: [.333],
312
+ y: [0]
313
+ },
314
+ t: 0,
315
+ s: [
316
+ .176470592618,
317
+ .168627455831,
318
+ .20000000298,
319
+ 1
320
+ ]
321
+ }, {
322
+ t: 12,
323
+ s: [
324
+ 0,
325
+ .686274509804,
326
+ .274509803922,
327
+ 1
328
+ ]
329
+ }],
330
+ ix: 3
331
+ },
332
+ o: {
333
+ a: 0,
334
+ k: 100,
335
+ ix: 4
336
+ },
337
+ w: {
338
+ a: 0,
339
+ k: 50,
340
+ ix: 5
341
+ },
342
+ lc: 2,
343
+ lj: 1,
344
+ ml: 10,
345
+ bm: 0,
346
+ nm: "Trazo 1",
347
+ mn: "ADBE Vector Graphic - Stroke",
348
+ hd: !1
349
+ },
350
+ {
351
+ ty: "tr",
352
+ p: {
353
+ a: 0,
354
+ k: [586.5, 586.5],
355
+ ix: 2
356
+ },
357
+ a: {
358
+ a: 0,
359
+ k: [0, 0],
360
+ ix: 1
361
+ },
362
+ s: {
363
+ a: 0,
364
+ k: [100, 100],
365
+ ix: 3
366
+ },
367
+ r: {
368
+ a: 0,
369
+ k: 0,
370
+ ix: 6
371
+ },
372
+ o: {
373
+ a: 0,
374
+ k: 100,
375
+ ix: 7
376
+ },
377
+ sk: {
378
+ a: 0,
379
+ k: 0,
380
+ ix: 4
381
+ },
382
+ sa: {
383
+ a: 0,
384
+ k: 0,
385
+ ix: 5
386
+ },
387
+ nm: "Transformar"
388
+ }
389
+ ],
390
+ nm: "Grupo 1",
391
+ np: 2,
392
+ cix: 2,
393
+ bm: 0,
394
+ ix: 1,
395
+ mn: "ADBE Vector Group",
396
+ hd: !1
397
+ },
398
+ {
399
+ ty: "tm",
400
+ s: {
401
+ a: 0,
402
+ k: 0,
403
+ ix: 1
404
+ },
405
+ e: {
406
+ a: 1,
407
+ k: [{
408
+ i: {
409
+ x: [.667],
410
+ y: [1]
411
+ },
412
+ o: {
413
+ x: [.333],
414
+ y: [0]
415
+ },
416
+ t: 0,
417
+ s: [0]
418
+ }, {
419
+ t: 17,
420
+ s: [100]
421
+ }],
422
+ ix: 2
423
+ },
424
+ o: {
425
+ a: 0,
426
+ k: 0,
427
+ ix: 3
428
+ },
429
+ m: 1,
430
+ ix: 2,
431
+ nm: "Recortar trazados 1",
432
+ mn: "ADBE Vector Filter - Trim",
433
+ hd: !1
434
+ },
435
+ {
436
+ ty: "gr",
437
+ it: [{
438
+ ty: "st",
439
+ c: {
440
+ a: 1,
441
+ k: [{
442
+ i: {
443
+ x: [.667],
444
+ y: [1]
445
+ },
446
+ o: {
447
+ x: [.333],
448
+ y: [0]
449
+ },
450
+ t: 21,
451
+ s: [
452
+ .176470588235,
453
+ .16862745098,
454
+ .2,
455
+ 1
456
+ ]
457
+ }, {
458
+ t: 34,
459
+ s: [
460
+ 0,
461
+ .686274528503,
462
+ .274509817362,
463
+ 1
464
+ ]
465
+ }],
466
+ ix: 3
467
+ },
468
+ o: {
469
+ a: 0,
470
+ k: 100,
471
+ ix: 4
472
+ },
473
+ w: {
474
+ a: 0,
475
+ k: 50,
476
+ ix: 5
477
+ },
478
+ lc: 1,
479
+ lj: 1,
480
+ ml: 4,
481
+ bm: 0,
482
+ nm: "Trazo 1",
483
+ mn: "ADBE Vector Graphic - Stroke",
484
+ hd: !1
485
+ }, {
486
+ ty: "tr",
487
+ p: {
488
+ a: 0,
489
+ k: [0, 0],
490
+ ix: 2
491
+ },
492
+ a: {
493
+ a: 0,
494
+ k: [0, 0],
495
+ ix: 1
496
+ },
497
+ s: {
498
+ a: 0,
499
+ k: [100, 100],
500
+ ix: 3
501
+ },
502
+ r: {
503
+ a: 0,
504
+ k: 0,
505
+ ix: 6
506
+ },
507
+ o: {
508
+ a: 0,
509
+ k: 100,
510
+ ix: 7
511
+ },
512
+ sk: {
513
+ a: 0,
514
+ k: 0,
515
+ ix: 4
516
+ },
517
+ sa: {
518
+ a: 0,
519
+ k: 0,
520
+ ix: 5
521
+ },
522
+ nm: "Transformar"
523
+ }],
524
+ nm: "Grupo 2",
525
+ np: 1,
526
+ cix: 2,
527
+ bm: 0,
528
+ ix: 3,
529
+ mn: "ADBE Vector Group",
530
+ hd: !1
531
+ }
532
+ ],
533
+ ip: 0,
534
+ op: 51,
535
+ st: 0,
536
+ bm: 0
537
+ }], u = [{
538
+ tm: -147,
539
+ cm: "1",
540
+ dr: 0
541
+ }, {
542
+ tm: -98,
543
+ cm: "2",
544
+ dr: 0
545
+ }], d = {
546
+ v: e,
547
+ fr: 25,
548
+ ip: 0,
549
+ op: 51,
550
+ w: 800,
551
+ h: 800,
552
+ nm: o,
553
+ ddd: 0,
554
+ assets: c,
555
+ layers: l,
556
+ markers: u
557
+ };
558
+ //#endregion
559
+ export { c as assets, s as ddd, d as default, t as fr, a as h, n as ip, l as layers, u as markers, o as nm, r as op, e as v, i as w };
@@ -0,0 +1,17 @@
1
+ import { ActionType } from './ActionType.tsx';
2
+ import { Method, RequestBodyType } from '@dakataa/requester';
3
+ export type ActionRequestType = {
4
+ method?: Method;
5
+ action: ActionType;
6
+ parameters?: {
7
+ [key: string]: any;
8
+ };
9
+ query?: {
10
+ [key: string]: any;
11
+ };
12
+ body?: FormData | string | {
13
+ [key: string]: any;
14
+ };
15
+ bodyType?: RequestBodyType;
16
+ hash?: string;
17
+ };
@@ -0,0 +1,15 @@
1
+ import { RouteType } from './RouteType';
2
+ export declare enum ActionVisibility {
3
+ List = "list",
4
+ Object = "object",
5
+ Internal = "internal"
6
+ }
7
+ export type ActionType = {
8
+ entity: string;
9
+ namespace?: string;
10
+ name: string;
11
+ title?: string;
12
+ visibility?: ActionVisibility;
13
+ route?: RouteType;
14
+ permission?: string;
15
+ };
@@ -0,0 +1,24 @@
1
+ export type ColumnType = {
2
+ field: string;
3
+ label: string;
4
+ options: string[];
5
+ searchable: boolean | null;
6
+ sortable: boolean;
7
+ visible: boolean;
8
+ identifier: boolean;
9
+ value?: CallableFunction;
10
+ group?: string | false | null;
11
+ view?: {
12
+ header?: {
13
+ attr?: {
14
+ [key: string]: string;
15
+ };
16
+ };
17
+ content?: {
18
+ attr?: {
19
+ [key: string]: string;
20
+ };
21
+ };
22
+ };
23
+ useFlatKey?: boolean;
24
+ };
@@ -0,0 +1,6 @@
1
+ import { ExceptionTraceType } from '../component/error/HttpException.tsx';
2
+ export type ExceptionType = {
3
+ status: number;
4
+ detail: string;
5
+ trace?: ExceptionTraceType[];
6
+ };
@@ -0,0 +1,6 @@
1
+ import { FormViewType } from './FormViewType';
2
+ export type FormType = {
3
+ view: FormViewType;
4
+ message?: string;
5
+ context?: Record<string, unknown>;
6
+ };
@@ -0,0 +1,96 @@
1
+ import { CSSProperties } from 'react';
2
+ export type FormAttributes = {
3
+ [key: string]: string | number | boolean | Function | CSSProperties | undefined;
4
+ };
5
+ export type FormViewType = {
6
+ id?: string;
7
+ name?: string;
8
+ full_name?: string;
9
+ label?: string | undefined;
10
+ label_attr?: {
11
+ [key: string]: string;
12
+ } | Function;
13
+ label_html?: boolean;
14
+ placeholder?: string | undefined;
15
+ placeholder_attr?: {
16
+ [key: string]: string;
17
+ } | Function;
18
+ placeholder_in_choices?: boolean;
19
+ help?: string | null | undefined;
20
+ help_attr?: {
21
+ [key: string]: string;
22
+ } | Function;
23
+ help_html?: boolean;
24
+ disabled?: boolean;
25
+ required?: boolean;
26
+ submitted?: boolean;
27
+ expanded?: boolean;
28
+ multiple?: boolean;
29
+ checked?: boolean | ((choice: string) => boolean);
30
+ priority?: number;
31
+ type: FormViewTypeEnum | string;
32
+ block_prefixes?: [FormViewTypeEnum | string];
33
+ valid?: boolean;
34
+ errors?: FormViewErrorType[];
35
+ children?: {
36
+ [key: string]: FormViewType;
37
+ };
38
+ choices?: ChoiceUnionType;
39
+ preferred_choices?: {
40
+ [key: string]: any;
41
+ };
42
+ choice_attr?: FormAttributes | Function;
43
+ attr?: FormAttributes | Function;
44
+ value?: string;
45
+ data?: any;
46
+ rendered?: boolean;
47
+ prototype?: FormViewType;
48
+ prototype_name?: string;
49
+ };
50
+ export declare enum FormViewTypeEnum {
51
+ Form = "form",
52
+ Input = "input",
53
+ Money = "money",
54
+ Hidden = "hidden",
55
+ Number = "number",
56
+ Text = "text",
57
+ Textarea = "textarea",
58
+ Tel = "tel",
59
+ Checkbox = "checkbox",
60
+ Radio = "radio",
61
+ Integer = "integer",
62
+ Password = "password",
63
+ Email = "email",
64
+ Choice = "choice",
65
+ Enum = "enum",
66
+ Entity = "entity",
67
+ Collection = "collection",
68
+ Repeated = "repeated",
69
+ Datetime = "datetime",
70
+ Date = "date",
71
+ Time = "time",
72
+ Currency = "currency",
73
+ Language = "language",
74
+ Birthday = "birthday"
75
+ }
76
+ export type FormViewErrorType = {
77
+ message: string;
78
+ origin?: string | null;
79
+ messageParameters?: {
80
+ [key: string]: string;
81
+ };
82
+ messageTemplate?: string;
83
+ };
84
+ export type ChoiceType = {
85
+ value: string | number | null | Function;
86
+ label: string | ((v: ChoiceType) => string);
87
+ attr?: FormAttributes | Function;
88
+ data?: {
89
+ [key: string]: any;
90
+ };
91
+ };
92
+ export type ChoiceGroupType = {
93
+ label: string;
94
+ choices: ChoiceType[] | Record<string, ChoiceType>;
95
+ };
96
+ export type ChoiceUnionType = ChoiceType[] | ChoiceGroupType[];
@@ -0,0 +1,8 @@
1
+ export type ListMetaType = {
2
+ links: number[];
3
+ maxResults: number;
4
+ hardMaxResults: number;
5
+ page: number;
6
+ totalPages: number;
7
+ totalResults: number;
8
+ };