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.
@@ -6823,6 +6823,12 @@ const GraphSection = {
6823
6823
  };
6824
6824
  const buildPropertiesSection = function(type) {
6825
6825
  let uiSchema = _.cloneDeep(GraphSection);
6826
+ if (type === "Text" || type === "TextArea") {
6827
+ uiSchema.elements = [
6828
+ getInputField("placeholder", "Placeholder"),
6829
+ EmptyBox
6830
+ ];
6831
+ }
6826
6832
  if (type === "SpeedoMeter") {
6827
6833
  uiSchema.elements = [
6828
6834
  getInputField("segments", "Segments Count"),
@@ -7243,12 +7249,21 @@ var Component = (store2, dynamicData2) => {
7243
7249
  saveHandler: async function() {
7244
7250
  var _a;
7245
7251
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7246
- saveFormdataInLocalStorage(store2.formData, path);
7247
- store2.navigate(-1);
7248
- store2.setNotify({
7249
- SuccessMessage: "Save Successfully",
7250
- Success: true
7251
- });
7252
+ console.log(store2.ctx.core.errors);
7253
+ if (_.isEmpty(store2.ctx.core.errors)) {
7254
+ saveFormdataInLocalStorage(store2.formData, path);
7255
+ store2.navigate(-1);
7256
+ store2.setNotify({
7257
+ SuccessMessage: "Save Successfully",
7258
+ Success: true
7259
+ });
7260
+ } else {
7261
+ store2.setValidation("ValidateAndShow");
7262
+ store2.setNotify({
7263
+ Fail: true,
7264
+ FailMessage: "Errors on Page"
7265
+ });
7266
+ }
7252
7267
  },
7253
7268
  onChange: function() {
7254
7269
  var _a, _b, _c, _d;
@@ -8047,7 +8062,8 @@ const executeEvents = async (params2) => {
8047
8062
  let nextEvent = [];
8048
8063
  let finalResponse = null;
8049
8064
  try {
8050
- if (!shouldEventExecute(params2)) {
8065
+ const shouldExecute = await shouldEventExecute(params2);
8066
+ if (!shouldExecute) {
8051
8067
  return { response: void 0, events: void 0 };
8052
8068
  }
8053
8069
  const response2 = await executeEventsHandler(params2);