@uxland/primary-shell 3.4.1 → 3.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/index.js +11579 -13387
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +795 -1064
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/components/primaria-error-view/component.d.ts +9 -0
- package/dist/primary/shell/src/UI/components/primaria-error-view/template.d.ts +3 -0
- package/dist/primary/shell/src/UI/components/primaria-shell/constants.d.ts +4 -0
- package/dist/primary/shell/src/UI/components/primaria-shell/primaria-shell.d.ts +10 -0
- package/dist/primary/shell/src/UI/{shared-components/primaria-menu/primaria-menu.d.ts → components/quick-actions-menu/quick-actions-menu.d.ts} +1 -1
- package/dist/primary/shell/src/UI/components/quick-actions-menu/template.d.ts +3 -0
- package/dist/primary/shell/src/UI/shared-components/primaria-nav-item/template.d.ts +3 -0
- package/dist/primary/shell/src/UI/shared-components/primaria-nav-tree-menu/primaria-nav-tree-menu.d.ts +13 -0
- package/dist/primary/shell/src/UI/shared-components/primaria-nav-tree-menu/template.d.ts +3 -0
- package/dist/primary/shell/src/UI/shared-components/typings.d.ts +16 -0
- package/dist/primary/shell/src/api/broker/primaria-broker.d.ts +1 -0
- package/dist/primary/shell/src/api/region-manager/region-manager.d.ts +3 -2
- package/dist/primary/shell/src/bootstrapper.d.ts +2 -0
- package/dist/primary/shell/src/constants.d.ts +1 -0
- package/dist/primary/shell/src/disposer.d.ts +2 -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/features/utils.d.ts +3 -2
- package/dist/primary/shell/src/{plugin.d.ts → handle-plugins.d.ts} +2 -1
- package/dist/primary/shell/src/handle-views.d.ts +2 -0
- package/dist/primary/shell/src/index.d.ts +5 -3
- package/dist/primary/shell/src/{UI/shared-components/dss-container/dss-container.d.ts → internal-plugins/activity-history/components/activity-history/activity-history-search-header/activity-history-search-header.d.ts} +2 -2
- package/dist/primary/shell/src/internal-plugins/activity-history/components/activity-history/activity-history-search-header/template.d.ts +3 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/components/activity-history/activity-history-timeline/activity-history-timeline.d.ts +6 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/components/activity-history/activity-history.d.ts +4 -3
- package/dist/primary/shell/src/internal-plugins/activity-history/constants.d.ts +3 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/domain/is-valid-history-item/is-valid-history-item.d.ts +1 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/features/search-items/handler.d.ts +3 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/localization.d.ts +2 -0
- package/dist/primary/shell/src/locales.d.ts +14 -3
- package/dist/style.css +1 -1
- package/package.json +2 -3
- package/src/UI/components/index.ts +1 -0
- package/src/UI/components/primaria-error-view/component.ts +18 -0
- package/src/UI/components/primaria-error-view/styles.css +27 -0
- package/src/UI/components/primaria-error-view/template.ts +12 -0
- package/src/UI/components/primaria-shell/constants.ts +4 -0
- package/src/UI/components/primaria-shell/primaria-shell.ts +38 -1
- package/src/UI/components/primaria-shell/styles.css +24 -54
- package/src/UI/components/primaria-shell/template.ts +43 -50
- package/src/UI/{shared-components/primaria-menu/primaria-menu.ts → components/quick-actions-menu/quick-actions-menu.ts} +3 -3
- package/src/UI/components/quick-actions-menu/template.ts +10 -0
- package/src/UI/images/not-found.svg +9 -0
- package/src/UI/shared-components/index.ts +1 -3
- package/src/UI/shared-components/primaria-nav-item/primaria-nav-item.ts +54 -0
- package/src/UI/shared-components/{primaria-menu-item → primaria-nav-item}/styles.css +4 -0
- package/src/UI/shared-components/primaria-nav-item/template.ts +27 -0
- package/src/UI/shared-components/primaria-nav-tree-menu/primaria-nav-tree-menu.ts +41 -0
- package/src/UI/shared-components/primaria-nav-tree-menu/styles.css +11 -0
- package/src/UI/shared-components/primaria-nav-tree-menu/template.ts +30 -0
- package/src/UI/shared-components/typings.ts +17 -0
- package/src/api/api.ts +1 -1
- package/src/api/broker/factory.ts +29 -12
- package/src/api/broker/primaria-broker.ts +2 -0
- package/src/api/ecap-event-manager/ecap-event-manager.ts +1 -1
- package/src/api/region-manager/region-manager.ts +12 -2
- package/src/api/token-manager/token-manager.test.ts +1 -1
- package/src/bootstrapper.ts +16 -0
- package/src/constants.ts +1 -0
- package/src/disposer.ts +10 -0
- package/src/events.ts +2 -0
- package/src/features/bootstrapper.ts +4 -1
- package/src/features/get-user-info/bootstrapper.ts +6 -3
- package/src/features/utils.ts +7 -5
- package/src/{plugin.ts → handle-plugins.ts} +8 -3
- package/src/handle-views.ts +284 -0
- package/src/index.ts +5 -3
- package/src/internal-plugins/activity-history/components/activity-history/activity-history-search-header/activity-history-search-header.ts +20 -0
- package/src/internal-plugins/activity-history/components/activity-history/activity-history-search-header/styles.css +14 -0
- package/src/internal-plugins/activity-history/components/activity-history/activity-history-search-header/template.ts +8 -0
- package/src/internal-plugins/activity-history/components/activity-history/activity-history-timeline/activity-history-timeline.ts +27 -1
- package/src/internal-plugins/activity-history/components/activity-history/activity-history-timeline/styles.css +21 -2
- package/src/internal-plugins/activity-history/components/activity-history/activity-history-timeline/template.ts +38 -19
- package/src/internal-plugins/activity-history/components/activity-history/activity-history.ts +17 -26
- package/src/internal-plugins/activity-history/components/activity-history/styles.css +2 -24
- package/src/internal-plugins/activity-history/components/activity-history/template.ts +37 -69
- package/src/internal-plugins/activity-history/constants.ts +3 -0
- package/src/internal-plugins/activity-history/domain/filter-by-search-string/filter-by-search-string.ts +6 -1
- package/src/internal-plugins/activity-history/domain/is-valid-history-item/is-valid-history-item.ts +19 -5
- package/src/internal-plugins/activity-history/features/add-history-item/bootstrapper.ts +5 -2
- package/src/internal-plugins/activity-history/features/add-history-items/bootstrapper.ts +5 -2
- package/src/internal-plugins/activity-history/features/export-to-pdf/bootstrapper.ts +5 -2
- package/src/internal-plugins/activity-history/features/inject-async-history-items/bootstrapper.ts +5 -2
- package/src/internal-plugins/activity-history/features/inject-async-history-items/handler.ts +3 -3
- package/src/internal-plugins/activity-history/features/search-items/bootstrapper.ts +5 -2
- package/src/internal-plugins/activity-history/features/search-items/handler.ts +9 -1
- package/src/internal-plugins/activity-history/features/update-history-item/bootstrapper.ts +5 -2
- package/src/internal-plugins/activity-history/localization.ts +2 -0
- package/src/locales.ts +25 -5
- package/dist/primary/shell/src/UI/shared-components/primaria-menu/template.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-menu-item/primaria-menu-item.d.ts +0 -15
- package/dist/primary/shell/src/UI/shared-components/primaria-menu-item/template.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-nav-menu/primaria-nav-menu.d.ts +0 -26
- package/dist/primary/shell/src/UI/shared-components/primaria-nav-menu/template.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-wrapper-menu/primaria-wrapper-menu.d.ts +0 -19
- package/dist/primary/shell/src/UI/shared-components/primaria-wrapper-menu/template.d.ts +0 -3
- package/dist/primary/shell/src/initializer.d.ts +0 -1
- package/src/UI/shared-components/dss-container/dss-container.ts +0 -32
- package/src/UI/shared-components/dss-container/styles.css +0 -23
- package/src/UI/shared-components/primaria-menu/template.ts +0 -9
- package/src/UI/shared-components/primaria-menu-item/primaria-menu-item.ts +0 -51
- package/src/UI/shared-components/primaria-menu-item/template.ts +0 -11
- package/src/UI/shared-components/primaria-nav-menu/primaria-nav-menu.ts +0 -66
- package/src/UI/shared-components/primaria-nav-menu/styles.css +0 -26
- package/src/UI/shared-components/primaria-nav-menu/template.ts +0 -30
- package/src/UI/shared-components/primaria-wrapper-menu/primaria-wrapper-menu.ts +0 -41
- package/src/UI/shared-components/primaria-wrapper-menu/styles.css +0 -5
- package/src/UI/shared-components/primaria-wrapper-menu/template.ts +0 -28
- package/src/initializer.ts +0 -327
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { IRegion } from '@uxland/regions';
|
|
2
|
+
import { shellViews } from './constants';
|
|
2
3
|
|
|
3
4
|
declare const PrimariaShell_base: any;
|
|
4
5
|
export declare class PrimariaShell extends PrimariaShell_base {
|
|
5
6
|
render(): import('lit').TemplateResult<1>;
|
|
6
7
|
static styles: import('lit').CSSResult;
|
|
8
|
+
connectedCallback(): void;
|
|
9
|
+
disconnectedCallback(): void;
|
|
10
|
+
firstUpdated(): void;
|
|
7
11
|
navigationMenuRegion: IRegion | undefined;
|
|
8
12
|
mainRegion: IRegion | undefined;
|
|
9
13
|
quickActionsRegion: IRegion | undefined;
|
|
10
14
|
floatingRegion: IRegion | undefined;
|
|
11
15
|
navLowerLeftMenu: IRegion | undefined;
|
|
12
16
|
sidebarExpanded: boolean;
|
|
17
|
+
viewSelected: shellViews;
|
|
18
|
+
error: {
|
|
19
|
+
message: string;
|
|
20
|
+
};
|
|
13
21
|
_toggleSidebar(): void;
|
|
22
|
+
_subscribeEvents(): void;
|
|
23
|
+
_unsubscribeEvents(): void;
|
|
14
24
|
}
|
|
15
25
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { PrimariaNavItemConfig, PrimariaNavTreeMenuConfig } from '../typings';
|
|
3
|
+
|
|
4
|
+
export declare class PrimariaNavTreeMenu extends LitElement {
|
|
5
|
+
static styles: import('lit').CSSResult;
|
|
6
|
+
config: PrimariaNavTreeMenuConfig;
|
|
7
|
+
primariaNavItemConfig: PrimariaNavItemConfig;
|
|
8
|
+
showActionMenu: boolean;
|
|
9
|
+
constructor(config: PrimariaNavTreeMenuConfig);
|
|
10
|
+
handleItemClick: () => void;
|
|
11
|
+
handleCloseMenu: () => void;
|
|
12
|
+
render(): import('lit').TemplateResult<1>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface MenuItem {
|
|
2
|
+
icon: string;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
export interface PrimariaNavItemConfig extends MenuItem {
|
|
6
|
+
callbackFn: () => void;
|
|
7
|
+
showArrow?: boolean;
|
|
8
|
+
fill?: boolean;
|
|
9
|
+
rotateIcon?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface PrimariaNavTreeMenuConfig {
|
|
12
|
+
icon: string;
|
|
13
|
+
label: string;
|
|
14
|
+
actionMenuItems: PrimariaNavItemConfig[];
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -3,3 +3,4 @@ import { HarmonixBroker } from '@uxland/harmonix';
|
|
|
3
3
|
export interface PrimariaBroker extends HarmonixBroker {
|
|
4
4
|
}
|
|
5
5
|
export type { HarmonixBroker, IEvent, IEventClass, IRequest, IRequestClass, } from '@uxland/harmonix';
|
|
6
|
+
export type { BrokerDisposableHandler } from '@uxland/harmonix';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HarmonixRegionManager, IRegionManager, HarmonixViewDefinition } from '@uxland/harmonix';
|
|
2
|
-
import { PluginInfo } from '../../
|
|
2
|
+
import { PluginInfo } from '../../handle-plugins';
|
|
3
|
+
import { PrimariaBroker } from '../broker/primaria-broker';
|
|
3
4
|
|
|
4
5
|
export interface PrimariaRegionManager extends HarmonixRegionManager {
|
|
5
6
|
registerQuickAction(view: HarmonixViewDefinition): Promise<void>;
|
|
@@ -15,4 +16,4 @@ export interface PrimariaRegionManager extends HarmonixRegionManager {
|
|
|
15
16
|
* @param {IRegionManager} regionManager - The region manager instance.
|
|
16
17
|
* @return {HarmonixRegionManager} The created region manager proxy.
|
|
17
18
|
*/
|
|
18
|
-
export declare const createRegionManagerProxy: (pluginInfo: PluginInfo, regionManager: IRegionManager) => PrimariaRegionManager;
|
|
19
|
+
export declare const createRegionManagerProxy: (pluginInfo: PluginInfo, regionManager: IRegionManager, broker: PrimariaBroker) => PrimariaRegionManager;
|
|
@@ -3,5 +3,6 @@ import { IRequestClass } from '..';
|
|
|
3
3
|
import { PrimariaApi } from '../api/api';
|
|
4
4
|
|
|
5
5
|
import Newable = interfaces.Newable;
|
|
6
|
-
export declare const registerRequest: (api: PrimariaApi, container: Container) => (command: IRequestClass<any>, handler: Newable<any>) =>
|
|
7
|
-
|
|
6
|
+
export declare const registerRequest: (api: PrimariaApi, container: Container) => (command: IRequestClass<any>, handler: Newable<any>) => {
|
|
7
|
+
dispose: () => void;
|
|
8
|
+
};
|
|
@@ -2,5 +2,6 @@ import { PluginDefinition, Plugin as PluginType } from '@uxland/harmonix';
|
|
|
2
2
|
import { PrimariaApi } from './api/api';
|
|
3
3
|
|
|
4
4
|
export type { PluginDefinition, PluginInfo } from '@uxland/harmonix';
|
|
5
|
-
export declare const bootstrapPlugins: (plugins: PluginDefinition[]) =>
|
|
5
|
+
export declare const bootstrapPlugins: (plugins: PluginDefinition[]) => Promise<Plugin[]>;
|
|
6
|
+
export declare const disposePlugins: (plugins: Plugin[]) => Promise<void[]>;
|
|
6
7
|
export type Plugin = PluginType<PrimariaApi>;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './bootstrapper';
|
|
3
|
+
export * from './disposer';
|
|
3
4
|
export * from './api/region-manager/regions';
|
|
4
|
-
export * from './
|
|
5
|
+
export * from './handle-plugins';
|
|
5
6
|
export * from './api/api';
|
|
6
7
|
export * from './api/broker/primaria-broker';
|
|
7
|
-
export {
|
|
8
|
+
export { PrimariaNavItem } from './UI/shared-components/primaria-nav-item/primaria-nav-item';
|
|
8
9
|
export { confirmMixin } from './UI/shared-components/primaria-interaction';
|
|
9
10
|
export type { CustomConfirmOptions } from './UI/shared-components/primaria-interaction';
|
|
10
11
|
export { EcapEventManager, createEcapEventManager, } from './api/ecap-event-manager/ecap-event-manager';
|
|
11
12
|
export type { IEcapEvent } from './api/ecap-event-manager/typings';
|
|
12
13
|
export * from './internal-plugins';
|
|
13
14
|
export * from '@uxland/harmonix-adapters';
|
|
15
|
+
export * from './events';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class ActivityHistorySearchHeader extends LitElement {
|
|
4
4
|
render(): import('lit').TemplateResult<1>;
|
|
5
|
-
firstUpdated(): void;
|
|
6
5
|
static styles: import('lit').CSSResult;
|
|
6
|
+
searchQuery: string;
|
|
7
7
|
}
|
|
@@ -5,5 +5,11 @@ export declare class ActivityHistoryTimeline extends ActivityHistoryTimeline_bas
|
|
|
5
5
|
render(): import('lit').TemplateResult<1>;
|
|
6
6
|
static styles: import('lit').CSSResult;
|
|
7
7
|
historyGroups: IActivityHistoryGroup[];
|
|
8
|
+
isAnyCollectionLoadingWithoutAnyLoaded: boolean;
|
|
9
|
+
isSomeCollectionLoadedAndOtherLoading: boolean;
|
|
10
|
+
searchString: string;
|
|
11
|
+
_hasUpdatedOnce: boolean;
|
|
12
|
+
firstUpdated(): void;
|
|
13
|
+
highlightMatch(text: string, searchString: string): string;
|
|
8
14
|
}
|
|
9
15
|
export {};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { PrimariaApi } from '../../../../api/api';
|
|
2
|
+
import { BrokerDisposableHandler } from '../../../../api/broker/primaria-broker';
|
|
2
3
|
|
|
3
4
|
declare const ActivityHistory_base: any;
|
|
4
5
|
export declare class ActivityHistory extends ActivityHistory_base {
|
|
5
6
|
render(): import('lit').TemplateResult<1>;
|
|
6
7
|
static styles: import('lit').CSSResult;
|
|
8
|
+
subscriptions: BrokerDisposableHandler[];
|
|
7
9
|
connectedCallback(): void;
|
|
8
|
-
|
|
10
|
+
disconnectedCallback(): void;
|
|
9
11
|
maximized: boolean;
|
|
10
12
|
api: PrimariaApi;
|
|
11
13
|
isAnyCollectionLoadingWithoutAnyLoaded: boolean;
|
|
12
14
|
isSomeCollectionLoadedAndOtherLoading: boolean;
|
|
13
15
|
historyItems: any[];
|
|
14
|
-
menuOpened: boolean;
|
|
15
|
-
toggleMenu(): void;
|
|
16
16
|
filtersExpanded: boolean;
|
|
17
17
|
_toggleFilters(): void;
|
|
18
18
|
_maximize(): void;
|
|
19
19
|
_minimize(): void;
|
|
20
|
+
searchQuery: string;
|
|
20
21
|
_handleSearchChange(event: any): void;
|
|
21
22
|
_handleSelectDate(date: string): void;
|
|
22
23
|
selectedDate: Date;
|
|
@@ -2,3 +2,4 @@ import { IActivityHistoryItem } from '../model';
|
|
|
2
2
|
|
|
3
3
|
export declare const isValidActivityHistoryItem: (obj: IActivityHistoryItem) => any;
|
|
4
4
|
export declare const ensureAreValidActivityHistoryItems: (items: IActivityHistoryItem[]) => IActivityHistoryItem[];
|
|
5
|
+
export declare const validateAndFilterItems: (items: IActivityHistoryItem[]) => IActivityHistoryItem[];
|
package/dist/primary/shell/src/internal-plugins/activity-history/features/search-items/handler.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Store } from '@reduxjs/toolkit';
|
|
2
2
|
import { SearchActivityHistoryItems } from './request';
|
|
3
|
+
import { PrimariaApi } from '../../../..';
|
|
3
4
|
|
|
4
5
|
export declare class SearchItemsHandler {
|
|
5
6
|
private readonly store;
|
|
6
|
-
|
|
7
|
+
private api;
|
|
8
|
+
constructor(store: Store, api: PrimariaApi);
|
|
7
9
|
handle(request: SearchActivityHistoryItems): Promise<void>;
|
|
8
10
|
}
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
import { PrimariaApi } from './api/api';
|
|
2
|
+
import { primariaShellId } from './constants';
|
|
2
3
|
|
|
3
4
|
declare let shellLocaleManager: any;
|
|
4
5
|
export declare const initializeLocalization: (api: PrimariaApi) => Promise<void>;
|
|
6
|
+
type LocaleKeys<T> = T extends object ? {
|
|
7
|
+
[K in keyof T]: `${K & string}` | (T[K] extends object ? `${K & string}.${LocaleKeys<T[K]>}` : never);
|
|
8
|
+
}[keyof T] : never;
|
|
9
|
+
export type ShellLocales = LocaleKeys<(typeof locales)[typeof defaultLang][typeof primariaShellId]>;
|
|
10
|
+
export declare const translate: (path: ShellLocales) => any;
|
|
5
11
|
export { shellLocaleManager };
|
|
6
12
|
export declare const locales: {
|
|
7
13
|
ca: {
|
|
8
14
|
"primaria-shell": {
|
|
9
15
|
title: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
actions: {
|
|
17
|
+
create: string;
|
|
18
|
+
toggleMenuClose: string;
|
|
19
|
+
toggleMenuOpen: string;
|
|
20
|
+
};
|
|
21
|
+
clinicalMonitoring: {
|
|
22
|
+
title: string;
|
|
23
|
+
};
|
|
13
24
|
};
|
|
14
25
|
};
|
|
15
26
|
};
|