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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.315",
3
+ "version": "0.0.317",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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
- // if (_.isEmpty(store.ctx.core.errors)) {
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
- // } else {
86
- // store.setValidation("ValidateAndShow");
87
- // store.setNotify({
88
- // Fail:true,
89
- // FailMessage:"Errors on Page"
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
- if (!shouldEventExecute(params)) {
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)