morya-ui 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/CHANGELOG.md +527 -520
  2. package/LICENSE +21 -21
  3. package/README.md +150 -150
  4. package/README.zh-CN.md +150 -150
  5. package/dist/accordion/style.css +1148 -1148
  6. package/dist/auto-complete/style.css +1690 -1690
  7. package/dist/avatar/style.css +1261 -1261
  8. package/dist/badge/style.css +1315 -1315
  9. package/dist/block-ui/style.css +1148 -1148
  10. package/dist/breadcrumb/style.css +1148 -1148
  11. package/dist/button/style.css +2134 -2134
  12. package/dist/card/style.css +1148 -1148
  13. package/dist/carousel/style.css +1249 -1249
  14. package/dist/cascade-select/style.css +1839 -1839
  15. package/dist/checkbox/style.css +1148 -1148
  16. package/dist/chip/style.css +1292 -1292
  17. package/dist/command-menu/style.css +1381 -1381
  18. package/dist/components/AutoComplete/styles.css +209 -209
  19. package/dist/components/Avatar/styles.css +113 -113
  20. package/dist/components/Badge/styles.css +165 -165
  21. package/dist/components/Button/styles.css +962 -962
  22. package/dist/components/Carousel/styles.css +101 -101
  23. package/dist/components/CascadeSelect/styles.css +157 -157
  24. package/dist/components/Chip/styles.css +144 -144
  25. package/dist/components/CommandMenu/styles.css +102 -102
  26. package/dist/components/ConfigProvider/styles.css +6 -6
  27. package/dist/components/ConfirmDialog/styles.css +24 -24
  28. package/dist/components/ConfirmPopup/styles.css +35 -35
  29. package/dist/components/ContextMenu/styles.css +138 -138
  30. package/dist/components/DatePicker/styles.css +335 -335
  31. package/dist/components/Dialog/styles.css +421 -421
  32. package/dist/components/Dock/styles.css +84 -84
  33. package/dist/components/Drawer/styles.css +334 -334
  34. package/dist/components/Dropdown/styles.css +130 -130
  35. package/dist/components/Empty/styles.css +146 -146
  36. package/dist/components/FileUpload/styles.css +359 -359
  37. package/dist/components/Form/styles.css +114 -114
  38. package/dist/components/Gallery/styles.css +100 -100
  39. package/dist/components/Input/styles.css +356 -356
  40. package/dist/components/InputColor/styles.css +129 -129
  41. package/dist/components/InputNumber/styles.css +261 -261
  42. package/dist/components/InputPassword/styles.css +178 -178
  43. package/dist/components/InputTags/styles.css +112 -112
  44. package/dist/components/Layout/styles.css +433 -433
  45. package/dist/components/Loading/styles.css +378 -378
  46. package/dist/components/MegaMenu/styles.css +97 -97
  47. package/dist/components/Menu/styles.css +564 -564
  48. package/dist/components/Menubar/styles.css +144 -144
  49. package/dist/components/Message/styles.css +250 -250
  50. package/dist/components/MeterGroup/styles.css +49 -49
  51. package/dist/components/Page/PageContent.vue.d.ts +1 -0
  52. package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
  53. package/dist/components/Page/styles.css +412 -394
  54. package/dist/components/Page/types.d.ts +5 -0
  55. package/dist/components/Page/types.d.ts.map +1 -1
  56. package/dist/components/Pagination/styles.css +105 -105
  57. package/dist/components/Popover/styles.css +92 -92
  58. package/dist/components/Result/styles.css +146 -146
  59. package/dist/components/Scrollbar/styles.css +131 -131
  60. package/dist/components/Select/styles.css +192 -192
  61. package/dist/components/SelectButton/styles.css +105 -105
  62. package/dist/components/Sidebar/styles.css +74 -74
  63. package/dist/components/Slider/styles.css +211 -211
  64. package/dist/components/SplitButton/styles.css +216 -216
  65. package/dist/components/Status/styles.css +191 -191
  66. package/dist/components/Stepper/styles.css +135 -135
  67. package/dist/components/Switch/styles.css +129 -129
  68. package/dist/components/Table/Table.vue.d.ts +1 -0
  69. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  70. package/dist/components/Table/styles.css +28 -0
  71. package/dist/components/Table/types.d.ts +6 -0
  72. package/dist/components/Table/types.d.ts.map +1 -1
  73. package/dist/components/Tabs/styles.css +131 -131
  74. package/dist/components/Terminal/styles.css +74 -74
  75. package/dist/components/Textarea/styles.css +126 -126
  76. package/dist/components/TieredMenu/styles.css +125 -125
  77. package/dist/components/Timeline/styles.css +159 -159
  78. package/dist/components/TreeSelect/styles.css +161 -161
  79. package/dist/components/TreeTable/styles.css +97 -97
  80. package/dist/components/VirtualScroller/styles.css +27 -27
  81. package/dist/config-provider/style.css +2472 -2472
  82. package/dist/confirm-dialog/style.css +2555 -2555
  83. package/dist/confirm-popup/style.css +2145 -2145
  84. package/dist/context-menu/style.css +1417 -1417
  85. package/dist/data-view/style.css +1631 -1631
  86. package/dist/date-picker/style.css +1483 -1483
  87. package/dist/dialog/style.css +2531 -2531
  88. package/dist/divider/style.css +1148 -1148
  89. package/dist/dock/style.css +1232 -1232
  90. package/dist/drawer/style.css +1482 -1482
  91. package/dist/dropdown/style.css +1409 -1409
  92. package/dist/empty/style.css +1294 -1294
  93. package/dist/fieldset/style.css +1148 -1148
  94. package/dist/file-upload/style.css +1507 -1507
  95. package/dist/flex/index.js +1 -1
  96. package/dist/flex/style.css +1148 -1148
  97. package/dist/float-label/style.css +1148 -1148
  98. package/dist/fluid/style.css +1148 -1148
  99. package/dist/form/style.css +1264 -1264
  100. package/dist/gallery/style.css +1379 -1379
  101. package/dist/grid/index.js +1 -1
  102. package/dist/grid/style.css +1148 -1148
  103. package/dist/icon/style.css +1148 -1148
  104. package/dist/icon-field/style.css +1504 -1504
  105. package/dist/index.js +1209 -1204
  106. package/dist/inplace/style.css +1148 -1148
  107. package/dist/input/style.css +1504 -1504
  108. package/dist/input-color/style.css +1279 -1279
  109. package/dist/input-group/style.css +1148 -1148
  110. package/dist/input-number/style.css +1409 -1409
  111. package/dist/input-otp/style.css +1148 -1148
  112. package/dist/input-password/style.css +1326 -1326
  113. package/dist/input-tags/style.css +1260 -1260
  114. package/dist/knob/style.css +1148 -1148
  115. package/dist/label/style.css +1148 -1148
  116. package/dist/layout/style.css +1712 -1712
  117. package/dist/listbox/style.css +1306 -1306
  118. package/dist/loading/style.css +1528 -1528
  119. package/dist/mega-menu/style.css +1245 -1245
  120. package/dist/menu/style.css +2001 -2001
  121. package/dist/menubar/style.css +1423 -1423
  122. package/dist/message/style.css +1398 -1398
  123. package/dist/meter-group/style.css +1199 -1199
  124. package/dist/order-list/style.css +1148 -1148
  125. package/dist/page/index.js +7 -2
  126. package/dist/page/style.css +2668 -2650
  127. package/dist/pagination/style.css +1445 -1445
  128. package/dist/panel/style.css +1148 -1148
  129. package/dist/pick-list/style.css +1148 -1148
  130. package/dist/popover/style.css +1242 -1242
  131. package/dist/progress-bar/style.css +1148 -1148
  132. package/dist/progress-spinner/style.css +1148 -1148
  133. package/dist/radio/style.css +1148 -1148
  134. package/dist/rating/style.css +1148 -1148
  135. package/dist/result/style.css +1294 -1294
  136. package/dist/scroll-top/style.css +1279 -1279
  137. package/dist/scrollbar/style.css +1281 -1281
  138. package/dist/select/style.css +1901 -1901
  139. package/dist/select-button/style.css +1255 -1255
  140. package/dist/shared/gap.d.ts +4 -1
  141. package/dist/shared/gap.d.ts.map +1 -1
  142. package/dist/shared/styles/control-affix-icon.css +110 -110
  143. package/dist/shared/styles/control-suffix.css +118 -118
  144. package/dist/shared/styles/select-overlay.css +175 -175
  145. package/dist/sidebar/style.css +1222 -1222
  146. package/dist/skeleton/style.css +1148 -1148
  147. package/dist/slider/style.css +1361 -1361
  148. package/dist/space/index.js +1 -1
  149. package/dist/space/style.css +1148 -1148
  150. package/dist/speed-dial/style.css +1148 -1148
  151. package/dist/split-button/style.css +2326 -2326
  152. package/dist/splitter/style.css +1148 -1148
  153. package/dist/status/style.css +1339 -1339
  154. package/dist/stepper/style.css +1283 -1283
  155. package/dist/styles/base.css +790 -790
  156. package/dist/styles.css +1 -1
  157. package/dist/switch/style.css +1279 -1279
  158. package/dist/table/index.js +242 -237
  159. package/dist/table/style.css +1840 -1812
  160. package/dist/tabs/style.css +1410 -1410
  161. package/dist/tag/style.css +1148 -1148
  162. package/dist/terminal/style.css +1224 -1224
  163. package/dist/textarea/style.css +1274 -1274
  164. package/dist/theme/styles.css +358 -358
  165. package/dist/tiered-menu/style.css +1404 -1404
  166. package/dist/timeline/style.css +1438 -1438
  167. package/dist/toast/style.css +1148 -1148
  168. package/dist/toggle-button/style.css +1148 -1148
  169. package/dist/toolbar/style.css +1148 -1148
  170. package/dist/tooltip/style.css +1148 -1148
  171. package/dist/tree/style.css +1148 -1148
  172. package/dist/tree-select/style.css +1843 -1843
  173. package/dist/tree-table/style.css +1245 -1245
  174. package/dist/virtual-scroller/style.css +1309 -1309
  175. package/dist/{vnode-C7Y1SjKB.js → vnode-CmdNQlN7.js} +18 -23
  176. package/package.json +31 -29
