@igo2/geo 1.14.2 → 1.14.3
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/esm2020/igo2-geo.mjs +4 -4
- package/esm2020/lib/catalog/catalog-browser/catalog-browser-group.component.mjs +300 -300
- package/esm2020/lib/catalog/catalog-browser/catalog-browser-layer.component.mjs +305 -305
- package/esm2020/lib/catalog/catalog-browser/catalog-browser.component.mjs +246 -246
- package/esm2020/lib/catalog/catalog-browser/catalog-browser.module.mjs +79 -79
- package/esm2020/lib/catalog/catalog-library/add-catalog-dialog.component.mjs +208 -208
- package/esm2020/lib/catalog/catalog-library/catalog-library-item.component.mjs +78 -78
- package/esm2020/lib/catalog/catalog-library/catalog-library.component.mjs +216 -216
- package/esm2020/lib/catalog/catalog-library/catalog-library.module.mjs +94 -94
- package/esm2020/lib/catalog/catalog.module.mjs +52 -52
- package/esm2020/lib/catalog/index.mjs +4 -4
- package/esm2020/lib/catalog/shared/catalog.abstract.mjs +94 -94
- package/esm2020/lib/catalog/shared/catalog.enum.mjs +15 -15
- package/esm2020/lib/catalog/shared/catalog.interface.mjs +1 -1
- package/esm2020/lib/catalog/shared/catalog.service.mjs +605 -605
- package/esm2020/lib/catalog/shared/index.mjs +4 -4
- package/esm2020/lib/datasource/datasource.module.mjs +21 -21
- package/esm2020/lib/datasource/index.mjs +2 -2
- package/esm2020/lib/datasource/shared/capabilities.service.mjs +430 -430
- package/esm2020/lib/datasource/shared/datasource.service.mjs +235 -235
- package/esm2020/lib/datasource/shared/datasources/any-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/any-datasource.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/arcgisrest-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/arcgisrest-datasource.mjs +144 -144
- package/esm2020/lib/datasource/shared/datasources/carto-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/carto-datasource.mjs +108 -108
- package/esm2020/lib/datasource/shared/datasources/cluster-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/cluster-datasource.mjs +14 -14
- package/esm2020/lib/datasource/shared/datasources/data.service.mjs +2 -2
- package/esm2020/lib/datasource/shared/datasources/datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/datasource.mjs +28 -28
- package/esm2020/lib/datasource/shared/datasources/feature-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/feature-datasource.mjs +42 -42
- package/esm2020/lib/datasource/shared/datasources/imagearcgisrest-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/imagearcgisrest-datasource.mjs +56 -56
- package/esm2020/lib/datasource/shared/datasources/index.mjs +35 -35
- package/esm2020/lib/datasource/shared/datasources/mvt-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/mvt-datasource.mjs +27 -27
- package/esm2020/lib/datasource/shared/datasources/osm-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/osm-datasource.mjs +11 -11
- package/esm2020/lib/datasource/shared/datasources/tilearcgisrest-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/tilearcgisrest-datasource.mjs +48 -48
- package/esm2020/lib/datasource/shared/datasources/tiledebug-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/tiledebug-datasource.mjs +14 -14
- package/esm2020/lib/datasource/shared/datasources/websocket-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/websocket-datasource.mjs +53 -53
- package/esm2020/lib/datasource/shared/datasources/wfs-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/wfs-datasource.mjs +71 -71
- package/esm2020/lib/datasource/shared/datasources/wfs.service.mjs +151 -151
- package/esm2020/lib/datasource/shared/datasources/wms-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/wms-datasource.mjs +205 -205
- package/esm2020/lib/datasource/shared/datasources/wms-wfs.utils.mjs +206 -206
- package/esm2020/lib/datasource/shared/datasources/wmts-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/wmts-datasource.mjs +15 -15
- package/esm2020/lib/datasource/shared/datasources/xyz-datasource.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/datasources/xyz-datasource.mjs +8 -8
- package/esm2020/lib/datasource/shared/index.mjs +4 -4
- package/esm2020/lib/datasource/shared/options/index.mjs +4 -4
- package/esm2020/lib/datasource/shared/options/options-api.interface.mjs +1 -1
- package/esm2020/lib/datasource/shared/options/options-api.providers.mjs +14 -14
- package/esm2020/lib/datasource/shared/options/options-api.service.mjs +80 -80
- package/esm2020/lib/datasource/shared/options/options.service.mjs +2 -2
- package/esm2020/lib/datasource/utils/esri-style-generator.mjs +356 -356
- package/esm2020/lib/datasource/utils/index.mjs +2 -2
- package/esm2020/lib/datasource/utils/tilegrid.mjs +19 -19
- package/esm2020/lib/directions/directions-buttons/directions-buttons.component.mjs +223 -223
- package/esm2020/lib/directions/directions-buttons/index.mjs +1 -1
- package/esm2020/lib/directions/directions-inputs/directions-inputs.component.mjs +289 -289
- package/esm2020/lib/directions/directions-inputs/index.mjs +1 -1
- package/esm2020/lib/directions/directions-results/directions-results.component.mjs +195 -195
- package/esm2020/lib/directions/directions-results/index.mjs +1 -1
- package/esm2020/lib/directions/directions-sources/directions-source.interface.mjs +1 -1
- package/esm2020/lib/directions/directions-sources/directions-source.mjs +2 -2
- package/esm2020/lib/directions/directions-sources/directions-source.provider.mjs +15 -15
- package/esm2020/lib/directions/directions-sources/index.mjs +4 -4
- package/esm2020/lib/directions/directions-sources/osrm-directions-source.mjs +98 -98
- package/esm2020/lib/directions/directions.component.mjs +310 -310
- package/esm2020/lib/directions/directions.module.mjs +101 -101
- package/esm2020/lib/directions/index.mjs +6 -6
- package/esm2020/lib/directions/shared/directions-source.service.mjs +16 -16
- package/esm2020/lib/directions/shared/directions.enum.mjs +27 -27
- package/esm2020/lib/directions/shared/directions.interface.mjs +1 -1
- package/esm2020/lib/directions/shared/directions.service.mjs +28 -28
- package/esm2020/lib/directions/shared/directions.utils.mjs +508 -508
- package/esm2020/lib/directions/shared/index.mjs +5 -5
- package/esm2020/lib/directions/shared/store.mjs +23 -23
- package/esm2020/lib/download/download-button/download-button.component.mjs +60 -60
- package/esm2020/lib/download/download-button/index.mjs +1 -1
- package/esm2020/lib/download/download.module.mjs +41 -41
- package/esm2020/lib/download/index.mjs +2 -2
- package/esm2020/lib/download/shared/download.interface.mjs +1 -1
- package/esm2020/lib/download/shared/download.service.mjs +64 -64
- package/esm2020/lib/download/shared/index.mjs +2 -2
- package/esm2020/lib/draw/draw/draw-layer-popup.component.mjs +54 -54
- package/esm2020/lib/draw/draw/draw-popup.component.mjs +590 -590
- package/esm2020/lib/draw/draw/draw-shorcuts.component.mjs +47 -47
- package/esm2020/lib/draw/draw/draw.component.mjs +1298 -1298
- package/esm2020/lib/draw/draw/draw.module.mjs +112 -112
- package/esm2020/lib/draw/drawingTool.module.mjs +19 -19
- package/esm2020/lib/draw/index.mjs +2 -2
- package/esm2020/lib/draw/shared/draw-icon.service.mjs +26 -26
- package/esm2020/lib/draw/shared/draw-style.service.mjs +189 -189
- package/esm2020/lib/draw/shared/draw.enum.mjs +36 -36
- package/esm2020/lib/draw/shared/draw.interface.mjs +1 -1
- package/esm2020/lib/draw/shared/draw.utils.mjs +121 -121
- package/esm2020/lib/draw/shared/index.mjs +5 -5
- package/esm2020/lib/feature/feature-details/feature-details.component.mjs +404 -404
- package/esm2020/lib/feature/feature-details/feature-details.directive.mjs +53 -53
- package/esm2020/lib/feature/feature-details/feature-details.module.mjs +47 -47
- package/esm2020/lib/feature/feature-form/feature-form.component.mjs +111 -111
- package/esm2020/lib/feature/feature-form/feature-form.module.mjs +33 -33
- package/esm2020/lib/feature/feature.module.mjs +27 -27
- package/esm2020/lib/feature/index.mjs +3 -3
- package/esm2020/lib/feature/shared/feature.enums.mjs +8 -8
- package/esm2020/lib/feature/shared/feature.interfaces.mjs +1 -1
- package/esm2020/lib/feature/shared/feature.utils.mjs +346 -346
- package/esm2020/lib/feature/shared/index.mjs +6 -6
- package/esm2020/lib/feature/shared/store.mjs +123 -123
- package/esm2020/lib/feature/shared/strategies/in-map-extent.mjs +112 -112
- package/esm2020/lib/feature/shared/strategies/in-map-resolution.mjs +93 -93
- package/esm2020/lib/feature/shared/strategies/index.mjs +5 -5
- package/esm2020/lib/feature/shared/strategies/loading-layer.mjs +103 -103
- package/esm2020/lib/feature/shared/strategies/loading.mjs +132 -132
- package/esm2020/lib/feature/shared/strategies/selection.mjs +369 -369
- package/esm2020/lib/feature/shared/strategies.utils.mjs +36 -36
- package/esm2020/lib/filter/filter.module.mjs +288 -288
- package/esm2020/lib/filter/index.mjs +15 -15
- package/esm2020/lib/filter/ogc-filter-button/index.mjs +1 -1
- package/esm2020/lib/filter/ogc-filter-button/ogc-filter-button.component.mjs +139 -139
- package/esm2020/lib/filter/ogc-filter-form/index.mjs +1 -1
- package/esm2020/lib/filter/ogc-filter-form/ogc-filter-form.component.mjs +644 -644
- package/esm2020/lib/filter/ogc-filter-selection/index.mjs +1 -1
- package/esm2020/lib/filter/ogc-filter-selection/ogc-filter-selection.component.mjs +1301 -1301
- package/esm2020/lib/filter/ogc-filter-time/index.mjs +2 -2
- package/esm2020/lib/filter/ogc-filter-time/ogc-filter-time-slider.component.mjs +176 -176
- package/esm2020/lib/filter/ogc-filter-time/ogc-filter-time.component.mjs +897 -897
- package/esm2020/lib/filter/ogc-filterable-form/index.mjs +1 -1
- package/esm2020/lib/filter/ogc-filterable-form/ogc-filterable-form.component.mjs +58 -58
- package/esm2020/lib/filter/ogc-filterable-item/index.mjs +1 -1
- package/esm2020/lib/filter/ogc-filterable-item/ogc-filterable-item.component.mjs +306 -306
- package/esm2020/lib/filter/ogc-filterable-list/index.mjs +2 -2
- package/esm2020/lib/filter/ogc-filterable-list/ogc-filterable-list-binding.directive.mjs +30 -30
- package/esm2020/lib/filter/ogc-filterable-list/ogc-filterable-list.component.mjs +43 -43
- package/esm2020/lib/filter/shared/filterable-datasource.pipe.mjs +54 -54
- package/esm2020/lib/filter/shared/index.mjs +11 -11
- package/esm2020/lib/filter/shared/ogc-filter-time.service.mjs +71 -71
- package/esm2020/lib/filter/shared/ogc-filter.enum.mjs +29 -29
- package/esm2020/lib/filter/shared/ogc-filter.interface.mjs +1 -1
- package/esm2020/lib/filter/shared/ogc-filter.mjs +691 -691
- package/esm2020/lib/filter/shared/ogc-filter.service.mjs +45 -45
- package/esm2020/lib/filter/shared/spatial-filter.enum.mjs +22 -22
- package/esm2020/lib/filter/shared/spatial-filter.interface.mjs +1 -1
- package/esm2020/lib/filter/shared/spatial-filter.service.mjs +268 -268
- package/esm2020/lib/filter/shared/time-filter.enum.mjs +12 -12
- package/esm2020/lib/filter/shared/time-filter.interface.mjs +1 -1
- package/esm2020/lib/filter/shared/time-filter.service.mjs +106 -106
- package/esm2020/lib/filter/spatial-filter/spatial-filter-item/index.mjs +1 -1
- package/esm2020/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.mjs +1088 -1088
- package/esm2020/lib/filter/spatial-filter/spatial-filter-list/index.mjs +1 -1
- package/esm2020/lib/filter/spatial-filter/spatial-filter-list/spatial-filter-list.component.mjs +207 -207
- package/esm2020/lib/filter/spatial-filter/spatial-filter-type/index.mjs +1 -1
- package/esm2020/lib/filter/spatial-filter/spatial-filter-type/spatial-filter-type.component.mjs +143 -143
- package/esm2020/lib/filter/time-filter-button/index.mjs +1 -1
- package/esm2020/lib/filter/time-filter-button/time-filter-button.component.mjs +77 -77
- package/esm2020/lib/filter/time-filter-form/index.mjs +1 -1
- package/esm2020/lib/filter/time-filter-form/time-filter-form.component.mjs +733 -733
- package/esm2020/lib/filter/time-filter-item/index.mjs +1 -1
- package/esm2020/lib/filter/time-filter-item/time-filter-item.component.mjs +118 -118
- package/esm2020/lib/filter/time-filter-list/index.mjs +2 -2
- package/esm2020/lib/filter/time-filter-list/time-filter-list-binding.directive.mjs +30 -30
- package/esm2020/lib/filter/time-filter-list/time-filter-list.component.mjs +38 -38
- package/esm2020/lib/geo.module.mjs +101 -101
- package/esm2020/lib/geometry/geometry-form-field/geometry-form-field-input.component.mjs +520 -520
- package/esm2020/lib/geometry/geometry-form-field/geometry-form-field.component.mjs +188 -188
- package/esm2020/lib/geometry/geometry-form-field/geometry-form-field.module.mjs +63 -63
- package/esm2020/lib/geometry/geometry.module.mjs +26 -26
- package/esm2020/lib/geometry/index.mjs +3 -3
- package/esm2020/lib/geometry/shared/controls/draw.mjs +313 -313
- package/esm2020/lib/geometry/shared/controls/index.mjs +3 -3
- package/esm2020/lib/geometry/shared/controls/modify.mjs +520 -520
- package/esm2020/lib/geometry/shared/controls/slice.mjs +176 -176
- package/esm2020/lib/geometry/shared/geometry.errors.mjs +25 -25
- package/esm2020/lib/geometry/shared/geometry.interfaces.mjs +1 -1
- package/esm2020/lib/geometry/shared/geometry.utils.mjs +121 -121
- package/esm2020/lib/geometry/shared/index.mjs +4 -4
- package/esm2020/lib/import-export/export-button/export-button.component.mjs +63 -63
- package/esm2020/lib/import-export/export-button/index.mjs +1 -1
- package/esm2020/lib/import-export/import-export/import-export.component.mjs +1219 -1219
- package/esm2020/lib/import-export/import-export/index.mjs +1 -1
- package/esm2020/lib/import-export/import-export.module.mjs +95 -95
- package/esm2020/lib/import-export/index.mjs +4 -4
- package/esm2020/lib/import-export/shared/drop-geo-file.directive.mjs +134 -134
- package/esm2020/lib/import-export/shared/export.errors.mjs +14 -14
- package/esm2020/lib/import-export/shared/export.interface.mjs +1 -1
- package/esm2020/lib/import-export/shared/export.service.mjs +194 -194
- package/esm2020/lib/import-export/shared/export.type.mjs +3 -3
- package/esm2020/lib/import-export/shared/export.utils.mjs +54 -54
- package/esm2020/lib/import-export/shared/import.errors.mjs +38 -38
- package/esm2020/lib/import-export/shared/import.interface.mjs +1 -1
- package/esm2020/lib/import-export/shared/import.service.mjs +214 -214
- package/esm2020/lib/import-export/shared/import.utils.mjs +234 -234
- package/esm2020/lib/import-export/shared/index.mjs +10 -10
- package/esm2020/lib/import-export/style-list/index.mjs +4 -4
- package/esm2020/lib/import-export/style-list/style-list.interface.mjs +1 -1
- package/esm2020/lib/import-export/style-list/style-list.module.mjs +22 -22
- package/esm2020/lib/import-export/style-list/style-list.provider.mjs +20 -20
- package/esm2020/lib/import-export/style-list/style-list.service.mjs +50 -50
- package/esm2020/lib/layer/index.mjs +10 -10
- package/esm2020/lib/layer/layer-item/index.mjs +1 -1
- package/esm2020/lib/layer/layer-item/layer-item.component.mjs +299 -299
- package/esm2020/lib/layer/layer-legend/index.mjs +1 -1
- package/esm2020/lib/layer/layer-legend/layer-legend.component.mjs +387 -387
- package/esm2020/lib/layer/layer-legend-item/index.mjs +1 -1
- package/esm2020/lib/layer/layer-legend-item/layer-legend-item.component.mjs +83 -83
- package/esm2020/lib/layer/layer-legend-list/index.mjs +2 -2
- package/esm2020/lib/layer/layer-legend-list/layer-legend-list-binding.directive.mjs +47 -47
- package/esm2020/lib/layer/layer-legend-list/layer-legend-list.component.mjs +194 -194
- package/esm2020/lib/layer/layer-list/index.mjs +3 -3
- package/esm2020/lib/layer/layer-list/layer-list-binding.directive.mjs +58 -58
- package/esm2020/lib/layer/layer-list/layer-list.component.mjs +1008 -1008
- package/esm2020/lib/layer/layer-list/layer-list.enum.mjs +18 -18
- package/esm2020/lib/layer/layer-list-tool/index.mjs +4 -4
- package/esm2020/lib/layer/layer-list-tool/layer-list-tool.component.mjs +164 -164
- package/esm2020/lib/layer/layer-list-tool/layer-list-tool.enum.mjs +6 -6
- package/esm2020/lib/layer/layer-list-tool/layer-list-tool.interface.mjs +1 -1
- package/esm2020/lib/layer/layer-list-tool/layer-list-tool.service.mjs +21 -21
- package/esm2020/lib/layer/layer.module.mjs +184 -184
- package/esm2020/lib/layer/shared/clusterParam.mjs +1 -1
- package/esm2020/lib/layer/shared/index.mjs +6 -6
- package/esm2020/lib/layer/shared/layer.enums.mjs +1 -1
- package/esm2020/lib/layer/shared/layer.service.mjs +185 -185
- package/esm2020/lib/layer/shared/layers/any-layer.interface.mjs +1 -1
- package/esm2020/lib/layer/shared/layers/any-layer.mjs +1 -1
- package/esm2020/lib/layer/shared/layers/image-layer.interface.mjs +1 -1
- package/esm2020/lib/layer/shared/layers/image-layer.mjs +67 -67
- package/esm2020/lib/layer/shared/layers/index.mjs +12 -12
- package/esm2020/lib/layer/shared/layers/layer.interface.mjs +17 -17
- package/esm2020/lib/layer/shared/layers/layer.mjs +163 -163
- package/esm2020/lib/layer/shared/layers/tile-layer.interface.mjs +1 -1
- package/esm2020/lib/layer/shared/layers/tile-layer.mjs +46 -46
- package/esm2020/lib/layer/shared/layers/vector-layer.interface.mjs +1 -1
- package/esm2020/lib/layer/shared/layers/vector-layer.mjs +377 -377
- package/esm2020/lib/layer/shared/layers/vectortile-layer.interface.mjs +1 -1
- package/esm2020/lib/layer/shared/layers/vectortile-layer.mjs +103 -103
- package/esm2020/lib/layer/shared/style.service.mjs +355 -355
- package/esm2020/lib/layer/shared/vector-style.interface.mjs +1 -1
- package/esm2020/lib/layer/style-modal/index.mjs +1 -1
- package/esm2020/lib/layer/style-modal/style-modal.component.mjs +287 -287
- package/esm2020/lib/layer/track-feature-button/index.mjs +1 -1
- package/esm2020/lib/layer/track-feature-button/track-feature-button.component.mjs +58 -58
- package/esm2020/lib/layer/utils/image-watcher.mjs +61 -61
- package/esm2020/lib/layer/utils/index.mjs +5 -5
- package/esm2020/lib/layer/utils/layer.utils.mjs +9 -9
- package/esm2020/lib/layer/utils/outputLegend.mjs +26 -26
- package/esm2020/lib/layer/utils/tile-watcher.mjs +49 -49
- package/esm2020/lib/layer/utils/vector-watcher.mjs +47 -47
- package/esm2020/lib/map/baselayers-switcher/baselayers-switcher.animation.mjs +19 -19
- package/esm2020/lib/map/baselayers-switcher/baselayers-switcher.component.mjs +96 -96
- package/esm2020/lib/map/baselayers-switcher/index.mjs +2 -2
- package/esm2020/lib/map/baselayers-switcher/mini-basemap.component.mjs +141 -142
- package/esm2020/lib/map/geolocate-button/geolocate-button.component.mjs +78 -78
- package/esm2020/lib/map/geolocate-button/index.mjs +1 -1
- package/esm2020/lib/map/home-extent-button/home-extent-button.component.mjs +62 -62
- package/esm2020/lib/map/home-extent-button/index.mjs +1 -1
- package/esm2020/lib/map/index.mjs +13 -13
- package/esm2020/lib/map/info-section/index.mjs +1 -1
- package/esm2020/lib/map/info-section/info-section.component.mjs +29 -29
- package/esm2020/lib/map/map-browser/index.mjs +1 -1
- package/esm2020/lib/map/map-browser/map-browser.component.mjs +65 -65
- package/esm2020/lib/map/map-center/index.mjs +1 -1
- package/esm2020/lib/map/map-center/map-center.component.mjs +49 -49
- package/esm2020/lib/map/map.module.mjs +126 -126
- package/esm2020/lib/map/menu-button/index.mjs +1 -1
- package/esm2020/lib/map/menu-button/menu-button.component.mjs +61 -61
- package/esm2020/lib/map/offline-button/index.mjs +1 -1
- package/esm2020/lib/map/offline-button/offline-button.component.mjs +75 -75
- package/esm2020/lib/map/rotation-button/index.mjs +1 -1
- package/esm2020/lib/map/rotation-button/rotation-button.component.mjs +69 -69
- package/esm2020/lib/map/shared/controllers/controller.mjs +41 -41
- package/esm2020/lib/map/shared/controllers/geolocation.mjs +307 -307
- package/esm2020/lib/map/shared/controllers/index.mjs +3 -3
- package/esm2020/lib/map/shared/controllers/view.mjs +350 -350
- package/esm2020/lib/map/shared/hover-feature.directive.mjs +502 -502
- package/esm2020/lib/map/shared/index.mjs +13 -13
- package/esm2020/lib/map/shared/linkedLayers.utils.mjs +237 -237
- package/esm2020/lib/map/shared/map-pointer-position.directive.mjs +106 -106
- package/esm2020/lib/map/shared/map.enums.mjs +5 -5
- package/esm2020/lib/map/shared/map.interface.mjs +1 -1
- package/esm2020/lib/map/shared/map.mjs +406 -406
- package/esm2020/lib/map/shared/map.service.mjs +28 -28
- package/esm2020/lib/map/shared/map.utils.mjs +462 -462
- package/esm2020/lib/map/shared/mapOffline.directive.mjs +162 -162
- package/esm2020/lib/map/shared/projection.interfaces.mjs +1 -1
- package/esm2020/lib/map/shared/projection.service.mjs +64 -64
- package/esm2020/lib/map/shared/projection.utils.mjs +63 -63
- package/esm2020/lib/map/swipe-control/index.mjs +1 -1
- package/esm2020/lib/map/swipe-control/swipe-control.component.mjs +192 -192
- package/esm2020/lib/map/utils/layer-watcher.mjs +78 -78
- package/esm2020/lib/map/wake-lock-button/index.mjs +1 -1
- package/esm2020/lib/map/wake-lock-button/wake-lock-button.component.mjs +113 -113
- package/esm2020/lib/map/zoom-button/index.mjs +1 -1
- package/esm2020/lib/map/zoom-button/zoom-button.component.mjs +39 -39
- package/esm2020/lib/measure/index.mjs +3 -3
- package/esm2020/lib/measure/measure.module.mjs +19 -19
- package/esm2020/lib/measure/measurer/measure-format.pipe.mjs +36 -36
- package/esm2020/lib/measure/measurer/measurer-dialog.component.mjs +179 -179
- package/esm2020/lib/measure/measurer/measurer-item.component.mjs +139 -139
- package/esm2020/lib/measure/measurer/measurer.component.mjs +1041 -1041
- package/esm2020/lib/measure/measurer/measurer.module.mjs +93 -93
- package/esm2020/lib/measure/shared/index.mjs +3 -3
- package/esm2020/lib/measure/shared/measure.enum.mjs +36 -36
- package/esm2020/lib/measure/shared/measure.interfaces.mjs +1 -1
- package/esm2020/lib/measure/shared/measure.utils.mjs +488 -488
- package/esm2020/lib/metadata/index.mjs +2 -2
- package/esm2020/lib/metadata/metadata-button/index.mjs +1 -1
- package/esm2020/lib/metadata/metadata-button/metadata-button.component.mjs +133 -133
- package/esm2020/lib/metadata/metadata.module.mjs +54 -54
- package/esm2020/lib/metadata/shared/index.mjs +2 -2
- package/esm2020/lib/metadata/shared/metadata.interface.mjs +1 -1
- package/esm2020/lib/metadata/shared/metadata.service.mjs +18 -18
- package/esm2020/lib/offline/geoDB/configFileToGeoDB.service.mjs +104 -104
- package/esm2020/lib/offline/geoDB/geoDB.enums.mjs +5 -5
- package/esm2020/lib/offline/geoDB/geoDB.interface.mjs +1 -1
- package/esm2020/lib/offline/geoDB/geoDB.service.mjs +166 -166
- package/esm2020/lib/offline/geoDB/index.mjs +4 -4
- package/esm2020/lib/offline/index.mjs +2 -2
- package/esm2020/lib/offline/shared/geo-network.service.mjs +65 -65
- package/esm2020/lib/offline/shared/index.mjs +1 -1
- package/esm2020/lib/overlay/index.mjs +1 -1
- package/esm2020/lib/overlay/overlay.module.mjs +22 -22
- package/esm2020/lib/overlay/shared/index.mjs +6 -6
- package/esm2020/lib/overlay/shared/overlay-marker-style.utils.mjs +68 -68
- package/esm2020/lib/overlay/shared/overlay.directive.mjs +32 -32
- package/esm2020/lib/overlay/shared/overlay.enum.mjs +7 -7
- package/esm2020/lib/overlay/shared/overlay.mjs +129 -129
- package/esm2020/lib/overlay/shared/overlay.service.mjs +26 -26
- package/esm2020/lib/overlay/shared/overlay.utils.mjs +102 -102
- package/esm2020/lib/print/index.mjs +3 -3
- package/esm2020/lib/print/print/print.component.mjs +125 -125
- package/esm2020/lib/print/print-form/index.mjs +1 -1
- package/esm2020/lib/print/print-form/print-form.component.mjs +427 -427
- package/esm2020/lib/print/print.module.mjs +64 -64
- package/esm2020/lib/print/shared/geopdf.mjs +57 -57
- package/esm2020/lib/print/shared/index.mjs +4 -4
- package/esm2020/lib/print/shared/print.interface.mjs +1 -1
- package/esm2020/lib/print/shared/print.service.mjs +933 -933
- package/esm2020/lib/print/shared/print.type.mjs +29 -29
- package/esm2020/lib/query/index.mjs +1 -1
- package/esm2020/lib/query/query.module.mjs +28 -28
- package/esm2020/lib/query/shared/index.mjs +6 -6
- package/esm2020/lib/query/shared/query-search-source.mjs +34 -34
- package/esm2020/lib/query/shared/query-search-source.providers.mjs +21 -21
- package/esm2020/lib/query/shared/query.directive.mjs +260 -260
- package/esm2020/lib/query/shared/query.enums.mjs +29 -29
- package/esm2020/lib/query/shared/query.interfaces.mjs +1 -1
- package/esm2020/lib/query/shared/query.service.mjs +732 -732
- package/esm2020/lib/query/shared/query.utils.mjs +36 -36
- package/esm2020/lib/search/index.mjs +11 -11
- package/esm2020/lib/search/search-bar/search-bar.component.mjs +511 -511
- package/esm2020/lib/search/search-bar/search-bar.module.mjs +74 -74
- package/esm2020/lib/search/search-bar/search-url-param.directive.mjs +34 -34
- package/esm2020/lib/search/search-results/save-feature-dialog.component.mjs +117 -117
- package/esm2020/lib/search/search-results/search-results-add-button.component.mjs +370 -370
- package/esm2020/lib/search/search-results/search-results-item.component.mjs +123 -123
- package/esm2020/lib/search/search-results/search-results.component.mjs +339 -339
- package/esm2020/lib/search/search-results/search-results.module.mjs +103 -103
- package/esm2020/lib/search/search-selector/search-selector.component.mjs +122 -122
- package/esm2020/lib/search/search-selector/search-selector.module.mjs +55 -55
- package/esm2020/lib/search/search-settings/search-settings.component.mjs +441 -441
- package/esm2020/lib/search/search-settings/search-settings.module.mjs +59 -59
- package/esm2020/lib/search/search.module.mjs +66 -66
- package/esm2020/lib/search/shared/index.mjs +8 -8
- package/esm2020/lib/search/shared/search-pointer-summary.directive.mjs +321 -321
- package/esm2020/lib/search/shared/search-source-service.providers.mjs +19 -19
- package/esm2020/lib/search/shared/search-source.service.mjs +46 -46
- package/esm2020/lib/search/shared/search.enums.mjs +3 -3
- package/esm2020/lib/search/shared/search.interfaces.mjs +1 -1
- package/esm2020/lib/search/shared/search.service.mjs +120 -120
- package/esm2020/lib/search/shared/search.utils.mjs +90 -90
- package/esm2020/lib/search/shared/sources/coordinates.interfaces.mjs +1 -1
- package/esm2020/lib/search/shared/sources/coordinates.mjs +152 -152
- package/esm2020/lib/search/shared/sources/coordinates.providers.mjs +39 -39
- package/esm2020/lib/search/shared/sources/icherche.interfaces.mjs +1 -1
- package/esm2020/lib/search/shared/sources/icherche.mjs +766 -766
- package/esm2020/lib/search/shared/sources/icherche.providers.mjs +65 -65
- package/esm2020/lib/search/shared/sources/ilayer.interfaces.mjs +1 -1
- package/esm2020/lib/search/shared/sources/ilayer.mjs +319 -319
- package/esm2020/lib/search/shared/sources/ilayer.providers.mjs +39 -39
- package/esm2020/lib/search/shared/sources/index.mjs +17 -17
- package/esm2020/lib/search/shared/sources/nominatim.interfaces.mjs +1 -1
- package/esm2020/lib/search/shared/sources/nominatim.mjs +251 -251
- package/esm2020/lib/search/shared/sources/nominatim.providers.mjs +22 -22
- package/esm2020/lib/search/shared/sources/source.interfaces.mjs +1 -1
- package/esm2020/lib/search/shared/sources/source.mjs +178 -178
- package/esm2020/lib/search/shared/sources/storedqueries.interfaces.mjs +1 -1
- package/esm2020/lib/search/shared/sources/storedqueries.mjs +424 -424
- package/esm2020/lib/search/shared/sources/storedqueries.providers.mjs +40 -40
- package/esm2020/lib/toast/index.mjs +1 -1
- package/esm2020/lib/toast/toast.component.mjs +112 -112
- package/esm2020/lib/toast/toast.module.mjs +44 -44
- package/esm2020/lib/utils/commonVectorStyle.interface.mjs +1 -1
- package/esm2020/lib/utils/commonVectorStyle.mjs +74 -74
- package/esm2020/lib/utils/googleLinks.mjs +12 -12
- package/esm2020/lib/utils/id-generator.mjs +109 -109
- package/esm2020/lib/utils/index.mjs +5 -5
- package/esm2020/lib/utils/osmLinks.mjs +9 -9
- package/esm2020/lib/wkt/index.mjs +1 -1
- package/esm2020/lib/wkt/shared/index.mjs +1 -1
- package/esm2020/lib/wkt/shared/wkt.service.mjs +224 -224
- package/esm2020/lib/wkt/wkt.module.mjs +21 -21
- package/esm2020/lib/workspace/confirmation-popup/confirmation-popup.component.mjs +47 -47
- package/esm2020/lib/workspace/confirmation-popup/confirmation-popup.module.mjs +35 -35
- package/esm2020/lib/workspace/confirmation-popup/index.mjs +2 -2
- package/esm2020/lib/workspace/index.mjs +7 -7
- package/esm2020/lib/workspace/shared/edition-workspace.mjs +279 -279
- package/esm2020/lib/workspace/shared/edition-workspace.service.mjs +656 -656
- package/esm2020/lib/workspace/shared/feature-workspace.mjs +34 -34
- package/esm2020/lib/workspace/shared/feature-workspace.service.mjs +149 -149
- package/esm2020/lib/workspace/shared/index.mjs +7 -7
- package/esm2020/lib/workspace/shared/wfs-workspace.mjs +34 -34
- package/esm2020/lib/workspace/shared/wfs-workspace.service.mjs +149 -149
- package/esm2020/lib/workspace/shared/wms-workspace.service.mjs +259 -259
- package/esm2020/lib/workspace/shared/workspace.utils.mjs +23 -23
- package/esm2020/lib/workspace/widgets/index.mjs +3 -3
- package/esm2020/lib/workspace/widgets/ogc-filter/ogc-filter.component.mjs +46 -46
- package/esm2020/lib/workspace/widgets/ogc-filter/ogc-filter.module.mjs +35 -35
- package/esm2020/lib/workspace/widgets/widgets.mjs +14 -14
- package/esm2020/lib/workspace/workspace-selector/workspace-selector.directive.mjs +132 -132
- package/esm2020/lib/workspace/workspace-selector/workspace-selector.module.mjs +27 -27
- package/esm2020/lib/workspace/workspace-updator/workspace-updator.directive.mjs +112 -112
- package/esm2020/lib/workspace/workspace-updator/workspace-updator.module.mjs +27 -27
- package/esm2020/lib/workspace/workspace.module.mjs +61 -61
- package/esm2020/public_api.mjs +54 -54
- package/fesm2015/igo2-geo.mjs +44986 -44986
- package/fesm2015/igo2-geo.mjs.map +1 -1
- package/fesm2020/igo2-geo.mjs +43029 -43030
- package/fesm2020/igo2-geo.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/catalog/catalog-browser/catalog-browser-group.component.d.ts +126 -126
- package/lib/catalog/catalog-browser/catalog-browser-layer.component.d.ts +80 -80
- package/lib/catalog/catalog-browser/catalog-browser.component.d.ts +105 -105
- package/lib/catalog/catalog-browser/catalog-browser.module.d.ts +22 -22
- package/lib/catalog/catalog-library/add-catalog-dialog.component.d.ts +45 -45
- package/lib/catalog/catalog-library/catalog-library-item.component.d.ts +25 -25
- package/lib/catalog/catalog-library/catalog-library.component.d.ts +65 -65
- package/lib/catalog/catalog-library/catalog-library.module.d.ts +26 -26
- package/lib/catalog/catalog.module.d.ts +14 -14
- package/lib/catalog/index.d.ts +4 -4
- package/lib/catalog/shared/catalog.abstract.d.ts +50 -50
- package/lib/catalog/shared/catalog.enum.d.ts +14 -14
- package/lib/catalog/shared/catalog.interface.d.ts +66 -66
- package/lib/catalog/shared/catalog.service.d.ts +36 -36
- package/lib/catalog/shared/index.d.ts +4 -4
- package/lib/datasource/datasource.module.d.ts +8 -8
- package/lib/datasource/index.d.ts +2 -2
- package/lib/datasource/shared/capabilities.service.d.ts +37 -37
- package/lib/datasource/shared/datasource.service.d.ts +37 -37
- package/lib/datasource/shared/datasources/any-datasource.d.ts +16 -16
- package/lib/datasource/shared/datasources/any-datasource.interface.d.ts +15 -15
- package/lib/datasource/shared/datasources/arcgisrest-datasource.d.ts +14 -14
- package/lib/datasource/shared/datasources/arcgisrest-datasource.interface.d.ts +14 -14
- package/lib/datasource/shared/datasources/carto-datasource.d.ts +15 -15
- package/lib/datasource/shared/datasources/carto-datasource.interface.d.ts +13 -13
- package/lib/datasource/shared/datasources/cluster-datasource.d.ts +10 -10
- package/lib/datasource/shared/datasources/cluster-datasource.interface.d.ts +11 -11
- package/lib/datasource/shared/datasources/data.service.d.ts +3 -3
- package/lib/datasource/shared/datasources/datasource.d.ts +20 -20
- package/lib/datasource/shared/datasources/datasource.interface.d.ts +100 -100
- package/lib/datasource/shared/datasources/feature-datasource.d.ts +12 -12
- package/lib/datasource/shared/datasources/feature-datasource.interface.d.ts +18 -18
- package/lib/datasource/shared/datasources/imagearcgisrest-datasource.d.ts +15 -15
- package/lib/datasource/shared/datasources/imagearcgisrest-datasource.interface.d.ts +15 -15
- package/lib/datasource/shared/datasources/index.d.ts +35 -35
- package/lib/datasource/shared/datasources/mvt-datasource.d.ts +10 -10
- package/lib/datasource/shared/datasources/mvt-datasource.interface.d.ts +13 -13
- package/lib/datasource/shared/datasources/osm-datasource.d.ts +9 -9
- package/lib/datasource/shared/datasources/osm-datasource.interface.d.ts +7 -7
- package/lib/datasource/shared/datasources/tilearcgisrest-datasource.d.ts +15 -15
- package/lib/datasource/shared/datasources/tilearcgisrest-datasource.interface.d.ts +14 -14
- package/lib/datasource/shared/datasources/tiledebug-datasource.d.ts +9 -9
- package/lib/datasource/shared/datasources/tiledebug-datasource.interface.d.ts +9 -9
- package/lib/datasource/shared/datasources/websocket-datasource.d.ts +15 -15
- package/lib/datasource/shared/datasources/websocket-datasource.interface.d.ts +7 -7
- package/lib/datasource/shared/datasources/wfs-datasource.d.ts +20 -20
- package/lib/datasource/shared/datasources/wfs-datasource.interface.d.ts +20 -20
- package/lib/datasource/shared/datasources/wfs.service.d.ts +17 -17
- package/lib/datasource/shared/datasources/wms-datasource.d.ts +31 -31
- package/lib/datasource/shared/datasources/wms-datasource.interface.d.ts +32 -32
- package/lib/datasource/shared/datasources/wms-wfs.utils.d.ts +41 -41
- package/lib/datasource/shared/datasources/wmts-datasource.d.ts +10 -10
- package/lib/datasource/shared/datasources/wmts-datasource.interface.d.ts +13 -13
- package/lib/datasource/shared/datasources/xyz-datasource.d.ts +9 -9
- package/lib/datasource/shared/datasources/xyz-datasource.interface.d.ts +11 -11
- package/lib/datasource/shared/index.d.ts +4 -4
- package/lib/datasource/shared/options/index.d.ts +4 -4
- package/lib/datasource/shared/options/options-api.interface.d.ts +4 -4
- package/lib/datasource/shared/options/options-api.providers.d.ts +10 -10
- package/lib/datasource/shared/options/options-api.service.d.ts +16 -16
- package/lib/datasource/shared/options/options.service.d.ts +6 -6
- package/lib/datasource/utils/esri-style-generator.d.ts +21 -21
- package/lib/datasource/utils/index.d.ts +2 -2
- package/lib/datasource/utils/tilegrid.d.ts +2 -2
- package/lib/directions/directions-buttons/directions-buttons.component.d.ts +30 -30
- package/lib/directions/directions-buttons/index.d.ts +1 -1
- package/lib/directions/directions-inputs/directions-inputs.component.d.ts +45 -45
- package/lib/directions/directions-inputs/index.d.ts +1 -1
- package/lib/directions/directions-results/directions-results.component.d.ts +30 -30
- package/lib/directions/directions-results/index.d.ts +1 -1
- package/lib/directions/directions-sources/directions-source.d.ts +7 -7
- package/lib/directions/directions-sources/directions-source.interface.d.ts +11 -11
- package/lib/directions/directions-sources/directions-source.provider.d.ts +11 -11
- package/lib/directions/directions-sources/index.d.ts +4 -4
- package/lib/directions/directions-sources/osrm-directions-source.d.ts +23 -23
- package/lib/directions/directions.component.d.ts +56 -56
- package/lib/directions/directions.module.d.ts +26 -26
- package/lib/directions/index.d.ts +6 -6
- package/lib/directions/shared/directions-source.service.d.ts +11 -11
- package/lib/directions/shared/directions.enum.d.ts +22 -22
- package/lib/directions/shared/directions.interface.d.ts +126 -126
- package/lib/directions/shared/directions.service.d.ts +13 -13
- package/lib/directions/shared/directions.utils.d.ts +42 -42
- package/lib/directions/shared/index.d.ts +5 -5
- package/lib/directions/shared/store.d.ts +18 -18
- package/lib/download/download-button/download-button.component.d.ts +18 -18
- package/lib/download/download-button/index.d.ts +1 -1
- package/lib/download/download.module.d.ts +14 -14
- package/lib/download/index.d.ts +2 -2
- package/lib/download/shared/download.interface.d.ts +10 -10
- package/lib/download/shared/download.service.d.ts +11 -11
- package/lib/download/shared/index.d.ts +2 -2
- package/lib/draw/draw/draw-layer-popup.component.d.ts +14 -14
- package/lib/draw/draw/draw-popup.component.d.ts +63 -63
- package/lib/draw/draw/draw-shorcuts.component.d.ts +5 -5
- package/lib/draw/draw/draw.component.d.ts +239 -239
- package/lib/draw/draw/draw.module.d.ts +34 -34
- package/lib/draw/drawingTool.module.d.ts +7 -7
- package/lib/draw/index.d.ts +2 -2
- package/lib/draw/shared/draw-icon.service.d.ts +12 -12
- package/lib/draw/shared/draw-style.service.d.ts +36 -36
- package/lib/draw/shared/draw.enum.d.ts +32 -32
- package/lib/draw/shared/draw.interface.d.ts +40 -40
- package/lib/draw/shared/draw.utils.d.ts +35 -35
- package/lib/draw/shared/index.d.ts +5 -5
- package/lib/feature/feature-details/feature-details.component.d.ts +60 -60
- package/lib/feature/feature-details/feature-details.directive.d.ts +19 -19
- package/lib/feature/feature-details/feature-details.module.d.ts +15 -15
- package/lib/feature/feature-form/feature-form.component.d.ts +50 -50
- package/lib/feature/feature-form/feature-form.module.d.ts +12 -12
- package/lib/feature/feature.module.d.ts +9 -9
- package/lib/feature/index.d.ts +3 -3
- package/lib/feature/shared/feature.enums.d.ts +7 -7
- package/lib/feature/shared/feature.interfaces.d.ts +74 -74
- package/lib/feature/shared/feature.utils.d.ts +104 -104
- package/lib/feature/shared/index.d.ts +6 -6
- package/lib/feature/shared/store.d.ts +71 -71
- package/lib/feature/shared/strategies/in-map-extent.d.ts +52 -52
- package/lib/feature/shared/strategies/in-map-resolution.d.ts +52 -52
- package/lib/feature/shared/strategies/index.d.ts +5 -5
- package/lib/feature/shared/strategies/loading-layer.d.ts +59 -59
- package/lib/feature/shared/strategies/loading.d.ts +75 -75
- package/lib/feature/shared/strategies/selection.d.ts +176 -176
- package/lib/feature/shared/strategies.utils.d.ts +17 -17
- package/lib/filter/filter.module.d.ts +53 -53
- package/lib/filter/index.d.ts +15 -15
- package/lib/filter/ogc-filter-button/index.d.ts +1 -1
- package/lib/filter/ogc-filter-button/ogc-filter-button.component.d.ts +20 -20
- package/lib/filter/ogc-filter-form/index.d.ts +1 -1
- package/lib/filter/ogc-filter-form/ogc-filter-form.component.d.ts +65 -65
- package/lib/filter/ogc-filter-selection/index.d.ts +1 -1
- package/lib/filter/ogc-filter-selection/ogc-filter-selection.component.d.ts +93 -93
- package/lib/filter/ogc-filter-time/index.d.ts +2 -2
- package/lib/filter/ogc-filter-time/ogc-filter-time-slider.component.d.ts +39 -39
- package/lib/filter/ogc-filter-time/ogc-filter-time.component.d.ts +86 -86
- package/lib/filter/ogc-filterable-form/index.d.ts +1 -1
- package/lib/filter/ogc-filterable-form/ogc-filterable-form.component.d.ts +15 -15
- package/lib/filter/ogc-filterable-item/index.d.ts +1 -1
- package/lib/filter/ogc-filterable-item/ogc-filterable-item.component.d.ts +41 -41
- package/lib/filter/ogc-filterable-list/index.d.ts +2 -2
- package/lib/filter/ogc-filterable-list/ogc-filterable-list-binding.directive.d.ts +14 -14
- package/lib/filter/ogc-filterable-list/ogc-filterable-list.component.d.ts +10 -10
- package/lib/filter/shared/filterable-datasource.pipe.d.ts +10 -10
- package/lib/filter/shared/index.d.ts +11 -11
- package/lib/filter/shared/ogc-filter-time.service.d.ts +19 -19
- package/lib/filter/shared/ogc-filter.d.ts +29 -29
- package/lib/filter/shared/ogc-filter.enum.d.ts +27 -27
- package/lib/filter/shared/ogc-filter.interface.d.ts +200 -200
- package/lib/filter/shared/ogc-filter.service.d.ts +11 -11
- package/lib/filter/shared/spatial-filter.enum.d.ts +19 -19
- package/lib/filter/shared/spatial-filter.interface.d.ts +10 -10
- package/lib/filter/shared/spatial-filter.service.d.ts +37 -37
- package/lib/filter/shared/time-filter.enum.d.ts +10 -10
- package/lib/filter/shared/time-filter.interface.d.ts +29 -29
- package/lib/filter/shared/time-filter.service.d.ts +11 -11
- package/lib/filter/spatial-filter/spatial-filter-item/index.d.ts +1 -1
- package/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.d.ts +166 -166
- package/lib/filter/spatial-filter/spatial-filter-list/index.d.ts +1 -1
- package/lib/filter/spatial-filter/spatial-filter-list/spatial-filter-list.component.d.ts +58 -58
- package/lib/filter/spatial-filter/spatial-filter-type/index.d.ts +1 -1
- package/lib/filter/spatial-filter/spatial-filter-type/spatial-filter-type.component.d.ts +45 -45
- package/lib/filter/time-filter-button/index.d.ts +1 -1
- package/lib/filter/time-filter-button/time-filter-button.component.d.ts +20 -20
- package/lib/filter/time-filter-form/index.d.ts +1 -1
- package/lib/filter/time-filter-form/time-filter-form.component.d.ts +77 -77
- package/lib/filter/time-filter-item/index.d.ts +1 -1
- package/lib/filter/time-filter-item/time-filter-item.component.d.ts +28 -28
- package/lib/filter/time-filter-list/index.d.ts +2 -2
- package/lib/filter/time-filter-list/time-filter-list-binding.directive.d.ts +14 -14
- package/lib/filter/time-filter-list/time-filter-list.component.d.ts +12 -12
- package/lib/geo.module.d.ts +28 -28
- package/lib/geometry/geometry-form-field/geometry-form-field-input.component.d.ts +206 -206
- package/lib/geometry/geometry-form-field/geometry-form-field.component.d.ts +88 -88
- package/lib/geometry/geometry-form-field/geometry-form-field.module.d.ts +19 -19
- package/lib/geometry/geometry.module.d.ts +8 -8
- package/lib/geometry/index.d.ts +3 -3
- package/lib/geometry/shared/controls/draw.d.ts +150 -150
- package/lib/geometry/shared/controls/index.d.ts +3 -3
- package/lib/geometry/shared/controls/modify.d.ts +228 -228
- package/lib/geometry/shared/controls/slice.d.ts +99 -99
- package/lib/geometry/shared/geometry.errors.d.ts +11 -11
- package/lib/geometry/shared/geometry.interfaces.d.ts +13 -13
- package/lib/geometry/shared/geometry.utils.d.ts +45 -45
- package/lib/geometry/shared/index.d.ts +4 -4
- package/lib/import-export/export-button/export-button.component.d.ts +16 -16
- package/lib/import-export/export-button/index.d.ts +1 -1
- package/lib/import-export/import-export/import-export.component.d.ts +104 -104
- package/lib/import-export/import-export/index.d.ts +1 -1
- package/lib/import-export/import-export.module.d.ts +26 -26
- package/lib/import-export/index.d.ts +4 -4
- package/lib/import-export/shared/drop-geo-file.directive.d.ts +36 -36
- package/lib/import-export/shared/export.errors.d.ts +8 -8
- package/lib/import-export/shared/export.interface.d.ts +11 -11
- package/lib/import-export/shared/export.service.d.ts +30 -30
- package/lib/import-export/shared/export.type.d.ts +16 -16
- package/lib/import-export/shared/export.utils.d.ts +19 -19
- package/lib/import-export/shared/import.errors.d.ts +20 -20
- package/lib/import-export/shared/import.interface.d.ts +8 -8
- package/lib/import-export/shared/import.service.d.ts +31 -31
- package/lib/import-export/shared/import.utils.d.ts +18 -18
- package/lib/import-export/shared/index.d.ts +10 -10
- package/lib/import-export/style-list/index.d.ts +4 -4
- package/lib/import-export/style-list/style-list.interface.d.ts +6 -6
- package/lib/import-export/style-list/style-list.module.d.ts +8 -8
- package/lib/import-export/style-list/style-list.provider.d.ts +15 -15
- package/lib/import-export/style-list/style-list.service.d.ts +18 -18
- package/lib/layer/index.d.ts +10 -10
- package/lib/layer/layer-item/index.d.ts +1 -1
- package/lib/layer/layer-item/layer-item.component.d.ts +62 -62
- package/lib/layer/layer-legend/index.d.ts +1 -1
- package/lib/layer/layer-legend/layer-legend.component.d.ts +90 -90
- package/lib/layer/layer-legend-item/index.d.ts +1 -1
- package/lib/layer/layer-legend-item/layer-legend-item.component.d.ts +22 -22
- package/lib/layer/layer-legend-list/index.d.ts +2 -2
- package/lib/layer/layer-legend-list/layer-legend-list-binding.directive.d.ts +16 -16
- package/lib/layer/layer-legend-list/layer-legend-list.component.d.ts +31 -31
- package/lib/layer/layer-list/index.d.ts +3 -3
- package/lib/layer/layer-list/layer-list-binding.directive.d.ts +19 -19
- package/lib/layer/layer-list/layer-list.component.d.ts +127 -127
- package/lib/layer/layer-list/layer-list.enum.d.ts +15 -15
- package/lib/layer/layer-list-tool/index.d.ts +4 -4
- package/lib/layer/layer-list-tool/layer-list-tool.component.d.ts +32 -32
- package/lib/layer/layer-list-tool/layer-list-tool.enum.d.ts +5 -5
- package/lib/layer/layer-list-tool/layer-list-tool.interface.d.ts +8 -8
- package/lib/layer/layer-list-tool/layer-list-tool.service.d.ts +14 -14
- package/lib/layer/layer.module.d.ts +36 -36
- package/lib/layer/shared/clusterParam.d.ts +13 -13
- package/lib/layer/shared/index.d.ts +6 -6
- package/lib/layer/shared/layer.enums.d.ts +1 -1
- package/lib/layer/shared/layer.service.d.ts +30 -30
- package/lib/layer/shared/layers/any-layer.d.ts +6 -6
- package/lib/layer/shared/layers/any-layer.interface.d.ts +6 -6
- package/lib/layer/shared/layers/image-layer.d.ts +22 -22
- package/lib/layer/shared/layers/image-layer.interface.d.ts +19 -19
- package/lib/layer/shared/layers/index.d.ts +12 -12
- package/lib/layer/shared/layers/layer.d.ts +62 -62
- package/lib/layer/shared/layers/layer.interface.d.ts +109 -107
- package/lib/layer/shared/layers/tile-layer.d.ts +31 -31
- package/lib/layer/shared/layers/tile-layer.interface.d.ts +20 -20
- package/lib/layer/shared/layers/vector-layer.d.ts +78 -78
- package/lib/layer/shared/layers/vector-layer.interface.d.ts +41 -41
- package/lib/layer/shared/layers/vectortile-layer.d.ts +28 -28
- package/lib/layer/shared/layers/vectortile-layer.interface.d.ts +18 -18
- package/lib/layer/shared/style.service.d.ts +57 -57
- package/lib/layer/shared/vector-style.interface.d.ts +38 -38
- package/lib/layer/style-modal/index.d.ts +1 -1
- package/lib/layer/style-modal/style-modal.component.d.ts +42 -42
- package/lib/layer/track-feature-button/index.d.ts +1 -1
- package/lib/layer/track-feature-button/track-feature-button.component.d.ts +15 -15
- package/lib/layer/utils/image-watcher.d.ts +17 -17
- package/lib/layer/utils/index.d.ts +5 -5
- package/lib/layer/utils/layer.utils.d.ts +2 -2
- package/lib/layer/utils/outputLegend.d.ts +7 -7
- package/lib/layer/utils/tile-watcher.d.ts +14 -14
- package/lib/layer/utils/vector-watcher.d.ts +13 -13
- package/lib/map/baselayers-switcher/baselayers-switcher.animation.d.ts +2 -2
- package/lib/map/baselayers-switcher/baselayers-switcher.component.d.ts +21 -21
- package/lib/map/baselayers-switcher/index.d.ts +2 -2
- package/lib/map/baselayers-switcher/mini-basemap.component.d.ts +29 -29
- package/lib/map/geolocate-button/geolocate-button.component.d.ts +22 -22
- package/lib/map/geolocate-button/index.d.ts +1 -1
- package/lib/map/home-extent-button/home-extent-button.component.d.ts +20 -20
- package/lib/map/home-extent-button/index.d.ts +1 -1
- package/lib/map/index.d.ts +13 -13
- package/lib/map/info-section/index.d.ts +1 -1
- package/lib/map/info-section/info-section.component.d.ts +7 -7
- package/lib/map/map-browser/index.d.ts +1 -1
- package/lib/map/map-browser/map-browser.component.d.ts +25 -25
- package/lib/map/map-center/index.d.ts +1 -1
- package/lib/map/map-center/map-center.component.d.ts +31 -31
- package/lib/map/map.module.d.ts +28 -28
- package/lib/map/menu-button/index.d.ts +1 -1
- package/lib/map/menu-button/menu-button.component.d.ts +17 -17
- package/lib/map/offline-button/index.d.ts +1 -1
- package/lib/map/offline-button/offline-button.component.d.ts +23 -23
- package/lib/map/rotation-button/index.d.ts +1 -1
- package/lib/map/rotation-button/rotation-button.component.d.ts +17 -17
- package/lib/map/shared/controllers/controller.d.ts +29 -29
- package/lib/map/shared/controllers/geolocation.d.ts +112 -112
- package/lib/map/shared/controllers/index.d.ts +3 -3
- package/lib/map/shared/controllers/view.d.ts +200 -200
- package/lib/map/shared/hover-feature.directive.d.ts +132 -132
- package/lib/map/shared/index.d.ts +13 -13
- package/lib/map/shared/linkedLayers.utils.d.ts +17 -17
- package/lib/map/shared/map-pointer-position.directive.d.ts +71 -71
- package/lib/map/shared/map.d.ts +135 -135
- package/lib/map/shared/map.enums.d.ts +4 -4
- package/lib/map/shared/map.interface.d.ts +57 -57
- package/lib/map/shared/map.service.d.ts +19 -19
- package/lib/map/shared/map.utils.d.ts +90 -90
- package/lib/map/shared/mapOffline.directive.d.ts +21 -21
- package/lib/map/shared/projection.interfaces.d.ts +29 -29
- package/lib/map/shared/projection.service.d.ts +19 -19
- package/lib/map/shared/projection.utils.d.ts +19 -19
- package/lib/map/swipe-control/index.d.ts +1 -1
- package/lib/map/swipe-control/swipe-control.component.d.ts +97 -97
- package/lib/map/utils/layer-watcher.d.ts +20 -20
- package/lib/map/wake-lock-button/index.d.ts +1 -1
- package/lib/map/wake-lock-button/wake-lock-button.component.d.ts +30 -30
- package/lib/map/zoom-button/index.d.ts +1 -1
- package/lib/map/zoom-button/zoom-button.component.d.ts +12 -12
- package/lib/measure/index.d.ts +3 -3
- package/lib/measure/measure.module.d.ts +7 -7
- package/lib/measure/measurer/measure-format.pipe.d.ts +15 -15
- package/lib/measure/measurer/measurer-dialog.component.d.ts +14 -14
- package/lib/measure/measurer/measurer-item.component.d.ts +66 -66
- package/lib/measure/measurer/measurer.component.d.ts +405 -405
- package/lib/measure/measurer/measurer.module.d.ts +25 -25
- package/lib/measure/shared/index.d.ts +3 -3
- package/lib/measure/shared/measure.enum.d.ts +33 -33
- package/lib/measure/shared/measure.interfaces.d.ts +21 -21
- package/lib/measure/shared/measure.utils.d.ts +180 -180
- package/lib/metadata/index.d.ts +2 -2
- package/lib/metadata/metadata-button/index.d.ts +1 -1
- package/lib/metadata/metadata-button/metadata-button.component.d.ts +26 -26
- package/lib/metadata/metadata.module.d.ts +15 -15
- package/lib/metadata/shared/index.d.ts +2 -2
- package/lib/metadata/shared/metadata.interface.d.ts +13 -13
- package/lib/metadata/shared/metadata.service.d.ts +8 -8
- package/lib/offline/geoDB/configFileToGeoDB.service.d.ts +14 -14
- package/lib/offline/geoDB/geoDB.enums.d.ts +4 -4
- package/lib/offline/geoDB/geoDB.interface.d.ts +19 -19
- package/lib/offline/geoDB/geoDB.service.d.ts +37 -37
- package/lib/offline/geoDB/index.d.ts +4 -4
- package/lib/offline/index.d.ts +2 -2
- package/lib/offline/shared/geo-network.service.d.ts +28 -28
- package/lib/offline/shared/index.d.ts +1 -1
- package/lib/overlay/index.d.ts +1 -1
- package/lib/overlay/overlay.module.d.ts +9 -9
- package/lib/overlay/shared/index.d.ts +6 -6
- package/lib/overlay/shared/overlay-marker-style.utils.d.ts +11 -11
- package/lib/overlay/shared/overlay.d.ts +81 -81
- package/lib/overlay/shared/overlay.directive.d.ts +18 -18
- package/lib/overlay/shared/overlay.enum.d.ts +6 -6
- package/lib/overlay/shared/overlay.service.d.ts +14 -14
- package/lib/overlay/shared/overlay.utils.d.ts +17 -17
- package/lib/print/index.d.ts +3 -3
- package/lib/print/print/print.component.d.ts +35 -35
- package/lib/print/print-form/index.d.ts +1 -1
- package/lib/print/print-form/print-form.component.d.ts +97 -97
- package/lib/print/print.module.d.ts +19 -19
- package/lib/print/shared/geopdf.d.ts +1 -1
- package/lib/print/shared/index.d.ts +4 -4
- package/lib/print/shared/print.interface.d.ts +22 -22
- package/lib/print/shared/print.service.d.ts +168 -168
- package/lib/print/shared/print.type.d.ts +45 -45
- package/lib/query/index.d.ts +1 -1
- package/lib/query/query.module.d.ts +11 -11
- package/lib/query/shared/index.d.ts +6 -6
- package/lib/query/shared/query-search-source.d.ts +17 -17
- package/lib/query/shared/query-search-source.providers.d.ts +17 -17
- package/lib/query/shared/query.directive.d.ts +105 -105
- package/lib/query/shared/query.enums.d.ts +26 -26
- package/lib/query/shared/query.interfaces.d.ts +35 -35
- package/lib/query/shared/query.service.d.ts +56 -56
- package/lib/query/shared/query.utils.d.ts +27 -27
- package/lib/search/index.d.ts +11 -11
- package/lib/search/search-bar/search-bar.component.d.ts +230 -230
- package/lib/search/search-bar/search-bar.module.d.ts +23 -23
- package/lib/search/search-bar/search-url-param.directive.d.ts +13 -13
- package/lib/search/search-results/save-feature-dialog.component.d.ts +32 -32
- package/lib/search/search-results/search-results-add-button.component.d.ts +76 -76
- package/lib/search/search-results/search-results-item.component.d.ts +47 -47
- package/lib/search/search-results/search-results.component.d.ts +161 -161
- package/lib/search/search-results/search-results.module.d.ts +28 -28
- package/lib/search/search-selector/search-selector.component.d.ts +58 -58
- package/lib/search/search-selector/search-selector.module.d.ts +19 -19
- package/lib/search/search-settings/search-settings.component.d.ts +102 -102
- package/lib/search/search-settings/search-settings.module.d.ts +20 -20
- package/lib/search/search.module.d.ts +14 -14
- package/lib/search/shared/index.d.ts +8 -8
- package/lib/search/shared/search-pointer-summary.directive.d.ts +133 -133
- package/lib/search/shared/search-source-service.providers.d.ts +15 -15
- package/lib/search/shared/search-source.service.d.ts +32 -32
- package/lib/search/shared/search.enums.d.ts +1 -1
- package/lib/search/shared/search.interfaces.d.ts +29 -29
- package/lib/search/shared/search.service.d.ts +53 -53
- package/lib/search/shared/search.utils.d.ts +39 -39
- package/lib/search/shared/sources/coordinates.d.ts +40 -40
- package/lib/search/shared/sources/coordinates.interfaces.d.ts +12 -12
- package/lib/search/shared/sources/coordinates.providers.d.ts +31 -31
- package/lib/search/shared/sources/icherche.d.ts +96 -96
- package/lib/search/shared/sources/icherche.interfaces.d.ts +30 -30
- package/lib/search/shared/sources/icherche.providers.d.ts +46 -46
- package/lib/search/shared/sources/ilayer.d.ts +55 -55
- package/lib/search/shared/sources/ilayer.interfaces.d.ts +47 -47
- package/lib/search/shared/sources/ilayer.providers.d.ts +31 -31
- package/lib/search/shared/sources/index.d.ts +17 -17
- package/lib/search/shared/sources/nominatim.d.ts +45 -45
- package/lib/search/shared/sources/nominatim.interfaces.d.ts +10 -10
- package/lib/search/shared/sources/nominatim.providers.d.ts +18 -18
- package/lib/search/shared/sources/source.d.ts +108 -108
- package/lib/search/shared/sources/source.interfaces.d.ts +47 -47
- package/lib/search/shared/sources/storedqueries.d.ts +73 -73
- package/lib/search/shared/sources/storedqueries.interfaces.d.ts +42 -42
- package/lib/search/shared/sources/storedqueries.providers.d.ts +32 -32
- package/lib/toast/index.d.ts +1 -1
- package/lib/toast/toast.component.d.ts +33 -33
- package/lib/toast/toast.module.d.ts +14 -14
- package/lib/utils/commonVectorStyle.d.ts +14 -14
- package/lib/utils/commonVectorStyle.interface.d.ts +16 -16
- package/lib/utils/googleLinks.d.ts +5 -5
- package/lib/utils/id-generator.d.ts +54 -54
- package/lib/utils/index.d.ts +5 -5
- package/lib/utils/osmLinks.d.ts +4 -4
- package/lib/wkt/index.d.ts +1 -1
- package/lib/wkt/shared/index.d.ts +1 -1
- package/lib/wkt/shared/wkt.service.d.ts +19 -19
- package/lib/wkt/wkt.module.d.ts +8 -8
- package/lib/workspace/confirmation-popup/confirmation-popup.component.d.ts +23 -23
- package/lib/workspace/confirmation-popup/confirmation-popup.module.d.ts +14 -14
- package/lib/workspace/confirmation-popup/index.d.ts +2 -2
- package/lib/workspace/index.d.ts +7 -7
- package/lib/workspace/shared/edition-workspace.d.ts +82 -82
- package/lib/workspace/shared/edition-workspace.service.d.ts +52 -52
- package/lib/workspace/shared/feature-workspace.d.ts +18 -18
- package/lib/workspace/shared/feature-workspace.service.d.ts +19 -19
- package/lib/workspace/shared/index.d.ts +7 -7
- package/lib/workspace/shared/wfs-workspace.d.ts +18 -18
- package/lib/workspace/shared/wfs-workspace.service.d.ts +19 -19
- package/lib/workspace/shared/wms-workspace.service.d.ts +22 -22
- package/lib/workspace/shared/workspace.utils.d.ts +10 -10
- package/lib/workspace/widgets/index.d.ts +3 -3
- package/lib/workspace/widgets/ogc-filter/ogc-filter.component.d.ts +29 -29
- package/lib/workspace/widgets/ogc-filter/ogc-filter.module.d.ts +14 -14
- package/lib/workspace/widgets/widgets.d.ts +9 -9
- package/lib/workspace/workspace-selector/workspace-selector.directive.d.ts +32 -32
- package/lib/workspace/workspace-selector/workspace-selector.module.d.ts +11 -11
- package/lib/workspace/workspace-updator/workspace-updator.directive.d.ts +26 -26
- package/lib/workspace/workspace-updator/workspace-updator.module.d.ts +11 -11
- package/lib/workspace/workspace.module.d.ts +14 -14
- package/package.json +4 -4
- package/public_api.d.ts +51 -51
|
@@ -1,734 +1,734 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';
|
|
2
|
-
import { MatSlider } from '@angular/material/slider';
|
|
3
|
-
import { default as moment } from 'moment';
|
|
4
|
-
import { TimeFilterType, TimeFilterStyle } from '../shared/time-filter.enum';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/material/core";
|
|
7
|
-
import * as i2 from "@angular/common";
|
|
8
|
-
import * as i3 from "@angular/forms";
|
|
9
|
-
import * as i4 from "@angular/material/icon";
|
|
10
|
-
import * as i5 from "@angular/material/button";
|
|
11
|
-
import * as i6 from "@angular/material/slider";
|
|
12
|
-
import * as i7 from "@angular/material/slide-toggle";
|
|
13
|
-
import * as i8 from "@angular/material/form-field";
|
|
14
|
-
import * as i9 from "@angular/material/input";
|
|
15
|
-
import * as i10 from "@angular/material/select";
|
|
16
|
-
import * as i11 from "@angular/material/tooltip";
|
|
17
|
-
import * as i12 from "@mat-datetimepicker/core";
|
|
18
|
-
import * as i13 from "@ngx-translate/core";
|
|
19
|
-
function TimeFilterFormComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
21
|
-
i0.ɵɵelementStart(0, "div", 3)(1, "mat-form-field");
|
|
22
|
-
i0.ɵɵelement(2, "mat-datetimepicker-toggle", 4)(3, "mat-datetimepicker", 5, 6);
|
|
23
|
-
i0.ɵɵelementStart(5, "input", 7);
|
|
24
|
-
i0.ɵɵlistener("ngModelChange", function TimeFilterFormComponent_div_0_div_1_Template_input_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r7.date = $event); })("dateChange", function TimeFilterFormComponent_div_0_div_1_Template_input_dateChange_5_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r9 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r9.handleDateChange($event)); });
|
|
25
|
-
i0.ɵɵpipe(6, "translate");
|
|
26
|
-
i0.ɵɵelementEnd()()();
|
|
27
|
-
} if (rf & 2) {
|
|
28
|
-
const _r6 = i0.ɵɵreference(4);
|
|
29
|
-
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
30
|
-
i0.ɵɵadvance(2);
|
|
31
|
-
i0.ɵɵproperty("for", _r6);
|
|
32
|
-
i0.ɵɵadvance(1);
|
|
33
|
-
i0.ɵɵpropertyInterpolate("type", ctx_r4.type);
|
|
34
|
-
i0.ɵɵadvance(2);
|
|
35
|
-
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(6, 7, "igo.geo.timeFilter.date"));
|
|
36
|
-
i0.ɵɵproperty("matDatetimepicker", _r6)("ngModel", ctx_r4.date)("min", ctx_r4.min)("max", ctx_r4.max);
|
|
37
|
-
} }
|
|
38
|
-
function TimeFilterFormComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
-
const _r13 = i0.ɵɵgetCurrentView();
|
|
40
|
-
i0.ɵɵelementStart(0, "div")(1, "div", 8)(2, "mat-form-field");
|
|
41
|
-
i0.ɵɵelement(3, "mat-datetimepicker-toggle", 4)(4, "mat-datetimepicker", 5, 9);
|
|
42
|
-
i0.ɵɵelementStart(6, "input", 10);
|
|
43
|
-
i0.ɵɵlistener("ngModelChange", function TimeFilterFormComponent_div_0_div_2_Template_input_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.startDate = $event); })("input", function TimeFilterFormComponent_div_0_div_2_Template_input_input_6_listener() { i0.ɵɵrestoreView(_r13); const ctx_r14 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r14.startDate); })("dateChange", function TimeFilterFormComponent_div_0_div_2_Template_input_dateChange_6_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r15 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r15.handleDateChange($event)); });
|
|
44
|
-
i0.ɵɵpipe(7, "translate");
|
|
45
|
-
i0.ɵɵelementEnd()()();
|
|
46
|
-
i0.ɵɵelementStart(8, "div", 8)(9, "mat-form-field");
|
|
47
|
-
i0.ɵɵelement(10, "mat-datetimepicker-toggle", 4)(11, "mat-datetimepicker", 5, 11);
|
|
48
|
-
i0.ɵɵelementStart(13, "input", 7);
|
|
49
|
-
i0.ɵɵlistener("ngModelChange", function TimeFilterFormComponent_div_0_div_2_Template_input_ngModelChange_13_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r16 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r16.endDate = $event); })("dateChange", function TimeFilterFormComponent_div_0_div_2_Template_input_dateChange_13_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r17 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r17.handleDateChange($event)); });
|
|
50
|
-
i0.ɵɵpipe(14, "translate");
|
|
51
|
-
i0.ɵɵelementEnd()()()();
|
|
52
|
-
} if (rf & 2) {
|
|
53
|
-
const _r10 = i0.ɵɵreference(5);
|
|
54
|
-
const _r11 = i0.ɵɵreference(12);
|
|
55
|
-
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
56
|
-
i0.ɵɵadvance(3);
|
|
57
|
-
i0.ɵɵproperty("for", _r10);
|
|
58
|
-
i0.ɵɵadvance(1);
|
|
59
|
-
i0.ɵɵpropertyInterpolate("type", ctx_r5.type);
|
|
60
|
-
i0.ɵɵadvance(2);
|
|
61
|
-
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(7, 14, "igo.geo.timeFilter.startDate"));
|
|
62
|
-
i0.ɵɵproperty("matDatetimepicker", _r10)("ngModel", ctx_r5.startDate)("min", ctx_r5.min)("max", ctx_r5.getRangeMaxDate());
|
|
63
|
-
i0.ɵɵadvance(4);
|
|
64
|
-
i0.ɵɵproperty("for", _r11);
|
|
65
|
-
i0.ɵɵadvance(1);
|
|
66
|
-
i0.ɵɵpropertyInterpolate("type", ctx_r5.type);
|
|
67
|
-
i0.ɵɵadvance(2);
|
|
68
|
-
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(14, 16, "igo.geo.timeFilter.endDate"));
|
|
69
|
-
i0.ɵɵproperty("matDatetimepicker", _r11)("ngModel", ctx_r5.endDate)("min", ctx_r5.getRangeMinDate())("max", ctx_r5.max);
|
|
70
|
-
} }
|
|
71
|
-
function TimeFilterFormComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
72
|
-
i0.ɵɵelementStart(0, "div");
|
|
73
|
-
i0.ɵɵtemplate(1, TimeFilterFormComponent_div_0_div_1_Template, 7, 9, "div", 2);
|
|
74
|
-
i0.ɵɵtemplate(2, TimeFilterFormComponent_div_0_div_2_Template, 15, 18, "div", 0);
|
|
75
|
-
i0.ɵɵelementEnd();
|
|
76
|
-
} if (rf & 2) {
|
|
77
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
78
|
-
i0.ɵɵadvance(1);
|
|
79
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.isRange);
|
|
80
|
-
i0.ɵɵadvance(1);
|
|
81
|
-
i0.ɵɵproperty("ngIf", ctx_r0.isRange);
|
|
82
|
-
} }
|
|
83
|
-
function TimeFilterFormComponent_div_1_div_1_mat_option_4_Template(rf, ctx) { if (rf & 1) {
|
|
84
|
-
i0.ɵɵelementStart(0, "mat-option", 14);
|
|
85
|
-
i0.ɵɵtext(1);
|
|
86
|
-
i0.ɵɵelementEnd();
|
|
87
|
-
} if (rf & 2) {
|
|
88
|
-
const year_r21 = ctx.$implicit;
|
|
89
|
-
i0.ɵɵproperty("value", year_r21);
|
|
90
|
-
i0.ɵɵadvance(1);
|
|
91
|
-
i0.ɵɵtextInterpolate(year_r21);
|
|
92
|
-
} }
|
|
93
|
-
function TimeFilterFormComponent_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
94
|
-
const _r23 = i0.ɵɵgetCurrentView();
|
|
95
|
-
i0.ɵɵelementStart(0, "div", 3)(1, "mat-form-field")(2, "mat-select", 12);
|
|
96
|
-
i0.ɵɵlistener("ngModelChange", function TimeFilterFormComponent_div_1_div_1_Template_mat_select_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r22 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r22.year = $event); })("selectionChange", function TimeFilterFormComponent_div_1_div_1_Template_mat_select_selectionChange_2_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r24 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r24.handleYearChange($event)); });
|
|
97
|
-
i0.ɵɵpipe(3, "translate");
|
|
98
|
-
i0.ɵɵtemplate(4, TimeFilterFormComponent_div_1_div_1_mat_option_4_Template, 2, 2, "mat-option", 13);
|
|
99
|
-
i0.ɵɵelementEnd()()();
|
|
100
|
-
} if (rf & 2) {
|
|
101
|
-
const ctx_r18 = i0.ɵɵnextContext(2);
|
|
102
|
-
i0.ɵɵadvance(2);
|
|
103
|
-
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(3, 3, "igo.geo.timeFilter.date"));
|
|
104
|
-
i0.ɵɵproperty("ngModel", ctx_r18.year);
|
|
105
|
-
i0.ɵɵadvance(2);
|
|
106
|
-
i0.ɵɵproperty("ngForOf", ctx_r18.listYears);
|
|
107
|
-
} }
|
|
108
|
-
function TimeFilterFormComponent_div_1_div_2_mat_option_5_Template(rf, ctx) { if (rf & 1) {
|
|
109
|
-
i0.ɵɵelementStart(0, "mat-option", 14);
|
|
110
|
-
i0.ɵɵtext(1);
|
|
111
|
-
i0.ɵɵelementEnd();
|
|
112
|
-
} if (rf & 2) {
|
|
113
|
-
const startYear_r27 = ctx.$implicit;
|
|
114
|
-
i0.ɵɵproperty("value", startYear_r27);
|
|
115
|
-
i0.ɵɵadvance(1);
|
|
116
|
-
i0.ɵɵtextInterpolate(startYear_r27);
|
|
117
|
-
} }
|
|
118
|
-
function TimeFilterFormComponent_div_1_div_2_mat_option_10_Template(rf, ctx) { if (rf & 1) {
|
|
119
|
-
i0.ɵɵelementStart(0, "mat-option", 14);
|
|
120
|
-
i0.ɵɵtext(1);
|
|
121
|
-
i0.ɵɵelementEnd();
|
|
122
|
-
} if (rf & 2) {
|
|
123
|
-
const endYear_r28 = ctx.$implicit;
|
|
124
|
-
i0.ɵɵproperty("value", endYear_r28);
|
|
125
|
-
i0.ɵɵadvance(1);
|
|
126
|
-
i0.ɵɵtextInterpolate(endYear_r28);
|
|
127
|
-
} }
|
|
128
|
-
function TimeFilterFormComponent_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
129
|
-
const _r30 = i0.ɵɵgetCurrentView();
|
|
130
|
-
i0.ɵɵelementStart(0, "div")(1, "div", 8)(2, "mat-form-field")(3, "mat-select", 12);
|
|
131
|
-
i0.ɵɵlistener("ngModelChange", function TimeFilterFormComponent_div_1_div_2_Template_mat_select_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r29 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r29.startYear = $event); })("selectionChange", function TimeFilterFormComponent_div_1_div_2_Template_mat_select_selectionChange_3_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r31 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r31.handleYearChange($event)); });
|
|
132
|
-
i0.ɵɵpipe(4, "translate");
|
|
133
|
-
i0.ɵɵtemplate(5, TimeFilterFormComponent_div_1_div_2_mat_option_5_Template, 2, 2, "mat-option", 13);
|
|
134
|
-
i0.ɵɵelementEnd()()();
|
|
135
|
-
i0.ɵɵelementStart(6, "div", 8)(7, "mat-form-field")(8, "mat-select", 12);
|
|
136
|
-
i0.ɵɵlistener("ngModelChange", function TimeFilterFormComponent_div_1_div_2_Template_mat_select_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r32 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r32.endYear = $event); })("selectionChange", function TimeFilterFormComponent_div_1_div_2_Template_mat_select_selectionChange_8_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r33 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r33.handleYearChange($event)); });
|
|
137
|
-
i0.ɵɵpipe(9, "translate");
|
|
138
|
-
i0.ɵɵtemplate(10, TimeFilterFormComponent_div_1_div_2_mat_option_10_Template, 2, 2, "mat-option", 13);
|
|
139
|
-
i0.ɵɵelementEnd()()()();
|
|
140
|
-
} if (rf & 2) {
|
|
141
|
-
const ctx_r19 = i0.ɵɵnextContext(2);
|
|
142
|
-
i0.ɵɵadvance(3);
|
|
143
|
-
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(4, 6, "igo.geo.timeFilter.startDate"));
|
|
144
|
-
i0.ɵɵproperty("ngModel", ctx_r19.startYear);
|
|
145
|
-
i0.ɵɵadvance(2);
|
|
146
|
-
i0.ɵɵproperty("ngForOf", ctx_r19.startListYears);
|
|
147
|
-
i0.ɵɵadvance(3);
|
|
148
|
-
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(9, 8, "igo.geo.timeFilter.endDate"));
|
|
149
|
-
i0.ɵɵproperty("ngModel", ctx_r19.endYear);
|
|
150
|
-
i0.ɵɵadvance(2);
|
|
151
|
-
i0.ɵɵproperty("ngForOf", ctx_r19.endListYears);
|
|
152
|
-
} }
|
|
153
|
-
function TimeFilterFormComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
154
|
-
i0.ɵɵelementStart(0, "div");
|
|
155
|
-
i0.ɵɵtemplate(1, TimeFilterFormComponent_div_1_div_1_Template, 5, 5, "div", 2);
|
|
156
|
-
i0.ɵɵtemplate(2, TimeFilterFormComponent_div_1_div_2_Template, 11, 10, "div", 0);
|
|
157
|
-
i0.ɵɵelementEnd();
|
|
158
|
-
} if (rf & 2) {
|
|
159
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
160
|
-
i0.ɵɵadvance(1);
|
|
161
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.isRange);
|
|
162
|
-
i0.ɵɵadvance(1);
|
|
163
|
-
i0.ɵɵproperty("ngIf", ctx_r1.isRange);
|
|
164
|
-
} }
|
|
165
|
-
function TimeFilterFormComponent_div_3_p_6_Template(rf, ctx) { if (rf & 1) {
|
|
166
|
-
i0.ɵɵelementStart(0, "p", 23);
|
|
167
|
-
i0.ɵɵtext(1);
|
|
168
|
-
i0.ɵɵelementEnd();
|
|
169
|
-
} if (rf & 2) {
|
|
170
|
-
const ctx_r34 = i0.ɵɵnextContext(2);
|
|
171
|
-
i0.ɵɵadvance(1);
|
|
172
|
-
i0.ɵɵtextInterpolate(ctx_r34.year);
|
|
173
|
-
} }
|
|
174
|
-
function TimeFilterFormComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
175
|
-
const _r37 = i0.ɵɵgetCurrentView();
|
|
176
|
-
i0.ɵɵelementStart(0, "div", 15)(1, "span");
|
|
177
|
-
i0.ɵɵtext(2);
|
|
178
|
-
i0.ɵɵelementEnd();
|
|
179
|
-
i0.ɵɵelementStart(3, "mat-slider", 16);
|
|
180
|
-
i0.ɵɵlistener("input", function TimeFilterFormComponent_div_3_Template_mat_slider_input_3_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r36 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r36.handleSliderYearChange($event)); })("change", function TimeFilterFormComponent_div_3_Template_mat_slider_change_3_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r38 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r38.handleSliderYearChange($event)); });
|
|
181
|
-
i0.ɵɵelementEnd();
|
|
182
|
-
i0.ɵɵelementStart(4, "span");
|
|
183
|
-
i0.ɵɵtext(5);
|
|
184
|
-
i0.ɵɵelementEnd();
|
|
185
|
-
i0.ɵɵtemplate(6, TimeFilterFormComponent_div_3_p_6_Template, 2, 1, "p", 17);
|
|
186
|
-
i0.ɵɵelementStart(7, "div", 18, 19)(9, "mat-slide-toggle", 20);
|
|
187
|
-
i0.ɵɵlistener("change", function TimeFilterFormComponent_div_3_Template_mat_slide_toggle_change_9_listener() { i0.ɵɵrestoreView(_r37); const ctx_r39 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r39.toggleFilterState()); });
|
|
188
|
-
i0.ɵɵpipe(10, "translate");
|
|
189
|
-
i0.ɵɵelementEnd();
|
|
190
|
-
i0.ɵɵelementStart(11, "button", 21);
|
|
191
|
-
i0.ɵɵlistener("click", function TimeFilterFormComponent_div_3_Template_button_click_11_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r40 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r40.playYear($event)); });
|
|
192
|
-
i0.ɵɵelement(12, "mat-icon", 22);
|
|
193
|
-
i0.ɵɵelementEnd();
|
|
194
|
-
i0.ɵɵelementStart(13, "button", 21);
|
|
195
|
-
i0.ɵɵlistener("click", function TimeFilterFormComponent_div_3_Template_button_click_13_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r41 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r41.resetFilter($event)); });
|
|
196
|
-
i0.ɵɵelement(14, "mat-icon", 22);
|
|
197
|
-
i0.ɵɵelementEnd()()();
|
|
198
|
-
} if (rf & 2) {
|
|
199
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
200
|
-
i0.ɵɵadvance(2);
|
|
201
|
-
i0.ɵɵtextInterpolate(ctx_r2.startYear);
|
|
202
|
-
i0.ɵɵadvance(1);
|
|
203
|
-
i0.ɵɵpropertyInterpolate("step", ctx_r2.step);
|
|
204
|
-
i0.ɵɵproperty("min", ctx_r2.startYear)("max", ctx_r2.endYear)("value", ctx_r2.handleSliderValue())("color", ctx_r2.color)("disabled", !ctx_r2.options.enabled || !ctx_r2.layer.visible);
|
|
205
|
-
i0.ɵɵadvance(2);
|
|
206
|
-
i0.ɵɵtextInterpolate(ctx_r2.endYear);
|
|
207
|
-
i0.ɵɵadvance(1);
|
|
208
|
-
i0.ɵɵproperty("ngIf", ctx_r2.options.enabled);
|
|
209
|
-
i0.ɵɵadvance(3);
|
|
210
|
-
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(10, 17, "igo.geo.filter.toggleFilterState"))("color", ctx_r2.color)("checked", ctx_r2.options.enabled)("disabled", !ctx_r2.layer.visible);
|
|
211
|
-
i0.ɵɵadvance(2);
|
|
212
|
-
i0.ɵɵproperty("disabled", !ctx_r2.options.enabled || !ctx_r2.layer.visible);
|
|
213
|
-
i0.ɵɵadvance(1);
|
|
214
|
-
i0.ɵɵpropertyInterpolate("svgIcon", ctx_r2.playIcon);
|
|
215
|
-
i0.ɵɵadvance(1);
|
|
216
|
-
i0.ɵɵproperty("disabled", !ctx_r2.options.enabled || !ctx_r2.layer.visible);
|
|
217
|
-
i0.ɵɵadvance(1);
|
|
218
|
-
i0.ɵɵpropertyInterpolate("svgIcon", ctx_r2.resetIcon);
|
|
219
|
-
} }
|
|
220
|
-
function TimeFilterFormComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
221
|
-
const _r43 = i0.ɵɵgetCurrentView();
|
|
222
|
-
i0.ɵɵelementStart(0, "div", 3)(1, "mat-slider", 24);
|
|
223
|
-
i0.ɵɵlistener("input", function TimeFilterFormComponent_div_4_Template_mat_slider_input_1_listener($event) { i0.ɵɵrestoreView(_r43); const ctx_r42 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r42.handleSliderDateChange($event)); })("selectionChange", function TimeFilterFormComponent_div_4_Template_mat_slider_selectionChange_1_listener($event) { i0.ɵɵrestoreView(_r43); const ctx_r44 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r44.handleSliderDateChange($event)); });
|
|
224
|
-
i0.ɵɵelementEnd();
|
|
225
|
-
i0.ɵɵelementStart(2, "p", 23);
|
|
226
|
-
i0.ɵɵtext(3);
|
|
227
|
-
i0.ɵɵelementEnd();
|
|
228
|
-
i0.ɵɵelementStart(4, "button", 25);
|
|
229
|
-
i0.ɵɵlistener("click", function TimeFilterFormComponent_div_4_Template_button_click_4_listener($event) { i0.ɵɵrestoreView(_r43); const ctx_r45 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r45.playFilter($event)); });
|
|
230
|
-
i0.ɵɵelement(5, "mat-icon", 22);
|
|
231
|
-
i0.ɵɵelementEnd()();
|
|
232
|
-
} if (rf & 2) {
|
|
233
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
234
|
-
i0.ɵɵadvance(1);
|
|
235
|
-
i0.ɵɵpropertyInterpolate("step", ctx_r3.step);
|
|
236
|
-
i0.ɵɵproperty("min", ctx_r3.dateToNumber(ctx_r3.min))("max", ctx_r3.dateToNumber(ctx_r3.max))("value", ctx_r3.handleSliderValue());
|
|
237
|
-
i0.ɵɵadvance(2);
|
|
238
|
-
i0.ɵɵtextInterpolate(ctx_r3.handleSliderTooltip());
|
|
239
|
-
i0.ɵɵadvance(2);
|
|
240
|
-
i0.ɵɵpropertyInterpolate("svgIcon", ctx_r3.playIcon);
|
|
241
|
-
} }
|
|
242
|
-
export class TimeFilterFormComponent {
|
|
243
|
-
constructor(dateAdapter) {
|
|
244
|
-
this.dateAdapter = dateAdapter;
|
|
245
|
-
this.color = 'primary';
|
|
246
|
-
this.listYears = [];
|
|
247
|
-
this.startListYears = [];
|
|
248
|
-
this.endListYears = [];
|
|
249
|
-
this.playIcon = 'play-circle';
|
|
250
|
-
this.resetIcon = 'replay';
|
|
251
|
-
this.change = new EventEmitter();
|
|
252
|
-
this.yearChange = new EventEmitter();
|
|
253
|
-
this.dateAdapter.setLocale('fr');
|
|
254
|
-
}
|
|
255
|
-
set currentValue(value) {
|
|
256
|
-
if (value) {
|
|
257
|
-
if (this.type !== TimeFilterType.YEAR) {
|
|
258
|
-
const valueArray = value.split('/');
|
|
259
|
-
if (valueArray.length > 0) {
|
|
260
|
-
const startDate = new Date(valueArray[0]);
|
|
261
|
-
const endDate = new Date(valueArray[1]);
|
|
262
|
-
if (!isNaN(startDate.valueOf())) {
|
|
263
|
-
this.startDate = startDate;
|
|
264
|
-
}
|
|
265
|
-
if (!isNaN(endDate.valueOf())) {
|
|
266
|
-
this.endDate = endDate;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
get type() {
|
|
273
|
-
return this.options.type === undefined
|
|
274
|
-
? TimeFilterType.DATE
|
|
275
|
-
: this.options.type;
|
|
276
|
-
}
|
|
277
|
-
get isRange() {
|
|
278
|
-
return this.options.range === undefined ||
|
|
279
|
-
this.options.style === TimeFilterStyle.SLIDER
|
|
280
|
-
? false
|
|
281
|
-
: this.options.range;
|
|
282
|
-
}
|
|
283
|
-
get style() {
|
|
284
|
-
return this.options.style === undefined
|
|
285
|
-
? TimeFilterStyle.SLIDER
|
|
286
|
-
: this.options.style;
|
|
287
|
-
}
|
|
288
|
-
get step() {
|
|
289
|
-
let step = 10800000;
|
|
290
|
-
if (this.options.step === undefined) {
|
|
291
|
-
switch (this.type) {
|
|
292
|
-
case TimeFilterType.DATE:
|
|
293
|
-
case TimeFilterType.DATETIME:
|
|
294
|
-
step = 10800000;
|
|
295
|
-
break;
|
|
296
|
-
case TimeFilterType.TIME:
|
|
297
|
-
step = 3600000;
|
|
298
|
-
break;
|
|
299
|
-
case TimeFilterType.YEAR:
|
|
300
|
-
step = 31536000000;
|
|
301
|
-
break;
|
|
302
|
-
default:
|
|
303
|
-
step = 10800000;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
else {
|
|
307
|
-
step = this.getStepDefinition(this.options.step);
|
|
308
|
-
}
|
|
309
|
-
return step;
|
|
310
|
-
}
|
|
311
|
-
get timeInterval() {
|
|
312
|
-
return this.options.timeInterval === undefined
|
|
313
|
-
? 2000
|
|
314
|
-
: this.options.timeInterval;
|
|
315
|
-
}
|
|
316
|
-
get min() {
|
|
317
|
-
if (this.options.min) {
|
|
318
|
-
const min = new Date(this.options.min);
|
|
319
|
-
return new Date(min.getTime() + min.getTimezoneOffset() * 60000);
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
return undefined;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
get max() {
|
|
326
|
-
if (this.options.max) {
|
|
327
|
-
const max = new Date(this.options.max);
|
|
328
|
-
return new Date(max.getTime() + max.getTimezoneOffset() * 60000);
|
|
329
|
-
}
|
|
330
|
-
else {
|
|
331
|
-
return undefined;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
get is() {
|
|
335
|
-
return this.options.range === undefined ? false : this.options.range;
|
|
336
|
-
}
|
|
337
|
-
ngOnInit() {
|
|
338
|
-
if (this.startDate === undefined) {
|
|
339
|
-
this.startDate = new Date(this.min);
|
|
340
|
-
}
|
|
341
|
-
if (this.endDate === undefined) {
|
|
342
|
-
this.endDate = new Date(this.max);
|
|
343
|
-
}
|
|
344
|
-
if (this.startYear === undefined) {
|
|
345
|
-
this.startYear = new Date(this.startDate).getFullYear();
|
|
346
|
-
this.initStartYear = this.startYear;
|
|
347
|
-
}
|
|
348
|
-
if (this.endYear === undefined) {
|
|
349
|
-
this.endYear = new Date(this.endDate).getFullYear();
|
|
350
|
-
this.initEndYear = this.endYear;
|
|
351
|
-
}
|
|
352
|
-
if (!this.isRange) {
|
|
353
|
-
for (let i = this.startYear; i <= this.endYear + 1; i++) {
|
|
354
|
-
this.listYears.push(i);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
for (let i = this.startYear; i < this.endYear; i++) {
|
|
359
|
-
this.startListYears.push(i);
|
|
360
|
-
}
|
|
361
|
-
for (let i = this.startYear + 1; i <= this.endYear; i++) {
|
|
362
|
-
this.endListYears.push(i);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
this.options.enabled =
|
|
366
|
-
this.options.enabled === undefined ? true : this.options.enabled;
|
|
367
|
-
this.checkFilterValue();
|
|
368
|
-
if (this.options.enabled) {
|
|
369
|
-
if (!this.isRange && this.style === 'slider' && this.type === 'year') {
|
|
370
|
-
this.yearChange.emit(this.year);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
else {
|
|
374
|
-
this.storeCurrentFilterValue();
|
|
375
|
-
this.yearChange.emit(undefined); // TODO: FIX THIS for ALL OTHER TYPES STYLES OR RANGE.
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
storeCurrentFilterValue() {
|
|
379
|
-
// TODO: FIX THIS for ALL OTHER TYPES STYLES OR RANGE.
|
|
380
|
-
if (!this.isRange &&
|
|
381
|
-
this.style === TimeFilterStyle.SLIDER &&
|
|
382
|
-
this.type === TimeFilterType.YEAR) {
|
|
383
|
-
this.options.value = this.year.toString();
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
checkFilterValue() {
|
|
387
|
-
const olSource = this.layer.dataSource.ol;
|
|
388
|
-
const timeFromWms = olSource.getParams().TIME;
|
|
389
|
-
if (!this.isRange &&
|
|
390
|
-
this.style === TimeFilterStyle.SLIDER &&
|
|
391
|
-
this.type === TimeFilterType.YEAR) {
|
|
392
|
-
if (timeFromWms) {
|
|
393
|
-
this.year = new Date(timeFromWms.toString()).getFullYear() + 1;
|
|
394
|
-
}
|
|
395
|
-
else if (this.options.value) {
|
|
396
|
-
this.year = new Date(this.options.value.toString()).getFullYear() + 1;
|
|
397
|
-
}
|
|
398
|
-
else {
|
|
399
|
-
this.year = new Date(this.min).getFullYear() + 1;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
else if (this.isRange &&
|
|
403
|
-
this.style === TimeFilterStyle.CALENDAR &&
|
|
404
|
-
this.type === TimeFilterType.YEAR) {
|
|
405
|
-
if (timeFromWms) {
|
|
406
|
-
this.startYear = parseInt(timeFromWms.substr(0, 4), 10);
|
|
407
|
-
this.endYear = parseInt(timeFromWms.substr(5, 4), 10);
|
|
408
|
-
const newStartListYears = [];
|
|
409
|
-
const newEndListYears = [];
|
|
410
|
-
for (let i = this.initStartYear; i < this.endYear; i++) {
|
|
411
|
-
newStartListYears.push(i);
|
|
412
|
-
}
|
|
413
|
-
for (let i = this.startYear + 1; i <= this.initEndYear; i++) {
|
|
414
|
-
newEndListYears.push(i);
|
|
415
|
-
}
|
|
416
|
-
this.startListYears = newStartListYears;
|
|
417
|
-
this.endListYears = newEndListYears;
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
// TODO: FIX THIS for ALL OTHER TYPES STYLES OR RANGE.
|
|
421
|
-
}
|
|
422
|
-
handleDateChange(event) {
|
|
423
|
-
this.setupDateOutput();
|
|
424
|
-
this.applyTypeChange();
|
|
425
|
-
// Only if is range, use 2 dates to make the range
|
|
426
|
-
if (this.isRange) {
|
|
427
|
-
this.change.emit([this.startDate, this.endDate]);
|
|
428
|
-
}
|
|
429
|
-
else {
|
|
430
|
-
this.change.emit(this.startDate);
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
handleYearChange(event) {
|
|
434
|
-
if (this.isRange) {
|
|
435
|
-
this.endListYears = [];
|
|
436
|
-
for (let i = this.startYear + 1; i <= this.initEndYear; i++) {
|
|
437
|
-
this.endListYears.push(i);
|
|
438
|
-
}
|
|
439
|
-
this.startListYears = [];
|
|
440
|
-
for (let i = this.initStartYear + 1; i < this.endYear; i++) {
|
|
441
|
-
this.startListYears.push(i);
|
|
442
|
-
}
|
|
443
|
-
this.yearChange.emit([this.startYear, this.endYear]);
|
|
444
|
-
}
|
|
445
|
-
else {
|
|
446
|
-
this.yearChange.emit(this.year);
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
handleListYearChange(event) {
|
|
450
|
-
this.handleYearChange([this.startYear, this.endYear]);
|
|
451
|
-
}
|
|
452
|
-
handleListYearStartChange(event) {
|
|
453
|
-
this.change.emit([this.startDate, this.endDate]);
|
|
454
|
-
}
|
|
455
|
-
dateToNumber(date) {
|
|
456
|
-
let newDate;
|
|
457
|
-
if (date) {
|
|
458
|
-
newDate = new Date(date);
|
|
459
|
-
}
|
|
460
|
-
else {
|
|
461
|
-
newDate = new Date(this.min);
|
|
462
|
-
}
|
|
463
|
-
return newDate.getTime();
|
|
464
|
-
}
|
|
465
|
-
setSliderThumbLabel(label) {
|
|
466
|
-
const thumbLabel = this.findThumbLabel(this.mySlider._elementRef.nativeElement.childNodes);
|
|
467
|
-
if (thumbLabel) {
|
|
468
|
-
thumbLabel.textContent = label;
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
findThumbLabel(test) {
|
|
472
|
-
let thumbLabel;
|
|
473
|
-
test.forEach(value => {
|
|
474
|
-
if (value.className === 'mat-slider-thumb-label-text') {
|
|
475
|
-
thumbLabel = value;
|
|
476
|
-
}
|
|
477
|
-
if (value.children.length > 0 && !thumbLabel) {
|
|
478
|
-
thumbLabel = this.findThumbLabel(value.childNodes);
|
|
479
|
-
}
|
|
480
|
-
}, this);
|
|
481
|
-
return thumbLabel;
|
|
482
|
-
}
|
|
483
|
-
toggleFilterState() {
|
|
484
|
-
this.options.enabled = !this.options.enabled;
|
|
485
|
-
if (this.options.enabled) {
|
|
486
|
-
if (!this.isRange &&
|
|
487
|
-
TimeFilterStyle.SLIDER &&
|
|
488
|
-
this.type === TimeFilterType.YEAR) {
|
|
489
|
-
this.yearChange.emit(this.year);
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
else {
|
|
493
|
-
this.stopFilter();
|
|
494
|
-
this.storeCurrentFilterValue();
|
|
495
|
-
this.change.emit(undefined); // TODO: FIX THIS for ALL OTHER TYPES STYLES OR RANGE.
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
resetFilter(event) {
|
|
499
|
-
this.date = new Date(this.min);
|
|
500
|
-
this.year = this.date.getFullYear();
|
|
501
|
-
if (!this.isRange &&
|
|
502
|
-
TimeFilterStyle.SLIDER &&
|
|
503
|
-
this.type === TimeFilterType.YEAR) {
|
|
504
|
-
this.yearChange.emit(this.year);
|
|
505
|
-
}
|
|
506
|
-
else {
|
|
507
|
-
this.setupDateOutput();
|
|
508
|
-
this.change.emit(undefined); // TODO: FIX THIS for ALL OTHER TYPES STYLES OR RANGE.
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
playFilter(event) {
|
|
512
|
-
if (this.interval) {
|
|
513
|
-
this.stopFilter();
|
|
514
|
-
}
|
|
515
|
-
else {
|
|
516
|
-
this.playIcon = 'pause-circle';
|
|
517
|
-
this.interval = setInterval(that => {
|
|
518
|
-
let newMinDateNumber;
|
|
519
|
-
const maxDateNumber = new Date(that.max);
|
|
520
|
-
newMinDateNumber =
|
|
521
|
-
that.date === undefined ? that.min.getTime() : that.date.getTime();
|
|
522
|
-
newMinDateNumber += that.mySlider.step;
|
|
523
|
-
that.date = new Date(newMinDateNumber);
|
|
524
|
-
if (newMinDateNumber > maxDateNumber.getTime()) {
|
|
525
|
-
that.stopFilter();
|
|
526
|
-
}
|
|
527
|
-
that.handleDateChange({ value: that.date, date: that.date });
|
|
528
|
-
}, this.timeInterval, this);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
playYear(event) {
|
|
532
|
-
if (this.year + this.mySlider.step >
|
|
533
|
-
this.max.getFullYear() + this.mySlider.step) {
|
|
534
|
-
this.stopFilter();
|
|
535
|
-
this.resetFilter(event);
|
|
536
|
-
}
|
|
537
|
-
if (this.interval) {
|
|
538
|
-
this.stopFilter();
|
|
539
|
-
}
|
|
540
|
-
else {
|
|
541
|
-
this.playIcon = 'pause-circle';
|
|
542
|
-
this.interval = setInterval(() => {
|
|
543
|
-
if ((this.year + this.mySlider.step) > this.max.getFullYear()) {
|
|
544
|
-
this.stopFilter();
|
|
545
|
-
}
|
|
546
|
-
else {
|
|
547
|
-
this.year = this.year + this.mySlider.step;
|
|
548
|
-
}
|
|
549
|
-
this.yearChange.emit(this.year);
|
|
550
|
-
}, this.timeInterval, this);
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
stopFilter() {
|
|
554
|
-
if (this.interval) {
|
|
555
|
-
clearInterval(this.interval);
|
|
556
|
-
}
|
|
557
|
-
this.interval = undefined;
|
|
558
|
-
this.playIcon = 'play-circle';
|
|
559
|
-
}
|
|
560
|
-
handleSliderDateChange(event) {
|
|
561
|
-
this.date = new Date(event.value);
|
|
562
|
-
this.setSliderThumbLabel(this.handleSliderTooltip());
|
|
563
|
-
this.handleDateChange(event);
|
|
564
|
-
}
|
|
565
|
-
handleSliderYearChange(event) {
|
|
566
|
-
this.year = event.value;
|
|
567
|
-
this.yearChange.emit(this.year);
|
|
568
|
-
}
|
|
569
|
-
handleSliderValue() {
|
|
570
|
-
if (this.options.current === true || !this.min) {
|
|
571
|
-
const currentDate = new Date();
|
|
572
|
-
this.date = this.getRoundedDate(currentDate);
|
|
573
|
-
}
|
|
574
|
-
if (this.type === TimeFilterType.YEAR) {
|
|
575
|
-
return this.year;
|
|
576
|
-
}
|
|
577
|
-
else {
|
|
578
|
-
return this.date === undefined ? this.min.getTime() : this.date.getTime();
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
handleSliderTooltip() {
|
|
582
|
-
let label;
|
|
583
|
-
switch (this.type) {
|
|
584
|
-
case TimeFilterType.DATE:
|
|
585
|
-
label =
|
|
586
|
-
this.date === undefined
|
|
587
|
-
? this.min.toDateString()
|
|
588
|
-
: this.date.toDateString();
|
|
589
|
-
break;
|
|
590
|
-
case TimeFilterType.TIME:
|
|
591
|
-
label =
|
|
592
|
-
this.date === undefined
|
|
593
|
-
? this.min.toTimeString()
|
|
594
|
-
: this.date.toTimeString();
|
|
595
|
-
break;
|
|
596
|
-
// datetime
|
|
597
|
-
default:
|
|
598
|
-
label =
|
|
599
|
-
this.date === undefined
|
|
600
|
-
? this.min.toUTCString()
|
|
601
|
-
: this.date.toUTCString();
|
|
602
|
-
break;
|
|
603
|
-
}
|
|
604
|
-
return label;
|
|
605
|
-
}
|
|
606
|
-
setupDateOutput() {
|
|
607
|
-
if (this.style === TimeFilterStyle.SLIDER) {
|
|
608
|
-
this.startDate = new Date(this.date);
|
|
609
|
-
this.startDate.setSeconds(-(this.step / 1000));
|
|
610
|
-
this.endDate = new Date(this.startDate);
|
|
611
|
-
this.endDate.setSeconds(this.step / 1000);
|
|
612
|
-
}
|
|
613
|
-
else if (!this.isRange && !!this.date) {
|
|
614
|
-
this.endDate = new Date(this.date);
|
|
615
|
-
this.startDate = new Date(this.date);
|
|
616
|
-
}
|
|
617
|
-
else if (this.isRange && (!!this.date || !this.date)) {
|
|
618
|
-
this.startDate =
|
|
619
|
-
this.startDate === undefined ? new Date(this.min) : this.startDate;
|
|
620
|
-
this.endDate =
|
|
621
|
-
this.endDate === undefined ? new Date(this.max) : this.endDate;
|
|
622
|
-
}
|
|
623
|
-
else if (!this.date) {
|
|
624
|
-
this.startDate =
|
|
625
|
-
this.startDate === undefined ? new Date(this.min) : this.startDate;
|
|
626
|
-
this.endDate =
|
|
627
|
-
this.endDate === undefined ? new Date(this.max) : this.endDate;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
applyTypeChange() {
|
|
631
|
-
switch (this.type) {
|
|
632
|
-
case TimeFilterType.DATE:
|
|
633
|
-
if (this.startDate !== undefined || this.endDate !== undefined) {
|
|
634
|
-
this.startDate.setHours(0);
|
|
635
|
-
this.startDate.setMinutes(0);
|
|
636
|
-
this.startDate.setSeconds(0);
|
|
637
|
-
this.endDate.setHours(23);
|
|
638
|
-
this.endDate.setMinutes(59);
|
|
639
|
-
this.endDate.setSeconds(59);
|
|
640
|
-
}
|
|
641
|
-
break;
|
|
642
|
-
case TimeFilterType.TIME:
|
|
643
|
-
if (this.style === TimeFilterStyle.CALENDAR) {
|
|
644
|
-
if (this.startDate.getDay() !== this.min.getDay()) {
|
|
645
|
-
const selectedHour = this.startDate.getHours();
|
|
646
|
-
const selectedMinute = this.startDate.getMinutes();
|
|
647
|
-
this.startDate = this.min;
|
|
648
|
-
this.startDate.setHours(selectedHour);
|
|
649
|
-
this.startDate.setMinutes(selectedMinute);
|
|
650
|
-
}
|
|
651
|
-
if (this.endDate.getDay() !== this.min.getDay()) {
|
|
652
|
-
const selectedHour = this.endDate.getHours();
|
|
653
|
-
const selectedMinute = this.endDate.getMinutes();
|
|
654
|
-
this.endDate = this.min;
|
|
655
|
-
this.endDate.setHours(selectedHour);
|
|
656
|
-
this.endDate.setMinutes(selectedMinute);
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
if (!this.isRange && this.step > 60 * 60 * 1000) {
|
|
660
|
-
this.startDate.setMinutes(0);
|
|
661
|
-
this.startDate.setSeconds(0);
|
|
662
|
-
this.endDate.setMinutes(59);
|
|
663
|
-
this.endDate.setSeconds(59);
|
|
664
|
-
}
|
|
665
|
-
break;
|
|
666
|
-
// datetime
|
|
667
|
-
default:
|
|
668
|
-
// do nothing
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
getRangeMinDate() {
|
|
672
|
-
return this.startDate === undefined ? this.min : this.startDate;
|
|
673
|
-
}
|
|
674
|
-
getRangeMaxDate() {
|
|
675
|
-
return this.endDate === undefined ? this.max : this.endDate;
|
|
676
|
-
}
|
|
677
|
-
/**
|
|
678
|
-
* Round date at a certain time, 10 minutes by Default
|
|
679
|
-
* @param date - Date to Round
|
|
680
|
-
* @param atMinute - round to closest 'atMinute' minute, rounded 10 by default
|
|
681
|
-
* @return the rounded date
|
|
682
|
-
*/
|
|
683
|
-
getRoundedDate(date, atMinute = 10) {
|
|
684
|
-
const coeff = 1000 * 60 * atMinute;
|
|
685
|
-
return new Date(Math.round(date.getTime() / coeff) * coeff);
|
|
686
|
-
}
|
|
687
|
-
/**
|
|
688
|
-
* Get the step (period) definition from the layer dimension tag
|
|
689
|
-
* @param step The step as ISO 8601 example: PT10M for 10 Minutes
|
|
690
|
-
* @return the duration in milliseconds
|
|
691
|
-
*/
|
|
692
|
-
getStepDefinition(step) {
|
|
693
|
-
return moment.duration(step).asMilliseconds();
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
TimeFilterFormComponent.ɵfac = function TimeFilterFormComponent_Factory(t) { return new (t || TimeFilterFormComponent)(i0.ɵɵdirectiveInject(i1.DateAdapter)); };
|
|
697
|
-
TimeFilterFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimeFilterFormComponent, selectors: [["igo-time-filter-form"]], viewQuery: function TimeFilterFormComponent_Query(rf, ctx) { if (rf & 1) {
|
|
698
|
-
i0.ɵɵviewQuery(MatSlider, 5);
|
|
699
|
-
} if (rf & 2) {
|
|
700
|
-
let _t;
|
|
701
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.mySlider = _t.first);
|
|
702
|
-
} }, inputs: { layer: "layer", options: "options", currentValue: "currentValue" }, outputs: { change: "change", yearChange: "yearChange" }, decls: 5, vars: 4, consts: [[4, "ngIf"], ["class", "igo-col igo-col-100 igo-col-100-m mat-typography", 4, "ngIf"], ["class", "igo-col igo-col-100 igo-col-100-m", 4, "ngIf"], [1, "igo-col", "igo-col-100", "igo-col-100-m"], ["matSuffix", "", 1, "time-filter-mat-datetimepicker-toggle", 3, "for"], ["openOnFocus", "true", "timeInterval", "5", 3, "type"], ["datetimePicker", ""], ["matInput", "", "autocomplete", "false", "readonly", "readonly", 3, "placeholder", "matDatetimepicker", "ngModel", "min", "max", "ngModelChange", "dateChange"], [1, "igo-col", "igo-col-100"], ["minDatetimePicker", ""], ["matInput", "", "autocomplete", "false", "readonly", "readonly", 3, "placeholder", "matDatetimepicker", "ngModel", "min", "max", "ngModelChange", "input", "dateChange"], ["maxDatetimePicker", ""], [3, "placeholder", "ngModel", "ngModelChange", "selectionChange"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [1, "igo-col", "igo-col-100", "igo-col-100-m", "mat-typography"], ["id", "time-slider", "tickInterval", "auto", "thumbLabel", "", 3, "step", "min", "max", "value", "color", "disabled", "input", "change"], ["class", "date-below", 4, "ngIf"], [1, "igo-layer-actions-container"], ["actions", ""], ["tooltip-position", "below", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "checked", "disabled", "change"], ["mat-icon-button", "", "color", "primary", 3, "disabled", "click"], [3, "svgIcon"], [1, "date-below"], ["id", "time-slider", "tickInterval", "auto", "thumbLabel", "", 3, "step", "min", "max", "value", "input", "selectionChange"], ["mat-icon-button", "", "color", "primary", 3, "click"]], template: function TimeFilterFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
703
|
-
i0.ɵɵtemplate(0, TimeFilterFormComponent_div_0_Template, 3, 2, "div", 0);
|
|
704
|
-
i0.ɵɵtemplate(1, TimeFilterFormComponent_div_1_Template, 3, 2, "div", 0);
|
|
705
|
-
i0.ɵɵelement(2, "br");
|
|
706
|
-
i0.ɵɵtemplate(3, TimeFilterFormComponent_div_3_Template, 15, 19, "div", 1);
|
|
707
|
-
i0.ɵɵtemplate(4, TimeFilterFormComponent_div_4_Template, 6, 6, "div", 2);
|
|
708
|
-
} if (rf & 2) {
|
|
709
|
-
i0.ɵɵproperty("ngIf", ctx.style === "calendar" && ctx.type !== "year");
|
|
710
|
-
i0.ɵɵadvance(1);
|
|
711
|
-
i0.ɵɵproperty("ngIf", ctx.style === "calendar" && ctx.type === "year");
|
|
712
|
-
i0.ɵɵadvance(2);
|
|
713
|
-
i0.ɵɵproperty("ngIf", !ctx.isRange && ctx.style === "slider" && ctx.type === "year");
|
|
714
|
-
i0.ɵɵadvance(1);
|
|
715
|
-
i0.ɵɵproperty("ngIf", ctx.style === "slider" && ctx.type !== "year");
|
|
716
|
-
} }, dependencies: [i2.NgForOf, i2.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel, i1.MatOption, i4.MatIcon, i5.MatButton, i6.MatSlider, i7.MatSlideToggle, i8.MatFormField, i8.MatSuffix, i9.MatInput, i10.MatSelect, i11.MatTooltip, i12.MatDatetimepickerComponent, i12.MatDatetimepickerToggleComponent, i12.MatDatetimepickerInputDirective, i13.TranslatePipe], styles: [".igo-layer-filters-container[_ngcontent-%COMP%]{padding-left:5px}mat-slider[_ngcontent-%COMP%] div.mat-slider-thumb-label{width:32px;height:32px;margin:0 auto}mat-slider[_ngcontent-%COMP%] span.mat-slider-thumb-label-text{font-size:10px}#time-slider[_ngcontent-%COMP%]{width:70%;margin:0 auto}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){#time-slider[_ngcontent-%COMP%]{width:60%;margin:0 auto}}.date-below[_ngcontent-%COMP%]{margin:0}mat-form-field[_ngcontent-%COMP%]{text-align:center}mat-datetimepicker-toggle[_ngcontent-%COMP%] .mat-icon{padding-bottom:30px}.igo-layer-actions-container[_ngcontent-%COMP%] > .mat-slide-toggle[_ngcontent-%COMP%]{vertical-align:middle}.time-filter-mat-datetimepicker-toggle[_ngcontent-%COMP%] .mat-icon{width:auto}"] });
|
|
717
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeFilterFormComponent, [{
|
|
718
|
-
type: Component,
|
|
719
|
-
args: [{ selector: 'igo-time-filter-form', template: "<div *ngIf=\"style === 'calendar' && type !=='year'\">\n <div *ngIf=\"!isRange\" class=\"igo-col igo-col-100 igo-col-100-m\">\n <mat-form-field>\n <mat-datetimepicker-toggle class=\"time-filter-mat-datetimepicker-toggle\" [for]=\"datetimePicker\" matSuffix></mat-datetimepicker-toggle>\n <mat-datetimepicker #datetimePicker type=\"{{type}}\" openOnFocus=\"true\" timeInterval=\"5\"></mat-datetimepicker>\n <input matInput autocomplete=\"false\"\n placeholder=\"{{'igo.geo.timeFilter.date' | translate}}\"\n [matDatetimepicker]=\"datetimePicker\"\n [(ngModel)]=\"date\"\n [min]=\"min\"\n [max]=\"max\"\n readonly=\"readonly\"\n (dateChange)=\"handleDateChange($event)\">\n </mat-form-field>\n\n </div>\n\n <div *ngIf=\"isRange\">\n <div class=\"igo-col igo-col-100\">\n <mat-form-field>\n <mat-datetimepicker-toggle class=\"time-filter-mat-datetimepicker-toggle\" [for]=\"minDatetimePicker\" matSuffix></mat-datetimepicker-toggle>\n <mat-datetimepicker #minDatetimePicker type=\"{{type}}\" openOnFocus=\"true\" timeInterval=\"5\"></mat-datetimepicker>\n <input matInput autocomplete=\"false\"\n placeholder=\"{{'igo.geo.timeFilter.startDate' | translate}}\"\n [matDatetimepicker]=\"minDatetimePicker\"\n [(ngModel)]=\"startDate\"\n [min]=\"min\"\n [max]=\"getRangeMaxDate()\"\n readonly=\"readonly\"\n (input)=\"startDate\"\n (dateChange)=\"handleDateChange($event)\">\n </mat-form-field>\n </div>\n\n <div class=\"igo-col igo-col-100\">\n <mat-form-field>\n <mat-datetimepicker-toggle class=\"time-filter-mat-datetimepicker-toggle\" [for]=\"maxDatetimePicker\" matSuffix></mat-datetimepicker-toggle>\n <mat-datetimepicker #maxDatetimePicker type=\"{{type}}\" openOnFocus=\"true\" timeInterval=\"5\"></mat-datetimepicker>\n <input matInput autocomplete=\"false\"\n placeholder=\"{{'igo.geo.timeFilter.endDate' | translate}}\"\n [matDatetimepicker]=\"maxDatetimePicker\"\n [(ngModel)]=\"endDate\"\n [min]=\"getRangeMinDate()\"\n [max]=\"max\"\n readonly=\"readonly\"\n (dateChange)=\"handleDateChange($event)\">\n </mat-form-field>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"style === 'calendar' && type ==='year'\">\n\n <div *ngIf=\"!isRange\" class=\"igo-col igo-col-100 igo-col-100-m\">\n <mat-form-field>\n <mat-select placeholder=\"{{'igo.geo.timeFilter.date' | translate}}\" [(ngModel)]=\"year\" (selectionChange)=\"handleYearChange($event)\">\n <mat-option [value]=\"year\" *ngFor=\"let year of listYears\">{{year}}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div *ngIf=\"isRange\">\n <div class=\"igo-col igo-col-100\">\n <mat-form-field>\n <mat-select placeholder=\"{{'igo.geo.timeFilter.startDate' | translate}}\" [(ngModel)]=\"startYear\" (selectionChange)=\"handleYearChange($event)\">\n <mat-option [value]=\"startYear\" *ngFor=\"let startYear of startListYears\">{{startYear}}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div class=\"igo-col igo-col-100\">\n <mat-form-field>\n <mat-select placeholder=\"{{'igo.geo.timeFilter.endDate' | translate}}\" [(ngModel)]=\"endYear\" (selectionChange)=\"handleYearChange($event)\">\n <mat-option [value]=\"endYear\" *ngFor=\"let endYear of endListYears\">{{endYear}}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n </div>\n\n</div>\n\n\n <br>\n <div *ngIf=\"!isRange && style === 'slider' && type === 'year'\" class=\"igo-col igo-col-100 igo-col-100-m mat-typography\">\n <span>{{startYear}}</span>\n <mat-slider\n id=\"time-slider\"\n tickInterval=\"auto\"\n step=\"{{step}}\"\n [min]=\"startYear\"\n [max]=\"endYear\"\n [value]=\"handleSliderValue()\"\n [color]=\"color\"\n thumbLabel\n (input)=\"handleSliderYearChange($event)\"\n (change)=\"handleSliderYearChange($event)\"\n [disabled]= \"!options.enabled || !layer.visible\">\n </mat-slider>\n <span>{{endYear}}</span>\n <p *ngIf= \"options.enabled\" class=\"date-below\">{{year}}</p>\n <div #actions class=\"igo-layer-actions-container\">\n <mat-slide-toggle (change)=\"toggleFilterState()\" tooltip-position=\"below\" matTooltipShowDelay=\"500\"\n [matTooltip]=\"'igo.geo.filter.toggleFilterState' | translate\" [color]=\"color\" [checked]=\"options.enabled\"\n [disabled]=\"!layer.visible\">\n </mat-slide-toggle>\n <button [disabled]= \"!options.enabled || !layer.visible\" mat-icon-button color=\"primary\" (click)=\"playYear($event)\">\n <mat-icon svgIcon=\"{{playIcon}}\"></mat-icon>\n </button>\n <button [disabled]=\"!options.enabled || !layer.visible\" mat-icon-button color=\"primary\" (click)=\"resetFilter($event)\">\n <mat-icon svgIcon=\"{{resetIcon}}\"></mat-icon>\n </button>\n </div>\n </div>\n\n<div *ngIf=\"style === 'slider' && type !== 'year'\" class=\"igo-col igo-col-100 igo-col-100-m\">\n <mat-slider\n id=\"time-slider\"\n tickInterval=\"auto\"\n step=\"{{step}}\"\n [min]=\"dateToNumber(min)\"\n [max]=\"dateToNumber(max)\"\n [value]=\"handleSliderValue()\"\n thumbLabel\n (input)=\"handleSliderDateChange($event)\"\n (selectionChange)=\"handleSliderDateChange($event)\">\n </mat-slider>\n <p class=\"date-below\">{{handleSliderTooltip()}}</p>\n <button mat-icon-button color=\"primary\" (click)=\"playFilter($event)\">\n <mat-icon svgIcon=\"{{playIcon}}\"></mat-icon>\n </button>\n</div>\n", styles: [".igo-layer-filters-container{padding-left:5px}mat-slider ::ng-deep div.mat-slider-thumb-label{width:32px;height:32px;margin:0 auto}mat-slider ::ng-deep span.mat-slider-thumb-label-text{font-size:10px}#time-slider{width:70%;margin:0 auto}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){#time-slider{width:60%;margin:0 auto}}.date-below{margin:0}mat-form-field{text-align:center}mat-datetimepicker-toggle ::ng-deep .mat-icon{padding-bottom:30px}.igo-layer-actions-container>.mat-slide-toggle{vertical-align:middle}.time-filter-mat-datetimepicker-toggle ::ng-deep .mat-icon{width:auto}\n"] }]
|
|
720
|
-
}], function () { return [{ type: i1.DateAdapter }]; }, { layer: [{
|
|
721
|
-
type: Input
|
|
722
|
-
}], options: [{
|
|
723
|
-
type: Input
|
|
724
|
-
}], currentValue: [{
|
|
725
|
-
type: Input
|
|
726
|
-
}], change: [{
|
|
727
|
-
type: Output
|
|
728
|
-
}], yearChange: [{
|
|
729
|
-
type: Output
|
|
730
|
-
}], mySlider: [{
|
|
731
|
-
type: ViewChild,
|
|
732
|
-
args: [MatSlider]
|
|
733
|
-
}] }); })();
|
|
1
|
+
import { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';
|
|
2
|
+
import { MatSlider } from '@angular/material/slider';
|
|
3
|
+
import { default as moment } from 'moment';
|
|
4
|
+
import { TimeFilterType, TimeFilterStyle } from '../shared/time-filter.enum';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/material/core";
|
|
7
|
+
import * as i2 from "@angular/common";
|
|
8
|
+
import * as i3 from "@angular/forms";
|
|
9
|
+
import * as i4 from "@angular/material/icon";
|
|
10
|
+
import * as i5 from "@angular/material/button";
|
|
11
|
+
import * as i6 from "@angular/material/slider";
|
|
12
|
+
import * as i7 from "@angular/material/slide-toggle";
|
|
13
|
+
import * as i8 from "@angular/material/form-field";
|
|
14
|
+
import * as i9 from "@angular/material/input";
|
|
15
|
+
import * as i10 from "@angular/material/select";
|
|
16
|
+
import * as i11 from "@angular/material/tooltip";
|
|
17
|
+
import * as i12 from "@mat-datetimepicker/core";
|
|
18
|
+
import * as i13 from "@ngx-translate/core";
|
|
19
|
+
function TimeFilterFormComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
21
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "mat-form-field");
|
|
22
|
+
i0.ɵɵelement(2, "mat-datetimepicker-toggle", 4)(3, "mat-datetimepicker", 5, 6);
|
|
23
|
+
i0.ɵɵelementStart(5, "input", 7);
|
|
24
|
+
i0.ɵɵlistener("ngModelChange", function TimeFilterFormComponent_div_0_div_1_Template_input_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r7.date = $event); })("dateChange", function TimeFilterFormComponent_div_0_div_1_Template_input_dateChange_5_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r9 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r9.handleDateChange($event)); });
|
|
25
|
+
i0.ɵɵpipe(6, "translate");
|
|
26
|
+
i0.ɵɵelementEnd()()();
|
|
27
|
+
} if (rf & 2) {
|
|
28
|
+
const _r6 = i0.ɵɵreference(4);
|
|
29
|
+
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
30
|
+
i0.ɵɵadvance(2);
|
|
31
|
+
i0.ɵɵproperty("for", _r6);
|
|
32
|
+
i0.ɵɵadvance(1);
|
|
33
|
+
i0.ɵɵpropertyInterpolate("type", ctx_r4.type);
|
|
34
|
+
i0.ɵɵadvance(2);
|
|
35
|
+
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(6, 7, "igo.geo.timeFilter.date"));
|
|
36
|
+
i0.ɵɵproperty("matDatetimepicker", _r6)("ngModel", ctx_r4.date)("min", ctx_r4.min)("max", ctx_r4.max);
|
|
37
|
+
} }
|
|
38
|
+
function TimeFilterFormComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
40
|
+
i0.ɵɵelementStart(0, "div")(1, "div", 8)(2, "mat-form-field");
|
|
41
|
+
i0.ɵɵelement(3, "mat-datetimepicker-toggle", 4)(4, "mat-datetimepicker", 5, 9);
|
|
42
|
+
i0.ɵɵelementStart(6, "input", 10);
|
|
43
|
+
i0.ɵɵlistener("ngModelChange", function TimeFilterFormComponent_div_0_div_2_Template_input_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.startDate = $event); })("input", function TimeFilterFormComponent_div_0_div_2_Template_input_input_6_listener() { i0.ɵɵrestoreView(_r13); const ctx_r14 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r14.startDate); })("dateChange", function TimeFilterFormComponent_div_0_div_2_Template_input_dateChange_6_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r15 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r15.handleDateChange($event)); });
|
|
44
|
+
i0.ɵɵpipe(7, "translate");
|
|
45
|
+
i0.ɵɵelementEnd()()();
|
|
46
|
+
i0.ɵɵelementStart(8, "div", 8)(9, "mat-form-field");
|
|
47
|
+
i0.ɵɵelement(10, "mat-datetimepicker-toggle", 4)(11, "mat-datetimepicker", 5, 11);
|
|
48
|
+
i0.ɵɵelementStart(13, "input", 7);
|
|
49
|
+
i0.ɵɵlistener("ngModelChange", function TimeFilterFormComponent_div_0_div_2_Template_input_ngModelChange_13_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r16 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r16.endDate = $event); })("dateChange", function TimeFilterFormComponent_div_0_div_2_Template_input_dateChange_13_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r17 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r17.handleDateChange($event)); });
|
|
50
|
+
i0.ɵɵpipe(14, "translate");
|
|
51
|
+
i0.ɵɵelementEnd()()()();
|
|
52
|
+
} if (rf & 2) {
|
|
53
|
+
const _r10 = i0.ɵɵreference(5);
|
|
54
|
+
const _r11 = i0.ɵɵreference(12);
|
|
55
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
56
|
+
i0.ɵɵadvance(3);
|
|
57
|
+
i0.ɵɵproperty("for", _r10);
|
|
58
|
+
i0.ɵɵadvance(1);
|
|
59
|
+
i0.ɵɵpropertyInterpolate("type", ctx_r5.type);
|
|
60
|
+
i0.ɵɵadvance(2);
|
|
61
|
+
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(7, 14, "igo.geo.timeFilter.startDate"));
|
|
62
|
+
i0.ɵɵproperty("matDatetimepicker", _r10)("ngModel", ctx_r5.startDate)("min", ctx_r5.min)("max", ctx_r5.getRangeMaxDate());
|
|
63
|
+
i0.ɵɵadvance(4);
|
|
64
|
+
i0.ɵɵproperty("for", _r11);
|
|
65
|
+
i0.ɵɵadvance(1);
|
|
66
|
+
i0.ɵɵpropertyInterpolate("type", ctx_r5.type);
|
|
67
|
+
i0.ɵɵadvance(2);
|
|
68
|
+
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(14, 16, "igo.geo.timeFilter.endDate"));
|
|
69
|
+
i0.ɵɵproperty("matDatetimepicker", _r11)("ngModel", ctx_r5.endDate)("min", ctx_r5.getRangeMinDate())("max", ctx_r5.max);
|
|
70
|
+
} }
|
|
71
|
+
function TimeFilterFormComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
72
|
+
i0.ɵɵelementStart(0, "div");
|
|
73
|
+
i0.ɵɵtemplate(1, TimeFilterFormComponent_div_0_div_1_Template, 7, 9, "div", 2);
|
|
74
|
+
i0.ɵɵtemplate(2, TimeFilterFormComponent_div_0_div_2_Template, 15, 18, "div", 0);
|
|
75
|
+
i0.ɵɵelementEnd();
|
|
76
|
+
} if (rf & 2) {
|
|
77
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
78
|
+
i0.ɵɵadvance(1);
|
|
79
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.isRange);
|
|
80
|
+
i0.ɵɵadvance(1);
|
|
81
|
+
i0.ɵɵproperty("ngIf", ctx_r0.isRange);
|
|
82
|
+
} }
|
|
83
|
+
function TimeFilterFormComponent_div_1_div_1_mat_option_4_Template(rf, ctx) { if (rf & 1) {
|
|
84
|
+
i0.ɵɵelementStart(0, "mat-option", 14);
|
|
85
|
+
i0.ɵɵtext(1);
|
|
86
|
+
i0.ɵɵelementEnd();
|
|
87
|
+
} if (rf & 2) {
|
|
88
|
+
const year_r21 = ctx.$implicit;
|
|
89
|
+
i0.ɵɵproperty("value", year_r21);
|
|
90
|
+
i0.ɵɵadvance(1);
|
|
91
|
+
i0.ɵɵtextInterpolate(year_r21);
|
|
92
|
+
} }
|
|
93
|
+
function TimeFilterFormComponent_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
94
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
95
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "mat-form-field")(2, "mat-select", 12);
|
|
96
|
+
i0.ɵɵlistener("ngModelChange", function TimeFilterFormComponent_div_1_div_1_Template_mat_select_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r22 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r22.year = $event); })("selectionChange", function TimeFilterFormComponent_div_1_div_1_Template_mat_select_selectionChange_2_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r24 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r24.handleYearChange($event)); });
|
|
97
|
+
i0.ɵɵpipe(3, "translate");
|
|
98
|
+
i0.ɵɵtemplate(4, TimeFilterFormComponent_div_1_div_1_mat_option_4_Template, 2, 2, "mat-option", 13);
|
|
99
|
+
i0.ɵɵelementEnd()()();
|
|
100
|
+
} if (rf & 2) {
|
|
101
|
+
const ctx_r18 = i0.ɵɵnextContext(2);
|
|
102
|
+
i0.ɵɵadvance(2);
|
|
103
|
+
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(3, 3, "igo.geo.timeFilter.date"));
|
|
104
|
+
i0.ɵɵproperty("ngModel", ctx_r18.year);
|
|
105
|
+
i0.ɵɵadvance(2);
|
|
106
|
+
i0.ɵɵproperty("ngForOf", ctx_r18.listYears);
|
|
107
|
+
} }
|
|
108
|
+
function TimeFilterFormComponent_div_1_div_2_mat_option_5_Template(rf, ctx) { if (rf & 1) {
|
|
109
|
+
i0.ɵɵelementStart(0, "mat-option", 14);
|
|
110
|
+
i0.ɵɵtext(1);
|
|
111
|
+
i0.ɵɵelementEnd();
|
|
112
|
+
} if (rf & 2) {
|
|
113
|
+
const startYear_r27 = ctx.$implicit;
|
|
114
|
+
i0.ɵɵproperty("value", startYear_r27);
|
|
115
|
+
i0.ɵɵadvance(1);
|
|
116
|
+
i0.ɵɵtextInterpolate(startYear_r27);
|
|
117
|
+
} }
|
|
118
|
+
function TimeFilterFormComponent_div_1_div_2_mat_option_10_Template(rf, ctx) { if (rf & 1) {
|
|
119
|
+
i0.ɵɵelementStart(0, "mat-option", 14);
|
|
120
|
+
i0.ɵɵtext(1);
|
|
121
|
+
i0.ɵɵelementEnd();
|
|
122
|
+
} if (rf & 2) {
|
|
123
|
+
const endYear_r28 = ctx.$implicit;
|
|
124
|
+
i0.ɵɵproperty("value", endYear_r28);
|
|
125
|
+
i0.ɵɵadvance(1);
|
|
126
|
+
i0.ɵɵtextInterpolate(endYear_r28);
|
|
127
|
+
} }
|
|
128
|
+
function TimeFilterFormComponent_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
129
|
+
const _r30 = i0.ɵɵgetCurrentView();
|
|
130
|
+
i0.ɵɵelementStart(0, "div")(1, "div", 8)(2, "mat-form-field")(3, "mat-select", 12);
|
|
131
|
+
i0.ɵɵlistener("ngModelChange", function TimeFilterFormComponent_div_1_div_2_Template_mat_select_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r29 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r29.startYear = $event); })("selectionChange", function TimeFilterFormComponent_div_1_div_2_Template_mat_select_selectionChange_3_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r31 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r31.handleYearChange($event)); });
|
|
132
|
+
i0.ɵɵpipe(4, "translate");
|
|
133
|
+
i0.ɵɵtemplate(5, TimeFilterFormComponent_div_1_div_2_mat_option_5_Template, 2, 2, "mat-option", 13);
|
|
134
|
+
i0.ɵɵelementEnd()()();
|
|
135
|
+
i0.ɵɵelementStart(6, "div", 8)(7, "mat-form-field")(8, "mat-select", 12);
|
|
136
|
+
i0.ɵɵlistener("ngModelChange", function TimeFilterFormComponent_div_1_div_2_Template_mat_select_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r32 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r32.endYear = $event); })("selectionChange", function TimeFilterFormComponent_div_1_div_2_Template_mat_select_selectionChange_8_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r33 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r33.handleYearChange($event)); });
|
|
137
|
+
i0.ɵɵpipe(9, "translate");
|
|
138
|
+
i0.ɵɵtemplate(10, TimeFilterFormComponent_div_1_div_2_mat_option_10_Template, 2, 2, "mat-option", 13);
|
|
139
|
+
i0.ɵɵelementEnd()()()();
|
|
140
|
+
} if (rf & 2) {
|
|
141
|
+
const ctx_r19 = i0.ɵɵnextContext(2);
|
|
142
|
+
i0.ɵɵadvance(3);
|
|
143
|
+
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(4, 6, "igo.geo.timeFilter.startDate"));
|
|
144
|
+
i0.ɵɵproperty("ngModel", ctx_r19.startYear);
|
|
145
|
+
i0.ɵɵadvance(2);
|
|
146
|
+
i0.ɵɵproperty("ngForOf", ctx_r19.startListYears);
|
|
147
|
+
i0.ɵɵadvance(3);
|
|
148
|
+
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(9, 8, "igo.geo.timeFilter.endDate"));
|
|
149
|
+
i0.ɵɵproperty("ngModel", ctx_r19.endYear);
|
|
150
|
+
i0.ɵɵadvance(2);
|
|
151
|
+
i0.ɵɵproperty("ngForOf", ctx_r19.endListYears);
|
|
152
|
+
} }
|
|
153
|
+
function TimeFilterFormComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
154
|
+
i0.ɵɵelementStart(0, "div");
|
|
155
|
+
i0.ɵɵtemplate(1, TimeFilterFormComponent_div_1_div_1_Template, 5, 5, "div", 2);
|
|
156
|
+
i0.ɵɵtemplate(2, TimeFilterFormComponent_div_1_div_2_Template, 11, 10, "div", 0);
|
|
157
|
+
i0.ɵɵelementEnd();
|
|
158
|
+
} if (rf & 2) {
|
|
159
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
160
|
+
i0.ɵɵadvance(1);
|
|
161
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.isRange);
|
|
162
|
+
i0.ɵɵadvance(1);
|
|
163
|
+
i0.ɵɵproperty("ngIf", ctx_r1.isRange);
|
|
164
|
+
} }
|
|
165
|
+
function TimeFilterFormComponent_div_3_p_6_Template(rf, ctx) { if (rf & 1) {
|
|
166
|
+
i0.ɵɵelementStart(0, "p", 23);
|
|
167
|
+
i0.ɵɵtext(1);
|
|
168
|
+
i0.ɵɵelementEnd();
|
|
169
|
+
} if (rf & 2) {
|
|
170
|
+
const ctx_r34 = i0.ɵɵnextContext(2);
|
|
171
|
+
i0.ɵɵadvance(1);
|
|
172
|
+
i0.ɵɵtextInterpolate(ctx_r34.year);
|
|
173
|
+
} }
|
|
174
|
+
function TimeFilterFormComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
175
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
176
|
+
i0.ɵɵelementStart(0, "div", 15)(1, "span");
|
|
177
|
+
i0.ɵɵtext(2);
|
|
178
|
+
i0.ɵɵelementEnd();
|
|
179
|
+
i0.ɵɵelementStart(3, "mat-slider", 16);
|
|
180
|
+
i0.ɵɵlistener("input", function TimeFilterFormComponent_div_3_Template_mat_slider_input_3_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r36 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r36.handleSliderYearChange($event)); })("change", function TimeFilterFormComponent_div_3_Template_mat_slider_change_3_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r38 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r38.handleSliderYearChange($event)); });
|
|
181
|
+
i0.ɵɵelementEnd();
|
|
182
|
+
i0.ɵɵelementStart(4, "span");
|
|
183
|
+
i0.ɵɵtext(5);
|
|
184
|
+
i0.ɵɵelementEnd();
|
|
185
|
+
i0.ɵɵtemplate(6, TimeFilterFormComponent_div_3_p_6_Template, 2, 1, "p", 17);
|
|
186
|
+
i0.ɵɵelementStart(7, "div", 18, 19)(9, "mat-slide-toggle", 20);
|
|
187
|
+
i0.ɵɵlistener("change", function TimeFilterFormComponent_div_3_Template_mat_slide_toggle_change_9_listener() { i0.ɵɵrestoreView(_r37); const ctx_r39 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r39.toggleFilterState()); });
|
|
188
|
+
i0.ɵɵpipe(10, "translate");
|
|
189
|
+
i0.ɵɵelementEnd();
|
|
190
|
+
i0.ɵɵelementStart(11, "button", 21);
|
|
191
|
+
i0.ɵɵlistener("click", function TimeFilterFormComponent_div_3_Template_button_click_11_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r40 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r40.playYear($event)); });
|
|
192
|
+
i0.ɵɵelement(12, "mat-icon", 22);
|
|
193
|
+
i0.ɵɵelementEnd();
|
|
194
|
+
i0.ɵɵelementStart(13, "button", 21);
|
|
195
|
+
i0.ɵɵlistener("click", function TimeFilterFormComponent_div_3_Template_button_click_13_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r41 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r41.resetFilter($event)); });
|
|
196
|
+
i0.ɵɵelement(14, "mat-icon", 22);
|
|
197
|
+
i0.ɵɵelementEnd()()();
|
|
198
|
+
} if (rf & 2) {
|
|
199
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
200
|
+
i0.ɵɵadvance(2);
|
|
201
|
+
i0.ɵɵtextInterpolate(ctx_r2.startYear);
|
|
202
|
+
i0.ɵɵadvance(1);
|
|
203
|
+
i0.ɵɵpropertyInterpolate("step", ctx_r2.step);
|
|
204
|
+
i0.ɵɵproperty("min", ctx_r2.startYear)("max", ctx_r2.endYear)("value", ctx_r2.handleSliderValue())("color", ctx_r2.color)("disabled", !ctx_r2.options.enabled || !ctx_r2.layer.visible);
|
|
205
|
+
i0.ɵɵadvance(2);
|
|
206
|
+
i0.ɵɵtextInterpolate(ctx_r2.endYear);
|
|
207
|
+
i0.ɵɵadvance(1);
|
|
208
|
+
i0.ɵɵproperty("ngIf", ctx_r2.options.enabled);
|
|
209
|
+
i0.ɵɵadvance(3);
|
|
210
|
+
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(10, 17, "igo.geo.filter.toggleFilterState"))("color", ctx_r2.color)("checked", ctx_r2.options.enabled)("disabled", !ctx_r2.layer.visible);
|
|
211
|
+
i0.ɵɵadvance(2);
|
|
212
|
+
i0.ɵɵproperty("disabled", !ctx_r2.options.enabled || !ctx_r2.layer.visible);
|
|
213
|
+
i0.ɵɵadvance(1);
|
|
214
|
+
i0.ɵɵpropertyInterpolate("svgIcon", ctx_r2.playIcon);
|
|
215
|
+
i0.ɵɵadvance(1);
|
|
216
|
+
i0.ɵɵproperty("disabled", !ctx_r2.options.enabled || !ctx_r2.layer.visible);
|
|
217
|
+
i0.ɵɵadvance(1);
|
|
218
|
+
i0.ɵɵpropertyInterpolate("svgIcon", ctx_r2.resetIcon);
|
|
219
|
+
} }
|
|
220
|
+
function TimeFilterFormComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
221
|
+
const _r43 = i0.ɵɵgetCurrentView();
|
|
222
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "mat-slider", 24);
|
|
223
|
+
i0.ɵɵlistener("input", function TimeFilterFormComponent_div_4_Template_mat_slider_input_1_listener($event) { i0.ɵɵrestoreView(_r43); const ctx_r42 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r42.handleSliderDateChange($event)); })("selectionChange", function TimeFilterFormComponent_div_4_Template_mat_slider_selectionChange_1_listener($event) { i0.ɵɵrestoreView(_r43); const ctx_r44 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r44.handleSliderDateChange($event)); });
|
|
224
|
+
i0.ɵɵelementEnd();
|
|
225
|
+
i0.ɵɵelementStart(2, "p", 23);
|
|
226
|
+
i0.ɵɵtext(3);
|
|
227
|
+
i0.ɵɵelementEnd();
|
|
228
|
+
i0.ɵɵelementStart(4, "button", 25);
|
|
229
|
+
i0.ɵɵlistener("click", function TimeFilterFormComponent_div_4_Template_button_click_4_listener($event) { i0.ɵɵrestoreView(_r43); const ctx_r45 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r45.playFilter($event)); });
|
|
230
|
+
i0.ɵɵelement(5, "mat-icon", 22);
|
|
231
|
+
i0.ɵɵelementEnd()();
|
|
232
|
+
} if (rf & 2) {
|
|
233
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
234
|
+
i0.ɵɵadvance(1);
|
|
235
|
+
i0.ɵɵpropertyInterpolate("step", ctx_r3.step);
|
|
236
|
+
i0.ɵɵproperty("min", ctx_r3.dateToNumber(ctx_r3.min))("max", ctx_r3.dateToNumber(ctx_r3.max))("value", ctx_r3.handleSliderValue());
|
|
237
|
+
i0.ɵɵadvance(2);
|
|
238
|
+
i0.ɵɵtextInterpolate(ctx_r3.handleSliderTooltip());
|
|
239
|
+
i0.ɵɵadvance(2);
|
|
240
|
+
i0.ɵɵpropertyInterpolate("svgIcon", ctx_r3.playIcon);
|
|
241
|
+
} }
|
|
242
|
+
export class TimeFilterFormComponent {
|
|
243
|
+
constructor(dateAdapter) {
|
|
244
|
+
this.dateAdapter = dateAdapter;
|
|
245
|
+
this.color = 'primary';
|
|
246
|
+
this.listYears = [];
|
|
247
|
+
this.startListYears = [];
|
|
248
|
+
this.endListYears = [];
|
|
249
|
+
this.playIcon = 'play-circle';
|
|
250
|
+
this.resetIcon = 'replay';
|
|
251
|
+
this.change = new EventEmitter();
|
|
252
|
+
this.yearChange = new EventEmitter();
|
|
253
|
+
this.dateAdapter.setLocale('fr');
|
|
254
|
+
}
|
|
255
|
+
set currentValue(value) {
|
|
256
|
+
if (value) {
|
|
257
|
+
if (this.type !== TimeFilterType.YEAR) {
|
|
258
|
+
const valueArray = value.split('/');
|
|
259
|
+
if (valueArray.length > 0) {
|
|
260
|
+
const startDate = new Date(valueArray[0]);
|
|
261
|
+
const endDate = new Date(valueArray[1]);
|
|
262
|
+
if (!isNaN(startDate.valueOf())) {
|
|
263
|
+
this.startDate = startDate;
|
|
264
|
+
}
|
|
265
|
+
if (!isNaN(endDate.valueOf())) {
|
|
266
|
+
this.endDate = endDate;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
get type() {
|
|
273
|
+
return this.options.type === undefined
|
|
274
|
+
? TimeFilterType.DATE
|
|
275
|
+
: this.options.type;
|
|
276
|
+
}
|
|
277
|
+
get isRange() {
|
|
278
|
+
return this.options.range === undefined ||
|
|
279
|
+
this.options.style === TimeFilterStyle.SLIDER
|
|
280
|
+
? false
|
|
281
|
+
: this.options.range;
|
|
282
|
+
}
|
|
283
|
+
get style() {
|
|
284
|
+
return this.options.style === undefined
|
|
285
|
+
? TimeFilterStyle.SLIDER
|
|
286
|
+
: this.options.style;
|
|
287
|
+
}
|
|
288
|
+
get step() {
|
|
289
|
+
let step = 10800000;
|
|
290
|
+
if (this.options.step === undefined) {
|
|
291
|
+
switch (this.type) {
|
|
292
|
+
case TimeFilterType.DATE:
|
|
293
|
+
case TimeFilterType.DATETIME:
|
|
294
|
+
step = 10800000;
|
|
295
|
+
break;
|
|
296
|
+
case TimeFilterType.TIME:
|
|
297
|
+
step = 3600000;
|
|
298
|
+
break;
|
|
299
|
+
case TimeFilterType.YEAR:
|
|
300
|
+
step = 31536000000;
|
|
301
|
+
break;
|
|
302
|
+
default:
|
|
303
|
+
step = 10800000;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
step = this.getStepDefinition(this.options.step);
|
|
308
|
+
}
|
|
309
|
+
return step;
|
|
310
|
+
}
|
|
311
|
+
get timeInterval() {
|
|
312
|
+
return this.options.timeInterval === undefined
|
|
313
|
+
? 2000
|
|
314
|
+
: this.options.timeInterval;
|
|
315
|
+
}
|
|
316
|
+
get min() {
|
|
317
|
+
if (this.options.min) {
|
|
318
|
+
const min = new Date(this.options.min);
|
|
319
|
+
return new Date(min.getTime() + min.getTimezoneOffset() * 60000);
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
return undefined;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
get max() {
|
|
326
|
+
if (this.options.max) {
|
|
327
|
+
const max = new Date(this.options.max);
|
|
328
|
+
return new Date(max.getTime() + max.getTimezoneOffset() * 60000);
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
return undefined;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
get is() {
|
|
335
|
+
return this.options.range === undefined ? false : this.options.range;
|
|
336
|
+
}
|
|
337
|
+
ngOnInit() {
|
|
338
|
+
if (this.startDate === undefined) {
|
|
339
|
+
this.startDate = new Date(this.min);
|
|
340
|
+
}
|
|
341
|
+
if (this.endDate === undefined) {
|
|
342
|
+
this.endDate = new Date(this.max);
|
|
343
|
+
}
|
|
344
|
+
if (this.startYear === undefined) {
|
|
345
|
+
this.startYear = new Date(this.startDate).getFullYear();
|
|
346
|
+
this.initStartYear = this.startYear;
|
|
347
|
+
}
|
|
348
|
+
if (this.endYear === undefined) {
|
|
349
|
+
this.endYear = new Date(this.endDate).getFullYear();
|
|
350
|
+
this.initEndYear = this.endYear;
|
|
351
|
+
}
|
|
352
|
+
if (!this.isRange) {
|
|
353
|
+
for (let i = this.startYear; i <= this.endYear + 1; i++) {
|
|
354
|
+
this.listYears.push(i);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
for (let i = this.startYear; i < this.endYear; i++) {
|
|
359
|
+
this.startListYears.push(i);
|
|
360
|
+
}
|
|
361
|
+
for (let i = this.startYear + 1; i <= this.endYear; i++) {
|
|
362
|
+
this.endListYears.push(i);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
this.options.enabled =
|
|
366
|
+
this.options.enabled === undefined ? true : this.options.enabled;
|
|
367
|
+
this.checkFilterValue();
|
|
368
|
+
if (this.options.enabled) {
|
|
369
|
+
if (!this.isRange && this.style === 'slider' && this.type === 'year') {
|
|
370
|
+
this.yearChange.emit(this.year);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
else {
|
|
374
|
+
this.storeCurrentFilterValue();
|
|
375
|
+
this.yearChange.emit(undefined); // TODO: FIX THIS for ALL OTHER TYPES STYLES OR RANGE.
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
storeCurrentFilterValue() {
|
|
379
|
+
// TODO: FIX THIS for ALL OTHER TYPES STYLES OR RANGE.
|
|
380
|
+
if (!this.isRange &&
|
|
381
|
+
this.style === TimeFilterStyle.SLIDER &&
|
|
382
|
+
this.type === TimeFilterType.YEAR) {
|
|
383
|
+
this.options.value = this.year.toString();
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
checkFilterValue() {
|
|
387
|
+
const olSource = this.layer.dataSource.ol;
|
|
388
|
+
const timeFromWms = olSource.getParams().TIME;
|
|
389
|
+
if (!this.isRange &&
|
|
390
|
+
this.style === TimeFilterStyle.SLIDER &&
|
|
391
|
+
this.type === TimeFilterType.YEAR) {
|
|
392
|
+
if (timeFromWms) {
|
|
393
|
+
this.year = new Date(timeFromWms.toString()).getFullYear() + 1;
|
|
394
|
+
}
|
|
395
|
+
else if (this.options.value) {
|
|
396
|
+
this.year = new Date(this.options.value.toString()).getFullYear() + 1;
|
|
397
|
+
}
|
|
398
|
+
else {
|
|
399
|
+
this.year = new Date(this.min).getFullYear() + 1;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
else if (this.isRange &&
|
|
403
|
+
this.style === TimeFilterStyle.CALENDAR &&
|
|
404
|
+
this.type === TimeFilterType.YEAR) {
|
|
405
|
+
if (timeFromWms) {
|
|
406
|
+
this.startYear = parseInt(timeFromWms.substr(0, 4), 10);
|
|
407
|
+
this.endYear = parseInt(timeFromWms.substr(5, 4), 10);
|
|
408
|
+
const newStartListYears = [];
|
|
409
|
+
const newEndListYears = [];
|
|
410
|
+
for (let i = this.initStartYear; i < this.endYear; i++) {
|
|
411
|
+
newStartListYears.push(i);
|
|
412
|
+
}
|
|
413
|
+
for (let i = this.startYear + 1; i <= this.initEndYear; i++) {
|
|
414
|
+
newEndListYears.push(i);
|
|
415
|
+
}
|
|
416
|
+
this.startListYears = newStartListYears;
|
|
417
|
+
this.endListYears = newEndListYears;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
// TODO: FIX THIS for ALL OTHER TYPES STYLES OR RANGE.
|
|
421
|
+
}
|
|
422
|
+
handleDateChange(event) {
|
|
423
|
+
this.setupDateOutput();
|
|
424
|
+
this.applyTypeChange();
|
|
425
|
+
// Only if is range, use 2 dates to make the range
|
|
426
|
+
if (this.isRange) {
|
|
427
|
+
this.change.emit([this.startDate, this.endDate]);
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
this.change.emit(this.startDate);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
handleYearChange(event) {
|
|
434
|
+
if (this.isRange) {
|
|
435
|
+
this.endListYears = [];
|
|
436
|
+
for (let i = this.startYear + 1; i <= this.initEndYear; i++) {
|
|
437
|
+
this.endListYears.push(i);
|
|
438
|
+
}
|
|
439
|
+
this.startListYears = [];
|
|
440
|
+
for (let i = this.initStartYear + 1; i < this.endYear; i++) {
|
|
441
|
+
this.startListYears.push(i);
|
|
442
|
+
}
|
|
443
|
+
this.yearChange.emit([this.startYear, this.endYear]);
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
this.yearChange.emit(this.year);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
handleListYearChange(event) {
|
|
450
|
+
this.handleYearChange([this.startYear, this.endYear]);
|
|
451
|
+
}
|
|
452
|
+
handleListYearStartChange(event) {
|
|
453
|
+
this.change.emit([this.startDate, this.endDate]);
|
|
454
|
+
}
|
|
455
|
+
dateToNumber(date) {
|
|
456
|
+
let newDate;
|
|
457
|
+
if (date) {
|
|
458
|
+
newDate = new Date(date);
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
newDate = new Date(this.min);
|
|
462
|
+
}
|
|
463
|
+
return newDate.getTime();
|
|
464
|
+
}
|
|
465
|
+
setSliderThumbLabel(label) {
|
|
466
|
+
const thumbLabel = this.findThumbLabel(this.mySlider._elementRef.nativeElement.childNodes);
|
|
467
|
+
if (thumbLabel) {
|
|
468
|
+
thumbLabel.textContent = label;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
findThumbLabel(test) {
|
|
472
|
+
let thumbLabel;
|
|
473
|
+
test.forEach(value => {
|
|
474
|
+
if (value.className === 'mat-slider-thumb-label-text') {
|
|
475
|
+
thumbLabel = value;
|
|
476
|
+
}
|
|
477
|
+
if (value.children.length > 0 && !thumbLabel) {
|
|
478
|
+
thumbLabel = this.findThumbLabel(value.childNodes);
|
|
479
|
+
}
|
|
480
|
+
}, this);
|
|
481
|
+
return thumbLabel;
|
|
482
|
+
}
|
|
483
|
+
toggleFilterState() {
|
|
484
|
+
this.options.enabled = !this.options.enabled;
|
|
485
|
+
if (this.options.enabled) {
|
|
486
|
+
if (!this.isRange &&
|
|
487
|
+
TimeFilterStyle.SLIDER &&
|
|
488
|
+
this.type === TimeFilterType.YEAR) {
|
|
489
|
+
this.yearChange.emit(this.year);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
else {
|
|
493
|
+
this.stopFilter();
|
|
494
|
+
this.storeCurrentFilterValue();
|
|
495
|
+
this.change.emit(undefined); // TODO: FIX THIS for ALL OTHER TYPES STYLES OR RANGE.
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
resetFilter(event) {
|
|
499
|
+
this.date = new Date(this.min);
|
|
500
|
+
this.year = this.date.getFullYear();
|
|
501
|
+
if (!this.isRange &&
|
|
502
|
+
TimeFilterStyle.SLIDER &&
|
|
503
|
+
this.type === TimeFilterType.YEAR) {
|
|
504
|
+
this.yearChange.emit(this.year);
|
|
505
|
+
}
|
|
506
|
+
else {
|
|
507
|
+
this.setupDateOutput();
|
|
508
|
+
this.change.emit(undefined); // TODO: FIX THIS for ALL OTHER TYPES STYLES OR RANGE.
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
playFilter(event) {
|
|
512
|
+
if (this.interval) {
|
|
513
|
+
this.stopFilter();
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
this.playIcon = 'pause-circle';
|
|
517
|
+
this.interval = setInterval(that => {
|
|
518
|
+
let newMinDateNumber;
|
|
519
|
+
const maxDateNumber = new Date(that.max);
|
|
520
|
+
newMinDateNumber =
|
|
521
|
+
that.date === undefined ? that.min.getTime() : that.date.getTime();
|
|
522
|
+
newMinDateNumber += that.mySlider.step;
|
|
523
|
+
that.date = new Date(newMinDateNumber);
|
|
524
|
+
if (newMinDateNumber > maxDateNumber.getTime()) {
|
|
525
|
+
that.stopFilter();
|
|
526
|
+
}
|
|
527
|
+
that.handleDateChange({ value: that.date, date: that.date });
|
|
528
|
+
}, this.timeInterval, this);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
playYear(event) {
|
|
532
|
+
if (this.year + this.mySlider.step >
|
|
533
|
+
this.max.getFullYear() + this.mySlider.step) {
|
|
534
|
+
this.stopFilter();
|
|
535
|
+
this.resetFilter(event);
|
|
536
|
+
}
|
|
537
|
+
if (this.interval) {
|
|
538
|
+
this.stopFilter();
|
|
539
|
+
}
|
|
540
|
+
else {
|
|
541
|
+
this.playIcon = 'pause-circle';
|
|
542
|
+
this.interval = setInterval(() => {
|
|
543
|
+
if ((this.year + this.mySlider.step) > this.max.getFullYear()) {
|
|
544
|
+
this.stopFilter();
|
|
545
|
+
}
|
|
546
|
+
else {
|
|
547
|
+
this.year = this.year + this.mySlider.step;
|
|
548
|
+
}
|
|
549
|
+
this.yearChange.emit(this.year);
|
|
550
|
+
}, this.timeInterval, this);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
stopFilter() {
|
|
554
|
+
if (this.interval) {
|
|
555
|
+
clearInterval(this.interval);
|
|
556
|
+
}
|
|
557
|
+
this.interval = undefined;
|
|
558
|
+
this.playIcon = 'play-circle';
|
|
559
|
+
}
|
|
560
|
+
handleSliderDateChange(event) {
|
|
561
|
+
this.date = new Date(event.value);
|
|
562
|
+
this.setSliderThumbLabel(this.handleSliderTooltip());
|
|
563
|
+
this.handleDateChange(event);
|
|
564
|
+
}
|
|
565
|
+
handleSliderYearChange(event) {
|
|
566
|
+
this.year = event.value;
|
|
567
|
+
this.yearChange.emit(this.year);
|
|
568
|
+
}
|
|
569
|
+
handleSliderValue() {
|
|
570
|
+
if (this.options.current === true || !this.min) {
|
|
571
|
+
const currentDate = new Date();
|
|
572
|
+
this.date = this.getRoundedDate(currentDate);
|
|
573
|
+
}
|
|
574
|
+
if (this.type === TimeFilterType.YEAR) {
|
|
575
|
+
return this.year;
|
|
576
|
+
}
|
|
577
|
+
else {
|
|
578
|
+
return this.date === undefined ? this.min.getTime() : this.date.getTime();
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
handleSliderTooltip() {
|
|
582
|
+
let label;
|
|
583
|
+
switch (this.type) {
|
|
584
|
+
case TimeFilterType.DATE:
|
|
585
|
+
label =
|
|
586
|
+
this.date === undefined
|
|
587
|
+
? this.min.toDateString()
|
|
588
|
+
: this.date.toDateString();
|
|
589
|
+
break;
|
|
590
|
+
case TimeFilterType.TIME:
|
|
591
|
+
label =
|
|
592
|
+
this.date === undefined
|
|
593
|
+
? this.min.toTimeString()
|
|
594
|
+
: this.date.toTimeString();
|
|
595
|
+
break;
|
|
596
|
+
// datetime
|
|
597
|
+
default:
|
|
598
|
+
label =
|
|
599
|
+
this.date === undefined
|
|
600
|
+
? this.min.toUTCString()
|
|
601
|
+
: this.date.toUTCString();
|
|
602
|
+
break;
|
|
603
|
+
}
|
|
604
|
+
return label;
|
|
605
|
+
}
|
|
606
|
+
setupDateOutput() {
|
|
607
|
+
if (this.style === TimeFilterStyle.SLIDER) {
|
|
608
|
+
this.startDate = new Date(this.date);
|
|
609
|
+
this.startDate.setSeconds(-(this.step / 1000));
|
|
610
|
+
this.endDate = new Date(this.startDate);
|
|
611
|
+
this.endDate.setSeconds(this.step / 1000);
|
|
612
|
+
}
|
|
613
|
+
else if (!this.isRange && !!this.date) {
|
|
614
|
+
this.endDate = new Date(this.date);
|
|
615
|
+
this.startDate = new Date(this.date);
|
|
616
|
+
}
|
|
617
|
+
else if (this.isRange && (!!this.date || !this.date)) {
|
|
618
|
+
this.startDate =
|
|
619
|
+
this.startDate === undefined ? new Date(this.min) : this.startDate;
|
|
620
|
+
this.endDate =
|
|
621
|
+
this.endDate === undefined ? new Date(this.max) : this.endDate;
|
|
622
|
+
}
|
|
623
|
+
else if (!this.date) {
|
|
624
|
+
this.startDate =
|
|
625
|
+
this.startDate === undefined ? new Date(this.min) : this.startDate;
|
|
626
|
+
this.endDate =
|
|
627
|
+
this.endDate === undefined ? new Date(this.max) : this.endDate;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
applyTypeChange() {
|
|
631
|
+
switch (this.type) {
|
|
632
|
+
case TimeFilterType.DATE:
|
|
633
|
+
if (this.startDate !== undefined || this.endDate !== undefined) {
|
|
634
|
+
this.startDate.setHours(0);
|
|
635
|
+
this.startDate.setMinutes(0);
|
|
636
|
+
this.startDate.setSeconds(0);
|
|
637
|
+
this.endDate.setHours(23);
|
|
638
|
+
this.endDate.setMinutes(59);
|
|
639
|
+
this.endDate.setSeconds(59);
|
|
640
|
+
}
|
|
641
|
+
break;
|
|
642
|
+
case TimeFilterType.TIME:
|
|
643
|
+
if (this.style === TimeFilterStyle.CALENDAR) {
|
|
644
|
+
if (this.startDate.getDay() !== this.min.getDay()) {
|
|
645
|
+
const selectedHour = this.startDate.getHours();
|
|
646
|
+
const selectedMinute = this.startDate.getMinutes();
|
|
647
|
+
this.startDate = this.min;
|
|
648
|
+
this.startDate.setHours(selectedHour);
|
|
649
|
+
this.startDate.setMinutes(selectedMinute);
|
|
650
|
+
}
|
|
651
|
+
if (this.endDate.getDay() !== this.min.getDay()) {
|
|
652
|
+
const selectedHour = this.endDate.getHours();
|
|
653
|
+
const selectedMinute = this.endDate.getMinutes();
|
|
654
|
+
this.endDate = this.min;
|
|
655
|
+
this.endDate.setHours(selectedHour);
|
|
656
|
+
this.endDate.setMinutes(selectedMinute);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
if (!this.isRange && this.step > 60 * 60 * 1000) {
|
|
660
|
+
this.startDate.setMinutes(0);
|
|
661
|
+
this.startDate.setSeconds(0);
|
|
662
|
+
this.endDate.setMinutes(59);
|
|
663
|
+
this.endDate.setSeconds(59);
|
|
664
|
+
}
|
|
665
|
+
break;
|
|
666
|
+
// datetime
|
|
667
|
+
default:
|
|
668
|
+
// do nothing
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
getRangeMinDate() {
|
|
672
|
+
return this.startDate === undefined ? this.min : this.startDate;
|
|
673
|
+
}
|
|
674
|
+
getRangeMaxDate() {
|
|
675
|
+
return this.endDate === undefined ? this.max : this.endDate;
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Round date at a certain time, 10 minutes by Default
|
|
679
|
+
* @param date - Date to Round
|
|
680
|
+
* @param atMinute - round to closest 'atMinute' minute, rounded 10 by default
|
|
681
|
+
* @return the rounded date
|
|
682
|
+
*/
|
|
683
|
+
getRoundedDate(date, atMinute = 10) {
|
|
684
|
+
const coeff = 1000 * 60 * atMinute;
|
|
685
|
+
return new Date(Math.round(date.getTime() / coeff) * coeff);
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Get the step (period) definition from the layer dimension tag
|
|
689
|
+
* @param step The step as ISO 8601 example: PT10M for 10 Minutes
|
|
690
|
+
* @return the duration in milliseconds
|
|
691
|
+
*/
|
|
692
|
+
getStepDefinition(step) {
|
|
693
|
+
return moment.duration(step).asMilliseconds();
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
TimeFilterFormComponent.ɵfac = function TimeFilterFormComponent_Factory(t) { return new (t || TimeFilterFormComponent)(i0.ɵɵdirectiveInject(i1.DateAdapter)); };
|
|
697
|
+
TimeFilterFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimeFilterFormComponent, selectors: [["igo-time-filter-form"]], viewQuery: function TimeFilterFormComponent_Query(rf, ctx) { if (rf & 1) {
|
|
698
|
+
i0.ɵɵviewQuery(MatSlider, 5);
|
|
699
|
+
} if (rf & 2) {
|
|
700
|
+
let _t;
|
|
701
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.mySlider = _t.first);
|
|
702
|
+
} }, inputs: { layer: "layer", options: "options", currentValue: "currentValue" }, outputs: { change: "change", yearChange: "yearChange" }, decls: 5, vars: 4, consts: [[4, "ngIf"], ["class", "igo-col igo-col-100 igo-col-100-m mat-typography", 4, "ngIf"], ["class", "igo-col igo-col-100 igo-col-100-m", 4, "ngIf"], [1, "igo-col", "igo-col-100", "igo-col-100-m"], ["matSuffix", "", 1, "time-filter-mat-datetimepicker-toggle", 3, "for"], ["openOnFocus", "true", "timeInterval", "5", 3, "type"], ["datetimePicker", ""], ["matInput", "", "autocomplete", "false", "readonly", "readonly", 3, "placeholder", "matDatetimepicker", "ngModel", "min", "max", "ngModelChange", "dateChange"], [1, "igo-col", "igo-col-100"], ["minDatetimePicker", ""], ["matInput", "", "autocomplete", "false", "readonly", "readonly", 3, "placeholder", "matDatetimepicker", "ngModel", "min", "max", "ngModelChange", "input", "dateChange"], ["maxDatetimePicker", ""], [3, "placeholder", "ngModel", "ngModelChange", "selectionChange"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [1, "igo-col", "igo-col-100", "igo-col-100-m", "mat-typography"], ["id", "time-slider", "tickInterval", "auto", "thumbLabel", "", 3, "step", "min", "max", "value", "color", "disabled", "input", "change"], ["class", "date-below", 4, "ngIf"], [1, "igo-layer-actions-container"], ["actions", ""], ["tooltip-position", "below", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "checked", "disabled", "change"], ["mat-icon-button", "", "color", "primary", 3, "disabled", "click"], [3, "svgIcon"], [1, "date-below"], ["id", "time-slider", "tickInterval", "auto", "thumbLabel", "", 3, "step", "min", "max", "value", "input", "selectionChange"], ["mat-icon-button", "", "color", "primary", 3, "click"]], template: function TimeFilterFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
703
|
+
i0.ɵɵtemplate(0, TimeFilterFormComponent_div_0_Template, 3, 2, "div", 0);
|
|
704
|
+
i0.ɵɵtemplate(1, TimeFilterFormComponent_div_1_Template, 3, 2, "div", 0);
|
|
705
|
+
i0.ɵɵelement(2, "br");
|
|
706
|
+
i0.ɵɵtemplate(3, TimeFilterFormComponent_div_3_Template, 15, 19, "div", 1);
|
|
707
|
+
i0.ɵɵtemplate(4, TimeFilterFormComponent_div_4_Template, 6, 6, "div", 2);
|
|
708
|
+
} if (rf & 2) {
|
|
709
|
+
i0.ɵɵproperty("ngIf", ctx.style === "calendar" && ctx.type !== "year");
|
|
710
|
+
i0.ɵɵadvance(1);
|
|
711
|
+
i0.ɵɵproperty("ngIf", ctx.style === "calendar" && ctx.type === "year");
|
|
712
|
+
i0.ɵɵadvance(2);
|
|
713
|
+
i0.ɵɵproperty("ngIf", !ctx.isRange && ctx.style === "slider" && ctx.type === "year");
|
|
714
|
+
i0.ɵɵadvance(1);
|
|
715
|
+
i0.ɵɵproperty("ngIf", ctx.style === "slider" && ctx.type !== "year");
|
|
716
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel, i1.MatOption, i4.MatIcon, i5.MatButton, i6.MatSlider, i7.MatSlideToggle, i8.MatFormField, i8.MatSuffix, i9.MatInput, i10.MatSelect, i11.MatTooltip, i12.MatDatetimepickerComponent, i12.MatDatetimepickerToggleComponent, i12.MatDatetimepickerInputDirective, i13.TranslatePipe], styles: [".igo-layer-filters-container[_ngcontent-%COMP%]{padding-left:5px}mat-slider[_ngcontent-%COMP%] div.mat-slider-thumb-label{width:32px;height:32px;margin:0 auto}mat-slider[_ngcontent-%COMP%] span.mat-slider-thumb-label-text{font-size:10px}#time-slider[_ngcontent-%COMP%]{width:70%;margin:0 auto}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){#time-slider[_ngcontent-%COMP%]{width:60%;margin:0 auto}}.date-below[_ngcontent-%COMP%]{margin:0}mat-form-field[_ngcontent-%COMP%]{text-align:center}mat-datetimepicker-toggle[_ngcontent-%COMP%] .mat-icon{padding-bottom:30px}.igo-layer-actions-container[_ngcontent-%COMP%] > .mat-slide-toggle[_ngcontent-%COMP%]{vertical-align:middle}.time-filter-mat-datetimepicker-toggle[_ngcontent-%COMP%] .mat-icon{width:auto}"] });
|
|
717
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeFilterFormComponent, [{
|
|
718
|
+
type: Component,
|
|
719
|
+
args: [{ selector: 'igo-time-filter-form', template: "<div *ngIf=\"style === 'calendar' && type !=='year'\">\n <div *ngIf=\"!isRange\" class=\"igo-col igo-col-100 igo-col-100-m\">\n <mat-form-field>\n <mat-datetimepicker-toggle class=\"time-filter-mat-datetimepicker-toggle\" [for]=\"datetimePicker\" matSuffix></mat-datetimepicker-toggle>\n <mat-datetimepicker #datetimePicker type=\"{{type}}\" openOnFocus=\"true\" timeInterval=\"5\"></mat-datetimepicker>\n <input matInput autocomplete=\"false\"\n placeholder=\"{{'igo.geo.timeFilter.date' | translate}}\"\n [matDatetimepicker]=\"datetimePicker\"\n [(ngModel)]=\"date\"\n [min]=\"min\"\n [max]=\"max\"\n readonly=\"readonly\"\n (dateChange)=\"handleDateChange($event)\">\n </mat-form-field>\n\n </div>\n\n <div *ngIf=\"isRange\">\n <div class=\"igo-col igo-col-100\">\n <mat-form-field>\n <mat-datetimepicker-toggle class=\"time-filter-mat-datetimepicker-toggle\" [for]=\"minDatetimePicker\" matSuffix></mat-datetimepicker-toggle>\n <mat-datetimepicker #minDatetimePicker type=\"{{type}}\" openOnFocus=\"true\" timeInterval=\"5\"></mat-datetimepicker>\n <input matInput autocomplete=\"false\"\n placeholder=\"{{'igo.geo.timeFilter.startDate' | translate}}\"\n [matDatetimepicker]=\"minDatetimePicker\"\n [(ngModel)]=\"startDate\"\n [min]=\"min\"\n [max]=\"getRangeMaxDate()\"\n readonly=\"readonly\"\n (input)=\"startDate\"\n (dateChange)=\"handleDateChange($event)\">\n </mat-form-field>\n </div>\n\n <div class=\"igo-col igo-col-100\">\n <mat-form-field>\n <mat-datetimepicker-toggle class=\"time-filter-mat-datetimepicker-toggle\" [for]=\"maxDatetimePicker\" matSuffix></mat-datetimepicker-toggle>\n <mat-datetimepicker #maxDatetimePicker type=\"{{type}}\" openOnFocus=\"true\" timeInterval=\"5\"></mat-datetimepicker>\n <input matInput autocomplete=\"false\"\n placeholder=\"{{'igo.geo.timeFilter.endDate' | translate}}\"\n [matDatetimepicker]=\"maxDatetimePicker\"\n [(ngModel)]=\"endDate\"\n [min]=\"getRangeMinDate()\"\n [max]=\"max\"\n readonly=\"readonly\"\n (dateChange)=\"handleDateChange($event)\">\n </mat-form-field>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"style === 'calendar' && type ==='year'\">\n\n <div *ngIf=\"!isRange\" class=\"igo-col igo-col-100 igo-col-100-m\">\n <mat-form-field>\n <mat-select placeholder=\"{{'igo.geo.timeFilter.date' | translate}}\" [(ngModel)]=\"year\" (selectionChange)=\"handleYearChange($event)\">\n <mat-option [value]=\"year\" *ngFor=\"let year of listYears\">{{year}}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div *ngIf=\"isRange\">\n <div class=\"igo-col igo-col-100\">\n <mat-form-field>\n <mat-select placeholder=\"{{'igo.geo.timeFilter.startDate' | translate}}\" [(ngModel)]=\"startYear\" (selectionChange)=\"handleYearChange($event)\">\n <mat-option [value]=\"startYear\" *ngFor=\"let startYear of startListYears\">{{startYear}}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div class=\"igo-col igo-col-100\">\n <mat-form-field>\n <mat-select placeholder=\"{{'igo.geo.timeFilter.endDate' | translate}}\" [(ngModel)]=\"endYear\" (selectionChange)=\"handleYearChange($event)\">\n <mat-option [value]=\"endYear\" *ngFor=\"let endYear of endListYears\">{{endYear}}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n </div>\n\n</div>\n\n\n <br>\n <div *ngIf=\"!isRange && style === 'slider' && type === 'year'\" class=\"igo-col igo-col-100 igo-col-100-m mat-typography\">\n <span>{{startYear}}</span>\n <mat-slider\n id=\"time-slider\"\n tickInterval=\"auto\"\n step=\"{{step}}\"\n [min]=\"startYear\"\n [max]=\"endYear\"\n [value]=\"handleSliderValue()\"\n [color]=\"color\"\n thumbLabel\n (input)=\"handleSliderYearChange($event)\"\n (change)=\"handleSliderYearChange($event)\"\n [disabled]= \"!options.enabled || !layer.visible\">\n </mat-slider>\n <span>{{endYear}}</span>\n <p *ngIf= \"options.enabled\" class=\"date-below\">{{year}}</p>\n <div #actions class=\"igo-layer-actions-container\">\n <mat-slide-toggle (change)=\"toggleFilterState()\" tooltip-position=\"below\" matTooltipShowDelay=\"500\"\n [matTooltip]=\"'igo.geo.filter.toggleFilterState' | translate\" [color]=\"color\" [checked]=\"options.enabled\"\n [disabled]=\"!layer.visible\">\n </mat-slide-toggle>\n <button [disabled]= \"!options.enabled || !layer.visible\" mat-icon-button color=\"primary\" (click)=\"playYear($event)\">\n <mat-icon svgIcon=\"{{playIcon}}\"></mat-icon>\n </button>\n <button [disabled]=\"!options.enabled || !layer.visible\" mat-icon-button color=\"primary\" (click)=\"resetFilter($event)\">\n <mat-icon svgIcon=\"{{resetIcon}}\"></mat-icon>\n </button>\n </div>\n </div>\n\n<div *ngIf=\"style === 'slider' && type !== 'year'\" class=\"igo-col igo-col-100 igo-col-100-m\">\n <mat-slider\n id=\"time-slider\"\n tickInterval=\"auto\"\n step=\"{{step}}\"\n [min]=\"dateToNumber(min)\"\n [max]=\"dateToNumber(max)\"\n [value]=\"handleSliderValue()\"\n thumbLabel\n (input)=\"handleSliderDateChange($event)\"\n (selectionChange)=\"handleSliderDateChange($event)\">\n </mat-slider>\n <p class=\"date-below\">{{handleSliderTooltip()}}</p>\n <button mat-icon-button color=\"primary\" (click)=\"playFilter($event)\">\n <mat-icon svgIcon=\"{{playIcon}}\"></mat-icon>\n </button>\n</div>\n", styles: [".igo-layer-filters-container{padding-left:5px}mat-slider ::ng-deep div.mat-slider-thumb-label{width:32px;height:32px;margin:0 auto}mat-slider ::ng-deep span.mat-slider-thumb-label-text{font-size:10px}#time-slider{width:70%;margin:0 auto}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){#time-slider{width:60%;margin:0 auto}}.date-below{margin:0}mat-form-field{text-align:center}mat-datetimepicker-toggle ::ng-deep .mat-icon{padding-bottom:30px}.igo-layer-actions-container>.mat-slide-toggle{vertical-align:middle}.time-filter-mat-datetimepicker-toggle ::ng-deep .mat-icon{width:auto}\n"] }]
|
|
720
|
+
}], function () { return [{ type: i1.DateAdapter }]; }, { layer: [{
|
|
721
|
+
type: Input
|
|
722
|
+
}], options: [{
|
|
723
|
+
type: Input
|
|
724
|
+
}], currentValue: [{
|
|
725
|
+
type: Input
|
|
726
|
+
}], change: [{
|
|
727
|
+
type: Output
|
|
728
|
+
}], yearChange: [{
|
|
729
|
+
type: Output
|
|
730
|
+
}], mySlider: [{
|
|
731
|
+
type: ViewChild,
|
|
732
|
+
args: [MatSlider]
|
|
733
|
+
}] }); })();
|
|
734
734
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS1maWx0ZXItZm9ybS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9n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AgPT09IHVuZGVmaW5lZCkge1xuICAgICAgc3dpdGNoICh0aGlzLnR5cGUpIHtcbiAgICAgICAgY2FzZSBUaW1lRmlsdGVyVHlwZS5EQVRFOlxuICAgICAgICBjYXNlIFRpbWVGaWx0ZXJUeXBlLkRBVEVUSU1FOlxuICAgICAgICAgIHN0ZXAgPSAxMDgwMDAwMDtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBUaW1lRmlsdGVyVHlwZS5USU1FOlxuICAgICAgICAgIHN0ZXAgPSAzNjAwMDAwO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlIFRpbWVGaWx0ZXJUeXBlLllFQVI6XG4gICAgICAgICAgc3RlcCA9IDMxNTM2MDAwMDAwO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgIHN0ZXAgPSAxMDgwMDAwMDtcbiAgICAgIH1cbiAgICB9IGVsc2Uge1xuICAgICAgc3RlcCA9IHRoaXMuZ2V0U3RlcERlZmluaXRpb24odGhpcy5vcHRpb25zLnN0ZXApO1xuICAgIH1cblxuICAgIHJldHVybiBzdGVwO1xuICB9XG5cbiAgZ2V0IHRpbWVJbnRlcnZhbCgpOiBudW1iZXIge1xuICAgIHJldHVybiB0aGlzLm9wdGlvbnMudGltZUludGVydmFsID09PSB1bmRlZmluZWRcbiAgICAgID8gMjAwMFxuICAgICAgOiB0aGlzLm9wdGlvbnMudGltZUludGVydmFsO1xuICB9XG5cbiAgZ2V0IG1pbigpOiBEYXRlIHtcbiAgICBpZiAodGhpcy5vcHRpb25zLm1pbikge1xuICAgICAgY29uc3QgbWluID0gbmV3IERhdGUodGhpcy5vcHRpb25zLm1pbik7XG4gICAgICByZXR1cm4gbmV3IERhdGUobWluLmdldFRpbWUoKSArIG1pbi5nZXRUaW1lem9uZU9mZnNldCgpICogNjAwMDApO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH1c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