@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 +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"}
|
|
@@ -5,7 +5,7 @@ import { FocusTrap } from "focus-trap-react";
|
|
|
5
5
|
import { removeFrom } from "@mapsight/core/lib/base/actions";
|
|
6
6
|
import { FEATURE_SELECTIONS } from "../../config/constants/controllers";
|
|
7
7
|
import { FEATURE_SELECTION_SELECT } from "../../config/feature/selections";
|
|
8
|
-
import {
|
|
8
|
+
import { featureSelectionInfoUiOptionsSelector } from "../../store/selectors";
|
|
9
9
|
import FeatureDetailsContent from "../feature-details-content";
|
|
10
10
|
import CloseButton from "./close-button";
|
|
11
11
|
import Header from "./header";
|
|
@@ -14,7 +14,7 @@ import WithoutStickyHeader from "./without-sticky-header";
|
|
|
14
14
|
import Wrapper from "./wrapper";
|
|
15
15
|
export default function FeatureSelectionInfo({ feature, enableKeyboardControl, }) {
|
|
16
16
|
const dispatch = useDispatch();
|
|
17
|
-
const hasStickyHeader = useSelector(
|
|
17
|
+
const hasStickyHeader = useSelector(featureSelectionInfoUiOptionsSelector).stickyHeader;
|
|
18
18
|
const renderWrapper = useCallback((attrs) => (_jsx(Wrapper, { feature: feature, enableKeyboardControl: enableKeyboardControl, ...attrs })), [enableKeyboardControl, feature]);
|
|
19
19
|
const removeSelection = useCallback(() => {
|
|
20
20
|
dispatch(removeFrom([FEATURE_SELECTIONS, FEATURE_SELECTION_SELECT, "features"], feature?.id));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AAClC,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAErD,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAC,wBAAwB,EAAC,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AAClC,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAErD,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAC,wBAAwB,EAAC,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAC,qCAAqC,EAAC,MAAM,uBAAuB,CAAC;AAE5E,OAAO,qBAAqB,MAAM,4BAA4B,CAAC;AAC/D,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,mBAAmB,MAAM,yBAAyB,CAAC;AAC1D,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC5C,OAAO,EACP,qBAAqB,GAIrB;IACA,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,eAAe,GAAG,WAAW,CAClC,qCAAqC,CACrC,CAAC,YAAY,CAAC;IACf,MAAM,aAAa,GAAG,WAAW,CAChC,CAAC,KAAK,EAAE,EAAE,CAAC,CACV,KAAC,OAAO,IACP,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,qBAAqB,KACxC,KAAK,GACR,CACF,EACD,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAChC,CAAC;IAEF,MAAM,eAAe,GAAG,WAAW,CAAC,GAAG,EAAE;QACxC,QAAQ,CACP,UAAU,CACT,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,UAAU,CAAC,EAC1D,OAAO,EAAE,EAAE,CACX,CACD,CAAC;IACH,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;IAE5B,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACb,CAAC;IAED,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,mBAAmB,CAAC;IACnE,OAAO,CACN,KAAC,SAAS,IACT,MAAM,EAAE,qBAAqB,EAC7B,gBAAgB,EAAE;YACjB,uBAAuB,EAAE,IAAI;YAC7B,YAAY,EAAE,eAAe;SAC7B,YAED,KAAC,CAAC,IACD,OAAO,EAAE,OAAO,EAChB,KAAK,EACJ,KAAC,WAAW,IACX,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,qBAAqB,GAC3C,EAEH,MAAM,EAAE,KAAC,MAAM,IAAC,OAAO,EAAE,OAAO,GAAI,EACpC,OAAO,EACN,cAAK,SAAS,EAAC,qCAAqC,YACnD,KAAC,qBAAqB,IAAC,OAAO,EAAE,OAAO,GAAI,GACtC,EAEP,aAAa,EAAE,aAAa,GAC3B,GACS,CACZ,CAAC;AACH,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { MapsightUiFeature } from "../../types";
|
|
3
|
+
type WithStickyHeaderProps = {
|
|
4
|
+
header: ReactNode;
|
|
5
|
+
feature: MapsightUiFeature;
|
|
6
|
+
content: ReactNode;
|
|
7
|
+
close: ReactNode;
|
|
8
|
+
renderWrapper: (props: any) => ReactNode;
|
|
9
|
+
};
|
|
10
|
+
declare function WithStickyHeader({ header, content, feature, close, renderWrapper, }: WithStickyHeaderProps): import("react").JSX.Element;
|
|
1
11
|
export default WithStickyHeader;
|
|
2
|
-
declare function WithStickyHeader({ header, content, feature, close, renderWrapper }: {
|
|
3
|
-
header: any;
|
|
4
|
-
content: any;
|
|
5
|
-
feature: any;
|
|
6
|
-
close: any;
|
|
7
|
-
renderWrapper: any;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
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.
|
|
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,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useSelector } from "react-redux";
|
|
3
3
|
import useStickyHeader from "../../hooks/useStickyHeader";
|
|
4
|
-
import {
|
|
4
|
+
import { featureSelectionInfoUiOptionsSelector } from "../../store/selectors";
|
|
5
5
|
import Container from "./container";
|
|
6
6
|
const stopEventPropagation = (e) => e.stopPropagation();
|
|
7
|
-
function WithStickyHeader({ header, content, feature, close, renderWrapper }) {
|
|
8
|
-
const stuckHeaderHeight = useSelector(
|
|
7
|
+
function WithStickyHeader({ header, content, feature, close, renderWrapper, }) {
|
|
8
|
+
const { stuckHeaderHeight } = useSelector(featureSelectionInfoUiOptionsSelector);
|
|
9
9
|
const { isHeaderStuck, stickyHeaderRef, stickyScrollAreaRef, onScroll } = useStickyHeader({
|
|
10
|
-
|
|
10
|
+
stuckHeaderHeight,
|
|
11
11
|
resetDeps: [feature.id],
|
|
12
12
|
});
|
|
13
13
|
const stuckClass = (prefix) => prefix + " " + (isHeaderStuck ? prefix + "--stuck" : "");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-sticky-header.js","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/with-sticky-header.
|
|
1
|
+
{"version":3,"file":"with-sticky-header.js","sourceRoot":"","sources":["../../../src/js/components/feature-selection-info/with-sticky-header.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAExC,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAC,qCAAqC,EAAC,MAAM,uBAAuB,CAAC;AAE5E,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,oBAAoB,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;AAUxD,SAAS,gBAAgB,CAAC,EACzB,MAAM,EACN,OAAO,EACP,OAAO,EACP,KAAK,EACL,aAAa,GACU;IACvB,MAAM,EAAC,iBAAiB,EAAC,GAAG,WAAW,CACtC,qCAAqC,CACrC,CAAC;IACF,MAAM,EAAC,aAAa,EAAE,eAAe,EAAE,mBAAmB,EAAE,QAAQ,EAAC,GACpE,eAAe,CAAiB;QAC/B,iBAAiB;QACjB,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;KACvB,CAAC,CAAC;IAEJ,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,EAAE,CAC7B,MAAM,GAAG,GAAG,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1D,MAAM,kBAAkB,GAAG,6BAC1B,aAAa;QACZ,CAAC,CAAC,kCAAkC;QACpC,CAAC,CAAC,8CACJ,EAAE,CAAC;IACH,MAAM,mBAAmB,GAAG,6BAC3B,aAAa;QACZ,CAAC,CAAC,+CAA+C;QACjD,CAAC,CAAC,mCACJ,EAAE,CAAC;IAEH,OAAO,CACN,MAAC,SAAS,IAAC,SAAS,EAAE,UAAU,CAAC,8BAA8B,CAAC,aAC/D,6BAAiB,MAAM,EAAC,SAAS,EAAE,kBAAkB,YACnD,MAAM,GACF,EAEL,aAAa,CAAC;gBACd,GAAG,EAAE,mBAAmB;gBACxB,SAAS,EAAE,UAAU,CAAC,gCAAgC,CAAC;gBACvD,WAAW,EAAE,oBAAoB;gBACjC,QAAQ,EAAE,QAAQ;gBAClB,QAAQ,EAAE,CACT,8BACE,KAAK,EACN,cACC,SAAS,EAAE,mBAAmB,EAC9B,GAAG,EAAE,eAAe,YAEnB,MAAM,GACF,EACL,OAAO,IACN,CACH;aACD,CAAC,IACS,CACZ,CAAC;AACH,CAAC;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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Store } from "
|
|
1
|
+
import type { Store } from "@reduxjs/toolkit";
|
|
2
2
|
import type { MapsightUiComponents } from "../../helpers/components";
|
|
3
3
|
import type { AppChannelListenerDefinition } from "../../types";
|
|
4
4
|
declare function AppContext({ store, components, appChannelListeners, children, }: {
|
|
@@ -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,
|
|
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 { connect, shallowEqual } from "react-redux";
|
|
2
|
-
import { createSelector } from "
|
|
2
|
+
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
import { MAP } from "../../config/constants/controllers";
|
|
4
4
|
import GroupedSwitcher from "../switcher/GroupedSwitcher";
|
|
5
5
|
function getGroupedIdsForIds(ids, layersState) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupedLayerSwitcher.js","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/GroupedLayerSwitcher.js"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,aAAa,CAAC;AAElD,OAAO,EAAC,cAAc,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"GroupedLayerSwitcher.js","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/GroupedLayerSwitcher.js"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,YAAY,EAAC,MAAM,aAAa,CAAC;AAElD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAC,GAAG,EAAC,MAAM,oCAAoC,CAAC;AACvD,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAE1D,SAAS,mBAAmB,CAAC,GAAG,EAAE,WAAW;IAC5C,MAAM,eAAe,GAAG,EAAE,CAAC;IAC3B,MAAM,oBAAoB,GAAG,EAAE,CAAC;IAChC,GAAG,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;QAElD,IAAI,CAAC,KAAK,EAAE,CAAC;YACZ,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACnC,OAAO;QACR,CAAC;QAED,eAAe,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QACtD,eAAe,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,OAAO;QACN,YAAY,EAAE,oBAAoB;QAClC,UAAU,EAAE,eAAe;KAC3B,CAAC;AACH,CAAC;AAED,MAAM,oBAAoB,GAAG,OAAO,CACnC,cAAc,CACb,CAAC,KAAK,EAAE,EAAC,gBAAgB,EAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAC3D,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,EAC5B,mBAAmB,CACnB,EACD,IAAI,EACJ,CACC,UAAU,EACV,aAAa,EACb,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,eAAe,CAAC,CAAC;AAEnB,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
[x:
|
|
4
|
-
[x:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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").JSX.Element>, {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
[x: number]: any;
|
|
5
|
+
[x: symbol]: any;
|
|
6
|
+
layerIdsSelector: (state: MapState) => string[];
|
|
7
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction> | null> | undefined;
|
|
8
|
+
store?: import("@reduxjs/toolkit").Store | undefined;
|
|
8
9
|
} | {
|
|
9
|
-
[x: string]:
|
|
10
|
-
[x: number]:
|
|
11
|
-
[x: symbol]:
|
|
12
|
-
layerIdsSelector:
|
|
13
|
-
store?: import("
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
[x: number]: any;
|
|
12
|
+
[x: symbol]: any;
|
|
13
|
+
layerIdsSelector: (state: MapState) => string[];
|
|
14
|
+
store?: import("@reduxjs/toolkit").Store | undefined;
|
|
14
15
|
}>;
|
|
15
16
|
export default _default;
|
|
16
17
|
//# sourceMappingURL=LayerSwitcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerSwitcher.d.ts","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/LayerSwitcher.
|
|
1
|
+
{"version":3,"file":"LayerSwitcher.d.ts","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/LayerSwitcher.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,8BAA8B,CAAC;;;;;sBAQnB,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM,EAAE;;;;;;;sBAA7B,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM,EAAE;;;AAMrE,wBAiBY"}
|
|
@@ -4,7 +4,7 @@ import Switcher from "../switcher/Switcher";
|
|
|
4
4
|
const selector = (state, { layerIdsSelector }) => ({
|
|
5
5
|
ids: layerIdsSelector(state[MAP]),
|
|
6
6
|
});
|
|
7
|
-
export default connect(selector, null, (stateProps,
|
|
7
|
+
export default connect(selector, null, (stateProps, _, {
|
|
8
8
|
// Need to list the selectors here so they do not get passed as attribute props to the element but get filtered:
|
|
9
9
|
layerIdsSelector: _layerIdsSelector, ...attributes }) => ({
|
|
10
10
|
// We do not want to pass dispatch to the switcher, so we explicitly do not map it!
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerSwitcher.js","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/LayerSwitcher.
|
|
1
|
+
{"version":3,"file":"LayerSwitcher.js","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/LayerSwitcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAKpC,OAAO,EAAC,GAAG,EAAC,MAAM,oCAAoC,CAAC;AACvD,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAE5C,MAAM,QAAQ,GAAG,CAChB,KAAY,EACZ,EAAC,gBAAgB,EAAoD,EACpE,EAAE,CACH,CAAC;IACA,GAAG,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAa,CAAC;CAC7C,CAAU,CAAC;AAEb,eAAe,OAAO,CACrB,QAAQ,EACR,IAAI,EACJ,CACC,UAAU,EACV,CAAC,EACD;AACC,gHAAgH;AAChH,gBAAgB,EAAE,iBAAiB,EAEnC,GAAG,UAAU,EACb,EACA,EAAE,CAAC,CAAC;IACL,mFAAmF;IACnF,GAAG,UAAU;IACb,GAAG,UAAU;CACb,CAAC,CACF,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ElementType } from "react";
|
|
2
|
+
import type { ActionPath } from "@mapsight/core/lib/base/actions";
|
|
3
|
+
import type { MapState } from "@mapsight/core/lib/map/types";
|
|
4
|
+
export type LayerSwitcherContainerProps = {
|
|
5
|
+
as?: ElementType;
|
|
6
|
+
baseClassName?: string;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
layerIdsSelector?: (state: MapState) => string[];
|
|
9
|
+
grouped?: boolean;
|
|
10
|
+
setFeatureSourceIdPath?: ActionPath | null;
|
|
11
|
+
};
|
|
12
|
+
declare function LayerSwitcherContainer({ as: T, baseClassName, // TODO: Use generic class name
|
|
13
|
+
onClose, layerIdsSelector, grouped, setFeatureSourceIdPath, ...attributes }: LayerSwitcherContainerProps): import("react").JSX.Element;
|
|
14
|
+
declare const _default: import("react").MemoExoticComponent<typeof LayerSwitcherContainer>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=LayerSwitcherContainer.d.ts.map
|
|
@@ -0,0 +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;AAGvC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAShE,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,8BAA8B,CAAC;AAW3D,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,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,sBAAsB,EACtB,GAAG,UAAU,EACb,EAAE,2BAA2B,+BA8C7B;;AAED,wBAA4C"}
|
package/dist/components/layer-switcher/{LayerSwticherContainer.js → LayerSwitcherContainer.js}
RENAMED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { layerIdsIntegratedSwitcherSelector, makeFeatureSourceFromLayerIdSelector, makeFeatureSourceIdFromLayerIdSelector, makeLayerLockedInLayerSwitcherSelector, makeLayerTitleSelector, makeLayerVisibleSelector, } from "@mapsight/core/lib/map/selectors";
|
|
3
2
|
import { memo, useCallback } from "react";
|
|
3
|
+
import { layerIdsIntegratedSwitcherSelector, makeFeatureSourceFromLayerIdSelector, makeFeatureSourceIdFromLayerIdSelector, makeLayerLockedInLayerSwitcherSelector, makeLayerTitleSelector, makeLayerVisibleSelector, } from "@mapsight/core/lib/map/selectors";
|
|
4
4
|
import { translate } from "../../helpers/i18n";
|
|
5
5
|
import GroupedLayerSwitcher from "./GroupedLayerSwitcher";
|
|
6
6
|
import LayerSwitcher from "./LayerSwitcher";
|
|
7
7
|
import LayerSwitcherEntry from "./LayerSwitcherEntry";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// TODO für das visible eine eigenes connect, damit der Tree nicht dauernd neu berechnet wird
|
|
11
|
-
function LayerSwitcherContainer(props) {
|
|
12
|
-
const { as: T = "div", baseClassName = "ms3-layer-switcher-container", // TODO: Use generic class name
|
|
13
|
-
onClose, layerIdsSelector = layerIdsIntegratedSwitcherSelector, setFeatureSourceIdPath, grouped = false, ...attributes } = props;
|
|
8
|
+
function LayerSwitcherContainer({ as: T = "div", baseClassName = "ms3-layer-switcher-container", // TODO: Use generic class name
|
|
9
|
+
onClose, layerIdsSelector = layerIdsIntegratedSwitcherSelector, grouped = false, setFeatureSourceIdPath, ...attributes }) {
|
|
14
10
|
const renderLayerEntry = useCallback((id) => (_jsx(LayerSwitcherEntry, { layerId: id, titleSelector: makeLayerTitleSelector(id), lockedSelector: makeLayerLockedInLayerSwitcherSelector(id), layerVisibilitySelector: makeLayerVisibleSelector(id), featureSourceSelector: makeFeatureSourceFromLayerIdSelector(id), featureSourceIdSelector: makeFeatureSourceIdFromLayerIdSelector(id), setFeatureSourceIdPath: setFeatureSourceIdPath }, id)), [setFeatureSourceIdPath]);
|
|
15
11
|
const Switcher = grouped ? GroupedLayerSwitcher : LayerSwitcher;
|
|
16
12
|
return (_jsxs(T, { className: `${baseClassName} ${baseClassName}--${grouped ? "grouped" : "ungrouped"}`, children: [_jsx(Switcher, { 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") }) }))] }));
|
|
17
13
|
}
|
|
18
14
|
export default memo(LayerSwitcherContainer);
|
|
19
|
-
//# sourceMappingURL=
|
|
15
|
+
//# sourceMappingURL=LayerSwitcherContainer.js.map
|
|
@@ -0,0 +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;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;AAetD,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,sBAAsB,EACtB,GAAG,UAAU,EACgB;IAC7B,MAAM,gBAAgB,GAAG,WAAW,CACnC,CAAC,EAAU,EAAE,EAAE,CAAC,CACf,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,sBAAsB,IATzC,EAAE,CAUN,CACF,EACD,CAAC,sBAAsB,CAAC,CACxB,CAAC;IAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,aAAa,CAAC;IAEhE,OAAO,CACN,MAAC,CAAC,IACD,SAAS,EAAE,GAAG,aAAa,IAAI,aAAa,KAC3C,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WACvB,EAAE,aAEF,KAAC,QAAQ,IACR,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,gBAAgB,KACzB,UAAU,GACb,EAED,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"}
|
|
@@ -1,14 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import type { ActionPath } from "@mapsight/core/lib/base/actions";
|
|
2
|
+
import type { FeatureSourceState } from "@mapsight/core/lib/feature-sources/types";
|
|
3
|
+
import type { MapState } from "@mapsight/core/lib/map/types";
|
|
4
|
+
import type { State } from "@mapsight/core/types";
|
|
5
|
+
export type LayerSwitcherEntryProps = {
|
|
6
|
+
layerId: string;
|
|
7
|
+
titleSelector: (state: MapState) => string;
|
|
8
|
+
lockedSelector: (state: MapState) => boolean;
|
|
9
|
+
layerVisibilitySelector: (state: MapState) => boolean;
|
|
10
|
+
featureSourceSelector: (mapState: MapState, state: State) => FeatureSourceState | null;
|
|
11
|
+
featureSourceIdSelector: (state: MapState) => string | undefined;
|
|
12
|
+
setFeatureSourceIdPath?: ActionPath | null;
|
|
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").JSX.Element>, {
|
|
15
|
+
as?: import("react").ElementType | undefined;
|
|
16
|
+
className?: string | undefined;
|
|
17
|
+
baseClassName?: string | undefined;
|
|
18
|
+
count?: number | null | undefined;
|
|
19
|
+
layerId: string;
|
|
20
|
+
titleSelector: (state: MapState) => string;
|
|
21
|
+
lockedSelector: (state: MapState) => boolean;
|
|
22
|
+
layerVisibilitySelector: (state: MapState) => boolean;
|
|
23
|
+
featureSourceSelector: (mapState: MapState, state: State) => FeatureSourceState | null;
|
|
24
|
+
featureSourceIdSelector: (state: MapState) => string | undefined;
|
|
25
|
+
setFeatureSourceIdPath?: (ActionPath | null) | undefined;
|
|
26
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction> | null> | undefined;
|
|
27
|
+
store?: import("@reduxjs/toolkit").Store | undefined;
|
|
13
28
|
}>;
|
|
29
|
+
export default LayerSwitcherEntry;
|
|
14
30
|
//# sourceMappingURL=LayerSwitcherEntry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerSwitcherEntry.d.ts","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/LayerSwitcherEntry.
|
|
1
|
+
{"version":3,"file":"LayerSwitcherEntry.d.ts","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/LayerSwitcherEntry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAGhE,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,0CAA0C,CAAC;AAEjF,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,sBAAsB,CAAC;AA+DhD,MAAM,MAAM,uBAAuB,GAAG;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM,CAAC;IAC3C,cAAc,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC;IAC7C,uBAAuB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC;IACtD,qBAAqB,EAAE,CACtB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,KACR,kBAAkB,GAAG,IAAI,CAAC;IAC/B,uBAAuB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM,GAAG,SAAS,CAAC;IACjE,sBAAsB,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAC3C,CAAC;AA2BF,QAAA,MAAM,kBAAkB;;;;;aArCd,MAAM;mBACA,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM;oBAC1B,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO;6BACnB,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO;2BAC9B,CACtB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,KACR,kBAAkB,GAAG,IAAI;6BACL,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM,GAAG,SAAS;8BACvC,UAAU,GAAG,IAAI;;;EAkE3B,CAAC;AAEjB,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { connect } from "react-redux";
|
|
2
|
-
import { createStructuredSelector } from "reselect";
|
|
3
2
|
import { set as makeSetAction } from "@mapsight/core/lib/base/actions";
|
|
4
3
|
import { getFeatureSourceStatus } from "@mapsight/core/lib/feature-sources/selectors";
|
|
5
4
|
import { setLayerVisibility } from "@mapsight/core/lib/map/actions";
|
|
@@ -14,7 +13,7 @@ function getActiveProps({ setFeatureSourceIdPath, currentlySetFeatureSourceId, f
|
|
|
14
13
|
// throw new Error('illegal state');
|
|
15
14
|
//}
|
|
16
15
|
return {
|
|
17
|
-
activeCheckbox:
|
|
16
|
+
activeCheckbox: visibility,
|
|
18
17
|
activeText: isCurrentFeatureSource,
|
|
19
18
|
toggleActiveCheckbox: function toggleActiveCheckbox() {
|
|
20
19
|
dispatch(setLayerVisibility(MAP, layerId, !visibility));
|
|
@@ -23,13 +22,15 @@ function getActiveProps({ setFeatureSourceIdPath, currentlySetFeatureSourceId, f
|
|
|
23
22
|
}
|
|
24
23
|
},
|
|
25
24
|
toggleActiveText: function toggleActiveText() {
|
|
26
|
-
|
|
25
|
+
if (featureSourceId) {
|
|
26
|
+
dispatch(makeSetAction(setFeatureSourceIdPath, featureSourceId));
|
|
27
|
+
}
|
|
27
28
|
dispatch(setLayerVisibility(MAP, layerId, true));
|
|
28
29
|
},
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
return {
|
|
32
|
-
active:
|
|
33
|
+
active: visibility,
|
|
33
34
|
toggleActive: function toggleActive() {
|
|
34
35
|
if (!locked) {
|
|
35
36
|
dispatch(setLayerVisibility(MAP, layerId, !visibility));
|
|
@@ -37,42 +38,39 @@ function getActiveProps({ setFeatureSourceIdPath, currentlySetFeatureSourceId, f
|
|
|
37
38
|
},
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
41
|
+
const mapStateToProps = (state, { titleSelector, lockedSelector, layerVisibilitySelector, featureSourceSelector, featureSourceIdSelector, setFeatureSourceIdPath, }) => {
|
|
42
|
+
const mapState = state[MAP];
|
|
43
|
+
return {
|
|
44
|
+
title: titleSelector(mapState),
|
|
45
|
+
locked: lockedSelector(mapState),
|
|
46
|
+
visibility: layerVisibilitySelector(mapState),
|
|
47
|
+
featureSource: featureSourceSelector(mapState, state),
|
|
48
|
+
featureSourceId: featureSourceIdSelector(mapState),
|
|
49
|
+
currentlySetFeatureSourceId: Array.isArray(setFeatureSourceIdPath)
|
|
50
|
+
? getPath(state, setFeatureSourceIdPath)
|
|
51
|
+
: undefined,
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
const LayerSwitcherEntry = connect(mapStateToProps, null,
|
|
53
55
|
// mergeProps:
|
|
54
|
-
(
|
|
55
|
-
// state props
|
|
56
|
-
{ visibility, title, locked, featureSource, featureSourceId, currentlySetFeatureSourceId, },
|
|
57
|
-
// dispatch props
|
|
58
|
-
{ dispatch },
|
|
59
|
-
// own props
|
|
60
|
-
{
|
|
56
|
+
(stateProps, { dispatch }, {
|
|
61
57
|
// used for active props:
|
|
62
58
|
layerId, setFeatureSourceIdPath,
|
|
63
59
|
// Need to list the selectors here so they do not get passed as attribute props to the element but get filtered:
|
|
64
|
-
lockedSelector:
|
|
65
|
-
title: title,
|
|
66
|
-
status:
|
|
67
|
-
|
|
60
|
+
lockedSelector: _1, titleSelector: _2, layerVisibilitySelector: _3, featureSourceSelector: _4, featureSourceIdSelector: _5, ...attributes }) => ({
|
|
61
|
+
title: stateProps.title,
|
|
62
|
+
status: stateProps.featureSource
|
|
63
|
+
? getFeatureSourceStatus(stateProps.featureSource)
|
|
64
|
+
: undefined,
|
|
65
|
+
locked: stateProps.locked,
|
|
68
66
|
...getActiveProps({
|
|
69
|
-
visibility: visibility,
|
|
70
|
-
featureSourceId: featureSourceId,
|
|
71
|
-
currentlySetFeatureSourceId: currentlySetFeatureSourceId,
|
|
72
|
-
locked: locked,
|
|
73
|
-
dispatch
|
|
74
|
-
layerId
|
|
75
|
-
setFeatureSourceIdPath
|
|
67
|
+
visibility: stateProps.visibility,
|
|
68
|
+
featureSourceId: stateProps.featureSourceId ?? "",
|
|
69
|
+
currentlySetFeatureSourceId: stateProps.currentlySetFeatureSourceId,
|
|
70
|
+
locked: stateProps.locked,
|
|
71
|
+
dispatch,
|
|
72
|
+
layerId,
|
|
73
|
+
setFeatureSourceIdPath,
|
|
76
74
|
}),
|
|
77
75
|
...attributes,
|
|
78
76
|
}))(SwitcherEntry);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerSwitcherEntry.js","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/LayerSwitcherEntry.
|
|
1
|
+
{"version":3,"file":"LayerSwitcherEntry.js","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/LayerSwitcherEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAKpC,OAAO,EAAC,GAAG,IAAI,aAAa,EAAC,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAC,sBAAsB,EAAC,MAAM,8CAA8C,CAAC;AAEpF,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAIlE,OAAO,OAAO,MAAM,iCAAiC,CAAC;AAEtD,OAAO,EAAC,GAAG,EAAC,MAAM,oCAAoC,CAAC;AACvD,OAAO,aAAa,MAAM,2BAA2B,CAAC;AAEtD,SAAS,cAAc,CAAC,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,eAAe,EACf,QAAQ,EACR,OAAO,EACP,UAAU,EACV,MAAM,GASN;IACA,IAAI,sBAAsB,EAAE,CAAC;QAC5B,MAAM,sBAAsB,GAC3B,2BAA2B,KAAK,eAAe,CAAC;QAEjD,uDAAuD;QACvD,8CAA8C;QAC9C,oCAAoC;QACpC,GAAG;QAEH,OAAO;YACN,cAAc,EAAE,UAAU;YAC1B,UAAU,EAAE,sBAAsB;YAClC,oBAAoB,EAAE,SAAS,oBAAoB;gBAClD,QAAQ,CAAC,kBAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;gBACxD,IAAI,sBAAsB,EAAE,CAAC;oBAC5B,QAAQ,CAAC,aAAa,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,CAAC;gBAC5D,CAAC;YACF,CAAC;YACD,gBAAgB,EAAE,SAAS,gBAAgB;gBAC1C,IAAI,eAAe,EAAE,CAAC;oBACrB,QAAQ,CACP,aAAa,CAAC,sBAAsB,EAAE,eAAe,CAAC,CACtD,CAAC;gBACH,CAAC;gBACD,QAAQ,CAAC,kBAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;YAClD,CAAC;SACD,CAAC;IACH,CAAC;IAED,OAAO;QACN,MAAM,EAAE,UAAU;QAClB,YAAY,EAAE,SAAS,YAAY;YAClC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACb,QAAQ,CAAC,kBAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;YACzD,CAAC;QACF,CAAC;KACD,CAAC;AACH,CAAC;AAeD,MAAM,eAAe,GAAG,CACvB,KAAY,EACZ,EACC,aAAa,EACb,cAAc,EACd,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,GACG,EACzB,EAAE;IACH,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAa,CAAC;IAExC,OAAO;QACN,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC;QAC9B,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC;QAChC,UAAU,EAAE,uBAAuB,CAAC,QAAQ,CAAC;QAC7C,aAAa,EAAE,qBAAqB,CAAC,QAAQ,EAAE,KAAK,CAAC;QACrD,eAAe,EAAE,uBAAuB,CAAC,QAAQ,CAAC;QAClD,2BAA2B,EAAE,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC;YACjE,CAAC,CAAE,OAAO,CAAC,KAAK,EAAE,sBAAsB,CAAwB;YAChE,CAAC,CAAC,SAAS;KACZ,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,OAAO,CACjC,eAAe,EACf,IAAI;AACJ,cAAc;AACd,CACC,UAAU,EACV,EAAC,QAAQ,EAAC,EACV;AACC,yBAAyB;AACzB,OAAO,EACP,sBAAsB;AAEtB,gHAAgH;AAChH,cAAc,EAAE,EAAE,EAClB,aAAa,EAAE,EAAE,EACjB,uBAAuB,EAAE,EAAE,EAC3B,qBAAqB,EAAE,EAAE,EACzB,uBAAuB,EAAE,EAAE,EAE3B,GAAG,UAAU,EACb,EACA,EAAE,CAAC,CAAC;IACL,KAAK,EAAE,UAAU,CAAC,KAAK;IACvB,MAAM,EAAE,UAAU,CAAC,aAAa;QAC/B,CAAC,CAAC,sBAAsB,CAAC,UAAU,CAAC,aAAa,CAAC;QAClD,CAAC,CAAC,SAAS;IACZ,MAAM,EAAE,UAAU,CAAC,MAAM;IACzB,GAAG,cAAc,CAAC;QACjB,UAAU,EAAE,UAAU,CAAC,UAAU;QACjC,eAAe,EAAE,UAAU,CAAC,eAAe,IAAI,EAAE;QACjD,2BAA2B,EAAE,UAAU,CAAC,2BAA2B;QACnE,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,QAAQ;QACR,OAAO;QACP,sBAAsB;KACtB,CAAC;IACF,GAAG,UAAU;CACb,CAAC,CACF,CAAC,aAAa,CAAC,CAAC;AAEjB,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Selector } from "@mapsight/core/types";
|
|
2
|
+
import type { LayerSwitcherConfigState } from "../../types";
|
|
3
|
+
declare const _default: import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<({ as: T, baseClassName, onClose, layerIdsSelector, grouped, setFeatureSourceIdPath, ...attributes }: import("./LayerSwitcherContainer").LayerSwitcherContainerProps) => import("react").JSX.Element>, {
|
|
4
|
+
as?: import("react").ElementType | undefined;
|
|
5
|
+
baseClassName?: string | undefined;
|
|
6
|
+
onClose?: (() => void) | undefined;
|
|
7
|
+
configSelector?: Selector<LayerSwitcherConfigState | undefined> | undefined;
|
|
8
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction> | null> | undefined;
|
|
9
|
+
store?: import("@reduxjs/toolkit").Store | undefined;
|
|
3
10
|
}>;
|
|
4
11
|
export default _default;
|
|
5
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/layer-switcher/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAKnD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,aAAa,CAAC;;;;;qBAMxC,QAAQ,CAAC,wBAAwB,GAAG,SAAS,CAAC;;;;AAGhE,wBAyB0B"}
|