@pantograph/vue 0.14.2 → 0.15.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/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-SWGqIOkL.js → ActionButton.vue_vue_type_script_setup_true_lang-4bWnl8i0.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-CIRnLjGb.js → ActionButton.vue_vue_type_script_setup_true_lang-C_7SZxPE.js} +2 -2
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-CgaIpUlB.js → Alert.vue_vue_type_style_index_0_lang-BSPB5uP9.js} +4 -4
- package/dist/{Alert.vue_vue_type_style_index_0_lang-igQvl6PR.js → Alert.vue_vue_type_style_index_0_lang-De8BdiEm.js} +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-CrIwlgJN.js +1 -0
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-CsXvz6XE.js → Avatar.vue_vue_type_style_index_0_lang-DeTUyD13.js} +68 -53
- package/dist/AvatarGroup/AvatarGroup.d.ts +2 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-CvnE7Srj.js +1 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DYPVS-yf.js +66 -0
- package/dist/BaseBadge.model-B27aBzz_.js +45 -0
- package/dist/BaseBadge.model-qrHPAcrC.js +1 -0
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-BGO_OgyI.js +87 -0
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-CKgCe7Up.js +1 -0
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-BG8oFqnh.js → BaseButton.vue_vue_type_style_index_0_lang-CgMukDgL.js} +4 -4
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-CDioOTsQ.js → BaseButton.vue_vue_type_style_index_0_lang-eeWTMdbl.js} +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-B4NQ4Dxa.js → Button.vue_vue_type_script_setup_true_lang-B6PUOUfI.js} +2 -2
- package/dist/{Button.vue_vue_type_script_setup_true_lang-BCRCGuJq.js → Button.vue_vue_type_script_setup_true_lang-DjzpN9q5.js} +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-Dpzk-ikf.js → Checkbox.vue_vue_type_style_index_0_lang-BoCylzCv.js} +14 -14
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-CP6XeMyz.js +1 -0
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/Chip.d.ts +55 -0
- package/dist/Chip/Chip.model.d.ts +4 -0
- package/dist/Chip/index.d.ts +2 -0
- package/dist/Chip/index.js +8 -0
- package/dist/Chip/index.umd.cjs +1 -0
- package/dist/Chip.vue_vue_type_style_index_0_lang-B8_9Fuov.js +114 -0
- package/dist/Chip.vue_vue_type_style_index_0_lang-DkdkKJvb.js +1 -0
- package/dist/ChipGroup/ChipGroup.d.ts +38 -0
- package/dist/ChipGroup/index.d.ts +1 -0
- package/dist/ChipGroup/index.js +7 -0
- package/dist/ChipGroup/index.umd.cjs +1 -0
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-Cn0SS405.js +74 -0
- package/dist/ChipGroup.vue_vue_type_style_index_0_lang-DXgB3D2F.js +1 -0
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-znCqIygO.js → ColorPicker.vue_vue_type_style_index_0_lang-BJqIuqb1.js} +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-C7mV51Ad.js → ColorPicker.vue_vue_type_style_index_0_lang-OlYb1GsW.js} +3 -3
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-BmHfEa7I.js → ColorSwatch.vue_vue_type_style_index_0_lang-B35b1BsJ.js} +3 -3
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-03eJikYh.js → ColorSwatch.vue_vue_type_style_index_0_lang-DmhhCVv7.js} +1 -1
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-B77FnS5z.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CUBuxVaq.js} +7 -7
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-DkF3uee8.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CYLmaqeI.js} +1 -1
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-Q00MQEXY.js → ColorTrigger.vue_vue_type_style_index_0_lang-DNZxq-yR.js} +4 -4
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-DtSOxztA.js → ColorTrigger.vue_vue_type_style_index_0_lang-YWVLXFVc.js} +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-BP5c0rda.js +1 -0
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-wUSNbKN5.js → DataTable.vue_vue_type_style_index_0_lang-C-7s05L-.js} +198 -197
- package/dist/Empty/index.js +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-DIgNReMG.js → Empty.vue_vue_type_style_index_0_lang-Jm_jtiLY.js} +1 -1
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-B_StGCXt.js → FloatButton.vue_vue_type_script_setup_true_lang-BxvHC70e.js} +2 -2
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-B1XPEkaM.js → FloatButton.vue_vue_type_script_setup_true_lang-COenBFvO.js} +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-Bc5zh_wp.js +63 -0
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CwxMftZ5.js +1 -0
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon.vue_vue_type_style_index_0_lang-BbOuVnaS.js → Icon.vue_vue_type_style_index_0_lang-D2A2tkHI.js} +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BCKUoXMR.js → IconButton.vue_vue_type_script_setup_true_lang-Bi_qwuVm.js} +2 -2
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-8SXYjPFD.js → IconButton.vue_vue_type_script_setup_true_lang-efWR_OuR.js} +1 -1
- package/dist/Image/index.js +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-BCEUJNgp.js → Image.vue_vue_type_style_index_0_lang-BgSo-YAW.js} +3 -3
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-Balon_8b.js → IndentLevel.vue_vue_type_style_index_0_lang-C_b-LVE0.js} +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-B8LQPGav.js → IndentLevel.vue_vue_type_style_index_0_lang-ChiSKb-J.js} +3 -3
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-DjRN5aRj.js +40 -0
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-RPFjQEzE.js +1 -0
- package/dist/Input/index.js +1 -1
- package/dist/{Input.vue_vue_type_style_index_0_lang-B2Z-qNGX.js → Input.vue_vue_type_style_index_0_lang-CCKpwRTa.js} +35 -35
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-qT4atWnM.js → Kbd.vue_vue_type_style_index_0_lang-4JCBBCVt.js} +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link.vue_vue_type_style_index_0_lang-CwqNtUft.js → Link.vue_vue_type_style_index_0_lang-klDK1kuj.js} +2 -2
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/{Menu.vue_vue_type_style_index_0_lang-B4nElqHh.js → Menu.vue_vue_type_style_index_0_lang-BVNhKBcu.js} +7 -7
- package/dist/{Menu.vue_vue_type_style_index_0_lang-DI8PfRfx.js → Menu.vue_vue_type_style_index_0_lang-DacaUajM.js} +1 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/Popover/Popover.d.ts +0 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-B695YDJE.js +1 -0
- package/dist/{Popover.vue_vue_type_style_index_0_lang-0M5QF6zB.js → Popover.vue_vue_type_style_index_0_lang-ByhaxoQo.js} +20 -21
- package/dist/RadioGroup/index.js +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-nmPTqQWQ.js → RadioGroup.vue_vue_type_script_setup_true_lang-B9tmAIEG.js} +1 -1
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/{ScrollContainer.model-BjFK83Qc.js → ScrollContainer.model-BzodTc4p.js} +1 -1
- package/dist/Shortcut/index.js +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-BVM8_oZn.js → Shortcut.vue_vue_type_style_index_0_lang-Ae0GyIDs.js} +2 -2
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-BxkbqSR_.js → Spinner.vue_vue_type_style_index_0_lang-DxwACaLW.js} +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-EFeii6Wg.js → Switch.vue_vue_type_style_index_0_lang-mkO4UH9N.js} +2 -2
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/{Tree.vue_vue_type_style_index_0_lang-DKH3b_ev.js → Tree.vue_vue_type_style_index_0_lang-DKtLWacR.js} +7 -7
- package/dist/{Tree.vue_vue_type_style_index_0_lang-CYGAlGwC.js → Tree.vue_vue_type_style_index_0_lang-DnnW2v03.js} +1 -1
- package/dist/{_baseIsEqual-D6OIyc9x.js → _baseIsEqual-B1yr67CO.js} +4 -4
- package/dist/{_flatRest-BFIiKgYv.js → _flatRest-Bw7fWA39.js} +2 -2
- package/dist/{_getTag-C1N7G_It.js → _getTag-z7QaQ5uZ.js} +1 -1
- package/dist/{cloneDeep-BNNspOg-.js → cloneDeep-unwWx7xF.js} +1 -1
- package/dist/{get-9cMI4wkc.js → get-FzuQyzCL.js} +1 -1
- package/dist/{index-D_hCmLp9.js → index-CKvTY2M1.js} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +144 -136
- package/dist/index.umd.cjs +1 -1
- package/dist/{isArray-DGJFqUD8.js → isArray-CdbPONHA.js} +2 -2
- package/dist/{isEmpty-BfqMcSem.js → isEmpty-BEYnAygl.js} +2 -2
- package/dist/{isNumber-CFhCrbTP.js → isNumber-BopDesuz.js} +3 -3
- package/dist/{omit-BsFVls5E.js → omit-DB3u1XL5.js} +3 -3
- package/dist/{pick-CJI0LhLm.js → pick-BEnuz3iO.js} +3 -3
- package/dist/style/index.css +1 -1
- package/dist/{uniq-DI-nuzAz.js → uniq-Yl5OObL1.js} +2 -2
- package/package.json +12 -2
- package/dist/Avatar.vue_vue_type_style_index_0_lang-B--X3QQp.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-C6BNLMaW.js +0 -65
- package/dist/Badge.vue_vue_type_script_setup_true_lang-Dn33PgFw.js +0 -1
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-BCkm3H4P.js +0 -128
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-BeAtJkbh.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DXothnel.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-zj_Bkt1X.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BfmGxGrs.js +0 -62
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CS169UvS.js +0 -1
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-B23gQXdq.js +0 -39
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-DW3eCurT.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-DexTJf-3.js +0 -1
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
import { createColumnHelper as
|
|
3
|
-
import { b as
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { o as
|
|
10
|
-
import { u as
|
|
11
|
-
import { f as U, h as
|
|
12
|
-
import { getBemBlock as lo, wgt_pre as
|
|
13
|
-
import { getBreakpoints as
|
|
14
|
-
import { useBreakpoints as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { _ as
|
|
19
|
-
import { _ as
|
|
20
|
-
import { _ as re } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
21
|
-
import { _ as
|
|
22
|
-
import { g as
|
|
23
|
-
import { cva as
|
|
24
|
-
import { i as
|
|
25
|
-
import { _ as
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { h as He, ref as Z, computed as D, watch as le, defineComponent as Le, useSlots as Me, unref as t, useTemplateRef as Ve, onBeforeUnmount as Ne, shallowRef as Oe, createElementBlock as C, openBlock as a, normalizeClass as y, createVNode as d, withCtx as m, createElementVNode as $, normalizeStyle as qe, createBlock as A, createCommentVNode as I, Fragment as z, renderList as V, mergeProps as S, renderSlot as T, createSlots as ye, withModifiers as we, toDisplayString as Fe, normalizeProps as xe, guardReactiveProps as Ge, nextTick as oe } from "vue";
|
|
2
|
+
import { createColumnHelper as Ze, flattenBy as Ue, useVueTable as Je, getSortedRowModel as Qe, getCoreRowModel as Xe } from "@tanstack/vue-table";
|
|
3
|
+
import { b as Ye } from "./_baseIsEqual-B1yr67CO.js";
|
|
4
|
+
import { i as eo, b as oo, a as te } from "./isArray-CdbPONHA.js";
|
|
5
|
+
import { _ as he } from "./Checkbox.vue_vue_type_style_index_0_lang-BoCylzCv.js";
|
|
6
|
+
import { _ as to, a as ne } from "./Menu.vue_vue_type_style_index_0_lang-BVNhKBcu.js";
|
|
7
|
+
import { _ as no } from "./ActionButton.vue_vue_type_script_setup_true_lang-C_7SZxPE.js";
|
|
8
|
+
import { _ as ro } from "./Empty.vue_vue_type_style_index_0_lang-Jm_jtiLY.js";
|
|
9
|
+
import { o as ie } from "./omit-DB3u1XL5.js";
|
|
10
|
+
import { u as so } from "./uniq-Yl5OObL1.js";
|
|
11
|
+
import { f as U, h as K } from "./_getTag-z7QaQ5uZ.js";
|
|
12
|
+
import { getBemBlock as lo, wgt_pre as io, generateVariantClassList as co, getBemElement as b, usePCId as ao } from "@pantograph/utils";
|
|
13
|
+
import { getBreakpoints as uo } from "@pantograph/tokens";
|
|
14
|
+
import { useBreakpoints as mo, useIntersectionObserver as fo } from "@vueuse/core";
|
|
15
|
+
import { _ as po } from "./Skeleton.vue_vue_type_style_index_0_lang-aSGb2hn6.js";
|
|
16
|
+
import { _ as ve } from "./Popover.vue_vue_type_style_index_0_lang-ByhaxoQo.js";
|
|
17
|
+
import { _ as go } from "./Badge.vue_vue_type_script_setup_true_lang-DYPVS-yf.js";
|
|
18
|
+
import { _ as Ce } from "./Divider.vue_vue_type_style_index_0_lang-DapqjSGc.js";
|
|
19
|
+
import { _ as be } from "./IconButton.vue_vue_type_script_setup_true_lang-Bi_qwuVm.js";
|
|
20
|
+
import { _ as re } from "./Icon.vue_vue_type_style_index_0_lang-D2A2tkHI.js";
|
|
21
|
+
import { _ as yo } from "./Switch.vue_vue_type_style_index_0_lang-mkO4UH9N.js";
|
|
22
|
+
import { g as _e } from "./get-FzuQyzCL.js";
|
|
23
|
+
import { cva as wo } from "class-variance-authority";
|
|
24
|
+
import { i as Se } from "./isEmpty-BEYnAygl.js";
|
|
25
|
+
import { _ as ho, e as vo, c as x, a as Co, d as bo, b as G } from "./THead.vue_vue_type_style_index_0_lang-B4yro5EP.js";
|
|
26
|
+
import { c as se } from "./cloneDeep-unwWx7xF.js";
|
|
27
|
+
function ke(B, k) {
|
|
28
|
+
return Ye(B, k);
|
|
28
29
|
}
|
|
29
|
-
const
|
|
30
|
+
const _o = (B, { isColumnWrapped: k, selectionId: s }) => {
|
|
30
31
|
const N = (o) => {
|
|
31
32
|
var f;
|
|
32
33
|
const c = (w) => w === "list" ? "md" : "sm";
|
|
@@ -38,11 +39,11 @@ const bo = (B, { isColumnWrapped: k, selectionId: l }) => {
|
|
|
38
39
|
}, _ = (o) => {
|
|
39
40
|
var f, w;
|
|
40
41
|
const c = (f = o.props) == null ? void 0 : f.column.columnDef;
|
|
41
|
-
return
|
|
42
|
+
return K(c == null ? void 0 : c.render) && o.props.row ? (w = c == null ? void 0 : c.render) == null ? void 0 : w.call(c, {
|
|
42
43
|
index: o.props.row.index,
|
|
43
44
|
record: o.props.row.original,
|
|
44
|
-
column:
|
|
45
|
-
}) : typeof o.render == "function" || typeof o.render == "object" ?
|
|
45
|
+
column: ie(c, "render")
|
|
46
|
+
}) : typeof o.render == "function" || typeof o.render == "object" ? He(o.render, o.props) : o.render;
|
|
46
47
|
}, u = (o) => {
|
|
47
48
|
let c = {};
|
|
48
49
|
if (o) {
|
|
@@ -59,21 +60,21 @@ const bo = (B, { isColumnWrapped: k, selectionId: l }) => {
|
|
|
59
60
|
var w;
|
|
60
61
|
let f = 1;
|
|
61
62
|
return ((w = o == null ? void 0 : o.subHeaders) == null ? void 0 : w.length) === 1 && o.column.id === o.subHeaders[0].column.id && (f += i(o.subHeaders[0], !1)), c && (!R[o.column.id] || R[o.column.id] < f) && (R[o.column.id] = f), f;
|
|
62
|
-
},
|
|
63
|
+
}, p = (o, c = {}) => {
|
|
63
64
|
var f;
|
|
64
65
|
if (o != null && o.column) {
|
|
65
66
|
const w = (f = o == null ? void 0 : o.column) == null ? void 0 : f.columnDef, W = [], P = {};
|
|
66
67
|
if (U(w)) {
|
|
67
68
|
let j = k(o.column.id);
|
|
68
69
|
const { customCell: E, class: F } = w;
|
|
69
|
-
if (
|
|
70
|
+
if (Se(F) || W.push(F), E && (U(E) || K(E))) {
|
|
70
71
|
const q = (h) => {
|
|
71
72
|
if (U(h)) {
|
|
72
73
|
const { wrap: H, colSpan: Q, rowSpan: X } = h;
|
|
73
74
|
j = j || (H ?? !1), P.colSpan = Q, P.rowSpan = X;
|
|
74
75
|
}
|
|
75
76
|
};
|
|
76
|
-
|
|
77
|
+
K(E) && o.row ? q(
|
|
77
78
|
E({
|
|
78
79
|
index: o.row.index,
|
|
79
80
|
record: o.row.original,
|
|
@@ -84,7 +85,7 @@ const bo = (B, { isColumnWrapped: k, selectionId: l }) => {
|
|
|
84
85
|
o.header ? P.rowSpan = i(o.header) : j && (P.wrap = !0);
|
|
85
86
|
}
|
|
86
87
|
return {
|
|
87
|
-
class:
|
|
88
|
+
class: Se(W) ? void 0 : W,
|
|
88
89
|
...P,
|
|
89
90
|
...c
|
|
90
91
|
};
|
|
@@ -96,38 +97,38 @@ const bo = (B, { isColumnWrapped: k, selectionId: l }) => {
|
|
|
96
97
|
RenderCell: _,
|
|
97
98
|
getThProps: (o) => {
|
|
98
99
|
var c, f, w;
|
|
99
|
-
return
|
|
100
|
+
return p(o, {
|
|
100
101
|
colSpan: (c = o == null ? void 0 : o.header) == null ? void 0 : c.colSpan,
|
|
101
102
|
"data-has-children": ((w = (f = o == null ? void 0 : o.column) == null ? void 0 : f.columns) == null ? void 0 : w.length) > 1 ? !0 : void 0
|
|
102
103
|
});
|
|
103
104
|
},
|
|
104
|
-
getTdProps: (o) =>
|
|
105
|
+
getTdProps: (o) => p(o),
|
|
105
106
|
getColProps: (o) => {
|
|
106
107
|
const c = u(o.columnDef);
|
|
107
|
-
return o.id ===
|
|
108
|
+
return o.id === s && (c.width = "var(--pt-dimension-2800)"), {
|
|
108
109
|
style: c
|
|
109
110
|
};
|
|
110
111
|
},
|
|
111
112
|
isThVisible: (o, c, f) => R[f] === 1 ? !0 : c - o === R[f]
|
|
112
113
|
};
|
|
113
114
|
};
|
|
114
|
-
var
|
|
115
|
-
function
|
|
116
|
-
return B === !0 || B === !1 ||
|
|
115
|
+
var So = "[object Boolean]";
|
|
116
|
+
function ko(B) {
|
|
117
|
+
return B === !0 || B === !1 || eo(B) && oo(B) == So;
|
|
117
118
|
}
|
|
118
|
-
const
|
|
119
|
-
const k = Z([]),
|
|
120
|
-
if (i) return k.value.find((
|
|
119
|
+
const Ro = (B) => {
|
|
120
|
+
const k = Z([]), s = (i) => i ? k.value.findIndex((p) => p.id === i) : -1, N = (i) => {
|
|
121
|
+
if (i) return k.value.find((p) => p.id === i);
|
|
121
122
|
}, _ = (i) => {
|
|
122
|
-
var
|
|
123
|
-
return !!((
|
|
123
|
+
var p;
|
|
124
|
+
return !!((p = N(i)) != null && p.wrap);
|
|
124
125
|
}, u = (i) => {
|
|
125
|
-
const { id:
|
|
126
|
-
if (!
|
|
127
|
-
const M = i.wrap ?? !_(
|
|
128
|
-
return O >= 0 ? k.value[O] = { id:
|
|
129
|
-
}, R =
|
|
130
|
-
() => (B.columns ?? []).filter((i) =>
|
|
126
|
+
const { id: p } = i;
|
|
127
|
+
if (!p) return !1;
|
|
128
|
+
const M = i.wrap ?? !_(p), O = s(p);
|
|
129
|
+
return O >= 0 ? k.value[O] = { id: p, wrap: M } : k.value.push({ id: p, wrap: M }), !0;
|
|
130
|
+
}, R = D(
|
|
131
|
+
() => (B.columns ?? []).filter((i) => ko(i.wrap)).map((i) => ({
|
|
131
132
|
id: i.id,
|
|
132
133
|
wrap: !!i.wrap
|
|
133
134
|
}))
|
|
@@ -145,7 +146,7 @@ const ko = (B) => {
|
|
|
145
146
|
isColumnWrapped: _,
|
|
146
147
|
toggleWrap: u
|
|
147
148
|
};
|
|
148
|
-
},
|
|
149
|
+
}, Xo = /* @__PURE__ */ Le({
|
|
149
150
|
__name: "DataTable",
|
|
150
151
|
props: {
|
|
151
152
|
columns: {},
|
|
@@ -175,63 +176,63 @@ const ko = (B) => {
|
|
|
175
176
|
},
|
|
176
177
|
emits: ["fetch", "rowClick"],
|
|
177
178
|
setup(B, { emit: k }) {
|
|
178
|
-
const
|
|
179
|
+
const s = B, N = k, _ = Me(), u = lo("data_table", io), R = Ze(), i = `$${u}_selection$`, p = D(() => {
|
|
179
180
|
var e;
|
|
180
|
-
return ((e =
|
|
181
|
-
}), M = (e) =>
|
|
182
|
-
var
|
|
181
|
+
return ((e = s.actionCol) == null ? void 0 : e.id) ?? `$${u}_action$`;
|
|
182
|
+
}), M = (e) => ie(e ?? {}, "title", "sorter", "columns", "id", "dataIndex"), O = D(() => {
|
|
183
|
+
var g;
|
|
183
184
|
const e = (n) => {
|
|
184
185
|
var L;
|
|
185
|
-
const v = n.id ??
|
|
186
|
-
return te(
|
|
186
|
+
const v = n.id ?? ao(`${u}--col`);
|
|
187
|
+
return te(_e(n, s.childrenColumnName)) ? R.group({
|
|
187
188
|
header: n.title,
|
|
188
189
|
id: v,
|
|
189
|
-
columns: (L =
|
|
190
|
+
columns: (L = _e(n, s.childrenColumnName) ?? []) == null ? void 0 : L.map(e),
|
|
190
191
|
enableSorting: !1,
|
|
191
192
|
...M(n)
|
|
192
193
|
}) : R.accessor(n.dataIndex ?? n.id, {
|
|
193
194
|
header: n.title,
|
|
194
195
|
id: v,
|
|
195
|
-
sortingFn: typeof n.sorter == "function" ? (ee,
|
|
196
|
+
sortingFn: typeof n.sorter == "function" ? (ee, Ee) => n.sorter(ee.original, Ee.original) : n.sorter,
|
|
196
197
|
enableSorting: !!n.sorter,
|
|
197
198
|
...M(n)
|
|
198
199
|
});
|
|
199
200
|
};
|
|
200
|
-
if (!te(
|
|
201
|
-
const r =
|
|
202
|
-
if (
|
|
203
|
-
const
|
|
204
|
-
return
|
|
201
|
+
if (!te(s.columns)) throw "no columns";
|
|
202
|
+
const r = s.columns.map(({ id: n }) => n);
|
|
203
|
+
if (so(r).length !== r.length) throw "no uniq column ids";
|
|
204
|
+
const l = [];
|
|
205
|
+
return s.rowSelection && s.rowKey && l.push(
|
|
205
206
|
R.accessor(i, {
|
|
206
207
|
id: i,
|
|
207
208
|
enableSorting: !1
|
|
208
209
|
})
|
|
209
|
-
),
|
|
210
|
-
|
|
211
|
-
}), (_.action || _.hoverAction) &&
|
|
212
|
-
R.accessor(
|
|
213
|
-
id:
|
|
214
|
-
header: (
|
|
210
|
+
), s.columns.forEach((n) => {
|
|
211
|
+
l.push(e(n));
|
|
212
|
+
}), (_.action || _.hoverAction) && l.push(
|
|
213
|
+
R.accessor(p.value, {
|
|
214
|
+
id: p.value,
|
|
215
|
+
header: (g = s.actionCol) == null ? void 0 : g.title,
|
|
215
216
|
enableSorting: !1,
|
|
216
|
-
...M(
|
|
217
|
+
...M(s.actionCol)
|
|
217
218
|
})
|
|
218
|
-
),
|
|
219
|
-
}), { toggleWrap:
|
|
220
|
-
() =>
|
|
221
|
-
(e) => e[
|
|
219
|
+
), l;
|
|
220
|
+
}), { toggleWrap: ce, isColumnWrapped: J } = Ro(s), o = Z({}), c = D(() => Object.keys(o.value)), f = D(
|
|
221
|
+
() => s.rowKey ? Ue(s.data, (e) => e.children).map(
|
|
222
|
+
(e) => e[s.rowKey]
|
|
222
223
|
) : []
|
|
223
224
|
), w = () => {
|
|
224
225
|
const e = Object.fromEntries(
|
|
225
226
|
c.value.filter((r) => {
|
|
226
|
-
var
|
|
227
|
-
return !((
|
|
227
|
+
var l;
|
|
228
|
+
return !((l = s.rowSelection) != null && l.preserveSelectedRowKeys) && s.rowKey ? f.value.includes(r) : !0;
|
|
228
229
|
}).map((r) => [r, !0])
|
|
229
230
|
);
|
|
230
231
|
Object.keys(e).length !== c.value.length && (o.value = e, oe(() => {
|
|
231
232
|
var r;
|
|
232
|
-
|
|
233
|
+
K((r = s.rowSelection) == null ? void 0 : r.onChange) && s.rowSelection.onChange(H.value);
|
|
233
234
|
}));
|
|
234
|
-
}, W =
|
|
235
|
+
}, W = D(() => (w(), [...s.data])), P = uo(), E = mo(
|
|
235
236
|
Object.fromEntries(
|
|
236
237
|
Object.keys(P).map((e) => [e, P[e].minWidth])
|
|
237
238
|
),
|
|
@@ -242,17 +243,17 @@ const ko = (B) => {
|
|
|
242
243
|
(e) => {
|
|
243
244
|
F.value = Object.fromEntries(
|
|
244
245
|
O.value.map((r) => {
|
|
245
|
-
var
|
|
246
|
+
var l;
|
|
246
247
|
return [
|
|
247
248
|
r.id,
|
|
248
|
-
te(r == null ? void 0 : r.responsive) ? (
|
|
249
|
+
te(r == null ? void 0 : r.responsive) ? (l = r.responsive) == null ? void 0 : l.includes(e) : !0
|
|
249
250
|
];
|
|
250
251
|
})
|
|
251
252
|
);
|
|
252
253
|
},
|
|
253
254
|
{ immediate: !0 }
|
|
254
255
|
);
|
|
255
|
-
const q = Z([]), h =
|
|
256
|
+
const q = Z([]), h = Je({
|
|
256
257
|
// debugTable: true,
|
|
257
258
|
getSubRows: (e) => e.children,
|
|
258
259
|
enableSorting: !0,
|
|
@@ -279,57 +280,57 @@ const ko = (B) => {
|
|
|
279
280
|
return O.value;
|
|
280
281
|
},
|
|
281
282
|
getRowId(e, r) {
|
|
282
|
-
return
|
|
283
|
+
return s.rowKey ? e[s.rowKey] : r;
|
|
283
284
|
},
|
|
284
285
|
getRowCanExpand: () => !0,
|
|
285
|
-
getCoreRowModel:
|
|
286
|
-
getSortedRowModel:
|
|
286
|
+
getCoreRowModel: Xe(),
|
|
287
|
+
getSortedRowModel: Qe(),
|
|
287
288
|
onRowSelectionChange: (e) => {
|
|
288
289
|
o.value = typeof e == "function" ? e(o.value) : e;
|
|
289
290
|
}
|
|
290
|
-
}), H =
|
|
291
|
+
}), H = D(() => ({
|
|
291
292
|
selectedRowKeys: c.value,
|
|
292
293
|
selectedRows: h.getFilteredSelectedRowModel().flatRows.map((e) => e.original)
|
|
293
294
|
}));
|
|
294
295
|
le(
|
|
295
296
|
() => {
|
|
296
297
|
var e;
|
|
297
|
-
return (e =
|
|
298
|
+
return (e = s.rowSelection) == null ? void 0 : e.selectedRowKeys;
|
|
298
299
|
},
|
|
299
300
|
(e, r) => {
|
|
300
|
-
var
|
|
301
|
-
if ((
|
|
301
|
+
var l, g;
|
|
302
|
+
if ((g = (l = s.rowSelection) == null ? void 0 : l.selectedRowKeys) != null && g.length && !ke(e, r)) {
|
|
302
303
|
const n = Object.fromEntries(
|
|
303
|
-
t(
|
|
304
|
+
t(s.rowSelection.selectedRowKeys ?? Object.keys(o.value)).map(
|
|
304
305
|
(v) => [v, !0]
|
|
305
306
|
)
|
|
306
307
|
);
|
|
307
|
-
|
|
308
|
+
ke(n, o.value) || (o.value = n);
|
|
308
309
|
}
|
|
309
310
|
},
|
|
310
311
|
{ immediate: !0 }
|
|
311
312
|
);
|
|
312
|
-
const Q =
|
|
313
|
+
const Q = D(() => h.getIsAllRowsSelected() ? !0 : h.getIsSomeRowsSelected() ? "indeterminate" : !1), X = (e) => {
|
|
313
314
|
h.getIsSomeRowsSelected() || h.getIsAllRowsSelected() ? h.toggleAllRowsSelected(!1) : h.toggleAllRowsSelected(!0), oe(() => {
|
|
314
|
-
var r,
|
|
315
|
-
|
|
315
|
+
var r, l;
|
|
316
|
+
K((r = s.rowSelection) == null ? void 0 : r.onSelectAll) && s.rowSelection.onSelectAll({ ...H.value, selected: e }), K((l = s.rowSelection) == null ? void 0 : l.onChange) && s.rowSelection.onChange(H.value);
|
|
316
317
|
});
|
|
317
|
-
},
|
|
318
|
-
var
|
|
318
|
+
}, Re = (e, r) => {
|
|
319
|
+
var l;
|
|
319
320
|
r.toggleSelected(e, {
|
|
320
|
-
selectChildren: !((
|
|
321
|
+
selectChildren: !((l = s.rowSelection) != null && l.checkStrictly)
|
|
321
322
|
}), oe(() => {
|
|
322
|
-
var
|
|
323
|
-
|
|
323
|
+
var g, n;
|
|
324
|
+
K((g = s.rowSelection) == null ? void 0 : g.onSelect) && s.rowSelection.onSelect({
|
|
324
325
|
...H.value,
|
|
325
326
|
selected: e,
|
|
326
327
|
record: r.original
|
|
327
|
-
}),
|
|
328
|
+
}), K((n = s.rowSelection) == null ? void 0 : n.onChange) && s.rowSelection.onChange(H.value);
|
|
328
329
|
});
|
|
329
|
-
},
|
|
330
|
-
var r,
|
|
331
|
-
return
|
|
332
|
-
},
|
|
330
|
+
}, $e = (e) => {
|
|
331
|
+
var r, l;
|
|
332
|
+
return K((r = s.rowSelection) == null ? void 0 : r.getCheckboxProps) && ((l = s.rowSelection) == null || l.getCheckboxProps(e)), {};
|
|
333
|
+
}, ae = (e) => {
|
|
333
334
|
var r;
|
|
334
335
|
if (e.getIsSelected()) return !0;
|
|
335
336
|
if ((r = e.subRows) != null && r.length) {
|
|
@@ -337,49 +338,49 @@ const ko = (B) => {
|
|
|
337
338
|
if (e.getIsSomeSelected()) return "indeterminate";
|
|
338
339
|
}
|
|
339
340
|
return !1;
|
|
340
|
-
},
|
|
341
|
-
|
|
341
|
+
}, ue = Ve("target"), { stop: ze } = fo(ue, ([e]) => {
|
|
342
|
+
s.lazyLoading && !s.loading && (e != null && e.isIntersecting) && N("fetch");
|
|
342
343
|
});
|
|
343
|
-
|
|
344
|
-
const { getSkeletonProps:
|
|
344
|
+
Ne(ze);
|
|
345
|
+
const { getSkeletonProps: Be, getThProps: Pe, RenderCell: me, getTdProps: Y, getColProps: Ae, isThVisible: Ie } = _o(s, {
|
|
345
346
|
selectionId: i,
|
|
346
347
|
isColumnWrapped: J
|
|
347
|
-
}),
|
|
348
|
+
}), fe = D(() => Object.keys(o.value).length), Te = () => {
|
|
348
349
|
o.value = {};
|
|
349
|
-
},
|
|
350
|
+
}, De = wo(u, {
|
|
350
351
|
variants: {
|
|
351
|
-
empty:
|
|
352
|
+
empty: co("empty", u)
|
|
352
353
|
}
|
|
353
|
-
}),
|
|
354
|
-
e.key === "a-z" && r.toggleSorting(!1, !1), e.key === "z-a" && r.toggleSorting(!0, !1), e.key === "wrap" &&
|
|
355
|
-
},
|
|
354
|
+
}), de = Oe(0), Ke = ({ item: e }, r) => {
|
|
355
|
+
e.key === "a-z" && r.toggleSorting(!1, !1), e.key === "z-a" && r.toggleSorting(!0, !1), e.key === "wrap" && ce({ id: r.id }), de.value++;
|
|
356
|
+
}, We = (e) => {
|
|
356
357
|
const r = e.getIsSorted();
|
|
357
358
|
if (!r) return "tabler:arrows-up-down";
|
|
358
359
|
if (r === "desc") return "tabler:arrow-down";
|
|
359
360
|
if (r === "asc") return "tabler:arrow-up";
|
|
360
|
-
},
|
|
361
|
+
}, pe = D(
|
|
361
362
|
() => h.getHeaderGroups().map((e) => ({
|
|
362
363
|
...e,
|
|
363
364
|
headers: e.headers.map((r) => ({
|
|
364
365
|
...r,
|
|
365
|
-
bindings:
|
|
366
|
+
bindings: Pe(r.getContext())
|
|
366
367
|
}))
|
|
367
368
|
}))
|
|
368
|
-
),
|
|
369
|
-
const
|
|
370
|
-
if (
|
|
371
|
-
if (
|
|
372
|
-
return { ...
|
|
373
|
-
if (U(
|
|
369
|
+
), ge = (e, r) => {
|
|
370
|
+
const l = se(ie(r ?? {}, "row"));
|
|
371
|
+
if (s.rowProps) {
|
|
372
|
+
if (K(s.rowProps))
|
|
373
|
+
return { ...se(s.rowProps(e, r == null ? void 0 : r.row) ?? {}), ...l };
|
|
374
|
+
if (U(s.rowProps)) return { ...se(s.rowProps), ...l };
|
|
374
375
|
}
|
|
375
|
-
return
|
|
376
|
-
},
|
|
376
|
+
return l;
|
|
377
|
+
}, je = (e, r) => N("rowClick", e, r);
|
|
377
378
|
return (e, r) => (a(), C("div", {
|
|
378
379
|
class: y([t(b)(t(u), "root"), e.rootCls])
|
|
379
380
|
}, [
|
|
380
|
-
d(
|
|
381
|
+
d(ve, {
|
|
381
382
|
"z-index": "1",
|
|
382
|
-
open: !!(
|
|
383
|
+
open: !!(fe.value && _.batchActions),
|
|
383
384
|
placement: "bottom",
|
|
384
385
|
"side-offset": -54,
|
|
385
386
|
"container-cls": "pantograph-tokens pantograph-dark"
|
|
@@ -388,27 +389,27 @@ const ko = (B) => {
|
|
|
388
389
|
$("div", {
|
|
389
390
|
class: y(t(b)(t(u), "batch_actions"))
|
|
390
391
|
}, [
|
|
391
|
-
d(
|
|
392
|
-
text:
|
|
392
|
+
d(go, {
|
|
393
|
+
text: fe.value,
|
|
393
394
|
size: "xsm"
|
|
394
395
|
}, null, 8, ["text"]),
|
|
395
396
|
$("div", {
|
|
396
397
|
class: y(t(b)(t(u), "batch_actions__title"))
|
|
397
|
-
},
|
|
398
|
+
}, Fe(e.batchActionsTitle), 3),
|
|
398
399
|
$("div", {
|
|
399
400
|
class: y(t(b)(t(u), "batch_actions__actions"))
|
|
400
401
|
}, [
|
|
401
|
-
T(e.$slots, "batchActions",
|
|
402
|
+
T(e.$slots, "batchActions", xe(Ge(H.value)))
|
|
402
403
|
], 2),
|
|
403
|
-
d(
|
|
404
|
+
d(Ce, {
|
|
404
405
|
type: "vertical",
|
|
405
406
|
class: y(t(b)(t(u), "batch_actions__divider"))
|
|
406
407
|
}, null, 8, ["class"]),
|
|
407
|
-
d(
|
|
408
|
+
d(be, {
|
|
408
409
|
icon: "tabler:x",
|
|
409
410
|
color: "gray",
|
|
410
411
|
type: "ghost",
|
|
411
|
-
onClick:
|
|
412
|
+
onClick: Te
|
|
412
413
|
})
|
|
413
414
|
], 2)
|
|
414
415
|
]),
|
|
@@ -419,40 +420,40 @@ const ko = (B) => {
|
|
|
419
420
|
$("div", {
|
|
420
421
|
class: y([t(b)(t(u), "scroll_viewport"), e.scrollViewportCls])
|
|
421
422
|
}, [
|
|
422
|
-
d(t(
|
|
423
|
+
d(t(ho), {
|
|
423
424
|
size: e.size,
|
|
424
|
-
style:
|
|
425
|
+
style: qe({
|
|
425
426
|
tableLayout: e.tableLayout
|
|
426
427
|
}),
|
|
427
428
|
class: y([
|
|
428
|
-
t(
|
|
429
|
+
t(De)({
|
|
429
430
|
empty: !t(h).getRowModel().rows.length
|
|
430
431
|
}),
|
|
431
|
-
|
|
432
|
+
s.class
|
|
432
433
|
])
|
|
433
434
|
}, {
|
|
434
435
|
default: m(() => [
|
|
435
436
|
$("colgroup", null, [
|
|
436
|
-
(a(!0), C(z, null, V(t(h).getVisibleLeafColumns(), (
|
|
437
|
-
key:
|
|
437
|
+
(a(!0), C(z, null, V(t(h).getVisibleLeafColumns(), (l) => (a(), C("col", S({
|
|
438
|
+
key: l.id,
|
|
438
439
|
ref_for: !0
|
|
439
|
-
}, t(
|
|
440
|
+
}, t(Ae)(l)), null, 16))), 128))
|
|
440
441
|
]),
|
|
441
|
-
e.noHeader ? I("", !0) : (a(), A(t(
|
|
442
|
+
e.noHeader ? I("", !0) : (a(), A(t(vo), {
|
|
442
443
|
key: 0,
|
|
443
444
|
class: y(e.theadCls),
|
|
444
445
|
sticky: e.stickyHeader
|
|
445
446
|
}, {
|
|
446
447
|
default: m(() => [
|
|
447
|
-
(a(!0), C(z, null, V(
|
|
448
|
-
key:
|
|
448
|
+
(a(!0), C(z, null, V(pe.value, (l, g) => (a(), A(t(x), S({
|
|
449
|
+
key: l.id,
|
|
449
450
|
ref_for: !0
|
|
450
|
-
},
|
|
451
|
+
}, ge(g * -1 - 1)), {
|
|
451
452
|
default: m(() => [
|
|
452
|
-
(a(!0), C(z, null, V(
|
|
453
|
+
(a(!0), C(z, null, V(l.headers, (n) => (a(), C(z, {
|
|
453
454
|
key: n.id
|
|
454
455
|
}, [
|
|
455
|
-
t(
|
|
456
|
+
t(Ie)(g, pe.value.length, n.column.id) ? (a(), A(t(Co), S({
|
|
456
457
|
key: 0,
|
|
457
458
|
ref_for: !0
|
|
458
459
|
}, n.bindings, {
|
|
@@ -472,16 +473,16 @@ const ko = (B) => {
|
|
|
472
473
|
T(e.$slots, "headerCell", S({ ref_for: !0 }, {
|
|
473
474
|
column: n.column.columnDef
|
|
474
475
|
}), () => [
|
|
475
|
-
d(t(
|
|
476
|
+
d(t(me), {
|
|
476
477
|
props: n.getContext(),
|
|
477
478
|
render: n.column.columnDef.header
|
|
478
479
|
}, null, 8, ["props", "render"])
|
|
479
480
|
])
|
|
480
481
|
], 2),
|
|
481
|
-
n.column.getCanSort() ? (a(), A(
|
|
482
|
+
n.column.getCanSort() ? (a(), A(no, {
|
|
482
483
|
key: 0,
|
|
483
484
|
class: y({ hide_filter_action: !n.column.getIsSorted() }),
|
|
484
|
-
icon:
|
|
485
|
+
icon: We(n.column),
|
|
485
486
|
size: "sm",
|
|
486
487
|
type: "ghost",
|
|
487
488
|
variant: "icon",
|
|
@@ -495,24 +496,24 @@ const ko = (B) => {
|
|
|
495
496
|
$("div", {
|
|
496
497
|
class: y(t(b)(t(u), "selection_space"))
|
|
497
498
|
}, null, 2),
|
|
498
|
-
d(
|
|
499
|
+
d(he, {
|
|
499
500
|
rootCls: "w-fit",
|
|
500
501
|
checked: Q.value,
|
|
501
502
|
onChange: X
|
|
502
503
|
}, null, 8, ["checked"])
|
|
503
504
|
], 64))
|
|
504
505
|
], 2),
|
|
505
|
-
![
|
|
506
|
+
![p.value, i].includes(n.column.id) && !n.column.columns.length ? (a(), C("div", {
|
|
506
507
|
key: 0,
|
|
507
508
|
class: y(t(b)(t(u), "header__action"))
|
|
508
509
|
}, [
|
|
509
|
-
(a(), A(
|
|
510
|
+
(a(), A(ve, {
|
|
510
511
|
"z-index": "1",
|
|
511
512
|
placement: "bottom-end",
|
|
512
|
-
key:
|
|
513
|
+
key: de.value
|
|
513
514
|
}, {
|
|
514
515
|
content: m(() => [
|
|
515
|
-
d(
|
|
516
|
+
d(to, {
|
|
516
517
|
onSelect: (v) => Ke(v, n.column)
|
|
517
518
|
}, {
|
|
518
519
|
default: m(() => [
|
|
@@ -541,7 +542,7 @@ const ko = (B) => {
|
|
|
541
542
|
]),
|
|
542
543
|
_: 1
|
|
543
544
|
}),
|
|
544
|
-
d(
|
|
545
|
+
d(Ce)
|
|
545
546
|
], 64)) : I("", !0),
|
|
546
547
|
d(ne, {
|
|
547
548
|
title: "Wrap Column",
|
|
@@ -554,7 +555,7 @@ const ko = (B) => {
|
|
|
554
555
|
}, null, 8, ["size"])
|
|
555
556
|
]),
|
|
556
557
|
trailing: m(() => [
|
|
557
|
-
d(
|
|
558
|
+
d(yo, {
|
|
558
559
|
checked: t(J)(n.column.id)
|
|
559
560
|
}, null, 8, ["checked"])
|
|
560
561
|
]),
|
|
@@ -565,7 +566,7 @@ const ko = (B) => {
|
|
|
565
566
|
}, 1032, ["onSelect"])
|
|
566
567
|
]),
|
|
567
568
|
default: m(() => [
|
|
568
|
-
d(
|
|
569
|
+
d(be, {
|
|
569
570
|
icon: "tabler:dots-vertical",
|
|
570
571
|
size: "sm",
|
|
571
572
|
color: "gray",
|
|
@@ -587,17 +588,17 @@ const ko = (B) => {
|
|
|
587
588
|
]),
|
|
588
589
|
_: 3
|
|
589
590
|
}, 8, ["class", "sticky"])),
|
|
590
|
-
d(t(
|
|
591
|
+
d(t(bo), {
|
|
591
592
|
class: y(e.tbodyCls)
|
|
592
593
|
}, {
|
|
593
594
|
default: m(() => [
|
|
594
|
-
(a(!0), C(z, null, V(t(h).getRowModel().rows, (
|
|
595
|
-
key:
|
|
596
|
-
onClick: (n) =>
|
|
595
|
+
(a(!0), C(z, null, V(t(h).getRowModel().rows, (l, g) => (a(), A(t(x), S({
|
|
596
|
+
key: l.id,
|
|
597
|
+
onClick: (n) => je(l.original, n),
|
|
597
598
|
ref_for: !0
|
|
598
|
-
},
|
|
599
|
+
}, ge(g, { zebra: e.zebra, checked: !!ae(l) })), {
|
|
599
600
|
default: m(() => [
|
|
600
|
-
(a(!0), C(z, null, V(
|
|
601
|
+
(a(!0), C(z, null, V(l.getVisibleCells(), (n) => {
|
|
601
602
|
var v, L;
|
|
602
603
|
return a(), C(z, {
|
|
603
604
|
key: n.id
|
|
@@ -605,11 +606,11 @@ const ko = (B) => {
|
|
|
605
606
|
((v = t(Y)(n.getContext())) == null ? void 0 : v.colSpan) !== 0 && ((L = t(Y)(n.getContext())) == null ? void 0 : L.rowSpan) !== 0 ? (a(), A(t(G), S({
|
|
606
607
|
key: 0,
|
|
607
608
|
ref_for: !0
|
|
608
|
-
}, t(Y)(n.getContext())),
|
|
609
|
+
}, t(Y)(n.getContext())), ye({
|
|
609
610
|
default: m(() => [
|
|
610
|
-
n.column.id ===
|
|
611
|
+
n.column.id === p.value && (_.hoverAction || _.action) ? (a(), C("div", {
|
|
611
612
|
key: 0,
|
|
612
|
-
onClick: r[0] || (r[0] =
|
|
613
|
+
onClick: r[0] || (r[0] = we(() => {
|
|
613
614
|
}, ["stop"])),
|
|
614
615
|
class: y(t(b)(t(u), "action_cell"))
|
|
615
616
|
}, [
|
|
@@ -620,8 +621,8 @@ const ko = (B) => {
|
|
|
620
621
|
{ ref_for: !0 },
|
|
621
622
|
{
|
|
622
623
|
column: n.column.columnDef,
|
|
623
|
-
record:
|
|
624
|
-
index:
|
|
624
|
+
record: l.original,
|
|
625
|
+
index: g
|
|
625
626
|
}
|
|
626
627
|
))
|
|
627
628
|
], 2),
|
|
@@ -629,8 +630,8 @@ const ko = (B) => {
|
|
|
629
630
|
{ ref_for: !0 },
|
|
630
631
|
{
|
|
631
632
|
column: n.column.columnDef,
|
|
632
|
-
record:
|
|
633
|
-
index:
|
|
633
|
+
record: l.original,
|
|
634
|
+
index: g
|
|
634
635
|
}
|
|
635
636
|
))
|
|
636
637
|
], 2)) : n.column.id !== i ? T(e.$slots, "bodyCell", S(
|
|
@@ -640,43 +641,43 @@ const ko = (B) => {
|
|
|
640
641
|
},
|
|
641
642
|
{
|
|
642
643
|
column: n.column.columnDef,
|
|
643
|
-
record:
|
|
644
|
-
index:
|
|
644
|
+
record: l.original,
|
|
645
|
+
index: g
|
|
645
646
|
}
|
|
646
647
|
), () => [
|
|
647
|
-
d(t(
|
|
648
|
+
d(t(me), {
|
|
648
649
|
render: n.column.columnDef.cell,
|
|
649
650
|
props: n.getContext()
|
|
650
651
|
}, null, 8, ["render", "props"])
|
|
651
|
-
]) : e.rowKey &&
|
|
652
|
+
]) : e.rowKey && l.original[e.rowKey] ? (a(), C("div", {
|
|
652
653
|
key: 2,
|
|
653
654
|
class: y(t(b)(t(u), "selection")),
|
|
654
|
-
onClick: r[1] || (r[1] =
|
|
655
|
+
onClick: r[1] || (r[1] = we(() => {
|
|
655
656
|
}, ["stop"]))
|
|
656
657
|
}, [
|
|
657
658
|
$("div", {
|
|
658
659
|
class: y(t(b)(t(u), "selection_space"))
|
|
659
660
|
}, null, 2),
|
|
660
|
-
d(
|
|
661
|
+
d(he, S({
|
|
661
662
|
rootCls: "w-fit",
|
|
662
|
-
disabled: !
|
|
663
|
-
checked:
|
|
664
|
-
onChange: (ee) =>
|
|
663
|
+
disabled: !l.getCanSelect(),
|
|
664
|
+
checked: ae(l),
|
|
665
|
+
onChange: (ee) => Re(ee, l),
|
|
665
666
|
ref_for: !0
|
|
666
|
-
},
|
|
667
|
+
}, $e(l.original)), null, 16, ["disabled", "checked", "onChange"])
|
|
667
668
|
], 2)) : I("", !0)
|
|
668
669
|
]),
|
|
669
670
|
_: 2
|
|
670
671
|
}, [
|
|
671
|
-
_.cellAction && ![
|
|
672
|
+
_.cellAction && ![p.value, i].includes(n.column.id) ? {
|
|
672
673
|
name: "absoluteAction",
|
|
673
674
|
fn: m(() => [
|
|
674
675
|
T(e.$slots, "cellAction", S(
|
|
675
676
|
{ ref_for: !0 },
|
|
676
677
|
{
|
|
677
678
|
column: n.column.columnDef,
|
|
678
|
-
record:
|
|
679
|
-
index:
|
|
679
|
+
record: l.original,
|
|
680
|
+
index: g
|
|
680
681
|
}
|
|
681
682
|
))
|
|
682
683
|
]),
|
|
@@ -688,18 +689,18 @@ const ko = (B) => {
|
|
|
688
689
|
]),
|
|
689
690
|
_: 2
|
|
690
691
|
}, 1040, ["onClick"]))), 128)),
|
|
691
|
-
|
|
692
|
-
key:
|
|
692
|
+
s.loading ? (a(!0), C(z, { key: 0 }, V(t(h).getRowModel().rows.length ? 2 : e.loadingRowCount, (l) => (a(), A(t(x), {
|
|
693
|
+
key: l,
|
|
693
694
|
zebra: e.zebra
|
|
694
695
|
}, {
|
|
695
696
|
default: m(() => [
|
|
696
|
-
(a(!0), C(z, null, V(t(h).getVisibleLeafColumns(), (
|
|
697
|
+
(a(!0), C(z, null, V(t(h).getVisibleLeafColumns(), (g, n) => (a(), A(t(G), { key: n }, {
|
|
697
698
|
default: m(() => [
|
|
698
|
-
|
|
699
|
+
g.id !== i ? T(e.$slots, "skeleton", S({
|
|
699
700
|
key: 0,
|
|
700
701
|
ref_for: !0
|
|
701
|
-
}, { index: n, column:
|
|
702
|
-
d(
|
|
702
|
+
}, { index: n, column: g.columnDef }), () => [
|
|
703
|
+
d(po, S({ ref_for: !0 }, t(Be)(g.columnDef)), null, 16)
|
|
703
704
|
]) : I("", !0)
|
|
704
705
|
]),
|
|
705
706
|
_: 2
|
|
@@ -717,7 +718,7 @@ const ko = (B) => {
|
|
|
717
718
|
empty: ""
|
|
718
719
|
}, {
|
|
719
720
|
default: m(() => [
|
|
720
|
-
d(
|
|
721
|
+
d(ro, S({ type: "advance" }, e.emptyProps), ye({ _: 2 }, [
|
|
721
722
|
_.emptyTitle ? {
|
|
722
723
|
name: "title",
|
|
723
724
|
fn: m(() => [
|
|
@@ -726,21 +727,21 @@ const ko = (B) => {
|
|
|
726
727
|
key: "0"
|
|
727
728
|
} : void 0,
|
|
728
729
|
_.emptyDescription ? {
|
|
729
|
-
name: "
|
|
730
|
+
name: "description",
|
|
730
731
|
fn: m(() => [
|
|
731
732
|
T(e.$slots, "emptyDescription")
|
|
732
733
|
]),
|
|
733
734
|
key: "1"
|
|
734
735
|
} : void 0,
|
|
735
736
|
_.emptyActions ? {
|
|
736
|
-
name: "
|
|
737
|
+
name: "actions",
|
|
737
738
|
fn: m(() => [
|
|
738
739
|
T(e.$slots, "emptyActions")
|
|
739
740
|
]),
|
|
740
741
|
key: "2"
|
|
741
742
|
} : void 0,
|
|
742
743
|
_.emptyImage ? {
|
|
743
|
-
name: "
|
|
744
|
+
name: "image",
|
|
744
745
|
fn: m(() => [
|
|
745
746
|
T(e.$slots, "emptyImage")
|
|
746
747
|
]),
|
|
@@ -760,7 +761,7 @@ const ko = (B) => {
|
|
|
760
761
|
default: m(() => [
|
|
761
762
|
d(t(G), {
|
|
762
763
|
ref_key: "target",
|
|
763
|
-
ref:
|
|
764
|
+
ref: ue,
|
|
764
765
|
"lazy-load-observer": ""
|
|
765
766
|
}, null, 512)
|
|
766
767
|
]),
|
|
@@ -781,5 +782,5 @@ const ko = (B) => {
|
|
|
781
782
|
}
|
|
782
783
|
});
|
|
783
784
|
export {
|
|
784
|
-
|
|
785
|
+
Xo as _
|
|
785
786
|
};
|