@uxland/primary-shell 5.6.7 → 5.6.9

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.
@@ -0,0 +1 @@
1
+ export declare const openHesVisor: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxland/primary-shell",
3
- "version": "5.6.7",
3
+ "version": "5.6.9",
4
4
  "description": "Primaria Shell",
5
5
  "author": "UXLand <dev@uxland.es>",
6
6
  "homepage": "https://github.com/uxland/harmonix/tree/app#readme",
@@ -8,6 +8,7 @@ import { QuickActionItem } from "../shared-components/quick-action-item/quick-ac
8
8
  import { PrimariaNavItem } from "../shared-components/primaria-nav-item/primaria-nav-item";
9
9
  import { PrimariaNavTreeMenu } from "../shared-components/primaria-nav-tree-menu/primaria-nav-tree-menu";
10
10
  import { GetVisitId } from "../../features/visit/get-visit-id/request";
11
+ import { openHesVisor } from "../../features/open-hes-visor/open-hes-visor";
11
12
 
12
13
  type MenuItemConfig =
13
14
  | {
@@ -218,7 +219,7 @@ const upperNavMenuItems: MenuItemConfig[] = [
218
219
  label: "Visor",
219
220
  type: "item",
220
221
  sortHint: "0140",
221
- callbackFn: () => {},
222
+ callbackFn: openHesVisor,
222
223
  },
223
224
  ];
224
225
 
@@ -0,0 +1,6 @@
1
+ import { shellApi } from "../../api/api";
2
+
3
+ const sendHesFormRequest = "send_hes_form";
4
+ export const openHesVisor = () => {
5
+ shellApi.broker.send(sendHesFormRequest);
6
+ };
@@ -52,12 +52,12 @@ export const headerMaximizedTemplate = (props: ActivityHistoryMain) => html`
52
52
  </dss-datepicker>
53
53
  </div>
54
54
  <div class="header__maximized__right">
55
- <div>
55
+ <!-- <div>
56
56
  <dss-button variant="subtle" size="md" label="${translate("actions.moreOptions")}" icon="more_horiz" iconposition="left"></dss-button>
57
- <!-- <dss-action-menu position="bottom-start">
57
+ <dss-action-menu position="bottom-start">
58
58
  <dss-action-menu-item @click=${() => props.api.broker.send(new ExportPdf())} lefticon="file_download" label=${translate("actions.exportPdf")}></dss-action-menu-item>
59
- </dss-action-menu> -->
60
- </div>
59
+ </dss-action-menu>
60
+ </div> -->
61
61
  <dss-button label="${translate("actions.entryLegend")}" size="md" variant="secondary" icon="info"></dss-button>
62
62
  <dss-button label="${translate("actions.cronogram")}" size="md" variant="primary" icon="view_timeline" @click=${props._raiseEcapCronogramEvent}></dss-button>
63
63
  </div>
@@ -12,7 +12,7 @@ export const mergeHistoryItemsAndSubgroups = (
12
12
  group: IActivityHistoryGroup,
13
13
  ): ActivityHistoryEntry[] => {
14
14
  // 1. Prepara los items sueltos
15
- const itemEntries: ActivityHistoryEntry[] = group.items.map((item) => ({
15
+ const itemEntries: ActivityHistoryEntry[] = group?.items.map((item) => ({
16
16
  type: "item",
17
17
  date: new Date(item.date),
18
18
  item,
@@ -21,7 +21,7 @@ export const mergeHistoryItemsAndSubgroups = (
21
21
  // 2. Prepara los subGroups, usando la fecha del ítem más reciente de cada subgrupo
22
22
  const subGroupEntries: ActivityHistoryEntry[] = group.subGroups.map((subGroup) => {
23
23
  // Asumimos que subGroup.items ya está ordenado de más reciente a más antiguo
24
- const mostRecent = subGroup.items.length ? new Date(subGroup.items[0].date) : new Date(0);
24
+ const mostRecent = subGroup?.items.length ? new Date(subGroup.items[0].date) : new Date(0);
25
25
  return {
26
26
  type: "subGroup",
27
27
  date: mostRecent,