@pantograph/vue 0.12.1 → 0.13.0

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 (154) hide show
  1. package/dist/ActionButton/index.js +1 -1
  2. package/dist/ActionButton/index.umd.cjs +1 -1
  3. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-CiJO-TtM.js → ActionButton.vue_vue_type_script_setup_true_lang-Bkuz_iUP.js} +2 -2
  4. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-ViFlltdC.js → ActionButton.vue_vue_type_script_setup_true_lang-Bq-Tb6pj.js} +1 -1
  5. package/dist/Alert/Alert.d.ts +52 -0
  6. package/dist/Alert/Alert.model.d.ts +2 -0
  7. package/dist/Alert/index.d.ts +2 -0
  8. package/dist/Alert/index.js +121 -0
  9. package/dist/Alert/index.umd.cjs +1 -0
  10. package/dist/Avatar/index.js +1 -1
  11. package/dist/Avatar/index.umd.cjs +1 -1
  12. package/dist/{Avatar.vue_vue_type_style_index_0_lang-BFe4hxYW.js → Avatar.vue_vue_type_style_index_0_lang-BBnmLfTi.js} +1 -1
  13. package/dist/{Avatar.vue_vue_type_style_index_0_lang-B327aIKw.js → Avatar.vue_vue_type_style_index_0_lang-BHfzjXmT.js} +3 -3
  14. package/dist/AvatarGroup/index.js +1 -1
  15. package/dist/AvatarGroup/index.umd.cjs +1 -1
  16. package/dist/Badge/index.js +1 -1
  17. package/dist/Badge/index.umd.cjs +1 -1
  18. package/dist/{Badge.vue_vue_type_script_setup_true_lang-DYK5srGm.js → Badge.vue_vue_type_script_setup_true_lang-8c7akyTm.js} +1 -1
  19. package/dist/{Badge.vue_vue_type_script_setup_true_lang-Bad9nnGa.js → Badge.vue_vue_type_script_setup_true_lang-CeXpqXtw.js} +2 -2
  20. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-BcdmTWX7.js → BaseBadge.vue_vue_type_style_index_0_lang-DnB978eI.js} +2 -2
  21. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-4kmojL6W.js → BaseButton.vue_vue_type_style_index_0_lang-IWrQ3G21.js} +1 -1
  22. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-DXgQ3ris.js → BaseButton.vue_vue_type_style_index_0_lang-hgXHwNIC.js} +4 -4
  23. package/dist/Button/index.js +1 -1
  24. package/dist/Button/index.umd.cjs +1 -1
  25. package/dist/{Button.vue_vue_type_script_setup_true_lang-2DEfrzzC.js → Button.vue_vue_type_script_setup_true_lang-CJv66ooM.js} +2 -2
  26. package/dist/{Button.vue_vue_type_script_setup_true_lang-D6IZHvUZ.js → Button.vue_vue_type_script_setup_true_lang-w8EXhfob.js} +1 -1
  27. package/dist/Checkbox/index.js +1 -1
  28. package/dist/Checkbox/index.umd.cjs +1 -1
  29. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-D6HTNzfn.js → Checkbox.vue_vue_type_style_index_0_lang-Bj-0gSIp.js} +2 -2
  30. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-mD-mS-u3.js → Checkbox.vue_vue_type_style_index_0_lang-D9moel7o.js} +1 -1
  31. package/dist/CheckboxGroup/index.js +1 -1
  32. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  33. package/dist/ColorPicker/index.js +1 -1
  34. package/dist/ColorPicker/index.umd.cjs +1 -1
  35. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-CniJlpEJ.js → ColorPicker.vue_vue_type_style_index_0_lang-Byz3evrQ.js} +1 -1
  36. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-DN82VYCI.js → ColorPicker.vue_vue_type_style_index_0_lang-zw5qynUn.js} +3 -3
  37. package/dist/ColorSwatch/index.js +1 -1
  38. package/dist/ColorSwatch/index.umd.cjs +1 -1
  39. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-CmiVBddf.js → ColorSwatch.vue_vue_type_style_index_0_lang-1YgCj4lQ.js} +1 -1
  40. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-ZEuyslU3.js → ColorSwatch.vue_vue_type_style_index_0_lang-IJyJA0LN.js} +3 -3
  41. package/dist/ColorSwatchGroup/index.js +1 -1
  42. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  43. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-DUPU05Mk.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-DJDJEbIy.js} +7 -7
  44. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-c1ySzkyZ.js +1 -0
  45. package/dist/ColorTrigger/index.js +1 -1
  46. package/dist/ColorTrigger/index.umd.cjs +1 -1
  47. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BoQP08i6.js → ColorTrigger.vue_vue_type_style_index_0_lang-CmGF_rFV.js} +4 -4
  48. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-DNapwSG1.js → ColorTrigger.vue_vue_type_style_index_0_lang-Cqjja8Kz.js} +1 -1
  49. package/dist/ConfigProvider/index.js +1 -1
  50. package/dist/DataTable/index.js +311 -297
  51. package/dist/DataTable/index.umd.cjs +1 -1
  52. package/dist/Empty/index.js +1 -1
  53. package/dist/{Empty.vue_vue_type_style_index_0_lang-BlW5utb2.js → Empty.vue_vue_type_style_index_0_lang-ylfi6RV1.js} +1 -1
  54. package/dist/FloatButton/index.js +1 -1
  55. package/dist/FloatButton/index.umd.cjs +1 -1
  56. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-B9mpfDyP.js → FloatButton.vue_vue_type_script_setup_true_lang-B9DvMjig.js} +2 -2
  57. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-DM0rSSdK.js → FloatButton.vue_vue_type_script_setup_true_lang-Bd4BeKfC.js} +1 -1
  58. package/dist/GraphicalObject/index.js +1 -1
  59. package/dist/GraphicalObject/index.umd.cjs +1 -1
  60. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-D0SLQ2VT.js → GraphicalObject.vue_vue_type_script_setup_true_lang-B57gv_5O.js} +2 -2
  61. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BNS3O4Gh.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DI3DhvVj.js} +1 -1
  62. package/dist/Icon/index.js +1 -1
  63. package/dist/{Icon.vue_vue_type_style_index_0_lang-BlmMv3wD.js → Icon.vue_vue_type_style_index_0_lang-BFTlmCAO.js} +1 -1
  64. package/dist/IconButton/index.js +1 -1
  65. package/dist/IconButton/index.umd.cjs +1 -1
  66. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BhcKAsTi.js → IconButton.vue_vue_type_script_setup_true_lang-CI37BUhQ.js} +1 -1
  67. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BhMR_Y-g.js → IconButton.vue_vue_type_script_setup_true_lang-DwSwWylD.js} +2 -2
  68. package/dist/Image/index.js +1 -1
  69. package/dist/{Image.vue_vue_type_style_index_0_lang-C_S48q8S.js → Image.vue_vue_type_style_index_0_lang-Ba5p3XBO.js} +3 -3
  70. package/dist/IndentLevel/index.js +1 -1
  71. package/dist/IndentLevel/index.umd.cjs +1 -1
  72. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-Dcp0Pbh1.js → IndentLevel.vue_vue_type_style_index_0_lang-Bqr8NvMZ.js} +3 -3
  73. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BMvDCqMT.js → IndentLevel.vue_vue_type_style_index_0_lang-ClQO0x1v.js} +1 -1
  74. package/dist/Indicator/index.js +1 -1
  75. package/dist/Indicator/index.umd.cjs +1 -1
  76. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-uTHr60wL.js → Indicator.vue_vue_type_script_setup_true_lang-BNc4K0mZ.js} +2 -2
  77. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-1Tv8ZzfK.js → Indicator.vue_vue_type_script_setup_true_lang-BX9JOpMY.js} +1 -1
  78. package/dist/Input/index.js +1 -1
  79. package/dist/Input/index.umd.cjs +1 -1
  80. package/dist/Input.vue_vue_type_style_index_0_lang-Dj4efG7U.js +1 -0
  81. package/dist/{Input.vue_vue_type_style_index_0_lang-xQIFQmTg.js → Input.vue_vue_type_style_index_0_lang-osOWuv4Y.js} +51 -50
  82. package/dist/Kbd/index.js +1 -1
  83. package/dist/{Kbd.vue_vue_type_style_index_0_lang-BQINoskR.js → Kbd.vue_vue_type_style_index_0_lang-AT19IxM-.js} +1 -1
  84. package/dist/Link/Link.d.ts +36 -0
  85. package/dist/Link/Link.model.d.ts +2 -0
  86. package/dist/Link/index.d.ts +2 -0
  87. package/dist/Link/index.js +6 -0
  88. package/dist/Link/index.umd.cjs +1 -0
  89. package/dist/Link.vue_vue_type_style_index_0_lang-Dp25vaUV.js +78 -0
  90. package/dist/Link.vue_vue_type_style_index_0_lang-ZgPgAnUp.js +1 -0
  91. package/dist/Menu/index.js +1 -1
  92. package/dist/Menu/index.umd.cjs +1 -1
  93. package/dist/Menu.vue_vue_type_style_index_0_lang-BTO-YwB5.js +463 -0
  94. package/dist/Menu.vue_vue_type_style_index_0_lang-i1Np-1Ek.js +1 -0
  95. package/dist/MenuItem/index.js +1 -1
  96. package/dist/MenuItem/index.umd.cjs +1 -1
  97. package/dist/Popover/index.js +1 -1
  98. package/dist/Popover/index.umd.cjs +1 -1
  99. package/dist/{Popover.vue_vue_type_style_index_0_lang-_D1J6CSu.js → Popover.vue_vue_type_style_index_0_lang-By7sWU4H.js} +1 -1
  100. package/dist/{Popover.vue_vue_type_style_index_0_lang-CIv6R_D2.js → Popover.vue_vue_type_style_index_0_lang-CAikz7cp.js} +3 -3
  101. package/dist/RadioGroup/index.js +1 -1
  102. package/dist/RadioGroup/index.umd.cjs +1 -1
  103. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-d6MmLjW3.js → RadioGroup.vue_vue_type_script_setup_true_lang-BsA4i2NS.js} +1 -1
  104. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-DKL0EQQ3.js → RadioGroup.vue_vue_type_script_setup_true_lang-nmPTqQWQ.js} +1 -1
  105. package/dist/Shortcut/index.js +1 -1
  106. package/dist/{Shortcut.vue_vue_type_style_index_0_lang-BC2nLIR_.js → Shortcut.vue_vue_type_style_index_0_lang-DWc3jZLn.js} +2 -2
  107. package/dist/Spinner/index.js +1 -1
  108. package/dist/{Spinner.vue_vue_type_style_index_0_lang-CBIZtgX4.js → Spinner.vue_vue_type_style_index_0_lang-BXXS6me6.js} +1 -1
  109. package/dist/Switch/index.js +1 -1
  110. package/dist/Switch/index.umd.cjs +1 -1
  111. package/dist/{Switch.vue_vue_type_style_index_0_lang-DnmgMCHT.js → Switch.vue_vue_type_style_index_0_lang-DQMhplS7.js} +2 -2
  112. package/dist/{Switch.vue_vue_type_style_index_0_lang-BBTDR8Er.js → Switch.vue_vue_type_style_index_0_lang-KqZBQVZb.js} +1 -1
  113. package/dist/Tree/index.js +1 -1
  114. package/dist/Tree/index.umd.cjs +1 -1
  115. package/dist/Tree.vue_vue_type_style_index_0_lang-CtQ_g29v.js +1 -0
  116. package/dist/{Tree.vue_vue_type_style_index_0_lang-B3BLoWLT.js → Tree.vue_vue_type_style_index_0_lang-yfNHbbTS.js} +7 -7
  117. package/dist/{_baseIsEqual-BknLKouD.js → _baseIsEqual-D6OIyc9x.js} +46 -45
  118. package/dist/_baseIsEqual-DysaakgW.js +1 -0
  119. package/dist/_flatRest-B2xTunyg.js +1 -0
  120. package/dist/_flatRest-BFIiKgYv.js +422 -0
  121. package/dist/_getTag-C1N7G_It.js +140 -0
  122. package/dist/_getTag-DaDHQQf0.js +1 -0
  123. package/dist/{cloneDeep-C4ka1P8m.js → cloneDeep-BNNspOg-.js} +1 -1
  124. package/dist/cloneDeep-CNkGIW_B.js +1 -0
  125. package/dist/{get-B14Mml42.js → get-9cMI4wkc.js} +1 -1
  126. package/dist/{get-DhKz3lGB.js → get-w4jLplqh.js} +1 -1
  127. package/dist/{index-D5U1ryWK.js → index-BCMo0YVL.js} +1 -1
  128. package/dist/index.js +27 -27
  129. package/dist/index.umd.cjs +1 -1
  130. package/dist/{isArray-CdbPONHA.js → isArray-DGJFqUD8.js} +2 -2
  131. package/dist/isEmpty-BfqMcSem.js +21 -0
  132. package/dist/isEmpty-DYtn8rNT.js +1 -0
  133. package/dist/{isNumber-BopDesuz.js → isNumber-CFhCrbTP.js} +3 -3
  134. package/dist/omit-6FeILhm3.js +1 -0
  135. package/dist/{omit-CD3OjwFx.js → omit-BsFVls5E.js} +62 -61
  136. package/dist/pick-CJI0LhLm.js +55 -0
  137. package/dist/pick-DUYr5oPc.js +1 -0
  138. package/dist/style/index.css +1 -1
  139. package/dist/uniq-BoseFDe4.js +1 -0
  140. package/dist/{uniq-DSVd52ma.js → uniq-DI-nuzAz.js} +3 -3
  141. package/package.json +11 -1
  142. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DEeU3fwR.js +0 -1
  143. package/dist/Input.vue_vue_type_style_index_0_lang-XtKgk5B8.js +0 -1
  144. package/dist/Menu.vue_vue_type_style_index_0_lang-BSR_8MKN.js +0 -482
  145. package/dist/Menu.vue_vue_type_style_index_0_lang-DzZ6brMU.js +0 -1
  146. package/dist/Tree.vue_vue_type_style_index_0_lang-DItSzkar.js +0 -1
  147. package/dist/_baseIsEqual-DP4HkppL.js +0 -1
  148. package/dist/_flatRest-CreY2VBo.js +0 -1
  149. package/dist/_flatRest-Dx0ZZgOx.js +0 -555
  150. package/dist/cloneDeep-DkiDLLTT.js +0 -1
  151. package/dist/omit-C4BrcXKG.js +0 -1
  152. package/dist/pick-8ze0sbWb.js +0 -54
  153. package/dist/pick-Db06rbL5.js +0 -1
  154. package/dist/uniq-ChIEzCZe.js +0 -1
