@provoly/dashboard 0.18.1 → 0.18.3

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 (81) hide show
  1. package/assets/svgs/clear_filter.svg +12 -0
  2. package/assets/svgs/refresh_data.svg +15 -0
  3. package/assets/svgs/refresh_filter.svg +13 -0
  4. package/components/color-picker/color-picker.component.d.ts +58 -0
  5. package/components/color-picker/color-picker.module.d.ts +9 -0
  6. package/components/color-picker/index.d.ts +5 -0
  7. package/components/color-picker/public-api.d.ts +2 -0
  8. package/components/scheme-picker/index.d.ts +5 -0
  9. package/components/scheme-picker/public-api.d.ts +3 -0
  10. package/components/scheme-picker/scheme-picker.component.d.ts +34 -0
  11. package/components/scheme-picker/scheme-picker.module.d.ts +11 -0
  12. package/components/scheme-picker/scheme.service.d.ts +12 -0
  13. package/dataset/components/dataset-card/dataset-card.component.d.ts +11 -3
  14. package/dataset/i18n/en.translations.d.ts +1 -0
  15. package/dataset/i18n/fr.translations.d.ts +1 -0
  16. package/dataset/style/_o-pry-dataset-card.scss +16 -1
  17. package/dataset/style/_o-pry-dataset.scss +18 -3
  18. package/esm2022/admin/components/admin-dataset/shared/admin-form-dataset/admin-form-dataset.component.mjs +7 -5
  19. package/esm2022/components/color-picker/color-picker.component.mjs +314 -0
  20. package/esm2022/components/color-picker/color-picker.module.mjs +20 -0
  21. package/esm2022/components/color-picker/provoly-dashboard-components-color-picker.mjs +5 -0
  22. package/esm2022/components/color-picker/public-api.mjs +3 -0
  23. package/esm2022/components/scheme-picker/provoly-dashboard-components-scheme-picker.mjs +5 -0
  24. package/esm2022/components/scheme-picker/public-api.mjs +4 -0
  25. package/esm2022/components/scheme-picker/scheme-picker.component.mjs +104 -0
  26. package/esm2022/components/scheme-picker/scheme-picker.module.mjs +22 -0
  27. package/esm2022/components/scheme-picker/scheme.service.mjs +47 -0
  28. package/esm2022/dataset/components/dataset-card/dataset-card.component.mjs +26 -9
  29. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +3 -3
  30. package/esm2022/dataset/components/dataset.component.mjs +3 -3
  31. package/esm2022/dataset/i18n/en.translations.mjs +2 -1
  32. package/esm2022/dataset/i18n/fr.translations.mjs +2 -1
  33. package/esm2022/dataset/style/css.component.mjs +2 -2
  34. package/esm2022/lib/core/i18n/en.translations.mjs +6 -2
  35. package/esm2022/lib/core/i18n/fr.translations.mjs +6 -2
  36. package/esm2022/lib/core/model/widget-aggregated-chart-manifest.interface.mjs +1 -1
  37. package/esm2022/lib/core/model/widget-chart-manifest.interface.mjs +2 -1
  38. package/esm2022/lib/core/store/aggregation/backend-aggregation.service.mjs +4 -1
  39. package/esm2022/lib/core/store/data-source/data-source.model.mjs +1 -1
  40. package/esm2022/restitution/components/restitution/restitution.component.mjs +11 -20
  41. package/esm2022/restitution/model/restitution.model.mjs +1 -1
  42. package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +149 -31
  43. package/esm2022/widgets/widget-aggregated-chart/i18n/en.translations.mjs +19 -2
  44. package/esm2022/widgets/widget-aggregated-chart/i18n/fr.translations.mjs +19 -2
  45. package/esm2022/widgets/widget-aggregated-chart/widget-aggregated-chart.module.mjs +16 -5
  46. package/esm2022/widgets/widget-chart/i18n/en.translations.mjs +3 -2
  47. package/esm2022/widgets/widget-chart/i18n/fr.translations.mjs +3 -2
  48. package/fesm2022/provoly-dashboard-admin.mjs +6 -4
  49. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  50. package/fesm2022/provoly-dashboard-components-color-picker.mjs +337 -0
  51. package/fesm2022/provoly-dashboard-components-color-picker.mjs.map +1 -0
  52. package/fesm2022/provoly-dashboard-components-scheme-picker.mjs +171 -0
  53. package/fesm2022/provoly-dashboard-components-scheme-picker.mjs.map +1 -0
  54. package/fesm2022/provoly-dashboard-dataset.mjs +29 -14
  55. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  56. package/fesm2022/provoly-dashboard-restitution.mjs +10 -19
  57. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  58. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +198 -35
  59. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
  60. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +4 -2
  61. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  62. package/fesm2022/provoly-dashboard.mjs +16 -2
  63. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  64. package/lib/core/i18n/en.translations.d.ts +4 -0
  65. package/lib/core/i18n/fr.translations.d.ts +4 -0
  66. package/lib/core/model/widget-aggregated-chart-manifest.interface.d.ts +7 -0
  67. package/lib/core/model/widget-chart-manifest.interface.d.ts +1 -0
  68. package/lib/core/store/data-source/data-source.model.d.ts +0 -2
  69. package/package.json +47 -35
  70. package/restitution/components/restitution/restitution.component.d.ts +0 -2
  71. package/restitution/model/restitution.model.d.ts +1 -1
  72. package/styles/components/_a-color-picker.scss +62 -0
  73. package/styles/components/_m-color-scheme.scss +20 -0
  74. package/styles/main.scss +2 -0
  75. package/styles-theme/components-theme/_o-pry-admin-classes-customize.theme.scss +4 -0
  76. package/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.d.ts +18 -5
  77. package/widgets/widget-aggregated-chart/i18n/en.translations.d.ts +17 -0
  78. package/widgets/widget-aggregated-chart/i18n/fr.translations.d.ts +17 -0
  79. package/widgets/widget-aggregated-chart/widget-aggregated-chart.module.d.ts +3 -1
  80. package/widgets/widget-chart/i18n/en.translations.d.ts +1 -0
  81. package/widgets/widget-chart/i18n/fr.translations.d.ts +1 -0
