From c2f993b68be75bbeaf56206a3933b2b9e69c3815 Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Tue, 28 May 2024 15:58:48 +0200 Subject: [PATCH 01/61] Feat: Input Lock Event & Media Card Name (#806) --- .../lib/uui-card-media.element.ts | 2 ++ .../uui-input-lock/lib/UUIInputLockEvent.ts | 13 ++++++++++++ .../lib/uui-input-lock.element.ts | 3 +++ .../uui-input-lock/lib/uui-input-lock.test.ts | 20 ++++++++++++++++++- 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 packages/uui-input-lock/lib/UUIInputLockEvent.ts diff --git a/packages/uui-card-media/lib/uui-card-media.element.ts b/packages/uui-card-media/lib/uui-card-media.element.ts index 04618a0a2..7c45d721b 100644 --- a/packages/uui-card-media/lib/uui-card-media.element.ts +++ b/packages/uui-card-media/lib/uui-card-media.element.ts @@ -174,6 +174,8 @@ export class UUICardMediaElement extends UUICardElement { font-size: var(--uui-type-small-size); box-sizing: border-box; padding: var(--uui-size-2) var(--uui-size-4); + text-align: left; + word-break: break-word; } :host([disabled]) #open-part { diff --git a/packages/uui-input-lock/lib/UUIInputLockEvent.ts b/packages/uui-input-lock/lib/UUIInputLockEvent.ts new file mode 100644 index 000000000..893b3376d --- /dev/null +++ b/packages/uui-input-lock/lib/UUIInputLockEvent.ts @@ -0,0 +1,13 @@ +import { UUIEvent } from '@umbraco-ui/uui-base/lib/events'; +import { UUIInputLockElement } from './uui-input-lock.element'; + +export class UUIInputLockEvent extends UUIEvent<{}, UUIInputLockElement> { + public static readonly LOCK_CHANGE: string = 'lock-change'; + + constructor(evName: string, eventInit: any | null = {}) { + super(evName, { + ...{ bubbles: true }, + ...eventInit, + }); + } +} diff --git a/packages/uui-input-lock/lib/uui-input-lock.element.ts b/packages/uui-input-lock/lib/uui-input-lock.element.ts index aeb42d019..861319df8 100644 --- a/packages/uui-input-lock/lib/uui-input-lock.element.ts +++ b/packages/uui-input-lock/lib/uui-input-lock.element.ts @@ -7,6 +7,7 @@ import { iconUnlock, } from '@umbraco-ui/uui-icon-registry-essential/lib/svgs'; import { property } from 'lit/decorators.js'; +import { UUIInputLockEvent } from './UUIInputLockEvent'; /** * @element uui-input-lock @@ -37,6 +38,8 @@ export class UUIInputLockElement extends UUIInputElement { _onLockToggle() { this.readonly = this.locked = !this.locked; + this.pristine = false; + this.dispatchEvent(new UUIInputLockEvent(UUIInputLockEvent.LOCK_CHANGE)); } renderIcon() { diff --git a/packages/uui-input-lock/lib/uui-input-lock.test.ts b/packages/uui-input-lock/lib/uui-input-lock.test.ts index 2d8486e4f..f75cc750f 100644 --- a/packages/uui-input-lock/lib/uui-input-lock.test.ts +++ b/packages/uui-input-lock/lib/uui-input-lock.test.ts @@ -1,9 +1,10 @@ -import { expect, fixture, html } from '@open-wc/testing'; +import { expect, fixture, html, oneEvent } from '@open-wc/testing'; import { UUIInputElement } from '@umbraco-ui/uui-input/lib'; import '@umbraco-ui/uui-icon/lib'; import '@umbraco-ui/uui-button/lib'; import { UUIInputLockElement } from './uui-input-lock.element'; +import { UUIInputLockEvent } from './UUIInputLockEvent'; describe('UUIInputLockElement', () => { let element: UUIInputLockElement; @@ -45,4 +46,21 @@ describe('UUIInputLockElement', () => { await toggle.click(); await expect(element.readonly).to.be.true; }); + + it('emits lock change event', async () => { + const listener = oneEvent(element, UUIInputLockEvent.LOCK_CHANGE, false); + + const toggle = element.shadowRoot?.querySelector( + '#lock', + ) as HTMLButtonElement; + await toggle.click(); + + const event = await listener; + + expect(event).to.exist; + expect(event.type).to.equal(UUIInputLockEvent.LOCK_CHANGE); + expect(event.bubbles).to.be.true; + expect(event.composed).to.be.false; + expect(event!.target).to.equal(element); + }); }); From 81c0a95a24b6df903f5382cb3b735cfa4a27f381 Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Mon, 17 Jun 2024 11:42:40 +0200 Subject: [PATCH 02/61] fix: Hide the native input for boolean elements in firefox (#808) * Hides the boolean input for firefox * opacity --- packages/uui-boolean-input/lib/uui-boolean-input.element.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/uui-boolean-input/lib/uui-boolean-input.element.ts b/packages/uui-boolean-input/lib/uui-boolean-input.element.ts index 80e5124e4..4d14dec64 100644 --- a/packages/uui-boolean-input/lib/uui-boolean-input.element.ts +++ b/packages/uui-boolean-input/lib/uui-boolean-input.element.ts @@ -193,6 +193,7 @@ export abstract class UUIBooleanInputElement extends UUIFormControlMixin( } label { + position: relative; cursor: pointer; user-select: none; @@ -207,7 +208,7 @@ export abstract class UUIBooleanInputElement extends UUIFormControlMixin( position: absolute; height: 0px; width: 0px; - margin-top: -4px; + opacity: 0; } :host([label-position='left']) label { From 0faf0ba67b0d9935252345d1af67daf475f37f94 Mon Sep 17 00:00:00 2001 From: Chriztian Steinmeier Date: Mon, 17 Jun 2024 11:44:51 +0200 Subject: [PATCH 03/61] docs: Fix wrong close tag in code samples (#811) --- .../uui-color-swatch/lib/uui-color-swatch.story.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/uui-color-swatch/lib/uui-color-swatch.story.ts b/packages/uui-color-swatch/lib/uui-color-swatch.story.ts index 02be2848d..45a62b70e 100644 --- a/packages/uui-color-swatch/lib/uui-color-swatch.story.ts +++ b/packages/uui-color-swatch/lib/uui-color-swatch.story.ts @@ -35,7 +35,7 @@ export const Selectable: Story = { parameters: { docs: { source: { - code: ``, + code: ``, }, }, }, @@ -57,7 +57,7 @@ export const Disabled: Story = { parameters: { docs: { source: { - code: ``, + code: ``, }, }, }, @@ -72,7 +72,7 @@ export const DisabledSelected: Story = { parameters: { docs: { source: { - code: ``, + code: ``, }, }, }, @@ -87,7 +87,7 @@ export const WithLabel: Story = { parameters: { docs: { source: { - code: ``, + code: ``, }, }, }, @@ -101,7 +101,7 @@ export const DifferentColorThanValue: Story = { parameters: { docs: { source: { - code: ``, + code: ``, }, }, }, @@ -114,7 +114,7 @@ export const Transparent: Story = { parameters: { docs: { source: { - code: ``, + code: ``, }, }, }, From e85ebe61bc2da7e24ba6294e5b93962998c101cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 11:48:20 +0200 Subject: [PATCH 04/61] build(deps-dev): bump @babel/core from 7.23.9 to 7.24.7 (#809) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.23.9 to 7.24.7. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.7/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 242 ++++++++++++++++++++++++---------------------- package.json | 2 +- 2 files changed, 128 insertions(+), 116 deletions(-) diff --git a/package-lock.json b/package-lock.json index ca57997c0..fedc78399 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "lit": "^2.8.0" }, "devDependencies": { - "@babel/core": "7.23.9", + "@babel/core": "7.24.7", "@lerna-lite/cli": "3.3.2", "@lerna-lite/exec": "3.3.2", "@lerna-lite/publish": "3.3.2", @@ -148,43 +148,43 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", - "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", "dev": true, "dependencies": { - "@babel/highlight": "^7.23.4", - "chalk": "^2.4.2" + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", - "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.7.tgz", + "integrity": "sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.23.9", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.9.tgz", - "integrity": "sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.7.tgz", + "integrity": "sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.23.5", - "@babel/generator": "^7.23.6", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.23.9", - "@babel/parser": "^7.23.9", - "@babel/template": "^7.23.9", - "@babel/traverse": "^7.23.9", - "@babel/types": "^7.23.9", + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.24.7", + "@babel/helper-compilation-targets": "^7.24.7", + "@babel/helper-module-transforms": "^7.24.7", + "@babel/helpers": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/template": "^7.24.7", + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -206,14 +206,14 @@ "dev": true }, "node_modules/@babel/generator": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", - "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.7.tgz", + "integrity": "sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==", "dev": true, "dependencies": { - "@babel/types": "^7.23.6", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", + "@babel/types": "^7.24.7", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^2.5.1" }, "engines": { @@ -245,13 +245,13 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", - "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz", + "integrity": "sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.23.5", - "@babel/helper-validator-option": "^7.23.5", + "@babel/compat-data": "^7.24.7", + "@babel/helper-validator-option": "^7.24.7", "browserslist": "^4.22.2", "lru-cache": "^5.1.1", "semver": "^6.3.1" @@ -317,33 +317,37 @@ } }, "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz", + "integrity": "sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==", "dev": true, + "dependencies": { + "@babel/types": "^7.24.7" + }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz", + "integrity": "sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==", "dev": true, "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" + "@babel/template": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz", + "integrity": "sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5" + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -362,27 +366,29 @@ } }, "node_modules/@babel/helper-module-imports": { - "version": "7.22.15", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", + "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.22.15" + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", - "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz", + "integrity": "sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==", "dev": true, "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" + "@babel/helper-environment-visitor": "^7.24.7", + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -447,11 +453,13 @@ } }, "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", + "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5" + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -470,38 +478,39 @@ } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz", + "integrity": "sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5" + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", - "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.7.tgz", + "integrity": "sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", - "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz", + "integrity": "sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==", "dev": true, "engines": { "node": ">=6.9.0" @@ -522,37 +531,37 @@ } }, "node_modules/@babel/helpers": { - "version": "7.23.9", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.9.tgz", - "integrity": "sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.7.tgz", + "integrity": "sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==", "dev": true, "dependencies": { - "@babel/template": "^7.23.9", - "@babel/traverse": "^7.23.9", - "@babel/types": "^7.23.9" + "@babel/template": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", - "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", + "@babel/helper-validator-identifier": "^7.24.7", "chalk": "^2.4.2", - "js-tokens": "^4.0.0" + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.23.9", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.9.tgz", - "integrity": "sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", + "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -2006,33 +2015,33 @@ } }, "node_modules/@babel/template": { - "version": "7.23.9", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.23.9.tgz", - "integrity": "sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.7.tgz", + "integrity": "sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/parser": "^7.23.9", - "@babel/types": "^7.23.9" + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.23.9", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.9.tgz", - "integrity": "sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/generator": "^7.23.6", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.9", - "@babel/types": "^7.23.9", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.7.tgz", + "integrity": "sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.24.7", + "@babel/helper-environment-visitor": "^7.24.7", + "@babel/helper-function-name": "^7.24.7", + "@babel/helper-hoist-variables": "^7.24.7", + "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/types": "^7.24.7", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -2041,13 +2050,13 @@ } }, "node_modules/@babel/types": { - "version": "7.23.9", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.9.tgz", - "integrity": "sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.23.4", - "@babel/helper-validator-identifier": "^7.22.20", + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", "to-fast-properties": "^2.0.0" }, "engines": { @@ -3148,13 +3157,14 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, - "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" @@ -3169,9 +3179,10 @@ } }, "node_modules/@jridgewell/set-array": { - "version": "1.1.2", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -3182,9 +3193,10 @@ "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.19", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" diff --git a/package.json b/package.json index 3c944f621..a6d011f6e 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "lit": "^2.8.0" }, "devDependencies": { - "@babel/core": "7.23.9", + "@babel/core": "7.24.7", "@lerna-lite/cli": "3.3.2", "@lerna-lite/exec": "3.3.2", "@lerna-lite/publish": "3.3.2", From aab702a5f14c679855b7f936acb38b7a564eb1e4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 11:48:32 +0200 Subject: [PATCH 05/61] build(deps-dev): bump esbuild from 0.20.0 to 0.21.5 (#810) Bumps [esbuild](https://github.com/evanw/esbuild) from 0.20.0 to 0.21.5. - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.20.0...v0.21.5) --- updated-dependencies: - dependency-name: esbuild dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 192 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 97 insertions(+), 97 deletions(-) diff --git a/package-lock.json b/package-lock.json index fedc78399..295e5745c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,7 +41,7 @@ "babel-loader": "9.1.3", "chromatic": "11.0.0", "element-internals-polyfill": "1.3.10", - "esbuild": "0.20.0", + "esbuild": "0.21.5", "eslint": "8.56.0", "eslint-config-prettier": "9.1.0", "eslint-import-resolver-typescript": "3.6.1", @@ -2185,9 +2185,9 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.0.tgz", - "integrity": "sha512-fGFDEctNh0CcSwsiRPxiaqX0P5rq+AqE0SRhYGZ4PX46Lg1FNR6oCxJghf8YgY0WQEgQuh3lErUFE4KxLeRmmw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", "cpu": [ "ppc64" ], @@ -2201,9 +2201,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.0.tgz", - "integrity": "sha512-3bMAfInvByLHfJwYPJRlpTeaQA75n8C/QKpEaiS4HrFWFiJlNI0vzq/zCjBrhAYcPyVPG7Eo9dMrcQXuqmNk5g==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", "cpu": [ "arm" ], @@ -2217,9 +2217,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.0.tgz", - "integrity": "sha512-aVpnM4lURNkp0D3qPoAzSG92VXStYmoVPOgXveAUoQBWRSuQzt51yvSju29J6AHPmwY1BjH49uR29oyfH1ra8Q==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", "cpu": [ "arm64" ], @@ -2233,9 +2233,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.0.tgz", - "integrity": "sha512-uK7wAnlRvjkCPzh8jJ+QejFyrP8ObKuR5cBIsQZ+qbMunwR8sbd8krmMbxTLSrDhiPZaJYKQAU5Y3iMDcZPhyQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", "cpu": [ "x64" ], @@ -2249,9 +2249,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.0.tgz", - "integrity": "sha512-AjEcivGAlPs3UAcJedMa9qYg9eSfU6FnGHJjT8s346HSKkrcWlYezGE8VaO2xKfvvlZkgAhyvl06OJOxiMgOYQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", "cpu": [ "arm64" ], @@ -2265,9 +2265,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.0.tgz", - "integrity": "sha512-bsgTPoyYDnPv8ER0HqnJggXK6RyFy4PH4rtsId0V7Efa90u2+EifxytE9pZnsDgExgkARy24WUQGv9irVbTvIw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", "cpu": [ "x64" ], @@ -2281,9 +2281,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.0.tgz", - "integrity": "sha512-kQ7jYdlKS335mpGbMW5tEe3IrQFIok9r84EM3PXB8qBFJPSc6dpWfrtsC/y1pyrz82xfUIn5ZrnSHQQsd6jebQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", "cpu": [ "arm64" ], @@ -2297,9 +2297,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.0.tgz", - "integrity": "sha512-uG8B0WSepMRsBNVXAQcHf9+Ko/Tr+XqmK7Ptel9HVmnykupXdS4J7ovSQUIi0tQGIndhbqWLaIL/qO/cWhXKyQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", "cpu": [ "x64" ], @@ -2313,9 +2313,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.0.tgz", - "integrity": "sha512-2ezuhdiZw8vuHf1HKSf4TIk80naTbP9At7sOqZmdVwvvMyuoDiZB49YZKLsLOfKIr77+I40dWpHVeY5JHpIEIg==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", "cpu": [ "arm" ], @@ -2329,9 +2329,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.0.tgz", - "integrity": "sha512-uTtyYAP5veqi2z9b6Gr0NUoNv9F/rOzI8tOD5jKcCvRUn7T60Bb+42NDBCWNhMjkQzI0qqwXkQGo1SY41G52nw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", "cpu": [ "arm64" ], @@ -2345,9 +2345,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.0.tgz", - "integrity": "sha512-c88wwtfs8tTffPaoJ+SQn3y+lKtgTzyjkD8NgsyCtCmtoIC8RDL7PrJU05an/e9VuAke6eJqGkoMhJK1RY6z4w==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", "cpu": [ "ia32" ], @@ -2361,9 +2361,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.0.tgz", - "integrity": "sha512-lR2rr/128/6svngnVta6JN4gxSXle/yZEZL3o4XZ6esOqhyR4wsKyfu6qXAL04S4S5CgGfG+GYZnjFd4YiG3Aw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", "cpu": [ "loong64" ], @@ -2377,9 +2377,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.0.tgz", - "integrity": "sha512-9Sycc+1uUsDnJCelDf6ZNqgZQoK1mJvFtqf2MUz4ujTxGhvCWw+4chYfDLPepMEvVL9PDwn6HrXad5yOrNzIsQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", "cpu": [ "mips64el" ], @@ -2393,9 +2393,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.0.tgz", - "integrity": "sha512-CoWSaaAXOZd+CjbUTdXIJE/t7Oz+4g90A3VBCHLbfuc5yUQU/nFDLOzQsN0cdxgXd97lYW/psIIBdjzQIwTBGw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", "cpu": [ "ppc64" ], @@ -2409,9 +2409,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.0.tgz", - "integrity": "sha512-mlb1hg/eYRJUpv8h/x+4ShgoNLL8wgZ64SUr26KwglTYnwAWjkhR2GpoKftDbPOCnodA9t4Y/b68H4J9XmmPzA==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", "cpu": [ "riscv64" ], @@ -2425,9 +2425,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.0.tgz", - "integrity": "sha512-fgf9ubb53xSnOBqyvWEY6ukBNRl1mVX1srPNu06B6mNsNK20JfH6xV6jECzrQ69/VMiTLvHMicQR/PgTOgqJUQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", "cpu": [ "s390x" ], @@ -2441,9 +2441,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.0.tgz", - "integrity": "sha512-H9Eu6MGse++204XZcYsse1yFHmRXEWgadk2N58O/xd50P9EvFMLJTQLg+lB4E1cF2xhLZU5luSWtGTb0l9UeSg==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", "cpu": [ "x64" ], @@ -2457,9 +2457,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.0.tgz", - "integrity": "sha512-lCT675rTN1v8Fo+RGrE5KjSnfY0x9Og4RN7t7lVrN3vMSjy34/+3na0q7RIfWDAj0e0rCh0OL+P88lu3Rt21MQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", "cpu": [ "x64" ], @@ -2473,9 +2473,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.0.tgz", - "integrity": "sha512-HKoUGXz/TOVXKQ+67NhxyHv+aDSZf44QpWLa3I1lLvAwGq8x1k0T+e2HHSRvxWhfJrFxaaqre1+YyzQ99KixoA==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", "cpu": [ "x64" ], @@ -2489,9 +2489,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.0.tgz", - "integrity": "sha512-GDwAqgHQm1mVoPppGsoq4WJwT3vhnz/2N62CzhvApFD1eJyTroob30FPpOZabN+FgCjhG+AgcZyOPIkR8dfD7g==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", "cpu": [ "x64" ], @@ -2505,9 +2505,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.0.tgz", - "integrity": "sha512-0vYsP8aC4TvMlOQYozoksiaxjlvUcQrac+muDqj1Fxy6jh9l9CZJzj7zmh8JGfiV49cYLTorFLxg7593pGldwQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", "cpu": [ "arm64" ], @@ -2521,9 +2521,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.0.tgz", - "integrity": "sha512-p98u4rIgfh4gdpV00IqknBD5pC84LCub+4a3MO+zjqvU5MVXOc3hqR2UgT2jI2nh3h8s9EQxmOsVI3tyzv1iFg==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", "cpu": [ "ia32" ], @@ -2537,9 +2537,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.0.tgz", - "integrity": "sha512-NgJnesu1RtWihtTtXGFMU5YSE6JyyHPMxCwBZK7a6/8d31GuSo9l0Ss7w1Jw5QnKUawG6UEehs883kcXf5fYwg==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", "cpu": [ "x64" ], @@ -16792,9 +16792,9 @@ } }, "node_modules/esbuild": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.0.tgz", - "integrity": "sha512-6iwE3Y2RVYCME1jLpBqq7LQWK3MW6vjV2bZy6gt/WrqkY+WE74Spyc0ThAOYpMtITvnjX09CrC6ym7A/m9mebA==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", "dev": true, "hasInstallScript": true, "bin": { @@ -16804,29 +16804,29 @@ "node": ">=12" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.20.0", - "@esbuild/android-arm": "0.20.0", - "@esbuild/android-arm64": "0.20.0", - "@esbuild/android-x64": "0.20.0", - "@esbuild/darwin-arm64": "0.20.0", - "@esbuild/darwin-x64": "0.20.0", - "@esbuild/freebsd-arm64": "0.20.0", - "@esbuild/freebsd-x64": "0.20.0", - "@esbuild/linux-arm": "0.20.0", - "@esbuild/linux-arm64": "0.20.0", - "@esbuild/linux-ia32": "0.20.0", - "@esbuild/linux-loong64": "0.20.0", - "@esbuild/linux-mips64el": "0.20.0", - "@esbuild/linux-ppc64": "0.20.0", - "@esbuild/linux-riscv64": "0.20.0", - "@esbuild/linux-s390x": "0.20.0", - "@esbuild/linux-x64": "0.20.0", - "@esbuild/netbsd-x64": "0.20.0", - "@esbuild/openbsd-x64": "0.20.0", - "@esbuild/sunos-x64": "0.20.0", - "@esbuild/win32-arm64": "0.20.0", - "@esbuild/win32-ia32": "0.20.0", - "@esbuild/win32-x64": "0.20.0" + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" } }, "node_modules/esbuild-plugin-alias": { diff --git a/package.json b/package.json index a6d011f6e..0a5427959 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "babel-loader": "9.1.3", "chromatic": "11.0.0", "element-internals-polyfill": "1.3.10", - "esbuild": "0.20.0", + "esbuild": "0.21.5", "eslint": "8.56.0", "eslint-config-prettier": "9.1.0", "eslint-import-resolver-typescript": "3.6.1", From 2f1096f71a3cae715db566c083341443dd6205e6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 11:48:53 +0200 Subject: [PATCH 06/61] build(deps-dev): bump ejs from 3.1.9 to 3.1.10 (#793) Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10. - [Release notes](https://github.com/mde/ejs/releases) - [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10) --- updated-dependencies: - dependency-name: ejs dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 295e5745c..29c40b165 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16537,9 +16537,9 @@ "license": "MIT" }, "node_modules/ejs": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", - "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", "dev": true, "dependencies": { "jake": "^10.8.5" From ad457328085c57e4beb64faf9712d19f5a38355b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 09:55:34 +0000 Subject: [PATCH 07/61] build(deps-dev): bump braces from 3.0.2 to 3.0.3 (#812) Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 29c40b165..b29b5b98d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13666,11 +13666,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, - "license": "MIT", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -18025,9 +18026,10 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, - "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -20290,8 +20292,9 @@ }, "node_modules/is-number": { "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -30482,8 +30485,9 @@ }, "node_modules/to-regex-range": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, From b3fcd2b535ce3d7049739d13a6b56a9cc2036e8a Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:56:36 +0200 Subject: [PATCH 08/61] fix: prevent overflow when not hovered (#816) Co-authored-by: JesmoDev <26099018+JesmoDev@users.noreply.github.com> --- packages/uui-menu-item/lib/uui-menu-item.element.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/uui-menu-item/lib/uui-menu-item.element.ts b/packages/uui-menu-item/lib/uui-menu-item.element.ts index 29328580f..c691349d5 100644 --- a/packages/uui-menu-item/lib/uui-menu-item.element.ts +++ b/packages/uui-menu-item/lib/uui-menu-item.element.ts @@ -508,6 +508,7 @@ export class UUIMenuItemElement extends SelectOnlyMixin( opacity: 0; width: 0; grid-column-start: 3; + overflow: hidden; } :host(:not([disabled])) #menu-item:hover #actions-container, :host(:not([disabled])) #menu-item:focus #actions-container, From 21ea29bef0a256cba0ba90110e6503af622a1326 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 06:32:45 +0000 Subject: [PATCH 09/61] build(deps-dev): bump ws from 6.2.2 to 6.2.3 Bumps [ws](https://github.com/websockets/ws) from 6.2.2 to 6.2.3. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/compare/6.2.2...6.2.3) --- updated-dependencies: - dependency-name: ws dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index b29b5b98d..dc61d081d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8659,9 +8659,9 @@ } }, "node_modules/@storybook/cli/node_modules/ws": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz", - "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==", + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.3.tgz", + "integrity": "sha512-jmTjYU0j60B+vHey6TfR3Z7RD61z/hmxBS3VMSGIrroOWXQEneK1zNuotOUrGyBHQj0yrpsLHPWtigEFd13ndA==", "dev": true, "dependencies": { "async-limiter": "~1.0.0" @@ -11489,9 +11489,10 @@ } }, "node_modules/@web/dev-server-core/node_modules/ws": { - "version": "7.5.9", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.3.0" }, @@ -11980,9 +11981,9 @@ } }, "node_modules/@web/dev-server-esbuild/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "dev": true, "engines": { "node": ">=8.3.0" @@ -12423,9 +12424,9 @@ } }, "node_modules/@web/test-runner-playwright/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "dev": true, "engines": { "node": ">=8.3.0" @@ -32503,9 +32504,9 @@ "dev": true }, "node_modules/ws": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", "dev": true, "engines": { "node": ">=10.0.0" From 12bcd06f978f0937b9d697c4c16f449779038b56 Mon Sep 17 00:00:00 2001 From: Jason Elkin Date: Tue, 18 Jun 2024 10:21:36 +0100 Subject: [PATCH 10/61] feat(uui-slider): Hide label property + fix error for floating point numbers (#813) * Add ability to hide the value label * Match decimal places displayed to decimal places in step * Fix lag * Fix thumb inner positioning on high DPI displays --- packages/uui-slider/lib/uui-slider.element.ts | 38 +++++++++++++++---- packages/uui-slider/lib/uui-slider.story.ts | 4 +- 2 files changed, 33 insertions(+), 9 deletions(-) diff --git a/packages/uui-slider/lib/uui-slider.element.ts b/packages/uui-slider/lib/uui-slider.element.ts index d2aa63f20..830be1b86 100644 --- a/packages/uui-slider/lib/uui-slider.element.ts +++ b/packages/uui-slider/lib/uui-slider.element.ts @@ -61,6 +61,8 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { */ static readonly formAssociated = true; + #stepDecimalPlaces = 0; + /** * Hides the numbers representing the value of each steps. Dots will still be visible * @type {boolean} @@ -70,6 +72,15 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { @property({ type: Boolean, attribute: 'hide-step-values' }) hideStepValues = false; + /** + * Hides the value label on the thumb. + * @type {boolean} + * @attr 'hide-value-label' + * @default false + */ + @property({ type: Boolean, attribute: 'hide-value-label' }) + hideValueLabel = false; + /** * This is a minimum value of the input. * @type {number} @@ -95,7 +106,16 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { * @default 1 */ @property({ type: Number }) - step = 1; + public get step() { + return this.#step; + } + + public set step(value) { + this.#step = value; + this.#stepDecimalPlaces = (value.toString().split('.')[1] || []).length; + } + + #step = 1; /** * This is a value property of the uui-slider. @@ -117,11 +137,13 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { let correctedValue = newVal ? parseFloat(newVal as string) : 0; correctedValue = Math.min(Math.max(correctedValue, this.min), this.max); + if (this.step > 0) { correctedValue = Math.round(correctedValue / this.step) * this.step; } - super.value = correctedValue.toString(); + super.value = correctedValue.toFixed(this.#stepDecimalPlaces).toString(); + this._calculateSliderPosition(); this.requestUpdate('value', oldVal); } @@ -285,7 +307,9 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { @@ -350,6 +374,9 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { #thumb { position: absolute; + display: flex; + align-items: center; + justify-content: center; top: 2px; bottom: 0; left: 0; @@ -362,8 +389,6 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { background-color: var(--uui-color-surface); border: 2px solid var(--uui-color-selected); - - transition: 120ms left ease; } :host([disabled]) #thumb { background-color: var(--uui-color-disabled); @@ -372,9 +397,6 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { #thumb:after { content: ''; - position: absolute; - top: 2px; - left: 2px; height: 9px; width: 9px; border-radius: 50%; diff --git a/packages/uui-slider/lib/uui-slider.story.ts b/packages/uui-slider/lib/uui-slider.story.ts index 7ab57aa17..0e296b7a9 100644 --- a/packages/uui-slider/lib/uui-slider.story.ts +++ b/packages/uui-slider/lib/uui-slider.story.ts @@ -14,6 +14,7 @@ export default { step: 1, label: 'Slider label', hideStepValues: false, + hideValueLabel: false, value: 0, disabled: false, }, @@ -38,7 +39,8 @@ const Template: Story = props => html` max=${props.max} ?disabled=${props.disabled} .value=${props.value} - .hideStepValues=${props.hideStepValues}> + .hideStepValues=${props.hideStepValues} + .hideValueLabel=${props.hideValueLabel}> `; export const AAAOverview = Template.bind({}); From ebeab23bde6bb5c0fe1feab27dd46332296a39dd Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Tue, 28 May 2024 15:58:48 +0200 Subject: [PATCH 11/61] Feat: Input Lock Event & Media Card Name (#806) --- .../lib/uui-card-media.element.ts | 2 ++ .../uui-input-lock/lib/UUIInputLockEvent.ts | 13 ++++++++++++ .../lib/uui-input-lock.element.ts | 3 +++ .../uui-input-lock/lib/uui-input-lock.test.ts | 20 ++++++++++++++++++- 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 packages/uui-input-lock/lib/UUIInputLockEvent.ts diff --git a/packages/uui-card-media/lib/uui-card-media.element.ts b/packages/uui-card-media/lib/uui-card-media.element.ts index 04618a0a2..7c45d721b 100644 --- a/packages/uui-card-media/lib/uui-card-media.element.ts +++ b/packages/uui-card-media/lib/uui-card-media.element.ts @@ -174,6 +174,8 @@ export class UUICardMediaElement extends UUICardElement { font-size: var(--uui-type-small-size); box-sizing: border-box; padding: var(--uui-size-2) var(--uui-size-4); + text-align: left; + word-break: break-word; } :host([disabled]) #open-part { diff --git a/packages/uui-input-lock/lib/UUIInputLockEvent.ts b/packages/uui-input-lock/lib/UUIInputLockEvent.ts new file mode 100644 index 000000000..893b3376d --- /dev/null +++ b/packages/uui-input-lock/lib/UUIInputLockEvent.ts @@ -0,0 +1,13 @@ +import { UUIEvent } from '@umbraco-ui/uui-base/lib/events'; +import { UUIInputLockElement } from './uui-input-lock.element'; + +export class UUIInputLockEvent extends UUIEvent<{}, UUIInputLockElement> { + public static readonly LOCK_CHANGE: string = 'lock-change'; + + constructor(evName: string, eventInit: any | null = {}) { + super(evName, { + ...{ bubbles: true }, + ...eventInit, + }); + } +} diff --git a/packages/uui-input-lock/lib/uui-input-lock.element.ts b/packages/uui-input-lock/lib/uui-input-lock.element.ts index aeb42d019..861319df8 100644 --- a/packages/uui-input-lock/lib/uui-input-lock.element.ts +++ b/packages/uui-input-lock/lib/uui-input-lock.element.ts @@ -7,6 +7,7 @@ import { iconUnlock, } from '@umbraco-ui/uui-icon-registry-essential/lib/svgs'; import { property } from 'lit/decorators.js'; +import { UUIInputLockEvent } from './UUIInputLockEvent'; /** * @element uui-input-lock @@ -37,6 +38,8 @@ export class UUIInputLockElement extends UUIInputElement { _onLockToggle() { this.readonly = this.locked = !this.locked; + this.pristine = false; + this.dispatchEvent(new UUIInputLockEvent(UUIInputLockEvent.LOCK_CHANGE)); } renderIcon() { diff --git a/packages/uui-input-lock/lib/uui-input-lock.test.ts b/packages/uui-input-lock/lib/uui-input-lock.test.ts index 2d8486e4f..f75cc750f 100644 --- a/packages/uui-input-lock/lib/uui-input-lock.test.ts +++ b/packages/uui-input-lock/lib/uui-input-lock.test.ts @@ -1,9 +1,10 @@ -import { expect, fixture, html } from '@open-wc/testing'; +import { expect, fixture, html, oneEvent } from '@open-wc/testing'; import { UUIInputElement } from '@umbraco-ui/uui-input/lib'; import '@umbraco-ui/uui-icon/lib'; import '@umbraco-ui/uui-button/lib'; import { UUIInputLockElement } from './uui-input-lock.element'; +import { UUIInputLockEvent } from './UUIInputLockEvent'; describe('UUIInputLockElement', () => { let element: UUIInputLockElement; @@ -45,4 +46,21 @@ describe('UUIInputLockElement', () => { await toggle.click(); await expect(element.readonly).to.be.true; }); + + it('emits lock change event', async () => { + const listener = oneEvent(element, UUIInputLockEvent.LOCK_CHANGE, false); + + const toggle = element.shadowRoot?.querySelector( + '#lock', + ) as HTMLButtonElement; + await toggle.click(); + + const event = await listener; + + expect(event).to.exist; + expect(event.type).to.equal(UUIInputLockEvent.LOCK_CHANGE); + expect(event.bubbles).to.be.true; + expect(event.composed).to.be.false; + expect(event!.target).to.equal(element); + }); }); From bc310888ef68faf685e0f0c3ac05827381d5ddcd Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Mon, 17 Jun 2024 11:42:40 +0200 Subject: [PATCH 12/61] fix: Hide the native input for boolean elements in firefox (#808) * Hides the boolean input for firefox * opacity --- packages/uui-boolean-input/lib/uui-boolean-input.element.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/uui-boolean-input/lib/uui-boolean-input.element.ts b/packages/uui-boolean-input/lib/uui-boolean-input.element.ts index 80e5124e4..4d14dec64 100644 --- a/packages/uui-boolean-input/lib/uui-boolean-input.element.ts +++ b/packages/uui-boolean-input/lib/uui-boolean-input.element.ts @@ -193,6 +193,7 @@ export abstract class UUIBooleanInputElement extends UUIFormControlMixin( } label { + position: relative; cursor: pointer; user-select: none; @@ -207,7 +208,7 @@ export abstract class UUIBooleanInputElement extends UUIFormControlMixin( position: absolute; height: 0px; width: 0px; - margin-top: -4px; + opacity: 0; } :host([label-position='left']) label { From 3cc14e6cf04034b2720cd7988d26cf9ce6f76574 Mon Sep 17 00:00:00 2001 From: Chriztian Steinmeier Date: Mon, 17 Jun 2024 11:44:51 +0200 Subject: [PATCH 13/61] docs: Fix wrong close tag in code samples (#811) --- .../uui-color-swatch/lib/uui-color-swatch.story.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/uui-color-swatch/lib/uui-color-swatch.story.ts b/packages/uui-color-swatch/lib/uui-color-swatch.story.ts index 02be2848d..45a62b70e 100644 --- a/packages/uui-color-swatch/lib/uui-color-swatch.story.ts +++ b/packages/uui-color-swatch/lib/uui-color-swatch.story.ts @@ -35,7 +35,7 @@ export const Selectable: Story = { parameters: { docs: { source: { - code: ``, + code: ``, }, }, }, @@ -57,7 +57,7 @@ export const Disabled: Story = { parameters: { docs: { source: { - code: ``, + code: ``, }, }, }, @@ -72,7 +72,7 @@ export const DisabledSelected: Story = { parameters: { docs: { source: { - code: ``, + code: ``, }, }, }, @@ -87,7 +87,7 @@ export const WithLabel: Story = { parameters: { docs: { source: { - code: ``, + code: ``, }, }, }, @@ -101,7 +101,7 @@ export const DifferentColorThanValue: Story = { parameters: { docs: { source: { - code: ``, + code: ``, }, }, }, @@ -114,7 +114,7 @@ export const Transparent: Story = { parameters: { docs: { source: { - code: ``, + code: ``, }, }, }, From f0a053e858582ac9b14c1eaf50f2d626f3796ba6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 11:48:20 +0200 Subject: [PATCH 14/61] build(deps-dev): bump @babel/core from 7.23.9 to 7.24.7 (#809) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.23.9 to 7.24.7. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.7/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 242 ++++++++++++++++++++++++---------------------- package.json | 2 +- 2 files changed, 128 insertions(+), 116 deletions(-) diff --git a/package-lock.json b/package-lock.json index ca57997c0..fedc78399 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "lit": "^2.8.0" }, "devDependencies": { - "@babel/core": "7.23.9", + "@babel/core": "7.24.7", "@lerna-lite/cli": "3.3.2", "@lerna-lite/exec": "3.3.2", "@lerna-lite/publish": "3.3.2", @@ -148,43 +148,43 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", - "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", "dev": true, "dependencies": { - "@babel/highlight": "^7.23.4", - "chalk": "^2.4.2" + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", - "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.7.tgz", + "integrity": "sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.23.9", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.9.tgz", - "integrity": "sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.7.tgz", + "integrity": "sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.23.5", - "@babel/generator": "^7.23.6", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.23.9", - "@babel/parser": "^7.23.9", - "@babel/template": "^7.23.9", - "@babel/traverse": "^7.23.9", - "@babel/types": "^7.23.9", + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.24.7", + "@babel/helper-compilation-targets": "^7.24.7", + "@babel/helper-module-transforms": "^7.24.7", + "@babel/helpers": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/template": "^7.24.7", + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -206,14 +206,14 @@ "dev": true }, "node_modules/@babel/generator": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", - "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.7.tgz", + "integrity": "sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==", "dev": true, "dependencies": { - "@babel/types": "^7.23.6", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", + "@babel/types": "^7.24.7", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^2.5.1" }, "engines": { @@ -245,13 +245,13 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", - "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz", + "integrity": "sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.23.5", - "@babel/helper-validator-option": "^7.23.5", + "@babel/compat-data": "^7.24.7", + "@babel/helper-validator-option": "^7.24.7", "browserslist": "^4.22.2", "lru-cache": "^5.1.1", "semver": "^6.3.1" @@ -317,33 +317,37 @@ } }, "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz", + "integrity": "sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==", "dev": true, + "dependencies": { + "@babel/types": "^7.24.7" + }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz", + "integrity": "sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==", "dev": true, "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" + "@babel/template": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz", + "integrity": "sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5" + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -362,27 +366,29 @@ } }, "node_modules/@babel/helper-module-imports": { - "version": "7.22.15", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", + "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.22.15" + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", - "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz", + "integrity": "sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==", "dev": true, "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" + "@babel/helper-environment-visitor": "^7.24.7", + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -447,11 +453,13 @@ } }, "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", + "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5" + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -470,38 +478,39 @@ } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz", + "integrity": "sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.22.5" + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", - "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.7.tgz", + "integrity": "sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", - "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz", + "integrity": "sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==", "dev": true, "engines": { "node": ">=6.9.0" @@ -522,37 +531,37 @@ } }, "node_modules/@babel/helpers": { - "version": "7.23.9", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.9.tgz", - "integrity": "sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.7.tgz", + "integrity": "sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==", "dev": true, "dependencies": { - "@babel/template": "^7.23.9", - "@babel/traverse": "^7.23.9", - "@babel/types": "^7.23.9" + "@babel/template": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", - "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", + "@babel/helper-validator-identifier": "^7.24.7", "chalk": "^2.4.2", - "js-tokens": "^4.0.0" + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.23.9", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.9.tgz", - "integrity": "sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", + "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -2006,33 +2015,33 @@ } }, "node_modules/@babel/template": { - "version": "7.23.9", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.23.9.tgz", - "integrity": "sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.7.tgz", + "integrity": "sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/parser": "^7.23.9", - "@babel/types": "^7.23.9" + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.23.9", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.9.tgz", - "integrity": "sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/generator": "^7.23.6", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.9", - "@babel/types": "^7.23.9", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.7.tgz", + "integrity": "sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.24.7", + "@babel/helper-environment-visitor": "^7.24.7", + "@babel/helper-function-name": "^7.24.7", + "@babel/helper-hoist-variables": "^7.24.7", + "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/types": "^7.24.7", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -2041,13 +2050,13 @@ } }, "node_modules/@babel/types": { - "version": "7.23.9", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.9.tgz", - "integrity": "sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.23.4", - "@babel/helper-validator-identifier": "^7.22.20", + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", "to-fast-properties": "^2.0.0" }, "engines": { @@ -3148,13 +3157,14 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, - "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" @@ -3169,9 +3179,10 @@ } }, "node_modules/@jridgewell/set-array": { - "version": "1.1.2", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -3182,9 +3193,10 @@ "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.19", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" diff --git a/package.json b/package.json index 3c944f621..a6d011f6e 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "lit": "^2.8.0" }, "devDependencies": { - "@babel/core": "7.23.9", + "@babel/core": "7.24.7", "@lerna-lite/cli": "3.3.2", "@lerna-lite/exec": "3.3.2", "@lerna-lite/publish": "3.3.2", From c9651e58f8f100f6b4567f87ee7c8317d11690c0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 11:48:32 +0200 Subject: [PATCH 15/61] build(deps-dev): bump esbuild from 0.20.0 to 0.21.5 (#810) Bumps [esbuild](https://github.com/evanw/esbuild) from 0.20.0 to 0.21.5. - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.20.0...v0.21.5) --- updated-dependencies: - dependency-name: esbuild dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 192 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 97 insertions(+), 97 deletions(-) diff --git a/package-lock.json b/package-lock.json index fedc78399..295e5745c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,7 +41,7 @@ "babel-loader": "9.1.3", "chromatic": "11.0.0", "element-internals-polyfill": "1.3.10", - "esbuild": "0.20.0", + "esbuild": "0.21.5", "eslint": "8.56.0", "eslint-config-prettier": "9.1.0", "eslint-import-resolver-typescript": "3.6.1", @@ -2185,9 +2185,9 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.0.tgz", - "integrity": "sha512-fGFDEctNh0CcSwsiRPxiaqX0P5rq+AqE0SRhYGZ4PX46Lg1FNR6oCxJghf8YgY0WQEgQuh3lErUFE4KxLeRmmw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", "cpu": [ "ppc64" ], @@ -2201,9 +2201,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.0.tgz", - "integrity": "sha512-3bMAfInvByLHfJwYPJRlpTeaQA75n8C/QKpEaiS4HrFWFiJlNI0vzq/zCjBrhAYcPyVPG7Eo9dMrcQXuqmNk5g==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", "cpu": [ "arm" ], @@ -2217,9 +2217,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.0.tgz", - "integrity": "sha512-aVpnM4lURNkp0D3qPoAzSG92VXStYmoVPOgXveAUoQBWRSuQzt51yvSju29J6AHPmwY1BjH49uR29oyfH1ra8Q==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", "cpu": [ "arm64" ], @@ -2233,9 +2233,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.0.tgz", - "integrity": "sha512-uK7wAnlRvjkCPzh8jJ+QejFyrP8ObKuR5cBIsQZ+qbMunwR8sbd8krmMbxTLSrDhiPZaJYKQAU5Y3iMDcZPhyQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", "cpu": [ "x64" ], @@ -2249,9 +2249,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.0.tgz", - "integrity": "sha512-AjEcivGAlPs3UAcJedMa9qYg9eSfU6FnGHJjT8s346HSKkrcWlYezGE8VaO2xKfvvlZkgAhyvl06OJOxiMgOYQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", "cpu": [ "arm64" ], @@ -2265,9 +2265,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.0.tgz", - "integrity": "sha512-bsgTPoyYDnPv8ER0HqnJggXK6RyFy4PH4rtsId0V7Efa90u2+EifxytE9pZnsDgExgkARy24WUQGv9irVbTvIw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", "cpu": [ "x64" ], @@ -2281,9 +2281,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.0.tgz", - "integrity": "sha512-kQ7jYdlKS335mpGbMW5tEe3IrQFIok9r84EM3PXB8qBFJPSc6dpWfrtsC/y1pyrz82xfUIn5ZrnSHQQsd6jebQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", "cpu": [ "arm64" ], @@ -2297,9 +2297,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.0.tgz", - "integrity": "sha512-uG8B0WSepMRsBNVXAQcHf9+Ko/Tr+XqmK7Ptel9HVmnykupXdS4J7ovSQUIi0tQGIndhbqWLaIL/qO/cWhXKyQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", "cpu": [ "x64" ], @@ -2313,9 +2313,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.0.tgz", - "integrity": "sha512-2ezuhdiZw8vuHf1HKSf4TIk80naTbP9At7sOqZmdVwvvMyuoDiZB49YZKLsLOfKIr77+I40dWpHVeY5JHpIEIg==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", "cpu": [ "arm" ], @@ -2329,9 +2329,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.0.tgz", - "integrity": "sha512-uTtyYAP5veqi2z9b6Gr0NUoNv9F/rOzI8tOD5jKcCvRUn7T60Bb+42NDBCWNhMjkQzI0qqwXkQGo1SY41G52nw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", "cpu": [ "arm64" ], @@ -2345,9 +2345,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.0.tgz", - "integrity": "sha512-c88wwtfs8tTffPaoJ+SQn3y+lKtgTzyjkD8NgsyCtCmtoIC8RDL7PrJU05an/e9VuAke6eJqGkoMhJK1RY6z4w==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", "cpu": [ "ia32" ], @@ -2361,9 +2361,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.0.tgz", - "integrity": "sha512-lR2rr/128/6svngnVta6JN4gxSXle/yZEZL3o4XZ6esOqhyR4wsKyfu6qXAL04S4S5CgGfG+GYZnjFd4YiG3Aw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", "cpu": [ "loong64" ], @@ -2377,9 +2377,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.0.tgz", - "integrity": "sha512-9Sycc+1uUsDnJCelDf6ZNqgZQoK1mJvFtqf2MUz4ujTxGhvCWw+4chYfDLPepMEvVL9PDwn6HrXad5yOrNzIsQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", "cpu": [ "mips64el" ], @@ -2393,9 +2393,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.0.tgz", - "integrity": "sha512-CoWSaaAXOZd+CjbUTdXIJE/t7Oz+4g90A3VBCHLbfuc5yUQU/nFDLOzQsN0cdxgXd97lYW/psIIBdjzQIwTBGw==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", "cpu": [ "ppc64" ], @@ -2409,9 +2409,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.0.tgz", - "integrity": "sha512-mlb1hg/eYRJUpv8h/x+4ShgoNLL8wgZ64SUr26KwglTYnwAWjkhR2GpoKftDbPOCnodA9t4Y/b68H4J9XmmPzA==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", "cpu": [ "riscv64" ], @@ -2425,9 +2425,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.0.tgz", - "integrity": "sha512-fgf9ubb53xSnOBqyvWEY6ukBNRl1mVX1srPNu06B6mNsNK20JfH6xV6jECzrQ69/VMiTLvHMicQR/PgTOgqJUQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", "cpu": [ "s390x" ], @@ -2441,9 +2441,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.0.tgz", - "integrity": "sha512-H9Eu6MGse++204XZcYsse1yFHmRXEWgadk2N58O/xd50P9EvFMLJTQLg+lB4E1cF2xhLZU5luSWtGTb0l9UeSg==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", "cpu": [ "x64" ], @@ -2457,9 +2457,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.0.tgz", - "integrity": "sha512-lCT675rTN1v8Fo+RGrE5KjSnfY0x9Og4RN7t7lVrN3vMSjy34/+3na0q7RIfWDAj0e0rCh0OL+P88lu3Rt21MQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", "cpu": [ "x64" ], @@ -2473,9 +2473,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.0.tgz", - "integrity": "sha512-HKoUGXz/TOVXKQ+67NhxyHv+aDSZf44QpWLa3I1lLvAwGq8x1k0T+e2HHSRvxWhfJrFxaaqre1+YyzQ99KixoA==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", "cpu": [ "x64" ], @@ -2489,9 +2489,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.0.tgz", - "integrity": "sha512-GDwAqgHQm1mVoPppGsoq4WJwT3vhnz/2N62CzhvApFD1eJyTroob30FPpOZabN+FgCjhG+AgcZyOPIkR8dfD7g==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", "cpu": [ "x64" ], @@ -2505,9 +2505,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.0.tgz", - "integrity": "sha512-0vYsP8aC4TvMlOQYozoksiaxjlvUcQrac+muDqj1Fxy6jh9l9CZJzj7zmh8JGfiV49cYLTorFLxg7593pGldwQ==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", "cpu": [ "arm64" ], @@ -2521,9 +2521,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.0.tgz", - "integrity": "sha512-p98u4rIgfh4gdpV00IqknBD5pC84LCub+4a3MO+zjqvU5MVXOc3hqR2UgT2jI2nh3h8s9EQxmOsVI3tyzv1iFg==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", "cpu": [ "ia32" ], @@ -2537,9 +2537,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.0.tgz", - "integrity": "sha512-NgJnesu1RtWihtTtXGFMU5YSE6JyyHPMxCwBZK7a6/8d31GuSo9l0Ss7w1Jw5QnKUawG6UEehs883kcXf5fYwg==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", "cpu": [ "x64" ], @@ -16792,9 +16792,9 @@ } }, "node_modules/esbuild": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.0.tgz", - "integrity": "sha512-6iwE3Y2RVYCME1jLpBqq7LQWK3MW6vjV2bZy6gt/WrqkY+WE74Spyc0ThAOYpMtITvnjX09CrC6ym7A/m9mebA==", + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", "dev": true, "hasInstallScript": true, "bin": { @@ -16804,29 +16804,29 @@ "node": ">=12" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.20.0", - "@esbuild/android-arm": "0.20.0", - "@esbuild/android-arm64": "0.20.0", - "@esbuild/android-x64": "0.20.0", - "@esbuild/darwin-arm64": "0.20.0", - "@esbuild/darwin-x64": "0.20.0", - "@esbuild/freebsd-arm64": "0.20.0", - "@esbuild/freebsd-x64": "0.20.0", - "@esbuild/linux-arm": "0.20.0", - "@esbuild/linux-arm64": "0.20.0", - "@esbuild/linux-ia32": "0.20.0", - "@esbuild/linux-loong64": "0.20.0", - "@esbuild/linux-mips64el": "0.20.0", - "@esbuild/linux-ppc64": "0.20.0", - "@esbuild/linux-riscv64": "0.20.0", - "@esbuild/linux-s390x": "0.20.0", - "@esbuild/linux-x64": "0.20.0", - "@esbuild/netbsd-x64": "0.20.0", - "@esbuild/openbsd-x64": "0.20.0", - "@esbuild/sunos-x64": "0.20.0", - "@esbuild/win32-arm64": "0.20.0", - "@esbuild/win32-ia32": "0.20.0", - "@esbuild/win32-x64": "0.20.0" + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" } }, "node_modules/esbuild-plugin-alias": { diff --git a/package.json b/package.json index a6d011f6e..0a5427959 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "babel-loader": "9.1.3", "chromatic": "11.0.0", "element-internals-polyfill": "1.3.10", - "esbuild": "0.20.0", + "esbuild": "0.21.5", "eslint": "8.56.0", "eslint-config-prettier": "9.1.0", "eslint-import-resolver-typescript": "3.6.1", From 172c2cf75b8a2f465aeb27924c2de6f36a913d1e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 11:48:53 +0200 Subject: [PATCH 16/61] build(deps-dev): bump ejs from 3.1.9 to 3.1.10 (#793) Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10. - [Release notes](https://github.com/mde/ejs/releases) - [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10) --- updated-dependencies: - dependency-name: ejs dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 295e5745c..29c40b165 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16537,9 +16537,9 @@ "license": "MIT" }, "node_modules/ejs": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", - "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", "dev": true, "dependencies": { "jake": "^10.8.5" From 13d4b80648c6e643c4e60e40e57456ba31f79632 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 09:55:34 +0000 Subject: [PATCH 17/61] build(deps-dev): bump braces from 3.0.2 to 3.0.3 (#812) Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 29c40b165..b29b5b98d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13666,11 +13666,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, - "license": "MIT", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -18025,9 +18026,10 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, - "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -20290,8 +20292,9 @@ }, "node_modules/is-number": { "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -30482,8 +30485,9 @@ }, "node_modules/to-regex-range": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, From 3e3f22a9ae1e6110c71161bc226f4487a6176196 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:56:36 +0200 Subject: [PATCH 18/61] fix: prevent overflow when not hovered (#816) Co-authored-by: JesmoDev <26099018+JesmoDev@users.noreply.github.com> --- packages/uui-menu-item/lib/uui-menu-item.element.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/uui-menu-item/lib/uui-menu-item.element.ts b/packages/uui-menu-item/lib/uui-menu-item.element.ts index 29328580f..c691349d5 100644 --- a/packages/uui-menu-item/lib/uui-menu-item.element.ts +++ b/packages/uui-menu-item/lib/uui-menu-item.element.ts @@ -508,6 +508,7 @@ export class UUIMenuItemElement extends SelectOnlyMixin( opacity: 0; width: 0; grid-column-start: 3; + overflow: hidden; } :host(:not([disabled])) #menu-item:hover #actions-container, :host(:not([disabled])) #menu-item:focus #actions-container, From ce437fa0a7f056599a314eabc46ac3d7488d38e5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 06:32:45 +0000 Subject: [PATCH 19/61] build(deps-dev): bump ws from 6.2.2 to 6.2.3 Bumps [ws](https://github.com/websockets/ws) from 6.2.2 to 6.2.3. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/compare/6.2.2...6.2.3) --- updated-dependencies: - dependency-name: ws dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index b29b5b98d..dc61d081d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8659,9 +8659,9 @@ } }, "node_modules/@storybook/cli/node_modules/ws": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz", - "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==", + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.3.tgz", + "integrity": "sha512-jmTjYU0j60B+vHey6TfR3Z7RD61z/hmxBS3VMSGIrroOWXQEneK1zNuotOUrGyBHQj0yrpsLHPWtigEFd13ndA==", "dev": true, "dependencies": { "async-limiter": "~1.0.0" @@ -11489,9 +11489,10 @@ } }, "node_modules/@web/dev-server-core/node_modules/ws": { - "version": "7.5.9", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.3.0" }, @@ -11980,9 +11981,9 @@ } }, "node_modules/@web/dev-server-esbuild/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "dev": true, "engines": { "node": ">=8.3.0" @@ -12423,9 +12424,9 @@ } }, "node_modules/@web/test-runner-playwright/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "dev": true, "engines": { "node": ">=8.3.0" @@ -32503,9 +32504,9 @@ "dev": true }, "node_modules/ws": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", "dev": true, "engines": { "node": ">=10.0.0" From bef030f70bc2b68ccf2c2074aa34c8fa18fea6e8 Mon Sep 17 00:00:00 2001 From: Jason Elkin Date: Tue, 18 Jun 2024 10:21:36 +0100 Subject: [PATCH 20/61] feat(uui-slider): Hide label property + fix error for floating point numbers (#813) * Add ability to hide the value label * Match decimal places displayed to decimal places in step * Fix lag * Fix thumb inner positioning on high DPI displays --- packages/uui-slider/lib/uui-slider.element.ts | 38 +++++++++++++++---- packages/uui-slider/lib/uui-slider.story.ts | 4 +- 2 files changed, 33 insertions(+), 9 deletions(-) diff --git a/packages/uui-slider/lib/uui-slider.element.ts b/packages/uui-slider/lib/uui-slider.element.ts index d2aa63f20..830be1b86 100644 --- a/packages/uui-slider/lib/uui-slider.element.ts +++ b/packages/uui-slider/lib/uui-slider.element.ts @@ -61,6 +61,8 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { */ static readonly formAssociated = true; + #stepDecimalPlaces = 0; + /** * Hides the numbers representing the value of each steps. Dots will still be visible * @type {boolean} @@ -70,6 +72,15 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { @property({ type: Boolean, attribute: 'hide-step-values' }) hideStepValues = false; + /** + * Hides the value label on the thumb. + * @type {boolean} + * @attr 'hide-value-label' + * @default false + */ + @property({ type: Boolean, attribute: 'hide-value-label' }) + hideValueLabel = false; + /** * This is a minimum value of the input. * @type {number} @@ -95,7 +106,16 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { * @default 1 */ @property({ type: Number }) - step = 1; + public get step() { + return this.#step; + } + + public set step(value) { + this.#step = value; + this.#stepDecimalPlaces = (value.toString().split('.')[1] || []).length; + } + + #step = 1; /** * This is a value property of the uui-slider. @@ -117,11 +137,13 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { let correctedValue = newVal ? parseFloat(newVal as string) : 0; correctedValue = Math.min(Math.max(correctedValue, this.min), this.max); + if (this.step > 0) { correctedValue = Math.round(correctedValue / this.step) * this.step; } - super.value = correctedValue.toString(); + super.value = correctedValue.toFixed(this.#stepDecimalPlaces).toString(); + this._calculateSliderPosition(); this.requestUpdate('value', oldVal); } @@ -285,7 +307,9 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { @@ -350,6 +374,9 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { #thumb { position: absolute; + display: flex; + align-items: center; + justify-content: center; top: 2px; bottom: 0; left: 0; @@ -362,8 +389,6 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { background-color: var(--uui-color-surface); border: 2px solid var(--uui-color-selected); - - transition: 120ms left ease; } :host([disabled]) #thumb { background-color: var(--uui-color-disabled); @@ -372,9 +397,6 @@ export class UUISliderElement extends UUIFormControlMixin(LitElement, '') { #thumb:after { content: ''; - position: absolute; - top: 2px; - left: 2px; height: 9px; width: 9px; border-radius: 50%; diff --git a/packages/uui-slider/lib/uui-slider.story.ts b/packages/uui-slider/lib/uui-slider.story.ts index 7ab57aa17..0e296b7a9 100644 --- a/packages/uui-slider/lib/uui-slider.story.ts +++ b/packages/uui-slider/lib/uui-slider.story.ts @@ -14,6 +14,7 @@ export default { step: 1, label: 'Slider label', hideStepValues: false, + hideValueLabel: false, value: 0, disabled: false, }, @@ -38,7 +39,8 @@ const Template: Story = props => html` max=${props.max} ?disabled=${props.disabled} .value=${props.value} - .hideStepValues=${props.hideStepValues}> + .hideStepValues=${props.hideStepValues} + .hideValueLabel=${props.hideValueLabel}> `; export const AAAOverview = Template.bind({}); From ff7f8bf2e837773d2a73d4ca5eb9b67857b3dd8b Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Tue, 18 Jun 2024 11:29:04 +0200 Subject: [PATCH 21/61] v1.8.2 --- CHANGELOG.md | 11 ++++++++ lerna.json | 2 +- package-lock.json | 34 ++++++++++++------------- packages/uui-boolean-input/CHANGELOG.md | 6 +++++ packages/uui-boolean-input/package.json | 2 +- packages/uui-card-media/CHANGELOG.md | 4 +++ packages/uui-card-media/package.json | 2 +- packages/uui-checkbox/CHANGELOG.md | 4 +++ packages/uui-checkbox/package.json | 4 +-- packages/uui-input-lock/CHANGELOG.md | 4 +++ packages/uui-input-lock/package.json | 2 +- packages/uui-menu-item/CHANGELOG.md | 6 +++++ packages/uui-menu-item/package.json | 2 +- packages/uui-slider/CHANGELOG.md | 6 +++++ packages/uui-slider/package.json | 2 +- packages/uui-toggle/CHANGELOG.md | 4 +++ packages/uui-toggle/package.json | 4 +-- packages/uui/CHANGELOG.md | 4 +++ packages/uui/package.json | 16 ++++++------ 19 files changed, 84 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c48c7366..365668dcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.2](https://github.com/umbraco/Umbraco.UI/compare/v1.8.1...v1.8.2) (2024-06-18) + +### Bug Fixes + +- Hide the native input for boolean elements in firefox ([#808](https://github.com/umbraco/Umbraco.UI/issues/808)) ([81c0a95](https://github.com/umbraco/Umbraco.UI/commit/81c0a95a24b6df903f5382cb3b735cfa4a27f381)) +- prevent overflow when not hovered ([#816](https://github.com/umbraco/Umbraco.UI/issues/816)) ([b3fcd2b](https://github.com/umbraco/Umbraco.UI/commit/b3fcd2b535ce3d7049739d13a6b56a9cc2036e8a)) + +### Features + +- **uui-slider:** Hide label property + fix error for floating point numbers ([#813](https://github.com/umbraco/Umbraco.UI/issues/813)) ([12bcd06](https://github.com/umbraco/Umbraco.UI/commit/12bcd06f978f0937b9d697c4c16f449779038b56)) + ## [1.8.1](https://github.com/umbraco/Umbraco.UI/compare/v1.8.0...v1.8.1) (2024-05-24) **Note:** Version bump only for package uui-monorepo diff --git a/lerna.json b/lerna.json index c53470c45..792ce6c7e 100644 --- a/lerna.json +++ b/lerna.json @@ -1,7 +1,7 @@ { "$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json", "packages": ["packages/*"], - "version": "1.8.1", + "version": "1.8.2", "preid": "rc", "exact": true, "noPush": true, diff --git a/package-lock.json b/package-lock.json index dc61d081d..27d85cb4b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32638,7 +32638,7 @@ }, "packages/uui": { "name": "@umbraco-ui/uui", - "version": "1.8.1", + "version": "1.8.2", "license": "MIT", "dependencies": { "@umbraco-ui/uui-action-bar": "1.8.0", @@ -32646,7 +32646,7 @@ "@umbraco-ui/uui-avatar-group": "1.8.0", "@umbraco-ui/uui-badge": "1.8.0", "@umbraco-ui/uui-base": "1.8.0", - "@umbraco-ui/uui-boolean-input": "1.8.0", + "@umbraco-ui/uui-boolean-input": "1.8.2", "@umbraco-ui/uui-box": "1.8.0", "@umbraco-ui/uui-breadcrumbs": "1.8.0", "@umbraco-ui/uui-button": "1.8.0", @@ -32655,10 +32655,10 @@ "@umbraco-ui/uui-card": "1.8.0", "@umbraco-ui/uui-card-block-type": "1.8.0", "@umbraco-ui/uui-card-content-node": "1.8.0", - "@umbraco-ui/uui-card-media": "1.8.0", + "@umbraco-ui/uui-card-media": "1.8.2", "@umbraco-ui/uui-card-user": "1.8.0", "@umbraco-ui/uui-caret": "1.8.0", - "@umbraco-ui/uui-checkbox": "1.8.0", + "@umbraco-ui/uui-checkbox": "1.8.2", "@umbraco-ui/uui-color-area": "1.8.0", "@umbraco-ui/uui-color-picker": "1.8.0", "@umbraco-ui/uui-color-slider": "1.8.0", @@ -32679,14 +32679,14 @@ "@umbraco-ui/uui-icon-registry-essential": "1.8.0", "@umbraco-ui/uui-input": "1.8.0", "@umbraco-ui/uui-input-file": "1.8.0", - "@umbraco-ui/uui-input-lock": "1.8.0", + "@umbraco-ui/uui-input-lock": "1.8.2", "@umbraco-ui/uui-input-password": "1.8.0", "@umbraco-ui/uui-keyboard-shortcut": "1.8.0", "@umbraco-ui/uui-label": "1.8.0", "@umbraco-ui/uui-loader": "1.8.0", "@umbraco-ui/uui-loader-bar": "1.8.0", "@umbraco-ui/uui-loader-circle": "1.8.0", - "@umbraco-ui/uui-menu-item": "1.8.0", + "@umbraco-ui/uui-menu-item": "1.8.2", "@umbraco-ui/uui-modal": "1.8.0", "@umbraco-ui/uui-pagination": "1.8.0", "@umbraco-ui/uui-popover": "1.8.0", @@ -32705,7 +32705,7 @@ "@umbraco-ui/uui-ref-node-user": "1.8.0", "@umbraco-ui/uui-scroll-container": "1.8.0", "@umbraco-ui/uui-select": "1.8.0", - "@umbraco-ui/uui-slider": "1.8.0", + "@umbraco-ui/uui-slider": "1.8.2", "@umbraco-ui/uui-symbol-expand": "1.8.0", "@umbraco-ui/uui-symbol-file": "1.8.0", "@umbraco-ui/uui-symbol-file-dropzone": "1.8.0", @@ -32721,7 +32721,7 @@ "@umbraco-ui/uui-toast-notification": "1.8.0", "@umbraco-ui/uui-toast-notification-container": "1.8.0", "@umbraco-ui/uui-toast-notification-layout": "1.8.0", - "@umbraco-ui/uui-toggle": "1.8.0", + "@umbraco-ui/uui-toggle": "1.8.2", "@umbraco-ui/uui-visually-hidden": "1.8.0" } }, @@ -32769,7 +32769,7 @@ }, "packages/uui-boolean-input": { "name": "@umbraco-ui/uui-boolean-input", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "dependencies": { "@umbraco-ui/uui-base": "1.8.0" @@ -32846,7 +32846,7 @@ }, "packages/uui-card-media": { "name": "@umbraco-ui/uui-card-media", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "dependencies": { "@umbraco-ui/uui-base": "1.8.0", @@ -32875,11 +32875,11 @@ }, "packages/uui-checkbox": { "name": "@umbraco-ui/uui-checkbox", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "dependencies": { "@umbraco-ui/uui-base": "1.8.0", - "@umbraco-ui/uui-boolean-input": "1.8.0", + "@umbraco-ui/uui-boolean-input": "1.8.2", "@umbraco-ui/uui-icon-registry-essential": "1.8.0" } }, @@ -33070,7 +33070,7 @@ }, "packages/uui-input-lock": { "name": "@umbraco-ui/uui-input-lock", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "dependencies": { "@umbraco-ui/uui-base": "1.8.0", @@ -33131,7 +33131,7 @@ }, "packages/uui-menu-item": { "name": "@umbraco-ui/uui-menu-item", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "dependencies": { "@umbraco-ui/uui-base": "1.8.0", @@ -33295,7 +33295,7 @@ }, "packages/uui-slider": { "name": "@umbraco-ui/uui-slider", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "dependencies": { "@umbraco-ui/uui-base": "1.8.0" @@ -33432,11 +33432,11 @@ }, "packages/uui-toggle": { "name": "@umbraco-ui/uui-toggle", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "dependencies": { "@umbraco-ui/uui-base": "1.8.0", - "@umbraco-ui/uui-boolean-input": "1.8.0" + "@umbraco-ui/uui-boolean-input": "1.8.2" } }, "packages/uui-visually-hidden": { diff --git a/packages/uui-boolean-input/CHANGELOG.md b/packages/uui-boolean-input/CHANGELOG.md index 7afbed299..a139f8fdc 100644 --- a/packages/uui-boolean-input/CHANGELOG.md +++ b/packages/uui-boolean-input/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.2](https://github.com/umbraco/Umbraco.UI/compare/v1.8.1...v1.8.2) (2024-06-18) + +### Bug Fixes + +- Hide the native input for boolean elements in firefox ([#808](https://github.com/umbraco/Umbraco.UI/issues/808)) ([81c0a95](https://github.com/umbraco/Umbraco.UI/commit/81c0a95a24b6df903f5382cb3b735cfa4a27f381)) + # [1.8.0](https://github.com/umbraco/Umbraco.UI/compare/v1.8.0-rc.3...v1.8.0) (2024-05-23) **Note:** Version bump only for package @umbraco-ui/uui-boolean-input diff --git a/packages/uui-boolean-input/package.json b/packages/uui-boolean-input/package.json index 6060d7d9d..edff00017 100644 --- a/packages/uui-boolean-input/package.json +++ b/packages/uui-boolean-input/package.json @@ -1,6 +1,6 @@ { "name": "@umbraco-ui/uui-boolean-input", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "keywords": [ "Umbraco", diff --git a/packages/uui-card-media/CHANGELOG.md b/packages/uui-card-media/CHANGELOG.md index a37ee5367..f621d41a2 100644 --- a/packages/uui-card-media/CHANGELOG.md +++ b/packages/uui-card-media/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.2](https://github.com/umbraco/Umbraco.UI/compare/v1.8.1...v1.8.2) (2024-06-18) + +**Note:** Version bump only for package @umbraco-ui/uui-card-media + # [1.8.0](https://github.com/umbraco/Umbraco.UI/compare/v1.8.0-rc.3...v1.8.0) (2024-05-23) **Note:** Version bump only for package @umbraco-ui/uui-card-media diff --git a/packages/uui-card-media/package.json b/packages/uui-card-media/package.json index 3a03a54b9..69e7de578 100644 --- a/packages/uui-card-media/package.json +++ b/packages/uui-card-media/package.json @@ -1,6 +1,6 @@ { "name": "@umbraco-ui/uui-card-media", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "keywords": [ "Umbraco", diff --git a/packages/uui-checkbox/CHANGELOG.md b/packages/uui-checkbox/CHANGELOG.md index b7ec389d0..2fa993ed4 100644 --- a/packages/uui-checkbox/CHANGELOG.md +++ b/packages/uui-checkbox/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.2](https://github.com/umbraco/Umbraco.UI/compare/v1.8.1...v1.8.2) (2024-06-18) + +**Note:** Version bump only for package @umbraco-ui/uui-checkbox + # [1.8.0](https://github.com/umbraco/Umbraco.UI/compare/v1.8.0-rc.3...v1.8.0) (2024-05-23) **Note:** Version bump only for package @umbraco-ui/uui-checkbox diff --git a/packages/uui-checkbox/package.json b/packages/uui-checkbox/package.json index 48c2d2397..658fe0c10 100644 --- a/packages/uui-checkbox/package.json +++ b/packages/uui-checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@umbraco-ui/uui-checkbox", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "keywords": [ "Umbraco", @@ -34,7 +34,7 @@ ], "dependencies": { "@umbraco-ui/uui-base": "1.8.0", - "@umbraco-ui/uui-boolean-input": "1.8.0", + "@umbraco-ui/uui-boolean-input": "1.8.2", "@umbraco-ui/uui-icon-registry-essential": "1.8.0" }, "scripts": { diff --git a/packages/uui-input-lock/CHANGELOG.md b/packages/uui-input-lock/CHANGELOG.md index 14ecebb59..328d2f815 100644 --- a/packages/uui-input-lock/CHANGELOG.md +++ b/packages/uui-input-lock/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.2](https://github.com/umbraco/Umbraco.UI/compare/v1.8.1...v1.8.2) (2024-06-18) + +**Note:** Version bump only for package @umbraco-ui/uui-input-lock + # [1.8.0](https://github.com/umbraco/Umbraco.UI/compare/v1.8.0-rc.3...v1.8.0) (2024-05-23) **Note:** Version bump only for package @umbraco-ui/uui-input-lock diff --git a/packages/uui-input-lock/package.json b/packages/uui-input-lock/package.json index 067587811..26ebe792d 100644 --- a/packages/uui-input-lock/package.json +++ b/packages/uui-input-lock/package.json @@ -1,6 +1,6 @@ { "name": "@umbraco-ui/uui-input-lock", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "keywords": [ "Umbraco", diff --git a/packages/uui-menu-item/CHANGELOG.md b/packages/uui-menu-item/CHANGELOG.md index d758dec3a..1a666d66a 100644 --- a/packages/uui-menu-item/CHANGELOG.md +++ b/packages/uui-menu-item/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.2](https://github.com/umbraco/Umbraco.UI/compare/v1.8.1...v1.8.2) (2024-06-18) + +### Bug Fixes + +- prevent overflow when not hovered ([#816](https://github.com/umbraco/Umbraco.UI/issues/816)) ([b3fcd2b](https://github.com/umbraco/Umbraco.UI/commit/b3fcd2b535ce3d7049739d13a6b56a9cc2036e8a)) + # [1.8.0](https://github.com/umbraco/Umbraco.UI/compare/v1.8.0-rc.3...v1.8.0) (2024-05-23) ### Features diff --git a/packages/uui-menu-item/package.json b/packages/uui-menu-item/package.json index 3180e132d..413dd06ac 100644 --- a/packages/uui-menu-item/package.json +++ b/packages/uui-menu-item/package.json @@ -1,6 +1,6 @@ { "name": "@umbraco-ui/uui-menu-item", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "keywords": [ "Umbraco", diff --git a/packages/uui-slider/CHANGELOG.md b/packages/uui-slider/CHANGELOG.md index 2a438406b..1420700d2 100644 --- a/packages/uui-slider/CHANGELOG.md +++ b/packages/uui-slider/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.2](https://github.com/umbraco/Umbraco.UI/compare/v1.8.1...v1.8.2) (2024-06-18) + +### Features + +- **uui-slider:** Hide label property + fix error for floating point numbers ([#813](https://github.com/umbraco/Umbraco.UI/issues/813)) ([12bcd06](https://github.com/umbraco/Umbraco.UI/commit/12bcd06f978f0937b9d697c4c16f449779038b56)) + # [1.8.0](https://github.com/umbraco/Umbraco.UI/compare/v1.8.0-rc.3...v1.8.0) (2024-05-23) ### Features diff --git a/packages/uui-slider/package.json b/packages/uui-slider/package.json index 208ee9dc8..b97e713e9 100644 --- a/packages/uui-slider/package.json +++ b/packages/uui-slider/package.json @@ -1,6 +1,6 @@ { "name": "@umbraco-ui/uui-slider", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "keywords": [ "Umbraco", diff --git a/packages/uui-toggle/CHANGELOG.md b/packages/uui-toggle/CHANGELOG.md index 263f45b32..780b9cd80 100644 --- a/packages/uui-toggle/CHANGELOG.md +++ b/packages/uui-toggle/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.2](https://github.com/umbraco/Umbraco.UI/compare/v1.8.1...v1.8.2) (2024-06-18) + +**Note:** Version bump only for package @umbraco-ui/uui-toggle + # [1.8.0](https://github.com/umbraco/Umbraco.UI/compare/v1.8.0-rc.3...v1.8.0) (2024-05-23) **Note:** Version bump only for package @umbraco-ui/uui-toggle diff --git a/packages/uui-toggle/package.json b/packages/uui-toggle/package.json index b56cd6055..b1cc23699 100644 --- a/packages/uui-toggle/package.json +++ b/packages/uui-toggle/package.json @@ -1,6 +1,6 @@ { "name": "@umbraco-ui/uui-toggle", - "version": "1.8.0", + "version": "1.8.2", "license": "MIT", "keywords": [ "Umbraco", @@ -31,7 +31,7 @@ ], "dependencies": { "@umbraco-ui/uui-base": "1.8.0", - "@umbraco-ui/uui-boolean-input": "1.8.0" + "@umbraco-ui/uui-boolean-input": "1.8.2" }, "scripts": { "build": "npm run analyze && tsc --build && rollup -c rollup.config.js", diff --git a/packages/uui/CHANGELOG.md b/packages/uui/CHANGELOG.md index 53781c9c9..0c0693e53 100644 --- a/packages/uui/CHANGELOG.md +++ b/packages/uui/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.2](https://github.com/umbraco/Umbraco.UI/compare/v1.8.1...v1.8.2) (2024-06-18) + +**Note:** Version bump only for package @umbraco-ui/uui + ## [1.8.1](https://github.com/umbraco/Umbraco.UI/compare/v1.8.0...v1.8.1) (2024-05-24) **Note:** Version bump only for package @umbraco-ui/uui diff --git a/packages/uui/package.json b/packages/uui/package.json index d4632ce5b..f106972fc 100644 --- a/packages/uui/package.json +++ b/packages/uui/package.json @@ -1,6 +1,6 @@ { "name": "@umbraco-ui/uui", - "version": "1.8.1", + "version": "1.8.2", "license": "MIT", "description": "The full Umbraco UI Library. The package includes and registers all UUI Web Components.", "keywords": [ @@ -42,7 +42,7 @@ "@umbraco-ui/uui-avatar-group": "1.8.0", "@umbraco-ui/uui-badge": "1.8.0", "@umbraco-ui/uui-base": "1.8.0", - "@umbraco-ui/uui-boolean-input": "1.8.0", + "@umbraco-ui/uui-boolean-input": "1.8.2", "@umbraco-ui/uui-box": "1.8.0", "@umbraco-ui/uui-breadcrumbs": "1.8.0", "@umbraco-ui/uui-button": "1.8.0", @@ -51,10 +51,10 @@ "@umbraco-ui/uui-card": "1.8.0", "@umbraco-ui/uui-card-block-type": "1.8.0", "@umbraco-ui/uui-card-content-node": "1.8.0", - "@umbraco-ui/uui-card-media": "1.8.0", + "@umbraco-ui/uui-card-media": "1.8.2", "@umbraco-ui/uui-card-user": "1.8.0", "@umbraco-ui/uui-caret": "1.8.0", - "@umbraco-ui/uui-checkbox": "1.8.0", + "@umbraco-ui/uui-checkbox": "1.8.2", "@umbraco-ui/uui-color-area": "1.8.0", "@umbraco-ui/uui-color-picker": "1.8.0", "@umbraco-ui/uui-color-slider": "1.8.0", @@ -75,14 +75,14 @@ "@umbraco-ui/uui-icon-registry-essential": "1.8.0", "@umbraco-ui/uui-input": "1.8.0", "@umbraco-ui/uui-input-file": "1.8.0", - "@umbraco-ui/uui-input-lock": "1.8.0", + "@umbraco-ui/uui-input-lock": "1.8.2", "@umbraco-ui/uui-input-password": "1.8.0", "@umbraco-ui/uui-keyboard-shortcut": "1.8.0", "@umbraco-ui/uui-label": "1.8.0", "@umbraco-ui/uui-loader": "1.8.0", "@umbraco-ui/uui-loader-bar": "1.8.0", "@umbraco-ui/uui-loader-circle": "1.8.0", - "@umbraco-ui/uui-menu-item": "1.8.0", + "@umbraco-ui/uui-menu-item": "1.8.2", "@umbraco-ui/uui-modal": "1.8.0", "@umbraco-ui/uui-pagination": "1.8.0", "@umbraco-ui/uui-popover": "1.8.0", @@ -101,7 +101,7 @@ "@umbraco-ui/uui-ref-node-user": "1.8.0", "@umbraco-ui/uui-scroll-container": "1.8.0", "@umbraco-ui/uui-select": "1.8.0", - "@umbraco-ui/uui-slider": "1.8.0", + "@umbraco-ui/uui-slider": "1.8.2", "@umbraco-ui/uui-symbol-expand": "1.8.0", "@umbraco-ui/uui-symbol-file": "1.8.0", "@umbraco-ui/uui-symbol-file-dropzone": "1.8.0", @@ -117,7 +117,7 @@ "@umbraco-ui/uui-toast-notification": "1.8.0", "@umbraco-ui/uui-toast-notification-container": "1.8.0", "@umbraco-ui/uui-toast-notification-layout": "1.8.0", - "@umbraco-ui/uui-toggle": "1.8.0", + "@umbraco-ui/uui-toggle": "1.8.2", "@umbraco-ui/uui-visually-hidden": "1.8.0" }, "scripts": { From 84b1631d9d8f850918f0b0cb9eccb1ee307309a4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 01:26:55 +0000 Subject: [PATCH 22/61] build(deps-dev): bump chromatic from 11.0.0 to 11.5.4 Bumps [chromatic](https://github.com/chromaui/chromatic-cli) from 11.0.0 to 11.5.4. - [Release notes](https://github.com/chromaui/chromatic-cli/releases) - [Changelog](https://github.com/chromaui/chromatic-cli/blob/main/CHANGELOG.md) - [Commits](https://github.com/chromaui/chromatic-cli/compare/v11.0.0...v11.5.4) --- updated-dependencies: - dependency-name: chromatic dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 27d85cb4b..98de4bc88 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,7 +39,7 @@ "@web/test-runner-playwright": "0.11.0", "autoprefixer": "10.4.17", "babel-loader": "9.1.3", - "chromatic": "11.0.0", + "chromatic": "11.5.4", "element-internals-polyfill": "1.3.10", "esbuild": "0.21.5", "eslint": "8.56.0", @@ -14238,9 +14238,9 @@ } }, "node_modules/chromatic": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/chromatic/-/chromatic-11.0.0.tgz", - "integrity": "sha512-utzRVqdMrpzYwZNf7dHWU0z0/rx6SH/FUVNozQxYHDtQfYUdEj+Ro4OSch5+Wsk2FoUmznJyLkaC2J839z1N7A==", + "version": "11.5.4", + "resolved": "https://registry.npmjs.org/chromatic/-/chromatic-11.5.4.tgz", + "integrity": "sha512-+J+CopeUSyGUIQJsU6X7CfvSmeVBs0j6LZ9AgF4+XTjI4pFmUiUXsTc00rH9x9W1jCppOaqDXv2kqJJXGDK3mA==", "dev": true, "bin": { "chroma": "dist/bin.js", @@ -14248,8 +14248,8 @@ "chromatic-cli": "dist/bin.js" }, "peerDependencies": { - "@chromatic-com/cypress": "^0.5.2 || ^1.0.0", - "@chromatic-com/playwright": "^0.5.2 || ^1.0.0" + "@chromatic-com/cypress": "^0.*.* || ^1.0.0", + "@chromatic-com/playwright": "^0.*.* || ^1.0.0" }, "peerDependenciesMeta": { "@chromatic-com/cypress": { diff --git a/package.json b/package.json index 0a5427959..060cc01db 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "@web/test-runner-playwright": "0.11.0", "autoprefixer": "10.4.17", "babel-loader": "9.1.3", - "chromatic": "11.0.0", + "chromatic": "11.5.4", "element-internals-polyfill": "1.3.10", "esbuild": "0.21.5", "eslint": "8.56.0", From e67251fe05b640e1bc28633326d1eecf45d5add7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 01:28:26 +0000 Subject: [PATCH 23/61] build(deps-dev): bump github-markdown-css from 5.5.1 to 5.6.1 Bumps [github-markdown-css](https://github.com/sindresorhus/github-markdown-css) from 5.5.1 to 5.6.1. - [Release notes](https://github.com/sindresorhus/github-markdown-css/releases) - [Commits](https://github.com/sindresorhus/github-markdown-css/compare/v5.5.1...v5.6.1) --- updated-dependencies: - dependency-name: github-markdown-css dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 98de4bc88..c4f618463 100644 --- a/package-lock.json +++ b/package-lock.json @@ -52,7 +52,7 @@ "eslint-plugin-local-rules": "2.0.1", "eslint-plugin-storybook": "0.6.15", "eslint-plugin-wc": "2.0.4", - "github-markdown-css": "5.5.1", + "github-markdown-css": "5.6.1", "glob": "8.1.0", "husky": "8.0.3", "lint-staged": "15.2.2", @@ -18860,9 +18860,9 @@ } }, "node_modules/github-markdown-css": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/github-markdown-css/-/github-markdown-css-5.5.1.tgz", - "integrity": "sha512-2osyhNgFt7DEHnGHbgIifWawAqlc68gjJiGwO1xNw/S48jivj8kVaocsVkyJqUi3fm7fdYIDi4C6yOtcqR/aEQ==", + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/github-markdown-css/-/github-markdown-css-5.6.1.tgz", + "integrity": "sha512-DItLFgHd+s7HQmk63YN4/TdvLeRqk1QP7pPKTTPrDTYoI5x7f/luJWSOZxesmuxBI2srHp8RDyoZd+9WF+WK8Q==", "dev": true, "engines": { "node": ">=10" diff --git a/package.json b/package.json index 060cc01db..34c9bf5dc 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "eslint-plugin-local-rules": "2.0.1", "eslint-plugin-storybook": "0.6.15", "eslint-plugin-wc": "2.0.4", - "github-markdown-css": "5.5.1", + "github-markdown-css": "5.6.1", "glob": "8.1.0", "husky": "8.0.3", "lint-staged": "15.2.2", From 82251e202190c7998b22193f064cddc9472975c4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 01:28:02 +0000 Subject: [PATCH 24/61] build(deps-dev): bump npm-check-updates from 16.10.16 to 16.14.20 Bumps [npm-check-updates](https://github.com/raineorshine/npm-check-updates) from 16.10.16 to 16.14.20. - [Release notes](https://github.com/raineorshine/npm-check-updates/releases) - [Changelog](https://github.com/raineorshine/npm-check-updates/blob/main/CHANGELOG.md) - [Commits](https://github.com/raineorshine/npm-check-updates/compare/v16.10.16...v16.14.20) --- updated-dependencies: - dependency-name: npm-check-updates dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 58 +++++++++++++++++++++++++++++++++++++++-------- package.json | 2 +- 2 files changed, 49 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index c4f618463..c95890206 100644 --- a/package-lock.json +++ b/package-lock.json @@ -56,7 +56,7 @@ "glob": "8.1.0", "husky": "8.0.3", "lint-staged": "15.2.2", - "npm-check-updates": "16.10.16", + "npm-check-updates": "16.14.20", "plop": "3.1.2", "postcss": "8.4.36", "postcss-advanced-variables": "3.0.1", @@ -10425,6 +10425,12 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/semver-utils": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@types/semver-utils/-/semver-utils-1.1.3.tgz", + "integrity": "sha512-T+YwkslhsM+CeuhYUxyAjWm7mJ5am/K10UX40RuA6k6Lc7eGtq8iY2xOzy7Vq0GOqhl/xZl5l2FwURZMTPTUww==", + "dev": true + }, "node_modules/@types/send": { "version": "0.17.1", "dev": true, @@ -18414,9 +18420,10 @@ } }, "node_modules/fp-and-or": { - "version": "0.1.3", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/fp-and-or/-/fp-and-or-0.1.4.tgz", + "integrity": "sha512-+yRYRhpnFPWXSly/6V4Lw9IfOV26uu30kynGJ03PW+MnjOEQe45RZ141QcS0aJehYBYA50GfCDnsRbFJdhssRw==", "dev": true, - "license": "ISC", "engines": { "node": ">=10" } @@ -24676,16 +24683,18 @@ } }, "node_modules/npm-check-updates": { - "version": "16.10.16", + "version": "16.14.20", + "resolved": "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-16.14.20.tgz", + "integrity": "sha512-sYbIhun4DrjO7NFOTdvs11nCar0etEhZTsEjL47eM0TuiGMhmYughRCxG2SpGRmGAQ7AkwN7bw2lWzoE7q6yOQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { + "@types/semver-utils": "^1.1.1", "chalk": "^5.3.0", "cli-table3": "^0.6.3", - "commander": "^10.0.0", + "commander": "^10.0.1", "fast-memoize": "^2.5.2", "find-up": "5.0.0", - "fp-and-or": "^0.1.3", + "fp-and-or": "^0.1.4", "get-stdin": "^8.0.0", "globby": "^11.0.4", "hosted-git-info": "^5.1.0", @@ -24694,6 +24703,7 @@ "json-parse-helpfulerror": "^1.0.3", "jsonlines": "^0.1.1", "lodash": "^4.17.21", + "make-fetch-happen": "^11.1.1", "minimatch": "^9.0.3", "p-map": "^4.0.0", "pacote": "15.2.0", @@ -24702,11 +24712,12 @@ "prompts-ncu": "^3.0.0", "rc-config-loader": "^4.1.3", "remote-git-tags": "^3.0.0", - "rimraf": "^5.0.1", - "semver": "^7.5.3", + "rimraf": "^5.0.5", + "semver": "^7.5.4", "semver-utils": "^1.1.4", "source-map-support": "^0.5.21", - "spawn-please": "^2.0.1", + "spawn-please": "^2.0.2", + "strip-ansi": "^7.1.0", "strip-json-comments": "^5.0.1", "untildify": "^4.0.0", "update-notifier": "^6.0.2" @@ -24719,6 +24730,18 @@ "node": ">=14.14" } }, + "node_modules/npm-check-updates/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, "node_modules/npm-check-updates/node_modules/argparse": { "version": "2.0.1", "dev": true, @@ -24847,6 +24870,21 @@ "node": ">=8" } }, + "node_modules/npm-check-updates/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, "node_modules/npm-check-updates/node_modules/strip-json-comments": { "version": "5.0.1", "dev": true, diff --git a/package.json b/package.json index 34c9bf5dc..d424266e1 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,7 @@ "glob": "8.1.0", "husky": "8.0.3", "lint-staged": "15.2.2", - "npm-check-updates": "16.10.16", + "npm-check-updates": "16.14.20", "plop": "3.1.2", "postcss": "8.4.36", "postcss-advanced-variables": "3.0.1", From 4320539dc3b327a1993042dedaef95d0b1bc4bd2 Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Thu, 4 Jul 2024 12:58:42 +0200 Subject: [PATCH 25/61] fix(uui-form-validation-message): default renderer does not support raw HTML (#835) --- .../lib/uui-form-validation-message.element.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/uui-form-validation-message/lib/uui-form-validation-message.element.ts b/packages/uui-form-validation-message/lib/uui-form-validation-message.element.ts index f1b6ac7f5..215cee81e 100644 --- a/packages/uui-form-validation-message/lib/uui-form-validation-message.element.ts +++ b/packages/uui-form-validation-message/lib/uui-form-validation-message.element.ts @@ -4,6 +4,7 @@ import { defineElement } from '@umbraco-ui/uui-base/lib/registration'; import { css, html, LitElement } from 'lit'; import { property } from 'lit/decorators.js'; import { repeat } from 'lit/directives/repeat.js'; +import { unsafeHTML } from 'lit/directives/unsafe-html.js'; /** * @element uui-form-validation-message @@ -92,7 +93,10 @@ export class UUIFormValidationMessageElement extends LitElement { return html`
- ${repeat(this._messages, item => html`
${item[1]}
`)} + ${repeat( + this._messages, + item => html`
${unsafeHTML(item[1])}
`, + )}
`; From 7ce49bfd0840fdda250ed66ffdb887b519643caf Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Mon, 8 Jul 2024 14:29:35 +0200 Subject: [PATCH 26/61] docs(uui-card-block-type): add descriptions for slots (#834) * docs: add documentation for slots on the uui-card-block-type element * docs: expand descriptions for slots --- .../uui-card-block-type/lib/uui-card-block-type.element.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/uui-card-block-type/lib/uui-card-block-type.element.ts b/packages/uui-card-block-type/lib/uui-card-block-type.element.ts index 872a70ecc..59aeeba1b 100644 --- a/packages/uui-card-block-type/lib/uui-card-block-type.element.ts +++ b/packages/uui-card-block-type/lib/uui-card-block-type.element.ts @@ -12,6 +12,9 @@ export type BlockTypeIcon = { /** * @element uui-card-block-type + * @slot - slot for the default content area + * @slot tag - slot for the tag with support for `` elements + * @slot actions - slot for the actions with support for the `` element */ @defineElement('uui-card-block-type') export class UUICardBlockTypeElement extends UUICardElement { From 23c6d2ccb9d28a1f0c66e142bcf1024384306c48 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 24 Jun 2024 10:50:59 +0200 Subject: [PATCH 27/61] feat: add readonly mode --- packages/uui-select/lib/uui-select.element.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/uui-select/lib/uui-select.element.ts b/packages/uui-select/lib/uui-select.element.ts index a8b8e40be..1cbf312a5 100644 --- a/packages/uui-select/lib/uui-select.element.ts +++ b/packages/uui-select/lib/uui-select.element.ts @@ -61,6 +61,15 @@ export class UUISelectElement extends UUIFormControlMixin(LitElement, '') { @property({ type: Boolean, reflect: true }) disabled = false; + /** + * Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content. + * @type {boolean} + * @attr + * @default false + */ + @property({ type: Boolean, reflect: true }) + readonly = false; + /** * Set to true if the component should have an error state.Property is reflected to the corresponding attribute. * @type {boolean} @@ -226,7 +235,16 @@ export class UUISelectElement extends UUIFormControlMixin(LitElement, '') { `; } + private _getDisplayValue() { + return ( + this.options.find(option => option.value === this.value)?.name || + this.value + ); + } + render() { + if (this.readonly) return html`${this._getDisplayValue()}`; + return html` `; @@ -744,7 +758,8 @@ export class UUIRangeSliderElement extends UUIFormControlMixin(LitElement, '') { z-index: ${Z_INDEX.CENTER}; } - :host([disabled]) #inner-color-thumb { + :host([disabled]) #inner-color-thumb, + :host([readonly]) #inner-color-thumb { cursor: default; } @@ -757,10 +772,12 @@ export class UUIRangeSliderElement extends UUIFormControlMixin(LitElement, '') { #inner-color-thumb:focus .color { background-color: var(--color-focus); } + #inner-color-thumb:hover .color, #inner-color-thumb .color.active { background-color: var(--color-hover); } + #inner-color-thumb:hover .color { height: 5px; background-color: var(--color-hover); @@ -892,6 +909,10 @@ export class UUIRangeSliderElement extends UUIFormControlMixin(LitElement, '') { color: var(--uui-palette-mine-grey); } + :host([readonly]) .thumb-values { + opacity: 1; + } + #range-slider:hover .thumb-values { opacity: 1; } @@ -914,7 +935,9 @@ export class UUIRangeSliderElement extends UUIFormControlMixin(LitElement, '') { inset 0 0 0 2px var(--color-interactive), inset 0 0 0 4px var(--uui-color-surface); } - :host([disabled]) input::-webkit-slider-thumb { + + :host([disabled]) input::-webkit-slider-thumb, + :host([readonly]) input::-webkit-slider-thumb { cursor: default; } @@ -958,7 +981,8 @@ export class UUIRangeSliderElement extends UUIFormControlMixin(LitElement, '') { inset 0 0 0 2px var(--color-interactive), inset 0 0 0 4px var(--uui-color-surface); } - :host([disabled]) input::-moz-range-thumb { + :host([disabled]) input::-moz-range-thumb, + :host([readonly]) input::-moz-range-thumb { cursor: default; } From 5b2d81b077e98fd9b00bfad49f6f25cb63fc58f4 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Tue, 25 Jun 2024 13:26:23 +0200 Subject: [PATCH 39/61] don't expand on hover --- packages/uui-range-slider/lib/uui-range-slider.element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uui-range-slider/lib/uui-range-slider.element.ts b/packages/uui-range-slider/lib/uui-range-slider.element.ts index 9774374c7..8511ff274 100644 --- a/packages/uui-range-slider/lib/uui-range-slider.element.ts +++ b/packages/uui-range-slider/lib/uui-range-slider.element.ts @@ -778,7 +778,7 @@ export class UUIRangeSliderElement extends UUIFormControlMixin(LitElement, '') { background-color: var(--color-hover); } - #inner-color-thumb:hover .color { + :host(:not([readonly])) #inner-color-thumb:hover .color { height: 5px; background-color: var(--color-hover); } From 33f171ee6d8e69509f49f42c022e3f987cc03301 Mon Sep 17 00:00:00 2001 From: JesmoDev <26099018+JesmoDev@users.noreply.github.com> Date: Mon, 8 Jul 2024 14:34:10 +0200 Subject: [PATCH 40/61] bug(uui-select): Use css vars for background and text color (#827) --- packages/uui-select/lib/uui-select.element.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/uui-select/lib/uui-select.element.ts b/packages/uui-select/lib/uui-select.element.ts index 1cbf312a5..6b269defe 100644 --- a/packages/uui-select/lib/uui-select.element.ts +++ b/packages/uui-select/lib/uui-select.element.ts @@ -23,6 +23,7 @@ declare global { * @fires change - when the user changes value * @cssprop --uui-select-height - Height of the element * @cssprop --uui-select-font-size - Font size of the element + * @cssprop --uui-select-text-color - Color of the text * @cssprop --uui-select-padding-y - Padding on the y axis * @cssprop --uui-select-padding-x - Padding on the x axis * @cssprop --uui-select-border-color - Border color @@ -30,6 +31,7 @@ declare global { * @cssprop --uui-select-selected-option-background-color - Background color of the selected option * @cssprop --uui-select-selected-option-color - Color of the selected option * @cssprop --uui-select-outline-color - Outline color + * @cssprop --uui-select-background-color - Background color * @cssprop --uui-select-disabled-background-color - Background color when disabled * @extends UUIFormControlMixin */ @@ -282,13 +284,17 @@ export class UUISelectElement extends UUIFormControlMixin(LitElement, '') { height: var(--uui-select-height, var(--uui-size-11)); padding: var(--uui-select-padding-y, var(--uui-size-1)) var(--uui-select-padding-x, var(--uui-size-2)); - color: currentColor; + color: var(--uui-select-text-color, var(--uui-color-text)); box-sizing: border-box; border-radius: 0; border: 1px solid var(--uui-select-border-color, var(--uui-color-border)); transition: all 150ms ease; width: 100%; + background-color: var( + --uui-select-background-color, + var(--uui-color-surface) + ); } #native:focus { From d37861c759730fc40a7842bb4736735ba0454f22 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Tue, 25 Jun 2024 15:46:46 +0200 Subject: [PATCH 41/61] feat: implement readonly mode for uui-ref-node --- .../uui-ref-node/lib/uui-ref-node.element.ts | 38 +++++++++++++------ packages/uui-ref/lib/uui-ref.element.ts | 9 +++++ 2 files changed, 35 insertions(+), 12 deletions(-) diff --git a/packages/uui-ref-node/lib/uui-ref-node.element.ts b/packages/uui-ref-node/lib/uui-ref-node.element.ts index c5340e781..c55390898 100644 --- a/packages/uui-ref-node/lib/uui-ref-node.element.ts +++ b/packages/uui-ref-node/lib/uui-ref-node.element.ts @@ -85,14 +85,18 @@ export class UUIRefNodeElement extends UUIRefElement { #renderContent() { return html` - - - ${this._iconSlotHasContent === false ? this.#renderFallbackIcon() : ''} + + + + ${this._iconSlotHasContent === false + ? this.#renderFallbackIcon() + : ''} + +
+
${this.name}
+ ${this.renderDetail()} +
-
-
${this.name}
- ${this.renderDetail()} -
`; } @@ -125,7 +129,7 @@ export class UUIRefNodeElement extends UUIRefElement { public render() { return html` - ${this.href ? this.#renderLink() : this.#renderButton()} + ${this.#renderSomething()}
@@ -135,6 +139,14 @@ export class UUIRefNodeElement extends UUIRefElement { `; } + #renderSomething() { + if (this.readonly) { + return html`${this.#renderContent()}`; + } else { + return this.href ? this.#renderLink() : this.#renderButton(); + } + } + static styles = [ ...UUIRefElement.styles, css` @@ -143,15 +155,17 @@ export class UUIRefNodeElement extends UUIRefElement { padding: calc(var(--uui-size-2) + 1px); } - #open-part { - text-decoration: none; - color: inherit; + #content { align-self: stretch; line-height: normal; - display: flex; position: relative; align-items: center; + } + + #open-part { + color: inherit; + text-decoration: none; cursor: pointer; } diff --git a/packages/uui-ref/lib/uui-ref.element.ts b/packages/uui-ref/lib/uui-ref.element.ts index 73af0f7d3..1e2e1195c 100644 --- a/packages/uui-ref/lib/uui-ref.element.ts +++ b/packages/uui-ref/lib/uui-ref.element.ts @@ -31,6 +31,15 @@ export class UUIRefElement extends SelectOnlyMixin( @property({ type: Boolean, reflect: true }) disabled = false; + /** + * Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content. + * @type {boolean} + * @attr + * @default false + */ + @property({ type: Boolean, reflect: true }) + readonly = false; + /** * Set to true to display error state * @type {boolean} From e168d1060e5ba77adf73a80eb2684f447cd76e18 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Tue, 25 Jun 2024 15:47:08 +0200 Subject: [PATCH 42/61] docs: add story for readonly mode --- .../uui-ref-node/lib/uui-ref-node.story.ts | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/packages/uui-ref-node/lib/uui-ref-node.story.ts b/packages/uui-ref-node/lib/uui-ref-node.story.ts index e4ce5d4b3..35b608511 100644 --- a/packages/uui-ref-node/lib/uui-ref-node.story.ts +++ b/packages/uui-ref-node/lib/uui-ref-node.story.ts @@ -36,7 +36,8 @@ const Template: Story = props => html` ?selectable=${props.selectable} ?selectOnly=${props.selectOnly} ?error=${props.error} - ?disabled=${props.disabled}> + ?disabled=${props.disabled} + ?readonly=${props.readonly}> Published html` + + +`; + +Readonly.args = { + readonly: true, +}; + +Readonly.parameters = { + docs: { + source: { + code: ` + + + `, + }, + }, +}; + const listOfNodeNames: string[] = ArrayOfUmbracoWords(10); export const Listed: Story = () => html` From 35bc22de593d3f251d47d384bcb49c22c37e76e3 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 24 Jun 2024 14:57:43 +0200 Subject: [PATCH 43/61] add headlines to make it more clear that there are 2 groups --- packages/uui-radio/lib/uui-radio.story.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/uui-radio/lib/uui-radio.story.ts b/packages/uui-radio/lib/uui-radio.story.ts index fc6425518..4a5319b18 100644 --- a/packages/uui-radio/lib/uui-radio.story.ts +++ b/packages/uui-radio/lib/uui-radio.story.ts @@ -69,12 +69,14 @@ Checked.parameters = { }; export const RadioGroup: Story = () => html` +
Group 1
Option 1 Option 2 Option 3 +
Group 2
Group 1 Option 1 Option 2 Option 3 +
Group 2
Date: Mon, 24 Jun 2024 14:58:08 +0200 Subject: [PATCH 44/61] docs: add readonly story --- packages/uui-radio/lib/uui-radio.story.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/uui-radio/lib/uui-radio.story.ts b/packages/uui-radio/lib/uui-radio.story.ts index 4a5319b18..b6562a01d 100644 --- a/packages/uui-radio/lib/uui-radio.story.ts +++ b/packages/uui-radio/lib/uui-radio.story.ts @@ -12,6 +12,7 @@ export default { label: 'label', checked: false, disabled: false, + readonly: false, }, argTypes: { slot: { control: { type: 'text' } }, @@ -27,6 +28,7 @@ export const AAAOverview: Story = props => .label=${props.label} .name=${props.name} ?disabled=${props.disabled} + ?readonly=${props.readonly} ?checked=${props.checked} >${props.slot}`; @@ -50,6 +52,24 @@ Disabled.parameters = { }, }; +export const Readonly: Story = props => + html` Readonly`; + +Readonly.args = { + readonly: true, +}; + +Readonly.parameters = { + controls: { include: ['readonly'] }, + docs: { + source: { + code: ` +Readonly +`, + }, + }, +}; + export const Checked: Story = props => html` Checked`; From 201917e24a77ddbf2c0faaa884bae7b1204923c5 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 24 Jun 2024 14:58:32 +0200 Subject: [PATCH 45/61] feat: readonly state for uui-radio --- packages/uui-radio/lib/uui-radio.element.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/uui-radio/lib/uui-radio.element.ts b/packages/uui-radio/lib/uui-radio.element.ts index 5491e9154..e9968f1aa 100644 --- a/packages/uui-radio/lib/uui-radio.element.ts +++ b/packages/uui-radio/lib/uui-radio.element.ts @@ -81,6 +81,15 @@ export class UUIRadioElement extends LitElement { } private _disabled = false; + /** + * Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content. + * @type {boolean} + * @attr + * @default false + */ + @property({ type: Boolean, reflect: true }) + readonly = false; + constructor() { super(); this.addEventListener('mousedown', this.#hideFocusOutline); @@ -162,7 +171,7 @@ export class UUIRadioElement extends LitElement { name=${this.name} value=${this.value} .checked=${this.checked} - .disabled=${this.disabled} + .disabled=${this.disabled || this.readonly} @change=${this._onChange} />
From 6a5f63667d1d9f274753e25305447a8f9c5d5d63 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 24 Jun 2024 14:59:47 +0200 Subject: [PATCH 46/61] feat: readonly state for uui-radio-group --- .../uui-radio/lib/uui-radio-group.element.ts | 43 ++++++++++++++++--- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/packages/uui-radio/lib/uui-radio-group.element.ts b/packages/uui-radio/lib/uui-radio-group.element.ts index c35784c4d..78ff05dec 100644 --- a/packages/uui-radio/lib/uui-radio-group.element.ts +++ b/packages/uui-radio/lib/uui-radio-group.element.ts @@ -35,6 +35,15 @@ export class UUIRadioGroupElement extends UUIFormControlMixin(LitElement, '') { @property({ type: Boolean, reflect: true }) disabled = false; + /** + * Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content. + * @type {boolean} + * @attr + * @default false + */ + @property({ type: Boolean, reflect: true }) + readonly = false; + get value() { return super.value; } @@ -121,6 +130,10 @@ export class UUIRadioGroupElement extends UUIFormControlMixin(LitElement, '') { this._radioElements?.forEach(el => (el.disabled = value)); } + private _setReadonlyOnRadios(value: boolean) { + this._radioElements?.forEach(el => (el.readonly = value)); + } + private _handleSlotChange(e: Event) { e.stopPropagation(); // TODO: make sure to diff new and old ones to only add and remove event listeners on relevant elements. @@ -152,10 +165,15 @@ export class UUIRadioGroupElement extends UUIFormControlMixin(LitElement, '') { }); this._setNameOnRadios(this.name); + if (this.disabled) { this._setDisableOnRadios(true); } + if (this.readonly) { + this._setReadonlyOnRadios(true); + } + const checkedRadios = this._radioElements.filter(el => el.checked === true); if (checkedRadios.length > 1) { @@ -172,13 +190,18 @@ export class UUIRadioGroupElement extends UUIFormControlMixin(LitElement, '') { } if (checkedRadios.length === 1) { - this.value = checkedRadios[0].value; - this._selected = this._radioElements.indexOf(checkedRadios[0]); - if (checkedRadios[0].disabled === false) { + const firstCheckedRadio = checkedRadios[0]; + this.value = firstCheckedRadio.value; + this._selected = this._radioElements.indexOf(firstCheckedRadio); + + if ( + firstCheckedRadio.disabled === false && + firstCheckedRadio.readonly === false + ) { this._radioElements.forEach(el => { el.makeUnfocusable(); }); - checkedRadios[0].makeFocusable(); + firstCheckedRadio.makeFocusable(); } else { this._makeFirstEnabledFocusable(); } @@ -206,12 +229,16 @@ export class UUIRadioGroupElement extends UUIFormControlMixin(LitElement, '') { let i = this._selected === null ? 0 : 1; //If we have something selected we will skip checking it self. while (i < len) { let checkIndex = (origin + i * direction) % len; + const radioElement = this._radioElements[checkIndex]; + if (checkIndex < 0) { checkIndex += len; } - if (this._radioElements[checkIndex].disabled === false) { - return this._radioElements[checkIndex]; + + if (radioElement.disabled === false && radioElement.readonly === false) { + return radioElement; } + i++; } return null; @@ -281,6 +308,10 @@ export class UUIRadioGroupElement extends UUIFormControlMixin(LitElement, '') { this._setDisableOnRadios(this.disabled); } + if (_changedProperties.has('readonly')) { + this._setReadonlyOnRadios(this.readonly); + } + if (_changedProperties.has('name')) { this._setNameOnRadios(_changedProperties.get('name') as string); } From cf81c2d991b25eae7728bef2f6581d43e9367448 Mon Sep 17 00:00:00 2001 From: AndyLongShout Date: Mon, 8 Jul 2024 13:39:36 +0100 Subject: [PATCH 47/61] feat: add `rel` property to relevant elements to override default behavior (#814) * 721 property added for rel to allow * 721 fix tab close tag --- .../lib/uui-button-inline-create.element.ts | 14 ++++++- packages/uui-button/lib/uui-button.element.ts | 14 ++++++- packages/uui-button/lib/uui-button.story.ts | 6 ++- packages/uui-button/lib/uui-button.test.ts | 20 +++++++++- .../lib/uui-card-block-type.element.ts | 5 ++- .../lib/uui-card-block-type.story.ts | 39 ++++++++++++------- .../lib/uui-card-content-node.element.ts | 5 ++- .../lib/uui-card-content-node.story.ts | 3 +- .../lib/uui-card-media.element.ts | 5 ++- .../lib/uui-card-media.story.ts | 3 +- .../lib/uui-card-user.element.ts | 5 ++- .../uui-card-user/lib/uui-card-user.story.ts | 3 +- packages/uui-card/lib/uui-card.element.ts | 9 +++++ .../lib/uui-menu-item.element.ts | 14 ++++++- .../uui-menu-item/lib/uui-menu-item.story.ts | 10 +++-- .../uui-menu-item/lib/uui-menu-item.test.ts | 20 +++++++++- .../uui-ref-node/lib/uui-ref-node.element.ts | 14 ++++++- .../uui-ref-node/lib/uui-ref-node.story.ts | 1 + packages/uui-tabs/lib/uui-tab.element.ts | 14 ++++++- packages/uui-tabs/lib/uui-tab.test.ts | 21 +++++++++- 20 files changed, 192 insertions(+), 33 deletions(-) diff --git a/packages/uui-button-inline-create/lib/uui-button-inline-create.element.ts b/packages/uui-button-inline-create/lib/uui-button-inline-create.element.ts index 42cc963d9..882198ab1 100644 --- a/packages/uui-button-inline-create/lib/uui-button-inline-create.element.ts +++ b/packages/uui-button-inline-create/lib/uui-button-inline-create.element.ts @@ -56,6 +56,15 @@ export class UUIButtonInlineCreateElement extends LitElement { @property({ type: String }) public target?: '_blank' | '_parent' | '_self' | '_top'; + /** + * Set the rel attribute for an anchor tag, only used when using href. + * @type {string} + * @attr + * @default undefined + */ + @property({ type: String }) + public rel?: string; + private _onMouseMove(e: MouseEvent) { this._position = (this.vertical ? e.offsetY : e.offsetX) - 5; } @@ -98,7 +107,10 @@ export class UUIButtonInlineCreateElement extends LitElement { href=${ifDefined(this.href)} target=${ifDefined(this.target || undefined)} rel=${ifDefined( - this.target === '_blank' ? 'noopener noreferrer' : undefined, + this.rel || + ifDefined( + this.target === '_blank' ? 'noopener noreferrer' : undefined, + ), )} aria-label=${this.label ? this.label : 'create new element'}> ${this.#renderContent()} diff --git a/packages/uui-button/lib/uui-button.element.ts b/packages/uui-button/lib/uui-button.element.ts index a1fe9b35f..09b153b9b 100644 --- a/packages/uui-button/lib/uui-button.element.ts +++ b/packages/uui-button/lib/uui-button.element.ts @@ -126,6 +126,15 @@ export class UUIButtonElement extends UUIFormControlMixin( @property({ type: String }) public target?: '_blank' | '_parent' | '_self' | '_top'; + /** + * Set the rel attribute for an anchor tag, only used when using href. + * @type {string} + * @attr + * @default undefined + */ + @property({ type: String }) + public rel?: string; + @query('#button') protected _button!: HTMLInputElement; @@ -229,7 +238,10 @@ export class UUIButtonElement extends UUIFormControlMixin( href=${ifDefined(!this.disabled ? this.href : undefined)} target=${ifDefined(this.target || undefined)} rel=${ifDefined( - this.target === '_blank' ? 'noopener noreferrer' : undefined, + this.rel || + ifDefined( + this.target === '_blank' ? 'noopener noreferrer' : undefined, + ), )}> ${this.renderState()} ${this.renderLabel()} diff --git a/packages/uui-button/lib/uui-button.story.ts b/packages/uui-button/lib/uui-button.story.ts index 492799395..86a8a4d91 100644 --- a/packages/uui-button/lib/uui-button.story.ts +++ b/packages/uui-button/lib/uui-button.story.ts @@ -17,6 +17,7 @@ export default { args: { href: undefined, target: undefined, + rel: undefined, look: 'default', color: 'default', type: undefined, @@ -104,6 +105,7 @@ const Template: Story = props => { .state=${props.state} .href=${props.href} .target=${props.target} + .rel=${props.rel} look=${props.look} color=${props.color} label=${props.label} @@ -339,6 +341,7 @@ export const AnchorTag = Template.bind({}); AnchorTag.args = { href: 'https://www.umbraco.com/', target: '_blank', + rel: 'noopener noreferrer', look: 'primary', }; AnchorTag.parameters = { @@ -349,7 +352,8 @@ AnchorTag.parameters = { look="primary" label="Open umbraco.com" href="http://www.umbraco.com/" - target="_blank"> + target="_blank" + rel="noopener noreferrer"> `.strings, }, diff --git a/packages/uui-button/lib/uui-button.test.ts b/packages/uui-button/lib/uui-button.test.ts index 152949e8d..e0559e0f5 100644 --- a/packages/uui-button/lib/uui-button.test.ts +++ b/packages/uui-button/lib/uui-button.test.ts @@ -100,6 +100,10 @@ describe('UuiButton', () => { it('has a target property', () => { expect(element).to.have.property('target'); }); + + it('has a rel property', () => { + expect(element).to.have.property('rel'); + }); }); describe('template', () => { @@ -249,7 +253,7 @@ describe('UuiButton', () => { expect(anchorElement.getAttribute('target')).to.be.equal('_self'); }); - it('when target is _blank rel is set.', async () => { + it('when target is _blank and rel is not defined rel attribute is set.', async () => { element.target = '_blank'; await elementUpdated(element); expect(anchorElement.getAttribute('target')).to.be.equal('_blank'); @@ -257,5 +261,19 @@ describe('UuiButton', () => { 'noopener noreferrer', ); }); + + it('when rel is applied to anchor tag.', async () => { + element.rel = 'noreferrer'; + await elementUpdated(element); + expect(anchorElement.getAttribute('rel')).to.be.equal('noreferrer'); + }); + + it('when target is _blank and rel is defined rel attribute is set.', async () => { + element.target = '_blank'; + element.rel = 'noopener'; + await elementUpdated(element); + expect(anchorElement.getAttribute('target')).to.be.equal('_blank'); + expect(anchorElement.getAttribute('rel')).to.be.equal('noopener'); + }); }); }); diff --git a/packages/uui-card-block-type/lib/uui-card-block-type.element.ts b/packages/uui-card-block-type/lib/uui-card-block-type.element.ts index 59aeeba1b..20d12f746 100644 --- a/packages/uui-card-block-type/lib/uui-card-block-type.element.ts +++ b/packages/uui-card-block-type/lib/uui-card-block-type.element.ts @@ -73,7 +73,10 @@ export class UUICardBlockTypeElement extends UUICardElement { href=${ifDefined(!this.disabled ? this.href : undefined)} target=${ifDefined(this.target || undefined)} rel=${ifDefined( - this.target === '_blank' ? 'noopener noreferrer' : undefined, + this.rel || + ifDefined( + this.target === '_blank' ? 'noopener noreferrer' : undefined, + ), )}> ${this.name}${this.description} diff --git a/packages/uui-card-block-type/lib/uui-card-block-type.story.ts b/packages/uui-card-block-type/lib/uui-card-block-type.story.ts index 266d06ecb..4aa0af36c 100644 --- a/packages/uui-card-block-type/lib/uui-card-block-type.story.ts +++ b/packages/uui-card-block-type/lib/uui-card-block-type.story.ts @@ -51,7 +51,8 @@ export const AAAOverview: StoryFn = props => html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> ${renderWandIcon()} `; @@ -77,7 +78,8 @@ export const Description: StoryFn = props => html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> ${renderWandIcon()} `; @@ -102,7 +104,8 @@ export const Tag: StoryFn = props => html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> ${renderWandIcon()} Trashed @@ -126,7 +129,8 @@ export const Actions: StoryFn = props => html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> ${renderWandIcon()} @@ -154,7 +158,8 @@ export const Background: StoryFn = props => html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> ${renderWandIcon()} `; @@ -179,7 +184,8 @@ export const Image: StoryFn = props => html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> @@ -206,7 +212,8 @@ export const Error: StoryFn = props => html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> ${renderWandIcon()} `; @@ -229,7 +236,8 @@ export const Selectable: StoryFn = props => html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> ${renderWandIcon()} `; @@ -252,7 +260,8 @@ export const Selected: StoryFn = props => html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> ${renderWandIcon()} `; @@ -275,7 +284,8 @@ export const Multiple: StoryFn = props => html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> ${renderWandIcon('rgba(0,0,0,0.5)')} html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> ${renderWandIcon('red')} html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> ${renderWandIcon('rgba(11, 229, 255, 0.5)')} `; @@ -324,7 +336,8 @@ export const Disabled: StoryFn = props => html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> ${renderWandIcon()} `; diff --git a/packages/uui-card-content-node/lib/uui-card-content-node.element.ts b/packages/uui-card-content-node/lib/uui-card-content-node.element.ts index 52054b821..e0bc56d86 100644 --- a/packages/uui-card-content-node/lib/uui-card-content-node.element.ts +++ b/packages/uui-card-content-node/lib/uui-card-content-node.element.ts @@ -62,7 +62,10 @@ export class UUICardContentNodeElement extends UUICardElement { href=${ifDefined(!this.disabled ? this.href : undefined)} target=${ifDefined(this.target || undefined)} rel=${ifDefined( - this.target === '_blank' ? 'noopener noreferrer' : undefined, + this.rel || + ifDefined( + this.target === '_blank' ? 'noopener noreferrer' : undefined, + ), )}> diff --git a/packages/uui-card-content-node/lib/uui-card-content-node.story.ts b/packages/uui-card-content-node/lib/uui-card-content-node.story.ts index e09a3486d..832b06b17 100644 --- a/packages/uui-card-content-node/lib/uui-card-content-node.story.ts +++ b/packages/uui-card-content-node/lib/uui-card-content-node.story.ts @@ -48,7 +48,8 @@ export const AAAOverview: Story = props => html` ?error=${props.error} ?disabled=${props.disabled} href=${props.href} - target=${props.target}> + target=${props.target} + rel=${props.rel}> Published ${cardContent} diff --git a/packages/uui-card-media/lib/uui-card-media.element.ts b/packages/uui-card-media/lib/uui-card-media.element.ts index 7c45d721b..a1b625a89 100644 --- a/packages/uui-card-media/lib/uui-card-media.element.ts +++ b/packages/uui-card-media/lib/uui-card-media.element.ts @@ -89,7 +89,10 @@ export class UUICardMediaElement extends UUICardElement { href=${ifDefined(!this.disabled ? this.href : undefined)} target=${ifDefined(this.target || undefined)} rel=${ifDefined( - this.target === '_blank' ? 'noopener noreferrer' : undefined, + this.rel || + ifDefined( + this.target === '_blank' ? 'noopener noreferrer' : undefined, + ), )}>