@provoly/dashboard 1.3.9 → 1.3.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.
Files changed (48) hide show
  1. package/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.d.ts +2 -2
  2. package/admin/i18n/en.translations.d.ts +1 -1
  3. package/admin/i18n/fr.translations.d.ts +1 -1
  4. package/components/data-format/data-format.pipe.d.ts +1 -1
  5. package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +9 -9
  6. package/esm2022/admin/components/admin-fields/admin-fields-select/admin-fields-select.component.mjs +3 -3
  7. package/esm2022/admin/i18n/en.translations.mjs +2 -2
  8. package/esm2022/admin/i18n/fr.translations.mjs +2 -2
  9. package/esm2022/components/data-format/data-format.pipe.mjs +4 -4
  10. package/esm2022/components/paginator/paginator.component.mjs +4 -4
  11. package/esm2022/filters/autocomplete/autocomplete.component.mjs +11 -8
  12. package/esm2022/import/components/list/import-list.component.mjs +13 -5
  13. package/esm2022/import/style/css.component.mjs +2 -2
  14. package/esm2022/lib/core/model/widget-table-manifest.interface.mjs +1 -1
  15. package/esm2022/lib/core/store/field/field.interface.mjs +1 -1
  16. package/esm2022/lib/core/store/field/field.service.mjs +2 -2
  17. package/esm2022/lib/dashboard/dashboard.module.mjs +8 -5
  18. package/esm2022/lib/dashboard/filter/base-filter.component.mjs +7 -3
  19. package/esm2022/lib/dashboard/filter/components/filter-group/filter-group.component.mjs +5 -5
  20. package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +11 -7
  21. package/esm2022/widgets/widget-table/component/widget-table.component.mjs +1 -1
  22. package/esm2022/widgets/widget-table/widget-table.module.mjs +3 -3
  23. package/fesm2022/provoly-dashboard-admin.mjs +12 -12
  24. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  25. package/fesm2022/provoly-dashboard-components-data-format.mjs +3 -3
  26. package/fesm2022/provoly-dashboard-components-data-format.mjs.map +1 -1
  27. package/fesm2022/provoly-dashboard-components-paginator.mjs +3 -3
  28. package/fesm2022/provoly-dashboard-components-paginator.mjs.map +1 -1
  29. package/fesm2022/provoly-dashboard-filters-autocomplete.mjs +9 -6
  30. package/fesm2022/provoly-dashboard-filters-autocomplete.mjs.map +1 -1
  31. package/fesm2022/provoly-dashboard-import.mjs +14 -6
  32. package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
  33. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +10 -6
  34. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
  35. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +2 -2
  36. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
  37. package/fesm2022/provoly-dashboard.mjs +13 -6
  38. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  39. package/filters/autocomplete/autocomplete.component.d.ts +2 -1
  40. package/import/components/list/import-list.component.d.ts +14 -4
  41. package/import/style/_o-import.scss +6 -0
  42. package/lib/core/store/field/field.interface.d.ts +1 -1
  43. package/lib/dashboard/dashboard.module.d.ts +1 -1
  44. package/lib/dashboard/filter/base-filter.component.d.ts +3 -2
  45. package/lib/dashboard/filter/components/filter-group/filter-group.component.d.ts +4 -4
  46. package/package.json +1 -1
  47. package/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.d.ts +1 -1
  48. package/widgets/widget-table/widget-table.module.d.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
