@provoly/dashboard 1.3.2 → 1.3.3

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.
@@ -26,9 +26,9 @@ export declare const enTranslations: {
26
26
  code: {
27
27
  UNRECOGNIZED: string;
28
28
  FILE_MANDATORY: string;
29
- NB_ATTRIBUTES: string;
30
- CAST: string;
31
- ELASTIC_SEARCH: string;
29
+ NO_ATTRIBUTES: string;
30
+ FORMAT: string;
31
+ STORAGE: string;
32
32
  };
33
33
  normalize: string;
34
34
  };
@@ -27,9 +27,9 @@ export declare const frTranslations: {
27
27
  code: {
28
28
  UNRECOGNIZED: string;
29
29
  FILE_MANDATORY: string;
30
- NB_ATTRIBUTES: string;
31
- CAST: string;
32
- ELASTIC_SEARCH: string;
30
+ NO_ATTRIBUTES: string;
31
+ FORMAT: string;
32
+ STORAGE: string;
33
33
  };
34
34
  normalize: string;
35
35
  };
@@ -2,12 +2,14 @@ import { InjectionToken } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { ManifestDescription } from '../model/manifest.interface';
4
4
  import { Dataset } from '../store/data-source/data-source.model';
5
+ import { Widget } from '../model/widget.interface';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare abstract class PryBaseAccess {
7
8
  abstract hasRole(...args: any[]): Observable<boolean>;
8
9
  abstract canModifyPresentation(presentation: ManifestDescription): Observable<boolean>;
9
10
  abstract hasGroup(group: string): Observable<boolean>;
10
11
  abstract canModifyDataset(dataset: Dataset): Observable<boolean>;
12
+ abstract canModifyWidget(widget: Widget): Observable<boolean>;
11
13
  }
12
14
  export declare const PRY_ACCESS_TOKEN: InjectionToken<PryBaseAccess>;
