hys-ui 0.2.0 → 0.3.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/CHANGELOG.md +38 -0
- package/README.md +15 -1
- package/dist/components/HysAlert/HysAlert.vue.js +5 -54
- package/dist/components/HysAlert/HysAlert2.vue.js +159 -2
- package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +2 -2
- package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +285 -273
- package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +1 -1
- package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +102 -98
- package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +1 -1
- package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +273 -59
- package/dist/components/HysCalendar/HysCalendar.vue.js +3 -3
- package/dist/components/HysCalendar/HysCalendar2.vue.js +237 -225
- package/dist/components/HysCascader/HysCascader.vue.js +2 -2
- package/dist/components/HysCascader/HysCascader2.vue.js +337 -324
- package/dist/components/HysColorPicker/HysColorPanel.vue.js +7 -0
- package/dist/components/HysColorPicker/HysColorPanel2.vue.js +238 -0
- package/dist/components/HysColorPicker/HysColorPicker.vue.js +2 -2
- package/dist/components/HysColorPicker/HysColorPicker2.vue.js +239 -217
- package/dist/components/HysCommandPalette/HysCommandPalette.vue.js +90 -76
- package/dist/components/HysContextMenu/HysContextMenu.vue.js +5 -89
- package/dist/components/HysContextMenu/HysContextMenu2.vue.js +247 -2
- package/dist/components/HysContextMenu/HysMenuPanel.vue.js +7 -0
- package/dist/components/HysContextMenu/HysMenuPanel2.vue.js +208 -0
- package/dist/components/HysContextMenu/HysMenuSlot.js +10 -0
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +1008 -559
- package/dist/components/HysDatePicker/HysDatePicker.vue.js +2 -0
- package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +2 -2
- package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +539 -526
- package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +5 -3
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +434 -84
- package/dist/components/HysEmpty/HysEmpty.vue.js +5 -41
- package/dist/components/HysEmpty/HysEmpty2.vue.js +181 -2
- package/dist/components/HysFormItem/HysFormItem.vue.js +2 -2
- package/dist/components/HysFormItem/HysFormItem2.vue.js +171 -164
- package/dist/components/HysGantt/HysGantt.vue.js +1 -1
- package/dist/components/HysGantt/HysGantt2.vue.js +810 -795
- package/dist/components/HysMention/HysMention.vue.js +1 -1
- package/dist/components/HysMention/HysMention2.vue.js +112 -100
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +490 -85
- package/dist/components/HysPopover/HysPopover.vue.js +5 -91
- package/dist/components/HysPopover/HysPopover2.vue.js +120 -2
- package/dist/components/HysProgress/HysProgress.vue.js +2 -2
- package/dist/components/HysProgress/HysProgress2.vue.js +319 -52
- package/dist/components/HysSelect/HysSelect.vue.js +2 -2
- package/dist/components/HysSelect/HysSelect2.vue.js +730 -594
- package/dist/components/HysSlider/HysSlider.vue.js +2 -2
- package/dist/components/HysSlider/HysSlider2.vue.js +192 -188
- package/dist/components/HysSlider/SliderTooltip.vue.js +2 -2
- package/dist/components/HysSlider/SliderTooltip2.vue.js +103 -89
- package/dist/components/HysTable/HysTable.vue.js +2 -2
- package/dist/components/HysTable/HysTable2.vue.js +389 -368
- package/dist/components/HysTagInput/HysTagInput.vue.js +5 -82
- package/dist/components/HysTagInput/HysTagInput2.vue.js +396 -2
- package/dist/components/HysTimeline/HysTimeline.vue.js +2 -2
- package/dist/components/HysTimeline/HysTimeline2.vue.js +243 -24
- package/dist/components/HysTooltip/HysTooltip.vue.js +5 -64
- package/dist/components/HysTooltip/HysTooltip2.vue.js +110 -2
- package/dist/components/HysTour/HysTour.vue.js +46 -42
- package/dist/components/HysTransfer/HysTransfer.vue.js +2 -2
- package/dist/components/HysTransfer/HysTransfer2.vue.js +237 -207
- package/dist/components/HysTransfer/HysTransferPanel.vue.js +1 -1
- package/dist/components/HysTransfer/HysTransferPanel2.vue.js +320 -271
- package/dist/components/HysTree/HysTree.vue.js +2 -2
- package/dist/components/HysTree/HysTree2.vue.js +195 -184
- package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +4 -4
- package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +389 -377
- package/dist/components/HysUpload/HysUpload.vue.js +2 -2
- package/dist/components/HysUpload/HysUpload2.vue.js +459 -125
- package/dist/components/HysVirtualTable/HysVirtualTable.vue.js +5 -94
- package/dist/components/HysVirtualTable/HysVirtualTable2.vue.js +656 -2
- package/dist/composables/color.js +97 -0
- package/dist/composables/dataGrid.js +68 -0
- package/dist/composables/drawer.js +17 -0
- package/dist/composables/feedback.js +14 -0
- package/dist/composables/menu.js +96 -0
- package/dist/composables/modal.js +14 -0
- package/dist/composables/overlayManager.js +48 -18
- package/dist/composables/progress.js +94 -0
- package/dist/composables/tagInput.js +16 -0
- package/dist/composables/timeline.js +19 -0
- package/dist/composables/transfer.js +19 -17
- package/dist/composables/upload.js +55 -0
- package/dist/composables/uploadRequest.js +58 -0
- package/dist/composables/useAlert.js +124 -0
- package/dist/composables/useColorPicker.js +402 -0
- package/dist/composables/useContextMenu.js +514 -0
- package/dist/composables/useDataGridRemote.js +67 -0
- package/dist/composables/useDialog.js +86 -43
- package/dist/composables/useDrawerPush.js +33 -0
- package/dist/composables/useDrawerResize.js +221 -0
- package/dist/composables/useFloating.js +110 -76
- package/dist/composables/useHysModal.js +185 -0
- package/dist/composables/useModal.js +295 -0
- package/dist/composables/useModalInteraction.js +394 -0
- package/dist/composables/usePopupSurface.js +458 -0
- package/dist/composables/useTagInput.js +313 -0
- package/dist/composables/useTransferMotion.js +185 -0
- package/dist/composables/useUpload.js +472 -0
- package/dist/composables/useUploadModel.js +65 -0
- package/dist/composables/useUploadRequests.js +266 -0
- package/dist/composables/useVirtualTableLayout.js +277 -0
- package/dist/composables/virtualTable.js +43 -0
- package/dist/index.js +27 -24
- package/dist/internal/PopupReference.js +39 -0
- package/dist/internal/PopupSurfacePanel.vue.js +7 -0
- package/dist/internal/PopupSurfacePanel2.vue.js +92 -0
- package/dist/motion/PopupMotion.js +105 -0
- package/dist/motion/popup.js +10 -0
- package/dist/style.css +1 -1
- package/dist/types/components/HysAlert/HysAlert.vue.d.ts +32 -22
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +7 -7
- package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +6 -1
- package/dist/types/components/HysBadge/HysBadge.vue.d.ts +3 -3
- package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +54 -31
- package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +3 -2
- package/dist/types/components/HysCascader/HysCascader.vue.d.ts +7 -7
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +2 -2
- package/dist/types/components/HysColorPicker/HysColorPanel.vue.d.ts +58 -0
- package/dist/types/components/HysColorPicker/HysColorPicker.vue.d.ts +63 -10
- package/dist/types/components/HysCommandPalette/HysCommandPalette.vue.d.ts +2 -1
- package/dist/types/components/HysContextMenu/HysContextMenu.vue.d.ts +50 -34
- package/dist/types/components/HysContextMenu/HysMenuPanel.vue.d.ts +79 -0
- package/dist/types/components/HysContextMenu/HysMenuSlot.d.ts +8 -0
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +65 -118
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +1 -1
- package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +92 -35
- package/dist/types/components/HysEmpty/HysEmpty.vue.d.ts +24 -20
- package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +2 -2
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +2 -1
- package/dist/types/components/HysMention/HysMention.vue.d.ts +2 -1
- package/dist/types/components/HysModal/HysModal.vue.d.ts +111 -34
- package/dist/types/components/HysPopover/HysPopover.vue.d.ts +41 -29
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +18 -24
- package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +2 -2
- package/dist/types/components/HysSelect/HysSelect.vue.d.ts +13 -4
- package/dist/types/components/HysSlider/HysSlider.vue.d.ts +5 -4
- package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +3 -1
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +2 -2
- package/dist/types/components/HysTable/HysTable.vue.d.ts +4 -4
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +2 -2
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +47 -25
- package/dist/types/components/HysTimeline/HysTimeline.vue.d.ts +19 -32
- package/dist/types/components/HysTooltip/HysTooltip.vue.d.ts +39 -19
- package/dist/types/components/HysTour/HysTour.vue.d.ts +2 -1
- package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +2 -2
- package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +5 -3
- package/dist/types/components/HysTree/HysTree.vue.d.ts +2 -2
- package/dist/types/components/HysUpload/HysUpload.vue.d.ts +55 -67
- package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +71 -40
- package/dist/types/composables/autocomplete.d.ts +3 -0
- package/dist/types/composables/avatar.d.ts +3 -0
- package/dist/types/composables/cascader.d.ts +3 -0
- package/dist/types/composables/color.d.ts +97 -0
- package/dist/types/composables/dataGrid.d.ts +100 -0
- package/dist/types/composables/datePicker.d.ts +3 -0
- package/dist/types/composables/drawer.d.ts +102 -0
- package/dist/types/composables/feedback.d.ts +98 -0
- package/dist/types/composables/formContext.d.ts +2 -0
- package/dist/types/composables/menu.d.ts +183 -0
- package/dist/types/composables/modal.d.ts +183 -0
- package/dist/types/composables/overlayManager.d.ts +7 -3
- package/dist/types/composables/popupSurface.d.ts +83 -0
- package/dist/types/composables/progress.d.ts +92 -0
- package/dist/types/composables/selectOptions.d.ts +2 -0
- package/dist/types/composables/table.d.ts +3 -0
- package/dist/types/composables/tagInput.d.ts +96 -0
- package/dist/types/composables/timeline.d.ts +82 -0
- package/dist/types/composables/transfer.d.ts +7 -0
- package/dist/types/composables/tree.d.ts +3 -0
- package/dist/types/composables/treeSelect.d.ts +3 -0
- package/dist/types/composables/upload.d.ts +202 -0
- package/dist/types/composables/uploadRequest.d.ts +3 -0
- package/dist/types/composables/useAlert.d.ts +21 -0
- package/dist/types/composables/useCascader.d.ts +1 -1
- package/dist/types/composables/useColorPicker.d.ts +101 -0
- package/dist/types/composables/useContextMenu.d.ts +81 -0
- package/dist/types/composables/useDataGridRemote.d.ts +15 -0
- package/dist/types/composables/useDialog.d.ts +16 -3
- package/dist/types/composables/useDrawerPush.d.ts +6 -0
- package/dist/types/composables/useDrawerResize.d.ts +27 -0
- package/dist/types/composables/useFloating.d.ts +21 -2
- package/dist/types/composables/useHysModal.d.ts +44 -0
- package/dist/types/composables/useModal.d.ts +62 -0
- package/dist/types/composables/useModalInteraction.d.ts +27 -0
- package/dist/types/composables/usePopupSurface.d.ts +3341 -0
- package/dist/types/composables/useTagInput.d.ts +66 -0
- package/dist/types/composables/useTransferMotion.d.ts +36 -0
- package/dist/types/composables/useUpload.d.ts +94 -0
- package/dist/types/composables/useUploadModel.d.ts +14 -0
- package/dist/types/composables/useUploadRequests.d.ts +38 -0
- package/dist/types/composables/useVirtualTableLayout.d.ts +51 -0
- package/dist/types/composables/virtualTable.d.ts +126 -0
- package/dist/types/index.d.ts +17 -2
- package/dist/types/internal/PopupReference.d.ts +18 -0
- package/dist/types/internal/PopupSurfacePanel.vue.d.ts +37 -0
- package/dist/types/motion/PopupMotion.d.ts +59 -0
- package/dist/types/motion/popup.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,54 +1,57 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ChevronUp as
|
|
1
|
+
import { defineComponent as yl, useSlots as fl, ref as A, useId as vl, shallowRef as tt, computed as F, watch as te, onMounted as ml, onActivated as pl, onUpdated as hl, onDeactivated as kl, onBeforeUnmount as wl, openBlock as u, createElementBlock as c, mergeProps as W, unref as o, renderSlot as S, createCommentVNode as g, createElementVNode as T, toDisplayString as O, createBlock as B, withCtx as U, createTextVNode as q, createVNode as K, Fragment as E, renderList as Q, normalizeStyle as pe, withModifiers as V, resolveDynamicComponent as Me, normalizeClass as Ae, withKeys as lt, isRef as bl, withDirectives as gl, vShow as Cl, Teleport as Pt, normalizeProps as Sl, guardReactiveProps as xl, nextTick as he } from "vue";
|
|
2
|
+
import { ChevronUp as Rl, ChevronDown as at, ListFilter as Tl, LoaderCircle as ot, ChevronRight as Ot, RotateCw as zl } from "lucide-vue-next";
|
|
3
3
|
import Et from "../HysCheckbox/HysCheckbox.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import Fl from "../HysRadio/HysRadio.vue.js";
|
|
5
5
|
import ce from "../HysButton/HysButton.vue.js";
|
|
6
|
-
import
|
|
6
|
+
import Ml from "../HysInput/HysInput.vue.js";
|
|
7
7
|
import Kt from "../HysPagination/HysPagination.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import { useHysRootAttrs as
|
|
8
|
+
import Al from "./HysTableFilterOptions.vue.js";
|
|
9
|
+
import { useHysRootAttrs as Bl } from "../../config.js";
|
|
10
10
|
import { useFloating as $t } from "../../composables/useFloating.js";
|
|
11
|
-
import { useTable as
|
|
12
|
-
import { tableColumns as
|
|
13
|
-
|
|
11
|
+
import { useTable as Pl } from "../../composables/useTable.js";
|
|
12
|
+
import { tableColumns as Ol, tableBreakpoint as El, tableToken as Kl, tableSummary as $l, tableValue as Be } from "../../composables/table.js";
|
|
13
|
+
import Ht from "../../motion/PopupMotion.js";
|
|
14
|
+
const Hl = ["aria-busy"], Ll = {
|
|
14
15
|
key: 0,
|
|
15
16
|
class: "hys-ui-table-title"
|
|
16
|
-
},
|
|
17
|
+
}, Nl = {
|
|
17
18
|
key: 1,
|
|
18
19
|
class: "hys-ui-table-selection-actions"
|
|
19
|
-
},
|
|
20
|
+
}, Dl = { "aria-live": "polite" }, Wl = ["data-position"], ql = ["tabindex", "aria-label"], Vl = { key: 0 }, jl = { key: 1 }, Il = ["data-column-key", "data-leaf", "colspan", "rowspan", "scope", "aria-sort", "onClick", "onContextmenu"], Ul = {
|
|
20
21
|
key: 1,
|
|
21
22
|
class: "hys-ui-table-sr-only"
|
|
22
|
-
},
|
|
23
|
+
}, Jl = {
|
|
23
24
|
key: 1,
|
|
24
25
|
class: "hys-ui-table-heading"
|
|
25
|
-
},
|
|
26
|
+
}, Xl = { class: "hys-ui-table-label" }, Ql = ["disabled", "onClick"], Yl = { key: 1 }, Gl = {
|
|
26
27
|
key: 2,
|
|
27
28
|
class: "hys-ui-table-sort-controls"
|
|
28
|
-
},
|
|
29
|
+
}, Zl = ["disabled", "aria-label", "aria-pressed", "onClick"], _l = ["disabled", "aria-label", "aria-expanded", "aria-controls", "onClick"], ea = ["aria-label", "aria-valuenow", "aria-valuemin", "aria-valuemax", "onPointerdown", "onKeydown"], ta = {
|
|
29
30
|
key: 0,
|
|
30
31
|
class: "hys-ui-table-message"
|
|
31
|
-
},
|
|
32
|
+
}, la = ["colspan"], aa = { role: "status" }, oa = ["data-row-key", "aria-selected", "onClick", "onDblclick", "onContextmenu"], na = ["disabled", "aria-expanded", "aria-label", "onClick"], ia = {
|
|
32
33
|
key: 3,
|
|
33
34
|
class: "hys-ui-table-cell-content"
|
|
34
|
-
},
|
|
35
|
+
}, sa = ["disabled", "aria-expanded", "aria-label", "onClick"], ra = {
|
|
35
36
|
key: 1,
|
|
36
37
|
class: "hys-ui-table-tree-spacer"
|
|
37
|
-
},
|
|
38
|
+
}, ua = ["tabindex", "aria-describedby", "onPointerenter", "onFocus"], ca = {
|
|
38
39
|
key: 0,
|
|
39
40
|
class: "hys-ui-table-detail"
|
|
40
|
-
},
|
|
41
|
+
}, da = ["colspan"], ya = {
|
|
41
42
|
key: 0,
|
|
42
43
|
class: "hys-ui-table-message"
|
|
43
|
-
},
|
|
44
|
+
}, fa = ["colspan"], va = {
|
|
44
45
|
key: 2,
|
|
45
46
|
class: "hys-ui-table-append"
|
|
46
|
-
},
|
|
47
|
+
}, ma = ["colspan"], pa = { key: 2 }, ha = ["data-column-key"], ka = {
|
|
47
48
|
key: 2,
|
|
48
49
|
class: "hys-ui-table-footer"
|
|
49
|
-
},
|
|
50
|
+
}, wa = ["data-position"], ba = ["id", "aria-label"], ga = { class: "hys-ui-table-filter-actions" }, Ca = ["id"], $a = /* @__PURE__ */ yl({
|
|
50
51
|
__name: "HysTable",
|
|
51
52
|
props: {
|
|
53
|
+
popupTransition: {},
|
|
54
|
+
popupTransitionDuration: {},
|
|
52
55
|
locale: {},
|
|
53
56
|
columns: {},
|
|
54
57
|
rows: {},
|
|
@@ -139,8 +142,8 @@ const $l = ["aria-busy"], Hl = {
|
|
|
139
142
|
allowDragLastColumn: { type: Boolean, default: !0 }
|
|
140
143
|
},
|
|
141
144
|
emits: ["rowClick", "rowDblclick", "rowContextmenu", "cellClick", "cellDblclick", "cellContextmenu", "cellMouseEnter", "cellMouseLeave", "headerClick", "headerContextmenu", "update:sort", "update:sorts", "sortChange", "update:filters", "filterChange", "update:selectedRowKeys", "selectionChange", "select", "selectAll", "selectInvert", "selectRange", "update:currentRowKey", "currentChange", "update:expandedRowKeys", "expandChange", "load", "loadError", "childrenChange", "update:filterColumnKey", "filterOpenChange", "update:page", "pageChange", "update:pageSize", "pageSizeChange", "queryChange", "change", "update:columnWidths", "columnResize", "scroll"],
|
|
142
|
-
setup(i, { expose:
|
|
143
|
-
const r = i, x =
|
|
145
|
+
setup(i, { expose: Lt, emit: Nt }) {
|
|
146
|
+
const r = i, x = Nt, Pe = Bl(), Oe = fl(), le = A(), $ = A(), Y = A(), de = vl(), nt = A(1024), D = tt({}), Ee = A({}), oe = A(), h = F(() => ({
|
|
144
147
|
emptyText: "暂无数据",
|
|
145
148
|
loadingText: "加载中…",
|
|
146
149
|
selectAll: "选择当前页全部行",
|
|
@@ -187,7 +190,7 @@ const $l = ["aria-busy"], Hl = {
|
|
|
187
190
|
for (; t.has(l); ) l += "_";
|
|
188
191
|
return l;
|
|
189
192
|
}
|
|
190
|
-
const
|
|
193
|
+
const Dt = F(() => {
|
|
191
194
|
var l;
|
|
192
195
|
const e = [];
|
|
193
196
|
return r.selectable && !Ke("selection") && e.push({
|
|
@@ -218,41 +221,41 @@ const $l = ["aria-busy"], Hl = {
|
|
|
218
221
|
(t) => r.showExpandColumn || t.type !== "expand"
|
|
219
222
|
);
|
|
220
223
|
}), m = F(
|
|
221
|
-
() =>
|
|
222
|
-
|
|
223
|
-
|
|
224
|
+
() => Ol(
|
|
225
|
+
Dt.value,
|
|
226
|
+
El(nt.value),
|
|
224
227
|
r.showExpandColumn
|
|
225
228
|
)
|
|
226
|
-
), s =
|
|
229
|
+
), s = Pl(
|
|
227
230
|
r,
|
|
228
231
|
() => m.value.leaves,
|
|
229
232
|
() => !!Oe.expand,
|
|
230
233
|
(e, ...l) => x(e, ...l)
|
|
231
234
|
), {
|
|
232
235
|
busy: k,
|
|
233
|
-
display:
|
|
236
|
+
display: G,
|
|
234
237
|
selectedKeys: fe,
|
|
235
238
|
selectedSet: He,
|
|
236
239
|
expandedKeys: Le,
|
|
237
|
-
expandedSet:
|
|
240
|
+
expandedSet: H,
|
|
238
241
|
halfSet: it,
|
|
239
242
|
allSelected: st,
|
|
240
243
|
someSelected: Ne,
|
|
241
|
-
sorts:
|
|
244
|
+
sorts: Z,
|
|
242
245
|
filters: we,
|
|
243
|
-
page:
|
|
246
|
+
page: De,
|
|
244
247
|
pageSize: be,
|
|
245
248
|
total: rt,
|
|
246
249
|
currentKey: ut,
|
|
247
250
|
pending: ne,
|
|
248
251
|
loadErrors: Wt,
|
|
249
|
-
query:
|
|
252
|
+
query: We
|
|
250
253
|
} = s, ge = F(
|
|
251
254
|
() => {
|
|
252
255
|
var e;
|
|
253
256
|
return (e = m.value.leaves.find((l) => !l.type || l.type === "default")) == null ? void 0 : e.key;
|
|
254
257
|
}
|
|
255
|
-
),
|
|
258
|
+
), qt = F(
|
|
256
259
|
() => m.value.leaves.some((e) => e.type === "expand")
|
|
257
260
|
), ct = F(() => {
|
|
258
261
|
if (!r.pagination || s.pagination.value.hideOnSinglePage && rt.value <= be.value)
|
|
@@ -269,14 +272,14 @@ const $l = ["aria-busy"], Hl = {
|
|
|
269
272
|
...new Set(s.pagination.value.position ?? ["bottom-right"])
|
|
270
273
|
].filter((l) => e.includes(l));
|
|
271
274
|
}), dt = F(() => ({
|
|
272
|
-
page:
|
|
275
|
+
page: De.value,
|
|
273
276
|
pageSize: be.value,
|
|
274
277
|
total: rt.value,
|
|
275
278
|
showSizeChanger: s.pagination.value.showSizeChanger ?? !0,
|
|
276
279
|
showQuickJumper: s.pagination.value.showQuickJumper ?? !1,
|
|
277
280
|
showTotal: s.pagination.value.showTotal ?? !0,
|
|
278
281
|
compact: s.pagination.value.compact,
|
|
279
|
-
labels:
|
|
282
|
+
labels: h.value.paginationLabels,
|
|
280
283
|
pageSizeOptions: s.pagination.value.pageSizeOptions,
|
|
281
284
|
disabled: k.value
|
|
282
285
|
})), qe = Object.freeze({});
|
|
@@ -300,7 +303,7 @@ const $l = ["aria-busy"], Hl = {
|
|
|
300
303
|
)
|
|
301
304
|
) : qe;
|
|
302
305
|
}
|
|
303
|
-
function
|
|
306
|
+
function Vt(e) {
|
|
304
307
|
var t, n, d;
|
|
305
308
|
if (!r.customHeaderCell && !e.column.customHeaderCell)
|
|
306
309
|
return qe;
|
|
@@ -310,7 +313,7 @@ const $l = ["aria-busy"], Hl = {
|
|
|
310
313
|
ie((d = (n = e.column).customHeaderCell) == null ? void 0 : d.call(n, e.column, l))
|
|
311
314
|
);
|
|
312
315
|
}
|
|
313
|
-
function
|
|
316
|
+
function jt(e) {
|
|
314
317
|
var l, t, n;
|
|
315
318
|
return !r.customCell && !e.column.customCell ? qe : W(
|
|
316
319
|
ie((l = r.customCell) == null ? void 0 : l.call(r, e)),
|
|
@@ -318,14 +321,14 @@ const $l = ["aria-busy"], Hl = {
|
|
|
318
321
|
);
|
|
319
322
|
}
|
|
320
323
|
let ve = !1;
|
|
321
|
-
function
|
|
324
|
+
function It(e, l) {
|
|
322
325
|
const t = ve;
|
|
323
326
|
ve = !1, s.toggleRowSelection(e.key, l, t);
|
|
324
327
|
}
|
|
325
328
|
const yt = F(
|
|
326
329
|
() => r.stickyHeader ?? (r.height !== void 0 || r.maxHeight !== void 0)
|
|
327
330
|
), Ve = F(() => r.columnWidths ?? Ee.value);
|
|
328
|
-
function
|
|
331
|
+
function J(e) {
|
|
329
332
|
var t, n;
|
|
330
333
|
const l = ((t = oe.value) == null ? void 0 : t.key) === e.key ? oe.value.width : ((n = ae.value) == null ? void 0 : n[e.key]) ?? Ve.value[e.key] ?? (typeof e.width == "number" ? e.width : 160);
|
|
331
334
|
return Math.max(
|
|
@@ -333,29 +336,29 @@ const $l = ["aria-busy"], Hl = {
|
|
|
333
336
|
Math.min(e.maxWidth ?? 2e3, Number.isFinite(l) ? l : 160)
|
|
334
337
|
);
|
|
335
338
|
}
|
|
336
|
-
function
|
|
339
|
+
function Ut(e) {
|
|
337
340
|
var l;
|
|
338
|
-
return ae.value !== void 0 || ((l = oe.value) == null ? void 0 : l.key) === e.key || Ve.value[e.key] !== void 0 || typeof e.width != "string" ?
|
|
341
|
+
return ae.value !== void 0 || ((l = oe.value) == null ? void 0 : l.key) === e.key || Ve.value[e.key] !== void 0 || typeof e.width != "string" ? J(e) + "px" : e.width;
|
|
339
342
|
}
|
|
340
|
-
const ae =
|
|
341
|
-
() => m.value.leaves.reduce((e, l) => e +
|
|
342
|
-
),
|
|
343
|
+
const ae = A(), Ce = A(!1), ft = F(
|
|
344
|
+
() => m.value.leaves.reduce((e, l) => e + J(l), 0)
|
|
345
|
+
), Jt = F(() => {
|
|
343
346
|
const e = {};
|
|
344
347
|
let l = 0, t = 0;
|
|
345
348
|
for (const n of m.value.leaves)
|
|
346
|
-
n.fixed === "left" && (e[n.key] = { left: l + "px" }, l +=
|
|
349
|
+
n.fixed === "left" && (e[n.key] = { left: l + "px" }, l += D.value[n.key] ?? J(n));
|
|
347
350
|
for (const n of [...m.value.leaves].reverse())
|
|
348
|
-
n.fixed === "right" && (e[n.key] = { right: t + "px" }, t +=
|
|
351
|
+
n.fixed === "right" && (e[n.key] = { right: t + "px" }, t += D.value[n.key] ?? J(n));
|
|
349
352
|
return e;
|
|
350
353
|
});
|
|
351
354
|
function je(e, l = !1) {
|
|
352
355
|
return e.fixed === "left" || e.fixed === "right" ? {
|
|
353
356
|
position: "sticky",
|
|
354
|
-
...
|
|
357
|
+
...Jt.value[e.key],
|
|
355
358
|
zIndex: l ? 6 : 2
|
|
356
359
|
} : {};
|
|
357
360
|
}
|
|
358
|
-
function
|
|
361
|
+
function Xt(e) {
|
|
359
362
|
const l = e.column, t = e.fixed === "right" ? e.leaves.at(-1) : e.leaves[0];
|
|
360
363
|
return {
|
|
361
364
|
...typeof r.headerCellStyle == "function" ? r.headerCellStyle(l, m.value.leaves.indexOf(t)) : r.headerCellStyle,
|
|
@@ -364,12 +367,12 @@ const $l = ["aria-busy"], Hl = {
|
|
|
364
367
|
"--hys-ui-table-justify": (l.headerAlign ?? l.align) === "right" ? "flex-end" : (l.headerAlign ?? l.align) === "center" ? "center" : "flex-start"
|
|
365
368
|
};
|
|
366
369
|
}
|
|
367
|
-
const vt = (e) => typeof e == "number" ? Number.isFinite(e) && e >= 0 ? e + "px" : void 0 : e, Ie =
|
|
368
|
-
|
|
370
|
+
const vt = (e) => typeof e == "number" ? Number.isFinite(e) && e >= 0 ? e + "px" : void 0 : e, Ie = A(/* @__PURE__ */ new Set());
|
|
371
|
+
te(
|
|
369
372
|
Le,
|
|
370
373
|
() => {
|
|
371
374
|
const e = new Set(Ie.value);
|
|
372
|
-
for (const l of Le.value) e.add(
|
|
375
|
+
for (const l of Le.value) e.add(Kl(l));
|
|
373
376
|
for (const l of e)
|
|
374
377
|
s.graph.value.map.has(l) || e.delete(l);
|
|
375
378
|
Ie.value = e;
|
|
@@ -377,9 +380,9 @@ const $l = ["aria-busy"], Hl = {
|
|
|
377
380
|
{ immediate: !0 }
|
|
378
381
|
);
|
|
379
382
|
function mt(e) {
|
|
380
|
-
return !!Oe.expand && s.canExpand(e) && (
|
|
383
|
+
return !!Oe.expand && s.canExpand(e) && (H.value.has(e.token) || r.preserveExpandedContent && Ie.value.has(e.token));
|
|
381
384
|
}
|
|
382
|
-
function
|
|
385
|
+
function L(e, l, t, n) {
|
|
383
386
|
return {
|
|
384
387
|
row: e,
|
|
385
388
|
column: l,
|
|
@@ -388,7 +391,7 @@ const $l = ["aria-busy"], Hl = {
|
|
|
388
391
|
columnIndex: n
|
|
389
392
|
};
|
|
390
393
|
}
|
|
391
|
-
function
|
|
394
|
+
function Qt(e) {
|
|
392
395
|
return {
|
|
393
396
|
...typeof r.cellStyle == "function" ? r.cellStyle(e) : r.cellStyle,
|
|
394
397
|
...typeof e.column.cellStyle == "function" ? e.column.cellStyle(e) : e.column.cellStyle,
|
|
@@ -397,7 +400,7 @@ const $l = ["aria-busy"], Hl = {
|
|
|
397
400
|
"--hys-ui-table-justify": e.column.align === "right" ? "flex-end" : e.column.align === "center" ? "center" : "flex-start"
|
|
398
401
|
};
|
|
399
402
|
}
|
|
400
|
-
function
|
|
403
|
+
function Yt(e) {
|
|
401
404
|
return [
|
|
402
405
|
e.column.className,
|
|
403
406
|
typeof r.cellClassName == "function" ? r.cellClassName(e) : r.cellClassName
|
|
@@ -412,66 +415,66 @@ const $l = ["aria-busy"], Hl = {
|
|
|
412
415
|
return String(e);
|
|
413
416
|
}
|
|
414
417
|
}
|
|
415
|
-
function
|
|
418
|
+
function Gt(e) {
|
|
416
419
|
return e.column.formatter ? e.column.formatter(e.row, e.column, e.value, e.rowIndex) : Ue(e.value);
|
|
417
420
|
}
|
|
418
|
-
function
|
|
421
|
+
function Zt(e, l, t) {
|
|
419
422
|
k.value || (x("rowClick", e.row, l, t), r.highlightCurrentRow && s.setCurrentRow(e.key), r.expandOnClickRow && !t.target.closest(
|
|
420
423
|
"button,input,a,textarea,select,[contenteditable]"
|
|
421
424
|
) && s.toggleRowExpansion(e.key));
|
|
422
425
|
}
|
|
423
|
-
const
|
|
426
|
+
const _t = F(() => {
|
|
424
427
|
var n;
|
|
425
428
|
const e = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set(), t = m.value.leaves;
|
|
426
|
-
for (let d = 0; d <
|
|
429
|
+
for (let d = 0; d < G.value.length; d++)
|
|
427
430
|
for (let a = 0; a < t.length; a++) {
|
|
428
431
|
const f = d + ":" + a, y = t[a];
|
|
429
432
|
if (l.has(f)) {
|
|
430
433
|
e.set(f, { rowspan: 0, colspan: 0 });
|
|
431
434
|
continue;
|
|
432
435
|
}
|
|
433
|
-
const w = y.type && y.type !== "default" || (n = r.spanMethod) == null ? void 0 : n.call(r,
|
|
436
|
+
const w = y.type && y.type !== "default" || (n = r.spanMethod) == null ? void 0 : n.call(r, L(G.value[d].row, y, d, a)), P = Array.isArray(w) ? { rowspan: w[0], colspan: w[1] } : w;
|
|
434
437
|
let z = Math.max(
|
|
435
438
|
0,
|
|
436
|
-
Math.min(
|
|
439
|
+
Math.min(G.value.length - d, Math.floor((P == null ? void 0 : P.rowspan) ?? 1))
|
|
437
440
|
), R = Math.max(
|
|
438
441
|
0,
|
|
439
442
|
Math.min(t.length - a, Math.floor((P == null ? void 0 : P.colspan) ?? 1))
|
|
440
443
|
);
|
|
441
444
|
Number.isFinite(z) || (z = 1), Number.isFinite(R) || (R = 1);
|
|
442
|
-
for (let
|
|
443
|
-
if (mt(
|
|
444
|
-
z =
|
|
445
|
+
for (let p = 0; p < z - 1; p++)
|
|
446
|
+
if (mt(G.value[d + p]) && H.value.has(G.value[d + p].token)) {
|
|
447
|
+
z = p + 1;
|
|
445
448
|
break;
|
|
446
449
|
}
|
|
447
|
-
for (let
|
|
448
|
-
if (t[a +
|
|
449
|
-
R =
|
|
450
|
+
for (let p = 1; p < R; p++)
|
|
451
|
+
if (t[a + p].fixed !== y.fixed || t[a + p].type && t[a + p].type !== "default") {
|
|
452
|
+
R = p;
|
|
450
453
|
break;
|
|
451
454
|
}
|
|
452
455
|
e.set(f, { rowspan: z, colspan: R });
|
|
453
|
-
for (let
|
|
456
|
+
for (let p = 0; p < z; p++)
|
|
454
457
|
for (let v = 0; v < R; v++)
|
|
455
|
-
(
|
|
458
|
+
(p || v) && l.add(d + p + ":" + (a + v));
|
|
456
459
|
}
|
|
457
460
|
return e;
|
|
458
|
-
}), Se = (e, l) =>
|
|
461
|
+
}), Se = (e, l) => _t.value.get(e + ":" + l) ?? { rowspan: 1, colspan: 1 }, pt = F(() => {
|
|
459
462
|
var t;
|
|
460
463
|
const e = s.filteredRows.value, l = (t = r.summaryMethod) == null ? void 0 : t.call(r, { columns: m.value.leaves, rows: e });
|
|
461
464
|
return m.value.leaves.map(
|
|
462
|
-
(n, d) => l ? Array.isArray(l) ? l[d] : l[n.key] : n.summary ?
|
|
465
|
+
(n, d) => l ? Array.isArray(l) ? l[d] : l[n.key] : n.summary ? $l(e, n) : n.key === ge.value ? r.sumText : ""
|
|
463
466
|
);
|
|
464
|
-
}), Je =
|
|
465
|
-
() => r.filterColumnKey === void 0 ?
|
|
467
|
+
}), Je = A(), Xe = A(), b = tt(), _ = A([]), ht = A(null), se = F(
|
|
468
|
+
() => r.filterColumnKey === void 0 ? ht.value : r.filterColumnKey
|
|
466
469
|
);
|
|
467
470
|
let Qe = !1;
|
|
468
471
|
async function xe(e, l = !1) {
|
|
469
472
|
var t;
|
|
470
473
|
return e !== null && (k.value || !s.live.value || !m.value.leaves.some(
|
|
471
474
|
(n) => n.key === e && (n.filterable || n.filters)
|
|
472
|
-
)) ? !1 : (Qe = l,
|
|
475
|
+
)) ? !1 : (Qe = l, ht.value = e, x("update:filterColumnKey", e), se.value === e && Re(), await he(), se.value === e && Re(), await he(), s.live.value && se.value === e && (e === null ? !j.value : j.value && ((t = b.value) == null ? void 0 : t.key) === e));
|
|
473
476
|
}
|
|
474
|
-
const
|
|
477
|
+
const M = $t(Je, Xe, {
|
|
475
478
|
get placement() {
|
|
476
479
|
return r.filterPlacement ?? "bottom-end";
|
|
477
480
|
},
|
|
@@ -483,30 +486,30 @@ const $l = ["aria-busy"], Hl = {
|
|
|
483
486
|
l
|
|
484
487
|
), !1;
|
|
485
488
|
}
|
|
486
|
-
}), j =
|
|
489
|
+
}), j = M.open, el = M.style;
|
|
487
490
|
function Re() {
|
|
488
491
|
var d, a, f;
|
|
489
492
|
const e = se.value, l = m.value.leaves.find(
|
|
490
493
|
(y) => y.key === e && (y.filterable || y.filters)
|
|
491
494
|
);
|
|
492
495
|
if (k.value || !s.live.value || !l) {
|
|
493
|
-
|
|
496
|
+
M.close(Qe, !0), Qe = !1;
|
|
494
497
|
return;
|
|
495
498
|
}
|
|
496
499
|
const t = (a = Array.from(
|
|
497
|
-
((d =
|
|
500
|
+
((d = Y.value) == null ? void 0 : d.querySelectorAll("th[data-leaf]")) ?? []
|
|
498
501
|
).find((y) => y.dataset.columnKey === e)) == null ? void 0 : a.querySelector(".hys-ui-table-filter");
|
|
499
502
|
if (!t) {
|
|
500
|
-
|
|
503
|
+
M.close(!1, !0);
|
|
501
504
|
return;
|
|
502
505
|
}
|
|
503
506
|
const n = ((f = b.value) == null ? void 0 : f.key) !== e || !j.value;
|
|
504
|
-
Je.value = t, b.value = l, n && (
|
|
507
|
+
Je.value = t, b.value = l, n && (_.value = [...we.value[l.key] ?? []]), M.show(!0), he(() => {
|
|
505
508
|
var y, w;
|
|
506
509
|
n && j.value && se.value === e && ((w = (y = Xe.value) == null ? void 0 : y.querySelector('input,button,[tabindex="0"]')) == null || w.focus());
|
|
507
510
|
});
|
|
508
511
|
}
|
|
509
|
-
|
|
512
|
+
te(
|
|
510
513
|
[
|
|
511
514
|
se,
|
|
512
515
|
k,
|
|
@@ -516,43 +519,43 @@ const $l = ["aria-busy"], Hl = {
|
|
|
516
519
|
],
|
|
517
520
|
Re,
|
|
518
521
|
{ immediate: !0, flush: "post" }
|
|
519
|
-
),
|
|
522
|
+
), te(
|
|
520
523
|
() => {
|
|
521
524
|
var e;
|
|
522
525
|
return j.value ? ((e = b.value) == null ? void 0 : e.key) ?? null : null;
|
|
523
526
|
},
|
|
524
527
|
(e) => x("filterOpenChange", e)
|
|
525
528
|
);
|
|
526
|
-
async function
|
|
529
|
+
async function tl(e, l) {
|
|
527
530
|
var t;
|
|
528
531
|
if (!k.value) {
|
|
529
532
|
if (j.value && ((t = b.value) == null ? void 0 : t.key) === e.key) {
|
|
530
|
-
|
|
533
|
+
M.close();
|
|
531
534
|
return;
|
|
532
535
|
}
|
|
533
536
|
Je.value = l.currentTarget, await xe(e.key);
|
|
534
537
|
}
|
|
535
538
|
}
|
|
536
539
|
function kt(e) {
|
|
537
|
-
|
|
540
|
+
_.value = [...e];
|
|
538
541
|
}
|
|
539
542
|
function Te(e) {
|
|
540
|
-
b.value && s.setFilter(b.value.key,
|
|
543
|
+
b.value && s.setFilter(b.value.key, _.value), (e == null ? void 0 : e.closeDropdown) !== !1 && M.close(!0);
|
|
541
544
|
}
|
|
542
545
|
function wt(e) {
|
|
543
546
|
var n;
|
|
544
547
|
const l = b.value;
|
|
545
|
-
|
|
548
|
+
_.value = l != null && l.filterResetToDefault ? [
|
|
546
549
|
...((n = r.defaultFilters) == null ? void 0 : n[l.key]) ?? l.defaultFilterValue ?? []
|
|
547
550
|
] : [];
|
|
548
551
|
const t = e;
|
|
549
|
-
(t == null ? void 0 : t.confirm) !== !1 ? Te(e) : (t == null ? void 0 : t.closeDropdown) === !0 &&
|
|
552
|
+
(t == null ? void 0 : t.confirm) !== !1 ? Te(e) : (t == null ? void 0 : t.closeDropdown) === !0 && M.close(!0);
|
|
550
553
|
}
|
|
551
|
-
const bt =
|
|
554
|
+
const bt = A(), gt = A(), ee = tt(), N = $t(bt, gt, {
|
|
552
555
|
placement: "top-start"
|
|
553
|
-
}), Ct = N.open,
|
|
556
|
+
}), Ct = N.open, ll = N.style;
|
|
554
557
|
let me;
|
|
555
|
-
function
|
|
558
|
+
function al() {
|
|
556
559
|
clearTimeout(me);
|
|
557
560
|
}
|
|
558
561
|
function Ye() {
|
|
@@ -561,24 +564,24 @@ const $l = ["aria-busy"], Hl = {
|
|
|
561
564
|
function St(e, l) {
|
|
562
565
|
clearTimeout(me);
|
|
563
566
|
const t = l.currentTarget;
|
|
564
|
-
k.value || N.restoringFocus.value || !(e.column.showOverflowTooltip ?? r.showOverflowTooltip) || t.scrollWidth <= t.clientWidth + 1 && t.scrollHeight <= t.clientHeight + 1 || (bt.value = t,
|
|
567
|
+
k.value || N.restoringFocus.value || !(e.column.showOverflowTooltip ?? r.showOverflowTooltip) || t.scrollWidth <= t.clientWidth + 1 && t.scrollHeight <= t.clientHeight + 1 || (bt.value = t, ee.value = e, N.show());
|
|
565
568
|
}
|
|
566
|
-
const
|
|
569
|
+
const ol = F(() => {
|
|
567
570
|
var l;
|
|
568
|
-
const e =
|
|
571
|
+
const e = ee.value;
|
|
569
572
|
return e ? ((l = e.column.tooltipFormatter ?? r.tooltipFormatter) == null ? void 0 : l(e)) ?? Ue(e.value) : "";
|
|
570
573
|
});
|
|
571
|
-
let
|
|
574
|
+
let X, Ge = 0, C, Ze = 0, _e = 0;
|
|
572
575
|
function xt() {
|
|
573
576
|
var t, n;
|
|
574
577
|
if (!s.live.value || !le.value) return;
|
|
575
578
|
nt.value = le.value.clientWidth;
|
|
576
|
-
const e = {}, l = (t =
|
|
579
|
+
const e = {}, l = (t = Y.value) == null ? void 0 : t.querySelector(
|
|
577
580
|
"tbody tr:not(.hys-ui-table-message):not(.hys-ui-table-detail)"
|
|
578
581
|
);
|
|
579
582
|
for (const d of m.value.leaves) {
|
|
580
583
|
const a = Array.from(
|
|
581
|
-
((n =
|
|
584
|
+
((n = Y.value) == null ? void 0 : n.querySelectorAll("th[data-leaf]")) ?? []
|
|
582
585
|
).find((y) => y.dataset.columnKey === d.key), f = a ?? Array.from(
|
|
583
586
|
(l == null ? void 0 : l.querySelectorAll(
|
|
584
587
|
"td[data-column-key],th[data-column-key]"
|
|
@@ -586,17 +589,17 @@ const $l = ["aria-busy"], Hl = {
|
|
|
586
589
|
).find((y) => y.dataset.columnKey === d.key);
|
|
587
590
|
f && (e[d.key] = f.getBoundingClientRect().width);
|
|
588
591
|
}
|
|
589
|
-
JSON.stringify(e) !== JSON.stringify(
|
|
592
|
+
JSON.stringify(e) !== JSON.stringify(D.value) && (D.value = e);
|
|
590
593
|
}
|
|
591
594
|
function re() {
|
|
592
595
|
cancelAnimationFrame(Ge), Ge = requestAnimationFrame(xt);
|
|
593
596
|
}
|
|
594
|
-
async function
|
|
595
|
-
await
|
|
597
|
+
async function nl() {
|
|
598
|
+
await he(), xt();
|
|
596
599
|
}
|
|
597
600
|
function I() {
|
|
598
601
|
var e, l;
|
|
599
|
-
cancelAnimationFrame(Ze), C && ((l = (e =
|
|
602
|
+
cancelAnimationFrame(Ze), C && ((l = (e = $.value) == null ? void 0 : e.hasPointerCapture) != null && l.call(e, C.pointerId)) && $.value.releasePointerCapture(C.pointerId), C = void 0, oe.value = void 0, ae.value = void 0, document.removeEventListener("pointermove", zt, !0), document.removeEventListener("pointerup", Mt, !0), document.removeEventListener("pointercancel", ze, !0), document.removeEventListener("keydown", Rt, !0), window.removeEventListener("blur", ze);
|
|
600
603
|
}
|
|
601
604
|
function ze() {
|
|
602
605
|
I();
|
|
@@ -629,7 +632,7 @@ const $l = ["aria-busy"], Hl = {
|
|
|
629
632
|
if (d === t) return;
|
|
630
633
|
const a = {
|
|
631
634
|
...Ve.value,
|
|
632
|
-
...
|
|
635
|
+
...D.value,
|
|
633
636
|
...n,
|
|
634
637
|
[e.key]: d
|
|
635
638
|
};
|
|
@@ -642,89 +645,89 @@ const $l = ["aria-busy"], Hl = {
|
|
|
642
645
|
const { column: l, width: t } = C, n = ((a = oe.value) == null ? void 0 : a.width) ?? t, d = ae.value;
|
|
643
646
|
I(), Ft(l, n, t, d);
|
|
644
647
|
}
|
|
645
|
-
function
|
|
648
|
+
function il(e, l) {
|
|
646
649
|
var n, d;
|
|
647
650
|
if (k.value || l.button !== 0 || !s.live.value) return;
|
|
648
|
-
|
|
649
|
-
const t =
|
|
650
|
-
ae.value = { ...
|
|
651
|
+
M.close(), N.close(), I();
|
|
652
|
+
const t = D.value[e.key] ?? J(e);
|
|
653
|
+
ae.value = { ...D.value }, C = {
|
|
651
654
|
column: e,
|
|
652
655
|
start: l.clientX,
|
|
653
656
|
width: t,
|
|
654
657
|
pointerId: l.pointerId
|
|
655
|
-
}, (d = (n =
|
|
658
|
+
}, (d = (n = $.value) == null ? void 0 : n.setPointerCapture) == null || d.call(n, l.pointerId), document.addEventListener("pointermove", zt, !0), document.addEventListener("pointerup", Mt, !0), document.addEventListener("pointercancel", ze, !0), document.addEventListener("keydown", Rt, !0), window.addEventListener("blur", ze);
|
|
656
659
|
}
|
|
657
|
-
function
|
|
660
|
+
function sl() {
|
|
658
661
|
k.value || (I(), Ee.value = {}, Ce.value = !1, x("update:columnWidths", {}), re());
|
|
659
662
|
}
|
|
660
663
|
function et(e, l) {
|
|
661
664
|
const t = m.value.leaves.find((n) => n.key === e);
|
|
662
|
-
t && Number.isFinite(l) && Ft(t, l,
|
|
665
|
+
t && Number.isFinite(l) && Ft(t, l, D.value[e] ?? J(t));
|
|
663
666
|
}
|
|
664
|
-
function
|
|
665
|
-
|
|
667
|
+
function rl(e) {
|
|
668
|
+
$.value && (N.close(), x(
|
|
666
669
|
"scroll",
|
|
667
670
|
{
|
|
668
|
-
scrollLeft:
|
|
669
|
-
scrollTop:
|
|
671
|
+
scrollLeft: $.value.scrollLeft,
|
|
672
|
+
scrollTop: $.value.scrollTop
|
|
670
673
|
},
|
|
671
674
|
e
|
|
672
675
|
));
|
|
673
676
|
}
|
|
674
677
|
function At() {
|
|
675
|
-
|
|
678
|
+
X == null || X.disconnect(), typeof ResizeObserver < "u" && (X = new ResizeObserver(re), le.value && X.observe(le.value), Y.value && X.observe(Y.value)), re();
|
|
676
679
|
}
|
|
677
680
|
function Bt() {
|
|
678
|
-
|
|
681
|
+
X == null || X.disconnect(), cancelAnimationFrame(Ge), I(), clearTimeout(me), M.close(), N.close();
|
|
679
682
|
}
|
|
680
|
-
|
|
681
|
-
e && (I(),
|
|
682
|
-
}),
|
|
683
|
+
te(k, (e) => {
|
|
684
|
+
e && (I(), M.close(), N.close());
|
|
685
|
+
}), te(
|
|
683
686
|
() => r.columnWidths,
|
|
684
687
|
() => {
|
|
685
688
|
C && I(), re();
|
|
686
689
|
},
|
|
687
690
|
{ deep: !0 }
|
|
688
|
-
),
|
|
691
|
+
), te(
|
|
689
692
|
() => m.value.leaves.map((e) => e.key).join("\0"),
|
|
690
693
|
() => {
|
|
691
694
|
b.value && !m.value.leaves.some((e) => {
|
|
692
695
|
var l;
|
|
693
696
|
return e.key === ((l = b.value) == null ? void 0 : l.key);
|
|
694
|
-
}) &&
|
|
697
|
+
}) && M.close(), ee.value && !m.value.leaves.some((e) => {
|
|
695
698
|
var l;
|
|
696
|
-
return e.key === ((l =
|
|
699
|
+
return e.key === ((l = ee.value) == null ? void 0 : l.column.key);
|
|
697
700
|
}) && N.close(), C && !m.value.leaves.some((e) => e.key === (C == null ? void 0 : C.column.key)) && I();
|
|
698
701
|
}
|
|
699
|
-
),
|
|
702
|
+
), te(
|
|
700
703
|
() => r.columns,
|
|
701
704
|
() => {
|
|
702
|
-
I(),
|
|
705
|
+
I(), M.close(), N.close();
|
|
703
706
|
},
|
|
704
707
|
{ deep: !0 }
|
|
705
|
-
),
|
|
708
|
+
), ml(() => {
|
|
706
709
|
At(), Re();
|
|
707
|
-
}),
|
|
708
|
-
[
|
|
710
|
+
}), pl(At), hl(re), kl(Bt), wl(Bt), te(
|
|
711
|
+
[Z, we, De, be],
|
|
709
712
|
() => {
|
|
710
|
-
r.scrollToFirstRowOnChange &&
|
|
713
|
+
r.scrollToFirstRowOnChange && $.value && ($.value.scrollTop = 0);
|
|
711
714
|
},
|
|
712
715
|
{ flush: "post" }
|
|
713
716
|
);
|
|
714
717
|
function Fe(e) {
|
|
715
|
-
const l =
|
|
718
|
+
const l = $.value;
|
|
716
719
|
!s.live.value || !l || (typeof l.scrollTo == "function" ? l.scrollTo(e) : (e.top !== void 0 && (l.scrollTop = e.top), e.left !== void 0 && (l.scrollLeft = e.left)));
|
|
717
720
|
}
|
|
718
|
-
async function
|
|
719
|
-
var
|
|
720
|
-
await
|
|
721
|
-
const t = s.find(e), n =
|
|
721
|
+
async function ul(e, l = {}) {
|
|
722
|
+
var p, v, ue;
|
|
723
|
+
await he();
|
|
724
|
+
const t = s.find(e), n = $.value;
|
|
722
725
|
if (!s.live.value || !n || !t || r.loading) return !1;
|
|
723
|
-
const d =
|
|
724
|
-
((
|
|
726
|
+
const d = G.value.findIndex((dl) => dl.token === t.token), a = Array.from(
|
|
727
|
+
((p = Y.value) == null ? void 0 : p.querySelectorAll("tbody tr[data-row-key]")) ?? []
|
|
725
728
|
)[d];
|
|
726
729
|
if (d < 0 || !a) return !1;
|
|
727
|
-
const f = n.getBoundingClientRect(), y = a.getBoundingClientRect(), w = yt.value ? ((ue = (v =
|
|
730
|
+
const f = n.getBoundingClientRect(), y = a.getBoundingClientRect(), w = yt.value ? ((ue = (v = Y.value) == null ? void 0 : v.querySelector("thead")) == null ? void 0 : ue.getBoundingClientRect().height) ?? 0 : 0, P = y.top - f.top - n.clientTop + n.scrollTop, z = Math.max(0, n.clientHeight - w);
|
|
728
731
|
let R = P - w;
|
|
729
732
|
if (l.block === "center") R -= (z - y.height) / 2;
|
|
730
733
|
else if (l.block === "end") R -= z - y.height;
|
|
@@ -735,15 +738,15 @@ const $l = ["aria-busy"], Hl = {
|
|
|
735
738
|
}
|
|
736
739
|
return Fe({ top: Math.max(0, R), behavior: l.behavior }), !0;
|
|
737
740
|
}
|
|
738
|
-
const
|
|
739
|
-
return
|
|
741
|
+
const cl = F(() => m.value.leaves);
|
|
742
|
+
return Lt({
|
|
740
743
|
element: le,
|
|
741
|
-
viewport:
|
|
744
|
+
viewport: $,
|
|
742
745
|
selectedKeys: fe,
|
|
743
746
|
currentRow: s.currentRow,
|
|
744
747
|
expandedKeys: Le,
|
|
745
|
-
query:
|
|
746
|
-
columns:
|
|
748
|
+
query: We,
|
|
749
|
+
columns: cl,
|
|
747
750
|
clearSelection: s.clearSelection,
|
|
748
751
|
getSelectionRows: s.getSelectionRows,
|
|
749
752
|
getHalfSelectionRows: s.getHalfSelectionRows,
|
|
@@ -762,8 +765,8 @@ const $l = ["aria-busy"], Hl = {
|
|
|
762
765
|
hideFilter: () => xe(null, !0),
|
|
763
766
|
setPage: s.requestPage,
|
|
764
767
|
resizeColumn: et,
|
|
765
|
-
resetColumnWidths:
|
|
766
|
-
doLayout:
|
|
768
|
+
resetColumnWidths: sl,
|
|
769
|
+
doLayout: nl,
|
|
767
770
|
scrollTo: Fe,
|
|
768
771
|
setScrollTop: (e) => {
|
|
769
772
|
Number.isFinite(e) && Fe({ top: Math.max(0, e) });
|
|
@@ -771,7 +774,7 @@ const $l = ["aria-busy"], Hl = {
|
|
|
771
774
|
setScrollLeft: (e) => {
|
|
772
775
|
Number.isFinite(e) && Fe({ left: Math.max(0, e) });
|
|
773
776
|
},
|
|
774
|
-
scrollToRow:
|
|
777
|
+
scrollToRow: ul
|
|
775
778
|
}), (e, l) => (u(), c("div", W({
|
|
776
779
|
ref_key: "element",
|
|
777
780
|
ref: le
|
|
@@ -786,13 +789,13 @@ const $l = ["aria-busy"], Hl = {
|
|
|
786
789
|
]],
|
|
787
790
|
"aria-busy": i.loading || void 0
|
|
788
791
|
}), [
|
|
789
|
-
e.$slots.title ? (u(), c("div",
|
|
792
|
+
e.$slots.title ? (u(), c("div", Ll, [
|
|
790
793
|
S(e.$slots, "title", {
|
|
791
794
|
rows: o(s).filteredRows.value,
|
|
792
|
-
query: o(
|
|
795
|
+
query: o(We)
|
|
793
796
|
}, void 0, !0)
|
|
794
797
|
])) : g("", !0),
|
|
795
|
-
i.selectionActions || e.$slots.selection ? (u(), c("div",
|
|
798
|
+
i.selectionActions || e.$slots.selection ? (u(), c("div", Nl, [
|
|
796
799
|
S(e.$slots, "selection", {
|
|
797
800
|
rows: o(s).getSelectionRows(),
|
|
798
801
|
keys: o(fe),
|
|
@@ -800,88 +803,88 @@ const $l = ["aria-busy"], Hl = {
|
|
|
800
803
|
invert: o(s).invertSelection,
|
|
801
804
|
clear: o(s).clearSelection
|
|
802
805
|
}, () => [
|
|
803
|
-
T("span",
|
|
804
|
-
i.selectionType !== "radio" ? (u(),
|
|
806
|
+
T("span", Dl, O(h.value.selected.replace("{count}", String(o(fe).length))), 1),
|
|
807
|
+
i.selectionType !== "radio" ? (u(), B(ce, {
|
|
805
808
|
key: 0,
|
|
806
809
|
size: "sm",
|
|
807
810
|
variant: "secondary",
|
|
808
811
|
disabled: o(k),
|
|
809
812
|
onClick: l[0] || (l[0] = (t) => o(s).toggleAllSelection(!0))
|
|
810
813
|
}, {
|
|
811
|
-
default:
|
|
812
|
-
|
|
814
|
+
default: U(() => [
|
|
815
|
+
q(O(h.value.selectAll), 1)
|
|
813
816
|
]),
|
|
814
817
|
_: 1
|
|
815
818
|
}, 8, ["disabled"])) : g("", !0),
|
|
816
|
-
i.selectionType !== "radio" ? (u(),
|
|
819
|
+
i.selectionType !== "radio" ? (u(), B(ce, {
|
|
817
820
|
key: 1,
|
|
818
821
|
size: "sm",
|
|
819
822
|
variant: "secondary",
|
|
820
823
|
disabled: o(k),
|
|
821
824
|
onClick: o(s).invertSelection
|
|
822
825
|
}, {
|
|
823
|
-
default:
|
|
824
|
-
|
|
826
|
+
default: U(() => [
|
|
827
|
+
q(O(h.value.invertSelection), 1)
|
|
825
828
|
]),
|
|
826
829
|
_: 1
|
|
827
830
|
}, 8, ["disabled", "onClick"])) : g("", !0),
|
|
828
|
-
|
|
831
|
+
K(ce, {
|
|
829
832
|
size: "sm",
|
|
830
833
|
variant: "ghost",
|
|
831
834
|
disabled: o(k) || !o(fe).length,
|
|
832
835
|
onClick: o(s).clearSelection
|
|
833
836
|
}, {
|
|
834
|
-
default:
|
|
835
|
-
|
|
837
|
+
default: U(() => [
|
|
838
|
+
q(O(h.value.clearSelection), 1)
|
|
836
839
|
]),
|
|
837
840
|
_: 1
|
|
838
841
|
}, 8, ["disabled", "onClick"])
|
|
839
842
|
], !0)
|
|
840
843
|
])) : g("", !0),
|
|
841
|
-
(u(!0), c(E, null,
|
|
844
|
+
(u(!0), c(E, null, Q(ct.value.filter(
|
|
842
845
|
(t) => t.startsWith("top-")
|
|
843
846
|
), (t) => (u(), c("div", {
|
|
844
847
|
key: t,
|
|
845
848
|
class: "hys-ui-table-pagination",
|
|
846
849
|
"data-position": t
|
|
847
850
|
}, [
|
|
848
|
-
|
|
851
|
+
K(Kt, W({ ref_for: !0 }, dt.value, {
|
|
849
852
|
onChange: l[1] || (l[1] = (n) => o(s).requestPage(n)),
|
|
850
853
|
onPageSizeChange: o(s).changeSize
|
|
851
854
|
}), null, 16, ["onPageSizeChange"])
|
|
852
855
|
], 8, Wl))), 128)),
|
|
853
856
|
T("div", {
|
|
854
857
|
ref_key: "viewport",
|
|
855
|
-
ref:
|
|
858
|
+
ref: $,
|
|
856
859
|
class: "hys-ui-table-scroll",
|
|
857
|
-
style:
|
|
860
|
+
style: pe({
|
|
858
861
|
height: vt(i.height),
|
|
859
862
|
maxHeight: vt(i.maxHeight),
|
|
860
863
|
overflowY: i.scrollbarAlwaysOn ? "scroll" : void 0
|
|
861
864
|
}),
|
|
862
865
|
tabindex: i.scrollbarTabindex,
|
|
863
|
-
"aria-label": i.caption ||
|
|
864
|
-
onScroll:
|
|
866
|
+
"aria-label": i.caption || h.value.scrollLabel,
|
|
867
|
+
onScroll: rl
|
|
865
868
|
}, [
|
|
866
869
|
T("table", {
|
|
867
870
|
ref_key: "table",
|
|
868
|
-
ref:
|
|
871
|
+
ref: Y,
|
|
869
872
|
class: "hys-ui-data-table",
|
|
870
|
-
style:
|
|
873
|
+
style: pe({
|
|
871
874
|
minWidth: ft.value + "px",
|
|
872
875
|
tableLayout: Ce.value || ae.value ? "fixed" : i.tableLayout,
|
|
873
876
|
width: i.fit && !Ce.value && !ae.value && !Object.keys(i.columnWidths ?? {}).length ? "100%" : ft.value + "px"
|
|
874
877
|
})
|
|
875
878
|
}, [
|
|
876
|
-
i.caption ? (u(), c("caption",
|
|
879
|
+
i.caption ? (u(), c("caption", Vl, O(i.caption), 1)) : g("", !0),
|
|
877
880
|
T("colgroup", null, [
|
|
878
|
-
(u(!0), c(E, null,
|
|
881
|
+
(u(!0), c(E, null, Q(m.value.leaves, (t) => (u(), c("col", {
|
|
879
882
|
key: t.key,
|
|
880
|
-
style:
|
|
883
|
+
style: pe({ width: Ut(t) })
|
|
881
884
|
}, null, 4))), 128))
|
|
882
885
|
]),
|
|
883
|
-
i.showHeader ? (u(), c("thead",
|
|
884
|
-
(u(!0), c(E, null,
|
|
886
|
+
i.showHeader ? (u(), c("thead", jl, [
|
|
887
|
+
(u(!0), c(E, null, Q(m.value.headers, (t, n) => {
|
|
885
888
|
var d;
|
|
886
889
|
return u(), c("tr", W(
|
|
887
890
|
{
|
|
@@ -904,11 +907,11 @@ const $l = ["aria-busy"], Hl = {
|
|
|
904
907
|
)
|
|
905
908
|
)
|
|
906
909
|
), [
|
|
907
|
-
(u(!0), c(E, null,
|
|
908
|
-
var f, y, w, P, z, R,
|
|
910
|
+
(u(!0), c(E, null, Q(t, (a) => {
|
|
911
|
+
var f, y, w, P, z, R, p;
|
|
909
912
|
return u(), c("th", W({
|
|
910
913
|
key: a.key
|
|
911
|
-
}, { ref_for: !0 },
|
|
914
|
+
}, { ref_for: !0 }, Vt(a), {
|
|
912
915
|
"data-column-key": a.column.key,
|
|
913
916
|
"data-leaf": a.column.children ? void 0 : "",
|
|
914
917
|
colspan: a.colspan,
|
|
@@ -921,8 +924,8 @@ const $l = ["aria-busy"], Hl = {
|
|
|
921
924
|
m.value.leaves.indexOf(a.leaves[0])
|
|
922
925
|
) : i.headerCellClassName
|
|
923
926
|
],
|
|
924
|
-
style:
|
|
925
|
-
"aria-sort": a.column.sortable ? ((f = o(
|
|
927
|
+
style: Xt(a),
|
|
928
|
+
"aria-sort": a.column.sortable ? ((f = o(Z).find((v) => v.key === a.column.key)) == null ? void 0 : f.direction) === "asc" ? "ascending" : ((y = o(Z).find((v) => v.key === a.column.key)) == null ? void 0 : y.direction) === "desc" ? "descending" : "none" : void 0,
|
|
926
929
|
onClick: (v) => x("headerClick", a.column, v),
|
|
927
930
|
onContextmenu: (v) => x("headerContextmenu", a.column, v)
|
|
928
931
|
}), [
|
|
@@ -933,30 +936,30 @@ const $l = ["aria-busy"], Hl = {
|
|
|
933
936
|
disabled: o(k) || !o(s).graph.value.all.some(o(s).eligible),
|
|
934
937
|
toggle: o(s).toggleAllSelection
|
|
935
938
|
}, () => [
|
|
936
|
-
a.column.type === "selection" && i.selectionType !== "radio" && !i.hideSelectAll ? (u(),
|
|
939
|
+
a.column.type === "selection" && i.selectionType !== "radio" && !i.hideSelectAll ? (u(), B(Et, {
|
|
937
940
|
key: 0,
|
|
938
941
|
"model-value": o(st),
|
|
939
942
|
indeterminate: o(Ne),
|
|
940
943
|
disabled: o(k) || !o(s).graph.value.all.some(o(s).eligible),
|
|
941
|
-
"aria-label":
|
|
944
|
+
"aria-label": h.value.selectAll,
|
|
942
945
|
onClick: l[2] || (l[2] = V(() => {
|
|
943
946
|
}, ["stop"])),
|
|
944
947
|
"onUpdate:modelValue": l[3] || (l[3] = (v) => o(s).toggleAllSelection(
|
|
945
948
|
o(Ne) && !i.selectOnIndeterminate ? !1 : v === !0
|
|
946
949
|
))
|
|
947
950
|
}, {
|
|
948
|
-
default:
|
|
951
|
+
default: U(() => {
|
|
949
952
|
var v;
|
|
950
953
|
return [
|
|
951
954
|
(v = i.selectionColumn) != null && v.label ? (u(), c(E, { key: 0 }, [
|
|
952
|
-
|
|
955
|
+
q(O(i.selectionColumn.label), 1)
|
|
953
956
|
], 64)) : g("", !0)
|
|
954
957
|
];
|
|
955
958
|
}),
|
|
956
959
|
_: 1
|
|
957
|
-
}, 8, ["model-value", "indeterminate", "disabled", "aria-label"])) : a.column.type === "selection" ? (u(), c("span",
|
|
958
|
-
], !0, 0) : (u(), c("div",
|
|
959
|
-
T("div",
|
|
960
|
+
}, 8, ["model-value", "indeterminate", "disabled", "aria-label"])) : a.column.type === "selection" ? (u(), c("span", Ul, "选择")) : g("", !0)
|
|
961
|
+
], !0, 0) : (u(), c("div", Jl, [
|
|
962
|
+
T("div", Xl, [
|
|
960
963
|
a.column.sortable ? (u(), c("button", {
|
|
961
964
|
key: 0,
|
|
962
965
|
type: "button",
|
|
@@ -966,47 +969,47 @@ const $l = ["aria-busy"], Hl = {
|
|
|
966
969
|
}, [
|
|
967
970
|
S(e.$slots, "header-" + a.column.key, {
|
|
968
971
|
column: a.column,
|
|
969
|
-
sorts: o(
|
|
972
|
+
sorts: o(Z)
|
|
970
973
|
}, () => [
|
|
971
974
|
S(e.$slots, "header-cell", {
|
|
972
975
|
column: a.column,
|
|
973
|
-
sorts: o(
|
|
976
|
+
sorts: o(Z)
|
|
974
977
|
}, () => [
|
|
975
|
-
|
|
978
|
+
q(O(a.column.label), 1)
|
|
976
979
|
], !0)
|
|
977
980
|
], !0)
|
|
978
|
-
], 8,
|
|
981
|
+
], 8, Ql)) : (u(), c("span", Yl, [
|
|
979
982
|
S(e.$slots, "header-" + a.column.key, {
|
|
980
983
|
column: a.column,
|
|
981
|
-
sorts: o(
|
|
984
|
+
sorts: o(Z)
|
|
982
985
|
}, () => [
|
|
983
986
|
S(e.$slots, "header-cell", {
|
|
984
987
|
column: a.column,
|
|
985
|
-
sorts: o(
|
|
988
|
+
sorts: o(Z)
|
|
986
989
|
}, () => [
|
|
987
|
-
|
|
990
|
+
q(O(a.column.label), 1)
|
|
988
991
|
], !0)
|
|
989
992
|
], !0)
|
|
990
993
|
])),
|
|
991
|
-
a.column.sortable ? (u(), c("span",
|
|
992
|
-
(u(), c(E, null,
|
|
994
|
+
a.column.sortable ? (u(), c("span", Gl, [
|
|
995
|
+
(u(), c(E, null, Q(["asc", "desc"], (v) => T("button", {
|
|
993
996
|
key: v,
|
|
994
997
|
type: "button",
|
|
995
998
|
disabled: o(k),
|
|
996
999
|
"aria-label": ye(
|
|
997
|
-
v === "asc" ?
|
|
1000
|
+
v === "asc" ? h.value.sortAsc : h.value.sortDesc,
|
|
998
1001
|
a.column.label
|
|
999
1002
|
),
|
|
1000
|
-
"aria-pressed": o(
|
|
1003
|
+
"aria-pressed": o(Z).some(
|
|
1001
1004
|
(ue) => ue.key === a.column.key && ue.direction === v
|
|
1002
1005
|
),
|
|
1003
1006
|
onClick: (ue) => o(s).toggleSort(a.column, v)
|
|
1004
1007
|
}, [
|
|
1005
|
-
(u(),
|
|
1008
|
+
(u(), B(Me(v === "asc" ? o(Rl) : o(at)), {
|
|
1006
1009
|
size: 12,
|
|
1007
1010
|
"aria-hidden": "true"
|
|
1008
1011
|
}))
|
|
1009
|
-
], 8,
|
|
1012
|
+
], 8, Zl)), 64))
|
|
1010
1013
|
])) : g("", !0)
|
|
1011
1014
|
]),
|
|
1012
1015
|
a.column.filterable || a.column.filters ? (u(), c("button", {
|
|
@@ -1016,69 +1019,69 @@ const $l = ["aria-busy"], Hl = {
|
|
|
1016
1019
|
"hys-ui-table-filter-active": !!((w = o(we)[a.column.key]) != null && w.length)
|
|
1017
1020
|
}]),
|
|
1018
1021
|
disabled: o(k),
|
|
1019
|
-
"aria-label":
|
|
1022
|
+
"aria-label": h.value.filter + a.column.label,
|
|
1020
1023
|
"aria-expanded": o(j) && ((P = b.value) == null ? void 0 : P.key) === a.column.key,
|
|
1021
1024
|
"aria-controls": o(de) + "-filter",
|
|
1022
|
-
onClick: V((v) =>
|
|
1025
|
+
onClick: V((v) => tl(a.column, v), ["stop"])
|
|
1023
1026
|
}, [
|
|
1024
1027
|
S(e.$slots, "filter-icon", {
|
|
1025
1028
|
column: a.column,
|
|
1026
1029
|
filtered: !!((z = o(we)[a.column.key]) != null && z.length),
|
|
1027
1030
|
open: o(j) && ((R = b.value) == null ? void 0 : R.key) === a.column.key
|
|
1028
1031
|
}, () => [
|
|
1029
|
-
|
|
1032
|
+
K(o(Tl), {
|
|
1030
1033
|
size: 14,
|
|
1031
1034
|
"aria-hidden": "true"
|
|
1032
1035
|
})
|
|
1033
1036
|
], !0)
|
|
1034
|
-
], 10,
|
|
1035
|
-
!a.column.children && (a.column.resizable ?? i.resizable) && (i.allowDragLastColumn || a.column.key !== ((
|
|
1037
|
+
], 10, _l)) : g("", !0),
|
|
1038
|
+
!a.column.children && (a.column.resizable ?? i.resizable) && (i.allowDragLastColumn || a.column.key !== ((p = m.value.leaves.at(-1)) == null ? void 0 : p.key)) && (!a.column.type || a.column.type === "default") ? (u(), c("span", {
|
|
1036
1039
|
key: 1,
|
|
1037
1040
|
class: "hys-ui-table-resize",
|
|
1038
1041
|
role: "separator",
|
|
1039
1042
|
"aria-orientation": "vertical",
|
|
1040
|
-
"aria-label": ye(
|
|
1043
|
+
"aria-label": ye(h.value.resizeColumn, a.column.label),
|
|
1041
1044
|
tabindex: "0",
|
|
1042
1045
|
"aria-valuenow": Math.round(
|
|
1043
|
-
|
|
1046
|
+
D.value[a.column.key] ?? J(a.column)
|
|
1044
1047
|
),
|
|
1045
1048
|
"aria-valuemin": a.column.minWidth ?? 60,
|
|
1046
1049
|
"aria-valuemax": a.column.maxWidth ?? 2e3,
|
|
1047
|
-
onPointerdown: V((v) =>
|
|
1050
|
+
onPointerdown: V((v) => il(a.column, v), ["prevent", "stop"]),
|
|
1048
1051
|
onKeydown: [
|
|
1049
1052
|
lt(V((v) => et(
|
|
1050
1053
|
a.column.key,
|
|
1051
|
-
(
|
|
1054
|
+
(D.value[a.column.key] ?? J(a.column)) - 10
|
|
1052
1055
|
), ["prevent"]), ["left"]),
|
|
1053
1056
|
lt(V((v) => et(
|
|
1054
1057
|
a.column.key,
|
|
1055
|
-
(
|
|
1058
|
+
(D.value[a.column.key] ?? J(a.column)) + 10
|
|
1056
1059
|
), ["prevent"]), ["right"])
|
|
1057
1060
|
]
|
|
1058
|
-
}, null, 40,
|
|
1061
|
+
}, null, 40, ea)) : g("", !0)
|
|
1059
1062
|
]))
|
|
1060
|
-
], 16,
|
|
1063
|
+
], 16, Il);
|
|
1061
1064
|
}), 128))
|
|
1062
1065
|
], 16);
|
|
1063
1066
|
}), 128))
|
|
1064
1067
|
])) : g("", !0),
|
|
1065
1068
|
T("tbody", null, [
|
|
1066
|
-
i.loading ? (u(), c("tr",
|
|
1069
|
+
i.loading ? (u(), c("tr", ta, [
|
|
1067
1070
|
T("td", {
|
|
1068
1071
|
colspan: Math.max(1, m.value.leaves.length)
|
|
1069
1072
|
}, [
|
|
1070
|
-
T("div",
|
|
1073
|
+
T("div", aa, [
|
|
1071
1074
|
S(e.$slots, "loading", {}, () => [
|
|
1072
|
-
|
|
1075
|
+
K(o(ot), {
|
|
1073
1076
|
class: "hys-ui-table-spinner",
|
|
1074
1077
|
size: 18
|
|
1075
1078
|
}),
|
|
1076
|
-
|
|
1079
|
+
q(O(h.value.loadingText), 1)
|
|
1077
1080
|
], !0)
|
|
1078
1081
|
])
|
|
1079
|
-
], 8,
|
|
1082
|
+
], 8, la)
|
|
1080
1083
|
])) : (u(), c(E, { key: 1 }, [
|
|
1081
|
-
(u(!0), c(E, null,
|
|
1084
|
+
(u(!0), c(E, null, Q(o(G), (t, n) => {
|
|
1082
1085
|
var d;
|
|
1083
1086
|
return u(), c(E, {
|
|
1084
1087
|
key: t.token
|
|
@@ -1094,56 +1097,56 @@ const $l = ["aria-busy"], Hl = {
|
|
|
1094
1097
|
}
|
|
1095
1098
|
],
|
|
1096
1099
|
style: typeof i.rowStyle == "function" ? i.rowStyle(t.row, n) : i.rowStyle,
|
|
1097
|
-
onClick: (a) =>
|
|
1100
|
+
onClick: (a) => Zt(t, n, a),
|
|
1098
1101
|
onDblclick: (a) => !o(k) && x("rowDblclick", t.row, n, a),
|
|
1099
1102
|
onContextmenu: (a) => x("rowContextmenu", t.row, n, a)
|
|
1100
1103
|
}), [
|
|
1101
|
-
(u(!0), c(E, null,
|
|
1104
|
+
(u(!0), c(E, null, Q(m.value.leaves, (a, f) => (u(), c(E, {
|
|
1102
1105
|
key: a.key
|
|
1103
1106
|
}, [
|
|
1104
|
-
Se(n, f).rowspan && Se(n, f).colspan ? (u(),
|
|
1107
|
+
Se(n, f).rowspan && Se(n, f).colspan ? (u(), B(Me(a.rowScope ? "th" : "td"), W(
|
|
1105
1108
|
{
|
|
1106
1109
|
key: 0,
|
|
1107
1110
|
ref_for: !0
|
|
1108
1111
|
},
|
|
1109
|
-
|
|
1110
|
-
|
|
1112
|
+
jt(
|
|
1113
|
+
L(t.row, a, n, f)
|
|
1111
1114
|
),
|
|
1112
1115
|
{
|
|
1113
1116
|
scope: a.rowScope,
|
|
1114
1117
|
"data-column-key": a.key,
|
|
1115
1118
|
rowspan: Se(n, f).rowspan,
|
|
1116
1119
|
colspan: Se(n, f).colspan,
|
|
1117
|
-
style:
|
|
1118
|
-
class:
|
|
1120
|
+
style: Qt(L(t.row, a, n, f)),
|
|
1121
|
+
class: Yt(L(t.row, a, n, f)),
|
|
1119
1122
|
onClick: (y) => !o(k) && x(
|
|
1120
1123
|
"cellClick",
|
|
1121
|
-
|
|
1124
|
+
L(t.row, a, n, f),
|
|
1122
1125
|
y
|
|
1123
1126
|
),
|
|
1124
1127
|
onDblclick: (y) => !o(k) && x(
|
|
1125
1128
|
"cellDblclick",
|
|
1126
|
-
|
|
1129
|
+
L(t.row, a, n, f),
|
|
1127
1130
|
y
|
|
1128
1131
|
),
|
|
1129
1132
|
onContextmenu: (y) => x(
|
|
1130
1133
|
"cellContextmenu",
|
|
1131
|
-
|
|
1134
|
+
L(t.row, a, n, f),
|
|
1132
1135
|
y
|
|
1133
1136
|
),
|
|
1134
1137
|
onMouseenter: (y) => x(
|
|
1135
1138
|
"cellMouseEnter",
|
|
1136
|
-
|
|
1139
|
+
L(t.row, a, n, f),
|
|
1137
1140
|
y
|
|
1138
1141
|
),
|
|
1139
1142
|
onMouseleave: (y) => x(
|
|
1140
1143
|
"cellMouseLeave",
|
|
1141
|
-
|
|
1144
|
+
L(t.row, a, n, f),
|
|
1142
1145
|
y
|
|
1143
1146
|
)
|
|
1144
1147
|
}
|
|
1145
1148
|
), {
|
|
1146
|
-
default:
|
|
1149
|
+
default: U(() => {
|
|
1147
1150
|
var y;
|
|
1148
1151
|
return [
|
|
1149
1152
|
a.type === "selection" ? S(e.$slots, "selection-cell", {
|
|
@@ -1157,39 +1160,39 @@ const $l = ["aria-busy"], Hl = {
|
|
|
1157
1160
|
}, () => {
|
|
1158
1161
|
var w, P, z, R;
|
|
1159
1162
|
return [
|
|
1160
|
-
i.selectionType === "radio" ? (u(),
|
|
1163
|
+
i.selectionType === "radio" ? (u(), B(Fl, {
|
|
1161
1164
|
key: 0,
|
|
1162
1165
|
name: o(de) + "-selection",
|
|
1163
1166
|
"model-value": o(fe)[0] ?? null,
|
|
1164
1167
|
value: t.key,
|
|
1165
1168
|
disabled: o(k) || !o(s).eligible(t),
|
|
1166
|
-
"aria-label": ((w = i.getSelectionProps) == null ? void 0 : w.call(i, t.row, t.index).label) ?? ye(
|
|
1169
|
+
"aria-label": ((w = i.getSelectionProps) == null ? void 0 : w.call(i, t.row, t.index).label) ?? ye(h.value.selectRow, n + 1),
|
|
1167
1170
|
title: (P = i.getSelectionProps) == null ? void 0 : P.call(i, t.row, t.index).title,
|
|
1168
1171
|
onClick: l[4] || (l[4] = V(() => {
|
|
1169
1172
|
}, ["stop"])),
|
|
1170
|
-
"onUpdate:modelValue": (
|
|
1171
|
-
}, null, 8, ["name", "model-value", "value", "disabled", "aria-label", "title", "onUpdate:modelValue"])) : (u(),
|
|
1173
|
+
"onUpdate:modelValue": (p) => o(s).toggleRowSelection(t.key, !0)
|
|
1174
|
+
}, null, 8, ["name", "model-value", "value", "disabled", "aria-label", "title", "onUpdate:modelValue"])) : (u(), B(Et, {
|
|
1172
1175
|
key: 1,
|
|
1173
1176
|
"model-value": o(He).has(t.token),
|
|
1174
1177
|
indeterminate: o(it).has(t.token),
|
|
1175
1178
|
disabled: o(k) || !o(s).eligible(t),
|
|
1176
|
-
"aria-label": ((z = i.getSelectionProps) == null ? void 0 : z.call(i, t.row, t.index).label) ?? ye(
|
|
1179
|
+
"aria-label": ((z = i.getSelectionProps) == null ? void 0 : z.call(i, t.row, t.index).label) ?? ye(h.value.selectRow, n + 1),
|
|
1177
1180
|
title: (R = i.getSelectionProps) == null ? void 0 : R.call(i, t.row, t.index).title,
|
|
1178
|
-
onClick: l[5] || (l[5] = V((
|
|
1179
|
-
"onUpdate:modelValue": (
|
|
1181
|
+
onClick: l[5] || (l[5] = V((p) => bl(ve) ? ve.value = p.shiftKey : ve = p.shiftKey, ["stop"])),
|
|
1182
|
+
"onUpdate:modelValue": (p) => It(t, p === !0)
|
|
1180
1183
|
}, null, 8, ["model-value", "indeterminate", "disabled", "aria-label", "title", "onUpdate:modelValue"]))
|
|
1181
1184
|
];
|
|
1182
|
-
}, !0, 0) : a.type === "index" ? (u(),
|
|
1185
|
+
}, !0, 0) : a.type === "index" ? (u(), B(ke, {
|
|
1183
1186
|
key: 1,
|
|
1184
|
-
value: typeof a.index == "function" ? a.index(n, t.row) : i.indexMethod ? i.indexMethod(n, t.row) : (typeof a.index == "number" ? a.index : 1) + n + (i.pagination && !i.serverMode ? (o(
|
|
1187
|
+
value: typeof a.index == "function" ? a.index(n, t.row) : i.indexMethod ? i.indexMethod(n, t.row) : (typeof a.index == "number" ? a.index : 1) + n + (i.pagination && !i.serverMode ? (o(De) - 1) * o(be) : 0)
|
|
1185
1188
|
}, null, 8, ["value"])) : a.type === "expand" && o(s).canExpand(t) ? (u(), c("button", {
|
|
1186
1189
|
key: 2,
|
|
1187
1190
|
type: "button",
|
|
1188
1191
|
class: "hys-ui-table-expand",
|
|
1189
1192
|
disabled: o(k),
|
|
1190
|
-
"aria-expanded": o(
|
|
1193
|
+
"aria-expanded": o(H).has(t.token),
|
|
1191
1194
|
"aria-label": ye(
|
|
1192
|
-
o(
|
|
1195
|
+
o(H).has(t.token) ? h.value.collapseRow : h.value.expandRow,
|
|
1193
1196
|
n + 1
|
|
1194
1197
|
),
|
|
1195
1198
|
onClick: V((w) => o(s).toggleRowExpansion(t.key), ["stop"])
|
|
@@ -1197,12 +1200,12 @@ const $l = ["aria-busy"], Hl = {
|
|
|
1197
1200
|
S(e.$slots, "expand-icon", {
|
|
1198
1201
|
row: t.row,
|
|
1199
1202
|
index: n,
|
|
1200
|
-
expanded: o(
|
|
1203
|
+
expanded: o(H).has(t.token),
|
|
1201
1204
|
loading: o(ne).has(t.token),
|
|
1202
1205
|
depth: t.depth
|
|
1203
1206
|
}, () => [
|
|
1204
|
-
(u(),
|
|
1205
|
-
o(ne).has(t.token) ? o(ot) : o(
|
|
1207
|
+
(u(), B(Me(
|
|
1208
|
+
o(ne).has(t.token) ? o(ot) : o(H).has(t.token) ? o(at) : o(Ot)
|
|
1206
1209
|
), {
|
|
1207
1210
|
class: Ae({
|
|
1208
1211
|
"hys-ui-table-spinner": o(ne).has(t.token)
|
|
@@ -1211,22 +1214,22 @@ const $l = ["aria-busy"], Hl = {
|
|
|
1211
1214
|
"aria-hidden": "true"
|
|
1212
1215
|
}, null, 8, ["class"]))
|
|
1213
1216
|
], !0)
|
|
1214
|
-
], 8,
|
|
1217
|
+
], 8, na)) : a.type !== "expand" ? (u(), c("div", ia, [
|
|
1215
1218
|
i.treeMode && a.key === ge.value ? (u(), c("span", {
|
|
1216
1219
|
key: 0,
|
|
1217
1220
|
class: "hys-ui-table-tree-indent",
|
|
1218
|
-
style:
|
|
1221
|
+
style: pe({
|
|
1219
1222
|
width: Math.min(t.depth, 100) * Math.max(0, i.indent) + "px"
|
|
1220
1223
|
})
|
|
1221
1224
|
}, null, 4)) : g("", !0),
|
|
1222
|
-
i.treeMode && a.key === ge.value && !
|
|
1225
|
+
i.treeMode && a.key === ge.value && !qt.value && i.showExpandColumn ? (u(), c(E, { key: 1 }, [
|
|
1223
1226
|
o(s).canExpand(t) ? (u(), c("button", {
|
|
1224
1227
|
key: 0,
|
|
1225
1228
|
type: "button",
|
|
1226
1229
|
class: "hys-ui-table-expand",
|
|
1227
1230
|
disabled: o(k),
|
|
1228
|
-
"aria-expanded": o(
|
|
1229
|
-
"aria-label": (o(
|
|
1231
|
+
"aria-expanded": o(H).has(t.token),
|
|
1232
|
+
"aria-label": (o(H).has(t.token) ? h.value.collapse : h.value.expand) + Ue(
|
|
1230
1233
|
o(Be)(
|
|
1231
1234
|
t.row,
|
|
1232
1235
|
a.dataIndex ?? a.key
|
|
@@ -1237,12 +1240,12 @@ const $l = ["aria-busy"], Hl = {
|
|
|
1237
1240
|
S(e.$slots, "expand-icon", {
|
|
1238
1241
|
row: t.row,
|
|
1239
1242
|
index: n,
|
|
1240
|
-
expanded: o(
|
|
1243
|
+
expanded: o(H).has(t.token),
|
|
1241
1244
|
loading: o(ne).has(t.token),
|
|
1242
1245
|
depth: t.depth
|
|
1243
1246
|
}, () => [
|
|
1244
|
-
(u(),
|
|
1245
|
-
o(ne).has(t.token) ? o(ot) : o(
|
|
1247
|
+
(u(), B(Me(
|
|
1248
|
+
o(ne).has(t.token) ? o(ot) : o(H).has(t.token) ? o(at) : o(Ot)
|
|
1246
1249
|
), {
|
|
1247
1250
|
class: Ae({
|
|
1248
1251
|
"hys-ui-table-spinner": o(ne).has(
|
|
@@ -1253,21 +1256,21 @@ const $l = ["aria-busy"], Hl = {
|
|
|
1253
1256
|
"aria-hidden": "true"
|
|
1254
1257
|
}, null, 8, ["class"]))
|
|
1255
1258
|
], !0)
|
|
1256
|
-
], 8,
|
|
1259
|
+
], 8, sa)) : (u(), c("span", ra))
|
|
1257
1260
|
], 64)) : g("", !0),
|
|
1258
1261
|
T("span", {
|
|
1259
1262
|
class: Ae(["hys-ui-table-cell-text", {
|
|
1260
1263
|
"hys-ui-table-ellipsis": a.ellipsis || a.showOverflowTooltip || i.showOverflowTooltip
|
|
1261
1264
|
}]),
|
|
1262
1265
|
tabindex: a.showOverflowTooltip ?? i.showOverflowTooltip ? 0 : void 0,
|
|
1263
|
-
"aria-describedby": o(Ct) && ((y =
|
|
1266
|
+
"aria-describedby": o(Ct) && ((y = ee.value) == null ? void 0 : y.row) === t.row && ee.value.column.key === a.key ? o(de) + "-tooltip" : void 0,
|
|
1264
1267
|
onPointerenter: (w) => St(
|
|
1265
|
-
|
|
1268
|
+
L(t.row, a, n, f),
|
|
1266
1269
|
w
|
|
1267
1270
|
),
|
|
1268
1271
|
onPointerleave: Ye,
|
|
1269
1272
|
onFocus: (w) => St(
|
|
1270
|
-
|
|
1273
|
+
L(t.row, a, n, f),
|
|
1271
1274
|
w
|
|
1272
1275
|
),
|
|
1273
1276
|
onBlur: Ye
|
|
@@ -1290,9 +1293,9 @@ const $l = ["aria-busy"], Hl = {
|
|
|
1290
1293
|
),
|
|
1291
1294
|
index: n
|
|
1292
1295
|
}, () => [
|
|
1293
|
-
|
|
1294
|
-
value:
|
|
1295
|
-
|
|
1296
|
+
K(ke, {
|
|
1297
|
+
value: Gt(
|
|
1298
|
+
L(
|
|
1296
1299
|
t.row,
|
|
1297
1300
|
a,
|
|
1298
1301
|
n,
|
|
@@ -1302,17 +1305,17 @@ const $l = ["aria-busy"], Hl = {
|
|
|
1302
1305
|
}, null, 8, ["value"])
|
|
1303
1306
|
], !0)
|
|
1304
1307
|
], !0)
|
|
1305
|
-
], 42,
|
|
1306
|
-
a.key === ge.value && o(Wt).has(t.token) ? (u(),
|
|
1308
|
+
], 42, ua),
|
|
1309
|
+
a.key === ge.value && o(Wt).has(t.token) ? (u(), B(ce, {
|
|
1307
1310
|
key: 2,
|
|
1308
1311
|
size: "sm",
|
|
1309
1312
|
variant: "ghost",
|
|
1310
|
-
"aria-label":
|
|
1313
|
+
"aria-label": h.value.retryLabel,
|
|
1311
1314
|
onClick: V((w) => o(s).loadRow(t.key, !0), ["stop"])
|
|
1312
1315
|
}, {
|
|
1313
|
-
default:
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
+
default: U(() => [
|
|
1317
|
+
K(o(zl), { size: 13 }),
|
|
1318
|
+
q(O(h.value.retry), 1)
|
|
1316
1319
|
]),
|
|
1317
1320
|
_: 1
|
|
1318
1321
|
}, 8, ["aria-label", "onClick"])) : g("", !0)
|
|
@@ -1322,173 +1325,191 @@ const $l = ["aria-busy"], Hl = {
|
|
|
1322
1325
|
_: 2
|
|
1323
1326
|
}, 1040, ["scope", "data-column-key", "rowspan", "colspan", "style", "class", "onClick", "onDblclick", "onContextmenu", "onMouseenter", "onMouseleave"])) : g("", !0)
|
|
1324
1327
|
], 64))), 128))
|
|
1325
|
-
], 16,
|
|
1326
|
-
mt(t) ?
|
|
1328
|
+
], 16, oa),
|
|
1329
|
+
mt(t) ? gl((u(), c("tr", ca, [
|
|
1327
1330
|
T("td", {
|
|
1328
1331
|
colspan: Math.max(1, m.value.leaves.length)
|
|
1329
1332
|
}, [
|
|
1330
1333
|
S(e.$slots, "expand", {
|
|
1331
1334
|
row: t.row,
|
|
1332
1335
|
index: n,
|
|
1333
|
-
expanded: o(
|
|
1336
|
+
expanded: o(H).has(t.token)
|
|
1334
1337
|
}, void 0, !0)
|
|
1335
|
-
], 8,
|
|
1338
|
+
], 8, da)
|
|
1336
1339
|
], 512)), [
|
|
1337
|
-
[
|
|
1340
|
+
[Cl, o(H).has(t.token)]
|
|
1338
1341
|
]) : g("", !0)
|
|
1339
1342
|
], 64);
|
|
1340
1343
|
}), 128)),
|
|
1341
|
-
o(
|
|
1344
|
+
o(G).length ? g("", !0) : (u(), c("tr", ya, [
|
|
1342
1345
|
T("td", {
|
|
1343
1346
|
colspan: Math.max(1, m.value.leaves.length)
|
|
1344
1347
|
}, [
|
|
1345
1348
|
S(e.$slots, "empty", {}, () => [
|
|
1346
|
-
|
|
1349
|
+
q(O(i.emptyText ?? h.value.emptyText), 1)
|
|
1347
1350
|
], !0)
|
|
1348
|
-
], 8,
|
|
1351
|
+
], 8, fa)
|
|
1349
1352
|
]))
|
|
1350
1353
|
], 64)),
|
|
1351
|
-
e.$slots.append ? (u(), c("tr",
|
|
1354
|
+
e.$slots.append ? (u(), c("tr", va, [
|
|
1352
1355
|
T("td", {
|
|
1353
1356
|
colspan: Math.max(1, m.value.leaves.length)
|
|
1354
1357
|
}, [
|
|
1355
1358
|
S(e.$slots, "append", {
|
|
1356
1359
|
rows: o(s).filteredRows.value
|
|
1357
1360
|
}, void 0, !0)
|
|
1358
|
-
], 8,
|
|
1361
|
+
], 8, ma)
|
|
1359
1362
|
])) : g("", !0)
|
|
1360
1363
|
]),
|
|
1361
|
-
i.showSummary && !i.loading ? (u(), c("tfoot",
|
|
1364
|
+
i.showSummary && !i.loading ? (u(), c("tfoot", pa, [
|
|
1362
1365
|
T("tr", null, [
|
|
1363
|
-
(u(!0), c(E, null,
|
|
1366
|
+
(u(!0), c(E, null, Q(m.value.leaves, (t, n) => (u(), c("td", {
|
|
1364
1367
|
key: t.key,
|
|
1365
1368
|
"data-column-key": t.key,
|
|
1366
|
-
style:
|
|
1369
|
+
style: pe({ ...je(t), textAlign: t.align })
|
|
1367
1370
|
}, [
|
|
1368
1371
|
S(e.$slots, "summary-cell", {
|
|
1369
1372
|
column: t,
|
|
1370
1373
|
index: n,
|
|
1371
|
-
value:
|
|
1374
|
+
value: pt.value[n],
|
|
1372
1375
|
rows: o(s).filteredRows.value
|
|
1373
1376
|
}, () => [
|
|
1374
|
-
|
|
1375
|
-
value:
|
|
1377
|
+
K(ke, {
|
|
1378
|
+
value: pt.value[n]
|
|
1376
1379
|
}, null, 8, ["value"])
|
|
1377
1380
|
], !0)
|
|
1378
1381
|
], 12, ha))), 128))
|
|
1379
1382
|
])
|
|
1380
1383
|
])) : g("", !0)
|
|
1381
1384
|
], 4)
|
|
1382
|
-
], 44,
|
|
1383
|
-
e.$slots.footer ? (u(), c("div",
|
|
1385
|
+
], 44, ql),
|
|
1386
|
+
e.$slots.footer ? (u(), c("div", ka, [
|
|
1384
1387
|
S(e.$slots, "footer", {
|
|
1385
1388
|
rows: o(s).filteredRows.value,
|
|
1386
|
-
query: o(
|
|
1389
|
+
query: o(We)
|
|
1387
1390
|
}, void 0, !0)
|
|
1388
1391
|
])) : g("", !0),
|
|
1389
|
-
(u(!0), c(E, null,
|
|
1392
|
+
(u(!0), c(E, null, Q(ct.value.filter(
|
|
1390
1393
|
(t) => t.startsWith("bottom-")
|
|
1391
1394
|
), (t) => (u(), c("div", {
|
|
1392
1395
|
key: t,
|
|
1393
1396
|
class: "hys-ui-table-pagination",
|
|
1394
1397
|
"data-position": t
|
|
1395
1398
|
}, [
|
|
1396
|
-
|
|
1399
|
+
K(Kt, W({ ref_for: !0 }, dt.value, {
|
|
1397
1400
|
onChange: l[6] || (l[6] = (n) => o(s).requestPage(n)),
|
|
1398
1401
|
onPageSizeChange: o(s).changeSize
|
|
1399
1402
|
}), null, 16, ["onPageSizeChange"])
|
|
1400
|
-
], 8,
|
|
1401
|
-
(u(),
|
|
1403
|
+
], 8, wa))), 128)),
|
|
1404
|
+
(u(), B(Pt, {
|
|
1402
1405
|
to: i.appendFilterTo || "body",
|
|
1403
1406
|
disabled: i.appendFilterTo === !1
|
|
1404
1407
|
}, [
|
|
1405
|
-
o(
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1408
|
+
K(o(Ht), {
|
|
1409
|
+
"popup-transition": r.popupTransition,
|
|
1410
|
+
"popup-transition-duration": r.popupTransitionDuration,
|
|
1411
|
+
placement: o(M).placement.value
|
|
1412
|
+
}, {
|
|
1413
|
+
default: U(() => [
|
|
1414
|
+
o(j) && b.value ? (u(), c("div", W({
|
|
1415
|
+
key: 0,
|
|
1416
|
+
id: o(de) + "-filter",
|
|
1417
|
+
ref_key: "filterPanel",
|
|
1418
|
+
ref: Xe
|
|
1419
|
+
}, o(Pe), {
|
|
1420
|
+
class: "hys-ui-table-filter-panel hys-ui-floating-surface",
|
|
1421
|
+
style: o(el),
|
|
1422
|
+
role: "dialog",
|
|
1423
|
+
"aria-label": h.value.filter + b.value.label
|
|
1424
|
+
}), [
|
|
1425
|
+
S(e.$slots, "filter-dropdown", {
|
|
1426
|
+
column: b.value,
|
|
1427
|
+
open: o(j),
|
|
1428
|
+
values: _.value,
|
|
1429
|
+
setValues: kt,
|
|
1430
|
+
confirm: Te,
|
|
1431
|
+
clear: wt,
|
|
1432
|
+
close: () => o(M).close(!0)
|
|
1433
|
+
}, () => [
|
|
1434
|
+
T("strong", null, O(b.value.label), 1),
|
|
1435
|
+
b.value.filters ? (u(), B(Al, {
|
|
1436
|
+
key: b.value.key,
|
|
1437
|
+
values: _.value,
|
|
1438
|
+
"onUpdate:values": l[7] || (l[7] = (t) => _.value = t),
|
|
1439
|
+
options: b.value.filters,
|
|
1440
|
+
mode: b.value.filterMode,
|
|
1441
|
+
search: b.value.filterSearch,
|
|
1442
|
+
multiple: b.value.filterMultiple !== !1,
|
|
1443
|
+
disabled: o(k),
|
|
1444
|
+
"search-label": h.value.filterSearch,
|
|
1445
|
+
"empty-text": h.value.noFilterMatch
|
|
1446
|
+
}, null, 8, ["values", "options", "mode", "search", "multiple", "disabled", "search-label", "empty-text"])) : (u(), B(Ml, {
|
|
1447
|
+
key: 1,
|
|
1448
|
+
"model-value": String(_.value[0] ?? ""),
|
|
1449
|
+
"aria-label": h.value.filter + b.value.label,
|
|
1450
|
+
placeholder: h.value.filterPlaceholder,
|
|
1451
|
+
clearable: "",
|
|
1452
|
+
size: "sm",
|
|
1453
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => kt(t ? [t] : [])),
|
|
1454
|
+
onKeydown: lt(V(Te, ["prevent"]), ["enter"])
|
|
1455
|
+
}, null, 8, ["model-value", "aria-label", "placeholder", "onKeydown"])),
|
|
1456
|
+
T("div", ga, [
|
|
1457
|
+
K(ce, {
|
|
1458
|
+
size: "sm",
|
|
1459
|
+
variant: "secondary",
|
|
1460
|
+
onClick: l[9] || (l[9] = (t) => wt())
|
|
1461
|
+
}, {
|
|
1462
|
+
default: U(() => [
|
|
1463
|
+
q(O(h.value.reset), 1)
|
|
1464
|
+
]),
|
|
1465
|
+
_: 1
|
|
1466
|
+
}),
|
|
1467
|
+
K(ce, {
|
|
1468
|
+
size: "sm",
|
|
1469
|
+
onClick: l[10] || (l[10] = (t) => Te())
|
|
1470
|
+
}, {
|
|
1471
|
+
default: U(() => [
|
|
1472
|
+
q(O(h.value.apply), 1)
|
|
1473
|
+
]),
|
|
1474
|
+
_: 1
|
|
1475
|
+
})
|
|
1476
|
+
])
|
|
1477
|
+
], !0)
|
|
1478
|
+
], 16, ba)) : g("", !0)
|
|
1479
|
+
]),
|
|
1480
|
+
_: 3
|
|
1481
|
+
}, 8, ["popup-transition", "popup-transition-duration", "placement"])
|
|
1470
1482
|
], 8, ["to", "disabled"])),
|
|
1471
|
-
(u(),
|
|
1472
|
-
o(
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1483
|
+
(u(), B(Pt, { to: "body" }, [
|
|
1484
|
+
K(o(Ht), {
|
|
1485
|
+
"popup-transition": r.popupTransition,
|
|
1486
|
+
"popup-transition-duration": r.popupTransitionDuration,
|
|
1487
|
+
placement: o(N).placement.value
|
|
1488
|
+
}, {
|
|
1489
|
+
default: U(() => [
|
|
1490
|
+
o(Ct) && ee.value ? (u(), c("div", W({
|
|
1491
|
+
key: 0,
|
|
1492
|
+
id: o(de) + "-tooltip",
|
|
1493
|
+
ref_key: "tipPanel",
|
|
1494
|
+
ref: gt
|
|
1495
|
+
}, o(Pe), {
|
|
1496
|
+
class: "hys-ui-table-tooltip hys-ui-floating-tooltip",
|
|
1497
|
+
role: "tooltip",
|
|
1498
|
+
style: o(ll),
|
|
1499
|
+
onPointerenter: al,
|
|
1500
|
+
onPointerleave: Ye
|
|
1501
|
+
}), [
|
|
1502
|
+
S(e.$slots, "tooltip", Sl(xl(ee.value)), () => [
|
|
1503
|
+
K(ke, { value: ol.value }, null, 8, ["value"])
|
|
1504
|
+
], !0)
|
|
1505
|
+
], 16, Ca)) : g("", !0)
|
|
1506
|
+
]),
|
|
1507
|
+
_: 3
|
|
1508
|
+
}, 8, ["popup-transition", "popup-transition-duration", "placement"])
|
|
1488
1509
|
]))
|
|
1489
|
-
], 16,
|
|
1510
|
+
], 16, Hl));
|
|
1490
1511
|
}
|
|
1491
1512
|
});
|
|
1492
1513
|
export {
|
|
1493
|
-
|
|
1514
|
+
$a as default
|
|
1494
1515
|
};
|