import { l as h } from "./bdf03194.js";
import { TableToolbarComp as g } from "./6cb1f6af.js";
import { a0 as e, g as p, M as b, fk as w, bs as m, g1 as u, bv as t, w as l, cv as r, dO as v, ff as y, ch as i, bb as f, v as S, bB as a, g2 as x, g3 as H, g4 as T, g5 as B, ba as E, g6 as R, a as V, bd as P, cf as k, U as O, V as n, bh as s, g7 as L, bL as A } from "./684d2f28.js";
import "react";
import { ExpansionControl as M } from "./913682de.js";
import { PaginationControl as z } from "./ff81ee95.js";
import { SelectionControl as D } from "./392e04da.js";
import "./0667825e.js";
import "./49a8125c.js";
import "./7281819e.js";
import "./9869e60a.js";
import "./b1144c16.js";
import "./d404aae1.js";
import "./926d8ea1.js";
import "./d6402597.js";
import "react-dom";
import "./7a630f06.js";
import "./d883a28b.js";
import "./6be5dc74.js";
import "./1312a48b.js";
import "./00dac55d.js";
import "./622ce240.js";
import "./0c4ef413.js";
import "./b8f8370b.js";
import "./ca17ca0f.js";
import "./d9d1e856.js";
import "./6538ec2e.js";
import "./226f78bd.js";
import "./8e06f4ed.js";
import "./a014bc57.js";
import "./6cf5f7c0.js";
import "./7f2964c3.js";
import "./602ac28f.js";
import "./f9c25fbe.js";
import "./2d5fc5ff.js";
import "./0f3d7a1a.js";
import "./698a4355.js";
import "./cf2c1864.js";
import "./fcd1d96f.js";
import "./36711569.js";
const F = [{
  label: e("table.small"),
  value: "small"
}, {
  label: e("table.middle"),
  value: "middle"
}, {
  label: e("table.large"),
  value: "large"
}], I = [{
  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")
}], G = A(I), d = e("table.rowColor"), j = p(new b({
  color: w
}, (o) => o.color).setPropertyViewFn((o) => o.color.propertyView({
  label: d,
  tooltip: e("table.rowColorDesc")
})).build());
class U extends j {
  getPropertyView() {
    return m({
      filterText: d
    }, super.getPropertyView());
  }
}
const C = e("table.rowHeight"), J = p(new b({
  height: u
}, (o) => o.height).setPropertyViewFn((o) => o.height.propertyView({
  label: C,
  tooltip: e("table.rowHeightDesc")
})).build());
class N extends J {
  getPropertyView() {
    return m({
      filterText: C
    }, super.getPropertyView());
  }
}
const c = {
  // hideBordered: BoolControl,
  showHeaderGridBorder: t,
  showRowGridBorder: t,
  showHRowGridBorder: t,
  hideHeader: t,
  fixedHeader: t,
  autoHeight: l(r, "auto"),
  data: v(y),
  showDataLoadSpinner: l(i, !0),
  columns: h,
  size: f(F, "middle"),
  selection: D,
  pagination: z,
  sort: S([]),
  toolbar: g,
  style: a(x),
  rowStyle: a(H),
  toolbarStyle: a(T),
  headerStyle: a(B),
  searchText: E,
  columnsStyle: l(a(R), {
    borderWidth: "1px",
    radius: "0px",
    fontStyle: "italic"
  }),
  viewModeResizable: t,
  visibleResizables: t,
  // sample data for regenerating columns
  dataRowExample: V(null),
  onEvent: G,
  loading: P,
  rowColor: U,
  rowAutoHeight: l(r, "auto"),
  tableAutoHeight: l(r, "auto"),
  rowHeight: N,
  dynamicColumn: i,
  // todo: support object config
  dynamicColumnConfig: k,
  expansion: M
}, ke = function() {
  return new O(c, () => /* @__PURE__ */ n(s, {})).setPropertyViewFn(() => /* @__PURE__ */ n(s, {})).build();
}();
L(c);
export {
  U as RowColorComp,
  N as RowHeightComp,
  I as TableEventOptions,
  ke as TableInitComp
};
