impaktapps-ui-builder 0.0.963-CopyComponent.5 → 0.0.963-CopyComponent.6
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 +118 -0
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +15 -15
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +29 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +43 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +42 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +30 -4
- package/src/impaktapps-ui-builder/builder/services/event.ts +30 -1
|
@@ -7195,6 +7195,44 @@ const EventSection = (theme) => {
|
|
|
7195
7195
|
}
|
|
7196
7196
|
}
|
|
7197
7197
|
}
|
|
7198
|
+
},
|
|
7199
|
+
{
|
|
7200
|
+
header: "Copy",
|
|
7201
|
+
field: "Copy_Event",
|
|
7202
|
+
flex: 1,
|
|
7203
|
+
widget: {
|
|
7204
|
+
type: "Control",
|
|
7205
|
+
scope: "#/properties/CopyEvent",
|
|
7206
|
+
options: {
|
|
7207
|
+
widget: "IconButton"
|
|
7208
|
+
},
|
|
7209
|
+
config: {
|
|
7210
|
+
main: {
|
|
7211
|
+
icon: "FileCopyIcon",
|
|
7212
|
+
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"
|
|
7233
|
+
}
|
|
7234
|
+
}
|
|
7235
|
+
}
|
|
7198
7236
|
}
|
|
7199
7237
|
]
|
|
7200
7238
|
}
|
|
@@ -8262,6 +8300,27 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8262
8300
|
saveFormdataInSessionStorage(copiedData, finalPath);
|
|
8263
8301
|
sessionStorage.removeItem("copiedComponent");
|
|
8264
8302
|
this.setPage();
|
|
8303
|
+
},
|
|
8304
|
+
CopyEvent: function() {
|
|
8305
|
+
var _a;
|
|
8306
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8307
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8308
|
+
const updatedPath = path ? `${path}.events[${rowId}]` : `events[${rowId}]`;
|
|
8309
|
+
const formData = getFormdataFromSessionStorage(updatedPath);
|
|
8310
|
+
sessionStorage.setItem("copiedComponent", JSON.stringify(formData));
|
|
8311
|
+
},
|
|
8312
|
+
PasteEvent: function() {
|
|
8313
|
+
var _a;
|
|
8314
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8315
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8316
|
+
const updatedPath = path ? `${path}.events[${rowId}]` : `events[${rowId}]`;
|
|
8317
|
+
const formData = getFormdataFromSessionStorage(updatedPath);
|
|
8318
|
+
const insertComponentPath = formData.elements.length;
|
|
8319
|
+
const finalPath = `${updatedPath}.events[${insertComponentPath}]`;
|
|
8320
|
+
const copiedData = JSON.parse(sessionStorage.getItem("copiedComponent"));
|
|
8321
|
+
saveFormdataInSessionStorage(copiedData, finalPath);
|
|
8322
|
+
sessionStorage.removeItem("copiedComponent");
|
|
8323
|
+
this.setPage();
|
|
8265
8324
|
}
|
|
8266
8325
|
};
|
|
8267
8326
|
};
|
|
@@ -8622,6 +8681,44 @@ const EventUiSchema = (theme) => {
|
|
|
8622
8681
|
}
|
|
8623
8682
|
}
|
|
8624
8683
|
}
|
|
8684
|
+
},
|
|
8685
|
+
{
|
|
8686
|
+
header: "Copy",
|
|
8687
|
+
field: "Copy_Event2",
|
|
8688
|
+
flex: 1,
|
|
8689
|
+
widget: {
|
|
8690
|
+
type: "Control",
|
|
8691
|
+
scope: "#/properties/CopyEvent2",
|
|
8692
|
+
options: {
|
|
8693
|
+
widget: "IconButton"
|
|
8694
|
+
},
|
|
8695
|
+
config: {
|
|
8696
|
+
main: {
|
|
8697
|
+
icon: "FileCopyIcon",
|
|
8698
|
+
onClick: "CopyEvent",
|
|
8699
|
+
tooltipMessage: "Reject This Record"
|
|
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"
|
|
8719
|
+
}
|
|
8720
|
+
}
|
|
8721
|
+
}
|
|
8625
8722
|
}
|
|
8626
8723
|
]
|
|
8627
8724
|
}
|
|
@@ -9220,6 +9317,27 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9220
9317
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9221
9318
|
sessionStorage.setItem("rowId", rowId);
|
|
9222
9319
|
store2.updateDialog("popUpEvent");
|
|
9320
|
+
},
|
|
9321
|
+
CopyEvent: function() {
|
|
9322
|
+
var _a;
|
|
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();
|
|
9223
9341
|
}
|
|
9224
9342
|
};
|
|
9225
9343
|
};
|