@mapsight/ui 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/components/app.d.ts +6 -0
- package/dist/components/app.d.ts.map +1 -0
- package/dist/components/app.js +68 -0
- package/dist/components/app.js.map +1 -0
- package/dist/components/close-overlay-button.d.ts +8 -0
- package/dist/components/close-overlay-button.d.ts.map +1 -0
- package/dist/components/close-overlay-button.js +7 -0
- package/dist/components/close-overlay-button.js.map +1 -0
- package/dist/components/feature-details-content/feature-details-content-inner.d.ts +18 -0
- package/dist/components/feature-details-content/feature-details-content-inner.d.ts.map +1 -0
- package/dist/components/feature-details-content/feature-details-content-inner.js +47 -0
- package/dist/components/feature-details-content/feature-details-content-inner.js.map +1 -0
- package/dist/components/feature-details-content/feature-details-content.d.ts +9 -0
- package/dist/components/feature-details-content/feature-details-content.d.ts.map +1 -0
- package/dist/components/feature-details-content/feature-details-content.js +99 -0
- package/dist/components/feature-details-content/feature-details-content.js.map +1 -0
- package/dist/components/feature-details-content/index.d.ts +14 -0
- package/dist/components/feature-details-content/index.d.ts.map +1 -0
- package/dist/components/feature-details-content/index.js +11 -0
- package/dist/components/feature-details-content/index.js.map +1 -0
- package/dist/components/feature-details-content/share-feature-link-modal.d.ts +8 -0
- package/dist/components/feature-details-content/share-feature-link-modal.d.ts.map +1 -0
- package/dist/components/feature-details-content/share-feature-link-modal.js +14 -0
- package/dist/components/feature-details-content/share-feature-link-modal.js.map +1 -0
- package/dist/components/feature-list/content.d.ts +3 -0
- package/dist/components/feature-list/content.d.ts.map +1 -0
- package/dist/components/feature-list/content.js +17 -0
- package/dist/components/feature-list/content.js.map +1 -0
- package/dist/components/feature-list/context.d.ts +16 -0
- package/dist/components/feature-list/context.d.ts.map +1 -0
- package/dist/components/feature-list/context.js +13 -0
- package/dist/components/feature-list/context.js.map +1 -0
- package/dist/components/feature-list/empty-message.d.ts +7 -0
- package/dist/components/feature-list/empty-message.d.ts.map +1 -0
- package/dist/components/feature-list/empty-message.js +10 -0
- package/dist/components/feature-list/empty-message.js.map +1 -0
- package/dist/components/feature-list/filter.d.ts +4 -0
- package/dist/components/feature-list/filter.d.ts.map +1 -0
- package/dist/components/feature-list/filter.js +26 -0
- package/dist/components/feature-list/filter.js.map +1 -0
- package/dist/components/feature-list/footer.d.ts +6 -0
- package/dist/components/feature-list/footer.d.ts.map +1 -0
- package/dist/components/feature-list/footer.js +6 -0
- package/dist/components/feature-list/footer.js.map +1 -0
- package/dist/components/feature-list/grouped-content.d.ts +8 -0
- package/dist/components/feature-list/grouped-content.d.ts.map +1 -0
- package/dist/components/feature-list/grouped-content.js +31 -0
- package/dist/components/feature-list/grouped-content.js.map +1 -0
- package/dist/components/feature-list/header.d.ts +6 -0
- package/dist/components/feature-list/header.d.ts.map +1 -0
- package/dist/components/feature-list/header.js +7 -0
- package/dist/components/feature-list/header.js.map +1 -0
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.d.ts +2 -0
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.d.ts.map +1 -0
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.js +14 -0
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.js.map +1 -0
- package/dist/components/feature-list/hooks/useFeatureListFeatureSource.d.ts +10 -0
- package/dist/components/feature-list/hooks/useFeatureListFeatureSource.d.ts.map +1 -0
- package/dist/components/feature-list/hooks/useFeatureListFeatureSource.js +14 -0
- package/dist/components/feature-list/hooks/useFeatureListFeatureSource.js.map +1 -0
- package/dist/components/feature-list/hooks/useFeatureListItemGroups.d.ts +15 -0
- package/dist/components/feature-list/hooks/useFeatureListItemGroups.d.ts.map +1 -0
- package/dist/components/feature-list/hooks/useFeatureListItemGroups.js +69 -0
- package/dist/components/feature-list/hooks/useFeatureListItemGroups.js.map +1 -0
- package/dist/components/feature-list/hooks/useFeatureListState.d.ts +16 -0
- package/dist/components/feature-list/hooks/useFeatureListState.d.ts.map +1 -0
- package/dist/components/feature-list/hooks/useFeatureListState.js +43 -0
- package/dist/components/feature-list/hooks/useFeatureListState.js.map +1 -0
- package/dist/components/feature-list/hooks/useKeyboardNavigation.d.ts +14 -0
- package/dist/components/feature-list/hooks/useKeyboardNavigation.d.ts.map +1 -0
- package/dist/components/feature-list/hooks/useKeyboardNavigation.js +90 -0
- package/dist/components/feature-list/hooks/useKeyboardNavigation.js.map +1 -0
- package/dist/components/feature-list/hooks/useMakeHeaderSticky.d.ts +2 -0
- package/dist/components/feature-list/hooks/useMakeHeaderSticky.d.ts.map +1 -0
- package/dist/components/feature-list/hooks/useMakeHeaderSticky.js +26 -0
- package/dist/components/feature-list/hooks/useMakeHeaderSticky.js.map +1 -0
- package/dist/components/feature-list/hooks/usePaginatedFilteredFeatures.d.ts +11 -0
- package/dist/components/feature-list/hooks/usePaginatedFilteredFeatures.d.ts.map +1 -0
- package/dist/components/feature-list/hooks/usePaginatedFilteredFeatures.js +78 -0
- package/dist/components/feature-list/hooks/usePaginatedFilteredFeatures.js.map +1 -0
- package/dist/components/feature-list/hooks/useRestoreDocumentScroll.d.ts +2 -0
- package/dist/components/feature-list/hooks/useRestoreDocumentScroll.d.ts.map +1 -0
- package/dist/components/feature-list/hooks/useRestoreDocumentScroll.js +11 -0
- package/dist/components/feature-list/hooks/useRestoreDocumentScroll.js.map +1 -0
- package/dist/components/feature-list/hooks/useSelectFeature.d.ts +2 -0
- package/dist/components/feature-list/hooks/useSelectFeature.d.ts.map +1 -0
- package/dist/components/feature-list/hooks/useSelectFeature.js +43 -0
- package/dist/components/feature-list/hooks/useSelectFeature.js.map +1 -0
- package/dist/components/feature-list/index.d.ts +4 -0
- package/dist/components/feature-list/index.d.ts.map +1 -0
- package/dist/components/feature-list/index.js +139 -0
- package/dist/components/feature-list/index.js.map +1 -0
- package/dist/components/feature-list/pagination.d.ts +6 -0
- package/dist/components/feature-list/pagination.d.ts.map +1 -0
- package/dist/components/feature-list/pagination.js +24 -0
- package/dist/components/feature-list/pagination.js.map +1 -0
- package/dist/components/feature-list/query-input.d.ts +3 -0
- package/dist/components/feature-list/query-input.d.ts.map +1 -0
- package/dist/components/feature-list/query-input.js +8 -0
- package/dist/components/feature-list/query-input.js.map +1 -0
- package/dist/components/feature-list-cycling/button.d.ts +7 -0
- package/dist/components/feature-list-cycling/button.d.ts.map +1 -0
- package/dist/components/feature-list-cycling/button.js +6 -0
- package/dist/components/feature-list-cycling/button.js.map +1 -0
- package/dist/components/feature-list-cycling/dot.d.ts +11 -0
- package/dist/components/feature-list-cycling/dot.d.ts.map +1 -0
- package/dist/components/feature-list-cycling/dot.js +16 -0
- package/dist/components/feature-list-cycling/dot.js.map +1 -0
- package/dist/components/feature-list-cycling/feature-list-cycling.d.ts +11 -0
- package/dist/components/feature-list-cycling/feature-list-cycling.d.ts.map +1 -0
- package/dist/components/feature-list-cycling/feature-list-cycling.js +78 -0
- package/dist/components/feature-list-cycling/feature-list-cycling.js.map +1 -0
- package/dist/components/feature-list-cycling/index.d.ts +16 -0
- package/dist/components/feature-list-cycling/index.d.ts.map +1 -0
- package/dist/components/feature-list-cycling/index.js +35 -0
- package/dist/components/feature-list-cycling/index.js.map +1 -0
- package/dist/components/feature-list-item/head.d.ts +16 -0
- package/dist/components/feature-list-item/head.d.ts.map +1 -0
- package/dist/components/feature-list-item/head.js +56 -0
- package/dist/components/feature-list-item/head.js.map +1 -0
- package/dist/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.d.ts +6 -0
- package/dist/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.d.ts.map +1 -0
- package/dist/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.js +40 -0
- package/dist/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.js.map +1 -0
- package/dist/components/feature-list-item/hooks/useFeatureListItemState.d.ts +16 -0
- package/dist/components/feature-list-item/hooks/useFeatureListItemState.d.ts.map +1 -0
- package/dist/components/feature-list-item/hooks/useFeatureListItemState.js +44 -0
- package/dist/components/feature-list-item/hooks/useFeatureListItemState.js.map +1 -0
- package/dist/components/feature-list-item/icon.d.ts +9 -0
- package/dist/components/feature-list-item/icon.d.ts.map +1 -0
- package/dist/components/feature-list-item/icon.js +23 -0
- package/dist/components/feature-list-item/icon.js.map +1 -0
- package/dist/components/feature-list-item/index.d.ts +14 -0
- package/dist/components/feature-list-item/index.d.ts.map +1 -0
- package/dist/components/feature-list-item/index.js +72 -0
- package/dist/components/feature-list-item/index.js.map +1 -0
- package/dist/components/feature-list-sorting/feature-list-sorting.d.ts +22 -0
- package/dist/components/feature-list-sorting/feature-list-sorting.d.ts.map +1 -0
- package/dist/components/feature-list-sorting/feature-list-sorting.js +45 -0
- package/dist/components/feature-list-sorting/feature-list-sorting.js.map +1 -0
- package/dist/components/feature-list-sorting/index.d.ts +24 -0
- package/dist/components/feature-list-sorting/index.d.ts.map +1 -0
- package/dist/components/feature-list-sorting/index.js +19 -0
- package/dist/components/feature-list-sorting/index.js.map +1 -0
- package/dist/components/feature-list-sorting/status-indicator.d.ts +4 -0
- package/dist/components/feature-list-sorting/status-indicator.d.ts.map +1 -0
- package/dist/components/feature-list-sorting/status-indicator.js +6 -0
- package/dist/components/feature-list-sorting/status-indicator.js.map +1 -0
- package/dist/components/feature-select-button.d.ts +12 -0
- package/dist/components/feature-select-button.d.ts.map +1 -0
- package/dist/components/feature-select-button.js +47 -0
- package/dist/components/feature-select-button.js.map +1 -0
- package/dist/components/feature-selection-info/close-button.d.ts +8 -0
- package/dist/components/feature-selection-info/close-button.d.ts.map +1 -0
- package/dist/components/feature-selection-info/close-button.js +30 -0
- package/dist/components/feature-selection-info/close-button.js.map +1 -0
- package/dist/components/feature-selection-info/container.d.ts +7 -0
- package/dist/components/feature-selection-info/container.d.ts.map +1 -0
- package/dist/components/feature-selection-info/container.js +6 -0
- package/dist/components/feature-selection-info/container.js.map +1 -0
- package/dist/components/feature-selection-info/header.d.ts +14 -0
- package/dist/components/feature-selection-info/header.d.ts.map +1 -0
- package/dist/components/feature-selection-info/header.js +11 -0
- package/dist/components/feature-selection-info/header.js.map +1 -0
- package/dist/components/feature-selection-info/index.d.ts +6 -0
- package/dist/components/feature-selection-info/index.d.ts.map +1 -0
- package/dist/components/feature-selection-info/index.js +31 -0
- package/dist/components/feature-selection-info/index.js.map +1 -0
- package/dist/components/feature-selection-info/with-sticky-header.d.ts +9 -0
- package/dist/components/feature-selection-info/with-sticky-header.d.ts.map +1 -0
- package/dist/components/feature-selection-info/with-sticky-header.js +29 -0
- package/dist/components/feature-selection-info/with-sticky-header.js.map +1 -0
- package/dist/components/feature-selection-info/without-sticky-header.d.ts +8 -0
- package/dist/components/feature-selection-info/without-sticky-header.d.ts.map +1 -0
- package/dist/components/feature-selection-info/without-sticky-header.js +9 -0
- package/dist/components/feature-selection-info/without-sticky-header.js.map +1 -0
- package/dist/components/feature-selection-info/wrapper.d.ts +3 -0
- package/dist/components/feature-selection-info/wrapper.d.ts.map +1 -0
- package/dist/components/feature-selection-info/wrapper.js +26 -0
- package/dist/components/feature-selection-info/wrapper.js.map +1 -0
- package/dist/components/helping/app-channel.d.ts +23 -0
- package/dist/components/helping/app-channel.d.ts.map +1 -0
- package/dist/components/helping/app-channel.js +66 -0
- package/dist/components/helping/app-channel.js.map +1 -0
- package/dist/components/helping/app-context.d.ts +11 -0
- package/dist/components/helping/app-context.d.ts.map +1 -0
- package/dist/components/helping/app-context.js +9 -0
- package/dist/components/helping/app-context.js.map +1 -0
- package/dist/components/helping/visibility-wrapper.d.ts +16 -0
- package/dist/components/helping/visibility-wrapper.d.ts.map +1 -0
- package/dist/components/helping/visibility-wrapper.js +22 -0
- package/dist/components/helping/visibility-wrapper.js.map +1 -0
- package/dist/components/instance.d.ts +11 -0
- package/dist/components/instance.d.ts.map +1 -0
- package/dist/components/instance.js +14 -0
- package/dist/components/instance.js.map +1 -0
- package/dist/components/layer-switcher/GroupedLayerSwitcher.d.ts +5 -0
- package/dist/components/layer-switcher/GroupedLayerSwitcher.d.ts.map +1 -0
- package/dist/components/layer-switcher/GroupedLayerSwitcher.js +27 -0
- package/dist/components/layer-switcher/GroupedLayerSwitcher.js.map +1 -0
- package/dist/components/layer-switcher/LayerSwitcher.d.ts +16 -0
- package/dist/components/layer-switcher/LayerSwitcher.d.ts.map +1 -0
- package/dist/components/layer-switcher/LayerSwitcher.js +14 -0
- package/dist/components/layer-switcher/LayerSwitcher.js.map +1 -0
- package/dist/components/layer-switcher/LayerSwitcherEntry.d.ts +14 -0
- package/dist/components/layer-switcher/LayerSwitcherEntry.d.ts.map +1 -0
- package/dist/components/layer-switcher/LayerSwitcherEntry.js +80 -0
- package/dist/components/layer-switcher/LayerSwitcherEntry.js.map +1 -0
- package/dist/components/layer-switcher/LayerSwticherContainer.d.ts +4 -0
- package/dist/components/layer-switcher/LayerSwticherContainer.d.ts.map +1 -0
- package/dist/components/layer-switcher/LayerSwticherContainer.js +19 -0
- package/dist/components/layer-switcher/LayerSwticherContainer.js.map +1 -0
- package/dist/components/layer-switcher/index.d.ts +5 -0
- package/dist/components/layer-switcher/index.d.ts.map +1 -0
- package/dist/components/layer-switcher/index.js +28 -0
- package/dist/components/layer-switcher/index.js.map +1 -0
- package/dist/components/layout/additional-container/content.d.ts +7 -0
- package/dist/components/layout/additional-container/content.d.ts.map +1 -0
- package/dist/components/layout/additional-container/content.js +6 -0
- package/dist/components/layout/additional-container/content.js.map +1 -0
- package/dist/components/layout/additional-container/index.d.ts +7 -0
- package/dist/components/layout/additional-container/index.d.ts.map +1 -0
- package/dist/components/layout/additional-container/index.js +6 -0
- package/dist/components/layout/additional-container/index.js.map +1 -0
- package/dist/components/layout/additional-container/marginal.d.ts +8 -0
- package/dist/components/layout/additional-container/marginal.d.ts.map +1 -0
- package/dist/components/layout/additional-container/marginal.js +6 -0
- package/dist/components/layout/additional-container/marginal.js.map +1 -0
- package/dist/components/layout/main-container.d.ts +6 -0
- package/dist/components/layout/main-container.d.ts.map +1 -0
- package/dist/components/layout/main-container.js +6 -0
- package/dist/components/layout/main-container.js.map +1 -0
- package/dist/components/layout/map-row.d.ts +6 -0
- package/dist/components/layout/map-row.d.ts.map +1 -0
- package/dist/components/layout/map-row.js +6 -0
- package/dist/components/layout/map-row.js.map +1 -0
- package/dist/components/layout/title-bar.d.ts +10 -0
- package/dist/components/layout/title-bar.d.ts.map +1 -0
- package/dist/components/layout/title-bar.js +11 -0
- package/dist/components/layout/title-bar.js.map +1 -0
- package/dist/components/layout/wrapper.d.ts +7 -0
- package/dist/components/layout/wrapper.d.ts.map +1 -0
- package/dist/components/layout/wrapper.js +13 -0
- package/dist/components/layout/wrapper.js.map +1 -0
- package/dist/components/link-share.d.ts +9 -0
- package/dist/components/link-share.d.ts.map +1 -0
- package/dist/components/link-share.js +30 -0
- package/dist/components/link-share.js.map +1 -0
- package/dist/components/main-panel/container.d.ts +5 -0
- package/dist/components/main-panel/container.d.ts.map +1 -0
- package/dist/components/main-panel/container.js +13 -0
- package/dist/components/main-panel/container.js.map +1 -0
- package/dist/components/main-panel/context.d.ts +6 -0
- package/dist/components/main-panel/context.d.ts.map +1 -0
- package/dist/components/main-panel/context.js +45 -0
- package/dist/components/main-panel/context.js.map +1 -0
- package/dist/components/main-panel/index.d.ts +3 -0
- package/dist/components/main-panel/index.d.ts.map +1 -0
- package/dist/components/main-panel/index.js +19 -0
- package/dist/components/main-panel/index.js.map +1 -0
- package/dist/components/main-panel/list-toggle-button.d.ts +3 -0
- package/dist/components/main-panel/list-toggle-button.d.ts.map +1 -0
- package/dist/components/main-panel/list-toggle-button.js +23 -0
- package/dist/components/main-panel/list-toggle-button.js.map +1 -0
- package/dist/components/map-overlay/area.d.ts +12 -0
- package/dist/components/map-overlay/area.d.ts.map +1 -0
- package/dist/components/map-overlay/area.js +12 -0
- package/dist/components/map-overlay/area.js.map +1 -0
- package/dist/components/map-overlay/attribution-entries.d.ts +8 -0
- package/dist/components/map-overlay/attribution-entries.d.ts.map +1 -0
- package/dist/components/map-overlay/attribution-entries.js +8 -0
- package/dist/components/map-overlay/attribution-entries.js.map +1 -0
- package/dist/components/map-overlay/attribution.d.ts +4 -0
- package/dist/components/map-overlay/attribution.d.ts.map +1 -0
- package/dist/components/map-overlay/attribution.js +14 -0
- package/dist/components/map-overlay/attribution.js.map +1 -0
- package/dist/components/map-overlay/combined-buttons.d.ts +5 -0
- package/dist/components/map-overlay/combined-buttons.d.ts.map +1 -0
- package/dist/components/map-overlay/combined-buttons.js +6 -0
- package/dist/components/map-overlay/combined-buttons.js.map +1 -0
- package/dist/components/map-overlay/index.d.ts +5 -0
- package/dist/components/map-overlay/index.d.ts.map +1 -0
- package/dist/components/map-overlay/index.js +6 -0
- package/dist/components/map-overlay/index.js.map +1 -0
- package/dist/components/map-overlay/info-overlay-left.d.ts +4 -0
- package/dist/components/map-overlay/info-overlay-left.d.ts.map +1 -0
- package/dist/components/map-overlay/info-overlay-left.js +18 -0
- package/dist/components/map-overlay/info-overlay-left.js.map +1 -0
- package/dist/components/map-overlay/info-overlay-modal.d.ts +5 -0
- package/dist/components/map-overlay/info-overlay-modal.d.ts.map +1 -0
- package/dist/components/map-overlay/info-overlay-modal.js +27 -0
- package/dist/components/map-overlay/info-overlay-modal.js.map +1 -0
- package/dist/components/map-overlay/info-overlay-right.d.ts +4 -0
- package/dist/components/map-overlay/info-overlay-right.d.ts.map +1 -0
- package/dist/components/map-overlay/info-overlay-right.js +23 -0
- package/dist/components/map-overlay/info-overlay-right.js.map +1 -0
- package/dist/components/map-overlay/layer-switcher-overlay.d.ts +4 -0
- package/dist/components/map-overlay/layer-switcher-overlay.d.ts.map +1 -0
- package/dist/components/map-overlay/layer-switcher-overlay.js +31 -0
- package/dist/components/map-overlay/layer-switcher-overlay.js.map +1 -0
- package/dist/components/map-overlay/legend.d.ts +2 -0
- package/dist/components/map-overlay/legend.d.ts.map +1 -0
- package/dist/components/map-overlay/legend.js +13 -0
- package/dist/components/map-overlay/legend.js.map +1 -0
- package/dist/components/map-overlay/logo.d.ts +2 -0
- package/dist/components/map-overlay/logo.d.ts.map +1 -0
- package/dist/components/map-overlay/logo.js +6 -0
- package/dist/components/map-overlay/logo.js.map +1 -0
- package/dist/components/map-overlay/measure-distance-button.d.ts +8 -0
- package/dist/components/map-overlay/measure-distance-button.d.ts.map +1 -0
- package/dist/components/map-overlay/measure-distance-button.js +43 -0
- package/dist/components/map-overlay/measure-distance-button.js.map +1 -0
- package/dist/components/map-overlay/measure-distance-overlay.d.ts +5 -0
- package/dist/components/map-overlay/measure-distance-overlay.d.ts.map +1 -0
- package/dist/components/map-overlay/measure-distance-overlay.js +42 -0
- package/dist/components/map-overlay/measure-distance-overlay.js.map +1 -0
- package/dist/components/map-overlay/mini-legend.d.ts +8 -0
- package/dist/components/map-overlay/mini-legend.d.ts.map +1 -0
- package/dist/components/map-overlay/mini-legend.js +42 -0
- package/dist/components/map-overlay/mini-legend.js.map +1 -0
- package/dist/components/map-overlay/region-selector.d.ts +3 -0
- package/dist/components/map-overlay/region-selector.d.ts.map +1 -0
- package/dist/components/map-overlay/region-selector.js +32 -0
- package/dist/components/map-overlay/region-selector.js.map +1 -0
- package/dist/components/map-overlay/search-overlay.d.ts +4 -0
- package/dist/components/map-overlay/search-overlay.d.ts.map +1 -0
- package/dist/components/map-overlay/search-overlay.js +33 -0
- package/dist/components/map-overlay/search-overlay.js.map +1 -0
- package/dist/components/map-overlay/share-position-link-button.d.ts +8 -0
- package/dist/components/map-overlay/share-position-link-button.d.ts.map +1 -0
- package/dist/components/map-overlay/share-position-link-button.js +54 -0
- package/dist/components/map-overlay/share-position-link-button.js.map +1 -0
- package/dist/components/map-overlay/tool-overlay.d.ts +9 -0
- package/dist/components/map-overlay/tool-overlay.d.ts.map +1 -0
- package/dist/components/map-overlay/tool-overlay.js +8 -0
- package/dist/components/map-overlay/tool-overlay.js.map +1 -0
- package/dist/components/map-overlay/user-geo-location-button.d.ts +5 -0
- package/dist/components/map-overlay/user-geo-location-button.d.ts.map +1 -0
- package/dist/components/map-overlay/user-geo-location-button.js +63 -0
- package/dist/components/map-overlay/user-geo-location-button.js.map +1 -0
- package/dist/components/map-overlay/zoom-button.d.ts +20 -0
- package/dist/components/map-overlay/zoom-button.d.ts.map +1 -0
- package/dist/components/map-overlay/zoom-button.js +64 -0
- package/dist/components/map-overlay/zoom-button.js.map +1 -0
- package/dist/components/map-overlay/zoom-buttons.d.ts +3 -0
- package/dist/components/map-overlay/zoom-buttons.d.ts.map +1 -0
- package/dist/components/map-overlay/zoom-buttons.js +10 -0
- package/dist/components/map-overlay/zoom-buttons.js.map +1 -0
- package/dist/components/map-synced-interlay/index.d.ts +11 -0
- package/dist/components/map-synced-interlay/index.d.ts.map +1 -0
- package/dist/components/map-synced-interlay/index.js +12 -0
- package/dist/components/map-synced-interlay/index.js.map +1 -0
- package/dist/components/map-synced-interlay/map-synced-interlay.d.ts +6 -0
- package/dist/components/map-synced-interlay/map-synced-interlay.d.ts.map +1 -0
- package/dist/components/map-synced-interlay/map-synced-interlay.js +12 -0
- package/dist/components/map-synced-interlay/map-synced-interlay.js.map +1 -0
- package/dist/components/map-synced-interlay/tooltip-content.d.ts +15 -0
- package/dist/components/map-synced-interlay/tooltip-content.d.ts.map +1 -0
- package/dist/components/map-synced-interlay/tooltip-content.js +7 -0
- package/dist/components/map-synced-interlay/tooltip-content.js.map +1 -0
- package/dist/components/map-synced-interlay/tooltip.d.ts +10 -0
- package/dist/components/map-synced-interlay/tooltip.d.ts.map +1 -0
- package/dist/components/map-synced-interlay/tooltip.js +111 -0
- package/dist/components/map-synced-interlay/tooltip.js.map +1 -0
- package/dist/components/map-wrapper.d.ts +5 -0
- package/dist/components/map-wrapper.d.ts.map +1 -0
- package/dist/components/map-wrapper.js +39 -0
- package/dist/components/map-wrapper.js.map +1 -0
- package/dist/components/map.d.ts +8 -0
- package/dist/components/map.d.ts.map +1 -0
- package/dist/components/map.js +20 -0
- package/dist/components/map.js.map +1 -0
- package/dist/components/modal.d.ts +9 -0
- package/dist/components/modal.d.ts.map +1 -0
- package/dist/components/modal.js +9 -0
- package/dist/components/modal.js.map +1 -0
- package/dist/components/query-input-with-label.d.ts +15 -0
- package/dist/components/query-input-with-label.d.ts.map +1 -0
- package/dist/components/query-input-with-label.js +21 -0
- package/dist/components/query-input-with-label.js.map +1 -0
- package/dist/components/query-input.d.ts +15 -0
- package/dist/components/query-input.d.ts.map +1 -0
- package/dist/components/query-input.js +16 -0
- package/dist/components/query-input.js.map +1 -0
- package/dist/components/search/index.d.ts +7 -0
- package/dist/components/search/index.d.ts.map +1 -0
- package/dist/components/search/index.js +36 -0
- package/dist/components/search/index.js.map +1 -0
- package/dist/components/search/query-input.d.ts +3 -0
- package/dist/components/search/query-input.d.ts.map +1 -0
- package/dist/components/search/query-input.js +9 -0
- package/dist/components/search/query-input.js.map +1 -0
- package/dist/components/search/result-entry.d.ts +8 -0
- package/dist/components/search/result-entry.d.ts.map +1 -0
- package/dist/components/search/result-entry.js +37 -0
- package/dist/components/search/result-entry.js.map +1 -0
- package/dist/components/search/result.d.ts +7 -0
- package/dist/components/search/result.d.ts.map +1 -0
- package/dist/components/search/result.js +24 -0
- package/dist/components/search/result.js.map +1 -0
- package/dist/components/switcher/GroupedSwitcher.d.ts +4 -0
- package/dist/components/switcher/GroupedSwitcher.d.ts.map +1 -0
- package/dist/components/switcher/GroupedSwitcher.js +10 -0
- package/dist/components/switcher/GroupedSwitcher.js.map +1 -0
- package/dist/components/switcher/Switcher.d.ts +4 -0
- package/dist/components/switcher/Switcher.d.ts.map +1 -0
- package/dist/components/switcher/Switcher.js +23 -0
- package/dist/components/switcher/Switcher.js.map +1 -0
- package/dist/components/switcher/SwitcherButton.d.ts +3 -0
- package/dist/components/switcher/SwitcherButton.d.ts.map +1 -0
- package/dist/components/switcher/SwitcherButton.js +8 -0
- package/dist/components/switcher/SwitcherButton.js.map +1 -0
- package/dist/components/switcher/SwitcherEntry.d.ts +6 -0
- package/dist/components/switcher/SwitcherEntry.d.ts.map +1 -0
- package/dist/components/switcher/SwitcherEntry.js +55 -0
- package/dist/components/switcher/SwitcherEntry.js.map +1 -0
- package/dist/components/switcher/SwitcherHeader.d.ts +4 -0
- package/dist/components/switcher/SwitcherHeader.d.ts.map +1 -0
- package/dist/components/switcher/SwitcherHeader.js +16 -0
- package/dist/components/switcher/SwitcherHeader.js.map +1 -0
- package/dist/components/switcher/SwitcherStatusIcon.d.ts +3 -0
- package/dist/components/switcher/SwitcherStatusIcon.d.ts.map +1 -0
- package/dist/components/switcher/SwitcherStatusIcon.js +13 -0
- package/dist/components/switcher/SwitcherStatusIcon.js.map +1 -0
- package/dist/components/tag-switcher/TagSwitcher.d.ts +9 -0
- package/dist/components/tag-switcher/TagSwitcher.d.ts.map +1 -0
- package/dist/components/tag-switcher/TagSwitcher.js +31 -0
- package/dist/components/tag-switcher/TagSwitcher.js.map +1 -0
- package/dist/components/tag-switcher/createTagSwitcherEntry.d.ts +13 -0
- package/dist/components/tag-switcher/createTagSwitcherEntry.d.ts.map +1 -0
- package/dist/components/tag-switcher/createTagSwitcherEntry.js +22 -0
- package/dist/components/tag-switcher/createTagSwitcherEntry.js.map +1 -0
- package/dist/components/tag-switcher/createTagSwitcherHeader.d.ts +13 -0
- package/dist/components/tag-switcher/createTagSwitcherHeader.d.ts.map +1 -0
- package/dist/components/tag-switcher/createTagSwitcherHeader.js +18 -0
- package/dist/components/tag-switcher/createTagSwitcherHeader.js.map +1 -0
- package/dist/components/tag-switcher/index.d.ts +14 -0
- package/dist/components/tag-switcher/index.d.ts.map +1 -0
- package/dist/components/tag-switcher/index.js +11 -0
- package/dist/components/tag-switcher/index.js.map +1 -0
- package/dist/components/time-filter.d.ts +4 -0
- package/dist/components/time-filter.d.ts.map +1 -0
- package/dist/components/time-filter.js +112 -0
- package/dist/components/time-filter.js.map +1 -0
- package/dist/components/view-toggle-button/desktop-button.d.ts +3 -0
- package/dist/components/view-toggle-button/desktop-button.d.ts.map +1 -0
- package/dist/components/view-toggle-button/desktop-button.js +7 -0
- package/dist/components/view-toggle-button/desktop-button.js.map +1 -0
- package/dist/components/view-toggle-button/index.d.ts +16 -0
- package/dist/components/view-toggle-button/index.d.ts.map +1 -0
- package/dist/components/view-toggle-button/index.js +24 -0
- package/dist/components/view-toggle-button/index.js.map +1 -0
- package/dist/components/view-toggle-button/mobile-button.d.ts +3 -0
- package/dist/components/view-toggle-button/mobile-button.d.ts.map +1 -0
- package/dist/components/view-toggle-button/mobile-button.js +7 -0
- package/dist/components/view-toggle-button/mobile-button.js.map +1 -0
- package/dist/components/view-toggle-button/view-toggle-button.d.ts +11 -0
- package/dist/components/view-toggle-button/view-toggle-button.d.ts.map +1 -0
- package/dist/components/view-toggle-button/view-toggle-button.js +40 -0
- package/dist/components/view-toggle-button/view-toggle-button.js.map +1 -0
- package/dist/components/view-toggle-button/viewport-button.d.ts +3 -0
- package/dist/components/view-toggle-button/viewport-button.d.ts.map +1 -0
- package/dist/components/view-toggle-button/viewport-button.js +7 -0
- package/dist/components/view-toggle-button/viewport-button.js.map +1 -0
- package/dist/config/constants/app.d.ts +9 -0
- package/dist/config/constants/app.d.ts.map +1 -0
- package/dist/config/constants/app.js +8 -0
- package/dist/config/constants/app.js.map +1 -0
- package/dist/config/constants/controllers.d.ts +9 -0
- package/dist/config/constants/controllers.d.ts.map +1 -0
- package/dist/config/constants/controllers.js +9 -0
- package/dist/config/constants/controllers.js.map +1 -0
- package/dist/config/feature/selections.d.ts +16 -0
- package/dist/config/feature/selections.d.ts.map +1 -0
- package/dist/config/feature/selections.js +13 -0
- package/dist/config/feature/selections.js.map +1 -0
- package/dist/config/feature/sources.d.ts +37 -0
- package/dist/config/feature/sources.d.ts.map +1 -0
- package/dist/config/feature/sources.js +66 -0
- package/dist/config/feature/sources.js.map +1 -0
- package/dist/config/index.d.ts +64 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +80 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/map/featureInteractions.d.ts +6 -0
- package/dist/config/map/featureInteractions.d.ts.map +1 -0
- package/dist/config/map/featureInteractions.js +42 -0
- package/dist/config/map/featureInteractions.js.map +1 -0
- package/dist/config/map/interactions.d.ts +4 -0
- package/dist/config/map/interactions.d.ts.map +1 -0
- package/dist/config/map/interactions.js +13 -0
- package/dist/config/map/interactions.js.map +1 -0
- package/dist/config/map/layers.d.ts +48 -0
- package/dist/config/map/layers.d.ts.map +1 -0
- package/dist/config/map/layers.js +110 -0
- package/dist/config/map/layers.js.map +1 -0
- package/dist/controllers/defaults.d.ts +4 -0
- package/dist/controllers/defaults.d.ts.map +1 -0
- package/dist/controllers/defaults.js +25 -0
- package/dist/controllers/defaults.js.map +1 -0
- package/dist/embed/browser.d.ts +20 -0
- package/dist/embed/browser.d.ts.map +1 -0
- package/dist/embed/browser.js +41 -0
- package/dist/embed/browser.js.map +1 -0
- package/dist/embed/node.d.ts +23 -0
- package/dist/embed/node.d.ts.map +1 -0
- package/dist/embed/node.js +26 -0
- package/dist/embed/node.js.map +1 -0
- package/dist/filters/tag-filter.d.ts +11 -0
- package/dist/filters/tag-filter.d.ts.map +1 -0
- package/dist/filters/tag-filter.js +86 -0
- package/dist/filters/tag-filter.js.map +1 -0
- package/dist/filters/time-filter.d.ts +16 -0
- package/dist/filters/time-filter.d.ts.map +1 -0
- package/dist/filters/time-filter.js +26 -0
- package/dist/filters/time-filter.js.map +1 -0
- package/dist/helpers/components.d.ts +26 -0
- package/dist/helpers/components.d.ts.map +1 -0
- package/dist/helpers/components.js +25 -0
- package/dist/helpers/components.js.map +1 -0
- package/dist/helpers/create-action-watcher.d.ts +10 -0
- package/dist/helpers/create-action-watcher.d.ts.map +1 -0
- package/dist/helpers/create-action-watcher.js +19 -0
- package/dist/helpers/create-action-watcher.js.map +1 -0
- package/dist/helpers/events.d.ts +10 -0
- package/dist/helpers/events.d.ts.map +1 -0
- package/dist/helpers/events.js +7 -0
- package/dist/helpers/events.js.map +1 -0
- package/dist/helpers/get-feature-property.d.ts +6 -0
- package/dist/helpers/get-feature-property.d.ts.map +1 -0
- package/dist/helpers/get-feature-property.js +8 -0
- package/dist/helpers/get-feature-property.js.map +1 -0
- package/dist/helpers/i18n/de.d.ts +3 -0
- package/dist/helpers/i18n/de.d.ts.map +1 -0
- package/dist/helpers/i18n/de.js +98 -0
- package/dist/helpers/i18n/de.js.map +1 -0
- package/dist/helpers/i18n/en.d.ts +3 -0
- package/dist/helpers/i18n/en.d.ts.map +1 -0
- package/dist/helpers/i18n/en.js +94 -0
- package/dist/helpers/i18n/en.js.map +1 -0
- package/dist/helpers/i18n/index.d.ts +10 -0
- package/dist/helpers/i18n/index.d.ts.map +1 -0
- package/dist/helpers/i18n/index.js +30 -0
- package/dist/helpers/i18n/index.js.map +1 -0
- package/dist/helpers/makeReplaceableComponent.d.ts +2 -0
- package/dist/helpers/makeReplaceableComponent.d.ts.map +1 -0
- package/dist/helpers/makeReplaceableComponent.js +2 -0
- package/dist/helpers/makeReplaceableComponent.js.map +1 -0
- package/dist/helpers/mod-classes.d.ts +7 -0
- package/dist/helpers/mod-classes.d.ts.map +1 -0
- package/dist/helpers/mod-classes.js +32 -0
- package/dist/helpers/mod-classes.js.map +1 -0
- package/dist/helpers/react.d.ts +3 -0
- package/dist/helpers/react.d.ts.map +1 -0
- package/dist/helpers/react.js +11 -0
- package/dist/helpers/react.js.map +1 -0
- package/dist/helpers/scroll-to-element-top.d.ts +2 -0
- package/dist/helpers/scroll-to-element-top.d.ts.map +1 -0
- package/dist/helpers/scroll-to-element-top.js +13 -0
- package/dist/helpers/scroll-to-element-top.js.map +1 -0
- package/dist/helpers/sort-features-by-distance.d.ts +15 -0
- package/dist/helpers/sort-features-by-distance.d.ts.map +1 -0
- package/dist/helpers/sort-features-by-distance.js +61 -0
- package/dist/helpers/sort-features-by-distance.js.map +1 -0
- package/dist/helpers/sticky.d.ts +2 -0
- package/dist/helpers/sticky.d.ts.map +1 -0
- package/dist/helpers/sticky.js +114 -0
- package/dist/helpers/sticky.js.map +1 -0
- package/dist/hooks/useCallbackRef.d.ts +2 -0
- package/dist/hooks/useCallbackRef.d.ts.map +1 -0
- package/dist/hooks/useCallbackRef.js +10 -0
- package/dist/hooks/useCallbackRef.js.map +1 -0
- package/dist/hooks/useControllableState.d.ts +7 -0
- package/dist/hooks/useControllableState.d.ts.map +1 -0
- package/dist/hooks/useControllableState.js +32 -0
- package/dist/hooks/useControllableState.js.map +1 -0
- package/dist/hooks/useDebounce.d.ts +7 -0
- package/dist/hooks/useDebounce.d.ts.map +1 -0
- package/dist/hooks/useDebounce.js +27 -0
- package/dist/hooks/useDebounce.js.map +1 -0
- package/dist/hooks/useHandleEscapeKeyDown.d.ts +3 -0
- package/dist/hooks/useHandleEscapeKeyDown.d.ts.map +1 -0
- package/dist/hooks/useHandleEscapeKeyDown.js +20 -0
- package/dist/hooks/useHandleEscapeKeyDown.js.map +1 -0
- package/dist/hooks/useMapsightPanel.d.ts +5 -0
- package/dist/hooks/useMapsightPanel.d.ts.map +1 -0
- package/dist/hooks/useMapsightPanel.js +22 -0
- package/dist/hooks/useMapsightPanel.js.map +1 -0
- package/dist/hooks/useMountable.d.ts +15 -0
- package/dist/hooks/useMountable.d.ts.map +1 -0
- package/dist/hooks/useMountable.js +26 -0
- package/dist/hooks/useMountable.js.map +1 -0
- package/dist/hooks/usePrevious.d.ts +2 -0
- package/dist/hooks/usePrevious.d.ts.map +1 -0
- package/dist/hooks/usePrevious.js +13 -0
- package/dist/hooks/usePrevious.js.map +1 -0
- package/dist/hooks/useStickyHeader.d.ts +15 -0
- package/dist/hooks/useStickyHeader.d.ts.map +1 -0
- package/dist/hooks/useStickyHeader.js +31 -0
- package/dist/hooks/useStickyHeader.js.map +1 -0
- package/dist/hooks/useUpdateMapSizeCallback.d.ts +5 -0
- package/dist/hooks/useUpdateMapSizeCallback.d.ts.map +1 -0
- package/dist/hooks/useUpdateMapSizeCallback.js +17 -0
- package/dist/hooks/useUpdateMapSizeCallback.js.map +1 -0
- package/dist/hooks/useUpdateMapSizeOnRender.d.ts +3 -0
- package/dist/hooks/useUpdateMapSizeOnRender.d.ts.map +1 -0
- package/dist/hooks/useUpdateMapSizeOnRender.js +12 -0
- package/dist/hooks/useUpdateMapSizeOnRender.js.map +1 -0
- package/dist/hooks/useUpdateMapSizeOnTransitionEnd.d.ts +5 -0
- package/dist/hooks/useUpdateMapSizeOnTransitionEnd.d.ts.map +1 -0
- package/dist/hooks/useUpdateMapSizeOnTransitionEnd.js +25 -0
- package/dist/hooks/useUpdateMapSizeOnTransitionEnd.js.map +1 -0
- package/dist/hooks/useUpdateMapSizeOnViewChange.d.ts +4 -0
- package/dist/hooks/useUpdateMapSizeOnViewChange.d.ts.map +1 -0
- package/dist/hooks/useUpdateMapSizeOnViewChange.js +26 -0
- package/dist/hooks/useUpdateMapSizeOnViewChange.js.map +1 -0
- package/dist/img/mapsight-ui/check-empty.svg +1 -0
- package/dist/img/mapsight-ui/check.svg +1 -0
- package/dist/img/mapsight-ui/close-list.svg +1 -0
- package/dist/img/mapsight-ui/close.svg +1 -0
- package/dist/img/mapsight-ui/error.svg +1 -0
- package/dist/img/mapsight-ui/fullscreen-close.svg +1 -0
- package/dist/img/mapsight-ui/fullscreen.svg +1 -0
- package/dist/img/mapsight-ui/geo-active.svg +1 -0
- package/dist/img/mapsight-ui/geo-error.svg +1 -0
- package/dist/img/mapsight-ui/geo-inactive.svg +1 -0
- package/dist/img/mapsight-ui/info.svg +1 -0
- package/dist/img/mapsight-ui/layers.svg +1 -0
- package/dist/img/mapsight-ui/loading.svg +1 -0
- package/dist/img/mapsight-ui/map.svg +1 -0
- package/dist/img/mapsight-ui/measure-distance.svg +1 -0
- package/dist/img/mapsight-ui/open-list.svg +1 -0
- package/dist/img/mapsight-ui/place-marker.svg +1 -0
- package/dist/img/mapsight-ui/print.svg +1 -0
- package/dist/img/mapsight-ui/reset-active.svg +1 -0
- package/dist/img/mapsight-ui/reset.svg +1 -0
- package/dist/img/mapsight-ui/search.svg +1 -0
- package/dist/img/mapsight-ui/sharing.svg +1 -0
- package/dist/img/mapsight-ui/sort-active.svg +1 -0
- package/dist/img/mapsight-ui/sort.svg +1 -0
- package/dist/img/mapsight-ui/watermark.svg +1 -0
- package/dist/img/mapsight-ui/zoom-in.svg +1 -0
- package/dist/img/mapsight-ui/zoom-out.svg +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +243 -0
- package/dist/index.js.map +1 -0
- package/dist/plugins/browser/app-title.d.ts +12 -0
- package/dist/plugins/browser/app-title.d.ts.map +1 -0
- package/dist/plugins/browser/app-title.js +25 -0
- package/dist/plugins/browser/app-title.js.map +1 -0
- package/dist/plugins/browser/debug.d.ts +8 -0
- package/dist/plugins/browser/debug.d.ts.map +1 -0
- package/dist/plugins/browser/debug.js +28 -0
- package/dist/plugins/browser/debug.js.map +1 -0
- package/dist/plugins/browser/feature-deep-link.d.ts +29 -0
- package/dist/plugins/browser/feature-deep-link.d.ts.map +1 -0
- package/dist/plugins/browser/feature-deep-link.js +124 -0
- package/dist/plugins/browser/feature-deep-link.js.map +1 -0
- package/dist/plugins/browser/local-storage.d.ts +15 -0
- package/dist/plugins/browser/local-storage.d.ts.map +1 -0
- package/dist/plugins/browser/local-storage.js +57 -0
- package/dist/plugins/browser/local-storage.js.map +1 -0
- package/dist/plugins/browser/native-fullscreen.d.ts +17 -0
- package/dist/plugins/browser/native-fullscreen.d.ts.map +1 -0
- package/dist/plugins/browser/native-fullscreen.js +62 -0
- package/dist/plugins/browser/native-fullscreen.js.map +1 -0
- package/dist/plugins/browser/no-scroll.d.ts +30 -0
- package/dist/plugins/browser/no-scroll.d.ts.map +1 -0
- package/dist/plugins/browser/no-scroll.js +57 -0
- package/dist/plugins/browser/no-scroll.js.map +1 -0
- package/dist/plugins/browser/partial-content-changed-event.d.ts +11 -0
- package/dist/plugins/browser/partial-content-changed-event.d.ts.map +1 -0
- package/dist/plugins/browser/partial-content-changed-event.js +22 -0
- package/dist/plugins/browser/partial-content-changed-event.js.map +1 -0
- package/dist/plugins/browser/piwik-track-feature-selection-event.d.ts +20 -0
- package/dist/plugins/browser/piwik-track-feature-selection-event.d.ts.map +1 -0
- package/dist/plugins/browser/piwik-track-feature-selection-event.js +41 -0
- package/dist/plugins/browser/piwik-track-feature-selection-event.js.map +1 -0
- package/dist/plugins/browser/piwik-track-fullscreen-toggle-event.d.ts +18 -0
- package/dist/plugins/browser/piwik-track-fullscreen-toggle-event.d.ts.map +1 -0
- package/dist/plugins/browser/piwik-track-fullscreen-toggle-event.js +30 -0
- package/dist/plugins/browser/piwik-track-fullscreen-toggle-event.js.map +1 -0
- package/dist/plugins/browser/search.d.ts +14 -0
- package/dist/plugins/browser/search.d.ts.map +1 -0
- package/dist/plugins/browser/search.js +25 -0
- package/dist/plugins/browser/search.js.map +1 -0
- package/dist/plugins/browser/share-position-link.d.ts +121 -0
- package/dist/plugins/browser/share-position-link.d.ts.map +1 -0
- package/dist/plugins/browser/share-position-link.js +212 -0
- package/dist/plugins/browser/share-position-link.js.map +1 -0
- package/dist/plugins/browser/toggle-mobile-views.d.ts +14 -0
- package/dist/plugins/browser/toggle-mobile-views.d.ts.map +1 -0
- package/dist/plugins/browser/toggle-mobile-views.js +42 -0
- package/dist/plugins/browser/toggle-mobile-views.js.map +1 -0
- package/dist/plugins/browser/user-geolocation.d.ts +18 -0
- package/dist/plugins/browser/user-geolocation.d.ts.map +1 -0
- package/dist/plugins/browser/user-geolocation.js +71 -0
- package/dist/plugins/browser/user-geolocation.js.map +1 -0
- package/dist/plugins/browser/views.d.ts +17 -0
- package/dist/plugins/browser/views.d.ts.map +1 -0
- package/dist/plugins/browser/views.js +86 -0
- package/dist/plugins/browser/views.js.map +1 -0
- package/dist/plugins/browser-defaults.d.ts +35 -0
- package/dist/plugins/browser-defaults.d.ts.map +1 -0
- package/dist/plugins/browser-defaults.js +70 -0
- package/dist/plugins/browser-defaults.js.map +1 -0
- package/dist/plugins/common/feature-selection-details-url.d.ts +18 -0
- package/dist/plugins/common/feature-selection-details-url.d.ts.map +1 -0
- package/dist/plugins/common/feature-selection-details-url.js +79 -0
- package/dist/plugins/common/feature-selection-details-url.js.map +1 -0
- package/dist/plugins/common/lang.d.ts +9 -0
- package/dist/plugins/common/lang.d.ts.map +1 -0
- package/dist/plugins/common/lang.js +17 -0
- package/dist/plugins/common/lang.js.map +1 -0
- package/dist/plugins/common/measure-distance.d.ts +30 -0
- package/dist/plugins/common/measure-distance.d.ts.map +1 -0
- package/dist/plugins/common/measure-distance.js +143 -0
- package/dist/plugins/common/measure-distance.js.map +1 -0
- package/dist/plugins/common/ol-proxy.d.ts +13 -0
- package/dist/plugins/common/ol-proxy.d.ts.map +1 -0
- package/dist/plugins/common/ol-proxy.js +59 -0
- package/dist/plugins/common/ol-proxy.js.map +1 -0
- package/dist/plugins/common/render-await-feature-details-loaded.d.ts +16 -0
- package/dist/plugins/common/render-await-feature-details-loaded.d.ts.map +1 -0
- package/dist/plugins/common/render-await-feature-details-loaded.js +79 -0
- package/dist/plugins/common/render-await-feature-details-loaded.js.map +1 -0
- package/dist/plugins/common/render-await-list-feature-sources-loaded.d.ts +15 -0
- package/dist/plugins/common/render-await-list-feature-sources-loaded.d.ts.map +1 -0
- package/dist/plugins/common/render-await-list-feature-sources-loaded.js +58 -0
- package/dist/plugins/common/render-await-list-feature-sources-loaded.js.map +1 -0
- package/dist/plugins/server/feature-deep-link.d.ts +21 -0
- package/dist/plugins/server/feature-deep-link.d.ts.map +1 -0
- package/dist/plugins/server/feature-deep-link.js +37 -0
- package/dist/plugins/server/feature-deep-link.js.map +1 -0
- package/dist/plugins/server-defaults.d.ts +16 -0
- package/dist/plugins/server-defaults.d.ts.map +1 -0
- package/dist/plugins/server-defaults.js +25 -0
- package/dist/plugins/server-defaults.js.map +1 -0
- package/dist/renderer/browser-dom.d.ts +7 -0
- package/dist/renderer/browser-dom.d.ts.map +1 -0
- package/dist/renderer/browser-dom.js +12 -0
- package/dist/renderer/browser-dom.js.map +1 -0
- package/dist/renderer/server-string.d.ts +4 -0
- package/dist/renderer/server-string.d.ts.map +1 -0
- package/dist/renderer/server-string.js +10 -0
- package/dist/renderer/server-string.js.map +1 -0
- package/dist/server-handler.d.ts +2 -0
- package/dist/server-handler.d.ts.map +1 -0
- package/dist/server-handler.js +32 -0
- package/dist/server-handler.js.map +1 -0
- package/dist/store/actions.d.ts +261 -0
- package/dist/store/actions.d.ts.map +1 -0
- package/dist/store/actions.js +478 -0
- package/dist/store/actions.js.map +1 -0
- package/dist/store/reducers.d.ts +228 -0
- package/dist/store/reducers.d.ts.map +1 -0
- package/dist/store/reducers.js +386 -0
- package/dist/store/reducers.js.map +1 -0
- package/dist/store/selectors.d.ts +443 -0
- package/dist/store/selectors.d.ts.map +1 -0
- package/dist/store/selectors.js +195 -0
- package/dist/store/selectors.js.map +1 -0
- package/dist/types.d.ts +286 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +78 -0
- package/src/img/mapsight-ui/check-empty.svg +1 -0
- package/src/img/mapsight-ui/check.svg +2 -0
- package/src/img/mapsight-ui/close-list.svg +1 -0
- package/src/img/mapsight-ui/close.svg +1 -0
- package/src/img/mapsight-ui/error.svg +1 -0
- package/src/img/mapsight-ui/fullscreen-close.svg +1 -0
- package/src/img/mapsight-ui/fullscreen.svg +1 -0
- package/src/img/mapsight-ui/geo-active.svg +1 -0
- package/src/img/mapsight-ui/geo-error.svg +1 -0
- package/src/img/mapsight-ui/geo-inactive.svg +1 -0
- package/src/img/mapsight-ui/info.svg +1 -0
- package/src/img/mapsight-ui/layers.svg +1 -0
- package/src/img/mapsight-ui/loading.svg +1 -0
- package/src/img/mapsight-ui/map.svg +1 -0
- package/src/img/mapsight-ui/measure-distance.svg +7 -0
- package/src/img/mapsight-ui/open-list.svg +1 -0
- package/src/img/mapsight-ui/place-marker.svg +4 -0
- package/src/img/mapsight-ui/print.svg +4 -0
- package/src/img/mapsight-ui/reset-active.svg +1 -0
- package/src/img/mapsight-ui/reset.svg +1 -0
- package/src/img/mapsight-ui/search.svg +1 -0
- package/src/img/mapsight-ui/sharing.svg +7 -0
- package/src/img/mapsight-ui/sort-active.svg +1 -0
- package/src/img/mapsight-ui/sort.svg +1 -0
- package/src/img/mapsight-ui/watermark.svg +1 -0
- package/src/img/mapsight-ui/zoom-in.svg +3 -0
- package/src/img/mapsight-ui/zoom-out.svg +3 -0
- package/src/js/components/app.jsx +237 -0
- package/src/js/components/close-overlay-button.tsx +27 -0
- package/src/js/components/feature-details-content/feature-details-content-inner.tsx +116 -0
- package/src/js/components/feature-details-content/feature-details-content.jsx +185 -0
- package/src/js/components/feature-details-content/index.js +20 -0
- package/src/js/components/feature-details-content/share-feature-link-modal.jsx +56 -0
- package/src/js/components/feature-list/content.jsx +42 -0
- package/src/js/components/feature-list/context.tsx +47 -0
- package/src/js/components/feature-list/empty-message.jsx +15 -0
- package/src/js/components/feature-list/filter.jsx +35 -0
- package/src/js/components/feature-list/footer.jsx +5 -0
- package/src/js/components/feature-list/grouped-content.jsx +74 -0
- package/src/js/components/feature-list/header.jsx +7 -0
- package/src/js/components/feature-list/hooks/useAutoloadFeatureSource.ts +25 -0
- package/src/js/components/feature-list/hooks/useFeatureListFeatureSource.ts +22 -0
- package/src/js/components/feature-list/hooks/useFeatureListItemGroups.ts +127 -0
- package/src/js/components/feature-list/hooks/useFeatureListState.ts +90 -0
- package/src/js/components/feature-list/hooks/useKeyboardNavigation.js +112 -0
- package/src/js/components/feature-list/hooks/useMakeHeaderSticky.js +40 -0
- package/src/js/components/feature-list/hooks/usePaginatedFilteredFeatures.ts +129 -0
- package/src/js/components/feature-list/hooks/useRestoreDocumentScroll.js +12 -0
- package/src/js/components/feature-list/hooks/useSelectFeature.js +88 -0
- package/src/js/components/feature-list/index.jsx +278 -0
- package/src/js/components/feature-list/pagination.tsx +57 -0
- package/src/js/components/feature-list/query-input.jsx +14 -0
- package/src/js/components/feature-list-cycling/button.jsx +13 -0
- package/src/js/components/feature-list-cycling/dot.jsx +43 -0
- package/src/js/components/feature-list-cycling/feature-list-cycling.jsx +153 -0
- package/src/js/components/feature-list-cycling/index.js +82 -0
- package/src/js/components/feature-list-item/head.jsx +131 -0
- package/src/js/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.js +51 -0
- package/src/js/components/feature-list-item/hooks/useFeatureListItemState.ts +75 -0
- package/src/js/components/feature-list-item/icon.jsx +35 -0
- package/src/js/components/feature-list-item/index.jsx +168 -0
- package/src/js/components/feature-list-sorting/feature-list-sorting.tsx +144 -0
- package/src/js/components/feature-list-sorting/index.js +25 -0
- package/src/js/components/feature-list-sorting/status-indicator.jsx +10 -0
- package/src/js/components/feature-select-button.jsx +70 -0
- package/src/js/components/feature-selection-info/close-button.jsx +64 -0
- package/src/js/components/feature-selection-info/container.jsx +9 -0
- package/src/js/components/feature-selection-info/header.tsx +27 -0
- package/src/js/components/feature-selection-info/index.tsx +81 -0
- package/src/js/components/feature-selection-info/with-sticky-header.jsx +61 -0
- package/src/js/components/feature-selection-info/without-sticky-header.jsx +19 -0
- package/src/js/components/feature-selection-info/wrapper.jsx +43 -0
- package/src/js/components/helping/app-channel.tsx +99 -0
- package/src/js/components/helping/app-context.tsx +32 -0
- package/src/js/components/helping/visibility-wrapper.jsx +23 -0
- package/src/js/components/instance.tsx +48 -0
- package/src/js/components/layer-switcher/GroupedLayerSwitcher.js +47 -0
- package/src/js/components/layer-switcher/LayerSwitcher.js +27 -0
- package/src/js/components/layer-switcher/LayerSwitcherEntry.js +132 -0
- package/src/js/components/layer-switcher/LayerSwticherContainer.jsx +80 -0
- package/src/js/components/layer-switcher/index.js +47 -0
- package/src/js/components/layout/additional-container/content.jsx +10 -0
- package/src/js/components/layout/additional-container/index.jsx +5 -0
- package/src/js/components/layout/additional-container/marginal.jsx +10 -0
- package/src/js/components/layout/main-container.jsx +5 -0
- package/src/js/components/layout/map-row.jsx +5 -0
- package/src/js/components/layout/title-bar.tsx +25 -0
- package/src/js/components/layout/wrapper.jsx +28 -0
- package/src/js/components/link-share.jsx +78 -0
- package/src/js/components/main-panel/container.tsx +23 -0
- package/src/js/components/main-panel/context.jsx +62 -0
- package/src/js/components/main-panel/index.tsx +46 -0
- package/src/js/components/main-panel/list-toggle-button.jsx +43 -0
- package/src/js/components/map-overlay/area.jsx +17 -0
- package/src/js/components/map-overlay/attribution-entries.tsx +33 -0
- package/src/js/components/map-overlay/attribution.tsx +25 -0
- package/src/js/components/map-overlay/combined-buttons.jsx +5 -0
- package/src/js/components/map-overlay/index.jsx +5 -0
- package/src/js/components/map-overlay/info-overlay-left.jsx +51 -0
- package/src/js/components/map-overlay/info-overlay-modal.tsx +49 -0
- package/src/js/components/map-overlay/info-overlay-right.jsx +46 -0
- package/src/js/components/map-overlay/layer-switcher-overlay.tsx +100 -0
- package/src/js/components/map-overlay/legend.tsx +22 -0
- package/src/js/components/map-overlay/logo.jsx +11 -0
- package/src/js/components/map-overlay/measure-distance-button.tsx +116 -0
- package/src/js/components/map-overlay/measure-distance-overlay.jsx +56 -0
- package/src/js/components/map-overlay/mini-legend.jsx +103 -0
- package/src/js/components/map-overlay/region-selector.jsx +63 -0
- package/src/js/components/map-overlay/search-overlay.jsx +79 -0
- package/src/js/components/map-overlay/share-position-link-button.tsx +144 -0
- package/src/js/components/map-overlay/tool-overlay.tsx +28 -0
- package/src/js/components/map-overlay/user-geo-location-button.jsx +89 -0
- package/src/js/components/map-overlay/zoom-button.jsx +98 -0
- package/src/js/components/map-overlay/zoom-buttons.jsx +26 -0
- package/src/js/components/map-synced-interlay/index.js +17 -0
- package/src/js/components/map-synced-interlay/map-synced-interlay.jsx +22 -0
- package/src/js/components/map-synced-interlay/tooltip-content.tsx +22 -0
- package/src/js/components/map-synced-interlay/tooltip.tsx +199 -0
- package/src/js/components/map-wrapper.tsx +65 -0
- package/src/js/components/map.jsx +37 -0
- package/src/js/components/modal.tsx +40 -0
- package/src/js/components/query-input-with-label.tsx +71 -0
- package/src/js/components/query-input.tsx +81 -0
- package/src/js/components/search/index.jsx +83 -0
- package/src/js/components/search/query-input.jsx +20 -0
- package/src/js/components/search/result-entry.jsx +63 -0
- package/src/js/components/search/result.jsx +71 -0
- package/src/js/components/switcher/GroupedSwitcher.jsx +42 -0
- package/src/js/components/switcher/Switcher.jsx +54 -0
- package/src/js/components/switcher/SwitcherButton.jsx +23 -0
- package/src/js/components/switcher/SwitcherEntry.jsx +143 -0
- package/src/js/components/switcher/SwitcherHeader.jsx +58 -0
- package/src/js/components/switcher/SwitcherStatusIcon.jsx +36 -0
- package/src/js/components/tag-switcher/TagSwitcher.jsx +57 -0
- package/src/js/components/tag-switcher/createTagSwitcherEntry.js +41 -0
- package/src/js/components/tag-switcher/createTagSwitcherHeader.js +34 -0
- package/src/js/components/tag-switcher/index.js +20 -0
- package/src/js/components/time-filter.jsx +187 -0
- package/src/js/components/view-toggle-button/desktop-button.jsx +13 -0
- package/src/js/components/view-toggle-button/index.js +39 -0
- package/src/js/components/view-toggle-button/mobile-button.jsx +13 -0
- package/src/js/components/view-toggle-button/view-toggle-button.jsx +74 -0
- package/src/js/components/view-toggle-button/viewport-button.jsx +13 -0
- package/src/js/config/constants/app.ts +16 -0
- package/src/js/config/constants/controllers.ts +11 -0
- package/src/js/config/feature/selections.ts +13 -0
- package/src/js/config/feature/sources.ts +77 -0
- package/src/js/config/index.ts +133 -0
- package/src/js/config/map/featureInteractions.ts +53 -0
- package/src/js/config/map/interactions.ts +15 -0
- package/src/js/config/map/layers.ts +190 -0
- package/src/js/controllers/defaults.ts +36 -0
- package/src/js/embed/browser.ts +89 -0
- package/src/js/embed/node.ts +57 -0
- package/src/js/filters/tag-filter.ts +135 -0
- package/src/js/filters/time-filter.ts +53 -0
- package/src/js/global.d.ts +7 -0
- package/src/js/helpers/components.ts +66 -0
- package/src/js/helpers/create-action-watcher.ts +35 -0
- package/src/js/helpers/events.ts +11 -0
- package/src/js/helpers/get-feature-property.ts +14 -0
- package/src/js/helpers/i18n/de.ts +145 -0
- package/src/js/helpers/i18n/en.ts +140 -0
- package/src/js/helpers/i18n/index.ts +41 -0
- package/src/js/helpers/makeReplaceableComponent.ts +0 -0
- package/src/js/helpers/mod-classes.ts +47 -0
- package/src/js/helpers/react.ts +14 -0
- package/src/js/helpers/scroll-to-element-top.ts +16 -0
- package/src/js/helpers/sort-features-by-distance.ts +102 -0
- package/src/js/helpers/sticky.js +143 -0
- package/src/js/hooks/useCallbackRef.ts +14 -0
- package/src/js/hooks/useControllableState.ts +50 -0
- package/src/js/hooks/useDebounce.ts +32 -0
- package/src/js/hooks/useHandleEscapeKeyDown.ts +27 -0
- package/src/js/hooks/useMapsightPanel.ts +40 -0
- package/src/js/hooks/useMountable.ts +38 -0
- package/src/js/hooks/usePrevious.ts +15 -0
- package/src/js/hooks/useStickyHeader.ts +51 -0
- package/src/js/hooks/useUpdateMapSizeCallback.ts +32 -0
- package/src/js/hooks/useUpdateMapSizeOnRender.ts +16 -0
- package/src/js/hooks/useUpdateMapSizeOnTransitionEnd.ts +40 -0
- package/src/js/hooks/useUpdateMapSizeOnViewChange.ts +36 -0
- package/src/js/index.ts +319 -0
- package/src/js/plugins/browser/app-title.ts +36 -0
- package/src/js/plugins/browser/debug.ts +37 -0
- package/src/js/plugins/browser/feature-deep-link.ts +222 -0
- package/src/js/plugins/browser/local-storage.ts +79 -0
- package/src/js/plugins/browser/native-fullscreen.ts +81 -0
- package/src/js/plugins/browser/no-scroll.ts +90 -0
- package/src/js/plugins/browser/partial-content-changed-event.ts +23 -0
- package/src/js/plugins/browser/piwik-track-feature-selection-event.ts +75 -0
- package/src/js/plugins/browser/piwik-track-fullscreen-toggle-event.ts +46 -0
- package/src/js/plugins/browser/search.ts +42 -0
- package/src/js/plugins/browser/share-position-link.ts +463 -0
- package/src/js/plugins/browser/toggle-mobile-views.ts +60 -0
- package/src/js/plugins/browser/user-geolocation.ts +134 -0
- package/src/js/plugins/browser/views.ts +141 -0
- package/src/js/plugins/browser-defaults.ts +101 -0
- package/src/js/plugins/common/feature-selection-details-url.ts +135 -0
- package/src/js/plugins/common/lang.ts +17 -0
- package/src/js/plugins/common/measure-distance.ts +223 -0
- package/src/js/plugins/common/ol-proxy.ts +68 -0
- package/src/js/plugins/common/render-await-feature-details-loaded.ts +153 -0
- package/src/js/plugins/common/render-await-list-feature-sources-loaded.ts +108 -0
- package/src/js/plugins/server/feature-deep-link.ts +67 -0
- package/src/js/plugins/server-defaults.ts +36 -0
- package/src/js/renderer/browser-dom.tsx +23 -0
- package/src/js/renderer/server-string.tsx +17 -0
- package/src/js/server-handler.js +39 -0
- package/src/js/store/actions.ts +648 -0
- package/src/js/store/reducers.ts +491 -0
- package/src/js/store/selectors.ts +449 -0
- package/src/js/types.ts +381 -0
- package/src/scss/_reset.scss +205 -0
- package/src/scss/_variables.scss +94 -0
- package/src/scss/blocks/_additional-container.scss +25 -0
- package/src/scss/blocks/_app-overlay.scss +19 -0
- package/src/scss/blocks/_attribution.scss +41 -0
- package/src/scss/blocks/_dialog-close-button.scss +32 -0
- package/src/scss/blocks/_feature-link.scss +44 -0
- package/src/scss/blocks/_feature-selection-info.scss +107 -0
- package/src/scss/blocks/_features-sorting.scss +23 -0
- package/src/scss/blocks/_filter-button.scss +78 -0
- package/src/scss/blocks/_filter.scss +16 -0
- package/src/scss/blocks/_flex.scss +20 -0
- package/src/scss/blocks/_hint.scss +58 -0
- package/src/scss/blocks/_info-overlay.scss +26 -0
- package/src/scss/blocks/_input-container.scss +31 -0
- package/src/scss/blocks/_layer-switcher-overlay.scss +24 -0
- package/src/scss/blocks/_layer-switcher.scss +138 -0
- package/src/scss/blocks/_link-share.scss +25 -0
- package/src/scss/blocks/_list-cycling-box.scss +143 -0
- package/src/scss/blocks/_list-header.scss +20 -0
- package/src/scss/blocks/_list-pagination.scss +41 -0
- package/src/scss/blocks/_list-toggle-button.scss +57 -0
- package/src/scss/blocks/_list-wrapper.scss +25 -0
- package/src/scss/blocks/_list.scss +100 -0
- package/src/scss/blocks/_logo.scss +27 -0
- package/src/scss/blocks/_main-container.scss +9 -0
- package/src/scss/blocks/_map-overlay-combined-buttons.scss +45 -0
- package/src/scss/blocks/_map-overlay.scss +224 -0
- package/src/scss/blocks/_map-row.scss +13 -0
- package/src/scss/blocks/_map-synced-interlay.scss +18 -0
- package/src/scss/blocks/_map-target.scss +7 -0
- package/src/scss/blocks/_map-usage.scss +6 -0
- package/src/scss/blocks/_map-wrapper.scss +27 -0
- package/src/scss/blocks/_marginal.scss +32 -0
- package/src/scss/blocks/_mini-legend.scss +51 -0
- package/src/scss/blocks/_modal.scss +67 -0
- package/src/scss/blocks/_page-title.scss +19 -0
- package/src/scss/blocks/_panel-container.scss +36 -0
- package/src/scss/blocks/_panel.scss +30 -0
- package/src/scss/blocks/_query-input-with-label.scss +55 -0
- package/src/scss/blocks/_region-selector.scss +44 -0
- package/src/scss/blocks/_search-overlay.scss +21 -0
- package/src/scss/blocks/_search-result.scss +127 -0
- package/src/scss/blocks/_search.scss +84 -0
- package/src/scss/blocks/_share-link.scss +15 -0
- package/src/scss/blocks/_sticky-header.scss +50 -0
- package/src/scss/blocks/_switcher-header.scss +17 -0
- package/src/scss/blocks/_tool-overlay.scss +38 -0
- package/src/scss/blocks/_tooltip.scss +51 -0
- package/src/scss/blocks/_viewport-button.scss +101 -0
- package/src/scss/blocks/_watermark.scss +21 -0
- package/src/scss/blocks/_wrapper.scss +22 -0
- package/src/scss/default.scss +63 -0
- package/src/scss/global/_no-scroll.scss +6 -0
- package/src/scss/helpers/visually-hidden.scss +8 -0
- package/src/scss/mixins/_visually-hidden.scss +31 -0
- package/src/scss/ol/_viewport.scss +18 -0
- package/src/scss/themes/2022-03.scss +48 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
text: ReactNode;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare const ToolOverlay: ({ text, children, label, onClose, }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ToolOverlay;
|
|
9
|
+
//# sourceMappingURL=tool-overlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-overlay.d.ts","sourceRoot":"","sources":["../../../src/js/components/map-overlay/tool-overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAIxD,KAAK,KAAK,GAAG;IACZ,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,qCAKlB,iBAAiB,CAAC,KAAK,CAAC,4CAU1B,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import CloseOverlayButton from "../close-overlay-button";
|
|
3
|
+
const ToolOverlay = ({ text, children, label, onClose, }) => {
|
|
4
|
+
// TODO: Aria role, focus trap, close on escape etc.?
|
|
5
|
+
return (_jsxs("div", { className: "ms3-tool-overlay", children: [_jsx(CloseOverlayButton, { onClose: onClose }), _jsx("h3", { className: "ms3-tool-overlay__header", children: label }), text && _jsx("p", { className: "ms3-tool-overlay__text", children: text }), children] }));
|
|
6
|
+
};
|
|
7
|
+
export default ToolOverlay;
|
|
8
|
+
//# sourceMappingURL=tool-overlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-overlay.js","sourceRoot":"","sources":["../../../src/js/components/map-overlay/tool-overlay.tsx"],"names":[],"mappings":";AAEA,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AAQzD,MAAM,WAAW,GAAG,CAAC,EACpB,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,OAAO,GACmB,EAAE,EAAE;IAC9B,qDAAqD;IACrD,OAAO,CACN,eAAK,SAAS,EAAC,kBAAkB,aAChC,KAAC,kBAAkB,IAAC,OAAO,EAAE,OAAO,GAAI,EACxC,aAAI,SAAS,EAAC,0BAA0B,YAAE,KAAK,GAAM,EACpD,IAAI,IAAI,YAAG,SAAS,EAAC,wBAAwB,YAAE,IAAI,GAAK,EACxD,QAAQ,IACJ,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-geo-location-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/map-overlay/user-geo-location-button.jsx"],"names":[],"mappings":";AAeA,iGAEY;IACN,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,KACS,OAAO,OAAO,EAAE,YAAY,EAmExC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { hasGeolocationSupport } from "@mapsight/core/lib/helpers";
|
|
3
|
+
import { animate } from "@mapsight/core/lib/map/actions";
|
|
4
|
+
import { getGeolocation } from "@mapsight/core/lib/user-geolocation/actions";
|
|
5
|
+
import { createUserGeolocationSelector } from "@mapsight/core/lib/user-geolocation/selectors";
|
|
6
|
+
import proj4 from "proj4";
|
|
7
|
+
import { memo, useCallback, useEffect, useState } from "react";
|
|
8
|
+
import { useDispatch, useSelector } from "react-redux";
|
|
9
|
+
import * as c from "../../config/constants/controllers";
|
|
10
|
+
import { translate } from "../../helpers/i18n";
|
|
11
|
+
import modClasses from "../../helpers/mod-classes";
|
|
12
|
+
const geoLocSelector = createUserGeolocationSelector(c.USER_GEOLOCATION);
|
|
13
|
+
const UserGeoLocationButton = memo(
|
|
14
|
+
/**
|
|
15
|
+
* @param {{
|
|
16
|
+
* additionalClasses?: string
|
|
17
|
+
* }} props props
|
|
18
|
+
* @returns {import('react').ReactElement} element
|
|
19
|
+
*/
|
|
20
|
+
function UserGeoLocationButton({ additionalClasses = "" }) {
|
|
21
|
+
const dispatch = useDispatch();
|
|
22
|
+
const { longitude, latitude, error, isEnabled, isRequesting } = useSelector(geoLocSelector);
|
|
23
|
+
const [moveToGeoLoc, setMoveToGeoLoc] = useState(false);
|
|
24
|
+
const [showButton, setShowButton] = useState(true);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
setShowButton(hasGeolocationSupport);
|
|
27
|
+
}, []);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if (moveToGeoLoc && longitude && latitude) {
|
|
30
|
+
// move only once per click
|
|
31
|
+
setMoveToGeoLoc(false);
|
|
32
|
+
dispatch(animate(c.MAP, {
|
|
33
|
+
center: proj4("WGS84", "EPSG:3857", [
|
|
34
|
+
longitude,
|
|
35
|
+
latitude,
|
|
36
|
+
]),
|
|
37
|
+
duration: 500,
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
}, [dispatch, longitude, latitude, moveToGeoLoc]);
|
|
41
|
+
const onClick = useCallback(
|
|
42
|
+
/** @param {React.MouseEvent} e event */
|
|
43
|
+
function onClick(e) {
|
|
44
|
+
e.stopPropagation();
|
|
45
|
+
setMoveToGeoLoc(true);
|
|
46
|
+
dispatch(getGeolocation());
|
|
47
|
+
}, [dispatch]);
|
|
48
|
+
if (!showButton) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return (_jsx("button", { type: "button", className: modClasses("ms3-map-overlay__button", {
|
|
52
|
+
"with-icon": true,
|
|
53
|
+
"geo-location": true,
|
|
54
|
+
"geo-location--active": isEnabled,
|
|
55
|
+
"geo-location--inactive": !isEnabled,
|
|
56
|
+
"geo-location--requesting": isRequesting,
|
|
57
|
+
"geo-location--error": !!error,
|
|
58
|
+
}) +
|
|
59
|
+
" " +
|
|
60
|
+
additionalClasses, onClick: onClick, "aria-label": translate("ui.user-geo-location-button.ariaLabel"), children: _jsx("span", { className: "ms3-map-overlay__button__label", children: translate("ui.user-geo-location-button.label") }) }));
|
|
61
|
+
});
|
|
62
|
+
export default UserGeoLocationButton;
|
|
63
|
+
//# sourceMappingURL=user-geo-location-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-geo-location-button.js","sourceRoot":"","sources":["../../../src/js/components/map-overlay/user-geo-location-button.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAC,OAAO,EAAC,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAC,6BAA6B,EAAC,MAAM,+CAA+C,CAAC;AAE5F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAQ,EAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,oCAAoC,CAAC;AAExD,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,OAAO,UAAU,MAAM,2BAA2B,CAAC;AAEnD,MAAM,cAAc,GAAG,6BAA6B,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC;AAEzE,MAAM,qBAAqB,GAAG,IAAI;AACjC;;;;;GAKG;AACH,SAAS,qBAAqB,CAAC,EAAC,iBAAiB,GAAG,EAAE,EAAC;IACtD,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAC,GAC1D,WAAW,CAAC,cAAc,CAAC,CAAC;IAC7B,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEnD,SAAS,CAAC,GAAG,EAAE;QACd,aAAa,CAAC,qBAAqB,CAAC,CAAC;IACtC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,YAAY,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;YAC3C,2BAA2B;YAC3B,eAAe,CAAC,KAAK,CAAC,CAAC;YACvB,QAAQ,CACP,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE;gBACd,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE;oBACnC,SAAS;oBACT,QAAQ;iBACR,CAAC;gBACF,QAAQ,EAAE,GAAG;aACb,CAAC,CACF,CAAC;QACH,CAAC;IACF,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;IAElD,MAAM,OAAO,GAAG,WAAW;IAC1B,wCAAwC;IACxC,SAAS,OAAO,CAAC,CAAC;QACjB,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,eAAe,CAAC,IAAI,CAAC,CAAC;QACtB,QAAQ,CAAC,cAAc,EAAE,CAAC,CAAC;IAC5B,CAAC,EACD,CAAC,QAAQ,CAAC,CACV,CAAC;IAEF,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO,CACN,iBACC,IAAI,EAAC,QAAQ,EACb,SAAS,EACR,UAAU,CAAC,yBAAyB,EAAE;YACrC,WAAW,EAAE,IAAI;YACjB,cAAc,EAAE,IAAI;YACpB,sBAAsB,EAAE,SAAS;YACjC,wBAAwB,EAAE,CAAC,SAAS;YACpC,0BAA0B,EAAE,YAAY;YACxC,qBAAqB,EAAE,CAAC,CAAC,KAAK;SAC9B,CAAC;YACF,GAAG;YACH,iBAAiB,EAElB,OAAO,EAAE,OAAO,gBACJ,SAAS,CAAC,uCAAuC,CAAC,YAE9D,eAAM,SAAS,EAAC,gCAAgC,YAC9C,SAAS,CAAC,mCAAmC,CAAC,GACzC,GACC,CACT,CAAC;AACH,CAAC,CACD,CAAC;AACF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: import("react").MemoExoticComponent<typeof ZoomButton>;
|
|
2
|
+
export default _default;
|
|
3
|
+
/**
|
|
4
|
+
* @param {{
|
|
5
|
+
* action: ZOOM_IN | ZOOM_OUT,
|
|
6
|
+
* style?: import('react').CSSProperties,
|
|
7
|
+
* additionalClasses?: string,
|
|
8
|
+
* baseClass?: string,
|
|
9
|
+
* zoomModifierClassPrefix?: string
|
|
10
|
+
* }} props props
|
|
11
|
+
* @returns {import('react').ReactElement} element
|
|
12
|
+
*/
|
|
13
|
+
declare function ZoomButton(props: {
|
|
14
|
+
action: "zoomIn" | "zoomOut";
|
|
15
|
+
style?: import("react").CSSProperties;
|
|
16
|
+
additionalClasses?: string;
|
|
17
|
+
baseClass?: string;
|
|
18
|
+
zoomModifierClassPrefix?: string;
|
|
19
|
+
}): import("react").ReactElement;
|
|
20
|
+
//# sourceMappingURL=zoom-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zoom-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/map-overlay/zoom-button.jsx"],"names":[],"mappings":";;AA2BA;;;;;;;;;GASG;AACH,mCATW;IACN,MAAM,EAAE,oBAAkB,CAAC;IAC3B,KAAK,CAAC,EAAE,OAAO,OAAO,EAAE,aAAa,CAAC;IACtC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB,CAAC,EAAE,MAAM,CAAA;CACjC,GACS,OAAO,OAAO,EAAE,YAAY,CA4DxC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { animate } from "@mapsight/core/lib/map/actions";
|
|
3
|
+
import { memo, useCallback } from "react";
|
|
4
|
+
import { useDispatch, useSelector } from "react-redux";
|
|
5
|
+
import { ZOOM_IN, ZOOM_OUT } from "../../config/constants/app";
|
|
6
|
+
import * as c from "../../config/constants/controllers";
|
|
7
|
+
import { translate } from "../../helpers/i18n";
|
|
8
|
+
const zoomSelector = (state) => (state && state[c.MAP] && state[c.MAP].view && state[c.MAP].view.zoom) || 0;
|
|
9
|
+
/**
|
|
10
|
+
* @param {ZOOM_IN | ZOOM_OUT} action action
|
|
11
|
+
* @returns {string} label
|
|
12
|
+
*/
|
|
13
|
+
function getAriaLabel(action) {
|
|
14
|
+
return translate("ui.zoom-button.ariaLabel" + action);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @param {ZOOM_IN | ZOOM_OUT} action action
|
|
18
|
+
* @returns {string} label
|
|
19
|
+
*/
|
|
20
|
+
function getLabel(action) {
|
|
21
|
+
return translate("ui.zoom-button.label" + action);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @param {{
|
|
25
|
+
* action: ZOOM_IN | ZOOM_OUT,
|
|
26
|
+
* style?: import('react').CSSProperties,
|
|
27
|
+
* additionalClasses?: string,
|
|
28
|
+
* baseClass?: string,
|
|
29
|
+
* zoomModifierClassPrefix?: string
|
|
30
|
+
* }} props props
|
|
31
|
+
* @returns {import('react').ReactElement} element
|
|
32
|
+
*/
|
|
33
|
+
function ZoomButton(props) {
|
|
34
|
+
const { action,
|
|
35
|
+
// no need for separation of concerns, we just pass everything into the "component"
|
|
36
|
+
additionalClasses = "", baseClass = "button", zoomModifierClassPrefix = "button--", style = {}, } = props;
|
|
37
|
+
const dispatch = useDispatch();
|
|
38
|
+
const zoom = useSelector(zoomSelector);
|
|
39
|
+
const onClick = useCallback(
|
|
40
|
+
/** @param {import('react').MouseEvent} e event */
|
|
41
|
+
function onClick(e) {
|
|
42
|
+
e.stopPropagation();
|
|
43
|
+
switch (action) {
|
|
44
|
+
case ZOOM_IN:
|
|
45
|
+
dispatch(animate(c.MAP, {
|
|
46
|
+
zoom: zoom + 1,
|
|
47
|
+
duration: 200,
|
|
48
|
+
}));
|
|
49
|
+
break;
|
|
50
|
+
case ZOOM_OUT:
|
|
51
|
+
dispatch(animate(c.MAP, {
|
|
52
|
+
zoom: zoom - 1,
|
|
53
|
+
duration: 200,
|
|
54
|
+
}));
|
|
55
|
+
break;
|
|
56
|
+
default:
|
|
57
|
+
throw new Error("Unsupported action");
|
|
58
|
+
}
|
|
59
|
+
}, [dispatch, action, zoom]);
|
|
60
|
+
const className = `${baseClass} ${zoomModifierClassPrefix}${action} ${additionalClasses}`;
|
|
61
|
+
return (_jsx("button", { type: "button", className: className, onClick: onClick, "aria-label": getAriaLabel(action), style: style, children: _jsx("span", { className: `${baseClass}__label`, children: getLabel(action) }) }));
|
|
62
|
+
}
|
|
63
|
+
export default memo(ZoomButton);
|
|
64
|
+
//# sourceMappingURL=zoom-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zoom-button.js","sourceRoot":"","sources":["../../../src/js/components/map-overlay/zoom-button.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,gCAAgC,CAAC;AACvD,OAAQ,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AACrD,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,CAAC,MAAM,oCAAoC,CAAC;AAExD,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAE7C,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,EAAE,CAC9B,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAE7E;;;GAGG;AACH,SAAS,YAAY,CAAC,MAAM;IAC3B,OAAO,SAAS,CAAC,0BAA0B,GAAG,MAAM,CAAC,CAAC;AACvD,CAAC;AAED;;;GAGG;AACH,SAAS,QAAQ,CAAC,MAAM;IACvB,OAAO,SAAS,CAAC,sBAAsB,GAAG,MAAM,CAAC,CAAC;AACnD,CAAC;AAED;;;;;;;;;GASG;AACH,SAAS,UAAU,CAAC,KAAK;IACxB,MAAM,EACL,MAAM;IAEN,mFAAmF;IACnF,iBAAiB,GAAG,EAAE,EACtB,SAAS,GAAG,QAAQ,EACpB,uBAAuB,GAAG,UAAU,EACpC,KAAK,GAAG,EAAE,GACV,GAAG,KAAK,CAAC;IAEV,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IAEvC,MAAM,OAAO,GAAG,WAAW;IAC1B,kDAAkD;IAClD,SAAS,OAAO,CAAC,CAAC;QACjB,CAAC,CAAC,eAAe,EAAE,CAAC;QAEpB,QAAQ,MAAM,EAAE,CAAC;YAChB,KAAK,OAAO;gBACX,QAAQ,CACP,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE;oBACd,IAAI,EAAE,IAAI,GAAG,CAAC;oBACd,QAAQ,EAAE,GAAG;iBACb,CAAC,CACF,CAAC;gBACF,MAAM;YAEP,KAAK,QAAQ;gBACZ,QAAQ,CACP,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE;oBACd,IAAI,EAAE,IAAI,GAAG,CAAC;oBACd,QAAQ,EAAE,GAAG;iBACb,CAAC,CACF,CAAC;gBACF,MAAM;YAEP;gBACC,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACxC,CAAC;IACF,CAAC,EACD,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,CACxB,CAAC;IAEF,MAAM,SAAS,GAAG,GAAG,SAAS,IAAI,uBAAuB,GAAG,MAAM,IAAI,iBAAiB,EAAE,CAAC;IAE1F,OAAO,CACN,iBACC,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,gBACJ,YAAY,CAAC,MAAM,CAAC,EAChC,KAAK,EAAE,KAAK,YAEZ,eAAM,SAAS,EAAE,GAAG,SAAS,SAAS,YAAG,QAAQ,CAAC,MAAM,CAAC,GAAQ,GACzD,CACT,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zoom-buttons.d.ts","sourceRoot":"","sources":["../../../src/js/components/map-overlay/zoom-buttons.jsx"],"names":[],"mappings":";AAOA,8GAiBG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { memo } from "react";
|
|
3
|
+
import { ZOOM_IN, ZOOM_OUT } from "../../config/constants/app";
|
|
4
|
+
import CombinedButtons from "./combined-buttons";
|
|
5
|
+
import ZoomButton from "./zoom-button";
|
|
6
|
+
const ZoomButtons = memo(function ZoomButtons() {
|
|
7
|
+
return (_jsxs(CombinedButtons, { children: [_jsx(ZoomButton, { baseClass: "ms3-map-overlay__button", additionalClasses: "ms3-map-overlay__button--with-icon ms3-map-overlay__button--zoom", zoomModifierClassPrefix: "ms3-map-overlay__button--zoom--", action: ZOOM_IN }), _jsx(ZoomButton, { baseClass: "ms3-map-overlay__button", additionalClasses: "ms3-map-overlay__button--with-icon ms3-map-overlay__button--zoom", zoomModifierClassPrefix: "ms3-map-overlay__button--zoom--", action: ZOOM_OUT })] }));
|
|
8
|
+
});
|
|
9
|
+
export default ZoomButtons;
|
|
10
|
+
//# sourceMappingURL=zoom-buttons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zoom-buttons.js","sourceRoot":"","sources":["../../../src/js/components/map-overlay/zoom-buttons.jsx"],"names":[],"mappings":";AAAA,OAAQ,EAAC,IAAI,EAAC,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AAE7D,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,WAAW;IAC5C,OAAO,CACN,MAAC,eAAe,eACf,KAAC,UAAU,IACV,SAAS,EAAC,yBAAyB,EACnC,iBAAiB,EAAC,kEAAkE,EACpF,uBAAuB,EAAC,iCAAiC,EACzD,MAAM,EAAE,OAAO,GACd,EACF,KAAC,UAAU,IACV,SAAS,EAAC,yBAAyB,EACnC,iBAAiB,EAAC,kEAAkE,EACpF,uBAAuB,EAAC,iCAAiC,EACzD,MAAM,EAAE,QAAQ,GACf,IACe,CAClB,CAAC;AACH,CAAC,CAAC,CAAC;AACH,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<({ size }: {
|
|
2
|
+
size: any;
|
|
3
|
+
}) => import("react/jsx-runtime").JSX.Element>, {
|
|
4
|
+
[x: string]: JSX.LibraryManagedAttributes<C, import("react-redux").GetProps<C>>;
|
|
5
|
+
[x: number]: JSX.LibraryManagedAttributes<C, import("react-redux").GetProps<C>>;
|
|
6
|
+
[x: symbol]: JSX.LibraryManagedAttributes<C, import("react-redux").GetProps<C>>;
|
|
7
|
+
context?: import("react-redux/es/components/Context").ReactReduxContextInstance | undefined;
|
|
8
|
+
store?: import("redux").Store | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/map-synced-interlay/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { connect } from "react-redux";
|
|
2
|
+
import { createStructuredSelector } from "reselect";
|
|
3
|
+
import { mapSizeSelector } from "@mapsight/core/lib/map/selectors";
|
|
4
|
+
import { MAP } from "../../config/constants/controllers";
|
|
5
|
+
import { viewSelector } from "../../store/selectors.js";
|
|
6
|
+
import MapSyncedInterlay from "./map-synced-interlay";
|
|
7
|
+
export default connect(createStructuredSelector({
|
|
8
|
+
view: viewSelector,
|
|
9
|
+
size: (state) => mapSizeSelector(state[MAP]),
|
|
10
|
+
//pendingUpdateSize: state => state[MAP].pendingUpdateSize || false,
|
|
11
|
+
}))(MapSyncedInterlay);
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/map-synced-interlay/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,wBAAwB,EAAC,MAAM,UAAU,CAAC;AAElD,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAC;AAEjE,OAAO,EAAC,GAAG,EAAC,MAAM,oCAAoC,CAAC;AACvD,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACtD,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AAEtD,eAAe,OAAO,CACrB,wBAAwB,CAAC;IACxB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5C,oEAAoE;CACpE,CAAC,CACF,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("react").MemoExoticComponent<typeof MapSyncedInterlay>;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare function MapSyncedInterlay({ size }: {
|
|
4
|
+
size: any;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=map-synced-interlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-synced-interlay.d.ts","sourceRoot":"","sources":["../../../src/js/components/map-synced-interlay/map-synced-interlay.jsx"],"names":[],"mappings":";;AAOA;;4CAYC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { memo } from "react";
|
|
3
|
+
import { useSelector } from "react-redux";
|
|
4
|
+
import { isViewMobileOrMapOnlySelector } from "../../store/selectors.js";
|
|
5
|
+
import Tooltip from "./tooltip";
|
|
6
|
+
function MapSyncedInterlay({ size }) {
|
|
7
|
+
const isViewMobileOrMapOnly = useSelector(isViewMobileOrMapOnlySelector);
|
|
8
|
+
const [width = "100%", height = "100%"] = size || [];
|
|
9
|
+
return (_jsx("div", { className: "ms3-map-synced-interlay", style: { width: width, height: height }, children: !isViewMobileOrMapOnly && _jsx(Tooltip, {}) }));
|
|
10
|
+
}
|
|
11
|
+
export default memo(MapSyncedInterlay);
|
|
12
|
+
//# sourceMappingURL=map-synced-interlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-synced-interlay.js","sourceRoot":"","sources":["../../../src/js/components/map-synced-interlay/map-synced-interlay.jsx"],"names":[],"mappings":";AAAA,OAAQ,EAAC,IAAI,EAAC,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAExC,OAAO,EAAC,6BAA6B,EAAC,MAAM,0BAA0B,CAAC;AAEvE,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,SAAS,iBAAiB,CAAC,EAAC,IAAI,EAAC;IAChC,MAAM,qBAAqB,GAAG,WAAW,CAAC,6BAA6B,CAAC,CAAC;IACzE,MAAM,CAAC,KAAK,GAAG,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC;IAErD,OAAO,CACN,cACC,SAAS,EAAC,yBAAyB,EACnC,KAAK,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAC,YAEpC,CAAC,qBAAqB,IAAI,KAAC,OAAO,KAAG,GACjC,CACN,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
import type { MapsightUiFeature } from "../../types";
|
|
3
|
+
export type Props = PropsWithChildren<{
|
|
4
|
+
feature: MapsightUiFeature;
|
|
5
|
+
html: string;
|
|
6
|
+
text: string;
|
|
7
|
+
}>;
|
|
8
|
+
declare const _default: import("react").ComponentType<Props>;
|
|
9
|
+
export default _default;
|
|
10
|
+
declare module "../../helpers/components" {
|
|
11
|
+
interface ComponentProps {
|
|
12
|
+
TooltipContent: Props;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=tooltip-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-content.d.ts","sourceRoot":"","sources":["../../../src/js/components/map-synced-interlay/tooltip-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAG7C,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAEnD,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC;IACrC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb,CAAC,CAAC;;AAMH,wBAA0E;AAE1E,OAAO,QAAQ,0BAA0B,CAAC;IACzC,UAAU,cAAc;QACvB,cAAc,EAAE,KAAK,CAAC;KACtB;CACD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { makeReplaceableComponent } from "../../helpers/components";
|
|
3
|
+
function TooltipContent({ children }) {
|
|
4
|
+
return _jsx(_Fragment, { children: children });
|
|
5
|
+
}
|
|
6
|
+
export default makeReplaceableComponent("TooltipContent", TooltipContent);
|
|
7
|
+
//# sourceMappingURL=tooltip-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-content.js","sourceRoot":"","sources":["../../../src/js/components/map-synced-interlay/tooltip-content.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,wBAAwB,EAAC,MAAM,0BAA0B,CAAC;AASlE,SAAS,cAAc,CAAC,EAAC,QAAQ,EAAQ;IACxC,OAAO,4BAAG,QAAQ,GAAI,CAAC;AACxB,CAAC;AAED,eAAe,wBAAwB,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type Position = null | {
|
|
2
|
+
left: number;
|
|
3
|
+
right: number;
|
|
4
|
+
top: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
};
|
|
7
|
+
declare function Tooltip(): import("react/jsx-runtime").JSX.Element | undefined;
|
|
8
|
+
declare const _default: import("react").MemoExoticComponent<typeof Tooltip>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/js/components/map-synced-interlay/tooltip.tsx"],"names":[],"mappings":"AA0DA,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAiEF,iBAAS,OAAO,wDAoEf;;AAED,wBAA6B"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { memo, useEffect, useRef, useState, } from "react";
|
|
3
|
+
import { useSelector } from "react-redux";
|
|
4
|
+
import { createSelector } from "reselect";
|
|
5
|
+
import { createFeatureSelectionSelector, getFilteredFeatures, } from "@mapsight/core/lib/feature-selections/selectors";
|
|
6
|
+
import { findFeatureInFeatureSourcesById } from "@mapsight/core/lib/feature-sources/selectors";
|
|
7
|
+
import { mapSizeSelector as getMapSize } from "@mapsight/core/lib/map/selectors";
|
|
8
|
+
import { FEATURE_SELECTIONS, FEATURE_SOURCES, MAP, } from "../../config/constants/controllers";
|
|
9
|
+
import { FEATURE_SELECTION_HIGHLIGHT } from "../../config/feature/selections";
|
|
10
|
+
import getFeatureProperty from "../../helpers/get-feature-property";
|
|
11
|
+
import TooltipContent from "./tooltip-content";
|
|
12
|
+
const featureSelector = createSelector((state) => state[FEATURE_SOURCES], createFeatureSelectionSelector(FEATURE_SELECTIONS, FEATURE_SELECTION_HIGHLIGHT), (featureSources, selection) => {
|
|
13
|
+
const features = getFilteredFeatures(selection);
|
|
14
|
+
const featureId = features && features[0];
|
|
15
|
+
if (featureId) {
|
|
16
|
+
return findFeatureInFeatureSourcesById(featureSources, featureId);
|
|
17
|
+
}
|
|
18
|
+
return null;
|
|
19
|
+
});
|
|
20
|
+
function mapSizeSelector(state) {
|
|
21
|
+
return getMapSize(state[MAP]);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @param feature feature
|
|
25
|
+
* @param tooltipElementRef feature
|
|
26
|
+
* @returns position and withTransition
|
|
27
|
+
*/
|
|
28
|
+
function useGetPositionWithTransition(feature, tooltipElementRef) {
|
|
29
|
+
const [withTransition, setWithTransition] = useState(true);
|
|
30
|
+
const mapSize = useSelector(mapSizeSelector);
|
|
31
|
+
const [position, setPosition] = useState(null);
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
setWithTransition(false);
|
|
34
|
+
}, [mapSize]);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
const mapElNull = tooltipElementRef.current
|
|
37
|
+
?.closest(".ms3-map-wrapper")
|
|
38
|
+
?.querySelector(".ms3-map-target");
|
|
39
|
+
if (!mapElNull || !feature) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
const mapEl = mapElNull;
|
|
43
|
+
function onMouseMove(e) {
|
|
44
|
+
const x = e.clientX;
|
|
45
|
+
const y = e.clientY;
|
|
46
|
+
const { left, right, top, bottom } = mapEl.getBoundingClientRect();
|
|
47
|
+
setPosition({
|
|
48
|
+
left: x - left,
|
|
49
|
+
right: right - x,
|
|
50
|
+
top: y - top,
|
|
51
|
+
bottom: bottom - y,
|
|
52
|
+
});
|
|
53
|
+
setWithTransition(true);
|
|
54
|
+
}
|
|
55
|
+
function onMouseOut() {
|
|
56
|
+
setPosition(null);
|
|
57
|
+
setWithTransition(true);
|
|
58
|
+
}
|
|
59
|
+
mapEl.addEventListener("mousemove", onMouseMove);
|
|
60
|
+
mapEl.addEventListener("mouseout", onMouseOut);
|
|
61
|
+
return () => {
|
|
62
|
+
setPosition(null);
|
|
63
|
+
setWithTransition(true);
|
|
64
|
+
mapEl.removeEventListener("mousemove", onMouseMove);
|
|
65
|
+
mapEl.removeEventListener("mouseout", onMouseOut);
|
|
66
|
+
};
|
|
67
|
+
}, [feature, setPosition, tooltipElementRef]);
|
|
68
|
+
return [position, withTransition];
|
|
69
|
+
}
|
|
70
|
+
function Tooltip() {
|
|
71
|
+
const tooltipElementRef = useRef(null);
|
|
72
|
+
const feature = useSelector(featureSelector);
|
|
73
|
+
// Keeping the last feature to allow fade out without losing the content
|
|
74
|
+
const [lastFeature, setLastFeature] = useState(null);
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
if (!feature) {
|
|
77
|
+
setLastFeature(feature);
|
|
78
|
+
}
|
|
79
|
+
}, [feature, setLastFeature]);
|
|
80
|
+
const [position, withTransition] = useGetPositionWithTransition(feature, tooltipElementRef);
|
|
81
|
+
const localFeature = feature || lastFeature;
|
|
82
|
+
if (!localFeature) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const classes = `ms3-tooltip ms3-tooltip--${feature ? "active" : "inactive"}`;
|
|
86
|
+
const classesInner = `ms3-tooltip__inner ms3-tooltip__inner--${feature ? "active" : "inactive"}`;
|
|
87
|
+
const styles = {};
|
|
88
|
+
if (position) {
|
|
89
|
+
styles.transform = `translate(${-position.right}px, ${position.top}px)`;
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
styles.display = "none";
|
|
93
|
+
}
|
|
94
|
+
if (!withTransition) {
|
|
95
|
+
styles.transition = "none";
|
|
96
|
+
}
|
|
97
|
+
const html = getFeatureProperty(localFeature, "tooltip", "");
|
|
98
|
+
const text = html
|
|
99
|
+
? ""
|
|
100
|
+
: getFeatureProperty(localFeature, "name", "");
|
|
101
|
+
let content = null;
|
|
102
|
+
if (html) {
|
|
103
|
+
content = (_jsx("div", { className: classesInner, dangerouslySetInnerHTML: { __html: html } }));
|
|
104
|
+
}
|
|
105
|
+
else if (text) {
|
|
106
|
+
content = _jsx("div", { className: classesInner, children: text });
|
|
107
|
+
}
|
|
108
|
+
return (_jsx("div", { className: classes, style: styles, ref: tooltipElementRef, children: _jsx(TooltipContent, { feature: localFeature, html: html, text: text, children: content }) }));
|
|
109
|
+
}
|
|
110
|
+
export default memo(Tooltip);
|
|
111
|
+
//# sourceMappingURL=tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/js/components/map-synced-interlay/tooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAIN,IAAI,EACJ,SAAS,EACT,MAAM,EACN,QAAQ,GACR,MAAM,OAAO,CAAC;AACf,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAExC,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAC;AAExC,OAAO,EAEN,8BAA8B,EAC9B,mBAAmB,GACnB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAC,+BAA+B,EAAC,MAAM,8CAA8C,CAAC;AAE7F,OAAO,EAAC,eAAe,IAAI,UAAU,EAAC,MAAM,kCAAkC,CAAC;AAI/E,OAAO,EACN,kBAAkB,EAClB,eAAe,EACf,GAAG,GACH,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAC,2BAA2B,EAAC,MAAM,iCAAiC,CAAC;AAC5E,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AAEpE,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAE/C,MAAM,eAAe,GAAG,cAAc,CACrC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe,CAAwB,EACxD,8BAA8B,CAC7B,kBAAkB,EAClB,2BAA2B,CAC3B,EACD,CACC,cAAmC,EACnC,SAA4C,EAC3C,EAAE;IACH,MAAM,QAAQ,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAChD,MAAM,SAAS,GAAG,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC1C,IAAI,SAAS,EAAE,CAAC;QACf,OAAO,+BAA+B,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;IACnE,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC,CACD,CAAC;AAEF,SAAS,eAAe,CAAC,KAAY;IACpC,OAAO,UAAU,CAAC,KAAK,CAAC,GAAG,CAAa,CAAC,CAAC;AAC3C,CAAC;AASD;;;;GAIG;AACH,SAAS,4BAA4B,CACpC,OAAuB,EACvB,iBAAgD;IAEhD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3D,MAAM,OAAO,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC;IAE7C,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAkB,IAAI,CAAC,CAAC;IAEhE,SAAS,CAAC,GAAG,EAAE;QACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,SAAS,GAAG,iBAAiB,CAAC,OAAO;YAC1C,EAAE,OAAO,CAAC,kBAAkB,CAAC;YAC7B,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;QAEpC,IAAI,CAAC,SAAS,IAAI,CAAC,OAAO,EAAE,CAAC;YAC5B,OAAO,SAAS,CAAC;QAClB,CAAC;QAED,MAAM,KAAK,GAAG,SAAS,CAAC;QAExB,SAAS,WAAW,CAAC,CAAa;YACjC,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC;YACpB,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC;YACpB,MAAM,EAAC,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAC,GAAG,KAAK,CAAC,qBAAqB,EAAE,CAAC;YACjE,WAAW,CAAC;gBACX,IAAI,EAAE,CAAC,GAAG,IAAI;gBACd,KAAK,EAAE,KAAK,GAAG,CAAC;gBAChB,GAAG,EAAE,CAAC,GAAG,GAAG;gBACZ,MAAM,EAAE,MAAM,GAAG,CAAC;aAClB,CAAC,CAAC;YACH,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC;QAED,SAAS,UAAU;YAClB,WAAW,CAAC,IAAI,CAAC,CAAC;YAClB,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC;QAED,KAAK,CAAC,gBAAgB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACjD,KAAK,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAE/C,OAAO,GAAG,EAAE;YACX,WAAW,CAAC,IAAI,CAAC,CAAC;YAClB,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAExB,KAAK,CAAC,mBAAmB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;YACpD,KAAK,CAAC,mBAAmB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QACnD,CAAC,CAAC;IACH,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAE9C,OAAO,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;AACnC,CAAC;AAED,SAAS,OAAO;IACf,MAAM,iBAAiB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,WAAW,CAAC,eAAe,CAA6B,CAAC;IAEzE,wEAAwE;IACxE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAC7C,IAAI,CACJ,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,cAAc,CAAC,OAAO,CAAC,CAAC;QACzB,CAAC;IACF,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;IAE9B,MAAM,CAAC,QAAQ,EAAE,cAAc,CAAC,GAAG,4BAA4B,CAC9D,OAAO,EACP,iBAAiB,CACjB,CAAC;IAEF,MAAM,YAAY,GAAG,OAAO,IAAI,WAAW,CAAC;IAC5C,IAAI,CAAC,YAAY,EAAE,CAAC;QACnB,OAAO;IACR,CAAC;IAED,MAAM,OAAO,GAAG,4BACf,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UACtB,EAAE,CAAC;IACH,MAAM,YAAY,GAAG,0CACpB,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UACtB,EAAE,CAAC;IAEH,MAAM,MAAM,GAAkB,EAAE,CAAC;IAEjC,IAAI,QAAQ,EAAE,CAAC;QACd,MAAM,CAAC,SAAS,GAAG,aAAa,CAAC,QAAQ,CAAC,KAAK,OAAO,QAAQ,CAAC,GAAG,KAAK,CAAC;IACzE,CAAC;SAAM,CAAC;QACP,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;IACzB,CAAC;IAED,IAAI,CAAC,cAAc,EAAE,CAAC;QACrB,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC;IAC5B,CAAC;IAED,MAAM,IAAI,GAAG,kBAAkB,CAAC,YAAY,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;IACvE,MAAM,IAAI,GAAG,IAAI;QAChB,CAAC,CAAC,EAAE;QACJ,CAAC,CAAE,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,CAAY,CAAC;IAE5D,IAAI,OAAO,GAAwB,IAAI,CAAC;IACxC,IAAI,IAAI,EAAE,CAAC;QACV,OAAO,GAAG,CACT,cACC,SAAS,EAAE,YAAY,EACvB,uBAAuB,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,GACtC,CACF,CAAC;IACH,CAAC;SAAM,IAAI,IAAI,EAAE,CAAC;QACjB,OAAO,GAAG,cAAK,SAAS,EAAE,YAAY,YAAG,IAAI,GAAO,CAAC;IACtD,CAAC;IAED,OAAO,CACN,cAAK,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,YAC7D,KAAC,cAAc,IAAC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,YAC3D,OAAO,GACQ,GACZ,CACN,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
declare function MapWrapper(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<typeof MapWrapper>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=map-wrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-wrapper.d.ts","sourceRoot":"","sources":["../../src/js/components/map-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAe1D,iBAAS,UAAU,CAAC,KAAK,EAAE,iBAAiB,2CA+C3C;;AAED,wBAAgC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { memo, useCallback, useRef } from "react";
|
|
3
|
+
import { useInView } from "react-intersection-observer";
|
|
4
|
+
import { useDispatch, useSelector, useStore } from "react-redux";
|
|
5
|
+
import useUpdateMapSizeOnRender from "../hooks/useUpdateMapSizeOnRender";
|
|
6
|
+
import useUpdateMapSizeOnTransitionEnd from "../hooks/useUpdateMapSizeOnTransitionEnd";
|
|
7
|
+
import useUpdateMapSizeOnViewChange from "../hooks/useUpdateMapSizeOnViewChange";
|
|
8
|
+
import { setMapIsOutOfViewport } from "../store/actions";
|
|
9
|
+
import { viewSelector } from "../store/selectors";
|
|
10
|
+
import { APP_EVENT_SCROLL_TO_MAP, useAppChannelEventListener, } from "./helping/app-channel";
|
|
11
|
+
function MapWrapper(props) {
|
|
12
|
+
const { children } = props;
|
|
13
|
+
const dispatch = useDispatch();
|
|
14
|
+
const mapWrapperRef = useRef(undefined);
|
|
15
|
+
useUpdateMapSizeOnViewChange(useSelector(viewSelector) ?? "desktop", useStore());
|
|
16
|
+
useUpdateMapSizeOnTransitionEnd(mapWrapperRef.current, dispatch);
|
|
17
|
+
useUpdateMapSizeOnRender(dispatch);
|
|
18
|
+
useAppChannelEventListener(APP_EVENT_SCROLL_TO_MAP, useCallback(() => {
|
|
19
|
+
mapWrapperRef.current?.scrollIntoView({
|
|
20
|
+
block: "start",
|
|
21
|
+
behavior: "smooth",
|
|
22
|
+
});
|
|
23
|
+
}, [mapWrapperRef]));
|
|
24
|
+
const { ref: inViewRef } = useInView({
|
|
25
|
+
threshold: 0,
|
|
26
|
+
initialInView: true,
|
|
27
|
+
fallbackInView: true,
|
|
28
|
+
onChange: (inView) => dispatch(setMapIsOutOfViewport(!inView)),
|
|
29
|
+
});
|
|
30
|
+
const setRef = useCallback((node) => {
|
|
31
|
+
mapWrapperRef.current = node ?? undefined;
|
|
32
|
+
inViewRef(node);
|
|
33
|
+
}, [inViewRef]);
|
|
34
|
+
return (_jsx("div", { ref: setRef,
|
|
35
|
+
// ms3-map-wrapper--anchored-${anchor}
|
|
36
|
+
className: `ms3-map-wrapper [ ms3-flex ms3-flex--column ] [ ms3-scroll-target ]`, children: children }));
|
|
37
|
+
}
|
|
38
|
+
export default memo(MapWrapper);
|
|
39
|
+
//# sourceMappingURL=map-wrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-wrapper.js","sourceRoot":"","sources":["../../src/js/components/map-wrapper.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAChD,OAAO,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAC,MAAM,aAAa,CAAC;AAE/D,OAAO,wBAAwB,MAAM,mCAAmC,CAAC;AACzE,OAAO,+BAA+B,MAAM,0CAA0C,CAAC;AACvF,OAAO,4BAA4B,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAC,qBAAqB,EAAC,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,OAAO,EACN,uBAAuB,EACvB,0BAA0B,GAC1B,MAAM,uBAAuB,CAAC;AAE/B,SAAS,UAAU,CAAC,KAAwB;IAC3C,MAAM,EAAC,QAAQ,EAAC,GAAG,KAAK,CAAC;IAEzB,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,aAAa,GAAG,MAAM,CAA6B,SAAS,CAAC,CAAC;IAEpE,4BAA4B,CAC3B,WAAW,CAAC,YAAY,CAAC,IAAI,SAAS,EACtC,QAAQ,EAAE,CACV,CAAC;IACF,+BAA+B,CAAC,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACjE,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IAEnC,0BAA0B,CACzB,uBAAuB,EACvB,WAAW,CAAC,GAAG,EAAE;QAChB,aAAa,CAAC,OAAO,EAAE,cAAc,CAAC;YACrC,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,QAAQ;SAClB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CACnB,CAAC;IAEF,MAAM,EAAC,GAAG,EAAE,SAAS,EAAC,GAAG,SAAS,CAAC;QAClC,SAAS,EAAE,CAAC;QACZ,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;KAC9D,CAAC,CAAC;IAEH,MAAM,MAAM,GAAgC,WAAW,CACtD,CAAC,IAAI,EAAE,EAAE;QACR,aAAa,CAAC,OAAO,GAAG,IAAI,IAAI,SAAS,CAAC;QAC1C,SAAS,CAAC,IAAI,CAAC,CAAC;IACjB,CAAC,EACD,CAAC,SAAS,CAAC,CACX,CAAC;IAEF,OAAO,CACN,cACC,GAAG,EAAE,MAAM;QACX,sCAAsC;QACtC,SAAS,EAAE,qEAAqE,YAE/E,QAAQ,GACJ,CACN,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import("react").MemoExoticComponent<typeof MapsightMap>;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare function MapsightMap({ controllerName, enableKeyboardControl, ...attributes }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
controllerName?: string | undefined;
|
|
6
|
+
enableKeyboardControl?: boolean | undefined;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/js/components/map.jsx"],"names":[],"mappings":";;AAOA;;;;4CA2BC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { memo, useEffect, useRef } from "react";
|
|
3
|
+
import { useStore } from "react-redux";
|
|
4
|
+
import { MAP } from "../config/constants/controllers";
|
|
5
|
+
import { translate } from "../helpers/i18n";
|
|
6
|
+
import useMountable from "../hooks/useMountable";
|
|
7
|
+
function MapsightMap({ controllerName = MAP, enableKeyboardControl = true, ...attributes }) {
|
|
8
|
+
const store = useStore();
|
|
9
|
+
const ref = useRef();
|
|
10
|
+
const handleMount = useMountable(store.getController(controllerName));
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
handleMount(ref.current);
|
|
13
|
+
}, [ref, handleMount]);
|
|
14
|
+
if (enableKeyboardControl) {
|
|
15
|
+
attributes.tabIndex = 0;
|
|
16
|
+
}
|
|
17
|
+
return (_jsxs("div", { className: "ms3-map-target", ref: ref, ...attributes, children: [_jsx("span", { className: "ms3-visuallyhidden", children: translate("ui.map.visuallyhidden") }), _jsx("div", { className: "ol-viewport", children: _jsx("canvas", { className: "ol-unselectable" }) })] }));
|
|
18
|
+
}
|
|
19
|
+
export default memo(MapsightMap);
|
|
20
|
+
//# sourceMappingURL=map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.js","sourceRoot":"","sources":["../../src/js/components/map.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,OAAO,EAAC,GAAG,EAAC,MAAM,iCAAiC,CAAC;AAEpD,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAEjD,SAAS,WAAW,CAAC,EACpB,cAAc,GAAG,GAAG,EACpB,qBAAqB,GAAG,IAAI,EAC5B,GAAG,UAAU,EACb;IACA,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IAErB,MAAM,WAAW,GAAG,YAAY,CAAC,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC;IACtE,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC;IAEvB,IAAI,qBAAqB,EAAE,CAAC;QAC3B,UAAU,CAAC,QAAQ,GAAG,CAAC,CAAC;IACzB,CAAC;IAED,OAAO,CACN,eAAK,SAAS,EAAC,gBAAgB,EAAC,GAAG,EAAE,GAAG,KAAM,UAAU,aACvD,eAAM,SAAS,EAAC,oBAAoB,YAClC,SAAS,CAAC,uBAAuB,CAAC,GAC7B,EACP,cAAK,SAAS,EAAC,aAAa,YAC3B,iBAAQ,SAAS,EAAC,iBAAiB,GAAG,GACjC,IACD,CACN,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { Props as ReactModalProps } from "react-modal";
|
|
3
|
+
export type Props = ReactModalProps & {
|
|
4
|
+
closeLabel?: string;
|
|
5
|
+
headline: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
declare const Modal: ({ children, closeLabel, headline, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Modal;
|
|
9
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/js/components/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA4B,SAAS,EAAC,MAAM,OAAO,CAAC;AAChE,OAAO,KAAK,EAAC,KAAK,IAAI,eAAe,EAAC,MAAM,aAAa,CAAC;AAK1D,MAAM,MAAM,KAAK,GAAG,eAAe,GAAG;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,KAAK,GAAI,8CAA4C,KAAK,4CA0B/D,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import ReactModal from "react-modal";
|
|
3
|
+
import CloseOverlayButton from "./close-overlay-button";
|
|
4
|
+
const Modal = ({ children, closeLabel, headline, ...props }) => {
|
|
5
|
+
const handleClose = (event) => props.onRequestClose?.(event);
|
|
6
|
+
return (_jsx(ReactModal, { onRequestClose: handleClose, className: "ms3-modal", overlayClassName: "ms3-app-overlay", shouldCloseOnOverlayClick: true, ...props, children: _jsxs("div", { className: "ms3-modal__inner ms3-modal__inner--search", children: [_jsxs("div", { className: "ms3-modal__header", children: [_jsx("h3", { className: "ms3-modal__headline", children: headline }), _jsx("div", { className: "ms3-modal__close", children: _jsx(CloseOverlayButton, { label: closeLabel, onClose: (event) => handleClose(event) }) })] }), children] }) }));
|
|
7
|
+
};
|
|
8
|
+
export default Modal;
|
|
9
|
+
//# sourceMappingURL=modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/js/components/modal.tsx"],"names":[],"mappings":";AAEA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,kBAAkB,MAAM,wBAAwB,CAAC;AAOxD,MAAM,KAAK,GAAG,CAAC,EAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAQ,EAAE,EAAE;IACnE,MAAM,WAAW,GAAG,CAAC,KAAiC,EAAE,EAAE,CACzD,KAAK,CAAC,cAAc,EAAE,CAAC,KAAK,CAAC,CAAC;IAE/B,OAAO,CACN,KAAC,UAAU,IACV,cAAc,EAAE,WAAW,EAC3B,SAAS,EAAC,WAAW,EACrB,gBAAgB,EAAC,iBAAiB,EAClC,yBAAyB,EAAE,IAAI,KAC3B,KAAK,YAET,eAAK,SAAS,EAAC,2CAA2C,aACzD,eAAK,SAAS,EAAC,mBAAmB,aACjC,aAAI,SAAS,EAAC,qBAAqB,YAAE,QAAQ,GAAM,EACnD,cAAK,SAAS,EAAC,kBAAkB,YAChC,KAAC,kBAAkB,IAClB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,GACrC,GACG,IACD,EACL,QAAQ,IACJ,GACM,CACb,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type Props = {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
query: string;
|
|
6
|
+
onChange: (query: string) => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Same as `QueryInput` but with the label prepended and visible. Not possible to change
|
|
10
|
+
* `QueryInput` into something like this due to leaky abstractions
|
|
11
|
+
* (leaking internas like classnames)
|
|
12
|
+
**/
|
|
13
|
+
declare function QueryInputWithLabel({ label, placeholder, query, onChange }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default QueryInputWithLabel;
|
|
15
|
+
//# sourceMappingURL=query-input-with-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-input-with-label.d.ts","sourceRoot":"","sources":["../../src/js/components/query-input-with-label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,SAAS,EAAC,MAAM,OAAO,CAAC;AAMlD,MAAM,MAAM,KAAK,GAAG;IACnB,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF;;;;IAII;AACJ,iBAAS,mBAAmB,CAAC,EAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAC,EAAE,KAAK,2CAkDxE;AAED,eAAe,mBAAmB,CAAC"}
|