diff --git a/lang/en.json b/lang/en.json
index ba66be4b..1ac783ae 100644
--- a/lang/en.json
+++ b/lang/en.json
@@ -172,5 +172,10 @@
"This action cannot be undone.": "This action cannot be undone.",
"Yes": "Yes",
"Toggle time filter for places": "Toggle time filter for places",
- "The search index needs to be rebuilt.": "The search index needs to be rebuilt."
+ "The search index needs to be rebuilt.": "The search index needs to be rebuilt.",
+ "Ask something about your ancestors": "Ask something about your ancestors",
+ "Chat messages": "Chat messages",
+ "Manage semantic search index": "Manage semantic search index",
+ "Update semantic search index": "Update semantic search index",
+ "Updating the semantic search index requires substantial time and computational resources. Run this operation only when necessary.": "Updating the semantic search index requires substantial time and computational resources. Run this operation only when necessary."
}
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index ddf5dad8..4deefbcf 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -73,6 +73,7 @@
"eslint-config-prettier": "^7.2.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.24.2",
+ "eslint-plugin-lit-a11y": "^4.1.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"fetch-mock": "^9.11.0",
@@ -1734,18 +1735,24 @@
}
},
"node_modules/@babel/runtime-corejs3": {
- "version": "7.15.3",
- "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.15.3.tgz",
- "integrity": "sha512-30A3lP+sRL6ml8uhoJSs+8jwpKzbw8CqBvDc1laeptxPm5FahumJxirigcbD2qTs71Sonvj1cyZB0OKGAmxQ+A==",
+ "version": "7.25.0",
+ "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.25.0.tgz",
+ "integrity": "sha512-BOehWE7MgQ8W8Qn0CQnMtg2tHPHPulcS/5AVpFvs2KCK1ET+0WqZqPvnpRpFN81gYoFopdIEJX9Sgjw3ZBccPg==",
"dev": true,
"dependencies": {
- "core-js-pure": "^3.16.0",
- "regenerator-runtime": "^0.13.4"
+ "core-js-pure": "^3.30.2",
+ "regenerator-runtime": "^0.14.0"
},
"engines": {
"node": ">=6.9.0"
}
},
+ "node_modules/@babel/runtime-corejs3/node_modules/regenerator-runtime": {
+ "version": "0.14.1",
+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
+ "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",
+ "dev": true
+ },
"node_modules/@babel/template": {
"version": "7.22.15",
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz",
@@ -3604,6 +3611,47 @@
"eslint-plugin-wc": "^1.2.0"
}
},
+ "node_modules/@open-wc/eslint-config/node_modules/aria-query": {
+ "version": "4.2.2",
+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz",
+ "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==",
+ "dev": true,
+ "dependencies": {
+ "@babel/runtime": "^7.10.2",
+ "@babel/runtime-corejs3": "^7.10.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ }
+ },
+ "node_modules/@open-wc/eslint-config/node_modules/emoji-regex": {
+ "version": "9.2.2",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",
+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
+ "dev": true
+ },
+ "node_modules/@open-wc/eslint-config/node_modules/eslint-plugin-lit-a11y": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-lit-a11y/-/eslint-plugin-lit-a11y-1.1.0.tgz",
+ "integrity": "sha512-reJqT0UG/Y8OC2z7pfgm0ODK1D6o5TgQpGdlgN1ja0HjdREXLqFVoYiEv013oNx3kBhTUaLlic64rRNw+386xw==",
+ "dev": true,
+ "dependencies": {
+ "aria-query": "^4.2.2",
+ "axe-core": "^4.3.3",
+ "axobject-query": "^2.2.0",
+ "dom5": "^3.0.1",
+ "emoji-regex": "^9.2.0",
+ "eslint": "^7.6.0",
+ "eslint-rule-extender": "0.0.1",
+ "intl-list-format": "^1.0.3",
+ "parse5": "^5.1.1",
+ "parse5-htmlparser2-tree-adapter": "^6.0.1",
+ "requireindex": "~1.2.0"
+ },
+ "peerDependencies": {
+ "eslint": ">= 5"
+ }
+ },
"node_modules/@open-wc/rollup-plugin-html": {
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/@open-wc/rollup-plugin-html/-/rollup-plugin-html-1.2.5.tgz",
@@ -3815,6 +3863,15 @@
"magic-string": "^0.25.0"
}
},
+ "node_modules/@thepassle/axobject-query": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/@thepassle/axobject-query/-/axobject-query-4.0.0.tgz",
+ "integrity": "sha512-/LHo+2jOdxs2WtbGocr3/lDSzsnjgCV6DSoBf4Y1Q0D24Hu67NPWuneoJimfHu5auqqSWi1fAvtln2013VxVqg==",
+ "dev": true,
+ "dependencies": {
+ "dequal": "^2.0.3"
+ }
+ },
"node_modules/@types/accepts": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/@types/accepts/-/accepts-1.3.5.tgz",
@@ -5461,16 +5518,12 @@
}
},
"node_modules/aria-query": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz",
- "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==",
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
"dev": true,
"dependencies": {
- "@babel/runtime": "^7.10.2",
- "@babel/runtime-corejs3": "^7.10.2"
- },
- "engines": {
- "node": ">=6.0"
+ "dequal": "^2.0.3"
}
},
"node_modules/arr-union": {
@@ -6733,9 +6786,9 @@
}
},
"node_modules/core-js-pure": {
- "version": "3.16.4",
- "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.16.4.tgz",
- "integrity": "sha512-bY1K3/1Jy9D8Jd12eoeVahNXHLfHFb4TXWI8SQ4y8bImR9qDPmGITBAfmcffTkgUvbJn87r8dILOTWW5kZzkgA==",
+ "version": "3.38.1",
+ "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.38.1.tgz",
+ "integrity": "sha512-BY8Etc1FZqdw1glX0XNOq2FDwfrg/VGqoZOZCdaL+UmdaqDwQwYXkMJT4t6In+zfEfOJDcM9T0KdbBeJg8KKCQ==",
"dev": true,
"hasInstallScript": true,
"funding": {
@@ -7378,6 +7431,15 @@
"node": ">= 0.6.0"
}
},
+ "node_modules/dequal": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
+ "dev": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/destroy": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
@@ -7566,9 +7628,9 @@
"dev": true
},
"node_modules/emoji-regex": {
- "version": "9.2.2",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",
- "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
+ "version": "10.3.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.3.0.tgz",
+ "integrity": "sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==",
"dev": true
},
"node_modules/encodeurl": {
@@ -8076,9 +8138,9 @@
"dev": true
},
"node_modules/eslint-plugin-lit": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/eslint-plugin-lit/-/eslint-plugin-lit-1.5.1.tgz",
- "integrity": "sha512-pYB0QM11uyOk5L55QfGhBmWi8a56PkNsnx+zVpY4bxz9YVquEo4BeRnFmf9AwFyT89rhGud9QruFhM2xJ4piwg==",
+ "version": "1.14.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-lit/-/eslint-plugin-lit-1.14.0.tgz",
+ "integrity": "sha512-J4w+CgO31621GreLFCdTUbTr5yeV2/RJ/M0myw0dykD5p9FGGIRLityQiNa6SG+JpVbmeQTQPJy4pNFmiurJ/w==",
"dev": true,
"dependencies": {
"parse5": "^6.0.1",
@@ -8093,37 +8155,49 @@
}
},
"node_modules/eslint-plugin-lit-a11y": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/eslint-plugin-lit-a11y/-/eslint-plugin-lit-a11y-1.0.1.tgz",
- "integrity": "sha512-c+GgGSXb9HMgbzJGp0yl+msHk2rBXcA7KwbobbLonSXdHm6ln7zRwAEj4i7527FOaCKkhxiN6RXfOJcZT1/Bow==",
+ "version": "4.1.4",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-lit-a11y/-/eslint-plugin-lit-a11y-4.1.4.tgz",
+ "integrity": "sha512-u39vE1KNOzO99Nrz51oVGY0Iauzf59l9tZgBluE/cU1l86X9/peBMQHUAeGC536dlV4acFYj5yq/VLPsalvnzA==",
"dev": true,
"dependencies": {
- "aria-query": "^4.2.2",
- "axe-core": "^4.0.2",
- "axobject-query": "^2.2.0",
+ "@thepassle/axobject-query": "^4.0.0",
+ "aria-query": "^5.1.3",
+ "axe-core": "^4.3.3",
"dom5": "^3.0.1",
- "emoji-regex": "^9.0.0",
- "eslint": "^7.6.0",
+ "emoji-regex": "^10.2.1",
+ "eslint-plugin-lit": "^1.10.1",
"eslint-rule-extender": "0.0.1",
- "intl-list-format": "^1.0.3",
- "parse5": "^5.1.1",
- "parse5-htmlparser2-tree-adapter": "^6.0.0",
- "requireindex": "~1.1.0"
- },
- "engines": {
- "node": ">=0.10.0"
+ "language-tags": "^1.0.5",
+ "parse5": "^7.1.2",
+ "parse5-htmlparser2-tree-adapter": "^6.0.1",
+ "requireindex": "~1.2.0"
},
"peerDependencies": {
"eslint": ">= 5"
}
},
- "node_modules/eslint-plugin-lit-a11y/node_modules/requireindex": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/requireindex/-/requireindex-1.1.0.tgz",
- "integrity": "sha1-5UBLgVV+91225JxacgBIk/4D4WI=",
+ "node_modules/eslint-plugin-lit-a11y/node_modules/entities": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
"dev": true,
"engines": {
- "node": ">=0.10.5"
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/eslint-plugin-lit-a11y/node_modules/parse5": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz",
+ "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==",
+ "dev": true,
+ "dependencies": {
+ "entities": "^4.4.0"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
}
},
"node_modules/eslint-plugin-lit/node_modules/parse5": {
@@ -10776,6 +10850,24 @@
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
"dev": true
},
+ "node_modules/language-subtag-registry": {
+ "version": "0.3.23",
+ "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz",
+ "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==",
+ "dev": true
+ },
+ "node_modules/language-tags": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz",
+ "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==",
+ "dev": true,
+ "dependencies": {
+ "language-subtag-registry": "^0.3.20"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
"node_modules/leaflet": {
"version": "1.9.4",
"resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.9.4.tgz",
@@ -17914,13 +18006,21 @@
}
},
"@babel/runtime-corejs3": {
- "version": "7.15.3",
- "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.15.3.tgz",
- "integrity": "sha512-30A3lP+sRL6ml8uhoJSs+8jwpKzbw8CqBvDc1laeptxPm5FahumJxirigcbD2qTs71Sonvj1cyZB0OKGAmxQ+A==",
+ "version": "7.25.0",
+ "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.25.0.tgz",
+ "integrity": "sha512-BOehWE7MgQ8W8Qn0CQnMtg2tHPHPulcS/5AVpFvs2KCK1ET+0WqZqPvnpRpFN81gYoFopdIEJX9Sgjw3ZBccPg==",
"dev": true,
"requires": {
- "core-js-pure": "^3.16.0",
- "regenerator-runtime": "^0.13.4"
+ "core-js-pure": "^3.30.2",
+ "regenerator-runtime": "^0.14.0"
+ },
+ "dependencies": {
+ "regenerator-runtime": {
+ "version": "0.14.1",
+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
+ "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",
+ "dev": true
+ }
}
},
"@babel/template": {
@@ -19634,6 +19734,43 @@
"eslint-plugin-lit-a11y": "^1.0.1",
"eslint-plugin-no-only-tests": "^2.4.0",
"eslint-plugin-wc": "^1.2.0"
+ },
+ "dependencies": {
+ "aria-query": {
+ "version": "4.2.2",
+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz",
+ "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==",
+ "dev": true,
+ "requires": {
+ "@babel/runtime": "^7.10.2",
+ "@babel/runtime-corejs3": "^7.10.2"
+ }
+ },
+ "emoji-regex": {
+ "version": "9.2.2",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",
+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
+ "dev": true
+ },
+ "eslint-plugin-lit-a11y": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-lit-a11y/-/eslint-plugin-lit-a11y-1.1.0.tgz",
+ "integrity": "sha512-reJqT0UG/Y8OC2z7pfgm0ODK1D6o5TgQpGdlgN1ja0HjdREXLqFVoYiEv013oNx3kBhTUaLlic64rRNw+386xw==",
+ "dev": true,
+ "requires": {
+ "aria-query": "^4.2.2",
+ "axe-core": "^4.3.3",
+ "axobject-query": "^2.2.0",
+ "dom5": "^3.0.1",
+ "emoji-regex": "^9.2.0",
+ "eslint": "^7.6.0",
+ "eslint-rule-extender": "0.0.1",
+ "intl-list-format": "^1.0.3",
+ "parse5": "^5.1.1",
+ "parse5-htmlparser2-tree-adapter": "^6.0.1",
+ "requireindex": "~1.2.0"
+ }
+ }
}
},
"@open-wc/rollup-plugin-html": {
@@ -19812,6 +19949,15 @@
"magic-string": "^0.25.0"
}
},
+ "@thepassle/axobject-query": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/@thepassle/axobject-query/-/axobject-query-4.0.0.tgz",
+ "integrity": "sha512-/LHo+2jOdxs2WtbGocr3/lDSzsnjgCV6DSoBf4Y1Q0D24Hu67NPWuneoJimfHu5auqqSWi1fAvtln2013VxVqg==",
+ "dev": true,
+ "requires": {
+ "dequal": "^2.0.3"
+ }
+ },
"@types/accepts": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/@types/accepts/-/accepts-1.3.5.tgz",
@@ -21235,13 +21381,12 @@
}
},
"aria-query": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz",
- "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==",
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
"dev": true,
"requires": {
- "@babel/runtime": "^7.10.2",
- "@babel/runtime-corejs3": "^7.10.2"
+ "dequal": "^2.0.3"
}
},
"arr-union": {
@@ -22180,9 +22325,9 @@
}
},
"core-js-pure": {
- "version": "3.16.4",
- "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.16.4.tgz",
- "integrity": "sha512-bY1K3/1Jy9D8Jd12eoeVahNXHLfHFb4TXWI8SQ4y8bImR9qDPmGITBAfmcffTkgUvbJn87r8dILOTWW5kZzkgA==",
+ "version": "3.38.1",
+ "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.38.1.tgz",
+ "integrity": "sha512-BY8Etc1FZqdw1glX0XNOq2FDwfrg/VGqoZOZCdaL+UmdaqDwQwYXkMJT4t6In+zfEfOJDcM9T0KdbBeJg8KKCQ==",
"dev": true
},
"cosmiconfig": {
@@ -22668,6 +22813,12 @@
"integrity": "sha512-9YLIBURXj4DJMFALxXw9K3Y3rwb5Fk0X5/8ipCzaN84+gKxoHK43tVKRNakCQbiEx07E8Uwhuq21BpUagFhZ8w==",
"dev": true
},
+ "dequal": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
+ "dev": true
+ },
"destroy": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
@@ -22823,9 +22974,9 @@
"dev": true
},
"emoji-regex": {
- "version": "9.2.2",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",
- "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
+ "version": "10.3.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.3.0.tgz",
+ "integrity": "sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==",
"dev": true
},
"encodeurl": {
@@ -23352,9 +23503,9 @@
}
},
"eslint-plugin-lit": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/eslint-plugin-lit/-/eslint-plugin-lit-1.5.1.tgz",
- "integrity": "sha512-pYB0QM11uyOk5L55QfGhBmWi8a56PkNsnx+zVpY4bxz9YVquEo4BeRnFmf9AwFyT89rhGud9QruFhM2xJ4piwg==",
+ "version": "1.14.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-lit/-/eslint-plugin-lit-1.14.0.tgz",
+ "integrity": "sha512-J4w+CgO31621GreLFCdTUbTr5yeV2/RJ/M0myw0dykD5p9FGGIRLityQiNa6SG+JpVbmeQTQPJy4pNFmiurJ/w==",
"dev": true,
"requires": {
"parse5": "^6.0.1",
@@ -23371,29 +23522,38 @@
}
},
"eslint-plugin-lit-a11y": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/eslint-plugin-lit-a11y/-/eslint-plugin-lit-a11y-1.0.1.tgz",
- "integrity": "sha512-c+GgGSXb9HMgbzJGp0yl+msHk2rBXcA7KwbobbLonSXdHm6ln7zRwAEj4i7527FOaCKkhxiN6RXfOJcZT1/Bow==",
+ "version": "4.1.4",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-lit-a11y/-/eslint-plugin-lit-a11y-4.1.4.tgz",
+ "integrity": "sha512-u39vE1KNOzO99Nrz51oVGY0Iauzf59l9tZgBluE/cU1l86X9/peBMQHUAeGC536dlV4acFYj5yq/VLPsalvnzA==",
"dev": true,
"requires": {
- "aria-query": "^4.2.2",
- "axe-core": "^4.0.2",
- "axobject-query": "^2.2.0",
+ "@thepassle/axobject-query": "^4.0.0",
+ "aria-query": "^5.1.3",
+ "axe-core": "^4.3.3",
"dom5": "^3.0.1",
- "emoji-regex": "^9.0.0",
- "eslint": "^7.6.0",
+ "emoji-regex": "^10.2.1",
+ "eslint-plugin-lit": "^1.10.1",
"eslint-rule-extender": "0.0.1",
- "intl-list-format": "^1.0.3",
- "parse5": "^5.1.1",
- "parse5-htmlparser2-tree-adapter": "^6.0.0",
- "requireindex": "~1.1.0"
+ "language-tags": "^1.0.5",
+ "parse5": "^7.1.2",
+ "parse5-htmlparser2-tree-adapter": "^6.0.1",
+ "requireindex": "~1.2.0"
},
"dependencies": {
- "requireindex": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/requireindex/-/requireindex-1.1.0.tgz",
- "integrity": "sha1-5UBLgVV+91225JxacgBIk/4D4WI=",
+ "entities": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
"dev": true
+ },
+ "parse5": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz",
+ "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==",
+ "dev": true,
+ "requires": {
+ "entities": "^4.4.0"
+ }
}
}
},
@@ -25214,6 +25374,21 @@
}
}
},
+ "language-subtag-registry": {
+ "version": "0.3.23",
+ "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz",
+ "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==",
+ "dev": true
+ },
+ "language-tags": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz",
+ "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==",
+ "dev": true,
+ "requires": {
+ "language-subtag-registry": "^0.3.20"
+ }
+ },
"leaflet": {
"version": "1.9.4",
"resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.9.4.tgz",
diff --git a/package.json b/package.json
index 0e95eae3..25183492 100644
--- a/package.json
+++ b/package.json
@@ -31,6 +31,7 @@
"eslint-config-prettier": "^7.2.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.24.2",
+ "eslint-plugin-lit-a11y": "^4.1.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"fetch-mock": "^9.11.0",
@@ -127,4 +128,4 @@
"pwa-helpers": "^0.9.1",
"tippy.js": "^6.3.7"
}
-}
\ No newline at end of file
+}
diff --git a/src/GrampsJs.js b/src/GrampsJs.js
index 1453f2b0..bf22567c 100644
--- a/src/GrampsJs.js
+++ b/src/GrampsJs.js
@@ -524,6 +524,7 @@ export class GrampsJs extends LitElement {
+ ${this._('User groups allowed to use AI chat:')}
+
+ ${this._('User groups allowed to use AI chat:')}
+
+
${this._( 'Manually updating the search index is usually unnecessary, but it may become necessary after an upgrade.' @@ -109,7 +126,8 @@ export class GrampsjsViewAdminSettings extends GrampsjsView {
+ ${this._( + 'Updating the semantic search index requires substantial time and computational resources. Run this operation only when necessary.' + )} +
+
@@ -192,6 +238,25 @@ export class GrampsjsViewAdminSettings extends GrampsjsView {
`
}
+ _renderSearchStatus(semantic = false) {
+ const property = semantic ? 'count_semantic' : 'count'
+ const count = this.dbInfo?.search?.sifts?.[property] ?? -1
+ const objCounts = this.dbInfo?.object_counts ?? {}
+ const objCount = Object.values(objCounts).reduce(
+ (sum, value) => sum + value,
+ 0
+ )
+ const iconError = html`
+ ${icon} ${this._('Status')}: + ${count === -1 ? this._('unknown') : count}/${objCount} +
` + } + _openDeleteAll() { if (isTokenFresh()) { this.renderRoot.querySelector('grampsjs-delete-all').show() @@ -220,26 +285,47 @@ export class GrampsjsViewAdminSettings extends GrampsjsView { } } - async _updateSearch() { - const prog = this.renderRoot.querySelector('#progress-update-search') + async _updateSearch(semantic = false) { + const id = semantic + ? 'progress-update-search-semantic' + : 'progress-update-search' + const prog = this.renderRoot.querySelector(`#${id}`) prog.reset() prog.open = true - const data = await apiPost('/api/search/index/?full=1') + const url = semantic + ? '/api/search/index/?full=1&semantic=1' + : '/api/search/index/?full=1' + if (semantic) { + this._buttonUpdateSearchSemanticDisabled = true + } else { + this._buttonUpdateSearchDisabled = true + } + const data = await apiPost(url) if ('error' in data) { prog.setError() prog.errorMessage = data.error + this._doneUpdateSearch(semantic) } else if ('task' in data) { prog.taskId = data.task?.id || '' } else { prog.setComplete() - this._handleSuccessUpdateSearch() + this._handleSuccessUpdateSearch(semantic) } } - _handleSuccessUpdateSearch() { + _handleSuccessUpdateSearch(semantic = false) { + this._doneUpdateSearch(semantic) fireEvent(this, 'db:changed') } + _doneUpdateSearch(semantic = false) { + if (semantic) { + this._buttonUpdateSearchSemanticDisabled = false + } else { + this._buttonUpdateSearchDisabled = false + } + } + async _checkRepair() { this._repairResults = {} const prog = this.renderRoot.querySelector('#progress-repair') diff --git a/src/views/GrampsjsViewChat.js b/src/views/GrampsjsViewChat.js new file mode 100644 index 00000000..2128dfd4 --- /dev/null +++ b/src/views/GrampsjsViewChat.js @@ -0,0 +1,44 @@ +import {html, css} from 'lit' + +import '../components/GrampsjsChat.js' +import {GrampsjsView} from './GrampsjsView.js' + +export class GrampsjsViewChat extends GrampsjsView { + static get styles() { + return [ + super.styles, + css` + :host { + height: calc(100vh - 85px); + margin-top: 0; + margin-bottom: 0; + display: flex; + overflow: hidden; + } + `, + ] + } + + update(changed) { + super.update(changed) + if (changed.has('active')) { + this._focus() + } + } + + _focus() { + if (this.active) { + this.renderRoot.querySelector('grampsjs-chat').focusInput() + } + } + + renderContent() { + return html`