@uxland/primary-shell 5.1.0 → 5.1.1
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 +22726 -22470
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +229 -174
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/components/pdf-visor/pdf-selector/pdf-selector.d.ts +12 -0
- package/dist/primary/shell/src/UI/components/pdf-visor/pdf-selector/template.d.ts +3 -0
- package/dist/primary/shell/src/UI/components/pdf-visor/pdf-visor.d.ts +22 -0
- package/dist/primary/shell/src/UI/components/pdf-visor/utils.d.ts +1 -0
- package/dist/primary/shell/src/UI/components/poc-events-ecap/poc-events-ecap.d.ts +2 -0
- package/dist/primary/shell/src/api/api.d.ts +2 -0
- package/dist/primary/shell/src/api/pdf-viewer-manager/events.d.ts +5 -0
- package/dist/primary/shell/src/api/pdf-viewer-manager/pdf-viewer-manager.d.ts +27 -0
- package/dist/primary/shell/src/constants.d.ts +1 -0
- package/dist/primary/shell/src/locales.d.ts +10 -0
- package/package.json +1 -1
- package/src/UI/components/clinical-monitoring/styles.css +0 -1
- package/src/UI/components/index.ts +1 -0
- package/src/UI/components/pdf-visor/pdf-selector/pdf-selector.ts +40 -0
- package/src/UI/components/pdf-visor/pdf-selector/styles.css +24 -0
- package/src/UI/components/pdf-visor/pdf-selector/template.ts +37 -0
- package/src/UI/components/pdf-visor/pdf-visor.ts +124 -0
- package/src/UI/components/pdf-visor/styles.css +29 -0
- package/src/UI/components/pdf-visor/utils.ts +16 -0
- package/src/UI/components/poc-events-ecap/poc-events-ecap.ts +37 -7
- package/src/api/api.ts +7 -1
- package/src/api/pdf-viewer-manager/events.ts +5 -0
- package/src/api/pdf-viewer-manager/pdf-viewer-manager.ts +97 -0
- package/src/constants.ts +1 -0
- package/src/handle-views.ts +12 -7
- package/src/locales.ts +10 -0
package/src/handle-views.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { shellApi } from "./api/api";
|
|
2
2
|
import { shellRegions } from "./api/region-manager/regions";
|
|
3
|
-
import { clinicalMonitoringId, pocTestEventsId } from "./constants";
|
|
3
|
+
import { clinicalMonitoringId, pdfViewerId, pocTestEventsId } from "./constants";
|
|
4
4
|
import { shellEvents } from "./events";
|
|
5
5
|
import { ExitShell } from "./features/exit/request";
|
|
6
6
|
import { ClinicalMonitoring } from "./UI/components/clinical-monitoring/clinical-monitoring";
|
|
7
|
+
import { PdfVisor } from "./UI/components/pdf-visor/pdf-visor";
|
|
7
8
|
import { PocEventsEcap } from "./UI/components/poc-events-ecap/poc-events-ecap";
|
|
8
9
|
import { PrimariaNavItem } from "./UI/shared-components/primaria-nav-item/primaria-nav-item";
|
|
9
10
|
import { PrimariaNavTreeMenu } from "./UI/shared-components/primaria-nav-tree-menu/primaria-nav-tree-menu";
|
|
@@ -30,9 +31,7 @@ const registerUpperNavMenuViews = () => {
|
|
|
30
31
|
});
|
|
31
32
|
return Promise.resolve(menuItem);
|
|
32
33
|
},
|
|
33
|
-
|
|
34
|
-
sortHint: "000100",
|
|
35
|
-
},
|
|
34
|
+
sortHint: "000100",
|
|
36
35
|
});
|
|
37
36
|
shellApi.regionManager.registerView(shellRegions.navigationMenu, {
|
|
38
37
|
id: "communication",
|
|
@@ -290,9 +289,7 @@ const registerMainViews = () => {
|
|
|
290
289
|
const mainItem = new ClinicalMonitoring();
|
|
291
290
|
return Promise.resolve(mainItem as unknown as HTMLElement);
|
|
292
291
|
},
|
|
293
|
-
|
|
294
|
-
isDefault: true,
|
|
295
|
-
},
|
|
292
|
+
isDefault: true,
|
|
296
293
|
});
|
|
297
294
|
shellApi.regionManager.registerMainView({
|
|
298
295
|
id: pocTestEventsId,
|
|
@@ -301,6 +298,14 @@ const registerMainViews = () => {
|
|
|
301
298
|
return Promise.resolve(mainItem as unknown as HTMLElement);
|
|
302
299
|
},
|
|
303
300
|
});
|
|
301
|
+
|
|
302
|
+
shellApi.regionManager.registerMainView({
|
|
303
|
+
id: pdfViewerId,
|
|
304
|
+
factory: () => {
|
|
305
|
+
const mainItem = new PdfVisor();
|
|
306
|
+
return Promise.resolve(mainItem as unknown as HTMLElement);
|
|
307
|
+
},
|
|
308
|
+
});
|
|
304
309
|
};
|
|
305
310
|
|
|
306
311
|
export const registerInternalViews = () => {
|
package/src/locales.ts
CHANGED
|
@@ -53,6 +53,16 @@ export const locales = {
|
|
|
53
53
|
busyManager: {
|
|
54
54
|
title: "Tasques pendents a desar:",
|
|
55
55
|
},
|
|
56
|
+
pdfManager: {
|
|
57
|
+
uploaded: "Document disponible al visor de resultats",
|
|
58
|
+
alreadyUploaded: "Ja s'ha carregat un document amb aquest nom",
|
|
59
|
+
navButtonLabel: "Visor PDF",
|
|
60
|
+
missingData: "Es necesita un document o URL per enviar al visor de resultats",
|
|
61
|
+
duplicatedSource: "Només pots envar un document o URL a la vegada",
|
|
62
|
+
},
|
|
63
|
+
pdfVisor: {
|
|
64
|
+
noPdfSelected: "No hi ha cap PDF seleccionat",
|
|
65
|
+
},
|
|
56
66
|
},
|
|
57
67
|
},
|
|
58
68
|
};
|