@gen-epix/ui-client-omopdb 4.0.0 → 4.0.2

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.
@@ -7,6 +7,6 @@ declare module '@mui/material/styles' {
7
7
  interface Theme extends GenEpixOmopDbUiTheme { }
8
8
  // allow configuration using `createTheme()`
9
9
  interface ThemeOptions {
10
- 'gen-epix-ui-omopdb'?: GenEpixOmopDbUiTheme['gen-epix-ui-omopdb'];
10
+ 'gen-epix-ui-client-omopdb'?: GenEpixOmopDbUiTheme['gen-epix-ui-client-omopdb'];
11
11
  }
12
12
  }
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable import-x/unambiguous */
2
2
  /// <reference types="./mui" />
3
- /// <reference types="@gen-epix/ui/types" />
3
+ /// <reference types="@gen-epix/ui-client-common/types" />
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { App as t } from "@gen-epix/ui/components/app/App";
2
+ import { App as t } from "@gen-epix/ui-client-common/components/app/App";
3
3
  //#region src/components/app/OmopDbApp/OmopDbApp.tsx
4
4
  var n = () => /* @__PURE__ */ e(t, {});
5
5
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/app/OmopDbApp/OmopDbApp.tsx"],"sourcesContent":["import { App } from '@gen-epix/ui/components/app/App';\n\nexport const OmopDbApp = () => {\n return (\n <App />\n );\n};\n"],"mappings":";;;AAEA,IAAa,UAET,kBAAC,GAAD,CAAM,CAAA"}
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":";;;AAEA,IAAa,UAET,kBAAC,GAAD,CAAM,CAAA"}
@@ -1,4 +1,4 @@
1
- import { COMMON_QUERY_KEY } from '@gen-epix/ui/constants/query';
1
+ import { COMMON_QUERY_KEY } from '@gen-epix/ui-client-common/constants/query';
2
2
  export declare const OMOPDB_QUERY_KEY: {
3
3
  readonly FOO: "FOO";
4
4
  };
@@ -1,3 +1,3 @@
1
- import { ConfigBase } from '@gen-epix/ui/models/config';
1
+ import { ConfigBase } from '@gen-epix/ui-client-common/models/config';
2
2
  export interface OmopDbConfig extends ConfigBase {
3
3
  }
@@ -1,4 +1,4 @@
1
- import { GenEpixUiTheme } from '@gen-epix/ui/models/theme';
1
+ import { GenEpixUiTheme } from '@gen-epix/ui-client-common/models/theme';
2
2
  export interface GenEpixOmopDbUiTheme extends GenEpixUiTheme {
3
- 'gen-epix-ui-omopdb': {};
3
+ 'gen-epix-ui-client-omopdb': {};
4
4
  }
@@ -1,7 +1,7 @@
1
1
  import { Box as e } from "@mui/material";
2
2
  import { useTranslation as t } from "react-i18next";
