hys-ui 0.6.0 → 0.7.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 +9 -0
- package/LICENSE +19 -0
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +1055 -753
- package/dist/components/HysDataGrid/gridColumnLayout.js +46 -0
- package/dist/components/HysDataGrid/gridPresentation.js +17 -0
- package/dist/components/HysDataGrid/useGridContextMenu.js +33 -0
- package/dist/components/HysDescriptions/HysDescriptions.vue.js +7 -0
- package/dist/components/HysDescriptions/HysDescriptions2.vue.js +146 -0
- package/dist/components/HysForm/HysForm2.vue.js +9 -8
- package/dist/components/HysIcon/HysIcon.vue.js +373 -0
- package/dist/components/HysIcon/HysIcon2.vue.js +5 -0
- package/dist/components/HysIcon/IconGraphic/IconGraphic.vue.js +147 -0
- package/dist/components/HysIcon/IconGraphic/IconGraphic2.vue.js +4 -0
- package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.js +7 -0
- package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel2.vue.js +440 -0
- package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.js +29 -0
- package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic2.vue.js +4 -0
- package/dist/components/HysIcon/IconTooltip/IconTooltip.vue.js +19 -0
- package/dist/components/HysIcon/IconTooltip/IconTooltip2.vue.js +4 -0
- package/dist/components/HysIcon/builtins/access.js +180 -0
- package/dist/components/HysIcon/builtins/actions.js +327 -0
- package/dist/components/HysIcon/builtins/business.js +364 -0
- package/dist/components/HysIcon/builtins/catalog/access-1.json.js +51 -0
- package/dist/components/HysIcon/builtins/catalog/access-2.json.js +35 -0
- package/dist/components/HysIcon/builtins/catalog/accessibility.json.js +26 -0
- package/dist/components/HysIcon/builtins/catalog/arrows-1.json.js +45 -0
- package/dist/components/HysIcon/builtins/catalog/arrows-2.json.js +46 -0
- package/dist/components/HysIcon/builtins/catalog/arrows-3.json.js +42 -0
- package/dist/components/HysIcon/builtins/catalog/charts-1.json.js +50 -0
- package/dist/components/HysIcon/builtins/catalog/charts-2.json.js +13 -0
- package/dist/components/HysIcon/builtins/catalog/commerce.json.js +43 -0
- package/dist/components/HysIcon/builtins/catalog/communication-1.json.js +49 -0
- package/dist/components/HysIcon/builtins/catalog/communication-2.json.js +37 -0
- package/dist/components/HysIcon/builtins/catalog/design-1.json.js +61 -0
- package/dist/components/HysIcon/builtins/catalog/design-2.json.js +27 -0
- package/dist/components/HysIcon/builtins/catalog/development-1.json.js +58 -0
- package/dist/components/HysIcon/builtins/catalog/development-2.json.js +60 -0
- package/dist/components/HysIcon/builtins/catalog/development-3.json.js +25 -0
- package/dist/components/HysIcon/builtins/catalog/devices-1.json.js +52 -0
- package/dist/components/HysIcon/builtins/catalog/devices-2.json.js +55 -0
- package/dist/components/HysIcon/builtins/catalog/devices-3.json.js +23 -0
- package/dist/components/HysIcon/builtins/catalog/education.json.js +34 -0
- package/dist/components/HysIcon/builtins/catalog/emoji.json.js +24 -0
- package/dist/components/HysIcon/builtins/catalog/files-1.json.js +45 -0
- package/dist/components/HysIcon/builtins/catalog/files-2.json.js +47 -0
- package/dist/components/HysIcon/builtins/catalog/files-3.json.js +8 -0
- package/dist/components/HysIcon/builtins/catalog/food-1.json.js +67 -0
- package/dist/components/HysIcon/builtins/catalog/food-2.json.js +40 -0
- package/dist/components/HysIcon/builtins/catalog/home.json.js +36 -0
- package/dist/components/HysIcon/builtins/catalog/layout-1.json.js +46 -0
- package/dist/components/HysIcon/builtins/catalog/layout-2.json.js +45 -0
- package/dist/components/HysIcon/builtins/catalog/manifest.json.js +4 -0
- package/dist/components/HysIcon/builtins/catalog/maps-1.json.js +61 -0
- package/dist/components/HysIcon/builtins/catalog/maps-2.json.js +24 -0
- package/dist/components/HysIcon/builtins/catalog/media-1.json.js +57 -0
- package/dist/components/HysIcon/builtins/catalog/media-2.json.js +13 -0
- package/dist/components/HysIcon/builtins/catalog/medical.json.js +30 -0
- package/dist/components/HysIcon/builtins/catalog/nature.json.js +54 -0
- package/dist/components/HysIcon/builtins/catalog/recreation.json.js +51 -0
- package/dist/components/HysIcon/builtins/catalog/shapes.json.js +54 -0
- package/dist/components/HysIcon/builtins/catalog/text-1.json.js +52 -0
- package/dist/components/HysIcon/builtins/catalog/text-2.json.js +54 -0
- package/dist/components/HysIcon/builtins/catalog/text-3.json.js +58 -0
- package/dist/components/HysIcon/builtins/catalog/text-4.json.js +41 -0
- package/dist/components/HysIcon/builtins/catalog/time.json.js +39 -0
- package/dist/components/HysIcon/builtins/catalog/transport-1.json.js +57 -0
- package/dist/components/HysIcon/builtins/catalog/transport-2.json.js +7 -0
- package/dist/components/HysIcon/builtins/catalog/weather.json.js +46 -0
- package/dist/components/HysIcon/builtins/communication.js +314 -0
- package/dist/components/HysIcon/builtins/documents.js +315 -0
- package/dist/components/HysIcon/builtins/extendedCatalog.js +75 -0
- package/dist/components/HysIcon/builtins/iconInCategory.js +11 -0
- package/dist/components/HysIcon/builtins/media.js +255 -0
- package/dist/components/HysIcon/builtins/navigation.js +276 -0
- package/dist/components/HysIcon/builtins/technology.js +189 -0
- package/dist/components/HysIcon/iconBuiltins.js +228 -0
- package/dist/components/HysIcon/iconConfig.js +30 -0
- package/dist/components/HysIcon/iconRegistry.js +183 -0
- package/dist/components/HysIcon/iconSafety.js +191 -0
- package/dist/components/HysIcon/iconStyle.js +70 -0
- package/dist/components/HysIcon/useIconResource.js +75 -0
- package/dist/components/HysPopconfirm/HysPopconfirm.vue.js +7 -0
- package/dist/components/HysPopconfirm/HysPopconfirm2.vue.js +346 -0
- package/dist/components/HysPopconfirm/usePopconfirmAction.js +32 -0
- package/dist/components/HysResult/HysResult.vue.js +7 -0
- package/dist/components/HysResult/HysResult2.vue.js +124 -0
- package/dist/components/HysSpace/HysSpace.vue.js +7 -0
- package/dist/components/HysSpace/HysSpace2.vue.js +79 -0
- package/dist/components/HysSpace/spaceItems.js +17 -0
- package/dist/components/HysSpin/HysSpin.vue.js +7 -0
- package/dist/components/HysSpin/HysSpin2.vue.js +427 -0
- package/dist/components/HysSpin/SpinGlyph/SpinGlyph.vue.js +334 -0
- package/dist/components/HysSpin/SpinGlyph/SpinGlyph2.vue.js +5 -0
- package/dist/components/HysSpin/SpinPortal/SpinPortal.vue.js +7 -0
- package/dist/components/HysSpin/SpinPortal/SpinPortal2.vue.js +66 -0
- package/dist/components/HysSpin/SpinPortal/spinTarget.js +57 -0
- package/dist/components/HysSpin/spinCatalog.js +35 -0
- package/dist/components/HysSpin/spinConfig.js +32 -0
- package/dist/components/HysSpin/spinService.js +160 -0
- package/dist/components/HysSpin/spinStyle.js +39 -0
- package/dist/components/HysSpin/useHysSpinTask.js +92 -0
- package/dist/components/HysSpin/useSpinFullscreen.js +60 -0
- package/dist/components/HysSpin/useSpinVisibility.js +59 -0
- package/dist/components/HysSplitPane/HysSplitPane.vue.js +285 -204
- package/dist/components/HysSplitPane/splitPaneResize.js +75 -0
- package/dist/components/HysTabPane/HysTabPane.vue.js +49 -0
- package/dist/components/HysTabPane/HysTabPane2.vue.js +4 -0
- package/dist/components/HysTable/HysTable.vue.js +3 -3
- package/dist/components/HysTable/HysTable2.vue.js +412 -383
- package/dist/components/HysTable/tableSearch.js +24 -0
- package/dist/components/HysTabs/HysTabs.vue.js +172 -5
- package/dist/components/HysTabs/HysTabs2.vue.js +2 -275
- package/dist/components/HysTabs/TabsMore/TabsMore.vue.js +7 -0
- package/dist/components/HysTabs/TabsMore/TabsMore2.vue.js +133 -0
- package/dist/components/HysTabs/TabsPanels/TabsPanels.vue.js +161 -0
- package/dist/components/HysTabs/TabsPanels/TabsPanels2.vue.js +4 -0
- package/dist/components/HysTabs/TabsPrompts/TabsPrompts.vue.js +4 -0
- package/dist/components/HysTabs/TabsPrompts/TabsPrompts2.vue.js +88 -0
- package/dist/components/HysTabs/TabsSlot/TabsSlot.js +13 -0
- package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.js +7 -0
- package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench2.vue.js +687 -0
- package/dist/components/HysTabs/tabsConfig.js +35 -0
- package/dist/components/HysTabs/tabsItems.js +79 -0
- package/dist/components/HysTabs/tabsPersistence.js +118 -0
- package/dist/components/HysTabs/useHysRouteTabs.js +77 -0
- package/dist/components/HysTabs/useTabsDragGhost.js +47 -0
- package/dist/components/HysTabs/useTabsNav.js +127 -0
- package/dist/components/HysTabs/useTabsOverlays.js +52 -0
- package/dist/components/HysTabs/useTabsPanels.js +101 -0
- package/dist/components/HysTabs/useTabsPointer.js +131 -0
- package/dist/components/HysTabs/useTabsState.js +263 -0
- package/dist/composables/formLayout.js +20 -42
- package/dist/composables/popupSurfaceStyle.js +30 -0
- package/dist/composables/useContainerWidth.js +24 -0
- package/dist/composables/useFloating.js +28 -28
- package/dist/composables/usePageVisibility.js +19 -0
- package/dist/composables/usePopupSurface.js +153 -162
- package/dist/composables/usePopupSurfaceInteractions.js +91 -90
- package/dist/composables/useSplitPaneDrag.js +29 -26
- package/dist/composables/useSvgInstanceId.js +15 -0
- package/dist/composables/useTable.js +321 -306
- package/dist/composables/useTabularRowNavigation.js +46 -0
- package/dist/index.js +229 -185
- package/dist/internal/MultiSplitPane.vue.js +246 -205
- package/dist/internal/PopupSurfacePanel.vue.js +2 -2
- package/dist/internal/PopupSurfacePanel2.vue.js +35 -30
- package/dist/style.css +1 -1
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +40 -2
- package/dist/types/components/HysDataGrid/gridColumnLayout.d.ts +22 -0
- package/dist/types/components/HysDataGrid/gridPresentation.d.ts +47 -0
- package/dist/types/components/HysDataGrid/useGridContextMenu.d.ts +14 -0
- package/dist/types/components/HysDescriptions/HysDescriptions.vue.d.ts +20 -0
- package/dist/types/components/HysDescriptions/descriptionsTypes.d.ts +54 -0
- package/dist/types/components/HysForm/HysForm.vue.d.ts +1 -1
- package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +1 -1
- package/dist/types/components/HysIcon/HysIcon.vue.d.ts +76 -0
- package/dist/types/components/HysIcon/IconGraphic/IconGraphic.vue.d.ts +43 -0
- package/dist/types/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.d.ts +17 -0
- package/dist/types/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.d.ts +10 -0
- package/dist/types/components/HysIcon/IconTooltip/IconTooltip.vue.d.ts +11 -0
- package/dist/types/components/HysIcon/builtins/access.d.ts +15 -0
- package/dist/types/components/HysIcon/builtins/actions.d.ts +30 -0
- package/dist/types/components/HysIcon/builtins/business.d.ts +31 -0
- package/dist/types/components/HysIcon/builtins/communication.d.ts +27 -0
- package/dist/types/components/HysIcon/builtins/documents.d.ts +29 -0
- package/dist/types/components/HysIcon/builtins/extendedCatalog.d.ts +2 -0
- package/dist/types/components/HysIcon/builtins/iconInCategory.d.ts +2 -0
- package/dist/types/components/HysIcon/builtins/media.d.ts +24 -0
- package/dist/types/components/HysIcon/builtins/navigation.d.ts +30 -0
- package/dist/types/components/HysIcon/builtins/technology.d.ts +18 -0
- package/dist/types/components/HysIcon/iconBuiltins.d.ts +2 -0
- package/dist/types/components/HysIcon/iconConfig.d.ts +10 -0
- package/dist/types/components/HysIcon/iconRegistry.d.ts +5 -0
- package/dist/types/components/HysIcon/iconSafety.d.ts +8 -0
- package/dist/types/components/HysIcon/iconStyle.d.ts +6 -0
- package/dist/types/components/HysIcon/iconTypes.d.ts +192 -0
- package/dist/types/components/HysIcon/useIconResource.d.ts +14 -0
- package/dist/types/components/HysPopconfirm/HysPopconfirm.vue.d.ts +85 -0
- package/dist/types/components/HysPopconfirm/popconfirmTypes.d.ts +72 -0
- package/dist/types/components/HysPopconfirm/usePopconfirmAction.d.ts +6 -0
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
- package/dist/types/components/HysResult/HysResult.vue.d.ts +22 -0
- package/dist/types/components/HysResult/resultTypes.d.ts +32 -0
- package/dist/types/components/HysSpace/HysSpace.vue.d.ts +15 -0
- package/dist/types/components/HysSpace/spaceItems.d.ts +9 -0
- package/dist/types/components/HysSpace/spaceTypes.d.ts +20 -0
- package/dist/types/components/HysSpin/HysSpin.vue.d.ts +84 -0
- package/dist/types/components/HysSpin/SpinGlyph/SpinGlyph.vue.d.ts +16 -0
- package/dist/types/components/HysSpin/SpinPortal/SpinPortal.vue.d.ts +21 -0
- package/dist/types/components/HysSpin/SpinPortal/spinTarget.d.ts +3 -0
- package/dist/types/components/HysSpin/spinCatalog.d.ts +122 -0
- package/dist/types/components/HysSpin/spinConfig.d.ts +10 -0
- package/dist/types/components/HysSpin/spinService.d.ts +7 -0
- package/dist/types/components/HysSpin/spinStyle.d.ts +5 -0
- package/dist/types/components/HysSpin/spinTypes.d.ts +133 -0
- package/dist/types/components/HysSpin/useHysSpinTask.d.ts +4 -0
- package/dist/types/components/HysSpin/useSpinFullscreen.d.ts +17 -0
- package/dist/types/components/HysSpin/useSpinVisibility.d.ts +10 -0
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +25 -2
- package/dist/types/components/HysSplitPane/splitPaneResize.d.ts +17 -0
- package/dist/types/components/HysTabPane/HysTabPane.vue.d.ts +11 -0
- package/dist/types/components/HysTable/HysTable.vue.d.ts +16 -10
- package/dist/types/components/HysTable/tableSearch.d.ts +2 -0
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +83 -74
- package/dist/types/components/HysTabs/TabsMore/TabsMore.vue.d.ts +14 -0
- package/dist/types/components/HysTabs/TabsPanels/TabsPanels.vue.d.ts +17 -0
- package/dist/types/components/HysTabs/TabsPrompts/TabsPrompts.vue.d.ts +7 -0
- package/dist/types/components/HysTabs/TabsSlot/TabsSlot.d.ts +9 -0
- package/dist/types/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.d.ts +32 -0
- package/dist/types/components/HysTabs/tabsConfig.d.ts +4 -0
- package/dist/types/components/HysTabs/tabsItems.d.ts +14 -0
- package/dist/types/components/HysTabs/tabsPersistence.d.ts +6 -0
- package/dist/types/components/HysTabs/tabsTypes.d.ts +236 -0
- package/dist/types/components/HysTabs/useHysRouteTabs.d.ts +22 -0
- package/dist/types/components/HysTabs/useTabsDragGhost.d.ts +22 -0
- package/dist/types/components/HysTabs/useTabsNav.d.ts +20 -0
- package/dist/types/components/HysTabs/useTabsOverlays.d.ts +54 -0
- package/dist/types/components/HysTabs/useTabsPanels.d.ts +14 -0
- package/dist/types/components/HysTabs/useTabsPointer.d.ts +30 -0
- package/dist/types/components/HysTabs/useTabsState.d.ts +32 -0
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +2 -2
- package/dist/types/components/HysToast/toastPresentation.d.ts +1 -1
- package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +2 -2
- package/dist/types/composables/dataGrid.d.ts +34 -0
- package/dist/types/composables/formLayout.d.ts +1 -2
- package/dist/types/composables/popupSurfaceStyle.d.ts +7 -0
- package/dist/types/composables/table.d.ts +10 -1
- package/dist/types/composables/toastQueue.d.ts +4 -4
- package/dist/types/composables/toastQueueModel.d.ts +2 -2
- package/dist/types/composables/useColorPicker.d.ts +1 -1
- package/dist/types/composables/useContainerWidth.d.ts +2 -0
- package/dist/types/composables/useContextMenu.d.ts +1 -1
- package/dist/types/composables/useFloating.d.ts +2 -2
- package/dist/types/composables/usePageVisibility.d.ts +1 -0
- package/dist/types/composables/usePopupSurface.d.ts +9 -3
- package/dist/types/composables/usePopupSurfaceInteractions.d.ts +4 -2
- package/dist/types/composables/useSplitPaneDrag.d.ts +2 -2
- package/dist/types/composables/useSvgInstanceId.d.ts +1 -0
- package/dist/types/composables/useTable.d.ts +2 -0
- package/dist/types/composables/useTabularRowNavigation.d.ts +18 -0
- package/dist/types/index.d.ts +30 -2
- package/dist/types/internal/MultiSplitPane.vue.d.ts +10 -1
- package/dist/types/internal/PopupSurfacePanel.vue.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,58 +1,62 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ChevronUp as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useHysRootAttrs as
|
|
10
|
-
import { useFloating as
|
|
11
|
-
import { useTable as
|
|
12
|
-
import { useTableSticky as
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
|
|
1
|
+
import { defineComponent as _l, useSlots as ea, ref as H, useId as ta, computed as g, shallowRef as et, watch as Z, onMounted as la, onActivated as aa, onUpdated as oa, onDeactivated as na, onBeforeUnmount as ia, openBlock as c, createElementBlock as y, mergeProps as L, unref as l, renderSlot as S, createCommentVNode as x, createElementVNode as B, toDisplayString as N, Fragment as A, renderList as le, createBlock as w, withCtx as O, createTextVNode as I, createVNode as q, normalizeStyle as Re, normalizeClass as Te, resolveDynamicComponent as ae, withModifiers as _, withKeys as $t, isRef as sa, withDirectives as ra, vShow as ua, Teleport as Et, normalizeProps as ca, guardReactiveProps as da, nextTick as Ne } from "vue";
|
|
2
|
+
import { ChevronUp as va, ChevronDown as Ht, ListFilter as ya, LoaderCircle as tt, ChevronRight as vl, RotateCw as fa } from "lucide-vue-next";
|
|
3
|
+
import yl from "../HysCheckbox/HysCheckbox.vue.js";
|
|
4
|
+
import ma from "../HysRadio/HysRadio.vue.js";
|
|
5
|
+
import fe from "../HysButton/HysButton.vue.js";
|
|
6
|
+
import pa from "../HysInput/HysInput.vue.js";
|
|
7
|
+
import fl from "../HysPagination/HysPagination.vue.js";
|
|
8
|
+
import ha from "./HysTableFilterOptions.vue.js";
|
|
9
|
+
import { useHysRootAttrs as ba } from "../../config.js";
|
|
10
|
+
import { useFloating as ml } from "../../composables/useFloating.js";
|
|
11
|
+
import { useTable as ga } from "../../composables/useTable.js";
|
|
12
|
+
import { useTableSticky as ka } from "../../composables/useTableSticky.js";
|
|
13
|
+
import { useTabularRowNavigation as wa } from "../../composables/useTabularRowNavigation.js";
|
|
14
|
+
import { tableColumns as Ca, tableBreakpoint as Sa, tableToken as xa, tableSummary as Ra, tableValue as Ke } from "../../composables/table.js";
|
|
15
|
+
import pl from "../../motion/PopupMotion.js";
|
|
16
|
+
const Ta = ["aria-busy"], Fa = {
|
|
16
17
|
key: 0,
|
|
17
18
|
class: "hys-ui-table-title"
|
|
18
|
-
},
|
|
19
|
+
}, za = {
|
|
19
20
|
key: 1,
|
|
20
21
|
class: "hys-ui-table-selection-actions"
|
|
21
|
-
},
|
|
22
|
+
}, Aa = { "aria-live": "polite" }, Ma = ["data-position"], Pa = { class: "hys-ui-table-viewport" }, Ba = ["tabindex", "aria-label"], Oa = { key: 0 }, $a = {
|
|
22
23
|
key: 1,
|
|
23
24
|
class: "hys-ui-table-sr-only"
|
|
24
|
-
},
|
|
25
|
+
}, Ea = {
|
|
25
26
|
key: 2,
|
|
26
27
|
class: "hys-ui-table-heading"
|
|
27
|
-
},
|
|
28
|
+
}, Ha = { class: "hys-ui-table-label" }, Na = ["disabled", "aria-describedby", "onPointerenter", "onFocus", "onClick"], Ka = { key: 1 }, Da = {
|
|
28
29
|
key: 2,
|
|
29
30
|
class: "hys-ui-table-sort-controls"
|
|
30
|
-
},
|
|
31
|
+
}, Wa = ["disabled", "aria-label", "aria-pressed", "onClick"], La = ["disabled", "aria-label", "aria-expanded", "aria-controls", "onClick"], qa = ["aria-label", "aria-valuenow", "aria-valuemin", "aria-valuemax", "onPointerdown", "onKeydown"], ja = {
|
|
31
32
|
key: 0,
|
|
32
33
|
class: "hys-ui-table-message"
|
|
33
|
-
},
|
|
34
|
+
}, Va = ["colspan"], Ia = {
|
|
35
|
+
class: "hys-ui-table-state hys-ui-table-loading-state",
|
|
36
|
+
role: "status"
|
|
37
|
+
}, Ua = ["disabled", "aria-expanded", "aria-label", "onClick"], Ja = {
|
|
34
38
|
key: 3,
|
|
35
39
|
class: "hys-ui-table-cell-content"
|
|
36
|
-
},
|
|
40
|
+
}, Xa = ["disabled", "aria-expanded", "aria-label", "onClick"], Qa = {
|
|
37
41
|
key: 1,
|
|
38
42
|
class: "hys-ui-table-tree-spacer"
|
|
39
|
-
},
|
|
43
|
+
}, Ya = ["tabindex", "title", "aria-describedby", "onPointerenter", "onFocus"], Ga = {
|
|
40
44
|
key: 0,
|
|
41
45
|
class: "hys-ui-table-detail"
|
|
42
|
-
},
|
|
46
|
+
}, Za = ["colspan"], _a = {
|
|
43
47
|
key: 0,
|
|
44
48
|
class: "hys-ui-table-message"
|
|
45
|
-
},
|
|
49
|
+
}, eo = ["colspan"], to = { class: "hys-ui-table-state" }, lo = {
|
|
46
50
|
key: 2,
|
|
47
51
|
class: "hys-ui-table-append"
|
|
48
|
-
},
|
|
52
|
+
}, ao = ["colspan"], oo = {
|
|
49
53
|
key: 0,
|
|
50
54
|
class: "hys-ui-table-loading-overlay",
|
|
51
55
|
role: "status"
|
|
52
|
-
},
|
|
56
|
+
}, no = ["aria-label"], io = {
|
|
53
57
|
key: 2,
|
|
54
58
|
class: "hys-ui-table-footer"
|
|
55
|
-
},
|
|
59
|
+
}, so = ["data-position"], ro = ["id", "aria-label"], uo = { class: "hys-ui-table-filter-actions" }, co = ["id", "data-effect"], Fo = /* @__PURE__ */ _l({
|
|
56
60
|
__name: "HysTable",
|
|
57
61
|
props: {
|
|
58
62
|
popupTransition: {},
|
|
@@ -106,6 +110,7 @@ const Sa = ["aria-busy"], xa = {
|
|
|
106
110
|
selectionColumn: {},
|
|
107
111
|
getSelectionProps: {},
|
|
108
112
|
highlightCurrentRow: { type: Boolean },
|
|
113
|
+
keyboardNavigation: { type: Boolean },
|
|
109
114
|
currentRowKey: {},
|
|
110
115
|
defaultCurrentRowKey: {},
|
|
111
116
|
showIndex: { type: Boolean },
|
|
@@ -118,6 +123,10 @@ const Sa = ["aria-busy"], xa = {
|
|
|
118
123
|
showSorterTooltip: { type: [Boolean, Object] },
|
|
119
124
|
filters: {},
|
|
120
125
|
defaultFilters: {},
|
|
126
|
+
search: {},
|
|
127
|
+
defaultSearch: {},
|
|
128
|
+
searchColumns: {},
|
|
129
|
+
searchMethod: {},
|
|
121
130
|
filterColumnKey: {},
|
|
122
131
|
filterPlacement: {},
|
|
123
132
|
appendFilterTo: { type: [String, Boolean] },
|
|
@@ -156,14 +165,14 @@ const Sa = ["aria-busy"], xa = {
|
|
|
156
165
|
columnWidths: {},
|
|
157
166
|
allowDragLastColumn: { type: Boolean, default: !0 }
|
|
158
167
|
},
|
|
159
|
-
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", "selectNone", "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"],
|
|
160
|
-
setup(s, { expose:
|
|
161
|
-
const r = s,
|
|
162
|
-
function
|
|
168
|
+
emits: ["rowClick", "rowDblclick", "rowContextmenu", "cellClick", "cellDblclick", "cellContextmenu", "cellMouseEnter", "cellMouseLeave", "headerClick", "headerContextmenu", "update:sort", "update:sorts", "sortChange", "update:filters", "update:search", "filterChange", "update:selectedRowKeys", "selectionChange", "select", "selectAll", "selectInvert", "selectNone", "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"],
|
|
169
|
+
setup(s, { expose: hl, emit: bl }) {
|
|
170
|
+
const r = s, M = bl, De = ba(), lt = ea(), ce = H(), j = H(), Nt = H(), Kt = H(), me = ta();
|
|
171
|
+
function Dt(e) {
|
|
163
172
|
const t = e && "$el" in e ? e.$el : e;
|
|
164
173
|
return (t == null ? void 0 : t.nodeType) === 1 ? t : void 0;
|
|
165
174
|
}
|
|
166
|
-
const
|
|
175
|
+
const de = g(() => Dt(Nt.value)), We = g(() => Dt(Kt.value)), Wt = H(1024), Y = et({}), at = H({}), pe = H(), m = g(() => ({
|
|
167
176
|
emptyText: "暂无数据",
|
|
168
177
|
loadingText: "加载中…",
|
|
169
178
|
selectAll: "选择当前页全部行",
|
|
@@ -212,7 +221,7 @@ const Sa = ["aria-busy"], xa = {
|
|
|
212
221
|
for (; n.has(t); ) t += "_";
|
|
213
222
|
return t;
|
|
214
223
|
}
|
|
215
|
-
const
|
|
224
|
+
const gl = g(() => {
|
|
216
225
|
var t;
|
|
217
226
|
const e = [];
|
|
218
227
|
return r.selectable && !ot("selection") && e.push({
|
|
@@ -243,24 +252,24 @@ const Sa = ["aria-busy"], xa = {
|
|
|
243
252
|
(n) => r.showExpandColumn || n.type !== "expand"
|
|
244
253
|
);
|
|
245
254
|
}), p = g(
|
|
246
|
-
() =>
|
|
247
|
-
|
|
248
|
-
|
|
255
|
+
() => Ca(
|
|
256
|
+
gl.value,
|
|
257
|
+
Sa(Wt.value),
|
|
249
258
|
r.showExpandColumn
|
|
250
259
|
)
|
|
251
|
-
), i =
|
|
260
|
+
), i = ga(
|
|
252
261
|
r,
|
|
253
262
|
() => p.value.leaves,
|
|
254
263
|
() => !!lt.expand,
|
|
255
|
-
(e, ...t) =>
|
|
264
|
+
(e, ...t) => M(e, ...t)
|
|
256
265
|
), {
|
|
257
266
|
busy: h,
|
|
258
|
-
display:
|
|
267
|
+
display: G,
|
|
259
268
|
selectedKeys: be,
|
|
260
269
|
selectedSet: it,
|
|
261
270
|
expandedKeys: st,
|
|
262
271
|
expandedSet: U,
|
|
263
|
-
halfSet:
|
|
272
|
+
halfSet: Lt,
|
|
264
273
|
allSelected: qt,
|
|
265
274
|
someSelected: rt,
|
|
266
275
|
sorts: ee,
|
|
@@ -268,17 +277,17 @@ const Sa = ["aria-busy"], xa = {
|
|
|
268
277
|
page: ct,
|
|
269
278
|
pageSize: dt,
|
|
270
279
|
pageCount: jt,
|
|
271
|
-
paginationTotal:
|
|
280
|
+
paginationTotal: kl,
|
|
272
281
|
currentKey: Vt,
|
|
273
282
|
pending: ge,
|
|
274
|
-
loadErrors:
|
|
283
|
+
loadErrors: wl,
|
|
275
284
|
query: vt
|
|
276
|
-
} = i,
|
|
285
|
+
} = i, Le = g(
|
|
277
286
|
() => {
|
|
278
287
|
var e;
|
|
279
288
|
return (e = p.value.leaves.find((t) => !t.type || t.type === "default")) == null ? void 0 : e.key;
|
|
280
289
|
}
|
|
281
|
-
),
|
|
290
|
+
), Cl = g(
|
|
282
291
|
() => p.value.leaves.some((e) => e.type === "expand")
|
|
283
292
|
), It = g(() => {
|
|
284
293
|
if (!r.pagination || i.pagination.value.hideOnSinglePage && jt.value <= 1)
|
|
@@ -297,7 +306,7 @@ const Sa = ["aria-busy"], xa = {
|
|
|
297
306
|
}), qe = g(() => ({
|
|
298
307
|
page: ct.value,
|
|
299
308
|
pageSize: dt.value,
|
|
300
|
-
total:
|
|
309
|
+
total: kl.value,
|
|
301
310
|
pageCount: jt.value,
|
|
302
311
|
showSizeChanger: i.pagination.value.showSizeChanger ?? !0,
|
|
303
312
|
showQuickJumper: i.pagination.value.showQuickJumper ?? !1,
|
|
@@ -331,25 +340,25 @@ const Sa = ["aria-busy"], xa = {
|
|
|
331
340
|
)
|
|
332
341
|
) : yt;
|
|
333
342
|
}
|
|
334
|
-
function
|
|
343
|
+
function Sl(e) {
|
|
335
344
|
var n, u, d;
|
|
336
345
|
if (!r.customHeaderCell && !e.column.customHeaderCell)
|
|
337
346
|
return yt;
|
|
338
347
|
const t = p.value.leaves.indexOf(e.leaves[0]);
|
|
339
|
-
return
|
|
348
|
+
return L(
|
|
340
349
|
ke((n = r.customHeaderCell) == null ? void 0 : n.call(r, e.column, t)),
|
|
341
350
|
ke((d = (u = e.column).customHeaderCell) == null ? void 0 : d.call(u, e.column, t))
|
|
342
351
|
);
|
|
343
352
|
}
|
|
344
|
-
function
|
|
353
|
+
function xl(e) {
|
|
345
354
|
var t, n, u;
|
|
346
|
-
return !r.customCell && !e.column.customCell ? yt :
|
|
355
|
+
return !r.customCell && !e.column.customCell ? yt : L(
|
|
347
356
|
ke((t = r.customCell) == null ? void 0 : t.call(r, e)),
|
|
348
357
|
ke((u = (n = e.column).customCell) == null ? void 0 : u.call(n, e))
|
|
349
358
|
);
|
|
350
359
|
}
|
|
351
360
|
let Fe = !1;
|
|
352
|
-
function
|
|
361
|
+
function Rl(e, t) {
|
|
353
362
|
const n = Fe;
|
|
354
363
|
Fe = !1, i.toggleRowSelection(e.key, t, n);
|
|
355
364
|
}
|
|
@@ -358,26 +367,26 @@ const Sa = ["aria-busy"], xa = {
|
|
|
358
367
|
), {
|
|
359
368
|
headerTop: Jt,
|
|
360
369
|
bar: we,
|
|
361
|
-
scrollbar:
|
|
362
|
-
syncScrollbar:
|
|
370
|
+
scrollbar: Tl,
|
|
371
|
+
syncScrollbar: Fl,
|
|
363
372
|
scrollViewport: Xt,
|
|
364
|
-
scrollbarHeight:
|
|
365
|
-
} =
|
|
373
|
+
scrollbarHeight: zl
|
|
374
|
+
} = ka(j, We, () => r.sticky), ft = g(() => r.columnWidths ?? at.value);
|
|
366
375
|
function ne(e) {
|
|
367
376
|
var n, u;
|
|
368
|
-
const t = ((n = pe.value) == null ? void 0 : n.key) === e.key ? pe.value.width : ((u =
|
|
377
|
+
const t = ((n = pe.value) == null ? void 0 : n.key) === e.key ? pe.value.width : ((u = ve.value) == null ? void 0 : u[e.key]) ?? ft.value[e.key] ?? (typeof e.width == "number" ? e.width : 160);
|
|
369
378
|
return Math.max(
|
|
370
379
|
e.minWidth ?? (e.type && e.type !== "default" ? 36 : 60),
|
|
371
380
|
Math.min(e.maxWidth ?? 2e3, Number.isFinite(t) ? t : 160)
|
|
372
381
|
);
|
|
373
382
|
}
|
|
374
|
-
function
|
|
383
|
+
function Al(e) {
|
|
375
384
|
var t;
|
|
376
|
-
return
|
|
385
|
+
return ve.value !== void 0 || ((t = pe.value) == null ? void 0 : t.key) === e.key || ft.value[e.key] !== void 0 || typeof e.width != "string" ? ne(e) + "px" : e.width;
|
|
377
386
|
}
|
|
378
|
-
const
|
|
387
|
+
const ve = H(), je = H(!1), mt = g(
|
|
379
388
|
() => p.value.leaves.reduce((e, t) => e + ne(t), 0)
|
|
380
|
-
),
|
|
389
|
+
), Ml = g(() => {
|
|
381
390
|
const e = {};
|
|
382
391
|
let t = 0, n = 0;
|
|
383
392
|
for (const u of p.value.leaves)
|
|
@@ -389,7 +398,7 @@ const Sa = ["aria-busy"], xa = {
|
|
|
389
398
|
function pt(e, t = !1) {
|
|
390
399
|
return e.fixed === "left" || e.fixed === "right" ? {
|
|
391
400
|
position: "sticky",
|
|
392
|
-
...
|
|
401
|
+
...Ml.value[e.key],
|
|
393
402
|
zIndex: t ? 6 : 2
|
|
394
403
|
} : {};
|
|
395
404
|
}
|
|
@@ -402,15 +411,15 @@ const Sa = ["aria-busy"], xa = {
|
|
|
402
411
|
"--hys-ui-table-justify": (t.headerAlign ?? t.align) === "right" ? "flex-end" : (t.headerAlign ?? t.align) === "center" ? "center" : "flex-start"
|
|
403
412
|
};
|
|
404
413
|
}
|
|
405
|
-
const ze = (e) => typeof e == "number" ? Number.isFinite(e) && e >= 0 ? e + "px" : void 0 : e,
|
|
414
|
+
const ze = (e) => typeof e == "number" ? Number.isFinite(e) && e >= 0 ? e + "px" : void 0 : e, Bl = g(() => {
|
|
406
415
|
const e = ze(r.scrollWidth), t = mt.value + "px";
|
|
407
416
|
return e && e !== "max-content" ? `max(${t}, ${e})` : t;
|
|
408
|
-
}),
|
|
409
|
-
|
|
417
|
+
}), Ol = g(() => je.value || ve.value || Object.keys(r.columnWidths ?? {}).length ? mt.value + "px" : r.scrollWidth === "max-content" ? "max-content" : r.fit ? "100%" : mt.value + "px"), ht = H(/* @__PURE__ */ new Set());
|
|
418
|
+
Z(
|
|
410
419
|
st,
|
|
411
420
|
() => {
|
|
412
421
|
const e = new Set(ht.value);
|
|
413
|
-
for (const t of st.value) e.add(
|
|
422
|
+
for (const t of st.value) e.add(xa(t));
|
|
414
423
|
for (const t of e)
|
|
415
424
|
i.graph.value.map.has(t) || e.delete(t);
|
|
416
425
|
ht.value = e;
|
|
@@ -424,12 +433,12 @@ const Sa = ["aria-busy"], xa = {
|
|
|
424
433
|
return {
|
|
425
434
|
row: e,
|
|
426
435
|
column: t,
|
|
427
|
-
value:
|
|
436
|
+
value: Ke(e, t.dataIndex ?? t.key),
|
|
428
437
|
rowIndex: n,
|
|
429
438
|
columnIndex: u
|
|
430
439
|
};
|
|
431
440
|
}
|
|
432
|
-
function
|
|
441
|
+
function $l(e) {
|
|
433
442
|
return {
|
|
434
443
|
...typeof r.cellStyle == "function" ? r.cellStyle(e) : r.cellStyle,
|
|
435
444
|
...typeof e.column.cellStyle == "function" ? e.column.cellStyle(e) : e.column.cellStyle,
|
|
@@ -438,7 +447,7 @@ const Sa = ["aria-busy"], xa = {
|
|
|
438
447
|
"--hys-ui-table-justify": e.column.align === "right" ? "flex-end" : e.column.align === "center" ? "center" : "flex-start"
|
|
439
448
|
};
|
|
440
449
|
}
|
|
441
|
-
function
|
|
450
|
+
function El(e) {
|
|
442
451
|
return [
|
|
443
452
|
e.column.className,
|
|
444
453
|
typeof r.cellClassName == "function" ? r.cellClassName(e) : r.cellClassName
|
|
@@ -453,57 +462,57 @@ const Sa = ["aria-busy"], xa = {
|
|
|
453
462
|
return String(e);
|
|
454
463
|
}
|
|
455
464
|
}
|
|
456
|
-
function
|
|
465
|
+
function Hl(e) {
|
|
457
466
|
const t = e.column.formatter ? e.column.formatter(e.row, e.column, e.value, e.rowIndex) : Ve(e.value);
|
|
458
467
|
return r.transformCellText ? r.transformCellText({ ...e, text: t }) : t;
|
|
459
468
|
}
|
|
460
|
-
function
|
|
461
|
-
h.value || (
|
|
469
|
+
function Nl(e, t, n) {
|
|
470
|
+
h.value || (M("rowClick", e.row, t, n), r.highlightCurrentRow && i.setCurrentRow(e.key), r.expandOnClickRow && !n.target.closest(
|
|
462
471
|
"button,input,a,textarea,select,[contenteditable]"
|
|
463
472
|
) && i.toggleRowExpansion(e.key));
|
|
464
473
|
}
|
|
465
474
|
const Kl = g(() => {
|
|
466
475
|
var u;
|
|
467
476
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), n = p.value.leaves;
|
|
468
|
-
for (let d = 0; d <
|
|
477
|
+
for (let d = 0; d < G.value.length; d++)
|
|
469
478
|
for (let f = 0; f < n.length; f++) {
|
|
470
479
|
const F = d + ":" + f, b = n[f];
|
|
471
480
|
if (t.has(F)) {
|
|
472
481
|
e.set(F, { rowspan: 0, colspan: 0 });
|
|
473
482
|
continue;
|
|
474
483
|
}
|
|
475
|
-
const o = b.type && b.type !== "default" || (u = r.spanMethod) == null ? void 0 : u.call(r, J(
|
|
476
|
-
let
|
|
484
|
+
const o = b.type && b.type !== "default" || (u = r.spanMethod) == null ? void 0 : u.call(r, J(G.value[d].row, b, d, f)), v = Array.isArray(o) ? { rowspan: o[0], colspan: o[1] } : o;
|
|
485
|
+
let E = Math.max(
|
|
477
486
|
0,
|
|
478
|
-
Math.min(
|
|
479
|
-
),
|
|
487
|
+
Math.min(G.value.length - d, Math.floor((v == null ? void 0 : v.rowspan) ?? 1))
|
|
488
|
+
), P = Math.max(
|
|
480
489
|
0,
|
|
481
490
|
Math.min(n.length - f, Math.floor((v == null ? void 0 : v.colspan) ?? 1))
|
|
482
491
|
);
|
|
483
|
-
Number.isFinite(
|
|
484
|
-
for (let C = 0; C <
|
|
485
|
-
if (Qt(
|
|
486
|
-
|
|
492
|
+
Number.isFinite(E) || (E = 1), Number.isFinite(P) || (P = 1);
|
|
493
|
+
for (let C = 0; C < E - 1; C++)
|
|
494
|
+
if (Qt(G.value[d + C]) && U.value.has(G.value[d + C].token)) {
|
|
495
|
+
E = C + 1;
|
|
487
496
|
break;
|
|
488
497
|
}
|
|
489
|
-
for (let C = 1; C <
|
|
498
|
+
for (let C = 1; C < P; C++)
|
|
490
499
|
if (n[f + C].fixed !== b.fixed || n[f + C].type && n[f + C].type !== "default") {
|
|
491
|
-
|
|
500
|
+
P = C;
|
|
492
501
|
break;
|
|
493
502
|
}
|
|
494
|
-
e.set(F, { rowspan:
|
|
495
|
-
for (let C = 0; C <
|
|
496
|
-
for (let a = 0; a <
|
|
503
|
+
e.set(F, { rowspan: E, colspan: P });
|
|
504
|
+
for (let C = 0; C < E; C++)
|
|
505
|
+
for (let a = 0; a < P; a++)
|
|
497
506
|
(C || a) && t.add(d + C + ":" + (f + a));
|
|
498
507
|
}
|
|
499
508
|
return e;
|
|
500
|
-
}), Ie = (e, t) => Kl.value.get(e + ":" + t) ?? { rowspan: 1, colspan: 1 }, bt = g(() =>
|
|
509
|
+
}), Ie = (e, t) => Kl.value.get(e + ":" + t) ?? { rowspan: 1, colspan: 1 }, bt = g(() => G.value.map((e) => e.row)), gt = g(
|
|
501
510
|
() => r.summaryScope === "page" ? bt.value : i.filteredRows.value
|
|
502
511
|
), kt = g(() => {
|
|
503
512
|
var n;
|
|
504
513
|
const e = gt.value, t = (n = r.summaryMethod) == null ? void 0 : n.call(r, { columns: p.value.leaves, rows: e });
|
|
505
514
|
return p.value.leaves.map(
|
|
506
|
-
(u, d) => t ? Array.isArray(t) ? t[d] : t[u.key] : u.summary ?
|
|
515
|
+
(u, d) => t ? Array.isArray(t) ? t[d] : t[u.key] : u.summary ? Ra(e, u) : u.key === Le.value ? r.sumText : ""
|
|
507
516
|
);
|
|
508
517
|
});
|
|
509
518
|
function Yt(e) {
|
|
@@ -512,7 +521,7 @@ const Sa = ["aria-busy"], xa = {
|
|
|
512
521
|
style: { ...pt(e), textAlign: e.align }
|
|
513
522
|
};
|
|
514
523
|
}
|
|
515
|
-
const Ae =
|
|
524
|
+
const Ae = H(), wt = H(), k = et(), ie = H([]), Ct = H(null), ye = g(() => {
|
|
516
525
|
if (r.filterColumnKey !== void 0) return r.filterColumnKey;
|
|
517
526
|
const e = p.value.leaves, t = e.find((n) => Ue(n) && n.filterDropdownOpen === !0);
|
|
518
527
|
return t ? t.key : e.some((n) => n.key === Ct.value && n.filterDropdownOpen === !1) ? null : Ct.value;
|
|
@@ -530,10 +539,10 @@ const Sa = ["aria-busy"], xa = {
|
|
|
530
539
|
const n = p.value.leaves, u = n.find((v) => v.key === e && Ue(v));
|
|
531
540
|
if (e !== null && (h.value || !i.live.value || !u))
|
|
532
541
|
return !1;
|
|
533
|
-
const d =
|
|
534
|
-
return xt = t, Ct.value = e, e !== d && ((F = (f = n.find((v) => v.key === d)) == null ? void 0 : f.onFilterDropdownOpenChange) == null || F.call(f, !1), (b = u == null ? void 0 : u.onFilterDropdownOpenChange) == null || b.call(u, !0)),
|
|
542
|
+
const d = ye.value;
|
|
543
|
+
return xt = t, Ct.value = e, e !== d && ((F = (f = n.find((v) => v.key === d)) == null ? void 0 : f.onFilterDropdownOpenChange) == null || F.call(f, !1), (b = u == null ? void 0 : u.onFilterDropdownOpenChange) == null || b.call(u, !0)), M("update:filterColumnKey", e), ye.value === e && Xe(), await Ne(), ye.value === e && Xe(), await Ne(), i.live.value && ye.value === e && (e === null ? !X.value : X.value && ((o = k.value) == null ? void 0 : o.key) === e);
|
|
535
544
|
}
|
|
536
|
-
const
|
|
545
|
+
const D = ml(Ae, wt, {
|
|
537
546
|
placement: () => {
|
|
538
547
|
var e;
|
|
539
548
|
return ((e = k.value) == null ? void 0 : e.filterPlacement) ?? r.filterPlacement ?? "bottom-end";
|
|
@@ -546,7 +555,7 @@ const Sa = ["aria-busy"], xa = {
|
|
|
546
555
|
t
|
|
547
556
|
), !1;
|
|
548
557
|
}
|
|
549
|
-
}), X =
|
|
558
|
+
}), X = D.open, Dl = D.style, Gt = g(
|
|
550
559
|
() => {
|
|
551
560
|
var e;
|
|
552
561
|
return r.appendFilterTo ?? (Ae.value && ((e = r.getPopupContainer) == null ? void 0 : e.call(r, Ae.value))) ?? "body";
|
|
@@ -554,49 +563,49 @@ const Sa = ["aria-busy"], xa = {
|
|
|
554
563
|
);
|
|
555
564
|
function Xe() {
|
|
556
565
|
var d, f, F;
|
|
557
|
-
const e =
|
|
566
|
+
const e = ye.value, t = p.value.leaves.find(
|
|
558
567
|
(b) => b.key === e && Ue(b)
|
|
559
568
|
);
|
|
560
569
|
if (h.value || !i.live.value || !t) {
|
|
561
|
-
|
|
570
|
+
D.close(xt, !0), xt = !1;
|
|
562
571
|
return;
|
|
563
572
|
}
|
|
564
573
|
const n = (f = Array.from(
|
|
565
|
-
((d =
|
|
574
|
+
((d = We.value) == null ? void 0 : d.querySelectorAll("th[data-column-key]")) ?? []
|
|
566
575
|
).find((b) => b.dataset.columnKey === e)) == null ? void 0 : f.querySelector(".hys-ui-table-filter");
|
|
567
576
|
if (!n) {
|
|
568
|
-
|
|
577
|
+
D.close(!1, !0);
|
|
569
578
|
return;
|
|
570
579
|
}
|
|
571
580
|
const u = ((F = k.value) == null ? void 0 : F.key) !== e || !X.value;
|
|
572
|
-
Ae.value = n, k.value = t, u && (ie.value = [...ut.value[t.key] ?? []]),
|
|
581
|
+
Ae.value = n, k.value = t, u && (ie.value = [...ut.value[t.key] ?? []]), D.show(!0), Ne(() => {
|
|
573
582
|
var b, o;
|
|
574
|
-
u && X.value &&
|
|
583
|
+
u && X.value && ye.value === e && ((o = (b = wt.value) == null ? void 0 : b.querySelector('input,button,[tabindex="0"]')) == null || o.focus());
|
|
575
584
|
});
|
|
576
585
|
}
|
|
577
|
-
|
|
586
|
+
Z(
|
|
578
587
|
[
|
|
579
|
-
|
|
588
|
+
ye,
|
|
580
589
|
h,
|
|
581
590
|
i.live,
|
|
582
591
|
() => p.value.leaves,
|
|
583
592
|
() => r.showHeader,
|
|
584
|
-
|
|
593
|
+
We
|
|
585
594
|
],
|
|
586
595
|
Xe,
|
|
587
596
|
{ immediate: !0, flush: "post" }
|
|
588
|
-
),
|
|
597
|
+
), Z(
|
|
589
598
|
() => {
|
|
590
599
|
var e;
|
|
591
600
|
return X.value ? ((e = k.value) == null ? void 0 : e.key) ?? null : null;
|
|
592
601
|
},
|
|
593
|
-
(e) =>
|
|
602
|
+
(e) => M("filterOpenChange", e)
|
|
594
603
|
);
|
|
595
604
|
async function Wl(e, t) {
|
|
596
605
|
var n;
|
|
597
606
|
if (!h.value) {
|
|
598
607
|
if (X.value && ((n = k.value) == null ? void 0 : n.key) === e.key) {
|
|
599
|
-
|
|
608
|
+
D.close();
|
|
600
609
|
return;
|
|
601
610
|
}
|
|
602
611
|
Ae.value = t.currentTarget, await Je(e.key);
|
|
@@ -605,8 +614,8 @@ const Sa = ["aria-busy"], xa = {
|
|
|
605
614
|
function Rt(e) {
|
|
606
615
|
ie.value = [...e];
|
|
607
616
|
}
|
|
608
|
-
function
|
|
609
|
-
k.value && i.setFilter(k.value.key, ie.value), (e == null ? void 0 : e.closeDropdown) !== !1 &&
|
|
617
|
+
function Me(e) {
|
|
618
|
+
k.value && i.setFilter(k.value.key, ie.value), (e == null ? void 0 : e.closeDropdown) !== !1 && D.close(!0);
|
|
610
619
|
}
|
|
611
620
|
function Tt(e) {
|
|
612
621
|
var u;
|
|
@@ -615,17 +624,17 @@ const Sa = ["aria-busy"], xa = {
|
|
|
615
624
|
...((u = r.defaultFilters) == null ? void 0 : u[t.key]) ?? t.defaultFilterValue ?? []
|
|
616
625
|
] : [];
|
|
617
626
|
const n = e;
|
|
618
|
-
(n == null ? void 0 : n.confirm) !== !1 ?
|
|
627
|
+
(n == null ? void 0 : n.confirm) !== !1 ? Me(e) : (n == null ? void 0 : n.closeDropdown) === !0 && D.close(!0);
|
|
619
628
|
}
|
|
620
629
|
const Zt = g(() => k.value && {
|
|
621
630
|
column: k.value,
|
|
622
631
|
open: X.value,
|
|
623
632
|
values: ie.value,
|
|
624
633
|
setValues: Rt,
|
|
625
|
-
confirm:
|
|
634
|
+
confirm: Me,
|
|
626
635
|
clear: Tt,
|
|
627
|
-
close: () =>
|
|
628
|
-
}), Ce =
|
|
636
|
+
close: () => D.close(!0)
|
|
637
|
+
}), Ce = H(), _t = H(), Q = et(), re = et();
|
|
629
638
|
function Qe(e) {
|
|
630
639
|
return e.showOverflowTooltip ?? r.showOverflowTooltip;
|
|
631
640
|
}
|
|
@@ -644,27 +653,27 @@ const Sa = ["aria-busy"], xa = {
|
|
|
644
653
|
var e;
|
|
645
654
|
return (Ce.value && ((e = r.getPopupContainer) == null ? void 0 : e.call(r, Ce.value))) ?? "body";
|
|
646
655
|
}
|
|
647
|
-
),
|
|
656
|
+
), $ = ml(Ce, _t, {
|
|
648
657
|
placement: () => ue.value.placement ?? "top-start",
|
|
649
658
|
get gap() {
|
|
650
659
|
return ue.value.offset;
|
|
651
660
|
}
|
|
652
|
-
}), Ye =
|
|
661
|
+
}), Ye = $.open, ql = $.style;
|
|
653
662
|
let Ge;
|
|
654
663
|
function Ft() {
|
|
655
664
|
clearTimeout(Ge);
|
|
656
665
|
}
|
|
657
|
-
function
|
|
666
|
+
function Pe() {
|
|
658
667
|
if (clearTimeout(Ge), !Ye.value) return;
|
|
659
668
|
const e = ue.value.hideDelay ?? 80;
|
|
660
|
-
Ge = setTimeout(() =>
|
|
669
|
+
Ge = setTimeout(() => $.close(), Number.isFinite(e) ? Math.max(0, e) : 80);
|
|
661
670
|
}
|
|
662
671
|
function tl(e, t) {
|
|
663
672
|
const n = t.currentTarget;
|
|
664
|
-
h.value ||
|
|
673
|
+
h.value || $.restoringFocus.value || !Qe(e.column) || n.scrollWidth <= n.clientWidth + 1 && n.scrollHeight <= n.clientHeight + 1 || (Ft(), Ce.value = n, re.value = void 0, Q.value = e, $.show());
|
|
665
674
|
}
|
|
666
675
|
function ll(e, t) {
|
|
667
|
-
h.value || !Ll(e) ||
|
|
676
|
+
h.value || !Ll(e) || $.restoringFocus.value || (Ft(), Ce.value = t.currentTarget, Q.value = void 0, re.value = e, $.show());
|
|
668
677
|
}
|
|
669
678
|
const al = g(() => {
|
|
670
679
|
var n, u, d;
|
|
@@ -677,8 +686,8 @@ const Sa = ["aria-busy"], xa = {
|
|
|
677
686
|
return t ? ((n = t.column.tooltipFormatter ?? r.tooltipFormatter) == null ? void 0 : n(t)) ?? (((d = (u = Ce.value) == null ? void 0 : u.textContent) == null ? void 0 : d.trim()) || Ve(t.value)) : "";
|
|
678
687
|
}), zt = g(
|
|
679
688
|
() => Array.isArray(r.selectionActions) ? r.selectionActions : void 0
|
|
680
|
-
),
|
|
681
|
-
function
|
|
689
|
+
), jl = g(() => i.selectionPage.value.map(({ row: e }) => e)), Vl = g(() => i.selectionPage.value.map(({ key: e }) => e));
|
|
690
|
+
function Il(e) {
|
|
682
691
|
if (h.value || !i.live.value || e.disabled) return;
|
|
683
692
|
const t = i.selectionPage.value;
|
|
684
693
|
return e.select({
|
|
@@ -688,17 +697,17 @@ const Sa = ["aria-busy"], xa = {
|
|
|
688
697
|
setSelected: (n) => i.selectPage(n, t)
|
|
689
698
|
});
|
|
690
699
|
}
|
|
691
|
-
let se, At = 0, T,
|
|
700
|
+
let se, At = 0, T, Mt = 0, Pt = 0;
|
|
692
701
|
function ol() {
|
|
693
702
|
var n, u;
|
|
694
703
|
if (!i.live.value || !ce.value) return;
|
|
695
|
-
|
|
696
|
-
const e = {}, t = (n =
|
|
704
|
+
Wt.value = ce.value.clientWidth;
|
|
705
|
+
const e = {}, t = (n = de.value) == null ? void 0 : n.querySelector(
|
|
697
706
|
"tbody tr:not(.hys-ui-table-message):not(.hys-ui-table-detail)"
|
|
698
707
|
);
|
|
699
708
|
for (const d of p.value.leaves) {
|
|
700
709
|
const f = Array.from(
|
|
701
|
-
((u =
|
|
710
|
+
((u = de.value) == null ? void 0 : u.querySelectorAll("th[data-leaf]")) ?? []
|
|
702
711
|
).find((b) => b.dataset.columnKey === d.key), F = f ?? Array.from(
|
|
703
712
|
(t == null ? void 0 : t.querySelectorAll(
|
|
704
713
|
"td[data-column-key],th[data-column-key]"
|
|
@@ -711,12 +720,12 @@ const Sa = ["aria-busy"], xa = {
|
|
|
711
720
|
function Se() {
|
|
712
721
|
cancelAnimationFrame(At), At = requestAnimationFrame(ol);
|
|
713
722
|
}
|
|
714
|
-
async function
|
|
715
|
-
await
|
|
723
|
+
async function Ul() {
|
|
724
|
+
await Ne(), ol();
|
|
716
725
|
}
|
|
717
726
|
function te() {
|
|
718
727
|
var e, t;
|
|
719
|
-
cancelAnimationFrame(
|
|
728
|
+
cancelAnimationFrame(Mt), T && ((t = (e = j.value) == null ? void 0 : e.hasPointerCapture) != null && t.call(e, T.pointerId)) && j.value.releasePointerCapture(T.pointerId), T = void 0, pe.value = void 0, ve.value = void 0, document.removeEventListener("pointermove", sl, !0), document.removeEventListener("pointerup", ul, !0), document.removeEventListener("pointercancel", Ze, !0), document.removeEventListener("keydown", nl, !0), window.removeEventListener("blur", Ze);
|
|
720
729
|
}
|
|
721
730
|
function Ze() {
|
|
722
731
|
te();
|
|
@@ -733,13 +742,13 @@ const Sa = ["aria-busy"], xa = {
|
|
|
733
742
|
T.column.minWidth ?? 60,
|
|
734
743
|
Math.min(
|
|
735
744
|
T.column.maxWidth ?? 2e3,
|
|
736
|
-
T.width + (
|
|
745
|
+
T.width + (Pt - T.start) * e
|
|
737
746
|
)
|
|
738
747
|
)
|
|
739
748
|
};
|
|
740
749
|
}
|
|
741
750
|
function sl(e) {
|
|
742
|
-
!T || e.pointerId !== T.pointerId || (
|
|
751
|
+
!T || e.pointerId !== T.pointerId || (Pt = e.clientX, cancelAnimationFrame(Mt), Mt = requestAnimationFrame(il));
|
|
743
752
|
}
|
|
744
753
|
function rl(e, t, n, u) {
|
|
745
754
|
if (h.value || !i.live.value) return;
|
|
@@ -753,118 +762,127 @@ const Sa = ["aria-busy"], xa = {
|
|
|
753
762
|
...u,
|
|
754
763
|
[e.key]: d
|
|
755
764
|
};
|
|
756
|
-
at.value = f,
|
|
765
|
+
at.value = f, M("update:columnWidths", f), r.columnWidths === void 0 && (je.value = !0), M("columnResize", e, d, n), Se();
|
|
757
766
|
}
|
|
758
767
|
function ul(e) {
|
|
759
768
|
var f;
|
|
760
769
|
if (!T || e.pointerId !== T.pointerId) return;
|
|
761
|
-
|
|
762
|
-
const { column: t, width: n } = T, u = ((f = pe.value) == null ? void 0 : f.width) ?? n, d =
|
|
770
|
+
Pt = e.clientX, il();
|
|
771
|
+
const { column: t, width: n } = T, u = ((f = pe.value) == null ? void 0 : f.width) ?? n, d = ve.value;
|
|
763
772
|
te(), rl(t, u, n, d);
|
|
764
773
|
}
|
|
765
|
-
function
|
|
774
|
+
function Jl(e, t) {
|
|
766
775
|
var u, d;
|
|
767
776
|
if (h.value || t.button !== 0 || !i.live.value) return;
|
|
768
|
-
|
|
777
|
+
D.close(), $.close(), te();
|
|
769
778
|
const n = Y.value[e.key] ?? ne(e);
|
|
770
|
-
|
|
779
|
+
ve.value = { ...Y.value }, T = {
|
|
771
780
|
column: e,
|
|
772
781
|
start: t.clientX,
|
|
773
782
|
width: n,
|
|
774
783
|
pointerId: t.pointerId
|
|
775
|
-
}, (d = (u =
|
|
784
|
+
}, (d = (u = j.value) == null ? void 0 : u.setPointerCapture) == null || d.call(u, t.pointerId), document.addEventListener("pointermove", sl, !0), document.addEventListener("pointerup", ul, !0), document.addEventListener("pointercancel", Ze, !0), document.addEventListener("keydown", nl, !0), window.addEventListener("blur", Ze);
|
|
776
785
|
}
|
|
777
|
-
function
|
|
778
|
-
h.value || (te(), at.value = {}, je.value = !1,
|
|
786
|
+
function Xl() {
|
|
787
|
+
h.value || (te(), at.value = {}, je.value = !1, M("update:columnWidths", {}), Se());
|
|
779
788
|
}
|
|
780
789
|
function Bt(e, t) {
|
|
781
790
|
const n = p.value.leaves.find((u) => u.key === e);
|
|
782
791
|
n && Number.isFinite(t) && rl(n, t, Y.value[e] ?? ne(n));
|
|
783
792
|
}
|
|
784
|
-
function
|
|
785
|
-
|
|
793
|
+
function Ql(e) {
|
|
794
|
+
j.value && (Fl(), $.close(), M(
|
|
786
795
|
"scroll",
|
|
787
796
|
{
|
|
788
|
-
scrollLeft:
|
|
789
|
-
scrollTop:
|
|
797
|
+
scrollLeft: j.value.scrollLeft,
|
|
798
|
+
scrollTop: j.value.scrollTop
|
|
790
799
|
},
|
|
791
800
|
e
|
|
792
801
|
));
|
|
793
802
|
}
|
|
794
803
|
function Ot() {
|
|
795
|
-
se == null || se.disconnect(), typeof ResizeObserver < "u" && (se = new ResizeObserver(Se), ce.value && se.observe(ce.value),
|
|
804
|
+
se == null || se.disconnect(), typeof ResizeObserver < "u" && (se = new ResizeObserver(Se), ce.value && se.observe(ce.value), de.value && se.observe(de.value)), Se();
|
|
796
805
|
}
|
|
797
806
|
function cl() {
|
|
798
|
-
se == null || se.disconnect(), cancelAnimationFrame(At), te(), clearTimeout(Ge),
|
|
807
|
+
se == null || se.disconnect(), cancelAnimationFrame(At), te(), clearTimeout(Ge), D.close(), $.close();
|
|
799
808
|
}
|
|
800
|
-
|
|
801
|
-
e && (te(),
|
|
802
|
-
}),
|
|
809
|
+
Z(h, (e) => {
|
|
810
|
+
e && (te(), D.close(), $.close());
|
|
811
|
+
}), Z(
|
|
803
812
|
() => r.columnWidths,
|
|
804
813
|
() => {
|
|
805
814
|
T && te(), Se();
|
|
806
815
|
},
|
|
807
816
|
{ deep: !0 }
|
|
808
|
-
),
|
|
817
|
+
), Z(
|
|
809
818
|
() => p.value.leaves.map((e) => e.key).join("\0"),
|
|
810
819
|
() => {
|
|
811
820
|
Q.value && !p.value.leaves.some((e) => {
|
|
812
821
|
var t;
|
|
813
822
|
return e.key === ((t = Q.value) == null ? void 0 : t.column.key);
|
|
814
|
-
}) &&
|
|
823
|
+
}) && $.close(), T && !p.value.leaves.some((e) => e.key === (T == null ? void 0 : T.column.key)) && te();
|
|
815
824
|
}
|
|
816
|
-
),
|
|
825
|
+
), Z(
|
|
817
826
|
() => r.columns,
|
|
818
827
|
() => {
|
|
819
|
-
te(),
|
|
828
|
+
te(), $.close();
|
|
820
829
|
},
|
|
821
830
|
{ deep: !0 }
|
|
822
|
-
), G
|
|
823
|
-
Q.value &&
|
|
824
|
-
}),
|
|
831
|
+
), Z(G, () => {
|
|
832
|
+
Q.value && $.close();
|
|
833
|
+
}), Z([() => r.showOverflowTooltip, () => r.showSorterTooltip], () => $.close(), { deep: !0 }), la(() => {
|
|
825
834
|
Ot(), Xe();
|
|
826
|
-
}),
|
|
835
|
+
}), aa(Ot), Z(de, () => {
|
|
827
836
|
i.live.value && Ot();
|
|
828
|
-
}, { flush: "post" }),
|
|
837
|
+
}, { flush: "post" }), oa(Se), na(cl), ia(cl), Z(
|
|
829
838
|
[ee, ut, ct, dt],
|
|
830
839
|
() => {
|
|
831
|
-
r.scrollToFirstRowOnChange &&
|
|
840
|
+
r.scrollToFirstRowOnChange && j.value && (j.value.scrollTop = 0);
|
|
832
841
|
},
|
|
833
842
|
{ flush: "post" }
|
|
834
843
|
);
|
|
835
844
|
function _e(e) {
|
|
836
|
-
const t =
|
|
845
|
+
const t = j.value;
|
|
837
846
|
!i.live.value || !t || (typeof t.scrollTo == "function" ? t.scrollTo(e) : (e.top !== void 0 && (t.scrollTop = e.top), e.left !== void 0 && (t.scrollLeft = e.left)));
|
|
838
847
|
}
|
|
839
|
-
async function
|
|
848
|
+
async function Yl(e, t = {}) {
|
|
840
849
|
var C, a;
|
|
841
|
-
await
|
|
842
|
-
const n = i.find(e), u =
|
|
850
|
+
await Ne();
|
|
851
|
+
const n = i.find(e), u = j.value;
|
|
843
852
|
if (!i.live.value || !u || !n || r.loading) return !1;
|
|
844
|
-
const d =
|
|
845
|
-
((C =
|
|
853
|
+
const d = G.value.findIndex((z) => z.token === n.token), f = Array.from(
|
|
854
|
+
((C = de.value) == null ? void 0 : C.querySelectorAll("tbody tr[data-row-key]")) ?? []
|
|
846
855
|
)[d];
|
|
847
856
|
if (d < 0 || !f) return !1;
|
|
848
|
-
const F = u.getBoundingClientRect(), b = f.getBoundingClientRect(), o = Ut.value ? (((a =
|
|
849
|
-
let
|
|
850
|
-
if (t.block === "center")
|
|
851
|
-
else if (t.block === "end")
|
|
857
|
+
const F = u.getBoundingClientRect(), b = f.getBoundingClientRect(), o = Ut.value ? (((a = We.value) == null ? void 0 : a.getBoundingClientRect().height) ?? 0) + Jt.value : 0, v = b.top - F.top - u.clientTop + u.scrollTop, E = Math.max(0, u.clientHeight - o);
|
|
858
|
+
let P = v - o;
|
|
859
|
+
if (t.block === "center") P -= (E - b.height) / 2;
|
|
860
|
+
else if (t.block === "end") P -= E - b.height;
|
|
852
861
|
else if (!t.block || t.block === "nearest") {
|
|
853
862
|
if (b.top >= F.top + u.clientTop + o && b.bottom <= F.top + u.clientTop + u.clientHeight)
|
|
854
863
|
return !0;
|
|
855
|
-
b.top >= F.top + u.clientTop + o && (
|
|
864
|
+
b.top >= F.top + u.clientTop + o && (P -= E - b.height);
|
|
856
865
|
}
|
|
857
|
-
return _e({ top: Math.max(0,
|
|
866
|
+
return _e({ top: Math.max(0, P), behavior: t.behavior }), !0;
|
|
858
867
|
}
|
|
859
|
-
const
|
|
860
|
-
|
|
868
|
+
const Gl = g(() => p.value.leaves), Zl = g(() => G.value.map(({ token: e }) => e)), dl = wa({
|
|
869
|
+
enabled: () => !!r.keyboardNavigation && !h.value && i.live.value,
|
|
870
|
+
table: () => de.value,
|
|
871
|
+
tokens: () => Zl.value,
|
|
872
|
+
attribute: "data-hys-navigation-row",
|
|
873
|
+
toggle(e) {
|
|
874
|
+
const t = i.graph.value.map.get(e);
|
|
875
|
+
return !t || !p.value.leaves.some(({ type: n }) => n === "selection") || !i.eligible(t) ? !1 : (i.toggleRowSelection(t.key), !0);
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
return hl({
|
|
861
879
|
element: ce,
|
|
862
|
-
viewport:
|
|
880
|
+
viewport: j,
|
|
863
881
|
selectedKeys: be,
|
|
864
882
|
currentRow: i.currentRow,
|
|
865
883
|
expandedKeys: st,
|
|
866
884
|
query: vt,
|
|
867
|
-
columns:
|
|
885
|
+
columns: Gl,
|
|
868
886
|
clearSelection: i.clearSelection,
|
|
869
887
|
getSelectionRows: i.getSelectionRows,
|
|
870
888
|
getHalfSelectionRows: i.getHalfSelectionRows,
|
|
@@ -879,12 +897,18 @@ const Sa = ["aria-busy"], xa = {
|
|
|
879
897
|
setSort: i.setSort,
|
|
880
898
|
clearFilter: i.clearFilter,
|
|
881
899
|
setFilter: i.setFilter,
|
|
900
|
+
setSearch: i.setSearch,
|
|
901
|
+
clearSearch: () => i.setSearch(""),
|
|
902
|
+
focusRow: (e) => {
|
|
903
|
+
const t = i.find(e);
|
|
904
|
+
return !!t && dl.focusRow(t.token);
|
|
905
|
+
},
|
|
882
906
|
showFilter: (e) => Je(e),
|
|
883
907
|
hideFilter: () => Je(null, !0),
|
|
884
908
|
setPage: i.requestPage,
|
|
885
909
|
resizeColumn: Bt,
|
|
886
|
-
resetColumnWidths:
|
|
887
|
-
doLayout:
|
|
910
|
+
resetColumnWidths: Xl,
|
|
911
|
+
doLayout: Ul,
|
|
888
912
|
scrollTo: _e,
|
|
889
913
|
setScrollTop: (e) => {
|
|
890
914
|
Number.isFinite(e) && _e({ top: Math.max(0, e) });
|
|
@@ -892,13 +916,13 @@ const Sa = ["aria-busy"], xa = {
|
|
|
892
916
|
setScrollLeft: (e) => {
|
|
893
917
|
Number.isFinite(e) && _e({ left: Math.max(0, e) });
|
|
894
918
|
},
|
|
895
|
-
scrollToRow:
|
|
919
|
+
scrollToRow: Yl
|
|
896
920
|
}), (e, t) => {
|
|
897
921
|
var n, u;
|
|
898
|
-
return c(), y("div",
|
|
922
|
+
return c(), y("div", L({
|
|
899
923
|
ref_key: "element",
|
|
900
924
|
ref: ce
|
|
901
|
-
}, l(
|
|
925
|
+
}, l(De), {
|
|
902
926
|
class: ["hys-ui-table", [
|
|
903
927
|
"hys-ui-table-" + s.size,
|
|
904
928
|
{
|
|
@@ -909,69 +933,71 @@ const Sa = ["aria-busy"], xa = {
|
|
|
909
933
|
]],
|
|
910
934
|
"aria-busy": s.loading || void 0
|
|
911
935
|
}), [
|
|
912
|
-
e.$slots.title ? (c(), y("div",
|
|
936
|
+
e.$slots.title ? (c(), y("div", Fa, [
|
|
913
937
|
S(e.$slots, "title", {
|
|
914
938
|
rows: l(i).filteredRows.value,
|
|
915
939
|
pageRows: bt.value,
|
|
916
|
-
query: l(vt)
|
|
940
|
+
query: l(vt),
|
|
941
|
+
search: l(i).search.value,
|
|
942
|
+
setSearch: l(i).setSearch
|
|
917
943
|
}, void 0, !0)
|
|
918
944
|
])) : x("", !0),
|
|
919
|
-
s.selectionActions === !0 || (n = zt.value) != null && n.length || e.$slots.selection ? (c(), y("div",
|
|
945
|
+
s.selectionActions === !0 || (n = zt.value) != null && n.length || e.$slots.selection ? (c(), y("div", za, [
|
|
920
946
|
S(e.$slots, "selection", {
|
|
921
947
|
rows: l(i).getSelectionRows(),
|
|
922
948
|
keys: l(be),
|
|
923
949
|
selectAll: () => l(i).toggleAllSelection(!0),
|
|
924
950
|
invert: l(i).invertSelection,
|
|
925
951
|
clear: l(i).clearSelection,
|
|
926
|
-
pageRows:
|
|
927
|
-
pageKeys:
|
|
952
|
+
pageRows: jl.value,
|
|
953
|
+
pageKeys: Vl.value,
|
|
928
954
|
setSelected: (d) => l(i).selectPage(d)
|
|
929
955
|
}, () => [
|
|
930
|
-
|
|
931
|
-
zt.value ? (c(!0), y(A, { key: 0 }, le(zt.value, (d) => (c(), w(
|
|
956
|
+
B("span", Aa, N(m.value.selected.replace("{count}", String(l(be).length))), 1),
|
|
957
|
+
zt.value ? (c(!0), y(A, { key: 0 }, le(zt.value, (d) => (c(), w(fe, {
|
|
932
958
|
key: d.key,
|
|
933
959
|
size: "sm",
|
|
934
960
|
variant: "secondary",
|
|
935
961
|
disabled: l(h) || d.disabled || s.selectionType === "radio",
|
|
936
|
-
onClick: (f) =>
|
|
962
|
+
onClick: (f) => Il(d)
|
|
937
963
|
}, {
|
|
938
|
-
default:
|
|
939
|
-
I(
|
|
964
|
+
default: O(() => [
|
|
965
|
+
I(N(d.label), 1)
|
|
940
966
|
]),
|
|
941
967
|
_: 2
|
|
942
968
|
}, 1032, ["disabled", "onClick"]))), 128)) : (c(), y(A, { key: 1 }, [
|
|
943
|
-
s.selectionType !== "radio" ? (c(), w(
|
|
969
|
+
s.selectionType !== "radio" ? (c(), w(fe, {
|
|
944
970
|
key: 0,
|
|
945
971
|
size: "sm",
|
|
946
972
|
variant: "secondary",
|
|
947
973
|
disabled: l(h) || !l(i).selectionPage.value.length,
|
|
948
974
|
onClick: t[0] || (t[0] = (d) => l(i).toggleAllSelection(!0))
|
|
949
975
|
}, {
|
|
950
|
-
default:
|
|
951
|
-
I(
|
|
976
|
+
default: O(() => [
|
|
977
|
+
I(N(m.value.selectAll), 1)
|
|
952
978
|
]),
|
|
953
979
|
_: 1
|
|
954
980
|
}, 8, ["disabled"])) : x("", !0),
|
|
955
|
-
s.selectionType !== "radio" ? (c(), w(
|
|
981
|
+
s.selectionType !== "radio" ? (c(), w(fe, {
|
|
956
982
|
key: 1,
|
|
957
983
|
size: "sm",
|
|
958
984
|
variant: "secondary",
|
|
959
985
|
disabled: l(h) || !l(i).selectionPage.value.length,
|
|
960
986
|
onClick: l(i).invertSelection
|
|
961
987
|
}, {
|
|
962
|
-
default:
|
|
963
|
-
I(
|
|
988
|
+
default: O(() => [
|
|
989
|
+
I(N(m.value.invertSelection), 1)
|
|
964
990
|
]),
|
|
965
991
|
_: 1
|
|
966
992
|
}, 8, ["disabled", "onClick"])) : x("", !0),
|
|
967
|
-
|
|
993
|
+
q(fe, {
|
|
968
994
|
size: "sm",
|
|
969
995
|
variant: "ghost",
|
|
970
996
|
disabled: l(h) || !l(be).length,
|
|
971
997
|
onClick: l(i).clearSelection
|
|
972
998
|
}, {
|
|
973
|
-
default:
|
|
974
|
-
I(
|
|
999
|
+
default: O(() => [
|
|
1000
|
+
I(N(m.value.clearSelection), 1)
|
|
975
1001
|
]),
|
|
976
1002
|
_: 1
|
|
977
1003
|
}, 8, ["disabled", "onClick"])
|
|
@@ -991,16 +1017,16 @@ const Sa = ["aria-busy"], xa = {
|
|
|
991
1017
|
setPage: l(i).requestPage,
|
|
992
1018
|
setPageSize: l(i).changeSize
|
|
993
1019
|
}, () => [
|
|
994
|
-
|
|
1020
|
+
q(fl, L({ ref_for: !0 }, qe.value, {
|
|
995
1021
|
onChange: t[1] || (t[1] = (f) => l(i).requestPage(f)),
|
|
996
1022
|
onPageSizeChange: l(i).changeSize
|
|
997
1023
|
}), null, 16, ["onPageSizeChange"])
|
|
998
1024
|
], !0)
|
|
999
|
-
], 8,
|
|
1000
|
-
|
|
1001
|
-
|
|
1025
|
+
], 8, Ma))), 128)),
|
|
1026
|
+
B("div", Pa, [
|
|
1027
|
+
B("div", {
|
|
1002
1028
|
ref_key: "viewport",
|
|
1003
|
-
ref:
|
|
1029
|
+
ref: j,
|
|
1004
1030
|
class: Te(["hys-ui-table-scroll", { "hys-ui-table-themed-scrollbar": s.nativeScrollbar === !1 }]),
|
|
1005
1031
|
style: Re({
|
|
1006
1032
|
height: ze(s.height),
|
|
@@ -1009,38 +1035,38 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1009
1035
|
}),
|
|
1010
1036
|
tabindex: s.scrollbarTabindex,
|
|
1011
1037
|
"aria-label": s.caption || m.value.scrollLabel,
|
|
1012
|
-
onScroll:
|
|
1038
|
+
onScroll: Ql
|
|
1013
1039
|
}, [
|
|
1014
1040
|
(c(), w(ae(((u = s.components) == null ? void 0 : u.table) ?? "table"), {
|
|
1015
1041
|
ref_key: "tableRoot",
|
|
1016
|
-
ref:
|
|
1042
|
+
ref: Nt,
|
|
1017
1043
|
class: "hys-ui-data-table",
|
|
1018
1044
|
style: Re({
|
|
1019
|
-
minWidth:
|
|
1020
|
-
tableLayout: je.value ||
|
|
1021
|
-
width:
|
|
1045
|
+
minWidth: Bl.value,
|
|
1046
|
+
tableLayout: je.value || ve.value ? "fixed" : s.tableLayout,
|
|
1047
|
+
width: Ol.value
|
|
1022
1048
|
})
|
|
1023
1049
|
}, {
|
|
1024
|
-
default:
|
|
1050
|
+
default: O(() => {
|
|
1025
1051
|
var d, f, F, b;
|
|
1026
1052
|
return [
|
|
1027
|
-
s.caption ? (c(), y("caption",
|
|
1028
|
-
|
|
1053
|
+
s.caption ? (c(), y("caption", Oa, N(s.caption), 1)) : x("", !0),
|
|
1054
|
+
B("colgroup", null, [
|
|
1029
1055
|
(c(!0), y(A, null, le(p.value.leaves, (o) => (c(), y("col", {
|
|
1030
1056
|
key: o.key,
|
|
1031
|
-
style: Re({ width:
|
|
1057
|
+
style: Re({ width: Al(o) })
|
|
1032
1058
|
}, null, 4))), 128))
|
|
1033
1059
|
]),
|
|
1034
1060
|
s.showHeader ? (c(), w(ae(((f = (d = s.components) == null ? void 0 : d.header) == null ? void 0 : f.wrapper) ?? "thead"), {
|
|
1035
1061
|
key: 1,
|
|
1036
1062
|
ref_key: "tableHeadRoot",
|
|
1037
|
-
ref:
|
|
1063
|
+
ref: Kt,
|
|
1038
1064
|
style: Re({ top: l(Jt) + "px" })
|
|
1039
1065
|
}, {
|
|
1040
|
-
default:
|
|
1066
|
+
default: O(() => [
|
|
1041
1067
|
(c(!0), y(A, null, le(p.value.headers, (o, v) => {
|
|
1042
|
-
var
|
|
1043
|
-
return c(), w(ae(((
|
|
1068
|
+
var E, P, C;
|
|
1069
|
+
return c(), w(ae(((P = (E = s.components) == null ? void 0 : E.header) == null ? void 0 : P.row) ?? "tr"), L(
|
|
1044
1070
|
{
|
|
1045
1071
|
key: v,
|
|
1046
1072
|
class: typeof s.headerRowClassName == "function" ? s.headerRowClassName(
|
|
@@ -1061,12 +1087,12 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1061
1087
|
)
|
|
1062
1088
|
)
|
|
1063
1089
|
), {
|
|
1064
|
-
default:
|
|
1090
|
+
default: O(() => [
|
|
1065
1091
|
(c(!0), y(A, null, le(o, (a) => {
|
|
1066
1092
|
var z, Be, Oe, $e;
|
|
1067
|
-
return c(), w(ae(((Be = (z = s.components) == null ? void 0 : z.header) == null ? void 0 : Be.cell) ?? "th"),
|
|
1093
|
+
return c(), w(ae(((Be = (z = s.components) == null ? void 0 : z.header) == null ? void 0 : Be.cell) ?? "th"), L({
|
|
1068
1094
|
key: a.key
|
|
1069
|
-
}, { ref_for: !0 },
|
|
1095
|
+
}, { ref_for: !0 }, Sl(a), {
|
|
1070
1096
|
"data-column-key": a.column.key,
|
|
1071
1097
|
"data-leaf": !a.column.children && a.colspan === 1 ? "" : void 0,
|
|
1072
1098
|
colspan: a.colspan,
|
|
@@ -1081,12 +1107,12 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1081
1107
|
) : s.headerCellClassName
|
|
1082
1108
|
],
|
|
1083
1109
|
style: Pl(a),
|
|
1084
|
-
"aria-sort": !a.blank && a.column.sortable ? ((Oe = l(ee).find((
|
|
1085
|
-
onClick: (
|
|
1086
|
-
onContextmenu: (
|
|
1110
|
+
"aria-sort": !a.blank && a.column.sortable ? ((Oe = l(ee).find((V) => V.key === a.column.key)) == null ? void 0 : Oe.direction) === "asc" ? "ascending" : (($e = l(ee).find((V) => V.key === a.column.key)) == null ? void 0 : $e.direction) === "desc" ? "descending" : "none" : void 0,
|
|
1111
|
+
onClick: (V) => !a.blank && M("headerClick", a.column, V),
|
|
1112
|
+
onContextmenu: (V) => !a.blank && M("headerContextmenu", a.column, V)
|
|
1087
1113
|
}), {
|
|
1088
|
-
default:
|
|
1089
|
-
var
|
|
1114
|
+
default: O(() => {
|
|
1115
|
+
var V, K, W, Ee;
|
|
1090
1116
|
return [
|
|
1091
1117
|
a.blank ? (c(), y(A, { key: 0 }, [], 64)) : a.column.type === "selection" ? S(e.$slots, "selection-header", {
|
|
1092
1118
|
column: a.column,
|
|
@@ -1095,40 +1121,40 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1095
1121
|
disabled: l(h) || !l(i).selectionPage.value.length,
|
|
1096
1122
|
toggle: l(i).toggleAllSelection
|
|
1097
1123
|
}, () => [
|
|
1098
|
-
a.column.type === "selection" && s.selectionType !== "radio" && !s.hideSelectAll ? (c(), w(
|
|
1124
|
+
a.column.type === "selection" && s.selectionType !== "radio" && !s.hideSelectAll ? (c(), w(yl, {
|
|
1099
1125
|
key: 0,
|
|
1100
1126
|
"model-value": l(qt),
|
|
1101
1127
|
indeterminate: l(rt),
|
|
1102
1128
|
disabled: l(h) || !l(i).selectionPage.value.length,
|
|
1103
1129
|
"aria-label": m.value.selectAll,
|
|
1104
|
-
onClick: t[2] || (t[2] =
|
|
1130
|
+
onClick: t[2] || (t[2] = _(() => {
|
|
1105
1131
|
}, ["stop"])),
|
|
1106
1132
|
"onUpdate:modelValue": t[3] || (t[3] = (R) => l(i).toggleAllSelection(
|
|
1107
1133
|
l(rt) && !s.selectOnIndeterminate ? !1 : R === !0
|
|
1108
1134
|
))
|
|
1109
1135
|
}, {
|
|
1110
|
-
default:
|
|
1136
|
+
default: O(() => {
|
|
1111
1137
|
var R;
|
|
1112
1138
|
return [
|
|
1113
1139
|
(R = s.selectionColumn) != null && R.label ? (c(), y(A, { key: 0 }, [
|
|
1114
|
-
I(
|
|
1140
|
+
I(N(s.selectionColumn.label), 1)
|
|
1115
1141
|
], 64)) : x("", !0)
|
|
1116
1142
|
];
|
|
1117
1143
|
}),
|
|
1118
1144
|
_: 1
|
|
1119
|
-
}, 8, ["model-value", "indeterminate", "disabled", "aria-label"])) : a.column.type === "selection" ? (c(), y("span",
|
|
1120
|
-
], !0, 1) : (c(), y("div",
|
|
1121
|
-
|
|
1145
|
+
}, 8, ["model-value", "indeterminate", "disabled", "aria-label"])) : a.column.type === "selection" ? (c(), y("span", $a, "选择")) : x("", !0)
|
|
1146
|
+
], !0, 1) : (c(), y("div", Ea, [
|
|
1147
|
+
B("div", Ha, [
|
|
1122
1148
|
a.column.sortable ? (c(), y("button", {
|
|
1123
1149
|
key: 0,
|
|
1124
1150
|
type: "button",
|
|
1125
1151
|
class: "hys-ui-table-sort",
|
|
1126
1152
|
disabled: l(h),
|
|
1127
|
-
"aria-describedby": l(Ye) && re.value === a.column ? l(
|
|
1153
|
+
"aria-describedby": l(Ye) && re.value === a.column ? l(me) + "-tooltip" : void 0,
|
|
1128
1154
|
onPointerenter: (R) => ll(a.column, R),
|
|
1129
|
-
onPointerleave:
|
|
1155
|
+
onPointerleave: Pe,
|
|
1130
1156
|
onFocus: (R) => ll(a.column, R),
|
|
1131
|
-
onBlur:
|
|
1157
|
+
onBlur: Pe,
|
|
1132
1158
|
onClick: (R) => l(i).toggleSort(a.column)
|
|
1133
1159
|
}, [
|
|
1134
1160
|
S(e.$slots, "header-" + a.column.key, {
|
|
@@ -1143,11 +1169,11 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1143
1169
|
key: 0,
|
|
1144
1170
|
value: a.column.renderHeader(a.column, l(ee))
|
|
1145
1171
|
}, null, 8, ["value"])) : (c(), y(A, { key: 1 }, [
|
|
1146
|
-
I(
|
|
1172
|
+
I(N(a.column.label), 1)
|
|
1147
1173
|
], 64))
|
|
1148
1174
|
], !0)
|
|
1149
1175
|
], !0)
|
|
1150
|
-
], 40,
|
|
1176
|
+
], 40, Na)) : (c(), y("span", Ka, [
|
|
1151
1177
|
S(e.$slots, "header-" + a.column.key, {
|
|
1152
1178
|
column: a.column,
|
|
1153
1179
|
sorts: l(ee)
|
|
@@ -1160,13 +1186,13 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1160
1186
|
key: 0,
|
|
1161
1187
|
value: a.column.renderHeader(a.column, l(ee))
|
|
1162
1188
|
}, null, 8, ["value"])) : (c(), y(A, { key: 1 }, [
|
|
1163
|
-
I(
|
|
1189
|
+
I(N(a.column.label), 1)
|
|
1164
1190
|
], 64))
|
|
1165
1191
|
], !0)
|
|
1166
1192
|
], !0)
|
|
1167
1193
|
])),
|
|
1168
|
-
a.column.sortable ? (c(), y("span",
|
|
1169
|
-
(c(), y(A, null, le(["asc", "desc"], (R) =>
|
|
1194
|
+
a.column.sortable ? (c(), y("span", Da, [
|
|
1195
|
+
(c(), y(A, null, le(["asc", "desc"], (R) => B("button", {
|
|
1170
1196
|
key: R,
|
|
1171
1197
|
type: "button",
|
|
1172
1198
|
disabled: l(h),
|
|
@@ -1179,11 +1205,11 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1179
1205
|
),
|
|
1180
1206
|
onClick: (xe) => l(i).toggleSort(a.column, R)
|
|
1181
1207
|
}, [
|
|
1182
|
-
(c(), w(ae(R === "asc" ? l(
|
|
1208
|
+
(c(), w(ae(R === "asc" ? l(va) : l(Ht)), {
|
|
1183
1209
|
size: 12,
|
|
1184
1210
|
"aria-hidden": "true"
|
|
1185
1211
|
}))
|
|
1186
|
-
], 8,
|
|
1212
|
+
], 8, Wa)), 64))
|
|
1187
1213
|
])) : x("", !0)
|
|
1188
1214
|
]),
|
|
1189
1215
|
!a.column.children && Ue(a.column) ? (c(), y("button", {
|
|
@@ -1194,28 +1220,28 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1194
1220
|
}]),
|
|
1195
1221
|
disabled: l(h),
|
|
1196
1222
|
"aria-label": m.value.filter + a.column.label,
|
|
1197
|
-
"aria-expanded": l(X) && ((
|
|
1198
|
-
"aria-controls": l(
|
|
1199
|
-
onClick:
|
|
1223
|
+
"aria-expanded": l(X) && ((V = k.value) == null ? void 0 : V.key) === a.column.key,
|
|
1224
|
+
"aria-controls": l(me) + "-filter",
|
|
1225
|
+
onClick: _((R) => Wl(a.column, R), ["stop"])
|
|
1200
1226
|
}, [
|
|
1201
1227
|
a.column.renderFilterIcon ? (c(), w(oe, {
|
|
1202
1228
|
key: 0,
|
|
1203
1229
|
value: a.column.renderFilterIcon({
|
|
1204
1230
|
column: a.column,
|
|
1205
1231
|
filtered: St(a.column),
|
|
1206
|
-
open: l(X) && ((
|
|
1232
|
+
open: l(X) && ((K = k.value) == null ? void 0 : K.key) === a.column.key
|
|
1207
1233
|
})
|
|
1208
1234
|
}, null, 8, ["value"])) : S(e.$slots, "filter-icon", {
|
|
1209
1235
|
column: a.column,
|
|
1210
1236
|
filtered: St(a.column),
|
|
1211
|
-
open: l(X) && ((
|
|
1237
|
+
open: l(X) && ((W = k.value) == null ? void 0 : W.key) === a.column.key
|
|
1212
1238
|
}, () => [
|
|
1213
|
-
|
|
1239
|
+
q(l(ya), {
|
|
1214
1240
|
size: 14,
|
|
1215
1241
|
"aria-hidden": "true"
|
|
1216
1242
|
})
|
|
1217
1243
|
], !0, 1)
|
|
1218
|
-
], 10,
|
|
1244
|
+
], 10, La)) : x("", !0),
|
|
1219
1245
|
!a.column.children && a.colspan === 1 && (a.column.resizable ?? s.resizable) && (s.allowDragLastColumn || a.column.key !== ((Ee = p.value.leaves.at(-1)) == null ? void 0 : Ee.key)) && (!a.column.type || a.column.type === "default") ? (c(), y("span", {
|
|
1220
1246
|
key: 1,
|
|
1221
1247
|
class: "hys-ui-table-resize",
|
|
@@ -1228,18 +1254,18 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1228
1254
|
),
|
|
1229
1255
|
"aria-valuemin": a.column.minWidth ?? 60,
|
|
1230
1256
|
"aria-valuemax": a.column.maxWidth ?? 2e3,
|
|
1231
|
-
onPointerdown:
|
|
1257
|
+
onPointerdown: _((R) => Jl(a.column, R), ["prevent", "stop"]),
|
|
1232
1258
|
onKeydown: [
|
|
1233
|
-
$t(
|
|
1259
|
+
$t(_((R) => Bt(
|
|
1234
1260
|
a.column.key,
|
|
1235
1261
|
(Y.value[a.column.key] ?? ne(a.column)) - 10
|
|
1236
1262
|
), ["prevent"]), ["left"]),
|
|
1237
|
-
$t(
|
|
1263
|
+
$t(_((R) => Bt(
|
|
1238
1264
|
a.column.key,
|
|
1239
1265
|
(Y.value[a.column.key] ?? ne(a.column)) + 10
|
|
1240
1266
|
), ["prevent"]), ["right"])
|
|
1241
1267
|
]
|
|
1242
|
-
}, null, 40,
|
|
1268
|
+
}, null, 40, qa)) : x("", !0)
|
|
1243
1269
|
]))
|
|
1244
1270
|
];
|
|
1245
1271
|
}),
|
|
@@ -1254,29 +1280,30 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1254
1280
|
_: 3
|
|
1255
1281
|
}, 8, ["style"])) : x("", !0),
|
|
1256
1282
|
(c(), w(ae(((b = (F = s.components) == null ? void 0 : F.body) == null ? void 0 : b.wrapper) ?? "tbody"), null, {
|
|
1257
|
-
default:
|
|
1258
|
-
s.loading && s.loadingMode === "replace" ? (c(), y("tr",
|
|
1259
|
-
|
|
1283
|
+
default: O(() => [
|
|
1284
|
+
s.loading && s.loadingMode === "replace" ? (c(), y("tr", ja, [
|
|
1285
|
+
B("td", {
|
|
1260
1286
|
colspan: Math.max(1, p.value.leaves.length)
|
|
1261
1287
|
}, [
|
|
1262
|
-
|
|
1288
|
+
B("div", Ia, [
|
|
1263
1289
|
S(e.$slots, "loading", {}, () => [
|
|
1264
|
-
|
|
1290
|
+
q(l(tt), {
|
|
1265
1291
|
class: "hys-ui-table-spinner",
|
|
1266
1292
|
size: 18
|
|
1267
1293
|
}),
|
|
1268
|
-
I(
|
|
1294
|
+
I(N(m.value.loadingText), 1)
|
|
1269
1295
|
], !0)
|
|
1270
1296
|
])
|
|
1271
|
-
], 8,
|
|
1297
|
+
], 8, Va)
|
|
1272
1298
|
])) : (c(), y(A, { key: 1 }, [
|
|
1273
|
-
(c(!0), y(A, null, le(l(
|
|
1274
|
-
var
|
|
1299
|
+
(c(!0), y(A, null, le(l(G), (o, v) => {
|
|
1300
|
+
var E, P, C;
|
|
1275
1301
|
return c(), y(A, {
|
|
1276
1302
|
key: o.token
|
|
1277
1303
|
}, [
|
|
1278
|
-
(c(), w(ae(((
|
|
1304
|
+
(c(), w(ae(((P = (E = s.components) == null ? void 0 : E.body) == null ? void 0 : P.row) ?? "tr"), L({ ref_for: !0 }, L(ke((C = s.customRow) == null ? void 0 : C.call(s, o.row, v)), l(dl).rowNavigationAttrs(o.token)), {
|
|
1279
1305
|
"data-row-key": String(o.key),
|
|
1306
|
+
"data-hys-navigation-row": s.keyboardNavigation ? o.token : void 0,
|
|
1280
1307
|
"aria-selected": s.highlightCurrentRow ? l(Vt) === o.key : void 0,
|
|
1281
1308
|
class: [
|
|
1282
1309
|
typeof s.rowClassName == "function" ? s.rowClassName(o.row, v) : s.rowClassName,
|
|
@@ -1286,22 +1313,22 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1286
1313
|
}
|
|
1287
1314
|
],
|
|
1288
1315
|
style: typeof s.rowStyle == "function" ? s.rowStyle(o.row, v) : s.rowStyle,
|
|
1289
|
-
onClick: (a) =>
|
|
1290
|
-
onDblclick: (a) => !l(h) &&
|
|
1291
|
-
onContextmenu: (a) =>
|
|
1316
|
+
onClick: (a) => Nl(o, v, a),
|
|
1317
|
+
onDblclick: (a) => !l(h) && M("rowDblclick", o.row, v, a),
|
|
1318
|
+
onContextmenu: (a) => M("rowContextmenu", o.row, v, a)
|
|
1292
1319
|
}), {
|
|
1293
|
-
default:
|
|
1320
|
+
default: O(() => [
|
|
1294
1321
|
(c(!0), y(A, null, le(p.value.leaves, (a, z) => {
|
|
1295
|
-
var Be, Oe, $e,
|
|
1322
|
+
var Be, Oe, $e, V;
|
|
1296
1323
|
return c(), y(A, {
|
|
1297
1324
|
key: a.key
|
|
1298
1325
|
}, [
|
|
1299
|
-
Ie(v, z).rowspan && Ie(v, z).colspan ? (c(), w(ae(a.rowScope ? ((Oe = (Be = s.components) == null ? void 0 : Be.body) == null ? void 0 : Oe.rowHeaderCell) ?? "th" : ((
|
|
1326
|
+
Ie(v, z).rowspan && Ie(v, z).colspan ? (c(), w(ae(a.rowScope ? ((Oe = (Be = s.components) == null ? void 0 : Be.body) == null ? void 0 : Oe.rowHeaderCell) ?? "th" : ((V = ($e = s.components) == null ? void 0 : $e.body) == null ? void 0 : V.cell) ?? "td"), L(
|
|
1300
1327
|
{
|
|
1301
1328
|
key: 0,
|
|
1302
1329
|
ref_for: !0
|
|
1303
1330
|
},
|
|
1304
|
-
|
|
1331
|
+
xl(
|
|
1305
1332
|
J(o.row, a, v, z)
|
|
1306
1333
|
),
|
|
1307
1334
|
{
|
|
@@ -1309,69 +1336,69 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1309
1336
|
"data-column-key": a.key,
|
|
1310
1337
|
rowspan: Ie(v, z).rowspan,
|
|
1311
1338
|
colspan: Ie(v, z).colspan,
|
|
1312
|
-
style:
|
|
1313
|
-
class:
|
|
1314
|
-
onClick: (
|
|
1339
|
+
style: $l(J(o.row, a, v, z)),
|
|
1340
|
+
class: El(J(o.row, a, v, z)),
|
|
1341
|
+
onClick: (K) => !l(h) && M(
|
|
1315
1342
|
"cellClick",
|
|
1316
1343
|
J(o.row, a, v, z),
|
|
1317
|
-
|
|
1344
|
+
K
|
|
1318
1345
|
),
|
|
1319
|
-
onDblclick: (
|
|
1346
|
+
onDblclick: (K) => !l(h) && M(
|
|
1320
1347
|
"cellDblclick",
|
|
1321
1348
|
J(o.row, a, v, z),
|
|
1322
|
-
|
|
1349
|
+
K
|
|
1323
1350
|
),
|
|
1324
|
-
onContextmenu: (
|
|
1351
|
+
onContextmenu: (K) => M(
|
|
1325
1352
|
"cellContextmenu",
|
|
1326
1353
|
J(o.row, a, v, z),
|
|
1327
|
-
|
|
1354
|
+
K
|
|
1328
1355
|
),
|
|
1329
|
-
onMouseenter: (
|
|
1356
|
+
onMouseenter: (K) => M(
|
|
1330
1357
|
"cellMouseEnter",
|
|
1331
1358
|
J(o.row, a, v, z),
|
|
1332
|
-
|
|
1359
|
+
K
|
|
1333
1360
|
),
|
|
1334
|
-
onMouseleave: (
|
|
1361
|
+
onMouseleave: (K) => M(
|
|
1335
1362
|
"cellMouseLeave",
|
|
1336
1363
|
J(o.row, a, v, z),
|
|
1337
|
-
|
|
1364
|
+
K
|
|
1338
1365
|
)
|
|
1339
1366
|
}
|
|
1340
1367
|
), {
|
|
1341
|
-
default:
|
|
1342
|
-
var
|
|
1368
|
+
default: O(() => {
|
|
1369
|
+
var K;
|
|
1343
1370
|
return [
|
|
1344
1371
|
a.type === "selection" ? S(e.$slots, "selection-cell", {
|
|
1345
1372
|
row: o.row,
|
|
1346
1373
|
index: v,
|
|
1347
1374
|
column: a,
|
|
1348
1375
|
checked: l(it).has(o.token),
|
|
1349
|
-
indeterminate: l(
|
|
1376
|
+
indeterminate: l(Lt).has(o.token),
|
|
1350
1377
|
disabled: l(h) || !l(i).eligible(o),
|
|
1351
|
-
toggle: (
|
|
1378
|
+
toggle: (W) => l(i).toggleRowSelection(o.key, W)
|
|
1352
1379
|
}, () => {
|
|
1353
|
-
var
|
|
1380
|
+
var W, Ee, R, xe;
|
|
1354
1381
|
return [
|
|
1355
|
-
s.selectionType === "radio" ? (c(), w(
|
|
1382
|
+
s.selectionType === "radio" ? (c(), w(ma, {
|
|
1356
1383
|
key: 0,
|
|
1357
|
-
name: l(
|
|
1384
|
+
name: l(me) + "-selection",
|
|
1358
1385
|
"model-value": l(be)[0] ?? null,
|
|
1359
1386
|
value: o.key,
|
|
1360
1387
|
disabled: l(h) || !l(i).eligible(o),
|
|
1361
|
-
"aria-label": ((
|
|
1388
|
+
"aria-label": ((W = s.getSelectionProps) == null ? void 0 : W.call(s, o.row, o.index).label) ?? he(m.value.selectRow, v + 1),
|
|
1362
1389
|
title: (Ee = s.getSelectionProps) == null ? void 0 : Ee.call(s, o.row, o.index).title,
|
|
1363
|
-
onClick: t[4] || (t[4] =
|
|
1390
|
+
onClick: t[4] || (t[4] = _(() => {
|
|
1364
1391
|
}, ["stop"])),
|
|
1365
1392
|
"onUpdate:modelValue": (He) => l(i).toggleRowSelection(o.key, !0)
|
|
1366
|
-
}, null, 8, ["name", "model-value", "value", "disabled", "aria-label", "title", "onUpdate:modelValue"])) : (c(), w(
|
|
1393
|
+
}, null, 8, ["name", "model-value", "value", "disabled", "aria-label", "title", "onUpdate:modelValue"])) : (c(), w(yl, {
|
|
1367
1394
|
key: 1,
|
|
1368
1395
|
"model-value": l(it).has(o.token),
|
|
1369
|
-
indeterminate: l(
|
|
1396
|
+
indeterminate: l(Lt).has(o.token),
|
|
1370
1397
|
disabled: l(h) || !l(i).eligible(o),
|
|
1371
1398
|
"aria-label": ((R = s.getSelectionProps) == null ? void 0 : R.call(s, o.row, o.index).label) ?? he(m.value.selectRow, v + 1),
|
|
1372
1399
|
title: (xe = s.getSelectionProps) == null ? void 0 : xe.call(s, o.row, o.index).title,
|
|
1373
|
-
onClick: t[5] || (t[5] =
|
|
1374
|
-
"onUpdate:modelValue": (He) =>
|
|
1400
|
+
onClick: t[5] || (t[5] = _((He) => sa(Fe) ? Fe.value = He.shiftKey : Fe = He.shiftKey, ["stop"])),
|
|
1401
|
+
"onUpdate:modelValue": (He) => Rl(o, He === !0)
|
|
1375
1402
|
}, null, 8, ["model-value", "indeterminate", "disabled", "aria-label", "title", "onUpdate:modelValue"]))
|
|
1376
1403
|
];
|
|
1377
1404
|
}, !0, 0) : a.type === "index" ? (c(), w(oe, {
|
|
@@ -1387,7 +1414,7 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1387
1414
|
l(U).has(o.token) ? m.value.collapseRow : m.value.expandRow,
|
|
1388
1415
|
v + 1
|
|
1389
1416
|
),
|
|
1390
|
-
onClick:
|
|
1417
|
+
onClick: _((W) => l(i).toggleRowExpansion(o.key), ["stop"])
|
|
1391
1418
|
}, [
|
|
1392
1419
|
S(e.$slots, "expand-icon", {
|
|
1393
1420
|
row: o.row,
|
|
@@ -1397,7 +1424,7 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1397
1424
|
depth: o.depth
|
|
1398
1425
|
}, () => [
|
|
1399
1426
|
(c(), w(ae(
|
|
1400
|
-
l(ge).has(o.token) ? l(tt) : l(U).has(o.token) ? l(Ht) : l(
|
|
1427
|
+
l(ge).has(o.token) ? l(tt) : l(U).has(o.token) ? l(Ht) : l(vl)
|
|
1401
1428
|
), {
|
|
1402
1429
|
class: Te({
|
|
1403
1430
|
"hys-ui-table-spinner": l(ge).has(o.token)
|
|
@@ -1406,15 +1433,15 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1406
1433
|
"aria-hidden": "true"
|
|
1407
1434
|
}, null, 8, ["class"]))
|
|
1408
1435
|
], !0)
|
|
1409
|
-
], 8,
|
|
1410
|
-
s.treeMode && a.key ===
|
|
1436
|
+
], 8, Ua)) : a.type !== "expand" ? (c(), y("div", Ja, [
|
|
1437
|
+
s.treeMode && a.key === Le.value ? (c(), y("span", {
|
|
1411
1438
|
key: 0,
|
|
1412
1439
|
class: "hys-ui-table-tree-indent",
|
|
1413
1440
|
style: Re({
|
|
1414
1441
|
width: Math.min(o.depth, 100) * Math.max(0, s.indent) + "px"
|
|
1415
1442
|
})
|
|
1416
1443
|
}, null, 4)) : x("", !0),
|
|
1417
|
-
s.treeMode && a.key ===
|
|
1444
|
+
s.treeMode && a.key === Le.value && !Cl.value && s.showExpandColumn ? (c(), y(A, { key: 1 }, [
|
|
1418
1445
|
l(i).canExpand(o) ? (c(), y("button", {
|
|
1419
1446
|
key: 0,
|
|
1420
1447
|
type: "button",
|
|
@@ -1422,12 +1449,12 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1422
1449
|
disabled: l(h),
|
|
1423
1450
|
"aria-expanded": l(U).has(o.token),
|
|
1424
1451
|
"aria-label": (l(U).has(o.token) ? m.value.collapse : m.value.expand) + Ve(
|
|
1425
|
-
l(
|
|
1452
|
+
l(Ke)(
|
|
1426
1453
|
o.row,
|
|
1427
1454
|
a.dataIndex ?? a.key
|
|
1428
1455
|
)
|
|
1429
1456
|
),
|
|
1430
|
-
onClick:
|
|
1457
|
+
onClick: _((W) => l(i).toggleRowExpansion(o.key), ["stop"])
|
|
1431
1458
|
}, [
|
|
1432
1459
|
S(e.$slots, "expand-icon", {
|
|
1433
1460
|
row: o.row,
|
|
@@ -1437,7 +1464,7 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1437
1464
|
depth: o.depth
|
|
1438
1465
|
}, () => [
|
|
1439
1466
|
(c(), w(ae(
|
|
1440
|
-
l(ge).has(o.token) ? l(tt) : l(U).has(o.token) ? l(Ht) : l(
|
|
1467
|
+
l(ge).has(o.token) ? l(tt) : l(U).has(o.token) ? l(Ht) : l(vl)
|
|
1441
1468
|
), {
|
|
1442
1469
|
class: Te({
|
|
1443
1470
|
"hys-ui-table-spinner": l(ge).has(
|
|
@@ -1448,29 +1475,29 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1448
1475
|
"aria-hidden": "true"
|
|
1449
1476
|
}, null, 8, ["class"]))
|
|
1450
1477
|
], !0)
|
|
1451
|
-
], 8,
|
|
1478
|
+
], 8, Xa)) : (c(), y("span", Qa))
|
|
1452
1479
|
], 64)) : x("", !0),
|
|
1453
|
-
|
|
1480
|
+
B("span", {
|
|
1454
1481
|
class: Te(["hys-ui-table-cell-text", {
|
|
1455
1482
|
"hys-ui-table-ellipsis": a.ellipsis || Qe(a)
|
|
1456
1483
|
}]),
|
|
1457
1484
|
tabindex: Qe(a) ? 0 : void 0,
|
|
1458
|
-
title: typeof a.ellipsis == "object" && a.ellipsis.showTitle !== !1 && !Qe(a) ? Ve(l(
|
|
1459
|
-
"aria-describedby": l(Ye) && ((
|
|
1460
|
-
onPointerenter: (
|
|
1485
|
+
title: typeof a.ellipsis == "object" && a.ellipsis.showTitle !== !1 && !Qe(a) ? Ve(l(Ke)(o.row, a.dataIndex ?? a.key)) : void 0,
|
|
1486
|
+
"aria-describedby": l(Ye) && ((K = Q.value) == null ? void 0 : K.row) === o.row && Q.value.column.key === a.key ? l(me) + "-tooltip" : void 0,
|
|
1487
|
+
onPointerenter: (W) => tl(
|
|
1461
1488
|
J(o.row, a, v, z),
|
|
1462
|
-
|
|
1489
|
+
W
|
|
1463
1490
|
),
|
|
1464
|
-
onPointerleave:
|
|
1465
|
-
onFocus: (
|
|
1491
|
+
onPointerleave: Pe,
|
|
1492
|
+
onFocus: (W) => tl(
|
|
1466
1493
|
J(o.row, a, v, z),
|
|
1467
|
-
|
|
1494
|
+
W
|
|
1468
1495
|
),
|
|
1469
|
-
onBlur:
|
|
1496
|
+
onBlur: Pe
|
|
1470
1497
|
}, [
|
|
1471
1498
|
S(e.$slots, a.key, {
|
|
1472
1499
|
row: o.row,
|
|
1473
|
-
value: l(
|
|
1500
|
+
value: l(Ke)(
|
|
1474
1501
|
o.row,
|
|
1475
1502
|
a.dataIndex ?? a.key
|
|
1476
1503
|
),
|
|
@@ -1480,14 +1507,14 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1480
1507
|
S(e.$slots, "body-cell", {
|
|
1481
1508
|
row: o.row,
|
|
1482
1509
|
column: a,
|
|
1483
|
-
value: l(
|
|
1510
|
+
value: l(Ke)(
|
|
1484
1511
|
o.row,
|
|
1485
1512
|
a.dataIndex ?? a.key
|
|
1486
1513
|
),
|
|
1487
1514
|
index: v
|
|
1488
1515
|
}, () => [
|
|
1489
|
-
|
|
1490
|
-
value:
|
|
1516
|
+
q(oe, {
|
|
1517
|
+
value: Hl(
|
|
1491
1518
|
J(
|
|
1492
1519
|
o.row,
|
|
1493
1520
|
a,
|
|
@@ -1498,17 +1525,17 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1498
1525
|
}, null, 8, ["value"])
|
|
1499
1526
|
], !0)
|
|
1500
1527
|
], !0)
|
|
1501
|
-
], 42,
|
|
1502
|
-
a.key ===
|
|
1528
|
+
], 42, Ya),
|
|
1529
|
+
a.key === Le.value && l(wl).has(o.token) ? (c(), w(fe, {
|
|
1503
1530
|
key: 2,
|
|
1504
1531
|
size: "sm",
|
|
1505
1532
|
variant: "ghost",
|
|
1506
1533
|
"aria-label": m.value.retryLabel,
|
|
1507
|
-
onClick:
|
|
1534
|
+
onClick: _((W) => l(i).loadRow(o.key, !0), ["stop"])
|
|
1508
1535
|
}, {
|
|
1509
|
-
default:
|
|
1510
|
-
|
|
1511
|
-
I(
|
|
1536
|
+
default: O(() => [
|
|
1537
|
+
q(l(fa), { size: 13 }),
|
|
1538
|
+
I(N(m.value.retry), 1)
|
|
1512
1539
|
]),
|
|
1513
1540
|
_: 1
|
|
1514
1541
|
}, 8, ["aria-label", "onClick"])) : x("", !0)
|
|
@@ -1521,9 +1548,9 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1521
1548
|
}), 128))
|
|
1522
1549
|
]),
|
|
1523
1550
|
_: 2
|
|
1524
|
-
}, 1040, ["data-row-key", "aria-selected", "class", "style", "onClick", "onDblclick", "onContextmenu"])),
|
|
1525
|
-
Qt(o) ?
|
|
1526
|
-
|
|
1551
|
+
}, 1040, ["data-row-key", "data-hys-navigation-row", "aria-selected", "class", "style", "onClick", "onDblclick", "onContextmenu"])),
|
|
1552
|
+
Qt(o) ? ra((c(), y("tr", Ga, [
|
|
1553
|
+
B("td", {
|
|
1527
1554
|
colspan: Math.max(1, p.value.leaves.length)
|
|
1528
1555
|
}, [
|
|
1529
1556
|
S(e.$slots, "expand", {
|
|
@@ -1531,30 +1558,32 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1531
1558
|
index: v,
|
|
1532
1559
|
expanded: l(U).has(o.token)
|
|
1533
1560
|
}, void 0, !0)
|
|
1534
|
-
], 8,
|
|
1561
|
+
], 8, Za)
|
|
1535
1562
|
], 512)), [
|
|
1536
|
-
[
|
|
1563
|
+
[ua, l(U).has(o.token)]
|
|
1537
1564
|
]) : x("", !0)
|
|
1538
1565
|
], 64);
|
|
1539
1566
|
}), 128)),
|
|
1540
|
-
l(
|
|
1541
|
-
|
|
1567
|
+
l(G).length ? x("", !0) : (c(), y("tr", _a, [
|
|
1568
|
+
B("td", {
|
|
1542
1569
|
colspan: Math.max(1, p.value.leaves.length)
|
|
1543
1570
|
}, [
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1571
|
+
B("div", to, [
|
|
1572
|
+
S(e.$slots, "empty", {}, () => [
|
|
1573
|
+
I(N(s.emptyText ?? m.value.emptyText), 1)
|
|
1574
|
+
], !0)
|
|
1575
|
+
])
|
|
1576
|
+
], 8, eo)
|
|
1548
1577
|
]))
|
|
1549
1578
|
], 64)),
|
|
1550
|
-
e.$slots.append ? (c(), y("tr",
|
|
1551
|
-
|
|
1579
|
+
e.$slots.append ? (c(), y("tr", lo, [
|
|
1580
|
+
B("td", {
|
|
1552
1581
|
colspan: Math.max(1, p.value.leaves.length)
|
|
1553
1582
|
}, [
|
|
1554
1583
|
S(e.$slots, "append", {
|
|
1555
1584
|
rows: l(i).filteredRows.value
|
|
1556
1585
|
}, void 0, !0)
|
|
1557
|
-
], 8,
|
|
1586
|
+
], 8, ao)
|
|
1558
1587
|
])) : x("", !0)
|
|
1559
1588
|
]),
|
|
1560
1589
|
_: 3
|
|
@@ -1569,8 +1598,8 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1569
1598
|
values: kt.value,
|
|
1570
1599
|
cellAttrs: Yt
|
|
1571
1600
|
}, () => [
|
|
1572
|
-
|
|
1573
|
-
(c(!0), y(A, null, le(p.value.leaves, (o, v) => (c(), y("td",
|
|
1601
|
+
B("tr", null, [
|
|
1602
|
+
(c(!0), y(A, null, le(p.value.leaves, (o, v) => (c(), y("td", L({
|
|
1574
1603
|
key: o.key
|
|
1575
1604
|
}, { ref_for: !0 }, Yt(o)), [
|
|
1576
1605
|
S(e.$slots, "summary-cell", {
|
|
@@ -1579,7 +1608,7 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1579
1608
|
value: kt.value[v],
|
|
1580
1609
|
rows: gt.value
|
|
1581
1610
|
}, () => [
|
|
1582
|
-
|
|
1611
|
+
q(oe, {
|
|
1583
1612
|
value: kt.value[v]
|
|
1584
1613
|
}, null, 8, ["value"])
|
|
1585
1614
|
], !0)
|
|
@@ -1591,29 +1620,29 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1591
1620
|
}),
|
|
1592
1621
|
_: 3
|
|
1593
1622
|
}, 8, ["style"]))
|
|
1594
|
-
], 46,
|
|
1595
|
-
s.loading && s.loadingMode === "overlay" ? (c(), y("div",
|
|
1623
|
+
], 46, Ba),
|
|
1624
|
+
s.loading && s.loadingMode === "overlay" ? (c(), y("div", oo, [
|
|
1596
1625
|
S(e.$slots, "loading", {}, () => [
|
|
1597
|
-
|
|
1626
|
+
q(l(tt), {
|
|
1598
1627
|
class: "hys-ui-table-spinner",
|
|
1599
1628
|
size: 18
|
|
1600
1629
|
}),
|
|
1601
|
-
I(" " +
|
|
1630
|
+
I(" " + N(m.value.loadingText), 1)
|
|
1602
1631
|
], !0)
|
|
1603
1632
|
])) : x("", !0)
|
|
1604
1633
|
]),
|
|
1605
1634
|
(c(), w(Et, { to: "body" }, [
|
|
1606
|
-
l(we) ? (c(), y("div",
|
|
1635
|
+
l(we) ? (c(), y("div", L({
|
|
1607
1636
|
key: 0,
|
|
1608
1637
|
ref_key: "stickyBarElement",
|
|
1609
|
-
ref:
|
|
1610
|
-
}, l(
|
|
1638
|
+
ref: Tl
|
|
1639
|
+
}, l(De), {
|
|
1611
1640
|
class: ["hys-ui-table-sticky-scrollbar", { "hys-ui-table-themed-scrollbar": s.nativeScrollbar === !1 }],
|
|
1612
1641
|
style: {
|
|
1613
1642
|
top: l(we).top + "px",
|
|
1614
1643
|
left: l(we).left + "px",
|
|
1615
1644
|
width: l(we).width + "px",
|
|
1616
|
-
height: l(
|
|
1645
|
+
height: l(zl) + "px",
|
|
1617
1646
|
direction: l(we).direction
|
|
1618
1647
|
},
|
|
1619
1648
|
role: "region",
|
|
@@ -1622,13 +1651,13 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1622
1651
|
onScroll: t[6] || (t[6] = //@ts-ignore
|
|
1623
1652
|
(...d) => l(Xt) && l(Xt)(...d))
|
|
1624
1653
|
}), [
|
|
1625
|
-
|
|
1654
|
+
B("div", {
|
|
1626
1655
|
"aria-hidden": "true",
|
|
1627
1656
|
style: Re({ width: l(we).contentWidth + "px", height: "1px" })
|
|
1628
1657
|
}, null, 4)
|
|
1629
|
-
], 16,
|
|
1658
|
+
], 16, no)) : x("", !0)
|
|
1630
1659
|
])),
|
|
1631
|
-
e.$slots.footer ? (c(), y("div",
|
|
1660
|
+
e.$slots.footer ? (c(), y("div", io, [
|
|
1632
1661
|
S(e.$slots, "footer", {
|
|
1633
1662
|
rows: l(i).filteredRows.value,
|
|
1634
1663
|
pageRows: bt.value,
|
|
@@ -1648,28 +1677,28 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1648
1677
|
setPage: l(i).requestPage,
|
|
1649
1678
|
setPageSize: l(i).changeSize
|
|
1650
1679
|
}, () => [
|
|
1651
|
-
|
|
1680
|
+
q(fl, L({ ref_for: !0 }, qe.value, {
|
|
1652
1681
|
onChange: t[7] || (t[7] = (f) => l(i).requestPage(f)),
|
|
1653
1682
|
onPageSizeChange: l(i).changeSize
|
|
1654
1683
|
}), null, 16, ["onPageSizeChange"])
|
|
1655
1684
|
], !0)
|
|
1656
|
-
], 8,
|
|
1685
|
+
], 8, so))), 128)),
|
|
1657
1686
|
(c(), w(Et, {
|
|
1658
1687
|
to: Gt.value || "body",
|
|
1659
1688
|
disabled: Gt.value === !1
|
|
1660
1689
|
}, [
|
|
1661
|
-
|
|
1690
|
+
q(l(pl), {
|
|
1662
1691
|
"popup-transition": r.popupTransition,
|
|
1663
1692
|
"popup-transition-duration": r.popupTransitionDuration,
|
|
1664
|
-
placement: l(
|
|
1693
|
+
placement: l(D).placement.value
|
|
1665
1694
|
}, {
|
|
1666
|
-
default:
|
|
1667
|
-
l(X) && k.value ? (c(), y("div",
|
|
1695
|
+
default: O(() => [
|
|
1696
|
+
l(X) && k.value ? (c(), y("div", L({
|
|
1668
1697
|
key: 0,
|
|
1669
|
-
id: l(
|
|
1698
|
+
id: l(me) + "-filter",
|
|
1670
1699
|
ref_key: "filterPanel",
|
|
1671
1700
|
ref: wt
|
|
1672
|
-
}, l(
|
|
1701
|
+
}, l(De), {
|
|
1673
1702
|
class: "hys-ui-table-filter-panel hys-ui-floating-surface",
|
|
1674
1703
|
style: l(Dl),
|
|
1675
1704
|
role: "dialog",
|
|
@@ -1683,12 +1712,12 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1683
1712
|
open: l(X),
|
|
1684
1713
|
values: ie.value,
|
|
1685
1714
|
setValues: Rt,
|
|
1686
|
-
confirm:
|
|
1715
|
+
confirm: Me,
|
|
1687
1716
|
clear: Tt,
|
|
1688
|
-
close: () => l(
|
|
1717
|
+
close: () => l(D).close(!0)
|
|
1689
1718
|
}, () => [
|
|
1690
|
-
|
|
1691
|
-
k.value.filters ? (c(), w(
|
|
1719
|
+
B("strong", null, N(k.value.label), 1),
|
|
1720
|
+
k.value.filters ? (c(), w(ha, {
|
|
1692
1721
|
key: k.value.key,
|
|
1693
1722
|
values: ie.value,
|
|
1694
1723
|
"onUpdate:values": t[8] || (t[8] = (d) => ie.value = d),
|
|
@@ -1699,7 +1728,7 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1699
1728
|
disabled: l(h),
|
|
1700
1729
|
"search-label": m.value.filterSearch,
|
|
1701
1730
|
"empty-text": m.value.noFilterMatch
|
|
1702
|
-
}, null, 8, ["values", "options", "mode", "search", "multiple", "disabled", "search-label", "empty-text"])) : (c(), w(
|
|
1731
|
+
}, null, 8, ["values", "options", "mode", "search", "multiple", "disabled", "search-label", "empty-text"])) : (c(), w(pa, {
|
|
1703
1732
|
key: 1,
|
|
1704
1733
|
"model-value": String(ie.value[0] ?? ""),
|
|
1705
1734
|
"aria-label": m.value.filter + k.value.label,
|
|
@@ -1707,31 +1736,31 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1707
1736
|
clearable: "",
|
|
1708
1737
|
size: "sm",
|
|
1709
1738
|
"onUpdate:modelValue": t[9] || (t[9] = (d) => Rt(d ? [d] : [])),
|
|
1710
|
-
onKeydown: $t(
|
|
1739
|
+
onKeydown: $t(_(Me, ["prevent"]), ["enter"])
|
|
1711
1740
|
}, null, 8, ["model-value", "aria-label", "placeholder", "onKeydown"])),
|
|
1712
|
-
|
|
1713
|
-
|
|
1741
|
+
B("div", uo, [
|
|
1742
|
+
q(fe, {
|
|
1714
1743
|
size: "sm",
|
|
1715
1744
|
variant: "secondary",
|
|
1716
1745
|
onClick: t[10] || (t[10] = (d) => Tt())
|
|
1717
1746
|
}, {
|
|
1718
|
-
default:
|
|
1719
|
-
I(
|
|
1747
|
+
default: O(() => [
|
|
1748
|
+
I(N(m.value.reset), 1)
|
|
1720
1749
|
]),
|
|
1721
1750
|
_: 1
|
|
1722
1751
|
}),
|
|
1723
|
-
|
|
1752
|
+
q(fe, {
|
|
1724
1753
|
size: "sm",
|
|
1725
|
-
onClick: t[11] || (t[11] = (d) =>
|
|
1754
|
+
onClick: t[11] || (t[11] = (d) => Me())
|
|
1726
1755
|
}, {
|
|
1727
|
-
default:
|
|
1728
|
-
I(
|
|
1756
|
+
default: O(() => [
|
|
1757
|
+
I(N(m.value.apply), 1)
|
|
1729
1758
|
]),
|
|
1730
1759
|
_: 1
|
|
1731
1760
|
})
|
|
1732
1761
|
])
|
|
1733
1762
|
], !0, 1)
|
|
1734
|
-
], 16,
|
|
1763
|
+
], 16, ro)) : x("", !0)
|
|
1735
1764
|
]),
|
|
1736
1765
|
_: 3
|
|
1737
1766
|
}, 8, ["popup-transition", "popup-transition-duration", "placement"])
|
|
@@ -1740,44 +1769,44 @@ const Sa = ["aria-busy"], xa = {
|
|
|
1740
1769
|
to: el.value || "body",
|
|
1741
1770
|
disabled: el.value === !1
|
|
1742
1771
|
}, [
|
|
1743
|
-
|
|
1772
|
+
q(l(pl), {
|
|
1744
1773
|
"popup-transition": r.popupTransition,
|
|
1745
1774
|
"popup-transition-duration": r.popupTransitionDuration,
|
|
1746
|
-
placement: l(
|
|
1775
|
+
placement: l($).placement.value
|
|
1747
1776
|
}, {
|
|
1748
|
-
default:
|
|
1749
|
-
l(Ye) && (Q.value || re.value) ? (c(), y("div",
|
|
1777
|
+
default: O(() => [
|
|
1778
|
+
l(Ye) && (Q.value || re.value) ? (c(), y("div", L({
|
|
1750
1779
|
key: 0,
|
|
1751
|
-
id: l(
|
|
1780
|
+
id: l(me) + "-tooltip",
|
|
1752
1781
|
ref_key: "tipPanel",
|
|
1753
1782
|
ref: _t
|
|
1754
|
-
}, l(
|
|
1783
|
+
}, l(De), {
|
|
1755
1784
|
class: "hys-ui-table-tooltip hys-ui-floating-tooltip",
|
|
1756
1785
|
"data-effect": ue.value.effect,
|
|
1757
1786
|
role: "tooltip",
|
|
1758
1787
|
style: [
|
|
1759
|
-
l(
|
|
1788
|
+
l(ql),
|
|
1760
1789
|
ue.value.enterable === !1 ? { pointerEvents: "none" } : void 0,
|
|
1761
1790
|
ue.value.maxWidth !== void 0 && ze(ue.value.maxWidth) ? { maxWidth: `min(${ze(ue.value.maxWidth)}, calc(100vw - 20px))` } : void 0
|
|
1762
1791
|
],
|
|
1763
1792
|
onPointerenter: Ft,
|
|
1764
|
-
onPointerleave:
|
|
1793
|
+
onPointerleave: Pe
|
|
1765
1794
|
}), [
|
|
1766
|
-
Q.value ? S(e.$slots, "tooltip",
|
|
1767
|
-
|
|
1795
|
+
Q.value ? S(e.$slots, "tooltip", ca(da(Q.value)), () => [
|
|
1796
|
+
q(oe, { value: al.value }, null, 8, ["value"])
|
|
1768
1797
|
], !0, 0) : (c(), w(oe, {
|
|
1769
1798
|
key: 1,
|
|
1770
1799
|
value: al.value
|
|
1771
1800
|
}, null, 8, ["value"]))
|
|
1772
|
-
], 16,
|
|
1801
|
+
], 16, co)) : x("", !0)
|
|
1773
1802
|
]),
|
|
1774
1803
|
_: 3
|
|
1775
1804
|
}, 8, ["popup-transition", "popup-transition-duration", "placement"])
|
|
1776
1805
|
], 8, ["to", "disabled"]))
|
|
1777
|
-
], 16,
|
|
1806
|
+
], 16, Ta);
|
|
1778
1807
|
};
|
|
1779
1808
|
}
|
|
1780
1809
|
});
|
|
1781
1810
|
export {
|
|
1782
|
-
|
|
1811
|
+
Fo as default
|
|
1783
1812
|
};
|