@uxland/primary-shell 7.35.5 → 7.36.0
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/{component-p9xkUhDo.js → component-DVhgBGqC.js} +2 -2
- package/dist/{component-p9xkUhDo.js.map → component-DVhgBGqC.js.map} +1 -1
- package/dist/{index-BRNyQKMi.js → index-B_9ErUyY.js} +681 -722
- package/dist/index-B_9ErUyY.js.map +1 -0
- package/dist/index.js +21 -20
- package/dist/index.umd.cjs +65 -67
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/api/context-manager/context-manager.d.ts +1 -0
- package/dist/primary/shell/src/index.d.ts +2 -0
- package/dist/primary/shell/src/locales.d.ts +0 -1
- package/package.json +1 -1
- package/src/UI/components/bootstrapper.ts +0 -2
- package/src/api/context-manager/context-manager.ts +1 -0
- package/src/features/bootstrapper.ts +0 -3
- package/src/features/navigate-to-ecap/navigate-to-ecap.ts +8 -5
- package/src/index.ts +2 -0
- package/src/locales.ts +0 -1
- package/dist/index-BRNyQKMi.js.map +0 -1
- package/dist/primary/shell/src/features/visit/finalize-visit/bootstrapper.d.ts +0 -3
- package/dist/primary/shell/src/features/visit/finalize-visit/component/finalize-visit-button.d.ts +0 -5
- package/dist/primary/shell/src/features/visit/finalize-visit/component/template.d.ts +0 -2
- package/dist/primary/shell/src/features/visit/finalize-visit/handler.d.ts +0 -7
- package/dist/primary/shell/src/features/visit/finalize-visit/request.d.ts +0 -2
- package/src/features/visit/finalize-visit/bootstrapper.ts +0 -26
- package/src/features/visit/finalize-visit/component/finalize-visit-button.ts +0 -14
- package/src/features/visit/finalize-visit/component/template.ts +0 -9
- package/src/features/visit/finalize-visit/handler.ts +0 -19
- package/src/features/visit/finalize-visit/request.ts +0 -1
|
@@ -13,6 +13,8 @@ export { EcapEventManager, createEcapEventManager, } from './api/ecap-event-mana
|
|
|
13
13
|
export type { IEcapEvent } from './api/ecap-event-manager/typings';
|
|
14
14
|
export * from '@uxland/harmonix-adapters';
|
|
15
15
|
export * from './api/interaction-service';
|
|
16
|
+
export { ExitShell } from './features/exit/request';
|
|
17
|
+
export type { ExitShellPayload } from './features/exit/request';
|
|
16
18
|
export type { IUserInfo } from './features/get-user-info/model';
|
|
17
19
|
export type { IActivityHistoryItem } from '../../../plugins/activity-history/src/activity-history-item/domain/model';
|
|
18
20
|
export type { InjectAsyncHistoryItemsPayload } from '../../../plugins/activity-history/src/activity-history-item/add/add-async-history-items/request';
|
package/package.json
CHANGED
|
@@ -4,7 +4,6 @@ import { PrimariaErrorView } from "./error-view/component";
|
|
|
4
4
|
import { QuickActionsMenu } from "./quick-actions-menu/quick-actions-menu";
|
|
5
5
|
import { PrimariaShellHeader } from "./primaria-shell/shell-header/shell-header";
|
|
6
6
|
import { PocEventsEcap } from "./poc-events-ecap/poc-events-ecap";
|
|
7
|
-
import { FinalizeVisitButton } from "../../features/visit/finalize-visit/component/finalize-visit-button";
|
|
8
7
|
import { PrimariaAccordion } from "./primaria-accordion/primaria-accordion";
|
|
9
8
|
import { CommunicationActionMenu } from "./communication-action-menu/communication-action-menu";
|
|
10
9
|
import { ClinicalPathwaysActionMenu } from "./clinical-pathways-action-menu/clinical-pathways-action-menu";
|
|
@@ -18,7 +17,6 @@ export const useComponents = () => {
|
|
|
18
17
|
customElement("primaria-shell-header")(PrimariaShellHeader);
|
|
19
18
|
customElement("primaria-error-view")(PrimariaErrorView);
|
|
20
19
|
customElement("quick-actions-menu")(QuickActionsMenu);
|
|
21
|
-
customElement("finalize-visit-button")(FinalizeVisitButton);
|
|
22
20
|
customElement('header-divider')(HeaderDivider);
|
|
23
21
|
//@ts-ignore
|
|
24
22
|
customElement("communication-action-menu")(CommunicationActionMenu);
|
|
@@ -5,20 +5,17 @@ import { TYPES } from "../infrastructure/ioc/types";
|
|
|
5
5
|
import { disposeExitShell, useExitShell } from "./exit/bootstrapper";
|
|
6
6
|
import { disposeGetUserInfo, useGetUserInfo } from "./get-user-info/bootstrapper";
|
|
7
7
|
import { GetUserInfo } from "./get-user-info/request";
|
|
8
|
-
import { disposeFinalizeVisit, useFinalizeVisit } from "./visit/finalize-visit/bootstrapper";
|
|
9
8
|
|
|
10
9
|
export const useFeatures = (api: PrimariaApi) => {
|
|
11
10
|
container.bind(TYPES.primaryApi).toConstantValue(api);
|
|
12
11
|
useGetUserInfo(api);
|
|
13
12
|
useExitShell(api);
|
|
14
|
-
useFinalizeVisit(api);
|
|
15
13
|
api.broker.send(new GetUserInfo());
|
|
16
14
|
};
|
|
17
15
|
|
|
18
16
|
export const disposeFeatures = (api: PrimariaApi) => {
|
|
19
17
|
disposeGetUserInfo();
|
|
20
18
|
disposeExitShell();
|
|
21
|
-
disposeFinalizeVisit();
|
|
22
19
|
container.unbindAll();
|
|
23
20
|
api.regionManager._destroy();
|
|
24
21
|
mediatorSettings.resolver.clear();
|
|
@@ -9,10 +9,13 @@ export const navigateToEcap = async (
|
|
|
9
9
|
) => {
|
|
10
10
|
const params = { ...additionalParams };
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
try {
|
|
13
|
+
if (includeCip) {
|
|
14
|
+
const CIP = await getPatientCip(shellApi);
|
|
15
|
+
params.CIP = CIP;
|
|
16
|
+
shellApi.ecapEventManager.publish(eventName, closeAction, params);
|
|
17
|
+
}
|
|
18
|
+
} catch (error) {
|
|
19
|
+
console.error(error);
|
|
15
20
|
}
|
|
16
|
-
|
|
17
|
-
shellApi.ecapEventManager.publish(eventName, closeAction, params);
|
|
18
21
|
};
|
package/src/index.ts
CHANGED
|
@@ -26,6 +26,8 @@ export {
|
|
|
26
26
|
export type { IEcapEvent } from "./api/ecap-event-manager/typings";
|
|
27
27
|
export * from "@uxland/harmonix-adapters";
|
|
28
28
|
export * from "./api/interaction-service";
|
|
29
|
+
export { ExitShell } from "./features/exit/request";
|
|
30
|
+
export type { ExitShellPayload } from "./features/exit/request";
|
|
29
31
|
export type { IUserInfo } from "./features/get-user-info/model";
|
|
30
32
|
export type { IActivityHistoryItem } from "../../../plugins/activity-history/src/activity-history-item/domain/model";
|
|
31
33
|
export type { InjectAsyncHistoryItemsPayload } from "../../../plugins/activity-history/src/activity-history-item/add/add-async-history-items/request";
|
package/src/locales.ts
CHANGED
|
@@ -36,7 +36,6 @@ export const locales = {
|
|
|
36
36
|
toggleMenuClose: "Tancar menú",
|
|
37
37
|
toggleMenuOpen: "Expandir menú",
|
|
38
38
|
askExit: "Atenció, vols sortir igualment?",
|
|
39
|
-
finalizeVisit: "Finalitzar visita",
|
|
40
39
|
},
|
|
41
40
|
errors: {
|
|
42
41
|
session: "Hi ha hagut un error amb la sessió. Siusplau, tanca i torna a obrir l'aplicació.",
|