@dakataa/crud-react 1.0.9 → 2.0.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 (108) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +837 -96
  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 +6 -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 +7 -0
  22. package/dist/component/crud/ItemLabel.d.ts +6 -0
  23. package/dist/component/crud/ItemValue.d.ts +6 -0
  24. package/dist/component/crud/List.d.ts +19 -0
  25. package/dist/component/crud/ListItem.d.ts +4 -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 +2 -0
  30. package/dist/component/crud/ViewLoader.d.ts +14 -0
  31. package/dist/component/crud/batch/BatchActionSelector.d.ts +2 -0
  32. package/dist/component/crud/batch/BatchActionsContext.d.ts +17 -0
  33. package/dist/component/crud/batch/BatchItemSelector.d.ts +4 -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 +11 -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/NamespaceContext.d.ts +5 -0
  78. package/dist/crud-react.css +2 -1
  79. package/dist/crud-react.js +4015 -2881
  80. package/dist/denied-Emsz18Y8.js +688 -0
  81. package/dist/helper/ObjectUtils.d.ts +3 -0
  82. package/dist/helper/PathUtils.d.ts +12 -0
  83. package/dist/helper/StringUtils.d.ts +3 -0
  84. package/dist/info-C897Uj_w.js +626 -0
  85. package/dist/layout/default/Base.d.ts +5 -0
  86. package/dist/layout/default/Error.d.ts +11 -0
  87. package/dist/layout/default/Main.d.ts +4 -0
  88. package/dist/main.d.ts +91 -77
  89. package/dist/setupTests.d.ts +0 -0
  90. package/dist/success-YbPKEx5j.js +559 -0
  91. package/dist/type/ActionRequestType.d.ts +17 -0
  92. package/dist/type/ActionType.d.ts +15 -0
  93. package/dist/type/ColumnType.d.ts +24 -0
  94. package/dist/type/ExceptionType.d.ts +6 -0
  95. package/dist/type/FormType.d.ts +6 -0
  96. package/dist/type/FormViewType.d.ts +96 -0
  97. package/dist/type/ListMetaType.d.ts +8 -0
  98. package/dist/type/ListType.d.ts +32 -0
  99. package/dist/type/ModifyType.d.ts +15 -0
  100. package/dist/type/RedirectType.d.ts +7 -0
  101. package/dist/type/RouteType.d.ts +7 -0
  102. package/dist/type/ViewType.d.ts +15 -0
  103. package/dist/warning-DJITKJj5.js +630 -0
  104. package/package.json +86 -81
  105. package/dist/denied-CgoMpaA7.js +0 -27
  106. package/dist/info-D-NzIEYs.js +0 -144
  107. package/dist/success-Bu_BJcf1.js +0 -27
  108. package/dist/warning-B1nr7TsB.js +0 -27
