@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
|
@@ -1905,8 +1905,7 @@ const defaultImage = new Image();
|
|
|
1905
1905
|
defaultImage.src = DEFAULT_ICON_URL;
|
|
1906
1906
|
const SUB_ICON_SIZE_PERCENT = 0.25;
|
|
1907
1907
|
class SymbolService {
|
|
1908
|
-
constructor(
|
|
1909
|
-
this.httpClient = httpClient;
|
|
1908
|
+
constructor(store, sanitizer, imageService) {
|
|
1910
1909
|
this.store = store;
|
|
1911
1910
|
this.sanitizer = sanitizer;
|
|
1912
1911
|
this.imageService = imageService;
|
|
@@ -2104,7 +2103,7 @@ class SymbolService {
|
|
|
2104
2103
|
}
|
|
2105
2104
|
return false;
|
|
2106
2105
|
}
|
|
2107
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: SymbolService, deps: [{ token: i1
|
|
2106
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: SymbolService, deps: [{ token: i1.Store }, { token: i3.DomSanitizer }, { token: ImageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2108
2107
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: SymbolService, providedIn: 'root' }); }
|
|
2109
2108
|
}
|
|
2110
2109
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: SymbolService, decorators: [{
|
|
@@ -2112,7 +2111,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
2112
2111
|
args: [{
|
|
2113
2112
|
providedIn: 'root'
|
|
2114
2113
|
}]
|
|
2115
|
-
}], ctorParameters: function () { return [{ type: i1
|
|
2114
|
+
}], ctorParameters: function () { return [{ type: i1.Store }, { type: i3.DomSanitizer }, { type: ImageService }]; } });
|
|
2116
2115
|
|
|
2117
2116
|
class GetSecuredImagePipe {
|
|
2118
2117
|
constructor(store, translateService, symbolService) {
|
|
@@ -2473,7 +2472,20 @@ var NamedQueryTypes;
|
|
|
2473
2472
|
NamedQueryTypes["FULL_TEXT"] = "FULL_TEXT";
|
|
2474
2473
|
})(NamedQueryTypes || (NamedQueryTypes = {}));
|
|
2475
2474
|
|
|
2476
|
-
|
|
2475
|
+
var PryDatasetType;
|
|
2476
|
+
(function (PryDatasetType) {
|
|
2477
|
+
PryDatasetType["OPEN"] = "OPEN";
|
|
2478
|
+
PryDatasetType["CLOSED"] = "CLOSED";
|
|
2479
|
+
PryDatasetType["MODIFIABLE"] = "MODIFIABLE";
|
|
2480
|
+
})(PryDatasetType || (PryDatasetType = {}));
|
|
2481
|
+
var GeoMetadata;
|
|
2482
|
+
(function (GeoMetadata) {
|
|
2483
|
+
GeoMetadata["NAMESPACE"] = "_geoNamespace";
|
|
2484
|
+
GeoMetadata["KEY"] = "_geoKey";
|
|
2485
|
+
GeoMetadata["OPACITY"] = "_geoOpacity";
|
|
2486
|
+
})(GeoMetadata || (GeoMetadata = {}));
|
|
2487
|
+
|
|
2488
|
+
class DatasourceUtils {
|
|
2477
2489
|
static getTypeFromPayload(payload) {
|
|
2478
2490
|
return payload === undefined
|
|
2479
2491
|
? undefined
|
|
@@ -2483,6 +2495,10 @@ class NamedQueryUtils {
|
|
|
2483
2495
|
? NamedQueryTypes.MULTI_CLASS
|
|
2484
2496
|
: NamedQueryTypes.FULL_TEXT;
|
|
2485
2497
|
}
|
|
2498
|
+
static isGeo(ds) {
|
|
2499
|
+
return (ds.metadata?.find((m) => m.metadataDef.name === GeoMetadata.KEY) !== undefined &&
|
|
2500
|
+
ds.metadata?.find((m) => m.metadataDef.name === GeoMetadata.NAMESPACE) !== undefined);
|
|
2501
|
+
}
|
|
2486
2502
|
}
|
|
2487
2503
|
|
|
2488
2504
|
const selectFeature = createFeatureSelector(dataSourceFeatureKey);
|
|
@@ -2501,7 +2517,7 @@ const getNamedQuerySorted = createSelector(selectFeature, (state) => {
|
|
|
2501
2517
|
return list.length > 9 ? list.slice(0, 10) : list;
|
|
2502
2518
|
});
|
|
2503
2519
|
const editInProgress = createSelector(selectFeature, (state) => !!state.currentEdit);
|
|
2504
|
-
const currentEditType = createSelector(selectFeature, (state) =>
|
|
2520
|
+
const currentEditType = createSelector(selectFeature, (state) => DatasourceUtils.getTypeFromPayload(state.currentEdit?.request));
|
|
2505
2521
|
const currentEdit = createSelector(selectFeature, (state) => state.currentEdit);
|
|
2506
2522
|
const isRename = createSelector(selectFeature, (state) => state.isRename);
|
|
2507
2523
|
const editFromWidget = createSelector(selectFeature, (state) => state.fromWidget);
|
|
@@ -8730,7 +8746,7 @@ class ToolboxManifestService extends SubscriptionnerDirective {
|
|
|
8730
8746
|
const manifest = this.get(id);
|
|
8731
8747
|
$event.dataTransfer.dropEffect = 'copy';
|
|
8732
8748
|
$event.dataTransfer.effectAllowed = 'copy';
|
|
8733
|
-
if (!this.isModel(id)) {
|
|
8749
|
+
if (!this.isModel(id) && manifest.header !== false) {
|
|
8734
8750
|
manifest.header = { datasourceSelection: false };
|
|
8735
8751
|
}
|
|
8736
8752
|
$event.dataTransfer.setData(MIME_TYPE_WIDGET_MANIFEST, JSON.stringify(manifest));
|
|
@@ -8912,19 +8928,6 @@ const OPERATOR_OPTIONS = [
|
|
|
8912
8928
|
|
|
8913
8929
|
const notificationFeatureKey = '@pry/notification';
|
|
8914
8930
|
|
|
8915
|
-
var PryDatasetType;
|
|
8916
|
-
(function (PryDatasetType) {
|
|
8917
|
-
PryDatasetType["OPEN"] = "OPEN";
|
|
8918
|
-
PryDatasetType["CLOSED"] = "CLOSED";
|
|
8919
|
-
PryDatasetType["MODIFIABLE"] = "MODIFIABLE";
|
|
8920
|
-
})(PryDatasetType || (PryDatasetType = {}));
|
|
8921
|
-
var GeoMetadata;
|
|
8922
|
-
(function (GeoMetadata) {
|
|
8923
|
-
GeoMetadata["NAMESPACE"] = "_geoNamespace";
|
|
8924
|
-
GeoMetadata["KEY"] = "_geoKey";
|
|
8925
|
-
GeoMetadata["OPACITY"] = "_geoOpacity";
|
|
8926
|
-
})(GeoMetadata || (GeoMetadata = {}));
|
|
8927
|
-
|
|
8928
8931
|
/**
|
|
8929
8932
|
* Based on types present in pry-common
|
|
8930
8933
|
*/
|
|
@@ -9425,7 +9428,7 @@ class DatasourceSelectorComponent extends SubscriptionnerDirective {
|
|
|
9425
9428
|
this.cdr.detectChanges();
|
|
9426
9429
|
}
|
|
9427
9430
|
isGeo(ds) {
|
|
9428
|
-
return
|
|
9431
|
+
return DatasourceUtils.isGeo(ds);
|
|
9429
9432
|
}
|
|
9430
9433
|
search($event) {
|
|
9431
9434
|
this.search$.next($event);
|
|
@@ -11703,5 +11706,5 @@ function filterLoader(module, prop) {
|
|
|
11703
11706
|
* Generated bundle index. Do not edit.
|
|
11704
11707
|
*/
|
|
11705
11708
|
|
|
11706
|
-
export { AccordionComponent, AccordionItemComponent, Aggregation, BaseFilterComponent, BaseFilterModule, BaseLayoutComponent, BaseMenuComponent, BaseToolboxComponent, BaseTooltipComponent, BaseTooltipModule, BaseWidgetComponent, BaseWidgetModule, BusService, CategoryActions, CategorySelectors, CategoryService, ChartOptionDefault, ClassActions, ClassSelectors, ClassService, ConfigActions, ConfigSelectors, ConfigService, ContextMenuActions, ContextMenuComponent, ContextMenuSelectors, DEFAULT_CATEGORY_UUID, DEFAULT_COLUMNS_NUMBER, DEFAULT_GAP_PX, DEFAULT_ICON_URL, DEFAULT_MSG_TIMEOUT, DEFAULT_NAMED_QUERY_ID, DEFAULT_PROJECTION, DEFAULT_RESTITUTION_ICON_URL, DEFAULT_ROWS_NUMBER, DEFAULT_ROW_HEIGHT_PX, DELAY_FOR_HIDE, DashboardActions, DashboardComponent, DashboardGridLayout, DashboardSelectors, DataSourceActions, DataSourceSelectors, DataSourceService, DataWidgetComponent, DatasourceSelectorComponent, DateRangeHighlightPipe, DateUtils, DefaultTooltipComponent, DefaultViewGuard, DisplayMode, ENV_OPTIONS, EXPLORE_NAMED_QUERY_ID, FIELD_OPTIONS, FIELD_UUID, FILTERS_DOMAIN, FILTER_DEFINITION, FieldActions, FieldSelectors, FieldService, FieldType, FilterFactoryService, FilterInstanciatorComponent, GeoMetadata, GeometricFieldTypes, GetSecuredImagePipe, GraphType, HTTP_ORIGIN_METADATA, I18nPipe, INTERNALLY_STORED_IMAGE_PREFIX, IconPosition, ImageActions, ImageService, ImagesSelectors, ItemUtils, LibraryTypes, LoopScrollColumnComponent, METADATA_TYPE, META_OPTIONS, MIME_TYPE_RESULTSET, MIME_TYPE_WIDGET_MANIFEST, MIME_TYPE_WIDGET_SIZE, MIME_TYPE_WIDGET_TYPE, ManifestService, ManifestUtils, ManifestsComponent, MarkSubType, MarkType, MetadataComponent, NamedQueryTypes,
|
|
11709
|
+
export { AccordionComponent, AccordionItemComponent, Aggregation, BaseFilterComponent, BaseFilterModule, BaseLayoutComponent, BaseMenuComponent, BaseToolboxComponent, BaseTooltipComponent, BaseTooltipModule, BaseWidgetComponent, BaseWidgetModule, BusService, CategoryActions, CategorySelectors, CategoryService, ChartOptionDefault, ClassActions, ClassSelectors, ClassService, ConfigActions, ConfigSelectors, ConfigService, ContextMenuActions, ContextMenuComponent, ContextMenuSelectors, DEFAULT_CATEGORY_UUID, DEFAULT_COLUMNS_NUMBER, DEFAULT_GAP_PX, DEFAULT_ICON_URL, DEFAULT_MSG_TIMEOUT, DEFAULT_NAMED_QUERY_ID, DEFAULT_PROJECTION, DEFAULT_RESTITUTION_ICON_URL, DEFAULT_ROWS_NUMBER, DEFAULT_ROW_HEIGHT_PX, DELAY_FOR_HIDE, DashboardActions, DashboardComponent, DashboardGridLayout, DashboardSelectors, DataSourceActions, DataSourceSelectors, DataSourceService, DataWidgetComponent, DatasourceSelectorComponent, DatasourceUtils, DateRangeHighlightPipe, DateUtils, DefaultTooltipComponent, DefaultViewGuard, DisplayMode, ENV_OPTIONS, EXPLORE_NAMED_QUERY_ID, FIELD_OPTIONS, FIELD_UUID, FILTERS_DOMAIN, FILTER_DEFINITION, FieldActions, FieldSelectors, FieldService, FieldType, FilterFactoryService, FilterInstanciatorComponent, GeoMetadata, GeometricFieldTypes, GetSecuredImagePipe, GraphType, HTTP_ORIGIN_METADATA, I18nPipe, INTERNALLY_STORED_IMAGE_PREFIX, IconPosition, ImageActions, ImageService, ImagesSelectors, ItemUtils, LibraryTypes, LoopScrollColumnComponent, METADATA_TYPE, META_OPTIONS, MIME_TYPE_RESULTSET, MIME_TYPE_WIDGET_MANIFEST, MIME_TYPE_WIDGET_SIZE, MIME_TYPE_WIDGET_TYPE, ManifestService, ManifestUtils, ManifestsComponent, MarkSubType, MarkType, MetadataComponent, NamedQueryTypes, OPERATOR_OPTIONS, Operation, PRY_ACCESS_GUARD, PRY_ACCESS_TOKEN, PRY_CUSTOMEVENT_TYPE, PRY_DIALOG_DATA, PryAboutComponent, PryAboutModule, PryAccessDirective, PryAccessUtils, PryAggregationService, PryBackendAggregationService, PryBaseAccess, PryBaseAccessGuard, PryCoreModule, PryDashboardModule, PryDatasetType, PryDatePickerComponent, PryDatePickerModule, PryDefaultAccessGuard, PryDefaultAccessService, PryDialogConfirmComponent, PryDialogRef, PryDialogService, PryEditInputComponent, PryEditInputModule, PryFrontendAggregationService, PryHiddenWhenOverlay, PryHiddenWhenOverlayDirective, PryHttpErrorInterceptorService, PryI18nModule, PryI18nService, PryIconComponent, PryIconModule, PryModalComponent, PryModalModule, PryModalStatusComponent, PryModalStatusModule, PryNqColorSelectorComponent, PryObjectEditionComponent, PryOverlayDirective, PryOverlayModule, PryRangeComponent, PryRangeModule, PrySelectComponent, PrySelectImageComponent, PrySelectModule, PryShareComponent, PryShareModule, PrySnackbarComponent, PrySnackbarModule, PrySnackbarService, PrySortDataPipe, PrySortHeaderComponent, PrySortHeaderDirective, PrySortModule, PrySortTableDirective, PryTimePickerComponent, PryTitleService, PryToggleComponent, PryToggleModule, PryTooltipDirective, PryUploadComponent, PryVisibilityType, PryWidgetHeaderComponent, RawService, RelationTypesActions, RelationTypesSelectors, RelationTypesService, ResultSetSizePipe, ResultsetUtils, SYMBOL_DOMAIN, SearchActions, SearchSelectors, SearchService, SettingsComponent, SubscriptionnerDirective, SymbolService, TABLE_ATTR_DOMAIN, TILE_ATTR_DOMAIN, TOOLTIPS_DOMAIN, TOOLTIP_DEFINITION, TabComponent, TabGroupComponent, ToolboxManifestService, ToolboxMenuService, TooltipFactoryService, TooltipMode, TranslateIdPipe, TranslateItemToSymbolPipe, UNKNOWN_DATASOURCE, USE_CURRENT_RESULTSET, VARIABLE_TYPE, VegaColorType, VegaType, ViewMode, VizualizeRawComponent, WIDGET_DEFINITION, WIDGET_HEADER_HEIGHT, WebsocketService, WidgetFactoryService, WidgetInstanciatorComponent, WidgetPlaceholderComponent, WidgetPlacementUtils, WmsService, adapter$2 as adapter, aggregationDefault, baseItemProperties, classReducer, classesFeatureKey, compareOperationFunctions, contextMenuFeatureKey, contextMenuReducer, createPlacedWidgetCopy, dashboardFeatureKey, dashboardInitialState, dashboardReducer, dataSourceFeatureKey, dataSourceReducer, deepMerge, defaultColors, defaultMenuStructure, enTranslations$1 as enTranslations, filterLoader, frTranslations$1 as frTranslations, getDisplayOptions, httpErrorOptions, imageFeatureKey, imageReducer, initialClassState, initialContextMenuState, initialDataSourceState, initialImageState, initialSearchState, latLonToGeographicFieldTransformation, markTypesDefault, notificationFeatureKey, orderWidgetsAccordingToPlacement, searchFeatureKey, searchReducer, selectAll$2 as selectAll, selectEntities$2 as selectEntities, selectIds$2 as selectIds, selectTotal$2 as selectTotal, solveCollisions, solvingCollisionOptions, sortByName$2 as sortByName, subTypesDefault, tooltipLoader, vegaColorSchemesDefault, widgetLoader, widgetMapConfig };
|
|
11707
11710
|
//# sourceMappingURL=provoly-dashboard.mjs.map
|