@provoly/dashboard 1.4.13 → 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.
Files changed (37) hide show
  1. package/esm2022/lib/core/model/result-set.interface.mjs +1 -1
  2. package/esm2022/lib/core/model/search-mono-class.model.mjs +1 -1
  3. package/esm2022/lib/core/store/relation-types/relation-types.actions.mjs +2 -1
  4. package/esm2022/lib/core/store/relation-types/relation-types.effects.mjs +2 -1
  5. package/esm2022/lib/core/store/relation-types/relation-types.service.mjs +5 -1
  6. package/esm2022/lib/core/store/search/search.actions.mjs +1 -1
  7. package/esm2022/lib/core/store/search/search.effects.mjs +3 -3
  8. package/esm2022/lib/core/store/search/search.service.mjs +17 -7
  9. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +2 -1
  10. package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +20 -1
  11. package/esm2022/search/search-mono-class/store/search-mono-class.service.mjs +4 -4
  12. package/esm2022/toolbox/shared/presentation-form/presentation-form.component.mjs +7 -3
  13. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +3 -3
  14. package/fesm2022/provoly-dashboard-search.mjs +3 -3
  15. package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
  16. package/fesm2022/provoly-dashboard-toolbox.mjs +6 -2
  17. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  18. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +2 -2
  19. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  20. package/fesm2022/provoly-dashboard.mjs +44 -8
  21. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  22. package/lib/core/model/result-set.interface.d.ts +6 -0
  23. package/lib/core/model/search-mono-class.model.d.ts +9 -2
  24. package/lib/core/store/relation-types/relation-types.actions.d.ts +9 -0
  25. package/lib/core/store/relation-types/relation-types.effects.d.ts +5 -0
  26. package/lib/core/store/relation-types/relation-types.service.d.ts +1 -0
  27. package/lib/core/store/search/search.actions.d.ts +4 -0
  28. package/lib/core/store/search/search.effects.d.ts +1 -0
  29. package/lib/core/store/search/search.service.d.ts +2 -2
  30. package/lib/dashboard/store/dashboard.actions.d.ts +5 -0
  31. package/lib/dashboard/store/dashboard.effects.d.ts +2 -0
  32. package/package.json +31 -31
  33. package/search/search-fulltext/store/search-fulltext.effects.d.ts +1 -0
  34. package/search/search-mono-class/store/search-mono-class.effects.d.ts +1 -0
  35. package/search/search-mono-class/store/search-mono-class.service.d.ts +1 -1
  36. package/search/search-multi-class/store/search-multi-class.effects.d.ts +1 -0
  37. 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: 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;
@@ -100,6 +100,7 @@ export declare class DashboardEffects {
100
100
  excludeGeo: boolean;
101
101
  from: string;
102
102
  next?: boolean;
103
+ linkedItems?: ("destination" | "source")[];
103
104
  } & import("@ngrx/store").Action<"[Search] (bus) get datasource items (not-active-action)">) | ({
104
105
  id: string;
105
106
  } & import("@ngrx/store").Action<"[Dashboard] (bus) Triggering aggregates for datasource">)> & import("@ngrx/effects").CreateEffectMetadata;
@@ -224,6 +225,7 @@ export declare class DashboardEffects {
224
225
  excludeGeo: boolean;
225
226
  from: string;
226
227
  next?: boolean;
228
+ linkedItems?: ("destination" | "source")[];
227
229
  } & import("@ngrx/store").Action<"[Search] (bus) get datasource items (not-active-action)">> & import("@ngrx/effects").CreateEffectMetadata;
228
230
  propagateGridLayout$: import("rxjs").Observable<{
229
231
  manifest: import("../../core/model/manifest.interface").DashboardManifest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "17.x || 18.x",
@@ -138,36 +138,6 @@
138
138
  "esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
139
139
  "default": "./fesm2022/provoly-dashboard-toolbox.mjs"
140
140
  },
141
- "./filters/autocomplete": {
142
- "types": "./filters/autocomplete/index.d.ts",
143
- "esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
144
- "esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
145
- "default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
146
- },
147
- "./filters/date": {
148
- "types": "./filters/date/index.d.ts",
149
- "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
150
- "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
151
- "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
152
- },
153
- "./filters/list": {
154
- "types": "./filters/list/index.d.ts",
155
- "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
156
- "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
157
- "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
158
- },
159
- "./filters/number": {
160
- "types": "./filters/number/index.d.ts",
161
- "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
162
- "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
163
- "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
164
- },
165
- "./filters/text": {
166
- "types": "./filters/text/index.d.ts",
167
- "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
168
- "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
169
- "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
170
- },
171
141
  "./components/card": {
172
142
  "types": "./components/card/index.d.ts",
173
143
  "esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
@@ -240,6 +210,36 @@
240
210
  "esm": "./esm2022/components/text-editor/provoly-dashboard-components-text-editor.mjs",
241
211
  "default": "./fesm2022/provoly-dashboard-components-text-editor.mjs"
242
212
  },
213
+ "./filters/autocomplete": {
214
+ "types": "./filters/autocomplete/index.d.ts",
215
+ "esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
216
+ "esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
217
+ "default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
218
+ },
219
+ "./filters/date": {
220
+ "types": "./filters/date/index.d.ts",
221
+ "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
222
+ "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
223
+ "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
224
+ },
225
+ "./filters/list": {
226
+ "types": "./filters/list/index.d.ts",
227
+ "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
228
+ "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
229
+ "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
230
+ },
231
+ "./filters/number": {
232
+ "types": "./filters/number/index.d.ts",
233
+ "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
234
+ "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
235
+ "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
236
+ },
237
+ "./filters/text": {
238
+ "types": "./filters/text/index.d.ts",
239
+ "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
240
+ "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
241
+ "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
242
+ },
243
243
  "./pipeline-components/filter": {
244
244
  "types": "./pipeline-components/filter/index.d.ts",
245
245
  "esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
@@ -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
  }