import { c as t } from "../../chunks/runtime.js";
import { usePropertyChange as e } from "@arcgis/lumina/controllers";
import { reEmitEvent as i } from "@arcgis/lumina/controllers/accessor";
import s from "@geoscene/core/widgets/TableList.js";
import { LitElement as o, createEvent as l, noShadowRoot as r } from "@arcgis/lumina";
import { m as a } from "../../chunks/useWidget.js";
import { css as h } from "@lit/reactive-element/css-tag.js";
import { c as d } from "../../chunks/createCloseEvent.js";
/*! All material copyright GeoScene, All Rights Reserved, unless otherwise specified.
See https://js.geoscene.cn/4.33/geoscene/copyright.txt for details.
v4.33.18 */
const n = h`@layer{geoscene-table-list{display:block}}`, m = a(s);
class c extends o {
  constructor() {
    super(...arguments), this.widget = m(this), this.viewModel = this.widget.viewModel, this.geosceneClose = d(this), this.autoDestroyDisabled = !1, this.closed = !1, this.collapsed = this.widget.collapsed, this.dragEnabled = this.widget.dragEnabled, this.filterPlaceholder = this.widget.filterPlaceholder, this.filterPredicate = this.widget.filterPredicate, this.filterText = this.widget.filterText, this.icon = this.widget.icon, this.label = this.widget.label, this.listItemCreatedFunction = this.widget.listItemCreatedFunction, this.minDragEnabledItems = this.widget.minDragEnabledItems, this.minFilterItems = this.widget.minFilterItems, this.position = "bottom-left", this.selectedItems = this.widget.selectedItems, this.selectionMode = this.widget.selectionMode, this.state = this.viewModel.state, this.showCloseButton = this.widget.visibleElements.closeButton, this.showCollapseButton = this.widget.visibleElements.collapseButton, this.showErrors = this.widget.visibleElements.errors, this.showFilter = this.widget.visibleElements.filter, this.hideFlow = this.widget.visibleElements.flow, this.showHeading = this.widget.visibleElements.heading, this.hideStatusIndicators = this.widget.visibleElements.statusIndicators, this.showTemporaryTableIndicators = this.widget.visibleElements.temporaryTableIndicators, this.geoscenePropertyChange = e()("state"), this.geosceneReady = l(), this.geosceneTriggerAction = i(() => this.widget, "trigger-action");
  }
  static {
    this.properties = { autoDestroyDisabled: 5, closed: 5, collapsed: 7, dragEnabled: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, icon: 1, label: 1, listItemCreatedFunction: 0, minDragEnabledItems: 9, minFilterItems: 9, position: 1, referenceElement: 1, selectedItems: 0, selectionMode: 1, state: 3, tableItems: 32, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, showFilter: 5, hideFlow: 5, showHeading: 5, hideStatusIndicators: 5, showTemporaryTableIndicators: 5 };
  }
  static {
    this.shadowRootOptions = r;
  }
  static {
    this.styles = n;
  }
  get tableItems() {
    return this.widget.tableItems;
  }
  async destroy() {
    await this.manager.destroy();
  }
}
t("geoscene-table-list", c);
export {
  c as GeosceneTableList
};