@@ -234,7 +234,11 @@ const enTranslations$1 = {
234
234
  },
235
235
  modalTitle: 'Do you want to confirm?',
236
236
  itemId: 'Id',
237
- class: 'Class'
237
+ class: 'Class',
238
+ colorScheme: 'Color scheme',
239
+ custom: 'Custom n°{{id}}',
240
+ addColor: 'Add color',
241
+ removeColor: 'Remove color'
238
242
  },
239
243
  view: {
240
244
  name: 'Tab n°{{rank}}'
@@ -578,7 +582,11 @@ const frTranslations$1 = {
578
582
  },
579
583
  modalTitle: 'Voulez-vous confirmer ?',
580
584
  itemId: 'Id',
581
- class: 'Classe'
585
+ class: 'Classe',
586
+ colorScheme: 'Schéma de couleur',
587
+ custom: 'Personalisé n°{{id}}',
588
+ addColor: 'Ajouter une couleur',
589
+ removeColor: 'Supprimer une couleur'
582
590
  },
583
591
  view: {
584
592
  name: 'Page n°{{rank}}'
@@ -1412,6 +1420,7 @@ var VegaType;
1412
1420
  })(VegaType || (VegaType = {}));
1413
1421
  var VegaColorType;
1414
1422
  (function (VegaColorType) {
1423
+ VegaColorType["PROVOLY"] = "Provoly";
1415
1424
  VegaColorType["ACCENT"] = "accent";
1416
1425
  VegaColorType["SET2"] = "set2";
1417
1426
  VegaColorType["DARK2"] = "dark2";
@@ -2163,6 +2172,7 @@ const enTranslations = {
2163
2172
  api: 'API',
2164
2173
  returnToList: 'Back to catalog',
2165
2174
  refresh: 'Refresh',
2175
+ since_day: 'Last update :',
2166
2176
  version: {
2167
2177
  title: 'Title',
2168
2178
  INDEXING: 'Loading',
@@ -2231,6 +2241,7 @@ const frTranslations = {
2231
2241
  api: 'API',
2232
2242
  returnToList: 'Retour au catalogue',
2233
2243
  refresh: 'Actualiser',
2244
+ since_day: 'Dernière mise à jour :',
2234
2245
  version: {
2235
2246
  title: 'Intitulé',
2236
2247
  INDEXING: 'En chargement',
@@ -5213,6 +5224,9 @@ class PryBackendAggregationService extends PryAggregationService {
5213
5224
  if (options.groupBy) {
5214
5225
  params = params.set('groupBy', options.groupBy.attribute);
5215
5226
  }
5227
+ if (options.graph.sort) {
5228
+ params = params.set('sort', `${options.graph.sort.direction},${options.graph.sort.attribute === options.abscissa.attribute ? 'KEY' : 'VALUE'}`);
5229
+ }
5216
5230
  params = this.searchService.getItemsFilter(targetDatasource, params);
5217
5231
  const key = `${this.dataUrl}_${params.toString()}`;
5218
5232
  if (!this.cache[key] || this.cache[key].time + 1000 < new Date().getTime()) {