@rivm-loculus-tools/common-frontend 0.3.0 → 0.4.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/components/app/App/index.js +8 -5
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/fasta/FastaDataImportDialogLoader/FastaDataImportDialogLoader.d.ts +1 -1
- package/dist/components/fasta/FastaDataImportDialogLoader/index.js.map +1 -1
- package/dist/components/ui/ButtonWithMenu/ButtonWithMenu.d.ts +12 -0
- package/dist/components/ui/ButtonWithMenu/index.d.ts +1 -0
- package/dist/components/ui/ButtonWithMenu/index.js +47 -0
- package/dist/components/ui/ButtonWithMenu/index.js.map +1 -0
- package/dist/components/ui/PageCommon/index.js +8 -7
- package/dist/components/ui/PageCommon/index.js.map +1 -1
- package/dist/components/ui/PageCommonDrawer/index.js +12 -11
- package/dist/components/ui/PageCommonDrawer/index.js.map +1 -1
- package/dist/components/ui/PageCommonHeader/PageCommonHeader.d.ts +1 -2
- package/dist/components/ui/PageCommonHeader/index.js +66 -57
- package/dist/components/ui/PageCommonHeader/index.js.map +1 -1
- package/dist/context/pageCommonContext/PageCommonContext.d.ts +11 -1
- package/dist/context/pageCommonContext/PageCommonContextProvider.d.ts +3 -2
- package/dist/context/pageCommonContext/index.js +18 -16
- package/dist/context/pageCommonContext/index.js.map +1 -1
- package/dist/models/config.models.d.ts +3 -6
- package/dist/theme/index.js +17 -17
- package/dist/theme/index.js.map +1 -1
- package/dist/utils/DependencyContainerUtil/DependencyContainerUtil.d.ts +1 -1
- package/dist/utils/DependencyContainerUtil/index.js +2 -2
- package/dist/utils/DependencyContainerUtil/index.js.map +1 -1
- package/dist/utils/ExportUtil/ExportUtil.d.ts +6 -0
- package/dist/utils/ExportUtil/index.d.ts +1 -0
- package/dist/utils/ExportUtil/index.js +42 -0
- package/dist/utils/ExportUtil/index.js.map +1 -0
- package/dist/utils/StandardConfigUtil/StandardConfigUtil.d.ts +1 -1
- package/dist/utils/StandardConfigUtil/index.js +1 -0
- package/dist/utils/StandardConfigUtil/index.js.map +1 -1
- package/package.json +9 -5
- package/dist/components/ui/PageHeaderDocumentationButton/PageHeaderDocumentationButton.d.ts +0 -1
- package/dist/components/ui/PageHeaderDocumentationButton/index.d.ts +0 -1
- package/dist/components/ui/PageHeaderDocumentationButton/index.js +0 -24
- package/dist/components/ui/PageHeaderDocumentationButton/index.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DependencyContainer } from 'tsyringe';
|
|
2
2
|
import { ConfigBase } from '../../models/config.models';
|
|
3
3
|
export declare class DependencyContainerUtil {
|
|
4
|
-
static createContainer
|
|
4
|
+
static createContainer(): DependencyContainer;
|
|
5
5
|
static resolveConfig<TConfig extends ConfigBase = ConfigBase>(dependencyContainer?: DependencyContainer): TConfig;
|
|
6
6
|
}
|
|
@@ -5,8 +5,8 @@ import { DevicePixelRatioService as o } from "@gen-epix/ui-core/classes/services
|
|
|
5
5
|
import { KeyboardShortcutService as s } from "@gen-epix/ui-core/classes/services/KeyboardShortcutService";
|
|
6
6
|
//#region src/utils/DependencyContainerUtil/DependencyContainerUtil.ts
|
|
7
7
|
var c = class {
|
|
8
|
-
static createContainer(
|
|
9
|
-
return i.
|
|
8
|
+
static createContainer() {
|
|
9
|
+
return i.registerInstance(r, a.getInstance()), i.registerInstance(t, o.getInstance()), i.registerInstance(n, s.getInstance()), i;
|
|
10
10
|
}
|
|
11
11
|
static resolveConfig(t = i) {
|
|
12
12
|
return t.resolve(e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["DependencyContainerUtil","container","
|
|
1
|
+
{"version":3,"file":"index.js","names":["DependencyContainerUtil","container","WINDOW_SERVICE_TOKEN","WindowService","DEVICE_PIXEL_RATIO_SERVICE_TOKEN","DevicePixelRatioService","KEYBOARD_SHORTCUT_SERVICE_TOKEN","KeyboardShortcutService","dependencyContainer","CONFIG_TOKEN"],"sources":["../../../src/utils/DependencyContainerUtil/DependencyContainerUtil.ts"],"sourcesContent":["import { container } from 'tsyringe';\nimport type { DependencyContainer } from 'tsyringe';\nimport { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\nimport { DevicePixelRatioService } from '@gen-epix/ui-core/classes/services/DevicePixelRatioService';\nimport { KeyboardShortcutService } from '@gen-epix/ui-core/classes/services/KeyboardShortcutService';\n\nimport {\n CONFIG_TOKEN,\n DEVICE_PIXEL_RATIO_SERVICE_TOKEN,\n KEYBOARD_SHORTCUT_SERVICE_TOKEN,\n WINDOW_SERVICE_TOKEN,\n} from '../../constants/config.constants';\nimport type { ConfigBase } from '../../models/config.models';\n\nexport class DependencyContainerUtil {\n public static createContainer(): DependencyContainer {\n container.registerInstance(WINDOW_SERVICE_TOKEN, WindowService.getInstance());\n container.registerInstance(DEVICE_PIXEL_RATIO_SERVICE_TOKEN, DevicePixelRatioService.getInstance());\n container.registerInstance(KEYBOARD_SHORTCUT_SERVICE_TOKEN, KeyboardShortcutService.getInstance());\n\n return container;\n }\n\n public static resolveConfig<TConfig extends ConfigBase = ConfigBase>(dependencyContainer: DependencyContainer = container): TConfig {\n return dependencyContainer.resolve(CONFIG_TOKEN) as TConfig;\n }\n}\n"],"mappings":";;;;;;AAcA,IAAaA,IAAb,MAAqC;CACnC,OAAc,kBAAuC;EAKnD,OAJAC,EAAU,iBAAiBC,GAAsBC,EAAc,YAAY,CAAC,GAC5EF,EAAU,iBAAiBG,GAAkCC,EAAwB,YAAY,CAAC,GAClGJ,EAAU,iBAAiBK,GAAiCC,EAAwB,YAAY,CAAC,GAE1FN;CACT;CAEA,OAAc,cAAuD,IAA2CA,GAAoB;EAClI,OAAOO,EAAoB,QAAQC,CAAY;CACjD;AACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare class ExportUtil {
|
|
2
|
+
static downloadCanvasAsImage(canvas: HTMLCanvasElement | null, format: 'jpeg' | 'png', filename?: string): void;
|
|
3
|
+
static downloadCanvasAsSvg(canvas: HTMLCanvasElement | null, filename?: string): void;
|
|
4
|
+
static downloadFastaFile(fasta: string, filename?: string): void;
|
|
5
|
+
static downloadNewickFile(newick: string, filename?: string): void;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ExportUtil';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DownloadUtil as e } from "@gen-epix/ui-core/utils/DownloadUtil";
|
|
2
|
+
//#region src/utils/ExportUtil/ExportUtil.ts
|
|
3
|
+
var t = class {
|
|
4
|
+
static downloadCanvasAsImage(t, n, r = "phylogenetic_tree") {
|
|
5
|
+
if (!t) {
|
|
6
|
+
console.error("No canvas available for export.");
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
let i = n === "jpeg" ? "image/jpeg" : "image/png", a = n === "jpeg" ? "jpg" : "png", o = t;
|
|
10
|
+
if (n === "jpeg") {
|
|
11
|
+
o = document.createElement("canvas"), o.width = t.width, o.height = t.height;
|
|
12
|
+
let e = o.getContext("2d");
|
|
13
|
+
e && (e.fillStyle = "#FFFFFF", e.fillRect(0, 0, o.width, o.height), e.drawImage(t, 0, 0));
|
|
14
|
+
}
|
|
15
|
+
let s = o.toDataURL(i, .95);
|
|
16
|
+
e.createDownloadUrl(s, `${r}.${a}`);
|
|
17
|
+
}
|
|
18
|
+
static downloadCanvasAsSvg(t, n = "phylogenetic_tree.svg") {
|
|
19
|
+
if (!t) {
|
|
20
|
+
console.error("No canvas available for export.");
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
let r = t.toDataURL("image/png"), i = t.width, a = t.height, o = `<?xml version="1.0" standalone="no"?>
|
|
24
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
25
|
+
<svg width="${i}" height="${a}" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
26
|
+
<image xlink:href="${r}" x="0" y="0" height="${a}" width="${i}" />
|
|
27
|
+
</svg>`, s = new Blob([o], { type: "image/svg+xml;charset=utf-8" }), c = URL.createObjectURL(s);
|
|
28
|
+
e.createDownloadUrl(c, n), URL.revokeObjectURL(c);
|
|
29
|
+
}
|
|
30
|
+
static downloadFastaFile(t, n = "sequence.fasta") {
|
|
31
|
+
let r = new Blob([t], { type: "text/plain;charset=utf-8" }), i = URL.createObjectURL(r);
|
|
32
|
+
e.createDownloadUrl(i, n), URL.revokeObjectURL(i);
|
|
33
|
+
}
|
|
34
|
+
static downloadNewickFile(t, n = "phylogenetic_tree.nwk") {
|
|
35
|
+
let r = new Blob([t], { type: "text/plain;charset=utf-8" }), i = URL.createObjectURL(r);
|
|
36
|
+
e.createDownloadUrl(i, n), URL.revokeObjectURL(i);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { t as ExportUtil };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["ExportUtil","canvas","mimeType","format","extension","exportCanvas","ctx","dataUrl","filename","imgData","width","height","svgContent","blob","url","DownloadUtil","fasta","newick"],"sources":["../../../src/utils/ExportUtil/ExportUtil.ts"],"sourcesContent":["import { DownloadUtil } from '@gen-epix/ui-core/utils/DownloadUtil';\n\nexport class ExportUtil {\n public static downloadCanvasAsImage(\n canvas: HTMLCanvasElement | null,\n format: 'jpeg' | 'png',\n filename = 'phylogenetic_tree',\n ): void {\n if (!canvas) {\n console.error('No canvas available for export.');\n return;\n }\n\n const mimeType = format === 'jpeg' ? 'image/jpeg' : 'image/png';\n const extension = format === 'jpeg' ? 'jpg' : 'png';\n\n let exportCanvas = canvas;\n if (format === 'jpeg') {\n exportCanvas = document.createElement('canvas');\n exportCanvas.width = canvas.width;\n exportCanvas.height = canvas.height;\n const ctx = exportCanvas.getContext('2d');\n if (ctx) {\n ctx.fillStyle = '#FFFFFF';\n ctx.fillRect(0, 0, exportCanvas.width, exportCanvas.height);\n ctx.drawImage(canvas, 0, 0);\n }\n }\n\n const dataUrl = exportCanvas.toDataURL(mimeType, 0.95);\n DownloadUtil.createDownloadUrl(dataUrl, `${filename}.${extension}`);\n }\n\n public static downloadCanvasAsSvg(\n canvas: HTMLCanvasElement | null,\n filename = 'phylogenetic_tree.svg',\n ): void {\n if (!canvas) {\n console.error('No canvas available for export.');\n return;\n }\n\n const imgData = canvas.toDataURL('image/png');\n const width = canvas.width;\n const height = canvas.height;\n\n const svgContent = `<?xml version=\"1.0\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<svg width=\"${width}\" height=\"${height}\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <image xlink:href=\"${imgData}\" x=\"0\" y=\"0\" height=\"${height}\" width=\"${width}\" />\n</svg>`;\n\n const blob = new Blob([svgContent], { type: 'image/svg+xml;charset=utf-8' });\n const url = URL.createObjectURL(blob);\n DownloadUtil.createDownloadUrl(url, filename);\n URL.revokeObjectURL(url);\n }\n\n public static downloadFastaFile(fasta: string, filename = 'sequence.fasta'): void {\n const blob = new Blob([fasta], { type: 'text/plain;charset=utf-8' });\n const url = URL.createObjectURL(blob);\n DownloadUtil.createDownloadUrl(url, filename);\n URL.revokeObjectURL(url);\n }\n\n public static downloadNewickFile(newick: string, filename = 'phylogenetic_tree.nwk'): void {\n const blob = new Blob([newick], { type: 'text/plain;charset=utf-8' });\n const url = URL.createObjectURL(blob);\n DownloadUtil.createDownloadUrl(url, filename);\n URL.revokeObjectURL(url);\n }\n}\n"],"mappings":";;AAEA,IAAaA,IAAb,MAAwB;CACtB,OAAc,sBACZ,GACA,GACA,IAAW,qBACL;EACN,IAAI,CAACC,GAAQ;GACX,QAAQ,MAAM,iCAAiC;GAC/C;EACF;EAEA,IAAMC,IAAWC,MAAW,SAAS,eAAe,aAC9CC,IAAYD,MAAW,SAAS,QAAQ,OAE1CE,IAAeJ;EACnB,IAAIE,MAAW,QAAQ;GAGrB,AAFA,IAAe,SAAS,cAAc,QAAQ,GAC9C,EAAa,QAAQF,EAAO,OAC5B,EAAa,SAASA,EAAO;GAC7B,IAAMK,IAAMD,EAAa,WAAW,IAAI;GACxC,AAAIC,MACF,EAAI,YAAY,WAChBA,EAAI,SAAS,GAAG,GAAGD,EAAa,OAAOA,EAAa,MAAM,GAC1DC,EAAI,UAAUL,GAAQ,GAAG,CAAC;EAE9B;EAEA,IAAMM,IAAUF,EAAa,UAAUH,GAAU,GAAI;EACrD,EAAa,kBAAkBK,GAAS,GAAGC,EAAS,GAAGJ,GAAW;CACpE;CAEA,OAAc,oBACZ,GACA,IAAW,yBACL;EACN,IAAI,CAACH,GAAQ;GACX,QAAQ,MAAM,iCAAiC;GAC/C;EACF;EAEA,IAAMQ,IAAUR,EAAO,UAAU,WAAW,GACtCS,IAAQT,EAAO,OACfU,IAASV,EAAO,QAEhBW,IAAa;;cAETF,EAAM,YAAYC,EAAO;uBAChBF,EAAQ,wBAAwBE,EAAO,WAAWD,EAAM;SAGrEG,IAAO,IAAI,KAAK,CAACD,CAAU,GAAG,EAAE,MAAM,8BAA8B,CAAC,GACrEE,IAAM,IAAI,gBAAgBD,CAAI;EAEpC,AADAE,EAAa,kBAAkBD,GAAKN,CAAQ,GAC5C,IAAI,gBAAgBM,CAAG;CACzB;CAEA,OAAc,kBAAkB,GAAe,IAAW,kBAAwB;EAChF,IAAMD,IAAO,IAAI,KAAK,CAACG,CAAK,GAAG,EAAE,MAAM,2BAA2B,CAAC,GAC7DF,IAAM,IAAI,gBAAgBD,CAAI;EAEpC,AADAE,EAAa,kBAAkBD,GAAKN,CAAQ,GAC5C,IAAI,gBAAgBM,CAAG;CACzB;CAEA,OAAc,mBAAmB,GAAgB,IAAW,yBAA+B;EACzF,IAAMD,IAAO,IAAI,KAAK,CAACI,CAAM,GAAG,EAAE,MAAM,2BAA2B,CAAC,GAC9DH,IAAM,IAAI,gBAAgBD,CAAI;EAEpC,AADAE,EAAa,kBAAkBD,GAAKN,CAAQ,GAC5C,IAAI,gBAAgBM,CAAG;CACzB;AACF"}
|
|
@@ -4,6 +4,7 @@ var t = class {
|
|
|
4
4
|
static createConfig() {
|
|
5
5
|
return {
|
|
6
6
|
nonce: e.getInstance().document.querySelector("meta[name=\"csp-nonce\"]")?.getAttribute("content") ?? void 0,
|
|
7
|
+
pageConfig: { appBarHeight: 48 },
|
|
7
8
|
spinner: {
|
|
8
9
|
DEFAULT_CIRCULAR_PROGRESS_SIZE: 40,
|
|
9
10
|
DEFAULT_TAKING_LONGER_TIMEOUT_MS: 5e3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["StandardConfigUtil","WindowService"],"sources":["../../../src/utils/StandardConfigUtil/StandardConfigUtil.ts"],"sourcesContent":["import { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\n\nimport type { ConfigBase } from '../../models/config.models';\n\nexport class StandardConfigUtil {\n public static createConfig(): Pick<ConfigBase, 'nonce' | 'spinner'> {\n return {\n nonce: WindowService.getInstance().document.querySelector('meta[name=\"csp-nonce\"]')?.getAttribute('content') ?? undefined,\n spinner: {\n DEFAULT_CIRCULAR_PROGRESS_SIZE: 40,\n DEFAULT_TAKING_LONGER_TIMEOUT_MS: 5000,\n },\n };\n }\n}\n"],"mappings":";;AAIA,IAAaA,IAAb,MAAgC;CAC9B,OAAc,
|
|
1
|
+
{"version":3,"file":"index.js","names":["StandardConfigUtil","WindowService"],"sources":["../../../src/utils/StandardConfigUtil/StandardConfigUtil.ts"],"sourcesContent":["import { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\n\nimport type { ConfigBase } from '../../models/config.models';\n\nexport class StandardConfigUtil {\n public static createConfig(): Pick<ConfigBase, 'nonce' | 'pageConfig' | 'spinner'> {\n return {\n nonce: WindowService.getInstance().document.querySelector('meta[name=\"csp-nonce\"]')?.getAttribute('content') ?? undefined,\n pageConfig: {\n appBarHeight: 48,\n },\n spinner: {\n DEFAULT_CIRCULAR_PROGRESS_SIZE: 40,\n DEFAULT_TAKING_LONGER_TIMEOUT_MS: 5000,\n },\n };\n }\n}\n"],"mappings":";;AAIA,IAAaA,IAAb,MAAgC;CAC9B,OAAc,eAAqE;EACjF,OAAO;GACL,OAAOC,EAAc,YAAY,CAAC,CAAC,SAAS,cAAc,0BAAwB,CAAC,EAAE,aAAa,SAAS,KAAK,KAAA;GAChH,YAAY,EACV,cAAc,GAChB;GACA,SAAS;IACP,gCAAgC;IAChC,kCAAkC;GACpC;EACF;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivm-loculus-tools/common-frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -107,6 +107,10 @@
|
|
|
107
107
|
"types": "./dist/components/fasta/FastaPageHeaderResetButton/index.d.ts",
|
|
108
108
|
"import": "./dist/components/fasta/FastaPageHeaderResetButton/index.js"
|
|
109
109
|
},
|
|
110
|
+
"./components/ui/ButtonWithMenu": {
|
|
111
|
+
"types": "./dist/components/ui/ButtonWithMenu/index.d.ts",
|
|
112
|
+
"import": "./dist/components/ui/ButtonWithMenu/index.js"
|
|
113
|
+
},
|
|
110
114
|
"./components/ui/GenericErrorMessage": {
|
|
111
115
|
"types": "./dist/components/ui/GenericErrorMessage/index.d.ts",
|
|
112
116
|
"import": "./dist/components/ui/GenericErrorMessage/index.js"
|
|
@@ -127,10 +131,6 @@
|
|
|
127
131
|
"types": "./dist/components/ui/PageCommonHeader/index.d.ts",
|
|
128
132
|
"import": "./dist/components/ui/PageCommonHeader/index.js"
|
|
129
133
|
},
|
|
130
|
-
"./components/ui/PageHeaderDocumentationButton": {
|
|
131
|
-
"types": "./dist/components/ui/PageHeaderDocumentationButton/index.d.ts",
|
|
132
|
-
"import": "./dist/components/ui/PageHeaderDocumentationButton/index.js"
|
|
133
|
-
},
|
|
134
134
|
"./constants/config.constants": {
|
|
135
135
|
"types": "./dist/constants/config.constants.d.ts",
|
|
136
136
|
"import": "./dist/constants/config.constants.js"
|
|
@@ -191,6 +191,10 @@
|
|
|
191
191
|
"types": "./dist/utils/ErrorUtil/index.d.ts",
|
|
192
192
|
"import": "./dist/utils/ErrorUtil/index.js"
|
|
193
193
|
},
|
|
194
|
+
"./utils/ExportUtil": {
|
|
195
|
+
"types": "./dist/utils/ExportUtil/index.d.ts",
|
|
196
|
+
"import": "./dist/utils/ExportUtil/index.js"
|
|
197
|
+
},
|
|
194
198
|
"./utils/FastaUtil": {
|
|
195
199
|
"types": "./dist/utils/FastaUtil/index.d.ts",
|
|
196
200
|
"import": "./dist/utils/FastaUtil/index.js"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PageHeaderDocumentationButton: () => import('react').JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PageHeaderDocumentationButton';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IconButton as e, Tooltip as t } from "@mui/material";
|
|
2
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import { useCallback as r } from "react";
|
|
4
|
-
import i from "@mui/icons-material/HelpOutlineOutlined";
|
|
5
|
-
//#region src/components/ui/PageHeaderDocumentationButton/PageHeaderDocumentationButton.tsx
|
|
6
|
-
var a = () => {
|
|
7
|
-
let a = r(() => {
|
|
8
|
-
window.open("https://github.com/RIVM-bioinformatics/loculus-tools", "_blank");
|
|
9
|
-
}, []);
|
|
10
|
-
return /* @__PURE__ */ n(t, {
|
|
11
|
-
title: "Documentation & Specifications",
|
|
12
|
-
children: /* @__PURE__ */ n(e, {
|
|
13
|
-
color: "inherit",
|
|
14
|
-
onClick: a,
|
|
15
|
-
size: "small",
|
|
16
|
-
sx: { opacity: .85 },
|
|
17
|
-
children: /* @__PURE__ */ n(i, { fontSize: "small" })
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { a as PageHeaderDocumentationButton };
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["HelpOutlineIcon","PageHeaderDocumentationButton","onDocumentationButtonClick","useCallback","Tooltip","IconButton"],"sources":["../../../../src/components/ui/PageHeaderDocumentationButton/PageHeaderDocumentationButton.tsx"],"sourcesContent":["import { useCallback } from 'react';\nimport {\n IconButton,\n Tooltip,\n} from '@mui/material';\nimport HelpOutlineIcon from '@mui/icons-material/HelpOutlineOutlined';\n\nexport const PageHeaderDocumentationButton = () => {\n const onDocumentationButtonClick = useCallback(() => {\n window.open('https://github.com/RIVM-bioinformatics/loculus-tools', '_blank');\n }, []);\n\n return (\n <Tooltip title={'Documentation & Specifications'}>\n <IconButton\n color={'inherit'}\n onClick={onDocumentationButtonClick}\n size={'small'}\n sx={{ opacity: 0.85 }}\n >\n <HelpOutlineIcon fontSize={'small'} />\n </IconButton>\n </Tooltip>\n );\n};\n"],"mappings":";;;;;AAOA,IAAaC,UAAsC;CACjD,IAAMC,IAA6BC,QAAkB;EACnD,OAAO,KAAK,wDAAwD,QAAQ;CAC9E,GAAG,CAAC,CAAC;CAEL,OACE,kBAACC,GAAD;EAAS,OAAO;EACd,UAAA,kBAACC,GAAD;GACE,OAAO;GACP,SAASH;GACT,MAAM;GACN,IAAI,EAAE,SAAS,IAAK;GAEpB,UAAA,kBAACF,GAAD,EAAiB,UAAU,QAAU,CAAA;EAC3B,CAAA;CACL,CAAA;AAEb"}
|