maz-ui 3.47.2-beta.7 → 3.47.2-beta.8

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 (144) hide show
  1. package/components/MazBottomSheet.mjs +1 -1
  2. package/components/MazBtn.mjs +1 -1
  3. package/components/MazCard.mjs +1 -1
  4. package/components/MazCarousel.mjs +1 -1
  5. package/components/MazChecklist.mjs +1 -1
  6. package/components/MazDialog.mjs +1 -1
  7. package/components/MazDialogPromise.mjs +1 -1
  8. package/components/MazDrawer.mjs +1 -1
  9. package/components/MazDropdown.mjs +1 -1
  10. package/components/MazIcon.mjs +1 -1
  11. package/components/MazInput.mjs +1 -1
  12. package/components/MazInputNumber.mjs +1 -1
  13. package/components/MazInputPrice.mjs +1 -1
  14. package/components/MazInputTags.mjs +1 -1
  15. package/components/MazLink.mjs +1 -1
  16. package/components/MazPagination.mjs +1 -1
  17. package/components/MazPhoneNumberInput.mjs +1 -1
  18. package/components/MazPicker.mjs +1 -1
  19. package/components/MazSelect.mjs +1 -1
  20. package/components/MazStepper.mjs +1 -1
  21. package/components/MazTable.d.ts +4 -4
  22. package/components/MazTable.mjs +3 -2
  23. package/components/MazTableCell.d.ts +1 -5
  24. package/components/MazTableCell.mjs +19 -22
  25. package/components/MazTableRow.mjs +16 -16
  26. package/components/MazTableTitle.d.ts +1 -5
  27. package/components/MazTableTitle.mjs +18 -21
  28. package/components/MazTabsBar.mjs +1 -1
  29. package/components/MazTabsContent.mjs +4 -4
  30. package/components/MazTabsContentItem.mjs +7 -7
  31. package/components/assets/MazDropdown.css +1 -1
  32. package/components/assets/MazPicker.css +1 -1
  33. package/components/assets/MazTable.css +1 -1
  34. package/components/assets/MazTableCell.css +1 -1
  35. package/components/assets/MazTableRow.css +1 -1
  36. package/components/assets/MazTableTitle.css +1 -1
  37. package/components/assets/MazTabsBar.css +1 -1
  38. package/components/chunks/{MazBadge-D-0XgPWR.mjs → MazBadge-qdgVtKdQ.mjs} +1 -1
  39. package/components/chunks/{MazBottomSheet-C9GWCGys.mjs → MazBottomSheet-DX3dl16f.mjs} +1 -1
  40. package/components/chunks/{MazBtn-CMyQNKuk.mjs → MazBtn-B1DhLzSq.mjs} +2 -2
  41. package/components/chunks/{MazBtn-DA2lg-5s.mjs → MazBtn-B6xyipje.mjs} +1 -1
  42. package/components/chunks/MazBtn-BE_bHLkT.mjs +105 -0
  43. package/components/chunks/MazBtn-Blj3kViZ.mjs +105 -0
  44. package/components/chunks/{MazBtn-B0Q6Kw8H.mjs → MazBtn-BtmrmjP3.mjs} +2 -2
  45. package/components/chunks/{MazBtn-DFLIzh6y.mjs → MazBtn-C0fZIwfM.mjs} +2 -2
  46. package/components/chunks/MazBtn-CFf5L0DS.mjs +105 -0
  47. package/components/chunks/MazBtn-CiiCndWt.mjs +105 -0
  48. package/components/chunks/{MazBtn-DHfi8M3z.mjs → MazBtn-DMcVZ1r9.mjs} +2 -2
  49. package/components/chunks/{MazBtn-DZb-6vcl.mjs → MazBtn-DWVb9GQ3.mjs} +1 -1
  50. package/components/chunks/{MazBtn-VU3XSEv8.mjs → MazBtn-DanmhP4R.mjs} +1 -1
  51. package/components/chunks/{MazBtn-DKyz5Hc0.mjs → MazBtn-DzheqNTG.mjs} +2 -2
  52. package/components/chunks/MazBtn-FtH-ADjY.mjs +105 -0
  53. package/components/chunks/{MazBtn-DER-sPjl.mjs → MazBtn-pNpaQRRG.mjs} +2 -2
  54. package/components/chunks/{MazCard-BkcxQOWL.mjs → MazCard-DMDzDjHR.mjs} +1 -1
  55. package/components/chunks/{MazCarousel-CSv4VpC9.mjs → MazCarousel-BjBQQBFN.mjs} +1 -1
  56. package/components/chunks/{MazCheckbox-BHhDBSbJ.mjs → MazCheckbox-9R4fuM8t.mjs} +1 -1
  57. package/components/chunks/{MazCheckbox-BcwWN7iD.mjs → MazCheckbox-DXcpsRU4.mjs} +1 -1
  58. package/components/chunks/{MazCheckbox-B9iBXhoG.mjs → MazCheckbox-Dgn0lw5f.mjs} +1 -1
  59. package/components/chunks/{MazChecklist-DxtYuoEu.mjs → MazChecklist-D_IebAis.mjs} +1 -1
  60. package/components/chunks/{MazDialog-xPCkmhrE.mjs → MazDialog-Cyo_BtT4.mjs} +1 -1
  61. package/components/chunks/{MazDialogPromise-dIHWE8dO.mjs → MazDialogPromise-CHyri_Q5.mjs} +2 -2
  62. package/components/chunks/{MazDropdown-7WqbXnPN.mjs → MazDropdown-urkh4dW3.mjs} +87 -103
  63. package/components/chunks/{MazExpandAnimation-CUgYZyTw.mjs → MazExpandAnimation-CWDhei53.mjs} +1 -1
  64. package/components/chunks/{MazGallery-BfdKcDIu.mjs → MazGallery-DNN_xBeg.mjs} +2 -2
  65. package/components/chunks/{MazIcon-BbvBov5G.mjs → MazIcon-B4CDdmqe.mjs} +1 -1
  66. package/components/chunks/{MazIcon-DjMuw8Bz.mjs → MazIcon-B7Mn8F75.mjs} +1 -1
  67. package/components/chunks/MazIcon-BK45d_-V.mjs +4 -0
  68. package/components/chunks/{MazIcon-DVTWgYB6.mjs → MazIcon-BSgK89NE.mjs} +1 -1
  69. package/components/chunks/{MazInput-DG-grU7m.mjs → MazInput-CyWYuOsl.mjs} +1 -1
  70. package/components/chunks/{MazInput-SGx7gJ9r.mjs → MazInput-DFDzf7C1.mjs} +2 -2
  71. package/components/chunks/{MazInput-DnmjeD0Q.mjs → MazInput-LS_VhQAg.mjs} +2 -2
  72. package/components/chunks/{MazInputNumber-DoeT5Lcu.mjs → MazInputNumber-qQ6MrK-y.mjs} +2 -2
  73. package/components/chunks/{MazInputPrice-CZiypHp3.mjs → MazInputPrice-C207E4RH.mjs} +1 -1
  74. package/components/chunks/{MazInputTags-DGAglIQb.mjs → MazInputTags-a57ZPojk.mjs} +2 -2
  75. package/components/chunks/{MazLink-yKgOtTlk.mjs → MazLink-Ch-w_Lf_.mjs} +1 -1
  76. package/components/chunks/{MazLoadingBar-CBNuhilE.mjs → MazLoadingBar-rusnhtnI.mjs} +1 -1
  77. package/components/chunks/{MazPagination-eJFyS5Nn.mjs → MazPagination-CJEC7Y4E.mjs} +1 -1
  78. package/components/chunks/{MazPhoneNumberInput-rGR80IeJ.mjs → MazPhoneNumberInput-BUe2kgX6.mjs} +4 -4
  79. package/components/chunks/{MazPicker-CUpQ552W.mjs → MazPicker-DteyWEwr.mjs} +191 -209
  80. package/components/chunks/{MazPickerMonthSwitcher-duzi8uZ8.mjs → MazPickerMonthSwitcher-D46P6nV5.mjs} +1 -1
  81. package/components/chunks/{MazPickerShortcuts-Coq4ITAj.mjs → MazPickerShortcuts-C50DAlfT.mjs} +1 -1
  82. package/components/chunks/{MazPickerYearSwitcher-vUTntpYE.mjs → MazPickerYearSwitcher-5EW9ebYR.mjs} +1 -1
  83. package/components/chunks/{MazSelect-DA1D4Aus.mjs → MazSelect-C0rk6m_5.mjs} +3 -3
  84. package/components/chunks/{MazSelect-DpLBpopb.mjs → MazSelect-CJnsMuMG.mjs} +2 -2
  85. package/components/chunks/MazSpinner-B2mZYoLS.mjs +34 -0
  86. package/components/chunks/{MazSpinner-DJM02T-b.mjs → MazSpinner-BxlN_quv.mjs} +1 -1
  87. package/components/chunks/{MazSpinner-Bi3tSdWr.mjs → MazSpinner-CAR4Mm9l.mjs} +1 -1
  88. package/components/chunks/MazSpinner-CQAyxmwJ.mjs +34 -0
  89. package/components/chunks/{MazSpinner-BdOKUqKA.mjs → MazSpinner-CbuG6vB-.mjs} +1 -1
  90. package/components/chunks/MazSpinner-Cef473zM.mjs +34 -0
  91. package/components/chunks/{MazSpinner-Bbagpn0P.mjs → MazSpinner-CkOG2EM9.mjs} +1 -1
  92. package/components/chunks/MazSpinner-CksMqwXP.mjs +34 -0
  93. package/components/chunks/{MazSpinner-BODHZQ9h.mjs → MazSpinner-CqpyUTWh.mjs} +1 -1
  94. package/components/chunks/MazSpinner-CtZfuEKt.mjs +34 -0
  95. package/components/chunks/{MazSpinner-CQpzVTYF.mjs → MazSpinner-CyvYTwaV.mjs} +1 -1
  96. package/components/chunks/MazSpinner-DCBUvJ_o.mjs +34 -0
  97. package/components/chunks/MazSpinner-DPdh6vtw.mjs +34 -0
  98. package/components/chunks/{MazSpinner-CLlK6hHp.mjs → MazSpinner-D_6j7BO6.mjs} +1 -1
  99. package/components/chunks/{MazSpinner-B8vOa-3i.mjs → MazSpinner-DqZc3-_U.mjs} +1 -1
  100. package/components/chunks/MazSpinner-XikQHrkW.mjs +34 -0
  101. package/components/chunks/MazSpinner-q-AqkAjI.mjs +34 -0
  102. package/components/chunks/{MazStepper-DKPl3uIk.mjs → MazStepper-BWyXIppj.mjs} +1 -1
  103. package/components/chunks/{MazTable-DBiW_J2i.mjs → MazTable-BpIXKltC.mjs} +126 -126
  104. package/components/chunks/MazTableCell-DQAaVtw4.mjs +23 -0
  105. package/components/chunks/MazTableRow-CN415w3y.mjs +30 -0
  106. package/components/chunks/MazTableTitle-DbCN1l2O.mjs +23 -0
  107. package/components/chunks/{MazTabsBar-BVg2pxLA.mjs → MazTabsBar-jlclO5zk.mjs} +61 -77
  108. package/components/chunks/{MazTransitionExpand-2Ft7atX1.mjs → MazTransitionExpand-B2jKLvyg.mjs} +1 -1
  109. package/components/chunks/{inject-strict-BmiaNiwC.mjs → inject-strict-DEDSuzCz.mjs} +3 -3
  110. package/modules/chunks/{MazBtn-SZHtOzgz.cjs → MazBtn-BLjl_mR0.cjs} +1 -1
  111. package/modules/chunks/{MazBtn-y5LW9A2T.mjs → MazBtn-D6K3B6XM.mjs} +2 -2
  112. package/modules/chunks/{MazIcon-BpVDZGXl.cjs → MazIcon--UTNvIe4.cjs} +1 -1
  113. package/modules/chunks/{MazIcon-Dj66ziAh.mjs → MazIcon-BRGZkufX.mjs} +1 -1
  114. package/modules/chunks/{MazSpinner-uMrdk_99.mjs → MazSpinner-9EkSWhvP.mjs} +1 -1
  115. package/modules/chunks/{MazSpinner-CPT6UF2e.cjs → MazSpinner-B82Q3oFJ.cjs} +1 -1
  116. package/modules/chunks/{index-BG6gPie5.mjs → index-7UZ6u--K.mjs} +5 -5
  117. package/modules/chunks/index-fosopmwd.cjs +124 -0
  118. package/modules/index.cjs +1 -1
  119. package/modules/index.mjs +1 -1
  120. package/nuxt/index.json +1 -1
  121. package/package.json +1 -1
  122. package/types/components/MazTable.vue.d.ts +4 -4
  123. package/types/components/MazTableCell.vue.d.ts +1 -5
  124. package/types/components/MazTableTitle.vue.d.ts +1 -5
  125. package/types/modules/helpers/inject-strict.d.ts +2 -1
  126. package/components/chunks/MazBtn-D_K6k6A7.mjs +0 -105
  127. package/components/chunks/MazBtn-DnZ_pj-t.mjs +0 -105
  128. package/components/chunks/MazBtn-DpFjxnMy.mjs +0 -105
  129. package/components/chunks/MazBtn-DvfMuN3B.mjs +0 -105
  130. package/components/chunks/MazBtn-IPfW92RY.mjs +0 -105
  131. package/components/chunks/MazIcon-B3gy-jQ6.mjs +0 -4
  132. package/components/chunks/MazSpinner-Btv2qATX.mjs +0 -34
  133. package/components/chunks/MazSpinner-CR8HZnWn.mjs +0 -34
  134. package/components/chunks/MazSpinner-ChqoF_fX.mjs +0 -34
  135. package/components/chunks/MazSpinner-D5ciNjTR.mjs +0 -34
  136. package/components/chunks/MazSpinner-DIPbNESr.mjs +0 -34
  137. package/components/chunks/MazSpinner-VN2Vol2B.mjs +0 -34
  138. package/components/chunks/MazSpinner-dm4RUkiD.mjs +0 -34
  139. package/components/chunks/MazSpinner-oLVdOGaR.mjs +0 -34
  140. package/components/chunks/MazSpinner-v0FIBDiy.mjs +0 -34
  141. package/components/chunks/MazTableCell-D10vPzyI.mjs +0 -26
  142. package/components/chunks/MazTableRow-CSxkhwUM.mjs +0 -30
  143. package/components/chunks/MazTableTitle-BdRR_MXI.mjs +0 -26
  144. package/modules/chunks/index-BTegnVLg.cjs +0 -124
