@provoly/dashboard 1.4.17 → 1.4.19

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 (199) hide show
  1. package/admin/components/admin-classes/admin-classes-view/admin-attributes-edit/admin-attributes-edit.component.d.ts +2 -3
  2. package/admin/components/admin-classes/admin-classes-view/admin-attributes-new/admin-attributes-new.component.d.ts +2 -3
  3. package/admin/components/admin-classes/store/admin-class.effects.d.ts +22 -8
  4. package/admin/components/admin-dataset/store/admin-dataset.effects.d.ts +13 -5
  5. package/admin/components/admin-fields/store/fields.effects.d.ts +7 -5
  6. package/admin/store/admin.effects.d.ts +3 -1
  7. package/esm2022/admin/components/admin-abac-rules/admin-abac-rules-edit/admin-abac-rules-edit.component.mjs +3 -3
  8. package/esm2022/admin/components/admin-abac-rules/admin-abac-rules-new/admin-abac-rules-new.component.mjs +3 -3
  9. package/esm2022/admin/components/admin-abac-rules/admin-abac-rules-view/admin-abac-rules-view.component.mjs +3 -3
  10. package/esm2022/admin/components/admin-classes/admin-classes-customize/admin-classes-customize.component.mjs +4 -4
  11. package/esm2022/admin/components/admin-classes/admin-classes-customize/symbol/admin-classes-customize-symbol.component.mjs +2 -2
  12. package/esm2022/admin/components/admin-classes/admin-classes-edit/admin-classes-edit.component.mjs +2 -2
  13. package/esm2022/admin/components/admin-classes/admin-classes-form/admin-classes-form.component.mjs +2 -2
  14. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-edit/admin-attributes-edit.component.mjs +5 -6
  15. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +3 -3
  16. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-new/admin-attributes-new.component.mjs +5 -6
  17. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-classes-view.component.mjs +4 -4
  18. package/esm2022/admin/components/admin-classes/admin-classes.component.mjs +3 -3
  19. package/esm2022/admin/components/admin-classes/store/admin-class.effects.mjs +14 -13
  20. package/esm2022/admin/components/admin-dataset/admin-dataset.component.mjs +3 -3
  21. package/esm2022/admin/components/admin-dataset/admin-form-dataset/admin-form-dataset.component.mjs +3 -3
  22. package/esm2022/admin/components/admin-dataset/store/admin-dataset.effects.mjs +7 -8
  23. package/esm2022/admin/components/admin-environment/store/environment.effects.mjs +2 -2
  24. package/esm2022/admin/components/admin-fields/admin-fields-edit/admin-fields-edit.component.mjs +2 -2
  25. package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +2 -2
  26. package/esm2022/admin/components/admin-fields/admin-fields.component.mjs +4 -4
  27. package/esm2022/admin/components/admin-fields/store/fields.effects.mjs +7 -10
  28. package/esm2022/admin/components/admin-links/admin-links-new/admin-links-new.component.mjs +3 -3
  29. package/esm2022/admin/components/admin-links/admin-links.component.mjs +3 -3
  30. package/esm2022/admin/components/admin-links/store/links.effects.mjs +2 -2
  31. package/esm2022/admin/components/admin-menu/admin-menu.component.mjs +2 -2
  32. package/esm2022/admin/components/admin-metadata/admin-metadata.component.mjs +2 -2
  33. package/esm2022/admin/components/admin-metadata-rules/store/metadata-rules.effects.mjs +2 -2
  34. package/esm2022/admin/components/admin-metadata-user/store/admin-metadata-user.effects.mjs +2 -2
  35. package/esm2022/admin/components/admin-predicates/store/predicates.effects.mjs +2 -2
  36. package/esm2022/admin/components/admin-relation-types/admin-relation-types.component.mjs +2 -2
  37. package/esm2022/admin/components/admin-user/store/admin-user.effects.mjs +2 -2
  38. package/esm2022/admin/components/shared/add-category-modal/add-category-modal.component.mjs +2 -2
  39. package/esm2022/admin/store/admin.effects.mjs +2 -2
  40. package/esm2022/components/metadata-editor/store/metadata.effects.mjs +2 -2
  41. package/esm2022/components/text-editor/component/text-editor.component.mjs +2 -2
  42. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +3 -4
  43. package/esm2022/dataset/components/dataset.component.mjs +4 -4
  44. package/esm2022/filters/autocomplete/autocomplete.component.mjs +4 -4
  45. package/esm2022/filters/number/number-filter.component.mjs +2 -2
  46. package/esm2022/filters/text/text-filter.component.mjs +2 -2
  47. package/esm2022/import/components/form/import-form.component.mjs +2 -2
  48. package/esm2022/import/components/list/import-list.component.mjs +2 -2
  49. package/esm2022/import/store/import.effects.mjs +2 -2
  50. package/esm2022/lib/core/components/select/select.component.mjs +2 -2
  51. package/esm2022/lib/core/components/share/access-rights-share-modal/access-rights-share-modal.component.mjs +3 -3
  52. package/esm2022/lib/core/components/snackbar/snackbar.service.mjs +2 -2
  53. package/esm2022/lib/core/components/upload/upload.component.mjs +2 -2
  54. package/esm2022/lib/core/errors/http-error-interceptor.service.mjs +2 -2
  55. package/esm2022/lib/core/model/filter.interface.mjs +1 -1
  56. package/esm2022/lib/core/model/search-mono-class.model.mjs +1 -1
  57. package/esm2022/lib/core/public-api.mjs +3 -1
  58. package/esm2022/lib/core/store/aggregation/backend-aggregation.service.mjs +3 -4
  59. package/esm2022/lib/core/store/category/category.actions.mjs +3 -3
  60. package/esm2022/lib/core/store/category/category.effects.mjs +10 -6
  61. package/esm2022/lib/core/store/class/class.actions.mjs +3 -3
  62. package/esm2022/lib/core/store/class/class.effects.mjs +10 -6
  63. package/esm2022/lib/core/store/config/config.actions.mjs +2 -2
  64. package/esm2022/lib/core/store/config/config.effects.mjs +13 -8
  65. package/esm2022/lib/core/store/config/open-map-tiles.service.mjs +2 -2
  66. package/esm2022/lib/core/store/data-source/data-source.actions.mjs +8 -8
  67. package/esm2022/lib/core/store/data-source/data-source.effects.mjs +21 -21
  68. package/esm2022/lib/core/store/field/field.actions.mjs +3 -3
  69. package/esm2022/lib/core/store/field/field.effects.mjs +10 -6
  70. package/esm2022/lib/core/store/image/image.effects.mjs +2 -2
  71. package/esm2022/lib/core/store/item/item.actions.mjs +1 -1
  72. package/esm2022/lib/core/store/item/item.effects.mjs +3 -3
  73. package/esm2022/lib/core/store/item/item.service.mjs +8 -9
  74. package/esm2022/lib/core/store/relation-types/relation-types.actions.mjs +4 -4
  75. package/esm2022/lib/core/store/relation-types/relation-types.effects.mjs +11 -10
  76. package/esm2022/lib/core/store/search/search.actions.mjs +1 -1
  77. package/esm2022/lib/core/store/search/search.effects.mjs +3 -2
  78. package/esm2022/lib/core/store/search/search.selectors.mjs +3 -1
  79. package/esm2022/lib/core/store/search/search.service.mjs +4 -9
  80. package/esm2022/lib/dashboard/action-bus/effect/action-bus.effects.mjs +2 -2
  81. package/esm2022/lib/dashboard/components/context-menu/context-menu.component.mjs +2 -2
  82. package/esm2022/lib/dashboard/components/context-menu/object-edition/object-edition.component.mjs +2 -2
  83. package/esm2022/lib/dashboard/components/dashboard.component.mjs +8 -9
  84. package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-list/datasource-list.component.mjs +3 -4
  85. package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +2 -2
  86. package/esm2022/lib/dashboard/components/widgets/widget-instanciator/widget-instanciator.component.mjs +2 -2
  87. package/esm2022/lib/dashboard/filter/components/filter-group/filter-group.component.mjs +3 -3
  88. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +2 -2
  89. package/esm2022/lib/dashboard/store/manifest.service.mjs +2 -2
  90. package/esm2022/lib/dashboard/store/refresh.service.mjs +2 -2
  91. package/esm2022/lib/dashboard/store/wms.service.mjs +2 -2
  92. package/esm2022/notification/components/notification/content/notification-content.component.mjs +2 -2
  93. package/esm2022/pipeline/components/pipeline-editor/pipeline-editor.component.mjs +3 -5
  94. package/esm2022/pipeline/factory/pipeline-component-factory.service.mjs +2 -2
  95. package/esm2022/pipeline/store/pipeline.effects.mjs +2 -2
  96. package/esm2022/pipeline-components/input-datasource/component/input-datasource.component.mjs +2 -3
  97. package/esm2022/pipeline-components/input-datasource/input-datasource.module.mjs +2 -2
  98. package/esm2022/pipeline-components/output-dataset/component/output-dataset.component.mjs +2 -2
  99. package/esm2022/pipeline-components/output-dataset/output-dataset.module.mjs +2 -2
  100. package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -5
  101. package/esm2022/search/search-fulltext/store/search-fulltext.effects.mjs +2 -2
  102. package/esm2022/search/search-home/search-home.component.mjs +3 -4
  103. package/esm2022/search/search-mono-class/components/search-mono-class/search-mono-class.component.mjs +2 -2
  104. package/esm2022/search/search-mono-class/components/search-order/search-order.component.mjs +2 -2
  105. package/esm2022/search/search-mono-class/components/search-select-attribute/search-select-attribute.component.mjs +1 -1
  106. package/esm2022/search/search-mono-class/store/search-mono-class.effects.mjs +2 -2
  107. package/esm2022/search/search-multi-class/store/search-multi-class.effects.mjs +2 -2
  108. package/esm2022/search/search-tools/search-tools.component.mjs +5 -6
  109. package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +2 -2
  110. package/esm2022/toolbox/components/named-query/named-query.component.mjs +2 -2
  111. package/esm2022/toolbox/components/select-grid-layout/select-grid-layout.component.mjs +2 -2
  112. package/esm2022/toolbox/components/toolbox.component.mjs +2 -2
  113. package/esm2022/tooltips/attribute/attribute-tooltip.component.mjs +2 -2
  114. package/esm2022/widgets/widget-analytic/component/widget-analytic.component.mjs +2 -2
  115. package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +2 -2
  116. package/esm2022/widgets/widget-detail/component/widget-detail.component.mjs +2 -2
  117. package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +10 -13
  118. package/esm2022/widgets/widget-image/component/widget-image.component.mjs +2 -2
  119. package/esm2022/widgets/widget-table/component/widget-table.component.mjs +3 -3
  120. package/esm2022/widgets/widget-table/get-value/get-value.pipe.mjs +2 -2
  121. package/esm2022/widgets/widget-table/resizable/resizable.directive.mjs +2 -2
  122. package/esm2022/widgets/widget-template/component/widget-template.component.mjs +2 -2
  123. package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +2 -2
  124. package/esm2022/widgets/widget-vega/component/widget-vega.component.mjs +2 -2
  125. package/fesm2022/provoly-dashboard-admin.mjs +121 -123
  126. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  127. package/fesm2022/provoly-dashboard-components-metadata-editor.mjs +12 -13
  128. package/fesm2022/provoly-dashboard-components-metadata-editor.mjs.map +1 -1
  129. package/fesm2022/provoly-dashboard-components-text-editor.mjs +1 -2
  130. package/fesm2022/provoly-dashboard-components-text-editor.mjs.map +1 -1
  131. package/fesm2022/provoly-dashboard-dataset.mjs +5 -6
  132. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  133. package/fesm2022/provoly-dashboard-filters-autocomplete.mjs +3 -3
  134. package/fesm2022/provoly-dashboard-filters-autocomplete.mjs.map +1 -1
  135. package/fesm2022/provoly-dashboard-filters-number.mjs +1 -2
  136. package/fesm2022/provoly-dashboard-filters-number.mjs.map +1 -1
  137. package/fesm2022/provoly-dashboard-filters-text.mjs +1 -2
  138. package/fesm2022/provoly-dashboard-filters-text.mjs.map +1 -1
  139. package/fesm2022/provoly-dashboard-import.mjs +5 -6
  140. package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
  141. package/fesm2022/provoly-dashboard-notification.mjs +3 -4
  142. package/fesm2022/provoly-dashboard-notification.mjs.map +1 -1
  143. package/fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs +2 -3
  144. package/fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs.map +1 -1
  145. package/fesm2022/provoly-dashboard-pipeline-components-output-dataset.mjs +2 -2
  146. package/fesm2022/provoly-dashboard-pipeline-components-output-dataset.mjs.map +1 -1
  147. package/fesm2022/provoly-dashboard-pipeline.mjs +16 -18
  148. package/fesm2022/provoly-dashboard-pipeline.mjs.map +1 -1
  149. package/fesm2022/provoly-dashboard-restitution.mjs +4 -4
  150. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  151. package/fesm2022/provoly-dashboard-search.mjs +19 -20
  152. package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
  153. package/fesm2022/provoly-dashboard-toolbox.mjs +3 -4
  154. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  155. package/fesm2022/provoly-dashboard-tooltips-attribute.mjs +1 -2
  156. package/fesm2022/provoly-dashboard-tooltips-attribute.mjs.map +1 -1
  157. package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs +1 -2
  158. package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs.map +1 -1
  159. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -2
  160. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  161. package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs +1 -2
  162. package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs.map +1 -1
  163. package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +8 -12
  164. package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
  165. package/fesm2022/provoly-dashboard-widgets-widget-image.mjs +1 -1
  166. package/fesm2022/provoly-dashboard-widgets-widget-image.mjs.map +1 -1
  167. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +2 -3
  168. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
  169. package/fesm2022/provoly-dashboard-widgets-widget-template.mjs +1 -2
  170. package/fesm2022/provoly-dashboard-widgets-widget-template.mjs.map +1 -1
  171. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +1 -2
  172. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
  173. package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs +1 -2
  174. package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs.map +1 -1
  175. package/fesm2022/provoly-dashboard.mjs +986 -981
  176. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  177. package/lib/core/model/filter.interface.d.ts +1 -0
  178. package/lib/core/model/search-mono-class.model.d.ts +4 -2
  179. package/lib/core/public-api.d.ts +2 -0
  180. package/lib/core/store/category/category.actions.d.ts +7 -3
  181. package/lib/core/store/category/category.effects.d.ts +4 -2
  182. package/lib/core/store/class/class.actions.d.ts +7 -3
  183. package/lib/core/store/class/class.effects.d.ts +4 -2
  184. package/lib/core/store/config/config.actions.d.ts +5 -1
  185. package/lib/core/store/config/config.effects.d.ts +12 -4
  186. package/lib/core/store/data-source/data-source.actions.d.ts +23 -11
  187. package/lib/core/store/data-source/data-source.effects.d.ts +23 -15
  188. package/lib/core/store/field/field.actions.d.ts +7 -3
  189. package/lib/core/store/field/field.effects.d.ts +4 -2
  190. package/lib/core/store/item/item.actions.d.ts +4 -0
  191. package/lib/core/store/item/item.service.d.ts +1 -5
  192. package/lib/core/store/relation-types/relation-types.actions.d.ts +9 -5
  193. package/lib/core/store/relation-types/relation-types.effects.d.ts +8 -6
  194. package/lib/core/store/search/search.actions.d.ts +2 -0
  195. package/lib/core/store/search/search.selectors.d.ts +5 -0
  196. package/lib/core/store/search/search.service.d.ts +1 -1
  197. package/package.json +31 -31
  198. package/search/search-mono-class/store/search-mono-class.effects.d.ts +1 -1
  199. package/widgets/widget-graph/component/widget-graph.component.d.ts +2 -5
