@provoly/dashboard 0.21.2 → 0.21.4
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/auth/geoAuth.service.mjs +29 -5
- package/esm2022/lib/core/components/chips-selector/chips-selector.component.mjs +111 -0
- package/esm2022/lib/core/components/select/select.component.mjs +13 -3
- package/esm2022/lib/core/components/share/group-share/group-share.component.mjs +113 -0
- package/esm2022/lib/core/components/share/share.model.mjs +1 -1
- package/esm2022/lib/core/components/share/share.module.mjs +9 -6
- package/esm2022/lib/core/components/snackbar/snackbar.service.mjs +8 -3
- package/esm2022/lib/core/core.module.mjs +5 -1
- package/esm2022/lib/core/i18n/en.translations.mjs +32 -2
- package/esm2022/lib/core/i18n/fr.translations.mjs +32 -3
- package/esm2022/lib/core/model/display-options.interface.mjs +24 -7
- package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
- package/esm2022/lib/core/public-api.mjs +3 -1
- package/esm2022/lib/core/store/config/config.actions.mjs +4 -2
- package/esm2022/lib/core/store/config/config.effects.mjs +9 -2
- package/esm2022/lib/core/store/config/config.reducer.mjs +6 -2
- package/esm2022/lib/core/store/config/config.selectors.mjs +4 -2
- package/esm2022/lib/core/store/config/config.service.mjs +6 -1
- package/esm2022/lib/core/store/item/item.effects.mjs +2 -2
- package/esm2022/lib/dashboard/components/dashboard.component.mjs +3 -3
- package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +33 -65
- package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +4 -5
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -1
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +13 -7
- package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +8 -2
- package/esm2022/lib/dashboard/store/manifest.service.mjs +4 -4
- package/esm2022/presentation/components/presentation.component.mjs +13 -8
- package/esm2022/presentation/i18n/en.translations.mjs +2 -1
- package/esm2022/presentation/i18n/fr.translations.mjs +3 -2
- package/esm2022/restitution/components/restitution/restitution.component.mjs +7 -4
- package/esm2022/restitution/i18n/en.translations.mjs +1 -6
- package/esm2022/restitution/i18n/fr.translations.mjs +1 -6
- package/esm2022/toolbox/components/delete/delete.component.mjs +29 -0
- package/esm2022/toolbox/components/save-view/save-view.component.mjs +8 -8
- package/esm2022/toolbox/components/share/share.component.mjs +69 -0
- package/esm2022/toolbox/components/switch-to-edit-content/switch-to-edit-content.component.mjs +26 -0
- package/esm2022/toolbox/components/toolbox.component.mjs +3 -3
- package/esm2022/toolbox/public-api.mjs +4 -1
- package/esm2022/toolbox/toolbox.model.mjs +22 -2
- package/esm2022/toolbox/toolbox.module.mjs +16 -4
- package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +27 -13
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +7 -8
- package/esm2022/widgets/widget-map/utils/cql-utils.class.mjs +6 -5
- package/esm2022/widgets/widget-vega/component/widget-vega.component.mjs +2 -2
- package/fesm2022/provoly-dashboard-presentation.mjs +15 -8
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +6 -13
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +138 -14
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +37 -23
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +1056 -738
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/auth/geoAuth.service.d.ts +5 -1
- package/lib/core/components/chips-selector/chips-selector.component.d.ts +38 -0
- package/lib/core/components/select/select.component.d.ts +2 -0
- package/lib/core/components/share/group-share/group-share.component.d.ts +33 -0
- package/lib/core/components/share/share.model.d.ts +5 -0
- package/lib/core/components/share/share.module.d.ts +8 -5
- package/lib/core/components/snackbar/snackbar.service.d.ts +2 -1
- package/lib/core/core.module.d.ts +24 -23
- package/lib/core/i18n/en.translations.d.ts +30 -0
- package/lib/core/i18n/fr.translations.d.ts +30 -1
- package/lib/core/model/display-options.interface.d.ts +3 -0
- package/lib/core/model/manifest.interface.d.ts +1 -2
- package/lib/core/public-api.d.ts +2 -0
- package/lib/core/store/config/config.actions.d.ts +8 -1
- package/lib/core/store/config/config.effects.d.ts +4 -0
- package/lib/core/store/config/config.reducer.d.ts +2 -0
- package/lib/core/store/config/config.selectors.d.ts +1 -0
- package/lib/core/store/config/config.service.d.ts +2 -0
- package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts +10 -23
- package/lib/dashboard/store/dashboard.actions.d.ts +2 -3
- package/lib/dashboard/store/dashboard.effects.d.ts +1 -1
- package/lib/dashboard/store/manifest.service.d.ts +2 -3
- package/package.json +19 -19
- package/presentation/components/presentation.component.d.ts +3 -3
- package/presentation/i18n/en.translations.d.ts +1 -0
- package/presentation/i18n/fr.translations.d.ts +1 -0
- package/restitution/components/restitution/restitution.component.d.ts +1 -0
- package/restitution/i18n/en.translations.d.ts +0 -5
- package/restitution/i18n/fr.translations.d.ts +0 -5
- package/styles/components/_o-draggable-menu.scss +8 -0
- package/toolbox/components/delete/delete.component.d.ts +19 -0
- package/toolbox/components/save-view/save-view.component.d.ts +3 -3
- package/toolbox/components/share/share.component.d.ts +25 -0
- package/toolbox/components/switch-to-edit-content/switch-to-edit-content.component.d.ts +15 -0
- package/toolbox/public-api.d.ts +3 -0
- package/toolbox/toolbox.module.d.ts +12 -9
- package/widgets/widget-map/component/widget-map-layer.service.d.ts +4 -3
- package/widgets/widget-map/component/widget-map.component.d.ts +3 -5
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { PrySnackbarService } from '../components/snackbar/snackbar.service';
|
|
4
|
+
import { PryI18nService } from '../i18n/i18n.service';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare abstract class PryGeoAuthService {
|
|
5
7
|
abstract customLoader(tile: any, src: string): void;
|
|
@@ -7,7 +9,9 @@ export declare abstract class PryGeoAuthService {
|
|
|
7
9
|
export declare const PRY_GEOAUTH_TOKEN: InjectionToken<PryGeoAuthService>;
|
|
8
10
|
export declare class PryDefaultGeoAuthService extends PryGeoAuthService {
|
|
9
11
|
private httpClient;
|
|
10
|
-
|
|
12
|
+
private snack;
|
|
13
|
+
private i18nService;
|
|
14
|
+
constructor(httpClient: HttpClient, snack: PrySnackbarService, i18nService: PryI18nService);
|
|
11
15
|
customLoader(tile: any, src: string): void;
|
|
12
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryDefaultGeoAuthService, never>;
|
|
13
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<PryDefaultGeoAuthService>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { SubscriptionnerDirective } from '../../../dashboard/components/subscriptionner.directive';
|
|
4
|
+
import { PryI18nService } from '../../i18n/i18n.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ChipsSelectorComponent extends SubscriptionnerDirective {
|
|
7
|
+
private cdr;
|
|
8
|
+
private i18n;
|
|
9
|
+
bindValue: string;
|
|
10
|
+
bindLabel: string;
|
|
11
|
+
translationStringBase: string;
|
|
12
|
+
itemTranslationStringBase: string;
|
|
13
|
+
showActionButtons: boolean;
|
|
14
|
+
set items(items: any[]);
|
|
15
|
+
set usedItems(items: any[]);
|
|
16
|
+
cancel: EventEmitter<any>;
|
|
17
|
+
validated: EventEmitter<any>;
|
|
18
|
+
previousTab: EventEmitter<any>;
|
|
19
|
+
nextTab: EventEmitter<any>;
|
|
20
|
+
itemsChanged: EventEmitter<any[]>;
|
|
21
|
+
items$: BehaviorSubject<any[] | null>;
|
|
22
|
+
usedItems$: BehaviorSubject<any[]>;
|
|
23
|
+
unusedItems$: Observable<any[] | null>;
|
|
24
|
+
search$: BehaviorSubject<string>;
|
|
25
|
+
idToLabel: {
|
|
26
|
+
[id: string]: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
constructor(cdr: ChangeDetectorRef, i18n: PryI18nService);
|
|
29
|
+
toggleItemSelection(item: any): void;
|
|
30
|
+
isGeo(item: any): boolean;
|
|
31
|
+
search($event: any): void;
|
|
32
|
+
getItemValue(item: any): any;
|
|
33
|
+
getItemLabel(item: any): any;
|
|
34
|
+
areItemsEqual(item1: any, item2: any): boolean;
|
|
35
|
+
isItemUsed(item: any, usedItems?: any[]): any;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipsSelectorComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipsSelectorComponent, "pry-chips-selector", never, { "bindValue": { "alias": "bindValue"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "translationStringBase": { "alias": "translationStringBase"; "required": false; }; "itemTranslationStringBase": { "alias": "itemTranslationStringBase"; "required": false; }; "showActionButtons": { "alias": "showActionButtons"; "required": false; }; "items": { "alias": "items"; "required": false; }; "usedItems": { "alias": "usedItems"; "required": false; }; }, { "cancel": "cancel"; "validated": "validated"; "previousTab": "previousTab"; "nextTab": "nextTab"; "itemsChanged": "itemsChanged"; }, never, never, false, never>;
|
|
38
|
+
}
|
|
@@ -60,6 +60,8 @@ export declare class PrySelectComponent extends SubscriptionnerDirective impleme
|
|
|
60
60
|
search($event: string): void;
|
|
61
61
|
select($event: Event, item: any, index: number): void;
|
|
62
62
|
toggle(force?: boolean): void;
|
|
63
|
+
handleClick(): void;
|
|
64
|
+
onInputFocus(force?: boolean): void;
|
|
63
65
|
private getOverlayConfig;
|
|
64
66
|
get _elementRef(): HTMLDivElement;
|
|
65
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrySelectComponent, never>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { Group, PryVisibilityType } from '../share.model';
|
|
4
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
5
|
+
import { Store } from '@ngrx/store';
|
|
6
|
+
import { SubscriptionnerDirective } from '../../../../dashboard/components/subscriptionner.directive';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class PryGroupShareComponent extends SubscriptionnerDirective implements ControlValueAccessor {
|
|
9
|
+
private store;
|
|
10
|
+
private _cd;
|
|
11
|
+
private _onChange;
|
|
12
|
+
private _onTouched;
|
|
13
|
+
_disabled: boolean;
|
|
14
|
+
assignedGroupNames$: BehaviorSubject<string[]>;
|
|
15
|
+
radioValue: PryVisibilityType;
|
|
16
|
+
assignedGroups$: Observable<Group[]>;
|
|
17
|
+
groups$: Observable<Group[]>;
|
|
18
|
+
PryVisibilityType: typeof PryVisibilityType;
|
|
19
|
+
visibilityTypes: {
|
|
20
|
+
label: string;
|
|
21
|
+
value: PryVisibilityType;
|
|
22
|
+
}[];
|
|
23
|
+
constructor(store: Store, _cd: ChangeDetectorRef);
|
|
24
|
+
writeValue(value: string[] | undefined): void;
|
|
25
|
+
registerOnChange(fn: any): void;
|
|
26
|
+
registerOnTouched(fn: any): void;
|
|
27
|
+
setDisabledState(isDisabled: boolean): void;
|
|
28
|
+
updateRadioValue(groups: string[]): void;
|
|
29
|
+
changeGroupsBasedOnRadioValue(type: PryVisibilityType): void;
|
|
30
|
+
changeGroups(groups: (Group | string)[] | null): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PryGroupShareComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PryGroupShareComponent, "pry-group-share", never, {}, {}, never, never, false, never>;
|
|
33
|
+
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./share.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@angular/
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
3
|
+
import * as i2 from "./group-share/group-share.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "../select/select.module";
|
|
7
|
+
import * as i6 from "../../i18n/i18n.module";
|
|
8
|
+
import * as i7 from "../../core.module";
|
|
9
|
+
import * as i8 from "../../../dashboard/dashboard.module";
|
|
7
10
|
export declare class PryShareModule {
|
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryShareModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PryShareModule, [typeof i1.PryShareComponent], [typeof
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PryShareModule, [typeof i1.PryShareComponent, typeof i2.PryGroupShareComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.PrySelectModule, typeof i6.PryI18nModule, typeof i7.PryCoreModule, typeof i8.PryDashboardModule], [typeof i1.PryShareComponent, typeof i2.PryGroupShareComponent]>;
|
|
10
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<PryShareModule>;
|
|
11
14
|
}
|
|
@@ -17,7 +17,8 @@ export declare class PrySnackbarService {
|
|
|
17
17
|
constructor(overlay: Overlay, translate: PryI18nService);
|
|
18
18
|
setRootViewContainerRef(viewContainerRef: ViewContainerRef): void;
|
|
19
19
|
dispatchOpenEvent(message: PrySnackMessage): void;
|
|
20
|
-
|
|
20
|
+
notMitigatedOpen(message: PrySnackMessage): Observable<void> | null;
|
|
21
|
+
open(message: PrySnackMessage): void;
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrySnackbarService, never>;
|
|
22
23
|
static ɵprov: i0.ɵɵInjectableDeclaration<PrySnackbarService>;
|
|
23
24
|
}
|
|
@@ -7,28 +7,29 @@ import * as i3 from "./components/get-secured-image/get-secured-image.pipe";
|
|
|
7
7
|
import * as i4 from "./components/base-layout/base-layout.component";
|
|
8
8
|
import * as i5 from "./components/base-menu/base-menu.component";
|
|
9
9
|
import * as i6 from "./components/base-toolbox/base-toolbox.component";
|
|
10
|
-
import * as i7 from "./components/
|
|
11
|
-
import * as i8 from "./
|
|
12
|
-
import * as i9 from "./
|
|
13
|
-
import * as i10 from "./components/
|
|
14
|
-
import * as i11 from "./components/
|
|
15
|
-
import * as i12 from "./components/accordion/accordion
|
|
16
|
-
import * as i13 from "./components/
|
|
17
|
-
import * as i14 from "./components/tabs/tab.component";
|
|
18
|
-
import * as i15 from "./components/
|
|
19
|
-
import * as i16 from "./components/
|
|
20
|
-
import * as i17 from "
|
|
21
|
-
import * as i18 from "@angular/
|
|
22
|
-
import * as i19 from "@angular/
|
|
23
|
-
import * as i20 from "@
|
|
24
|
-
import * as i21 from "@ngrx/
|
|
25
|
-
import * as i22 from "
|
|
26
|
-
import * as i23 from "
|
|
27
|
-
import * as i24 from "
|
|
28
|
-
import * as i25 from "./
|
|
29
|
-
import * as i26 from "./
|
|
30
|
-
import * as i27 from "
|
|
31
|
-
import * as i28 from "@angular/
|
|
10
|
+
import * as i7 from "./components/chips-selector/chips-selector.component";
|
|
11
|
+
import * as i8 from "./components/nq-color-selector/nq-color-selector.component";
|
|
12
|
+
import * as i9 from "./access/access.directive";
|
|
13
|
+
import * as i10 from "./components/upload/upload.component";
|
|
14
|
+
import * as i11 from "./components/select-image/select-image.component";
|
|
15
|
+
import * as i12 from "./components/accordion/accordion.component";
|
|
16
|
+
import * as i13 from "./components/accordion/accordion-item/accordion-item.component";
|
|
17
|
+
import * as i14 from "./components/tabs/tab-group.component";
|
|
18
|
+
import * as i15 from "./components/tabs/tab.component";
|
|
19
|
+
import * as i16 from "./components/ellipsis.directive";
|
|
20
|
+
import * as i17 from "./components/base-toolbox-action/base-toolbox-action.component";
|
|
21
|
+
import * as i18 from "@angular/common";
|
|
22
|
+
import * as i19 from "@angular/router";
|
|
23
|
+
import * as i20 from "@angular/common/http";
|
|
24
|
+
import * as i21 from "@ngrx/store";
|
|
25
|
+
import * as i22 from "@ngrx/effects";
|
|
26
|
+
import * as i23 from "./components/icon/icon.module";
|
|
27
|
+
import * as i24 from "@angular/cdk/overlay";
|
|
28
|
+
import * as i25 from "./components/overlay/overlay.module";
|
|
29
|
+
import * as i26 from "./i18n/i18n.module";
|
|
30
|
+
import * as i27 from "./components/modal-status/modal-status.module";
|
|
31
|
+
import * as i28 from "@angular/cdk/accordion";
|
|
32
|
+
import * as i29 from "@angular/forms";
|
|
32
33
|
export declare class PryCoreModule {
|
|
33
34
|
private pryTranslateService;
|
|
34
35
|
constructor(pryTranslateService: PryI18nService);
|
|
@@ -38,6 +39,6 @@ export declare class PryCoreModule {
|
|
|
38
39
|
geoAuthProvider?: Provider;
|
|
39
40
|
}): ModuleWithProviders<PryCoreModule>;
|
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryCoreModule, never>;
|
|
41
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PryCoreModule, [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.
|
|
42
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PryCoreModule, [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.ChipsSelectorComponent, typeof i8.PryNqColorSelectorComponent, typeof i9.PryAccessDirective, typeof i10.PryUploadComponent, typeof i11.PrySelectImageComponent, typeof i12.AccordionComponent, typeof i13.AccordionItemComponent, typeof i14.TabGroupComponent, typeof i15.TabComponent, typeof i16.EllipsisDirective, typeof i17.BaseToolboxActionComponent], [typeof i18.CommonModule, typeof i19.RouterModule, typeof i20.HttpClientModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i23.PryIconModule, typeof i24.OverlayModule, typeof i25.PryOverlayModule, typeof i26.PryI18nModule, typeof i27.PryModalStatusModule, typeof i28.CdkAccordionModule, typeof i29.FormsModule], [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.ChipsSelectorComponent, typeof i8.PryNqColorSelectorComponent, typeof i9.PryAccessDirective, typeof i10.PryUploadComponent, typeof i11.PrySelectImageComponent, typeof i12.AccordionComponent, typeof i13.AccordionItemComponent, typeof i14.TabGroupComponent, typeof i15.TabComponent, typeof i16.EllipsisDirective]>;
|
|
42
43
|
static ɵinj: i0.ɵɵInjectorDeclaration<PryCoreModule>;
|
|
43
44
|
}
|
|
@@ -158,6 +158,10 @@ export declare const enTranslations: {
|
|
|
158
158
|
'1/4': string;
|
|
159
159
|
'1/4_detailled': string;
|
|
160
160
|
};
|
|
161
|
+
switchEdit: string;
|
|
162
|
+
switchEditContent: string;
|
|
163
|
+
share: string;
|
|
164
|
+
delete: string;
|
|
161
165
|
};
|
|
162
166
|
manifest: {
|
|
163
167
|
name: string;
|
|
@@ -301,6 +305,29 @@ export declare const enTranslations: {
|
|
|
301
305
|
metadata: {
|
|
302
306
|
view: string;
|
|
303
307
|
};
|
|
308
|
+
components: {
|
|
309
|
+
chipsSelector: {
|
|
310
|
+
datasource: {
|
|
311
|
+
select: string;
|
|
312
|
+
selection: string;
|
|
313
|
+
selectItem: string;
|
|
314
|
+
unselectItem: string;
|
|
315
|
+
noItemSelected: string;
|
|
316
|
+
};
|
|
317
|
+
share: {
|
|
318
|
+
select: string;
|
|
319
|
+
selection: string;
|
|
320
|
+
selectItem: string;
|
|
321
|
+
unselectItem: string;
|
|
322
|
+
noItemSelected: string;
|
|
323
|
+
groups: {
|
|
324
|
+
ALL: string;
|
|
325
|
+
CONNECTED: string;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
searchData: string;
|
|
330
|
+
};
|
|
304
331
|
errors: {
|
|
305
332
|
default: string;
|
|
306
333
|
codes: {
|
|
@@ -351,5 +378,8 @@ export declare const enTranslations: {
|
|
|
351
378
|
autocomplete: string;
|
|
352
379
|
};
|
|
353
380
|
};
|
|
381
|
+
geoAuth: {
|
|
382
|
+
failure: string;
|
|
383
|
+
};
|
|
354
384
|
};
|
|
355
385
|
};
|
|
@@ -119,7 +119,6 @@ export declare const frTranslations: {
|
|
|
119
119
|
rename: string;
|
|
120
120
|
restore: string;
|
|
121
121
|
save: string;
|
|
122
|
-
share: string;
|
|
123
122
|
drag: string;
|
|
124
123
|
dragIndication: string;
|
|
125
124
|
barchart: string;
|
|
@@ -159,6 +158,10 @@ export declare const frTranslations: {
|
|
|
159
158
|
'1/4': string;
|
|
160
159
|
'1/4_detailled': string;
|
|
161
160
|
};
|
|
161
|
+
switchEdit: string;
|
|
162
|
+
switchEditContent: string;
|
|
163
|
+
share: string;
|
|
164
|
+
delete: string;
|
|
162
165
|
};
|
|
163
166
|
manifest: {
|
|
164
167
|
name: string;
|
|
@@ -302,6 +305,29 @@ export declare const frTranslations: {
|
|
|
302
305
|
metadata: {
|
|
303
306
|
view: string;
|
|
304
307
|
};
|
|
308
|
+
components: {
|
|
309
|
+
searchData: string;
|
|
310
|
+
chipsSelector: {
|
|
311
|
+
datasource: {
|
|
312
|
+
select: string;
|
|
313
|
+
selection: string;
|
|
314
|
+
selectItem: string;
|
|
315
|
+
unselectItem: string;
|
|
316
|
+
noItemSelected: string;
|
|
317
|
+
};
|
|
318
|
+
share: {
|
|
319
|
+
select: string;
|
|
320
|
+
selection: string;
|
|
321
|
+
selectItem: string;
|
|
322
|
+
unselectItem: string;
|
|
323
|
+
noItemSelected: string;
|
|
324
|
+
groups: {
|
|
325
|
+
ALL: string;
|
|
326
|
+
CONNECTED: string;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
305
331
|
errors: {
|
|
306
332
|
default: string;
|
|
307
333
|
codes: {
|
|
@@ -352,5 +378,8 @@ export declare const frTranslations: {
|
|
|
352
378
|
autocomplete: string;
|
|
353
379
|
};
|
|
354
380
|
};
|
|
381
|
+
geoAuth: {
|
|
382
|
+
failure: string;
|
|
383
|
+
};
|
|
355
384
|
};
|
|
356
385
|
};
|
|
@@ -17,6 +17,9 @@ export interface ToolboxDisplayOptions {
|
|
|
17
17
|
default_size: boolean;
|
|
18
18
|
refresh_datasets: boolean;
|
|
19
19
|
automate_refresh: boolean;
|
|
20
|
+
edit_presentation_content: boolean;
|
|
21
|
+
share: boolean;
|
|
22
|
+
delete: boolean;
|
|
20
23
|
}
|
|
21
24
|
export interface WidgetContextMenuDisplayOptions {
|
|
22
25
|
datasourceSelection: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PryVisibility } from '../components/share/share.model';
|
|
2
1
|
import { MetadataValue } from './admin-api.model';
|
|
3
2
|
import { Filter } from './filter.interface';
|
|
4
3
|
import { ChartAggregatedWidgetOptions } from './widget-aggregated-chart-manifest.interface';
|
|
@@ -21,7 +20,7 @@ export interface ManifestDescription {
|
|
|
21
20
|
cover: boolean;
|
|
22
21
|
creationDate: string;
|
|
23
22
|
modificationDate: string;
|
|
24
|
-
|
|
23
|
+
groups: string[];
|
|
25
24
|
owner: boolean;
|
|
26
25
|
datasource: string[];
|
|
27
26
|
metadata: MetadataValue[];
|
package/lib/core/public-api.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ export * from './components/select/select.module';
|
|
|
91
91
|
export * from './components/range/range.component';
|
|
92
92
|
export * from './components/range/range.module';
|
|
93
93
|
export * from './components/share/share.component';
|
|
94
|
+
export * from './components/share/group-share/group-share.component';
|
|
94
95
|
export * from './components/share/share.model';
|
|
95
96
|
export * from './components/share/share.module';
|
|
96
97
|
export * from './components/snackbar/snack.interface';
|
|
@@ -120,3 +121,4 @@ export * from './errors/http-error-interceptor.service';
|
|
|
120
121
|
export * from './components/about/pry-about.module';
|
|
121
122
|
export * from './components/about/about.component';
|
|
122
123
|
export * from './components/ellipsis.directive';
|
|
124
|
+
export * from './components/chips-selector/chips-selector.component';
|
|
@@ -2,7 +2,8 @@ import { TooltipOfClass } from '../../model/tooltip-of-class.interface';
|
|
|
2
2
|
import { ChartOption } from '../../model/widget-chart-manifest.interface';
|
|
3
3
|
import { Widget } from '../../model/widget.interface';
|
|
4
4
|
import { IconDefinitions } from './icon-definitions.interface';
|
|
5
|
-
import { Versions } from
|
|
5
|
+
import { Versions } from './versions.interface';
|
|
6
|
+
import { Group } from '../../components/share/share.model';
|
|
6
7
|
export declare const ConfigActions: {
|
|
7
8
|
defineUrls: import("@ngrx/store").ActionCreator<"[Config] (bus) defining urls", (props: {
|
|
8
9
|
mapUrl?: string | undefined;
|
|
@@ -198,4 +199,10 @@ export declare const ConfigActions: {
|
|
|
198
199
|
}) => {
|
|
199
200
|
error: string;
|
|
200
201
|
} & import("@ngrx/store/src/models").TypedAction<"[about] Load Versions Failure">>;
|
|
202
|
+
loadAccessGroups: import("@ngrx/store").ActionCreator<"[Users] load access groups", () => import("@ngrx/store/src/models").TypedAction<"[Users] load access groups">>;
|
|
203
|
+
loadAccessGroupsSuccess: import("@ngrx/store").ActionCreator<"[Config] load access groups Success", (props: {
|
|
204
|
+
groups: Group[];
|
|
205
|
+
}) => {
|
|
206
|
+
groups: Group[];
|
|
207
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Config] load access groups Success">>;
|
|
201
208
|
};
|
|
@@ -6,6 +6,7 @@ import { PryI18nService } from '../../i18n/i18n.service';
|
|
|
6
6
|
import { ConfigService } from './config.service';
|
|
7
7
|
import { OpenMapTilesService } from './open-map-tiles.service';
|
|
8
8
|
import { Versions } from './versions.interface';
|
|
9
|
+
import { Group } from '../../components/share/share.model';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class ConfigEffects {
|
|
11
12
|
private actions$;
|
|
@@ -56,6 +57,9 @@ export declare class ConfigEffects {
|
|
|
56
57
|
} & import("@ngrx/store/src/models").TypedAction<"[about] (bus) Load Versions Success">) | ({
|
|
57
58
|
error: string;
|
|
58
59
|
} & import("@ngrx/store/src/models").TypedAction<"[about] Load Versions Failure">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
60
|
+
loadAccessGroups$: import("rxjs").Observable<{
|
|
61
|
+
groups: Group[];
|
|
62
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Config] load access groups Success">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
59
63
|
constructor(actions$: Actions, openMapTilesService: OpenMapTilesService, store: Store, configService: ConfigService, snackBar: PrySnackbarService, translateService: PryI18nService, pryDialog: PryDialogService);
|
|
60
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigEffects, never>;
|
|
61
65
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigEffects>;
|
|
@@ -3,6 +3,7 @@ import { ChartOption } from '../../model/widget-chart-manifest.interface';
|
|
|
3
3
|
import { Widget } from '../../model/widget.interface';
|
|
4
4
|
import { IconDefinitions } from './icon-definitions.interface';
|
|
5
5
|
import { Versions } from './versions.interface';
|
|
6
|
+
import { Group } from '../../components/share/share.model';
|
|
6
7
|
export declare const configFeatureKey = "@pry/config";
|
|
7
8
|
export interface ConfigState {
|
|
8
9
|
pryUrl: string;
|
|
@@ -34,6 +35,7 @@ export interface ConfigState {
|
|
|
34
35
|
chartOption: ChartOption;
|
|
35
36
|
maxAttributesInTiles: number;
|
|
36
37
|
versions: Versions | null;
|
|
38
|
+
accessGroups: Group[];
|
|
37
39
|
}
|
|
38
40
|
export declare const initialConfigState: ConfigState;
|
|
39
41
|
export declare const configReducer: import("@ngrx/store").ActionReducer<ConfigState, import("@ngrx/store").Action>;
|
|
@@ -48,4 +48,5 @@ export declare const ConfigSelectors: {
|
|
|
48
48
|
maxAttributesInTiles: import("@ngrx/store").MemoizedSelector<object, number, (s1: fromConfig.ConfigState) => number>;
|
|
49
49
|
execUrl: import("@ngrx/store").MemoizedSelector<object, string, (s1: string) => string>;
|
|
50
50
|
selectVersions: import("@ngrx/store").MemoizedSelector<object, import("./versions.interface").Versions | null, (s1: fromConfig.ConfigState) => import("./versions.interface").Versions | null>;
|
|
51
|
+
accessGroups: import("@ngrx/store").MemoizedSelector<object, import("@provoly/dashboard").Group[], (s1: fromConfig.ConfigState) => import("@provoly/dashboard").Group[]>;
|
|
51
52
|
};
|
|
@@ -5,6 +5,7 @@ import { PrySnackbarService } from '../../components/snackbar/snackbar.service';
|
|
|
5
5
|
import { PryI18nService } from '../../i18n/i18n.service';
|
|
6
6
|
import { Widget } from '../../model/widget.interface';
|
|
7
7
|
import { BackendVersion, Versions } from './versions.interface';
|
|
8
|
+
import { Group } from '../../components/share/share.model';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export interface ParamContent {
|
|
10
11
|
domain: string;
|
|
@@ -49,6 +50,7 @@ export declare class ConfigService {
|
|
|
49
50
|
getAllWidgets(): Observable<Widget[]>;
|
|
50
51
|
handleBackendVersionError(obs: Observable<BackendVersion>): Observable<BackendVersion>;
|
|
51
52
|
getAllVersions(): Observable<Versions>;
|
|
53
|
+
getAccessGroups(): Observable<Group[]>;
|
|
52
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService, never>;
|
|
53
55
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
|
|
54
56
|
}
|
package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts
CHANGED
|
@@ -1,33 +1,20 @@
|
|
|
1
|
-
import { ChangeDetectorRef
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
3
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
|
+
import { NamedQuery } from '../../../../core/store/data-source/data-source.model';
|
|
5
|
+
import { ChipsSelectorComponent } from '../../../../core/components/chips-selector/chips-selector.component';
|
|
4
6
|
import { WidgetManifest } from '../../../../core/model/manifest.interface';
|
|
5
|
-
import { Dataset, DataSource, NamedQuery } from '../../../../core/store/data-source/data-source.model';
|
|
6
7
|
import { SubscriptionnerDirective } from '../../subscriptionner.directive';
|
|
8
|
+
import { PryI18nService } from '../../../../core/i18n/i18n.service';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class DatasourceSelectorComponent extends SubscriptionnerDirective {
|
|
10
|
+
export declare class DatasourceSelectorComponent extends ChipsSelectorComponent implements SubscriptionnerDirective {
|
|
9
11
|
private store;
|
|
10
|
-
|
|
12
|
+
_usedItems$: BehaviorSubject<any[]>;
|
|
13
|
+
usedDatasources$: Observable<NamedQuery[]>;
|
|
14
|
+
set usedItems(items: any[]);
|
|
11
15
|
set manifest(manifest: WidgetManifest | null);
|
|
12
|
-
set datasourceIds(datasourceIds: string[]);
|
|
13
|
-
cancel: EventEmitter<any>;
|
|
14
|
-
validated: EventEmitter<any>;
|
|
15
|
-
previousTab: EventEmitter<any>;
|
|
16
|
-
nextTab: EventEmitter<any>;
|
|
17
|
-
datasourcesChanged: EventEmitter<DataSource[]>;
|
|
18
16
|
manifest$: BehaviorSubject<WidgetManifest | null>;
|
|
19
|
-
|
|
20
|
-
usedDatasources$: Observable<DataSource[]>;
|
|
21
|
-
allDataSources$: Observable<DataSource[]>;
|
|
22
|
-
unusedDatasources$: Observable<any>;
|
|
23
|
-
search$: BehaviorSubject<string>;
|
|
24
|
-
idToNameDatasource: {
|
|
25
|
-
[id: string]: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
constructor(store: Store, cdr: ChangeDetectorRef);
|
|
28
|
-
toogleDataSource(id: string): void;
|
|
29
|
-
isGeo(ds: NamedQuery | Dataset): boolean;
|
|
30
|
-
search($event: any): void;
|
|
17
|
+
constructor(store: Store, cdr: ChangeDetectorRef, i18n: PryI18nService);
|
|
31
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatasourceSelectorComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatasourceSelectorComponent, "pry-datasource-selector", never, { "
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatasourceSelectorComponent, "pry-datasource-selector", never, { "usedItems": { "alias": "usedItems"; "required": false; }; "manifest": { "alias": "manifest"; "required": false; }; }, {}, never, never, false, never>;
|
|
33
20
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PryVisibility } from '../../core/components/share/share.model';
|
|
2
1
|
import { PrySnackMessage } from '../../core/components/snackbar/snack.interface';
|
|
3
2
|
import { DisplayOptions } from '../../core/model/display-options.interface';
|
|
4
3
|
import { Filter } from '../../core/model/filter.interface';
|
|
@@ -243,24 +242,24 @@ export declare const DashboardActions: {
|
|
|
243
242
|
id: string;
|
|
244
243
|
description?: string | undefined;
|
|
245
244
|
image?: string | undefined;
|
|
246
|
-
visibility?: PryVisibility | undefined;
|
|
247
245
|
cover?: boolean | undefined;
|
|
248
246
|
metadata?: {
|
|
249
247
|
metadataDefId: string;
|
|
250
248
|
value: string;
|
|
251
249
|
}[] | undefined;
|
|
250
|
+
groups?: string[] | undefined;
|
|
252
251
|
}) => {
|
|
253
252
|
name: string;
|
|
254
253
|
manifest?: GlobalManifest | undefined;
|
|
255
254
|
id: string;
|
|
256
255
|
description?: string | undefined;
|
|
257
256
|
image?: string | undefined;
|
|
258
|
-
visibility?: PryVisibility | undefined;
|
|
259
257
|
cover?: boolean | undefined;
|
|
260
258
|
metadata?: {
|
|
261
259
|
metadataDefId: string;
|
|
262
260
|
value: string;
|
|
263
261
|
}[] | undefined;
|
|
262
|
+
groups?: string[] | undefined;
|
|
264
263
|
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] save manifest">>;
|
|
265
264
|
solveCollisions: import("@ngrx/store").ActionCreator<"[Dashboard] solving collisions", () => import("@ngrx/store/src/models").TypedAction<"[Dashboard] solving collisions">>;
|
|
266
265
|
clearManifest: import("@ngrx/store").ActionCreator<"[Dashboard] clear manifest", () => import("@ngrx/store/src/models").TypedAction<"[Dashboard] clear manifest">>;
|
|
@@ -59,7 +59,6 @@ export declare class DashboardEffects {
|
|
|
59
59
|
fetchStaticManifest$: import("rxjs").Observable<{
|
|
60
60
|
staticManifest: GlobalManifest;
|
|
61
61
|
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) received staticManifest">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
62
|
-
fetchStaticManifestLoading$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dashboard] end loading">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
63
62
|
loadAndActivateManifest$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) follow manifest route"> | ({
|
|
64
63
|
tenants?: string[] | undefined;
|
|
65
64
|
manifest: GlobalManifest;
|
|
@@ -88,6 +87,7 @@ export declare class DashboardEffects {
|
|
|
88
87
|
name: string;
|
|
89
88
|
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] download manifest">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
90
89
|
followManifestRoute$: import("rxjs").Observable<[import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) follow manifest route">, import("../../core/model/manifest.interface").DashboardManifest]> & import("@ngrx/effects").CreateEffectMetadata;
|
|
90
|
+
endLoadingAfterFollowingManifestRoute$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dashboard] end loading">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
91
91
|
requestManifestRoute$: import("rxjs").Observable<{
|
|
92
92
|
sender?: string | undefined;
|
|
93
93
|
route: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { PryVisibility } from '../../core/components/share/share.model';
|
|
5
4
|
import { PrySnackbarService } from '../../core/components/snackbar/snackbar.service';
|
|
6
5
|
import { PryI18nService } from '../../core/i18n/i18n.service';
|
|
7
6
|
import { GlobalManifest, ManifestDescription } from '../../core/model/manifest.interface';
|
|
@@ -14,10 +13,10 @@ export declare class ManifestService {
|
|
|
14
13
|
constructor(httpClient: HttpClient, store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService);
|
|
15
14
|
list(): Observable<ManifestDescription[]>;
|
|
16
15
|
get(id: string): Observable<GlobalManifest>;
|
|
17
|
-
save(name: string, manifest: GlobalManifest,
|
|
16
|
+
save(name: string, manifest: GlobalManifest, id: string, description?: string, image?: string, cover?: boolean, metadata?: {
|
|
18
17
|
metadataDefId: string;
|
|
19
18
|
value: string;
|
|
20
|
-
}[]): Observable<{
|
|
19
|
+
}[], groups?: string[]): Observable<{
|
|
21
20
|
id: string;
|
|
22
21
|
name: string;
|
|
23
22
|
manifest: GlobalManifest;
|