@uxland/primary-shell 4.3.1 → 5.1.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/index.js +13397 -12875
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1748 -1506
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/components/primaria-shell/primaria-shell.d.ts +4 -0
- package/dist/primary/shell/src/UI/components/quick-actions-menu/quick-actions-menu.d.ts +1 -0
- package/dist/primary/shell/src/UI/shared-components/index.d.ts +0 -1
- package/dist/primary/shell/src/api/api.d.ts +4 -2
- package/dist/primary/shell/src/api/http-client/http-client.d.ts +7 -1
- package/dist/primary/shell/src/api/interaction-service/confirmation-message.d.ts +3 -0
- package/dist/primary/shell/src/api/interaction-service/index.d.ts +1 -0
- package/dist/primary/shell/src/api/interaction-service/interaction-service-impl.d.ts +7 -0
- package/dist/primary/shell/src/api/interaction-service/interaction-service.d.ts +32 -0
- package/dist/primary/shell/src/api/notification-service/notification-service.d.ts +6 -0
- package/dist/primary/shell/src/api/notification-service/notification.service-impl.d.ts +9 -0
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-list/component.d.ts +2 -4
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-manager.d.ts +17 -1
- package/dist/primary/shell/src/api/region-manager/region-manager.d.ts +1 -0
- package/dist/primary/shell/src/events.d.ts +2 -0
- package/dist/primary/shell/src/features/bootstrapper.d.ts +1 -1
- package/dist/primary/shell/src/index.d.ts +1 -2
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/export-to-pdf/export-pdf-modal/export-pdf-modal.d.ts +1 -5
- package/dist/primary/shell/src/internal-plugins/activity-history/localization.d.ts +0 -1
- package/dist/primary/shell/src/locales.d.ts +4 -0
- package/dist/style.css +1 -1
- package/package.json +5 -2
- package/src/UI/components/clinical-monitoring/styles.css +4 -2
- package/src/UI/components/primaria-shell/primaria-shell.ts +33 -7
- package/src/UI/components/primaria-shell/styles.css +15 -2
- package/src/UI/components/primaria-shell/template.ts +7 -3
- package/src/UI/components/quick-actions-menu/quick-actions-menu.ts +13 -3
- package/src/UI/components/shell-header/template.ts +1 -1
- package/src/UI/shared-components/index.ts +0 -1
- package/src/api/api.ts +12 -9
- package/src/api/http-client/http-client.test.ts +188 -76
- package/src/api/http-client/http-client.ts +62 -11
- package/src/api/interaction-service/confirmation-message.tsx +5 -0
- package/src/api/interaction-service/index.ts +1 -0
- package/src/api/interaction-service/interaction-service-impl.tsx +203 -0
- package/src/api/interaction-service/interaction-service.ts +46 -0
- package/src/api/interaction-service/modal-styles.css +69 -0
- package/src/api/notification-service/notification-service.ts +6 -0
- package/src/api/notification-service/notification.service-impl.ts +45 -0
- package/src/api/plugin-busy-manager/plugin-busy-list/component.ts +3 -4
- package/src/api/plugin-busy-manager/plugin-busy-list/template.ts +1 -1
- package/src/api/plugin-busy-manager/plugin-busy-manager.test.ts +93 -31
- package/src/api/plugin-busy-manager/plugin-busy-manager.ts +44 -1
- package/src/api/region-manager/region-manager.ts +5 -0
- package/src/disposer.ts +1 -1
- package/src/events.ts +2 -0
- package/src/features/bootstrapper.ts +6 -3
- package/src/features/exit/handler.ts +7 -12
- package/src/features/get-user-info/handler.ts +3 -4
- package/src/index.ts +1 -2
- package/src/internal-plugins/activity-history/activity-history-item/export-to-pdf/export-pdf-modal/export-pdf-modal.ts +1 -10
- package/src/internal-plugins/activity-history/activity-history-item/export-to-pdf/export-pdf-modal/template.ts +0 -7
- package/src/internal-plugins/activity-history/activity-history-item/export-to-pdf/handler.ts +8 -8
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/main-view/template.ts +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/search/handler.ts +5 -3
- package/src/internal-plugins/activity-history/localization.ts +0 -1
- package/src/locales.ts +5 -0
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/components/dialog-component.d.ts +0 -19
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/components/notifier-component.d.ts +0 -12
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/confirm-mixin.d.ts +0 -11
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/confirm.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/index.d.ts +0 -5
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/notify.d.ts +0 -4
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/open-dialog.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/shared.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/typings.d.ts +0 -40
- package/dist/primary/shell/src/api/interaction-manager/interaction.d.ts +0 -9
- package/src/UI/shared-components/primaria-interaction/components/dialog-component-styles.css +0 -104
- package/src/UI/shared-components/primaria-interaction/components/dialog-component.ts +0 -138
- package/src/UI/shared-components/primaria-interaction/components/notifier-component-styles.css +0 -136
- package/src/UI/shared-components/primaria-interaction/components/notifier-component.ts +0 -69
- package/src/UI/shared-components/primaria-interaction/confirm-mixin.ts +0 -35
- package/src/UI/shared-components/primaria-interaction/confirm.ts +0 -9
- package/src/UI/shared-components/primaria-interaction/index.ts +0 -5
- package/src/UI/shared-components/primaria-interaction/notify.ts +0 -153
- package/src/UI/shared-components/primaria-interaction/open-dialog.ts +0 -8
- package/src/UI/shared-components/primaria-interaction/shared.ts +0 -29
- package/src/UI/shared-components/primaria-interaction/typings.ts +0 -46
- package/src/api/interaction-manager/interaction.ts +0 -26
|
@@ -18,9 +18,13 @@ export declare class PrimariaShell extends PrimariaShell_base {
|
|
|
18
18
|
error: {
|
|
19
19
|
message: string;
|
|
20
20
|
};
|
|
21
|
+
quickActionBusy: boolean;
|
|
21
22
|
_toggleSidebar(): void;
|
|
22
23
|
private subscriptions;
|
|
23
24
|
_subscribeEvents(): void;
|
|
25
|
+
_handleError(error: {
|
|
26
|
+
message: string;
|
|
27
|
+
}): void;
|
|
24
28
|
_unsubscribeEvents(): void;
|
|
25
29
|
}
|
|
26
30
|
export {};
|
|
@@ -3,14 +3,16 @@ import { PrimariaRegionManager } from './region-manager/region-manager';
|
|
|
3
3
|
import { PrimariaBroker } from './broker/primaria-broker';
|
|
4
4
|
import { PrimariaGlobalStateManager } from './global-state/global-state';
|
|
5
5
|
import { HttpClient } from './http-client/http-client';
|
|
6
|
-
import { PrimariaInteractionManager } from './interaction-manager/interaction';
|
|
7
6
|
import { TokenManager } from './token-manager/token-manager';
|
|
8
7
|
import { EcapEventManager } from './ecap-event-manager/ecap-event-manager';
|
|
9
8
|
import { PluginBusyManager } from './plugin-busy-manager/plugin-busy-manager';
|
|
9
|
+
import { PrimariaInteractionService } from './interaction-service';
|
|
10
|
+
import { PrimariaNotificationService } from './notification-service/notification-service';
|
|
10
11
|
|
|
11
12
|
export interface PrimariaApi extends HarmonixApi {
|
|
12
13
|
httpClient: HttpClient;
|
|
13
|
-
|
|
14
|
+
interactionService: PrimariaInteractionService;
|
|
15
|
+
notificationService: PrimariaNotificationService;
|
|
14
16
|
broker: PrimariaBroker;
|
|
15
17
|
regionManager: PrimariaRegionManager;
|
|
16
18
|
globalStateManager: PrimariaGlobalStateManager;
|
|
@@ -2,7 +2,13 @@ import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
|
2
2
|
import { TokenManager } from '../token-manager/token-manager';
|
|
3
3
|
import { PrimariaBroker } from '../broker/primaria-broker';
|
|
4
4
|
|
|
5
|
-
export declare
|
|
5
|
+
export declare class MissingMpidHeaderError extends Error {
|
|
6
|
+
constructor(message: string);
|
|
7
|
+
}
|
|
8
|
+
export declare class InvalidMpidHeaderError extends Error {
|
|
9
|
+
constructor(message: string);
|
|
10
|
+
}
|
|
11
|
+
export declare const createAxiosInstance: (tokenManager: TokenManager, broker: PrimariaBroker, validateMpid?: boolean) => import('axios').AxiosInstance;
|
|
6
12
|
export interface HttpClient {
|
|
7
13
|
request<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
|
|
8
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './interaction-service';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConfirmationContentProps, ConfirmationOptions, ConfirmationResult, ConfirmationWithResultContentProps, PrimariaInteractionService } from './interaction-service';
|
|
2
|
+
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
export declare class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
5
|
+
confirm<TData = undefined, TResult = undefined>(data: TData | undefined, DialogComponent: React.ComponentType<ConfirmationContentProps<TData, TResult> | ConfirmationWithResultContentProps<TData, TResult>> | (new () => HTMLElement), options?: ConfirmationOptions | undefined): Promise<ConfirmationResult<TResult | undefined>>;
|
|
6
|
+
confirmMessage(message: string, options?: ConfirmationOptions | undefined): Promise<ConfirmationResult>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface ConfirmationResult<T = undefined> {
|
|
3
|
+
confirmed: boolean;
|
|
4
|
+
result: T | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface ConfirmationContentProps<TData, TResult = undefined> {
|
|
7
|
+
data: TData | undefined;
|
|
8
|
+
setResult: (result: TResult) => void;
|
|
9
|
+
setIsValid: (isValid: boolean) => void;
|
|
10
|
+
confirm: () => void;
|
|
11
|
+
cancel: () => void;
|
|
12
|
+
}
|
|
13
|
+
export interface ConfirmationWithResultContentProps<TData, TResult = undefined> {
|
|
14
|
+
data: TData | undefined;
|
|
15
|
+
confirmResult: (result: TResult) => void;
|
|
16
|
+
cancel: () => void;
|
|
17
|
+
}
|
|
18
|
+
export interface ConfirmationOptions {
|
|
19
|
+
title?: string | undefined;
|
|
20
|
+
showConfirmButton?: boolean | undefined;
|
|
21
|
+
showCancelButton?: boolean | undefined;
|
|
22
|
+
confirmButtonText?: string | undefined;
|
|
23
|
+
cancelButtonText?: string | undefined;
|
|
24
|
+
showCloseButton?: boolean | undefined;
|
|
25
|
+
fullCustomization?: boolean | undefined;
|
|
26
|
+
closeOnOutsideClick?: boolean | undefined;
|
|
27
|
+
state?: "success" | "info" | "alert" | "error";
|
|
28
|
+
}
|
|
29
|
+
export declare abstract class PrimariaInteractionService {
|
|
30
|
+
abstract confirm<TData = undefined, TResult = undefined>(data: TData | undefined, dialogComponent: React.ComponentType<ConfirmationContentProps<TData, TResult> | ConfirmationWithResultContentProps<TData, TResult>> | (new () => HTMLElement), options?: ConfirmationOptions | undefined): Promise<ConfirmationResult<TResult | undefined>>;
|
|
31
|
+
abstract confirmMessage(message: string, options?: ConfirmationOptions | undefined): Promise<ConfirmationResult>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PrimariaNotificationService } from './notification-service';
|
|
2
|
+
|
|
3
|
+
export declare class PrimariaNotificationServiceImpl extends PrimariaNotificationService {
|
|
4
|
+
private notify;
|
|
5
|
+
info(message: string, duration?: number): void;
|
|
6
|
+
warning(message: string, duration?: number): void;
|
|
7
|
+
error(message: string, duration?: number): void;
|
|
8
|
+
success(message: string, duration?: number): void;
|
|
9
|
+
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { PluginBusyTask } from '../plugin-busy-manager';
|
|
3
3
|
|
|
4
|
-
declare
|
|
5
|
-
export declare class PluginBusyList extends PluginBusyList_base {
|
|
4
|
+
export declare class PluginBusyList extends LitElement {
|
|
6
5
|
static styles: import('lit').CSSResult;
|
|
7
6
|
render(): import('lit').TemplateResult<1>;
|
|
8
|
-
|
|
7
|
+
data: {
|
|
9
8
|
busyTasks: PluginBusyTask[];
|
|
10
9
|
};
|
|
11
10
|
}
|
|
12
|
-
export {};
|
|
@@ -1,19 +1,35 @@
|
|
|
1
|
+
import { PrimariaBroker } from '../broker/primaria-broker';
|
|
2
|
+
|
|
1
3
|
export interface PluginBusyTask {
|
|
2
4
|
taskId: string;
|
|
3
5
|
taskDescription: string;
|
|
4
6
|
}
|
|
7
|
+
export interface QuickActionBusyTask {
|
|
8
|
+
taskId: string;
|
|
9
|
+
}
|
|
5
10
|
export declare abstract class PluginBusyManager {
|
|
6
11
|
abstract addBusyPluginTask(busyTask: PluginBusyTask): void;
|
|
7
|
-
abstract removeBusyPluginTask(taskId: string):
|
|
12
|
+
abstract removeBusyPluginTask(taskId: string): void;
|
|
13
|
+
abstract addBusyQuickActionTask(busyTask: QuickActionBusyTask): void;
|
|
14
|
+
abstract removeBusyQuickActionTask(taskId: string): void;
|
|
8
15
|
abstract clearAllBusyPlugins(): void;
|
|
9
16
|
abstract isAnyPluginBusy(): boolean;
|
|
17
|
+
abstract isAnyQuickActionBusy(): boolean;
|
|
10
18
|
abstract getBusyPluginTasks(): PluginBusyTask[];
|
|
11
19
|
}
|
|
12
20
|
export declare class PluginBusyManagerImpl implements PluginBusyManager {
|
|
21
|
+
broker: PrimariaBroker;
|
|
22
|
+
constructor(broker: PrimariaBroker);
|
|
13
23
|
private busyPluginTasks;
|
|
24
|
+
private busyQuickActionTasks;
|
|
14
25
|
addBusyPluginTask(busyTask: PluginBusyTask): void;
|
|
26
|
+
addBusyQuickActionTask(busyTask: QuickActionBusyTask): void;
|
|
15
27
|
removeBusyPluginTask(taskId: string): any;
|
|
28
|
+
removeBusyQuickActionTask(taskId: string): any;
|
|
16
29
|
isAnyPluginBusy(): boolean;
|
|
30
|
+
isAnyQuickActionBusy(): boolean;
|
|
17
31
|
clearAllBusyPlugins(): void;
|
|
32
|
+
clearAllBusyQuickActions(): void;
|
|
18
33
|
getBusyPluginTasks(): PluginBusyTask[];
|
|
34
|
+
private emitQuickActionBusyChanged;
|
|
19
35
|
}
|
|
@@ -8,6 +8,7 @@ export interface PrimariaRegionManager extends HarmonixRegionManager {
|
|
|
8
8
|
registerMainView(view: HarmonixViewDefinition): Promise<void>;
|
|
9
9
|
activateMainView(viewId: string): Promise<void>;
|
|
10
10
|
getCurrentMainViewActive(): string | undefined;
|
|
11
|
+
_destroy(): void;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Creates a proxy for the region manager with the given plugin info and region manager instance.
|
|
@@ -7,10 +7,9 @@ export * from './api/api';
|
|
|
7
7
|
export * from './api/broker/primaria-broker';
|
|
8
8
|
export * from './UI/index';
|
|
9
9
|
export { PrimariaNavItem } from './UI/shared-components/primaria-nav-item/primaria-nav-item';
|
|
10
|
-
export { confirmMixin } from './UI/shared-components/primaria-interaction';
|
|
11
|
-
export type { CustomConfirmOptions } from './UI/shared-components/primaria-interaction';
|
|
12
10
|
export { EcapEventManager, createEcapEventManager, } from './api/ecap-event-manager/ecap-event-manager';
|
|
13
11
|
export type { IEcapEvent } from './api/ecap-event-manager/typings';
|
|
14
12
|
export * from './internal-plugins';
|
|
15
13
|
export * from '@uxland/harmonix-adapters';
|
|
16
14
|
export * from './events';
|
|
15
|
+
export * from './api/interaction-service';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
|
|
3
|
-
declare
|
|
4
|
-
export declare class ExportPdfModal extends ExportPdfModal_base {
|
|
3
|
+
export declare class ExportPdfModal extends LitElement {
|
|
5
4
|
render(): import('lit').TemplateResult<1>;
|
|
6
5
|
static get styles(): import('lit').CSSResult;
|
|
7
6
|
selectedRadioOption: string;
|
|
@@ -12,8 +11,5 @@ export declare class ExportPdfModal extends ExportPdfModal_base {
|
|
|
12
11
|
label: string;
|
|
13
12
|
value: string;
|
|
14
13
|
}[];
|
|
15
|
-
_accept(): void;
|
|
16
|
-
_cancel(): void;
|
|
17
14
|
handleTest(): void;
|
|
18
15
|
}
|
|
19
|
-
export {};
|