@@ -20,10 +20,9 @@ import * as i5$1 from '@provoly/dashboard/components/metadata-editor';
20
20
  import { MetadataSelectors, MetadataActions, PryExpandPanelModule } from '@provoly/dashboard/components/metadata-editor';
21
21
  import * as i2 from '@angular/router';
22
22
  import { RouterModule } from '@angular/router';
23
- import { switchMap, mergeMap, combineLatest, of, map, filter, BehaviorSubject, combineLatestWith, Subscription, distinctUntilChanged as distinctUntilChanged$1, debounceTime, startWith, Subject, withLatestFrom, takeUntil, catchError, tap } from 'rxjs';
23
+ import { switchMap, mergeMap, combineLatest, of, map, filter, BehaviorSubject, distinctUntilChanged, combineLatestWith, Subscription, debounceTime, startWith, Subject, withLatestFrom, takeUntil, catchError, tap } from 'rxjs';
24
24
  import { v4 } from 'uuid';
25
25
  import equal from 'fast-deep-equal/es6';
26
- import { distinctUntilChanged, map as map$1, filter as filter$1, mergeMap as mergeMap$1, catchError as catchError$1 } from 'rxjs/operators';
27
26
  import { TemplatePortal } from '@angular/cdk/portal';
28
27
  import * as i5 from '@provoly/dashboard/components/page-loader';
29
28
  import { PryPageLoaderModule } from '@provoly/dashboard/components/page-loader';
