impaktapps-ui-builder 0.0.101-alpha.118 → 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,15 +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${(_a = JSON.parse(window.sessionStorage.getItem("ProgramID"))) == null ? void 0 : _a.value}`)) {
10303
- funcParams.store.navigate(funcParams.store.location.pathname + `/ProgramId${(_b = JSON.parse(window.sessionStorage.getItem("ProgramID"))) == null ? void 0 : _b.value}`);
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
+ }
10304
10314
  }
10305
10315
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10306
10316
  const event2 = new CustomEvent("pageNameChanged", {
10307
10317
  detail: { pageName: config2.label }
10308
10318
  });
10309
10319
  window.dispatchEvent(event2);
10310
- 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;
10311
10321
  uiSchema.elements.push(
10312
10322
  {
10313
10323
  type: "HorizontalLayout",
@@ -10337,7 +10347,7 @@ var service = (funcParams) => {
10337
10347
  heading: "Copywriter@ACT21.IO"
10338
10348
  },
10339
10349
  style: {
10340
- 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",
10341
10351
  fontSize: "11px",
10342
10352
  textAlign: "center",
10343
10353
  lineHeight: 2,
@@ -10364,7 +10374,7 @@ var service = (funcParams) => {
10364
10374
  width: "fit-content"
10365
10375
  },
10366
10376
  style: {
10367
- 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,
10368
10378
  width: 20,
10369
10379
  height: 0,
10370
10380
  top: 0,
@@ -10373,7 +10383,7 @@ var service = (funcParams) => {
10373
10383
  fontSize: "12px",
10374
10384
  cursor: "pointer",
10375
10385
  ":hover": {
10376
- 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
10377
10387
  },
10378
10388
  marginRight: "20px"
10379
10389
  }
@@ -10396,7 +10406,7 @@ var service = (funcParams) => {
10396
10406
  lineHeight: 1,
10397
10407
  height: 0,
10398
10408
  width: "fit-content",
10399
- 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,
10400
10410
  fontSize: "12px",
10401
10411
  cursor: "pointer",
10402
10412
  marginLeft: "2px",
@@ -10404,7 +10414,7 @@ var service = (funcParams) => {
10404
10414
  right: "12px",
10405
10415
  position: "absolute",
10406
10416
  ":hover": {
10407
- 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
10408
10418
  },
10409
10419
  marginRight: "4px"
10410
10420
  }
@@ -10413,7 +10423,7 @@ var service = (funcParams) => {
10413
10423
  ]
10414
10424
  }
10415
10425
  );
10416
- 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: {} };
10417
10427
  eventGroups = extractEvents(config2);
10418
10428
  executeEventsParameters = {
10419
10429
  config: {},