impaktapps-ui-builder 0.0.340 → 0.0.341
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 +13 -13
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +5 -5
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +7 -7
- package/src/impaktapps-ui-builder/builder/services/event.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +4 -4
|
@@ -7316,7 +7316,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7316
7316
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7317
7317
|
console.log(store2.ctx.core.errors);
|
|
7318
7318
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
7319
|
-
saveFormdataInLocalStorage(store2.
|
|
7319
|
+
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7320
7320
|
store2.navigate(-1);
|
|
7321
7321
|
store2.setNotify({
|
|
7322
7322
|
SuccessMessage: "Save Successfully",
|
|
@@ -7360,7 +7360,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7360
7360
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7361
7361
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7362
7362
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
7363
|
-
saveFormdataInLocalStorage(store2.
|
|
7363
|
+
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7364
7364
|
if (path) {
|
|
7365
7365
|
const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
|
|
7366
7366
|
const finalPath = `${path2}.elements[${rowId}]`;
|
|
@@ -7376,7 +7376,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7376
7376
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7377
7377
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7378
7378
|
store2.formData.elements.splice(rowId, 1);
|
|
7379
|
-
const response2 = saveFormdataInLocalStorage(store2.
|
|
7379
|
+
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7380
7380
|
const data2 = path ? _.get(response2, path) : response2;
|
|
7381
7381
|
store2.setFormdata(data2);
|
|
7382
7382
|
},
|
|
@@ -7385,7 +7385,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7385
7385
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7386
7386
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7387
7387
|
store2.formData.events.splice(rowId, 1);
|
|
7388
|
-
const response2 = saveFormdataInLocalStorage(store2.
|
|
7388
|
+
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7389
7389
|
store2.setFormdata(_.get(response2, path));
|
|
7390
7390
|
},
|
|
7391
7391
|
widgetAddClickHandler: async function() {
|
|
@@ -7394,7 +7394,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7394
7394
|
store2.formData.elements = [];
|
|
7395
7395
|
}
|
|
7396
7396
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7397
|
-
saveFormdataInLocalStorage(store2.
|
|
7397
|
+
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7398
7398
|
const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
|
|
7399
7399
|
store2.searchParams.set("path", finalPath);
|
|
7400
7400
|
store2.setSearchParams(store2.searchParams);
|
|
@@ -7405,7 +7405,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7405
7405
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7406
7406
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7407
7407
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
7408
|
-
saveFormdataInLocalStorage(store2.
|
|
7408
|
+
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7409
7409
|
const finalPath = `${path}.events[${rowId}]`;
|
|
7410
7410
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
7411
7411
|
},
|
|
@@ -7416,7 +7416,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7416
7416
|
if (!Array.isArray(store2.formData.events)) {
|
|
7417
7417
|
store2.formData.events = [];
|
|
7418
7418
|
}
|
|
7419
|
-
saveFormdataInLocalStorage(store2.
|
|
7419
|
+
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7420
7420
|
const finalPath = `${path}.events[${store2.formData.events.length}]`;
|
|
7421
7421
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
7422
7422
|
},
|
|
@@ -7474,7 +7474,7 @@ var pageMaster = (funcParams) => {
|
|
|
7474
7474
|
if (!Array.isArray(store2.formData.elements)) {
|
|
7475
7475
|
store2.formData.elements = [];
|
|
7476
7476
|
}
|
|
7477
|
-
const response2 = saveFormdataInLocalStorage(store2.
|
|
7477
|
+
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7478
7478
|
store2.navigate(
|
|
7479
7479
|
`/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}&id=${id}`
|
|
7480
7480
|
);
|
|
@@ -7504,7 +7504,7 @@ var pageMaster = (funcParams) => {
|
|
|
7504
7504
|
if (!Array.isArray(store2.formData.events)) {
|
|
7505
7505
|
store2.formData.events = [];
|
|
7506
7506
|
}
|
|
7507
|
-
saveFormdataInLocalStorage(store2.
|
|
7507
|
+
saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7508
7508
|
const finalPath = `events[${store2.formData.events.length}]`;
|
|
7509
7509
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
7510
7510
|
},
|
|
@@ -7512,14 +7512,14 @@ var pageMaster = (funcParams) => {
|
|
|
7512
7512
|
var _a;
|
|
7513
7513
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7514
7514
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7515
|
-
saveFormdataInLocalStorage(store2.
|
|
7515
|
+
saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7516
7516
|
const finalPath = `events[${rowId}]`;
|
|
7517
7517
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
7518
7518
|
},
|
|
7519
7519
|
deleteEvent: async function() {
|
|
7520
7520
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7521
7521
|
store2.formData.events.splice(rowId, 1);
|
|
7522
|
-
const response2 = saveFormdataInLocalStorage(store2.
|
|
7522
|
+
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7523
7523
|
store2.setFormdata(response2);
|
|
7524
7524
|
}
|
|
7525
7525
|
};
|
|
@@ -8161,7 +8161,7 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8161
8161
|
if (!Array.isArray(store2.formData.events)) {
|
|
8162
8162
|
store2.formData.events = [];
|
|
8163
8163
|
}
|
|
8164
|
-
saveFormdataInLocalStorage(store2.
|
|
8164
|
+
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
8165
8165
|
const finalPath = `${path}.events[${(_c = (_b = store2.formData) == null ? void 0 : _b.events) == null ? void 0 : _c.length}]`;
|
|
8166
8166
|
store2.searchParams.set("path", finalPath);
|
|
8167
8167
|
store2.setSearchParams(store2.searchParams);
|
|
@@ -8171,7 +8171,7 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8171
8171
|
var _a;
|
|
8172
8172
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8173
8173
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8174
|
-
saveFormdataInLocalStorage(store2.
|
|
8174
|
+
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
8175
8175
|
const finalPath = `${path}.events[${rowId}]`;
|
|
8176
8176
|
store2.searchParams.set("path", finalPath);
|
|
8177
8177
|
store2.setSearchParams(store2.searchParams);
|