@provoly/dashboard 0.19.5 → 0.19.7

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 (39) hide show
  1. package/esm2022/filters/autocomplete/autocomplete.component.mjs +2 -2
  2. package/esm2022/lib/core/i18n/en.translations.mjs +3 -2
  3. package/esm2022/lib/core/i18n/fr.translations.mjs +3 -2
  4. package/esm2022/lib/core/model/filter.interface.mjs +1 -1
  5. package/esm2022/lib/core/store/search/search.service.mjs +5 -7
  6. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +9 -7
  7. package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +4 -3
  8. package/fesm2022/provoly-dashboard-filters-autocomplete.mjs +1 -1
  9. package/fesm2022/provoly-dashboard-filters-autocomplete.mjs.map +1 -1
  10. package/fesm2022/provoly-dashboard-presentation.mjs +8 -6
  11. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  12. package/fesm2022/provoly-dashboard-toolbox.mjs +3 -2
  13. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  14. package/fesm2022/provoly-dashboard.mjs +8 -8
  15. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  16. package/lib/core/i18n/en.translations.d.ts +1 -0
  17. package/lib/core/i18n/fr.translations.d.ts +1 -0
  18. package/lib/core/model/filter.interface.d.ts +1 -0
  19. package/lib/core/store/search/search.service.d.ts +1 -1
  20. package/package.json +7 -7
  21. package/styles/components/_a-btn.scss +11 -17
  22. package/styles-theme/base-theme/_typography.theme.scss +2 -1
  23. package/styles-theme/components-theme/_a-btn.theme.scss +4 -3
  24. package/styles-theme/components-theme/_a-form-field.theme.scss +1 -1
  25. package/styles-theme/components-theme/_a-label.theme.scss +1 -1
  26. package/styles-theme/components-theme/_a-pry-select.theme.scss +1 -1
  27. package/styles-theme/components-theme/_a-table.theme.scss +2 -2
  28. package/styles-theme/components-theme/_m-context-menu.theme.scss +1 -1
  29. package/styles-theme/components-theme/_m-filter.theme.scss +1 -1
  30. package/styles-theme/components-theme/_m-time-picker.theme.scss +1 -1
  31. package/styles-theme/components-theme/_o-date-picker.theme.scss +1 -1
  32. package/styles-theme/components-theme/_o-pry-card-menu.theme.scss +1 -1
  33. package/styles-theme/components-theme/_o-pry-presentation.theme.scss +0 -2
  34. package/styles-theme/components-theme/_o-search-fulltext.theme.scss +7 -7
  35. package/styles-theme/components-theme/_o-settings.theme.scss +1 -1
  36. package/styles-theme/components-theme/_o-widget.theme.scss +1 -3
  37. package/styles-theme/components-theme/_overlay.theme.scss +4 -4
  38. package/styles-theme/layout-theme/_o-manifest-layout.theme.scss +1 -1
  39. package/styles-theme/layout-theme/_o-workspace.theme.scss +1 -1
@@ -515,7 +515,8 @@ const enTranslations$1 = {
515
515
  attributes: 'Attributes',
516
516
  value: 'Value',
517
517
  values: 'Values',
518
- validate: 'Confirm'
518
+ validate: 'Confirm',
519
+ limit: 'Autocomplete proposals'
519
520
  },
520
521
  attributes: {
521
522
  datasource: 'Datasource',
@@ -868,7 +869,8 @@ const frTranslations$1 = {
868
869
  attributes: 'Attributs',
869
870
  value: 'Valeur',
870
871
  values: 'Valeurs',
871
- validate: 'Valider'
872
+ validate: 'Valider',
873
+ limit: 'Nombre de suggestions'
872
874
  },
873
875
  attributes: {
874
876
  datasource: 'Datasource',
@@ -4172,13 +4174,11 @@ class SearchService {
4172
4174
  this.transformations.forEach((func) => (transformed = func(id, transformed)));
4173
4175
  return transformed;
4174
4176
  }
4175
- autocomplete(attributes, search) {
4176
- return this.store.select(ConfigSelectors.dataUrl).pipe(switchMap((url) => this.httpClient.post(encodeURI(`${url}/data-sources/search`), {
4177
- datasourceByAttribute: (attributes ?? [])
4178
- .map((attr) => ({ [attr.id]: attr.datasource }))
4179
- .reduce((p, c) => ({ ...p, ...c }), {}),
4177
+ autocomplete(attributes, search, limit = 10) {
4178
+ return this.store.select(ConfigSelectors.dataUrl).pipe(switchMap((url) => this.httpClient.post(encodeURI(`${url}/data-sources/values`), {
4179
+ attributes: (attributes ?? []).map((attr) => ({ datasource: attr.datasource, attribute: attr.id })),
4180
4180
  value: search,
4181
- limit: 10
4181
+ limit
4182
4182
  })));
4183
4183
  }
4184
4184
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchService, deps: [{ token: i1$2.HttpClient }, { token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }