@pantograph/vue 0.10.7 → 0.10.9

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.
Files changed (81) hide show
  1. package/dist/DataTable/{index.js.js → index.js} +350 -347
  2. package/dist/DataTable/index.umd.cjs +1 -0
  3. package/dist/THead.vue_vue_type_style_index_0_lang-BoOaxYv2.js +1 -0
  4. package/dist/{THead.vue_vue_type_style_index_0_lang-TEr0pOmV.js → THead.vue_vue_type_style_index_0_lang-a7H6iK5g.js} +27 -26
  5. package/dist/Table/{index.js.js → index.js} +1 -1
  6. package/dist/Table/{index.umd.cjs.js → index.umd.cjs} +1 -1
  7. package/dist/{index.js.js → index.js} +1 -1
  8. package/dist/index.umd.cjs +1 -0
  9. package/dist/style/index.css +1 -1
  10. package/package.json +2 -2
  11. package/dist/DataTable/index.umd.cjs.js +0 -1
  12. package/dist/THead.vue_vue_type_style_index_0_lang-BIfvIFzx.js +0 -1
  13. package/dist/index.umd.cjs.js +0 -1
  14. /package/dist/ActionButton/{index.js.js → index.js} +0 -0
  15. /package/dist/ActionButton/{index.umd.cjs.js → index.umd.cjs} +0 -0
  16. /package/dist/Avatar/{index.js.js → index.js} +0 -0
  17. /package/dist/Avatar/{index.umd.cjs.js → index.umd.cjs} +0 -0
  18. /package/dist/AvatarGroup/{index.js.js → index.js} +0 -0
  19. /package/dist/AvatarGroup/{index.umd.cjs.js → index.umd.cjs} +0 -0
  20. /package/dist/Badge/{index.js.js → index.js} +0 -0
  21. /package/dist/Badge/{index.umd.cjs.js → index.umd.cjs} +0 -0
  22. /package/dist/Button/{index.js.js → index.js} +0 -0
  23. /package/dist/Button/{index.umd.cjs.js → index.umd.cjs} +0 -0
  24. /package/dist/ButtonGroup/{index.js.js → index.js} +0 -0
  25. /package/dist/ButtonGroup/{index.umd.cjs.js → index.umd.cjs} +0 -0
  26. /package/dist/Checkbox/{index.js.js → index.js} +0 -0
  27. /package/dist/Checkbox/{index.umd.cjs.js → index.umd.cjs} +0 -0
  28. /package/dist/CheckboxGroup/{index.js.js → index.js} +0 -0
  29. /package/dist/CheckboxGroup/{index.umd.cjs.js → index.umd.cjs} +0 -0
  30. /package/dist/ColorPicker/{index.js.js → index.js} +0 -0
  31. /package/dist/ColorPicker/{index.umd.cjs.js → index.umd.cjs} +0 -0
  32. /package/dist/ColorSwatch/{index.js.js → index.js} +0 -0
  33. /package/dist/ColorSwatch/{index.umd.cjs.js → index.umd.cjs} +0 -0
  34. /package/dist/ColorSwatchGroup/{index.js.js → index.js} +0 -0
  35. /package/dist/ColorSwatchGroup/{index.umd.cjs.js → index.umd.cjs} +0 -0
  36. /package/dist/ColorTrigger/{index.js.js → index.js} +0 -0
  37. /package/dist/ColorTrigger/{index.umd.cjs.js → index.umd.cjs} +0 -0
  38. /package/dist/ConfigProvider/{index.js.js → index.js} +0 -0
  39. /package/dist/ConfigProvider/{index.umd.cjs.js → index.umd.cjs} +0 -0
  40. /package/dist/Divider/{index.js.js → index.js} +0 -0
  41. /package/dist/Divider/{index.umd.cjs.js → index.umd.cjs} +0 -0
  42. /package/dist/Empty/{index.js.js → index.js} +0 -0
  43. /package/dist/Empty/{index.umd.cjs.js → index.umd.cjs} +0 -0
  44. /package/dist/FloatButton/{index.js.js → index.js} +0 -0
  45. /package/dist/FloatButton/{index.umd.cjs.js → index.umd.cjs} +0 -0
  46. /package/dist/GraphicalObject/{index.js.js → index.js} +0 -0
  47. /package/dist/GraphicalObject/{index.umd.cjs.js → index.umd.cjs} +0 -0
  48. /package/dist/Icon/{index.js.js → index.js} +0 -0
  49. /package/dist/Icon/{index.umd.cjs.js → index.umd.cjs} +0 -0
  50. /package/dist/IconButton/{index.js.js → index.js} +0 -0
  51. /package/dist/IconButton/{index.umd.cjs.js → index.umd.cjs} +0 -0
  52. /package/dist/Image/{index.js.js → index.js} +0 -0
  53. /package/dist/Image/{index.umd.cjs.js → index.umd.cjs} +0 -0
  54. /package/dist/IndentLevel/{index.js.js → index.js} +0 -0
  55. /package/dist/IndentLevel/{index.umd.cjs.js → index.umd.cjs} +0 -0
  56. /package/dist/Indicator/{index.js.js → index.js} +0 -0
  57. /package/dist/Indicator/{index.umd.cjs.js → index.umd.cjs} +0 -0
  58. /package/dist/Input/{index.js.js → index.js} +0 -0
  59. /package/dist/Input/{index.umd.cjs.js → index.umd.cjs} +0 -0
  60. /package/dist/Kbd/{index.js.js → index.js} +0 -0
  61. /package/dist/Kbd/{index.umd.cjs.js → index.umd.cjs} +0 -0
  62. /package/dist/Menu/{index.js.js → index.js} +0 -0
  63. /package/dist/Menu/{index.umd.cjs.js → index.umd.cjs} +0 -0
  64. /package/dist/MenuItem/{index.js.js → index.js} +0 -0
  65. /package/dist/MenuItem/{index.umd.cjs.js → index.umd.cjs} +0 -0
  66. /package/dist/Popover/{index.js.js → index.js} +0 -0
  67. /package/dist/Popover/{index.umd.cjs.js → index.umd.cjs} +0 -0
  68. /package/dist/RadioGroup/{index.js.js → index.js} +0 -0
  69. /package/dist/RadioGroup/{index.umd.cjs.js → index.umd.cjs} +0 -0
  70. /package/dist/Shortcut/{index.js.js → index.js} +0 -0
  71. /package/dist/Shortcut/{index.umd.cjs.js → index.umd.cjs} +0 -0
  72. /package/dist/Skeleton/{index.js.js → index.js} +0 -0
  73. /package/dist/Skeleton/{index.umd.cjs.js → index.umd.cjs} +0 -0
  74. /package/dist/Spinner/{index.js.js → index.js} +0 -0
  75. /package/dist/Spinner/{index.umd.cjs.js → index.umd.cjs} +0 -0
  76. /package/dist/Switch/{index.js.js → index.js} +0 -0
  77. /package/dist/Switch/{index.umd.cjs.js → index.umd.cjs} +0 -0
  78. /package/dist/Tree/{index.js.js → index.js} +0 -0
  79. /package/dist/Tree/{index.umd.cjs.js → index.umd.cjs} +0 -0
  80. /package/dist/utils/{index.js.js → index.js} +0 -0
  81. /package/dist/utils/{index.umd.cjs.js → index.umd.cjs} +0 -0
@@ -1,19 +1,19 @@
1
- import { defineComponent as _e, useSlots as $e, computed as P, createElementBlock as p, openBlock as a, normalizeClass as g, unref as t, createElementVNode as v, createCommentVNode as R, renderSlot as H, createBlock as T, createTextVNode as le, toDisplayString as J, h as Ze, ref as Q, watch as X, useTemplateRef as Ne, onBeforeUnmount as Oe, shallowRef as qe, createVNode as f, withCtx as d, normalizeStyle as Fe, Fragment as A, renderList as Z, mergeProps as I, createSlots as Ce, normalizeProps as Ge, guardReactiveProps as Ue, nextTick as se } from "vue";
1
+ import { defineComponent as Se, useSlots as $e, computed as P, createElementBlock as f, openBlock as a, normalizeClass as d, unref as t, createElementVNode as w, createCommentVNode as R, renderSlot as H, createBlock as T, createTextVNode as ne, toDisplayString as J, h as Ze, ref as Q, watch as ae, useTemplateRef as Ne, onBeforeUnmount as Oe, shallowRef as qe, createVNode as g, withCtx as m, normalizeStyle as Fe, Fragment as A, renderList as Z, mergeProps as I, createSlots as Ce, normalizeProps as Ge, guardReactiveProps as Ue, nextTick as le } from "vue";
2
2
  import { createColumnHelper as Je, flattenBy as Qe, useVueTable as Xe, getSortedRowModel as Ye, getCoreRowModel as xe } from "@tanstack/vue-table";
