@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,25 @@
|
|
|
1
|
+
import { setAppTitle } from "../../store/actions";
|
|
2
|
+
const defaultRendererPropName = "title";
|
|
3
|
+
/**
|
|
4
|
+
* This plugin will apply a title on render passed as a prop to the renderer.
|
|
5
|
+
*
|
|
6
|
+
* @param [options] options currently not used
|
|
7
|
+
* @param [options.rendererPropName="title"] title property name passed to the renderer
|
|
8
|
+
* @returns plugin instance
|
|
9
|
+
*/
|
|
10
|
+
export default function createPlugin(options = {}) {
|
|
11
|
+
const { rendererPropName = defaultRendererPropName } = options;
|
|
12
|
+
return {
|
|
13
|
+
beforeRender: function appTitleRenderPlugin(context) {
|
|
14
|
+
const { store, rendererProps } = context;
|
|
15
|
+
if (!store || !rendererProps) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (rendererPropName in rendererProps &&
|
|
19
|
+
rendererProps[rendererPropName]) {
|
|
20
|
+
store.dispatch(setAppTitle(rendererProps[rendererPropName]));
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=app-title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-title.js","sourceRoot":"","sources":["../../../src/js/plugins/browser/app-title.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAC;AAGhD,MAAM,uBAAuB,GAAG,OAAO,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,UAEI,EAAE;IAEN,MAAM,EAAC,gBAAgB,GAAG,uBAAuB,EAAC,GAAG,OAAO,CAAC;IAE7D,OAAO;QACN,YAAY,EAAE,SAAS,oBAAoB,CAAC,OAAO;YAClD,MAAM,EAAC,KAAK,EAAE,aAAa,EAAC,GAAG,OAAO,CAAC;YAEvC,IAAI,CAAC,KAAK,IAAI,CAAC,aAAa,EAAE,CAAC;gBAC9B,OAAO;YACR,CAAC;YAED,IACC,gBAAgB,IAAI,aAAa;gBACjC,aAAa,CAAC,gBAAgB,CAAC,EAC9B,CAAC;gBACF,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;YAC9D,CAAC;QACF,CAAC;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PluginInstance } from "../../types";
|
|
2
|
+
/**
|
|
3
|
+
* This plugin will make debug info available in a global variable.
|
|
4
|
+
*/
|
|
5
|
+
export default function createPlugin(options?: {
|
|
6
|
+
globalVariableName?: string;
|
|
7
|
+
}): PluginInstance;
|
|
8
|
+
//# sourceMappingURL=debug.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/debug.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAIhD;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,OAAO,GAAE;IACR,kBAAkB,CAAC,EAAE,MAAM,CAAC;CACvB,GACJ,cAAc,CAsBhB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { getIdForLayer } from "@mapsight/core/lib/map/lib/tagLayer";
|
|
2
|
+
const defaultGlobalVariableName = "MSUI";
|
|
3
|
+
/**
|
|
4
|
+
* This plugin will make debug info available in a global variable.
|
|
5
|
+
*/
|
|
6
|
+
export default function createPlugin(options = {}) {
|
|
7
|
+
const { globalVariableName = defaultGlobalVariableName } = options;
|
|
8
|
+
return {
|
|
9
|
+
afterCreate: (ctx) => {
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
window[globalVariableName] = {
|
|
13
|
+
context: ctx,
|
|
14
|
+
getLayerObjects() {
|
|
15
|
+
const layerMap = {};
|
|
16
|
+
(ctx.controllers?.map)
|
|
17
|
+
.getMap()
|
|
18
|
+
?.getAllLayers()
|
|
19
|
+
.forEach((l, i) => {
|
|
20
|
+
layerMap[getIdForLayer(l) ?? "unnamed_" + i] = l;
|
|
21
|
+
});
|
|
22
|
+
return layerMap;
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=debug.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../src/js/plugins/browser/debug.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,qCAAqC,CAAC;AAIlE,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,UAEI,EAAE;IAEN,MAAM,EAAC,kBAAkB,GAAG,yBAAyB,EAAC,GAAG,OAAO,CAAC;IAEjE,OAAO;QACN,WAAW,EAAE,CAAC,GAAG,EAAE,EAAE;YACpB,6DAA6D;YAC7D,aAAa;YACb,MAAM,CAAC,kBAAkB,CAAC,GAAG;gBAC5B,OAAO,EAAE,GAAG;gBACZ,eAAe;oBACd,MAAM,QAAQ,GAAG,EAAE,CAAC;oBACpB,CAAC,GAAG,CAAC,WAAW,EAAE,GAAqB,CAAA;yBACrC,MAAM,EAAE;wBACT,EAAE,YAAY,EAAE;yBACf,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;wBACjB,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,UAAU,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;oBAClD,CAAC,CAAC,CAAC;oBACJ,OAAO,QAAQ,CAAC;gBACjB,CAAC;aACD,CAAC;QACH,CAAC;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { PluginInstance } from "../../types.ts";
|
|
2
|
+
/**
|
|
3
|
+
* This plugin will select the feature identified by the defined get parameter and optionally remove parameters from the
|
|
4
|
+
* window.location using the history API.
|
|
5
|
+
*
|
|
6
|
+
* @param [options] options
|
|
7
|
+
* @param [options.featureSelectionsController] name of the feature selections controller, defaults to mapsight ui default
|
|
8
|
+
* @param [options.featureSelection="select"] name of the feature selection to track
|
|
9
|
+
* @param [options.getParameter="feature"] name get parameter identifying the feature
|
|
10
|
+
* @param [options.setMapOnlyViewInMobile=true] will set MapOnly view on mobile if a feature has been linked
|
|
11
|
+
* @param [options.autoRemoveParameters] list of get parameters to remove once the feature
|
|
12
|
+
* has been selected, defaults to ["feature", "cHash"]. Pass false to disable.
|
|
13
|
+
* @param [options.clearMissingParameters] if set to true or an array clear if getParameter and the mentioned
|
|
14
|
+
* parameters are missing. don't clear if getParameter is missing, but one of the
|
|
15
|
+
* mentioned parameters is there. we keep this to be safe in race condition
|
|
16
|
+
* where ?feature is set but ?preselect is not where we want to keep the implicit
|
|
17
|
+
* preselect of the feature parameter
|
|
18
|
+
*
|
|
19
|
+
* @returns plugin instance
|
|
20
|
+
*/
|
|
21
|
+
export default function createPlugin(options?: {
|
|
22
|
+
featureSelectionsController?: string;
|
|
23
|
+
featureSelection?: string;
|
|
24
|
+
getParameter?: string;
|
|
25
|
+
setMapOnlyViewInMobile?: boolean;
|
|
26
|
+
autoRemoveParameters?: string[] | false;
|
|
27
|
+
clearMissingParameters?: string[] | false;
|
|
28
|
+
}): PluginInstance;
|
|
29
|
+
//# sourceMappingURL=feature-deep-link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-deep-link.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/feature-deep-link.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAC,cAAc,EAAU,MAAM,gBAAgB,CAAC;AAsD5D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,OAAO,GAAE;IACR,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,oBAAoB,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACxC,sBAAsB,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;CACrC,GACJ,cAAc,CAyHhB"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { deselectAll, selectExclusively, } from "@mapsight/core/lib/feature-selections/actions";
|
|
2
|
+
import { createFeatureSelectionSelector } from "@mapsight/core/lib/feature-selections/selectors";
|
|
3
|
+
import getQueryStringParameter from "@mapsight/lib-js/string/get-query-string-parameter";
|
|
4
|
+
import removeQueryStringParameter from "@mapsight/lib-js/string/remove-query-string-parameter";
|
|
5
|
+
import { observeStateOnce } from "@mapsight/lib-redux/observe-state";
|
|
6
|
+
import { VIEW_MAP_ONLY } from "../../config/constants/app";
|
|
7
|
+
import * as c from "../../config/constants/controllers";
|
|
8
|
+
import { FEATURE_SELECTION_SELECT } from "../../config/feature/selections";
|
|
9
|
+
import { setView } from "../../store/actions";
|
|
10
|
+
import { isViewMobile, viewSelector } from "../../store/selectors";
|
|
11
|
+
const defaultFeatureSelectionsController = c.FEATURE_SELECTIONS;
|
|
12
|
+
const defaultFeatureSelection = FEATURE_SELECTION_SELECT;
|
|
13
|
+
const defaultGetParameter = "feature";
|
|
14
|
+
const defaultAutoRemoveParameters = [defaultGetParameter, "cHash"];
|
|
15
|
+
function selectFeature(store, featureSelectionsController, featureSelection, featureId, setMapOnlyViewInMobile) {
|
|
16
|
+
store.dispatch(selectExclusively(featureSelectionsController, featureSelection, featureId));
|
|
17
|
+
if (setMapOnlyViewInMobile &&
|
|
18
|
+
isViewMobile(viewSelector(store.getState()))) {
|
|
19
|
+
store.dispatch(setView(VIEW_MAP_ONLY));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Hooks into global window.history[fn] to react to
|
|
24
|
+
* history state changes from the app (as opposed to `window.onpopstate` which
|
|
25
|
+
* triggers when a browser ui actions causes a history state change).
|
|
26
|
+
*
|
|
27
|
+
* @param fn function name to patch (e.g. "pushState" or "replaceState")
|
|
28
|
+
* @param callback will get called _after_ that function has been called
|
|
29
|
+
*/
|
|
30
|
+
function patchWindowHistoryFunction(fn, callback) {
|
|
31
|
+
const originalFn = window.history[fn];
|
|
32
|
+
window.history[fn] = (state, ...rest) => {
|
|
33
|
+
const returnValue = originalFn.apply(window.history, [
|
|
34
|
+
state,
|
|
35
|
+
...rest,
|
|
36
|
+
]);
|
|
37
|
+
callback(state);
|
|
38
|
+
return returnValue;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* This plugin will select the feature identified by the defined get parameter and optionally remove parameters from the
|
|
43
|
+
* window.location using the history API.
|
|
44
|
+
*
|
|
45
|
+
* @param [options] options
|
|
46
|
+
* @param [options.featureSelectionsController] name of the feature selections controller, defaults to mapsight ui default
|
|
47
|
+
* @param [options.featureSelection="select"] name of the feature selection to track
|
|
48
|
+
* @param [options.getParameter="feature"] name get parameter identifying the feature
|
|
49
|
+
* @param [options.setMapOnlyViewInMobile=true] will set MapOnly view on mobile if a feature has been linked
|
|
50
|
+
* @param [options.autoRemoveParameters] list of get parameters to remove once the feature
|
|
51
|
+
* has been selected, defaults to ["feature", "cHash"]. Pass false to disable.
|
|
52
|
+
* @param [options.clearMissingParameters] if set to true or an array clear if getParameter and the mentioned
|
|
53
|
+
* parameters are missing. don't clear if getParameter is missing, but one of the
|
|
54
|
+
* mentioned parameters is there. we keep this to be safe in race condition
|
|
55
|
+
* where ?feature is set but ?preselect is not where we want to keep the implicit
|
|
56
|
+
* preselect of the feature parameter
|
|
57
|
+
*
|
|
58
|
+
* @returns plugin instance
|
|
59
|
+
*/
|
|
60
|
+
export default function createPlugin(options = {}) {
|
|
61
|
+
const { featureSelectionsController = defaultFeatureSelectionsController, featureSelection = defaultFeatureSelection, getParameter = defaultGetParameter, autoRemoveParameters = defaultAutoRemoveParameters, setMapOnlyViewInMobile = true, clearMissingParameters = null, } = options;
|
|
62
|
+
const selectorSelectedFeatures = createFeatureSelectionSelector(featureSelectionsController, featureSelection);
|
|
63
|
+
let isHandled = false;
|
|
64
|
+
return {
|
|
65
|
+
afterRender: function handleFeatureDeepLink(context) {
|
|
66
|
+
if (isHandled) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
isHandled = true;
|
|
70
|
+
const { store } = context;
|
|
71
|
+
if (!store) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
// We always do this action even if we should already have done that
|
|
75
|
+
// by re-hydrating the state as it may not have had the dynamic get parameter passed along
|
|
76
|
+
const featureId = getQueryStringParameter(window.location.search, getParameter);
|
|
77
|
+
if (featureId) {
|
|
78
|
+
selectFeature(store, featureSelectionsController, featureSelection, featureId, setMapOnlyViewInMobile);
|
|
79
|
+
if (autoRemoveParameters && autoRemoveParameters.length) {
|
|
80
|
+
// if we can, remove initial feature id from url
|
|
81
|
+
// when the selection changes (e.g. panel is closed/different feature is selected)
|
|
82
|
+
observeStateOnce(store, selectorSelectedFeatures, () => {
|
|
83
|
+
let newUrl = window.location.href;
|
|
84
|
+
autoRemoveParameters.forEach((key) => {
|
|
85
|
+
newUrl = removeQueryStringParameter(newUrl, key);
|
|
86
|
+
});
|
|
87
|
+
window.history.pushState(null, window.document.title, newUrl);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
if (clearMissingParameters) {
|
|
93
|
+
let found = null;
|
|
94
|
+
while (!found && clearMissingParameters[0]) {
|
|
95
|
+
found = getQueryStringParameter(window.location.search, clearMissingParameters.shift());
|
|
96
|
+
}
|
|
97
|
+
if (!found) {
|
|
98
|
+
store.dispatch(deselectAll(featureSelectionsController, featureSelection));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
// handle select via state at relaod
|
|
102
|
+
if (window.history.state &&
|
|
103
|
+
"featureId" in window.history.state &&
|
|
104
|
+
window.history.state.featureId) {
|
|
105
|
+
selectFeature(store, featureSelectionsController, featureSelection, window.history.state.featureId, setMapOnlyViewInMobile);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const handleHistoryStateChange = (state) => {
|
|
109
|
+
if (state && "featureId" in state) {
|
|
110
|
+
if (state.featureId) {
|
|
111
|
+
selectFeature(store, featureSelectionsController, featureSelection, state.featureId, setMapOnlyViewInMobile);
|
|
112
|
+
}
|
|
113
|
+
else if (state?.featureId === null) {
|
|
114
|
+
// test for null to inhibit action if featureId is simply omitted
|
|
115
|
+
store.dispatch(deselectAll(featureSelectionsController, featureSelection));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
patchWindowHistoryFunction("pushState", handleHistoryStateChange);
|
|
120
|
+
patchWindowHistoryFunction("replaceState", handleHistoryStateChange);
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=feature-deep-link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-deep-link.js","sourceRoot":"","sources":["../../../src/js/plugins/browser/feature-deep-link.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,WAAW,EACX,iBAAiB,GACjB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAC,8BAA8B,EAAC,MAAM,iDAAiD,CAAC;AAG/F,OAAO,uBAAuB,MAAM,oDAAoD,CAAC;AACzF,OAAO,0BAA0B,MAAM,uDAAuD,CAAC;AAC/F,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,CAAC,MAAM,oCAAoC,CAAC;AACxD,OAAO,EAAC,wBAAwB,EAAC,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAE,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAGjE,MAAM,kCAAkC,GAAG,CAAC,CAAC,kBAAkB,CAAC;AAChE,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AACzD,MAAM,mBAAmB,GAAG,SAAS,CAAC;AACtC,MAAM,2BAA2B,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;AAEnE,SAAS,aAAa,CACrB,KAAY,EACZ,2BAAmC,EACnC,gBAAwB,EACxB,SAAoB,EACpB,sBAA+B;IAE/B,KAAK,CAAC,QAAQ,CACb,iBAAiB,CAChB,2BAA2B,EAC3B,gBAAgB,EAChB,SAAS,CACT,CACD,CAAC;IAEF,IACC,sBAAsB;QACtB,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,EAAoB,CAAC,CAAC,EAC7D,CAAC;QACF,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;IACxC,CAAC;AACF,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,0BAA0B,CAClC,EAAgC,EAChC,QAAkC;IAElC,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEtC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE;QACvC,MAAM,WAAW,GAAY,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE;YAC7D,KAAK;YACL,GAAG,IAAI;SACP,CAAC,CAAC;QACH,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChB,OAAO,WAAW,CAAC;IACpB,CAAC,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,UAOI,EAAE;IAEN,MAAM,EACL,2BAA2B,GAAG,kCAAkC,EAChE,gBAAgB,GAAG,uBAAuB,EAC1C,YAAY,GAAG,mBAAmB,EAClC,oBAAoB,GAAG,2BAA2B,EAClD,sBAAsB,GAAG,IAAI,EAC7B,sBAAsB,GAAG,IAAI,GAC7B,GAAG,OAAO,CAAC;IACZ,MAAM,wBAAwB,GAAG,8BAA8B,CAC9D,2BAA2B,EAC3B,gBAAgB,CAChB,CAAC;IAEF,IAAI,SAAS,GAAG,KAAK,CAAC;IACtB,OAAO;QACN,WAAW,EAAE,SAAS,qBAAqB,CAAC,OAAO;YAClD,IAAI,SAAS,EAAE,CAAC;gBACf,OAAO;YACR,CAAC;YAED,SAAS,GAAG,IAAI,CAAC;YAEjB,MAAM,EAAC,KAAK,EAAC,GAAG,OAAO,CAAC;YACxB,IAAI,CAAC,KAAK,EAAE,CAAC;gBACZ,OAAO;YACR,CAAC;YAED,oEAAoE;YACpE,0FAA0F;YAC1F,MAAM,SAAS,GAAG,uBAAuB,CACxC,MAAM,CAAC,QAAQ,CAAC,MAAM,EACtB,YAAY,CACZ,CAAC;YACF,IAAI,SAAS,EAAE,CAAC;gBACf,aAAa,CACZ,KAAK,EACL,2BAA2B,EAC3B,gBAAgB,EAChB,SAAS,EACT,sBAAsB,CACtB,CAAC;gBAEF,IAAI,oBAAoB,IAAI,oBAAoB,CAAC,MAAM,EAAE,CAAC;oBACzD,gDAAgD;oBAChD,kFAAkF;oBAClF,gBAAgB,CAAC,KAAK,EAAE,wBAAwB,EAAE,GAAG,EAAE;wBACtD,IAAI,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;wBAClC,oBAAoB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;4BACpC,MAAM,GAAG,0BAA0B,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;wBAClD,CAAC,CAAC,CAAC;wBACH,MAAM,CAAC,OAAO,CAAC,SAAS,CACvB,IAAI,EACJ,MAAM,CAAC,QAAQ,CAAC,KAAK,EACrB,MAAM,CACN,CAAC;oBACH,CAAC,CAAC,CAAC;gBACJ,CAAC;YACF,CAAC;iBAAM,CAAC;gBACP,IAAI,sBAAsB,EAAE,CAAC;oBAC5B,IAAI,KAAK,GAAkB,IAAI,CAAC;oBAChC,OAAO,CAAC,KAAK,IAAI,sBAAsB,CAAC,CAAC,CAAC,EAAE,CAAC;wBAC5C,KAAK,GAAG,uBAAuB,CAC9B,MAAM,CAAC,QAAQ,CAAC,MAAM,EACtB,sBAAsB,CAAC,KAAK,EAAY,CACxC,CAAC;oBACH,CAAC;oBACD,IAAI,CAAC,KAAK,EAAE,CAAC;wBACZ,KAAK,CAAC,QAAQ,CACb,WAAW,CACV,2BAA2B,EAC3B,gBAAgB,CAChB,CACD,CAAC;oBACH,CAAC;gBACF,CAAC;gBACD,oCAAoC;gBACpC,IACC,MAAM,CAAC,OAAO,CAAC,KAAK;oBACpB,WAAW,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK;oBACnC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,EAC7B,CAAC;oBACF,aAAa,CACZ,KAAK,EACL,2BAA2B,EAC3B,gBAAgB,EAChB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,EAC9B,sBAAsB,CACtB,CAAC;gBACH,CAAC;YACF,CAAC;YAED,MAAM,wBAAwB,GAAG,CAAC,KAAK,EAAE,EAAE;gBAC1C,IAAI,KAAK,IAAI,WAAW,IAAI,KAAK,EAAE,CAAC;oBACnC,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;wBACrB,aAAa,CACZ,KAAK,EACL,2BAA2B,EAC3B,gBAAgB,EAChB,KAAK,CAAC,SAAS,EACf,sBAAsB,CACtB,CAAC;oBACH,CAAC;yBAAM,IAAI,KAAK,EAAE,SAAS,KAAK,IAAI,EAAE,CAAC;wBACtC,iEAAiE;wBACjE,KAAK,CAAC,QAAQ,CACb,WAAW,CACV,2BAA2B,EAC3B,gBAAgB,CAChB,CACD,CAAC;oBACH,CAAC;gBACF,CAAC;YACF,CAAC,CAAC;YAEF,0BAA0B,CAAC,WAAW,EAAE,wBAAwB,CAAC,CAAC;YAClE,0BAA0B,CACzB,cAAc,EACd,wBAAwB,CACxB,CAAC;QACH,CAAC;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PluginInstance } from "../../types.ts";
|
|
2
|
+
/**
|
|
3
|
+
* This plugin will synchronize some paths of the store with the browser's local storage and restored on initialization.
|
|
4
|
+
* See {CreateOptions.localStorageKey} and {CreateOptions.localStoragePaths} for configuration.
|
|
5
|
+
*
|
|
6
|
+
* @param [options] options
|
|
7
|
+
* @param [options.localStorageKey="mapsight--v3-ui"] storage key
|
|
8
|
+
* @param [options.localStoragePaths] paths to store
|
|
9
|
+
* @returns plugin instance
|
|
10
|
+
*/
|
|
11
|
+
export default function createPlugin({ localStorageKey, localStoragePaths, }?: {
|
|
12
|
+
localStorageKey?: string | undefined;
|
|
13
|
+
localStoragePaths?: string[][] | undefined;
|
|
14
|
+
}): PluginInstance;
|
|
15
|
+
//# sourceMappingURL=local-storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/local-storage.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AASnD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACpC,eAAwC,EACxC,iBAA4C,GAC5C;;;CAAK,GAAG,cAAc,CAgDtB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import merge from "lodash/merge";
|
|
2
|
+
import { mergeAll } from "@mapsight/core/lib/base/actions";
|
|
3
|
+
import pickPaths from "@mapsight/lib-js/object/pickPaths";
|
|
4
|
+
import { createStorage } from "@mapsight/lib-redux/local-storage";
|
|
5
|
+
const defaultLocalStorageKey = "mapsight--v3-ui";
|
|
6
|
+
const defaultLocalStoragePaths = [
|
|
7
|
+
//['app', 'isFullscreen'],
|
|
8
|
+
//['app', 'view'],
|
|
9
|
+
["app", "userPreferenceListVisible"],
|
|
10
|
+
];
|
|
11
|
+
/**
|
|
12
|
+
* This plugin will synchronize some paths of the store with the browser's local storage and restored on initialization.
|
|
13
|
+
* See {CreateOptions.localStorageKey} and {CreateOptions.localStoragePaths} for configuration.
|
|
14
|
+
*
|
|
15
|
+
* @param [options] options
|
|
16
|
+
* @param [options.localStorageKey="mapsight--v3-ui"] storage key
|
|
17
|
+
* @param [options.localStoragePaths] paths to store
|
|
18
|
+
* @returns plugin instance
|
|
19
|
+
*/
|
|
20
|
+
export default function createPlugin({ localStorageKey = defaultLocalStorageKey, localStoragePaths = defaultLocalStoragePaths, } = {}) {
|
|
21
|
+
if (typeof window === "undefined") {
|
|
22
|
+
console.error("This plugin will only work as intended in the browser!");
|
|
23
|
+
}
|
|
24
|
+
let restoredState;
|
|
25
|
+
let isRestored = false;
|
|
26
|
+
let storage;
|
|
27
|
+
return {
|
|
28
|
+
afterInit: function localStorageInitPlugin({ initialState, isStateReHydrated, }) {
|
|
29
|
+
storage = createStorage(localStorageKey);
|
|
30
|
+
// override initial state from local storage
|
|
31
|
+
const savedState = storage.getLocalStorageState();
|
|
32
|
+
restoredState = pickPaths(savedState, localStoragePaths);
|
|
33
|
+
// We cannot change the state before we have not at least rendered the
|
|
34
|
+
// dehydrated html at least once to prevent a mixed up DOM when server-side
|
|
35
|
+
// state and client-side determined state mismatch or has changed
|
|
36
|
+
// since page load. If the app is not re-hydrated but initially rendered
|
|
37
|
+
// in the client we can omit the additional render and set the restored
|
|
38
|
+
// state on creation (before render).
|
|
39
|
+
if (!isStateReHydrated) {
|
|
40
|
+
isRestored = true;
|
|
41
|
+
merge(initialState, restoredState);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
afterCreate: function localStorageCreatePlugin({ store }) {
|
|
45
|
+
// sync local storage
|
|
46
|
+
if (store && localStoragePaths) {
|
|
47
|
+
storage.synchronizePathsToLocalStorage(store, localStoragePaths);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
afterRender: function localStorageAfterRenderPlugin({ store }) {
|
|
51
|
+
if (store && !isRestored) {
|
|
52
|
+
store.dispatch(mergeAll(restoredState));
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=local-storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-storage.js","sourceRoot":"","sources":["../../../src/js/plugins/browser/local-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAGjC,OAAO,EAAC,QAAQ,EAAC,MAAM,iCAAiC,CAAC;AAGzD,OAAO,SAAS,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAC,MAAM,mCAAmC,CAAC;AAIhE,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AACjD,MAAM,wBAAwB,GAAG;IAChC,0BAA0B;IAC1B,kBAAkB;IAClB,CAAC,KAAK,EAAE,2BAA2B,CAAC;CACpC,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACpC,eAAe,GAAG,sBAAsB,EACxC,iBAAiB,GAAG,wBAAwB,GAC5C,GAAG,EAAE;IACL,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QACnC,OAAO,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;IACzE,CAAC;IAED,IAAI,aAA6B,CAAC;IAClC,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,OAAyC,CAAC;IAE9C,OAAO;QACN,SAAS,EAAE,SAAS,sBAAsB,CAAC,EAC1C,YAAY,EACZ,iBAAiB,GACjB;YACA,OAAO,GAAG,aAAa,CAAC,eAAe,CAAC,CAAC;YAEzC,4CAA4C;YAC5C,MAAM,UAAU,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;YAClD,aAAa,GAAG,SAAS,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;YAEzD,sEAAsE;YACtE,2EAA2E;YAC3E,iEAAiE;YACjE,wEAAwE;YACxE,uEAAuE;YACvE,qCAAqC;YACrC,IAAI,CAAC,iBAAiB,EAAE,CAAC;gBACxB,UAAU,GAAG,IAAI,CAAC;gBAClB,KAAK,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;YACpC,CAAC;QACF,CAAC;QACD,WAAW,EAAE,SAAS,wBAAwB,CAAC,EAAC,KAAK,EAAC;YACrD,qBAAqB;YACrB,IAAI,KAAK,IAAI,iBAAiB,EAAE,CAAC;gBAChC,OAAO,CAAC,8BAA8B,CACrC,KAAK,EACL,iBAAiB,CACjB,CAAC;YACH,CAAC;QACF,CAAC;QACD,WAAW,EAAE,SAAS,6BAA6B,CAAC,EAAC,KAAK,EAAC;YAC1D,IAAI,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC;gBAC1B,KAAK,CAAC,QAAQ,CACb,QAAQ,CAAC,aAA0C,CAAC,CACpD,CAAC;YACH,CAAC;QACF,CAAC;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { View } from "../../config/constants/app.ts";
|
|
2
|
+
import type { PluginInstance } from "../../types.ts";
|
|
3
|
+
/**
|
|
4
|
+
* This plugin will request native fullscreen when entering one of the
|
|
5
|
+
* specified views.
|
|
6
|
+
*
|
|
7
|
+
* @param [options] options
|
|
8
|
+
* @param [options.views=['fullscreen']] views to enable native fullscreen on
|
|
9
|
+
* @param [options.checkInitially=true] if set the view will be checked on init and depending on the specified list may request native fullscreen
|
|
10
|
+
* @returns plugin
|
|
11
|
+
*/
|
|
12
|
+
export default function createNativeFullscreenPlugin(options?: {
|
|
13
|
+
elementSelector?: string;
|
|
14
|
+
views?: View[];
|
|
15
|
+
checkInitially?: boolean;
|
|
16
|
+
}): PluginInstance;
|
|
17
|
+
//# sourceMappingURL=native-fullscreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-fullscreen.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/native-fullscreen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,+BAA+B,CAAC;AAExD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,CACnD,OAAO,GAAE;IACR,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;CACpB,GACJ,cAAc,CA2DhB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { observeState } from "@mapsight/lib-redux/observe-state";
|
|
2
|
+
import { viewSelector } from "../../store/selectors";
|
|
3
|
+
/**
|
|
4
|
+
* This plugin will request native fullscreen when entering one of the
|
|
5
|
+
* specified views.
|
|
6
|
+
*
|
|
7
|
+
* @param [options] options
|
|
8
|
+
* @param [options.views=['fullscreen']] views to enable native fullscreen on
|
|
9
|
+
* @param [options.checkInitially=true] if set the view will be checked on init and depending on the specified list may request native fullscreen
|
|
10
|
+
* @returns plugin
|
|
11
|
+
*/
|
|
12
|
+
export default function createNativeFullscreenPlugin(options = {}) {
|
|
13
|
+
if (typeof window === "undefined") {
|
|
14
|
+
throw new Error("Cannot use native fullscreen plugin outside of browser!");
|
|
15
|
+
}
|
|
16
|
+
const { elementSelector = ".ms3-wrapper", views = ["fullscreen"], checkInitially = true, } = options;
|
|
17
|
+
let reqFS;
|
|
18
|
+
let exitFS;
|
|
19
|
+
let fSElement;
|
|
20
|
+
if ("requestFullscreen" in document.documentElement) {
|
|
21
|
+
reqFS = "requestFullscreen";
|
|
22
|
+
exitFS = "exitFullscreen";
|
|
23
|
+
fSElement = "fullscreenElement";
|
|
24
|
+
}
|
|
25
|
+
else if ("webkitRequestFullscreen" in document.documentElement) {
|
|
26
|
+
reqFS = "webkitRequestFullscreen";
|
|
27
|
+
exitFS = "webkitExitFullscreen";
|
|
28
|
+
fSElement = "webkitFullscreenElement";
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
return {}; // nothing to do
|
|
32
|
+
}
|
|
33
|
+
const handleState = (view) => {
|
|
34
|
+
const element = document.querySelector(elementSelector);
|
|
35
|
+
if (!element) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const elementIsFullscreen = document[fSElement]
|
|
39
|
+
? element === document[fSElement]
|
|
40
|
+
: false;
|
|
41
|
+
const viewIsFullscreen = views.includes(view);
|
|
42
|
+
if (elementIsFullscreen !== viewIsFullscreen) {
|
|
43
|
+
if (viewIsFullscreen) {
|
|
44
|
+
element[reqFS]();
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
document[exitFS]();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
return {
|
|
52
|
+
afterCreate: function nativeFullscreenPlugin({ store }) {
|
|
53
|
+
if (!store)
|
|
54
|
+
return;
|
|
55
|
+
if (checkInitially) {
|
|
56
|
+
handleState(viewSelector(store.getState()));
|
|
57
|
+
}
|
|
58
|
+
observeState(store, viewSelector, handleState);
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=native-fullscreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-fullscreen.js","sourceRoot":"","sources":["../../../src/js/plugins/browser/native-fullscreen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAG/D,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAGnD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,CACnD,UAII,EAAE;IAEN,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CACd,yDAAyD,CACzD,CAAC;IACH,CAAC;IAED,MAAM,EACL,eAAe,GAAG,cAAc,EAChC,KAAK,GAAG,CAAC,YAAY,CAAC,EACtB,cAAc,GAAG,IAAI,GACrB,GAAG,OAAO,CAAC;IAEZ,IAAI,KAAa,CAAC;IAClB,IAAI,MAAc,CAAC;IACnB,IAAI,SAAiB,CAAC;IACtB,IAAI,mBAAmB,IAAI,QAAQ,CAAC,eAAe,EAAE,CAAC;QACrD,KAAK,GAAG,mBAAmB,CAAC;QAC5B,MAAM,GAAG,gBAAgB,CAAC;QAC1B,SAAS,GAAG,mBAAmB,CAAC;IACjC,CAAC;SAAM,IAAI,yBAAyB,IAAI,QAAQ,CAAC,eAAe,EAAE,CAAC;QAClE,KAAK,GAAG,yBAAyB,CAAC;QAClC,MAAM,GAAG,sBAAsB,CAAC;QAChC,SAAS,GAAG,yBAAyB,CAAC;IACvC,CAAC;SAAM,CAAC;QACP,OAAO,EAAE,CAAC,CAAC,gBAAgB;IAC5B,CAAC;IAED,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,EAAE;QAC5B,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,OAAO;QACR,CAAC;QAED,MAAM,mBAAmB,GAAG,QAAQ,CAAC,SAAS,CAAC;YAC9C,CAAC,CAAC,OAAO,KAAK,QAAQ,CAAC,SAAS,CAAC;YACjC,CAAC,CAAC,KAAK,CAAC;QACT,MAAM,gBAAgB,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAE9C,IAAI,mBAAmB,KAAK,gBAAgB,EAAE,CAAC;YAC9C,IAAI,gBAAgB,EAAE,CAAC;gBACtB,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAClB,CAAC;iBAAM,CAAC;gBACP,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YACpB,CAAC;QACF,CAAC;IACF,CAAC,CAAC;IAEF,OAAO;QACN,WAAW,EAAE,SAAS,sBAAsB,CAAC,EAAC,KAAK,EAAC;YACnD,IAAI,CAAC,KAAK;gBAAE,OAAO;YAEnB,IAAI,cAAc,EAAE,CAAC;gBACpB,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YAC7C,CAAC;YAED,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;QAChD,CAAC;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { State } from "@mapsight/core/types";
|
|
2
|
+
import type { PluginInstance, UiState } from "../../types.ts";
|
|
3
|
+
/**
|
|
4
|
+
* create a no-scroll-handler
|
|
5
|
+
*
|
|
6
|
+
* @param selector redux store selector to test if scroll should be inhibited
|
|
7
|
+
* @param [noScrollCssClass] class to set, default = 'ms3--map-no-scroll'
|
|
8
|
+
* @returns function to update no-scroll state.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createNoScrollHandler(selector: (state: unknown) => boolean, noScrollCssClass?: string): (state: State, forceAllow: boolean) => boolean;
|
|
11
|
+
export declare const defaultNoScrollHandler: (state: State, forceAllow: boolean) => boolean;
|
|
12
|
+
export declare const defaultNoScrollObserveSelector: (state: {
|
|
13
|
+
app: UiState;
|
|
14
|
+
}) => import("../../config/constants/app").View;
|
|
15
|
+
/**
|
|
16
|
+
* This plugin will observe the state for changes to the view (default) and will call the defined handler.
|
|
17
|
+
* By default, this will disable scrolling the document and add a class to the document element
|
|
18
|
+
* when the view is in either "mapOnly" or "fullscreen" view.
|
|
19
|
+
*
|
|
20
|
+
* @param [options] options
|
|
21
|
+
* @param [options.noScrollHandler] handler to call (will be passed the current state)
|
|
22
|
+
* @param [options.noScrollObserveSelector] selector to observe state with
|
|
23
|
+
* @returns {import('../../types').PluginInstance} plugin instance
|
|
24
|
+
*/
|
|
25
|
+
export default function createPlugin(options?: {
|
|
26
|
+
noScrollCssClass?: string;
|
|
27
|
+
noScrollObserveSelector?: (state: State) => unknown;
|
|
28
|
+
noScrollHandler?: (state: State, forceAllow: boolean) => void;
|
|
29
|
+
}): PluginInstance;
|
|
30
|
+
//# sourceMappingURL=no-scroll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-scroll.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/no-scroll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,sBAAsB,CAAC;AAMhD,OAAO,KAAK,EAAC,cAAc,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAM5D;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACpC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,EACrC,gBAAgB,SAAuB,IAE/B,OAAO,KAAK,EAAE,YAAY,OAAO,aAezC;AAED,eAAO,MAAM,sBAAsB,UAjBnB,KAAK,cAAc,OAAO,YAsBzC,CAAC;AACF,eAAO,MAAM,8BAA8B;;+CAAe,CAAC;AAE3D;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,OAAO,GAAE;IACR,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC;IACpD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CACzD,GACJ,cAAc,CAyBhB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { getAndObserveState } from "@mapsight/lib-redux/observe-state";
|
|
2
|
+
import { VIEW_FULLSCREEN, VIEW_MAP_ONLY } from "../../config/constants/app";
|
|
3
|
+
import { viewSelector } from "../../store/selectors";
|
|
4
|
+
function onTouchMoveNoScroll(e) {
|
|
5
|
+
e.preventDefault();
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* create a no-scroll-handler
|
|
9
|
+
*
|
|
10
|
+
* @param selector redux store selector to test if scroll should be inhibited
|
|
11
|
+
* @param [noScrollCssClass] class to set, default = 'ms3--map-no-scroll'
|
|
12
|
+
* @returns function to update no-scroll state.
|
|
13
|
+
*/
|
|
14
|
+
export function createNoScrollHandler(selector, noScrollCssClass = "ms3--map-no-scroll") {
|
|
15
|
+
return (state, forceAllow) => {
|
|
16
|
+
const isNoScroll = !forceAllow && selector(state);
|
|
17
|
+
if (isNoScroll) {
|
|
18
|
+
window.document.documentElement.classList.add(noScrollCssClass);
|
|
19
|
+
window.document.addEventListener("touchmove", onTouchMoveNoScroll);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
window.document.documentElement.classList.remove(noScrollCssClass);
|
|
23
|
+
window.document.removeEventListener("touchmove", onTouchMoveNoScroll);
|
|
24
|
+
}
|
|
25
|
+
return isNoScroll;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export const defaultNoScrollHandler = createNoScrollHandler((state) => {
|
|
29
|
+
const view = viewSelector(state);
|
|
30
|
+
return view === VIEW_MAP_ONLY || view === VIEW_FULLSCREEN;
|
|
31
|
+
});
|
|
32
|
+
export const defaultNoScrollObserveSelector = viewSelector;
|
|
33
|
+
/**
|
|
34
|
+
* This plugin will observe the state for changes to the view (default) and will call the defined handler.
|
|
35
|
+
* By default, this will disable scrolling the document and add a class to the document element
|
|
36
|
+
* when the view is in either "mapOnly" or "fullscreen" view.
|
|
37
|
+
*
|
|
38
|
+
* @param [options] options
|
|
39
|
+
* @param [options.noScrollHandler] handler to call (will be passed the current state)
|
|
40
|
+
* @param [options.noScrollObserveSelector] selector to observe state with
|
|
41
|
+
* @returns {import('../../types').PluginInstance} plugin instance
|
|
42
|
+
*/
|
|
43
|
+
export default function createPlugin(options = {}) {
|
|
44
|
+
const { noScrollHandler = defaultNoScrollHandler, noScrollObserveSelector = defaultNoScrollObserveSelector, } = options;
|
|
45
|
+
if (typeof window === "undefined") {
|
|
46
|
+
console.info("This plugin might not work as intended, if not run in the browser!");
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
afterCreate: function noScrollPlugin(context) {
|
|
50
|
+
const { store } = context;
|
|
51
|
+
if (store) {
|
|
52
|
+
getAndObserveState(store, noScrollObserveSelector, (_old, _new, state) => noScrollHandler(state, false));
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=no-scroll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-scroll.js","sourceRoot":"","sources":["../../../src/js/plugins/browser/no-scroll.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,kBAAkB,EAAC,MAAM,mCAAmC,CAAC;AAErE,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAGnD,SAAS,mBAAmB,CAAC,CAAa;IACzC,CAAC,CAAC,cAAc,EAAE,CAAC;AACpB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CACpC,QAAqC,EACrC,gBAAgB,GAAG,oBAAoB;IAEvC,OAAO,CAAC,KAAY,EAAE,UAAmB,EAAE,EAAE;QAC5C,MAAM,UAAU,GAAG,CAAC,UAAU,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClD,IAAI,UAAU,EAAE,CAAC;YAChB,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;YAChE,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC;QACpE,CAAC;aAAM,CAAC;YACP,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;YACnE,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAClC,WAAW,EACX,mBAAmB,CACnB,CAAC;QACH,CAAC;QAED,OAAO,UAAU,CAAC;IACnB,CAAC,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,qBAAqB,CAC1D,CAAC,KAAqB,EAAE,EAAE;IACzB,MAAM,IAAI,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACjC,OAAO,IAAI,KAAK,aAAa,IAAI,IAAI,KAAK,eAAe,CAAC;AAC3D,CAAC,CACD,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAG,YAAY,CAAC;AAE3D;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,UAII,EAAE;IAEN,MAAM,EACL,eAAe,GAAG,sBAAsB,EACxC,uBAAuB,GAAG,8BAA8B,GACxD,GAAG,OAAO,CAAC;IAEZ,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QACnC,OAAO,CAAC,IAAI,CACX,oEAAoE,CACpE,CAAC;IACH,CAAC;IAED,OAAO;QACN,WAAW,EAAE,SAAS,cAAc,CAAC,OAAO;YAC3C,MAAM,EAAC,KAAK,EAAC,GAAG,OAAO,CAAC;YAExB,IAAI,KAAK,EAAE,CAAC;gBACX,kBAAkB,CACjB,KAAK,EACL,uBAAuB,EACvB,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,CACpD,CAAC;YACH,CAAC;QACF,CAAC;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PluginInstance } from "../../types.ts";
|
|
2
|
+
/**
|
|
3
|
+
* This plugin will call the partialChangeHandler (@see {CreateOptions.partialChangeHandler}) when some partial content
|
|
4
|
+
* has changed in the mapsight ui controlled dom, allowing for manipulation of the changed dom (e.g. displaying charts in the
|
|
5
|
+
* feature selection info)
|
|
6
|
+
*
|
|
7
|
+
* @param [_options] options currently not used
|
|
8
|
+
* @returns plugin instance
|
|
9
|
+
*/
|
|
10
|
+
export default function createPlugin(_options?: {}): PluginInstance;
|
|
11
|
+
//# sourceMappingURL=partial-content-changed-event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partial-content-changed-event.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/partial-content-changed-event.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,QAAQ,KAAK,GAAG,cAAc,CAWlE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { APP_EVENT_PARTIAL_CONTENT_CHANGED } from "../../components/helping/app-channel";
|
|
2
|
+
/**
|
|
3
|
+
* This plugin will call the partialChangeHandler (@see {CreateOptions.partialChangeHandler}) when some partial content
|
|
4
|
+
* has changed in the mapsight ui controlled dom, allowing for manipulation of the changed dom (e.g. displaying charts in the
|
|
5
|
+
* feature selection info)
|
|
6
|
+
*
|
|
7
|
+
* @param [_options] options currently not used
|
|
8
|
+
* @returns plugin instance
|
|
9
|
+
*/
|
|
10
|
+
export default function createPlugin(_options = {}) {
|
|
11
|
+
return {
|
|
12
|
+
afterCreate: function partialContentChangedEventPlugin(context) {
|
|
13
|
+
if (context.createOptions.partialChangeHandler) {
|
|
14
|
+
context.appChannelListeners.push([
|
|
15
|
+
APP_EVENT_PARTIAL_CONTENT_CHANGED,
|
|
16
|
+
context.createOptions.partialChangeHandler,
|
|
17
|
+
]);
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=partial-content-changed-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partial-content-changed-event.js","sourceRoot":"","sources":["../../../src/js/plugins/browser/partial-content-changed-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iCAAiC,EAAC,MAAM,sCAAsC,CAAC;AAGvF;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,QAAQ,GAAG,EAAE;IACjD,OAAO;QACN,WAAW,EAAE,SAAS,gCAAgC,CAAC,OAAO;YAC7D,IAAI,OAAO,CAAC,aAAa,CAAC,oBAAoB,EAAE,CAAC;gBAChD,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC;oBAChC,iCAAiC;oBACjC,OAAO,CAAC,aAAa,CAAC,oBAAoB;iBAC1C,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PluginInstance } from "../../types.ts";
|
|
2
|
+
/**
|
|
3
|
+
* This plugin will track piwik actions when the a feature is selected
|
|
4
|
+
*
|
|
5
|
+
* @see `@mapsight/lib-js/misc/piwik`
|
|
6
|
+
*
|
|
7
|
+
* @param [options] options
|
|
8
|
+
* @param [options.featureSelectionsController] name of the feature selections controller, defaults to mapsight ui default
|
|
9
|
+
* @param [options.featureSelection="select"] name of the feature selection to track
|
|
10
|
+
* @param [options.category="Mapsight"] piwik category to track
|
|
11
|
+
* @param [options.action="SelectedFeature"] piwik action to track
|
|
12
|
+
* @returns plugin instance
|
|
13
|
+
*/
|
|
14
|
+
export default function createPlugin(options?: {
|
|
15
|
+
featureSelectionsController?: string;
|
|
16
|
+
featureSelection?: string;
|
|
17
|
+
category?: string;
|
|
18
|
+
action?: string;
|
|
19
|
+
}): PluginInstance;
|
|
20
|
+
//# sourceMappingURL=piwik-track-feature-selection-event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"piwik-track-feature-selection-event.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/piwik-track-feature-selection-event.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAQnD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,OAAO,GAAE;IACR,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACX,GACJ,cAAc,CAqChB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createFeatureSelectionSelector, getFilteredFeatures, } from "@mapsight/core/lib/feature-selections/selectors";
|
|
2
|
+
import { trackEvent } from "@mapsight/lib-js/misc/piwik";
|
|
3
|
+
import { observeState } from "@mapsight/lib-redux/observe-state";
|
|
4
|
+
import * as c from "../../config/constants/controllers";
|
|
5
|
+
import { FEATURE_SELECTION_SELECT } from "../../config/feature/selections";
|
|
6
|
+
const defaultCategory = "Mapsight";
|
|
7
|
+
const defaultAction = "SelectedFeature";
|
|
8
|
+
const defaultFeatureSelectionsController = c.FEATURE_SELECTIONS;
|
|
9
|
+
const defaultFeatureSelection = FEATURE_SELECTION_SELECT;
|
|
10
|
+
/**
|
|
11
|
+
* This plugin will track piwik actions when the a feature is selected
|
|
12
|
+
*
|
|
13
|
+
* @see `@mapsight/lib-js/misc/piwik`
|
|
14
|
+
*
|
|
15
|
+
* @param [options] options
|
|
16
|
+
* @param [options.featureSelectionsController] name of the feature selections controller, defaults to mapsight ui default
|
|
17
|
+
* @param [options.featureSelection="select"] name of the feature selection to track
|
|
18
|
+
* @param [options.category="Mapsight"] piwik category to track
|
|
19
|
+
* @param [options.action="SelectedFeature"] piwik action to track
|
|
20
|
+
* @returns plugin instance
|
|
21
|
+
*/
|
|
22
|
+
export default function createPlugin(options = {}) {
|
|
23
|
+
const { featureSelectionsController = defaultFeatureSelectionsController, featureSelection = defaultFeatureSelection, category = defaultCategory, action = defaultAction, } = options;
|
|
24
|
+
return {
|
|
25
|
+
afterCreate: function piwikTrackFullscreenToggleEvent(context) {
|
|
26
|
+
const { store } = context;
|
|
27
|
+
if (!store)
|
|
28
|
+
return;
|
|
29
|
+
observeState(store, createFeatureSelectionSelector(featureSelectionsController, featureSelection), (selection) => {
|
|
30
|
+
const filteredFeatures = getFilteredFeatures(selection);
|
|
31
|
+
if (!filteredFeatures)
|
|
32
|
+
return;
|
|
33
|
+
const hasFeatures = !!filteredFeatures.length;
|
|
34
|
+
if (hasFeatures) {
|
|
35
|
+
trackEvent(category, action, featureSelection, JSON.stringify(filteredFeatures));
|
|
36
|
+
}
|
|
37
|
+
}); // TODO: Check!
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=piwik-track-feature-selection-event.js.map
|