@provoly/dashboard 1.3.13 → 1.3.15

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 (27) hide show
  1. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +5 -2
  2. package/esm2022/components/data-format/data-format.pipe.mjs +7 -19
  3. package/esm2022/import/components/list/import-list.component.mjs +3 -3
  4. package/esm2022/import/components/version-modal/version-modal.component.mjs +5 -4
  5. package/esm2022/import/i18n/en.translations.mjs +3 -3
  6. package/esm2022/import/i18n/fr.translations.mjs +3 -3
  7. package/esm2022/lib/core/i18n/en.translations.mjs +2 -2
  8. package/esm2022/lib/core/i18n/fr.translations.mjs +2 -2
  9. package/esm2022/lib/core/store/search/search.effects.mjs +1 -1
  10. package/esm2022/lib/dashboard/action-bus/service/bus.service.mjs +4 -4
  11. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +3 -3
  12. package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +4 -4
  13. package/esm2022/lib/dashboard/store/manifest-utils.class.mjs +2 -2
  14. package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +2 -2
  15. package/fesm2022/provoly-dashboard-admin.mjs +4 -1
  16. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  17. package/fesm2022/provoly-dashboard-components-data-format.mjs +6 -18
  18. package/fesm2022/provoly-dashboard-components-data-format.mjs.map +1 -1
  19. package/fesm2022/provoly-dashboard-import.mjs +8 -8
  20. package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
  21. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +1 -1
  22. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
  23. package/fesm2022/provoly-dashboard.mjs +9 -9
  24. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  25. package/lib/core/i18n/en.translations.d.ts +1 -1
  26. package/lib/core/i18n/fr.translations.d.ts +1 -1
  27. package/package.json +7 -7
