@uxland/primary-shell 5.5.0 → 5.6.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/flow-D-0MTYCm.js.map +1 -1
- package/dist/index.js +21959 -22178
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2008 -1954
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/components/primaria-shell/shell-header/header-divider/header-divider.d.ts +6 -0
- package/dist/primary/shell/src/UI/components/primaria-shell/shell-header/header-divider/template.d.ts +3 -0
- package/dist/primary/shell/src/UI/components/primaria-shell/shell-header/shell-header.d.ts +1 -0
- package/dist/primary/shell/src/features/utils.d.ts +1 -2
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/add/handle-busy/busy-component/component.d.ts +2 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/add/handle-busy/selectors.d.ts +1 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/list/UI/main-view/activity-history-main.d.ts +2 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/activity-history-timeline.d.ts +19 -0
- package/package.json +2 -2
- package/src/UI/components/bootstrapper.ts +2 -0
- package/src/UI/components/primaria-shell/shell-header/header-divider/header-divider.ts +13 -0
- package/src/UI/components/primaria-shell/shell-header/header-divider/styles.css +5 -0
- package/src/UI/components/primaria-shell/shell-header/header-divider/template.ts +8 -0
- package/src/UI/components/primaria-shell/shell-header/shell-header.ts +27 -0
- package/src/UI/components/primaria-shell/shell-header/styles.css +4 -4
- package/src/UI/components/primaria-shell/shell-header/template.ts +2 -0
- package/src/UI/components/primaria-shell/styles.css +7 -6
- package/src/UI/internal-views/handle-views.ts +1 -1
- package/src/UI/internal-views/lower-nav-menu-views.ts +0 -17
- package/src/UI/internal-views/upper-nav-views.ts +30 -4
- package/src/UI/shared-components/primaria-text-editor/styles.css +0 -3
- package/src/features/utils.ts +3 -3
- package/src/internal-plugins/activity-history/activity-history-item/add/handle-busy/busy-component/component.ts +7 -6
- package/src/internal-plugins/activity-history/activity-history-item/add/handle-busy/busy-component/styles.css +11 -14
- package/src/internal-plugins/activity-history/activity-history-item/add/handle-busy/busy-component/template.ts +2 -2
- package/src/internal-plugins/activity-history/activity-history-item/add/handle-busy/selectors.ts +6 -6
- package/src/internal-plugins/activity-history/activity-history-item/add/handle-error/selectors.ts +4 -6
- package/src/internal-plugins/activity-history/activity-history-item/domain/specs/search-string-spec.ts +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/active-filters-badges.ts +14 -13
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/template.ts +22 -7
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/activity-history-filters/template.ts +3 -2
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-value/reducer.ts +6 -0
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/main-view/activity-history-main.ts +11 -9
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/main-view/template.ts +2 -2
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/activity-history-timeline.ts +3 -6
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/template.ts +1 -1
- package/dist/primary/shell/src/infrastructure/ioc/container.d.ts +0 -7
- package/dist/primary/shell/src/internal-plugins/activity-history/infrastructure/ioc/container.d.ts +0 -8
|
@@ -67,7 +67,7 @@ export const template = (props: ActivityHistoryFilters) =>
|
|
|
67
67
|
${
|
|
68
68
|
props.diagnosticFilter &&
|
|
69
69
|
html`<div class="filter">
|
|
70
|
-
<dss-input-dropdown icon="" multiple dropdownFixed type="default" .elements=${props.diagnosticFilter?.values} @onInputDropdownChange=${props._handleDiagnosticFilterChange} .selectedValue=${props.diagnosticFilterEnabledValues} selectorStyle=${"max-height: 450px"}>
|
|
70
|
+
<dss-input-dropdown inputsize="md" icon="" multiple dropdownFixed type="default" .elements=${props.diagnosticFilter?.values} @onInputDropdownChange=${props._handleDiagnosticFilterChange} .selectedValue=${props.diagnosticFilterEnabledValues} selectorStyle=${"max-height: 450px"}>
|
|
71
71
|
<label slot="label" for="diagnostic-filter">${props.diagnosticFilter.title}</label>
|
|
72
72
|
<input id="diagnostic-filter" slot="input" type="text" class="dss-input" autocomplete="off"/>
|
|
73
73
|
</dss-input-dropdown>
|
|
@@ -76,7 +76,7 @@ export const template = (props: ActivityHistoryFilters) =>
|
|
|
76
76
|
${
|
|
77
77
|
props.upFilter &&
|
|
78
78
|
html`<div class="filter">
|
|
79
|
-
<dss-input-dropdown icon="" multiple dropdownFixed type="default" .elements=${props.upFilter?.values} @onInputDropdownChange=${props._handleUpFilterChange} .selectedValue=${props.upFilterEnabledValues} selectorStyle=${"max-height: 450px"}>
|
|
79
|
+
<dss-input-dropdown inputsize="md" icon="" multiple dropdownFixed type="default" .elements=${props.upFilter?.values} @onInputDropdownChange=${props._handleUpFilterChange} .selectedValue=${props.upFilterEnabledValues} selectorStyle=${"max-height: 450px"}>
|
|
80
80
|
<label slot="label" for="up-filter">${props.upFilter.title}</label>
|
|
81
81
|
<input id="up-filter" slot="input" type="text" class="dss-input" autocomplete="off"/>
|
|
82
82
|
</dss-input-dropdown>
|
|
@@ -111,6 +111,7 @@ const customFilterTemplate = (
|
|
|
111
111
|
const elements = filter?.options.map(option => ({ value: option.id, label: option.title }));
|
|
112
112
|
return html`
|
|
113
113
|
<dss-input-dropdown
|
|
114
|
+
inputsize="md"
|
|
114
115
|
icon=""
|
|
115
116
|
multiple
|
|
116
117
|
dropdownFixed
|
|
@@ -30,6 +30,12 @@ const setMultipleOptionsFilterValue = (
|
|
|
30
30
|
const { optionId, enabled } = payload;
|
|
31
31
|
//Si el option ya estaba habilitado, no cambiamos nada
|
|
32
32
|
if (filter.enabledValues?.some((id) => id === optionId) && enabled) return filter;
|
|
33
|
+
//Si no hay option id, devolvemos enabledValues vació, para evitar meter un undefined
|
|
34
|
+
if(optionId === undefined || optionId === null)
|
|
35
|
+
return {
|
|
36
|
+
...filter,
|
|
37
|
+
enabledValues: [],
|
|
38
|
+
};
|
|
33
39
|
return {
|
|
34
40
|
...filter,
|
|
35
41
|
enabledValues: enabled
|
|
@@ -9,6 +9,7 @@ import { TYPES } from "../../../../infrastructure/ioc/types";
|
|
|
9
9
|
import { connectedProperty } from "../../../../infrastructure/state/connected-property";
|
|
10
10
|
import { SearchActivityHistoryItems } from "../../../search/request";
|
|
11
11
|
import { activityHistoryCollectionsSelector } from "../../../selectors";
|
|
12
|
+
import { isSomeCollectionLoadedAndOtherLoading, isCollectionInitialState } from "../../../add/handle-busy/selectors";
|
|
12
13
|
import { ActivityHistoryTimeline } from "../timeline/activity-history-timeline";
|
|
13
14
|
import styles from "./styles.css?inline";
|
|
14
15
|
import { template } from "./template";
|
|
@@ -45,6 +46,12 @@ export class ActivityHistoryMain extends PrimariaRegionHost(LitElement) {
|
|
|
45
46
|
@connectedProperty(activityHistoryCollectionsSelector)
|
|
46
47
|
historyItems: any[];
|
|
47
48
|
|
|
49
|
+
@connectedProperty(isCollectionInitialState)
|
|
50
|
+
isCollectionInitialState: boolean;
|
|
51
|
+
|
|
52
|
+
@connectedProperty(isSomeCollectionLoadedAndOtherLoading)
|
|
53
|
+
isSomeCollectionLoadedAndOtherLoading: boolean;
|
|
54
|
+
|
|
48
55
|
_maximize() {
|
|
49
56
|
this.maximized = true;
|
|
50
57
|
}
|
|
@@ -54,12 +61,9 @@ export class ActivityHistoryMain extends PrimariaRegionHost(LitElement) {
|
|
|
54
61
|
}
|
|
55
62
|
|
|
56
63
|
_subscribeEvents() {
|
|
57
|
-
const subscription = this.api.broker.subscribe(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
this.maximized = false;
|
|
61
|
-
},
|
|
62
|
-
);
|
|
64
|
+
const subscription = this.api.broker.subscribe(shellEvents.openClinicalMonitoringRequested, () => {
|
|
65
|
+
this.maximized = false;
|
|
66
|
+
});
|
|
63
67
|
this.subscriptions.push(subscription);
|
|
64
68
|
}
|
|
65
69
|
|
|
@@ -88,9 +92,7 @@ export class ActivityHistoryMain extends PrimariaRegionHost(LitElement) {
|
|
|
88
92
|
|
|
89
93
|
scrollToClosestDate(date: Date) {
|
|
90
94
|
const selectedDate = date.getTime();
|
|
91
|
-
const timeline = this.shadowRoot.querySelector(
|
|
92
|
-
"activity-history-timeline",
|
|
93
|
-
) as ActivityHistoryTimeline;
|
|
95
|
+
const timeline = this.shadowRoot.querySelector("activity-history-timeline") as ActivityHistoryTimeline;
|
|
94
96
|
timeline._scrollIntoDate(selectedDate);
|
|
95
97
|
}
|
|
96
98
|
}
|
package/src/internal-plugins/activity-history/activity-history-item/list/UI/main-view/template.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html } from "lit";
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
2
|
import { ActivityHistoryMain } from "./activity-history-main";
|
|
3
3
|
import { ExportPdf } from "../../../export-to-pdf/request";
|
|
4
4
|
import { translate } from "../../../../localization";
|
|
@@ -35,7 +35,7 @@ export const template = (props: ActivityHistoryMain) =>
|
|
|
35
35
|
<div class="content">
|
|
36
36
|
<active-filters-header></active-filters-header>
|
|
37
37
|
<activity-history-busy></activity-history-busy>
|
|
38
|
-
|
|
38
|
+
${!props.isCollectionInitialState ? html`<activity-history-timeline></activity-history-timeline>` : nothing}
|
|
39
39
|
</div>
|
|
40
40
|
</div>
|
|
41
41
|
</div>`;
|
|
@@ -7,10 +7,7 @@ import { activityHistoryGroupedItems } from "../../../selectors";
|
|
|
7
7
|
import styles from "./styles.css?inline";
|
|
8
8
|
import { template } from "./template";
|
|
9
9
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
10
|
-
import {
|
|
11
|
-
isAnyCollectionLoadingWithoutAnyLoaded,
|
|
12
|
-
isSomeCollectionLoadedAndOtherLoading,
|
|
13
|
-
} from "../../../add/handle-busy/selectors";
|
|
10
|
+
import { isSomeCollectionLoadedAndOtherLoading, isCollectionInitialState } from "../../../add/handle-busy/selectors";
|
|
14
11
|
import { virtualizerRef } from "@lit-labs/virtualizer/virtualize.js";
|
|
15
12
|
import "@lit-labs/virtualizer";
|
|
16
13
|
|
|
@@ -44,8 +41,8 @@ export class ActivityHistoryTimeline extends LitElement {
|
|
|
44
41
|
@connectedProperty(activityHistoryGroupedItems)
|
|
45
42
|
historyGroups: IActivityHistoryGroup[];
|
|
46
43
|
|
|
47
|
-
@connectedProperty(
|
|
48
|
-
|
|
44
|
+
@connectedProperty(isCollectionInitialState)
|
|
45
|
+
isCollectionInitialState: boolean;
|
|
49
46
|
|
|
50
47
|
@connectedProperty(isSomeCollectionLoadedAndOtherLoading)
|
|
51
48
|
isSomeCollectionLoadedAndOtherLoading: boolean;
|
package/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/template.ts
CHANGED
|
@@ -78,7 +78,7 @@ export const template = (props: ActivityHistoryTimeline) => {
|
|
|
78
78
|
`}
|
|
79
79
|
></lit-virtualizer>
|
|
80
80
|
`
|
|
81
|
-
: !props.
|
|
81
|
+
: !props.isCollectionInitialState && !props.isSomeCollectionLoadedAndOtherLoading
|
|
82
82
|
? html`
|
|
83
83
|
<dss-user-feedback
|
|
84
84
|
class="feedback"
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Container } from 'inversify';
|
|
2
|
-
|
|
3
|
-
declare const container: Container;
|
|
4
|
-
declare const lazyInject: (serviceIdentifier: string | symbol | import("inversify").interfaces.Newable<any> | import("inversify").interfaces.Abstract<any>) => (proto: any, key: string) => void;
|
|
5
|
-
export { container, lazyInject };
|
|
6
|
-
export declare const registerDep: (dep: any) => void;
|
|
7
|
-
export declare const unregisterDep: (dep: any) => void;
|
package/dist/primary/shell/src/internal-plugins/activity-history/infrastructure/ioc/container.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Container } from 'inversify';
|
|
2
|
-
import { PrimariaApi } from '../../../../api/api';
|
|
3
|
-
|
|
4
|
-
declare const container: Container;
|
|
5
|
-
declare const lazyInject: (serviceIdentifier: string | symbol | import("inversify").interfaces.Newable<any> | import("inversify").interfaces.Abstract<any>) => (proto: any, key: string) => void;
|
|
6
|
-
export { container, lazyInject };
|
|
7
|
-
export declare const bindDeps: (api: PrimariaApi) => void;
|
|
8
|
-
export declare const unbindDeps: () => void;
|