@@ -574,8 +573,8 @@ class AdminAbacRulesEditComponent {
574
573
  this.store = store;
575
574
  this.router = router;
576
575
  this.route = route;
577
- this.store.dispatch(ClassActions.load());
578
- this.store.dispatch(FieldActions.load());
576
+ this.store.dispatch(ClassActions.load({}));
577
+ this.store.dispatch(FieldActions.load({}));
579
578
  this.store.dispatch(PredicatesActions.loadPredicates());
580
579
  this.store.dispatch(MetadataActions.loadMetadata());
581
580
  this.store.dispatch(MetadataActions.loadUserProfile());
@@ -769,8 +768,8 @@ class AdminAbacRulesNewComponent {
769
768
  constructor(store, abacRuleService) {
770
769
  this.store = store;
771
770
  this.abacRuleService = abacRuleService;
772
- this.store.dispatch(ClassActions.load());
773
- this.store.dispatch(FieldActions.load());
771
+ this.store.dispatch(ClassActions.load({}));
772
+ this.store.dispatch(FieldActions.load({}));
774
773
  this.store.dispatch(PredicatesActions.loadPredicates());
775
774
  this.store.dispatch(MetadataActions.loadMetadata());
776
775
  this.store.dispatch(MetadataActions.loadUserProfile());
@@ -793,8 +792,8 @@ class AdminAbacRulesViewComponent {
793
792
  this.store = store;
794
793
  this.router = router;
795
794
  this.route = route;
796
- this.store.dispatch(ClassActions.load());
797
- this.store.dispatch(FieldActions.load());
795
+ this.store.dispatch(ClassActions.load({}));
796
+ this.store.dispatch(FieldActions.load({}));
798
797
  this.store.dispatch(PredicatesActions.loadPredicates());
799
798
  this.store.dispatch(MetadataActions.loadMetadata());
800
799
  }
@@ -1247,9 +1246,9 @@ class AdminClassesCustomizeComponent extends SubscriptionnerDirective {
1247
1246
  this.otherTileAttributes = [];
1248
1247
  this.maxTilesAttributes = 5;
1249
1248
  this.subscriptions.add(this.route.params.subscribe((params) => this.store.dispatch(AdminClassActions.selectClass({ clazz: { id: params['id'] } }))));
1250
- this.store.dispatch(ClassActions.load());
1251
- this.store.dispatch(FieldActions.load());
1252
- this.store.dispatch(ConfigActions.loadCustomization());
1249
+ this.store.dispatch(ClassActions.load({}));
1250
+ this.store.dispatch(FieldActions.load({}));
1251
+ this.store.dispatch(ConfigActions.loadCustomization({}));
1253
1252
  this.fields$ = this.store.select(FieldSelectors.fields);
1254
1253
  this.currentClass$ = combineLatest([
1255
1254
  this.store.select(AdminClassSelectors.selectedClass),
@@ -1361,7 +1360,7 @@ class AdminClassesFormComponent extends SubscriptionnerDirective {
1361
1360
  this.storageOptions$ = this.store.select(AdminClassSelectors.storageOptions);
1362
1361
  }
1363
1362
  ngOnInit() {
1364
- this.store.dispatch(ClassActions.load());
1363
+ this.store.dispatch(ClassActions.load({}));
1365
1364
  this.classNames$ = this.store
1366
1365
  .select(ClassSelectors.classes)
1367
1366
  .pipe(map((classes) => classes.map((clazz) => clazz.name.toLowerCase())));
@@ -1426,7 +1425,7 @@ class AdminClassesEditComponent {
1426
1425
  this.store = store;
1427
1426
  this.router = router;
1428
1427
  this.route = route;
1429
- this.store.dispatch(ClassActions.load());
1428
+ this.store.dispatch(ClassActions.load({}));
1430
1429
  }
1431
1430
  ngOnInit() {
1432
1431
  this.route.params.subscribe((params) => (this.currentClass$ = this.store.select(ClassSelectors.classById(params['id']))));
@@ -1477,7 +1476,7 @@ class AddCategoryModalComponent {
1477
1476
  this.category = new EventEmitter();
1478
1477
  this.actions = {
1479
1478
  attribute: {
1480
- load: () => this.store.dispatch(CategoryActions.load()),
1479
+ load: () => this.store.dispatch(CategoryActions.load({})),
1481
1480
  select: () => this.store.select(CategorySelectors.categories),
1482
1481
  add: (category) => this.store.dispatch(AdminClassActions.saveCategory({ category }))
1483
1482
  },
@@ -1539,9 +1538,9 @@ class AdminAttributesFormComponent extends SubscriptionnerDirective {
1539
1538
  this.nameAlreadyExists = false;
1540
1539
  this.technicalNameAlreadyExists = false;
1541
1540
  this.FIELD_I18N = FIELD_I18N;
1542
- this.store.dispatch(FieldActions.load());
1541
+ this.store.dispatch(FieldActions.load({}));
1543
1542
  this.fields$ = this.store.select(FieldSelectors.fields);
1544
- this.store.dispatch(CategoryActions.load());
1543
+ this.store.dispatch(CategoryActions.load({}));
1545
1544
  this.categories$ = this.store.select(CategorySelectors.categories);
1546
1545
  this.attrForm = this.formBuilder.group({
1547
1546
  id: [v4()],
@@ -1581,7 +1580,7 @@ class AdminAttributesFormComponent extends SubscriptionnerDirective {
1581
1580
  }
1582
1581
  this.subscriptions.add(this.attrForm
1583
1582
  .get('technicalName')
1584
- .valueChanges.pipe(distinctUntilChanged$1(), debounceTime(500))
1583
+ .valueChanges.pipe(distinctUntilChanged(), debounceTime(500))
1585
1584
  .subscribe((value) => {
1586
1585
  this.attrForm.patchValue({
1587
1586
  name: value.slice(0, 50)
@@ -1664,11 +1663,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
1664
1663
  }] } });
1665
1664
 
1666
1665
  class AdminAttributesEditComponent {
1667
- constructor(store, router, route) {
1666
+ constructor(store, route) {
1668
1667
  this.store = store;
1669
- this.router = router;
1670
1668
  this.route = route;
1671
- this.store.dispatch(ClassActions.load());
1669
+ this.store.dispatch(ClassActions.load({}));
1672
1670
  }
1673
1671
  ngOnInit() {
1674
1672
  this.route.params.subscribe((params) => {
@@ -1676,20 +1674,19 @@ class AdminAttributesEditComponent {
1676
1674
  this.selectedAttribute$ = this.selectedClass$.pipe(map((selectedClass) => selectedClass.attributes.find((attr) => attr.id == params['attrId'])));
1677
1675
  });
1678
1676
  }
1679
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AdminAttributesEditComponent, deps: [{ token: i1.Store }, { token: i2.Router }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
1677
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AdminAttributesEditComponent, deps: [{ token: i1.Store }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
1680
1678
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: AdminAttributesEditComponent, selector: "pry-admin-attributes-edit", ngImport: i0, template: "@if (selectedClass$ | async; as selectedClass) {\n <div class=\"classes-container\">\n @if (selectedAttribute$ | async; as selectedAttribute) {\n <div>\n <h2 class=\"classes__title\" [innerHTML]=\"'@pry.admin.classes.attributes.edit' | i18n\"></h2>\n <pry-admin-attributes-form\n [selectedClass]=\"selectedClass\"\n [selectedAttribute]=\"selectedAttribute\"\n ></pry-admin-attributes-form>\n </div>\n }\n </div>\n}\n", dependencies: [{ kind: "component", type: AdminAttributesFormComponent, selector: "pry-admin-attributes-form", inputs: ["selectedClass", "interClass", "selectedAttribute"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.I18nPipe, name: "i18n" }] }); }
1681
1679
  }
1682
1680
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AdminAttributesEditComponent, decorators: [{
1683
1681
  type: Component,
1684
1682
  args: [{ selector: 'pry-admin-attributes-edit', template: "@if (selectedClass$ | async; as selectedClass) {\n <div class=\"classes-container\">\n @if (selectedAttribute$ | async; as selectedAttribute) {\n <div>\n <h2 class=\"classes__title\" [innerHTML]=\"'@pry.admin.classes.attributes.edit' | i18n\"></h2>\n <pry-admin-attributes-form\n [selectedClass]=\"selectedClass\"\n [selectedAttribute]=\"selectedAttribute\"\n ></pry-admin-attributes-form>\n </div>\n }\n </div>\n}\n" }]
1685
- }], ctorParameters: () => [{ type: i1.Store }, { type: i2.Router }, { type: i2.ActivatedRoute }] });
1683
+ }], ctorParameters: () => [{ type: i1.Store }, { type: i2.ActivatedRoute }] });
1686
1684
 
1687
1685
  class AdminAttributesNewComponent {
1688
- constructor(store, router, route) {
1686
+ constructor(store, route) {
1689
1687
  this.store = store;
1690
- this.router = router;
1691
1688
  this.route = route;
1692
- this.store.dispatch(ClassActions.load());
1689
+ this.store.dispatch(ClassActions.load({}));
1693
1690
  }
1694
1691
  ngOnInit() {
1695
1692
  this.route.params.subscribe((params) => {
@@ -1697,13 +1694,13 @@ class AdminAttributesNewComponent {
1697
1694
  this.interClass$ = this.store.select(AdminClassSelectors.interClass);
1698
1695
  });
1699
1696
  }
1700
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AdminAttributesNewComponent, deps: [{ token: i1.Store }, { token: i2.Router }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
1697
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AdminAttributesNewComponent, deps: [{ token: i1.Store }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
1701
1698
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.7", type: AdminAttributesNewComponent, selector: "pry-admin-attributes-new", ngImport: i0, template: "@if (selectedClass$ | async; as selectedClass) {\n <div class=\"o-base-container\">\n <h1 class=\"a-h1\">\n {{ '@pry.admin.classes.title' | i18n: { class: selectedClass.name } }}\n </h1>\n <h2>\n {{ '@pry.admin.classes.attributes.add' | i18n }}\n </h2>\n <pry-admin-attributes-form [selectedClass]=\"selectedClass\"></pry-admin-attributes-form>\n </div>\n}\n\n@if (interClass$ | async; as selectedClass) {\n <div class=\"o-base-container\">\n <h1 class=\"a-h1\" [innerHTML]=\"'@pry.admin.classes.attributes.add' | i18n: { class: selectedClass.name }\"></h1>\n <pry-admin-attributes-form [interClass]=\"selectedClass\"></pry-admin-attributes-form>\n </div>\n}\n", dependencies: [{ kind: "component", type: AdminAttributesFormComponent, selector: "pry-admin-attributes-form", inputs: ["selectedClass", "interClass", "selectedAttribute"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.I18nPipe, name: "i18n" }] }); }
1702
1699
  }
1703
1700
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AdminAttributesNewComponent, decorators: [{
1704
1701
  type: Component,
1705
1702
  args: [{ selector: 'pry-admin-attributes-new', template: "@if (selectedClass$ | async; as selectedClass) {\n <div class=\"o-base-container\">\n <h1 class=\"a-h1\">\n {{ '@pry.admin.classes.title' | i18n: { class: selectedClass.name } }}\n </h1>\n <h2>\n {{ '@pry.admin.classes.attributes.add' | i18n }}\n </h2>\n <pry-admin-attributes-form [selectedClass]=\"selectedClass\"></pry-admin-attributes-form>\n </div>\n}\n\n@if (interClass$ | async; as selectedClass) {\n <div class=\"o-base-container\">\n <h1 class=\"a-h1\" [innerHTML]=\"'@pry.admin.classes.attributes.add' | i18n: { class: selectedClass.name }\"></h1>\n <pry-admin-attributes-form [interClass]=\"selectedClass\"></pry-admin-attributes-form>\n </div>\n}\n" }]
1706
- }], ctorParameters: () => [{ type: i1.Store }, { type: i2.Router }, { type: i2.ActivatedRoute }] });
1703
+ }], ctorParameters: () => [{ type: i1.Store }, { type: i2.ActivatedRoute }] });
1707
1704
 
1708
1705
  class AdminClassesViewComponent {
1709
1706
  constructor(store, router, route, overlay, viewContainerRef, i18n) {
@@ -1720,9 +1717,9 @@ class AdminClassesViewComponent {
1720
1717
  this.sortActive = 'name';
1721
1718
  this.sortDirection = 'asc';
1722
1719
  this.selectedClassId = '';
1723
- this.store.dispatch(ClassActions.load());
1724
- this.store.dispatch(FieldActions.load());
1725
- this.store.dispatch(CategoryActions.load());
1720
+ this.store.dispatch(ClassActions.load({}));
1721
+ this.store.dispatch(FieldActions.load({}));
1722
+ this.store.dispatch(CategoryActions.load({}));
1726
1723
  this.store.dispatch(AdminClassActions.unselectAttribute());
1727
1724
  this.fields$ = this.store.select(FieldSelectors.fields);
1728
1725
  this.categories$ = this.store.select(CategorySelectors.categories);
@@ -1888,10 +1885,10 @@ class AdminClassesComponent {
1888
1885
  this.sortDirection = 'asc';
1889
1886
  this.sub = new Subscription();
1890
1887
  this.store.dispatch(ClassActions.loadDatasetCount());
1891
- this.store.dispatch(ClassActions.load());
1888
+ this.store.dispatch(ClassActions.load({}));
1892
1889
  this.store.dispatch(AdminClassActions.unselectClass());
1893
1890
  this.store.dispatch(AdminClassActions.resetInterClass());
1894
- this.store.dispatch(ConfigActions.loadCustomization());
1891
+ this.store.dispatch(ConfigActions.loadCustomization({}));
1895
1892
  this.classes$ = this.store.select(ClassSelectors.classes);
1896
1893
  this.selectedClassId$ = this.store.select(AdminClassSelectors.selectedClassId);
1897
1894
  this.datasetCounts$ = this.store.select(ClassSelectors.datasetCounts);
@@ -1996,8 +1993,8 @@ class AdminDatasetComponent {
1996
1993
  this.editOpened = false;
1997
1994
  this.getShareLevel = getShareLevel;
1998
1995
  this.loading$ = this.store.select(ClassSelectors.loading);
1999
- this.store.dispatch(DataSourceActions.dataset.loadDataset());
2000
- this.store.dispatch(ClassActions.load());
1996
+ this.store.dispatch(DataSourceActions.dataset.loadDataset({}));
1997
+ this.store.dispatch(ClassActions.load({}));
2001
1998
  this.validateAction = () => this.validateName(this.labelDatasetSelected);
2002
1999
  this.cancelAction = () => this.cancelEdition();
2003
2000
  this.configHeader = [
@@ -2068,8 +2065,8 @@ class AdminFormDatasetComponent extends SubscriptionnerDirective {
2068
2065
  this.datasetTypes = [];
2069
2066
  this.isSameName = false;
2070
2067
  this.isSubmitted = false;
2071
- this.store.dispatch(ClassActions.load());
2072
- this.store.dispatch(DataSourceActions.dataset.loadDataset());
2068
+ this.store.dispatch(ClassActions.load({}));
2069
+ this.store.dispatch(DataSourceActions.dataset.loadDataset({}));
2073
2070
  this.store.dispatch(DataSourceActions.dataset.getCategories());
2074
2071
  this.datasetList$ = this.store.select(DataSourceSelectors.datasets);
2075
2072
  this.classes$ = this.store.select(ClassSelectors.classes);
@@ -2468,7 +2465,7 @@ class AdminFieldsFormComponent extends SubscriptionnerDirective {
2468
2465
  this.CRS_OPTIONS = CRS_OPTIONS;
2469
2466
  this.FieldType = FieldType;
2470
2467
  this.FIELD_I18N = FIELD_I18N;
2471
- this.store.dispatch(FieldActions.load());
2468
+ this.store.dispatch(FieldActions.load({}));
2472
2469
  this.fieldNames$ = this.store
2473
2470
  .select(FieldSelectors.fields)
2474
2471
  .pipe(map((fields) => fields.map((field) => field.name.toLowerCase())));
@@ -2638,7 +2635,7 @@ class AdminFieldsEditComponent {
2638
2635
  constructor(store, route) {
2639
2636
  this.store = store;
2640
2637
  this.route = route;
2641
- this.store.dispatch(FieldActions.load());
2638
+ this.store.dispatch(FieldActions.load({}));
2642
2639
  }
2643
2640
  ngOnInit() {
2644
2641
  this.route.params.subscribe((params) => (this.currentField$ = this.store.select(FieldSelectors.fieldById(params['id']))));
@@ -2691,8 +2688,8 @@ class AdminFieldsComponent {
2691
2688
  this.sortActive = 'name';
2692
2689
  this.sortDirection = 'asc';
2693
2690
  this.FIELD_I18N = FIELD_I18N;
2694
- this.store.dispatch(ClassActions.load());
2695
- this.store.dispatch(FieldActions.load());
2691
+ this.store.dispatch(ClassActions.load({}));
2692
+ this.store.dispatch(FieldActions.load({}));
2696
2693
  this.store.dispatch(FieldsActions.unselectField());
2697
2694
  this.currentFieldId$ = this.store.select(FieldsSelectors.selectedFieldId);
2698
2695
  this.fields$ = combineLatest([
@@ -3837,7 +3834,7 @@ class AdminMenuComponent extends BaseMenuComponent {
3837
3834
  this.menus$ = this.store.select(AdminSelectors.menus);
3838
3835
  this.highlightedMenu$ = this.store.select(AdminSelectors.highlightedMenu);
3839
3836
  this.limit$ = new BehaviorSubject(undefined);
3840
- this.subMenu$ = combineLatest([this.store.select(AdminSelectors.subMenus), this.limit$]).pipe(map$1(([menus, limit]) => (limit ? menus.filter((menu) => menu.name === limit) : menus)));
3837
+ this.subMenu$ = combineLatest([this.store.select(AdminSelectors.subMenus), this.limit$]).pipe(map(([menus, limit]) => (limit ? menus.filter((menu) => menu.name === limit) : menus)));
3841
3838
  }
3842
3839
  select(menu) {
3843
3840
  const path = this.router.createUrlTree([menu], { relativeTo: this.route });
@@ -3978,8 +3975,8 @@ class AdminLinksNewComponent {
3978
3975
  this.sortDirection = 'asc';
3979
3976
  this.isSubmitted = false;
3980
3977
  this.isSelectClass = false;
3981
- this.store.dispatch(ClassActions.load());
3982
- this.store.dispatch(RelationTypesActions.load());
3978
+ this.store.dispatch(ClassActions.load({}));
3979
+ this.store.dispatch(RelationTypesActions.load({}));
3983
3980
  this.store.dispatch(LinksActions.loadLinks());
3984
3981
  this.classes$ = this.store.select(ClassSelectors.classes);
3985
3982
  this.relationTypes$ = this.store.select(RelationTypesSelectors.relationsTypes);
@@ -4054,8 +4051,8 @@ class AdminLinksComponent {
4054
4051
  this.sortDirection = 'asc';
4055
4052
  this.sub = new Subscription();
4056
4053
  this.store.dispatch(LinksActions.loadLinks());
4057
- this.store.dispatch(ClassActions.load());
4058
- this.store.dispatch(RelationTypesActions.load());
4054
+ this.store.dispatch(ClassActions.load({}));
4055
+ this.store.dispatch(RelationTypesActions.load({}));
4059
4056
  this.links$ = this.store.select(LinksSelectors.links);
4060
4057
  this.classes$ = this.store.select(ClassSelectors.classes);
4061
4058
  const path = this.router.createUrlTree(['.', 'new'], { relativeTo: this.route });
@@ -4643,7 +4640,7 @@ class AdminMetadataComponent {
4643
4640
  this.store.dispatch(MetadataActions.loadMetadata());
4644
4641
  this.store
4645
4642
  .select(MetadataSelectors.selectedMetadata)
4646
- .pipe(filter$1((x) => !!x), takeUntil(this.unsubscribe$))
4643
+ .pipe(filter((x) => !!x), takeUntil(this.unsubscribe$))
4647
4644
  .subscribe((selectedMetadata) => {
4648
4645
  this.value = selectedMetadata.name;
4649
4646
  });
@@ -4935,7 +4932,7 @@ class AdminRelationTypesComponent {
4935
4932
  this.store = store;
4936
4933
  this.sortActive = 'name';
4937
4934
  this.sortDirection = 'asc';
4938
- this.store.dispatch(RelationTypesActions.load());
4935
+ this.store.dispatch(RelationTypesActions.load({}));
4939
4936
  this.store.dispatch(RelationTypesActions.unSelectRelationType());
4940
4937
  this.relationTypes = this.store.select(RelationTypesSelectors.relationsTypes);
4941
4938
  this.selectedRelationType$ = this.store.select(RelationTypesSelectors.selectedRelationType);
@@ -5761,10 +5758,10 @@ class AdminClassEffects {
5761
5758
  this.adminService = adminService;
5762
5759
  this.pryDialog = pryDialog;
5763
5760
  this.service = service;
5764
- this.updateToolbox$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.updateToolbox), mergeMap$1((action) => {
5765
- return [ClassActions.load(), AdminActions.selectComponentType({ componentType: null })];
5761
+ this.updateToolbox$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.updateToolbox), mergeMap((action) => {
5762
+ return [ClassActions.load({ force: true }), AdminActions.selectComponentType({ componentType: null })];
5766
5763
  })));
5767
- this.saveClass$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveClass), mergeMap$1((action) => {
5764
+ this.saveClass$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveClass), mergeMap((action) => {
5768
5765
  if (action.class.attributes.length === 0) {
5769
5766
  const data = {
5770
5767
  title: '@pry.admin.infoModalTitle',
@@ -5774,20 +5771,20 @@ class AdminClassEffects {
5774
5771
  this.pryDialog.open(PryDialogConfirmComponent, { data });
5775
5772
  return [];
5776
5773
  }
5777
- return this.adminService.saveClass(action.class).pipe(map$1(() => AdminClassActions.saveClassSuccess({ route: action.route })), catchError$1((error) => [AdminClassActions.saveClassFailure({ error: error })]));
5774
+ return this.adminService.saveClass(action.class).pipe(map(() => AdminClassActions.saveClassSuccess({ route: action.route })), catchError((error) => [AdminClassActions.saveClassFailure({ error: error })]));
5778
5775
  })));
5779
- this.saveInterClass$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveInterClass), map$1((action) => {
5780
- return AdminActions.routeTo({ path: action.route });
5776
+ this.saveInterClass$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveInterClass), mergeMap((action) => {
5777
+ return [AdminActions.routeTo({ path: action.route }), ClassActions.load({ force: true })];
5781
5778
  })));
5782
- this.saveClassSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveClassSuccess), map$1((action) => {
5783
- return AdminActions.routeTo({ path: action.route });
5779
+ this.saveClassSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveClassSuccess), mergeMap((action) => {
5780
+ return [AdminActions.routeTo({ path: action.route }), ClassActions.load({ force: true })];
5784
5781
  })));
5785
- this.saveAttributeForClass$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveAttributeForClass), mergeMap$1((action) => this.adminService.saveAttributeForClass(action.classId, action.attribute).pipe(map$1(() => AdminClassActions.saveAttributeForClassSuccess({ route: action.route })), catchError$1((error) => [AdminClassActions.saveAttributeForClassFailure({ error: error })])))));
5786
- this.saveAttributeForClassSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveAttributeForClassSuccess), map$1((action) => {
5787
- return AdminActions.routeTo({ path: action.route });
5782
+ this.saveAttributeForClass$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveAttributeForClass), mergeMap((action) => this.adminService.saveAttributeForClass(action.classId, action.attribute).pipe(map(() => AdminClassActions.saveAttributeForClassSuccess({ route: action.route })), catchError((error) => [AdminClassActions.saveAttributeForClassFailure({ error: error })])))));
5783
+ this.saveAttributeForClassSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveAttributeForClassSuccess), mergeMap((action) => {
5784
+ return [AdminActions.routeTo({ path: action.route }), ClassActions.load({ force: true })];
5788
5785
  })));
5789
- this.deleteClass$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.deleteClass), mergeMap$1((action) => this.adminService.deleteClass(action.id).pipe(map$1(() => AdminClassActions.deleteClassSuccess({ route: action.route })), catchError$1((error) => [AdminClassActions.deleteClassFailure({ error: error })])))));
5790
- this.deleteClassSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.deleteClassSuccess), mergeMap$1((action) => {
5786
+ this.deleteClass$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.deleteClass), mergeMap((action) => this.adminService.deleteClass(action.id).pipe(map(() => AdminClassActions.deleteClassSuccess({ route: action.route })), catchError((error) => [AdminClassActions.deleteClassFailure({ error: error })])))));
5787
+ this.deleteClassSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.deleteClassSuccess), mergeMap((action) => {
5791
5788
  return [
5792
5789
  AdminClassActions.updateToolbox(),
5793
5790
  AdminActions.mainActions({
@@ -5801,15 +5798,16 @@ class AdminClassEffects {
5801
5798
  actionAccess: 'write'
5802
5799
  }
5803
5800
  ]
5804
- })
5801
+ }),
5802
+ ClassActions.load({ force: true })
5805
5803
  ];
5806
5804
  })));
