@mapsight/ui 7.1.0 → 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 +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/index.d.ts +3 -2
- package/dist/components/feature-list/index.d.ts.map +1 -1
- package/dist/components/feature-list/index.js +30 -42
- 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 +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 +3 -2
- package/dist/components/layer-switcher/LayerSwitcherContainer.d.ts.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcherContainer.js +2 -2
- 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/index.d.ts +1 -1
- 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 +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/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/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -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 +8 -6
- package/dist/store/reducers.d.ts.map +1 -1
- package/dist/store/selectors.d.ts +10 -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 +19 -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 +23 -0
- package/src/scss/blocks/_filter-toggle-control.scss +15 -0
- package/src/scss/default.scss +1 -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
package/README.md
CHANGED
|
@@ -1,3 +1,92 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @mapsight/ui
|
|
2
2
|
|
|
3
|
-
React
|
|
3
|
+
Default **React UI** for [Mapsight](https://github.com/open-mapsight/mapsight) — maps, feature lists, filters, layer
|
|
4
|
+
switchers, and embed helpers on top of [
|
|
5
|
+
`@mapsight/core`](https://github.com/open-mapsight/mapsight/blob/main/packages/core/README.md). Pass a compiled vector
|
|
6
|
+
`styleFunction` (typically from [
|
|
7
|
+
`@mapsight/traffic-style`](https://github.com/open-mapsight/mapsight/blob/main/packages/traffic-style/README.md) or your
|
|
8
|
+
own [
|
|
9
|
+
`@mapsight/vector-style-compiler`](https://github.com/open-mapsight/mapsight/blob/main/packages/vector-style-compiler/README.md)
|
|
10
|
+
build), a declarative config object, and `create()` mounts the Redux-backed GIS runtime into a DOM container.
|
|
11
|
+
|
|
12
|
+
See the [documentation hub](https://github.com/open-mapsight/mapsight/blob/main/docs/README.md) for architecture,
|
|
13
|
+
integration patterns, and licensing.
|
|
14
|
+
|
|
15
|
+
## Quick start
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import styleFunction from "@mapsight/traffic-style/default";
|
|
19
|
+
import {create} from "@mapsight/ui";
|
|
20
|
+
|
|
21
|
+
// Declarative layer/view/list config — builders in @mapsight/ui/config
|
|
22
|
+
import mapsightConfig from "./mapsight-config";
|
|
23
|
+
|
|
24
|
+
create(document.getElementById("map"), styleFunction, mapsightConfig);
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Copy a working config from [
|
|
28
|
+
`apps/showcase/src/ui-demos/full-config.tsx`](https://github.com/open-mapsight/mapsight/blob/main/apps/showcase/src/ui-demos/full-config.tsx).
|
|
29
|
+
|
|
30
|
+
Runnable apps: [`apps/showcase`](https://github.com/open-mapsight/mapsight/tree/main/apps/showcase) (full UI demo) and [
|
|
31
|
+
`starters/mapsight-host-starter`](https://github.com/open-mapsight/mapsight/tree/main/starters/mapsight-host-starter) (
|
|
32
|
+
host embed), [
|
|
33
|
+
`starters/mapsight-next-starter`](https://github.com/open-mapsight/mapsight/tree/main/starters/mapsight-next-starter) (
|
|
34
|
+
Next.js host).
|
|
35
|
+
|
|
36
|
+
## Package layout
|
|
37
|
+
|
|
38
|
+
| Import | Role |
|
|
39
|
+
| ---------------------------- | ---------------------------------------------------------------------------- |
|
|
40
|
+
| `@mapsight/ui` | `create()`, React components, plugins, hooks |
|
|
41
|
+
| `@mapsight/ui/config` | Config builders (`map`, `features`, `featureList`, Zod schemas) |
|
|
42
|
+
| `@mapsight/ui/embed/browser` | CMS embed bootstrap (`browserEmbed`, hydration from `data-dehydrated-state`) |
|
|
43
|
+
| `@mapsight/ui/embed/node` | Server-side render entry for dehydrated HTML shells |
|
|
44
|
+
|
|
45
|
+
Peer dependency: `react`, `react-dom`.
|
|
46
|
+
|
|
47
|
+
## SCSS (host builds)
|
|
48
|
+
|
|
49
|
+
The npm package includes `src/scss/` (variables, reset, default theme partials). Host apps compile their own stylesheet
|
|
50
|
+
with Sass. Point `$ms3-iconPath` at `@mapsight/ui/dist/img/` so your bundler resolves UI chrome icons (`mapsight-ui/*`)
|
|
51
|
+
as assets (Vite/Webpack `~` alias — see starters and [
|
|
52
|
+
`apps/showcase`](https://github.com/open-mapsight/mapsight/tree/main/apps/showcase)):
|
|
53
|
+
|
|
54
|
+
```scss
|
|
55
|
+
@use "@mapsight/ui/src/scss/variables" with (
|
|
56
|
+
$ms3-iconPath: "~@mapsight/ui/dist/img/"
|
|
57
|
+
);
|
|
58
|
+
@use "@mapsight/ui/src/scss/default";
|
|
59
|
+
@use "@mapsight/ui/src/scss/themes/2022-03" as theme;
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Copy `@mapsight/traffic-style` icons (`mapsight-icons*`) to `public/img/` separately — they are fetched at runtime via
|
|
63
|
+
`imagesUrl`, not via this SCSS path.
|
|
64
|
+
|
|
65
|
+
Copy-out templates: [
|
|
66
|
+
`starters/mapsight-host-starter`](https://github.com/open-mapsight/mapsight/tree/main/starters/mapsight-host-starter), [
|
|
67
|
+
`starters/mapsight-next-starter`](https://github.com/open-mapsight/mapsight/tree/main/starters/mapsight-next-starter), [
|
|
68
|
+
`starters/mapsight-vite-spa-starter`](https://github.com/open-mapsight/mapsight/tree/main/starters/mapsight-vite-spa-starter).
|
|
69
|
+
|
|
70
|
+
## Documentation
|
|
71
|
+
|
|
72
|
+
| Guide | Package | Description |
|
|
73
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- | ----------------------------------------------------- |
|
|
74
|
+
| [Documentation hub](https://github.com/open-mapsight/mapsight/blob/main/docs/README.md) | — | Architecture, ecosystem, integration overview |
|
|
75
|
+
| [Mapsight Redux Architecture](https://github.com/open-mapsight/mapsight/blob/main/packages/core/docs/REDUX_ARCHITECTURE.md) | `@mapsight/core` | GIS state layer — store, controllers, OpenLayers sync |
|
|
76
|
+
| [Mapsight Action API — Decision Guide](https://github.com/open-mapsight/mapsight/blob/main/packages/core/docs/ACTION_GUIDE.md) | `@mapsight/core` | Which action API to dispatch for a given task |
|
|
77
|
+
| [SSR and hydration](https://github.com/open-mapsight/mapsight/blob/main/docs/integration/SSR_HYDRATION.md) | — | CMS embed + `data-dehydrated-state` contract |
|
|
78
|
+
| [CMS PHP integration](https://github.com/open-mapsight/mapsight/blob/main/docs/integration/CMS_PHP.md) | — | Classic PHP host pattern |
|
|
79
|
+
| [React SPA](https://github.com/open-mapsight/mapsight/blob/main/docs/integration/REACT_SPA.md) | — | Standalone React apps |
|
|
80
|
+
| [Next.js](https://github.com/open-mapsight/mapsight/blob/main/docs/integration/NEXTJS.md) | — | Next.js host notes |
|
|
81
|
+
| [Default icons and vector styles](https://github.com/open-mapsight/mapsight/blob/main/packages/traffic-style/README.md) | `@mapsight/traffic-style` | Precompiled style function and icon catalog |
|
|
82
|
+
| [Feature list sorter — deferred UX ideas](https://github.com/open-mapsight/mapsight/blob/main/packages/ui/docs/FEATURE_LIST_SORTER_UX.md) | `@mapsight/ui` | Low-priority UX notes (not on the roadmap) |
|
|
83
|
+
|
|
84
|
+
## Related packages
|
|
85
|
+
|
|
86
|
+
| Package | Role |
|
|
87
|
+
| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
|
|
88
|
+
| [`@mapsight/core`](https://github.com/open-mapsight/mapsight/blob/main/packages/core/README.md) | Redux GIS runtime (usable without React) |
|
|
89
|
+
| [`@mapsight/traffic-style`](https://github.com/open-mapsight/mapsight/blob/main/packages/traffic-style/README.md) | Default style function and icons |
|
|
90
|
+
| [`@mapsight/vector-style-compiler`](https://github.com/open-mapsight/mapsight/blob/main/packages/vector-style-compiler/README.md) | CSS subset → compiled style function |
|
|
91
|
+
| [`@mapsight/lib-ol`](https://github.com/open-mapsight/mapsight/blob/main/packages/lib-ol/README.md) | OpenLayers helpers (style cache, map fit, features) |
|
|
92
|
+
| [`@mapsight/lib-redux`](https://github.com/open-mapsight/mapsight/blob/main/packages/lib-redux/README.md) | Redux helpers used by core and UI plugins |
|
package/dist/components/app.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/js/components/app.tsx"],"names":[],"mappings":"AAkEA;;GAEG;AACH,iBAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/js/components/app.tsx"],"names":[],"mappings":"AAkEA;;GAEG;AACH,iBAAS,GAAG,gCAgKX;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-details-content.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-details-content/feature-details-content.jsx"],"names":[],"mappings":";;AA6BA;;;;;
|
|
1
|
+
{"version":3,"file":"feature-details-content.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-details-content/feature-details-content.jsx"],"names":[],"mappings":";;AA6BA;;;;;gCAyJC"}
|
|
@@ -3,7 +3,7 @@ declare const _default: import("react-redux").ConnectedComponent<import("react")
|
|
|
3
3
|
html: any;
|
|
4
4
|
hasError: any;
|
|
5
5
|
isEmbeddedMap: any;
|
|
6
|
-
}) => import("react
|
|
6
|
+
}) => import("react").JSX.Element>, {
|
|
7
7
|
feature: any;
|
|
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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"share-feature-link-modal.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-details-content/share-feature-link-modal.jsx"],"names":[],"mappings":";;AAYA;;;;
|
|
1
|
+
{"version":3,"file":"share-feature-link-modal.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-details-content/share-feature-link-modal.jsx"],"names":[],"mappings":";;AAYA;;;;gCAyCC"}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import type { PropsWithChildren } from "react";
|
|
1
|
+
import type { ElementType, PropsWithChildren } from "react";
|
|
2
2
|
import type { FullUiState, MapsightUiFeatureId, SelectFeatureActionOptions } from "../../types";
|
|
3
3
|
import type { FeatureListStateProps } from "./hooks/useFeatureListState";
|
|
4
|
+
export type FeatureListItemContextProps = {
|
|
5
|
+
showFeatureListInfo: boolean;
|
|
6
|
+
enableKeyboardControl: boolean;
|
|
7
|
+
selectFeature: (featureId: MapsightUiFeatureId, options?: SelectFeatureActionOptions) => void;
|
|
8
|
+
deselectFeature: () => void;
|
|
9
|
+
as?: ElementType;
|
|
10
|
+
};
|
|
4
11
|
export type FeatureListContextValue = {
|
|
5
12
|
state: Omit<FeatureListStateProps, "listUiOptions">;
|
|
6
13
|
listUiOptions: Partial<FullUiState["list"]>;
|
|
7
14
|
enableKeyboardControl: boolean;
|
|
8
15
|
showFeatureListInfo: boolean;
|
|
9
|
-
selectFeature: (featureId: MapsightUiFeatureId, options
|
|
10
|
-
deselectFeature: (
|
|
16
|
+
selectFeature: (featureId: MapsightUiFeatureId, options?: SelectFeatureActionOptions) => void;
|
|
17
|
+
deselectFeature: () => void;
|
|
18
|
+
itemProps: FeatureListItemContextProps;
|
|
11
19
|
};
|
|
12
20
|
export declare const FeatureListContextProvider: ({ value, children, }: PropsWithChildren<{
|
|
13
21
|
value: FeatureListContextValue;
|
|
14
|
-
}>) => import("react
|
|
22
|
+
}>) => import("react").JSX.Element;
|
|
15
23
|
export declare const useFeatureListContext: () => FeatureListContextValue;
|
|
16
24
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAG1D,OAAO,KAAK,EACX,WAAW,EACX,mBAAmB,EACnB,0BAA0B,EAC1B,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,6BAA6B,CAAC;AAEvE,MAAM,MAAM,2BAA2B,GAAG;IACzC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,aAAa,EAAE,CACd,SAAS,EAAE,mBAAmB,EAC9B,OAAO,CAAC,EAAE,0BAA0B,KAChC,IAAI,CAAC;IACV,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,EAAE,CAAC,EAAE,WAAW,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,IAAI,CAAC,qBAAqB,EAAE,eAAe,CAAC,CAAC;IACpD,aAAa,EAAE,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,qBAAqB,EAAE,OAAO,CAAC;IAC/B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,CACd,SAAS,EAAE,mBAAmB,EAC9B,OAAO,CAAC,EAAE,0BAA0B,KAChC,IAAI,CAAC;IACV,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,EAAE,2BAA2B,CAAC;CACvC,CAAC;AAKF,eAAO,MAAM,0BAA0B,GAAI,sBAGxC,iBAAiB,CAAC;IACpB,KAAK,EAAE,uBAAuB,CAAC;CAC/B,CAAC,gCAID,CAAC;AAEF,eAAO,MAAM,qBAAqB,+BAOjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/js/components/feature-list/context.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/js/components/feature-list/context.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,OAAO,CAAC;AAiChD,MAAM,kBAAkB,GAAG,aAAa,CAAiC,IAAI,CAAC,CAAC;AAC/E,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAC;AAEtD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EAC1C,KAAK,EACL,QAAQ,GAGP,EAAE,EAAE,CAAC,CACN,KAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACvC,QAAQ,GACoB,CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACzC,MAAM,KAAK,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAC7C,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -3,5 +3,5 @@ declare function FeatureListEmptyMessage({ hasSource, as: T, ...attributes }: {
|
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
hasSource: any;
|
|
5
5
|
as?: string | undefined;
|
|
6
|
-
}): import("react
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=empty-message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-message.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/empty-message.jsx"],"names":[],"mappings":";AAEA;;;;
|
|
1
|
+
{"version":3,"file":"empty-message.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/empty-message.jsx"],"names":[],"mappings":";AAEA;;;;gCAUC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const _default: import("react").MemoExoticComponent<typeof FeatureFilter>;
|
|
2
2
|
export default _default;
|
|
3
|
-
declare function FeatureFilter(): import("react
|
|
3
|
+
declare function FeatureFilter(): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/filter.jsx"],"names":[],"mappings":";;AASA,
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/filter.jsx"],"names":[],"mappings":";;AASA,8DAuBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/footer.jsx"],"names":[],"mappings":";AAAA;;;
|
|
1
|
+
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/footer.jsx"],"names":[],"mappings":";AAAA;;;gCAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAutoloadFeatureSource.d.ts","sourceRoot":"","sources":["../../../../src/js/components/feature-list/hooks/useAutoloadFeatureSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAutoloadFeatureSource.d.ts","sourceRoot":"","sources":["../../../../src/js/components/feature-list/hooks/useAutoloadFeatureSource.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC/C,OAAO,UAAQ,EACf,eAAe,CAAC,EAAE,MAAM,QAqBxB"}
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
|
-
import { useDispatch } from "react-redux";
|
|
2
|
+
import { useDispatch, useSelector } from "react-redux";
|
|
3
3
|
import { async } from "@mapsight/core/lib/base/actions";
|
|
4
4
|
import { load } from "@mapsight/core/lib/feature-sources/actions";
|
|
5
5
|
import { FEATURE_SOURCES } from "../../../config/constants/controllers";
|
|
6
6
|
export default function useAutoloadFeatureSource(enabled = false, featureSourceId) {
|
|
7
7
|
const dispatch = useDispatch();
|
|
8
|
+
const needsLoad = useSelector((state) => {
|
|
9
|
+
if (!featureSourceId) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
const featureSource = state[FEATURE_SOURCES]?.[featureSourceId];
|
|
13
|
+
return (!featureSource?.data &&
|
|
14
|
+
!featureSource?.isLoading &&
|
|
15
|
+
!featureSource?.error);
|
|
16
|
+
});
|
|
8
17
|
useEffect(() => {
|
|
9
|
-
if (enabled && featureSourceId) {
|
|
18
|
+
if (enabled && featureSourceId && needsLoad) {
|
|
10
19
|
dispatch(async(load(FEATURE_SOURCES, featureSourceId)));
|
|
11
20
|
}
|
|
12
|
-
}, [enabled, featureSourceId, dispatch]);
|
|
21
|
+
}, [enabled, featureSourceId, needsLoad, dispatch]);
|
|
13
22
|
}
|
|
14
23
|
//# sourceMappingURL=useAutoloadFeatureSource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAutoloadFeatureSource.js","sourceRoot":"","sources":["../../../../src/js/components/feature-list/hooks/useAutoloadFeatureSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAChC,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"useAutoloadFeatureSource.js","sourceRoot":"","sources":["../../../../src/js/components/feature-list/hooks/useAutoloadFeatureSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAChC,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAIrD,OAAO,EAAC,KAAK,EAAC,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAC,IAAI,EAAC,MAAM,4CAA4C,CAAC;AAGhE,OAAO,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AAEtE,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC/C,OAAO,GAAG,KAAK,EACf,eAAwB;IAExB,MAAM,QAAQ,GAAG,WAAW,EAAyC,CAAC;IACtE,MAAM,SAAS,GAAG,WAAW,CAAC,CAAC,KAAY,EAAE,EAAE;QAC9C,IAAI,CAAC,eAAe,EAAE,CAAC;YACtB,OAAO,KAAK,CAAC;QACd,CAAC;QAED,MAAM,aAAa,GAAG,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;QAChE,OAAO,CACN,CAAC,aAAa,EAAE,IAAI;YACpB,CAAC,aAAa,EAAE,SAAS;YACzB,CAAC,aAAa,EAAE,KAAK,CACrB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,OAAO,IAAI,eAAe,IAAI,SAAS,EAAE,CAAC;YAC7C,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;QACzD,CAAC;IACF,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
1
|
+
import type { FeatureListProps } from "../../types";
|
|
2
|
+
export declare const DEFAULT_LIST_RENDER_AS = "ul";
|
|
3
|
+
declare const _default: import("react").ForwardRefExoticComponent<FeatureListProps & import("react").RefAttributes<HTMLElement>>;
|
|
3
4
|
export default _default;
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EACX,gBAAgB,EAKhB,MAAM,aAAa,CAAC;AA0BrB,eAAO,MAAM,sBAAsB,OAAO,CAAC;;AA8O3C,wBAA4C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { deselectAll } from "@mapsight/core/lib/feature-selections/actions";
|
|
3
2
|
import { forwardRef, useCallback, useMemo, useRef } from "react";
|
|
4
3
|
import { useDispatch, useSelector } from "react-redux";
|
|
4
|
+
import { deselectAll } from "@mapsight/core/lib/feature-selections/actions";
|
|
5
5
|
import { FEATURE_SELECTIONS } from "../../config/constants/controllers";
|
|
6
6
|
import getFeatureProperty from "../../helpers/get-feature-property";
|
|
7
7
|
import { layerSwitcherConfigExternalSelector, listUiOptionsSelector, viewSelector, } from "../../store/selectors";
|
|
@@ -21,18 +21,20 @@ import { useMakeHeaderSticky } from "./hooks/useMakeHeaderSticky";
|
|
|
21
21
|
import useRestoreDocumentScroll from "./hooks/useRestoreDocumentScroll";
|
|
22
22
|
import useSelectFeature from "./hooks/useSelectFeature";
|
|
23
23
|
import Pagination from "./pagination";
|
|
24
|
+
import FeatureListTagSwitcherControl from "./tag-switcher-control";
|
|
24
25
|
export const DEFAULT_LIST_RENDER_AS = "ul";
|
|
25
26
|
function stopEventPropagation(e) {
|
|
26
27
|
e.stopPropagation();
|
|
27
28
|
}
|
|
28
29
|
function determineShowListInfo(features) {
|
|
29
|
-
if (features.length) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
if (!features.length) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
const firstInfo = getFeatureProperty(features[0], "listInformation");
|
|
34
|
+
for (const feature of features) {
|
|
35
|
+
const info = getFeatureProperty(feature, "listInformation");
|
|
36
|
+
if (firstInfo !== info) {
|
|
37
|
+
return true;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
return false;
|
|
@@ -43,50 +45,34 @@ function determineItemType(containerType = DEFAULT_LIST_RENDER_AS) {
|
|
|
43
45
|
}
|
|
44
46
|
return "p";
|
|
45
47
|
}
|
|
46
|
-
|
|
47
|
-
* @template T
|
|
48
|
-
* @param {import("../../types").FeatureListProps<T>} props props
|
|
49
|
-
* @param {React.RefObject<React.ElementRef<T>>} forwardedRef ref
|
|
50
|
-
* @returns {React.ReactElement} element
|
|
51
|
-
*/
|
|
52
|
-
function FeatureList(props, forwardedRef) {
|
|
53
|
-
const { additionalClasses, as: T = "div", attributes = {}, headerAs: HeaderT = FeatureListHeader, contentAs: ContentT = FeatureListGroupedContent, footerAs: FooterT = FeatureListFooter, itemAs, enableKeyboardControl = false, autoloadFeatureSource = true, sort = true, filter = true, enableScrollPosition = true, overrideListUiOptions, listControllerName, } = props;
|
|
48
|
+
function FeatureListInner({ additionalClasses, as: T = "div", attributes = {}, headerAs: HeaderT = FeatureListHeader, contentAs: ContentT = FeatureListGroupedContent, footerAs: FooterT = FeatureListFooter, itemAs, enableKeyboardControl = false, autoloadFeatureSource = true, sort = true, filter = true, enableScrollPosition = true, overrideListUiOptions, listControllerName, }, forwardedRef) {
|
|
54
49
|
const listUiOptionsState = useSelector(listUiOptionsSelector);
|
|
55
|
-
const listUiOptions = overrideListUiOptions ||
|
|
50
|
+
const listUiOptions = (overrideListUiOptions ||
|
|
51
|
+
listUiOptionsState);
|
|
56
52
|
const { stickyHeader, detailsInList, showVaryingListInfoOnly, renderGroupAs, renderAs = DEFAULT_LIST_RENDER_AS, selectionBehaviorSelection, } = listUiOptions;
|
|
57
53
|
const state = useFeatureListState(listUiOptions, sort, filter, enableScrollPosition, listControllerName);
|
|
58
54
|
const view = useSelector(viewSelector);
|
|
59
55
|
if (renderAs === "table") {
|
|
60
56
|
throw new Error("@mapsight/ui does not support rendering the feature list as <table> anymore!");
|
|
61
57
|
}
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
const ownRef = useRef();
|
|
66
|
-
/** @type {React.RefObject<HTMLElement>} */
|
|
67
|
-
const ref = forwardedRef || ownRef;
|
|
58
|
+
const headerRef = useRef(null);
|
|
59
|
+
const ownRef = useRef(null);
|
|
60
|
+
const ref = (forwardedRef ?? ownRef);
|
|
68
61
|
useMakeHeaderSticky(stickyHeader, ref, headerRef, view);
|
|
69
62
|
useAutoloadFeatureSource(autoloadFeatureSource, state.featureSourceId);
|
|
70
63
|
useRestoreDocumentScroll(view, state.scrollPosition);
|
|
71
64
|
useAppChannelEventListener(APP_EVENT_SCROLL_TO_FEATURE_LIST, useCallback(() => {
|
|
72
|
-
ref.current
|
|
65
|
+
ref.current?.scrollIntoView({ block: "start", behavior: "smooth" });
|
|
73
66
|
}, [ref]));
|
|
74
67
|
const dispatch = useDispatch();
|
|
75
68
|
const selectFeatureAction = useSelectFeature();
|
|
76
|
-
const selectFeature = useCallback((featureId,
|
|
69
|
+
const selectFeature = useCallback((featureId, _options) => dispatch(selectFeatureAction(featureId)), [dispatch, selectFeatureAction]);
|
|
77
70
|
const deselectFeature = useCallback(() => dispatch(deselectAll(FEATURE_SELECTIONS, selectionBehaviorSelection)), [dispatch, selectionBehaviorSelection]);
|
|
78
71
|
// Decide whether to show the info column
|
|
79
72
|
// based on if there is any "interesting" aka distinct data available in the features
|
|
80
73
|
// We do this before filtering so it does not change while changing the filter
|
|
81
74
|
const showFeatureListInfo = state.filteredFeatures.length !== 0 &&
|
|
82
|
-
(showVaryingListInfoOnly
|
|
83
|
-
determineShowListInfo(state.features));
|
|
84
|
-
// TODO:
|
|
85
|
-
//<StatusIndicator {...{
|
|
86
|
-
// lastUpdate: this.props.lastUpdate,
|
|
87
|
-
// status: this.props.status,
|
|
88
|
-
// key: 'si'
|
|
89
|
-
//}} />
|
|
75
|
+
(!showVaryingListInfoOnly || determineShowListInfo(state.features));
|
|
90
76
|
let className = "ms3-list-wrapper";
|
|
91
77
|
if (detailsInList) {
|
|
92
78
|
className += " ms3-list-wrapper--with-details";
|
|
@@ -106,8 +92,7 @@ function FeatureList(props, forwardedRef) {
|
|
|
106
92
|
showFeatureListInfo,
|
|
107
93
|
]);
|
|
108
94
|
const renderItemAs = itemAs || determineItemType(renderAs);
|
|
109
|
-
const contextValue = useMemo(() =>
|
|
110
|
-
/** @type {import("./context").FeatureListContextValue} */ ({
|
|
95
|
+
const contextValue = useMemo(() => ({
|
|
111
96
|
state: state,
|
|
112
97
|
listUiOptions: listUiOptions,
|
|
113
98
|
enableKeyboardControl: enableKeyboardControl,
|
|
@@ -124,16 +109,19 @@ function FeatureList(props, forwardedRef) {
|
|
|
124
109
|
state,
|
|
125
110
|
itemProps,
|
|
126
111
|
]);
|
|
127
|
-
const { filterControl, sortControl, cyclingControl, integratedList, paginationControl, itemsPerPage, } = listUiOptions;
|
|
128
|
-
const { page, featureCount,
|
|
112
|
+
const { filterControl, sortControl, tagSwitcherControl, cyclingControl, integratedList, paginationControl, itemsPerPage, } = listUiOptions;
|
|
113
|
+
const { page, featureCount, featureSourceId, filteredFeatures, layerSwitcherShowExternal, tagSwitcherShow, } = state;
|
|
129
114
|
let filterBox = null;
|
|
130
|
-
if (filterControl
|
|
131
|
-
filterBox = _jsx(FeatureFilter, {
|
|
115
|
+
if (filterControl) {
|
|
116
|
+
filterBox = _jsx(FeatureFilter, {});
|
|
132
117
|
}
|
|
133
|
-
else if (sortControl
|
|
118
|
+
else if (sortControl || !cyclingControl) {
|
|
134
119
|
filterBox = _jsx("div", { className: "ms3-list__filter-box", children: "\u00A0" });
|
|
135
120
|
}
|
|
136
|
-
|
|
121
|
+
const Wrapper = T;
|
|
122
|
+
return (_jsx(FeatureListContextProvider, { value: contextValue, children: _jsxs(Wrapper, { className: className, onTouchMove: stopEventPropagation, ref: ref, ...attributes, children: [_jsxs(HeaderT, { ref: headerRef, children: [filterBox, sortControl && _jsx(FeatureSorter, {}), cyclingControl && (_jsx(FeatureCycling, { filteredFeatures: filteredFeatures })), integratedList && layerSwitcherShowExternal && (_jsx(LayerSwitcher, { configSelector: layerSwitcherConfigExternalSelector })), integratedList &&
|
|
123
|
+
tagSwitcherShow &&
|
|
124
|
+
(tagSwitcherControl ? (_jsx(FeatureListTagSwitcherControl, {})) : (_jsx(TagSwitcher, {})))] }), _jsx(ContentT, { groupAs: renderGroupAs, itemAs: renderItemAs, featureSourceId: featureSourceId }), _jsx(FooterT, { children: paginationControl ? (_jsx(Pagination, { page: page, count: Math.ceil(featureCount / itemsPerPage) })) : null })] }) }));
|
|
137
125
|
}
|
|
138
|
-
export default forwardRef(
|
|
126
|
+
export default forwardRef(FeatureListInner);
|
|
139
127
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/feature-list/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/feature-list/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAErD,OAAO,EAAC,WAAW,EAAC,MAAM,+CAA+C,CAAC;AAE1E,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AACtE,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,EACN,mCAAmC,EACnC,qBAAqB,EACrB,YAAY,GACZ,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,cAAc,MAAM,yBAAyB,CAAC;AACrD,OAAO,aAAa,MAAM,yBAAyB,CAAC;AACpD,OAAO,EACN,gCAAgC,EAChC,0BAA0B,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,aAAa,MAAM,yBAAyB,CAAC;AACpD,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAKhD,OAAO,EAAC,0BAA0B,EAAC,MAAM,WAAW,CAAC;AACrD,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,iBAAiB,MAAM,UAAU,CAAC;AACzC,OAAO,yBAAyB,MAAM,mBAAmB,CAAC;AAC1D,OAAO,iBAAiB,MAAM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BAAgB,GAAI,CACtD,EAEA,cAAc,IAAI,yBAAyB,IAAI,CAC/C,KAAC,aAAa,IACb,cAAc,EAAE,mCAAmC,GAClD,CACF,EAEA,cAAc;4BACd,eAAe;4BACf,CAAC,kBAAkB,CAAC,CAAC,CAAC,CACrB,KAAC,6BAA6B,KAAG,CACjC,CAAC,CAAC,CAAC,CACH,KAAC,WAAW,KAAG,CACf,CAAC,IACM,EACV,KAAC,QAAQ,IACR,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,YAAY,EACpB,eAAe,EAAE,eAAe,GAC/B,EACF,KAAC,OAAO,cACN,iBAAiB,CAAC,CAAC,CAAC,CACpB,KAAC,UAAU,IACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC,GAC5C,CACF,CAAC,CAAC,CAAC,IAAI,GACC,IACD,GACkB,CAC7B,CAAC;AACH,CAAC;AAED,eAAe,UAAU,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/pagination.tsx"],"names":[],"mappings":"AAeA,iBAAS,UAAU,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,EAAE;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/pagination.tsx"],"names":[],"mappings":"AAeA,iBAAS,UAAU,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,EAAE;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,sCAuC/D;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-input.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/query-input.jsx"],"names":[],"mappings":";AAGA,
|
|
1
|
+
{"version":3,"file":"query-input.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/query-input.jsx"],"names":[],"mappings":";AAGA,4EAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-switcher-control.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list/tag-switcher-control.tsx"],"names":[],"mappings":"AAMA,iBAAS,6BAA6B,gCAUrC;;AAED,wBAAmD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { memo } from "react";
|
|
3
|
+
import { translate } from "../../helpers/i18n";
|
|
4
|
+
import FilterToggleControl from "../filter-toggle-control/FilterToggleControl";
|
|
5
|
+
import TagSwitcher from "../tag-switcher/index";
|
|
6
|
+
function FeatureListTagSwitcherControl() {
|
|
7
|
+
return (_jsx(FilterToggleControl, { buttonClassName: "ms3-filter-button--icon-tags", buttonActiveClassName: "ms3-filter-button--icon-tags-active", title: translate("ui.feature-list.tag-switcher.announcements"), children: _jsx(TagSwitcher, {}) }));
|
|
8
|
+
}
|
|
9
|
+
export default memo(FeatureListTagSwitcherControl);
|
|
10
|
+
//# sourceMappingURL=tag-switcher-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-switcher-control.js","sourceRoot":"","sources":["../../../src/js/components/feature-list/tag-switcher-control.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,OAAO,mBAAmB,MAAM,8CAA8C,CAAC;AAC/E,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAEhD,SAAS,6BAA6B;IACrC,OAAO,CACN,KAAC,mBAAmB,IACnB,eAAe,EAAC,8BAA8B,EAC9C,qBAAqB,EAAC,qCAAqC,EAC3D,KAAK,EAAE,SAAS,CAAC,4CAA4C,CAAC,YAE9D,KAAC,WAAW,KAAG,GACM,CACtB,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,6BAA6B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/button.jsx"],"names":[],"mappings":";AAAA;;;;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/button.jsx"],"names":[],"mappings":";AAAA;;;;gCAUC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dot.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/dot.jsx"],"names":[],"mappings":";AAEA;;;;;;;;
|
|
1
|
+
{"version":3,"file":"dot.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/dot.jsx"],"names":[],"mappings":";AAEA;;;;;;;;gCAsCC"}
|
|
@@ -7,5 +7,5 @@ declare function FeatureListCycling({ filteredFeatures, selectedFeatureId, highl
|
|
|
7
7
|
onFeatureSelection: any;
|
|
8
8
|
onFeatureHighlight: any;
|
|
9
9
|
onFeatureUnHighlight: any;
|
|
10
|
-
}): import("react
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
11
|
//# sourceMappingURL=feature-list-cycling.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-list-cycling.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/feature-list-cycling.jsx"],"names":[],"mappings":";;AAcA;;;;;;;
|
|
1
|
+
{"version":3,"file":"feature-list-cycling.d.ts","sourceRoot":"","sources":["../../../src/js/components/feature-list-cycling/feature-list-cycling.jsx"],"names":[],"mappings":";;AAcA;;;;;;;gCAwIC"}
|
|
@@ -5,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"}
|