@uxland/primary-shell 7.10.0 → 7.11.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-U4paEq5h.js → component-DnzxDlBH.js} +2 -2
- package/dist/{component-U4paEq5h.js.map → component-DnzxDlBH.js.map} +1 -1
- package/dist/{index-rzAClqiP.js → index-OmsP_dgZ.js} +14 -3
- package/dist/index-OmsP_dgZ.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/internal-views/doctor-quick-action-menu.d.ts +1 -0
- package/package.json +1 -1
- package/src/UI/internal-views/doctor-quick-action-menu.ts +16 -0
- package/src/UI/internal-views/handle-views.ts +5 -3
- package/dist/index-rzAClqiP.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const registerDoctorQuickActionViews: () => void;
|
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { shellApi } from "../../api/api";
|
|
2
|
+
import { QuickActionItem } from "../shared-components/quick-action-item/quick-action-item";
|
|
3
|
+
import { navigateToEcapWithoutClosingWithCip } from "../../features/navigate-to-ecap/navigate-without-closing-and-with-cip";
|
|
4
|
+
|
|
5
|
+
export const registerDoctorQuickActionViews = () => {
|
|
6
|
+
shellApi.regionManager.registerView(shellApi.regionManager.regions.shell.quickActions, {
|
|
7
|
+
id: "dates",
|
|
8
|
+
sortHint: "0001",
|
|
9
|
+
factory: () => {
|
|
10
|
+
const quickActionItem = new QuickActionItem("", "Cita", () => {
|
|
11
|
+
navigateToEcapWithoutClosingWithCip("CREAR_VISITA");
|
|
12
|
+
});
|
|
13
|
+
return Promise.resolve(quickActionItem);
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
};
|
|
@@ -2,6 +2,7 @@ import { shellApi } from "../../api/api";
|
|
|
2
2
|
import { registerPDFVisorMainView } from "../../api/pdf-viewer-manager/handle-views";
|
|
3
3
|
import { registerAdministrativeNavMenuViews } from "./administrative-nav-menu";
|
|
4
4
|
import { registerDoctorNavMenuViews } from "./doctor-nav-menu";
|
|
5
|
+
import { registerDoctorQuickActionViews } from "./doctor-quick-action-menu";
|
|
5
6
|
|
|
6
7
|
const registerMainViews = () => {
|
|
7
8
|
registerPDFVisorMainView();
|
|
@@ -10,8 +11,9 @@ const registerMainViews = () => {
|
|
|
10
11
|
export const useInternalViews = () => {
|
|
11
12
|
registerMainViews();
|
|
12
13
|
const isUserRoleAdministrative = shellApi.userManager.isUserRoleAdministrative();
|
|
13
|
-
if(
|
|
14
|
-
|
|
15
|
-
else
|
|
14
|
+
if (isUserRoleAdministrative) registerAdministrativeNavMenuViews();
|
|
15
|
+
else {
|
|
16
16
|
registerDoctorNavMenuViews();
|
|
17
|
+
registerDoctorQuickActionViews();
|
|
18
|
+
}
|
|
17
19
|
};
|