diff --git a/package-lock.json b/package-lock.json index dabbcd354..fbc103658 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,8 +14,8 @@ "@esri/arcgis-rest-portal": "^3.4.2", "@esri/arcgis-rest-request": "^3.4.2", "@esri/arcgis-rest-service-admin": "^3.4.2", - "@esri/calcite-components": "2.0.0", - "@esri/calcite-design-tokens": "2.0.0", + "@esri/calcite-components": "2.4.0", + "@esri/calcite-design-tokens": "2.1.1", "@esri/hub-common": "^12.37.1", "@esri/hub-initiatives": "^12.4.1", "@esri/hub-sites": "^12.6.0", @@ -39,12 +39,12 @@ "@stencil/core": "^4.8.0", "@stencil/sass": "^3.0.7", "@stencil/store": "^2.0.11", - "@types/arcgis-js-api": "^4.28.0", "@types/autoprefixer": "^10.2.0", "@types/jest": "^27.0.3", "@types/node": "^16.11.11", "@typescript-eslint/eslint-plugin": "^5.4.0", "@typescript-eslint/parser": "^5.39.0", + "arcgis-js-api": "^4.29.0-next.20240118", "autoprefixer": "^10.4.4", "babel-jest": "^29.7.0", "dotenv": "^10.0.0", @@ -2608,35 +2608,23 @@ "integrity": "sha512-t6QWdVNmqB9OloYAvVWYNjvqlnrXs/m0nCRNwPGt3ZiAPXn5CpkpSn2UD6LPqGp6vPxKG81lbFQvwCw9az4qIg==" }, "node_modules/@esri/calcite-components": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@esri/calcite-components/-/calcite-components-2.0.0.tgz", - "integrity": "sha512-D/4WYQzf8GbIkXKqSjJsAz0wVXdO2EAPw00oCzbjdl3cfPA7gnic2QPCLPVQvGI+x2FAMWnUePHUblndMb8OLQ==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@esri/calcite-components/-/calcite-components-2.4.0.tgz", + "integrity": "sha512-OCzxKlxaDAqLtHtfq9CEZ3IJRWeqUb2ZSo6PDEpvCZFfiCUQHqY+pUTkQyxAsJ4boYl61QYxNn/4XOsssQ0bpg==", "dependencies": { - "@floating-ui/dom": "1.5.3", - "@stencil/core": "4.7.2", - "@types/color": "3.0.5", + "@floating-ui/dom": "1.5.4", + "@stencil/core": "4.9.0", + "@types/color": "3.0.6", "color": "4.2.3", "composed-offset-position": "0.0.4", "dayjs": "1.11.10", "focus-trap": "7.5.4", "form-request-submit-polyfill": "2.0.0", "lodash-es": "4.17.21", - "sortablejs": "1.15.0", + "sortablejs": "1.15.1", "timezone-groups": "0.8.0" } }, - "node_modules/@esri/calcite-components/node_modules/@stencil/core": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.7.2.tgz", - "integrity": "sha512-sPPDYrXiTbfeUF5CCyfqysXK/yfTHC4xYR1+nHzGkS2vhRSBOLp0oPuB+xkJLKA+K2ZqDJUxpOnDxy1CLWwBXA==", - "bin": { - "stencil": "bin/stencil" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.10.0" - } - }, "node_modules/@esri/calcite-components/node_modules/focus-trap": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-7.5.4.tgz", @@ -2646,9 +2634,9 @@ } }, "node_modules/@esri/calcite-design-tokens": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@esri/calcite-design-tokens/-/calcite-design-tokens-2.0.0.tgz", - "integrity": "sha512-irQbYlBSAi7XoATnp6WXBXfX+16RUlP3Cx5dBLy3LW7Mq3xCbCuSCM26SNTG2HOOw4Kmb+NzrpWHldRNqpwUCA==" + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@esri/calcite-design-tokens/-/calcite-design-tokens-2.1.1.tgz", + "integrity": "sha512-E3n4RQjkmQKjDvmT01pfraIKkzYTxVUX1ng98iQ6gaTPpIAnRlp9p1uGOJ3jo8UZw10Vk1/cSWdn2WsqOFSn2A==" }, "node_modules/@esri/eslint-plugin-calcite-components": { "version": "0.2.2", @@ -2825,26 +2813,26 @@ "dev": true }, "node_modules/@floating-ui/core": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.0.tgz", - "integrity": "sha512-kK1h4m36DQ0UHGj5Ah4db7R0rHemTqqO0QLvUqi1/mUUp3LuAWbWxdxSIf/XsnH9VS6rRVPLJCncjRzUvyCLXg==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.0.tgz", + "integrity": "sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g==", "dependencies": { - "@floating-ui/utils": "^0.1.3" + "@floating-ui/utils": "^0.2.1" } }, "node_modules/@floating-ui/dom": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.3.tgz", - "integrity": "sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.4.tgz", + "integrity": "sha512-jByEsHIY+eEdCjnTVu+E3ephzTOzkQ8hgUfGwos+bg7NlH33Zc5uO+QHz1mrQUOgIKKDD1RtS201P9NvAfq3XQ==", "dependencies": { - "@floating-ui/core": "^1.4.2", - "@floating-ui/utils": "^0.1.3" + "@floating-ui/core": "^1.5.3", + "@floating-ui/utils": "^0.2.0" } }, "node_modules/@floating-ui/utils": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.6.tgz", - "integrity": "sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A==" + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.1.tgz", + "integrity": "sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==" }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.10", @@ -3649,9 +3637,9 @@ } }, "node_modules/@stencil/core": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.8.0.tgz", - "integrity": "sha512-iNEaMiEt9oFZXSjZ7qkdlBpPTzWzBgWM7go8nI8a7V6ZOkmdVhhT0xGQD7OY13v5ZuDoIw5IsGvbIAGefhIhhQ==", + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.9.0.tgz", + "integrity": "sha512-aWSkhBmk3yPwRAkUwBbzRwmdhb8hKiQ/JMr9m5jthpBZLjtppYbzz6PN2MhSMDfRp6K93eQw5WogSEH4HHuB6w==", "bin": { "stencil": "bin/stencil" }, @@ -3735,16 +3723,6 @@ "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", "dev": true }, - "node_modules/@types/arcgis-js-api": { - "version": "4.28.0", - "resolved": "https://registry.npmjs.org/@types/arcgis-js-api/-/arcgis-js-api-4.28.0.tgz", - "integrity": "sha512-BYNaT12l3T2GQ+Bj7jbMUhe1K6CaCSMj/uaAOmZYwV/FaR8wJ8UBYwdEaX6oFus7oHgLX0NcbfTrj4TgUcGSpg==", - "deprecated": "This is a stub types definition. arcgis-js-api provides its own type definitions, so you do not need this installed.", - "dev": true, - "dependencies": { - "arcgis-js-api": "*" - } - }, "node_modules/@types/autoprefixer": { "version": "10.2.0", "resolved": "https://registry.npmjs.org/@types/autoprefixer/-/autoprefixer-10.2.0.tgz", @@ -3797,9 +3775,9 @@ } }, "node_modules/@types/color": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@types/color/-/color-3.0.5.tgz", - "integrity": "sha512-T9yHCNtd8ap9L/r8KEESu5RDMLkoWXHo7dTureNoI1dbp25NsCN054vOu09iniIjR21MXUL+LU9bkIWrbyg8gg==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/color/-/color-3.0.6.tgz", + "integrity": "sha512-NMiNcZFRUAiUUCCf7zkAelY8eV3aKqfbzyFQlXpPIEeoNDbsEHGpb854V3gzTsGKYj830I5zPuOwU/TP5/cW6A==", "dependencies": { "@types/color-convert": "*" } @@ -4329,9 +4307,9 @@ "dev": true }, "node_modules/arcgis-js-api": { - "version": "4.29.0-next.20231206", - "resolved": "https://registry.npmjs.org/arcgis-js-api/-/arcgis-js-api-4.29.0-next.20231206.tgz", - "integrity": "sha512-1mtc1F9i0InjH9yf+GyxZS2YHyNnKHMBxYEvcFIz+Mwfq3ksbgGhdgBWx/Aj1bL4fSveExBFNV8EInH2SAkaHQ==" + "version": "4.29.0-next.20240118", + "resolved": "https://registry.npmjs.org/arcgis-js-api/-/arcgis-js-api-4.29.0-next.20240118.tgz", + "integrity": "sha512-MJTzmDVCJM31LrO27WeX/F3I8jw7jUCcg2wSBtBLG/FRUlbs9n7AyBrFb/9gY4ewAxiQxi9WXah+ZryqJddyhg==" }, "node_modules/arg": { "version": "5.0.2", @@ -11593,9 +11571,9 @@ } }, "node_modules/sortablejs": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.0.tgz", - "integrity": "sha512-bv9qgVMjUMf89wAvM6AxVvS/4MX3sPeN0+agqShejLU5z5GX4C75ow1O2e5k4L6XItUyAK3gH6AxSbXrOM5e8w==" + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.1.tgz", + "integrity": "sha512-P5Cjvb0UG1ZVNiDPj/n4V+DinttXG6K8n7vM/HQf0C25K3YKQTQY6fsr/sEGsJGpQ9exmPxluHxKBc0mLKU1lQ==" }, "node_modules/source-map": { "version": "0.6.1", @@ -14651,28 +14629,23 @@ "integrity": "sha512-t6QWdVNmqB9OloYAvVWYNjvqlnrXs/m0nCRNwPGt3ZiAPXn5CpkpSn2UD6LPqGp6vPxKG81lbFQvwCw9az4qIg==" }, "@esri/calcite-components": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@esri/calcite-components/-/calcite-components-2.0.0.tgz", - "integrity": "sha512-D/4WYQzf8GbIkXKqSjJsAz0wVXdO2EAPw00oCzbjdl3cfPA7gnic2QPCLPVQvGI+x2FAMWnUePHUblndMb8OLQ==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@esri/calcite-components/-/calcite-components-2.4.0.tgz", + "integrity": "sha512-OCzxKlxaDAqLtHtfq9CEZ3IJRWeqUb2ZSo6PDEpvCZFfiCUQHqY+pUTkQyxAsJ4boYl61QYxNn/4XOsssQ0bpg==", "requires": { - "@floating-ui/dom": "1.5.3", - "@stencil/core": "4.7.2", - "@types/color": "3.0.5", + "@floating-ui/dom": "1.5.4", + "@stencil/core": "4.9.0", + "@types/color": "3.0.6", "color": "4.2.3", "composed-offset-position": "0.0.4", "dayjs": "1.11.10", "focus-trap": "7.5.4", "form-request-submit-polyfill": "2.0.0", "lodash-es": "4.17.21", - "sortablejs": "1.15.0", + "sortablejs": "1.15.1", "timezone-groups": "0.8.0" }, "dependencies": { - "@stencil/core": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.7.2.tgz", - "integrity": "sha512-sPPDYrXiTbfeUF5CCyfqysXK/yfTHC4xYR1+nHzGkS2vhRSBOLp0oPuB+xkJLKA+K2ZqDJUxpOnDxy1CLWwBXA==" - }, "focus-trap": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-7.5.4.tgz", @@ -14684,9 +14657,9 @@ } }, "@esri/calcite-design-tokens": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@esri/calcite-design-tokens/-/calcite-design-tokens-2.0.0.tgz", - "integrity": "sha512-irQbYlBSAi7XoATnp6WXBXfX+16RUlP3Cx5dBLy3LW7Mq3xCbCuSCM26SNTG2HOOw4Kmb+NzrpWHldRNqpwUCA==" + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@esri/calcite-design-tokens/-/calcite-design-tokens-2.1.1.tgz", + "integrity": "sha512-E3n4RQjkmQKjDvmT01pfraIKkzYTxVUX1ng98iQ6gaTPpIAnRlp9p1uGOJ3jo8UZw10Vk1/cSWdn2WsqOFSn2A==" }, "@esri/eslint-plugin-calcite-components": { "version": "0.2.2", @@ -14826,26 +14799,26 @@ } }, "@floating-ui/core": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.0.tgz", - "integrity": "sha512-kK1h4m36DQ0UHGj5Ah4db7R0rHemTqqO0QLvUqi1/mUUp3LuAWbWxdxSIf/XsnH9VS6rRVPLJCncjRzUvyCLXg==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.0.tgz", + "integrity": "sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g==", "requires": { - "@floating-ui/utils": "^0.1.3" + "@floating-ui/utils": "^0.2.1" } }, "@floating-ui/dom": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.3.tgz", - "integrity": "sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.4.tgz", + "integrity": "sha512-jByEsHIY+eEdCjnTVu+E3ephzTOzkQ8hgUfGwos+bg7NlH33Zc5uO+QHz1mrQUOgIKKDD1RtS201P9NvAfq3XQ==", "requires": { - "@floating-ui/core": "^1.4.2", - "@floating-ui/utils": "^0.1.3" + "@floating-ui/core": "^1.5.3", + "@floating-ui/utils": "^0.2.0" } }, "@floating-ui/utils": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.6.tgz", - "integrity": "sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A==" + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.1.tgz", + "integrity": "sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==" }, "@humanwhocodes/config-array": { "version": "0.11.10", @@ -15509,9 +15482,9 @@ } }, "@stencil/core": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.8.0.tgz", - "integrity": "sha512-iNEaMiEt9oFZXSjZ7qkdlBpPTzWzBgWM7go8nI8a7V6ZOkmdVhhT0xGQD7OY13v5ZuDoIw5IsGvbIAGefhIhhQ==" + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.9.0.tgz", + "integrity": "sha512-aWSkhBmk3yPwRAkUwBbzRwmdhb8hKiQ/JMr9m5jthpBZLjtppYbzz6PN2MhSMDfRp6K93eQw5WogSEH4HHuB6w==" }, "@stencil/react-output-target": { "version": "0.5.3", @@ -15571,15 +15544,6 @@ "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", "dev": true }, - "@types/arcgis-js-api": { - "version": "4.28.0", - "resolved": "https://registry.npmjs.org/@types/arcgis-js-api/-/arcgis-js-api-4.28.0.tgz", - "integrity": "sha512-BYNaT12l3T2GQ+Bj7jbMUhe1K6CaCSMj/uaAOmZYwV/FaR8wJ8UBYwdEaX6oFus7oHgLX0NcbfTrj4TgUcGSpg==", - "dev": true, - "requires": { - "arcgis-js-api": "*" - } - }, "@types/autoprefixer": { "version": "10.2.0", "resolved": "https://registry.npmjs.org/@types/autoprefixer/-/autoprefixer-10.2.0.tgz", @@ -15631,9 +15595,9 @@ } }, "@types/color": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@types/color/-/color-3.0.5.tgz", - "integrity": "sha512-T9yHCNtd8ap9L/r8KEESu5RDMLkoWXHo7dTureNoI1dbp25NsCN054vOu09iniIjR21MXUL+LU9bkIWrbyg8gg==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/color/-/color-3.0.6.tgz", + "integrity": "sha512-NMiNcZFRUAiUUCCf7zkAelY8eV3aKqfbzyFQlXpPIEeoNDbsEHGpb854V3gzTsGKYj830I5zPuOwU/TP5/cW6A==", "requires": { "@types/color-convert": "*" } @@ -16020,9 +15984,9 @@ "dev": true }, "arcgis-js-api": { - "version": "4.29.0-next.20231206", - "resolved": "https://registry.npmjs.org/arcgis-js-api/-/arcgis-js-api-4.29.0-next.20231206.tgz", - "integrity": "sha512-1mtc1F9i0InjH9yf+GyxZS2YHyNnKHMBxYEvcFIz+Mwfq3ksbgGhdgBWx/Aj1bL4fSveExBFNV8EInH2SAkaHQ==" + "version": "4.29.0-next.20240118", + "resolved": "https://registry.npmjs.org/arcgis-js-api/-/arcgis-js-api-4.29.0-next.20240118.tgz", + "integrity": "sha512-MJTzmDVCJM31LrO27WeX/F3I8jw7jUCcg2wSBtBLG/FRUlbs9n7AyBrFb/9gY4ewAxiQxi9WXah+ZryqJddyhg==" }, "arg": { "version": "5.0.2", @@ -21396,9 +21360,9 @@ } }, "sortablejs": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.0.tgz", - "integrity": "sha512-bv9qgVMjUMf89wAvM6AxVvS/4MX3sPeN0+agqShejLU5z5GX4C75ow1O2e5k4L6XItUyAK3gH6AxSbXrOM5e8w==" + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.1.tgz", + "integrity": "sha512-P5Cjvb0UG1ZVNiDPj/n4V+DinttXG6K8n7vM/HQf0C25K3YKQTQY6fsr/sEGsJGpQ9exmPxluHxKBc0mLKU1lQ==" }, "source-map": { "version": "0.6.1", diff --git a/package.json b/package.json index 4b6aee4c5..b9a2b004a 100644 --- a/package.json +++ b/package.json @@ -41,12 +41,12 @@ "@stencil/core": "^4.8.0", "@stencil/sass": "^3.0.7", "@stencil/store": "^2.0.11", - "@types/arcgis-js-api": "^4.28.0", "@types/autoprefixer": "^10.2.0", "@types/jest": "^27.0.3", "@types/node": "^16.11.11", "@typescript-eslint/eslint-plugin": "^5.4.0", "@typescript-eslint/parser": "^5.39.0", + "arcgis-js-api": "^4.29.0-next.20240118", "autoprefixer": "^10.4.4", "babel-jest": "^29.7.0", "dotenv": "^10.0.0", @@ -79,8 +79,8 @@ "@esri/arcgis-rest-portal": "^3.4.2", "@esri/arcgis-rest-request": "^3.4.2", "@esri/arcgis-rest-service-admin": "^3.4.2", - "@esri/calcite-components": "2.0.0", - "@esri/calcite-design-tokens": "2.0.0", + "@esri/calcite-components": "2.4.0", + "@esri/calcite-design-tokens": "2.1.1", "@esri/hub-common": "^12.37.1", "@esri/hub-initiatives": "^12.4.1", "@esri/hub-sites": "^12.6.0", diff --git a/src/components/buffer-tools/readme.md b/src/components/buffer-tools/readme.md index 2e9bdca25..6aae8dff2 100644 --- a/src/components/buffer-tools/readme.md +++ b/src/components/buffer-tools/readme.md @@ -35,6 +35,12 @@ Get the translated unit for display +#### Parameters + +| Name | Type | Description | +| ------ | -------- | ----------- | +| `unit` | `string` | | + #### Returns Type: `Promise` diff --git a/src/components/crowdsource-manager/readme.md b/src/components/crowdsource-manager/readme.md index 4977cf597..5b2fae846 100644 --- a/src/components/crowdsource-manager/readme.md +++ b/src/components/crowdsource-manager/readme.md @@ -161,6 +161,7 @@ graph TD; map-layer-picker --> calcite-option map-layer-picker --> calcite-dropdown-item calcite-select --> calcite-icon + calcite-combobox --> calcite-combobox-item calcite-combobox --> calcite-chip calcite-combobox --> calcite-icon calcite-combobox-item --> calcite-icon diff --git a/src/components/crowdsource-reporter/crowdsource-reporter.tsx b/src/components/crowdsource-reporter/crowdsource-reporter.tsx index 179bfce37..f4b8f0d36 100644 --- a/src/components/crowdsource-reporter/crowdsource-reporter.tsx +++ b/src/components/crowdsource-reporter/crowdsource-reporter.tsx @@ -188,7 +188,7 @@ export class CrowdsourceReporter { * boolean: When true show the sort and filter icon */ @State() _hasValidLayers = false; - + /** * string: The selected feature layer's name from the layer's list */ @@ -256,7 +256,7 @@ export class CrowdsourceReporter { protected _mapClickHandle: IHandle; /** - * HTMLCreateFeatureElement: Create Feature component instance + * HTMLCreateFeatureElement: Create Feature component instance */ protected _createFeature: HTMLCreateFeatureElement; @@ -348,9 +348,9 @@ export class CrowdsourceReporter { {this._reportSubmitted && { this._reportSubmitted = false }} open placement={"top"}> @@ -360,9 +360,9 @@ export class CrowdsourceReporter { {this._featureCreationFailedErrorMsg && { this._featureCreationFailedErrorMsg = "" }} open placement={"top"}> @@ -445,7 +445,7 @@ export class CrowdsourceReporter { ? {renderLists?.length > 0 && renderLists} - : } + : } ); } @@ -475,7 +475,7 @@ export class CrowdsourceReporter { {this.isMobile && this.getActionToExpandCollapsePanel()} {this._hasValidLayers && this.enableNewReports && @@ -513,7 +513,7 @@ export class CrowdsourceReporter {
@@ -707,7 +707,7 @@ export class CrowdsourceReporter { */ protected async layerListLoaded(evt: CustomEvent): Promise { const layersListed = evt.detail; - //consider only the layers listed in the layer-list component + //consider only the layers listed in the layer-list component const allMapLayers = await getAllLayers(this.mapView); this._validLayers = []; allMapLayers.forEach((eachLayer: __esri.FeatureLayer) => { @@ -794,7 +794,7 @@ export class CrowdsourceReporter { {this.isMobile && this.getActionToExpandCollapsePanel()} {this.enableNewReports && @@ -917,9 +917,9 @@ export class CrowdsourceReporter { } /** - * Handle map click event + * Handle map click event * @param layers Array of layerIds - * + * * @protected */ protected handleMapClick(): void { @@ -936,7 +936,7 @@ export class CrowdsourceReporter { /** * On map click do hitTest and get the clicked graphics of valid layers and show feature details * @param event IMapClick map click event details - * + * * @protected */ protected async onMapClick(event: IMapClick): Promise { diff --git a/src/components/delete-button/delete-button.tsx b/src/components/delete-button/delete-button.tsx index 14c0a522a..ce936813e 100644 --- a/src/components/delete-button/delete-button.tsx +++ b/src/components/delete-button/delete-button.tsx @@ -180,6 +180,7 @@ export class DeleteButton { id={this.icon} onClick={() => this._delete()} scale="s" + text={this._translations.delete} > { @@ -180,7 +180,7 @@ export class FeatureList { - {this._isLoading && } + {this._isLoading && } {this._featureItems.length === 0 && !this._isLoading && ` Replaces the current selection with the supplied text, inserting if nothing is selected. +#### Parameters + +| Name | Type | Description | +| ------------- | -------- | ---------------------------------------- | +| `replacement` | `string` | Text to use for replacement or insertion | + #### Returns Type: `Promise` diff --git a/src/components/layer-list/layer-list.tsx b/src/components/layer-list/layer-list.tsx index 75f869715..3da44da57 100644 --- a/src/components/layer-list/layer-list.tsx +++ b/src/components/layer-list/layer-list.tsx @@ -83,7 +83,7 @@ export class LayerList { //-------------------------------------------------------------------------- /** - * boolean: When true will display message no layers found + * boolean: When true will display message no layers found */ @State() _noLayersToDisplay = false; @@ -180,7 +180,7 @@ export class LayerList { render() { return ( - {this._isLoading && } + {this._isLoading && } {!this._isLoading && this.mapView && this._noLayersToDisplay && { - const target = e.target; + const target = e.target as HTMLCalciteDropdownItemElement; this._columnsInfo[target.id] = target.selected; if (!target.selected) { this._table.hideColumn(target.id); @@ -1336,7 +1336,7 @@ export class LayerTable { * @returns VNode The tooltip node */ protected _getToolTip( - placement: string, + placement: TooltipPlacement, referenceElement: string, text: string ): VNode { @@ -1756,7 +1756,7 @@ export class LayerTable { aria-labelledby="modal-title" class="modal" kind="brand" - onCalciteModalClose={async () => this._closeFilter()} + onCalciteModalClose={() => void this._closeFilter()} open={this._filterOpen} widthScale="s" > diff --git a/src/components/layer-table/readme.md b/src/components/layer-table/readme.md index cb6595477..775cdad2d 100644 --- a/src/components/layer-table/readme.md +++ b/src/components/layer-table/readme.md @@ -106,12 +106,13 @@ graph TD; map-layer-picker --> calcite-dropdown-item calcite-notice --> calcite-icon calcite-select --> calcite-icon + calcite-combobox --> calcite-combobox-item calcite-combobox --> calcite-chip calcite-combobox --> calcite-icon + calcite-combobox-item --> calcite-icon calcite-chip --> calcite-icon calcite-button --> calcite-loader calcite-button --> calcite-icon - calcite-combobox-item --> calcite-icon calcite-dropdown-item --> calcite-icon instant-apps-social-share --> calcite-popover instant-apps-social-share --> calcite-button diff --git a/src/components/map-layer-picker/map-layer-picker.tsx b/src/components/map-layer-picker/map-layer-picker.tsx index 683e6f83f..bc2e7368b 100644 --- a/src/components/map-layer-picker/map-layer-picker.tsx +++ b/src/components/map-layer-picker/map-layer-picker.tsx @@ -406,7 +406,6 @@ export class MapLayerPicker { ): VNode { return ( alert("open")} class="layer-picker-dropdown" onCalciteDropdownBeforeClose={() => this._isDropdownOpen = false} onCalciteDropdownBeforeOpen={() => this._isDropdownOpen = true} diff --git a/src/components/map-layer-picker/readme.md b/src/components/map-layer-picker/readme.md index 41f4f7d37..95c4d71ab 100644 --- a/src/components/map-layer-picker/readme.md +++ b/src/components/map-layer-picker/readme.md @@ -77,14 +77,15 @@ graph TD; map-layer-picker --> calcite-dropdown-item calcite-notice --> calcite-icon calcite-select --> calcite-icon + calcite-combobox --> calcite-combobox-item calcite-combobox --> calcite-chip calcite-combobox --> calcite-icon + calcite-combobox-item --> calcite-icon calcite-chip --> calcite-icon calcite-action --> calcite-loader calcite-action --> calcite-icon calcite-button --> calcite-loader calcite-button --> calcite-icon - calcite-combobox-item --> calcite-icon calcite-dropdown-item --> calcite-icon layer-table --> map-layer-picker map-select-tools --> map-layer-picker diff --git a/src/components/map-picker/readme.md b/src/components/map-picker/readme.md index 5d29e53a3..969b52857 100644 --- a/src/components/map-picker/readme.md +++ b/src/components/map-picker/readme.md @@ -25,6 +25,12 @@ +#### Parameters + +| Name | Type | Description | +| ---- | -------- | ----------- | +| `id` | `string` | | + #### Returns Type: `Promise` diff --git a/src/components/map-select-tools/readme.md b/src/components/map-select-tools/readme.md index fc6faa049..5fc3bce1d 100644 --- a/src/components/map-select-tools/readme.md +++ b/src/components/map-select-tools/readme.md @@ -118,12 +118,13 @@ graph TD; map-layer-picker --> calcite-option map-layer-picker --> calcite-dropdown-item calcite-notice --> calcite-icon + calcite-combobox --> calcite-combobox-item calcite-combobox --> calcite-chip calcite-combobox --> calcite-icon + calcite-combobox-item --> calcite-icon calcite-chip --> calcite-icon calcite-button --> calcite-loader calcite-button --> calcite-icon - calcite-combobox-item --> calcite-icon calcite-dropdown-item --> calcite-icon calcite-input-message --> calcite-icon public-notification --> map-select-tools diff --git a/src/components/pdf-download/readme.md b/src/components/pdf-download/readme.md index 6e9c1a49d..deb53cb95 100644 --- a/src/components/pdf-download/readme.md +++ b/src/components/pdf-download/readme.md @@ -19,6 +19,15 @@ Downloads csv of mailing labels for the provided list of ids +#### Parameters + +| Name | Type | Description | +| ------------------ | -------------- | --------------------------------------------------------------------------------------- | +| `webmap` | `Map` | Webmap containing layer | +| `exportInfos` | `IExportInfos` | Information about items to be exported | +| `removeDuplicates` | `boolean` | When true a single label is generated when multiple featues have a shared address value | +| `addColumnTitle` | `boolean` | Indicates if column headings should be included in output | + #### Returns Type: `Promise` @@ -29,6 +38,16 @@ Promise resolving when function is done Downloads pdf of mailing labels for the provided list of ids +#### Parameters + +| Name | Type | Description | +| --------------------- | -------------- | --------------------------------------------------------------------------------------- | +| `webmap` | `Map` | Webmap containing layer | +| `exportInfos` | `IExportInfos` | Information about items to be exported | +| `removeDuplicates` | `boolean` | When true a single label is generated when multiple featues have a shared address value | +| `title` | `string` | Title for each page | +| `initialImageDataUrl` | `string` | Data URL of image for first page | + #### Returns Type: `Promise` diff --git a/src/components/public-notification/readme.md b/src/components/public-notification/readme.md index 5aaebfe0f..dab0b1036 100644 --- a/src/components/public-notification/readme.md +++ b/src/components/public-notification/readme.md @@ -143,10 +143,11 @@ graph TD; map-layer-picker --> calcite-option map-layer-picker --> calcite-dropdown-item calcite-notice --> calcite-icon + calcite-combobox --> calcite-combobox-item calcite-combobox --> calcite-chip calcite-combobox --> calcite-icon - calcite-chip --> calcite-icon calcite-combobox-item --> calcite-icon + calcite-chip --> calcite-icon calcite-dropdown-item --> calcite-icon calcite-input-message --> calcite-icon calcite-segmented-control-item --> calcite-icon diff --git a/src/components/refine-selection/readme.md b/src/components/refine-selection/readme.md index 1f977e821..8383596f1 100644 --- a/src/components/refine-selection/readme.md +++ b/src/components/refine-selection/readme.md @@ -71,14 +71,15 @@ graph TD; map-layer-picker --> calcite-dropdown-item calcite-notice --> calcite-icon calcite-select --> calcite-icon + calcite-combobox --> calcite-combobox-item calcite-combobox --> calcite-chip calcite-combobox --> calcite-icon + calcite-combobox-item --> calcite-icon calcite-chip --> calcite-icon calcite-action --> calcite-loader calcite-action --> calcite-icon calcite-button --> calcite-loader calcite-button --> calcite-icon - calcite-combobox-item --> calcite-icon calcite-dropdown-item --> calcite-icon calcite-popover --> calcite-action calcite-popover --> calcite-icon diff --git a/src/components/spatial-ref/readme.md b/src/components/spatial-ref/readme.md index c4896bd66..8e8de86cb 100644 --- a/src/components/spatial-ref/readme.md +++ b/src/components/spatial-ref/readme.md @@ -28,6 +28,12 @@ Returns the spatial reference description of the supplied value. (Exposes protected method `_createSpatialRefDisplay` for testing.) +#### Parameters + +| Name | Type | Description | +| ------- | -------- | ------------------------------- | +| `value` | `string` | WKID or WKT or null for default | + #### Returns Type: `Promise` @@ -50,6 +56,12 @@ Type: `Promise` Converts a WKID into a spatial reference description. (Exposes protected method `_wkidToDisplay` for testing.) +#### Parameters + +| Name | Type | Description | +| ------ | -------- | --------------- | +| `wkid` | `number` | WKID to look up | + #### Returns Type: `Promise` diff --git a/src/utils/interfaces.ts b/src/utils/interfaces.ts index ee1970a01..8f9516d4c 100644 --- a/src/utils/interfaces.ts +++ b/src/utils/interfaces.ts @@ -85,6 +85,11 @@ export type DistanceUnit = "feet"|"meters"|"miles"|"kilometers"; export type theme = "light" | "dark"; +export type TooltipPlacement = "auto" | "top" | "right" | "bottom" | "left" | "top-start" + | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" + | "left-end" | "auto-start" | "auto-end" | "leading-start" | "leading" | "leading-end" + | "trailing-end" | "trailing" | "trailing-start"; + export interface IMapClick { mapPoint: __esri.Point, screenPoint: __esri.MapViewScreenPoint, diff --git a/tsconfig.json b/tsconfig.json index 86cd25ab3..a21e7ece3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,7 +20,8 @@ "node" ], "include": [ - "src" + "src", + "node_modules/arcgis-js-api/index.d.ts" ], "exclude": [ "node_modules"