@@ -1,150 +1,151 @@
1
- import { h as We, ref as Z, computed as D, watch as le, defineComponent as je, useSlots as Ee, unref as t, useTemplateRef as He, onBeforeUnmount as Le, shallowRef as Ve, createElementBlock as v, openBlock as c, normalizeClass as g, createVNode as f, withCtx as m, createElementVNode as R, normalizeStyle as Me, createBlock as I, createCommentVNode as P, Fragment as $, renderList as M, mergeProps as z, renderSlot as T, createSlots as fe, toDisplayString as Ne, normalizeProps as Oe, guardReactiveProps as xe, nextTick as ee } from "vue";
2
- import { createColumnHelper as qe, flattenBy as Fe, useVueTable as Ge, getSortedRowModel as Ze, getCoreRowModel as Ue } from "@tanstack/vue-table";
3
- import { b as Je } from "../_baseIsEqual-BknLKouD.js";
4
- import { i as Qe, b as Xe, a as oe } from "../isArray-CdbPONHA.js";
5
- import { _ as pe } from "../Checkbox.vue_vue_type_style_index_0_lang-D6HTNzfn.js";
6
- import { c as ge, _ as Ye, a as te } from "../Menu.vue_vue_type_style_index_0_lang-BSR_8MKN.js";
7
- import { _ as eo } from "../ActionButton.vue_vue_type_script_setup_true_lang-CiJO-TtM.js";
8
- import { _ as oo } from "../Empty.vue_vue_type_style_index_0_lang-BlW5utb2.js";
9
- import { o as Ce } from "../omit-CD3OjwFx.js";
10
- import { u as to } from "../uniq-DSVd52ma.js";
11
- import { i as ne, a as W } from "../_flatRest-Dx0ZZgOx.js";
12
- import { getBemBlock as no, wgt_pre as ro, generateVariantClassList as lo, getBemElement as C, usePCId as so } from "@pantograph/utils";
13
- import { getBreakpoints as io } from "@pantograph/tokens";
14
- import { useBreakpoints as ao, useIntersectionObserver as co } from "@vueuse/core";
15
- import { _ as uo } from "../Skeleton.vue_vue_type_style_index_0_lang-aSGb2hn6.js";
16
- import { _ as ye } from "../Popover.vue_vue_type_style_index_0_lang-CIv6R_D2.js";
17
- import { _ as mo } from "../Badge.vue_vue_type_script_setup_true_lang-Bad9nnGa.js";
18
- import { _ as he } from "../Divider.vue_vue_type_style_index_0_lang-DapqjSGc.js";
19
- import { _ as we } from "../IconButton.vue_vue_type_script_setup_true_lang-BhMR_Y-g.js";
20
- import { _ as re } from "../Icon.vue_vue_type_style_index_0_lang-BlmMv3wD.js";
21
- import { _ as fo } from "../Switch.vue_vue_type_style_index_0_lang-DnmgMCHT.js";
22
- import { g as be } from "../get-B14Mml42.js";
23
- import { cva as po } from "class-variance-authority";
24
- import { _ as go, e as yo, c as F, a as ho, d as wo, b as G } from "../THead.vue_vue_type_style_index_0_lang-B4yro5EP.js";
25
- function ve(B, S) {
26
- return Je(B, S);
1
+ import { h as Ee, ref as Z, computed as D, watch as le, defineComponent as He, useSlots as Le, unref as t, useTemplateRef as Me, onBeforeUnmount as Ve, shallowRef as Ne, createElementBlock as v, openBlock as a, normalizeClass as y, createVNode as d, withCtx as m, createElementVNode as $, normalizeStyle as Oe, createBlock as A, createCommentVNode as I, Fragment as z, renderList as V, mergeProps as _, renderSlot as T, createSlots as ge, withModifiers as ye, toDisplayString as qe, normalizeProps as Fe, guardReactiveProps as xe, nextTick as oe } from "vue";
2
+ import { createColumnHelper as Ge, flattenBy as Ze, useVueTable as Ue, getSortedRowModel as Je, getCoreRowModel as Qe } from "@tanstack/vue-table";
3
+ import { b as Xe } from "../_baseIsEqual-D6OIyc9x.js";
4
+ import { a as Ye, b as eo, i as te } from "../isArray-DGJFqUD8.js";
5
+ import { _ as we } from "../Checkbox.vue_vue_type_style_index_0_lang-Bj-0gSIp.js";
6
+ import { _ as oo, a as ne } from "../Menu.vue_vue_type_style_index_0_lang-BTO-YwB5.js";
7
+ import { _ as to } from "../ActionButton.vue_vue_type_script_setup_true_lang-Bkuz_iUP.js";
8
+ import { _ as no } from "../Empty.vue_vue_type_style_index_0_lang-ylfi6RV1.js";
9
+ import { o as se } from "../omit-BsFVls5E.js";
10
+ import { u as ro } from "../uniq-DI-nuzAz.js";
11
+ import { f as U, h as K } from "../_getTag-C1N7G_It.js";
12
+ import { getBemBlock as lo, wgt_pre as so, generateVariantClassList as io, getBemElement as C, usePCId as co } from "@pantograph/utils";
13
+ import { getBreakpoints as ao } from "@pantograph/tokens";
14
+ import { useBreakpoints as uo, useIntersectionObserver as mo } from "@vueuse/core";
15
+ import { _ as fo } from "../Skeleton.vue_vue_type_style_index_0_lang-aSGb2hn6.js";
16
+ import { _ as he } from "../Popover.vue_vue_type_style_index_0_lang-CAikz7cp.js";
17
+ import { _ as po } from "../Badge.vue_vue_type_script_setup_true_lang-CeXpqXtw.js";
18
+ import { _ as be } from "../Divider.vue_vue_type_style_index_0_lang-DapqjSGc.js";
19
+ import { _ as ve } from "../IconButton.vue_vue_type_script_setup_true_lang-DwSwWylD.js";
20
+ import { _ as re } from "../Icon.vue_vue_type_style_index_0_lang-BFTlmCAO.js";
21
+ import { _ as go } from "../Switch.vue_vue_type_style_index_0_lang-DQMhplS7.js";
22
+ import { g as Ce } from "../get-9cMI4wkc.js";
23
+ import { cva as yo } from "class-variance-authority";
24
+ import { i as Se } from "../isEmpty-BfqMcSem.js";
25
+ import { _ as wo, e as ho, c as x, a as bo, d as vo, b as G } from "../THead.vue_vue_type_style_index_0_lang-B4yro5EP.js";
26
+ function _e(B, k) {
27
+ return Xe(B, k);
27
28
  }
28
- const bo = (B, { isColumnWrapped: S, selectionId: l }) => {
29
+ const Co = (B, { isColumnWrapped: k, selectionId: l }) => {
29
30
  const N = (o) => {
30
- var d;
31
- const a = (y) => y === "list" ? "md" : "sm";
31
+ var f;
32
+ const c = (w) => w === "list" ? "md" : "sm";
32
33
  return {
33
34
  ...(o == null ? void 0 : o.skeletonProps) ?? {},
34
35
  style: "width: 100%",
35
- size: a((d = o == null ? void 0 : o.skeletonProps) == null ? void 0 : d.type)
36
+ size: c((f = o == null ? void 0 : o.skeletonProps) == null ? void 0 : f.type)
36
37
  };
37
- }, _ = (o) => {
38
- var d, y;
39
- const a = (d = o.props) == null ? void 0 : d.column.columnDef;
40
- return W(a == null ? void 0 : a.render) && o.props.row ? (y = a == null ? void 0 : a.render) == null ? void 0 : y.call(a, {
38
+ }, S = (o) => {
39
+ var f, w;
40
+ const c = (f = o.props) == null ? void 0 : f.column.columnDef;
41
+ return K(c == null ? void 0 : c.render) && o.props.row ? (w = c == null ? void 0 : c.render) == null ? void 0 : w.call(c, {
41
42
  index: o.props.row.index,
42
43
  record: o.props.row.original,
43
- column: Ce(a, "render")
44
- }) : typeof o.render == "function" || typeof o.render == "object" ? We(o.render, o.props) : o.render;
44
+ column: se(c, "render")
45
+ }) : typeof o.render == "function" || typeof o.render == "object" ? Ee(o.render, o.props) : o.render;
45
46
  }, u = (o) => {
46
- let a = {};
47
+ let c = {};
47
48
  if (o) {
48
- const d = (j) => Number(j) >= 0 ? `${j}px` : j, { width: y, maxWidth: K, minWidth: A } = o;
49
- (y || K || A) && (a = {
50
- width: d(y),
51
- maxWidth: d(K),
52
- minWidth: d(A),
53
- overflow: y || K ? "hidden" : void 0
49
+ const f = (j) => Number(j) >= 0 ? `${j}px` : j, { width: w, maxWidth: W, minWidth: P } = o;
50
+ (w || W || P) && (c = {
51
+ width: f(w),
52
+ maxWidth: f(W),
53
+ minWidth: f(P),
54
+ overflow: w || W ? "hidden" : void 0
54
55
  });
55
56
  }
56
- return a;
57
- }, k = {}, i = (o, a = !0) => {
58
- var y;
59
- let d = 1;
60
- return ((y = o == null ? void 0 : o.subHeaders) == null ? void 0 : y.length) === 1 && o.column.id === o.subHeaders[0].column.id && (d += i(o.subHeaders[0], !1)), a && (!k[o.column.id] || k[o.column.id] < d) && (k[o.column.id] = d), d;
61
- }, p = (o, a = {}) => {
62
- var d;
57
+ return c;
58
+ }, R = {}, i = (o, c = !0) => {
59
+ var w;
60
+ let f = 1;
61
+ return ((w = o == null ? void 0 : o.subHeaders) == null ? void 0 : w.length) === 1 && o.column.id === o.subHeaders[0].column.id && (f += i(o.subHeaders[0], !1)), c && (!R[o.column.id] || R[o.column.id] < f) && (R[o.column.id] = f), f;
62
+ }, g = (o, c = {}) => {
63
+ var f;
63
64
  if (o != null && o.column) {
64
- const y = (d = o == null ? void 0 : o.column) == null ? void 0 : d.columnDef, K = [], A = {};
65
- if (ne(y)) {
66
- let j = S(o.column.id);
67
- const { customCell: E, class: q } = y;
68
- if (ge(q) || K.push(q), E && (ne(E) || W(E))) {
69
- const x = (w) => {
70
- if (ne(w)) {
71
- const { wrap: H, colSpan: J, rowSpan: Q } = w;
72
- j = j || (H ?? !1), A.colSpan = J, A.rowSpan = Q;
65
+ const w = (f = o == null ? void 0 : o.column) == null ? void 0 : f.columnDef, W = [], P = {};
66
+ if (U(w)) {
67
+ let j = k(o.column.id);
68
+ const { customCell: E, class: F } = w;
69
+ if (Se(F) || W.push(F), E && (U(E) || K(E))) {
70
+ const q = (h) => {
71
+ if (U(h)) {
72
+ const { wrap: H, colSpan: Q, rowSpan: X } = h;
73
+ j = j || (H ?? !1), P.colSpan = Q, P.rowSpan = X;
73
74
  }
74
75
  };
75
- W(E) && o.row ? x(
76
+ K(E) && o.row ? q(
76
77
  E({
77
78
  index: o.row.index,
78
79
  record: o.row.original,
79
- column: y
80
+ column: w
80
81
  })
81
- ) : x(E);
82
+ ) : q(E);
82
83
  }
83
- o.header ? A.rowSpan = i(o.header) : j && (A.wrap = !0);
84
+ o.header ? P.rowSpan = i(o.header) : j && (P.wrap = !0);
84
85
  }
85
86
  return {
86
- class: ge(K) ? void 0 : K,
87
- ...A,
88
- ...a
87
+ class: Se(W) ? void 0 : W,
88
+ ...P,
89
+ ...c
89
90
  };
90
91
  }
91
92
  return {};
92
93
  };
93
94
  return {
94
95
  getSkeletonProps: N,
95
- RenderCell: _,
96
+ RenderCell: S,
96
97
  getThProps: (o) => {
97
- var a, d, y;
98
- return p(o, {
99
- colSpan: (a = o == null ? void 0 : o.header) == null ? void 0 : a.colSpan,
100
- "data-has-children": ((y = (d = o == null ? void 0 : o.column) == null ? void 0 : d.columns) == null ? void 0 : y.length) > 1 ? !0 : void 0
98
+ var c, f, w;
99
+ return g(o, {
100
+ colSpan: (c = o == null ? void 0 : o.header) == null ? void 0 : c.colSpan,
101
+ "data-has-children": ((w = (f = o == null ? void 0 : o.column) == null ? void 0 : f.columns) == null ? void 0 : w.length) > 1 ? !0 : void 0
101
102
  });
102
103
  },
103
- getTdProps: (o) => p(o),
104
+ getTdProps: (o) => g(o),
104
105
  getColProps: (o) => {
105
- const a = u(o.columnDef);
106
- return o.id === l && (a.width = "var(--pt-dimension-2800)"), {
107
- style: a
106
+ const c = u(o.columnDef);
107
+ return o.id === l && (c.width = "var(--pt-dimension-2800)"), {
108
+ style: c
108
109
  };
109
110
  },
110
- isThVisible: (o, a, d) => k[d] === 1 ? !0 : a - o === k[d]
111
+ isThVisible: (o, c, f) => R[f] === 1 ? !0 : c - o === R[f]
111
112
  };
112
113
  };
113
- var vo = "[object Boolean]";
114
- function Co(B) {
115
- return B === !0 || B === !1 || Qe(B) && Xe(B) == vo;
114
+ var So = "[object Boolean]";
115
+ function _o(B) {
116
+ return B === !0 || B === !1 || Ye(B) && eo(B) == So;
116
117
  }
117
- const _o = (B) => {
118
- const S = Z([]), l = (i) => i ? S.value.findIndex((p) => p.id === i) : -1, N = (i) => {
119
- if (i) return S.value.find((p) => p.id === i);
120
- }, _ = (i) => {
121
- var p;
122
- return !!((p = N(i)) != null && p.wrap);
118
+ const ko = (B) => {
119
+ const k = Z([]), l = (i) => i ? k.value.findIndex((g) => g.id === i) : -1, N = (i) => {
120
+ if (i) return k.value.find((g) => g.id === i);
121
+ }, S = (i) => {
122
+ var g;
123
+ return !!((g = N(i)) != null && g.wrap);
123
124
  }, u = (i) => {
124
- const { id: p } = i;
125
- if (!p) return !1;
126
- const V = i.wrap ?? !_(p), O = l(p);
127
- return O >= 0 ? S.value[O] = { id: p, wrap: V } : S.value.push({ id: p, wrap: V }), !0;
128
- }, k = D(
129
- () => (B.columns ?? []).filter((i) => Co(i.wrap)).map((i) => ({
125
+ const { id: g } = i;
126
+ if (!g) return !1;
127
+ const M = i.wrap ?? !S(g), O = l(g);
128
+ return O >= 0 ? k.value[O] = { id: g, wrap: M } : k.value.push({ id: g, wrap: M }), !0;
129
+ }, R = D(
130
+ () => (B.columns ?? []).filter((i) => _o(i.wrap)).map((i) => ({
130
131
  id: i.id,
131
132
  wrap: !!i.wrap
132
133
  }))
133
134
  );
134
135
  return le(
135
- k,
136
+ R,
136
137
  (i) => {
137
- S.value = [...S.value, ...i];
138
+ k.value = [...k.value, ...i];
138
139
  },
139
140
  {
140
141
  immediate: !0,
141
142
  deep: !0
142
143
  }
143
144
  ), {
144
- isColumnWrapped: _,
145
+ isColumnWrapped: S,
145
146
  toggleWrap: u
146
147
  };
147
- }, Go = /* @__PURE__ */ je({
148
+ }, Jo = /* @__PURE__ */ He({
148
149
  __name: "DataTable",
149
150
  props: {
150
151
  columns: {},
@@ -169,107 +170,108 @@ const _o = (B) => {
169
170
  zebra: { type: Boolean, default: !0 },
170
171
  tableLayout: { default: "fixed" },
171
172
  actionCol: {},
172
- noHeader: { type: Boolean }
173
+ noHeader: { type: Boolean },
174
+ rowProps: {}
173
175
  },
174
176
  emits: ["fetch", "rowClick"],
175
- setup(B, { emit: S }) {
176
- const l = B, N = S, _ = Ee(), u = no("data_table", ro), k = qe(), i = `$${u}_selection$`, p = D(() => {
177
+ setup(B, { emit: k }) {
178
+ const l = B, N = k, S = Le(), u = lo("data_table", so), R = Ge(), i = `$${u}_selection$`, g = D(() => {
177
179
  var e;
178
180
  return ((e = l.actionCol) == null ? void 0 : e.id) ?? `$${u}_action$`;
179
- }), V = (e) => Ce(e ?? {}, "title", "sorter", "columns", "id", "dataIndex"), O = D(() => {
180
- var h;
181
+ }), M = (e) => se(e ?? {}, "title", "sorter", "columns", "id", "dataIndex"), O = D(() => {
182
+ var p;
181
183
  const e = (n) => {
182
184
  var L;
183
- const b = n.id ?? so(`${u}--col`);
184
- return oe(be(n, l.childrenColumnName)) ? k.group({
185
+ const b = n.id ?? co(`${u}--col`);
186
+ return te(Ce(n, l.childrenColumnName)) ? R.group({
185
187
  header: n.title,
186
188
  id: b,
187
- columns: (L = be(n, l.childrenColumnName) ?? []) == null ? void 0 : L.map(e),
189
+ columns: (L = Ce(n, l.childrenColumnName) ?? []) == null ? void 0 : L.map(e),
188
190
  enableSorting: !1,
189
- ...V(n)
190
- }) : k.accessor(n.dataIndex ?? n.id, {
191
+ ...M(n)
192
+ }) : R.accessor(n.dataIndex ?? n.id, {
191
193
  header: n.title,
192
194
  id: b,
193
- sortingFn: typeof n.sorter == "function" ? (Y, Ke) => n.sorter(Y.original, Ke.original) : n.sorter,
195
+ sortingFn: typeof n.sorter == "function" ? (ee, je) => n.sorter(ee.original, je.original) : n.sorter,
194
196
  enableSorting: !!n.sorter,
195
- ...V(n)
197
+ ...M(n)
196
198
  });
197
199
  };
198
- if (!oe(l.columns)) throw "no columns";
200
+ if (!te(l.columns)) throw "no columns";
199
201
  const r = l.columns.map(({ id: n }) => n);
200
- if (to(r).length !== r.length) throw "no uniq column ids";
202
+ if (ro(r).length !== r.length) throw "no uniq column ids";
201
203
  const s = [];
202
204
  return l.rowSelection && l.rowKey && s.push(
203
- k.accessor(i, {
205
+ R.accessor(i, {
204
206
  id: i,
205
207
  enableSorting: !1
206
208
  })
207
209
  ), l.columns.forEach((n) => {
208
210
  s.push(e(n));
209
- }), (_.action || _.hoverAction) && s.push(
210
- k.accessor(p.value, {
211
- id: p.value,
212
- header: (h = l.actionCol) == null ? void 0 : h.title,
211
+ }), (S.action || S.hoverAction) && s.push(
212
+ R.accessor(g.value, {
213
+ id: g.value,
214
+ header: (p = l.actionCol) == null ? void 0 : p.title,
213
215
  enableSorting: !1,
214
- ...V(l.actionCol)
216
+ ...M(l.actionCol)
215
217
  })
216
218
  ), s;
217
- }), { toggleWrap: se, isColumnWrapped: U } = _o(l), o = Z({}), a = D(() => Object.keys(o.value)), d = D(
218
- () => l.rowKey ? Fe(l.data, (e) => e.children).map(
219
+ }), { toggleWrap: ie, isColumnWrapped: J } = ko(l), o = Z({}), c = D(() => Object.keys(o.value)), f = D(
220
+ () => l.rowKey ? Ze(l.data, (e) => e.children).map(
219
221
  (e) => e[l.rowKey]
220
222
  ) : []
221
- ), y = () => {
223
+ ), w = () => {
222
224
  const e = Object.fromEntries(
223
- a.value.filter((r) => {
225
+ c.value.filter((r) => {
224
226
  var s;
225
- return !((s = l.rowSelection) != null && s.preserveSelectedRowKeys) && l.rowKey ? d.value.includes(r) : !0;
227
+ return !((s = l.rowSelection) != null && s.preserveSelectedRowKeys) && l.rowKey ? f.value.includes(r) : !0;
226
228
  }).map((r) => [r, !0])
227
229
  );
228
- Object.keys(e).length !== a.value.length && (o.value = e, ee(() => {
230
+ Object.keys(e).length !== c.value.length && (o.value = e, oe(() => {
229
231
  var r;
230
- W((r = l.rowSelection) == null ? void 0 : r.onChange) && l.rowSelection.onChange(H.value);
232
+ K((r = l.rowSelection) == null ? void 0 : r.onChange) && l.rowSelection.onChange(H.value);
231
233
  }));
232
- }, K = D(() => (y(), [...l.data])), A = io(), E = ao(
234
+ }, W = D(() => (w(), [...l.data])), P = ao(), E = uo(
233
235
  Object.fromEntries(
234
- Object.keys(A).map((e) => [e, A[e].minWidth])
236
+ Object.keys(P).map((e) => [e, P[e].minWidth])
235
237
  ),
236
238
  { strategy: "min-width" }
237
- ).active(), q = Z({});
239
+ ).active(), F = Z({});
238
240
  le(
239
241
  E,
240
242
  (e) => {
241
- q.value = Object.fromEntries(
243
+ F.value = Object.fromEntries(
242
244
  O.value.map((r) => {
243
245
  var s;
244
246
  return [
245
247
  r.id,
246
- oe(r == null ? void 0 : r.responsive) ? (s = r.responsive) == null ? void 0 : s.includes(e) : !0
248
+ te(r == null ? void 0 : r.responsive) ? (s = r.responsive) == null ? void 0 : s.includes(e) : !0
247
249
  ];
248
250
  })
249
251
  );
250
252
  },
251
253
  { immediate: !0 }
252
254
  );
253
- const x = Z([]), w = Ge({
255
+ const q = Z([]), h = Ue({
254
256
  // debugTable: true,
255
257
  getSubRows: (e) => e.children,
256
258
  enableSorting: !0,
257
259
  enableMultiSort: !0,
258
260
  get data() {
259
- return K.value;
261
+ return W.value;
260
262
  },
261
263
  onSortingChange: (e) => {
262
- x.value = typeof e == "function" ? e(x.value) : e;
264
+ q.value = typeof e == "function" ? e(q.value) : e;
263
265
  },
264
266
  state: {
265
267
  get sorting() {
266
- return x.value;
268
+ return q.value;
267
269
  },
268
270
  get rowSelection() {
269
271
  return o.value;
270
272
  },
271
273
  get columnVisibility() {
272
- return q.value;
274
+ return F.value;
273
275
  }
274
276
  },
275
277
  enableRowSelection: !0,
@@ -280,14 +282,14 @@ const _o = (B) => {
280
282
  return l.rowKey ? e[l.rowKey] : r;
281
283
  },
282
284
  getRowCanExpand: () => !0,
283
- getCoreRowModel: Ue(),
284
- getSortedRowModel: Ze(),
285
+ getCoreRowModel: Qe(),
286
+ getSortedRowModel: Je(),
285
287
  onRowSelectionChange: (e) => {
286
288
  o.value = typeof e == "function" ? e(o.value) : e;
287
289
  }
288
290
  }), H = D(() => ({
289
- selectedRowKeys: a.value,
290
- selectedRows: w.getFilteredSelectedRowModel().flatRows.map((e) => e.original)
291
+ selectedRowKeys: c.value,
292
+ selectedRows: h.getFilteredSelectedRowModel().flatRows.map((e) => e.original)
291
293
  }));
292
294
  le(
293
295
  () => {
@@ -295,39 +297,39 @@ const _o = (B) => {
295
297
  return (e = l.rowSelection) == null ? void 0 : e.selectedRowKeys;
296
298
  },
297
299
  (e, r) => {
298
- var s, h;
299
- if ((h = (s = l.rowSelection) == null ? void 0 : s.selectedRowKeys) != null && h.length && !ve(e, r)) {
300
+ var s, p;
301
+ if ((p = (s = l.rowSelection) == null ? void 0 : s.selectedRowKeys) != null && p.length && !_e(e, r)) {
300
302
  const n = Object.fromEntries(
301
303
  t(l.rowSelection.selectedRowKeys ?? Object.keys(o.value)).map(
302
304
  (b) => [b, !0]
303
305
  )
304
306
  );
305
- ve(n, o.value) || (o.value = n);
307
+ _e(n, o.value) || (o.value = n);
306
308
  }
307
309
  },
308
310
  { immediate: !0 }
309
311
  );
310
- const J = D(() => w.getIsAllRowsSelected() ? !0 : w.getIsSomeRowsSelected() ? "indeterminate" : !1), Q = (e) => {
311
- w.getIsSomeRowsSelected() || w.getIsAllRowsSelected() ? w.toggleAllRowsSelected(!1) : w.toggleAllRowsSelected(!0), ee(() => {
312
+ const Q = D(() => h.getIsAllRowsSelected() ? !0 : h.getIsSomeRowsSelected() ? "indeterminate" : !1), X = (e) => {
313
+ h.getIsSomeRowsSelected() || h.getIsAllRowsSelected() ? h.toggleAllRowsSelected(!1) : h.toggleAllRowsSelected(!0), oe(() => {
312
314
  var r, s;
313
- W((r = l.rowSelection) == null ? void 0 : r.onSelectAll) && l.rowSelection.onSelectAll({ ...H.value, selected: e }), W((s = l.rowSelection) == null ? void 0 : s.onChange) && l.rowSelection.onChange(H.value);
315
+ K((r = l.rowSelection) == null ? void 0 : r.onSelectAll) && l.rowSelection.onSelectAll({ ...H.value, selected: e }), K((s = l.rowSelection) == null ? void 0 : s.onChange) && l.rowSelection.onChange(H.value);
314
316
  });
315
- }, _e = (e, r) => {
317
+ }, ke = (e, r) => {
316
318
  var s;
317
319
  r.toggleSelected(e, {
318
320
  selectChildren: !((s = l.rowSelection) != null && s.checkStrictly)
319
- }), ee(() => {
320
- var h, n;
321
- W((h = l.rowSelection) == null ? void 0 : h.onSelect) && l.rowSelection.onSelect({
321
+ }), oe(() => {
322
+ var p, n;
323
+ K((p = l.rowSelection) == null ? void 0 : p.onSelect) && l.rowSelection.onSelect({
322
324
  ...H.value,
323
325
  selected: e,
324
326
  record: r.original
325
- }), W((n = l.rowSelection) == null ? void 0 : n.onChange) && l.rowSelection.onChange(H.value);
327
+ }), K((n = l.rowSelection) == null ? void 0 : n.onChange) && l.rowSelection.onChange(H.value);
326
328
  });
327
- }, Se = (e) => {
329
+ }, Re = (e) => {
328
330
  var r, s;
329
- return W((r = l.rowSelection) == null ? void 0 : r.getCheckboxProps) && ((s = l.rowSelection) == null || s.getCheckboxProps(e)), {};
330
- }, ie = (e) => {
331
+ return K((r = l.rowSelection) == null ? void 0 : r.getCheckboxProps) && ((s = l.rowSelection) == null || s.getCheckboxProps(e)), {};
332
+ }, ce = (e) => {
331
333
  var r;
332
334
  if (e.getIsSelected()) return !0;
333
335
  if ((r = e.subRows) != null && r.length) {
@@ -335,142 +337,151 @@ const _o = (B) => {
335
337
  if (e.getIsSomeSelected()) return "indeterminate";
336
338
  }
337
339
  return !1;
338
- }, ae = He("target"), { stop: ke } = co(ae, ([e]) => {
340
+ }, ae = Me("target"), { stop: $e } = mo(ae, ([e]) => {
339
341
  l.lazyLoading && !l.loading && (e != null && e.isIntersecting) && N("fetch");
340
342
  });
341
- Le(ke);
342
- const { getSkeletonProps: Re, getThProps: $e, RenderCell: ce, getTdProps: X, getColProps: ze, isThVisible: Be } = bo(l, {
343
+ Ve($e);
344
+ const { getSkeletonProps: ze, getThProps: Be, RenderCell: ue, getTdProps: Y, getColProps: Pe, isThVisible: Ae } = Co(l, {
343
345
  selectionId: i,
344
- isColumnWrapped: U
345
- }), ue = D(() => Object.keys(o.value).length), Ae = () => {
346
+ isColumnWrapped: J
347
+ }), me = D(() => Object.keys(o.value).length), Ie = () => {
346
348
  o.value = {};
347
- }, Ie = po(u, {
349
+ }, Te = yo(u, {
348
350
  variants: {
349
- empty: lo("empty", u)
351
+ empty: io("empty", u)
350
352
  }
351
- }), me = Ve(0), Pe = ({ item: e }, r) => {
352
- e.key === "a-z" && r.toggleSorting(!1, !1), e.key === "z-a" && r.toggleSorting(!0, !1), e.key === "wrap" && se({ id: r.id }), me.value++;
353
- }, Te = (e) => {
353
+ }), fe = Ne(0), De = ({ item: e }, r) => {
354
+ e.key === "a-z" && r.toggleSorting(!1, !1), e.key === "z-a" && r.toggleSorting(!0, !1), e.key === "wrap" && ie({ id: r.id }), fe.value++;
355
+ }, Ke = (e) => {
354
356
  const r = e.getIsSorted();
355
357
  if (!r) return "tabler:arrows-up-down";
356
358
  if (r === "desc") return "tabler:arrow-down";
357
359
  if (r === "asc") return "tabler:arrow-up";
358
360
  }, de = D(
359
- () => w.getHeaderGroups().map((e) => ({
361
+ () => h.getHeaderGroups().map((e) => ({
360
362
  ...e,
361
363
  headers: e.headers.map((r) => ({
362
364
  ...r,
363
- bindings: $e(r.getContext())
365
+ bindings: Be(r.getContext())
364
366
  }))
365
367
  }))
366
- ), De = (e, r) => N("rowClick", e, r);
367
- return (e, r) => (c(), v("div", {
368
- class: g([t(C)(t(u), "root"), e.rootCls])
368
+ ), pe = (e, r) => {
369
+ const s = se(r ?? {}, "row");
370
+ if (l.rowProps) {
371
+ if (K(l.rowProps))
372
+ return { ...l.rowProps(e, r == null ? void 0 : r.row) ?? {}, ...s };
373
+ if (U(l.rowProps)) return { ...l.rowProps, ...s };
374
+ }
375
+ return s;
376
+ }, We = (e, r) => N("rowClick", e, r);
377
+ return (e, r) => (a(), v("div", {
378
+ class: y([t(C)(t(u), "root"), e.rootCls])
369
379
  }, [
370
- f(ye, {
380
+ d(he, {
371
381
  "z-index": "1",
372
- open: !!(ue.value && _.batchActions),
382
+ open: !!(me.value && S.batchActions),
373
383
  placement: "bottom",
374
384
  "side-offset": -54,
375
385
  "container-cls": "pantograph-tokens pantograph-dark"
376
386
  }, {
377
387
  content: m(() => [
378
- R("div", {
379
- class: g(t(C)(t(u), "batch_actions"))
388
+ $("div", {
389
+ class: y(t(C)(t(u), "batch_actions"))
380
390
  }, [
381
- f(mo, {
382
- text: ue.value,
391
+ d(po, {
392
+ text: me.value,
383
393
  size: "xsm"
384
394
  }, null, 8, ["text"]),
385
- R("div", {
386
- class: g(t(C)(t(u), "batch_actions__title"))
387
- }, Ne(e.batchActionsTitle), 3),
388
- R("div", {
389
- class: g(t(C)(t(u), "batch_actions__actions"))
395
+ $("div", {
396
+ class: y(t(C)(t(u), "batch_actions__title"))
397
+ }, qe(e.batchActionsTitle), 3),
398
+ $("div", {
399
+ class: y(t(C)(t(u), "batch_actions__actions"))
390
400
  }, [
391
- T(e.$slots, "batchActions", Oe(xe(H.value)))
401
+ T(e.$slots, "batchActions", Fe(xe(H.value)))
392
402
  ], 2),
393
- f(he, {
403
+ d(be, {
394
404
  type: "vertical",
395
- class: g(t(C)(t(u), "batch_actions__divider"))
405
+ class: y(t(C)(t(u), "batch_actions__divider"))
396
406
  }, null, 8, ["class"]),
397
- f(we, {
407
+ d(ve, {
398
408
  icon: "tabler:x",
399
409
  color: "gray",
400
410
  type: "ghost",
401
- onClick: Ae
411
+ onClick: Ie
402
412
  })
403
413
  ], 2)
404
414
  ]),
405
415
  default: m(() => [
406
- R("div", {
407
- class: g([t(C)(t(u), "scroll_area"), e.scrollAreaCls])
416
+ $("div", {
417
+ class: y([t(C)(t(u), "scroll_area"), e.scrollAreaCls])
408
418
  }, [
409
- R("div", {
410
- class: g([t(C)(t(u), "scroll_viewport"), e.scrollViewportCls])
419
+ $("div", {
420
+ class: y([t(C)(t(u), "scroll_viewport"), e.scrollViewportCls])
411
421
  }, [
412
- f(t(go), {
422
+ d(t(wo), {
413
423
  size: e.size,
414
- style: Me({
424
+ style: Oe({
415
425
  tableLayout: e.tableLayout
416
426
  }),
417
- class: g([
418
- t(Ie)({
419
- empty: !t(w).getRowModel().rows.length
427
+ class: y([
428
+ t(Te)({
429
+ empty: !t(h).getRowModel().rows.length
420
430
  }),
421
431
  l.class
422
432
  ])
423
433
  }, {
424
434
  default: m(() => [
425
- R("colgroup", null, [
426
- (c(!0), v($, null, M(t(w).getVisibleLeafColumns(), (s, h) => (c(), v("col", z({
435
+ $("colgroup", null, [
436
+ (a(!0), v(z, null, V(t(h).getVisibleLeafColumns(), (s, p) => (a(), v("col", _({
427
437
  key: s.id,
428
438
  ref_for: !0
429
- }, t(ze)(s)), null, 16))), 128))
439
+ }, t(Pe)(s)), null, 16))), 128))
430
440
  ]),
431
- e.noHeader ? P("", !0) : (c(), I(t(yo), {
441
+ e.noHeader ? I("", !0) : (a(), A(t(ho), {
432
442
  key: 0,
433
- class: g(e.theadCls),
443
+ class: y(e.theadCls),
434
444
  sticky: e.stickyHeader
435
445
  }, {
436
446
  default: m(() => [
437
- (c(!0), v($, null, M(de.value, (s, h) => (c(), I(t(F), {
438
- key: s.id
439
- }, {
447
+ (a(!0), v(z, null, V(de.value, (s, p) => (a(), A(t(x), _({
448
+ key: s.id,
449
+ ref_for: !0
450
+ }, pe(p * -1 - 1)), {
440
451
  default: m(() => [
441
- (c(!0), v($, null, M(s.headers, (n) => (c(), v($, {
452
+ (a(!0), v(z, null, V(s.headers, (n) => (a(), v(z, {
442
453
  key: n.id
443
454
  }, [
444
- t(Be)(h, de.value.length, n.column.id) ? (c(), I(t(ho), z({
455
+ t(Ae)(p, de.value.length, n.column.id) ? (a(), A(t(bo), _({
445
456
  key: 0,
446
457
  ref_for: !0
447
458
  }, n.bindings, {
448
459
  "data-selection": n.column.id === i
449
460
  }), {
450
461
  default: m(() => [
451
- R("div", {
452
- class: g(t(C)(t(u), "header"))
462
+ $("div", {
463
+ class: y(t(C)(t(u), "header"))
453
464
  }, [
454
- R("div", {
455
- class: g(t(C)(t(u), "header__content"))
465
+ $("div", {
466
+ class: y(t(C)(t(u), "header__content"))
456
467
  }, [
457
- n.column.id !== i ? (c(), v($, { key: 0 }, [
458
- R("div", {
459
- class: g(t(C)(t(u), "header__content__title"))
468
+ n.column.id !== i ? (a(), v(z, { key: 0 }, [
469
+ $("div", {
470
+ class: y(t(C)(t(u), "header__content__title"))
460
471
  }, [
461
- T(e.$slots, "headerCell", z({ ref_for: !0 }, {
472
+ T(e.$slots, "headerCell", _({ ref_for: !0 }, {
462
473
  column: n.column.columnDef
463
474
  }), () => [
464
- f(t(ce), {
475
+ d(t(ue), {
465
476
  props: n.getContext(),
466
477
  render: n.column.columnDef.header
467
478
  }, null, 8, ["props", "render"])
468
479
  ])
469
480
  ], 2),
470
- n.column.getCanSort() ? (c(), I(eo, {
481
+ n.column.getCanSort() ? (a(), A(to, {
471
482
  key: 0,
472
- class: g({ hide_filter_action: !n.column.getIsSorted() }),
473
- icon: Te(n.column),
483
+ class: y({ hide_filter_action: !n.column.getIsSorted() }),
484
+ icon: Ke(n.column),
474
485
  size: "sm",
475
486
  type: "ghost",
476
487
  variant: "icon",
@@ -479,72 +490,72 @@ const _o = (B) => {
479
490
  var L;
480
491
  return (L = n.column.getToggleSortingHandler()) == null ? void 0 : L(b);
481
492
  }
482
- }, null, 8, ["class", "icon", "active", "onClick"])) : P("", !0)
483
- ], 64)) : (c(), v($, { key: 1 }, [
484
- R("div", {
485
- class: g(t(C)(t(u), "selection_space"))
493
+ }, null, 8, ["class", "icon", "active", "onClick"])) : I("", !0)
494
+ ], 64)) : (a(), v(z, { key: 1 }, [
495
+ $("div", {
496
+ class: y(t(C)(t(u), "selection_space"))
486
497
  }, null, 2),
487
- f(pe, {
498
+ d(we, {
488
499
  rootCls: "w-fit",
489
- checked: J.value,
490
- onChange: Q
500
+ checked: Q.value,
501
+ onChange: X
491
502
  }, null, 8, ["checked"])
492
503
  ], 64))
493
504
  ], 2),
494
- ![p.value, i].includes(n.column.id) && !n.column.columns.length ? (c(), v("div", {
505
+ ![g.value, i].includes(n.column.id) && !n.column.columns.length ? (a(), v("div", {
495
506
  key: 0,
496
- class: g(t(C)(t(u), "header__action"))
507
+ class: y(t(C)(t(u), "header__action"))
497
508
  }, [
498
- (c(), I(ye, {
509
+ (a(), A(he, {
499
510
  "z-index": "1",
500
511
  placement: "bottom-end",
501
- key: me.value
512
+ key: fe.value
502
513
  }, {
503
514
  content: m(() => [
504
- f(Ye, {
505
- onSelect: (b) => Pe(b, n.column)
515
+ d(oo, {
516
+ onSelect: (b) => De(b, n.column)
506
517
  }, {
507
518
  default: m(() => [
508
- n.column.getCanSort() ? (c(), v($, { key: 0 }, [
509
- f(te, {
519
+ n.column.getCanSort() ? (a(), v(z, { key: 0 }, [
520
+ d(ne, {
510
521
  title: "Sort A → Z",
511
522
  key: "a-z"
512
523
  }, {
513
524
  leading: m(({ iconSize: b }) => [
514
- f(re, {
525
+ d(re, {
515
526
  icon: "tabler:arrow-up",
516
527
  size: b
517
528
  }, null, 8, ["size"])
518
529
  ]),
519
530
  _: 1
520
531
  }),
521
- f(te, {
532
+ d(ne, {
522
533
  title: "Sort Z → A",
523
534
  key: "z-a"
524
535
  }, {
525
536
  leading: m(({ iconSize: b }) => [
526
- f(re, {
537
+ d(re, {
527
538
  icon: "tabler:arrow-down",
528
539
  size: b
529
540
  }, null, 8, ["size"])
530
541
  ]),
531
542
  _: 1
532
543
  }),
533
- f(he)
534
- ], 64)) : P("", !0),
535
- f(te, {
544
+ d(be)
545
+ ], 64)) : I("", !0),
546
+ d(ne, {
536
547
  title: "Wrap Column",
537
548
  key: "wrap"
538
549
  }, {
539
550
  leading: m(({ iconSize: b }) => [
540
- f(re, {
551
+ d(re, {
541
552
  icon: "tabler:text-wrap",
542
553
  size: b
543
554
  }, null, 8, ["size"])
544
555
  ]),
545
556
  trailing: m(() => [
546
- f(fo, {
547
- checked: t(U)(n.column.id)
557
+ d(go, {
558
+ checked: t(J)(n.column.id)
548
559
  }, null, 8, ["checked"])
549
560
  ]),
550
561
  _: 2
@@ -554,74 +565,75 @@ const _o = (B) => {
554
565
  }, 1032, ["onSelect"])
555
566
  ]),
556
567
  default: m(() => [
557
- f(we, {
568
+ d(ve, {
558
569
  icon: "tabler:dots-vertical",
559
570
  size: "sm",
560
571
  color: "gray",
561
572
  type: "ghost",
562
- class: g(t(C)(t(u), "header__action__hover"))
573
+ class: y(t(C)(t(u), "header__action__hover"))
563
574
  }, null, 8, ["class"])
564
575
  ]),
565
576
  _: 2
566
577
  }, 1024))
567
- ], 2)) : P("", !0)
578
+ ], 2)) : I("", !0)
568
579
  ], 2)
569
580
  ]),
570
581
  _: 2
571
- }, 1040, ["data-selection"])) : P("", !0)
582
+ }, 1040, ["data-selection"])) : I("", !0)
572
583
  ], 64))), 128))
573
584
  ]),
574
585
  _: 2
575
- }, 1024))), 128))
586
+ }, 1040))), 128))
576
587
  ]),
577
588
  _: 3
578
589
  }, 8, ["class", "sticky"])),
579
- f(t(wo), {
580
- class: g(e.tbodyCls)
590
+ d(t(vo), {
591
+ class: y(e.tbodyCls)
581
592
  }, {
582
593
  default: m(() => [
583
- (c(!0), v($, null, M(t(w).getRowModel().rows, (s, h) => (c(), I(t(F), {
594
+ (a(!0), v(z, null, V(t(h).getRowModel().rows, (s, p) => (a(), A(t(x), _({
584
595
  key: s.id,
585
- zebra: e.zebra,
586
- checked: !!ie(s),
587
- onClick: (n) => De(s.original, n)
588
- }, {
596
+ onClick: (n) => We(s.original, n),
597
+ ref_for: !0
598
+ }, pe(p, { zebra: e.zebra, checked: !!ce(s) })), {
589
599
  default: m(() => [
590
- (c(!0), v($, null, M(s.getVisibleCells(), (n) => {
600
+ (a(!0), v(z, null, V(s.getVisibleCells(), (n) => {
591
601
  var b, L;
592
- return c(), v($, {
602
+ return a(), v(z, {
593
603
  key: n.id
594
604
  }, [
595
- ((b = t(X)(n.getContext())) == null ? void 0 : b.colSpan) !== 0 && ((L = t(X)(n.getContext())) == null ? void 0 : L.rowSpan) !== 0 ? (c(), I(t(G), z({
605
+ ((b = t(Y)(n.getContext())) == null ? void 0 : b.colSpan) !== 0 && ((L = t(Y)(n.getContext())) == null ? void 0 : L.rowSpan) !== 0 ? (a(), A(t(G), _({
596
606
  key: 0,
597
607
  ref_for: !0
598
- }, t(X)(n.getContext())), fe({
608
+ }, t(Y)(n.getContext())), ge({
599
609
  default: m(() => [
600
- n.column.id === p.value && (_.hoverAction || _.action) ? (c(), v("div", {
610
+ n.column.id === g.value && (S.hoverAction || S.action) ? (a(), v("div", {
601
611
  key: 0,
602
- class: g(t(C)(t(u), "action_cell"))
612
+ onClick: r[0] || (r[0] = ye(() => {
613
+ }, ["stop"])),
614
+ class: y(t(C)(t(u), "action_cell"))
603
615
  }, [
604
- R("div", {
605
- class: g([t(C)(t(u), "action_cell__hover"), e.actionHoverCls])
616
+ $("div", {
617
+ class: y([t(C)(t(u), "action_cell__hover"), e.actionHoverCls])
606
618
  }, [
607
- T(e.$slots, "hoverAction", z(
619
+ T(e.$slots, "hoverAction", _(
608
620
  { ref_for: !0 },
609
621
  {
610
622
  column: n.column.columnDef,
611
623
  record: s.original,
612
- index: h
624
+ index: p
613
625
  }
614
626
  ))
615
627
  ], 2),
616
- T(e.$slots, "action", z(
628
+ T(e.$slots, "action", _(
617
629
  { ref_for: !0 },
618
630
  {
619
631
  column: n.column.columnDef,
620
632
  record: s.original,
621
- index: h
633
+ index: p
622
634
  }
623
635
  ))
624
- ], 2)) : n.column.id !== i ? T(e.$slots, "bodyCell", z(
636
+ ], 2)) : n.column.id !== i ? T(e.$slots, "bodyCell", _(
625
637
  {
626
638
  key: 1,
627
639
  ref_for: !0
@@ -629,103 +641,105 @@ const _o = (B) => {
629
641
  {
630
642
  column: n.column.columnDef,
631
643
  record: s.original,
632
- index: h
644
+ index: p
633
645
  }
634
646
  ), () => [
635
- f(t(ce), {
647
+ d(t(ue), {
636
648
  render: n.column.columnDef.cell,
637
649
  props: n.getContext()
638
650
  }, null, 8, ["render", "props"])
639
- ]) : e.rowKey && s.original[e.rowKey] ? (c(), v("div", {
651
+ ]) : e.rowKey && s.original[e.rowKey] ? (a(), v("div", {
640
652
  key: 2,
641
- class: g(t(C)(t(u), "selection"))
653
+ class: y(t(C)(t(u), "selection")),
654
+ onClick: r[1] || (r[1] = ye(() => {
655
+ }, ["stop"]))
642
656
  }, [
643
- R("div", {
644
- class: g(t(C)(t(u), "selection_space"))
657
+ $("div", {
658
+ class: y(t(C)(t(u), "selection_space"))
645
659
  }, null, 2),
646
- f(pe, z({
660
+ d(we, _({
647
661
  rootCls: "w-fit",
648
662
  disabled: !s.getCanSelect(),
649
- checked: ie(s),
650
- onChange: (Y) => _e(Y, s),
663
+ checked: ce(s),
664
+ onChange: (ee) => ke(ee, s),
651
665
  ref_for: !0
652
- }, Se(s.original)), null, 16, ["disabled", "checked", "onChange"])
653
- ], 2)) : P("", !0)
666
+ }, Re(s.original)), null, 16, ["disabled", "checked", "onChange"])
667
+ ], 2)) : I("", !0)
654
668
  ]),
655
669
  _: 2
656
670
  }, [
657
- _.cellAction && ![p.value, i].includes(n.column.id) ? {
671
+ S.cellAction && ![g.value, i].includes(n.column.id) ? {
658
672
  name: "absoluteAction",
659
673
  fn: m(() => [
660
- T(e.$slots, "cellAction", z(
674
+ T(e.$slots, "cellAction", _(
661
675
  { ref_for: !0 },
662
676
  {
663
677
  column: n.column.columnDef,
664
678
  record: s.original,
665
- index: h
679
+ index: p
666
680
  }
667
681
  ))
668
682
  ]),
669
683
  key: "0"
670
684
  } : void 0
671
- ]), 1040)) : P("", !0)
685
+ ]), 1040)) : I("", !0)
672
686
  ], 64);
673
687
  }), 128))
674
688
  ]),
675
689
  _: 2
676
- }, 1032, ["zebra", "checked", "onClick"]))), 128)),
677
- l.loading ? (c(!0), v($, { key: 0 }, M(t(w).getRowModel().rows.length ? 2 : e.loadingRowCount, (s) => (c(), I(t(F), {
690
+ }, 1040, ["onClick"]))), 128)),
691
+ l.loading ? (a(!0), v(z, { key: 0 }, V(t(h).getRowModel().rows.length ? 2 : e.loadingRowCount, (s) => (a(), A(t(x), {
678
692
  key: s,
679
693
  zebra: e.zebra
680
694
  }, {
681
695
  default: m(() => [
682
- (c(!0), v($, null, M(t(w).getVisibleLeafColumns(), (h, n) => (c(), I(t(G), { key: n }, {
696
+ (a(!0), v(z, null, V(t(h).getVisibleLeafColumns(), (p, n) => (a(), A(t(G), { key: n }, {
683
697
  default: m(() => [
684
- h.id !== i ? T(e.$slots, "skeleton", z({
698
+ p.id !== i ? T(e.$slots, "skeleton", _({
685
699
  key: 0,
686
700
  ref_for: !0
687
- }, { index: n, column: h.columnDef }), () => [
688
- f(uo, z({ ref_for: !0 }, t(Re)(h.columnDef)), null, 16)
689
- ]) : P("", !0)
701
+ }, { index: n, column: p.columnDef }), () => [
702
+ d(fo, _({ ref_for: !0 }, t(ze)(p.columnDef)), null, 16)
703
+ ]) : I("", !0)
690
704
  ]),
691
705
  _: 2
692
706
  }, 1024))), 128))
693
707
  ]),
694
708
  _: 2
695
- }, 1032, ["zebra"]))), 128)) : P("", !0),
696
- t(w).getRowModel().rows.length ? P("", !0) : (c(), I(t(F), {
709
+ }, 1032, ["zebra"]))), 128)) : I("", !0),
710
+ t(h).getRowModel().rows.length ? I("", !0) : (a(), A(t(x), {
697
711
  key: 1,
698
712
  empty: ""
699
713
  }, {
700
714
  default: m(() => [
701
- f(t(G), {
702
- colspan: t(w).getVisibleLeafColumns().length,
715
+ d(t(G), {
716
+ colspan: t(h).getVisibleLeafColumns().length,
703
717
  empty: ""
704
718
  }, {
705
719
  default: m(() => [
706
- f(oo, z({ type: "advance" }, e.emptyProps), fe({ _: 2 }, [
707
- _.emptyTitle ? {
720
+ d(no, _({ type: "advance" }, e.emptyProps), ge({ _: 2 }, [
721
+ S.emptyTitle ? {
708
722
  name: "title",
709
723
  fn: m(() => [
710
724
  T(e.$slots, "emptyTitle")
711
725
  ]),
712
726
  key: "0"
713
727
  } : void 0,
714
- _.emptyDescription ? {
728
+ S.emptyDescription ? {
715
729
  name: "title",
716
730
  fn: m(() => [
717
731
  T(e.$slots, "emptyDescription")
718
732
  ]),
719
733
  key: "1"
720
734
  } : void 0,
721
- _.emptyActions ? {
735
+ S.emptyActions ? {
722
736
  name: "title",
723
737
  fn: m(() => [
724
738
  T(e.$slots, "emptyActions")
725
739
  ]),
726
740
  key: "2"
727
741
  } : void 0,
728
- _.emptyImage ? {
742
+ S.emptyImage ? {
729
743
  name: "title",
730
744
  fn: m(() => [
731
745
  T(e.$slots, "emptyImage")
@@ -739,19 +753,19 @@ const _o = (B) => {
739
753
  ]),
740
754
  _: 3
741
755
  })),
742
- e.lazyLoading ? (c(), I(t(F), {
756
+ e.lazyLoading ? (a(), A(t(x), {
743
757
  key: 2,
744
758
  "lazy-load-observer": ""
745
759
  }, {
746
760
  default: m(() => [
747
- f(t(G), {
761
+ d(t(G), {
748
762
  ref_key: "target",
749
763
  ref: ae,
750
764
  "lazy-load-observer": ""
751
765
  }, null, 512)
752
766
  ]),
753
767
  _: 1
754
- })) : P("", !0)
768
+ })) : I("", !0)
755
769
  ]),
756
770
  _: 3
757
771
  }, 8, ["class"])
@@ -767,6 +781,6 @@ const _o = (B) => {
767
781
  }
768
782
  });
769
783
  export {
770
- Go as DataTable,
771
- Go as default
784
+ Jo as DataTable,
785
+ Jo as default
772
786
  };