impaktapps-ui-builder 0.0.101-alpha.341 → 0.0.101-alpha.343

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.
@@ -10270,7 +10270,7 @@ var service = (funcParams) => {
10270
10270
  };
10271
10271
  return {
10272
10272
  setPage: async function() {
10273
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
10273
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
10274
10274
  funcParams.store.setFormdata({});
10275
10275
  funcParams.store.newData = {};
10276
10276
  const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
@@ -10287,19 +10287,23 @@ var service = (funcParams) => {
10287
10287
  const config2 = pageData == null ? void 0 : pageData.config;
10288
10288
  const pathParts = funcParams.store.location.pathname.split("/");
10289
10289
  const programId = ((_a = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")) == null ? void 0 : _a.value) || "programID";
10290
+ const programName = ((_b = JSON.parse(window.sessionStorage.getItem("ProgramID") || "{}")) == null ? void 0 : _b.label) || "";
10290
10291
  if (pathParts.length >= 2) {
10291
- if (pathParts[2] !== programId + "") {
10292
- pathParts[2] = programId;
10292
+ if (pathParts[2] !== programName + "") {
10293
+ pathParts[2] = programName;
10293
10294
  const newPath = pathParts.slice(0, 3).join("/");
10294
10295
  funcParams.store.navigate(newPath);
10295
10296
  }
10297
+ if (programId !== "programID") {
10298
+ funcParams.store.setFormdata((pre) => ({ ...pre, programId }));
10299
+ }
10296
10300
  }
10297
10301
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10298
10302
  const event2 = new CustomEvent("pageNameChanged", {
10299
10303
  detail: { pageName: config2.label }
10300
10304
  });
10301
10305
  window.dispatchEvent(event2);
10302
- const theme = (_c = (_b = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _b.theme) == null ? void 0 : _c.myTheme;
10306
+ const theme = (_d = (_c = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _c.theme) == null ? void 0 : _d.myTheme;
10303
10307
  uiSchema.elements.push(
10304
10308
  {
10305
10309
  type: "HorizontalLayout",
@@ -10329,7 +10333,7 @@ var service = (funcParams) => {
10329
10333
  heading: "Copywriter@ACT21.IO"
10330
10334
  },
10331
10335
  style: {
10332
- color: ((_e = (_d = theme == null ? void 0 : theme.palette) == null ? void 0 : _d.text) == null ? void 0 : _e.disabled) || "#AFAFAF",
10336
+ color: ((_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.text) == null ? void 0 : _f.disabled) || "#AFAFAF",
10333
10337
  fontSize: "11px",
10334
10338
  textAlign: "center",
10335
10339
  lineHeight: 2,
@@ -10356,7 +10360,7 @@ var service = (funcParams) => {
10356
10360
  width: "fit-content"
10357
10361
  },
10358
10362
  style: {
10359
- fill: (_g = (_f = theme == null ? void 0 : theme.palette) == null ? void 0 : _f.primary) == null ? void 0 : _g.main,
10363
+ fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
10360
10364
  width: 20,
10361
10365
  height: 0,
10362
10366
  top: 0,
@@ -10365,7 +10369,7 @@ var service = (funcParams) => {
10365
10369
  fontSize: "12px",
10366
10370
  cursor: "pointer",
10367
10371
  ":hover": {
10368
- fill: (_i = (_h = theme == null ? void 0 : theme.palette) == null ? void 0 : _h.primary) == null ? void 0 : _i.dark
10372
+ fill: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
10369
10373
  },
10370
10374
  marginRight: "20px"
10371
10375
  }
@@ -10388,7 +10392,7 @@ var service = (funcParams) => {
10388
10392
  lineHeight: 1,
10389
10393
  height: 0,
10390
10394
  width: "fit-content",
10391
- color: (_k = (_j = theme == null ? void 0 : theme.palette) == null ? void 0 : _j.primary) == null ? void 0 : _k.main,
10395
+ color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.main,
10392
10396
  fontSize: "12px",
10393
10397
  cursor: "pointer",
10394
10398
  marginLeft: "2px",
@@ -10396,7 +10400,7 @@ var service = (funcParams) => {
10396
10400
  right: "12px",
10397
10401
  position: "absolute",
10398
10402
  ":hover": {
10399
- color: (_m = (_l = theme == null ? void 0 : theme.palette) == null ? void 0 : _l.primary) == null ? void 0 : _m.dark
10403
+ color: (_n = (_m = theme == null ? void 0 : theme.palette) == null ? void 0 : _m.primary) == null ? void 0 : _n.dark
10400
10404
  },
10401
10405
  marginRight: "4px"
10402
10406
  }
@@ -10405,7 +10409,7 @@ var service = (funcParams) => {
10405
10409
  ]
10406
10410
  }
10407
10411
  );
10408
- const schema2 = (_n = pageData == null ? void 0 : pageData.schema) != null ? _n : { type: "object", properties: {} };
10412
+ const schema2 = (_o = pageData == null ? void 0 : pageData.schema) != null ? _o : { type: "object", properties: {} };
10409
10413
  eventGroups = extractEvents(config2);
10410
10414
  executeEventsParameters = {
10411
10415
  config: {},