@mapsight/ui 7.1.0 → 7.2.1
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 +95 -2
- package/dist/components/app.d.ts +1 -1
- package/dist/components/app.d.ts.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/index.d.ts +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/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/useFeatureListItemGroups.js +1 -1
- package/dist/components/feature-list/hooks/useFeatureListItemGroups.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 +33 -42
- package/dist/components/feature-list/index.js.map +1 -1
- package/dist/components/feature-list/layer-switcher-control.d.ts +4 -0
- package/dist/components/feature-list/layer-switcher-control.d.ts.map +1 -0
- package/dist/components/feature-list/layer-switcher-control.js +11 -0
- package/dist/components/feature-list/layer-switcher-control.js.map +1 -0
- 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 +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 +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/with-sticky-header.d.ts +1 -1
- package/dist/components/feature-selection-info/with-sticky-header.d.ts.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 +1 -1
- 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/LayerSwitcher.d.ts +1 -1
- package/dist/components/layer-switcher/LayerSwitcherContainer.d.ts +4 -2
- package/dist/components/layer-switcher/LayerSwitcherContainer.d.ts.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcherContainer.js +10 -4
- package/dist/components/layer-switcher/LayerSwitcherContainer.js.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcherEntry.d.ts +1 -1
- package/dist/components/layer-switcher/SplitBaseLayerSwitcher.d.ts +26 -0
- package/dist/components/layer-switcher/SplitBaseLayerSwitcher.d.ts.map +1 -0
- package/dist/components/layer-switcher/SplitBaseLayerSwitcher.js +48 -0
- package/dist/components/layer-switcher/SplitBaseLayerSwitcher.js.map +1 -0
- package/dist/components/layer-switcher/index.d.ts +1 -1
- package/dist/components/layer-switcher/index.d.ts.map +1 -1
- package/dist/components/layer-switcher/index.js +1 -0
- 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/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 +1 -1
- package/dist/components/main-panel/context.d.ts.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/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/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-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/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/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-overlay.d.ts +1 -1
- package/dist/components/map-overlay/measure-distance-overlay.d.ts.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/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/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 +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/tooltip.d.ts +1 -1
- package/dist/components/map-synced-interlay/tooltip.d.ts.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 +1 -1
- package/dist/components/map.d.ts.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/result-entry.d.ts +1 -1
- package/dist/components/search/result-entry.d.ts.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/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 +1 -1
- package/dist/components/switcher/SwitcherEntry.d.ts.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 +1 -1
- package/dist/components/tag-switcher/TagSwitcher.d.ts.map +1 -1
- package/dist/components/tag-switcher/createTagSwitcherEntry.d.ts +1 -1
- package/dist/components/tag-switcher/createTagSwitcherHeader.d.ts +1 -1
- package/dist/components/tag-switcher/index.d.ts +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 +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/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/viewport-button.d.ts +1 -1
- package/dist/components/view-toggle-button/viewport-button.d.ts.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 +7 -9
- 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 +197 -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/i18n/de.d.ts.map +1 -1
- package/dist/helpers/i18n/de.js +3 -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 +3 -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/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins/browser-defaults.d.ts +2 -0
- package/dist/plugins/browser-defaults.d.ts.map +1 -1
- package/dist/plugins/browser-defaults.js +5 -0
- 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/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/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/store/actions.d.ts.map +1 -1
- package/dist/store/actions.js +6 -1
- package/dist/store/actions.js.map +1 -1
- package/dist/store/reducers.d.ts +75 -6
- package/dist/store/reducers.d.ts.map +1 -1
- package/dist/store/selectors.d.ts +75 -17
- package/dist/store/selectors.d.ts.map +1 -1
- package/dist/store/selectors.js +9 -1
- package/dist/store/selectors.js.map +1 -1
- package/dist/types.d.ts +21 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +24 -8
- package/src/scss/blocks/_features-sorting.scss +0 -13
- package/src/scss/blocks/_filter-button.scss +39 -8
- package/src/scss/blocks/_filter-toggle-control.scss +15 -0
- package/src/scss/default.scss +1 -0
- package/src/scss/themes/2022-03.scss +66 -0
- 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.tsx +0 -232
- 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 -16
- 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 -98
- 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 -22
- 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.tsx +0 -76
- 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.ts +0 -34
- package/src/js/components/layer-switcher/LayerSwitcherContainer.tsx +0 -88
- package/src/js/components/layer-switcher/LayerSwitcherEntry.ts +0 -152
- package/src/js/components/layer-switcher/index.ts +0 -42
- 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.tsx +0 -71
- 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.ts +0 -15
- 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.tsx +0 -55
- 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.tsx +0 -164
- 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.tsx +0 -56
- package/src/js/components/tag-switcher/createTagSwitcherEntry.ts +0 -39
- package/src/js/components/tag-switcher/createTagSwitcherHeader.ts +0 -47
- package/src/js/components/tag-switcher/index.ts +0 -17
- 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.ts +0 -42
- package/src/js/components/view-toggle-button/mobile-button.tsx +0 -13
- package/src/js/components/view-toggle-button/view-toggle-button.jsx +0 -74
- package/src/js/components/view-toggle-button/viewport-button.tsx +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/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 -47
- package/src/js/hooks/usePrevious.ts +0 -15
- package/src/js/hooks/useStickyHeader.ts +0 -50
- 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 -320
- 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 -223
- 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 -91
- 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 -142
- 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 -154
- package/src/js/plugins/common/render-await-list-feature-sources-loaded.ts +0 -109
- 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 -27
- package/src/js/renderer/server-string.tsx +0 -17
- package/src/js/server-handler.js +0 -39
- package/src/js/store/actions.ts +0 -662
- package/src/js/store/reducers.ts +0 -491
- package/src/js/store/selectors.ts +0 -483
- package/src/js/types.ts +0 -405
|
@@ -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,7 +5,7 @@ declare const _default: import("react-redux").ConnectedComponent<import("react")
|
|
|
5
5
|
onFeatureSelection: any;
|
|
6
6
|
onFeatureHighlight: any;
|
|
7
7
|
onFeatureUnHighlight: any;
|
|
8
|
-
}) => import("react
|
|
8
|
+
}) => import("react").JSX.Element>, {
|
|
9
9
|
filteredFeatures: any;
|
|
10
10
|
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction> | null> | undefined;
|
|
11
11
|
store?: import("@reduxjs/toolkit").Store | undefined;
|
|
@@ -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,EAAC,MAAM,OAAO,CAAC;AAExC,OAAO,EAAC,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,OAAO,mBAAmB,MAAM,8CAA8C,CAAC;AAC/E,OAAO,eAAe,MAAM,oBAAoB,CAAC;AAajD;;;;GAIG;AACH,SAAS,aAAa,CACrB,MAA4B,EAC5B,UAAyB,EAAE;IAE3B,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAClD,MAAM,MAAM,GAAG,CAAC,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC;QACjC,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEhC,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;YAC/C,OAAO,CACN,mBAAU,KAAK,EAAE,KAAK,CAAC,KAAK,YAC1B,aAAa,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,IADH,MAAM,CAE9B,CACX,CAAC;QACH,CAAC;aAAM,CAAC;YACP,OAAO,CACN,iBAAQ,KAAK,EAAE,MAAM,YACnB,KAAK,CAAC,KAAK,IADe,MAAM,CAEzB,CACT,CAAC;QACH,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,6GAA6G;AAC7G,SAAS,aAAa,CAAC,EACtB,MAAM,EACN,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,kBAAkB,GAOlB;IACA,MAAM,cAAc,GAAG,WAAW,CACjC,CAAC,CAAiC,EAAE,EAAE;QACrC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;QAEhC,IAAI,QAAQ,KAAK,aAAa,EAAE,CAAC;YAChC,kBAAkB,EAAE,CAAC;QACtB,CAAC;QAED,QAAQ,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"}
|
|
@@ -4,7 +4,7 @@ declare const _default: import("react-redux").ConnectedComponent<import("react")
|
|
|
4
4
|
geolocationStatus: string;
|
|
5
5
|
onChange: (value: string) => void;
|
|
6
6
|
requestGeolocation: () => void;
|
|
7
|
-
}) => import("react
|
|
7
|
+
}) => import("react").JSX.Element>, {
|
|
8
8
|
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction> | null> | undefined;
|
|
9
9
|
store?: import("@reduxjs/toolkit").Store | undefined;
|
|
10
10
|
}>;
|
|
@@ -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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/header.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAEnD,MAAM,MAAM,KAAK,GAAG;IACnB,OAAO,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,MAAM,oDAAuD,KAAK,
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/header.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAEnD,MAAM,MAAM,KAAK,GAAG;IACnB,OAAO,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,MAAM,oDAAuD,KAAK,iCAOtE,CAAC;;AAEH,wBAA8E;AAC9E,OAAO,EAAC,MAAM,IAAI,oBAAoB,EAAC,CAAC;AAExC,OAAO,QAAQ,0BAA0B,CAAC;IACzC,UAAU,cAAc;QACvB,0BAA0B,EAAE,KAAK,CAAC;KAClC;CACD"}
|
|
@@ -2,5 +2,5 @@ import type { MapsightUiFeature } from "../../types";
|
|
|
2
2
|
export default function FeatureSelectionInfo({ feature, enableKeyboardControl, }: {
|
|
3
3
|
feature: MapsightUiFeature | null;
|
|
4
4
|
enableKeyboardControl: boolean;
|
|
5
|
-
}): import("react
|
|
5
|
+
}): import("react").JSX.Element | null;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAQnD,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC5C,OAAO,EACP,qBAAqB,GACrB,EAAE;IACF,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAClC,qBAAqB,EAAE,OAAO,CAAC;CAC/B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAQnD,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC5C,OAAO,EACP,qBAAqB,GACrB,EAAE;IACF,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAClC,qBAAqB,EAAE,OAAO,CAAC;CAC/B,sCAwDA"}
|
|
@@ -7,6 +7,6 @@ type WithStickyHeaderProps = {
|
|
|
7
7
|
close: ReactNode;
|
|
8
8
|
renderWrapper: (props: any) => ReactNode;
|
|
9
9
|
};
|
|
10
|
-
declare function WithStickyHeader({ header, content, feature, close, renderWrapper, }: WithStickyHeaderProps): import("react
|
|
10
|
+
declare function WithStickyHeader({ header, content, feature, close, renderWrapper, }: WithStickyHeaderProps): import("react").JSX.Element;
|
|
11
11
|
export default WithStickyHeader;
|
|
12
12
|
//# sourceMappingURL=with-sticky-header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-sticky-header.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/with-sticky-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAKrC,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAKnD,KAAK,qBAAqB,GAAG;IAC5B,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;IACjB,aAAa,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,SAAS,CAAC;CACzC,CAAC;AAEF,iBAAS,gBAAgB,CAAC,EACzB,MAAM,EACN,OAAO,EACP,OAAO,EACP,KAAK,EACL,aAAa,GACb,EAAE,qBAAqB
|
|
1
|
+
{"version":3,"file":"with-sticky-header.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/with-sticky-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAKrC,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAKnD,KAAK,qBAAqB,GAAG;IAC5B,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;IACjB,aAAa,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,SAAS,CAAC;CACzC,CAAC;AAEF,iBAAS,gBAAgB,CAAC,EACzB,MAAM,EACN,OAAO,EACP,OAAO,EACP,KAAK,EACL,aAAa,GACb,EAAE,qBAAqB,+BAiDvB;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"without-sticky-header.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/without-sticky-header.jsx"],"names":[],"mappings":";AAEA;;;;;
|
|
1
|
+
{"version":3,"file":"without-sticky-header.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/without-sticky-header.jsx"],"names":[],"mappings":";AAEA;;;;;gCAcC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type FilterToggleControlProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
buttonClassName: string;
|
|
5
|
+
buttonActiveClassName: string;
|
|
6
|
+
title: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
declare function FilterToggleControl({ className, buttonClassName, buttonActiveClassName, title, children, }: FilterToggleControlProps): import("react").JSX.Element;
|
|
10
|
+
declare const _default: import("react").MemoExoticComponent<typeof FilterToggleControl>;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=FilterToggleControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterToggleControl.d.ts","sourceRoot":"","sources":["../../../src/js/components/filter-toggle-control/FilterToggleControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAOrC,MAAM,MAAM,wBAAwB,GAAG;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,iBAAS,mBAAmB,CAAC,EAC5B,SAAS,EACT,eAAe,EACf,qBAAqB,EACrB,KAAK,EACL,QAAQ,GACR,EAAE,wBAAwB,+BAgD1B;;AAED,wBAAyC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { memo, useCallback, useState } from "react";
|
|
3
|
+
import { FocusTrap } from "focus-trap-react";
|
|
4
|
+
import { translate } from "../../helpers/i18n";
|
|
5
|
+
function FilterToggleControl({ className, buttonClassName, buttonActiveClassName, title, children, }) {
|
|
6
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
7
|
+
const handleClose = useCallback(() => setIsOpen(false), []);
|
|
8
|
+
const handleOpen = useCallback(() => setIsOpen(true), []);
|
|
9
|
+
let rootClassName = `ms3-filter-toggle-control ms3-filter-toggle-control--${isOpen ? "active" : "inactive"}`;
|
|
10
|
+
if (className) {
|
|
11
|
+
rootClassName += ` ${className}`;
|
|
12
|
+
}
|
|
13
|
+
const button = (open) => (_jsx("button", { type: "button", className: `ms3-filter-button ${open ? buttonActiveClassName : buttonClassName}`, onClick: open ? handleClose : handleOpen, title: title, "aria-expanded": open, children: _jsx("i", { children: open ? translate("close") : translate("open") }) }));
|
|
14
|
+
return (_jsx("div", { className: rootClassName, children: isOpen ? (_jsx(FocusTrap, { focusTrapOptions: {
|
|
15
|
+
clickOutsideDeactivates: true,
|
|
16
|
+
onDeactivate: handleClose,
|
|
17
|
+
}, children: _jsxs("div", { className: "ms3-filter-toggle-control__content", children: [button(true), _jsx("div", { className: "ms3-filter-toggle-control__panel", children: children })] }) })) : (button(false)) }));
|
|
18
|
+
}
|
|
19
|
+
export default memo(FilterToggleControl);
|
|
20
|
+
//# sourceMappingURL=FilterToggleControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterToggleControl.js","sourceRoot":"","sources":["../../../src/js/components/filter-toggle-control/FilterToggleControl.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAElD,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAU7C,SAAS,mBAAmB,CAAC,EAC5B,SAAS,EACT,eAAe,EACf,qBAAqB,EACrB,KAAK,EACL,QAAQ,GACkB;IAC1B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5D,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAE1D,IAAI,aAAa,GAAG,wDACnB,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UACrB,EAAE,CAAC;IACH,IAAI,SAAS,EAAE,CAAC;QACf,aAAa,IAAI,IAAI,SAAS,EAAE,CAAC;IAClC,CAAC;IAED,MAAM,MAAM,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,CACjC,iBACC,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,qBACV,IAAI,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,eAChC,EAAE,EACF,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,EACxC,KAAK,EAAE,KAAK,mBACG,IAAI,YAEnB,sBAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,GAAK,GAC9C,CACT,CAAC;IAEF,OAAO,CACN,cAAK,SAAS,EAAE,aAAa,YAC3B,MAAM,CAAC,CAAC,CAAC,CACT,KAAC,SAAS,IACT,gBAAgB,EAAE;gBACjB,uBAAuB,EAAE,IAAI;gBAC7B,YAAY,EAAE,WAAW;aACzB,YAED,eAAK,SAAS,EAAC,oCAAoC,aACjD,MAAM,CAAC,IAAI,CAAC,EACb,cAAK,SAAS,EAAC,kCAAkC,YAC/C,QAAQ,GACJ,IACD,GACK,CACZ,CAAC,CAAC,CAAC,CACH,MAAM,CAAC,KAAK,CAAC,CACb,GACI,CACN,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@ export declare const APP_EVENT_SCROLL_TO_FEATURE_LIST = "scrollToFeatureList";
|
|
|
8
8
|
export declare function AppChannelProvider({ children, listeners, }: {
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
listeners?: AppChannelListenerDefinition[];
|
|
11
|
-
}): import("react
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
12
|
/**
|
|
13
13
|
* @returns {(Event) => void} dispatch function for the app channel
|
|
14
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-channel.d.ts","sourceRoot":"","sources":["../../../src/js/components/helping/app-channel.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,SAAS,EAMd,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,4BAA4B,EAAC,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,iCAAiC,0BAA0B,CAAC;AACzE,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAC9C,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAC/D,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AACrD,eAAO,MAAM,gCAAgC,wBAAwB,CAAC;AAStE,wBAAgB,kBAAkB,CAAC,EAClC,QAAQ,EACR,SAAc,GACd,EAAE;IACF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,4BAA4B,EAAE,CAAC;CAC3C
|
|
1
|
+
{"version":3,"file":"app-channel.d.ts","sourceRoot":"","sources":["../../../src/js/components/helping/app-channel.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,SAAS,EAMd,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,4BAA4B,EAAC,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,iCAAiC,0BAA0B,CAAC;AACzE,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAC9C,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAC/D,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AACrD,eAAO,MAAM,gCAAgC,wBAAwB,CAAC;AAStE,wBAAgB,kBAAkB,CAAC,EAClC,QAAQ,EACR,SAAc,GACd,EAAE;IACF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,4BAA4B,EAAE,CAAC;CAC3C,+BAoBA;AAWD;;GAEG;AACH,wBAAgB,0BAA0B,yBAUzC;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,KAAA,EAAE,aAAa,KAAA,QAU9D"}
|
|
@@ -6,6 +6,6 @@ declare function AppContext({ store, components, appChannelListeners, children,
|
|
|
6
6
|
components?: MapsightUiComponents;
|
|
7
7
|
appChannelListeners?: AppChannelListenerDefinition[];
|
|
8
8
|
children?: React.ReactNode;
|
|
9
|
-
}): import("react
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
10
|
export default AppContext;
|
|
11
11
|
//# sourceMappingURL=app-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-context.d.ts","sourceRoot":"","sources":["../../../src/js/components/helping/app-context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAC;AAEnE,OAAO,KAAK,EAAC,4BAA4B,EAAC,MAAM,aAAa,CAAC;AAG9D,iBAAS,UAAU,CAAC,EACnB,KAAK,EACL,UAAe,EACf,mBAAwB,EACxB,QAAQ,GACR,EAAE;IACF,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,mBAAmB,CAAC,EAAE,4BAA4B,EAAE,CAAC;IACrD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B
|
|
1
|
+
{"version":3,"file":"app-context.d.ts","sourceRoot":"","sources":["../../../src/js/components/helping/app-context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAC;AAEnE,OAAO,KAAK,EAAC,4BAA4B,EAAC,MAAM,aAAa,CAAC;AAG9D,iBAAS,UAAU,CAAC,EACnB,KAAK,EACL,UAAe,EACf,mBAAwB,EACxB,QAAQ,GACR,EAAE;IACF,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,mBAAmB,CAAC,EAAE,4BAA4B,EAAE,CAAC;IACrD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,+BAUA;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -6,6 +6,6 @@ declare function MapsightUi({ children, styleFunction, baseMapsightConfig, creat
|
|
|
6
6
|
styleFunction: MapsightStyleFunction;
|
|
7
7
|
baseMapsightConfig: Partial<State>;
|
|
8
8
|
createOptions: CreateOptions;
|
|
9
|
-
}>): import("react
|
|
9
|
+
}>): import("react").JSX.Element;
|
|
10
10
|
export default MapsightUi;
|
|
11
11
|
//# sourceMappingURL=instance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../src/js/components/instance.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAG7C,OAAO,KAAK,EAAgB,KAAK,EAAC,MAAM,sBAAsB,CAAC;AAE/D,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,sCAAsC,CAAC;AAGhF,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAG5C,iBAAS,UAAU,CAAC,EACnB,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,aAAa,GACb,EAAE,iBAAiB,CAAC;IACpB,aAAa,EAAE,qBAAqB,CAAC;IACrC,kBAAkB,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;CAC7B,CAAC
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../src/js/components/instance.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAG7C,OAAO,KAAK,EAAgB,KAAK,EAAC,MAAM,sBAAsB,CAAC;AAE/D,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,sCAAsC,CAAC;AAGhF,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAG5C,iBAAS,UAAU,CAAC,EACnB,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,aAAa,GACb,EAAE,iBAAiB,CAAC;IACpB,aAAa,EAAE,qBAAqB,CAAC;IACrC,kBAAkB,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;CAC7B,CAAC,+BAuBD;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default GroupedLayerSwitcher;
|
|
2
|
-
declare const GroupedLayerSwitcher: import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<(props: any) => import("react
|
|
2
|
+
declare const GroupedLayerSwitcher: import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<(props: any) => import("react").JSX.Element>, {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
}>;
|
|
5
5
|
//# sourceMappingURL=GroupedLayerSwitcher.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MapState } from "@mapsight/core/lib/map/types";
|
|
2
|
-
declare const _default: import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<(props: any) => import("react
|
|
2
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<(props: any) => import("react").JSX.Element>, {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
[x: number]: any;
|
|
5
5
|
[x: symbol]: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ElementType } from "react";
|
|
2
|
+
import type { ActionPath } from "@mapsight/core/lib/base/actions";
|
|
2
3
|
import type { MapState } from "@mapsight/core/lib/map/types";
|
|
3
4
|
export type LayerSwitcherContainerProps = {
|
|
4
5
|
as?: ElementType;
|
|
@@ -6,10 +7,11 @@ export type LayerSwitcherContainerProps = {
|
|
|
6
7
|
onClose?: () => void;
|
|
7
8
|
layerIdsSelector?: (state: MapState) => string[];
|
|
8
9
|
grouped?: boolean;
|
|
9
|
-
|
|
10
|
+
splitBaseLayers?: boolean;
|
|
11
|
+
setFeatureSourceIdPath?: ActionPath | null;
|
|
10
12
|
};
|
|
11
13
|
declare function LayerSwitcherContainer({ as: T, baseClassName, // TODO: Use generic class name
|
|
12
|
-
onClose, layerIdsSelector, grouped, setFeatureSourceIdPath
|
|
14
|
+
onClose, layerIdsSelector, grouped, splitBaseLayers, setFeatureSourceIdPath, ...attributes }: LayerSwitcherContainerProps): import("react").JSX.Element;
|
|
13
15
|
declare const _default: import("react").MemoExoticComponent<typeof LayerSwitcherContainer>;
|
|
14
16
|
export default _default;
|
|
15
17
|
//# sourceMappingURL=LayerSwitcherContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerSwitcherContainer.d.ts","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/LayerSwitcherContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LayerSwitcherContainer.d.ts","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/LayerSwitcherContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAShE,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,8BAA8B,CAAC;AAY3D,MAAM,MAAM,2BAA2B,GAAG;IACzC,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM,EAAE,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,sBAAsB,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,iBAAS,sBAAsB,CAAC,EAC/B,EAAE,EAAE,CAAS,EACb,aAA8C,EAAE,+BAA+B;AAC/E,OAAO,EACP,gBAAqD,EACrD,OAAe,EACf,eAAuB,EACvB,sBAAsB,EACtB,GAAG,UAAU,EACb,EAAE,2BAA2B,+BAuE7B;;AAED,wBAA4C"}
|
|
@@ -5,11 +5,17 @@ import { translate } from "../../helpers/i18n";
|
|
|
5
5
|
import GroupedLayerSwitcher from "./GroupedLayerSwitcher";
|
|
6
6
|
import LayerSwitcher from "./LayerSwitcher";
|
|
7
7
|
import LayerSwitcherEntry from "./LayerSwitcherEntry";
|
|
8
|
+
import SplitBaseLayerSwitcher from "./SplitBaseLayerSwitcher";
|
|
8
9
|
function LayerSwitcherContainer({ as: T = "div", baseClassName = "ms3-layer-switcher-container", // TODO: Use generic class name
|
|
9
|
-
onClose, layerIdsSelector = layerIdsIntegratedSwitcherSelector, grouped = false,
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
10
|
+
onClose, layerIdsSelector = layerIdsIntegratedSwitcherSelector, grouped = false, splitBaseLayers = false, setFeatureSourceIdPath, ...attributes }) {
|
|
11
|
+
const createLayerEntry = useCallback((id, entrySetFeatureSourceIdPath) => (_jsx(LayerSwitcherEntry, { layerId: id, titleSelector: makeLayerTitleSelector(id), lockedSelector: makeLayerLockedInLayerSwitcherSelector(id), layerVisibilitySelector: makeLayerVisibleSelector(id), featureSourceSelector: makeFeatureSourceFromLayerIdSelector(id), featureSourceIdSelector: makeFeatureSourceIdFromLayerIdSelector(id), setFeatureSourceIdPath: entrySetFeatureSourceIdPath }, id)), []);
|
|
12
|
+
const renderLayerEntry = useCallback((id) => createLayerEntry(id, setFeatureSourceIdPath), [createLayerEntry, setFeatureSourceIdPath]);
|
|
13
|
+
const renderBaseLayerEntry = useCallback((id) => createLayerEntry(id, null), [createLayerEntry]);
|
|
14
|
+
return (_jsxs(T, { className: `${baseClassName} ${baseClassName}--${splitBaseLayers
|
|
15
|
+
? "split-base-layers"
|
|
16
|
+
: grouped
|
|
17
|
+
? "grouped"
|
|
18
|
+
: "ungrouped"}`, children: [splitBaseLayers ? (_jsx(SplitBaseLayerSwitcher, { layerIdsSelector: layerIdsSelector, renderBaseLayerEntry: renderBaseLayerEntry, renderEntry: renderLayerEntry, ...attributes })) : grouped ? (_jsx(GroupedLayerSwitcher, { layerIdsSelector: layerIdsSelector, renderEntry: renderLayerEntry, ...attributes })) : (_jsx(LayerSwitcher, { layerIdsSelector: layerIdsSelector, renderEntry: renderLayerEntry, ...attributes })), onClose && (_jsx("button", { className: "ms3-layer-switcher__close-button [ ms3-dialog-close-button ]", type: "button", onClick: onClose, children: _jsx("span", { className: "ms3-visuallyhidden", children: translate("ui.map-overlay.layer-switcher.closeLayers") }) }))] }));
|
|
13
19
|
}
|
|
14
20
|
export default memo(LayerSwitcherContainer);
|
|
15
21
|
//# sourceMappingURL=LayerSwitcherContainer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerSwitcherContainer.js","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/LayerSwitcherContainer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LayerSwitcherContainer.js","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/LayerSwitcherContainer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;AAGxC,OAAO,EACN,kCAAkC,EAClC,oCAAoC,EACpC,sCAAsC,EACtC,sCAAsC,EACtC,sBAAsB,EACtB,wBAAwB,GACxB,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAgB9D,SAAS,sBAAsB,CAAC,EAC/B,EAAE,EAAE,CAAC,GAAG,KAAK,EACb,aAAa,GAAG,8BAA8B,EAAE,+BAA+B;AAC/E,OAAO,EACP,gBAAgB,GAAG,kCAAkC,EACrD,OAAO,GAAG,KAAK,EACf,eAAe,GAAG,KAAK,EACvB,sBAAsB,EACtB,GAAG,UAAU,EACgB;IAC7B,MAAM,gBAAgB,GAAG,WAAW,CACnC,CAAC,EAAU,EAAE,2BAA+C,EAAE,EAAE,CAAC,CAChE,KAAC,kBAAkB,IAElB,OAAO,EAAE,EAAE,EACX,aAAa,EAAE,sBAAsB,CAAC,EAAE,CAAC,EACzC,cAAc,EAAE,sCAAsC,CAAC,EAAE,CAAC,EAC1D,uBAAuB,EAAE,wBAAwB,CAAC,EAAE,CAAC,EACrD,qBAAqB,EAAE,oCAAoC,CAAC,EAAE,CAAC,EAC/D,uBAAuB,EAAE,sCAAsC,CAC9D,EAAE,CACF,EACD,sBAAsB,EAAE,2BAA2B,IAT9C,EAAE,CAUN,CACF,EACD,EAAE,CACF,CAAC;IACF,MAAM,gBAAgB,GAAG,WAAW,CACnC,CAAC,EAAU,EAAE,EAAE,CAAC,gBAAgB,CAAC,EAAE,EAAE,sBAAsB,CAAC,EAC5D,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,CAC1C,CAAC;IACF,MAAM,oBAAoB,GAAG,WAAW,CACvC,CAAC,EAAU,EAAE,EAAE,CAAC,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,EAC1C,CAAC,gBAAgB,CAAC,CAClB,CAAC;IAEF,OAAO,CACN,MAAC,CAAC,IACD,SAAS,EAAE,GAAG,aAAa,IAAI,aAAa,KAC3C,eAAe;YACd,CAAC,CAAC,mBAAmB;YACrB,CAAC,CAAC,OAAO;gBACR,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,WACL,EAAE,aAED,eAAe,CAAC,CAAC,CAAC,CAClB,KAAC,sBAAsB,IACtB,gBAAgB,EAAE,gBAAgB,EAClC,oBAAoB,EAAE,oBAAoB,EAC1C,WAAW,EAAE,gBAAgB,KACzB,UAAU,GACb,CACF,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CACb,KAAC,oBAAoB,IACpB,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,gBAAgB,KACzB,UAAU,GACb,CACF,CAAC,CAAC,CAAC,CACH,KAAC,aAAa,IACb,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,gBAAgB,KACzB,UAAU,GACb,CACF,EAEA,OAAO,IAAI,CACX,iBACC,SAAS,EAAC,8DAA8D,EACxE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,OAAO,YAEhB,eAAM,SAAS,EAAC,oBAAoB,YAClC,SAAS,CAAC,2CAA2C,CAAC,GACjD,GACC,CACT,IACE,CACJ,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,sBAAsB,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ export type LayerSwitcherEntryProps = {
|
|
|
11
11
|
featureSourceIdSelector: (state: MapState) => string | undefined;
|
|
12
12
|
setFeatureSourceIdPath?: ActionPath | null;
|
|
13
13
|
};
|
|
14
|
-
declare const LayerSwitcherEntry: import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<({ as: T, className, baseClassName, title, count, toggleActive, toggleActiveCheckbox: _toggleActiveCheckbox, toggleActiveText: _toggleActiveText, active, activeCheckbox: _activeCheckbox, activeText: _activeText, status, locked, ...attributes }: import("../switcher/SwitcherEntry").SwitcherEntryProps) => import("react
|
|
14
|
+
declare const LayerSwitcherEntry: import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<({ as: T, className, baseClassName, title, count, toggleActive, toggleActiveCheckbox: _toggleActiveCheckbox, toggleActiveText: _toggleActiveText, active, activeCheckbox: _activeCheckbox, activeText: _activeText, status, locked, ...attributes }: import("../switcher/SwitcherEntry").SwitcherEntryProps) => import("react").JSX.Element>, {
|
|
15
15
|
as?: import("react").ElementType | undefined;
|
|
16
16
|
className?: string | undefined;
|
|
17
17
|
baseClassName?: string | undefined;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { MapState } from "@mapsight/core/lib/map/types";
|
|
3
|
+
type LayerGroup = {
|
|
4
|
+
group: string;
|
|
5
|
+
layerIds: string[];
|
|
6
|
+
};
|
|
7
|
+
type SplitBaseLayerSwitcherStateProps = {
|
|
8
|
+
baseLayerIds: string[];
|
|
9
|
+
groups: LayerGroup[];
|
|
10
|
+
ungroupedLayerIds: string[];
|
|
11
|
+
};
|
|
12
|
+
type SplitBaseLayerSwitcherOwnProps = {
|
|
13
|
+
layerIdsSelector: (state: MapState) => string[];
|
|
14
|
+
renderBaseLayerEntry: (id: string, group?: string | null) => ReactNode;
|
|
15
|
+
renderEntry: (id: string, group?: string | null) => ReactNode;
|
|
16
|
+
};
|
|
17
|
+
declare function SplitBaseLayerSwitcher({ baseLayerIds, groups, ungroupedLayerIds, renderBaseLayerEntry, renderEntry, }: SplitBaseLayerSwitcherStateProps & SplitBaseLayerSwitcherOwnProps): import("react").JSX.Element;
|
|
18
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof SplitBaseLayerSwitcher, {
|
|
19
|
+
layerIdsSelector: (state: MapState) => string[];
|
|
20
|
+
renderBaseLayerEntry: (id: string, group?: string | null) => ReactNode;
|
|
21
|
+
renderEntry: (id: string, group?: string | null) => ReactNode;
|
|
22
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction> | null> | undefined;
|
|
23
|
+
store?: import("@reduxjs/toolkit").Store | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
export default _default;
|
|
26
|
+
//# sourceMappingURL=SplitBaseLayerSwitcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitBaseLayerSwitcher.d.ts","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/SplitBaseLayerSwitcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAKrC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,8BAA8B,CAAC;AAM3D,KAAK,UAAU,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,KAAK,gCAAgC,GAAG;IACvC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF,KAAK,8BAA8B,GAAG;IACrC,gBAAgB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM,EAAE,CAAC;IAChD,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,SAAS,CAAC;IACvE,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,SAAS,CAAC;CAC9D,CAAC;AAmCF,iBAAS,sBAAsB,CAAC,EAC/B,YAAY,EACZ,MAAM,EACN,iBAAiB,EACjB,oBAAoB,EACpB,WAAW,GACX,EAAE,gCAAgC,GAAG,8BAA8B,+BA+DnE;;sBA3GkB,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM,EAAE;0BACzB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,SAAS;iBACzD,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,SAAS;;;;AA2G9D,wBAqB0B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { connect, shallowEqual } from "react-redux";
|
|
3
|
+
import { createSelector } from "@reduxjs/toolkit";
|
|
4
|
+
import { MAP } from "../../config/constants/controllers";
|
|
5
|
+
import { translate } from "../../helpers/i18n";
|
|
6
|
+
function getSplitLayerIds(ids, layers) {
|
|
7
|
+
const baseLayerIds = [];
|
|
8
|
+
const groupsByName = new Map();
|
|
9
|
+
const ungroupedLayerIds = [];
|
|
10
|
+
for (const layerId of ids) {
|
|
11
|
+
const layer = layers[layerId];
|
|
12
|
+
if (layer?.metaData?.isBaseLayer) {
|
|
13
|
+
baseLayerIds.push(layerId);
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
16
|
+
const group = layer?.metaData?.group;
|
|
17
|
+
if (!group) {
|
|
18
|
+
ungroupedLayerIds.push(layerId);
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
const groupLayerIds = groupsByName.get(group) ?? [];
|
|
22
|
+
groupLayerIds.push(layerId);
|
|
23
|
+
groupsByName.set(group, groupLayerIds);
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
baseLayerIds,
|
|
27
|
+
groups: Array.from(groupsByName, ([group, layerIds]) => ({
|
|
28
|
+
group,
|
|
29
|
+
layerIds,
|
|
30
|
+
})),
|
|
31
|
+
ungroupedLayerIds,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function SplitBaseLayerSwitcher({ baseLayerIds, groups, ungroupedLayerIds, renderBaseLayerEntry, renderEntry, }) {
|
|
35
|
+
const hasOverlayLayers = groups.length > 0 || ungroupedLayerIds.length > 0;
|
|
36
|
+
return (_jsxs("div", { className: "ms3-layer-switcher ms3-layer-switcher--split-base-layers", children: [baseLayerIds.length > 0 ? (_jsxs("section", { className: "ms3-layer-switcher__section ms3-layer-switcher__section--base-layers", children: [_jsx("h3", { className: "ms3-layer-switcher__section-title", children: translate("ui.layer-switcher.baseLayers") }), _jsx("ul", { className: "ms3-layer-switcher__entries ms3-layer-switcher__entries--base-layers", children: baseLayerIds.map((layerId) => renderBaseLayerEntry(layerId, null)) })] })) : null, hasOverlayLayers ? (_jsxs("section", { className: "ms3-layer-switcher__section ms3-layer-switcher__section--overlay-layers", children: [_jsx("h3", { className: "ms3-layer-switcher__section-title", children: translate("ui.layer-switcher.overlayLayers") }), _jsxs("div", { className: "ms3-grouped-switcher ms3-grouped-switcher--wrapped", children: [groups.map(({ group, layerIds }) => (_jsxs("section", { className: "ms3-grouped-switcher__group", "data-ms3-switcher-group": group, children: [_jsx("h4", { className: "ms3-layer-switcher__header", "data-ms3-switcher-header-group": group, children: _jsx("span", { className: "ms3-switcher-header__label", children: group }) }), _jsx("ul", { className: "ms3-layer-switcher__entries", "data-ms3-switcher-entries-group": group, children: layerIds.map((layerId) => renderEntry(layerId, group)) })] }, group))), ungroupedLayerIds.length > 0 ? (_jsx("section", { className: "ms3-grouped-switcher__group", children: _jsx("ul", { className: "ms3-layer-switcher__entries", children: ungroupedLayerIds.map((layerId) => renderEntry(layerId, null)) }) })) : null] })] })) : null] }));
|
|
37
|
+
}
|
|
38
|
+
export default connect(createSelector((state, { layerIdsSelector }) => {
|
|
39
|
+
const mapState = state[MAP];
|
|
40
|
+
return {
|
|
41
|
+
layerIds: layerIdsSelector(mapState),
|
|
42
|
+
layers: mapState.layers,
|
|
43
|
+
};
|
|
44
|
+
}, ({ layerIds, layers }) => getSplitLayerIds(layerIds, layers)), null, (stateProps, _dispatchProps, { layerIdsSelector: _layerIdsSelector, ...ownProps }) => ({
|
|
45
|
+
...ownProps,
|
|
46
|
+
...stateProps,
|
|
47
|
+
}), { areStatesEqual: shallowEqual })(SplitBaseLayerSwitcher);
|
|
48
|
+
//# sourceMappingURL=SplitBaseLayerSwitcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitBaseLayerSwitcher.js","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/SplitBaseLayerSwitcher.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,aAAa,CAAC;AAElD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAKhD,OAAO,EAAC,GAAG,EAAC,MAAM,oCAAoC,CAAC;AACvD,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAmB7C,SAAS,gBAAgB,CAAC,GAAa,EAAE,MAA0B;IAClE,MAAM,YAAY,GAAa,EAAE,CAAC;IAClC,MAAM,YAAY,GAAG,IAAI,GAAG,EAAoB,CAAC;IACjD,MAAM,iBAAiB,GAAa,EAAE,CAAC;IAEvC,KAAK,MAAM,OAAO,IAAI,GAAG,EAAE,CAAC;QAC3B,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;QAC9B,IAAI,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;YAClC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC3B,SAAS;QACV,CAAC;QAED,MAAM,KAAK,GAAG,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC;QACrC,IAAI,CAAC,KAAK,EAAE,CAAC;YACZ,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAChC,SAAS;QACV,CAAC;QAED,MAAM,aAAa,GAAG,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QACpD,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5B,YAAY,CAAC,GAAG,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IACxC,CAAC;IAED,OAAO;QACN,YAAY;QACZ,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;YACxD,KAAK;YACL,QAAQ;SACR,CAAC,CAAC;QACH,iBAAiB;KACjB,CAAC;AACH,CAAC;AAED,SAAS,sBAAsB,CAAC,EAC/B,YAAY,EACZ,MAAM,EACN,iBAAiB,EACjB,oBAAoB,EACpB,WAAW,GACwD;IACnE,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC;IAE3E,OAAO,CACN,eAAK,SAAS,EAAC,0DAA0D,aACvE,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC1B,mBAAS,SAAS,EAAC,sEAAsE,aACxF,aAAI,SAAS,EAAC,mCAAmC,YAC/C,SAAS,CAAC,8BAA8B,CAAC,GACtC,EACL,aAAI,SAAS,EAAC,sEAAsE,YAClF,YAAY,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAC7B,oBAAoB,CAAC,OAAO,EAAE,IAAI,CAAC,CACnC,GACG,IACI,CACV,CAAC,CAAC,CAAC,IAAI,EAEP,gBAAgB,CAAC,CAAC,CAAC,CACnB,mBAAS,SAAS,EAAC,yEAAyE,aAC3F,aAAI,SAAS,EAAC,mCAAmC,YAC/C,SAAS,CAAC,iCAAiC,CAAC,GACzC,EACL,eAAK,SAAS,EAAC,oDAAoD,aACjE,MAAM,CAAC,GAAG,CAAC,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAC,EAAE,EAAE,CAAC,CAClC,mBAEC,SAAS,EAAC,6BAA6B,6BACd,KAAK,aAE9B,aACC,SAAS,EAAC,4BAA4B,oCACN,KAAK,YAErC,eAAM,SAAS,EAAC,4BAA4B,YAC1C,KAAK,GACA,GACH,EACL,aACC,SAAS,EAAC,6BAA6B,qCACN,KAAK,YAErC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CACzB,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAC3B,GACG,KAnBA,KAAK,CAoBD,CACV,CAAC,EAED,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC/B,kBAAS,SAAS,EAAC,6BAA6B,YAC/C,aAAI,SAAS,EAAC,6BAA6B,YACzC,iBAAiB,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAClC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAC1B,GACG,GACI,CACV,CAAC,CAAC,CAAC,IAAI,IACH,IACG,CACV,CAAC,CAAC,CAAC,IAAI,IACH,CACN,CAAC;AACH,CAAC;AAED,eAAe,OAAO,CACrB,cAAc,CACb,CAAC,KAAY,EAAE,EAAC,gBAAgB,EAAiC,EAAE,EAAE;IACpE,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAa,CAAC;IACxC,OAAO;QACN,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC;QACpC,MAAM,EAAE,QAAQ,CAAC,MAAM;KACvB,CAAC;AACH,CAAC,EACD,CAAC,EAAC,QAAQ,EAAE,MAAM,EAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAC1D,EACD,IAAI,EACJ,CACC,UAAU,EACV,cAAc,EACd,EAAC,gBAAgB,EAAE,iBAAiB,EAAE,GAAG,QAAQ,EAAC,EACjD,EAAE,CAAC,CAAC;IACL,GAAG,QAAQ;IACX,GAAG,UAAU;CACb,CAAC,EACF,EAAC,cAAc,EAAE,YAAY,EAAC,CAC9B,CAAC,sBAAsB,CAAC,CAAC"}
|