@provoly/dashboard 0.14.14 → 0.15.0
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.
- package/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.d.ts +9 -0
- package/admin/i18n/fr.translations.d.ts +1 -0
- package/dataset/components/dataset-detail/dataset-detail.component.d.ts +0 -3
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +3 -3
- package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +21 -5
- package/esm2022/admin/i18n/fr.translations.mjs +2 -1
- package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +1 -4
- package/esm2022/lib/core/model/filter.interface.mjs +1 -1
- package/esm2022/lib/core/public-api.mjs +2 -2
- package/esm2022/lib/core/store/data-source/data-source.selectors.mjs +3 -3
- package/esm2022/lib/core/store/data-source/datasource-utils.mjs +18 -0
- package/esm2022/lib/core/symbol/symbol.service.mjs +7 -9
- package/esm2022/lib/core/toolbox/toolbox-manifest.service.mjs +2 -2
- package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +3 -3
- package/esm2022/restitution/components/restitution/restitution.component.mjs +2 -2
- package/esm2022/search/components/edit-named-query/edit-named-query.component.mjs +3 -3
- package/esm2022/search/components/save-query-button/save-query-button.component.mjs +3 -3
- package/esm2022/search/search-home/search-home.component.mjs +3 -3
- package/esm2022/search/search-mono-class/store/search-mono-class.effects.mjs +3 -3
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +3 -3
- package/esm2022/widgets/widget-map/utils/cql-utils.class.mjs +2 -2
- package/fesm2022/provoly-dashboard-admin.mjs +23 -6
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-dataset.mjs +0 -3
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-search.mjs +5 -5
- package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +3 -3
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +25 -22
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/model/filter.interface.d.ts +1 -1
- package/lib/core/public-api.d.ts +1 -1
- package/lib/core/store/data-source/{named-query-utils.d.ts → datasource-utils.d.ts} +3 -1
- package/lib/core/symbol/symbol.service.d.ts +1 -3
- package/package.json +31 -31
- package/schematics/ng-add/index.js +4 -4
- package/schematics/ng-add/index.js.map +1 -1
- package/styles/components/_a-pry-select.scss +4 -0
- package/styles/components/_o-pry-admin-classes-customize.scss +19 -0
- package/styles-theme/components-theme/_o-pry-admin-classes-customize.theme.scss +5 -0
- 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);
|