morya-ui 0.3.1 → 0.3.2

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 (228) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/Button-dMqRmoYa.js +222 -0
  3. package/dist/{Card-Dsmnzong.js → Card-B1CB9Trm.js} +3 -5
  4. package/dist/Empty-C5tndBOm.js +147 -0
  5. package/dist/Pagination-CqpC5EAs.js +166 -0
  6. package/dist/Select-CKGrSoaC.js +572 -0
  7. package/dist/Skeleton-DCYdXAH2.js +59 -0
  8. package/dist/accordion/style.css +16 -71
  9. package/dist/auto-complete/index.js +117 -119
  10. package/dist/auto-complete/style.css +6 -82
  11. package/dist/avatar/style.css +6 -67
  12. package/dist/badge/style.css +6 -68
  13. package/dist/block-ui/style.css +6 -68
  14. package/dist/breadcrumb/style.css +6 -61
  15. package/dist/button/index.js +1 -1
  16. package/dist/button/style.css +68 -78
  17. package/dist/card/index.js +1 -1
  18. package/dist/card/style.css +26 -67
  19. package/dist/carousel/style.css +6 -73
  20. package/dist/cascade-select/style.css +6 -75
  21. package/dist/checkbox/style.css +6 -61
  22. package/dist/chip/style.css +6 -67
  23. package/dist/command-menu/index.js +36 -38
  24. package/dist/command-menu/style.css +6 -75
  25. package/dist/components/Accordion/styles.css +10 -10
  26. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  27. package/dist/components/AutoComplete/styles.css +0 -7
  28. package/dist/components/Badge/styles.css +0 -7
  29. package/dist/components/BlockUI/styles.css +0 -7
  30. package/dist/components/Button/Button.vue.d.ts +2 -0
  31. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  32. package/dist/components/Button/styles.css +62 -11
  33. package/dist/components/Button/types.d.ts +4 -0
  34. package/dist/components/Button/types.d.ts.map +1 -1
  35. package/dist/components/Card/Card.vue.d.ts +2 -2
  36. package/dist/components/Card/Card.vue.d.ts.map +1 -1
  37. package/dist/components/Card/index.d.ts +1 -1
  38. package/dist/components/Card/index.d.ts.map +1 -1
  39. package/dist/components/Card/styles.css +20 -6
  40. package/dist/components/Card/types.d.ts +4 -2
  41. package/dist/components/Card/types.d.ts.map +1 -1
  42. package/dist/components/Carousel/styles.css +0 -6
  43. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  44. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -2
  45. package/dist/components/Dialog/styles.css +3 -46
  46. package/dist/components/Dock/styles.css +0 -10
  47. package/dist/components/Drawer/styles.css +2 -51
  48. package/dist/components/Fieldset/styles.css +0 -7
  49. package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
  50. package/dist/components/FileUpload/fileUtils.d.ts +8 -0
  51. package/dist/components/FileUpload/fileUtils.d.ts.map +1 -0
  52. package/dist/components/Gallery/styles.css +0 -8
  53. package/dist/components/Icon/styles.css +0 -6
  54. package/dist/components/Knob/styles.css +0 -6
  55. package/dist/components/Layout/styles.css +0 -12
  56. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  57. package/dist/components/Loading/styles.css +0 -16
  58. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  59. package/dist/components/Menu/styles.css +0 -7
  60. package/dist/components/Message/styles.css +0 -13
  61. package/dist/components/Page/PageContent.vue.d.ts +2 -1
  62. package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
  63. package/dist/components/Page/PageFilterChips.vue.d.ts +16 -0
  64. package/dist/components/Page/PageFilterChips.vue.d.ts.map +1 -0
  65. package/dist/components/Page/PageFilters.vue.d.ts +15 -3
  66. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  67. package/dist/components/Page/PageHeader.vue.d.ts +8 -4
  68. package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
  69. package/dist/components/Page/PagePlaceholder.vue.d.ts +6 -2
  70. package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
  71. package/dist/components/Page/PageSection.vue.d.ts +8 -2
  72. package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
  73. package/dist/components/Page/PageStat.vue.d.ts +8 -3
  74. package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
  75. package/dist/components/Page/index.d.ts +2 -1
  76. package/dist/components/Page/index.d.ts.map +1 -1
  77. package/dist/components/Page/styles.css +239 -44
  78. package/dist/components/Page/types.d.ts +40 -0
  79. package/dist/components/Page/types.d.ts.map +1 -1
  80. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  81. package/dist/components/Pagination/styles.css +7 -10
  82. package/dist/components/Pagination/types.d.ts +1 -1
  83. package/dist/components/Pagination/types.d.ts.map +1 -1
  84. package/dist/components/Panel/styles.css +0 -7
  85. package/dist/components/Popover/styles.css +20 -17
  86. package/dist/components/ProgressBar/styles.css +0 -9
  87. package/dist/components/ProgressSpinner/styles.css +0 -7
  88. package/dist/components/ScrollTop/styles.css +0 -7
  89. package/dist/components/Scrollbar/styles.css +0 -8
  90. package/dist/components/Select/Select.vue.d.ts +1 -3
  91. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  92. package/dist/components/Select/selectOptions.d.ts +46 -0
  93. package/dist/components/Select/selectOptions.d.ts.map +1 -0
  94. package/dist/components/Select/styles.css +5 -7
  95. package/dist/components/Sidebar/styles.css +0 -6
  96. package/dist/components/Skeleton/styles.css +0 -6
  97. package/dist/components/Status/styles.css +0 -7
  98. package/dist/components/Switch/styles.css +0 -7
  99. package/dist/components/Table/hooks/useExpandableRow.d.ts.map +1 -1
  100. package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
  101. package/dist/components/Table/styles.css +7 -10
  102. package/dist/components/Table/tableQuery.d.ts +30 -0
  103. package/dist/components/Table/tableQuery.d.ts.map +1 -0
  104. package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
  105. package/dist/components/Tree/treeQuery.d.ts +31 -0
  106. package/dist/components/Tree/treeQuery.d.ts.map +1 -0
  107. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  108. package/dist/config-provider/index.js +1 -1
  109. package/dist/config-provider/style.css +68 -72
  110. package/dist/confirm-dialog/index.js +1 -1
  111. package/dist/confirm-dialog/style.css +71 -124
  112. package/dist/confirm-popup/index.js +1 -1
  113. package/dist/confirm-popup/style.css +68 -78
  114. package/dist/context-menu/style.css +6 -75
  115. package/dist/data-view/index.js +1 -1
  116. package/dist/data-view/style.css +13 -87
  117. package/dist/date-picker/style.css +6 -67
  118. package/dist/dialog/index.js +1 -1
  119. package/dist/dialog/style.css +71 -124
  120. package/dist/divider/style.css +6 -61
  121. package/dist/dock/style.css +6 -77
  122. package/dist/drawer/style.css +8 -118
  123. package/dist/dropdown/style.css +6 -75
  124. package/dist/empty/index.js +5 -150
  125. package/dist/empty/style.css +6 -67
  126. package/dist/fieldset/style.css +6 -74
  127. package/dist/file-upload/index.js +147 -145
  128. package/dist/file-upload/style.css +6 -67
  129. package/dist/filterByQuery-Bczaxzih.js +17 -0
  130. package/dist/flex/style.css +6 -61
  131. package/dist/float-label/style.css +6 -61
  132. package/dist/fluid/style.css +6 -61
  133. package/dist/form/style.css +6 -61
  134. package/dist/gallery/style.css +6 -83
  135. package/dist/grid/style.css +6 -61
  136. package/dist/icon/style.css +6 -67
  137. package/dist/icon-field/style.css +6 -61
  138. package/dist/index.d.ts +3 -2
  139. package/dist/index.d.ts.map +1 -1
  140. package/dist/index.js +9017 -8694
  141. package/dist/inplace/style.css +6 -61
  142. package/dist/input/style.css +6 -67
  143. package/dist/input-color/style.css +6 -61
  144. package/dist/input-group/style.css +6 -61
  145. package/dist/input-number/style.css +6 -67
  146. package/dist/input-otp/style.css +6 -61
  147. package/dist/input-password/style.css +6 -67
  148. package/dist/input-tags/style.css +6 -67
  149. package/dist/knob/style.css +6 -67
  150. package/dist/label/style.css +6 -61
  151. package/dist/layout/style.css +6 -87
  152. package/dist/listbox/index.js +30 -32
  153. package/dist/listbox/style.css +6 -69
  154. package/dist/loading/style.css +6 -77
  155. package/dist/mega-menu/style.css +6 -67
  156. package/dist/menu/index.js +263 -253
  157. package/dist/menu/style.css +26 -99
  158. package/dist/menubar/style.css +6 -75
  159. package/dist/message/style.css +6 -80
  160. package/dist/meter-group/style.css +6 -61
  161. package/dist/order-list/style.css +6 -67
  162. package/dist/page/index.js +228 -69
  163. package/dist/page/style.css +1182 -113
  164. package/dist/page/style.js +3 -0
  165. package/dist/pagination/index.js +1 -1
  166. package/dist/pagination/style.css +206 -77
  167. package/dist/pagination/style.js +1 -0
  168. package/dist/panel/style.css +6 -74
  169. package/dist/pick-list/style.css +6 -67
  170. package/dist/popover/style.css +26 -78
  171. package/dist/progress-bar/style.css +6 -70
  172. package/dist/progress-spinner/style.css +6 -68
  173. package/dist/radio/style.css +6 -61
  174. package/dist/rating/style.css +6 -67
  175. package/dist/resolver-map.d.ts.map +1 -1
  176. package/dist/resolver.js +1 -0
  177. package/dist/result/style.css +6 -67
  178. package/dist/scroll-top/style.css +6 -82
  179. package/dist/scrollbar/style.css +6 -69
  180. package/dist/select/index.js +2 -545
  181. package/dist/select/style.css +11 -82
  182. package/dist/select-button/style.css +6 -61
  183. package/dist/shared/config.d.ts +2 -2
  184. package/dist/shared/filterByQuery.d.ts +14 -0
  185. package/dist/shared/filterByQuery.d.ts.map +1 -0
  186. package/dist/shared/menu/expand.d.ts +38 -0
  187. package/dist/shared/menu/expand.d.ts.map +1 -0
  188. package/dist/shared/menu/index.d.ts +2 -0
  189. package/dist/shared/menu/index.d.ts.map +1 -1
  190. package/dist/sidebar/style.css +6 -73
  191. package/dist/skeleton/index.js +2 -59
  192. package/dist/skeleton/style.css +6 -67
  193. package/dist/slider/style.css +6 -61
  194. package/dist/space/style.css +6 -61
  195. package/dist/speed-dial/style.css +6 -67
  196. package/dist/split-button/style.css +68 -78
  197. package/dist/splitter/style.css +6 -61
  198. package/dist/status/style.css +6 -74
  199. package/dist/stepper/style.css +6 -67
  200. package/dist/styles/base.css +1 -50
  201. package/dist/styles.css +1 -1
  202. package/dist/switch/style.css +6 -68
  203. package/dist/table/index.js +341 -311
  204. package/dist/table/style.css +20 -111
  205. package/dist/tabs/style.css +6 -75
  206. package/dist/tag/style.css +6 -67
  207. package/dist/terminal/style.css +6 -61
  208. package/dist/textarea/style.css +6 -67
  209. package/dist/theme/styles.css +5 -11
  210. package/dist/theme/useMotion.d.ts +5 -1
  211. package/dist/theme/useMotion.d.ts.map +1 -1
  212. package/dist/tiered-menu/style.css +6 -75
  213. package/dist/timeline/style.css +6 -75
  214. package/dist/toast/style.css +6 -67
  215. package/dist/toggle-button/style.css +6 -67
  216. package/dist/toolbar/style.css +6 -61
  217. package/dist/tooltip/style.css +6 -61
  218. package/dist/tree/index.js +158 -172
  219. package/dist/tree/style.css +6 -67
  220. package/dist/tree-select/index.js +198 -212
  221. package/dist/tree-select/style.css +6 -75
  222. package/dist/tree-table/style.css +6 -67
  223. package/dist/treeQuery-CnHkyYOA.js +107 -0
  224. package/dist/virtual-scroller/style.css +6 -69
  225. package/package.json +1 -1
  226. package/dist/Button-smoDleh0.js +0 -156
  227. package/dist/Pagination-DrXmzcEy.js +0 -158
  228. package/dist/checkStrategy-CZzuUKDI.js +0 -63
