@orchidui/core 1.99.0 → 1.100.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/DataDisplay/AccountVerificationContent/OcAccountVerificationContent.js +1 -1
- package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
- package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
- package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
- package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
- package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
- package/dist/DataDisplay/NewTable/OcNewTable.js +1 -1
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
- package/dist/DataDisplay/OnboardingRecap/OcOnboardingRecap.js +1 -1
- package/dist/DataDisplay/Overview/OcOverview.js +1 -1
- package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
- package/dist/DataDisplay/RowItemData/OcRowItemData.js +1 -1
- package/dist/DataDisplay/Table/OcTable.js +1 -1
- package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
- package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
- package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
- package/dist/Disclosure/OnboardingProduct/OnboardingProductOption.js +1 -1
- package/dist/Disclosure/Steps/OcSteps.js +1 -1
- package/dist/Disclosure/Tabs/Tabs.js +1 -1
- package/dist/Disclosure/Variants/OcVariants.js +1 -1
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
- package/dist/Elements/Box/OcBox.js +1 -1
- package/dist/Elements/Checklist/OcChecklist.js +1 -1
- package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
- package/dist/Elements/Header/OcHeader.js +1 -1
- package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
- package/dist/Elements/Sidebar/OcSidebar.js +2 -2
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/TopBanner/OcTopBanner.js +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +1 -1
- package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
- package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
- package/dist/Form/BaseInput/OcBaseInput.js +1 -1
- package/dist/Form/Button/OcButton.js +1 -1
- package/dist/Form/Calendar/OcCalendar.js +1 -1
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +1 -1
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
- package/dist/Form/Criteria/OcCriteria.js +1 -1
- package/dist/Form/Cropper/OcCropper.js +1 -1
- package/dist/Form/DatePicker/OcDatePicker.js +1 -1
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
- package/dist/Form/Input/OcInput.js +1 -1
- package/dist/Form/LinkInput/OcLinkInput.js +1 -1
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
- package/dist/Form/Radio/OcRadio.js +1 -1
- package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
- package/dist/Form/RangeInput/OcRangeInput.js +1 -1
- package/dist/Form/SectionItem/OcSectionItem.js +1 -1
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/Slider/OcSlider.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcAccountSetupProgress-C9rnZvfj.js → OcAccountSetupProgress-fTA45QKt.js} +1 -1
- package/dist/{OcComplexCalendar-C2XucS7C.js → OcComplexCalendar-BwFQNEAh.js} +1 -1
- package/dist/{OcComplexDatePicker-DLV-q1BB.js → OcComplexDatePicker-BZXRwTqC.js} +1 -1
- package/dist/{OcCropper-2-hX5LQZ.js → OcCropper-m-TxiHsp.js} +1 -1
- package/dist/{OcDataTable-CCM7iLFd.js → OcDataTable-DPwZCrNW.js} +220 -211
- package/dist/{OcDraggableList-CA-wRMAh.js → OcDraggableList-C7Gr4QKY.js} +1 -1
- package/dist/{OcEmojiPicker-DFSKdC63.js → OcEmojiPicker-DFv9K_sW.js} +1 -1
- package/dist/{OcFilterForm-PI_10uB7.js → OcFilterForm-B6DDioJ5.js} +1 -1
- package/dist/{OcFilterSearch-9_N39knk.js → OcFilterSearch-DgstuIRK.js} +1 -1
- package/dist/{OcFilterSearchFor-DnQV0beL.js → OcFilterSearchFor-CRBFdflB.js} +1 -1
- package/dist/{OcModalCropper-DLQWHv5c.js → OcModalCropper-BOtA6wdE.js} +2 -2
- package/dist/OcSort-CdCqVYLU.js +98 -0
- package/dist/{OcTimePicker-CFMFwKw-.js → OcTimePicker-C4MNrXpI.js} +1 -1
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
- package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
- package/dist/Overlay/Modal/OcModal.js +1 -1
- package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
- package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
- package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
- package/dist/{SubPlanCard-DJaPa_xX.js → SubPlanCard-E8zL9B-D.js} +1 -1
- package/dist/{ThumbnailSection-C9OvA18j.js → ThumbnailSection-Dnd2K49p.js} +1 -1
- package/dist/{ThumbnailTheme-9hRpzTqQ.js → ThumbnailTheme-D2ur0y7U.js} +1 -1
- package/dist/{index-BFI9sA-S.js → index-I7kkCShO.js} +53 -52
- package/dist/index.js +49 -48
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { aG as Pe, B as Ae, C as
|
|
1
|
+
import { ref as C, onMounted as Ce, createBlock as D, openBlock as o, unref as r, withCtx as y, createVNode as N, createElementVNode as q, createElementBlock as $, createCommentVNode as p, mergeProps as we, Fragment as ie, renderList as se, normalizeClass as re, toDisplayString as xe, computed as L, watch as $e, toRaw as Ze, nextTick as He, renderSlot as E, resolveDynamicComponent as _e, createSlots as el, normalizeProps as Se, guardReactiveProps as Oe } from "vue";
|
|
2
|
+
import { aG as Pe, B as Ae, C as ll, E as al, Q as tl, a4 as sl, aR as ol, aS as ul, aT as il, aU as rl, K as nl, L as Ve, j as dl } from "./index-I7kkCShO.js";
|
|
3
3
|
import { V as Fe } from "./vue-draggable-next.esm-bundler-QQ8zx__3.js";
|
|
4
|
-
import { getFromLocalStorage as je, formatHeadersFromLocalStorage as Ke, formatHeadersToLocalStorage as
|
|
4
|
+
import { getFromLocalStorage as je, formatHeadersFromLocalStorage as Ke, formatHeadersToLocalStorage as vl, setInLocalStorage as cl } from "./DataTable/utils/editColumnsUtils.js";
|
|
5
5
|
import { _ as Ee } from "./OcIcon-CUKFUeB7.js";
|
|
6
|
-
import { formatFilterDisplay as
|
|
7
|
-
import { formatCustomItemsPerPageOptions as
|
|
6
|
+
import { formatFilterDisplay as ml, clearAllFilters as pl } from "./DataTable/utils/filterUtils.js";
|
|
7
|
+
import { formatCustomItemsPerPageOptions as fl, getItemsPerPageOptions as yl } from "./DataTable/utils/paginationUtils.js";
|
|
8
8
|
import "./dayjs.min-7xVZzECu.js";
|
|
9
|
-
const
|
|
9
|
+
const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "gap-y-2 flex flex-col border-b pb-3 border-oc-gray-200"
|
|
12
|
-
},
|
|
12
|
+
}, kl = { class: "gap-y-2 flex flex-col" }, hl = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "flex items-center bg-white justify-between h-[26px]"
|
|
15
|
-
},
|
|
15
|
+
}, wl = { class: "flex items-center w-full gap-x-3" }, xl = { class: "truncate w-full max-w-[160px]" }, $l = {
|
|
16
16
|
__name: "ColumnEdit",
|
|
17
17
|
props: {
|
|
18
18
|
/** Initial active/visible state overrides for columns. Keyed by column key. */
|
|
@@ -39,55 +39,55 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
|
|
|
39
39
|
/** Column order or visibility changed. Payload: `{ fixedHeaders, activeHeaders, isOnMount }`. */
|
|
40
40
|
"update-order": []
|
|
41
41
|
},
|
|
42
|
-
setup(k, { emit:
|
|
43
|
-
const j =
|
|
42
|
+
setup(k, { emit: ue }) {
|
|
43
|
+
const j = ue, h = k, f = C([]), S = C([]), O = C(!1), g = {
|
|
44
44
|
handle: ".drag-el",
|
|
45
45
|
filter: ".is-disabled",
|
|
46
46
|
group: "headers",
|
|
47
47
|
animation: 500,
|
|
48
48
|
forceFallback: !1,
|
|
49
49
|
move: (l) => l.to.dataset.activeHeaders ? !0 : !!l.draggedContext.futureIndex,
|
|
50
|
-
"onUpdate:modelValue": () =>
|
|
51
|
-
},
|
|
50
|
+
"onUpdate:modelValue": () => J()
|
|
51
|
+
}, J = (l = !1) => {
|
|
52
52
|
S.value = S.value.map((d) => ({
|
|
53
53
|
...d,
|
|
54
54
|
isActive: !0
|
|
55
55
|
})), j("update-order", {
|
|
56
56
|
fixedHeaders: S.value,
|
|
57
|
-
activeHeaders:
|
|
57
|
+
activeHeaders: f.value,
|
|
58
58
|
isOnMount: l
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
return Ce(() => {
|
|
62
62
|
const l = je(h.localKey), { fixed: d, active: v } = Ke(l, h.headers, h.localKey);
|
|
63
|
-
S.value = d || h.headers.slice(0, 1),
|
|
64
|
-
var t,
|
|
63
|
+
S.value = d || h.headers.slice(0, 1), f.value = v || h.headers.slice(1).map((b) => {
|
|
64
|
+
var t, I, P;
|
|
65
65
|
return {
|
|
66
|
-
...
|
|
67
|
-
isActive: ((
|
|
66
|
+
...b,
|
|
67
|
+
isActive: ((P = (I = (t = h.options) == null ? void 0 : t.active) == null ? void 0 : I.find((Q) => Q.key === b.key)) == null ? void 0 : P.isActive) ?? !0
|
|
68
68
|
};
|
|
69
|
-
}),
|
|
70
|
-
}), (l, d) => (o(),
|
|
69
|
+
}), J(!0);
|
|
70
|
+
}), (l, d) => (o(), D(r(Pe), {
|
|
71
71
|
modelValue: O.value,
|
|
72
72
|
"onUpdate:modelValue": d[3] || (d[3] = (v) => O.value = v),
|
|
73
73
|
"is-attach-to-body": ""
|
|
74
74
|
}, {
|
|
75
|
-
menu:
|
|
76
|
-
|
|
77
|
-
S.value.length ? (o(), $("div",
|
|
78
|
-
d[4] || (d[4] =
|
|
79
|
-
|
|
75
|
+
menu: y(() => [
|
|
76
|
+
q("div", gl, [
|
|
77
|
+
S.value.length ? (o(), $("div", bl, [
|
|
78
|
+
d[4] || (d[4] = q("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
|
79
|
+
N(r(Fe), we({
|
|
80
80
|
key: "key",
|
|
81
81
|
modelValue: S.value,
|
|
82
82
|
"onUpdate:modelValue": d[0] || (d[0] = (v) => S.value = v)
|
|
83
|
-
},
|
|
84
|
-
default:
|
|
85
|
-
(o(!0), $(
|
|
83
|
+
}, g), {
|
|
84
|
+
default: y(() => [
|
|
85
|
+
(o(!0), $(ie, null, se(S.value, (v, b) => (o(), $("div", {
|
|
86
86
|
key: v.key,
|
|
87
|
-
class:
|
|
87
|
+
class: re(["flex items-center justify-between h-[26px]", b ? "" : "is-disabled"])
|
|
88
88
|
}, [
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
q("span", null, xe(v.label), 1),
|
|
90
|
+
b ? (o(), D(r(Ee), {
|
|
91
91
|
key: 0,
|
|
92
92
|
width: "18",
|
|
93
93
|
height: "18",
|
|
@@ -99,30 +99,30 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
|
|
|
99
99
|
_: 1
|
|
100
100
|
}, 16, ["modelValue"])
|
|
101
101
|
])) : p("", !0),
|
|
102
|
-
|
|
103
|
-
d[5] || (d[5] =
|
|
104
|
-
|
|
102
|
+
q("div", kl, [
|
|
103
|
+
d[5] || (d[5] = q("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
|
104
|
+
N(r(Fe), we({
|
|
105
105
|
key: "key",
|
|
106
|
-
modelValue:
|
|
107
|
-
"onUpdate:modelValue": d[2] || (d[2] = (v) =>
|
|
108
|
-
},
|
|
109
|
-
default:
|
|
110
|
-
(o(!0), $(
|
|
106
|
+
modelValue: f.value,
|
|
107
|
+
"onUpdate:modelValue": d[2] || (d[2] = (v) => f.value = v)
|
|
108
|
+
}, g, { "data-active-headers": "true" }), {
|
|
109
|
+
default: y(() => [
|
|
110
|
+
(o(!0), $(ie, null, se(f.value, (v) => (o(), $(ie, {
|
|
111
111
|
key: v.key
|
|
112
112
|
}, [
|
|
113
|
-
v.key !== "actions" ? (o(), $("div",
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
v.key !== "actions" ? (o(), $("div", hl, [
|
|
114
|
+
q("div", wl, [
|
|
115
|
+
N(r(ll), {
|
|
116
116
|
modelValue: v.isActive,
|
|
117
117
|
"onUpdate:modelValue": [
|
|
118
|
-
(
|
|
119
|
-
d[1] || (d[1] = (
|
|
118
|
+
(b) => v.isActive = b,
|
|
119
|
+
d[1] || (d[1] = (b) => J())
|
|
120
120
|
],
|
|
121
121
|
class: "!w-fit"
|
|
122
122
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
123
|
-
|
|
123
|
+
q("div", xl, xe(v.label), 1)
|
|
124
124
|
]),
|
|
125
|
-
|
|
125
|
+
f.value.length > 1 ? (o(), D(r(Ee), {
|
|
126
126
|
key: 0,
|
|
127
127
|
width: "18",
|
|
128
128
|
height: "18",
|
|
@@ -137,8 +137,8 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
|
|
|
137
137
|
])
|
|
138
138
|
])
|
|
139
139
|
]),
|
|
140
|
-
default:
|
|
141
|
-
|
|
140
|
+
default: y(() => [
|
|
141
|
+
N(r(Ae), {
|
|
142
142
|
label: "Edit Column",
|
|
143
143
|
"left-icon": "setting",
|
|
144
144
|
size: "small",
|
|
@@ -149,22 +149,22 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
|
|
|
149
149
|
_: 1
|
|
150
150
|
}, 8, ["modelValue"]));
|
|
151
151
|
}
|
|
152
|
-
},
|
|
152
|
+
}, Sl = { class: "relative flex flex-col gap-9" }, Ol = {
|
|
153
153
|
key: 0,
|
|
154
154
|
class: "flex items-center px-4 min-h-[44px]"
|
|
155
|
-
},
|
|
155
|
+
}, Vl = {
|
|
156
156
|
key: 0,
|
|
157
157
|
class: "absolute flex items-center gap-5 left-5"
|
|
158
|
-
},
|
|
158
|
+
}, Fl = {
|
|
159
159
|
key: 1,
|
|
160
160
|
class: "absolute flex gap-3 left-5"
|
|
161
|
-
},
|
|
161
|
+
}, El = {
|
|
162
162
|
key: 1,
|
|
163
163
|
class: "flex justify-center w-full gap-5 md:justify-start"
|
|
164
|
-
},
|
|
164
|
+
}, Cl = {
|
|
165
165
|
key: 2,
|
|
166
166
|
class: "items-center hidden md:flex"
|
|
167
|
-
},
|
|
167
|
+
}, Il = {
|
|
168
168
|
__name: "OcDataTable",
|
|
169
169
|
props: {
|
|
170
170
|
/** Show skeleton loading rows while data is being fetched. */
|
|
@@ -190,6 +190,7 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
|
|
|
190
190
|
* `filterOptions` (optional) — filter toolbar config:
|
|
191
191
|
* - `search` — `{ key, options? }` enables search bar
|
|
192
192
|
* - `form` — FormBuilder jsonForm array rendered in the filter dropdown
|
|
193
|
+
* - `sort` — `{ key, options }` renders the Sort control; `key` is the filterData key holding `{ field, direction }`, `options` is the `{ label, value }` field list
|
|
193
194
|
* - `tabs` — `{ key, options }` tab bar above the table
|
|
194
195
|
* - `per_page` — `{ key }` controls which filter key holds items-per-page
|
|
195
196
|
* - `columnEdit` — `{ key, localStorageKey }` enables column show/hide editor
|
|
@@ -272,15 +273,15 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
|
|
|
272
273
|
/** Table has mounted and column order is initialized. */
|
|
273
274
|
"on-table-ready": []
|
|
274
275
|
},
|
|
275
|
-
setup(k, { emit:
|
|
276
|
-
var
|
|
277
|
-
const j = k, h =
|
|
276
|
+
setup(k, { emit: ue }) {
|
|
277
|
+
var ce, me, pe, fe, ye, ge, be, ke, he;
|
|
278
|
+
const j = k, h = ue, f = L(() => {
|
|
278
279
|
var e;
|
|
279
280
|
return (e = j.options) == null ? void 0 : e.cursor;
|
|
280
|
-
}), S =
|
|
281
|
+
}), S = C(), O = L(() => {
|
|
281
282
|
var e;
|
|
282
283
|
return (e = j.options) == null ? void 0 : e.tableOptions;
|
|
283
|
-
}),
|
|
284
|
+
}), g = C({
|
|
284
285
|
total: 0,
|
|
285
286
|
last_page: 1
|
|
286
287
|
});
|
|
@@ -290,31 +291,31 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
|
|
|
290
291
|
return (e = j.options) == null ? void 0 : e.pagination;
|
|
291
292
|
},
|
|
292
293
|
(e) => {
|
|
293
|
-
|
|
294
|
+
g.value = e;
|
|
294
295
|
},
|
|
295
296
|
{ deep: !0, immediate: !0 }
|
|
296
297
|
);
|
|
297
|
-
const
|
|
298
|
+
const J = L(() => {
|
|
298
299
|
var a;
|
|
299
300
|
return {
|
|
300
301
|
...O.value,
|
|
301
302
|
headers: S.value ? S.value.map((u) => {
|
|
302
|
-
var
|
|
303
|
-
return u.class = ((i = (
|
|
303
|
+
var n, i;
|
|
304
|
+
return u.class = ((i = (n = O.value) == null ? void 0 : n.headers.find((c) => c.key === u.key)) == null ? void 0 : i.class) ?? "", u;
|
|
304
305
|
}).filter((u) => u.isActive) : (a = O.value) == null ? void 0 : a.headers.filter((u) => Re(u.key))
|
|
305
306
|
};
|
|
306
|
-
}), l =
|
|
307
|
+
}), l = L(() => {
|
|
307
308
|
var e;
|
|
308
309
|
return (e = j.options) == null ? void 0 : e.filterOptions;
|
|
309
|
-
}), d =
|
|
310
|
+
}), d = L(() => {
|
|
310
311
|
var e;
|
|
311
312
|
return (e = j.options) == null ? void 0 : e.hidePerPageDropdown;
|
|
312
|
-
}), v =
|
|
313
|
+
}), v = L(() => {
|
|
313
314
|
var e;
|
|
314
|
-
return ((e =
|
|
315
|
-
}),
|
|
316
|
-
!
|
|
317
|
-
const t =
|
|
315
|
+
return ((e = g.value) == null ? void 0 : e.last_page) === 1;
|
|
316
|
+
}), b = JSON.parse(JSON.stringify(Ze(j.filter)));
|
|
317
|
+
!b && g.value ? b.page = 1 : !b && f && (b.cursor = "");
|
|
318
|
+
const t = C(b);
|
|
318
319
|
$e(
|
|
319
320
|
() => j.filter,
|
|
320
321
|
(e) => {
|
|
@@ -322,97 +323,99 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
|
|
|
322
323
|
},
|
|
323
324
|
{ deep: !0 }
|
|
324
325
|
);
|
|
325
|
-
const
|
|
326
|
-
(fe = (
|
|
327
|
-
),
|
|
326
|
+
const I = C(!1), P = C(t.value[(me = (ce = l.value) == null ? void 0 : ce.tabs) == null ? void 0 : me.key]), Q = C(t.value.page), G = C(
|
|
327
|
+
(fe = (pe = l.value) == null ? void 0 : pe.per_page) != null && fe.key ? t.value[(ge = (ye = l.value) == null ? void 0 : ye.per_page) == null ? void 0 : ge.key] : t.value.per_page
|
|
328
|
+
), ne = ((he = t.value[t.value.selectedSearchOption || ((ke = (be = l.value) == null ? void 0 : be.search) == null ? void 0 : ke.key)]) == null ? void 0 : he.trim()) ?? "", R = C(ne ? ne.split(",") : []), de = C(!1), Ue = L(
|
|
328
329
|
() => {
|
|
329
330
|
var e;
|
|
330
|
-
return
|
|
331
|
+
return fl((e = j.options) == null ? void 0 : e.perPageOptions);
|
|
331
332
|
}
|
|
332
|
-
),
|
|
333
|
+
), Te = L(() => yl(Ue.value, g.value)), De = L(() => {
|
|
333
334
|
var e;
|
|
334
335
|
return ((e = j.selected) == null ? void 0 : e.length) > 0;
|
|
335
|
-
}),
|
|
336
|
-
!e.trim() || !t.value.selectedSearchOption &&
|
|
336
|
+
}), Le = (e) => {
|
|
337
|
+
!e.trim() || !t.value.selectedSearchOption && R.value.includes(e) || (R.value = [e], A(), h("search-query-changed", e));
|
|
337
338
|
}, Ie = (e) => {
|
|
338
|
-
|
|
339
|
-
}, Ne =
|
|
340
|
-
var a, u,
|
|
341
|
-
return ((w = (c = (i = (
|
|
339
|
+
R.value = R.value.filter((a) => a !== e), A();
|
|
340
|
+
}, Ne = L(() => ml(t.value, l.value)), Re = (e) => {
|
|
341
|
+
var a, u, n, i, c, w;
|
|
342
|
+
return ((w = (c = (i = (n = t.value) == null ? void 0 : n[(u = (a = l.value) == null ? void 0 : a.columnEdit) == null ? void 0 : u.key]) == null ? void 0 : i.active) == null ? void 0 : c.find((V) => V.key === e)) == null ? void 0 : w.isActive) ?? !0;
|
|
342
343
|
}, Be = ({ fixedHeaders: e, activeHeaders: a, isOnMount: u }) => {
|
|
343
|
-
var
|
|
344
|
-
if (t.value[(i = (
|
|
345
|
-
const F =
|
|
346
|
-
|
|
344
|
+
var n, i, c, w, V, K, s, U;
|
|
345
|
+
if (t.value[(i = (n = l.value) == null ? void 0 : n.columnEdit) == null ? void 0 : i.key] || (t.value[(w = (c = l.value) == null ? void 0 : c.columnEdit) == null ? void 0 : w.key] = {}), t.value[(K = (V = l.value) == null ? void 0 : V.columnEdit) == null ? void 0 : K.key].fixed = e, t.value[(U = (s = l.value) == null ? void 0 : s.columnEdit) == null ? void 0 : U.key].active = a, S.value = [...e, ...a], !u) {
|
|
346
|
+
const F = vl(e, a);
|
|
347
|
+
cl(l.value.columnEdit.localStorageKey, F);
|
|
347
348
|
}
|
|
348
349
|
h("columns-changed", a);
|
|
349
350
|
}, Qe = () => {
|
|
350
|
-
var e, a, u,
|
|
351
|
+
var e, a, u, n, i, c;
|
|
351
352
|
if ((a = (e = l.value) == null ? void 0 : e.columnEdit) != null && a.localStorageKey) {
|
|
352
353
|
const w = je(l.value.columnEdit.localStorageKey);
|
|
353
354
|
if (w) {
|
|
354
|
-
const { fixed: V, active:
|
|
355
|
+
const { fixed: V, active: K } = Ke(
|
|
355
356
|
w,
|
|
356
357
|
O.value.headers,
|
|
357
358
|
l.value.columnEdit.localStorageKey
|
|
358
359
|
);
|
|
359
|
-
t.value[(
|
|
360
|
+
t.value[(n = (u = l.value) == null ? void 0 : u.columnEdit) == null ? void 0 : n.key].fixed = V, t.value[(c = (i = l.value) == null ? void 0 : i.columnEdit) == null ? void 0 : c.key].active = K, S.value = [...V, ...K];
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
363
|
}, ze = (e) => {
|
|
363
364
|
t.value.selectedSearchOption = e;
|
|
364
365
|
}, qe = () => {
|
|
365
|
-
var a, u,
|
|
366
|
-
|
|
367
|
-
const e = (u = (a = l.value) == null ? void 0 : a.tabs) != null && u.filter_name ?
|
|
368
|
-
t.value =
|
|
366
|
+
var a, u, n, i;
|
|
367
|
+
R.value = [], P.value = "";
|
|
368
|
+
const e = (u = (a = l.value) == null ? void 0 : a.tabs) != null && u.filter_name ? b[(i = (n = l.value) == null ? void 0 : n.tabs) == null ? void 0 : i.key] : P.value;
|
|
369
|
+
t.value = pl(
|
|
369
370
|
t.value,
|
|
370
371
|
l.value,
|
|
371
|
-
|
|
372
|
+
G.value,
|
|
372
373
|
e
|
|
373
|
-
),
|
|
374
|
+
), A();
|
|
374
375
|
}, Je = () => {
|
|
375
|
-
|
|
376
|
-
},
|
|
377
|
-
var w, V,
|
|
378
|
-
|
|
379
|
-
var
|
|
380
|
-
(
|
|
381
|
-
}), t.value[((W = t.value) == null ? void 0 : W.selectedSearchOption) || ((Z = (Y = (X = l.value.search) == null ? void 0 : X.options) == null ? void 0 : Y[0]) == null ? void 0 : Z.value) || l.value.search.key] =
|
|
382
|
-
Array.isArray(t.value[
|
|
376
|
+
A(null, Q.value);
|
|
377
|
+
}, A = (e = null, a = !1, u = "", n = !1, i = !1) => {
|
|
378
|
+
var w, V, K, s, U, F, T, M, B, W, X, Y, Z, H, _, ee, le, ae, te;
|
|
379
|
+
g.value && !a && (Q.value = 1), g.value ? t.value.page = Q.value : t.value.cursor = u, (w = l.value) != null && w.per_page ? t.value[l.value.per_page.key] = G.value : t.value.per_page = G.value, (V = l.value) != null && V.tabs && i && (t.value[l.value.tabs.key] = P.value), (s = (K = l.value) == null ? void 0 : K.tabs) != null && s.filter_name && (i ? t.value[(F = (U = l.value) == null ? void 0 : U.tabs) == null ? void 0 : F.filter_name] = null : e && (P.value = null)), (T = l.value) != null && T.search && ((B = (M = l.value.search) == null ? void 0 : M.options) != null && B.length ? (Object.keys(t.value).forEach((x) => {
|
|
380
|
+
var z;
|
|
381
|
+
(z = l.value.search.options) != null && z.map((m) => m.value).includes(x) && delete t.value[x];
|
|
382
|
+
}), t.value[((W = t.value) == null ? void 0 : W.selectedSearchOption) || ((Z = (Y = (X = l.value.search) == null ? void 0 : X.options) == null ? void 0 : Y[0]) == null ? void 0 : Z.value) || l.value.search.key] = R.value.join()) : t.value[l.value.search.key] = R.value.join()), e && (I.value = !1, t.value = { ...t.value, ...e }, Object.keys(t.value).forEach((x) => {
|
|
383
|
+
Array.isArray(t.value[x]) && t.value[x].length === 0 && delete t.value[x];
|
|
383
384
|
}));
|
|
384
385
|
let c = (_ = (H = l.value) == null ? void 0 : H.tabs) == null ? void 0 : _.key;
|
|
385
|
-
if (c &&
|
|
386
|
-
const
|
|
387
|
-
(
|
|
388
|
-
var
|
|
389
|
-
return ((
|
|
386
|
+
if (c && P.value !== t.value[c] && !((le = (ee = l.value) == null ? void 0 : ee.tabs) != null && le.filter_name)) {
|
|
387
|
+
const x = (te = (ae = l.value.tabs) == null ? void 0 : ae.options) == null ? void 0 : te.find(
|
|
388
|
+
(z) => {
|
|
389
|
+
var m, oe;
|
|
390
|
+
return ((m = z.value) == null ? void 0 : m.toString()) === ((oe = t.value[c]) == null ? void 0 : oe.toString());
|
|
390
391
|
}
|
|
391
392
|
);
|
|
392
|
-
|
|
393
|
+
x != null && x.value && (P.value = x.value, i || A(null, !1, "", !1, !0));
|
|
393
394
|
}
|
|
394
|
-
|
|
395
|
-
},
|
|
396
|
-
|
|
395
|
+
Me(n);
|
|
396
|
+
}, Ge = (e) => {
|
|
397
|
+
t.value[l.value.sort.key] = e, A();
|
|
398
|
+
}, ve = C(null), Me = (e = !1) => {
|
|
399
|
+
clearTimeout(ve.value), ve.value = setTimeout(() => {
|
|
397
400
|
h("update:filter", { ...t.value }, e), h("apply-filter", { ...t.value }, e);
|
|
398
401
|
}, 50);
|
|
399
|
-
},
|
|
400
|
-
(a === l.value.tabs.key || a === "tabs") && (
|
|
402
|
+
}, We = (e, a) => {
|
|
403
|
+
(a === l.value.tabs.key || a === "tabs") && (P.value = ""), A(e), h("filter-removed", a);
|
|
401
404
|
};
|
|
402
405
|
return Ce(() => {
|
|
403
|
-
Qe(),
|
|
406
|
+
Qe(), He(() => {
|
|
404
407
|
h("on-table-ready");
|
|
405
408
|
});
|
|
406
409
|
}), (e, a) => {
|
|
407
|
-
var u,
|
|
408
|
-
return o(), $("div",
|
|
409
|
-
|
|
410
|
+
var u, n, i, c, w, V, K;
|
|
411
|
+
return o(), $("div", Sl, [
|
|
412
|
+
J.value ? (o(), D(_e(k.isNewTable ? r(al) : r(tl)), {
|
|
410
413
|
key: 0,
|
|
411
414
|
selected: k.selected,
|
|
412
415
|
"row-key": k.rowKey,
|
|
413
|
-
options:
|
|
416
|
+
options: J.value,
|
|
414
417
|
"is-loading": k.isLoading,
|
|
415
|
-
"loading-rows":
|
|
418
|
+
"loading-rows": G.value,
|
|
416
419
|
"row-class": k.rowClass,
|
|
417
420
|
"row-link": k.rowLink,
|
|
418
421
|
"selected-index": k.selectedIndex,
|
|
@@ -422,103 +425,103 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
|
|
|
422
425
|
"onUpdate:selected": a[8] || (a[8] = (s) => e.$emit("update:selected", s)),
|
|
423
426
|
"onClick:row": a[9] || (a[9] = (s) => e.$emit("click:row", s)),
|
|
424
427
|
"onHover:cell": a[10] || (a[10] = (s) => e.$emit("hover:cell", s))
|
|
425
|
-
},
|
|
426
|
-
after:
|
|
427
|
-
|
|
428
|
+
}, el({
|
|
429
|
+
after: y(() => [
|
|
430
|
+
E(e.$slots, "after")
|
|
428
431
|
]),
|
|
429
|
-
empty:
|
|
430
|
-
|
|
432
|
+
empty: y(() => [
|
|
433
|
+
E(e.$slots, "empty")
|
|
431
434
|
]),
|
|
432
|
-
"table-header":
|
|
433
|
-
|
|
435
|
+
"table-header": y((s) => [
|
|
436
|
+
E(e.$slots, "table-header", Se(Oe(s)))
|
|
434
437
|
]),
|
|
435
|
-
"table-body":
|
|
436
|
-
|
|
438
|
+
"table-body": y((s) => [
|
|
439
|
+
E(e.$slots, "table-body", Se(Oe(s)))
|
|
437
440
|
]),
|
|
438
|
-
"after-rows":
|
|
439
|
-
|
|
441
|
+
"after-rows": y(() => [
|
|
442
|
+
E(e.$slots, "after-rows")
|
|
440
443
|
]),
|
|
441
444
|
_: 2
|
|
442
445
|
}, [
|
|
443
|
-
e.$slots.before || (u = l.value) != null && u.search || (
|
|
446
|
+
e.$slots.before || (u = l.value) != null && u.search || (n = l.value) != null && n.form || (i = l.value) != null && i.tabs || (c = l.value) != null && c.sort ? {
|
|
444
447
|
name: "before",
|
|
445
|
-
fn:
|
|
446
|
-
var s,
|
|
448
|
+
fn: y(() => {
|
|
449
|
+
var s, U, F, T, M;
|
|
447
450
|
return [
|
|
448
|
-
|
|
449
|
-
(s = l.value) != null && s.search || (
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
])) : (o(), $("div",
|
|
453
|
-
(
|
|
451
|
+
E(e.$slots, "before"),
|
|
452
|
+
(s = l.value) != null && s.search || (U = l.value) != null && U.form || (F = l.value) != null && F.tabs || (T = l.value) != null && T.sort ? (o(), $("div", Ol, [
|
|
453
|
+
De.value ? (o(), $("div", Vl, [
|
|
454
|
+
E(e.$slots, "bulk-actions", { selectedRows: k.selected })
|
|
455
|
+
])) : (o(), $("div", Fl, [
|
|
456
|
+
(M = l.value) != null && M.tabs ? (o(), D(r(sl), {
|
|
454
457
|
key: 0,
|
|
455
|
-
modelValue:
|
|
458
|
+
modelValue: P.value,
|
|
456
459
|
"onUpdate:modelValue": [
|
|
457
|
-
a[0] || (a[0] = (
|
|
458
|
-
a[1] || (a[1] = (
|
|
460
|
+
a[0] || (a[0] = (B) => P.value = B),
|
|
461
|
+
a[1] || (a[1] = (B) => A(null, !1, "", !1, !0))
|
|
459
462
|
],
|
|
460
463
|
"is-disabled": k.isLoading,
|
|
461
464
|
tabs: l.value.tabs.options,
|
|
462
465
|
variant: "pills"
|
|
463
466
|
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : p("", !0)
|
|
464
467
|
])),
|
|
465
|
-
|
|
466
|
-
var
|
|
468
|
+
E(e.$slots, "filter-options", {}, () => {
|
|
469
|
+
var B, W, X, Y, Z, H, _, ee, le, ae, te, x, z;
|
|
467
470
|
return [
|
|
468
|
-
(
|
|
471
|
+
(B = l.value) != null && B.search || (W = l.value) != null && W.form || (X = l.value) != null && X.sort || (Y = l.value) != null && Y.columnEdit ? (o(), $("div", {
|
|
469
472
|
key: 0,
|
|
470
|
-
class:
|
|
473
|
+
class: re([
|
|
471
474
|
"flex gap-3 absolute ml-auto items-center bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
|
472
|
-
l.value ?
|
|
475
|
+
l.value ? de.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
|
473
476
|
])
|
|
474
477
|
}, [
|
|
475
|
-
(
|
|
478
|
+
(Z = l.value) != null && Z.search ? (o(), D(r(ol), {
|
|
476
479
|
key: 0,
|
|
477
480
|
"is-search-only": !l.value.tabs || l.value.isSearchOnly,
|
|
478
|
-
"search-options": ((
|
|
479
|
-
"selected-option": (((
|
|
480
|
-
onAddQuery:
|
|
481
|
-
onToggle: a[2] || (a[2] = (
|
|
481
|
+
"search-options": ((H = l.value.search) == null ? void 0 : H.options) ?? [],
|
|
482
|
+
"selected-option": (((_ = t.value) == null ? void 0 : _.selectedSearchOption) || ((ae = (le = (ee = l.value.search) == null ? void 0 : ee.options) == null ? void 0 : le[0]) == null ? void 0 : ae.value)) ?? "keywords",
|
|
483
|
+
onAddQuery: Le,
|
|
484
|
+
onToggle: a[2] || (a[2] = (m) => de.value = m),
|
|
482
485
|
onChangeSearchKey: ze
|
|
483
486
|
}, null, 8, ["is-search-only", "search-options", "selected-option"])) : p("", !0),
|
|
484
|
-
(
|
|
487
|
+
(te = l.value) != null && te.form ? (o(), D(r(Pe), {
|
|
485
488
|
key: 1,
|
|
486
|
-
modelValue:
|
|
489
|
+
modelValue: I.value,
|
|
487
490
|
"onUpdate:modelValue": [
|
|
488
|
-
a[6] || (a[6] = (
|
|
489
|
-
a[7] || (a[7] = (
|
|
491
|
+
a[6] || (a[6] = (m) => I.value = m),
|
|
492
|
+
a[7] || (a[7] = (m) => e.$emit("filter-open", m))
|
|
490
493
|
],
|
|
491
494
|
distance: 9,
|
|
492
495
|
placement: "bottom-end",
|
|
493
496
|
"is-attach-to-body": "",
|
|
494
497
|
"max-menu-height": 500
|
|
495
498
|
}, {
|
|
496
|
-
menu:
|
|
497
|
-
|
|
499
|
+
menu: y(() => [
|
|
500
|
+
I.value ? (o(), D(r(ul), {
|
|
498
501
|
key: 0,
|
|
499
502
|
id: k.id,
|
|
500
503
|
"json-form": l.value.form ?? [],
|
|
501
504
|
grid: l.value.grid ?? null,
|
|
502
505
|
values: t.value,
|
|
503
506
|
actions: l.value.actions,
|
|
504
|
-
onApplyFilter: a[3] || (a[3] = (
|
|
505
|
-
onFilterFieldsChanged: a[4] || (a[4] = (
|
|
506
|
-
onCancel: a[5] || (a[5] = (
|
|
507
|
+
onApplyFilter: a[3] || (a[3] = (m) => A(m)),
|
|
508
|
+
onFilterFieldsChanged: a[4] || (a[4] = (m) => h("filter-fields-changed", m)),
|
|
509
|
+
onCancel: a[5] || (a[5] = (m) => I.value = !1)
|
|
507
510
|
}, {
|
|
508
|
-
default:
|
|
509
|
-
|
|
510
|
-
errors:
|
|
511
|
-
values:
|
|
512
|
-
jsonForm:
|
|
513
|
-
updateFilter:
|
|
511
|
+
default: y(({ errors: m, values: oe, jsonForm: Xe, updateForm: Ye }) => [
|
|
512
|
+
E(e.$slots, "custom-filter-form", {
|
|
513
|
+
errors: m,
|
|
514
|
+
values: oe,
|
|
515
|
+
jsonForm: Xe,
|
|
516
|
+
updateFilter: Ye
|
|
514
517
|
})
|
|
515
518
|
]),
|
|
516
519
|
_: 3
|
|
517
520
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : p("", !0)
|
|
518
521
|
]),
|
|
519
|
-
default:
|
|
520
|
-
|
|
521
|
-
"is-active":
|
|
522
|
+
default: y(() => [
|
|
523
|
+
N(r(Ae), {
|
|
524
|
+
"is-active": I.value,
|
|
522
525
|
variant: "secondary",
|
|
523
526
|
"left-icon": "filter",
|
|
524
527
|
size: "small",
|
|
@@ -528,10 +531,16 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
|
|
|
528
531
|
]),
|
|
529
532
|
_: 3
|
|
530
533
|
}, 8, ["modelValue"])) : p("", !0),
|
|
531
|
-
l.value.
|
|
534
|
+
(x = l.value) != null && x.sort ? (o(), D(r(il), {
|
|
532
535
|
key: 2,
|
|
536
|
+
"sort-options": l.value.sort.options ?? [],
|
|
537
|
+
"model-value": t.value[l.value.sort.key],
|
|
538
|
+
"onUpdate:modelValue": Ge
|
|
539
|
+
}, null, 8, ["sort-options", "model-value"])) : p("", !0),
|
|
540
|
+
l.value.columnEdit ? (o(), D($l, {
|
|
541
|
+
key: 3,
|
|
533
542
|
options: t.value.columnEdit,
|
|
534
|
-
headers: ((
|
|
543
|
+
headers: ((z = O.value) == null ? void 0 : z.headers) || [],
|
|
535
544
|
"local-key": l.value.columnEdit.localStorageKey,
|
|
536
545
|
onUpdateOrder: Be
|
|
537
546
|
}, null, 8, ["options", "headers", "local-key"])) : p("", !0)
|
|
@@ -539,85 +548,85 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
|
|
|
539
548
|
];
|
|
540
549
|
})
|
|
541
550
|
])) : p("", !0),
|
|
542
|
-
|
|
551
|
+
N(r(rl), {
|
|
543
552
|
filters: Ne.value,
|
|
544
|
-
queries:
|
|
553
|
+
queries: R.value,
|
|
545
554
|
class: "border-t border-oc-gray-200",
|
|
546
555
|
onRemoveQuery: Ie,
|
|
547
556
|
onRemoveAll: qe,
|
|
548
|
-
onRemoveFilter:
|
|
557
|
+
onRemoveFilter: We
|
|
549
558
|
}, null, 8, ["filters", "queries"])
|
|
550
559
|
];
|
|
551
560
|
}),
|
|
552
561
|
key: "0"
|
|
553
562
|
} : void 0,
|
|
554
|
-
|
|
563
|
+
se((w = O.value) == null ? void 0 : w.headers, (s, U) => ({
|
|
555
564
|
name: s.key,
|
|
556
|
-
fn:
|
|
557
|
-
|
|
558
|
-
data:
|
|
559
|
-
item:
|
|
565
|
+
fn: y(({ data: F, item: T }) => [
|
|
566
|
+
E(e.$slots, s.key, {
|
|
567
|
+
data: F,
|
|
568
|
+
item: T
|
|
560
569
|
})
|
|
561
570
|
])
|
|
562
571
|
})),
|
|
563
|
-
|
|
572
|
+
se((V = O.value) == null ? void 0 : V.headers, (s, U) => ({
|
|
564
573
|
name: `header-${s.key}-tooltip`,
|
|
565
|
-
fn:
|
|
566
|
-
|
|
567
|
-
data:
|
|
568
|
-
item:
|
|
574
|
+
fn: y(({ data: F, item: T }) => [
|
|
575
|
+
E(e.$slots, `header-${s.key}-tooltip`, {
|
|
576
|
+
data: F,
|
|
577
|
+
item: T
|
|
569
578
|
})
|
|
570
579
|
])
|
|
571
580
|
})),
|
|
572
|
-
|
|
581
|
+
se((K = O.value) == null ? void 0 : K.headers, (s, U) => ({
|
|
573
582
|
name: `header-${s.key}-left-tooltip`,
|
|
574
|
-
fn:
|
|
575
|
-
|
|
576
|
-
data:
|
|
577
|
-
item:
|
|
583
|
+
fn: y(({ data: F, item: T }) => [
|
|
584
|
+
E(e.$slots, `header-${s.key}-left-tooltip`, {
|
|
585
|
+
data: F,
|
|
586
|
+
item: T
|
|
578
587
|
})
|
|
579
588
|
])
|
|
580
589
|
}))
|
|
581
590
|
]), 1064, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "selected-index", "disabled-rows", "is-sticky", "is-borderless"])) : p("", !0),
|
|
582
|
-
|
|
583
|
-
|
|
591
|
+
E(e.$slots, "before-pagination"),
|
|
592
|
+
g.value || f.value ? (o(), $("div", {
|
|
584
593
|
key: 1,
|
|
585
|
-
class:
|
|
594
|
+
class: re(["flex items-center gap-3", g.value && g.value.last_page === 1 ? "justify-end" : ""])
|
|
586
595
|
}, [
|
|
587
|
-
|
|
596
|
+
g.value && !v.value ? (o(), D(r(nl), {
|
|
588
597
|
key: 0,
|
|
589
|
-
modelValue:
|
|
598
|
+
modelValue: Q.value,
|
|
590
599
|
"onUpdate:modelValue": [
|
|
591
|
-
a[11] || (a[11] = (s) =>
|
|
600
|
+
a[11] || (a[11] = (s) => Q.value = s),
|
|
592
601
|
Je
|
|
593
602
|
],
|
|
594
603
|
class: "justify-center text-[13px]",
|
|
595
|
-
"max-page":
|
|
596
|
-
strategy:
|
|
604
|
+
"max-page": g.value.last_page,
|
|
605
|
+
strategy: g.value.strategy,
|
|
597
606
|
"total-visible": "5"
|
|
598
607
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : p("", !0),
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
disabled: !
|
|
602
|
-
onClick: a[12] || (a[12] = (s) =>
|
|
608
|
+
f.value ? (o(), $("div", El, [
|
|
609
|
+
N(r(Ve), {
|
|
610
|
+
disabled: !f.value.prev,
|
|
611
|
+
onClick: a[12] || (a[12] = (s) => f.value.prev ? A(null, !1, f.value.prev) : null)
|
|
603
612
|
}, null, 8, ["disabled"]),
|
|
604
|
-
|
|
605
|
-
disabled: !
|
|
613
|
+
N(r(Ve), {
|
|
614
|
+
disabled: !f.value.next,
|
|
606
615
|
"is-next": "",
|
|
607
|
-
onClick: a[13] || (a[13] = (s) =>
|
|
616
|
+
onClick: a[13] || (a[13] = (s) => f.value.next ? A(null, !1, f.value.next) : null)
|
|
608
617
|
}, null, 8, ["disabled"])
|
|
609
618
|
])) : p("", !0),
|
|
610
|
-
d.value ? p("", !0) : (o(), $("div",
|
|
611
|
-
|
|
612
|
-
modelValue:
|
|
619
|
+
d.value ? p("", !0) : (o(), $("div", Cl, [
|
|
620
|
+
N(r(dl), {
|
|
621
|
+
modelValue: G.value,
|
|
613
622
|
"onUpdate:modelValue": [
|
|
614
|
-
a[14] || (a[14] = (s) =>
|
|
615
|
-
a[15] || (a[15] = (s) =>
|
|
623
|
+
a[14] || (a[14] = (s) => G.value = s),
|
|
624
|
+
a[15] || (a[15] = (s) => A(null))
|
|
616
625
|
],
|
|
617
626
|
label: "Item per page",
|
|
618
627
|
"is-inline-label": "",
|
|
619
628
|
"popper-options": { placement: "auto" },
|
|
620
|
-
options:
|
|
629
|
+
options: Te.value,
|
|
621
630
|
"select-text-class": "!text-[13px]"
|
|
622
631
|
}, null, 8, ["modelValue", "options"])
|
|
623
632
|
]))
|
|
@@ -627,5 +636,5 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
|
|
|
627
636
|
}
|
|
628
637
|
};
|
|
629
638
|
export {
|
|
630
|
-
|
|
639
|
+
Il as default
|
|
631
640
|
};
|