3
3
  import { b as et } from "../_baseIsEqual-BknLKouD.js";
4
- import { i as tt, b as ot, a as re } from "../isArray-CdbPONHA.js";
4
+ import { i as tt, b as ot, a as se } from "../isArray-CdbPONHA.js";
5
5
  import { u as nt } from "../useId-DvOSMFGX.js";
6
6
  import { _ as ye } from "../Checkbox.vue_vue_type_style_index_0_lang-BD4g7E0x.js";
7
- import { c as he, _ as lt, a as ie } from "../Menu.vue_vue_type_style_index_0_lang-Ck9CxDR-.js";
7
+ import { c as he, _ as lt, a as re } from "../Menu.vue_vue_type_style_index_0_lang-Ck9CxDR-.js";
8
8
  import { _ as st } from "../ActionButton.vue_vue_type_script_setup_true_lang-BG7u9LIG.js";
9
- import { g as Re, a as He, b as k, w as rt } from "../class-BCq3bHT0.js";
9
+ import { g as Re, a as He, b as C, w as rt } from "../class-BCq3bHT0.js";
10
10
  import { cva as ze } from "class-variance-authority";
11
11
  import { g as it } from "../options-JBqnVZUl.js";
12
- import { _ as Y } from "../Icon.vue_vue_type_style_index_0_lang-BpIpKu8I.js";
12
+ import { _ as X } from "../Icon.vue_vue_type_style_index_0_lang-BpIpKu8I.js";
13
13
  import { getCssVar as N, getBreakpoints as at } from "@pantograph/tokens";
14
14
  import { o as Be } from "../omit-CD3OjwFx.js";
15
15
  import { u as ct } from "../uniq-DSVd52ma.js";
16
- import { i as ae, a as V } from "../_flatRest-Dx0ZZgOx.js";
16
+ import { i as ie, a as V } from "../_flatRest-Dx0ZZgOx.js";
17
17
  import { useBreakpoints as ut, useIntersectionObserver as dt } from "@vueuse/core";
18
18
  import { _ as mt } from "../Skeleton.vue_vue_type_style_index_0_lang-Cjdn_7-J.js";
19
19
  import { _ as ve } from "../Popover.vue_vue_type_style_index_0_lang-DWUbX1hj.js";
@@ -22,15 +22,15 @@ import { _ as we } from "../Divider.vue_vue_type_style_index_0_lang-gVx_vqDi.js"
22
22
  import { _ as ke } from "../IconButton.vue_vue_type_script_setup_true_lang-7_PYDN9E.js";
23
23
  import { _ as ft } from "../Switch.vue_vue_type_style_index_0_lang-RH_NKvPq.js";
24
24
  import { g as be } from "../get-B14Mml42.js";
