@mapsight/ui 7.0.3 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -2
- package/dist/components/app.d.ts +2 -2
- package/dist/components/app.d.ts.map +1 -1
- package/dist/components/app.js +7 -7
- package/dist/components/app.js.map +1 -1
- package/dist/components/feature-details-content/feature-details-content.d.ts +1 -1
- package/dist/components/feature-details-content/feature-details-content.d.ts.map +1 -1
- package/dist/components/feature-details-content/feature-details-content.js +2 -2
- package/dist/components/feature-details-content/feature-details-content.js.map +1 -1
- package/dist/components/feature-details-content/index.d.ts +4 -6
- package/dist/components/feature-details-content/index.js +6 -7
- package/dist/components/feature-details-content/index.js.map +1 -1
- package/dist/components/feature-details-content/share-feature-link-modal.d.ts +1 -1
- package/dist/components/feature-details-content/share-feature-link-modal.d.ts.map +1 -1
- package/dist/components/feature-list/context.d.ts +12 -4
- package/dist/components/feature-list/context.d.ts.map +1 -1
- package/dist/components/feature-list/context.js.map +1 -1
- package/dist/components/feature-list/empty-message.d.ts +1 -1
- package/dist/components/feature-list/empty-message.d.ts.map +1 -1
- package/dist/components/feature-list/filter.d.ts +1 -1
- package/dist/components/feature-list/filter.d.ts.map +1 -1
- package/dist/components/feature-list/filter.js +2 -2
- package/dist/components/feature-list/filter.js.map +1 -1
- package/dist/components/feature-list/footer.d.ts +1 -1
- package/dist/components/feature-list/footer.d.ts.map +1 -1
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.d.ts.map +1 -1
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.js +12 -3
- package/dist/components/feature-list/hooks/useAutoloadFeatureSource.js.map +1 -1
- package/dist/components/feature-list/hooks/useFeatureListState.d.ts.map +1 -1
- package/dist/components/feature-list/hooks/useFeatureListState.js +7 -2
- package/dist/components/feature-list/hooks/useFeatureListState.js.map +1 -1
- package/dist/components/feature-list/hooks/useRestoreDocumentScroll.js +1 -1
- package/dist/components/feature-list/hooks/useRestoreDocumentScroll.js.map +1 -1
- package/dist/components/feature-list/hooks/useSelectFeature.js +6 -6
- package/dist/components/feature-list/hooks/useSelectFeature.js.map +1 -1
- package/dist/components/feature-list/index.d.ts +3 -2
- package/dist/components/feature-list/index.d.ts.map +1 -1
- package/dist/components/feature-list/index.js +34 -46
- package/dist/components/feature-list/index.js.map +1 -1
- package/dist/components/feature-list/pagination.d.ts +1 -1
- package/dist/components/feature-list/pagination.d.ts.map +1 -1
- package/dist/components/feature-list/query-input.d.ts +1 -1
- package/dist/components/feature-list/query-input.d.ts.map +1 -1
- package/dist/components/feature-list/tag-switcher-control.d.ts +4 -0
- package/dist/components/feature-list/tag-switcher-control.d.ts.map +1 -0
- package/dist/components/feature-list/tag-switcher-control.js +10 -0
- package/dist/components/feature-list/tag-switcher-control.js.map +1 -0
- package/dist/components/feature-list-cycling/button.d.ts +1 -1
- package/dist/components/feature-list-cycling/button.d.ts.map +1 -1
- package/dist/components/feature-list-cycling/dot.d.ts +1 -1
- package/dist/components/feature-list-cycling/dot.d.ts.map +1 -1
- package/dist/components/feature-list-cycling/feature-list-cycling.d.ts +1 -1
- package/dist/components/feature-list-cycling/feature-list-cycling.d.ts.map +1 -1
- package/dist/components/feature-list-cycling/index.d.ts +4 -6
- package/dist/components/feature-list-cycling/index.js +1 -1
- package/dist/components/feature-list-cycling/index.js.map +1 -1
- package/dist/components/feature-list-item/icon.d.ts +8 -6
- package/dist/components/feature-list-item/icon.d.ts.map +1 -1
- package/dist/components/feature-list-item/icon.js +5 -13
- package/dist/components/feature-list-item/icon.js.map +1 -1
- package/dist/components/feature-list-item/index.d.ts +1 -1
- package/dist/components/feature-list-item/index.d.ts.map +1 -1
- package/dist/components/feature-list-sorting/feature-list-sorting.d.ts +1 -1
- package/dist/components/feature-list-sorting/feature-list-sorting.d.ts.map +1 -1
- package/dist/components/feature-list-sorting/feature-list-sorting.js +3 -12
- package/dist/components/feature-list-sorting/feature-list-sorting.js.map +1 -1
- package/dist/components/feature-list-sorting/index.d.ts +4 -16
- package/dist/components/feature-list-sorting/index.d.ts.map +1 -1
- package/dist/components/feature-list-sorting/index.js +6 -7
- package/dist/components/feature-list-sorting/index.js.map +1 -1
- package/dist/components/feature-list-sorting/status-indicator.d.ts +1 -1
- package/dist/components/feature-list-sorting/status-indicator.d.ts.map +1 -1
- package/dist/components/feature-select-button.d.ts +1 -1
- package/dist/components/feature-select-button.d.ts.map +1 -1
- package/dist/components/feature-selection-info/close-button.d.ts +1 -1
- package/dist/components/feature-selection-info/close-button.d.ts.map +1 -1
- package/dist/components/feature-selection-info/container.d.ts +1 -1
- package/dist/components/feature-selection-info/container.d.ts.map +1 -1
- package/dist/components/feature-selection-info/header.d.ts +1 -1
- package/dist/components/feature-selection-info/header.d.ts.map +1 -1
- package/dist/components/feature-selection-info/index.d.ts +1 -1
- package/dist/components/feature-selection-info/index.d.ts.map +1 -1
- package/dist/components/feature-selection-info/index.js +2 -2
- package/dist/components/feature-selection-info/index.js.map +1 -1
- package/dist/components/feature-selection-info/with-sticky-header.d.ts +10 -7
- package/dist/components/feature-selection-info/with-sticky-header.d.ts.map +1 -1
- package/dist/components/feature-selection-info/with-sticky-header.js +4 -4
- package/dist/components/feature-selection-info/with-sticky-header.js.map +1 -1
- package/dist/components/feature-selection-info/without-sticky-header.d.ts +1 -1
- package/dist/components/feature-selection-info/without-sticky-header.d.ts.map +1 -1
- package/dist/components/filter-toggle-control/FilterToggleControl.d.ts +12 -0
- package/dist/components/filter-toggle-control/FilterToggleControl.d.ts.map +1 -0
- package/dist/components/filter-toggle-control/FilterToggleControl.js +20 -0
- package/dist/components/filter-toggle-control/FilterToggleControl.js.map +1 -0
- package/dist/components/helping/app-channel.d.ts +1 -1
- package/dist/components/helping/app-channel.d.ts.map +1 -1
- package/dist/components/helping/app-context.d.ts +2 -2
- package/dist/components/helping/app-context.d.ts.map +1 -1
- package/dist/components/instance.d.ts +1 -1
- package/dist/components/instance.d.ts.map +1 -1
- package/dist/components/layer-switcher/GroupedLayerSwitcher.d.ts +1 -1
- package/dist/components/layer-switcher/GroupedLayerSwitcher.js +1 -1
- package/dist/components/layer-switcher/GroupedLayerSwitcher.js.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcher.d.ts +13 -12
- package/dist/components/layer-switcher/LayerSwitcher.d.ts.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcher.js +1 -1
- package/dist/components/layer-switcher/LayerSwitcher.js.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcherContainer.d.ts +16 -0
- package/dist/components/layer-switcher/LayerSwitcherContainer.d.ts.map +1 -0
- package/dist/components/layer-switcher/{LayerSwticherContainer.js → LayerSwitcherContainer.js} +4 -8
- package/dist/components/layer-switcher/LayerSwitcherContainer.js.map +1 -0
- package/dist/components/layer-switcher/LayerSwitcherEntry.d.ts +28 -12
- package/dist/components/layer-switcher/LayerSwitcherEntry.d.ts.map +1 -1
- package/dist/components/layer-switcher/LayerSwitcherEntry.js +33 -35
- package/dist/components/layer-switcher/LayerSwitcherEntry.js.map +1 -1
- package/dist/components/layer-switcher/index.d.ts +9 -2
- package/dist/components/layer-switcher/index.d.ts.map +1 -1
- package/dist/components/layer-switcher/index.js +12 -21
- package/dist/components/layer-switcher/index.js.map +1 -1
- package/dist/components/layout/additional-container/content.d.ts +1 -1
- package/dist/components/layout/additional-container/content.d.ts.map +1 -1
- package/dist/components/layout/additional-container/index.d.ts +1 -1
- package/dist/components/layout/additional-container/index.d.ts.map +1 -1
- package/dist/components/layout/additional-container/marginal.d.ts +1 -1
- package/dist/components/layout/additional-container/marginal.d.ts.map +1 -1
- package/dist/components/layout/main-container.d.ts +1 -1
- package/dist/components/layout/main-container.d.ts.map +1 -1
- package/dist/components/layout/map-row.d.ts +1 -1
- package/dist/components/layout/map-row.d.ts.map +1 -1
- package/dist/components/layout/title-bar.d.ts +1 -1
- package/dist/components/layout/title-bar.d.ts.map +1 -1
- package/dist/components/layout/wrapper.d.ts +1 -1
- package/dist/components/layout/wrapper.d.ts.map +1 -1
- package/dist/components/layout/wrapper.js +1 -1
- package/dist/components/layout/wrapper.js.map +1 -1
- package/dist/components/link-share.d.ts +1 -1
- package/dist/components/link-share.d.ts.map +1 -1
- package/dist/components/main-panel/container.d.ts +1 -1
- package/dist/components/main-panel/container.d.ts.map +1 -1
- package/dist/components/main-panel/context.d.ts +6 -5
- package/dist/components/main-panel/context.d.ts.map +1 -1
- package/dist/components/main-panel/context.js +5 -13
- package/dist/components/main-panel/context.js.map +1 -1
- package/dist/components/main-panel/index.d.ts +1 -1
- package/dist/components/main-panel/index.d.ts.map +1 -1
- package/dist/components/main-panel/list-toggle-button.d.ts +1 -1
- package/dist/components/main-panel/list-toggle-button.d.ts.map +1 -1
- package/dist/components/main-panel/list-toggle-button.js +2 -2
- package/dist/components/main-panel/list-toggle-button.js.map +1 -1
- package/dist/components/map-overlay/attribution-entries.d.ts +1 -1
- package/dist/components/map-overlay/attribution-entries.d.ts.map +1 -1
- package/dist/components/map-overlay/attribution.d.ts +1 -1
- package/dist/components/map-overlay/attribution.d.ts.map +1 -1
- package/dist/components/map-overlay/attribution.js +1 -1
- package/dist/components/map-overlay/attribution.js.map +1 -1
- package/dist/components/map-overlay/combined-buttons.d.ts +1 -1
- package/dist/components/map-overlay/combined-buttons.d.ts.map +1 -1
- package/dist/components/map-overlay/index.d.ts +1 -1
- package/dist/components/map-overlay/index.d.ts.map +1 -1
- package/dist/components/map-overlay/info-overlay-left.d.ts +1 -1
- package/dist/components/map-overlay/info-overlay-left.d.ts.map +1 -1
- package/dist/components/map-overlay/info-overlay-left.js +2 -2
- package/dist/components/map-overlay/info-overlay-left.js.map +1 -1
- package/dist/components/map-overlay/info-overlay-modal.d.ts +1 -1
- package/dist/components/map-overlay/info-overlay-modal.d.ts.map +1 -1
- package/dist/components/map-overlay/info-overlay-right.d.ts +1 -1
- package/dist/components/map-overlay/info-overlay-right.d.ts.map +1 -1
- package/dist/components/map-overlay/info-overlay-right.js +2 -2
- package/dist/components/map-overlay/info-overlay-right.js.map +1 -1
- package/dist/components/map-overlay/layer-switcher-overlay.d.ts +1 -1
- package/dist/components/map-overlay/layer-switcher-overlay.d.ts.map +1 -1
- package/dist/components/map-overlay/legend.d.ts +1 -1
- package/dist/components/map-overlay/legend.d.ts.map +1 -1
- package/dist/components/map-overlay/legend.js +1 -1
- package/dist/components/map-overlay/legend.js.map +1 -1
- package/dist/components/map-overlay/logo.d.ts +1 -1
- package/dist/components/map-overlay/logo.d.ts.map +1 -1
- package/dist/components/map-overlay/measure-distance-button.d.ts +1 -1
- package/dist/components/map-overlay/measure-distance-button.d.ts.map +1 -1
- package/dist/components/map-overlay/measure-distance-button.js +1 -1
- package/dist/components/map-overlay/measure-distance-button.js.map +1 -1
- package/dist/components/map-overlay/measure-distance-overlay.d.ts +1 -1
- package/dist/components/map-overlay/measure-distance-overlay.d.ts.map +1 -1
- package/dist/components/map-overlay/mini-legend.js +2 -2
- package/dist/components/map-overlay/mini-legend.js.map +1 -1
- package/dist/components/map-overlay/region-selector.js +2 -2
- package/dist/components/map-overlay/region-selector.js.map +1 -1
- package/dist/components/map-overlay/search-overlay.d.ts +1 -1
- package/dist/components/map-overlay/search-overlay.d.ts.map +1 -1
- package/dist/components/map-overlay/search-overlay.js +1 -1
- package/dist/components/map-overlay/search-overlay.js.map +1 -1
- package/dist/components/map-overlay/share-position-link-button.d.ts +1 -1
- package/dist/components/map-overlay/share-position-link-button.d.ts.map +1 -1
- package/dist/components/map-overlay/share-position-link-button.js +1 -1
- package/dist/components/map-overlay/share-position-link-button.js.map +1 -1
- package/dist/components/map-overlay/tool-overlay.d.ts +1 -1
- package/dist/components/map-overlay/tool-overlay.d.ts.map +1 -1
- package/dist/components/map-overlay/zoom-buttons.d.ts +1 -1
- package/dist/components/map-overlay/zoom-buttons.d.ts.map +1 -1
- package/dist/components/map-synced-interlay/index.d.ts +3 -6
- package/dist/components/map-synced-interlay/index.d.ts.map +1 -1
- package/dist/components/map-synced-interlay/index.js +5 -6
- package/dist/components/map-synced-interlay/index.js.map +1 -1
- package/dist/components/map-synced-interlay/map-synced-interlay.d.ts +1 -1
- package/dist/components/map-synced-interlay/map-synced-interlay.d.ts.map +1 -1
- package/dist/components/map-synced-interlay/map-synced-interlay.js +1 -1
- package/dist/components/map-synced-interlay/map-synced-interlay.js.map +1 -1
- package/dist/components/map-synced-interlay/tooltip.d.ts +1 -1
- package/dist/components/map-synced-interlay/tooltip.d.ts.map +1 -1
- package/dist/components/map-synced-interlay/tooltip.js +1 -1
- package/dist/components/map-synced-interlay/tooltip.js.map +1 -1
- package/dist/components/map-wrapper.d.ts +3 -3
- package/dist/components/map-wrapper.d.ts.map +1 -1
- package/dist/components/map-wrapper.js +4 -7
- package/dist/components/map-wrapper.js.map +1 -1
- package/dist/components/map.d.ts +6 -5
- package/dist/components/map.d.ts.map +1 -1
- package/dist/components/map.js +15 -5
- package/dist/components/map.js.map +1 -1
- package/dist/components/mapsight-icon/mapsight-icon.d.ts +10 -0
- package/dist/components/mapsight-icon/mapsight-icon.d.ts.map +1 -0
- package/dist/components/mapsight-icon/mapsight-icon.js +33 -0
- package/dist/components/mapsight-icon/mapsight-icon.js.map +1 -0
- package/dist/components/modal.d.ts +1 -1
- package/dist/components/modal.d.ts.map +1 -1
- package/dist/components/query-input-with-label.d.ts +1 -1
- package/dist/components/query-input-with-label.d.ts.map +1 -1
- package/dist/components/search/index.d.ts +1 -1
- package/dist/components/search/index.d.ts.map +1 -1
- package/dist/components/search/index.js +2 -2
- package/dist/components/search/index.js.map +1 -1
- package/dist/components/search/result-entry.d.ts +1 -1
- package/dist/components/search/result-entry.d.ts.map +1 -1
- package/dist/components/search/result-entry.js +1 -1
- package/dist/components/search/result-entry.js.map +1 -1
- package/dist/components/search/result.d.ts +1 -1
- package/dist/components/search/result.d.ts.map +1 -1
- package/dist/components/search/result.js +1 -1
- package/dist/components/search/result.js.map +1 -1
- package/dist/components/switcher/GroupedSwitcher.d.ts +1 -1
- package/dist/components/switcher/GroupedSwitcher.d.ts.map +1 -1
- package/dist/components/switcher/Switcher.d.ts +1 -1
- package/dist/components/switcher/Switcher.d.ts.map +1 -1
- package/dist/components/switcher/SwitcherButton.d.ts +1 -1
- package/dist/components/switcher/SwitcherButton.d.ts.map +1 -1
- package/dist/components/switcher/SwitcherEntry.d.ts +21 -3
- package/dist/components/switcher/SwitcherEntry.d.ts.map +1 -1
- package/dist/components/switcher/SwitcherEntry.js +8 -9
- package/dist/components/switcher/SwitcherEntry.js.map +1 -1
- package/dist/components/switcher/SwitcherHeader.d.ts +1 -1
- package/dist/components/switcher/SwitcherHeader.d.ts.map +1 -1
- package/dist/components/switcher/SwitcherStatusIcon.d.ts +1 -1
- package/dist/components/switcher/SwitcherStatusIcon.d.ts.map +1 -1
- package/dist/components/tag-switcher/TagSwitcher.d.ts +3 -3
- package/dist/components/tag-switcher/TagSwitcher.d.ts.map +1 -1
- package/dist/components/tag-switcher/TagSwitcher.js.map +1 -1
- package/dist/components/tag-switcher/createTagSwitcherEntry.d.ts +13 -11
- package/dist/components/tag-switcher/createTagSwitcherEntry.d.ts.map +1 -1
- package/dist/components/tag-switcher/createTagSwitcherEntry.js +6 -12
- package/dist/components/tag-switcher/createTagSwitcherEntry.js.map +1 -1
- package/dist/components/tag-switcher/createTagSwitcherHeader.d.ts +12 -10
- package/dist/components/tag-switcher/createTagSwitcherHeader.d.ts.map +1 -1
- package/dist/components/tag-switcher/createTagSwitcherHeader.js +5 -5
- package/dist/components/tag-switcher/createTagSwitcherHeader.js.map +1 -1
- package/dist/components/tag-switcher/index.d.ts +3 -6
- package/dist/components/tag-switcher/index.d.ts.map +1 -1
- package/dist/components/tag-switcher/index.js +6 -7
- package/dist/components/tag-switcher/index.js.map +1 -1
- package/dist/components/time-filter.d.ts +1 -1
- package/dist/components/time-filter.d.ts.map +1 -1
- package/dist/components/view-toggle-button/desktop-button.d.ts +1 -1
- package/dist/components/view-toggle-button/desktop-button.d.ts.map +1 -1
- package/dist/components/view-toggle-button/index.d.ts +7 -6
- package/dist/components/view-toggle-button/index.d.ts.map +1 -1
- package/dist/components/view-toggle-button/index.js +8 -8
- package/dist/components/view-toggle-button/index.js.map +1 -1
- package/dist/components/view-toggle-button/mobile-button.d.ts +1 -1
- package/dist/components/view-toggle-button/mobile-button.d.ts.map +1 -1
- package/dist/components/view-toggle-button/mobile-button.js.map +1 -1
- package/dist/components/view-toggle-button/view-toggle-button.d.ts +1 -1
- package/dist/components/view-toggle-button/view-toggle-button.d.ts.map +1 -1
- package/dist/components/view-toggle-button/view-toggle-button.js +1 -1
- package/dist/components/view-toggle-button/view-toggle-button.js.map +1 -1
- package/dist/components/view-toggle-button/viewport-button.d.ts +1 -1
- package/dist/components/view-toggle-button/viewport-button.d.ts.map +1 -1
- package/dist/components/view-toggle-button/viewport-button.js.map +1 -1
- package/dist/config/feature/sources.d.ts +8 -5
- package/dist/config/feature/sources.d.ts.map +1 -1
- package/dist/config/feature/sources.js +10 -0
- package/dist/config/feature/sources.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/map/featureInteractions.js.map +1 -1
- package/dist/config/map/layers.d.ts +16 -13
- package/dist/config/map/layers.d.ts.map +1 -1
- package/dist/config/map/layers.js.map +1 -1
- package/dist/config/schema/index.d.ts +195 -0
- package/dist/config/schema/index.d.ts.map +1 -0
- package/dist/config/schema/index.js +26 -0
- package/dist/config/schema/index.js.map +1 -0
- package/dist/config/schema/validate.d.ts +8 -0
- package/dist/config/schema/validate.d.ts.map +1 -0
- package/dist/config/schema/validate.js +7 -0
- package/dist/config/schema/validate.js.map +1 -0
- package/dist/controllers/defaults.d.ts.map +1 -1
- package/dist/controllers/defaults.js +5 -0
- package/dist/controllers/defaults.js.map +1 -1
- package/dist/filters/tag-filter.d.ts +7 -0
- package/dist/filters/tag-filter.d.ts.map +1 -1
- package/dist/filters/tag-filter.js +10 -0
- package/dist/filters/tag-filter.js.map +1 -1
- package/dist/filters/time-filter.d.ts +9 -0
- package/dist/filters/time-filter.d.ts.map +1 -1
- package/dist/filters/time-filter.js +10 -0
- package/dist/filters/time-filter.js.map +1 -1
- package/dist/helpers/components.d.ts +1 -1
- package/dist/helpers/components.d.ts.map +1 -1
- package/dist/helpers/create-action-watcher.d.ts +1 -1
- package/dist/helpers/create-action-watcher.d.ts.map +1 -1
- package/dist/helpers/create-action-watcher.js +1 -1
- package/dist/helpers/create-action-watcher.js.map +1 -1
- package/dist/helpers/i18n/de.d.ts.map +1 -1
- package/dist/helpers/i18n/de.js +1 -0
- package/dist/helpers/i18n/de.js.map +1 -1
- package/dist/helpers/i18n/en.d.ts.map +1 -1
- package/dist/helpers/i18n/en.js +1 -0
- package/dist/helpers/i18n/en.js.map +1 -1
- package/dist/helpers/sort-features-by-distance.d.ts +2 -7
- package/dist/helpers/sort-features-by-distance.d.ts.map +1 -1
- package/dist/helpers/sort-features-by-distance.js +27 -39
- package/dist/helpers/sort-features-by-distance.js.map +1 -1
- package/dist/hooks/useMapsightIcon.d.ts +8 -0
- package/dist/hooks/useMapsightIcon.d.ts.map +1 -0
- package/dist/hooks/useMapsightIcon.js +50 -0
- package/dist/hooks/useMapsightIcon.js.map +1 -0
- package/dist/hooks/useMountable.d.ts +2 -2
- package/dist/hooks/useMountable.d.ts.map +1 -1
- package/dist/hooks/useMountable.js +6 -0
- package/dist/hooks/useMountable.js.map +1 -1
- package/dist/hooks/useStickyHeader.d.ts +3 -3
- package/dist/hooks/useStickyHeader.d.ts.map +1 -1
- package/dist/hooks/useStickyHeader.js +3 -3
- package/dist/hooks/useStickyHeader.js.map +1 -1
- package/dist/hooks/useUpdateMapSizeCallback.d.ts +1 -1
- package/dist/hooks/useUpdateMapSizeCallback.d.ts.map +1 -1
- package/dist/hooks/useUpdateMapSizeOnRender.d.ts +1 -1
- package/dist/hooks/useUpdateMapSizeOnRender.d.ts.map +1 -1
- package/dist/hooks/useUpdateMapSizeOnTransitionEnd.d.ts +1 -1
- package/dist/hooks/useUpdateMapSizeOnTransitionEnd.d.ts.map +1 -1
- package/dist/hooks/useUpdateMapSizeOnViewChange.d.ts +1 -1
- package/dist/hooks/useUpdateMapSizeOnViewChange.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/plugins/browser/app-title.d.ts +1 -1
- package/dist/plugins/browser/app-title.d.ts.map +1 -1
- package/dist/plugins/browser/feature-deep-link.d.ts +1 -1
- package/dist/plugins/browser/feature-deep-link.d.ts.map +1 -1
- package/dist/plugins/browser/feature-deep-link.js.map +1 -1
- package/dist/plugins/browser/local-storage.d.ts +1 -1
- package/dist/plugins/browser/local-storage.d.ts.map +1 -1
- package/dist/plugins/browser/native-fullscreen.d.ts +2 -2
- package/dist/plugins/browser/native-fullscreen.d.ts.map +1 -1
- package/dist/plugins/browser/no-scroll.d.ts +3 -4
- package/dist/plugins/browser/no-scroll.d.ts.map +1 -1
- package/dist/plugins/browser/no-scroll.js.map +1 -1
- package/dist/plugins/browser/partial-content-changed-event.d.ts +1 -1
- package/dist/plugins/browser/partial-content-changed-event.d.ts.map +1 -1
- package/dist/plugins/browser/piwik-track-feature-selection-event.d.ts +1 -1
- package/dist/plugins/browser/piwik-track-feature-selection-event.d.ts.map +1 -1
- package/dist/plugins/browser/piwik-track-fullscreen-toggle-event.d.ts +1 -1
- package/dist/plugins/browser/piwik-track-fullscreen-toggle-event.d.ts.map +1 -1
- package/dist/plugins/browser/search.d.ts +1 -1
- package/dist/plugins/browser/search.d.ts.map +1 -1
- package/dist/plugins/browser/share-position-link.d.ts +1 -1
- package/dist/plugins/browser/share-position-link.d.ts.map +1 -1
- package/dist/plugins/browser/share-position-link.js +1 -1
- package/dist/plugins/browser/share-position-link.js.map +1 -1
- package/dist/plugins/browser/toggle-mobile-views.d.ts +1 -1
- package/dist/plugins/browser/toggle-mobile-views.d.ts.map +1 -1
- package/dist/plugins/browser/user-geolocation.d.ts +1 -1
- package/dist/plugins/browser/user-geolocation.d.ts.map +1 -1
- package/dist/plugins/browser/user-geolocation.js +7 -6
- package/dist/plugins/browser/user-geolocation.js.map +1 -1
- package/dist/plugins/browser/views.d.ts +1 -1
- package/dist/plugins/browser/views.d.ts.map +1 -1
- package/dist/plugins/browser-defaults.d.ts +15 -13
- package/dist/plugins/browser-defaults.d.ts.map +1 -1
- package/dist/plugins/browser-defaults.js +18 -13
- package/dist/plugins/browser-defaults.js.map +1 -1
- package/dist/plugins/common/combined-visible-layers.d.ts +15 -0
- package/dist/plugins/common/combined-visible-layers.d.ts.map +1 -0
- package/dist/plugins/common/combined-visible-layers.js +63 -0
- package/dist/plugins/common/combined-visible-layers.js.map +1 -0
- package/dist/plugins/common/feature-selection-details-url.d.ts +1 -1
- package/dist/plugins/common/feature-selection-details-url.d.ts.map +1 -1
- package/dist/plugins/common/measure-distance.d.ts +1 -1
- package/dist/plugins/common/measure-distance.d.ts.map +1 -1
- package/dist/plugins/common/measure-distance.js +1 -1
- package/dist/plugins/common/measure-distance.js.map +1 -1
- package/dist/plugins/common/ol-proxy.d.ts +1 -1
- package/dist/plugins/common/ol-proxy.d.ts.map +1 -1
- package/dist/plugins/common/render-await-feature-details-loaded.d.ts +1 -1
- package/dist/plugins/common/render-await-feature-details-loaded.d.ts.map +1 -1
- package/dist/plugins/common/render-await-feature-details-loaded.js +2 -1
- package/dist/plugins/common/render-await-feature-details-loaded.js.map +1 -1
- package/dist/plugins/common/render-await-list-feature-sources-loaded.d.ts +1 -1
- package/dist/plugins/common/render-await-list-feature-sources-loaded.d.ts.map +1 -1
- package/dist/plugins/common/render-await-list-feature-sources-loaded.js +2 -1
- package/dist/plugins/common/render-await-list-feature-sources-loaded.js.map +1 -1
- package/dist/plugins/common/runtime-icon-style.d.ts +12 -0
- package/dist/plugins/common/runtime-icon-style.d.ts.map +1 -0
- package/dist/plugins/common/runtime-icon-style.js +58 -0
- package/dist/plugins/common/runtime-icon-style.js.map +1 -0
- package/dist/plugins/server/feature-deep-link.d.ts +1 -1
- package/dist/plugins/server/feature-deep-link.d.ts.map +1 -1
- package/dist/plugins/server-defaults.d.ts +4 -4
- package/dist/plugins/server-defaults.d.ts.map +1 -1
- package/dist/plugins/server-defaults.js +4 -4
- package/dist/plugins/server-defaults.js.map +1 -1
- package/dist/react-modal-app-element.d.ts +6 -0
- package/dist/react-modal-app-element.d.ts.map +1 -0
- package/dist/react-modal-app-element.js +9 -0
- package/dist/react-modal-app-element.js.map +1 -0
- package/dist/renderer/browser-dom.d.ts.map +1 -1
- package/dist/renderer/browser-dom.js +6 -2
- package/dist/renderer/browser-dom.js.map +1 -1
- package/dist/renderer/server-string.js +2 -2
- package/dist/renderer/server-string.js.map +1 -1
- package/dist/store/actions.d.ts +4 -2
- package/dist/store/actions.d.ts.map +1 -1
- package/dist/store/actions.js +7 -2
- package/dist/store/actions.js.map +1 -1
- package/dist/store/reducers.d.ts +224 -9
- package/dist/store/reducers.d.ts.map +1 -1
- package/dist/store/reducers.js +1 -1
- package/dist/store/reducers.js.map +1 -1
- package/dist/store/selectors.d.ts +267 -243
- package/dist/store/selectors.d.ts.map +1 -1
- package/dist/store/selectors.js +58 -69
- package/dist/store/selectors.js.map +1 -1
- package/dist/types.d.ts +65 -36
- package/dist/types.d.ts.map +1 -1
- package/package.json +26 -11
- package/src/scss/blocks/_features-sorting.scss +0 -13
- package/src/scss/blocks/_filter-button.scss +23 -0
- package/src/scss/blocks/_filter-toggle-control.scss +15 -0
- package/src/scss/default.scss +1 -0
- package/dist/components/layer-switcher/LayerSwticherContainer.d.ts +0 -4
- package/dist/components/layer-switcher/LayerSwticherContainer.d.ts.map +0 -1
- package/dist/components/layer-switcher/LayerSwticherContainer.js.map +0 -1
- package/src/img/mapsight-ui/check-empty.svg +0 -1
- package/src/img/mapsight-ui/check.svg +0 -2
- package/src/img/mapsight-ui/close-list.svg +0 -1
- package/src/img/mapsight-ui/close.svg +0 -1
- package/src/img/mapsight-ui/error.svg +0 -1
- package/src/img/mapsight-ui/fullscreen-close.svg +0 -1
- package/src/img/mapsight-ui/fullscreen.svg +0 -1
- package/src/img/mapsight-ui/geo-active.svg +0 -1
- package/src/img/mapsight-ui/geo-error.svg +0 -1
- package/src/img/mapsight-ui/geo-inactive.svg +0 -1
- package/src/img/mapsight-ui/info.svg +0 -1
- package/src/img/mapsight-ui/layers.svg +0 -1
- package/src/img/mapsight-ui/loading.svg +0 -1
- package/src/img/mapsight-ui/map.svg +0 -1
- package/src/img/mapsight-ui/measure-distance.svg +0 -7
- package/src/img/mapsight-ui/open-list.svg +0 -1
- package/src/img/mapsight-ui/place-marker.svg +0 -4
- package/src/img/mapsight-ui/print.svg +0 -4
- package/src/img/mapsight-ui/reset-active.svg +0 -1
- package/src/img/mapsight-ui/reset.svg +0 -1
- package/src/img/mapsight-ui/search.svg +0 -1
- package/src/img/mapsight-ui/sharing.svg +0 -7
- package/src/img/mapsight-ui/sort-active.svg +0 -1
- package/src/img/mapsight-ui/sort.svg +0 -1
- package/src/img/mapsight-ui/watermark.svg +0 -1
- package/src/img/mapsight-ui/zoom-in.svg +0 -3
- package/src/img/mapsight-ui/zoom-out.svg +0 -3
- package/src/js/components/app.jsx +0 -237
- package/src/js/components/close-overlay-button.tsx +0 -27
- package/src/js/components/feature-details-content/feature-details-content-inner.tsx +0 -116
- package/src/js/components/feature-details-content/feature-details-content.jsx +0 -185
- package/src/js/components/feature-details-content/index.js +0 -20
- package/src/js/components/feature-details-content/share-feature-link-modal.jsx +0 -56
- package/src/js/components/feature-list/content.jsx +0 -42
- package/src/js/components/feature-list/context.tsx +0 -47
- package/src/js/components/feature-list/empty-message.jsx +0 -15
- package/src/js/components/feature-list/filter.jsx +0 -35
- package/src/js/components/feature-list/footer.jsx +0 -5
- package/src/js/components/feature-list/grouped-content.jsx +0 -74
- package/src/js/components/feature-list/header.jsx +0 -7
- package/src/js/components/feature-list/hooks/useAutoloadFeatureSource.ts +0 -25
- package/src/js/components/feature-list/hooks/useFeatureListFeatureSource.ts +0 -22
- package/src/js/components/feature-list/hooks/useFeatureListItemGroups.ts +0 -127
- package/src/js/components/feature-list/hooks/useFeatureListState.ts +0 -90
- package/src/js/components/feature-list/hooks/useKeyboardNavigation.js +0 -112
- package/src/js/components/feature-list/hooks/useMakeHeaderSticky.js +0 -40
- package/src/js/components/feature-list/hooks/usePaginatedFilteredFeatures.ts +0 -129
- package/src/js/components/feature-list/hooks/useRestoreDocumentScroll.js +0 -12
- package/src/js/components/feature-list/hooks/useSelectFeature.js +0 -88
- package/src/js/components/feature-list/index.jsx +0 -278
- package/src/js/components/feature-list/pagination.tsx +0 -57
- package/src/js/components/feature-list/query-input.jsx +0 -14
- package/src/js/components/feature-list-cycling/button.jsx +0 -13
- package/src/js/components/feature-list-cycling/dot.jsx +0 -43
- package/src/js/components/feature-list-cycling/feature-list-cycling.jsx +0 -153
- package/src/js/components/feature-list-cycling/index.js +0 -82
- package/src/js/components/feature-list-item/head.jsx +0 -131
- package/src/js/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.js +0 -51
- package/src/js/components/feature-list-item/hooks/useFeatureListItemState.ts +0 -75
- package/src/js/components/feature-list-item/icon.jsx +0 -35
- package/src/js/components/feature-list-item/index.jsx +0 -168
- package/src/js/components/feature-list-sorting/feature-list-sorting.tsx +0 -144
- package/src/js/components/feature-list-sorting/index.js +0 -25
- package/src/js/components/feature-list-sorting/status-indicator.jsx +0 -10
- package/src/js/components/feature-select-button.jsx +0 -70
- package/src/js/components/feature-selection-info/close-button.jsx +0 -64
- package/src/js/components/feature-selection-info/container.jsx +0 -9
- package/src/js/components/feature-selection-info/header.tsx +0 -27
- package/src/js/components/feature-selection-info/index.tsx +0 -81
- package/src/js/components/feature-selection-info/with-sticky-header.jsx +0 -61
- package/src/js/components/feature-selection-info/without-sticky-header.jsx +0 -19
- package/src/js/components/feature-selection-info/wrapper.jsx +0 -43
- package/src/js/components/helping/app-channel.tsx +0 -99
- package/src/js/components/helping/app-context.tsx +0 -32
- package/src/js/components/helping/visibility-wrapper.jsx +0 -23
- package/src/js/components/instance.tsx +0 -48
- package/src/js/components/layer-switcher/GroupedLayerSwitcher.js +0 -47
- package/src/js/components/layer-switcher/LayerSwitcher.js +0 -27
- package/src/js/components/layer-switcher/LayerSwitcherEntry.js +0 -132
- package/src/js/components/layer-switcher/LayerSwticherContainer.jsx +0 -80
- package/src/js/components/layer-switcher/index.js +0 -47
- package/src/js/components/layout/additional-container/content.jsx +0 -10
- package/src/js/components/layout/additional-container/index.jsx +0 -5
- package/src/js/components/layout/additional-container/marginal.jsx +0 -10
- package/src/js/components/layout/main-container.jsx +0 -5
- package/src/js/components/layout/map-row.jsx +0 -5
- package/src/js/components/layout/title-bar.tsx +0 -25
- package/src/js/components/layout/wrapper.jsx +0 -28
- package/src/js/components/link-share.jsx +0 -78
- package/src/js/components/main-panel/container.tsx +0 -23
- package/src/js/components/main-panel/context.jsx +0 -62
- package/src/js/components/main-panel/index.tsx +0 -46
- package/src/js/components/main-panel/list-toggle-button.jsx +0 -43
- package/src/js/components/map-overlay/area.jsx +0 -17
- package/src/js/components/map-overlay/attribution-entries.tsx +0 -33
- package/src/js/components/map-overlay/attribution.tsx +0 -25
- package/src/js/components/map-overlay/combined-buttons.jsx +0 -5
- package/src/js/components/map-overlay/index.jsx +0 -5
- package/src/js/components/map-overlay/info-overlay-left.jsx +0 -51
- package/src/js/components/map-overlay/info-overlay-modal.tsx +0 -49
- package/src/js/components/map-overlay/info-overlay-right.jsx +0 -46
- package/src/js/components/map-overlay/layer-switcher-overlay.tsx +0 -100
- package/src/js/components/map-overlay/legend.tsx +0 -22
- package/src/js/components/map-overlay/logo.jsx +0 -11
- package/src/js/components/map-overlay/measure-distance-button.tsx +0 -116
- package/src/js/components/map-overlay/measure-distance-overlay.jsx +0 -56
- package/src/js/components/map-overlay/mini-legend.jsx +0 -103
- package/src/js/components/map-overlay/region-selector.jsx +0 -63
- package/src/js/components/map-overlay/search-overlay.jsx +0 -79
- package/src/js/components/map-overlay/share-position-link-button.tsx +0 -144
- package/src/js/components/map-overlay/tool-overlay.tsx +0 -28
- package/src/js/components/map-overlay/user-geo-location-button.jsx +0 -89
- package/src/js/components/map-overlay/zoom-button.jsx +0 -98
- package/src/js/components/map-overlay/zoom-buttons.jsx +0 -26
- package/src/js/components/map-synced-interlay/index.js +0 -17
- package/src/js/components/map-synced-interlay/map-synced-interlay.jsx +0 -22
- package/src/js/components/map-synced-interlay/tooltip-content.tsx +0 -22
- package/src/js/components/map-synced-interlay/tooltip.tsx +0 -199
- package/src/js/components/map-wrapper.tsx +0 -65
- package/src/js/components/map.jsx +0 -37
- package/src/js/components/modal.tsx +0 -40
- package/src/js/components/query-input-with-label.tsx +0 -71
- package/src/js/components/query-input.tsx +0 -81
- package/src/js/components/search/index.jsx +0 -83
- package/src/js/components/search/query-input.jsx +0 -20
- package/src/js/components/search/result-entry.jsx +0 -63
- package/src/js/components/search/result.jsx +0 -71
- package/src/js/components/switcher/GroupedSwitcher.jsx +0 -42
- package/src/js/components/switcher/Switcher.jsx +0 -54
- package/src/js/components/switcher/SwitcherButton.jsx +0 -23
- package/src/js/components/switcher/SwitcherEntry.jsx +0 -143
- package/src/js/components/switcher/SwitcherHeader.jsx +0 -58
- package/src/js/components/switcher/SwitcherStatusIcon.jsx +0 -36
- package/src/js/components/tag-switcher/TagSwitcher.jsx +0 -57
- package/src/js/components/tag-switcher/createTagSwitcherEntry.js +0 -41
- package/src/js/components/tag-switcher/createTagSwitcherHeader.js +0 -34
- package/src/js/components/tag-switcher/index.js +0 -20
- package/src/js/components/time-filter.jsx +0 -187
- package/src/js/components/view-toggle-button/desktop-button.jsx +0 -13
- package/src/js/components/view-toggle-button/index.js +0 -39
- package/src/js/components/view-toggle-button/mobile-button.jsx +0 -13
- package/src/js/components/view-toggle-button/view-toggle-button.jsx +0 -74
- package/src/js/components/view-toggle-button/viewport-button.jsx +0 -13
- package/src/js/config/constants/app.ts +0 -16
- package/src/js/config/constants/controllers.ts +0 -11
- package/src/js/config/feature/selections.ts +0 -13
- package/src/js/config/feature/sources.ts +0 -77
- package/src/js/config/index.ts +0 -133
- package/src/js/config/map/featureInteractions.ts +0 -53
- package/src/js/config/map/interactions.ts +0 -15
- package/src/js/config/map/layers.ts +0 -190
- package/src/js/controllers/defaults.ts +0 -36
- package/src/js/embed/browser.ts +0 -89
- package/src/js/embed/node.ts +0 -57
- package/src/js/filters/tag-filter.ts +0 -135
- package/src/js/filters/time-filter.ts +0 -53
- package/src/js/global.d.ts +0 -7
- package/src/js/helpers/components.ts +0 -66
- package/src/js/helpers/create-action-watcher.ts +0 -35
- package/src/js/helpers/events.ts +0 -11
- package/src/js/helpers/get-feature-property.ts +0 -14
- package/src/js/helpers/i18n/de.ts +0 -145
- package/src/js/helpers/i18n/en.ts +0 -140
- package/src/js/helpers/i18n/index.ts +0 -41
- package/src/js/helpers/makeReplaceableComponent.ts +0 -0
- package/src/js/helpers/mod-classes.ts +0 -47
- package/src/js/helpers/react.ts +0 -14
- package/src/js/helpers/scroll-to-element-top.ts +0 -16
- package/src/js/helpers/sort-features-by-distance.ts +0 -102
- package/src/js/helpers/sticky.js +0 -143
- package/src/js/hooks/useCallbackRef.ts +0 -14
- package/src/js/hooks/useControllableState.ts +0 -50
- package/src/js/hooks/useDebounce.ts +0 -32
- package/src/js/hooks/useHandleEscapeKeyDown.ts +0 -27
- package/src/js/hooks/useMapsightPanel.ts +0 -40
- package/src/js/hooks/useMountable.ts +0 -38
- package/src/js/hooks/usePrevious.ts +0 -15
- package/src/js/hooks/useStickyHeader.ts +0 -51
- package/src/js/hooks/useUpdateMapSizeCallback.ts +0 -32
- package/src/js/hooks/useUpdateMapSizeOnRender.ts +0 -16
- package/src/js/hooks/useUpdateMapSizeOnTransitionEnd.ts +0 -40
- package/src/js/hooks/useUpdateMapSizeOnViewChange.ts +0 -36
- package/src/js/index.ts +0 -319
- package/src/js/plugins/browser/app-title.ts +0 -36
- package/src/js/plugins/browser/debug.ts +0 -37
- package/src/js/plugins/browser/feature-deep-link.ts +0 -222
- package/src/js/plugins/browser/local-storage.ts +0 -79
- package/src/js/plugins/browser/native-fullscreen.ts +0 -81
- package/src/js/plugins/browser/no-scroll.ts +0 -90
- package/src/js/plugins/browser/partial-content-changed-event.ts +0 -23
- package/src/js/plugins/browser/piwik-track-feature-selection-event.ts +0 -75
- package/src/js/plugins/browser/piwik-track-fullscreen-toggle-event.ts +0 -46
- package/src/js/plugins/browser/search.ts +0 -42
- package/src/js/plugins/browser/share-position-link.ts +0 -463
- package/src/js/plugins/browser/toggle-mobile-views.ts +0 -60
- package/src/js/plugins/browser/user-geolocation.ts +0 -134
- package/src/js/plugins/browser/views.ts +0 -141
- package/src/js/plugins/browser-defaults.ts +0 -101
- package/src/js/plugins/common/feature-selection-details-url.ts +0 -135
- package/src/js/plugins/common/lang.ts +0 -17
- package/src/js/plugins/common/measure-distance.ts +0 -223
- package/src/js/plugins/common/ol-proxy.ts +0 -68
- package/src/js/plugins/common/render-await-feature-details-loaded.ts +0 -153
- package/src/js/plugins/common/render-await-list-feature-sources-loaded.ts +0 -108
- package/src/js/plugins/server/feature-deep-link.ts +0 -67
- package/src/js/plugins/server-defaults.ts +0 -36
- package/src/js/renderer/browser-dom.tsx +0 -23
- package/src/js/renderer/server-string.tsx +0 -17
- package/src/js/server-handler.js +0 -39
- package/src/js/store/actions.ts +0 -648
- package/src/js/store/reducers.ts +0 -491
- package/src/js/store/selectors.ts +0 -449
- package/src/js/types.ts +0 -381
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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,CA2H9B,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",
|
|
@@ -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,EA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BAA2B,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,CAsH9B,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",
|
|
@@ -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,EAAE,gBAAgB;IAE3B,sBAAsB,EAAE,cAAc;IAEtC,oCAAoC,EAAE,gBAAgB;IACtD,qCAAqC,EAAE,2BAA2B;IAClE,qCAAqC,EAAE,8BAA8B;IAErE,wCAAwC,EAAE,0BAA0B;IACpE,2CAA2C,EAAE,cAAc;IAC3D,0CAA0C,EAAE,mBAAmB;IAE/D,gCAAgC,EAAE,WAAW;IAC7C,iCAAiC,EAAE,YAAY;IAE/C,oCAAoC,EAAE,iCAAiC;IACvE,gCAAgC,EAAE,sBAAsB;IACxD,6BAA6B,EAAE,qBAAqB;IACpD,uCAAuC,EAAE,sBAAsB;
|
|
1
|
+
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../../src/js/help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uB,OAAO,EAAE,CAAC,EAAE,UAAU;IAE9C,CAAC,0BAA0B,YAAY,EAAE,CAAC,EAAE,kBAAkB;IAC9D,CAAC,0BAA0B,cAAc,EAAE,CAAC,EAAE,SAAS;IACvD,CAAC,0BAA0B,aAAa,EAAE,CAAC,EAAE,QAAQ;IACrD,CAAC,0BAA0B,eAAe,EAAE,CAAC,EAAE,UAAU;IAEzD,mCAAmC,EAAE,uBAAuB;IAC5D,uCAAuC,EAAE,uBAAuB;IAEhE,wBAAwB,EAAE,GAAG;IAC7B,wBAAwB,EAAE,GAAG;IAC7B,6BAA6B,EAAE,iBAAiB;IAChD,6BAA6B,EAAE,qBAAqB;IACpD,qCAAqC,EAAE,wBAAwB;IAC/D,6BAA6B,EAAE,mBAAmB;IAElD,8BAA8B,EAAE,gBAAgB;IAChD,qCAAqC,EACpC,uCAAuC;IACxC,mCAAmC,EAAE,uBAAuB;IAC5D,yCAAyC,EAAE,uBAAuB;CAClE,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
+
import type { Coordinate } from "ol/coordinate";
|
|
1
2
|
import type { MapsightUiPlacesData } from "../components/feature-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":"","sources":["../../src/js/helpers/sort-features-by-distance.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAEtC,OAAO,2BAA2B,MAAM,sDAAsD,CAAC;AAS/F,MAAM,4BAA4B,GAAG,CACpC,OAA0B,EACN,EAAE,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;AAE7D,SAAS,mBAAmB,CAC3B,OAAe,EACf,MAA4B;IAE5B,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEvC,IAAI,OAAO,GAAyB,MAAM,CAAC;IAC3C,IAAI,IAAwD,CAAC;IAE7D,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QAC/B,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC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AAG,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QACrC,CAAC;QAED,OAAO,MAAM,IAAI,IAAI,CAAC;IACvB,CAAC,CAAC;IAEF,OAAO,QAAQ;SACb,KAAK,EAAE;SACP,IAAI,CACJ,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACR,eAAe,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;QAC1C,eAAe,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAC3C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IconBitmap, type IconVariant } from "@mapsight/traffic-style/runtime";
|
|
2
|
+
export declare function useMapsightIcon(mapsightIconId: string, variant?: IconVariant): {
|
|
3
|
+
src: string | null;
|
|
4
|
+
bitmap: IconBitmap | null;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
error: Error | null;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useMapsightIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMapsightIcon.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useMapsightIcon.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,UAAU,EACf,KAAK,WAAW,EAIhB,MAAM,iCAAiC,CAAC;AAEzC,wBAAgB,eAAe,CAC9B,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,WAAW,GACnB;IACF,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACpB,CA0DA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
import { getCachedIcon, loadIcon, mapsightIconCacheKey, } from "@mapsight/traffic-style/runtime";
|
|
3
|
+
export function useMapsightIcon(mapsightIconId, variant) {
|
|
4
|
+
const key = mapsightIconCacheKey(mapsightIconId, variant);
|
|
5
|
+
const [bitmap, setBitmap] = useState(() => getCachedIcon(mapsightIconId, variant) ?? null);
|
|
6
|
+
const [loading, setLoading] = useState(() => getCachedIcon(mapsightIconId, variant) == null);
|
|
7
|
+
const [error, setError] = useState(null);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
let cancelled = false;
|
|
10
|
+
const cached = getCachedIcon(mapsightIconId, variant);
|
|
11
|
+
if (cached) {
|
|
12
|
+
setBitmap(cached);
|
|
13
|
+
setLoading(false);
|
|
14
|
+
setError(null);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
setBitmap(null);
|
|
18
|
+
setLoading(true);
|
|
19
|
+
setError(null);
|
|
20
|
+
if (!key) {
|
|
21
|
+
setLoading(false);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
void loadIcon(mapsightIconId, variant)
|
|
25
|
+
.then((result) => {
|
|
26
|
+
if (!cancelled) {
|
|
27
|
+
setBitmap(result);
|
|
28
|
+
setLoading(false);
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
.catch((cause) => {
|
|
32
|
+
if (!cancelled) {
|
|
33
|
+
setError(cause instanceof Error
|
|
34
|
+
? cause
|
|
35
|
+
: new Error(String(cause)));
|
|
36
|
+
setLoading(false);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return () => {
|
|
40
|
+
cancelled = true;
|
|
41
|
+
};
|
|
42
|
+
}, [key, mapsightIconId, variant]);
|
|
43
|
+
return {
|
|
44
|
+
src: bitmap?.dataUrl ?? null,
|
|
45
|
+
bitmap,
|
|
46
|
+
loading,
|
|
47
|
+
error,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=useMapsightIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMapsightIcon.js","sourceRoot":"","sources":["../../src/js/h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EAAE;YAChB,IAAI,CAAC,SAAS,EAAE,CAAC;gBAChB,SAAS,CAAC,MAAM,CAAC,CAAC;gBAClB,UAAU,CAAC,KAAK,CAAC,CAAC;YACnB,CAAC;QACF,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YACzB,IAAI,CAAC,SAAS,EAAE,CAAC;gBAChB,QAAQ,CACP,KAAK,YAAY,KAAK;oBACrB,CAAC,CAAC,KAAK;oBACP,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAC3B,CAAC;gBACF,UAAU,CAAC,KAAK,CAAC,CAAC;YACnB,CAAC;QACF,CAAC,CAAC,CAAC;QAEJ,OAAO,GAAG,EAAE;YACX,SAAS,GAAG,IAAI,CAAC;QAClB,CAAC,CAAC;IACH,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC;IAEnC,OAAO;QACN,GAAG,EAAE,MAAM,EAAE,OAAO,IAAI,IAAI;QAC5B,MAAM;QACN,OAAO;QACP,KAAK;KACL,CAAC;AACH,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
type Mountable = {
|
|
1
|
+
export type Mountable = {
|
|
2
2
|
/** mount function, receives element as parameter */
|
|
3
3
|
mount(element: Element): void;
|
|
4
4
|
/** unmount function, receives element as parameter */
|
|
5
5
|
unmount(element: Element): void;
|
|
6
6
|
};
|
|
7
|
+
export declare function isMountable(obj: object): obj is Mountable;
|
|
7
8
|
/**
|
|
8
9
|
* Mounts the mountable object to the element
|
|
9
10
|
*
|
|
@@ -11,5 +12,4 @@ type Mountable = {
|
|
|
11
12
|
* @returns callback to set target
|
|
12
13
|
*/
|
|
13
14
|
export default function useMountable(mountable: undefined | Mountable): import("react").Dispatch<import("react").SetStateAction<Element | undefined>>;
|
|
14
|
-
export {};
|
|
15
15
|
//# sourceMappingURL=useMountable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMountable.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useMountable.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"useMountable.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useMountable.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG;IACvB,oDAAoD;IACpD,KAAK,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAE9B,sDAAsD;IACtD,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,SAAS,CAOzD;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,iFAqBpE"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
+
export function isMountable(obj) {
|
|
3
|
+
return ("mount" in obj &&
|
|
4
|
+
typeof obj.mount === "function" &&
|
|
5
|
+
"unmount" in obj &&
|
|
6
|
+
typeof obj.unmount === "function");
|
|
7
|
+
}
|
|
2
8
|
/**
|
|
3
9
|
* Mounts the mountable object to the element
|
|
4
10
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMountable.js","sourceRoot":"","sources":["../../src/js/hooks/useMountable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAU1C;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,SAAgC;IACpE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,EAAuB,CAAC;IAE5D,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,SAAS,EAAE,CAAC;YAChB,OAAO,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;YAC3C,OAAO;QACR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CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;IAExB,OAAO,SAAS,CAAC;AAClB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { DependencyList } from "react";
|
|
2
2
|
type Options = {
|
|
3
|
-
|
|
3
|
+
stuckHeaderHeight?: number;
|
|
4
4
|
resetDeps?: DependencyList;
|
|
5
5
|
};
|
|
6
|
-
export default function useStickyHeader({
|
|
6
|
+
export default function useStickyHeader<TElement extends HTMLElement = HTMLElement>({ stuckHeaderHeight, resetDeps }: Options): {
|
|
7
7
|
isHeaderStuck: boolean;
|
|
8
|
-
stickyHeaderRef: import("react").RefObject<
|
|
8
|
+
stickyHeaderRef: import("react").RefObject<TElement | null>;
|
|
9
9
|
stickyScrollAreaRef: import("react").RefObject<{
|
|
10
10
|
scrollTop: number;
|
|
11
11
|
} | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStickyHeader.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useStickyHeader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAC;AAG1C,KAAK,OAAO,GAAG;IACd,
|
|
1
|
+
{"version":3,"file":"useStickyHeader.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useStickyHeader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAC;AAG1C,KAAK,OAAO,GAAG;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC3B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,eAAe,CACtC,QAAQ,SAAS,WAAW,GAAG,WAAW,EACzC,EAAC,iBAAsB,EAAE,SAAc,EAAC,EAAE,OAAO;;;;mBAKH,MAAM;;kBAGhD,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC;EA+B3C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
-
export default function useStickyHeader({
|
|
2
|
+
export default function useStickyHeader({ stuckHeaderHeight = 30, resetDeps = [] }) {
|
|
3
3
|
const [isHeaderStuck, setIsHeaderStuck] = useState(false);
|
|
4
4
|
const [stickThreshold, setStickThreshold] = useState(0);
|
|
5
5
|
const stickyHeaderRef = useRef(null);
|
|
@@ -18,9 +18,9 @@ export default function useStickyHeader({ stuckHeaderSize = 30, resetDeps = [],
|
|
|
18
18
|
useEffect(() => {
|
|
19
19
|
if (stickyHeaderRef.current) {
|
|
20
20
|
const headerSize = stickyHeaderRef.current.offsetHeight;
|
|
21
|
-
setStickThreshold(headerSize -
|
|
21
|
+
setStickThreshold(headerSize - stuckHeaderHeight);
|
|
22
22
|
}
|
|
23
|
-
}, [stickyHeaderRef.current?.offsetHeight,
|
|
23
|
+
}, [stickyHeaderRef.current?.offsetHeight, stuckHeaderHeight]);
|
|
24
24
|
return {
|
|
25
25
|
isHeaderStuck,
|
|
26
26
|
stickyHeaderRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStickyHeader.js","sourceRoot":"","sources":["../../src/js/hooks/useStickyHeader.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAO/D,MAAM,CAAC,OAAO,UAAU,eAAe,
|
|
1
|
+
{"version":3,"file":"useStickyHeader.js","sourceRoot":"","sources":["../../src/js/hooks/useStickyHeader.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAO/D,MAAM,CAAC,OAAO,UAAU,eAAe,CAErC,EAAC,iBAAiB,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAU;IAClD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAExD,MAAM,eAAe,GAAG,MAAM,CAAkB,IAAI,CAAC,CAAC;IACtD,MAAM,mBAAmB,GAAG,MAAM,CAA6B,IAAI,CAAC,CAAC;IAErE,MAAM,QAAQ,GAAG,WAAW,CAC3B,CAAC,CAAyC,EAAE,EAAE;QAC7C,gBAAgB,CAAC,cAAc,GAAG,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAC9D,CAAC,EACD,CAAC,cAAc,CAAC,CAChB,CAAC;IAEF,SAAS,CACR,GAAG,EAAE;QACJ,IAAI,mBAAmB,CAAC,OAAO,EAAE,CAAC;YACjC,mBAAmB,CAAC,OAAO,CAAC,SAAS,GAAG,CAAC,CAAC;QAC3C,CAAC;QAED,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IACD,uDAAuD;IACvD,CAAC,GAAG,SAAS,CAAC,CACd,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,eAAe,CAAC,OAAO,EAAE,CAAC;YAC7B,MAAM,UAAU,GAAG,eAAe,CAAC,OAAO,CAAC,YAAY,CAAC;YACxD,iBAAiB,CAAC,UAAU,GAAG,iBAAiB,CAAC,CAAC;QACnD,CAAC;IACF,CAAC,EAAE,CAAC,eAAe,CAAC,OAAO,EAAE,YAAY,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAE/D,OAAO;QACN,aAAa;QACb,eAAe;QACf,mBAAmB;QACnB,QAAQ;KACR,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from "react";
|
|
2
|
-
import type { Dispatch } from "
|
|
2
|
+
import type { Dispatch } from "@reduxjs/toolkit";
|
|
3
3
|
import type { MainPanelPosition } from "../types";
|
|
4
4
|
export default function useUpdateMapSizeCallback(dispatch: Dispatch, positionRef?: RefObject<MainPanelPosition | null>, reCenter?: boolean): () => void;
|
|
5
5
|
//# sourceMappingURL=useUpdateMapSizeCallback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUpdateMapSizeCallback.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useUpdateMapSizeCallback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAGrC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"useUpdateMapSizeCallback.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useUpdateMapSizeCallback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAGrC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAM/C,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAEhD,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAE/C,QAAQ,EAAE,QAAQ,EAElB,WAAW,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,EACjD,QAAQ,GAAE,OAAc,cAexB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUpdateMapSizeOnRender.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useUpdateMapSizeOnRender.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"useUpdateMapSizeOnRender.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useUpdateMapSizeOnRender.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAI/C,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAE/C,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,QAOvB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from "react";
|
|
2
|
-
import type { Dispatch } from "
|
|
2
|
+
import type { Dispatch } from "@reduxjs/toolkit";
|
|
3
3
|
import type { MainPanelPosition } from "../types";
|
|
4
4
|
export default function useUpdateMapSizeOnTransitionEnd(target: undefined | Element, dispatch: Dispatch, positionRef?: RefObject<MainPanelPosition | null>, reCenter?: boolean): void;
|
|
5
5
|
//# sourceMappingURL=useUpdateMapSizeOnTransitionEnd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUpdateMapSizeOnTransitionEnd.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useUpdateMapSizeOnTransitionEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAGrC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"useUpdateMapSizeOnTransitionEnd.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useUpdateMapSizeOnTransitionEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAGrC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAE/C,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAGhD,MAAM,CAAC,OAAO,UAAU,+BAA+B,CACtD,MAAM,EAAE,SAAS,GAAG,OAAO,EAE3B,QAAQ,EAAE,QAAQ,EAElB,WAAW,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,EACjD,QAAQ,GAAE,OAAc,QAyBxB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Store } from "
|
|
1
|
+
import type { Store } from "@reduxjs/toolkit";
|
|
2
2
|
import type { MapsightUiView } from "../types";
|
|
3
3
|
export default function useUpdateMapSizeOnViewChange(view: MapsightUiView, store: Store): void;
|
|
4
4
|
//# sourceMappingURL=useUpdateMapSizeOnViewChange.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUpdateMapSizeOnViewChange.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useUpdateMapSizeOnViewChange.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"useUpdateMapSizeOnViewChange.d.ts","sourceRoot":"","sources":["../../src/js/hooks/useUpdateMapSizeOnViewChange.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AAQ5C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,UAAU,CAAC;AAG7C,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAEnD,IAAI,EAAE,cAAc,EAEpB,KAAK,EAAE,KAAK,QAkBZ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type State } from "@mapsight/core/types";
|
|
2
1
|
import type { MapsightStyleFunction } from "@mapsight/lib-ol/style/styleFunction";
|
|
2
|
+
import type { MapsightConfig } from "./config/schema";
|
|
3
3
|
import type { CreateOptions, MapsightUiContext } from "./types";
|
|
4
4
|
/**
|
|
5
5
|
* Creates an mapsight ui instance
|
|
@@ -10,5 +10,5 @@ import type { CreateOptions, MapsightUiContext } from "./types";
|
|
|
10
10
|
* @param [createOptions] ui creation options TODO: document further
|
|
11
11
|
* @returns mapsight ui instance
|
|
12
12
|
*/
|
|
13
|
-
export declare function create(container: HTMLElement | null, styleFunction: MapsightStyleFunction, baseMapsightConfig?: Partial<
|
|
13
|
+
export declare function create(container: HTMLElement | null, styleFunction: MapsightStyleFunction, baseMapsightConfig?: Partial<MapsightConfig>, createOptions?: CreateOptions): MapsightUiContext;
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/js/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/js/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,sCAAsC,CAAC;AAKhF,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAIpD,OAAO,KAAK,EACX,aAAa,EACb,iBAAiB,EAMjB,MAAM,SAAS,CAAC;AA+GjB;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CACrB,SAAS,EAAE,WAAW,GAAG,IAAI,EAC7B,aAAa,EAAE,qBAAqB,EACpC,kBAAkB,GAAE,OAAO,CAAC,cAAc,CAAM,EAChD,aAAa,GAAE,aAAkB,GAC/B,iBAAiB,CAyHnB"}
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import { applyMiddleware, compose } from "@reduxjs/toolkit";
|
|
1
2
|
import merge from "lodash/merge";
|
|
2
|
-
import {
|
|
3
|
-
import thunk from "redux-thunk";
|
|
3
|
+
import { thunk } from "redux-thunk";
|
|
4
4
|
import { createMapsightStore } from "@mapsight/core";
|
|
5
|
+
import { isDevelopment } from "@mapsight/core/lib/helpers";
|
|
5
6
|
import { layerIdsExternalSwitcherSelector } from "@mapsight/core/lib/map/selectors";
|
|
6
7
|
import * as nonNull from "@mapsight/lib-js/nonNullable";
|
|
7
8
|
import { siteConfig } from "./config";
|
|
8
9
|
import { VIEW_MOBILE } from "./config/constants/app";
|
|
9
10
|
import * as c from "./config/constants/controllers";
|
|
11
|
+
import { validateMapsightConfig } from "./config/schema/validate";
|
|
10
12
|
import { createDefaultControllers } from "./controllers/defaults";
|
|
11
13
|
import uiReducers from "./store/reducers";
|
|
12
14
|
/**
|
|
13
|
-
* Default mapsight ui renderer (Does nothing
|
|
15
|
+
* Default mapsight ui renderer (Does nothing but log a warning!).
|
|
14
16
|
*/
|
|
15
17
|
const defaultRenderer = (_container, _props, _hydrate = false) => {
|
|
16
18
|
console.info("create has to be passed a renderer to render the app");
|
|
@@ -80,6 +82,7 @@ const defaultCreateOptions = {
|
|
|
80
82
|
deselectOnClick: false, // deselect on click to selected list item
|
|
81
83
|
cyclingControl: false, // show a control to select next or previous list entry
|
|
82
84
|
sortControl: true, // show sort control icon
|
|
85
|
+
tagSwitcherControl: false, // show tag switcher as collapsible control in integrated list header
|
|
83
86
|
filterControl: true, // show filter box
|
|
84
87
|
paginationControl: false, // show pagination
|
|
85
88
|
itemsPerPage: 10, // number of items per page
|
|
@@ -116,12 +119,19 @@ const defaultCreateOptions = {
|
|
|
116
119
|
* @returns mapsight ui instance
|
|
117
120
|
*/
|
|
118
121
|
export function create(container, styleFunction, baseMapsightConfig = {}, createOptions = {}) {
|
|
122
|
+
const mergedCreateOptions = merge({}, defaultCreateOptions, createOptions);
|
|
123
|
+
const shouldValidate = mergedCreateOptions.validateConfig ?? isDevelopment();
|
|
124
|
+
const validatedBaseMapsightConfig = shouldValidate
|
|
125
|
+
? validateMapsightConfig(baseMapsightConfig, {
|
|
126
|
+
context: "create()",
|
|
127
|
+
})
|
|
128
|
+
: baseMapsightConfig;
|
|
119
129
|
const context = {
|
|
120
130
|
hasRendered: false,
|
|
121
131
|
container: container,
|
|
122
132
|
styleFunction: styleFunction,
|
|
123
|
-
baseMapsightConfig:
|
|
124
|
-
createOptions:
|
|
133
|
+
baseMapsightConfig: validatedBaseMapsightConfig,
|
|
134
|
+
createOptions: mergedCreateOptions,
|
|
125
135
|
appChannelListeners: [],
|
|
126
136
|
};
|
|
127
137
|
// transfer some create options to global site config to make them available even outside of the redux context
|
|
@@ -150,6 +160,7 @@ export function create(container, styleFunction, baseMapsightConfig = {}, create
|
|
|
150
160
|
context.controllers = Object.assign(createDefaultControllers(context), context.createOptions.controllers);
|
|
151
161
|
// store enhancer
|
|
152
162
|
const uiStoreEnhancer = applyMiddleware(thunk);
|
|
163
|
+
// @ts-expect-error TODO
|
|
153
164
|
context.storeEnhancer = context.createOptions.storeEnhancer
|
|
154
165
|
? compose(uiStoreEnhancer, context.createOptions.storeEnhancer)
|
|
155
166
|
: uiStoreEnhancer;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAE,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,MAAM,cAAc,CAAC;AACjC,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAElC,OAAO,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAC,gCAAgC,EAAC,MAAM,kCAAkC,CAAC;AAElF,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAGxD,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACpC,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,CAAC,MAAM,gCAAgC,CAAC;AAEpD,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,wBAAwB,EAAC,MAAM,wBAAwB,CAAC;AAChE,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAW1C;;GAEG;AACH,MAAM,eAAe,GAA6B,CACjD,UAAU,EACV,MAAM,EACN,QAAQ,GAAG,KAAK,EACf,EAAE;IACH,OAAO,CAAC,IAAI,CAAC,sDAAsD,CAAC,CAAC;AACtE,CAAC,CAAC;AAEF,gEAAgE;AAChE,MAAM,oBAAoB,GAAkB;IAC3C,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,SAAS;IACpB,SAAS;IACT,SAAS,EAA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,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-title.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/app-title.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"app-title.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/app-title.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAIhD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,OAAO,GAAE;IACR,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACrB,GACJ,cAAc,CAmBhB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PluginInstance } from "../../types
|
|
1
|
+
import type { PluginInstance } from "../../types";
|
|
2
2
|
/**
|
|
3
3
|
* This plugin will select the feature identified by the defined get parameter and optionally remove parameters from the
|
|
4
4
|
* window.location using the history API.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-deep-link.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/feature-deep-link.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"feature-deep-link.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/feature-deep-link.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAsDhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,OAAO,GAAE;IACR,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,oBAAoB,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACxC,sBAAsB,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;CACrC,GACJ,cAAc,CAyHhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-deep-link.js","sourceRoot":"","sources":["../../../src/js/plugins/browser/feature-deep-link.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,WAAW,EACX,iBAAiB,GACjB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAC,8BAA8B,EAAC,MAAM,iDAAiD,CAAC;AAG/F,OAAO,uBAAuB,MAAM,oDAAoD,CAAC;AACzF,OAAO,0BAA0B,MAAM,uDAAuD,CAAC;AAC/F,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,CAAC,MAAM,oCAAoC,CAAC;AACxD,OAAO,EAAC,wBAAwB,EAAC,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"feature-deep-link.js","sourceRoot":"","sources":["../../../src/js/plugins/browser/feature-deep-link.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,WAAW,EACX,iBAAiB,GACjB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAC,8BAA8B,EAAC,MAAM,iDAAiD,CAAC;AAG/F,OAAO,uBAAuB,MAAM,oDAAoD,CAAC;AACzF,OAAO,0BAA0B,MAAM,uDAAuD,CAAC;AAC/F,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,CAAC,MAAM,oCAAoC,CAAC;AACxD,OAAO,EAAC,wBAAwB,EAAC,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAE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WAAW,EAAE,wBAAwB,CAAC,CAAC;YAClE,0BAA0B,CACzB,cAAc,EACd,wBAAwB,CACxB,CAAC;QACH,CAAC;KACD,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PluginInstance } from "../../types
|
|
1
|
+
import type { PluginInstance } from "../../types";
|
|
2
2
|
/**
|
|
3
3
|
* This plugin will synchronize some paths of the store with the browser's local storage and restored on initialization.
|
|
4
4
|
* See {CreateOptions.localStorageKey} and {CreateOptions.localStoragePaths} for configuration.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/local-storage.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/local-storage.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAShD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACpC,eAAwC,EACxC,iBAA4C,GAC5C;;;CAAK,GAAG,cAAc,CAgDtB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { View } from "../../config/constants/app
|
|
2
|
-
import type { PluginInstance } from "../../types
|
|
1
|
+
import type { View } from "../../config/constants/app";
|
|
2
|
+
import type { PluginInstance } from "../../types";
|
|
3
3
|
/**
|
|
4
4
|
* This plugin will request native fullscreen when entering one of the
|
|
5
5
|
* specified views.
|