5807
- this.deleteAttributeForClass$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.deleteAttributeForClass), mergeMap$1((action) => this.adminService.deleteAttributeForClass(action.classId, action.attrId).pipe(map$1(() => AdminClassActions.deleteAttributeForClassSuccess({
5805
+ this.deleteAttributeForClass$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.deleteAttributeForClass), mergeMap((action) => this.adminService.deleteAttributeForClass(action.classId, action.attrId).pipe(map(() => AdminClassActions.deleteAttributeForClassSuccess({
5808
5806
  classId: action.classId,
5809
5807
  backPath: action.backPath,
5810
5808
  addAttrPath: action.addAttrPath
5811
- })), catchError$1((error) => [AdminClassActions.deleteAttributeForClassFailure({ error: error })])))));
5812
- this.deleteAttributeForClassSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.deleteAttributeForClassSuccess), mergeMap$1((action) => {
5809
+ })), catchError((error) => [AdminClassActions.deleteAttributeForClassFailure({ error: error })])))));
5810
+ this.deleteAttributeForClassSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.deleteAttributeForClassSuccess), mergeMap((action) => {
5813
5811
  return [
5814
5812
  AdminClassActions.updateToolbox(),
5815
5813
  AdminActions.mainActions({
@@ -5828,14 +5826,15 @@ class AdminClassEffects {
5828
5826
  actionAccess: 'write'
5829
5827
  }
5830
5828
  ]
5831
- })
5829
+ }),
5830
+ ClassActions.load({ force: true })
5832
5831
  ];
