@provoly/dashboard 0.18.10 → 0.19.0
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/dataset/components/dataset-card/dataset-card.component.d.ts +3 -3
- package/dataset/style/_o-pry-dataset.scss +1 -1
- package/esm2022/dataset/components/dataset-card/dataset-card.component.mjs +2 -2
- package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +2 -1
- package/esm2022/dataset/style/css.component.mjs +2 -2
- package/esm2022/lib/core/components/snackbar/snackbar.service.mjs +4 -1
- package/esm2022/lib/core/errors/http-error-interceptor.service.mjs +4 -5
- package/esm2022/lib/dashboard/dashboard.module.mjs +8 -3
- package/esm2022/lib/dashboard/filter/components/filter-group/filter-group.component.mjs +44 -0
- package/esm2022/lib/dashboard/filter/public-api.mjs +3 -1
- package/esm2022/lib/dashboard/filter/style/css.component.mjs +11 -0
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +12 -5
- package/fesm2022/provoly-dashboard-dataset.mjs +4 -3
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +11 -4
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +55 -9
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/components/snackbar/snackbar.service.d.ts +1 -0
- package/lib/dashboard/dashboard.module.d.ts +17 -15
- package/lib/dashboard/filter/components/filter-group/filter-group.component.d.ts +17 -0
- package/lib/dashboard/filter/public-api.d.ts +2 -0
- package/lib/dashboard/filter/style/_o-pry-filter-group.scss +41 -0
- package/lib/dashboard/filter/style/css.component.d.ts +5 -0
- package/package.json +7 -7
- package/styles/layout/_o-workspace.scss +0 -29
- package/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.d.ts +5 -0
|
@@ -16,6 +16,7 @@ export declare class PrySnackbarService {
|
|
|
16
16
|
private messageEvents$;
|
|
17
17
|
constructor(overlay: Overlay, translate: PryI18nService);
|
|
18
18
|
setRootViewContainerRef(viewContainerRef: ViewContainerRef): void;
|
|
19
|
+
dispatchOpenEvent(message: PrySnackMessage): void;
|
|
19
20
|
open(message: PrySnackMessage): Observable<void> | null;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrySnackbarService, never>;
|
|
21
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<PrySnackbarService>;
|
|
@@ -21,20 +21,22 @@ import * as i14 from "./tooltip/components/default/default.tooltip.component";
|
|
|
21
21
|
import * as i15 from "./tooltip/base-tooltip.component";
|
|
22
22
|
import * as i16 from "./filter/base-filter.component";
|
|
23
23
|
import * as i17 from "./filter/components/filter-instanciator/filter-instanciator.component";
|
|
24
|
-
import * as i18 from "./components/
|
|
25
|
-
import * as i19 from "
|
|
26
|
-
import * as i20 from "
|
|
27
|
-
import * as i21 from "
|
|
28
|
-
import * as i22 from "
|
|
29
|
-
import * as i23 from "
|
|
30
|
-
import * as i24 from "../core/
|
|
31
|
-
import * as i25 from "@
|
|
32
|
-
import * as i26 from "../core/
|
|
33
|
-
import * as i27 from "
|
|
34
|
-
import * as i28 from "
|
|
35
|
-
import * as i29 from "
|
|
36
|
-
import * as i30 from "
|
|
37
|
-
import * as i31 from "
|
|
24
|
+
import * as i18 from "./filter/components/filter-group/filter-group.component";
|
|
25
|
+
import * as i19 from "./components/widgets/datasource-selector/datasource-selector.component";
|
|
26
|
+
import * as i20 from "./filter/style/css.component";
|
|
27
|
+
import * as i21 from "@angular/common";
|
|
28
|
+
import * as i22 from "@angular/forms";
|
|
29
|
+
import * as i23 from "../core/components/select/select.module";
|
|
30
|
+
import * as i24 from "../core/components/icon/icon.module";
|
|
31
|
+
import * as i25 from "@angular/cdk/overlay";
|
|
32
|
+
import * as i26 from "../core/core.module";
|
|
33
|
+
import * as i27 from "@provoly/dashboard/components/checkbox";
|
|
34
|
+
import * as i28 from "../core/components/toggle/toggle.module";
|
|
35
|
+
import * as i29 from "../core/components/overlay/overlay.module";
|
|
36
|
+
import * as i30 from "@ngrx/store";
|
|
37
|
+
import * as i31 from "@ngrx/effects";
|
|
38
|
+
import * as i32 from "../core/components/date-picker/date-picker.module";
|
|
39
|
+
import * as i33 from "../core/i18n/i18n.module";
|
|
38
40
|
export declare class PryDashboardModule {
|
|
39
41
|
static forRoot(widgetReference: {
|
|
40
42
|
[key: string]: WidgetDefinition;
|
|
@@ -55,6 +57,6 @@ export declare class PryDashboardModule {
|
|
|
55
57
|
image?: string;
|
|
56
58
|
}[]): ModuleWithProviders<PryDashboardModule>;
|
|
57
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryDashboardModule, never>;
|
|
58
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PryDashboardModule, [typeof i1.DashboardComponent, typeof i2.WidgetInstanciatorComponent, typeof i3.WidgetPlaceholderComponent, typeof i4.SettingsComponent, typeof i5.ManifestsComponent, typeof i6.MetadataComponent, typeof i7.ContextMenuComponent, typeof i8.DataWidgetComponent, typeof i9.BaseWidgetComponent, typeof i10.PryWidgetHeaderComponent, typeof i11.PryObjectEditionComponent, typeof i12.VizualizeRawComponent, typeof i13.ResultSetSizePipe, typeof i14.DefaultTooltipComponent, typeof i15.BaseTooltipComponent, typeof i16.BaseFilterComponent, typeof i17.FilterInstanciatorComponent, typeof i18.DatasourceSelectorComponent], [typeof
|
|
60
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PryDashboardModule, [typeof i1.DashboardComponent, typeof i2.WidgetInstanciatorComponent, typeof i3.WidgetPlaceholderComponent, typeof i4.SettingsComponent, typeof i5.ManifestsComponent, typeof i6.MetadataComponent, typeof i7.ContextMenuComponent, typeof i8.DataWidgetComponent, typeof i9.BaseWidgetComponent, typeof i10.PryWidgetHeaderComponent, typeof i11.PryObjectEditionComponent, typeof i12.VizualizeRawComponent, typeof i13.ResultSetSizePipe, typeof i14.DefaultTooltipComponent, typeof i15.BaseTooltipComponent, typeof i16.BaseFilterComponent, typeof i17.FilterInstanciatorComponent, typeof i18.FilterGroupComponent, typeof i19.DatasourceSelectorComponent, typeof i20.PryFilterGroupCssComponent], [typeof i21.CommonModule, typeof i22.FormsModule, typeof i23.PrySelectModule, typeof i24.PryIconModule, typeof i25.OverlayModule, typeof i26.PryCoreModule, typeof i27.PryCheckboxModule, typeof i28.PryToggleModule, typeof i29.PryOverlayModule, typeof i30.StoreFeatureModule, typeof i31.EffectsFeatureModule, typeof i32.PryDatePickerModule, typeof i33.PryI18nModule], [typeof i1.DashboardComponent, typeof i2.WidgetInstanciatorComponent, typeof i3.WidgetPlaceholderComponent, typeof i4.SettingsComponent, typeof i5.ManifestsComponent, typeof i6.MetadataComponent, typeof i7.ContextMenuComponent, typeof i8.DataWidgetComponent, typeof i9.BaseWidgetComponent, typeof i10.PryWidgetHeaderComponent, typeof i11.PryObjectEditionComponent, typeof i12.VizualizeRawComponent, typeof i13.ResultSetSizePipe, typeof i14.DefaultTooltipComponent, typeof i15.BaseTooltipComponent, typeof i16.BaseFilterComponent, typeof i17.FilterInstanciatorComponent, typeof i18.FilterGroupComponent, typeof i19.DatasourceSelectorComponent]>;
|
|
59
61
|
static ɵinj: i0.ɵɵInjectorDeclaration<PryDashboardModule>;
|
|
60
62
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BehaviorSubject, Observable } from "rxjs";
|
|
2
|
+
import { Store } from "@ngrx/store";
|
|
3
|
+
import { GlobalManifest } from "../../../../core/model/manifest.interface";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FilterGroupComponent {
|
|
6
|
+
private store;
|
|
7
|
+
private document;
|
|
8
|
+
globalManifest$: Observable<GlobalManifest>;
|
|
9
|
+
apply$: BehaviorSubject<void>;
|
|
10
|
+
isSelectOpen: boolean;
|
|
11
|
+
constructor(store: Store, document: Document);
|
|
12
|
+
filter(): void;
|
|
13
|
+
clearFilters(): void;
|
|
14
|
+
openSelect(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterGroupComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterGroupComponent, "pry-filter-group", never, {}, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -3,3 +3,5 @@ export * from './base-filter.module';
|
|
|
3
3
|
export * from './filter-factory.service';
|
|
4
4
|
export * from './filter-loader.function';
|
|
5
5
|
export * from './components/filter-instanciator/filter-instanciator.component';
|
|
6
|
+
export * from './components/filter-group/filter-group.component';
|
|
7
|
+
export * from './style/css.component';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use '../../../../styles/abstracts' as *;
|
|
2
|
+
|
|
3
|
+
.o-container {
|
|
4
|
+
height: 100%;
|
|
5
|
+
|
|
6
|
+
&__filters {
|
|
7
|
+
display: flex;
|
|
8
|
+
padding: toRem(8) toRem(10);
|
|
9
|
+
max-height: 60px; // needed for ng-select
|
|
10
|
+
gap: toRem(10);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&__filter-container {
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: flex-start;
|
|
16
|
+
margin-bottom: toRem(-5);
|
|
17
|
+
max-height: 60px; // needed for ng-select
|
|
18
|
+
padding: toRem(4) 0;
|
|
19
|
+
overflow-x: auto;
|
|
20
|
+
overflow-y: hidden;
|
|
21
|
+
|
|
22
|
+
&:has(ng-dropdown-panel.ng-dropdown-panel) {
|
|
23
|
+
padding-bottom: 350px; // max ng-select dropdown length
|
|
24
|
+
background-clip: content-box, padding-box;
|
|
25
|
+
overflow-x: hidden;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&--ng-select-open {
|
|
29
|
+
padding-bottom: 350px; // max ng-select dropdown length
|
|
30
|
+
background-clip: content-box, padding-box;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__filter-actions {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: toRem(10);
|
|
38
|
+
padding: 0 toRem(10);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class PryFilterGroupCssComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PryFilterGroupCssComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PryFilterGroupCssComponent, "pry-filter-group-css", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/dashboard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "14.x || 15.x || 16.x",
|
|
@@ -205,18 +205,18 @@
|
|
|
205
205
|
"esm": "./esm2022/components/scheme-picker/provoly-dashboard-components-scheme-picker.mjs",
|
|
206
206
|
"default": "./fesm2022/provoly-dashboard-components-scheme-picker.mjs"
|
|
207
207
|
},
|
|
208
|
-
"./components/stepper": {
|
|
209
|
-
"types": "./components/stepper/index.d.ts",
|
|
210
|
-
"esm2022": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
|
|
211
|
-
"esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
|
|
212
|
-
"default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
|
|
213
|
-
},
|
|
214
208
|
"./components/sinceDate": {
|
|
215
209
|
"types": "./components/sinceDate/index.d.ts",
|
|
216
210
|
"esm2022": "./esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs",
|
|
217
211
|
"esm": "./esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs",
|
|
218
212
|
"default": "./fesm2022/provoly-dashboard-components-sinceDate.mjs"
|
|
219
213
|
},
|
|
214
|
+
"./components/stepper": {
|
|
215
|
+
"types": "./components/stepper/index.d.ts",
|
|
216
|
+
"esm2022": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
|
|
217
|
+
"esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
|
|
218
|
+
"default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
|
|
219
|
+
},
|
|
220
220
|
"./pipeline-components/filter": {
|
|
221
221
|
"types": "./pipeline-components/filter/index.d.ts",
|
|
222
222
|
"esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
|
|
@@ -17,36 +17,7 @@
|
|
|
17
17
|
.o-container {
|
|
18
18
|
height: 100%;
|
|
19
19
|
padding: toRem(20);
|
|
20
|
-
|
|
21
|
-
&__filters {
|
|
22
|
-
display: flex;
|
|
23
|
-
padding: toRem(8) toRem(10);
|
|
24
|
-
max-height: 50px; // needed for ng-select
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&__filter-container {
|
|
28
|
-
display: flex;
|
|
29
|
-
justify-content: flex-start;
|
|
30
|
-
overflow-x: auto;
|
|
31
|
-
overflow-y: hidden;
|
|
32
|
-
margin-bottom: toRem(-5);
|
|
33
|
-
max-height: 50px; // needed for ng-select
|
|
34
|
-
padding: toRem(4) 0;
|
|
35
|
-
|
|
36
|
-
&:has(ng-dropdown-panel.ng-dropdown-panel) {
|
|
37
|
-
padding-bottom: 350px; // max ng-select dropdown length
|
|
38
|
-
background-clip: content-box, padding-box;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&__filter-actions {
|
|
43
|
-
display: flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
gap: toRem(10);
|
|
46
|
-
padding: 0 toRem(10);
|
|
47
|
-
}
|
|
48
20
|
}
|
|
49
|
-
|
|
50
21
|
&__toolbox {
|
|
51
22
|
grid-area: tools;
|
|
52
23
|
display: flex;
|
|
@@ -123,6 +123,11 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
123
123
|
toImage(): Promise<string>;
|
|
124
124
|
changeCircleColorScheme($event: any): void;
|
|
125
125
|
changeBaseColor($event: any): void;
|
|
126
|
+
getTimeUnit(options: ChartAggregatedWidgetOptions, abscissaType: VegaType): {
|
|
127
|
+
timeUnit: string;
|
|
128
|
+
} | {
|
|
129
|
+
timeUnit?: undefined;
|
|
130
|
+
};
|
|
126
131
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetAggregatedChartComponent, never>;
|
|
127
132
|
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetAggregatedChartComponent, "pry-widget-aggregated-chart", never, {}, {}, never, never, false, never>;
|
|
128
133
|
}
|