@fewangsit/wangsvue-fats 1.0.1-rc.0 → 1.0.1-rc.11
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/animation/index.es.js +50 -0
- package/approverinfo/index.es.js +6 -6
- package/assetinfo/index.es.js +160 -2
- package/backgroundimagecropper/{BackgroundImageCropper.es.js → index.es.js} +1 -1
- package/badge/index.es.js +7 -7
- package/badgegroup/index.es.js +7 -7
- package/basecalendar/{BaseCalendar.es.js → index.es.js} +6 -6
- package/basetree/index.es.js +14 -14
- package/breadcrumb/index.es.js +6 -6
- package/button/index.es.js +118 -2
- package/buttonaddbyscan/index.es.js +13 -13
- package/buttonbulkaction/index.es.js +184 -2
- package/buttoncopy/index.es.js +6 -6
- package/buttondownload/index.es.js +15 -15
- package/buttonfilter/index.es.js +6 -6
- package/buttonradio/index.es.js +2 -2
- package/buttonscan/index.es.js +414 -2
- package/buttonsearch/index.es.js +9 -9
- package/buttonsearchbyscan/index.es.js +7 -7
- package/buttonselecttree/index.es.js +22 -22
- package/buttonselectuser/index.es.js +25 -25
- package/buttonsync/index.es.js +12 -12
- package/buttontoggle/index.es.js +6 -6
- package/buttonviewlog/index.es.js +2 -2
- package/calendar/index.es.js +4 -4
- package/card/index.es.js +4 -4
- package/carousel/index.es.js +7 -7
- package/checkbox/index.es.js +2 -2
- package/codesnippet/{CodeSnippet.es.js → index.es.js} +1 -1
- package/codesnippetadapter/{CodeSnippetAdapter.es.js → index.es.js} +1 -1
- package/columnlist/{ColumnList.es.js → index.es.js} +8 -8
- package/config/defaultProps.es.js +133 -0
- package/config/index.es.js +10 -218
- package/config/locale.es.js +85 -0
- package/customcolumn/index.es.js +8 -8
- package/datatable/index.es.js +108 -107
- package/datepicker/index.es.js +138 -2
- package/daypicker/index.es.js +6 -6
- package/dialog/index.es.js +4 -4
- package/dialogassetnamedetail/index.es.js +11 -11
- package/dialogbasictransferlog/{DialogBasicTransferLog.es.js → index.es.js} +17 -17
- package/dialogconfirm/index.es.js +17 -17
- package/dialogdamagelog/index.es.js +14 -14
- package/dialogform/index.es.js +32 -32
- package/dialogfulltransferlog/{DialogFullTransferLog.es.js → index.es.js} +16 -16
- package/dialoglinkedasset/index.es.js +9 -9
- package/dialogprintqr/index.es.js +332 -2
- package/dialogreportdamage/index.es.js +12 -12
- package/dialogreportmissing/index.es.js +12 -12
- package/dialogreporttag/index.es.js +8 -8
- package/dialogselecttree/index.es.js +13 -13
- package/dialogselectuser/index.d.ts +2 -2
- package/dialogselectuser/index.es.js +18 -18
- package/dialogselectuserfilter/{DialogSelectUserFilter.es.js → index.es.js} +2 -2
- package/dialogtransferlog/index.es.js +9 -9
- package/directives/{focus/index.es.js → focus.es.js} +2 -2
- package/directives/index.es.js +2 -0
- package/directives/tooltip.es.js +1 -0
- package/disposalreport/index.es.js +8 -8
- package/disposalreportbulkaction/{DisposalReportBulkAction.es.js → index.es.js} +9 -8
- package/disposalreporttable/{DisposalReportTable.es.js → index.es.js} +16 -16
- package/disposalreporttablefilter/{DisposalReportTableFilter.es.js → index.es.js} +5 -5
- package/dropdown/index.es.js +37 -37
- package/editor/{Editor.es.js → index.es.js} +57 -57
- package/editorbutton/{EditorButton.es.js → index.es.js} +1 -1
- package/event-bus/index.es.js +4 -3
- package/event-bus/mitt.es.js +53 -0
- package/fieldwrapper/{FieldWrapper.es.js → index.es.js} +2 -2
- package/fileupload/index.es.js +13 -13
- package/filtercontainer/index.es.js +34 -34
- package/form/index.es.js +23 -23
- package/hardwaresync/{HardwareSync.es.js → index.es.js} +42 -42
- package/icon/index.es.js +4 -4
- package/image/index.es.js +14 -14
- package/imagecompressor/index.es.js +14 -14
- package/imageinputinfo/{ImageInputInfo.es.js → index.es.js} +2 -2
- package/inlinemessage/index.es.js +7 -7
- package/inputbadge/index.es.js +14 -14
- package/inputcurrency/index.es.js +147 -2
- package/inputemail/index.es.js +4 -4
- package/inputnumber/index.es.js +6 -6
- package/inputotp/index.es.js +1 -1
- package/inputpassword/index.es.js +10 -10
- package/inputphonenumber/index.es.js +28 -28
- package/inputrangenumber/index.es.js +9 -9
- package/inputsearch/index.es.js +2 -2
- package/inputtext/index.es.js +11 -11
- package/inputurl/index.es.js +5 -5
- package/invisiblefield/index.es.js +8 -8
- package/languagedropdownoption/{LanguageDropdownOption.es.js → index.es.js} +3 -3
- package/languageswitcher/index.es.js +7 -7
- package/litedropdown/index.es.js +10 -10
- package/loading/index.es.js +8 -8
- package/mentionlist/{MentionList.es.js → index.es.js} +4 -4
- package/menu/index.es.js +20 -19
- package/menuitem/{MenuItem.es.js → index.es.js} +1 -1
- package/multiselect/index.es.js +27 -27
- package/overlaypanel/index.es.js +6 -6
- package/package.json +1 -5
- package/paginator/index.es.js +11 -11
- package/plugins/VueHtmlToPaper.es.js +40 -0
- package/{animation/Animation.es.js → plugins/WangsVue.es.js} +38 -83
- package/plugins/basei18n.d.ts +103 -0
- package/plugins/basei18n.es.js +88 -0
- package/plugins/{formValidation/index.es.js → formValidation.es.js} +4 -4
- package/plugins/i18n.d.ts +5 -102
- package/plugins/i18n.es.js +6 -0
- package/stats.html +1 -1
- package/steps/index.es.js +4 -4
- package/tabmenu/index.es.js +1 -1
- package/tagtype/index.es.js +6 -6
- package/textarea/index.es.js +5 -5
- package/timeline/index.es.js +5 -5
- package/timelinecontentbytype/{TimelineContentByType.es.js → index.es.js} +9 -9
- package/toast/index.es.js +3 -3
- package/toggleswitch/index.es.js +2 -2
- package/transactionroles/index.es.js +2 -2
- package/tree/index.es.js +117 -107
- package/treenode/{TreeNode.es.js → index.es.js} +4 -4
- package/treesearchinput/{TreeSearchInput.es.js → index.es.js} +4 -4
- package/username/index.es.js +20 -20
- package/userwithicon/index.es.js +4 -4
- package/utils/baseToast.util.es.js +1 -1
- package/utils/date.util.es.js +2 -2
- package/utils/index.es.js +3 -36
- package/utils/role.util.es.js +2 -2
- package/validatormessage/index.es.js +4 -4
- package/vendor/highlight.js/es/core.es.js +1 -1
- package/vendor/lodash/_freeGlobal.es.js +1 -1
- package/vendor/simplebar-core/dist/index.es.js +1 -1
- package/wangsvue-fats.d.ts +1 -2
- package/wangsvue-fats.es.js +219 -256
- package/wangsvue-fats.system.js +56 -56
- package/approverinfo/package.json +0 -4
- package/assetinfo/AssetInfo.es.js +0 -179
- package/assetinfo/package.json +0 -4
- package/badge/package.json +0 -4
- package/badgegroup/package.json +0 -4
- package/basetree/package.json +0 -4
- package/breadcrumb/package.json +0 -4
- package/button/Button.es.js +0 -120
- package/button/package.json +0 -4
- package/buttonaddbyscan/package.json +0 -4
- package/buttonbulkaction/ButtonBulkAction.es.js +0 -238
- package/buttonbulkaction/package.json +0 -4
- package/buttoncopy/package.json +0 -4
- package/buttondownload/package.json +0 -4
- package/buttonfilter/package.json +0 -4
- package/buttonradio/package.json +0 -4
- package/buttonscan/ButtonScan.es.js +0 -416
- package/buttonscan/package.json +0 -4
- package/buttonsearch/package.json +0 -4
- package/buttonsearchbyscan/package.json +0 -4
- package/buttonselecttree/package.json +0 -4
- package/buttonselectuser/package.json +0 -4
- package/buttonsync/package.json +0 -4
- package/buttontoggle/package.json +0 -4
- package/buttonviewlog/package.json +0 -4
- package/calendar/package.json +0 -4
- package/card/package.json +0 -4
- package/carousel/package.json +0 -4
- package/checkbox/package.json +0 -4
- package/config/package.json +0 -4
- package/customcolumn/package.json +0 -4
- package/datatable/package.json +0 -4
- package/datepicker/DatePicker.es.js +0 -224
- package/datepicker/package.json +0 -4
- package/daypicker/package.json +0 -4
- package/dialog/package.json +0 -4
- package/dialogassetnamedetail/package.json +0 -4
- package/dialogconfirm/package.json +0 -4
- package/dialogdamagelog/package.json +0 -4
- package/dialogform/package.json +0 -4
- package/dialoglinkedasset/package.json +0 -4
- package/dialogprintqr/DialogPrintQR.es.js +0 -334
- package/dialogprintqr/package.json +0 -4
- package/dialogreportdamage/package.json +0 -4
- package/dialogreportmissing/package.json +0 -4
- package/dialogreporttag/package.json +0 -4
- package/dialogselecttree/package.json +0 -4
- package/dialogselectuser/package.json +0 -4
- package/dialogtransferlog/package.json +0 -4
- package/directives/focus/package.json +0 -4
- package/directives/tooltip/index.es.js +0 -4
- package/directives/tooltip/package.json +0 -4
- package/disposalreport/package.json +0 -4
- package/dropdown/package.json +0 -4
- package/event-bus/package.json +0 -4
- package/fileupload/package.json +0 -4
- package/filtercontainer/package.json +0 -4
- package/form/package.json +0 -4
- package/icon/package.json +0 -4
- package/image/package.json +0 -4
- package/imagecompressor/package.json +0 -4
- package/index.d.ts +0 -2
- package/inlinemessage/package.json +0 -4
- package/inputbadge/package.json +0 -4
- package/inputcurrency/InputCurrency.es.js +0 -150
- package/inputcurrency/helpers/index.es.js +0 -5
- package/inputcurrency/helpers/package.json +0 -4
- package/inputcurrency/package.json +0 -4
- package/inputemail/package.json +0 -4
- package/inputnumber/package.json +0 -4
- package/inputotp/package.json +0 -4
- package/inputpassword/package.json +0 -4
- package/inputphonenumber/package.json +0 -4
- package/inputrangenumber/package.json +0 -4
- package/inputsearch/package.json +0 -4
- package/inputtext/package.json +0 -4
- package/inputurl/package.json +0 -4
- package/invisiblefield/package.json +0 -4
- package/languageswitcher/package.json +0 -4
- package/litedropdown/package.json +0 -4
- package/loading/package.json +0 -4
- package/loading/store/index.es.js +0 -5
- package/loading/store/package.json +0 -4
- package/menu/package.json +0 -4
- package/multiselect/package.json +0 -4
- package/overlaypanel/package.json +0 -4
- package/paginator/package.json +0 -4
- package/plugins/formValidation/package.json +0 -4
- package/plugins/i18n/index.es.js +0 -8
- package/plugins/i18n/package.json +0 -4
- package/plugins/i18n-extension.d.ts +0 -4
- package/steps/package.json +0 -4
- package/tabmenu/package.json +0 -4
- package/tagtype/package.json +0 -4
- package/textarea/package.json +0 -4
- package/timeline/package.json +0 -4
- package/toast/package.json +0 -4
- package/toast/service/index.es.js +0 -5
- package/toast/service/package.json +0 -4
- package/toggleswitch/package.json +0 -4
- package/transactionroles/package.json +0 -4
- package/tree/package.json +0 -4
- package/username/package.json +0 -4
- package/userwithicon/package.json +0 -4
- package/utils/package.json +0 -4
- package/validatormessage/package.json +0 -4
- /package/inputgroup/{InputGroup.es.js → index.es.js} +0 -0
- /package/mentionsection/{MentionSection.es.js → index.es.js} +0 -0
- /package/multirow/{MultiRow.es.js → index.es.js} +0 -0
package/datatable/index.es.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { defineComponent as bt, mergeModels as Aa, useModel as gt, computed as F, inject as Fa, ref as I, shallowRef as R, onMounted as yt, onUnmounted as ht, watch as ke, createElementBlock as c, openBlock as d, normalizeProps as se, guardReactiveProps as ie, unref as r, createElementVNode as x, withDirectives as mt, createCommentVNode as h, createVNode as
|
|
1
|
+
import { defineComponent as bt, mergeModels as Aa, useModel as gt, computed as F, inject as Fa, ref as I, shallowRef as R, onMounted as yt, onUnmounted as ht, watch as ke, createElementBlock as c, openBlock as d, normalizeProps as se, guardReactiveProps as ie, unref as r, createElementVNode as x, withDirectives as mt, createCommentVNode as h, createVNode as _, createBlock as K, mergeProps as p, withCtx as de, Fragment as E, renderList as Z, createTextVNode as ue, toDisplayString as H, withModifiers as S, normalizeClass as xe, resolveDynamicComponent as wt, toHandlers as kt, vShow as Ct, nextTick as xa } from "vue";
|
|
2
2
|
import { s as Rt } from "../vendor/simplebar-vue/dist/simplebar-vue.esm.es.js";
|
|
3
|
-
import { e as m } from "../
|
|
4
|
-
import { u as Dt
|
|
3
|
+
import { e as m } from "../event-bus/index.es.js";
|
|
4
|
+
import { u as Dt } from "../plugins/WangsVue.es.js";
|
|
5
5
|
import { u as Tt } from "../utils/baseToast.util.es.js";
|
|
6
|
-
import { f as
|
|
7
|
-
import { n as
|
|
8
|
-
import { m as
|
|
6
|
+
import { f as _t } from "../utils/date.util.es.js";
|
|
7
|
+
import { n as Pt, e as Kt } from "../utils/exportToExcel.util.es.js";
|
|
8
|
+
import { m as Et } from "../utils/mergePropsWithDefaults.util.es.js";
|
|
9
9
|
import { s as ce, g as B } from "../utils/object.util.es.js";
|
|
10
|
-
import { u as
|
|
10
|
+
import { u as St } from "../assetinfo/index.es.js";
|
|
11
11
|
import { s as Nt } from "../vendor/primevue/paginator/paginator.esm.es.js";
|
|
12
12
|
import { O as Ha } from "../vendor/primevue/utils/utils.esm.es.js";
|
|
13
|
-
import He from "../checkbox/index.es.js";
|
|
14
|
-
import { _ as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import { _ as
|
|
13
|
+
import { _ as He } from "../checkbox/index.es.js";
|
|
14
|
+
import { _ as Ce } from "../animation/index.es.js";
|
|
15
|
+
import { _ as Be } from "../button/index.es.js";
|
|
16
|
+
import { _ as At } from "../customcolumn/index.es.js";
|
|
17
|
+
import { _ as Ft } from "../dialogconfirm/index.es.js";
|
|
18
|
+
import { _ as Q } from "../icon/index.es.js";
|
|
19
|
+
import { _ as xt } from "../menu/index.es.js";
|
|
20
|
+
import { _ as Ht } from "../toast/index.es.js";
|
|
21
|
+
import { _ as Bt } from "../toggleswitch/index.es.js";
|
|
22
|
+
import { _ as $t } from "../multirow/index.es.js";
|
|
22
23
|
/* empty css */
|
|
23
24
|
import { c as Mt } from "../vendor/lodash-es/cloneDeep.es.js";
|
|
24
|
-
import { _ as Ot } from "../backgroundimagecropper/
|
|
25
|
+
import { _ as Ot } from "../backgroundimagecropper/index.es.js";
|
|
25
26
|
function Ut(W) {
|
|
26
27
|
let $ = W.target;
|
|
27
28
|
$.tagName === "UL" && ($ = $.parentElement);
|
|
@@ -74,7 +75,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
74
75
|
}),
|
|
75
76
|
emits: /* @__PURE__ */ Aa(["toggleOption", "selectData", "rowSelect", "page", "sort", "update:selectedData", "update:singleSelection", "cellEdited", "input", "rowReorder"], ["update:singleSelection"]),
|
|
76
77
|
setup(W, { emit: $ }) {
|
|
77
|
-
const t = W, z = $, $e = gt(W, "singleSelection"), { defaultProps: Ba, locale: Me } = Dt("DataTable"), X = F(() =>
|
|
78
|
+
const t = W, z = $, $e = gt(W, "singleSelection"), { defaultProps: Ba, locale: Me } = Dt("DataTable"), X = F(() => Et(t, Ba)), u = Fa("preset", {}).datatable, $a = [10, 25, 50, 100], Ma = Fa("useToastConfig"), Oe = Tt(Ma), { setLoading: Ue } = St(), Re = `${window.location.pathname.replace("/", "").split("/").join("-")}-${t.tableName}`, g = I(t.data ?? []), pe = R(t.data ?? []), M = I({}), O = I(t.columns), Oa = I(), Ua = I(), T = R([]), q = R(), Le = R(0), ee = R(!1), fe = R(!1), La = R(0), Ie = R(0), ve = R(0), De = R(!1), be = R(), ge = I(), ze = I(), U = I([]), Te = R({}), ae = R(), je = R(), N = R(), D = R(), G = R(1), j = R(10), L = R(0), ye = I({}), Ve = F(() => {
|
|
78
79
|
var e, a;
|
|
79
80
|
return (e = t.childTableProps) != null && e.columns ? (a = t.childTableProps) == null ? void 0 : a.columns.filter((n) => {
|
|
80
81
|
var s;
|
|
@@ -109,27 +110,27 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
109
110
|
return s || v;
|
|
110
111
|
}), te = F(
|
|
111
112
|
() => Xe(t.data ?? Y() ?? [])
|
|
112
|
-
),
|
|
113
|
+
), _e = F(
|
|
113
114
|
() => ee.value || t.loading
|
|
114
115
|
), Ia = F(
|
|
115
116
|
() => {
|
|
116
117
|
var e;
|
|
117
|
-
return !
|
|
118
|
+
return !_e.value && !((e = g.value) != null && e.length);
|
|
118
119
|
}
|
|
119
120
|
), za = F(
|
|
120
121
|
() => t.lazy && t.fetchFunction || !t.usePaginator ? g.value : g.value.slice(
|
|
121
122
|
(G.value - 1) * j.value,
|
|
122
123
|
G.value * j.value
|
|
123
124
|
)
|
|
124
|
-
),
|
|
125
|
+
), Pe = (e) => Object.keys(M.value).includes(e), J = (e) => te.value.includes(e), Ke = (e) => t.selectionType === "checkbox" ? !!T.value.find((a) => a[t.dataKey] === e) : ja(e), ja = (e) => {
|
|
125
126
|
var a;
|
|
126
127
|
return e !== void 0 && ((a = $e.value) == null ? void 0 : a[t.dataKey]) === e;
|
|
127
128
|
}, Y = (e) => (g.value ?? []).filter(
|
|
128
129
|
(a) => !a.childRowHeader && !a.childRow
|
|
129
130
|
), he = async (e, a, n) => {
|
|
130
131
|
var v, i;
|
|
131
|
-
if (
|
|
132
|
-
const s = n ?? !
|
|
132
|
+
if (Pe(e[t.dataKey]) === n) return;
|
|
133
|
+
const s = n ?? !Pe(e[t.dataKey]);
|
|
133
134
|
if (!fe.value)
|
|
134
135
|
if (!s)
|
|
135
136
|
g.value.splice(
|
|
@@ -171,7 +172,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
171
172
|
t.includeCheckDisabledRows ? T.value = e ? Y() : Y().filter((a) => J(a[t.dataKey])) : T.value = e ? Ae(Y()) : [];
|
|
172
173
|
}, Qa = (e, a, n) => {
|
|
173
174
|
if (!a.childRow && !a.childRowHeader && !J(a[t.dataKey]) && t.selectionType !== "none") {
|
|
174
|
-
const s =
|
|
175
|
+
const s = Ke(a[t.dataKey]);
|
|
175
176
|
z("rowSelect", { originalEvent: e, data: a, index: n }), t.selectionType === "checkbox" ? s ? T.value = T.value.filter(
|
|
176
177
|
(v) => v[t.dataKey] != a[t.dataKey]
|
|
177
178
|
) : T.value = [...T.value, a] : $e.value = s ? void 0 : a;
|
|
@@ -191,9 +192,9 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
191
192
|
...e,
|
|
192
193
|
currentTarget: e.currentTarget ?? e.target
|
|
193
194
|
};
|
|
194
|
-
|
|
195
|
+
Se(), await xa(() => {
|
|
195
196
|
var i;
|
|
196
|
-
s != null && s.classList.contains("option-button-active") ?
|
|
197
|
+
s != null && s.classList.contains("option-button-active") ? Se() : ((i = ze.value) == null || i.toggle(v), Se(), s == null || s.classList.add("option-button-active"));
|
|
197
198
|
});
|
|
198
199
|
}, Je = async (e, a, n) => {
|
|
199
200
|
var v, i, b, f;
|
|
@@ -214,14 +215,14 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
214
215
|
e
|
|
215
216
|
) : ye.value[a[t.dataKey] + n.field] = !w || w === "active" && e || w === "inactive" && !e;
|
|
216
217
|
}
|
|
217
|
-
},
|
|
218
|
+
}, Ee = (e) => e.draggable !== !1 && !e.childRow && !e.childRowHeader && t.reorderable && !D.value, Ga = (e, a, n) => {
|
|
218
219
|
if (a.childRow || a.childRowHeader) return;
|
|
219
220
|
M.value = {};
|
|
220
221
|
const { dataTransfer: s } = e;
|
|
221
222
|
be.value = a, q.value = { item: a, fromIndex: n }, s && (s.dropEffect = "move", s.effectAllowed = "move", s.setData("id", a._id), s.setData("index", n.toString()));
|
|
222
223
|
}, Ja = (e, a) => {
|
|
223
224
|
var n, s;
|
|
224
|
-
if (e.preventDefault(),
|
|
225
|
+
if (e.preventDefault(), Ee(a)) {
|
|
225
226
|
const v = e.target, i = v.tagName === "TR" ? v : v.closest("tr");
|
|
226
227
|
if (i == null || i.classList.add("bg-primary-50"), (n = i == null ? void 0 : i.nextElementSibling) == null || n.classList.remove("bg-primary-50"), (s = i == null ? void 0 : i.previousElementSibling) == null || s.classList.remove("bg-primary-50"), !i || !be.value) return;
|
|
227
228
|
const b = U.value.findIndex(
|
|
@@ -244,7 +245,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
244
245
|
q.value && z("rowReorder", q.value), be.value = void 0, De.value = !1, q.value = void 0;
|
|
245
246
|
}, Za = () => {
|
|
246
247
|
g.value = [...U.value];
|
|
247
|
-
},
|
|
248
|
+
}, Se = () => {
|
|
248
249
|
const e = document.querySelectorAll(".option-button-active");
|
|
249
250
|
e == null || e.forEach((a) => {
|
|
250
251
|
a.classList.remove("option-button-active");
|
|
@@ -384,7 +385,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
384
385
|
try {
|
|
385
386
|
if (m.off("data-table:download", me), e === t.tableName) {
|
|
386
387
|
Ue(!0, Me.downloadingMessage);
|
|
387
|
-
const { data: k } = t.fetchFunction ? await Ye() : { data: t.data }, l =
|
|
388
|
+
const { data: k } = t.fetchFunction ? await Ye() : { data: t.data }, l = Pt(k, i, Me);
|
|
388
389
|
if (a != null && a.length) {
|
|
389
390
|
m.emit("button-download:multi-tables", {
|
|
390
391
|
table: {
|
|
@@ -396,7 +397,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
396
397
|
});
|
|
397
398
|
return;
|
|
398
399
|
}
|
|
399
|
-
await
|
|
400
|
+
await Kt({
|
|
400
401
|
tables: [
|
|
401
402
|
{ headers: b, data: l, tableName: e, tableTitle: t.tableTitle }
|
|
402
403
|
],
|
|
@@ -478,7 +479,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
478
479
|
var n, s, v;
|
|
479
480
|
return d(), c("div", se(ie((n = r(u)) == null ? void 0 : n.root)), [
|
|
480
481
|
x("div", se(ie((s = r(u)) == null ? void 0 : s.tablewrapper)), [
|
|
481
|
-
|
|
482
|
+
_(r(Rt), p({ "auto-hide": !1 }, (v = r(u)) == null ? void 0 : v.scrollheightwrapper({ props: t }), { class: "custom-scrollbar" }), {
|
|
482
483
|
default: de(() => {
|
|
483
484
|
var i, b, f, w, k;
|
|
484
485
|
return [
|
|
@@ -494,7 +495,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
494
495
|
e.selectionType === "checkbox" ? (d(), c("th", p({ key: 1 }, r(u).headercellcheckbox, {
|
|
495
496
|
class: oe().class
|
|
496
497
|
}), [
|
|
497
|
-
|
|
498
|
+
_(He, p(
|
|
498
499
|
(b = r(u)) == null ? void 0 : b.headercheckbox({ context: { isSelectedAll: Ge.value } }),
|
|
499
500
|
{
|
|
500
501
|
"model-value": Ge.value,
|
|
@@ -506,7 +507,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
506
507
|
e.treeTable ? (d(), c("th", p({ key: 2 }, r(u).headertoggler, {
|
|
507
508
|
class: oe().class
|
|
508
509
|
}), [
|
|
509
|
-
|
|
510
|
+
_(Be, p(
|
|
510
511
|
{ onClick: Wa },
|
|
511
512
|
r(u).headertogglerbutton({ context: { isExpandedAll: qe.value } }),
|
|
512
513
|
{
|
|
@@ -515,7 +516,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
515
516
|
}
|
|
516
517
|
), null, 16)
|
|
517
518
|
], 16)) : h("", !0),
|
|
518
|
-
(d(!0), c(
|
|
519
|
+
(d(!0), c(E, null, Z(O.value, (l) => (d(), c("th", p({
|
|
519
520
|
key: l.field,
|
|
520
521
|
class: [l.headerClass, l.class],
|
|
521
522
|
ref_for: !0
|
|
@@ -525,7 +526,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
525
526
|
x("span", p({ ref_for: !0 }, r(u).headercellcontent), [
|
|
526
527
|
x("span", jt, [
|
|
527
528
|
ue(H(l.header) + " ", 1),
|
|
528
|
-
l.info ? (d(),
|
|
529
|
+
l.info ? (d(), K(Q, {
|
|
529
530
|
key: 0,
|
|
530
531
|
info: l.info,
|
|
531
532
|
severity: l.infoSeverity,
|
|
@@ -533,7 +534,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
533
534
|
icon: "info"
|
|
534
535
|
}, null, 8, ["info", "severity"])) : h("", !0)
|
|
535
536
|
]),
|
|
536
|
-
l.sortable ? (d(),
|
|
537
|
+
l.sortable ? (d(), K(Q, {
|
|
537
538
|
key: 0,
|
|
538
539
|
icon: !N.value || N.value != l.field ? "arrow-up-down" : D.value == 1 ? "sort-asc" : "sort-desc",
|
|
539
540
|
class: "text-base"
|
|
@@ -548,7 +549,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
548
549
|
return ((y = ge.value) == null ? void 0 : y.toggleMenu) && ((ne = ge.value) == null ? void 0 : ne.toggleMenu(...l));
|
|
549
550
|
})
|
|
550
551
|
}), [
|
|
551
|
-
t.customColumn ? (d(),
|
|
552
|
+
t.customColumn ? (d(), K(Q, p({ key: 0 }, r(u).columnvisibilityicon, {
|
|
552
553
|
icon: "ellipsis-h",
|
|
553
554
|
"tooltip-pos": "left"
|
|
554
555
|
}), null, 16)) : h("", !0)
|
|
@@ -556,16 +557,16 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
556
557
|
], 16)
|
|
557
558
|
], 16),
|
|
558
559
|
x("tbody", se(ie((f = r(u)) == null ? void 0 : f.tbody)), [
|
|
559
|
-
|
|
560
|
+
_e.value ? (d(), c("tr", Qt, [
|
|
560
561
|
x("td", p({ colspan: Qe.value }, (w = r(u)) == null ? void 0 : w.bodycell), [
|
|
561
|
-
(d(!0), c(
|
|
562
|
+
(d(!0), c(E, null, Z(r(u).invisiblelottiewrapper ? 2 : 1, (l) => (d(), c("div", p(
|
|
562
563
|
{
|
|
563
564
|
key: l,
|
|
564
565
|
ref_for: !0
|
|
565
566
|
},
|
|
566
567
|
l === 1 ? r(u).loadingtablewrapper : r(u).invisiblelottiewrapper
|
|
567
568
|
), [
|
|
568
|
-
|
|
569
|
+
_(Ce, p({
|
|
569
570
|
animation: "loading-table",
|
|
570
571
|
ref_for: !0
|
|
571
572
|
}, r(u).loadingtablelottie), null, 16)
|
|
@@ -573,14 +574,14 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
573
574
|
], 16, Wt)
|
|
574
575
|
])) : Ia.value ? (d(), c("tr", ll, [
|
|
575
576
|
x("td", p({ colspan: Qe.value }, (k = r(u)) == null ? void 0 : k.bodycell), [
|
|
576
|
-
(d(!0), c(
|
|
577
|
+
(d(!0), c(E, null, Z(r(u).invisiblelottiewrapper ? 2 : 1, (l) => (d(), c("div", p(
|
|
577
578
|
{
|
|
578
579
|
key: l,
|
|
579
580
|
ref_for: !0
|
|
580
581
|
},
|
|
581
582
|
l === 1 ? r(u).nodatalottiewrapper : r(u).invisiblelottiewrapper
|
|
582
583
|
), [
|
|
583
|
-
|
|
584
|
+
_(Ce, p({
|
|
584
585
|
animation: "no-data",
|
|
585
586
|
ref_for: !0
|
|
586
587
|
}, r(u).nodatalottie), null, 16),
|
|
@@ -590,21 +591,21 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
590
591
|
}, r(u).nodatamessage), H(X.value.emptyTableMessage), 17)) : h("", !0)
|
|
591
592
|
], 16))), 128))
|
|
592
593
|
], 16, ol)
|
|
593
|
-
])) : (d(!0), c(
|
|
594
|
+
])) : (d(!0), c(E, { key: 1 }, Z(za.value, (l, y) => {
|
|
594
595
|
var ne, ra, sa, ia, da, ua, ca, pa, fa, va, ba;
|
|
595
596
|
return d(), c("tr", p(
|
|
596
597
|
{
|
|
597
598
|
id: l._id,
|
|
598
599
|
key: `${y}-${l[e.dataKey]}`,
|
|
599
|
-
draggable:
|
|
600
|
+
draggable: Ee(l),
|
|
600
601
|
ref_for: !0
|
|
601
602
|
},
|
|
602
603
|
(ne = r(u)) == null ? void 0 : ne.bodyrow({
|
|
603
604
|
context: {
|
|
604
605
|
highlighted: l[e.highlightKey ?? ""],
|
|
605
|
-
selected:
|
|
606
|
+
selected: Ke(l[e.dataKey]),
|
|
606
607
|
disabled: J(l[e.dataKey]),
|
|
607
|
-
draggable:
|
|
608
|
+
draggable: Ee(l),
|
|
608
609
|
dragging: De.value
|
|
609
610
|
},
|
|
610
611
|
props: t
|
|
@@ -616,10 +617,10 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
616
617
|
return e.treeTable && ((V = l.children) != null && V.length || l.hasChildren) ? he(l, y) : null;
|
|
617
618
|
},
|
|
618
619
|
onDrag: a[10] || (a[10] = (o) => De.value = !0),
|
|
619
|
-
onDragenter:
|
|
620
|
-
onDragleave: a[11] || (a[11] =
|
|
620
|
+
onDragenter: S((o) => Ja(o, l), ["prevent"]),
|
|
621
|
+
onDragleave: a[11] || (a[11] = S(() => {
|
|
621
622
|
}, ["prevent"])),
|
|
622
|
-
onDragover: a[12] || (a[12] =
|
|
623
|
+
onDragover: a[12] || (a[12] = S(() => {
|
|
623
624
|
}, ["prevent"])),
|
|
624
625
|
onDragstart: (o) => Ga(o, l, y),
|
|
625
626
|
onDrop: Ya
|
|
@@ -629,7 +630,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
629
630
|
key: 0,
|
|
630
631
|
ref_for: !0
|
|
631
632
|
}, (ra = r(u)) == null ? void 0 : ra.bodycell), [
|
|
632
|
-
!l.childRow && !l.childRowHeader ? (d(),
|
|
633
|
+
!l.childRow && !l.childRowHeader ? (d(), K(Q, {
|
|
633
634
|
key: 0,
|
|
634
635
|
class: "draggableicon",
|
|
635
636
|
icon: "dragable-menu"
|
|
@@ -639,10 +640,10 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
639
640
|
key: 1,
|
|
640
641
|
ref_for: !0
|
|
641
642
|
}, (sa = r(u)) == null ? void 0 : sa.bodycell, {
|
|
642
|
-
onClick: a[3] || (a[3] =
|
|
643
|
+
onClick: a[3] || (a[3] = S(() => {
|
|
643
644
|
}, ["stop"]))
|
|
644
645
|
}), [
|
|
645
|
-
!l.childRow && !l.childRowHeader ? (d(),
|
|
646
|
+
!l.childRow && !l.childRowHeader ? (d(), K(He, p({
|
|
646
647
|
key: 0,
|
|
647
648
|
ref_for: !0
|
|
648
649
|
}, (ia = r(u)) == null ? void 0 : ia.rowcheckbox, {
|
|
@@ -661,15 +662,15 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
661
662
|
(l.childRow || l.childRowHeader) && o.stopPropagation();
|
|
662
663
|
}
|
|
663
664
|
}), [
|
|
664
|
-
(ua = l.children) != null && ua.length || l.hasChildren ? (d(),
|
|
665
|
+
(ua = l.children) != null && ua.length || l.hasChildren ? (d(), K(Be, p(
|
|
665
666
|
{
|
|
666
667
|
key: 0,
|
|
667
|
-
onClick:
|
|
668
|
+
onClick: S((o) => he(l, y), ["stop"]),
|
|
668
669
|
ref_for: !0
|
|
669
670
|
},
|
|
670
671
|
r(u).rowtogglerbutton({
|
|
671
672
|
context: {
|
|
672
|
-
isRowExpanded:
|
|
673
|
+
isRowExpanded: Pe(l[e.dataKey])
|
|
673
674
|
}
|
|
674
675
|
}),
|
|
675
676
|
{
|
|
@@ -681,13 +682,13 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
681
682
|
(() => {
|
|
682
683
|
var o;
|
|
683
684
|
return l.childRowHeader && ((o = t.childTableProps) == null ? void 0 : o.useColumnsHeader);
|
|
684
|
-
})() ? (d(!0), c(
|
|
685
|
+
})() ? (d(!0), c(E, { key: 3 }, Z(Ve.value, (o) => {
|
|
685
686
|
var V, re;
|
|
686
687
|
return d(), c("td", {
|
|
687
688
|
key: o.header,
|
|
688
689
|
class: xe([(V = r(u)) == null ? void 0 : V.bodycell.class, "font-semibold text-xs"]),
|
|
689
690
|
colspan: o.colspan ?? ((re = o.parentColumnsFields) == null ? void 0 : re.length),
|
|
690
|
-
onClick: a[4] || (a[4] =
|
|
691
|
+
onClick: a[4] || (a[4] = S(() => {
|
|
691
692
|
}, ["stop"]))
|
|
692
693
|
}, H(o.header), 11, Jt);
|
|
693
694
|
}), 128)) : l.childRowHeader ? (d(), c("td", p({
|
|
@@ -696,17 +697,17 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
696
697
|
}, r(u).childrowheader, {
|
|
697
698
|
class: (ca = r(u)) == null ? void 0 : ca.bodycell.class,
|
|
698
699
|
colspan: t.columns.length + 1,
|
|
699
|
-
onClick: a[5] || (a[5] =
|
|
700
|
+
onClick: a[5] || (a[5] = S(() => {
|
|
700
701
|
}, ["stop"]))
|
|
701
702
|
}), H(l.header), 17, Yt)) : l.loadingRow ? (d(), c("td", {
|
|
702
703
|
key: 5,
|
|
703
704
|
class: xe((pa = r(u)) == null ? void 0 : pa.bodycell.class),
|
|
704
705
|
colspan: t.columns.length + 1,
|
|
705
|
-
onClick: a[6] || (a[6] =
|
|
706
|
+
onClick: a[6] || (a[6] = S(() => {
|
|
706
707
|
}, ["stop"]))
|
|
707
708
|
}, [
|
|
708
709
|
x("div", p({ ref_for: !0 }, r(u).loadingtablewrapper), [
|
|
709
|
-
|
|
710
|
+
_(Ce, p({
|
|
710
711
|
animation: "loading-table",
|
|
711
712
|
ref_for: !0
|
|
712
713
|
}, r(u).loadingtablelottie), null, 16)
|
|
@@ -715,11 +716,11 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
715
716
|
key: 6,
|
|
716
717
|
class: xe((fa = r(u)) == null ? void 0 : fa.bodycell.class),
|
|
717
718
|
colspan: t.columns.length + 1,
|
|
718
|
-
onClick: a[7] || (a[7] =
|
|
719
|
+
onClick: a[7] || (a[7] = S(() => {
|
|
719
720
|
}, ["stop"]))
|
|
720
721
|
}, [
|
|
721
722
|
x("div", p({ ref_for: !0 }, r(u).nodatalottiewrapper), [
|
|
722
|
-
|
|
723
|
+
_(Ce, p({
|
|
723
724
|
animation: "no-data",
|
|
724
725
|
ref_for: !0
|
|
725
726
|
}, r(u).nodatalottie), null, 16),
|
|
@@ -728,9 +729,9 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
728
729
|
ref_for: !0
|
|
729
730
|
}, r(u).nodatamessage), H(X.value.emptyTableMessage), 17)) : h("", !0)
|
|
730
731
|
], 16)
|
|
731
|
-
], 10, Xt)) : (d(), c(
|
|
732
|
-
(d(!0), c(
|
|
733
|
-
var V, re, ga, ya, ha, ma, wa, ka, Ca, Ra, Da, Ta, Pa, Ka,
|
|
732
|
+
], 10, Xt)) : (d(), c(E, { key: 7 }, [
|
|
733
|
+
(d(!0), c(E, null, Z(l.childRow ? Ve.value : O.value, (o) => {
|
|
734
|
+
var V, re, ga, ya, ha, ma, wa, ka, Ca, Ra, Da, Ta, _a, Pa, Ka, we, Ea, Sa;
|
|
734
735
|
return d(), c("td", p({
|
|
735
736
|
key: o.field,
|
|
736
737
|
class: [
|
|
@@ -744,47 +745,47 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
744
745
|
colspan: o.colspan ?? ((re = o.parentColumnsFields) == null ? void 0 : re.length),
|
|
745
746
|
ref_for: !0
|
|
746
747
|
}, (ga = r(u)) == null ? void 0 : ga.bodycell), [
|
|
747
|
-
((ya = o.preset) == null ? void 0 : ya.type) === "toggle" || ((ha = o.preset) == null ? void 0 : ha.type) === "checkbox" ? (d(), c(
|
|
748
|
-
((ma = o.preset) == null ? void 0 : ma.type) === "toggle" ? (d(),
|
|
748
|
+
((ya = o.preset) == null ? void 0 : ya.type) === "toggle" || ((ha = o.preset) == null ? void 0 : ha.type) === "checkbox" ? (d(), c(E, { key: 0 }, [
|
|
749
|
+
((ma = o.preset) == null ? void 0 : ma.type) === "toggle" ? (d(), K(Bt, {
|
|
749
750
|
key: 0,
|
|
750
751
|
disabled: J(l[e.dataKey]) || (typeof ((wa = o.preset) == null ? void 0 : wa.disabled) == "function" ? (ka = o.preset) == null ? void 0 : ka.disabled(l) : (Ca = o.preset) == null ? void 0 : Ca.disabled),
|
|
751
752
|
"input-id": l[e.dataKey],
|
|
752
753
|
"model-value": r(B)(l, o.field),
|
|
753
|
-
onClick: a[8] || (a[8] =
|
|
754
|
+
onClick: a[8] || (a[8] = S(() => {
|
|
754
755
|
}, ["stop"])),
|
|
755
756
|
"onUpdate:modelValue": (C) => {
|
|
756
757
|
r(ce)(l, o.field, C), Je(C, l, o);
|
|
757
758
|
}
|
|
758
759
|
}, null, 8, ["disabled", "input-id", "model-value", "onUpdate:modelValue"])) : h("", !0),
|
|
759
|
-
((Ra = o.preset) == null ? void 0 : Ra.type) === "checkbox" ? (d(),
|
|
760
|
+
((Ra = o.preset) == null ? void 0 : Ra.type) === "checkbox" ? (d(), K(He, {
|
|
760
761
|
key: 1,
|
|
761
|
-
disabled: J(l[e.dataKey]) || (typeof ((Da = o.preset) == null ? void 0 : Da.disabled) == "function" ? (Ta = o.preset) == null ? void 0 : Ta.disabled(l) : (
|
|
762
|
+
disabled: J(l[e.dataKey]) || (typeof ((Da = o.preset) == null ? void 0 : Da.disabled) == "function" ? (Ta = o.preset) == null ? void 0 : Ta.disabled(l) : (_a = o.preset) == null ? void 0 : _a.disabled),
|
|
762
763
|
"input-id": l[e.dataKey],
|
|
763
764
|
"model-value": r(B)(l, o.field),
|
|
764
|
-
onClick: a[9] || (a[9] =
|
|
765
|
+
onClick: a[9] || (a[9] = S(() => {
|
|
765
766
|
}, ["stop"])),
|
|
766
767
|
"onUpdate:modelValue": (C) => {
|
|
767
768
|
r(ce)(l, o.field, !!C), Je(!!C, l, o);
|
|
768
769
|
},
|
|
769
770
|
binary: ""
|
|
770
771
|
}, null, 8, ["disabled", "input-id", "model-value", "onUpdate:modelValue"])) : h("", !0),
|
|
771
|
-
(
|
|
772
|
+
(Pa = o.preset) != null && Pa.confirmDialogProps ? (d(), K(Ft, p(
|
|
772
773
|
{
|
|
773
774
|
key: 2,
|
|
774
775
|
list: [l],
|
|
775
776
|
visible: !!ye.value[l[e.dataKey] + o.field],
|
|
776
777
|
onClose: () => {
|
|
777
|
-
var
|
|
778
|
+
var P, A, Na;
|
|
778
779
|
const C = () => r(ce)(
|
|
779
780
|
l,
|
|
780
781
|
o.field,
|
|
781
782
|
!r(B)(l, o.field)
|
|
782
783
|
);
|
|
783
|
-
((
|
|
784
|
+
((P = Fe(
|
|
784
785
|
o.preset,
|
|
785
786
|
l[o.field],
|
|
786
787
|
l
|
|
787
|
-
)) == null ? void 0 :
|
|
788
|
+
)) == null ? void 0 : P.actionable) == !1 && "onConfirm" in o.preset ? (Na = (A = o.preset).onConfirm) == null || Na.call(
|
|
788
789
|
A,
|
|
789
790
|
l[o.field],
|
|
790
791
|
l,
|
|
@@ -792,9 +793,9 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
792
793
|
) : C();
|
|
793
794
|
},
|
|
794
795
|
onConfirm: (C) => {
|
|
795
|
-
var
|
|
796
|
-
return (A = (
|
|
797
|
-
|
|
796
|
+
var P, A;
|
|
797
|
+
return (A = (P = o.preset) == null ? void 0 : P.onConfirm) == null ? void 0 : A.call(
|
|
798
|
+
P,
|
|
798
799
|
l[o.field],
|
|
799
800
|
l,
|
|
800
801
|
() => r(ce)(
|
|
@@ -814,9 +815,9 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
814
815
|
l
|
|
815
816
|
)
|
|
816
817
|
), null, 16, ["list", "visible", "onClose", "onConfirm", "onUpdate:visible"])) : h("", !0)
|
|
817
|
-
], 64)) : ((
|
|
818
|
+
], 64)) : ((Ka = o.preset) == null ? void 0 : Ka.type) === "multirow" ? (d(), K($t, {
|
|
818
819
|
key: 1,
|
|
819
|
-
attributes: ((
|
|
820
|
+
attributes: ((Ea = (we = o.preset) == null ? void 0 : we.fieldAttributes) == null ? void 0 : Ea.call(we, l)) ?? []
|
|
820
821
|
}, null, 8, ["attributes"])) : o.editable ? (d(), c("span", p({
|
|
821
822
|
key: 2,
|
|
822
823
|
ref_for: !0
|
|
@@ -833,8 +834,8 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
833
834
|
onKeypress: (C) => {
|
|
834
835
|
o.numberInputOnly && pt(C);
|
|
835
836
|
}
|
|
836
|
-
}), H(r(B)(l, o.field) || "-"), 17, al)) : o.bodyComponent || o.bodyClass || o.bodyTemplate || o.dateFormatOptions ? (d(), c(
|
|
837
|
-
o.bodyComponent ? (d(),
|
|
837
|
+
}), H(r(B)(l, o.field) || "-"), 17, al)) : o.bodyComponent || o.bodyClass || o.bodyTemplate || o.dateFormatOptions ? (d(), c(E, { key: 3 }, [
|
|
838
|
+
o.bodyComponent ? (d(), K(wt(o.bodyComponent(l, y).component), p({
|
|
838
839
|
key: 0,
|
|
839
840
|
modelValue: o.bodyComponent(l, y).model,
|
|
840
841
|
"onUpdate:modelValue": (C) => o.bodyComponent(l, y).model = C,
|
|
@@ -844,21 +845,21 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
844
845
|
o.bodyComponent(l, y).events ? o.bodyComponent(l, y).events : {}
|
|
845
846
|
), {
|
|
846
847
|
onChange: (C) => {
|
|
847
|
-
var
|
|
848
|
-
return (A = (
|
|
848
|
+
var P, A;
|
|
849
|
+
return (A = (P = o.bodyComponent(l, y)).onChange) == null ? void 0 : A.call(P, l);
|
|
849
850
|
},
|
|
850
851
|
onClick: (C) => {
|
|
851
852
|
o.bodyComponent(l, y).stop !== !1 && C.stopPropagation();
|
|
852
853
|
},
|
|
853
854
|
"onUpdate:modelValue": (C) => {
|
|
854
|
-
var
|
|
855
|
-
return (A = (
|
|
855
|
+
var P, A;
|
|
856
|
+
return (A = (P = o.bodyComponent(l, y)).onChange) == null ? void 0 : A.call(P, l);
|
|
856
857
|
}
|
|
857
858
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "onChange", "onClick"])) : (d(), c("span", tl, [
|
|
858
|
-
o.bodyTemplate ? (d(), c(
|
|
859
|
-
ue(H(((
|
|
860
|
-
], 64)) : o.dateFormatOptions ? (d(), c(
|
|
861
|
-
ue(H(r(
|
|
859
|
+
o.bodyTemplate ? (d(), c(E, { key: 0 }, [
|
|
860
|
+
ue(H(((Sa = o.bodyTemplate) == null ? void 0 : Sa.call(o, l, y)) || "-"), 1)
|
|
861
|
+
], 64)) : o.dateFormatOptions ? (d(), c(E, { key: 1 }, [
|
|
862
|
+
ue(H(r(_t)(
|
|
862
863
|
new Date(
|
|
863
864
|
r(B)(
|
|
864
865
|
l,
|
|
@@ -867,11 +868,11 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
867
868
|
),
|
|
868
869
|
o.dateFormatOptions
|
|
869
870
|
)), 1)
|
|
870
|
-
], 64)) : (d(), c(
|
|
871
|
+
], 64)) : (d(), c(E, { key: 2 }, [
|
|
871
872
|
ue(H(r(B)(l, o.field) || "-"), 1)
|
|
872
873
|
], 64))
|
|
873
874
|
]))
|
|
874
|
-
], 64)) : (d(), c(
|
|
875
|
+
], 64)) : (d(), c(E, { key: 4 }, [
|
|
875
876
|
ue(H(r(B)(l, o.field) ?? "-"), 1)
|
|
876
877
|
], 64))
|
|
877
878
|
], 16, el);
|
|
@@ -889,7 +890,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
889
890
|
(va = r(u)) == null ? void 0 : va.rowsingleactioncell({
|
|
890
891
|
props: t,
|
|
891
892
|
context: {
|
|
892
|
-
selected:
|
|
893
|
+
selected: Ke(l[e.dataKey]),
|
|
893
894
|
highlighted: l[e.highlightKey ?? ""]
|
|
894
895
|
}
|
|
895
896
|
}),
|
|
@@ -901,12 +902,12 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
901
902
|
key: 0,
|
|
902
903
|
ref_for: !0
|
|
903
904
|
}, r(u).singleactionwrapper), [
|
|
904
|
-
|
|
905
|
+
_(Be, p({
|
|
905
906
|
id: "button-action-" + l[t.dataKey],
|
|
906
907
|
ref_for: !0
|
|
907
908
|
}, r(u).singleactionbutton({ props: t }), {
|
|
908
909
|
disabled: e.disableAllRows,
|
|
909
|
-
onClick:
|
|
910
|
+
onClick: S((o) => qa(o, l), ["stop"]),
|
|
910
911
|
icon: "ellipsis-h",
|
|
911
912
|
outlined: "",
|
|
912
913
|
size: "small",
|
|
@@ -925,7 +926,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
925
926
|
_: 1
|
|
926
927
|
}, 16)
|
|
927
928
|
], 16),
|
|
928
|
-
e.usePaginator ? mt((d(),
|
|
929
|
+
e.usePaginator ? mt((d(), K(r(Nt), p({
|
|
929
930
|
key: ve.value,
|
|
930
931
|
rows: j.value,
|
|
931
932
|
"onUpdate:rows": a[13] || (a[13] = (i) => j.value = i)
|
|
@@ -935,22 +936,22 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
935
936
|
onPage: nt
|
|
936
937
|
}), {
|
|
937
938
|
firstpagelinkicon: de(() => [
|
|
938
|
-
|
|
939
|
+
_(Q, { icon: "round-keyboard-double-arrow-left" })
|
|
939
940
|
]),
|
|
940
941
|
lastpagelinkicon: de(() => [
|
|
941
|
-
|
|
942
|
+
_(Q, { icon: "round-keyboard-double-arrow-right" })
|
|
942
943
|
]),
|
|
943
944
|
prevpagelinkicon: de(() => [
|
|
944
|
-
|
|
945
|
+
_(Q, { icon: "round-keyboard-arrow-left" })
|
|
945
946
|
]),
|
|
946
947
|
nextpagelinkicon: de(() => [
|
|
947
|
-
|
|
948
|
+
_(Q, { icon: "round-keyboard-arrow-right" })
|
|
948
949
|
]),
|
|
949
950
|
_: 1
|
|
950
951
|
}, 16, ["rows", "total-records"])), [
|
|
951
|
-
[Ct, !
|
|
952
|
+
[Ct, !_e.value]
|
|
952
953
|
]) : h("", !0),
|
|
953
|
-
|
|
954
|
+
_(xt, {
|
|
954
955
|
id: "single-action-menu",
|
|
955
956
|
ref_key: "optionMenu",
|
|
956
957
|
ref: ze,
|
|
@@ -960,7 +961,7 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
960
961
|
"auto-z-index": "",
|
|
961
962
|
popup: ""
|
|
962
963
|
}, null, 8, ["model", "onFocus"]),
|
|
963
|
-
t.customColumn ? (d(),
|
|
964
|
+
t.customColumn ? (d(), K(At, {
|
|
964
965
|
key: Le.value,
|
|
965
966
|
ref_key: "customColumn",
|
|
966
967
|
ref: ge,
|
|
@@ -969,11 +970,11 @@ const Lt = (W, $) => W.every((t) => $.includes(t)), It = ["id"], zt = ["onClick"
|
|
|
969
970
|
"default-columns": e.columns.filter((i) => i.visible !== !1),
|
|
970
971
|
"table-id": r(Re)
|
|
971
972
|
}, null, 8, ["visible-columns", "default-columns", "table-id"])) : h("", !0),
|
|
972
|
-
|
|
973
|
+
_(Ht, { group: "download" })
|
|
973
974
|
], 16);
|
|
974
975
|
};
|
|
975
976
|
}
|
|
976
|
-
}),
|
|
977
|
+
}), Nl = /* @__PURE__ */ Ot(nl, [["__scopeId", "data-v-bc069a0e"]]);
|
|
977
978
|
export {
|
|
978
|
-
|
|
979
|
+
Nl as D
|
|
979
980
|
};
|