@uxland/primary-shell 2.0.1-rc.2 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UI/components/patient-header/patient-header.d.ts +9 -0
- package/dist/UI/components/patient-header/template.d.ts +3 -0
- package/dist/UI/components/professional-header/professional-header.d.ts +9 -0
- package/dist/UI/components/professional-header/template.d.ts +3 -0
- package/dist/api/api.d.ts +2 -6
- package/dist/api/http-client/http-client.d.ts +6 -0
- package/dist/features/bootstrapper.d.ts +4 -0
- package/dist/features/get-patient-info/backend-adapter.d.ts +9 -0
- package/dist/features/get-patient-info/bootstrapper.d.ts +2 -0
- package/dist/features/get-patient-info/handler.d.ts +11 -0
- package/dist/features/get-patient-info/model.d.ts +7 -0
- package/dist/features/get-patient-info/request.d.ts +5 -0
- package/dist/features/get-user-info/backend-adapter.d.ts +9 -0
- package/dist/features/get-user-info/bootstrapper.d.ts +2 -0
- package/dist/features/get-user-info/handler.d.ts +11 -0
- package/dist/features/get-user-info/model.d.ts +8 -0
- package/dist/features/get-user-info/request.d.ts +5 -0
- package/dist/features/utils.d.ts +7 -0
- package/dist/index.js +12500 -8992
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +386 -345
- package/dist/index.umd.cjs.map +1 -1
- package/dist/infrastructure/ioc/container.d.ts +7 -0
- package/dist/infrastructure/ioc/types.d.ts +5 -0
- package/dist/plugin.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +18 -11
- package/src/UI/components/index.ts +2 -0
- package/src/UI/components/patient-header/patient-header.ts +28 -0
- package/src/UI/components/patient-header/styles.scss +25 -0
- package/src/UI/components/patient-header/template.ts +18 -0
- package/src/UI/components/primaria-shell/template.ts +4 -0
- package/src/UI/components/professional-header/professional-header.ts +27 -0
- package/src/UI/components/professional-header/styles.scss +25 -0
- package/src/UI/components/professional-header/template.ts +18 -0
- package/src/UI/fonts/fonts.css +48 -0
- package/src/UI/fonts/open-sans-v40-latin-300.woff2 +0 -0
- package/src/UI/fonts/open-sans-v40-latin-500.woff2 +0 -0
- package/src/UI/fonts/open-sans-v40-latin-600.woff2 +0 -0
- package/src/UI/fonts/open-sans-v40-latin-700.woff2 +0 -0
- package/src/UI/fonts/open-sans-v40-latin-800.woff2 +0 -0
- package/src/UI/fonts/open-sans-v40-latin-regular.woff2 +0 -0
- package/src/UI/shared-components/primaria-interaction/components/notifier-component.ts +2 -2
- package/src/UI/styles/index.css +18 -0
- package/src/api/api.ts +3 -13
- package/src/api/broker/factory.test.ts +8 -3
- package/src/api/broker/factory.ts +3 -0
- package/src/api/global-state/global-state.test.ts +1 -1
- package/src/api/global-state/global-state.ts +1 -1
- package/src/api/http-client/http-client.ts +14 -0
- package/src/features/bootstrapper.ts +16 -0
- package/src/features/get-patient-info/backend-adapter.ts +24 -0
- package/src/features/get-patient-info/bootstrapper.ts +17 -0
- package/src/features/get-patient-info/handler.ts +25 -0
- package/src/features/get-patient-info/model.ts +7 -0
- package/src/features/get-patient-info/request.ts +4 -0
- package/src/features/get-user-info/backend-adapter.ts +24 -0
- package/src/features/get-user-info/bootstrapper.ts +17 -0
- package/src/features/get-user-info/handler.ts +26 -0
- package/src/features/get-user-info/model.ts +8 -0
- package/src/features/get-user-info/request.ts +4 -0
- package/src/features/utils.ts +20 -0
- package/src/infrastructure/ioc/container.ts +14 -0
- package/src/infrastructure/ioc/types.ts +5 -0
- package/src/initializer.ts +12 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { IPatientInfo } from 'primary/shell/src/features/get-patient-info/model';
|
|
3
|
+
|
|
4
|
+
export declare class PatientHeader extends LitElement {
|
|
5
|
+
render(): import('lit').TemplateResult<1>;
|
|
6
|
+
static styles: import('lit').CSSResult;
|
|
7
|
+
patient: IPatientInfo;
|
|
8
|
+
connectedCallback(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { IUserInfo } from 'primary/shell/src/features/get-user-info/model';
|
|
3
|
+
|
|
4
|
+
export declare class ProfessionalHeader extends LitElement {
|
|
5
|
+
render(): import('lit').TemplateResult<1>;
|
|
6
|
+
static styles: import('lit').CSSResult;
|
|
7
|
+
professional: IUserInfo;
|
|
8
|
+
connectedCallback(): void;
|
|
9
|
+
}
|
package/dist/api/api.d.ts
CHANGED
|
@@ -3,13 +3,10 @@ import { PrimariaRegionManager } from '../region-manager';
|
|
|
3
3
|
import { PrimariaInteractionManager } from './interaction-manager/interaction';
|
|
4
4
|
import { PrimariaGlobalStateManager } from './global-state/global-state';
|
|
5
5
|
import { PrimariaBroker } from './broker/primaria-broker';
|
|
6
|
+
import { HttpClient } from './http-client/http-client';
|
|
6
7
|
|
|
7
|
-
interface PrimariaHttpClient {
|
|
8
|
-
get(url: string): Promise<any>;
|
|
9
|
-
post(url: string, data: any): Promise<any>;
|
|
10
|
-
}
|
|
11
8
|
export interface PrimariaApi extends HarmonixApi {
|
|
12
|
-
httpClient:
|
|
9
|
+
httpClient: HttpClient;
|
|
13
10
|
interactionManager: PrimariaInteractionManager;
|
|
14
11
|
broker: PrimariaBroker;
|
|
15
12
|
regionManager: PrimariaRegionManager;
|
|
@@ -24,4 +21,3 @@ export declare const PrimariaRegionHost: any;
|
|
|
24
21
|
*/
|
|
25
22
|
export declare const primariaApiFactory: ApiFactory<PrimariaApi>;
|
|
26
23
|
export declare const shellApi: PrimariaApi;
|
|
27
|
-
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IPatientInfo } from './model';
|
|
2
|
+
|
|
3
|
+
export declare abstract class PatientInfoBackendAdapter {
|
|
4
|
+
abstract getPatientInfo(): Promise<IPatientInfo>;
|
|
5
|
+
}
|
|
6
|
+
export declare class GetPatientInfoBackendAdapter implements PatientInfoBackendAdapter {
|
|
7
|
+
token: string;
|
|
8
|
+
getPatientInfo(): Promise<IPatientInfo>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PrimariaApi } from '../..';
|
|
2
|
+
import { PatientInfoBackendAdapter } from './backend-adapter';
|
|
3
|
+
import { GetPatientInfo } from './request';
|
|
4
|
+
import { IPatientInfo } from './model';
|
|
5
|
+
|
|
6
|
+
export declare class GetPatientInfoHandler {
|
|
7
|
+
private api;
|
|
8
|
+
private backendAdapter;
|
|
9
|
+
constructor(api: PrimariaApi, backendAdapter: PatientInfoBackendAdapter);
|
|
10
|
+
handle(message: GetPatientInfo): Promise<IPatientInfo | undefined>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IUserInfo } from './model';
|
|
2
|
+
|
|
3
|
+
export declare abstract class UserInfoBackendAdapter {
|
|
4
|
+
abstract getUserInfo(): Promise<IUserInfo>;
|
|
5
|
+
}
|
|
6
|
+
export declare class GetUserInfoBackendAdapter implements UserInfoBackendAdapter {
|
|
7
|
+
token: string;
|
|
8
|
+
getUserInfo(): Promise<IUserInfo>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PrimariaApi } from '../..';
|
|
2
|
+
import { GetUserInfo } from './request';
|
|
3
|
+
import { IUserInfo } from './model';
|
|
4
|
+
import { UserInfoBackendAdapter } from './backend-adapter';
|
|
5
|
+
|
|
6
|
+
export declare class GetUserInfoHandler {
|
|
7
|
+
private api;
|
|
8
|
+
private backendAdapter;
|
|
9
|
+
constructor(api: PrimariaApi, backendAdapter: UserInfoBackendAdapter);
|
|
10
|
+
handle(message: GetUserInfo): Promise<IUserInfo | undefined>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Container, interfaces } from 'inversify';
|
|
2
|
+
import { IRequestClass } from '..';
|
|
3
|
+
import { PrimariaApi } from '../api/api';
|
|
4
|
+
|
|
5
|
+
import Newable = interfaces.Newable;
|
|
6
|
+
export declare const registerRequest: (api: PrimariaApi, container: Container) => (command: IRequestClass<any>, handler: Newable<any>) => void;
|
|
7
|
+
export declare const unregisterRequest: (container: Container) => (handler: Newable<any>) => void;
|