dolphin-components 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var It = Object.defineProperty;
2
2
  var Wt = (l, e, t) => e in l ? It(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
3
3
  var b = (l, e, t) => Wt(l, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as fe, ref as N, watch as ne, resolveComponent as at, createElementBlock as k, openBlock as E, createElementVNode as C, normalizeClass as I, Fragment as Z, renderList as Q, createCommentVNode as P, createBlock as Te, toDisplayString as _, withCtx as ce, createTextVNode as Me, renderSlot as ue, onMounted as ct, onUpdated as Gt, onBeforeUnmount as ft, createVNode as pt, Transition as mt, normalizeStyle as Ee, computed as ge, withDirectives as ze, vModelText as jt, vModelCheckbox as Ut, vModelRadio as $t } from "vue";
4
+ import { defineComponent as ce, ref as N, watch as ne, resolveComponent as at, createElementBlock as T, openBlock as E, createElementVNode as C, normalizeClass as I, Fragment as Z, renderList as Q, createCommentVNode as _, createBlock as Te, toDisplayString as B, withCtx as ue, createTextVNode as Me, renderSlot as de, onMounted as ct, onUpdated as Gt, onBeforeUnmount as ft, createVNode as pt, Transition as mt, normalizeStyle as ye, computed as me, withDirectives as ze, vModelText as jt, vModelCheckbox as Ut, vModelRadio as $t } from "vue";
5
5
  const Xt = { class: "content-div" }, Jt = { class: "content-title" }, Kt = { key: 0 }, qt = {
6
6
  key: 2,
7
7
  width: "22px",
@@ -10,7 +10,7 @@ const Xt = { class: "content-div" }, Jt = { class: "content-title" }, Kt = { key
10
10
  viewBox: "0 0 24 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
- }, Yt = { class: "content-action" }, Zt = ["onClick"], so = /* @__PURE__ */ fe({
13
+ }, Yt = { class: "content-action" }, Zt = ["onClick"], so = /* @__PURE__ */ ce({
14
14
  __name: "ContentLayout",
15
15
  props: {
16
16
  title: { default: () => [] },
@@ -28,24 +28,24 @@ const Xt = { class: "content-div" }, Jt = { class: "content-title" }, Kt = { key
28
28
  { deep: !0 }
29
29
  ), (n, o) => {
30
30
  const r = at("RouterLink");
31
- return E(), k("div", Xt, [
31
+ return E(), T("div", Xt, [
32
32
  C("div", {
33
33
  class: I(["content-title-div", n.titleClass])
34
34
  }, [
35
35
  C("div", Jt, [
36
- (E(!0), k(Z, null, Q(n.title, (a, h) => (E(), k("div", { key: h }, [
37
- a.link ? P("", !0) : (E(), k("span", Kt, _(a.name), 1)),
36
+ (E(!0), T(Z, null, Q(n.title, (a, h) => (E(), T("div", { key: h }, [
37
+ a.link ? _("", !0) : (E(), T("span", Kt, B(a.name), 1)),
38
38
  a.link ? (E(), Te(r, {
39
39
  key: 1,
40
40
  to: a.link,
41
41
  class: "hover:underline cursor-pointer"
42
42
  }, {
43
- default: ce(() => [
44
- Me(_(a.name), 1)
43
+ default: ue(() => [
44
+ Me(B(a.name), 1)
45
45
  ]),
46
46
  _: 2
47
- }, 1032, ["to"])) : P("", !0),
48
- n.title.length !== 0 && h + 1 !== n.title.length ? (E(), k("svg", qt, o[0] || (o[0] = [
47
+ }, 1032, ["to"])) : _("", !0),
48
+ n.title.length !== 0 && h + 1 !== n.title.length ? (E(), T("svg", qt, o[0] || (o[0] = [
49
49
  C("path", {
50
50
  d: "M9 6L15 12L9 18",
51
51
  stroke: "gray",
@@ -53,24 +53,24 @@ const Xt = { class: "content-div" }, Jt = { class: "content-title" }, Kt = { key
53
53
  "stroke-linecap": "round",
54
54
  "stroke-linejoin": "round"
55
55
  }, null, -1)
56
- ]))) : P("", !0)
56
+ ]))) : _("", !0)
57
57
  ]))), 128))
58
58
  ]),
59
59
  C("div", Yt, [
60
- ue(n.$slots, "action-before"),
61
- (E(!0), k(Z, null, Q(s.value, (a, h) => (E(), k("div", { key: h }, [
60
+ de(n.$slots, "action-before"),
61
+ (E(!0), T(Z, null, Q(s.value, (a, h) => (E(), T("div", { key: h }, [
62
62
  C("button", {
63
63
  class: I(a.class || "btn"),
64
64
  onClick: (d) => t(a.emit)
65
- }, _(a.title), 11, Zt)
65
+ }, B(a.title), 11, Zt)
66
66
  ]))), 128)),
67
- ue(n.$slots, "action-after")
67
+ de(n.$slots, "action-after")
68
68
  ])
69
69
  ], 2),
70
70
  C("div", {
71
71
  class: I(["content-body", n.bodyClass])
72
72
  }, [
73
- ue(n.$slots, "body")
73
+ de(n.$slots, "body")
74
74
  ], 2)
75
75
  ]);
76
76
  };
@@ -86,7 +86,7 @@ const Xt = { class: "content-div" }, Jt = { class: "content-title" }, Kt = { key
86
86
  }, si = { class: "border-t py-2.5 px-4" }, ni = { class: "my-auto relative" }, oi = { class: "flex justify-end gap-1.5" }, ri = ["onClick"], ai = {
87
87
  key: 0,
88
88
  class: "h-screen bg-black/30 z-10 fixed top-0 right-0 left-0"
89
- }, li = /* @__PURE__ */ fe({
89
+ }, li = /* @__PURE__ */ ce({
90
90
  __name: "Modal",
91
91
  props: {
92
92
  title: { default: () => [] },
@@ -121,37 +121,37 @@ const Xt = { class: "content-div" }, Jt = { class: "content-title" }, Kt = { key
121
121
  { deep: !0 }
122
122
  ), (u, c) => {
123
123
  const f = at("RouterLink");
124
- return E(), k("div", null, [
124
+ return E(), T("div", null, [
125
125
  pt(mt, { name: "modal-load" }, {
126
- default: ce(() => [
127
- u.show ? (E(), k("div", {
126
+ default: ue(() => [
127
+ u.show ? (E(), T("div", {
128
128
  key: 0,
129
129
  class: I(["bg-white border border-secondary-100 z-11 fixed top-[50px] right-0 left-0 mx-auto", { "overflow-y-auto": o.value }]),
130
- style: Ee({ width: u.width })
130
+ style: ye({ width: u.width })
131
131
  }, [
132
132
  C("div", Qt, [
133
133
  C("div", ei, [
134
- (E(!0), k(Z, null, Q(u.title, (p, g) => (E(), k("span", {
134
+ (E(!0), T(Z, null, Q(u.title, (p, g) => (E(), T("span", {
135
135
  key: g,
136
136
  class: "flex"
137
137
  }, [
138
- p.link ? P("", !0) : (E(), k("span", ti, _(p.name), 1)),
138
+ p.link ? _("", !0) : (E(), T("span", ti, B(p.name), 1)),
139
139
  p.link && p.link !== "#" ? (E(), Te(f, {
140
140
  key: 1,
141
141
  to: p.link,
142
142
  class: "hover:underline"
143
143
  }, {
144
- default: ce(() => [
145
- Me(_(p.name), 1)
144
+ default: ue(() => [
145
+ Me(B(p.name), 1)
146
146
  ]),
147
147
  _: 2
148
- }, 1032, ["to"])) : P("", !0),
149
- p.link && p.link === "#" ? (E(), k("a", {
148
+ }, 1032, ["to"])) : _("", !0),
149
+ p.link && p.link === "#" ? (E(), T("a", {
150
150
  key: 2,
151
151
  onClick: c[0] || (c[0] = (v) => t("onClose")),
152
152
  class: "hover:underline cursor-pointer"
153
- }, _(p.name), 1)) : P("", !0),
154
- u.title.length !== 0 && g + 1 !== u.title.length ? (E(), k("svg", ii, c[2] || (c[2] = [
153
+ }, B(p.name), 1)) : _("", !0),
154
+ u.title.length !== 0 && g + 1 !== u.title.length ? (E(), T("svg", ii, c[2] || (c[2] = [
155
155
  C("path", {
156
156
  d: "M9 6L15 12L9 18",
157
157
  stroke: "gray",
@@ -159,7 +159,7 @@ const Xt = { class: "content-div" }, Jt = { class: "content-title" }, Kt = { key
159
159
  "stroke-linecap": "round",
160
160
  "stroke-linejoin": "round"
161
161
  }, null, -1)
162
- ]))) : P("", !0)
162
+ ]))) : _("", !0)
163
163
  ]))), 128)),
164
164
  C("div", {
165
165
  class: "absolute hover:cursor-pointer top-[7px] right-0 text-xl group",
@@ -188,31 +188,31 @@ const Xt = { class: "content-div" }, Jt = { class: "content-title" }, Kt = { key
188
188
  ref_key: "dynamicDiv",
189
189
  ref: n,
190
190
  class: I(["py-4 px-4", { "overflow-y-auto": o.value }]),
191
- style: Ee({ maxHeight: `${s.value - 200}px` })
191
+ style: ye({ maxHeight: `${s.value - 200}px` })
192
192
  }, [
193
- ue(u.$slots, "default")
193
+ de(u.$slots, "default")
194
194
  ], 6),
195
195
  C("div", si, [
196
196
  C("div", ni, [
197
197
  C("div", oi, [
198
- (E(!0), k(Z, null, Q(d.value, (p, g) => (E(), k("div", { key: g }, [
198
+ (E(!0), T(Z, null, Q(d.value, (p, g) => (E(), T("div", { key: g }, [
199
199
  C("button", {
200
200
  class: I(p.class || "btn"),
201
201
  onClick: (v) => r(p)
202
- }, _(p.title), 11, ri)
202
+ }, B(p.title), 11, ri)
203
203
  ]))), 128))
204
204
  ])
205
205
  ])
206
206
  ])
207
- ], 6)) : P("", !0)
207
+ ], 6)) : _("", !0)
208
208
  ]),
209
209
  _: 3
210
210
  }),
211
- u.show ? (E(), k("div", ai)) : P("", !0)
211
+ u.show ? (E(), T("div", ai)) : _("", !0)
212
212
  ]);
213
213
  };
214
214
  }
215
- }), hi = ["aria-checked"], no = /* @__PURE__ */ fe({
215
+ }), hi = ["aria-checked"], no = /* @__PURE__ */ ce({
216
216
  __name: "Switch",
217
217
  props: {
218
218
  modelValue: { type: Boolean, default: !1 },
@@ -231,7 +231,7 @@ const Xt = { class: "content-div" }, Jt = { class: "content-title" }, Kt = { key
231
231
  const n = () => {
232
232
  t.disable || (s.value = !s.value, i("update:modelValue", s.value));
233
233
  };
234
- return (o, r) => (E(), k("button", {
234
+ return (o, r) => (E(), T("button", {
235
235
  onClick: n,
236
236
  class: I(["relative w-[40px] h-[25px] rounded-full p-1 transition-colors duration-200 my-[1px]", [s.value ? o.background : "bg-gray-200", o.disable ? "cursor-not-allowed" : "cursor-pointer"]]),
237
237
  role: "switch",
@@ -243,7 +243,7 @@ const Xt = { class: "content-div" }, Jt = { class: "content-title" }, Kt = { key
243
243
  ], 10, hi));
244
244
  }
245
245
  });
246
- class F {
246
+ class O {
247
247
  constructor(e) {
248
248
  this.table = e;
249
249
  }
@@ -371,7 +371,7 @@ class z {
371
371
  return t;
372
372
  }
373
373
  }
374
- let di = class gt extends F {
374
+ let di = class gt extends O {
375
375
  constructor(e, t, i) {
376
376
  super(e), this.element = t, this.container = this._lookupContainer(), this.parent = i, this.reversedX = !1, this.childPopup = null, this.blurable = !1, this.blurCallback = null, this.blurEventsBound = !1, this.renderedCallback = null, this.visible = !1, this.hideable = !0, this.element.classList.add("tabulator-popup-container"), this.blurEvent = this.hide.bind(this, !1), this.escEvent = this._escapeCheck.bind(this), this.destroyBinding = this.tableDestroyed.bind(this), this.destroyed = !1;
377
377
  }
@@ -463,7 +463,7 @@ let di = class gt extends F {
463
463
  return this.childPopup && this.childPopup.hide(), this.childPopup = new gt(this.table, e, this), this.childPopup;
464
464
  }
465
465
  };
466
- class y extends F {
466
+ class y extends O {
467
467
  constructor(e, t) {
468
468
  super(e), this._handler = null;
469
469
  }
@@ -540,7 +540,7 @@ var ui = {
540
540
  return n.getPosition();
541
541
  }
542
542
  };
543
- const ae = class ae extends y {
543
+ const re = class re extends y {
544
544
  constructor(e) {
545
545
  super(e), this.allowedTypes = ["", "data", "download", "clipboard", "print", "htmlOutput"], this.registerColumnOption("accessor"), this.registerColumnOption("accessorParams"), this.registerColumnOption("accessorData"), this.registerColumnOption("accessorDataParams"), this.registerColumnOption("accessorDownload"), this.registerColumnOption("accessorDownloadParams"), this.registerColumnOption("accessorClipboard"), this.registerColumnOption("accessorClipboardParams"), this.registerColumnOption("accessorPrint"), this.registerColumnOption("accessorPrintParams"), this.registerColumnOption("accessorHtmlOutput"), this.registerColumnOption("accessorHtmlOutputParams");
546
546
  }
@@ -562,7 +562,7 @@ const ae = class ae extends y {
562
562
  var t = !1;
563
563
  switch (typeof e) {
564
564
  case "string":
565
- ae.accessors[e] ? t = ae.accessors[e] : console.warn("Accessor Error - No such accessor found, ignoring: ", e);
565
+ re.accessors[e] ? t = re.accessors[e] : console.warn("Accessor Error - No such accessor found, ignoring: ", e);
566
566
  break;
567
567
  case "function":
568
568
  t = e;
@@ -579,27 +579,27 @@ const ae = class ae extends y {
579
579
  }), n;
580
580
  }
581
581
  };
582
- b(ae, "moduleName", "accessor"), //load defaults
583
- b(ae, "accessors", ui);
584
- let Oe = ae;
582
+ b(re, "moduleName", "accessor"), //load defaults
583
+ b(re, "accessors", ui);
584
+ let Oe = re;
585
585
  var ci = {
586
586
  method: "GET"
587
587
  };
588
- function Ae(l, e) {
588
+ function Pe(l, e) {
589
589
  var t = [];
590
590
  if (e = e || "", Array.isArray(l))
591
591
  l.forEach((s, n) => {
592
- t = t.concat(Ae(s, e ? e + "[" + n + "]" : n));
592
+ t = t.concat(Pe(s, e ? e + "[" + n + "]" : n));
593
593
  });
594
594
  else if (typeof l == "object")
595
595
  for (var i in l)
596
- t = t.concat(Ae(l[i], e ? e + "[" + i + "]" : i));
596
+ t = t.concat(Pe(l[i], e ? e + "[" + i + "]" : i));
597
597
  else
598
598
  t.push({ key: e, value: l });
599
599
  return t;
600
600
  }
601
601
  function fi(l) {
602
- var e = Ae(l), t = [];
602
+ var e = Pe(l), t = [];
603
603
  return e.forEach(function(i) {
604
604
  t.push(encodeURIComponent(i.key) + "=" + encodeURIComponent(i.value));
605
605
  }), t.join("&");
@@ -628,15 +628,15 @@ function pi(l, e, t) {
628
628
  })) : (console.warn("Ajax Load Error - No URL Set"), s([]));
629
629
  });
630
630
  }
631
- function Pe(l, e) {
631
+ function Ae(l, e) {
632
632
  var t = [];
633
633
  if (e = e || "", Array.isArray(l))
634
634
  l.forEach((s, n) => {
635
- t = t.concat(Pe(s, e ? e + "[" + n + "]" : n));
635
+ t = t.concat(Ae(s, e ? e + "[" + n + "]" : n));
636
636
  });
637
637
  else if (typeof l == "object")
638
638
  for (var i in l)
639
- t = t.concat(Pe(l[i], e ? e + "[" + i + "]" : i));
639
+ t = t.concat(Ae(l[i], e ? e + "[" + i + "]" : i));
640
640
  else
641
641
  t.push({ key: e, value: l });
642
642
  return t;
@@ -653,7 +653,7 @@ var mi = {
653
653
  form: {
654
654
  headers: {},
655
655
  body: function(l, e, t) {
656
- var i = Pe(t), s = new FormData();
656
+ var i = Ae(t), s = new FormData();
657
657
  return i.forEach(function(n) {
658
658
  s.append(n.key, n.value);
659
659
  }), s;
@@ -923,7 +923,7 @@ class vt {
923
923
  return this._cell;
924
924
  }
925
925
  }
926
- class Re extends F {
926
+ class Ee extends O {
927
927
  constructor(e, t) {
928
928
  super(e.table), this.table = e.table, this.column = e, this.row = t, this.element = null, this.value = null, this.initialValue, this.oldValue = null, this.modules = {}, this.height = null, this.width = null, this.minWidth = null, this.component = null, this.loaded = !1, this.build();
929
929
  }
@@ -1147,7 +1147,7 @@ var Ct = {
1147
1147
  headerWordWrap: !1,
1148
1148
  editableTitle: void 0
1149
1149
  };
1150
- const ee = class ee extends F {
1150
+ const ee = class ee extends O {
1151
1151
  constructor(e, t, i) {
1152
1152
  super(t.table), this.definition = e, this.parent = t, this.type = "column", this.columns = [], this.cells = [], this.isGroup = !1, this.isRowHeader = i, this.element = this.createElement(), this.contentElement = !1, this.titleHolderElement = !1, this.titleElement = !1, this.groupElement = this.createGroupElement(), this.hozAlign = "", this.vertAlign = "", this.field = "", this.fieldStructure = "", this.getFieldValue = "", this.setFieldValue = "", this.titleDownload = null, this.titleFormatterRendered = !1, this.mapDefinitions(), this.setField(this.definition.field), this.modules = {}, this.width = null, this.widthStyled = "", this.maxWidth = null, this.maxWidthStyled = "", this.maxInitialWidth = null, this.minWidth = null, this.minWidthStyled = "", this.widthFixed = !1, this.visible = !0, this.component = null, this.definition.columns ? (this.isGroup = !0, this.definition.columns.forEach((s, n) => {
1153
1153
  var o = new ee(s, this);
@@ -1442,7 +1442,7 @@ const ee = class ee extends F {
1442
1442
  //////////////// Cell Management /////////////////
1443
1443
  //generate cell for this column
1444
1444
  generateCell(e) {
1445
- var t = new Re(this, e);
1445
+ var t = new Ee(this, e);
1446
1446
  return this.cells.push(t), t;
1447
1447
  }
1448
1448
  nextColumn() {
@@ -1567,7 +1567,7 @@ class Le {
1567
1567
  return e && e.getComponent();
1568
1568
  }
1569
1569
  }
1570
- class O extends F {
1570
+ class P extends O {
1571
1571
  constructor(e, t, i = "row") {
1572
1572
  super(t.table), this.parent = t, this.data = {}, this.type = i, this.element = !1, this.modules = {}, this.cells = [], this.height = 0, this.heightStyled = "", this.manualHeight = !1, this.outerHeight = 0, this.initialized = !1, this.heightInitialized = !1, this.position = 0, this.positionWatchers = [], this.component = null, this.created = !1, this.setData(e);
1573
1573
  }
@@ -1954,7 +1954,7 @@ const X = class X extends y {
1954
1954
  //generate stats row
1955
1955
  generateRow(e, t) {
1956
1956
  var i = this.generateRowData(e, t), s;
1957
- return this.table.modExists("mutator") && this.table.modules.mutator.disable(), s = new O(i, this, "calc"), this.table.modExists("mutator") && this.table.modules.mutator.enable(), s.getElement().classList.add("tabulator-calcs", "tabulator-calcs-" + e), s.component = !1, s.getComponent = () => (s.component || (s.component = new yi(s)), s.component), s.generateCells = () => {
1957
+ return this.table.modExists("mutator") && this.table.modules.mutator.disable(), s = new P(i, this, "calc"), this.table.modExists("mutator") && this.table.modules.mutator.enable(), s.getElement().classList.add("tabulator-calcs", "tabulator-calcs-" + e), s.component = !1, s.getComponent = () => (s.component || (s.component = new yi(s)), s.component), s.generateCells = () => {
1958
1958
  var n = [];
1959
1959
  this.table.columnManager.columnsByIndex.forEach((o) => {
1960
1960
  this.genColumn.setField(o.getField()), this.genColumn.hozAlign = o.hozAlign, o.definition[e + "CalcFormatter"] && this.table.modExists("format") ? this.genColumn.modules.format = {
@@ -1964,7 +1964,7 @@ const X = class X extends y {
1964
1964
  formatter: this.table.modules.format.lookupFormatter("plaintext"),
1965
1965
  params: {}
1966
1966
  }, this.genColumn.definition.cssClass = o.definition.cssClass;
1967
- var r = new Re(this.genColumn, s);
1967
+ var r = new Ee(this.genColumn, s);
1968
1968
  r.getElement(), r.column = o, r.setWidth(), o.cells.push(r), n.push(r), o.visible || r.hide();
1969
1969
  }), s.cells = n;
1970
1970
  }, s;
@@ -2104,7 +2104,7 @@ class yt extends y {
2104
2104
  var t = [];
2105
2105
  return e.forEach((i, s) => {
2106
2106
  var n, o;
2107
- t.push(i), i instanceof O && (i.create(), n = i.modules.dataTree, !n.index && n.children !== !1 && (o = this.getChildren(i, !1, !0), o.forEach((r) => {
2107
+ t.push(i), i instanceof P && (i.create(), n = i.modules.dataTree, !n.index && n.children !== !1 && (o = this.getChildren(i, !1, !0), o.forEach((r) => {
2108
2108
  r.create(), t.push(r);
2109
2109
  })));
2110
2110
  }), t;
@@ -2122,7 +2122,7 @@ class yt extends y {
2122
2122
  generateChildren(e) {
2123
2123
  var t = [], i = e.getData()[this.field];
2124
2124
  return Array.isArray(i) || (i = [i]), i.forEach((s) => {
2125
- var n = new O(s || {}, this.table.rowManager);
2125
+ var n = new P(s || {}, this.table.rowManager);
2126
2126
  n.create(), n.modules.dataTree.index = e.modules.dataTree.index + 1, n.modules.dataTree.parent = e, n.modules.dataTree.children && (n.modules.dataTree.open = this.startOpen(n.getComponent(), n.modules.dataTree.index)), t.push(n);
2127
2127
  }), t;
2128
2128
  }
@@ -2150,13 +2150,13 @@ class yt extends y {
2150
2150
  getFilteredTreeChildren(e) {
2151
2151
  var t = e.modules.dataTree, i = [], s;
2152
2152
  return t.children && (Array.isArray(t.children) || (t.children = this.generateChildren(e)), this.table.modExists("filter") && this.table.options.dataTreeFilter ? s = this.table.modules.filter.filter(t.children) : s = t.children, s.forEach((n) => {
2153
- n instanceof O && i.push(n);
2153
+ n instanceof P && i.push(n);
2154
2154
  })), i;
2155
2155
  }
2156
2156
  rowDeleting(e) {
2157
2157
  var t = e.modules.dataTree;
2158
2158
  t && t.children && Array.isArray(t.children) && t.children.forEach((i) => {
2159
- i instanceof O && i.wipe();
2159
+ i instanceof P && i.wipe();
2160
2160
  });
2161
2161
  }
2162
2162
  rowDelete(e) {
@@ -2169,12 +2169,12 @@ class yt extends y {
2169
2169
  }
2170
2170
  findChildIndex(e, t) {
2171
2171
  var i = !1;
2172
- return typeof e == "object" ? e instanceof O ? i = e.data : e instanceof Le ? i = e._getSelf().data : typeof HTMLElement < "u" && e instanceof HTMLElement ? t.modules.dataTree && (i = t.modules.dataTree.children.find((s) => s instanceof O ? s.element === e : !1), i && (i = i.data)) : e === null && (i = !1) : typeof e > "u" ? i = !1 : i = t.data[this.field].find((s) => s.data[this.table.options.index] == e), i && (Array.isArray(t.data[this.field]) && (i = t.data[this.field].indexOf(i)), i == -1 && (i = !1)), i;
2172
+ return typeof e == "object" ? e instanceof P ? i = e.data : e instanceof Le ? i = e._getSelf().data : typeof HTMLElement < "u" && e instanceof HTMLElement ? t.modules.dataTree && (i = t.modules.dataTree.children.find((s) => s instanceof P ? s.element === e : !1), i && (i = i.data)) : e === null && (i = !1) : typeof e > "u" ? i = !1 : i = t.data[this.field].find((s) => s.data[this.table.options.index] == e), i && (Array.isArray(t.data[this.field]) && (i = t.data[this.field].indexOf(i)), i == -1 && (i = !1)), i;
2173
2173
  }
2174
2174
  getTreeChildren(e, t, i) {
2175
2175
  var s = e.modules.dataTree, n = [];
2176
2176
  return s && s.children && (Array.isArray(s.children) || (s.children = this.generateChildren(e)), s.children.forEach((o) => {
2177
- o instanceof O && (n.push(t ? o.getComponent() : o), i && this.getTreeChildren(o, t, i).forEach((r) => {
2177
+ o instanceof P && (n.push(t ? o.getComponent() : o), i && this.getTreeChildren(o, t, i).forEach((r) => {
2178
2178
  n.push(r);
2179
2179
  }));
2180
2180
  })), n;
@@ -2297,14 +2297,14 @@ function ki(l, e = {}, t) {
2297
2297
  }), n.head = i, n.body = s, u.autoTable(n), e.documentProcessing && e.documentProcessing(u), t(u.output("arraybuffer"), "application/pdf");
2298
2298
  }
2299
2299
  function Ti(l, e, t) {
2300
- var i = this, s = e.sheetName || "Sheet1", n = this.dependencyRegistry.lookup("XLSX"), o = n.utils.book_new(), r = new F(this), a = "compress" in e ? e.compress : !0, h = e.writeOptions || { bookType: "xlsx", bookSST: !0, compression: a }, d;
2300
+ var i = this, s = e.sheetName || "Sheet1", n = this.dependencyRegistry.lookup("XLSX"), o = n.utils.book_new(), r = new O(this), a = "compress" in e ? e.compress : !0, h = e.writeOptions || { bookType: "xlsx", bookSST: !0, compression: a }, d;
2301
2301
  h.type = "binary", o.SheetNames = [], o.Sheets = {};
2302
2302
  function u() {
2303
- var p = [], g = [], v = {}, m = { s: { c: 0, r: 0 }, e: { c: l[0] ? l[0].columns.reduce((R, L) => R + (L && L.width ? L.width : 1), 0) : 0, r: l.length } };
2304
- return l.forEach((R, L) => {
2303
+ var p = [], g = [], v = {}, m = { s: { c: 0, r: 0 }, e: { c: l[0] ? l[0].columns.reduce((k, L) => k + (L && L.width ? L.width : 1), 0) : 0, r: l.length } };
2304
+ return l.forEach((k, L) => {
2305
2305
  var H = [];
2306
- R.columns.forEach(function(D, x) {
2307
- D ? (H.push(!(D.value instanceof Date) && typeof D.value == "object" ? JSON.stringify(D.value) : D.value), (D.width > 1 || D.height > -1) && (D.height > 1 || D.width > 1) && g.push({ s: { r: L, c: x }, e: { r: L + D.height - 1, c: x + D.width - 1 } })) : H.push("");
2306
+ k.columns.forEach(function(D, R) {
2307
+ D ? (H.push(!(D.value instanceof Date) && typeof D.value == "object" ? JSON.stringify(D.value) : D.value), (D.width > 1 || D.height > -1) && (D.height > 1 || D.width > 1) && g.push({ s: { r: L, c: R }, e: { r: L + D.height - 1, c: R + D.width - 1 } })) : H.push("");
2308
2308
  }), p.push(H);
2309
2309
  }), n.utils.sheet_add_aoa(v, p), v["!ref"] = n.utils.encode_range(m), g.length && (v["!merges"] = g), v;
2310
2310
  }
@@ -2364,7 +2364,7 @@ var Si = {
2364
2364
  xlsx: Ti,
2365
2365
  html: Mi
2366
2366
  };
2367
- const le = class le extends y {
2367
+ const ae = class ae extends y {
2368
2368
  constructor(e) {
2369
2369
  super(e), this.registerTableOption("downloadEncoder", function(t, i) {
2370
2370
  return new Blob([t], { type: i });
@@ -2390,7 +2390,7 @@ const le = class le extends y {
2390
2390
  function r(h, d) {
2391
2391
  n ? n === !0 ? this.triggerDownload(h, d, e, t, !0) : n(h) : this.triggerDownload(h, d, e, t);
2392
2392
  }
2393
- if (typeof e == "function" ? o = e : le.downloaders[e] ? o = le.downloaders[e] : console.warn("Download Error - No such download type found: ", e), o) {
2393
+ if (typeof e == "function" ? o = e : ae.downloaders[e] ? o = ae.downloaders[e] : console.warn("Download Error - No such download type found: ", e), o) {
2394
2394
  var a = this.generateExportList(s);
2395
2395
  o.call(this.table, a, i || {}, r.bind(this));
2396
2396
  }
@@ -2414,9 +2414,9 @@ const le = class le extends y {
2414
2414
  }
2415
2415
  }
2416
2416
  };
2417
- b(le, "moduleName", "download"), //load defaults
2418
- b(le, "downloaders", Si);
2419
- let Ne = le;
2417
+ b(ae, "moduleName", "download"), //load defaults
2418
+ b(ae, "downloaders", Si);
2419
+ let Ne = ae;
2420
2420
  function Se(l, e) {
2421
2421
  var t = e.mask, i = typeof e.maskLetterChar < "u" ? e.maskLetterChar : "A", s = typeof e.maskNumberChar < "u" ? e.maskNumberChar : "9", n = typeof e.maskWildcardChar < "u" ? e.maskWildcardChar : "*";
2422
2422
  function o(r) {
@@ -2627,7 +2627,7 @@ function Oi(l, e, t, i, s) {
2627
2627
  }
2628
2628
  }), h;
2629
2629
  }
2630
- function Ai(l, e, t, i, s) {
2630
+ function Pi(l, e, t, i, s) {
2631
2631
  var n = s.format, o = s.verticalNavigation || "editor", r = n ? window.DateTime || luxon.DateTime : null, a, h = l.getValue(), d = document.createElement("input");
2632
2632
  if (d.type = "time", d.style.padding = "4px", d.style.width = "100%", d.style.boxSizing = "border-box", s.elementAttributes && typeof s.elementAttributes == "object")
2633
2633
  for (let c in s.elementAttributes)
@@ -2676,7 +2676,7 @@ function Ai(l, e, t, i, s) {
2676
2676
  }
2677
2677
  }), d;
2678
2678
  }
2679
- function Pi(l, e, t, i, s) {
2679
+ function Ai(l, e, t, i, s) {
2680
2680
  var n = s.format, o = s.verticalNavigation || "editor", r = n ? this.table.dependencyRegistry.lookup(["luxon", "DateTime"], "DateTime") : null, a, h = l.getValue(), d = document.createElement("input");
2681
2681
  if (d.type = "datetime-local", d.style.padding = "4px", d.style.width = "100%", d.style.boxSizing = "border-box", s.elementAttributes && typeof s.elementAttributes == "object")
2682
2682
  for (let c in s.elementAttributes)
@@ -3101,19 +3101,19 @@ function Bi(l, e, t, i, s) {
3101
3101
  function Vi(l, e, t, i, s) {
3102
3102
  var n = this, o = l.getElement(), r = l.getValue(), a = o.getElementsByTagName("svg").length || 5, h = o.getElementsByTagName("svg")[0] ? o.getElementsByTagName("svg")[0].getAttribute("width") : 14, d = [], u = document.createElement("div"), c = document.createElementNS("http://www.w3.org/2000/svg", "svg");
3103
3103
  function f(m) {
3104
- d.forEach(function(R, L) {
3105
- L < m ? (n.table.browser == "ie" ? R.setAttribute("class", "tabulator-star-active") : R.classList.replace("tabulator-star-inactive", "tabulator-star-active"), R.innerHTML = '<polygon fill="#488CE9" stroke="#014AAE" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>') : (n.table.browser == "ie" ? R.setAttribute("class", "tabulator-star-inactive") : R.classList.replace("tabulator-star-active", "tabulator-star-inactive"), R.innerHTML = '<polygon fill="#010155" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>');
3104
+ d.forEach(function(k, L) {
3105
+ L < m ? (n.table.browser == "ie" ? k.setAttribute("class", "tabulator-star-active") : k.classList.replace("tabulator-star-inactive", "tabulator-star-active"), k.innerHTML = '<polygon fill="#488CE9" stroke="#014AAE" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>') : (n.table.browser == "ie" ? k.setAttribute("class", "tabulator-star-inactive") : k.classList.replace("tabulator-star-active", "tabulator-star-inactive"), k.innerHTML = '<polygon fill="#010155" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>');
3106
3106
  });
3107
3107
  }
3108
3108
  function p(m) {
3109
- var R = document.createElement("span"), L = c.cloneNode(!0);
3110
- d.push(L), R.addEventListener("mouseenter", function(H) {
3109
+ var k = document.createElement("span"), L = c.cloneNode(!0);
3110
+ d.push(L), k.addEventListener("mouseenter", function(H) {
3111
3111
  H.stopPropagation(), H.stopImmediatePropagation(), f(m);
3112
- }), R.addEventListener("mousemove", function(H) {
3112
+ }), k.addEventListener("mousemove", function(H) {
3113
3113
  H.stopPropagation(), H.stopImmediatePropagation();
3114
- }), R.addEventListener("click", function(H) {
3114
+ }), k.addEventListener("click", function(H) {
3115
3115
  H.stopPropagation(), H.stopImmediatePropagation(), t(m), o.blur();
3116
- }), R.appendChild(L), u.appendChild(R);
3116
+ }), k.appendChild(L), u.appendChild(k);
3117
3117
  }
3118
3118
  function g(m) {
3119
3119
  r = m, f(m);
@@ -3230,17 +3230,17 @@ var Gi = {
3230
3230
  number: Hi,
3231
3231
  range: Fi,
3232
3232
  date: Oi,
3233
- time: Ai,
3234
- datetime: Pi,
3233
+ time: Pi,
3234
+ datetime: Ai,
3235
3235
  list: Bi,
3236
3236
  star: Vi,
3237
3237
  progress: Ni,
3238
3238
  tickCross: Ii,
3239
3239
  adaptable: Wi
3240
3240
  };
3241
- const be = class be extends y {
3241
+ const ge = class ge extends y {
3242
3242
  constructor(e) {
3243
- super(e), this.currentCell = !1, this.mouseClick = !1, this.recursionBlock = !1, this.invalidEdit = !1, this.editedCells = [], this.convertEmptyValues = !1, this.editors = be.editors, this.registerTableOption("editTriggerEvent", "focus"), this.registerTableOption("editorEmptyValue"), this.registerTableOption("editorEmptyValueFunc", this.emptyValueCheck.bind(this)), this.registerColumnOption("editable"), this.registerColumnOption("editor"), this.registerColumnOption("editorParams"), this.registerColumnOption("editorEmptyValue"), this.registerColumnOption("editorEmptyValueFunc"), this.registerColumnOption("cellEditing"), this.registerColumnOption("cellEdited"), this.registerColumnOption("cellEditCancelled"), this.registerTableFunction("getEditedCells", this.getEditedCells.bind(this)), this.registerTableFunction("clearCellEdited", this.clearCellEdited.bind(this)), this.registerTableFunction("navigatePrev", this.navigatePrev.bind(this)), this.registerTableFunction("navigateNext", this.navigateNext.bind(this)), this.registerTableFunction("navigateLeft", this.navigateLeft.bind(this)), this.registerTableFunction("navigateRight", this.navigateRight.bind(this)), this.registerTableFunction("navigateUp", this.navigateUp.bind(this)), this.registerTableFunction("navigateDown", this.navigateDown.bind(this)), this.registerComponentFunction("cell", "isEdited", this.cellIsEdited.bind(this)), this.registerComponentFunction("cell", "clearEdited", this.clearEdited.bind(this)), this.registerComponentFunction("cell", "edit", this.editCell.bind(this)), this.registerComponentFunction("cell", "cancelEdit", this.cellCancelEdit.bind(this)), this.registerComponentFunction("cell", "navigatePrev", this.navigatePrev.bind(this)), this.registerComponentFunction("cell", "navigateNext", this.navigateNext.bind(this)), this.registerComponentFunction("cell", "navigateLeft", this.navigateLeft.bind(this)), this.registerComponentFunction("cell", "navigateRight", this.navigateRight.bind(this)), this.registerComponentFunction("cell", "navigateUp", this.navigateUp.bind(this)), this.registerComponentFunction("cell", "navigateDown", this.navigateDown.bind(this));
3243
+ super(e), this.currentCell = !1, this.mouseClick = !1, this.recursionBlock = !1, this.invalidEdit = !1, this.editedCells = [], this.convertEmptyValues = !1, this.editors = ge.editors, this.registerTableOption("editTriggerEvent", "focus"), this.registerTableOption("editorEmptyValue"), this.registerTableOption("editorEmptyValueFunc", this.emptyValueCheck.bind(this)), this.registerColumnOption("editable"), this.registerColumnOption("editor"), this.registerColumnOption("editorParams"), this.registerColumnOption("editorEmptyValue"), this.registerColumnOption("editorEmptyValueFunc"), this.registerColumnOption("cellEditing"), this.registerColumnOption("cellEdited"), this.registerColumnOption("cellEditCancelled"), this.registerTableFunction("getEditedCells", this.getEditedCells.bind(this)), this.registerTableFunction("clearCellEdited", this.clearCellEdited.bind(this)), this.registerTableFunction("navigatePrev", this.navigatePrev.bind(this)), this.registerTableFunction("navigateNext", this.navigateNext.bind(this)), this.registerTableFunction("navigateLeft", this.navigateLeft.bind(this)), this.registerTableFunction("navigateRight", this.navigateRight.bind(this)), this.registerTableFunction("navigateUp", this.navigateUp.bind(this)), this.registerTableFunction("navigateDown", this.navigateDown.bind(this)), this.registerComponentFunction("cell", "isEdited", this.cellIsEdited.bind(this)), this.registerComponentFunction("cell", "clearEdited", this.clearEdited.bind(this)), this.registerComponentFunction("cell", "edit", this.editCell.bind(this)), this.registerComponentFunction("cell", "cancelEdit", this.cellCancelEdit.bind(this)), this.registerComponentFunction("cell", "navigatePrev", this.navigatePrev.bind(this)), this.registerComponentFunction("cell", "navigateNext", this.navigateNext.bind(this)), this.registerComponentFunction("cell", "navigateLeft", this.navigateLeft.bind(this)), this.registerComponentFunction("cell", "navigateRight", this.navigateRight.bind(this)), this.registerComponentFunction("cell", "navigateUp", this.navigateUp.bind(this)), this.registerComponentFunction("cell", "navigateDown", this.navigateDown.bind(this));
3244
3244
  }
3245
3245
  initialize() {
3246
3246
  this.subscribe("cell-init", this.bindEditor.bind(this)), this.subscribe("cell-delete", this.clearEdited.bind(this)), this.subscribe("cell-value-changed", this.updateCellClass.bind(this)), this.subscribe("column-layout", this.initializeColumnCheck.bind(this)), this.subscribe("column-delete", this.columnDeleteCheck.bind(this)), this.subscribe("row-deleting", this.rowDeleteCheck.bind(this)), this.subscribe("row-layout", this.rowEditableCheck.bind(this)), this.subscribe("data-refreshing", this.cancelEdit.bind(this)), this.subscribe("clipboard-paste", this.pasteBlocker.bind(this)), this.subscribe("keybinding-nav-prev", this.navigatePrev.bind(this, void 0)), this.subscribe("keybinding-nav-next", this.keybindingNavigateNext.bind(this)), this.subscribe("keybinding-nav-up", this.navigateUp.bind(this, void 0)), this.subscribe("keybinding-nav-down", this.navigateDown.bind(this, void 0)), Object.keys(this.table.options).includes("editorEmptyValue") && (this.convertEmptyValues = !0);
@@ -3458,8 +3458,8 @@ const be = class be extends y {
3458
3458
  }
3459
3459
  function c(m) {
3460
3460
  if (s.currentCell === e && !a) {
3461
- var R = s.chain("edit-success", [e, m], !0, !0);
3462
- return R === !0 || s.table.options.validationMode === "highlight" ? (a = !0, s.clearEditor(), e.modules.edit || (e.modules.edit = {}), e.modules.edit.edited = !0, s.editedCells.indexOf(e) == -1 && s.editedCells.push(e), m = s.transformEmptyValues(m, e), e.setValue(m, !0), R === !0) : (a = !0, s.invalidEdit = !0, s.focusCellNoEvent(e, !0), o(), setTimeout(() => {
3461
+ var k = s.chain("edit-success", [e, m], !0, !0);
3462
+ return k === !0 || s.table.options.validationMode === "highlight" ? (a = !0, s.clearEditor(), e.modules.edit || (e.modules.edit = {}), e.modules.edit.edited = !0, s.editedCells.indexOf(e) == -1 && s.editedCells.push(e), m = s.transformEmptyValues(m, e), e.setValue(m, !0), k === !0) : (a = !0, s.invalidEdit = !0, s.focusCellNoEvent(e, !0), o(), setTimeout(() => {
3463
3463
  a = !1;
3464
3464
  }, 10), !1);
3465
3465
  }
@@ -3510,9 +3510,9 @@ const be = class be extends y {
3510
3510
  e.modules.edit && e.modules.edit.edited && (e.modules.edit.edited = !1, this.dispatch("edit-edited-clear", e)), t = this.editedCells.indexOf(e), t > -1 && this.editedCells.splice(t, 1);
3511
3511
  }
3512
3512
  };
3513
- b(be, "moduleName", "edit"), //load defaults
3514
- b(be, "editors", Gi);
3515
- let Ie = be;
3513
+ b(ge, "moduleName", "edit"), //load defaults
3514
+ b(ge, "editors", Gi);
3515
+ let Ie = ge;
3516
3516
  class ht {
3517
3517
  constructor(e, t, i, s) {
3518
3518
  this.type = e, this.columns = t, this.component = i || !1, this.indent = s || 0;
@@ -4035,8 +4035,8 @@ const j = class j extends y {
4035
4035
  }), h.addEventListener("click", function(m) {
4036
4036
  m.stopPropagation(), h.focus();
4037
4037
  }), h.addEventListener("focus", (m) => {
4038
- var R = this.table.columnManager.contentsElement.scrollLeft, L = this.table.rowManager.element.scrollLeft;
4039
- R !== L && (this.table.rowManager.scrollHorizontal(R), this.table.columnManager.scrollHorizontal(R));
4038
+ var k = this.table.columnManager.contentsElement.scrollLeft, L = this.table.rowManager.element.scrollLeft;
4039
+ k !== L && (this.table.rowManager.scrollHorizontal(k), this.table.columnManager.scrollHorizontal(k));
4040
4040
  }), u = !1, c = function(m) {
4041
4041
  u && clearTimeout(u), u = setTimeout(function() {
4042
4042
  n(h.value);
@@ -4768,7 +4768,7 @@ class gs {
4768
4768
  return this._group.groupManager.table;
4769
4769
  }
4770
4770
  }
4771
- class re {
4771
+ class oe {
4772
4772
  constructor(e, t, i, s, n, o, r) {
4773
4773
  this.groupManager = e, this.parent = t, this.key = s, this.level = i, this.field = n, this.hasSubGroups = i < e.groupIDLookups.length - 1, this.addRow = this.hasSubGroups ? this._addRowToGroup : this._addRow, this.type = "group", this.old = r, this.rows = [], this.groups = [], this.groupList = [], this.generator = o, this.element = !1, this.elementContents = !1, this.height = 0, this.outerHeight = 0, this.initialized = !1, this.calcs = {}, this.initialized = !1, this.modules = {}, this.arrowElement = !1, this.visible = r ? r.visible : typeof e.startOpen[i] < "u" ? e.startOpen[i] : e.startOpen[0], this.component = null, this.createElements(), this.addBindings(), this.createValueGroups();
4774
4774
  }
@@ -4798,7 +4798,7 @@ class re {
4798
4798
  }));
4799
4799
  }
4800
4800
  _createGroup(e, t) {
4801
- var i = t + "_" + e, s = new re(this.groupManager, this, t, e, this.groupManager.groupIDLookups[t].field, this.groupManager.headerGenerator[t] || this.groupManager.headerGenerator[0], this.old ? this.old.groups[i] : !1);
4801
+ var i = t + "_" + e, s = new oe(this.groupManager, this, t, e, this.groupManager.groupIDLookups[t].field, this.groupManager.headerGenerator[t] || this.groupManager.headerGenerator[0], this.old ? this.old.groups[i] : !1);
4802
4802
  this.groups[i] = s, this.groupList.push(s);
4803
4803
  }
4804
4804
  _addRowToGroup(e) {
@@ -5083,8 +5083,8 @@ class xt extends y {
5083
5083
  ///////////////////////////////////
5084
5084
  rowMoving(e, t, i) {
5085
5085
  if (this.table.options.groupBy) {
5086
- !i && t instanceof re && (t = this.table.rowManager.prevDisplayRow(e) || t);
5087
- var s = t instanceof re ? t : t.modules.group, n = e instanceof re ? e : e.modules.group;
5086
+ !i && t instanceof oe && (t = this.table.rowManager.prevDisplayRow(e) || t);
5087
+ var s = t instanceof oe ? t : t.modules.group, n = e instanceof oe ? e : e.modules.group;
5088
5088
  s === n ? this.table.rowManager.moveRowInArray(s.rows, e, t, i) : (n && n.removeRow(e), s.insertRow(e, t, i));
5089
5089
  }
5090
5090
  }
@@ -5156,7 +5156,7 @@ class xt extends y {
5156
5156
  }
5157
5157
  createGroup(e, t, i) {
5158
5158
  var s = t + "_" + e, n;
5159
- i = i || [], n = new re(this, !1, t, e, this.groupIDLookups[0].field, this.headerGenerator[0], i[s]), this.groups[s] = n, this.groupList.push(n);
5159
+ i = i || [], n = new oe(this, !1, t, e, this.groupIDLookups[0].field, this.headerGenerator[0], i[s]), this.groups[s] = n, this.groupList.push(n);
5160
5160
  }
5161
5161
  assignRowToExistingGroup(e, t) {
5162
5162
  var i = this.groupIDLookups[0].func(e.getData()), s = "0_" + i;
@@ -5308,9 +5308,9 @@ const q = class q extends y {
5308
5308
  //rebind rows to new element after deletion
5309
5309
  _rebindRow(e, t) {
5310
5310
  this.history.forEach(function(i) {
5311
- if (i.component instanceof O)
5311
+ if (i.component instanceof P)
5312
5312
  i.component === e && (i.component = t);
5313
- else if (i.component instanceof Re && i.component.row === e) {
5313
+ else if (i.component instanceof Ee && i.component.row === e) {
5314
5314
  var s = i.component.column.getField();
5315
5315
  s && (i.component = t.getCell(s));
5316
5316
  }
@@ -5432,7 +5432,7 @@ var Ts = {
5432
5432
  array: xs,
5433
5433
  xlsx: ks
5434
5434
  };
5435
- const ve = class ve extends y {
5435
+ const be = class be extends y {
5436
5436
  constructor(e) {
5437
5437
  super(e), this.registerTableOption("importFormat"), this.registerTableOption("importReader", "text"), this.registerTableOption("importHeaderTransform"), this.registerTableOption("importValueTransform"), this.registerTableOption("importDataValidator"), this.registerTableOption("importFileValidator");
5438
5438
  }
@@ -5447,7 +5447,7 @@ const ve = class ve extends y {
5447
5447
  }
5448
5448
  lookupImporter(e) {
5449
5449
  var t;
5450
- return e || (e = this.table.options.importFormat), typeof e == "string" ? t = ve.importers[e] : t = e, t || console.error("Import Error - Importer not found:", e), t;
5450
+ return e || (e = this.table.options.importFormat), typeof e == "string" ? t = be.importers[e] : t = e, t || console.error("Import Error - Importer not found:", e), t;
5451
5451
  }
5452
5452
  importFromFile(e, t, i) {
5453
5453
  var s = this.lookupImporter(e);
@@ -5554,9 +5554,9 @@ const ve = class ve extends y {
5554
5554
  return this.dispatch("import-imported", e), this.dispatchExternal("importImported", e), this.table.dataLoader.clearAlert(), this.table.setData(e);
5555
5555
  }
5556
5556
  };
5557
- b(ve, "moduleName", "import"), //load defaults
5558
- b(ve, "importers", Ts);
5559
- let $e = ve;
5557
+ b(be, "moduleName", "import"), //load defaults
5558
+ b(be, "importers", Ts);
5559
+ let $e = be;
5560
5560
  class Tt extends y {
5561
5561
  constructor(e) {
5562
5562
  super(e), this.eventMap = {
@@ -5704,7 +5704,7 @@ class Tt extends y {
5704
5704
  }
5705
5705
  dispatchEvent(e, t, i) {
5706
5706
  var s = i.getComponent(), n;
5707
- this.columnSubscribers[e] && (i instanceof Re ? n = i.column.definition[e] : i instanceof se && (n = i.definition[e]), n && n(t, s)), this.dispatchExternal(e, t, s);
5707
+ this.columnSubscribers[e] && (i instanceof Ee ? n = i.column.definition[e] : i instanceof se && (n = i.definition[e]), n && n(t, s)), this.dispatchExternal(e, t, s);
5708
5708
  }
5709
5709
  }
5710
5710
  b(Tt, "moduleName", "interaction");
@@ -6168,7 +6168,7 @@ b(te, "moduleName", "moveRow"), //load defaults
6168
6168
  b(te, "senders", Ss), b(te, "receivers", Ds);
6169
6169
  let Je = te;
6170
6170
  var zs = {};
6171
- const he = class he extends y {
6171
+ const le = class le extends y {
6172
6172
  constructor(e) {
6173
6173
  super(e), this.allowedTypes = ["", "data", "edit", "clipboard", "import"], this.enabled = !0, this.registerColumnOption("mutator"), this.registerColumnOption("mutatorParams"), this.registerColumnOption("mutatorData"), this.registerColumnOption("mutatorDataParams"), this.registerColumnOption("mutatorEdit"), this.registerColumnOption("mutatorEditParams"), this.registerColumnOption("mutatorClipboard"), this.registerColumnOption("mutatorClipboardParams"), this.registerColumnOption("mutatorImport"), this.registerColumnOption("mutatorImportParams"), this.registerColumnOption("mutateLink");
6174
6174
  }
@@ -6193,7 +6193,7 @@ const he = class he extends y {
6193
6193
  var t = !1;
6194
6194
  switch (typeof e) {
6195
6195
  case "string":
6196
- he.mutators[e] ? t = he.mutators[e] : console.warn("Mutator Error - No such mutator found, ignoring: ", e);
6196
+ le.mutators[e] ? t = le.mutators[e] : console.warn("Mutator Error - No such mutator found, ignoring: ", e);
6197
6197
  break;
6198
6198
  case "function":
6199
6199
  t = e;
@@ -6232,9 +6232,9 @@ const he = class he extends y {
6232
6232
  this.enabled = !1;
6233
6233
  }
6234
6234
  };
6235
- b(he, "moduleName", "mutator"), //load defaults
6236
- b(he, "mutators", zs);
6237
- let Ke = he;
6235
+ b(le, "moduleName", "mutator"), //load defaults
6236
+ b(le, "mutators", zs);
6237
+ let Ke = le;
6238
6238
  function Hs(l, e, t, i, s) {
6239
6239
  var n = document.createElement("span"), o = document.createElement("span"), r = document.createElement("span"), a = document.createElement("span"), h = document.createElement("span"), d = document.createElement("span");
6240
6240
  return this.table.modules.localize.langBind("pagination|counter|showing", (u) => {
@@ -6259,7 +6259,7 @@ var Os = {
6259
6259
  rows: Hs,
6260
6260
  pages: Fs
6261
6261
  };
6262
- const we = class we extends y {
6262
+ const ve = class ve extends y {
6263
6263
  constructor(e) {
6264
6264
  super(e), this.mode = "local", this.progressiveLoad = !1, this.element = null, this.pageCounterElement = null, this.pageCounter = null, this.size = 0, this.page = 1, this.count = 5, this.max = 1, this.remoteRowCountEstimate = null, this.initialLoad = !0, this.dataChanging = !1, this.pageSizes = [], this.registerTableOption("pagination", !1), this.registerTableOption("paginationMode", "local"), this.registerTableOption("paginationSize", !1), this.registerTableOption("paginationInitialPage", 1), this.registerTableOption("paginationCounter", !1), this.registerTableOption("paginationCounterElement", !1), this.registerTableOption("paginationButtonCount", 5), this.registerTableOption("paginationSizeSelector", !1), this.registerTableOption("paginationElement", !1), this.registerTableOption("paginationAddRow", "page"), this.registerTableOption("paginationOutOfRange", !1), this.registerTableOption("progressiveLoad", !1), this.registerTableOption("progressiveLoadDelay", 0), this.registerTableOption("progressiveLoadScrollMargin", 0), this.registerTableFunction("setMaxPage", this.setMaxPage.bind(this)), this.registerTableFunction("setPage", this.setPage.bind(this)), this.registerTableFunction("setPageToRow", this.userSetPageToRow.bind(this)), this.registerTableFunction("setPageSize", this.userSetPageSize.bind(this)), this.registerTableFunction("getPageSize", this.getPageSize.bind(this)), this.registerTableFunction("previousPage", this.previousPage.bind(this)), this.registerTableFunction("nextPage", this.nextPage.bind(this)), this.registerTableFunction("getPage", this.getPage.bind(this)), this.registerTableFunction("getPageMax", this.getPageMax.bind(this)), this.registerComponentFunction("row", "pageTo", this.setPageToRow.bind(this));
6265
6265
  }
@@ -6330,7 +6330,7 @@ const we = class we extends y {
6330
6330
  }
6331
6331
  initializePageCounter() {
6332
6332
  var e = this.table.options.paginationCounter, t = null;
6333
- e && (typeof e == "function" ? t = e : t = we.pageCounters[e], t ? (this.pageCounter = t, this.pageCounterElement = document.createElement("span"), this.pageCounterElement.classList.add("tabulator-page-counter")) : console.warn("Pagination Error - No such page counter found: ", e));
6333
+ e && (typeof e == "function" ? t = e : t = ve.pageCounters[e], t ? (this.pageCounter = t, this.pageCounterElement = document.createElement("span"), this.pageCounterElement.classList.add("tabulator-page-counter")) : console.warn("Pagination Error - No such page counter found: ", e));
6334
6334
  }
6335
6335
  //setup pagination
6336
6336
  initializePaginator(e) {
@@ -6526,10 +6526,10 @@ const we = class we extends y {
6526
6526
  Math.ceil(e.clientWidth) - e.scrollWidth < 0 ? this.pagesElement.style.display = "none" : (this.pagesElement.style.display = "", Math.ceil(e.clientWidth) - e.scrollWidth < 0 && (this.pagesElement.style.display = "none"));
6527
6527
  }
6528
6528
  };
6529
- b(we, "moduleName", "page"), //load defaults
6530
- b(we, "pageCounters", Os);
6531
- let qe = we;
6532
- var As = {
6529
+ b(ve, "moduleName", "page"), //load defaults
6530
+ b(ve, "pageCounters", Os);
6531
+ let qe = ve;
6532
+ var Ps = {
6533
6533
  local: function(l, e) {
6534
6534
  var t = localStorage.getItem(l + "-" + e);
6535
6535
  return t ? JSON.parse(t) : !1;
@@ -6538,7 +6538,7 @@ var As = {
6538
6538
  var t = document.cookie, i = l + "-" + e, s = t.indexOf(i + "="), n, o;
6539
6539
  return s > -1 && (t = t.slice(s), n = t.indexOf(";"), n > -1 && (t = t.slice(0, n)), o = t.replace(i + "=", "")), o ? JSON.parse(o) : !1;
6540
6540
  }
6541
- }, Ps = {
6541
+ }, As = {
6542
6542
  local: function(l, e, t) {
6543
6543
  localStorage.setItem(l + "-" + e, JSON.stringify(t));
6544
6544
  },
@@ -6705,7 +6705,7 @@ const A = class A extends y {
6705
6705
  }
6706
6706
  };
6707
6707
  b(A, "moduleName", "persistence"), b(A, "moduleInitOrder", -10), //load defaults
6708
- b(A, "readers", As), b(A, "writers", Ps);
6708
+ b(A, "readers", Ps), b(A, "writers", As);
6709
6709
  let Ye = A;
6710
6710
  class St extends y {
6711
6711
  constructor(e) {
@@ -7536,7 +7536,7 @@ class Is {
7536
7536
  this._range.destroyedGuard("remove") && this._range.destroy(!0);
7537
7537
  }
7538
7538
  }
7539
- class Ws extends F {
7539
+ class Ws extends O {
7540
7540
  constructor(e, t, i, s) {
7541
7541
  super(e), this.rangeManager = t, this.element = null, this.initialized = !1, this.initializing = {
7542
7542
  start: !1,
@@ -8422,7 +8422,7 @@ class rn {
8422
8422
  this.columnCount = e;
8423
8423
  }
8424
8424
  }
8425
- class At {
8425
+ class Pt {
8426
8426
  constructor(e) {
8427
8427
  return this._sheet = e, new Proxy(this, {
8428
8428
  get: function(t, i, s) {
@@ -8464,7 +8464,7 @@ class At {
8464
8464
  return this._sheet.setColumns(e);
8465
8465
  }
8466
8466
  }
8467
- class dt extends F {
8467
+ class dt extends O {
8468
8468
  constructor(e, t) {
8469
8469
  super(e.table), this.spreadsheetManager = e, this.definition = t, this.title = this.definition.title || "", this.key = this.definition.key || this.definition.title, this.rowCount = this.definition.rows, this.columnCount = this.definition.columns, this.data = this.definition.data || [], this.element = null, this.isActive = !1, this.grid = new rn(this.columnCount, this.rowCount), this.defaultColumnDefinition = { width: 100, headerHozAlign: "center", headerSort: !1 }, this.columnDefinition = Object.assign(this.defaultColumnDefinition, this.options("spreadsheetColumnDefinition")), this.columnDefs = [], this.rowDefs = [], this.columnFields = [], this.columns = [], this.rows = [], this.scrollTop = null, this.scrollLeft = null, this.initialize(), this.dispatchExternal("sheetAdded", this.getComponent());
8470
8470
  }
@@ -8509,7 +8509,7 @@ class dt extends F {
8509
8509
  //////// Helper Functions /////////
8510
8510
  ///////////////////////////////////
8511
8511
  getComponent() {
8512
- return new At(this);
8512
+ return new Pt(this);
8513
8513
  }
8514
8514
  getDefinition() {
8515
8515
  return {
@@ -8554,7 +8554,7 @@ class dt extends F {
8554
8554
  this.spreadsheetManager.loadSheet(this);
8555
8555
  }
8556
8556
  }
8557
- class Pt extends y {
8557
+ class At extends y {
8558
8558
  constructor(e) {
8559
8559
  super(e), this.sheets = [], this.element = null, this.registerTableOption("spreadsheet", !1), this.registerTableOption("spreadsheetRows", 50), this.registerTableOption("spreadsheetColumns", 50), this.registerTableOption("spreadsheetColumnDefinition", {}), this.registerTableOption("spreadsheetOutputFull", !1), this.registerTableOption("spreadsheetData", !1), this.registerTableOption("spreadsheetSheets", !1), this.registerTableOption("spreadsheetSheetTabs", !1), this.registerTableOption("spreadsheetSheetTabsElement", !1), this.registerTableFunction("setSheets", this.setSheets.bind(this)), this.registerTableFunction("addSheet", this.addSheet.bind(this)), this.registerTableFunction("getSheets", this.getSheets.bind(this)), this.registerTableFunction("getSheetDefinitions", this.getSheetDefinitions.bind(this)), this.registerTableFunction("setSheetData", this.setSheetData.bind(this)), this.registerTableFunction("getSheet", this.getSheet.bind(this)), this.registerTableFunction("getSheetData", this.getSheetData.bind(this)), this.registerTableFunction("clearSheet", this.clearSheet.bind(this)), this.registerTableFunction("removeSheet", this.removeSheetFunc.bind(this)), this.registerTableFunction("activeSheet", this.activeSheetFunc.bind(this));
8560
8560
  }
@@ -8615,7 +8615,7 @@ Data: `, e), !1;
8615
8615
  this.sheets.length > 1 ? t > -1 && (this.sheets.splice(t, 1), e.destroy(), this.activeSheet === e && (i = this.sheets[t - 1] || this.sheets[0], i ? this.loadSheet(i) : this.activeSheet = null)) : console.warn("Unable to remove sheet, at least one sheet must be active");
8616
8616
  }
8617
8617
  lookupSheet(e) {
8618
- return e ? e instanceof dt ? e : e instanceof At ? e._sheet : this.sheets.find((t) => t.key === e) || !1 : this.activeSheet;
8618
+ return e ? e instanceof dt ? e : e instanceof Pt ? e._sheet : this.sheets.find((t) => t.key === e) || !1 : this.activeSheet;
8619
8619
  }
8620
8620
  ///////////////////////////////////
8621
8621
  //////// Public Functions /////////
@@ -8658,7 +8658,7 @@ Data: `, e), !1;
8658
8658
  return t ? this.loadSheet(t) : !1;
8659
8659
  }
8660
8660
  }
8661
- b(Pt, "moduleName", "spreadsheet");
8661
+ b(At, "moduleName", "spreadsheet");
8662
8662
  class _t extends y {
8663
8663
  constructor(e) {
8664
8664
  super(e), this.tooltipSubscriber = null, this.headerSubscriber = null, this.timeout = null, this.popupInstance = null, this.registerTableOption("tooltipDelay", 300), this.registerColumnOption("tooltip"), this.registerColumnOption("headerTooltip");
@@ -8686,7 +8686,7 @@ class _t extends y {
8686
8686
  function r(a) {
8687
8687
  n = a;
8688
8688
  }
8689
- typeof i == "function" && (i = i(e, t.getComponent(), r)), i instanceof HTMLElement ? s = i : (s = document.createElement("div"), i === !0 && (t instanceof Re ? i = t.value : t.definition.field ? this.langBind("columns|" + t.definition.field, (a) => {
8689
+ typeof i == "function" && (i = i(e, t.getComponent(), r)), i instanceof HTMLElement ? s = i : (s = document.createElement("div"), i === !0 && (t instanceof Ee ? i = t.value : t.definition.field ? this.langBind("columns|" + t.definition.field, (a) => {
8690
8690
  s.innerHTML = i = a || t.definition.title;
8691
8691
  }) : i = t.definition.title), s.innerHTML = i), (i || i === 0 || i === !1) && (s.classList.add("tabulator-tooltip"), s.addEventListener("mousemove", (a) => a.preventDefault()), this.popupInstance = this.popup(s), typeof n == "function" && this.popupInstance.renderCallback(n), o = this.popupInstance.containerEventCoords(e), this.popupInstance.show(o.x + 15, o.y + 15).hideOnBlur(() => {
8692
8692
  this.dispatchExternal("TooltipClosed", t.getComponent()), this.popupInstance = null;
@@ -8768,7 +8768,7 @@ var an = {
8768
8768
  return e !== "" && e !== null && typeof e < "u";
8769
8769
  }
8770
8770
  };
8771
- const Ce = class Ce extends y {
8771
+ const we = class we extends y {
8772
8772
  constructor(e) {
8773
8773
  super(e), this.invalidCells = [], this.registerTableOption("validationMode", "blocking"), this.registerColumnOption("validator"), this.registerTableFunction("getInvalidCells", this.getInvalidCells.bind(this)), this.registerTableFunction("clearCellValidation", this.userClearCellValidation.bind(this)), this.registerTableFunction("validate", this.userValidate.bind(this)), this.registerComponentFunction("cell", "isValid", this.cellIsValid.bind(this)), this.registerComponentFunction("cell", "clearValidation", this.clearValidation.bind(this)), this.registerComponentFunction("cell", "validate", this.cellValidate.bind(this)), this.registerComponentFunction("column", "validate", this.columnValidate.bind(this)), this.registerComponentFunction("row", "validate", this.rowValidate.bind(this));
8774
8774
  }
@@ -8858,7 +8858,7 @@ const Ce = class Ce extends y {
8858
8858
  }
8859
8859
  }
8860
8860
  _buildValidator(e, t) {
8861
- var i = typeof e == "function" ? e : Ce.validators[e];
8861
+ var i = typeof e == "function" ? e : we.validators[e];
8862
8862
  return i ? {
8863
8863
  type: typeof e == "function" ? "function" : e,
8864
8864
  func: i,
@@ -8885,9 +8885,9 @@ const Ce = class Ce extends y {
8885
8885
  e.modules.validate && e.modules.validate.invalid && (e.getElement().classList.remove("tabulator-validation-fail"), e.modules.validate.invalid = !1, t = this.invalidCells.indexOf(e), t > -1 && this.invalidCells.splice(t, 1));
8886
8886
  }
8887
8887
  };
8888
- b(Ce, "moduleName", "validate"), //load defaults
8889
- b(Ce, "validators", an);
8890
- let tt = Ce;
8888
+ b(we, "moduleName", "validate"), //load defaults
8889
+ b(we, "validators", an);
8890
+ let tt = we;
8891
8891
  var Fe = /* @__PURE__ */ Object.freeze({
8892
8892
  __proto__: null,
8893
8893
  AccessorModule: Oe,
@@ -8924,7 +8924,7 @@ var Fe = /* @__PURE__ */ Object.freeze({
8924
8924
  SelectRangeModule: ke,
8925
8925
  SelectRowModule: Qe,
8926
8926
  SortModule: et,
8927
- SpreadsheetModule: Pt,
8927
+ SpreadsheetModule: At,
8928
8928
  TooltipModule: _t,
8929
8929
  ValidateModule: tt
8930
8930
  }), ln = {
@@ -9009,7 +9009,7 @@ class Bt {
9009
9009
  return i;
9010
9010
  }
9011
9011
  }
9012
- class De extends F {
9012
+ class De extends O {
9013
9013
  constructor(e) {
9014
9014
  super(e), this.elementVertical = e.rowManager.element, this.elementHorizontal = e.columnManager.element, this.tableElement = e.rowManager.tableElement, this.verticalFillMode = "fit";
9015
9015
  }
@@ -9339,7 +9339,7 @@ class dn extends De {
9339
9339
  }
9340
9340
  }
9341
9341
  }
9342
- class un extends F {
9342
+ class un extends O {
9343
9343
  constructor(e) {
9344
9344
  super(e), this.blockHozScrollEvent = !1, this.headersElement = null, this.contentsElement = null, this.rowHeader = null, this.element = null, this.columns = [], this.columnsByIndex = [], this.columnsByField = {}, this.scrollLeft = 0, this.optionsList = new Bt(this.table, "column definition", Ct), this.redrawBlock = !1, this.redrawBlockUpdate = null, this.renderer = null;
9345
9345
  }
@@ -9742,7 +9742,7 @@ class fn extends De {
9742
9742
  //////////////////////////////////////
9743
9743
  //full virtual render
9744
9744
  _virtualRenderFill(e, t, i) {
9745
- var s = this.tableElement, n = this.elementVertical, o = 0, r = 0, a = 0, h = 0, d = 0, u = 0, c = this.rows(), f = c.length, p = 0, g, v, m = [], R = 0, L = 0, H = this.table.rowManager.fixedHeight, D = this.elementVertical.clientHeight, x = this.table.options.rowHeight, M = !0;
9745
+ var s = this.tableElement, n = this.elementVertical, o = 0, r = 0, a = 0, h = 0, d = 0, u = 0, c = this.rows(), f = c.length, p = 0, g, v, m = [], k = 0, L = 0, H = this.table.rowManager.fixedHeight, D = this.elementVertical.clientHeight, R = this.table.options.rowHeight, x = !0;
9746
9746
  if (e = e || 0, i = i || 0, !e)
9747
9747
  this.clear();
9748
9748
  else {
@@ -9750,7 +9750,7 @@ class fn extends De {
9750
9750
  h = (f - e + 1) * this.vDomRowHeight, h < D && (e -= Math.ceil((D - h) / this.vDomRowHeight), e < 0 && (e = 0)), o = Math.min(Math.max(Math.floor(this.vDomWindowBuffer / this.vDomRowHeight), this.vDomWindowMinMarginRows), e), e -= o;
9751
9751
  }
9752
9752
  if (f && z.elVisible(this.elementVertical)) {
9753
- for (this.vDomTop = e, this.vDomBottom = e - 1, H || this.table.options.maxHeight ? (x && (L = D / x + this.vDomWindowBuffer / x), L = Math.max(this.vDomWindowMinTotalRows, Math.ceil(L))) : L = f; (L == f || r <= D + this.vDomWindowBuffer || R < this.vDomWindowMinTotalRows) && this.vDomBottom < f - 1; ) {
9753
+ for (this.vDomTop = e, this.vDomBottom = e - 1, H || this.table.options.maxHeight ? (R && (L = D / R + this.vDomWindowBuffer / R), L = Math.max(this.vDomWindowMinTotalRows, Math.ceil(L))) : L = f; (L == f || r <= D + this.vDomWindowBuffer || k < this.vDomWindowMinTotalRows) && this.vDomBottom < f - 1; ) {
9754
9754
  for (m = [], v = document.createDocumentFragment(), u = 0; u < L && this.vDomBottom < f - 1; )
9755
9755
  p = this.vDomBottom + 1, g = c[p], this.styleRow(g, p), g.initialize(!1, !0), !g.heightInitialized && !this.table.options.rowHeight && g.clearCellHeight(), v.appendChild(g.getElement()), m.push(g), this.vDomBottom++, u++;
9756
9756
  if (!m.length)
@@ -9760,10 +9760,10 @@ class fn extends De {
9760
9760
  }), m.forEach((w) => {
9761
9761
  w.heightInitialized || w.setCellHeight();
9762
9762
  }), m.forEach((w) => {
9763
- a = w.getHeight(), R < o ? d += a : r += a, a > this.vDomWindowBuffer && (this.vDomWindowBuffer = a * 2), R++;
9764
- }), M = this.table.rowManager.adjustTableSize(), D = this.elementVertical.clientHeight, M && (H || this.table.options.maxHeight) && (x = r / R, L = Math.max(this.vDomWindowMinTotalRows, Math.ceil(D / x + this.vDomWindowBuffer / x)));
9763
+ a = w.getHeight(), k < o ? d += a : r += a, a > this.vDomWindowBuffer && (this.vDomWindowBuffer = a * 2), k++;
9764
+ }), x = this.table.rowManager.adjustTableSize(), D = this.elementVertical.clientHeight, x && (H || this.table.options.maxHeight) && (R = r / k, L = Math.max(this.vDomWindowMinTotalRows, Math.ceil(D / R + this.vDomWindowBuffer / R)));
9765
9765
  }
9766
- e ? (this.vDomTopPad = t ? this.vDomRowHeight * this.vDomTop + i : this.scrollTop - d, this.vDomBottomPad = this.vDomBottom == f - 1 ? 0 : Math.max(this.vDomScrollHeight - this.vDomTopPad - r - d, 0)) : (this.vDomTopPad = 0, this.vDomRowHeight = Math.floor((r + d) / R), this.vDomBottomPad = this.vDomRowHeight * (f - this.vDomBottom - 1), this.vDomScrollHeight = d + r + this.vDomBottomPad - D), s.style.paddingTop = this.vDomTopPad + "px", s.style.paddingBottom = this.vDomBottomPad + "px", t && (this.scrollTop = this.vDomTopPad + d + i - (this.elementVertical.scrollWidth > this.elementVertical.clientWidth ? this.elementVertical.offsetHeight - D : 0)), this.scrollTop = Math.min(this.scrollTop, this.elementVertical.scrollHeight - D), this.elementVertical.scrollWidth > this.elementVertical.clientWidth && t && (this.scrollTop += this.elementVertical.offsetHeight - D), this.vDomScrollPosTop = this.scrollTop, this.vDomScrollPosBottom = this.scrollTop, n.scrollTop = this.scrollTop, this.dispatch("render-virtual-fill");
9766
+ e ? (this.vDomTopPad = t ? this.vDomRowHeight * this.vDomTop + i : this.scrollTop - d, this.vDomBottomPad = this.vDomBottom == f - 1 ? 0 : Math.max(this.vDomScrollHeight - this.vDomTopPad - r - d, 0)) : (this.vDomTopPad = 0, this.vDomRowHeight = Math.floor((r + d) / k), this.vDomBottomPad = this.vDomRowHeight * (f - this.vDomBottom - 1), this.vDomScrollHeight = d + r + this.vDomBottomPad - D), s.style.paddingTop = this.vDomTopPad + "px", s.style.paddingBottom = this.vDomBottomPad + "px", t && (this.scrollTop = this.vDomTopPad + d + i - (this.elementVertical.scrollWidth > this.elementVertical.clientWidth ? this.elementVertical.offsetHeight - D : 0)), this.scrollTop = Math.min(this.scrollTop, this.elementVertical.scrollHeight - D), this.elementVertical.scrollWidth > this.elementVertical.clientWidth && t && (this.scrollTop += this.elementVertical.offsetHeight - D), this.vDomScrollPosTop = this.scrollTop, this.vDomScrollPosBottom = this.scrollTop, n.scrollTop = this.scrollTop, this.dispatch("render-virtual-fill");
9767
9767
  }
9768
9768
  }
9769
9769
  _addTopRow(e, t) {
@@ -9815,7 +9815,7 @@ class fn extends De {
9815
9815
  t.setCellHeight();
9816
9816
  }
9817
9817
  }
9818
- class pn extends F {
9818
+ class pn extends O {
9819
9819
  constructor(e) {
9820
9820
  super(e), this.element = this.createHolderElement(), this.tableElement = this.createTableElement(), this.heightFixer = this.createTableElement(), this.placeholder = null, this.placeholderContents = null, this.firstRender = !1, this.renderMode = "virtual", this.fixedHeight = !1, this.rows = [], this.activeRowsPipeline = [], this.activeRows = [], this.activeRowsCount = 0, this.displayRows = [], this.displayRowsCount = 0, this.scrollTop = 0, this.scrollLeft = 0, this.redrawBlock = !1, this.redrawBlockRestoreConfig = !1, this.redrawBlockRenderInPosition = !1, this.dataPipeline = [], this.displayPipeline = [], this.scrollbarWidth = 0, this.renderer = null;
9821
9821
  }
@@ -9856,7 +9856,7 @@ class pn extends F {
9856
9856
  ////////////////// Row Manipulation //////////////////
9857
9857
  findRow(e) {
9858
9858
  if (typeof e == "object") {
9859
- if (e instanceof O)
9859
+ if (e instanceof P)
9860
9860
  return e;
9861
9861
  if (e instanceof Le)
9862
9862
  return e._getSelf() || !1;
@@ -9888,7 +9888,7 @@ class pn extends F {
9888
9888
  _setDataActual(e, t) {
9889
9889
  this.dispatchExternal("dataProcessing", e), this._wipeElements(), Array.isArray(e) ? (this.dispatch("data-processing", e), e.forEach((i, s) => {
9890
9890
  if (i && typeof i == "object") {
9891
- var n = new O(i, this);
9891
+ var n = new P(i, this);
9892
9892
  this.rows.push(n);
9893
9893
  } else
9894
9894
  console.warn("Data Loading Warning - Invalid row data detected and ignored, expecting object but received:", i);
@@ -9930,7 +9930,7 @@ Data: `, e);
9930
9930
  return typeof e > "u" && (e = this.table.options.addRowPos), e === "pos" && (e = !0), e === "bottom" && (e = !1), e;
9931
9931
  }
9932
9932
  addRowActual(e, t, i, s) {
9933
- var n = e instanceof O ? e : new O(e || {}, this), o = this.findAddRowPos(t), r = -1, a, h;
9933
+ var n = e instanceof P ? e : new P(e || {}, this), o = this.findAddRowPos(t), r = -1, a, h;
9934
9934
  return i || (h = this.chain("row-adding-position", [n, o], null, { index: i, top: o }), i = h.index, o = h.top), typeof i < "u" && (i = this.findRow(i)), i = this.chain("row-adding-index", [n, i, o], null, i), i && (r = this.rows.indexOf(i)), i && r > -1 ? (a = this.activeRows.indexOf(i), this.displayRowIterator(function(d) {
9935
9935
  var u = d.indexOf(i);
9936
9936
  u > -1 && d.splice(o ? u : u + 1, 0, n);
@@ -9968,11 +9968,11 @@ Data: `, e);
9968
9968
  }
9969
9969
  nextDisplayRow(e, t) {
9970
9970
  var i = this.getDisplayRowIndex(e), s = !1;
9971
- return i !== !1 && i < this.displayRowsCount - 1 && (s = this.getDisplayRows()[i + 1]), s && (!(s instanceof O) || s.type != "row") ? this.nextDisplayRow(s, t) : s;
9971
+ return i !== !1 && i < this.displayRowsCount - 1 && (s = this.getDisplayRows()[i + 1]), s && (!(s instanceof P) || s.type != "row") ? this.nextDisplayRow(s, t) : s;
9972
9972
  }
9973
9973
  prevDisplayRow(e, t) {
9974
9974
  var i = this.getDisplayRowIndex(e), s = !1;
9975
- return i && (s = this.getDisplayRows()[i - 1]), t && s && (!(s instanceof O) || s.type != "row") ? this.prevDisplayRow(s, t) : s;
9975
+ return i && (s = this.getDisplayRows()[i - 1]), t && s && (!(s instanceof P) || s.type != "row") ? this.prevDisplayRow(s, t) : s;
9976
9976
  }
9977
9977
  findRowIndex(e, t) {
9978
9978
  var i;
@@ -10195,7 +10195,7 @@ Data: `, e);
10195
10195
  this.element.dispatchEvent(new Event("scroll"));
10196
10196
  }
10197
10197
  }
10198
- class mn extends F {
10198
+ class mn extends O {
10199
10199
  constructor(e) {
10200
10200
  super(e), this.active = !1, this.element = this.createElement(), this.containerElement = this.createContainerElement(), this.external = !1;
10201
10201
  }
@@ -10243,7 +10243,7 @@ class mn extends F {
10243
10243
  this.dispatch("footer-redraw");
10244
10244
  }
10245
10245
  }
10246
- class gn extends F {
10246
+ class gn extends O {
10247
10247
  constructor(e) {
10248
10248
  super(e), this.el = null, this.abortClasses = ["tabulator-headers", "tabulator-table"], this.previousTargets = {}, this.listeners = [
10249
10249
  "click",
@@ -10367,7 +10367,7 @@ class gn extends F {
10367
10367
  s.components.includes("column") && (h = this.table.columnManager.findColumn(d));
10368
10368
  break;
10369
10369
  case "cell":
10370
- s.components.includes("cell") && (n.row instanceof O ? h = n.row.findCell(d) : t.row && console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"));
10370
+ s.components.includes("cell") && (n.row instanceof P ? h = n.row.findCell(d) : t.row && console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"));
10371
10371
  break;
10372
10372
  }
10373
10373
  h && (n[a] = h, r[a] = {
@@ -10405,7 +10405,7 @@ class bn {
10405
10405
  i !== "then" && typeof i == "string" && !i.startsWith("_") && this.table.options.debugInvalidComponentFuncs && console.error("The " + e + " component does not have a " + i + " function, have you checked that you have the correct Tabulator module installed?");
10406
10406
  }
10407
10407
  }
10408
- class vn extends F {
10408
+ class vn extends O {
10409
10409
  constructor(e) {
10410
10410
  super(e), this.requestOrder = 0, this.loading = !1;
10411
10411
  }
@@ -10577,7 +10577,7 @@ class Cn {
10577
10577
  return e[0] = "InternalEvent:" + t, (this.debug === !0 || this.debug.includes(t)) && console.log(...e), this._confirm(...arguments);
10578
10578
  }
10579
10579
  }
10580
- class yn extends F {
10580
+ class yn extends O {
10581
10581
  constructor(e) {
10582
10582
  super(e);
10583
10583
  }
@@ -10595,7 +10595,7 @@ class yn extends F {
10595
10595
  this._warnUser(e);
10596
10596
  }
10597
10597
  }
10598
- class En extends F {
10598
+ class En extends O {
10599
10599
  constructor(e) {
10600
10600
  super(e), this.deps = {}, this.props = {};
10601
10601
  }
@@ -10651,21 +10651,21 @@ function kn(l, e) {
10651
10651
  return typeof p == "string" ? p.indexOf("%") > -1 ? g = t / 100 * parseInt(p) : g = parseInt(p) : g = p, g;
10652
10652
  }
10653
10653
  function f(p, g, v, m) {
10654
- var R = [], L = 0, H = 0, D = 0, x = n, M = 0, w = 0, B = [];
10655
- function W(T) {
10656
- return v * (T.column.definition.widthGrow || 1);
10657
- }
10658
- function pe(T) {
10659
- return c(T.width) - v * (T.column.definition.widthShrink || 0);
10660
- }
10661
- return p.forEach(function(T, oe) {
10662
- var xe = m ? pe(T) : W(T);
10663
- T.column.minWidth >= xe ? R.push(T) : T.column.maxWidth && T.column.maxWidth < xe ? (T.width = T.column.maxWidth, g -= T.column.maxWidth, x -= m ? T.column.definition.widthShrink || 1 : T.column.definition.widthGrow || 1, x && (v = Math.floor(g / x))) : (B.push(T), w += m ? T.column.definition.widthShrink || 1 : T.column.definition.widthGrow || 1);
10664
- }), R.length ? (R.forEach(function(T) {
10665
- L += m ? T.width - T.column.minWidth : T.column.minWidth, T.width = T.column.minWidth;
10666
- }), H = g - L, D = w ? Math.floor(H / w) : H, M = f(B, H, D, m)) : (M = w ? g - Math.floor(g / w) * w : g, B.forEach(function(T) {
10667
- T.width = m ? pe(T) : W(T);
10668
- })), M;
10654
+ var k = [], L = 0, H = 0, D = 0, R = n, x = 0, w = 0, F = [];
10655
+ function W(M) {
10656
+ return v * (M.column.definition.widthGrow || 1);
10657
+ }
10658
+ function fe(M) {
10659
+ return c(M.width) - v * (M.column.definition.widthShrink || 0);
10660
+ }
10661
+ return p.forEach(function(M, Re) {
10662
+ var xe = m ? fe(M) : W(M);
10663
+ M.column.minWidth >= xe ? k.push(M) : M.column.maxWidth && M.column.maxWidth < xe ? (M.width = M.column.maxWidth, g -= M.column.maxWidth, R -= m ? M.column.definition.widthShrink || 1 : M.column.definition.widthGrow || 1, R && (v = Math.floor(g / R))) : (F.push(M), w += m ? M.column.definition.widthShrink || 1 : M.column.definition.widthGrow || 1);
10664
+ }), k.length ? (k.forEach(function(M) {
10665
+ L += m ? M.width - M.column.minWidth : M.column.minWidth, M.width = M.column.minWidth;
10666
+ }), H = g - L, D = w ? Math.floor(H / w) : H, x = f(F, H, D, m)) : (x = w ? g - Math.floor(g / w) * w : g, F.forEach(function(M) {
10667
+ M.width = m ? fe(M) : W(M);
10668
+ })), x;
10669
10669
  }
10670
10670
  this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update(), this.table.rowManager.element.scrollHeight > this.table.rowManager.element.clientHeight && (t -= this.table.rowManager.element.offsetWidth - this.table.rowManager.element.clientWidth), l.forEach(function(p) {
10671
10671
  var g, v, m;
@@ -10691,14 +10691,14 @@ var Tn = {
10691
10691
  fitDataStretch: xn,
10692
10692
  fitColumns: kn
10693
10693
  };
10694
- const de = class de extends y {
10694
+ const he = class he extends y {
10695
10695
  constructor(e) {
10696
10696
  super(e, "layout"), this.mode = null, this.registerTableOption("layout", "fitData"), this.registerTableOption("layoutColumnsOnNewData", !1), this.registerColumnOption("widthGrow"), this.registerColumnOption("widthShrink");
10697
10697
  }
10698
10698
  //initialize layout system
10699
10699
  initialize() {
10700
10700
  var e = this.table.options.layout;
10701
- de.modes[e] ? this.mode = e : (console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : " + e), this.mode = "fitData"), this.table.element.setAttribute("tabulator-layout", this.mode), this.subscribe("column-init", this.initializeColumn.bind(this));
10701
+ he.modes[e] ? this.mode = e : (console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : " + e), this.mode = "fitData"), this.table.element.setAttribute("tabulator-layout", this.mode), this.subscribe("column-init", this.initializeColumn.bind(this));
10702
10702
  }
10703
10703
  initializeColumn(e) {
10704
10704
  e.definition.widthGrow && (e.definition.widthGrow = Number(e.definition.widthGrow)), e.definition.widthShrink && (e.definition.widthShrink = Number(e.definition.widthShrink));
@@ -10709,12 +10709,12 @@ const de = class de extends y {
10709
10709
  //trigger table layout
10710
10710
  layout(e) {
10711
10711
  var t = this.table.columnManager.columnsByIndex.find((i) => i.definition.variableHeight || i.definition.formatter === "textarea");
10712
- this.dispatch("layout-refreshing"), de.modes[this.mode].call(this, this.table.columnManager.columnsByIndex, e), t && this.table.rowManager.normalizeHeight(!0), this.dispatch("layout-refreshed");
10712
+ this.dispatch("layout-refreshing"), he.modes[this.mode].call(this, this.table.columnManager.columnsByIndex, e), t && this.table.rowManager.normalizeHeight(!0), this.dispatch("layout-refreshed");
10713
10713
  }
10714
10714
  };
10715
- b(de, "moduleName", "layout"), //load defaults
10716
- b(de, "modes", Tn);
10717
- let it = de;
10715
+ b(he, "moduleName", "layout"), //load defaults
10716
+ b(he, "modes", Tn);
10717
+ let it = he;
10718
10718
  var Mn = {
10719
10719
  default: {
10720
10720
  //hold default locale text
@@ -10752,12 +10752,12 @@ var Mn = {
10752
10752
  }
10753
10753
  }
10754
10754
  };
10755
- const ye = class ye extends y {
10755
+ const Ce = class Ce extends y {
10756
10756
  constructor(e) {
10757
10757
  super(e), this.locale = "default", this.lang = !1, this.bindings = {}, this.langList = {}, this.registerTableOption("locale", !1), this.registerTableOption("langs", {});
10758
10758
  }
10759
10759
  initialize() {
10760
- this.langList = z.deepClone(ye.langs), this.table.options.columnDefaults.headerFilterPlaceholder !== !1 && this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);
10760
+ this.langList = z.deepClone(Ce.langs), this.table.options.columnDefaults.headerFilterPlaceholder !== !1 && this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);
10761
10761
  for (let e in this.table.options.langs)
10762
10762
  this.installLang(e, this.table.options.langs[e]);
10763
10763
  this.setLocale(this.table.options.locale), this.registerTableFunction("setLocale", this.setLocale.bind(this)), this.registerTableFunction("getLocale", this.getLocale.bind(this)), this.registerTableFunction("getLang", this.getLang.bind(this));
@@ -10820,9 +10820,9 @@ const ye = class ye extends y {
10820
10820
  });
10821
10821
  }
10822
10822
  };
10823
- b(ye, "moduleName", "localize"), //load defaults
10824
- b(ye, "langs", Mn);
10825
- let st = ye;
10823
+ b(Ce, "moduleName", "localize"), //load defaults
10824
+ b(Ce, "langs", Mn);
10825
+ let st = Ce;
10826
10826
  class Vt extends y {
10827
10827
  constructor(e) {
10828
10828
  super(e);
@@ -10958,7 +10958,7 @@ const S = class S extends nt {
10958
10958
  };
10959
10959
  b(S, "moduleBindings", {}), b(S, "moduleExtensions", {}), b(S, "modulesRegistered", !1), b(S, "defaultModules", !1);
10960
10960
  let ot = S;
10961
- class Sn extends F {
10961
+ class Sn extends O {
10962
10962
  constructor(e) {
10963
10963
  super(e), this.element = this._createAlertElement(), this.msgElement = this._createMsgElement(), this.type = null, this.element.appendChild(this.msgElement);
10964
10964
  }
@@ -11293,23 +11293,23 @@ const U = class U extends ot {
11293
11293
  //default setup options
11294
11294
  b(U, "defaultOptions", ln);
11295
11295
  let rt = U;
11296
- var me = rt;
11297
- class Dn extends me {
11296
+ var pe = rt;
11297
+ class Dn extends pe {
11298
11298
  static extendModule() {
11299
- me.initializeModuleBinder(Fe), me._extendModule(...arguments);
11299
+ pe.initializeModuleBinder(Fe), pe._extendModule(...arguments);
11300
11300
  }
11301
11301
  static registerModule() {
11302
- me.initializeModuleBinder(Fe), me._registerModule(...arguments);
11302
+ pe.initializeModuleBinder(Fe), pe._registerModule(...arguments);
11303
11303
  }
11304
11304
  constructor(e, t, i) {
11305
11305
  super(e, t, Fe);
11306
11306
  }
11307
11307
  }
11308
11308
  var zn = Dn;
11309
- const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w-1/2" }, An = {
11309
+ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w-1/2" }, Pn = {
11310
11310
  key: 0,
11311
11311
  class: "flex"
11312
- }, Pn = ["disabled", "value", "id"], _n = ["for"], Bn = { class: "w-1/2" }, Vn = { class: "mb-4" }, Nn = ["value"], ro = /* @__PURE__ */ fe({
11312
+ }, An = ["disabled", "value", "id"], _n = ["for"], Bn = { class: "w-1/2" }, Vn = { class: "mb-4" }, Nn = ["value"], ro = /* @__PURE__ */ ce({
11313
11313
  __name: "Tabulator",
11314
11314
  props: {
11315
11315
  data: { default: () => [] },
@@ -11318,7 +11318,6 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11318
11318
  paginationSize: { default: 25 },
11319
11319
  paginationSizeSelector: { default: () => [25, 50, 100, 200] },
11320
11320
  action: { type: Boolean, default: !1 },
11321
- actionButtons: { default: () => [] },
11322
11321
  heightOffset: { default: 250 }
11323
11322
  },
11324
11323
  setup(l, { emit: e }) {
@@ -11330,34 +11329,34 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11330
11329
  { title: "Cancel", emit: "onClose", class: "btn-outline" },
11331
11330
  { title: "Apply", emit: "onSave" }
11332
11331
  ]
11333
- }, c = ge(() => t.columns.filter(
11334
- (x) => x.title.toLowerCase().includes(o.value.toLowerCase())
11332
+ }, c = me(() => t.columns.filter(
11333
+ (R) => R.title.toLowerCase().includes(o.value.toLowerCase())
11335
11334
  )), f = () => ({
11336
11335
  title: "Action",
11337
11336
  field: "action",
11338
11337
  width: 99,
11339
- vertAlign: "middle",
11340
11338
  hozAlign: "center",
11341
11339
  headerSort: !1,
11342
- formatter: (x) => `
11340
+ formatter: (R) => {
11341
+ var x = R.getData().actions;
11342
+ return x ? `
11343
11343
  <div class="relative" id="action-btn">
11344
- <button class="action-btn btn btn-gray w-10 bg-[#EAEAEA] hover:bg-[#e1e1e1] text-secondary-500">
11345
- <svg class="rotate-90 svg-inline--fa fa-ellipsis-vertical" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="ellipsis-vertical" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 512">
11346
- <path fill="currentColor" d="M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"></path>
11347
- </svg>
11344
+ <button class="action-btn btn btn-action bg-[#EAEAEA] text-[#636b6f]!">
11345
+ <div class="text-[25px] font-[900] mt-[-14px]" style="letter-spacing: -1px;font-family: auto;">...</div>
11348
11346
  </button>
11349
11347
  <div class="action-dropdown hidden select-none absolute bg-white z-3 border border-secondary-100 divide-y divide-secondary-100 min-w-[100px]">
11350
- ${t.actionButtons.filter((w) => !w.hide).map((w) => `
11351
- <div class="p-1 hover:bg-primary-50 cursor-pointer transition-all flex gap-1 font-medium ${w.class}">
11352
- ${w.name}
11348
+ ${x.map((F) => `
11349
+ <div class="p-1 hover:bg-primary-50 cursor-pointer transition-all flex gap-1 font-medium ${F.class} ${F.name.replace(" ", "_").toLowerCase()}_${R.getData().id}">
11350
+ ${F.name}
11353
11351
  </div>
11354
11352
  `).join("")}
11355
11353
  </div>
11356
11354
  </div>
11357
- `,
11355
+ ` : "";
11356
+ },
11358
11357
  cellClick: v
11359
11358
  }), p = () => {
11360
- s.value && (a.value = t.columns.map((x) => x.field), L(), d = new zn(s.value, {
11359
+ s.value && (a.value = t.columns.map((R) => R.field), L(), d = new zn(s.value, {
11361
11360
  data: t.data,
11362
11361
  columns: h.value,
11363
11362
  placeholder: t.placeholder ?? "No records found!",
@@ -11367,36 +11366,33 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11367
11366
  layout: "fitColumns",
11368
11367
  height: window.innerHeight - t.heightOffset
11369
11368
  }), d.on("rowClick", g));
11370
- }, g = (x, M) => {
11369
+ }, g = (R, x) => {
11371
11370
  const w = document.querySelector(".action-show");
11372
- if (x.target.closest(".action-btn") || w == null || w.classList.remove("action-show"), t.action) {
11373
- x.preventDefault();
11371
+ if (R.target.closest(".action-btn") || w == null || w.classList.remove("action-show"), t.action) {
11372
+ R.preventDefault();
11374
11373
  const W = document.querySelector(".datarow-selected");
11375
- W == null || W.classList.remove("datarow-selected"), M.getElement().classList.add("datarow-selected");
11374
+ W == null || W.classList.remove("datarow-selected"), x.getElement().classList.add("datarow-selected");
11376
11375
  }
11377
- }, v = (x, M) => {
11378
- const w = x.target, B = w.closest(".action-btn"), W = w.closest(".relative"), pe = document.querySelector(".tabulator-tableholder");
11379
- if (pe && B && W) {
11380
- const T = pe.getBoundingClientRect(), oe = W.querySelector(".action-dropdown");
11381
- if (!oe) return;
11382
- const xe = oe.classList.contains("action-show");
11383
- document.querySelectorAll(".action-dropdown").forEach((Nt) => Nt.classList.remove("action-show")), xe || m(oe, T);
11376
+ }, v = (R, x) => {
11377
+ const w = R.target, F = w.closest(".action-btn"), W = w.closest(".relative"), fe = document.querySelector(".tabulator-tableholder");
11378
+ if (fe && F && W) {
11379
+ const M = fe.getBoundingClientRect(), Re = W.querySelector(".action-dropdown");
11380
+ if (!Re) return;
11381
+ const xe = Re.classList.contains("action-show");
11382
+ document.querySelectorAll(".action-dropdown").forEach((Nt) => Nt.classList.remove("action-show")), xe || m(Re, M);
11384
11383
  }
11385
- t.actionButtons.forEach((T) => {
11386
- if (w.classList.contains(T.class) && i) {
11387
- const oe = M.getRow().getData().id;
11388
- i(T.emit, oe);
11389
- }
11384
+ x.getData().actions.forEach((M) => {
11385
+ w.classList.contains(M.name.replace(" ", "_").toLowerCase() + "_" + x.getData().id) && i && (x.getRow().getData().id, i(M.emit, x.getData()));
11390
11386
  });
11391
- }, m = (x, M) => {
11392
- const w = x;
11393
- w.style.top = "", w.style.left = "", w.style.right = "", w.classList.add("action-show"), w.style.right = "0px", w.getBoundingClientRect().bottom > M.bottom - 10 && (w.style.top = "-63px");
11394
- }, R = (x) => {
11395
- const M = document.querySelector(".action-show"), w = document.getElementById("tabulator"), B = x.target.closest(".tabulator-row"), W = x.target.closest("#action-btn");
11396
- (!(w != null && w.contains(x.target)) || !B && !W) && (M == null || M.classList.remove("action-show"));
11387
+ }, m = (R, x) => {
11388
+ const w = R;
11389
+ w.style.top = "", w.style.left = "", w.style.right = "", w.classList.add("action-show"), w.style.right = "40px", w.getBoundingClientRect().bottom > x.bottom - 10 && (w.style.top = "-63px");
11390
+ }, k = (R) => {
11391
+ const x = document.querySelector(".action-show"), w = document.getElementById("tabulator"), F = R.target.closest(".tabulator-row"), W = R.target.closest("#action-btn");
11392
+ (!(w != null && w.contains(R.target)) || !F && !W) && (x == null || x.classList.remove("action-show"));
11397
11393
  }, L = () => {
11398
11394
  h.value = t.columns.filter(
11399
- (x) => a.value.includes(x.field)
11395
+ (R) => a.value.includes(R.field)
11400
11396
  ), t.action && h.value.push(f());
11401
11397
  }, H = () => {
11402
11398
  L(), d == null || d.setColumns(h.value), d == null || d.setPageSize(r.value), n.value = !1;
@@ -11404,13 +11400,13 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11404
11400
  n.value = !n.value;
11405
11401
  };
11406
11402
  return ct(() => {
11407
- r.value = t.paginationSize, document.addEventListener("click", R), p();
11403
+ r.value = t.paginationSize, document.addEventListener("click", k), p();
11408
11404
  }), ft(() => {
11409
- document.removeEventListener("click", R);
11405
+ document.removeEventListener("click", k);
11410
11406
  }), ne(
11411
11407
  () => t.data,
11412
- (x) => {
11413
- d == null || d.setData(x);
11408
+ (R) => {
11409
+ d == null || d.setData(R);
11414
11410
  },
11415
11411
  { deep: !0 }
11416
11412
  ), ne(
@@ -11419,13 +11415,13 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11419
11415
  L(), d == null || d.setColumns(h.value);
11420
11416
  },
11421
11417
  { deep: !0 }
11422
- ), (x, M) => (E(), k("div", Hn, [
11418
+ ), (R, x) => (E(), T("div", Hn, [
11423
11419
  C("div", { class: "flex justify-end mb-4" }, [
11424
11420
  C("button", {
11425
11421
  onClick: D,
11426
11422
  class: "btn-outline btn-secondary group",
11427
11423
  "aria-label": "Open settings"
11428
- }, M[4] || (M[4] = [
11424
+ }, x[4] || (x[4] = [
11429
11425
  C("svg", {
11430
11426
  width: "16px",
11431
11427
  height: "16px",
@@ -11455,7 +11451,7 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11455
11451
  ref_key: "table",
11456
11452
  ref: s,
11457
11453
  id: "tabulator",
11458
- class: I({ "tabulator-action": x.action })
11454
+ class: I({ "tabulator-action": R.action })
11459
11455
  }, null, 2)
11460
11456
  ]),
11461
11457
  pt(li, {
@@ -11463,63 +11459,63 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11463
11459
  title: u.title,
11464
11460
  actions: u.action,
11465
11461
  width: "600px",
11466
- onOnClose: M[3] || (M[3] = (w) => n.value = !1),
11462
+ onOnClose: x[3] || (x[3] = (w) => n.value = !1),
11467
11463
  onOnSave: H
11468
11464
  }, {
11469
- default: ce(() => [
11465
+ default: ue(() => [
11470
11466
  C("div", Fn, [
11471
11467
  C("div", On, [
11472
- M[5] || (M[5] = C("span", { class: "text-base font-semibold" }, "Columns Attributes", -1)),
11468
+ x[5] || (x[5] = C("span", { class: "text-base font-semibold" }, "Columns Attributes", -1)),
11473
11469
  C("div", null, [
11474
11470
  ze(C("input", {
11475
- "onUpdate:modelValue": M[0] || (M[0] = (w) => o.value = w),
11471
+ "onUpdate:modelValue": x[0] || (x[0] = (w) => o.value = w),
11476
11472
  class: "input-text mb-4",
11477
11473
  placeholder: "Search for attributes",
11478
11474
  "aria-label": "Search columns"
11479
11475
  }, null, 512), [
11480
11476
  [jt, o.value]
11481
11477
  ]),
11482
- (E(!0), k(Z, null, Q(c.value, (w) => (E(), k("div", {
11478
+ (E(!0), T(Z, null, Q(c.value, (w) => (E(), T("div", {
11483
11479
  key: w.field,
11484
11480
  class: "my-2"
11485
11481
  }, [
11486
- w.field !== "action" ? (E(), k("div", An, [
11482
+ w.field !== "action" ? (E(), T("div", Pn, [
11487
11483
  ze(C("input", {
11488
11484
  type: "checkbox",
11489
11485
  disabled: !w.isNotMandatory,
11490
- "onUpdate:modelValue": M[1] || (M[1] = (B) => a.value = B),
11486
+ "onUpdate:modelValue": x[1] || (x[1] = (F) => a.value = F),
11491
11487
  value: w.field,
11492
11488
  class: "mx-1.5",
11493
11489
  id: w.title,
11494
11490
  "aria-labelledby": "column-checkbox"
11495
- }, null, 8, Pn), [
11491
+ }, null, 8, An), [
11496
11492
  [Ut, a.value]
11497
11493
  ]),
11498
11494
  C("label", {
11499
11495
  for: w.title,
11500
11496
  class: "select-none"
11501
- }, _(w.title), 9, _n)
11502
- ])) : P("", !0)
11497
+ }, B(w.title), 9, _n)
11498
+ ])) : _("", !0)
11503
11499
  ]))), 128))
11504
11500
  ])
11505
11501
  ]),
11506
11502
  C("div", Bn, [
11507
- M[6] || (M[6] = C("span", { class: "text-base font-semibold" }, "Page Size", -1)),
11503
+ x[6] || (x[6] = C("span", { class: "text-base font-semibold" }, "Page Size", -1)),
11508
11504
  C("div", Vn, [
11509
- (E(!0), k(Z, null, Q(x.paginationSizeSelector, (w) => (E(), k("label", {
11505
+ (E(!0), T(Z, null, Q(R.paginationSizeSelector, (w) => (E(), T("label", {
11510
11506
  key: w,
11511
11507
  class: "flex items-center mt-2"
11512
11508
  }, [
11513
11509
  ze(C("input", {
11514
11510
  type: "radio",
11515
- "onUpdate:modelValue": M[2] || (M[2] = (B) => r.value = B),
11511
+ "onUpdate:modelValue": x[2] || (x[2] = (F) => r.value = F),
11516
11512
  value: w,
11517
11513
  class: "mr-2.5",
11518
11514
  "aria-label": "Select page size"
11519
11515
  }, null, 8, Nn), [
11520
11516
  [$t, r.value]
11521
11517
  ]),
11522
- Me(" " + _(w), 1)
11518
+ Me(" " + B(w), 1)
11523
11519
  ]))), 128))
11524
11520
  ])
11525
11521
  ])
@@ -11529,7 +11525,7 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11529
11525
  }, 8, ["show", "title", "actions"])
11530
11526
  ]));
11531
11527
  }
11532
- }), In = ["aria-checked"], Wn = { class: "text-[12px]" }, ao = /* @__PURE__ */ fe({
11528
+ }), In = ["aria-checked"], Wn = { class: "text-[12px]" }, ao = /* @__PURE__ */ ce({
11533
11529
  __name: "Toggle",
11534
11530
  props: {
11535
11531
  modelValue: { type: Boolean, default: !1 },
@@ -11550,17 +11546,17 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11550
11546
  const n = () => {
11551
11547
  t.disable || (s.value = !s.value, i("update:modelValue", s.value));
11552
11548
  };
11553
- return (o, r) => (E(), k("button", {
11549
+ return (o, r) => (E(), T("button", {
11554
11550
  onClick: n,
11555
11551
  class: I(["relative select-none h-[30px] rounded-xs transition-colors duration-200 border border-secondary-100 overflow-hidden", [o.disable ? "cursor-not-allowed" : "cursor-pointer"]]),
11556
- style: Ee({ width: o.width }),
11552
+ style: ye({ width: o.width }),
11557
11553
  role: "switch",
11558
11554
  "aria-checked": s.value
11559
11555
  }, [
11560
11556
  C("div", {
11561
11557
  class: I(["flex items-center justify-center w-1/2 h-full bg-gray-200 shadow-md transform transition-transform duration-200", s.value ? "translate-x-full" : "translate-x-0"])
11562
11558
  }, [
11563
- C("span", Wn, _(s.value ? o.onText : o.offText), 1)
11559
+ C("span", Wn, B(s.value ? o.onText : o.offText), 1)
11564
11560
  ], 2)
11565
11561
  ], 14, In));
11566
11562
  }
@@ -11578,7 +11574,7 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11578
11574
  }, Jn = {
11579
11575
  key: 0,
11580
11576
  class: "flex justify-end fixed bottom-0 left-0 w-[100vw] bg-white border-t border-t-secondary-50 max-h-[50px] px-4 py-3"
11581
- }, Kn = { class: "right-0 flex gap-2" }, qn = ["onClick"], Yn = /* @__PURE__ */ fe({
11577
+ }, Kn = { class: "right-0 flex gap-2" }, qn = ["onClick"], Yn = /* @__PURE__ */ ce({
11582
11578
  __name: "Towser",
11583
11579
  props: {
11584
11580
  show: { type: Boolean, default: !1 },
@@ -11589,13 +11585,13 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11589
11585
  body2Width: { default: 50 }
11590
11586
  },
11591
11587
  setup(l, { emit: e }) {
11592
- const t = l, i = e, s = ge(() => t.actions ? "150px" : "100px"), n = ge(() => t.double ? `${t.bodyWidth}%` : "100%"), o = ge(
11588
+ const t = l, i = e, s = me(() => t.actions ? "150px" : "100px"), n = me(() => t.double ? `${t.bodyWidth}%` : "100%"), o = me(
11593
11589
  () => `
11594
11590
  min-height: calc(100vh - ${s.value});
11595
11591
  max-height: calc(100vh - ${s.value});
11596
11592
  width: ${n.value}
11597
11593
  `
11598
- ), r = ge(
11594
+ ), r = me(
11599
11595
  () => `
11600
11596
  min-height: calc(100vh - ${s.value});
11601
11597
  max-height: calc(100vh - ${s.value});
@@ -11605,11 +11601,11 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11605
11601
  return (a, h) => {
11606
11602
  const d = at("RouterLink");
11607
11603
  return E(), Te(mt, { name: "towser" }, {
11608
- default: ce(() => [
11609
- a.show ? (E(), k("div", Gn, [
11604
+ default: ue(() => [
11605
+ a.show ? (E(), T("div", Gn, [
11610
11606
  C("div", jn, [
11611
11607
  C("div", Un, [
11612
- (E(!0), k(Z, null, Q(a.title, (u, c) => (E(), k("span", {
11608
+ (E(!0), T(Z, null, Q(a.title, (u, c) => (E(), T("span", {
11613
11609
  key: c,
11614
11610
  class: "flex"
11615
11611
  }, [
@@ -11618,16 +11614,16 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11618
11614
  to: u.link,
11619
11615
  class: "hover:underline"
11620
11616
  }, {
11621
- default: ce(() => [
11622
- Me(_(u.name), 1)
11617
+ default: ue(() => [
11618
+ Me(B(u.name), 1)
11623
11619
  ]),
11624
11620
  _: 2
11625
- }, 1032, ["to"])) : (E(), k("a", {
11621
+ }, 1032, ["to"])) : (E(), T("a", {
11626
11622
  key: 2,
11627
11623
  onClick: h[0] || (h[0] = (f) => i("onClose")),
11628
11624
  class: "hover:underline cursor-pointer"
11629
- }, _(u.name), 1)) : (E(), k("span", $n, _(u.name), 1)),
11630
- a.title.length !== 0 && c + 1 !== a.title.length ? (E(), k("svg", Xn, h[2] || (h[2] = [
11625
+ }, B(u.name), 1)) : (E(), T("span", $n, B(u.name), 1)),
11626
+ a.title.length !== 0 && c + 1 !== a.title.length ? (E(), T("svg", Xn, h[2] || (h[2] = [
11631
11627
  C("path", {
11632
11628
  d: "M9 6L15 12L9 18",
11633
11629
  stroke: "gray",
@@ -11635,7 +11631,7 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11635
11631
  "stroke-linecap": "round",
11636
11632
  "stroke-linejoin": "round"
11637
11633
  }, null, -1)
11638
- ]))) : P("", !0)
11634
+ ]))) : _("", !0)
11639
11635
  ]))), 128))
11640
11636
  ]),
11641
11637
  C("button", {
@@ -11662,33 +11658,33 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11662
11658
  ]),
11663
11659
  C("div", null, [
11664
11660
  C("div", {
11665
- class: I(a.double ? "flex" : "")
11661
+ class: I([a.double ? "flex gap-[15px]" : "", "px-[15px]"])
11666
11662
  }, [
11667
11663
  C("div", {
11668
- class: "my-[75px] mx-4 bg-white p-4 overflow-y-auto overflow-x-hidden",
11669
- style: Ee(o.value)
11664
+ class: "my-[75px] bg-white p-4 overflow-y-auto overflow-x-hidden",
11665
+ style: ye(o.value)
11670
11666
  }, [
11671
- ue(a.$slots, "default", {}, void 0, !0)
11667
+ de(a.$slots, "default", {}, void 0, !0)
11672
11668
  ], 4),
11673
- a.double ? (E(), k("div", {
11669
+ a.double ? (E(), T("div", {
11674
11670
  key: 0,
11675
- class: "my-[75px] mx-4 bg-white p-4 overflow-y-auto overflow-x-hidden",
11676
- style: Ee(r.value)
11671
+ class: "my-[75px] bg-white p-4 overflow-y-auto overflow-x-hidden",
11672
+ style: ye(r.value)
11677
11673
  }, [
11678
- ue(a.$slots, "body2", {}, void 0, !0)
11679
- ], 4)) : P("", !0)
11674
+ de(a.$slots, "body2", {}, void 0, !0)
11675
+ ], 4)) : _("", !0)
11680
11676
  ], 2)
11681
11677
  ]),
11682
- a.actions ? (E(), k("div", Jn, [
11678
+ a.actions ? (E(), T("div", Jn, [
11683
11679
  C("div", Kn, [
11684
- (E(!0), k(Z, null, Q(a.actions, (u) => (E(), k("button", {
11680
+ (E(!0), T(Z, null, Q(a.actions, (u) => (E(), T("button", {
11685
11681
  key: u.emit,
11686
11682
  class: I(u.class || "btn"),
11687
11683
  onClick: (c) => i(u.emit)
11688
- }, _(u.title), 11, qn))), 128))
11684
+ }, B(u.title), 11, qn))), 128))
11689
11685
  ])
11690
- ])) : P("", !0)
11691
- ])) : P("", !0)
11686
+ ])) : _("", !0)
11687
+ ])) : _("", !0)
11692
11688
  ]),
11693
11689
  _: 3
11694
11690
  });
@@ -11699,7 +11695,7 @@ const Hn = { class: "tabulator-body" }, Fn = { class: "flex" }, On = { class: "w
11699
11695
  for (const [i, s] of e)
11700
11696
  t[i] = s;
11701
11697
  return t;
11702
- }, lo = /* @__PURE__ */ Zn(Yn, [["__scopeId", "data-v-99996a8a"]]), Qn = (l, e) => {
11698
+ }, lo = /* @__PURE__ */ Zn(Yn, [["__scopeId", "data-v-71152391"]]), Qn = (l, e) => {
11703
11699
  if (e.value) {
11704
11700
  const t = l.querySelector("input"), i = document.createElement("span");
11705
11701
  i.classList.add("text-red-500", "text-[12px]", "error-message"), t == null || t.classList.add("border-red-500"), l.classList.add("border-red-500"), i.textContent = e.value, l.appendChild(i);