{"size": 1185, "ext": "js", "max_stars_repo_path": "dist/vl-data-table.min.js", "max_stars_repo_name": "milieuinfo/webcomponent-ui-data-table", "max_stars_repo_stars_event_min_datetime": "2020-06-11T11:45:19.000Z", "max_stars_repo_stars_event_max_datetime": "2020-06-11T11:45:19.000Z", "max_issues_repo_path": "dist/vl-data-table.min.js", "max_issues_repo_name": "milieuinfo/webcomponent-ui-data-table", "max_issues_repo_issues_event_min_datetime": "2019-08-19T11:18:23.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-03T22:45:26.000Z", "max_forks_repo_path": "dist/vl-data-table.min.js", "max_forks_repo_name": "milieuinfo/webcomponent-vl-ui-data-table", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 18, "max_forks_count": null, "avg_line_length": 1185.0, "max_line_length": 1185, "alphanum_fraction": 0.7814345992}
import{nativeVlElement}from"/node_modules/vl-ui-core/dist/vl-core.min.js";import{define}from"/node_modules/vl-ui-core/dist/vl-core.min.js";export class VlDataTable extends(nativeVlElement(HTMLTableElement)){static get _observedClassAttributes(){return["hover","matrix","lined","zebra","collapsed-m","collapsed-s","collapsed-xs"]}connectedCallback(){this._processClass(),this._processScopeAttributes(),this._observer=this._observeHeaderElements((()=>this._processScopeAttributes()))}disconnectedcallback(){this._observer&&this._observer.disconnect()}get _headHeaderElements(){return[...this.querySelectorAll("thead tr th")]}get _bodyHeaderElements(){return[...this.querySelectorAll("tbody tr th")]}get _classPrefix(){return"vl-data-table--"}_processClass(){this.classList.add("vl-data-table")}_processScopeAttributes(){this._headHeaderElements.filter((e=>!e.hasAttribute("scope"))).forEach((e=>e.setAttribute("scope","col"))),this._bodyHeaderElements.filter((e=>!e.hasAttribute("scope"))).forEach((e=>e.setAttribute("scope","row")))}_observeHeaderElements(e){const t=new MutationObserver(e);return t.observe(this,{childList:!0}),t}}define("vl-data-table",VlDataTable,{extends:"table"});