Sha256: 42e214987ba0f6d7d371569a2bc76eaa5a69477c072421cea9eb361a51f2791d

Contents?: true

Size: 1.81 KB

Versions: 22

Compression:

Stored size: 1.81 KB

Contents

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { controller, target, targets } from '@github/catalyst';
let SubHeaderElement = class SubHeaderElement extends HTMLElement {
    expandFilterInput() {
        for (const item of this.hiddenItemsOnExpandedFilter) {
            item.classList.add('d-none');
        }
        for (const item of this.shownItemsOnExpandedFilter) {
            item.classList.remove('d-none');
        }
        this.classList.add('d-flex');
        this.filterInput.focus();
    }
    collapseFilterInput() {
        for (const item of this.hiddenItemsOnExpandedFilter) {
            item.classList.remove('d-none');
        }
        for (const item of this.shownItemsOnExpandedFilter) {
            item.classList.add('d-none');
        }
        this.classList.remove('d-flex');
    }
};
__decorate([
    target
], SubHeaderElement.prototype, "filterInput", void 0);
__decorate([
    targets
], SubHeaderElement.prototype, "hiddenItemsOnExpandedFilter", void 0);
__decorate([
    targets
], SubHeaderElement.prototype, "shownItemsOnExpandedFilter", void 0);
SubHeaderElement = __decorate([
    controller
], SubHeaderElement);
if (!window.customElements.get('sub-header')) {
    window.SubHeaderElement = SubHeaderElement;
    window.customElements.define('sub-header', SubHeaderElement);
}

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
openproject-primer_view_components-0.43.0 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.42.0 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.41.1 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.41.0 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.40.0 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.39.1 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.39.0 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.38.0 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.37.1 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.37.0 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.36.2 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.36.1 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.36.0 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.35.2 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.35.1 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.35.0 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.34.0 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.33.2 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.33.1 app/components/primer/open_project/sub_header_element.js
openproject-primer_view_components-0.33.0 app/components/primer/open_project/sub_header_element.js