@@ -0,0 +1,32 @@
1
+ import { ColumnType } from './ColumnType';
2
+ import { ActionType } from './ActionType';
3
+ import { ListMetaType } from './ListMetaType';
4
+ import { FormType } from './FormType';
5
+ export type ListType = {
6
+ title: string | null;
7
+ entity: {
8
+ name: string;
9
+ columns: ColumnType[];
10
+ primaryColumn: ColumnType;
11
+ data: {
12
+ items: [{
13
+ [key: string]: any;
14
+ }];
15
+ meta: ListMetaType;
16
+ };
17
+ acl: {
18
+ [key: string]: [number | string];
19
+ };
20
+ };
21
+ form: {
22
+ [key: string]: FormType;
23
+ filter: FormType;
24
+ batch: FormType;
25
+ };
26
+ sort: {
27
+ [key: string]: 'ASC' | 'DESC' | null;
28
+ };
29
+ action: {
30
+ [key: string]: ActionType;
31
+ };
32
+ };
@@ -0,0 +1,15 @@
1
+ import { FormType } from './FormType';
2
+ import { RedirectType } from './RedirectType';
3
+ export type ModifyType = {
4
+ title: string | null;
5
+ object: {
6
+ [key: string]: any;
7
+ } | null;
8
+ form: {
9
+ [key: string]: FormType;
10
+ };
11
+ messages: {
12
+ [key: string]: string[];
13
+ };
14
+ redirect?: RedirectType;
15
+ };
@@ -0,0 +1,7 @@
1
+ import { RouteType } from './RouteType';
2
+ export type RedirectType = {
3
+ route: RouteType;
4
+ parameters: {
5
+ [key: string]: string;
6
+ };
7
+ };
@@ -0,0 +1,7 @@
1
+ export type RouteType = {
2
+ path: string;
3
+ defaults?: {
4
+ [key: string]: string;
5
+ };
6
+ methods?: string[];
7
+ };
@@ -0,0 +1,15 @@
1
+ import { ColumnType } from './ColumnType';
2
+ export type ViewType = {
3
+ title: string | null;
4
+ entity: {
5
+ name: string;
6
+ columns: ColumnType[];
7
+ primaryColumn: ColumnType;
8
+ data: {
9
+ [key: string]: any;
10
+ };
11
+ acl: {
12
+ [key: string]: [number | string];
13
+ };
14
+ };
15
+ };
@@ -0,0 +1,630 @@
1
+ //#region src/assets/images/alert/warning.json
2
+ var e = "5.9.2", t = 25, n = 0, r = 51, i = 800, a = 800, o = "Azul", s = 0, c = [], l = [
3
+ {
4
+ ddd: 0,
5
+ ind: 1,
6
+ ty: 4,
7
+ nm: "Capa de formas 14",
8
+ sr: 1,
9
+ ks: {
10
+ o: {
11
+ a: 0,
12
+ k: 100,
13
+ ix: 11
14
+ },
15
+ r: {
16
+ a: 0,
17
+ k: 0,
18
+ ix: 10
19
+ },
20
+ p: {
21
+ a: 0,
22
+ k: [
23
+ 401.405,
24
+ 551.405,
25
+ 0
26
+ ],
27
+ ix: 2,
28
+ l: 2
29
+ },
30
+ a: {
31
+ a: 0,
32
+ k: [
33
+ -10.595,
34
+ 165.405,
35
+ 0
36
+ ],
37
+ ix: 1,
38
+ l: 2
39
+ },
40
+ s: {
41
+ a: 1,
42
+ k: [{
43
+ i: {
44
+ x: [
45
+ .667,
46
+ .667,
47
+ .667
48
+ ],
49
+ y: [
50
+ 1,
51
+ 1,
52
+ 1
53
+ ]
54
+ },
55
+ o: {
56
+ x: [
57
+ .167,
58
+ .167,
59
+ .167
60
+ ],
61
+ y: [
62
+ 0,
63
+ 0,
64
+ 0
65
+ ]
66
+ },
67
+ t: 16,
68
+ s: [
69
+ 0,
70
+ 0,
71
+ 100
72
+ ]
73
+ }, {
74
+ t: 20,
75
+ s: [
76
+ 216.866,
77
+ 216.866,
78
+ 100
79
+ ]
80
+ }],
81
+ ix: 6,
82
+ l: 2
83
+ }
84
+ },
85
+ ao: 0,
86
+ shapes: [{
87
+ ty: "gr",
88
+ it: [
89
+ {
90
+ d: 1,
91
+ ty: "el",
92
+ s: {
93
+ a: 0,
94
+ k: [30.81, 30.81],
95
+ ix: 2
96
+ },
97
+ p: {
98
+ a: 0,
99
+ k: [0, 0],
100
+ ix: 3
101
+ },
102
+ nm: "Trazado elíptico 1",
103
+ mn: "ADBE Vector Shape - Ellipse",
104
+ hd: !1
105
+ },
106
+ {
107
+ ty: "fl",
108
+ c: {
109
+ a: 0,
110
+ k: [
111
+ 1,
112
+ .517647058824,
113
+ .074509803922,
114
+ 1
115
+ ],
116
+ ix: 4
117
+ },
118
+ o: {
119
+ a: 0,
120
+ k: 100,
121
+ ix: 5
122
+ },
123
+ r: 1,
124
+ bm: 0,
125
+ nm: "Relleno 1",
126
+ mn: "ADBE Vector Graphic - Fill",
127
+ hd: !1
128
+ },
129
+ {
130
+ ty: "tr",
131
+ p: {
132
+ a: 0,
133
+ k: [-10.595, 165.405],
134
+ ix: 2
135
+ },
136
+ a: {
137
+ a: 0,
138
+ k: [0, 0],
139
+ ix: 1
140
+ },
141
+ s: {
142
+ a: 0,
143
+ k: [100, 100],
144
+ ix: 3
145
+ },
146
+ r: {
147
+ a: 0,
148
+ k: 0,
149
+ ix: 6
150
+ },
151
+ o: {
152
+ a: 0,
153
+ k: 100,
154
+ ix: 7
155
+ },
156
+ sk: {
157
+ a: 0,
158
+ k: 0,
159
+ ix: 4
160
+ },
161
+ sa: {
162
+ a: 0,
163
+ k: 0,
164
+ ix: 5
165
+ },
166
+ nm: "Transformar"
167
+ }
168
+ ],
169
+ nm: "Elipse 1",
170
+ np: 3,
171
+ cix: 2,
172
+ bm: 0,
173
+ ix: 1,
174
+ mn: "ADBE Vector Group",
175
+ hd: !1
176
+ }],
177
+ ip: 16,
178
+ op: 51,
179
+ st: -757,
180
+ bm: 0
181
+ },
182
+ {
183
+ ddd: 0,
184
+ ind: 2,
185
+ ty: 4,
186
+ nm: "Capa de formas 13",
187
+ sr: 1,
188
+ ks: {
189
+ o: {
190
+ a: 0,
191
+ k: 100,
192
+ ix: 11
193
+ },
194
+ r: {
195
+ a: 0,
196
+ k: 0,
197
+ ix: 10
198
+ },
199
+ p: {
200
+ a: 0,
201
+ k: [
202
+ 396.219,
203
+ 320,
204
+ 0
205
+ ],
206
+ ix: 2,
207
+ l: 2
208
+ },
209
+ a: {
210
+ a: 0,
211
+ k: [
212
+ -12,
213
+ -56,
214
+ 0
215
+ ],
216
+ ix: 1,
217
+ l: 2
218
+ },
219
+ s: {
220
+ a: 0,
221
+ k: [
222
+ 100,
223
+ 81.25,
224
+ 100
225
+ ],
226
+ ix: 6,
227
+ l: 2
228
+ }
229
+ },
230
+ ao: 0,
231
+ shapes: [{
232
+ ty: "gr",
233
+ it: [
234
+ {
235
+ ind: 0,
236
+ ty: "sh",
237
+ ix: 1,
238
+ ks: {
239
+ a: 0,
240
+ k: {
241
+ i: [[0, 0], [0, 0]],
242
+ o: [[0, 0], [0, 0]],
243
+ v: [[-12, -216], [-12, 104]],
244
+ c: !1
245
+ },
246
+ ix: 2
247
+ },
248
+ nm: "Trazado 1",
249
+ mn: "ADBE Vector Shape - Group",
250
+ hd: !1
251
+ },
252
+ {
253
+ ty: "st",
254
+ c: {
255
+ a: 0,
256
+ k: [
257
+ 1,
258
+ .517647058824,
259
+ .074509803922,
260
+ 1
261
+ ],
262
+ ix: 3
263
+ },
264
+ o: {
265
+ a: 0,
266
+ k: 100,
267
+ ix: 4
268
+ },
269
+ w: {
270
+ a: 0,
271
+ k: 74,
272
+ ix: 5
273
+ },
274
+ lc: 2,
275
+ lj: 1,
276
+ ml: 4,
277
+ bm: 0,
278
+ nm: "Trazo 1",
279
+ mn: "ADBE Vector Graphic - Stroke",
280
+ hd: !1
281
+ },
282
+ {
283
+ ty: "tr",
284
+ p: {
285
+ a: 0,
286
+ k: [0, 0],
287
+ ix: 2
288
+ },
289
+ a: {
290
+ a: 0,
291
+ k: [0, 0],
292
+ ix: 1
293
+ },
294
+ s: {
295
+ a: 0,
296
+ k: [68.49, 76.853],
297
+ ix: 3
298
+ },
299
+ r: {
300
+ a: 0,
301
+ k: 0,
302
+ ix: 6
303
+ },
304
+ o: {
305
+ a: 0,
306
+ k: 100,
307
+ ix: 7
308
+ },
309
+ sk: {
310
+ a: 0,
311
+ k: 0,
312
+ ix: 4
313
+ },
314
+ sa: {
315
+ a: 0,
316
+ k: 0,
317
+ ix: 5
318
+ },
319
+ nm: "Transformar"
320
+ }
321
+ ],
322
+ nm: "Forma 1",
323
+ np: 3,
324
+ cix: 2,
325
+ bm: 0,
326
+ ix: 1,
327
+ mn: "ADBE Vector Group",
328
+ hd: !1
329
+ }, {
330
+ ty: "tm",
331
+ s: {
332
+ a: 0,
333
+ k: 0,
334
+ ix: 1
335
+ },
336
+ e: {
337
+ a: 1,
338
+ k: [{
339
+ i: {
340
+ x: [.667],
341
+ y: [1]
342
+ },
343
+ o: {
344
+ x: [.333],
345
+ y: [0]
346
+ },
347
+ t: 10,
348
+ s: [0]
349
+ }, {
350
+ t: 16,
351
+ s: [100]
352
+ }],
353
+ ix: 2
354
+ },
355
+ o: {
356
+ a: 0,
357
+ k: 0,
358
+ ix: 3
359
+ },
360
+ m: 1,
361
+ ix: 2,
362
+ nm: "Recortar trazados 1",
363
+ mn: "ADBE Vector Filter - Trim",
364
+ hd: !1
365
+ }],
366
+ ip: 0,
367
+ op: 51,
368
+ st: -777,
369
+ bm: 0
370
+ },
371
+ {
372
+ ddd: 0,
373
+ ind: 3,
374
+ ty: 4,
375
+ nm: "Capa 1 contornos 16",
376
+ sr: 1,
377
+ ks: {
378
+ o: {
379
+ a: 0,
380
+ k: 100,
381
+ ix: 11
382
+ },
383
+ r: {
384
+ a: 1,
385
+ k: [{
386
+ i: {
387
+ x: [.667],
388
+ y: [1]
389
+ },
390
+ o: {
391
+ x: [.333],
392
+ y: [0]
393
+ },
394
+ t: 0,
395
+ s: [-90]
396
+ }, {
397
+ t: 50,
398
+ s: [270]
399
+ }],
400
+ ix: 10
401
+ },
402
+ p: {
403
+ a: 0,
404
+ k: [
405
+ 400,
406
+ 400,
407
+ 0
408
+ ],
409
+ ix: 2,
410
+ l: 2
411
+ },
412
+ a: {
413
+ a: 0,
414
+ k: [
415
+ 586.5,
416
+ 586.5,
417
+ 0
418
+ ],
419
+ ix: 1,
420
+ l: 2
421
+ },
422
+ s: {
423
+ a: 0,
424
+ k: [
425
+ 100,
426
+ 100,
427
+ 100
428
+ ],
429
+ ix: 6,
430
+ l: 2
431
+ }
432
+ },
433
+ ao: 0,
434
+ shapes: [{
435
+ ty: "gr",
436
+ it: [
437
+ {
438
+ ind: 0,
439
+ ty: "sh",
440
+ ix: 1,
441
+ ks: {
442
+ a: 0,
443
+ k: {
444
+ i: [
445
+ [0, -185.844],
446
+ [185.844, 0],
447
+ [0, 185.844],
448
+ [-185.844, 0]
449
+ ],
450
+ o: [
451
+ [0, 185.844],
452
+ [-185.844, 0],
453
+ [0, -185.844],
454
+ [185.844, 0]
455
+ ],
456
+ v: [
457
+ [336.5, 0],
458
+ [0, 336.5],
459
+ [-336.5, 0],
460
+ [0, -336.5]
461
+ ],
462
+ c: !0
463
+ },
464
+ ix: 2
465
+ },
466
+ nm: "Trazado 1",
467
+ mn: "ADBE Vector Shape - Group",
468
+ hd: !1
469
+ },
470
+ {
471
+ ty: "st",
472
+ c: {
473
+ a: 1,
474
+ k: [{
475
+ i: {
476
+ x: [.667],
477
+ y: [1]
478
+ },
479
+ o: {
480
+ x: [.333],
481
+ y: [0]
482
+ },
483
+ t: 0,
484
+ s: [
485
+ .176470592618,
486
+ .168627455831,
487
+ .20000000298,
488
+ 1
489
+ ]
490
+ }, {
491
+ t: 12,
492
+ s: [
493
+ 1,
494
+ .517647087574,
495
+ .074509806931,
496
+ 1
497
+ ]
498
+ }],
499
+ ix: 3
500
+ },
501
+ o: {
502
+ a: 0,
503
+ k: 100,
504
+ ix: 4
505
+ },
506
+ w: {
507
+ a: 0,
508
+ k: 50,
509
+ ix: 5
510
+ },
511
+ lc: 2,
512
+ lj: 1,
513
+ ml: 10,
514
+ bm: 0,
515
+ nm: "Trazo 1",
516
+ mn: "ADBE Vector Graphic - Stroke",
517
+ hd: !1
518
+ },
519
+ {
520
+ ty: "tr",
521
+ p: {
522
+ a: 0,
523
+ k: [586.5, 586.5],
524
+ ix: 2
525
+ },
526
+ a: {
527
+ a: 0,
528
+ k: [0, 0],
529
+ ix: 1
530
+ },
531
+ s: {
532
+ a: 0,
533
+ k: [100, 100],
534
+ ix: 3
535
+ },
536
+ r: {
537
+ a: 0,
538
+ k: 0,
539
+ ix: 6
540
+ },
541
+ o: {
542
+ a: 0,
543
+ k: 100,
544
+ ix: 7
545
+ },
546
+ sk: {
547
+ a: 0,
548
+ k: 0,
549
+ ix: 4
550
+ },
551
+ sa: {
552
+ a: 0,
553
+ k: 0,
554
+ ix: 5
555
+ },
556
+ nm: "Transformar"
557
+ }
558
+ ],
559
+ nm: "Grupo 1",
560
+ np: 2,
561
+ cix: 2,
562
+ bm: 0,
563
+ ix: 1,
564
+ mn: "ADBE Vector Group",
565
+ hd: !1
566
+ }, {
567
+ ty: "tm",
568
+ s: {
569
+ a: 0,
570
+ k: 0,
571
+ ix: 1
572
+ },
573
+ e: {
574
+ a: 1,
575
+ k: [{
576
+ i: {
577
+ x: [.667],
578
+ y: [1]
579
+ },
580
+ o: {
581
+ x: [.333],
582
+ y: [0]
583
+ },
584
+ t: 0,
585
+ s: [0]
586
+ }, {
587
+ t: 17,
588
+ s: [100]
589
+ }],
590
+ ix: 2
591
+ },
592
+ o: {
593
+ a: 0,
594
+ k: 0,
595
+ ix: 3
596
+ },
597
+ m: 1,
598
+ ix: 2,
599
+ nm: "Recortar trazados 1",
600
+ mn: "ADBE Vector Filter - Trim",
601
+ hd: !1
602
+ }],
603
+ ip: 0,
604
+ op: 51,
605
+ st: 0,
606
+ bm: 0
607
+ }
608
+ ], u = [{
609
+ tm: -356,
610
+ cm: "1",
611
+ dr: 0
612
+ }, {
613
+ tm: -307,
614
+ cm: "2",
615
+ dr: 0
616
+ }], d = {
617
+ v: e,
618
+ fr: 25,
619
+ ip: 0,
620
+ op: 51,
621
+ w: 800,
622
+ h: 800,
623
+ nm: o,
624
+ ddd: 0,
625
+ assets: c,
626
+ layers: l,
627
+ markers: u
628
+ };
629
+ //#endregion
630
+ 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 };