25
- import { _ as gt, e as Ct, c as G, a as yt, d as ht, b as U } from "../THead.vue_vue_type_style_index_0_lang-TEr0pOmV.js";
26
- function Se(B, _) {
27
- return et(B, _);
25
+ import { _ as gt, e as Ct, c as G, a as yt, d as ht, b as U } from "../THead.vue_vue_type_style_index_0_lang-a7H6iK5g.js";
26
+ function _e(B, S) {
27
+ return et(B, S);
28
28
  }
29
29
  const vt = ["simple", "advance"], wt = {
30
30
  key: 1,
31
31
  viewBox: "0 0 108 88",
32
32
  fill: "none"
33
- }, kt = ["fill"], bt = ["fill"], St = ["fill"], _t = ["fill"], $t = ["stroke"], Rt = ["stroke"], Ht = ["stroke"], zt = /* @__PURE__ */ _e({
33
+ }, kt = ["fill"], bt = ["fill"], _t = ["fill"], St = ["fill"], $t = ["stroke"], Rt = ["stroke"], Ht = ["stroke"], zt = /* @__PURE__ */ Se({
34
34
  ...it("Empty"),
35
35
  __name: "Empty",
36
36
  props: {
@@ -47,67 +47,67 @@ const vt = ["simple", "advance"], wt = {
47
47
  description: {}
48
48
  },
49
49
  setup(B) {
50
- const _ = B, l = $e(), z = Re("empty"), b = ze(z, {
50
+ const S = B, s = $e(), z = Re("empty"), b = ze(z, {
51
51
  variants: {
52
52
  type: He(vt, z)
53
53
  }
54
- }), u = P(() => _.title || !!l.title), $ = P(() => _.description || !!l.description);
55
- return (s, C) => (a(), p("div", {
56
- class: g([
54
+ }), c = P(() => S.title || !!s.title), $ = P(() => S.description || !!s.description);
55
+ return (l, y) => (a(), f("div", {
56
+ class: d([
57
57
  t(b)({
58
- type: s.type
58
+ type: l.type
59
59
  }),
60
- _.class
60
+ S.class
61
61
  ])
62
62
  }, [
63
- v("div", {
64
- class: g([t(k)(t(z), "image"), s.imageCls])
63
+ w("div", {
64
+ class: d([t(C)(t(z), "image"), l.imageCls])
65
65
  }, [
66
- H(s.$slots, "image", {}, () => [
67
- s.type === "simple" ? (a(), T(Y, {
66
+ H(l.$slots, "image", {}, () => [
67
+ l.type === "simple" ? (a(), T(X, {
68
68
  key: 0,
69
- icon: s.icon,
69
+ icon: l.icon,
70
70
  size: "sm"
71
- }, null, 8, ["icon"])) : (a(), p("svg", wt, [
72
- v("path", {
71
+ }, null, 8, ["icon"])) : (a(), f("svg", wt, [
72
+ w("path", {
73
73
  "fill-rule": "evenodd",
74
74
  "clip-rule": "evenodd",
75
75
  d: "M23.6045 61.3504H67.8586C68.1089 61.3504 68.353 61.323 68.588 61.2709C68.823 61.323 69.0671 61.3504 69.3175 61.3504H94.6055C96.4856 61.3504 98.0097 59.8051 98.0097 57.899C98.0097 55.9929 96.4856 54.4477 94.6055 54.4477H91.6877C89.8076 54.4477 88.2835 52.9024 88.2835 50.9963C88.2835 49.0902 89.8076 47.545 91.6877 47.545H100.928C102.808 47.545 104.332 45.9997 104.332 44.0936C104.332 42.1875 102.808 40.6423 100.928 40.6423H90.2287C92.1088 40.6423 93.6329 39.0971 93.6329 37.1909C93.6329 35.2848 92.1088 33.7396 90.2287 33.7396H59.105C60.9851 33.7396 62.5092 32.1944 62.5092 30.2882C62.5092 28.3821 60.9851 26.8369 59.105 26.8369H31.3854C29.5053 26.8369 27.9813 28.3821 27.9813 30.2882C27.9813 32.1944 29.5053 33.7396 31.3854 33.7396H11.9331C10.053 33.7396 8.52891 35.2848 8.52891 37.1909C8.52891 39.0971 10.053 40.6423 11.9331 40.6423H24.0908C25.9708 40.6423 27.4949 42.1875 27.4949 44.0936C27.4949 45.9997 25.9708 47.545 24.0908 47.545H4.63844C2.75838 47.545 1.23428 49.0902 1.23428 50.9963C1.23428 52.9024 2.75838 54.4477 4.63844 54.4477H23.6045C21.7244 54.4477 20.2003 55.9929 20.2003 57.899C20.2003 59.8051 21.7244 61.3504 23.6045 61.3504ZM102.873 61.3504C104.753 61.3504 106.277 59.8051 106.277 57.899C106.277 55.9929 104.753 54.4477 102.873 54.4477C100.993 54.4477 99.4686 55.9929 99.4686 57.899C99.4686 59.8051 100.993 61.3504 102.873 61.3504Z",
76
76
  fill: t(N)("primary-0")
77
77
  }, null, 8, kt),
78
- v("path", {
78
+ w("path", {
79
79
  "fill-rule": "evenodd",
80
80
  "clip-rule": "evenodd",
81
81
  d: "M45.9044 52.7159C45.8528 53.0686 45.8261 53.4291 45.8261 53.7956C45.8261 58.0211 49.3738 61.4465 53.75 61.4465C58.1262 61.4465 61.6738 58.0211 61.6738 53.7956C61.6738 53.4291 61.6472 53.0686 61.5956 52.7159H80.8232V69.735C80.8232 70.7914 79.9363 71.6477 78.8422 71.6477H28.6578C27.5637 71.6477 26.6768 70.7914 26.6768 69.735V52.7159H45.9044Z",
82
82
  fill: t(N)("gray-0")
83
83
  }, null, 8, bt),
84
- v("path", {
84
+ w("path", {
85
85
  "fill-rule": "evenodd",
86
86
  "clip-rule": "evenodd",
87
87
  d: "M62.3342 52.9157C62.3342 57.6598 58.4909 61.5057 53.75 61.5057C49.0091 61.5057 45.1658 57.6598 45.1658 52.9157C45.1658 52.762 45.1698 52.6092 45.1778 52.4575H26.6768L32.9898 33.779C33.2619 32.9738 34.0169 32.4318 34.8663 32.4318H72.6337C73.4831 32.4318 74.238 32.9738 74.5102 33.779L80.8232 52.4575H62.3222C62.3301 52.6092 62.3342 52.762 62.3342 52.9157Z",
88
88
  fill: t(N)("gray-0")
89
- }, null, 8, St),
90
- v("path", {
89
+ }, null, 8, _t),
90
+ w("path", {
91
91
  "fill-rule": "evenodd",
92
92
  "clip-rule": "evenodd",
93
93
  d: "M61.2612 53.3613C61.2612 57.1125 57.8983 60.8295 53.75 60.8295C49.6017 60.8295 46.2388 57.1125 46.2388 53.3613C46.2388 53.2398 46.2424 52.4429 46.2493 52.3229H32.0915L37.6153 38.9061C37.8534 38.2694 38.514 37.8409 39.2573 37.8409H68.2427C68.986 37.8409 69.6466 38.2694 69.8847 38.9061L75.4085 52.3229H61.2507C61.2576 52.4429 61.2612 53.2398 61.2612 53.3613Z",
94
94
  fill: t(N)("primary-1")
95
- }, null, 8, _t),
96
- v("path", {
95
+ }, null, 8, St),
96
+ w("path", {
97
97
  "fill-rule": "evenodd",
98
98
  "clip-rule": "evenodd",
99
99
  d: "M26.846 52.3862V70.2955C26.846 70.9489 27.3763 71.4787 28.0305 71.4787H79.4695C80.1237 71.4787 80.654 70.9489 80.654 70.2955V52.3862L74.2278 33.405C74.065 32.9244 73.6137 32.6009 73.1058 32.6009H34.3942C33.8863 32.6009 33.435 32.9244 33.2722 33.405L26.846 52.3862Z",
100
100
  stroke: t(N)("primary-5"),
101
101
  "stroke-width": "2"
102
102
  }, null, 8, $t),
103
- v("path", {
103
+ w("path", {
104
104
  d: "M35.4756 52.0398C38.14 52.0398 41.0154 52.0398 44.1017 52.0398C45.3716 52.0398 45.3716 52.9313 45.3716 53.392C45.3716 57.8731 49.0916 61.5057 53.6805 61.5057C58.2693 61.5057 61.9893 57.8731 61.9893 53.392C61.9893 52.9313 61.9893 52.0398 63.2592 52.0398H80.1463M30.4493 52.0398H32.0915H30.4493Z",
105
105
  stroke: t(N)("primary-5"),
106
106
  "stroke-width": "2",
107
107
  "stroke-linecap": "round",
108
108
  "stroke-linejoin": "round"
109
109
  }, null, 8, Rt),
110
- v("path", {
110
+ w("path", {
111
111
  d: "M70.7382 16.4092L63.2256 24.8292M53.1406 13.5V24.8292V13.5ZM35.4756 16.4092L42.9882 24.8292L35.4756 16.4092Z",
112
112
  stroke: t(N)("primary-5"),
113
113
  "stroke-width": "2",
@@ -117,108 +117,108 @@ const vt = ["simple", "advance"], wt = {
117
117
  ]))
118
118
  ])
119
119
  ], 2),
120
- s.type === "simple" && u.value ? (a(), p("div", {
120
+ l.type === "simple" && c.value ? (a(), f("div", {
121
121
  key: 0,
122
- class: g([t(k)(t(z), "title"), s.titleCls])
122
+ class: d([t(C)(t(z), "title"), l.titleCls])
123
123
  }, [
124
- H(s.$slots, "title", {}, () => [
125
- le(J(s.title), 1)
124
+ H(l.$slots, "title", {}, () => [
125
+ ne(J(l.title), 1)
126
126
  ])
127
- ], 2)) : u.value || $.value || l.actions ? (a(), p("div", {
127
+ ], 2)) : c.value || $.value || s.actions ? (a(), f("div", {
128
128
  key: 1,
129
- class: g([t(k)(t(z), "content"), s.contentCls])
129
+ class: d([t(C)(t(z), "content"), l.contentCls])
130
130
  }, [
131
- u.value || $.value ? (a(), p("div", {
131
+ c.value || $.value ? (a(), f("div", {
132
132
  key: 0,
133
- class: g([t(k)(t(z), "text"), s.textCls])
133
+ class: d([t(C)(t(z), "text"), l.textCls])
134
134
  }, [
135
- u.value ? (a(), p("div", {
135
+ c.value ? (a(), f("div", {
136
136
  key: 0,
137
- class: g([t(k)(t(z), "title"), s.titleCls])
137
+ class: d([t(C)(t(z), "title"), l.titleCls])
138
138
  }, [
139
- H(s.$slots, "title", {}, () => [
140
- le(J(s.title), 1)
139
+ H(l.$slots, "title", {}, () => [
140
+ ne(J(l.title), 1)
141
141
  ])
142
142
  ], 2)) : R("", !0),
143
- $.value ? (a(), p("div", {
143
+ $.value ? (a(), f("div", {
144
144
  key: 1,
145
- class: g([t(k)(t(z), "description"), s.descriptionCls])
145
+ class: d([t(C)(t(z), "description"), l.descriptionCls])
146
146
  }, [
147
- H(s.$slots, "description", {}, () => [
148
- le(J(s.description), 1)
147
+ H(l.$slots, "description", {}, () => [
148
+ ne(J(l.description), 1)
149
149
  ])
150
150
  ], 2)) : R("", !0)
151
151
  ], 2)) : R("", !0),
152
- l.actions ? (a(), p("div", {
152
+ s.actions ? (a(), f("div", {
153
153
  key: 1,
154
- class: g([t(k)(t(z), "actions"), s.actionsCls])
154
+ class: d([t(C)(t(z), "actions"), l.actionsCls])
155
155
  }, [
156
- H(s.$slots, "actions")
156
+ H(l.$slots, "actions")
157
157
  ], 2)) : R("", !0)
158
158
  ], 2)) : R("", !0)
159
159
  ], 2));
160
160
  }
161
- }), Bt = (B, { isColumnWrapped: _, selectionId: l }) => {
161
+ }), Bt = (B, { isColumnWrapped: S, selectionId: s }) => {
162
162
  const z = (o) => {
163
- var m;
164
- const c = (y) => y === "list" ? "md" : "sm";
163
+ var p;
164
+ const u = (h) => h === "list" ? "md" : "sm";
165
165
  return {
166
166
  ...(o == null ? void 0 : o.skeletonProps) ?? {},
167
167
  style: "width: 100%",
168
- size: c((m = o == null ? void 0 : o.skeletonProps) == null ? void 0 : m.type)
168
+ size: u((p = o == null ? void 0 : o.skeletonProps) == null ? void 0 : p.type)
169
169
  };
170
170
  }, b = (o) => {
171
- var m, y;
172
- const c = (m = o.props) == null ? void 0 : m.column.columnDef;
173
- return V(c == null ? void 0 : c.render) && o.props.row ? (y = c == null ? void 0 : c.render) == null ? void 0 : y.call(c, {
171
+ var p, h;
172
+ const u = (p = o.props) == null ? void 0 : p.column.columnDef;
173
+ return V(u == null ? void 0 : u.render) && o.props.row ? (h = u == null ? void 0 : u.render) == null ? void 0 : h.call(u, {
174
174
  index: o.props.row.index,
175
175
  record: o.props.row.original,
176
- column: Be(c, "render")
176
+ column: Be(u, "render")
177
177
  }) : typeof o.render == "function" || typeof o.render == "object" ? Ze(o.render, o.props) : o.render;
178
- }, u = (o) => {
179
- let c = {};
178
+ }, c = (o) => {
179
+ let u = {};
180
180
  if (o) {
181
- const m = (D) => Number(D) >= 0 ? `${D}px` : D, { width: y, maxWidth: M, minWidth: L } = o;
182
- (y || M || L) && (c = {
183
- width: m(y),
184
- maxWidth: m(M),
185
- minWidth: m(L),
186
- overflow: y || M ? "hidden" : void 0
181
+ const p = (D) => Number(D) >= 0 ? `${D}px` : D, { width: h, maxWidth: M, minWidth: L } = o;
182
+ (h || M || L) && (u = {
183
+ width: p(h),
184
+ maxWidth: p(M),
185
+ minWidth: p(L),
186
+ overflow: h || M ? "hidden" : void 0
187
187
  });
188
188
  }
189
- return c;
190
- }, $ = {}, s = (o, c = !0) => {
191
- var y;
192
- let m = 1;
193
- return ((y = o == null ? void 0 : o.subHeaders) == null ? void 0 : y.length) === 1 && o.column.id === o.subHeaders[0].column.id && (m += s(o.subHeaders[0], !1)), c && (!$[o.column.id] || $[o.column.id] < m) && ($[o.column.id] = m), m;
194
- }, C = (o, c = {}) => {
195
- var m;
189
+ return u;
190
+ }, $ = {}, l = (o, u = !0) => {
191
+ var h;
192
+ let p = 1;
193
+ return ((h = o == null ? void 0 : o.subHeaders) == null ? void 0 : h.length) === 1 && o.column.id === o.subHeaders[0].column.id && (p += l(o.subHeaders[0], !1)), u && (!$[o.column.id] || $[o.column.id] < p) && ($[o.column.id] = p), p;
194
+ }, y = (o, u = {}) => {
195
+ var p;
196
196
  if (o != null && o.column) {
197
- const y = (m = o == null ? void 0 : o.column) == null ? void 0 : m.columnDef, M = [], L = {};
198
- if (ae(y)) {
199
- let D = _(o.column.id);
200
- const { customCell: K, class: F } = y;
201
- if (he(F) || M.push(F), K && (ae(K) || V(K))) {
202
- const q = (w) => {
203
- if (ae(w)) {
204
- const { wrap: E, colSpan: ee, rowSpan: te } = w;
205
- D = D || (E ?? !1), L.colSpan = ee, L.rowSpan = te;
197
+ const h = (p = o == null ? void 0 : o.column) == null ? void 0 : p.columnDef, M = [], L = {};
198
+ if (ie(h)) {
199
+ let D = S(o.column.id);
200
+ const { customCell: K, class: F } = h;
201
+ if (he(F) || M.push(F), K && (ie(K) || V(K))) {
202
+ const q = (k) => {
203
+ if (ie(k)) {
204
+ const { wrap: E, colSpan: x, rowSpan: ee } = k;
205
+ D = D || (E ?? !1), L.colSpan = x, L.rowSpan = ee;
206
206
  }
207
207
  };
208
208
  V(K) && o.row ? q(
209
209
  K({
210
210
  index: o.row.index,
211
211
  record: o.row.original,
212
- column: y
212
+ column: h
213
213
  })
214
214
  ) : q(K);
215
215
  }
216
- o.header ? L.rowSpan = s(o.header) : D && (L.wrap = !0);
216
+ o.header ? L.rowSpan = l(o.header) : D && (L.wrap = !0);
217
217
  }
218
218
  return {
219
219
  class: he(M) ? void 0 : M,
220
220
  ...L,
221
- ...c
221
+ ...u
222
222
  };
223
223
  }
224
224
  return {};
@@ -227,20 +227,20 @@ const vt = ["simple", "advance"], wt = {
227
227
  getSkeletonProps: z,
228
228
  RenderCell: b,
229
229
  getThProps: (o) => {
230
- var c, m, y;
231
- return C(o, {
232
- colSpan: (c = o == null ? void 0 : o.header) == null ? void 0 : c.colSpan,
233
- "data-has-children": ((y = (m = o == null ? void 0 : o.column) == null ? void 0 : m.columns) == null ? void 0 : y.length) > 1 ? !0 : void 0
230
+ var u, p, h;
231
+ return y(o, {
232
+ colSpan: (u = o == null ? void 0 : o.header) == null ? void 0 : u.colSpan,
233
+ "data-has-children": ((h = (p = o == null ? void 0 : o.column) == null ? void 0 : p.columns) == null ? void 0 : h.length) > 1 ? !0 : void 0
234
234
  });
235
235
  },
236
- getTdProps: (o) => C(o),
236
+ getTdProps: (o) => y(o),
237
237
  getColProps: (o) => {
238
- const c = u(o.columnDef);
239
- return o.id === l && (c.width = "var(--pt-dimension-2800)"), {
240
- style: c
238
+ const u = c(o.columnDef);
239
+ return o.id === s && (u.width = "var(--pt-dimension-2800)"), {
240
+ style: u
241
241
  };
242
242
  },
243
- isThVisible: (o, c, m) => $[m] === 1 ? !0 : c - o === $[m]
243
+ isThVisible: (o, u, p) => $[p] === 1 ? !0 : u - o === $[p]
244
244
  };
245
245
  };
246
246
  var At = "[object Boolean]";
@@ -248,26 +248,26 @@ function It(B) {
248
248
  return B === !0 || B === !1 || tt(B) && ot(B) == At;
249
249
  }
250
250
  const Tt = (B) => {
251
- const _ = Q([]), l = (s) => s ? _.value.findIndex((C) => C.id === s) : -1, z = (s) => {
252
- if (s) return _.value.find((C) => C.id === s);
253
- }, b = (s) => {
254
- var C;
255
- return !!((C = z(s)) != null && C.wrap);
256
- }, u = (s) => {
257
- const { id: C } = s;
258
- if (!C) return !1;
259
- const W = s.wrap ?? !b(C), O = l(C);
260
- return O >= 0 ? _.value[O] = { id: C, wrap: W } : _.value.push({ id: C, wrap: W }), !0;
251
+ const S = Q([]), s = (l) => l ? S.value.findIndex((y) => y.id === l) : -1, z = (l) => {
252
+ if (l) return S.value.find((y) => y.id === l);
253
+ }, b = (l) => {
254
+ var y;
255
+ return !!((y = z(l)) != null && y.wrap);
256
+ }, c = (l) => {
257
+ const { id: y } = l;
258
+ if (!y) return !1;
259
+ const W = l.wrap ?? !b(y), O = s(y);
260
+ return O >= 0 ? S.value[O] = { id: y, wrap: W } : S.value.push({ id: y, wrap: W }), !0;
261
261
  }, $ = P(
262
- () => (B.columns ?? []).filter((s) => It(s.wrap)).map((s) => ({
263
- id: s.id,
264
- wrap: !!s.wrap
262
+ () => (B.columns ?? []).filter((l) => It(l.wrap)).map((l) => ({
263
+ id: l.id,
264
+ wrap: !!l.wrap
265
265
  }))
266
266
  );
267
- return X(
267
+ return ae(
268
268
  $,
269
- (s) => {
270
- _.value = [..._.value, ...s];
269
+ (l) => {
270
+ S.value = [...S.value, ...l];
271
271
  },
272
272
  {
273
273
  immediate: !0,
@@ -275,12 +275,9 @@ const Tt = (B) => {
275
275
  }
276
276
  ), {
277
277
  isColumnWrapped: b,
278
- toggleWrap: u
278
+ toggleWrap: c
279
279
  };
280
- }, Pt = {
281
- key: 2,
282
- class: "h-full flex items-center"
283
- }, Lt = { class: "h-1600 flex ps-400 gap-400 text-fg items-center" }, Mt = { class: "txs-body" }, Vt = { class: "flex items-center" }, ao = /* @__PURE__ */ _e({
280
+ }, lo = /* @__PURE__ */ Se({
284
281
  __name: "DataTable",
285
282
  props: {
286
283
  columns: {},
@@ -308,85 +305,85 @@ const Tt = (B) => {
308
305
  noHeader: { type: Boolean }
309
306
  },
310
307
  emits: ["fetch"],
311
- setup(B, { emit: _ }) {
312
- const l = B, z = _, b = $e(), u = Re("data_table", rt), $ = Je(), s = `$${u}_selection$`, C = P(() => {
308
+ setup(B, { emit: S }) {
309
+ const s = B, z = S, b = $e(), c = Re("data_table", rt), $ = Je(), l = `$${c}_selection$`, y = P(() => {
313
310
  var e;
314
- return ((e = l.actionCol) == null ? void 0 : e.id) ?? `$${u}_action$`;
311
+ return ((e = s.actionCol) == null ? void 0 : e.id) ?? `$${c}_action$`;
315
312
  }), W = (e) => Be(e ?? {}, "title", "sorter", "columns", "id", "dataIndex"), O = P(() => {
316
- var h;
313
+ var v;
317
314
  const e = (n) => {
318
315
  var j;
319
- const S = n.id ?? nt(`${u}--col`);
320
- return re(be(n, l.childrenColumnName)) ? $.group({
316
+ const _ = n.id ?? nt(`${c}--col`);
317
+ return se(be(n, s.childrenColumnName)) ? $.group({
321
318
  header: n.title,
322
- id: S,
323
- columns: (j = be(n, l.childrenColumnName) ?? []) == null ? void 0 : j.map(e),
319
+ id: _,
320
+ columns: (j = be(n, s.childrenColumnName) ?? []) == null ? void 0 : j.map(e),
324
321
  enableSorting: !1,
325
322
  ...W(n)
326
323
  }) : $.accessor(n.dataIndex ?? n.id, {
327
324
  header: n.title,
328
- id: S,
329
- sortingFn: typeof n.sorter == "function" ? (ne, We) => n.sorter(ne.original, We.original) : n.sorter,
325
+ id: _,
326
+ sortingFn: typeof n.sorter == "function" ? (oe, We) => n.sorter(oe.original, We.original) : n.sorter,
330
327
  enableSorting: !!n.sorter,
331
328
  ...W(n)
332
329
  });
333
330
  };
334
- if (!re(l.columns)) throw "no columns";
335
- const i = l.columns.map(({ id: n }) => n);
336
- if (ct(i).length !== i.length) throw "no uniq column ids";
337
- const r = [];
338
- return l.rowSelection && l.rowKey && r.push(
339
- $.accessor(s, {
340
- id: s,
331
+ if (!se(s.columns)) throw "no columns";
332
+ const r = s.columns.map(({ id: n }) => n);
333
+ if (ct(r).length !== r.length) throw "no uniq column ids";
334
+ const i = [];
335
+ return s.rowSelection && s.rowKey && i.push(
336
+ $.accessor(l, {
337
+ id: l,
341
338
  enableSorting: !1
342
339
  })
343
- ), l.columns.forEach((n) => {
344
- r.push(e(n));
345
- }), (b.action || b.hoverAction) && r.push(
346
- $.accessor(C.value, {
347
- id: C.value,
348
- header: (h = l.actionCol) == null ? void 0 : h.title,
340
+ ), s.columns.forEach((n) => {
341
+ i.push(e(n));
342
+ }), (b.action || b.hoverAction) && i.push(
343
+ $.accessor(y.value, {
344
+ id: y.value,
345
+ header: (v = s.actionCol) == null ? void 0 : v.title,
349
346
  enableSorting: !1,
350
- ...W(l.actionCol)
347
+ ...W(s.actionCol)
351
348
  })
352
- ), r;
353
- }), { toggleWrap: ce, isColumnWrapped: x } = Tt(l), o = Q({}), c = P(() => Object.keys(o.value)), m = P(
354
- () => l.rowKey ? Qe(l.data, (e) => e.children).map(
355
- (e) => e[l.rowKey]
349
+ ), i;
350
+ }), { toggleWrap: ce, isColumnWrapped: Y } = Tt(s), o = Q({}), u = P(() => Object.keys(o.value)), p = P(
351
+ () => s.rowKey ? Qe(s.data, (e) => e.children).map(
352
+ (e) => e[s.rowKey]
356
353
  ) : []
357
- ), y = () => {
354
+ ), h = () => {
358
355
  const e = Object.fromEntries(
359
- c.value.filter((i) => {
360
- var r;
361
- return !((r = l.rowSelection) != null && r.preserveSelectedRowKeys) && l.rowKey ? m.value.includes(i) : !0;
362
- }).map((i) => [i, !0])
356
+ u.value.filter((r) => {
357
+ var i;
358
+ return !((i = s.rowSelection) != null && i.preserveSelectedRowKeys) && s.rowKey ? p.value.includes(r) : !0;
359
+ }).map((r) => [r, !0])
363
360
  );
364
- Object.keys(e).length !== c.value.length && (o.value = e, se(() => {
365
- var i;
366
- V((i = l.rowSelection) == null ? void 0 : i.onChange) && l.rowSelection.onChange(E.value);
361
+ Object.keys(e).length !== u.value.length && (o.value = e, le(() => {
362
+ var r;
363
+ V((r = s.rowSelection) == null ? void 0 : r.onChange) && s.rowSelection.onChange(E.value);
367
364
  }));
368
- }, M = P(() => (y(), [...l.data])), L = at(), K = ut(
365
+ }, M = P(() => (h(), [...s.data])), L = at(), K = ut(
369
366
  Object.fromEntries(
370
367
  Object.keys(L).map((e) => [e, L[e].minWidth])
371
368
  ),
372
369
  { strategy: "min-width" }
373
370
  ).active(), F = Q({});
374
- X(
371
+ ae(
375
372
  K,
376
373
  (e) => {
377
374
  F.value = Object.fromEntries(
378
- O.value.map((i) => {
379
- var r;
375
+ O.value.map((r) => {
376
+ var i;
380
377
  return [
381
- i.id,
382
- re(i == null ? void 0 : i.responsive) ? (r = i.responsive) == null ? void 0 : r.includes(e) : !0
378
+ r.id,
379
+ se(r == null ? void 0 : r.responsive) ? (i = r.responsive) == null ? void 0 : i.includes(e) : !0
383
380
  ];
384
381
  })
385
382
  );
386
383
  },
387
384
  { immediate: !0 }
388
385
  );
389
- const q = Q([]), w = Xe({
386
+ const q = Q([]), k = Xe({
390
387
  // debugTable: true,
391
388
  getSubRows: (e) => e.children,
392
389
  enableSorting: !0,
@@ -412,6 +409,9 @@ const Tt = (B) => {
412
409
  get columns() {
413
410
  return O.value;
414
411
  },
412
+ getRowId(e, r) {
413
+ return s.rowKey ? e[s.rowKey] : r;
414
+ },
415
415
  getRowCanExpand: () => !0,
416
416
  getCoreRowModel: xe(),
417
417
  getSortedRowModel: Ye(),
@@ -419,182 +419,182 @@ const Tt = (B) => {
419
419
  o.value = typeof e == "function" ? e(o.value) : e;
420
420
  }
421
421
  }), E = P(() => ({
422
- selectedRowKeys: c.value,
423
- selectedRows: w.getFilteredSelectedRowModel().flatRows.map((e) => e.original)
422
+ selectedRowKeys: u.value,
423
+ selectedRows: k.getFilteredSelectedRowModel().flatRows.map((e) => e.original)
424
424
  }));
425
- X(
426
- () => l.rowKey,
427
- () => {
428
- w._getRowId = l.rowKey ? (e) => e[l.rowKey] : void 0;
429
- },
430
- { immediate: !0 }
431
- ), X(
425
+ ae(
432
426
  () => {
433
427
  var e;
434
- return (e = l.rowSelection) == null ? void 0 : e.selectedRowKeys;
428
+ return (e = s.rowSelection) == null ? void 0 : e.selectedRowKeys;
435
429
  },
436
- (e, i) => {
437
- var r, h;
438
- if ((h = (r = l.rowSelection) == null ? void 0 : r.selectedRowKeys) != null && h.length && !Se(e, i)) {
430
+ (e, r) => {
431
+ var i, v;
432
+ if ((v = (i = s.rowSelection) == null ? void 0 : i.selectedRowKeys) != null && v.length && !_e(e, r)) {
439
433
  const n = Object.fromEntries(
440
- t(l.rowSelection.selectedRowKeys ?? Object.keys(o.value)).map(
441
- (S) => [S, !0]
434
+ t(s.rowSelection.selectedRowKeys ?? Object.keys(o.value)).map(
435
+ (_) => [_, !0]
442
436
  )
443
437
  );
444
- Se(n, o.value) || (o.value = n);
438
+ _e(n, o.value) || (o.value = n);
445
439
  }
446
440
  },
447
441
  { immediate: !0 }
448
442
  );
449
- const ee = P(() => w.getIsAllRowsSelected() ? !0 : w.getIsSomeRowsSelected() ? "indeterminate" : !1), te = (e) => {
450
- w.getIsSomeRowsSelected() || w.getIsAllRowsSelected() ? w.toggleAllRowsSelected(!1) : w.toggleAllRowsSelected(!0), se(() => {
451
- var i, r;
452
- V((i = l.rowSelection) == null ? void 0 : i.onSelectAll) && l.rowSelection.onSelectAll({ ...E.value, selected: e }), V((r = l.rowSelection) == null ? void 0 : r.onChange) && l.rowSelection.onChange(E.value);
443
+ const x = P(() => k.getIsAllRowsSelected() ? !0 : k.getIsSomeRowsSelected() ? "indeterminate" : !1), ee = (e) => {
444
+ k.getIsSomeRowsSelected() || k.getIsAllRowsSelected() ? k.toggleAllRowsSelected(!1) : k.toggleAllRowsSelected(!0), le(() => {
445
+ var r, i;
446
+ V((r = s.rowSelection) == null ? void 0 : r.onSelectAll) && s.rowSelection.onSelectAll({ ...E.value, selected: e }), V((i = s.rowSelection) == null ? void 0 : i.onChange) && s.rowSelection.onChange(E.value);
453
447
  });
454
- }, Ae = (e, i) => {
455
- var r;
456
- i.toggleSelected(e, {
457
- selectChildren: !((r = l.rowSelection) != null && r.checkStrictly)
458
- }), se(() => {
459
- var h, n;
460
- V((h = l.rowSelection) == null ? void 0 : h.onSelect) && l.rowSelection.onSelect({
448
+ }, Ae = (e, r) => {
449
+ var i;
450
+ r.toggleSelected(e, {
451
+ selectChildren: !((i = s.rowSelection) != null && i.checkStrictly)
452
+ }), le(() => {
453
+ var v, n;
454
+ V((v = s.rowSelection) == null ? void 0 : v.onSelect) && s.rowSelection.onSelect({
461
455
  ...E.value,
462
456
  selected: e,
463
- record: i.original
464
- }), V((n = l.rowSelection) == null ? void 0 : n.onChange) && l.rowSelection.onChange(E.value);
457
+ record: r.original
458
+ }), V((n = s.rowSelection) == null ? void 0 : n.onChange) && s.rowSelection.onChange(E.value);
465
459
  });
466
460
  }, Ie = (e) => {
467
- var i, r;
468
- return V((i = l.rowSelection) == null ? void 0 : i.getCheckboxProps) && ((r = l.rowSelection) == null || r.getCheckboxProps(e)), {};
461
+ var r, i;
462
+ return V((r = s.rowSelection) == null ? void 0 : r.getCheckboxProps) && ((i = s.rowSelection) == null || i.getCheckboxProps(e)), {};
469
463
  }, ue = (e) => {
470
- var i;
464
+ var r;
471
465
  if (e.getIsSelected()) return !0;
472
- if ((i = e.subRows) != null && i.length) {
466
+ if ((r = e.subRows) != null && r.length) {
473
467
  if (e.getIsAllSubRowsSelected()) return !0;
474
468
  if (e.getIsSomeSelected()) return "indeterminate";
475
469
  }
476
470
  return !1;
477
471
  }, de = Ne("target"), { stop: Te } = dt(de, ([e]) => {
478
- l.lazyLoading && !l.loading && (e != null && e.isIntersecting) && z("fetch");
472
+ s.lazyLoading && !s.loading && (e != null && e.isIntersecting) && z("fetch");
479
473
  });
480
474
  Oe(Te);
481
- const { getSkeletonProps: Pe, getThProps: Le, RenderCell: me, getTdProps: oe, getColProps: Me, isThVisible: Ve } = Bt(l, {
482
- selectionId: s,
483
- isColumnWrapped: x
475
+ const { getSkeletonProps: Pe, getThProps: Le, RenderCell: me, getTdProps: te, getColProps: Me, isThVisible: Ve } = Bt(s, {
476
+ selectionId: l,
477
+ isColumnWrapped: Y
484
478
  }), pe = P(() => Object.keys(o.value).length), De = () => {
485
479
  o.value = {};
486
- }, Ke = ze(u, {
480
+ }, Ke = ze(c, {
487
481
  variants: {
488
- empty: He("empty", u)
482
+ empty: He("empty", c)
489
483
  }
490
- }), fe = qe(0), Ee = ({ item: e }, i) => {
491
- e.key === "a-z" && i.toggleSorting(!1, !1), e.key === "z-a" && i.toggleSorting(!0, !1), e.key === "wrap" && ce({ id: i.id }), fe.value++;
484
+ }), fe = qe(0), Ee = ({ item: e }, r) => {
485
+ e.key === "a-z" && r.toggleSorting(!1, !1), e.key === "z-a" && r.toggleSorting(!0, !1), e.key === "wrap" && ce({ id: r.id }), fe.value++;
492
486
  }, je = (e) => {
493
- const i = e.getIsSorted();
494
- if (!i) return "tabler:arrows-up-down";
495
- if (i === "desc") return "tabler:arrow-down";
496
- if (i === "asc") return "tabler:arrow-up";
487
+ const r = e.getIsSorted();
488
+ if (!r) return "tabler:arrows-up-down";
489
+ if (r === "desc") return "tabler:arrow-down";
490
+ if (r === "asc") return "tabler:arrow-up";
497
491
  }, ge = P(
498
- () => w.getHeaderGroups().map((e) => ({
492
+ () => k.getHeaderGroups().map((e) => ({
499
493
  ...e,
500
- headers: e.headers.map((i) => ({
501
- ...i,
502
- bindings: Le(i.getContext())
494
+ headers: e.headers.map((r) => ({
495
+ ...r,
496
+ bindings: Le(r.getContext())
503
497
  }))
504
498
  }))
505
499
  );
506
- return (e, i) => (a(), p("div", {
507
- class: g([t(k)(t(u), "root"), e.rootCls])
500
+ return (e, r) => (a(), f("div", {
501
+ class: d([t(C)(t(c), "root"), e.rootCls])
508
502
  }, [
509
- f(ve, {
503
+ g(ve, {
510
504
  "z-index": "1",
511
505
  open: !!(pe.value && b.batchActions),
512
506
  placement: "bottom",
513
507
  "side-offset": -54,
514
508
  "container-cls": "pantograph-tokens dark"
515
509
  }, {
516
- content: d(() => [
517
- v("div", Lt, [
518
- f(pt, {
510
+ content: m(() => [
511
+ w("div", {
512
+ class: d(t(C)(t(c), "batch_actions"))
513
+ }, [
514
+ g(pt, {
519
515
  text: pe.value,
520
516
  size: "xsm"
521
517
  }, null, 8, ["text"]),
522
- v("div", Mt, J(e.batchActionsTitle), 1),
523
- v("div", Vt, [
518
+ w("div", {
519
+ class: d(t(C)(t(c), "batch_actions__title"))
520
+ }, J(e.batchActionsTitle), 3),
521
+ w("div", {
522
+ class: d(t(C)(t(c), "batch_actions__actions"))
523
+ }, [
524
524
  H(e.$slots, "batchActions", Ge(Ue(E.value)))
525
- ]),
526
- f(we, {
525
+ ], 2),
526
+ g(we, {
527
527
  type: "vertical",
528
- class: "!min-h-800"
529
- }),
530
- f(ke, {
528
+ class: d(t(C)(t(c), "batch_actions__divider"))
529
+ }, null, 8, ["class"]),
530
+ g(ke, {
531
531
  icon: "tabler:x",
532
532
  color: "gray",
533
533
  type: "ghost",
534
534
  onClick: De
535
535
  })
536
- ])
536
+ ], 2)
537
537
  ]),
538
- default: d(() => [
539
- v("div", {
540
- class: g([t(k)(t(u), "scroll_area"), e.scrollAreaCls])
538
+ default: m(() => [
539
+ w("div", {
540
+ class: d([t(C)(t(c), "scroll_area"), e.scrollAreaCls])
541
541
  }, [
542
- v("div", {
543
- class: g([t(k)(t(u), "scroll_viewport"), e.scrollViewportCls])
542
+ w("div", {
543
+ class: d([t(C)(t(c), "scroll_viewport"), e.scrollViewportCls])
544
544
  }, [
545
- f(t(gt), {
545
+ g(t(gt), {
546
546
  size: e.size,
547
547
  style: Fe({
548
548
  tableLayout: e.tableLayout
549
549
  }),
550
- class: g([
550
+ class: d([
551
551
  t(Ke)({
552
- empty: !t(w).getRowModel().rows.length
552
+ empty: !t(k).getRowModel().rows.length
553
553
  }),
554
- l.class
554
+ s.class
555
555
  ])
556
556
  }, {
557
- default: d(() => [
558
- v("colgroup", null, [
559
- (a(!0), p(A, null, Z(t(w).getVisibleLeafColumns(), (r, h) => (a(), p("col", I({
560
- key: r.id,
557
+ default: m(() => [
558
+ w("colgroup", null, [
559
+ (a(!0), f(A, null, Z(t(k).getVisibleLeafColumns(), (i, v) => (a(), f("col", I({
560
+ key: i.id,
561
561
  ref_for: !0
562
- }, t(Me)(r)), null, 16))), 128))
562
+ }, t(Me)(i)), null, 16))), 128))
563
563
  ]),
564
564
  e.noHeader ? R("", !0) : (a(), T(t(Ct), {
565
565
  key: 0,
566
- class: g(e.theadCls),
566
+ class: d(e.theadCls),
567
567
  sticky: e.stickyHeader
568
568
  }, {
569
- default: d(() => [
570
- (a(!0), p(A, null, Z(ge.value, (r, h) => (a(), T(t(G), {
571
- key: r.id
569
+ default: m(() => [
570
+ (a(!0), f(A, null, Z(ge.value, (i, v) => (a(), T(t(G), {
571
+ key: i.id
572
572
  }, {
573
- default: d(() => [
574
- (a(!0), p(A, null, Z(r.headers, (n) => (a(), p(A, {
573
+ default: m(() => [
574
+ (a(!0), f(A, null, Z(i.headers, (n) => (a(), f(A, {
575
575
  key: n.id
576
576
  }, [
577
- t(Ve)(h, ge.value.length, n.column.id) ? (a(), T(t(yt), I({
577
+ t(Ve)(v, ge.value.length, n.column.id) ? (a(), T(t(yt), I({
578
578
  key: 0,
579
579
  ref_for: !0
580
580
  }, n.bindings, {
581
- "data-selection": n.column.id === s
581
+ "data-selection": n.column.id === l
582
582
  }), {
583
- default: d(() => [
584
- v("div", {
585
- class: g(t(k)(t(u), "header"))
583
+ default: m(() => [
584
+ w("div", {
585
+ class: d(t(C)(t(c), "header"))
586
586
  }, [
587
- v("div", {
588
- class: g(t(k)(t(u), "header__content"))
587
+ w("div", {
588
+ class: d(t(C)(t(c), "header__content"))
589
589
  }, [
590
- n.column.id !== s ? (a(), p(A, { key: 0 }, [
591
- v("div", {
592
- class: g(t(k)(t(u), "header__content__title"))
590
+ n.column.id !== l ? (a(), f(A, { key: 0 }, [
591
+ w("div", {
592
+ class: d(t(C)(t(c), "header__content__title"))
593
593
  }, [
594
594
  H(e.$slots, "headerCell", I({ ref_for: !0 }, {
595
595
  column: n.column.columnDef
596
596
  }), () => [
597
- f(t(me), {
597
+ g(t(me), {
598
598
  props: n.getContext(),
599
599
  render: n.column.columnDef.header
600
600
  }, null, 8, ["props", "render"])
@@ -602,82 +602,82 @@ const Tt = (B) => {
602
602
  ], 2),
603
603
  n.column.getCanSort() ? (a(), T(st, {
604
604
  key: 0,
605
- class: g({ hide_filter_action: !n.column.getIsSorted() }),
605
+ class: d({ hide_filter_action: !n.column.getIsSorted() }),
606
606
  icon: je(n.column),
607
607
  size: "sm",
608
608
  type: "ghost",
609
609
  variant: "icon",
610
610
  active: !!n.column.getIsSorted(),
611
- onClick: (S) => {
611
+ onClick: (_) => {
612
612
  var j;
613
- return (j = n.column.getToggleSortingHandler()) == null ? void 0 : j(S);
613
+ return (j = n.column.getToggleSortingHandler()) == null ? void 0 : j(_);
614
614
  }
615
615
  }, null, 8, ["class", "icon", "active", "onClick"])) : R("", !0)
616
- ], 64)) : (a(), p(A, { key: 1 }, [
617
- v("div", {
618
- class: g(t(k)(t(u), "selection_space"))
616
+ ], 64)) : (a(), f(A, { key: 1 }, [
617
+ w("div", {
618
+ class: d(t(C)(t(c), "selection_space"))
619
619
  }, null, 2),
620
- f(ye, {
620
+ g(ye, {
621
621
  rootCls: "w-fit",
622
- checked: ee.value,
623
- onChange: te
622
+ checked: x.value,
623
+ onChange: ee
624
624
  }, null, 8, ["checked"])
625
625
  ], 64))
626
626
  ], 2),
627
- ![C.value, s].includes(n.column.id) && !n.column.columns.length ? (a(), p("div", {
627
+ ![y.value, l].includes(n.column.id) && !n.column.columns.length ? (a(), f("div", {
628
628
  key: 0,
629
- class: g(t(k)(t(u), "header__action"))
629
+ class: d(t(C)(t(c), "header__action"))
630
630
  }, [
631
631
  (a(), T(ve, {
632
632
  "z-index": "1",
633
633
  placement: "bottom-end",
634
634
  key: fe.value
635
635
  }, {
636
- content: d(() => [
637
- f(lt, {
638
- onSelect: (S) => Ee(S, n.column)
636
+ content: m(() => [
637
+ g(lt, {
638
+ onSelect: (_) => Ee(_, n.column)
639
639
  }, {
640
- default: d(() => [
641
- n.column.getCanSort() ? (a(), p(A, { key: 0 }, [
642
- f(ie, {
640
+ default: m(() => [
641
+ n.column.getCanSort() ? (a(), f(A, { key: 0 }, [
642
+ g(re, {
643
643
  title: "Sort A → Z",
644
644
  key: "a-z"
645
645
  }, {
646
- leading: d(({ iconSize: S }) => [
647
- f(Y, {
646
+ leading: m(({ iconSize: _ }) => [
647
+ g(X, {
648
648
  icon: "tabler:arrow-up",
649
- size: S
649
+ size: _
650
650
  }, null, 8, ["size"])
651
651
  ]),
652
652
  _: 1
653
653
  }),
654
- f(ie, {
654
+ g(re, {
655
655
  title: "Sort Z → A",
656
656
  key: "z-a"
657
657
  }, {
658
- leading: d(({ iconSize: S }) => [
659
- f(Y, {
658
+ leading: m(({ iconSize: _ }) => [
659
+ g(X, {
660
660
  icon: "tabler:arrow-down",
661
- size: S
661
+ size: _
662
662
  }, null, 8, ["size"])
663
663
  ]),
664
664
  _: 1
665
665
  }),
666
- f(we)
666
+ g(we)
667
667
  ], 64)) : R("", !0),
668
- f(ie, {
668
+ g(re, {
669
669
  title: "Wrap Column",
670
670
  key: "wrap"
671
671
  }, {
672
- leading: d(({ iconSize: S }) => [
673
- f(Y, {
672
+ leading: m(({ iconSize: _ }) => [
673
+ g(X, {
674
674
  icon: "tabler:text-wrap",
675
- size: S
675
+ size: _
676
676
  }, null, 8, ["size"])
677
677
  ]),
678
- trailing: d(() => [
679
- f(ft, {
680
- checked: t(x)(n.column.id)
678
+ trailing: m(() => [
679
+ g(ft, {
680
+ checked: t(Y)(n.column.id)
681
681
  }, null, 8, ["checked"])
682
682
  ]),
683
683
  _: 2
@@ -686,13 +686,13 @@ const Tt = (B) => {
686
686
  _: 2
687
687
  }, 1032, ["onSelect"])
688
688
  ]),
689
- default: d(() => [
690
- f(ke, {
689
+ default: m(() => [
690
+ g(ke, {
691
691
  icon: "tabler:dots-vertical",
692
692
  size: "sm",
693
693
  color: "gray",
694
694
  type: "ghost",
695
- class: g(t(k)(t(u), "header__action__hover"))
695
+ class: d(t(C)(t(c), "header__action__hover"))
696
696
  }, null, 8, ["class"])
697
697
  ]),
698
698
  _: 2
@@ -709,39 +709,39 @@ const Tt = (B) => {
709
709
  ]),
710
710
  _: 3
711
711
  }, 8, ["class", "sticky"])),
712
- f(t(ht), {
713
- class: g(e.tbodyCls)
712
+ g(t(ht), {
713
+ class: d(e.tbodyCls)
714
714
  }, {
715
- default: d(() => [
716
- (a(!0), p(A, null, Z(t(w).getRowModel().rows, (r, h) => (a(), T(t(G), {
717
- key: r.id,
715
+ default: m(() => [
716
+ (a(!0), f(A, null, Z(t(k).getRowModel().rows, (i, v) => (a(), T(t(G), {
717
+ key: i.id,
718
718
  zebra: e.zebra,
719
- checked: !!ue(r)
719
+ checked: !!ue(i)
720
720
  }, {
721
- default: d(() => [
722
- (a(!0), p(A, null, Z(r.getVisibleCells(), (n) => {
723
- var S, j;
724
- return a(), p(A, {
721
+ default: m(() => [
722
+ (a(!0), f(A, null, Z(i.getVisibleCells(), (n) => {
723
+ var _, j;
724
+ return a(), f(A, {
725
725
  key: n.id
726
726
  }, [
727
- ((S = t(oe)(n.getContext())) == null ? void 0 : S.colSpan) !== 0 && ((j = t(oe)(n.getContext())) == null ? void 0 : j.rowSpan) !== 0 ? (a(), T(t(U), I({
727
+ ((_ = t(te)(n.getContext())) == null ? void 0 : _.colSpan) !== 0 && ((j = t(te)(n.getContext())) == null ? void 0 : j.rowSpan) !== 0 ? (a(), T(t(U), I({
728
728
  key: 0,
729
729
  ref_for: !0
730
- }, t(oe)(n.getContext())), Ce({
731
- default: d(() => [
732
- n.column.id === C.value && (b.hoverAction || b.action) ? (a(), p("div", {
730
+ }, t(te)(n.getContext())), Ce({
731
+ default: m(() => [
732
+ n.column.id === y.value && (b.hoverAction || b.action) ? (a(), f("div", {
733
733
  key: 0,
734
- class: g(t(k)(t(u), "action_cell"))
734
+ class: d(t(C)(t(c), "action_cell"))
735
735
  }, [
736
- v("div", {
737
- class: g([t(k)(t(u), "action_cell__hover"), e.actionHoverCls])
736
+ w("div", {
737
+ class: d([t(C)(t(c), "action_cell__hover"), e.actionHoverCls])
738
738
  }, [
739
739
  H(e.$slots, "hoverAction", I(
740
740
  { ref_for: !0 },
741
741
  {
742
742
  column: n.column.columnDef,
743
- record: r.original,
744
- index: h
743
+ record: i.original,
744
+ index: v
745
745
  }
746
746
  ))
747
747
  ], 2),
@@ -749,49 +749,52 @@ const Tt = (B) => {
749
749
  { ref_for: !0 },
750
750
  {
751
751
  column: n.column.columnDef,
752
- record: r.original,
753
- index: h
752
+ record: i.original,
753
+ index: v
754
754
  }
755
755
  ))
756
- ], 2)) : n.column.id !== s ? H(e.$slots, "bodyCell", I(
756
+ ], 2)) : n.column.id !== l ? H(e.$slots, "bodyCell", I(
757
757
  {
758
758
  key: 1,
759
759
  ref_for: !0
760
760
  },
761
761
  {
762
762
  column: n.column.columnDef,
763
- record: r.original,
764
- index: h
763
+ record: i.original,
764
+ index: v
765
765
  }
766
766
  ), () => [
767
- f(t(me), {
767
+ g(t(me), {
768
768
  render: n.column.columnDef.cell,
769
769
  props: n.getContext()
770
770
  }, null, 8, ["render", "props"])
771
- ]) : e.rowKey && r.original[e.rowKey] ? (a(), p("div", Pt, [
772
- v("div", {
773
- class: g(t(k)(t(u), "selection_space"))
771
+ ]) : e.rowKey && i.original[e.rowKey] ? (a(), f("div", {
772
+ key: 2,
773
+ class: d(t(C)(t(c), "selection"))
774
+ }, [
775
+ w("div", {
776
+ class: d(t(C)(t(c), "selection_space"))
774
777
  }, null, 2),
775
- f(ye, I({
778
+ g(ye, I({
776
779
  rootCls: "w-fit",
777
- disabled: !r.getCanSelect(),
778
- checked: ue(r),
779
- onChange: (ne) => Ae(ne, r),
780
+ disabled: !i.getCanSelect(),
781
+ checked: ue(i),
782
+ onChange: (oe) => Ae(oe, i),
780
783
  ref_for: !0
781
- }, Ie(r.original)), null, 16, ["disabled", "checked", "onChange"])
782
- ])) : R("", !0)
784
+ }, Ie(i.original)), null, 16, ["disabled", "checked", "onChange"])
785
+ ], 2)) : R("", !0)
783
786
  ]),
784
787
  _: 2
785
788
  }, [
786
- b.cellAction && ![C.value, s].includes(n.column.id) ? {
789
+ b.cellAction && ![y.value, l].includes(n.column.id) ? {
787
790
  name: "absoluteAction",
788
- fn: d(() => [
791
+ fn: m(() => [
789
792
  H(e.$slots, "cellAction", I(
790
793
  { ref_for: !0 },
791
794
  {
792
795
  column: n.column.columnDef,
793
- record: r.original,
794
- index: h
796
+ record: i.original,
797
+ index: v
795
798
  }
796
799
  ))
797
800
  ]),
@@ -803,18 +806,18 @@ const Tt = (B) => {
803
806
  ]),
804
807
  _: 2
805
808
  }, 1032, ["zebra", "checked"]))), 128)),
806
- l.loading ? (a(!0), p(A, { key: 0 }, Z(t(w).getRowModel().rows.length ? 2 : e.loadingRowCount, (r) => (a(), T(t(G), {
807
- key: r,
809
+ s.loading ? (a(!0), f(A, { key: 0 }, Z(t(k).getRowModel().rows.length ? 2 : e.loadingRowCount, (i) => (a(), T(t(G), {
810
+ key: i,
808
811
  zebra: e.zebra
809
812
  }, {
810
- default: d(() => [
811
- (a(!0), p(A, null, Z(t(w).getVisibleLeafColumns(), (h, n) => (a(), T(t(U), { key: n }, {
812
- default: d(() => [
813
- h.id !== s ? H(e.$slots, "skeleton", I({
813
+ default: m(() => [
814
+ (a(!0), f(A, null, Z(t(k).getVisibleLeafColumns(), (v, n) => (a(), T(t(U), { key: n }, {
815
+ default: m(() => [
816
+ v.id !== l ? H(e.$slots, "skeleton", I({
814
817
  key: 0,
815
818
  ref_for: !0
816
- }, { index: n, column: h.columnDef }), () => [
817
- f(mt, I({ ref_for: !0 }, t(Pe)(h.columnDef)), null, 16)
819
+ }, { index: n, column: v.columnDef }), () => [
820
+ g(mt, I({ ref_for: !0 }, t(Pe)(v.columnDef)), null, 16)
818
821
  ]) : R("", !0)
819
822
  ]),
820
823
  _: 2
@@ -822,41 +825,41 @@ const Tt = (B) => {
822
825
  ]),
823
826
  _: 2
824
827
  }, 1032, ["zebra"]))), 128)) : R("", !0),
825
- t(w).getRowModel().rows.length ? R("", !0) : (a(), T(t(G), {
828
+ t(k).getRowModel().rows.length ? R("", !0) : (a(), T(t(G), {
826
829
  key: 1,
827
830
  empty: ""
828
831
  }, {
829
- default: d(() => [
830
- f(t(U), {
831
- colspan: t(w).getVisibleLeafColumns().length,
832
+ default: m(() => [
833
+ g(t(U), {
834
+ colspan: t(k).getVisibleLeafColumns().length,
832
835
  empty: ""
833
836
  }, {
834
- default: d(() => [
835
- f(zt, I({ type: "advance" }, e.emptyProps), Ce({ _: 2 }, [
837
+ default: m(() => [
838
+ g(zt, I({ type: "advance" }, e.emptyProps), Ce({ _: 2 }, [
836
839
  b.emptyTitle ? {
837
840
  name: "title",
838
- fn: d(() => [
841
+ fn: m(() => [
839
842
  H(e.$slots, "emptyTitle")
840
843
  ]),
841
844
  key: "0"
842
845
  } : void 0,
843
846
  b.emptyDescription ? {
844
847
  name: "title",
845
- fn: d(() => [
848
+ fn: m(() => [
846
849
  H(e.$slots, "emptyDescription")
847
850
  ]),
848
851
  key: "1"
849
852
  } : void 0,
850
853
  b.emptyActions ? {
851
854
  name: "title",
852
- fn: d(() => [
855
+ fn: m(() => [
853
856
  H(e.$slots, "emptyActions")
854
857
  ]),
855
858
  key: "2"
856
859
  } : void 0,
857
860
  b.emptyImage ? {
858
861
  name: "title",
859
- fn: d(() => [
862
+ fn: m(() => [
860
863
  H(e.$slots, "emptyImage")
861
864
  ]),
862
865
  key: "3"
@@ -872,8 +875,8 @@ const Tt = (B) => {
872
875
  key: 2,
873
876
  "lazy-load-observer": ""
874
877
  }, {
875
- default: d(() => [
876
- f(t(U), {
878
+ default: m(() => [
879
+ g(t(U), {
877
880
  ref_key: "target",
878
881
  ref: de,
879
882
  "lazy-load-observer": ""
@@ -896,6 +899,6 @@ const Tt = (B) => {
896
899
  }
897
900
  });
898
901
  export {
899
- ao as DataTable,
900
- ao as default
902
+ lo as DataTable,
903
+ lo as default
901
904
  };