impaktapps-ui-builder 0.0.963-CopyComponent.6 → 0.0.963-CopyComponent.8
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.es.js +171 -149
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +13 -13
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +26 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +27 -3
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +2 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +25 -21
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +28 -24
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +72 -22
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +27 -24
- package/src/impaktapps-ui-builder/builder/services/component.ts +105 -39
- package/src/impaktapps-ui-builder/builder/services/event.ts +19 -24
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +31 -23
|
@@ -165,6 +165,27 @@ const PageMasterUiSchema = (theme) => {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
widget: {
|
|
171
|
+
type: "Control",
|
|
172
|
+
scope: "#/properties/Paste_Icon",
|
|
173
|
+
options: {
|
|
174
|
+
widget: "IconButton"
|
|
175
|
+
},
|
|
176
|
+
config: {
|
|
177
|
+
main: {
|
|
178
|
+
onClick: "PasteComponent",
|
|
179
|
+
size: "small",
|
|
180
|
+
icon: "SendIcon",
|
|
181
|
+
iconLabel: "Paste",
|
|
182
|
+
styleDefault: true
|
|
183
|
+
},
|
|
184
|
+
style: {
|
|
185
|
+
mt: "6px"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
168
189
|
}
|
|
169
190
|
]
|
|
170
191
|
},
|
|
@@ -239,26 +260,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
239
260
|
main: {
|
|
240
261
|
icon: "FileCopyIcon",
|
|
241
262
|
onClick: "CopyComponent",
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
header: "paste",
|
|
249
|
-
field: "Paste_Component",
|
|
250
|
-
flex: 1,
|
|
251
|
-
widget: {
|
|
252
|
-
type: "Control",
|
|
253
|
-
scope: "#/properties/PasteComponent",
|
|
254
|
-
options: {
|
|
255
|
-
widget: "IconButton"
|
|
256
|
-
},
|
|
257
|
-
config: {
|
|
258
|
-
main: {
|
|
259
|
-
icon: "SendIcon",
|
|
260
|
-
onClick: "PasteComponent",
|
|
261
|
-
tooltipMessage: "Reject This Record"
|
|
263
|
+
styleDefault: true
|
|
262
264
|
}
|
|
263
265
|
}
|
|
264
266
|
}
|
|
@@ -295,6 +297,27 @@ const PageMasterUiSchema = (theme) => {
|
|
|
295
297
|
}
|
|
296
298
|
}
|
|
297
299
|
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
widget: {
|
|
303
|
+
type: "Control",
|
|
304
|
+
scope: "#/properties/Paste_Icon",
|
|
305
|
+
options: {
|
|
306
|
+
widget: "IconButton"
|
|
307
|
+
},
|
|
308
|
+
config: {
|
|
309
|
+
main: {
|
|
310
|
+
onClick: "PasteEvent",
|
|
311
|
+
size: "small",
|
|
312
|
+
icon: "SendIcon",
|
|
313
|
+
iconLabel: "Paste",
|
|
314
|
+
styleDefault: true
|
|
315
|
+
},
|
|
316
|
+
style: {
|
|
317
|
+
mt: "6px"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
298
321
|
}
|
|
299
322
|
]
|
|
300
323
|
},
|
|
@@ -353,6 +376,25 @@ const PageMasterUiSchema = (theme) => {
|
|
|
353
376
|
}
|
|
354
377
|
}
|
|
355
378
|
}
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
header: "Copy",
|
|
382
|
+
field: "Copy_Event",
|
|
383
|
+
flex: 1,
|
|
384
|
+
widget: {
|
|
385
|
+
type: "Control",
|
|
386
|
+
scope: "#/properties/CopyEvent",
|
|
387
|
+
options: {
|
|
388
|
+
widget: "IconButton"
|
|
389
|
+
},
|
|
390
|
+
config: {
|
|
391
|
+
main: {
|
|
392
|
+
icon: "FileCopyIcon",
|
|
393
|
+
onClick: "CopyEvent",
|
|
394
|
+
styleDefault: true
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
356
398
|
}
|
|
357
399
|
]
|
|
358
400
|
}
|
|
@@ -7136,6 +7178,27 @@ const EventSection = (theme) => {
|
|
|
7136
7178
|
}
|
|
7137
7179
|
}
|
|
7138
7180
|
}
|
|
7181
|
+
},
|
|
7182
|
+
{
|
|
7183
|
+
widget: {
|
|
7184
|
+
type: "Control",
|
|
7185
|
+
scope: "#/properties/Paste_Icon",
|
|
7186
|
+
options: {
|
|
7187
|
+
widget: "IconButton"
|
|
7188
|
+
},
|
|
7189
|
+
config: {
|
|
7190
|
+
main: {
|
|
7191
|
+
onClick: "PasteEvent",
|
|
7192
|
+
size: "small",
|
|
7193
|
+
icon: "SendIcon",
|
|
7194
|
+
iconLabel: "Paste",
|
|
7195
|
+
styleDefault: true
|
|
7196
|
+
},
|
|
7197
|
+
style: {
|
|
7198
|
+
mt: "6px"
|
|
7199
|
+
}
|
|
7200
|
+
}
|
|
7201
|
+
}
|
|
7139
7202
|
}
|
|
7140
7203
|
]
|
|
7141
7204
|
},
|
|
@@ -7210,26 +7273,8 @@ const EventSection = (theme) => {
|
|
|
7210
7273
|
main: {
|
|
7211
7274
|
icon: "FileCopyIcon",
|
|
7212
7275
|
onClick: "CopyEvent",
|
|
7213
|
-
tooltipMessage: "Reject This Record"
|
|
7214
|
-
|
|
7215
|
-
}
|
|
7216
|
-
}
|
|
7217
|
-
},
|
|
7218
|
-
{
|
|
7219
|
-
header: "paste",
|
|
7220
|
-
field: "Paste_Event",
|
|
7221
|
-
flex: 1,
|
|
7222
|
-
widget: {
|
|
7223
|
-
type: "Control",
|
|
7224
|
-
scope: "#/properties/PasteEvent",
|
|
7225
|
-
options: {
|
|
7226
|
-
widget: "IconButton"
|
|
7227
|
-
},
|
|
7228
|
-
config: {
|
|
7229
|
-
main: {
|
|
7230
|
-
icon: "SendIcon",
|
|
7231
|
-
onClick: "PasteEvent",
|
|
7232
|
-
tooltipMessage: "Reject This Record"
|
|
7276
|
+
tooltipMessage: "Reject This Record",
|
|
7277
|
+
styleDefault: true
|
|
7233
7278
|
}
|
|
7234
7279
|
}
|
|
7235
7280
|
}
|
|
@@ -7761,6 +7806,27 @@ const TableSection = (theme) => {
|
|
|
7761
7806
|
}
|
|
7762
7807
|
}
|
|
7763
7808
|
}
|
|
7809
|
+
},
|
|
7810
|
+
{
|
|
7811
|
+
widget: {
|
|
7812
|
+
type: "Control",
|
|
7813
|
+
scope: "#/properties/Paste_Icon",
|
|
7814
|
+
options: {
|
|
7815
|
+
widget: "IconButton"
|
|
7816
|
+
},
|
|
7817
|
+
config: {
|
|
7818
|
+
main: {
|
|
7819
|
+
onClick: "PasteComponent",
|
|
7820
|
+
size: "small",
|
|
7821
|
+
icon: "SendIcon",
|
|
7822
|
+
iconLabel: "Paste",
|
|
7823
|
+
styleDefault: true
|
|
7824
|
+
},
|
|
7825
|
+
style: {
|
|
7826
|
+
mt: "6px"
|
|
7827
|
+
}
|
|
7828
|
+
}
|
|
7829
|
+
}
|
|
7764
7830
|
}
|
|
7765
7831
|
]
|
|
7766
7832
|
},
|
|
@@ -7823,11 +7889,11 @@ const TableSection = (theme) => {
|
|
|
7823
7889
|
},
|
|
7824
7890
|
{
|
|
7825
7891
|
header: "Copy",
|
|
7826
|
-
field: "
|
|
7892
|
+
field: "Copy_Component",
|
|
7827
7893
|
flex: 1,
|
|
7828
7894
|
widget: {
|
|
7829
7895
|
type: "Control",
|
|
7830
|
-
scope: "#/properties/
|
|
7896
|
+
scope: "#/properties/CopyComponent",
|
|
7831
7897
|
options: {
|
|
7832
7898
|
widget: "IconButton"
|
|
7833
7899
|
},
|
|
@@ -7835,26 +7901,7 @@ const TableSection = (theme) => {
|
|
|
7835
7901
|
main: {
|
|
7836
7902
|
icon: "FileCopyIcon",
|
|
7837
7903
|
onClick: "CopyComponent",
|
|
7838
|
-
|
|
7839
|
-
}
|
|
7840
|
-
}
|
|
7841
|
-
}
|
|
7842
|
-
},
|
|
7843
|
-
{
|
|
7844
|
-
header: "paste",
|
|
7845
|
-
field: "Paste_Component2",
|
|
7846
|
-
flex: 1,
|
|
7847
|
-
widget: {
|
|
7848
|
-
type: "Control",
|
|
7849
|
-
scope: "#/properties/PasteComponent2",
|
|
7850
|
-
options: {
|
|
7851
|
-
widget: "IconButton"
|
|
7852
|
-
},
|
|
7853
|
-
config: {
|
|
7854
|
-
main: {
|
|
7855
|
-
icon: "SendIcon",
|
|
7856
|
-
onClick: "PasteComponent",
|
|
7857
|
-
tooltipMessage: "Reject This Record"
|
|
7904
|
+
styleDefault: true
|
|
7858
7905
|
}
|
|
7859
7906
|
}
|
|
7860
7907
|
}
|
|
@@ -8283,23 +8330,28 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8283
8330
|
CopyComponent: function() {
|
|
8284
8331
|
var _a;
|
|
8285
8332
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8286
|
-
const
|
|
8287
|
-
const
|
|
8288
|
-
const formData = getFormdataFromSessionStorage(
|
|
8289
|
-
sessionStorage.setItem("
|
|
8333
|
+
const parentPathOfCopiedComponent = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8334
|
+
const copiedComponentPath = parentPathOfCopiedComponent ? `${parentPathOfCopiedComponent}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
8335
|
+
const formData = getFormdataFromSessionStorage(copiedComponentPath);
|
|
8336
|
+
sessionStorage.setItem("copiedConfig", JSON.stringify(formData));
|
|
8290
8337
|
},
|
|
8291
8338
|
PasteComponent: function() {
|
|
8292
8339
|
var _a;
|
|
8293
8340
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8294
|
-
const
|
|
8295
|
-
const updatedPath = path ? `${path}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
8296
|
-
const formData = getFormdataFromSessionStorage(updatedPath);
|
|
8341
|
+
const formData = getFormdataFromSessionStorage(path);
|
|
8297
8342
|
const insertComponentPath = formData.elements.length;
|
|
8298
|
-
const finalPath = `${
|
|
8299
|
-
const copiedData = JSON.parse(sessionStorage.getItem("
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8343
|
+
const finalPath = `${path}.elements[${insertComponentPath}]`;
|
|
8344
|
+
const copiedData = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8345
|
+
if (!copiedData.elements) {
|
|
8346
|
+
store2.setNotify({
|
|
8347
|
+
FailMessage: "Pasting not Valid",
|
|
8348
|
+
Fail: true
|
|
8349
|
+
});
|
|
8350
|
+
} else {
|
|
8351
|
+
saveFormdataInSessionStorage(copiedData, finalPath);
|
|
8352
|
+
sessionStorage.removeItem("copiedConfig");
|
|
8353
|
+
this.setPage();
|
|
8354
|
+
}
|
|
8303
8355
|
},
|
|
8304
8356
|
CopyEvent: function() {
|
|
8305
8357
|
var _a;
|
|
@@ -8307,20 +8359,25 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8307
8359
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8308
8360
|
const updatedPath = path ? `${path}.events[${rowId}]` : `events[${rowId}]`;
|
|
8309
8361
|
const formData = getFormdataFromSessionStorage(updatedPath);
|
|
8310
|
-
sessionStorage.setItem("
|
|
8362
|
+
sessionStorage.setItem("copiedConfig", JSON.stringify(formData));
|
|
8311
8363
|
},
|
|
8312
8364
|
PasteEvent: function() {
|
|
8313
8365
|
var _a;
|
|
8314
8366
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8315
|
-
const
|
|
8316
|
-
const
|
|
8317
|
-
const
|
|
8318
|
-
const
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8367
|
+
const formData = getFormdataFromSessionStorage(path);
|
|
8368
|
+
const insertComponentPath = formData.events.length;
|
|
8369
|
+
const finalPath = `${path}.events[${insertComponentPath}]`;
|
|
8370
|
+
const copiedData = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8371
|
+
if (!copiedData.events) {
|
|
8372
|
+
store2.setNotify({
|
|
8373
|
+
FailMessage: "Pasting not Valid",
|
|
8374
|
+
Fail: true
|
|
8375
|
+
});
|
|
8376
|
+
} else {
|
|
8377
|
+
saveFormdataInSessionStorage(copiedData, finalPath);
|
|
8378
|
+
sessionStorage.removeItem("copiedConfig");
|
|
8379
|
+
this.setPage();
|
|
8380
|
+
}
|
|
8324
8381
|
}
|
|
8325
8382
|
};
|
|
8326
8383
|
};
|
|
@@ -8415,28 +8472,10 @@ var pageMaster = (funcParams) => {
|
|
|
8415
8472
|
sessionStorage.setItem("rowId", rowId);
|
|
8416
8473
|
store2.updateDialog("popUpPageMasterEvent");
|
|
8417
8474
|
},
|
|
8418
|
-
CopyComponent:
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
(_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8423
|
-
const updatedPath = path ? `${path}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
8424
|
-
const formData = getFormdataFromSessionStorage(updatedPath);
|
|
8425
|
-
sessionStorage.setItem("copiedComponent", JSON.stringify(formData));
|
|
8426
|
-
},
|
|
8427
|
-
PasteComponent: function() {
|
|
8428
|
-
var _a;
|
|
8429
|
-
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8430
|
-
const rowId = dynamicData2.path.split(".")[1];
|
|
8431
|
-
const updatedPath = path ? `${path}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
8432
|
-
const formData = getFormdataFromSessionStorage(updatedPath);
|
|
8433
|
-
const insertComponentPath = formData.elements.length;
|
|
8434
|
-
const finalPath = `${updatedPath}.elements[${insertComponentPath}]`;
|
|
8435
|
-
const copiedData = JSON.parse(sessionStorage.getItem("copiedComponent"));
|
|
8436
|
-
saveFormdataInSessionStorage(copiedData, finalPath);
|
|
8437
|
-
sessionStorage.removeItem("copiedComponent");
|
|
8438
|
-
this.setPage();
|
|
8439
|
-
}
|
|
8475
|
+
CopyComponent: Component(store2, dynamicData2, submitHandler, service2).CopyComponent,
|
|
8476
|
+
PasteComponent: Component(store2, dynamicData2, submitHandler, service2).PasteComponent,
|
|
8477
|
+
CopyEvent: Component(store2, dynamicData2, submitHandler, service2).CopyEvent,
|
|
8478
|
+
PasteEvent: Component(store2, dynamicData2, submitHandler, service2).PasteEvent
|
|
8440
8479
|
};
|
|
8441
8480
|
};
|
|
8442
8481
|
const EventSchema = {
|
|
@@ -8623,6 +8662,27 @@ const EventUiSchema = (theme) => {
|
|
|
8623
8662
|
}
|
|
8624
8663
|
}
|
|
8625
8664
|
}
|
|
8665
|
+
},
|
|
8666
|
+
{
|
|
8667
|
+
widget: {
|
|
8668
|
+
type: "Control",
|
|
8669
|
+
scope: "#/properties/Paste_Icon",
|
|
8670
|
+
options: {
|
|
8671
|
+
widget: "IconButton"
|
|
8672
|
+
},
|
|
8673
|
+
config: {
|
|
8674
|
+
main: {
|
|
8675
|
+
onClick: "PasteEvent",
|
|
8676
|
+
size: "small",
|
|
8677
|
+
icon: "SendIcon",
|
|
8678
|
+
iconLabel: "Paste",
|
|
8679
|
+
styleDefault: true
|
|
8680
|
+
},
|
|
8681
|
+
style: {
|
|
8682
|
+
mt: "6px"
|
|
8683
|
+
}
|
|
8684
|
+
}
|
|
8685
|
+
}
|
|
8626
8686
|
}
|
|
8627
8687
|
]
|
|
8628
8688
|
},
|
|
@@ -8684,11 +8744,11 @@ const EventUiSchema = (theme) => {
|
|
|
8684
8744
|
},
|
|
8685
8745
|
{
|
|
8686
8746
|
header: "Copy",
|
|
8687
|
-
field: "
|
|
8747
|
+
field: "Copy_Event",
|
|
8688
8748
|
flex: 1,
|
|
8689
8749
|
widget: {
|
|
8690
8750
|
type: "Control",
|
|
8691
|
-
scope: "#/properties/
|
|
8751
|
+
scope: "#/properties/CopyEvent",
|
|
8692
8752
|
options: {
|
|
8693
8753
|
widget: "IconButton"
|
|
8694
8754
|
},
|
|
@@ -8696,26 +8756,7 @@ const EventUiSchema = (theme) => {
|
|
|
8696
8756
|
main: {
|
|
8697
8757
|
icon: "FileCopyIcon",
|
|
8698
8758
|
onClick: "CopyEvent",
|
|
8699
|
-
|
|
8700
|
-
}
|
|
8701
|
-
}
|
|
8702
|
-
}
|
|
8703
|
-
},
|
|
8704
|
-
{
|
|
8705
|
-
header: "paste",
|
|
8706
|
-
field: "Paste_Event2",
|
|
8707
|
-
flex: 1,
|
|
8708
|
-
widget: {
|
|
8709
|
-
type: "Control",
|
|
8710
|
-
scope: "#/properties/PasteEvent2",
|
|
8711
|
-
options: {
|
|
8712
|
-
widget: "IconButton"
|
|
8713
|
-
},
|
|
8714
|
-
config: {
|
|
8715
|
-
main: {
|
|
8716
|
-
icon: "SendIcon",
|
|
8717
|
-
onClick: "PasteEvent",
|
|
8718
|
-
tooltipMessage: "Reject This Record"
|
|
8759
|
+
styleDefault: true
|
|
8719
8760
|
}
|
|
8720
8761
|
}
|
|
8721
8762
|
}
|
|
@@ -9318,27 +9359,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9318
9359
|
sessionStorage.setItem("rowId", rowId);
|
|
9319
9360
|
store2.updateDialog("popUpEvent");
|
|
9320
9361
|
},
|
|
9321
|
-
CopyEvent:
|
|
9322
|
-
|
|
9323
|
-
const rowId = dynamicData2.path.split(".")[1];
|
|
9324
|
-
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9325
|
-
const updatedPath = path ? `${path}.events[${rowId}]` : `events[${rowId}]`;
|
|
9326
|
-
const formData = getFormdataFromSessionStorage(updatedPath);
|
|
9327
|
-
sessionStorage.setItem("copiedComponent", JSON.stringify(formData));
|
|
9328
|
-
},
|
|
9329
|
-
PasteEvent: function() {
|
|
9330
|
-
var _a;
|
|
9331
|
-
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9332
|
-
const rowId = dynamicData2.path.split(".")[1];
|
|
9333
|
-
const updatedPath = path ? `${path}.events[${rowId}]` : `events[${rowId}]`;
|
|
9334
|
-
const formData = getFormdataFromSessionStorage(updatedPath);
|
|
9335
|
-
const insertComponentPath = formData.elements.length;
|
|
9336
|
-
const finalPath = `${updatedPath}.events[${insertComponentPath}]`;
|
|
9337
|
-
const copiedData = JSON.parse(sessionStorage.getItem("copiedComponent"));
|
|
9338
|
-
saveFormdataInSessionStorage(copiedData, finalPath);
|
|
9339
|
-
sessionStorage.removeItem("copiedComponent");
|
|
9340
|
-
this.setPage();
|
|
9341
|
-
}
|
|
9362
|
+
CopyEvent: Component(store2, dynamicData2, submitHandler, service2).CopyEvent,
|
|
9363
|
+
PasteEvent: Component(store2, dynamicData2, submitHandler, service2).PasteEvent
|
|
9342
9364
|
};
|
|
9343
9365
|
};
|
|
9344
9366
|
const downloadFile$1 = (obj) => {
|