5833
5832
  })));
5834
- this.saveCategory$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveCategory), mergeMap$1((action) => this.adminService.saveCategory(action.category).pipe(map$1(() => AdminClassActions.saveCategorySuccess()), catchError$1((error) => [AdminClassActions.saveCategoryFailure({ error: error })])))));
5835
- this.saveCategorySuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveCategorySuccess), map$1((action) => {
5836
- return CategoryActions.load();
5833
+ this.saveCategory$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveCategory), mergeMap((action) => this.adminService.saveCategory(action.category).pipe(map(() => AdminClassActions.saveCategorySuccess()), catchError((error) => [AdminClassActions.saveCategoryFailure({ error: error })])))));
5834
+ this.saveCategorySuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.saveCategorySuccess), map((action) => {
5835
+ return CategoryActions.load({ force: true });
5837
5836
  })));
5838
- this.back$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.back), map$1((action) => {
5837
+ this.back$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.back), map((action) => {
5839
5838
  return AdminActions.routeTo({ path: action.path });
5840
5839
  })));
5841
5840
  this.confirmClassDeletion$ = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.confirmClassDeletion), tap((action) => {
@@ -5876,8 +5875,8 @@ class AdminClassEffects {
5876
5875
  };
5877
5876
  this.pryDialog.open(PryDialogConfirmComponent, { data });
5878
5877
  })), { dispatch: false });
