@mapsight/ui 7.0.3 → 7.1.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/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.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 +3 -5
- 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-list/filter.js +2 -2
- package/dist/components/feature-list/filter.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.js +4 -4
- package/dist/components/feature-list/index.js.map +1 -1
- package/dist/components/feature-list-cycling/index.d.ts +3 -5
- 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-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-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/helping/app-context.d.ts +1 -1
- package/dist/components/helping/app-context.d.ts.map +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 +12 -11
- 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 +15 -0
- package/dist/components/layer-switcher/LayerSwitcherContainer.d.ts.map +1 -0
- package/dist/components/layer-switcher/{LayerSwticherContainer.js → LayerSwitcherContainer.js} +5 -9
- 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/wrapper.js +1 -1
- package/dist/components/layout/wrapper.js.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/list-toggle-button.js +2 -2
- package/dist/components/main-panel/list-toggle-button.js.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/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-right.js +2 -2
- package/dist/components/map-overlay/info-overlay-right.js.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/measure-distance-button.js +1 -1
- package/dist/components/map-overlay/measure-distance-button.js.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.js +1 -1
- package/dist/components/map-overlay/search-overlay.js.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-synced-interlay/index.d.ts +2 -5
- 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.js +1 -1
- package/dist/components/map-synced-interlay/map-synced-interlay.js.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.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/search/index.js +2 -2
- package/dist/components/search/index.js.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.js +1 -1
- package/dist/components/search/result.js.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/tag-switcher/TagSwitcher.d.ts +2 -2
- 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 +2 -5
- 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/view-toggle-button/index.d.ts +6 -5
- 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.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/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/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.map +1 -1
- package/dist/index.js +4 -3
- 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 +13 -13
- package/dist/plugins/browser-defaults.d.ts.map +1 -1
- package/dist/plugins/browser-defaults.js +13 -13
- package/dist/plugins/browser-defaults.js.map +1 -1
- 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/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/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 +1 -1
- package/dist/store/actions.js.map +1 -1
- package/dist/store/reducers.d.ts +222 -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 +274 -243
- package/dist/store/selectors.d.ts.map +1 -1
- package/dist/store/selectors.js +49 -68
- package/dist/store/selectors.js.map +1 -1
- package/dist/types.d.ts +50 -35
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -8
- package/src/js/components/{app.jsx → app.tsx} +9 -14
- package/src/js/components/feature-details-content/feature-details-content.jsx +2 -2
- package/src/js/components/feature-details-content/index.js +7 -11
- package/src/js/components/feature-list/filter.jsx +2 -2
- package/src/js/components/feature-list/hooks/useAutoloadFeatureSource.ts +1 -1
- package/src/js/components/feature-list/hooks/useFeatureListState.ts +17 -9
- package/src/js/components/feature-list/hooks/useRestoreDocumentScroll.js +1 -1
- package/src/js/components/feature-list/hooks/useSelectFeature.js +6 -6
- package/src/js/components/feature-list/index.jsx +4 -4
- package/src/js/components/feature-list-cycling/index.js +1 -1
- package/src/js/components/feature-list-sorting/index.js +6 -9
- package/src/js/components/feature-selection-info/index.tsx +3 -3
- package/src/js/components/feature-selection-info/{with-sticky-header.jsx → with-sticky-header.tsx} +23 -8
- package/src/js/components/helping/app-context.tsx +1 -1
- package/src/js/components/layer-switcher/GroupedLayerSwitcher.js +1 -1
- package/src/js/components/layer-switcher/{LayerSwitcher.js → LayerSwitcher.ts} +11 -4
- package/src/js/components/layer-switcher/{LayerSwticherContainer.jsx → LayerSwitcherContainer.tsx} +22 -14
- package/src/js/components/layer-switcher/LayerSwitcherEntry.ts +152 -0
- package/src/js/components/layer-switcher/index.ts +42 -0
- package/src/js/components/layout/wrapper.jsx +1 -1
- package/src/js/components/main-panel/context.tsx +71 -0
- package/src/js/components/main-panel/list-toggle-button.jsx +2 -2
- package/src/js/components/map-overlay/attribution.tsx +1 -1
- package/src/js/components/map-overlay/info-overlay-left.jsx +2 -2
- package/src/js/components/map-overlay/info-overlay-right.jsx +2 -2
- package/src/js/components/map-overlay/legend.tsx +1 -1
- package/src/js/components/map-overlay/measure-distance-button.tsx +1 -1
- package/src/js/components/map-overlay/mini-legend.jsx +2 -2
- package/src/js/components/map-overlay/region-selector.jsx +2 -2
- package/src/js/components/map-overlay/search-overlay.jsx +1 -1
- package/src/js/components/map-overlay/share-position-link-button.tsx +1 -1
- package/src/js/components/map-synced-interlay/index.ts +15 -0
- package/src/js/components/map-synced-interlay/map-synced-interlay.jsx +1 -1
- package/src/js/components/map-synced-interlay/tooltip.tsx +1 -1
- package/src/js/components/map.tsx +55 -0
- package/src/js/components/search/index.jsx +2 -2
- package/src/js/components/search/result-entry.jsx +1 -1
- package/src/js/components/search/result.jsx +1 -1
- package/src/js/components/switcher/{SwitcherEntry.jsx → SwitcherEntry.tsx} +47 -26
- package/src/js/components/tag-switcher/{TagSwitcher.jsx → TagSwitcher.tsx} +1 -2
- package/src/js/components/tag-switcher/{createTagSwitcherEntry.js → createTagSwitcherEntry.ts} +14 -16
- package/src/js/components/tag-switcher/createTagSwitcherHeader.ts +47 -0
- package/src/js/components/tag-switcher/index.ts +17 -0
- package/src/js/components/view-toggle-button/{index.js → index.ts} +13 -10
- package/src/js/components/view-toggle-button/view-toggle-button.jsx +1 -1
- package/src/js/helpers/components.ts +1 -1
- package/src/js/helpers/create-action-watcher.ts +3 -3
- package/src/js/hooks/useMountable.ts +10 -1
- package/src/js/hooks/useStickyHeader.ts +7 -8
- package/src/js/hooks/useUpdateMapSizeCallback.ts +1 -1
- package/src/js/hooks/useUpdateMapSizeOnRender.ts +1 -1
- package/src/js/hooks/useUpdateMapSizeOnTransitionEnd.ts +1 -1
- package/src/js/hooks/useUpdateMapSizeOnViewChange.ts +1 -1
- package/src/js/index.ts +4 -3
- package/src/js/plugins/browser/app-title.ts +1 -1
- package/src/js/plugins/browser/feature-deep-link.ts +4 -3
- package/src/js/plugins/browser/local-storage.ts +1 -1
- package/src/js/plugins/browser/native-fullscreen.ts +2 -2
- package/src/js/plugins/browser/no-scroll.ts +3 -2
- package/src/js/plugins/browser/partial-content-changed-event.ts +1 -1
- package/src/js/plugins/browser/piwik-track-feature-selection-event.ts +1 -1
- package/src/js/plugins/browser/piwik-track-fullscreen-toggle-event.ts +1 -1
- package/src/js/plugins/browser/search.ts +1 -1
- package/src/js/plugins/browser/share-position-link.ts +2 -2
- package/src/js/plugins/browser/toggle-mobile-views.ts +1 -1
- package/src/js/plugins/browser/user-geolocation.ts +20 -12
- package/src/js/plugins/browser/views.ts +1 -1
- package/src/js/plugins/browser-defaults.ts +14 -14
- package/src/js/plugins/common/feature-selection-details-url.ts +1 -1
- package/src/js/plugins/common/measure-distance.ts +4 -4
- package/src/js/plugins/common/ol-proxy.ts +1 -1
- package/src/js/plugins/common/render-await-feature-details-loaded.ts +3 -2
- package/src/js/plugins/common/render-await-list-feature-sources-loaded.ts +3 -2
- package/src/js/plugins/server/feature-deep-link.ts +1 -1
- package/src/js/plugins/server-defaults.ts +5 -5
- package/src/js/renderer/browser-dom.tsx +8 -4
- package/src/js/renderer/server-string.tsx +2 -2
- package/src/js/store/actions.ts +24 -10
- package/src/js/store/reducers.ts +3 -3
- package/src/js/store/selectors.ts +192 -158
- package/src/js/types.ts +65 -41
- 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/js/components/layer-switcher/LayerSwitcherEntry.js +0 -132
- package/src/js/components/layer-switcher/index.js +0 -47
- package/src/js/components/main-panel/context.jsx +0 -62
- package/src/js/components/map-synced-interlay/index.js +0 -17
- package/src/js/components/map.jsx +0 -37
- package/src/js/components/tag-switcher/createTagSwitcherHeader.js +0 -34
- package/src/js/components/tag-switcher/index.js +0 -20
- package/src/js/global.d.ts +0 -7
- /package/src/js/components/view-toggle-button/{mobile-button.jsx → mobile-button.tsx} +0 -0
- /package/src/js/components/view-toggle-button/{viewport-button.jsx → viewport-button.tsx} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { connect } from "react-redux";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { createTagGroupVisibleSelector } from "../../store/selectors.js";
|
|
2
|
+
import { setTagGroupVisible } from "../../store/actions";
|
|
3
|
+
import { createTagGroupVisibleSelector, } from "../../store/selectors";
|
|
5
4
|
import SwitcherHeader from "../switcher/SwitcherHeader";
|
|
6
5
|
export default function createTagSwitcherHeader(featureSourceId, tagGroup) {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const visibilitySelector = createTagGroupVisibleSelector(featureSourceId, tagGroup);
|
|
7
|
+
return connect((state) => ({
|
|
8
|
+
visibility: visibilitySelector(state),
|
|
9
9
|
}), null, ({ visibility }, { dispatch }, { toggleable = false, ...ownProps }) => ({
|
|
10
10
|
label: tagGroup,
|
|
11
11
|
active: !toggleable || visibility,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTagSwitcherHeader.js","sourceRoot":"","sources":["../../../src/js/components/tag-switcher/createTagSwitcherHeader.
|
|
1
|
+
{"version":3,"file":"createTagSwitcherHeader.js","sourceRoot":"","sources":["../../../src/js/components/tag-switcher/createTagSwitcherHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAEN,6BAA6B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,cAAc,MAAM,4BAA4B,CAAC;AAMxD,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAC9C,eAAuB,EACvB,QAAgB;IAEhB,MAAM,kBAAkB,GAAG,6BAA6B,CACvD,eAAe,EACf,QAAQ,CACR,CAAC;IACF,OAAO,OAAO,CACb,CAAC,KAAqB,EAAE,EAAE,CAAC,CAAC;QAC3B,UAAU,EAAE,kBAAkB,CAAC,KAAK,CAAC;KACrC,CAAC,EACF,IAAI,EACJ,CACC,EAAC,UAAU,EAAC,EACZ,EAAC,QAAQ,EAAC,EACV,EAAC,UAAU,GAAG,KAAK,EAAE,GAAG,QAAQ,EAAQ,EACvC,EAAE,CAAC,CAAC;QACL,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,CAAC,UAAU,IAAI,UAAU;QACjC,YAAY,EAAE,UAAU;YACvB,CAAC,CAAC,GAAG,EAAE,CACL,QAAQ,CACP,kBAAkB,CACjB,eAAe,EACf,QAAQ,EACR,CAAC,UAAU,CACX,CACD;YACH,CAAC,CAAC,SAAS;QACZ,GAAG,QAAQ;KACX,CAAC,CACF,CAAC,cAAc,CAAC,CAAC;AACnB,CAAC"}
|
|
@@ -4,11 +4,8 @@ declare const _default: import("react-redux").ConnectedComponent<import("react")
|
|
|
4
4
|
toggleableGroups?: boolean | undefined;
|
|
5
5
|
sortTags?: boolean | undefined;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element>, {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[x: symbol]: JSX.LibraryManagedAttributes<C, import("react-redux").GetProps<C>>;
|
|
10
|
-
context?: import("react-redux/es/components/Context").ReactReduxContextInstance | undefined;
|
|
11
|
-
store?: import("redux").Store | undefined;
|
|
7
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction> | null> | undefined;
|
|
8
|
+
store?: import("@reduxjs/toolkit").Store | undefined;
|
|
12
9
|
}>;
|
|
13
10
|
export default _default;
|
|
14
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/tag-switcher/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/tag-switcher/index.ts"],"names":[],"mappings":";;;;;;;;;AAWA,wBAKiB"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { connect } from "react-redux";
|
|
2
|
-
import {
|
|
3
|
-
import { tagSwitcherFeatureSourceIdSelector, tagSwitcherSortTags, tagSwitcherTagsSelector, tagSwitcherToggleableGroups, } from "../../store/selectors.js";
|
|
2
|
+
import { tagSwitcherFeatureSourceIdSelector, tagSwitcherSortTags, tagSwitcherTagsSelector, tagSwitcherToggleableGroups, } from "../../store/selectors";
|
|
4
3
|
import TagSwitcher from "./TagSwitcher";
|
|
5
|
-
export default connect(
|
|
6
|
-
featureSourceId: tagSwitcherFeatureSourceIdSelector,
|
|
7
|
-
groupedTagData: tagSwitcherTagsSelector,
|
|
8
|
-
toggleableGroups: tagSwitcherToggleableGroups,
|
|
9
|
-
sortTags: tagSwitcherSortTags,
|
|
4
|
+
export default connect((state) => ({
|
|
5
|
+
featureSourceId: tagSwitcherFeatureSourceIdSelector(state),
|
|
6
|
+
groupedTagData: tagSwitcherTagsSelector(state),
|
|
7
|
+
toggleableGroups: tagSwitcherToggleableGroups(state),
|
|
8
|
+
sortTags: tagSwitcherSortTags(state),
|
|
10
9
|
}))(TagSwitcher);
|
|
11
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/tag-switcher/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/tag-switcher/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAGpC,OAAO,EACN,kCAAkC,EAClC,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,eAAe,OAAO,CAAC,CAAC,KAAqB,EAAE,EAAE,CAAC,CAAC;IAClD,eAAe,EAAE,kCAAkC,CAAC,KAAK,CAAC;IAC1D,cAAc,EAAE,uBAAuB,CAAC,KAAK,CAAC;IAC9C,gBAAgB,EAAE,2BAA2B,CAAC,KAAK,CAAC;IACpD,QAAQ,EAAE,mBAAmB,CAAC,KAAK,CAAC;CACpC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -6,11 +6,12 @@ declare const _default: import("react-redux").ConnectedComponent<import("react")
|
|
|
6
6
|
viewModifierClassPrefix?: string | undefined;
|
|
7
7
|
style?: {} | undefined;
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element>, {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
style?: {} | undefined;
|
|
10
|
+
additionalClasses?: string | undefined;
|
|
11
|
+
baseClass?: string | undefined;
|
|
12
|
+
viewModifierClassPrefix?: string | undefined;
|
|
13
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("@reduxjs/toolkit").UnknownAction> | null> | undefined;
|
|
14
|
+
store?: import("@reduxjs/toolkit").Store | undefined;
|
|
14
15
|
}>;
|
|
15
16
|
export default _default;
|
|
16
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAiBA,wBAwBoB"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { connect } from "react-redux";
|
|
2
|
-
import { createStructuredSelector } from "reselect";
|
|
3
2
|
import { deselectAll } from "@mapsight/core/lib/feature-selections/actions";
|
|
4
3
|
import { FEATURE_SELECTIONS } from "../../config/constants/controllers";
|
|
5
4
|
import { FEATURE_SELECTION_SELECT } from "../../config/feature/selections";
|
|
6
|
-
import { setView } from "../../store/actions
|
|
7
|
-
import { isMapOutOfViewportSelector, isViewMobile, viewSelector, viewToggleOptionsSelector, } from "../../store/selectors
|
|
5
|
+
import { setView } from "../../store/actions";
|
|
6
|
+
import { isMapOutOfViewportSelector, isViewMobile, viewSelector, viewToggleOptionsSelector, } from "../../store/selectors";
|
|
8
7
|
import ViewToggleButton from "./view-toggle-button";
|
|
9
|
-
export default connect(
|
|
10
|
-
view: viewSelector,
|
|
11
|
-
isMapOutOfViewport: isMapOutOfViewportSelector,
|
|
12
|
-
options: viewToggleOptionsSelector,
|
|
8
|
+
export default connect((state) => ({
|
|
9
|
+
view: viewSelector(state),
|
|
10
|
+
isMapOutOfViewport: isMapOutOfViewportSelector(state),
|
|
11
|
+
options: viewToggleOptionsSelector(state),
|
|
13
12
|
}), null, ({ options, ...stateProps }, { dispatch }, ownProps) => ({
|
|
14
13
|
...stateProps,
|
|
15
14
|
dispatch: dispatch,
|
|
16
15
|
changeView: (currentView, nextView) => {
|
|
17
16
|
dispatch(setView(nextView));
|
|
18
|
-
if (options
|
|
17
|
+
if (options?.deselectFeaturesOnToggle &&
|
|
18
|
+
isViewMobile(currentView)) {
|
|
19
19
|
dispatch(deselectAll(FEATURE_SELECTIONS, FEATURE_SELECTION_SELECT));
|
|
20
20
|
}
|
|
21
21
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,WAAW,EAAC,MAAM,+CAA+C,CAAC;AAG1E,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAC,wBAAwB,EAAC,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EACN,0BAA0B,EAC1B,YAAY,EACZ,YAAY,EACZ,yBAAyB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AAEpD,eAAe,OAAO,CACrB,CAAC,KAAqB,EAAE,EAAE,CAAC,CAAC;IAC3B,IAAI,EAAE,YAAY,CAAC,KAAK,CAAC;IACzB,kBAAkB,EAAE,0BAA0B,CAAC,KAAK,CAAC;IACrD,OAAO,EAAE,yBAAyB,CAAC,KAAK,CAAC;CACzC,CAAC,EACF,IAAI,EACJ,CAAC,EAAC,OAAO,EAAE,GAAG,UAAU,EAAC,EAAE,EAAC,QAAQ,EAAC,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;IACpD,GAAG,UAAU;IACb,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,CAAC,WAAiB,EAAE,QAAc,EAAE,EAAE;QACjD,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QAE5B,IACC,OAAO,EAAE,wBAAwB;YACjC,YAAY,CAAC,WAAW,CAAC,EACxB,CAAC;YACF,QAAQ,CACP,WAAW,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,CACzD,CAAC;QACH,CAAC;IACF,CAAC;IACD,GAAG,QAAQ;CACX,CAAC,CACF,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/mobile-button.
|
|
1
|
+
{"version":3,"file":"mobile-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/mobile-button.tsx"],"names":[],"mappings":"AAEA,iBAAS,sBAAsB,4CAQ9B;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-button.js","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/mobile-button.
|
|
1
|
+
{"version":3,"file":"mobile-button.js","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/mobile-button.tsx"],"names":[],"mappings":";AAAA,OAAO,gBAAgB,MAAM,SAAS,CAAC;AAEvC,SAAS,sBAAsB;IAC9B,OAAO,CACN,KAAC,gBAAgB,IAChB,SAAS,EAAC,yBAAyB,EACnC,iBAAiB,EAAC,gFAAgF,EAClG,uBAAuB,EAAC,+CAA+C,GACtE,CACF,CAAC;AACH,CAAC;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { memo, useCallback } from "react";
|
|
|
3
3
|
import { useSelector } from "react-redux";
|
|
4
4
|
import { VIEW_DESKTOP, VIEW_FULLSCREEN, VIEW_MAP_ONLY, VIEW_MOBILE, } from "../../config/constants/app";
|
|
5
5
|
import { translate } from "../../helpers/i18n";
|
|
6
|
-
import { viewSelector } from "../../store/selectors
|
|
6
|
+
import { viewSelector } from "../../store/selectors";
|
|
7
7
|
function getOtherView(view) {
|
|
8
8
|
switch (view) {
|
|
9
9
|
case VIEW_MAP_ONLY:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-toggle-button.js","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/view-toggle-button.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAExC,OAAO,EACN,YAAY,EACZ,eAAe,EACf,aAAa,EACb,WAAW,GACX,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"view-toggle-button.js","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/view-toggle-button.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAExC,OAAO,EACN,YAAY,EACZ,eAAe,EACf,aAAa,EACb,WAAW,GACX,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAEnD,SAAS,YAAY,CAAC,IAAI;IACzB,QAAQ,IAAI,EAAE,CAAC;QACd,KAAK,aAAa;YACjB,OAAO,WAAW,CAAC;QACpB,KAAK,eAAe;YACnB,OAAO,YAAY,CAAC;QACrB,KAAK,YAAY;YAChB,OAAO,eAAe,CAAC;QACxB,KAAK,WAAW,CAAC;QACjB;YACC,OAAO,aAAa,CAAC;IACvB,CAAC;AACF,CAAC;AAED,SAAS,YAAY,CAAC,IAAI;IACzB,OAAO,SAAS,CAAC,iCAAiC,GAAG,IAAI,CAAC,CAAC;AAC5D,CAAC;AAED,SAAS,QAAQ,CAAC,IAAI;IACrB,OAAO,SAAS,CAAC,6BAA6B,GAAG,IAAI,CAAC,CAAC;AACxD,CAAC;AAED,SAAS,gBAAgB,CAAC,EACzB,kBAAkB,GAAG,KAAK,EAC1B,UAAU,EAEV,iBAAiB,GAAG,EAAE,EACtB,SAAS,GAAG,QAAQ,EACpB,uBAAuB,GAAG,UAAU,EAEpC,KAAK,GAAG,EAAE,GACV;IACA,MAAM,IAAI,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IACvC,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAErC,MAAM,OAAO,GAAG,WAAW,CAC1B,SAAS,OAAO,CAAC,CAAC;QACjB,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,UAAU,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC7B,CAAC,EACD,CAAC,UAAU,EAAE,IAAI,EAAE,SAAS,CAAC,CAC7B,CAAC;IAEF,IAAI,SAAS,GAAG,GAAG,SAAS,IAAI,uBAAuB,GAAG,IAAI,IAAI,iBAAiB,EAAE,CAAC;IACtF,IAAI,kBAAkB,EAAE,CAAC;QACxB,SAAS,IAAI,IAAI,uBAAuB,iBAAiB,CAAC;IAC3D,CAAC;IAED,OAAO,CACN,iBACC,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,gBACJ,YAAY,CAAC,SAAS,CAAC,YAEnC,eAAM,SAAS,EAAE,GAAG,SAAS,SAAS,YAAG,QAAQ,CAAC,SAAS,CAAC,GAAQ,GAC5D,CACT,CAAC;AACH,CAAC;AAED,eAAe,IAAI,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewport-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/viewport-button.
|
|
1
|
+
{"version":3,"file":"viewport-button.d.ts","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/viewport-button.tsx"],"names":[],"mappings":"AAEA,iBAAS,wBAAwB,4CAQhC;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewport-button.js","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/viewport-button.
|
|
1
|
+
{"version":3,"file":"viewport-button.js","sourceRoot":"","sources":["../../../src/js/components/view-toggle-button/viewport-button.tsx"],"names":[],"mappings":";AAAA,OAAO,gBAAgB,MAAM,SAAS,CAAC;AAEvC,SAAS,wBAAwB;IAChC,OAAO,CACN,KAAC,gBAAgB,IAChB,SAAS,EAAC,qBAAqB,EAC/B,iBAAiB,EAAC,2EAA2E,EAC7F,uBAAuB,EAAC,2CAA2C,GAClE,CACF,CAAC;AACH,CAAC;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -21,6 +21,6 @@ export type MapsightUiComponents = {
|
|
|
21
21
|
};
|
|
22
22
|
export declare const ComponentsContext: import("react").Context<MapsightUiComponents>;
|
|
23
23
|
/** @deprecated */
|
|
24
|
-
export declare function useContextComponentWithFallback<N extends keyof ComponentPropsWithFallback>(componentName: N): (fallback
|
|
24
|
+
export declare function useContextComponentWithFallback<N extends keyof ComponentPropsWithFallback>(componentName: N): (fallback?: ReactNode, props?: ComponentPropsWithFallback[N]) => ReactNode;
|
|
25
25
|
export declare function makeReplaceableComponent<N extends keyof ComponentProps>(componentName: N, Component: ComponentType<ComponentProps[N]>): ComponentType<ComponentProps[N]>;
|
|
26
26
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/js/helpers/components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAIpD,MAAM,WAAW,cAAc;CAE9B;AAED,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,OAAO,IAAI,CAAC,GAAG;IAChD,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,kBAAkB;AAClB,MAAM,MAAM,0BAA0B,GAAG;IACxC,eAAe,EAAE,iBAAiB,CAAC;IACnC,eAAe,EAAE,iBAAiB,CAAC;IACnC,aAAa,EAAE,iBAAiB,CAAC;IACjC,iBAAiB,EAAE,iBAAiB,CAAC;I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IAAI,MAAM,cAAc,CAAC,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;CAC9D,GAAG;KACF,CAAC,IAAI,MAAM,0BAA0B,CAAC,CAAC,EAAE,aAAa,CACtD,0BAA0B,CAAC,CAAC,CAAC,CAC7B;CACD,CAAC;AAEF,eAAO,MAAM,iBAAiB,+CAA0C,CAAC;AAGzE,kBAAkB;AAClB,wBAAgB,+BAA+B,CAC9C,CAAC,SAAS,MAAM,0BAA0B,EAE1C,aAAa,EAAE,CAAC,GACd,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,0BAA0B,CAAC,CAAC,CAAC,KAAK,SAAS,CAW5E;AAED,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,MAAM,cAAc,EACtE,aAAa,EAAE,CAAC,EAChB,SAAS,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,GACzC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAUlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-action-watcher.d.ts","sourceRoot":"","sources":["../../src/js/helpers/create-action-watcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"create-action-watcher.d.ts","sourceRoot":"","sources":["../../src/js/helpers/create-action-watcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAM/D,KAAK,MAAM,GAAG;IACb,OAAO,EAAE,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE,aAAa,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAC,CAAC,CAAC;CAC7C,CAAC;AAGF,MAAM,CAAC,OAAO,UAAU,mBAAmB,IAAI,MAAM,CAqBpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-action-watcher.js","sourceRoot":"","sources":["../../src/js/helpers/create-action-watcher.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"create-action-watcher.js","sourceRoot":"","sources":["../../src/js/helpers/create-action-watcher.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAC,aAAa,EAAC,MAAM,8BAA8B,CAAC;AAC3D,OAAO,cAAc,MAAM,qCAAqC,CAAC;AAOjE,0CAA0C;AAC1C,MAAM,CAAC,OAAO,UAAU,mBAAmB;IAC1C,MAAM,OAAO,GAAoB;QAChC,OAAO,EAAE,IAAI;KACb,CAAC;IAEF,OAAO,CAAC,QAAQ,GAAG,eAAe,CACjC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,MAAiB,EAAE,EAAE;QACrD,MAAM,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;QAEtC,IAAI,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YACpC,MAAM,EAAC,OAAO,EAAC,GAAG,OAAO,CAAC;YAC1B,cAAc,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAC3C,OAAO,CAAC,YAAY,CAAC,CACrB,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC,CACD,CAAC;IAEF,OAAO,OAAiB,CAAC;AAC1B,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,SA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AC,4BAA4B,CAAC,CAAC;YAC3C,OAAO;QACR,CAAC;QAED,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,OAAO,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;YACxC,OAAO;QACR,CAAC;QAED,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACxB,OAAO,GAAG,EAAE;YACX,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC3B,CAAC,CAAC;IACH,CAAC,EAAE,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":"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C,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.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/js/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,KAAK,KAAK,EAAC,MAAM,sBAAsB,CAAC;AAGhD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,sCAAsC,CAAC;AAOhF,OAAO,KAAK,EACX,aAAa,EACb,iBAAiB,EAMjB,MAAM,SAAS,CAAC;AA8GjB;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CACrB,SAAS,EAAE,WAAW,GAAG,IAAI,EAC7B,aAAa,EAAE,qBAAqB,EACpC,kBAAkB,GAAE,OAAO,CAAC,KAAK,CAAM,EACvC,aAAa,GAAE,aAAkB,GAC/B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/js/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,KAAK,KAAK,EAAC,MAAM,sBAAsB,CAAC;AAGhD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,sCAAsC,CAAC;AAOhF,OAAO,KAAK,EACX,aAAa,EACb,iBAAiB,EAMjB,MAAM,SAAS,CAAC;AA8GjB;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CACrB,SAAS,EAAE,WAAW,GAAG,IAAI,EAC7B,aAAa,EAAE,qBAAqB,EACpC,kBAAkB,GAAE,OAAO,CAAC,KAAK,CAAM,EACvC,aAAa,GAAE,aAAkB,GAC/B,iBAAiB,CAgHnB"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
5
|
import { layerIdsExternalSwitcherSelector } from "@mapsight/core/lib/map/selectors";
|
|
6
6
|
import * as nonNull from "@mapsight/lib-js/nonNullable";
|
|
@@ -10,7 +10,7 @@ import * as c from "./config/constants/controllers";
|
|
|
10
10
|
import { createDefaultControllers } from "./controllers/defaults";
|
|
11
11
|
import uiReducers from "./store/reducers";
|
|
12
12
|
/**
|
|
13
|
-
* Default mapsight ui renderer (Does nothing
|
|
13
|
+
* Default mapsight ui renderer (Does nothing but log a warning!).
|
|
14
14
|
*/
|
|
15
15
|
const defaultRenderer = (_container, _props, _hydrate = false) => {
|
|
16
16
|
console.info("create has to be passed a renderer to render the app");
|
|
@@ -150,6 +150,7 @@ export function create(container, styleFunction, baseMapsightConfig = {}, create
|
|
|
150
150
|
context.controllers = Object.assign(createDefaultControllers(context), context.createOptions.controllers);
|
|
151
151
|
// store enhancer
|
|
152
152
|
const uiStoreEnhancer = applyMiddleware(thunk);
|
|
153
|
+
// @ts-expect-error TODO
|
|
153
154
|
context.storeEnhancer = context.createOptions.storeEnhancer
|
|
154
155
|
? compose(uiStoreEnhancer, context.createOptions.storeEnhancer)
|
|
155
156
|
: 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,gCAAgC,EAAC,MAAM,kCAAkC,CAAC;AAGlF,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;AACpD,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;AACh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Ac,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;AAE5C,OAAO,EAAC,YAAY,EAAE,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAGjE,MAAM,kCAAkC,GAAG,CAAC,CAAC,kBAAkB,CAAC;AAChE,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AACzD,MAAM,mBAAmB,GAAG,SAAS,CAAC;AACtC,M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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.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-fullscreen.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/native-fullscreen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM
|
|
1
|
+
{"version":3,"file":"native-fullscreen.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/native-fullscreen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAEhD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,CACnD,OAAO,GAAE;IACR,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;CACpB,GACJ,cAAc,CA2DhB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { State } from "@mapsight/core/types";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RootStateSlice } from "../../store/selectors";
|
|
3
|
+
import type { PluginInstance } from "../../types";
|
|
3
4
|
/**
|
|
4
5
|
* create a no-scroll-handler
|
|
5
6
|
*
|
|
@@ -9,9 +10,7 @@ import type { PluginInstance, UiState } from "../../types.ts";
|
|
|
9
10
|
*/
|
|
10
11
|
export declare function createNoScrollHandler(selector: (state: unknown) => boolean, noScrollCssClass?: string): (state: State, forceAllow: boolean) => boolean;
|
|
11
12
|
export declare const defaultNoScrollHandler: (state: State, forceAllow: boolean) => boolean;
|
|
12
|
-
export declare const defaultNoScrollObserveSelector: (state:
|
|
13
|
-
app: UiState;
|
|
14
|
-
}) => import("../../config/constants/app").View;
|
|
13
|
+
export declare const defaultNoScrollObserveSelector: (state: RootStateSlice) => import("../../config/constants/app").View;
|
|
15
14
|
/**
|
|
16
15
|
* This plugin will observe the state for changes to the view (default) and will call the defined handler.
|
|
17
16
|
* By default, this will disable scrolling the document and add a class to the document element
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-scroll.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/no-scroll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"no-scroll.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/no-scroll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,sBAAsB,CAAC;AAKhD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAE1D,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAMhD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACpC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,EACrC,gBAAgB,SAAuB,IAE/B,OAAO,KAAK,EAAE,YAAY,OAAO,aAezC;AAED,eAAO,MAAM,sBAAsB,UAjBnB,KAAK,cAAc,OAAO,YAsBzC,CAAC;AACF,eAAO,MAAM,8BAA8B,sEAAe,CAAC;AAE3D;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,OAAO,GAAE;IACR,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC;IACpD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CACzD,GACJ,cAAc,CAyBhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-scroll.js","sourceRoot":"","sources":["../../../src/js/plugins/browser/no-scroll.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,kBAAkB,EAAC,MAAM,mCAAmC,CAAC;AAErE,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"no-scroll.js","sourceRoot":"","sources":["../../../src/js/plugins/browser/no-scroll.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,kBAAkB,EAAC,MAAM,mCAAmC,CAAC;AAErE,OAAO,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,4BAA4B,CAAC;AAE1E,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAGnD,SAAS,mBAAmB,CAAC,CAAa;IACzC,CAAC,CAAC,cAAc,EAAE,CAAC;AACpB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CACpC,QAAqC,EAC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