impaktapps-ui-builder 0.0.101-alpha.117 → 0.0.101-alpha.119

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.
@@ -10284,7 +10284,7 @@ var service = (funcParams) => {
10284
10284
  };
10285
10285
  return {
10286
10286
  setPage: async function() {
10287
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
10287
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
10288
10288
  funcParams.store.setFormdata({});
10289
10289
  funcParams.store.newData = {};
10290
10290
  const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
@@ -10299,17 +10299,25 @@ var service = (funcParams) => {
10299
10299
  }));
10300
10300
  }
10301
10301
  const config2 = pageData == null ? void 0 : pageData.config;
10302
- if ((config2 == null ? void 0 : config2.programIdRequired) && !funcParams.store.location.pathname.includes("ProgramId")) {
10303
- funcParams.store.navigate(funcParams.store.location.pathname + `/ProgramId${(_a = JSON.parse(window.sessionStorage.getItem("ProgramID"))) == null ? void 0 : _a.label}`);
10304
- } else {
10305
- funcParams.store.navigate(funcParams.store.location.pathname + `/${(_b = JSON.parse(window.sessionStorage.getItem("ProgramID"))) == null ? void 0 : _b.label}`);
10302
+ const pathParts = funcParams.store.location.pathname.split("/");
10303
+ const programId = (_a = JSON.parse(window.sessionStorage.getItem("ProgramID") || "null")) == null ? void 0 : _a.value;
10304
+ if ((config2 == null ? void 0 : config2.programIdRequired) && programId) {
10305
+ if (pathParts.length < 2) {
10306
+ funcParams.store.navigate(
10307
+ `${funcParams.store.location.pathname}/${programId}`
10308
+ );
10309
+ } else {
10310
+ pathParts[2] = programId;
10311
+ const newPath = pathParts.slice(0, 3).join("/") + "/";
10312
+ funcParams.store.navigate(newPath);
10313
+ }
10306
10314
  }
10307
10315
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10308
10316
  const event2 = new CustomEvent("pageNameChanged", {
10309
10317
  detail: { pageName: config2.label }
10310
10318
  });
10311
10319
  window.dispatchEvent(event2);
10312
- const theme = (_d = (_c = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _c.theme) == null ? void 0 : _d.myTheme;
10320
+ const theme = (_c = (_b = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _b.theme) == null ? void 0 : _c.myTheme;
10313
10321
  uiSchema.elements.push(
10314
10322
  {
10315
10323
  type: "HorizontalLayout",
@@ -10339,7 +10347,7 @@ var service = (funcParams) => {
10339
10347
  heading: "Copywriter@ACT21.IO"
10340
10348
  },
10341
10349
  style: {
10342
- color: ((_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.text) == null ? void 0 : _f.disabled) || "#AFAFAF",
10350
+ color: ((_e = (_d = theme == null ? void 0 : theme.palette) == null ? void 0 : _d.text) == null ? void 0 : _e.disabled) || "#AFAFAF",
10343
10351
  fontSize: "11px",
10344
10352
  textAlign: "center",
10345
10353
  lineHeight: 2,
@@ -10366,7 +10374,7 @@ var service = (funcParams) => {
10366
10374
  width: "fit-content"
10367
10375
  },
10368
10376
  style: {
10369
- fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
10377
+ fill: (_g = (_f = theme == null ? void 0 : theme.palette) == null ? void 0 : _f.primary) == null ? void 0 : _g.main,
10370
10378
  width: 20,
10371
10379
  height: 0,
10372
10380
  top: 0,
@@ -10375,7 +10383,7 @@ var service = (funcParams) => {
10375
10383
  fontSize: "12px",
10376
10384
  cursor: "pointer",
10377
10385
  ":hover": {
10378
- fill: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
10386
+ fill: (_i = (_h = theme == null ? void 0 : theme.palette) == null ? void 0 : _h.primary) == null ? void 0 : _i.dark
10379
10387
  },
10380
10388
  marginRight: "20px"
10381
10389
  }
@@ -10398,7 +10406,7 @@ var service = (funcParams) => {
10398
10406
  lineHeight: 1,
10399
10407
  height: 0,
10400
10408
  width: "fit-content",
10401
- color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.main,
10409
+ color: (_k = (_j = theme == null ? void 0 : theme.palette) == null ? void 0 : _j.primary) == null ? void 0 : _k.main,
10402
10410
  fontSize: "12px",
10403
10411
  cursor: "pointer",
10404
10412
  marginLeft: "2px",
@@ -10406,7 +10414,7 @@ var service = (funcParams) => {
10406
10414
  right: "12px",
10407
10415
  position: "absolute",
10408
10416
  ":hover": {
10409
- color: (_n = (_m = theme == null ? void 0 : theme.palette) == null ? void 0 : _m.primary) == null ? void 0 : _n.dark
10417
+ color: (_m = (_l = theme == null ? void 0 : theme.palette) == null ? void 0 : _l.primary) == null ? void 0 : _m.dark
10410
10418
  },
10411
10419
  marginRight: "4px"
10412
10420
  }
@@ -10415,7 +10423,7 @@ var service = (funcParams) => {
10415
10423
  ]
10416
10424
  }
10417
10425
  );
10418
- const schema2 = (_o = pageData == null ? void 0 : pageData.schema) != null ? _o : { type: "object", properties: {} };
10426
+ const schema2 = (_n = pageData == null ? void 0 : pageData.schema) != null ? _n : { type: "object", properties: {} };
10419
10427
  eventGroups = extractEvents(config2);
10420
10428
  executeEventsParameters = {
10421
10429
  config: {},