@@ -4,13 +4,13 @@ import { t as n } from "../Icon-od9Ob-Ay.js";
4
4
  import { t as r } from "../Scrollbar-DTeJ8P5b.js";
5
5
  import { t as i } from "../Checkbox-BzbAUfyZ.js";
6
6
  import { t as a } from "../Loading-BSsRs6v9.js";
7
- import { t as o } from "../Pagination-DrXmzcEy.js";
7
+ import { t as o } from "../Pagination-CqpC5EAs.js";
8
8
  import { t as s } from "../Tooltip-D5DO0B3z.js";
9
9
  import { t as c } from "../Radio-rF6zdR5Y.js";
10
10
  import { o as l } from "../config-CapALqt3.js";
11
11
  import { n as u } from "../locale-Bzm2nbEp.js";
12
12
  import "./style.js";
13
- import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as ee, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, openBlock as w, provide as T, ref as E, renderList as D, renderSlot as O, toDisplayString as k, toRefs as te, unref as A, useAttrs as ne, useSlots as re, watch as j, withCtx as M, withModifiers as N } from "vue";
13
+ import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _, createVNode as v, defineComponent as y, guardReactiveProps as b, mergeProps as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, openBlock as T, provide as E, ref as D, renderList as O, renderSlot as k, toDisplayString as A, toRefs as ee, unref as j, useAttrs as te, useSlots as ne, watch as M, withCtx as re, withModifiers as N } from "vue";
14
14
  //#region src/components/Table/hooks/useClickRow.ts
