From 472fa6b684862e70cbb7276f6ccfe2eed169d186 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 17 Jan 2025 17:45:33 +0100 Subject: [PATCH] fix(core): Update LitElement properties to use accessors --- changelog.md | 6 ++++++ ts_web/00_commitinfo_data.ts | 2 +- ts_web/elements/consentsoftware-toggle.ts | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 1d00123..6abb5c3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-01-17 - 1.4.4 - fix(core) +Update LitElement properties to use accessors + +- Changes made in ts_web/elements/consentsoftware-toggle.ts +- Updated properties 'required' and 'selected' to use accessors + ## 2025-01-17 - 1.4.3 - fix(consentsoftware-cookieconsent) Fix transition property in consent button styles and add HTMLElementTagNameMap declaration for global interface. diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 45a502b..dd1ff64 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@consent.software/catalog', - version: '1.4.3', + version: '1.4.4', description: 'A library of web components designed to integrate robust consent management capabilities into web applications, ensuring compliance with privacy regulations.' } diff --git a/ts_web/elements/consentsoftware-toggle.ts b/ts_web/elements/consentsoftware-toggle.ts index ff3ce02..498df5c 100644 --- a/ts_web/elements/consentsoftware-toggle.ts +++ b/ts_web/elements/consentsoftware-toggle.ts @@ -6,10 +6,10 @@ import { delayFor } from '@push.rocks/smartdelay'; @customElement('consentsoftware-toggle') export class ConsentsoftwareToggle extends LitElement { @property({ type: Boolean }) - public required = false; + public accessor required = false; @property({ type: Boolean, reflect: true }) - public selected = false; + public accessor selected = false; /** * We always track the knob’s left offset in `currentX`.