@pantograph/vue 0.12.1 → 0.13.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-CiJO-TtM.js → ActionButton.vue_vue_type_script_setup_true_lang-Bkuz_iUP.js} +2 -2
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-ViFlltdC.js → ActionButton.vue_vue_type_script_setup_true_lang-Bq-Tb6pj.js} +1 -1
- package/dist/Alert/Alert.d.ts +52 -0
- package/dist/Alert/Alert.model.d.ts +2 -0
- package/dist/Alert/index.d.ts +2 -0
- package/dist/Alert/index.js +121 -0
- package/dist/Alert/index.umd.cjs +1 -0
- 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-BFe4hxYW.js → Avatar.vue_vue_type_style_index_0_lang-BBnmLfTi.js} +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-B327aIKw.js → Avatar.vue_vue_type_style_index_0_lang-BHfzjXmT.js} +3 -3
- 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-DYK5srGm.js → Badge.vue_vue_type_script_setup_true_lang-8c7akyTm.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-Bad9nnGa.js → Badge.vue_vue_type_script_setup_true_lang-CeXpqXtw.js} +2 -2
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-BcdmTWX7.js → BaseBadge.vue_vue_type_style_index_0_lang-DnB978eI.js} +2 -2
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-4kmojL6W.js → BaseButton.vue_vue_type_style_index_0_lang-IWrQ3G21.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-DXgQ3ris.js → BaseButton.vue_vue_type_style_index_0_lang-hgXHwNIC.js} +4 -4
- 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-2DEfrzzC.js → Button.vue_vue_type_script_setup_true_lang-CJv66ooM.js} +2 -2
- package/dist/{Button.vue_vue_type_script_setup_true_lang-D6IZHvUZ.js → Button.vue_vue_type_script_setup_true_lang-w8EXhfob.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-D6HTNzfn.js → Checkbox.vue_vue_type_style_index_0_lang-Bj-0gSIp.js} +2 -2
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-mD-mS-u3.js → Checkbox.vue_vue_type_style_index_0_lang-D9moel7o.js} +1 -1
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- 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-CniJlpEJ.js → ColorPicker.vue_vue_type_style_index_0_lang-Byz3evrQ.js} +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-DN82VYCI.js → ColorPicker.vue_vue_type_style_index_0_lang-zw5qynUn.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-CmiVBddf.js → ColorSwatch.vue_vue_type_style_index_0_lang-1YgCj4lQ.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-ZEuyslU3.js → ColorSwatch.vue_vue_type_style_index_0_lang-IJyJA0LN.js} +3 -3
- 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-DUPU05Mk.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-DJDJEbIy.js} +7 -7
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-c1ySzkyZ.js +1 -0
- 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-BoQP08i6.js → ColorTrigger.vue_vue_type_style_index_0_lang-CmGF_rFV.js} +4 -4
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-DNapwSG1.js → ColorTrigger.vue_vue_type_style_index_0_lang-Cqjja8Kz.js} +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DataTable/index.js +311 -297
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/Empty/index.js +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-BlW5utb2.js → Empty.vue_vue_type_style_index_0_lang-ylfi6RV1.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-B9mpfDyP.js → FloatButton.vue_vue_type_script_setup_true_lang-B9DvMjig.js} +2 -2
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-DM0rSSdK.js → FloatButton.vue_vue_type_script_setup_true_lang-Bd4BeKfC.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-D0SLQ2VT.js → GraphicalObject.vue_vue_type_script_setup_true_lang-B57gv_5O.js} +2 -2
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BNS3O4Gh.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DI3DhvVj.js} +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon.vue_vue_type_style_index_0_lang-BlmMv3wD.js → Icon.vue_vue_type_style_index_0_lang-BFTlmCAO.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-BhcKAsTi.js → IconButton.vue_vue_type_script_setup_true_lang-CI37BUhQ.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BhMR_Y-g.js → IconButton.vue_vue_type_script_setup_true_lang-DwSwWylD.js} +2 -2
- package/dist/Image/index.js +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-C_S48q8S.js → Image.vue_vue_type_style_index_0_lang-Ba5p3XBO.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-Dcp0Pbh1.js → IndentLevel.vue_vue_type_style_index_0_lang-Bqr8NvMZ.js} +3 -3
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BMvDCqMT.js → IndentLevel.vue_vue_type_style_index_0_lang-ClQO0x1v.js} +1 -1
- 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-uTHr60wL.js → Indicator.vue_vue_type_script_setup_true_lang-BNc4K0mZ.js} +2 -2
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-1Tv8ZzfK.js → Indicator.vue_vue_type_script_setup_true_lang-BX9JOpMY.js} +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-Dj4efG7U.js +1 -0
- package/dist/{Input.vue_vue_type_style_index_0_lang-xQIFQmTg.js → Input.vue_vue_type_style_index_0_lang-osOWuv4Y.js} +51 -50
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-BQINoskR.js → Kbd.vue_vue_type_style_index_0_lang-AT19IxM-.js} +1 -1
- package/dist/Link/Link.d.ts +36 -0
- package/dist/Link/Link.model.d.ts +2 -0
- package/dist/Link/index.d.ts +2 -0
- package/dist/Link/index.js +6 -0
- package/dist/Link/index.umd.cjs +1 -0
- package/dist/Link.vue_vue_type_style_index_0_lang-Dp25vaUV.js +78 -0
- package/dist/Link.vue_vue_type_style_index_0_lang-ZgPgAnUp.js +1 -0
- 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-BTO-YwB5.js +463 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-i1Np-1Ek.js +1 -0
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -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-_D1J6CSu.js → Popover.vue_vue_type_style_index_0_lang-By7sWU4H.js} +1 -1
- package/dist/{Popover.vue_vue_type_style_index_0_lang-CIv6R_D2.js → Popover.vue_vue_type_style_index_0_lang-CAikz7cp.js} +3 -3
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-d6MmLjW3.js → RadioGroup.vue_vue_type_script_setup_true_lang-BsA4i2NS.js} +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-DKL0EQQ3.js → RadioGroup.vue_vue_type_script_setup_true_lang-nmPTqQWQ.js} +1 -1
- package/dist/Shortcut/index.js +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-BC2nLIR_.js → Shortcut.vue_vue_type_style_index_0_lang-DWc3jZLn.js} +2 -2
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-CBIZtgX4.js → Spinner.vue_vue_type_style_index_0_lang-BXXS6me6.js} +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-DnmgMCHT.js → Switch.vue_vue_type_style_index_0_lang-DQMhplS7.js} +2 -2
- package/dist/{Switch.vue_vue_type_style_index_0_lang-BBTDR8Er.js → Switch.vue_vue_type_style_index_0_lang-KqZBQVZb.js} +1 -1
- 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-CtQ_g29v.js +1 -0
- package/dist/{Tree.vue_vue_type_style_index_0_lang-B3BLoWLT.js → Tree.vue_vue_type_style_index_0_lang-yfNHbbTS.js} +7 -7
- package/dist/{_baseIsEqual-BknLKouD.js → _baseIsEqual-D6OIyc9x.js} +46 -45
- package/dist/_baseIsEqual-DysaakgW.js +1 -0
- package/dist/_flatRest-B2xTunyg.js +1 -0
- package/dist/_flatRest-BFIiKgYv.js +422 -0
- package/dist/_getTag-C1N7G_It.js +140 -0
- package/dist/_getTag-DaDHQQf0.js +1 -0
- package/dist/{cloneDeep-C4ka1P8m.js → cloneDeep-BNNspOg-.js} +1 -1
- package/dist/cloneDeep-CNkGIW_B.js +1 -0
- package/dist/{get-B14Mml42.js → get-9cMI4wkc.js} +1 -1
- package/dist/{get-DhKz3lGB.js → get-w4jLplqh.js} +1 -1
- package/dist/{index-D5U1ryWK.js → index-BCMo0YVL.js} +1 -1
- package/dist/index.js +27 -27
- package/dist/index.umd.cjs +1 -1
- package/dist/{isArray-CdbPONHA.js → isArray-DGJFqUD8.js} +2 -2
- package/dist/isEmpty-BfqMcSem.js +21 -0
- package/dist/isEmpty-DYtn8rNT.js +1 -0
- package/dist/{isNumber-BopDesuz.js → isNumber-CFhCrbTP.js} +3 -3
- package/dist/omit-6FeILhm3.js +1 -0
- package/dist/{omit-CD3OjwFx.js → omit-BsFVls5E.js} +62 -61
- package/dist/pick-CJI0LhLm.js +55 -0
- package/dist/pick-DUYr5oPc.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/uniq-BoseFDe4.js +1 -0
- package/dist/{uniq-DSVd52ma.js → uniq-DI-nuzAz.js} +3 -3
- package/package.json +11 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DEeU3fwR.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-XtKgk5B8.js +0 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-BSR_8MKN.js +0 -482
- package/dist/Menu.vue_vue_type_style_index_0_lang-DzZ6brMU.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-DItSzkar.js +0 -1
- package/dist/_baseIsEqual-DP4HkppL.js +0 -1
- package/dist/_flatRest-CreY2VBo.js +0 -1
- package/dist/_flatRest-Dx0ZZgOx.js +0 -555
- package/dist/cloneDeep-DkiDLLTT.js +0 -1
- package/dist/omit-C4BrcXKG.js +0 -1
- package/dist/pick-8ze0sbWb.js +0 -54
- package/dist/pick-Db06rbL5.js +0 -1
- package/dist/uniq-ChIEzCZe.js +0 -1
package/dist/DataTable/index.js
CHANGED
|
@@ -1,150 +1,151 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
import { createColumnHelper as
|
|
3
|
-
import { b as
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import {
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { o as
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
12
|
-
import { getBemBlock 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 {
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { h as Ee, ref as Z, computed as D, watch as le, defineComponent as He, useSlots as Le, unref as t, useTemplateRef as Me, onBeforeUnmount as Ve, shallowRef as Ne, createElementBlock as v, openBlock as a, normalizeClass as y, createVNode as d, withCtx as m, createElementVNode as $, normalizeStyle as Oe, createBlock as A, createCommentVNode as I, Fragment as z, renderList as V, mergeProps as _, renderSlot as T, createSlots as ge, withModifiers as ye, toDisplayString as qe, normalizeProps as Fe, guardReactiveProps as xe, nextTick as oe } from "vue";
|
|
2
|
+
import { createColumnHelper as Ge, flattenBy as Ze, useVueTable as Ue, getSortedRowModel as Je, getCoreRowModel as Qe } from "@tanstack/vue-table";
|
|
3
|
+
import { b as Xe } from "../_baseIsEqual-D6OIyc9x.js";
|
|
4
|
+
import { a as Ye, b as eo, i as te } from "../isArray-DGJFqUD8.js";
|
|
5
|
+
import { _ as we } from "../Checkbox.vue_vue_type_style_index_0_lang-Bj-0gSIp.js";
|
|
6
|
+
import { _ as oo, a as ne } from "../Menu.vue_vue_type_style_index_0_lang-BTO-YwB5.js";
|
|
7
|
+
import { _ as to } from "../ActionButton.vue_vue_type_script_setup_true_lang-Bkuz_iUP.js";
|
|
8
|
+
import { _ as no } from "../Empty.vue_vue_type_style_index_0_lang-ylfi6RV1.js";
|
|
9
|
+
import { o as se } from "../omit-BsFVls5E.js";
|
|
10
|
+
import { u as ro } from "../uniq-DI-nuzAz.js";
|
|
11
|
+
import { f as U, h as K } from "../_getTag-C1N7G_It.js";
|
|
12
|
+
import { getBemBlock as lo, wgt_pre as so, generateVariantClassList as io, getBemElement as C, usePCId as co } from "@pantograph/utils";
|
|
13
|
+
import { getBreakpoints as ao } from "@pantograph/tokens";
|
|
14
|
+
import { useBreakpoints as uo, useIntersectionObserver as mo } from "@vueuse/core";
|
|
15
|
+
import { _ as fo } from "../Skeleton.vue_vue_type_style_index_0_lang-aSGb2hn6.js";
|
|
16
|
+
import { _ as he } from "../Popover.vue_vue_type_style_index_0_lang-CAikz7cp.js";
|
|
17
|
+
import { _ as po } from "../Badge.vue_vue_type_script_setup_true_lang-CeXpqXtw.js";
|
|
18
|
+
import { _ as be } from "../Divider.vue_vue_type_style_index_0_lang-DapqjSGc.js";
|
|
19
|
+
import { _ as ve } from "../IconButton.vue_vue_type_script_setup_true_lang-DwSwWylD.js";
|
|
20
|
+
import { _ as re } from "../Icon.vue_vue_type_style_index_0_lang-BFTlmCAO.js";
|
|
21
|
+
import { _ as go } from "../Switch.vue_vue_type_style_index_0_lang-DQMhplS7.js";
|
|
22
|
+
import { g as Ce } from "../get-9cMI4wkc.js";
|
|
23
|
+
import { cva as yo } from "class-variance-authority";
|
|
24
|
+
import { i as Se } from "../isEmpty-BfqMcSem.js";
|
|
25
|
+
import { _ as wo, e as ho, c as x, a as bo, d as vo, b as G } from "../THead.vue_vue_type_style_index_0_lang-B4yro5EP.js";
|
|
26
|
+
function _e(B, k) {
|
|
27
|
+
return Xe(B, k);
|
|
27
28
|
}
|
|
28
|
-
const
|
|
29
|
+
const Co = (B, { isColumnWrapped: k, selectionId: l }) => {
|
|
29
30
|
const N = (o) => {
|
|
30
|
-
var
|
|
31
|
-
const
|
|
31
|
+
var f;
|
|
32
|
+
const c = (w) => w === "list" ? "md" : "sm";
|
|
32
33
|
return {
|
|
33
34
|
...(o == null ? void 0 : o.skeletonProps) ?? {},
|
|
34
35
|
style: "width: 100%",
|
|
35
|
-
size:
|
|
36
|
+
size: c((f = o == null ? void 0 : o.skeletonProps) == null ? void 0 : f.type)
|
|
36
37
|
};
|
|
37
|
-
},
|
|
38
|
-
var
|
|
39
|
-
const
|
|
40
|
-
return
|
|
38
|
+
}, S = (o) => {
|
|
39
|
+
var f, w;
|
|
40
|
+
const c = (f = o.props) == null ? void 0 : f.column.columnDef;
|
|
41
|
+
return K(c == null ? void 0 : c.render) && o.props.row ? (w = c == null ? void 0 : c.render) == null ? void 0 : w.call(c, {
|
|
41
42
|
index: o.props.row.index,
|
|
42
43
|
record: o.props.row.original,
|
|
43
|
-
column:
|
|
44
|
-
}) : typeof o.render == "function" || typeof o.render == "object" ?
|
|
44
|
+
column: se(c, "render")
|
|
45
|
+
}) : typeof o.render == "function" || typeof o.render == "object" ? Ee(o.render, o.props) : o.render;
|
|
45
46
|
}, u = (o) => {
|
|
46
|
-
let
|
|
47
|
+
let c = {};
|
|
47
48
|
if (o) {
|
|
48
|
-
const
|
|
49
|
-
(
|
|
50
|
-
width:
|
|
51
|
-
maxWidth:
|
|
52
|
-
minWidth:
|
|
53
|
-
overflow:
|
|
49
|
+
const f = (j) => Number(j) >= 0 ? `${j}px` : j, { width: w, maxWidth: W, minWidth: P } = o;
|
|
50
|
+
(w || W || P) && (c = {
|
|
51
|
+
width: f(w),
|
|
52
|
+
maxWidth: f(W),
|
|
53
|
+
minWidth: f(P),
|
|
54
|
+
overflow: w || W ? "hidden" : void 0
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
|
-
return
|
|
57
|
-
},
|
|
58
|
-
var
|
|
59
|
-
let
|
|
60
|
-
return ((
|
|
61
|
-
},
|
|
62
|
-
var
|
|
57
|
+
return c;
|
|
58
|
+
}, R = {}, i = (o, c = !0) => {
|
|
59
|
+
var w;
|
|
60
|
+
let f = 1;
|
|
61
|
+
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
|
+
}, g = (o, c = {}) => {
|
|
63
|
+
var f;
|
|
63
64
|
if (o != null && o.column) {
|
|
64
|
-
const
|
|
65
|
-
if (
|
|
66
|
-
let j =
|
|
67
|
-
const { customCell: E, class:
|
|
68
|
-
if (
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
71
|
-
const { wrap: H, colSpan:
|
|
72
|
-
j = j || (H ?? !1),
|
|
65
|
+
const w = (f = o == null ? void 0 : o.column) == null ? void 0 : f.columnDef, W = [], P = {};
|
|
66
|
+
if (U(w)) {
|
|
67
|
+
let j = k(o.column.id);
|
|
68
|
+
const { customCell: E, class: F } = w;
|
|
69
|
+
if (Se(F) || W.push(F), E && (U(E) || K(E))) {
|
|
70
|
+
const q = (h) => {
|
|
71
|
+
if (U(h)) {
|
|
72
|
+
const { wrap: H, colSpan: Q, rowSpan: X } = h;
|
|
73
|
+
j = j || (H ?? !1), P.colSpan = Q, P.rowSpan = X;
|
|
73
74
|
}
|
|
74
75
|
};
|
|
75
|
-
|
|
76
|
+
K(E) && o.row ? q(
|
|
76
77
|
E({
|
|
77
78
|
index: o.row.index,
|
|
78
79
|
record: o.row.original,
|
|
79
|
-
column:
|
|
80
|
+
column: w
|
|
80
81
|
})
|
|
81
|
-
) :
|
|
82
|
+
) : q(E);
|
|
82
83
|
}
|
|
83
|
-
o.header ?
|
|
84
|
+
o.header ? P.rowSpan = i(o.header) : j && (P.wrap = !0);
|
|
84
85
|
}
|
|
85
86
|
return {
|
|
86
|
-
class:
|
|
87
|
-
...
|
|
88
|
-
...
|
|
87
|
+
class: Se(W) ? void 0 : W,
|
|
88
|
+
...P,
|
|
89
|
+
...c
|
|
89
90
|
};
|
|
90
91
|
}
|
|
91
92
|
return {};
|
|
92
93
|
};
|
|
93
94
|
return {
|
|
94
95
|
getSkeletonProps: N,
|
|
95
|
-
RenderCell:
|
|
96
|
+
RenderCell: S,
|
|
96
97
|
getThProps: (o) => {
|
|
97
|
-
var
|
|
98
|
-
return
|
|
99
|
-
colSpan: (
|
|
100
|
-
"data-has-children": ((
|
|
98
|
+
var c, f, w;
|
|
99
|
+
return g(o, {
|
|
100
|
+
colSpan: (c = o == null ? void 0 : o.header) == null ? void 0 : c.colSpan,
|
|
101
|
+
"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
|
|
101
102
|
});
|
|
102
103
|
},
|
|
103
|
-
getTdProps: (o) =>
|
|
104
|
+
getTdProps: (o) => g(o),
|
|
104
105
|
getColProps: (o) => {
|
|
105
|
-
const
|
|
106
|
-
return o.id === l && (
|
|
107
|
-
style:
|
|
106
|
+
const c = u(o.columnDef);
|
|
107
|
+
return o.id === l && (c.width = "var(--pt-dimension-2800)"), {
|
|
108
|
+
style: c
|
|
108
109
|
};
|
|
109
110
|
},
|
|
110
|
-
isThVisible: (o,
|
|
111
|
+
isThVisible: (o, c, f) => R[f] === 1 ? !0 : c - o === R[f]
|
|
111
112
|
};
|
|
112
113
|
};
|
|
113
|
-
var
|
|
114
|
-
function
|
|
115
|
-
return B === !0 || B === !1 ||
|
|
114
|
+
var So = "[object Boolean]";
|
|
115
|
+
function _o(B) {
|
|
116
|
+
return B === !0 || B === !1 || Ye(B) && eo(B) == So;
|
|
116
117
|
}
|
|
117
|
-
const
|
|
118
|
-
const
|
|
119
|
-
if (i) return
|
|
120
|
-
},
|
|
121
|
-
var
|
|
122
|
-
return !!((
|
|
118
|
+
const ko = (B) => {
|
|
119
|
+
const k = Z([]), l = (i) => i ? k.value.findIndex((g) => g.id === i) : -1, N = (i) => {
|
|
120
|
+
if (i) return k.value.find((g) => g.id === i);
|
|
121
|
+
}, S = (i) => {
|
|
122
|
+
var g;
|
|
123
|
+
return !!((g = N(i)) != null && g.wrap);
|
|
123
124
|
}, u = (i) => {
|
|
124
|
-
const { id:
|
|
125
|
-
if (!
|
|
126
|
-
const
|
|
127
|
-
return O >= 0 ?
|
|
128
|
-
},
|
|
129
|
-
() => (B.columns ?? []).filter((i) =>
|
|
125
|
+
const { id: g } = i;
|
|
126
|
+
if (!g) return !1;
|
|
127
|
+
const M = i.wrap ?? !S(g), O = l(g);
|
|
128
|
+
return O >= 0 ? k.value[O] = { id: g, wrap: M } : k.value.push({ id: g, wrap: M }), !0;
|
|
129
|
+
}, R = D(
|
|
130
|
+
() => (B.columns ?? []).filter((i) => _o(i.wrap)).map((i) => ({
|
|
130
131
|
id: i.id,
|
|
131
132
|
wrap: !!i.wrap
|
|
132
133
|
}))
|
|
133
134
|
);
|
|
134
135
|
return le(
|
|
135
|
-
|
|
136
|
+
R,
|
|
136
137
|
(i) => {
|
|
137
|
-
|
|
138
|
+
k.value = [...k.value, ...i];
|
|
138
139
|
},
|
|
139
140
|
{
|
|
140
141
|
immediate: !0,
|
|
141
142
|
deep: !0
|
|
142
143
|
}
|
|
143
144
|
), {
|
|
144
|
-
isColumnWrapped:
|
|
145
|
+
isColumnWrapped: S,
|
|
145
146
|
toggleWrap: u
|
|
146
147
|
};
|
|
147
|
-
},
|
|
148
|
+
}, Jo = /* @__PURE__ */ He({
|
|
148
149
|
__name: "DataTable",
|
|
149
150
|
props: {
|
|
150
151
|
columns: {},
|
|
@@ -169,107 +170,108 @@ const _o = (B) => {
|
|
|
169
170
|
zebra: { type: Boolean, default: !0 },
|
|
170
171
|
tableLayout: { default: "fixed" },
|
|
171
172
|
actionCol: {},
|
|
172
|
-
noHeader: { type: Boolean }
|
|
173
|
+
noHeader: { type: Boolean },
|
|
174
|
+
rowProps: {}
|
|
173
175
|
},
|
|
174
176
|
emits: ["fetch", "rowClick"],
|
|
175
|
-
setup(B, { emit:
|
|
176
|
-
const l = B, N =
|
|
177
|
+
setup(B, { emit: k }) {
|
|
178
|
+
const l = B, N = k, S = Le(), u = lo("data_table", so), R = Ge(), i = `$${u}_selection$`, g = D(() => {
|
|
177
179
|
var e;
|
|
178
180
|
return ((e = l.actionCol) == null ? void 0 : e.id) ?? `$${u}_action$`;
|
|
179
|
-
}),
|
|
180
|
-
var
|
|
181
|
+
}), M = (e) => se(e ?? {}, "title", "sorter", "columns", "id", "dataIndex"), O = D(() => {
|
|
182
|
+
var p;
|
|
181
183
|
const e = (n) => {
|
|
182
184
|
var L;
|
|
183
|
-
const b = n.id ??
|
|
184
|
-
return
|
|
185
|
+
const b = n.id ?? co(`${u}--col`);
|
|
186
|
+
return te(Ce(n, l.childrenColumnName)) ? R.group({
|
|
185
187
|
header: n.title,
|
|
186
188
|
id: b,
|
|
187
|
-
columns: (L =
|
|
189
|
+
columns: (L = Ce(n, l.childrenColumnName) ?? []) == null ? void 0 : L.map(e),
|
|
188
190
|
enableSorting: !1,
|
|
189
|
-
...
|
|
190
|
-
}) :
|
|
191
|
+
...M(n)
|
|
192
|
+
}) : R.accessor(n.dataIndex ?? n.id, {
|
|
191
193
|
header: n.title,
|
|
192
194
|
id: b,
|
|
193
|
-
sortingFn: typeof n.sorter == "function" ? (
|
|
195
|
+
sortingFn: typeof n.sorter == "function" ? (ee, je) => n.sorter(ee.original, je.original) : n.sorter,
|
|
194
196
|
enableSorting: !!n.sorter,
|
|
195
|
-
...
|
|
197
|
+
...M(n)
|
|
196
198
|
});
|
|
197
199
|
};
|
|
198
|
-
if (!
|
|
200
|
+
if (!te(l.columns)) throw "no columns";
|
|
199
201
|
const r = l.columns.map(({ id: n }) => n);
|
|
200
|
-
if (
|
|
202
|
+
if (ro(r).length !== r.length) throw "no uniq column ids";
|
|
201
203
|
const s = [];
|
|
202
204
|
return l.rowSelection && l.rowKey && s.push(
|
|
203
|
-
|
|
205
|
+
R.accessor(i, {
|
|
204
206
|
id: i,
|
|
205
207
|
enableSorting: !1
|
|
206
208
|
})
|
|
207
209
|
), l.columns.forEach((n) => {
|
|
208
210
|
s.push(e(n));
|
|
209
|
-
}), (
|
|
210
|
-
|
|
211
|
-
id:
|
|
212
|
-
header: (
|
|
211
|
+
}), (S.action || S.hoverAction) && s.push(
|
|
212
|
+
R.accessor(g.value, {
|
|
213
|
+
id: g.value,
|
|
214
|
+
header: (p = l.actionCol) == null ? void 0 : p.title,
|
|
213
215
|
enableSorting: !1,
|
|
214
|
-
...
|
|
216
|
+
...M(l.actionCol)
|
|
215
217
|
})
|
|
216
218
|
), s;
|
|
217
|
-
}), { toggleWrap:
|
|
218
|
-
() => l.rowKey ?
|
|
219
|
+
}), { toggleWrap: ie, isColumnWrapped: J } = ko(l), o = Z({}), c = D(() => Object.keys(o.value)), f = D(
|
|
220
|
+
() => l.rowKey ? Ze(l.data, (e) => e.children).map(
|
|
219
221
|
(e) => e[l.rowKey]
|
|
220
222
|
) : []
|
|
221
|
-
),
|
|
223
|
+
), w = () => {
|
|
222
224
|
const e = Object.fromEntries(
|
|
223
|
-
|
|
225
|
+
c.value.filter((r) => {
|
|
224
226
|
var s;
|
|
225
|
-
return !((s = l.rowSelection) != null && s.preserveSelectedRowKeys) && l.rowKey ?
|
|
227
|
+
return !((s = l.rowSelection) != null && s.preserveSelectedRowKeys) && l.rowKey ? f.value.includes(r) : !0;
|
|
226
228
|
}).map((r) => [r, !0])
|
|
227
229
|
);
|
|
228
|
-
Object.keys(e).length !==
|
|
230
|
+
Object.keys(e).length !== c.value.length && (o.value = e, oe(() => {
|
|
229
231
|
var r;
|
|
230
|
-
|
|
232
|
+
K((r = l.rowSelection) == null ? void 0 : r.onChange) && l.rowSelection.onChange(H.value);
|
|
231
233
|
}));
|
|
232
|
-
},
|
|
234
|
+
}, W = D(() => (w(), [...l.data])), P = ao(), E = uo(
|
|
233
235
|
Object.fromEntries(
|
|
234
|
-
Object.keys(
|
|
236
|
+
Object.keys(P).map((e) => [e, P[e].minWidth])
|
|
235
237
|
),
|
|
236
238
|
{ strategy: "min-width" }
|
|
237
|
-
).active(),
|
|
239
|
+
).active(), F = Z({});
|
|
238
240
|
le(
|
|
239
241
|
E,
|
|
240
242
|
(e) => {
|
|
241
|
-
|
|
243
|
+
F.value = Object.fromEntries(
|
|
242
244
|
O.value.map((r) => {
|
|
243
245
|
var s;
|
|
244
246
|
return [
|
|
245
247
|
r.id,
|
|
246
|
-
|
|
248
|
+
te(r == null ? void 0 : r.responsive) ? (s = r.responsive) == null ? void 0 : s.includes(e) : !0
|
|
247
249
|
];
|
|
248
250
|
})
|
|
249
251
|
);
|
|
250
252
|
},
|
|
251
253
|
{ immediate: !0 }
|
|
252
254
|
);
|
|
253
|
-
const
|
|
255
|
+
const q = Z([]), h = Ue({
|
|
254
256
|
// debugTable: true,
|
|
255
257
|
getSubRows: (e) => e.children,
|
|
256
258
|
enableSorting: !0,
|
|
257
259
|
enableMultiSort: !0,
|
|
258
260
|
get data() {
|
|
259
|
-
return
|
|
261
|
+
return W.value;
|
|
260
262
|
},
|
|
261
263
|
onSortingChange: (e) => {
|
|
262
|
-
|
|
264
|
+
q.value = typeof e == "function" ? e(q.value) : e;
|
|
263
265
|
},
|
|
264
266
|
state: {
|
|
265
267
|
get sorting() {
|
|
266
|
-
return
|
|
268
|
+
return q.value;
|
|
267
269
|
},
|
|
268
270
|
get rowSelection() {
|
|
269
271
|
return o.value;
|
|
270
272
|
},
|
|
271
273
|
get columnVisibility() {
|
|
272
|
-
return
|
|
274
|
+
return F.value;
|
|
273
275
|
}
|
|
274
276
|
},
|
|
275
277
|
enableRowSelection: !0,
|
|
@@ -280,14 +282,14 @@ const _o = (B) => {
|
|
|
280
282
|
return l.rowKey ? e[l.rowKey] : r;
|
|
281
283
|
},
|
|
282
284
|
getRowCanExpand: () => !0,
|
|
283
|
-
getCoreRowModel:
|
|
284
|
-
getSortedRowModel:
|
|
285
|
+
getCoreRowModel: Qe(),
|
|
286
|
+
getSortedRowModel: Je(),
|
|
285
287
|
onRowSelectionChange: (e) => {
|
|
286
288
|
o.value = typeof e == "function" ? e(o.value) : e;
|
|
287
289
|
}
|
|
288
290
|
}), H = D(() => ({
|
|
289
|
-
selectedRowKeys:
|
|
290
|
-
selectedRows:
|
|
291
|
+
selectedRowKeys: c.value,
|
|
292
|
+
selectedRows: h.getFilteredSelectedRowModel().flatRows.map((e) => e.original)
|
|
291
293
|
}));
|
|
292
294
|
le(
|
|
293
295
|
() => {
|
|
@@ -295,39 +297,39 @@ const _o = (B) => {
|
|
|
295
297
|
return (e = l.rowSelection) == null ? void 0 : e.selectedRowKeys;
|
|
296
298
|
},
|
|
297
299
|
(e, r) => {
|
|
298
|
-
var s,
|
|
299
|
-
if ((
|
|
300
|
+
var s, p;
|
|
301
|
+
if ((p = (s = l.rowSelection) == null ? void 0 : s.selectedRowKeys) != null && p.length && !_e(e, r)) {
|
|
300
302
|
const n = Object.fromEntries(
|
|
301
303
|
t(l.rowSelection.selectedRowKeys ?? Object.keys(o.value)).map(
|
|
302
304
|
(b) => [b, !0]
|
|
303
305
|
)
|
|
304
306
|
);
|
|
305
|
-
|
|
307
|
+
_e(n, o.value) || (o.value = n);
|
|
306
308
|
}
|
|
307
309
|
},
|
|
308
310
|
{ immediate: !0 }
|
|
309
311
|
);
|
|
310
|
-
const
|
|
311
|
-
|
|
312
|
+
const Q = D(() => h.getIsAllRowsSelected() ? !0 : h.getIsSomeRowsSelected() ? "indeterminate" : !1), X = (e) => {
|
|
313
|
+
h.getIsSomeRowsSelected() || h.getIsAllRowsSelected() ? h.toggleAllRowsSelected(!1) : h.toggleAllRowsSelected(!0), oe(() => {
|
|
312
314
|
var r, s;
|
|
313
|
-
|
|
315
|
+
K((r = l.rowSelection) == null ? void 0 : r.onSelectAll) && l.rowSelection.onSelectAll({ ...H.value, selected: e }), K((s = l.rowSelection) == null ? void 0 : s.onChange) && l.rowSelection.onChange(H.value);
|
|
314
316
|
});
|
|
315
|
-
},
|
|
317
|
+
}, ke = (e, r) => {
|
|
316
318
|
var s;
|
|
317
319
|
r.toggleSelected(e, {
|
|
318
320
|
selectChildren: !((s = l.rowSelection) != null && s.checkStrictly)
|
|
319
|
-
}),
|
|
320
|
-
var
|
|
321
|
-
|
|
321
|
+
}), oe(() => {
|
|
322
|
+
var p, n;
|
|
323
|
+
K((p = l.rowSelection) == null ? void 0 : p.onSelect) && l.rowSelection.onSelect({
|
|
322
324
|
...H.value,
|
|
323
325
|
selected: e,
|
|
324
326
|
record: r.original
|
|
325
|
-
}),
|
|
327
|
+
}), K((n = l.rowSelection) == null ? void 0 : n.onChange) && l.rowSelection.onChange(H.value);
|
|
326
328
|
});
|
|
327
|
-
},
|
|
329
|
+
}, Re = (e) => {
|
|
328
330
|
var r, s;
|
|
329
|
-
return
|
|
330
|
-
},
|
|
331
|
+
return K((r = l.rowSelection) == null ? void 0 : r.getCheckboxProps) && ((s = l.rowSelection) == null || s.getCheckboxProps(e)), {};
|
|
332
|
+
}, ce = (e) => {
|
|
331
333
|
var r;
|
|
332
334
|
if (e.getIsSelected()) return !0;
|
|
333
335
|
if ((r = e.subRows) != null && r.length) {
|
|
@@ -335,142 +337,151 @@ const _o = (B) => {
|
|
|
335
337
|
if (e.getIsSomeSelected()) return "indeterminate";
|
|
336
338
|
}
|
|
337
339
|
return !1;
|
|
338
|
-
}, ae =
|
|
340
|
+
}, ae = Me("target"), { stop: $e } = mo(ae, ([e]) => {
|
|
339
341
|
l.lazyLoading && !l.loading && (e != null && e.isIntersecting) && N("fetch");
|
|
340
342
|
});
|
|
341
|
-
|
|
342
|
-
const { getSkeletonProps:
|
|
343
|
+
Ve($e);
|
|
344
|
+
const { getSkeletonProps: ze, getThProps: Be, RenderCell: ue, getTdProps: Y, getColProps: Pe, isThVisible: Ae } = Co(l, {
|
|
343
345
|
selectionId: i,
|
|
344
|
-
isColumnWrapped:
|
|
345
|
-
}),
|
|
346
|
+
isColumnWrapped: J
|
|
347
|
+
}), me = D(() => Object.keys(o.value).length), Ie = () => {
|
|
346
348
|
o.value = {};
|
|
347
|
-
},
|
|
349
|
+
}, Te = yo(u, {
|
|
348
350
|
variants: {
|
|
349
|
-
empty:
|
|
351
|
+
empty: io("empty", u)
|
|
350
352
|
}
|
|
351
|
-
}),
|
|
352
|
-
e.key === "a-z" && r.toggleSorting(!1, !1), e.key === "z-a" && r.toggleSorting(!0, !1), e.key === "wrap" &&
|
|
353
|
-
},
|
|
353
|
+
}), fe = Ne(0), De = ({ item: e }, r) => {
|
|
354
|
+
e.key === "a-z" && r.toggleSorting(!1, !1), e.key === "z-a" && r.toggleSorting(!0, !1), e.key === "wrap" && ie({ id: r.id }), fe.value++;
|
|
355
|
+
}, Ke = (e) => {
|
|
354
356
|
const r = e.getIsSorted();
|
|
355
357
|
if (!r) return "tabler:arrows-up-down";
|
|
356
358
|
if (r === "desc") return "tabler:arrow-down";
|
|
357
359
|
if (r === "asc") return "tabler:arrow-up";
|
|
358
360
|
}, de = D(
|
|
359
|
-
() =>
|
|
361
|
+
() => h.getHeaderGroups().map((e) => ({
|
|
360
362
|
...e,
|
|
361
363
|
headers: e.headers.map((r) => ({
|
|
362
364
|
...r,
|
|
363
|
-
bindings:
|
|
365
|
+
bindings: Be(r.getContext())
|
|
364
366
|
}))
|
|
365
367
|
}))
|
|
366
|
-
),
|
|
367
|
-
|
|
368
|
-
|
|
368
|
+
), pe = (e, r) => {
|
|
369
|
+
const s = se(r ?? {}, "row");
|
|
370
|
+
if (l.rowProps) {
|
|
371
|
+
if (K(l.rowProps))
|
|
372
|
+
return { ...l.rowProps(e, r == null ? void 0 : r.row) ?? {}, ...s };
|
|
373
|
+
if (U(l.rowProps)) return { ...l.rowProps, ...s };
|
|
374
|
+
}
|
|
375
|
+
return s;
|
|
376
|
+
}, We = (e, r) => N("rowClick", e, r);
|
|
377
|
+
return (e, r) => (a(), v("div", {
|
|
378
|
+
class: y([t(C)(t(u), "root"), e.rootCls])
|
|
369
379
|
}, [
|
|
370
|
-
|
|
380
|
+
d(he, {
|
|
371
381
|
"z-index": "1",
|
|
372
|
-
open: !!(
|
|
382
|
+
open: !!(me.value && S.batchActions),
|
|
373
383
|
placement: "bottom",
|
|
374
384
|
"side-offset": -54,
|
|
375
385
|
"container-cls": "pantograph-tokens pantograph-dark"
|
|
376
386
|
}, {
|
|
377
387
|
content: m(() => [
|
|
378
|
-
|
|
379
|
-
class:
|
|
388
|
+
$("div", {
|
|
389
|
+
class: y(t(C)(t(u), "batch_actions"))
|
|
380
390
|
}, [
|
|
381
|
-
|
|
382
|
-
text:
|
|
391
|
+
d(po, {
|
|
392
|
+
text: me.value,
|
|
383
393
|
size: "xsm"
|
|
384
394
|
}, null, 8, ["text"]),
|
|
385
|
-
|
|
386
|
-
class:
|
|
387
|
-
},
|
|
388
|
-
|
|
389
|
-
class:
|
|
395
|
+
$("div", {
|
|
396
|
+
class: y(t(C)(t(u), "batch_actions__title"))
|
|
397
|
+
}, qe(e.batchActionsTitle), 3),
|
|
398
|
+
$("div", {
|
|
399
|
+
class: y(t(C)(t(u), "batch_actions__actions"))
|
|
390
400
|
}, [
|
|
391
|
-
T(e.$slots, "batchActions",
|
|
401
|
+
T(e.$slots, "batchActions", Fe(xe(H.value)))
|
|
392
402
|
], 2),
|
|
393
|
-
|
|
403
|
+
d(be, {
|
|
394
404
|
type: "vertical",
|
|
395
|
-
class:
|
|
405
|
+
class: y(t(C)(t(u), "batch_actions__divider"))
|
|
396
406
|
}, null, 8, ["class"]),
|
|
397
|
-
|
|
407
|
+
d(ve, {
|
|
398
408
|
icon: "tabler:x",
|
|
399
409
|
color: "gray",
|
|
400
410
|
type: "ghost",
|
|
401
|
-
onClick:
|
|
411
|
+
onClick: Ie
|
|
402
412
|
})
|
|
403
413
|
], 2)
|
|
404
414
|
]),
|
|
405
415
|
default: m(() => [
|
|
406
|
-
|
|
407
|
-
class:
|
|
416
|
+
$("div", {
|
|
417
|
+
class: y([t(C)(t(u), "scroll_area"), e.scrollAreaCls])
|
|
408
418
|
}, [
|
|
409
|
-
|
|
410
|
-
class:
|
|
419
|
+
$("div", {
|
|
420
|
+
class: y([t(C)(t(u), "scroll_viewport"), e.scrollViewportCls])
|
|
411
421
|
}, [
|
|
412
|
-
|
|
422
|
+
d(t(wo), {
|
|
413
423
|
size: e.size,
|
|
414
|
-
style:
|
|
424
|
+
style: Oe({
|
|
415
425
|
tableLayout: e.tableLayout
|
|
416
426
|
}),
|
|
417
|
-
class:
|
|
418
|
-
t(
|
|
419
|
-
empty: !t(
|
|
427
|
+
class: y([
|
|
428
|
+
t(Te)({
|
|
429
|
+
empty: !t(h).getRowModel().rows.length
|
|
420
430
|
}),
|
|
421
431
|
l.class
|
|
422
432
|
])
|
|
423
433
|
}, {
|
|
424
434
|
default: m(() => [
|
|
425
|
-
|
|
426
|
-
(
|
|
435
|
+
$("colgroup", null, [
|
|
436
|
+
(a(!0), v(z, null, V(t(h).getVisibleLeafColumns(), (s, p) => (a(), v("col", _({
|
|
427
437
|
key: s.id,
|
|
428
438
|
ref_for: !0
|
|
429
|
-
}, t(
|
|
439
|
+
}, t(Pe)(s)), null, 16))), 128))
|
|
430
440
|
]),
|
|
431
|
-
e.noHeader ?
|
|
441
|
+
e.noHeader ? I("", !0) : (a(), A(t(ho), {
|
|
432
442
|
key: 0,
|
|
433
|
-
class:
|
|
443
|
+
class: y(e.theadCls),
|
|
434
444
|
sticky: e.stickyHeader
|
|
435
445
|
}, {
|
|
436
446
|
default: m(() => [
|
|
437
|
-
(
|
|
438
|
-
key: s.id
|
|
439
|
-
|
|
447
|
+
(a(!0), v(z, null, V(de.value, (s, p) => (a(), A(t(x), _({
|
|
448
|
+
key: s.id,
|
|
449
|
+
ref_for: !0
|
|
450
|
+
}, pe(p * -1 - 1)), {
|
|
440
451
|
default: m(() => [
|
|
441
|
-
(
|
|
452
|
+
(a(!0), v(z, null, V(s.headers, (n) => (a(), v(z, {
|
|
442
453
|
key: n.id
|
|
443
454
|
}, [
|
|
444
|
-
t(
|
|
455
|
+
t(Ae)(p, de.value.length, n.column.id) ? (a(), A(t(bo), _({
|
|
445
456
|
key: 0,
|
|
446
457
|
ref_for: !0
|
|
447
458
|
}, n.bindings, {
|
|
448
459
|
"data-selection": n.column.id === i
|
|
449
460
|
}), {
|
|
450
461
|
default: m(() => [
|
|
451
|
-
|
|
452
|
-
class:
|
|
462
|
+
$("div", {
|
|
463
|
+
class: y(t(C)(t(u), "header"))
|
|
453
464
|
}, [
|
|
454
|
-
|
|
455
|
-
class:
|
|
465
|
+
$("div", {
|
|
466
|
+
class: y(t(C)(t(u), "header__content"))
|
|
456
467
|
}, [
|
|
457
|
-
n.column.id !== i ? (
|
|
458
|
-
|
|
459
|
-
class:
|
|
468
|
+
n.column.id !== i ? (a(), v(z, { key: 0 }, [
|
|
469
|
+
$("div", {
|
|
470
|
+
class: y(t(C)(t(u), "header__content__title"))
|
|
460
471
|
}, [
|
|
461
|
-
T(e.$slots, "headerCell",
|
|
472
|
+
T(e.$slots, "headerCell", _({ ref_for: !0 }, {
|
|
462
473
|
column: n.column.columnDef
|
|
463
474
|
}), () => [
|
|
464
|
-
|
|
475
|
+
d(t(ue), {
|
|
465
476
|
props: n.getContext(),
|
|
466
477
|
render: n.column.columnDef.header
|
|
467
478
|
}, null, 8, ["props", "render"])
|
|
468
479
|
])
|
|
469
480
|
], 2),
|
|
470
|
-
n.column.getCanSort() ? (
|
|
481
|
+
n.column.getCanSort() ? (a(), A(to, {
|
|
471
482
|
key: 0,
|
|
472
|
-
class:
|
|
473
|
-
icon:
|
|
483
|
+
class: y({ hide_filter_action: !n.column.getIsSorted() }),
|
|
484
|
+
icon: Ke(n.column),
|
|
474
485
|
size: "sm",
|
|
475
486
|
type: "ghost",
|
|
476
487
|
variant: "icon",
|
|
@@ -479,72 +490,72 @@ const _o = (B) => {
|
|
|
479
490
|
var L;
|
|
480
491
|
return (L = n.column.getToggleSortingHandler()) == null ? void 0 : L(b);
|
|
481
492
|
}
|
|
482
|
-
}, null, 8, ["class", "icon", "active", "onClick"])) :
|
|
483
|
-
], 64)) : (
|
|
484
|
-
|
|
485
|
-
class:
|
|
493
|
+
}, null, 8, ["class", "icon", "active", "onClick"])) : I("", !0)
|
|
494
|
+
], 64)) : (a(), v(z, { key: 1 }, [
|
|
495
|
+
$("div", {
|
|
496
|
+
class: y(t(C)(t(u), "selection_space"))
|
|
486
497
|
}, null, 2),
|
|
487
|
-
|
|
498
|
+
d(we, {
|
|
488
499
|
rootCls: "w-fit",
|
|
489
|
-
checked:
|
|
490
|
-
onChange:
|
|
500
|
+
checked: Q.value,
|
|
501
|
+
onChange: X
|
|
491
502
|
}, null, 8, ["checked"])
|
|
492
503
|
], 64))
|
|
493
504
|
], 2),
|
|
494
|
-
![
|
|
505
|
+
![g.value, i].includes(n.column.id) && !n.column.columns.length ? (a(), v("div", {
|
|
495
506
|
key: 0,
|
|
496
|
-
class:
|
|
507
|
+
class: y(t(C)(t(u), "header__action"))
|
|
497
508
|
}, [
|
|
498
|
-
(
|
|
509
|
+
(a(), A(he, {
|
|
499
510
|
"z-index": "1",
|
|
500
511
|
placement: "bottom-end",
|
|
501
|
-
key:
|
|
512
|
+
key: fe.value
|
|
502
513
|
}, {
|
|
503
514
|
content: m(() => [
|
|
504
|
-
|
|
505
|
-
onSelect: (b) =>
|
|
515
|
+
d(oo, {
|
|
516
|
+
onSelect: (b) => De(b, n.column)
|
|
506
517
|
}, {
|
|
507
518
|
default: m(() => [
|
|
508
|
-
n.column.getCanSort() ? (
|
|
509
|
-
|
|
519
|
+
n.column.getCanSort() ? (a(), v(z, { key: 0 }, [
|
|
520
|
+
d(ne, {
|
|
510
521
|
title: "Sort A → Z",
|
|
511
522
|
key: "a-z"
|
|
512
523
|
}, {
|
|
513
524
|
leading: m(({ iconSize: b }) => [
|
|
514
|
-
|
|
525
|
+
d(re, {
|
|
515
526
|
icon: "tabler:arrow-up",
|
|
516
527
|
size: b
|
|
517
528
|
}, null, 8, ["size"])
|
|
518
529
|
]),
|
|
519
530
|
_: 1
|
|
520
531
|
}),
|
|
521
|
-
|
|
532
|
+
d(ne, {
|
|
522
533
|
title: "Sort Z → A",
|
|
523
534
|
key: "z-a"
|
|
524
535
|
}, {
|
|
525
536
|
leading: m(({ iconSize: b }) => [
|
|
526
|
-
|
|
537
|
+
d(re, {
|
|
527
538
|
icon: "tabler:arrow-down",
|
|
528
539
|
size: b
|
|
529
540
|
}, null, 8, ["size"])
|
|
530
541
|
]),
|
|
531
542
|
_: 1
|
|
532
543
|
}),
|
|
533
|
-
|
|
534
|
-
], 64)) :
|
|
535
|
-
|
|
544
|
+
d(be)
|
|
545
|
+
], 64)) : I("", !0),
|
|
546
|
+
d(ne, {
|
|
536
547
|
title: "Wrap Column",
|
|
537
548
|
key: "wrap"
|
|
538
549
|
}, {
|
|
539
550
|
leading: m(({ iconSize: b }) => [
|
|
540
|
-
|
|
551
|
+
d(re, {
|
|
541
552
|
icon: "tabler:text-wrap",
|
|
542
553
|
size: b
|
|
543
554
|
}, null, 8, ["size"])
|
|
544
555
|
]),
|
|
545
556
|
trailing: m(() => [
|
|
546
|
-
|
|
547
|
-
checked: t(
|
|
557
|
+
d(go, {
|
|
558
|
+
checked: t(J)(n.column.id)
|
|
548
559
|
}, null, 8, ["checked"])
|
|
549
560
|
]),
|
|
550
561
|
_: 2
|
|
@@ -554,74 +565,75 @@ const _o = (B) => {
|
|
|
554
565
|
}, 1032, ["onSelect"])
|
|
555
566
|
]),
|
|
556
567
|
default: m(() => [
|
|
557
|
-
|
|
568
|
+
d(ve, {
|
|
558
569
|
icon: "tabler:dots-vertical",
|
|
559
570
|
size: "sm",
|
|
560
571
|
color: "gray",
|
|
561
572
|
type: "ghost",
|
|
562
|
-
class:
|
|
573
|
+
class: y(t(C)(t(u), "header__action__hover"))
|
|
563
574
|
}, null, 8, ["class"])
|
|
564
575
|
]),
|
|
565
576
|
_: 2
|
|
566
577
|
}, 1024))
|
|
567
|
-
], 2)) :
|
|
578
|
+
], 2)) : I("", !0)
|
|
568
579
|
], 2)
|
|
569
580
|
]),
|
|
570
581
|
_: 2
|
|
571
|
-
}, 1040, ["data-selection"])) :
|
|
582
|
+
}, 1040, ["data-selection"])) : I("", !0)
|
|
572
583
|
], 64))), 128))
|
|
573
584
|
]),
|
|
574
585
|
_: 2
|
|
575
|
-
},
|
|
586
|
+
}, 1040))), 128))
|
|
576
587
|
]),
|
|
577
588
|
_: 3
|
|
578
589
|
}, 8, ["class", "sticky"])),
|
|
579
|
-
|
|
580
|
-
class:
|
|
590
|
+
d(t(vo), {
|
|
591
|
+
class: y(e.tbodyCls)
|
|
581
592
|
}, {
|
|
582
593
|
default: m(() => [
|
|
583
|
-
(
|
|
594
|
+
(a(!0), v(z, null, V(t(h).getRowModel().rows, (s, p) => (a(), A(t(x), _({
|
|
584
595
|
key: s.id,
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
}, {
|
|
596
|
+
onClick: (n) => We(s.original, n),
|
|
597
|
+
ref_for: !0
|
|
598
|
+
}, pe(p, { zebra: e.zebra, checked: !!ce(s) })), {
|
|
589
599
|
default: m(() => [
|
|
590
|
-
(
|
|
600
|
+
(a(!0), v(z, null, V(s.getVisibleCells(), (n) => {
|
|
591
601
|
var b, L;
|
|
592
|
-
return
|
|
602
|
+
return a(), v(z, {
|
|
593
603
|
key: n.id
|
|
594
604
|
}, [
|
|
595
|
-
((b = t(
|
|
605
|
+
((b = t(Y)(n.getContext())) == null ? void 0 : b.colSpan) !== 0 && ((L = t(Y)(n.getContext())) == null ? void 0 : L.rowSpan) !== 0 ? (a(), A(t(G), _({
|
|
596
606
|
key: 0,
|
|
597
607
|
ref_for: !0
|
|
598
|
-
}, t(
|
|
608
|
+
}, t(Y)(n.getContext())), ge({
|
|
599
609
|
default: m(() => [
|
|
600
|
-
n.column.id ===
|
|
610
|
+
n.column.id === g.value && (S.hoverAction || S.action) ? (a(), v("div", {
|
|
601
611
|
key: 0,
|
|
602
|
-
|
|
612
|
+
onClick: r[0] || (r[0] = ye(() => {
|
|
613
|
+
}, ["stop"])),
|
|
614
|
+
class: y(t(C)(t(u), "action_cell"))
|
|
603
615
|
}, [
|
|
604
|
-
|
|
605
|
-
class:
|
|
616
|
+
$("div", {
|
|
617
|
+
class: y([t(C)(t(u), "action_cell__hover"), e.actionHoverCls])
|
|
606
618
|
}, [
|
|
607
|
-
T(e.$slots, "hoverAction",
|
|
619
|
+
T(e.$slots, "hoverAction", _(
|
|
608
620
|
{ ref_for: !0 },
|
|
609
621
|
{
|
|
610
622
|
column: n.column.columnDef,
|
|
611
623
|
record: s.original,
|
|
612
|
-
index:
|
|
624
|
+
index: p
|
|
613
625
|
}
|
|
614
626
|
))
|
|
615
627
|
], 2),
|
|
616
|
-
T(e.$slots, "action",
|
|
628
|
+
T(e.$slots, "action", _(
|
|
617
629
|
{ ref_for: !0 },
|
|
618
630
|
{
|
|
619
631
|
column: n.column.columnDef,
|
|
620
632
|
record: s.original,
|
|
621
|
-
index:
|
|
633
|
+
index: p
|
|
622
634
|
}
|
|
623
635
|
))
|
|
624
|
-
], 2)) : n.column.id !== i ? T(e.$slots, "bodyCell",
|
|
636
|
+
], 2)) : n.column.id !== i ? T(e.$slots, "bodyCell", _(
|
|
625
637
|
{
|
|
626
638
|
key: 1,
|
|
627
639
|
ref_for: !0
|
|
@@ -629,103 +641,105 @@ const _o = (B) => {
|
|
|
629
641
|
{
|
|
630
642
|
column: n.column.columnDef,
|
|
631
643
|
record: s.original,
|
|
632
|
-
index:
|
|
644
|
+
index: p
|
|
633
645
|
}
|
|
634
646
|
), () => [
|
|
635
|
-
|
|
647
|
+
d(t(ue), {
|
|
636
648
|
render: n.column.columnDef.cell,
|
|
637
649
|
props: n.getContext()
|
|
638
650
|
}, null, 8, ["render", "props"])
|
|
639
|
-
]) : e.rowKey && s.original[e.rowKey] ? (
|
|
651
|
+
]) : e.rowKey && s.original[e.rowKey] ? (a(), v("div", {
|
|
640
652
|
key: 2,
|
|
641
|
-
class:
|
|
653
|
+
class: y(t(C)(t(u), "selection")),
|
|
654
|
+
onClick: r[1] || (r[1] = ye(() => {
|
|
655
|
+
}, ["stop"]))
|
|
642
656
|
}, [
|
|
643
|
-
|
|
644
|
-
class:
|
|
657
|
+
$("div", {
|
|
658
|
+
class: y(t(C)(t(u), "selection_space"))
|
|
645
659
|
}, null, 2),
|
|
646
|
-
|
|
660
|
+
d(we, _({
|
|
647
661
|
rootCls: "w-fit",
|
|
648
662
|
disabled: !s.getCanSelect(),
|
|
649
|
-
checked:
|
|
650
|
-
onChange: (
|
|
663
|
+
checked: ce(s),
|
|
664
|
+
onChange: (ee) => ke(ee, s),
|
|
651
665
|
ref_for: !0
|
|
652
|
-
},
|
|
653
|
-
], 2)) :
|
|
666
|
+
}, Re(s.original)), null, 16, ["disabled", "checked", "onChange"])
|
|
667
|
+
], 2)) : I("", !0)
|
|
654
668
|
]),
|
|
655
669
|
_: 2
|
|
656
670
|
}, [
|
|
657
|
-
|
|
671
|
+
S.cellAction && ![g.value, i].includes(n.column.id) ? {
|
|
658
672
|
name: "absoluteAction",
|
|
659
673
|
fn: m(() => [
|
|
660
|
-
T(e.$slots, "cellAction",
|
|
674
|
+
T(e.$slots, "cellAction", _(
|
|
661
675
|
{ ref_for: !0 },
|
|
662
676
|
{
|
|
663
677
|
column: n.column.columnDef,
|
|
664
678
|
record: s.original,
|
|
665
|
-
index:
|
|
679
|
+
index: p
|
|
666
680
|
}
|
|
667
681
|
))
|
|
668
682
|
]),
|
|
669
683
|
key: "0"
|
|
670
684
|
} : void 0
|
|
671
|
-
]), 1040)) :
|
|
685
|
+
]), 1040)) : I("", !0)
|
|
672
686
|
], 64);
|
|
673
687
|
}), 128))
|
|
674
688
|
]),
|
|
675
689
|
_: 2
|
|
676
|
-
},
|
|
677
|
-
l.loading ? (
|
|
690
|
+
}, 1040, ["onClick"]))), 128)),
|
|
691
|
+
l.loading ? (a(!0), v(z, { key: 0 }, V(t(h).getRowModel().rows.length ? 2 : e.loadingRowCount, (s) => (a(), A(t(x), {
|
|
678
692
|
key: s,
|
|
679
693
|
zebra: e.zebra
|
|
680
694
|
}, {
|
|
681
695
|
default: m(() => [
|
|
682
|
-
(
|
|
696
|
+
(a(!0), v(z, null, V(t(h).getVisibleLeafColumns(), (p, n) => (a(), A(t(G), { key: n }, {
|
|
683
697
|
default: m(() => [
|
|
684
|
-
|
|
698
|
+
p.id !== i ? T(e.$slots, "skeleton", _({
|
|
685
699
|
key: 0,
|
|
686
700
|
ref_for: !0
|
|
687
|
-
}, { index: n, column:
|
|
688
|
-
|
|
689
|
-
]) :
|
|
701
|
+
}, { index: n, column: p.columnDef }), () => [
|
|
702
|
+
d(fo, _({ ref_for: !0 }, t(ze)(p.columnDef)), null, 16)
|
|
703
|
+
]) : I("", !0)
|
|
690
704
|
]),
|
|
691
705
|
_: 2
|
|
692
706
|
}, 1024))), 128))
|
|
693
707
|
]),
|
|
694
708
|
_: 2
|
|
695
|
-
}, 1032, ["zebra"]))), 128)) :
|
|
696
|
-
t(
|
|
709
|
+
}, 1032, ["zebra"]))), 128)) : I("", !0),
|
|
710
|
+
t(h).getRowModel().rows.length ? I("", !0) : (a(), A(t(x), {
|
|
697
711
|
key: 1,
|
|
698
712
|
empty: ""
|
|
699
713
|
}, {
|
|
700
714
|
default: m(() => [
|
|
701
|
-
|
|
702
|
-
colspan: t(
|
|
715
|
+
d(t(G), {
|
|
716
|
+
colspan: t(h).getVisibleLeafColumns().length,
|
|
703
717
|
empty: ""
|
|
704
718
|
}, {
|
|
705
719
|
default: m(() => [
|
|
706
|
-
|
|
707
|
-
|
|
720
|
+
d(no, _({ type: "advance" }, e.emptyProps), ge({ _: 2 }, [
|
|
721
|
+
S.emptyTitle ? {
|
|
708
722
|
name: "title",
|
|
709
723
|
fn: m(() => [
|
|
710
724
|
T(e.$slots, "emptyTitle")
|
|
711
725
|
]),
|
|
712
726
|
key: "0"
|
|
713
727
|
} : void 0,
|
|
714
|
-
|
|
728
|
+
S.emptyDescription ? {
|
|
715
729
|
name: "title",
|
|
716
730
|
fn: m(() => [
|
|
717
731
|
T(e.$slots, "emptyDescription")
|
|
718
732
|
]),
|
|
719
733
|
key: "1"
|
|
720
734
|
} : void 0,
|
|
721
|
-
|
|
735
|
+
S.emptyActions ? {
|
|
722
736
|
name: "title",
|
|
723
737
|
fn: m(() => [
|
|
724
738
|
T(e.$slots, "emptyActions")
|
|
725
739
|
]),
|
|
726
740
|
key: "2"
|
|
727
741
|
} : void 0,
|
|
728
|
-
|
|
742
|
+
S.emptyImage ? {
|
|
729
743
|
name: "title",
|
|
730
744
|
fn: m(() => [
|
|
731
745
|
T(e.$slots, "emptyImage")
|
|
@@ -739,19 +753,19 @@ const _o = (B) => {
|
|
|
739
753
|
]),
|
|
740
754
|
_: 3
|
|
741
755
|
})),
|
|
742
|
-
e.lazyLoading ? (
|
|
756
|
+
e.lazyLoading ? (a(), A(t(x), {
|
|
743
757
|
key: 2,
|
|
744
758
|
"lazy-load-observer": ""
|
|
745
759
|
}, {
|
|
746
760
|
default: m(() => [
|
|
747
|
-
|
|
761
|
+
d(t(G), {
|
|
748
762
|
ref_key: "target",
|
|
749
763
|
ref: ae,
|
|
750
764
|
"lazy-load-observer": ""
|
|
751
765
|
}, null, 512)
|
|
752
766
|
]),
|
|
753
767
|
_: 1
|
|
754
|
-
})) :
|
|
768
|
+
})) : I("", !0)
|
|
755
769
|
]),
|
|
756
770
|
_: 3
|
|
757
771
|
}, 8, ["class"])
|
|
@@ -767,6 +781,6 @@ const _o = (B) => {
|
|
|
767
781
|
}
|
|
768
782
|
});
|
|
769
783
|
export {
|
|
770
|
-
|
|
771
|
-
|
|
784
|
+
Jo as DataTable,
|
|
785
|
+
Jo as default
|
|
772
786
|
};
|