@uxland/primary-shell 7.35.6 → 7.36.2
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-CcAfjHyB.js → component-DcOxAUm8.js} +2 -2
- package/dist/{component-CcAfjHyB.js.map → component-DcOxAUm8.js.map} +1 -1
- package/dist/{index-BvcX6DDS.js → index-DRzDb9o9.js} +3437 -3275
- package/dist/index-DRzDb9o9.js.map +1 -0
- package/dist/index.js +21 -20
- package/dist/index.umd.cjs +566 -516
- 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 +2 -2
- package/src/UI/components/bootstrapper.ts +0 -2
- package/src/api/context-manager/context-manager.ts +1 -0
- package/src/api/region-manager/region-manager.test.ts +3 -2
- package/src/api/region-manager/region-manager.ts +1 -2
- package/src/features/bootstrapper.ts +0 -3
- package/src/index.ts +2 -0
- package/src/locales.ts +0 -1
- package/dist/index-BvcX6DDS.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxland/primary-shell",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.36.2",
|
|
4
4
|
"description": "Primaria Shell",
|
|
5
5
|
"author": "UXLand <dev@uxland.es>",
|
|
6
6
|
"homepage": "https://github.com/uxland/harmonix/tree/app#readme",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@primaria/plugins-core": "^1.0.14",
|
|
33
|
-
"@salut/design-system-salut": "../../design-system-salut-2.
|
|
33
|
+
"@salut/design-system-salut": "../../design-system-salut-2.14.0.tgz",
|
|
34
34
|
"@types/react": "^19.0.12",
|
|
35
35
|
"@uxland/lit-utilities": "^1.0.0",
|
|
36
36
|
"@uxland/localization": "^1.0.3",
|
|
@@ -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);
|
|
@@ -24,6 +24,7 @@ describe("RegionManagerProxy", () => {
|
|
|
24
24
|
regionMock = createMockRegion();
|
|
25
25
|
regionManager = {
|
|
26
26
|
registerViewWithRegion: vi.fn(),
|
|
27
|
+
unregisterViewFromRegion: vi.fn(),
|
|
27
28
|
getRegion: vi.fn().mockReturnValue(regionMock),
|
|
28
29
|
destroy: vi.fn(),
|
|
29
30
|
};
|
|
@@ -40,9 +41,9 @@ describe("RegionManagerProxy", () => {
|
|
|
40
41
|
expect(regionManager.registerViewWithRegion).toHaveBeenCalledWith("test-region", `${pluginId}::${mockView.id}`, mockView);
|
|
41
42
|
});
|
|
42
43
|
|
|
43
|
-
it("removeView should
|
|
44
|
+
it("removeView should unregister view from region manager", async () => {
|
|
44
45
|
await proxy.removeView("main", "view1");
|
|
45
|
-
expect(
|
|
46
|
+
expect(regionManager.unregisterViewFromRegion).toHaveBeenCalledWith("main", `${pluginId}::view1`);
|
|
46
47
|
});
|
|
47
48
|
|
|
48
49
|
it("activateView should activate the view and notify if region is main", async () => {
|
|
@@ -50,8 +50,7 @@ class RegionManagerProxy implements PrimariaRegionManager {
|
|
|
50
50
|
* @return {Promise<void>} A promise that resolves when the view is successfully removed.
|
|
51
51
|
*/
|
|
52
52
|
removeView(regionName: string, viewId: string): Promise<void> {
|
|
53
|
-
|
|
54
|
-
if (region) region.removeView(`${this.pluginInfo.pluginId}::${viewId}`);
|
|
53
|
+
this.regionManager.unregisterViewFromRegion(regionName, `${this.pluginInfo.pluginId}::${viewId}`);
|
|
55
54
|
return Promise.resolve();
|
|
56
55
|
}
|
|
57
56
|
/**
|
|
@@ -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();
|
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ó.",
|