@provoly/dashboard 0.11.7 → 0.11.9

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 (35) hide show
  1. package/esm2022/admin/components/admin-fields/store/fields.effects.mjs +3 -2
  2. package/esm2022/lib/dashboard/store/dashboard-init.service.mjs +11 -7
  3. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +3 -3
  4. package/esm2022/presentation/components/presentation.component.mjs +6 -4
  5. package/esm2022/presentation/style/css.component.mjs +2 -2
  6. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
  7. package/esm2022/restitution/components/restitution-list/restitution-list.component.mjs +26 -32
  8. package/esm2022/restitution/components/restitution-list-item/restitution-list-item.component.mjs +50 -0
  9. package/esm2022/restitution/i18n/fr.translations.mjs +6 -2
  10. package/esm2022/restitution/public-api.mjs +2 -1
  11. package/esm2022/restitution/restitution.module.mjs +16 -5
  12. package/esm2022/restitution/style/css.component.mjs +2 -2
  13. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +8 -4
  14. package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
  15. package/fesm2022/provoly-dashboard-admin.mjs +2 -1
  16. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  17. package/fesm2022/provoly-dashboard-presentation.mjs +9 -7
  18. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  19. package/fesm2022/provoly-dashboard-restitution.mjs +96 -46
  20. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  21. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +9 -5
  22. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  23. package/fesm2022/provoly-dashboard.mjs +10 -6
  24. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  25. package/package.json +1 -1
  26. package/presentation/style/_o-pry-presentation.scss +51 -0
  27. package/restitution/components/restitution-list/restitution-list.component.d.ts +12 -8
  28. package/restitution/components/restitution-list-item/restitution-list-item.component.d.ts +21 -0
  29. package/restitution/i18n/fr.translations.d.ts +4 -0
  30. package/restitution/public-api.d.ts +1 -0
  31. package/restitution/restitution.module.d.ts +10 -9
  32. package/restitution/style/_o-restitution-list.scss +37 -2
  33. package/styles-theme/components-theme/_o-restitution-list.theme.scss +15 -0
  34. package/widgets/widget-map/component/widget-map.component.d.ts +2 -0
  35. package/widgets/widget-map/style/_o-layer-legend.scss +2 -1
@@ -9320,12 +9320,16 @@ class DashboardInitService {
9320
9320
  this.baseConfig = baseConfig;
9321
9321
  }
9322
9322
  init() {
9323
- this.store.dispatch(ConfigActions.defineUrls({
9324
- mapUrl: this.baseConfig.mapUrl,
9325
- pryUrl: this.baseConfig.pryUrl,
9326
- wsUrl: this.baseConfig.wsUrl,
9327
- geoServerUrl: this.baseConfig.geoServerUrl
9328
- }));
9323
+ const properties = ['mapUrl', 'pryUrl', 'wsUrl', 'geoServerUrl'];
9324
+ const config = {};
9325
+ properties.forEach((prop) => {
9326
+ if (!!this.baseConfig[prop]) {
9327
+ config[prop] = this.baseConfig[prop];
9328
+ }
9329
+ });
9330
+ if (Object.keys(config).length > 0) {
9331
+ this.store.dispatch(ConfigActions.defineUrls(config));
9332
+ }
9329
9333
  if (!!this.baseConfig.path) {
9330
9334
  this.router.config.push({ path: this.baseConfig.path, component: DashboardComponent });
9331
9335
  }