@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function createTagSwitcherHeader(featureSourceId: string, tagGroup: string): import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<(props: any) => import("react
|
|
1
|
+
export default function createTagSwitcherHeader(featureSourceId: string, tagGroup: string): import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<(props: any) => import("react").JSX.Element>, {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
[x: number]: any;
|
|
4
4
|
[x: symbol]: any;
|
|
@@ -3,7 +3,7 @@ declare const _default: import("react-redux").ConnectedComponent<import("react")
|
|
|
3
3
|
featureSourceId: any;
|
|
4
4
|
toggleableGroups?: boolean | undefined;
|
|
5
5
|
sortTags?: boolean | undefined;
|
|
6
|
-
}) => import("react
|
|
6
|
+
}) => import("react").JSX.Element>, {
|
|
7
7
|
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction> | null> | undefined;
|
|
8
8
|
store?: import("@reduxjs/toolkit").Store | undefined;
|
|
9
9
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const _default: import("react").MemoExoticComponent<typeof TimeFilter>;
|
|
2
2
|
export default _default;
|
|
3
|
-
declare function TimeFilter(): import("react
|
|
3
|
+
declare function TimeFilter(): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=time-filter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-filter.d.ts","sourceRoot":"","sources":["../../src/js/components/time-filter.jsx"],"names":[],"mappings":";;AA4DA,
|
|
1
|
+
{"version":3,"file":"time-filter.d.ts","sourceRoot":"","sources":["../../src/js/components/time-filter.jsx"],"names":[],"mappings":";;AA4DA,2DA4HC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"desktop-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/desktop-button.jsx"],"names":[],"mappings":";AAEA,
|
|
1
|
+
{"version":3,"file":"desktop-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/desktop-button.jsx"],"names":[],"mappings":";AAEA,wEAQC"}
|
|
@@ -5,7 +5,7 @@ declare const _default: import("react-redux").ConnectedComponent<import("react")
|
|
|
5
5
|
baseClass?: string | undefined;
|
|
6
6
|
viewModifierClassPrefix?: string | undefined;
|
|
7
7
|
style?: {} | undefined;
|
|
8
|
-
}) => import("react
|
|
8
|
+
}) => import("react").JSX.Element>, {
|
|
9
9
|
style?: {} | undefined;
|
|
10
10
|
additionalClasses?: string | undefined;
|
|
11
11
|
baseClass?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/mobile-button.tsx"],"names":[],"mappings":"AAEA,iBAAS,sBAAsB,
|
|
1
|
+
{"version":3,"file":"mobile-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/mobile-button.tsx"],"names":[],"mappings":"AAEA,iBAAS,sBAAsB,gCAQ9B;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -7,5 +7,5 @@ declare function ViewToggleButton({ isMapOutOfViewport, changeView, additionalCl
|
|
|
7
7
|
baseClass?: string | undefined;
|
|
8
8
|
viewModifierClassPrefix?: string | undefined;
|
|
9
9
|
style?: {} | undefined;
|
|
10
|
-
}): import("react
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
11
|
//# sourceMappingURL=view-toggle-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-toggle-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/view-toggle-button.jsx"],"names":[],"mappings":";;AAkCA;;;;;;;
|
|
1
|
+
{"version":3,"file":"view-toggle-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/view-toggle-button.jsx"],"names":[],"mappings":";;AAkCA;;;;;;;gCAqCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewport-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/viewport-button.tsx"],"names":[],"mappings":"AAEA,iBAAS,wBAAwB,
|
|
1
|
+
{"version":3,"file":"viewport-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/viewport-button.tsx"],"names":[],"mappings":"AAEA,iBAAS,wBAAwB,gCAQhC;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { FeatureSourceState } from "@mapsight/core/lib/feature-sources/types";
|
|
1
|
+
import type { FeatureSourceConfig, FeatureSourceState } from "@mapsight/core/lib/feature-sources/types";
|
|
2
|
+
type FeatureSourceDefinition = FeatureSourceConfig & Pick<FeatureSourceState, "data" | "lastUpdate" | "lastActionType">;
|
|
2
3
|
export { TIME_FILTER, TAG_FILTER } from "../constants/controllers";
|
|
3
4
|
/**
|
|
4
5
|
* Create an empty feature source that can be filled using actions
|
|
@@ -6,14 +7,14 @@ export { TIME_FILTER, TAG_FILTER } from "../constants/controllers";
|
|
|
6
7
|
*
|
|
7
8
|
* @returns config for a plain feature source
|
|
8
9
|
*/
|
|
9
|
-
export declare function plain():
|
|
10
|
+
export declare function plain(): FeatureSourceDefinition;
|
|
10
11
|
/**
|
|
11
12
|
* Create a feature source that loads data from a remote url.
|
|
12
13
|
*
|
|
13
14
|
* @param url url to fetch data from
|
|
14
15
|
* @returns config for a xhr json feature source
|
|
15
16
|
*/
|
|
16
|
-
export declare function xhrJson(url: string):
|
|
17
|
+
export declare function xhrJson(url: string): FeatureSourceDefinition;
|
|
17
18
|
/**
|
|
18
19
|
* Create a feature source that fetches data from a remote url.
|
|
19
20
|
*
|
|
@@ -23,7 +24,7 @@ export declare function xhrJson(url: string): FeatureSourceState;
|
|
|
23
24
|
* @param timer time in milliseconds to fetch new data
|
|
24
25
|
* @returns config for a xhr json feature source that will refresh regularly
|
|
25
26
|
*/
|
|
26
|
-
export declare function xhrJsonRefreshing(url: string, timer: number):
|
|
27
|
+
export declare function xhrJsonRefreshing(url: string, timer: number): FeatureSourceDefinition;
|
|
27
28
|
/**
|
|
28
29
|
* add a filter to the definition of a feature source.
|
|
29
30
|
*
|
|
@@ -33,5 +34,7 @@ export declare function xhrJsonRefreshing(url: string, timer: number): FeatureSo
|
|
|
33
34
|
* @param filterName name of filter to add to the filter collection. The feature filter will be applied when using the appropriate feature source selectors.
|
|
34
35
|
* @returns extended definition of feature source
|
|
35
36
|
*/
|
|
36
|
-
export declare function withFilter(featureSource:
|
|
37
|
+
export declare function withFilter<T extends Partial<FeatureSourceDefinition>>(featureSource: T, filterName: string): T & Pick<FeatureSourceConfig, "filters">;
|
|
38
|
+
/** Creates a feature source config that aggregates member feature sources. */
|
|
39
|
+
export declare function combinedFeatureSource(featureSourceNames?: string[]): FeatureSourceDefinition;
|
|
37
40
|
//# sourceMappingURL=sources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../src/js/config/feature/sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../src/js/config/feature/sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,mBAAmB,EACnB,kBAAkB,EAClB,MAAM,0CAA0C,CAAC;AAElD,KAAK,uBAAuB,GAAG,mBAAmB,GACjD,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,YAAY,GAAG,gBAAgB,CAAC,CAAC;AAEpE,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEjE;;;;;GAKG;AACH,wBAAgB,KAAK,IAAI,uBAAuB,CAO/C;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAQ5D;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAChC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,GACX,uBAAuB,CAUzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,OAAO,CAAC,uBAAuB,CAAC,EACpE,aAAa,EAAE,CAAC,EAChB,UAAU,EAAE,MAAM,GAChB,CAAC,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAK1C;AAED,8EAA8E;AAC9E,wBAAgB,qBAAqB,CACpC,kBAAkB,GAAE,MAAM,EAAO,GAC/B,uBAAuB,CAQzB"}
|
|
@@ -63,4 +63,14 @@ export function withFilter(featureSource, filterName) {
|
|
|
63
63
|
filters: [...(featureSource.filters || []), filterName],
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
+
/** Creates a feature source config that aggregates member feature sources. */
|
|
67
|
+
export function combinedFeatureSource(featureSourceNames = []) {
|
|
68
|
+
return {
|
|
69
|
+
type: "combined",
|
|
70
|
+
featureSourceNames,
|
|
71
|
+
data: null,
|
|
72
|
+
lastUpdate: null,
|
|
73
|
+
lastActionType: null,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
66
76
|
//# sourceMappingURL=sources.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../../../src/js/config/feature/sources.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../../../src/js/config/feature/sources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,UAAU,KAAK;IACpB,OAAO;QACN,IAAI,EAAE,MAAe;QACrB,IAAI,EAAE,IAAI;QACV,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,IAAI;KACpB,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,OAAO,CAAC,GAAW;IAClC,OAAO;QACN,IAAI,EAAE,UAAmB;QACzB,GAAG,EAAE,GAAG;QACR,IAAI,EAAE,IAAI;QACV,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,IAAI;KACpB,CAAC;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,iBAAiB,CAChC,GAAW,EACX,KAAa;IAEb,OAAO;QACN,IAAI,EAAE,UAAmB;QACzB,GAAG,EAAE,GAAG;QACR,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,IAAI;QACV,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,IAAI;KACpB,CAAC;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,UAAU,CACzB,aAAgB,EAChB,UAAkB;IAElB,OAAO;QACN,GAAG,aAAa;QAChB,OAAO,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,UAAU,CAAC;KACvD,CAAC;AACH,CAAC;AAED,8EAA8E;AAC9E,MAAM,UAAU,qBAAqB,CACpC,qBAA+B,EAAE;IAEjC,OAAO;QACN,IAAI,EAAE,UAAU;QAChB,kBAAkB;QAClB,IAAI,EAAE,IAAI;QACV,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,IAAI;KACpB,CAAC;AACH,CAAC"}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare function mapViewExtent(minx: number, miny: number, maxx: number,
|
|
|
11
11
|
export declare function mapView(center: Coordinate, extent: Extent, zoom?: number, minZoom?: number, maxZoom?: number): Options;
|
|
12
12
|
export declare function map(layers: Record<string, LayerDefinition>, view: Options, projections?: ProjectionLike[], visible?: boolean, featureInteractions?: FeatureInteractions): {
|
|
13
13
|
map: {
|
|
14
|
-
layers: Record<string,
|
|
14
|
+
layers: Record<string, import("@mapsight/core/lib/map/types").LayerState>;
|
|
15
15
|
moveTolerance: number;
|
|
16
16
|
interactions: Record<string, import("@mapsight/core/ol-proxy").Description>;
|
|
17
17
|
featureInteractions: FeatureInteractions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureInteractions.js","sourceRoot":"","sources":["../../../src/js/config/map/featureInteractions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EACjD,YAAY,GAAG,CAAC,EAChB,2BAA2B,GAAG,IAAI,MAI/B,EAAE;IACL,OAAO;QACN,SAAS,EAAE;YACV,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE;gBACR,qBAAqB;gBACrB,IAAI,EAAE,IAAI;gBACV,SAAS,EAAE,KAAK;gBAChB,SAAS,EAAE,KAAK;gBAChB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,KAAK;gBAEZ,UAAU;gBACV,MAAM,EAAE,SAAS;gBACjB,oBAAoB,EAAE,IAAI;gBAC1B,YAAY,EAAE,YAAY;aAC1B;SACD;QAED,SAAS,EAAE;YACV,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE;gBACR,qBAAqB;gBACrB,IAAI,EAAE,IAAI;gBACV,SAAS,EAAE,KAAK;gBAChB,SAAS,EAAE,KAAK;gBAChB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,KAAK;gBAEZ,UAAU;gBACV,oBAAoB,EAAE,2BAA2B;gBACjD,YAAY,EAAE,YAAY;aAC1B;SACD;QAED,KAAK,EAAE;YACN,SAAS,EAAE,OAAO;YAClB,OAAO,EAAE;gBACR,UAAU;gBACV,oBAAoB,EAAE,2BAA2B;gBACjD,YAAY,EAAE,YAAY;aAC1B;SACD;
|
|
1
|
+
{"version":3,"file":"featureInteractions.js","sourceRoot":"","sources":["../../../src/js/config/map/featureInteractions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EACjD,YAAY,GAAG,CAAC,EAChB,2BAA2B,GAAG,IAAI,MAI/B,EAAE;IACL,OAAO;QACN,SAAS,EAAE;YACV,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE;gBACR,qBAAqB;gBACrB,IAAI,EAAE,IAAI;gBACV,SAAS,EAAE,KAAK;gBAChB,SAAS,EAAE,KAAK;gBAChB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,KAAK;gBAEZ,UAAU;gBACV,MAAM,EAAE,SAAS;gBACjB,oBAAoB,EAAE,IAAI;gBAC1B,YAAY,EAAE,YAAY;aAC1B;SACD;QAED,SAAS,EAAE;YACV,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE;gBACR,qBAAqB;gBACrB,IAAI,EAAE,IAAI;gBACV,SAAS,EAAE,KAAK;gBAChB,SAAS,EAAE,KAAK;gBAChB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,KAAK;gBAEZ,UAAU;gBACV,oBAAoB,EAAE,2BAA2B;gBACjD,YAAY,EAAE,YAAY;aAC1B;SACD;QAED,KAAK,EAAE;YACN,SAAS,EAAE,OAAO;YAClB,OAAO,EAAE;gBACR,UAAU;gBACV,oBAAoB,EAAE,2BAA2B;gBACjD,YAAY,EAAE,YAAY;aAC1B;SACD;KAC6B,CAAC;AACjC,CAAC"}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import type { ProjectionLike } from "ol/proj";
|
|
2
|
-
import type { Description, LayerMetaData,
|
|
2
|
+
import type { Description, LayerMetaData, VectorFeatureSourceOptions } from "@mapsight/core/lib/map/types";
|
|
3
3
|
import type { MapsightStyleFunctionEnv } from "@mapsight/lib-ol/style/styleFunction";
|
|
4
|
-
export declare function features(featureSourceId: string, visible?: boolean, interactive?: boolean, _metaData?: LayerMetaData, style?: string | MapsightStyleFunctionEnv, sourceOptions?:
|
|
5
|
-
export declare function interactiveFeatures(featureSourceId:
|
|
6
|
-
export declare function userGeolocation(featureSourceId: string, visible?: boolean, _metaData?: LayerMetaData, style?: string | MapsightStyleFunctionEnv, sourceOptions?:
|
|
7
|
-
options: {
|
|
8
|
-
updateWhileAnimating: boolean;
|
|
9
|
-
updateWhileInteracting: boolean;
|
|
10
|
-
renderBuffer: number;
|
|
11
|
-
};
|
|
12
|
-
type: string;
|
|
13
|
-
metaData?: any;
|
|
14
|
-
};
|
|
4
|
+
export declare function features(featureSourceId: string, visible?: boolean, interactive?: boolean, _metaData?: LayerMetaData, style?: string | MapsightStyleFunctionEnv, sourceOptions?: Partial<VectorFeatureSourceOptions>): Description;
|
|
5
|
+
export declare function interactiveFeatures(featureSourceId: string, visible?: boolean, _metaData?: {}, style?: string | MapsightStyleFunctionEnv, sourceOptions?: Partial<VectorFeatureSourceOptions>): Description;
|
|
6
|
+
export declare function userGeolocation(featureSourceId: string, visible?: boolean, _metaData?: LayerMetaData, style?: string | MapsightStyleFunctionEnv, sourceOptions?: Partial<VectorFeatureSourceOptions>): Description;
|
|
15
7
|
export declare function osm(url: string, visible?: boolean, _metaData?: {}): {
|
|
16
8
|
type: string;
|
|
17
9
|
metaData: {};
|
|
@@ -27,7 +19,18 @@ export declare function osm(url: string, visible?: boolean, _metaData?: {}): {
|
|
|
27
19
|
};
|
|
28
20
|
export declare function wms(url: string, params?: {}, projection?: ProjectionLike, visible?: boolean, _metaData?: LayerMetaData, opacity?: number): {
|
|
29
21
|
type: string;
|
|
30
|
-
metaData:
|
|
22
|
+
metaData: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
title?: string | undefined;
|
|
25
|
+
group?: string | undefined;
|
|
26
|
+
isBaseLayer?: boolean | undefined;
|
|
27
|
+
attribution?: string | undefined;
|
|
28
|
+
legend?: string | undefined;
|
|
29
|
+
miniLegend?: string | undefined;
|
|
30
|
+
lockedInLayerSwitcher?: boolean | undefined;
|
|
31
|
+
visibleInLayerSwitcher?: boolean | undefined;
|
|
32
|
+
visibleInExternalLayerSwitcher?: boolean | undefined;
|
|
33
|
+
};
|
|
31
34
|
options: {
|
|
32
35
|
source: {
|
|
33
36
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layers.d.ts","sourceRoot":"","sources":["../../../src/js/config/map/layers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAC;AAE5C,OAAO,KAAK,EACX,WAAW,EACX,aAAa,EAEb,
|
|
1
|
+
{"version":3,"file":"layers.d.ts","sourceRoot":"","sources":["../../../src/js/config/map/layers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAC;AAE5C,OAAO,KAAK,EACX,WAAW,EACX,aAAa,EAEb,0BAA0B,EAC1B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,sCAAsC,CAAC;AAQnF,wBAAgB,QAAQ,CACvB,eAAe,EAAE,MAAM,EACvB,OAAO,UAAQ,EACf,WAAW,UAAQ,EACnB,SAAS,GAAE,aAAkB,EAC7B,KAAK,GAAE,MAAM,GAAG,wBAAqC,EACrD,aAAa,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,GACjD,WAAW,CA8Bb;AAED,wBAAgB,mBAAmB,CAClC,eAAe,EA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ings":"AAWA,OAAO,EAAC,kBAAkB,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EACN,2BAA2B,EAC3B,wBAAwB,GACxB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,UAAU,QAAQ,CACvB,eAAuB,EACvB,OAAO,GAAG,KAAK,EACf,WAAW,GAAG,KAAK,EACnB,YAA2B,EAAE,EAC7B,QAA2C,UAAU,EACrD,
|
|
1
|
+
{"version":3,"file":"layers.js","sourceRoot":"","sources":["../../../src/js/config/map/layers.ts"],"names":[],"mappings":"AAWA,OAAO,EAAC,kBAAkB,EAAE,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EACN,2BAA2B,EAC3B,wBAAwB,GACxB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,UAAU,QAAQ,CACvB,eAAuB,EACvB,OAAO,GAAG,KAAK,EACf,WAAW,GAAG,KAAK,EACnB,YAA2B,EAAE,EAC7B,QAA2C,UAAU,EACrD,aAAmD;IAEnD,OAAO;QACN,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE;YACR,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,KAAoB;YAC3B,6BAA6B;YAC7B,+BAA+B;YAC/B,YAAY,EAAE,GAAG;YACjB,MAAM,EAAE;gBACP,IAAI,EAAE,qBAAqB;gBAC3B,OAAO,EAAE;oBACR,eAAe;oBACf,4BAA4B,EAAE,eAAe;oBAC7C,+BAA+B,EAAE,kBAAkB;oBACnD,GAAG,aAAa;iBAChB;aACD;YACD,UAAU,EAAE,CAAC,WAAW;gBACvB,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC;oBACA,2CAA2C;oBAC3C,qCAAqC;oBACrC,SAAS,EAAE,wBAAwB;oBACnC,KAAK,EAAE,wBAAwB;oBAC/B,SAAS,EAAE,2BAA2B;iBACtC;SACH;QACD,QAAQ,EAAE,SAAS;KACnB,CAAC;AACH,CAAC;AAED,MAAM,UAAU,mBAAmB,CAClC,eAA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AAC;AACH,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,QAAQ,CACvB,KAAa,EACb,cAA6B,IAAI,EACjC,sBAAsB,GAAG,KAAK,EAC9B,8BAA8B,GAAG,KAAK,EACtC,WAAW,GAAG,KAAK,EACnB,QAAuB,IAAI,EAC3B,qBAAqB,GAAG,SAAS;IAEjC,OAAO;QACN,KAAK;QACL,WAAW,EAAE,WAAW,IAAI,SAAS;QACrC,sBAAsB;QACtB,8BAA8B;QAC9B,KAAK,EAAE,KAAK,IAAI,SAAS;QACzB,WAAW;QACX,qBAAqB,EAAE,uEAAuE;KAC9F,CAAC;AACH,CAAC;AAED,MAAM,UAAU,uBAAuB,CACtC,YAA2B,EAAE,EAC7B,WAAmB;IAEnB,OAAO;QACN,GAAG,SAAS;QACZ,WAAW,EAAE,WAAW;KACxB,CAAC;AACH,CAAC;AAED,MAAM,UAAU,kBAAkB,CACjC,YAA2B,EAAE,EAC7B,MAAM;IAEN,OAAO;QACN,GAAG,SAAS;QACZ,MAAM,EAAE,MAAM;KACd,CAAC;AACH,CAAC;AAED,MAAM,UAAU,sBAAsB,CACrC,YAA2B,EAAE,EAC7B,UAAU;IAEV,OAAO;QACN,GAAG,SAAS;QACZ,UAAU,EAAE,UAAU;KACtB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,195 @@
|
|
|
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
|
+
}, z.core.$strict>>;
|
|
85
|
+
featureSelections: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
86
|
+
projections: z.ZodArray<z.ZodString>;
|
|
87
|
+
tagFilter: z.ZodObject<{
|
|
88
|
+
featureSourceId: z.ZodOptional<z.ZodString>;
|
|
89
|
+
visibleTags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>>;
|
|
90
|
+
visibleTagGroups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>;
|
|
91
|
+
}, z.core.$loose>;
|
|
92
|
+
timeFilter: z.ZodObject<{
|
|
93
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
fromDate: z.ZodOptional<z.ZodString>;
|
|
95
|
+
toDate: z.ZodOptional<z.ZodString>;
|
|
96
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
}, z.core.$loose>>;
|
|
98
|
+
}, z.core.$loose>;
|
|
99
|
+
userGeolocation: z.ZodUnknown;
|
|
100
|
+
};
|
|
101
|
+
export declare const mapsightConfigSchema: z.ZodObject<{
|
|
102
|
+
map: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
layers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
104
|
+
type: z.ZodString;
|
|
105
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
selections: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
108
|
+
mousedown: "mousedown";
|
|
109
|
+
mouseover: "mouseover";
|
|
110
|
+
touch: "touch";
|
|
111
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
112
|
+
source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
113
|
+
type: z.ZodLiteral<"VectorFeatureSource">;
|
|
114
|
+
options: z.ZodObject<{
|
|
115
|
+
featureSourceId: z.ZodOptional<z.ZodString>;
|
|
116
|
+
featureSourcesControllerName: z.ZodOptional<z.ZodString>;
|
|
117
|
+
featureSelectionsControllerName: z.ZodOptional<z.ZodString>;
|
|
118
|
+
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>>>>;
|
|
119
|
+
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>>>>;
|
|
120
|
+
clusterFeatures: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
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>>>>;
|
|
122
|
+
}, z.core.$loose>;
|
|
123
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
124
|
+
type: z.ZodLiteral<"OsmSource">;
|
|
125
|
+
options: z.ZodObject<{
|
|
126
|
+
url: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, z.core.$loose>;
|
|
128
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
129
|
+
type: z.ZodLiteral<"TileWMSSource">;
|
|
130
|
+
options: z.ZodObject<{
|
|
131
|
+
projection: z.ZodOptional<z.ZodString>;
|
|
132
|
+
url: z.ZodOptional<z.ZodString>;
|
|
133
|
+
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>>>>;
|
|
134
|
+
}, z.core.$loose>;
|
|
135
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
136
|
+
type: z.ZodString;
|
|
137
|
+
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>>>>;
|
|
138
|
+
}, z.core.$loose>]>>;
|
|
139
|
+
}, z.core.$loose>>;
|
|
140
|
+
metaData: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
title: z.ZodOptional<z.ZodString>;
|
|
142
|
+
group: z.ZodOptional<z.ZodString>;
|
|
143
|
+
isBaseLayer: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
+
attribution: z.ZodOptional<z.ZodString>;
|
|
145
|
+
legend: z.ZodOptional<z.ZodString>;
|
|
146
|
+
miniLegend: z.ZodOptional<z.ZodString>;
|
|
147
|
+
lockedInLayerSwitcher: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
visibleInLayerSwitcher: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
visibleInExternalLayerSwitcher: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
}, z.core.$loose>>;
|
|
151
|
+
}, z.core.$loose>>>>;
|
|
152
|
+
size: z.ZodOptional<z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
153
|
+
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>>>>>;
|
|
154
|
+
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>>>>>;
|
|
155
|
+
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>>>>>;
|
|
156
|
+
visibleLayers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
157
|
+
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>>>>>;
|
|
158
|
+
}, z.core.$loose>>;
|
|
159
|
+
list: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
featureSource: z.ZodOptional<z.ZodString>;
|
|
161
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
featureSelectionHighlight: z.ZodOptional<z.ZodString>;
|
|
163
|
+
featureSelectionSelect: z.ZodOptional<z.ZodString>;
|
|
164
|
+
}, z.core.$loose>>;
|
|
165
|
+
featureSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
166
|
+
type: z.ZodEnum<{
|
|
167
|
+
local: "local";
|
|
168
|
+
"xhr-json": "xhr-json";
|
|
169
|
+
noop: "noop";
|
|
170
|
+
combined: "combined";
|
|
171
|
+
}>;
|
|
172
|
+
url: z.ZodOptional<z.ZodString>;
|
|
173
|
+
featureSourceNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
175
|
+
doRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
176
|
+
timer: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
enableHistory: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
}, z.core.$strict>>>;
|
|
179
|
+
featureSelections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
180
|
+
projections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
181
|
+
tagFilter: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
featureSourceId: z.ZodOptional<z.ZodString>;
|
|
183
|
+
visibleTags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>>;
|
|
184
|
+
visibleTagGroups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>;
|
|
185
|
+
}, z.core.$loose>>;
|
|
186
|
+
timeFilter: z.ZodOptional<z.ZodObject<{
|
|
187
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
fromDate: z.ZodOptional<z.ZodString>;
|
|
189
|
+
toDate: z.ZodOptional<z.ZodString>;
|
|
190
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
+
}, z.core.$loose>>;
|
|
192
|
+
}, z.core.$loose>>;
|
|
193
|
+
userGeolocation: z.ZodOptional<z.ZodUnknown>;
|
|
194
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
195
|
+
//# 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/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Aa,CAAC,CAAC;IAEtD,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,SAAS,IAAI,UAAU,CAAC,SAAS,CAAC;IAC1E,IAAI,SAAS,EAAE,CAAC;QACf,aAAa,CAAC,kBAAkB,CAAC,EAAC,SAAS,EAAC,CAAC,CAAC;IAC/C,CAAC;IAED,OAAO;QACN,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,IAAI,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC;QACzD,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,aAAa;QACtB,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC;QACpD,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,IAAI,gBAAgB,CAAC,CAAC,CAAC,WAAW,EAAE,UAAU,CAAC;QAChE,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,IAAI,gBAAgB,CACnC,CAAC,CAAC,UAAU,EACZ,uBAAuB,EAAE,CACzB;QACD,CAAC,CAAC,CAAC,gBAAgB,CAAC,EAAE,IAAI,yBAAyB,CAAC,CAAC,CAAC,gBAAgB,CAAC;QACvE,CAAC,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,wBAAwB,CAAC,CAAC,CAAC,eAAe,CAAC;QACpE,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,EAAE,CAAC,CAAC;SACrD,QAAQ,EAAE;CACZ,CAAC,CAAC;AAWH;;GAEG;AACH,MAAM,UAAU,uBAAuB;IACtC,MAAM,KAAK,GAA+B,EAAE,CAAC;IAE7C,OAAO,SAAS,iBAAiB,CAAC,SAAS,EAAE,WAAW,EAAE,eAAe;QACxE,iDAAiD;QACjD,MAAM,QAAQ,GAAG,SAAgC,CAAC;QAElD,yCAAyC;QACzC,IAAI,CAAC,eAAe,IAAI,CAAC,WAAW,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnD,OAAO,QAAQ,CAAC;QACjB,CAAC;QAED,2CAA2C;QAC3C,MAAM,WAAW,GAAG,OAAO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