@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,43 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
import { useSelector } from "react-redux";
|
|
3
|
+
import { batchActions } from "redux-batched-actions";
|
|
4
|
+
import { deselectAll, selectExclusively, } from "@mapsight/core/lib/feature-selections/actions";
|
|
5
|
+
import { VIEW_MAP_ONLY } from "../../../config/constants/app.js";
|
|
6
|
+
import { FEATURE_SELECTIONS } from "../../../config/constants/controllers.js";
|
|
7
|
+
import { FEATURE_SELECTION_HIGHLIGHT } from "../../../config/feature/selections.js";
|
|
8
|
+
import { setLastListScrollPosition, setView } from "../../../store/actions.js";
|
|
9
|
+
import { listUiOptionSelectedOnlySelector, listUiOptionSelectionBehaviorSelector, listUiOptionSelectionSelectionSelector, viewSelector, } from "../../../store/selectors.js";
|
|
10
|
+
import { APP_EVENT_SCROLL_TO_MAP, useAppChannelDispatchEvent, } from "../../helping/app-channel.js";
|
|
11
|
+
const getDocumentScroll = () => window.document.documentElement.scrollTop ||
|
|
12
|
+
window.document.body.scrollTop ||
|
|
13
|
+
0;
|
|
14
|
+
export default function useSelectFeature() {
|
|
15
|
+
const appChannelDispatch = useAppChannelDispatchEvent();
|
|
16
|
+
const selectionBehavior = useSelector(listUiOptionSelectionBehaviorSelector);
|
|
17
|
+
const selectionBehaviorSelection = useSelector(listUiOptionSelectionSelectionSelector);
|
|
18
|
+
const showSelectedOnly = useSelector(listUiOptionSelectedOnlySelector);
|
|
19
|
+
const view = useSelector(viewSelector);
|
|
20
|
+
return useMemo(() => function selectFeatureInList(featureId) {
|
|
21
|
+
const actions = [
|
|
22
|
+
deselectAll(FEATURE_SELECTIONS, FEATURE_SELECTION_HIGHLIGHT),
|
|
23
|
+
selectExclusively(FEATURE_SELECTIONS, selectionBehaviorSelection, featureId),
|
|
24
|
+
];
|
|
25
|
+
if (!showSelectedOnly &&
|
|
26
|
+
selectionBehavior[view] === "scrollToMap") {
|
|
27
|
+
actions.push(setLastListScrollPosition(getDocumentScroll()));
|
|
28
|
+
setTimeout(() => appChannelDispatch(new Event(APP_EVENT_SCROLL_TO_MAP)), 10);
|
|
29
|
+
}
|
|
30
|
+
else if (selectionBehavior[view] === "showInMapOnlyView") {
|
|
31
|
+
actions.push(setLastListScrollPosition(getDocumentScroll())); // hier auch speichern, damit auch hier das close des poi die scroll-position wiederherstellt
|
|
32
|
+
actions.push(setView(VIEW_MAP_ONLY));
|
|
33
|
+
}
|
|
34
|
+
return batchActions(actions);
|
|
35
|
+
}, [
|
|
36
|
+
appChannelDispatch,
|
|
37
|
+
showSelectedOnly,
|
|
38
|
+
selectionBehavior,
|
|
39
|
+
selectionBehaviorSelection,
|
|
40
|
+
view,
|
|
41
|
+
]);
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=useSelectFeature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelectFeature.js","sourceRoot":"","sources":["../../../../src/js/components/feature-list/hooks/useSelectFeature.js"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAExC,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EACN,WAAW,EACX,iBAAiB,GACjB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAC,kBAAkB,EAAC,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAC,2BAA2B,EAAC,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAC,yBAAyB,EAAE,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EACN,gCAAgC,EAChC,qCAAqC,EACrC,sCAAsC,EACtC,YAAY,GACZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACN,uBAAuB,EACvB,0BAA0B,GAC1B,MAAM,8BAA+B,CAAC;AAEvC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAC9B,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,SAAS;IACzC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS;IAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,OAAO,UAAU,gBAAgB;IACvC,MAAM,kBAAkB,GAAG,0BAA0B,EAAE,CAAC;IACxD,MAAM,iBAAiB,GAAG,WAAW,CACpC,qCAAqC,CACrC,CAAC;IACF,MAAM,0BAA0B,GAAG,WAAW,CAC7C,sCAAsC,CACtC,CAAC;IACF,MAAM,gBAAgB,GAAG,WAAW,CAAC,gCAAgC,CAAC,CAAC;IACvE,MAAM,IAAI,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IAEvC,OAAO,OAAO,CACb,GAAG,EAAE,CACJ,SAAS,mBAAmB,CAAC,SAAS;QACrC,MAAM,OAAO,GAAG;YACf,WAAW,CACV,kBAAkB,EAClB,2BAA2B,CAC3B;YACD,iBAAiB,CAChB,kBAAkB,EAClB,0BAA0B,EAC1B,SAAS,CACT;SACD,CAAC;QAEF,IACC,CAAC,gBAAgB;YACjB,iBAAiB,CAAC,IAAI,CAAC,KAAK,aAAa,EACxC,CAAC;YACF,OAAO,CAAC,IAAI,CACX,yBAAyB,CAAC,iBAAiB,EAAE,CAAC,CAC9C,CAAC;YACF,UAAU,CACT,GAAG,EAAE,CACJ,kBAAkB,CACjB,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAClC,EACF,EAAE,CACF,CAAC;QACH,CAAC;aAAM,IAAI,iBAAiB,CAAC,IAAI,CAAC,KAAK,mBAAmB,EAAE,CAAC;YAC5D,OAAO,CAAC,IAAI,CACX,yBAAyB,CAAC,iBAAiB,EAAE,CAAC,CAC9C,CAAC,CAAC,6FAA6F;YAChG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;QACtC,CAAC;QAED,OAAO,YAAY,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC,EACF;QACC,kBAAkB;QAClB,gBAAgB;QAChB,iBAAiB;QACjB,0BAA0B;QAC1B,IAAI;KACJ,CACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/index.jsx"],"names":[],"mappings":"AAmCA,qCAAsC,IAAI,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { deselectAll } from "@mapsight/core/lib/feature-selections/actions";
|
|
3
|
+
import { forwardRef, useCallback, useMemo, useRef } from "react";
|
|
4
|
+
import { useDispatch, useSelector } from "react-redux";
|
|
5
|
+
import { FEATURE_SELECTIONS } from "../../config/constants/controllers";
|
|
6
|
+
import getFeatureProperty from "../../helpers/get-feature-property";
|
|
7
|
+
import { layerSwitcherConfigExternalSelector, listUiOptionsSelector, viewSelector, } from "../../store/selectors.js";
|
|
8
|
+
import FeatureCycling from "../feature-list-cycling";
|
|
9
|
+
import FeatureSorter from "../feature-list-sorting";
|
|
10
|
+
import { APP_EVENT_SCROLL_TO_FEATURE_LIST, useAppChannelEventListener, } from "../helping/app-channel";
|
|
11
|
+
import LayerSwitcher from "../layer-switcher";
|
|
12
|
+
import TagSwitcher from "../tag-switcher";
|
|
13
|
+
import { FeatureListContextProvider } from "./context";
|
|
14
|
+
import FeatureFilter from "./filter";
|
|
15
|
+
import FeatureListFooter from "./footer";
|
|
16
|
+
import FeatureListGroupedContent from "./grouped-content";
|
|
17
|
+
import FeatureListHeader from "./header";
|
|
18
|
+
import useAutoloadFeatureSource from "./hooks/useAutoloadFeatureSource";
|
|
19
|
+
import useFeatureListState from "./hooks/useFeatureListState";
|
|
20
|
+
import { useMakeHeaderSticky } from "./hooks/useMakeHeaderSticky";
|
|
21
|
+
import useRestoreDocumentScroll from "./hooks/useRestoreDocumentScroll";
|
|
22
|
+
import useSelectFeature from "./hooks/useSelectFeature";
|
|
23
|
+
import Pagination from "./pagination.js";
|
|
24
|
+
export const DEFAULT_LIST_RENDER_AS = "ul";
|
|
25
|
+
function stopEventPropagation(e) {
|
|
26
|
+
e.stopPropagation();
|
|
27
|
+
}
|
|
28
|
+
function determineShowListInfo(features) {
|
|
29
|
+
if (features.length) {
|
|
30
|
+
const firstInfo = getFeatureProperty(features[0], "listInformation");
|
|
31
|
+
for (let i = 0; i < features.length; i++) {
|
|
32
|
+
const info = getFeatureProperty(features[i], "listInformation");
|
|
33
|
+
if (firstInfo !== info) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function determineItemType(containerType = DEFAULT_LIST_RENDER_AS) {
|
|
41
|
+
if (containerType === "ul" || containerType === "ol") {
|
|
42
|
+
return "li";
|
|
43
|
+
}
|
|
44
|
+
return "p";
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @template T
|
|
48
|
+
* @param {import("../../types").FeatureListProps<T>} props props
|
|
49
|
+
* @param {React.RefObject<React.ElementRef<T>>} forwardedRef ref
|
|
50
|
+
* @returns {React.ReactElement} element
|
|
51
|
+
*/
|
|
52
|
+
function FeatureList(props, forwardedRef) {
|
|
53
|
+
const { additionalClasses, as: T = "div", attributes = {}, headerAs: HeaderT = FeatureListHeader, contentAs: ContentT = FeatureListGroupedContent, footerAs: FooterT = FeatureListFooter, itemAs, enableKeyboardControl = false, autoloadFeatureSource = true, sort = true, filter = true, enableScrollPosition = true, overrideListUiOptions, listControllerName, } = props;
|
|
54
|
+
const listUiOptionsState = useSelector(listUiOptionsSelector);
|
|
55
|
+
const listUiOptions = overrideListUiOptions || listUiOptionsState;
|
|
56
|
+
const { stickyHeader, detailsInList, showVaryingListInfoOnly, renderGroupAs, renderAs = DEFAULT_LIST_RENDER_AS, selectionBehaviorSelection, } = listUiOptions;
|
|
57
|
+
const state = useFeatureListState(listUiOptions, sort, filter, enableScrollPosition, listControllerName);
|
|
58
|
+
const view = useSelector(viewSelector);
|
|
59
|
+
if (renderAs === "table") {
|
|
60
|
+
throw new Error("@mapsight/ui does not support rendering the feature list as <table> anymore!");
|
|
61
|
+
}
|
|
62
|
+
/** @type {React.RefObject<HTMLElement>} */
|
|
63
|
+
const headerRef = useRef();
|
|
64
|
+
/** @type {React.RefObject<HTMLElement>} */
|
|
65
|
+
const ownRef = useRef();
|
|
66
|
+
/** @type {React.RefObject<HTMLElement>} */
|
|
67
|
+
const ref = forwardedRef || ownRef;
|
|
68
|
+
useMakeHeaderSticky(stickyHeader, ref, headerRef, view);
|
|
69
|
+
useAutoloadFeatureSource(autoloadFeatureSource, state.featureSourceId);
|
|
70
|
+
useRestoreDocumentScroll(view, state.scrollPosition);
|
|
71
|
+
useAppChannelEventListener(APP_EVENT_SCROLL_TO_FEATURE_LIST, useCallback(() => {
|
|
72
|
+
ref.current.scrollIntoView({ block: "start", behavior: "smooth" });
|
|
73
|
+
}, [ref]));
|
|
74
|
+
const dispatch = useDispatch();
|
|
75
|
+
const selectFeatureAction = useSelectFeature();
|
|
76
|
+
const selectFeature = useCallback((featureId, options) => dispatch(selectFeatureAction(featureId, options)), [dispatch, selectFeatureAction]);
|
|
77
|
+
const deselectFeature = useCallback(() => dispatch(deselectAll(FEATURE_SELECTIONS, selectionBehaviorSelection)), [dispatch, selectionBehaviorSelection]);
|
|
78
|
+
// Decide whether to show the info column
|
|
79
|
+
// based on if there is any "interesting" aka distinct data available in the features
|
|
80
|
+
// We do this before filtering so it does not change while changing the filter
|
|
81
|
+
const showFeatureListInfo = state.filteredFeatures.length !== 0 &&
|
|
82
|
+
(showVaryingListInfoOnly === false ||
|
|
83
|
+
determineShowListInfo(state.features));
|
|
84
|
+
// TODO:
|
|
85
|
+
//<StatusIndicator {...{
|
|
86
|
+
// lastUpdate: this.props.lastUpdate,
|
|
87
|
+
// status: this.props.status,
|
|
88
|
+
// key: 'si'
|
|
89
|
+
//}} />
|
|
90
|
+
let className = "ms3-list-wrapper";
|
|
91
|
+
if (detailsInList) {
|
|
92
|
+
className += " ms3-list-wrapper--with-details";
|
|
93
|
+
}
|
|
94
|
+
if (additionalClasses) {
|
|
95
|
+
className += ` ${additionalClasses}`;
|
|
96
|
+
}
|
|
97
|
+
const itemProps = useMemo(() => ({
|
|
98
|
+
showFeatureListInfo: showFeatureListInfo,
|
|
99
|
+
enableKeyboardControl: enableKeyboardControl,
|
|
100
|
+
selectFeature: selectFeature,
|
|
101
|
+
deselectFeature: deselectFeature,
|
|
102
|
+
}), [
|
|
103
|
+
deselectFeature,
|
|
104
|
+
enableKeyboardControl,
|
|
105
|
+
selectFeature,
|
|
106
|
+
showFeatureListInfo,
|
|
107
|
+
]);
|
|
108
|
+
const renderItemAs = itemAs || determineItemType(renderAs);
|
|
109
|
+
const contextValue = useMemo(() =>
|
|
110
|
+
/** @type {import("./context").FeatureListContextValue} */ ({
|
|
111
|
+
state: state,
|
|
112
|
+
listUiOptions: listUiOptions,
|
|
113
|
+
enableKeyboardControl: enableKeyboardControl,
|
|
114
|
+
showFeatureListInfo: showFeatureListInfo,
|
|
115
|
+
selectFeature: selectFeature,
|
|
116
|
+
deselectFeature: deselectFeature,
|
|
117
|
+
itemProps: itemProps,
|
|
118
|
+
}), [
|
|
119
|
+
deselectFeature,
|
|
120
|
+
enableKeyboardControl,
|
|
121
|
+
listUiOptions,
|
|
122
|
+
selectFeature,
|
|
123
|
+
showFeatureListInfo,
|
|
124
|
+
state,
|
|
125
|
+
itemProps,
|
|
126
|
+
]);
|
|
127
|
+
const { filterControl, sortControl, cyclingControl, integratedList, paginationControl, itemsPerPage, } = listUiOptions;
|
|
128
|
+
const { page, featureCount, features, featureSourceId, filteredFeatures, layerSwitcherShowExternal, tagSwitcherShow, } = state;
|
|
129
|
+
let filterBox = null;
|
|
130
|
+
if (filterControl !== false) {
|
|
131
|
+
filterBox = _jsx(FeatureFilter, { allFeatures: features });
|
|
132
|
+
}
|
|
133
|
+
else if (sortControl !== false || !cyclingControl) {
|
|
134
|
+
filterBox = _jsx("div", { className: "ms3-list__filter-box", children: "\u00A0" });
|
|
135
|
+
}
|
|
136
|
+
return (_jsx(FeatureListContextProvider, { value: contextValue, children: _jsxs(T, { className: className, onTouchMove: stopEventPropagation, ref: ref, ...attributes, children: [_jsxs(HeaderT, { ref: headerRef, children: [filterBox, sortControl !== false && _jsx(FeatureSorter, {}), cyclingControl && (_jsx(FeatureCycling, { filteredFeatures: filteredFeatures })), integratedList && layerSwitcherShowExternal && (_jsx(LayerSwitcher, { configSelector: layerSwitcherConfigExternalSelector })), integratedList && tagSwitcherShow && _jsx(TagSwitcher, {})] }), _jsx(ContentT, { groupAs: renderGroupAs, itemAs: renderItemAs, featureSourceId: featureSourceId }), _jsx(FooterT, { children: paginationControl ? (_jsx(Pagination, { page: page, count: Math.ceil(featureCount / itemsPerPage) })) : null })] }) }));
|
|
137
|
+
}
|
|
138
|
+
export default forwardRef(FeatureList);
|
|
139
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/feature-list/index.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAC,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAErD,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AACtE,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,EACN,mCAAmC,EACnC,qBAAqB,EACrB,YAAY,GACZ,MAAM,0BAA0B,CAAC;AAClC,OAAO,cAAc,MAAM,yBAAyB,CAAC;AAErD,OAAO,aAAa,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EACN,gCAAgC,EAChC,0BAA0B,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAC,0BAA0B,EAAC,MAAM,WAAW,CAAC;AAErD,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,iBAAiB,MAAM,UAAU,CAAC;AACzC,OAAO,yBAAyB,MAAM,mBAAmB,CAAC;AAC1D,OAAO,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C,GAAG,EAAE,GAAG,KACJ,UAAU,aAEd,MAAC,OAAO,IAAC,GAAG,EAAE,SAAS,aACrB,SAAS,EAET,WAAW,KAAK,KAAK,IAAI,KAAC,aAAa,KAAG,EAE1C,cAAc,IAAI,CAClB,KAAC,cAAc,IAAC,gBAAgB,EAAE,gBAAgB,GAAI,CACtD,EAEA,cAAc,IAAI,yBAAyB,IAAI,CAC/C,KAAC,aAAa,IACb,cAAc,EAAE,mCAAmC,GAClD,CACF,EAEA,cAAc,IAAI,eAAe,IAAI,KAAC,WAAW,KAAG,IAC5C,EACV,KAAC,QAAQ,IACR,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,YAAY,EACpB,eAAe,EAAE,eAAe,GAC/B,EACF,KAAC,OAAO,cACN,iBAAiB,CAAC,CAAC,CAAC,CACpB,KAAC,UAAU,IACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC,GAC5C,CACF,CAAC,CAAC,CAAC,IAAI,GACC,IACP,GACwB,CAC7B,CAAC;AACH,CAAC;AAED,eAAe,UAAU,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/pagination.tsx"],"names":[],"mappings":"AAeA,iBAAS,UAAU,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,EAAE;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,kDAuC/D;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import ReactPaginate from "react-paginate";
|
|
3
|
+
import { useDispatch } from "react-redux";
|
|
4
|
+
import { translate } from "../../helpers/i18n";
|
|
5
|
+
import { setListPage } from "../../store/actions";
|
|
6
|
+
function ariaLabelBuilder(page, selected) {
|
|
7
|
+
const label = page === selected
|
|
8
|
+
? translate("ui.pagination.goToSelectedPageLabel")
|
|
9
|
+
: translate("ui.pagination.goToPageLabel");
|
|
10
|
+
return label.replace("{page}", String(page));
|
|
11
|
+
}
|
|
12
|
+
function Pagination({ page, count }) {
|
|
13
|
+
const dispatch = useDispatch();
|
|
14
|
+
return null;
|
|
15
|
+
return (_jsx(ReactPaginate, { disableInitialCallback: true, forcePage: Math.min(page, count), pageCount: count, onPageChange: (e) => {
|
|
16
|
+
dispatch(setListPage(e.selected));
|
|
17
|
+
}, pageRangeDisplayed: 3, marginPagesDisplayed: 2, previousLabel: translate("ui.pagination.prevPage"), nextLabel: translate("ui.pagination.nextPage"), previousAriaLabel: translate("ui.pagination.prevPageLabel"), nextAriaLabel: translate("ui.pagination.nextPageLabel"), ariaLabelBuilder: ariaLabelBuilder,
|
|
18
|
+
// TODO:
|
|
19
|
+
// Handle deep urls (maybe also SSR)
|
|
20
|
+
//hrefBuilder={hrefBuilder}
|
|
21
|
+
eventListener: "onClick", containerClassName: "ms3-list-pagination", pageClassName: "ms3-list-pagination__page", pageLinkClassName: "ms3-list-pagination__page-link", previousClassName: "ms3-list-pagination__page ms3-list-pagination__page--previous", previousLinkClassName: "ms3-list-pagination__page-link ms3-list-pagination__page-link--previous", nextClassName: "ms3-list-pagination__page ms3-list-pagination__page--next", nextLinkClassName: "ms3-list-pagination__page-link ms3-list-pagination__page-link--next", activeClassName: "ms3-list-pagination__page--active", activeLinkClassName: "ms3-list-pagination__page-link--active", disabledClassName: "ms3-list-pagination__page--disabled", breakClassName: "ms3-list-pagination__break", breakLinkClassName: "ms3-list-pagination__break-link" }));
|
|
22
|
+
}
|
|
23
|
+
export default Pagination;
|
|
24
|
+
//# sourceMappingURL=pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../src/js/components/feature-list/pagination.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,MAA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ACzC,iBAAiB,EAAC,gCAAgC,EAClD,iBAAiB,EAAC,+DAA+D,EACjF,qBAAqB,EAAC,yEAAyE,EAC/F,aAAa,EAAC,2DAA2D,EACzE,iBAAiB,EAAC,qEAAqE,EACvF,eAAe,EAAC,mCAAmC,EACnD,mBAAmB,EAAC,wCAAwC,EAC5D,iBAAiB,EAAC,qCAAqC,EACvD,cAAc,EAAC,4BAA4B,EAC3C,kBAAkB,EAAC,iCAAiC,GACnD,CACF,CAAC;AACH,CAAC;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-input.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/query-input.jsx"],"names":[],"mappings":";AAGA,wFAQC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { translate } from "../../helpers/i18n";
|
|
3
|
+
import QueryInputWithLabel from "../query-input-with-label";
|
|
4
|
+
function FeatureQueryInput(props) {
|
|
5
|
+
return (_jsx(QueryInputWithLabel, { label: translate("ui.feature-list.query-input.placeholder"), ...props }));
|
|
6
|
+
}
|
|
7
|
+
export default FeatureQueryInput;
|
|
8
|
+
//# sourceMappingURL=query-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-input.js","sourceRoot":"","sources":["../../../src/js/components/feature-list/query-input.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,OAAO,mBAAmB,MAAM,2BAA2B,CAAC;AAE5D,SAAS,iBAAiB,CAAC,KAAK;IAC/B,OAAO,CACN,KAAC,mBAAmB,IACnB,KAAK,EAAE,SAAS,CAAC,yCAAyC,CAAC,KAEvD,KAAK,GACR,CACF,CAAC;AACH,CAAC;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/button.jsx"],"names":[],"mappings":";AAAA;;;;4CAUC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
function FeatureListCyclingButton({ direction, label, ...rest }) {
|
|
3
|
+
return (_jsx("button", { type: "button", className: `ms3-list-cycling-box__button ms3-list-cycling-box__button--${direction}`, ...rest, children: _jsx("span", { className: "ms3-visuallyhidden", children: label }) }));
|
|
4
|
+
}
|
|
5
|
+
export default FeatureListCyclingButton;
|
|
6
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/button.jsx"],"names":[],"mappings":";AAAA,SAAS,wBAAwB,CAAC,EAAC,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAC;IAC5D,OAAO,CACN,iBACC,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,8DAA8D,SAAS,EAAE,KAChF,IAAI,YAER,eAAM,SAAS,EAAC,oBAAoB,YAAE,KAAK,GAAQ,GAC3C,CACT,CAAC;AACH,CAAC;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default FeatureListCyclingDot;
|
|
2
|
+
declare function FeatureListCyclingDot({ featureId, onFeatureSelection, onFeatureHighlight, onFeatureUnHighlight, isSelected, isHighlighted, updateScroll, }: {
|
|
3
|
+
featureId: any;
|
|
4
|
+
onFeatureSelection: any;
|
|
5
|
+
onFeatureHighlight: any;
|
|
6
|
+
onFeatureUnHighlight: any;
|
|
7
|
+
isSelected: any;
|
|
8
|
+
isHighlighted: any;
|
|
9
|
+
updateScroll: any;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=dot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dot.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/dot.jsx"],"names":[],"mappings":";AAEA;;;;;;;;4CAsCC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect } from "react";
|
|
3
|
+
function FeatureListCyclingDot({ featureId, onFeatureSelection, onFeatureHighlight, onFeatureUnHighlight, isSelected, isHighlighted, updateScroll, }) {
|
|
4
|
+
const onClick = useCallback(() => onFeatureSelection(featureId), [featureId, onFeatureSelection]);
|
|
5
|
+
const onMouseEnter = useCallback(() => (isSelected ? undefined : onFeatureHighlight(featureId)), [isSelected, onFeatureHighlight, featureId]);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
if (isSelected) {
|
|
8
|
+
updateScroll();
|
|
9
|
+
}
|
|
10
|
+
}, [isSelected, updateScroll]);
|
|
11
|
+
return (_jsx("button", { tabIndex: -1, type: "button", className: "ms3-list-cycling-box__dot " +
|
|
12
|
+
(isSelected ? " ms3-list-cycling-box__dot--selected" : "") +
|
|
13
|
+
(isHighlighted ? " ms3-list-cycling-box__dot--highlight" : ""), onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onFeatureUnHighlight }));
|
|
14
|
+
}
|
|
15
|
+
export default FeatureListCyclingDot;
|
|
16
|
+
//# sourceMappingURL=dot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dot.js","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/dot.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAE7C,SAAS,qBAAqB,CAAC,EAC9B,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,aAAa,EACb,YAAY,GACZ;IACA,MAAM,OAAO,GAAG,WAAW,CAC1B,GAAG,EAAE,CAAC,kBAAkB,CAAC,SAAS,CAAC,EACnC,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAC/B,CAAC;IACF,MAAM,YAAY,GAAG,WAAW,CAC/B,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,EAC9D,CAAC,UAAU,EAAE,kBAAkB,EAAE,SAAS,CAAC,CAC3C,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,UAAU,EAAE,CAAC;YAChB,YAAY,EAAE,CAAC;QAChB,CAAC;IACF,CAAC,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC,CAAC;IAE/B,OAAO,CACN,iBACC,QAAQ,EAAE,CAAC,CAAC,EACZ,IAAI,EAAC,QAAQ,EACb,SAAS,EACR,4BAA4B;YAC5B,CAAC,UAAU,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1D,CAAC,aAAa,CAAC,CAAC,CAAC,uCAAuC,CAAC,CAAC,CAAC,EAAE,CAAC,EAE/D,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,oBAAoB,GACjC,CACF,CAAC;AACH,CAAC;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("react").MemoExoticComponent<typeof FeatureListCycling>;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare function FeatureListCycling({ filteredFeatures, selectedFeatureId, highlightedFeatureId, onFeatureSelection, onFeatureHighlight, onFeatureUnHighlight, }: {
|
|
4
|
+
filteredFeatures: any;
|
|
5
|
+
selectedFeatureId: any;
|
|
6
|
+
highlightedFeatureId: any;
|
|
7
|
+
onFeatureSelection: any;
|
|
8
|
+
onFeatureHighlight: any;
|
|
9
|
+
onFeatureUnHighlight: any;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=feature-list-cycling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-list-cycling.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/feature-list-cycling.jsx"],"names":[],"mappings":";;AAcA;;;;;;;4CAwIC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import debounce from "lodash/debounce";
|
|
3
|
+
import { memo, useCallback, useEffect, useLayoutEffect, useRef, } from "react";
|
|
4
|
+
import { translate } from "../../helpers/i18n";
|
|
5
|
+
import FeatureListCyclingButton from "./button";
|
|
6
|
+
import FeatureListCyclingDot from "./dot";
|
|
7
|
+
function FeatureListCycling({ filteredFeatures, selectedFeatureId, highlightedFeatureId, onFeatureSelection, onFeatureHighlight, onFeatureUnHighlight, }) {
|
|
8
|
+
let selectedIdx;
|
|
9
|
+
if (filteredFeatures?.length) {
|
|
10
|
+
selectedIdx = filteredFeatures.findIndex((feature) => feature.id === selectedFeatureId);
|
|
11
|
+
}
|
|
12
|
+
if (selectedIdx === undefined) {
|
|
13
|
+
selectedIdx = -2;
|
|
14
|
+
}
|
|
15
|
+
const handlePrev = useCallback(() => {
|
|
16
|
+
if (filteredFeatures?.length) {
|
|
17
|
+
if (!selectedFeatureId) {
|
|
18
|
+
onFeatureSelection(filteredFeatures[0].id);
|
|
19
|
+
}
|
|
20
|
+
else if (selectedIdx > 0) {
|
|
21
|
+
onFeatureSelection(filteredFeatures[selectedIdx - 1].id);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
onFeatureSelection(filteredFeatures[filteredFeatures.length - 1].id);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}, [filteredFeatures, selectedFeatureId, onFeatureSelection, selectedIdx]);
|
|
28
|
+
const handleNext = useCallback(() => {
|
|
29
|
+
if (filteredFeatures?.length) {
|
|
30
|
+
if (selectedFeatureId &&
|
|
31
|
+
selectedIdx < filteredFeatures.length - 1) {
|
|
32
|
+
onFeatureSelection(filteredFeatures[selectedIdx + 1].id);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
onFeatureSelection(filteredFeatures[0].id);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}, [filteredFeatures, selectedFeatureId, onFeatureSelection, selectedIdx]);
|
|
39
|
+
const containerRef = useRef();
|
|
40
|
+
const container = containerRef.current;
|
|
41
|
+
const scroller = container?.querySelector(".ms3-list-cycling-box__dots-scroller");
|
|
42
|
+
const updateScroll = useCallback(() => {
|
|
43
|
+
if (container && scroller) {
|
|
44
|
+
const scrollerWidth = scroller.offsetWidth;
|
|
45
|
+
let scrollLeft;
|
|
46
|
+
const activeDotElement = scroller.querySelector(".ms3-list-cycling-box__dot--selected");
|
|
47
|
+
if (activeDotElement) {
|
|
48
|
+
scrollLeft = Math.max(0, activeDotElement.offsetLeft - scrollerWidth / 2);
|
|
49
|
+
scroller.scrollTo({
|
|
50
|
+
top: 0,
|
|
51
|
+
left: scrollLeft,
|
|
52
|
+
behavior: "smooth",
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
scrollLeft = scroller.scrollLeft;
|
|
57
|
+
}
|
|
58
|
+
const shadows = container.querySelector(".ms3-list-cycling-box__dots-shadows");
|
|
59
|
+
const dots = container.querySelector(".ms3-list-cycling-box__dots");
|
|
60
|
+
if (shadows && dots) {
|
|
61
|
+
const dotsWidth = dots.offsetWidth;
|
|
62
|
+
const hasOverflowLeft = dotsWidth > scrollerWidth && scrollLeft > 0;
|
|
63
|
+
const hasOverflowRight = dotsWidth - scrollLeft > scrollerWidth;
|
|
64
|
+
shadows.classList[hasOverflowLeft ? "add" : "remove"]("ms3-list-cycling-box__dots-shadows--overflow-left");
|
|
65
|
+
shadows.classList[hasOverflowRight ? "add" : "remove"]("ms3-list-cycling-box__dots-shadows--overflow-right");
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, [container, scroller]);
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
const debouncedUpdateScroll = debounce(updateScroll, 500);
|
|
71
|
+
window.addEventListener("resize", debouncedUpdateScroll);
|
|
72
|
+
return () => window.removeEventListener("resize", debouncedUpdateScroll);
|
|
73
|
+
}, [updateScroll]);
|
|
74
|
+
useLayoutEffect(updateScroll);
|
|
75
|
+
return (_jsxs("div", { className: "ms3-list-cycling-box", ref: containerRef, children: [_jsx(FeatureListCyclingButton, { direction: "prev", label: translate("prevEntry"), onClick: handlePrev }), _jsx("div", { className: "ms3-list-cycling-box__dots-shadows", children: _jsx("div", { className: "ms3-list-cycling-box__dots-scroller", children: _jsx("div", { className: "ms3-list-cycling-box__dots", children: filteredFeatures?.map((feature, index) => (_jsx(FeatureListCyclingDot, { featureId: feature.id, isSelected: feature.id === selectedFeatureId, isHighlighted: feature.id === highlightedFeatureId, onFeatureUnHighlight: onFeatureUnHighlight, onFeatureHighlight: onFeatureHighlight, onFeatureSelection: onFeatureSelection, updateScroll: updateScroll }, index))) }) }) }), _jsx(FeatureListCyclingButton, { direction: "next", label: translate("nextEntry"), onClick: handleNext })] }));
|
|
76
|
+
}
|
|
77
|
+
export default memo(FeatureListCycling);
|
|
78
|
+
//# sourceMappingURL=feature-list-cycling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-list-cycling.js","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/feature-list-cycling.jsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACN,IAAI,EACJ,WAAW,EACX,SAAS,EACT,eAAe,EACf,MAAM,GACN,MAAM,OAAO,CAAC;AAEf,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,OAAO,wBAAwB,MAAM,UAAU,CAAC;AAEhD,OAAO,qBAAqB,MAAM,OAAO,CAAC;AAE1C,SAAS,kBAAkB,CAAC,EAC3B,gBAAgB,EAChB,iBAAiB,EACjB,oBA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B,EAEpC,oBAAoB,EAAE,oBAAoB,EAC1C,kBAAkB,EAAE,kBAAkB,EACtC,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,YAAY,IATrB,KAAK,CAUT,CACF,CAAC,GACG,GACD,GACD,EACN,KAAC,wBAAwB,IACxB,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,SAAS,CAAC,WAAW,CAAC,EAC7B,OAAO,EAAE,UAAU,GAClB,IACG,CACN,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<({ filteredFeatures, selectedFeatureId, highlightedFeatureId, onFeatureSelection, onFeatureHighlight, onFeatureUnHighlight, }: {
|
|
2
|
+
filteredFeatures: any;
|
|
3
|
+
selectedFeatureId: any;
|
|
4
|
+
highlightedFeatureId: any;
|
|
5
|
+
onFeatureSelection: any;
|
|
6
|
+
onFeatureHighlight: any;
|
|
7
|
+
onFeatureUnHighlight: any;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element>, {
|
|
9
|
+
[x: string]: JSX.LibraryManagedAttributes<C, import("react-redux").GetProps<C>>;
|
|
10
|
+
[x: number]: JSX.LibraryManagedAttributes<C, import("react-redux").GetProps<C>>;
|
|
11
|
+
[x: symbol]: JSX.LibraryManagedAttributes<C, import("react-redux").GetProps<C>>;
|
|
12
|
+
context?: import("react-redux/es/components/Context").ReactReduxContextInstance | undefined;
|
|
13
|
+
store?: import("redux").Store | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { connect } from "react-redux";
|
|
2
|
+
import { batchActions } from "redux-batched-actions";
|
|
3
|
+
import { createSelector } from "reselect";
|
|
4
|
+
import { deselectAll, selectExclusively, } from "@mapsight/core/lib/feature-selections/actions";
|
|
5
|
+
import { createFeatureSelectionSelector, getFilteredFeatures, } from "@mapsight/core/lib/feature-selections/selectors";
|
|
6
|
+
import { FEATURE_SELECTIONS } from "../../config/constants/controllers";
|
|
7
|
+
import { FEATURE_SELECTION_HIGHLIGHT, FEATURE_SELECTION_SELECT, } from "../../config/feature/selections";
|
|
8
|
+
import FeatureListCycling from "./feature-list-cycling";
|
|
9
|
+
export default connect(
|
|
10
|
+
// stateProps selector
|
|
11
|
+
createSelector([
|
|
12
|
+
createFeatureSelectionSelector(FEATURE_SELECTIONS, FEATURE_SELECTION_SELECT),
|
|
13
|
+
createFeatureSelectionSelector(FEATURE_SELECTIONS, FEATURE_SELECTION_HIGHLIGHT),
|
|
14
|
+
], (selectSelection, highlightSelection) => {
|
|
15
|
+
const selectSelectionFeatures = getFilteredFeatures(selectSelection);
|
|
16
|
+
const highlightSelectionFeatures = getFilteredFeatures(highlightSelection);
|
|
17
|
+
return {
|
|
18
|
+
selectedFeatureId: selectSelectionFeatures && selectSelectionFeatures[0],
|
|
19
|
+
highlightedFeatureId: highlightSelectionFeatures && highlightSelectionFeatures[0],
|
|
20
|
+
};
|
|
21
|
+
}),
|
|
22
|
+
// dispatchProps
|
|
23
|
+
(dispatch) => ({
|
|
24
|
+
onFeatureSelection: (id, b, c) => {
|
|
25
|
+
const actions = [
|
|
26
|
+
deselectAll(FEATURE_SELECTIONS, FEATURE_SELECTION_HIGHLIGHT),
|
|
27
|
+
selectExclusively(FEATURE_SELECTIONS, FEATURE_SELECTION_SELECT, id, b, c),
|
|
28
|
+
];
|
|
29
|
+
dispatch(batchActions(actions));
|
|
30
|
+
},
|
|
31
|
+
onFeatureUnSelection: () => dispatch(deselectAll(FEATURE_SELECTIONS, FEATURE_SELECTION_SELECT)),
|
|
32
|
+
onFeatureHighlight: (id) => dispatch(selectExclusively(FEATURE_SELECTIONS, FEATURE_SELECTION_HIGHLIGHT, id)),
|
|
33
|
+
onFeatureUnHighlight: () => dispatch(deselectAll(FEATURE_SELECTIONS, FEATURE_SELECTION_HIGHLIGHT)),
|
|
34
|
+
}))(FeatureListCycling);
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAC;AAExC,OAAO,EACN,WAAW,EACX,iBAAiB,GACjB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACN,8BAA8B,EAC9B,mBAAmB,GACnB,MAAM,iDAAiD,CAAC;AAEzD,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AACtE,OAAO,EACN,2BAA2B,EAC3B,wBAAwB,GACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,kBAAkB,MAAM,wBAAwB,CAAC;AAExD,eAAe,OAAO;AACrB,sBAAsB;AACtB,cAAc,CACb;IACC,8BAA8B,CAC7B,kBAAkB,EAClB,wBAAwB,CACxB;IACD,8BAA8B,CAC7B,kBAAkB,EAClB,2BAA2B,CAC3B;CACD,EAED,CAAC,eAAe,EAAE,kBAAkB,EAAE,EAAE;IACvC,MAAM,uBAAuB,GAC5B,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACtC,MAAM,0BAA0B,GAC/B,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IAEzC,OAAO;QACN,iBAAiB,EAChB,uBAAuB,IAAI,uBAAuB,CAAC,CAAC,CAAC;QACtD,oBAAoB,EACnB,0BAA0B,IAAI,0BAA0B,CAAC,CAAC,CAAC;KAC5D,CAAC;AACH,CAAC,CACD;AAED,gBAAgB;AAChB,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IACd,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE;QAChC,MAAM,OAAO,GAAG;YACf,WAAW,CAAC,kBAAkB,EAAE,2BAA2B,CAAC;YAC5D,iBAAiB,CAChB,kBAAkB,EAClB,wBAAwB,EACxB,EAAE,EACF,CAAC,EACD,CAAC,CACD;SACD,CAAC;QAEF,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;IACjC,CAAC;IACD,oBAAoB,EAAE,GAAG,EAAE,CAC1B,QAAQ,CAAC,WAAW,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,CAAC;IACpE,kBAAkB,EAAE,CAAC,EAAE,EAAE,EAAE,CAC1B,QAAQ,CACP,iBAAiB,CAChB,kBAAkB,EAClB,2BAA2B,EAC3B,EAAE,CACF,CACD;IACF,oBAAoB,EAAE,GAAG,EAAE,CAC1B,QAAQ,CACP,WAAW,CAAC,kBAAkB,EAAE,2BAA2B,CAAC,CAC5D;CACF,CAAC,CACF,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default FeatureListItemHead;
|
|
2
|
+
/**
|
|
3
|
+
* @param {React.PropsWithChildren<object>} props props, see below
|
|
4
|
+
* @param {import('../../types').MapsightUiFeature} props.feature feature
|
|
5
|
+
* @param {boolean} props.isSelected isSelected
|
|
6
|
+
* @param {boolean} props.isHighlighted isHighlighted
|
|
7
|
+
* @param {boolean} props.highlightOnMouse highlightOnMouse
|
|
8
|
+
* @param {boolean} props.selectOnClick selectOnClick
|
|
9
|
+
* @param {boolean} props.deselectOnClick deselectOnClick
|
|
10
|
+
* @param {(featureId: import('../../types').MapsightUiFeatureId, options?: {keyboard: boolean}) => void} props.selectFeature selectFeature
|
|
11
|
+
* @param {(featureId: import('../../types').MapsightUiFeatureId, options?: {keyboard: boolean}) => void} props.deselectFeatures deselectFeatures
|
|
12
|
+
* @param {React.HTMLProps<HTMLButtonElement> | React.HTMLProps<HTMLAnchorElement>} [props.attributes] attributes
|
|
13
|
+
* @returns {React.ReactElement} element
|
|
14
|
+
*/
|
|
15
|
+
declare function FeatureListItemHead({ children, feature, isSelected, isHighlighted, highlightOnMouse, selectOnClick, deselectOnClick, selectFeature, deselectFeatures, className, ...attributes }: React.PropsWithChildren<object>): React.ReactElement;
|
|
16
|
+
//# sourceMappingURL=head.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"head.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-item/head.jsx"],"names":[],"mappings":";AAcA;;;;;;;;;;;;GAYG;AACH,oMAZW,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,GAU7B,KAAK,CAAC,YAAY,CAuG9B"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { deselectAll, selectExclusively, } from "@mapsight/core/lib/feature-selections/actions";
|
|
3
|
+
import { useCallback } from "react";
|
|
4
|
+
import { useDispatch } from "react-redux";
|
|
5
|
+
import { FEATURE_SELECTIONS } from "../../config/constants/controllers";
|
|
6
|
+
import { FEATURE_SELECTION_HIGHLIGHT } from "../../config/feature/selections";
|
|
7
|
+
import getFeatureProperty from "../../helpers/get-feature-property";
|
|
8
|
+
import FeatureSelectButton from "../feature-select-button";
|
|
9
|
+
/**
|
|
10
|
+
* @param {React.PropsWithChildren<object>} props props, see below
|
|
11
|
+
* @param {import('../../types').MapsightUiFeature} props.feature feature
|
|
12
|
+
* @param {boolean} props.isSelected isSelected
|
|
13
|
+
* @param {boolean} props.isHighlighted isHighlighted
|
|
14
|
+
* @param {boolean} props.highlightOnMouse highlightOnMouse
|
|
15
|
+
* @param {boolean} props.selectOnClick selectOnClick
|
|
16
|
+
* @param {boolean} props.deselectOnClick deselectOnClick
|
|
17
|
+
* @param {(featureId: import('../../types').MapsightUiFeatureId, options?: {keyboard: boolean}) => void} props.selectFeature selectFeature
|
|
18
|
+
* @param {(featureId: import('../../types').MapsightUiFeatureId, options?: {keyboard: boolean}) => void} props.deselectFeatures deselectFeatures
|
|
19
|
+
* @param {React.HTMLProps<HTMLButtonElement> | React.HTMLProps<HTMLAnchorElement>} [props.attributes] attributes
|
|
20
|
+
* @returns {React.ReactElement} element
|
|
21
|
+
*/
|
|
22
|
+
function FeatureListItemHead({ children, feature, isSelected, isHighlighted, highlightOnMouse, selectOnClick, deselectOnClick, selectFeature, deselectFeatures, className = "", ...attributes }) {
|
|
23
|
+
const permanentLink = getFeatureProperty(feature, "permanentLink");
|
|
24
|
+
const dispatch = useDispatch();
|
|
25
|
+
const onFeatureHighlight = useCallback(() => dispatch(selectExclusively(FEATURE_SELECTIONS, FEATURE_SELECTION_HIGHLIGHT, feature.id)), [dispatch, feature.id]);
|
|
26
|
+
const onFeatureUnHighlight = useCallback(() => dispatch(deselectAll(FEATURE_SELECTIONS, FEATURE_SELECTION_HIGHLIGHT)), [dispatch]);
|
|
27
|
+
if (highlightOnMouse) {
|
|
28
|
+
attributes.onMouseEnter = !isSelected ? onFeatureHighlight : undefined;
|
|
29
|
+
attributes.onMouseLeave = isHighlighted
|
|
30
|
+
? onFeatureUnHighlight
|
|
31
|
+
: undefined;
|
|
32
|
+
}
|
|
33
|
+
/*
|
|
34
|
+
* We support a range of interactive behaviours
|
|
35
|
+
* 1. Has some on-page click handler => <button> or <a role=button> (if it also has a permalink)
|
|
36
|
+
* 2. Does not have on-page click behaviour, but permalink => link <a>
|
|
37
|
+
* 3. Does have neither on-page click behaviour nor permalink, but should highlight on mouse => <span> with hover handlers
|
|
38
|
+
* 4. Not interactive at all => <span>
|
|
39
|
+
*/
|
|
40
|
+
// 1
|
|
41
|
+
if (feature.id && (selectOnClick || deselectOnClick)) {
|
|
42
|
+
return (_jsx(FeatureSelectButton, { tabIndex: -1, className: `${className} [ ms3-list__button ms3-list__button--selectable ]`, ...attributes, featureId: feature.id, isSelected: isSelected, selectOnClick: selectOnClick, deselectOnClick: deselectOnClick, onSelect: selectFeature, onDeselect: deselectFeatures, permanentLink: permanentLink, children: children }));
|
|
43
|
+
}
|
|
44
|
+
// 2.
|
|
45
|
+
if (permanentLink) {
|
|
46
|
+
return (_jsx("a", { tabIndex: -1, href: permanentLink, className: `${className} [ ms3-list__link ]`, ...attributes, children: children }));
|
|
47
|
+
}
|
|
48
|
+
// 3.
|
|
49
|
+
if (highlightOnMouse) {
|
|
50
|
+
return (_jsx("span", { className: `${className} [ ms3-list__button ]`, ...attributes, children: children }));
|
|
51
|
+
}
|
|
52
|
+
// 4.
|
|
53
|
+
return (_jsx("span", { className: className, ...attributes, children: children }));
|
|
54
|
+
}
|
|
55
|
+
export default FeatureListItemHead;
|
|
56
|
+
//# sourceMappingURL=head.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"head.js","sourceRoot":"","sources":["../../../src/js/components/feature-list-item/head.jsx"],"names":[],"mappings":";AAAA,OAAO,EACN,WAAW,EACX,iBAAiB,GACjB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AAClC,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAExC,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAC,2BAA2B,EAAC,MAAM,iCAAiC,CAAC;AAE5E,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AAEpE,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAE3D;;;;;;;;;;;;GAYG;AACH,SAAS,mBAAmB,CAAC,EAC5B,QAAQ,EACR,OAAO,EACP,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,SAAS,GAAG,EAAE,EACd,GAAG,UAAU,EACb;IACA,MAAM,aAAa,GAAG,kBAAkB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SAAS,EAAE,GAAG,SAAS,qBAAqB,KACxC,UAAU,YAEb,QAAQ,GACN,CACJ,CAAC;IACH,CAAC;IAED,KAAK;IACL,IAAI,gBAAgB,EAAE,CAAC;QACtB,OAAO,CACN,eACC,SAAS,EAAE,GAAG,SAAS,uBAAuB,KAC1C,UAAU,YAEb,QAAQ,GACH,CACP,CAAC;IACH,CAAC;IAED,KAAK;IACL,OAAO,CACN,eAAM,SAAS,EAAE,SAAS,KAAM,UAAU,YACxC,QAAQ,GACH,CACP,CAAC;AACH,CAAC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export default function useFeatureListItemScrollAndFocus(ref: any, showDetails: any, isPreselectedOnly: any, { scrollOnSelection, scrollOnPreselection, enableKeyboardControl }: {
|
|
2
|
+
scrollOnSelection: any;
|
|
3
|
+
scrollOnPreselection: any;
|
|
4
|
+
enableKeyboardControl: any;
|
|
5
|
+
}): void;
|
|
6
|
+
//# sourceMappingURL=useFeatureListItemScrollAndFocus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFeatureListItemScrollAndFocus.d.ts","sourceRoot":"","sources":["../../../../src/js/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.js"],"names":[],"mappings":"AAIA;;;;SA8CC"}
|