@uxland/primary-shell 4.1.1 → 4.3.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 +5532 -5039
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +474 -389
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/components/shell-header/shell-header.d.ts +1 -0
- package/dist/primary/shell/src/api/api.d.ts +2 -0
- package/dist/primary/shell/src/api/http-client/http-client.d.ts +3 -2
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-list/component.d.ts +12 -0
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-list/template.d.ts +3 -0
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-manager.d.ts +19 -0
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-manager.test.d.ts +1 -0
- package/dist/primary/shell/src/api/token-manager/token-manager.d.ts +1 -1
- package/dist/primary/shell/src/events.d.ts +1 -0
- package/dist/primary/shell/src/features/exit/bootstrapper.d.ts +2 -0
- package/dist/primary/shell/src/features/exit/handler.d.ts +10 -0
- package/dist/primary/shell/src/features/exit/request.d.ts +4 -0
- package/dist/primary/shell/src/handle-plugins.d.ts +2 -2
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/add/add-async-history-items/request.d.ts +1 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/add/add-async-history-items/validate-add-async-items-command.d.ts +4 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/add/add-history-items/reducer.d.ts +1 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/domain/model.d.ts +3 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/active-filters-badges.d.ts +14 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/template.d.ts +4 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-header/active-filters-header.d.ts +9 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-header/template.d.ts +4 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/common-filters/selectors.d.ts +152 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/selectors.d.ts +147 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/utils.d.ts +2 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/activity-history-timeline.d.ts +2 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/handle-views.d.ts +4 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/infrastructure/ioc/container.d.ts +1 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/infrastructure/ioc/types.d.ts +0 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/localization.d.ts +4 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/main.d.ts +0 -1
- package/dist/primary/shell/src/locales.d.ts +4 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/UI/components/index.ts +3 -2
- package/src/UI/components/shell-header/shell-header.ts +5 -0
- package/src/UI/components/shell-header/template.ts +2 -2
- package/src/api/api.ts +10 -3
- package/src/api/broker/factory.ts +1 -1
- package/src/api/http-client/http-client.test.ts +60 -6
- package/src/api/http-client/http-client.ts +17 -10
- package/src/api/plugin-busy-manager/plugin-busy-list/component.ts +19 -0
- package/src/api/plugin-busy-manager/plugin-busy-list/styles.css +20 -0
- package/src/api/plugin-busy-manager/plugin-busy-list/template.ts +13 -0
- package/src/api/plugin-busy-manager/plugin-busy-manager.test.ts +49 -0
- package/src/api/plugin-busy-manager/plugin-busy-manager.ts +38 -0
- package/src/api/token-manager/token-manager.test.ts +0 -12
- package/src/api/token-manager/token-manager.ts +12 -7
- package/src/disposer.ts +0 -1
- package/src/events.ts +1 -0
- package/src/features/bootstrapper.ts +3 -0
- package/src/features/exit/bootstrapper.ts +17 -0
- package/src/features/exit/handler.ts +51 -0
- package/src/features/exit/request.ts +3 -0
- package/src/handle-plugins.ts +7 -6
- package/src/handle-views.ts +4 -1
- package/src/internal-plugins/activity-history/activity-history-item/add/add-async-history-items/handler.ts +2 -0
- package/src/internal-plugins/activity-history/activity-history-item/add/add-async-history-items/request.ts +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/add/add-async-history-items/validate-add-async-items-command.ts +15 -0
- package/src/internal-plugins/activity-history/activity-history-item/add/add-history-items/reducer.ts +10 -7
- package/src/internal-plugins/activity-history/activity-history-item/domain/model.ts +4 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/active-filters-badges.ts +51 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/styles.css +31 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/template.ts +103 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-header/active-filters-header.ts +29 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-header/styles.css +12 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-header/template.ts +19 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/common-filters/selectors.ts +10 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/selectors.ts +26 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-value/reducer.ts +7 -1
- package/src/internal-plugins/activity-history/activity-history-item/filter/utils.ts +9 -0
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/main-view/template.ts +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/activity-history-timeline.ts +30 -0
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/template.ts +7 -4
- package/src/internal-plugins/activity-history/activity-history-item/list/bootstrapper.ts +1 -0
- package/src/internal-plugins/activity-history/activity-history-item/search/activity-history-search-results/styles.css +1 -10
- package/src/internal-plugins/activity-history/activity-history-item/search/bootstrapper.ts +1 -0
- package/src/internal-plugins/activity-history/handle-views.ts +17 -0
- package/src/internal-plugins/activity-history/infrastructure/ioc/container.ts +5 -0
- package/src/internal-plugins/activity-history/infrastructure/ioc/types.ts +0 -1
- package/src/internal-plugins/activity-history/localization.ts +13 -10
- package/src/internal-plugins/activity-history/main.ts +4 -10
- package/src/locales.ts +8 -4
- package/dist/primary/shell/src/internal-plugins/activity-history/utils/get-locale-manager-dependency.d.ts +0 -1
- package/src/internal-plugins/activity-history/utils/get-locale-manager-dependency.ts +0 -7
|
@@ -6,6 +6,7 @@ import { HttpClient } from './http-client/http-client';
|
|
|
6
6
|
import { PrimariaInteractionManager } from './interaction-manager/interaction';
|
|
7
7
|
import { TokenManager } from './token-manager/token-manager';
|
|
8
8
|
import { EcapEventManager } from './ecap-event-manager/ecap-event-manager';
|
|
9
|
+
import { PluginBusyManager } from './plugin-busy-manager/plugin-busy-manager';
|
|
9
10
|
|
|
10
11
|
export interface PrimariaApi extends HarmonixApi {
|
|
11
12
|
httpClient: HttpClient;
|
|
@@ -15,6 +16,7 @@ export interface PrimariaApi extends HarmonixApi {
|
|
|
15
16
|
globalStateManager: PrimariaGlobalStateManager;
|
|
16
17
|
tokenManager: TokenManager;
|
|
17
18
|
ecapEventManager: EcapEventManager;
|
|
19
|
+
pluginBusyManager: PluginBusyManager;
|
|
18
20
|
}
|
|
19
21
|
export declare const PrimariaRegionHost: any;
|
|
20
22
|
/**
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { TokenManager } from '../token-manager/token-manager';
|
|
3
|
+
import { PrimariaBroker } from '../broker/primaria-broker';
|
|
3
4
|
|
|
4
|
-
export declare const createAxiosInstance: (tokenManager: TokenManager) => import('axios').AxiosInstance;
|
|
5
|
+
export declare const createAxiosInstance: (tokenManager: TokenManager, broker: PrimariaBroker) => import('axios').AxiosInstance;
|
|
5
6
|
export interface HttpClient {
|
|
6
7
|
request<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
|
|
7
8
|
}
|
|
8
|
-
export declare const createHttpClient: (tokenManager: TokenManager) => HttpClient;
|
|
9
|
+
export declare const createHttpClient: (tokenManager: TokenManager, broker: PrimariaBroker) => HttpClient;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { PluginBusyTask } from '../plugin-busy-manager';
|
|
3
|
+
|
|
4
|
+
declare const PluginBusyList_base: import('../../..').Constructor<import('../../..').ConfirmMixinBase> & typeof LitElement;
|
|
5
|
+
export declare class PluginBusyList extends PluginBusyList_base {
|
|
6
|
+
static styles: import('lit').CSSResult;
|
|
7
|
+
render(): import('lit').TemplateResult<1>;
|
|
8
|
+
model: {
|
|
9
|
+
busyTasks: PluginBusyTask[];
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface PluginBusyTask {
|
|
2
|
+
taskId: string;
|
|
3
|
+
taskDescription: string;
|
|
4
|
+
}
|
|
5
|
+
export declare abstract class PluginBusyManager {
|
|
6
|
+
abstract addBusyPluginTask(busyTask: PluginBusyTask): void;
|
|
7
|
+
abstract removeBusyPluginTask(taskId: string): any;
|
|
8
|
+
abstract clearAllBusyPlugins(): void;
|
|
9
|
+
abstract isAnyPluginBusy(): boolean;
|
|
10
|
+
abstract getBusyPluginTasks(): PluginBusyTask[];
|
|
11
|
+
}
|
|
12
|
+
export declare class PluginBusyManagerImpl implements PluginBusyManager {
|
|
13
|
+
private busyPluginTasks;
|
|
14
|
+
addBusyPluginTask(busyTask: PluginBusyTask): void;
|
|
15
|
+
removeBusyPluginTask(taskId: string): any;
|
|
16
|
+
isAnyPluginBusy(): boolean;
|
|
17
|
+
clearAllBusyPlugins(): void;
|
|
18
|
+
getBusyPluginTasks(): PluginBusyTask[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,7 +2,7 @@ export interface TokenManager {
|
|
|
2
2
|
getToken: () => string;
|
|
3
3
|
refreshToken: () => Promise<string>;
|
|
4
4
|
}
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class TokenManagerImpl implements TokenManager {
|
|
6
6
|
getUrlParams: () => URLSearchParams;
|
|
7
7
|
initToken: () => string;
|
|
8
8
|
getToken: () => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PrimariaApi } from '../..';
|
|
2
|
+
import { ExitShell } from './request';
|
|
3
|
+
|
|
4
|
+
export declare class ExitShellHandler {
|
|
5
|
+
private api;
|
|
6
|
+
constructor(api: PrimariaApi);
|
|
7
|
+
handle(message: ExitShell): Promise<void>;
|
|
8
|
+
private askForClose;
|
|
9
|
+
private timeout;
|
|
10
|
+
}
|
|
@@ -2,6 +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[]) => Promise<
|
|
6
|
-
export declare const disposePlugins: (
|
|
5
|
+
export declare const bootstrapPlugins: (plugins: PluginDefinition[]) => Promise<void>;
|
|
6
|
+
export declare const disposePlugins: () => Promise<void[]>;
|
|
7
7
|
export type Plugin = PluginType<PrimariaApi>;
|
|
@@ -7,6 +7,6 @@ export interface InjectAsyncHistoryItemsPayload {
|
|
|
7
7
|
componentFactory: (item: IActivityHistoryItem) => HTMLElement;
|
|
8
8
|
searchPredicate?: (searchString: string, item: IActivityHistoryItem) => boolean;
|
|
9
9
|
errorMessage: string;
|
|
10
|
-
filters
|
|
10
|
+
filters: IActivityHistoryCommonFilterGroup;
|
|
11
11
|
}
|
|
12
12
|
export declare const addAsyncHistoryItemsCommand = "inject_async_history_items_request";
|
|
@@ -22,6 +22,9 @@ export interface IActivityHistoryItem {
|
|
|
22
22
|
searchPredicate: TSearchActivityHistoryItemPredicate;
|
|
23
23
|
type?: string;
|
|
24
24
|
}
|
|
25
|
+
export interface IActivityHistoryItemWithComponent extends IActivityHistoryItem {
|
|
26
|
+
component: HTMLElement;
|
|
27
|
+
}
|
|
25
28
|
export interface IActivityHistoryItemCollection {
|
|
26
29
|
id: string;
|
|
27
30
|
items: IActivityHistoryItem[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { PrimariaApi } from '../../../../../../api/api';
|
|
3
|
+
import { IActivityHistoryCustomFilterGroup, IActivityHistoryFilterGroup } from '../../model';
|
|
4
|
+
|
|
5
|
+
export declare class ActiveFiltersBadges extends LitElement {
|
|
6
|
+
render(): import('lit').TemplateResult<1>;
|
|
7
|
+
static styles: import('lit').CSSResult;
|
|
8
|
+
api: PrimariaApi;
|
|
9
|
+
activityHistoryCommonFiltersSelector: any;
|
|
10
|
+
enabledCommonFilters: IActivityHistoryFilterGroup[];
|
|
11
|
+
enabledFilters: IActivityHistoryCustomFilterGroup[];
|
|
12
|
+
_onDeleteFilterValue(filterGroupId: string, filterId: string, optionId: string, value: boolean): void;
|
|
13
|
+
_onDeleteCommonFilterValue(filterId: string): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export declare class ActiveFiltersHeader extends LitElement {
|
|
4
|
+
render(): import('lit').TemplateResult<1>;
|
|
5
|
+
static styles: import('lit').CSSResult;
|
|
6
|
+
searchString: string;
|
|
7
|
+
areCustomFiltersActive: boolean;
|
|
8
|
+
areCommonFiltersActive: boolean;
|
|
9
|
+
}
|
|
@@ -90,3 +90,155 @@ export declare const isEnabledCommonFilterSelector: (filterId: string) => ((stat
|
|
|
90
90
|
argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
91
91
|
memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
92
92
|
};
|
|
93
|
+
export declare const activityHistoryEnabledCommonFiltersSelector: ((state: {
|
|
94
|
+
activityHistoryCollections: {
|
|
95
|
+
busy: import('../../..').IBusyHistoryItem[];
|
|
96
|
+
error: import('../../..').IErrorHistoryItem[];
|
|
97
|
+
collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
|
|
98
|
+
};
|
|
99
|
+
activityHistoryFilters: {
|
|
100
|
+
searchString: string;
|
|
101
|
+
filters: import('..').IActivityHistoryFilterGroup[];
|
|
102
|
+
};
|
|
103
|
+
}) => (import('..').IActivityHistoryCommonFilter | import('..').IActivityHistoryCustomFilter)[]) & {
|
|
104
|
+
clearCache: () => void;
|
|
105
|
+
resultsCount: () => number;
|
|
106
|
+
resetResultsCount: () => void;
|
|
107
|
+
} & {
|
|
108
|
+
resultFunc: (resultFuncArgs_0: import('..').IActivityHistoryCommonFilter[] | import('..').IActivityHistoryCustomFilter[]) => (import('..').IActivityHistoryCommonFilter | import('..').IActivityHistoryCustomFilter)[];
|
|
109
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('..').IActivityHistoryCommonFilter[] | import('..').IActivityHistoryCustomFilter[]) => (import('..').IActivityHistoryCommonFilter | import('..').IActivityHistoryCustomFilter)[]) & {
|
|
110
|
+
clearCache: () => void;
|
|
111
|
+
resultsCount: () => number;
|
|
112
|
+
resetResultsCount: () => void;
|
|
113
|
+
};
|
|
114
|
+
lastResult: () => (import('..').IActivityHistoryCommonFilter | import('..').IActivityHistoryCustomFilter)[];
|
|
115
|
+
dependencies: [((state: {
|
|
116
|
+
activityHistoryCollections: {
|
|
117
|
+
busy: import('../../..').IBusyHistoryItem[];
|
|
118
|
+
error: import('../../..').IErrorHistoryItem[];
|
|
119
|
+
collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
|
|
120
|
+
};
|
|
121
|
+
activityHistoryFilters: {
|
|
122
|
+
searchString: string;
|
|
123
|
+
filters: import('..').IActivityHistoryFilterGroup[];
|
|
124
|
+
};
|
|
125
|
+
}) => import('..').IActivityHistoryCommonFilter[] | import('..').IActivityHistoryCustomFilter[]) & {
|
|
126
|
+
clearCache: () => void;
|
|
127
|
+
resultsCount: () => number;
|
|
128
|
+
resetResultsCount: () => void;
|
|
129
|
+
} & {
|
|
130
|
+
resultFunc: (resultFuncArgs_0: import('..').IActivityHistoryFilterGroup[]) => import('..').IActivityHistoryCommonFilter[] | import('..').IActivityHistoryCustomFilter[];
|
|
131
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('..').IActivityHistoryFilterGroup[]) => import('..').IActivityHistoryCommonFilter[] | import('..').IActivityHistoryCustomFilter[]) & {
|
|
132
|
+
clearCache: () => void;
|
|
133
|
+
resultsCount: () => number;
|
|
134
|
+
resetResultsCount: () => void;
|
|
135
|
+
};
|
|
136
|
+
lastResult: () => import('..').IActivityHistoryCommonFilter[] | import('..').IActivityHistoryCustomFilter[];
|
|
137
|
+
dependencies: [(state: import('../../../infrastructure/state/store').RootState) => import('..').IActivityHistoryFilterGroup[]];
|
|
138
|
+
recomputations: () => number;
|
|
139
|
+
resetRecomputations: () => void;
|
|
140
|
+
dependencyRecomputations: () => number;
|
|
141
|
+
resetDependencyRecomputations: () => void;
|
|
142
|
+
} & {
|
|
143
|
+
argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
144
|
+
memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
145
|
+
}];
|
|
146
|
+
recomputations: () => number;
|
|
147
|
+
resetRecomputations: () => void;
|
|
148
|
+
dependencyRecomputations: () => number;
|
|
149
|
+
resetDependencyRecomputations: () => void;
|
|
150
|
+
} & {
|
|
151
|
+
argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
152
|
+
memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
153
|
+
};
|
|
154
|
+
export declare const areCommonFiltersActive: ((state: {
|
|
155
|
+
activityHistoryCollections: {
|
|
156
|
+
busy: import('../../..').IBusyHistoryItem[];
|
|
157
|
+
error: import('../../..').IErrorHistoryItem[];
|
|
158
|
+
collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
|
|
159
|
+
};
|
|
160
|
+
activityHistoryFilters: {
|
|
161
|
+
searchString: string;
|
|
162
|
+
filters: import('..').IActivityHistoryFilterGroup[];
|
|
163
|
+
};
|
|
164
|
+
}) => boolean) & {
|
|
165
|
+
clearCache: () => void;
|
|
166
|
+
resultsCount: () => number;
|
|
167
|
+
resetResultsCount: () => void;
|
|
168
|
+
} & {
|
|
169
|
+
resultFunc: (resultFuncArgs_0: (import('..').IActivityHistoryCommonFilter | import('..').IActivityHistoryCustomFilter)[]) => boolean;
|
|
170
|
+
memoizedResultFunc: ((resultFuncArgs_0: (import('..').IActivityHistoryCommonFilter | import('..').IActivityHistoryCustomFilter)[]) => boolean) & {
|
|
171
|
+
clearCache: () => void;
|
|
172
|
+
resultsCount: () => number;
|
|
173
|
+
resetResultsCount: () => void;
|
|
174
|
+
};
|
|
175
|
+
lastResult: () => boolean;
|
|
176
|
+
dependencies: [((state: {
|
|
177
|
+
activityHistoryCollections: {
|
|
178
|
+
busy: import('../../..').IBusyHistoryItem[];
|
|
179
|
+
error: import('../../..').IErrorHistoryItem[];
|
|
180
|
+
collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
|
|
181
|
+
};
|
|
182
|
+
activityHistoryFilters: {
|
|
183
|
+
searchString: string;
|
|
184
|
+
filters: import('..').IActivityHistoryFilterGroup[];
|
|
185
|
+
};
|
|
186
|
+
}) => (import('..').IActivityHistoryCommonFilter | import('..').IActivityHistoryCustomFilter)[]) & {
|
|
187
|
+
clearCache: () => void;
|
|
188
|
+
resultsCount: () => number;
|
|
189
|
+
resetResultsCount: () => void;
|
|
190
|
+
} & {
|
|
191
|
+
resultFunc: (resultFuncArgs_0: import('..').IActivityHistoryCommonFilter[] | import('..').IActivityHistoryCustomFilter[]) => (import('..').IActivityHistoryCommonFilter | import('..').IActivityHistoryCustomFilter)[];
|
|
192
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('..').IActivityHistoryCommonFilter[] | import('..').IActivityHistoryCustomFilter[]) => (import('..').IActivityHistoryCommonFilter | import('..').IActivityHistoryCustomFilter)[]) & {
|
|
193
|
+
clearCache: () => void;
|
|
194
|
+
resultsCount: () => number;
|
|
195
|
+
resetResultsCount: () => void;
|
|
196
|
+
};
|
|
197
|
+
lastResult: () => (import('..').IActivityHistoryCommonFilter | import('..').IActivityHistoryCustomFilter)[];
|
|
198
|
+
dependencies: [((state: {
|
|
199
|
+
activityHistoryCollections: {
|
|
200
|
+
busy: import('../../..').IBusyHistoryItem[];
|
|
201
|
+
error: import('../../..').IErrorHistoryItem[];
|
|
202
|
+
collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
|
|
203
|
+
};
|
|
204
|
+
activityHistoryFilters: {
|
|
205
|
+
searchString: string;
|
|
206
|
+
filters: import('..').IActivityHistoryFilterGroup[];
|
|
207
|
+
};
|
|
208
|
+
}) => import('..').IActivityHistoryCommonFilter[] | import('..').IActivityHistoryCustomFilter[]) & {
|
|
209
|
+
clearCache: () => void;
|
|
210
|
+
resultsCount: () => number;
|
|
211
|
+
resetResultsCount: () => void;
|
|
212
|
+
} & {
|
|
213
|
+
resultFunc: (resultFuncArgs_0: import('..').IActivityHistoryFilterGroup[]) => import('..').IActivityHistoryCommonFilter[] | import('..').IActivityHistoryCustomFilter[];
|
|
214
|
+
memoizedResultFunc: ((resultFuncArgs_0: import('..').IActivityHistoryFilterGroup[]) => import('..').IActivityHistoryCommonFilter[] | import('..').IActivityHistoryCustomFilter[]) & {
|
|
215
|
+
clearCache: () => void;
|
|
216
|
+
resultsCount: () => number;
|
|
217
|
+
resetResultsCount: () => void;
|
|
218
|
+
};
|
|
219
|
+
lastResult: () => import('..').IActivityHistoryCommonFilter[] | import('..').IActivityHistoryCustomFilter[];
|
|
220
|
+
dependencies: [(state: import('../../../infrastructure/state/store').RootState) => import('..').IActivityHistoryFilterGroup[]];
|
|
221
|
+
recomputations: () => number;
|
|
222
|
+
resetRecomputations: () => void;
|
|
223
|
+
dependencyRecomputations: () => number;
|
|
224
|
+
resetDependencyRecomputations: () => void;
|
|
225
|
+
} & {
|
|
226
|
+
argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
227
|
+
memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
228
|
+
}];
|
|
229
|
+
recomputations: () => number;
|
|
230
|
+
resetRecomputations: () => void;
|
|
231
|
+
dependencyRecomputations: () => number;
|
|
232
|
+
resetDependencyRecomputations: () => void;
|
|
233
|
+
} & {
|
|
234
|
+
argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
235
|
+
memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
236
|
+
}];
|
|
237
|
+
recomputations: () => number;
|
|
238
|
+
resetRecomputations: () => void;
|
|
239
|
+
dependencyRecomputations: () => number;
|
|
240
|
+
resetDependencyRecomputations: () => void;
|
|
241
|
+
} & {
|
|
242
|
+
argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
243
|
+
memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
244
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IActivityHistoryFilterGroup } from '../model';
|
|
1
|
+
import { IActivityHistoryCustomFilter, IActivityHistoryFilterGroup } from '../model';
|
|
2
2
|
|
|
3
3
|
export declare const activityHistoryCustomFilterGroupsSelector: ((state: {
|
|
4
4
|
activityHistoryCollections: {
|
|
@@ -31,3 +31,149 @@ export declare const activityHistoryCustomFilterGroupsSelector: ((state: {
|
|
|
31
31
|
argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
32
32
|
memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
33
33
|
};
|
|
34
|
+
export declare const areCustomFiltersActive: ((state: {
|
|
35
|
+
activityHistoryCollections: {
|
|
36
|
+
busy: import('../../..').IBusyHistoryItem[];
|
|
37
|
+
error: import('../../..').IErrorHistoryItem[];
|
|
38
|
+
collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
|
|
39
|
+
};
|
|
40
|
+
activityHistoryFilters: {
|
|
41
|
+
searchString: string;
|
|
42
|
+
filters: IActivityHistoryFilterGroup[];
|
|
43
|
+
};
|
|
44
|
+
}) => boolean) & {
|
|
45
|
+
clearCache: () => void;
|
|
46
|
+
resultsCount: () => number;
|
|
47
|
+
resetResultsCount: () => void;
|
|
48
|
+
} & {
|
|
49
|
+
resultFunc: (resultFuncArgs_0: IActivityHistoryFilterGroup[]) => boolean;
|
|
50
|
+
memoizedResultFunc: ((resultFuncArgs_0: IActivityHistoryFilterGroup[]) => boolean) & {
|
|
51
|
+
clearCache: () => void;
|
|
52
|
+
resultsCount: () => number;
|
|
53
|
+
resetResultsCount: () => void;
|
|
54
|
+
};
|
|
55
|
+
lastResult: () => boolean;
|
|
56
|
+
dependencies: [((state: {
|
|
57
|
+
activityHistoryCollections: {
|
|
58
|
+
busy: import('../../..').IBusyHistoryItem[];
|
|
59
|
+
error: import('../../..').IErrorHistoryItem[];
|
|
60
|
+
collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
|
|
61
|
+
};
|
|
62
|
+
activityHistoryFilters: {
|
|
63
|
+
searchString: string;
|
|
64
|
+
filters: IActivityHistoryFilterGroup[];
|
|
65
|
+
};
|
|
66
|
+
}) => IActivityHistoryFilterGroup[]) & {
|
|
67
|
+
clearCache: () => void;
|
|
68
|
+
resultsCount: () => number;
|
|
69
|
+
resetResultsCount: () => void;
|
|
70
|
+
} & {
|
|
71
|
+
resultFunc: (resultFuncArgs_0: IActivityHistoryFilterGroup[]) => IActivityHistoryFilterGroup[];
|
|
72
|
+
memoizedResultFunc: ((resultFuncArgs_0: IActivityHistoryFilterGroup[]) => IActivityHistoryFilterGroup[]) & {
|
|
73
|
+
clearCache: () => void;
|
|
74
|
+
resultsCount: () => number;
|
|
75
|
+
resetResultsCount: () => void;
|
|
76
|
+
};
|
|
77
|
+
lastResult: () => IActivityHistoryFilterGroup[];
|
|
78
|
+
dependencies: [(state: import('../../../infrastructure/state/store').RootState) => IActivityHistoryFilterGroup[]];
|
|
79
|
+
recomputations: () => number;
|
|
80
|
+
resetRecomputations: () => void;
|
|
81
|
+
dependencyRecomputations: () => number;
|
|
82
|
+
resetDependencyRecomputations: () => void;
|
|
83
|
+
} & {
|
|
84
|
+
argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
85
|
+
memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
86
|
+
}];
|
|
87
|
+
recomputations: () => number;
|
|
88
|
+
resetRecomputations: () => void;
|
|
89
|
+
dependencyRecomputations: () => number;
|
|
90
|
+
resetDependencyRecomputations: () => void;
|
|
91
|
+
} & {
|
|
92
|
+
argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
93
|
+
memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
94
|
+
};
|
|
95
|
+
export declare const activeGroupsWithEnabledFilters: ((state: {
|
|
96
|
+
activityHistoryCollections: {
|
|
97
|
+
busy: import('../../..').IBusyHistoryItem[];
|
|
98
|
+
error: import('../../..').IErrorHistoryItem[];
|
|
99
|
+
collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
|
|
100
|
+
};
|
|
101
|
+
activityHistoryFilters: {
|
|
102
|
+
searchString: string;
|
|
103
|
+
filters: IActivityHistoryFilterGroup[];
|
|
104
|
+
};
|
|
105
|
+
}) => {
|
|
106
|
+
id: string;
|
|
107
|
+
title: string;
|
|
108
|
+
enabled: boolean;
|
|
109
|
+
sort: string;
|
|
110
|
+
filters: IActivityHistoryCustomFilter[];
|
|
111
|
+
}[]) & {
|
|
112
|
+
clearCache: () => void;
|
|
113
|
+
resultsCount: () => number;
|
|
114
|
+
resetResultsCount: () => void;
|
|
115
|
+
} & {
|
|
116
|
+
resultFunc: (resultFuncArgs_0: IActivityHistoryFilterGroup[]) => {
|
|
117
|
+
id: string;
|
|
118
|
+
title: string;
|
|
119
|
+
enabled: boolean;
|
|
120
|
+
sort: string;
|
|
121
|
+
filters: IActivityHistoryCustomFilter[];
|
|
122
|
+
}[];
|
|
123
|
+
memoizedResultFunc: ((resultFuncArgs_0: IActivityHistoryFilterGroup[]) => {
|
|
124
|
+
id: string;
|
|
125
|
+
title: string;
|
|
126
|
+
enabled: boolean;
|
|
127
|
+
sort: string;
|
|
128
|
+
filters: IActivityHistoryCustomFilter[];
|
|
129
|
+
}[]) & {
|
|
130
|
+
clearCache: () => void;
|
|
131
|
+
resultsCount: () => number;
|
|
132
|
+
resetResultsCount: () => void;
|
|
133
|
+
};
|
|
134
|
+
lastResult: () => {
|
|
135
|
+
id: string;
|
|
136
|
+
title: string;
|
|
137
|
+
enabled: boolean;
|
|
138
|
+
sort: string;
|
|
139
|
+
filters: IActivityHistoryCustomFilter[];
|
|
140
|
+
}[];
|
|
141
|
+
dependencies: [((state: {
|
|
142
|
+
activityHistoryCollections: {
|
|
143
|
+
busy: import('../../..').IBusyHistoryItem[];
|
|
144
|
+
error: import('../../..').IErrorHistoryItem[];
|
|
145
|
+
collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
|
|
146
|
+
};
|
|
147
|
+
activityHistoryFilters: {
|
|
148
|
+
searchString: string;
|
|
149
|
+
filters: IActivityHistoryFilterGroup[];
|
|
150
|
+
};
|
|
151
|
+
}) => IActivityHistoryFilterGroup[]) & {
|
|
152
|
+
clearCache: () => void;
|
|
153
|
+
resultsCount: () => number;
|
|
154
|
+
resetResultsCount: () => void;
|
|
155
|
+
} & {
|
|
156
|
+
resultFunc: (resultFuncArgs_0: IActivityHistoryFilterGroup[]) => IActivityHistoryFilterGroup[];
|
|
157
|
+
memoizedResultFunc: ((resultFuncArgs_0: IActivityHistoryFilterGroup[]) => IActivityHistoryFilterGroup[]) & {
|
|
158
|
+
clearCache: () => void;
|
|
159
|
+
resultsCount: () => number;
|
|
160
|
+
resetResultsCount: () => void;
|
|
161
|
+
};
|
|
162
|
+
lastResult: () => IActivityHistoryFilterGroup[];
|
|
163
|
+
dependencies: [(state: import('../../../infrastructure/state/store').RootState) => IActivityHistoryFilterGroup[]];
|
|
164
|
+
recomputations: () => number;
|
|
165
|
+
resetRecomputations: () => void;
|
|
166
|
+
dependencyRecomputations: () => number;
|
|
167
|
+
resetDependencyRecomputations: () => void;
|
|
168
|
+
} & {
|
|
169
|
+
argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
170
|
+
memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
171
|
+
}];
|
|
172
|
+
recomputations: () => number;
|
|
173
|
+
resetRecomputations: () => void;
|
|
174
|
+
dependencyRecomputations: () => number;
|
|
175
|
+
resetDependencyRecomputations: () => void;
|
|
176
|
+
} & {
|
|
177
|
+
argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
178
|
+
memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
179
|
+
};
|
|
@@ -10,6 +10,8 @@ export declare class ActivityHistoryTimeline extends LitElement {
|
|
|
10
10
|
searchString: string;
|
|
11
11
|
_hasUpdatedOnce: boolean;
|
|
12
12
|
firstUpdated(): void;
|
|
13
|
+
updated(changedProperties: any): Promise<void>;
|
|
14
|
+
prepareComponents(historyGroups: any): Promise<void>;
|
|
13
15
|
highlightMatch(text: string, searchString: string): string;
|
|
14
16
|
_scrollIntoDate(selectedDate: number): void;
|
|
15
17
|
}
|
package/dist/primary/shell/src/internal-plugins/activity-history/infrastructure/ioc/container.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ declare const container: Container;
|
|
|
5
5
|
declare const lazyInject: (serviceIdentifier: string | symbol | import("inversify").interfaces.Newable<any> | import("inversify").interfaces.Abstract<any>) => (proto: any, key: string) => void;
|
|
6
6
|
export { container, lazyInject };
|
|
7
7
|
export declare const bindDeps: (api: PrimariaApi) => void;
|
|
8
|
+
export declare const unbindDeps: () => void;
|
|
@@ -50,6 +50,7 @@ export declare const locales: {
|
|
|
50
50
|
clinicalCourseType: string;
|
|
51
51
|
selected: string;
|
|
52
52
|
applyFilters: string;
|
|
53
|
+
deleted: string;
|
|
53
54
|
};
|
|
54
55
|
tooltips: {
|
|
55
56
|
subjective: string;
|
|
@@ -61,6 +62,9 @@ export declare const locales: {
|
|
|
61
62
|
variablees: string;
|
|
62
63
|
prescriptions: string;
|
|
63
64
|
};
|
|
65
|
+
chipHeader: {
|
|
66
|
+
selection: string;
|
|
67
|
+
};
|
|
64
68
|
};
|
|
65
69
|
};
|
|
66
70
|
};
|
|
@@ -17,6 +17,7 @@ export declare const locales: {
|
|
|
17
17
|
create: string;
|
|
18
18
|
toggleMenuClose: string;
|
|
19
19
|
toggleMenuOpen: string;
|
|
20
|
+
askExit: string;
|
|
20
21
|
};
|
|
21
22
|
clinicalMonitoring: {
|
|
22
23
|
title: string;
|
|
@@ -26,6 +27,9 @@ export declare const locales: {
|
|
|
26
27
|
role: string;
|
|
27
28
|
speciality: string;
|
|
28
29
|
};
|
|
30
|
+
busyManager: {
|
|
31
|
+
title: string;
|
|
32
|
+
};
|
|
29
33
|
};
|
|
30
34
|
};
|
|
31
35
|
};
|