import { k as h } from "./158dca8d.js";
import { TableToolbarComp as g } from "./d8fd0c14.js";
import { Y as e, g as b, M as d, fN as y, bN as C, fO as S, O as o, w as l, dO as v, a as r, a3 as i, v as f, Z as a, fP as H, fQ as T, fR as R, fS as x, fT as k, S as E, fU as O, bI as V, cv as s, ct as B, U as P, F as p, G as m, fV as A, a2 as M, aA as n, fj as z } from "./603b75d9.js";
import "react";
import { ExpansionControl as D } from "./c873d014.js";
import { PaginationControl as F } from "./048c5fdf.js";
import { SelectionControl as I } from "./2d0ef255.js";
import "./18a95abc.js";
import "./c2be1293.js";
import "./4963ac97.js";
import "./ffcffc16.js";
import "./62f393ec.js";
import "./26dac75c.js";
import "react-dom";
import "./11b05d65.js";
import "./56edae87.js";
import "./0cc240d3.js";
import "./00d44232.js";
import "./f9847c56.js";
import "./a4d0e31e.js";
import "./41aba172.js";
import "./e735e391.js";
import "./140b48ce.js";
import "./f5fb28b1.js";
import "./930af84f.js";
import "./9c5ea6de.js";
import "./7f1b43fa.js";
import "./cee178c0.js";
import "./43b58a96.js";
import "./19a46fb5.js";
import "./98f17e53.js";
import "./794d827a.js";
import "./0cdeb449.js";
import "./d50792b8.js";
import "./f64a8554.js";
import "./cf72e8e5.js";
import "./84cede66.js";
import "./3dfed0b7.js";
import "./57f24d28.js";
import "./be662667.js";
import "./8064caf1.js";
const L = [{
  label: e("table.singleClick"),
  value: "single"
}, {
  label: e("table.doubleClick"),
  value: "double"
}], G = [{
  label: "1",
  value: "1"
}, {
  label: "2",
  value: "2"
}, {
  label: "3",
  value: "3"
}], N = [{
  label: e("table.small"),
  value: "small"
}, {
  label: e("table.middle"),
  value: "middle"
}, {
  label: e("table.large"),
  value: "large"
}], j = [{
  label: e("table.saveChanges"),
  value: "saveChanges",
  description: e("table.saveChanges")
}, {
  label: e("table.cancelChanges"),
  value: "cancelChanges",
  description: e("table.cancelChanges")
}, {
  label: e("table.rowSelectChange"),
  value: "rowSelectChange",
  description: e("table.rowSelectChange")
}, {
  label: e("table.rowClick"),
  value: "rowClick",
  description: e("table.rowClick")
}, {
  label: e("table.rowExpand"),
  value: "rowExpand",
  description: e("table.rowExpand")
}, {
  label: e("table.rowShrink"),
  value: "rowShrink",
  description: e("table.rowShrink")
}, {
  label: e("table.columnEdited"),
  value: "columnEdited",
  description: e("table.columnEdited")
}, {
  label: e("table.search"),
  value: "dataSearch",
  description: e("table.search")
}, {
  label: e("table.download"),
  value: "download",
  description: e("table.download")
}, {
  label: e("table.filterChange"),
  value: "filterChange",
  description: e("table.filterChange")
}, {
  label: e("table.sortChange"),
  value: "sortChange",
  description: e("table.sortChange")
}, {
  label: e("table.pageChange"),
  value: "pageChange",
  description: e("table.pageChange")
}, {
  label: e("table.refresh"),
  value: "refresh",
  description: e("table.refresh")
}], U = M(j), c = e("table.rowColor"), J = b(new d({
  color: y
}, (t) => t.color).setPropertyViewFn((t) => t.color.propertyView({
  label: c,
  tooltip: e("table.rowColorDesc")
})).build());
class Q extends J {
  getPropertyView() {
    return C({
      filterText: c
    }, super.getPropertyView());
  }
}
const u = e("table.rowHeight"), Y = b(new d({
  height: S
}, (t) => t.height).setPropertyViewFn((t) => t.height.propertyView({
  label: u,
  tooltip: e("table.rowHeightDesc")
})).build());
class Z extends Y {
  getPropertyView() {
    return C({
      filterText: u
    }, super.getPropertyView());
  }
}
const w = {
  // hideBordered: BoolControl,
  showHeaderGridBorder: o,
  showRowGridBorder: l(o, !0),
  showHRowGridBorder: l(o, !0),
  hideHeader: o,
  fixedHeader: o,
  autoHeight: l(n, "auto"),
  showVerticalScrollbar: o,
  showHorizontalScrollbar: o,
  data: v(z),
  newData: r([]),
  showDataLoadSpinner: l(s, !0),
  columns: h,
  size: i(N, "middle"),
  selection: I,
  pagination: F,
  sort: f([]),
  toolbar: g,
  showSummary: o,
  summaryRows: i(G, "1"),
  style: a(H, "style"),
  rowStyle: a(T, "rowStyle"),
  summaryRowStyle: a(R, "summaryRowStyle"),
  toolbarStyle: a(x, "toolbarStyle"),
  headerStyle: a(k, "headerStyle"),
  searchText: E,
  columnsStyle: a(O, "columnsStyle"),
  viewModeResizable: o,
  visibleResizables: o,
  // sample data for regenerating columns
  dataRowExample: r(null),
  onEvent: U,
  loading: V,
  rowColor: Q,
  rowAutoHeight: l(n, "auto"),
  tableAutoHeight: l(n, "auto"),
  rowHeight: Z,
  dynamicColumn: s,
  // todo: support object config
  dynamicColumnConfig: B,
  expansion: D,
  selectedCell: r({}),
  inlineAddNewRow: o,
  editModeClicks: i(L, "single")
}, ze = function() {
  return new P(w, () => /* @__PURE__ */ p(m, {})).setPropertyViewFn(() => /* @__PURE__ */ p(m, {})).build();
}();
A(w);
export {
  Q as RowColorComp,
  Z as RowHeightComp,
  j as TableEventOptions,
  ze as TableInitComp
};