@@ -1,26 +1,26 @@
1
- import { defineComponent as Ne, useCssVars as we, defineAsyncComponent as f, computed as d, toRefs as Le, provide as Oe, ref as k, watch as R, useSlots as Te, onBeforeMount as Ee, openBlock as s, createElementBlock as v, normalizeClass as g, renderSlot as p, createElementVNode as h, toDisplayString as y, createCommentVNode as r, createBlock as S, unref as t, createVNode as i, normalizeStyle as se, createTextVNode as M, withCtx as c, Fragment as G, renderList as J } from "vue";
2
- import '../assets/MazTable.css';const Re = {
1
+ import { defineComponent as Me, useCssVars as Ne, defineAsyncComponent as f, computed as d, toRefs as we, provide as Le, ref as k, watch as R, useSlots as Te, onBeforeMount as Oe, openBlock as s, createElementBlock as v, normalizeClass as g, renderSlot as p, createElementVNode as h, toDisplayString as y, createCommentVNode as u, createBlock as S, unref as t, createVNode as i, normalizeStyle as oe, createTextVNode as M, withCtx as c, Fragment as G, renderList as J } from "vue";
2
+ import '../assets/MazTable.css';const Ee = {
3
3
  key: 0,
4
4
  class: "m-table-header"
5
- }, De = {
5
+ }, Re = {
6
6
  key: 0,
7
7
  class: "m-table-spacer"
8
- }, Fe = { class: "m-table-header-title" }, Ke = {
8
+ }, Ke = { class: "m-table-header-title" }, De = {
9
9
  key: 1,
10
10
  class: "m-table-header-search"
11
- }, He = { key: 0 }, Ue = { key: 1 }, Qe = {
11
+ }, Fe = { key: 0 }, He = { key: 1 }, Ue = {
12
12
  key: 0,
13
13
  class: "m-table-sort-icon-wrapper"
14
- }, qe = { class: "maz-text-center maz-text-muted" }, Ye = {
14
+ }, Qe = { class: "maz-text-center maz-text-muted" }, qe = {
15
15
  key: 1,
16
16
  class: "m-table-footer"
17
- }, je = {
17
+ }, Ye = {
18
18
  key: 0,
19
19
  class: "m-table-footer-pagination"
20
- }, Ge = { class: "m-table-footer-pagination-items-per-page" }, Je = { class: "maz-hidden maz-text-sm tab-s:maz-block" }, We = {
20
+ }, je = { class: "m-table-footer-pagination-items-per-page" }, Ge = { class: "maz-hidden maz-text-sm tab-s:maz-block" }, Je = {
21
21
  key: 0,
22
22
  class: "maz-whitespace-nowrap maz-text-sm"
23
- }, Xe = { class: "m-table-footer-pagination-buttons" }, Ze = /* @__PURE__ */ Ne({
23
+ }, We = { class: "m-table-footer-pagination-buttons" }, Xe = "maz-table", Ze = /* @__PURE__ */ Me({
24
24
  __name: "MazTable",
25
25
  props: {
26
26
  tableClass: { default: void 0 },
@@ -61,15 +61,15 @@ import '../assets/MazTable.css';const Re = {
61
61
  color: { default: "primary" },
62
62
  translations: {},
63
63
  roundedSize: { default: "lg" },
64
- truncate: { type: Boolean, default: !0 }
64
+ scrollable: { type: Boolean, default: !1 }
65
65
  },
66
66
  emits: ["update:model-value", "update:search-query", "update:page", "update:page-size"],
67
- setup(N, { emit: D }) {
68
- we((e) => ({
69
- "0149bd88": e.tableLayout,
70
- ee4c9566: e.captionSide
67
+ setup(N, { emit: K }) {
68
+ Ne((e) => ({
69
+ "8f000436": e.tableLayout,
70
+ "400ff5aa": e.captionSide
71
71
  }));
72
- const a = N, $ = D, F = f(() => import("./arrow-up-DjSlktWl.mjs")), W = f(() => import("./chevron-double-left-D4-NpyrF.mjs")), X = f(() => import("./chevron-left-BqVOLRdC.mjs")), ne = f(() => import("./magnifying-glass--nBiyXot.mjs")), w = f(() => import("./MazBtn-B0Q6Kw8H.mjs")), Z = f(() => import("./MazCheckbox-BHhDBSbJ.mjs")), ue = f(() => import("./MazInput-DnmjeD0Q.mjs")), re = f(() => import("./MazLoadingBar-CBNuhilE.mjs")), _ = f(() => import("./MazSelect-DA1D4Aus.mjs")), L = f(() => import("./MazTableCell-D10vPzyI.mjs")), K = f(() => import("./MazTableRow-CSxkhwUM.mjs")), H = f(() => import("./MazTableTitle-BdRR_MXI.mjs")), ie = {
72
+ const a = N, $ = K, D = f(() => import("./arrow-up-DjSlktWl.mjs")), W = f(() => import("./chevron-double-left-D4-NpyrF.mjs")), X = f(() => import("./chevron-left-BqVOLRdC.mjs")), se = f(() => import("./magnifying-glass--nBiyXot.mjs")), w = f(() => import("./MazBtn-BtmrmjP3.mjs")), Z = f(() => import("./MazCheckbox-9R4fuM8t.mjs")), ne = f(() => import("./MazInput-LS_VhQAg.mjs")), re = f(() => import("./MazLoadingBar-rusnhtnI.mjs")), _ = f(() => import("./MazSelect-C0rk6m_5.mjs")), L = f(() => import("./MazTableCell-DQAaVtw4.mjs")), F = f(() => import("./MazTableRow-CN415w3y.mjs")), H = f(() => import("./MazTableTitle-DbCN1l2O.mjs")), ue = {
73
73
  noResults: "No results",
74
74
  actionHeader: "Actions",
75
75
  searchByAllLabel: "All",
@@ -79,38 +79,37 @@ import '../assets/MazTable.css';const Re = {
79
79
  paginationRowsPerPage: "Rows per page",
80
80
  paginationOf: "of"
81
81
  }, C = d(() => {
82
- const { translations: e, searchByAllLabel: o, searchByPlaceholder: l, searchPlaceholder: n, paginationAllLabel: u } = a;
82
+ const { translations: e, searchByAllLabel: o, searchByPlaceholder: l, searchPlaceholder: n, paginationAllLabel: r } = a;
83
83
  return {
84
- ...ie,
84
+ ...ue,
85
85
  ...e,
86
86
  searchByAllLabel: o,
87
87
  searchByPlaceholder: l,
88
88
  searchPlaceholder: n,
89
- paginationAllLabel: u
89
+ paginationAllLabel: r
90
90
  };
91
- }), de = d(
91
+ }), ie = d(
92
92
  () => a.divider && !a.backgroundEven && !a.backgroundOdd
93
- ), { size: m, hoverable: ce, backgroundEven: ve, backgroundOdd: pe, truncate: x } = Le(a);
94
- Oe("maz-table", {
93
+ ), { size: m, hoverable: de, backgroundEven: ce, backgroundOdd: ve } = we(a);
94
+ Le(Xe, {
95
95
  size: m,
96
- hoverable: ce,
97
- backgroundEven: ve,
98
- backgroundOdd: pe,
99
- truncate: x
96
+ hoverable: de,
97
+ backgroundEven: ce,
98
+ backgroundOdd: ve
100
99
  });
101
- const U = k(ae()), Q = d(() => a.selectable || !!a.selectedKey), O = k(a.page);
100
+ const U = k(le()), Q = d(() => a.selectable || !!a.selectedKey), T = k(a.page);
102
101
  R(
103
102
  () => a.page,
104
103
  (e) => {
105
- O.value = e;
104
+ T.value = e;
106
105
  }
107
106
  );
108
107
  const b = d({
109
- get: () => O.value,
108
+ get: () => T.value,
110
109
  set: (e) => {
111
- O.value = e, $("update:page", e);
110
+ T.value = e, $("update:page", e);
112
111
  }
113
- }), fe = d(() => [
112
+ }), pe = d(() => [
114
113
  { label: C.value.paginationAllLabel, value: Number.POSITIVE_INFINITY },
115
114
  { label: 5, value: 5 },
116
115
  { label: 10, value: 10 },
@@ -134,31 +133,31 @@ import '../assets/MazTable.css';const Re = {
134
133
  var e;
135
134
  return a.totalPages ?? (B.value === Number.POSITIVE_INFINITY || !((e = a.rows) != null && e.length)) ? 1 : Math.ceil(a.rows.length / B.value);
136
135
  });
137
- function me() {
136
+ function fe() {
138
137
  b.value = 1;
139
138
  }
140
- function be() {
139
+ function me() {
141
140
  b.value = I.value;
142
141
  }
143
- function ge() {
142
+ function be() {
144
143
  b.value = b.value - 1;
145
144
  }
146
- function ye() {
145
+ function ge() {
147
146
  b.value = b.value + 1;
148
147
  }
149
- const ee = d(() => {
148
+ const x = d(() => {
150
149
  if (!a.pagination || a.noPaginateRows || B.value === Number.POSITIVE_INFINITY)
151
150
  return U.value;
152
- const e = (O.value - 1) * B.value, o = e + B.value;
151
+ const e = (T.value - 1) * B.value, o = e + B.value;
153
152
  return U.value.slice(e, o);
154
153
  });
155
154
  R(
156
155
  () => [a.rows, a.modelValue],
157
156
  () => {
158
- U.value = ae();
157
+ U.value = le();
159
158
  }
160
159
  );
161
- const A = k(), z = k(), V = k(Be()), T = k(), ze = d(() => [
160
+ const A = k(), z = k(), V = k(Ce()), O = k(), ye = d(() => [
162
161
  { label: a.searchByAllLabel, value: null },
163
162
  ...V.value.map((e) => ({
164
163
  label: e.label,
@@ -177,31 +176,31 @@ import '../assets/MazTable.css';const Re = {
177
176
  Y.value = e, $("update:search-query", e);
178
177
  }
179
178
  });
180
- function he(e) {
179
+ function ze(e) {
181
180
  return [...e].sort((o, l) => {
182
181
  if (A.value === void 0 || z.value === void 0)
183
182
  return 0;
184
- const n = o[V.value[A.value].key], u = l[V.value[A.value].key];
185
- return typeof n == "string" && typeof u == "string" ? z.value === "ASC" ? n.localeCompare(u) : u.localeCompare(n) : z.value === "ASC" ? n - u : u - n;
183
+ const n = o[V.value[A.value].key], r = l[V.value[A.value].key];
184
+ return typeof n == "string" && typeof r == "string" ? z.value === "ASC" ? n.localeCompare(r) : r.localeCompare(n) : z.value === "ASC" ? n - r : r - n;
186
185
  });
187
186
  }
188
- function Se(e) {
187
+ function he(e) {
189
188
  if (a.noSearchInRow || typeof E.value != "string")
190
- return ee.value;
189
+ return x.value;
191
190
  const o = E.value.toLowerCase();
192
- return [...e].filter((l) => T.value ? String(l[T.value]).toLowerCase().includes(o) : Object.values(l).some((n) => typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? String(n).toLowerCase().includes(o) : !1));
191
+ return [...e].filter((l) => O.value ? String(l[O.value]).toLowerCase().includes(o) : Object.values(l).some((n) => typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? String(n).toLowerCase().includes(o) : !1));
193
192
  }
194
193
  const P = d(() => {
195
- const e = Se(ee.value);
196
- return he(e);
197
- }), ke = Te(), le = d(() => a.search || !!a.title || !!ke.title), Ce = d(() => a.pagination);
198
- function Be() {
194
+ const e = he(x.value);
195
+ return ze(e);
196
+ }), Se = Te(), ee = d(() => a.search || !!a.title || !!Se.title), ke = d(() => a.pagination);
197
+ function Ce() {
199
198
  var e;
200
199
  return ((e = a.headers) == null ? void 0 : e.map(
201
200
  (o) => typeof o == "string" ? { label: o, align: a.headersAlign } : { align: a.headersAlign, thHeaders: o.headers, ...o }
202
201
  )) ?? [];
203
202
  }
204
- function ae() {
203
+ function le() {
205
204
  var e;
206
205
  return ((e = a.rows) == null ? void 0 : e.map((o) => {
207
206
  var l;
@@ -211,63 +210,63 @@ import '../assets/MazTable.css';const Re = {
211
210
  };
212
211
  })) ?? [];
213
212
  }
214
- function Ve(e) {
213
+ function Be(e) {
215
214
  e === A.value ? z.value = z.value === void 0 ? "DESC" : z.value === "DESC" ? "ASC" : void 0 : z.value = "DESC", A.value = z.value === void 0 ? void 0 : e;
216
215
  }
217
- const te = d({
216
+ const ae = d({
218
217
  get: () => P.value.every((e) => e.selected) ?? !1,
219
- set: Pe
218
+ set: Ve
220
219
  });
221
- function Pe(e) {
220
+ function Ve(e) {
222
221
  for (const o of P.value)
223
222
  o.selected = e;
224
223
  j();
225
224
  }
226
- function $e(e, o) {
225
+ function Pe(e, o) {
227
226
  P.value[o].selected = e, j();
228
227
  }
229
228
  function j(e) {
230
- e = e ?? oe();
229
+ e = e ?? te();
231
230
  const o = e != null && e.length ? e : void 0;
232
231
  $("update:model-value", o);
233
232
  }
234
- function oe() {
233
+ function te() {
235
234
  return P.value.filter((e) => e.selected).map((e) => a.selectedKey ? e[a.selectedKey] : e);
236
235
  }
237
- return Ee(() => {
238
- const e = oe();
236
+ return Oe(() => {
237
+ const e = te();
239
238
  e != null && e.length && j(e);
240
239
  }), (e, o) => (s(), v(
241
240
  "div",
242
241
  {
243
- class: g(["m-table", { "--has-header": le.value }])
242
+ class: g(["m-table", { "--has-header": ee.value }])
244
243
  },
245
244
  [
246
- le.value ? (s(), v("div", Re, [
247
- e.title || e.$slots.title ? (s(), v("div", De, [
245
+ ee.value ? (s(), v("div", Ee, [
246
+ e.title || e.$slots.title ? (s(), v("div", Re, [
248
247
  p(e.$slots, "title", {}, () => [
249
248
  h(
250
249
  "span",
251
- Fe,
250
+ Ke,
252
251
  y(e.title),
253
252
  1
254
253
  /* TEXT */
255
254
  )
256
255
  ], !0)
257
- ])) : r("v-if", !0),
258
- e.search ? (s(), v("div", Ke, [
259
- e.noSearchBy ? r("v-if", !0) : (s(), S(t(_), {
256
+ ])) : u("v-if", !0),
257
+ e.search ? (s(), v("div", De, [
258
+ e.noSearchBy ? u("v-if", !0) : (s(), S(t(_), {
260
259
  key: 0,
261
- modelValue: T.value,
262
- "onUpdate:modelValue": o[0] || (o[0] = (l) => T.value = l),
260
+ modelValue: O.value,
261
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => O.value = l),
263
262
  "rounded-size": e.roundedSize,
264
263
  color: e.color,
265
264
  style: { width: "8rem" },
266
265
  placeholder: C.value.searchByPlaceholder,
267
266
  size: e.inputSize ?? t(m),
268
- options: ze.value
267
+ options: ye.value
269
268
  }, null, 8, ["modelValue", "rounded-size", "color", "placeholder", "size", "options"])),
270
- i(t(ue), {
269
+ i(t(ne), {
271
270
  modelValue: E.value,
272
271
  "onUpdate:modelValue": o[1] || (o[1] = (l) => E.value = l),
273
272
  size: e.inputSize ?? t(m),
@@ -275,15 +274,15 @@ import '../assets/MazTable.css';const Re = {
275
274
  color: e.color,
276
275
  debounce: 300,
277
276
  placeholder: C.value.searchPlaceholder,
278
- "left-icon": t(ne)
277
+ "left-icon": t(se)
279
278
  }, null, 8, ["modelValue", "size", "rounded-size", "color", "placeholder", "left-icon"])
280
- ])) : r("v-if", !0)
281
- ])) : r("v-if", !0),
279
+ ])) : u("v-if", !0)
280
+ ])) : u("v-if", !0),
282
281
  h(
283
282
  "div",
284
283
  {
285
284
  class: g(["m-table-wrapper", [`--rounded-${e.roundedSize}`, {
286
- "--truncate": t(x)
285
+ "--scrollable": e.scrollable
287
286
  }]])
288
287
  },
289
288
  [
@@ -291,10 +290,10 @@ import '../assets/MazTable.css';const Re = {
291
290
  "table",
292
291
  {
293
292
  class: g([{ "--elevation": e.elevation, "--has-layout": e.tableLayout }, e.tableClass]),
294
- style: se(e.tableStyle)
293
+ style: oe(e.tableStyle)
295
294
  },
296
295
  [
297
- e.caption || e.$slots.caption ? (s(), v("caption", He, [
296
+ e.caption || e.$slots.caption ? (s(), v("caption", Fe, [
298
297
  p(e.$slots, "caption", {}, () => [
299
298
  M(
300
299
  y(e.caption),
@@ -302,10 +301,10 @@ import '../assets/MazTable.css';const Re = {
302
301
  /* TEXT */
303
302
  )
304
303
  ], !0)
305
- ])) : r("v-if", !0),
306
- V.value ? (s(), v("thead", Ue, [
304
+ ])) : u("v-if", !0),
305
+ V.value ? (s(), v("thead", He, [
307
306
  p(e.$slots, "thead", {}, () => [
308
- i(t(K), { "no-hoverable": "" }, {
307
+ i(t(F), { "no-hoverable": "" }, {
309
308
  default: c(() => [
310
309
  Q.value ? (s(), S(t(H), {
311
310
  key: 0,
@@ -314,14 +313,14 @@ import '../assets/MazTable.css';const Re = {
314
313
  }, {
315
314
  default: c(() => [
316
315
  i(t(Z), {
317
- modelValue: te.value,
318
- "onUpdate:modelValue": o[2] || (o[2] = (l) => te.value = l),
316
+ modelValue: ae.value,
317
+ "onUpdate:modelValue": o[2] || (o[2] = (l) => ae.value = l),
319
318
  size: "sm"
320
319
  }, null, 8, ["modelValue"])
321
320
  ]),
322
321
  _: 1
323
322
  /* STABLE */
324
- }, 8, ["class"])) : r("v-if", !0),
323
+ }, 8, ["class"])) : u("v-if", !0),
325
324
  (s(!0), v(
326
325
  G,
327
326
  null,
@@ -332,13 +331,13 @@ import '../assets/MazTable.css';const Re = {
332
331
  rowspan: l.rowspan,
333
332
  colspan: l.colspan,
334
333
  headers: l.thHeaders,
335
- style: se({ width: l.width, textAlign: l.align }),
334
+ style: oe({ width: l.width, textAlign: l.align }),
336
335
  class: g(["maz-group", [
337
336
  { "--hidden": l.hidden, "--sortable": l.sortable ?? e.sortable },
338
337
  l.classes,
339
338
  `--${t(m)}`
340
339
  ]]),
341
- onClick: (u) => (l.sortable ?? e.sortable) && Ve(n)
340
+ onClick: (r) => (l.sortable ?? e.sortable) && Be(n)
342
341
  }, {
343
342
  default: c(() => [
344
343
  h(
@@ -361,15 +360,15 @@ import '../assets/MazTable.css';const Re = {
361
360
  /* TEXT */
362
361
  )
363
362
  ], !0),
364
- l.sortable ?? e.sortable ? (s(), v("div", Qe, [
365
- i(t(F), {
363
+ l.sortable ?? e.sortable ? (s(), v("div", Ue, [
364
+ i(t(D), {
366
365
  class: g(["m-table-sort-icon maz-hidden group-hover:maz-block", {
367
366
  "--sorted": n === A.value,
368
367
  "--up": z.value === "DESC",
369
368
  "--down": z.value === "ASC"
370
369
  }])
371
370
  }, null, 8, ["class"])
372
- ])) : r("v-if", !0)
371
+ ])) : u("v-if", !0)
373
372
  ], !0)
374
373
  ],
375
374
  2
@@ -398,32 +397,32 @@ import '../assets/MazTable.css';const Re = {
398
397
  ]),
399
398
  _: 3
400
399
  /* FORWARDED */
401
- }, 8, ["class"])) : r("v-if", !0)
400
+ }, 8, ["class"])) : u("v-if", !0)
402
401
  ]),
403
402
  _: 3
404
403
  /* FORWARDED */
405
404
  })
406
405
  ], !0)
407
- ])) : r("v-if", !0),
406
+ ])) : u("v-if", !0),
408
407
  e.loading ? (s(), S(t(re), {
409
408
  key: 2,
410
409
  color: e.color,
411
410
  class: "!maz-absolute"
412
- }, null, 8, ["color"])) : r("v-if", !0),
411
+ }, null, 8, ["color"])) : u("v-if", !0),
413
412
  h(
414
413
  "tbody",
415
414
  {
416
- class: g({ "--divider": de.value })
415
+ class: g({ "--divider": ie.value })
417
416
  },
418
417
  [
419
418
  p(e.$slots, "default", {}, () => [
420
419
  P.value.length > 0 ? (s(!0), v(
421
420
  G,
422
421
  { key: 0 },
423
- J(P.value, (l, n) => (s(), S(t(K), {
422
+ J(P.value, (l, n) => (s(), S(t(F), {
424
423
  key: n,
425
424
  class: g(l.classes),
426
- onClick: (u) => l.action && l.action(l)
425
+ onClick: (r) => l.action && l.action(l)
427
426
  }, {
428
427
  default: c(() => [
429
428
  Q.value ? (s(), S(
@@ -441,7 +440,7 @@ import '../assets/MazTable.css';const Re = {
441
440
  i(t(Z), {
442
441
  size: "sm",
443
442
  "model-value": l.selected,
444
- "onUpdate:modelValue": (u) => $e(u, n)
443
+ "onUpdate:modelValue": (r) => Pe(r, n)
445
444
  }, null, 8, ["model-value", "onUpdate:modelValue"])
446
445
  ], !0)
447
446
  ]),
@@ -450,32 +449,32 @@ import '../assets/MazTable.css';const Re = {
450
449
  },
451
450
  1024
452
451
  /* DYNAMIC_SLOTS */
453
- )) : r("v-if", !0),
452
+ )) : u("v-if", !0),
454
453
  (s(!0), v(
455
454
  G,
456
455
  null,
457
- J(V.value, ({ key: u, align: Ae, classes: Ie }, Me) => (s(), S(t(L), {
458
- key: Me,
459
- align: Ae,
460
- class: g(Ie)
456
+ J(V.value, ({ key: r, align: $e, classes: Ae }, Ie) => (s(), S(t(L), {
457
+ key: Ie,
458
+ align: $e,
459
+ class: g(Ae)
461
460
  }, {
462
461
  default: c(() => [
463
- u ? p(e.$slots, "cell", {
462
+ r ? p(e.$slots, "cell", {
464
463
  key: 0,
465
464
  row: l,
466
- value: l[u]
465
+ value: l[r]
467
466
  }, () => [
468
- p(e.$slots, `cell-${u}`, {
467
+ p(e.$slots, `cell-${r}`, {
469
468
  row: l,
470
- value: l[u]
469
+ value: l[r]
471
470
  }, () => [
472
471
  M(
473
- y(l[u]),
472
+ y(l[r]),
474
473
  1
475
474
  /* TEXT */
476
475
  )
477
476
  ], !0)
478
- ], !0) : r("v-if", !0)
477
+ ], !0) : u("v-if", !0)
479
478
  ]),
480
479
  _: 2
481
480
  /* DYNAMIC */
@@ -495,21 +494,21 @@ import '../assets/MazTable.css';const Re = {
495
494
  },
496
495
  1024
497
496
  /* DYNAMIC_SLOTS */
498
- )) : r("v-if", !0)
497
+ )) : u("v-if", !0)
499
498
  ]),
500
499
  _: 2
501
500
  /* DYNAMIC */
502
501
  }, 1032, ["class", "onClick"]))),
503
502
  128
504
503
  /* KEYED_FRAGMENT */
505
- )) : (s(), S(t(K), { key: 1 }, {
504
+ )) : (s(), S(t(F), { key: 1 }, {
506
505
  default: c(() => [
507
506
  i(t(L), {
508
507
  colspan: V.value.length + (Q.value ? 1 : 0) + (e.$slots.actions ? 1 : 0)
509
508
  }, {
510
509
  default: c(() => [
511
510
  p(e.$slots, "no-results", {}, () => [
512
- h("p", qe, [
511
+ h("p", Qe, [
513
512
  p(e.$slots, "no-results-text", {}, () => [
514
513
  M(
515
514
  y(C.value.noResults),
@@ -540,7 +539,7 @@ import '../assets/MazTable.css';const Re = {
540
539
  2
541
540
  /* CLASS */
542
541
  ),
543
- Ce.value ? (s(), v("div", Ye, [
542
+ ke.value ? (s(), v("div", qe, [
544
543
  o[4] || (o[4] = h(
545
544
  "div",
546
545
  { class: "m-table-spacer" },
@@ -548,11 +547,11 @@ import '../assets/MazTable.css';const Re = {
548
547
  -1
549
548
  /* HOISTED */
550
549
  )),
551
- e.pagination ? (s(), v("div", je, [
552
- h("div", Ge, [
550
+ e.pagination ? (s(), v("div", Ye, [
551
+ h("div", je, [
553
552
  h(
554
553
  "span",
555
- Je,
554
+ Ge,
556
555
  y(C.value.paginationRowsPerPage),
557
556
  1
558
557
  /* TEXT */
@@ -560,7 +559,7 @@ import '../assets/MazTable.css';const Re = {
560
559
  i(t(_), {
561
560
  modelValue: B.value,
562
561
  "onUpdate:modelValue": o[3] || (o[3] = (l) => B.value = l),
563
- options: fe.value,
562
+ options: pe.value,
564
563
  "rounded-size": e.roundedSize,
565
564
  size: e.inputSize ?? t(m),
566
565
  color: e.color,
@@ -570,19 +569,19 @@ import '../assets/MazTable.css';const Re = {
570
569
  ]),
571
570
  I.value ? (s(), v(
572
571
  "span",
573
- We,
572
+ Je,
574
573
  y(b.value) + " - " + y(P.value.length) + " " + y(C.value.paginationOf) + " " + y(I.value),
575
574
  1
576
575
  /* TEXT */
577
- )) : r("v-if", !0),
578
- h("div", Xe, [
576
+ )) : u("v-if", !0),
577
+ h("div", We, [
579
578
  i(t(w), {
580
579
  disabled: b.value === 1,
581
580
  size: t(m),
582
581
  color: "transparent",
583
582
  "rounded-size": e.roundedSize,
584
583
  "no-elevation": "",
585
- onClick: me
584
+ onClick: fe
586
585
  }, {
587
586
  default: c(() => [
588
587
  i(t(W), { class: "maz-text-base" })
@@ -596,7 +595,7 @@ import '../assets/MazTable.css';const Re = {
596
595
  color: "transparent",
597
596
  "rounded-size": e.roundedSize,
598
597
  "no-elevation": "",
599
- onClick: ge
598
+ onClick: be
600
599
  }, {
601
600
  default: c(() => [
602
601
  i(t(X), { class: "maz-text-base" })
@@ -610,7 +609,7 @@ import '../assets/MazTable.css';const Re = {
610
609
  color: "transparent",
611
610
  "rounded-size": e.roundedSize,
612
611
  "no-elevation": "",
613
- onClick: ye
612
+ onClick: ge
614
613
  }, {
615
614
  default: c(() => [
616
615
  i(t(X), { class: "maz-rotate-180 maz-text-base" })
@@ -624,7 +623,7 @@ import '../assets/MazTable.css';const Re = {
624
623
  color: "transparent",
625
624
  "rounded-size": e.roundedSize,
626
625
  "no-elevation": "",
627
- onClick: be
626
+ onClick: me
628
627
  }, {
629
628
  default: c(() => [
630
629
  i(t(W), { class: "maz-rotate-180 maz-text-base" })
@@ -633,20 +632,21 @@ import '../assets/MazTable.css';const Re = {
633
632
  /* STABLE */
634
633
  }, 8, ["disabled", "size", "rounded-size"])
635
634
  ])
636
- ])) : r("v-if", !0)
637
- ])) : r("v-if", !0)
635
+ ])) : u("v-if", !0)
636
+ ])) : u("v-if", !0)
638
637
  ],
639
638
  2
640
639
  /* CLASS */
641
640
  ));
642
641
  }
643
- }), _e = (N, D) => {
642
+ }), _e = (N, K) => {
644
643
  const a = N.__vccOpts || N;
645
- for (const [$, F] of D)
646
- a[$] = F;
644
+ for (const [$, D] of K)
645
+ a[$] = D;
647
646
  return a;
648
- }, el = /* @__PURE__ */ _e(Ze, [["__scopeId", "data-v-5a33c122"]]);
647
+ }, el = /* @__PURE__ */ _e(Ze, [["__scopeId", "data-v-cb386450"]]);
649
648
  export {
650
649
  el as M,
651
- _e as _
650
+ _e as _,
651
+ Xe as m
652
652
  };
@@ -0,0 +1,23 @@
1
+ import { defineComponent as a, openBlock as o, createElementBlock as l, normalizeClass as r, unref as s, renderSlot as c } from "vue";
2
+ import { i as n } from "./inject-strict-DEDSuzCz.mjs";
3
+ import { m, _ } from "./MazTable-BpIXKltC.mjs";
4
+ import '../assets/MazTableCell.css';const i = /* @__PURE__ */ a({
5
+ __name: "MazTableCell",
6
+ setup(p) {
7
+ const { size: e } = n(m);
8
+ return (t, f) => (o(), l(
9
+ "td",
10
+ {
11
+ class: r(["m-table-cell", [`--${s(e)}`]])
12
+ },
13
+ [
14
+ c(t.$slots, "default", {}, void 0, !0)
15
+ ],
16
+ 2
17
+ /* CLASS */
18
+ ));
19
+ }
20
+ }), b = /* @__PURE__ */ _(i, [["__scopeId", "data-v-ce80193e"]]);
21
+ export {
22
+ b as default
23
+ };
@@ -0,0 +1,30 @@
1
+ import { defineComponent as t, openBlock as l, createElementBlock as s, normalizeClass as c, unref as e, renderSlot as d } from "vue";
2
+ import { i as m } from "./inject-strict-DEDSuzCz.mjs";
3
+ import { m as p, _ as b } from "./MazTable-BpIXKltC.mjs";
4
+ import '../assets/MazTableRow.css';const u = /* @__PURE__ */ t({
5
+ __name: "MazTableRow",
6
+ props: {
7
+ noHoverable: { type: Boolean }
8
+ },
9
+ setup(_) {
10
+ const { hoverable: a, backgroundEven: r, backgroundOdd: n } = m(p);
11
+ return (o, f) => (l(), s(
12
+ "tr",
13
+ {
14
+ class: c(["m-table-row", {
15
+ "--hoverable": e(a) && !o.noHoverable,
16
+ "--background-odd": e(n),
17
+ "--background-even": e(r)
18
+ }])
19
+ },
20
+ [
21
+ d(o.$slots, "default", {}, void 0, !0)
22
+ ],
23
+ 2
24
+ /* CLASS */
25
+ ));
26
+ }
27
+ }), g = /* @__PURE__ */ b(u, [["__scopeId", "data-v-feae05a9"]]);
28
+ export {
29
+ g as default
30
+ };