diff --git a/package-lock.json b/package-lock.json index d567d5c..4848580 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,8 @@ "vitest": "^0.29.8" }, "peerDependencies": { - "@syncfusion/ej2-documenteditor": ">=22.1", + "@syncfusion/ej2-documenteditor": ">=23.2", + "@syncfusion/ej2-locale": ">=23.1", "tinymce": ">=6.5" }, "peerDependenciesMeta": { @@ -674,218 +675,248 @@ } }, "node_modules/@syncfusion/ej2-base": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-base/-/ej2-base-22.1.34.tgz", - "integrity": "sha512-Cxk488BXsMHDYp4YmQ4uSBS1TSO9o6iiHs7qXO69BfNiSaRYhGfTbrBvtXgLFoE0KO4e/39sQ9Mle/zo+a2knw==", + "version": "24.1.42", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-base/-/ej2-base-24.1.42.tgz", + "integrity": "sha512-3Zolyu6xA2pasid3Ttaf0qqQcEU/cQMJwuhaGa5vBnt1Xmo4oPkipUAsWLCtlfkmF/iUN9Hts3+8a4fBr4x3dA==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-icons": "~22.1.34" + "@syncfusion/ej2-icons": "~24.1.41" }, "bin": { "syncfusion-license": "bin/syncfusion-license.js" } }, "node_modules/@syncfusion/ej2-buttons": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-buttons/-/ej2-buttons-22.1.34.tgz", - "integrity": "sha512-1sajqJn9CPCwuMKGvBL+hO6r5JsTlSIzXsa95dzd5zA10Hs3w1vcTxHz8VUcBwt+ffDG/n+jFpOM7HOlqivTww==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-buttons/-/ej2-buttons-24.1.41.tgz", + "integrity": "sha512-hko5TLLCssu7O9/iJKlogCR9hP6faaE6H96pOQ1qpuemv85SxUVBbDoAzCkDUg4/2HlsMJMSHGZ9ZHrPGUZJHA==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-base": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41" } }, "node_modules/@syncfusion/ej2-calendars": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-calendars/-/ej2-calendars-22.1.34.tgz", - "integrity": "sha512-jbne3LK7X45A4UiG2O5w7/D4SoGQsESEiTu9AvcV2N/XXk7eZwVyZeSfq74zDUJpNNOJam1eI0w0dn2Wd+tqlA==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-calendars/-/ej2-calendars-24.1.41.tgz", + "integrity": "sha512-rpTYU6TwqdTXyOfKKubeLKTkBDv4AbkCyi1W3fdMs6RmobozjmkgquzNZFsVlFwRMYjViShoyUlWptrQw4iUAw==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-buttons": "~22.1.34", - "@syncfusion/ej2-inputs": "~22.1.34", - "@syncfusion/ej2-lists": "~22.1.34", - "@syncfusion/ej2-popups": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41", + "@syncfusion/ej2-inputs": "~24.1.41", + "@syncfusion/ej2-lists": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41" } }, "node_modules/@syncfusion/ej2-charts": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-charts/-/ej2-charts-22.1.34.tgz", - "integrity": "sha512-2AKsmVVull1VQFiiap067TYLPp2bO3nefl0IwB9IJschWnQsBCjMT9o4dJ/3SkAFmX+c2Y0pqx5FmtWTau8Dcg==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-charts/-/ej2-charts-24.1.41.tgz", + "integrity": "sha512-FEsEsHdA3TDpQw0LhfYR4YFR9u0M7CoBhsc13UlEgs90r5QgqDQXw9AxDmHOO2HXaCQihueVDBeWPiH9emts/A==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-calendars": "~22.1.34", - "@syncfusion/ej2-compression": "~22.1.34", - "@syncfusion/ej2-data": "~22.1.34", - "@syncfusion/ej2-file-utils": "~22.1.34", - "@syncfusion/ej2-navigations": "~22.1.34", - "@syncfusion/ej2-pdf-export": "~22.1.34", - "@syncfusion/ej2-svg-base": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-calendars": "~24.1.41", + "@syncfusion/ej2-data": "~24.1.41", + "@syncfusion/ej2-excel-export": "~24.1.41", + "@syncfusion/ej2-navigations": "~24.1.41", + "@syncfusion/ej2-pdf-export": "~24.1.41", + "@syncfusion/ej2-svg-base": "~24.1.41" } }, "node_modules/@syncfusion/ej2-compression": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-compression/-/ej2-compression-22.1.34.tgz", - "integrity": "sha512-IAjGrq7e3pBL+9Trp/0R4cqMxOYdyyI6p2wER25qjpumg/9R4waCFJAUCwMT/A1J8Vh3ggVFRt+4wYjT1i1ptw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-compression/-/ej2-compression-24.1.41.tgz", + "integrity": "sha512-OO3Am1WXMi+6V25QG3iySmikWA2gXWgKh4B9p1L8nksUptrvfdNFJqzNEEdZWoF9ftOMWHcagwklbFATjxEgRw==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-file-utils": "~22.1.34" + "@syncfusion/ej2-file-utils": "~24.1.41" } }, "node_modules/@syncfusion/ej2-data": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-data/-/ej2-data-22.1.34.tgz", - "integrity": "sha512-pycR+5sTmrdSFZqumLyS/03A2pyuiX4tdW4DrP+YTkMrbiIe9KAH9eMBr6CM8fEmyMHz9ZylamreWs7ctRWWsw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-data/-/ej2-data-24.1.41.tgz", + "integrity": "sha512-xKSaV7CaF8K37nIf9SuG6387mqXoNt+k4uqiAI1Xsp9Z+UkpEd8wm1skeW2qJao5AyxVhUhV6MtX9grO8udCjg==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-base": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41" } }, "node_modules/@syncfusion/ej2-documenteditor": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-documenteditor/-/ej2-documenteditor-22.1.34.tgz", - "integrity": "sha512-HHP7uhXLUOWF8j6FQt8EkoSu8fl3M/wFX5gOt82oP7qwvmBZdLnA6RtS48L0o9gqopSYeODEQcqLPL9Om80FDA==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-documenteditor/-/ej2-documenteditor-24.1.41.tgz", + "integrity": "sha512-QL7qYxQpW0NPMPQZKbCB5XwcKROV9tYyQaZqq78rS+YQxEMWGUHme9aI9utfC+nZiVm6GNfet3q7fPz6NIyalA==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-buttons": "~22.1.34", - "@syncfusion/ej2-calendars": "~22.1.34", - "@syncfusion/ej2-compression": "~22.1.34", - "@syncfusion/ej2-dropdowns": "~22.1.34", - "@syncfusion/ej2-file-utils": "~22.1.34", - "@syncfusion/ej2-inputs": "~22.1.34", - "@syncfusion/ej2-navigations": "~22.1.34", - "@syncfusion/ej2-office-chart": "~22.1.34", - "@syncfusion/ej2-popups": "~22.1.34", - "@syncfusion/ej2-splitbuttons": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41", + "@syncfusion/ej2-calendars": "~24.1.41", + "@syncfusion/ej2-compression": "~24.1.41", + "@syncfusion/ej2-dropdowns": "~24.1.41", + "@syncfusion/ej2-file-utils": "~24.1.41", + "@syncfusion/ej2-inputs": "~24.1.41", + "@syncfusion/ej2-navigations": "~24.1.41", + "@syncfusion/ej2-office-chart": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41", + "@syncfusion/ej2-splitbuttons": "~24.1.41" } }, "node_modules/@syncfusion/ej2-dropdowns": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.1.34.tgz", - "integrity": "sha512-PCsUstBQeV4Nox4iM2jCt6IbzXGA5kY8Hx9ZdA5XUy6wMQxwlqpnm23ZZA/wICeT+X3LO0zm9DMSZcCMxFulXw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-24.1.41.tgz", + "integrity": "sha512-oVNjjjhSvZ3HSAW+E0WadpxD2fmiCXXmrMHNPtVTv31EXQryNVzVrMvMcn6dWmrg052NOG5MpYhmWdrh/vuWxA==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-data": "~22.1.34", - "@syncfusion/ej2-inputs": "~22.1.34", - "@syncfusion/ej2-lists": "~22.1.34", - "@syncfusion/ej2-navigations": "~22.1.34", - "@syncfusion/ej2-popups": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-data": "~24.1.41", + "@syncfusion/ej2-inputs": "~24.1.41", + "@syncfusion/ej2-lists": "~24.1.41", + "@syncfusion/ej2-navigations": "~24.1.41", + "@syncfusion/ej2-notifications": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41" + } + }, + "node_modules/@syncfusion/ej2-excel-export": { + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-excel-export/-/ej2-excel-export-24.1.41.tgz", + "integrity": "sha512-ieLWcOeHc4jIhfcrUA79m0C60g44bbM1O+BhequQB/GK9o7WjhD7TmRUYZSK/4jU1pm9tu+YI8+P18vjDxWIgw==", + "optional": true, + "peer": true, + "dependencies": { + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-compression": "~24.1.41" } }, "node_modules/@syncfusion/ej2-file-utils": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-file-utils/-/ej2-file-utils-22.1.34.tgz", - "integrity": "sha512-5pzzcQWaWJMCfOJ/XWx4ADvRWSBA1Hx6bxINGgeQlrkP/lQ/kgw3xn3xrYfaO6ujT2nqX6xVHqNpbTxPE7IWOg==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-file-utils/-/ej2-file-utils-24.1.41.tgz", + "integrity": "sha512-lMCSB9kZrn2qe7UvFq8N2xERCu8sCg+5LRESjlsB4+k+02MLhponHmMzAPbvMr3DJ5ctb7A1dihAdQT0Mwd3Jg==", "optional": true, "peer": true }, "node_modules/@syncfusion/ej2-icons": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-icons/-/ej2-icons-22.1.34.tgz", - "integrity": "sha512-DErl0LGB7gndgdCUJ4DgGkccAAxga6BlqR0nxtYBKetNhQpICkzafiq0o8ZfDR5xV3bguIxHOTLZGYNB3PgVCw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-icons/-/ej2-icons-24.1.41.tgz", + "integrity": "sha512-r44Xr0QC1iGP6Ed5UVNyfIa3lmcDn680nzNoUbykUv02JaJv6nF0OQZeZNjjY3m8YrFhYCHdms0h9A9sU7c9/Q==", "optional": true, "peer": true }, "node_modules/@syncfusion/ej2-inputs": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-inputs/-/ej2-inputs-22.1.34.tgz", - "integrity": "sha512-hORgtRRfujHh7ASH7RFteoLVkLIbT21J9/FLWlBMiQHcQ4UUTsyTiFEhJATUOuSsQZkxZ97ssv+OeZ13C1pjMw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-inputs/-/ej2-inputs-24.1.41.tgz", + "integrity": "sha512-scVtCR6XMrdr2RQe0HUG+y7Mdr4hnYrNJAYntUJgO0gxMiWjHku6UG+9FBruA3rC7INvNsBviCqvZIHyTXz4NA==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-buttons": "~22.1.34", - "@syncfusion/ej2-popups": "~22.1.34", - "@syncfusion/ej2-splitbuttons": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41", + "@syncfusion/ej2-splitbuttons": "~24.1.41" } }, "node_modules/@syncfusion/ej2-lists": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-lists/-/ej2-lists-22.1.34.tgz", - "integrity": "sha512-fiOuLBXIWFh1Gf3VzCvhjJvOGLbreRnbEHqLyb7frTDM8hHNMYag53f+OwGF/+PG3X+M4eQmia/Lik3iJDaHTA==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-lists/-/ej2-lists-24.1.41.tgz", + "integrity": "sha512-TZrHBq02s2vxVwqjLUxx+iTGP8X93eJCkCwlhjajnjw7jU5Yireb//FVORwTzWuwlrVc2tEkDiGW3WYhnowVMg==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-buttons": "~22.1.34", - "@syncfusion/ej2-data": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41", + "@syncfusion/ej2-data": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41" } }, + "node_modules/@syncfusion/ej2-locale": { + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-locale/-/ej2-locale-24.1.41.tgz", + "integrity": "sha512-Um8HWtIbIj8iMHX5yStSx3xFjj0axCeOxrHJV1f6VDCvCleF8S/aERqp4dxNm+mJQTs6aNUyWSiBIs7ErCZdWw==", + "peer": true + }, "node_modules/@syncfusion/ej2-navigations": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-navigations/-/ej2-navigations-22.1.34.tgz", - "integrity": "sha512-SY8mYTl9suIPJ6B7ImxsoPgzeuAqNaelL9waAhjCbqQQGDO1zmPsPcSnLa9J1afCUYEJrypfk2ZgPTRrj5QsKQ==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-navigations/-/ej2-navigations-24.1.41.tgz", + "integrity": "sha512-l551sMOEpXeTSkaWNNEhmkSw5vGYIX8lURuywyUnF7L1QMbfZwhiy2fLYopcRqFOOXFsLchGXzaHBrcfcMtF2g==", + "optional": true, + "peer": true, + "dependencies": { + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41", + "@syncfusion/ej2-data": "~24.1.41", + "@syncfusion/ej2-inputs": "~24.1.41", + "@syncfusion/ej2-lists": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41" + } + }, + "node_modules/@syncfusion/ej2-notifications": { + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-notifications/-/ej2-notifications-24.1.41.tgz", + "integrity": "sha512-equJ8+DrZj2yaGyAxs7GiGWtH14ns74RFj0q2ma/SCGQUNyUARgDiMdF5NlN4btnE3UGoAtKk5ikW8boole8Bw==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-buttons": "~22.1.34", - "@syncfusion/ej2-data": "~22.1.34", - "@syncfusion/ej2-inputs": "~22.1.34", - "@syncfusion/ej2-lists": "~22.1.34", - "@syncfusion/ej2-popups": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41" } }, "node_modules/@syncfusion/ej2-office-chart": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-office-chart/-/ej2-office-chart-22.1.34.tgz", - "integrity": "sha512-bTRLzkqDxjumyak0YKc95Ia+9tkAWSrXtnav4SMja0agKEc87X8Cp1Qm/WKNNgROO7v1aCSEs0P7/V9sPTZBgw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-office-chart/-/ej2-office-chart-24.1.41.tgz", + "integrity": "sha512-NYVwyiUzp/ff4SMufz2tqdx9oWUL99pHJYuH5qpmI3NoEOPpOoviX/8HI/GzvBBamFeZTeZIVBwbvYRwoPQX9w==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-charts": "~22.1.34" + "@syncfusion/ej2-charts": "~24.1.41" } }, "node_modules/@syncfusion/ej2-pdf-export": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-22.1.34.tgz", - "integrity": "sha512-5jcenuQh/JyrST1TTVUqben34bkKewkFAXcWcxclvtSNYp7gMntinW96BorGoT9FPRJQGQI9PB1FSo0FEFDnoQ==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-24.1.41.tgz", + "integrity": "sha512-AsPl0mHerlNPVEy+qm9CDxneDIAOIMVPxlVTcxhXeOwEugdkPAF9vTzx5jX3hoMLqnpnpxXq/FjyXcz4+fapbw==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-compression": "~22.1.34" + "@syncfusion/ej2-compression": "~24.1.41" } }, "node_modules/@syncfusion/ej2-popups": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-popups/-/ej2-popups-22.1.34.tgz", - "integrity": "sha512-AIEx1ckt0tWzul0recVGevekMCtVZM1DY4XsQfTHXCsEGFqbx9fq48uSTuYP+A9wDgba54ztxiIluhrG0aQ1IA==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-popups/-/ej2-popups-24.1.41.tgz", + "integrity": "sha512-SSx3ZfdRAuSLjoo2/qU4PLLmbo5L+x1LqyxgxNq2bflRhx3Xdk51iEdS00ihTjBoMweE6KS3nPGHI8krOzv44A==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-buttons": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41" } }, "node_modules/@syncfusion/ej2-splitbuttons": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-22.1.34.tgz", - "integrity": "sha512-ZmeDl78KKxGVeXbQfivT/kDpcStVSunFdjACiv1AGMLS60JulGQP/W5E5iNqU2jUAV4RE2h1Ao0XlW54e8IhBw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-24.1.41.tgz", + "integrity": "sha512-Drbvk2aD37anSVeP4WRqzipZYobRPFpaitlNGjP+qLb0UDzo8IHNE99McPRCC9C8wwYp4QAxhBfCZDQRkdW8gg==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-popups": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41" } }, "node_modules/@syncfusion/ej2-svg-base": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-svg-base/-/ej2-svg-base-22.1.34.tgz", - "integrity": "sha512-zOC0U5jpGVBmhU1TfQgSPP9HRS8bnA8ZuVu3RQ3/8yFjpkRlxZGRq3Q417eQGpRNYaMgWyzNJADNvWRL/mqnGg==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-svg-base/-/ej2-svg-base-24.1.41.tgz", + "integrity": "sha512-yYJ0+Yhs+8ESjsDHLOGcVwrp6N12pqx371Ob1eyzFjJ524N1A2DcIOyDGiFTWh9S9Iv7TdiSmh3GlyI8aDAh3g==", "optional": true, "peer": true, "dependencies": { - "@syncfusion/ej2-base": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41" } }, "node_modules/@tsconfig/node10": { @@ -5870,215 +5901,245 @@ } }, "@syncfusion/ej2-base": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-base/-/ej2-base-22.1.34.tgz", - "integrity": "sha512-Cxk488BXsMHDYp4YmQ4uSBS1TSO9o6iiHs7qXO69BfNiSaRYhGfTbrBvtXgLFoE0KO4e/39sQ9Mle/zo+a2knw==", + "version": "24.1.42", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-base/-/ej2-base-24.1.42.tgz", + "integrity": "sha512-3Zolyu6xA2pasid3Ttaf0qqQcEU/cQMJwuhaGa5vBnt1Xmo4oPkipUAsWLCtlfkmF/iUN9Hts3+8a4fBr4x3dA==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-icons": "~22.1.34" + "@syncfusion/ej2-icons": "~24.1.41" } }, "@syncfusion/ej2-buttons": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-buttons/-/ej2-buttons-22.1.34.tgz", - "integrity": "sha512-1sajqJn9CPCwuMKGvBL+hO6r5JsTlSIzXsa95dzd5zA10Hs3w1vcTxHz8VUcBwt+ffDG/n+jFpOM7HOlqivTww==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-buttons/-/ej2-buttons-24.1.41.tgz", + "integrity": "sha512-hko5TLLCssu7O9/iJKlogCR9hP6faaE6H96pOQ1qpuemv85SxUVBbDoAzCkDUg4/2HlsMJMSHGZ9ZHrPGUZJHA==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-base": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41" } }, "@syncfusion/ej2-calendars": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-calendars/-/ej2-calendars-22.1.34.tgz", - "integrity": "sha512-jbne3LK7X45A4UiG2O5w7/D4SoGQsESEiTu9AvcV2N/XXk7eZwVyZeSfq74zDUJpNNOJam1eI0w0dn2Wd+tqlA==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-calendars/-/ej2-calendars-24.1.41.tgz", + "integrity": "sha512-rpTYU6TwqdTXyOfKKubeLKTkBDv4AbkCyi1W3fdMs6RmobozjmkgquzNZFsVlFwRMYjViShoyUlWptrQw4iUAw==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-buttons": "~22.1.34", - "@syncfusion/ej2-inputs": "~22.1.34", - "@syncfusion/ej2-lists": "~22.1.34", - "@syncfusion/ej2-popups": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41", + "@syncfusion/ej2-inputs": "~24.1.41", + "@syncfusion/ej2-lists": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41" } }, "@syncfusion/ej2-charts": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-charts/-/ej2-charts-22.1.34.tgz", - "integrity": "sha512-2AKsmVVull1VQFiiap067TYLPp2bO3nefl0IwB9IJschWnQsBCjMT9o4dJ/3SkAFmX+c2Y0pqx5FmtWTau8Dcg==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-charts/-/ej2-charts-24.1.41.tgz", + "integrity": "sha512-FEsEsHdA3TDpQw0LhfYR4YFR9u0M7CoBhsc13UlEgs90r5QgqDQXw9AxDmHOO2HXaCQihueVDBeWPiH9emts/A==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-calendars": "~22.1.34", - "@syncfusion/ej2-compression": "~22.1.34", - "@syncfusion/ej2-data": "~22.1.34", - "@syncfusion/ej2-file-utils": "~22.1.34", - "@syncfusion/ej2-navigations": "~22.1.34", - "@syncfusion/ej2-pdf-export": "~22.1.34", - "@syncfusion/ej2-svg-base": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-calendars": "~24.1.41", + "@syncfusion/ej2-data": "~24.1.41", + "@syncfusion/ej2-excel-export": "~24.1.41", + "@syncfusion/ej2-navigations": "~24.1.41", + "@syncfusion/ej2-pdf-export": "~24.1.41", + "@syncfusion/ej2-svg-base": "~24.1.41" } }, "@syncfusion/ej2-compression": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-compression/-/ej2-compression-22.1.34.tgz", - "integrity": "sha512-IAjGrq7e3pBL+9Trp/0R4cqMxOYdyyI6p2wER25qjpumg/9R4waCFJAUCwMT/A1J8Vh3ggVFRt+4wYjT1i1ptw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-compression/-/ej2-compression-24.1.41.tgz", + "integrity": "sha512-OO3Am1WXMi+6V25QG3iySmikWA2gXWgKh4B9p1L8nksUptrvfdNFJqzNEEdZWoF9ftOMWHcagwklbFATjxEgRw==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-file-utils": "~22.1.34" + "@syncfusion/ej2-file-utils": "~24.1.41" } }, "@syncfusion/ej2-data": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-data/-/ej2-data-22.1.34.tgz", - "integrity": "sha512-pycR+5sTmrdSFZqumLyS/03A2pyuiX4tdW4DrP+YTkMrbiIe9KAH9eMBr6CM8fEmyMHz9ZylamreWs7ctRWWsw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-data/-/ej2-data-24.1.41.tgz", + "integrity": "sha512-xKSaV7CaF8K37nIf9SuG6387mqXoNt+k4uqiAI1Xsp9Z+UkpEd8wm1skeW2qJao5AyxVhUhV6MtX9grO8udCjg==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-base": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41" } }, "@syncfusion/ej2-documenteditor": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-documenteditor/-/ej2-documenteditor-22.1.34.tgz", - "integrity": "sha512-HHP7uhXLUOWF8j6FQt8EkoSu8fl3M/wFX5gOt82oP7qwvmBZdLnA6RtS48L0o9gqopSYeODEQcqLPL9Om80FDA==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-documenteditor/-/ej2-documenteditor-24.1.41.tgz", + "integrity": "sha512-QL7qYxQpW0NPMPQZKbCB5XwcKROV9tYyQaZqq78rS+YQxEMWGUHme9aI9utfC+nZiVm6GNfet3q7fPz6NIyalA==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-buttons": "~22.1.34", - "@syncfusion/ej2-calendars": "~22.1.34", - "@syncfusion/ej2-compression": "~22.1.34", - "@syncfusion/ej2-dropdowns": "~22.1.34", - "@syncfusion/ej2-file-utils": "~22.1.34", - "@syncfusion/ej2-inputs": "~22.1.34", - "@syncfusion/ej2-navigations": "~22.1.34", - "@syncfusion/ej2-office-chart": "~22.1.34", - "@syncfusion/ej2-popups": "~22.1.34", - "@syncfusion/ej2-splitbuttons": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41", + "@syncfusion/ej2-calendars": "~24.1.41", + "@syncfusion/ej2-compression": "~24.1.41", + "@syncfusion/ej2-dropdowns": "~24.1.41", + "@syncfusion/ej2-file-utils": "~24.1.41", + "@syncfusion/ej2-inputs": "~24.1.41", + "@syncfusion/ej2-navigations": "~24.1.41", + "@syncfusion/ej2-office-chart": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41", + "@syncfusion/ej2-splitbuttons": "~24.1.41" } }, "@syncfusion/ej2-dropdowns": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.1.34.tgz", - "integrity": "sha512-PCsUstBQeV4Nox4iM2jCt6IbzXGA5kY8Hx9ZdA5XUy6wMQxwlqpnm23ZZA/wICeT+X3LO0zm9DMSZcCMxFulXw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-24.1.41.tgz", + "integrity": "sha512-oVNjjjhSvZ3HSAW+E0WadpxD2fmiCXXmrMHNPtVTv31EXQryNVzVrMvMcn6dWmrg052NOG5MpYhmWdrh/vuWxA==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-data": "~22.1.34", - "@syncfusion/ej2-inputs": "~22.1.34", - "@syncfusion/ej2-lists": "~22.1.34", - "@syncfusion/ej2-navigations": "~22.1.34", - "@syncfusion/ej2-popups": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-data": "~24.1.41", + "@syncfusion/ej2-inputs": "~24.1.41", + "@syncfusion/ej2-lists": "~24.1.41", + "@syncfusion/ej2-navigations": "~24.1.41", + "@syncfusion/ej2-notifications": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41" + } + }, + "@syncfusion/ej2-excel-export": { + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-excel-export/-/ej2-excel-export-24.1.41.tgz", + "integrity": "sha512-ieLWcOeHc4jIhfcrUA79m0C60g44bbM1O+BhequQB/GK9o7WjhD7TmRUYZSK/4jU1pm9tu+YI8+P18vjDxWIgw==", + "optional": true, + "peer": true, + "requires": { + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-compression": "~24.1.41" } }, "@syncfusion/ej2-file-utils": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-file-utils/-/ej2-file-utils-22.1.34.tgz", - "integrity": "sha512-5pzzcQWaWJMCfOJ/XWx4ADvRWSBA1Hx6bxINGgeQlrkP/lQ/kgw3xn3xrYfaO6ujT2nqX6xVHqNpbTxPE7IWOg==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-file-utils/-/ej2-file-utils-24.1.41.tgz", + "integrity": "sha512-lMCSB9kZrn2qe7UvFq8N2xERCu8sCg+5LRESjlsB4+k+02MLhponHmMzAPbvMr3DJ5ctb7A1dihAdQT0Mwd3Jg==", "optional": true, "peer": true }, "@syncfusion/ej2-icons": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-icons/-/ej2-icons-22.1.34.tgz", - "integrity": "sha512-DErl0LGB7gndgdCUJ4DgGkccAAxga6BlqR0nxtYBKetNhQpICkzafiq0o8ZfDR5xV3bguIxHOTLZGYNB3PgVCw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-icons/-/ej2-icons-24.1.41.tgz", + "integrity": "sha512-r44Xr0QC1iGP6Ed5UVNyfIa3lmcDn680nzNoUbykUv02JaJv6nF0OQZeZNjjY3m8YrFhYCHdms0h9A9sU7c9/Q==", "optional": true, "peer": true }, "@syncfusion/ej2-inputs": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-inputs/-/ej2-inputs-22.1.34.tgz", - "integrity": "sha512-hORgtRRfujHh7ASH7RFteoLVkLIbT21J9/FLWlBMiQHcQ4UUTsyTiFEhJATUOuSsQZkxZ97ssv+OeZ13C1pjMw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-inputs/-/ej2-inputs-24.1.41.tgz", + "integrity": "sha512-scVtCR6XMrdr2RQe0HUG+y7Mdr4hnYrNJAYntUJgO0gxMiWjHku6UG+9FBruA3rC7INvNsBviCqvZIHyTXz4NA==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-buttons": "~22.1.34", - "@syncfusion/ej2-popups": "~22.1.34", - "@syncfusion/ej2-splitbuttons": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41", + "@syncfusion/ej2-splitbuttons": "~24.1.41" } }, "@syncfusion/ej2-lists": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-lists/-/ej2-lists-22.1.34.tgz", - "integrity": "sha512-fiOuLBXIWFh1Gf3VzCvhjJvOGLbreRnbEHqLyb7frTDM8hHNMYag53f+OwGF/+PG3X+M4eQmia/Lik3iJDaHTA==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-lists/-/ej2-lists-24.1.41.tgz", + "integrity": "sha512-TZrHBq02s2vxVwqjLUxx+iTGP8X93eJCkCwlhjajnjw7jU5Yireb//FVORwTzWuwlrVc2tEkDiGW3WYhnowVMg==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-buttons": "~22.1.34", - "@syncfusion/ej2-data": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41", + "@syncfusion/ej2-data": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41" } }, + "@syncfusion/ej2-locale": { + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-locale/-/ej2-locale-24.1.41.tgz", + "integrity": "sha512-Um8HWtIbIj8iMHX5yStSx3xFjj0axCeOxrHJV1f6VDCvCleF8S/aERqp4dxNm+mJQTs6aNUyWSiBIs7ErCZdWw==", + "peer": true + }, "@syncfusion/ej2-navigations": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-navigations/-/ej2-navigations-22.1.34.tgz", - "integrity": "sha512-SY8mYTl9suIPJ6B7ImxsoPgzeuAqNaelL9waAhjCbqQQGDO1zmPsPcSnLa9J1afCUYEJrypfk2ZgPTRrj5QsKQ==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-navigations/-/ej2-navigations-24.1.41.tgz", + "integrity": "sha512-l551sMOEpXeTSkaWNNEhmkSw5vGYIX8lURuywyUnF7L1QMbfZwhiy2fLYopcRqFOOXFsLchGXzaHBrcfcMtF2g==", + "optional": true, + "peer": true, + "requires": { + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41", + "@syncfusion/ej2-data": "~24.1.41", + "@syncfusion/ej2-inputs": "~24.1.41", + "@syncfusion/ej2-lists": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41" + } + }, + "@syncfusion/ej2-notifications": { + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-notifications/-/ej2-notifications-24.1.41.tgz", + "integrity": "sha512-equJ8+DrZj2yaGyAxs7GiGWtH14ns74RFj0q2ma/SCGQUNyUARgDiMdF5NlN4btnE3UGoAtKk5ikW8boole8Bw==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-buttons": "~22.1.34", - "@syncfusion/ej2-data": "~22.1.34", - "@syncfusion/ej2-inputs": "~22.1.34", - "@syncfusion/ej2-lists": "~22.1.34", - "@syncfusion/ej2-popups": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41" } }, "@syncfusion/ej2-office-chart": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-office-chart/-/ej2-office-chart-22.1.34.tgz", - "integrity": "sha512-bTRLzkqDxjumyak0YKc95Ia+9tkAWSrXtnav4SMja0agKEc87X8Cp1Qm/WKNNgROO7v1aCSEs0P7/V9sPTZBgw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-office-chart/-/ej2-office-chart-24.1.41.tgz", + "integrity": "sha512-NYVwyiUzp/ff4SMufz2tqdx9oWUL99pHJYuH5qpmI3NoEOPpOoviX/8HI/GzvBBamFeZTeZIVBwbvYRwoPQX9w==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-charts": "~22.1.34" + "@syncfusion/ej2-charts": "~24.1.41" } }, "@syncfusion/ej2-pdf-export": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-22.1.34.tgz", - "integrity": "sha512-5jcenuQh/JyrST1TTVUqben34bkKewkFAXcWcxclvtSNYp7gMntinW96BorGoT9FPRJQGQI9PB1FSo0FEFDnoQ==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-24.1.41.tgz", + "integrity": "sha512-AsPl0mHerlNPVEy+qm9CDxneDIAOIMVPxlVTcxhXeOwEugdkPAF9vTzx5jX3hoMLqnpnpxXq/FjyXcz4+fapbw==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-compression": "~22.1.34" + "@syncfusion/ej2-compression": "~24.1.41" } }, "@syncfusion/ej2-popups": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-popups/-/ej2-popups-22.1.34.tgz", - "integrity": "sha512-AIEx1ckt0tWzul0recVGevekMCtVZM1DY4XsQfTHXCsEGFqbx9fq48uSTuYP+A9wDgba54ztxiIluhrG0aQ1IA==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-popups/-/ej2-popups-24.1.41.tgz", + "integrity": "sha512-SSx3ZfdRAuSLjoo2/qU4PLLmbo5L+x1LqyxgxNq2bflRhx3Xdk51iEdS00ihTjBoMweE6KS3nPGHI8krOzv44A==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-buttons": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-buttons": "~24.1.41" } }, "@syncfusion/ej2-splitbuttons": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-22.1.34.tgz", - "integrity": "sha512-ZmeDl78KKxGVeXbQfivT/kDpcStVSunFdjACiv1AGMLS60JulGQP/W5E5iNqU2jUAV4RE2h1Ao0XlW54e8IhBw==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-24.1.41.tgz", + "integrity": "sha512-Drbvk2aD37anSVeP4WRqzipZYobRPFpaitlNGjP+qLb0UDzo8IHNE99McPRCC9C8wwYp4QAxhBfCZDQRkdW8gg==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-base": "~22.1.34", - "@syncfusion/ej2-popups": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41", + "@syncfusion/ej2-popups": "~24.1.41" } }, "@syncfusion/ej2-svg-base": { - "version": "22.1.34", - "resolved": "https://registry.npmjs.org/@syncfusion/ej2-svg-base/-/ej2-svg-base-22.1.34.tgz", - "integrity": "sha512-zOC0U5jpGVBmhU1TfQgSPP9HRS8bnA8ZuVu3RQ3/8yFjpkRlxZGRq3Q417eQGpRNYaMgWyzNJADNvWRL/mqnGg==", + "version": "24.1.41", + "resolved": "https://registry.npmjs.org/@syncfusion/ej2-svg-base/-/ej2-svg-base-24.1.41.tgz", + "integrity": "sha512-yYJ0+Yhs+8ESjsDHLOGcVwrp6N12pqx371Ob1eyzFjJ524N1A2DcIOyDGiFTWh9S9Iv7TdiSmh3GlyI8aDAh3g==", "optional": true, "peer": true, "requires": { - "@syncfusion/ej2-base": "~22.1.34" + "@syncfusion/ej2-base": "~24.1.41" } }, "@tsconfig/node10": { diff --git a/package.json b/package.json index 4dc23ef..1f2c3cd 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ }, "peerDependencies": { "@syncfusion/ej2-documenteditor": ">=23.2", + "@syncfusion/ej2-locale": ">=23.1", "tinymce": ">=6.5" }, "peerDependenciesMeta": { diff --git a/src/editor/index.ts b/src/editor/index.ts index 9e55293..bb450f9 100644 --- a/src/editor/index.ts +++ b/src/editor/index.ts @@ -58,9 +58,8 @@ export abstract class EditorAdapter { abstract insertInference(inference: IaraSpeechRecognitionDetail): void; abstract getEditorContent(): Promise<[string, string, string]>; - beginReport(currentReportId?: string): string | void { - if (currentReportId) return; - return this._recognition.beginReport(); + beginReport(): string | void { + return this._recognition.beginReport({ richText: "", text: "" }); } finishReport(clear = true): void { diff --git a/src/syncfusion/toolbar/config.ts b/src/syncfusion/toolbar/config.ts index c718e76..02ec523 100644 --- a/src/syncfusion/toolbar/config.ts +++ b/src/syncfusion/toolbar/config.ts @@ -1,4 +1,5 @@ import { DocumentEditorContainer } from "@syncfusion/ej2-documenteditor"; +import * as EJ2_LOCALE from "@syncfusion/ej2-locale/src/pt-BR.json"; import { ComboBox } from "@syncfusion/ej2-dropdowns"; import { ColorPicker } from "@syncfusion/ej2-inputs"; @@ -83,13 +84,19 @@ export const toolbarButtonClick = ( case "Double": editor.documentEditor.selection.paragraphFormat.lineSpacing = 2; break; + case "ShowParagraphMark": + //Show or hide the hidden characters like spaces, tab, paragraph marks, and breaks. + editor.documentEditor.documentEditorSettings.showHiddenMarks = + !editor.documentEditor.documentEditorSettings.showHiddenMarks; + break; default: break; } }; export const toolBarSettings = ( - editor: DocumentEditorContainer + editor: DocumentEditorContainer, + editorContainerLocale: typeof EJ2_LOCALE["pt-BR"]["documenteditorcontainer"] ): Record[] => { //To change the font Style of selected content const changeFontFamily = (args: { value: string }) => { @@ -238,37 +245,37 @@ export const toolBarSettings = ( { type: "Button", prefixIcon: "e-de-ctnr-bold e-icons", - tooltipText: "Bold", + tooltipText: editorContainerLocale["Bold Tooltip"], id: "bold", }, { type: "Button", prefixIcon: "e-de-ctnr-italic e-icons", - tooltipText: "Italic", + tooltipText: editorContainerLocale["Italic Tooltip"], id: "italic", }, { type: "Button", prefixIcon: "e-de-ctnr-underline e-icons", - tooltipText: "Underline", + tooltipText: editorContainerLocale["Underline Tooltip"], id: "underline", }, { type: "Button", prefixIcon: "e-de-ctnr-strikethrough e-icons", - tooltipText: "Strikethrough", + tooltipText: editorContainerLocale["Strikethrough"], id: "strikethrough", }, { type: "Button", prefixIcon: "e-de-ctnr-subscript e-icons", - tooltipText: "Subscript", + tooltipText: editorContainerLocale["Subscript Tooltip"], id: "subscript", }, { type: "Button", prefixIcon: "e-de-ctnr-superscript e-icons", - tooltipText: "Superscript", + tooltipText: editorContainerLocale["Superscript Tooltip"], id: "superscript", }, { type: "Separator" }, @@ -285,61 +292,54 @@ export const toolBarSettings = ( { type: "Separator" }, { prefixIcon: "e-de-ctnr-alignleft e-icons", - tooltipText: "Align Left", + tooltipText: editorContainerLocale["Align left Tooltip"], id: "AlignLeft", }, { prefixIcon: "e-de-ctnr-aligncenter e-icons", - tooltipText: "Align Center", + tooltipText: editorContainerLocale["Align center"], id: "AlignCenter", }, { prefixIcon: "e-de-ctnr-alignright e-icons", - tooltipText: "Align Right", + tooltipText: editorContainerLocale["Align right Tooltip"], id: "AlignRight", }, { prefixIcon: "e-de-ctnr-justify e-icons", - tooltipText: "Justify", + tooltipText: editorContainerLocale["Justify Tooltip"], id: "Justify", }, { prefixIcon: "e-de-ctnr-increaseindent e-icons", - tooltipText: "Increase Indent", + tooltipText: editorContainerLocale["Increase indent"], id: "IncreaseIndent", }, { prefixIcon: "e-de-ctnr-decreaseindent e-icons", - tooltipText: "Decrease Indent", + tooltipText: editorContainerLocale["Decrease indent"], id: "DecreaseIndent", }, { type: "Separator" }, - { - prefixIcon: "e-de-e-paragraph-mark e-icons", - tooltipText: - "Show the hidden characters like spaces, tab, paragraph marks, and breaks.(Ctrl + *)", - id: "ShowParagraphMark", - }, - { - prefixIcon: "e-de-ctnr-clearall e-icons", - tooltipText: "ClearFormatting", - id: "ClearFormat", - }, - { type: "Separator" }, { prefixIcon: "e-de-ctnr-bullets e-icons", - tooltipText: "Bullets", + tooltipText: editorContainerLocale["Bullets"], id: "Bullets", }, { prefixIcon: "e-de-ctnr-numbering e-icons", - tooltipText: "Numbering", + tooltipText: editorContainerLocale["Numbering"], id: "Numbering", }, { - text: "Clear", - id: "clearlist", - tooltipText: "Clear List", + prefixIcon: "e-de-e-paragraph-mark e-icons", + tooltipText: editorContainerLocale["Paragraph"], + id: "ShowParagraphMark", + }, + { + prefixIcon: "e-de-ctnr-clearall e-icons", + tooltipText: editorContainerLocale["Clear all formatting"], + id: "ClearFormat", }, ]; diff --git a/src/syncfusion/toolbar/index.ts b/src/syncfusion/toolbar/index.ts index dc8b9db..5c71d9b 100644 --- a/src/syncfusion/toolbar/index.ts +++ b/src/syncfusion/toolbar/index.ts @@ -1,11 +1,13 @@ import type { DocumentEditorContainer } from "@syncfusion/ej2-documenteditor"; +import * as EJ2_LOCALE from "@syncfusion/ej2-locale/src/pt-BR.json"; import { toolBarSettings, toolbarButtonClick } from "./config"; export class IaraSyncfusionToolbarManager { constructor(private _editor: DocumentEditorContainer) {} - public init() { - const toolbarItems = toolBarSettings(this._editor); + public init(): void { + const editorContainerLocale = EJ2_LOCALE["pt-BR"].documenteditorcontainer; + const toolbarItems = toolBarSettings(this._editor, editorContainerLocale); this._editor.toolbarModule.toolbar.addItems(toolbarItems, 5); this._editor.toolbarClick = this._onClickToolbar.bind(this); this._removePropertiesPane();