@uxland/primary-shell 1.1.0 → 2.0.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/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 +9 -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 +2 -0
- package/dist/UI/shared-components/dss-container/dss-container.d.ts +7 -0
- package/dist/UI/shared-components/index.d.ts +2 -0
- package/dist/UI/shared-components/primaria-content-switcher/primaria-content-switcher.d.ts +14 -0
- package/dist/UI/shared-components/primaria-interaction/components/dialog-component.d.ts +20 -0
- package/dist/UI/shared-components/primaria-interaction/components/notifier-component.d.ts +12 -0
- package/dist/UI/shared-components/primaria-interaction/confirm-mixin.d.ts +16 -0
- package/dist/UI/shared-components/primaria-interaction/confirm.d.ts +3 -0
- package/dist/UI/shared-components/primaria-interaction/index.d.ts +4 -0
- package/dist/UI/shared-components/primaria-interaction/notify.d.ts +4 -0
- package/dist/UI/shared-components/primaria-interaction/typings.d.ts +28 -0
- package/dist/UI/shared-components/primaria-menu-item/primaria-menu-item.d.ts +10 -0
- package/dist/UI/shared-components/primaria-menu-item/template.d.ts +3 -0
- package/dist/UI/shared-components/primaria-text-editor/primaria-rich-text-editor.d.ts +57 -0
- package/dist/UI/shared-components/primaria-text-editor/template.d.ts +1 -0
- package/dist/UI/shared-components/primaria-text-editor/utils.d.ts +1 -0
- package/dist/UI/styles/theme/apply-theme.d.ts +1 -0
- package/dist/api/api.d.ts +27 -0
- 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 +8 -0
- package/dist/index.js +26335 -239
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +8647 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/initializer.d.ts +1 -0
- package/dist/locales.d.ts +15 -0
- package/dist/plugin.d.ts +6 -0
- package/dist/region-manager.d.ts +16 -0
- package/dist/regions.d.ts +14 -0
- package/dist/style.css +3 -0
- package/package.json +23 -15
- package/src/UI/components/clinical-monitoring/clinical-monitoring.ts +28 -0
- package/src/UI/components/clinical-monitoring/styles.scss +29 -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 +27 -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 +68 -0
- package/src/UI/components/primaria-shell/template.ts +94 -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 +2 -0
- package/src/UI/shared-components/design-system.css +1 -0
- package/src/UI/shared-components/dss-container/dss-container.ts +32 -0
- package/src/UI/shared-components/dss-container/styles.scss +23 -0
- package/src/UI/shared-components/index.ts +5 -0
- package/src/UI/shared-components/primaria-content-switcher/primaria-content-switcher.ts +79 -0
- package/src/UI/shared-components/primaria-interaction/components/dialog-component-styles.scss +155 -0
- package/src/UI/shared-components/primaria-interaction/components/dialog-component.ts +120 -0
- package/src/UI/shared-components/primaria-interaction/components/notifier-component-styles.scss +128 -0
- package/src/UI/shared-components/primaria-interaction/components/notifier-component.ts +73 -0
- package/src/UI/shared-components/primaria-interaction/confirm-mixin.ts +39 -0
- package/src/UI/shared-components/primaria-interaction/confirm.ts +30 -0
- package/src/UI/shared-components/primaria-interaction/index.ts +4 -0
- package/src/UI/shared-components/primaria-interaction/notify.ts +153 -0
- package/src/UI/shared-components/primaria-interaction/typings.ts +32 -0
- package/src/UI/shared-components/primaria-menu-item/primaria-menu-item.ts +25 -0
- package/src/UI/shared-components/primaria-menu-item/styles.scss +10 -0
- package/src/UI/shared-components/primaria-menu-item/template.ts +8 -0
- package/src/UI/shared-components/primaria-text-editor/primaria-rich-text-editor.ts +230 -0
- package/src/UI/shared-components/primaria-text-editor/styles.scss +972 -0
- package/src/UI/shared-components/primaria-text-editor/template.ts +8 -0
- package/src/UI/shared-components/primaria-text-editor/utils.ts +39 -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 +12 -0
- package/src/initializer.ts +39 -4
- package/src/locales.ts +24 -0
- package/src/plugin.ts +9 -0
- package/src/region-manager.ts +155 -0
- package/src/regions.ts +17 -6
- package/dist/index.mjs +0 -3209
- package/index.ts +0 -3
- package/src/primary-shell.ts +0 -78
package/index.ts
DELETED
package/src/primary-shell.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import {ShellLitRegionHost} from '@uxland/fim-core';
|
|
2
|
-
import {IRegion, region} from '@uxland/regions';
|
|
3
|
-
import {LitElement, css, html} from 'lit';
|
|
4
|
-
import { customElement } from 'lit/decorators.js';
|
|
5
|
-
import { regions} from './regions';
|
|
6
|
-
import '@uxland/primary-ui-components';
|
|
7
|
-
|
|
8
|
-
//@ts-ignore
|
|
9
|
-
@customElement('primary-shell')
|
|
10
|
-
//@ts-ignore
|
|
11
|
-
export class PrimaryShell extends ShellLitRegionHost(LitElement) {
|
|
12
|
-
override render() {
|
|
13
|
-
return html` <div class="container">
|
|
14
|
-
<div class="header">
|
|
15
|
-
<div id="header-region-container"></div>
|
|
16
|
-
<div id="actions-toolbar-region-container"></div>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<div class="main-container">
|
|
20
|
-
<div id="sidebar-region-region-container"></div>
|
|
21
|
-
<div id="main-region-region-container"></div>
|
|
22
|
-
</div>
|
|
23
|
-
</div>`;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
static styles = css`
|
|
27
|
-
:host {
|
|
28
|
-
width: 100%;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
}
|
|
31
|
-
.container {
|
|
32
|
-
width: 100%;
|
|
33
|
-
height: 100%;
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
background: aliceblue;
|
|
37
|
-
}
|
|
38
|
-
.header {
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: row;
|
|
41
|
-
justify-content: space-between;
|
|
42
|
-
background-color: blue;
|
|
43
|
-
height: 60px;
|
|
44
|
-
background-color: white;
|
|
45
|
-
color: black;
|
|
46
|
-
box-shadow: rgba(0, 0, 0, 0.12) 0px 4px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
|
|
47
|
-
z-index: 1;
|
|
48
|
-
|
|
49
|
-
#actions-toolbar-region-container{
|
|
50
|
-
display: flex;
|
|
51
|
-
flex-direction:row;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
.main-container {
|
|
55
|
-
min-height: 1px;
|
|
56
|
-
height: 100%;
|
|
57
|
-
display: flex;
|
|
58
|
-
flex-direction: row;
|
|
59
|
-
#sidebar-region-region-container {
|
|
60
|
-
background: white;
|
|
61
|
-
width: 15vw;
|
|
62
|
-
box-shadow: rgba(0, 0, 0, 0.12) 4px -1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
66
|
-
|
|
67
|
-
@region({targetId: 'header-region-container', name: regions.header})
|
|
68
|
-
headerRegion: IRegion | undefined;
|
|
69
|
-
|
|
70
|
-
@region({targetId: 'actions-toolbar-region-container', name: regions.actionsToolbar})
|
|
71
|
-
actionsToolbarRegion: IRegion | undefined;
|
|
72
|
-
|
|
73
|
-
@region({targetId: 'sidebar-region-region-container', name: regions.sidebar})
|
|
74
|
-
sidebarRegion: IRegion | undefined;
|
|
75
|
-
|
|
76
|
-
@region({targetId: 'main-region-region-container', name: regions.main})
|
|
77
|
-
mainRegion: IRegion | undefined;
|
|
78
|
-
}
|