@provoly/dashboard 0.24.0 → 0.24.2

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.
Files changed (31) hide show
  1. package/assets/svgs/dashboard-about.svg +4 -0
  2. package/esm2022/lib/core/i18n/en.translations.mjs +2 -1
  3. package/esm2022/lib/core/i18n/fr.translations.mjs +2 -1
  4. package/esm2022/lib/core/model/display-options.interface.mjs +7 -4
  5. package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
  6. package/esm2022/toolbox/components/dashboard-details/dashboard-details.component.mjs +48 -0
  7. package/esm2022/toolbox/components/toolbox.component.mjs +9 -9
  8. package/esm2022/toolbox/public-api.mjs +13 -12
  9. package/esm2022/toolbox/style/css.component.mjs +3 -3
  10. package/esm2022/toolbox/toolbox.model.mjs +10 -2
  11. package/esm2022/toolbox/toolbox.module.mjs +8 -4
  12. package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +3 -3
  13. package/fesm2022/provoly-dashboard-toolbox.mjs +58 -9
  14. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  15. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +2 -2
  16. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
  17. package/fesm2022/provoly-dashboard.mjs +8 -3
  18. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  19. package/lib/core/i18n/en.translations.d.ts +1 -0
  20. package/lib/core/i18n/fr.translations.d.ts +1 -0
  21. package/lib/core/model/display-options.interface.d.ts +1 -0
  22. package/lib/core/model/manifest.interface.d.ts +1 -0
  23. package/lib/dashboard/store/dashboard.effects.d.ts +1 -0
  24. package/lib/dashboard/store/dashboard.selectors.d.ts +8 -0
  25. package/package.json +31 -31
  26. package/styles-theme/abstracts-theme/variables/_variables-colors.scss +1 -0
  27. package/styles-theme/abstracts-theme/variables/_variables-decoration.scss +1 -1
  28. package/toolbox/components/dashboard-details/dashboard-details.component.d.ts +16 -0
  29. package/toolbox/public-api.d.ts +12 -11
  30. package/toolbox/style/_o-dashboard-details.component.scss +69 -0
  31. package/toolbox/toolbox.module.d.ts +10 -9
@@ -96,6 +96,7 @@ export declare const enTranslations: {
96
96
  NAME_ALREADY_USED: string;
97
97
  };
98
98
  };
99
+ about: string;
99
100
  edit: string;
100
101
  editOff: string;
101
102
  launch: string;
@@ -96,6 +96,7 @@ export declare const frTranslations: {
96
96
  };
97
97
  saved: string;
98
98
  };
99
+ about: string;
99
100
  edit: string;
100
101
  editOff: string;
101
102
  launch: string;
@@ -20,6 +20,7 @@ export interface ToolboxDisplayOptions {
20
20
  edit_presentation_content: boolean;
21
21
  share: boolean;
22
22
  delete: boolean;
23
+ dashboard_details: boolean;
23
24
  }
24
25
  export interface WidgetContextMenuDisplayOptions {
25
26
  datasourceSelection: boolean;
@@ -64,6 +64,7 @@ export interface GlobalManifest {
64
64
  [key: string]: number;
65
65
  };
66
66
  filters?: Filter[];
67
+ html?: string;
67
68
  }
68
69
  export interface WidgetManifest {
69
70
  title?: string;
@@ -151,6 +151,7 @@ export declare class DashboardEffects {
151
151
  [key: string]: number;
152
152
  } | undefined;
153
153
  filters?: import("@provoly/dashboard").Filter[] | undefined;
154
+ html?: string | undefined;
154
155
  }]> & import("@ngrx/effects").CreateEffectMetadata;
155
156
  saveManifest$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) fetching available manifests"> | ({
156
157
  initial?: GlobalManifest | undefined;
@@ -32,6 +32,7 @@ export declare const DashboardSelectors: {
32
32
  [key: string]: number;
33
33
  } | undefined;
34
34
  filters?: Filter[] | undefined;
35
+ html?: string | undefined;
35
36
  }, (s1: {
36
37
  sender: string;
37
38
  tenants: string[];
@@ -46,6 +47,7 @@ export declare const DashboardSelectors: {
46
47
  [key: string]: number;
47
48
  } | undefined;
48
49
  filters?: Filter[] | undefined;
50
+ html?: string | undefined;
49
51
  }>;
50
52
  refreshRates: MemoizedSelector<object, {
51
53
  [key: string]: number;
@@ -55,6 +57,7 @@ export declare const DashboardSelectors: {
55
57
  [key: string]: number;
56
58
  } | undefined;
57
59
  filters?: Filter[] | undefined;
60
+ html?: string | undefined;
58
61
  }) => {
59
62
  [key: string]: number;
60
63
  }>;
