Update shoelace 2.16.0 -> 2.18.0

This commit is contained in:
nathan 2024-12-02 14:52:04 -07:00
parent 899558b242
commit 4a28b1bcd7
4 changed files with 19 additions and 10 deletions

View File

@ -356,6 +356,13 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
this.removeEventListener("sl-change", this._triggerChange); this.removeEventListener("sl-change", this._triggerChange);
} }
async getUpdateComplete()
{
const more = await super.getUpdateComplete();
await this.select.updateComplete;
return more;
}
_triggerChange(e) _triggerChange(e)
{ {
if(super._triggerChange(e)) if(super._triggerChange(e))
@ -1063,8 +1070,8 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
placement=${this.placement} placement=${this.placement}
tabindex="0" tabindex="0"
.getTag=${this._tagTemplate} .getTag=${this._tagTemplate}
.maxOptionsVisible=${0} maxOptionsVisible=${0}
.value=${value} value=${Array.isArray(value) ? value.join(" ") : value}
@sl-change=${this.handleValueChange} @sl-change=${this.handleValueChange}
@mouseenter=${this._handleMouseEnter} @mouseenter=${this._handleMouseEnter}
@mouseup=${this.handleOptionClick} @mouseup=${this.handleOptionClick}

View File

@ -149,7 +149,6 @@ describe("Select is not editable", () =>
it("Does not have edit button when not editable", async() => it("Does not have edit button when not editable", async() =>
{ {
debugger;
let tag = element.select.combobox.querySelectorAll(tag_name); let tag = element.select.combobox.querySelectorAll(tag_name);
assert.isAbove(tag.length, 0, "No tags found"); assert.isAbove(tag.length, 0, "No tags found");

15
package-lock.json generated
View File

@ -1,17 +1,17 @@
{ {
"name": "EGroupware", "name": "EGroupware",
"version": "23.1.20241111", "version": "23.1.20241128",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "EGroupware", "name": "EGroupware",
"version": "23.1.20241111", "version": "23.1.20241128",
"license": "GPL-2.0", "license": "GPL-2.0",
"dependencies": { "dependencies": {
"@bundled-es-modules/pdfjs-dist": "^2.5.207-rc1", "@bundled-es-modules/pdfjs-dist": "^2.5.207-rc1",
"@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-commonjs": "^24.0.1",
"@shoelace-style/shoelace": "2.16.0", "@shoelace-style/shoelace": "2.18.0",
"@types/jquery": "^3.5.29", "@types/jquery": "^3.5.29",
"blueimp-gallery": "^3.4.0", "blueimp-gallery": "^3.4.0",
"bootstrap-icons": "^1.11.3", "bootstrap-icons": "^1.11.3",
@ -3723,9 +3723,9 @@
"integrity": "sha512-Hf45HeO+vdQblabpyZOTxJ4ZeZsmIUYXXPmoYrrR4OJ5OKxL+bhMz5mK8JXgl7HsoEowfz7+e248UGi861de9Q==" "integrity": "sha512-Hf45HeO+vdQblabpyZOTxJ4ZeZsmIUYXXPmoYrrR4OJ5OKxL+bhMz5mK8JXgl7HsoEowfz7+e248UGi861de9Q=="
}, },
"node_modules/@shoelace-style/shoelace": { "node_modules/@shoelace-style/shoelace": {
"version": "2.16.0", "version": "2.18.0",
"resolved": "https://registry.npmjs.org/@shoelace-style/shoelace/-/shoelace-2.16.0.tgz", "resolved": "https://registry.npmjs.org/@shoelace-style/shoelace/-/shoelace-2.18.0.tgz",
"integrity": "sha512-OV4XYAAZv0OfOR4RlpxCYOn7pH8ETIL8Pkh5hFvIrL+BN4/vlBLoeESYDU2tB/f9iichu4cfwdPquJITmKdY1w==", "integrity": "sha512-uzpL0+8Qm8aE2ArcXBcKHkaPc6l7ymuVaN6xJM0yd2o3talcoXpuP+gRBsgggSZKuuJEa+JkEuLDdzzFnE/+jw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@ctrl/tinycolor": "^4.0.2", "@ctrl/tinycolor": "^4.0.2",
@ -4183,6 +4183,7 @@
"version": "15.7.13", "version": "15.7.13",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.13.tgz", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.13.tgz",
"integrity": "sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==", "integrity": "sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==",
"license": "MIT",
"peer": true "peer": true
}, },
"node_modules/@types/qs": { "node_modules/@types/qs": {
@ -4201,6 +4202,7 @@
"version": "18.3.12", "version": "18.3.12",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.12.tgz", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.12.tgz",
"integrity": "sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==", "integrity": "sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==",
"license": "MIT",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"@types/prop-types": "*", "@types/prop-types": "*",
@ -6909,6 +6911,7 @@
"version": "3.1.3", "version": "3.1.3",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
"license": "MIT",
"peer": true "peer": true
}, },
"node_modules/custom-element-jet-brains-integration": { "node_modules/custom-element-jet-brains-integration": {

View File

@ -82,7 +82,7 @@
"dependencies": { "dependencies": {
"@bundled-es-modules/pdfjs-dist": "^2.5.207-rc1", "@bundled-es-modules/pdfjs-dist": "^2.5.207-rc1",
"@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-commonjs": "^24.0.1",
"@shoelace-style/shoelace": "2.16.0", "@shoelace-style/shoelace": "2.18.0",
"@types/jquery": "^3.5.29", "@types/jquery": "^3.5.29",
"blueimp-gallery": "^3.4.0", "blueimp-gallery": "^3.4.0",
"bootstrap-icons": "^1.11.3", "bootstrap-icons": "^1.11.3",