@geops/rvf-mobility-web-component 0.1.125 → 0.1.126
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/.lintstagedrc.js +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/index.js +3563 -0
- package/doc/public/README.md +1 -1
- package/doc/src/app/layout.tsx +2 -2
- package/index.html +2 -2
- package/package.json +3 -3
- package/scripts/build.mjs +3 -1
- package/scripts/dev.mjs +4 -1
- package/src/OverlayContent/OverlayContent.tsx +17 -4
- package/src/icons/Loading/Loading.tsx +24 -0
- package/src/icons/Loading/index.ts +1 -0
- package/.vscode/settings.json +0 -2
- package/index.js +0 -3872
package/doc/public/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Folder
|
|
1
|
+
Folder for static files
|
package/doc/src/app/layout.tsx
CHANGED
|
@@ -45,8 +45,8 @@ export default function RootLayout({
|
|
|
45
45
|
<Footer />
|
|
46
46
|
</ThemeProvider>
|
|
47
47
|
</AppRouterCacheProvider>
|
|
48
|
-
<Script src="index.js" />
|
|
49
|
-
<Script src="indexDoc.js" />
|
|
48
|
+
<Script type="module" src="index.js" />
|
|
49
|
+
<Script type="module" src="indexDoc.js" />
|
|
50
50
|
</body>
|
|
51
51
|
</html>
|
|
52
52
|
);
|
package/index.html
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
</script>
|
|
20
|
-
<script type="module" src="./index.js"></script>
|
|
21
|
-
<script type="module" src="./indexDoc.js"></script>
|
|
20
|
+
<script type="module" src="./dist/index.js"></script>
|
|
21
|
+
<script type="module" src="./dist/indexDoc.js"></script>
|
|
22
22
|
<script src="./docutils.js"></script>
|
|
23
23
|
<link rel="stylesheet" type="text/css" href="./output.css" />
|
|
24
24
|
<style>
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "@geops/rvf-mobility-web-component",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
4
|
"description": "Web components for rvf in the domains of mobility and logistics.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.126",
|
|
6
6
|
"homepage": "https://rvf-mobility-web-component.vercel.app/",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"main": "index.js",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"graphql": "^16.10.0",
|
|
11
11
|
"graphql-request": "^7.1.2",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"analyze": "yarn build && esbuild-analyzer . --port 8888",
|
|
64
|
-
"build": "yarn build:css && yarn build:js &&
|
|
64
|
+
"build": "rm -rf dist/* && yarn build:css && yarn build:js && rm -rf doc/public/*.js* && cp dist/* doc/public/",
|
|
65
65
|
"build:css": "yarn tailwind:component && yarn tailwind:website",
|
|
66
66
|
"build:js": "node scripts/build.mjs",
|
|
67
67
|
"cp": "generact --root src",
|
package/scripts/build.mjs
CHANGED
package/scripts/dev.mjs
CHANGED
|
@@ -8,9 +8,12 @@ const ctx = await esbuild.context({
|
|
|
8
8
|
".png": "dataurl",
|
|
9
9
|
".svg": "dataurl",
|
|
10
10
|
},
|
|
11
|
-
outdir: "
|
|
11
|
+
outdir: "dist",
|
|
12
12
|
plugins: [sassPlugin({ type: "css-text" })],
|
|
13
13
|
sourcemap: true,
|
|
14
|
+
splitting: true,
|
|
15
|
+
format: "esm",
|
|
16
|
+
// minify: true,
|
|
14
17
|
});
|
|
15
18
|
|
|
16
19
|
const { host, port } = await ctx.serve({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { lazy, Suspense } from "preact/compat";
|
|
1
2
|
import { twMerge } from "tailwind-merge";
|
|
2
3
|
|
|
3
|
-
import
|
|
4
|
+
import Loading from "../icons/Loading";
|
|
4
5
|
import LayerTreeMenu from "../LayerTreeMenu";
|
|
5
6
|
import OverlayDetails from "../OverlayDetails";
|
|
6
7
|
import OverlayHeader from "../OverlayHeader";
|
|
@@ -10,6 +11,9 @@ import useI18n from "../utils/hooks/useI18n";
|
|
|
10
11
|
import useMapContext from "../utils/hooks/useMapContext";
|
|
11
12
|
|
|
12
13
|
const contentClassName = `relative h-full overflow-x-hidden overflow-y-auto text-base bg-white`;
|
|
14
|
+
const LazyExportMenu = lazy(() => {
|
|
15
|
+
return import("../ExportMenu");
|
|
16
|
+
});
|
|
13
17
|
|
|
14
18
|
function OverlayContent({
|
|
15
19
|
hasDetails,
|
|
@@ -47,9 +51,18 @@ function OverlayContent({
|
|
|
47
51
|
}}
|
|
48
52
|
title={t("print_menu_title")}
|
|
49
53
|
></OverlayHeader>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
|
|
55
|
+
<Suspense
|
|
56
|
+
fallback={
|
|
57
|
+
<div className={"flex w-full items-center justify-start p-4"}>
|
|
58
|
+
<Loading />
|
|
59
|
+
</div>
|
|
60
|
+
}
|
|
61
|
+
>
|
|
62
|
+
<LazyExportMenu
|
|
63
|
+
className={twMerge(contentClassName, "flex flex-col gap-4 p-4")}
|
|
64
|
+
/>
|
|
65
|
+
</Suspense>
|
|
53
66
|
</>
|
|
54
67
|
)}
|
|
55
68
|
{hasLayerTree && isLayerTreeOpen && (
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { memo } from "react";
|
|
2
|
+
|
|
3
|
+
function Loading() {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
aria-hidden="true"
|
|
7
|
+
className="h-8 w-8 animate-spin"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 100 101"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
|
|
14
|
+
fill="lightGray"
|
|
15
|
+
/>
|
|
16
|
+
<path
|
|
17
|
+
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
/>
|
|
20
|
+
</svg>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default memo(Loading);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Loading";
|
package/.vscode/settings.json
DELETED