@provoly/dashboard 0.11.9 → 0.12.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.
- package/dataset/i18n/en.translations.d.ts +3 -1
- package/dataset/i18n/fr.translations.d.ts +1 -0
- package/dataset/style/_o-pry-dataset.scss +2 -7
- package/esm2022/dataset/components/dataset-card/dataset-card.component.mjs +3 -3
- package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +3 -3
- package/esm2022/dataset/components/dataset.component.mjs +3 -2
- package/esm2022/dataset/i18n/en.translations.mjs +4 -2
- package/esm2022/dataset/i18n/fr.translations.mjs +3 -2
- package/esm2022/dataset/style/css.component.mjs +2 -2
- package/esm2022/filters/date/date-filter.component.mjs +24 -8
- package/esm2022/filters/date/date-filter.module.mjs +7 -8
- package/esm2022/filters/date/public-api.mjs +1 -2
- package/esm2022/filters/number/number-filter.component.mjs +5 -4
- package/esm2022/filters/number/number-filter.module.mjs +5 -5
- package/esm2022/filters/text/text-filter.component.mjs +5 -4
- package/esm2022/filters/text/text-filter.module.mjs +5 -5
- package/esm2022/lib/core/components/modal-status/modal-status.component.mjs +40 -0
- package/esm2022/lib/core/components/modal-status/modal-status.module.mjs +28 -0
- package/esm2022/lib/core/core.module.mjs +6 -11
- package/esm2022/lib/core/i18n/en.translations.mjs +4 -1
- package/esm2022/lib/core/i18n/fr.translations.mjs +4 -1
- package/esm2022/lib/core/model/dataset.interface.mjs +1 -1
- package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
- package/esm2022/lib/core/public-api.mjs +3 -4
- package/esm2022/lib/core/store/data-source/data-source.actions.mjs +5 -5
- package/esm2022/lib/core/store/data-source/data-source.effects.mjs +2 -2
- package/esm2022/lib/core/store/data-source/data-source.reducer.mjs +7 -7
- package/esm2022/lib/core/store/data-source/data-source.selectors.mjs +3 -3
- package/esm2022/lib/core/store/data-source/data-source.service.mjs +3 -3
- package/esm2022/lib/dashboard/store/manifest.service.mjs +10 -7
- package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +8 -8
- package/esm2022/presentation/components/presentation.component.mjs +4 -4
- package/esm2022/presentation/components/title-presentation/title-presentation.component.mjs +33 -0
- package/esm2022/presentation/presentation.module.mjs +28 -11
- package/esm2022/presentation/public-api.mjs +2 -1
- package/esm2022/presentation/style/css.component.mjs +2 -2
- package/esm2022/restitution/components/restitution-list/restitution-list.component.mjs +15 -9
- package/esm2022/restitution/i18n/fr.translations.mjs +2 -2
- package/esm2022/restitution/style/css.component.mjs +2 -2
- package/esm2022/search/search-home/search-home.component.mjs +3 -3
- package/esm2022/toolbox/components/automate-refresh/automate-refresh.component.mjs +104 -0
- package/esm2022/toolbox/components/clear-view/clear-view.component.mjs +8 -10
- package/esm2022/toolbox/components/drag-widgets/drag-widgets.component.mjs +8 -10
- package/esm2022/toolbox/components/edit-mode-toggle/edit-mode-toggle.component.mjs +7 -9
- package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +7 -7
- package/esm2022/toolbox/components/launch-tab/launch-tab.component.mjs +8 -10
- package/esm2022/toolbox/components/refresh-datasets/refresh-datasets.component.mjs +38 -0
- package/esm2022/toolbox/components/save-view/save-view.component.mjs +9 -12
- package/esm2022/toolbox/components/select-grid-layout/select-grid-layout.component.mjs +9 -12
- package/esm2022/toolbox/components/toolbox-action/toolbox-action.component.mjs +26 -0
- package/esm2022/toolbox/components/toolbox-action-instanciator/toolbox-action-instanciator.component.mjs +44 -0
- package/esm2022/toolbox/components/toolbox.component.mjs +40 -12
- package/esm2022/toolbox/public-api.mjs +6 -1
- package/esm2022/toolbox/style/css.component.mjs +3 -3
- package/esm2022/toolbox/toolbox.model.mjs +59 -0
- package/esm2022/toolbox/toolbox.module.mjs +22 -6
- package/fesm2022/provoly-dashboard-dataset.mjs +12 -8
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-filters-date.mjs +31 -23
- package/fesm2022/provoly-dashboard-filters-date.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-filters-number.mjs +8 -7
- package/fesm2022/provoly-dashboard-filters-number.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-filters-text.mjs +8 -7
- package/fesm2022/provoly-dashboard-filters-text.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +66 -25
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +17 -11
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-search.mjs +2 -2
- package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +328 -69
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +177 -184
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/filters/date/date-filter.component.d.ts +1 -0
- package/filters/date/date-filter.module.d.ts +5 -6
- package/filters/date/public-api.d.ts +0 -1
- package/filters/number/number-filter.module.d.ts +1 -1
- package/filters/text/text-filter.module.d.ts +1 -1
- package/lib/core/components/{modalStatus/modalStatus.component.d.ts → modal-status/modal-status.component.d.ts} +10 -3
- package/lib/core/components/{modalStatus/modalStatus.module.d.ts → modal-status/modal-status.module.d.ts} +1 -1
- package/lib/core/core.module.d.ts +11 -12
- package/lib/core/i18n/en.translations.d.ts +3 -0
- package/lib/core/i18n/fr.translations.d.ts +3 -0
- package/lib/core/model/dataset.interface.d.ts +11 -4
- package/lib/core/model/manifest.interface.d.ts +1 -0
- package/lib/core/public-api.d.ts +2 -3
- package/lib/core/store/data-source/data-source.actions.d.ts +10 -10
- package/lib/core/store/data-source/data-source.effects.d.ts +4 -4
- package/lib/core/store/data-source/data-source.reducer.d.ts +2 -2
- package/lib/core/store/data-source/data-source.selectors.d.ts +1 -1
- package/lib/core/store/data-source/data-source.service.d.ts +2 -2
- package/lib/dashboard/store/manifest.service.d.ts +1 -0
- package/package.json +1 -1
- package/{lib/core → presentation}/components/title-presentation/title-presentation.component.d.ts +3 -2
- package/presentation/presentation.module.d.ts +4 -3
- package/presentation/public-api.d.ts +1 -0
- package/presentation/style/_o-pry-presentation.scss +42 -1
- package/restitution/components/restitution-list/restitution-list.component.d.ts +5 -5
- package/styles/components/_m-actions-list.scss +1 -0
- package/styles/components/_m-filter.scss +43 -0
- package/styles-theme/components-theme/_m-filter.theme.scss +12 -0
- package/styles-theme/main-theme.scss +2 -0
- package/toolbox/components/automate-refresh/automate-refresh.component.d.ts +29 -0
- package/toolbox/components/clear-view/clear-view.component.d.ts +3 -4
- package/toolbox/components/drag-widgets/drag-widgets.component.d.ts +3 -4
- package/toolbox/components/edit-mode-toggle/edit-mode-toggle.component.d.ts +3 -4
- package/toolbox/components/filter-settings/filter-settings.component.d.ts +3 -3
- package/toolbox/components/launch-tab/launch-tab.component.d.ts +3 -4
- package/toolbox/components/refresh-datasets/refresh-datasets.component.d.ts +14 -0
- package/toolbox/components/save-view/save-view.component.d.ts +4 -5
- package/toolbox/components/select-grid-layout/select-grid-layout.component.d.ts +4 -5
- package/toolbox/components/toolbox-action/toolbox-action.component.d.ts +12 -0
- package/toolbox/components/toolbox-action-instanciator/toolbox-action-instanciator.component.d.ts +17 -0
- package/toolbox/components/toolbox.component.d.ts +18 -3
- package/toolbox/public-api.d.ts +5 -0
- package/toolbox/style/_o-automate-refresh.scss +24 -0
- package/toolbox/style/_o-toolbox.scss +30 -0
- package/toolbox/style/css.component.d.ts +1 -1
- package/toolbox/toolbox.model.d.ts +10 -0
- package/toolbox/toolbox.module.d.ts +22 -18
- package/esm2022/filters/date/style/css.component.mjs +0 -11
- package/esm2022/lib/core/components/modalStatus/modalStatus.component.mjs +0 -35
- package/esm2022/lib/core/components/modalStatus/modalStatus.module.mjs +0 -28
- package/esm2022/lib/core/components/title-presentation/title-presentation.component.mjs +0 -26
- package/filters/date/style/_m-date.scss +0 -6
- package/filters/date/style/css.component.d.ts +0 -5
|
@@ -261,6 +261,9 @@ const enTranslations$1 = {
|
|
|
261
261
|
launchIndication: 'Open this page in a',
|
|
262
262
|
chooseGrid: 'Change grid layout',
|
|
263
263
|
clear: 'Clear presentation',
|
|
264
|
+
refresh: 'Refresh',
|
|
265
|
+
automateRefresh: 'Automate refresh',
|
|
266
|
+
options: 'Options',
|
|
264
267
|
close: 'Close',
|
|
265
268
|
heatmap: 'Heatmap',
|
|
266
269
|
bubblemap: 'Bubbles',
|
|
@@ -584,6 +587,9 @@ const frTranslations$1 = {
|
|
|
584
587
|
launchIndication: 'Ouvrir cette page dans un',
|
|
585
588
|
chooseGrid: 'Changer la grille',
|
|
586
589
|
clear: "Vider l'affichage",
|
|
590
|
+
refresh: 'Actualiser',
|
|
591
|
+
automateRefresh: "Automatiser l'actualisation",
|
|
592
|
+
options: 'Options',
|
|
587
593
|
close: 'Fermer',
|
|
588
594
|
heatmap: 'Fréquentation',
|
|
589
595
|
bubblemap: 'Bulles',
|
|
@@ -2043,8 +2049,11 @@ const enTranslations = {
|
|
|
2043
2049
|
search: 'Search',
|
|
2044
2050
|
date: 'Date',
|
|
2045
2051
|
status: 'Status',
|
|
2052
|
+
versionHistory: 'Version history',
|
|
2046
2053
|
data: 'Data',
|
|
2047
2054
|
export: 'Export',
|
|
2055
|
+
api: 'API',
|
|
2056
|
+
returnToList: 'Back to catalog',
|
|
2048
2057
|
version: {
|
|
2049
2058
|
title: 'Title',
|
|
2050
2059
|
INDEXING: 'Loading',
|
|
@@ -2061,7 +2070,6 @@ const enTranslations = {
|
|
|
2061
2070
|
LOADING: '',
|
|
2062
2071
|
INDEXING: ''
|
|
2063
2072
|
},
|
|
2064
|
-
api: 'API',
|
|
2065
2073
|
error: {
|
|
2066
2074
|
title: 'List of errors',
|
|
2067
2075
|
close: 'Close'
|
|
@@ -2078,10 +2086,11 @@ const frTranslations = {
|
|
|
2078
2086
|
date: 'Date',
|
|
2079
2087
|
status: 'Statut',
|
|
2080
2088
|
data: 'Données',
|
|
2089
|
+
versionHistory: 'Historique de versions',
|
|
2081
2090
|
table: 'Tableau',
|
|
2082
2091
|
export: 'Export',
|
|
2083
2092
|
api: 'API',
|
|
2084
|
-
returnToList: '
|
|
2093
|
+
returnToList: 'Retour au catalogue',
|
|
2085
2094
|
version: {
|
|
2086
2095
|
title: 'Intitulé',
|
|
2087
2096
|
INDEXING: 'En chargement',
|
|
@@ -2166,10 +2175,10 @@ const DataSourceActions = {
|
|
|
2166
2175
|
activateDatasetVersion: createAction('[Dataset] Activate dataset version', props()),
|
|
2167
2176
|
activateDatasetVersionSuccess: createAction('[Dataset] Activate dataset version success', props()),
|
|
2168
2177
|
activateDatasetVersionFailure: createAction('[Dataset] Activate dataset version failure', props()),
|
|
2169
|
-
|
|
2170
|
-
getById: createAction('[Dataset
|
|
2171
|
-
getByIdSuccess: createAction('[Dataset
|
|
2172
|
-
getByIdFailure: createAction('[Dataset
|
|
2178
|
+
previews: {
|
|
2179
|
+
getById: createAction('[Dataset/Previews] get by id', props()),
|
|
2180
|
+
getByIdSuccess: createAction('[Dataset/Previews] get by id Success', props()),
|
|
2181
|
+
getByIdFailure: createAction('[Dataset/Previews] get by id Failure', props())
|
|
2173
2182
|
}
|
|
2174
2183
|
}
|
|
2175
2184
|
};
|
|
@@ -2186,7 +2195,7 @@ const initialDataSourceState = {
|
|
|
2186
2195
|
datasets: [],
|
|
2187
2196
|
datasetVersions: [],
|
|
2188
2197
|
selectedDatasetVersion: null,
|
|
2189
|
-
|
|
2198
|
+
previews: []
|
|
2190
2199
|
};
|
|
2191
2200
|
const dataSourceReducer = createReducer(initialDataSourceState, on(DataSourceActions.namedQuery.load, (state) => ({ ...state, error: undefined, isLoading: true })), on(DataSourceActions.namedQuery.loaded, (state, action) => ({ ...state, list: action.list, isLoading: false })), on(DataSourceActions.namedQuery.delete, (state, action) => ({ ...state, error: undefined, isLoading: false })), on(DataSourceActions.namedQuery.failure, (state, action) => ({ ...state, error: action.error, isLoading: false })), on(DataSourceActions.namedQuery.openEdit, (state, action) => ({
|
|
2192
2201
|
...state,
|
|
@@ -2248,17 +2257,17 @@ const dataSourceReducer = createReducer(initialDataSourceState, on(DataSourceAct
|
|
|
2248
2257
|
})), on(DataSourceActions.dataset.listVersionsFailure, (state, action) => ({
|
|
2249
2258
|
...state,
|
|
2250
2259
|
loading: false
|
|
2251
|
-
})), on(DataSourceActions.dataset.
|
|
2260
|
+
})), on(DataSourceActions.dataset.previews.getById, (state, action) => ({
|
|
2252
2261
|
...state,
|
|
2253
2262
|
loading: true
|
|
2254
|
-
})), on(DataSourceActions.dataset.
|
|
2263
|
+
})), on(DataSourceActions.dataset.previews.getByIdSuccess, (state, action) => ({
|
|
2255
2264
|
...state,
|
|
2256
|
-
|
|
2265
|
+
previews: action.previews,
|
|
2257
2266
|
loading: false
|
|
2258
|
-
})), on(DataSourceActions.dataset.
|
|
2267
|
+
})), on(DataSourceActions.dataset.previews.getByIdFailure, (state, action) => ({
|
|
2259
2268
|
...state,
|
|
2260
2269
|
error: action.error,
|
|
2261
|
-
|
|
2270
|
+
previews: [],
|
|
2262
2271
|
loading: false
|
|
2263
2272
|
})));
|
|
2264
2273
|
|
|
@@ -2319,7 +2328,7 @@ const matchingDatasetVersions = (datasetId) => {
|
|
|
2319
2328
|
}
|
|
2320
2329
|
return memoizeDatasetVersions[datasetId];
|
|
2321
2330
|
};
|
|
2322
|
-
const
|
|
2331
|
+
const datasetPreviews = createSelector(selectFeature, (state) => state?.previews ?? []);
|
|
2323
2332
|
const DataSourceSelectors = {
|
|
2324
2333
|
selectFeature,
|
|
2325
2334
|
getNamedQuery,
|
|
@@ -2340,15 +2349,19 @@ const DataSourceSelectors = {
|
|
|
2340
2349
|
datasetVersions,
|
|
2341
2350
|
selectedDatasetId,
|
|
2342
2351
|
matchingDatasetVersions,
|
|
2343
|
-
|
|
2352
|
+
datasetPreviews
|
|
2344
2353
|
};
|
|
2345
2354
|
|
|
2346
2355
|
class PryModalStatusComponent {
|
|
2347
2356
|
set version(version) {
|
|
2348
2357
|
this._version = version;
|
|
2349
2358
|
if (!!version) {
|
|
2350
|
-
this.store.dispatch(DataSourceActions.dataset.
|
|
2351
|
-
this.
|
|
2359
|
+
this.store.dispatch(DataSourceActions.dataset.previews.getById({ id: version.id }));
|
|
2360
|
+
this.datasetPreviews$ = this.store
|
|
2361
|
+
.select(DataSourceSelectors.datasetPreviews)
|
|
2362
|
+
.pipe(map((previews) => previews
|
|
2363
|
+
.map((preview) => preview.messages.map((message) => ({ ...message, level: preview.level, count: preview.count })))
|
|
2364
|
+
.flat()));
|
|
2352
2365
|
}
|
|
2353
2366
|
}
|
|
2354
2367
|
constructor(store) {
|
|
@@ -2359,11 +2372,11 @@ class PryModalStatusComponent {
|
|
|
2359
2372
|
this.gotoConsult.emit(this.version);
|
|
2360
2373
|
}
|
|
2361
2374
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: PryModalStatusComponent, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2362
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.6", type: PryModalStatusComponent, selector: "pry-
|
|
2375
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.6", type: PryModalStatusComponent, selector: "pry-modal-status", inputs: { version: "version" }, outputs: { gotoConsult: "gotoConsult" }, ngImport: i0, template: "<div class=\"o-modal-wrapper\">\n <div class=\"o-modal__top\">\n <div class=\"o-modal__top__title\">\n <h2 class=\"a-h2\">{{ '@pry.dataset.error.title' | i18n }}</h2>\n </div>\n <div class=\"o-modal__top__close\">\n <button class=\"a-btn a-btn--icon-only\" (click)=\"goBack()\">\n <pry-icon iconSvg=\"close\" [height]=\"35\" [width]=\"35\"></pry-icon>\n <span class=\"u-visually-hidden\">{{ '@pry.toolbox.close' | i18n }}</span>\n </button>\n </div>\n </div>\n <table class=\"a-table\">\n <thead>\n <tr>\n <th>Type</th>\n <th>{{ '@pry.dataset.error.code' | i18n }}</th>\n <th>{{ '@pry.dataset.error.elements' | i18n }}</th>\n <th>{{ '@pry.dataset.error.message' | i18n }}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let preview of datasetPreviews$ | async | slice : 0 : 5\">\n <td>\n {{ preview.level }}\n </td>\n <td>\n {{ preview.extractErrorCode }}\n </td>\n <td>\n {{ preview.count }}\n </td>\n <td>\n {{ preview.name }}\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: PryIconComponent, selector: "pry-icon", inputs: ["color", "iconSvg", "animation", "iconImage", "alt", "width", "height", "classes"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$1.SlicePipe, name: "slice" }, { kind: "pipe", type: I18nPipe, name: "i18n" }] }); }
|
|
2363
2376
|
}
|
|
2364
2377
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: PryModalStatusComponent, decorators: [{
|
|
2365
2378
|
type: Component,
|
|
2366
|
-
args: [{ selector: 'pry-
|
|
2379
|
+
args: [{ selector: 'pry-modal-status', template: "<div class=\"o-modal-wrapper\">\n <div class=\"o-modal__top\">\n <div class=\"o-modal__top__title\">\n <h2 class=\"a-h2\">{{ '@pry.dataset.error.title' | i18n }}</h2>\n </div>\n <div class=\"o-modal__top__close\">\n <button class=\"a-btn a-btn--icon-only\" (click)=\"goBack()\">\n <pry-icon iconSvg=\"close\" [height]=\"35\" [width]=\"35\"></pry-icon>\n <span class=\"u-visually-hidden\">{{ '@pry.toolbox.close' | i18n }}</span>\n </button>\n </div>\n </div>\n <table class=\"a-table\">\n <thead>\n <tr>\n <th>Type</th>\n <th>{{ '@pry.dataset.error.code' | i18n }}</th>\n <th>{{ '@pry.dataset.error.elements' | i18n }}</th>\n <th>{{ '@pry.dataset.error.message' | i18n }}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let preview of datasetPreviews$ | async | slice : 0 : 5\">\n <td>\n {{ preview.level }}\n </td>\n <td>\n {{ preview.extractErrorCode }}\n </td>\n <td>\n {{ preview.count }}\n </td>\n <td>\n {{ preview.name }}\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n" }]
|
|
2367
2380
|
}], ctorParameters: function () { return [{ type: i1.Store }]; }, propDecorators: { gotoConsult: [{
|
|
2368
2381
|
type: Output
|
|
2369
2382
|
}], version: [{
|
|
@@ -3076,150 +3089,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
3076
3089
|
type: Input
|
|
3077
3090
|
}] } });
|
|
3078
3091
|
|
|
3079
|
-
var DashboardGridLayout;
|
|
3080
|
-
(function (DashboardGridLayout) {
|
|
3081
|
-
DashboardGridLayout["FULL"] = "1";
|
|
3082
|
-
DashboardGridLayout["THIRD_VERTICAL"] = "1/3v";
|
|
3083
|
-
DashboardGridLayout["THIRD_HORIZONTAL"] = "1/3h";
|
|
3084
|
-
DashboardGridLayout["HALF_VERTICAL"] = "1/2v";
|
|
3085
|
-
DashboardGridLayout["HALF_HORIZONTAL"] = "1/2h";
|
|
3086
|
-
DashboardGridLayout["QUARTER"] = "1/4";
|
|
3087
|
-
DashboardGridLayout["MANUAL"] = "0";
|
|
3088
|
-
})(DashboardGridLayout || (DashboardGridLayout = {}));
|
|
3089
|
-
|
|
3090
|
-
const NEW_WINDOW_TARGET = -1;
|
|
3091
|
-
const feature$5 = createFeatureSelector('@pry/dashboard');
|
|
3092
|
-
const manifests = createSelector(feature$5, (state) => state?.manifests);
|
|
3093
|
-
const rank = createSelector(manifests, (manifests) => manifests?.tenants.indexOf(manifests.sender));
|
|
3094
|
-
const currentManifestId = createSelector(manifests, (manifests) => manifests.currentId);
|
|
3095
|
-
const globalManifest = createSelector(manifests,
|
|
3096
|
-
// @ts-ignore
|
|
3097
|
-
(manifests) => ({ windows: [], ...manifests?.manifest } ?? { windows: [] }));
|
|
3098
|
-
const staticManifest = createSelector(manifests,
|
|
3099
|
-
// @ts-ignore
|
|
3100
|
-
(manifests) => ({ windows: [], ...manifests?.staticManifest } ?? { windows: [] }));
|
|
3101
|
-
const refreshRates = createSelector(globalManifest, (manifests) => manifests.refreshRates ?? {});
|
|
3102
|
-
const windowManifest = createSelector(globalManifest, rank, (manifest, rank) => manifest.windows[rank] ?? { widgets: [] });
|
|
3103
|
-
const gridLayout = createSelector(windowManifest, (manifest) => (manifest.grid ?? {}).layout ?? DashboardGridLayout.MANUAL);
|
|
3104
|
-
const memoizeWidgetManifest = {};
|
|
3105
|
-
const widgetManifest = (index) => {
|
|
3106
|
-
if (!memoizeWidgetManifest[index]) {
|
|
3107
|
-
memoizeWidgetManifest[index] = createSelector(windowManifest, (windowManifest) => windowManifest.widgets[index] ??
|
|
3108
|
-
{
|
|
3109
|
-
type: 'placeholder',
|
|
3110
|
-
layout: { x: 1, y: 1, width: 1, height: 1 }
|
|
3111
|
-
});
|
|
3112
|
-
}
|
|
3113
|
-
return memoizeWidgetManifest[index];
|
|
3114
|
-
};
|
|
3115
|
-
const manifestsList = createSelector(manifests, (manifests) => manifests.list);
|
|
3116
|
-
const tenants = createSelector(manifests, (manifests) => manifests.tenants ?? []);
|
|
3117
|
-
const targetTenantsIndexes = createSelector(manifests, rank, (manifests, rank) => [
|
|
3118
|
-
NEW_WINDOW_TARGET,
|
|
3119
|
-
...(manifests.tenants ?? []).map((ten, idx) => idx).filter((idx) => idx !== rank)
|
|
3120
|
-
]);
|
|
3121
|
-
const results = createSelector(feature$5, (state) => state?.results);
|
|
3122
|
-
const resultSets = createSelector(results, (results) => results.resultSets ?? {});
|
|
3123
|
-
const resultSetsParams = createSelector(results, (results) => results.resultSetsParams ?? {});
|
|
3124
|
-
const namedQueriesNames = createSelector(resultSets, (state) => Object.keys(state) ?? []);
|
|
3125
|
-
const availableNamedQueries = createSelector(results, (results) => {
|
|
3126
|
-
return [...new Set([...results.availableDatasourceNames, ...Object.keys(results.resultSets)])] ?? [];
|
|
3127
|
-
});
|
|
3128
|
-
const defaultDatasourceNames = createSelector(results, (results) => results.defaultDatasource ?? 'current');
|
|
3129
|
-
const selectedItemIds = createSelector(results, (results) => results.selectedItems ?? []);
|
|
3130
|
-
const objectDetails = createSelector(results, (results) => results.objectDetails ?? {});
|
|
3131
|
-
const quickOrder = createSelector(results, (results) => results.quickOrder ?? {});
|
|
3132
|
-
const address = createSelector(results, (results) => (results.address ?? {}));
|
|
3133
|
-
const allItems = createSelector(results, (results) => Object.keys(results.resultSets)
|
|
3134
|
-
.map((rsKey) => Object.keys(results.resultSets[rsKey].items)
|
|
3135
|
-
.map((classKey) => results.resultSets[rsKey].items[classKey])
|
|
3136
|
-
.reduce((p, c) => [...p, ...c], []))
|
|
3137
|
-
.reduce((p, c) => [...p, ...c], []));
|
|
3138
|
-
const getItemsByIds = (ids) => createSelector(allItems, (items) => items.filter((item) => ids.includes(item.id)));
|
|
3139
|
-
const selectedItems = createSelector(selectedItemIds, allItems, (itemNames, allItems) => itemNames.map((name) => allItems.find((it) => it.id === name)) ?? []);
|
|
3140
|
-
const dashboard = createSelector(feature$5, (state) => state?.dashboard ?? {});
|
|
3141
|
-
const dashboardCellParams = createSelector(dashboard, (dashboard) => dashboard.params ?? {});
|
|
3142
|
-
const dashboardEditionMode = createSelector(dashboard, (dashboard) => dashboard.editionMode ?? false);
|
|
3143
|
-
const namedQueriesUses = createSelector(globalManifest, (manifest) => manifest.windows
|
|
3144
|
-
.map((window, idx) => ({ windowIndex: idx, widgets: window.widgets }))
|
|
3145
|
-
.map(({ windowIndex, widgets }) => widgets.map((widget) => (Array.isArray(widget.datasource) ? widget.datasource : [widget.datasource])
|
|
3146
|
-
.filter((rsName) => rsName !== undefined)
|
|
3147
|
-
.map((rsName) => ({
|
|
3148
|
-
rsName,
|
|
3149
|
-
windowIndex,
|
|
3150
|
-
type: widget.type,
|
|
3151
|
-
layout: widget.layout
|
|
3152
|
-
}))))
|
|
3153
|
-
.reduce((p, c) => [...p, ...c], [])
|
|
3154
|
-
.reduce((p, c) => [...p, ...c], [])
|
|
3155
|
-
.reduce((p, c) => ({ ...p, [c.rsName ?? '']: [...(p[c.rsName ?? ''] || []), { ...c }] }), {}));
|
|
3156
|
-
const presentation = createSelector(feature$5, (state) => state?.presentation);
|
|
3157
|
-
const savePresentationActive = createSelector(presentation, globalManifest, (state, global) => !!state.current && (state.viewMode === ViewMode.CREATION || !equal(global, state.initial)));
|
|
3158
|
-
const filters = createSelector(feature$5, (state) => state?.manifests.manifest.filters ?? {});
|
|
3159
|
-
const datasourceFilters = createSelector(feature$5, (state) => state?.manifests.manifest.filters
|
|
3160
|
-
? state?.manifests.manifest.filters.reduce((obj, filter) => (filter.attributes.forEach((attribute) => (obj[attribute.datasource] || (obj[attribute.datasource] = [])).push({
|
|
3161
|
-
attribute: attribute.id,
|
|
3162
|
-
operator: filter.operator ?? '',
|
|
3163
|
-
value: filter.value
|
|
3164
|
-
})),
|
|
3165
|
-
obj), {})
|
|
3166
|
-
: {});
|
|
3167
|
-
const wmsFeatures = createSelector(feature$5, (state) => state?.wmsFeatures);
|
|
3168
|
-
const DashboardSelectors = {
|
|
3169
|
-
feature: feature$5,
|
|
3170
|
-
rank,
|
|
3171
|
-
currentManifestId,
|
|
3172
|
-
globalManifest,
|
|
3173
|
-
refreshRates,
|
|
3174
|
-
windowManifest,
|
|
3175
|
-
widgetManifest,
|
|
3176
|
-
manifestsList,
|
|
3177
|
-
gridLayout,
|
|
3178
|
-
tenants,
|
|
3179
|
-
resultSets,
|
|
3180
|
-
resultSetsParams,
|
|
3181
|
-
address,
|
|
3182
|
-
namedQueriesNames,
|
|
3183
|
-
namedQueriesUses,
|
|
3184
|
-
availableNamedQueries,
|
|
3185
|
-
defaultDatasourceNames,
|
|
3186
|
-
selectedItemIds,
|
|
3187
|
-
allItems,
|
|
3188
|
-
getItemsByIds,
|
|
3189
|
-
selectedItems,
|
|
3190
|
-
objectDetails,
|
|
3191
|
-
targetTenantsIndexes,
|
|
3192
|
-
dashboard,
|
|
3193
|
-
dashboardCellParams,
|
|
3194
|
-
dashboardEditionMode,
|
|
3195
|
-
staticManifest,
|
|
3196
|
-
quickOrder,
|
|
3197
|
-
presentation,
|
|
3198
|
-
savePresentationActive,
|
|
3199
|
-
filters,
|
|
3200
|
-
datasourceFilters,
|
|
3201
|
-
wmsFeatures
|
|
3202
|
-
};
|
|
3203
|
-
|
|
3204
|
-
class PryTitlePresentationComponent {
|
|
3205
|
-
constructor(store, i18nService) {
|
|
3206
|
-
this.store = store;
|
|
3207
|
-
this.i18nService = i18nService;
|
|
3208
|
-
this.presentationTitle$ = combineLatest([this.store.select(DashboardSelectors.presentation)]).pipe(map(([presentation]) => {
|
|
3209
|
-
if (presentation.current) {
|
|
3210
|
-
return presentation.current.name;
|
|
3211
|
-
}
|
|
3212
|
-
return this.i18nService.instant('@pry.header.noCurrentPresentation');
|
|
3213
|
-
}));
|
|
3214
|
-
}
|
|
3215
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: PryTitlePresentationComponent, deps: [{ token: i1.Store }, { token: PryI18nService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3216
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.6", type: PryTitlePresentationComponent, selector: "pry-title-presentation", ngImport: i0, template: "<div>\n <h1 class=\"a-h1 a-presentation-title\">{{ presentationTitle$ | async }}</h1>\n</div>\n", dependencies: [{ kind: "pipe", type: i1$1.AsyncPipe, name: "async" }] }); }
|
|
3217
|
-
}
|
|
3218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: PryTitlePresentationComponent, decorators: [{
|
|
3219
|
-
type: Component,
|
|
3220
|
-
args: [{ selector: 'pry-title-presentation', template: "<div>\n <h1 class=\"a-h1 a-presentation-title\">{{ presentationTitle$ | async }}</h1>\n</div>\n" }]
|
|
3221
|
-
}], ctorParameters: function () { return [{ type: i1.Store }, { type: PryI18nService }]; } });
|
|
3222
|
-
|
|
3223
3092
|
const FieldActions = {
|
|
3224
3093
|
load: createAction('[Field] Load Fields'),
|
|
3225
3094
|
loadSuccess: createAction('[Field Api] (bus) Load Fields Success', props()),
|
|
@@ -3242,9 +3111,9 @@ function fieldReducer(state, action) {
|
|
|
3242
3111
|
return internalReducer$2(state, action);
|
|
3243
3112
|
}
|
|
3244
3113
|
|
|
3245
|
-
const feature$
|
|
3246
|
-
const entities$1 = createSelector(feature$
|
|
3247
|
-
const fields = createSelector(feature$
|
|
3114
|
+
const feature$5 = createFeatureSelector(fieldsFeatureKey);
|
|
3115
|
+
const entities$1 = createSelector(feature$5, selectEntities$1);
|
|
3116
|
+
const fields = createSelector(feature$5, selectAll$1);
|
|
3248
3117
|
const memoizeFieldById = {};
|
|
3249
3118
|
const fieldById = (id) => {
|
|
3250
3119
|
if (!memoizeFieldById[id]) {
|
|
@@ -3253,7 +3122,7 @@ const fieldById = (id) => {
|
|
|
3253
3122
|
return memoizeFieldById[id];
|
|
3254
3123
|
};
|
|
3255
3124
|
const FieldSelectors = {
|
|
3256
|
-
feature: feature$
|
|
3125
|
+
feature: feature$5,
|
|
3257
3126
|
entities: entities$1,
|
|
3258
3127
|
fields,
|
|
3259
3128
|
fieldById
|
|
@@ -3744,6 +3613,131 @@ const contextMenuReducer = createReducer(initialContextMenuState, on(ContextMenu
|
|
|
3744
3613
|
from: ''
|
|
3745
3614
|
})));
|
|
3746
3615
|
|
|
3616
|
+
var DashboardGridLayout;
|
|
3617
|
+
(function (DashboardGridLayout) {
|
|
3618
|
+
DashboardGridLayout["FULL"] = "1";
|
|
3619
|
+
DashboardGridLayout["THIRD_VERTICAL"] = "1/3v";
|
|
3620
|
+
DashboardGridLayout["THIRD_HORIZONTAL"] = "1/3h";
|
|
3621
|
+
DashboardGridLayout["HALF_VERTICAL"] = "1/2v";
|
|
3622
|
+
DashboardGridLayout["HALF_HORIZONTAL"] = "1/2h";
|
|
3623
|
+
DashboardGridLayout["QUARTER"] = "1/4";
|
|
3624
|
+
DashboardGridLayout["MANUAL"] = "0";
|
|
3625
|
+
})(DashboardGridLayout || (DashboardGridLayout = {}));
|
|
3626
|
+
|
|
3627
|
+
const NEW_WINDOW_TARGET = -1;
|
|
3628
|
+
const feature$4 = createFeatureSelector('@pry/dashboard');
|
|
3629
|
+
const manifests = createSelector(feature$4, (state) => state?.manifests);
|
|
3630
|
+
const rank = createSelector(manifests, (manifests) => manifests?.tenants.indexOf(manifests.sender));
|
|
3631
|
+
const currentManifestId = createSelector(manifests, (manifests) => manifests.currentId);
|
|
3632
|
+
const globalManifest = createSelector(manifests,
|
|
3633
|
+
// @ts-ignore
|
|
3634
|
+
(manifests) => ({ windows: [], ...manifests?.manifest } ?? { windows: [] }));
|
|
3635
|
+
const staticManifest = createSelector(manifests,
|
|
3636
|
+
// @ts-ignore
|
|
3637
|
+
(manifests) => ({ windows: [], ...manifests?.staticManifest } ?? { windows: [] }));
|
|
3638
|
+
const refreshRates = createSelector(globalManifest, (manifests) => manifests.refreshRates ?? {});
|
|
3639
|
+
const windowManifest = createSelector(globalManifest, rank, (manifest, rank) => manifest.windows[rank] ?? { widgets: [] });
|
|
3640
|
+
const gridLayout = createSelector(windowManifest, (manifest) => (manifest.grid ?? {}).layout ?? DashboardGridLayout.MANUAL);
|
|
3641
|
+
const memoizeWidgetManifest = {};
|
|
3642
|
+
const widgetManifest = (index) => {
|
|
3643
|
+
if (!memoizeWidgetManifest[index]) {
|
|
3644
|
+
memoizeWidgetManifest[index] = createSelector(windowManifest, (windowManifest) => windowManifest.widgets[index] ??
|
|
3645
|
+
{
|
|
3646
|
+
type: 'placeholder',
|
|
3647
|
+
layout: { x: 1, y: 1, width: 1, height: 1 }
|
|
3648
|
+
});
|
|
3649
|
+
}
|
|
3650
|
+
return memoizeWidgetManifest[index];
|
|
3651
|
+
};
|
|
3652
|
+
const manifestsList = createSelector(manifests, (manifests) => manifests.list);
|
|
3653
|
+
const tenants = createSelector(manifests, (manifests) => manifests.tenants ?? []);
|
|
3654
|
+
const targetTenantsIndexes = createSelector(manifests, rank, (manifests, rank) => [
|
|
3655
|
+
NEW_WINDOW_TARGET,
|
|
3656
|
+
...(manifests.tenants ?? []).map((ten, idx) => idx).filter((idx) => idx !== rank)
|
|
3657
|
+
]);
|
|
3658
|
+
const results = createSelector(feature$4, (state) => state?.results);
|
|
3659
|
+
const resultSets = createSelector(results, (results) => results.resultSets ?? {});
|
|
3660
|
+
const resultSetsParams = createSelector(results, (results) => results.resultSetsParams ?? {});
|
|
3661
|
+
const namedQueriesNames = createSelector(resultSets, (state) => Object.keys(state) ?? []);
|
|
3662
|
+
const availableNamedQueries = createSelector(results, (results) => {
|
|
3663
|
+
return [...new Set([...results.availableDatasourceNames, ...Object.keys(results.resultSets)])] ?? [];
|
|
3664
|
+
});
|
|
3665
|
+
const defaultDatasourceNames = createSelector(results, (results) => results.defaultDatasource ?? 'current');
|
|
3666
|
+
const selectedItemIds = createSelector(results, (results) => results.selectedItems ?? []);
|
|
3667
|
+
const objectDetails = createSelector(results, (results) => results.objectDetails ?? {});
|
|
3668
|
+
const quickOrder = createSelector(results, (results) => results.quickOrder ?? {});
|
|
3669
|
+
const address = createSelector(results, (results) => (results.address ?? {}));
|
|
3670
|
+
const allItems = createSelector(results, (results) => Object.keys(results.resultSets)
|
|
3671
|
+
.map((rsKey) => Object.keys(results.resultSets[rsKey].items)
|
|
3672
|
+
.map((classKey) => results.resultSets[rsKey].items[classKey])
|
|
3673
|
+
.reduce((p, c) => [...p, ...c], []))
|
|
3674
|
+
.reduce((p, c) => [...p, ...c], []));
|
|
3675
|
+
const getItemsByIds = (ids) => createSelector(allItems, (items) => items.filter((item) => ids.includes(item.id)));
|
|
3676
|
+
const selectedItems = createSelector(selectedItemIds, allItems, (itemNames, allItems) => itemNames.map((name) => allItems.find((it) => it.id === name)) ?? []);
|
|
3677
|
+
const dashboard = createSelector(feature$4, (state) => state?.dashboard ?? {});
|
|
3678
|
+
const dashboardCellParams = createSelector(dashboard, (dashboard) => dashboard.params ?? {});
|
|
3679
|
+
const dashboardEditionMode = createSelector(dashboard, (dashboard) => dashboard.editionMode ?? false);
|
|
3680
|
+
const namedQueriesUses = createSelector(globalManifest, (manifest) => manifest.windows
|
|
3681
|
+
.map((window, idx) => ({ windowIndex: idx, widgets: window.widgets }))
|
|
3682
|
+
.map(({ windowIndex, widgets }) => widgets.map((widget) => (Array.isArray(widget.datasource) ? widget.datasource : [widget.datasource])
|
|
3683
|
+
.filter((rsName) => rsName !== undefined)
|
|
3684
|
+
.map((rsName) => ({
|
|
3685
|
+
rsName,
|
|
3686
|
+
windowIndex,
|
|
3687
|
+
type: widget.type,
|
|
3688
|
+
layout: widget.layout
|
|
3689
|
+
}))))
|
|
3690
|
+
.reduce((p, c) => [...p, ...c], [])
|
|
3691
|
+
.reduce((p, c) => [...p, ...c], [])
|
|
3692
|
+
.reduce((p, c) => ({ ...p, [c.rsName ?? '']: [...(p[c.rsName ?? ''] || []), { ...c }] }), {}));
|
|
3693
|
+
const presentation = createSelector(feature$4, (state) => state?.presentation);
|
|
3694
|
+
const savePresentationActive = createSelector(presentation, globalManifest, (state, global) => !!state.current && (state.viewMode === ViewMode.CREATION || !equal(global, state.initial)));
|
|
3695
|
+
const filters = createSelector(feature$4, (state) => state?.manifests.manifest.filters ?? {});
|
|
3696
|
+
const datasourceFilters = createSelector(feature$4, (state) => state?.manifests.manifest.filters
|
|
3697
|
+
? state?.manifests.manifest.filters.reduce((obj, filter) => (filter.attributes.forEach((attribute) => (obj[attribute.datasource] || (obj[attribute.datasource] = [])).push({
|
|
3698
|
+
attribute: attribute.id,
|
|
3699
|
+
operator: filter.operator ?? '',
|
|
3700
|
+
value: filter.value
|
|
3701
|
+
})),
|
|
3702
|
+
obj), {})
|
|
3703
|
+
: {});
|
|
3704
|
+
const wmsFeatures = createSelector(feature$4, (state) => state?.wmsFeatures);
|
|
3705
|
+
const DashboardSelectors = {
|
|
3706
|
+
feature: feature$4,
|
|
3707
|
+
rank,
|
|
3708
|
+
currentManifestId,
|
|
3709
|
+
globalManifest,
|
|
3710
|
+
refreshRates,
|
|
3711
|
+
windowManifest,
|
|
3712
|
+
widgetManifest,
|
|
3713
|
+
manifestsList,
|
|
3714
|
+
gridLayout,
|
|
3715
|
+
tenants,
|
|
3716
|
+
resultSets,
|
|
3717
|
+
resultSetsParams,
|
|
3718
|
+
address,
|
|
3719
|
+
namedQueriesNames,
|
|
3720
|
+
namedQueriesUses,
|
|
3721
|
+
availableNamedQueries,
|
|
3722
|
+
defaultDatasourceNames,
|
|
3723
|
+
selectedItemIds,
|
|
3724
|
+
allItems,
|
|
3725
|
+
getItemsByIds,
|
|
3726
|
+
selectedItems,
|
|
3727
|
+
objectDetails,
|
|
3728
|
+
targetTenantsIndexes,
|
|
3729
|
+
dashboard,
|
|
3730
|
+
dashboardCellParams,
|
|
3731
|
+
dashboardEditionMode,
|
|
3732
|
+
staticManifest,
|
|
3733
|
+
quickOrder,
|
|
3734
|
+
presentation,
|
|
3735
|
+
savePresentationActive,
|
|
3736
|
+
filters,
|
|
3737
|
+
datasourceFilters,
|
|
3738
|
+
wmsFeatures
|
|
3739
|
+
};
|
|
3740
|
+
|
|
3747
3741
|
const SearchActions = {
|
|
3748
3742
|
search: createAction('[Search] search', props()),
|
|
3749
3743
|
getDatasourceItems: createAction('[Search] (bus) search named', props()),
|
|
@@ -3929,10 +3923,10 @@ class DataSourceService {
|
|
|
3929
3923
|
.select(ConfigSelectors.refUrl)
|
|
3930
3924
|
.pipe(switchMap((url) => this.httpClient.get(encodeURI(`${url}/dataset-versions`))));
|
|
3931
3925
|
}
|
|
3932
|
-
|
|
3926
|
+
getPreviews(id) {
|
|
3933
3927
|
return this.store
|
|
3934
3928
|
.select(ConfigSelectors.refUrl)
|
|
3935
|
-
.pipe(mergeMap((url) => this.httpClient.get(encodeURI(`${url}/
|
|
3929
|
+
.pipe(mergeMap((url) => this.httpClient.get(encodeURI(`${url}/dataset-versions/id/${id}/previews`))));
|
|
3936
3930
|
}
|
|
3937
3931
|
deactivateDatasetVersion(versionId) {
|
|
3938
3932
|
return this.store
|
|
@@ -4077,7 +4071,7 @@ class DataSourceEffects {
|
|
|
4077
4071
|
})), { dispatch: false });
|
|
4078
4072
|
this.deactivateDatasetVersion$ = createEffect(() => this.actions$.pipe(ofType(DataSourceActions.dataset.deactivateDatasetVersion), switchMap((action) => this.dataSourceService.deactivateDatasetVersion(action.id).pipe(map((datasetVersion) => DataSourceActions.dataset.deactivateDatasetVersionSuccess({ datasetVersion })), catchError((error) => [DataSourceActions.dataset.deactivateDatasetVersionFailure({ error })])))));
|
|
4079
4073
|
this.activateDatasetVersion$ = createEffect(() => this.actions$.pipe(ofType(DataSourceActions.dataset.activateDatasetVersion), switchMap((action) => this.dataSourceService.activateDatasetVersion(action.id).pipe(map((datasetVersion) => DataSourceActions.dataset.activateDatasetVersionSuccess({ datasetVersion })), catchError((error) => [DataSourceActions.dataset.activateDatasetVersionFailure({ error })])))));
|
|
4080
|
-
this.
|
|
4074
|
+
this.previewsGetById$ = createEffect(() => this.actions$.pipe(ofType(DataSourceActions.dataset.previews.getById), switchMap((action) => this.dataSourceService.getPreviews(action.id).pipe(map((previews) => DataSourceActions.dataset.previews.getByIdSuccess({ previews })), catchError((error) => [DataSourceActions.dataset.previews.getByIdFailure({ error })])))));
|
|
4081
4075
|
}
|
|
4082
4076
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DataSourceEffects, deps: [{ token: i1$3.Actions }, { token: SearchService }, { token: DataSourceService }, { token: PrySnackbarService }, { token: PryI18nService }, { token: i1.Store }, { token: PryDialogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4083
4077
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DataSourceEffects }); }
|
|
@@ -4622,8 +4616,7 @@ class PryCoreModule {
|
|
|
4622
4616
|
PryNqColorSelectorComponent,
|
|
4623
4617
|
PryAccessDirective,
|
|
4624
4618
|
PryUploadComponent,
|
|
4625
|
-
PrySelectImageComponent,
|
|
4626
|
-
PryTitlePresentationComponent], imports: [CommonModule,
|
|
4619
|
+
PrySelectImageComponent], imports: [CommonModule,
|
|
4627
4620
|
RouterModule,
|
|
4628
4621
|
HttpClientModule, i1.StoreFeatureModule, i1.StoreFeatureModule, i1.StoreFeatureModule, i1.StoreFeatureModule, i1.StoreFeatureModule, i1.StoreFeatureModule, i1.StoreFeatureModule, i1.StoreFeatureModule, i1.StoreFeatureModule, i1$3.EffectsFeatureModule, i1$3.EffectsFeatureModule, i1$3.EffectsFeatureModule, i1$3.EffectsFeatureModule, i1$3.EffectsFeatureModule, i1$3.EffectsFeatureModule, i1$3.EffectsFeatureModule, i1$3.EffectsFeatureModule, i1$3.EffectsFeatureModule, PryIconModule,
|
|
4629
4622
|
OverlayModule,
|
|
@@ -4638,8 +4631,7 @@ class PryCoreModule {
|
|
|
4638
4631
|
PryNqColorSelectorComponent,
|
|
4639
4632
|
PryAccessDirective,
|
|
4640
4633
|
PryUploadComponent,
|
|
4641
|
-
PrySelectImageComponent
|
|
4642
|
-
PryTitlePresentationComponent] }); }
|
|
4634
|
+
PrySelectImageComponent] }); }
|
|
4643
4635
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: PryCoreModule, providers: [AsyncPipe, TranslateIdPipe, TranslateItemToSymbolPipe], imports: [CommonModule,
|
|
4644
4636
|
RouterModule,
|
|
4645
4637
|
HttpClientModule,
|
|
@@ -4681,8 +4673,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
4681
4673
|
PryNqColorSelectorComponent,
|
|
4682
4674
|
PryAccessDirective,
|
|
4683
4675
|
PryUploadComponent,
|
|
4684
|
-
PrySelectImageComponent
|
|
4685
|
-
PryTitlePresentationComponent
|
|
4676
|
+
PrySelectImageComponent
|
|
4686
4677
|
],
|
|
4687
4678
|
imports: [
|
|
4688
4679
|
CommonModule,
|
|
@@ -4723,8 +4714,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
4723
4714
|
PryNqColorSelectorComponent,
|
|
4724
4715
|
PryAccessDirective,
|
|
4725
4716
|
PryUploadComponent,
|
|
4726
|
-
PrySelectImageComponent
|
|
4727
|
-
PryTitlePresentationComponent
|
|
4717
|
+
PrySelectImageComponent
|
|
4728
4718
|
]
|
|
4729
4719
|
}]
|
|
4730
4720
|
}], ctorParameters: function () { return [{ type: PryI18nService }]; } });
|
|
@@ -9243,12 +9233,7 @@ class ManifestService {
|
|
|
9243
9233
|
image,
|
|
9244
9234
|
visibility,
|
|
9245
9235
|
cover,
|
|
9246
|
-
|
|
9247
|
-
...new Set(manifest.windows
|
|
9248
|
-
.map((window) => window.widgets.map((widget) => widget.datasource))
|
|
9249
|
-
.flat(3)
|
|
9250
|
-
.filter((dataset) => !!dataset))
|
|
9251
|
-
]
|
|
9236
|
+
datasource: ManifestService.getDatasourcesUsedByManifest(manifest)
|
|
9252
9237
|
})));
|
|
9253
9238
|
}
|
|
9254
9239
|
delete(id) {
|
|
@@ -9271,6 +9256,14 @@ class ManifestService {
|
|
|
9271
9256
|
}
|
|
9272
9257
|
}));
|
|
9273
9258
|
}
|
|
9259
|
+
static getDatasourcesUsedByManifest(manifest) {
|
|
9260
|
+
return [
|
|
9261
|
+
...new Set(manifest.windows
|
|
9262
|
+
.map((window) => window.widgets.map((widget) => widget.datasource))
|
|
9263
|
+
.flat(3)
|
|
9264
|
+
.filter((dataset) => !!dataset))
|
|
9265
|
+
];
|
|
9266
|
+
}
|
|
9274
9267
|
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 }); }
|
|
9275
9268
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ManifestService, providedIn: 'root' }); }
|
|
9276
9269
|
}
|
|
@@ -10670,5 +10663,5 @@ function filterLoader(module, prop) {
|
|
|
10670
10663
|
* Generated bundle index. Do not edit.
|
|
10671
10664
|
*/
|
|
10672
10665
|
|
|
10673
|
-
export { 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, DateRangeHighlightPipe, DateUtils, DefaultTooltipComponent, DefaultViewGuard, ENV_OPTIONS, EXPLORE_NAMED_QUERY_ID, FIELD_OPTIONS, FIELD_UUID, FILTERS_DOMAIN, FILTER_DEFINITION, FieldActions, FieldSelectors, FieldService, FieldType, FilterFactoryService, FilterInstanciatorComponent, GeoMetadata, GeocodingService, 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, 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,
|
|
10666
|
+
export { 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, DateRangeHighlightPipe, DateUtils, DefaultTooltipComponent, DefaultViewGuard, ENV_OPTIONS, EXPLORE_NAMED_QUERY_ID, FIELD_OPTIONS, FIELD_UUID, FILTERS_DOMAIN, FILTER_DEFINITION, FieldActions, FieldSelectors, FieldService, FieldType, FilterFactoryService, FilterInstanciatorComponent, GeoMetadata, GeocodingService, 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, 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, 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, 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, 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 };
|
|
10674
10667
|
//# sourceMappingURL=provoly-dashboard.mjs.map
|