@uxland/primary-shell 5.6.9 → 5.6.10

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/dist/index.js CHANGED
@@ -14582,7 +14582,7 @@ const hasItemDivider = (te, J) => {
14582
14582
  type: "item",
14583
14583
  date: new Date(re.date),
14584
14584
  item: re
14585
- })), X = te.subGroups.map((re) => ({
14585
+ })), X = te == null ? void 0 : te.subGroups.map((re) => ({
14586
14586
  type: "subGroup",
14587
14587
  date: re != null && re.items.length ? new Date(re.items[0].date) : /* @__PURE__ */ new Date(0),
14588
14588
  subGroup: re
@@ -14703,7 +14703,7 @@ ${((J = te.searchString) == null ? void 0 : J.length) > 1 ? ke$1`
14703
14703
  var ne, oe, de, ce, he, ue;
14704
14704
  if (!J.professional) return D$1;
14705
14705
  const X = shouldShowRole(J), re = [];
14706
- return re.push(te.highlighted(J.professional.name)), X && ((oe = (ne = J.professional) == null ? void 0 : ne.role) != null && oe.description) && re.push(te.highlighted(J.professional.role.description)), (de = J.up) != null && de.description && re.push(te.highlighted(J.up.description)), (he = (ce = J.professional) == null ? void 0 : ce.speciality) != null && he.description && re.push(te.highlighted(J.professional.speciality.description)), (ue = J.service) != null && ue.description && re.push(te.highlighted(J.service.description)), re.map((pe, fe) => ke$1`${pe}${fe < re.length - 1 ? " | " : ""}`);
14706
+ return re.push(te.highlighted(J.professional.name)), X && ((oe = (ne = J.professional) == null ? void 0 : ne.role) != null && oe.description) && re.push(te.highlighted(J.professional.role.description)), (ce = (de = J.professional) == null ? void 0 : de.speciality) != null && ce.description && re.push(te.highlighted(J.professional.speciality.description)), (he = J.up) != null && he.description && re.push(te.highlighted(J.up.description)), (ue = J.service) != null && ue.description && re.push(te.highlighted(J.service.description)), re.map((pe, fe) => ke$1`${pe}${fe < re.length - 1 ? " | " : ""}`);
14707
14707
  }, diagnosticHeaderTemplate = (te) => te && ke$1`
14708
14708
  <div class="diagnostics__header">
14709
14709
  ${te.diagnostics.filter((J) => J.descripcio != null && J.descripcio.trim() !== "").map(
@@ -16438,7 +16438,7 @@ let ExitShellHandler = class {
16438
16438
  constructor(te) {
16439
16439
  this.api = te;
16440
16440
  }
16441
- async handle({ ecapEvent: te }) {
16441
+ async handle(te) {
16442
16442
  try {
16443
16443
  const J = this.api.pluginBusyManager.getBusyPluginTasks();
16444
16444
  if (J.length > 0) {
@@ -16474,8 +16474,8 @@ ExitShellHandler = __decorateClass$h([
16474
16474
  __decorateParam$4(0, inject(TYPES$1.primaryApi))
16475
16475
  ], ExitShellHandler);
16476
16476
  class ExitShell {
16477
- constructor(J) {
16478
- this.ecapEvent = J;
16477
+ constructor(J, X) {
16478
+ this.ecapEvent = J, this.payload = X;
16479
16479
  }
16480
16480
  }
16481
16481
  let request$3;
@@ -16675,7 +16675,7 @@ let FinalizeVisitHandler = class {
16675
16675
  async handle(te) {
16676
16676
  try {
16677
16677
  const J = te.visitId;
16678
- this.api.ecapEventManager.publish("RESOL_VISITA", "", { VisiID: J });
16678
+ this.api.broker.send(new ExitShell("RESOL_VISITA", { VisiID: J }));
16679
16679
  } catch (J) {
16680
16680
  this.api.notificationService.error(J.message);
16681
16681
  }
@@ -16703,7 +16703,7 @@ const useFinalizeVisit = (te) => {
16703
16703
  }, raiseCloseEvent = () => {
16704
16704
  shellApi.ecapEventManager.publish("CLOSE_FORM", "", {});
16705
16705
  }, raiseCustomCloseEvent = (te) => {
16706
- shellApi.ecapEventManager.publish(te, "", {});
16706
+ shellApi.ecapEventManager.publish(te.ecapEvent, "", te.payload);
16707
16707
  };
16708
16708
  var shellViews = /* @__PURE__ */ ((te) => (te.shell = "primaria-shell", te.error = "primaria-error-view", te))(shellViews || {});
16709
16709
  const styles$7 = ":host{width:100%;overflow:hidden}#main-switcher{display:inherit}.container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff}.main-container{min-height:1px;height:100%;display:flex}.main-container .sidebar{padding-inline:16px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:var(--color-primary-700);width:40px;height:100%;color:#fff}.main-container .sidebar .quick-actions-content{padding-top:24px;padding-bottom:22px;border-radius:8px}.main-container .sidebar .quick-actions-content .create-button-icon-badge{position:relative}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-notification-badge{position:absolute;top:-7px;right:-6px;z-index:1}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-icon{position:relative}.main-container .sidebar .icon{margin-left:8px}.main-container .sidebar #menu-region-container{padding-top:24px;min-height:1px;height:100%;width:100%;display:flex;flex-direction:column;gap:4px;overflow-y:auto;margin-right:-14px;padding-right:14px;scrollbar-color:var(--color-primary-200) var(--color-primary-700);scrollbar-width:thin}.main-container .sidebar #menu-region-container::-webkit-scrollbar{width:6px}.main-container .sidebar #menu-region-container::-webkit-scrollbar-track{background:var(--color-primary-700)}.main-container .sidebar #menu-region-container::-webkit-scrollbar-thumb{background-color:var(--color-primary-400);border-radius:4px}.main-container .sidebar .bottom-content{display:flex;flex-direction:column;gap:24px;width:100%}.main-container .sidebar .bottom-content .bottom-content-first{display:flex;flex-direction:column;gap:4px}.main-container .sidebar[expanded]{width:252px;align-items:flex-start}.main-container .sidebar .create-button-closed{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;width:40px;height:40px;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:background-color .3s ease}.main-container .sidebar .create-button-closed:hover{background-color:var(--color-primary-900);color:#fff}.main-container .sidebar .create-button-opened{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;gap:8px;font-weight:600;width:220px;height:40px;display:flex;flex-direction:row;align-items:center;transition:background-color .3s ease}.main-container .sidebar .create-button-opened:hover{background-color:var(--color-primary-900);color:#fff}.main-container .content{display:flex;height:100%;width:100%}.main-container #main-region-container{min-height:1px;height:100%;flex:1}.main-container #navigation-menu-lower-region-container{display:flex;flex-direction:column;gap:4px}.main-container #floating-region-container{position:fixed;z-index:300}.footer{display:flex;height:48px;padding:12px 24px}.footer .footer-logo{align-self:center;display:flex;gap:16px}.divider-opened{width:220px}.divider-closed{width:40px}.toggle-button{margin-bottom:24px}";
@@ -44751,9 +44751,7 @@ __decorateClass([
44751
44751
  QuickActionItem = __decorateClass([
44752
44752
  t$k("quick-action-item")
44753
44753
  ], QuickActionItem);
44754
- const sendHesFormRequest = "send_hes_form", openHesVisor = () => {
44755
- shellApi.broker.send(sendHesFormRequest);
44756
- }, upperNavMenuItems = [
44754
+ const upperNavMenuItems = [
44757
44755
  {
44758
44756
  id: "landing",
44759
44757
  icon: "home",
@@ -44933,14 +44931,6 @@ const sendHesFormRequest = "send_hes_form", openHesVisor = () => {
44933
44931
  type: "item",
44934
44932
  sortHint: "0130",
44935
44933
  callbackFn: () => navigateToEcapWithoutClosingWithCip("CONSULTA_VISITES")
44936
- },
44937
- {
44938
- id: "visor",
44939
- icon: "window",
44940
- label: "Visor",
44941
- type: "item",
44942
- sortHint: "0140",
44943
- callbackFn: openHesVisor
44944
44934
  }
44945
44935
  ], registerUpperNavMenuViews = () => {
44946
44936
  for (const te of upperNavMenuItems)