1/* 2 * Copyright (C) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import { element } from '../BaseElement.js'; 17 18@element('lit-table-group') 19export class LitTableGroup extends HTMLElement { 20 constructor() { 21 super(); 22 const shadowRoot = this.attachShadow({ mode: 'open' }); 23 shadowRoot.innerHTML = ` 24 <style> 25 :host{ } 26 </style> 27 <slot id="sl"></slot> 28 `; 29 } 30 31 static get observedAttributes() { 32 return ['title']; 33 } 34 35 get title() { 36 return this.getAttribute('title') || ''; 37 } 38 39 set title(value: string) { 40 this.setAttribute('title', value); 41 } 42 43 connectedCallback() {} 44 45 disconnectedCallback() {} 46 47 adoptedCallback() {} 48 49 attributeChangedCallback(name: string, oldValue: string, newValue: string) {} 50} 51