5879
- this.getStorageOptions = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.getStorageOptions), mergeMap$1(() => {
5880
- return this.adminService.getStorageOptions().pipe(map$1((storageOptions) => AdminClassActions.getStorageOptionsSuccess({ storageOptions })), catchError$1((error) => [AdminClassActions.getStorageOptionsFailure({ error: error })]));
5878
+ this.getStorageOptions = createEffect(() => this.actions$.pipe(ofType(AdminClassActions.getStorageOptions), mergeMap(() => {
5879
+ return this.adminService.getStorageOptions().pipe(map((storageOptions) => AdminClassActions.getStorageOptionsSuccess({ storageOptions })), catchError((error) => [AdminClassActions.getStorageOptionsFailure({ error: error })]));
5881
5880
  })));
5882
5881
  }
5883
5882
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AdminClassEffects, deps: [{ token: i1$2.Actions }, { token: AdminService }, { token: i3.PryDialogService }, { token: AdminService }], target: i0.ɵɵFactoryTarget.Injectable }); }
@@ -5892,14 +5891,14 @@ class EnvironmentEffects {
5892
5891
  this.actions$ = actions$;
5893
5892
  this.service = service;
5894
5893
  this.router = router;
5895
- this.loadEnvironments$ = createEffect(() => this.actions$.pipe(ofType(EnvironmentActions.loadEnvironments), mergeMap$1((action) => this.service.getEnvironments().pipe(map$1((datas) => EnvironmentActions.loadEnvironmentsSuccess({ datas })), catchError$1((error) => [EnvironmentActions.loadEnvironmentsFailure({ error })])))));
5896
- this.saveEnvironment$ = createEffect(() => this.actions$.pipe(ofType(EnvironmentActions.saveEnvironment), mergeMap$1((action) => this.service.saveEnvironment(action.env).pipe(map$1(() => EnvironmentActions.saveEnvironmentSuccess({ route: action.route })), catchError$1((error) => [EnvironmentActions.saveEnvironmentFailure({ error })])))));
5897
- this.saveEnvironmentSuccess$ = createEffect(() => this.actions$.pipe(ofType(EnvironmentActions.saveEnvironmentSuccess), map$1((action) => {
5894
+ this.loadEnvironments$ = createEffect(() => this.actions$.pipe(ofType(EnvironmentActions.loadEnvironments), mergeMap((action) => this.service.getEnvironments().pipe(map((datas) => EnvironmentActions.loadEnvironmentsSuccess({ datas })), catchError((error) => [EnvironmentActions.loadEnvironmentsFailure({ error })])))));
5895
+ this.saveEnvironment$ = createEffect(() => this.actions$.pipe(ofType(EnvironmentActions.saveEnvironment), mergeMap((action) => this.service.saveEnvironment(action.env).pipe(map(() => EnvironmentActions.saveEnvironmentSuccess({ route: action.route })), catchError((error) => [EnvironmentActions.saveEnvironmentFailure({ error })])))));
5896
+ this.saveEnvironmentSuccess$ = createEffect(() => this.actions$.pipe(ofType(EnvironmentActions.saveEnvironmentSuccess), map((action) => {
5898
5897
  return AdminActions.routeTo({ path: action.route });
5899
5898
  })));
5900
- this.selectEnvironment$ = createEffect(() => this.actions$.pipe(ofType(EnvironmentActions.selectEnvironment), mergeMap$1((action) => this.service.getEnvironment(action.name).pipe(map$1((data) => EnvironmentActions.selectEnvironmentSuccess({ data })), catchError$1((error) => [EnvironmentActions.selectEnvironmentFailure({ error })])))));
5901
- this.deleteEnvironment$ = createEffect(() => this.actions$.pipe(ofType(EnvironmentActions.deleteEnvironment), mergeMap$1((action) => this.service.deleteEnvironment(action.name).pipe(map$1(() => EnvironmentActions.deleteEnvironmentSuccess({ route: action.route, addRoute: action.addRoute })), catchError$1((error) => [EnvironmentActions.deleteEnvironmentFailure({ error })])))));
5902
- this.deleteEnvironmentSuccess$ = createEffect(() => this.actions$.pipe(ofType(EnvironmentActions.deleteEnvironmentSuccess), mergeMap$1((action) => {
5899
+ this.selectEnvironment$ = createEffect(() => this.actions$.pipe(ofType(EnvironmentActions.selectEnvironment), mergeMap((action) => this.service.getEnvironment(action.name).pipe(map((data) => EnvironmentActions.selectEnvironmentSuccess({ data })), catchError((error) => [EnvironmentActions.selectEnvironmentFailure({ error })])))));
5900
+ this.deleteEnvironment$ = createEffect(() => this.actions$.pipe(ofType(EnvironmentActions.deleteEnvironment), mergeMap((action) => this.service.deleteEnvironment(action.name).pipe(map(() => EnvironmentActions.deleteEnvironmentSuccess({ route: action.route, addRoute: action.addRoute })), catchError((error) => [EnvironmentActions.deleteEnvironmentFailure({ error })])))));
5901
+ this.deleteEnvironmentSuccess$ = createEffect(() => this.actions$.pipe(ofType(EnvironmentActions.deleteEnvironmentSuccess), mergeMap((action) => {
5903
5902
  return [
5904
5903
  EnvironmentActions.loadEnvironments(),
5905
5904
  AdminActions.selectComponentType({ componentType: null }),
@@ -5926,20 +5925,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
5926
5925
  }], ctorParameters: () => [{ type: i1$2.Actions }, { type: AdminService }, { type: i2.Router }] });
5927
5926
 
5928
5927
  class FieldsEffects {
5929
- constructor(actions$, fieldService, pryDialog, store) {
5928
+ constructor(actions$, fieldService, pryDialog) {
5930
5929
  this.actions$ = actions$;
5931
5930
  this.fieldService = fieldService;
5932
5931
  this.pryDialog = pryDialog;
5933
- this.store = store;
5934
- this.updateToolbox$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.updateToolbox), mergeMap$1((action) => {
5935
- return [FieldActions.load(), AdminActions.selectComponentType({ componentType: null })];
5932
+ this.updateToolbox$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.updateToolbox), mergeMap((action) => {
5933
+ return [FieldActions.load({ force: true }), AdminActions.selectComponentType({ componentType: null })];
5936
5934
  })));
5937
- this.saveField$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.saveField), mergeMap$1((action) => this.fieldService.saveField(action.field).pipe(map$1(() => FieldsActions.saveFieldSuccess({ route: action.route })), catchError$1((error) => [FieldsActions.failure({ error: error })])))));
5938
- this.saveFieldSuccess$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.saveFieldSuccess), map$1((action) => {
5935
+ this.saveField$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.saveField), mergeMap((action) => this.fieldService.saveField(action.field).pipe(map(() => FieldsActions.saveFieldSuccess({ route: action.route })), catchError((error) => [FieldsActions.failure({ error: error })])))));
5936
+ this.saveFieldSuccess$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.saveFieldSuccess), map((action) => {
5939
5937
  return AdminActions.routeTo({ path: action.route });
5940
5938
  })));
5941
- this.updateField$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.updateField), mergeMap$1((action) => this.fieldService.updateField(action.field).pipe(map$1(() => FieldsActions.updateFieldSuccess({ route: action.route })), catchError$1((error) => [FieldsActions.failure({ error: error })])))));
5942
- this.updateFieldSuccess$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.updateFieldSuccess), map$1((action) => {
5939
+ this.updateField$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.updateField), mergeMap((action) => this.fieldService.updateField(action.field).pipe(map(() => FieldsActions.updateFieldSuccess({ route: action.route })), catchError((error) => [FieldsActions.failure({ error: error })])))));
5940
+ this.updateFieldSuccess$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.updateFieldSuccess), map((action) => {
5943
5941
  return AdminActions.routeTo({ path: action.route });
5944
5942
  })));
5945
5943
  this.confirmFieldDeletion$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.confirmFieldDeletion), tap((action) => {
@@ -5960,29 +5958,29 @@ class FieldsEffects {
5960
5958
  };
5961
5959
  this.pryDialog.open(PryDialogConfirmComponent, { data });
5962
5960
  })), { dispatch: false });
5963
- this.deleteField$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.deleteField), mergeMap$1((action) => this.fieldService.deleteField(action.id).pipe(map$1(() => FieldsActions.deleteFieldSuccess()), catchError$1((error) => [FieldsActions.failure({ error: error })])))));
5964
- this.deleteFieldSuccess$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.deleteFieldSuccess), map$1((action) => {
5965
- return FieldActions.load();
5961
+ this.deleteField$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.deleteField), mergeMap((action) => this.fieldService.deleteField(action.id).pipe(map(() => FieldsActions.deleteFieldSuccess()), catchError((error) => [FieldsActions.failure({ error: error })])))));
5962
+ this.deleteFieldSuccess$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.deleteFieldSuccess), map((action) => {
5963
+ return FieldActions.load({ force: true });
5966
5964
  })));
5967
- this.closePanelOnDeleteFieldSuccess$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.deleteFieldSuccess), map$1((action) => {
5965
+ this.closePanelOnDeleteFieldSuccess$ = createEffect(() => this.actions$.pipe(ofType(FieldsActions.deleteFieldSuccess), map((action) => {
5968
5966
  return AdminActions.togglePanel({ panelOpen: false });
5969
5967
  })));
5970
5968
  }
5971
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FieldsEffects, deps: [{ token: i1$2.Actions }, { token: i3.FieldService }, { token: i3.PryDialogService }, { token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
5969
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FieldsEffects, deps: [{ token: i1$2.Actions }, { token: i3.FieldService }, { token: i3.PryDialogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
5972
5970
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FieldsEffects }); }
5973
5971
  }
5974
5972
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FieldsEffects, decorators: [{
5975
5973
  type: Injectable
5976
- }], ctorParameters: () => [{ type: i1$2.Actions }, { type: i3.FieldService }, { type: i3.PryDialogService }, { type: i1.Store }] });
5974
+ }], ctorParameters: () => [{ type: i1$2.Actions }, { type: i3.FieldService }, { type: i3.PryDialogService }] });
5977
5975
 
