@pantograph/vue 0.10.7 → 0.10.9
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/DataTable/{index.js.js → index.js} +350 -347
- package/dist/DataTable/index.umd.cjs +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-BoOaxYv2.js +1 -0
- package/dist/{THead.vue_vue_type_style_index_0_lang-TEr0pOmV.js → THead.vue_vue_type_style_index_0_lang-a7H6iK5g.js} +27 -26
- package/dist/Table/{index.js.js → index.js} +1 -1
- package/dist/Table/{index.umd.cjs.js → index.umd.cjs} +1 -1
- package/dist/{index.js.js → index.js} +1 -1
- package/dist/index.umd.cjs +1 -0
- package/dist/style/index.css +1 -1
- package/package.json +2 -2
- package/dist/DataTable/index.umd.cjs.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-BIfvIFzx.js +0 -1
- package/dist/index.umd.cjs.js +0 -1
- /package/dist/ActionButton/{index.js.js → index.js} +0 -0
- /package/dist/ActionButton/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Avatar/{index.js.js → index.js} +0 -0
- /package/dist/Avatar/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/AvatarGroup/{index.js.js → index.js} +0 -0
- /package/dist/AvatarGroup/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Badge/{index.js.js → index.js} +0 -0
- /package/dist/Badge/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Button/{index.js.js → index.js} +0 -0
- /package/dist/Button/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/ButtonGroup/{index.js.js → index.js} +0 -0
- /package/dist/ButtonGroup/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Checkbox/{index.js.js → index.js} +0 -0
- /package/dist/Checkbox/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/CheckboxGroup/{index.js.js → index.js} +0 -0
- /package/dist/CheckboxGroup/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/ColorPicker/{index.js.js → index.js} +0 -0
- /package/dist/ColorPicker/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/ColorSwatch/{index.js.js → index.js} +0 -0
- /package/dist/ColorSwatch/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/ColorSwatchGroup/{index.js.js → index.js} +0 -0
- /package/dist/ColorSwatchGroup/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/ColorTrigger/{index.js.js → index.js} +0 -0
- /package/dist/ColorTrigger/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/ConfigProvider/{index.js.js → index.js} +0 -0
- /package/dist/ConfigProvider/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Divider/{index.js.js → index.js} +0 -0
- /package/dist/Divider/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Empty/{index.js.js → index.js} +0 -0
- /package/dist/Empty/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/FloatButton/{index.js.js → index.js} +0 -0
- /package/dist/FloatButton/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/GraphicalObject/{index.js.js → index.js} +0 -0
- /package/dist/GraphicalObject/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Icon/{index.js.js → index.js} +0 -0
- /package/dist/Icon/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/IconButton/{index.js.js → index.js} +0 -0
- /package/dist/IconButton/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Image/{index.js.js → index.js} +0 -0
- /package/dist/Image/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/IndentLevel/{index.js.js → index.js} +0 -0
- /package/dist/IndentLevel/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Indicator/{index.js.js → index.js} +0 -0
- /package/dist/Indicator/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Input/{index.js.js → index.js} +0 -0
- /package/dist/Input/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Kbd/{index.js.js → index.js} +0 -0
- /package/dist/Kbd/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Menu/{index.js.js → index.js} +0 -0
- /package/dist/Menu/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/MenuItem/{index.js.js → index.js} +0 -0
- /package/dist/MenuItem/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Popover/{index.js.js → index.js} +0 -0
- /package/dist/Popover/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/RadioGroup/{index.js.js → index.js} +0 -0
- /package/dist/RadioGroup/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Shortcut/{index.js.js → index.js} +0 -0
- /package/dist/Shortcut/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Skeleton/{index.js.js → index.js} +0 -0
- /package/dist/Skeleton/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Spinner/{index.js.js → index.js} +0 -0
- /package/dist/Spinner/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Switch/{index.js.js → index.js} +0 -0
- /package/dist/Switch/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/Tree/{index.js.js → index.js} +0 -0
- /package/dist/Tree/{index.umd.cjs.js → index.umd.cjs} +0 -0
- /package/dist/utils/{index.js.js → index.js} +0 -0
- /package/dist/utils/{index.umd.cjs.js → index.umd.cjs} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Se, useSlots as $e, computed as P, createElementBlock as f, openBlock as a, normalizeClass as d, unref as t, createElementVNode as w, createCommentVNode as R, renderSlot as H, createBlock as T, createTextVNode as ne, toDisplayString as J, h as Ze, ref as Q, watch as ae, useTemplateRef as Ne, onBeforeUnmount as Oe, shallowRef as qe, createVNode as g, withCtx as m, normalizeStyle as Fe, Fragment as A, renderList as Z, mergeProps as I, createSlots as Ce, normalizeProps as Ge, guardReactiveProps as Ue, nextTick as le } from "vue";
|
|
2
2
|
import { createColumnHelper as Je, flattenBy as Qe, useVueTable as Xe, getSortedRowModel as Ye, getCoreRowModel as xe } from "@tanstack/vue-table";
|
|
3
3
|
import { b as et } from "../_baseIsEqual-BknLKouD.js";
|
|
4
|
-
import { i as tt, b as ot, a as
|
|
4
|
+
import { i as tt, b as ot, a as se } from "../isArray-CdbPONHA.js";
|
|
5
5
|
import { u as nt } from "../useId-DvOSMFGX.js";
|
|
6
6
|
import { _ as ye } from "../Checkbox.vue_vue_type_style_index_0_lang-BD4g7E0x.js";
|
|
7
|
-
import { c as he, _ as lt, a as
|
|
7
|
+
import { c as he, _ as lt, a as re } from "../Menu.vue_vue_type_style_index_0_lang-Ck9CxDR-.js";
|
|
8
8
|
import { _ as st } from "../ActionButton.vue_vue_type_script_setup_true_lang-BG7u9LIG.js";
|
|
9
|
-
import { g as Re, a as He, b as
|
|
9
|
+
import { g as Re, a as He, b as C, w as rt } from "../class-BCq3bHT0.js";
|
|
10
10
|
import { cva as ze } from "class-variance-authority";
|
|
11
11
|
import { g as it } from "../options-JBqnVZUl.js";
|
|
12
|
-
import { _ as
|
|
12
|
+
import { _ as X } from "../Icon.vue_vue_type_style_index_0_lang-BpIpKu8I.js";
|
|
13
13
|
import { getCssVar as N, getBreakpoints as at } from "@pantograph/tokens";
|
|
14
14
|
import { o as Be } from "../omit-CD3OjwFx.js";
|
|
15
15
|
import { u as ct } from "../uniq-DSVd52ma.js";
|
|
16
|
-
import { i as
|
|
16
|
+
import { i as ie, a as V } from "../_flatRest-Dx0ZZgOx.js";
|
|
17
17
|
import { useBreakpoints as ut, useIntersectionObserver as dt } from "@vueuse/core";
|
|
18
18
|
import { _ as mt } from "../Skeleton.vue_vue_type_style_index_0_lang-Cjdn_7-J.js";
|
|
19
19
|
import { _ as ve } from "../Popover.vue_vue_type_style_index_0_lang-DWUbX1hj.js";
|
|
@@ -22,15 +22,15 @@ import { _ as we } from "../Divider.vue_vue_type_style_index_0_lang-gVx_vqDi.js"
|
|
|
22
22
|
import { _ as ke } from "../IconButton.vue_vue_type_script_setup_true_lang-7_PYDN9E.js";
|
|
23
23
|
import { _ as ft } from "../Switch.vue_vue_type_style_index_0_lang-RH_NKvPq.js";
|
|
24
24
|
import { g as be } from "../get-B14Mml42.js";
|
|
25
|
-
import { _ as gt, e as Ct, c as G, a as yt, d as ht, b as U } from "../THead.vue_vue_type_style_index_0_lang-
|
|
26
|
-
function
|
|
27
|
-
return et(B,
|
|
25
|
+
import { _ as gt, e as Ct, c as G, a as yt, d as ht, b as U } from "../THead.vue_vue_type_style_index_0_lang-a7H6iK5g.js";
|
|
26
|
+
function _e(B, S) {
|
|
27
|
+
return et(B, S);
|
|
28
28
|
}
|
|
29
29
|
const vt = ["simple", "advance"], wt = {
|
|
30
30
|
key: 1,
|
|
31
31
|
viewBox: "0 0 108 88",
|
|
32
32
|
fill: "none"
|
|
33
|
-
}, kt = ["fill"], bt = ["fill"],
|
|
33
|
+
}, kt = ["fill"], bt = ["fill"], _t = ["fill"], St = ["fill"], $t = ["stroke"], Rt = ["stroke"], Ht = ["stroke"], zt = /* @__PURE__ */ Se({
|
|
34
34
|
...it("Empty"),
|
|
35
35
|
__name: "Empty",
|
|
36
36
|
props: {
|
|
@@ -47,67 +47,67 @@ const vt = ["simple", "advance"], wt = {
|
|
|
47
47
|
description: {}
|
|
48
48
|
},
|
|
49
49
|
setup(B) {
|
|
50
|
-
const
|
|
50
|
+
const S = B, s = $e(), z = Re("empty"), b = ze(z, {
|
|
51
51
|
variants: {
|
|
52
52
|
type: He(vt, z)
|
|
53
53
|
}
|
|
54
|
-
}),
|
|
55
|
-
return (
|
|
56
|
-
class:
|
|
54
|
+
}), c = P(() => S.title || !!s.title), $ = P(() => S.description || !!s.description);
|
|
55
|
+
return (l, y) => (a(), f("div", {
|
|
56
|
+
class: d([
|
|
57
57
|
t(b)({
|
|
58
|
-
type:
|
|
58
|
+
type: l.type
|
|
59
59
|
}),
|
|
60
|
-
|
|
60
|
+
S.class
|
|
61
61
|
])
|
|
62
62
|
}, [
|
|
63
|
-
|
|
64
|
-
class:
|
|
63
|
+
w("div", {
|
|
64
|
+
class: d([t(C)(t(z), "image"), l.imageCls])
|
|
65
65
|
}, [
|
|
66
|
-
H(
|
|
67
|
-
|
|
66
|
+
H(l.$slots, "image", {}, () => [
|
|
67
|
+
l.type === "simple" ? (a(), T(X, {
|
|
68
68
|
key: 0,
|
|
69
|
-
icon:
|
|
69
|
+
icon: l.icon,
|
|
70
70
|
size: "sm"
|
|
71
|
-
}, null, 8, ["icon"])) : (a(),
|
|
72
|
-
|
|
71
|
+
}, null, 8, ["icon"])) : (a(), f("svg", wt, [
|
|
72
|
+
w("path", {
|
|
73
73
|
"fill-rule": "evenodd",
|
|
74
74
|
"clip-rule": "evenodd",
|
|
75
75
|
d: "M23.6045 61.3504H67.8586C68.1089 61.3504 68.353 61.323 68.588 61.2709C68.823 61.323 69.0671 61.3504 69.3175 61.3504H94.6055C96.4856 61.3504 98.0097 59.8051 98.0097 57.899C98.0097 55.9929 96.4856 54.4477 94.6055 54.4477H91.6877C89.8076 54.4477 88.2835 52.9024 88.2835 50.9963C88.2835 49.0902 89.8076 47.545 91.6877 47.545H100.928C102.808 47.545 104.332 45.9997 104.332 44.0936C104.332 42.1875 102.808 40.6423 100.928 40.6423H90.2287C92.1088 40.6423 93.6329 39.0971 93.6329 37.1909C93.6329 35.2848 92.1088 33.7396 90.2287 33.7396H59.105C60.9851 33.7396 62.5092 32.1944 62.5092 30.2882C62.5092 28.3821 60.9851 26.8369 59.105 26.8369H31.3854C29.5053 26.8369 27.9813 28.3821 27.9813 30.2882C27.9813 32.1944 29.5053 33.7396 31.3854 33.7396H11.9331C10.053 33.7396 8.52891 35.2848 8.52891 37.1909C8.52891 39.0971 10.053 40.6423 11.9331 40.6423H24.0908C25.9708 40.6423 27.4949 42.1875 27.4949 44.0936C27.4949 45.9997 25.9708 47.545 24.0908 47.545H4.63844C2.75838 47.545 1.23428 49.0902 1.23428 50.9963C1.23428 52.9024 2.75838 54.4477 4.63844 54.4477H23.6045C21.7244 54.4477 20.2003 55.9929 20.2003 57.899C20.2003 59.8051 21.7244 61.3504 23.6045 61.3504ZM102.873 61.3504C104.753 61.3504 106.277 59.8051 106.277 57.899C106.277 55.9929 104.753 54.4477 102.873 54.4477C100.993 54.4477 99.4686 55.9929 99.4686 57.899C99.4686 59.8051 100.993 61.3504 102.873 61.3504Z",
|
|
76
76
|
fill: t(N)("primary-0")
|
|
77
77
|
}, null, 8, kt),
|
|
78
|
-
|
|
78
|
+
w("path", {
|
|
79
79
|
"fill-rule": "evenodd",
|
|
80
80
|
"clip-rule": "evenodd",
|
|
81
81
|
d: "M45.9044 52.7159C45.8528 53.0686 45.8261 53.4291 45.8261 53.7956C45.8261 58.0211 49.3738 61.4465 53.75 61.4465C58.1262 61.4465 61.6738 58.0211 61.6738 53.7956C61.6738 53.4291 61.6472 53.0686 61.5956 52.7159H80.8232V69.735C80.8232 70.7914 79.9363 71.6477 78.8422 71.6477H28.6578C27.5637 71.6477 26.6768 70.7914 26.6768 69.735V52.7159H45.9044Z",
|
|
82
82
|
fill: t(N)("gray-0")
|
|
83
83
|
}, null, 8, bt),
|
|
84
|
-
|
|
84
|
+
w("path", {
|
|
85
85
|
"fill-rule": "evenodd",
|
|
86
86
|
"clip-rule": "evenodd",
|
|
87
87
|
d: "M62.3342 52.9157C62.3342 57.6598 58.4909 61.5057 53.75 61.5057C49.0091 61.5057 45.1658 57.6598 45.1658 52.9157C45.1658 52.762 45.1698 52.6092 45.1778 52.4575H26.6768L32.9898 33.779C33.2619 32.9738 34.0169 32.4318 34.8663 32.4318H72.6337C73.4831 32.4318 74.238 32.9738 74.5102 33.779L80.8232 52.4575H62.3222C62.3301 52.6092 62.3342 52.762 62.3342 52.9157Z",
|
|
88
88
|
fill: t(N)("gray-0")
|
|
89
|
-
}, null, 8,
|
|
90
|
-
|
|
89
|
+
}, null, 8, _t),
|
|
90
|
+
w("path", {
|
|
91
91
|
"fill-rule": "evenodd",
|
|
92
92
|
"clip-rule": "evenodd",
|
|
93
93
|
d: "M61.2612 53.3613C61.2612 57.1125 57.8983 60.8295 53.75 60.8295C49.6017 60.8295 46.2388 57.1125 46.2388 53.3613C46.2388 53.2398 46.2424 52.4429 46.2493 52.3229H32.0915L37.6153 38.9061C37.8534 38.2694 38.514 37.8409 39.2573 37.8409H68.2427C68.986 37.8409 69.6466 38.2694 69.8847 38.9061L75.4085 52.3229H61.2507C61.2576 52.4429 61.2612 53.2398 61.2612 53.3613Z",
|
|
94
94
|
fill: t(N)("primary-1")
|
|
95
|
-
}, null, 8,
|
|
96
|
-
|
|
95
|
+
}, null, 8, St),
|
|
96
|
+
w("path", {
|
|
97
97
|
"fill-rule": "evenodd",
|
|
98
98
|
"clip-rule": "evenodd",
|
|
99
99
|
d: "M26.846 52.3862V70.2955C26.846 70.9489 27.3763 71.4787 28.0305 71.4787H79.4695C80.1237 71.4787 80.654 70.9489 80.654 70.2955V52.3862L74.2278 33.405C74.065 32.9244 73.6137 32.6009 73.1058 32.6009H34.3942C33.8863 32.6009 33.435 32.9244 33.2722 33.405L26.846 52.3862Z",
|
|
100
100
|
stroke: t(N)("primary-5"),
|
|
101
101
|
"stroke-width": "2"
|
|
102
102
|
}, null, 8, $t),
|
|
103
|
-
|
|
103
|
+
w("path", {
|
|
104
104
|
d: "M35.4756 52.0398C38.14 52.0398 41.0154 52.0398 44.1017 52.0398C45.3716 52.0398 45.3716 52.9313 45.3716 53.392C45.3716 57.8731 49.0916 61.5057 53.6805 61.5057C58.2693 61.5057 61.9893 57.8731 61.9893 53.392C61.9893 52.9313 61.9893 52.0398 63.2592 52.0398H80.1463M30.4493 52.0398H32.0915H30.4493Z",
|
|
105
105
|
stroke: t(N)("primary-5"),
|
|
106
106
|
"stroke-width": "2",
|
|
107
107
|
"stroke-linecap": "round",
|
|
108
108
|
"stroke-linejoin": "round"
|
|
109
109
|
}, null, 8, Rt),
|
|
110
|
-
|
|
110
|
+
w("path", {
|
|
111
111
|
d: "M70.7382 16.4092L63.2256 24.8292M53.1406 13.5V24.8292V13.5ZM35.4756 16.4092L42.9882 24.8292L35.4756 16.4092Z",
|
|
112
112
|
stroke: t(N)("primary-5"),
|
|
113
113
|
"stroke-width": "2",
|
|
@@ -117,108 +117,108 @@ const vt = ["simple", "advance"], wt = {
|
|
|
117
117
|
]))
|
|
118
118
|
])
|
|
119
119
|
], 2),
|
|
120
|
-
|
|
120
|
+
l.type === "simple" && c.value ? (a(), f("div", {
|
|
121
121
|
key: 0,
|
|
122
|
-
class:
|
|
122
|
+
class: d([t(C)(t(z), "title"), l.titleCls])
|
|
123
123
|
}, [
|
|
124
|
-
H(
|
|
125
|
-
|
|
124
|
+
H(l.$slots, "title", {}, () => [
|
|
125
|
+
ne(J(l.title), 1)
|
|
126
126
|
])
|
|
127
|
-
], 2)) :
|
|
127
|
+
], 2)) : c.value || $.value || s.actions ? (a(), f("div", {
|
|
128
128
|
key: 1,
|
|
129
|
-
class:
|
|
129
|
+
class: d([t(C)(t(z), "content"), l.contentCls])
|
|
130
130
|
}, [
|
|
131
|
-
|
|
131
|
+
c.value || $.value ? (a(), f("div", {
|
|
132
132
|
key: 0,
|
|
133
|
-
class:
|
|
133
|
+
class: d([t(C)(t(z), "text"), l.textCls])
|
|
134
134
|
}, [
|
|
135
|
-
|
|
135
|
+
c.value ? (a(), f("div", {
|
|
136
136
|
key: 0,
|
|
137
|
-
class:
|
|
137
|
+
class: d([t(C)(t(z), "title"), l.titleCls])
|
|
138
138
|
}, [
|
|
139
|
-
H(
|
|
140
|
-
|
|
139
|
+
H(l.$slots, "title", {}, () => [
|
|
140
|
+
ne(J(l.title), 1)
|
|
141
141
|
])
|
|
142
142
|
], 2)) : R("", !0),
|
|
143
|
-
$.value ? (a(),
|
|
143
|
+
$.value ? (a(), f("div", {
|
|
144
144
|
key: 1,
|
|
145
|
-
class:
|
|
145
|
+
class: d([t(C)(t(z), "description"), l.descriptionCls])
|
|
146
146
|
}, [
|
|
147
|
-
H(
|
|
148
|
-
|
|
147
|
+
H(l.$slots, "description", {}, () => [
|
|
148
|
+
ne(J(l.description), 1)
|
|
149
149
|
])
|
|
150
150
|
], 2)) : R("", !0)
|
|
151
151
|
], 2)) : R("", !0),
|
|
152
|
-
|
|
152
|
+
s.actions ? (a(), f("div", {
|
|
153
153
|
key: 1,
|
|
154
|
-
class:
|
|
154
|
+
class: d([t(C)(t(z), "actions"), l.actionsCls])
|
|
155
155
|
}, [
|
|
156
|
-
H(
|
|
156
|
+
H(l.$slots, "actions")
|
|
157
157
|
], 2)) : R("", !0)
|
|
158
158
|
], 2)) : R("", !0)
|
|
159
159
|
], 2));
|
|
160
160
|
}
|
|
161
|
-
}), Bt = (B, { isColumnWrapped:
|
|
161
|
+
}), Bt = (B, { isColumnWrapped: S, selectionId: s }) => {
|
|
162
162
|
const z = (o) => {
|
|
163
|
-
var
|
|
164
|
-
const
|
|
163
|
+
var p;
|
|
164
|
+
const u = (h) => h === "list" ? "md" : "sm";
|
|
165
165
|
return {
|
|
166
166
|
...(o == null ? void 0 : o.skeletonProps) ?? {},
|
|
167
167
|
style: "width: 100%",
|
|
168
|
-
size:
|
|
168
|
+
size: u((p = o == null ? void 0 : o.skeletonProps) == null ? void 0 : p.type)
|
|
169
169
|
};
|
|
170
170
|
}, b = (o) => {
|
|
171
|
-
var
|
|
172
|
-
const
|
|
173
|
-
return V(
|
|
171
|
+
var p, h;
|
|
172
|
+
const u = (p = o.props) == null ? void 0 : p.column.columnDef;
|
|
173
|
+
return V(u == null ? void 0 : u.render) && o.props.row ? (h = u == null ? void 0 : u.render) == null ? void 0 : h.call(u, {
|
|
174
174
|
index: o.props.row.index,
|
|
175
175
|
record: o.props.row.original,
|
|
176
|
-
column: Be(
|
|
176
|
+
column: Be(u, "render")
|
|
177
177
|
}) : typeof o.render == "function" || typeof o.render == "object" ? Ze(o.render, o.props) : o.render;
|
|
178
|
-
},
|
|
179
|
-
let
|
|
178
|
+
}, c = (o) => {
|
|
179
|
+
let u = {};
|
|
180
180
|
if (o) {
|
|
181
|
-
const
|
|
182
|
-
(
|
|
183
|
-
width:
|
|
184
|
-
maxWidth:
|
|
185
|
-
minWidth:
|
|
186
|
-
overflow:
|
|
181
|
+
const p = (D) => Number(D) >= 0 ? `${D}px` : D, { width: h, maxWidth: M, minWidth: L } = o;
|
|
182
|
+
(h || M || L) && (u = {
|
|
183
|
+
width: p(h),
|
|
184
|
+
maxWidth: p(M),
|
|
185
|
+
minWidth: p(L),
|
|
186
|
+
overflow: h || M ? "hidden" : void 0
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
return
|
|
190
|
-
}, $ = {},
|
|
191
|
-
var
|
|
192
|
-
let
|
|
193
|
-
return ((
|
|
194
|
-
},
|
|
195
|
-
var
|
|
189
|
+
return u;
|
|
190
|
+
}, $ = {}, l = (o, u = !0) => {
|
|
191
|
+
var h;
|
|
192
|
+
let p = 1;
|
|
193
|
+
return ((h = o == null ? void 0 : o.subHeaders) == null ? void 0 : h.length) === 1 && o.column.id === o.subHeaders[0].column.id && (p += l(o.subHeaders[0], !1)), u && (!$[o.column.id] || $[o.column.id] < p) && ($[o.column.id] = p), p;
|
|
194
|
+
}, y = (o, u = {}) => {
|
|
195
|
+
var p;
|
|
196
196
|
if (o != null && o.column) {
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
199
|
-
let D =
|
|
200
|
-
const { customCell: K, class: F } =
|
|
201
|
-
if (he(F) || M.push(F), K && (
|
|
202
|
-
const q = (
|
|
203
|
-
if (
|
|
204
|
-
const { wrap: E, colSpan:
|
|
205
|
-
D = D || (E ?? !1), L.colSpan =
|
|
197
|
+
const h = (p = o == null ? void 0 : o.column) == null ? void 0 : p.columnDef, M = [], L = {};
|
|
198
|
+
if (ie(h)) {
|
|
199
|
+
let D = S(o.column.id);
|
|
200
|
+
const { customCell: K, class: F } = h;
|
|
201
|
+
if (he(F) || M.push(F), K && (ie(K) || V(K))) {
|
|
202
|
+
const q = (k) => {
|
|
203
|
+
if (ie(k)) {
|
|
204
|
+
const { wrap: E, colSpan: x, rowSpan: ee } = k;
|
|
205
|
+
D = D || (E ?? !1), L.colSpan = x, L.rowSpan = ee;
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
V(K) && o.row ? q(
|
|
209
209
|
K({
|
|
210
210
|
index: o.row.index,
|
|
211
211
|
record: o.row.original,
|
|
212
|
-
column:
|
|
212
|
+
column: h
|
|
213
213
|
})
|
|
214
214
|
) : q(K);
|
|
215
215
|
}
|
|
216
|
-
o.header ? L.rowSpan =
|
|
216
|
+
o.header ? L.rowSpan = l(o.header) : D && (L.wrap = !0);
|
|
217
217
|
}
|
|
218
218
|
return {
|
|
219
219
|
class: he(M) ? void 0 : M,
|
|
220
220
|
...L,
|
|
221
|
-
...
|
|
221
|
+
...u
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
224
|
return {};
|
|
@@ -227,20 +227,20 @@ const vt = ["simple", "advance"], wt = {
|
|
|
227
227
|
getSkeletonProps: z,
|
|
228
228
|
RenderCell: b,
|
|
229
229
|
getThProps: (o) => {
|
|
230
|
-
var
|
|
231
|
-
return
|
|
232
|
-
colSpan: (
|
|
233
|
-
"data-has-children": ((
|
|
230
|
+
var u, p, h;
|
|
231
|
+
return y(o, {
|
|
232
|
+
colSpan: (u = o == null ? void 0 : o.header) == null ? void 0 : u.colSpan,
|
|
233
|
+
"data-has-children": ((h = (p = o == null ? void 0 : o.column) == null ? void 0 : p.columns) == null ? void 0 : h.length) > 1 ? !0 : void 0
|
|
234
234
|
});
|
|
235
235
|
},
|
|
236
|
-
getTdProps: (o) =>
|
|
236
|
+
getTdProps: (o) => y(o),
|
|
237
237
|
getColProps: (o) => {
|
|
238
|
-
const
|
|
239
|
-
return o.id ===
|
|
240
|
-
style:
|
|
238
|
+
const u = c(o.columnDef);
|
|
239
|
+
return o.id === s && (u.width = "var(--pt-dimension-2800)"), {
|
|
240
|
+
style: u
|
|
241
241
|
};
|
|
242
242
|
},
|
|
243
|
-
isThVisible: (o,
|
|
243
|
+
isThVisible: (o, u, p) => $[p] === 1 ? !0 : u - o === $[p]
|
|
244
244
|
};
|
|
245
245
|
};
|
|
246
246
|
var At = "[object Boolean]";
|
|
@@ -248,26 +248,26 @@ function It(B) {
|
|
|
248
248
|
return B === !0 || B === !1 || tt(B) && ot(B) == At;
|
|
249
249
|
}
|
|
250
250
|
const Tt = (B) => {
|
|
251
|
-
const
|
|
252
|
-
if (
|
|
253
|
-
}, b = (
|
|
254
|
-
var
|
|
255
|
-
return !!((
|
|
256
|
-
},
|
|
257
|
-
const { id:
|
|
258
|
-
if (!
|
|
259
|
-
const W =
|
|
260
|
-
return O >= 0 ?
|
|
251
|
+
const S = Q([]), s = (l) => l ? S.value.findIndex((y) => y.id === l) : -1, z = (l) => {
|
|
252
|
+
if (l) return S.value.find((y) => y.id === l);
|
|
253
|
+
}, b = (l) => {
|
|
254
|
+
var y;
|
|
255
|
+
return !!((y = z(l)) != null && y.wrap);
|
|
256
|
+
}, c = (l) => {
|
|
257
|
+
const { id: y } = l;
|
|
258
|
+
if (!y) return !1;
|
|
259
|
+
const W = l.wrap ?? !b(y), O = s(y);
|
|
260
|
+
return O >= 0 ? S.value[O] = { id: y, wrap: W } : S.value.push({ id: y, wrap: W }), !0;
|
|
261
261
|
}, $ = P(
|
|
262
|
-
() => (B.columns ?? []).filter((
|
|
263
|
-
id:
|
|
264
|
-
wrap: !!
|
|
262
|
+
() => (B.columns ?? []).filter((l) => It(l.wrap)).map((l) => ({
|
|
263
|
+
id: l.id,
|
|
264
|
+
wrap: !!l.wrap
|
|
265
265
|
}))
|
|
266
266
|
);
|
|
267
|
-
return
|
|
267
|
+
return ae(
|
|
268
268
|
$,
|
|
269
|
-
(
|
|
270
|
-
|
|
269
|
+
(l) => {
|
|
270
|
+
S.value = [...S.value, ...l];
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
immediate: !0,
|
|
@@ -275,12 +275,9 @@ const Tt = (B) => {
|
|
|
275
275
|
}
|
|
276
276
|
), {
|
|
277
277
|
isColumnWrapped: b,
|
|
278
|
-
toggleWrap:
|
|
278
|
+
toggleWrap: c
|
|
279
279
|
};
|
|
280
|
-
},
|
|
281
|
-
key: 2,
|
|
282
|
-
class: "h-full flex items-center"
|
|
283
|
-
}, Lt = { class: "h-1600 flex ps-400 gap-400 text-fg items-center" }, Mt = { class: "txs-body" }, Vt = { class: "flex items-center" }, ao = /* @__PURE__ */ _e({
|
|
280
|
+
}, lo = /* @__PURE__ */ Se({
|
|
284
281
|
__name: "DataTable",
|
|
285
282
|
props: {
|
|
286
283
|
columns: {},
|
|
@@ -308,85 +305,85 @@ const Tt = (B) => {
|
|
|
308
305
|
noHeader: { type: Boolean }
|
|
309
306
|
},
|
|
310
307
|
emits: ["fetch"],
|
|
311
|
-
setup(B, { emit:
|
|
312
|
-
const
|
|
308
|
+
setup(B, { emit: S }) {
|
|
309
|
+
const s = B, z = S, b = $e(), c = Re("data_table", rt), $ = Je(), l = `$${c}_selection$`, y = P(() => {
|
|
313
310
|
var e;
|
|
314
|
-
return ((e =
|
|
311
|
+
return ((e = s.actionCol) == null ? void 0 : e.id) ?? `$${c}_action$`;
|
|
315
312
|
}), W = (e) => Be(e ?? {}, "title", "sorter", "columns", "id", "dataIndex"), O = P(() => {
|
|
316
|
-
var
|
|
313
|
+
var v;
|
|
317
314
|
const e = (n) => {
|
|
318
315
|
var j;
|
|
319
|
-
const
|
|
320
|
-
return
|
|
316
|
+
const _ = n.id ?? nt(`${c}--col`);
|
|
317
|
+
return se(be(n, s.childrenColumnName)) ? $.group({
|
|
321
318
|
header: n.title,
|
|
322
|
-
id:
|
|
323
|
-
columns: (j = be(n,
|
|
319
|
+
id: _,
|
|
320
|
+
columns: (j = be(n, s.childrenColumnName) ?? []) == null ? void 0 : j.map(e),
|
|
324
321
|
enableSorting: !1,
|
|
325
322
|
...W(n)
|
|
326
323
|
}) : $.accessor(n.dataIndex ?? n.id, {
|
|
327
324
|
header: n.title,
|
|
328
|
-
id:
|
|
329
|
-
sortingFn: typeof n.sorter == "function" ? (
|
|
325
|
+
id: _,
|
|
326
|
+
sortingFn: typeof n.sorter == "function" ? (oe, We) => n.sorter(oe.original, We.original) : n.sorter,
|
|
330
327
|
enableSorting: !!n.sorter,
|
|
331
328
|
...W(n)
|
|
332
329
|
});
|
|
333
330
|
};
|
|
334
|
-
if (!
|
|
335
|
-
const
|
|
336
|
-
if (ct(
|
|
337
|
-
const
|
|
338
|
-
return
|
|
339
|
-
$.accessor(
|
|
340
|
-
id:
|
|
331
|
+
if (!se(s.columns)) throw "no columns";
|
|
332
|
+
const r = s.columns.map(({ id: n }) => n);
|
|
333
|
+
if (ct(r).length !== r.length) throw "no uniq column ids";
|
|
334
|
+
const i = [];
|
|
335
|
+
return s.rowSelection && s.rowKey && i.push(
|
|
336
|
+
$.accessor(l, {
|
|
337
|
+
id: l,
|
|
341
338
|
enableSorting: !1
|
|
342
339
|
})
|
|
343
|
-
),
|
|
344
|
-
|
|
345
|
-
}), (b.action || b.hoverAction) &&
|
|
346
|
-
$.accessor(
|
|
347
|
-
id:
|
|
348
|
-
header: (
|
|
340
|
+
), s.columns.forEach((n) => {
|
|
341
|
+
i.push(e(n));
|
|
342
|
+
}), (b.action || b.hoverAction) && i.push(
|
|
343
|
+
$.accessor(y.value, {
|
|
344
|
+
id: y.value,
|
|
345
|
+
header: (v = s.actionCol) == null ? void 0 : v.title,
|
|
349
346
|
enableSorting: !1,
|
|
350
|
-
...W(
|
|
347
|
+
...W(s.actionCol)
|
|
351
348
|
})
|
|
352
|
-
),
|
|
353
|
-
}), { toggleWrap: ce, isColumnWrapped:
|
|
354
|
-
() =>
|
|
355
|
-
(e) => e[
|
|
349
|
+
), i;
|
|
350
|
+
}), { toggleWrap: ce, isColumnWrapped: Y } = Tt(s), o = Q({}), u = P(() => Object.keys(o.value)), p = P(
|
|
351
|
+
() => s.rowKey ? Qe(s.data, (e) => e.children).map(
|
|
352
|
+
(e) => e[s.rowKey]
|
|
356
353
|
) : []
|
|
357
|
-
),
|
|
354
|
+
), h = () => {
|
|
358
355
|
const e = Object.fromEntries(
|
|
359
|
-
|
|
360
|
-
var
|
|
361
|
-
return !((
|
|
362
|
-
}).map((
|
|
356
|
+
u.value.filter((r) => {
|
|
357
|
+
var i;
|
|
358
|
+
return !((i = s.rowSelection) != null && i.preserveSelectedRowKeys) && s.rowKey ? p.value.includes(r) : !0;
|
|
359
|
+
}).map((r) => [r, !0])
|
|
363
360
|
);
|
|
364
|
-
Object.keys(e).length !==
|
|
365
|
-
var
|
|
366
|
-
V((
|
|
361
|
+
Object.keys(e).length !== u.value.length && (o.value = e, le(() => {
|
|
362
|
+
var r;
|
|
363
|
+
V((r = s.rowSelection) == null ? void 0 : r.onChange) && s.rowSelection.onChange(E.value);
|
|
367
364
|
}));
|
|
368
|
-
}, M = P(() => (
|
|
365
|
+
}, M = P(() => (h(), [...s.data])), L = at(), K = ut(
|
|
369
366
|
Object.fromEntries(
|
|
370
367
|
Object.keys(L).map((e) => [e, L[e].minWidth])
|
|
371
368
|
),
|
|
372
369
|
{ strategy: "min-width" }
|
|
373
370
|
).active(), F = Q({});
|
|
374
|
-
|
|
371
|
+
ae(
|
|
375
372
|
K,
|
|
376
373
|
(e) => {
|
|
377
374
|
F.value = Object.fromEntries(
|
|
378
|
-
O.value.map((
|
|
379
|
-
var
|
|
375
|
+
O.value.map((r) => {
|
|
376
|
+
var i;
|
|
380
377
|
return [
|
|
381
|
-
|
|
382
|
-
|
|
378
|
+
r.id,
|
|
379
|
+
se(r == null ? void 0 : r.responsive) ? (i = r.responsive) == null ? void 0 : i.includes(e) : !0
|
|
383
380
|
];
|
|
384
381
|
})
|
|
385
382
|
);
|
|
386
383
|
},
|
|
387
384
|
{ immediate: !0 }
|
|
388
385
|
);
|
|
389
|
-
const q = Q([]),
|
|
386
|
+
const q = Q([]), k = Xe({
|
|
390
387
|
// debugTable: true,
|
|
391
388
|
getSubRows: (e) => e.children,
|
|
392
389
|
enableSorting: !0,
|
|
@@ -412,6 +409,9 @@ const Tt = (B) => {
|
|
|
412
409
|
get columns() {
|
|
413
410
|
return O.value;
|
|
414
411
|
},
|
|
412
|
+
getRowId(e, r) {
|
|
413
|
+
return s.rowKey ? e[s.rowKey] : r;
|
|
414
|
+
},
|
|
415
415
|
getRowCanExpand: () => !0,
|
|
416
416
|
getCoreRowModel: xe(),
|
|
417
417
|
getSortedRowModel: Ye(),
|
|
@@ -419,182 +419,182 @@ const Tt = (B) => {
|
|
|
419
419
|
o.value = typeof e == "function" ? e(o.value) : e;
|
|
420
420
|
}
|
|
421
421
|
}), E = P(() => ({
|
|
422
|
-
selectedRowKeys:
|
|
423
|
-
selectedRows:
|
|
422
|
+
selectedRowKeys: u.value,
|
|
423
|
+
selectedRows: k.getFilteredSelectedRowModel().flatRows.map((e) => e.original)
|
|
424
424
|
}));
|
|
425
|
-
|
|
426
|
-
() => l.rowKey,
|
|
427
|
-
() => {
|
|
428
|
-
w._getRowId = l.rowKey ? (e) => e[l.rowKey] : void 0;
|
|
429
|
-
},
|
|
430
|
-
{ immediate: !0 }
|
|
431
|
-
), X(
|
|
425
|
+
ae(
|
|
432
426
|
() => {
|
|
433
427
|
var e;
|
|
434
|
-
return (e =
|
|
428
|
+
return (e = s.rowSelection) == null ? void 0 : e.selectedRowKeys;
|
|
435
429
|
},
|
|
436
|
-
(e,
|
|
437
|
-
var
|
|
438
|
-
if ((
|
|
430
|
+
(e, r) => {
|
|
431
|
+
var i, v;
|
|
432
|
+
if ((v = (i = s.rowSelection) == null ? void 0 : i.selectedRowKeys) != null && v.length && !_e(e, r)) {
|
|
439
433
|
const n = Object.fromEntries(
|
|
440
|
-
t(
|
|
441
|
-
(
|
|
434
|
+
t(s.rowSelection.selectedRowKeys ?? Object.keys(o.value)).map(
|
|
435
|
+
(_) => [_, !0]
|
|
442
436
|
)
|
|
443
437
|
);
|
|
444
|
-
|
|
438
|
+
_e(n, o.value) || (o.value = n);
|
|
445
439
|
}
|
|
446
440
|
},
|
|
447
441
|
{ immediate: !0 }
|
|
448
442
|
);
|
|
449
|
-
const
|
|
450
|
-
|
|
451
|
-
var
|
|
452
|
-
V((
|
|
443
|
+
const x = P(() => k.getIsAllRowsSelected() ? !0 : k.getIsSomeRowsSelected() ? "indeterminate" : !1), ee = (e) => {
|
|
444
|
+
k.getIsSomeRowsSelected() || k.getIsAllRowsSelected() ? k.toggleAllRowsSelected(!1) : k.toggleAllRowsSelected(!0), le(() => {
|
|
445
|
+
var r, i;
|
|
446
|
+
V((r = s.rowSelection) == null ? void 0 : r.onSelectAll) && s.rowSelection.onSelectAll({ ...E.value, selected: e }), V((i = s.rowSelection) == null ? void 0 : i.onChange) && s.rowSelection.onChange(E.value);
|
|
453
447
|
});
|
|
454
|
-
}, Ae = (e,
|
|
455
|
-
var
|
|
456
|
-
|
|
457
|
-
selectChildren: !((
|
|
458
|
-
}),
|
|
459
|
-
var
|
|
460
|
-
V((
|
|
448
|
+
}, Ae = (e, r) => {
|
|
449
|
+
var i;
|
|
450
|
+
r.toggleSelected(e, {
|
|
451
|
+
selectChildren: !((i = s.rowSelection) != null && i.checkStrictly)
|
|
452
|
+
}), le(() => {
|
|
453
|
+
var v, n;
|
|
454
|
+
V((v = s.rowSelection) == null ? void 0 : v.onSelect) && s.rowSelection.onSelect({
|
|
461
455
|
...E.value,
|
|
462
456
|
selected: e,
|
|
463
|
-
record:
|
|
464
|
-
}), V((n =
|
|
457
|
+
record: r.original
|
|
458
|
+
}), V((n = s.rowSelection) == null ? void 0 : n.onChange) && s.rowSelection.onChange(E.value);
|
|
465
459
|
});
|
|
466
460
|
}, Ie = (e) => {
|
|
467
|
-
var
|
|
468
|
-
return V((
|
|
461
|
+
var r, i;
|
|
462
|
+
return V((r = s.rowSelection) == null ? void 0 : r.getCheckboxProps) && ((i = s.rowSelection) == null || i.getCheckboxProps(e)), {};
|
|
469
463
|
}, ue = (e) => {
|
|
470
|
-
var
|
|
464
|
+
var r;
|
|
471
465
|
if (e.getIsSelected()) return !0;
|
|
472
|
-
if ((
|
|
466
|
+
if ((r = e.subRows) != null && r.length) {
|
|
473
467
|
if (e.getIsAllSubRowsSelected()) return !0;
|
|
474
468
|
if (e.getIsSomeSelected()) return "indeterminate";
|
|
475
469
|
}
|
|
476
470
|
return !1;
|
|
477
471
|
}, de = Ne("target"), { stop: Te } = dt(de, ([e]) => {
|
|
478
|
-
|
|
472
|
+
s.lazyLoading && !s.loading && (e != null && e.isIntersecting) && z("fetch");
|
|
479
473
|
});
|
|
480
474
|
Oe(Te);
|
|
481
|
-
const { getSkeletonProps: Pe, getThProps: Le, RenderCell: me, getTdProps:
|
|
482
|
-
selectionId:
|
|
483
|
-
isColumnWrapped:
|
|
475
|
+
const { getSkeletonProps: Pe, getThProps: Le, RenderCell: me, getTdProps: te, getColProps: Me, isThVisible: Ve } = Bt(s, {
|
|
476
|
+
selectionId: l,
|
|
477
|
+
isColumnWrapped: Y
|
|
484
478
|
}), pe = P(() => Object.keys(o.value).length), De = () => {
|
|
485
479
|
o.value = {};
|
|
486
|
-
}, Ke = ze(
|
|
480
|
+
}, Ke = ze(c, {
|
|
487
481
|
variants: {
|
|
488
|
-
empty: He("empty",
|
|
482
|
+
empty: He("empty", c)
|
|
489
483
|
}
|
|
490
|
-
}), fe = qe(0), Ee = ({ item: e },
|
|
491
|
-
e.key === "a-z" &&
|
|
484
|
+
}), fe = qe(0), Ee = ({ item: e }, r) => {
|
|
485
|
+
e.key === "a-z" && r.toggleSorting(!1, !1), e.key === "z-a" && r.toggleSorting(!0, !1), e.key === "wrap" && ce({ id: r.id }), fe.value++;
|
|
492
486
|
}, je = (e) => {
|
|
493
|
-
const
|
|
494
|
-
if (!
|
|
495
|
-
if (
|
|
496
|
-
if (
|
|
487
|
+
const r = e.getIsSorted();
|
|
488
|
+
if (!r) return "tabler:arrows-up-down";
|
|
489
|
+
if (r === "desc") return "tabler:arrow-down";
|
|
490
|
+
if (r === "asc") return "tabler:arrow-up";
|
|
497
491
|
}, ge = P(
|
|
498
|
-
() =>
|
|
492
|
+
() => k.getHeaderGroups().map((e) => ({
|
|
499
493
|
...e,
|
|
500
|
-
headers: e.headers.map((
|
|
501
|
-
...
|
|
502
|
-
bindings: Le(
|
|
494
|
+
headers: e.headers.map((r) => ({
|
|
495
|
+
...r,
|
|
496
|
+
bindings: Le(r.getContext())
|
|
503
497
|
}))
|
|
504
498
|
}))
|
|
505
499
|
);
|
|
506
|
-
return (e,
|
|
507
|
-
class:
|
|
500
|
+
return (e, r) => (a(), f("div", {
|
|
501
|
+
class: d([t(C)(t(c), "root"), e.rootCls])
|
|
508
502
|
}, [
|
|
509
|
-
|
|
503
|
+
g(ve, {
|
|
510
504
|
"z-index": "1",
|
|
511
505
|
open: !!(pe.value && b.batchActions),
|
|
512
506
|
placement: "bottom",
|
|
513
507
|
"side-offset": -54,
|
|
514
508
|
"container-cls": "pantograph-tokens dark"
|
|
515
509
|
}, {
|
|
516
|
-
content:
|
|
517
|
-
|
|
518
|
-
|
|
510
|
+
content: m(() => [
|
|
511
|
+
w("div", {
|
|
512
|
+
class: d(t(C)(t(c), "batch_actions"))
|
|
513
|
+
}, [
|
|
514
|
+
g(pt, {
|
|
519
515
|
text: pe.value,
|
|
520
516
|
size: "xsm"
|
|
521
517
|
}, null, 8, ["text"]),
|
|
522
|
-
|
|
523
|
-
|
|
518
|
+
w("div", {
|
|
519
|
+
class: d(t(C)(t(c), "batch_actions__title"))
|
|
520
|
+
}, J(e.batchActionsTitle), 3),
|
|
521
|
+
w("div", {
|
|
522
|
+
class: d(t(C)(t(c), "batch_actions__actions"))
|
|
523
|
+
}, [
|
|
524
524
|
H(e.$slots, "batchActions", Ge(Ue(E.value)))
|
|
525
|
-
]),
|
|
526
|
-
|
|
525
|
+
], 2),
|
|
526
|
+
g(we, {
|
|
527
527
|
type: "vertical",
|
|
528
|
-
class: "
|
|
529
|
-
}),
|
|
530
|
-
|
|
528
|
+
class: d(t(C)(t(c), "batch_actions__divider"))
|
|
529
|
+
}, null, 8, ["class"]),
|
|
530
|
+
g(ke, {
|
|
531
531
|
icon: "tabler:x",
|
|
532
532
|
color: "gray",
|
|
533
533
|
type: "ghost",
|
|
534
534
|
onClick: De
|
|
535
535
|
})
|
|
536
|
-
])
|
|
536
|
+
], 2)
|
|
537
537
|
]),
|
|
538
|
-
default:
|
|
539
|
-
|
|
540
|
-
class:
|
|
538
|
+
default: m(() => [
|
|
539
|
+
w("div", {
|
|
540
|
+
class: d([t(C)(t(c), "scroll_area"), e.scrollAreaCls])
|
|
541
541
|
}, [
|
|
542
|
-
|
|
543
|
-
class:
|
|
542
|
+
w("div", {
|
|
543
|
+
class: d([t(C)(t(c), "scroll_viewport"), e.scrollViewportCls])
|
|
544
544
|
}, [
|
|
545
|
-
|
|
545
|
+
g(t(gt), {
|
|
546
546
|
size: e.size,
|
|
547
547
|
style: Fe({
|
|
548
548
|
tableLayout: e.tableLayout
|
|
549
549
|
}),
|
|
550
|
-
class:
|
|
550
|
+
class: d([
|
|
551
551
|
t(Ke)({
|
|
552
|
-
empty: !t(
|
|
552
|
+
empty: !t(k).getRowModel().rows.length
|
|
553
553
|
}),
|
|
554
|
-
|
|
554
|
+
s.class
|
|
555
555
|
])
|
|
556
556
|
}, {
|
|
557
|
-
default:
|
|
558
|
-
|
|
559
|
-
(a(!0),
|
|
560
|
-
key:
|
|
557
|
+
default: m(() => [
|
|
558
|
+
w("colgroup", null, [
|
|
559
|
+
(a(!0), f(A, null, Z(t(k).getVisibleLeafColumns(), (i, v) => (a(), f("col", I({
|
|
560
|
+
key: i.id,
|
|
561
561
|
ref_for: !0
|
|
562
|
-
}, t(Me)(
|
|
562
|
+
}, t(Me)(i)), null, 16))), 128))
|
|
563
563
|
]),
|
|
564
564
|
e.noHeader ? R("", !0) : (a(), T(t(Ct), {
|
|
565
565
|
key: 0,
|
|
566
|
-
class:
|
|
566
|
+
class: d(e.theadCls),
|
|
567
567
|
sticky: e.stickyHeader
|
|
568
568
|
}, {
|
|
569
|
-
default:
|
|
570
|
-
(a(!0),
|
|
571
|
-
key:
|
|
569
|
+
default: m(() => [
|
|
570
|
+
(a(!0), f(A, null, Z(ge.value, (i, v) => (a(), T(t(G), {
|
|
571
|
+
key: i.id
|
|
572
572
|
}, {
|
|
573
|
-
default:
|
|
574
|
-
(a(!0),
|
|
573
|
+
default: m(() => [
|
|
574
|
+
(a(!0), f(A, null, Z(i.headers, (n) => (a(), f(A, {
|
|
575
575
|
key: n.id
|
|
576
576
|
}, [
|
|
577
|
-
t(Ve)(
|
|
577
|
+
t(Ve)(v, ge.value.length, n.column.id) ? (a(), T(t(yt), I({
|
|
578
578
|
key: 0,
|
|
579
579
|
ref_for: !0
|
|
580
580
|
}, n.bindings, {
|
|
581
|
-
"data-selection": n.column.id ===
|
|
581
|
+
"data-selection": n.column.id === l
|
|
582
582
|
}), {
|
|
583
|
-
default:
|
|
584
|
-
|
|
585
|
-
class:
|
|
583
|
+
default: m(() => [
|
|
584
|
+
w("div", {
|
|
585
|
+
class: d(t(C)(t(c), "header"))
|
|
586
586
|
}, [
|
|
587
|
-
|
|
588
|
-
class:
|
|
587
|
+
w("div", {
|
|
588
|
+
class: d(t(C)(t(c), "header__content"))
|
|
589
589
|
}, [
|
|
590
|
-
n.column.id !==
|
|
591
|
-
|
|
592
|
-
class:
|
|
590
|
+
n.column.id !== l ? (a(), f(A, { key: 0 }, [
|
|
591
|
+
w("div", {
|
|
592
|
+
class: d(t(C)(t(c), "header__content__title"))
|
|
593
593
|
}, [
|
|
594
594
|
H(e.$slots, "headerCell", I({ ref_for: !0 }, {
|
|
595
595
|
column: n.column.columnDef
|
|
596
596
|
}), () => [
|
|
597
|
-
|
|
597
|
+
g(t(me), {
|
|
598
598
|
props: n.getContext(),
|
|
599
599
|
render: n.column.columnDef.header
|
|
600
600
|
}, null, 8, ["props", "render"])
|
|
@@ -602,82 +602,82 @@ const Tt = (B) => {
|
|
|
602
602
|
], 2),
|
|
603
603
|
n.column.getCanSort() ? (a(), T(st, {
|
|
604
604
|
key: 0,
|
|
605
|
-
class:
|
|
605
|
+
class: d({ hide_filter_action: !n.column.getIsSorted() }),
|
|
606
606
|
icon: je(n.column),
|
|
607
607
|
size: "sm",
|
|
608
608
|
type: "ghost",
|
|
609
609
|
variant: "icon",
|
|
610
610
|
active: !!n.column.getIsSorted(),
|
|
611
|
-
onClick: (
|
|
611
|
+
onClick: (_) => {
|
|
612
612
|
var j;
|
|
613
|
-
return (j = n.column.getToggleSortingHandler()) == null ? void 0 : j(
|
|
613
|
+
return (j = n.column.getToggleSortingHandler()) == null ? void 0 : j(_);
|
|
614
614
|
}
|
|
615
615
|
}, null, 8, ["class", "icon", "active", "onClick"])) : R("", !0)
|
|
616
|
-
], 64)) : (a(),
|
|
617
|
-
|
|
618
|
-
class:
|
|
616
|
+
], 64)) : (a(), f(A, { key: 1 }, [
|
|
617
|
+
w("div", {
|
|
618
|
+
class: d(t(C)(t(c), "selection_space"))
|
|
619
619
|
}, null, 2),
|
|
620
|
-
|
|
620
|
+
g(ye, {
|
|
621
621
|
rootCls: "w-fit",
|
|
622
|
-
checked:
|
|
623
|
-
onChange:
|
|
622
|
+
checked: x.value,
|
|
623
|
+
onChange: ee
|
|
624
624
|
}, null, 8, ["checked"])
|
|
625
625
|
], 64))
|
|
626
626
|
], 2),
|
|
627
|
-
![
|
|
627
|
+
![y.value, l].includes(n.column.id) && !n.column.columns.length ? (a(), f("div", {
|
|
628
628
|
key: 0,
|
|
629
|
-
class:
|
|
629
|
+
class: d(t(C)(t(c), "header__action"))
|
|
630
630
|
}, [
|
|
631
631
|
(a(), T(ve, {
|
|
632
632
|
"z-index": "1",
|
|
633
633
|
placement: "bottom-end",
|
|
634
634
|
key: fe.value
|
|
635
635
|
}, {
|
|
636
|
-
content:
|
|
637
|
-
|
|
638
|
-
onSelect: (
|
|
636
|
+
content: m(() => [
|
|
637
|
+
g(lt, {
|
|
638
|
+
onSelect: (_) => Ee(_, n.column)
|
|
639
639
|
}, {
|
|
640
|
-
default:
|
|
641
|
-
n.column.getCanSort() ? (a(),
|
|
642
|
-
|
|
640
|
+
default: m(() => [
|
|
641
|
+
n.column.getCanSort() ? (a(), f(A, { key: 0 }, [
|
|
642
|
+
g(re, {
|
|
643
643
|
title: "Sort A → Z",
|
|
644
644
|
key: "a-z"
|
|
645
645
|
}, {
|
|
646
|
-
leading:
|
|
647
|
-
|
|
646
|
+
leading: m(({ iconSize: _ }) => [
|
|
647
|
+
g(X, {
|
|
648
648
|
icon: "tabler:arrow-up",
|
|
649
|
-
size:
|
|
649
|
+
size: _
|
|
650
650
|
}, null, 8, ["size"])
|
|
651
651
|
]),
|
|
652
652
|
_: 1
|
|
653
653
|
}),
|
|
654
|
-
|
|
654
|
+
g(re, {
|
|
655
655
|
title: "Sort Z → A",
|
|
656
656
|
key: "z-a"
|
|
657
657
|
}, {
|
|
658
|
-
leading:
|
|
659
|
-
|
|
658
|
+
leading: m(({ iconSize: _ }) => [
|
|
659
|
+
g(X, {
|
|
660
660
|
icon: "tabler:arrow-down",
|
|
661
|
-
size:
|
|
661
|
+
size: _
|
|
662
662
|
}, null, 8, ["size"])
|
|
663
663
|
]),
|
|
664
664
|
_: 1
|
|
665
665
|
}),
|
|
666
|
-
|
|
666
|
+
g(we)
|
|
667
667
|
], 64)) : R("", !0),
|
|
668
|
-
|
|
668
|
+
g(re, {
|
|
669
669
|
title: "Wrap Column",
|
|
670
670
|
key: "wrap"
|
|
671
671
|
}, {
|
|
672
|
-
leading:
|
|
673
|
-
|
|
672
|
+
leading: m(({ iconSize: _ }) => [
|
|
673
|
+
g(X, {
|
|
674
674
|
icon: "tabler:text-wrap",
|
|
675
|
-
size:
|
|
675
|
+
size: _
|
|
676
676
|
}, null, 8, ["size"])
|
|
677
677
|
]),
|
|
678
|
-
trailing:
|
|
679
|
-
|
|
680
|
-
checked: t(
|
|
678
|
+
trailing: m(() => [
|
|
679
|
+
g(ft, {
|
|
680
|
+
checked: t(Y)(n.column.id)
|
|
681
681
|
}, null, 8, ["checked"])
|
|
682
682
|
]),
|
|
683
683
|
_: 2
|
|
@@ -686,13 +686,13 @@ const Tt = (B) => {
|
|
|
686
686
|
_: 2
|
|
687
687
|
}, 1032, ["onSelect"])
|
|
688
688
|
]),
|
|
689
|
-
default:
|
|
690
|
-
|
|
689
|
+
default: m(() => [
|
|
690
|
+
g(ke, {
|
|
691
691
|
icon: "tabler:dots-vertical",
|
|
692
692
|
size: "sm",
|
|
693
693
|
color: "gray",
|
|
694
694
|
type: "ghost",
|
|
695
|
-
class:
|
|
695
|
+
class: d(t(C)(t(c), "header__action__hover"))
|
|
696
696
|
}, null, 8, ["class"])
|
|
697
697
|
]),
|
|
698
698
|
_: 2
|
|
@@ -709,39 +709,39 @@ const Tt = (B) => {
|
|
|
709
709
|
]),
|
|
710
710
|
_: 3
|
|
711
711
|
}, 8, ["class", "sticky"])),
|
|
712
|
-
|
|
713
|
-
class:
|
|
712
|
+
g(t(ht), {
|
|
713
|
+
class: d(e.tbodyCls)
|
|
714
714
|
}, {
|
|
715
|
-
default:
|
|
716
|
-
(a(!0),
|
|
717
|
-
key:
|
|
715
|
+
default: m(() => [
|
|
716
|
+
(a(!0), f(A, null, Z(t(k).getRowModel().rows, (i, v) => (a(), T(t(G), {
|
|
717
|
+
key: i.id,
|
|
718
718
|
zebra: e.zebra,
|
|
719
|
-
checked: !!ue(
|
|
719
|
+
checked: !!ue(i)
|
|
720
720
|
}, {
|
|
721
|
-
default:
|
|
722
|
-
(a(!0),
|
|
723
|
-
var
|
|
724
|
-
return a(),
|
|
721
|
+
default: m(() => [
|
|
722
|
+
(a(!0), f(A, null, Z(i.getVisibleCells(), (n) => {
|
|
723
|
+
var _, j;
|
|
724
|
+
return a(), f(A, {
|
|
725
725
|
key: n.id
|
|
726
726
|
}, [
|
|
727
|
-
((
|
|
727
|
+
((_ = t(te)(n.getContext())) == null ? void 0 : _.colSpan) !== 0 && ((j = t(te)(n.getContext())) == null ? void 0 : j.rowSpan) !== 0 ? (a(), T(t(U), I({
|
|
728
728
|
key: 0,
|
|
729
729
|
ref_for: !0
|
|
730
|
-
}, t(
|
|
731
|
-
default:
|
|
732
|
-
n.column.id ===
|
|
730
|
+
}, t(te)(n.getContext())), Ce({
|
|
731
|
+
default: m(() => [
|
|
732
|
+
n.column.id === y.value && (b.hoverAction || b.action) ? (a(), f("div", {
|
|
733
733
|
key: 0,
|
|
734
|
-
class:
|
|
734
|
+
class: d(t(C)(t(c), "action_cell"))
|
|
735
735
|
}, [
|
|
736
|
-
|
|
737
|
-
class:
|
|
736
|
+
w("div", {
|
|
737
|
+
class: d([t(C)(t(c), "action_cell__hover"), e.actionHoverCls])
|
|
738
738
|
}, [
|
|
739
739
|
H(e.$slots, "hoverAction", I(
|
|
740
740
|
{ ref_for: !0 },
|
|
741
741
|
{
|
|
742
742
|
column: n.column.columnDef,
|
|
743
|
-
record:
|
|
744
|
-
index:
|
|
743
|
+
record: i.original,
|
|
744
|
+
index: v
|
|
745
745
|
}
|
|
746
746
|
))
|
|
747
747
|
], 2),
|
|
@@ -749,49 +749,52 @@ const Tt = (B) => {
|
|
|
749
749
|
{ ref_for: !0 },
|
|
750
750
|
{
|
|
751
751
|
column: n.column.columnDef,
|
|
752
|
-
record:
|
|
753
|
-
index:
|
|
752
|
+
record: i.original,
|
|
753
|
+
index: v
|
|
754
754
|
}
|
|
755
755
|
))
|
|
756
|
-
], 2)) : n.column.id !==
|
|
756
|
+
], 2)) : n.column.id !== l ? H(e.$slots, "bodyCell", I(
|
|
757
757
|
{
|
|
758
758
|
key: 1,
|
|
759
759
|
ref_for: !0
|
|
760
760
|
},
|
|
761
761
|
{
|
|
762
762
|
column: n.column.columnDef,
|
|
763
|
-
record:
|
|
764
|
-
index:
|
|
763
|
+
record: i.original,
|
|
764
|
+
index: v
|
|
765
765
|
}
|
|
766
766
|
), () => [
|
|
767
|
-
|
|
767
|
+
g(t(me), {
|
|
768
768
|
render: n.column.columnDef.cell,
|
|
769
769
|
props: n.getContext()
|
|
770
770
|
}, null, 8, ["render", "props"])
|
|
771
|
-
]) : e.rowKey &&
|
|
772
|
-
|
|
773
|
-
|
|
771
|
+
]) : e.rowKey && i.original[e.rowKey] ? (a(), f("div", {
|
|
772
|
+
key: 2,
|
|
773
|
+
class: d(t(C)(t(c), "selection"))
|
|
774
|
+
}, [
|
|
775
|
+
w("div", {
|
|
776
|
+
class: d(t(C)(t(c), "selection_space"))
|
|
774
777
|
}, null, 2),
|
|
775
|
-
|
|
778
|
+
g(ye, I({
|
|
776
779
|
rootCls: "w-fit",
|
|
777
|
-
disabled: !
|
|
778
|
-
checked: ue(
|
|
779
|
-
onChange: (
|
|
780
|
+
disabled: !i.getCanSelect(),
|
|
781
|
+
checked: ue(i),
|
|
782
|
+
onChange: (oe) => Ae(oe, i),
|
|
780
783
|
ref_for: !0
|
|
781
|
-
}, Ie(
|
|
782
|
-
])) : R("", !0)
|
|
784
|
+
}, Ie(i.original)), null, 16, ["disabled", "checked", "onChange"])
|
|
785
|
+
], 2)) : R("", !0)
|
|
783
786
|
]),
|
|
784
787
|
_: 2
|
|
785
788
|
}, [
|
|
786
|
-
b.cellAction && ![
|
|
789
|
+
b.cellAction && ![y.value, l].includes(n.column.id) ? {
|
|
787
790
|
name: "absoluteAction",
|
|
788
|
-
fn:
|
|
791
|
+
fn: m(() => [
|
|
789
792
|
H(e.$slots, "cellAction", I(
|
|
790
793
|
{ ref_for: !0 },
|
|
791
794
|
{
|
|
792
795
|
column: n.column.columnDef,
|
|
793
|
-
record:
|
|
794
|
-
index:
|
|
796
|
+
record: i.original,
|
|
797
|
+
index: v
|
|
795
798
|
}
|
|
796
799
|
))
|
|
797
800
|
]),
|
|
@@ -803,18 +806,18 @@ const Tt = (B) => {
|
|
|
803
806
|
]),
|
|
804
807
|
_: 2
|
|
805
808
|
}, 1032, ["zebra", "checked"]))), 128)),
|
|
806
|
-
|
|
807
|
-
key:
|
|
809
|
+
s.loading ? (a(!0), f(A, { key: 0 }, Z(t(k).getRowModel().rows.length ? 2 : e.loadingRowCount, (i) => (a(), T(t(G), {
|
|
810
|
+
key: i,
|
|
808
811
|
zebra: e.zebra
|
|
809
812
|
}, {
|
|
810
|
-
default:
|
|
811
|
-
(a(!0),
|
|
812
|
-
default:
|
|
813
|
-
|
|
813
|
+
default: m(() => [
|
|
814
|
+
(a(!0), f(A, null, Z(t(k).getVisibleLeafColumns(), (v, n) => (a(), T(t(U), { key: n }, {
|
|
815
|
+
default: m(() => [
|
|
816
|
+
v.id !== l ? H(e.$slots, "skeleton", I({
|
|
814
817
|
key: 0,
|
|
815
818
|
ref_for: !0
|
|
816
|
-
}, { index: n, column:
|
|
817
|
-
|
|
819
|
+
}, { index: n, column: v.columnDef }), () => [
|
|
820
|
+
g(mt, I({ ref_for: !0 }, t(Pe)(v.columnDef)), null, 16)
|
|
818
821
|
]) : R("", !0)
|
|
819
822
|
]),
|
|
820
823
|
_: 2
|
|
@@ -822,41 +825,41 @@ const Tt = (B) => {
|
|
|
822
825
|
]),
|
|
823
826
|
_: 2
|
|
824
827
|
}, 1032, ["zebra"]))), 128)) : R("", !0),
|
|
825
|
-
t(
|
|
828
|
+
t(k).getRowModel().rows.length ? R("", !0) : (a(), T(t(G), {
|
|
826
829
|
key: 1,
|
|
827
830
|
empty: ""
|
|
828
831
|
}, {
|
|
829
|
-
default:
|
|
830
|
-
|
|
831
|
-
colspan: t(
|
|
832
|
+
default: m(() => [
|
|
833
|
+
g(t(U), {
|
|
834
|
+
colspan: t(k).getVisibleLeafColumns().length,
|
|
832
835
|
empty: ""
|
|
833
836
|
}, {
|
|
834
|
-
default:
|
|
835
|
-
|
|
837
|
+
default: m(() => [
|
|
838
|
+
g(zt, I({ type: "advance" }, e.emptyProps), Ce({ _: 2 }, [
|
|
836
839
|
b.emptyTitle ? {
|
|
837
840
|
name: "title",
|
|
838
|
-
fn:
|
|
841
|
+
fn: m(() => [
|
|
839
842
|
H(e.$slots, "emptyTitle")
|
|
840
843
|
]),
|
|
841
844
|
key: "0"
|
|
842
845
|
} : void 0,
|
|
843
846
|
b.emptyDescription ? {
|
|
844
847
|
name: "title",
|
|
845
|
-
fn:
|
|
848
|
+
fn: m(() => [
|
|
846
849
|
H(e.$slots, "emptyDescription")
|
|
847
850
|
]),
|
|
848
851
|
key: "1"
|
|
849
852
|
} : void 0,
|
|
850
853
|
b.emptyActions ? {
|
|
851
854
|
name: "title",
|
|
852
|
-
fn:
|
|
855
|
+
fn: m(() => [
|
|
853
856
|
H(e.$slots, "emptyActions")
|
|
854
857
|
]),
|
|
855
858
|
key: "2"
|
|
856
859
|
} : void 0,
|
|
857
860
|
b.emptyImage ? {
|
|
858
861
|
name: "title",
|
|
859
|
-
fn:
|
|
862
|
+
fn: m(() => [
|
|
860
863
|
H(e.$slots, "emptyImage")
|
|
861
864
|
]),
|
|
862
865
|
key: "3"
|
|
@@ -872,8 +875,8 @@ const Tt = (B) => {
|
|
|
872
875
|
key: 2,
|
|
873
876
|
"lazy-load-observer": ""
|
|
874
877
|
}, {
|
|
875
|
-
default:
|
|
876
|
-
|
|
878
|
+
default: m(() => [
|
|
879
|
+
g(t(U), {
|
|
877
880
|
ref_key: "target",
|
|
878
881
|
ref: de,
|
|
879
882
|
"lazy-load-observer": ""
|
|
@@ -896,6 +899,6 @@ const Tt = (B) => {
|
|
|
896
899
|
}
|
|
897
900
|
});
|
|
898
901
|
export {
|
|
899
|
-
|
|
900
|
-
|
|
902
|
+
lo as DataTable,
|
|
903
|
+
lo as default
|
|
901
904
|
};
|