@provoly/dashboard 1.1.9 → 1.1.11
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/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.d.ts +5 -3
- package/dataset/components/dataset-detail/dataset-detail.component.d.ts +5 -3
- package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +24 -12
- package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +18 -9
- package/esm2022/dataset/components/dataset.component.mjs +3 -2
- package/esm2022/import/components/import.component.mjs +6 -4
- package/esm2022/lib/core/access/access.service.mjs +4 -1
- package/esm2022/lib/core/components/modal-status/modal-status.component.mjs +3 -3
- package/esm2022/lib/core/components/share/access-rights-share/access-rights-share.component.mjs +3 -3
- package/esm2022/lib/core/components/share/access-rights-share-modal/access-rights-share-modal.component.mjs +3 -1
- package/esm2022/lib/core/components/translate-item-to-symbol/translate-item-to-symbol.pipe.mjs +8 -12
- package/esm2022/lib/core/i18n/en.translations.mjs +4 -1
- package/esm2022/lib/core/i18n/fr.translations.mjs +4 -1
- package/esm2022/lib/core/store/config/config.selectors.mjs +2 -2
- package/esm2022/lib/core/store/relation-types/relation-types.selectors.mjs +2 -2
- package/esm2022/lib/core/symbol/symbol.service.mjs +4 -4
- package/esm2022/lib/dashboard/store/dashboard.selectors.mjs +2 -2
- package/esm2022/restitution/components/restitution-list/restitution-list.component.mjs +2 -2
- package/esm2022/toolbox/components/delete/delete.component.mjs +3 -3
- package/esm2022/toolbox/components/edit-mode-action/edit-mode-action.component.mjs +3 -3
- package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +3 -4
- package/esm2022/toolbox/components/save-view/save-view.component.mjs +3 -3
- package/esm2022/toolbox/components/share/share.component.mjs +3 -3
- package/esm2022/toolbox/components/switch-to-edit-content/switch-to-edit-content.component.mjs +3 -3
- package/esm2022/toolbox/components/toolbox-action/toolbox-action.component.mjs +5 -5
- package/esm2022/toolbox/components/toolbox.component.mjs +15 -12
- package/esm2022/toolbox/toolbox.model.mjs +4 -4
- package/esm2022/widgets/widget-aggregated-chart/style/css.component.mjs +2 -2
- package/esm2022/widgets/widget-iframe/component/widget-iframe.component.mjs +3 -3
- package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +1 -1
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +11 -7
- package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
- package/esm2022/widgets/widget-vega/style/css.component.mjs +2 -2
- package/fesm2022/provoly-dashboard-admin.mjs +22 -10
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-dataset.mjs +19 -9
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-import.mjs +5 -3
- package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +33 -31
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-iframe.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-iframe.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +12 -8
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +26 -17
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/access/access.service.d.ts +3 -0
- package/lib/core/components/translate-item-to-symbol/translate-item-to-symbol.pipe.d.ts +1 -7
- package/lib/core/i18n/en.translations.d.ts +3 -0
- package/lib/core/i18n/fr.translations.d.ts +3 -0
- package/package.json +25 -25
- package/styles/abstracts/_mixins.scss +1 -1
- package/styles-theme/abstracts-theme/variables/_variables-typo.scss +5 -5
- package/toolbox/components/toolbox-action/toolbox-action.component.d.ts +1 -1
- package/toolbox/components/toolbox.component.d.ts +3 -2
- package/widgets/widget-aggregated-chart/style/_o-widget-chart.scss +1 -1
- package/widgets/widget-map/style/_m-layer-legend.scss +7 -0
- package/widgets/widget-vega/style/_o-widget-vega.scss +9 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ManifestDescription } from '../model/manifest.interface';
|
|
4
|
+
import { Dataset } from '../store/data-source/data-source.model';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare abstract class PryBaseAccess {
|
|
6
7
|
abstract hasRole(...args: any[]): Observable<boolean>;
|
|
7
8
|
abstract canModifyPresentation(presentation: ManifestDescription): Observable<boolean>;
|
|
8
9
|
abstract hasGroup(group: string): Observable<boolean>;
|
|
10
|
+
abstract canModifyDataset(dataset: Dataset): Observable<boolean>;
|
|
9
11
|
}
|
|
10
12
|
export declare const PRY_ACCESS_TOKEN: InjectionToken<PryBaseAccess>;
|
|
11
13
|
export declare class PryDefaultAccessService extends PryBaseAccess {
|
|
@@ -13,6 +15,7 @@ export declare class PryDefaultAccessService extends PryBaseAccess {
|
|
|
13
15
|
hasRole(...args: any[]): Observable<boolean>;
|
|
14
16
|
canModifyPresentation(presentation: ManifestDescription): Observable<boolean>;
|
|
15
17
|
hasGroup(group: string): Observable<boolean>;
|
|
18
|
+
canModifyDataset(dataset: Dataset): Observable<boolean>;
|
|
16
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryDefaultAccessService, never>;
|
|
17
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<PryDefaultAccessService>;
|
|
18
21
|
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Store } from '@ngrx/store';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { PryI18nService } from '../../i18n/i18n.service';
|
|
5
3
|
import { Item } from '../../model/item.interface';
|
|
6
|
-
import { ImageService } from '../../store/image/image.service';
|
|
7
4
|
import { SymbolService } from '../../symbol/symbol.service';
|
|
8
5
|
import * as i0 from "@angular/core";
|
|
9
6
|
export declare class TranslateItemToSymbolPipe implements PipeTransform {
|
|
10
|
-
private store;
|
|
11
|
-
private translateService;
|
|
12
|
-
private imageService;
|
|
13
7
|
private symbolService;
|
|
14
|
-
constructor(
|
|
8
|
+
constructor(symbolService: SymbolService);
|
|
15
9
|
transform(value: Item, ...args: unknown[]): Observable<string>;
|
|
16
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TranslateItemToSymbolPipe, never>;
|
|
17
11
|
static ɵpipe: i0.ɵɵPipeDeclaration<TranslateItemToSymbolPipe, "translateItemToSymbol", false>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/dashboard",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "16.x || 17.x",
|
|
@@ -84,18 +84,18 @@
|
|
|
84
84
|
"esm": "./esm2022/admin/provoly-dashboard-admin.mjs",
|
|
85
85
|
"default": "./fesm2022/provoly-dashboard-admin.mjs"
|
|
86
86
|
},
|
|
87
|
-
"./dataset": {
|
|
88
|
-
"types": "./dataset/index.d.ts",
|
|
89
|
-
"esm2022": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
|
|
90
|
-
"esm": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
|
|
91
|
-
"default": "./fesm2022/provoly-dashboard-dataset.mjs"
|
|
92
|
-
},
|
|
93
87
|
"./import": {
|
|
94
88
|
"types": "./import/index.d.ts",
|
|
95
89
|
"esm2022": "./esm2022/import/provoly-dashboard-import.mjs",
|
|
96
90
|
"esm": "./esm2022/import/provoly-dashboard-import.mjs",
|
|
97
91
|
"default": "./fesm2022/provoly-dashboard-import.mjs"
|
|
98
92
|
},
|
|
93
|
+
"./dataset": {
|
|
94
|
+
"types": "./dataset/index.d.ts",
|
|
95
|
+
"esm2022": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
|
|
96
|
+
"esm": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
|
|
97
|
+
"default": "./fesm2022/provoly-dashboard-dataset.mjs"
|
|
98
|
+
},
|
|
99
99
|
"./notification": {
|
|
100
100
|
"types": "./notification/index.d.ts",
|
|
101
101
|
"esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
|
|
@@ -234,18 +234,18 @@
|
|
|
234
234
|
"esm": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
|
|
235
235
|
"default": "./fesm2022/provoly-dashboard-pipeline-components-filter.mjs"
|
|
236
236
|
},
|
|
237
|
-
"./pipeline-components/noop": {
|
|
238
|
-
"types": "./pipeline-components/noop/index.d.ts",
|
|
239
|
-
"esm2022": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
|
|
240
|
-
"esm": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
|
|
241
|
-
"default": "./fesm2022/provoly-dashboard-pipeline-components-noop.mjs"
|
|
242
|
-
},
|
|
243
237
|
"./pipeline-components/input-datasource": {
|
|
244
238
|
"types": "./pipeline-components/input-datasource/index.d.ts",
|
|
245
239
|
"esm2022": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
|
|
246
240
|
"esm": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
|
|
247
241
|
"default": "./fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs"
|
|
248
242
|
},
|
|
243
|
+
"./pipeline-components/noop": {
|
|
244
|
+
"types": "./pipeline-components/noop/index.d.ts",
|
|
245
|
+
"esm2022": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
|
|
246
|
+
"esm": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
|
|
247
|
+
"default": "./fesm2022/provoly-dashboard-pipeline-components-noop.mjs"
|
|
248
|
+
},
|
|
249
249
|
"./pipeline-components/output-dataset": {
|
|
250
250
|
"types": "./pipeline-components/output-dataset/index.d.ts",
|
|
251
251
|
"esm2022": "./esm2022/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.mjs",
|
|
@@ -300,18 +300,18 @@
|
|
|
300
300
|
"esm": "./esm2022/widgets/widget-graph/provoly-dashboard-widgets-widget-graph.mjs",
|
|
301
301
|
"default": "./fesm2022/provoly-dashboard-widgets-widget-graph.mjs"
|
|
302
302
|
},
|
|
303
|
-
"./widgets/widget-iframe": {
|
|
304
|
-
"types": "./widgets/widget-iframe/index.d.ts",
|
|
305
|
-
"esm2022": "./esm2022/widgets/widget-iframe/provoly-dashboard-widgets-widget-iframe.mjs",
|
|
306
|
-
"esm": "./esm2022/widgets/widget-iframe/provoly-dashboard-widgets-widget-iframe.mjs",
|
|
307
|
-
"default": "./fesm2022/provoly-dashboard-widgets-widget-iframe.mjs"
|
|
308
|
-
},
|
|
309
303
|
"./widgets/widget-image": {
|
|
310
304
|
"types": "./widgets/widget-image/index.d.ts",
|
|
311
305
|
"esm2022": "./esm2022/widgets/widget-image/provoly-dashboard-widgets-widget-image.mjs",
|
|
312
306
|
"esm": "./esm2022/widgets/widget-image/provoly-dashboard-widgets-widget-image.mjs",
|
|
313
307
|
"default": "./fesm2022/provoly-dashboard-widgets-widget-image.mjs"
|
|
314
308
|
},
|
|
309
|
+
"./widgets/widget-iframe": {
|
|
310
|
+
"types": "./widgets/widget-iframe/index.d.ts",
|
|
311
|
+
"esm2022": "./esm2022/widgets/widget-iframe/provoly-dashboard-widgets-widget-iframe.mjs",
|
|
312
|
+
"esm": "./esm2022/widgets/widget-iframe/provoly-dashboard-widgets-widget-iframe.mjs",
|
|
313
|
+
"default": "./fesm2022/provoly-dashboard-widgets-widget-iframe.mjs"
|
|
314
|
+
},
|
|
315
315
|
"./widgets/widget-map": {
|
|
316
316
|
"types": "./widgets/widget-map/index.d.ts",
|
|
317
317
|
"esm2022": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
|
|
@@ -330,17 +330,17 @@
|
|
|
330
330
|
"esm": "./esm2022/widgets/widget-template/provoly-dashboard-widgets-widget-template.mjs",
|
|
331
331
|
"default": "./fesm2022/provoly-dashboard-widgets-widget-template.mjs"
|
|
332
332
|
},
|
|
333
|
-
"./widgets/widget-tile": {
|
|
334
|
-
"types": "./widgets/widget-tile/index.d.ts",
|
|
335
|
-
"esm2022": "./esm2022/widgets/widget-tile/provoly-dashboard-widgets-widget-tile.mjs",
|
|
336
|
-
"esm": "./esm2022/widgets/widget-tile/provoly-dashboard-widgets-widget-tile.mjs",
|
|
337
|
-
"default": "./fesm2022/provoly-dashboard-widgets-widget-tile.mjs"
|
|
338
|
-
},
|
|
339
333
|
"./widgets/widget-vega": {
|
|
340
334
|
"types": "./widgets/widget-vega/index.d.ts",
|
|
341
335
|
"esm2022": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
|
|
342
336
|
"esm": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
|
|
343
337
|
"default": "./fesm2022/provoly-dashboard-widgets-widget-vega.mjs"
|
|
338
|
+
},
|
|
339
|
+
"./widgets/widget-tile": {
|
|
340
|
+
"types": "./widgets/widget-tile/index.d.ts",
|
|
341
|
+
"esm2022": "./esm2022/widgets/widget-tile/provoly-dashboard-widgets-widget-tile.mjs",
|
|
342
|
+
"esm": "./esm2022/widgets/widget-tile/provoly-dashboard-widgets-widget-tile.mjs",
|
|
343
|
+
"default": "./fesm2022/provoly-dashboard-widgets-widget-tile.mjs"
|
|
344
344
|
}
|
|
345
345
|
},
|
|
346
346
|
"schematics": "./schematics/collection.json",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
#{themed($theme-map, 'font', 'font-family-alternative')};
|
|
85
85
|
}
|
|
86
86
|
@if not(empty($font-variation)) {
|
|
87
|
-
font-variation: $font-variation;
|
|
87
|
+
font-variation-settings: $font-variation;
|
|
88
88
|
}
|
|
89
89
|
@if not(empty($font-size)) {
|
|
90
90
|
@include setPropertySize($font-size, 'font-size');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// Theme typography variables (elements font-family, font-size, line-height, font-weight, font-style)
|
|
2
2
|
|
|
3
|
-
// font-family (
|
|
4
|
-
// font-variation-settings (
|
|
3
|
+
// font-family (optional) - default set in font map ($default-font-family)
|
|
4
|
+
// font-variation-settings (optional)
|
|
5
5
|
// font-size (required) (px are automatically converted to rem) (use 'em' unit to force 'em')
|
|
6
6
|
// line-height (required) (px are automatically converted to rem) (use 'em' unit to force 'em')
|
|
7
|
-
// font-weight (
|
|
8
|
-
// letter-spacing (
|
|
9
|
-
// font-style (
|
|
7
|
+
// font-weight (recommended) - default set in font map ($default-font-weight)
|
|
8
|
+
// letter-spacing (optional) == 'normal' when omitted - (use 'em' unit to force 'em')
|
|
9
|
+
// font-style (optional) - default 'normal'
|
|
10
10
|
|
|
11
11
|
$typography-default-font-family: Ubuntu;
|
|
12
12
|
|
|
@@ -10,9 +10,9 @@ export declare class ToolboxActionComponent extends SubscriptionnerDirective {
|
|
|
10
10
|
closeOptions: EventEmitter<void>;
|
|
11
11
|
currentManifest$: Observable<ManifestDescription | undefined>;
|
|
12
12
|
currentManifest: ManifestDescription | undefined;
|
|
13
|
+
canModify$: Observable<boolean>;
|
|
13
14
|
constructor(store: Store, access: PryBaseAccess);
|
|
14
15
|
close(): void;
|
|
15
|
-
canModify$(): Observable<boolean>;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolboxActionComponent, [null, { optional: true; }]>;
|
|
17
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToolboxActionComponent, "pry-toolbox-action", never, { "displayLabels": { "alias": "displayLabels"; "required": false; }; }, { "closeOptions": "closeOptions"; }, never, never, false, never>;
|
|
18
18
|
}
|
|
@@ -6,7 +6,7 @@ import { ToolboxAction } from '../toolbox.model';
|
|
|
6
6
|
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ToolboxComponent implements OnInit {
|
|
9
|
-
private
|
|
9
|
+
private access;
|
|
10
10
|
actions$: BehaviorSubject<ToolboxAction[]>;
|
|
11
11
|
_dropdownActions$: BehaviorSubject<{
|
|
12
12
|
name: string;
|
|
@@ -15,6 +15,7 @@ export declare class ToolboxComponent implements OnInit {
|
|
|
15
15
|
displayLabels: boolean;
|
|
16
16
|
dropdownPosition: ConnectedPosition[];
|
|
17
17
|
isManualMode$: Observable<boolean>;
|
|
18
|
+
canModify$: Observable<boolean>;
|
|
18
19
|
allActions$: Observable<ToolboxAction[]>;
|
|
19
20
|
mainActions$: Observable<ToolboxAction[]>;
|
|
20
21
|
dropdownActions$: Observable<ToolboxAction[]>;
|
|
@@ -28,7 +29,7 @@ export declare class ToolboxComponent implements OnInit {
|
|
|
28
29
|
name: string;
|
|
29
30
|
order: number;
|
|
30
31
|
}[]);
|
|
31
|
-
constructor(store: Store,
|
|
32
|
+
constructor(store: Store, access: PryBaseAccess);
|
|
32
33
|
ngOnInit(): void;
|
|
33
34
|
openDropdown($event: Event): void;
|
|
34
35
|
closeDropdown($event: Event | void): void;
|
|
@@ -85,11 +85,18 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.m-layer-switcher {
|
|
88
|
+
max-height: toRem(510);
|
|
89
|
+
|
|
88
90
|
&__group-title {
|
|
89
91
|
font-weight: 700;
|
|
90
92
|
margin-bottom: toRem(5);
|
|
91
93
|
}
|
|
92
94
|
|
|
95
|
+
&__content {
|
|
96
|
+
max-height: toRem(420);
|
|
97
|
+
overflow-y: auto;
|
|
98
|
+
}
|
|
99
|
+
|
|
93
100
|
&__title {
|
|
94
101
|
align-items: flex-start;
|
|
95
102
|
word-break: break-word;
|