5978
5976
  class LinksEffects {
5979
5977
  constructor(actions$, service, router) {
5980
5978
  this.actions$ = actions$;
5981
5979
  this.service = service;
5982
5980
  this.router = router;
5983
- this.loadLinks$ = createEffect(() => this.actions$.pipe(ofType(LinksActions.loadLinks), mergeMap$1((action) => this.service.getLinks().pipe(map$1((datas) => LinksActions.loadLinksSuccess({ datas })), catchError$1((error) => [LinksActions.loadLinksFailure({ error })])))));
5984
- this.saveLink$ = createEffect(() => this.actions$.pipe(ofType(LinksActions.saveLink), mergeMap$1((action) => this.service.saveLink(action.link).pipe(map$1((data) => LinksActions.saveLinkSuccess({ route: action.route })), catchError$1((error) => [LinksActions.saveLinkFailure({ error })])))));
5985
- this.saveLinkSuccess$ = createEffect(() => this.actions$.pipe(ofType(LinksActions.saveLinkSuccess), map$1((action) => {
5981
+ this.loadLinks$ = createEffect(() => this.actions$.pipe(ofType(LinksActions.loadLinks), mergeMap((action) => this.service.getLinks().pipe(map((datas) => LinksActions.loadLinksSuccess({ datas })), catchError((error) => [LinksActions.loadLinksFailure({ error })])))));
5982
+ this.saveLink$ = createEffect(() => this.actions$.pipe(ofType(LinksActions.saveLink), mergeMap((action) => this.service.saveLink(action.link).pipe(map((data) => LinksActions.saveLinkSuccess({ route: action.route })), catchError((error) => [LinksActions.saveLinkFailure({ error })])))));
5983
+ this.saveLinkSuccess$ = createEffect(() => this.actions$.pipe(ofType(LinksActions.saveLinkSuccess), map((action) => {
5986
5984
  return AdminActions.routeTo({ path: action.route });
5987
5985
  })));
5988
5986
  }
@@ -5998,14 +5996,14 @@ class AdminMetadataRulesEffects {
5998
5996
  this.actions$ = actions$;
5999
5997
  this.service = service;
6000
5998
  this.router = router;
6001
- this.getMetadataRules$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataRulesActions.load), switchMap(() => this.service.getMetadataRulesList()), map$1((list) => AdminMetadataRulesActions.loaded({ list })), catchError((error) => [AdminMetadataRulesActions.failure({ error })])));
6002
- this.postMetadataRules$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataRulesActions.post), switchMap((props) => this.service.addMetadataRules(props.metadata)), map$1(() => {
5999
+ this.getMetadataRules$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataRulesActions.load), switchMap(() => this.service.getMetadataRulesList()), map((list) => AdminMetadataRulesActions.loaded({ list })), catchError((error) => [AdminMetadataRulesActions.failure({ error })])));
6000
+ this.postMetadataRules$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataRulesActions.post), switchMap((props) => this.service.addMetadataRules(props.metadata)), map(() => {
6003
6001
  AdminMetadataRulesActions.load();
6004
6002
  AdminMetadataRulesActions.unselectMetadata();
6005
6003
  const path = this.router.createUrlTree(['admin/metadata-rules']);
6006
6004
  return AdminActions.routeTo({ path: path.toString(), params: undefined });
6007
6005
  }), catchError((error) => [AdminMetadataRulesActions.failure({ error })])));
6008
- this.deleteMetadataRules$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataRulesActions.delete), mergeMap$1((action) => this.service.deleteMetadataRules(action.name).pipe(mergeMap$1(() => {
6006
+ this.deleteMetadataRules$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataRulesActions.delete), mergeMap((action) => this.service.deleteMetadataRules(action.name).pipe(mergeMap(() => {
6009
6007
  return [
6010
6008
  AdminMetadataRulesActions.load(),
6011
6009
  AdminActions.selectComponentType({ componentType: null }),
@@ -6023,7 +6021,7 @@ class AdminMetadataRulesEffects {
6023
6021
  })
6024
6022
  ];
6025
6023
  }), catchError((error) => [AdminMetadataRulesActions.failure({ error })])))));
6026
- this.openNewMetadataRules$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataRulesActions.openNewMetadataRules), map$1((action) => {
6024
+ this.openNewMetadataRules$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataRulesActions.openNewMetadataRules), map((action) => {
6027
6025
  return AdminActions.routeTo({ path: action.route });
6028
6026
  })));
6029
6027
  }
@@ -6040,17 +6038,17 @@ class AdminMetadataUserEffects {
6040
6038
  this.adminService = adminService;
6041
6039
  this.store = store;
6042
6040
  this.router = router;
6043
- this.goToDetailsView$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.goToDetailsViewMetadata), mergeMap$1((action) => this.adminService.getUserMetadataDef(action.id).pipe(map$1((metadata) => AdminMetadataUserActions.goToDetailsViewMetadataSuccess({ metadata })), catchError$1((error) => [AdminMetadataUserActions.goToDetailsViewMetadataFailure({ error: error })])))));
6044
- this.switchToEditView$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.goToEditMetadata), mergeMap$1((action) => this.adminService.getUserMetadataDef(action.id).pipe(map$1((metadata) => AdminMetadataUserActions.goToEditMetadataSuccess({ metadata, route: action.route })), catchError$1((error) => [AdminMetadataUserActions.goToEditMetadataFailure({ error: error })])))));
6045
- this.goToEditViewSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.goToEditMetadataSuccess), map$1((action) => {
6041
+ this.goToDetailsView$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.goToDetailsViewMetadata), mergeMap((action) => this.adminService.getUserMetadataDef(action.id).pipe(map((metadata) => AdminMetadataUserActions.goToDetailsViewMetadataSuccess({ metadata })), catchError((error) => [AdminMetadataUserActions.goToDetailsViewMetadataFailure({ error: error })])))));
6042
+ this.switchToEditView$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.goToEditMetadata), mergeMap((action) => this.adminService.getUserMetadataDef(action.id).pipe(map((metadata) => AdminMetadataUserActions.goToEditMetadataSuccess({ metadata, route: action.route })), catchError((error) => [AdminMetadataUserActions.goToEditMetadataFailure({ error: error })])))));
6043
+ this.goToEditViewSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.goToEditMetadataSuccess), map((action) => {
6046
6044
  return AdminActions.routeTo({ path: action.route });
6047
6045
  })));
6048
- this.createMetadata$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.createMetadata), mergeMap$1((action) => this.adminService.postUserMetadata(action.metadata).pipe(map$1(() => AdminMetadataUserActions.createMetadataSuccess({ metadata: action.metadata })), catchError$1((error) => [AdminMetadataUserActions.createMetadataFailure({ error: error })])))));
6049
- this.createMetadataSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.createMetadataSuccess), map$1((action) => {
6046
+ this.createMetadata$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.createMetadata), mergeMap((action) => this.adminService.postUserMetadata(action.metadata).pipe(map(() => AdminMetadataUserActions.createMetadataSuccess({ metadata: action.metadata })), catchError((error) => [AdminMetadataUserActions.createMetadataFailure({ error: error })])))));
6047
+ this.createMetadataSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.createMetadataSuccess), map((action) => {
6050
6048
  return MetadataActions.loadUserProfile();
6051
6049
  })));
6052
- this.updateMetadata$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.updateMetadata), mergeMap$1((action) => this.adminService.postUserMetadata(action.metadata).pipe(map$1(() => AdminMetadataUserActions.updateMetadataSuccess({ metadata: action.metadata })), catchError$1((error) => [AdminMetadataUserActions.updateMetadataFailure({ error: error })])))));
6053
- this.updateMetadataSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.updateMetadataSuccess), map$1((action) => {
6050
+ this.updateMetadata$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.updateMetadata), mergeMap((action) => this.adminService.postUserMetadata(action.metadata).pipe(map(() => AdminMetadataUserActions.updateMetadataSuccess({ metadata: action.metadata })), catchError((error) => [AdminMetadataUserActions.updateMetadataFailure({ error: error })])))));
6051
+ this.updateMetadataSuccess$ = createEffect(() => this.actions$.pipe(ofType(AdminMetadataUserActions.updateMetadataSuccess), map((action) => {
6054
6052
  return MetadataActions.loadUserProfile();
6055
6053
  })));
6056
6054
  }
@@ -6080,12 +6078,12 @@ class PredicatesEffects {
6080
6078
  this.actions$ = actions$;
6081
6079
  this.service = service;
6082
6080
  this.router = router;
6083
- this.loadPredicates$ = createEffect(() => this.actions$.pipe(ofType(PredicatesActions.loadPredicates), mergeMap$1((action) => this.service.getPredicates().pipe(map$1((datas) => PredicatesActions.loadPredicatesSuccess({ datas })), catchError$1((error) => [PredicatesActions.loadPredicatesFailure({ error })])))));
6084
- this.savePredicate$ = createEffect(() => this.actions$.pipe(ofType(PredicatesActions.savePredicate), mergeMap$1((action) => this.service.savePredicate(action.predicate).pipe(map$1(() => PredicatesActions.savePredicateSuccess({ route: action.route })), catchError$1((error) => [PredicatesActions.savePredicateFailure({ error })])))));
6085
- this.savePredicateSuccess$ = createEffect(() => this.actions$.pipe(ofType(PredicatesActions.savePredicateSuccess), map$1((action) => {
6081
+ this.loadPredicates$ = createEffect(() => this.actions$.pipe(ofType(PredicatesActions.loadPredicates), mergeMap((action) => this.service.getPredicates().pipe(map((datas) => PredicatesActions.loadPredicatesSuccess({ datas })), catchError((error) => [PredicatesActions.loadPredicatesFailure({ error })])))));
6082
+ this.savePredicate$ = createEffect(() => this.actions$.pipe(ofType(PredicatesActions.savePredicate), mergeMap((action) => this.service.savePredicate(action.predicate).pipe(map(() => PredicatesActions.savePredicateSuccess({ route: action.route })), catchError((error) => [PredicatesActions.savePredicateFailure({ error })])))));
6083
+ this.savePredicateSuccess$ = createEffect(() => this.actions$.pipe(ofType(PredicatesActions.savePredicateSuccess), map((action) => {
6086
6084
  return AdminActions.routeTo({ path: action.route });
6087
6085
  })));
6088
- this.selectPredicate$ = createEffect(() => this.actions$.pipe(ofType(PredicatesActions.selectPredicate), mergeMap$1((action) => this.service.getPredicate(action.id).pipe(map$1((data) => PredicatesActions.selectPredicateSuccess({ data })), catchError$1((error) => [PredicatesActions.selectPredicateFailure({ error })])))));
6086
+ this.selectPredicate$ = createEffect(() => this.actions$.pipe(ofType(PredicatesActions.selectPredicate), mergeMap((action) => this.service.getPredicate(action.id).pipe(map((data) => PredicatesActions.selectPredicateSuccess({ data })), catchError((error) => [PredicatesActions.selectPredicateFailure({ error })])))));
6089
6087
  }
6090
6088
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PredicatesEffects, deps: [{ token: i1$2.Actions }, { token: AdminService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
6091
6089
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: PredicatesEffects }); }
@@ -6098,7 +6096,7 @@ class AdminUserEffects {
6098
6096
  constructor(actions$, adminService) {
6099
6097
  this.actions$ = actions$;
6100
6098
  this.adminService = adminService;
6101
- this.loadUsers$ = createEffect(() => this.actions$.pipe(ofType(AdminUserActions.loadUsers), mergeMap$1((_) => this.adminService.getUsers().pipe(map$1((users) => AdminUserActions.loadUsersSuccess({ users })), catchError$1((error) => [AdminUserActions.loadUsersFailure({ error })])))));
6099
+ this.loadUsers$ = createEffect(() => this.actions$.pipe(ofType(AdminUserActions.loadUsers), mergeMap((_) => this.adminService.getUsers().pipe(map((users) => AdminUserActions.loadUsersSuccess({ users })), catchError((error) => [AdminUserActions.loadUsersFailure({ error })])))));
6102
6100
  }
6103
6101
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AdminUserEffects, deps: [{ token: i1$2.Actions }, { token: AdminService }], target: i0.ɵɵFactoryTarget.Injectable }); }
6104
6102
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AdminUserEffects }); }
@@ -6953,7 +6951,7 @@ class AdminEffects {
6953
6951
  })));