3
- import { ConfigService as n } from "@gen-epix/ui/classes/services/ConfigService";
4
- import { PageContainer as r } from "@gen-epix/ui/components/ui/PageContainer";
3
+ import { ConfigService as n } from "@gen-epix/ui-client-common/classes/services/ConfigService";
4
+ import { PageContainer as r } from "@gen-epix/ui-client-common/components/ui/PageContainer";
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
@@ -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 { ConfigService } from '@gen-epix/ui/classes/services/ConfigService';\nimport { PageContainer } from '@gen-epix/ui/components/ui/PageContainer';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\n\n\nexport const HomePage = () => {\n const { t } = useTranslation();\n const { HomePageIntroduction } = ConfigService.getInstance().config;\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,IAAa,UAAiB;CAC5B,IAAM,EAAE,SAAM,EAAe,GACvB,EAAE,4BAAyB,EAAc,YAAY,CAAC,CAAC;CAE7D,OACE,kBAAC,GAAD;EACE,kBAAkB,EAAW,iBAAiB,UAAU;EACxD,OAAO,CAAC;YAER,kBAAC,GAAD;GACE,IAAI;IACF,SAAS;IACT,KAAK;IACL,kBAAkB;IAClB,QAAQ;GACV;aAEA,kBAAC,GAAD;IACE,IAAI;KACF,SAAS;KACT,KAAK;KACL,qBAAqB;IACvB;cAEA,kBAAC,GAAD,CAAuB,CAAA;GACpB,CAAA;EACF,CAAA;CACQ,CAAA;AAEnB"}
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 { ConfigService } from '@gen-epix/ui-client-common/classes/services/ConfigService';\nimport { PageContainer } from '@gen-epix/ui-client-common/components/ui/PageContainer';\nimport { TestIdUtil } from '@gen-epix/ui-core/utils/TestIdUtil';\n\n\nexport const HomePage = () => {\n const { t } = useTranslation();\n const { HomePageIntroduction } = ConfigService.getInstance().config;\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,IAAa,UAAiB;CAC5B,IAAM,EAAE,SAAM,EAAe,GACvB,EAAE,4BAAyB,EAAc,YAAY,CAAC,CAAC;CAE7D,OACE,kBAAC,GAAD;EACE,kBAAkB,EAAW,iBAAiB,UAAU;EACxD,OAAO,CAAC;EAER,UAAA,kBAAC,GAAD;GACE,IAAI;IACF,SAAS;IACT,KAAK;IACL,kBAAkB;IAClB,QAAQ;GACV;GAEA,UAAA,kBAAC,GAAD;IACE,IAAI;KACF,SAAS;KACT,KAAK;KACL,qBAAqB;IACvB;IAEA,UAAA,kBAAC,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/models/reactRouter';
2
+ import { MyNonIndexRouteObject } from '@gen-epix/ui-client-common/models/reactRouter';
3
3
  import { CommonDbApiPermission } from '@gen-epix/api-commondb';
4
4
  type RoutePermission = CommonDbApiPermission | OmopDbApiPermission;
5
5
  export declare const createAdminRoutes: () => MyNonIndexRouteObject<RoutePermission>[];
@@ -1,4 +1,4 @@
1
- import { createAdminRoutes as e, createRoutes as t } from "@gen-epix/ui/routes";
1
+ import { createAdminRoutes as e, createRoutes as t } from "@gen-epix/ui-client-common/routes";
2
2
  //#region src/routes/adminRoutes.tsx
3
3
  var n = () => [...e()], r = (e = n()) => t({
4
4
  adminRoutes: e,
@@ -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/routes';\nimport type { MyNonIndexRouteObject } from '@gen-epix/ui/models/reactRouter';\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/routes';\nimport type { MyNonIndexRouteObject } from '@gen-epix/ui/models/reactRouter';\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,IAAa,UAAoE,CAC/E,GAAG,EAA6C,CAClD,GCDa,KACX,IAAwD,EAAkB,MAInE,EAAwC;CAC7C;CACA,cAAA,CAAA;AACF,CAAC"}
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/reactRouter';\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/reactRouter';\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,IAAa,UAAoE,CAC/E,GAAG,EAA6C,CAClD,GCDa,KACX,IAAwD,EAAkB,MAInE,EAAwC;CAC7C;CACA,cAAA,CAAA;AACF,CAAC"}
@@ -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/models/reactRouter';
3
+ import { MyNonIndexRouteObject } from '@gen-epix/ui-client-common/models/reactRouter';
4
4
  type RoutePermission = CommonDbApiPermission | OmopDbApiPermission;
5
5
  export declare const createRoutes: (adminRoutes?: MyNonIndexRouteObject<RoutePermission>[]) => MyNonIndexRouteObject<RoutePermission>[];
6
6
  export {};
@@ -1,11 +1,11 @@
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 { ApiService as r } from "@gen-epix/ui/classes/services/ApiService";
4
- import { COMMON_QUERY_DEPENDENCIES as i } from "@gen-epix/ui/constants/query";
5
- import { QueryClientService as a } from "@gen-epix/ui/classes/services/QueryClientService";
6
- import { RouterService as o } from "@gen-epix/ui/classes/services/RouterService";
3
+ import { ApiService as r } from "@gen-epix/ui-client-common/classes/services/ApiService";
4
+ import { COMMON_QUERY_DEPENDENCIES as i } from "@gen-epix/ui-client-common/constants/query";
5
+ import { QueryClientService as a } from "@gen-epix/ui-client-common/classes/services/QueryClientService";
6
+ import { RouterService as o } from "@gen-epix/ui-client-common/classes/services/RouterService";
7
7
  import { OmopDbAbacApi as s, OmopDbAuthApi as c, OmopDbBaseAPI as l, OmopDbOrganizationApi as u, OmopDbSystemApi as d } from "@gen-epix/api-omopdb";
8
- import { setupUi as f } from "@gen-epix/ui/setup/setup";
8
+ import { setupUi as f } from "@gen-epix/ui-client-common/setup/setup";
9
9
  var p = { [{ FOO: "FOO" }.FOO]: [] }, m = () => {
10
10
  let m = e(), h = t(m);
11
11
  o.getInstance().initialize({
@@ -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/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/constants/query';\nimport type { MyNonIndexRouteObject } from '@gen-epix/ui/models/reactRouter';\nimport { ApiService } from '@gen-epix/ui/classes/services/ApiService';\nimport { COMMON_QUERY_DEPENDENCIES } from '@gen-epix/ui/constants/query';\nimport { QueryClientService } from '@gen-epix/ui/classes/services/QueryClientService';\nimport { RouterService } from '@gen-epix/ui/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 { setupUi } from '@gen-epix/ui/setup/setup';\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';\n\nexport const setupOmopDb = () => {\n const adminRoutes = createAdminRoutes();\n const routes = createRoutes(adminRoutes);\n\n RouterService.getInstance().initialize({\n adminRoutes: adminRoutes as MyNonIndexRouteObject[],\n homePageComponent: HomePage,\n routes: routes as MyNonIndexRouteObject[],\n });\n QueryClientService.getInstance<COMMON_QUERY_KEY & OMOPDB_QUERY_KEY>().initialize({\n queryKeyDependencies: [COMMON_QUERY_DEPENDENCIES, OMOPDB_QUERY_DEPENDENCIES],\n });\n ApiService.getInstance().initialize({\n abacApi: OmopDbAbacApi.getInstance(),\n authApi: OmopDbAuthApi.getInstance(),\n baseApi: OmopDbBaseAPI,\n organizationApi: OmopDbOrganizationApi.getInstance() as CommonDbOrganizationApi,\n systemApi: OmopDbSystemApi.getInstance(),\n });\n setupUi();\n};\n"],"mappings":";;;;;;;;AASA,IAAa,IAA+F,GACzG,EAPD,KAAK,MAOJ,EAAiB,MAAM,CAAC,EAC3B,GCaa,UAAoB;CAC/B,IAAM,IAAc,EAAkB,GAChC,IAAS,EAAa,CAAW;CAiBvC,AAfA,EAAc,YAAY,CAAC,CAAC,WAAW;EACxB;EACb,mBAAmB;EACX;CACV,CAAC,GACD,EAAmB,YAAiD,CAAC,CAAC,WAAW,EAC/E,sBAAsB,CAAC,GAA2B,CAAyB,EAC7E,CAAC,GACD,EAAW,YAAY,CAAC,CAAC,WAAW;EAClC,SAAS,EAAc,YAAY;EACnC,SAAS,EAAc,YAAY;EACnC,SAAS;EACT,iBAAiB,EAAsB,YAAY;EACnD,WAAW,EAAgB,YAAY;CACzC,CAAC,GACD,EAAQ;AACV"}
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/reactRouter';\nimport { ApiService } from '@gen-epix/ui-client-common/classes/services/ApiService';\nimport { COMMON_QUERY_DEPENDENCIES } from '@gen-epix/ui-client-common/constants/query';\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 { setupUi } from '@gen-epix/ui-client-common/setup/setup';\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';\n\nexport const setupOmopDb = () => {\n const adminRoutes = createAdminRoutes();\n const routes = createRoutes(adminRoutes);\n\n RouterService.getInstance().initialize({\n adminRoutes: adminRoutes as MyNonIndexRouteObject[],\n homePageComponent: HomePage,\n routes: routes as MyNonIndexRouteObject[],\n });\n QueryClientService.getInstance<COMMON_QUERY_KEY & OMOPDB_QUERY_KEY>().initialize({\n queryKeyDependencies: [COMMON_QUERY_DEPENDENCIES, OMOPDB_QUERY_DEPENDENCIES],\n });\n ApiService.getInstance().initialize({\n abacApi: OmopDbAbacApi.getInstance(),\n authApi: OmopDbAuthApi.getInstance(),\n baseApi: OmopDbBaseAPI,\n organizationApi: OmopDbOrganizationApi.getInstance() as CommonDbOrganizationApi,\n systemApi: OmopDbSystemApi.getInstance(),\n });\n setupUi();\n};\n"],"mappings":";;;;;;;;AASA,IAAa,IAA+F,GACzG,EAPD,KAAK,MAOJ,EAAiB,MAAM,CAAC,EAC3B,GCaa,UAAoB;CAC/B,IAAM,IAAc,EAAkB,GAChC,IAAS,EAAa,CAAW;CAiBvC,AAfA,EAAc,YAAY,CAAC,CAAC,WAAW;EACxB;EACb,mBAAmB;EACX;CACV,CAAC,GACD,EAAmB,YAAiD,CAAC,CAAC,WAAW,EAC/E,sBAAsB,CAAC,GAA2B,CAAyB,EAC7E,CAAC,GACD,EAAW,YAAY,CAAC,CAAC,WAAW;EAClC,SAAS,EAAc,YAAY;EACnC,SAAS,EAAc,YAAY;EACnC,SAAS;EACT,iBAAiB,EAAsB,YAAY;EACnD,WAAW,EAAgB,YAAY;CACzC,CAAC,GACD,EAAQ;AACV"}
@@ -1,10 +1,13 @@
1
- import { createDemoThemeOptions as e } from "@gen-epix/ui/theme/demoTheme";
1
+ import { createDemoThemeOptions as e } from "@gen-epix/ui-client-common/theme/demoTheme";
2
2
  import { createTheme as t } from "@mui/material";
3
3
  //#region src/theme/demoTheme/demoTheme.ts
4
- var n = (n) => t({
5
- ...e(n),
6
- "gen-epix-ui-omopdb": {}
7
- }), r = (e) => t(n(e));
4
+ var n = (n) => {
5
+ let r = {
6
+ ...e(n),
7
+ "gen-epix-ui-client-omopdb": {}
8
+ };
9
+ return t(r);
10
+ }, r = (e) => t(n(e));
8
11
  //#endregion
9
12
  export { r as createOmopDbDemoTheme, n as createOmopDbDemoThemeOptions };
10
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/theme/demoTheme/demoTheme.ts"],"sourcesContent":["import { createDemoThemeOptions } from '@gen-epix/ui/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-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,IAAa,KAAgC,MAOpC,EAAe;CALpB,GAAG,EAAuB,CAAW;CACrC,sBAAsB,CACtB;AAGoB,CAAY,GAGvB,KAAyB,MAC7B,EAAe,EAA6B,CAAW,CAAC"}
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,IAAa,KAAgC,MAA2C;CACtF,IAAM,IAA6B;EACjC,GAAG,EAAuB,CAAW;EACrC,6BAA6B,CAC7B;CACF;CAEA,OAAO,EAAe,CAAY;AACpC,GAEa,KAAyB,MAC7B,EAAe,EAA6B,CAAW,CAAC"}
@@ -1,5 +1,5 @@
1
- import { I18nService as e } from "@gen-epix/ui/classes/services/I18nService";
2
- import { StandardConfigUtil as t } from "@gen-epix/ui/utils/StandardConfigUtil";
1
+ import { I18nService as e } from "@gen-epix/ui-client-common/classes/services/I18nService";
2
+ import { StandardConfigUtil as t } from "@gen-epix/ui-client-common/utils/StandardConfigUtil";
3
3
  import { t as n } from "i18next";
4
4
  import { WindowService as r } from "@gen-epix/ui-core/classes/services/WindowService";
5
5
  //#region src/utils/OmopDbStandardConfigUtil/OmopDbStandardConfigUtil.ts
@@ -54,13 +54,8 @@ var i = class {
54
54
  }
55
55
  },
56
56
  getEnvironmentMessage: () => {
57
- let { location: { href: e } } = r.getInstance().window.document, { hostname: t } = new URL(e), n;
58
- switch (t) {
59
- default:
60
- n = "localhost";
61
- break;
62
- }
63
- return n;
57
+ let { location: { href: e } } = r.getInstance().window.document, { hostname: t } = new URL(e);
58
+ return "localhost";
64
59
  }
65
60
  };
66
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/utils/OmopDbStandardConfigUtil/OmopDbStandardConfigUtil.ts"],"sourcesContent":["import { I18nService } from '@gen-epix/ui/classes/services/I18nService';\nimport { StandardConfigUtil } from '@gen-epix/ui/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 I18nService.getInstance().emit('onUserLanguageChange', 'en');\n };\n\n const onDutchClick = () => {\n I18nService.getInstance().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":";;;;;AAOA,IAAa,IAAb,MAAsC;CACpC,OAAc,eAA4C;EACxD,IAAM,UAAuB;GAC3B,EAAY,YAAY,CAAC,CAAC,KAAK,wBAAwB,IAAI;EAC7D,GAEM,UAAqB;GACzB,EAAY,YAAY,CAAC,CAAC,KAAK,wBAAwB,IAAI;EAC7D;EA2EA,OAAO;GAxEL,GAAG,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,SAAS;KACX,GACA;MACE,OAAO,CAAC;MACR,SAAS;KACX,CACF;IACF;GACF,EACF;GACA,kBAAkB;GAElB,qBAAqB;IACnB,IAAM,EAAE,UAAU,EAAE,cAAW,EAAc,YAAY,CAAC,CAAC,OAAO,UAC5D,EAAE,gBAAa,IAAI,IAAI,CAAI;IACjC,QAAQ,GAAR;KACE,KAAK,aACH,OAAO;KACT,KAAK,aACH,OAAO;KACT,SACE,OAAO;IACX;GACF;GACA,6BAA6B;IAC3B,IAAM,EAAE,UAAU,EAAE,cAAW,EAAc,YAAY,CAAC,CAAC,OAAO,UAC5D,EAAE,gBAAa,IAAI,IAAI,CAAI,GAC7B;IACJ,QAAQ,GAAR;KAGE;MACE,IAAc;MACd;IACJ;IACA,OAAO;GACT;EAEK;CACT;AAEF"}
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 I18nService.getInstance().emit('onUserLanguageChange', 'en');\n };\n\n const onDutchClick = () => {\n I18nService.getInstance().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":";;;;;AAOA,IAAa,IAAb,MAAsC;CACpC,OAAc,eAA4C;EACxD,IAAM,UAAuB;GAC3B,EAAY,YAAY,CAAC,CAAC,KAAK,wBAAwB,IAAI;EAC7D,GAEM,UAAqB;GACzB,EAAY,YAAY,CAAC,CAAC,KAAK,wBAAwB,IAAI;EAC7D;EA2EA,OAAO;GAxEL,GAAG,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,SAAS;KACX,GACA;MACE,OAAO,CAAC;MACR,SAAS;KACX,CACF;IACF;GACF,EACF;GACA,kBAAkB;GAElB,qBAAqB;IACnB,IAAM,EAAE,UAAU,EAAE,cAAW,EAAc,YAAY,CAAC,CAAC,OAAO,UAC5D,EAAE,gBAAa,IAAI,IAAI,CAAI;IACjC,QAAQ,GAAR;KACE,KAAK,aACH,OAAO;KACT,KAAK,aACH,OAAO;KACT,SACE,OAAO;IACX;GACF;GACA,6BAA6B;IAC3B,IAAM,EAAE,UAAU,EAAE,cAAW,EAAc,YAAY,CAAC,CAAC,OAAO,UAC5D,EAAE,gBAAa,IAAI,IAAI,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.0.0",
3
+ "version": "4.0.2",
4
4
  "license": "EUPL-1.2",
5
5
  "repository": {
6
6
  "type": "git",
@@ -59,10 +59,10 @@
59
59
  "@emotion/styled": "*",
60
60
  "@gen-epix/api-commondb": "^4.0.0",
61
61
  "@gen-epix/api-omopdb": "^4.0.0",
62
- "@gen-epix/ui-client-common": "^4.0.0",
63
- "@gen-epix/ui-core-components": "^4.0.0",
64
- "@gen-epix/ui-core-form": "^4.0.0",
65
- "@gen-epix/ui-core": "^3.0.0",
62
+ "@gen-epix/ui-client-common": "^4.0.2",
63
+ "@gen-epix/ui-core-components": "^4.0.2",
64
+ "@gen-epix/ui-core-form": "^4.0.2",
65
+ "@gen-epix/ui-core": "^3.0.2",
66
66
  "@mui/icons-material": "*",
67
67
  "@mui/material": "*",
68
68
  "@mui/styled-engine": "*",
@@ -84,9 +84,9 @@
84
84
  "@gen-epix/api-omopdb": "^4.0.0",
85
85
  "@gen-epix/eslint-config": "0.5.0",
86
86
  "@gen-epix/translation-util": "0.2.0",
87
- "@gen-epix/ui-client-common": "^4.0.0",
88
- "@gen-epix/ui-core-components": "^4.0.0",
89
- "@gen-epix/ui-core-form": "^4.0.0",
87
+ "@gen-epix/ui-client-common": "^4.0.2",
88
+ "@gen-epix/ui-core-components": "^4.0.2",
89
+ "@gen-epix/ui-core-form": "^4.0.2",
90
90
  "@microsoft/api-extractor": "7.59.0",
91
91
  "@mui/icons-material": "9.4.0",
92
92
  "@mui/material": "9.4.0",