@uxland/primary-shell 1.0.15 → 1.0.16
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 +231 -0
- package/dist/UI/components/clinical-monitoring/clinical-monitoring.d.ts +11 -0
- package/dist/UI/components/clinical-monitoring/template.d.ts +3 -0
- package/dist/UI/components/index.d.ts +1 -0
- package/dist/UI/components/primaria-breadcumbs/primaria-breadcumbs.d.ts +8 -0
- package/dist/UI/components/primaria-breadcumbs/template.d.ts +3 -0
- package/dist/UI/components/primaria-shell/primaria-shell.d.ts +14 -0
- package/dist/UI/components/primaria-shell/template.d.ts +3 -0
- package/dist/UI/components/title-view/template.d.ts +3 -0
- package/dist/UI/components/title-view/title-view.d.ts +9 -0
- package/dist/UI/index.d.ts +1 -0
- package/dist/UI/styles/theme/apply-theme.d.ts +1 -0
- package/dist/{api.d.ts → api/api.d.ts} +9 -16
- package/dist/api/broker/factory.d.ts +3 -0
- package/dist/api/broker/factory.test.d.ts +1 -0
- package/dist/api/broker/primaria-broker.d.ts +5 -0
- package/dist/api/global-state/global-state.d.ts +35 -0
- package/dist/api/global-state/global-state.test.d.ts +1 -0
- package/dist/api/interaction-manager/interaction.d.ts +8 -0
- package/dist/api/localization/localization.test.d.ts +1 -0
- package/dist/constants.d.ts +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +16924 -326
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +8486 -45
- package/dist/index.umd.cjs.map +1 -1
- package/dist/initializer.d.ts +1 -1
- package/dist/locales.d.ts +15 -0
- package/dist/plugin.d.ts +3 -3
- package/dist/region-manager.d.ts +16 -1
- package/dist/regions.d.ts +10 -4
- package/dist/style.css +3 -0
- package/package.json +10 -6
- package/src/UI/components/clinical-monitoring/clinical-monitoring.ts +28 -0
- package/src/UI/components/clinical-monitoring/styles.scss +28 -0
- package/src/UI/components/clinical-monitoring/template.ts +12 -0
- package/src/UI/components/index.ts +5 -0
- package/src/UI/components/primaria-breadcumbs/primaria-breadcumbs.ts +23 -0
- package/src/UI/components/primaria-breadcumbs/styles.scss +25 -0
- package/src/UI/components/primaria-breadcumbs/template.ts +15 -0
- package/src/UI/components/primaria-shell/primaria-shell.ts +37 -0
- package/src/UI/components/primaria-shell/styles.scss +70 -0
- package/src/UI/components/primaria-shell/template.ts +96 -0
- package/src/UI/components/title-view/styles.scss +5 -0
- package/src/UI/components/title-view/template.ts +6 -0
- package/src/UI/components/title-view/title-view.ts +23 -0
- package/src/UI/images/Gencat_Logotip.svg +70 -0
- package/src/UI/images/Salut_Logotip.svg +8 -0
- package/src/UI/index.ts +1 -0
- package/src/UI/styles/_flex-layout.scss +203 -0
- package/src/UI/styles/_normalize.scss +3 -0
- package/src/UI/styles/_variables.scss +40 -0
- package/src/UI/styles/styles.scss +3 -0
- package/src/UI/styles/theme/apply-theme.ts +11 -0
- package/src/api/api.ts +63 -0
- package/src/api/broker/factory.test.ts +124 -0
- package/src/api/broker/factory.ts +122 -0
- package/src/api/broker/primaria-broker.ts +11 -0
- package/src/api/global-state/global-state.test.ts +53 -0
- package/src/api/global-state/global-state.ts +49 -0
- package/src/api/interaction-manager/interaction.ts +21 -0
- package/src/api/localization/localization.test.ts +61 -0
- package/src/api/localization/localization.ts +54 -0
- package/src/constants.ts +2 -0
- package/src/index.ts +3 -1
- package/src/initializer.ts +36 -2
- package/src/locales.ts +24 -0
- package/src/plugin.ts +4 -4
- package/src/region-manager.ts +120 -3
- package/src/regions.ts +14 -5
- package/dist/primaria-shell.d.ts +0 -12
- package/src/api.ts +0 -102
- package/src/primaria-shell.ts +0 -77
package/dist/initializer.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const initializeShell: (element: HTMLElement) => void
|
|
1
|
+
export declare const initializeShell: (element: HTMLElement) => Promise<void>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PrimariaApi } from './api/api';
|
|
2
|
+
|
|
3
|
+
declare let shellLocaleManager: any;
|
|
4
|
+
export declare const initializeLocalization: (api: PrimariaApi) => Promise<void>;
|
|
5
|
+
export { shellLocaleManager };
|
|
6
|
+
export declare const locales: {
|
|
7
|
+
ca: {
|
|
8
|
+
"primaria-shell": {
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
11
|
+
"clinical-monitoring": {
|
|
12
|
+
title: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PluginDefinition, Plugin as PluginType } from '@uxland/
|
|
2
|
-
import { PrimariaApi } from './api';
|
|
1
|
+
import { PluginDefinition, Plugin as PluginType } from '@uxland/harmonix';
|
|
2
|
+
import { PrimariaApi } from './api/api';
|
|
3
3
|
|
|
4
|
-
export type { PluginDefinition, PluginInfo } from '@uxland/
|
|
4
|
+
export type { PluginDefinition, PluginInfo } from '@uxland/harmonix';
|
|
5
5
|
export declare const bootstrapPlugins: (plugins: PluginDefinition[]) => any;
|
|
6
6
|
export type Plugin = PluginType<PrimariaApi>;
|
package/dist/region-manager.d.ts
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { HarmonixRegionManager, HarmonixViewDefinition } from '@uxland/harmonix';
|
|
2
|
+
|
|
3
|
+
export interface PrimariaRegionManager extends HarmonixRegionManager {
|
|
4
|
+
registerMenu(view: HarmonixViewDefinition): Promise<void>;
|
|
5
|
+
registerQuickAction(view: HarmonixViewDefinition): Promise<void>;
|
|
6
|
+
registerMainView(view: HarmonixViewDefinition, title: string): Promise<void>;
|
|
7
|
+
activateMainView(viewId: string): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a proxy for the region manager with the given plugin info and region manager instance.
|
|
11
|
+
*
|
|
12
|
+
* @param {PluginInfo} pluginInfo - The plugin information.
|
|
13
|
+
* @param {IRegionManager} regionManager - The region manager instance.
|
|
14
|
+
* @return {HarmonixRegionManager} The created region manager proxy.
|
|
15
|
+
*/
|
|
16
|
+
export declare const createRegionManagerProxy: (pluginInfo: PluginInfo, regionManager: IRegionManager) => PrimariaRegionManager;
|
package/dist/regions.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const shellRegions: {
|
|
2
2
|
header: string;
|
|
3
|
-
|
|
3
|
+
headerActions: string;
|
|
4
4
|
main: string;
|
|
5
|
+
menu: string;
|
|
6
|
+
quickActions: string;
|
|
7
|
+
floating: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const clinicalMonitoringRegions: {
|
|
5
10
|
sidebar: string;
|
|
6
|
-
|
|
11
|
+
header: string;
|
|
12
|
+
content: string;
|
|
7
13
|
};
|
|
8
|
-
export type PrimariaRegionNames = (typeof
|
|
14
|
+
export type PrimariaRegionNames = (typeof shellRegions)[keyof typeof shellRegions] | (typeof clinicalMonitoringRegions)[keyof typeof clinicalMonitoringRegions];
|