@oneb/ui-vue 0.3.32 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ChevronLeftIcon-7505e081.cjs +1 -0
- package/dist/ChevronLeftIcon-bb9adb5b.js +20 -0
- package/dist/ChevronRightIcon-2992cf0d.cjs +1 -0
- package/dist/ChevronRightIcon-b0585768.js +20 -0
- package/dist/ChevronUpIcon-64a673e1.cjs +1 -0
- package/dist/{ChevronRightIcon-4549a26b.js → ChevronUpIcon-c43f27a9.js} +2 -19
- package/dist/MagnifyingGlassIcon-adf871ba.cjs +1 -0
- package/dist/MagnifyingGlassIcon-ca213d3d.js +20 -0
- package/dist/OneDropdownAuto.vue_vue_type_script_setup_true_lang-2c508e8a.js +79 -0
- package/dist/OneDropdownAuto.vue_vue_type_script_setup_true_lang-bf923b04.cjs +1 -0
- package/dist/OneFormInput.vue_vue_type_script_setup_true_lang-b89117e7.js +521 -0
- package/dist/OneFormInput.vue_vue_type_script_setup_true_lang-f6f7cd96.cjs +1 -0
- package/dist/OneHelpMenu-6ec63535.cjs +1 -0
- package/dist/{OneHelpMenu-73817f8a.js → OneHelpMenu-d5182c78.js} +118 -213
- package/dist/OneMarkdown.vue_vue_type_script_setup_true_lang-05266fc3.cjs +1 -0
- package/dist/OneMarkdown.vue_vue_type_script_setup_true_lang-bb2219c7.js +18 -0
- package/dist/OneModal-02a9a173.js +189 -0
- package/dist/OneModal-0e92c039.cjs +1 -0
- package/dist/OneTooltip.vue_vue_type_script_setup_true_lang-c492c128.js +25 -0
- package/dist/OneTooltip.vue_vue_type_script_setup_true_lang-e83a81ea.cjs +1 -0
- package/dist/SpinnerIcon-01be39fe.cjs +1 -0
- package/dist/{SpinnerIcon-74648c98.js → SpinnerIcon-516264ba.js} +5 -6
- package/dist/button/index.cjs +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +3 -4
- package/dist/checkbox/checkbox.d.ts +5 -0
- package/dist/checkbox/index.cjs +1 -1
- package/dist/checkbox/index.js +40 -34
- package/dist/chips/OneChips.vue.d.ts +2 -0
- package/dist/chips/chips.d.ts +25 -0
- package/dist/chips/index.cjs +1 -0
- package/dist/chips/index.d.ts +3 -0
- package/dist/chips/index.js +62 -0
- package/dist/clipboard-494e1513.cjs +1 -0
- package/dist/clipboard-733b79a1.js +22 -0
- package/dist/common/OneDetailsList.vue.d.ts +2 -0
- package/dist/common/OneDetailsRow.vue.d.ts +2 -0
- package/dist/common/index.cjs +1 -1
- package/dist/common/index.d.ts +2 -0
- package/dist/common/index.js +68 -16
- package/dist/composables/index.cjs +1 -0
- package/dist/composables/index.d.ts +18 -0
- package/dist/composables/index.js +91 -0
- package/dist/composables/useAsyncMethod.d.ts +17 -0
- package/dist/composables/useAsyncSelect.d.ts +26 -0
- package/dist/composables/useConfirm.d.ts +27 -0
- package/dist/composables/useCursorList.d.ts +42 -0
- package/dist/composables/useDebouncedRef.d.ts +6 -0
- package/dist/composables/useFileUpload.d.ts +21 -0
- package/dist/composables/useFormSubmit.d.ts +23 -0
- package/dist/composables/useIsMobile.d.ts +8 -0
- package/dist/confirm/OneConfirmHost.vue.d.ts +2 -0
- package/dist/confirm/confirm.d.ts +10 -0
- package/dist/confirm/index.cjs +1 -0
- package/dist/confirm/index.d.ts +5 -0
- package/dist/confirm/index.js +59 -0
- package/dist/cursorList/OneCursorList.vue.d.ts +2 -0
- package/dist/cursorList/index.cjs +1 -0
- package/dist/cursorList/index.d.ts +3 -0
- package/dist/cursorList/index.js +78 -0
- package/dist/dataTable/index.cjs +1 -1
- package/dist/dataTable/index.js +256 -301
- package/dist/dateTime/OneDateTime.vue.d.ts +2 -0
- package/dist/dateTime/dateTime.d.ts +43 -0
- package/dist/dateTime/index.cjs +1 -0
- package/dist/dateTime/index.d.ts +3 -0
- package/dist/dateTime/index.js +66 -0
- package/dist/dropdown/index.cjs +1 -1
- package/dist/dropdown/index.js +302 -376
- package/dist/dropdown-5cb64ab7.cjs +1 -0
- package/dist/dropdown-c81fb945.js +101 -0
- package/dist/entityPicker/index.cjs +1 -1
- package/dist/entityPicker/index.js +57 -57
- package/dist/entityPicker/useEntityModal.d.ts +7 -3
- package/dist/errorsPage/OneCrashScreen.vue.d.ts +2 -0
- package/dist/errorsPage/OneErrorHero.vue.d.ts +2 -0
- package/dist/errorsPage/OneNotFoundPage.vue.d.ts +2 -0
- package/dist/errorsPage/OneServerErrorPage.vue.d.ts +2 -0
- package/dist/errorsPage/OneSnakeGame.vue.d.ts +2 -0
- package/dist/errorsPage/createAppErrorHandler.d.ts +24 -0
- package/dist/errorsPage/errorsType.d.ts +5 -0
- package/dist/errorsPage/index.cjs +1 -1
- package/dist/errorsPage/index.d.ts +8 -0
- package/dist/errorsPage/index.js +557 -28
- package/dist/errorsPage/useCrashState.d.ts +10 -0
- package/dist/fileUpload/OneDropzone.vue.d.ts +2 -0
- package/dist/fileUpload/OneFileUpload.vue.d.ts +2 -0
- package/dist/fileUpload/fileUpload.d.ts +17 -0
- package/dist/fileUpload/index.cjs +1 -0
- package/dist/fileUpload/index.d.ts +6 -0
- package/dist/fileUpload/index.js +228 -0
- package/dist/filterBuilder/OneFilterBuilder.vue.d.ts +2 -0
- package/dist/filterBuilder/OneFilterGroup.vue.d.ts +2 -0
- package/dist/filterBuilder/OneFilterRule.vue.d.ts +2 -0
- package/dist/filterBuilder/filterBuilder.d.ts +17 -0
- package/dist/filterBuilder/index.cjs +1 -0
- package/dist/filterBuilder/index.d.ts +5 -0
- package/dist/filterBuilder/index.js +257 -0
- package/dist/form/form.d.ts +1 -1
- package/dist/form/index.cjs +1 -1
- package/dist/form/index.js +66 -574
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +99 -15
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.js +242 -104
- package/dist/indicators/OneStatCard.vue.d.ts +2 -0
- package/dist/indicators/index.cjs +1 -1
- package/dist/indicators/index.d.ts +1 -0
- package/dist/indicators/index.js +66 -29
- package/dist/label/index.cjs +1 -1
- package/dist/label/index.js +5 -5
- package/dist/layout/OneAuthLayout.vue.d.ts +2 -0
- package/dist/layout/OneBackButton.vue.d.ts +2 -0
- package/dist/layout/OneBreadcrumbs.vue.d.ts +2 -0
- package/dist/layout/OneEmptyLayout.vue.d.ts +6 -0
- package/dist/layout/OneGridLayout.vue.d.ts +2 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.d.ts +6 -1
- package/dist/layout/index.js +1057 -765
- package/dist/layout/layout.d.ts +11 -0
- package/dist/modal/OneModalHost.vue.d.ts +2 -0
- package/dist/modal/index.cjs +1 -1
- package/dist/modal/index.d.ts +3 -0
- package/dist/modal/index.js +84 -27
- package/dist/modal/modal.d.ts +9 -0
- package/dist/modal/useModalStack.d.ts +20 -0
- package/dist/notifications/OneNotificationItem.vue.d.ts +2 -0
- package/dist/notifications/OneNotificationsBell.vue.d.ts +2 -0
- package/dist/notifications/OneNotificationsPanel.vue.d.ts +2 -0
- package/dist/notifications/index.cjs +1 -0
- package/dist/notifications/index.d.ts +7 -0
- package/dist/notifications/index.js +477 -0
- package/dist/notifications/notifications.d.ts +53 -0
- package/dist/notifications/useNotifyfeed.d.ts +32 -0
- package/dist/periodPicker/index.cjs +1 -1
- package/dist/periodPicker/index.js +126 -139
- package/dist/popover/OnePopover.vue.d.ts +2 -0
- package/dist/popover/index.cjs +1 -0
- package/dist/popover/index.d.ts +3 -0
- package/dist/popover/index.js +102 -0
- package/dist/popover/popover.d.ts +31 -0
- package/dist/progress/OneProgress.vue.d.ts +2 -0
- package/dist/progress/index.cjs +1 -0
- package/dist/progress/index.d.ts +3 -0
- package/dist/progress/index.js +74 -0
- package/dist/progress/progress.d.ts +32 -0
- package/dist/searchInput/OneSearchInput.vue.d.ts +2 -0
- package/dist/searchInput/index.cjs +1 -0
- package/dist/searchInput/index.d.ts +3 -0
- package/dist/searchInput/index.js +103 -0
- package/dist/searchInput/searchInput.d.ts +39 -0
- package/dist/settings/OneSettingsLayout.vue.d.ts +2 -0
- package/dist/settings/OneSettingsRow.vue.d.ts +2 -0
- package/dist/settings/OneSettingsSection.vue.d.ts +2 -0
- package/dist/settings/index.cjs +1 -0
- package/dist/settings/index.d.ts +4 -0
- package/dist/settings/index.js +116 -0
- package/dist/spinner/OneSpinner.vue.d.ts +2 -0
- package/dist/spinner/index.cjs +1 -0
- package/dist/spinner/index.d.ts +3 -0
- package/dist/spinner/index.js +30 -0
- package/dist/spinner/spinner.d.ts +10 -0
- package/dist/stageBadge/index.cjs +1 -1
- package/dist/stageBadge/index.js +18 -16
- package/dist/stepper/OneStepper.vue.d.ts +2 -0
- package/dist/stepper/index.cjs +1 -0
- package/dist/stepper/index.d.ts +3 -0
- package/dist/stepper/index.js +53 -0
- package/dist/stepper/stepper.d.ts +24 -0
- package/dist/style.css +1 -1
- package/dist/switch/index.cjs +1 -1
- package/dist/switch/index.js +3 -4
- package/dist/tabs/OneTab.vue.d.ts +2 -0
- package/dist/tabs/OneTabs.vue.d.ts +2 -0
- package/dist/tabs/index.cjs +1 -0
- package/dist/tabs/index.d.ts +4 -0
- package/dist/tabs/index.js +64 -0
- package/dist/tabs/tabs.d.ts +7 -0
- package/dist/toast/OneMascotToast.vue.d.ts +2 -0
- package/dist/toast/RabbitIcon.vue.d.ts +2 -0
- package/dist/toast/index.cjs +1 -1
- package/dist/toast/index.d.ts +4 -0
- package/dist/toast/index.js +139 -74
- package/dist/toast/useMascotToast.d.ts +12 -0
- package/dist/tooltip/OneTooltip.vue.d.ts +2 -0
- package/dist/tooltip/index.cjs +2 -2
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/index.js +33 -30
- package/dist/useConfirm-6344b49d.cjs +1 -0
- package/dist/useConfirm-74e99a5c.js +23 -0
- package/dist/useCursorList-5c1b57aa.js +62 -0
- package/dist/useCursorList-e1cb41e7.cjs +1 -0
- package/dist/useElementWidth-b36a7ce9.js +40 -0
- package/dist/useElementWidth-b3e53f48.cjs +1 -0
- package/dist/useFileUpload-228dbc07.js +24 -0
- package/dist/useFileUpload-f47622bb.cjs +1 -0
- package/dist/useIsMobile-7b1f08cf.cjs +1 -0
- package/dist/useIsMobile-98fc0cf9.js +7 -0
- package/dist/useMediaQuery-1d87df02.cjs +1 -0
- package/dist/useMediaQuery-77a19b18.js +37 -0
- package/dist/useModal-6a5d870b.js +30 -0
- package/dist/useModal-aa6f4a57.cjs +1 -0
- package/dist/userList/OneUserInviteModal.vue.d.ts +2 -0
- package/dist/userList/OneUserList.vue.d.ts +2 -0
- package/dist/userList/OneUserListItem.vue.d.ts +2 -0
- package/dist/userList/index.cjs +1 -0
- package/dist/userList/index.d.ts +4 -0
- package/dist/userList/index.js +559 -0
- package/dist/utils/clipboard.d.ts +6 -0
- package/dist/utils/format.d.ts +17 -0
- package/dist/utils/index.cjs +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +125 -0
- package/dist/utils/string.d.ts +25 -0
- package/dist/utils/versionChecker.d.ts +26 -0
- package/package.json +215 -24
- package/dist/ChevronRightIcon-7a2f0c20.cjs +0 -1
- package/dist/OneHelpMenu-c6e88d8f.cjs +0 -1
- package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +0 -1
- package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js +0 -1
- package/dist/SpinnerIcon-ccb6f3fc.cjs +0 -1
- package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +0 -1
- package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js +0 -1
- package/dist/useModal-0c73777f.cjs +0 -1
- package/dist/useModal-7fe9444b.js +0 -194
package/dist/dataTable/index.js
CHANGED
|
@@ -1,27 +1,13 @@
|
|
|
1
|
-
import { openBlock as l, createElementBlock as o, createElementVNode as f,
|
|
2
|
-
import { useOnebI18n as
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
1
|
+
import { openBlock as l, createElementBlock as o, createElementVNode as f, defineComponent as ye, computed as y, normalizeClass as m, toDisplayString as w, Fragment as R, renderList as T, unref as p, createCommentVNode as g, createBlock as k, resolveDynamicComponent as C, useSlots as $e, ref as K, provide as Xe, watch as I, withDirectives as Ye, renderSlot as M, vShow as Ze, normalizeStyle as ne, createTextVNode as G, withModifiers as J, createVNode as Be, inject as De, onBeforeUnmount as et } from "vue";
|
|
2
|
+
import { useOnebI18n as Oe } from "../i18n/index.js";
|
|
3
|
+
import { a as V } from "../useMediaQuery-77a19b18.js";
|
|
4
|
+
import { r as tt } from "../ChevronLeftIcon-bb9adb5b.js";
|
|
5
|
+
import { r as ce } from "../ChevronRightIcon-b0585768.js";
|
|
6
|
+
import { S as D } from "../SpinnerIcon-516264ba.js";
|
|
5
7
|
import { r as ie } from "../ChevronDownIcon-6805ce6c.js";
|
|
8
|
+
import { r as st } from "../ChevronUpIcon-c43f27a9.js";
|
|
6
9
|
import { r as ee } from "../CheckIcon-f1c94824.js";
|
|
7
|
-
import { _ as
|
|
8
|
-
import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
9
|
-
function ot(u, i) {
|
|
10
|
-
return l(), o("svg", {
|
|
11
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
-
fill: "none",
|
|
13
|
-
viewBox: "0 0 24 24",
|
|
14
|
-
"stroke-width": "1.8",
|
|
15
|
-
stroke: "currentColor",
|
|
16
|
-
"aria-hidden": "true"
|
|
17
|
-
}, [
|
|
18
|
-
f("path", {
|
|
19
|
-
"stroke-linecap": "round",
|
|
20
|
-
"stroke-linejoin": "round",
|
|
21
|
-
d: "M15.75 19.5L8.25 12l7.5-7.5"
|
|
22
|
-
})
|
|
23
|
-
]);
|
|
24
|
-
}
|
|
10
|
+
import { _ as rt } from "../_plugin-vue_export-helper-dad06003.js";
|
|
25
11
|
function Fe(u, i) {
|
|
26
12
|
return l(), o("svg", {
|
|
27
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -38,7 +24,7 @@ function Fe(u, i) {
|
|
|
38
24
|
})
|
|
39
25
|
]);
|
|
40
26
|
}
|
|
41
|
-
const
|
|
27
|
+
const lt = {
|
|
42
28
|
field: {
|
|
43
29
|
type: String,
|
|
44
30
|
required: !1
|
|
@@ -91,7 +77,7 @@ const at = {
|
|
|
91
77
|
type: String,
|
|
92
78
|
required: !1
|
|
93
79
|
}
|
|
94
|
-
},
|
|
80
|
+
}, ot = {
|
|
95
81
|
value: {
|
|
96
82
|
type: Array,
|
|
97
83
|
default: () => []
|
|
@@ -228,47 +214,16 @@ const at = {
|
|
|
228
214
|
type: Function,
|
|
229
215
|
required: !1
|
|
230
216
|
}
|
|
231
|
-
},
|
|
217
|
+
}, Pe = Symbol("OneDataTable"), Me = {
|
|
232
218
|
contains: (u, i) => String(u ?? "").toLowerCase().includes(String(i).toLowerCase()),
|
|
233
219
|
startsWith: (u, i) => String(u ?? "").toLowerCase().startsWith(String(i).toLowerCase()),
|
|
234
220
|
endsWith: (u, i) => String(u ?? "").toLowerCase().endsWith(String(i).toLowerCase()),
|
|
235
221
|
equals: (u, i) => String(u ?? "").toLowerCase() === String(i).toLowerCase(),
|
|
236
222
|
notEquals: (u, i) => String(u ?? "").toLowerCase() !== String(i).toLowerCase()
|
|
237
|
-
},
|
|
238
|
-
sm: 640,
|
|
239
|
-
md: 768,
|
|
240
|
-
lg: 1024,
|
|
241
|
-
xl: 1280,
|
|
242
|
-
"2xl": 1536
|
|
243
|
-
};
|
|
244
|
-
function dt(u) {
|
|
245
|
-
const i = E(!1);
|
|
246
|
-
let c = null, s = null;
|
|
247
|
-
const d = () => {
|
|
248
|
-
c && s && c.removeEventListener("change", s), c = null, s = null;
|
|
249
|
-
}, h = (b) => {
|
|
250
|
-
d(), !(typeof window > "u") && (c = window.matchMedia(b), i.value = c.matches, s = (P) => {
|
|
251
|
-
i.value = P.matches;
|
|
252
|
-
}, c.addEventListener("change", s));
|
|
253
|
-
};
|
|
254
|
-
return Ze(() => {
|
|
255
|
-
h(Be(u)), W(
|
|
256
|
-
() => Be(u),
|
|
257
|
-
(b) => {
|
|
258
|
-
h(b);
|
|
259
|
-
}
|
|
260
|
-
);
|
|
261
|
-
}), Oe(() => {
|
|
262
|
-
d();
|
|
263
|
-
}), i;
|
|
264
|
-
}
|
|
265
|
-
function A(u) {
|
|
266
|
-
return dt(`(min-width: ${it[u]}px)`);
|
|
267
|
-
}
|
|
268
|
-
const ut = (u = !0) => {
|
|
223
|
+
}, at = (u = !0) => {
|
|
269
224
|
const i = ["overflow-x-auto", "w-full"];
|
|
270
225
|
return u && i.push("border", "border-gray-100", "rounded"), i;
|
|
271
|
-
},
|
|
226
|
+
}, nt = (u) => {
|
|
272
227
|
const i = ["min-w-full", "text-left", "relative"];
|
|
273
228
|
return u === "sm" ? i.push("text-xs") : u === "lg" ? i.push("text-base") : i.push("text-sm"), i;
|
|
274
229
|
}, de = (u, i, c = "none", s = "default", d) => {
|
|
@@ -295,16 +250,16 @@ const ut = (u = !0) => {
|
|
|
295
250
|
}, ue = (u, i, c = "none", s) => {
|
|
296
251
|
const d = ["border-b", "border-gray-100", "text-gray-900"];
|
|
297
252
|
return s && d.push(s), i && d.push("border-r"), c === "always" ? d.push("border-r", "border-r-gray-200", "last:border-r-0") : (c === "hover" || c === "hover-table") && d.push("border-r", "border-r-transparent", "last:border-r-0"), u === "sm" ? d.push("px-1.5", "py-1") : u === "lg" ? d.push("px-4", "py-3") : d.push("px-2", "py-1.5"), d;
|
|
298
|
-
},
|
|
299
|
-
const
|
|
300
|
-
return d &&
|
|
253
|
+
}, it = (u, i, c, s, d = !1, h = !1) => {
|
|
254
|
+
const v = [];
|
|
255
|
+
return d && v.push("group"), h ? (v.push("opacity-50"), v) : (s ? v.push("bg-primary-25") : u && c && v.push("bg-gray-50"), i && (s ? v.push("hover:bg-primary-25-hover", "transition-colors") : v.push("hover:bg-gray-50", "transition-colors")), v);
|
|
301
256
|
}, te = (u) => {
|
|
302
257
|
const i = ["w-3.5", "h-3.5", "inline-block", "ml-1"];
|
|
303
258
|
return u ? i.push("text-primary-base") : i.push("text-gray-400"), i.push("transition-transform", "duration-200"), i;
|
|
304
259
|
}, fe = (u) => {
|
|
305
260
|
const i = ["text-center"];
|
|
306
261
|
return u === "sm" ? i.push("w-8") : u === "lg" ? i.push("w-14") : i.push("w-12"), i;
|
|
307
|
-
}, qe = (u) => fe(u),
|
|
262
|
+
}, qe = (u) => fe(u), dt = () => [
|
|
308
263
|
"flex",
|
|
309
264
|
"items-center",
|
|
310
265
|
"justify-between",
|
|
@@ -314,16 +269,16 @@ const ut = (u = !0) => {
|
|
|
314
269
|
"border-gray-100",
|
|
315
270
|
"bg-white",
|
|
316
271
|
"text-sm"
|
|
317
|
-
],
|
|
272
|
+
], ut = (u, i, c = !1) => {
|
|
318
273
|
const s = ["rounded", "border", "p-3"];
|
|
319
274
|
return c ? (s.push("bg-white", "border-gray-100", "opacity-50"), s) : (i ? s.push("bg-primary-25", "border-primary-base/20") : s.push("bg-white", "border-gray-100"), u && (i ? s.push("hover:bg-primary-25-hover", "transition-colors") : s.push("hover:bg-gray-50", "transition-colors")), s);
|
|
320
|
-
},
|
|
275
|
+
}, pt = (u) => {
|
|
321
276
|
const i = ["flex", "items-start", "justify-between", "gap-2"];
|
|
322
277
|
return u === "sm" ? i.push("py-0.5") : u === "lg" ? i.push("py-2") : i.push("py-1"), i;
|
|
323
278
|
}, pe = (u) => {
|
|
324
279
|
const i = ["bg-gray-100", "border-b", "border-gray-200"];
|
|
325
280
|
return u === "sm" ? i.push("px-1.5", "py-1") : u === "lg" ? i.push("px-4", "py-2") : i.push("px-2", "py-1.5"), i;
|
|
326
|
-
},
|
|
281
|
+
}, ct = { class: "flex items-center gap-4" }, ft = { class: "text-gray-600" }, yt = ["value"], gt = ["value"], bt = { class: "flex items-center gap-1" }, ht = ["disabled"], vt = { class: "px-2 text-gray-600" }, mt = ["disabled"], kt = /* @__PURE__ */ ye({
|
|
327
282
|
__name: "OneDataTablePaginator",
|
|
328
283
|
props: {
|
|
329
284
|
first: {
|
|
@@ -345,128 +300,128 @@ const ut = (u = !0) => {
|
|
|
345
300
|
},
|
|
346
301
|
emits: ["update:first", "update:rows", "page"],
|
|
347
302
|
setup(u, { emit: i }) {
|
|
348
|
-
const c = u, s = i, d =
|
|
303
|
+
const c = u, s = i, d = Oe(), h = y(() => Math.ceil(c.totalRecords / c.rows)), v = y(() => Math.floor(c.first / c.rows) + 1), j = y(() => c.totalRecords === 0 ? 0 : c.first + 1), ge = y(() => Math.min(c.first + c.rows, c.totalRecords)), be = y(() => c.first === 0), P = y(() => c.first + c.rows >= c.totalRecords), W = y(() => dt()), N = (B) => {
|
|
349
304
|
B < 0 || B >= c.totalRecords || (s("update:first", B), s("page", {
|
|
350
305
|
first: B,
|
|
351
306
|
rows: c.rows,
|
|
352
307
|
page: Math.floor(B / c.rows),
|
|
353
308
|
pageCount: h.value
|
|
354
309
|
}));
|
|
355
|
-
},
|
|
310
|
+
}, U = () => {
|
|
356
311
|
N(Math.max(0, c.first - c.rows));
|
|
357
312
|
}, x = () => {
|
|
358
313
|
N(c.first + c.rows);
|
|
359
|
-
},
|
|
360
|
-
const
|
|
361
|
-
s("update:rows",
|
|
314
|
+
}, Q = (B) => {
|
|
315
|
+
const q = parseInt(B.target.value);
|
|
316
|
+
s("update:rows", q), s("update:first", 0), s("page", {
|
|
362
317
|
first: 0,
|
|
363
|
-
rows:
|
|
318
|
+
rows: q,
|
|
364
319
|
page: 0,
|
|
365
|
-
pageCount: Math.ceil(c.totalRecords /
|
|
320
|
+
pageCount: Math.ceil(c.totalRecords / q)
|
|
366
321
|
});
|
|
367
322
|
};
|
|
368
|
-
return (B,
|
|
369
|
-
class: m(
|
|
323
|
+
return (B, q) => (l(), o("div", {
|
|
324
|
+
class: m(W.value)
|
|
370
325
|
}, [
|
|
371
|
-
f("div",
|
|
372
|
-
f("span",
|
|
326
|
+
f("div", ct, [
|
|
327
|
+
f("span", ft, w(j.value) + "–" + w(ge.value) + " of " + w(u.totalRecords), 1),
|
|
373
328
|
u.rowsPerPageOptions.length > 1 ? (l(), o("select", {
|
|
374
329
|
key: 0,
|
|
375
330
|
value: u.rows,
|
|
376
331
|
class: "border border-gray-300 rounded px-2 py-1 text-sm bg-white focus:outline-none focus:ring-1 focus:ring-primary-glow",
|
|
377
|
-
onChange:
|
|
332
|
+
onChange: Q
|
|
378
333
|
}, [
|
|
379
|
-
(l(!0), o(R, null,
|
|
380
|
-
key:
|
|
381
|
-
value:
|
|
382
|
-
}, w(p(d)("ui.dataTable.perPage", { count:
|
|
383
|
-
], 40,
|
|
334
|
+
(l(!0), o(R, null, T(u.rowsPerPageOptions, ($) => (l(), o("option", {
|
|
335
|
+
key: $,
|
|
336
|
+
value: $
|
|
337
|
+
}, w(p(d)("ui.dataTable.perPage", { count: $ })), 9, gt))), 128))
|
|
338
|
+
], 40, yt)) : g("", !0)
|
|
384
339
|
]),
|
|
385
|
-
f("div",
|
|
340
|
+
f("div", bt, [
|
|
386
341
|
f("button", {
|
|
387
|
-
disabled:
|
|
342
|
+
disabled: be.value,
|
|
388
343
|
class: "p-1.5 rounded hover:bg-gray-100 disabled:opacity-30 disabled:cursor-default transition-colors",
|
|
389
|
-
onClick:
|
|
344
|
+
onClick: U
|
|
390
345
|
}, [
|
|
391
|
-
(l(), k(C(p(
|
|
392
|
-
], 8,
|
|
393
|
-
f("span",
|
|
346
|
+
(l(), k(C(p(tt)), { class: "w-4 h-4 text-gray-600" }))
|
|
347
|
+
], 8, ht),
|
|
348
|
+
f("span", vt, w(v.value) + " / " + w(h.value), 1),
|
|
394
349
|
f("button", {
|
|
395
|
-
disabled:
|
|
350
|
+
disabled: P.value,
|
|
396
351
|
class: "p-1.5 rounded hover:bg-gray-100 disabled:opacity-30 disabled:cursor-default transition-colors",
|
|
397
352
|
onClick: x
|
|
398
353
|
}, [
|
|
399
354
|
(l(), k(C(p(ce)), { class: "w-4 h-4 text-gray-600" }))
|
|
400
|
-
], 8,
|
|
355
|
+
], 8, mt)
|
|
401
356
|
])
|
|
402
357
|
], 2));
|
|
403
358
|
}
|
|
404
|
-
}),
|
|
359
|
+
}), wt = {
|
|
405
360
|
key: 0,
|
|
406
361
|
class: "mb-3"
|
|
407
|
-
},
|
|
362
|
+
}, Ct = { key: 0 }, xt = {
|
|
408
363
|
key: 0,
|
|
409
364
|
class: "w-5 h-5 rounded bg-primary-base flex items-center justify-center text-white"
|
|
410
|
-
},
|
|
365
|
+
}, _t = {
|
|
411
366
|
key: 1,
|
|
412
367
|
class: "w-5 h-5 rounded border border-gray-300 bg-white"
|
|
413
|
-
},
|
|
368
|
+
}, St = ["onClick"], Rt = {
|
|
414
369
|
key: 1,
|
|
415
370
|
class: "inline-flex items-center gap-1"
|
|
416
|
-
},
|
|
371
|
+
}, Bt = { key: 0 }, Ft = ["value", "placeholder", "onInput"], Mt = { key: 1 }, qt = ["onClick"], $t = ["onClick"], Ot = {
|
|
417
372
|
key: 0,
|
|
418
373
|
class: "w-5 h-5 rounded bg-primary-base flex items-center justify-center text-white"
|
|
419
|
-
},
|
|
374
|
+
}, Pt = {
|
|
420
375
|
key: 1,
|
|
421
376
|
class: "w-5 h-5 rounded border border-gray-300 bg-white"
|
|
422
|
-
},
|
|
377
|
+
}, Lt = ["onClick"], Tt = {
|
|
423
378
|
key: 0,
|
|
424
379
|
class: "w-5 h-5 rounded-full bg-primary-base flex items-center justify-center"
|
|
425
|
-
},
|
|
380
|
+
}, jt = {
|
|
426
381
|
key: 1,
|
|
427
382
|
class: "w-5 h-5 rounded-full border border-gray-300 bg-white"
|
|
428
|
-
},
|
|
383
|
+
}, Et = ["disabled", "onClick"], Kt = { key: 0 }, Nt = ["colspan"], zt = { key: 2 }, At = ["colspan"], Vt = { class: "flex items-center justify-center gap-2 text-gray-500" }, Wt = { key: 3 }, Ut = ["colspan"], Ht = { class: "text-gray-400" }, It = { key: 4 }, Gt = ["colspan"], Jt = ["disabled"], Qt = { key: 2 }, Xt = {
|
|
429
384
|
key: 0,
|
|
430
385
|
class: "text-center py-12"
|
|
431
|
-
},
|
|
386
|
+
}, Yt = { class: "flex items-center justify-center gap-2 text-gray-500" }, Zt = {
|
|
432
387
|
key: 1,
|
|
433
388
|
class: "text-center py-12"
|
|
434
|
-
},
|
|
389
|
+
}, Dt = { class: "text-gray-400" }, es = {
|
|
435
390
|
key: 2,
|
|
436
391
|
class: "space-y-2"
|
|
437
|
-
},
|
|
392
|
+
}, ts = {
|
|
438
393
|
key: 0,
|
|
439
394
|
class: "flex items-center gap-2 px-3 py-2"
|
|
440
|
-
},
|
|
395
|
+
}, ss = {
|
|
441
396
|
key: 0,
|
|
442
397
|
class: "w-5 h-5 rounded bg-primary-base flex items-center justify-center text-white"
|
|
443
|
-
},
|
|
398
|
+
}, rs = {
|
|
444
399
|
key: 1,
|
|
445
400
|
class: "w-5 h-5 rounded border border-gray-300 bg-white"
|
|
446
|
-
},
|
|
401
|
+
}, ls = { class: "text-sm text-gray-500" }, os = ["onClick"], as = {
|
|
447
402
|
key: 0,
|
|
448
403
|
class: "flex items-center justify-between mb-2"
|
|
449
|
-
},
|
|
404
|
+
}, ns = { key: 0 }, is = ["onClick"], ds = {
|
|
450
405
|
key: 0,
|
|
451
406
|
class: "w-5 h-5 rounded bg-primary-base flex items-center justify-center text-white"
|
|
452
|
-
},
|
|
407
|
+
}, us = {
|
|
453
408
|
key: 1,
|
|
454
409
|
class: "w-5 h-5 rounded border border-gray-300 bg-white"
|
|
455
|
-
},
|
|
410
|
+
}, ps = ["onClick"], cs = {
|
|
456
411
|
key: 0,
|
|
457
412
|
class: "w-5 h-5 rounded-full bg-primary-base flex items-center justify-center"
|
|
458
|
-
},
|
|
413
|
+
}, fs = {
|
|
459
414
|
key: 1,
|
|
460
415
|
class: "w-5 h-5 rounded-full border border-gray-300 bg-white"
|
|
461
|
-
},
|
|
416
|
+
}, ys = { key: 1 }, gs = ["disabled", "onClick"], bs = { class: "text-gray-500 text-xs font-medium shrink-0" }, hs = { class: "text-right" }, vs = {
|
|
462
417
|
key: 1,
|
|
463
418
|
class: "mt-2 pt-2 border-t border-gray-100"
|
|
464
|
-
},
|
|
419
|
+
}, ms = ["disabled"], ks = {
|
|
465
420
|
key: 4,
|
|
466
421
|
class: "mt-3"
|
|
467
|
-
},
|
|
422
|
+
}, ws = /* @__PURE__ */ ye({
|
|
468
423
|
__name: "OneDataTable",
|
|
469
|
-
props:
|
|
424
|
+
props: ot,
|
|
470
425
|
emits: [
|
|
471
426
|
"update:value",
|
|
472
427
|
"update:selection",
|
|
@@ -487,43 +442,43 @@ const ut = (u = !0) => {
|
|
|
487
442
|
"load:next"
|
|
488
443
|
],
|
|
489
444
|
setup(u, { expose: i, emit: c }) {
|
|
490
|
-
const s = u, d = c, h =
|
|
491
|
-
|
|
492
|
-
|
|
445
|
+
const s = u, d = c, h = $e(), v = Oe(), j = K([]);
|
|
446
|
+
Xe(Pe, { registerColumn: (e) => {
|
|
447
|
+
j.value.push(e);
|
|
493
448
|
}, unregisterColumn: (e) => {
|
|
494
|
-
const r =
|
|
495
|
-
r > -1 &&
|
|
449
|
+
const r = j.value.indexOf(e);
|
|
450
|
+
r > -1 && j.value.splice(r, 1);
|
|
496
451
|
} });
|
|
497
|
-
const
|
|
498
|
-
|
|
452
|
+
const P = K(s.first), W = K(s.rows), N = K(s.sortField), U = K(s.sortOrder);
|
|
453
|
+
I(
|
|
499
454
|
() => s.first,
|
|
500
455
|
(e) => {
|
|
501
|
-
|
|
456
|
+
P.value = e;
|
|
502
457
|
}
|
|
503
|
-
),
|
|
458
|
+
), I(
|
|
504
459
|
() => s.rows,
|
|
505
460
|
(e) => {
|
|
506
|
-
|
|
461
|
+
W.value = e;
|
|
507
462
|
}
|
|
508
|
-
),
|
|
463
|
+
), I(
|
|
509
464
|
() => s.sortField,
|
|
510
465
|
(e) => {
|
|
511
466
|
N.value = e;
|
|
512
467
|
}
|
|
513
|
-
),
|
|
468
|
+
), I(
|
|
514
469
|
() => s.sortOrder,
|
|
515
470
|
(e) => {
|
|
516
|
-
|
|
471
|
+
U.value = e;
|
|
517
472
|
}
|
|
518
473
|
);
|
|
519
|
-
const x =
|
|
520
|
-
|
|
474
|
+
const x = K([...s.value]);
|
|
475
|
+
I(
|
|
521
476
|
() => s.value,
|
|
522
477
|
(e) => {
|
|
523
478
|
x.value = [...e];
|
|
524
479
|
}
|
|
525
480
|
);
|
|
526
|
-
const
|
|
481
|
+
const Q = y(() => P.value), B = y(() => W.value), q = y(() => N.value), $ = y(() => U.value), _ = (e, r) => r ? r.split(".").reduce((t, n) => t == null ? void 0 : t[n], e) : e, he = (e) => s.dataKey ? _(e, s.dataKey) : e, O = (e, r) => e == null || r == null ? e === r : s.dataKey ? _(e, s.dataKey) === _(r, s.dataKey) : e === r, ve = (e, r) => s.dataKey ? _(e, s.dataKey) : r, S = (e) => {
|
|
527
482
|
var r;
|
|
528
483
|
return ((r = s.disabledRows) == null ? void 0 : r.call(s, e)) ?? !1;
|
|
529
484
|
};
|
|
@@ -551,8 +506,8 @@ const ut = (u = !0) => {
|
|
|
551
506
|
const t = [...x.value];
|
|
552
507
|
return t.splice(r, 1), x.value = t, d("update:value", t), !0;
|
|
553
508
|
} });
|
|
554
|
-
const
|
|
555
|
-
() => H.value.length + (
|
|
509
|
+
const F = y(() => j.value.some((e) => e.props.expander)), L = y(() => !!s.selectionMode), X = y(() => s.selectionMode === "multiple"), se = y(() => j.value.filter((e) => !e.props.expander)), Y = y(
|
|
510
|
+
() => H.value.length + (L.value ? 1 : 0) + (F.value ? 1 : 0)
|
|
556
511
|
), me = y(() => {
|
|
557
512
|
var t, n;
|
|
558
513
|
if (s.lazy || !s.filters)
|
|
@@ -562,51 +517,51 @@ const ut = (u = !0) => {
|
|
|
562
517
|
if ((t = r.global) != null && t.value && ((n = s.globalFilterFields) != null && n.length)) {
|
|
563
518
|
const a = r.global.value;
|
|
564
519
|
e = e.filter(
|
|
565
|
-
(
|
|
566
|
-
(ae) =>
|
|
520
|
+
(b) => s.globalFilterFields.some(
|
|
521
|
+
(ae) => Me.contains(_(b, ae), a)
|
|
567
522
|
)
|
|
568
523
|
);
|
|
569
524
|
}
|
|
570
|
-
for (const [a,
|
|
571
|
-
if (a === "global" || !
|
|
525
|
+
for (const [a, b] of Object.entries(r)) {
|
|
526
|
+
if (a === "global" || !b.value)
|
|
572
527
|
continue;
|
|
573
|
-
const ae =
|
|
574
|
-
Re && (e = e.filter((
|
|
528
|
+
const ae = b.matchMode || "contains", Re = Me[ae];
|
|
529
|
+
Re && (e = e.filter((Qe) => Re(_(Qe, a), b.value)));
|
|
575
530
|
}
|
|
576
531
|
return e;
|
|
577
|
-
}),
|
|
532
|
+
}), Le = y(() => {
|
|
578
533
|
const e = me.value;
|
|
579
|
-
return s.lazy ||
|
|
580
|
-
const n = _(r,
|
|
534
|
+
return s.lazy || !q.value || !$.value ? e : [...e].sort((r, t) => {
|
|
535
|
+
const n = _(r, q.value), a = _(t, q.value);
|
|
581
536
|
if (n == null && a == null)
|
|
582
537
|
return 0;
|
|
583
538
|
if (n == null)
|
|
584
539
|
return 1;
|
|
585
540
|
if (a == null)
|
|
586
541
|
return -1;
|
|
587
|
-
let
|
|
588
|
-
return typeof n == "number" && typeof a == "number" ?
|
|
542
|
+
let b;
|
|
543
|
+
return typeof n == "number" && typeof a == "number" ? b = n - a : b = String(n).localeCompare(String(a)), $.value === 1 ? b : -b;
|
|
589
544
|
});
|
|
590
545
|
}), ke = y(() => s.totalRecords ?? me.value.length), z = y(() => {
|
|
591
|
-
const e =
|
|
546
|
+
const e = Le.value;
|
|
592
547
|
if (s.paginator && !s.lazy) {
|
|
593
|
-
const r =
|
|
548
|
+
const r = Q.value, t = r + B.value;
|
|
594
549
|
return e.slice(r, t);
|
|
595
550
|
}
|
|
596
551
|
return e;
|
|
597
|
-
}),
|
|
552
|
+
}), Te = (e) => {
|
|
598
553
|
let r;
|
|
599
|
-
|
|
600
|
-
}, we = (e) => e.props.sortField || e.props.field,
|
|
554
|
+
q.value === e ? $.value === 1 ? r = -1 : $.value === -1 ? r = null : r = 1 : r = 1, N.value = e, U.value = r, d("update:sortField", e), d("update:sortOrder", r), d("sort", { field: e, order: r }), !s.lazy && s.paginator && (P.value = 0, d("update:first", 0));
|
|
555
|
+
}, we = (e) => e.props.sortField || e.props.field, je = (e) => q.value === we(e), E = (e) => s.selection ? s.selectionMode === "single" ? O(s.selection, e) : s.selectionMode === "multiple" ? s.selection.some((r) => O(r, e)) : !1 : !1, Z = (e, r, t) => {
|
|
601
556
|
if (d("row-click", { originalEvent: e, data: r, index: t }), !S(r) && s.selectionMode === "single") {
|
|
602
557
|
const n = O(s.selection, r) ? null : r;
|
|
603
558
|
d("update:selection", n), n ? d("row-select", { originalEvent: e, data: r }) : d("row-unselect", { originalEvent: e, data: r });
|
|
604
559
|
}
|
|
605
560
|
}, re = (e, r) => {
|
|
606
561
|
if (e.stopPropagation(), !S(r) && s.selectionMode === "multiple") {
|
|
607
|
-
const t = s.selection || [], n = t.some((
|
|
562
|
+
const t = s.selection || [], n = t.some((b) => O(b, r));
|
|
608
563
|
let a;
|
|
609
|
-
n ? (a = t.filter((
|
|
564
|
+
n ? (a = t.filter((b) => !O(b, r)), d("row-unselect", { originalEvent: e, data: r })) : (a = [...t, r], d("row-select", { originalEvent: e, data: r })), d("update:selection", a);
|
|
610
565
|
}
|
|
611
566
|
}, le = y(() => {
|
|
612
567
|
if (s.selectionMode !== "multiple" || !s.selection)
|
|
@@ -618,37 +573,37 @@ const ut = (u = !0) => {
|
|
|
618
573
|
const r = s.selection || [], t = z.value.filter((n) => !S(n));
|
|
619
574
|
if (le.value) {
|
|
620
575
|
const n = r.filter(
|
|
621
|
-
(a) => !t.some((
|
|
576
|
+
(a) => !t.some((b) => O(a, b))
|
|
622
577
|
);
|
|
623
578
|
d("update:selection", n);
|
|
624
579
|
} else {
|
|
625
580
|
const n = [...r];
|
|
626
581
|
t.forEach((a) => {
|
|
627
|
-
n.some((
|
|
582
|
+
n.some((b) => O(b, a)) || n.push(a);
|
|
628
583
|
}), d("update:selection", n);
|
|
629
584
|
}
|
|
630
|
-
},
|
|
585
|
+
}, A = (e) => {
|
|
631
586
|
if (!s.expandedRows)
|
|
632
587
|
return !1;
|
|
633
588
|
if (Array.isArray(s.expandedRows))
|
|
634
589
|
return s.expandedRows.some((r) => O(r, e));
|
|
635
590
|
if (s.dataKey) {
|
|
636
|
-
const r = String(
|
|
591
|
+
const r = String(he(e));
|
|
637
592
|
return !!s.expandedRows[r];
|
|
638
593
|
}
|
|
639
594
|
return !1;
|
|
640
595
|
}, oe = (e, r) => {
|
|
641
596
|
if (e.stopPropagation(), S(r))
|
|
642
597
|
return;
|
|
643
|
-
const t =
|
|
598
|
+
const t = A(r);
|
|
644
599
|
if (Array.isArray(s.expandedRows)) {
|
|
645
600
|
let n;
|
|
646
601
|
t ? (n = s.expandedRows.filter((a) => !O(a, r)), d("row-collapse", { originalEvent: e, data: r })) : (n = [...s.expandedRows, r], d("row-expand", { originalEvent: e, data: r })), d("update:expandedRows", n);
|
|
647
602
|
} else if (s.dataKey) {
|
|
648
|
-
const n = String(
|
|
603
|
+
const n = String(he(r)), a = { ...s.expandedRows };
|
|
649
604
|
t ? (delete a[n], d("row-collapse", { originalEvent: e, data: r })) : (a[n] = !0, d("row-expand", { originalEvent: e, data: r })), d("update:expandedRows", a);
|
|
650
605
|
}
|
|
651
|
-
},
|
|
606
|
+
}, Ee = (e, r, t) => {
|
|
652
607
|
var a;
|
|
653
608
|
if (!s.filters)
|
|
654
609
|
return;
|
|
@@ -656,148 +611,148 @@ const ut = (u = !0) => {
|
|
|
656
611
|
...s.filters,
|
|
657
612
|
[e]: { value: r, matchMode: t || ((a = s.filters[e]) == null ? void 0 : a.matchMode) || "contains" }
|
|
658
613
|
};
|
|
659
|
-
d("update:filters", n), s.lazy && d("filter", { filters: n }), s.paginator && (
|
|
614
|
+
d("update:filters", n), s.lazy && d("filter", { filters: n }), s.paginator && (P.value = 0, d("update:first", 0));
|
|
660
615
|
}, xe = (e) => {
|
|
661
616
|
var r;
|
|
662
617
|
return ((r = s.filters) == null ? void 0 : r[e]) || { value: null };
|
|
663
|
-
},
|
|
664
|
-
s.filters && (d("update:filters", { ...s.filters }), s.lazy && d("filter", { filters: s.filters }), s.paginator && (
|
|
665
|
-
},
|
|
666
|
-
|
|
667
|
-
},
|
|
668
|
-
|
|
618
|
+
}, Ke = (e) => () => {
|
|
619
|
+
s.filters && (d("update:filters", { ...s.filters }), s.lazy && d("filter", { filters: s.filters }), s.paginator && (P.value = 0, d("update:first", 0)));
|
|
620
|
+
}, Ne = (e) => {
|
|
621
|
+
P.value = e, d("update:first", e);
|
|
622
|
+
}, ze = (e) => {
|
|
623
|
+
W.value = e, d("update:rows", e);
|
|
669
624
|
}, _e = y(() => {
|
|
670
625
|
const e = [];
|
|
671
626
|
if (s.colWidths) {
|
|
672
627
|
if (typeof s.colWidths == "function") {
|
|
673
628
|
const r = s.colWidths(se.value), t = [];
|
|
674
|
-
return
|
|
629
|
+
return L.value && t.push(""), F.value && t.push(""), [...t, ...r];
|
|
675
630
|
}
|
|
676
631
|
return s.colWidths;
|
|
677
632
|
}
|
|
678
|
-
return
|
|
633
|
+
return L.value && e.push(""), F.value && e.push(""), se.value.forEach((r) => {
|
|
679
634
|
e.push(r.props.width || "");
|
|
680
635
|
}), e;
|
|
681
|
-
}), Se = y(() => _e.value.some((e) => e !== "" && e != null)),
|
|
682
|
-
const e =
|
|
636
|
+
}), Se = y(() => _e.value.some((e) => e !== "" && e != null)), Ae = y(() => s.wrapperClass ? ["overflow-x-auto", "w-full", s.wrapperClass] : s.verticalBorders === "hover-table" ? ["overflow-x-auto", "w-full", "border", "border-transparent", "rounded"] : at(s.wrapperBordered)), Ve = y(() => {
|
|
637
|
+
const e = nt(s.size);
|
|
683
638
|
return s.tableClass && e.push(s.tableClass), s.bordered && e.push("border", "border-gray-100"), e;
|
|
684
|
-
}),
|
|
685
|
-
sm:
|
|
686
|
-
md:
|
|
687
|
-
lg:
|
|
688
|
-
xl:
|
|
689
|
-
"2xl":
|
|
690
|
-
},
|
|
639
|
+
}), We = s.cardBreakpoint ? V(s.cardBreakpoint) : K(!0), Ue = y(() => !!s.cardBreakpoint && !We.value), He = {
|
|
640
|
+
sm: V("sm"),
|
|
641
|
+
md: V("md"),
|
|
642
|
+
lg: V("lg"),
|
|
643
|
+
xl: V("xl"),
|
|
644
|
+
"2xl": V("2xl")
|
|
645
|
+
}, Ie = (e) => {
|
|
691
646
|
var t;
|
|
692
647
|
if (!e.props.visibleFrom)
|
|
693
648
|
return !0;
|
|
694
649
|
const r = e.props.visibleFrom;
|
|
695
|
-
return ((t =
|
|
696
|
-
}, H = y(() => se.value.filter(
|
|
650
|
+
return ((t = He[r]) == null ? void 0 : t.value) ?? !0;
|
|
651
|
+
}, H = y(() => se.value.filter(Ie)), Ge = (e) => (r) => oe(r, e), Je = (e) => (r) => re(r, e);
|
|
697
652
|
return (e, r) => (l(), o("div", null, [
|
|
698
|
-
|
|
699
|
-
|
|
653
|
+
Ye(f("div", null, [
|
|
654
|
+
M(e.$slots, "default", {}, void 0, !0)
|
|
700
655
|
], 512), [
|
|
701
|
-
[
|
|
656
|
+
[Ze, !1]
|
|
702
657
|
]),
|
|
703
|
-
p(h).header ? (l(), o("div",
|
|
704
|
-
|
|
658
|
+
p(h).header ? (l(), o("div", wt, [
|
|
659
|
+
M(e.$slots, "header", {}, void 0, !0)
|
|
705
660
|
])) : g("", !0),
|
|
706
|
-
|
|
707
|
-
e.loading ? (l(), o("div",
|
|
708
|
-
|
|
709
|
-
f("div",
|
|
710
|
-
|
|
711
|
-
f("span", null, w(p(
|
|
661
|
+
Ue.value ? (l(), o("div", Qt, [
|
|
662
|
+
e.loading ? (l(), o("div", Xt, [
|
|
663
|
+
M(e.$slots, "loading", {}, () => [
|
|
664
|
+
f("div", Yt, [
|
|
665
|
+
Be(D, { class: "w-5 h-5" }),
|
|
666
|
+
f("span", null, w(p(v)("ui.dataTable.loading")), 1)
|
|
712
667
|
])
|
|
713
668
|
], !0)
|
|
714
|
-
])) : z.value.length === 0 ? (l(), o("div",
|
|
715
|
-
|
|
716
|
-
f("span",
|
|
669
|
+
])) : z.value.length === 0 ? (l(), o("div", Zt, [
|
|
670
|
+
M(e.$slots, "empty", {}, () => [
|
|
671
|
+
f("span", Dt, w(p(v)("ui.dataTable.noRecords")), 1)
|
|
717
672
|
], !0)
|
|
718
|
-
])) : (l(), o("div",
|
|
719
|
-
X.value ? (l(), o("div",
|
|
673
|
+
])) : (l(), o("div", es, [
|
|
674
|
+
X.value ? (l(), o("div", ts, [
|
|
720
675
|
f("div", {
|
|
721
676
|
class: "cursor-pointer",
|
|
722
677
|
onClick: r[2] || (r[2] = (t) => Ce(t))
|
|
723
678
|
}, [
|
|
724
|
-
le.value ? (l(), o("div",
|
|
679
|
+
le.value ? (l(), o("div", ss, [
|
|
725
680
|
(l(), k(C(p(ee)), { class: "w-3.5 h-3.5" }))
|
|
726
|
-
])) : (l(), o("div",
|
|
681
|
+
])) : (l(), o("div", rs))
|
|
727
682
|
]),
|
|
728
|
-
f("span",
|
|
683
|
+
f("span", ls, w(p(v)("ui.dataTable.selectAll")), 1)
|
|
729
684
|
])) : g("", !0),
|
|
730
|
-
(l(!0), o(R, null,
|
|
685
|
+
(l(!0), o(R, null, T(z.value, (t, n) => (l(), o("div", {
|
|
731
686
|
key: ve(t, n),
|
|
732
687
|
class: m([
|
|
733
|
-
...p(
|
|
688
|
+
...p(ut)(e.hoverable, E(t), S(t)),
|
|
734
689
|
e.selectionMode && !S(t) ? "cursor-pointer" : ""
|
|
735
690
|
]),
|
|
736
691
|
onClick: (a) => Z(a, t, n)
|
|
737
692
|
}, [
|
|
738
|
-
p(h).card ?
|
|
693
|
+
p(h).card ? M(e.$slots, "card", {
|
|
739
694
|
key: 0,
|
|
740
695
|
data: t,
|
|
741
696
|
index: n,
|
|
742
|
-
selected:
|
|
743
|
-
expanded:
|
|
744
|
-
toggleExpansion:
|
|
745
|
-
toggleSelection:
|
|
697
|
+
selected: E(t),
|
|
698
|
+
expanded: F.value && A(t),
|
|
699
|
+
toggleExpansion: Ge(t),
|
|
700
|
+
toggleSelection: Je(t),
|
|
746
701
|
disabled: S(t)
|
|
747
702
|
}, void 0, !0) : (l(), o(R, { key: 1 }, [
|
|
748
|
-
|
|
749
|
-
|
|
703
|
+
L.value || F.value ? (l(), o("div", as, [
|
|
704
|
+
L.value ? (l(), o("div", ns, [
|
|
750
705
|
X.value ? (l(), o("div", {
|
|
751
706
|
key: 0,
|
|
752
707
|
class: "cursor-pointer",
|
|
753
|
-
onClick:
|
|
708
|
+
onClick: J((a) => re(a, t), ["stop"])
|
|
754
709
|
}, [
|
|
755
|
-
|
|
710
|
+
E(t) ? (l(), o("div", ds, [
|
|
756
711
|
(l(), k(C(p(ee)), { class: "w-3.5 h-3.5" }))
|
|
757
|
-
])) : (l(), o("div",
|
|
758
|
-
], 8,
|
|
712
|
+
])) : (l(), o("div", us))
|
|
713
|
+
], 8, is)) : (l(), o("div", {
|
|
759
714
|
key: 1,
|
|
760
715
|
class: "cursor-pointer",
|
|
761
|
-
onClick:
|
|
716
|
+
onClick: J((a) => Z(a, t, n), ["stop"])
|
|
762
717
|
}, [
|
|
763
|
-
|
|
718
|
+
E(t) ? (l(), o("div", cs, [...r[6] || (r[6] = [
|
|
764
719
|
f("div", { class: "w-2 h-2 rounded-full bg-white" }, null, -1)
|
|
765
|
-
])])) : (l(), o("div",
|
|
766
|
-
], 8,
|
|
767
|
-
])) : (l(), o("div",
|
|
768
|
-
|
|
720
|
+
])])) : (l(), o("div", fs))
|
|
721
|
+
], 8, ps))
|
|
722
|
+
])) : (l(), o("div", ys)),
|
|
723
|
+
F.value ? (l(), o("button", {
|
|
769
724
|
key: 2,
|
|
770
725
|
class: "p-1 rounded hover:bg-gray-100 transition-colors disabled:opacity-50 disabled:cursor-default disabled:hover:bg-transparent",
|
|
771
726
|
disabled: S(t),
|
|
772
|
-
onClick:
|
|
727
|
+
onClick: J((a) => oe(a, t), ["stop"])
|
|
773
728
|
}, [
|
|
774
|
-
(l(), k(C(
|
|
775
|
-
], 8,
|
|
729
|
+
(l(), k(C(A(t) ? p(ie) : p(ce)), { class: "w-4 h-4 text-gray-500" }))
|
|
730
|
+
], 8, gs)) : g("", !0)
|
|
776
731
|
])) : g("", !0),
|
|
777
|
-
(l(!0), o(R, null,
|
|
778
|
-
key:
|
|
779
|
-
class: m(p(
|
|
732
|
+
(l(!0), o(R, null, T(H.value, (a, b) => (l(), o("div", {
|
|
733
|
+
key: b,
|
|
734
|
+
class: m(p(pt)(e.size))
|
|
780
735
|
}, [
|
|
781
|
-
f("span",
|
|
782
|
-
f("div",
|
|
736
|
+
f("span", bs, w(a.props.header), 1),
|
|
737
|
+
f("div", hs, [
|
|
783
738
|
a.slots.body ? (l(), k(C(a.slots.body), {
|
|
784
739
|
key: 0,
|
|
785
740
|
data: t,
|
|
786
741
|
field: a.props.field,
|
|
787
742
|
index: n
|
|
788
743
|
}, null, 8, ["data", "field", "index"])) : a.props.field ? (l(), o(R, { key: 1 }, [
|
|
789
|
-
|
|
744
|
+
G(w(_(t, a.props.field)), 1)
|
|
790
745
|
], 64)) : g("", !0)
|
|
791
746
|
])
|
|
792
747
|
], 2))), 128)),
|
|
793
|
-
|
|
794
|
-
|
|
748
|
+
F.value && A(t) ? (l(), o("div", vs, [
|
|
749
|
+
M(e.$slots, "expansion", {
|
|
795
750
|
data: t,
|
|
796
751
|
index: n
|
|
797
752
|
}, void 0, !0)
|
|
798
753
|
])) : g("", !0)
|
|
799
754
|
], 64))
|
|
800
|
-
], 10,
|
|
755
|
+
], 10, os))), 128)),
|
|
801
756
|
e.hasNextPage && !e.loading ? (l(), o("button", {
|
|
802
757
|
key: 1,
|
|
803
758
|
class: "w-full p-2 rounded bg-primary-base bg-opacity-10 text-primary-base text-sm font-medium hover:bg-opacity-20 transition-colors disabled:opacity-50 disabled:cursor-default flex items-center justify-center gap-2",
|
|
@@ -808,30 +763,30 @@ const ut = (u = !0) => {
|
|
|
808
763
|
key: 0,
|
|
809
764
|
class: "w-4 h-4"
|
|
810
765
|
})) : g("", !0),
|
|
811
|
-
|
|
812
|
-
], 8,
|
|
766
|
+
G(" " + w(e.loadMoreLabel || p(v)("ui.dataTable.showMore")), 1)
|
|
767
|
+
], 8, ms)) : g("", !0)
|
|
813
768
|
]))
|
|
814
769
|
])) : (l(), o("div", {
|
|
815
770
|
key: 1,
|
|
816
|
-
class: m([...
|
|
771
|
+
class: m([...Ae.value, e.verticalBorders === "hover-table" ? "vb-hover" : ""])
|
|
817
772
|
}, [
|
|
818
773
|
f("table", {
|
|
819
774
|
class: m([
|
|
820
|
-
...
|
|
775
|
+
...Ve.value,
|
|
821
776
|
e.verticalBorders !== "none" ? "border-separate border-spacing-0" : "border-collapse",
|
|
822
777
|
e.verticalBorders === "hover" ? "vb-hover" : "",
|
|
823
778
|
Se.value ? "table-fixed" : ""
|
|
824
779
|
])
|
|
825
780
|
}, [
|
|
826
|
-
Se.value ? (l(), o("colgroup",
|
|
827
|
-
(l(!0), o(R, null,
|
|
781
|
+
Se.value ? (l(), o("colgroup", Ct, [
|
|
782
|
+
(l(!0), o(R, null, T(_e.value, (t, n) => (l(), o("col", {
|
|
828
783
|
key: `col-${n}`,
|
|
829
784
|
style: ne(t ? { width: t } : {})
|
|
830
785
|
}, null, 4))), 128))
|
|
831
786
|
])) : g("", !0),
|
|
832
787
|
f("thead", null, [
|
|
833
788
|
f("tr", null, [
|
|
834
|
-
|
|
789
|
+
L.value ? (l(), o("th", {
|
|
835
790
|
key: 0,
|
|
836
791
|
class: m([
|
|
837
792
|
...p(de)(e.size, !1, e.verticalBorders, e.headerVariant, e.headerBgClass),
|
|
@@ -843,34 +798,34 @@ const ut = (u = !0) => {
|
|
|
843
798
|
class: "flex items-center justify-center cursor-pointer",
|
|
844
799
|
onClick: r[0] || (r[0] = (t) => Ce(t))
|
|
845
800
|
}, [
|
|
846
|
-
le.value ? (l(), o("div",
|
|
801
|
+
le.value ? (l(), o("div", xt, [
|
|
847
802
|
(l(), k(C(p(ee)), { class: "w-3.5 h-3.5" }))
|
|
848
|
-
])) : (l(), o("div",
|
|
803
|
+
])) : (l(), o("div", _t))
|
|
849
804
|
])) : g("", !0)
|
|
850
805
|
], 2)) : g("", !0),
|
|
851
|
-
|
|
806
|
+
F.value ? (l(), o("th", {
|
|
852
807
|
key: 1,
|
|
853
808
|
class: m([
|
|
854
809
|
...p(de)(e.size, !1, e.verticalBorders, e.headerVariant, e.headerBgClass),
|
|
855
810
|
...p(qe)(e.size)
|
|
856
811
|
])
|
|
857
812
|
}, null, 2)) : g("", !0),
|
|
858
|
-
(l(!0), o(R, null,
|
|
813
|
+
(l(!0), o(R, null, T(H.value, (t, n) => (l(), o("th", {
|
|
859
814
|
key: n,
|
|
860
815
|
class: m([
|
|
861
816
|
...p(de)(e.size, t.props.sortable, e.verticalBorders, e.headerVariant, e.headerBgClass),
|
|
862
817
|
t.props.headerClass
|
|
863
818
|
]),
|
|
864
819
|
style: ne([t.props.headerStyle, t.props.width ? { width: t.props.width } : {}]),
|
|
865
|
-
onClick: (a) => t.props.sortable ?
|
|
820
|
+
onClick: (a) => t.props.sortable ? Te(we(t)) : void 0
|
|
866
821
|
}, [
|
|
867
|
-
t.slots.header ? (l(), k(C(t.slots.header), { key: 0 })) : (l(), o("span",
|
|
868
|
-
|
|
822
|
+
t.slots.header ? (l(), k(C(t.slots.header), { key: 0 })) : (l(), o("span", Rt, [
|
|
823
|
+
G(w(t.props.header) + " ", 1),
|
|
869
824
|
t.props.sortable ? (l(), o(R, { key: 0 }, [
|
|
870
|
-
|
|
825
|
+
je(t) ? $.value === 1 ? (l(), k(C(p(st)), {
|
|
871
826
|
key: 1,
|
|
872
827
|
class: m(p(te)(!0))
|
|
873
|
-
}, null, 8, ["class"])) :
|
|
828
|
+
}, null, 8, ["class"])) : $.value === -1 ? (l(), k(C(p(ie)), {
|
|
874
829
|
key: 2,
|
|
875
830
|
class: m(p(te)(!0))
|
|
876
831
|
}, null, 8, ["class"])) : (l(), k(C(p(Fe)), {
|
|
@@ -882,18 +837,18 @@ const ut = (u = !0) => {
|
|
|
882
837
|
}, null, 8, ["class"]))
|
|
883
838
|
], 64)) : g("", !0)
|
|
884
839
|
]))
|
|
885
|
-
], 14,
|
|
840
|
+
], 14, St))), 128))
|
|
886
841
|
]),
|
|
887
|
-
e.filterDisplay === "row" ? (l(), o("tr",
|
|
888
|
-
|
|
842
|
+
e.filterDisplay === "row" ? (l(), o("tr", Bt, [
|
|
843
|
+
L.value ? (l(), o("th", {
|
|
889
844
|
key: 0,
|
|
890
845
|
class: m(p(pe)(e.size))
|
|
891
846
|
}, null, 2)) : g("", !0),
|
|
892
|
-
|
|
847
|
+
F.value ? (l(), o("th", {
|
|
893
848
|
key: 1,
|
|
894
849
|
class: m(p(pe)(e.size))
|
|
895
850
|
}, null, 2)) : g("", !0),
|
|
896
|
-
(l(!0), o(R, null,
|
|
851
|
+
(l(!0), o(R, null, T(H.value, (t, n) => (l(), o("th", {
|
|
897
852
|
key: `filter-${n}`,
|
|
898
853
|
class: m(p(pe)(e.size))
|
|
899
854
|
}, [
|
|
@@ -902,7 +857,7 @@ const ut = (u = !0) => {
|
|
|
902
857
|
filterModel: xe(
|
|
903
858
|
t.props.filterField || t.props.field
|
|
904
859
|
),
|
|
905
|
-
filterCallback:
|
|
860
|
+
filterCallback: Ke(
|
|
906
861
|
t.props.filterField || t.props.field
|
|
907
862
|
)
|
|
908
863
|
}, null, 8, ["filterModel", "filterCallback"])) : t.props.filterable && t.props.field ? (l(), o("input", {
|
|
@@ -913,25 +868,25 @@ const ut = (u = !0) => {
|
|
|
913
868
|
).value || "",
|
|
914
869
|
class: "w-full border border-gray-300 rounded px-2 py-1 text-sm focus:outline-none focus:ring-1 focus:ring-primary-glow",
|
|
915
870
|
placeholder: `Filter ${t.props.header || t.props.field}`,
|
|
916
|
-
onInput: (a) =>
|
|
871
|
+
onInput: (a) => Ee(
|
|
917
872
|
t.props.filterField || t.props.field,
|
|
918
873
|
a.target.value
|
|
919
874
|
)
|
|
920
|
-
}, null, 40,
|
|
875
|
+
}, null, 40, Ft)) : g("", !0)
|
|
921
876
|
], 2))), 128))
|
|
922
877
|
])) : g("", !0)
|
|
923
878
|
]),
|
|
924
|
-
!e.loading && z.value.length > 0 ? (l(), o("tbody",
|
|
925
|
-
(l(!0), o(R, null,
|
|
879
|
+
!e.loading && z.value.length > 0 ? (l(), o("tbody", Mt, [
|
|
880
|
+
(l(!0), o(R, null, T(z.value, (t, n) => (l(), o(R, {
|
|
926
881
|
key: ve(t, n)
|
|
927
882
|
}, [
|
|
928
883
|
f("tr", {
|
|
929
884
|
class: m([
|
|
930
|
-
...p(
|
|
885
|
+
...p(it)(
|
|
931
886
|
e.striped,
|
|
932
887
|
e.hoverable,
|
|
933
888
|
n % 2 === 1,
|
|
934
|
-
|
|
889
|
+
E(t),
|
|
935
890
|
!1,
|
|
936
891
|
S(t)
|
|
937
892
|
),
|
|
@@ -939,7 +894,7 @@ const ut = (u = !0) => {
|
|
|
939
894
|
]),
|
|
940
895
|
onClick: (a) => Z(a, t, n)
|
|
941
896
|
}, [
|
|
942
|
-
|
|
897
|
+
L.value ? (l(), o("td", {
|
|
943
898
|
key: 0,
|
|
944
899
|
class: m([
|
|
945
900
|
...p(ue)(e.size, e.bordered, e.verticalBorders, e.bodyBgClass),
|
|
@@ -949,22 +904,22 @@ const ut = (u = !0) => {
|
|
|
949
904
|
X.value ? (l(), o("div", {
|
|
950
905
|
key: 0,
|
|
951
906
|
class: "flex items-center justify-center cursor-pointer",
|
|
952
|
-
onClick:
|
|
907
|
+
onClick: J((a) => re(a, t), ["stop"])
|
|
953
908
|
}, [
|
|
954
|
-
|
|
909
|
+
E(t) ? (l(), o("div", Ot, [
|
|
955
910
|
(l(), k(C(p(ee)), { class: "w-3.5 h-3.5" }))
|
|
956
|
-
])) : (l(), o("div",
|
|
957
|
-
], 8,
|
|
911
|
+
])) : (l(), o("div", Pt))
|
|
912
|
+
], 8, $t)) : (l(), o("div", {
|
|
958
913
|
key: 1,
|
|
959
914
|
class: "flex items-center justify-center cursor-pointer",
|
|
960
|
-
onClick:
|
|
915
|
+
onClick: J((a) => Z(a, t, n), ["stop"])
|
|
961
916
|
}, [
|
|
962
|
-
|
|
917
|
+
E(t) ? (l(), o("div", Tt, [...r[5] || (r[5] = [
|
|
963
918
|
f("div", { class: "w-2 h-2 rounded-full bg-white" }, null, -1)
|
|
964
|
-
])])) : (l(), o("div",
|
|
965
|
-
], 8,
|
|
919
|
+
])])) : (l(), o("div", jt))
|
|
920
|
+
], 8, Lt))
|
|
966
921
|
], 2)) : g("", !0),
|
|
967
|
-
|
|
922
|
+
F.value ? (l(), o("td", {
|
|
968
923
|
key: 1,
|
|
969
924
|
class: m([
|
|
970
925
|
...p(ue)(e.size, e.bordered, e.verticalBorders, e.bodyBgClass),
|
|
@@ -976,11 +931,11 @@ const ut = (u = !0) => {
|
|
|
976
931
|
disabled: S(t),
|
|
977
932
|
onClick: (a) => oe(a, t)
|
|
978
933
|
}, [
|
|
979
|
-
(l(), k(C(
|
|
980
|
-
], 8,
|
|
934
|
+
(l(), k(C(A(t) ? p(ie) : p(ce)), { class: "w-4 h-4 text-gray-500" }))
|
|
935
|
+
], 8, Et)
|
|
981
936
|
], 2)) : g("", !0),
|
|
982
|
-
(l(!0), o(R, null,
|
|
983
|
-
key:
|
|
937
|
+
(l(!0), o(R, null, T(H.value, (a, b) => (l(), o("td", {
|
|
938
|
+
key: b,
|
|
984
939
|
class: m([
|
|
985
940
|
...p(ue)(e.size, e.bordered, e.verticalBorders, e.bodyBgClass),
|
|
986
941
|
a.props.bodyClass
|
|
@@ -994,49 +949,49 @@ const ut = (u = !0) => {
|
|
|
994
949
|
index: n,
|
|
995
950
|
disabled: S(t)
|
|
996
951
|
}, null, 8, ["data", "field", "index", "disabled"])) : a.props.field ? (l(), o(R, { key: 1 }, [
|
|
997
|
-
|
|
952
|
+
G(w(_(t, a.props.field)), 1)
|
|
998
953
|
], 64)) : g("", !0)
|
|
999
954
|
], 6))), 128))
|
|
1000
|
-
], 10,
|
|
1001
|
-
|
|
955
|
+
], 10, qt),
|
|
956
|
+
F.value && A(t) ? (l(), o("tr", Kt, [
|
|
1002
957
|
f("td", {
|
|
1003
958
|
colspan: Y.value,
|
|
1004
959
|
class: "p-0"
|
|
1005
960
|
}, [
|
|
1006
|
-
|
|
961
|
+
M(e.$slots, "expansion", {
|
|
1007
962
|
data: t,
|
|
1008
963
|
index: n
|
|
1009
964
|
}, void 0, !0)
|
|
1010
|
-
], 8,
|
|
965
|
+
], 8, Nt)
|
|
1011
966
|
])) : g("", !0)
|
|
1012
967
|
], 64))), 128))
|
|
1013
|
-
])) : e.loading ? (l(), o("tbody",
|
|
968
|
+
])) : e.loading ? (l(), o("tbody", zt, [
|
|
1014
969
|
f("tr", null, [
|
|
1015
970
|
f("td", {
|
|
1016
971
|
colspan: Y.value,
|
|
1017
972
|
class: "text-center py-12"
|
|
1018
973
|
}, [
|
|
1019
|
-
|
|
1020
|
-
f("div",
|
|
1021
|
-
|
|
1022
|
-
f("span", null, w(p(
|
|
974
|
+
M(e.$slots, "loading", {}, () => [
|
|
975
|
+
f("div", Vt, [
|
|
976
|
+
Be(D, { class: "w-5 h-5" }),
|
|
977
|
+
f("span", null, w(p(v)("ui.dataTable.loading")), 1)
|
|
1023
978
|
])
|
|
1024
979
|
], !0)
|
|
1025
|
-
], 8,
|
|
980
|
+
], 8, At)
|
|
1026
981
|
])
|
|
1027
|
-
])) : (l(), o("tbody",
|
|
982
|
+
])) : (l(), o("tbody", Wt, [
|
|
1028
983
|
f("tr", null, [
|
|
1029
984
|
f("td", {
|
|
1030
985
|
colspan: Y.value,
|
|
1031
986
|
class: "text-center py-12"
|
|
1032
987
|
}, [
|
|
1033
|
-
|
|
1034
|
-
f("span",
|
|
988
|
+
M(e.$slots, "empty", {}, () => [
|
|
989
|
+
f("span", Ht, w(p(v)("ui.dataTable.noRecords")), 1)
|
|
1035
990
|
], !0)
|
|
1036
|
-
], 8,
|
|
991
|
+
], 8, Ut)
|
|
1037
992
|
])
|
|
1038
993
|
])),
|
|
1039
|
-
e.hasNextPage && !e.loading ? (l(), o("tfoot",
|
|
994
|
+
e.hasNextPage && !e.loading ? (l(), o("tfoot", It, [
|
|
1040
995
|
f("tr", null, [
|
|
1041
996
|
f("td", {
|
|
1042
997
|
colspan: Y.value,
|
|
@@ -1051,44 +1006,44 @@ const ut = (u = !0) => {
|
|
|
1051
1006
|
key: 0,
|
|
1052
1007
|
class: "w-4 h-4"
|
|
1053
1008
|
})) : g("", !0),
|
|
1054
|
-
|
|
1055
|
-
], 8,
|
|
1056
|
-
], 8,
|
|
1009
|
+
G(" " + w(e.loadMoreLabel || p(v)("ui.dataTable.showMore")), 1)
|
|
1010
|
+
], 8, Jt)
|
|
1011
|
+
], 8, Gt)
|
|
1057
1012
|
])
|
|
1058
1013
|
])) : g("", !0)
|
|
1059
1014
|
], 2)
|
|
1060
1015
|
], 2)),
|
|
1061
|
-
e.paginator && ke.value > 0 ? (l(), k(
|
|
1016
|
+
e.paginator && ke.value > 0 ? (l(), k(kt, {
|
|
1062
1017
|
key: 3,
|
|
1063
|
-
first:
|
|
1018
|
+
first: Q.value,
|
|
1064
1019
|
rows: B.value,
|
|
1065
1020
|
"total-records": ke.value,
|
|
1066
1021
|
"rows-per-page-options": e.rowsPerPageOptions,
|
|
1067
|
-
"onUpdate:first":
|
|
1068
|
-
"onUpdate:rows":
|
|
1022
|
+
"onUpdate:first": Ne,
|
|
1023
|
+
"onUpdate:rows": ze,
|
|
1069
1024
|
onPage: r[4] || (r[4] = (t) => d("page", t))
|
|
1070
1025
|
}, null, 8, ["first", "rows", "total-records", "rows-per-page-options"])) : g("", !0),
|
|
1071
|
-
p(h).footer ? (l(), o("div",
|
|
1072
|
-
|
|
1026
|
+
p(h).footer ? (l(), o("div", ks, [
|
|
1027
|
+
M(e.$slots, "footer", {}, void 0, !0)
|
|
1073
1028
|
])) : g("", !0)
|
|
1074
1029
|
]));
|
|
1075
1030
|
}
|
|
1076
1031
|
});
|
|
1077
|
-
const
|
|
1032
|
+
const Ts = /* @__PURE__ */ rt(ws, [["__scopeId", "data-v-9359fb0b"]]), js = /* @__PURE__ */ ye({
|
|
1078
1033
|
__name: "OneColumn",
|
|
1079
|
-
props:
|
|
1034
|
+
props: lt,
|
|
1080
1035
|
setup(u) {
|
|
1081
|
-
const i = u, c =
|
|
1036
|
+
const i = u, c = $e(), s = De(Pe), d = {
|
|
1082
1037
|
props: i,
|
|
1083
1038
|
slots: c
|
|
1084
1039
|
};
|
|
1085
|
-
return s && s.registerColumn(d),
|
|
1040
|
+
return s && s.registerColumn(d), et(() => {
|
|
1086
1041
|
s && s.unregisterColumn(d);
|
|
1087
|
-
}), (h,
|
|
1042
|
+
}), (h, v) => M(h.$slots, "default");
|
|
1088
1043
|
}
|
|
1089
1044
|
});
|
|
1090
1045
|
export {
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1046
|
+
js as OneColumn,
|
|
1047
|
+
Ts as OneDataTable,
|
|
1048
|
+
kt as OneDataTablePaginator
|
|
1094
1049
|
};
|