Sha256: a5e622e060578f21223ce31d3e22e1dfffa69a5c6c604fadb824944c4bb87ce6

Contents?: true

Size: 901 Bytes

Versions: 6

Compression:

Stored size: 901 Bytes

Contents

import { Controller } from '@hotwired/stimulus';
export default class SlideoverComponent extends Controller {
    toggle() {
        var _a;
        // eslint-disable-next-line no-debugger
        debugger;
        this.expandableTarget.classList.toggle('hidden');
        this.expandWrapperTarget.classList.toggle('bg-filter-panel');
        for (const slidePanel of this.slidePanelTargets) {
            slidePanel.classList.toggle('hidden');
        }
        this.buttonWrapperTarget.classList.toggle('bg-filter-panel');
        if ((_a = document.getElementById('btnClose')) === null || _a === void 0 ? void 0 : _a.classList.contains('hidden')) {
            const form = this.buttonWrapperTarget.closest('form');
            form === null || form === void 0 ? void 0 : form.submit();
        }
    }
}
SlideoverComponent.targets = ['expandable', 'expandWrapper', 'slidePanel', 'buttonWrapper'];

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.19 app/components/ariadne/slideover_component.js
ariadne_view_components-0.0.17 app/components/ariadne/slideover_component.js
ariadne_view_components-0.0.16 app/components/ariadne/slideover_component.js
ariadne_view_components-0.0.15 app/components/ariadne/slideover_component.js
ariadne_view_components-0.0.6 app/components/ariadne/slideover_component.js
ariadne_view_components-0.0.5 app/components/ariadne/slideover_component.js