/**
 * Copyright Aquera Inc 2023
 *
 * This source code is licensed under the BSD-3-Clause license found in the
 * LICENSE file in the root directory of this source tree.
 */
import { __decorate } from "tslib";
import { html, } from 'lit';
import { customElement } from 'lit/decorators.js';
import { styles } from './nile-table-row.css';
import NileElement from '../internal/nile-element';
/**
 *nile-table-row component.
 *
 * @tag nile-table-row
 *
 */
let NileTableRow = class NileTableRow extends NileElement {
    /**
     * The styles for TableRow
     * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
     */
    static get styles() {
        return [styles];
    }
    /* #endregion */
    /* #region Methods */
    /**
     * Render method
     * @slot This is a slot test
     */
    handleSortingAlter(event) {
        const header_items = [
            ...this.querySelectorAll('nile-table-header-item'),
        ];
        for (let i = 0; i < header_items.length; i++) {
            const header = header_items[i];
            const haveIcon = header.textContent == event.detail.value.curr_sort_string;
            if (!haveIcon) {
                header.sorting_ct = 0;
            }
        }
    }
    render() {
        return html `
      <slot
        part="nile-row"
        @nile-click-sort="${this.handleSortingAlter}"
      ></slot>
    `;
    }
};
NileTableRow = __decorate([
    customElement('nile-table-row')
], NileTableRow);
export { NileTableRow };
export default NileTableRow;
//# sourceMappingURL=nile-table-row.js.map