- import { BaseFilterComponent, SearchService } from '@provoly/dashboard';
3
+ import { BaseFilterComponent, PrySelectComponent, SearchService } from '@provoly/dashboard';
4
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 {
@@ -12,6 +12,7 @@ export declare class AutocompleteComponent extends BaseFilterComponent implement
12
12
  possibleFilterValues$: Observable<string[]>;
13
13
  possibleFilterValues: string[];
14
14
  items$: BehaviorSubject<string[]>;
15
+ select: PrySelectComponent;
15
16
  constructor(store: Store, searchService: SearchService);
16
17
  ngOnInit(): void;
17
18
  resetAutocompleteValues(): void;
@@ -1,12 +1,21 @@
1
- import { OnInit } from '@angular/core';
2
- import { Action, Store } from '@ngrx/store';
1
+ import { OnInit, WritableSignal } from '@angular/core';
2
+ import { Store } from '@ngrx/store';
3
3
  import { Dataset, DatasetVersion, PryDialogService, PrySortChange, SubscriptionnerDirective } from '@provoly/dashboard';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class PryImportListComponent extends SubscriptionnerDirective implements OnInit {
7
7
  private store;
8
8
  private dialog;
9
- loadDataAction: import("@angular/core").InputSignal<Action>;
9
+ loadDataAction: WritableSignal<{
10
+ limit?: number | undefined;
11
+ offset?: number | undefined;
12
+ dataset?: string | undefined;
13
+ sortBy?: string | undefined;
14
+ orderBy?: "ASC" | "DESC" | undefined;
15
+ dateMin?: string | undefined;
16
+ dateMax?: string | undefined;
17
+ status?: string | undefined;
18
+ } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset versions">>;
10
19
  refreshClick: import("@angular/core").InputSignal<Observable<void> | undefined>;
11
20
  datasets$: Observable<Dataset[]>;
12
21
  possibleStatus: string[];
@@ -29,6 +38,7 @@ export declare class PryImportListComponent extends SubscriptionnerDirective imp
29
38
  openInfoModal(version: DatasetVersion): void;
30
39
  openErrorModal(version: DatasetVersion): void;
31
40
  sortChange($event: PrySortChange): void;
41
+ updateFilters(): void;
32
42
  static ɵfac: i0.ɵɵFactoryDeclaration<PryImportListComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<PryImportListComponent, "pry-import-list", never, { "loadDataAction": { "alias": "loadDataAction"; "required": false; "isSignal": true; }; "refreshClick": { "alias": "refreshClick"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<PryImportListComponent, "pry-import-list", never, { "refreshClick": { "alias": "refreshClick"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
34
44
  }
@@ -70,6 +70,12 @@
70
70
  &__content {
71
71
  overflow: auto;
72
72
  }
73
+
74
+ &__state-filter {
75
+ pry-select {
76
+ min-width: toRem(150);
77
+ }
78
+ }
73
79
  }
74
80
 
75
81
  .m-version-modal {
@@ -18,7 +18,7 @@ export interface FormatOptions {
18
18
  format?: string;
19
19
  decimalPrecision?: number;
20
20
  unit?: string;
21
- isLocaleFormat?: boolean;
21
+ localeFormat?: boolean;
22
22
  }
23
23
  export interface Field extends FormatOptions {
24
24
  id: string;
@@ -57,6 +57,6 @@ export declare class PryDashboardModule {
57
57
  }, additionalGridLayouts?: AutomaticGridLayoutDefinition[]): ModuleWithProviders<PryDashboardModule>;
58
58
  constructor(store: Store);
59
59
  static ɵfac: i0.ɵɵFactoryDeclaration<PryDashboardModule, never>;
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.PryDatasourceCardComponent, typeof i21.PryDatasourceListComponent, typeof i22.PryFilterGroupCssComponent], [typeof i23.CommonModule, typeof i24.FormsModule, typeof i25.PrySelectModule, typeof i26.PryIconModule, typeof i27.OverlayModule, typeof i28.PryCoreModule, typeof i29.PryCheckboxModule, typeof i30.PryToggleModule, typeof i31.PryOverlayModule, typeof i32.StoreFeatureModule, typeof i33.EffectsFeatureModule, typeof i34.PryDatePickerModule, typeof i35.PryI18nModule, typeof i36.PrySinceDateModule], [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.PryDatasourceCardComponent, typeof i21.PryDatasourceListComponent]>;
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.PryDatasourceCardComponent, typeof i21.PryDatasourceListComponent, typeof i22.PryFilterGroupCssComponent], [typeof i23.CommonModule, typeof i24.FormsModule, typeof i25.PrySelectModule, typeof i26.PryIconModule, typeof i27.OverlayModule, typeof i28.PryCoreModule, typeof i29.PryCheckboxModule, typeof i30.PryToggleModule, typeof i31.PryOverlayModule, typeof i32.StoreFeatureModule, typeof i33.EffectsFeatureModule, typeof i34.PryDatePickerModule, typeof i35.PryI18nModule, typeof i36.PrySinceDateModule], [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.PryDatasourceCardComponent, typeof i21.PryDatasourceListComponent, typeof i22.PryFilterGroupCssComponent]>;
61
61
  static ɵinj: i0.ɵɵInjectorDeclaration<PryDashboardModule>;
62
62
  }
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
3
  import { Filter } from '../../core/model/filter.interface';
4
4
  import { SubscriptionnerDirective } from '../components/subscriptionner.directive';
@@ -8,10 +8,11 @@ export declare class BaseFilterComponent extends SubscriptionnerDirective implem
8
8
  filter?: Filter;
9
9
  type: string;
10
10
  protected _value: any;
11
+ valueUpdated: EventEmitter<any>;
11
12
  constructor(store: Store);
12
13
  ngOnInit(): void;
13
14
  updateFilter(value: any): void;
14
15
  validateFilters(): void;
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseFilterComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<BaseFilterComponent, "pry-base-filter", never, { "filter": { "alias": "filter"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseFilterComponent, "pry-base-filter", never, { "filter": { "alias": "filter"; "required": false; }; }, { "valueUpdated": "valueUpdated"; }, never, never, false, never>;
17
18
  }
@@ -1,9 +1,9 @@
1
- import { BehaviorSubject, Observable } from "rxjs";
2
- import { Store } from "@ngrx/store";
3
- import { GlobalManifest } from "../../../../core/model/manifest.interface";
1
+ import { BehaviorSubject, Observable } from 'rxjs';
2
+ import { Store } from '@ngrx/store';
3
+ import { GlobalManifest } from '../../../../core/model/manifest.interface';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class FilterGroupComponent {
6
- private store;
6
+ protected store: Store;
7
7
  private document;
8
8
  globalManifest$: Observable<GlobalManifest>;
9
9
  apply$: BehaviorSubject<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "1.3.9",
3
+ "version": "1.3.11",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "16.x || 17.x",
@@ -144,7 +144,7 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
144
144
  };
145
145
  getAbscissaType(abscissaVegaType: VegaType, hasSort: boolean): VegaType;
146
146
  isTimeInterval(abscissaInterval: string | number): boolean;
147
- getAxisFormat(axisType: string, field?: Field): string;
147
+ getLabelExpr(axis: 'x' | 'y', axisType: string, field?: Field): string;
148
148
  getDataFormat(axisType: string, field?: Field): {
149
149
  format: "%Y-%m-%dT%H:%M:%S" | "%Y-%m-%d" | "%m-%Y" | "%d-%m" | "%Y" | "%m" | "%d" | "%Y-%B-%dT%H:%M:%S";
150
150
  scale: {
@@ -20,6 +20,6 @@ export declare class WidgetTableModule extends BaseWidgetModule {
20
20
  constructor(pryTranslateService: PryI18nService);
21
21
  getComponent(): Type<BaseWidgetComponent>;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetTableModule, never>;
23
- static ɵmod: i0.ɵɵNgModuleDeclaration<WidgetTableModule, [typeof i1.WidgetTableComponent, typeof i2.GetValuePipe, typeof i3.ResizableComponent, typeof i4.ResizableDirective, typeof i5.PryWidgetTableCssComponent, typeof i6.ExpandValueComponent, typeof i7.DetachRowDirective], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.OverlayModule, typeof i11.PryCoreModule, typeof i11.PryDashboardModule, typeof i11.PrySelectModule, typeof i11.PryIconModule, typeof i12.PryCheckboxModule, typeof i11.PryToggleModule, typeof i11.PryI18nModule, typeof i13.PryDataFormatModule, typeof i14.PryPaginatorModule], [typeof i1.WidgetTableComponent]>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WidgetTableModule, [typeof i1.WidgetTableComponent, typeof i2.GetValuePipe, typeof i3.ResizableComponent, typeof i4.ResizableDirective, typeof i5.PryWidgetTableCssComponent, typeof i6.ExpandValueComponent, typeof i7.DetachRowDirective], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.OverlayModule, typeof i11.PryCoreModule, typeof i11.PryDashboardModule, typeof i11.PrySelectModule, typeof i11.PryIconModule, typeof i12.PryCheckboxModule, typeof i11.PryToggleModule, typeof i11.PryI18nModule, typeof i13.PryDataFormatModule, typeof i14.PryPaginatorModule], [typeof i1.WidgetTableComponent, typeof i6.ExpandValueComponent, typeof i2.GetValuePipe]>;
24
24
  static ɵinj: i0.ɵɵInjectorDeclaration<WidgetTableModule>;
25
25
  }