@@ -617,7 +617,7 @@ const enTranslations$1 = {
617
617
  title: 'Title',
618
618
  name: 'Dataset name',
619
619
  productionDate: 'Production date',
620
- importDate: 'Import date',
620
+ lastModifiedDate: 'Last modified date',
621
621
  number: 'Version number',
622
622
  producer: 'Data producer',
623
623
  additionalInformation: 'Version information',
@@ -1073,7 +1073,7 @@ const frTranslations$1 = {
1073
1073
  title: 'Intitulé',
1074
1074
  name: 'Nom de la source de données',
1075
1075
  productionDate: 'Date de production',
1076
- importDate: "Date d'import",
1076
+ lastModifiedDate: 'Date de dernière modification',
1077
1077
  number: 'Numéro de version',
1078
1078
  producer: 'Producteur de données',
1079
1079
  additionalInformation: 'Informations de la version',
@@ -10380,7 +10380,7 @@ class BusService {
10380
10380
  constructor(store, zone) {
10381
10381
  this.store = store;
10382
10382
  this.zone = zone;
10383
- this.sender = v4();
10383
+ this.sender = new Date().toISOString() + v4();
10384
10384
  this.dataChannel = new BroadcastChannel('data');
10385
10385
  this.controlChannel = new BroadcastChannel('control');
10386
10386
  this.buffer = [];
@@ -10394,7 +10394,7 @@ class BusService {
10394
10394
  this.dataChannel.onmessageerror = (msg) => {
10395
10395
  throw new Error(JSON.stringify(msg));
10396
10396
  };
10397
- this.controlChannel.onmessage = (msg) => zone.run(() => {
10397
+ this.controlChannel.onmessage = (msg) => this.zone.run(() => {
10398
10398
  this.manageControlMessage(msg.data);
10399
10399
  });
10400
10400
  this.dataChannel.onmessageerror = (msg) => {
@@ -11642,7 +11642,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImpor
11642
11642
  class ManifestUtils {
11643
11643
  static getDatasourcesUsedByManifest(manifest) {
11644
11644
  const mapOfDatasources = manifest.windows
11645
- .map((window) => (window.widgets ?? []).map((widget) => ({ datasetId: widget.datasource, excludeGeo: widget.type !== 'map' })))
11645
+ .map((window) => (window.widgets ?? []).map((widget) => ({ datasetId: widget.datasource, excludeGeo: widget?.type !== 'map' })))
11646
11646
  .flat(3)
11647
11647
  .filter((dataset) => !!dataset.datasetId)
11648
11648
  .map((res) => Array.isArray(res.datasetId)
@@ -11935,7 +11935,7 @@ class DashboardEffects {
11935
11935
  this.wmsService = wmsService;
11936
11936
  this.widgetFactoryService = widgetFactoryService;
11937
11937
  this.i18nService = i18nService;
11938
- this.join$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.join), withLatestFrom(this.store.select(DashboardSelectors.rank), this.store.select(DashboardSelectors.tenants), this.store.select(DashboardSelectors.globalManifest), this.store.select(DashboardSelectors.resultSets), this.store.select(DashboardSelectors.selectedItemIds), this.store.select(DashboardSelectors.presentation), this.store.select(DashboardSelectors.displayOptions)), filter$1(([action, rank, tenants, manifest, resultSets, display]) => rank === 0), map$1(([action, rank, tenants, manifest, resultSets, selectedIds, presentation, display]) => DashboardActions.updateManifestAfterTenantJoin({
11938
+ this.join$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.join), delay(1000), withLatestFrom(this.store.select(DashboardSelectors.rank), this.store.select(DashboardSelectors.tenants), this.store.select(DashboardSelectors.globalManifest), this.store.select(DashboardSelectors.resultSets), this.store.select(DashboardSelectors.selectedItemIds), this.store.select(DashboardSelectors.presentation), this.store.select(DashboardSelectors.displayOptions)), filter$1(([action, rank, tenants, manifest, resultSets, display]) => rank === 0), debounceTime$1(200), tap((v) => console.log(v)), map$1(([action, rank, tenants, manifest, resultSets, selectedIds, presentation, display]) => DashboardActions.updateManifestAfterTenantJoin({
11939
11939
  tenants, // we already have added tenant in the reduce of the "join" action
11940
11940
  manifest: {
11941
11941
  ...manifest,
@@ -12461,14 +12461,14 @@ const internalReducer = createReducer(dashboardInitialState, on(DashboardActions
12461
12461
  ...state,
12462
12462
  manifests: {
12463
12463
  ...state.manifests,
12464
- tenants: [...state.manifests.tenants, action.sender]
12464
+ tenants: [...state.manifests.tenants, action.sender].sort()
12465
12465
  }
12466
12466
  })), on(DashboardActions.declareSenderId, (state, action) => ({
12467
12467
  ...state,
12468
12468
  manifests: {
12469
12469
  ...state.manifests,
12470
12470
  sender: action.sender,
12471
- tenants: state.manifests.tenants.length === 0 ? action.tenants : state.manifests.tenants
12471
+ tenants: [...(state.manifests.tenants.length === 0 ? action.tenants : state.manifests.tenants)].sort()
12472
12472
  }
12473
12473
  })), on(DashboardActions.updateManifest, DashboardActions.updateManifestAfterTenantJoin, DashboardActions.updateManifestAfterTenantLeave, DashboardActions.updateManifestAfterFetch, DashboardActions.updateManifestWithoutActivation, (state, action) => {
12474
12474
  // @ts-ignore
@@ -12480,7 +12480,7 @@ const internalReducer = createReducer(dashboardInitialState, on(DashboardActions
12480
12480
  ...state,
12481
12481
  manifests: {
12482
12482
  ...state.manifests,
12483
- tenants: action.tenants ?? state.manifests.tenants,
12483
+ tenants: [...(action.tenants ?? state.manifests.tenants)].sort(),
12484
12484
  manifest: ManifestUtils.cleanupManifest(action.manifest),
12485
12485
  currentId: action.manifestId ?? state.manifests.currentId
12486
12486
  },