@provoly/dashboard 0.14.6 → 0.14.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.
- package/components/metadata-editor/metadata-editor.component.d.ts +3 -1
- package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +1 -1
- package/esm2022/admin/components/admin-user/admin-user-select/admin-user-select.component.mjs +1 -1
- package/esm2022/components/metadata-editor/metadata-editor.component.mjs +30 -9
- package/esm2022/lib/core/i18n/en.translations.mjs +3 -2
- package/esm2022/lib/core/i18n/fr.translations.mjs +3 -2
- package/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
- package/esm2022/lib/dashboard/public-api.mjs +2 -2
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +6 -2
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +20 -13
- package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +11 -2
- package/esm2022/lib/dashboard/store/dashboard.selectors.mjs +4 -2
- package/esm2022/lib/dashboard/store/manifest.service.mjs +11 -1
- package/esm2022/lib/dashboard/store/wms.service.mjs +54 -0
- package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +19 -3
- package/esm2022/presentation/presentation.module.mjs +8 -4
- package/esm2022/presentation/style/css.component.mjs +2 -2
- package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +2 -1
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +34 -32
- package/esm2022/widgets/widget-map/pipe/widget-map-legend-url.pipe.mjs +3 -4
- package/esm2022/widgets/widget-map/public-api.mjs +1 -2
- package/esm2022/widgets/widget-map/utils/xml-utils.class.mjs +20 -1
- package/fesm2022/provoly-dashboard-admin.mjs +2 -2
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-components-metadata-editor.mjs +29 -8
- package/fesm2022/provoly-dashboard-components-metadata-editor.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +26 -7
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +37 -76
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +93 -49
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/i18n/en.translations.d.ts +1 -0
- package/lib/core/i18n/fr.translations.d.ts +1 -0
- package/lib/core/model/widget-map-manifest.interface.d.ts +1 -0
- package/lib/dashboard/public-api.d.ts +1 -1
- package/lib/dashboard/store/dashboard.actions.d.ts +31 -0
- package/lib/dashboard/store/dashboard.effects.d.ts +9 -3
- package/lib/dashboard/store/dashboard.reducers.d.ts +4 -0
- package/lib/dashboard/store/dashboard.selectors.d.ts +5 -0
- package/lib/dashboard/store/manifest.service.d.ts +2 -0
- package/{widgets/widget-map/component → lib/dashboard/store}/wms.service.d.ts +4 -4
- package/package.json +7 -7
- package/presentation/components/add-edit-presentation/add-edit-presentation.component.d.ts +3 -0
- package/presentation/presentation.module.d.ts +2 -1
- package/presentation/style/_o-pry-new-presentation.scss +18 -5
- package/schematics/ng-update/version-0-14/index.spec.js +0 -1
- package/schematics/ng-update/version-0-14/index.spec.js.map +1 -1
- package/widgets/widget-map/component/widget-map.component.d.ts +11 -8
- package/widgets/widget-map/pipe/widget-map-legend-url.pipe.d.ts +4 -3
- package/widgets/widget-map/public-api.d.ts +0 -1
- package/widgets/widget-map/utils/xml-utils.class.d.ts +1 -0
- package/esm2022/lib/dashboard/store/geocoding.service.mjs +0 -44
- package/esm2022/widgets/widget-map/component/wms.service.mjs +0 -67
- package/lib/dashboard/store/geocoding.service.d.ts +0 -56
|
@@ -397,7 +397,8 @@ const enTranslations$1 = {
|
|
|
397
397
|
upload: 'Add image',
|
|
398
398
|
next: 'Next',
|
|
399
399
|
back: 'Back',
|
|
400
|
-
filterByType: 'Filter by type'
|
|
400
|
+
filterByType: 'Filter by type',
|
|
401
|
+
editMetadata: 'Edit metadata'
|
|
401
402
|
},
|
|
402
403
|
snack: {
|
|
403
404
|
default: 'Vega encountered an error using your data and settings.',
|
|
@@ -727,7 +728,8 @@ const frTranslations$1 = {
|
|
|
727
728
|
upload: 'Ajouter une image',
|
|
728
729
|
next: 'Suivant',
|
|
729
730
|
back: 'Retour',
|
|
730
|
-
filterByType: 'Filtrer par type'
|
|
731
|
+
filterByType: 'Filtrer par type',
|
|
732
|
+
editMetadata: 'Modifier la métadonnée'
|
|
731
733
|
},
|
|
732
734
|
snack: {
|
|
733
735
|
default: 'Vega a rencontré une erreur en utilisant vos données et paramétrage.',
|
|
@@ -1311,7 +1313,11 @@ const DashboardActions = {
|
|
|
1311
1313
|
resetWmsFeatures: createAction('[Widget map] Reset Wms layer features'),
|
|
1312
1314
|
getWmsFeatures: createAction('[Widget map] Get Wms layer features', props()),
|
|
1313
1315
|
addWmsFeatures: createAction('[Widget map] Set Wms layer features', props()),
|
|
1314
|
-
updateDisplayOptions: createAction('[Dashboard/Display] Update displayed dashboard management features', props())
|
|
1316
|
+
updateDisplayOptions: createAction('[Dashboard/Display] Update displayed dashboard management features', props()),
|
|
1317
|
+
getCapability: createAction('[Widget map] Get Wms capability', props()),
|
|
1318
|
+
updateCapability: createAction('[Widget map] Store Wms capability', props()),
|
|
1319
|
+
addManifestMetadata: createAction('[Dashboard] Add manifest metadata', props()),
|
|
1320
|
+
deleteManifestMetadata: createAction('[Dashboard] Add manifest metadata', props())
|
|
1315
1321
|
};
|
|
1316
1322
|
|
|
1317
1323
|
const ConfigActions = {
|
|
@@ -3873,6 +3879,7 @@ const datasourceFilters = createSelector(feature$4, (state) => state?.manifests.
|
|
|
3873
3879
|
: {});
|
|
3874
3880
|
const wmsFeatures = createSelector(feature$4, (state) => state?.wmsFeatures);
|
|
3875
3881
|
const displayOptions = createSelector(feature$4, (state) => state?.display);
|
|
3882
|
+
const capabilities = createSelector(feature$4, (state) => state?.capabilities);
|
|
3876
3883
|
const DashboardSelectors = {
|
|
3877
3884
|
feature: feature$4,
|
|
3878
3885
|
rank,
|
|
@@ -3908,7 +3915,8 @@ const DashboardSelectors = {
|
|
|
3908
3915
|
filters,
|
|
3909
3916
|
datasourceFilters,
|
|
3910
3917
|
wmsFeatures,
|
|
3911
|
-
displayOptions
|
|
3918
|
+
displayOptions,
|
|
3919
|
+
capabilities
|
|
3912
3920
|
};
|
|
3913
3921
|
|
|
3914
3922
|
const SearchActions = {
|
|
@@ -9758,6 +9766,16 @@ class ManifestService {
|
|
|
9758
9766
|
}
|
|
9759
9767
|
}));
|
|
9760
9768
|
}
|
|
9769
|
+
addMetadata(presentationId, metadataId, value) {
|
|
9770
|
+
return this.store
|
|
9771
|
+
.select(ConfigSelectors.refUrl)
|
|
9772
|
+
.pipe(mergeMap((url) => this.httpClient.put(encodeURI(`${url}/users/me/dashboards/id/${presentationId}/metadata/id/${metadataId}`), { value })));
|
|
9773
|
+
}
|
|
9774
|
+
deleteMetadata(presentationId, metadataId) {
|
|
9775
|
+
return this.store
|
|
9776
|
+
.select(ConfigSelectors.refUrl)
|
|
9777
|
+
.pipe(mergeMap((url) => this.httpClient.delete(encodeURI(`${url}/users/me/dashboards/id/${presentationId}/metadata/id/${metadataId}`))));
|
|
9778
|
+
}
|
|
9761
9779
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ManifestService, deps: [{ token: i1$2.HttpClient }, { token: i1.Store }, { token: PrySnackbarService }, { token: PryI18nService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9762
9780
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ManifestService, providedIn: 'root' }); }
|
|
9763
9781
|
}
|
|
@@ -9867,44 +9885,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
9867
9885
|
}]
|
|
9868
9886
|
}], ctorParameters: function () { return [{ type: i3.Title }, { type: PryI18nService }, { type: i1.Store }]; } });
|
|
9869
9887
|
|
|
9870
|
-
class GeocodingService {
|
|
9871
|
-
constructor(httpClient, store) {
|
|
9872
|
-
this.httpClient = httpClient;
|
|
9873
|
-
this.store = store;
|
|
9874
|
-
}
|
|
9875
|
-
fromAddress(address) {
|
|
9876
|
-
const preparedAddress = address.replace(/\s/g, '+');
|
|
9877
|
-
return this.store.select(ConfigSelectors.geocodingUrl).pipe(mergeMap((url) => this.httpClient.get(`${url}/search/?text=${preparedAddress}`).pipe(map((result) => ({
|
|
9878
|
-
latLon: result.features[0].geometry.coordinates.reverse(),
|
|
9879
|
-
pointAddress: result.features[0].properties.label
|
|
9880
|
-
})))));
|
|
9881
|
-
}
|
|
9882
|
-
fromLatLong(latLng) {
|
|
9883
|
-
return this.store.select(ConfigSelectors.geocodingUrl).pipe(mergeMap((url) => this.httpClient
|
|
9884
|
-
.get(`${url}/reverse/`, {
|
|
9885
|
-
params: {
|
|
9886
|
-
lat: latLng[0],
|
|
9887
|
-
lon: latLng[1]
|
|
9888
|
-
}
|
|
9889
|
-
})
|
|
9890
|
-
.pipe(map((result) => ({
|
|
9891
|
-
latLon: result.features[0].geometry.coordinates.reverse(),
|
|
9892
|
-
pointAddress: result.features[0].properties.label
|
|
9893
|
-
})))));
|
|
9894
|
-
}
|
|
9895
|
-
getWmsFeatures(url) {
|
|
9896
|
-
return this.httpClient.get(url).pipe(map((json) => json));
|
|
9897
|
-
}
|
|
9898
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: GeocodingService, deps: [{ token: i1$2.HttpClient }, { token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9899
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: GeocodingService, providedIn: 'root' }); }
|
|
9900
|
-
}
|
|
9901
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: GeocodingService, decorators: [{
|
|
9902
|
-
type: Injectable,
|
|
9903
|
-
args: [{
|
|
9904
|
-
providedIn: 'root'
|
|
9905
|
-
}]
|
|
9906
|
-
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: i1.Store }]; } });
|
|
9907
|
-
|
|
9908
9888
|
class RefreshService {
|
|
9909
9889
|
constructor(store) {
|
|
9910
9890
|
this.store = store;
|
|
@@ -9936,8 +9916,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
9936
9916
|
}]
|
|
9937
9917
|
}], ctorParameters: function () { return [{ type: i1.Store }]; } });
|
|
9938
9918
|
|
|
9919
|
+
class WmsService {
|
|
9920
|
+
constructor(httpClient) {
|
|
9921
|
+
this.httpClient = httpClient;
|
|
9922
|
+
this.parser = new DOMParser();
|
|
9923
|
+
}
|
|
9924
|
+
getCapabilities(url) {
|
|
9925
|
+
if (url) {
|
|
9926
|
+
const layerUrlWithQmark = url.indexOf('?') === -1 ? url + '?' : url;
|
|
9927
|
+
const layerUrlWithService = layerUrlWithQmark.indexOf('&SERVICE=') === -1 ? layerUrlWithQmark + '&SERVICE=WMS' : layerUrlWithQmark;
|
|
9928
|
+
const layerUrlWithVersion = layerUrlWithService.indexOf('&VERSION=') === -1 ? layerUrlWithService + '&VERSION=1.3.0' : layerUrlWithService;
|
|
9929
|
+
return this.httpClient
|
|
9930
|
+
.get(`${layerUrlWithVersion}&REQUEST=GetCapabilities`, {
|
|
9931
|
+
headers: new HttpHeaders({
|
|
9932
|
+
Accept: 'text/html, application/xhtml+xml, */*',
|
|
9933
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
9934
|
+
}),
|
|
9935
|
+
responseType: 'text'
|
|
9936
|
+
})
|
|
9937
|
+
.pipe(map((response) => {
|
|
9938
|
+
const doc = this.parser.parseFromString(response, 'application/xml');
|
|
9939
|
+
const errorNode = doc.querySelector('parsererror');
|
|
9940
|
+
if (errorNode) {
|
|
9941
|
+
console.error(`Cannot getCapabilities for ${url}`);
|
|
9942
|
+
return null;
|
|
9943
|
+
}
|
|
9944
|
+
else {
|
|
9945
|
+
return { url, doc };
|
|
9946
|
+
}
|
|
9947
|
+
}), catchError(() => {
|
|
9948
|
+
console.error(`Cannot getCapabilities for ${url}`);
|
|
9949
|
+
return of(null);
|
|
9950
|
+
}));
|
|
9951
|
+
}
|
|
9952
|
+
return of(null);
|
|
9953
|
+
}
|
|
9954
|
+
getWmsFeatures(url) {
|
|
9955
|
+
return this.httpClient.get(url).pipe(map((json) => json));
|
|
9956
|
+
}
|
|
9957
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: WmsService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9958
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: WmsService, providedIn: 'root' }); }
|
|
9959
|
+
}
|
|
9960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: WmsService, decorators: [{
|
|
9961
|
+
type: Injectable,
|
|
9962
|
+
args: [{
|
|
9963
|
+
providedIn: 'root'
|
|
9964
|
+
}]
|
|
9965
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
9966
|
+
|
|
9939
9967
|
class DashboardEffects {
|
|
9940
|
-
constructor(dashboardInitService, actions$, store, manifestService, itemService, titleService, translateService, snackBar, router,
|
|
9968
|
+
constructor(dashboardInitService, actions$, store, manifestService, itemService, titleService, translateService, snackBar, router, refreshService, toolboxManifestService, busService, searchService, pryDialog, wmsService) {
|
|
9941
9969
|
this.dashboardInitService = dashboardInitService;
|
|
9942
9970
|
this.actions$ = actions$;
|
|
9943
9971
|
this.store = store;
|
|
@@ -9947,12 +9975,12 @@ class DashboardEffects {
|
|
|
9947
9975
|
this.translateService = translateService;
|
|
9948
9976
|
this.snackBar = snackBar;
|
|
9949
9977
|
this.router = router;
|
|
9950
|
-
this.geocodingService = geocodingService;
|
|
9951
9978
|
this.refreshService = refreshService;
|
|
9952
9979
|
this.toolboxManifestService = toolboxManifestService;
|
|
9953
9980
|
this.busService = busService;
|
|
9954
9981
|
this.searchService = searchService;
|
|
9955
9982
|
this.pryDialog = pryDialog;
|
|
9983
|
+
this.wmsService = wmsService;
|
|
9956
9984
|
this.join$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.join), withLatestFrom(this.store.select(DashboardSelectors.rank), this.store.select(DashboardSelectors.tenants), this.store.select(DashboardSelectors.globalManifest), this.store.select(DashboardSelectors.resultSets), this.store.select(DashboardSelectors.selectedItemIds), this.store.select(DashboardSelectors.presentation)), filter$1(([action, rank, tenants, manifest, resultSets]) => rank === 0), map$1(([action, rank, tenants, manifest, resultSets, selectedIds, presentation]) => DashboardActions.updateManifestAfterTenantJoin({
|
|
9957
9985
|
tenants,
|
|
9958
9986
|
manifest: {
|
|
@@ -10228,7 +10256,8 @@ class DashboardEffects {
|
|
|
10228
10256
|
this.propagateGridLayout$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.setGridLayout), withLatestFrom(this.store.select(DashboardSelectors.rank), this.store.select(DashboardSelectors.windowManifest)), map$1(([action, rank, windowManifest]) => DashboardActions.propagateGridLayout({ manifest: windowManifest, rank }))));
|
|
10229
10257
|
this.toggleEditionModeIfNotManual$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.setGridLayout), filter$1((action) => action.layout !== DashboardGridLayout.MANUAL), map$1(() => DashboardActions.toggleEditionMode({ force: false }))));
|
|
10230
10258
|
this.updateViewAfterFilterValueUpdate$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.updateFilterValue), map$1((action) => SearchActions.getDatasourceItems({ id: action.datasourceId }))));
|
|
10231
|
-
this.
|
|
10259
|
+
this.getCapability$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.getCapability), debounceTime$1(100), withLatestFrom(this.store.select(DashboardSelectors.capabilities)), filter$1(([action, capabilities]) => (!!capabilities && !!action.url && !capabilities[action.url]) || !!action.force), mergeMap$1(([action, _]) => this.wmsService.getCapabilities(action.url).pipe(map$1((capability) => DashboardActions.updateCapability({ url: action.url, capability })), startWith(DashboardActions.updateCapability({ url: action.url, capability: null }))))));
|
|
10260
|
+
this.getWmsFeatures = createEffect(() => this.actions$.pipe(ofType(DashboardActions.getWmsFeatures), mergeMap$1((action) => combineLatest([of(action), this.wmsService.getWmsFeatures(action.url)])), map$1(([action, json]) => {
|
|
10232
10261
|
return DashboardActions.addWmsFeatures({
|
|
10233
10262
|
features: json.features.map((feature) => {
|
|
10234
10263
|
const result = {
|
|
@@ -10246,15 +10275,21 @@ class DashboardEffects {
|
|
|
10246
10275
|
})
|
|
10247
10276
|
});
|
|
10248
10277
|
})));
|
|
10278
|
+
this.addManifestMetadata = createEffect(() => this.actions$.pipe(ofType(DashboardActions.addManifestMetadata), mergeMap$1((action) => this.manifestService
|
|
10279
|
+
.addMetadata(action.presentationId, action.metadataId, action.value)
|
|
10280
|
+
.pipe(map$1(() => DashboardActions.fetchManifestsList())))));
|
|
10281
|
+
this.deleteManifestMetadata = createEffect(() => this.actions$.pipe(ofType(DashboardActions.deleteManifestMetadata), mergeMap$1((action) => this.manifestService
|
|
10282
|
+
.deleteMetadata(action.presentationId, action.metadataId)
|
|
10283
|
+
.pipe(map$1(() => DashboardActions.fetchManifestsList())))));
|
|
10249
10284
|
dashboardInitService.init();
|
|
10250
10285
|
refreshService.start();
|
|
10251
10286
|
}
|
|
10252
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DashboardEffects, deps: [{ token: DashboardInitService }, { token: i1$3.Actions }, { token: i1.Store }, { token: ManifestService }, { token: ItemService }, { token: PryTitleService }, { token: PryI18nService }, { token: PrySnackbarService }, { token: i2.Router }, { token:
|
|
10287
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DashboardEffects, deps: [{ token: DashboardInitService }, { token: i1$3.Actions }, { token: i1.Store }, { token: ManifestService }, { token: ItemService }, { token: PryTitleService }, { token: PryI18nService }, { token: PrySnackbarService }, { token: i2.Router }, { token: RefreshService }, { token: ToolboxManifestService }, { token: BusService }, { token: SearchService }, { token: PryDialogService }, { token: WmsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
10253
10288
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DashboardEffects }); }
|
|
10254
10289
|
}
|
|
10255
10290
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DashboardEffects, decorators: [{
|
|
10256
10291
|
type: Injectable
|
|
10257
|
-
}], ctorParameters: function () { return [{ type: DashboardInitService }, { type: i1$3.Actions }, { type: i1.Store }, { type: ManifestService }, { type: ItemService }, { type: PryTitleService }, { type: PryI18nService }, { type: PrySnackbarService }, { type: i2.Router }, { type:
|
|
10292
|
+
}], ctorParameters: function () { return [{ type: DashboardInitService }, { type: i1$3.Actions }, { type: i1.Store }, { type: ManifestService }, { type: ItemService }, { type: PryTitleService }, { type: PryI18nService }, { type: PrySnackbarService }, { type: i2.Router }, { type: RefreshService }, { type: ToolboxManifestService }, { type: BusService }, { type: SearchService }, { type: PryDialogService }, { type: WmsService }]; } });
|
|
10258
10293
|
|
|
10259
10294
|
const dashboardFeatureKey = '@pry/dashboard';
|
|
10260
10295
|
const dashboardInitialState = {
|
|
@@ -10305,7 +10340,8 @@ const dashboardInitialState = {
|
|
|
10305
10340
|
},
|
|
10306
10341
|
editionMode: false
|
|
10307
10342
|
},
|
|
10308
|
-
wmsFeatures: []
|
|
10343
|
+
wmsFeatures: [],
|
|
10344
|
+
capabilities: {}
|
|
10309
10345
|
};
|
|
10310
10346
|
const internalReducer = createReducer(dashboardInitialState, on(DashboardActions.join, (state, action) => ({
|
|
10311
10347
|
...state,
|
|
@@ -10866,6 +10902,14 @@ const internalReducer = createReducer(dashboardInitialState, on(DashboardActions
|
|
|
10866
10902
|
...state,
|
|
10867
10903
|
display: action.customDisplay ? action.customDisplay : getDisplayOptions(action.mode)
|
|
10868
10904
|
};
|
|
10905
|
+
}), on(DashboardActions.updateCapability, (state, action) => {
|
|
10906
|
+
return {
|
|
10907
|
+
...state,
|
|
10908
|
+
capabilities: {
|
|
10909
|
+
...state.capabilities,
|
|
10910
|
+
[action.url]: action.capability
|
|
10911
|
+
}
|
|
10912
|
+
};
|
|
10869
10913
|
}));
|
|
10870
10914
|
function dashboardReducer(state, action) {
|
|
10871
10915
|
return internalReducer(state, action);
|
|
@@ -11201,5 +11245,5 @@ function filterLoader(module, prop) {
|
|
|
11201
11245
|
* Generated bundle index. Do not edit.
|
|
11202
11246
|
*/
|
|
11203
11247
|
|
|
11204
|
-
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_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,
|
|
11248
|
+
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_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, NamedQueryUtils, OPERATOR_OPTIONS, Operation, PRY_ACCESS_GUARD, PRY_ACCESS_TOKEN, PRY_CUSTOMEVENT_TYPE, PRY_DIALOG_DATA, PryAccessDirective, PryAccessUtils, PryBaseAccess, PryBaseAccessGuard, PryCoreModule, PryDashboardModule, PryDatasetType, PryDatePickerComponent, PryDatePickerModule, PryDefaultAccessGuard, PryDefaultAccessService, PryDialogConfirmComponent, PryDialogRef, PryDialogService, PryEditInputComponent, PryEditInputModule, 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 };
|
|
11205
11249
|
//# sourceMappingURL=provoly-dashboard.mjs.map
|