@provoly/dashboard 0.21.2 → 0.21.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/esm2022/lib/core/components/chips-selector/chips-selector.component.mjs +111 -0
- package/esm2022/lib/core/components/share/group-share/group-share.component.mjs +105 -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/core.module.mjs +5 -1
- package/esm2022/lib/core/i18n/en.translations.mjs +24 -1
- package/esm2022/lib/core/i18n/fr.translations.mjs +24 -1
- 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/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 +2 -3
- package/esm2022/lib/dashboard/store/manifest.service.mjs +4 -4
- package/esm2022/presentation/components/presentation.component.mjs +7 -8
- 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/save-view/save-view.component.mjs +8 -8
- package/fesm2022/provoly-dashboard-presentation.mjs +6 -7
- 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 +7 -7
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +974 -743
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/components/chips-selector/chips-selector.component.d.ts +38 -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/core.module.d.ts +24 -23
- package/lib/core/i18n/en.translations.d.ts +23 -0
- package/lib/core/i18n/fr.translations.d.ts +23 -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/manifest.service.d.ts +2 -3
- package/package.json +1 -1
- package/presentation/components/presentation.component.d.ts +2 -3
- 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/toolbox/components/save-view/save-view.component.d.ts +3 -3
|
@@ -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
|
+
}
|
|
@@ -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
|
+
radioValue: PryVisibilityType;
|
|
15
|
+
groups$: Observable<Group[]>;
|
|
16
|
+
assignedGroups$: Observable<Group[]>;
|
|
17
|
+
PryVisibilityType: typeof PryVisibilityType;
|
|
18
|
+
visibilityTypes: {
|
|
19
|
+
label: string;
|
|
20
|
+
value: PryVisibilityType;
|
|
21
|
+
}[];
|
|
22
|
+
assignedGroupNames$: BehaviorSubject<string[]>;
|
|
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
|
}
|
|
@@ -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
|
}
|
|
@@ -301,6 +301,29 @@ export declare const enTranslations: {
|
|
|
301
301
|
metadata: {
|
|
302
302
|
view: string;
|
|
303
303
|
};
|
|
304
|
+
components: {
|
|
305
|
+
chipsSelector: {
|
|
306
|
+
datasource: {
|
|
307
|
+
select: string;
|
|
308
|
+
selection: string;
|
|
309
|
+
selectItem: string;
|
|
310
|
+
unselectItem: string;
|
|
311
|
+
noItemSelected: string;
|
|
312
|
+
};
|
|
313
|
+
share: {
|
|
314
|
+
select: string;
|
|
315
|
+
selection: string;
|
|
316
|
+
selectItem: string;
|
|
317
|
+
unselectItem: string;
|
|
318
|
+
noItemSelected: string;
|
|
319
|
+
groups: {
|
|
320
|
+
ALL: string;
|
|
321
|
+
CONNECTED: string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
searchData: string;
|
|
326
|
+
};
|
|
304
327
|
errors: {
|
|
305
328
|
default: string;
|
|
306
329
|
codes: {
|
|
@@ -302,6 +302,29 @@ export declare const frTranslations: {
|
|
|
302
302
|
metadata: {
|
|
303
303
|
view: string;
|
|
304
304
|
};
|
|
305
|
+
components: {
|
|
306
|
+
searchData: string;
|
|
307
|
+
chipsSelector: {
|
|
308
|
+
datasource: {
|
|
309
|
+
select: string;
|
|
310
|
+
selection: string;
|
|
311
|
+
selectItem: string;
|
|
312
|
+
unselectItem: string;
|
|
313
|
+
noItemSelected: string;
|
|
314
|
+
};
|
|
315
|
+
share: {
|
|
316
|
+
select: string;
|
|
317
|
+
selection: string;
|
|
318
|
+
selectItem: string;
|
|
319
|
+
unselectItem: string;
|
|
320
|
+
noItemSelected: string;
|
|
321
|
+
groups: {
|
|
322
|
+
ALL: string;
|
|
323
|
+
CONNECTED: string;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
};
|
|
305
328
|
errors: {
|
|
306
329
|
default: string;
|
|
307
330
|
codes: {
|
|
@@ -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">>;
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -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 { DashboardManifest, ManifestDescription, PryTitleService,
|
|
5
|
+
import { DashboardManifest, ManifestDescription, 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 {
|
|
@@ -28,8 +28,7 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
|
|
|
28
28
|
crossVisibility: ElementRef<HTMLButtonElement>;
|
|
29
29
|
visibilityModal: ElementRef;
|
|
30
30
|
overlayRef?: OverlayRef;
|
|
31
|
-
|
|
32
|
-
PryVisibilityType: typeof PryVisibilityType;
|
|
31
|
+
accessGroups: string[];
|
|
33
32
|
editionStartUrl: string;
|
|
34
33
|
consultStartUrl: string;
|
|
35
34
|
meAsOwner?: string;
|
|
@@ -36,6 +36,7 @@ export declare class PryRestitutionComponent extends SubscriptionnerDirective im
|
|
|
36
36
|
type: string;
|
|
37
37
|
manifest: WidgetManifest;
|
|
38
38
|
}[];
|
|
39
|
+
usedDatasources$: Observable<DataSource[]>;
|
|
39
40
|
constructor(toolboxManifestService: ToolboxManifestService, store: Store, toolboxMenuService: ToolboxMenuService);
|
|
40
41
|
ngOnInit(): void;
|
|
41
42
|
cancel(stepper: PryStepperComponent): void;
|
|
@@ -27,10 +27,6 @@ export declare const enTranslations: {
|
|
|
27
27
|
consult: string;
|
|
28
28
|
catalog: string;
|
|
29
29
|
add_icon: string;
|
|
30
|
-
selection: string;
|
|
31
|
-
select: string;
|
|
32
|
-
selectDataSource: string;
|
|
33
|
-
unselectDataSource: string;
|
|
34
30
|
dataSource: string;
|
|
35
31
|
noDataSource: string;
|
|
36
32
|
delete: string;
|
|
@@ -38,7 +34,6 @@ export declare const enTranslations: {
|
|
|
38
34
|
lock: string;
|
|
39
35
|
update: string;
|
|
40
36
|
cover: string;
|
|
41
|
-
noDataSourceSelected: string;
|
|
42
37
|
catalogTabs: {
|
|
43
38
|
model: string;
|
|
44
39
|
noModel: string;
|
|
@@ -28,10 +28,6 @@ export declare const frTranslations: {
|
|
|
28
28
|
consultRestitution: string;
|
|
29
29
|
catalog: string;
|
|
30
30
|
add_icon: string;
|
|
31
|
-
selection: string;
|
|
32
|
-
select: string;
|
|
33
|
-
selectDataSource: string;
|
|
34
|
-
unselectDataSource: string;
|
|
35
31
|
dataSource: string;
|
|
36
32
|
noDataSource: string;
|
|
37
33
|
delete: string;
|
|
@@ -39,7 +35,6 @@ export declare const frTranslations: {
|
|
|
39
35
|
lock: string;
|
|
40
36
|
update: string;
|
|
41
37
|
cover: string;
|
|
42
|
-
noDataSourceSelected: string;
|
|
43
38
|
catalogTabs: {
|
|
44
39
|
model: string;
|
|
45
40
|
noModel: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
2
2
|
import { ElementRef, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
|
-
import { LibraryTypes, ManifestDescription,
|
|
4
|
+
import { LibraryTypes, ManifestDescription, ViewMode } from '@provoly/dashboard';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -21,7 +21,7 @@ export declare class SaveViewComponent extends ToolboxActionComponent {
|
|
|
21
21
|
templateSaveAs: TemplateRef<any>;
|
|
22
22
|
overlayRefDirectSaveType?: OverlayRef;
|
|
23
23
|
templateDirectSaveType: TemplateRef<any>;
|
|
24
|
-
|
|
24
|
+
accessGroups: string[];
|
|
25
25
|
type: LibraryTypes;
|
|
26
26
|
saveTypeOpened: boolean;
|
|
27
27
|
currentManifest?: ManifestDescription;
|
|
@@ -35,7 +35,7 @@ export declare class SaveViewComponent extends ToolboxActionComponent {
|
|
|
35
35
|
toggleSaveAs(): void;
|
|
36
36
|
save(): void;
|
|
37
37
|
closeModals(): void;
|
|
38
|
-
changeVisibility($event:
|
|
38
|
+
changeVisibility($event: string[]): void;
|
|
39
39
|
changeValue($event: string): void;
|
|
40
40
|
changeDescr($event: string): void;
|
|
41
41
|
openSaveAs(): void;
|