@provoly/dashboard 0.13.7 → 0.13.9
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-dataset/admin-select-dataset/admin-select-dataset.component.d.ts +4 -4
- package/admin/components/admin-dataset/store/admin-dataset.actions.d.ts +3 -3
- package/assets/svgs/layers.svg +2 -0
- package/esm2022/admin/components/admin-classes/admin-classes-customize/tooltip/admin-classes-customize-tooltip.component.mjs +3 -3
- package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +2 -2
- package/esm2022/admin/components/admin-dataset/store/admin-dataset.actions.mjs +1 -1
- package/esm2022/lib/core/components/overlay/dialog-confirm.component.mjs +5 -12
- package/esm2022/lib/core/components/overlay/overlay.module.mjs +5 -4
- package/esm2022/lib/core/components/select/select.component.mjs +2 -2
- package/esm2022/lib/core/components/share/share.component.mjs +3 -3
- package/esm2022/lib/core/model/admin-api.model.mjs +1 -1
- package/esm2022/lib/core/model/dataset.interface.mjs +1 -1
- package/esm2022/lib/core/model/display-options.interface.mjs +4 -2
- package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
- package/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
- package/esm2022/lib/core/store/config/config.actions.mjs +2 -1
- package/esm2022/lib/core/store/config/config.effects.mjs +25 -4
- package/esm2022/lib/core/store/data-source/data-source.actions.mjs +1 -1
- package/esm2022/lib/core/store/data-source/data-source.effects.mjs +1 -1
- package/esm2022/lib/core/store/data-source/data-source.model.mjs +1 -1
- package/esm2022/lib/core/store/data-source/data-source.reducer.mjs +1 -1
- package/esm2022/lib/core/store/data-source/data-source.service.mjs +1 -1
- package/esm2022/lib/dashboard/components/context-menu/context-menu.component.mjs +3 -7
- package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +1 -1
- package/esm2022/lib/dashboard/components/widgets/settings/settings.component.mjs +6 -3
- package/esm2022/lib/dashboard/public-api.mjs +2 -1
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +2 -3
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +25 -11
- package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +2 -11
- package/esm2022/lib/dashboard/store/dashboard.selectors.mjs +3 -5
- package/esm2022/lib/dashboard/store/manifest-utils.class.mjs +11 -0
- package/esm2022/lib/dashboard/store/manifest.service.mjs +3 -10
- package/esm2022/lib/dashboard/tooltip/components/default/default.tooltip.component.mjs +5 -4
- package/esm2022/pipeline/components/pipeline-list/pipeline-list.component.mjs +5 -8
- package/esm2022/presentation/components/presentation.component.mjs +5 -42
- package/esm2022/presentation/presentation.module.mjs +8 -4
- package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +9 -65
- package/esm2022/search/components/save-query/save-query.component.mjs +5 -8
- package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +3 -3
- package/esm2022/toolbox/components/refresh-datasets/refresh-datasets.component.mjs +3 -3
- package/esm2022/toolbox/components/select-grid-layout/select-grid-layout.component.mjs +5 -16
- package/esm2022/toolbox/toolbox.module.mjs +8 -4
- package/esm2022/tooltips/attribute/attribute-tooltip.component.mjs +3 -3
- package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +3 -3
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +90 -26
- package/esm2022/widgets/widget-map/i18n/en.translations.mjs +5 -2
- package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +5 -2
- package/esm2022/widgets/widget-map/interaction/interaction-manager.class.mjs +2 -36
- package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
- package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +3 -3
- package/fesm2022/provoly-dashboard-admin.mjs +2 -2
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-pipeline.mjs +4 -7
- package/fesm2022/provoly-dashboard-pipeline.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +11 -44
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +9 -65
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-search.mjs +4 -7
- package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +14 -21
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-tooltips-attribute.mjs +2 -2
- package/fesm2022/provoly-dashboard-tooltips-attribute.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +103 -129
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +153 -135
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/components/overlay/overlay.module.d.ts +2 -1
- package/lib/core/model/admin-api.model.d.ts +1 -1
- package/lib/core/model/dataset.interface.d.ts +0 -10
- package/lib/core/model/display-options.interface.d.ts +1 -0
- package/lib/core/model/manifest.interface.d.ts +2 -0
- package/lib/core/model/widget-map-manifest.interface.d.ts +1 -0
- package/lib/core/store/config/config.actions.d.ts +5 -0
- package/lib/core/store/config/config.effects.d.ts +6 -1
- package/lib/core/store/data-source/data-source.actions.d.ts +2 -2
- package/lib/core/store/data-source/data-source.effects.d.ts +2 -3
- package/lib/core/store/data-source/data-source.model.d.ts +11 -3
- package/lib/core/store/data-source/data-source.reducer.d.ts +2 -2
- package/lib/core/store/data-source/data-source.selectors.d.ts +5 -5
- package/lib/core/store/data-source/data-source.service.d.ts +4 -4
- package/lib/dashboard/components/context-menu/context-menu.component.d.ts +0 -1
- package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts +1 -2
- package/lib/dashboard/components/widgets/settings/settings.component.d.ts +1 -0
- package/lib/dashboard/public-api.d.ts +1 -0
- package/lib/dashboard/store/dashboard.actions.d.ts +6 -17
- package/lib/dashboard/store/dashboard.effects.d.ts +6 -7
- package/lib/dashboard/store/dashboard.reducers.d.ts +1 -5
- package/lib/dashboard/store/dashboard.selectors.d.ts +0 -57
- package/lib/dashboard/store/manifest-utils.class.d.ts +4 -0
- package/lib/dashboard/store/manifest.service.d.ts +0 -1
- package/package.json +25 -25
- package/pipeline/components/pipeline-list/pipeline-list.component.d.ts +1 -2
- package/presentation/components/presentation.component.d.ts +0 -5
- package/presentation/presentation.module.d.ts +2 -1
- package/restitution/components/restitution-catalog/restitution-catalog.component.d.ts +4 -15
- package/schematics/ng-add/index.js +0 -2
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-update/version-0-13/index.js +18 -1
- package/schematics/ng-update/version-0-13/index.js.map +1 -1
- package/schematics/ng-update/version-0-13/index.spec.js +8 -1
- package/schematics/ng-update/version-0-13/index.spec.js.map +1 -1
- package/search/components/save-query/save-query.component.d.ts +1 -2
- package/styles/components/_m-tooltip.scss +18 -2
- package/styles-theme/components-theme/_m-tooltip.theme.scss +0 -12
- package/toolbox/components/select-grid-layout/select-grid-layout.component.d.ts +0 -4
- package/toolbox/toolbox.module.d.ts +2 -1
- package/widgets/widget-map/component/widget-map.component.d.ts +16 -3
- package/widgets/widget-map/i18n/en.translations.d.ts +3 -0
- package/widgets/widget-map/i18n/fr.translations.d.ts +3 -0
- package/widgets/widget-map/interaction/interaction-manager.class.d.ts +3 -8
- package/widgets/widget-map/style/_o-layer-legend.scss +45 -0
- package/widgets/widget-map/style/_o-widget-map.scss +0 -1
- package/esm2022/widgets/widget-map/search-bar/search-bar.control.mjs +0 -66
- package/widgets/widget-map/search-bar/search-bar.control.d.ts +0 -27
|
@@ -10,10 +10,11 @@ import * as i7 from "@provoly/dashboard/components/sinceDate";
|
|
|
10
10
|
import * as i8 from "@provoly/dashboard/toolbox";
|
|
11
11
|
import * as i9 from "@provoly/dashboard/components/checkbox";
|
|
12
12
|
import * as i10 from "@angular/common";
|
|
13
|
+
import * as i11 from "@angular/cdk/a11y";
|
|
13
14
|
export declare class PryPresentationModule {
|
|
14
15
|
private pryTranslateService;
|
|
15
16
|
constructor(pryTranslateService: PryI18nService);
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryPresentationModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PryPresentationModule, [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent], [typeof i5.PryIconModule, typeof i5.PryCoreModule, typeof i5.PryDashboardModule, typeof i6.ReactiveFormsModule, typeof i5.PrySelectModule, typeof i7.PrySinceDateModule, typeof i5.PryShareModule, typeof i6.FormsModule, typeof i5.PryOverlayModule, typeof i5.PryI18nModule, typeof i8.PryToolboxModule, typeof i9.PryCheckboxModule, typeof i10.CommonModule], [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent]>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PryPresentationModule, [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent], [typeof i5.PryIconModule, typeof i5.PryCoreModule, typeof i5.PryDashboardModule, typeof i6.ReactiveFormsModule, typeof i5.PrySelectModule, typeof i7.PrySinceDateModule, typeof i5.PryShareModule, typeof i6.FormsModule, typeof i5.PryOverlayModule, typeof i5.PryI18nModule, typeof i8.PryToolboxModule, typeof i9.PryCheckboxModule, typeof i10.CommonModule, typeof i11.A11yModule], [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent]>;
|
|
18
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<PryPresentationModule>;
|
|
19
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import {
|
|
2
|
+
import { ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
4
|
import { PryVisibilityType, ViewMode, Widget } from '@provoly/dashboard';
|
|
5
5
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
@@ -11,15 +11,7 @@ export declare class PryRestitutionCatalogComponent {
|
|
|
11
11
|
restitutions$: Observable<Widget[]>;
|
|
12
12
|
search$: BehaviorSubject<string>;
|
|
13
13
|
filteredRestitution$: Observable<Widget[]>;
|
|
14
|
-
templateModal: TemplateRef<any>;
|
|
15
|
-
openModal: ElementRef<HTMLButtonElement>;
|
|
16
|
-
cancelRemove: ElementRef<HTMLButtonElement>;
|
|
17
|
-
cross: ElementRef<HTMLButtonElement>;
|
|
18
|
-
confirm: ElementRef<HTMLButtonElement>;
|
|
19
|
-
private confirmRemoveRef;
|
|
20
14
|
selectedItem?: Element | null;
|
|
21
|
-
modalOpen: boolean;
|
|
22
|
-
isOverlayOpen: boolean;
|
|
23
15
|
mode: typeof ViewMode;
|
|
24
16
|
selectedMode: ViewMode;
|
|
25
17
|
selectedRestitution: Widget | null;
|
|
@@ -29,12 +21,9 @@ export declare class PryRestitutionCatalogComponent {
|
|
|
29
21
|
selectMode(newMode: ViewMode): void;
|
|
30
22
|
selectRestitution(restitution: Widget): void;
|
|
31
23
|
closeRestitution($event: void): void;
|
|
32
|
-
deleteRestitution(
|
|
24
|
+
deleteRestitution(id: string): void;
|
|
33
25
|
editRestitution(restitution: Widget): void;
|
|
34
|
-
|
|
35
|
-
cancelRemoveConfirm(): void;
|
|
36
|
-
focusCrossElement(): void;
|
|
37
|
-
focusValidation(): void;
|
|
26
|
+
focusElement(element: HTMLButtonElement): void;
|
|
38
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryRestitutionCatalogComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionCatalogComponent, "pry-restitution-catalog", never, {
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionCatalogComponent, "pry-restitution-catalog", never, {}, {}, never, never, false, never>;
|
|
40
29
|
}
|
|
@@ -38,8 +38,6 @@ function addDependencies(tree, options) {
|
|
|
38
38
|
if (options.widgets.includes('widget-map')) {
|
|
39
39
|
console.log('...Adding provoly dependencies for map');
|
|
40
40
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^7.0.0', name: 'ol' });
|
|
41
|
-
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^4.1.0', name: 'ol-layerswitcher' });
|
|
42
|
-
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^10.6.0', name: 'ol-mapbox-style' });
|
|
43
41
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^10.6.0', name: 'ol-mapbox-style' });
|
|
44
42
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^2.9.0', name: 'proj4' });
|
|
45
43
|
dependencies.push({ type: dependencies_1.NodeDependencyType.Default, version: '^4.0.2', name: 'shpjs' });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/provoly/dashboard/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAsG;AACtG,4DAA0E;AAC1E,yDAA4D;AAC5D,2EAAwG;AAGxG,SAAwB,YAAY,CAAC,OAA4B;IAC/D,OAAO,CAAO,IAAI,EAAE,OAAO,EAAE,EAAE;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;QAC5D,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC/B,OAAO,CAAC,MAAM,CAAC,IA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
function changeTypeDatasetMetadataToMetadataValue() {
|
|
24
|
+
return function (tree, context) {
|
|
25
|
+
tree.visit((path, entry) => {
|
|
26
|
+
if (path.includes('.ts')) {
|
|
27
|
+
const buffer = tree.read(path);
|
|
28
|
+
if (buffer) {
|
|
29
|
+
tree.overwrite(path, buffer.toString().replace(/DatasetMetadata/g, 'MetadataValue'));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
return undefined;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
23
36
|
function updateTo0_13() {
|
|
24
37
|
return (_tree, context) => {
|
|
25
38
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
26
|
-
return (0, schematics_1.chain)([
|
|
39
|
+
return (0, schematics_1.chain)([
|
|
40
|
+
removeWidgetMapHoverOption(),
|
|
41
|
+
changeTypeDatasetMetadataToMetadataValue(),
|
|
42
|
+
(0, complete_function_1.onMigrationComplete)('0.13', context)
|
|
43
|
+
]);
|
|
27
44
|
};
|
|
28
45
|
}
|
|
29
46
|
exports.updateTo0_13 = updateTo0_13;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/version-0-13/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiF;AACjF,4DAA0E;AAC1E,kEAAiE;AAEjE,SAAS,0BAA0B;IACjC,OAAO,UAAU,IAAU,EAAE,OAAyB;QACpD,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACzB,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBAClD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC/B,IAAI,MAAM,EAAE;oBACV,IAAI,CAAC,SAAS,CACZ,IAAI,EACJ,MAAM;yBACH,QAAQ,EAAE;yBACV,OAAO,CAAC,gCAAgC,EAAE,yBAAyB,CAAC;yBACpE,OAAO,CAAC,0CAA0C,EAAE,mCAAmC,CAAC,CAC5F,CAAC;iBACH;aACF;QACH,CAAC,CAAC,CAAC;QACH,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,YAAY;IAC1B,OAAO,CAAC,KAAW,EAAE,OAAyB,EAAQ,EAAE;QACtD,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAC9C,OAAO,IAAA,kBAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/version-0-13/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiF;AACjF,4DAA0E;AAC1E,kEAAiE;AAEjE,SAAS,0BAA0B;IACjC,OAAO,UAAU,IAAU,EAAE,OAAyB;QACpD,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACzB,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBAClD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC/B,IAAI,MAAM,EAAE;oBACV,IAAI,CAAC,SAAS,CACZ,IAAI,EACJ,MAAM;yBACH,QAAQ,EAAE;yBACV,OAAO,CAAC,gCAAgC,EAAE,yBAAyB,CAAC;yBACpE,OAAO,CAAC,0CAA0C,EAAE,mCAAmC,CAAC,CAC5F,CAAC;iBACH;aACF;QACH,CAAC,CAAC,CAAC;QACH,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,wCAAwC;IAC/C,OAAO,UAAU,IAAU,EAAE,OAAyB;QACpD,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACzB,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;gBACxB,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC/B,IAAI,MAAM,EAAE;oBACV,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,kBAAkB,EAAE,eAAe,CAAC,CAAC,CAAC;iBACtF;aACF;QACH,CAAC,CAAC,CAAC;QACH,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,YAAY;IAC1B,OAAO,CAAC,KAAW,EAAE,OAAyB,EAAQ,EAAE;QACtD,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAC9C,OAAO,IAAA,kBAAK,EAAC;YACX,0BAA0B,EAAE;YAC5B,wCAAwC,EAAE;YAC1C,IAAA,uCAAmB,EAAC,MAAM,EAAE,OAAO,CAAC;SACrC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AATD,oCASC"}
|
|
@@ -22,7 +22,7 @@ describe(schematicName, () => {
|
|
|
22
22
|
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
23
|
tree = yield runner.runExternalSchematic('@schematics/angular', 'ng-new', { name: 'test-project', version: '0.0.0', directory: '.' }, new testing_1.UnitTestTree(schematics_1.Tree.empty()));
|
|
24
24
|
}));
|
|
25
|
-
it(`should
|
|
25
|
+
it(`should remove click option`, () => __awaiter(void 0, void 0, void 0, function* () {
|
|
26
26
|
tree.create('/app-routing.module.ts', `const routes: Routes = [
|
|
27
27
|
/* In a real app, do not make routes like these ones */
|
|
28
28
|
{
|
|
@@ -163,5 +163,12 @@ describe(schematicName, () => {
|
|
|
163
163
|
expect(actual).toMatch(/tooltipMode\s*:\s*'click'/);
|
|
164
164
|
expect(actual).toMatch(/tooltipMode\s*:\s*TooltipMode.CLICK/);
|
|
165
165
|
}));
|
|
166
|
+
it(`should change type`, () => __awaiter(void 0, void 0, void 0, function* () {
|
|
167
|
+
tree.create('/some-app.component.ts', `const datasetsMeta : DatasetMetadata[] = [];`);
|
|
168
|
+
yield runner.runSchematic('migration-v0.13', {}, tree);
|
|
169
|
+
const actual = tree.readContent('/some-app.component.ts');
|
|
170
|
+
expect(actual).not.toMatch(/DatasetMetadata/);
|
|
171
|
+
expect(actual).toMatch(/MetadataValue/);
|
|
172
|
+
}));
|
|
166
173
|
});
|
|
167
174
|
//# sourceMappingURL=index.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/version-0-13/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2DAAkD;AAClD,gEAAuF;AACvF,gDAAwB;AAExB,MAAM,aAAa,GAAG,WAAW,CAAC;AAClC,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC,CAAC;IACnG,IAAI,IAAkB,CAAC;IAEvB,UAAU,CAAC,GAAS,EAAE;QACpB,IAAI,GAAG,MAAM,MAAM,CAAC,oBAAoB,CACtC,qBAAqB,EACrB,QAAQ,EACR,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,EAC1D,IAAI,sBAAY,CAAC,iBAAI,CAAC,KAAK,EAAE,CAAC,CAC/B,CAAC;IACJ,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/version-0-13/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2DAAkD;AAClD,gEAAuF;AACvF,gDAAwB;AAExB,MAAM,aAAa,GA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AC;IAEH,EAAE,CAAC,oBAAoB,EAAE,GAAS,EAAE;QAClC,IAAI,CAAC,MAAM,CAAC,wBAAwB,EAAE,8CAA8C,CAAC,CAAC;QAEtF,MAAM,MAAM,CAAC,YAAY,CAAC,iBAAiB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QACvD,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;QAC1D,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QAC9C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -28,8 +28,7 @@ export declare class PrySaveQueryComponent implements OnInit {
|
|
|
28
28
|
});
|
|
29
29
|
ngOnInit(): void;
|
|
30
30
|
onSave(): void;
|
|
31
|
-
|
|
32
|
-
focusValidation(): void;
|
|
31
|
+
focusElement(element: HTMLButtonElement): void;
|
|
33
32
|
onClose(): void;
|
|
34
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrySaveQueryComponent, never>;
|
|
35
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<PrySaveQueryComponent, "pry-save-query", never, {}, {}, never, never, false, never>;
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
overflow: auto;
|
|
26
26
|
justify-content: flex-start;
|
|
27
27
|
width: 300px;
|
|
28
|
-
|
|
29
|
-
min-height: 30px;
|
|
28
|
+
height: 200px;
|
|
30
29
|
padding: toRem(10) toRem(15);
|
|
31
30
|
background-color: #ecedf4;
|
|
32
31
|
box-shadow: 2px 3px 10px 2px rgba(0, 0, 0, 0.2);
|
|
@@ -43,6 +42,23 @@
|
|
|
43
42
|
background: transparent;
|
|
44
43
|
}
|
|
45
44
|
}
|
|
45
|
+
|
|
46
|
+
&__header {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
gap: 5px;
|
|
50
|
+
width: 100%;
|
|
51
|
+
|
|
52
|
+
> p {
|
|
53
|
+
flex: 1 1;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__container {
|
|
58
|
+
> * {
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
46
62
|
}
|
|
47
63
|
|
|
48
64
|
&--example {
|
|
@@ -22,18 +22,6 @@
|
|
|
22
22
|
&__item {
|
|
23
23
|
width: 100%;
|
|
24
24
|
|
|
25
|
-
&:not(:last-child) {
|
|
26
|
-
&:after {
|
|
27
|
-
content: '';
|
|
28
|
-
display: block;
|
|
29
|
-
width: 100%;
|
|
30
|
-
height: 1px;
|
|
31
|
-
margin-top: toRem(7);
|
|
32
|
-
margin-bottom: toRem(6);
|
|
33
|
-
background-color: themed($theme-map, 'color', 'grey', 400);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
25
|
&__content {
|
|
38
26
|
gap: toRem(10);
|
|
39
27
|
|
|
@@ -18,8 +18,6 @@ export declare class SelectGridLayoutComponent extends ToolboxActionComponent {
|
|
|
18
18
|
template: TemplateRef<any>;
|
|
19
19
|
firstButton: ElementRef<HTMLButtonElement>;
|
|
20
20
|
openModal: ElementRef<HTMLButtonElement>;
|
|
21
|
-
cross: ElementRef<HTMLButtonElement>;
|
|
22
|
-
confirm: ElementRef<HTMLButtonElement>;
|
|
23
21
|
modalOpened: boolean;
|
|
24
22
|
overlayRef?: OverlayRef;
|
|
25
23
|
constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef);
|
|
@@ -27,8 +25,6 @@ export declare class SelectGridLayoutComponent extends ToolboxActionComponent {
|
|
|
27
25
|
toggleGridChoiceModal(): void;
|
|
28
26
|
openWithTemplate(): void;
|
|
29
27
|
validate(): void;
|
|
30
|
-
focusCrossElement(): void;
|
|
31
|
-
focusValidation(): void;
|
|
32
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectGridLayoutComponent, never>;
|
|
33
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectGridLayoutComponent, "pry-select-grid-layout", never, {}, {}, never, never, false, never>;
|
|
34
30
|
}
|
|
@@ -20,8 +20,9 @@ import * as i18 from "@provoly/dashboard";
|
|
|
20
20
|
import * as i19 from "@provoly/dashboard/components/checkbox";
|
|
21
21
|
import * as i20 from "@provoly/dashboard/components/stepper";
|
|
22
22
|
import * as i21 from "@angular/cdk/drag-drop";
|
|
23
|
+
import * as i22 from "@angular/cdk/a11y";
|
|
23
24
|
export declare class PryToolboxModule {
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryToolboxModule, never>;
|
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PryToolboxModule, [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent], [typeof i15.CommonModule, typeof i16.FormsModule, typeof i17.OverlayModule, typeof i18.PryOverlayModule, typeof i18.PryCoreModule, typeof i18.PryDashboardModule, typeof i18.PrySelectModule, typeof i18.PryIconModule, typeof i19.PryCheckboxModule, typeof i18.PryToggleModule, typeof i20.PryStepperModule, typeof i18.PryShareModule, typeof i18.PryI18nModule, typeof i21.CdkDropList, typeof i21.CdkDrag, typeof i21.CdkDragHandle], [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent]>;
|
|
26
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PryToolboxModule, [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent], [typeof i15.CommonModule, typeof i16.FormsModule, typeof i17.OverlayModule, typeof i18.PryOverlayModule, typeof i18.PryCoreModule, typeof i18.PryDashboardModule, typeof i18.PrySelectModule, typeof i18.PryIconModule, typeof i19.PryCheckboxModule, typeof i18.PryToggleModule, typeof i20.PryStepperModule, typeof i18.PryShareModule, typeof i18.PryI18nModule, typeof i21.CdkDropList, typeof i21.CdkDrag, typeof i21.CdkDragHandle, typeof i22.A11yModule], [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent]>;
|
|
26
27
|
static ɵinj: i0.ɵɵInjectorDeclaration<PryToolboxModule>;
|
|
27
28
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Overlay as cdkOverlay } from '@angular/cdk/overlay';
|
|
2
2
|
import { AfterViewInit, ComponentRef, ElementRef, Injector, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
|
-
import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field,
|
|
4
|
+
import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
|
|
5
5
|
import { Map } from 'ol';
|
|
6
6
|
import { Geometry } from 'ol/geom';
|
|
7
7
|
import BaseLayer from 'ol/layer/Base';
|
|
@@ -14,11 +14,11 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
14
14
|
import { InteractionManager } from '../interaction/interaction-manager.class';
|
|
15
15
|
import { WidgetMapLayerService } from './widget-map-layer.service';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
|
+
export declare const TOOLTIP_PADDING = 15;
|
|
17
18
|
export declare class WidgetMapComponent extends DataWidgetComponent implements AfterViewInit {
|
|
18
19
|
private snackBar;
|
|
19
20
|
translateService: PryI18nService;
|
|
20
21
|
private tooltipFactoryService;
|
|
21
|
-
geocodingService: GeocodingService;
|
|
22
22
|
private overlay;
|
|
23
23
|
private viewContainerRef;
|
|
24
24
|
private symbolService;
|
|
@@ -59,9 +59,11 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
59
59
|
classicFeatures$: BehaviorSubject<any>;
|
|
60
60
|
geoServerLayerDescriptions$: Observable<MapGeoServerLayerOptions[]>;
|
|
61
61
|
legendTabOpen: boolean;
|
|
62
|
+
layersTabOpen: boolean;
|
|
62
63
|
legendTab: number;
|
|
63
64
|
legendLayers$: Observable<(MapGeoServerLayerOptions | MapWMSLayerLayerOptions)[]>;
|
|
64
65
|
legendTop$: Observable<number>;
|
|
66
|
+
layersTop$: Observable<number>;
|
|
65
67
|
legendHeight$: Observable<number>;
|
|
66
68
|
imageNotProvided: boolean[];
|
|
67
69
|
basicActions$: Observable<('click' | 'lasso' | 'rectangle' | 'zoom' | 'move' | 'export' | 'upload')[]>;
|
|
@@ -77,7 +79,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
77
79
|
mapStyle$: Observable<string>;
|
|
78
80
|
interactionManager: InteractionManager;
|
|
79
81
|
mapStyleLayer$: Observable<VectorTileLayer[]>;
|
|
80
|
-
|
|
82
|
+
tooltipIndex: number;
|
|
83
|
+
tooltipNumber: number;
|
|
84
|
+
constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, overlay: cdkOverlay, viewContainerRef: ViewContainerRef, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, el: ElementRef);
|
|
81
85
|
initInteractionManager(): InteractionManager;
|
|
82
86
|
ngAfterViewInit(): void;
|
|
83
87
|
initResultSet$(): Observable<import("@provoly/dashboard").ResultSet>;
|
|
@@ -121,10 +125,19 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
121
125
|
hideExportType(): void;
|
|
122
126
|
getWMSLayers(): import("ol/layer/Layer").default<import("ol/source/Source").default, import("ol/renderer/Layer").default<any>>[];
|
|
123
127
|
isLayerRendered(layer: any): boolean;
|
|
128
|
+
isLayerVisible(layer: any): boolean;
|
|
124
129
|
getFeatureFromServer(wmsLayers: any[], pixel: Pixel): void;
|
|
125
130
|
changeWmsClass($event: any, layer: MapWMSLayerLayerOptions): void;
|
|
126
131
|
toggleLegend(index: number): void;
|
|
127
132
|
toggleLegendWindow(): void;
|
|
133
|
+
toggleLayersWindow(): void;
|
|
134
|
+
tooltipMove(number: number): void;
|
|
135
|
+
tooltipCanMove(number: number): boolean;
|
|
136
|
+
private setStyleAsync;
|
|
137
|
+
get mapLayers(): BaseLayer[];
|
|
138
|
+
changeVisibility(layer: BaseLayer): void;
|
|
139
|
+
changeSingleLayer($event: any): void;
|
|
140
|
+
get layerVisibleIdx(): number;
|
|
128
141
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, never>;
|
|
129
142
|
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetMapComponent, "pry-widget-map", never, {}, {}, never, never, false, never>;
|
|
130
143
|
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { MapBrowserEvent, Overlay } from 'ol';
|
|
2
|
-
import LayerSwitcher from 'ol-layerswitcher';
|
|
3
2
|
import { ScaleLine } from 'ol/control';
|
|
4
|
-
import { WidgetMapComponent } from '../component/widget-map.component';
|
|
5
|
-
import { SearchBarControl } from '../search-bar/search-bar.control';
|
|
3
|
+
import type { WidgetMapComponent } from '../component/widget-map.component';
|
|
6
4
|
import { SelectionInteraction } from './selection-interaction.class';
|
|
7
5
|
export declare class InteractionManager {
|
|
8
6
|
interactionPopupOverlay?: Overlay;
|
|
9
|
-
private component;
|
|
10
|
-
searchBarControl?: SearchBarControl;
|
|
11
|
-
layerSwitchControl?: LayerSwitcher;
|
|
12
7
|
scaleControl?: ScaleLine;
|
|
13
8
|
selectionInteraction: SelectionInteraction;
|
|
9
|
+
tooltipEvent?: MapBrowserEvent<MouseEvent>;
|
|
10
|
+
private component;
|
|
14
11
|
init(component: WidgetMapComponent): this;
|
|
15
12
|
listeners: {
|
|
16
13
|
contextMenu: (e: MouseEvent) => void;
|
|
@@ -21,7 +18,5 @@ export declare class InteractionManager {
|
|
|
21
18
|
private addDropInteraction;
|
|
22
19
|
private addOverlayOnInteraction;
|
|
23
20
|
private addScaleControl;
|
|
24
|
-
private addSearchBarControl;
|
|
25
|
-
private addLayerSwitcher;
|
|
26
21
|
private addUpdateZoomAndCenter;
|
|
27
22
|
}
|
|
@@ -41,3 +41,48 @@
|
|
|
41
41
|
color: #c74646;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
+
|
|
45
|
+
.m-layer-switcher {
|
|
46
|
+
z-index: 2;
|
|
47
|
+
left: toRem(8);
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
|
|
50
|
+
&.ol-control {
|
|
51
|
+
border: 1px solid #bccad8;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
button {
|
|
55
|
+
background-color: #fafafa !important;
|
|
56
|
+
color: black;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.-hidden {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&__toggle {
|
|
64
|
+
width: toRem(30);
|
|
65
|
+
height: toRem(30);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&__title {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: row;
|
|
71
|
+
background-color: white;
|
|
72
|
+
justify-content: space-between;
|
|
73
|
+
gap: toRem(10);
|
|
74
|
+
margin-left: toRem(35);
|
|
75
|
+
padding: 5px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&__image {
|
|
79
|
+
background: white;
|
|
80
|
+
overflow: scroll;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&__error {
|
|
84
|
+
font-style: italic;
|
|
85
|
+
color: #c74646;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Control } from 'ol/control';
|
|
2
|
-
import BaseEvent from 'ol/events/Event';
|
|
3
|
-
import { fromLonLat } from 'ol/proj';
|
|
4
|
-
export class AddressSearchedEvent extends BaseEvent {
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
constructor({ type, coordinates, address, latLon, query }) {
|
|
7
|
-
super(type);
|
|
8
|
-
this.coordinates = coordinates;
|
|
9
|
-
this.address = address;
|
|
10
|
-
this.latLon = latLon;
|
|
11
|
-
this.query = query;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export class SearchBarControl extends Control {
|
|
15
|
-
constructor(opt_options) {
|
|
16
|
-
const options = opt_options || {};
|
|
17
|
-
const button = document.createElement('button');
|
|
18
|
-
button.innerHTML = '<div></div>';
|
|
19
|
-
const element = document.createElement('div');
|
|
20
|
-
element.className = 'ol-searchbar ol-unselectable ol-control';
|
|
21
|
-
element.appendChild(button);
|
|
22
|
-
const input = document.createElement('input');
|
|
23
|
-
input.type = 'text';
|
|
24
|
-
input.placeholder = '1 rue de la Paix...';
|
|
25
|
-
input.style.display = 'none';
|
|
26
|
-
element.appendChild(input);
|
|
27
|
-
super({
|
|
28
|
-
element: element,
|
|
29
|
-
target: options.target
|
|
30
|
-
});
|
|
31
|
-
this.button = button;
|
|
32
|
-
button.addEventListener('click', this.toggleInputVisible.bind(this), false);
|
|
33
|
-
this.input = input;
|
|
34
|
-
input.addEventListener('keypress', this.keyPress.bind(this), false);
|
|
35
|
-
}
|
|
36
|
-
toggleInputVisible() {
|
|
37
|
-
if (this.inputVisible) {
|
|
38
|
-
this.input.style.display = 'none';
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
this.input.style.display = 'block';
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
get inputVisible() {
|
|
45
|
-
return this.input.style.display === 'block';
|
|
46
|
-
}
|
|
47
|
-
keyPress(e) {
|
|
48
|
-
if (e.key === 'Enter') {
|
|
49
|
-
this.geocodingService?.fromAddress(this.input.value).subscribe((result) => {
|
|
50
|
-
this.getMap()?.dispatchEvent(new AddressSearchedEvent({
|
|
51
|
-
type: 'searched-address',
|
|
52
|
-
latLon: result.latLon,
|
|
53
|
-
coordinates: fromLonLat(result.latLon.reverse(), this.getMap()?.getView().getProjection()),
|
|
54
|
-
query: this.input.value,
|
|
55
|
-
address: result.pointAddress
|
|
56
|
-
}));
|
|
57
|
-
this.toggleInputVisible();
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
withGeocodingService(geocodingService) {
|
|
62
|
-
this.geocodingService = geocodingService;
|
|
63
|
-
return this;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLWJhci5jb250cm9sLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcHJvdm9seS9kYXNoYm9hcmQvd2lkZ2V0cy93aWRnZXQtbWFwL3NlYXJjaC1iYXIvc2VhcmNoLWJhci5jb250cm9sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFckMsT0FBTyxTQUFTLE1BQU0saUJBQWlCLENBQUM7QUFDeEMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUVyQyxNQUFNLE9BQU8sb0JBQXFCLFNBQVEsU0FBUztJQU1qRCxhQUFhO0lBQ2IsWUFBWSxFQUFFLElBQUksRUFBRSxXQUFXLEVBQUUsT0FBTyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUU7UUFDdkQsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ1osSUFBSSxDQUFDLFdBQVcsR0FBRyxXQUFXLENBQUM7UUFDL0IsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUM7UUFDdkIsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7UUFDckIsSUFBSSxDQUFDLEtBQUssR0FBRyxLQUFLLENBQUM7SUFDckIsQ0FBQztDQUNGO0FBRUQsTUFBTSxPQUFPLGdCQUFpQixTQUFRLE9BQU87SUFLM0MsWUFBWSxXQUFvQjtRQUM5QixNQUFNLE9BQU8sR0FBRyxXQUFXLElBQUksRUFBRSxDQUFDO1FBR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ucHV0LnZhbHVlLFxuICAgICAgICAgICAgYWRkcmVzczogcmVzdWx0LnBvaW50QWRkcmVzc1xuICAgICAgICAgIH0pXG4gICAgICAgICk7XG4gICAgICAgIHRoaXMudG9nZ2xlSW5wdXRWaXNpYmxlKCk7XG4gICAgICB9KTtcbiAgICB9XG4gIH1cblxuICB3aXRoR2VvY29kaW5nU2VydmljZShnZW9jb2RpbmdTZXJ2aWNlOiBHZW9jb2RpbmdTZXJ2aWNlKSB7XG4gICAgdGhpcy5nZW9jb2RpbmdTZXJ2aWNlID0gZ2VvY29kaW5nU2VydmljZTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxufVxuIl19
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { GeocodingService } from '@provoly/dashboard';
|
|
2
|
-
import { Control } from 'ol/control';
|
|
3
|
-
import { Options } from 'ol/control/Control';
|
|
4
|
-
import BaseEvent from 'ol/events/Event';
|
|
5
|
-
export declare class AddressSearchedEvent extends BaseEvent {
|
|
6
|
-
latLon: [number, number];
|
|
7
|
-
coordinates: [number, number];
|
|
8
|
-
address: string;
|
|
9
|
-
query: string;
|
|
10
|
-
constructor({ type, coordinates, address, latLon, query }: {
|
|
11
|
-
type: any;
|
|
12
|
-
coordinates: any;
|
|
13
|
-
address: any;
|
|
14
|
-
latLon: any;
|
|
15
|
-
query: any;
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
export declare class SearchBarControl extends Control {
|
|
19
|
-
button: HTMLButtonElement;
|
|
20
|
-
input: HTMLInputElement;
|
|
21
|
-
geocodingService?: GeocodingService;
|
|
22
|
-
constructor(opt_options: Options);
|
|
23
|
-
toggleInputVisible(): void;
|
|
24
|
-
get inputVisible(): boolean;
|
|
25
|
-
keyPress(e: KeyboardEvent): void;
|
|
26
|
-
withGeocodingService(geocodingService: GeocodingService): this;
|
|
27
|
-
}
|