impaktapps-ui-builder 0.0.337 → 0.0.338
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 +4 -4
- 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/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/event.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +2 -3
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import { StyleSection } from "../build/uischema/styleSection";
|
|
|
9
9
|
import { TableSection } from "../build/uischema/tableSection";
|
|
10
10
|
import { ValueTab } from "../build/uischema/valueTab";
|
|
11
11
|
import { ValidationSection } from "../build/uischema/validationSections";
|
|
12
|
-
import {
|
|
12
|
+
import { okHandler } from "./pageMaster";
|
|
13
13
|
const sectionLabels = {
|
|
14
14
|
Select: ["Core", "Properties","Value", "style", "Event","Validation"],
|
|
15
15
|
MultipleSelect: ["Core", "Properties","Value", "style", "Event","Validation"],
|
|
@@ -97,7 +97,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
97
97
|
},
|
|
98
98
|
submitPageHandler: async () => {
|
|
99
99
|
const id = store.searchParams?.get("id");
|
|
100
|
-
const isSubmitted = await
|
|
100
|
+
const isSubmitted = await okHandler(store, service, submitHandler).submitPageHandler();
|
|
101
101
|
if (isSubmitted) {
|
|
102
102
|
localStorage.removeItem("pageFormdata");
|
|
103
103
|
store.navigate(`/PageMaster?id=${id}`);
|
|
@@ -3,7 +3,7 @@ import { EventUiSchema } from "../elements/UiSchema/event/uiSchema";
|
|
|
3
3
|
import Component from "./component";
|
|
4
4
|
import { saveFormdataInLocalStorage } from "./saveHandler";
|
|
5
5
|
import { APISection } from "../build/uischema/apiSection";
|
|
6
|
-
import {
|
|
6
|
+
import { okHandler } from "./pageMaster";
|
|
7
7
|
import { getSelectField, getTextArea } from "../build/uischema/buildPropertiesSection";
|
|
8
8
|
import { refreshSectionUiSchema } from "../build/uischema/refresh";
|
|
9
9
|
import _ from "lodash";
|
|
@@ -60,7 +60,7 @@ export default (
|
|
|
60
60
|
},
|
|
61
61
|
submitPageHandler: async () => {
|
|
62
62
|
const id = store.searchParams?.get("id");
|
|
63
|
-
const isSubmitted = await
|
|
63
|
+
const isSubmitted = await okHandler(store, service, submitHandler).submitPageHandler();
|
|
64
64
|
if (isSubmitted) {
|
|
65
65
|
localStorage.removeItem("pageFormdata");
|
|
66
66
|
store.navigate(`/PageMaster?id=${id}`);
|
|
@@ -5,7 +5,7 @@ import Component from "./component";
|
|
|
5
5
|
import { getFormdataFromLocalStorage, saveFormdataInLocalStorage } from "./saveHandler";
|
|
6
6
|
import { schema } from "../build/buildUiSchema";
|
|
7
7
|
|
|
8
|
-
export function
|
|
8
|
+
export function okHandler(store, service, submitHandler) {
|
|
9
9
|
|
|
10
10
|
return {
|
|
11
11
|
submitPageHandler: async function () {
|
|
@@ -70,9 +70,8 @@ export default (funcParams: funcParamsProps) => {
|
|
|
70
70
|
`/Component?path=${`elements[${response?.elements.length}]`}&id=${id}`
|
|
71
71
|
);
|
|
72
72
|
},
|
|
73
|
-
// submitPageHandler: submitPageHandlerProvider(store, service, submitHandler).submitPageHandler,
|
|
74
73
|
submitPageHandler: async () => {
|
|
75
|
-
const isSubmitted = await
|
|
74
|
+
const isSubmitted = await okHandler(store, service, submitHandler).submitPageHandler();
|
|
76
75
|
if (isSubmitted) {
|
|
77
76
|
localStorage.removeItem("pageFormdata");
|
|
78
77
|
store.navigate('/PageMasterRecords');
|