Sha256: e98b9092ad6829160726432b65e63e84b2dbac373b57d8b6f31c217eeec73d22

Contents?: true

Size: 1.13 KB

Versions: 51

Compression:

Stored size: 1.13 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 } from '@github/catalyst';
let PageHeaderElement = class PageHeaderElement extends HTMLElement {
    menuItemClick(event) {
        const currentTarget = event.currentTarget;
        const id = currentTarget?.getAttribute('data-for');
        if (id) {
            document.getElementById(id)?.click();
        }
    }
};
PageHeaderElement = __decorate([
    controller
], PageHeaderElement);
if (!window.customElements.get('page-header')) {
    window.PageHeaderElement = PageHeaderElement;
    window.customElements.define('page-header', PageHeaderElement);
}

Version data entries

51 entries across 51 versions & 1 rubygems

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