@provoly/dashboard 1.3.1 → 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.
- package/README.md +1 -1
- package/esm2022/import/i18n/en.translations.mjs +4 -4
- package/esm2022/import/i18n/fr.translations.mjs +4 -4
- package/esm2022/lib/core/access/access.service.mjs +4 -1
- package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +13 -8
- package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +33 -42
- package/esm2022/presentation/components/presentation.component.mjs +4 -8
- package/esm2022/presentation/i18n/en.translations.mjs +3 -2
- package/esm2022/presentation/i18n/fr.translations.mjs +3 -2
- package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +17 -9
- package/esm2022/toolbox/components/toolbox.component.mjs +3 -3
- package/esm2022/toolbox/shared/presentation-form/presentation-form.component.mjs +13 -9
- package/esm2022/widgets/widget-table/component/widget-table.component.mjs +3 -3
- package/esm2022/widgets/widget-table/i18n/en.translations.mjs +10 -2
- package/esm2022/widgets/widget-table/i18n/fr.translations.mjs +10 -2
- package/esm2022/widgets/widget-table/style/css.component.mjs +2 -2
- package/fesm2022/provoly-dashboard-import.mjs +6 -6
- package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +39 -50
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +16 -8
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +25 -21
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +22 -6
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +15 -7
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/import/i18n/en.translations.d.ts +3 -3
- package/import/i18n/fr.translations.d.ts +3 -3
- package/lib/core/access/access.service.d.ts +3 -0
- package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts +3 -3
- package/package.json +1 -1
- package/presentation/components/add-edit-presentation/add-edit-presentation.component.d.ts +3 -1
- package/presentation/components/presentation.component.d.ts +4 -8
- package/presentation/i18n/en.translations.d.ts +1 -0
- package/presentation/i18n/fr.translations.d.ts +1 -0
- package/restitution/components/restitution-catalog/restitution-catalog.component.d.ts +5 -3
- package/toolbox/shared/presentation-form/presentation-form.component.d.ts +3 -2
- package/widgets/widget-table/i18n/en.translations.d.ts +8 -0
- package/widgets/widget-table/i18n/fr.translations.d.ts +8 -0
- package/widgets/widget-table/style/_o-widget-table.scss +4 -0
|
@@ -26,9 +26,9 @@ export declare const enTranslations: {
|
|
|
26
26
|
code: {
|
|
27
27
|
UNRECOGNIZED: string;
|
|
28
28
|
FILE_MANDATORY: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
}
|
package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
@@ -10,6 +10,7 @@ export declare class PryAddEditPresentationComponent extends SubscriptionnerDire
|
|
|
10
10
|
protected store: Store;
|
|
11
11
|
protected router: Router;
|
|
12
12
|
staticManifest$: Observable<GlobalManifest>;
|
|
13
|
+
staticManifest?: GlobalManifest;
|
|
13
14
|
selectedPresentation$: BehaviorSubject<ManifestDescription | undefined>;
|
|
14
15
|
chosenLayout: string;
|
|
15
16
|
metadataDefs: IMetadata[] | undefined;
|
|
@@ -23,13 +24,14 @@ export declare class PryAddEditPresentationComponent extends SubscriptionnerDire
|
|
|
23
24
|
mode: 'theme' | 'meta';
|
|
24
25
|
goBack: EventEmitter<void>;
|
|
25
26
|
constructor(store: Store, router: Router);
|
|
26
|
-
save(): void;
|
|
27
27
|
dispatchSave(): ManifestDescription;
|
|
28
|
+
save(): void;
|
|
28
29
|
configureDashboard(selectedPresentation: ManifestDescription): void;
|
|
29
30
|
addMetadata(metadata: MetaEventType): void;
|
|
30
31
|
removeMetadata(metadata: MetaEventType): void;
|
|
31
32
|
close(): void;
|
|
32
33
|
metadata(): MetadataValue[];
|
|
34
|
+
getNewManifest(): GlobalManifest;
|
|
33
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryAddEditPresentationComponent, [null, { optional: true; }]>;
|
|
34
36
|
static ɵcmp: i0.ɵɵComponentDeclaration<PryAddEditPresentationComponent, "pry-add-edit-presentation", never, { "selectedPresentation": { "alias": "selectedPresentation"; "required": false; }; "edition": { "alias": "edition"; "required": false; }; "themePrefix": { "alias": "themePrefix"; "required": false; }; "editionStartUrl": { "alias": "editionStartUrl"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "goBack": "goBack"; }, never, never, false, never>;
|
|
35
37
|
}
|
|
@@ -2,7 +2,7 @@ import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
|
2
2
|
import { ElementRef, NgZone, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { Store } from '@ngrx/store';
|
|
5
|
-
import {
|
|
5
|
+
import { ManifestDescription, PryBaseAccess, PryDialogService, PryTitleService, SubscriptionnerDirective, ViewMode } from '@provoly/dashboard';
|
|
6
6
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class PryPresentationComponent extends SubscriptionnerDirective {
|
|
@@ -16,18 +16,14 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
|
|
|
16
16
|
private access;
|
|
17
17
|
private dialog;
|
|
18
18
|
manifests$: Observable<ManifestDescription[]>;
|
|
19
|
+
search$: BehaviorSubject<string>;
|
|
20
|
+
filteredPresentations$: Observable<ManifestDescription[]>;
|
|
19
21
|
selectedPresentation$: BehaviorSubject<ManifestDescription | undefined>;
|
|
20
|
-
staticManifest$?: Observable<DashboardManifest>;
|
|
21
22
|
selectedMode: ViewMode;
|
|
23
|
+
ViewMode: typeof ViewMode;
|
|
22
24
|
templateModalActions: TemplateRef<any>;
|
|
23
25
|
openModal: ElementRef<HTMLButtonElement>;
|
|
24
26
|
overlayRef?: OverlayRef;
|
|
25
|
-
accessRightsByGroup: {
|
|
26
|
-
[key: string]: string[];
|
|
27
|
-
};
|
|
28
|
-
ViewMode: typeof ViewMode;
|
|
29
|
-
search$: BehaviorSubject<string>;
|
|
30
|
-
filteredPresentations$: Observable<ManifestDescription[]>;
|
|
31
27
|
editionStartUrl: string;
|
|
32
28
|
consultStartUrl: string;
|
|
33
29
|
meAsOwner?: string;
|
|
@@ -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
|
-
|
|
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,
|
|
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>;
|
|
@@ -9,6 +9,14 @@ export declare const enTranslations: {
|
|
|
9
9
|
empty: string;
|
|
10
10
|
description: string;
|
|
11
11
|
remaining: string;
|
|
12
|
+
headerTextAlign: string;
|
|
13
|
+
cellTextAlign: string;
|
|
14
|
+
verticalSeparator: string;
|
|
15
|
+
align: {
|
|
16
|
+
left: string;
|
|
17
|
+
center: string;
|
|
18
|
+
right: string;
|
|
19
|
+
};
|
|
12
20
|
};
|
|
13
21
|
};
|
|
14
22
|
};
|
|
@@ -9,6 +9,14 @@ export declare const frTranslations: {
|
|
|
9
9
|
empty: string;
|
|
10
10
|
description: string;
|
|
11
11
|
remaining: string;
|
|
12
|
+
headerTextAlign: string;
|
|
13
|
+
cellTextAlign: string;
|
|
14
|
+
verticalSeparator: string;
|
|
15
|
+
align: {
|
|
16
|
+
left: string;
|
|
17
|
+
center: string;
|
|
18
|
+
right: string;
|
|
19
|
+
};
|
|
12
20
|
};
|
|
13
21
|
};
|
|
14
22
|
};
|