@@ -64,6 +67,7 @@ export declare const DashboardSelectors: {
64
67
  [key: string]: number;
65
68
  } | undefined;
66
69
  filters?: Filter[] | undefined;
70
+ html?: string | undefined;
67
71
  }, s2: number) => DashboardManifest>;
68
72
  widgetManifest: (index: number) => MemoizedSelector<DashboardManifest, WidgetManifest, import("@ngrx/store").DefaultProjectorFn<WidgetManifest>>;
69
73
  manifestsList: MemoizedSelector<object, import("../../core/model/manifest.interface").ManifestDescription[], (s1: {
@@ -133,6 +137,7 @@ export declare const DashboardSelectors: {
133
137
  [key: string]: number;
134
138
  } | undefined;
135
139
  filters?: Filter[] | undefined;
140
+ html?: string | undefined;
136
141
  }) => {
137
142
  [key: string]: {
138
143
  windowIndex: number;
@@ -252,6 +257,7 @@ export declare const DashboardSelectors: {
252
257
  [key: string]: number;
253
258
  } | undefined;
254
259
  filters?: Filter[] | undefined;
260
+ html?: string | undefined;
255
261
  }, (s1: {
256
262
  sender: string;
257
263
  tenants: string[];
@@ -266,6 +272,7 @@ export declare const DashboardSelectors: {
266
272
  [key: string]: number;
267
273
  } | undefined;
268
274
  filters?: Filter[] | undefined;
275
+ html?: string | undefined;
269
276
  }>;
270
277
  loading: MemoizedSelector<object, boolean, (s1: {
271
278
  sender: string;
@@ -315,6 +322,7 @@ export declare const DashboardSelectors: {
315
322
  [key: string]: number;
316
323
  } | undefined;
317
324
  filters?: Filter[] | undefined;
325
+ html?: string | undefined;
318
326
  }) => boolean>;
319
327
  isCurrentPresentationOwner: MemoizedSelector<object, boolean, (s1: {
320
328
  current: import("../../core/model/manifest.interface").ManifestDescription | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.24.0",
3
+ "version": "0.24.2",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "16.x || 17.x",
@@ -132,6 +132,36 @@
132
132
  "esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
133
133
  "default": "./fesm2022/provoly-dashboard-toolbox.mjs"
134
134
  },
135
+ "./filters/autocomplete": {
136
+ "types": "./filters/autocomplete/index.d.ts",
137
+ "esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
138
+ "esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
139
+ "default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
140
+ },
141
+ "./filters/date": {
142
+ "types": "./filters/date/index.d.ts",
143
+ "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
144
+ "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
145
+ "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
146
+ },
147
+ "./filters/list": {
148
+ "types": "./filters/list/index.d.ts",
149
+ "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
150
+ "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
151
+ "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
152
+ },
153
+ "./filters/number": {
154
+ "types": "./filters/number/index.d.ts",
155
+ "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
156
+ "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
157
+ "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
158
+ },
159
+ "./filters/text": {
160
+ "types": "./filters/text/index.d.ts",
161
+ "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
162
+ "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
163
+ "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
164
+ },
135
165
  "./components/card": {
136
166
  "types": "./components/card/index.d.ts",
137
167
  "esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
@@ -186,36 +216,6 @@
186
216
  "esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
187
217
  "default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
188
218
  },
189
- "./filters/autocomplete": {
190
- "types": "./filters/autocomplete/index.d.ts",
191
- "esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
192
- "esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
193
- "default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
194
- },
195
- "./filters/date": {
196
- "types": "./filters/date/index.d.ts",
197
- "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
198
- "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
199
- "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
200
- },
201
- "./filters/list": {
202
- "types": "./filters/list/index.d.ts",
203
- "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
204
- "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
205
- "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
206
- },
207
- "./filters/number": {
208
- "types": "./filters/number/index.d.ts",
209
- "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
210
- "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
211
- "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
212
- },
213
- "./filters/text": {
214
- "types": "./filters/text/index.d.ts",
215
- "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
216
- "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
217
- "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
218
- },
219
219
  "./pipeline-components/filter": {
220
220
  "types": "./pipeline-components/filter/index.d.ts",
221
221
  "esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
@@ -43,6 +43,7 @@ $theme-colors-grey: (
43
43
  400: #bdbdbd,
44
44
  500: #9e9e9e,
45
45
  600: #757575,
46
+ 700: #253043, // dashboard details titles
46
47
  800: #424B5A, // filter label ("Grey Primary" in Figma)
47
48
  1000: #000000,
48
49
 
@@ -30,7 +30,7 @@ $theme-shadow: (
30
30
  'notification': 0px 0px 11px rgba(17, 59, 110, 0.2),
31
31
  'card': 0px 4px 4px rgba(17, 59, 110, 0.12),
32
32
  'card-hover': 0px 4px 4px rgba(17, 59, 110, 0.22),
33
- 'modal': 0px 4px 15px rgba(17, 59, 110, 0.3)
33
+ 'modal': 0px 2px 7px rgba(0, 0, 0, 0.09)
34
34
  );
35
35
 
36
36
  ///// DO NOT EDIT FROM HERE /////
@@ -0,0 +1,16 @@
1
+ import { Store } from '@ngrx/store';
2
+ import { Observable } from 'rxjs';
3
+ import { GlobalManifest } from '@provoly/dashboard';
4
+ import { ConnectedPosition } from '@angular/cdk/overlay';
5
+ import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DashboardDetailsComponent extends ToolboxActionComponent {
8
+ isPanelOpen: boolean;
9
+ panelPosition: ConnectedPosition[];
10
+ globalManifest$: Observable<GlobalManifest>;
11
+ constructor(store: Store);
12
+ openPanel($event: Event): void;
13
+ closePanel($event: Event | void): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardDetailsComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DashboardDetailsComponent, "pry-dashboard-details", never, {}, {}, never, never, false, never>;
16
+ }
@@ -1,19 +1,20 @@
1
1
  export * from './toolbox.module';
2
+ export * from './toolbox.model';
3
+ export * from './style/css.component';
2
4
  export * from './components/toolbox.component';
3
- export * from './components/save-view/save-view.component';
4
- export * from './components/named-query/named-query.component';
5
- export * from './components/launch-tab/launch-tab.component';
6
- export * from './components/edit-mode-toggle/edit-mode-toggle.component';
7
- export * from './components/drag-widgets/drag-widgets.component';
8
- export * from './components/clear-view/clear-view.component';
9
- export * from './components/select-grid-layout/select-grid-layout.component';
10
- export * from './components/filter-settings/filter-settings.component';
11
5
  export * from './components/toolbox-action/toolbox-action.component';
12
6
  export * from './components/toolbox-action-instanciator/toolbox-action-instanciator.component';
13
- export * from './components/refresh-datasets/refresh-datasets.component';
14
7
  export * from './components/automate-refresh/automate-refresh.component';
8
+ export * from './components/clear-view/clear-view.component';
9
+ export * from './components/dashboard-details/dashboard-details.component';
15
10
  export * from './components/delete/delete.component';
11
+ export * from './components/drag-widgets/drag-widgets.component';
12
+ export * from './components/edit-mode-toggle/edit-mode-toggle.component';
13
+ export * from './components/filter-settings/filter-settings.component';
14
+ export * from './components/launch-tab/launch-tab.component';
15
+ export * from './components/named-query/named-query.component';
16
+ export * from './components/refresh-datasets/refresh-datasets.component';
17
+ export * from './components/save-view/save-view.component';
18
+ export * from './components/select-grid-layout/select-grid-layout.component';
16
19
  export * from './components/share/share.component';
17
20
  export * from './components/switch-to-edit-content/switch-to-edit-content.component';
18
- export * from './style/css.component';
19
- export * from './toolbox.model';
@@ -0,0 +1,69 @@
1
+ @use '../../styles/abstracts/index' as *;
2
+ @use '../../styles/abstracts/functions' as *;
3
+ @use '../../styles/abstracts/mixins' as *;
4
+ @use '../../styles-theme/abstracts-theme/variables.theme' as *;
5
+
6
+ .o-dashboard-details {
7
+ &.a-btn {
8
+ gap: toRem(8);
9
+
10
+ &:hover {
11
+ @include changeBgColor(
12
+ $targetBgColor: themed($theme-map, 'color', 'primary', 300)
13
+ );
14
+ }
15
+ }
16
+ }
17
+
18
+ #dashboard-details-panel {
19
+ background-color: themed($theme-map, 'color', 'primary', 50);
20
+ box-shadow: themed($theme-map, 'decoration', 'shadow', 'modal');
21
+ width: 100%;
22
+ max-width: toRem(500);
23
+ overflow-x: hidden;
24
+ overflow-y: auto;
25
+ max-height: toRem(400);
26
+ padding: toRem(8) toRem(15) toRem(15) toRem(10);
27
+
28
+ .o-modal__top {
29
+ margin: 0;
30
+ padding: 0;
31
+ }
32
+
33
+ .o-modal__top__title {
34
+ font-size: toRem(18);
35
+ color: themed($theme-map, 'color', 'grey', 700);
36
+ padding-bottom: toRem(5);
37
+ }
38
+
39
+ .o-modal__content {
40
+ padding: 0;
41
+ }
42
+
43
+ h5 {
44
+ font-weight: bold;
45
+ font-size: toRem(14);
46
+ color: themed($theme-map, 'color', 'grey', 700);
47
+ padding: 0;
48
+ margin: 0;
49
+ }
50
+
51
+ span, p {
52
+ font-size: toRem(14);
53
+ color: themed($theme-map, 'color', 'primary', 750);
54
+ }
55
+
56
+ div {
57
+ padding-bottom: 10px;
58
+ }
59
+
60
+ ul {
61
+ margin: 0;
62
+ }
63
+
64
+ li {
65
+ color: themed($theme-map, 'color', 'grey', 700);
66
+ font-size: toRem(14);
67
+ }
68
+ }
69
+
@@ -16,16 +16,17 @@ import * as i14 from "./components/automate-refresh/automate-refresh.component";
16
16
  import * as i15 from "./components/switch-to-edit-content/switch-to-edit-content.component";
17
17
  import * as i16 from "./components/share/share.component";
18
18
  import * as i17 from "./components/delete/delete.component";
19
- import * as i18 from "@angular/common";
20
- import * as i19 from "@angular/forms";
21
- import * as i20 from "@angular/cdk/overlay";
22
- import * as i21 from "@provoly/dashboard";
23
- import * as i22 from "@provoly/dashboard/components/checkbox";
24
- import * as i23 from "@provoly/dashboard/components/stepper";
25
- import * as i24 from "@angular/cdk/drag-drop";
26
- import * as i25 from "@angular/cdk/a11y";
19
+ import * as i18 from "./components/dashboard-details/dashboard-details.component";
20
+ import * as i19 from "@angular/common";
21
+ import * as i20 from "@angular/forms";
22
+ import * as i21 from "@angular/cdk/overlay";
23
+ import * as i22 from "@provoly/dashboard";
24
+ import * as i23 from "@provoly/dashboard/components/checkbox";
25
+ import * as i24 from "@provoly/dashboard/components/stepper";
26
+ import * as i25 from "@angular/cdk/drag-drop";
27
+ import * as i26 from "@angular/cdk/a11y";
27
28
  export declare class PryToolboxModule {
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<PryToolboxModule, never>;
29
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryToolboxModule, [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent, typeof i15.SwitchToEditContentComponent, typeof i16.ShareComponent, typeof i17.DeleteComponent], [typeof i18.CommonModule, typeof i19.FormsModule, typeof i20.OverlayModule, typeof i21.PryOverlayModule, typeof i21.PryCoreModule, typeof i21.PryDashboardModule, typeof i21.PrySelectModule, typeof i21.PryIconModule, typeof i22.PryCheckboxModule, typeof i21.PryToggleModule, typeof i23.PryStepperModule, typeof i21.PryShareModule, typeof i21.PryI18nModule, typeof i24.CdkDropList, typeof i24.CdkDrag, typeof i24.CdkDragHandle, typeof i25.A11yModule], [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent, typeof i15.SwitchToEditContentComponent, typeof i16.ShareComponent, typeof i17.DeleteComponent]>;
30
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryToolboxModule, [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent, typeof i15.SwitchToEditContentComponent, typeof i16.ShareComponent, typeof i17.DeleteComponent, typeof i18.DashboardDetailsComponent], [typeof i19.CommonModule, typeof i20.FormsModule, typeof i21.OverlayModule, typeof i22.PryOverlayModule, typeof i22.PryCoreModule, typeof i22.PryDashboardModule, typeof i22.PrySelectModule, typeof i22.PryIconModule, typeof i23.PryCheckboxModule, typeof i22.PryToggleModule, typeof i24.PryStepperModule, typeof i22.PryShareModule, typeof i22.PryI18nModule, typeof i25.CdkDropList, typeof i25.CdkDrag, typeof i25.CdkDragHandle, typeof i26.A11yModule], [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent, typeof i15.SwitchToEditContentComponent, typeof i16.ShareComponent, typeof i17.DeleteComponent, typeof i18.DashboardDetailsComponent]>;
30
31
  static ɵinj: i0.ɵɵInjectorDeclaration<PryToolboxModule>;
31
32
  }