Component: Aktivierungs-Schalter (an/aus)
+ +Component: Slider
@@ -610,6 +629,21 @@ }); }); + document.querySelectorAll('.sg-activation-toggle-chip').forEach((toggle) => { + toggle.addEventListener('click', () => { + const nextState = toggle.dataset.active === 'an' ? 'aus' : 'an'; + const statusLabel = toggle.closest('[data-component="activation-toggle"]')?.querySelector('[data-component-part="activation-toggle-state"]'); + + toggle.dataset.active = nextState; + toggle.setAttribute('aria-pressed', String(nextState === 'an')); + toggle.setAttribute('aria-label', `Aktivierung ${nextState}`); + + if (statusLabel) { + statusLabel.textContent = `Status: ${nextState}`; + } + }); + }); + document.querySelectorAll('.sg-tab-button-group').forEach((group) => { group.querySelectorAll('.sg-tab-button').forEach((button) => { button.addEventListener('click', () => {