From 6095574a7a0df037b4710ddcd778bdc72b200498 Mon Sep 17 00:00:00 2001 From: Etienne Burdet Date: Wed, 12 Jun 2024 15:16:11 +0200 Subject: [PATCH 1/7] fix(Table): basic select style (#244) Remove the glossy effect on Safari by setting CSS property `appearance` to `none`. Appearance is the same across all 3 major browsers. --- .../src/components/Pagination/PageSize.svelte | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/visualizations/src/components/Pagination/PageSize.svelte b/packages/visualizations/src/components/Pagination/PageSize.svelte index 10b57389..d84cb8b3 100644 --- a/packages/visualizations/src/components/Pagination/PageSize.svelte +++ b/packages/visualizations/src/components/Pagination/PageSize.svelte @@ -23,6 +23,8 @@ {/each} + + From 65bbcea85313c602bebb0f46c4b6647594c9c623 Mon Sep 17 00:00:00 2001 From: Vincent MINEAUD <78358994+cybervinvin@users.noreply.github.com> Date: Mon, 17 Jun 2024 17:00:54 +0200 Subject: [PATCH 2/7] feat(Table): loading state (#240) --- .../stories/Table/Table.stories.tsx | 11 ++++++ .../src/components/Table/Body.svelte | 27 ++++++++++----- .../components/Table/Cell/LoadingCell.svelte | 34 +++++++++++++++++++ .../src/components/Table/Cell/index.ts | 2 ++ .../src/components/Table/Table.svelte | 3 +- .../src/components/Table/TableCard.svelte | 6 ++-- 6 files changed, 72 insertions(+), 11 deletions(-) create mode 100644 packages/visualizations/src/components/Table/Cell/LoadingCell.svelte diff --git a/packages/visualizations-react/stories/Table/Table.stories.tsx b/packages/visualizations-react/stories/Table/Table.stories.tsx index fcf19891..46963c50 100644 --- a/packages/visualizations-react/stories/Table/Table.stories.tsx +++ b/packages/visualizations-react/stories/Table/Table.stories.tsx @@ -20,6 +20,11 @@ const data: Async = { loading: false, }; +const fetchingData: Async = { + value: [], + loading: true, +}; + const Template: ComponentStory = args => ; export const Playground = Template.bind({}); @@ -76,4 +81,10 @@ export const Unstyled = Template.bind({}); Unstyled.args = { data, options: { ...options, unstyled: true }, +}; + +export const Loading = Template.bind({}); +Loading.args = { + data: fetchingData, + options, }; \ No newline at end of file diff --git a/packages/visualizations/src/components/Table/Body.svelte b/packages/visualizations/src/components/Table/Body.svelte index 72d090e6..64977df8 100644 --- a/packages/visualizations/src/components/Table/Body.svelte +++ b/packages/visualizations/src/components/Table/Body.svelte @@ -1,19 +1,30 @@ - {#each records as record} - - {#each columns as column} - - {/each} - - {/each} + {#if loadingRowsNumber} + {#each Array(loadingRowsNumber) as _} + + {#each columns as __} + + {/each} + + {/each} + {:else} + {#each records as record} + + {#each columns as column} + + {/each} + + {/each} + {/if} diff --git a/packages/visualizations/src/components/Table/Cell/index.ts b/packages/visualizations/src/components/Table/Cell/index.ts index 038973c3..e931d588 100644 --- a/packages/visualizations/src/components/Table/Cell/index.ts +++ b/packages/visualizations/src/components/Table/Cell/index.ts @@ -1,3 +1,5 @@ import Cell from './Cell.svelte'; +import LoadingCell from './LoadingCell.svelte'; +export { LoadingCell }; export default Cell; diff --git a/packages/visualizations/src/components/Table/Table.svelte b/packages/visualizations/src/components/Table/Table.svelte index ecbbb35a..2d7fc57d 100644 --- a/packages/visualizations/src/components/Table/Table.svelte +++ b/packages/visualizations/src/components/Table/Table.svelte @@ -5,6 +5,7 @@ import Headers from './Headers'; import Body from './Body.svelte'; + export let loadingRowsNumber: number | null; export let columns: Column[]; export let records: DataFrame | undefined; export let description: string | undefined; @@ -16,7 +17,7 @@
{#if records} - + {/if}
diff --git a/packages/visualizations/src/components/Table/TableCard.svelte b/packages/visualizations/src/components/Table/TableCard.svelte index d48a1e93..6886e85b 100644 --- a/packages/visualizations/src/components/Table/TableCard.svelte +++ b/packages/visualizations/src/components/Table/TableCard.svelte @@ -11,7 +11,7 @@ export let data: $$Props['data']; export let options: $$Props['options']; - $: ({ value: records } = data); + $: ({ value: records, loading: isLoading } = data); $: ({ columns, title, @@ -23,6 +23,8 @@ pagination, } = options); $: $locale = localeOption || navigator.language; + $: defaultLoadingRowsNumber = pagination ? pagination.recordsPerPage : 5; + $: loadingRowsNumber = isLoading ? defaultLoadingRowsNumber : null; /* Preserves paginations controls positioning min heigh of table + controls = max-height of row * (number of rows) + headers + pagination */ @@ -30,7 +32,7 @@
- +
{#if pagination} {/if} From 964444af5e14111f87e6c5ad6ed96c2231160744 Mon Sep 17 00:00:00 2001 From: Etienne Burdet Date: Mon, 24 Jun 2024 09:58:34 +0200 Subject: [PATCH 3/7] =?UTF-8?q?chore(Table):=C2=A0add=20scrollbox=20CSS=20?= =?UTF-8?q?selector=20(#248)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/visualizations/src/components/Table/Table.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/visualizations/src/components/Table/Table.svelte b/packages/visualizations/src/components/Table/Table.svelte index 2d7fc57d..29d7f6d3 100644 --- a/packages/visualizations/src/components/Table/Table.svelte +++ b/packages/visualizations/src/components/Table/Table.svelte @@ -13,7 +13,7 @@ const tableId = `table-${generateId()}`; -
+
{#if records} @@ -31,7 +31,7 @@ display: none; } - :global(.ods-dataviz--default) div { + :global(.ods-dataviz--default) .scrollbox { border: solid 1px var(--border-color); border-radius: var(--border-radius-2); overflow-x: auto; From 045d074aec5fd906b2aff1e8c201a24f271ace33 Mon Sep 17 00:00:00 2001 From: Etienne Burdet Date: Wed, 26 Jun 2024 09:47:44 +0200 Subject: [PATCH 4/7] Export svelte uncompiled components (#242) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: add svelte route and explicit chartJs imports * chore: update to definitive version --- package-lock.json | 313 +++++++++--------- package.json | 2 +- packages/visualizations-react/LICENSE | 21 ++ packages/visualizations-react/package.json | 6 +- packages/visualizations/LICENSE | 21 ++ packages/visualizations/package.json | 8 +- .../src/components/Chart/index.ts | 21 +- .../src/components/Map/Svg/Map.svelte | 3 +- packages/visualizations/src/index.ts | 2 +- 9 files changed, 223 insertions(+), 174 deletions(-) create mode 100644 packages/visualizations-react/LICENSE create mode 100644 packages/visualizations/LICENSE diff --git a/package-lock.json b/package-lock.json index 8bf25300..739e8f09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ }, "devDependencies": { "lerna": "^8.1.2", - "nx": "^19.0.7" + "nx": "^19.2.3" } }, "node_modules/-": { @@ -3048,9 +3048,8 @@ }, "node_modules/@lerna/create/node_modules/@nrwl/tao": { "version": "18.3.5", - "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-18.3.5.tgz", - "integrity": "sha512-gB7Vxa6FReZZEGva03Eh+84W8BSZOjsNyXboglOINu6d8iZZ0eotSXGziKgjpkj3feZ1ofKZMs0PRObVAOROVw==", "dev": true, + "license": "MIT", "dependencies": { "nx": "18.3.5", "tslib": "^2.3.0" @@ -3095,12 +3094,11 @@ }, "node_modules/@lerna/create/node_modules/@nx/nx-darwin-x64": { "version": "18.3.5", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-18.3.5.tgz", - "integrity": "sha512-Drn6jOG237AD/s6OWPt06bsMj0coGKA5Ce1y5gfLhptOGk4S4UPE/Ay5YCjq+/yhTo1gDHzCHxH0uW2X9MN9Fg==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -3239,9 +3237,8 @@ }, "node_modules/@lerna/create/node_modules/cliui": { "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -3292,9 +3289,8 @@ }, "node_modules/@lerna/create/node_modules/json5": { "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, + "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -3304,9 +3300,8 @@ }, "node_modules/@lerna/create/node_modules/lines-and-columns": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-2.0.4.tgz", - "integrity": "sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==", "dev": true, + "license": "MIT", "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } @@ -3332,10 +3327,9 @@ }, "node_modules/@lerna/create/node_modules/nx": { "version": "18.3.5", - "resolved": "https://registry.npmjs.org/nx/-/nx-18.3.5.tgz", - "integrity": "sha512-wWcvwoTgiT5okdrG0RIWm1tepC17bDmSpw+MrOxnjfBjARQNTURkiq4U6cxjCVsCxNHxCrlAaBSQLZeBgJZTzQ==", "dev": true, "hasInstallScript": true, + "license": "MIT", "dependencies": { "@nrwl/tao": "18.3.5", "@yarnpkg/lockfile": "^1.1.0", @@ -3403,18 +3397,16 @@ }, "node_modules/@lerna/create/node_modules/nx/node_modules/brace-expansion": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" } }, "node_modules/@lerna/create/node_modules/nx/node_modules/minimatch": { "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", "dev": true, + "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" }, @@ -3427,9 +3419,8 @@ }, "node_modules/@lerna/create/node_modules/ora": { "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ora/-/ora-5.3.0.tgz", - "integrity": "sha512-zAKMgGXUim0Jyd6CXK9lraBnD3H5yPGBPPOkC23a2BG6hsm4Zu6OQSjQuEtV0BHDf4aKHcUFvJiGRrFuW3MG8g==", "dev": true, + "license": "MIT", "dependencies": { "bl": "^4.0.3", "chalk": "^4.1.0", @@ -3466,9 +3457,8 @@ }, "node_modules/@lerna/create/node_modules/strip-bom": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -3483,9 +3473,8 @@ }, "node_modules/@lerna/create/node_modules/tsconfig-paths": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", - "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", "dev": true, + "license": "MIT", "dependencies": { "json5": "^2.2.2", "minimist": "^1.2.6", @@ -3745,9 +3734,8 @@ }, "node_modules/@nrwl/devkit/node_modules/@nrwl/tao": { "version": "18.3.5", - "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-18.3.5.tgz", - "integrity": "sha512-gB7Vxa6FReZZEGva03Eh+84W8BSZOjsNyXboglOINu6d8iZZ0eotSXGziKgjpkj3feZ1ofKZMs0PRObVAOROVw==", "dev": true, + "license": "MIT", "peer": true, "dependencies": { "nx": "18.3.5", @@ -3794,12 +3782,11 @@ }, "node_modules/@nrwl/devkit/node_modules/@nx/nx-darwin-x64": { "version": "18.3.5", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-18.3.5.tgz", - "integrity": "sha512-Drn6jOG237AD/s6OWPt06bsMj0coGKA5Ce1y5gfLhptOGk4S4UPE/Ay5YCjq+/yhTo1gDHzCHxH0uW2X9MN9Fg==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -3947,9 +3934,8 @@ }, "node_modules/@nrwl/devkit/node_modules/brace-expansion": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, + "license": "MIT", "peer": true, "dependencies": { "balanced-match": "^1.0.0" @@ -3957,9 +3943,8 @@ }, "node_modules/@nrwl/devkit/node_modules/cliui": { "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, + "license": "ISC", "peer": true, "dependencies": { "string-width": "^4.2.0", @@ -3972,9 +3957,8 @@ }, "node_modules/@nrwl/devkit/node_modules/json5": { "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, + "license": "MIT", "peer": true, "bin": { "json5": "lib/cli.js" @@ -3985,9 +3969,8 @@ }, "node_modules/@nrwl/devkit/node_modules/lines-and-columns": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-2.0.4.tgz", - "integrity": "sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==", "dev": true, + "license": "MIT", "peer": true, "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" @@ -3995,9 +3978,8 @@ }, "node_modules/@nrwl/devkit/node_modules/minimatch": { "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", "dev": true, + "license": "ISC", "peer": true, "dependencies": { "brace-expansion": "^2.0.1" @@ -4011,10 +3993,9 @@ }, "node_modules/@nrwl/devkit/node_modules/nx": { "version": "18.3.5", - "resolved": "https://registry.npmjs.org/nx/-/nx-18.3.5.tgz", - "integrity": "sha512-wWcvwoTgiT5okdrG0RIWm1tepC17bDmSpw+MrOxnjfBjARQNTURkiq4U6cxjCVsCxNHxCrlAaBSQLZeBgJZTzQ==", "dev": true, "hasInstallScript": true, + "license": "MIT", "peer": true, "dependencies": { "@nrwl/tao": "18.3.5", @@ -4083,9 +4064,8 @@ }, "node_modules/@nrwl/devkit/node_modules/ora": { "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ora/-/ora-5.3.0.tgz", - "integrity": "sha512-zAKMgGXUim0Jyd6CXK9lraBnD3H5yPGBPPOkC23a2BG6hsm4Zu6OQSjQuEtV0BHDf4aKHcUFvJiGRrFuW3MG8g==", "dev": true, + "license": "MIT", "peer": true, "dependencies": { "bl": "^4.0.3", @@ -4106,9 +4086,8 @@ }, "node_modules/@nrwl/devkit/node_modules/strip-bom": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "dev": true, + "license": "MIT", "peer": true, "engines": { "node": ">=4" @@ -4124,9 +4103,8 @@ }, "node_modules/@nrwl/devkit/node_modules/tsconfig-paths": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", - "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", "dev": true, + "license": "MIT", "peer": true, "dependencies": { "json5": "^2.2.2", @@ -4138,12 +4116,12 @@ } }, "node_modules/@nrwl/tao": { - "version": "19.0.7", - "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-19.0.7.tgz", - "integrity": "sha512-tWUUsFZiu6KxMO3Q1mYm7HQh0XXQOIsJaxuuNO2UFBdfsE/P5GKUe6SuKyBmfoOY+LcZcBL/nlaJ02hJkCe7Sg==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-19.2.3.tgz", + "integrity": "sha512-vwo6ogcy6A9vJggDOsHGi1F0cTRqSqRypbgq/EdNuZqL7rGyZB/ctId69/i8dV6cLkl8BJG/4WpEe5BIrMTsjA==", "dev": true, "dependencies": { - "nx": "19.0.7", + "nx": "19.2.3", "tslib": "^2.3.0" }, "bin": { @@ -4151,9 +4129,9 @@ } }, "node_modules/@nx/nx-darwin-arm64": { - "version": "19.0.7", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-19.0.7.tgz", - "integrity": "sha512-tMcYKJzldLAAF3RuHE8+SA+M4nJzQBiv4CuDChdkQ6nqoDndg3uqJ2U7rwmrNu+VJXLxJzbnWdFzaupkfu9FpQ==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-arm64/-/nx-darwin-arm64-19.2.3.tgz", + "integrity": "sha512-1beJscdMraGgLHpvjyC5FXUzpdQYW8JwnPK0Yj9iti9Vnahtx3PLQHCFOFwoE0KZF9VEL1KsZSSVPljMgW/j+g==", "cpu": [ "arm64" ], @@ -4167,9 +4145,9 @@ } }, "node_modules/@nx/nx-darwin-x64": { - "version": "19.0.7", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-19.0.7.tgz", - "integrity": "sha512-c3WFxHEEY/1GuSGVHREIbK19gEXnl09Rx93Sx10gPCqk2OWu6nogCg3UfY3yYzpm3c7qWOXzj/dvSRCTmzcEGQ==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-19.2.3.tgz", + "integrity": "sha512-wCpIRThGKL/FebPe+WaFk/V6nk31mMc83APoEyhyS5kAodqeKjb6iPud+QNydtUJ/jsF9aQ/DaHIioKC9wbg8A==", "cpu": [ "x64" ], @@ -4183,9 +4161,9 @@ } }, "node_modules/@nx/nx-freebsd-x64": { - "version": "19.0.7", - "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-19.0.7.tgz", - "integrity": "sha512-WrteQTg/4zYqHciEmwnPje87XooqUeu8kemHDLt83BQ538AxqAp9R2DoW+JSbwHOq4ZYK7nVzQRwNbuZ7/7bkQ==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@nx/nx-freebsd-x64/-/nx-freebsd-x64-19.2.3.tgz", + "integrity": "sha512-ytY18USCyf83wqyUgFaeRO/3zvysJXPJf1Di8czBhiUSroSMB6088OaeqW7SnzdcYNdACZUv0Q6PupXpx3w2Ng==", "cpu": [ "x64" ], @@ -4199,9 +4177,9 @@ } }, "node_modules/@nx/nx-linux-arm-gnueabihf": { - "version": "19.0.7", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-19.0.7.tgz", - "integrity": "sha512-jrJQYf63LCOClYDfl2Rgg/rQvA/qOoCvmEIB8XI/9TCfeRU7Zoa+dxVC6nKG02DzFaarY3zdQ2GFzYd0wpTFvg==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-19.2.3.tgz", + "integrity": "sha512-FPtqIMzdOzYSSDnLXUpcrflqEsNe6UgpAgYoHLVbWiR47O3qJnpQRDfYUsP7Lv+2C0CBKNXgwPEvmDLXKHcfYg==", "cpu": [ "arm" ], @@ -4215,9 +4193,9 @@ } }, "node_modules/@nx/nx-linux-arm64-gnu": { - "version": "19.0.7", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-19.0.7.tgz", - "integrity": "sha512-0ekdp8+8NzFsiK3EQu9eg8W/z5ehjlPF38Vy+Pb7T3xM7pR8Kpx0k5B2D2/StPBQU8ENdyDxspBch9FnZsSbYg==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-19.2.3.tgz", + "integrity": "sha512-VOuzPD5FBPZmctvXqdB9K1MYVzkV8TgOZFS7Md6ClH7UwJTEOjnMoomYCMM1VlOZV4P0S5E0u/Zere5YWh+ZWw==", "cpu": [ "arm64" ], @@ -4231,9 +4209,9 @@ } }, "node_modules/@nx/nx-linux-arm64-musl": { - "version": "19.0.7", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-19.0.7.tgz", - "integrity": "sha512-d0a3iIobeYJY4b8HdwsohGt1d7TMKQJM0nWI3xcbqotLSovFoL6CqNn3g7uZhZPhNwQXNtSEwaXfQRZcH9Nr1g==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-19.2.3.tgz", + "integrity": "sha512-qd6QZysktt0D7rNCOlBaV3ME0/J0VwvC1cmdjtZoljwtsX6Zc56AEdfwsgGzsZNU4w+N+BtXxowan3D44iiSzQ==", "cpu": [ "arm64" ], @@ -4247,9 +4225,9 @@ } }, "node_modules/@nx/nx-linux-x64-gnu": { - "version": "19.0.7", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-19.0.7.tgz", - "integrity": "sha512-C75zX747Fwc/oH8Xk6+U4xBG97BYka5hGU57034cQVMHKaDfivVHKfwBuROVkj3Mg96QbAS3rAAfMtaCthMLTA==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-19.2.3.tgz", + "integrity": "sha512-wE08BstTD65dt6c+9L9bEp98PxFwc7CuaUVX2cZTDFAERBXCMhu7y6Gb1JbiAvfVci4+yLrm+h0E1ieY1wMTXw==", "cpu": [ "x64" ], @@ -4263,9 +4241,9 @@ } }, "node_modules/@nx/nx-linux-x64-musl": { - "version": "19.0.7", - "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-19.0.7.tgz", - "integrity": "sha512-OzPtwGp4ENsRI5J35kbjXE0hDbTNF1QwnK3O7R7H1Ew9WJjZi3tEm1cTsq0/SssI6YbZqRhzrNBd/N7Mkjd2dA==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-19.2.3.tgz", + "integrity": "sha512-IA09+NZ0kKPSfK/dXsyjZ8TN+hN/1PcnbdNuUCn1Opmbrdda9GBfzHSDFKXxoA6TVB/j/qnXHKgKxhhVH05TGg==", "cpu": [ "x64" ], @@ -4279,9 +4257,9 @@ } }, "node_modules/@nx/nx-win32-arm64-msvc": { - "version": "19.0.7", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-19.0.7.tgz", - "integrity": "sha512-G17tdQEjE6eAWRO4XFGpoFHZ55M1AVmj+CJwaTowzXDSk26y3waoDUGOy75ft1LLoz5i8Q9CWFG4Fnyno4Bv/g==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-19.2.3.tgz", + "integrity": "sha512-fkbcTp+XuxGaL5e4Ve8AjxNEim5Ifdn61ofaxEDMoGjauKvKZBejbLhBFOonCKDqntXsY8D2nDXjhcsdNYxzMg==", "cpu": [ "arm64" ], @@ -4295,9 +4273,9 @@ } }, "node_modules/@nx/nx-win32-x64-msvc": { - "version": "19.0.7", - "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-19.0.7.tgz", - "integrity": "sha512-ZK4w5w9khgphyqEf/cKSyZsmHD4np7/sNp25D9Fdr5z6RTu2U73K07/e3nj2jS2ZCIrjPxobAGljZdXom9LH7g==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-19.2.3.tgz", + "integrity": "sha512-E2q3c504xjFXTY+/iq57DOZmS6CPA8RbFwLf6bCG5wo2BDajxmvU3VCeCSkxqXEwCY7NJSI3PT1V/3vRDzJ3lQ==", "cpu": [ "x64" ], @@ -8418,9 +8396,8 @@ }, "node_modules/@zkochan/js-yaml": { "version": "0.0.6", - "resolved": "https://registry.npmjs.org/@zkochan/js-yaml/-/js-yaml-0.0.6.tgz", - "integrity": "sha512-nzvgl3VfhcELQ8LyVrYOru+UtAy1nrygk2+AGbTm8a5YcO6o8lSjAT+pfg3vJWxIoZKOUhrK6UU7xW/+00kQrg==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -8646,7 +8623,6 @@ }, "node_modules/anymatch": { "version": "3.1.2", - "dev": true, "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", @@ -9546,7 +9522,6 @@ }, "node_modules/binary-extensions": { "version": "2.2.0", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -9669,7 +9644,6 @@ }, "node_modules/braces": { "version": "3.0.2", - "dev": true, "license": "MIT", "dependencies": { "fill-range": "^7.0.1" @@ -10161,7 +10135,6 @@ }, "node_modules/chokidar": { "version": "3.6.0", - "dev": true, "license": "MIT", "dependencies": { "anymatch": "~3.1.2", @@ -13949,7 +13922,6 @@ }, "node_modules/fill-range": { "version": "7.0.1", - "dev": true, "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" @@ -14364,6 +14336,37 @@ ], "license": "MIT" }, + "node_modules/front-matter": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/front-matter/-/front-matter-4.0.2.tgz", + "integrity": "sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==", + "dev": true, + "dependencies": { + "js-yaml": "^3.13.1" + } + }, + "node_modules/front-matter/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/front-matter/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/fs-constants": { "version": "1.0.0", "dev": true, @@ -14442,7 +14445,6 @@ }, "node_modules/fsevents": { "version": "2.3.3", - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -14881,7 +14883,6 @@ }, "node_modules/glob-parent": { "version": "5.1.2", - "dev": true, "license": "ISC", "dependencies": { "is-glob": "^4.0.1" @@ -15602,7 +15603,6 @@ }, "node_modules/immutable": { "version": "4.3.5", - "dev": true, "license": "MIT" }, "node_modules/import-cwd": { @@ -15943,7 +15943,6 @@ }, "node_modules/is-binary-path": { "version": "2.1.0", - "dev": true, "license": "MIT", "dependencies": { "binary-extensions": "^2.0.0" @@ -16094,7 +16093,6 @@ }, "node_modules/is-extglob": { "version": "2.1.1", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -16143,7 +16141,6 @@ }, "node_modules/is-glob": { "version": "4.0.3", - "dev": true, "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" @@ -16217,7 +16214,6 @@ }, "node_modules/is-number": { "version": "7.0.0", - "dev": true, "license": "MIT", "engines": { "node": ">=0.12.0" @@ -17858,9 +17854,8 @@ }, "node_modules/lerna/node_modules/@nrwl/tao": { "version": "18.3.5", - "resolved": "https://registry.npmjs.org/@nrwl/tao/-/tao-18.3.5.tgz", - "integrity": "sha512-gB7Vxa6FReZZEGva03Eh+84W8BSZOjsNyXboglOINu6d8iZZ0eotSXGziKgjpkj3feZ1ofKZMs0PRObVAOROVw==", "dev": true, + "license": "MIT", "dependencies": { "nx": "18.3.5", "tslib": "^2.3.0" @@ -17905,12 +17900,11 @@ }, "node_modules/lerna/node_modules/@nx/nx-darwin-x64": { "version": "18.3.5", - "resolved": "https://registry.npmjs.org/@nx/nx-darwin-x64/-/nx-darwin-x64-18.3.5.tgz", - "integrity": "sha512-Drn6jOG237AD/s6OWPt06bsMj0coGKA5Ce1y5gfLhptOGk4S4UPE/Ay5YCjq+/yhTo1gDHzCHxH0uW2X9MN9Fg==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -18049,9 +18043,8 @@ }, "node_modules/lerna/node_modules/cliui": { "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -18102,9 +18095,8 @@ }, "node_modules/lerna/node_modules/json5": { "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, + "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -18114,9 +18106,8 @@ }, "node_modules/lerna/node_modules/lines-and-columns": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-2.0.4.tgz", - "integrity": "sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==", "dev": true, + "license": "MIT", "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } @@ -18142,10 +18133,9 @@ }, "node_modules/lerna/node_modules/nx": { "version": "18.3.5", - "resolved": "https://registry.npmjs.org/nx/-/nx-18.3.5.tgz", - "integrity": "sha512-wWcvwoTgiT5okdrG0RIWm1tepC17bDmSpw+MrOxnjfBjARQNTURkiq4U6cxjCVsCxNHxCrlAaBSQLZeBgJZTzQ==", "dev": true, "hasInstallScript": true, + "license": "MIT", "dependencies": { "@nrwl/tao": "18.3.5", "@yarnpkg/lockfile": "^1.1.0", @@ -18213,18 +18203,16 @@ }, "node_modules/lerna/node_modules/nx/node_modules/brace-expansion": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" } }, "node_modules/lerna/node_modules/nx/node_modules/minimatch": { "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", "dev": true, + "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" }, @@ -18237,9 +18225,8 @@ }, "node_modules/lerna/node_modules/ora": { "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ora/-/ora-5.3.0.tgz", - "integrity": "sha512-zAKMgGXUim0Jyd6CXK9lraBnD3H5yPGBPPOkC23a2BG6hsm4Zu6OQSjQuEtV0BHDf4aKHcUFvJiGRrFuW3MG8g==", "dev": true, + "license": "MIT", "dependencies": { "bl": "^4.0.3", "chalk": "^4.1.0", @@ -18276,9 +18263,8 @@ }, "node_modules/lerna/node_modules/strip-bom": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -18293,9 +18279,8 @@ }, "node_modules/lerna/node_modules/tsconfig-paths": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", - "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", "dev": true, + "license": "MIT", "dependencies": { "json5": "^2.2.2", "minimist": "^1.2.6", @@ -20284,7 +20269,6 @@ }, "node_modules/normalize-path": { "version": "3.0.0", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -20878,15 +20862,16 @@ "license": "MIT" }, "node_modules/nx": { - "version": "19.0.7", - "resolved": "https://registry.npmjs.org/nx/-/nx-19.0.7.tgz", - "integrity": "sha512-9ZgxIvesVwM2941wnq5hvFD28kcABN+Nhf9RvA0P2DeFhOWYNMn1FhdYBrAl7tQB3gZsXrpitM5+f9kqIBzF8g==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/nx/-/nx-19.2.3.tgz", + "integrity": "sha512-SvxFgk9PD2m6tXEaqB6DENOpe4jhov/Ili/2JmOnPAAIGUR6H9WajCzVuHfq3bvQxmGRvkQQRv/rfvAuLTme3g==", "dev": true, "hasInstallScript": true, "dependencies": { - "@nrwl/tao": "19.0.7", + "@nrwl/tao": "19.2.3", "@yarnpkg/lockfile": "^1.1.0", "@yarnpkg/parsers": "3.0.0-rc.46", + "@zkochan/js-yaml": "0.0.7", "axios": "^1.6.0", "chalk": "^4.1.0", "cli-cursor": "3.1.0", @@ -20897,10 +20882,10 @@ "enquirer": "~2.3.6", "figures": "3.2.0", "flat": "^5.0.2", + "front-matter": "^4.0.2", "fs-extra": "^11.1.0", "ignore": "^5.0.4", "jest-diff": "^29.4.1", - "js-yaml": "npm:@zkochan/js-yaml@0.0.7", "jsonc-parser": "3.2.0", "lines-and-columns": "~2.0.3", "minimatch": "9.0.3", @@ -20923,16 +20908,16 @@ "nx-cloud": "bin/nx-cloud.js" }, "optionalDependencies": { - "@nx/nx-darwin-arm64": "19.0.7", - "@nx/nx-darwin-x64": "19.0.7", - "@nx/nx-freebsd-x64": "19.0.7", - "@nx/nx-linux-arm-gnueabihf": "19.0.7", - "@nx/nx-linux-arm64-gnu": "19.0.7", - "@nx/nx-linux-arm64-musl": "19.0.7", - "@nx/nx-linux-x64-gnu": "19.0.7", - "@nx/nx-linux-x64-musl": "19.0.7", - "@nx/nx-win32-arm64-msvc": "19.0.7", - "@nx/nx-win32-x64-msvc": "19.0.7" + "@nx/nx-darwin-arm64": "19.2.3", + "@nx/nx-darwin-x64": "19.2.3", + "@nx/nx-freebsd-x64": "19.2.3", + "@nx/nx-linux-arm-gnueabihf": "19.2.3", + "@nx/nx-linux-arm64-gnu": "19.2.3", + "@nx/nx-linux-arm64-musl": "19.2.3", + "@nx/nx-linux-x64-gnu": "19.2.3", + "@nx/nx-linux-x64-musl": "19.2.3", + "@nx/nx-win32-arm64-msvc": "19.2.3", + "@nx/nx-win32-x64-msvc": "19.2.3" }, "peerDependencies": { "@swc-node/register": "^1.8.0", @@ -20947,6 +20932,18 @@ } } }, + "node_modules/nx/node_modules/@zkochan/js-yaml": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@zkochan/js-yaml/-/js-yaml-0.0.7.tgz", + "integrity": "sha512-nrUSn7hzt7J6JWgWGz78ZYI8wj+gdIJdk0Ynjpp8l+trkn58Uqsf6RYrYkEK+3X18EX+TNdtJI0WxAtc+L84SQ==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/nx/node_modules/brace-expansion": { "version": "2.0.1", "dev": true, @@ -20968,19 +20965,6 @@ "node": ">=12" } }, - "node_modules/nx/node_modules/js-yaml": { - "name": "@zkochan/js-yaml", - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/@zkochan/js-yaml/-/js-yaml-0.0.7.tgz", - "integrity": "sha512-nrUSn7hzt7J6JWgWGz78ZYI8wj+gdIJdk0Ynjpp8l+trkn58Uqsf6RYrYkEK+3X18EX+TNdtJI0WxAtc+L84SQ==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/nx/node_modules/json5": { "version": "2.2.3", "dev": true, @@ -22207,7 +22191,6 @@ }, "node_modules/picomatch": { "version": "2.3.1", - "dev": true, "license": "MIT", "engines": { "node": ">=8.6" @@ -23866,7 +23849,6 @@ }, "node_modules/readdirp": { "version": "3.6.0", - "dev": true, "license": "MIT", "dependencies": { "picomatch": "^2.2.1" @@ -24739,7 +24721,6 @@ }, "node_modules/sass": { "version": "1.71.1", - "dev": true, "license": "MIT", "dependencies": { "chokidar": ">=3.0.0 <4.0.0", @@ -25501,7 +25482,6 @@ }, "node_modules/source-map-js": { "version": "1.2.0", - "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -26778,7 +26758,6 @@ }, "node_modules/to-regex-range": { "version": "5.0.1", - "dev": true, "license": "MIT", "dependencies": { "is-number": "^7.0.0" @@ -29163,7 +29142,7 @@ }, "packages/visualizations": { "name": "@opendatasoft/visualizations", - "version": "0.24.1", + "version": "0.25.0", "license": "MIT", "dependencies": { "@placemarkio/geo-viewport": "^1.0.2", @@ -29182,6 +29161,7 @@ "markdown-it": "^12.0.4", "markdown-it-link-attributes": "^3.0.0", "markdown-it-mark": "^3.0.1", + "sass": "^1.70.0", "tippy.js": "^6.3.7" }, "devDependencies": { @@ -29222,7 +29202,6 @@ "rollup-plugin-postcss": "^4.0.2", "rollup-plugin-svelte": "^6.1.0", "rollup-plugin-terser": "^7.0.2", - "sass": "^1.70.0", "svelte": "^3.43.2", "svelte-check": "^2.2.7", "svelte-eslint-parser": "^0.33.1", @@ -29236,10 +29215,10 @@ }, "packages/visualizations-react": { "name": "@opendatasoft/visualizations-react", - "version": "0.24.1", + "version": "0.25.0", "license": "MIT", "dependencies": { - "@opendatasoft/visualizations": "0.24.1", + "@opendatasoft/visualizations": "0.24.1-beta.2", "use-callback-ref": "^1.2.4" }, "devDependencies": { @@ -29339,6 +29318,34 @@ "node": ">=12" } }, + "packages/visualizations-react/node_modules/@opendatasoft/visualizations": { + "version": "0.24.1-beta.2", + "resolved": "https://registry.npmjs.org/@opendatasoft/visualizations/-/visualizations-0.24.1-beta.2.tgz", + "integrity": "sha512-8eHi72CVjAakIT6bwCIc6ZBn38PE4moh5wL07yEUM7iIc9PmIHzXNAHaU2E26+baiBc15eWoK2vlZPJpAy6EQQ==", + "dependencies": { + "@placemarkio/geo-viewport": "^1.0.2", + "@turf/bbox": "^6.5.0", + "chart.js": "^4.4.2", + "chartjs-adapter-luxon": "^1.1.0", + "chartjs-chart-treemap": "^2.3.0", + "chartjs-plugin-datalabels": "^2.0.0", + "chartjs-plugin-stacked100": "^1.2.0", + "chroma-js": "^2.1.2", + "d3-geo": "^3.0.1", + "immutability-helper": "^3.1.1", + "lodash": "^4.17.21", + "luxon": "^2.5.0", + "maplibre-gl": "^3.6.2", + "markdown-it": "^12.0.4", + "markdown-it-link-attributes": "^3.0.0", + "markdown-it-mark": "^3.0.1", + "sass": "^1.70.0", + "tippy.js": "^6.3.7" + }, + "engines": { + "node": ">=18" + } + }, "packages/visualizations-react/node_modules/@storybook/addon-actions": { "version": "7.6.17", "dev": true, diff --git a/package.json b/package.json index f64ac9fe..dd23858c 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ }, "devDependencies": { "lerna": "^8.1.2", - "nx": "^19.0.7" + "nx": "^19.2.3" }, "dependencies": { "-": "^0.0.1" diff --git a/packages/visualizations-react/LICENSE b/packages/visualizations-react/LICENSE new file mode 100644 index 00000000..bad9f456 --- /dev/null +++ b/packages/visualizations-react/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2021 Opendatasoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/visualizations-react/package.json b/packages/visualizations-react/package.json index 154f4d64..25191007 100644 --- a/packages/visualizations-react/package.json +++ b/packages/visualizations-react/package.json @@ -1,6 +1,6 @@ { "name": "@opendatasoft/visualizations-react", - "version": "0.24.1", + "version": "0.25.0", "license": "MIT", "author": "opendatasoft", "homepage": "https://github.com/opendatasoft/ods-dataviz-sdk", @@ -52,7 +52,7 @@ "arrowParens": "avoid" }, "dependencies": { - "@opendatasoft/visualizations": "0.24.1", + "@opendatasoft/visualizations": "0.24.1-beta.2", "use-callback-ref": "^1.2.4" }, "devDependencies": { @@ -114,5 +114,5 @@ "tslib": "^2.1.0", "typescript": "4.6" }, - "gitHead": "d8439e859fbc458019572f50ac920e367719476a" + "gitHead": "5b28cc594764f53129f0de5847152dd55e27ab24" } diff --git a/packages/visualizations/LICENSE b/packages/visualizations/LICENSE new file mode 100644 index 00000000..bad9f456 --- /dev/null +++ b/packages/visualizations/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2021 Opendatasoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/visualizations/package.json b/packages/visualizations/package.json index 6054a44f..7d26041d 100644 --- a/packages/visualizations/package.json +++ b/packages/visualizations/package.json @@ -1,6 +1,6 @@ { "name": "@opendatasoft/visualizations", - "version": "0.24.1", + "version": "0.25.0", "license": "MIT", "author": "opendatasoft", "homepage": "https://github.com/opendatasoft/ods-dataviz-sdk", @@ -21,6 +21,7 @@ "module": "dist/index.es.js", "types": "dist/index.d.ts", "styles": "dist/index.css", + "svelte": "src/index.ts", "scripts": { "prepare": "rimraf dist && rollup --config", "build": "rollup --config", @@ -79,7 +80,6 @@ "rollup-plugin-postcss": "^4.0.2", "rollup-plugin-svelte": "^6.1.0", "rollup-plugin-terser": "^7.0.2", - "sass": "^1.70.0", "svelte": "^3.43.2", "svelte-check": "^2.2.7", "svelte-eslint-parser": "^0.33.1", @@ -104,6 +104,8 @@ "markdown-it": "^12.0.4", "markdown-it-link-attributes": "^3.0.0", "markdown-it-mark": "^3.0.1", + "sass": "^1.70.0", "tippy.js": "^6.3.7" - } + }, + "gitHead": "5b28cc594764f53129f0de5847152dd55e27ab24" } diff --git a/packages/visualizations/src/components/Chart/index.ts b/packages/visualizations/src/components/Chart/index.ts index 0bb19e2f..c2240392 100644 --- a/packages/visualizations/src/components/Chart/index.ts +++ b/packages/visualizations/src/components/Chart/index.ts @@ -1,21 +1,18 @@ -import * as ChartJs from 'chart.js'; +import { Chart as ChartModule, registerables, defaults } from 'chart.js'; import { TreemapController, TreemapElement } from 'chartjs-chart-treemap'; -import ChartDataLabels from 'chartjs-plugin-datalabels'; +import DataLabels from 'chartjs-plugin-datalabels'; import Stacked100Plugin from 'chartjs-plugin-stacked100'; import Chart from './Chart.svelte'; import PieDataLabelsPlugin from './pieDataLabelsPlugin'; -ChartJs.Chart.register(...ChartJs.registerables); -ChartJs.Chart.register(ChartDataLabels); -ChartJs.Chart.register(PieDataLabelsPlugin); -ChartJs.Chart.register(Stacked100Plugin); -ChartJs.Chart.register(TreemapController, TreemapElement); +ChartModule.register(...registerables); +ChartModule.register(DataLabels); +ChartModule.register(PieDataLabelsPlugin); +ChartModule.register(Stacked100Plugin); +ChartModule.register(TreemapController, TreemapElement); -ChartJs.defaults.animation = false; +defaults.animation = false; -// Export ChartJS to allow reusing instance and changing default, use case not supported // eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle -export const _ChartJs = ChartJs; -// eslint-disable-next-line @typescript-eslint/naming-convention, no-underscore-dangle -export const _ChartDataLabels = ChartDataLabels; +export const _ChartDataLabels = DataLabels; export default Chart; diff --git a/packages/visualizations/src/components/Map/Svg/Map.svelte b/packages/visualizations/src/components/Map/Svg/Map.svelte index d80e5356..4dac327b 100644 --- a/packages/visualizations/src/components/Map/Svg/Map.svelte +++ b/packages/visualizations/src/components/Map/Svg/Map.svelte @@ -1,5 +1,6 @@ + {#if records.length === 0 && !loadingRowsNumber} + + + + {/if} {#if loadingRowsNumber} {#each Array(loadingRowsNumber) as _} @@ -35,4 +43,10 @@ :global(.ods-dataviz--default) tr:last-child { border-bottom: none; } + + :global(.ods-dataviz--default) em { + text-align: center; + width: 100%; + display: block; + } diff --git a/packages/visualizations/src/components/Table/Table.svelte b/packages/visualizations/src/components/Table/Table.svelte index 29d7f6d3..f82d7b85 100644 --- a/packages/visualizations/src/components/Table/Table.svelte +++ b/packages/visualizations/src/components/Table/Table.svelte @@ -9,6 +9,7 @@ export let columns: Column[]; export let records: DataFrame | undefined; export let description: string | undefined; + export let emptyStateLabel: string | undefined; const tableId = `table-${generateId()}`; @@ -17,7 +18,7 @@
+ {emptyStateLabel} +
{#if records} - + {/if}
diff --git a/packages/visualizations/src/components/Table/TableCard.svelte b/packages/visualizations/src/components/Table/TableCard.svelte index 6886e85b..5b527b99 100644 --- a/packages/visualizations/src/components/Table/TableCard.svelte +++ b/packages/visualizations/src/components/Table/TableCard.svelte @@ -21,6 +21,7 @@ unstyled, locale: localeOption, pagination, + emptyStateLabel, } = options); $: $locale = localeOption || navigator.language; $: defaultLoadingRowsNumber = pagination ? pagination.recordsPerPage : 5; @@ -32,7 +33,7 @@
- +
{#if pagination} {/if} diff --git a/packages/visualizations/src/components/Table/types.ts b/packages/visualizations/src/components/Table/types.ts index d6b2170e..e0050e83 100644 --- a/packages/visualizations/src/components/Table/types.ts +++ b/packages/visualizations/src/components/Table/types.ts @@ -98,6 +98,7 @@ export type TableOptions = { title?: string; subtitle?: string; description?: string; + emptyStateLabel?: string; source?: Source; /** To format date and number with the right locale. Default is from browser language */ locale?: string; From ec0c435fce5049bbbd9eeb1c1db6e70ed576c72a Mon Sep 17 00:00:00 2001 From: Kevin Fabre Date: Wed, 26 Jun 2024 11:42:37 +0200 Subject: [PATCH 7/7] chore(release): publish new versions - @opendatasoft/visualizations@0.25.0 - @opendatasoft/visualizations-react@0.25.0 --- package-lock.json | 6 +++--- packages/visualizations-react/CHANGELOG.md | 11 +++++++++++ packages/visualizations-react/package.json | 4 ++-- packages/visualizations/CHANGELOG.md | 16 ++++++++++++++++ packages/visualizations/package.json | 2 +- 5 files changed, 33 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2c998706..f7fc68ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29142,7 +29142,7 @@ }, "packages/visualizations": { "name": "@opendatasoft/visualizations", - "version": "0.24.1", + "version": "0.25.0", "license": "MIT", "dependencies": { "@placemarkio/geo-viewport": "^1.0.2", @@ -29215,10 +29215,10 @@ }, "packages/visualizations-react": { "name": "@opendatasoft/visualizations-react", - "version": "0.24.1", + "version": "0.25.0", "license": "MIT", "dependencies": { - "@opendatasoft/visualizations": "0.24.1", + "@opendatasoft/visualizations": "0.25.0", "use-callback-ref": "^1.2.4" }, "devDependencies": { diff --git a/packages/visualizations-react/CHANGELOG.md b/packages/visualizations-react/CHANGELOG.md index fa3c9142..1a6e3bc9 100644 --- a/packages/visualizations-react/CHANGELOG.md +++ b/packages/visualizations-react/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [0.25.0](https://github.com/opendatasoft/ods-dataviz-sdk/compare/@opendatasoft/visualizations-react@0.24.1...@opendatasoft/visualizations-react@0.25.0) (2024-06-26) + + +### Features + +* **Table:** loading state ([#240](https://github.com/opendatasoft/ods-dataviz-sdk/issues/240)) ([65bbcea](https://github.com/opendatasoft/ods-dataviz-sdk/commit/65bbcea85313c602bebb0f46c4b6647594c9c623)) + + + + + ## [0.24.1](https://github.com/opendatasoft/ods-dataviz-sdk/compare/@opendatasoft/visualizations-react@0.24.0...@opendatasoft/visualizations-react@0.24.1) (2024-06-03) diff --git a/packages/visualizations-react/package.json b/packages/visualizations-react/package.json index 36aa7c4c..3603a242 100644 --- a/packages/visualizations-react/package.json +++ b/packages/visualizations-react/package.json @@ -1,6 +1,6 @@ { "name": "@opendatasoft/visualizations-react", - "version": "0.24.1", + "version": "0.25.0", "license": "MIT", "author": "opendatasoft", "homepage": "https://github.com/opendatasoft/ods-dataviz-sdk", @@ -52,7 +52,7 @@ "arrowParens": "avoid" }, "dependencies": { - "@opendatasoft/visualizations": "0.24.1", + "@opendatasoft/visualizations": "0.25.0", "use-callback-ref": "^1.2.4" }, "devDependencies": { diff --git a/packages/visualizations/CHANGELOG.md b/packages/visualizations/CHANGELOG.md index 68e53aec..5c2f2913 100644 --- a/packages/visualizations/CHANGELOG.md +++ b/packages/visualizations/CHANGELOG.md @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [0.25.0](https://github.com/opendatasoft/ods-dataviz-sdk/compare/@opendatasoft/visualizations@0.24.1...@opendatasoft/visualizations@0.25.0) (2024-06-26) + + +### Bug Fixes + +* **Table:** basic select style ([#244](https://github.com/opendatasoft/ods-dataviz-sdk/issues/244)) ([6095574](https://github.com/opendatasoft/ods-dataviz-sdk/commit/6095574a7a0df037b4710ddcd778bdc72b200498)) + + +### Features + +* **Table:** loading state ([#240](https://github.com/opendatasoft/ods-dataviz-sdk/issues/240)) ([65bbcea](https://github.com/opendatasoft/ods-dataviz-sdk/commit/65bbcea85313c602bebb0f46c4b6647594c9c623)) + + + + + ## [0.24.1](https://github.com/opendatasoft/ods-dataviz-sdk/compare/@opendatasoft/visualizations@0.24.0...@opendatasoft/visualizations@0.24.1) (2024-06-03) diff --git a/packages/visualizations/package.json b/packages/visualizations/package.json index 445f793f..7d26041d 100644 --- a/packages/visualizations/package.json +++ b/packages/visualizations/package.json @@ -1,6 +1,6 @@ { "name": "@opendatasoft/visualizations", - "version": "0.24.1", + "version": "0.25.0", "license": "MIT", "author": "opendatasoft", "homepage": "https://github.com/opendatasoft/ods-dataviz-sdk",