15
15
  function ie(e, t, n, r) {
16
16
  return { clickRow: (i, a, o, s) => {
@@ -46,16 +46,90 @@ function F(e, t, n = "id") {
46
46
  return (typeof r == "string" || typeof r == "number") && (typeof i == "string" || typeof i == "number") ? r === i : JSON.stringify(e) === JSON.stringify(t);
47
47
  }
48
48
  //#endregion
49
+ //#region src/components/Table/tableQuery.ts
50
+ function se(e, t, n) {
51
+ if (typeof e == "number" && typeof t == "number") return e < t ? n ? 1 : -1 : e > t ? n ? -1 : 1 : 0;
52
+ let r = String(e ?? ""), i = String(t ?? "");
53
+ return r < i ? n ? 1 : -1 : r > i ? n ? -1 : 1 : 0;
54
+ }
55
+ function ce(e, t) {
56
+ return typeof t == "function" ? t(e) : Array.isArray(t) ? t.includes(e) : e === t || String(e ?? "") === String(t);
57
+ }
58
+ function I(e, t) {
59
+ let { field: n, comparison: r, criteria: i } = t, a = P(String(n), e);
60
+ if (typeof r == "function") return r(a, i);
61
+ switch (r) {
62
+ case "=": return a === i;
63
+ case "!=": return a !== i;
64
+ case ">": return Number(a) > Number(i);
65
+ case "<": return Number(a) < Number(i);
66
+ case "<=": return Number(a) <= Number(i);
67
+ case ">=": return Number(a) >= Number(i);
68
+ case "between": {
69
+ let e = i, t = Number(a);
70
+ return t >= Math.min(...e) && t <= Math.max(...e);
71
+ }
72
+ case "in": return i.includes(a);
73
+ default: return a === i;
74
+ }
75
+ }
76
+ function L(e, t, n) {
77
+ let r = [...e];
78
+ if (t) for (let [e, n] of Object.entries(t)) n != null && n !== "" && (r = r.filter((t) => ce(P(e, t), n)));
79
+ if (n) for (let e of n) r = r.filter((t) => I(t, e));
80
+ return r;
81
+ }
82
+ function le(e, t) {
83
+ return typeof t == "string" && t !== "" ? String(P(t, e)) : Array.isArray(t) ? t.map((t) => String(P(t, e))).join("") : Object.values(e).join(" ");
84
+ }
85
+ function ue(e, t, n = "") {
86
+ if (!t) return e;
87
+ let r = t.toLowerCase();
88
+ return e.filter((e) => le(e, n).toLowerCase().includes(r));
89
+ }
90
+ function R(e, t, n, r) {
91
+ let i = e[r], a = t[r];
92
+ return (r === 0 ? n : R(e, t, n, r - 1)).sort((t, n) => {
93
+ for (let i = 0; i < r; i += 1) if (P(e[i], t) !== P(e[i], n)) return 0;
94
+ return se(P(i, t), P(i, n), a);
95
+ });
96
+ }
97
+ function de(e, t, n, r = !1) {
98
+ let i = [...e];
99
+ return r && Array.isArray(t) && Array.isArray(n) ? t.length === 0 ? i : R(t, n, i, t.length - 1) : i.sort((e, r) => se(P(t, e), P(t, r), n));
100
+ }
101
+ function fe(e, t) {
102
+ return e.indexOf(t) === -1 ? {
103
+ next: [...e, t],
104
+ expanded: !0
105
+ } : {
106
+ next: e.filter((e) => e !== t),
107
+ expanded: !1
108
+ };
109
+ }
110
+ function z(e, t, n = "id") {
111
+ let r = { ...t };
112
+ return delete r.checkbox, delete r.index, t.checkbox ? {
113
+ next: e.filter((e) => !F(e, r, n)),
114
+ selected: !1,
115
+ row: r
116
+ } : {
117
+ next: [r, ...e],
118
+ selected: !0,
119
+ row: r
120
+ };
121
+ }
122
+ //#endregion
49
123
  //#region src/components/Table/hooks/useExpandableRow.ts
50
- function se(e, t, n, r) {
51
- let i = E([]), a = f(() => e.value ?? i.value), o = (e, r) => oe(e, n.value + r, t.value);
124
+ function pe(e, t, n, r) {
125
+ let i = D([]), a = f(() => e.value ?? i.value), o = (e, r) => oe(e, n.value + r, t.value);
52
126
  return {
53
127
  expandedKeys: a,
54
128
  isRowExpanded: (e, t) => a.value.includes(o(e, t)),
55
129
  toggleExpandRow: (e, t, n) => {
56
130
  n.stopPropagation();
57
- let s = o(e, t), c = a.value.indexOf(s) === -1, l = c ? [...a.value, s] : a.value.filter((e) => e !== s);
58
- i.value = l, r("update:expandedRowKeys", l), r("expand", {
131
+ let { next: s, expanded: c } = fe(a.value, o(e, t));
132
+ i.value = s, r("update:expandedRowKeys", s), r("expand", {
59
133
  row: e,
60
134
  expanded: c
61
135
  });
@@ -64,9 +138,9 @@ function se(e, t, n, r) {
64
138
  }
65
139
  //#endregion
66
140
  //#region src/components/Table/hooks/useFixedColumn.ts
67
- var ce = (e) => e.fixed === "right", le = (e) => !!e.fixed;
68
- function ue(e) {
69
- let t = f(() => e.value.filter(le)), n = f(() => e.value.filter((e) => le(e) && !ce(e))), r = f(() => e.value.filter(ce));
141
+ var me = (e) => e.fixed === "right", he = (e) => !!e.fixed;
142
+ function ge(e) {
143
+ let t = f(() => e.value.filter(he)), n = f(() => e.value.filter((e) => he(e) && !me(e))), r = f(() => e.value.filter(me));
70
144
  return {
71
145
  fixedHeaders: t,
72
146
  lastFixedColumn: f(() => n.value.length ? n.value[n.value.length - 1].value : ""),
@@ -88,23 +162,23 @@ function ue(e) {
88
162
  })
89
163
  };
90
164
  }
91
- function de(e, t, n, r, i, a, o, s, c, l, u, d, p, m, h, g, ee, _, v, y) {
92
- let b = f(() => o.value.some((e) => e.fixed)), x = f(() => b.value ? o.value.filter((e) => e.fixed && e.fixed !== "right") : []), S = f(() => b.value ? o.value.filter((e) => e.fixed === "right") : []), C = f(() => o.value.filter((e) => !e.fixed)), w = (e, t) => Array.isArray(e) && Array.isArray(t) ? {
165
+ function _e(e, t, n, r, i, a, o, s, c, l, u, d, p, m, h, g, _, v, y, b) {
166
+ let x = f(() => o.value.some((e) => e.fixed)), S = f(() => x.value ? o.value.filter((e) => e.fixed && e.fixed !== "right") : []), C = f(() => x.value ? o.value.filter((e) => e.fixed === "right") : []), w = f(() => o.value.filter((e) => !e.fixed)), T = (e, t) => Array.isArray(e) && Array.isArray(t) ? {
93
167
  sortBy: e,
94
168
  sortDesc: t.map((e) => e === "desc")
95
169
  } : e === "" ? null : {
96
170
  sortBy: h.value,
97
171
  sortDesc: g.value === "desc"
98
- }, T = E(w(h.value, g.value)), D = f({
99
- get: () => _.value === "emit" ? w(h.value, g.value) : T.value,
172
+ }, E = D(T(h.value, g.value)), O = f({
173
+ get: () => v.value === "emit" ? T(h.value, g.value) : E.value,
100
174
  set: (e) => {
101
- T.value = e;
175
+ E.value = e;
102
176
  }
103
- }), O = f(() => {
177
+ }), k = f(() => {
104
178
  let o = [
105
- ...x.value,
106
- ...C.value,
107
- ...S.value
179
+ ...S.value,
180
+ ...w.value,
181
+ ...C.value
108
182
  ].map((e) => {
109
183
  let t = { ...e };
110
184
  if (t.sortable && (t.sortType = "none"), p.value) {
@@ -113,61 +187,61 @@ function de(e, t, n, r, i, a, o, s, c, l, u, d, p, m, h, g, ee, _, v, y) {
113
187
  t.sortType = p.value.sortType[e];
114
188
  } else t.value === p.value.sortBy && p.value.sortType && (t.sortType = p.value.sortType);
115
189
  }
116
- if (D.value && Array.isArray(D.value.sortBy) && Array.isArray(D.value.sortDesc) && D.value.sortBy.includes(t.value)) {
117
- let e = D.value.sortBy.indexOf(t.value);
118
- t.sortType = D.value.sortDesc[e] ? "desc" : "asc";
119
- } else D.value && t.value === D.value.sortBy && (t.sortType = D.value.sortDesc ? "desc" : "asc");
190
+ if (O.value && Array.isArray(O.value.sortBy) && Array.isArray(O.value.sortDesc) && O.value.sortBy.includes(t.value)) {
191
+ let e = O.value.sortBy.indexOf(t.value);
192
+ t.sortType = O.value.sortDesc[e] ? "desc" : "asc";
193
+ } else O.value && t.value === O.value.sortBy && (t.sortType = O.value.sortDesc ? "desc" : "asc");
120
194
  return t;
121
195
  }), u = s.value ? [{
122
196
  text: "",
123
197
  value: "expand",
124
- fixed: i.value || b.value,
198
+ fixed: i.value || x.value,
125
199
  width: n.value
126
200
  }, ...o] : o, d = m.value ? [{
127
201
  text: e.value,
128
202
  value: "index",
129
- fixed: a.value || b.value,
203
+ fixed: a.value || x.value,
130
204
  width: c.value
131
205
  }, ...u] : u, f = l.value === "checkbox" ? [{
132
206
  text: "checkbox",
133
207
  value: "checkbox",
134
- fixed: r.value || b.value,
208
+ fixed: r.value || x.value,
135
209
  width: t.value ?? 48
136
210
  }] : l.value === "radio" ? [{
137
211
  text: "",
138
212
  value: "radio",
139
- fixed: r.value || b.value,
213
+ fixed: r.value || x.value,
140
214
  width: t.value ?? 48
141
215
  }] : [];
142
216
  return f.length ? [...f, ...d] : d;
143
217
  });
144
218
  return {
145
- clientSortOptions: D,
146
- headerColumns: f(() => O.value.map((e) => e.value)),
147
- headersForRender: O,
219
+ clientSortOptions: O,
220
+ headerColumns: f(() => k.value.map((e) => e.value)),
221
+ headersForRender: k,
148
222
  updateSortField: (e, t) => {
149
223
  let n = null;
150
- if (n = t === "none" ? "asc" : t === "asc" ? "desc" : d.value ? "asc" : null, u.value && v(e, n), _.value !== "emit") {
151
- if (T.value && Array.isArray(T.value.sortBy) && Array.isArray(T.value.sortDesc)) {
152
- let t = T.value.sortBy.indexOf(e);
153
- t === -1 ? n !== null && (T.value.sortBy.push(e), T.value.sortDesc.push(n === "desc")) : n === null ? (T.value.sortDesc.splice(t, 1), T.value.sortBy.splice(t, 1)) : T.value.sortDesc[t] = n === "desc";
154
- } else n === null ? T.value = null : T.value = {
224
+ if (n = t === "none" ? "asc" : t === "asc" ? "desc" : d.value ? "asc" : null, u.value && y(e, n), v.value !== "emit") {
225
+ if (E.value && Array.isArray(E.value.sortBy) && Array.isArray(E.value.sortDesc)) {
226
+ let t = E.value.sortBy.indexOf(e);
227
+ t === -1 ? n !== null && (E.value.sortBy.push(e), E.value.sortDesc.push(n === "desc")) : n === null ? (E.value.sortDesc.splice(t, 1), E.value.sortBy.splice(t, 1)) : E.value.sortDesc[t] = n === "desc";
228
+ } else n === null ? E.value = null : E.value = {
155
229
  sortBy: e,
156
230
  sortDesc: n === "desc"
157
231
  };
158
232
  }
159
- y("sort", {
233
+ b("sort", {
160
234
  sortField: e,
161
235
  sortOrder: n
162
236
  });
163
237
  },
164
- isMultiSorting: (e) => p.value && Array.isArray(p.value.sortBy) ? p.value.sortBy.includes(e) : D.value && Array.isArray(D.value.sortBy) ? D.value.sortBy.includes(e) : !1,
165
- getMultiSortNumber: (e) => p.value && Array.isArray(p.value.sortBy) ? p.value.sortBy.indexOf(e) + 1 : D.value && Array.isArray(D.value.sortBy) ? D.value.sortBy.indexOf(e) + 1 : !1
238
+ isMultiSorting: (e) => p.value && Array.isArray(p.value.sortBy) ? p.value.sortBy.includes(e) : O.value && Array.isArray(O.value.sortBy) ? O.value.sortBy.includes(e) : !1,
239
+ getMultiSortNumber: (e) => p.value && Array.isArray(p.value.sortBy) ? p.value.sortBy.indexOf(e) + 1 : O.value && Array.isArray(O.value.sortBy) ? O.value.sortBy.indexOf(e) + 1 : !1
166
240
  };
167
241
  }
168
242
  //#endregion
169
243
  //#region src/components/Table/hooks/usePageItems.ts
170
- function fe(e, t, n, r, i, a, o, s, c, l) {
244
+ function ve(e, t, n, r, i, a, o, s, c, l) {
171
245
  let u = f(() => (e.value - 1) * i.value + 1), d = f(() => n.value ? Math.min(c.value, e.value * i.value) : Math.min(s.value.length, e.value * i.value)), p = f(() => n.value ? r.value : s.value.slice(u.value - 1, d.value)), m = f(() => o.value ? p.value.map((e, t) => ({
172
246
  index: u.value + t,
173
247
  ...e
@@ -193,8 +267,8 @@ function fe(e, t, n, r, i, a, o, s, c, l) {
193
267
  }
194
268
  //#endregion
195
269
  //#region src/components/Table/hooks/usePagination.ts
196
- function pe(e, t, n, r, i, a, o) {
197
- let s = E(a.value ? a.value.page : e.value), c = f(() => Math.ceil(r.value / i.value)), l = f(() => c.value === 0 || s.value === c.value), u = f(() => s.value === 1);
270
+ function ye(e, t, n, r, i, a, o) {
271
+ let s = D(a.value ? a.value.page : e.value), c = f(() => Math.ceil(r.value / i.value)), l = f(() => c.value === 0 || s.value === c.value), u = f(() => s.value === 1);
198
272
  return {
199
273
  currentPaginationNumber: s,
200
274
  maxPaginationNumber: c,
@@ -216,8 +290,8 @@ function pe(e, t, n, r, i, a, o) {
216
290
  }
217
291
  //#endregion
218
292
  //#region src/components/Table/hooks/useRows.ts
219
- function me(e, t, n, r) {
220
- let i = f(() => !e.value && !t.value.includes(r.value) ? [r.value, ...t.value] : t.value), a = E(n.value ? n.value.rowsPerPage : r.value);
293
+ function be(e, t, n, r) {
294
+ let i = f(() => !e.value && !t.value.includes(r.value) ? [r.value, ...t.value] : t.value), a = D(n.value ? n.value.rowsPerPage : r.value);
221
295
  return {
222
296
  rowsItemsComputed: i,
223
297
  rowsPerPageRef: a,
@@ -228,7 +302,7 @@ function me(e, t, n, r) {
228
302
  }
229
303
  //#endregion
230
304
  //#region src/components/Table/hooks/useServerOptions.ts
231
- function he(e, t, n) {
305
+ function xe(e, t, n) {
232
306
  let r = f({
233
307
  get: () => {
234
308
  if (!e.value) return null;
@@ -275,157 +349,113 @@ function he(e, t, n) {
275
349
  }
276
350
  //#endregion
277
351
  //#region src/components/Table/hooks/useTotalItems.ts
278
- function I(e, t, n) {
279
- if (typeof e == "number" && typeof t == "number") return e < t ? n ? 1 : -1 : e > t ? n ? -1 : 1 : 0;
280
- let r = String(e ?? ""), i = String(t ?? "");
281
- return r < i ? n ? 1 : -1 : r > i ? n ? -1 : 1 : 0;
282
- }
283
- function L(e, t) {
284
- return typeof t == "function" ? t(e) : Array.isArray(t) ? t.includes(e) : e === t || String(e ?? "") === String(t);
285
- }
286
- function ge(e, t, n, r, i, a, o, s, c, l, u, d) {
287
- let p = (e) => typeof o.value == "string" && o.value !== "" ? String(P(o.value, e)) : Array.isArray(o.value) ? o.value.map((t) => String(P(t, e))).join("") : Object.values(e).join(" "), m = f(() => {
288
- if (!r.value && s.value !== "") {
289
- let e = s.value.toLowerCase();
290
- return i.value.filter((t) => p(t).toLowerCase().includes(e));
291
- }
292
- return i.value;
293
- }), h = f(() => {
294
- let e = [...m.value];
295
- if (n.value) for (let [t, r] of Object.entries(n.value)) r != null && r !== "" && (e = e.filter((e) => L(P(t, e), r)));
296
- if (t.value) for (let n of t.value) e = e.filter((e) => {
297
- let { field: t, comparison: r, criteria: i } = n, a = P(String(t), e);
298
- if (typeof r == "function") return r(a, i);
299
- switch (r) {
300
- case "=": return a === i;
301
- case "!=": return a !== i;
302
- case ">": return Number(a) > Number(i);
303
- case "<": return Number(a) < Number(i);
304
- case "<=": return Number(a) <= Number(i);
305
- case ">=": return Number(a) >= Number(i);
306
- case "between": {
307
- let e = i, t = Number(a);
308
- return t >= Math.min(...e) && t <= Math.max(...e);
309
- }
310
- case "in": return i.includes(a);
311
- default: return a === i;
312
- }
313
- });
314
- return e;
315
- });
316
- function g(e, t, n, r) {
317
- let i = e[r], a = t[r];
318
- return (r === 0 ? n : g(e, t, n, r - 1)).sort((t, n) => {
319
- for (let i = 0; i < r; i += 1) if (P(e[i], t) !== P(e[i], n)) return 0;
320
- return I(P(i, t), P(i, n), a);
321
- });
322
- }
323
- let ee = f(() => {
352
+ function Se(e, t, n, r, i, a, o, s, c, l, u, d) {
353
+ let p = f(() => r.value || s.value === "" ? i.value : ue(i.value, s.value, o.value)), m = f(() => L(p.value, n.value, t.value)), h = f(() => {
324
354
  if (r.value) return i.value;
325
- if (e.value === null) return h.value;
326
- let { sortBy: t, sortDesc: n } = e.value, a = [...h.value];
327
- return l.value && Array.isArray(t) && Array.isArray(n) ? t.length === 0 ? a : g(t, n, a, t.length - 1) : a.sort((e, r) => I(P(t, e), P(t, r), n));
328
- }), _ = f(() => r.value ? c.value : ee.value.length), v = f({
355
+ if (e.value === null) return m.value;
356
+ let { sortBy: t, sortDesc: n } = e.value;
357
+ return de(m.value, t, n, l.value);
358
+ }), g = f(() => r.value ? c.value : h.value.length), _ = f({
329
359
  get: () => a.value ?? [],
330
360
  set: (e) => d("update:selection", e)
331
361
  });
332
362
  return {
333
- totalItems: ee,
334
- selectItemsComputed: v,
335
- totalItemsLength: _,
363
+ totalItems: h,
364
+ selectItemsComputed: _,
365
+ totalItemsLength: g,
336
366
  toggleSelectAll: (e) => {
337
- v.value = e ? ee.value : [], e && d("selectAll");
367
+ _.value = e ? h.value : [], e && d("selectAll");
338
368
  },
339
369
  toggleSelectItem: (e) => {
340
- let t = e.checkbox, n = { ...e };
341
- delete n.checkbox, delete n.index, t ? (v.value = v.value.filter((e) => !F(e, n, u.value)), d("deselectRow", n)) : (v.value = [n, ...v.value], d("selectRow", n));
370
+ let { next: t, selected: n, row: r } = z(_.value, e, u.value);
371
+ _.value = t, d(n ? "selectRow" : "deselectRow", r);
342
372
  }
343
373
  };
344
374
  }
345
- function _e(e) {
375
+ function Ce(e) {
346
376
  if (e) return e === "left" || e === "start" ? "start" : e === "right" || e === "end" ? "end" : "center";
347
377
  }
348
- function ve(e) {
378
+ function we(e) {
349
379
  if (e === !0 || e === "left") return "left";
350
380
  if (e === "right") return "right";
351
381
  }
352
- function ye(e) {
382
+ function Te(e) {
353
383
  return {
354
384
  text: e.label,
355
385
  value: e.key,
356
386
  sortable: e.sortable,
357
- fixed: ve(e.fixed),
387
+ fixed: we(e.fixed),
358
388
  width: e.width,
359
389
  minWidth: e.minWidth ?? (e.width ? void 0 : 80),
360
- align: _e(e.align),
390
+ align: Ce(e.align),
361
391
  render: e.render,
362
392
  showOverflowTooltip: e.showOverflowTooltip
363
393
  };
364
394
  }
365
- function be(e) {
366
- return e.map(ye);
395
+ function Ee(e) {
396
+ return e.map(Te);
367
397
  }
368
- function xe(e) {
398
+ function De(e) {
369
399
  return e ?? "asc";
370
400
  }
371
- function Se(e) {
401
+ function Oe(e) {
372
402
  return e ?? "";
373
403
  }
374
404
  //#endregion
375
405
  //#region src/components/Table/TableLoadingLine.vue?vue&type=script&setup=true&lang.ts
376
- var R = ["aria-label"], Ce = /* @__PURE__ */ v({
406
+ var ke = ["aria-label"], Ae = /* @__PURE__ */ y({
377
407
  __name: "TableLoadingLine",
378
408
  setup(e) {
379
409
  let t = u();
380
- return (e, n) => (w(), h("div", {
410
+ return (e, n) => (T(), h("div", {
381
411
  class: "m-table__loading-line",
382
412
  role: "status",
383
- "aria-label": A(t).loading
384
- }, null, 8, R));
413
+ "aria-label": j(t).loading
414
+ }, null, 8, ke));
385
415
  }
386
- }), we = ["aria-label"], Te = ["aria-busy"], Ee = ["id"], De = [
416
+ }), je = ["aria-label"], Me = ["aria-busy"], Ne = ["id"], Pe = [
387
417
  "aria-sort",
388
418
  "tabindex",
389
419
  "onClick",
390
420
  "onKeydown"
391
- ], Oe = {
421
+ ], Fe = {
392
422
  key: 0,
393
423
  class: "m-table__cell-inner m-table__cell-inner--selection"
394
- }, ke = {
424
+ }, Ie = {
395
425
  key: 1,
396
426
  class: "m-table__cell-inner m-table__cell-inner--selection"
397
- }, Ae = ["title"], je = {
427
+ }, Le = ["title"], Re = {
398
428
  key: 4,
399
429
  class: "m-table__sort",
400
430
  "aria-hidden": "true"
401
- }, Me = {
431
+ }, ze = {
402
432
  key: 5,
403
433
  class: "m-table__multi-sort-number"
404
- }, Ne = {
434
+ }, Be = {
405
435
  key: 3,
406
436
  class: "m-table__body"
407
- }, Pe = [
437
+ }, Ve = [
408
438
  "onClick",
409
439
  "onDblclick",
410
440
  "onContextmenu"
411
- ], Fe = ["onClick"], Ie = [
441
+ ], He = ["onClick"], Ue = [
412
442
  "aria-expanded",
413
443
  "aria-label",
414
444
  "onClick"
415
- ], Le = {
445
+ ], We = {
416
446
  key: 6,
417
447
  class: "m-table__cell-text"
418
- }, Re = { class: "m-table__tooltip-trigger" }, ze = { class: "m-table__cell-text" }, Be = ["colspan"], Ve = {
448
+ }, Ge = { class: "m-table__tooltip-trigger" }, Ke = { class: "m-table__cell-text" }, qe = ["colspan"], Je = {
419
449
  key: 0,
420
450
  class: "m-table__message",
421
451
  role: "status"
422
- }, He = { class: "m-table__empty-text" }, Ue = {
452
+ }, Ye = { class: "m-table__empty-text" }, Xe = {
423
453
  key: 0,
424
454
  class: "m-table__empty-description"
425
- }, We = {
455
+ }, Ze = {
426
456
  key: 0,
427
457
  class: "m-table__footer"
428
- }, Ge = { class: "m-table__items-index" }, Ke = /* @__PURE__ */ v({
458
+ }, Qe = { class: "m-table__items-index" }, $e = /* @__PURE__ */ y({
429
459
  inheritAttrs: !1,
430
460
  __name: "Table",
431
461
  props: {
@@ -595,67 +625,67 @@ var R = ["aria-label"], Ce = /* @__PURE__ */ v({
595
625
  "update:expandedRowKeys",
596
626
  "update:filters"
597
627
  ],
598
- setup(v, { expose: ce, emit: le }) {
599
- let I = v, L = le, ve = ne(), { rootAttrs: ye } = e(ve, () => I.pt), R = (e, ...t) => {
628
+ setup(y, { expose: se, emit: ce }) {
629
+ let I = y, L = ce, le = te(), { rootAttrs: ue } = e(le, () => I.pt), R = (e, ...t) => {
600
630
  L(e, ...t);
601
- }, { value: Ke, setValue: qe } = t({
631
+ }, { value: de, setValue: fe } = t({
602
632
  controlled: () => I.filters ?? void 0,
603
633
  defaultValue: null
604
634
  }, (e) => {
605
635
  L("filter", e), L("update:filters", e);
606
- }), z = u(), { tableNodeId: Je, clickEventType: Ye, bodyTextDirection: Xe, checkboxColumnWidth: Ze, expandColumnWidth: Qe, expandedRowKeys: $e, filterOptions: et, fixedCheckbox: tt, fixedExpand: nt, fixedHeader: rt, fixedIndex: it, headerTextDirection: at, indexColumnWidth: ot, selectionMode: st, selectedItem: ct, loading: B, mustSort: lt, multiSort: V, rowsItems: ut, rowsPerPage: dt, searchField: ft, searchValue: pt, serverItemsLength: mt, serverOptions: H, showIndex: ht, sortMode: gt, tableHeight: _t, tableMinHeight: vt, rowsOfPageSeparatorMessage: yt, showIndexSymbol: bt, preventContextMenuRow: xt, headerItemClassName: St, bodyRowClassName: Ct, bodyExpandRowClassName: wt, bodyItemClassName: Tt, tableClassName: Et, headerClassName: Dt, rowsPerPageMessage: Ot, hideHeader: kt, hideRowsPerPage: At, clickRowToExpand: jt, expandable: Mt, emptyDescription: Nt, fit: Pt, emptyText: Ft, showHeader: It, maxHeight: Lt, paginator: Rt, rowKey: U, ariaLabel: zt, size: Bt } = te(I), W = f(() => be(I.columns)), Vt = f(() => I.rows), Ht = f(() => I.selection ?? null), Ut = f(() => Se(I.sortField)), Wt = f(() => xe(I.sortOrder)), Gt = f(() => I.page ?? 1), Kt = f(() => I.striped), qt = f(() => I.bordered), Jt = f(() => I.highlightCurrent), Yt = f(() => !I.rowHover), Xt = l("Table", () => Bt.value), Zt = f(() => {
607
- if (Xt.value === "small") return "m-table--small";
608
- if (Xt.value === "large") return "m-table--large";
609
- }), Qt = f(() => [
610
- Et.value,
611
- Zt.value,
636
+ }), z = u(), { tableNodeId: me, clickEventType: he, bodyTextDirection: we, checkboxColumnWidth: Te, expandColumnWidth: ke, expandedRowKeys: $e, filterOptions: et, fixedCheckbox: tt, fixedExpand: nt, fixedHeader: rt, fixedIndex: it, headerTextDirection: at, indexColumnWidth: ot, selectionMode: st, selectedItem: ct, loading: B, mustSort: lt, multiSort: ut, rowsItems: dt, rowsPerPage: ft, searchField: pt, searchValue: mt, serverItemsLength: ht, serverOptions: gt, showIndex: _t, sortMode: vt, tableHeight: yt, tableMinHeight: bt, rowsOfPageSeparatorMessage: xt, showIndexSymbol: St, preventContextMenuRow: Ct, headerItemClassName: wt, bodyRowClassName: Tt, bodyExpandRowClassName: Et, bodyItemClassName: Dt, tableClassName: Ot, headerClassName: kt, rowsPerPageMessage: At, hideHeader: jt, hideRowsPerPage: Mt, clickRowToExpand: Nt, expandable: Pt, emptyDescription: Ft, fit: It, emptyText: Lt, showHeader: Rt, maxHeight: zt, paginator: Bt, rowKey: V, ariaLabel: Vt, size: Ht } = ee(I), H = f(() => Ee(I.columns)), Ut = f(() => I.rows), Wt = f(() => I.selection ?? null), Gt = f(() => Oe(I.sortField)), Kt = f(() => De(I.sortOrder)), qt = f(() => I.page ?? 1), Jt = f(() => I.striped), Yt = f(() => I.bordered), Xt = f(() => I.highlightCurrent), Zt = f(() => !I.rowHover), Qt = l("Table", () => Ht.value), $t = f(() => {
637
+ if (Qt.value === "small") return "m-table--small";
638
+ if (Qt.value === "large") return "m-table--large";
639
+ }), en = f(() => [
640
+ Ot.value,
641
+ $t.value,
612
642
  {
613
- "m-table--border": qt.value,
614
- "m-table--striped": Kt.value,
615
- "m-table--enable-row-hover": !Yt.value
643
+ "m-table--border": Yt.value,
644
+ "m-table--striped": Jt.value,
645
+ "m-table--enable-row-hover": !Zt.value
616
646
  }
617
- ]), $t = f(() => $n.value.length > 0 || Pt.value !== !1), en = f(() => Ft.value ?? z.value.emptyMessage), tn = f(() => It.value ?? !kt.value), nn = f(() => Lt.value ?? _t.value), rn = f(() => nn.value ? `${nn.value}px` : null), an = f(() => `${vt.value}px`), G = re(), on = f(() => !!G.pagination), sn = f(() => !!G.loading), cn = f(() => Mt.value || !!G.expansion), ln = f(() => !!G.body), un = f(() => {
647
+ ]), tn = f(() => $n.value.length > 0 || It.value !== !1), nn = f(() => Lt.value ?? z.value.emptyMessage), rn = f(() => Rt.value ?? !jt.value), an = f(() => zt.value ?? yt.value), on = f(() => an.value ? `${an.value}px` : null), sn = f(() => `${bt.value}px`), U = ne(), cn = f(() => !!U.pagination), ln = f(() => !!U.loading), un = f(() => Pt.value || !!U.expansion), dn = f(() => !!U.body), fn = f(() => {
618
648
  let e = /* @__PURE__ */ new Map();
619
- for (let t of W.value) t.render && e.set(t.value, t.render);
649
+ for (let t of H.value) t.render && e.set(t.value, t.render);
620
650
  return e;
621
- }), dn = f(() => {
651
+ }), pn = f(() => {
622
652
  let e = /* @__PURE__ */ new Map();
623
- for (let t of W.value) {
624
- let n = _e(t.align);
653
+ for (let t of H.value) {
654
+ let n = Ce(t.align);
625
655
  n && e.set(t.value, n);
626
656
  }
627
657
  return e;
628
- }), fn = E(), pn = E();
629
- T("dataTable", fn);
630
- let mn = E(!1), hn = E(!1), gn = E(null), _n = f(() => I.currentRowKey ?? gn.value);
631
- function vn(e) {
632
- mn.value = e.scrollLeft > 0;
633
- let t = pn.value?.wrapRef;
634
- hn.value = t ? t.scrollWidth - t.clientWidth - t.scrollLeft > 1 : !1;
658
+ }), mn = D(), hn = D();
659
+ E("dataTable", mn);
660
+ let gn = D(!1), _n = D(!1), vn = D(null), yn = f(() => I.currentRowKey ?? vn.value);
661
+ function bn(e) {
662
+ gn.value = e.scrollLeft > 0;
663
+ let t = hn.value?.wrapRef;
664
+ _n.value = t ? t.scrollWidth - t.clientWidth - t.scrollLeft > 1 : !1;
635
665
  }
636
- let yn = f(() => {
637
- let e = st.value ?? (Ht.value === null ? null : "multiple");
666
+ let xn = f(() => {
667
+ let e = st.value ?? (Wt.value === null ? null : "multiple");
638
668
  return e === "multiple" ? "checkbox" : e === "single" ? "radio" : null;
639
- }), bn = f(() => yn.value === "checkbox"), xn = f(() => yn.value === "radio"), Sn = f(() => ["m-table__main", {
669
+ }), Sn = f(() => xn.value === "checkbox"), Cn = f(() => xn.value === "radio"), wn = f(() => ["m-table__main", {
640
670
  "m-table__main--fixed-header": rt.value,
641
- "m-table__main--fixed-height": !!nn.value,
642
- "m-table__main--shadow": mn.value,
643
- "m-table__main--shadow-end": hn.value,
644
- "m-table__main--table-fixed": $t.value,
645
- "m-table__main--border-cell": qt.value
646
- }]), Cn = f(() => ({ minHeight: an.value })), K = f(() => H.value !== null), { serverOptionsComputed: wn, updateServerOptionsPage: Tn, updateServerOptionsSort: En, updateServerOptionsRowsPerPage: Dn } = he(H, V, R), { clientSortOptions: On, headerColumns: kn, headersForRender: q, updateSortField: An, isMultiSorting: jn, getMultiSortNumber: Mn } = de(bt, Ze, Qe, tt, nt, it, W, cn, ot, yn, K, lt, wn, ht, Ut, Wt, V, gt, En, R), Nn = f(() => gt.value === "emit" ? null : On.value), { rowsItemsComputed: Pn, rowsPerPageRef: J, updateRowsPerPage: Fn } = me(K, ut, H, dt), { totalItems: In, selectItemsComputed: Ln, totalItemsLength: Y, toggleSelectAll: Rn, toggleSelectItem: zn } = ge(Nn, et, Ke, K, Vt, Ht, ft, pt, mt, V, U, R), Bn = f(() => {
671
+ "m-table__main--fixed-height": !!an.value,
672
+ "m-table__main--shadow": gn.value,
673
+ "m-table__main--shadow-end": _n.value,
674
+ "m-table__main--table-fixed": tn.value,
675
+ "m-table__main--border-cell": Yt.value
676
+ }]), Tn = f(() => ({ minHeight: sn.value })), W = f(() => gt.value !== null), { serverOptionsComputed: En, updateServerOptionsPage: Dn, updateServerOptionsSort: On, updateServerOptionsRowsPerPage: kn } = xe(gt, ut, R), { clientSortOptions: An, headerColumns: jn, headersForRender: G, updateSortField: Mn, isMultiSorting: Nn, getMultiSortNumber: Pn } = _e(St, Te, ke, tt, nt, it, H, un, ot, xn, W, lt, En, _t, Gt, Kt, ut, vt, On, R), Fn = f(() => vt.value === "emit" ? null : An.value), { rowsItemsComputed: In, rowsPerPageRef: K, updateRowsPerPage: Ln } = be(W, dt, gt, ft), { totalItems: Rn, selectItemsComputed: zn, totalItemsLength: q, toggleSelectAll: Bn, toggleSelectItem: Vn } = Se(Fn, et, de, W, Ut, Wt, pt, mt, ht, ut, V, R), Hn = f(() => {
647
677
  if (!ct.value) return null;
648
- let e = In.value.findIndex((e) => F(e, ct.value, U.value));
649
- return e >= 0 ? oe(ct.value, e, U.value) : null;
650
- }), { currentPaginationNumber: X, maxPaginationNumber: Vn, isLastPage: Hn, isFirstPage: Un, nextPage: Wn, prevPage: Gn, updatePage: Z, updateCurrentPaginationNumber: Kn } = pe(Gt, K, B, Y, J, H, Tn), { currentPageFirstIndex: qn, currentPageLastIndex: Jn, multipleSelectStatus: Yn, pageItems: Q } = fe(X, bn, K, Vt, J, Ln, ht, In, Y, U), Xn = f(() => X.value === 0 ? 0 : (X.value - 1) * J.value), { isRowExpanded: Zn, toggleExpandRow: Qn } = se($e, U, Xn, R), { fixedHeaders: $n, lastFixedColumn: er, firstRightFixedColumn: tr, fixedColumnsInfos: nr } = ue(q), { clickRow: rr } = ie(Ye, bn, ht, R);
678
+ let e = Rn.value.findIndex((e) => F(e, ct.value, V.value));
679
+ return e >= 0 ? oe(ct.value, e, V.value) : null;
680
+ }), { currentPaginationNumber: J, maxPaginationNumber: Y, isLastPage: Un, isFirstPage: Wn, nextPage: Gn, prevPage: Kn, updatePage: X, updateCurrentPaginationNumber: qn } = ye(qt, W, B, q, K, gt, Dn), { currentPageFirstIndex: Z, currentPageLastIndex: Jn, multipleSelectStatus: Yn, pageItems: Q } = ve(J, Sn, W, Ut, K, zn, _t, Rn, q, V), Xn = f(() => J.value === 0 ? 0 : (J.value - 1) * K.value), { isRowExpanded: Zn, toggleExpandRow: Qn } = pe($e, V, Xn, R), { fixedHeaders: $n, lastFixedColumn: er, firstRightFixedColumn: tr, fixedColumnsInfos: nr } = ge(G), { clickRow: rr } = ie(he, Sn, _t, R);
651
681
  function ir(e, t) {
652
- xt.value && t.preventDefault(), L("contextmenuRow", e, t);
682
+ Ct.value && t.preventDefault(), L("contextmenuRow", e, t);
653
683
  }
654
684
  function ar(e) {
655
- let t = W.value.find((t) => t.value === e.value), n = e.width ?? t?.width ?? ($n.value.length ? 100 : null);
656
- if (n && $t.value) return `width: ${n}px; min-width: ${n}px;`;
685
+ let t = H.value.find((t) => t.value === e.value), n = e.width ?? t?.width ?? ($n.value.length ? 100 : null);
686
+ if (n && tn.value) return `width: ${n}px; min-width: ${n}px;`;
657
687
  let r = t?.minWidth;
658
- if (r && $t.value) return `min-width: ${r}px;`;
688
+ if (r && tn.value) return `min-width: ${r}px;`;
659
689
  }
660
690
  function or(e, t = "th") {
661
691
  if (!$n.value.length) return;
@@ -663,7 +693,7 @@ var R = ["aria-label"], Ce = /* @__PURE__ */ v({
663
693
  if (n) return `${n.fixed === "right" ? "right" : "left"}: ${n.distance}px;z-index: ${t === "th" ? 3 : 1};position: sticky;`;
664
694
  }
665
695
  function sr(e, t) {
666
- let n = typeof St.value == "string" ? St.value : St.value(e, t + 1);
696
+ let n = typeof wt.value == "string" ? wt.value : wt.value(e, t + 1);
667
697
  return [{
668
698
  "m-table__cell--selection": e.text === "checkbox" || e.value === "radio",
669
699
  "m-table__header-cell--sortable": e.sortable,
@@ -681,7 +711,7 @@ var R = ["aria-label"], Ce = /* @__PURE__ */ v({
681
711
  if (e === "right" || e === "end") return "m-table__cell--right";
682
712
  }
683
713
  function ur(e) {
684
- return lr(dn.value.get(e) || Xe.value);
714
+ return lr(pn.value.get(e) || we.value);
685
715
  }
686
716
  function dr(e, t) {
687
717
  return {
@@ -692,202 +722,202 @@ var R = ["aria-label"], Ce = /* @__PURE__ */ v({
692
722
  };
693
723
  }
694
724
  function fr(e) {
695
- return I.showOverflowTooltip ? !0 : !!W.value.find((t) => t.value === e)?.showOverflowTooltip;
725
+ return I.showOverflowTooltip ? !0 : !!H.value.find((t) => t.value === e)?.showOverflowTooltip;
696
726
  }
697
727
  function pr(e) {
698
728
  if (e.sortable) return e.sortType === "asc" ? "ascending" : e.sortType === "desc" ? "descending" : "none";
699
729
  }
700
730
  function mr(e) {
701
- e.sortable && e.sortType && An(e.value, e.sortType);
731
+ e.sortable && e.sortType && Mn(e.value, e.sortType);
702
732
  }
703
733
  function hr(e, t) {
704
734
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), mr(e));
705
735
  }
706
736
  function $(e, t) {
707
- return oe(e, Xn.value + t, U.value);
737
+ return oe(e, Xn.value + t, V.value);
708
738
  }
709
739
  function gr(e, t) {
710
- return bn.value ? !!e.checkbox : xn.value ? Bn.value === $(e, t) : !1;
740
+ return Sn.value ? !!e.checkbox : Cn.value ? Hn.value === $(e, t) : !1;
711
741
  }
712
742
  function _r(e) {
713
743
  let t = { ...e };
714
744
  delete t.index, L("update:selectedItem", t), L("selectRow", t);
715
745
  }
716
746
  function vr(e) {
717
- Fn(e);
747
+ Ln(e);
718
748
  }
719
749
  function yr(e, t) {
720
- return !Jt.value || _n.value == null ? !1 : _n.value === $(e, t);
750
+ return !Xt.value || yn.value == null ? !1 : yn.value === $(e, t);
721
751
  }
722
752
  function br(e, t) {
723
- if (!Jt.value) return;
724
- let n = $(e, t), r = _n.value;
753
+ if (!Xt.value) return;
754
+ let n = $(e, t), r = yn.value;
725
755
  if (r === n) return;
726
756
  let i = r == null ? null : Q.value.find((e, t) => $(e, t) === r) ?? null;
727
- gn.value = n, L("update:currentRowKey", n), L("current-change", e, i);
757
+ vn.value = n, L("update:currentRowKey", n), L("current-change", e, i);
728
758
  }
729
759
  function xr(e, t, n, r) {
730
760
  rr(e, Xn.value + t, n, r), n === "single" && br(e, t);
731
761
  }
732
- return j(() => I.currentRowKey, (e) => {
733
- e != null && (gn.value = e);
734
- }), j(B, (e, t) => {
735
- wn.value && e === !1 && t === !0 && Kn(wn.value.page);
736
- }), j(J, (e) => {
737
- K.value ? Dn(e) : Z(1);
738
- }), j([pt, et], () => {
739
- K.value || Z(1);
740
- }), j(() => I.filters, (e) => {
762
+ return M(() => I.currentRowKey, (e) => {
763
+ e != null && (vn.value = e);
764
+ }), M(B, (e, t) => {
765
+ En.value && e === !1 && t === !0 && qn(En.value.page);
766
+ }), M(K, (e) => {
767
+ W.value ? kn(e) : X(1);
768
+ }), M([mt, et], () => {
769
+ W.value || X(1);
770
+ }), M(() => I.filters, (e) => {
741
771
  L("filter", e ?? null);
742
- }, { deep: !0 }), j(Q, (e) => L("updatePageItems", e)), j(In, (e) => L("updateTotalItems", e)), j(X, (e) => {
772
+ }, { deep: !0 }), M(Q, (e) => L("updatePageItems", e)), M(Rn, (e) => L("updateTotalItems", e)), M(J, (e) => {
743
773
  L("update:page", e), L("page", e);
744
- }), ce({
745
- currentPageFirstIndex: qn,
774
+ }), se({
775
+ currentPageFirstIndex: Z,
746
776
  currentPageLastIndex: Jn,
747
- clientItemsLength: Y,
748
- maxPaginationNumber: Vn,
749
- currentPaginationNumber: X,
750
- isLastPage: Hn,
751
- isFirstPage: Un,
752
- nextPage: Wn,
753
- prevPage: Gn,
754
- updatePage: Z,
755
- rowsPerPageOptions: Pn,
756
- rowsPerPageActiveOption: J,
757
- updateRowsPerPageActiveOption: Fn,
758
- setFilters: qe
759
- }), (e, t) => (w(), h("div", b({
777
+ clientItemsLength: q,
778
+ maxPaginationNumber: Y,
779
+ currentPaginationNumber: J,
780
+ isLastPage: Un,
781
+ isFirstPage: Wn,
782
+ nextPage: Gn,
783
+ prevPage: Kn,
784
+ updatePage: X,
785
+ rowsPerPageOptions: In,
786
+ rowsPerPageActiveOption: K,
787
+ updateRowsPerPageActiveOption: Ln,
788
+ setFilters: fe
789
+ }), (e, t) => (T(), h("div", x({
760
790
  ref_key: "dataTable",
761
- ref: fn
762
- }, A(ye), {
763
- class: ["m-table", Qt.value],
764
- "aria-label": A(zt) || void 0
765
- }), [_(a, {
766
- loading: A(B),
791
+ ref: mn
792
+ }, j(ue), {
793
+ class: ["m-table", en.value],
794
+ "aria-label": j(Vt) || void 0
795
+ }), [v(a, {
796
+ loading: j(B),
767
797
  size: "sm"
768
- }, ee({
769
- default: M(() => [_(r, {
798
+ }, _({
799
+ default: re(() => [v(r, {
770
800
  ref_key: "scrollbarRef",
771
- ref: pn,
801
+ ref: hn,
772
802
  class: "m-table__scrollbar",
773
- height: rn.value || void 0,
774
- "wrap-style": Cn.value,
775
- "wrap-class": Sn.value,
803
+ height: on.value || void 0,
804
+ "wrap-style": Tn.value,
805
+ "wrap-class": wn.value,
776
806
  noresize: "",
777
- onScroll: vn
807
+ onScroll: bn
778
808
  }, {
779
- default: M(() => [g("div", {
809
+ default: re(() => [g("div", {
780
810
  class: "m-table__surface",
781
- "aria-busy": A(B) || void 0
782
- }, [g("table", { id: A(Je) || void 0 }, [
783
- g("colgroup", null, [(w(!0), h(d, null, D(A(q), (e, t) => (w(), h("col", {
811
+ "aria-busy": j(B) || void 0
812
+ }, [g("table", { id: j(me) || void 0 }, [
813
+ g("colgroup", null, [(T(!0), h(d, null, O(j(G), (e, t) => (T(), h("col", {
784
814
  key: t,
785
- style: C(ar(e))
815
+ style: w(ar(e))
786
816
  }, null, 4))), 128))]),
787
- A(G)["customize-headers"] ? O(e.$slots, "customize-headers", {}, void 0, void 0, 0) : A(q).length && tn.value ? (w(), h("thead", {
817
+ j(U)["customize-headers"] ? k(e.$slots, "customize-headers", {}, void 0, void 0, 0) : j(G).length && rn.value ? (T(), h("thead", {
788
818
  key: 1,
789
- class: x(["m-table__header", [A(Dt)]])
790
- }, [g("tr", null, [(w(!0), h(d, null, D(A(q), (r, a) => (w(), h("th", {
819
+ class: S(["m-table__header", [j(kt)]])
820
+ }, [g("tr", null, [(T(!0), h(d, null, O(j(G), (r, a) => (T(), h("th", {
791
821
  key: a,
792
- class: x(sr(r, a)),
793
- style: C(or(r.value)),
822
+ class: S(sr(r, a)),
823
+ style: w(or(r.value)),
794
824
  "aria-sort": pr(r),
795
825
  tabindex: r.sortable ? 0 : void 0,
796
826
  onClick: N((e) => mr(r), ["stop"]),
797
827
  onKeydown: (e) => hr(r, e)
798
- }, [r.text === "checkbox" ? (w(), h("div", Oe, [(w(), p(i, {
799
- key: A(Yn),
800
- "model-value": A(Yn) === "allSelected",
801
- indeterminate: A(Yn) === "partSelected",
802
- "aria-label": A(z).selectAllPage,
803
- "onUpdate:modelValue": A(Rn),
828
+ }, [r.text === "checkbox" ? (T(), h("div", Fe, [(T(), p(i, {
829
+ key: j(Yn),
830
+ "model-value": j(Yn) === "allSelected",
831
+ indeterminate: j(Yn) === "partSelected",
832
+ "aria-label": j(z).selectAllPage,
833
+ "onUpdate:modelValue": j(Bn),
804
834
  onClick: t[0] ||= N(() => {}, ["stop"])
805
835
  }, null, 8, [
806
836
  "model-value",
807
837
  "indeterminate",
808
838
  "aria-label",
809
839
  "onUpdate:modelValue"
810
- ]))])) : r.value === "radio" ? (w(), h("div", ke)) : (w(), h("span", {
840
+ ]))])) : r.value === "radio" ? (T(), h("div", Ie)) : (T(), h("span", {
811
841
  key: 2,
812
- class: x(cr())
842
+ class: S(cr())
813
843
  }, [
814
- A(G)[`header-${r.value}`] ? O(e.$slots, `header-${r.value}`, b({ ref_for: !0 }, r), void 0, void 0, 0) : A(G)[`header-${r.value.toLowerCase()}`] ? O(e.$slots, `header-${r.value.toLowerCase()}`, b({ ref_for: !0 }, r), void 0, void 0, 1) : A(G).header ? O(e.$slots, "header", b({ ref_for: !0 }, r), void 0, void 0, 2) : (w(), h("span", {
844
+ j(U)[`header-${r.value}`] ? k(e.$slots, `header-${r.value}`, x({ ref_for: !0 }, r), void 0, void 0, 0) : j(U)[`header-${r.value.toLowerCase()}`] ? k(e.$slots, `header-${r.value.toLowerCase()}`, x({ ref_for: !0 }, r), void 0, void 0, 1) : j(U).header ? k(e.$slots, "header", x({ ref_for: !0 }, r), void 0, void 0, 2) : (T(), h("span", {
815
845
  key: 3,
816
846
  class: "m-table__header-text",
817
847
  title: r.text
818
- }, k(r.text), 9, Ae)),
819
- r.sortable ? (w(), h("span", je, [_(n, {
848
+ }, A(r.text), 9, Le)),
849
+ r.sortable ? (T(), h("span", Re, [v(n, {
820
850
  name: "triangle-up",
821
851
  class: "m-table__sort-icon m-table__sort-icon--ascending"
822
- }), _(n, {
852
+ }), v(n, {
823
853
  name: "triangle-down",
824
854
  class: "m-table__sort-icon m-table__sort-icon--descending"
825
855
  })])) : m("", !0),
826
- A(V) && A(jn)(r.value) ? (w(), h("span", Me, k(A(Mn)(r.value)), 1)) : m("", !0)
827
- ], 2))], 46, De))), 128))])], 2)) : m("", !0),
828
- ln.value ? O(e.$slots, "body", S(y(A(Q))), void 0, void 0, 2) : A(kn).length ? (w(), h("tbody", Ne, [
829
- O(e.$slots, "body-prepend", S(y({
830
- items: A(Q),
856
+ j(ut) && j(Nn)(r.value) ? (T(), h("span", ze, A(j(Pn)(r.value)), 1)) : m("", !0)
857
+ ], 2))], 46, Pe))), 128))])], 2)) : m("", !0),
858
+ dn.value ? k(e.$slots, "body", C(b(j(Q))), void 0, void 0, 2) : j(jn).length ? (T(), h("tbody", Be, [
859
+ k(e.$slots, "body-prepend", C(b({
860
+ items: j(Q),
831
861
  pagination: {
832
- isFirstPage: A(Un),
833
- isLastPage: A(Hn),
834
- currentPaginationNumber: A(X),
835
- maxPaginationNumber: A(Vn),
836
- nextPage: A(Wn),
837
- prevPage: A(Gn)
862
+ isFirstPage: j(Wn),
863
+ isLastPage: j(Un),
864
+ currentPaginationNumber: j(J),
865
+ maxPaginationNumber: j(Y),
866
+ nextPage: j(Gn),
867
+ prevPage: j(Kn)
838
868
  },
839
- headers: A(q)
869
+ headers: j(G)
840
870
  }))),
841
- (w(!0), h(d, null, D(A(Q), (r, a) => (w(), h(d, { key: $(r, a) }, [g("tr", {
842
- class: x([{
843
- "m-table__row--striped": Kt.value && (a + 1) % 2 == 0,
871
+ (T(!0), h(d, null, O(j(Q), (r, a) => (T(), h(d, { key: $(r, a) }, [g("tr", {
872
+ class: S([{
873
+ "m-table__row--striped": Jt.value && (a + 1) % 2 == 0,
844
874
  "m-table__row--selected": gr(r, a),
845
875
  "m-table__row--current": yr(r, a)
846
- }, typeof A(Ct) == "string" ? A(Ct) : A(Ct)(r, a + 1)]),
876
+ }, typeof j(Tt) == "string" ? j(Tt) : j(Tt)(r, a + 1)]),
847
877
  onClick: (e) => {
848
- xr(r, a, "single", e), A(jt) && A(Qn)(r, a, e);
878
+ xr(r, a, "single", e), j(Nt) && j(Qn)(r, a, e);
849
879
  },
850
880
  onDblclick: (e) => xr(r, a, "double", e),
851
881
  onContextmenu: (e) => ir(r, e)
852
- }, [(w(!0), h(d, null, D(A(kn), (o, l) => (w(), h("td", {
882
+ }, [(T(!0), h(d, null, O(j(jn), (o, l) => (T(), h("td", {
853
883
  key: l,
854
- style: C(or(o, "td")),
855
- class: x([
884
+ style: w(or(o, "td")),
885
+ class: S([
856
886
  {
857
- "m-table__cell--shadow": o === A(er),
858
- "m-table__cell--shadow-end": o === A(tr),
887
+ "m-table__cell--shadow": o === j(er),
888
+ "m-table__cell--shadow-end": o === j(tr),
859
889
  "m-table__cell--expand": o === "expand",
860
890
  "m-table__cell--selection": o === "checkbox" || o === "radio"
861
891
  },
862
892
  ur(o),
863
- typeof A(Tt) == "string" ? A(Tt) : A(Tt)(o, a + 1)
893
+ typeof j(Dt) == "string" ? j(Dt) : j(Dt)(o, a + 1)
864
894
  ]),
865
- onClick: (e) => o === "expand" ? A(Qn)(r, a, e) : null
866
- }, [g("div", { class: x(["m-table__cell-inner", {
895
+ onClick: (e) => o === "expand" ? j(Qn)(r, a, e) : null
896
+ }, [g("div", { class: S(["m-table__cell-inner", {
867
897
  "m-table__cell-inner--expand": o === "expand",
868
898
  "m-table__cell-inner--selection": o === "checkbox" || o === "radio"
869
- }]) }, [A(G)[`cell-${o}`] ? O(e.$slots, `cell-${o}`, b({ ref_for: !0 }, dr(o, r)), void 0, void 0, 0) : A(G)[`cell-${o.toLowerCase()}`] ? O(e.$slots, `cell-${o.toLowerCase()}`, b({ ref_for: !0 }, dr(o, r)), void 0, void 0, 1) : o === "expand" ? (w(), h("button", {
899
+ }]) }, [j(U)[`cell-${o}`] ? k(e.$slots, `cell-${o}`, x({ ref_for: !0 }, dr(o, r)), void 0, void 0, 0) : j(U)[`cell-${o.toLowerCase()}`] ? k(e.$slots, `cell-${o.toLowerCase()}`, x({ ref_for: !0 }, dr(o, r)), void 0, void 0, 1) : o === "expand" ? (T(), h("button", {
870
900
  key: 2,
871
901
  type: "button",
872
- class: x(["m-table__expand-btn", { "m-table__expand-btn--expanded": A(Zn)(r, a) }]),
873
- "aria-expanded": A(Zn)(r, a),
874
- "aria-label": A(z).expand,
875
- onClick: N((e) => A(Qn)(r, a, e), ["stop"])
876
- }, [_(n, { name: "chevron-right" })], 10, Ie)) : o === "checkbox" ? (w(), p(i, {
902
+ class: S(["m-table__expand-btn", { "m-table__expand-btn--expanded": j(Zn)(r, a) }]),
903
+ "aria-expanded": j(Zn)(r, a),
904
+ "aria-label": j(z).expand,
905
+ onClick: N((e) => j(Qn)(r, a, e), ["stop"])
906
+ }, [v(n, { name: "chevron-right" })], 10, Ue)) : o === "checkbox" ? (T(), p(i, {
877
907
  key: 3,
878
908
  "model-value": !!r.checkbox,
879
- "aria-label": A(z).selectRow.replace("{index}", String(A(qn) + a)),
880
- "onUpdate:modelValue": (e) => A(zn)(r),
909
+ "aria-label": j(z).selectRow.replace("{index}", String(j(Z) + a)),
910
+ "onUpdate:modelValue": (e) => j(Vn)(r),
881
911
  onClick: t[1] ||= N(() => {}, ["stop"])
882
912
  }, null, 8, [
883
913
  "model-value",
884
914
  "aria-label",
885
915
  "onUpdate:modelValue"
886
- ])) : o === "radio" ? (w(), p(c, {
916
+ ])) : o === "radio" ? (T(), p(c, {
887
917
  key: 4,
888
- "model-value": Bn.value ?? void 0,
918
+ "model-value": Hn.value ?? void 0,
889
919
  value: $(r, a),
890
- "aria-label": A(z).selectRow.replace("{index}", String(A(qn) + a)),
920
+ "aria-label": j(z).selectRow.replace("{index}", String(j(Z) + a)),
891
921
  "onUpdate:modelValue": (e) => _r(r),
892
922
  onClick: t[2] ||= N(() => {}, ["stop"])
893
923
  }, null, 8, [
@@ -895,40 +925,40 @@ var R = ["aria-label"], Ce = /* @__PURE__ */ v({
895
925
  "value",
896
926
  "aria-label",
897
927
  "onUpdate:modelValue"
898
- ])) : A(G)["body-cell"] ? O(e.$slots, "body-cell", b({ ref_for: !0 }, {
928
+ ])) : j(U)["body-cell"] ? k(e.$slots, "body-cell", x({ ref_for: !0 }, {
899
929
  column: o,
900
930
  item: r,
901
931
  row: r,
902
- value: A(P)(o, r)
903
- }), void 0, void 0, 5) : un.value.get(o) ? (w(), h("span", Le, k(un.value.get(o)(r)), 1)) : (w(), p(s, {
932
+ value: j(P)(o, r)
933
+ }), void 0, void 0, 5) : fn.value.get(o) ? (T(), h("span", We, A(fn.value.get(o)(r)), 1)) : (T(), p(s, {
904
934
  key: 7,
905
- content: A(ae)(o, r),
935
+ content: j(ae)(o, r),
906
936
  disabled: !fr(o)
907
937
  }, {
908
- default: M(() => [g("span", Re, [g("span", ze, k(A(ae)(o, r)), 1)])]),
938
+ default: re(() => [g("span", Ge, [g("span", Ke, A(j(ae)(o, r)), 1)])]),
909
939
  _: 2
910
- }, 1032, ["content", "disabled"]))], 2)], 14, Fe))), 128))], 42, Pe), cn.value && A(Zn)(r, a) ? (w(), h("tr", {
940
+ }, 1032, ["content", "disabled"]))], 2)], 14, He))), 128))], 42, Ve), un.value && j(Zn)(r, a) ? (T(), h("tr", {
911
941
  key: 0,
912
- class: x([{ "m-table__row--striped": Kt.value && (a + 1) % 2 == 0 }, typeof A(wt) == "string" ? A(wt) : A(wt)(r, a + 1)])
942
+ class: S([{ "m-table__row--striped": Jt.value && (a + 1) % 2 == 0 }, typeof j(Et) == "string" ? j(Et) : j(Et)(r, a + 1)])
913
943
  }, [g("td", {
914
- colspan: A(q).length,
944
+ colspan: j(G).length,
915
945
  class: "m-table__cell--expanded"
916
- }, [r.expandLoading ? (w(), p(Ce, { key: 0 })) : m("", !0), O(e.$slots, "expansion", b({ ref_for: !0 }, { row: r }))], 8, Be)], 2)) : m("", !0)], 64))), 128)),
917
- O(e.$slots, "body-append", S(y({
918
- items: A(Q),
946
+ }, [r.expandLoading ? (T(), p(Ae, { key: 0 })) : m("", !0), k(e.$slots, "expansion", x({ ref_for: !0 }, { row: r }))], 8, qe)], 2)) : m("", !0)], 64))), 128)),
947
+ k(e.$slots, "body-append", C(b({
948
+ items: j(Q),
919
949
  pagination: {
920
- isFirstPage: A(Un),
921
- isLastPage: A(Hn),
922
- currentPaginationNumber: A(X),
923
- maxPaginationNumber: A(Vn),
924
- nextPage: A(Wn),
925
- prevPage: A(Gn),
926
- updatePage: A(Z)
950
+ isFirstPage: j(Wn),
951
+ isLastPage: j(Un),
952
+ currentPaginationNumber: j(J),
953
+ maxPaginationNumber: j(Y),
954
+ nextPage: j(Gn),
955
+ prevPage: j(Kn),
956
+ updatePage: j(X)
927
957
  },
928
- headers: A(q)
958
+ headers: j(G)
929
959
  })))
930
960
  ])) : m("", !0)
931
- ], 8, Ee), !A(Q).length && !A(B) ? (w(), h("div", Ve, [A(G).empty ? O(e.$slots, "empty", {}, void 0, void 0, 0) : O(e.$slots, "empty", {}, () => [g("p", He, k(en.value), 1), A(Nt) ? (w(), h("p", Ue, k(A(Nt)), 1)) : m("", !0)], void 0, 1)])) : m("", !0)], 8, Te)]),
961
+ ], 8, Ne), !j(Q).length && !j(B) ? (T(), h("div", Je, [j(U).empty ? k(e.$slots, "empty", {}, void 0, void 0, 0) : k(e.$slots, "empty", {}, () => [g("p", Ye, A(nn.value), 1), j(Ft) ? (T(), h("p", Xe, A(j(Ft)), 1)) : m("", !0)], void 0, 1)])) : m("", !0)], 8, Me)]),
932
962
  _: 3
933
963
  }, 8, [
934
964
  "height",
@@ -936,26 +966,26 @@ var R = ["aria-label"], Ce = /* @__PURE__ */ v({
936
966
  "wrap-class"
937
967
  ])]),
938
968
  _: 2
939
- }, [sn.value ? {
969
+ }, [ln.value ? {
940
970
  name: "indicator",
941
- fn: M(() => [O(e.$slots, "loading")]),
971
+ fn: re(() => [k(e.$slots, "loading")]),
942
972
  key: "0"
943
- } : void 0]), 1032, ["loading"]), A(Rt) ? (w(), h("div", We, [g("div", Ge, k(`${A(qn)}–${A(Jn)}`) + " " + k(A(yt)) + " " + k(A(Y)), 1), on.value ? O(e.$slots, "pagination", S(y({
944
- isFirstPage: A(Un),
945
- isLastPage: A(Hn),
946
- currentPaginationNumber: A(X),
947
- maxPaginationNumber: A(Vn),
948
- nextPage: A(Wn),
949
- prevPage: A(Gn)
950
- })), void 0, void 0, 0) : (w(), p(o, {
973
+ } : void 0]), 1032, ["loading"]), j(Bt) ? (T(), h("div", Ze, [g("div", Qe, A(`${j(Z)}–${j(Jn)}`) + " " + A(j(xt)) + " " + A(j(q)), 1), cn.value ? k(e.$slots, "pagination", C(b({
974
+ isFirstPage: j(Wn),
975
+ isLastPage: j(Un),
976
+ currentPaginationNumber: j(J),
977
+ maxPaginationNumber: j(Y),
978
+ nextPage: j(Gn),
979
+ prevPage: j(Kn)
980
+ })), void 0, void 0, 0) : (T(), p(o, {
951
981
  key: 1,
952
- "model-value": A(X),
953
- "total-records": A(Y),
954
- rows: A(J),
955
- "page-sizes": A(Pn),
956
- "show-size-picker": !A(At),
957
- disabled: A(B),
958
- "onUpdate:modelValue": A(Z),
982
+ "model-value": j(J),
983
+ "total-records": j(q),
984
+ rows: j(K),
985
+ "page-sizes": j(In),
986
+ "show-size-picker": !j(Mt),
987
+ disabled: j(B),
988
+ "onUpdate:modelValue": j(X),
959
989
  "onUpdate:rows": vr
960
990
  }, null, 8, [
961
991
  "model-value",
@@ -965,8 +995,8 @@ var R = ["aria-label"], Ce = /* @__PURE__ */ v({
965
995
  "show-size-picker",
966
996
  "disabled",
967
997
  "onUpdate:modelValue"
968
- ]))])) : m("", !0)], 16, we));
998
+ ]))])) : m("", !0)], 16, je));
969
999
  }
970
1000
  });
971
1001
  //#endregion
972
- export { Ke as MTable };
1002
+ export { $e as MTable };