@geops/rvf-mobility-web-component 0.1.56 → 0.1.58
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/CHANGELOG.md +31 -0
- package/docutils.js +1 -1
- package/global.d.ts +1 -0
- package/iframe.html +15 -0
- package/index.html +2 -1
- package/index.js +278 -330
- package/package.json +16 -17
- package/src/{RvfExportMenu/RvfExportMenu.tsx → ExportMenu/ExportMenu.tsx} +11 -11
- package/src/ExportMenu/index.tsx +1 -0
- package/src/{RvfExportMenuButton/RvfExportMenuButton.tsx → ExportMenuButton/ExportMenuButton.tsx} +5 -5
- package/src/ExportMenuButton/index.tsx +1 -0
- package/src/FeatureDetails/FeatureDetails.tsx +57 -0
- package/src/FeatureDetails/index.ts +1 -0
- package/src/FeaturesInfosListener/FeaturesInfosListener.tsx +73 -0
- package/src/FeaturesInfosListener/index.tsx +1 -0
- package/src/GeolocationButton/GeolocationButton.tsx +0 -1
- package/src/LayerTree/LayerTree.tsx +58 -0
- package/src/LayerTree/TreeItem/TreeItem.tsx +151 -0
- package/src/LayerTree/TreeItem/index.tsx +1 -0
- package/src/LayerTree/index.tsx +1 -0
- package/src/LayerTree/layersTreeContext.ts +4 -0
- package/src/LayerTree/layersTreeReducer.ts +158 -0
- package/src/{RvfLayerTreeButton/RvfLayerTreeButton.tsx → LayerTreeButton/LayerTreeButton.tsx} +5 -5
- package/src/LayerTreeButton/index.tsx +1 -0
- package/src/{RvfTopics/RvfTopics.tsx → LayerTreeMenu/LayerTreeMenu.tsx} +17 -13
- package/src/LayerTreeMenu/index.tsx +1 -0
- package/src/LayoutState/LayoutState.tsx +277 -0
- package/src/LayoutState/index.tsx +1 -0
- package/src/LinesNetworkPlanDetails/LinesNetworkPlanDetails.tsx +292 -0
- package/src/LinesNetworkPlanDetails/index.tsx +1 -0
- package/src/{RvfLineNetworkPlanLayer/RvfLineNetworkPlanLayer.tsx → LinesNetworkPlanLayer/LinesNetworkPlanLayer.tsx} +7 -9
- package/src/LinesNetworkPlanLayer/index.tsx +1 -0
- package/src/MobilityMap/MobilityMap.tsx +274 -60
- package/src/MobilityMap/MobilityMapAttributes.ts +27 -43
- package/src/NotificationDetails/NotificationDetails.tsx +468 -0
- package/src/NotificationDetails/index.ts +1 -0
- package/src/{NotificationLayer/NotificationLayer.tsx → NotificationsLayer/NotificationsLayer.tsx} +9 -4
- package/src/NotificationsLayer/index.tsx +1 -0
- package/src/Overlay/Overlay.tsx +1 -6
- package/src/OverlayContent/OverlayContent.tsx +87 -0
- package/src/OverlayContent/index.ts +1 -0
- package/src/OverlayDetails/OverlayDetails.tsx +47 -0
- package/src/OverlayDetails/index.ts +1 -0
- package/src/OverlayDetailsFooter/OverlayDetailsFooter.tsx +51 -0
- package/src/OverlayDetailsFooter/index.tsx +1 -0
- package/src/OverlayDetailsHeader/OverlayDetailsHeader.tsx +35 -0
- package/src/OverlayDetailsHeader/index.ts +1 -0
- package/src/OverlayFooter/OverlayFooter.tsx +41 -0
- package/src/OverlayFooter/index.tsx +1 -0
- package/src/OverlayHeader/OverlayHeader.tsx +44 -0
- package/src/OverlayHeader/index.tsx +1 -0
- package/src/PermalinkInput/PermalinkInput.tsx +28 -0
- package/src/PermalinkInput/index.tsx +1 -0
- package/src/RouteSchedule/RouteSchedule.tsx +22 -18
- package/src/RvfFeatureDetails/RvfFeatureDetails.tsx +22 -50
- package/src/RvfFeatureDetails/RvfLineNetworkDetails/RvfLineNetworkDetails.tsx +108 -104
- package/src/RvfFeatureDetails/RvfNotificationDetails/RvfNotificationDetails.tsx +189 -154
- package/src/RvfFeatureDetails/RvfSharedMobilityDetail/RvfSharedMobilityDetails.tsx +12 -14
- package/src/RvfFeatureDetailsTitle/RvfFeatureDetailsTitle.tsx +5 -5
- package/src/RvfMainLinkButton/RvfMainLinkButton.tsx +62 -0
- package/src/RvfMainLinkButton/index.tsx +1 -0
- package/src/RvfMobilityMap/RvfMobilityMap.tsx +182 -394
- package/src/RvfOverlayContent/RvfOverlayContent.tsx +2 -2
- package/src/RvfPoisLayer/RvfPoisLayer.tsx +2 -2
- package/src/RvfSearch/RvfSearch.tsx +1 -1
- package/src/RvfSellingPointsLayer/RvfSellingPointsLayer.tsx +2 -2
- package/src/RvfSharedMobilityLayerGroup/RvfSharedMobilityLayerGroup.tsx +23 -23
- package/src/RvfTarifZonenLayer/RvfTarifZonenLayer.tsx +2 -2
- package/src/Search/Search.tsx +11 -2
- package/src/{RvfSearchButton/RvfSearchButton.tsx → SearchButton/SearchButton.tsx} +5 -5
- package/src/SearchButton/index.tsx +1 -0
- package/src/ShadowOverflow/ShadowOverflow.tsx +20 -0
- package/src/ShadowOverflow/index.tsx +1 -0
- package/src/{RvfShare/RvfPermalinkButton/RvfPermalinkButton.tsx → ShareMenu/PermalinkButton/PermalinkButton.tsx} +4 -4
- package/src/ShareMenu/PermalinkButton/index.tsx +1 -0
- package/src/{RvfShare/RvfShare.tsx → ShareMenu/ShareMenu.tsx} +9 -11
- package/src/ShareMenu/index.tsx +1 -0
- package/src/{RvfShareMenuButton/RvfShareMenuButton.tsx → ShareMenuButton/ShareMenuButton.tsx} +6 -6
- package/src/ShareMenuButton/index.tsx +1 -0
- package/src/SingleClickListener/SingleClickListener.tsx +55 -113
- package/src/SingleClickListener/index.tsx +1 -1
- package/src/Station/Station.tsx +10 -3
- package/src/StationsLayer/StationsLayer.tsx +0 -1
- package/src/StopsSearch/StopsSearch.tsx +3 -4
- package/src/StopsSearch/index.tsx +2 -1
- package/src/WindowMessageListener/WindowMessageListener.tsx +7 -1
- package/src/{RvfZoomButtons/RvfZoomButtons.tsx → ZoomButtons/ZoomButtons.tsx} +9 -12
- package/src/ZoomButtons/index.tsx +1 -0
- package/src/icons/Geolocation/airport-14-svgrepo-com.svg +41 -0
- package/src/ui/Button/Button.tsx +9 -2
- package/src/ui/Checkbox/Checkbox.tsx +32 -0
- package/src/ui/Checkbox/index.tsx +1 -0
- package/src/ui/IconButton/IconButton.tsx +24 -4
- package/src/ui/Input/Input.tsx +17 -0
- package/src/ui/Input/index.tsx +1 -0
- package/src/ui/InputCopy/InputCopy.tsx +86 -0
- package/src/ui/InputCopy/index.tsx +1 -0
- package/src/ui/Select/Select.tsx +24 -0
- package/src/ui/Select/index.tsx +1 -0
- package/src/utils/constants.ts +43 -42
- package/src/utils/hooks/useInitialLayersVisiblity.tsx +1 -1
- package/src/utils/hooks/useLayerConfig.tsx +2 -2
- package/src/utils/hooks/useLayersConfig.tsx +3 -3
- package/src/utils/hooks/useMapContext.tsx +67 -8
- package/src/utils/hooks/useRvfContext.tsx +0 -44
- package/src/NotificationLayer/index.tsx +0 -1
- package/src/RvfEmbedNavigation/DragPanWarning.ts +0 -124
- package/src/RvfEmbedNavigation/RvfEmbedNavigation.tsx +0 -51
- package/src/RvfEmbedNavigation/index.js +0 -1
- package/src/RvfExportMenu/index.tsx +0 -1
- package/src/RvfExportMenuButton/index.tsx +0 -1
- package/src/RvfFloatingMenu/RvfFloatingMenu.tsx +0 -44
- package/src/RvfFloatingMenu/index.tsx +0 -1
- package/src/RvfLayerTreeButton/index.tsx +0 -1
- package/src/RvfLineNetworkPlanLayer/index.tsx +0 -1
- package/src/RvfPermalink/RvfPermalink.tsx +0 -18
- package/src/RvfPermalink/index.tsx +0 -1
- package/src/RvfSearchButton/index.tsx +0 -1
- package/src/RvfShare/RvfPermalinkButton/index.tsx +0 -1
- package/src/RvfShare/index.tsx +0 -1
- package/src/RvfShareMenuButton/index.tsx +0 -1
- package/src/RvfTopics/index.tsx +0 -1
- package/src/RvfZoomButtons/index.tsx +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.58](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.57...v0.1.58) (2025-10-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* mate template of main link works ([3c77cbb](https://github.com/geops/rvf-mobility-web-component/commit/3c77cbb14765233286318e7d512412821ca6d87c))
|
|
11
|
+
* mate template of main link works ([1e32153](https://github.com/geops/rvf-mobility-web-component/commit/1e32153ad3440efba787a2efc5189a38d5b69e89))
|
|
12
|
+
|
|
13
|
+
### [0.1.57](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.56...v0.1.57) (2025-10-01)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add layer tree, share, print, and new toolbar ([#26](https://github.com/geops/rvf-mobility-web-component/issues/26)) ([475c202](https://github.com/geops/rvf-mobility-web-component/commit/475c202b4eceffb8a4fe83b3e12ac01fb3ad2f03))
|
|
19
|
+
* add ui components ([69f79a2](https://github.com/geops/rvf-mobility-web-component/commit/69f79a269e9bc4057379dbe90f413d7cad64985d))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* add icons for search ([a7dc19d](https://github.com/geops/rvf-mobility-web-component/commit/a7dc19d57be0f2e953e4eaf4444162946a659fac))
|
|
25
|
+
* add NoRealtimeIcon ([3a4441f](https://github.com/geops/rvf-mobility-web-component/commit/3a4441faf8b5c1d508a06c7451411d0370fefc43))
|
|
26
|
+
* display no realtime icon ([5a6c886](https://github.com/geops/rvf-mobility-web-component/commit/5a6c88620566134a30a9d224db32c51f8d07929e))
|
|
27
|
+
* do not load all notifications when there is preview notifications ([8716766](https://github.com/geops/rvf-mobility-web-component/commit/8716766fdf26a9db04cc2923c899d8aa0dbd0114))
|
|
28
|
+
* fix tailwindcss 4 variables defs ([c063b72](https://github.com/geops/rvf-mobility-web-component/commit/c063b72597ecf4391e34bddf6f0003aeeda4b243))
|
|
29
|
+
* generate better documentation and split code in components to make it more reusable ([#23](https://github.com/geops/rvf-mobility-web-component/issues/23)) ([7ee2c3c](https://github.com/geops/rvf-mobility-web-component/commit/7ee2c3cbcbc928c77ceb608b83d98d134170be51))
|
|
30
|
+
* make search by default ([eca606f](https://github.com/geops/rvf-mobility-web-component/commit/eca606fc84692d415ba95d780cbf88e59e94f170))
|
|
31
|
+
* merge upstream ([a45bcd7](https://github.com/geops/rvf-mobility-web-component/commit/a45bcd78e4bd801f0faa39edf6c55beaea4fec15))
|
|
32
|
+
* remove obsolete code ([8b4cb08](https://github.com/geops/rvf-mobility-web-component/commit/8b4cb08c9e8d2f1f6b668c8d84d3332073a312f8))
|
|
33
|
+
* update libs ([641549c](https://github.com/geops/rvf-mobility-web-component/commit/641549c7048b7bcc15dd898bff2139fa048d736e))
|
|
34
|
+
* use scrollTo instead of scrollIntoView ([f26aa16](https://github.com/geops/rvf-mobility-web-component/commit/f26aa16cfa513f445f40aac46ba0e020702c3c61))
|
|
35
|
+
|
|
5
36
|
### [0.1.56](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.55...v0.1.56) (2025-09-30)
|
|
6
37
|
|
|
7
38
|
|
package/docutils.js
CHANGED
|
@@ -155,7 +155,7 @@ function generateCodeText(
|
|
|
155
155
|
let separator = '"';
|
|
156
156
|
const value = wc.getAttribute(key);
|
|
157
157
|
if (value.includes(separator)) {
|
|
158
|
-
separator = "'";
|
|
158
|
+
separator = "'"; // for json stringify value
|
|
159
159
|
}
|
|
160
160
|
codeText += `\n\t${[key, separator + value + separator].join("=")}`;
|
|
161
161
|
}
|
package/global.d.ts
CHANGED
package/iframe.html
CHANGED
|
@@ -215,4 +215,19 @@
|
|
|
215
215
|
});
|
|
216
216
|
</script>
|
|
217
217
|
</body>
|
|
218
|
+
<<<<<<< HEAD
|
|
219
|
+
=======
|
|
220
|
+
<script type="module">
|
|
221
|
+
// import testNotification from "./testNotification.json";
|
|
222
|
+
// const iframe = document.getElementById("iframe");
|
|
223
|
+
// iframe.addEventListener("load", function () {
|
|
224
|
+
// setTimeout(() => {
|
|
225
|
+
// this.contentWindow.postMessage({ notification: testNotification }, "*");
|
|
226
|
+
// }, 500);
|
|
227
|
+
// });
|
|
228
|
+
window.addEventListener("message", (event) => {
|
|
229
|
+
console.log(`parent received ${event.data.type} message:`, event.data.data);
|
|
230
|
+
});
|
|
231
|
+
</script>
|
|
232
|
+
>>>>>>> upstream/main
|
|
218
233
|
</html>
|
package/index.html
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
></pre>
|
|
49
49
|
|
|
50
50
|
<geops-mobility
|
|
51
|
-
class="block h-
|
|
51
|
+
class="block h-128 w-full resize overflow-hidden rounded-2xl border"
|
|
52
52
|
></geops-mobility>
|
|
53
53
|
|
|
54
54
|
<br />
|
|
@@ -85,6 +85,7 @@ document.getElementById('map').addEventListener('mwc:attribute', (event) => {
|
|
|
85
85
|
description: `Load the page in fullscreen mode.`,
|
|
86
86
|
reload: true,
|
|
87
87
|
};
|
|
88
|
+
|
|
88
89
|
window.MobilityMapAttributes.debug = {
|
|
89
90
|
type: "boolean",
|
|
90
91
|
defaultValue: "false",
|