impaktapps-ui-builder 0.0.315 → 0.0.317
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 +23 -7
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +6 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +9 -8
- package/src/impaktapps-ui-builder/runtime/services/events.ts +2 -1
package/package.json
CHANGED
|
@@ -158,6 +158,12 @@ const GraphSection = {
|
|
|
158
158
|
|
|
159
159
|
export const buildPropertiesSection = function (type: String) {
|
|
160
160
|
let uiSchema = _.cloneDeep(GraphSection);
|
|
161
|
+
if (type === "Text"||type === "TextArea") {
|
|
162
|
+
uiSchema.elements = [
|
|
163
|
+
getInputField("placeholder", "Placeholder"),
|
|
164
|
+
EmptyBox
|
|
165
|
+
]
|
|
166
|
+
}
|
|
161
167
|
if (type === "SpeedoMeter") {
|
|
162
168
|
uiSchema.elements = [
|
|
163
169
|
getInputField("segments", "Segments Count"),
|
|
@@ -75,20 +75,21 @@ export default (store: any, dynamicData: any) => {
|
|
|
75
75
|
},
|
|
76
76
|
saveHandler: async function () {
|
|
77
77
|
const path = store.searchParams?.get("path");
|
|
78
|
-
|
|
78
|
+
console.log(store.ctx.core.errors)
|
|
79
|
+
if (_.isEmpty(store.ctx.core.errors)) {
|
|
79
80
|
saveFormdataInLocalStorage(store.formData,path)
|
|
80
81
|
store.navigate(-1)
|
|
81
82
|
store.setNotify({
|
|
82
83
|
SuccessMessage: "Save Successfully",
|
|
83
84
|
Success: true,
|
|
84
85
|
});
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
} else {
|
|
87
|
+
store.setValidation("ValidateAndShow");
|
|
88
|
+
store.setNotify({
|
|
89
|
+
Fail:true,
|
|
90
|
+
FailMessage:"Errors on Page"
|
|
91
|
+
})
|
|
92
|
+
}
|
|
92
93
|
},
|
|
93
94
|
onChange: function () {
|
|
94
95
|
if (
|
|
@@ -8,7 +8,8 @@ export const executeEvents = async (
|
|
|
8
8
|
let nextEvent = [];
|
|
9
9
|
let finalResponse = null;
|
|
10
10
|
try {
|
|
11
|
-
|
|
11
|
+
const shouldExecute = await shouldEventExecute(params)
|
|
12
|
+
if (!shouldExecute) {
|
|
12
13
|
return { response: undefined, events: undefined };
|
|
13
14
|
}
|
|
14
15
|
const response = await executeEventsHandler(params)
|