impaktapps-ui-builder 0.0.382-alpha.1 → 0.0.382-alpha.1000
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/dist/impaktapps-ui-builder.d.ts +1 -0
- package/dist/impaktapps-ui-builder.es.js +11324 -0
- package/dist/impaktapps-ui-builder.es.js.map +1 -0
- package/dist/impaktapps-ui-builder.umd.js +28 -0
- package/dist/impaktapps-ui-builder.umd.js.map +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildAadharCard.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildArray.d.ts +11 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +5 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildButton.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildCheckbox.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +4 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildDataGrid.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildDate.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildDownloadFile.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildEmptyBox.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildFileInput.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildLabel.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildLeaderboard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildLineGraph.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildMultiSelect.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPieGraph.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPop.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildProgressBar.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildProgressBarCard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildRadio.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildRankCard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildRollAndDice.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildRunnerBoyProgrssBar.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildSelect.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildSlider.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildSpeedoMeter.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStepper.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildTabSection.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildText.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildTextArea.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildTimer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +12 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildUplaodFile.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildWrapperSection.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +134 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +13 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +51 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +28 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +120 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/cardSlider.d.ts +13 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +134 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.d.ts +20 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.d.ts +18 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +157 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +46 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +177 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.d.ts +14 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +297 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +23 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +16 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/rankCard.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +48 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/rollAndDice.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +21 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/speedoMeter.d.ts +52 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/styleSection.d.ts +33 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +136 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tabsection.d.ts +12 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/textInputField.d.ts +20 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +31 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +32 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +31 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +12 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +38 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +73 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +20 -0
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +88 -0
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +61 -0
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +10 -0
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +9 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +8 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +11 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +27 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +18 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +4 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +178 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +236 -59
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +87 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +22 -4
- package/src/impaktapps-ui-builder/builder/services/event.ts +9 -1
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -2
- package/src/impaktapps-ui-builder/runtime/services/service.ts +6 -7
|
@@ -159,72 +159,74 @@ export const PageMasterUiSchema: any = {
|
|
|
159
159
|
},
|
|
160
160
|
},
|
|
161
161
|
},
|
|
162
|
-
{
|
|
163
|
-
type: "Control",
|
|
164
|
-
scope: "#/properties/elements",
|
|
165
|
-
options: {
|
|
166
|
-
widget: "Table",
|
|
167
|
-
},
|
|
168
|
-
config: {
|
|
169
|
-
main: {
|
|
170
|
-
disableAction: true,
|
|
171
|
-
disableSelection: true,
|
|
172
|
-
enableDrag: true,
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
elements: [
|
|
176
162
|
{
|
|
177
|
-
|
|
163
|
+
type: "Control",
|
|
164
|
+
scope: "#/properties/elements",
|
|
165
|
+
options: {
|
|
166
|
+
widget: "Table",
|
|
167
|
+
},
|
|
168
|
+
config: {
|
|
169
|
+
main: {
|
|
170
|
+
disableAction: true,
|
|
171
|
+
disableSelection: true,
|
|
172
|
+
enableDrag: true,
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
elements: [
|
|
176
|
+
{
|
|
177
|
+
accessorKey: "name",
|
|
178
178
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
header: "Name",
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
accessorKey: "type",
|
|
183
183
|
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
header: "Edit",
|
|
188
|
-
field: "Reject_Records",
|
|
189
|
-
flex: 1,
|
|
190
|
-
widget: {
|
|
191
|
-
type: "Control",
|
|
192
|
-
scope: "#/properties/RejectButton",
|
|
193
|
-
options: {
|
|
194
|
-
widget: "IconButton",
|
|
184
|
+
header: "Type",
|
|
195
185
|
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
186
|
+
{
|
|
187
|
+
header: "Edit",
|
|
188
|
+
field: "Reject_Records",
|
|
189
|
+
flex: 1,
|
|
190
|
+
widget: {
|
|
191
|
+
type: "Control",
|
|
192
|
+
scope: "#/properties/RejectButton",
|
|
193
|
+
options: {
|
|
194
|
+
widget: "IconButton",
|
|
195
|
+
},
|
|
196
|
+
config: {
|
|
197
|
+
main: {
|
|
198
|
+
icon: "EditIcon",
|
|
199
|
+
color: "primary",
|
|
200
|
+
onClick: "Edit_Components",
|
|
201
|
+
tooltipMessage: "Edit This Record",
|
|
202
|
+
},
|
|
203
|
+
},
|
|
202
204
|
},
|
|
203
205
|
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
206
|
+
{
|
|
207
|
+
header: "Delete",
|
|
208
|
+
field: "Reject_Records",
|
|
209
|
+
flex: 1,
|
|
210
|
+
widget: {
|
|
211
|
+
type: "Control",
|
|
212
|
+
scope: "#/properties/RejectButton",
|
|
213
|
+
options: {
|
|
214
|
+
widget: "IconButton",
|
|
215
|
+
},
|
|
216
|
+
config: {
|
|
217
|
+
main: {
|
|
218
|
+
icon: "RejectIcon",
|
|
219
|
+
color: "error",
|
|
220
|
+
onClick: "deletePopUpComponent",
|
|
221
|
+
tooltipMessage: "Reject This Record",
|
|
222
|
+
},
|
|
223
|
+
},
|
|
222
224
|
},
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
}
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
226
228
|
]
|
|
227
|
-
}
|
|
229
|
+
},
|
|
228
230
|
{
|
|
229
231
|
type: "WrapperLayout",
|
|
230
232
|
config: {
|
|
@@ -339,7 +341,7 @@ export const PageMasterUiSchema: any = {
|
|
|
339
341
|
icon: "RejectIcon",
|
|
340
342
|
color: "error",
|
|
341
343
|
tooltipMessage: "Reject This Record",
|
|
342
|
-
onClick: "
|
|
344
|
+
onClick: "deletePopUpEvent",
|
|
343
345
|
},
|
|
344
346
|
},
|
|
345
347
|
},
|
|
@@ -350,6 +352,181 @@ export const PageMasterUiSchema: any = {
|
|
|
350
352
|
|
|
351
353
|
],
|
|
352
354
|
},
|
|
355
|
+
|
|
356
|
+
{
|
|
357
|
+
type: "Control",
|
|
358
|
+
scope: "#/properties/popUpPageMasterEvent",
|
|
359
|
+
options: {
|
|
360
|
+
widget: "PopUp"
|
|
361
|
+
},
|
|
362
|
+
config: {
|
|
363
|
+
layout: {
|
|
364
|
+
xs: 12,
|
|
365
|
+
sm: 12,
|
|
366
|
+
md: 12,
|
|
367
|
+
lg: 12,
|
|
368
|
+
},
|
|
369
|
+
main: {
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
elements:
|
|
373
|
+
[
|
|
374
|
+
{
|
|
375
|
+
type: "Control",
|
|
376
|
+
scope: "#/properties/label",
|
|
377
|
+
options: {
|
|
378
|
+
widget: "Box",
|
|
379
|
+
},
|
|
380
|
+
config: {
|
|
381
|
+
layout: 12,
|
|
382
|
+
main: {
|
|
383
|
+
heading: "Are you sure you want to delete ?",
|
|
384
|
+
},
|
|
385
|
+
style:{
|
|
386
|
+
marginTop: "-40px"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
type: "Control",
|
|
392
|
+
scope: "#/properties/EmptyBox",
|
|
393
|
+
options: {
|
|
394
|
+
widget: "EmptyBox",
|
|
395
|
+
},
|
|
396
|
+
config: {
|
|
397
|
+
main:{},
|
|
398
|
+
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
|
|
399
|
+
},
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
type: "Control",
|
|
403
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
404
|
+
options: {
|
|
405
|
+
widget: "Button",
|
|
406
|
+
},
|
|
407
|
+
config: {
|
|
408
|
+
layout: 3,
|
|
409
|
+
main: {
|
|
410
|
+
name: "Yes",
|
|
411
|
+
startIcon: "ApproveIcon",
|
|
412
|
+
variant: "contained",
|
|
413
|
+
color: "info",
|
|
414
|
+
type: "text",
|
|
415
|
+
onClick: "deleteEvent",
|
|
416
|
+
size: "small",
|
|
417
|
+
},
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
type: "Control",
|
|
422
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
423
|
+
options: {
|
|
424
|
+
widget: "Button",
|
|
425
|
+
},
|
|
426
|
+
config: {
|
|
427
|
+
layout: 3,
|
|
428
|
+
main: {
|
|
429
|
+
name: "No",
|
|
430
|
+
startIcon: "ApproveIcon",
|
|
431
|
+
variant: "contained",
|
|
432
|
+
color: "info",
|
|
433
|
+
type: "text",
|
|
434
|
+
onClick: "deletePopUpEvent",
|
|
435
|
+
size: "small",
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
},
|
|
439
|
+
]
|
|
440
|
+
},
|
|
441
|
+
|
|
442
|
+
{
|
|
443
|
+
type: "Control",
|
|
444
|
+
scope: "#/properties/popUpPageMasterComponent",
|
|
445
|
+
options: {
|
|
446
|
+
widget: "PopUp"
|
|
447
|
+
},
|
|
448
|
+
config: {
|
|
449
|
+
layout: {
|
|
450
|
+
xs: 12,
|
|
451
|
+
sm: 12,
|
|
452
|
+
md: 12,
|
|
453
|
+
lg: 12,
|
|
454
|
+
},
|
|
455
|
+
main: {
|
|
456
|
+
},
|
|
457
|
+
},
|
|
458
|
+
elements:
|
|
459
|
+
[
|
|
460
|
+
{
|
|
461
|
+
type: "Control",
|
|
462
|
+
scope: "#/properties/label",
|
|
463
|
+
options: {
|
|
464
|
+
widget: "Box",
|
|
465
|
+
},
|
|
466
|
+
config: {
|
|
467
|
+
layout: 12,
|
|
468
|
+
main: {
|
|
469
|
+
heading: "Are you sure you want to delete ?",
|
|
470
|
+
},
|
|
471
|
+
style:{
|
|
472
|
+
marginTop: "-40px"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
type: "Control",
|
|
478
|
+
scope: "#/properties/EmptyBox",
|
|
479
|
+
options: {
|
|
480
|
+
widget: "EmptyBox",
|
|
481
|
+
},
|
|
482
|
+
config: {
|
|
483
|
+
main:{},
|
|
484
|
+
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
|
|
485
|
+
},
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
type: "Control",
|
|
489
|
+
scope: "#/properties/ConfirmDeleteCompButton",
|
|
490
|
+
options: {
|
|
491
|
+
widget: "Button",
|
|
492
|
+
},
|
|
493
|
+
config: {
|
|
494
|
+
layout: 3,
|
|
495
|
+
main: {
|
|
496
|
+
name: "Yes",
|
|
497
|
+
startIcon: "ApproveIcon",
|
|
498
|
+
variant: "contained",
|
|
499
|
+
color: "info",
|
|
500
|
+
type: "text",
|
|
501
|
+
onClick: "Delete_Components",
|
|
502
|
+
size: "small",
|
|
503
|
+
},
|
|
504
|
+
},
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
type: "Control",
|
|
508
|
+
scope: "#/properties/CancelDeleteCompButton",
|
|
509
|
+
options: {
|
|
510
|
+
widget: "Button",
|
|
511
|
+
},
|
|
512
|
+
config: {
|
|
513
|
+
layout: 3,
|
|
514
|
+
main: {
|
|
515
|
+
name: "No",
|
|
516
|
+
startIcon: "ApproveIcon",
|
|
517
|
+
variant: "contained",
|
|
518
|
+
color: "info",
|
|
519
|
+
type: "text",
|
|
520
|
+
onClick: "deletePopUpComponent",
|
|
521
|
+
size: "small",
|
|
522
|
+
},
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
]
|
|
526
|
+
},
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
353
530
|
{
|
|
354
531
|
type: "Control",
|
|
355
532
|
scope: "#/properties/btn",
|
|
@@ -228,7 +228,7 @@ export const EventUiSchema: any = {
|
|
|
228
228
|
icon: "RejectIcon",
|
|
229
229
|
color: "error",
|
|
230
230
|
tooltipMessage: "Reject This Record",
|
|
231
|
-
onClick: "
|
|
231
|
+
onClick: "deletePopUpEvent",
|
|
232
232
|
},
|
|
233
233
|
},
|
|
234
234
|
},
|
|
@@ -238,6 +238,92 @@ export const EventUiSchema: any = {
|
|
|
238
238
|
}
|
|
239
239
|
],
|
|
240
240
|
},
|
|
241
|
+
{
|
|
242
|
+
type: "Control",
|
|
243
|
+
scope: "#/properties/popUpEvent",
|
|
244
|
+
options: {
|
|
245
|
+
widget: "PopUp"
|
|
246
|
+
},
|
|
247
|
+
config: {
|
|
248
|
+
layout: {
|
|
249
|
+
xs: 12,
|
|
250
|
+
sm: 12,
|
|
251
|
+
md: 12,
|
|
252
|
+
lg: 12,
|
|
253
|
+
},
|
|
254
|
+
main: {
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
elements:
|
|
258
|
+
[
|
|
259
|
+
{
|
|
260
|
+
type: "Control",
|
|
261
|
+
scope: "#/properties/label",
|
|
262
|
+
options: {
|
|
263
|
+
widget: "Box",
|
|
264
|
+
},
|
|
265
|
+
config: {
|
|
266
|
+
layout: 12,
|
|
267
|
+
main: {
|
|
268
|
+
heading: "Are you sure you want to delete ?",
|
|
269
|
+
},
|
|
270
|
+
style:{
|
|
271
|
+
marginTop: "-40px"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
type: "Control",
|
|
277
|
+
scope: "#/properties/EmptyBox",
|
|
278
|
+
options: {
|
|
279
|
+
widget: "EmptyBox",
|
|
280
|
+
},
|
|
281
|
+
config: {
|
|
282
|
+
main:{},
|
|
283
|
+
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
type: "Control",
|
|
288
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
289
|
+
options: {
|
|
290
|
+
widget: "Button",
|
|
291
|
+
},
|
|
292
|
+
config: {
|
|
293
|
+
layout: 3,
|
|
294
|
+
main: {
|
|
295
|
+
name: "Yes",
|
|
296
|
+
startIcon: "ApproveIcon",
|
|
297
|
+
variant: "contained",
|
|
298
|
+
color: "info",
|
|
299
|
+
type: "text",
|
|
300
|
+
onClick: "deleteEvent",
|
|
301
|
+
size: "small",
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
type: "Control",
|
|
307
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
308
|
+
options: {
|
|
309
|
+
widget: "Button",
|
|
310
|
+
},
|
|
311
|
+
config: {
|
|
312
|
+
layout: 3,
|
|
313
|
+
main: {
|
|
314
|
+
name: "No",
|
|
315
|
+
startIcon: "ApproveIcon",
|
|
316
|
+
variant: "contained",
|
|
317
|
+
color: "info",
|
|
318
|
+
type: "text",
|
|
319
|
+
onClick: "deletePopUpEvent",
|
|
320
|
+
size: "small",
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
|
|
241
327
|
{
|
|
242
328
|
type: "Control",
|
|
243
329
|
scope: "#/properties/proc",
|
|
@@ -104,20 +104,28 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
104
104
|
store.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`)
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
|
-
deleteComponents: function () {
|
|
107
|
+
deleteComponents: function (shouldUpdateDialog: boolean = true) {
|
|
108
108
|
const path = store.searchParams?.get("path");
|
|
109
|
-
const rowId =
|
|
109
|
+
const rowId = localStorage.getItem('rowId');
|
|
110
110
|
store.formData.elements.splice(rowId, 1);
|
|
111
111
|
const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
112
112
|
const data = path ? _.get(response, path) : response;
|
|
113
113
|
store.setFormdata(data);
|
|
114
|
+
if(shouldUpdateDialog){
|
|
115
|
+
store.updateDialog("popUpComponentSection");
|
|
116
|
+
}
|
|
117
|
+
localStorage.removeItem('rowId');
|
|
114
118
|
},
|
|
115
|
-
deleteEvent: function () {
|
|
119
|
+
deleteEvent: function (shouldUpdateDialog: boolean = true) {
|
|
116
120
|
const path = store.searchParams?.get("path");
|
|
117
|
-
const rowId =
|
|
121
|
+
const rowId = localStorage.getItem('rowId');
|
|
118
122
|
store.formData.events.splice(rowId, 1);
|
|
119
123
|
const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
120
124
|
store.setFormdata(_.get(response, path));
|
|
125
|
+
if(shouldUpdateDialog){
|
|
126
|
+
store.updateDialog("popUpEventSection")
|
|
127
|
+
}
|
|
128
|
+
localStorage.removeItem('rowId');
|
|
121
129
|
},
|
|
122
130
|
widgetAddClickHandler: function () {
|
|
123
131
|
if (!Array.isArray(store.formData.elements)) {
|
|
@@ -152,6 +160,16 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
152
160
|
backHandler: function () {
|
|
153
161
|
store.navigate(-1)
|
|
154
162
|
},
|
|
163
|
+
deletePopUpComponent: function(){
|
|
164
|
+
const rowId = dynamicData.path.split(".")[1];
|
|
165
|
+
localStorage.setItem('rowId',rowId);
|
|
166
|
+
store.updateDialog("popUpComponentSection");
|
|
167
|
+
},
|
|
168
|
+
deletePopUpEvent: function(){
|
|
169
|
+
const rowId = dynamicData.path.split(".")[1];
|
|
170
|
+
localStorage.setItem('rowId',rowId);
|
|
171
|
+
store.updateDialog("popUpEventSection");
|
|
172
|
+
},
|
|
155
173
|
}
|
|
156
174
|
};
|
|
157
175
|
|
|
@@ -89,9 +89,17 @@ export default (
|
|
|
89
89
|
this.setPage()
|
|
90
90
|
|
|
91
91
|
},
|
|
92
|
-
deleteEvent:
|
|
92
|
+
deleteEvent: async function () {
|
|
93
|
+
await Component(store, dynamicData, submitHandler, service).deleteEvent(false);
|
|
94
|
+
store.updateDialog("popUpEvent");
|
|
95
|
+
},
|
|
93
96
|
backHandler: function () {
|
|
94
97
|
store.navigate(-1)
|
|
95
98
|
},
|
|
99
|
+
deletePopUpEvent: function(){
|
|
100
|
+
const rowId = dynamicData.path.split(".")[1];
|
|
101
|
+
localStorage.setItem('rowId',rowId);
|
|
102
|
+
store.updateDialog("popUpEvent");
|
|
103
|
+
}
|
|
96
104
|
}
|
|
97
105
|
};
|
|
@@ -55,7 +55,11 @@ export default (funcParams: funcParamsProps) => {
|
|
|
55
55
|
},
|
|
56
56
|
saveHandler: async ()=> await saveHandler(store,service,submitHandler),
|
|
57
57
|
Edit_Components: Component(store, dynamicData, submitHandler, service).editComponents,
|
|
58
|
-
|
|
58
|
+
|
|
59
|
+
Delete_Components: async function() {
|
|
60
|
+
await Component(store, dynamicData, submitHandler, service).deleteComponents(false);
|
|
61
|
+
store.updateDialog("popUpPageMasterComponent");
|
|
62
|
+
},
|
|
59
63
|
eventAddHandler: function () {
|
|
60
64
|
const id = store.searchParams?.get("id");
|
|
61
65
|
if (!Array.isArray(store.formData.events)) {
|
|
@@ -73,10 +77,22 @@ export default (funcParams: funcParamsProps) => {
|
|
|
73
77
|
store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
|
|
74
78
|
},
|
|
75
79
|
deleteEvent: function () {
|
|
76
|
-
const rowId =
|
|
80
|
+
const rowId = localStorage.getItem('rowId');
|
|
77
81
|
store.formData.events.splice(rowId, 1);
|
|
78
82
|
const response = saveFormdataInLocalStorage(store.ctx.core.data)
|
|
79
83
|
store.setFormdata(response);
|
|
84
|
+
store.updateDialog("popUpPageMasterEvent");
|
|
85
|
+
localStorage.removeItem('rowId');
|
|
86
|
+
},
|
|
87
|
+
deletePopUpComponent: function(){
|
|
88
|
+
const rowId = dynamicData.path.split(".")[1];
|
|
89
|
+
localStorage.setItem('rowId',rowId);
|
|
90
|
+
store.updateDialog("popUpPageMasterComponent");
|
|
91
|
+
},
|
|
92
|
+
deletePopUpEvent: function(){
|
|
93
|
+
const rowId = dynamicData.path.split(".")[1];
|
|
94
|
+
localStorage.setItem('rowId',rowId);
|
|
95
|
+
store.updateDialog("popUpPageMasterEvent");
|
|
80
96
|
},
|
|
81
97
|
}
|
|
82
98
|
};
|
|
@@ -73,13 +73,12 @@ export default (funcParams: funcParamsProps) => {
|
|
|
73
73
|
serviceHolder: this, eventGroups
|
|
74
74
|
}
|
|
75
75
|
funcParams.store.setSchema(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
funcParams.schema
|
|
76
|
+
(pre: any) => {
|
|
77
|
+
return {
|
|
78
|
+
...funcParams.schema, properties:
|
|
79
|
+
{ ...funcParams.schema.properties, ...pre.properties, }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
83
82
|
)
|
|
84
83
|
funcParams.uiSchema.elements.push(notifyUiSchema);
|
|
85
84
|
funcParams.store.setUiSchema(funcParams.uiSchema);
|