@rivm-loculus-tools/common-frontend 0.4.0 → 0.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/_chunks/EmotionCacheService.js +2 -4
- package/dist/_chunks/EmotionCacheService.js.map +1 -1
- package/dist/_chunks/decorate.js +1 -2
- package/dist/_chunks/react.js +2 -3
- package/dist/_chunks/react.js.map +1 -1
- package/dist/classes/services/FastaDataEventBusService/index.js +1 -2
- package/dist/components/SearchBar/index.js +1 -2
- package/dist/components/app/App/index.js +38 -44
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/fasta/FastaDataImportDialog/index.js +1 -2
- package/dist/components/fasta/FastaDataImportDialogLoader/index.js +1 -2
- package/dist/components/fasta/FastaNotLoaded/index.js +1 -2
- package/dist/components/fasta/FastaPageHeaderCenterComponent/index.js +1 -2
- package/dist/components/fasta/FastaPageHeaderImportButton/index.js +1 -2
- package/dist/components/fasta/FastaPageHeaderResetButton/index.js +1 -2
- package/dist/components/ui/ButtonWithMenu/index.js +1 -2
- package/dist/components/ui/GenericErrorMessage/index.js +1 -2
- package/dist/components/ui/I18nWrapper/index.js +1 -2
- package/dist/components/ui/PageCommon/index.js +1 -2
- package/dist/components/ui/PageCommonDrawer/index.js +1 -2
- package/dist/components/ui/PageCommonHeader/index.js +1 -2
- package/dist/constants/config.constants.js +1 -2
- package/dist/constants/page.constants.js +1 -2
- package/dist/context/pageCommonContext/index.js +1 -2
- package/dist/hooks/useConfig/index.js +3 -4
- package/dist/hooks/useConfig/index.js.map +1 -1
- package/dist/hooks/useUpdateDocumentTitle/index.js +1 -2
- package/dist/models/fasta.models.js +1 -2
- package/dist/models/fasta.models.js.map +1 -1
- package/dist/pages/ErrorPage/index.js +1 -2
- package/dist/stores/fastaDataStore/index.js +1 -2
- package/dist/theme/index.js +1 -2
- package/dist/utils/DependencyContainerUtil/index.js +1 -2
- package/dist/utils/DownloadUtil/index.js +1 -2
- package/dist/utils/ErrorUtil/index.js +1 -2
- package/dist/utils/ExportUtil/index.js +1 -2
- package/dist/utils/FastaUtil/index.js +1 -2
- package/dist/utils/MetaDataUtil/index.js +1 -2
- package/dist/utils/StandardConfigUtil/index.js +1 -2
- package/dist/utils/UrlUtil/index.js +1 -2
- package/package.json +16 -20
- package/dist/context/commonConfigContext/CommonConfigContext.d.ts +0 -9
- package/dist/context/commonConfigContext/CommonConfigContextProvider.d.ts +0 -6
- package/dist/context/commonConfigContext/index.d.ts +0 -3
- package/dist/context/commonConfigContext/index.js +0 -34
- package/dist/context/commonConfigContext/index.js.map +0 -1
- package/dist/context/commonConfigContext/useCommonConfigContext.d.ts +0 -3
|
@@ -2,14 +2,13 @@ import { CONFIG_TOKEN as e, WINDOW_SERVICE_TOKEN as t } from "../constants/confi
|
|
|
2
2
|
import { t as n } from "./decorate.js";
|
|
3
3
|
import { inject as r, singleton as i } from "tsyringe";
|
|
4
4
|
import a from "@emotion/cache";
|
|
5
|
-
|
|
5
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/decorateParam.js
|
|
6
6
|
function o(e, t) {
|
|
7
7
|
return function(n, r) {
|
|
8
8
|
t(n, r, e);
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
//#region src/classes/services/EmotionCacheService/EmotionCacheService.ts
|
|
11
|
+
// src/classes/services/EmotionCacheService/EmotionCacheService.ts
|
|
13
12
|
var s = class {
|
|
14
13
|
emotionCache;
|
|
15
14
|
constructor(e, t) {
|
|
@@ -27,7 +26,6 @@ s = n([
|
|
|
27
26
|
o(0, r(e)),
|
|
28
27
|
o(1, r(t))
|
|
29
28
|
], s);
|
|
30
|
-
//#endregion
|
|
31
29
|
export { s as t };
|
|
32
30
|
|
|
33
31
|
//# sourceMappingURL=EmotionCacheService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmotionCacheService.js","names":["_decorate","_decorateParam","__decorate","createCache","__decorateParam","target","key","paramIndex","EmotionCacheService","windowService","config","singleton","inject","CONFIG_TOKEN","WINDOW_SERVICE_TOKEN"],"sources":["../../src/classes/services/EmotionCacheService/EmotionCacheService.ts"],"sourcesContent":["import type { EmotionCache } from '@emotion/cache';\nimport createCache from '@emotion/cache';\nimport {\n inject,\n singleton,\n} from 'tsyringe';\nimport type { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\n\nimport {\n CONFIG_TOKEN,\n WINDOW_SERVICE_TOKEN,\n} from '../../../constants/config.constants';\nimport type { ConfigBase } from '../../../models/config.models';\n\n\n@singleton()\nexport class EmotionCacheService {\n public readonly emotionCache: EmotionCache;\n\n public constructor(\n @inject(CONFIG_TOKEN) config: ConfigBase,\n @inject(WINDOW_SERVICE_TOKEN) windowService: WindowService,\n ) {\n this.emotionCache = createCache({\n container: windowService.document.head,\n key: 'loculus-tools',\n nonce: config.nonce,\n prepend: !!config.nonce,\n stylisPlugins: [],\n });\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"EmotionCacheService.js","names":["_decorate","_decorateParam","__decorate","createCache","__decorateParam","target","key","paramIndex","EmotionCacheService","windowService","config","singleton","inject","CONFIG_TOKEN","WINDOW_SERVICE_TOKEN"],"sources":["../../src/classes/services/EmotionCacheService/EmotionCacheService.ts"],"sourcesContent":["import type { EmotionCache } from '@emotion/cache';\nimport createCache from '@emotion/cache';\nimport {\n inject,\n singleton,\n} from 'tsyringe';\nimport type { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\n\nimport {\n CONFIG_TOKEN,\n WINDOW_SERVICE_TOKEN,\n} from '../../../constants/config.constants';\nimport type { ConfigBase } from '../../../models/config.models';\n\n\n@singleton()\nexport class EmotionCacheService {\n public readonly emotionCache: EmotionCache;\n\n public constructor(\n @inject(CONFIG_TOKEN) config: ConfigBase,\n @inject(WINDOW_SERVICE_TOKEN) windowService: WindowService,\n ) {\n this.emotionCache = createCache({\n container: windowService.document.head,\n key: 'loculus-tools',\n nonce: config.nonce,\n prepend: !!config.nonce,\n stylisPlugins: [],\n });\n }\n}\n"],"mappings":";;;;;;;;;;;AAgBO,IAAMQ,IAAN,MAA0B;CAC/B;CAEA,YACE,GACA,GACA;EACA,KAAK,eAAeL,EAAY;GAC9B,WAAWM,EAAc,SAAS;GAClC,KAAK;GACL,OAAOC,EAAO;GACd,SAAS,CAAC,CAACA,EAAO;GAClB,eAAe,CAAC;EAClB,CAAC;CACH;AACF;;CAhBCC,EAAU;CAKNV,EAAA,GAAAW,EAAOC,CAAY,CAAA;CACnBZ,EAAA,GAAAW,EAAOE,CAAoB,CAAA"}
|
package/dist/_chunks/decorate.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/decorate.js
|
|
2
2
|
function e(e, t, n, r) {
|
|
3
3
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
4
4
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
5
5
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
6
6
|
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { e as t };
|
package/dist/_chunks/react.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import e from "react";
|
|
2
|
-
|
|
2
|
+
// ../../../node_modules/.pnpm/zustand@5.0.16_@types+react@19.3.0_react@19.3.1_use-sync-external-store@1.7.0_react@19.3.1_/node_modules/zustand/esm/react.mjs
|
|
3
3
|
var t = (e) => e;
|
|
4
4
|
function n(n, r = t) {
|
|
5
|
-
let i = e.useSyncExternalStore(n.subscribe, e.useCallback(() => r(n.getState()), [n, r]),
|
|
5
|
+
let i = e.useSyncExternalStore(n.subscribe, e.useCallback(() => r(n.getState()), [n, r]), () => r(n.getInitialState()));
|
|
6
6
|
return e.useDebugValue(i), i;
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { n as t };
|
|
10
9
|
|
|
11
10
|
//# sourceMappingURL=react.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","names":["React","identity","arg","useStore","slice","api","selector"],"sources":["../../../../../node_modules/.pnpm/zustand@5.0.
|
|
1
|
+
{"version":3,"file":"react.js","names":["React","identity","arg","useStore","slice","api","selector"],"sources":["../../../../../node_modules/.pnpm/zustand@5.0.16_@types+react@19.3.0_react@19.3.1_use-sync-external-store@1.7.0_react@19.3.1_/node_modules/zustand/esm/react.mjs"],"sourcesContent":["import React from 'react';\nimport { createStore } from 'zustand/vanilla';\n\nconst identity = (arg) => arg;\nfunction useStore(api, selector = identity) {\n const slice = React.useSyncExternalStore(\n api.subscribe,\n React.useCallback(() => selector(api.getState()), [api, selector]),\n () => selector(api.getInitialState())\n );\n React.useDebugValue(slice);\n return slice;\n}\nconst createImpl = (createState) => {\n const api = createStore(createState);\n const useBoundStore = (selector) => useStore(api, selector);\n Object.assign(useBoundStore, api);\n return useBoundStore;\n};\nconst create = ((createState) => createState ? createImpl(createState) : createImpl);\n\nexport { create, useStore };\n"],"ignoreList":[0],"mappings":";;AAGA,IAAMC,KAAY,MAAQC;AAC1B,SAASC,EAAS,GAAK,IAAWF,GAAU;CAC1C,IAAMG,IAAQJ,EAAM,qBAClBK,EAAI,WACJL,EAAM,kBAAkBM,EAASD,EAAI,SAAS,CAAC,GAAG,CAACA,GAAKC,CAAQ,CAAC,SAC3DA,EAASD,EAAI,gBAAgB,CAAC,CACtC;CAEA,OADAL,EAAM,cAAcI,CAAK,GAClBA;AACT"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { t as e } from "../../../_chunks/decorate.js";
|
|
2
2
|
import { singleton as t } from "tsyringe";
|
|
3
3
|
import { EventBusAbstract as n } from "@gen-epix/ui-core/classes/abstracts/EventBusAbstract";
|
|
4
|
-
|
|
4
|
+
// src/classes/services/FastaDataEventBusService/FastaDataEventBusService.ts
|
|
5
5
|
var r = class extends n {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
r = e([t()], r);
|
|
11
|
-
//#endregion
|
|
12
11
|
export { r as FastaDataEventBusService };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -5,7 +5,7 @@ import d from "@mui/icons-material/Search";
|
|
|
5
5
|
import f from "@mui/icons-material/KeyboardArrowUp";
|
|
6
6
|
import p from "@mui/icons-material/KeyboardArrowDown";
|
|
7
7
|
import m from "@mui/icons-material/Close";
|
|
8
|
-
|
|
8
|
+
// src/components/SearchBar/SearchBar.tsx
|
|
9
9
|
var h = ({ allowNavigation: h, highlightedIndex: g, numResults: _ = 0, onHighlightedIndexChange: v, onSearchQueryChange: y, searchQuery: b, truncated: x }) => {
|
|
10
10
|
let S = i(), C = u(null), w = u(null), T = u(null), E = c((e) => {
|
|
11
11
|
let t = e.target.value;
|
|
@@ -123,7 +123,6 @@ var h = ({ allowNavigation: h, highlightedIndex: g, numResults: _ = 0, onHighlig
|
|
|
123
123
|
value: b
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
|
-
//#endregion
|
|
127
126
|
export { h as SearchBar };
|
|
128
127
|
|
|
129
128
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { DependencyContainerUtil as e } from "../../../utils/DependencyContainerUtil/index.js";
|
|
2
2
|
import { PageCommonContextProvider as t } from "../../../context/pageCommonContext/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
let i = p(() => ({
|
|
3
|
+
import { ErrorPage as n } from "../../../pages/ErrorPage/index.js";
|
|
4
|
+
import { I18nWrapper as r } from "../../ui/I18nWrapper/index.js";
|
|
5
|
+
import { t as i } from "../../../_chunks/EmotionCacheService.js";
|
|
6
|
+
import { CssBaseline as a, ThemeProvider as o } from "@mui/material";
|
|
7
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
import { Component as l, createContext as u, createElement as d, useMemo as f } from "react";
|
|
9
|
+
import { CacheProvider as p } from "@emotion/react";
|
|
10
|
+
// ../../../node_modules/.pnpm/react-error-boundary@6.1.6_@types+react@19.3.0_react@19.3.1/node_modules/react-error-boundary/dist/react-error-boundary.js
|
|
11
|
+
var m = u(null);
|
|
12
|
+
function h({ children: e, didCatch: t, error: n, resetErrorBoundary: r }) {
|
|
13
|
+
let i = f(() => ({
|
|
15
14
|
didCatch: t,
|
|
16
15
|
error: n,
|
|
17
16
|
resetErrorBoundary: r
|
|
@@ -20,14 +19,14 @@ function g({ children: e, didCatch: t, error: n, resetErrorBoundary: r }) {
|
|
|
20
19
|
n,
|
|
21
20
|
r
|
|
22
21
|
]);
|
|
23
|
-
return
|
|
22
|
+
return d(m.Provider, { value: i }, e);
|
|
24
23
|
}
|
|
25
|
-
var
|
|
24
|
+
var g = {
|
|
26
25
|
didCatch: !1,
|
|
27
26
|
error: null
|
|
28
|
-
},
|
|
27
|
+
}, _ = class extends l {
|
|
29
28
|
constructor(e) {
|
|
30
|
-
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
29
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = g;
|
|
31
30
|
}
|
|
32
31
|
static getDerivedStateFromError(e) {
|
|
33
32
|
return {
|
|
@@ -40,18 +39,18 @@ var _ = {
|
|
|
40
39
|
t && (this.props.onReset?.({
|
|
41
40
|
args: e,
|
|
42
41
|
reason: "imperative-api"
|
|
43
|
-
}), this.setState(
|
|
42
|
+
}), this.setState(g));
|
|
44
43
|
}
|
|
45
44
|
componentDidCatch(e, t) {
|
|
46
45
|
this.props.onError?.(e, t);
|
|
47
46
|
}
|
|
48
47
|
componentDidUpdate(e, t) {
|
|
49
48
|
let { didCatch: n } = this.state, { resetKeys: r } = this.props;
|
|
50
|
-
n && t.didCatch &&
|
|
49
|
+
n && t.didCatch && v(e.resetKeys, r) && (this.props.onReset?.({
|
|
51
50
|
next: r,
|
|
52
51
|
prev: e.resetKeys,
|
|
53
52
|
reason: "keys"
|
|
54
|
-
}), this.setState(
|
|
53
|
+
}), this.setState(g));
|
|
55
54
|
}
|
|
56
55
|
render() {
|
|
57
56
|
let { children: e, fallbackRender: t, FallbackComponent: n, fallback: r } = this.props, { didCatch: i, error: a } = this.state, o = e;
|
|
@@ -61,44 +60,39 @@ var _ = {
|
|
|
61
60
|
resetErrorBoundary: this.resetErrorBoundary
|
|
62
61
|
};
|
|
63
62
|
if (typeof t == "function") o = t(e);
|
|
64
|
-
else if (n) o =
|
|
63
|
+
else if (n) o = d(n, e);
|
|
65
64
|
else if ("fallback" in this.props) o = r;
|
|
66
65
|
else throw a;
|
|
67
66
|
}
|
|
68
|
-
return
|
|
67
|
+
return d(h, {
|
|
69
68
|
didCatch: i,
|
|
70
69
|
error: a,
|
|
71
70
|
resetErrorBoundary: this.resetErrorBoundary
|
|
72
71
|
}, o);
|
|
73
72
|
}
|
|
74
73
|
};
|
|
75
|
-
function
|
|
74
|
+
function v(e = [], t = []) {
|
|
76
75
|
return e.length !== t.length || e.some((e, n) => !Object.is(e, t[n]));
|
|
77
76
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
h
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
children: u
|
|
95
|
-
}) })
|
|
96
|
-
})]
|
|
97
|
-
})
|
|
77
|
+
// src/components/app/App/App.tsx
|
|
78
|
+
var y = ({ children: l, container: u }) => {
|
|
79
|
+
let d = e.resolveConfig(u), { pageConfig: f } = d, m = d.getTouchIconUrl?.();
|
|
80
|
+
m && document.querySelector("link[rel=\"icon\"]")?.setAttribute("href", m);
|
|
81
|
+
let h = u.resolve(i).emotionCache;
|
|
82
|
+
return /* @__PURE__ */ s(p, {
|
|
83
|
+
value: h,
|
|
84
|
+
children: /* @__PURE__ */ c(o, {
|
|
85
|
+
theme: d.theme,
|
|
86
|
+
children: [/* @__PURE__ */ s(a, {}), /* @__PURE__ */ s(_, {
|
|
87
|
+
FallbackComponent: n,
|
|
88
|
+
children: /* @__PURE__ */ s(r, { children: /* @__PURE__ */ s(t, {
|
|
89
|
+
...f,
|
|
90
|
+
children: l
|
|
91
|
+
}) })
|
|
92
|
+
})]
|
|
98
93
|
})
|
|
99
94
|
});
|
|
100
95
|
};
|
|
101
|
-
|
|
102
|
-
export { b as App };
|
|
96
|
+
export { y as App };
|
|
103
97
|
|
|
104
98
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["l","h","i","y","ErrorBoundary","EmotionCacheService","f","createContext","m","r","e","t","o","n","useMemo","createElement","d","C","Component","g","s","c","u","App","config","DependencyContainerUtil","container","touchIconUrl","emotionCache","
|
|
1
|
+
{"version":3,"file":"index.js","names":["l","h","i","y","ErrorBoundary","EmotionCacheService","f","createContext","m","r","e","t","o","n","useMemo","createElement","d","C","Component","g","s","c","u","App","config","DependencyContainerUtil","container","touchIconUrl","emotionCache","CacheProvider","ThemeProvider","CssBaseline","ErrorPage","I18nWrapper","PageCommonContextProvider","pageConfig"],"sources":["../../../../../../../node_modules/.pnpm/react-error-boundary@6.1.6_@types+react@19.3.0_react@19.3.1/node_modules/react-error-boundary/dist/react-error-boundary.js","../../../../src/components/app/App/App.tsx"],"sourcesContent":["\"use client\";\nimport { createContext as l, useMemo as h, createElement as i, Component as y, useContext as p, useState as E, forwardRef as B } from \"react\";\nconst f = l(null);\nfunction m({\n children: r,\n didCatch: e,\n error: t,\n resetErrorBoundary: o\n}) {\n const n = h(\n () => ({ didCatch: e, error: t, resetErrorBoundary: o }),\n [e, t, o]\n );\n return i(f.Provider, { value: n }, r);\n}\nconst d = {\n didCatch: !1,\n error: null\n};\nclass C extends y {\n constructor(e) {\n super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = d;\n }\n static getDerivedStateFromError(e) {\n return { didCatch: !0, error: e };\n }\n resetErrorBoundary(...e) {\n const { didCatch: t } = this.state;\n t && (this.props.onReset?.({\n args: e,\n reason: \"imperative-api\"\n }), this.setState(d));\n }\n componentDidCatch(e, t) {\n this.props.onError?.(e, t);\n }\n componentDidUpdate(e, t) {\n const { didCatch: o } = this.state, { resetKeys: n } = this.props;\n o && t.didCatch && g(e.resetKeys, n) && (this.props.onReset?.({\n next: n,\n prev: e.resetKeys,\n reason: \"keys\"\n }), this.setState(d));\n }\n render() {\n const { children: e, fallbackRender: t, FallbackComponent: o, fallback: n } = this.props, { didCatch: s, error: a } = this.state;\n let c = e;\n if (s) {\n const u = {\n error: a,\n resetErrorBoundary: this.resetErrorBoundary\n };\n if (typeof t == \"function\")\n c = t(u);\n else if (o)\n c = i(o, u);\n else if (\"fallback\" in this.props)\n c = n;\n else\n throw a;\n }\n return i(\n m,\n {\n didCatch: s,\n error: a,\n resetErrorBoundary: this.resetErrorBoundary\n },\n c\n );\n }\n}\nfunction g(r = [], e = []) {\n return r.length !== e.length || r.some((t, o) => !Object.is(t, e[o]));\n}\nfunction x(r) {\n return r !== null && typeof r == \"object\" && \"didCatch\" in r && typeof r.didCatch == \"boolean\" && \"error\" in r && \"resetErrorBoundary\" in r && typeof r.resetErrorBoundary == \"function\";\n}\nfunction b(r) {\n if (!x(r))\n throw new Error(\"ErrorBoundaryContext not found\");\n}\nfunction S() {\n const r = p(f);\n b(r);\n const { error: e, resetErrorBoundary: t } = r, [o, n] = E({\n error: null,\n hasError: !1\n }), s = h(\n () => ({\n error: e,\n resetBoundary: () => {\n t(), n({ error: null, hasError: !1 });\n },\n showBoundary: (a) => n({\n error: a,\n hasError: !0\n })\n }),\n [e, t]\n );\n if (o.hasError)\n throw o.error;\n return s;\n}\nfunction w(r) {\n switch (typeof r) {\n case \"object\": {\n if (r !== null && \"message\" in r && typeof r.message == \"string\")\n return r.message;\n break;\n }\n case \"string\":\n return r;\n }\n}\nfunction R(r, e) {\n const t = B(\n (n, s) => i(\n C,\n e,\n i(r, { ...n, ref: s })\n )\n ), o = r.displayName || r.name || \"Unknown\";\n return t.displayName = `withErrorBoundary(${o})`, t;\n}\nexport {\n C as ErrorBoundary,\n f as ErrorBoundaryContext,\n w as getErrorMessage,\n S as useErrorBoundary,\n R as withErrorBoundary\n};\n//# sourceMappingURL=react-error-boundary.js.map\n","import type { DependencyContainer } from 'tsyringe';\nimport { CacheProvider } from '@emotion/react';\nimport {\n CssBaseline,\n ThemeProvider,\n} from '@mui/material';\nimport { ErrorBoundary } from 'react-error-boundary';\nimport type { PropsWithChildren } from 'react';\n\nimport { EmotionCacheService } from '../../../classes/services/EmotionCacheService';\nimport type { ConfigBase } from '../../../models/config.models';\nimport { DependencyContainerUtil } from '../../../utils/DependencyContainerUtil';\nimport { ErrorPage } from '../../../pages/ErrorPage';\nimport { I18nWrapper } from '../../ui/I18nWrapper';\nimport { PageCommonContextProvider } from '../../../context/pageCommonContext';\n\nexport type AppProps = PropsWithChildren<{\n readonly container: DependencyContainer;\n}>;\n\nexport const App = ({ children, container }: AppProps) => {\n const config = DependencyContainerUtil.resolveConfig<ConfigBase>(container);\n const { pageConfig } = config;\n const touchIconUrl = config.getTouchIconUrl?.();\n if (touchIconUrl) {\n document.querySelector('link[rel=\"icon\"]')?.setAttribute('href', touchIconUrl);\n }\n\n const emotionCache = container.resolve(EmotionCacheService).emotionCache;\n\n return (\n <CacheProvider value={emotionCache}>\n <ThemeProvider theme={config.theme}>\n <CssBaseline />\n <ErrorBoundary FallbackComponent={ErrorPage}>\n <I18nWrapper>\n <PageCommonContextProvider {...pageConfig}>\n {children}\n </PageCommonContextProvider>\n </I18nWrapper>\n </ErrorBoundary>\n </ThemeProvider>\n </CacheProvider>\n );\n};\n"],"ignoreList":[0],"mappings":";;;;;;;;;;AAEA,IAAMM,IAAIN,EAAE,IAAI;AAChB,SAASQ,EAAE,EACT,UAAUC,GACV,UAAUC,GACV,OAAOC,GACP,oBAAoBC,KACnB;CACD,IAAMC,IAAIZ,SACD;EAAE,UAAUS;EAAG,OAAOC;EAAG,oBAAoBC;CAAE,IACtD;EAACF;EAAGC;EAAGC;CAAC,CACV;CACA,OAAOV,EAAEI,EAAE,UAAU,EAAE,OAAOO,EAAE,GAAGJ,CAAC;AACtC;AACA,IAAMO,IAAI;CACR,UAAU,CAAC;CACX,OAAO;AACT,GACMC,IAAN,cAAgBd,EAAE;CAChB,YAAY,GAAG;EACb,MAAM,CAAC,GAAG,KAAK,qBAAqB,KAAK,mBAAmB,KAAK,IAAI,GAAG,KAAK,QAAQa;CACvF;CACA,OAAO,yBAAyB,GAAG;EACjC,OAAO;GAAE,UAAU,CAAC;GAAG,OAAO;EAAE;CAClC;CACA,mBAAmB,GAAG,GAAG;EACvB,IAAM,EAAE,UAAU,MAAM,KAAK;EAC7B,MAAM,KAAK,MAAM,UAAU;GACzB,MAAM;GACN,QAAQ;EACV,CAAC,GAAG,KAAK,SAASA,CAAC;CACrB;CACA,kBAAkB,GAAG,GAAG;EACtB,KAAK,MAAM,UAAU,GAAG,CAAC;CAC3B;CACA,mBAAmB,GAAG,GAAG;EACvB,IAAM,EAAE,UAAUJ,MAAM,KAAK,OAAO,EAAE,WAAWC,MAAM,KAAK;EAC5D,KAAK,EAAE,YAAYM,EAAE,EAAE,WAAWN,CAAC,MAAM,KAAK,MAAM,UAAU;GAC5D,MAAMA;GACN,MAAM,EAAE;GACR,QAAQ;EACV,CAAC,GAAG,KAAK,SAASG,CAAC;CACrB;CACA,SAAS;EACP,IAAM,EAAE,UAAU,GAAG,gBAAgB,GAAG,mBAAmBJ,GAAG,UAAUC,MAAM,KAAK,OAAO,EAAE,UAAUO,GAAG,OAAO,MAAM,KAAK,OACvHC,IAAI;EACR,IAAID,GAAG;GACL,IAAME,IAAI;IACR,OAAO;IACP,oBAAoB,KAAK;GAC3B;GACA,IAAI,OAAO,KAAK,YACd,IAAI,EAAEA,CAAC;QACJ,IAAIV,GACP,IAAIV,EAAEU,GAAGU,CAAC;QACP,IAAI,cAAc,KAAK,OAC1B,IAAIT;QAEJ,MAAM;EACV;EACA,OAAOX,EACLM,GACA;GACE,UAAUY;GACV,OAAO;GACP,oBAAoB,KAAK;EAC3B,GACAC,CACF;CACF;AACF;AACA,SAASF,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG;CACzB,OAAOV,EAAE,WAAWC,EAAE,UAAUD,EAAE,MAAM,GAAG,MAAM,CAAC,OAAO,GAAGE,GAAGD,EAAEE,EAAE,CAAC;AACtE;;ACtDA,IAAaW,KAAO,EAAE,aAAU,mBAA0B;CACxD,IAAMC,IAASC,EAAwB,cAA0BC,CAAS,GACpE,EAAE,kBAAeF,GACjBG,IAAeH,EAAO,kBAAkB;CAC9C,AAAIG,KACF,SAAS,cAAc,oBAAkB,CAAC,EAAE,aAAa,QAAQA,CAAY;CAG/E,IAAMC,IAAeF,EAAU,QAAQrB,CAAmB,CAAC,CAAC;CAE5D,OACE,kBAACwB,GAAD;EAAe,OAAOD;EACpB,UAAA,kBAACE,GAAD;GAAe,OAAON,EAAO;GAA7B,UAAA,CACE,kBAACO,GAAD,CAAc,CAAA,GACd,kBAAC3B,GAAD;IAAe,mBAAmB4B;IAChC,UAAA,kBAACC,GAAD,EAAA,UACE,kBAACC,GAAD;KAA2B,GAAIC;KAC5B;IACwB,CAAA,EAChB,CAAA;GACA,CAAA,CACF;;CACF,CAAA;AAEnB"}
|
|
@@ -5,7 +5,7 @@ import m from "@mui/icons-material/Biotech";
|
|
|
5
5
|
import h from "@mui/icons-material/TableChart";
|
|
6
6
|
import { FileDropZone as g } from "@gen-epix/ui-core-components/components/FileDropZone";
|
|
7
7
|
import { withDialog as _ } from "@gen-epix/ui-core-components/hoc/withDialog";
|
|
8
|
-
|
|
8
|
+
// src/components/fasta/FastaDataImportDialog/FastaDataImportDialog.tsx
|
|
9
9
|
var v = _(({ extraActions: _, onActionsChange: v, onClose: y, onDataChange: b, onDisableBackdropClickChange: x, onError: S, onNoCloseButtonChange: C, openProps: w }) => {
|
|
10
10
|
let [T, E] = p(0), [D, O] = p(null), [k, A] = p(""), [j, M] = p(""), [N, ee] = p(0), [P, F] = p(null), [I, L] = p(""), [R, z] = p(""), [B, V] = p(!1), [H, U] = p(null);
|
|
11
11
|
f(() => {
|
|
@@ -303,7 +303,6 @@ var v = _(({ extraActions: _, onActionsChange: v, onClose: y, onDataChange: b, o
|
|
|
303
303
|
maxWidth: "xl",
|
|
304
304
|
testId: "FastaDataImportDialog"
|
|
305
305
|
});
|
|
306
|
-
//#endregion
|
|
307
306
|
export { v as FastaDataImportDialog };
|
|
308
307
|
|
|
309
308
|
//# sourceMappingURL=index.js.map
|
|
@@ -7,7 +7,7 @@ import { FastaDataImportDialog as a } from "../FastaDataImportDialog/index.js";
|
|
|
7
7
|
import { container as o } from "tsyringe";
|
|
8
8
|
import { Fragment as s, jsx as c } from "react/jsx-runtime";
|
|
9
9
|
import { useCallback as l, useEffect as u, useRef as d } from "react";
|
|
10
|
-
|
|
10
|
+
// src/components/fasta/FastaDataImportDialogLoader/FastaDataImportDialogLoader.tsx
|
|
11
11
|
var f = ({ extraActions: f, store: p }) => {
|
|
12
12
|
let m = i(p, (e) => e.setData), h = i(p, (e) => e.setLoadingStatus), g = d(null);
|
|
13
13
|
u(() => {
|
|
@@ -65,7 +65,6 @@ var f = ({ extraActions: f, store: p }) => {
|
|
|
65
65
|
ref: g
|
|
66
66
|
}) });
|
|
67
67
|
};
|
|
68
|
-
//#endregion
|
|
69
68
|
export { f as FastaDataImportDialogLoader };
|
|
70
69
|
|
|
71
70
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,7 +4,7 @@ import { Box as n, Button as r, Typography as i } from "@mui/material";
|
|
|
4
4
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
import { useCallback as s } from "react";
|
|
6
6
|
import c from "@mui/icons-material/FileUploadOutlined";
|
|
7
|
-
|
|
7
|
+
// src/components/fasta/FastaNotLoaded/FastaNotLoaded.tsx
|
|
8
8
|
var l = ({ description: l, icon: u, title: d }) => {
|
|
9
9
|
let f = s(() => {
|
|
10
10
|
t.resolve(e).emit("onShowImportDialog");
|
|
@@ -48,7 +48,6 @@ var l = ({ description: l, icon: u, title: d }) => {
|
|
|
48
48
|
]
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
51
|
export { l as FastaNotLoaded };
|
|
53
52
|
|
|
54
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "../../../_chunks/react.js";
|
|
2
2
|
import { Box as t, Chip as n } from "@mui/material";
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/fasta/FastaPageHeaderCenterComponent/FastaPageHeaderCenterComponent.tsx
|
|
5
5
|
var a = ({ store: a }) => {
|
|
6
6
|
let o = e(a, (e) => e.parsedFasta), s = e(a, (e) => e.parsedMetadata), c = o?.sequences?.length || 0, l = s?.records?.length || 0;
|
|
7
7
|
return /* @__PURE__ */ i(t, {
|
|
@@ -31,7 +31,6 @@ var a = ({ store: a }) => {
|
|
|
31
31
|
})]
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { a as FastaPageHeaderCenterComponent };
|
|
36
35
|
|
|
37
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,7 +4,7 @@ import { Button as n } from "@mui/material";
|
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import { useCallback as i } from "react";
|
|
6
6
|
import a from "@mui/icons-material/FileUploadOutlined";
|
|
7
|
-
|
|
7
|
+
// src/components/fasta/FastaPageHeaderImportButton/FastaPageHeaderImportButton.tsx
|
|
8
8
|
var o = () => {
|
|
9
9
|
let o = i(() => t.resolve(e).emit("onShowImportDialog"), []);
|
|
10
10
|
return /* @__PURE__ */ r(n, {
|
|
@@ -21,7 +21,6 @@ var o = () => {
|
|
|
21
21
|
children: "Import Data"
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
export { o as FastaPageHeaderImportButton };
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,7 +4,7 @@ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
|
4
4
|
import { useCallback as o, useRef as s } from "react";
|
|
5
5
|
import c from "@mui/icons-material/RestartAlt";
|
|
6
6
|
import { Confirmation as l } from "@gen-epix/ui-core-components/components/Confirmation";
|
|
7
|
-
|
|
7
|
+
// src/components/fasta/FastaPageHeaderResetButton/FastaPageHeaderResetButton.tsx
|
|
8
8
|
var u = ({ onReset: u }) => {
|
|
9
9
|
let d = s(null), f = o(() => {
|
|
10
10
|
d.current?.open();
|
|
@@ -29,7 +29,6 @@ var u = ({ onReset: u }) => {
|
|
|
29
29
|
title: n`Reset current session and dataset?`
|
|
30
30
|
})] });
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { u as FastaPageHeaderResetButton };
|
|
34
33
|
|
|
35
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button as e, ListItemIcon as t, ListItemText as n, Menu as r, MenuItem as i } from "@mui/material";
|
|
2
2
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback as c, useState as l } from "react";
|
|
4
|
-
|
|
4
|
+
// src/components/ui/ButtonWithMenu/ButtonWithMenu.tsx
|
|
5
5
|
var u = ({ disabled: u, items: d, label: f, startIcon: p }) => {
|
|
6
6
|
let [m, h] = l(null), g = !!m, _ = c((e) => {
|
|
7
7
|
h(e.currentTarget);
|
|
@@ -41,7 +41,6 @@ var u = ({ disabled: u, items: d, label: f, startIcon: p }) => {
|
|
|
41
41
|
}, r))
|
|
42
42
|
})] });
|
|
43
43
|
};
|
|
44
|
-
//#endregion
|
|
45
44
|
export { u as ButtonWithMenu };
|
|
46
45
|
|
|
47
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Box as e, Typography as t } from "@mui/material";
|
|
2
2
|
import { t as n } from "i18next";
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/ui/GenericErrorMessage/GenericErrorMessage.tsx
|
|
5
5
|
var a = ({ error: a }) => /* @__PURE__ */ i(e, {
|
|
6
6
|
sx: {
|
|
7
7
|
alignItems: "center",
|
|
@@ -38,7 +38,6 @@ var a = ({ error: a }) => /* @__PURE__ */ i(e, {
|
|
|
38
38
|
})
|
|
39
39
|
]
|
|
40
40
|
});
|
|
41
|
-
//#endregion
|
|
42
41
|
export { a as GenericErrorMessage };
|
|
43
42
|
|
|
44
43
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,7 @@ import { initReactI18next as e } from "react-i18next";
|
|
|
2
2
|
import t from "i18next";
|
|
3
3
|
import { Fragment as n, jsx as r } from "react/jsx-runtime";
|
|
4
4
|
import { useEffect as i, useState as a } from "react";
|
|
5
|
-
|
|
5
|
+
// src/components/ui/I18nWrapper/I18nWrapper.tsx
|
|
6
6
|
var o = ({ children: o }) => {
|
|
7
7
|
let [s, c] = a(!1);
|
|
8
8
|
return i(() => {
|
|
@@ -15,7 +15,6 @@ var o = ({ children: o }) => {
|
|
|
15
15
|
})();
|
|
16
16
|
}, []), /* @__PURE__ */ r(n, { children: s ? o : null });
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { o as I18nWrapper };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -5,7 +5,7 @@ import { useUpdateDocumentTitle as n } from "../../../hooks/useUpdateDocumentTit
|
|
|
5
5
|
import { Box as r, useTheme as i } from "@mui/material";
|
|
6
6
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
import { use as s, useEffect as c } from "react";
|
|
8
|
-
|
|
8
|
+
// src/components/ui/PageCommon/PageCommon.tsx
|
|
9
9
|
var l = ({ children: l, isNoInteraction: u, title: d }) => {
|
|
10
10
|
let { drawerComponent: f, headerComponent: p } = t();
|
|
11
11
|
n(d);
|
|
@@ -49,7 +49,6 @@ var l = ({ children: l, isNoInteraction: u, title: d }) => {
|
|
|
49
49
|
})]
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
//#endregion
|
|
53
52
|
export { l as PageCommon };
|
|
54
53
|
|
|
55
54
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,7 @@ import { PageCommonContext as e } from "../../../context/pageCommonContext/index
|
|
|
3
3
|
import { Drawer as t } from "@mui/material";
|
|
4
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
5
5
|
import { use as r } from "react";
|
|
6
|
-
|
|
6
|
+
// src/components/ui/PageCommonDrawer/PageCommonDrawer.tsx
|
|
7
7
|
var i = ({ children: i }) => {
|
|
8
8
|
let { drawerContainerId: a, isDrawerOpen: o } = r(e);
|
|
9
9
|
return /* @__PURE__ */ n(t, {
|
|
@@ -24,7 +24,6 @@ var i = ({ children: i }) => {
|
|
|
24
24
|
children: i
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
export { i as PageCommonDrawer };
|
|
29
28
|
|
|
30
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,7 @@ import { AppBar as t, Box as n, IconButton as r, Toolbar as i, Typography as a,
|
|
|
3
3
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
4
|
import { use as u, useCallback as d } from "react";
|
|
5
5
|
import f from "@mui/icons-material/Menu";
|
|
6
|
-
|
|
6
|
+
// src/components/ui/PageCommonHeader/PageCommonHeader.tsx
|
|
7
7
|
var p = ({ centerComponent: p, rightComponent: m, title: h }) => {
|
|
8
8
|
let g = o(), { afterAppBarComponent: _, afterAppBarRightComponent: v, appBarHeight: y = 48, appBarIcon: b, beforeAppBarComponent: x, beforeAppBarRightComponent: S, isDrawerOpen: C, isNoInteraction: w, setIsDrawerOpen: T } = u(e), E = d(() => {
|
|
9
9
|
T(!C);
|
|
@@ -101,7 +101,6 @@ var p = ({ centerComponent: p, rightComponent: m, title: h }) => {
|
|
|
101
101
|
_
|
|
102
102
|
] });
|
|
103
103
|
};
|
|
104
|
-
//#endregion
|
|
105
104
|
export { p as PageCommonHeader };
|
|
106
105
|
|
|
107
106
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// src/constants/config.constants.ts
|
|
2
2
|
var e = Symbol("CONFIG_TOKEN"), t = Symbol("WINDOW_SERVICE_TOKEN"), n = Symbol("DEVICE_PIXEL_RATIO_SERVICE_TOKEN"), r = Symbol("KEYBOARD_SHORTCUT_SERVICE_TOKEN");
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as CONFIG_TOKEN, n as DEVICE_PIXEL_RATIO_SERVICE_TOKEN, r as KEYBOARD_SHORTCUT_SERVICE_TOKEN, t as WINDOW_SERVICE_TOKEN };
|
|
5
4
|
|
|
6
5
|
//# sourceMappingURL=config.constants.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as t, useId as n, useMemo as r, useState as i } from "react";
|
|
3
|
-
|
|
3
|
+
// src/context/pageCommonContext/PageCommonContext.ts
|
|
4
4
|
var a = t({}), o = ({ children: t, ...o }) => {
|
|
5
5
|
let [s, c] = i(!1), [l, u] = i(!1), d = n(), f = r(() => ({
|
|
6
6
|
...o,
|
|
@@ -20,7 +20,6 @@ var a = t({}), o = ({ children: t, ...o }) => {
|
|
|
20
20
|
children: t
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
//#endregion
|
|
24
23
|
export { a as PageCommonContext, o as PageCommonContextProvider };
|
|
25
24
|
|
|
26
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var t = () => e()
|
|
4
|
-
//#endregion
|
|
1
|
+
import { DependencyContainerUtil as e } from "../../utils/DependencyContainerUtil/index.js";
|
|
2
|
+
// src/hooks/useConfig/useConfig.ts
|
|
3
|
+
var t = () => e.resolveConfig();
|
|
5
4
|
export { t as useConfig };
|
|
6
5
|
|
|
7
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["useConfig","
|
|
1
|
+
{"version":3,"file":"index.js","names":["useConfig","DependencyContainerUtil"],"sources":["../../../src/hooks/useConfig/useConfig.ts"],"sourcesContent":["import type { ConfigBase } from '../../models/config.models';\nimport { DependencyContainerUtil } from '../../utils/DependencyContainerUtil';\n\n// eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix\nexport const useConfig = <TConfig extends ConfigBase = ConfigBase>(): TConfig => {\n return DependencyContainerUtil.resolveConfig<TConfig>();\n};\n"],"mappings":";;AAIA,IAAaA,UACJC,EAAwB,cAAuB"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { useConfig as e } from "../useConfig/index.js";
|
|
2
2
|
import { useEffect as t } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useUpdateDocumentTitle/useUpdateDocumentTitle.ts
|
|
4
4
|
var n = (n) => {
|
|
5
5
|
let r = e();
|
|
6
6
|
t(() => {
|
|
7
7
|
document.title = `${r.applicationName} - ${n}`;
|
|
8
8
|
}, [r.applicationName, n]);
|
|
9
9
|
};
|
|
10
|
-
//#endregion
|
|
11
10
|
export { n as useUpdateDocumentTitle };
|
|
12
11
|
|
|
13
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// src/models/fasta.models.ts
|
|
2
2
|
var e = /* @__PURE__ */ function(e) {
|
|
3
3
|
return e.ERROR = "ERROR", e.IDLE = "IDLE", e.LOADING = "LOADING", e.SUCCESS = "SUCCESS", e;
|
|
4
4
|
}({});
|
|
5
|
-
//#endregion
|
|
6
5
|
export { e as LOADING_STATUS };
|
|
7
6
|
|
|
8
7
|
//# sourceMappingURL=fasta.models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fasta.models.js","names":["LOADING_STATUS","\"ERROR\"","\"IDLE\"","\"LOADING\"","\"SUCCESS\""],"sources":["../../src/models/fasta.models.ts"],"sourcesContent":["export enum LOADING_STATUS {\n ERROR = 'ERROR',\n IDLE = 'IDLE',\n LOADING = 'LOADING',\n SUCCESS = 'SUCCESS',\n}\n\nexport type FastaParseResult = {\n error?: string;\n expectedLength: number;\n invalidSequences?: { id: string; length: number }[];\n isAligned: boolean;\n sequences: FastaSequence[];\n};\n\nexport type FastaSequence = {\n accessionVersion: string;\n header: string;\n id: string;\n length: number;\n sequence: string;\n};\n"],"mappings":";AAAA,IAAYA,IAAL,yBAAA,GAAA;
|
|
1
|
+
{"version":3,"file":"fasta.models.js","names":["LOADING_STATUS","\"ERROR\"","\"IDLE\"","\"LOADING\"","\"SUCCESS\""],"sources":["../../src/models/fasta.models.ts"],"sourcesContent":["export enum LOADING_STATUS {\n ERROR = 'ERROR',\n IDLE = 'IDLE',\n LOADING = 'LOADING',\n SUCCESS = 'SUCCESS',\n}\n\nexport type FastaParseResult = {\n error?: string;\n expectedLength: number;\n invalidSequences?: { id: string; length: number }[];\n isAligned: boolean;\n sequences: FastaSequence[];\n};\n\nexport type FastaSequence = {\n accessionVersion: string;\n header: string;\n id: string;\n length: number;\n sequence: string;\n};\n"],"mappings":";AAAA,IAAYA,IAAL,yBAAA,GAAA;C,OACL,EAAAC,QAAA,SACA,EAAAC,OAAA,QACA,EAAAC,UAAA,WACA,EAAAC,UAAA,W;AACF,EAAA,CAAA,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { GenericErrorMessage as e } from "../../components/ui/GenericErrorMessag
|
|
|
2
2
|
import { PageCommon as t } from "../../components/ui/PageCommon/index.js";
|
|
3
3
|
import { useTranslation as n } from "react-i18next";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/pages/ErrorPage/ErrorPage.tsx
|
|
6
6
|
var i = ({ error: i }) => {
|
|
7
7
|
let { t: a } = n();
|
|
8
8
|
return /* @__PURE__ */ r(t, {
|
|
@@ -11,7 +11,6 @@ var i = ({ error: i }) => {
|
|
|
11
11
|
children: /* @__PURE__ */ r(e, { error: i })
|
|
12
12
|
});
|
|
13
13
|
};
|
|
14
|
-
//#endregion
|
|
15
14
|
export { i as ErrorPage };
|
|
16
15
|
|
|
17
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MetaDataUtil as e } from "../../utils/MetaDataUtil/index.js";
|
|
2
2
|
import { FastaUtil as t } from "../../utils/FastaUtil/index.js";
|
|
3
3
|
import { LOADING_STATUS as n } from "../../models/fasta.models.js";
|
|
4
|
-
|
|
4
|
+
// src/stores/fastaDataStore/fastaDataStore.ts
|
|
5
5
|
var r = () => ({
|
|
6
6
|
columnMatchCounts: {},
|
|
7
7
|
loadingError: null,
|
|
@@ -53,7 +53,6 @@ var r = () => ({
|
|
|
53
53
|
setMatchKeyField: (e) => s({ matchKeyField: e })
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
//#endregion
|
|
57
56
|
export { i as createFastaDataStoreActions, r as createFastaDataStoreInitialState };
|
|
58
57
|
|
|
59
58
|
//# sourceMappingURL=index.js.map
|