@uxland/primary-shell 3.4.0 → 3.5.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/index.js +11579 -13387
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +795 -1064
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/components/primaria-error-view/component.d.ts +9 -0
- package/dist/primary/shell/src/UI/components/primaria-error-view/template.d.ts +3 -0
- package/dist/primary/shell/src/UI/components/primaria-shell/constants.d.ts +4 -0
- package/dist/primary/shell/src/UI/components/primaria-shell/primaria-shell.d.ts +10 -0
- package/dist/primary/shell/src/UI/{shared-components/primaria-menu/primaria-menu.d.ts → components/quick-actions-menu/quick-actions-menu.d.ts} +1 -1
- package/dist/primary/shell/src/UI/components/quick-actions-menu/template.d.ts +3 -0
- package/dist/primary/shell/src/UI/shared-components/primaria-nav-item/template.d.ts +3 -0
- package/dist/primary/shell/src/UI/shared-components/primaria-nav-tree-menu/primaria-nav-tree-menu.d.ts +13 -0
- package/dist/primary/shell/src/UI/shared-components/primaria-nav-tree-menu/template.d.ts +3 -0
- package/dist/primary/shell/src/UI/shared-components/typings.d.ts +16 -0
- package/dist/primary/shell/src/api/broker/primaria-broker.d.ts +1 -0
- package/dist/primary/shell/src/api/region-manager/region-manager.d.ts +3 -2
- package/dist/primary/shell/src/bootstrapper.d.ts +2 -0
- package/dist/primary/shell/src/constants.d.ts +1 -0
- package/dist/primary/shell/src/disposer.d.ts +2 -0
- package/dist/primary/shell/src/events.d.ts +2 -0
- package/dist/primary/shell/src/features/bootstrapper.d.ts +1 -1
- package/dist/primary/shell/src/features/utils.d.ts +3 -2
- package/dist/primary/shell/src/{plugin.d.ts → handle-plugins.d.ts} +2 -1
- package/dist/primary/shell/src/handle-views.d.ts +2 -0
- package/dist/primary/shell/src/index.d.ts +5 -3
- package/dist/primary/shell/src/{UI/shared-components/dss-container/dss-container.d.ts → internal-plugins/activity-history/components/activity-history/activity-history-search-header/activity-history-search-header.d.ts} +2 -2
- package/dist/primary/shell/src/internal-plugins/activity-history/components/activity-history/activity-history-search-header/template.d.ts +3 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/components/activity-history/activity-history-timeline/activity-history-timeline.d.ts +6 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/components/activity-history/activity-history.d.ts +4 -3
- package/dist/primary/shell/src/internal-plugins/activity-history/constants.d.ts +3 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/domain/is-valid-history-item/is-valid-history-item.d.ts +1 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/features/search-items/handler.d.ts +3 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/localization.d.ts +2 -0
- package/dist/primary/shell/src/locales.d.ts +14 -3
- package/dist/style.css +1 -1
- package/package.json +2 -3
- package/src/UI/components/index.ts +1 -0
- package/src/UI/components/primaria-error-view/component.ts +18 -0
- package/src/UI/components/primaria-error-view/styles.css +27 -0
- package/src/UI/components/primaria-error-view/template.ts +12 -0
- package/src/UI/components/primaria-shell/constants.ts +4 -0
- package/src/UI/components/primaria-shell/primaria-shell.ts +38 -1
- package/src/UI/components/primaria-shell/styles.css +24 -54
- package/src/UI/components/primaria-shell/template.ts +43 -50
- package/src/UI/{shared-components/primaria-menu/primaria-menu.ts → components/quick-actions-menu/quick-actions-menu.ts} +3 -3
- package/src/UI/components/quick-actions-menu/template.ts +10 -0
- package/src/UI/images/not-found.svg +9 -0
- package/src/UI/shared-components/index.ts +1 -3
- package/src/UI/shared-components/primaria-nav-item/primaria-nav-item.ts +54 -0
- package/src/UI/shared-components/{primaria-menu-item → primaria-nav-item}/styles.css +4 -0
- package/src/UI/shared-components/primaria-nav-item/template.ts +27 -0
- package/src/UI/shared-components/primaria-nav-tree-menu/primaria-nav-tree-menu.ts +41 -0
- package/src/UI/shared-components/primaria-nav-tree-menu/styles.css +11 -0
- package/src/UI/shared-components/primaria-nav-tree-menu/template.ts +30 -0
- package/src/UI/shared-components/typings.ts +17 -0
- package/src/api/api.ts +1 -1
- package/src/api/broker/factory.ts +29 -12
- package/src/api/broker/primaria-broker.ts +2 -0
- package/src/api/ecap-event-manager/ecap-event-manager.ts +1 -1
- package/src/api/region-manager/region-manager.ts +12 -2
- package/src/api/token-manager/token-manager.test.ts +1 -1
- package/src/bootstrapper.ts +16 -0
- package/src/constants.ts +1 -0
- package/src/disposer.ts +10 -0
- package/src/events.ts +2 -0
- package/src/features/bootstrapper.ts +4 -1
- package/src/features/get-user-info/bootstrapper.ts +6 -3
- package/src/features/utils.ts +7 -5
- package/src/{plugin.ts → handle-plugins.ts} +8 -3
- package/src/handle-views.ts +284 -0
- package/src/index.ts +5 -3
- package/src/internal-plugins/activity-history/components/activity-history/activity-history-search-header/activity-history-search-header.ts +20 -0
- package/src/internal-plugins/activity-history/components/activity-history/activity-history-search-header/styles.css +14 -0
- package/src/internal-plugins/activity-history/components/activity-history/activity-history-search-header/template.ts +8 -0
- package/src/internal-plugins/activity-history/components/activity-history/activity-history-timeline/activity-history-timeline.ts +27 -1
- package/src/internal-plugins/activity-history/components/activity-history/activity-history-timeline/styles.css +21 -2
- package/src/internal-plugins/activity-history/components/activity-history/activity-history-timeline/template.ts +38 -19
- package/src/internal-plugins/activity-history/components/activity-history/activity-history.ts +17 -26
- package/src/internal-plugins/activity-history/components/activity-history/styles.css +2 -24
- package/src/internal-plugins/activity-history/components/activity-history/template.ts +37 -69
- package/src/internal-plugins/activity-history/constants.ts +3 -0
- package/src/internal-plugins/activity-history/domain/filter-by-search-string/filter-by-search-string.ts +6 -1
- package/src/internal-plugins/activity-history/domain/is-valid-history-item/is-valid-history-item.ts +19 -5
- package/src/internal-plugins/activity-history/features/add-history-item/bootstrapper.ts +5 -2
- package/src/internal-plugins/activity-history/features/add-history-items/bootstrapper.ts +5 -2
- package/src/internal-plugins/activity-history/features/export-to-pdf/bootstrapper.ts +5 -2
- package/src/internal-plugins/activity-history/features/inject-async-history-items/bootstrapper.ts +5 -2
- package/src/internal-plugins/activity-history/features/inject-async-history-items/handler.ts +3 -3
- package/src/internal-plugins/activity-history/features/search-items/bootstrapper.ts +5 -2
- package/src/internal-plugins/activity-history/features/search-items/handler.ts +9 -1
- package/src/internal-plugins/activity-history/features/update-history-item/bootstrapper.ts +5 -2
- package/src/internal-plugins/activity-history/localization.ts +2 -0
- package/src/locales.ts +25 -5
- package/dist/primary/shell/src/UI/shared-components/primaria-menu/template.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-menu-item/primaria-menu-item.d.ts +0 -15
- package/dist/primary/shell/src/UI/shared-components/primaria-menu-item/template.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-nav-menu/primaria-nav-menu.d.ts +0 -26
- package/dist/primary/shell/src/UI/shared-components/primaria-nav-menu/template.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-wrapper-menu/primaria-wrapper-menu.d.ts +0 -19
- package/dist/primary/shell/src/UI/shared-components/primaria-wrapper-menu/template.d.ts +0 -3
- package/dist/primary/shell/src/initializer.d.ts +0 -1
- package/src/UI/shared-components/dss-container/dss-container.ts +0 -32
- package/src/UI/shared-components/dss-container/styles.css +0 -23
- package/src/UI/shared-components/primaria-menu/template.ts +0 -9
- package/src/UI/shared-components/primaria-menu-item/primaria-menu-item.ts +0 -51
- package/src/UI/shared-components/primaria-menu-item/template.ts +0 -11
- package/src/UI/shared-components/primaria-nav-menu/primaria-nav-menu.ts +0 -66
- package/src/UI/shared-components/primaria-nav-menu/styles.css +0 -26
- package/src/UI/shared-components/primaria-nav-menu/template.ts +0 -30
- package/src/UI/shared-components/primaria-wrapper-menu/primaria-wrapper-menu.ts +0 -41
- package/src/UI/shared-components/primaria-wrapper-menu/styles.css +0 -5
- package/src/UI/shared-components/primaria-wrapper-menu/template.ts +0 -28
- package/src/initializer.ts +0 -327
package/src/initializer.ts
DELETED
|
@@ -1,327 +0,0 @@
|
|
|
1
|
-
import { PrimariaMenuItem } from "./UI/shared-components/primaria-menu-item/primaria-menu-item";
|
|
2
|
-
import { selectableAdapterFactory as factory, regionAdapterRegistry } from "@uxland/regions";
|
|
3
|
-
import { ClinicalMonitoring } from "./UI/components/clinical-monitoring/clinical-monitoring";
|
|
4
|
-
import { PrimariaShell } from "./UI/components/primaria-shell/primaria-shell";
|
|
5
|
-
import { shellApi } from "./api/api";
|
|
6
|
-
import { initializeLocalization } from "./locales";
|
|
7
|
-
import { shellRegions } from "./api/region-manager/regions";
|
|
8
|
-
import { clinicalMonitoringId } from "./constants";
|
|
9
|
-
import { bootstrapFeatures } from "./features/bootstrapper";
|
|
10
|
-
import { GetUserInfo } from "./features/get-user-info/request";
|
|
11
|
-
import { PocEventsEcap } from "./UI/components/poc-events-ecap/poc-events-ecap";
|
|
12
|
-
import { shellEvents } from "./events";
|
|
13
|
-
import { PrimariaWrapperMenu } from "./UI/shared-components/primaria-wrapper-menu/primaria-wrapper-menu";
|
|
14
|
-
|
|
15
|
-
export const initializeShell = async (element: HTMLElement) => {
|
|
16
|
-
initializeLocalization(shellApi);
|
|
17
|
-
regionAdapterRegistry.registerAdapterFactory("primaria-content-switcher", factory);
|
|
18
|
-
const shell = new PrimariaShell();
|
|
19
|
-
element.appendChild(shell as any);
|
|
20
|
-
registerUpViews();
|
|
21
|
-
registerLowerViews();
|
|
22
|
-
bootstrapFeatures(shellApi);
|
|
23
|
-
// shellApi.broker.subscribe("data_set", (event: any) => {
|
|
24
|
-
// console.log(event);
|
|
25
|
-
// });
|
|
26
|
-
// shellApi.broker.subscribe("data_set", (event: any) => {
|
|
27
|
-
// console.log(event, "2");
|
|
28
|
-
// });
|
|
29
|
-
|
|
30
|
-
await shellApi.broker.send(new GetUserInfo());
|
|
31
|
-
activateLandingView();
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const activateLandingView = () => {
|
|
35
|
-
shellApi.regionManager.activateView(shellRegions.main, "clinical-monitoring");
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const registerUpViews = () => {
|
|
39
|
-
shellApi.regionManager.registerMainView({
|
|
40
|
-
id: clinicalMonitoringId,
|
|
41
|
-
factory: () => {
|
|
42
|
-
const mainItem = new ClinicalMonitoring();
|
|
43
|
-
return Promise.resolve(mainItem as unknown as HTMLElement);
|
|
44
|
-
},
|
|
45
|
-
options: {
|
|
46
|
-
sortHint: "10",
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
shellApi.regionManager.registerMainView({
|
|
50
|
-
id: "poc-events-ecap",
|
|
51
|
-
factory: () => {
|
|
52
|
-
const mainItem = new PocEventsEcap();
|
|
53
|
-
return Promise.resolve(mainItem as unknown as HTMLElement);
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
shellApi.regionManager.registerView(shellRegions.navigationMenu, {
|
|
57
|
-
id: "poc-events-ecap",
|
|
58
|
-
factory: () => {
|
|
59
|
-
const menuItem = new PrimariaMenuItem("bolt", "Prova Events ECAP", false, () => {
|
|
60
|
-
shellApi.regionManager.activateView(shellRegions.main, "poc-events-ecap");
|
|
61
|
-
});
|
|
62
|
-
return Promise.resolve(menuItem);
|
|
63
|
-
},
|
|
64
|
-
options: {
|
|
65
|
-
sortHint: "000100",
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
shellApi.regionManager.registerView(shellRegions.navigationMenu, {
|
|
69
|
-
id: "communication",
|
|
70
|
-
factory: () => {
|
|
71
|
-
const menuItem = new PrimariaWrapperMenu("add_box", "Comunicació", true, [
|
|
72
|
-
{
|
|
73
|
-
icon: "open_in_new",
|
|
74
|
-
label: "SMS",
|
|
75
|
-
callbackFn: () => {
|
|
76
|
-
shellApi.ecapEventManager.publish("SMS", "open_in_new", {
|
|
77
|
-
type: "open_in_new",
|
|
78
|
-
label: "SMS",
|
|
79
|
-
});
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
icon: "open_in_new",
|
|
84
|
-
label: "econsulta",
|
|
85
|
-
callbackFn: (): void => {
|
|
86
|
-
shellApi.ecapEventManager.publish("econsulta", "open_in_new", {
|
|
87
|
-
type: "open_in_new",
|
|
88
|
-
label: "econsulta",
|
|
89
|
-
});
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
icon: "open_in_new",
|
|
94
|
-
label: "mail",
|
|
95
|
-
callbackFn: (): void => {
|
|
96
|
-
shellApi.ecapEventManager.publish("mail", "open_in_new", {
|
|
97
|
-
type: "open_in_new",
|
|
98
|
-
label: "mail",
|
|
99
|
-
});
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
icon: "open_in_new",
|
|
104
|
-
label: "veu IP",
|
|
105
|
-
callbackFn: (): void => {
|
|
106
|
-
shellApi.ecapEventManager.publish("veu IP", "open_in_new", {
|
|
107
|
-
type: "open_in_new",
|
|
108
|
-
label: "veu IP",
|
|
109
|
-
});
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
icon: "open_in_new",
|
|
114
|
-
label: "videoconsulta",
|
|
115
|
-
callbackFn: (): void => {
|
|
116
|
-
shellApi.ecapEventManager.publish("videoconsulta", "open_in_new", {
|
|
117
|
-
type: "open_in_new",
|
|
118
|
-
label: "videoconsulta",
|
|
119
|
-
});
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
]);
|
|
123
|
-
return Promise.resolve(menuItem);
|
|
124
|
-
},
|
|
125
|
-
});
|
|
126
|
-
shellApi.regionManager.registerView(shellRegions.navigationMenu, {
|
|
127
|
-
id: "visits",
|
|
128
|
-
factory: () => {
|
|
129
|
-
const menuItem = new PrimariaMenuItem("add_box", "Visites", false, () => {
|
|
130
|
-
// shellApi.regionManager.activateView(shellRegions.main, "");
|
|
131
|
-
});
|
|
132
|
-
return Promise.resolve(menuItem);
|
|
133
|
-
},
|
|
134
|
-
});
|
|
135
|
-
shellApi.regionManager.registerView(shellRegions.navigationMenu, {
|
|
136
|
-
id: "it",
|
|
137
|
-
factory: () => {
|
|
138
|
-
const menuItem = new PrimariaMenuItem("add_box", "IT", false, () => {
|
|
139
|
-
// shellApi.regionManager.activateView(shellRegions.main, "");
|
|
140
|
-
});
|
|
141
|
-
return Promise.resolve(menuItem);
|
|
142
|
-
},
|
|
143
|
-
});
|
|
144
|
-
shellApi.regionManager.registerView(shellRegions.navigationMenu, {
|
|
145
|
-
id: "unique-petition",
|
|
146
|
-
factory: () => {
|
|
147
|
-
const menuItem = new PrimariaWrapperMenu("add_box", "Petitori únic", true, [
|
|
148
|
-
{
|
|
149
|
-
icon: "open_in_new",
|
|
150
|
-
label: "Analítiques",
|
|
151
|
-
callbackFn: (): void => {
|
|
152
|
-
shellApi.ecapEventManager.publish("Analítiques", "open_in_new", {
|
|
153
|
-
type: "open_in_new",
|
|
154
|
-
label: "Analítiques",
|
|
155
|
-
});
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
icon: "open_in_new",
|
|
160
|
-
label: "OC",
|
|
161
|
-
callbackFn: (): void => {
|
|
162
|
-
shellApi.ecapEventManager.publish("OC", "open_in_new", {
|
|
163
|
-
type: "open_in_new",
|
|
164
|
-
label: "OC",
|
|
165
|
-
});
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
icon: "open_in_new",
|
|
170
|
-
label: "OC Exprés",
|
|
171
|
-
callbackFn: (): void => {
|
|
172
|
-
shellApi.ecapEventManager.publish("OC Exprés", "open_in_new", {
|
|
173
|
-
type: "open_in_new",
|
|
174
|
-
label: "OC Exprés",
|
|
175
|
-
});
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
icon: "open_in_new",
|
|
180
|
-
label: "Sol·licitud de trasllat",
|
|
181
|
-
callbackFn: (): void => {
|
|
182
|
-
shellApi.ecapEventManager.publish("Sol·licitud de trasllat", "open_in_new", {
|
|
183
|
-
type: "open_in_new",
|
|
184
|
-
label: "Sol·licitud de trasllat",
|
|
185
|
-
});
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
]);
|
|
189
|
-
return Promise.resolve(menuItem);
|
|
190
|
-
},
|
|
191
|
-
});
|
|
192
|
-
shellApi.regionManager.registerView(shellRegions.navigationMenu, {
|
|
193
|
-
id: "results-reports",
|
|
194
|
-
factory: () => {
|
|
195
|
-
const menuItem = new PrimariaWrapperMenu("add_box", "Resultats i informes", true, [
|
|
196
|
-
{
|
|
197
|
-
icon: "open_in_new",
|
|
198
|
-
label: "Resultats i informes ECAP",
|
|
199
|
-
callbackFn: (): void => {
|
|
200
|
-
shellApi.ecapEventManager.publish("Resultats i informes ECAP", "open_in_new", {
|
|
201
|
-
type: "open_in_new",
|
|
202
|
-
label: "Resultats i informes ECAP",
|
|
203
|
-
});
|
|
204
|
-
},
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
icon: "open_in_new",
|
|
208
|
-
label: "Documents usuari",
|
|
209
|
-
callbackFn: (): void => {
|
|
210
|
-
shellApi.ecapEventManager.publish("Documents usuari", "open_in_new", {
|
|
211
|
-
type: "open_in_new",
|
|
212
|
-
label: "Documents usuari",
|
|
213
|
-
});
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
]);
|
|
217
|
-
return Promise.resolve(menuItem);
|
|
218
|
-
},
|
|
219
|
-
});
|
|
220
|
-
shellApi.regionManager.registerView(shellRegions.navigationMenu, {
|
|
221
|
-
id: "processes",
|
|
222
|
-
factory: () => {
|
|
223
|
-
const menuItem = new PrimariaWrapperMenu("add_box", "Processos", true, [
|
|
224
|
-
{
|
|
225
|
-
icon: "open_in_new",
|
|
226
|
-
label: "ARES",
|
|
227
|
-
callbackFn: (): void => {
|
|
228
|
-
shellApi.ecapEventManager.publish("ARES", "open_in_new", {
|
|
229
|
-
type: "open_in_new",
|
|
230
|
-
label: "ARES",
|
|
231
|
-
});
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
icon: "open_in_new",
|
|
236
|
-
label: "Nen sa",
|
|
237
|
-
callbackFn: (): void => {
|
|
238
|
-
shellApi.ecapEventManager.publish("Nen sa", "open_in_new", {
|
|
239
|
-
type: "open_in_new",
|
|
240
|
-
label: "Nen sa",
|
|
241
|
-
});
|
|
242
|
-
},
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
icon: "open_in_new",
|
|
246
|
-
label: "Procés Obstètric",
|
|
247
|
-
callbackFn: (): void => {
|
|
248
|
-
shellApi.ecapEventManager.publish("Procés Obstètric", "open_in_new", {
|
|
249
|
-
type: "open_in_new",
|
|
250
|
-
label: "Procés Obstètric",
|
|
251
|
-
});
|
|
252
|
-
},
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
icon: "open_in_new",
|
|
256
|
-
label: "Odontologia",
|
|
257
|
-
callbackFn: (): void => {
|
|
258
|
-
shellApi.ecapEventManager.publish("Odontologia", "open_in_new", {
|
|
259
|
-
type: "open_in_new",
|
|
260
|
-
label: "Odontologia",
|
|
261
|
-
});
|
|
262
|
-
},
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
icon: "open_in_new",
|
|
266
|
-
label: "Situació d'especial cura",
|
|
267
|
-
callbackFn: (): void => {
|
|
268
|
-
shellApi.ecapEventManager.publish("Situació d'especial cura", "open_in_new", {
|
|
269
|
-
type: "open_in_new",
|
|
270
|
-
label: "Situació d'especial cura",
|
|
271
|
-
});
|
|
272
|
-
},
|
|
273
|
-
},
|
|
274
|
-
]);
|
|
275
|
-
return Promise.resolve(menuItem);
|
|
276
|
-
},
|
|
277
|
-
});
|
|
278
|
-
shellApi.regionManager.registerView(shellRegions.navigationMenu, {
|
|
279
|
-
id: "variable activities",
|
|
280
|
-
factory: () => {
|
|
281
|
-
const menuItem = new PrimariaMenuItem("add_box", "Activitats variables", false, async () => {
|
|
282
|
-
const CIP = (await shellApi.broker.send("get_patient_cip")) as string;
|
|
283
|
-
shellApi.ecapEventManager.publish("IA_DEV", "NO_TANCAR", {
|
|
284
|
-
CIP: CIP || "",
|
|
285
|
-
});
|
|
286
|
-
});
|
|
287
|
-
return Promise.resolve(menuItem);
|
|
288
|
-
},
|
|
289
|
-
});
|
|
290
|
-
shellApi.regionManager.registerView(shellRegions.navigationMenu, {
|
|
291
|
-
id: clinicalMonitoringId,
|
|
292
|
-
factory: () => {
|
|
293
|
-
const menuItem = new PrimariaMenuItem("add_box", "Seguiment clínic", false, () => {
|
|
294
|
-
shellApi.regionManager.activateView(shellRegions.main, "clinical-monitoring");
|
|
295
|
-
shellApi.broker.publish(shellEvents.openClinicalMonitoringRequested);
|
|
296
|
-
});
|
|
297
|
-
return Promise.resolve(menuItem);
|
|
298
|
-
},
|
|
299
|
-
});
|
|
300
|
-
shellApi.regionManager.registerView(shellRegions.navigationMenu, {
|
|
301
|
-
id: "landing",
|
|
302
|
-
factory: () => {
|
|
303
|
-
const menuItem = new PrimariaMenuItem("add_box", "Pàgina inici", false, () => {
|
|
304
|
-
// shellApi.regionManager.activateView(shellRegions.main, "");
|
|
305
|
-
});
|
|
306
|
-
return Promise.resolve(menuItem);
|
|
307
|
-
},
|
|
308
|
-
});
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
const registerLowerViews = () => {
|
|
312
|
-
shellApi.regionManager.registerMainView({
|
|
313
|
-
id: "configuration-center",
|
|
314
|
-
// factory: () => {
|
|
315
|
-
|
|
316
|
-
// }
|
|
317
|
-
});
|
|
318
|
-
shellApi.regionManager.registerView(shellRegions.navigationLowerLeftMenu, {
|
|
319
|
-
id: "configuration-center",
|
|
320
|
-
factory: () => {
|
|
321
|
-
const menuItem = new PrimariaMenuItem("add_box", "Centre de Configuració", false, () => {
|
|
322
|
-
// shellApi.regionManager.activateView(shellRegions.main, "");
|
|
323
|
-
});
|
|
324
|
-
return Promise.resolve(menuItem);
|
|
325
|
-
},
|
|
326
|
-
});
|
|
327
|
-
};
|