@uxland/primary-shell 5.6.8 → 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 +9 -18
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +5 -5
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/disposer.d.ts +3 -1
- package/dist/primary/shell/src/features/exit/handler.d.ts +1 -1
- package/dist/primary/shell/src/features/exit/request.d.ts +6 -1
- package/package.json +1 -1
- package/src/UI/internal-views/upper-nav-views.ts +1 -9
- package/src/disposer.ts +3 -2
- package/src/features/exit/handler.test.ts +32 -10
- package/src/features/exit/handler.ts +6 -6
- package/src/features/exit/request.ts +6 -1
- package/src/features/visit/finalize-visit/handler.ts +2 -1
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/template.ts +11 -9
- package/src/internal-plugins/activity-history/activity-history-item/list/merge-history-items-and-subgroups/merge-history-items-and-subgroups.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -14578,13 +14578,13 @@ const hasItemDivider = (te, J) => {
|
|
|
14578
14578
|
const X = J.findIndex((ne) => ne.id === te.id);
|
|
14579
14579
|
return X === -1 ? !1 : X === J.length - 1 ? !0 : !((re = te.diagnostics) != null && re.length);
|
|
14580
14580
|
}, mergeHistoryItemsAndSubgroups = (te) => {
|
|
14581
|
-
const J = te.items.map((re) => ({
|
|
14581
|
+
const J = te == null ? void 0 : te.items.map((re) => ({
|
|
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
|
-
date: re.items.length ? new Date(re.items[0].date) : /* @__PURE__ */ new Date(0),
|
|
14587
|
+
date: re != null && re.items.length ? new Date(re.items[0].date) : /* @__PURE__ */ new Date(0),
|
|
14588
14588
|
subGroup: re
|
|
14589
14589
|
}));
|
|
14590
14590
|
return [...J, ...X].sort((re, ne) => ne.date.getTime() - re.date.getTime());
|
|
@@ -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.
|
|
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(
|
|
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.
|
|
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}";
|
|
@@ -44931,15 +44931,6 @@ const upperNavMenuItems = [
|
|
|
44931
44931
|
type: "item",
|
|
44932
44932
|
sortHint: "0130",
|
|
44933
44933
|
callbackFn: () => navigateToEcapWithoutClosingWithCip("CONSULTA_VISITES")
|
|
44934
|
-
},
|
|
44935
|
-
{
|
|
44936
|
-
id: "visor",
|
|
44937
|
-
icon: "window",
|
|
44938
|
-
label: "Visor",
|
|
44939
|
-
type: "item",
|
|
44940
|
-
sortHint: "0140",
|
|
44941
|
-
callbackFn: () => {
|
|
44942
|
-
}
|
|
44943
44934
|
}
|
|
44944
44935
|
], registerUpperNavMenuViews = () => {
|
|
44945
44936
|
for (const te of upperNavMenuItems)
|