@mapsight/ui 7.0.3 → 7.2.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 +91 -2
- package/dist/components/app.d.ts +2 -2
- package/dist/components/app.d.ts.map +1 -1
- package/dist/components/app.js +7 -7
- package/dist/components/app.js.map +1 -1
- package/dist/components/feature-details-content/feature-details-content.d.ts +1 -1
- package/dist/components/feature-details-content/feature-details-content.d.ts.map +1 -1
- package/dist/components/feature-details-content/feature-details-content.js +2 -2
- package/dist/components/feature-details-content/feature-details-content.js.map +1 -1
- package/dist/components/feature-details-content/index.d.ts +4 -6
- package/dist/components/feature-details-content/index.js +6 -7
- package/dist/components/feature-details-content/index.js.map +1 -1
- package/dist/components/feature-details-content/share-feature-link-modal.d.ts +1 -1
- package/dist/components/feature-details-content/share-feature-link-modal.d.ts.map +1 -1
- package/dist/components/feature-list/context.d.ts +12 -4
- package/dist/components/feature-list/context.d.ts.map +1 -1
- package/dist/components/feature-list/context.js.map +1 -1
- package/dist/components/feature-list/empty-message.d.ts +1 -1
- package/dist/components/feature-list/empty-message.d.ts.map +1 -1
- package/dist/components/feature-list/filter.d.ts +1 -1
- package/dist/components/feature-list/filter.d.ts.map +1 -1
- package/dist/components/feature-list/filter.js +2 -2
- package/dist/components/feature-list/filter.js.map +1 -1
- package/dist/components/feature-list/footer.d.ts +1 -1
- package/dist/components/feature-list/footer.d.ts.map +1 -1
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.d.ts.map +1 -1
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.js +12 -3
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.js.map +1 -1
- package/dist/components/feature-list/hooks/useFeatureListState.d.ts.map +1 -1
- package/dist/components/feature-list/hooks/useFeatureListState.js +7 -2
- package/dist/components/feature-list/hooks/useFeatureListState.js.map +1 -1
- package/dist/components/feature-list/hooks/useRestoreDocumentScroll.js +1 -1
- package/dist/components/feature-list/hooks/useRestoreDocumentScroll.js.map +1 -1
- package/dist/components/feature-list/hooks/useSelectFeature.js +6 -6
- package/dist/components/feature-list/hooks/useSelectFeature.js.map +1 -1
- package/dist/components/feature-list/index.d.ts +3 -2
- package/dist/components/feature-list/index.d.ts.map +1 -1
- package/dist/components/feature-list/index.js +34 -46
- package/dist/components/feature-list/index.js.map +1 -1
- package/dist/components/feature-list/pagination.d.ts +1 -1
- package/dist/components/feature-list/pagination.d.ts.map +1 -1
- package/dist/components/feature-list/query-input.d.ts +1 -1
- package/dist/components/feature-list/query-input.d.ts.map +1 -1
- package/dist/components/feature-list/tag-switcher-control.d.ts +4 -0
- package/dist/components/feature-list/tag-switcher-control.d.ts.map +1 -0
- package/dist/components/feature-list/tag-switcher-control.js +10 -0
- package/dist/components/feature-list/tag-switcher-control.js.map +1 -0
- package/dist/components/feature-list-cycling/button.d.ts +1 -1
- package/dist/components/feature-list-cycling/button.d.ts.map +1 -1
- package/dist/components/feature-list-cycling/dot.d.ts +1 -1
- package/dist/components/feature-list-cycling/dot.d.ts.map +1 -1
- package/dist/components/feature-list-cycling/feature-list-cycling.d.ts +1 -1
- package/dist/components/feature-list-cycling/feature-list-cycling.d.ts.map +1 -1
- package/dist/components/feature-list-cycling/index.d.ts +4 -6
- package/dist/components/feature-list-cycling/index.js +1 -1
- package/dist/components/feature-list-cycling/index.js.map +1 -1
- package/dist/components/feature-list-item/icon.d.ts +8 -6
- package/dist/components/feature-list-item/icon.d.ts.map +1 -1
- package/dist/components/feature-list-item/icon.js +5 -13
- package/dist/components/feature-list-item/icon.js.map +1 -1
- package/dist/components/feature-list-item/index.d.ts +1 -1
- package/dist/components/feature-list-item/index.d.ts.map +1 -1
- package/dist/components/feature-list-sorting/feature-list-sorting.d.ts +1 -1
- package/dist/components/feature-list-sorting/feature-list-sorting.d.ts.map +1 -1
- package/dist/components/feature-list-sorting/feature-list-sorting.js +3 -12
- package/dist/components/feature-list-sorting/feature-list-sorting.js.map +1 -1
- package/dist/components/feature-list-sorting/index.d.ts +4 -16
- package/dist/components/feature-list-sorting/index.d.ts.map +1 -1
- package/dist/components/feature-list-sorting/index.js +6 -7
- package/dist/components/feature-list-sorting/index.js.map +1 -1
- package/dist/components/feature-list-sorting/status-indicator.d.ts +1 -1
- package/dist/components/feature-list-sorting/status-indicator.d.ts.map +1 -1
- package/dist/components/feature-select-button.d.ts +1 -1
- package/dist/components/feature-select-button.d.ts.map +1 -1
- package/dist/components/feature-selection-info/close-button.d.ts +1 -1
- package/dist/components/feature-selection-info/close-button.d.ts.map +1 -1
- package/dist/components/feature-selection-info/container.d.ts +1 -1
- package/dist/components/feature-selection-info/container.d.ts.map +1 -1
- package/dist/components/feature-selection-info/header.d.ts +1 -1
- package/dist/components/feature-selection-info/header.d.ts.map +1 -1
- package/dist/components/feature-selection-info/index.d.ts +1 -1
- package/dist/components/feature-selection-info/index.d.ts.map +1 -1
- package/dist/components/feature-selection-info/index.js +2 -2
- package/dist/components/feature-selection-info/index.js.map +1 -1
- package/dist/components/feature-selection-info/with-sticky-header.d.ts +10 -7
- package/dist/components/feature-selection-info/with-sticky-header.d.ts.map +1 -1
- package/dist/components/feature-selection-info/with-sticky-header.js +4 -4
- package/dist/components/feature-selection-info/with-sticky-header.js.map +1 -1
- package/dist/components/feature-selection-info/without-sticky-header.d.ts +1 -1
- package/dist/components/feature-selection-info/without-sticky-header.d.ts.map +1 -1
- package/dist/components/filter-toggle-control/FilterToggleControl.d.ts +12 -0
- package/dist/components/filter-toggle-control/FilterToggleControl.d.ts.map +1 -0
- package/dist/components/filter-toggle-control/FilterToggleControl.js +20 -0
- package/dist/components/filter-toggle-control/FilterToggleControl.js.map +1 -0
- package/dist/components/helping/app-channel.d.ts +1 -1
- package/dist/components/helping/app-channel.d.ts.map +1 -1
- package/dist/components/helping/app-context.d.ts +2 -2
- package/dist/components/helping/app-context.d.ts.map +1 -1
- package/dist/components/instance.d.ts +1 -1
- package/dist/components/instance.d.ts.map +1 -1
- package/dist/components/layer-switcher/GroupedLayerSwitcher.d.ts +1 -1
- package/dist/components/layer-switcher/GroupedLayerSwitcher.js +1 -1
- package/dist/components/layer-switcher/GroupedLayerSwitcher.js.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcher.d.ts +13 -12
- package/dist/components/layer-switcher/LayerSwitcher.d.ts.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcher.js +1 -1
- package/dist/components/layer-switcher/LayerSwitcher.js.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcherContainer.d.ts +16 -0
- package/dist/components/layer-switcher/LayerSwitcherContainer.d.ts.map +1 -0
- package/dist/components/layer-switcher/{LayerSwticherContainer.js → LayerSwitcherContainer.js} +4 -8
- package/dist/components/layer-switcher/LayerSwitcherContainer.js.map +1 -0
- package/dist/components/layer-switcher/LayerSwitcherEntry.d.ts +28 -12
- package/dist/components/layer-switcher/LayerSwitcherEntry.d.ts.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcherEntry.js +33 -35
- package/dist/components/layer-switcher/LayerSwitcherEntry.js.map +1 -1
- package/dist/components/layer-switcher/index.d.ts +9 -2
- package/dist/components/layer-switcher/index.d.ts.map +1 -1
- package/dist/components/layer-switcher/index.js +12 -21
- package/dist/components/layer-switcher/index.js.map +1 -1
- package/dist/components/layout/additional-container/content.d.ts +1 -1
- package/dist/components/layout/additional-container/content.d.ts.map +1 -1
- package/dist/components/layout/additional-container/index.d.ts +1 -1
- package/dist/components/layout/additional-container/index.d.ts.map +1 -1
- package/dist/components/layout/additional-container/marginal.d.ts +1 -1
- package/dist/components/layout/additional-container/marginal.d.ts.map +1 -1
- package/dist/components/layout/main-container.d.ts +1 -1
- package/dist/components/layout/main-container.d.ts.map +1 -1
- package/dist/components/layout/map-row.d.ts +1 -1
- package/dist/components/layout/map-row.d.ts.map +1 -1
- package/dist/components/layout/title-bar.d.ts +1 -1
- package/dist/components/layout/title-bar.d.ts.map +1 -1
- package/dist/components/layout/wrapper.d.ts +1 -1
- package/dist/components/layout/wrapper.d.ts.map +1 -1
- package/dist/components/layout/wrapper.js +1 -1
- package/dist/components/layout/wrapper.js.map +1 -1
- package/dist/components/link-share.d.ts +1 -1
- package/dist/components/link-share.d.ts.map +1 -1
- package/dist/components/main-panel/container.d.ts +1 -1
- package/dist/components/main-panel/container.d.ts.map +1 -1
- package/dist/components/main-panel/context.d.ts +6 -5
- package/dist/components/main-panel/context.d.ts.map +1 -1
- package/dist/components/main-panel/context.js +5 -13
- package/dist/components/main-panel/context.js.map +1 -1
- package/dist/components/main-panel/index.d.ts +1 -1
- package/dist/components/main-panel/index.d.ts.map +1 -1
- package/dist/components/main-panel/list-toggle-button.d.ts +1 -1
- package/dist/components/main-panel/list-toggle-button.d.ts.map +1 -1
- package/dist/components/main-panel/list-toggle-button.js +2 -2
- package/dist/components/main-panel/list-toggle-button.js.map +1 -1
- package/dist/components/map-overlay/attribution-entries.d.ts +1 -1
- package/dist/components/map-overlay/attribution-entries.d.ts.map +1 -1
- package/dist/components/map-overlay/attribution.d.ts +1 -1
- package/dist/components/map-overlay/attribution.d.ts.map +1 -1
- package/dist/components/map-overlay/attribution.js +1 -1
- package/dist/components/map-overlay/attribution.js.map +1 -1
- package/dist/components/map-overlay/combined-buttons.d.ts +1 -1
- package/dist/components/map-overlay/combined-buttons.d.ts.map +1 -1
- package/dist/components/map-overlay/index.d.ts +1 -1
- package/dist/components/map-overlay/index.d.ts.map +1 -1
- package/dist/components/map-overlay/info-overlay-left.d.ts +1 -1
- package/dist/components/map-overlay/info-overlay-left.d.ts.map +1 -1
- package/dist/components/map-overlay/info-overlay-left.js +2 -2
- package/dist/components/map-overlay/info-overlay-left.js.map +1 -1
- package/dist/components/map-overlay/info-overlay-modal.d.ts +1 -1
- package/dist/components/map-overlay/info-overlay-modal.d.ts.map +1 -1
- package/dist/components/map-overlay/info-overlay-right.d.ts +1 -1
- package/dist/components/map-overlay/info-overlay-right.d.ts.map +1 -1
- package/dist/components/map-overlay/info-overlay-right.js +2 -2
- package/dist/components/map-overlay/info-overlay-right.js.map +1 -1
- package/dist/components/map-overlay/layer-switcher-overlay.d.ts +1 -1
- package/dist/components/map-overlay/layer-switcher-overlay.d.ts.map +1 -1
- package/dist/components/map-overlay/legend.d.ts +1 -1
- package/dist/components/map-overlay/legend.d.ts.map +1 -1
- package/dist/components/map-overlay/legend.js +1 -1
- package/dist/components/map-overlay/legend.js.map +1 -1
- package/dist/components/map-overlay/logo.d.ts +1 -1
- package/dist/components/map-overlay/logo.d.ts.map +1 -1
- package/dist/components/map-overlay/measure-distance-button.d.ts +1 -1
- package/dist/components/map-overlay/measure-distance-button.d.ts.map +1 -1
- package/dist/components/map-overlay/measure-distance-button.js +1 -1
- package/dist/components/map-overlay/measure-distance-button.js.map +1 -1
- package/dist/components/map-overlay/measure-distance-overlay.d.ts +1 -1
- package/dist/components/map-overlay/measure-distance-overlay.d.ts.map +1 -1
- package/dist/components/map-overlay/mini-legend.js +2 -2
- package/dist/components/map-overlay/mini-legend.js.map +1 -1
- package/dist/components/map-overlay/region-selector.js +2 -2
- package/dist/components/map-overlay/region-selector.js.map +1 -1
- package/dist/components/map-overlay/search-overlay.d.ts +1 -1
- package/dist/components/map-overlay/search-overlay.d.ts.map +1 -1
- package/dist/components/map-overlay/search-overlay.js +1 -1
- package/dist/components/map-overlay/search-overlay.js.map +1 -1
- package/dist/components/map-overlay/share-position-link-button.d.ts +1 -1
- package/dist/components/map-overlay/share-position-link-button.d.ts.map +1 -1
- package/dist/components/map-overlay/share-position-link-button.js +1 -1
- package/dist/components/map-overlay/share-position-link-button.js.map +1 -1
- package/dist/components/map-overlay/tool-overlay.d.ts +1 -1
- package/dist/components/map-overlay/tool-overlay.d.ts.map +1 -1
- package/dist/components/map-overlay/zoom-buttons.d.ts +1 -1
- package/dist/components/map-overlay/zoom-buttons.d.ts.map +1 -1
- package/dist/components/map-synced-interlay/index.d.ts +3 -6
- package/dist/components/map-synced-interlay/index.d.ts.map +1 -1
- package/dist/components/map-synced-interlay/index.js +5 -6
- package/dist/components/map-synced-interlay/index.js.map +1 -1
- package/dist/components/map-synced-interlay/map-synced-interlay.d.ts +1 -1
- package/dist/components/map-synced-interlay/map-synced-interlay.d.ts.map +1 -1
- package/dist/components/map-synced-interlay/map-synced-interlay.js +1 -1
- package/dist/components/map-synced-interlay/map-synced-interlay.js.map +1 -1
- package/dist/components/map-synced-interlay/tooltip.d.ts +1 -1
- package/dist/components/map-synced-interlay/tooltip.d.ts.map +1 -1
- package/dist/components/map-synced-interlay/tooltip.js +1 -1
- package/dist/components/map-synced-interlay/tooltip.js.map +1 -1
- package/dist/components/map-wrapper.d.ts +3 -3
- package/dist/components/map-wrapper.d.ts.map +1 -1
- package/dist/components/map-wrapper.js +4 -7
- package/dist/components/map-wrapper.js.map +1 -1
- package/dist/components/map.d.ts +6 -5
- package/dist/components/map.d.ts.map +1 -1
- package/dist/components/map.js +15 -5
- package/dist/components/map.js.map +1 -1
- package/dist/components/mapsight-icon/mapsight-icon.d.ts +10 -0
- package/dist/components/mapsight-icon/mapsight-icon.d.ts.map +1 -0
- package/dist/components/mapsight-icon/mapsight-icon.js +33 -0
- package/dist/components/mapsight-icon/mapsight-icon.js.map +1 -0
- package/dist/components/modal.d.ts +1 -1
- package/dist/components/modal.d.ts.map +1 -1
- package/dist/components/query-input-with-label.d.ts +1 -1
- package/dist/components/query-input-with-label.d.ts.map +1 -1
- package/dist/components/search/index.d.ts +1 -1
- package/dist/components/search/index.d.ts.map +1 -1
- package/dist/components/search/index.js +2 -2
- package/dist/components/search/index.js.map +1 -1
- package/dist/components/search/result-entry.d.ts +1 -1
- package/dist/components/search/result-entry.d.ts.map +1 -1
- package/dist/components/search/result-entry.js +1 -1
- package/dist/components/search/result-entry.js.map +1 -1
- package/dist/components/search/result.d.ts +1 -1
- package/dist/components/search/result.d.ts.map +1 -1
- package/dist/components/search/result.js +1 -1
- package/dist/components/search/result.js.map +1 -1
- package/dist/components/switcher/GroupedSwitcher.d.ts +1 -1
- package/dist/components/switcher/GroupedSwitcher.d.ts.map +1 -1
- package/dist/components/switcher/Switcher.d.ts +1 -1
- package/dist/components/switcher/Switcher.d.ts.map +1 -1
- package/dist/components/switcher/SwitcherButton.d.ts +1 -1
- package/dist/components/switcher/SwitcherButton.d.ts.map +1 -1
- package/dist/components/switcher/SwitcherEntry.d.ts +21 -3
- package/dist/components/switcher/SwitcherEntry.d.ts.map +1 -1
- package/dist/components/switcher/SwitcherEntry.js +8 -9
- package/dist/components/switcher/SwitcherEntry.js.map +1 -1
- package/dist/components/switcher/SwitcherHeader.d.ts +1 -1
- package/dist/components/switcher/SwitcherHeader.d.ts.map +1 -1
- package/dist/components/switcher/SwitcherStatusIcon.d.ts +1 -1
- package/dist/components/switcher/SwitcherStatusIcon.d.ts.map +1 -1
- package/dist/components/tag-switcher/TagSwitcher.d.ts +3 -3
- package/dist/components/tag-switcher/TagSwitcher.d.ts.map +1 -1
- package/dist/components/tag-switcher/TagSwitcher.js.map +1 -1
- package/dist/components/tag-switcher/createTagSwitcherEntry.d.ts +13 -11
- package/dist/components/tag-switcher/createTagSwitcherEntry.d.ts.map +1 -1
- package/dist/components/tag-switcher/createTagSwitcherEntry.js +6 -12
- package/dist/components/tag-switcher/createTagSwitcherEntry.js.map +1 -1
- package/dist/components/tag-switcher/createTagSwitcherHeader.d.ts +12 -10
- package/dist/components/tag-switcher/createTagSwitcherHeader.d.ts.map +1 -1
- package/dist/components/tag-switcher/createTagSwitcherHeader.js +5 -5
- package/dist/components/tag-switcher/createTagSwitcherHeader.js.map +1 -1
- package/dist/components/tag-switcher/index.d.ts +3 -6
- package/dist/components/tag-switcher/index.d.ts.map +1 -1
- package/dist/components/tag-switcher/index.js +6 -7
- package/dist/components/tag-switcher/index.js.map +1 -1
- package/dist/components/time-filter.d.ts +1 -1
- package/dist/components/time-filter.d.ts.map +1 -1
- package/dist/components/view-toggle-button/desktop-button.d.ts +1 -1
- package/dist/components/view-toggle-button/desktop-button.d.ts.map +1 -1
- package/dist/components/view-toggle-button/index.d.ts +7 -6
- package/dist/components/view-toggle-button/index.d.ts.map +1 -1
- package/dist/components/view-toggle-button/index.js +8 -8
- package/dist/components/view-toggle-button/index.js.map +1 -1
- package/dist/components/view-toggle-button/mobile-button.d.ts +1 -1
- package/dist/components/view-toggle-button/mobile-button.d.ts.map +1 -1
- package/dist/components/view-toggle-button/mobile-button.js.map +1 -1
- package/dist/components/view-toggle-button/view-toggle-button.d.ts +1 -1
- package/dist/components/view-toggle-button/view-toggle-button.d.ts.map +1 -1
- package/dist/components/view-toggle-button/view-toggle-button.js +1 -1
- package/dist/components/view-toggle-button/view-toggle-button.js.map +1 -1
- package/dist/components/view-toggle-button/viewport-button.d.ts +1 -1
- package/dist/components/view-toggle-button/viewport-button.d.ts.map +1 -1
- package/dist/components/view-toggle-button/viewport-button.js.map +1 -1
- package/dist/config/feature/sources.d.ts +8 -5
- package/dist/config/feature/sources.d.ts.map +1 -1
- package/dist/config/feature/sources.js +10 -0
- package/dist/config/feature/sources.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/map/featureInteractions.js.map +1 -1
- package/dist/config/map/layers.d.ts +16 -13
- package/dist/config/map/layers.d.ts.map +1 -1
- package/dist/config/map/layers.js.map +1 -1
- package/dist/config/schema/index.d.ts +195 -0
- package/dist/config/schema/index.d.ts.map +1 -0
- package/dist/config/schema/index.js +26 -0
- package/dist/config/schema/index.js.map +1 -0
- package/dist/config/schema/validate.d.ts +8 -0
- package/dist/config/schema/validate.d.ts.map +1 -0
- package/dist/config/schema/validate.js +7 -0
- package/dist/config/schema/validate.js.map +1 -0
- package/dist/controllers/defaults.d.ts.map +1 -1
- package/dist/controllers/defaults.js +5 -0
- package/dist/controllers/defaults.js.map +1 -1
- package/dist/filters/tag-filter.d.ts +7 -0
- package/dist/filters/tag-filter.d.ts.map +1 -1
- package/dist/filters/tag-filter.js +10 -0
- package/dist/filters/tag-filter.js.map +1 -1
- package/dist/filters/time-filter.d.ts +9 -0
- package/dist/filters/time-filter.d.ts.map +1 -1
- package/dist/filters/time-filter.js +10 -0
- package/dist/filters/time-filter.js.map +1 -1
- package/dist/helpers/components.d.ts +1 -1
- package/dist/helpers/components.d.ts.map +1 -1
- package/dist/helpers/create-action-watcher.d.ts +1 -1
- package/dist/helpers/create-action-watcher.d.ts.map +1 -1
- package/dist/helpers/create-action-watcher.js +1 -1
- package/dist/helpers/create-action-watcher.js.map +1 -1
- package/dist/helpers/i18n/de.d.ts.map +1 -1
- package/dist/helpers/i18n/de.js +1 -0
- package/dist/helpers/i18n/de.js.map +1 -1
- package/dist/helpers/i18n/en.d.ts.map +1 -1
- package/dist/helpers/i18n/en.js +1 -0
- package/dist/helpers/i18n/en.js.map +1 -1
- package/dist/helpers/sort-features-by-distance.d.ts +2 -7
- package/dist/helpers/sort-features-by-distance.d.ts.map +1 -1
- package/dist/helpers/sort-features-by-distance.js +27 -39
- package/dist/helpers/sort-features-by-distance.js.map +1 -1
- package/dist/hooks/useMapsightIcon.d.ts +8 -0
- package/dist/hooks/useMapsightIcon.d.ts.map +1 -0
- package/dist/hooks/useMapsightIcon.js +50 -0
- package/dist/hooks/useMapsightIcon.js.map +1 -0
- package/dist/hooks/useMountable.d.ts +2 -2
- package/dist/hooks/useMountable.d.ts.map +1 -1
- package/dist/hooks/useMountable.js +6 -0
- package/dist/hooks/useMountable.js.map +1 -1
- package/dist/hooks/useStickyHeader.d.ts +3 -3
- package/dist/hooks/useStickyHeader.d.ts.map +1 -1
- package/dist/hooks/useStickyHeader.js +3 -3
- package/dist/hooks/useStickyHeader.js.map +1 -1
- package/dist/hooks/useUpdateMapSizeCallback.d.ts +1 -1
- package/dist/hooks/useUpdateMapSizeCallback.d.ts.map +1 -1
- package/dist/hooks/useUpdateMapSizeOnRender.d.ts +1 -1
- package/dist/hooks/useUpdateMapSizeOnRender.d.ts.map +1 -1
- package/dist/hooks/useUpdateMapSizeOnTransitionEnd.d.ts +1 -1
- package/dist/hooks/useUpdateMapSizeOnTransitionEnd.d.ts.map +1 -1
- package/dist/hooks/useUpdateMapSizeOnViewChange.d.ts +1 -1
- package/dist/hooks/useUpdateMapSizeOnViewChange.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/plugins/browser/app-title.d.ts +1 -1
- package/dist/plugins/browser/app-title.d.ts.map +1 -1
- package/dist/plugins/browser/feature-deep-link.d.ts +1 -1
- package/dist/plugins/browser/feature-deep-link.d.ts.map +1 -1
- package/dist/plugins/browser/feature-deep-link.js.map +1 -1
- package/dist/plugins/browser/local-storage.d.ts +1 -1
- package/dist/plugins/browser/local-storage.d.ts.map +1 -1
- package/dist/plugins/browser/native-fullscreen.d.ts +2 -2
- package/dist/plugins/browser/native-fullscreen.d.ts.map +1 -1
- package/dist/plugins/browser/no-scroll.d.ts +3 -4
- package/dist/plugins/browser/no-scroll.d.ts.map +1 -1
- package/dist/plugins/browser/no-scroll.js.map +1 -1
- package/dist/plugins/browser/partial-content-changed-event.d.ts +1 -1
- package/dist/plugins/browser/partial-content-changed-event.d.ts.map +1 -1
- package/dist/plugins/browser/piwik-track-feature-selection-event.d.ts +1 -1
- package/dist/plugins/browser/piwik-track-feature-selection-event.d.ts.map +1 -1
- package/dist/plugins/browser/piwik-track-fullscreen-toggle-event.d.ts +1 -1
- package/dist/plugins/browser/piwik-track-fullscreen-toggle-event.d.ts.map +1 -1
- package/dist/plugins/browser/search.d.ts +1 -1
- package/dist/plugins/browser/search.d.ts.map +1 -1
- package/dist/plugins/browser/share-position-link.d.ts +1 -1
- package/dist/plugins/browser/share-position-link.d.ts.map +1 -1
- package/dist/plugins/browser/share-position-link.js +1 -1
- package/dist/plugins/browser/share-position-link.js.map +1 -1
- package/dist/plugins/browser/toggle-mobile-views.d.ts +1 -1
- package/dist/plugins/browser/toggle-mobile-views.d.ts.map +1 -1
- package/dist/plugins/browser/user-geolocation.d.ts +1 -1
- package/dist/plugins/browser/user-geolocation.d.ts.map +1 -1
- package/dist/plugins/browser/user-geolocation.js +7 -6
- package/dist/plugins/browser/user-geolocation.js.map +1 -1
- package/dist/plugins/browser/views.d.ts +1 -1
- package/dist/plugins/browser/views.d.ts.map +1 -1
- package/dist/plugins/browser-defaults.d.ts +15 -13
- package/dist/plugins/browser-defaults.d.ts.map +1 -1
- package/dist/plugins/browser-defaults.js +18 -13
- package/dist/plugins/browser-defaults.js.map +1 -1
- package/dist/plugins/common/combined-visible-layers.d.ts +15 -0
- package/dist/plugins/common/combined-visible-layers.d.ts.map +1 -0
- package/dist/plugins/common/combined-visible-layers.js +63 -0
- package/dist/plugins/common/combined-visible-layers.js.map +1 -0
- package/dist/plugins/common/feature-selection-details-url.d.ts +1 -1
- package/dist/plugins/common/feature-selection-details-url.d.ts.map +1 -1
- package/dist/plugins/common/measure-distance.d.ts +1 -1
- package/dist/plugins/common/measure-distance.d.ts.map +1 -1
- package/dist/plugins/common/measure-distance.js +1 -1
- package/dist/plugins/common/measure-distance.js.map +1 -1
- package/dist/plugins/common/ol-proxy.d.ts +1 -1
- package/dist/plugins/common/ol-proxy.d.ts.map +1 -1
- package/dist/plugins/common/render-await-feature-details-loaded.d.ts +1 -1
- package/dist/plugins/common/render-await-feature-details-loaded.d.ts.map +1 -1
- package/dist/plugins/common/render-await-feature-details-loaded.js +2 -1
- package/dist/plugins/common/render-await-feature-details-loaded.js.map +1 -1
- package/dist/plugins/common/render-await-list-feature-sources-loaded.d.ts +1 -1
- package/dist/plugins/common/render-await-list-feature-sources-loaded.d.ts.map +1 -1
- package/dist/plugins/common/render-await-list-feature-sources-loaded.js +2 -1
- package/dist/plugins/common/render-await-list-feature-sources-loaded.js.map +1 -1
- package/dist/plugins/common/runtime-icon-style.d.ts +12 -0
- package/dist/plugins/common/runtime-icon-style.d.ts.map +1 -0
- package/dist/plugins/common/runtime-icon-style.js +58 -0
- package/dist/plugins/common/runtime-icon-style.js.map +1 -0
- package/dist/plugins/server/feature-deep-link.d.ts +1 -1
- package/dist/plugins/server/feature-deep-link.d.ts.map +1 -1
- package/dist/plugins/server-defaults.d.ts +4 -4
- package/dist/plugins/server-defaults.d.ts.map +1 -1
- package/dist/plugins/server-defaults.js +4 -4
- package/dist/plugins/server-defaults.js.map +1 -1
- package/dist/react-modal-app-element.d.ts +6 -0
- package/dist/react-modal-app-element.d.ts.map +1 -0
- package/dist/react-modal-app-element.js +9 -0
- package/dist/react-modal-app-element.js.map +1 -0
- package/dist/renderer/browser-dom.d.ts.map +1 -1
- package/dist/renderer/browser-dom.js +6 -2
- package/dist/renderer/browser-dom.js.map +1 -1
- package/dist/renderer/server-string.js +2 -2
- package/dist/renderer/server-string.js.map +1 -1
- package/dist/store/actions.d.ts +4 -2
- package/dist/store/actions.d.ts.map +1 -1
- package/dist/store/actions.js +7 -2
- package/dist/store/actions.js.map +1 -1
- package/dist/store/reducers.d.ts +224 -9
- package/dist/store/reducers.d.ts.map +1 -1
- package/dist/store/reducers.js +1 -1
- package/dist/store/reducers.js.map +1 -1
- package/dist/store/selectors.d.ts +267 -243
- package/dist/store/selectors.d.ts.map +1 -1
- package/dist/store/selectors.js +58 -69
- package/dist/store/selectors.js.map +1 -1
- package/dist/types.d.ts +65 -36
- package/dist/types.d.ts.map +1 -1
- package/package.json +26 -11
- package/src/scss/blocks/_features-sorting.scss +0 -13
- package/src/scss/blocks/_filter-button.scss +23 -0
- package/src/scss/blocks/_filter-toggle-control.scss +15 -0
- package/src/scss/default.scss +1 -0
- package/dist/components/layer-switcher/LayerSwticherContainer.d.ts +0 -4
- package/dist/components/layer-switcher/LayerSwticherContainer.d.ts.map +0 -1
- package/dist/components/layer-switcher/LayerSwticherContainer.js.map +0 -1
- package/src/img/mapsight-ui/check-empty.svg +0 -1
- package/src/img/mapsight-ui/check.svg +0 -2
- package/src/img/mapsight-ui/close-list.svg +0 -1
- package/src/img/mapsight-ui/close.svg +0 -1
- package/src/img/mapsight-ui/error.svg +0 -1
- package/src/img/mapsight-ui/fullscreen-close.svg +0 -1
- package/src/img/mapsight-ui/fullscreen.svg +0 -1
- package/src/img/mapsight-ui/geo-active.svg +0 -1
- package/src/img/mapsight-ui/geo-error.svg +0 -1
- package/src/img/mapsight-ui/geo-inactive.svg +0 -1
- package/src/img/mapsight-ui/info.svg +0 -1
- package/src/img/mapsight-ui/layers.svg +0 -1
- package/src/img/mapsight-ui/loading.svg +0 -1
- package/src/img/mapsight-ui/map.svg +0 -1
- package/src/img/mapsight-ui/measure-distance.svg +0 -7
- package/src/img/mapsight-ui/open-list.svg +0 -1
- package/src/img/mapsight-ui/place-marker.svg +0 -4
- package/src/img/mapsight-ui/print.svg +0 -4
- package/src/img/mapsight-ui/reset-active.svg +0 -1
- package/src/img/mapsight-ui/reset.svg +0 -1
- package/src/img/mapsight-ui/search.svg +0 -1
- package/src/img/mapsight-ui/sharing.svg +0 -7
- package/src/img/mapsight-ui/sort-active.svg +0 -1
- package/src/img/mapsight-ui/sort.svg +0 -1
- package/src/img/mapsight-ui/watermark.svg +0 -1
- package/src/img/mapsight-ui/zoom-in.svg +0 -3
- package/src/img/mapsight-ui/zoom-out.svg +0 -3
- package/src/js/components/app.jsx +0 -237
- package/src/js/components/close-overlay-button.tsx +0 -27
- package/src/js/components/feature-details-content/feature-details-content-inner.tsx +0 -116
- package/src/js/components/feature-details-content/feature-details-content.jsx +0 -185
- package/src/js/components/feature-details-content/index.js +0 -20
- package/src/js/components/feature-details-content/share-feature-link-modal.jsx +0 -56
- package/src/js/components/feature-list/content.jsx +0 -42
- package/src/js/components/feature-list/context.tsx +0 -47
- package/src/js/components/feature-list/empty-message.jsx +0 -15
- package/src/js/components/feature-list/filter.jsx +0 -35
- package/src/js/components/feature-list/footer.jsx +0 -5
- package/src/js/components/feature-list/grouped-content.jsx +0 -74
- package/src/js/components/feature-list/header.jsx +0 -7
- package/src/js/components/feature-list/hooks/useAutoloadFeatureSource.ts +0 -25
- package/src/js/components/feature-list/hooks/useFeatureListFeatureSource.ts +0 -22
- package/src/js/components/feature-list/hooks/useFeatureListItemGroups.ts +0 -127
- package/src/js/components/feature-list/hooks/useFeatureListState.ts +0 -90
- package/src/js/components/feature-list/hooks/useKeyboardNavigation.js +0 -112
- package/src/js/components/feature-list/hooks/useMakeHeaderSticky.js +0 -40
- package/src/js/components/feature-list/hooks/usePaginatedFilteredFeatures.ts +0 -129
- package/src/js/components/feature-list/hooks/useRestoreDocumentScroll.js +0 -12
- package/src/js/components/feature-list/hooks/useSelectFeature.js +0 -88
- package/src/js/components/feature-list/index.jsx +0 -278
- package/src/js/components/feature-list/pagination.tsx +0 -57
- package/src/js/components/feature-list/query-input.jsx +0 -14
- package/src/js/components/feature-list-cycling/button.jsx +0 -13
- package/src/js/components/feature-list-cycling/dot.jsx +0 -43
- package/src/js/components/feature-list-cycling/feature-list-cycling.jsx +0 -153
- package/src/js/components/feature-list-cycling/index.js +0 -82
- package/src/js/components/feature-list-item/head.jsx +0 -131
- package/src/js/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.js +0 -51
- package/src/js/components/feature-list-item/hooks/useFeatureListItemState.ts +0 -75
- package/src/js/components/feature-list-item/icon.jsx +0 -35
- package/src/js/components/feature-list-item/index.jsx +0 -168
- package/src/js/components/feature-list-sorting/feature-list-sorting.tsx +0 -144
- package/src/js/components/feature-list-sorting/index.js +0 -25
- package/src/js/components/feature-list-sorting/status-indicator.jsx +0 -10
- package/src/js/components/feature-select-button.jsx +0 -70
- package/src/js/components/feature-selection-info/close-button.jsx +0 -64
- package/src/js/components/feature-selection-info/container.jsx +0 -9
- package/src/js/components/feature-selection-info/header.tsx +0 -27
- package/src/js/components/feature-selection-info/index.tsx +0 -81
- package/src/js/components/feature-selection-info/with-sticky-header.jsx +0 -61
- package/src/js/components/feature-selection-info/without-sticky-header.jsx +0 -19
- package/src/js/components/feature-selection-info/wrapper.jsx +0 -43
- package/src/js/components/helping/app-channel.tsx +0 -99
- package/src/js/components/helping/app-context.tsx +0 -32
- package/src/js/components/helping/visibility-wrapper.jsx +0 -23
- package/src/js/components/instance.tsx +0 -48
- package/src/js/components/layer-switcher/GroupedLayerSwitcher.js +0 -47
- package/src/js/components/layer-switcher/LayerSwitcher.js +0 -27
- package/src/js/components/layer-switcher/LayerSwitcherEntry.js +0 -132
- package/src/js/components/layer-switcher/LayerSwticherContainer.jsx +0 -80
- package/src/js/components/layer-switcher/index.js +0 -47
- package/src/js/components/layout/additional-container/content.jsx +0 -10
- package/src/js/components/layout/additional-container/index.jsx +0 -5
- package/src/js/components/layout/additional-container/marginal.jsx +0 -10
- package/src/js/components/layout/main-container.jsx +0 -5
- package/src/js/components/layout/map-row.jsx +0 -5
- package/src/js/components/layout/title-bar.tsx +0 -25
- package/src/js/components/layout/wrapper.jsx +0 -28
- package/src/js/components/link-share.jsx +0 -78
- package/src/js/components/main-panel/container.tsx +0 -23
- package/src/js/components/main-panel/context.jsx +0 -62
- package/src/js/components/main-panel/index.tsx +0 -46
- package/src/js/components/main-panel/list-toggle-button.jsx +0 -43
- package/src/js/components/map-overlay/area.jsx +0 -17
- package/src/js/components/map-overlay/attribution-entries.tsx +0 -33
- package/src/js/components/map-overlay/attribution.tsx +0 -25
- package/src/js/components/map-overlay/combined-buttons.jsx +0 -5
- package/src/js/components/map-overlay/index.jsx +0 -5
- package/src/js/components/map-overlay/info-overlay-left.jsx +0 -51
- package/src/js/components/map-overlay/info-overlay-modal.tsx +0 -49
- package/src/js/components/map-overlay/info-overlay-right.jsx +0 -46
- package/src/js/components/map-overlay/layer-switcher-overlay.tsx +0 -100
- package/src/js/components/map-overlay/legend.tsx +0 -22
- package/src/js/components/map-overlay/logo.jsx +0 -11
- package/src/js/components/map-overlay/measure-distance-button.tsx +0 -116
- package/src/js/components/map-overlay/measure-distance-overlay.jsx +0 -56
- package/src/js/components/map-overlay/mini-legend.jsx +0 -103
- package/src/js/components/map-overlay/region-selector.jsx +0 -63
- package/src/js/components/map-overlay/search-overlay.jsx +0 -79
- package/src/js/components/map-overlay/share-position-link-button.tsx +0 -144
- package/src/js/components/map-overlay/tool-overlay.tsx +0 -28
- package/src/js/components/map-overlay/user-geo-location-button.jsx +0 -89
- package/src/js/components/map-overlay/zoom-button.jsx +0 -98
- package/src/js/components/map-overlay/zoom-buttons.jsx +0 -26
- package/src/js/components/map-synced-interlay/index.js +0 -17
- package/src/js/components/map-synced-interlay/map-synced-interlay.jsx +0 -22
- package/src/js/components/map-synced-interlay/tooltip-content.tsx +0 -22
- package/src/js/components/map-synced-interlay/tooltip.tsx +0 -199
- package/src/js/components/map-wrapper.tsx +0 -65
- package/src/js/components/map.jsx +0 -37
- package/src/js/components/modal.tsx +0 -40
- package/src/js/components/query-input-with-label.tsx +0 -71
- package/src/js/components/query-input.tsx +0 -81
- package/src/js/components/search/index.jsx +0 -83
- package/src/js/components/search/query-input.jsx +0 -20
- package/src/js/components/search/result-entry.jsx +0 -63
- package/src/js/components/search/result.jsx +0 -71
- package/src/js/components/switcher/GroupedSwitcher.jsx +0 -42
- package/src/js/components/switcher/Switcher.jsx +0 -54
- package/src/js/components/switcher/SwitcherButton.jsx +0 -23
- package/src/js/components/switcher/SwitcherEntry.jsx +0 -143
- package/src/js/components/switcher/SwitcherHeader.jsx +0 -58
- package/src/js/components/switcher/SwitcherStatusIcon.jsx +0 -36
- package/src/js/components/tag-switcher/TagSwitcher.jsx +0 -57
- package/src/js/components/tag-switcher/createTagSwitcherEntry.js +0 -41
- package/src/js/components/tag-switcher/createTagSwitcherHeader.js +0 -34
- package/src/js/components/tag-switcher/index.js +0 -20
- package/src/js/components/time-filter.jsx +0 -187
- package/src/js/components/view-toggle-button/desktop-button.jsx +0 -13
- package/src/js/components/view-toggle-button/index.js +0 -39
- package/src/js/components/view-toggle-button/mobile-button.jsx +0 -13
- package/src/js/components/view-toggle-button/view-toggle-button.jsx +0 -74
- package/src/js/components/view-toggle-button/viewport-button.jsx +0 -13
- package/src/js/config/constants/app.ts +0 -16
- package/src/js/config/constants/controllers.ts +0 -11
- package/src/js/config/feature/selections.ts +0 -13
- package/src/js/config/feature/sources.ts +0 -77
- package/src/js/config/index.ts +0 -133
- package/src/js/config/map/featureInteractions.ts +0 -53
- package/src/js/config/map/interactions.ts +0 -15
- package/src/js/config/map/layers.ts +0 -190
- package/src/js/controllers/defaults.ts +0 -36
- package/src/js/embed/browser.ts +0 -89
- package/src/js/embed/node.ts +0 -57
- package/src/js/filters/tag-filter.ts +0 -135
- package/src/js/filters/time-filter.ts +0 -53
- package/src/js/global.d.ts +0 -7
- package/src/js/helpers/components.ts +0 -66
- package/src/js/helpers/create-action-watcher.ts +0 -35
- package/src/js/helpers/events.ts +0 -11
- package/src/js/helpers/get-feature-property.ts +0 -14
- package/src/js/helpers/i18n/de.ts +0 -145
- package/src/js/helpers/i18n/en.ts +0 -140
- package/src/js/helpers/i18n/index.ts +0 -41
- package/src/js/helpers/makeReplaceableComponent.ts +0 -0
- package/src/js/helpers/mod-classes.ts +0 -47
- package/src/js/helpers/react.ts +0 -14
- package/src/js/helpers/scroll-to-element-top.ts +0 -16
- package/src/js/helpers/sort-features-by-distance.ts +0 -102
- package/src/js/helpers/sticky.js +0 -143
- package/src/js/hooks/useCallbackRef.ts +0 -14
- package/src/js/hooks/useControllableState.ts +0 -50
- package/src/js/hooks/useDebounce.ts +0 -32
- package/src/js/hooks/useHandleEscapeKeyDown.ts +0 -27
- package/src/js/hooks/useMapsightPanel.ts +0 -40
- package/src/js/hooks/useMountable.ts +0 -38
- package/src/js/hooks/usePrevious.ts +0 -15
- package/src/js/hooks/useStickyHeader.ts +0 -51
- package/src/js/hooks/useUpdateMapSizeCallback.ts +0 -32
- package/src/js/hooks/useUpdateMapSizeOnRender.ts +0 -16
- package/src/js/hooks/useUpdateMapSizeOnTransitionEnd.ts +0 -40
- package/src/js/hooks/useUpdateMapSizeOnViewChange.ts +0 -36
- package/src/js/index.ts +0 -319
- package/src/js/plugins/browser/app-title.ts +0 -36
- package/src/js/plugins/browser/debug.ts +0 -37
- package/src/js/plugins/browser/feature-deep-link.ts +0 -222
- package/src/js/plugins/browser/local-storage.ts +0 -79
- package/src/js/plugins/browser/native-fullscreen.ts +0 -81
- package/src/js/plugins/browser/no-scroll.ts +0 -90
- package/src/js/plugins/browser/partial-content-changed-event.ts +0 -23
- package/src/js/plugins/browser/piwik-track-feature-selection-event.ts +0 -75
- package/src/js/plugins/browser/piwik-track-fullscreen-toggle-event.ts +0 -46
- package/src/js/plugins/browser/search.ts +0 -42
- package/src/js/plugins/browser/share-position-link.ts +0 -463
- package/src/js/plugins/browser/toggle-mobile-views.ts +0 -60
- package/src/js/plugins/browser/user-geolocation.ts +0 -134
- package/src/js/plugins/browser/views.ts +0 -141
- package/src/js/plugins/browser-defaults.ts +0 -101
- package/src/js/plugins/common/feature-selection-details-url.ts +0 -135
- package/src/js/plugins/common/lang.ts +0 -17
- package/src/js/plugins/common/measure-distance.ts +0 -223
- package/src/js/plugins/common/ol-proxy.ts +0 -68
- package/src/js/plugins/common/render-await-feature-details-loaded.ts +0 -153
- package/src/js/plugins/common/render-await-list-feature-sources-loaded.ts +0 -108
- package/src/js/plugins/server/feature-deep-link.ts +0 -67
- package/src/js/plugins/server-defaults.ts +0 -36
- package/src/js/renderer/browser-dom.tsx +0 -23
- package/src/js/renderer/server-string.tsx +0 -17
- package/src/js/server-handler.js +0 -39
- package/src/js/store/actions.ts +0 -648
- package/src/js/store/reducers.ts +0 -491
- package/src/js/store/selectors.ts +0 -449
- package/src/js/types.ts +0 -381
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { deselectAll } from "@mapsight/core/lib/feature-selections/actions";
|
|
3
2
|
import { forwardRef, useCallback, useMemo, useRef } from "react";
|
|
4
3
|
import { useDispatch, useSelector } from "react-redux";
|
|
4
|
+
import { deselectAll } from "@mapsight/core/lib/feature-selections/actions";
|
|
5
5
|
import { FEATURE_SELECTIONS } from "../../config/constants/controllers";
|
|
6
6
|
import getFeatureProperty from "../../helpers/get-feature-property";
|
|
7
|
-
import { layerSwitcherConfigExternalSelector, listUiOptionsSelector, viewSelector, } from "../../store/selectors
|
|
7
|
+
import { layerSwitcherConfigExternalSelector, listUiOptionsSelector, viewSelector, } from "../../store/selectors";
|
|
8
8
|
import FeatureCycling from "../feature-list-cycling";
|
|
9
9
|
import FeatureSorter from "../feature-list-sorting";
|
|
10
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";
|
|
11
|
+
import LayerSwitcher from "../layer-switcher/index";
|
|
12
|
+
import TagSwitcher from "../tag-switcher/index";
|
|
13
13
|
import { FeatureListContextProvider } from "./context";
|
|
14
14
|
import FeatureFilter from "./filter";
|
|
15
15
|
import FeatureListFooter from "./footer";
|
|
@@ -20,19 +20,21 @@ import useFeatureListState from "./hooks/useFeatureListState";
|
|
|
20
20
|
import { useMakeHeaderSticky } from "./hooks/useMakeHeaderSticky";
|
|
21
21
|
import useRestoreDocumentScroll from "./hooks/useRestoreDocumentScroll";
|
|
22
22
|
import useSelectFeature from "./hooks/useSelectFeature";
|
|
23
|
-
import Pagination from "./pagination
|
|
23
|
+
import Pagination from "./pagination";
|
|
24
|
+
import FeatureListTagSwitcherControl from "./tag-switcher-control";
|
|
24
25
|
export const DEFAULT_LIST_RENDER_AS = "ul";
|
|
25
26
|
function stopEventPropagation(e) {
|
|
26
27
|
e.stopPropagation();
|
|
27
28
|
}
|
|
28
29
|
function determineShowListInfo(features) {
|
|
29
|
-
if (features.length) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
if (!features.length) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
const firstInfo = getFeatureProperty(features[0], "listInformation");
|
|
34
|
+
for (const feature of features) {
|
|
35
|
+
const info = getFeatureProperty(feature, "listInformation");
|
|
36
|
+
if (firstInfo !== info) {
|
|
37
|
+
return true;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
return false;
|
|
@@ -43,50 +45,34 @@ function determineItemType(containerType = DEFAULT_LIST_RENDER_AS) {
|
|
|
43
45
|
}
|
|
44
46
|
return "p";
|
|
45
47
|
}
|
|
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;
|
|
48
|
+
function FeatureListInner({ 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, }, forwardedRef) {
|
|
54
49
|
const listUiOptionsState = useSelector(listUiOptionsSelector);
|
|
55
|
-
const listUiOptions = overrideListUiOptions ||
|
|
50
|
+
const listUiOptions = (overrideListUiOptions ||
|
|
51
|
+
listUiOptionsState);
|
|
56
52
|
const { stickyHeader, detailsInList, showVaryingListInfoOnly, renderGroupAs, renderAs = DEFAULT_LIST_RENDER_AS, selectionBehaviorSelection, } = listUiOptions;
|
|
57
53
|
const state = useFeatureListState(listUiOptions, sort, filter, enableScrollPosition, listControllerName);
|
|
58
54
|
const view = useSelector(viewSelector);
|
|
59
55
|
if (renderAs === "table") {
|
|
60
56
|
throw new Error("@mapsight/ui does not support rendering the feature list as <table> anymore!");
|
|
61
57
|
}
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
const ownRef = useRef();
|
|
66
|
-
/** @type {React.RefObject<HTMLElement>} */
|
|
67
|
-
const ref = forwardedRef || ownRef;
|
|
58
|
+
const headerRef = useRef(null);
|
|
59
|
+
const ownRef = useRef(null);
|
|
60
|
+
const ref = (forwardedRef ?? ownRef);
|
|
68
61
|
useMakeHeaderSticky(stickyHeader, ref, headerRef, view);
|
|
69
62
|
useAutoloadFeatureSource(autoloadFeatureSource, state.featureSourceId);
|
|
70
63
|
useRestoreDocumentScroll(view, state.scrollPosition);
|
|
71
64
|
useAppChannelEventListener(APP_EVENT_SCROLL_TO_FEATURE_LIST, useCallback(() => {
|
|
72
|
-
ref.current
|
|
65
|
+
ref.current?.scrollIntoView({ block: "start", behavior: "smooth" });
|
|
73
66
|
}, [ref]));
|
|
74
67
|
const dispatch = useDispatch();
|
|
75
68
|
const selectFeatureAction = useSelectFeature();
|
|
76
|
-
const selectFeature = useCallback((featureId,
|
|
69
|
+
const selectFeature = useCallback((featureId, _options) => dispatch(selectFeatureAction(featureId)), [dispatch, selectFeatureAction]);
|
|
77
70
|
const deselectFeature = useCallback(() => dispatch(deselectAll(FEATURE_SELECTIONS, selectionBehaviorSelection)), [dispatch, selectionBehaviorSelection]);
|
|
78
71
|
// Decide whether to show the info column
|
|
79
72
|
// based on if there is any "interesting" aka distinct data available in the features
|
|
80
73
|
// We do this before filtering so it does not change while changing the filter
|
|
81
74
|
const showFeatureListInfo = state.filteredFeatures.length !== 0 &&
|
|
82
|
-
(showVaryingListInfoOnly
|
|
83
|
-
determineShowListInfo(state.features));
|
|
84
|
-
// TODO:
|
|
85
|
-
//<StatusIndicator {...{
|
|
86
|
-
// lastUpdate: this.props.lastUpdate,
|
|
87
|
-
// status: this.props.status,
|
|
88
|
-
// key: 'si'
|
|
89
|
-
//}} />
|
|
75
|
+
(!showVaryingListInfoOnly || determineShowListInfo(state.features));
|
|
90
76
|
let className = "ms3-list-wrapper";
|
|
91
77
|
if (detailsInList) {
|
|
92
78
|
className += " ms3-list-wrapper--with-details";
|
|
@@ -106,8 +92,7 @@ function FeatureList(props, forwardedRef) {
|
|
|
106
92
|
showFeatureListInfo,
|
|
107
93
|
]);
|
|
108
94
|
const renderItemAs = itemAs || determineItemType(renderAs);
|
|
109
|
-
const contextValue = useMemo(() =>
|
|
110
|
-
/** @type {import("./context").FeatureListContextValue} */ ({
|
|
95
|
+
const contextValue = useMemo(() => ({
|
|
111
96
|
state: state,
|
|
112
97
|
listUiOptions: listUiOptions,
|
|
113
98
|
enableKeyboardControl: enableKeyboardControl,
|
|
@@ -124,16 +109,19 @@ function FeatureList(props, forwardedRef) {
|
|
|
124
109
|
state,
|
|
125
110
|
itemProps,
|
|
126
111
|
]);
|
|
127
|
-
const { filterControl, sortControl, cyclingControl, integratedList, paginationControl, itemsPerPage, } = listUiOptions;
|
|
128
|
-
const { page, featureCount,
|
|
112
|
+
const { filterControl, sortControl, tagSwitcherControl, cyclingControl, integratedList, paginationControl, itemsPerPage, } = listUiOptions;
|
|
113
|
+
const { page, featureCount, featureSourceId, filteredFeatures, layerSwitcherShowExternal, tagSwitcherShow, } = state;
|
|
129
114
|
let filterBox = null;
|
|
130
|
-
if (filterControl
|
|
131
|
-
filterBox = _jsx(FeatureFilter, {
|
|
115
|
+
if (filterControl) {
|
|
116
|
+
filterBox = _jsx(FeatureFilter, {});
|
|
132
117
|
}
|
|
133
|
-
else if (sortControl
|
|
118
|
+
else if (sortControl || !cyclingControl) {
|
|
134
119
|
filterBox = _jsx("div", { className: "ms3-list__filter-box", children: "\u00A0" });
|
|
135
120
|
}
|
|
136
|
-
|
|
121
|
+
const Wrapper = T;
|
|
122
|
+
return (_jsx(FeatureListContextProvider, { value: contextValue, children: _jsxs(Wrapper, { className: className, onTouchMove: stopEventPropagation, ref: ref, ...attributes, children: [_jsxs(HeaderT, { ref: headerRef, children: [filterBox, sortControl && _jsx(FeatureSorter, {}), cyclingControl && (_jsx(FeatureCycling, { filteredFeatures: filteredFeatures })), integratedList && layerSwitcherShowExternal && (_jsx(LayerSwitcher, { configSelector: layerSwitcherConfigExternalSelector })), integratedList &&
|
|
123
|
+
tagSwitcherShow &&
|
|
124
|
+
(tagSwitcherControl ? (_jsx(FeatureListTagSwitcherControl, {})) : (_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
125
|
}
|
|
138
|
-
export default forwardRef(
|
|
126
|
+
export default forwardRef(FeatureListInner);
|
|
139
127
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/feature-list/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/feature-list/index.tsx"],"names":[],"mappings":";AAOA,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,WAAW,EAAC,MAAM,+CAA+C,CAAC;AAE1E,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AACtE,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,EACN,mCAAmC,EACnC,qBAAqB,EACrB,YAAY,GACZ,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,cAAc,MAAM,yBAAyB,CAAC;AACrD,OAAO,aAAa,MAAM,yBAAyB,CAAC;AACpD,OAAO,EACN,gCAAgC,EAChC,0BAA0B,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,aAAa,MAAM,yBAAyB,CAAC;AACpD,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAKhD,OAAO,EAAC,0BAA0B,EAA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G,KACJ,UAAU,aAEd,MAAC,OAAO,IAAC,GAAG,EAAE,SAAS,aACrB,SAAS,EAET,WAAW,IAAI,KAAC,aAAa,KAAG,EAEhC,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;4BACd,eAAe;4BACf,CAAC,kBAAkB,CAAC,CAAC,CAAC,CACrB,KAAC,6BAA6B,KAAG,CACjC,CAAC,CAAC,CAAC,CACH,KAAC,WAAW,KAAG,CACf,CAAC,IACM,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,IACD,GACkB,CAC7B,CAAC;AACH,CAAC;AAED,eAAe,UAAU,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -1 +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,
|
|
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,sCAuC/D;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-input.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/query-input.jsx"],"names":[],"mappings":";AAGA,
|
|
1
|
+
{"version":3,"file":"query-input.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/query-input.jsx"],"names":[],"mappings":";AAGA,4EAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-switcher-control.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/tag-switcher-control.tsx"],"names":[],"mappings":"AAMA,iBAAS,6BAA6B,gCAUrC;;AAED,wBAAmD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { memo } from "react";
|
|
3
|
+
import { translate } from "../../helpers/i18n";
|
|
4
|
+
import FilterToggleControl from "../filter-toggle-control/FilterToggleControl";
|
|
5
|
+
import TagSwitcher from "../tag-switcher/index";
|
|
6
|
+
function FeatureListTagSwitcherControl() {
|
|
7
|
+
return (_jsx(FilterToggleControl, { buttonClassName: "ms3-filter-button--icon-tags", buttonActiveClassName: "ms3-filter-button--icon-tags-active", title: translate("ui.feature-list.tag-switcher.announcements"), children: _jsx(TagSwitcher, {}) }));
|
|
8
|
+
}
|
|
9
|
+
export default memo(FeatureListTagSwitcherControl);
|
|
10
|
+
//# sourceMappingURL=tag-switcher-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-switcher-control.js","sourceRoot":"","sources":["../../../src/js/components/feature-list/tag-switcher-control.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,OAAO,mBAAmB,MAAM,8CAA8C,CAAC;AAC/E,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAEhD,SAAS,6BAA6B;IACrC,OAAO,CACN,KAAC,mBAAmB,IACnB,eAAe,EAAC,8BAA8B,EAC9C,qBAAqB,EAAC,qCAAqC,EAC3D,KAAK,EAAE,SAAS,CAAC,4CAA4C,CAAC,YAE9D,KAAC,WAAW,KAAG,GACM,CACtB,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,6BAA6B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/button.jsx"],"names":[],"mappings":";AAAA;;;;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/button.jsx"],"names":[],"mappings":";AAAA;;;;gCAUC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dot.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/dot.jsx"],"names":[],"mappings":";AAEA;;;;;;;;
|
|
1
|
+
{"version":3,"file":"dot.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/dot.jsx"],"names":[],"mappings":";AAEA;;;;;;;;gCAsCC"}
|
|
@@ -7,5 +7,5 @@ declare function FeatureListCycling({ filteredFeatures, selectedFeatureId, highl
|
|
|
7
7
|
onFeatureSelection: any;
|
|
8
8
|
onFeatureHighlight: any;
|
|
9
9
|
onFeatureUnHighlight: any;
|
|
10
|
-
}): import("react
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
11
|
//# sourceMappingURL=feature-list-cycling.d.ts.map
|
|
@@ -1 +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;;;;;;;
|
|
1
|
+
{"version":3,"file":"feature-list-cycling.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/feature-list-cycling.jsx"],"names":[],"mappings":";;AAcA;;;;;;;gCAwIC"}
|
|
@@ -5,12 +5,10 @@ declare const _default: import("react-redux").ConnectedComponent<import("react")
|
|
|
5
5
|
onFeatureSelection: any;
|
|
6
6
|
onFeatureHighlight: any;
|
|
7
7
|
onFeatureUnHighlight: any;
|
|
8
|
-
}) => import("react
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
context?: import("react-redux/es/components/Context").ReactReduxContextInstance | undefined;
|
|
13
|
-
store?: import("redux").Store | undefined;
|
|
8
|
+
}) => import("react").JSX.Element>, {
|
|
9
|
+
filteredFeatures: any;
|
|
10
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction> | null> | undefined;
|
|
11
|
+
store?: import("@reduxjs/toolkit").Store | undefined;
|
|
14
12
|
}>;
|
|
15
13
|
export default _default;
|
|
16
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { connect } from "react-redux";
|
|
2
|
+
import { createSelector } from "@reduxjs/toolkit";
|
|
2
3
|
import { batchActions } from "redux-batched-actions";
|
|
3
|
-
import { createSelector } from "reselect";
|
|
4
4
|
import { deselectAll, selectExclusively, } from "@mapsight/core/lib/feature-selections/actions";
|
|
5
5
|
import { createFeatureSelectionSelector, getFilteredFeatures, } from "@mapsight/core/lib/feature-selections/selectors";
|
|
6
6
|
import { FEATURE_SELECTIONS } from "../../config/constants/controllers";
|
|
@@ -1 +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,
|
|
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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AC;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"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { ElementType } from "react";
|
|
2
|
+
export type FeatureListIconProps = {
|
|
3
|
+
selectable?: boolean;
|
|
4
|
+
mapsightIconId?: string;
|
|
5
|
+
as?: ElementType;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
declare function FeatureListIcon({ selectable, mapsightIconId, as: T, className: classNameProp, ...attributes }: FeatureListIconProps & Record<string, unknown>): import("react").JSX.Element;
|
|
1
9
|
declare const _default: import("react").MemoExoticComponent<typeof FeatureListIcon>;
|
|
2
10
|
export default _default;
|
|
3
|
-
declare function FeatureListIcon({ selectable, mapsightIconId, as: T, ...attributes }: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
selectable: any;
|
|
6
|
-
mapsightIconId: any;
|
|
7
|
-
as: any;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-item/icon.
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-item/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AAKvC,MAAM,MAAM,oBAAoB,GAAG;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,iBAAS,eAAe,CAAC,EACxB,UAAU,EACV,cAAc,EACd,EAAE,EAAE,CAAU,EACd,SAAS,EAAE,aAAa,EACxB,GAAG,UAAU,EACb,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,+BAgBhD;;AAED,wBAAqC"}
|
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { memo } from "react";
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
if (!id) {
|
|
6
|
-
return null;
|
|
7
|
-
}
|
|
8
|
-
// TODO make these paths configurable
|
|
9
|
-
const iconFileName = `${id}-plain.png`;
|
|
10
|
-
const iconSrc1x = `${siteConfig.imagesUrl}mapsight-icons/${iconFileName}`;
|
|
11
|
-
const iconSrcSet = `${siteConfig.imagesUrl}mapsight-icons/${iconFileName} 1x, ` +
|
|
12
|
-
`${siteConfig.imagesUrl}mapsight-icons-2x/${iconFileName} 2x`;
|
|
13
|
-
return _jsx("img", { src: iconSrc1x, srcSet: iconSrcSet, alt: "" });
|
|
14
|
-
}
|
|
15
|
-
function FeatureListIcon({ selectable, mapsightIconId, as: T, ...attributes }) {
|
|
3
|
+
import MapsightIcon from "../mapsight-icon/mapsight-icon";
|
|
4
|
+
function FeatureListIcon({ selectable, mapsightIconId, as: T = "span", className: classNameProp, ...attributes }) {
|
|
16
5
|
let className = `ms3-list__icon ms3-list__icon--id-${mapsightIconId || "-"}`;
|
|
17
6
|
if (selectable) {
|
|
18
7
|
className += " ms3-list__icon--selectable";
|
|
19
8
|
}
|
|
9
|
+
if (classNameProp) {
|
|
10
|
+
className += ` ${classNameProp}`;
|
|
11
|
+
}
|
|
20
12
|
return (_jsx(T, { className: className, "aria-hidden": true, ...attributes, children: _jsx(MapsightIcon, { id: mapsightIconId }) }));
|
|
21
13
|
}
|
|
22
14
|
export default memo(FeatureListIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../src/js/components/feature-list-item/icon.
|
|
1
|
+
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../src/js/components/feature-list-item/icon.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,IAAI,EAAC,MAAM,OAAO,CAAC;AAE3B,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAS1D,SAAS,eAAe,CAAC,EACxB,UAAU,EACV,cAAc,EACd,EAAE,EAAE,CAAC,GAAG,MAAM,EACd,SAAS,EAAE,aAAa,EACxB,GAAG,UAAU,EACmC;IAChD,IAAI,SAAS,GAAG,qCACf,cAAc,IAAI,GACnB,EAAE,CAAC;IACH,IAAI,UAAU,EAAE,CAAC;QAChB,SAAS,IAAI,6BAA6B,CAAC;IAC5C,CAAC;IACD,IAAI,aAAa,EAAE,CAAC;QACnB,SAAS,IAAI,IAAI,aAAa,EAAE,CAAC;IAClC,CAAC;IAED,OAAO,CACN,KAAC,CAAC,IAAC,SAAS,EAAE,SAAS,iBAAe,IAAI,KAAM,UAAU,YACzD,KAAC,YAAY,IAAC,EAAE,EAAE,cAAc,GAAI,GACjC,CACJ,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -9,6 +9,6 @@ declare function FeatureListItem({ as: T, partAs: PartT, headAs: HeadT, contentA
|
|
|
9
9
|
selectFeature: any;
|
|
10
10
|
deselectFeatures: any;
|
|
11
11
|
enableKeyboardControl: any;
|
|
12
|
-
}): import("react
|
|
12
|
+
}): import("react").JSX.Element | null;
|
|
13
13
|
import FeatureListItemHead from "./head";
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-item/index.jsx"],"names":[],"mappings":";AAiBA;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-item/index.jsx"],"names":[],"mappings":";AAiBA;;;;;;;;;;uCAoJC;gCAhK+B,QAAQ"}
|
|
@@ -16,7 +16,7 @@ declare function FeatureSorter({ places, sorting, geolocationStatus, onChange, r
|
|
|
16
16
|
geolocationStatus: string;
|
|
17
17
|
onChange: (value: string) => void;
|
|
18
18
|
requestGeolocation: () => void;
|
|
19
|
-
}): import("react
|
|
19
|
+
}): import("react").JSX.Element;
|
|
20
20
|
declare const _default: import("react").MemoExoticComponent<typeof FeatureSorter>;
|
|
21
21
|
export default _default;
|
|
22
22
|
//# sourceMappingURL=feature-list-sorting.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-list-sorting.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-sorting/feature-list-sorting.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"feature-list-sorting.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-sorting/feature-list-sorting.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,eAAe,GAAG;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AAChF,MAAM,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,oBAAoB,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,MAAM,CACxC,MAAM,EACN,eAAe,GAAG,oBAAoB,CACtC,CAAC;AAgCF,iBAAS,aAAa,CAAC,EACtB,MAAM,EACN,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,kBAAkB,GAClB,EAAE;IACF,MAAM,EAAE,oBAAoB,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAC/B,+BAwCA;;AAED,wBAAmC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { memo, useCallback
|
|
3
|
-
import { FocusTrap } from "focus-trap-react";
|
|
2
|
+
import { memo, useCallback } from "react";
|
|
4
3
|
import { hasGeolocationSupport } from "@mapsight/core/lib/helpers";
|
|
5
4
|
import { translate } from "../../helpers/i18n";
|
|
5
|
+
import FilterToggleControl from "../filter-toggle-control/FilterToggleControl";
|
|
6
6
|
import StatusIndicator from "./status-indicator";
|
|
7
7
|
/**
|
|
8
8
|
* @param places places
|
|
@@ -23,9 +23,6 @@ function renderOptions(places, keyPath = []) {
|
|
|
23
23
|
}
|
|
24
24
|
/* NOTICE: using onChange instead of onBlur as the change occurs just below this input and should be clear */
|
|
25
25
|
function FeatureSorter({ places, sorting, geolocationStatus, onChange, requestGeolocation, }) {
|
|
26
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
27
|
-
const handleClose = useCallback(() => setIsOpen(false), []);
|
|
28
|
-
const toggleOpen = useCallback(() => setIsOpen((prev) => !prev), []);
|
|
29
26
|
const onSelectChange = useCallback((e) => {
|
|
30
27
|
const newValue = e.target.value;
|
|
31
28
|
if (newValue === "geolocation") {
|
|
@@ -33,13 +30,7 @@ function FeatureSorter({ places, sorting, geolocationStatus, onChange, requestGe
|
|
|
33
30
|
}
|
|
34
31
|
onChange(newValue);
|
|
35
32
|
}, [onChange, requestGeolocation]);
|
|
36
|
-
return (_jsxs(
|
|
37
|
-
(isOpen
|
|
38
|
-
? " ms3-filter-button--icon-sort-active"
|
|
39
|
-
: " ms3-filter-button--icon-sort"), onClick: toggleOpen, title: translate("ui.feature-list.sorting.announcements"), children: _jsx("i", { children: isOpen ? translate("close") : translate("open") }) }), _jsx("div", { children: isOpen && (_jsx(FocusTrap, { focusTrapOptions: {
|
|
40
|
-
clickOutsideDeactivates: true,
|
|
41
|
-
onDeactivate: handleClose,
|
|
42
|
-
}, children: _jsxs("div", { className: "ms3-features-sorting__panel", children: [translate("ui.feature-list.sorting.byDistance"), _jsxs("select", { value: sorting || "", onChange: onSelectChange, children: [_jsx("option", { value: "", children: translate("ui.feature-list.sorting.choose") }), hasGeolocationSupport && (_jsx("option", { value: "geolocation", children: translate("ui.feature-list.sorting.own") })), renderOptions(places)] }), _jsx(StatusIndicator, { status: geolocationStatus })] }) })) })] }));
|
|
33
|
+
return (_jsxs(FilterToggleControl, { className: "ms3-features-sorting", buttonClassName: "ms3-filter-button--icon-sort", buttonActiveClassName: "ms3-filter-button--icon-sort-active", title: translate("ui.feature-list.sorting.announcements"), children: [translate("ui.feature-list.sorting.byDistance"), _jsxs("select", { value: sorting || "", onChange: onSelectChange, children: [_jsx("option", { value: "", children: translate("ui.feature-list.sorting.choose") }), hasGeolocationSupport && (_jsx("option", { value: "geolocation", children: translate("ui.feature-list.sorting.own") })), renderOptions(places)] }), _jsx(StatusIndicator, { status: geolocationStatus })] }));
|
|
43
34
|
}
|
|
44
35
|
export default memo(FeatureSorter);
|
|
45
36
|
//# sourceMappingURL=feature-list-sorting.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-list-sorting.js","sourceRoot":"","sources":["../../../src/js/components/feature-list-sorting/feature-list-sorting.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,IAAI,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"feature-list-sorting.js","sourceRoot":"","sources":["../../../src/js/components/feature-list-sorting/feature-list-sorting.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,IAAI,EAAE,WAAW,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CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC,EACD,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAC9B,CAAC;IAEF,OAAO,CACN,MAAC,mBAAmB,IACnB,SAAS,EAAC,sBAAsB,EAChC,eAAe,EAAC,8BAA8B,EAC9C,qBAAqB,EAAC,qCAAqC,EAC3D,KAAK,EAAE,SAAS,CAAC,uCAAuC,CAAC,aAExD,SAAS,CAAC,oCAAoC,CAAC,EAEhD,kBAAQ,KAAK,EAAE,OAAO,IAAI,EAAE,EAAE,QAAQ,EAAE,cAAc,aACrD,iBAAQ,KAAK,EAAC,EAAE,YACd,SAAS,CAAC,gCAAgC,CAAC,GACpC,EAER,qBAAqB,IAAI,CACzB,iBAAQ,KAAK,EAAC,aAAa,YACzB,SAAS,CAAC,6BAA6B,CAAC,GACjC,CACT,EAEA,aAAa,CAAC,MAAM,CAAC,IACd,EAET,KAAC,eAAe,IAAC,MAAM,EAAE,iBAAiB,GAAI,IACzB,CACtB,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
declare const _default: import("react-redux").ConnectedComponent<import("react").
|
|
2
|
-
sorting: string | undefined;
|
|
3
|
-
places: import("./feature-list-sorting").MapsightUiPlacesData;
|
|
4
|
-
geolocationStatus: "error" | "loading" | null;
|
|
5
|
-
} & {
|
|
6
|
-
onChange: typeof sortList;
|
|
7
|
-
requestGeolocation: typeof getGeolocation;
|
|
8
|
-
}, {
|
|
1
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<({ places, sorting, geolocationStatus, onChange, requestGeolocation, }: {
|
|
9
2
|
places: import("./feature-list-sorting").MapsightUiPlacesData;
|
|
10
3
|
sorting: string;
|
|
11
4
|
geolocationStatus: string;
|
|
12
5
|
onChange: (value: string) => void;
|
|
13
6
|
requestGeolocation: () => void;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
[x: symbol]: JSX.LibraryManagedAttributes<C, import("react-redux").GetProps<C>>;
|
|
18
|
-
context?: import("react-redux/es/components/Context").ReactReduxContextInstance | undefined;
|
|
19
|
-
store?: import("redux").Store | undefined;
|
|
7
|
+
}) => import("react").JSX.Element>, {
|
|
8
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction> | null> | undefined;
|
|
9
|
+
store?: import("@reduxjs/toolkit").Store | undefined;
|
|
20
10
|
}>;
|
|
21
11
|
export default _default;
|
|
22
|
-
import { sortList } from "../../store/actions.ts";
|
|
23
|
-
import { getGeolocation } from "@mapsight/core/lib/user-geolocation/actions";
|
|
24
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-sorting/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-sorting/index.js"],"names":[],"mappings":""}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { connect } from "react-redux";
|
|
2
|
-
import { createStructuredSelector } from "reselect";
|
|
3
2
|
import { getGeolocation } from "@mapsight/core/lib/user-geolocation/actions";
|
|
4
3
|
import { geolocationStatusSelector } from "@mapsight/core/lib/user-geolocation/selectors";
|
|
5
4
|
import { USER_GEOLOCATION } from "../../config/constants/controllers";
|
|
6
|
-
import { sortList } from "../../store/actions
|
|
7
|
-
import { listSortingSelector, placesSelector } from "../../store/selectors
|
|
5
|
+
import { sortList } from "../../store/actions";
|
|
6
|
+
import { listSortingSelector, placesSelector } from "../../store/selectors";
|
|
8
7
|
import FeatureSorter from "./feature-list-sorting";
|
|
9
|
-
export default connect(
|
|
10
|
-
sorting: listSortingSelector,
|
|
11
|
-
places: placesSelector,
|
|
12
|
-
geolocationStatus:
|
|
8
|
+
export default connect((state) => ({
|
|
9
|
+
sorting: listSortingSelector(state),
|
|
10
|
+
places: placesSelector(state),
|
|
11
|
+
geolocationStatus: geolocationStatusSelector(state[USER_GEOLOCATION]),
|
|
13
12
|
}),
|
|
14
13
|
// dispatch map:
|
|
15
14
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/feature-list-sorting/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/feature-list-sorting/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,cAAc,EAAC,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAC,yBAAyB,EAAC,MAAM,+CAA+C,CAAC;AAExF,OAAO,EAAC,gBAAgB,EAAC,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAC,mBAAmB,EAAE,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAC1E,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAEnD,eAAe,OAAO,CACrB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACX,OAAO,EAAE,mBAAmB,CAAC,KAAK,CAAC;IACnC,MAAM,EAAE,cAAc,CAAC,KAAK,CAAC;IAC7B,iBAAiB,EAAE,yBAAyB,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;CACrE,CAAC;AACF,gBAAgB;AAChB;IACC,QAAQ,EAAE,QAAQ;IAClB,kBAAkB,EAAE,cAAc;CAClC,CACD,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-indicator.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-sorting/status-indicator.jsx"],"names":[],"mappings":"AAAA;;
|
|
1
|
+
{"version":3,"file":"status-indicator.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-sorting/status-indicator.jsx"],"names":[],"mappings":"AAAA;;gCASC"}
|
|
@@ -8,5 +8,5 @@ declare function FeatureSelectButton({ featureId, onSelect, onDeselect, permanen
|
|
|
8
8
|
isSelected?: boolean | undefined;
|
|
9
9
|
selectOnClick?: boolean | undefined;
|
|
10
10
|
deselectOnClick?: boolean | undefined;
|
|
11
|
-
}): import("react
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
12
|
//# sourceMappingURL=feature-select-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-select-button.d.ts","sourceRoot":"","sources":["../../src/js/components/feature-select-button.jsx"],"names":[],"mappings":";AAEA;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"feature-select-button.d.ts","sourceRoot":"","sources":["../../src/js/components/feature-select-button.jsx"],"names":[],"mappings":";AAEA;;;;;;;;;gCAiEC"}
|
|
@@ -4,5 +4,5 @@ declare function CloseButton({ feature, enableKeyboardControl, className, ...att
|
|
|
4
4
|
feature: any;
|
|
5
5
|
enableKeyboardControl: any;
|
|
6
6
|
className?: string | undefined;
|
|
7
|
-
}): import("react
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
8
|
//# sourceMappingURL=close-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"close-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/close-button.jsx"],"names":[],"mappings":";AAYA;;;;;
|
|
1
|
+
{"version":3,"file":"close-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/close-button.jsx"],"names":[],"mappings":";AAYA;;;;;gCAiDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/container.jsx"],"names":[],"mappings":";AAAA;;;;
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/container.jsx"],"names":[],"mappings":";AAAA;;;;gCAMC"}
|
|
@@ -2,7 +2,7 @@ import type { MapsightUiFeature } from "../../types";
|
|
|
2
2
|
export type Props = {
|
|
3
3
|
feature: MapsightUiFeature;
|
|
4
4
|
};
|
|
5
|
-
declare const Header: import("react").MemoExoticComponent<({ feature }: Props) => import("react
|
|
5
|
+
declare const Header: import("react").MemoExoticComponent<({ feature }: Props) => import("react").JSX.Element>;
|
|
6
6
|
declare const _default: import("react").ComponentType<Props>;
|
|
7
7
|
export default _default;
|
|
8
8
|
export { Header as NonReplaceableHeader };
|