@uxland/primary-shell 5.6.1 → 5.6.2
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 +22039 -21598
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1876 -1880
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/infrastructure/ioc/container.d.ts +7 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/infrastructure/ioc/container.d.ts +8 -0
- package/package.json +1 -1
- package/src/features/visit/get-visit-id/handler.ts +0 -2
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/activity-history-filters/template.ts +4 -4
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/main-view/template.ts +1 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/activity-history-timeline.d.ts +0 -19
|
@@ -0,0 +1,7 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
package/package.json
CHANGED
|
@@ -10,7 +10,6 @@ export class GetVisitIdHandler {
|
|
|
10
10
|
async handle(message: GetVisitId): Promise<string | undefined> {
|
|
11
11
|
try {
|
|
12
12
|
const visitIdData = await this.getVisitId();
|
|
13
|
-
console.log("Visit ID obtenido: ", visitIdData);
|
|
14
13
|
return visitIdData;
|
|
15
14
|
} catch (error) {
|
|
16
15
|
this.api.notificationService.error(error.message);
|
|
@@ -20,7 +19,6 @@ export class GetVisitIdHandler {
|
|
|
20
19
|
|
|
21
20
|
private getVisitId(): Promise<string | undefined> {
|
|
22
21
|
const urlParams = new URLSearchParams(window.location.search);
|
|
23
|
-
console.log("Paràmetres de la URL: ", window.location.search);
|
|
24
22
|
const visitId = urlParams.get("visit_id");
|
|
25
23
|
return Promise.resolve(visitId || undefined);
|
|
26
24
|
}
|
|
@@ -14,19 +14,19 @@ const filterTemplates = {
|
|
|
14
14
|
[ActivityHistoryFilterType.Switch]: (id, title, handleChange, isSelected, isEnabled) => html`
|
|
15
15
|
<dss-input-switch size="sm" .checked=${isSelected} @onChangeValue=${handleChange} >
|
|
16
16
|
<input slot="input" id="switch-${id}" aria-label=${title} type="checkbox" ?disabled=${!isEnabled}>
|
|
17
|
-
<label slot="label" for="switch-${id}">${title}</label>
|
|
17
|
+
<label slot="label" for="switch-${id}">${title || id}</label>
|
|
18
18
|
</dss-input-switch>`,
|
|
19
19
|
|
|
20
20
|
[ActivityHistoryFilterType.Checkbox]: (id, title, handleChange, isSelected, isEnabled) => html`
|
|
21
21
|
<dss-checkbox variant="default" .checked=${isSelected} @onChange=${(e) => handleChange(e)}>
|
|
22
22
|
<input slot="input" id="checkboxStory-${id}" type="checkbox" ?disabled=${!isEnabled}>
|
|
23
|
-
<label slot="label" for="checkboxStory-${id}">${title}</label>
|
|
23
|
+
<label slot="label" for="checkboxStory-${id}">${title || id}</label>
|
|
24
24
|
</dss-checkbox>`,
|
|
25
25
|
|
|
26
26
|
[ActivityHistoryFilterType.Dropdown]: (id, title, handleChange, isSelected, isEnabled) => html`
|
|
27
27
|
<dss-input-dropdown type="default" .checked=${isSelected} @onChange=${(e) => handleChange(e)}>
|
|
28
28
|
<input slot="input" id="dropdownStory-${id}" type="text" ?disabled=${!isEnabled}>
|
|
29
|
-
<label slot="label" for="dropdownStory-${id}">${title}</label>
|
|
29
|
+
<label slot="label" for="dropdownStory-${id}">${title || id}</label>
|
|
30
30
|
</dss-input-dropdown>`,
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -108,7 +108,7 @@ const customFilterTemplate = (
|
|
|
108
108
|
group: IActivityHistoryCustomFilterGroup,
|
|
109
109
|
) => {
|
|
110
110
|
if (filter.type === ActivityHistoryFilterType.Dropdown) {
|
|
111
|
-
const elements = filter?.options.map(option => ({ value: option.id, label: option.title }));
|
|
111
|
+
const elements = filter?.options.map(option => ({ value: option.id, label: option.title || option.id }));
|
|
112
112
|
return html`
|
|
113
113
|
<dss-input-dropdown
|
|
114
114
|
inputsize="md"
|
package/src/internal-plugins/activity-history/activity-history-item/list/UI/main-view/template.ts
CHANGED
|
@@ -24,7 +24,7 @@ export const template = (props: ActivityHistoryMain) =>
|
|
|
24
24
|
<dss-icon-button size="md" variant="primary" icon="more_vert" label=${translate("actions.menuButton")}></dss-icon-button>
|
|
25
25
|
<dss-action-menu position="bottom-start">
|
|
26
26
|
<dss-action-menu-item lefticon="view_timeline" label=${translate("actions.cronogram")} @click=${props._raiseEcapCronogramEvent}></dss-action-menu-item>
|
|
27
|
-
<dss-action-menu-item lefticon="file_download" label=${translate("actions.exportPdf")} @click=${() => props.api.broker.send(new ExportPdf())}></dss-action-menu-item>
|
|
27
|
+
<!-- <dss-action-menu-item lefticon="file_download" label=${translate("actions.exportPdf")} @click=${() => props.api.broker.send(new ExportPdf())}></dss-action-menu-item> -->
|
|
28
28
|
<dss-action-menu-item lefticon="info" label=${translate("actions.entryLegend")}></dss-action-menu-item>
|
|
29
29
|
</dss-action-menu>
|
|
30
30
|
</div>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import { IActivityHistoryGroup } from '../../../domain/model';
|
|
3
|
-
|
|
4
|
-
export declare class ActivityHistoryTimeline extends LitElement {
|
|
5
|
-
render(): import('lit').TemplateResult<1>;
|
|
6
|
-
static styles: import('lit').CSSResult;
|
|
7
|
-
historyGroups: IActivityHistoryGroup[];
|
|
8
|
-
isCollectionInitialState: boolean;
|
|
9
|
-
isSomeCollectionLoadedAndOtherLoading: boolean;
|
|
10
|
-
searchString: string;
|
|
11
|
-
private _virtualizer;
|
|
12
|
-
_hasUpdatedOnce: boolean;
|
|
13
|
-
firstUpdated(_changeProps: PropertyValues): void;
|
|
14
|
-
updated(changedProperties: any): Promise<void>;
|
|
15
|
-
prepareComponents(historyGroups: any): Promise<void>;
|
|
16
|
-
highlightMatch(text: string, searchString: string): string;
|
|
17
|
-
highlighted(text?: string): import('lit/directive.js').DirectiveResult<typeof import('lit/directives/unsafe-html.js').UnsafeHTMLDirective> | null;
|
|
18
|
-
_scrollIntoDate(selectedDate: number): void;
|
|
19
|
-
}
|