6954
6952
  this.deleteRelationTypeSuccess$ = createEffect(() => this.actions$.pipe(ofType(RelationTypesActions.deleteRelationTypeSuccess), mergeMap((action) => {
6955
6953
  return [
6956
- RelationTypesActions.load(),
6954
+ RelationTypesActions.load({ force: true }),
6957
6955
  AdminActions.selectComponentType({ componentType: null }),
6958
6956
  AdminActions.mainActions({
6959
6957
  actions: [
@@ -7052,10 +7050,10 @@ class AdminDatasetEffects {
7052
7050
  this.createDataset$ = createEffect(() => this.actions$.pipe(ofType(AdminDatasetActions.create), switchMap((props) => this.datasetService
7053
7051
  .addDataset(props.dataset)
7054
7052
  .pipe(mergeMap(() => [
7055
- DataSourceActions.dataset.loadDataset(),
7053
+ DataSourceActions.dataset.loadDataset({ force: true }),
7056
7054
  AdminDatasetActions.unselectDataset(),
7057
7055
  AdminActions.routeTo({ path: props.route })
7058
- ]))), catchError$1((error) => [AdminDatasetActions.failure({ error })])));
7056
+ ]))), catchError((error) => [AdminDatasetActions.failure({ error })])));
7059
7057
  this.confirmDatasetDeletion$ = createEffect(() => this.actions$.pipe(ofType(AdminDatasetActions.confirmDatasetDeletion), tap((action) => {
7060
7058
  const data = {
7061
7059
  title: '@pry.admin.infoModalTitle',
@@ -7078,11 +7076,11 @@ class AdminDatasetEffects {
7078
7076
  this.pryDialog.open(PryDialogConfirmComponent, { data });
7079
7077
  })), { dispatch: false });
7080
7078
  this.deleteDataset$ = createEffect(() => this.actions$.pipe(ofType(AdminDatasetActions.delete), switchMap((action) => this.datasetService.deleteDataset(action.name).pipe(mergeMap(() => [
7081
- DataSourceActions.dataset.loadDataset(),
7079
+ DataSourceActions.dataset.loadDataset({ force: true }),
7082
7080
  AdminDatasetActions.unselectDataset(),
7083
7081
  AdminDatasetActions.deleted({ addRoute: action.addRoute })
7084
- ]), catchError$1((error) => [AdminDatasetActions.failure({ error })])))));
7085
- this.getDatasetById$ = createEffect(() => this.actions$.pipe(ofType(AdminDatasetActions.getDatasetById), mergeMap((action) => this.datasetService.getDatasetById(action.id).pipe(map((data) => AdminDatasetActions.getDatasetByIdSuccess({ data })), catchError$1((error) => [AdminDatasetActions.getDatasetByIdFailure({ error })])))));
7082
+ ]), catchError((error) => [AdminDatasetActions.failure({ error })])))));
7083
+ this.getDatasetById$ = createEffect(() => this.actions$.pipe(ofType(AdminDatasetActions.getDatasetById), mergeMap((action) => this.datasetService.getDatasetById(action.id).pipe(map((data) => AdminDatasetActions.getDatasetByIdSuccess({ data })), catchError((error) => [AdminDatasetActions.getDatasetByIdFailure({ error })])))));
7086
7084
  this.unsetMissingGroupsOnDatasetSelection$ = createEffect(() => this.actions$.pipe(ofType(AdminDatasetActions.selectDataset), mergeMap((action) => [
7087
7085
  AdminDatasetActions.setMissingGroups({ missingGroups: undefined }),
7088
7086
  DataSourceActions.dataset.listVersionsByDatasetId({ id: action.dataset.id })
@@ -7106,29 +7104,29 @@ class AdminDatasetEffects {
7106
7104
  this.updateDataset$ = createEffect(() => this.actions$.pipe(ofType(AdminDatasetActions.update), switchMap((action) => this.datasetService.updateDataset(action.dataset).pipe(mergeMap((conflict) => {
7107
7105
  let actions = [
7108
7106
  AdminDatasetActions.setMissingGroups({ missingGroups: conflict?.missingGroupsByEntity }),
7109
- DataSourceActions.dataset.loadDataset()
7107
+ DataSourceActions.dataset.loadDataset({ force: true })
7110
7108
  ];
7111
7109
  if (action.route)
7112
7110
  actions.push(AdminDatasetActions.unselectDataset(), AdminActions.routeTo({ path: action.route }));
7113
7111
  return actions;
7114
- }))), catchError$1((error) => [DataSourceActions.dataset.failure({ error })])));
7115
- this.addDatasetMetadata$ = createEffect(() => this.actions$.pipe(ofType(MetadataActions.addDatasetMetadata), mergeMap((action) => this.datasetService.addDatasetMetadata(action.datasetId, action.metadataId, action.value).pipe(map(() => MetadataActions.addDatasetMetadataSuccess({ datasetId: action.datasetId })), catchError$1((error) => [MetadataActions.addDatasetMetadataFailure({ error })])))));
7112
+ }))), catchError((error) => [DataSourceActions.dataset.failure({ error })])));
7113
+ this.addDatasetMetadata$ = createEffect(() => this.actions$.pipe(ofType(MetadataActions.addDatasetMetadata), mergeMap((action) => this.datasetService.addDatasetMetadata(action.datasetId, action.metadataId, action.value).pipe(map(() => MetadataActions.addDatasetMetadataSuccess({ datasetId: action.datasetId })), catchError((error) => [MetadataActions.addDatasetMetadataFailure({ error })])))));
7116
7114
  this.addDatasetMetadataSuccess$ = createEffect(() => this.actions$.pipe(ofType(MetadataActions.addDatasetMetadataSuccess), mergeMap((action) => {
7117
7115
  return [
7118
7116
  AdminDatasetActions.getDatasetById({ id: action.datasetId }),
7119
7117
  MetadataActions.isEditable({ editable: false }),
7120
- DataSourceActions.dataset.loadDataset()
7118
+ DataSourceActions.dataset.loadDataset({ force: true })
7121
7119
  ];
7122
7120
  })));
7123
- this.deleteDatasetMetadata$ = createEffect(() => this.actions$.pipe(ofType(MetadataActions.deleteDatasetMetadata), mergeMap((action) => this.datasetService.deleteDatasetMetadata(action.datasetId, action.metadataId).pipe(map(() => MetadataActions.deleteDatasetMetadataSuccess({ datasetId: action.datasetId })), catchError$1((error) => [MetadataActions.deleteDatasetMetadataFailure({ error })])))));
7121
+ this.deleteDatasetMetadata$ = createEffect(() => this.actions$.pipe(ofType(MetadataActions.deleteDatasetMetadata), mergeMap((action) => this.datasetService.deleteDatasetMetadata(action.datasetId, action.metadataId).pipe(map(() => MetadataActions.deleteDatasetMetadataSuccess({ datasetId: action.datasetId })), catchError((error) => [MetadataActions.deleteDatasetMetadataFailure({ error })])))));
7124
7122
  this.deleteDatasetMetadataSuccess$ = createEffect(() => this.actions$.pipe(ofType(MetadataActions.deleteDatasetMetadataSuccess), mergeMap((action) => {
7125
7123
  return [
7126
7124
  AdminDatasetActions.getDatasetById({ id: action.datasetId }),
7127
7125
  MetadataActions.isEditable({ editable: false }),
7128
- DataSourceActions.dataset.loadDataset()
7126
+ DataSourceActions.dataset.loadDataset({ force: true })
7129
7127
  ];
7130
7128
  })));
7131
- this.addCategory$ = createEffect(() => this.actions$.pipe(ofType(AdminDatasetActions.addCategory), mergeMap((action) => this.datasetService.addCategory(action.category).pipe(map(() => DataSourceActions.dataset.getCategories()), catchError$1((error) => [AdminDatasetActions.failure({ error })])))));
7129
+ this.addCategory$ = createEffect(() => this.actions$.pipe(ofType(AdminDatasetActions.addCategory), mergeMap((action) => this.datasetService.addCategory(action.category).pipe(map(() => DataSourceActions.dataset.getCategories()), catchError((error) => [AdminDatasetActions.failure({ error })])))));
7132
7130
  }
7133
7131
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AdminDatasetEffects, deps: [{ token: i1$2.Actions }, { token: AdminDatasetService }, { token: i3.PryDialogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
7134
7132
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AdminDatasetEffects }); }