@gen-epix/ui-client-omopdb 4.2.1 → 4.3.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/README.md +6 -8
- package/dist/@types/mui.d.ts +1 -1
- package/dist/components/app/OmopDbApp/OmopDbApp.d.ts +5 -1
- package/dist/components/app/OmopDbApp/index.js +1 -1
- package/dist/components/app/OmopDbApp/index.js.map +1 -1
- package/dist/data/query.d.ts +1 -1
- package/dist/models/{config.d.ts → config.models.d.ts} +1 -1
- package/dist/models/{theme.d.ts → theme.models.d.ts} +1 -1
- package/dist/pages/HomePage/HomePage.d.ts +1 -1
- package/dist/pages/HomePage/index.js +4 -4
- package/dist/pages/HomePage/index.js.map +1 -1
- package/dist/routes/adminRoutes.d.ts +1 -1
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/routes.d.ts +1 -1
- package/dist/setup/setup.d.ts +2 -1
- package/dist/setup/setup.js +17 -19
- package/dist/setup/setup.js.map +1 -1
- package/dist/theme/demoTheme/index.js.map +1 -1
- package/dist/utils/OmopDbStandardConfigUtil/OmopDbStandardConfigUtil.d.ts +1 -1
- package/dist/utils/OmopDbStandardConfigUtil/index.js +24 -23
- package/dist/utils/OmopDbStandardConfigUtil/index.js.map +1 -1
- package/package.json +47 -45
- /package/dist/models/{config.js → config.models.js} +0 -0
- /package/dist/models/{theme.js → theme.models.js} +0 -0
package/README.md
CHANGED
|
@@ -34,16 +34,13 @@ Refer to `package.json` for the full list of peer dependencies.
|
|
|
34
34
|
|
|
35
35
|
```tsx
|
|
36
36
|
import { createRoot } from 'react-dom/client';
|
|
37
|
-
import {
|
|
38
|
-
|
|
39
|
-
I18nService,
|
|
40
|
-
} from '@gen-epix/ui-client-common';
|
|
37
|
+
import { I18nService } from '@gen-epix/ui-client-common/classes/services/I18nService';
|
|
38
|
+
import { createUiClientCommonContainer } from '@gen-epix/ui-client-common/classes/containers/UiClientCommonContainer';
|
|
41
39
|
import { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';
|
|
42
40
|
import {
|
|
43
41
|
OmopDbApp,
|
|
44
42
|
setupOmopDb,
|
|
45
43
|
} from '@gen-epix/ui-client-omopdb';
|
|
46
|
-
import type { OmopDbConfig } from '@gen-epix/ui-client-omopdb';
|
|
47
44
|
|
|
48
45
|
const LOCAL_STORAGE_KEY_PREFERRED_LANGUAGE = 'GenEpix-preferred-language';
|
|
49
46
|
|
|
@@ -77,13 +74,14 @@ const init = async () => {
|
|
|
77
74
|
},
|
|
78
75
|
});
|
|
79
76
|
|
|
80
|
-
|
|
77
|
+
const config = {
|
|
81
78
|
// add your config here
|
|
82
79
|
};
|
|
80
|
+
const container = createUiClientCommonContainer(config);
|
|
83
81
|
|
|
84
|
-
setupOmopDb();
|
|
82
|
+
setupOmopDb(container);
|
|
85
83
|
|
|
86
|
-
createRoot(document.getElementById('root')!).render(<OmopDbApp />);
|
|
84
|
+
createRoot(document.getElementById('root')!).render(<OmopDbApp container={container} />);
|
|
87
85
|
};
|
|
88
86
|
|
|
89
87
|
init().catch((error) => {
|
package/dist/@types/mui.d.ts
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { UiClientCommonContainer } from '@gen-epix/ui-client-common/classes/containers/UiClientCommonContainer';
|
|
2
|
+
export type OmopDbAppProps = {
|
|
3
|
+
readonly container: UiClientCommonContainer;
|
|
4
|
+
};
|
|
5
|
+
export declare const OmopDbApp: ({ container }: OmopDbAppProps) => import('react').JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { App as t } from "@gen-epix/ui-client-common/components/app/App";
|
|
3
3
|
//#region src/components/app/OmopDbApp/OmopDbApp.tsx
|
|
4
|
-
var n = () => /* @__PURE__ */ e(t, {});
|
|
4
|
+
var n = ({ container: n }) => /* @__PURE__ */ e(t, { container: n });
|
|
5
5
|
//#endregion
|
|
6
6
|
export { n as OmopDbApp };
|
|
7
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/app/OmopDbApp/OmopDbApp.tsx"],"sourcesContent":["import { App } from '@gen-epix/ui-client-common/components/app/App';\n\nexport const OmopDbApp = () => {\n return (\n <App />\n );\n};\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","names":["OmopDbApp","App"],"sources":["../../../../src/components/app/OmopDbApp/OmopDbApp.tsx"],"sourcesContent":["import { App } from '@gen-epix/ui-client-common/components/app/App';\nimport type { UiClientCommonContainer } from '@gen-epix/ui-client-common/classes/containers/UiClientCommonContainer';\n\nexport type OmopDbAppProps = {\n readonly container: UiClientCommonContainer;\n};\n\nexport const OmopDbApp = ({ container }: OmopDbAppProps) => {\n return (\n <App container={container} />\n );\n};\n"],"mappings":";;;AAOA,IAAaA,KAAa,EAAE,mBAExB,kBAACC,GAAD,EAAgB,aAAY,CAAA"}
|
package/dist/data/query.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HomePage: () => import(
|
|
1
|
+
export declare const HomePage: () => import('react').JSX.Element;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Box as e } from "@mui/material";
|
|
2
2
|
import { useTranslation as t } from "react-i18next";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { PageContainer as n } from "@gen-epix/ui-client-common/components/ui/PageContainer";
|
|
4
|
+
import { useConfig as r } from "@gen-epix/ui-client-common/hooks/useConfig";
|
|
5
5
|
import { TestIdUtil as i } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
7
|
//#region src/pages/HomePage/HomePage.tsx
|
|
8
8
|
var o = () => {
|
|
9
|
-
let { t: o } = t(), { HomePageIntroduction: s } =
|
|
10
|
-
return /* @__PURE__ */ a(
|
|
9
|
+
let { t: o } = t(), { HomePageIntroduction: s } = r();
|
|
10
|
+
return /* @__PURE__ */ a(n, {
|
|
11
11
|
testIdAttributes: i.createAttributes("HomePage"),
|
|
12
12
|
title: o`Home`,
|
|
13
13
|
children: /* @__PURE__ */ a(e, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/pages/HomePage/HomePage.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next';\nimport { Box } from '@mui/material';\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","names":["HomePage","useTranslation","useConfig","PageContainer","TestIdUtil","Box","HomePageIntroduction"],"sources":["../../../src/pages/HomePage/HomePage.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next';\nimport { Box } from '@mui/material';\nimport { PageContainer } from '@gen-epix/ui-client-common/components/ui/PageContainer';\nimport { useConfig } from '@gen-epix/ui-client-common/hooks/useConfig';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\n\n\nexport const HomePage = () => {\n const { t } = useTranslation();\n const { HomePageIntroduction } = useConfig();\n\n return (\n <PageContainer\n testIdAttributes={TestIdUtil.createAttributes('HomePage')}\n title={t`Home`}\n >\n <Box\n sx={{\n display: 'grid',\n gap: 2,\n gridTemplateRows: 'auto max-content',\n height: '100%',\n }}\n >\n <Box\n sx={{\n display: 'grid',\n gap: 2,\n gridTemplateColumns: '1fr 1fr',\n }}\n >\n <HomePageIntroduction />\n </Box>\n </Box>\n </PageContainer>\n );\n};\n"],"mappings":";;;;;;;AAOA,IAAaA,UAAiB;CAC5B,IAAM,EAAE,SAAMC,EAAe,GACvB,EAAE,4BAAyBC,EAAU;CAE3C,OACE,kBAACC,GAAD;EACE,kBAAkBC,EAAW,iBAAiB,UAAU;EACxD,OAAO,CAAC;EAER,UAAA,kBAACC,GAAD;GACE,IAAI;IACF,SAAS;IACT,KAAK;IACL,kBAAkB;IAClB,QAAQ;GACV;GAEA,UAAA,kBAACA,GAAD;IACE,IAAI;KACF,SAAS;KACT,KAAK;KACL,qBAAqB;IACvB;IAEA,UAAA,kBAACC,GAAD,CAAuB,CAAA;GACpB,CAAA;EACF,CAAA;CACQ,CAAA;AAEnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OmopDbApiPermission } from '@gen-epix/api-omopdb';
|
|
2
|
-
import { MyNonIndexRouteObject } from '@gen-epix/ui-client-common/models/
|
|
2
|
+
import { MyNonIndexRouteObject } from '@gen-epix/ui-client-common/models/react-router.models';
|
|
3
3
|
import { CommonDbApiPermission } from '@gen-epix/api-commondb';
|
|
4
4
|
type RoutePermission = CommonDbApiPermission | OmopDbApiPermission;
|
|
5
5
|
export declare const createAdminRoutes: () => MyNonIndexRouteObject<RoutePermission>[];
|
package/dist/routes/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/routes/adminRoutes.tsx","../../src/routes/routes.tsx"],"sourcesContent":["import type { OmopDbApiPermission } from '@gen-epix/api-omopdb';\nimport { createAdminRoutes as createCommonAdminRoutes } from '@gen-epix/ui-client-common/routes';\nimport type { MyNonIndexRouteObject } from '@gen-epix/ui-client-common/models/
|
|
1
|
+
{"version":3,"file":"index.js","names":["createCommonAdminRoutes","createCommonRoutes","createAdminRoutes$1","createRoutes$1","createAdminRoutes","createRoutes"],"sources":["../../src/routes/adminRoutes.tsx","../../src/routes/routes.tsx"],"sourcesContent":["import type { OmopDbApiPermission } from '@gen-epix/api-omopdb';\nimport { createAdminRoutes as createCommonAdminRoutes } from '@gen-epix/ui-client-common/routes';\nimport type { MyNonIndexRouteObject } from '@gen-epix/ui-client-common/models/react-router.models';\nimport type { CommonDbApiPermission } from '@gen-epix/api-commondb';\n\n\ntype RoutePermission = CommonDbApiPermission | OmopDbApiPermission;\n\nexport const createAdminRoutes = (): MyNonIndexRouteObject<RoutePermission>[] => [\n ...createCommonAdminRoutes<OmopDbApiPermission>(),\n];\n","import type { OmopDbApiPermission } from '@gen-epix/api-omopdb';\nimport type { CommonDbApiPermission } from '@gen-epix/api-commondb';\nimport { createRoutes as createCommonRoutes } from '@gen-epix/ui-client-common/routes';\nimport type { MyNonIndexRouteObject } from '@gen-epix/ui-client-common/models/react-router.models';\n\nimport { createAdminRoutes } from './adminRoutes';\n\ntype RoutePermission = CommonDbApiPermission | OmopDbApiPermission;\n\nexport const createRoutes = (\n adminRoutes: MyNonIndexRouteObject<RoutePermission>[] = createAdminRoutes(),\n): MyNonIndexRouteObject<RoutePermission>[] => {\n const rootChildren: MyNonIndexRouteObject<RoutePermission>[] = [];\n\n return createCommonRoutes<OmopDbApiPermission>({\n adminRoutes,\n rootChildren,\n });\n};\n"],"mappings":";;AAQA,IAAaI,UAAoE,CAC/E,GAAGJ,EAA6C,CAClD,GCDaK,KACX,IAAwDD,EAAkB,MAInEH,EAAwC;CAC7C;CACA,cAAA,CAAA;AACF,CAAC"}
|
package/dist/routes/routes.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OmopDbApiPermission } from '@gen-epix/api-omopdb';
|
|
2
2
|
import { CommonDbApiPermission } from '@gen-epix/api-commondb';
|
|
3
|
-
import { MyNonIndexRouteObject } from '@gen-epix/ui-client-common/models/
|
|
3
|
+
import { MyNonIndexRouteObject } from '@gen-epix/ui-client-common/models/react-router.models';
|
|
4
4
|
type RoutePermission = CommonDbApiPermission | OmopDbApiPermission;
|
|
5
5
|
export declare const createRoutes: (adminRoutes?: MyNonIndexRouteObject<RoutePermission>[]) => MyNonIndexRouteObject<RoutePermission>[];
|
|
6
6
|
export {};
|
package/dist/setup/setup.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { UiClientCommonContainer } from '@gen-epix/ui-client-common/classes/containers/UiClientCommonContainer';
|
|
2
|
+
export declare const setupOmopDb: (container: UiClientCommonContainer) => void;
|
package/dist/setup/setup.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import { createAdminRoutes as e, createRoutes as t } from "../routes/index.js";
|
|
2
2
|
import { HomePage as n } from "../pages/HomePage/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { setupUi as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
import { COMMON_QUERY_DEPENDENCIES as r } from "@gen-epix/ui-client-common/constants/query.constants";
|
|
4
|
+
import { QueryClientService as i } from "@gen-epix/ui-client-common/classes/services/QueryClientService";
|
|
5
|
+
import { RouterService as a } from "@gen-epix/ui-client-common/classes/services/RouterService";
|
|
6
|
+
import { OmopDbAbacApi as o, OmopDbAuthApi as s, OmopDbBaseAPI as c, OmopDbOrganizationApi as l, OmopDbSystemApi as u } from "@gen-epix/api-omopdb";
|
|
7
|
+
import { API_ABAC_TOKEN as d, API_AUTH_TOKEN as f, API_BASE_TOKEN as p, API_ORGANIZATION_TOKEN as m, API_SYSTEM_TOKEN as h } from "@gen-epix/ui-client-common/models/api.models";
|
|
8
|
+
import { setupUi as g } from "@gen-epix/ui-client-common/setup/setup";
|
|
9
|
+
import { resolveConfig as _ } from "@gen-epix/ui-client-common/classes/containers/UiClientCommonContainer";
|
|
10
|
+
var v = { [{ FOO: "FOO" }.FOO]: [] }, y = (y) => {
|
|
11
|
+
let b = _(y), x = e(), S = t(x);
|
|
12
|
+
y.register(a, { useValue: new a({
|
|
13
|
+
adminRoutes: x,
|
|
13
14
|
homePageComponent: n,
|
|
14
|
-
routes:
|
|
15
|
-
}),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
organizationApi: u.getInstance(),
|
|
20
|
-
systemApi: d.getInstance()
|
|
21
|
-
}), f();
|
|
15
|
+
routes: S
|
|
16
|
+
}) }), y.register(i, { useValue: new i({
|
|
17
|
+
config: b,
|
|
18
|
+
queryKeyDependencies: [r, v]
|
|
19
|
+
}) }), y.register(p, { useValue: c }), y.register(d, { useValue: y.resolve(o) }), y.register(f, { useValue: y.resolve(s) }), y.register(m, { useValue: y.resolve(l) }), y.register(h, { useValue: y.resolve(u) }), g();
|
|
22
20
|
};
|
|
23
21
|
//#endregion
|
|
24
|
-
export {
|
|
22
|
+
export { y as setupOmopDb };
|
|
25
23
|
|
|
26
24
|
//# sourceMappingURL=setup.js.map
|
package/dist/setup/setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","names":[],"sources":["../../src/data/query.ts","../../src/setup/setup.ts"],"sourcesContent":["import type { COMMON_QUERY_KEY } from '@gen-epix/ui-client-common/constants/query';\n\nexport const OMOPDB_QUERY_KEY = {\n FOO: 'FOO',\n} as const;\n\n// eslint-disable-next-line no-redeclare, @typescript-eslint/naming-convention\nexport type OMOPDB_QUERY_KEY = typeof OMOPDB_QUERY_KEY[keyof typeof OMOPDB_QUERY_KEY];\n\nexport const OMOPDB_QUERY_DEPENDENCIES: Record<OMOPDB_QUERY_KEY, (COMMON_QUERY_KEY | OMOPDB_QUERY_KEY)[]> = {\n [OMOPDB_QUERY_KEY.FOO]: [],\n};\n","import type { COMMON_QUERY_KEY } from '@gen-epix/ui-client-common/constants/query';\nimport type { MyNonIndexRouteObject } from '@gen-epix/ui-client-common/models/
|
|
1
|
+
{"version":3,"file":"setup.js","names":["OMOPDB_QUERY_DEPENDENCIES","setupOmopDb","config","resolveConfig","container","adminRoutes","createAdminRoutes","routes","createRoutes","RouterService","HomePage","QueryClientService","COMMON_QUERY_DEPENDENCIES","API_BASE_TOKEN","OmopDbBaseAPI","API_ABAC_TOKEN","OmopDbAbacApi","API_AUTH_TOKEN","OmopDbAuthApi","API_ORGANIZATION_TOKEN","OmopDbOrganizationApi","API_SYSTEM_TOKEN","OmopDbSystemApi","setupUi"],"sources":["../../src/data/query.ts","../../src/setup/setup.ts"],"sourcesContent":["import type { COMMON_QUERY_KEY } from '@gen-epix/ui-client-common/constants/query.constants';\n\nexport const OMOPDB_QUERY_KEY = {\n FOO: 'FOO',\n} as const;\n\n// eslint-disable-next-line no-redeclare, @typescript-eslint/naming-convention\nexport type OMOPDB_QUERY_KEY = typeof OMOPDB_QUERY_KEY[keyof typeof OMOPDB_QUERY_KEY];\n\nexport const OMOPDB_QUERY_DEPENDENCIES: Record<OMOPDB_QUERY_KEY, (COMMON_QUERY_KEY | OMOPDB_QUERY_KEY)[]> = {\n [OMOPDB_QUERY_KEY.FOO]: [],\n};\n","import type { COMMON_QUERY_KEY } from '@gen-epix/ui-client-common/constants/query.constants';\nimport type { MyNonIndexRouteObject } from '@gen-epix/ui-client-common/models/react-router.models';\nimport { COMMON_QUERY_DEPENDENCIES } from '@gen-epix/ui-client-common/constants/query.constants';\nimport { QueryClientService } from '@gen-epix/ui-client-common/classes/services/QueryClientService';\nimport { RouterService } from '@gen-epix/ui-client-common/classes/services/RouterService';\nimport {\n OmopDbAbacApi,\n OmopDbAuthApi,\n OmopDbBaseAPI,\n OmopDbOrganizationApi,\n OmopDbSystemApi,\n} from '@gen-epix/api-omopdb';\nimport type { CommonDbOrganizationApi } from '@gen-epix/api-commondb';\nimport {\n API_ABAC_TOKEN,\n API_AUTH_TOKEN,\n API_BASE_TOKEN,\n API_ORGANIZATION_TOKEN,\n API_SYSTEM_TOKEN,\n} from '@gen-epix/ui-client-common/models/api.models';\nimport { setupUi } from '@gen-epix/ui-client-common/setup/setup';\nimport type { UiClientCommonContainer } from '@gen-epix/ui-client-common/classes/containers/UiClientCommonContainer';\nimport { resolveConfig } from '@gen-epix/ui-client-common/classes/containers/UiClientCommonContainer';\n\nimport { HomePage } from '../pages/HomePage';\nimport {\n createAdminRoutes,\n createRoutes,\n} from '../routes';\nimport type { OMOPDB_QUERY_KEY } from '../data/query';\nimport { OMOPDB_QUERY_DEPENDENCIES } from '../data/query';\nimport type { OmopDbConfig } from '../models/config.models';\n\nexport const setupOmopDb = (container: UiClientCommonContainer) => {\n const config = resolveConfig<OmopDbConfig>(container);\n const adminRoutes = createAdminRoutes();\n const routes = createRoutes(adminRoutes);\n\n container.register(RouterService, {\n useValue: new RouterService({\n adminRoutes: adminRoutes as MyNonIndexRouteObject[],\n homePageComponent: HomePage,\n routes: routes as MyNonIndexRouteObject[],\n }),\n });\n container.register(QueryClientService, {\n useValue: new QueryClientService<COMMON_QUERY_KEY & OMOPDB_QUERY_KEY>({\n config,\n queryKeyDependencies: [COMMON_QUERY_DEPENDENCIES, OMOPDB_QUERY_DEPENDENCIES],\n }),\n });\n container.register(API_BASE_TOKEN, { useValue: OmopDbBaseAPI });\n container.register(API_ABAC_TOKEN, { useValue: container.resolve(OmopDbAbacApi) });\n container.register(API_AUTH_TOKEN, { useValue: container.resolve(OmopDbAuthApi) });\n container.register(API_ORGANIZATION_TOKEN, { useValue: container.resolve(OmopDbOrganizationApi) as CommonDbOrganizationApi });\n container.register(API_SYSTEM_TOKEN, { useValue: container.resolve(OmopDbSystemApi) });\n setupUi();\n};\n"],"mappings":";;;;;;;;;AASA,IAAaA,IAA+F,GACzG,EAPD,KAAK,MAOJ,EAAiB,MAAM,CAAC,EAC3B,GCsBaC,KAAe,MAAuC;CACjE,IAAMC,IAASC,EAA4BC,CAAS,GAC9CC,IAAcC,EAAkB,GAChCC,IAASC,EAAaH,CAAW;CAoBvC,AAlBAD,EAAU,SAASK,GAAe,EAChC,UAAU,IAAIA,EAAc;EACb;EACb,mBAAmBC;EACX;CACV,CAAC,EACH,CAAC,GACDN,EAAU,SAASO,GAAoB,EACrC,UAAU,IAAIA,EAAwD;EACpE;EACA,sBAAsB,CAACC,GAA2BZ,CAAyB;CAC7E,CAAC,EACH,CAAC,GACDI,EAAU,SAASS,GAAgB,EAAE,UAAUC,EAAc,CAAC,GAC9DV,EAAU,SAASW,GAAgB,EAAE,UAAUX,EAAU,QAAQY,CAAa,EAAE,CAAC,GACjFZ,EAAU,SAASa,GAAgB,EAAE,UAAUb,EAAU,QAAQc,CAAa,EAAE,CAAC,GACjFd,EAAU,SAASe,GAAwB,EAAE,UAAUf,EAAU,QAAQgB,CAAqB,EAA6B,CAAC,GAC5HhB,EAAU,SAASiB,GAAkB,EAAE,UAAUjB,EAAU,QAAQkB,CAAe,EAAE,CAAC,GACrFC,EAAQ;AACV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/theme/demoTheme/demoTheme.ts"],"sourcesContent":["import { createDemoThemeOptions } from '@gen-epix/ui-client-common/theme/demoTheme';\nimport type {\n PaletteMode,\n Theme,\n ThemeOptions,\n} from '@mui/material';\nimport { createTheme as muiCreateTheme } from '@mui/material';\n\nexport const createOmopDbDemoThemeOptions = (paletteMode: PaletteMode): ThemeOptions => {\n const themeOptions: ThemeOptions = {\n ...createDemoThemeOptions(paletteMode),\n 'gen-epix-ui-client-omopdb': {\n },\n };\n\n return muiCreateTheme(themeOptions);\n};\n\nexport const createOmopDbDemoTheme = (paletteMode: PaletteMode): Theme => {\n return muiCreateTheme(createOmopDbDemoThemeOptions(paletteMode));\n};\n"],"mappings":";;;AAQA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["muiCreateTheme","createOmopDbDemoThemeOptions","themeOptions","createDemoThemeOptions","paletteMode","createTheme","createOmopDbDemoTheme"],"sources":["../../../src/theme/demoTheme/demoTheme.ts"],"sourcesContent":["import { createDemoThemeOptions } from '@gen-epix/ui-client-common/theme/demoTheme';\nimport type {\n PaletteMode,\n Theme,\n ThemeOptions,\n} from '@mui/material';\nimport { createTheme as muiCreateTheme } from '@mui/material';\n\nexport const createOmopDbDemoThemeOptions = (paletteMode: PaletteMode): ThemeOptions => {\n const themeOptions: ThemeOptions = {\n ...createDemoThemeOptions(paletteMode),\n 'gen-epix-ui-client-omopdb': {\n },\n };\n\n return muiCreateTheme(themeOptions);\n};\n\nexport const createOmopDbDemoTheme = (paletteMode: PaletteMode): Theme => {\n return muiCreateTheme(createOmopDbDemoThemeOptions(paletteMode));\n};\n"],"mappings":";;;AAQA,IAAaC,KAAgC,MAA2C;CACtF,IAAMC,IAA6B;EACjC,GAAGC,EAAuBC,CAAW;EACrC,6BAA6B,CAC7B;CACF;CAEA,OAAOJ,EAAeE,CAAY;AACpC,GAEaI,KAAyB,MAC7BN,EAAeC,EAA6BG,CAAW,CAAC"}
|
|
@@ -1,52 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { container as e } from "tsyringe";
|
|
2
|
+
import { I18nService as t } from "@gen-epix/ui-client-common/classes/services/I18nService";
|
|
3
|
+
import { StandardConfigUtil as n } from "@gen-epix/ui-client-common/utils/StandardConfigUtil";
|
|
4
|
+
import { t as r } from "i18next";
|
|
5
|
+
import { WindowService as i } from "@gen-epix/ui-core/classes/services/WindowService";
|
|
5
6
|
//#region src/utils/OmopDbStandardConfigUtil/OmopDbStandardConfigUtil.ts
|
|
6
|
-
var
|
|
7
|
+
var a = class {
|
|
7
8
|
static createConfig() {
|
|
8
|
-
let
|
|
9
|
-
e.
|
|
10
|
-
},
|
|
11
|
-
e.
|
|
9
|
+
let a = () => {
|
|
10
|
+
e.resolve(t).emit("onUserLanguageChange", "en");
|
|
11
|
+
}, o = () => {
|
|
12
|
+
e.resolve(t).emit("onUserLanguageChange", "nl");
|
|
12
13
|
};
|
|
13
14
|
return {
|
|
14
|
-
...
|
|
15
|
+
...n.createConfig(),
|
|
15
16
|
createFooter: () => ({ sections: [
|
|
16
17
|
{
|
|
17
|
-
header:
|
|
18
|
+
header: r`Contact`,
|
|
18
19
|
items: [{
|
|
19
20
|
href: "mailto:ids-bioinformatics@rivm.nl",
|
|
20
21
|
label: "ids-bioinformatics@rivm.nl"
|
|
21
22
|
}, {
|
|
22
23
|
href: "https://github.com/RIVM-bioinformatics/gen-epix",
|
|
23
|
-
label:
|
|
24
|
+
label: r`Information for the press`
|
|
24
25
|
}]
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
|
-
header:
|
|
28
|
+
header: r`About`,
|
|
28
29
|
items: [{
|
|
29
30
|
href: "https://github.com/RIVM-bioinformatics/gen-epix",
|
|
30
|
-
label:
|
|
31
|
+
label: r`Copyright`
|
|
31
32
|
}, {
|
|
32
33
|
href: "https://github.com/RIVM-bioinformatics/gen-epix",
|
|
33
|
-
label:
|
|
34
|
+
label: r`Accessibility`
|
|
34
35
|
}]
|
|
35
36
|
},
|
|
36
37
|
{
|
|
37
|
-
header:
|
|
38
|
+
header: r`Languages`,
|
|
38
39
|
items: [{
|
|
39
|
-
label:
|
|
40
|
-
onClick: i
|
|
41
|
-
}, {
|
|
42
|
-
label: n`Dutch`,
|
|
40
|
+
label: r`English`,
|
|
43
41
|
onClick: a
|
|
42
|
+
}, {
|
|
43
|
+
label: r`Dutch`,
|
|
44
|
+
onClick: o
|
|
44
45
|
}]
|
|
45
46
|
}
|
|
46
47
|
] }),
|
|
47
48
|
enablePageEvents: !1,
|
|
48
49
|
getAPIBaseUrl: () => {
|
|
49
|
-
let { location: { href: e } } =
|
|
50
|
+
let { location: { href: e } } = i.getInstance().window.document, { hostname: t } = new URL(e);
|
|
50
51
|
switch (t) {
|
|
51
52
|
case "127.0.0.1": return "https://127.0.0.1:5010";
|
|
52
53
|
case "localhost": return "https://localhost:5010";
|
|
@@ -54,13 +55,13 @@ var i = class {
|
|
|
54
55
|
}
|
|
55
56
|
},
|
|
56
57
|
getEnvironmentMessage: () => {
|
|
57
|
-
let { location: { href: e } } =
|
|
58
|
+
let { location: { href: e } } = i.getInstance().window.document, { hostname: t } = new URL(e);
|
|
58
59
|
return "localhost";
|
|
59
60
|
}
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
};
|
|
63
64
|
//#endregion
|
|
64
|
-
export {
|
|
65
|
+
export { a as OmopDbStandardConfigUtil };
|
|
65
66
|
|
|
66
67
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/utils/OmopDbStandardConfigUtil/OmopDbStandardConfigUtil.ts"],"sourcesContent":["import { I18nService } from '@gen-epix/ui-client-common/classes/services/I18nService';\nimport { StandardConfigUtil } from '@gen-epix/ui-client-common/utils/StandardConfigUtil';\nimport { t } from 'i18next';\nimport { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\n\nimport type { OmopDbConfig } from '../../models/config';\n\nexport class OmopDbStandardConfigUtil {\n public static createConfig(): Omit<OmopDbConfig, 'theme'> {\n const onEnglishClick = () => {\n
|
|
1
|
+
{"version":3,"file":"index.js","names":["OmopDbStandardConfigUtil","onEnglishClick","I18nService","onDutchClick","StandardConfigUtil","WindowService","href","hostname"],"sources":["../../../src/utils/OmopDbStandardConfigUtil/OmopDbStandardConfigUtil.ts"],"sourcesContent":["import { container as rootContainer } from 'tsyringe';\nimport { I18nService } from '@gen-epix/ui-client-common/classes/services/I18nService';\nimport { StandardConfigUtil } from '@gen-epix/ui-client-common/utils/StandardConfigUtil';\nimport { t } from 'i18next';\nimport { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';\n\nimport type { OmopDbConfig } from '../../models/config.models';\n\nexport class OmopDbStandardConfigUtil {\n public static createConfig(): Omit<OmopDbConfig, 'theme'> {\n const onEnglishClick = () => {\n rootContainer.resolve(I18nService).emit('onUserLanguageChange', 'en');\n };\n\n const onDutchClick = () => {\n rootContainer.resolve(I18nService).emit('onUserLanguageChange', 'nl');\n };\n\n const config: Omit<OmopDbConfig, 'theme'> = {\n ...StandardConfigUtil.createConfig(),\n createFooter: () => ({\n sections: [\n {\n header: t`Contact`,\n items: [\n {\n href: 'mailto:ids-bioinformatics@rivm.nl',\n label: 'ids-bioinformatics@rivm.nl',\n },\n {\n href: 'https://github.com/RIVM-bioinformatics/gen-epix',\n label: t`Information for the press`,\n },\n ],\n },\n {\n header: t`About`,\n items: [\n {\n href: 'https://github.com/RIVM-bioinformatics/gen-epix',\n label: t`Copyright`,\n },\n {\n href: 'https://github.com/RIVM-bioinformatics/gen-epix',\n label: t`Accessibility`,\n },\n ],\n },\n {\n header: t`Languages`,\n items: [\n {\n label: t`English`,\n onClick: onEnglishClick,\n },\n {\n label: t`Dutch`,\n onClick: onDutchClick,\n },\n ],\n },\n ],\n }),\n enablePageEvents: false,\n\n getAPIBaseUrl: () => {\n const { location: { href } } = WindowService.getInstance().window.document;\n const { hostname } = new URL(href);\n switch (hostname) {\n case '127.0.0.1':\n return `https://127.0.0.1:5010`;\n case 'localhost':\n return `https://localhost:5010`;\n default:\n return '';\n }\n },\n getEnvironmentMessage: () => {\n const { location: { href } } = WindowService.getInstance().window.document;\n const { hostname } = new URL(href);\n let environment: string;\n switch (hostname) {\n case '127.0.0.1':\n case 'localhost':\n default:\n environment = 'localhost';\n break;\n }\n return environment;\n },\n };\n return config;\n }\n\n}\n"],"mappings":";;;;;;AAQA,IAAaA,IAAb,MAAsC;CACpC,OAAc,eAA4C;EACxD,IAAMC,UAAuB;GAC3B,EAAc,QAAQC,CAAW,CAAC,CAAC,KAAK,wBAAwB,IAAI;EACtE,GAEMC,UAAqB;GACzB,EAAc,QAAQD,CAAW,CAAC,CAAC,KAAK,wBAAwB,IAAI;EACtE;EA2EA,OAAO;GAxEL,GAAGE,EAAmB,aAAa;GACnC,qBAAqB,EACnB,UAAU;IACR;KACE,QAAQ,CAAC;KACT,OAAO,CACL;MACE,MAAM;MACN,OAAO;KACT,GACA;MACE,MAAM;MACN,OAAO,CAAC;KACV,CACF;IACF;IACA;KACE,QAAQ,CAAC;KACT,OAAO,CACL;MACE,MAAM;MACN,OAAO,CAAC;KACV,GACA;MACE,MAAM;MACN,OAAO,CAAC;KACV,CACF;IACF;IACA;KACE,QAAQ,CAAC;KACT,OAAO,CACL;MACE,OAAO,CAAC;MACR,SAASH;KACX,GACA;MACE,OAAO,CAAC;MACR,SAASE;KACX,CACF;IACF;GACF,EACF;GACA,kBAAkB;GAElB,qBAAqB;IACnB,IAAM,EAAE,UAAU,EAAE,cAAWE,EAAc,YAAY,CAAC,CAAC,OAAO,UAC5D,EAAE,gBAAa,IAAI,IAAIC,CAAI;IACjC,QAAQC,GAAR;KACE,KAAK,aACH,OAAO;KACT,KAAK,aACH,OAAO;KACT,SACE,OAAO;IACX;GACF;GACA,6BAA6B;IAC3B,IAAM,EAAE,UAAU,EAAE,cAAWF,EAAc,YAAY,CAAC,CAAC,OAAO,UAC5D,EAAE,gBAAa,IAAI,IAAIC,CAAI;IASjC,OAAO;GACT;EAEK;CACT;AAEF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gen-epix/ui-client-omopdb",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"homepage": "https://github.com/RIVM-bioinformatics/gen-epix",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"types": "./dist/components/app/OmopDbApp/index.d.ts",
|
|
19
19
|
"import": "./dist/components/app/OmopDbApp/index.js"
|
|
20
20
|
},
|
|
21
|
-
"./models/config": {
|
|
22
|
-
"types": "./dist/models/config.d.ts",
|
|
23
|
-
"import": "./dist/models/config.js"
|
|
21
|
+
"./models/config.models": {
|
|
22
|
+
"types": "./dist/models/config.models.d.ts",
|
|
23
|
+
"import": "./dist/models/config.models.js"
|
|
24
24
|
},
|
|
25
|
-
"./models/theme": {
|
|
26
|
-
"types": "./dist/models/theme.d.ts",
|
|
27
|
-
"import": "./dist/models/theme.js"
|
|
25
|
+
"./models/theme.models": {
|
|
26
|
+
"types": "./dist/models/theme.models.d.ts",
|
|
27
|
+
"import": "./dist/models/theme.models.js"
|
|
28
28
|
},
|
|
29
29
|
"./pages/HomePage": {
|
|
30
30
|
"types": "./dist/pages/HomePage/index.d.ts",
|
|
@@ -57,56 +57,57 @@
|
|
|
57
57
|
"@emotion/cache": "11.14.0",
|
|
58
58
|
"@emotion/react": "11.14.0",
|
|
59
59
|
"@emotion/styled": "11.14.1",
|
|
60
|
-
"@gen-epix/api-commondb": "^4.
|
|
61
|
-
"@gen-epix/api-omopdb": "^4.
|
|
62
|
-
"@gen-epix/eslint-config": "0.
|
|
63
|
-
"@gen-epix/translation-util": "0.
|
|
64
|
-
"@gen-epix/ui-client-common": "^4.
|
|
65
|
-
"@gen-epix/ui-core-components": "^4.
|
|
66
|
-
"@gen-epix/ui-core-form": "^4.
|
|
67
|
-
"@microsoft/api-extractor": "7.59.
|
|
68
|
-
"@mui/icons-material": "9.
|
|
69
|
-
"@mui/material": "9.
|
|
70
|
-
"@mui/styled-engine": "9.
|
|
71
|
-
"@mui/system": "9.
|
|
72
|
-
"@mui/utils": "9.
|
|
73
|
-
"@mui/x-date-pickers": "9.
|
|
74
|
-
"@types/node": "26.
|
|
60
|
+
"@gen-epix/api-commondb": "^4.4.0",
|
|
61
|
+
"@gen-epix/api-omopdb": "^4.4.0",
|
|
62
|
+
"@gen-epix/eslint-config": "0.8.0",
|
|
63
|
+
"@gen-epix/translation-util": "0.5.0",
|
|
64
|
+
"@gen-epix/ui-client-common": "^4.4.0",
|
|
65
|
+
"@gen-epix/ui-core-components": "^4.4.0",
|
|
66
|
+
"@gen-epix/ui-core-form": "^4.4.0",
|
|
67
|
+
"@microsoft/api-extractor": "7.59.4",
|
|
68
|
+
"@mui/icons-material": "9.5.0",
|
|
69
|
+
"@mui/material": "9.5.0",
|
|
70
|
+
"@mui/styled-engine": "9.5.0",
|
|
71
|
+
"@mui/system": "9.5.0",
|
|
72
|
+
"@mui/utils": "9.5.0",
|
|
73
|
+
"@mui/x-date-pickers": "9.15.0",
|
|
74
|
+
"@types/node": "26.6.5",
|
|
75
75
|
"@types/react": "19.3.0",
|
|
76
|
-
"@vitejs/plugin-react": "6.1.
|
|
77
|
-
"@vitest/browser-playwright": "5.0.
|
|
78
|
-
"@vitest/coverage-v8": "5.0.
|
|
76
|
+
"@vitejs/plugin-react": "6.1.2",
|
|
77
|
+
"@vitest/browser-playwright": "5.0.4",
|
|
78
|
+
"@vitest/coverage-v8": "5.0.4",
|
|
79
79
|
"axios": "1.20.0",
|
|
80
|
-
"eslint": "10.
|
|
81
|
-
"i18next": "26.4.
|
|
82
|
-
"jsdom": "30.1.
|
|
83
|
-
"playwright": "1.
|
|
80
|
+
"eslint": "10.12.0",
|
|
81
|
+
"i18next": "26.4.4",
|
|
82
|
+
"jsdom": "30.1.2",
|
|
83
|
+
"playwright": "1.64.1",
|
|
84
|
+
"react": "19.3.0",
|
|
84
85
|
"react-dom": "19.3.0",
|
|
85
|
-
"react-error-boundary": "6.1.
|
|
86
|
-
"react-hook-form": "7.
|
|
87
|
-
"react-i18next": "17.0.
|
|
88
|
-
"react-router-dom": "7.18.4",
|
|
86
|
+
"react-error-boundary": "6.1.6",
|
|
87
|
+
"react-hook-form": "7.90.0",
|
|
88
|
+
"react-i18next": "17.0.16",
|
|
89
89
|
"react-router": "8.4.0",
|
|
90
|
-
"react": "
|
|
90
|
+
"react-router-dom": "7.18.4",
|
|
91
91
|
"typescript": "6.0.3",
|
|
92
|
-
"
|
|
93
|
-
"vite
|
|
92
|
+
"tsyringe": "4.10.0",
|
|
93
|
+
"vite": "8.3.4",
|
|
94
|
+
"vite-plugin-dts": "5.1.2",
|
|
94
95
|
"vite-plugin-lib-inject-css": "2.2.2",
|
|
95
96
|
"vite-plugin-static-copy": "4.1.1",
|
|
96
97
|
"vite-plugin-svgr": "5.2.0",
|
|
97
|
-
"vitest": "5.0.
|
|
98
|
+
"vitest": "5.0.4",
|
|
98
99
|
"yup": "1.7.1"
|
|
99
100
|
},
|
|
100
101
|
"peerDependencies": {
|
|
101
102
|
"@emotion/cache": "*",
|
|
102
103
|
"@emotion/react": "*",
|
|
103
104
|
"@emotion/styled": "*",
|
|
104
|
-
"@gen-epix/api-commondb": "^4.
|
|
105
|
-
"@gen-epix/api-omopdb": "^4.
|
|
106
|
-
"@gen-epix/ui-client-common": "^4.
|
|
107
|
-
"@gen-epix/ui-core": "^3.
|
|
108
|
-
"@gen-epix/ui-core-components": "^4.
|
|
109
|
-
"@gen-epix/ui-core-form": "^4.
|
|
105
|
+
"@gen-epix/api-commondb": "^4.4.0",
|
|
106
|
+
"@gen-epix/api-omopdb": "^4.4.0",
|
|
107
|
+
"@gen-epix/ui-client-common": "^4.4.0",
|
|
108
|
+
"@gen-epix/ui-core": "^3.9.0",
|
|
109
|
+
"@gen-epix/ui-core-components": "^4.4.0",
|
|
110
|
+
"@gen-epix/ui-core-form": "^4.4.0",
|
|
110
111
|
"@mui/icons-material": "*",
|
|
111
112
|
"@mui/material": "*",
|
|
112
113
|
"@mui/styled-engine": "*",
|
|
@@ -115,13 +116,14 @@
|
|
|
115
116
|
"@mui/x-date-pickers": "*",
|
|
116
117
|
"axios": "*",
|
|
117
118
|
"i18next": "*",
|
|
119
|
+
"react": "*",
|
|
118
120
|
"react-dom": "*",
|
|
119
121
|
"react-error-boundary": "*",
|
|
120
122
|
"react-hook-form": "*",
|
|
121
123
|
"react-i18next": "*",
|
|
122
|
-
"react-router-dom": "*",
|
|
123
124
|
"react-router": "*",
|
|
124
|
-
"react": "*",
|
|
125
|
+
"react-router-dom": "*",
|
|
126
|
+
"tsyringe": "*",
|
|
125
127
|
"yup": "*"
|
|
126
128
|
},
|
|
127
129
|
"publishConfig": {
|
|
File without changes
|
|
File without changes
|