@provoly/dashboard 1.4.12 → 1.4.14
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/esm2022/lib/core/model/result-set.interface.mjs +1 -1
- package/esm2022/lib/core/model/search-mono-class.model.mjs +1 -1
- package/esm2022/lib/core/store/relation-types/relation-types.actions.mjs +2 -1
- package/esm2022/lib/core/store/relation-types/relation-types.effects.mjs +2 -1
- package/esm2022/lib/core/store/relation-types/relation-types.service.mjs +5 -1
- package/esm2022/lib/core/store/search/search.actions.mjs +1 -1
- package/esm2022/lib/core/store/search/search.effects.mjs +3 -3
- package/esm2022/lib/core/store/search/search.service.mjs +17 -7
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +2 -1
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +2 -1
- package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +20 -1
- package/esm2022/search/search-mono-class/store/search-mono-class.service.mjs +4 -4
- package/esm2022/toolbox/shared/presentation-form/presentation-form.component.mjs +7 -3
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +3 -3
- package/fesm2022/provoly-dashboard-search.mjs +3 -3
- package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +6 -2
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +45 -8
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/model/result-set.interface.d.ts +6 -0
- package/lib/core/model/search-mono-class.model.d.ts +9 -2
- package/lib/core/store/relation-types/relation-types.actions.d.ts +9 -0
- package/lib/core/store/relation-types/relation-types.effects.d.ts +5 -0
- package/lib/core/store/relation-types/relation-types.service.d.ts +1 -0
- package/lib/core/store/search/search.actions.d.ts +4 -0
- package/lib/core/store/search/search.effects.d.ts +1 -0
- package/lib/core/store/search/search.service.d.ts +2 -2
- package/lib/dashboard/store/dashboard.actions.d.ts +5 -0
- package/lib/dashboard/store/dashboard.effects.d.ts +3 -0
- package/package.json +1 -1
- package/search/search-fulltext/store/search-fulltext.effects.d.ts +1 -0
- package/search/search-mono-class/store/search-mono-class.effects.d.ts +1 -0
- package/search/search-mono-class/store/search-mono-class.service.d.ts +1 -1
- package/search/search-multi-class/store/search-multi-class.effects.d.ts +1 -0
- package/toolbox/shared/presentation-form/presentation-form.component.d.ts +1 -0
|
@@ -7,6 +7,12 @@ export interface ResultSet {
|
|
|
7
7
|
items: {
|
|
8
8
|
[classId: string]: Item[];
|
|
9
9
|
};
|
|
10
|
+
sourceItems?: {
|
|
11
|
+
[classId: string]: Item[];
|
|
12
|
+
};
|
|
13
|
+
destinationItems?: {
|
|
14
|
+
[classId: string]: Item[];
|
|
15
|
+
};
|
|
10
16
|
relations: Relation[];
|
|
11
17
|
autoRefreshInterval?: number;
|
|
12
18
|
merged?: number;
|
|
@@ -34,11 +34,18 @@ export interface MonoClassSearchPayload {
|
|
|
34
34
|
type: NamedQueryTypes.MONO_CLASS;
|
|
35
35
|
oClass: string;
|
|
36
36
|
icon?: string;
|
|
37
|
-
condition
|
|
38
|
-
sort
|
|
37
|
+
condition?: Condition;
|
|
38
|
+
sort?: {
|
|
39
39
|
attribute: string;
|
|
40
40
|
direction: string;
|
|
41
41
|
};
|
|
42
|
+
withRelation?: {
|
|
43
|
+
destination: string;
|
|
44
|
+
relationType: string;
|
|
45
|
+
} | {
|
|
46
|
+
source: string;
|
|
47
|
+
relationType: string;
|
|
48
|
+
};
|
|
42
49
|
limit?: number;
|
|
43
50
|
}
|
|
44
51
|
export interface OperatorOption {
|
|
@@ -52,6 +52,15 @@ export declare const RelationTypesActions: {
|
|
|
52
52
|
typeId: string;
|
|
53
53
|
inversion: boolean;
|
|
54
54
|
} & import("@ngrx/store").Action<"[Relation Types Api] Create Relation">>;
|
|
55
|
+
deleteRelation: import("@ngrx/store").ActionCreator<"[Relation Types Api] Delete Relation", (props: {
|
|
56
|
+
from: string;
|
|
57
|
+
to: string;
|
|
58
|
+
typeId: string;
|
|
59
|
+
}) => {
|
|
60
|
+
from: string;
|
|
61
|
+
to: string;
|
|
62
|
+
typeId: string;
|
|
63
|
+
} & import("@ngrx/store").Action<"[Relation Types Api] Delete Relation">>;
|
|
55
64
|
createRelationSuccess: import("@ngrx/store").ActionCreator<"[Relation Types Api] Create Relation success", () => import("@ngrx/store").Action<"[Relation Types Api] Create Relation success">>;
|
|
56
65
|
createRelationFailure: import("@ngrx/store").ActionCreator<"[Relation Types Api] Create Relation failure", (props: {
|
|
57
66
|
error: any;
|
|
@@ -25,6 +25,11 @@ export declare class RelationTypesEffects {
|
|
|
25
25
|
} & import("@ngrx/store").Action<"[Dashboard] (bus) add relations to resultSet">) | import("@ngrx/store").Action<"[Relation Types Api] Create Relation success"> | ({
|
|
26
26
|
error: any;
|
|
27
27
|
} & import("@ngrx/store").Action<"[Relation Types Api] Create Relation failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
28
|
+
deleteRelation$: import("rxjs").Observable<({
|
|
29
|
+
relation: import("@provoly/dashboard").Relation;
|
|
30
|
+
} & import("@ngrx/store").Action<"[Dashboard] (bus) remove relations from resultSet">) | ({
|
|
31
|
+
error: any;
|
|
32
|
+
} & import("@ngrx/store").Action<"[Relation Types Api] Create Relation failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
28
33
|
constructor(actions$: Actions, service: RelationTypesService, router: Router, pryDialog: PryDialogService);
|
|
29
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<RelationTypesEffects, never>;
|
|
30
35
|
static ɵprov: i0.ɵɵInjectableDeclaration<RelationTypesEffects>;
|
|
@@ -12,6 +12,7 @@ export declare class RelationTypesService {
|
|
|
12
12
|
getRelationsTypes(): Observable<RelationType[]>;
|
|
13
13
|
deleteRelationType(id: string): Observable<void>;
|
|
14
14
|
createRelation(sources: string[], destination: string, relationType: string, inversion: boolean): Observable<Relation[]>;
|
|
15
|
+
deleteRelation(source: string, destination: string, relationType: string): Observable<Relation>;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<RelationTypesService, never>;
|
|
16
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<RelationTypesService>;
|
|
17
18
|
}
|
|
@@ -5,20 +5,24 @@ export declare const SearchActions: {
|
|
|
5
5
|
search: import("@ngrx/store").ActionCreator<"[Search] search", (props: {
|
|
6
6
|
payload: MonoClassSearchPayload | MultiClassSearchPayload | FullTextSearchPayload;
|
|
7
7
|
id?: string;
|
|
8
|
+
linkedItems?: ("destination" | "source")[];
|
|
8
9
|
}) => {
|
|
9
10
|
payload: MonoClassSearchPayload | MultiClassSearchPayload | FullTextSearchPayload;
|
|
10
11
|
id?: string;
|
|
12
|
+
linkedItems?: ("destination" | "source")[];
|
|
11
13
|
} & import("@ngrx/store").Action<"[Search] search">>;
|
|
12
14
|
getDatasourceItems: import("@ngrx/store").ActionCreator<"[Search] (bus) get datasource items (not-active-action)", (props: {
|
|
13
15
|
id: string;
|
|
14
16
|
excludeGeo: boolean;
|
|
15
17
|
from: string;
|
|
16
18
|
next?: boolean;
|
|
19
|
+
linkedItems?: ("destination" | "source")[];
|
|
17
20
|
}) => {
|
|
18
21
|
id: string;
|
|
19
22
|
excludeGeo: boolean;
|
|
20
23
|
from: string;
|
|
21
24
|
next?: boolean;
|
|
25
|
+
linkedItems?: ("destination" | "source")[];
|
|
22
26
|
} & import("@ngrx/store").Action<"[Search] (bus) get datasource items (not-active-action)">>;
|
|
23
27
|
searchSuccess: import("@ngrx/store").ActionCreator<"[Search Api] (bus) Search Success (not-active-action)", (props: {
|
|
24
28
|
resultSet: ResultSet;
|
|
@@ -23,6 +23,7 @@ export declare class SearchEffects {
|
|
|
23
23
|
excludeGeo: boolean;
|
|
24
24
|
from: string;
|
|
25
25
|
next?: boolean;
|
|
26
|
+
linkedItems?: ("destination" | "source")[];
|
|
26
27
|
} & import("@ngrx/store").Action<"[Search] (bus) get datasource items (not-active-action)">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
27
28
|
search$: import("rxjs").Observable<({
|
|
28
29
|
resultSet: import("@provoly/dashboard").ResultSet;
|
|
@@ -23,7 +23,7 @@ export declare class SearchService {
|
|
|
23
23
|
};
|
|
24
24
|
datasources: DataSource[];
|
|
25
25
|
constructor(httpClient: HttpClient, store: Store<ConfigState | SearchState>);
|
|
26
|
-
getItems(id: string, quickOrder?: ResultOrder, excludeGeo?: boolean, searchAfter?: string): Observable<ResultSet>;
|
|
26
|
+
getItems(id: string, quickOrder?: ResultOrder, excludeGeo?: boolean, searchAfter?: string, linkedItems?: ('destination' | 'source')[]): Observable<ResultSet>;
|
|
27
27
|
getItemsSerializedParams(id: string, quickOrder?: {
|
|
28
28
|
[id: string]: ResultOrder | undefined;
|
|
29
29
|
}): string;
|
|
@@ -33,7 +33,7 @@ export declare class SearchService {
|
|
|
33
33
|
* Launch a search request (and saves it as current search)
|
|
34
34
|
* @param condition
|
|
35
35
|
*/
|
|
36
|
-
search(condition: MonoClassSearchPayload | MultiClassSearchPayload | FullTextSearchPayload): Observable<ResultSet>;
|
|
36
|
+
search(condition: MonoClassSearchPayload | MultiClassSearchPayload | FullTextSearchPayload, id?: string, withLinkedItems?: ('destination' | 'source')[]): Observable<ResultSet>;
|
|
37
37
|
/**
|
|
38
38
|
* Allows to add a transformation function when getting results from backend
|
|
39
39
|
* @param func
|
|
@@ -309,6 +309,11 @@ export declare const DashboardActions: {
|
|
|
309
309
|
}) => {
|
|
310
310
|
relations: Relation[];
|
|
311
311
|
} & import("@ngrx/store").Action<"[Dashboard] (bus) add relations to resultSet">>;
|
|
312
|
+
removeRelationsFromResultSets: import("@ngrx/store").ActionCreator<"[Dashboard] (bus) remove relations from resultSet", (props: {
|
|
313
|
+
relation: Relation;
|
|
314
|
+
}) => {
|
|
315
|
+
relation: Relation;
|
|
316
|
+
} & import("@ngrx/store").Action<"[Dashboard] (bus) remove relations from resultSet">>;
|
|
312
317
|
addItemToResultSets: import("@ngrx/store").ActionCreator<"[Dashboard] (bus) add item to resultSet", (props: {
|
|
313
318
|
item: Item;
|
|
314
319
|
resultSet?: string;
|
|
@@ -94,11 +94,13 @@ export declare class DashboardEffects {
|
|
|
94
94
|
route: string;
|
|
95
95
|
} & import("@ngrx/store").Action<"[Dashboard] (bus) updating route">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
96
96
|
requestManifestsToEmit$: import("rxjs").Observable<import("@ngrx/store").Action<"[Dashboard] (bus) pre-save manifest, asking all widgets to emit">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
97
|
+
dispatchFilter$: import("rxjs").Observable<import("@ngrx/store").Action<"[Dashboard] (bus) pre-save manifest, asking all widgets to emit">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
97
98
|
assertResultSets$: import("rxjs").Observable<({
|
|
98
99
|
id: string;
|
|
99
100
|
excludeGeo: boolean;
|
|
100
101
|
from: string;
|
|
101
102
|
next?: boolean;
|
|
103
|
+
linkedItems?: ("destination" | "source")[];
|
|
102
104
|
} & import("@ngrx/store").Action<"[Search] (bus) get datasource items (not-active-action)">) | ({
|
|
103
105
|
id: string;
|
|
104
106
|
} & import("@ngrx/store").Action<"[Dashboard] (bus) Triggering aggregates for datasource">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
@@ -223,6 +225,7 @@ export declare class DashboardEffects {
|
|
|
223
225
|
excludeGeo: boolean;
|
|
224
226
|
from: string;
|
|
225
227
|
next?: boolean;
|
|
228
|
+
linkedItems?: ("destination" | "source")[];
|
|
226
229
|
} & import("@ngrx/store").Action<"[Search] (bus) get datasource items (not-active-action)">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
227
230
|
propagateGridLayout$: import("rxjs").Observable<{
|
|
228
231
|
manifest: import("../../core/model/manifest.interface").DashboardManifest;
|
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ export declare class SearchFulltextEffects {
|
|
|
21
21
|
} & import("@ngrx/store").Action<"[NamedQuery] post">) | ({
|
|
22
22
|
payload: import("@provoly/dashboard").MonoClassSearchPayload | import("@provoly/dashboard").MultiClassSearchPayload | import("@provoly/dashboard").FullTextSearchPayload;
|
|
23
23
|
id?: string;
|
|
24
|
+
linkedItems?: ("destination" | "source")[];
|
|
24
25
|
} & import("@ngrx/store").Action<"[Search] search">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
25
26
|
constructor(actions$: Actions, store: Store<any>, searchFulltextService: SearchFulltextService);
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchFulltextEffects, never>;
|
|
@@ -43,6 +43,7 @@ export declare class SearchMonoClassEffects {
|
|
|
43
43
|
} & Action<"[NamedQuery] post">) | ({
|
|
44
44
|
payload: MonoClassSearchPayload | MultiClassSearchPayload | import("@provoly/dashboard").FullTextSearchPayload;
|
|
45
45
|
id?: string;
|
|
46
|
+
linkedItems?: ("destination" | "source")[];
|
|
46
47
|
} & Action<"[Search] search">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
47
48
|
loadExistingConditions$: import("rxjs").Observable<({
|
|
48
49
|
ids: string[];
|
|
@@ -5,7 +5,7 @@ export declare class SearchMonoClassService {
|
|
|
5
5
|
initNormalizedConditionAttribute(parentId: string, attributeId: string): NormalizedCondition;
|
|
6
6
|
buildMonoClassSearchPayloadForSearch(oClass: string, masterId: string, monoClassConditions: MonoClassConditions, order: ResultOrder | undefined): MonoClassSearchPayload;
|
|
7
7
|
private buildConditionFromMonoClassSearchCondition;
|
|
8
|
-
loadNormalizedConditions(cond: Condition, parentId: string, classes: Class[], fields: Field[], masterId?: string, sort?: {
|
|
8
|
+
loadNormalizedConditions(cond: Condition | undefined, parentId: string, classes: Class[], fields: Field[], masterId?: string, sort?: {
|
|
9
9
|
attribute: string;
|
|
10
10
|
direction: string;
|
|
11
11
|
}): {
|
|
@@ -31,6 +31,7 @@ export declare class SearchMultiClassEffects {
|
|
|
31
31
|
} & import("@ngrx/store").Action<"[NamedQuery] post">) | ({
|
|
32
32
|
payload: import("@provoly/dashboard").MonoClassSearchPayload | import("@provoly/dashboard").MultiClassSearchPayload | import("@provoly/dashboard").FullTextSearchPayload;
|
|
33
33
|
id?: string;
|
|
34
|
+
linkedItems?: ("destination" | "source")[];
|
|
34
35
|
} & import("@ngrx/store").Action<"[Search] search">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
35
36
|
loadExistingConditions$: import("rxjs").Observable<({
|
|
36
37
|
multiType: "AND" | "OR";
|
|
@@ -39,6 +39,7 @@ export declare class PresentationFormComponent extends SubscriptionnerDirective
|
|
|
39
39
|
get theme(): AbstractControl<string | undefined | null>;
|
|
40
40
|
get additionalInformation(): AbstractControl<string | undefined | null>;
|
|
41
41
|
getFormValue(): Partial<PresentationFormValue>;
|
|
42
|
+
onImageChanged($event: string): void;
|
|
42
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<PresentationFormComponent, never>;
|
|
43
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<PresentationFormComponent, "pry-presentation-form", never, { "mode": { "alias": "mode"; "required": false; }; "themePrefix": { "alias": "themePrefix"; "required": false; }; "selectedPresentation": { "alias": "selectedPresentation"; "required": false; }; }, { "formValue": "formValue"; "isFormValid": "isFormValid"; }, never, never, false, never>;
|
|
44
45
|
}
|