morya-ui 0.3.0 → 0.3.1

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