@@ -10,9 +10,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 _, 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";
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 N, withModifiers as P } from "vue";
14
14
  //#region src/components/Table/hooks/useClickRow.ts
15
- function ie(e, t, n, r) {
15
+ function re(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 ie(e, t, n, r) {
24
24
  }
25
25
  //#endregion
26
26
  //#region src/components/Table/utils.ts
27
- function P(e, t) {
27
+ function F(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,30 +33,30 @@ function P(e, t) {
33
33
  }
34
34
  return t[e] ?? "";
35
35
  }
36
- function ae(e, t) {
37
- let n = P(e, t);
36
+ function ie(e, t) {
37
+ let n = F(e, t);
38
38
  return Array.isArray(n) ? n.join(",") : String(n ?? "");
39
39
  }
40
- function oe(e, t, n = "id") {
40
+ function ae(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 F(e, t, n = "id") {
44
+ function I(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/tableQuery.ts
50
- function se(e, t, n) {
50
+ function oe(e, t, n) {
51
51
  if (typeof e == "number" && typeof t == "number") return e < t ? n ? 1 : -1 : e > t ? n ? -1 : 1 : 0;
52
52
  let r = String(e ?? ""), i = String(t ?? "");
53
53
  return r < i ? n ? 1 : -1 : r > i ? n ? -1 : 1 : 0;
54
54
  }
55
- function ce(e, t) {
55
+ function se(e, t) {
56
56
  return typeof t == "function" ? t(e) : Array.isArray(t) ? t.includes(e) : e === t || String(e ?? "") === String(t);
57
57
  }
58
- function I(e, t) {
59
- let { field: n, comparison: r, criteria: i } = t, a = P(String(n), e);
58
+ function L(e, t) {
59
+ let { field: n, comparison: r, criteria: i } = t, a = F(String(n), e);
60
60
  if (typeof r == "function") return r(a, i);
61
61
  switch (r) {
62
62
  case "=": return a === i;
@@ -73,32 +73,32 @@ function I(e, t) {
73
73
  default: return a === i;
74
74
  }
75
75
  }
76
- function L(e, t, n) {
76
+ function R(e, t, n) {
77
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));
78
+ if (t) for (let [e, n] of Object.entries(t)) n != null && n !== "" && (r = r.filter((t) => se(F(e, t), n)));
79
+ if (n) for (let e of n) r = r.filter((t) => L(t, e));
80
80
  return r;
81
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(" ");
82
+ function ce(e, t) {
83
+ return typeof t == "string" && t !== "" ? String(F(t, e)) : Array.isArray(t) ? t.map((t) => String(F(t, e))).join("") : Object.values(e).join(" ");
84
84
  }
85
- function ue(e, t, n = "") {
85
+ function le(e, t, n = "") {
86
86
  if (!t) return e;
87
87
  let r = t.toLowerCase();
88
- return e.filter((e) => le(e, n).toLowerCase().includes(r));
88
+ return e.filter((e) => ce(e, n).toLowerCase().includes(r));
89
89
  }
90
- function R(e, t, n, r) {
90
+ function z(e, t, n, r) {
91
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);
92
+ return (r === 0 ? n : z(e, t, n, r - 1)).sort((t, n) => {
93
+ for (let i = 0; i < r; i += 1) if (F(e[i], t) !== F(e[i], n)) return 0;
94
+ return oe(F(i, t), F(i, n), a);
95
95
  });
96
96
  }
97
- function de(e, t, n, r = !1) {
97
+ function ue(e, t, n, r = !1) {
98
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));
99
+ return r && Array.isArray(t) && Array.isArray(n) ? t.length === 0 ? i : z(t, n, i, t.length - 1) : i.sort((e, r) => oe(F(t, e), F(t, r), n));
100
100
  }
101
- function fe(e, t) {
101
+ function de(e, t) {
102
102
  return e.indexOf(t) === -1 ? {
103
103
  next: [...e, t],
104
104
  expanded: !0
@@ -107,10 +107,10 @@ function fe(e, t) {
107
107
  expanded: !1
108
108
  };
109
109
  }
110
- function z(e, t, n = "id") {
110
+ function B(e, t, n = "id") {
111
111
  let r = { ...t };
112
112
  return delete r.checkbox, delete r.index, t.checkbox ? {
113
- next: e.filter((e) => !F(e, r, n)),
113
+ next: e.filter((e) => !I(e, r, n)),
114
114
  selected: !1,
115
115
  row: r
116
116
  } : {
@@ -121,14 +121,14 @@ function z(e, t, n = "id") {
121
121
  }
122
122
  //#endregion
123
123
  //#region src/components/Table/hooks/useExpandableRow.ts
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);
124
+ function fe(e, t, n, r) {
125
+ let i = D([]), a = f(() => e.value ?? i.value), o = (e, r) => ae(e, n.value + r, t.value);
126
126
  return {
127
127
  expandedKeys: a,
128
128
  isRowExpanded: (e, t) => a.value.includes(o(e, t)),
129
129
  toggleExpandRow: (e, t, n) => {
130
130
  n.stopPropagation();
131
- let { next: s, expanded: c } = fe(a.value, o(e, t));
131
+ let { next: s, expanded: c } = de(a.value, o(e, t));
132
132
  i.value = s, r("update:expandedRowKeys", s), r("expand", {
133
133
  row: e,
134
134
  expanded: c
@@ -138,9 +138,9 @@ function pe(e, t, n, r) {
138
138
  }
139
139
  //#endregion
140
140
  //#region src/components/Table/hooks/useFixedColumn.ts
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));
141
+ var pe = (e) => e.fixed === "right", me = (e) => !!e.fixed;
142
+ function he(e) {
143
+ let t = f(() => e.value.filter(me)), n = f(() => e.value.filter((e) => me(e) && !pe(e))), r = f(() => e.value.filter(pe));
144
144
  return {
145
145
  fixedHeaders: t,
146
146
  lastFixedColumn: f(() => n.value.length ? n.value[n.value.length - 1].value : ""),
@@ -162,7 +162,7 @@ function ge(e) {
162
162
  })
163
163
  };
164
164
  }
165
- function _e(e, t, n, r, i, a, o, s, c, l, u, d, p, m, h, g, _, v, y, b) {
165
+ function ge(e, t, n, r, i, a, o, s, c, l, u, d, p, m, h, g, _, v, y, b) {
166
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) ? {
167
167
  sortBy: e,
168
168
  sortDesc: t.map((e) => e === "desc")
@@ -241,11 +241,11 @@ function _e(e, t, n, r, i, a, o, s, c, l, u, d, p, m, h, g, _, v, y, b) {
241
241
  }
242
242
  //#endregion
243
243
  //#region src/components/Table/hooks/usePageItems.ts
244
- function ve(e, t, n, r, i, a, o, s, c, l) {
244
+ function _e(e, t, n, r, i, a, o, s, c, l) {
245
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) => ({
246
246
  index: u.value + t,
247
247
  ...e
248
- })) : 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");
248
+ })) : p.value), h = f(() => a.value.length === 0 || a.value.every((e) => s.value.every((t) => !I(e, t, l.value))) ? "noneSelected" : a.value.length === s.value.length && a.value.every((e) => s.value.some((t) => I(e, t, l.value))) ? "allSelected" : "partSelected");
249
249
  return {
250
250
  currentPageFirstIndex: u,
251
251
  currentPageLastIndex: d,
@@ -259,7 +259,7 @@ function ve(e, t, n, r, i, a, o, s, c, l) {
259
259
  })) : m.value.map((e) => {
260
260
  let t = { ...e };
261
261
  return delete t.index, {
262
- checkbox: a.value.some((e) => F(e, t, l.value)),
262
+ checkbox: a.value.some((e) => I(e, t, l.value)),
263
263
  ...e
264
264
  };
265
265
  }) : m.value)
@@ -267,7 +267,7 @@ function ve(e, t, n, r, i, a, o, s, c, l) {
267
267
  }
268
268
  //#endregion
269
269
  //#region src/components/Table/hooks/usePagination.ts
270
- function ye(e, t, n, r, i, a, o) {
270
+ function ve(e, t, n, r, i, a, o) {
271
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);
272
272
  return {
273
273
  currentPaginationNumber: s,
@@ -290,7 +290,7 @@ function ye(e, t, n, r, i, a, o) {
290
290
  }
291
291
  //#endregion
292
292
  //#region src/components/Table/hooks/useRows.ts
293
- function be(e, t, n, r) {
293
+ function ye(e, t, n, r) {
294
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);
295
295
  return {
296
296
  rowsItemsComputed: i,
@@ -302,7 +302,7 @@ function be(e, t, n, r) {
302
302
  }
303
303
  //#endregion
304
304
  //#region src/components/Table/hooks/useServerOptions.ts
305
- function xe(e, t, n) {
305
+ function be(e, t, n) {
306
306
  let r = f({
307
307
  get: () => {
308
308
  if (!e.value) return null;
@@ -349,12 +349,12 @@ function xe(e, t, n) {
349
349
  }
350
350
  //#endregion
351
351
  //#region src/components/Table/hooks/useTotalItems.ts
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(() => {
352
+ function xe(e, t, n, r, i, a, o, s, c, l, u, d) {
353
+ let p = f(() => r.value || s.value === "" ? i.value : le(i.value, s.value, o.value)), m = f(() => R(p.value, n.value, t.value)), h = f(() => {
354
354
  if (r.value) return i.value;
355
355
  if (e.value === null) return m.value;
356
356
  let { sortBy: t, sortDesc: n } = e.value;
357
- return de(m.value, t, n, l.value);
357
+ return ue(m.value, t, n, l.value);
358
358
  }), g = f(() => r.value ? c.value : h.value.length), _ = f({
359
359
  get: () => a.value ?? [],
360
360
  set: (e) => d("update:selection", e)
@@ -367,43 +367,43 @@ function Se(e, t, n, r, i, a, o, s, c, l, u, d) {
367
367
  _.value = e ? h.value : [], e && d("selectAll");
368
368
  },
369
369
  toggleSelectItem: (e) => {
370
- let { next: t, selected: n, row: r } = z(_.value, e, u.value);
370
+ let { next: t, selected: n, row: r } = B(_.value, e, u.value);
371
371
  _.value = t, d(n ? "selectRow" : "deselectRow", r);
372
372
  }
373
373
  };
374
374
  }
375
- function Ce(e) {
375
+ function Se(e) {
376
376
  if (e) return e === "left" || e === "start" ? "start" : e === "right" || e === "end" ? "end" : "center";
377
377
  }
378
- function we(e) {
378
+ function Ce(e) {
379
379
  if (e === !0 || e === "left") return "left";
380
380
  if (e === "right") return "right";
381
381
  }
382
- function Te(e) {
382
+ function we(e) {
383
383
  return {
384
384
  text: e.label,
385
385
  value: e.key,
386
386
  sortable: e.sortable,
387
- fixed: we(e.fixed),
387
+ fixed: Ce(e.fixed),
388
388
  width: e.width,
389
389
  minWidth: e.minWidth ?? (e.width ? void 0 : 80),
390
- align: Ce(e.align),
390
+ align: Se(e.align),
391
391
  render: e.render,
392
392
  showOverflowTooltip: e.showOverflowTooltip
393
393
  };
394
394
  }
395
- function Ee(e) {
396
- return e.map(Te);
395
+ function Te(e) {
396
+ return e.map(we);
397
397
  }
398
- function De(e) {
398
+ function Ee(e) {
399
399
  return e ?? "asc";
400
400
  }
401
- function Oe(e) {
401
+ function De(e) {
402
402
  return e ?? "";
403
403
  }
404
404
  //#endregion
405
405
  //#region src/components/Table/TableLoadingLine.vue?vue&type=script&setup=true&lang.ts
406
- var ke = ["aria-label"], Ae = /* @__PURE__ */ y({
406
+ var Oe = ["aria-label"], ke = /* @__PURE__ */ y({
407
407
  __name: "TableLoadingLine",
408
408
  setup(e) {
409
409
  let t = u();
@@ -411,51 +411,51 @@ var ke = ["aria-label"], Ae = /* @__PURE__ */ y({
411
411
  class: "m-table__loading-line",
412
412
  role: "status",
413
413
  "aria-label": j(t).loading
414
- }, null, 8, ke));
414
+ }, null, 8, Oe));
415
415
  }
416
- }), je = ["aria-label"], Me = ["aria-busy"], Ne = ["id"], Pe = [
416
+ }), Ae = ["aria-label"], je = ["aria-busy"], Me = ["id"], Ne = [
417
417
  "aria-sort",
418
418
  "tabindex",
419
419
  "onClick",
420
420
  "onKeydown"
421
- ], Fe = {
421
+ ], Pe = {
422
422
  key: 0,
423
423
  class: "m-table__cell-inner m-table__cell-inner--selection"
424
- }, Ie = {
424
+ }, Fe = {
425
425
  key: 1,
426
426
  class: "m-table__cell-inner m-table__cell-inner--selection"
427
- }, Le = ["title"], Re = {
427
+ }, Ie = ["title"], Le = {
428
428
  key: 4,
429
429
  class: "m-table__sort",
430
430
  "aria-hidden": "true"
431
- }, ze = {
431
+ }, Re = {
432
432
  key: 5,
433
433
  class: "m-table__multi-sort-number"
434
- }, Be = {
434
+ }, ze = {
435
435
  key: 3,
436
436
  class: "m-table__body"
437
- }, Ve = [
437
+ }, Be = [
438
438
  "onClick",
439
439
  "onDblclick",
440
440
  "onContextmenu"
441
- ], He = ["onClick"], Ue = [
441
+ ], Ve = ["onClick"], He = [
442
442
  "aria-expanded",
443
443
  "aria-label",
444
444
  "onClick"
445
- ], We = {
445
+ ], Ue = {
446
446
  key: 6,
447
447
  class: "m-table__cell-text"
448
- }, Ge = { class: "m-table__tooltip-trigger" }, Ke = { class: "m-table__cell-text" }, qe = ["colspan"], Je = {
448
+ }, We = { class: "m-table__tooltip-trigger" }, Ge = { class: "m-table__cell-text" }, Ke = ["colspan"], qe = {
449
449
  key: 0,
450
450
  class: "m-table__message",
451
451
  role: "status"
452
- }, Ye = { class: "m-table__empty-text" }, Xe = {
452
+ }, Je = { class: "m-table__empty-text" }, Ye = {
453
453
  key: 0,
454
454
  class: "m-table__empty-description"
455
- }, Ze = {
455
+ }, Xe = {
456
456
  key: 0,
457
457
  class: "m-table__footer"
458
- }, Qe = { class: "m-table__items-index" }, $e = /* @__PURE__ */ y({
458
+ }, Ze = { class: "m-table__items-index" }, Qe = /* @__PURE__ */ y({
459
459
  inheritAttrs: !1,
460
460
  __name: "Table",
461
461
  props: {
@@ -535,6 +535,10 @@ var ke = ["aria-label"], Ae = /* @__PURE__ */ y({
535
535
  },
536
536
  tableHeight: { default: null },
537
537
  tableMinHeight: { default: 180 },
538
+ fill: {
539
+ type: Boolean,
540
+ default: !1
541
+ },
538
542
  showIndex: {
539
543
  type: Boolean,
540
544
  default: !1
@@ -625,15 +629,15 @@ var ke = ["aria-label"], Ae = /* @__PURE__ */ y({
625
629
  "update:expandedRowKeys",
626
630
  "update:filters"
627
631
  ],
628
- setup(y, { expose: se, emit: ce }) {
629
- let I = y, L = ce, le = te(), { rootAttrs: ue } = e(le, () => I.pt), R = (e, ...t) => {
630
- L(e, ...t);
631
- }, { value: de, setValue: fe } = t({
632
- controlled: () => I.filters ?? void 0,
632
+ setup(y, { expose: oe, emit: se }) {
633
+ let L = y, R = se, ce = te(), { rootAttrs: le } = e(ce, () => L.pt), z = (e, ...t) => {
634
+ R(e, ...t);
635
+ }, { value: ue, setValue: de } = t({
636
+ controlled: () => L.filters ?? void 0,
633
637
  defaultValue: null
634
638
  }, (e) => {
635
- L("filter", e), L("update:filters", e);
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(() => {
639
+ R("filter", e), R("update:filters", e);
640
+ }), B = u(), { tableNodeId: pe, clickEventType: me, bodyTextDirection: Ce, checkboxColumnWidth: we, expandColumnWidth: Oe, expandedRowKeys: Qe, filterOptions: $e, fixedCheckbox: et, fixedExpand: tt, fixedHeader: nt, fixedIndex: rt, headerTextDirection: it, indexColumnWidth: at, selectionMode: ot, selectedItem: st, loading: V, mustSort: ct, multiSort: lt, rowsItems: ut, rowsPerPage: dt, searchField: ft, searchValue: pt, serverItemsLength: mt, serverOptions: ht, showIndex: gt, sortMode: _t, tableHeight: vt, tableMinHeight: yt, fill: 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: H, ariaLabel: Vt, size: Ht } = ee(L), U = f(() => Te(L.columns)), Ut = f(() => L.rows), Wt = f(() => L.selection ?? null), Gt = f(() => De(L.sortField)), Kt = f(() => Ee(L.sortOrder)), qt = f(() => L.page ?? 1), Jt = f(() => L.striped), Yt = f(() => L.bordered), Xt = f(() => L.highlightCurrent), Zt = f(() => !L.rowHover), Qt = l("Table", () => Ht.value), $t = f(() => {
637
641
  if (Qt.value === "small") return "m-table--small";
638
642
  if (Qt.value === "large") return "m-table--large";
639
643
  }), en = f(() => [
@@ -642,161 +646,162 @@ var ke = ["aria-label"], Ae = /* @__PURE__ */ y({
642
646
  {
643
647
  "m-table--border": Yt.value,
644
648
  "m-table--striped": Jt.value,
645
- "m-table--enable-row-hover": !Zt.value
649
+ "m-table--enable-row-hover": !Zt.value,
650
+ "m-table--fill": bt.value && !W.value
646
651
  }
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(() => {
652
+ ]), tn = f(() => tr.value.length > 0 || It.value !== !1), nn = f(() => Lt.value ?? B.value.emptyMessage), rn = f(() => Rt.value ?? !jt.value), W = f(() => zt.value ?? vt.value), an = f(() => bt.value && !W.value), on = f(() => W.value ? `${W.value}px` : an.value ? "100%" : null), sn = f(() => `${yt.value}px`), G = ne(), cn = f(() => !!G.pagination), ln = f(() => !!G.loading), un = f(() => Pt.value || !!G.expansion), dn = f(() => !!G.body), fn = f(() => {
648
653
  let e = /* @__PURE__ */ new Map();
649
- for (let t of H.value) t.render && e.set(t.value, t.render);
654
+ for (let t of U.value) t.render && e.set(t.value, t.render);
650
655
  return e;
651
656
  }), pn = f(() => {
652
657
  let e = /* @__PURE__ */ new Map();
653
- for (let t of H.value) {
654
- let n = Ce(t.align);
658
+ for (let t of U.value) {
659
+ let n = Se(t.align);
655
660
  n && e.set(t.value, n);
656
661
  }
657
662
  return e;
658
663
  }), mn = D(), hn = D();
659
664
  E("dataTable", mn);
660
- let gn = D(!1), _n = D(!1), vn = D(null), yn = f(() => I.currentRowKey ?? vn.value);
665
+ let gn = D(!1), _n = D(!1), vn = D(null), yn = f(() => L.currentRowKey ?? vn.value);
661
666
  function bn(e) {
662
667
  gn.value = e.scrollLeft > 0;
663
668
  let t = hn.value?.wrapRef;
664
669
  _n.value = t ? t.scrollWidth - t.clientWidth - t.scrollLeft > 1 : !1;
665
670
  }
666
671
  let xn = f(() => {
667
- let e = st.value ?? (Wt.value === null ? null : "multiple");
672
+ let e = ot.value ?? (Wt.value === null ? null : "multiple");
668
673
  return e === "multiple" ? "checkbox" : e === "single" ? "radio" : null;
669
674
  }), Sn = f(() => xn.value === "checkbox"), Cn = f(() => xn.value === "radio"), wn = f(() => ["m-table__main", {
670
- "m-table__main--fixed-header": rt.value,
671
- "m-table__main--fixed-height": !!an.value,
675
+ "m-table__main--fixed-header": nt.value,
676
+ "m-table__main--fixed-height": !!W.value || an.value,
672
677
  "m-table__main--shadow": gn.value,
673
678
  "m-table__main--shadow-end": _n.value,
674
679
  "m-table__main--table-fixed": tn.value,
675
680
  "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(() => {
677
- if (!ct.value) return null;
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);
681
- function ir(e, t) {
682
- Ct.value && t.preventDefault(), L("contextmenuRow", e, t);
681
+ }]), Tn = f(() => ({ minHeight: sn.value })), K = f(() => ht.value !== null), { serverOptionsComputed: En, updateServerOptionsPage: Dn, updateServerOptionsSort: On, updateServerOptionsRowsPerPage: kn } = be(ht, lt, z), { clientSortOptions: An, headerColumns: jn, headersForRender: q, updateSortField: Mn, isMultiSorting: Nn, getMultiSortNumber: Pn } = ge(St, we, Oe, et, tt, rt, U, un, at, xn, K, ct, En, gt, Gt, Kt, lt, _t, On, z), Fn = f(() => _t.value === "emit" ? null : An.value), { rowsItemsComputed: In, rowsPerPageRef: J, updateRowsPerPage: Ln } = ye(K, ut, ht, dt), { totalItems: Rn, selectItemsComputed: zn, totalItemsLength: Y, toggleSelectAll: Bn, toggleSelectItem: Vn } = xe(Fn, $e, ue, K, Ut, Wt, ft, pt, mt, lt, H, z), Hn = f(() => {
682
+ if (!st.value) return null;
683
+ let e = Rn.value.findIndex((e) => I(e, st.value, H.value));
684
+ return e >= 0 ? ae(st.value, e, H.value) : null;
685
+ }), { currentPaginationNumber: X, maxPaginationNumber: Un, isLastPage: Wn, isFirstPage: Gn, nextPage: Kn, prevPage: qn, updatePage: Z, updateCurrentPaginationNumber: Jn } = ve(qt, K, V, Y, J, ht, Dn), { currentPageFirstIndex: Yn, currentPageLastIndex: Xn, multipleSelectStatus: Zn, pageItems: Q } = _e(X, Sn, K, Ut, J, zn, gt, Rn, Y, H), Qn = f(() => X.value === 0 ? 0 : (X.value - 1) * J.value), { isRowExpanded: $n, toggleExpandRow: er } = fe(Qe, H, Qn, z), { fixedHeaders: tr, lastFixedColumn: nr, firstRightFixedColumn: rr, fixedColumnsInfos: ir } = he(q), { clickRow: ar } = re(me, Sn, gt, z);
686
+ function or(e, t) {
687
+ Ct.value && t.preventDefault(), R("contextmenuRow", e, t);
683
688
  }
684
- function ar(e) {
685
- let t = H.value.find((t) => t.value === e.value), n = e.width ?? t?.width ?? ($n.value.length ? 100 : null);
689
+ function sr(e) {
690
+ let t = U.value.find((t) => t.value === e.value), n = e.width ?? t?.width ?? (tr.value.length ? 100 : null);
686
691
  if (n && tn.value) return `width: ${n}px; min-width: ${n}px;`;
687
692
  let r = t?.minWidth;
688
693
  if (r && tn.value) return `min-width: ${r}px;`;
689
694
  }
690
- function or(e, t = "th") {
691
- if (!$n.value.length) return;
692
- let n = nr.value.find((t) => t.value === e);
695
+ function cr(e, t = "th") {
696
+ if (!tr.value.length) return;
697
+ let n = ir.value.find((t) => t.value === e);
693
698
  if (n) return `${n.fixed === "right" ? "right" : "left"}: ${n.distance}px;z-index: ${t === "th" ? 3 : 1};position: sticky;`;
694
699
  }
695
- function sr(e, t) {
700
+ function lr(e, t) {
696
701
  let n = typeof wt.value == "string" ? wt.value : wt.value(e, t + 1);
697
702
  return [{
698
703
  "m-table__cell--selection": e.text === "checkbox" || e.value === "radio",
699
704
  "m-table__header-cell--sortable": e.sortable,
700
705
  "m-table__header-cell--ascending": e.sortable && e.sortType === "asc",
701
706
  "m-table__header-cell--descending": e.sortable && e.sortType === "desc",
702
- "m-table__header-cell--shadow": e.value === er.value,
703
- "m-table__header-cell--shadow-end": e.value === tr.value
707
+ "m-table__header-cell--shadow": e.value === nr.value,
708
+ "m-table__header-cell--shadow-end": e.value === rr.value
704
709
  }, n];
705
710
  }
706
- function cr() {
707
- return ["m-table__header-inner", `m-table__header-inner--${at.value}`];
711
+ function ur() {
712
+ return ["m-table__header-inner", `m-table__header-inner--${it.value}`];
708
713
  }
709
- function lr(e) {
714
+ function dr(e) {
710
715
  if (e === "center") return "m-table__cell--center";
711
716
  if (e === "right" || e === "end") return "m-table__cell--right";
712
717
  }
713
- function ur(e) {
714
- return lr(pn.value.get(e) || we.value);
718
+ function fr(e) {
719
+ return dr(pn.value.get(e) || Ce.value);
715
720
  }
716
- function dr(e, t) {
721
+ function pr(e, t) {
717
722
  return {
718
723
  row: t,
719
724
  item: t,
720
725
  column: e,
721
- value: P(e, t)
726
+ value: F(e, t)
722
727
  };
723
728
  }
724
- function fr(e) {
725
- return I.showOverflowTooltip ? !0 : !!H.value.find((t) => t.value === e)?.showOverflowTooltip;
729
+ function mr(e) {
730
+ return L.showOverflowTooltip ? !0 : !!U.value.find((t) => t.value === e)?.showOverflowTooltip;
726
731
  }
727
- function pr(e) {
732
+ function hr(e) {
728
733
  if (e.sortable) return e.sortType === "asc" ? "ascending" : e.sortType === "desc" ? "descending" : "none";
729
734
  }
730
- function mr(e) {
735
+ function gr(e) {
731
736
  e.sortable && e.sortType && Mn(e.value, e.sortType);
732
737
  }
733
- function hr(e, t) {
734
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), mr(e));
738
+ function _r(e, t) {
739
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), gr(e));
735
740
  }
736
741
  function $(e, t) {
737
- return oe(e, Xn.value + t, V.value);
742
+ return ae(e, Qn.value + t, H.value);
738
743
  }
739
- function gr(e, t) {
744
+ function vr(e, t) {
740
745
  return Sn.value ? !!e.checkbox : Cn.value ? Hn.value === $(e, t) : !1;
741
746
  }
742
- function _r(e) {
747
+ function yr(e) {
743
748
  let t = { ...e };
744
- delete t.index, L("update:selectedItem", t), L("selectRow", t);
749
+ delete t.index, R("update:selectedItem", t), R("selectRow", t);
745
750
  }
746
- function vr(e) {
751
+ function br(e) {
747
752
  Ln(e);
748
753
  }
749
- function yr(e, t) {
754
+ function xr(e, t) {
750
755
  return !Xt.value || yn.value == null ? !1 : yn.value === $(e, t);
751
756
  }
752
- function br(e, t) {
757
+ function Sr(e, t) {
753
758
  if (!Xt.value) return;
754
759
  let n = $(e, t), r = yn.value;
755
760
  if (r === n) return;
756
761
  let i = r == null ? null : Q.value.find((e, t) => $(e, t) === r) ?? null;
757
- vn.value = n, L("update:currentRowKey", n), L("current-change", e, i);
762
+ vn.value = n, R("update:currentRowKey", n), R("current-change", e, i);
758
763
  }
759
- function xr(e, t, n, r) {
760
- rr(e, Xn.value + t, n, r), n === "single" && br(e, t);
764
+ function Cr(e, t, n, r) {
765
+ ar(e, Qn.value + t, n, r), n === "single" && Sr(e, t);
761
766
  }
762
- return M(() => I.currentRowKey, (e) => {
767
+ return M(() => L.currentRowKey, (e) => {
763
768
  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) => {
771
- L("filter", e ?? null);
772
- }, { deep: !0 }), M(Q, (e) => L("updatePageItems", e)), M(Rn, (e) => L("updateTotalItems", e)), M(J, (e) => {
773
- L("update:page", e), L("page", e);
774
- }), se({
775
- currentPageFirstIndex: Z,
776
- currentPageLastIndex: Jn,
777
- clientItemsLength: q,
778
- maxPaginationNumber: Y,
779
- currentPaginationNumber: J,
780
- isLastPage: Un,
781
- isFirstPage: Wn,
782
- nextPage: Gn,
783
- prevPage: Kn,
784
- updatePage: X,
769
+ }), M(V, (e, t) => {
770
+ En.value && e === !1 && t === !0 && Jn(En.value.page);
771
+ }), M(J, (e) => {
772
+ K.value ? kn(e) : Z(1);
773
+ }), M([pt, $e], () => {
774
+ K.value || Z(1);
775
+ }), M(() => L.filters, (e) => {
776
+ R("filter", e ?? null);
777
+ }, { deep: !0 }), M(Q, (e) => R("updatePageItems", e)), M(Rn, (e) => R("updateTotalItems", e)), M(X, (e) => {
778
+ R("update:page", e), R("page", e);
779
+ }), oe({
780
+ currentPageFirstIndex: Yn,
781
+ currentPageLastIndex: Xn,
782
+ clientItemsLength: Y,
783
+ maxPaginationNumber: Un,
784
+ currentPaginationNumber: X,
785
+ isLastPage: Wn,
786
+ isFirstPage: Gn,
787
+ nextPage: Kn,
788
+ prevPage: qn,
789
+ updatePage: Z,
785
790
  rowsPerPageOptions: In,
786
- rowsPerPageActiveOption: K,
791
+ rowsPerPageActiveOption: J,
787
792
  updateRowsPerPageActiveOption: Ln,
788
- setFilters: fe
793
+ setFilters: de
789
794
  }), (e, t) => (T(), h("div", x({
790
795
  ref_key: "dataTable",
791
796
  ref: mn
792
- }, j(ue), {
797
+ }, j(le), {
793
798
  class: ["m-table", en.value],
794
799
  "aria-label": j(Vt) || void 0
795
800
  }), [v(a, {
796
- loading: j(B),
801
+ loading: j(V),
797
802
  size: "sm"
798
803
  }, _({
799
- default: re(() => [v(r, {
804
+ default: N(() => [v(r, {
800
805
  ref_key: "scrollbarRef",
801
806
  ref: hn,
802
807
  class: "m-table__scrollbar",
@@ -806,109 +811,109 @@ var ke = ["aria-label"], Ae = /* @__PURE__ */ y({
806
811
  noresize: "",
807
812
  onScroll: bn
808
813
  }, {
809
- default: re(() => [g("div", {
814
+ default: N(() => [g("div", {
810
815
  class: "m-table__surface",
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", {
816
+ "aria-busy": j(V) || void 0
817
+ }, [g("table", { id: j(pe) || void 0 }, [
818
+ g("colgroup", null, [(T(!0), h(d, null, O(j(q), (e, t) => (T(), h("col", {
814
819
  key: t,
815
- style: w(ar(e))
820
+ style: w(sr(e))
816
821
  }, null, 4))), 128))]),
817
- j(U)["customize-headers"] ? k(e.$slots, "customize-headers", {}, void 0, void 0, 0) : j(G).length && rn.value ? (T(), h("thead", {
822
+ j(G)["customize-headers"] ? k(e.$slots, "customize-headers", {}, void 0, void 0, 0) : j(q).length && rn.value ? (T(), h("thead", {
818
823
  key: 1,
819
824
  class: S(["m-table__header", [j(kt)]])
820
- }, [g("tr", null, [(T(!0), h(d, null, O(j(G), (r, a) => (T(), h("th", {
825
+ }, [g("tr", null, [(T(!0), h(d, null, O(j(q), (r, a) => (T(), h("th", {
821
826
  key: a,
822
- class: S(sr(r, a)),
823
- style: w(or(r.value)),
824
- "aria-sort": pr(r),
827
+ class: S(lr(r, a)),
828
+ style: w(cr(r.value)),
829
+ "aria-sort": hr(r),
825
830
  tabindex: r.sortable ? 0 : void 0,
826
- onClick: N((e) => mr(r), ["stop"]),
827
- onKeydown: (e) => hr(r, e)
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,
831
+ onClick: P((e) => gr(r), ["stop"]),
832
+ onKeydown: (e) => _r(r, e)
833
+ }, [r.text === "checkbox" ? (T(), h("div", Pe, [(T(), p(i, {
834
+ key: j(Zn),
835
+ "model-value": j(Zn) === "allSelected",
836
+ indeterminate: j(Zn) === "partSelected",
837
+ "aria-label": j(B).selectAllPage,
833
838
  "onUpdate:modelValue": j(Bn),
834
- onClick: t[0] ||= N(() => {}, ["stop"])
839
+ onClick: t[0] ||= P(() => {}, ["stop"])
835
840
  }, null, 8, [
836
841
  "model-value",
837
842
  "indeterminate",
838
843
  "aria-label",
839
844
  "onUpdate:modelValue"
840
- ]))])) : r.value === "radio" ? (T(), h("div", Ie)) : (T(), h("span", {
845
+ ]))])) : r.value === "radio" ? (T(), h("div", Fe)) : (T(), h("span", {
841
846
  key: 2,
842
- class: S(cr())
847
+ class: S(ur())
843
848
  }, [
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", {
849
+ j(G)[`header-${r.value}`] ? k(e.$slots, `header-${r.value}`, x({ ref_for: !0 }, r), void 0, void 0, 0) : j(G)[`header-${r.value.toLowerCase()}`] ? k(e.$slots, `header-${r.value.toLowerCase()}`, x({ ref_for: !0 }, r), void 0, void 0, 1) : j(G).header ? k(e.$slots, "header", x({ ref_for: !0 }, r), void 0, void 0, 2) : (T(), h("span", {
845
850
  key: 3,
846
851
  class: "m-table__header-text",
847
852
  title: r.text
848
- }, A(r.text), 9, Le)),
849
- r.sortable ? (T(), h("span", Re, [v(n, {
853
+ }, A(r.text), 9, Ie)),
854
+ r.sortable ? (T(), h("span", Le, [v(n, {
850
855
  name: "triangle-up",
851
856
  class: "m-table__sort-icon m-table__sort-icon--ascending"
852
857
  }), v(n, {
853
858
  name: "triangle-down",
854
859
  class: "m-table__sort-icon m-table__sort-icon--descending"
855
860
  })])) : m("", !0),
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, [
861
+ j(lt) && j(Nn)(r.value) ? (T(), h("span", Re, A(j(Pn)(r.value)), 1)) : m("", !0)
862
+ ], 2))], 46, Ne))), 128))])], 2)) : m("", !0),
863
+ dn.value ? k(e.$slots, "body", C(b(j(Q))), void 0, void 0, 2) : j(jn).length ? (T(), h("tbody", ze, [
859
864
  k(e.$slots, "body-prepend", C(b({
860
865
  items: j(Q),
861
866
  pagination: {
862
- isFirstPage: j(Wn),
863
- isLastPage: j(Un),
864
- currentPaginationNumber: j(J),
865
- maxPaginationNumber: j(Y),
866
- nextPage: j(Gn),
867
- prevPage: j(Kn)
867
+ isFirstPage: j(Gn),
868
+ isLastPage: j(Wn),
869
+ currentPaginationNumber: j(X),
870
+ maxPaginationNumber: j(Un),
871
+ nextPage: j(Kn),
872
+ prevPage: j(qn)
868
873
  },
869
- headers: j(G)
874
+ headers: j(q)
870
875
  }))),
871
876
  (T(!0), h(d, null, O(j(Q), (r, a) => (T(), h(d, { key: $(r, a) }, [g("tr", {
872
877
  class: S([{
873
878
  "m-table__row--striped": Jt.value && (a + 1) % 2 == 0,
874
- "m-table__row--selected": gr(r, a),
875
- "m-table__row--current": yr(r, a)
879
+ "m-table__row--selected": vr(r, a),
880
+ "m-table__row--current": xr(r, a)
876
881
  }, typeof j(Tt) == "string" ? j(Tt) : j(Tt)(r, a + 1)]),
877
882
  onClick: (e) => {
878
- xr(r, a, "single", e), j(Nt) && j(Qn)(r, a, e);
883
+ Cr(r, a, "single", e), j(Nt) && j(er)(r, a, e);
879
884
  },
880
- onDblclick: (e) => xr(r, a, "double", e),
881
- onContextmenu: (e) => ir(r, e)
885
+ onDblclick: (e) => Cr(r, a, "double", e),
886
+ onContextmenu: (e) => or(r, e)
882
887
  }, [(T(!0), h(d, null, O(j(jn), (o, l) => (T(), h("td", {
883
888
  key: l,
884
- style: w(or(o, "td")),
889
+ style: w(cr(o, "td")),
885
890
  class: S([
886
891
  {
887
- "m-table__cell--shadow": o === j(er),
888
- "m-table__cell--shadow-end": o === j(tr),
892
+ "m-table__cell--shadow": o === j(nr),
893
+ "m-table__cell--shadow-end": o === j(rr),
889
894
  "m-table__cell--expand": o === "expand",
890
895
  "m-table__cell--selection": o === "checkbox" || o === "radio"
891
896
  },
892
- ur(o),
897
+ fr(o),
893
898
  typeof j(Dt) == "string" ? j(Dt) : j(Dt)(o, a + 1)
894
899
  ]),
895
- onClick: (e) => o === "expand" ? j(Qn)(r, a, e) : null
900
+ onClick: (e) => o === "expand" ? j(er)(r, a, e) : null
896
901
  }, [g("div", { class: S(["m-table__cell-inner", {
897
902
  "m-table__cell-inner--expand": o === "expand",
898
903
  "m-table__cell-inner--selection": o === "checkbox" || o === "radio"
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", {
904
+ }]) }, [j(G)[`cell-${o}`] ? k(e.$slots, `cell-${o}`, x({ ref_for: !0 }, pr(o, r)), void 0, void 0, 0) : j(G)[`cell-${o.toLowerCase()}`] ? k(e.$slots, `cell-${o.toLowerCase()}`, x({ ref_for: !0 }, pr(o, r)), void 0, void 0, 1) : o === "expand" ? (T(), h("button", {
900
905
  key: 2,
901
906
  type: "button",
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, {
907
+ class: S(["m-table__expand-btn", { "m-table__expand-btn--expanded": j($n)(r, a) }]),
908
+ "aria-expanded": j($n)(r, a),
909
+ "aria-label": j(B).expand,
910
+ onClick: P((e) => j(er)(r, a, e), ["stop"])
911
+ }, [v(n, { name: "chevron-right" })], 10, He)) : o === "checkbox" ? (T(), p(i, {
907
912
  key: 3,
908
913
  "model-value": !!r.checkbox,
909
- "aria-label": j(z).selectRow.replace("{index}", String(j(Z) + a)),
914
+ "aria-label": j(B).selectRow.replace("{index}", String(j(Yn) + a)),
910
915
  "onUpdate:modelValue": (e) => j(Vn)(r),
911
- onClick: t[1] ||= N(() => {}, ["stop"])
916
+ onClick: t[1] ||= P(() => {}, ["stop"])
912
917
  }, null, 8, [
913
918
  "model-value",
914
919
  "aria-label",
@@ -917,48 +922,48 @@ var ke = ["aria-label"], Ae = /* @__PURE__ */ y({
917
922
  key: 4,
918
923
  "model-value": Hn.value ?? void 0,
919
924
  value: $(r, a),
920
- "aria-label": j(z).selectRow.replace("{index}", String(j(Z) + a)),
921
- "onUpdate:modelValue": (e) => _r(r),
922
- onClick: t[2] ||= N(() => {}, ["stop"])
925
+ "aria-label": j(B).selectRow.replace("{index}", String(j(Yn) + a)),
926
+ "onUpdate:modelValue": (e) => yr(r),
927
+ onClick: t[2] ||= P(() => {}, ["stop"])
923
928
  }, null, 8, [
924
929
  "model-value",
925
930
  "value",
926
931
  "aria-label",
927
932
  "onUpdate:modelValue"
928
- ])) : j(U)["body-cell"] ? k(e.$slots, "body-cell", x({ ref_for: !0 }, {
933
+ ])) : j(G)["body-cell"] ? k(e.$slots, "body-cell", x({ ref_for: !0 }, {
929
934
  column: o,
930
935
  item: r,
931
936
  row: r,
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, {
937
+ value: j(F)(o, r)
938
+ }), void 0, void 0, 5) : fn.value.get(o) ? (T(), h("span", Ue, A(fn.value.get(o)(r)), 1)) : (T(), p(s, {
934
939
  key: 7,
935
- content: j(ae)(o, r),
936
- disabled: !fr(o)
940
+ content: j(ie)(o, r),
941
+ disabled: !mr(o)
937
942
  }, {
938
- default: re(() => [g("span", Ge, [g("span", Ke, A(j(ae)(o, r)), 1)])]),
943
+ default: N(() => [g("span", We, [g("span", Ge, A(j(ie)(o, r)), 1)])]),
939
944
  _: 2
940
- }, 1032, ["content", "disabled"]))], 2)], 14, He))), 128))], 42, Ve), un.value && j(Zn)(r, a) ? (T(), h("tr", {
945
+ }, 1032, ["content", "disabled"]))], 2)], 14, Ve))), 128))], 42, Be), un.value && j($n)(r, a) ? (T(), h("tr", {
941
946
  key: 0,
942
947
  class: S([{ "m-table__row--striped": Jt.value && (a + 1) % 2 == 0 }, typeof j(Et) == "string" ? j(Et) : j(Et)(r, a + 1)])
943
948
  }, [g("td", {
944
- colspan: j(G).length,
949
+ colspan: j(q).length,
945
950
  class: "m-table__cell--expanded"
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)),
951
+ }, [r.expandLoading ? (T(), p(ke, { key: 0 })) : m("", !0), k(e.$slots, "expansion", x({ ref_for: !0 }, { row: r }))], 8, Ke)], 2)) : m("", !0)], 64))), 128)),
947
952
  k(e.$slots, "body-append", C(b({
948
953
  items: j(Q),
949
954
  pagination: {
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)
955
+ isFirstPage: j(Gn),
956
+ isLastPage: j(Wn),
957
+ currentPaginationNumber: j(X),
958
+ maxPaginationNumber: j(Un),
959
+ nextPage: j(Kn),
960
+ prevPage: j(qn),
961
+ updatePage: j(Z)
957
962
  },
958
- headers: j(G)
963
+ headers: j(q)
959
964
  })))
960
965
  ])) : m("", !0)
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)]),
966
+ ], 8, Me), !j(Q).length && !j(V) ? (T(), h("div", qe, [j(G).empty ? k(e.$slots, "empty", {}, void 0, void 0, 0) : k(e.$slots, "empty", {}, () => [g("p", Je, A(nn.value), 1), j(Ft) ? (T(), h("p", Ye, A(j(Ft)), 1)) : m("", !0)], void 0, 1)])) : m("", !0)], 8, je)]),
962
967
  _: 3
963
968
  }, 8, [
964
969
  "height",
@@ -968,25 +973,25 @@ var ke = ["aria-label"], Ae = /* @__PURE__ */ y({
968
973
  _: 2
969
974
  }, [ln.value ? {
970
975
  name: "indicator",
971
- fn: re(() => [k(e.$slots, "loading")]),
976
+ fn: N(() => [k(e.$slots, "loading")]),
972
977
  key: "0"
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)
978
+ } : void 0]), 1032, ["loading"]), j(Bt) ? (T(), h("div", Xe, [g("div", Ze, A(`${j(Yn)}–${j(Xn)}`) + " " + A(j(xt)) + " " + A(j(Y)), 1), cn.value ? k(e.$slots, "pagination", C(b({
979
+ isFirstPage: j(Gn),
980
+ isLastPage: j(Wn),
981
+ currentPaginationNumber: j(X),
982
+ maxPaginationNumber: j(Un),
983
+ nextPage: j(Kn),
984
+ prevPage: j(qn)
980
985
  })), void 0, void 0, 0) : (T(), p(o, {
981
986
  key: 1,
982
- "model-value": j(J),
983
- "total-records": j(q),
984
- rows: j(K),
987
+ "model-value": j(X),
988
+ "total-records": j(Y),
989
+ rows: j(J),
985
990
  "page-sizes": j(In),
986
991
  "show-size-picker": !j(Mt),
987
- disabled: j(B),
988
- "onUpdate:modelValue": j(X),
989
- "onUpdate:rows": vr
992
+ disabled: j(V),
993
+ "onUpdate:modelValue": j(Z),
994
+ "onUpdate:rows": br
990
995
  }, null, 8, [
991
996
  "model-value",
992
997
  "total-records",
@@ -995,8 +1000,8 @@ var ke = ["aria-label"], Ae = /* @__PURE__ */ y({
995
1000
  "show-size-picker",
996
1001
  "disabled",
997
1002
  "onUpdate:modelValue"
998
- ]))])) : m("", !0)], 16, je));
1003
+ ]))])) : m("", !0)], 16, Ae));
999
1004
  }
1000
1005
  });
1001
1006
  //#endregion
1002
- export { $e as MTable };
1007
+ export { Qe as MTable };