@provoly/dashboard 0.22.1 → 0.22.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/assets/svgs/contract-left.svg +1 -0
- package/assets/svgs/expand-right.svg +1 -0
- package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +1 -1
- package/esm2022/filters/autocomplete/autocomplete.component.mjs +6 -4
- package/esm2022/lib/core/components/select/select-a11y.service.mjs +16 -7
- package/esm2022/lib/core/components/select/select.component.mjs +7 -7
- package/esm2022/lib/core/model/widget-aggregated-chart-manifest.interface.mjs +1 -1
- package/esm2022/lib/core/store/aggregation/backend-aggregation.service.mjs +5 -2
- package/esm2022/lib/dashboard/components/dashboard.component.mjs +32 -6
- package/esm2022/lib/dashboard/components/solve-collisions.function.mjs +14 -23
- package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +36 -28
- package/esm2022/lib/dashboard/components/widgets/widget-filler/widget-filler.component.mjs +28 -3
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +2 -2
- package/esm2022/lib/dashboard/store/title.service.mjs +2 -2
- package/esm2022/toolbox/components/select-grid-layout/select-grid-layout.component.mjs +3 -3
- package/esm2022/toolbox/components/share/share.component.mjs +2 -2
- package/esm2022/toolbox/components/toolbox.component.mjs +10 -5
- package/esm2022/toolbox/toolbox.model.mjs +23 -12
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +17 -7
- package/esm2022/widgets/widget-aggregated-chart/i18n/en.translations.mjs +2 -1
- package/esm2022/widgets/widget-aggregated-chart/i18n/fr.translations.mjs +2 -1
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +2 -2
- package/fesm2022/provoly-dashboard-dataset.mjs +1 -1
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-filters-autocomplete.mjs +5 -3
- package/fesm2022/provoly-dashboard-filters-autocomplete.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +34 -18
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +18 -6
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +126 -66
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/filters/autocomplete/autocomplete.component.d.ts +2 -1
- package/lib/core/components/select/select-a11y.service.d.ts +1 -1
- package/lib/core/components/select/select.component.d.ts +1 -1
- package/lib/core/model/widget-aggregated-chart-manifest.interface.d.ts +1 -0
- package/lib/dashboard/components/dashboard.component.d.ts +4 -1
- package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +2 -2
- package/lib/dashboard/components/widgets/widget-filler/widget-filler.component.d.ts +1 -0
- package/package.json +1 -1
- package/styles/components/_o-dashboard.scss +25 -0
- package/styles/components/_o-modal.scss +6 -0
- package/toolbox/components/toolbox.component.d.ts +1 -1
- package/toolbox/toolbox.model.d.ts +1 -0
- package/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.d.ts +2 -0
- package/widgets/widget-aggregated-chart/i18n/en.translations.d.ts +1 -0
- package/widgets/widget-aggregated-chart/i18n/fr.translations.d.ts +1 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
3
|
import { BaseFilterComponent, SearchService } from '@provoly/dashboard';
|
|
4
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class AutocompleteComponent extends BaseFilterComponent implements OnInit, OnDestroy {
|
|
7
7
|
private searchService;
|
|
8
8
|
search$: BehaviorSubject<string>;
|
|
9
9
|
autocomplete$?: Observable<string[]>;
|
|
10
10
|
loader: boolean;
|
|
11
|
+
inhibateInitCall$: Subject<void>;
|
|
11
12
|
constructor(store: Store, searchService: SearchService);
|
|
12
13
|
ngOnInit(): void;
|
|
13
14
|
setFilter(value: string): void;
|
|
@@ -7,5 +7,5 @@ export declare class SelectA11yService {
|
|
|
7
7
|
onKeydownSelect(event: KeyboardEvent, autocomplete: boolean): void;
|
|
8
8
|
onKeydownAutocompleteInput(event: KeyboardEvent, open: boolean, searchValue: string, optionsModalRef?: EmbeddedViewRef<any>): void;
|
|
9
9
|
onKeydownOption(event: KeyboardEvent, optionDivRef: HTMLDivElement, first: boolean, last: boolean, autocomplete: boolean, selectElement: HTMLDivElement, select: () => void): void;
|
|
10
|
-
focusInitialSelection(optionsModalRef?: EmbeddedViewRef<any>): void;
|
|
10
|
+
focusInitialSelection(autocomplete: boolean, optionsModalRef?: EmbeddedViewRef<any>): void;
|
|
11
11
|
}
|
|
@@ -63,7 +63,7 @@ export declare class PrySelectComponent extends SubscriptionnerDirective impleme
|
|
|
63
63
|
clear($event: Event, item: any): void;
|
|
64
64
|
clearAll($event: Event): void;
|
|
65
65
|
search($event: string): void;
|
|
66
|
-
select($event: Event, item: any, index: number
|
|
66
|
+
select($event: Event, item: any, index: number): void;
|
|
67
67
|
toggle(force?: boolean): void;
|
|
68
68
|
handleClick(): void;
|
|
69
69
|
toggleFocus(): void;
|
|
@@ -30,8 +30,10 @@ export declare class DashboardComponent extends SubscriptionnerDirective impleme
|
|
|
30
30
|
instanciators?: QueryList<WidgetInstanciatorComponent>;
|
|
31
31
|
dataFetching$: Observable<string[]>;
|
|
32
32
|
params: DashboardCellParams;
|
|
33
|
+
forceModeEdition$: BehaviorSubject<boolean | undefined>;
|
|
33
34
|
get widgetsInstances(): any[];
|
|
34
35
|
set staticDashboard(window: DashboardManifest);
|
|
36
|
+
set forceModeEdition(mode: boolean);
|
|
35
37
|
CloseOnDragOut: boolean;
|
|
36
38
|
displayOptions?: DisplayOptions;
|
|
37
39
|
noBackground: boolean;
|
|
@@ -101,6 +103,7 @@ export declare class DashboardComponent extends SubscriptionnerDirective impleme
|
|
|
101
103
|
confirmRemove(): void;
|
|
102
104
|
cancelRemoveConfirm(): void;
|
|
103
105
|
trackWidgets(index: number, widgetManifest: WidgetManifest): string;
|
|
106
|
+
changeSize(direction: string, offset: number): void;
|
|
104
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
|
|
105
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "pry-dashboard", never, { "staticDashboard": { "alias": "staticDashboard"; "required": false; }; "CloseOnDragOut": { "alias": "CloseOnDragOut"; "required": false; }; "displayOptions": { "alias": "displayOptions"; "required": false; }; "noBackground": { "alias": "noBackground"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; }, { "rowHeight": "rowHeight"; "rows": "rows"; }, never, never, false, never>;
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "pry-dashboard", never, { "staticDashboard": { "alias": "staticDashboard"; "required": false; }; "forceModeEdition": { "alias": "forceModeEdition"; "required": false; }; "CloseOnDragOut": { "alias": "CloseOnDragOut"; "required": false; }; "displayOptions": { "alias": "displayOptions"; "required": false; }; "noBackground": { "alias": "noBackground"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; }, { "rowHeight": "rowHeight"; "rows": "rows"; }, never, never, false, never>;
|
|
106
109
|
}
|
|
@@ -42,6 +42,7 @@ export declare class PryWidgetHeaderComponent extends SubscriptionnerDirective i
|
|
|
42
42
|
selectedItem?: Element | null;
|
|
43
43
|
usedDatasources$: Observable<DataSource[]>;
|
|
44
44
|
openSub?: Subscription;
|
|
45
|
+
targetManifest?: DashboardManifest;
|
|
45
46
|
set manifest(manifest: WidgetManifest | null);
|
|
46
47
|
set openData$(open$: Observable<void> | Subject<void>);
|
|
47
48
|
additionalOptions: HeaderAction[] | null;
|
|
@@ -92,14 +93,13 @@ export declare class PryWidgetHeaderComponent extends SubscriptionnerDirective i
|
|
|
92
93
|
executeAction(options: HeaderAction): void;
|
|
93
94
|
isActionDisabled(option: HeaderAction): boolean;
|
|
94
95
|
toggleChangeSpot(): void;
|
|
95
|
-
moveToPlace(place: WidgetManifest): void;
|
|
96
96
|
focusCrossElement(): void;
|
|
97
97
|
focusValidation(): void;
|
|
98
98
|
focusInputCatalog(): void;
|
|
99
99
|
disableValidation(): void;
|
|
100
100
|
datasourcesChanged($event: DataSource[]): void;
|
|
101
101
|
isGeo(ds: NamedQuery | Dataset): boolean;
|
|
102
|
-
|
|
102
|
+
placesManifest(): void;
|
|
103
103
|
ngOnDestroy(): void;
|
|
104
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryWidgetHeaderComponent, never>;
|
|
105
105
|
static ɵcmp: i0.ɵɵComponentDeclaration<PryWidgetHeaderComponent, "pry-widget-header", never, { "manifest": { "alias": "manifest"; "required": false; }; "openData$": { "alias": "openData$"; "required": false; }; "additionalOptions": { "alias": "additionalOptions"; "required": false; }; "headerOptions": { "alias": "headerOptions"; "required": false; }; "displayCount": { "alias": "displayCount"; "required": false; }; "datasourceIds": { "alias": "datasourceIds"; "required": false; }; "widgetIndex": { "alias": "widgetIndex"; "required": false; }; }, { "manifestModified": "manifestModified"; }, never, ["*"], false, never>;
|
|
@@ -5,6 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class WidgetFillerComponent extends BaseWidgetComponent {
|
|
6
6
|
constructor(store: Store<any>, el: ElementRef);
|
|
7
7
|
get index(): any;
|
|
8
|
+
moveToPlace(): void;
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetFillerComponent, never>;
|
|
9
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetFillerComponent, "pry-widget-filler", never, {}, {}, never, never, false, never>;
|
|
10
11
|
}
|
package/package.json
CHANGED
|
@@ -8,6 +8,26 @@
|
|
|
8
8
|
height: 100%;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
.o-dashboard-add {
|
|
12
|
+
position: absolute;
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-evenly;
|
|
15
|
+
z-index: 2;
|
|
16
|
+
|
|
17
|
+
&.-cols {
|
|
18
|
+
transform: translateY(-50%);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.-rows {
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
transform: translateX(-50%);
|
|
24
|
+
|
|
25
|
+
pry-icon span {
|
|
26
|
+
transform: rotate(90deg);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
11
31
|
.o-dashboard-widget {
|
|
12
32
|
position: relative;
|
|
13
33
|
z-index: 1;
|
|
@@ -148,6 +168,11 @@
|
|
|
148
168
|
}
|
|
149
169
|
}
|
|
150
170
|
|
|
171
|
+
.filler-backdrop {
|
|
172
|
+
width: 100%;
|
|
173
|
+
height: 100%;
|
|
174
|
+
}
|
|
175
|
+
|
|
151
176
|
.a-indicator-block {
|
|
152
177
|
position: relative;
|
|
153
178
|
height: 100%;
|
|
@@ -12,7 +12,6 @@ export declare class ToolboxComponent implements OnInit {
|
|
|
12
12
|
order: number;
|
|
13
13
|
}[]>;
|
|
14
14
|
displayLabels: boolean;
|
|
15
|
-
hasInitialPresentation$: Observable<boolean>;
|
|
16
15
|
isManualMode$: Observable<boolean>;
|
|
17
16
|
allActions$: Observable<ToolboxAction[]>;
|
|
18
17
|
mainActions$: Observable<ToolboxAction[]>;
|
|
@@ -21,6 +20,7 @@ export declare class ToolboxComponent implements OnInit {
|
|
|
21
20
|
isDropdownOpen: boolean;
|
|
22
21
|
actionsAvailable$: Observable<DisplayOptions | undefined>;
|
|
23
22
|
showEditToggle$: Observable<boolean>;
|
|
23
|
+
private presentation$;
|
|
24
24
|
set actions(actions: ToolboxAction[]);
|
|
25
25
|
set dropdownActions(dropdownActions: {
|
|
26
26
|
name: string;
|
|
@@ -74,6 +74,7 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
74
74
|
noAggregationData$: Observable<boolean>;
|
|
75
75
|
allowedClasses$: Observable<Class[]>;
|
|
76
76
|
colors: any;
|
|
77
|
+
DEFAULT_ITEM_LIMIT: number;
|
|
77
78
|
constructor(store: Store<any>, translateService: PryI18nService, el: ElementRef, aggregationService: PryAggregationService, schemeService: PrySchemeService);
|
|
78
79
|
ngAfterViewInit(): void;
|
|
79
80
|
translateToVegaType(type?: FieldType, name?: string): VegaType;
|
|
@@ -122,6 +123,7 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
122
123
|
toggleSort($event: any): void;
|
|
123
124
|
changeSortValue($event: 'key' | 'value'): void;
|
|
124
125
|
changeSortDirection($event: 'asc' | 'desc'): void;
|
|
126
|
+
toggleLimitItems(): void;
|
|
125
127
|
toImage(): Promise<string>;
|
|
126
128
|
changeCircleColorScheme($event: any): void;
|
|
127
129
|
changeBaseColor($event: any): void;
|