@provoly/dashboard 0.14.14 → 0.15.1

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 (53) hide show
  1. package/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.d.ts +9 -0
  2. package/admin/i18n/en.translations.d.ts +4 -4
  3. package/admin/i18n/fr.translations.d.ts +5 -4
  4. package/dataset/components/dataset-detail/dataset-detail.component.d.ts +0 -3
  5. package/dataset/i18n/en.translations.d.ts +1 -1
  6. package/dataset/i18n/fr.translations.d.ts +1 -1
  7. package/esm2022/admin/components/admin-classes/admin-classes-form/admin-classes-form.component.mjs +2 -2
  8. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +3 -3
  9. package/esm2022/admin/components/admin-classes/store/admin-class.actions.mjs +1 -1
  10. package/esm2022/admin/components/admin-classes/store/admin-class.reducer.mjs +2 -2
  11. package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +21 -5
  12. package/esm2022/admin/i18n/en.translations.mjs +5 -5
  13. package/esm2022/admin/i18n/fr.translations.mjs +6 -5
  14. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +1 -4
  15. package/esm2022/dataset/i18n/en.translations.mjs +2 -2
  16. package/esm2022/dataset/i18n/fr.translations.mjs +2 -2
  17. package/esm2022/lib/core/model/filter.interface.mjs +1 -1
  18. package/esm2022/lib/core/public-api.mjs +2 -2
  19. package/esm2022/lib/core/store/data-source/data-source.selectors.mjs +3 -3
  20. package/esm2022/lib/core/store/data-source/datasource-utils.mjs +18 -0
  21. package/esm2022/lib/core/symbol/symbol.service.mjs +7 -9
  22. package/esm2022/lib/core/toolbox/toolbox-manifest.service.mjs +2 -2
  23. package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +3 -3
  24. package/esm2022/restitution/components/restitution/restitution.component.mjs +2 -2
  25. package/esm2022/search/components/edit-named-query/edit-named-query.component.mjs +3 -3
  26. package/esm2022/search/components/save-query-button/save-query-button.component.mjs +3 -3
  27. package/esm2022/search/search-home/search-home.component.mjs +3 -3
  28. package/esm2022/search/search-mono-class/store/search-mono-class.effects.mjs +3 -3
  29. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +3 -3
  30. package/esm2022/widgets/widget-map/utils/cql-utils.class.mjs +2 -2
  31. package/fesm2022/provoly-dashboard-admin.mjs +33 -16
  32. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  33. package/fesm2022/provoly-dashboard-dataset.mjs +2 -5
  34. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  35. package/fesm2022/provoly-dashboard-restitution.mjs +1 -1
  36. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  37. package/fesm2022/provoly-dashboard-search.mjs +5 -5
  38. package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
  39. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +3 -3
  40. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  41. package/fesm2022/provoly-dashboard.mjs +27 -24
  42. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  43. package/lib/core/model/filter.interface.d.ts +1 -1
  44. package/lib/core/public-api.d.ts +1 -1
  45. package/lib/core/store/data-source/{named-query-utils.d.ts → datasource-utils.d.ts} +3 -1
  46. package/lib/core/symbol/symbol.service.d.ts +1 -3
  47. package/package.json +15 -15
  48. package/schematics/ng-add/index.js +5 -5
  49. package/schematics/ng-add/index.js.map +1 -1
  50. package/styles/components/_a-pry-select.scss +4 -0
  51. package/styles/components/_o-pry-admin-classes-customize.scss +19 -0
  52. package/styles-theme/components-theme/_o-pry-admin-classes-customize.theme.scss +5 -0
  53. package/esm2022/lib/core/store/data-source/named-query-utils.mjs +0 -13
@@ -7,7 +7,7 @@ import { Injectable, Component, ViewEncapsulation, Pipe, ViewContainerRef, Templ
7
7
  import * as i6 from '@angular/forms';
8
8
  import { FormsModule } from '@angular/forms';
9
9
  import * as i2 from '@provoly/dashboard';
10
- import { widgetMapConfig, DashboardActions, ContextMenuActions, TooltipMode, ItemUtils, FieldType, DEFAULT_PROJECTION, ClassSelectors, FieldSelectors, DataWidgetComponent, WIDGET_HEADER_HEIGHT, NamedQueryTypes, DashboardSelectors, ConfigSelectors, GeoMetadata, GeometricFieldTypes, Operation, DataSourceSelectors, ResultsetUtils, BaseWidgetModule, PryCoreModule, PryDashboardModule, PrySelectModule, PryIconModule, PryToggleModule, PryOverlayModule, PryI18nModule, PryRangeModule } from '@provoly/dashboard';
10
+ import { widgetMapConfig, DashboardActions, ContextMenuActions, TooltipMode, ItemUtils, FieldType, DEFAULT_PROJECTION, ClassSelectors, FieldSelectors, DataWidgetComponent, WIDGET_HEADER_HEIGHT, NamedQueryTypes, DashboardSelectors, ConfigSelectors, GeoMetadata, DatasourceUtils, GeometricFieldTypes, Operation, DataSourceSelectors, ResultsetUtils, BaseWidgetModule, PryCoreModule, PryDashboardModule, PrySelectModule, PryIconModule, PryToggleModule, PryOverlayModule, PryI18nModule, PryRangeModule } from '@provoly/dashboard';
11
11
  import * as i7 from '@provoly/dashboard/components/checkbox';
12
12
  import { PryCheckboxModule } from '@provoly/dashboard/components/checkbox';
13
13
  import equal from 'fast-deep-equal/es6';
@@ -305,7 +305,7 @@ class CqlUtils {
305
305
  .map((cond) => {
306
306
  const conditions = [];
307
307
  const attributeName = attributesReference.find((attr) => attr.id === cond.attribute)?.name;
308
- if (attributeName && cond.value && cond.value.length > 0) {
308
+ if (attributeName && cond.value && (typeof cond.value !== 'string' || cond.value.length > 0)) {
309
309
  switch (cond.operator) {
310
310
  case 'EQUALS':
311
311
  conditions.push(`${attributeName}='${cond.value}'`);
@@ -1135,7 +1135,7 @@ class WidgetMapComponent extends DataWidgetComponent {
1135
1135
  this.autoDatasetLayers$ = combineLatest([
1136
1136
  this.classes$,
1137
1137
  this.fields$,
1138
- this.usedDatasources$.pipe(startWith([]), map((datasources) => datasources.filter((ds) => ds.sourceType === 'dataset')))
1138
+ this.usedDatasources$.pipe(startWith([]), map((datasources) => datasources.filter((ds) => ds.sourceType === 'dataset' && !DatasourceUtils.isGeo(ds))))
1139
1139
  ]).pipe(map(([classes, fields, dataSets]) => dataSets
1140
1140
  .map((ds) => {
1141
1141
  const model = classes.find((clazz) => clazz.id === ds.oClass);