@mapsight/ui 7.1.0 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +95 -2
- package/dist/components/app.d.ts +1 -1
- package/dist/components/app.d.ts.map +1 -1
- package/dist/components/feature-details-content/feature-details-content.d.ts +1 -1
- package/dist/components/feature-details-content/feature-details-content.d.ts.map +1 -1
- package/dist/components/feature-details-content/index.d.ts +1 -1
- package/dist/components/feature-details-content/share-feature-link-modal.d.ts +1 -1
- package/dist/components/feature-details-content/share-feature-link-modal.d.ts.map +1 -1
- package/dist/components/feature-list/context.d.ts +12 -4
- package/dist/components/feature-list/context.d.ts.map +1 -1
- package/dist/components/feature-list/context.js.map +1 -1
- package/dist/components/feature-list/empty-message.d.ts +1 -1
- package/dist/components/feature-list/empty-message.d.ts.map +1 -1
- package/dist/components/feature-list/filter.d.ts +1 -1
- package/dist/components/feature-list/filter.d.ts.map +1 -1
- package/dist/components/feature-list/footer.d.ts +1 -1
- package/dist/components/feature-list/footer.d.ts.map +1 -1
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.d.ts.map +1 -1
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.js +12 -3
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.js.map +1 -1
- package/dist/components/feature-list/hooks/useFeatureListItemGroups.js +1 -1
- package/dist/components/feature-list/hooks/useFeatureListItemGroups.js.map +1 -1
- package/dist/components/feature-list/index.d.ts +3 -2
- package/dist/components/feature-list/index.d.ts.map +1 -1
- package/dist/components/feature-list/index.js +33 -42
- package/dist/components/feature-list/index.js.map +1 -1
- package/dist/components/feature-list/layer-switcher-control.d.ts +4 -0
- package/dist/components/feature-list/layer-switcher-control.d.ts.map +1 -0
- package/dist/components/feature-list/layer-switcher-control.js +11 -0
- package/dist/components/feature-list/layer-switcher-control.js.map +1 -0
- package/dist/components/feature-list/pagination.d.ts +1 -1
- package/dist/components/feature-list/pagination.d.ts.map +1 -1
- package/dist/components/feature-list/query-input.d.ts +1 -1
- package/dist/components/feature-list/query-input.d.ts.map +1 -1
- package/dist/components/feature-list/tag-switcher-control.d.ts +4 -0
- package/dist/components/feature-list/tag-switcher-control.d.ts.map +1 -0
- package/dist/components/feature-list/tag-switcher-control.js +10 -0
- package/dist/components/feature-list/tag-switcher-control.js.map +1 -0
- package/dist/components/feature-list-cycling/button.d.ts +1 -1
- package/dist/components/feature-list-cycling/button.d.ts.map +1 -1
- package/dist/components/feature-list-cycling/dot.d.ts +1 -1
- package/dist/components/feature-list-cycling/dot.d.ts.map +1 -1
- package/dist/components/feature-list-cycling/feature-list-cycling.d.ts +1 -1
- package/dist/components/feature-list-cycling/feature-list-cycling.d.ts.map +1 -1
- package/dist/components/feature-list-cycling/index.d.ts +1 -1
- package/dist/components/feature-list-item/icon.d.ts +8 -6
- package/dist/components/feature-list-item/icon.d.ts.map +1 -1
- package/dist/components/feature-list-item/icon.js +5 -13
- package/dist/components/feature-list-item/icon.js.map +1 -1
- package/dist/components/feature-list-item/index.d.ts +1 -1
- package/dist/components/feature-list-item/index.d.ts.map +1 -1
- package/dist/components/feature-list-sorting/feature-list-sorting.d.ts +1 -1
- package/dist/components/feature-list-sorting/feature-list-sorting.d.ts.map +1 -1
- package/dist/components/feature-list-sorting/feature-list-sorting.js +3 -12
- package/dist/components/feature-list-sorting/feature-list-sorting.js.map +1 -1
- package/dist/components/feature-list-sorting/index.d.ts +1 -1
- package/dist/components/feature-list-sorting/status-indicator.d.ts +1 -1
- package/dist/components/feature-list-sorting/status-indicator.d.ts.map +1 -1
- package/dist/components/feature-select-button.d.ts +1 -1
- package/dist/components/feature-select-button.d.ts.map +1 -1
- package/dist/components/feature-selection-info/close-button.d.ts +1 -1
- package/dist/components/feature-selection-info/close-button.d.ts.map +1 -1
- package/dist/components/feature-selection-info/container.d.ts +1 -1
- package/dist/components/feature-selection-info/container.d.ts.map +1 -1
- package/dist/components/feature-selection-info/header.d.ts +1 -1
- package/dist/components/feature-selection-info/header.d.ts.map +1 -1
- package/dist/components/feature-selection-info/index.d.ts +1 -1
- package/dist/components/feature-selection-info/index.d.ts.map +1 -1
- package/dist/components/feature-selection-info/with-sticky-header.d.ts +1 -1
- package/dist/components/feature-selection-info/with-sticky-header.d.ts.map +1 -1
- package/dist/components/feature-selection-info/without-sticky-header.d.ts +1 -1
- package/dist/components/feature-selection-info/without-sticky-header.d.ts.map +1 -1
- package/dist/components/filter-toggle-control/FilterToggleControl.d.ts +12 -0
- package/dist/components/filter-toggle-control/FilterToggleControl.d.ts.map +1 -0
- package/dist/components/filter-toggle-control/FilterToggleControl.js +20 -0
- package/dist/components/filter-toggle-control/FilterToggleControl.js.map +1 -0
- package/dist/components/helping/app-channel.d.ts +1 -1
- package/dist/components/helping/app-channel.d.ts.map +1 -1
- package/dist/components/helping/app-context.d.ts +1 -1
- package/dist/components/helping/app-context.d.ts.map +1 -1
- package/dist/components/instance.d.ts +1 -1
- package/dist/components/instance.d.ts.map +1 -1
- package/dist/components/layer-switcher/GroupedLayerSwitcher.d.ts +1 -1
- package/dist/components/layer-switcher/LayerSwitcher.d.ts +1 -1
- package/dist/components/layer-switcher/LayerSwitcherContainer.d.ts +4 -2
- package/dist/components/layer-switcher/LayerSwitcherContainer.d.ts.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcherContainer.js +10 -4
- package/dist/components/layer-switcher/LayerSwitcherContainer.js.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcherEntry.d.ts +1 -1
- package/dist/components/layer-switcher/SplitBaseLayerSwitcher.d.ts +26 -0
- package/dist/components/layer-switcher/SplitBaseLayerSwitcher.d.ts.map +1 -0
- package/dist/components/layer-switcher/SplitBaseLayerSwitcher.js +48 -0
- package/dist/components/layer-switcher/SplitBaseLayerSwitcher.js.map +1 -0
- package/dist/components/layer-switcher/index.d.ts +1 -1
- package/dist/components/layer-switcher/index.d.ts.map +1 -1
- package/dist/components/layer-switcher/index.js +1 -0
- package/dist/components/layer-switcher/index.js.map +1 -1
- package/dist/components/layout/additional-container/content.d.ts +1 -1
- package/dist/components/layout/additional-container/content.d.ts.map +1 -1
- package/dist/components/layout/additional-container/index.d.ts +1 -1
- package/dist/components/layout/additional-container/index.d.ts.map +1 -1
- package/dist/components/layout/additional-container/marginal.d.ts +1 -1
- package/dist/components/layout/additional-container/marginal.d.ts.map +1 -1
- package/dist/components/layout/main-container.d.ts +1 -1
- package/dist/components/layout/main-container.d.ts.map +1 -1
- package/dist/components/layout/map-row.d.ts +1 -1
- package/dist/components/layout/map-row.d.ts.map +1 -1
- package/dist/components/layout/title-bar.d.ts +1 -1
- package/dist/components/layout/title-bar.d.ts.map +1 -1
- package/dist/components/layout/wrapper.d.ts +1 -1
- package/dist/components/layout/wrapper.d.ts.map +1 -1
- package/dist/components/link-share.d.ts +1 -1
- package/dist/components/link-share.d.ts.map +1 -1
- package/dist/components/main-panel/container.d.ts +1 -1
- package/dist/components/main-panel/container.d.ts.map +1 -1
- package/dist/components/main-panel/context.d.ts +1 -1
- package/dist/components/main-panel/context.d.ts.map +1 -1
- package/dist/components/main-panel/index.d.ts +1 -1
- package/dist/components/main-panel/index.d.ts.map +1 -1
- package/dist/components/main-panel/list-toggle-button.d.ts +1 -1
- package/dist/components/main-panel/list-toggle-button.d.ts.map +1 -1
- package/dist/components/map-overlay/attribution-entries.d.ts +1 -1
- package/dist/components/map-overlay/attribution-entries.d.ts.map +1 -1
- package/dist/components/map-overlay/attribution.d.ts +1 -1
- package/dist/components/map-overlay/attribution.d.ts.map +1 -1
- package/dist/components/map-overlay/combined-buttons.d.ts +1 -1
- package/dist/components/map-overlay/combined-buttons.d.ts.map +1 -1
- package/dist/components/map-overlay/index.d.ts +1 -1
- package/dist/components/map-overlay/index.d.ts.map +1 -1
- package/dist/components/map-overlay/info-overlay-left.d.ts +1 -1
- package/dist/components/map-overlay/info-overlay-left.d.ts.map +1 -1
- package/dist/components/map-overlay/info-overlay-modal.d.ts +1 -1
- package/dist/components/map-overlay/info-overlay-modal.d.ts.map +1 -1
- package/dist/components/map-overlay/info-overlay-right.d.ts +1 -1
- package/dist/components/map-overlay/info-overlay-right.d.ts.map +1 -1
- package/dist/components/map-overlay/layer-switcher-overlay.d.ts +1 -1
- package/dist/components/map-overlay/layer-switcher-overlay.d.ts.map +1 -1
- package/dist/components/map-overlay/legend.d.ts +1 -1
- package/dist/components/map-overlay/legend.d.ts.map +1 -1
- package/dist/components/map-overlay/logo.d.ts +1 -1
- package/dist/components/map-overlay/logo.d.ts.map +1 -1
- package/dist/components/map-overlay/measure-distance-button.d.ts +1 -1
- package/dist/components/map-overlay/measure-distance-button.d.ts.map +1 -1
- package/dist/components/map-overlay/measure-distance-overlay.d.ts +1 -1
- package/dist/components/map-overlay/measure-distance-overlay.d.ts.map +1 -1
- package/dist/components/map-overlay/search-overlay.d.ts +1 -1
- package/dist/components/map-overlay/search-overlay.d.ts.map +1 -1
- package/dist/components/map-overlay/share-position-link-button.d.ts +1 -1
- package/dist/components/map-overlay/share-position-link-button.d.ts.map +1 -1
- package/dist/components/map-overlay/tool-overlay.d.ts +1 -1
- package/dist/components/map-overlay/tool-overlay.d.ts.map +1 -1
- package/dist/components/map-overlay/zoom-buttons.d.ts +1 -1
- package/dist/components/map-overlay/zoom-buttons.d.ts.map +1 -1
- package/dist/components/map-synced-interlay/index.d.ts +1 -1
- package/dist/components/map-synced-interlay/map-synced-interlay.d.ts +1 -1
- package/dist/components/map-synced-interlay/map-synced-interlay.d.ts.map +1 -1
- package/dist/components/map-synced-interlay/tooltip.d.ts +1 -1
- package/dist/components/map-synced-interlay/tooltip.d.ts.map +1 -1
- package/dist/components/map-wrapper.d.ts +3 -3
- package/dist/components/map-wrapper.d.ts.map +1 -1
- package/dist/components/map-wrapper.js +4 -7
- package/dist/components/map-wrapper.js.map +1 -1
- package/dist/components/map.d.ts +1 -1
- package/dist/components/map.d.ts.map +1 -1
- package/dist/components/mapsight-icon/mapsight-icon.d.ts +10 -0
- package/dist/components/mapsight-icon/mapsight-icon.d.ts.map +1 -0
- package/dist/components/mapsight-icon/mapsight-icon.js +33 -0
- package/dist/components/mapsight-icon/mapsight-icon.js.map +1 -0
- package/dist/components/modal.d.ts +1 -1
- package/dist/components/modal.d.ts.map +1 -1
- package/dist/components/query-input-with-label.d.ts +1 -1
- package/dist/components/query-input-with-label.d.ts.map +1 -1
- package/dist/components/search/index.d.ts +1 -1
- package/dist/components/search/index.d.ts.map +1 -1
- package/dist/components/search/result-entry.d.ts +1 -1
- package/dist/components/search/result-entry.d.ts.map +1 -1
- package/dist/components/search/result.d.ts +1 -1
- package/dist/components/search/result.d.ts.map +1 -1
- package/dist/components/switcher/GroupedSwitcher.d.ts +1 -1
- package/dist/components/switcher/GroupedSwitcher.d.ts.map +1 -1
- package/dist/components/switcher/Switcher.d.ts +1 -1
- package/dist/components/switcher/Switcher.d.ts.map +1 -1
- package/dist/components/switcher/SwitcherButton.d.ts +1 -1
- package/dist/components/switcher/SwitcherButton.d.ts.map +1 -1
- package/dist/components/switcher/SwitcherEntry.d.ts +1 -1
- package/dist/components/switcher/SwitcherEntry.d.ts.map +1 -1
- package/dist/components/switcher/SwitcherHeader.d.ts +1 -1
- package/dist/components/switcher/SwitcherHeader.d.ts.map +1 -1
- package/dist/components/switcher/SwitcherStatusIcon.d.ts +1 -1
- package/dist/components/switcher/SwitcherStatusIcon.d.ts.map +1 -1
- package/dist/components/tag-switcher/TagSwitcher.d.ts +1 -1
- package/dist/components/tag-switcher/TagSwitcher.d.ts.map +1 -1
- package/dist/components/tag-switcher/createTagSwitcherEntry.d.ts +1 -1
- package/dist/components/tag-switcher/createTagSwitcherHeader.d.ts +1 -1
- package/dist/components/tag-switcher/index.d.ts +1 -1
- package/dist/components/time-filter.d.ts +1 -1
- package/dist/components/time-filter.d.ts.map +1 -1
- package/dist/components/view-toggle-button/desktop-button.d.ts +1 -1
- package/dist/components/view-toggle-button/desktop-button.d.ts.map +1 -1
- package/dist/components/view-toggle-button/index.d.ts +1 -1
- package/dist/components/view-toggle-button/mobile-button.d.ts +1 -1
- package/dist/components/view-toggle-button/mobile-button.d.ts.map +1 -1
- package/dist/components/view-toggle-button/view-toggle-button.d.ts +1 -1
- package/dist/components/view-toggle-button/view-toggle-button.d.ts.map +1 -1
- package/dist/components/view-toggle-button/viewport-button.d.ts +1 -1
- package/dist/components/view-toggle-button/viewport-button.d.ts.map +1 -1
- package/dist/config/feature/sources.d.ts +8 -5
- package/dist/config/feature/sources.d.ts.map +1 -1
- package/dist/config/feature/sources.js +7 -9
- package/dist/config/feature/sources.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/map/featureInteractions.js.map +1 -1
- package/dist/config/map/layers.d.ts +16 -13
- package/dist/config/map/layers.d.ts.map +1 -1
- package/dist/config/map/layers.js.map +1 -1
- package/dist/config/schema/index.d.ts +197 -0
- package/dist/config/schema/index.d.ts.map +1 -0
- package/dist/config/schema/index.js +26 -0
- package/dist/config/schema/index.js.map +1 -0
- package/dist/config/schema/validate.d.ts +8 -0
- package/dist/config/schema/validate.d.ts.map +1 -0
- package/dist/config/schema/validate.js +7 -0
- package/dist/config/schema/validate.js.map +1 -0
- package/dist/controllers/defaults.d.ts.map +1 -1
- package/dist/controllers/defaults.js +5 -0
- package/dist/controllers/defaults.js.map +1 -1
- package/dist/filters/tag-filter.d.ts +7 -0
- package/dist/filters/tag-filter.d.ts.map +1 -1
- package/dist/filters/tag-filter.js +10 -0
- package/dist/filters/tag-filter.js.map +1 -1
- package/dist/filters/time-filter.d.ts +9 -0
- package/dist/filters/time-filter.d.ts.map +1 -1
- package/dist/filters/time-filter.js +10 -0
- package/dist/filters/time-filter.js.map +1 -1
- package/dist/helpers/i18n/de.d.ts.map +1 -1
- package/dist/helpers/i18n/de.js +3 -0
- package/dist/helpers/i18n/de.js.map +1 -1
- package/dist/helpers/i18n/en.d.ts.map +1 -1
- package/dist/helpers/i18n/en.js +3 -0
- package/dist/helpers/i18n/en.js.map +1 -1
- package/dist/helpers/sort-features-by-distance.d.ts +2 -7
- package/dist/helpers/sort-features-by-distance.d.ts.map +1 -1
- package/dist/helpers/sort-features-by-distance.js +27 -39
- package/dist/helpers/sort-features-by-distance.js.map +1 -1
- package/dist/hooks/useMapsightIcon.d.ts +8 -0
- package/dist/hooks/useMapsightIcon.d.ts.map +1 -0
- package/dist/hooks/useMapsightIcon.js +50 -0
- package/dist/hooks/useMapsightIcon.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins/browser-defaults.d.ts +2 -0
- package/dist/plugins/browser-defaults.d.ts.map +1 -1
- package/dist/plugins/browser-defaults.js +5 -0
- package/dist/plugins/browser-defaults.js.map +1 -1
- package/dist/plugins/common/combined-visible-layers.d.ts +15 -0
- package/dist/plugins/common/combined-visible-layers.d.ts.map +1 -0
- package/dist/plugins/common/combined-visible-layers.js +63 -0
- package/dist/plugins/common/combined-visible-layers.js.map +1 -0
- package/dist/plugins/common/runtime-icon-style.d.ts +12 -0
- package/dist/plugins/common/runtime-icon-style.d.ts.map +1 -0
- package/dist/plugins/common/runtime-icon-style.js +58 -0
- package/dist/plugins/common/runtime-icon-style.js.map +1 -0
- package/dist/react-modal-app-element.d.ts +6 -0
- package/dist/react-modal-app-element.d.ts.map +1 -0
- package/dist/react-modal-app-element.js +9 -0
- package/dist/react-modal-app-element.js.map +1 -0
- package/dist/store/actions.d.ts.map +1 -1
- package/dist/store/actions.js +6 -1
- package/dist/store/actions.js.map +1 -1
- package/dist/store/reducers.d.ts +75 -6
- package/dist/store/reducers.d.ts.map +1 -1
- package/dist/store/selectors.d.ts +75 -17
- package/dist/store/selectors.d.ts.map +1 -1
- package/dist/store/selectors.js +9 -1
- package/dist/store/selectors.js.map +1 -1
- package/dist/types.d.ts +21 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +24 -8
- package/src/scss/blocks/_features-sorting.scss +0 -13
- package/src/scss/blocks/_filter-button.scss +39 -8
- package/src/scss/blocks/_filter-toggle-control.scss +15 -0
- package/src/scss/default.scss +1 -0
- package/src/scss/themes/2022-03.scss +66 -0
- package/src/img/mapsight-ui/check-empty.svg +0 -1
- package/src/img/mapsight-ui/check.svg +0 -2
- package/src/img/mapsight-ui/close-list.svg +0 -1
- package/src/img/mapsight-ui/close.svg +0 -1
- package/src/img/mapsight-ui/error.svg +0 -1
- package/src/img/mapsight-ui/fullscreen-close.svg +0 -1
- package/src/img/mapsight-ui/fullscreen.svg +0 -1
- package/src/img/mapsight-ui/geo-active.svg +0 -1
- package/src/img/mapsight-ui/geo-error.svg +0 -1
- package/src/img/mapsight-ui/geo-inactive.svg +0 -1
- package/src/img/mapsight-ui/info.svg +0 -1
- package/src/img/mapsight-ui/layers.svg +0 -1
- package/src/img/mapsight-ui/loading.svg +0 -1
- package/src/img/mapsight-ui/map.svg +0 -1
- package/src/img/mapsight-ui/measure-distance.svg +0 -7
- package/src/img/mapsight-ui/open-list.svg +0 -1
- package/src/img/mapsight-ui/place-marker.svg +0 -4
- package/src/img/mapsight-ui/print.svg +0 -4
- package/src/img/mapsight-ui/reset-active.svg +0 -1
- package/src/img/mapsight-ui/reset.svg +0 -1
- package/src/img/mapsight-ui/search.svg +0 -1
- package/src/img/mapsight-ui/sharing.svg +0 -7
- package/src/img/mapsight-ui/sort-active.svg +0 -1
- package/src/img/mapsight-ui/sort.svg +0 -1
- package/src/img/mapsight-ui/watermark.svg +0 -1
- package/src/img/mapsight-ui/zoom-in.svg +0 -3
- package/src/img/mapsight-ui/zoom-out.svg +0 -3
- package/src/js/components/app.tsx +0 -232
- package/src/js/components/close-overlay-button.tsx +0 -27
- package/src/js/components/feature-details-content/feature-details-content-inner.tsx +0 -116
- package/src/js/components/feature-details-content/feature-details-content.jsx +0 -185
- package/src/js/components/feature-details-content/index.js +0 -16
- package/src/js/components/feature-details-content/share-feature-link-modal.jsx +0 -56
- package/src/js/components/feature-list/content.jsx +0 -42
- package/src/js/components/feature-list/context.tsx +0 -47
- package/src/js/components/feature-list/empty-message.jsx +0 -15
- package/src/js/components/feature-list/filter.jsx +0 -35
- package/src/js/components/feature-list/footer.jsx +0 -5
- package/src/js/components/feature-list/grouped-content.jsx +0 -74
- package/src/js/components/feature-list/header.jsx +0 -7
- package/src/js/components/feature-list/hooks/useAutoloadFeatureSource.ts +0 -25
- package/src/js/components/feature-list/hooks/useFeatureListFeatureSource.ts +0 -22
- package/src/js/components/feature-list/hooks/useFeatureListItemGroups.ts +0 -127
- package/src/js/components/feature-list/hooks/useFeatureListState.ts +0 -98
- package/src/js/components/feature-list/hooks/useKeyboardNavigation.js +0 -112
- package/src/js/components/feature-list/hooks/useMakeHeaderSticky.js +0 -40
- package/src/js/components/feature-list/hooks/usePaginatedFilteredFeatures.ts +0 -129
- package/src/js/components/feature-list/hooks/useRestoreDocumentScroll.js +0 -12
- package/src/js/components/feature-list/hooks/useSelectFeature.js +0 -88
- package/src/js/components/feature-list/index.jsx +0 -278
- package/src/js/components/feature-list/pagination.tsx +0 -57
- package/src/js/components/feature-list/query-input.jsx +0 -14
- package/src/js/components/feature-list-cycling/button.jsx +0 -13
- package/src/js/components/feature-list-cycling/dot.jsx +0 -43
- package/src/js/components/feature-list-cycling/feature-list-cycling.jsx +0 -153
- package/src/js/components/feature-list-cycling/index.js +0 -82
- package/src/js/components/feature-list-item/head.jsx +0 -131
- package/src/js/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.js +0 -51
- package/src/js/components/feature-list-item/hooks/useFeatureListItemState.ts +0 -75
- package/src/js/components/feature-list-item/icon.jsx +0 -35
- package/src/js/components/feature-list-item/index.jsx +0 -168
- package/src/js/components/feature-list-sorting/feature-list-sorting.tsx +0 -144
- package/src/js/components/feature-list-sorting/index.js +0 -22
- package/src/js/components/feature-list-sorting/status-indicator.jsx +0 -10
- package/src/js/components/feature-select-button.jsx +0 -70
- package/src/js/components/feature-selection-info/close-button.jsx +0 -64
- package/src/js/components/feature-selection-info/container.jsx +0 -9
- package/src/js/components/feature-selection-info/header.tsx +0 -27
- package/src/js/components/feature-selection-info/index.tsx +0 -81
- package/src/js/components/feature-selection-info/with-sticky-header.tsx +0 -76
- package/src/js/components/feature-selection-info/without-sticky-header.jsx +0 -19
- package/src/js/components/feature-selection-info/wrapper.jsx +0 -43
- package/src/js/components/helping/app-channel.tsx +0 -99
- package/src/js/components/helping/app-context.tsx +0 -32
- package/src/js/components/helping/visibility-wrapper.jsx +0 -23
- package/src/js/components/instance.tsx +0 -48
- package/src/js/components/layer-switcher/GroupedLayerSwitcher.js +0 -47
- package/src/js/components/layer-switcher/LayerSwitcher.ts +0 -34
- package/src/js/components/layer-switcher/LayerSwitcherContainer.tsx +0 -88
- package/src/js/components/layer-switcher/LayerSwitcherEntry.ts +0 -152
- package/src/js/components/layer-switcher/index.ts +0 -42
- package/src/js/components/layout/additional-container/content.jsx +0 -10
- package/src/js/components/layout/additional-container/index.jsx +0 -5
- package/src/js/components/layout/additional-container/marginal.jsx +0 -10
- package/src/js/components/layout/main-container.jsx +0 -5
- package/src/js/components/layout/map-row.jsx +0 -5
- package/src/js/components/layout/title-bar.tsx +0 -25
- package/src/js/components/layout/wrapper.jsx +0 -28
- package/src/js/components/link-share.jsx +0 -78
- package/src/js/components/main-panel/container.tsx +0 -23
- package/src/js/components/main-panel/context.tsx +0 -71
- package/src/js/components/main-panel/index.tsx +0 -46
- package/src/js/components/main-panel/list-toggle-button.jsx +0 -43
- package/src/js/components/map-overlay/area.jsx +0 -17
- package/src/js/components/map-overlay/attribution-entries.tsx +0 -33
- package/src/js/components/map-overlay/attribution.tsx +0 -25
- package/src/js/components/map-overlay/combined-buttons.jsx +0 -5
- package/src/js/components/map-overlay/index.jsx +0 -5
- package/src/js/components/map-overlay/info-overlay-left.jsx +0 -51
- package/src/js/components/map-overlay/info-overlay-modal.tsx +0 -49
- package/src/js/components/map-overlay/info-overlay-right.jsx +0 -46
- package/src/js/components/map-overlay/layer-switcher-overlay.tsx +0 -100
- package/src/js/components/map-overlay/legend.tsx +0 -22
- package/src/js/components/map-overlay/logo.jsx +0 -11
- package/src/js/components/map-overlay/measure-distance-button.tsx +0 -116
- package/src/js/components/map-overlay/measure-distance-overlay.jsx +0 -56
- package/src/js/components/map-overlay/mini-legend.jsx +0 -103
- package/src/js/components/map-overlay/region-selector.jsx +0 -63
- package/src/js/components/map-overlay/search-overlay.jsx +0 -79
- package/src/js/components/map-overlay/share-position-link-button.tsx +0 -144
- package/src/js/components/map-overlay/tool-overlay.tsx +0 -28
- package/src/js/components/map-overlay/user-geo-location-button.jsx +0 -89
- package/src/js/components/map-overlay/zoom-button.jsx +0 -98
- package/src/js/components/map-overlay/zoom-buttons.jsx +0 -26
- package/src/js/components/map-synced-interlay/index.ts +0 -15
- package/src/js/components/map-synced-interlay/map-synced-interlay.jsx +0 -22
- package/src/js/components/map-synced-interlay/tooltip-content.tsx +0 -22
- package/src/js/components/map-synced-interlay/tooltip.tsx +0 -199
- package/src/js/components/map-wrapper.tsx +0 -65
- package/src/js/components/map.tsx +0 -55
- package/src/js/components/modal.tsx +0 -40
- package/src/js/components/query-input-with-label.tsx +0 -71
- package/src/js/components/query-input.tsx +0 -81
- package/src/js/components/search/index.jsx +0 -83
- package/src/js/components/search/query-input.jsx +0 -20
- package/src/js/components/search/result-entry.jsx +0 -63
- package/src/js/components/search/result.jsx +0 -71
- package/src/js/components/switcher/GroupedSwitcher.jsx +0 -42
- package/src/js/components/switcher/Switcher.jsx +0 -54
- package/src/js/components/switcher/SwitcherButton.jsx +0 -23
- package/src/js/components/switcher/SwitcherEntry.tsx +0 -164
- package/src/js/components/switcher/SwitcherHeader.jsx +0 -58
- package/src/js/components/switcher/SwitcherStatusIcon.jsx +0 -36
- package/src/js/components/tag-switcher/TagSwitcher.tsx +0 -56
- package/src/js/components/tag-switcher/createTagSwitcherEntry.ts +0 -39
- package/src/js/components/tag-switcher/createTagSwitcherHeader.ts +0 -47
- package/src/js/components/tag-switcher/index.ts +0 -17
- package/src/js/components/time-filter.jsx +0 -187
- package/src/js/components/view-toggle-button/desktop-button.jsx +0 -13
- package/src/js/components/view-toggle-button/index.ts +0 -42
- package/src/js/components/view-toggle-button/mobile-button.tsx +0 -13
- package/src/js/components/view-toggle-button/view-toggle-button.jsx +0 -74
- package/src/js/components/view-toggle-button/viewport-button.tsx +0 -13
- package/src/js/config/constants/app.ts +0 -16
- package/src/js/config/constants/controllers.ts +0 -11
- package/src/js/config/feature/selections.ts +0 -13
- package/src/js/config/feature/sources.ts +0 -77
- package/src/js/config/index.ts +0 -133
- package/src/js/config/map/featureInteractions.ts +0 -53
- package/src/js/config/map/interactions.ts +0 -15
- package/src/js/config/map/layers.ts +0 -190
- package/src/js/controllers/defaults.ts +0 -36
- package/src/js/embed/browser.ts +0 -89
- package/src/js/embed/node.ts +0 -57
- package/src/js/filters/tag-filter.ts +0 -135
- package/src/js/filters/time-filter.ts +0 -53
- package/src/js/helpers/components.ts +0 -66
- package/src/js/helpers/create-action-watcher.ts +0 -35
- package/src/js/helpers/events.ts +0 -11
- package/src/js/helpers/get-feature-property.ts +0 -14
- package/src/js/helpers/i18n/de.ts +0 -145
- package/src/js/helpers/i18n/en.ts +0 -140
- package/src/js/helpers/i18n/index.ts +0 -41
- package/src/js/helpers/makeReplaceableComponent.ts +0 -0
- package/src/js/helpers/mod-classes.ts +0 -47
- package/src/js/helpers/react.ts +0 -14
- package/src/js/helpers/scroll-to-element-top.ts +0 -16
- package/src/js/helpers/sort-features-by-distance.ts +0 -102
- package/src/js/helpers/sticky.js +0 -143
- package/src/js/hooks/useCallbackRef.ts +0 -14
- package/src/js/hooks/useControllableState.ts +0 -50
- package/src/js/hooks/useDebounce.ts +0 -32
- package/src/js/hooks/useHandleEscapeKeyDown.ts +0 -27
- package/src/js/hooks/useMapsightPanel.ts +0 -40
- package/src/js/hooks/useMountable.ts +0 -47
- package/src/js/hooks/usePrevious.ts +0 -15
- package/src/js/hooks/useStickyHeader.ts +0 -50
- package/src/js/hooks/useUpdateMapSizeCallback.ts +0 -32
- package/src/js/hooks/useUpdateMapSizeOnRender.ts +0 -16
- package/src/js/hooks/useUpdateMapSizeOnTransitionEnd.ts +0 -40
- package/src/js/hooks/useUpdateMapSizeOnViewChange.ts +0 -36
- package/src/js/index.ts +0 -320
- package/src/js/plugins/browser/app-title.ts +0 -36
- package/src/js/plugins/browser/debug.ts +0 -37
- package/src/js/plugins/browser/feature-deep-link.ts +0 -223
- package/src/js/plugins/browser/local-storage.ts +0 -79
- package/src/js/plugins/browser/native-fullscreen.ts +0 -81
- package/src/js/plugins/browser/no-scroll.ts +0 -91
- package/src/js/plugins/browser/partial-content-changed-event.ts +0 -23
- package/src/js/plugins/browser/piwik-track-feature-selection-event.ts +0 -75
- package/src/js/plugins/browser/piwik-track-fullscreen-toggle-event.ts +0 -46
- package/src/js/plugins/browser/search.ts +0 -42
- package/src/js/plugins/browser/share-position-link.ts +0 -463
- package/src/js/plugins/browser/toggle-mobile-views.ts +0 -60
- package/src/js/plugins/browser/user-geolocation.ts +0 -142
- package/src/js/plugins/browser/views.ts +0 -141
- package/src/js/plugins/browser-defaults.ts +0 -101
- package/src/js/plugins/common/feature-selection-details-url.ts +0 -135
- package/src/js/plugins/common/lang.ts +0 -17
- package/src/js/plugins/common/measure-distance.ts +0 -223
- package/src/js/plugins/common/ol-proxy.ts +0 -68
- package/src/js/plugins/common/render-await-feature-details-loaded.ts +0 -154
- package/src/js/plugins/common/render-await-list-feature-sources-loaded.ts +0 -109
- package/src/js/plugins/server/feature-deep-link.ts +0 -67
- package/src/js/plugins/server-defaults.ts +0 -36
- package/src/js/renderer/browser-dom.tsx +0 -27
- package/src/js/renderer/server-string.tsx +0 -17
- package/src/js/server-handler.js +0 -39
- package/src/js/store/actions.ts +0 -662
- package/src/js/store/reducers.ts +0 -491
- package/src/js/store/selectors.ts +0 -483
- package/src/js/types.ts +0 -405
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { z } from "zod";
|
|
2
|
+
export type MapsightConfig = z.infer<typeof mapsightConfigSchema>;
|
|
3
|
+
/**
|
|
4
|
+
* Per-slice config schemas for the default @mapsight/ui controller set.
|
|
5
|
+
* Slice keys match controller names registered at store creation time.
|
|
6
|
+
*/
|
|
7
|
+
export declare const mapsightConfigSchemas: {
|
|
8
|
+
map: z.ZodObject<{
|
|
9
|
+
layers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
10
|
+
type: z.ZodString;
|
|
11
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
selections: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
14
|
+
mousedown: "mousedown";
|
|
15
|
+
mouseover: "mouseover";
|
|
16
|
+
touch: "touch";
|
|
17
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
18
|
+
source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
19
|
+
type: z.ZodLiteral<"VectorFeatureSource">;
|
|
20
|
+
options: z.ZodObject<{
|
|
21
|
+
featureSourceId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
featureSourcesControllerName: z.ZodOptional<z.ZodString>;
|
|
23
|
+
featureSelectionsControllerName: z.ZodOptional<z.ZodString>;
|
|
24
|
+
keepFeaturesInViewOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>;
|
|
25
|
+
fitFeaturesInViewOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>;
|
|
26
|
+
clusterFeatures: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
clusterFeaturesOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<"OsmSource">;
|
|
31
|
+
options: z.ZodObject<{
|
|
32
|
+
url: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
35
|
+
type: z.ZodLiteral<"TileWMSSource">;
|
|
36
|
+
options: z.ZodObject<{
|
|
37
|
+
projection: z.ZodOptional<z.ZodString>;
|
|
38
|
+
url: z.ZodOptional<z.ZodString>;
|
|
39
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>;
|
|
40
|
+
}, z.core.$loose>;
|
|
41
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
42
|
+
type: z.ZodString;
|
|
43
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>;
|
|
44
|
+
}, z.core.$loose>]>>;
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
metaData: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
title: z.ZodOptional<z.ZodString>;
|
|
48
|
+
group: z.ZodOptional<z.ZodString>;
|
|
49
|
+
isBaseLayer: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
attribution: z.ZodOptional<z.ZodString>;
|
|
51
|
+
legend: z.ZodOptional<z.ZodString>;
|
|
52
|
+
miniLegend: z.ZodOptional<z.ZodString>;
|
|
53
|
+
lockedInLayerSwitcher: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
visibleInLayerSwitcher: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
visibleInExternalLayerSwitcher: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>>>>;
|
|
58
|
+
size: z.ZodOptional<z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
59
|
+
view: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>>;
|
|
60
|
+
controls: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>>;
|
|
61
|
+
interactions: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>>;
|
|
62
|
+
visibleLayers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
63
|
+
viewportAnchor: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>>;
|
|
64
|
+
}, z.core.$loose>;
|
|
65
|
+
list: z.ZodObject<{
|
|
66
|
+
featureSource: z.ZodOptional<z.ZodString>;
|
|
67
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
featureSelectionHighlight: z.ZodOptional<z.ZodString>;
|
|
69
|
+
featureSelectionSelect: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$loose>;
|
|
71
|
+
featureSources: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
72
|
+
type: z.ZodEnum<{
|
|
73
|
+
local: "local";
|
|
74
|
+
"xhr-json": "xhr-json";
|
|
75
|
+
noop: "noop";
|
|
76
|
+
combined: "combined";
|
|
77
|
+
}>;
|
|
78
|
+
url: z.ZodOptional<z.ZodString>;
|
|
79
|
+
featureSourceNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
81
|
+
doRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
timer: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
enableHistory: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
historyLimit: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
}, z.core.$strict>>;
|
|
86
|
+
featureSelections: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
87
|
+
projections: z.ZodArray<z.ZodString>;
|
|
88
|
+
tagFilter: z.ZodObject<{
|
|
89
|
+
featureSourceId: z.ZodOptional<z.ZodString>;
|
|
90
|
+
visibleTags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>>;
|
|
91
|
+
visibleTagGroups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>;
|
|
92
|
+
}, z.core.$loose>;
|
|
93
|
+
timeFilter: z.ZodObject<{
|
|
94
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
fromDate: z.ZodOptional<z.ZodString>;
|
|
96
|
+
toDate: z.ZodOptional<z.ZodString>;
|
|
97
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
}, z.core.$loose>>;
|
|
99
|
+
}, z.core.$loose>;
|
|
100
|
+
userGeolocation: z.ZodUnknown;
|
|
101
|
+
};
|
|
102
|
+
export declare const mapsightConfigSchema: z.ZodObject<{
|
|
103
|
+
map: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
layers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
105
|
+
type: z.ZodString;
|
|
106
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
selections: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
109
|
+
mousedown: "mousedown";
|
|
110
|
+
mouseover: "mouseover";
|
|
111
|
+
touch: "touch";
|
|
112
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
113
|
+
source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
114
|
+
type: z.ZodLiteral<"VectorFeatureSource">;
|
|
115
|
+
options: z.ZodObject<{
|
|
116
|
+
featureSourceId: z.ZodOptional<z.ZodString>;
|
|
117
|
+
featureSourcesControllerName: z.ZodOptional<z.ZodString>;
|
|
118
|
+
featureSelectionsControllerName: z.ZodOptional<z.ZodString>;
|
|
119
|
+
keepFeaturesInViewOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>;
|
|
120
|
+
fitFeaturesInViewOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>;
|
|
121
|
+
clusterFeatures: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
clusterFeaturesOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>;
|
|
123
|
+
}, z.core.$loose>;
|
|
124
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
125
|
+
type: z.ZodLiteral<"OsmSource">;
|
|
126
|
+
options: z.ZodObject<{
|
|
127
|
+
url: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$loose>;
|
|
129
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
130
|
+
type: z.ZodLiteral<"TileWMSSource">;
|
|
131
|
+
options: z.ZodObject<{
|
|
132
|
+
projection: z.ZodOptional<z.ZodString>;
|
|
133
|
+
url: z.ZodOptional<z.ZodString>;
|
|
134
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>;
|
|
135
|
+
}, z.core.$loose>;
|
|
136
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
137
|
+
type: z.ZodString;
|
|
138
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>;
|
|
139
|
+
}, z.core.$loose>]>>;
|
|
140
|
+
}, z.core.$loose>>;
|
|
141
|
+
metaData: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
title: z.ZodOptional<z.ZodString>;
|
|
143
|
+
group: z.ZodOptional<z.ZodString>;
|
|
144
|
+
isBaseLayer: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
attribution: z.ZodOptional<z.ZodString>;
|
|
146
|
+
legend: z.ZodOptional<z.ZodString>;
|
|
147
|
+
miniLegend: z.ZodOptional<z.ZodString>;
|
|
148
|
+
lockedInLayerSwitcher: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
visibleInLayerSwitcher: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
visibleInExternalLayerSwitcher: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
}, z.core.$loose>>;
|
|
152
|
+
}, z.core.$loose>>>>;
|
|
153
|
+
size: z.ZodOptional<z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
154
|
+
view: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>>;
|
|
155
|
+
controls: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>>;
|
|
156
|
+
interactions: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>>;
|
|
157
|
+
visibleLayers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
158
|
+
viewportAnchor: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown, z.core.$ZodTypeInternals<import("@mapsight/core/lib/helpers/schema").OptionValue, unknown>>>>>;
|
|
159
|
+
}, z.core.$loose>>;
|
|
160
|
+
list: z.ZodOptional<z.ZodObject<{
|
|
161
|
+
featureSource: z.ZodOptional<z.ZodString>;
|
|
162
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
+
featureSelectionHighlight: z.ZodOptional<z.ZodString>;
|
|
164
|
+
featureSelectionSelect: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$loose>>;
|
|
166
|
+
featureSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
167
|
+
type: z.ZodEnum<{
|
|
168
|
+
local: "local";
|
|
169
|
+
"xhr-json": "xhr-json";
|
|
170
|
+
noop: "noop";
|
|
171
|
+
combined: "combined";
|
|
172
|
+
}>;
|
|
173
|
+
url: z.ZodOptional<z.ZodString>;
|
|
174
|
+
featureSourceNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
175
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
176
|
+
doRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
timer: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
enableHistory: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
+
historyLimit: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
}, z.core.$strict>>>;
|
|
181
|
+
featureSelections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
182
|
+
projections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
183
|
+
tagFilter: z.ZodOptional<z.ZodObject<{
|
|
184
|
+
featureSourceId: z.ZodOptional<z.ZodString>;
|
|
185
|
+
visibleTags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>>;
|
|
186
|
+
visibleTagGroups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>;
|
|
187
|
+
}, z.core.$loose>>;
|
|
188
|
+
timeFilter: z.ZodOptional<z.ZodObject<{
|
|
189
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
190
|
+
fromDate: z.ZodOptional<z.ZodString>;
|
|
191
|
+
toDate: z.ZodOptional<z.ZodString>;
|
|
192
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
+
}, z.core.$loose>>;
|
|
194
|
+
}, z.core.$loose>>;
|
|
195
|
+
userGeolocation: z.ZodOptional<z.ZodUnknown>;
|
|
196
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
197
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/config/schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAc3B,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASG,CAAC;AAEtC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAEhC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { featureSelectionsConfigSchema } from "@mapsight/core/lib/feature-selections/schema";
|
|
2
|
+
import { featureSourcesConfigSchema } from "@mapsight/core/lib/feature-sources/schema";
|
|
3
|
+
import { listConfigSchema } from "@mapsight/core/lib/list/schema";
|
|
4
|
+
import { mapConfigSchema } from "@mapsight/core/lib/map/schema";
|
|
5
|
+
import { projectionsConfigSchema } from "@mapsight/core/lib/projections/schema";
|
|
6
|
+
import { userGeolocationConfigSchema } from "@mapsight/core/lib/user-geolocation/schema";
|
|
7
|
+
import { createMapsightConfigSchema } from "@mapsight/core/schema";
|
|
8
|
+
import { tagFilterConfigSchema } from "../../filters/tag-filter";
|
|
9
|
+
import { timeFilterConfigSchema } from "../../filters/time-filter";
|
|
10
|
+
import * as c from "../constants/controllers";
|
|
11
|
+
/**
|
|
12
|
+
* Per-slice config schemas for the default @mapsight/ui controller set.
|
|
13
|
+
* Slice keys match controller names registered at store creation time.
|
|
14
|
+
*/
|
|
15
|
+
export const mapsightConfigSchemas = {
|
|
16
|
+
[c.MAP]: mapConfigSchema,
|
|
17
|
+
[c.FEATURE_LIST]: listConfigSchema,
|
|
18
|
+
[c.FEATURE_SOURCES]: featureSourcesConfigSchema,
|
|
19
|
+
[c.FEATURE_SELECTIONS]: featureSelectionsConfigSchema,
|
|
20
|
+
[c.PROJECTIONS]: projectionsConfigSchema,
|
|
21
|
+
[c.TAG_FILTER]: tagFilterConfigSchema,
|
|
22
|
+
[c.TIME_FILTER]: timeFilterConfigSchema,
|
|
23
|
+
[c.USER_GEOLOCATION]: userGeolocationConfigSchema,
|
|
24
|
+
};
|
|
25
|
+
export const mapsightConfigSchema = createMapsightConfigSchema(mapsightConfigSchemas);
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/config/schema/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,6BAA6B,EAAC,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAC,0BAA0B,EAAC,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAC,gBAAgB,EAAC,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAC,uBAAuB,EAAC,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAC,2BAA2B,EAAC,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAC,0BAA0B,EAAC,MAAM,uBAAuB,CAAC;AAEjE,OAAO,EAAC,qBAAqB,EAAC,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAC,sBAAsB,EAAC,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,CAAC,MAAM,0BAA0B,CAAC;AAI9C;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACpC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,eAAe;IACxB,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,gBAAgB;IAClC,CAAC,CAAC,CAAC,eAAe,CAAC,EAAE,0BAA0B;IAC/C,CAAC,CAAC,CAAC,kBAAkB,CAAC,EAAE,6BAA6B;IACrD,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,uBAAuB;IACxC,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,qBAAqB;IACrC,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,sBAAsB;IACvC,CAAC,CAAC,CAAC,gBAAgB,CAAC,EAAE,2BAA2B;CACb,CAAC;AAEtC,MAAM,CAAC,MAAM,oBAAoB,GAAG,0BAA0B,CAC7D,qBAAqB,CACrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { formatZodError } from "@mapsight/core/schema";
|
|
2
|
+
import { type MapsightConfig } from "./index";
|
|
3
|
+
export { formatZodError };
|
|
4
|
+
export declare function validateMapsightConfig(config: unknown, options?: {
|
|
5
|
+
strict?: boolean;
|
|
6
|
+
context?: string;
|
|
7
|
+
}): Partial<MapsightConfig>;
|
|
8
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/js/config/schema/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAiB,MAAM,uBAAuB,CAAC;AAErE,OAAO,EAAC,KAAK,cAAc,EAAuB,MAAM,SAAS,CAAC;AAElE,OAAO,EAAC,cAAc,EAAC,CAAC;AAExB,wBAAgB,sBAAsB,CACrC,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,GAC5C,OAAO,CAAC,cAAc,CAAC,CAEzB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { formatZodError, validateConfig } from "@mapsight/core/schema";
|
|
2
|
+
import { mapsightConfigSchema } from "./index";
|
|
3
|
+
export { formatZodError };
|
|
4
|
+
export function validateMapsightConfig(config, options) {
|
|
5
|
+
return validateConfig(mapsightConfigSchema, config, options);
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=validate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/js/config/schema/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAErE,OAAO,EAAsB,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAElE,OAAO,EAAC,cAAc,EAAC,CAAC;AAExB,MAAM,UAAU,sBAAsB,CACrC,MAAe,EACf,OAA8C;IAE9C,OAAO,cAAc,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/js/controllers/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/js/controllers/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAC;AAcvE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAEhD,wBAAgB,wBAAwB,CACvC,OAAO,EAAE,iBAAiB,GACxB,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAwBhC"}
|
|
@@ -5,12 +5,17 @@ import { ListController } from "@mapsight/core/lib/list/controller";
|
|
|
5
5
|
import { MapController } from "@mapsight/core/lib/map/controller";
|
|
6
6
|
import { ProjectionsController } from "@mapsight/core/lib/projections/controller";
|
|
7
7
|
import { UserGeolocationController } from "@mapsight/core/lib/user-geolocation/controller";
|
|
8
|
+
import { siteConfig } from "../config";
|
|
8
9
|
import * as c from "../config/constants/controllers";
|
|
9
10
|
import { createTagFilterFunction } from "../filters/tag-filter";
|
|
10
11
|
import timeFilter from "../filters/time-filter";
|
|
11
12
|
export function createDefaultControllers(context) {
|
|
12
13
|
const mapController = new MapController(c.MAP);
|
|
13
14
|
mapController.setStyleFunction(context.styleFunction);
|
|
15
|
+
const imagesUrl = context.createOptions.imagesUrl || siteConfig.imagesUrl;
|
|
16
|
+
if (imagesUrl) {
|
|
17
|
+
mapController.setDefaultStyleEnv({ imagesUrl });
|
|
18
|
+
}
|
|
14
19
|
return {
|
|
15
20
|
[c.PROJECTIONS]: new ProjectionsController(c.PROJECTIONS),
|
|
16
21
|
[c.MAP]: mapController,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../src/js/controllers/defaults.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,2BAA2B,EAAC,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAC,wBAAwB,EAAC,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAC,aAAa,EAAC,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAC,qBAAqB,EAAC,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAC,yBAAyB,EAAC,MAAM,gDAAgD,CAAC;AAEzF,OAAO,KAAK,CAAC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../src/js/controllers/defaults.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,2BAA2B,EAAC,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAC,wBAAwB,EAAC,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAC,aAAa,EAAC,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAC,qBAAqB,EAAC,MAAM,2CA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ACpE,CAAC,CAAC,CAAC,kBAAkB,CAAC,EAAE,IAAI,2BAA2B,CACtD,CAAC,CAAC,kBAAkB,CACpB;KACoE,CAAC;AACxE,CAAC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import type { FilterFunction } from "@mapsight/core/lib/filter/types";
|
|
3
|
+
export declare const tagFilterConfigSchema: z.ZodObject<{
|
|
4
|
+
featureSourceId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
visibleTags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>>;
|
|
6
|
+
visibleTagGroups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>;
|
|
7
|
+
}, z.core.$loose>;
|
|
8
|
+
export type TagFilterState = z.infer<typeof tagFilterConfigSchema>;
|
|
2
9
|
/**
|
|
3
10
|
* Creates a cached tag filter function
|
|
4
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-filter.d.ts","sourceRoot":"","sources":["../../src/js/filters/tag-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"tag-filter.d.ts","sourceRoot":"","sources":["../../src/js/filters/tag-filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAMpE,eAAO,MAAM,qBAAqB;;;;iBAWhC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AASnE;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,cAAc,CAsDxD;AAED;;GAEG;AACH,QAAA,MAAM,2BAA2B,gBAA4B,CAAC;AAC9D,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import getPath from "@mapsight/lib-js/object/getPath";
|
|
3
|
+
export const tagFilterConfigSchema = z.looseObject({
|
|
4
|
+
featureSourceId: z.string().optional(),
|
|
5
|
+
visibleTags: z
|
|
6
|
+
.record(z.string(), z.record(z.string(), z.record(z.string(), z.boolean())))
|
|
7
|
+
.optional(),
|
|
8
|
+
visibleTagGroups: z
|
|
9
|
+
.record(z.string(), z.record(z.string(), z.boolean()))
|
|
10
|
+
.optional(),
|
|
11
|
+
});
|
|
2
12
|
/**
|
|
3
13
|
* Creates a cached tag filter function
|
|
4
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-filter.js","sourceRoot":"","sources":["../../src/js/filters/tag-filter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag-filter.js","sourceRoot":"","sources":["../../src/js/filters/tag-filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,OAAO,OAAO,MAAM,iCAAiC,CAAC;AAItD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,WAAW,CAAC;IAClD,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,WAAW,EAAE,CAAC;SACZ,MAAM,CACN,CAAC,CAAC,MAAM,EAAE,EACV,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CACvD;SACA,QAAQ,EAAE;IACZ,gBAAgB,EAAE,CAAC;SACjB,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAA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,EAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,sBAAsB,CAC9B,WAA0C,EAC1C,QAAgB;IAEhB,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAE,CAAC,CAAC,MAAM,CAChD,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAE,CAAC,GAAG,CAAC,KAAK,IAAI,CAC7C,CAAC;AACH,CAAC;AAED,SAAS,uBAAuB,CAC/B,OAA0B,EAC1B,KAAa,EACb,WAAoC;IAEpC,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC;IAC3D,IAAI,CAAC,WAAW,EAAE,CAAC;QAClB,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM,EAAC,WAAW,EAAE,IAAI,EAAC,GAAG,WAAW,CAAC;IACxC,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;QAC1B,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;IACtB,CAAC;IAED,OAAO,WAAW,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAC1D,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAC/B,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import type { FilterFunction } from "@mapsight/core/lib/filter/types";
|
|
3
|
+
export declare const timeFilterConfigSchema: z.ZodObject<{
|
|
4
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
fromDate: z.ZodOptional<z.ZodString>;
|
|
6
|
+
toDate: z.ZodOptional<z.ZodString>;
|
|
7
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, z.core.$loose>>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
export type TimeFilterState = z.infer<typeof timeFilterConfigSchema>;
|
|
2
11
|
export interface FeatureWithWhen {
|
|
3
12
|
when?: object;
|
|
4
13
|
/** start datetime in ISO 8601 (Y-m-d\TH:i:sP) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-filter.d.ts","sourceRoot":"","sources":["../../src/js/filters/time-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"time-filter.d.ts","sourceRoot":"","sources":["../../src/js/filters/time-filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAIpE,eAAO,MAAM,sBAAsB;;;;;;iBAQjC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAGrE,MAAM,WAAW,eAAe;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAC;CACZ;AAED;;;;GAIG;AACH,QAAA,MAAM,UAAU,EAAE,cAqBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import { unreachable } from "@mapsight/lib-js/unreachable";
|
|
3
|
+
export const timeFilterConfigSchema = z.looseObject({
|
|
4
|
+
options: z
|
|
5
|
+
.looseObject({
|
|
6
|
+
fromDate: z.string().optional(),
|
|
7
|
+
toDate: z.string().optional(),
|
|
8
|
+
allowEmpty: z.boolean().optional(),
|
|
9
|
+
})
|
|
10
|
+
.optional(),
|
|
11
|
+
});
|
|
2
12
|
/**
|
|
3
13
|
* Feature filter to filter by when property in a time range.
|
|
4
14
|
* Features are expected to have a when object property with
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-filter.js","sourceRoot":"","sources":["../../src/js/filters/time-filter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"time-filter.js","sourceRoot":"","sources":["../../src/js/filters/time-filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAEzD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC;IACnD,OAAO,EAAE,CAAC;SACR,WAAW,CAAC;QACZ,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KAClC,CAAC;SACD,QAAQ,EAAE;CACZ,CAAC,CAAC;AAaH;;;;GAIG;AACH,MAAM,UAAU,GAAmB,CAAC,QAAQ,EAAE,WAA4B,EAAE,EAAE;IAC7E,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,CAAC;IAC1C,IAAI,CAAC,aAAa,EAAE,CAAC;QACpB,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,MAAM,EAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,GAAG,KAAK,EAAC,GAAG,aAAa,CAAC;IAC7D,IAAI,CAAC,UAAU,IAAI,CAAC,QAAQ,IAAI,CAAC,MAAM,EAAE,CAAC;QACzC,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,2EAA2E;IAC3E,MAAM,SAAS,GAAG,MAAM;QACvB,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CACZ,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,MAAM;YAC9B,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;QAChD,CAAC,CAAC,QAAQ;YACT,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,QAAQ;YAC7C,CAAC,CAAC,WAAW,EAAE,CAAC;IAElB,OAAO,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AACnC,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/js/helpers/i18n/de.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/js/helpers/i18n/de.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA6H9B,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
package/dist/helpers/i18n/de.js
CHANGED
|
@@ -23,6 +23,7 @@ const de = {
|
|
|
23
23
|
"ui.feature-list.sorting.choose": "Standort wählen ...",
|
|
24
24
|
"ui.feature-list.sorting.own": "eigenen Standort verwenden",
|
|
25
25
|
"ui.feature-list.sorting.announcements": "Meldungen sortieren …",
|
|
26
|
+
"ui.feature-list.tag-switcher.announcements": "Nach Tags filtern …",
|
|
26
27
|
"ui.feature-list.content.noListSelected": "keine Liste gewählt",
|
|
27
28
|
"ui.feature-list.content.noEntries": "keine Einträge",
|
|
28
29
|
"ui.feature-details.content.title": "Bezeichnung",
|
|
@@ -51,6 +52,8 @@ const de = {
|
|
|
51
52
|
"ui.map-overlay.layer-switcher.layers": "Ebenen",
|
|
52
53
|
"ui.map-overlay.layer-switcher.closeLayers": "Ebenenauswahl schließen",
|
|
53
54
|
"ui.map-overlay.layer-switcher.openLayers": "Ebenenauswahl öffnen",
|
|
55
|
+
"ui.layer-switcher.baseLayers": "Basiskarte",
|
|
56
|
+
"ui.layer-switcher.overlayLayers": "Datenebenen",
|
|
54
57
|
// HOWTO: wrap the metadata one base layer of the project with something like
|
|
55
58
|
// withLegend(_metadata, `<article><h1>${translate('ui.map.usage.heading')}</h1>${translate('ui.map.usage.html')}</article>`)
|
|
56
59
|
// change 'ui.map-overlay.info.legend' according to the use case, ie. set it to "Tastaturbedienung" if there are no other legends, or to "Legende und Tastaturbedienung" if there are such further legends
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.js","sourceRoot":"","sources":["../../../src/js/helpers/i18n/de.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,cAAc,GACd,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EACN,aAAa,EACb,eAAe,GACf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACN,YAAY,EACZ,eAAe,EACf,aAAa,EACb,WAAW,EACX,OAAO,EACP,QAAQ,GACR,MAAM,4BAA4B,CAAC;AAEpC,4BAA4B;AAE5B,MAAM,EAAE,GAA2B;IAClC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,cAAc;IACrB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,KAAK;IACX,SAAS,EAAE,oBAAoB;IAC/B,SAAS,EAAE,kBAAkB;IAE7B,sBAAsB,EAAE,oBAAoB;IAE5C,oCAAoC,EAAE,gBAAgB;IACtD,qCAAqC,EAAE,4BAA4B;IACnE,qCAAqC,EAAE,8BAA8B;IAErE,wCAAwC,EAAE,gCAAgC;IAC1E,2CAA2C,EAAE,2BAA2B;IACxE,0CAA0C,EAAE,gBAAgB;IAE5D,gCAAgC,EAAE,cAAc;IAChD,iCAAiC,EAAE,iBAAiB;IAEpD,oCAAoC,EACnC,sCAAsC;IACvC,gCAAgC,EAAE,qBAAqB;IACvD,6BAA6B,EAAE,4BAA4B;IAC3D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AAE,CAAC,EAAE,OAAO;IAEtD,CAAC,2BAA2B,QAAQ,EAAE,CAAC,EAAE,mBAAmB;IAC5D,CAAC,2BAA2B,OAAO,EAAE,CAAC,EAAE,kBAAkB;IAC1D,CAAC,uBAAuB,QAAQ,EAAE,CAAC,EAAE,aAAa;IAClD,CAAC,uBAAuB,OAAO,EAAE,CAAC,EAAE,YAAY;IAEhD,CAAC,0BAA0B,YAAY,EAAE,CAAC,EAAE,mBAAmB;IAC/D,CAAC,0BAA0B,cAAc,EAAE,CAAC,EAAE,MAAM;IACpD,CAAC,0BAA0B,aAAa,EAAE,CAAC,EAAE,OAAO;IACpD,CAAC,0BAA0B,eAAe,EAAE,CAAC,EAAE,SAAS;IAExD,mCAAmC,EAAE,+BAA+B;IACpE,uCAAuC,EAAE,+BAA+B;IAExE,wBAAwB,EAAE,GAAG;IAC7B,wBAAwB,EAAE,GAAG;IAC7B,6BAA6B,EAAE,6BAA6B;IAC5D,6BAA6B,EAAE,+BAA+B;IAC9D,qCAAqC,EAAE,mCAAmC;IAC1E,6BAA6B,EAAE,2BAA2B;IAE1D,8BAA8B,EAAE,YAAY;IAC5C,qCAAqC,EACpC,mDAAmD;IACpD,mCAAmC,EAAE,uBAAuB;IAC5D,yCAAyC,EAAE,uBAAuB;CAClE,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/js/helpers/i18n/en.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/js/helpers/i18n/en.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAwH9B,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
package/dist/helpers/i18n/en.js
CHANGED
|
@@ -23,6 +23,7 @@ const en = {
|
|
|
23
23
|
"ui.feature-list.sorting.choose": "choose your location",
|
|
24
24
|
"ui.feature-list.sorting.own": "use device location",
|
|
25
25
|
"ui.feature-list.sorting.announcements": "sort announcements …",
|
|
26
|
+
"ui.feature-list.tag-switcher.announcements": "filter by tags …",
|
|
26
27
|
"ui.feature-list.content.noListSelected": "no list selected",
|
|
27
28
|
"ui.feature-list.content.noEntries": "no entries in list",
|
|
28
29
|
"ui.feature-details.content.title": "title",
|
|
@@ -51,6 +52,8 @@ const en = {
|
|
|
51
52
|
"ui.map-overlay.layer-switcher.layers": "layers",
|
|
52
53
|
"ui.map-overlay.layer-switcher.closeLayers": "close layer picker",
|
|
53
54
|
"ui.map-overlay.layer-switcher.openLayers": "open layer picker",
|
|
55
|
+
"ui.layer-switcher.baseLayers": "Base map",
|
|
56
|
+
"ui.layer-switcher.overlayLayers": "Data layers",
|
|
54
57
|
"ui.map.usage.heading": "Keyboard shortcuts for map usage",
|
|
55
58
|
"ui.map.usage.html": '<dl class="ms3-map-usage">' +
|
|
56
59
|
'<dt><kbd aria-label="Arrow right">→</kbd></dt><dd>move right</dd>' +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../../src/js/helpers/i18n/en.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,cAAc,GACd,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EACN,aAAa,EACb,eAAe,GACf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACN,YAAY,EACZ,eAAe,EACf,aAAa,EACb,WAAW,EACX,OAAO,EACP,QAAQ,GACR,MAAM,4BAA4B,CAAC;AAEpC,4BAA4B;AAE5B,MAAM,EAAE,GAA2B;IAClC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,SAAS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-list-sorting/feature-list-sorting";
|
|
2
3
|
import type { MapsightUiFeature } from "../types";
|
|
3
4
|
/**
|
|
4
5
|
* sorts features by distance
|
|
5
|
-
*
|
|
6
|
-
* @param features features
|
|
7
|
-
* @param places places
|
|
8
|
-
* @param sorting sorting state
|
|
9
|
-
* @param settings settings
|
|
10
|
-
* @returns sorted features
|
|
11
6
|
*/
|
|
12
7
|
export default function sortFeaturesByDistance(features: Array<MapsightUiFeature>, places: MapsightUiPlacesData, sorting: null | undefined | string, { featureAnchorSelector, }?: {
|
|
13
|
-
featureAnchorSelector?: (feature: MapsightUiFeature) =>
|
|
8
|
+
featureAnchorSelector?: (feature: MapsightUiFeature) => Coordinate | null;
|
|
14
9
|
}): Array<MapsightUiFeature>;
|
|
15
10
|
//# sourceMappingURL=sort-features-by-distance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-features-by-distance.d.ts","sourceRoot":"","sources":["../../src/js/helpers/sort-features-by-distance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sort-features-by-distance.d.ts","sourceRoot":"","sources":["../../src/js/helpers/sort-features-by-distance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAK9C,OAAO,KAAK,EAGX,oBAAoB,EACpB,MAAM,yDAAyD,CAAC;AACjE,OAAO,KAAK,EAAC,iBAAiB,EAAsB,MAAM,UAAU,CAAC;AAoCrE;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC7C,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,EAClC,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,EAClC,EACC,qBAAoD,GACpD,GAAE;IACF,qBAAqB,CAAC,EAAE,CACvB,OAAO,EAAE,iBAAiB,KACtB,UAAU,GAAG,IAAI,CAAC;CAClB,GACJ,KAAK,CAAC,iBAAiB,CAAC,CAiC1B"}
|
|
@@ -1,61 +1,49 @@
|
|
|
1
1
|
import { getDistance } from "ol/sphere";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @returns anchor
|
|
5
|
-
*/
|
|
6
|
-
function defaultFeatureAnchorSelector(feature) {
|
|
7
|
-
if (!feature) {
|
|
8
|
-
return [null, null];
|
|
9
|
-
}
|
|
10
|
-
// TODO: document/collect magic property names
|
|
11
|
-
const bbox = feature.bbox;
|
|
12
|
-
const x = bbox && bbox[0] && bbox[2] && (bbox[0] + bbox[2]) / 2;
|
|
13
|
-
const y = bbox && bbox[1] && bbox[3] && (bbox[1] + bbox[3]) / 2;
|
|
14
|
-
return [x, y];
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @param sorting sorting state
|
|
18
|
-
* @param places places
|
|
19
|
-
* @returns place to sort by or null
|
|
20
|
-
*/
|
|
2
|
+
import getGeoJsonFeatureSortAnchor from "@mapsight/lib-ol/feature/getGeoJsonFeatureSortAnchor";
|
|
3
|
+
const defaultFeatureAnchorSelector = (feature) => getGeoJsonFeatureSortAnchor(feature);
|
|
21
4
|
function findPlaceForSorting(sorting, places) {
|
|
22
5
|
const sortingKeys = sorting.split(",");
|
|
23
|
-
let
|
|
6
|
+
let entries = places;
|
|
7
|
+
let node;
|
|
24
8
|
for (const key of sortingKeys) {
|
|
25
|
-
|
|
9
|
+
node = entries[key];
|
|
10
|
+
if (!node) {
|
|
26
11
|
return null;
|
|
27
12
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
placePointer = placePointer.entries;
|
|
13
|
+
if ("entries" in node) {
|
|
14
|
+
entries = node.entries;
|
|
31
15
|
}
|
|
32
16
|
}
|
|
33
|
-
if ("x" in
|
|
34
|
-
return
|
|
17
|
+
if (node && "x" in node && "y" in node) {
|
|
18
|
+
return node;
|
|
35
19
|
}
|
|
36
20
|
return null;
|
|
37
21
|
}
|
|
22
|
+
const getSortDistance = (placeCoords, anchor) => anchor ? getDistance(placeCoords, anchor) : Number.POSITIVE_INFINITY;
|
|
38
23
|
/**
|
|
39
24
|
* sorts features by distance
|
|
40
|
-
*
|
|
41
|
-
* @param features features
|
|
42
|
-
* @param places places
|
|
43
|
-
* @param sorting sorting state
|
|
44
|
-
* @param settings settings
|
|
45
|
-
* @returns sorted features
|
|
46
25
|
*/
|
|
47
26
|
export default function sortFeaturesByDistance(features, places, sorting, { featureAnchorSelector = defaultFeatureAnchorSelector, } = {}) {
|
|
48
27
|
if (!sorting) {
|
|
49
28
|
return features;
|
|
50
29
|
}
|
|
51
30
|
const placePointer = findPlaceForSorting(sorting, places);
|
|
52
|
-
if (placePointer) {
|
|
53
|
-
|
|
54
|
-
return features
|
|
55
|
-
.slice()
|
|
56
|
-
.sort((a, b) => getDistance(placeCoords, featureAnchorSelector(a)) -
|
|
57
|
-
getDistance(placeCoords, featureAnchorSelector(b)));
|
|
31
|
+
if (!placePointer) {
|
|
32
|
+
return features;
|
|
58
33
|
}
|
|
59
|
-
|
|
34
|
+
const placeCoords = [placePointer.x, placePointer.y];
|
|
35
|
+
const anchorCache = new Map();
|
|
36
|
+
const getAnchor = (feature) => {
|
|
37
|
+
let anchor = anchorCache.get(feature.id);
|
|
38
|
+
if (anchor === undefined) {
|
|
39
|
+
anchor = featureAnchorSelector(feature);
|
|
40
|
+
anchorCache.set(feature.id, anchor);
|
|
41
|
+
}
|
|
42
|
+
return anchor ?? null;
|
|
43
|
+
};
|
|
44
|
+
return features
|
|
45
|
+
.slice()
|
|
46
|
+
.sort((a, b) => getSortDistance(placeCoords, getAnchor(a)) -
|
|
47
|
+
getSortDistance(placeCoords, getAnchor(b)));
|
|
60
48
|
}
|
|
61
49
|
//# sourceMappingURL=sort-features-by-distance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-features-by-distance.js","sourceRoot":"","sources":["../../src/js/helpers/sort-features-by-distance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sort-features-by-distance.js","sourceRoot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