diff --git a/package-lock.json b/package-lock.json index 8bf25300c..f7fc68ab5 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.25.0", "use-callback-ref": "^1.2.4" }, "devDependencies": { diff --git a/package.json b/package.json index f64ac9fe8..a2c0b0a6a 100644 --- a/package.json +++ b/package.json @@ -30,14 +30,14 @@ "build-ci": "npm ci --workspaces --include-workspace-root --install-links", "test": "lerna run test --parallel --no-bail", "watch": "lerna run watch --parallel --stream", - "lint": "lerna run lint:prettier:check,lint:eslint:check --parallel --no-bail", + "lint": "lerna run lint:prettier:check,lint:eslint:check,lint:svelte:check --parallel --no-bail", "lint:fix": "lerna run lint:prettier:fix,lint:eslint:fix --parallel --no-bail", "build-package-lock": "lerna run build-package-lock", "storybook": "lerna run --scope=@opendatasoft/visualizations-react storybook" }, "devDependencies": { "lerna": "^8.1.2", - "nx": "^19.0.7" + "nx": "^19.2.3" }, "dependencies": { "-": "^0.0.1" diff --git a/packages/visualizations-react/CHANGELOG.md b/packages/visualizations-react/CHANGELOG.md index fa3c91420..1a6e3bc9a 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/LICENSE b/packages/visualizations-react/LICENSE new file mode 100644 index 000000000..bad9f456f --- /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 154f4d640..3603a2422 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": { @@ -114,5 +114,5 @@ "tslib": "^2.1.0", "typescript": "4.6" }, - "gitHead": "d8439e859fbc458019572f50ac920e367719476a" + "gitHead": "5b28cc594764f53129f0de5847152dd55e27ab24" } diff --git a/packages/visualizations-react/src/index.ts b/packages/visualizations-react/src/index.ts index 72ee97818..481e1be5c 100644 --- a/packages/visualizations-react/src/index.ts +++ b/packages/visualizations-react/src/index.ts @@ -16,7 +16,7 @@ import type { MarkdownTextProps, ChoroplethGeoJsonProps, ChoroplethVectorTilesProps, - MapPoiProps, + PoiMapProps, TableProps, } from '@opendatasoft/visualizations'; import reactifySvelte from 'reactify'; @@ -39,5 +39,5 @@ export const ChoroplethSvg = reactifySvelte( _ChoroplethSvg, 'ods-visualizations-choropleth-svg' ); -export const PoiMap = reactifySvelte(_PoiMap, 'ods-visualizations-poi-map'); +export const PoiMap = reactifySvelte(_PoiMap, 'ods-visualizations-poi-map'); export const Table = reactifySvelte(_Table, 'ods-visualizations-table'); diff --git a/packages/visualizations-react/stories/Table/Table.stories.tsx b/packages/visualizations-react/stories/Table/Table.stories.tsx index fcf198910..d848855db 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,16 @@ export const Unstyled = Template.bind({}); Unstyled.args = { data, options: { ...options, unstyled: true }, -}; \ No newline at end of file +}; + +export const Loading = Template.bind({}); +Loading.args = { + data: fetchingData, + options, +}; + +export const emptyState = Template.bind({}); +emptyState.args = { + data: { value: [], loading: false }, + options: { ...options, emptyStateLabel: 'Neniuj registroj trovitaj...' }, +}; diff --git a/packages/visualizations-react/stories/Table/options.ts b/packages/visualizations-react/stories/Table/options.ts index 626478d49..3f34f054e 100644 --- a/packages/visualizations-react/stories/Table/options.ts +++ b/packages/visualizations-react/stories/Table/options.ts @@ -119,7 +119,6 @@ export const columns: Column[] = [ bbox: [-6.855469, 41.343825, 11.645508, 51.37178], zoom: 3, }, - display: () => 'Click to open map', sources: (v: unknown) => ({ 'table-stories' : { type: 'geojson', diff --git a/packages/visualizations/CHANGELOG.md b/packages/visualizations/CHANGELOG.md index 68e53aec5..5c2f2913c 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/LICENSE b/packages/visualizations/LICENSE new file mode 100644 index 000000000..bad9f456f --- /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 6054a44f8..7d26041df 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 0bb19e2f6..c2240392c 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/ChoroplethMap/Svg/Map.svelte b/packages/visualizations/src/components/ChoroplethMap/Svg/Map.svelte index d80e5356a..4dac327bd 100644 --- a/packages/visualizations/src/components/ChoroplethMap/Svg/Map.svelte +++ b/packages/visualizations/src/components/ChoroplethMap/Svg/Map.svelte @@ -1,5 +1,6 @@ - {#each records as record} + {#if records.length === 0 && !loadingRowsNumber} - {#each columns as column} - - {/each} + - {/each} + {/if} + {#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/Format/GeoFormat.svelte b/packages/visualizations/src/components/Table/Cell/Format/GeoFormat.svelte index 40b038014..587cd6d48 100644 --- a/packages/visualizations/src/components/Table/Cell/Format/GeoFormat.svelte +++ b/packages/visualizations/src/components/Table/Cell/Format/GeoFormat.svelte @@ -1,42 +1,62 @@ -
+
{ + showMap = true; + }, + onUntrigger: () => { + showMap = false; + }, + }} +> -
{display(rawValue)}
+
{display(rawValue)}
+ {#if showMap} -
- +
+
{/if}
- diff --git a/packages/visualizations/src/components/Table/Cell/LoadingCell.svelte b/packages/visualizations/src/components/Table/Cell/LoadingCell.svelte new file mode 100644 index 000000000..994275066 --- /dev/null +++ b/packages/visualizations/src/components/Table/Cell/LoadingCell.svelte @@ -0,0 +1,34 @@ +
+ + diff --git a/packages/visualizations/src/components/Table/Cell/index.ts b/packages/visualizations/src/components/Table/Cell/index.ts index 038973c32..e931d588b 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/Headers/SortButton.svelte b/packages/visualizations/src/components/Table/Headers/SortButton.svelte index 75b1fbc5e..d9fc05dec 100644 --- a/packages/visualizations/src/components/Table/Headers/SortButton.svelte +++ b/packages/visualizations/src/components/Table/Headers/SortButton.svelte @@ -1,5 +1,6 @@ diff --git a/packages/visualizations/src/components/Table/Table.svelte b/packages/visualizations/src/components/Table/Table.svelte index ecbbb35a5..f82d7b854 100644 --- a/packages/visualizations/src/components/Table/Table.svelte +++ b/packages/visualizations/src/components/Table/Table.svelte @@ -5,18 +5,20 @@ 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; + export let emptyStateLabel: string | undefined; const tableId = `table-${generateId()}`; -
+
+ {emptyStateLabel} +
+
+
{#if records} - + {/if}
@@ -30,7 +32,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; diff --git a/packages/visualizations/src/components/Table/TableCard.svelte b/packages/visualizations/src/components/Table/TableCard.svelte index d48a1e932..5b527b99e 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, @@ -21,8 +21,11 @@ unstyled, locale: localeOption, pagination, + emptyStateLabel, } = 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 +33,7 @@
- +
{#if pagination} {/if} diff --git a/packages/visualizations/src/components/Table/types.ts b/packages/visualizations/src/components/Table/types.ts index fec416a94..ee519df3d 100644 --- a/packages/visualizations/src/components/Table/types.ts +++ b/packages/visualizations/src/components/Table/types.ts @@ -2,7 +2,7 @@ import type { DataFrame, Source } from '../types'; import type { DATA_FORMAT } from './constants'; import type { Pagination } from '../Pagination/types'; import type { Async } from '../../types'; -import type { MapData, MapOptions } from '../utils/Map/types'; +import type { WebGlMapData, WebGlMapOptions } from '../Map'; type DataFormatKey = keyof typeof DATA_FORMAT; export type DataFormat = typeof DATA_FORMAT[DataFormatKey]; @@ -89,10 +89,10 @@ export type URLColumn = BaseColumn & { export type GeoColumn = BaseColumn & { dataFormat: typeof DATA_FORMAT.geo; options?: Partial<{ - mapOptions: MapOptions; + mapOptions: WebGlMapOptions; display: (v: unknown) => string; - sources: (v: unknown) => MapData['sources']; - layers: (v: unknown) => MapData['layers']; + sources: (v: unknown) => WebGlMapData['sources']; + layers: (v: unknown) => WebGlMapData['layers']; }>; }; @@ -110,6 +110,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; diff --git a/packages/visualizations/src/components/utils/Map/index.ts b/packages/visualizations/src/components/utils/Map/index.ts deleted file mode 100644 index 050fdb303..000000000 --- a/packages/visualizations/src/components/utils/Map/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import Map from './Map.svelte'; -import 'maplibre-gl/dist/maplibre-gl.css'; - -export default Map; diff --git a/packages/visualizations/src/components/utils/index.ts b/packages/visualizations/src/components/utils/index.ts index 35df05ff8..a8db14489 100644 --- a/packages/visualizations/src/components/utils/index.ts +++ b/packages/visualizations/src/components/utils/index.ts @@ -1,5 +1,3 @@ -/* eslint-disable import/prefer-default-export */ -export { POPUP_DISPLAY } from './Map/constants'; /** * Check (in the compiler) that a switch block is exhaustive. * Documentation: https://www.typescriptlang.org/docs/handbook/2/narrowing.html#exhaustiveness-checking diff --git a/packages/visualizations/src/components/utils/tippy.ts b/packages/visualizations/src/components/utils/tippy/index.ts similarity index 94% rename from packages/visualizations/src/components/utils/tippy.ts rename to packages/visualizations/src/components/utils/tippy/index.ts index 4efddb000..2802b9b8f 100644 --- a/packages/visualizations/src/components/utils/tippy.ts +++ b/packages/visualizations/src/components/utils/tippy/index.ts @@ -1,5 +1,6 @@ import tippy, { Props } from 'tippy.js'; import 'tippy.js/dist/tippy.css'; +import './themes.scss'; export default function tippyAction(node: HTMLElement, initialProps: Partial) { const instance = tippy(node, initialProps); diff --git a/packages/visualizations/src/components/utils/tippy/themes.scss b/packages/visualizations/src/components/utils/tippy/themes.scss new file mode 100644 index 000000000..47cc2a390 --- /dev/null +++ b/packages/visualizations/src/components/utils/tippy/themes.scss @@ -0,0 +1,26 @@ +$table-theme: 'ods-visualization-table'; +$table-background-color: white; +$tippy-box-shadow: 0 6px 13px 0 rgba(0, 0, 0, 0.26); + +.tippy-box[data-theme~='#{$table-theme}'] { + background-color: $table-background-color; + box-shadow: $tippy-box-shadow; +} + +.tippy-box[data-theme~='#{$table-theme}'] > .tippy-content { + padding: 6px; + border-radius: 6px; +} + +.tippy-box[data-theme~='#{$table-theme}'][data-placement^='top'] > .tippy-arrow::before { + border-top-color: $table-background-color; +} +.tippy-box[data-theme~='#{$table-theme}'][data-placement^='bottom'] > .tippy-arrow::before { + border-bottom-color: $table-background-color; +} +.tippy-box[data-theme~='#{$table-theme}'][data-placement^='left'] > .tippy-arrow::before { + border-left-color: $table-background-color; +} +.tippy-box[data-theme~='#{$table-theme}'][data-placement^='right'] > .tippy-arrow::before { + border-right-color: $table-background-color; +} diff --git a/packages/visualizations/src/components/utils/types.ts b/packages/visualizations/src/components/utils/types.ts deleted file mode 100644 index afe286c5a..000000000 --- a/packages/visualizations/src/components/utils/types.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './Map/types'; diff --git a/packages/visualizations/src/index.ts b/packages/visualizations/src/index.ts index 0f4ff4d19..3bd940667 100644 --- a/packages/visualizations/src/index.ts +++ b/packages/visualizations/src/index.ts @@ -1,22 +1,21 @@ -export { default as Chart, _ChartJs, _ChartDataLabels } from './components/Chart'; +export { default as Chart, _ChartDataLabels } from './components/Chart'; export { default as MarkdownText } from './components/MarkdownText'; export { default as KpiCard } from './components/KpiCard'; export { ChoroplethGeoJson, ChoroplethVectorTiles } from './components/ChoroplethMap/WebGl'; export { default as ChoroplethSvg } from './components/ChoroplethMap/Svg'; -export { default as PoiMap } from './components/PoiMap'; export { default as Table } from './components/Table'; +export * from './components/Map'; + export * from './types'; export * from './components/types'; export * from './components/Chart/types'; export * from './components/KpiCard/types'; export * from './components/ChoroplethMap/types'; export * from './components/MarkdownText/types'; -export * from './components/PoiMap/types'; export * from './components/Legend/types'; export * from './components/Table/types'; export * from './components/Pagination/types'; -export * from './components/utils/types'; export * from './components/utils'; /* We export Svelte types from the main package to avoid conflicting versions