@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,17 @@
|
|
|
1
|
+
import { type View } from "../../config/constants/app";
|
|
2
|
+
import type { MapsightUiContext, PluginInstance } from "../../types.ts";
|
|
3
|
+
/**
|
|
4
|
+
* This plugin will dispatch breakpoint changes for the specified renderBreakpoints (@see {CreateOptions.renderBreakpoints})
|
|
5
|
+
*
|
|
6
|
+
* @param [options] options
|
|
7
|
+
* @param [options.determineInitialView] function to determine the INITIAL view breakpoint for
|
|
8
|
+
* the given currently active render breakpoints. Used for client-side rendering ONLY! Otherwise the initial view
|
|
9
|
+
* is determined server side.
|
|
10
|
+
* @param [options.resizeThrottleWait=100] ms to wait between window resize events before updating breakpoints
|
|
11
|
+
* @returns plugin instance
|
|
12
|
+
*/
|
|
13
|
+
export default function createPlugin(options?: {
|
|
14
|
+
determineInitialView?: (currentBreakpoints: string[], context: MapsightUiContext) => View;
|
|
15
|
+
resizeThrottleWait?: number;
|
|
16
|
+
}): PluginInstance;
|
|
17
|
+
//# sourceMappingURL=views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/views.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4B,KAAK,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAEhF,OAAO,KAAK,EACX,iBAAiB,EAEjB,cAAc,EACd,MAAM,gBAAgB,CAAC;AAiBxB;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,OAAO,GAAE;IACR,oBAAoB,CAAC,EAAE,CACtB,kBAAkB,EAAE,MAAM,EAAE,EAC5B,OAAO,EAAE,iBAAiB,KACtB,IAAI,CAAC;IACV,kBAAkB,CAAC,EAAE,MAAM,CAAC;CACvB,GACJ,cAAc,CAiFhB"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import throttle from "lodash/throttle";
|
|
2
|
+
import { VIEW_DESKTOP, VIEW_MOBILE } from "../../config/constants/app";
|
|
3
|
+
import { setViewBreakpoints } from "../../store/actions";
|
|
4
|
+
const getViewportWidth = () => Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
|
|
5
|
+
const defaultResizeThrottleWait = 100;
|
|
6
|
+
function defaultDetermineInitialClientRenderingView(currentBreakpoints, _context) {
|
|
7
|
+
// NOTE: This will only be used for client side only rendering, otherwise INITIAL view will be determined by server!
|
|
8
|
+
return currentBreakpoints.indexOf("mobile") > -1
|
|
9
|
+
? VIEW_MOBILE
|
|
10
|
+
: VIEW_DESKTOP;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* This plugin will dispatch breakpoint changes for the specified renderBreakpoints (@see {CreateOptions.renderBreakpoints})
|
|
14
|
+
*
|
|
15
|
+
* @param [options] options
|
|
16
|
+
* @param [options.determineInitialView] function to determine the INITIAL view breakpoint for
|
|
17
|
+
* the given currently active render breakpoints. Used for client-side rendering ONLY! Otherwise the initial view
|
|
18
|
+
* is determined server side.
|
|
19
|
+
* @param [options.resizeThrottleWait=100] ms to wait between window resize events before updating breakpoints
|
|
20
|
+
* @returns plugin instance
|
|
21
|
+
*/
|
|
22
|
+
export default function createPlugin(options = {}) {
|
|
23
|
+
const { determineInitialView = defaultDetermineInitialClientRenderingView, resizeThrottleWait = defaultResizeThrottleWait, } = options;
|
|
24
|
+
// sorted {label: [min (included), max (included)]}
|
|
25
|
+
// -1 = Infinity
|
|
26
|
+
let currentBreakpoints = [];
|
|
27
|
+
let currentWidth;
|
|
28
|
+
let renderBreakpoints = {};
|
|
29
|
+
if (typeof window === "undefined") {
|
|
30
|
+
console.error("This plugin will only work as intended in the browser!");
|
|
31
|
+
}
|
|
32
|
+
let isInitialSetDone = false;
|
|
33
|
+
return {
|
|
34
|
+
afterInit: function viewsInitPlugin(context) {
|
|
35
|
+
currentWidth = getViewportWidth();
|
|
36
|
+
renderBreakpoints = context.createOptions.renderBreakpoints ?? {};
|
|
37
|
+
currentBreakpoints = calculateCurrentBreakpoints(renderBreakpoints, currentWidth);
|
|
38
|
+
if (!context.isStateReHydrated && context.initialState?.app) {
|
|
39
|
+
context.initialState.app.view = determineInitialView(currentBreakpoints, context);
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
afterCreate: function viewsCreatePlugin(context) {
|
|
43
|
+
// We cannot change the state before we have not at least rendered the dehydrated html at least once
|
|
44
|
+
// to prevent a mixed up DOM when predicted (server-side) view and client-side determined view mismatch or has changed
|
|
45
|
+
// since page load. If the app is not rehydrated but initially rendered in the client we can omit the additional render
|
|
46
|
+
// and set the view breakpoints on creation (before render).
|
|
47
|
+
if (!context.isStateReHydrated) {
|
|
48
|
+
isInitialSetDone = true;
|
|
49
|
+
context.store?.dispatch(setViewBreakpoints(currentBreakpoints));
|
|
50
|
+
}
|
|
51
|
+
window.addEventListener("resize", throttle(function handleWindowResize() {
|
|
52
|
+
const widthBefore = currentWidth;
|
|
53
|
+
currentWidth = getViewportWidth();
|
|
54
|
+
if (widthBefore === currentWidth) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const breakpointsBefore = currentBreakpoints;
|
|
58
|
+
currentBreakpoints = calculateCurrentBreakpoints(renderBreakpoints, currentWidth);
|
|
59
|
+
if ((context.hasRendered &&
|
|
60
|
+
diffBreakpoints(breakpointsBefore, currentBreakpoints).length) ||
|
|
61
|
+
diffBreakpoints(currentBreakpoints, breakpointsBefore)
|
|
62
|
+
.length) {
|
|
63
|
+
context.store?.dispatch(setViewBreakpoints(currentBreakpoints));
|
|
64
|
+
isInitialSetDone = true;
|
|
65
|
+
}
|
|
66
|
+
}, resizeThrottleWait));
|
|
67
|
+
},
|
|
68
|
+
afterRender: function (context) {
|
|
69
|
+
if (!isInitialSetDone) {
|
|
70
|
+
isInitialSetDone = true;
|
|
71
|
+
context.store?.dispatch(setViewBreakpoints(currentBreakpoints));
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function diffBreakpoints(a, b) {
|
|
77
|
+
return a.filter((x) => !b.includes(x));
|
|
78
|
+
}
|
|
79
|
+
function calculateCurrentBreakpoints(breakpoints, currentWidth) {
|
|
80
|
+
return Object.keys(breakpoints).filter((key) => {
|
|
81
|
+
const from = breakpoints[key][0];
|
|
82
|
+
const end = breakpoints[key][1];
|
|
83
|
+
return from <= currentWidth && (end === -1 || end >= currentWidth);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=views.js.map
|
|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CAAC,EAAE,kBAAkB,CAAC,CACtB,CAAC;QACH,CAAC;QACD,WAAW,EAAE,UAAU,OAAO;YAC7B,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBACvB,gBAAgB,GAAG,IAAI,CAAC;gBACxB,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,CAAC,CAAC;YACjE,CAAC;QACF,CAAC;KACD,CAAC;AACH,CAAC;AAED,SAAS,eAAe,CAAC,CAAW,EAAE,CAAW;IAChD,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AACxC,CAAC;AAED,SAAS,2BAA2B,CACnC,WAAqD,EACrD,YAAoB;IAEpB,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,GAAmB,EAAE,EAAE;QAC9D,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACjC,MAAM,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAEhC,OAAO,IAAI,IAAI,YAAY,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,GAAG,IAAI,YAAY,CAAC,CAAC;IACpE,CAAC,CAAqB,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { PluginDefinition } from "../types.ts";
|
|
2
|
+
import createAppTitlePlugin from "./browser/app-title.ts";
|
|
3
|
+
import createFeatureDeepLinkPlugin from "./browser/feature-deep-link.ts";
|
|
4
|
+
import createLocalStoragePlugin from "./browser/local-storage.ts";
|
|
5
|
+
import createNoScrollPlugin from "./browser/no-scroll.ts";
|
|
6
|
+
import createPiwikTrackFeatureSelectionEventPlugin from "./browser/piwik-track-feature-selection-event.ts";
|
|
7
|
+
import createPiwikTrackFullscreenToggleEventPlugin from "./browser/piwik-track-fullscreen-toggle-event.ts";
|
|
8
|
+
import createSearchPlugin from "./browser/search.ts";
|
|
9
|
+
import createToggleMobileViewsPlugin from "./browser/toggle-mobile-views.ts";
|
|
10
|
+
import createUserGeolocationPlugin from "./browser/user-geolocation.ts";
|
|
11
|
+
import createViewsPlugin from "./browser/views.ts";
|
|
12
|
+
import createFeatureSelectionDetailsUrlPlugin from "./common/feature-selection-details-url.ts";
|
|
13
|
+
import createOlProxyPlugin from "./common/ol-proxy.ts";
|
|
14
|
+
/**
|
|
15
|
+
* Create the default set of plugins for use in the browser IN ORDER!
|
|
16
|
+
*
|
|
17
|
+
* @param options options map for default plugins
|
|
18
|
+
* @returns sorted list of plugins
|
|
19
|
+
*/
|
|
20
|
+
export default function createDefaultPlugins(options?: {
|
|
21
|
+
olProxy?: Parameters<typeof createOlProxyPlugin>[0];
|
|
22
|
+
appTitle?: Parameters<typeof createAppTitlePlugin>[0];
|
|
23
|
+
featurePreselectDeepLink?: Parameters<typeof createFeatureDeepLinkPlugin>[0];
|
|
24
|
+
featureDeepLink?: Parameters<typeof createFeatureDeepLinkPlugin>[0];
|
|
25
|
+
featureSelectionDetailsUrl?: Parameters<typeof createFeatureSelectionDetailsUrlPlugin>[0];
|
|
26
|
+
localStoragePlugin?: Parameters<typeof createLocalStoragePlugin>[0];
|
|
27
|
+
noScroll?: Parameters<typeof createNoScrollPlugin>[0];
|
|
28
|
+
piwikTrackFeatureSelectionEvent?: Parameters<typeof createPiwikTrackFeatureSelectionEventPlugin>[0];
|
|
29
|
+
piwikTrackFullscreenToggleEvent?: Parameters<typeof createPiwikTrackFullscreenToggleEventPlugin>[0];
|
|
30
|
+
search?: Parameters<typeof createSearchPlugin>[0];
|
|
31
|
+
toggleMobileViews?: Parameters<typeof createToggleMobileViewsPlugin>[0];
|
|
32
|
+
userGeolocation?: Parameters<typeof createUserGeolocationPlugin>[0];
|
|
33
|
+
views?: Parameters<typeof createViewsPlugin>[0];
|
|
34
|
+
}): PluginDefinition[];
|
|
35
|
+
//# sourceMappingURL=browser-defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-defaults.d.ts","sourceRoot":"","sources":["../../src/js/plugins/browser-defaults.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAClD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,2CAA2C,MAAM,kDAAkD,CAAC;AAC3G,OAAO,2CAA2C,MAAM,kDAAkD,CAAC;AAE3G,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,6BAA6B,MAAM,kCAAkC,CAAC;AAC7E,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AACxE,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,sCAAsC,MAAM,2CAA2C,CAAC;AAE/F,OAAO,mBAAmB,MAAM,sBAAsB,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC3C,OAAO,GAAE;IACR,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,wBAAwB,CAAC,EAAE,UAAU,CACpC,OAAO,2BAA2B,CAClC,CAAC,CAAC,CAAC,CAAC;IACL,eAAe,CAAC,EAAE,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC;IACpE,0BAA0B,CAAC,EAAE,UAAU,CACtC,OAAO,sCAAsC,CAC7C,CAAC,CAAC,CAAC,CAAC;IACL,kBAAkB,CAAC,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;IACpE,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,+BAA+B,CAAC,EAAE,UAAU,CAC3C,OAAO,2CAA2C,CAClD,CAAC,CAAC,CAAC,CAAC;IACL,+BAA+B,CAAC,EAAE,UAAU,CAC3C,OAAO,2CAA2C,CAClD,CAAC,CAAC,CAAC,CAAC;IACL,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;IAClD,iBAAiB,CAAC,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC,CAAC,CAAC,CAAC;IACxE,eAAe,CAAC,EAAE,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC;IACpE,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3C,GACJ,gBAAgB,EAAE,CAqDpB"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { FEATURE_SELECTION_PRESELECT } from "../config/feature/selections";
|
|
2
|
+
import createAppTitlePlugin from "./browser/app-title.js";
|
|
3
|
+
import createFeatureDeepLinkPlugin from "./browser/feature-deep-link.js";
|
|
4
|
+
import createLocalStoragePlugin from "./browser/local-storage.js";
|
|
5
|
+
import createNoScrollPlugin from "./browser/no-scroll.js";
|
|
6
|
+
import createPiwikTrackFeatureSelectionEventPlugin from "./browser/piwik-track-feature-selection-event.js";
|
|
7
|
+
import createPiwikTrackFullscreenToggleEventPlugin from "./browser/piwik-track-fullscreen-toggle-event.js";
|
|
8
|
+
//import createQuitFullscreenOnRenderPlugin from './browser/quit-fullscreen-on-render';
|
|
9
|
+
import createSearchPlugin from "./browser/search.js";
|
|
10
|
+
import createToggleMobileViewsPlugin from "./browser/toggle-mobile-views.js";
|
|
11
|
+
import createUserGeolocationPlugin from "./browser/user-geolocation.js";
|
|
12
|
+
import createViewsPlugin from "./browser/views.js";
|
|
13
|
+
import createFeatureSelectionDetailsUrlPlugin from "./common/feature-selection-details-url.js";
|
|
14
|
+
import createLangPlugin from "./common/lang.js";
|
|
15
|
+
import createOlProxyPlugin from "./common/ol-proxy.js";
|
|
16
|
+
/**
|
|
17
|
+
* Create the default set of plugins for use in the browser IN ORDER!
|
|
18
|
+
*
|
|
19
|
+
* @param options options map for default plugins
|
|
20
|
+
* @returns sorted list of plugins
|
|
21
|
+
*/
|
|
22
|
+
export default function createDefaultPlugins(options = {}) {
|
|
23
|
+
return [
|
|
24
|
+
["lang", createLangPlugin()],
|
|
25
|
+
["olProxy", createOlProxyPlugin(options.olProxy)],
|
|
26
|
+
["appTitle", createAppTitlePlugin(options.appTitle)],
|
|
27
|
+
[
|
|
28
|
+
"featurePreselectDeepLink",
|
|
29
|
+
createFeatureDeepLinkPlugin({
|
|
30
|
+
getParameter: "preselect",
|
|
31
|
+
featureSelection: FEATURE_SELECTION_PRESELECT,
|
|
32
|
+
clearMissingParameters: ["feature"],
|
|
33
|
+
...(options.featurePreselectDeepLink || {}),
|
|
34
|
+
}),
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"featureDeepLink",
|
|
38
|
+
createFeatureDeepLinkPlugin(options.featureDeepLink),
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"featureSelectionDetailsUrl",
|
|
42
|
+
createFeatureSelectionDetailsUrlPlugin(options.featureSelectionDetailsUrl),
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"localStoragePlugin",
|
|
46
|
+
createLocalStoragePlugin(options.localStoragePlugin),
|
|
47
|
+
],
|
|
48
|
+
["noScroll", createNoScrollPlugin(options.noScroll)],
|
|
49
|
+
[
|
|
50
|
+
"piwikTrackFeatureSelectionEvent",
|
|
51
|
+
createPiwikTrackFeatureSelectionEventPlugin(options.piwikTrackFeatureSelectionEvent),
|
|
52
|
+
],
|
|
53
|
+
[
|
|
54
|
+
"piwikTrackFullscreenToggleEvent",
|
|
55
|
+
createPiwikTrackFullscreenToggleEventPlugin(options.piwikTrackFullscreenToggleEvent),
|
|
56
|
+
],
|
|
57
|
+
["search", createSearchPlugin(options.search)],
|
|
58
|
+
//['quitFullscreenOnRender', createQuitFullscreenOnRenderPlugin(options.quitFullscreenOnRender)],
|
|
59
|
+
[
|
|
60
|
+
"toggleMobileViews",
|
|
61
|
+
createToggleMobileViewsPlugin(options.toggleMobileViews),
|
|
62
|
+
],
|
|
63
|
+
[
|
|
64
|
+
"userGeolocation",
|
|
65
|
+
createUserGeolocationPlugin(options.userGeolocation),
|
|
66
|
+
],
|
|
67
|
+
["views", createViewsPlugin(options.views)],
|
|
68
|
+
];
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=browser-defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser-defaults.js","sourceRoot":"","sources":["../../src/js/plugins/browser-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,2BAA2B,EAAC,MAAM,8BAA8B,CAAC;AAEzE,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,2CAA2C,MAAM,kDAAkD,CAAC;AAC3G,OAAO,2CAA2C,MAAM,kDAAkD,CAAC;AAC3G,uFAAuF;AACvF,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,6BAA6B,MAAM,kCAAkC,CAAC;AAC7E,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AACxE,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,sCAAsC,MAAM,2CAA2C,CAAC;AAC/F,OAAO,gBAAgB,MAAM,kBAAkB,CAAC;AAChD,OAAO,mBAAmB,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;AACH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MapsightUiFeatureProperty, PluginInstance } from "../../types.ts";
|
|
2
|
+
/**
|
|
3
|
+
* This plugin will load the dispatch the details url on feature selection.
|
|
4
|
+
*
|
|
5
|
+
* @param {object} [options] options
|
|
6
|
+
* @param {string} [options.featureSelectionsController] name of the feature selections controller, defaults to mapsight ui default
|
|
7
|
+
* @param {string} [options.featureSelection="select"] name of the feature selection to track
|
|
8
|
+
* @param {string} [options.featureSourcesController] name of the feature sources controller, defaults to mapsight ui default
|
|
9
|
+
* @param {string} [options.featurePropertyDetailsUrl="detailsUrl"] feature property to get the details url from
|
|
10
|
+
* @returns {import('../../types').PluginInstance} plugin instance
|
|
11
|
+
*/
|
|
12
|
+
export default function createPlugin(options?: {
|
|
13
|
+
featureSelectionsController?: string;
|
|
14
|
+
featureSelection?: string;
|
|
15
|
+
featureSourcesController?: string;
|
|
16
|
+
featurePropertyDetailsUrl?: MapsightUiFeatureProperty;
|
|
17
|
+
}): PluginInstance;
|
|
18
|
+
//# sourceMappingURL=feature-selection-details-url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-selection-details-url.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/common/feature-selection-details-url.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAEX,yBAAyB,EACzB,cAAc,EACd,MAAM,gBAAgB,CAAC;AAQxB;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,OAAO,GAAE;IACR,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;CACjD,GACJ,cAAc,CA8FhB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { createFeatureSelectionSelector } from "@mapsight/core/lib/feature-selections/selectors";
|
|
2
|
+
import { findFeatureInFeatureSourcesById } from "@mapsight/core/lib/feature-sources/selectors";
|
|
3
|
+
import { getAndObserveState } from "@mapsight/lib-redux/observe-state";
|
|
4
|
+
import * as c from "../../config/constants/controllers";
|
|
5
|
+
import { FEATURE_SELECTION_SELECT } from "../../config/feature/selections";
|
|
6
|
+
import getFeatureProperty from "../../helpers/get-feature-property";
|
|
7
|
+
import { setFeatureDetailsUrl } from "../../store/actions";
|
|
8
|
+
const defaultFeatureSelectionsController = c.FEATURE_SELECTIONS;
|
|
9
|
+
const defaultFeatureSourcesController = c.FEATURE_SOURCES;
|
|
10
|
+
const defaultFeatureSelection = FEATURE_SELECTION_SELECT;
|
|
11
|
+
const defaultFeaturePropertyDetailsUrl = "detailsUrl";
|
|
12
|
+
/**
|
|
13
|
+
* This plugin will load the dispatch the details url on feature selection.
|
|
14
|
+
*
|
|
15
|
+
* @param {object} [options] options
|
|
16
|
+
* @param {string} [options.featureSelectionsController] name of the feature selections controller, defaults to mapsight ui default
|
|
17
|
+
* @param {string} [options.featureSelection="select"] name of the feature selection to track
|
|
18
|
+
* @param {string} [options.featureSourcesController] name of the feature sources controller, defaults to mapsight ui default
|
|
19
|
+
* @param {string} [options.featurePropertyDetailsUrl="detailsUrl"] feature property to get the details url from
|
|
20
|
+
* @returns {import('../../types').PluginInstance} plugin instance
|
|
21
|
+
*/
|
|
22
|
+
export default function createPlugin(options = {}) {
|
|
23
|
+
const { featureSelectionsController = defaultFeatureSelectionsController, featureSelection = defaultFeatureSelection, featureSourcesController = defaultFeatureSourcesController, featurePropertyDetailsUrl = defaultFeaturePropertyDetailsUrl, } = options;
|
|
24
|
+
const selectorSelectedFeatures = createFeatureSelectionSelector(featureSelectionsController, featureSelection);
|
|
25
|
+
return {
|
|
26
|
+
beforeRender: function setupFeatureSelection(context) {
|
|
27
|
+
const { store } = context;
|
|
28
|
+
if (!store)
|
|
29
|
+
return;
|
|
30
|
+
let unsubscribeObserveSelectedFeature;
|
|
31
|
+
const handleFeatureSelection = () => {
|
|
32
|
+
if (unsubscribeObserveSelectedFeature) {
|
|
33
|
+
unsubscribeObserveSelectedFeature();
|
|
34
|
+
unsubscribeObserveSelectedFeature = undefined;
|
|
35
|
+
}
|
|
36
|
+
const state = store.getState();
|
|
37
|
+
const selection = selectorSelectedFeatures(state);
|
|
38
|
+
const featureIds = selection?.features;
|
|
39
|
+
if (!featureIds || !featureIds.length) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
// Anmerkung: Dieser Code ignoriert den Sonderfall, dass sich die URL eines bereits selektierten POI _nach_ dem Select und nach dem ersten Load aufgrund eines Reloads ändert
|
|
43
|
+
// Der Code in fetchText sieht zudem kein Refresh der Inhalte vor. Der angezeigte Text ist also auch aus anderen Gründen potentiell veraltet.
|
|
44
|
+
// In Beiden Fällen kann der User das Aktualsiseren auslösen indem er den POI deselektiert (Feature-Details schließt) und wieder selektiert.
|
|
45
|
+
// → diese Sonderfälle werden zu Recht ignoriert. Wo man das automatische Aktualisieren braucht, schreibe man die Description direkt in die geojson.
|
|
46
|
+
const detailsUrlSelector = (state) => {
|
|
47
|
+
const selectedFeature = findFeatureInFeatureSourcesById(state[featureSourcesController], featureIds[0]);
|
|
48
|
+
if (selectedFeature) {
|
|
49
|
+
return getFeatureProperty(selectedFeature, featurePropertyDetailsUrl);
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
};
|
|
53
|
+
const detailsUrl = detailsUrlSelector(state);
|
|
54
|
+
if (detailsUrl) {
|
|
55
|
+
// im Normalfall setzt der User das Select und da ist das Feature schon geladen.
|
|
56
|
+
store.dispatch(setFeatureDetailsUrl(detailsUrl));
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
// wenn das feature anderweitig, zB. über einen Url-Parameter gesetzt wird, ist es noch nicht geladen
|
|
60
|
+
// dann und nur dann darauf warten.
|
|
61
|
+
// das betrifft aber nicht den SSR-Fall, dafür ist render-await-... zuständig.
|
|
62
|
+
const updateFeatureDetailsUrl = () => {
|
|
63
|
+
const updatedState = store.getState();
|
|
64
|
+
const updatedSelection = selectorSelectedFeatures(updatedState);
|
|
65
|
+
const updatedFeatureIds = updatedSelection?.features ?? [];
|
|
66
|
+
const updatedDetailsUrl = detailsUrlSelector(store.getState());
|
|
67
|
+
if (updatedDetailsUrl &&
|
|
68
|
+
featureIds[0] === updatedFeatureIds[0] // entprellen, falls updateFeatureDetailsUrl zB. beim unsubscribe aufgerufen wird und inzwischen ein anderer poi selektiert ist
|
|
69
|
+
) {
|
|
70
|
+
store.dispatch(setFeatureDetailsUrl(updatedDetailsUrl));
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
unsubscribeObserveSelectedFeature = getAndObserveState(store, detailsUrlSelector, updateFeatureDetailsUrl);
|
|
74
|
+
};
|
|
75
|
+
getAndObserveState(store, selectorSelectedFeatures, handleFeatureSelection);
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=feature-selection-details-url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-selection-details-url.js","sourceRoot":"","sources":["../../../src/js/plugins/common/feature-selection-details-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,iDAAiD,CAAC;AAC/F,OAAO,EAAC,+BAA+B,EAAC,MAAM,8CAA8C,CAAC;AAI7F,OAAO,EAAC,kBAAkB,EAAC,MAAM,mCAAmC,CAAC;AAErE,OAAO,KAAK,CAAC,MAAM,oCAAoC,CAAC;AACxD,OAAO,EAAC,wBAAwB,EAAC,MAAM,iCAAiC,CAAC;AACzE,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AAOzD,MAAM,kCAAkC,GAAG,CAAC,CAAC,kBAAkB,CAAC;AAChE,MAAM,+BAA+B,GAAG,CAAC,CAAC,eAAe,CAAC;AAC1D,MAA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,CACxB,eAAoC,EACpC,yBAAyB,CACR,CAAC;oBACpB,CAAC;oBAED,OAAO,IAAI,CAAC;gBACb,CAAC,CAAC;gBACF,MAAM,UAAU,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;gBAC7C,IAAI,UAAU,EAAE,CAAC;oBAChB,gFAAgF;oBAChF,KAAK,CAAC,QAAQ,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC;oBACjD,OAAO;gBACR,CAAC;gBAED,qGAAqG;gBACrG,mCAAmC;gBACnC,8EAA8E;gBAE9E,MAAM,uBAAuB,GAAG,GAAG,EAAE;oBACpC,MAAM,YAAY,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;oBACtC,MAAM,gBAAgB,GACrB,wBAAwB,CAAC,YAAY,CAAC,CAAC;oBACxC,MAAM,iBAAiB,GAAG,gBAAgB,EAAE,QAAQ,IAAI,EAAE,CAAC;oBAC3D,MAAM,iBAAiB,GAAG,kBAAkB,CAC3C,KAAK,CAAC,QAAQ,EAAE,CAChB,CAAC;oBAEF,IACC,iBAAiB;wBACjB,UAAU,CAAC,CAAC,CAAC,KAAK,iBAAiB,CAAC,CAAC,CAAC,CAAC,+HAA+H;sBACrK,CAAC;wBACF,KAAK,CAAC,QAAQ,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,CAAC;oBACzD,CAAC;gBACF,CAAC,CAAC;gBAEF,iCAAiC,GAAG,kBAAkB,CACrD,KAAK,EACL,kBAAkB,EAClB,uBAAuB,CACvB,CAAC;YACH,CAAC,CAAC;YAEF,kBAAkB,CACjB,KAAK,EACL,wBAAwB,EACxB,sBAAsB,CACtB,CAAC;QACH,CAAC;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PluginInstance } from "../../types";
|
|
2
|
+
/**
|
|
3
|
+
* This plugin will apply a lang from the embedOptions to i18n
|
|
4
|
+
*
|
|
5
|
+
* @param [_options] options
|
|
6
|
+
* @returns plugin instance
|
|
7
|
+
*/
|
|
8
|
+
export default function createLangPlugin(_options?: {}): PluginInstance;
|
|
9
|
+
//# sourceMappingURL=lang.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lang.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/common/lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,QAAQ,KAAK,GAAG,cAAc,CAOtE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { setDocumentLanguage } from "../../helpers/i18n";
|
|
2
|
+
/**
|
|
3
|
+
* This plugin will apply a lang from the embedOptions to i18n
|
|
4
|
+
*
|
|
5
|
+
* @param [_options] options
|
|
6
|
+
* @returns plugin instance
|
|
7
|
+
*/
|
|
8
|
+
export default function createLangPlugin(_options = {}) {
|
|
9
|
+
return {
|
|
10
|
+
beforeRender: function pluginLangBeforeRender(context) {
|
|
11
|
+
const { lang } = context.createOptions;
|
|
12
|
+
if (lang)
|
|
13
|
+
setDocumentLanguage(lang);
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lang.js","sourceRoot":"","sources":["../../../src/js/plugins/common/lang.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAGvD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,QAAQ,GAAG,EAAE;IACrD,OAAO;QACN,YAAY,EAAE,SAAS,sBAAsB,CAAC,OAAO;YACpD,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,CAAC,aAAa,CAAC;YACrC,IAAI,IAAI;gBAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrC,CAAC;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Definition } from "@mapsight/core/ol-proxy";
|
|
2
|
+
import type { PluginInstance } from "../../types.ts";
|
|
3
|
+
export declare const createActivateAction: (mapController: string, name: string) => import("@mapsight/core/types").Action;
|
|
4
|
+
export declare const createDeactivateAction: (mapController: string, name: string) => import("@mapsight/core/types").Action;
|
|
5
|
+
/**
|
|
6
|
+
* This plugin will allow drawing a link maker (to be used with the appropriate component)
|
|
7
|
+
* and/or display such a measurement.
|
|
8
|
+
*
|
|
9
|
+
* @param {object} [options] options
|
|
10
|
+
* @param [options.name="measureDistance"] name name of the editor (must be unique per mapsight instance)
|
|
11
|
+
* @param [options.mapControllerName="map"] map controller name
|
|
12
|
+
* @param [options.featureSourcesControllerName="featureSources"] feature sources controller name
|
|
13
|
+
* @param [options.featureSelectionsControllerName="featureSelections"] feature selections controller name
|
|
14
|
+
* @param [options.enableDrawing=true] enable drawing
|
|
15
|
+
* @param [options.displayStyle="features"] style for finished draw
|
|
16
|
+
* @param [options.drawStyle="drawMeasure"] style while drawing
|
|
17
|
+
* @param [options.drawInteraction] draw interaction
|
|
18
|
+
* @returns {import('../../types').PluginInstance} plugin
|
|
19
|
+
*/
|
|
20
|
+
export default function createMeasureDistancePlugin(options?: {
|
|
21
|
+
name?: string;
|
|
22
|
+
enableDrawing?: boolean;
|
|
23
|
+
mapControllerName?: string;
|
|
24
|
+
featureSourcesControllerName?: string;
|
|
25
|
+
featureSelectionsControllerName?: string;
|
|
26
|
+
displayStyle?: string;
|
|
27
|
+
drawStyle?: string;
|
|
28
|
+
drawInteraction?: Definition | null;
|
|
29
|
+
}): PluginInstance;
|
|
30
|
+
//# sourceMappingURL=measure-distance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measure-distance.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/common/measure-distance.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAYxD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAEnD,eAAO,MAAM,oBAAoB,GAAI,eAAe,MAAM,EAAE,MAAM,MAAM,0CACV,CAAC;AAC/D,eAAO,MAAM,sBAAsB,GAAI,eAAe,MAAM,EAAE,MAAM,MAAM,0CACV,CAAC;AA8HjE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAClD,OAAO,GAAE;IACR,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAC/B,GACJ,cAAc,CAwChB"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { createSelector } from "reselect";
|
|
2
|
+
import { mergeAll } from "@mapsight/core/lib/base/actions";
|
|
3
|
+
import { createFilteredFeatureSourceSelector } from "@mapsight/core/lib/feature-sources/selectors";
|
|
4
|
+
import { activateInteraction, deactivateInteraction, } from "@mapsight/core/lib/map/actions";
|
|
5
|
+
import { DEFAULT_DISPLAY_STYLE, DEFAULT_PROJECTION, } from "@mapsight/core/mixins/EditorMixin";
|
|
6
|
+
import { di } from "@mapsight/core/ol-proxy";
|
|
7
|
+
import DrawInteraction from "@mapsight/core/ol-proxy/definitions/interaction/DrawInteraction";
|
|
8
|
+
import { observeState } from "@mapsight/lib-redux/observe-state";
|
|
9
|
+
import { FEATURE_SELECTIONS, FEATURE_SOURCES, MAP, } from "../../config/constants/controllers";
|
|
10
|
+
import { getDictionary } from "../../helpers/i18n";
|
|
11
|
+
export const createActivateAction = (mapController, name) => activateInteraction(mapController, `${name}_drawInteraction`);
|
|
12
|
+
export const createDeactivateAction = (mapController, name) => deactivateInteraction(mapController, `${name}_drawInteraction`);
|
|
13
|
+
/**
|
|
14
|
+
* @param options options
|
|
15
|
+
* @param options.store store
|
|
16
|
+
* @param options.name name name of the editor (must be unique per mapsight instance)
|
|
17
|
+
* @param options.mapControllerName map controller name
|
|
18
|
+
* @param options.featureSourcesControllerName feature sources controller name
|
|
19
|
+
* @param options.featureSelectionsControllerName feature selections controller name
|
|
20
|
+
* @param options.displayStyle style for finished draw
|
|
21
|
+
* @param options.drawStyle style while drawing
|
|
22
|
+
*/
|
|
23
|
+
function setupDrawInteraction({ store, name, featureSourcesControllerName, featureSelectionsControllerName, mapControllerName, drawStyle, displayStyle, }) {
|
|
24
|
+
const fSId = `${name}_featureSource`;
|
|
25
|
+
const drawLayerId = `${name}_drawLayer`;
|
|
26
|
+
const interactionId = `${name}_drawInteraction`;
|
|
27
|
+
const vFS = {
|
|
28
|
+
type: "VectorFeatureSource",
|
|
29
|
+
options: {
|
|
30
|
+
projection: DEFAULT_PROJECTION,
|
|
31
|
+
featureSourceId: fSId,
|
|
32
|
+
featureSourcesControllerName: featureSourcesControllerName,
|
|
33
|
+
featureSelectionsControllerName: featureSelectionsControllerName,
|
|
34
|
+
canAnimate: false,
|
|
35
|
+
canCluster: false,
|
|
36
|
+
featureSelections: [],
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
store.dispatch(mergeAll({
|
|
40
|
+
[mapControllerName]: {
|
|
41
|
+
interactions: {
|
|
42
|
+
[interactionId]: {
|
|
43
|
+
type: "DrawInteraction",
|
|
44
|
+
options: {
|
|
45
|
+
active: false,
|
|
46
|
+
type: "LineString",
|
|
47
|
+
style: drawStyle,
|
|
48
|
+
replacePrevious: true,
|
|
49
|
+
clearOnStart: true,
|
|
50
|
+
source: vFS,
|
|
51
|
+
stopClick: true,
|
|
52
|
+
measure: {
|
|
53
|
+
active: true,
|
|
54
|
+
keepLabel: true,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
layers: {
|
|
60
|
+
[drawLayerId]: {
|
|
61
|
+
type: "VectorLayer",
|
|
62
|
+
options: {
|
|
63
|
+
visible: true,
|
|
64
|
+
style: displayStyle,
|
|
65
|
+
renderBuffer: 200,
|
|
66
|
+
selections: [],
|
|
67
|
+
source: vFS,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
[featureSourcesControllerName]: {
|
|
73
|
+
[fSId]: {
|
|
74
|
+
enableHistory: false,
|
|
75
|
+
data: {},
|
|
76
|
+
isLoading: true,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
}));
|
|
80
|
+
const featuresSelector = createSelector(createFilteredFeatureSourceSelector(featureSourcesControllerName, fSId, mapControllerName), (featureSourceState) => featureSourceState?.data?.features);
|
|
81
|
+
const deactivate = createDeactivateAction(mapControllerName, name);
|
|
82
|
+
observeState(store, featuresSelector, (createdFeatures) => {
|
|
83
|
+
if (createdFeatures?.[0]?.geometry?.type === "Point") {
|
|
84
|
+
store.dispatch(deactivate);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
const translations = {
|
|
89
|
+
de: {
|
|
90
|
+
"ui.measure-distance.title": "Strecke messen",
|
|
91
|
+
"ui.measure-distance.instructions": "Klicken Sie auf die Karte um Punkte hinzuzufügen. Ein Doppelklick schließt die Strecke ab.",
|
|
92
|
+
"ui.measure-distance.instructions-done": "Klicken Sie auf die Karte um eine neue Strecke zu messen.",
|
|
93
|
+
"ui.measure-distance.measurement": "Streckenlänge",
|
|
94
|
+
},
|
|
95
|
+
en: {
|
|
96
|
+
"ui.measure-distance.title": "Measure distance",
|
|
97
|
+
"ui.measure-distance.instructions": "Click on the map to add points. Double click to end the line.",
|
|
98
|
+
"ui.measure-distance.instructions-done": "Click on the map to start measuring a new line.",
|
|
99
|
+
"ui.measure-distance.measurement": "Distance",
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* This plugin will allow drawing a link maker (to be used with the appropriate component)
|
|
104
|
+
* and/or display such a measurement.
|
|
105
|
+
*
|
|
106
|
+
* @param {object} [options] options
|
|
107
|
+
* @param [options.name="measureDistance"] name name of the editor (must be unique per mapsight instance)
|
|
108
|
+
* @param [options.mapControllerName="map"] map controller name
|
|
109
|
+
* @param [options.featureSourcesControllerName="featureSources"] feature sources controller name
|
|
110
|
+
* @param [options.featureSelectionsControllerName="featureSelections"] feature selections controller name
|
|
111
|
+
* @param [options.enableDrawing=true] enable drawing
|
|
112
|
+
* @param [options.displayStyle="features"] style for finished draw
|
|
113
|
+
* @param [options.drawStyle="drawMeasure"] style while drawing
|
|
114
|
+
* @param [options.drawInteraction] draw interaction
|
|
115
|
+
* @returns {import('../../types').PluginInstance} plugin
|
|
116
|
+
*/
|
|
117
|
+
export default function createMeasureDistancePlugin(options = {}) {
|
|
118
|
+
const { name = "measureDistance", enableDrawing = true, mapControllerName = MAP, featureSourcesControllerName = FEATURE_SOURCES, featureSelectionsControllerName = FEATURE_SELECTIONS, displayStyle = DEFAULT_DISPLAY_STYLE, drawStyle = "drawMeasure", drawInteraction = DrawInteraction, } = options;
|
|
119
|
+
const dict = getDictionary();
|
|
120
|
+
Object.entries(translations).forEach(([key, obj]) => {
|
|
121
|
+
Object.assign((dict[key] ??= {}), obj);
|
|
122
|
+
});
|
|
123
|
+
return {
|
|
124
|
+
afterCreate: function measureDistancePlugin({ store }) {
|
|
125
|
+
if (!enableDrawing || !store) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
if (drawInteraction) {
|
|
129
|
+
di.injectDefinitions([drawInteraction]);
|
|
130
|
+
}
|
|
131
|
+
setupDrawInteraction({
|
|
132
|
+
name: name,
|
|
133
|
+
store: store,
|
|
134
|
+
mapControllerName: mapControllerName,
|
|
135
|
+
featureSourcesControllerName: featureSourcesControllerName,
|
|
136
|
+
featureSelectionsControllerName: featureSelectionsControllerName,
|
|
137
|
+
drawStyle: drawStyle,
|
|
138
|
+
displayStyle: displayStyle,
|
|
139
|
+
});
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=measure-distance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measure-distance.js","sourceRoot":"","sources":["../../../src/js/plugins/common/measure-distance.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAC;AAExC,OAAO,EAAC,QAAQ,EAAC,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAC,mCAAmC,EAAC,MAAM,8CAA8C,CAAC;AACjG,OAAO,EACN,mBAAmB,EACnB,qBAAqB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACN,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAC,EAAE,EAAC,MAAM,yBAAyB,CAAC;AAC3C,OAAO,eAAe,MAAM,iEAAiE,CAAC;AAE9F,OAAO,EAAC,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAE/D,OAAO,EACN,kBAAkB,EAClB,eAAe,EACf,GAAG,GACH,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,aAAqB,EAAE,IAAY,EAAE,EAAE,CAC3E,mBAAmB,CAAC,aAAa,EAAE,GAAG,IAAI,kBAAkB,CAAC,CAAC;AAC/D,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,aAAqB,EAAE,IAAY,EAAE,EAAE,CAC7E,qBAAqB,CAAC,aAAa,EAAE,GAAG,IAAI,kBAAkB,CAAC,CAAC;AAEjE;;;;;;;;;GASG;AACH,SAAS,oBAAoB,CAAC,EAC7B,KAAK,EACL,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G,OAAO,CAAC;IAEZ,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAE7B,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE;QACnD,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,OAAO;QACN,WAAW,EAAE,SAAS,qBAAqB,CAAC,EAAC,KAAK,EAAC;YAClD,IAAI,CAAC,aAAa,IAAI,CAAC,KAAK,EAAE,CAAC;gBAC9B,OAAO;YACR,CAAC;YAED,IAAI,eAAe,EAAE,CAAC;gBACrB,EAAE,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;YACzC,CAAC;YAED,oBAAoB,CAAC;gBACpB,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,KAAK;gBACZ,iBAAiB,EAAE,iBAAiB;gBACpC,4BAA4B,EAAE,4BAA4B;gBAC1D,+BAA+B,EAC9B,+BAA+B;gBAChC,SAAS,EAAE,SAAS;gBACpB,YAAY,EAAE,YAAY;aAC1B,CAAC,CAAC;QACJ,CAAC;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Definition } from "@mapsight/core/ol-proxy";
|
|
2
|
+
import type { PluginInstance } from "../../types.ts";
|
|
3
|
+
/**
|
|
4
|
+
* This plugin will inject the ol-proxy dependencies required by default.
|
|
5
|
+
*
|
|
6
|
+
* @param {object} [options] options
|
|
7
|
+
* @param {Array<import('@mapsight/core/ol-proxy').Definition<any>>} [options.dependencies={}] add or override dependencies
|
|
8
|
+
* @returns {import('../../types').PluginInstance} plugin instance
|
|
9
|
+
*/
|
|
10
|
+
export default function createPlugin({ dependencies, }?: {
|
|
11
|
+
dependencies?: Definition[] | Record<string, Definition>;
|
|
12
|
+
}): PluginInstance;
|
|
13
|
+
//# sourceMappingURL=ol-proxy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ol-proxy.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/common/ol-proxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAkBxD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACpC,YAAiB,GACjB,GAAE;IACF,YAAY,CAAC,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACpD,GAAG,cAAc,CAoCtB"}
|