13
15
  export declare class PryDefaultAccessService extends PryBaseAccess {
@@ -16,6 +18,7 @@ export declare class PryDefaultAccessService extends PryBaseAccess {
16
18
  canModifyPresentation(presentation: ManifestDescription): Observable<boolean>;
17
19
  hasGroup(group: string): Observable<boolean>;
18
20
  canModifyDataset(dataset: Dataset): Observable<boolean>;
21
+ canModifyWidget(widget: Widget): Observable<boolean>;
19
22
  static ɵfac: i0.ɵɵFactoryDeclaration<PryDefaultAccessService, never>;
20
23
  static ɵprov: i0.ɵɵInjectableDeclaration<PryDefaultAccessService>;
21
24
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
3
  import { BehaviorSubject, Observable } from 'rxjs';
4
4
  import { DataSource } from '../../../../core/store/data-source/data-source.model';
@@ -7,7 +7,7 @@ import { SubscriptionnerDirective } from '../../subscriptionner.directive';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class DatasourceSelectorComponent extends SubscriptionnerDirective {
9
9
  private store;
10
- datasources$: Observable<DataSource[]>;
10
+ private cdr;
11
11
  manifest$: BehaviorSubject<WidgetManifest | null>;
12
12
  selectedDatasources$: Observable<DataSource[]>;
13
13
  selectedIds$: BehaviorSubject<string[]>;
@@ -19,7 +19,7 @@ export declare class DatasourceSelectorComponent extends SubscriptionnerDirectiv
19
19
  cancel: EventEmitter<any>;
20
20
  validated: EventEmitter<any>;
21
21
  itemsChanged: EventEmitter<string[]>;
22
- constructor(store: Store);
22
+ constructor(store: Store, cdr: ChangeDetectorRef);
23
23
  isGeo(item: DataSource): boolean;
24
24
  toggleSelection(id: string): void;
25
25
  updateDatasourceList(ids: string[]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "16.x || 17.x",
@@ -114,18 +114,18 @@
114
114
  "esm": "./esm2022/pipeline/provoly-dashboard-pipeline.mjs",
115
115
  "default": "./fesm2022/provoly-dashboard-pipeline.mjs"
116
116
  },
117
- "./restitution": {
118
- "types": "./restitution/index.d.ts",
119
- "esm2022": "./esm2022/restitution/provoly-dashboard-restitution.mjs",
120
- "esm": "./esm2022/restitution/provoly-dashboard-restitution.mjs",
121
- "default": "./fesm2022/provoly-dashboard-restitution.mjs"
122
- },
123
117
  "./presentation": {
124
118
  "types": "./presentation/index.d.ts",
125
119
  "esm2022": "./esm2022/presentation/provoly-dashboard-presentation.mjs",
126
120
  "esm": "./esm2022/presentation/provoly-dashboard-presentation.mjs",
127
121
  "default": "./fesm2022/provoly-dashboard-presentation.mjs"
128
122
  },
123
+ "./restitution": {
124
+ "types": "./restitution/index.d.ts",
125
+ "esm2022": "./esm2022/restitution/provoly-dashboard-restitution.mjs",
126
+ "esm": "./esm2022/restitution/provoly-dashboard-restitution.mjs",
127
+ "default": "./fesm2022/provoly-dashboard-restitution.mjs"
128
+ },
129
129
  "./search": {
130
130
  "types": "./search/index.d.ts",
131
131
  "esm2022": "./esm2022/search/provoly-dashboard-search.mjs",
@@ -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",
@@ -234,6 +204,36 @@
234
204
  "esm": "./esm2022/components/text-editor/provoly-dashboard-components-text-editor.mjs",
235
205
  "default": "./fesm2022/provoly-dashboard-components-text-editor.mjs"
236
206
  },
207
+ "./filters/autocomplete": {
208
+ "types": "./filters/autocomplete/index.d.ts",
209
+ "esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
210
+ "esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
211
+ "default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
212
+ },
213
+ "./filters/date": {
214
+ "types": "./filters/date/index.d.ts",
215
+ "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
216
+ "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
217
+ "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
218
+ },
219
+ "./filters/list": {
220
+ "types": "./filters/list/index.d.ts",
221
+ "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
222
+ "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
223
+ "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
224
+ },
225
+ "./filters/number": {
226
+ "types": "./filters/number/index.d.ts",
227
+ "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
228
+ "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
229
+ "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
230
+ },
231
+ "./filters/text": {
232
+ "types": "./filters/text/index.d.ts",
233
+ "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
234
+ "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
235
+ "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
236
+ },
237
237
  "./pipeline-components/filter": {
238
238
  "types": "./pipeline-components/filter/index.d.ts",
239
239
  "esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
@@ -1,13 +1,14 @@
1
1
  import { Overlay, OverlayRef } from '@angular/cdk/overlay';
2
2
  import { TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import { Store } from '@ngrx/store';
4
- import { ViewMode, Widget } from '@provoly/dashboard';
4
+ import { PryBaseAccess, ViewMode, Widget } from '@provoly/dashboard';
5
5
  import { BehaviorSubject, Observable } from 'rxjs';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class PryRestitutionCatalogComponent {
8
8
  private store;
9
9
  protected overlay: Overlay;
10
10
  protected viewContainerRef: ViewContainerRef;
11
+ private access;
11
12
  restitutions$: Observable<Widget[]>;
12
13
  search$: BehaviorSubject<string>;
13
14
  filteredRestitution$: Observable<Widget[]>;
@@ -17,13 +18,14 @@ export declare class PryRestitutionCatalogComponent {
17
18
  restitution?: Widget;
18
19
  overlayRef?: OverlayRef;
19
20
  templateActions: TemplateRef<any>;
20
- constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef);
21
+ canModify$: Observable<boolean>;
22
+ constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, access: PryBaseAccess);
21
23
  selectMode(newMode: ViewMode): void;
22
24
  selectRestitution(restitution: Widget): void;
23
25
  closeRestitution($event: void): void;
24
26
  deleteRestitution(id: string): void;
25
27
  editRestitution(restitution: Widget): void;
26
28
  toggleModalActions(restitution?: Widget, moreButton?: HTMLButtonElement): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<PryRestitutionCatalogComponent, never>;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<PryRestitutionCatalogComponent, [null, null, null, { optional: true; }]>;
28
30
  static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionCatalogComponent, "pry-restitution-catalog", never, {}, {}, never, never, false, never>;
29
31
  }
@@ -1,5 +1,5 @@
1
1
  import { AbstractControl, FormControl, FormGroup } from '@angular/forms';
2
- import { LibraryTypes, ManifestDescription, SubscriptionnerDirective } from '@provoly/dashboard';
2
+ import { LibraryTypes, ManifestDescription, PryI18nService, SubscriptionnerDirective } from '@provoly/dashboard';
3
3
  import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
4
4
  import { BehaviorSubject } from 'rxjs';
5
5
  import { Store } from '@ngrx/store';
@@ -19,6 +19,7 @@ export interface PresentationFormValue {
19
19
  }
20
20
  export declare class PresentationFormComponent extends SubscriptionnerDirective implements OnInit, AfterViewInit {
21
21
  protected store: Store;
22
+ private i18nService;
22
23
  form: FormGroup<PresentationForm>;
23
24
  image: string;
24
25
  type: LibraryTypes;
@@ -30,7 +31,7 @@ export declare class PresentationFormComponent extends SubscriptionnerDirective
30
31
  set selectedPresentation(presentation: ManifestDescription | undefined);
31
32
  formValue: BehaviorSubject<Partial<PresentationFormValue> | undefined>;
32
33
  isFormValid: BehaviorSubject<boolean>;
33
- constructor(store: Store);
34
+ constructor(store: Store, i18nService: PryI18nService);
34
35
  ngOnInit(): void;
35
36
  ngAfterViewInit(): void;
36
37
  get name(): AbstractControl<string | undefined>;