hys-ui 0.2.0 → 0.4.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 +59 -0
- package/README.md +68 -59
- package/dist/components/HysAlert/HysAlert.vue.js +5 -54
- package/dist/components/HysAlert/HysAlert2.vue.js +159 -2
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +5 -41
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber2.vue.js +146 -2
- package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +2 -2
- package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +285 -273
- package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +1 -1
- package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +102 -98
- package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +1 -1
- package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +273 -59
- package/dist/components/HysButton/HysButton.vue.js +2 -2
- package/dist/components/HysButton/HysButton2.vue.js +227 -60
- package/dist/components/HysButtonGroup/HysButtonGroup.vue.js +7 -0
- package/dist/components/HysButtonGroup/HysButtonGroup2.vue.js +51 -0
- package/dist/components/HysCalendar/HysCalendar.vue.js +3 -3
- package/dist/components/HysCalendar/HysCalendar2.vue.js +237 -225
- package/dist/components/HysCascader/HysCascader.vue.js +2 -2
- package/dist/components/HysCascader/HysCascader2.vue.js +337 -324
- package/dist/components/HysColorPicker/HysColorPanel.vue.js +7 -0
- package/dist/components/HysColorPicker/HysColorPanel2.vue.js +238 -0
- package/dist/components/HysColorPicker/HysColorPicker.vue.js +2 -2
- package/dist/components/HysColorPicker/HysColorPicker2.vue.js +239 -217
- package/dist/components/HysCommandPalette/HysCommandPalette.vue.js +90 -76
- package/dist/components/HysContextMenu/HysContextMenu.vue.js +5 -89
- package/dist/components/HysContextMenu/HysContextMenu2.vue.js +247 -2
- package/dist/components/HysContextMenu/HysMenuPanel.vue.js +7 -0
- package/dist/components/HysContextMenu/HysMenuPanel2.vue.js +208 -0
- package/dist/components/HysContextMenu/HysMenuSlot.js +10 -0
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +1008 -559
- package/dist/components/HysDatePicker/HysDatePicker.vue.js +2 -0
- package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +2 -2
- package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +539 -526
- package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +5 -3
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +434 -84
- package/dist/components/HysEmpty/HysEmpty.vue.js +5 -41
- package/dist/components/HysEmpty/HysEmpty2.vue.js +181 -2
- package/dist/components/HysFormItem/HysFormItem.vue.js +2 -2
- package/dist/components/HysFormItem/HysFormItem2.vue.js +171 -164
- package/dist/components/HysGantt/HysGantt.vue.js +1 -1
- package/dist/components/HysGantt/HysGantt2.vue.js +810 -795
- package/dist/components/HysMention/HysMention.vue.js +1 -1
- package/dist/components/HysMention/HysMention2.vue.js +1092 -142
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +491 -85
- package/dist/components/HysPagination/HysPagination.vue.js +2 -2
- package/dist/components/HysPagination/HysPagination2.vue.js +243 -180
- package/dist/components/HysPopover/HysPopover.vue.js +5 -91
- package/dist/components/HysPopover/HysPopover2.vue.js +120 -2
- package/dist/components/HysProgress/HysProgress.vue.js +2 -2
- package/dist/components/HysProgress/HysProgress2.vue.js +319 -52
- package/dist/components/HysSearch/HysSearch.vue.js +5 -82
- package/dist/components/HysSearch/HysSearch2.vue.js +176 -2
- package/dist/components/HysSelect/HysSelect.vue.js +2 -2
- package/dist/components/HysSelect/HysSelect2.vue.js +755 -590
- package/dist/components/HysSlider/HysSlider.vue.js +2 -2
- package/dist/components/HysSlider/HysSlider2.vue.js +192 -188
- package/dist/components/HysSlider/SliderTooltip.vue.js +2 -2
- package/dist/components/HysSlider/SliderTooltip2.vue.js +103 -89
- package/dist/components/HysSplitPane/HysSplitPane.vue.js +315 -58
- package/dist/components/HysSplitPane/HysSplitPane3.vue.js +5 -0
- package/dist/components/HysTable/HysTable.vue.js +2 -2
- package/dist/components/HysTable/HysTable2.vue.js +1416 -1127
- package/dist/components/HysTagInput/HysTagInput.vue.js +5 -82
- package/dist/components/HysTagInput/HysTagInput2.vue.js +396 -2
- package/dist/components/HysTimeline/HysTimeline.vue.js +2 -2
- package/dist/components/HysTimeline/HysTimeline2.vue.js +243 -24
- package/dist/components/HysTooltip/HysTooltip.vue.js +5 -64
- package/dist/components/HysTooltip/HysTooltip2.vue.js +110 -2
- package/dist/components/HysTour/HysTour.vue.js +291 -63
- package/dist/components/HysTour/HysTour3.vue.js +5 -0
- package/dist/components/HysTransfer/HysTransfer.vue.js +2 -2
- package/dist/components/HysTransfer/HysTransfer2.vue.js +237 -207
- package/dist/components/HysTransfer/HysTransferPanel.vue.js +1 -1
- package/dist/components/HysTransfer/HysTransferPanel2.vue.js +320 -271
- package/dist/components/HysTree/HysTree.vue.js +2 -2
- package/dist/components/HysTree/HysTree2.vue.js +195 -184
- package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +4 -4
- package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +389 -377
- package/dist/components/HysUpload/HysUpload.vue.js +2 -2
- package/dist/components/HysUpload/HysUpload2.vue.js +459 -125
- package/dist/components/HysVirtualTable/HysVirtualTable.vue.js +5 -94
- package/dist/components/HysVirtualTable/HysVirtualTable2.vue.js +656 -2
- package/dist/composables/buttonGroup.js +12 -0
- package/dist/composables/color.js +97 -0
- package/dist/composables/dataGrid.js +68 -0
- package/dist/composables/drawer.js +17 -0
- package/dist/composables/feedback.js +14 -0
- package/dist/composables/floatingPosition.js +18 -0
- package/dist/composables/mentionDocument.js +79 -0
- package/dist/composables/mentionEditor.js +58 -0
- package/dist/composables/menu.js +96 -0
- package/dist/composables/modal.js +14 -0
- package/dist/composables/overlayManager.js +48 -18
- package/dist/composables/progress.js +94 -0
- package/dist/composables/selectOptions.js +44 -38
- package/dist/composables/splitPaneSizes.js +58 -0
- package/dist/composables/table.js +128 -105
- package/dist/composables/tagInput.js +16 -0
- package/dist/composables/timeline.js +19 -0
- package/dist/composables/transfer.js +19 -17
- package/dist/composables/upload.js +55 -0
- package/dist/composables/uploadRequest.js +58 -0
- package/dist/composables/useAlert.js +124 -0
- package/dist/composables/useColorPicker.js +402 -0
- package/dist/composables/useContextMenu.js +514 -0
- package/dist/composables/useDataGridRemote.js +67 -0
- package/dist/composables/useDialog.js +86 -43
- package/dist/composables/useDrawerPush.js +33 -0
- package/dist/composables/useDrawerResize.js +221 -0
- package/dist/composables/useFloating.js +118 -80
- package/dist/composables/useHysModal.js +185 -0
- package/dist/composables/useMentionCaret.js +81 -0
- package/dist/composables/useMentionList.js +81 -0
- package/dist/composables/useMentionModel.js +90 -0
- package/dist/composables/useMentionOptions.js +421 -0
- package/dist/composables/useModal.js +295 -0
- package/dist/composables/useModalInteraction.js +394 -0
- package/dist/composables/usePopupSurface.js +458 -0
- package/dist/composables/useSplitPaneDrag.js +52 -0
- package/dist/composables/useSplitPaneStorage.js +38 -0
- package/dist/composables/useTable.js +344 -312
- package/dist/composables/useTableSticky.js +79 -0
- package/dist/composables/useTagInput.js +313 -0
- package/dist/composables/useTourLayout.js +129 -0
- package/dist/composables/useTransferMotion.js +185 -0
- package/dist/composables/useUpload.js +472 -0
- package/dist/composables/useUploadModel.js +65 -0
- package/dist/composables/useUploadRequests.js +266 -0
- package/dist/composables/useVirtualTableLayout.js +277 -0
- package/dist/composables/virtualTable.js +43 -0
- package/dist/config.js +11 -11
- package/dist/index.js +175 -153
- package/dist/internal/MultiSplitPane.vue.js +305 -0
- package/dist/internal/MultiSplitPane2.vue.js +4 -0
- package/dist/internal/PopupReference.js +39 -0
- package/dist/internal/PopupSurfacePanel.vue.js +7 -0
- package/dist/internal/PopupSurfacePanel2.vue.js +92 -0
- package/dist/motion/PopupMotion.js +105 -0
- package/dist/motion/popup.js +10 -0
- package/dist/style.css +1 -1
- package/dist/types/components/HysAlert/HysAlert.vue.d.ts +32 -22
- package/dist/types/components/HysAnimatedNumber/HysAnimatedNumber.vue.d.ts +61 -7
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +7 -7
- package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +6 -1
- package/dist/types/components/HysBadge/HysBadge.vue.d.ts +3 -3
- package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +54 -31
- package/dist/types/components/HysButton/HysButton.vue.d.ts +82 -22
- package/dist/types/components/HysButtonGroup/HysButtonGroup.vue.d.ts +30 -0
- package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +3 -2
- package/dist/types/components/HysCascader/HysCascader.vue.d.ts +7 -7
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +2 -2
- package/dist/types/components/HysColorPicker/HysColorPanel.vue.d.ts +58 -0
- package/dist/types/components/HysColorPicker/HysColorPicker.vue.d.ts +63 -10
- package/dist/types/components/HysCommandPalette/HysCommandPalette.vue.d.ts +2 -1
- package/dist/types/components/HysContextMenu/HysContextMenu.vue.d.ts +50 -34
- package/dist/types/components/HysContextMenu/HysMenuPanel.vue.d.ts +79 -0
- package/dist/types/components/HysContextMenu/HysMenuSlot.d.ts +8 -0
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +65 -118
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +3 -3
- package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +92 -35
- package/dist/types/components/HysEmpty/HysEmpty.vue.d.ts +24 -20
- package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +2 -2
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +2 -1
- package/dist/types/components/HysMention/HysMention.vue.d.ts +91 -39
- package/dist/types/components/HysModal/HysModal.vue.d.ts +111 -34
- package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +2 -2
- package/dist/types/components/HysPagination/HysPagination.vue.d.ts +55 -4
- package/dist/types/components/HysPopover/HysPopover.vue.d.ts +41 -29
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +18 -24
- package/dist/types/components/HysRating/HysRating.vue.d.ts +1 -1
- package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +2 -2
- package/dist/types/components/HysSearch/HysSearch.vue.d.ts +45 -7
- package/dist/types/components/HysSelect/HysSelect.vue.d.ts +19 -5
- package/dist/types/components/HysSlider/HysSlider.vue.d.ts +5 -4
- package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +3 -1
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +125 -14
- package/dist/types/components/HysSteps/HysSteps.vue.d.ts +1 -1
- package/dist/types/components/HysTable/HysTable.vue.d.ts +1742 -5
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +2 -2
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +47 -25
- package/dist/types/components/HysTimeline/HysTimeline.vue.d.ts +19 -32
- package/dist/types/components/HysTooltip/HysTooltip.vue.d.ts +39 -19
- package/dist/types/components/HysTour/HysTour.vue.d.ts +46 -8
- package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +2 -2
- package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +5 -3
- package/dist/types/components/HysTree/HysTree.vue.d.ts +2 -2
- package/dist/types/components/HysUpload/HysUpload.vue.d.ts +55 -67
- package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +71 -40
- package/dist/types/composables/autocomplete.d.ts +3 -0
- package/dist/types/composables/avatar.d.ts +3 -0
- package/dist/types/composables/buttonGroup.d.ts +9 -0
- package/dist/types/composables/cascader.d.ts +3 -0
- package/dist/types/composables/color.d.ts +97 -0
- package/dist/types/composables/dataGrid.d.ts +100 -0
- package/dist/types/composables/datePicker.d.ts +3 -0
- package/dist/types/composables/drawer.d.ts +102 -0
- package/dist/types/composables/feedback.d.ts +98 -0
- package/dist/types/composables/floatingPosition.d.ts +14 -0
- package/dist/types/composables/formContext.d.ts +2 -0
- package/dist/types/composables/mention.d.ts +284 -0
- package/dist/types/composables/mentionDocument.d.ts +15 -0
- package/dist/types/composables/mentionEditor.d.ts +7 -0
- package/dist/types/composables/menu.d.ts +183 -0
- package/dist/types/composables/modal.d.ts +185 -0
- package/dist/types/composables/overlayManager.d.ts +7 -3
- package/dist/types/composables/popupSurface.d.ts +83 -0
- package/dist/types/composables/progress.d.ts +92 -0
- package/dist/types/composables/selectOptions.d.ts +7 -0
- package/dist/types/composables/splitPaneSizes.d.ts +11 -0
- package/dist/types/composables/table.d.ts +119 -6
- package/dist/types/composables/tagInput.d.ts +96 -0
- package/dist/types/composables/timeline.d.ts +82 -0
- package/dist/types/composables/tour.d.ts +68 -0
- package/dist/types/composables/transfer.d.ts +7 -0
- package/dist/types/composables/tree.d.ts +3 -0
- package/dist/types/composables/treeSelect.d.ts +3 -0
- package/dist/types/composables/upload.d.ts +202 -0
- package/dist/types/composables/uploadRequest.d.ts +3 -0
- package/dist/types/composables/useAlert.d.ts +21 -0
- package/dist/types/composables/useCascader.d.ts +1 -1
- package/dist/types/composables/useColorPicker.d.ts +101 -0
- package/dist/types/composables/useContextMenu.d.ts +81 -0
- package/dist/types/composables/useDataGridRemote.d.ts +15 -0
- package/dist/types/composables/useDialog.d.ts +16 -3
- package/dist/types/composables/useDrawerPush.d.ts +6 -0
- package/dist/types/composables/useDrawerResize.d.ts +27 -0
- package/dist/types/composables/useFloating.d.ts +22 -3
- package/dist/types/composables/useHysModal.d.ts +44 -0
- package/dist/types/composables/useMentionCaret.d.ts +6 -0
- package/dist/types/composables/useMentionList.d.ts +23 -0
- package/dist/types/composables/useMentionModel.d.ts +14 -0
- package/dist/types/composables/useMentionOptions.d.ts +26 -0
- package/dist/types/composables/useModal.d.ts +62 -0
- package/dist/types/composables/useModalInteraction.d.ts +27 -0
- package/dist/types/composables/usePopupSurface.d.ts +3341 -0
- package/dist/types/composables/useSplitPaneDrag.d.ts +14 -0
- package/dist/types/composables/useSplitPaneStorage.d.ts +4 -0
- package/dist/types/composables/useTable.d.ts +7 -3
- package/dist/types/composables/useTableSticky.d.ts +22 -0
- package/dist/types/composables/useTagInput.d.ts +66 -0
- package/dist/types/composables/useTourLayout.d.ts +33 -0
- package/dist/types/composables/useTransferMotion.d.ts +36 -0
- package/dist/types/composables/useUpload.d.ts +94 -0
- package/dist/types/composables/useUploadModel.d.ts +14 -0
- package/dist/types/composables/useUploadRequests.d.ts +38 -0
- package/dist/types/composables/useVirtualTableLayout.d.ts +51 -0
- package/dist/types/composables/virtualTable.d.ts +126 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/types/index.d.ts +53 -3
- package/dist/types/internal/MultiSplitPane.vue.d.ts +54 -0
- package/dist/types/internal/PopupReference.d.ts +18 -0
- package/dist/types/internal/PopupSurfacePanel.vue.d.ts +37 -0
- package/dist/types/motion/PopupMotion.d.ts +59 -0
- package/dist/types/motion/popup.d.ts +12 -0
- package/package.json +3 -2
- package/dist/components/HysSplitPane/HysSplitPane2.vue.js +0 -4
- package/dist/components/HysTour/HysTour2.vue.js +0 -4
package/dist/index.js
CHANGED
|
@@ -1,156 +1,178 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as N } from "./components/
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as K } from "./components/
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as re } from "./components/
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as Ne } from "./components/
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as Ke } from "./components/
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
2
|
+
import { default as s } from "./components/HysAccordion/HysAccordion.vue.js";
|
|
3
|
+
import { default as m } from "./components/HysAlert/HysAlert.vue.js";
|
|
4
|
+
import { default as p } from "./components/HysAnimatedNumber/HysAnimatedNumber.vue.js";
|
|
5
|
+
import { default as u } from "./components/HysAutocomplete/HysAutocomplete.vue.js";
|
|
6
|
+
import { default as y } from "./components/HysAvatar/HysAvatar.vue.js";
|
|
7
|
+
import { default as i } from "./components/HysAvatarGroup/HysAvatarGroup.vue.js";
|
|
8
|
+
import { default as c } from "./components/HysBadge/HysBadge.vue.js";
|
|
9
|
+
import { default as C } from "./components/HysBreadcrumb/HysBreadcrumb.vue.js";
|
|
10
|
+
import { default as g } from "./components/HysButton/HysButton.vue.js";
|
|
11
|
+
import { default as S } from "./components/HysButtonGroup/HysButtonGroup.vue.js";
|
|
12
|
+
import { default as h } from "./components/HysCalendar/HysCalendar.vue.js";
|
|
13
|
+
import { default as E } from "./components/HysCalendarNavigation/HysCalendarNavigation.vue.js";
|
|
14
|
+
import { default as v } from "./components/HysCard/HysCard.vue.js";
|
|
15
|
+
import { default as G } from "./components/HysCascader/HysCascader.vue.js";
|
|
16
|
+
import { default as I } from "./components/HysChart/HysChart.vue.js";
|
|
17
|
+
import { default as B } from "./components/HysCheckbox/HysCheckbox.vue.js";
|
|
18
|
+
import { default as N } from "./components/HysCheckboxGroup/HysCheckboxGroup.vue.js";
|
|
19
|
+
import { default as L } from "./components/HysColorPicker/HysColorPicker.vue.js";
|
|
20
|
+
import { default as V } from "./components/HysColorTokenEditor/HysColorTokenEditor.vue.js";
|
|
21
|
+
import { default as K } from "./components/HysCommandPalette/HysCommandPalette.vue.js";
|
|
22
|
+
import { default as j } from "./components/HysCommentEditor/HysCommentEditor.vue.js";
|
|
23
|
+
import { default as Q } from "./components/HysContextMenu/HysContextMenu.vue.js";
|
|
24
|
+
import { default as X } from "./components/HysCronEditor/HysCronEditor.vue.js";
|
|
25
|
+
import { default as Z } from "./components/HysDataGrid/HysDataGrid.vue.js";
|
|
26
|
+
import { default as $ } from "./components/HysDatePicker/HysDatePicker.vue.js";
|
|
27
|
+
import { default as te } from "./components/HysDateRangePicker/HysDateRangePicker.vue.js";
|
|
28
|
+
import { default as re } from "./components/HysDiffViewer/HysDiffViewer.vue.js";
|
|
29
|
+
import { default as se } from "./components/HysDivider/HysDivider.vue.js";
|
|
30
|
+
import { default as me } from "./components/HysDrawer/HysDrawer.vue.js";
|
|
31
|
+
import { default as pe } from "./components/HysEmpty/HysEmpty.vue.js";
|
|
32
|
+
import { default as ue } from "./components/HysFileManager/HysFileManager.vue.js";
|
|
33
|
+
import { default as ye } from "./components/HysForm/HysForm.vue.js";
|
|
34
|
+
import { default as ie } from "./components/HysFormItem/HysFormItem.vue.js";
|
|
35
|
+
import { default as ce } from "./components/HysGantt/HysGantt.vue.js";
|
|
36
|
+
import { default as Ce } from "./components/HysInput/HysInput.vue.js";
|
|
37
|
+
import { default as ge } from "./components/HysJsonEditor/HysJsonEditor.vue.js";
|
|
38
|
+
import { default as Se } from "./components/HysKanban/HysKanban.vue.js";
|
|
39
|
+
import { default as he } from "./components/HysMention/HysMention.vue.js";
|
|
40
|
+
import { default as Ee } from "./components/HysModal/HysModal.vue.js";
|
|
41
|
+
import { default as ve } from "./components/HysNotificationCenter/HysNotificationCenter.vue.js";
|
|
42
|
+
import { default as Ge } from "./components/HysNumberInput/HysNumberInput.vue.js";
|
|
43
|
+
import { default as Ie } from "./components/HysOrgTree/HysOrgTree.vue.js";
|
|
44
|
+
import { default as Be } from "./components/HysPagination/HysPagination.vue.js";
|
|
45
|
+
import { default as Ne } from "./components/HysPermissionMatrix/HysPermissionMatrix.vue.js";
|
|
46
|
+
import { default as Le } from "./components/HysPopover/HysPopover.vue.js";
|
|
47
|
+
import { default as Ve } from "./components/HysProgress/HysProgress.vue.js";
|
|
48
|
+
import { default as Ke } from "./components/HysRadio/HysRadio.vue.js";
|
|
49
|
+
import { default as je } from "./components/HysRadioGroup/HysRadioGroup.vue.js";
|
|
50
|
+
import { default as Qe } from "./components/HysRating/HysRating.vue.js";
|
|
51
|
+
import { default as Xe } from "./components/HysResizablePanel/HysResizablePanel.vue.js";
|
|
52
|
+
import { default as Ze } from "./components/HysRichTextEditor/HysRichTextEditor.vue.js";
|
|
53
|
+
import { default as $e } from "./components/HysSearch/HysSearch.vue.js";
|
|
54
|
+
import { default as tt } from "./components/HysSegmented/HysSegmented.vue.js";
|
|
55
|
+
import { default as rt } from "./components/HysSelect/HysSelect.vue.js";
|
|
56
|
+
import { default as st } from "./components/HysShortcutHelp/HysShortcutHelp.vue.js";
|
|
57
|
+
import { default as mt } from "./components/HysSkeleton/HysSkeleton.vue.js";
|
|
58
|
+
import { default as pt } from "./components/HysSlider/HysSlider.vue.js";
|
|
59
|
+
import { default as ut } from "./components/HysSortableList/HysSortableList.vue.js";
|
|
60
|
+
import { default as yt } from "./components/HysSplitPane/HysSplitPane.vue.js";
|
|
61
|
+
/* empty css */
|
|
62
|
+
import { default as it } from "./components/HysSteps/HysSteps.vue.js";
|
|
63
|
+
import { default as ct } from "./components/HysSwitch/HysSwitch.vue.js";
|
|
64
|
+
import { default as Ct } from "./components/HysTable/HysTable.vue.js";
|
|
65
|
+
import { default as gt } from "./components/HysTabs/HysTabs.vue.js";
|
|
66
|
+
import { default as St } from "./components/HysTagInput/HysTagInput.vue.js";
|
|
67
|
+
import { default as ht } from "./components/HysTextarea/HysTextarea.vue.js";
|
|
68
|
+
import { default as Et } from "./components/HysTimeline/HysTimeline.vue.js";
|
|
69
|
+
import { default as vt } from "./components/HysToast/HysToast.vue.js";
|
|
70
|
+
import { default as Gt } from "./components/HysTooltip/HysTooltip.vue.js";
|
|
71
|
+
import { default as It } from "./components/HysTour/HysTour.vue.js";
|
|
72
|
+
/* empty css */
|
|
73
|
+
import { default as Bt } from "./components/HysTransfer/HysTransfer.vue.js";
|
|
74
|
+
import { default as Nt } from "./components/HysTree/HysTree.vue.js";
|
|
75
|
+
import { default as Lt } from "./components/HysTreeSelect/HysTreeSelect.vue.js";
|
|
76
|
+
import { default as Vt } from "./components/HysUpload/HysUpload.vue.js";
|
|
77
|
+
import { default as Kt } from "./components/HysVirtualTable/HysVirtualTable.vue.js";
|
|
78
|
+
import { provideHysConfig as jt } from "./config.js";
|
|
79
|
+
import { useHysFormItemContext as Qt } from "./composables/formContext.js";
|
|
80
|
+
import { createHysToast as Xt, useHysToast as Yt } from "./composables/useHysToast.js";
|
|
81
|
+
import { deserializeMentionDocument as _t, matchMention as $t, mentionTriggers as eo, normalizeMentionEntities as to, rebaseMentionEntities as oo, serializeMentionDocument as ro } from "./composables/mentionDocument.js";
|
|
82
|
+
import { useMentionOptions as so } from "./composables/useMentionOptions.js";
|
|
83
|
+
import { useMentionList as mo } from "./composables/useMentionList.js";
|
|
84
|
+
import { useMentionCaret as po } from "./composables/useMentionCaret.js";
|
|
85
|
+
import { useMentionModel as xo } from "./composables/useMentionModel.js";
|
|
86
|
+
import { createHysModal as Ho, useHysModal as io } from "./composables/useHysModal.js";
|
|
78
87
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
N as
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
K as
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
re as
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
Ne as
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
Ke as
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
88
|
+
s as HysAccordion,
|
|
89
|
+
m as HysAlert,
|
|
90
|
+
p as HysAnimatedNumber,
|
|
91
|
+
u as HysAutocomplete,
|
|
92
|
+
y as HysAvatar,
|
|
93
|
+
i as HysAvatarGroup,
|
|
94
|
+
c as HysBadge,
|
|
95
|
+
C as HysBreadcrumb,
|
|
96
|
+
g as HysButton,
|
|
97
|
+
S as HysButtonGroup,
|
|
98
|
+
h as HysCalendar,
|
|
99
|
+
E as HysCalendarNavigation,
|
|
100
|
+
v as HysCard,
|
|
101
|
+
G as HysCascader,
|
|
102
|
+
I as HysChart,
|
|
103
|
+
B as HysCheckbox,
|
|
104
|
+
N as HysCheckboxGroup,
|
|
105
|
+
L as HysColorPicker,
|
|
106
|
+
V as HysColorTokenEditor,
|
|
107
|
+
K as HysCommandPalette,
|
|
108
|
+
j as HysCommentEditor,
|
|
109
|
+
Q as HysContextMenu,
|
|
110
|
+
X as HysCronEditor,
|
|
111
|
+
Z as HysDataGrid,
|
|
112
|
+
$ as HysDatePicker,
|
|
113
|
+
te as HysDateRangePicker,
|
|
114
|
+
re as HysDiffViewer,
|
|
115
|
+
se as HysDivider,
|
|
116
|
+
me as HysDrawer,
|
|
117
|
+
pe as HysEmpty,
|
|
118
|
+
ue as HysFileManager,
|
|
119
|
+
ye as HysForm,
|
|
120
|
+
ie as HysFormItem,
|
|
121
|
+
ce as HysGantt,
|
|
122
|
+
Ce as HysInput,
|
|
123
|
+
ge as HysJsonEditor,
|
|
124
|
+
Se as HysKanban,
|
|
125
|
+
he as HysMention,
|
|
126
|
+
Ee as HysModal,
|
|
127
|
+
ve as HysNotificationCenter,
|
|
128
|
+
Ge as HysNumberInput,
|
|
129
|
+
Ie as HysOrgTree,
|
|
130
|
+
Be as HysPagination,
|
|
131
|
+
Ne as HysPermissionMatrix,
|
|
132
|
+
Le as HysPopover,
|
|
133
|
+
Ve as HysProgress,
|
|
134
|
+
Ke as HysRadio,
|
|
135
|
+
je as HysRadioGroup,
|
|
136
|
+
Qe as HysRating,
|
|
137
|
+
Xe as HysResizablePanel,
|
|
138
|
+
Ze as HysRichTextEditor,
|
|
139
|
+
$e as HysSearch,
|
|
140
|
+
tt as HysSegmented,
|
|
141
|
+
rt as HysSelect,
|
|
142
|
+
st as HysShortcutHelp,
|
|
143
|
+
mt as HysSkeleton,
|
|
144
|
+
pt as HysSlider,
|
|
145
|
+
ut as HysSortableList,
|
|
146
|
+
yt as HysSplitPane,
|
|
147
|
+
it as HysSteps,
|
|
148
|
+
ct as HysSwitch,
|
|
149
|
+
Ct as HysTable,
|
|
150
|
+
gt as HysTabs,
|
|
151
|
+
St as HysTagInput,
|
|
152
|
+
ht as HysTextarea,
|
|
153
|
+
Et as HysTimeline,
|
|
154
|
+
vt as HysToast,
|
|
155
|
+
Gt as HysTooltip,
|
|
156
|
+
It as HysTour,
|
|
157
|
+
Bt as HysTransfer,
|
|
158
|
+
Nt as HysTree,
|
|
159
|
+
Lt as HysTreeSelect,
|
|
160
|
+
Vt as HysUpload,
|
|
161
|
+
Kt as HysVirtualTable,
|
|
162
|
+
Ho as createHysModal,
|
|
163
|
+
Xt as createHysToast,
|
|
164
|
+
_t as deserializeMentionDocument,
|
|
165
|
+
$t as matchMention,
|
|
166
|
+
eo as mentionTriggers,
|
|
167
|
+
to as normalizeMentionEntities,
|
|
168
|
+
jt as provideHysConfig,
|
|
169
|
+
oo as rebaseMentionEntities,
|
|
170
|
+
ro as serializeMentionDocument,
|
|
171
|
+
Qt as useHysFormItemContext,
|
|
172
|
+
io as useHysModal,
|
|
173
|
+
Yt as useHysToast,
|
|
174
|
+
po as useMentionCaret,
|
|
175
|
+
mo as useMentionList,
|
|
176
|
+
xo as useMentionModel,
|
|
177
|
+
so as useMentionOptions
|
|
156
178
|
};
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { defineComponent as $e, useId as De, ref as D, computed as p, watch as H, onMounted as Oe, onActivated as Be, onDeactivated as Ie, onBeforeUnmount as Le, openBlock as b, createElementBlock as w, mergeProps as x, unref as ee, Fragment as F, renderList as ve, createElementVNode as T, normalizeStyle as Ke, renderSlot as te, createTextVNode as He, toDisplayString as Ne, normalizeClass as je, createBlock as Ve, resolveDynamicComponent as We, createCommentVNode as ae, nextTick as J } from "vue";
|
|
2
|
+
import { ChevronUp as _e, ChevronRight as fe, ChevronLeft as de, ChevronDown as qe } from "lucide-vue-next";
|
|
3
|
+
import { useHysRootAttrs as Ue } from "../config.js";
|
|
4
|
+
import { paneRatio as N, fitPaneSizes as Fe, paneEpsilon as d } from "../composables/splitPaneSizes.js";
|
|
5
|
+
import { useSplitPaneDrag as Te } from "../composables/useSplitPaneDrag.js";
|
|
6
|
+
import { useSplitPaneStorage as Je, readStoredPaneSizes as Ge } from "../composables/useSplitPaneStorage.js";
|
|
7
|
+
const Qe = ["id", "data-hys-pane", "inert"], Xe = ["data-hys-separator"], Ye = ["tabindex", "aria-label", "aria-controls", "aria-disabled", "aria-orientation", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-keyshortcuts", "data-resizing", "onPointerdown", "onKeydown", "onDblclick"], Ze = {
|
|
8
|
+
class: "hys-ui-splitter-grip",
|
|
9
|
+
"aria-hidden": "true"
|
|
10
|
+
}, xe = ["aria-label", "aria-controls", "aria-expanded", "data-collapsed", "disabled", "onClick"], et = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "hys-ui-splitter-preview",
|
|
13
|
+
"aria-hidden": "true"
|
|
14
|
+
}, nt = /* @__PURE__ */ $e({
|
|
15
|
+
__name: "MultiSplitPane",
|
|
16
|
+
props: {
|
|
17
|
+
panels: {},
|
|
18
|
+
sizes: {},
|
|
19
|
+
vertical: { type: Boolean },
|
|
20
|
+
disabled: { type: Boolean },
|
|
21
|
+
lazy: { type: Boolean },
|
|
22
|
+
step: {},
|
|
23
|
+
ariaLabel: {},
|
|
24
|
+
storageKey: {},
|
|
25
|
+
dividerSize: {},
|
|
26
|
+
doubleClickAction: {}
|
|
27
|
+
},
|
|
28
|
+
emits: ["update:sizes", "panelResizeStart", "panelResize", "panelResizeEnd", "panelCollapse"],
|
|
29
|
+
setup(S, { expose: me, emit: pe }) {
|
|
30
|
+
const n = S, k = pe, he = Ue(), ye = De(), O = D(), v = D(0), C = D(!1), j = D(), V = D();
|
|
31
|
+
Je(
|
|
32
|
+
() => n.sizes === void 0 && n.storageKey ? n.storageKey + ":panels" : void 0,
|
|
33
|
+
j,
|
|
34
|
+
Ge
|
|
35
|
+
);
|
|
36
|
+
const B = D(), u = p(() => {
|
|
37
|
+
const e = /* @__PURE__ */ new Set();
|
|
38
|
+
return n.panels.filter((t) => e.has(t.id) ? !1 : (e.add(t.id), !0));
|
|
39
|
+
}), f = p(() => u.value.map((e) => e.id)), I = (e) => `${ye}-${e}`, P = p(() => Math.max(0, u.value.length - 1)), W = p(() => {
|
|
40
|
+
const e = n.sizes ?? j.value;
|
|
41
|
+
return u.value.map((t) => e && Object.hasOwn(e, t.id) ? e[t.id] : t.size);
|
|
42
|
+
}), g = p(() => u.value.map((e) => {
|
|
43
|
+
const t = Math.min(100, N(e.min, v.value) ?? 0);
|
|
44
|
+
return { min: t, max: Math.max(t, Math.min(100, N(e.max, v.value) ?? 100)) };
|
|
45
|
+
})), r = p(() => Fe(u.value.map((e, t) => {
|
|
46
|
+
const a = W.value[t], i = N(a, v.value);
|
|
47
|
+
return i === 0 && e.collapsible ? { preferred: i, min: 0, max: 0 } : { ...g.value[t], preferred: i, relative: typeof a == "string" && a.endsWith("%") };
|
|
48
|
+
}))), be = p(() => u.value.filter((e, t) => e.collapsible && r.value[t] <= d).map((e) => e.id)), _ = (e) => e * v.value / 100, G = (e, t) => typeof t == "number" ? _(e) : t != null && t.endsWith("px") ? `${_(e)}px` : `${e}%`, q = /* @__PURE__ */ new Map();
|
|
49
|
+
H(
|
|
50
|
+
() => f.value.map((e, t) => ({ key: e, ratio: r.value[t], length: W.value[t] })),
|
|
51
|
+
(e) => {
|
|
52
|
+
for (const t of e)
|
|
53
|
+
t.ratio > d && q.set(t.key, v.value > 0 ? G(t.ratio, t.length) : t.length ?? G(t.ratio, void 0));
|
|
54
|
+
for (const t of q.keys())
|
|
55
|
+
f.value.includes(t) || q.delete(t);
|
|
56
|
+
},
|
|
57
|
+
{ immediate: !0 }
|
|
58
|
+
), H(be, (e, t) => {
|
|
59
|
+
for (const a of t) !e.includes(a) && f.value.includes(a) && k("panelCollapse", a, !1);
|
|
60
|
+
for (const a of e) t.includes(a) || k("panelCollapse", a, !0);
|
|
61
|
+
});
|
|
62
|
+
function Q(e, t) {
|
|
63
|
+
return e.length === t.length && e.every((a, i) => Math.abs(a - t[i]) <= d);
|
|
64
|
+
}
|
|
65
|
+
function L(e) {
|
|
66
|
+
if (Q(e, r.value)) return;
|
|
67
|
+
const t = Object.fromEntries(f.value.map((a, i) => [a, G(e[i], W.value[i])]));
|
|
68
|
+
n.sizes === void 0 && (j.value = t), k("update:sizes", t);
|
|
69
|
+
}
|
|
70
|
+
function le(e = r.value) {
|
|
71
|
+
return Object.fromEntries(f.value.map((t, a) => [t, _(e[a])]));
|
|
72
|
+
}
|
|
73
|
+
function X(e, t, a, i = r.value) {
|
|
74
|
+
return { separator: e, before: t, after: a, sizes: le(i) };
|
|
75
|
+
}
|
|
76
|
+
function K(e, t, a) {
|
|
77
|
+
const i = [...e];
|
|
78
|
+
return i[t + 1] = Math.max(0, e[t] + e[t + 1] - a), i[t] = a, i;
|
|
79
|
+
}
|
|
80
|
+
function R(e) {
|
|
81
|
+
const t = r.value[e], a = t + r.value[e + 1], i = g.value[e], s = g.value[e + 1], l = Math.max(i.min, a - s.max), o = Math.min(i.max, a - s.min);
|
|
82
|
+
return l > o ? { min: t, max: t } : { min: l, max: o };
|
|
83
|
+
}
|
|
84
|
+
function A(e) {
|
|
85
|
+
var i, s;
|
|
86
|
+
if (n.disabled || ((i = u.value[e]) == null ? void 0 : i.resizable) === !1 || ((s = u.value[e + 1]) == null ? void 0 : s.resizable) === !1) return !1;
|
|
87
|
+
const { min: t, max: a } = R(e);
|
|
88
|
+
return a - t > d;
|
|
89
|
+
}
|
|
90
|
+
function Y(e, t) {
|
|
91
|
+
var z;
|
|
92
|
+
if (n.disabled || !((z = u.value[e]) != null && z.collapsible) || t < 0 || t >= P.value || t !== e && t !== e - 1) return;
|
|
93
|
+
const a = t === e ? e + 1 : e - 1, i = r.value[e], s = i + r.value[a];
|
|
94
|
+
if (i > d) return s <= g.value[a].max + d ? 0 : void 0;
|
|
95
|
+
const l = Math.max(g.value[e].min, s - g.value[a].max), o = Math.min(g.value[e].max, s - g.value[a].min);
|
|
96
|
+
if (o < l || o <= d) return;
|
|
97
|
+
const c = N(q.get(f.value[e]) ?? u.value[e].size, v.value) || s / 2;
|
|
98
|
+
return Math.min(o, Math.max(l, c));
|
|
99
|
+
}
|
|
100
|
+
async function E(e, t) {
|
|
101
|
+
if (v.value <= 0) return !1;
|
|
102
|
+
const a = f.value.indexOf(e), i = t === void 0 ? [a, a - 1] : [t];
|
|
103
|
+
for (const s of i) {
|
|
104
|
+
const l = Y(a, s);
|
|
105
|
+
if (l === void 0) continue;
|
|
106
|
+
const o = r.value[a] <= d, c = r.value[s] + r.value[s + 1];
|
|
107
|
+
m.finish(!0), L(K(r.value, s, a === s ? l : c - l)), await J();
|
|
108
|
+
const z = f.value.indexOf(e);
|
|
109
|
+
return z >= 0 && o !== r.value[z] <= d;
|
|
110
|
+
}
|
|
111
|
+
return !1;
|
|
112
|
+
}
|
|
113
|
+
async function ie() {
|
|
114
|
+
return n.disabled ? !1 : (m.finish(!0), n.sizes === void 0 && (j.value = void 0), k("update:sizes", {}), await J(), u.value.every((e, t) => e.size === W.value[t]));
|
|
115
|
+
}
|
|
116
|
+
async function ge(e, t, a) {
|
|
117
|
+
if (v.value <= 0) return !1;
|
|
118
|
+
const i = f.value.indexOf(e), s = N(t, v.value);
|
|
119
|
+
if (i < 0 || s === void 0) return !1;
|
|
120
|
+
const l = r.value[i];
|
|
121
|
+
if (s === 0 && u.value[i].collapsible)
|
|
122
|
+
return l > d ? E(e, a) : !1;
|
|
123
|
+
const o = a === void 0 ? [i, i - 1] : [a];
|
|
124
|
+
let c;
|
|
125
|
+
for (const y of o) {
|
|
126
|
+
if (y < 0 || y >= P.value || y !== i && y !== i - 1 || !A(y)) continue;
|
|
127
|
+
const Re = r.value[y] + r.value[y + 1], re = y === i ? s : Re - s, { min: Ae, max: Ee } = R(y), ue = Math.min(Ee, Math.max(Ae, re)), ce = Math.abs(ue - re);
|
|
128
|
+
(!c || ce < c.distance) && (c = { bar: y, first: ue, distance: ce });
|
|
129
|
+
}
|
|
130
|
+
if (!c) return !1;
|
|
131
|
+
m.finish(!0), L(K(r.value, c.bar, c.first)), await J();
|
|
132
|
+
const z = f.value.indexOf(e);
|
|
133
|
+
return z >= 0 && Math.abs(r.value[z] - l) > d;
|
|
134
|
+
}
|
|
135
|
+
function Z(e) {
|
|
136
|
+
const t = [e, e + 1].filter((a) => Y(a, e) !== void 0);
|
|
137
|
+
return t.find((a) => r.value[a] <= d) ?? t[0];
|
|
138
|
+
}
|
|
139
|
+
function oe(e) {
|
|
140
|
+
const t = Z(e);
|
|
141
|
+
if (t !== void 0) return E(f.value[t], e);
|
|
142
|
+
}
|
|
143
|
+
function ze(e) {
|
|
144
|
+
n.doubleClickAction === "reset" ? ie() : n.doubleClickAction === "collapse" && oe(e);
|
|
145
|
+
}
|
|
146
|
+
function we(e) {
|
|
147
|
+
var a;
|
|
148
|
+
const t = f.value.indexOf(e);
|
|
149
|
+
return t >= 0 ? ((a = O.value) == null ? void 0 : a.ownerDocument.getElementById(I(t))) ?? void 0 : void 0;
|
|
150
|
+
}
|
|
151
|
+
const $ = p(() => u.value.map((e, t) => ({
|
|
152
|
+
panel: e,
|
|
153
|
+
index: t,
|
|
154
|
+
size: _(r.value[t]),
|
|
155
|
+
collapsed: r.value[t] <= d,
|
|
156
|
+
toggle: () => E(e.id)
|
|
157
|
+
})));
|
|
158
|
+
let M;
|
|
159
|
+
function U() {
|
|
160
|
+
const e = O.value;
|
|
161
|
+
if (!e) return;
|
|
162
|
+
const t = e.getBoundingClientRect(), a = e.querySelector(":scope > .hys-ui-splitter-bar"), i = n.vertical ? e.clientHeight || t.height : e.clientWidth || t.width, s = (n.vertical ? a == null ? void 0 : a.offsetHeight : a == null ? void 0 : a.offsetWidth) || n.dividerSize;
|
|
163
|
+
v.value = Math.max(0, i - s * P.value), C.value = getComputedStyle(e).direction === "rtl";
|
|
164
|
+
}
|
|
165
|
+
function se() {
|
|
166
|
+
M || !O.value || (U(), typeof ResizeObserver == "function" && (M = new ResizeObserver(U), M.observe(O.value)));
|
|
167
|
+
}
|
|
168
|
+
function ne() {
|
|
169
|
+
m.finish(!0, !1), M == null || M.disconnect(), M = void 0;
|
|
170
|
+
}
|
|
171
|
+
const ke = p(() => n.vertical ? _e : C.value ? fe : de), Me = p(() => n.vertical ? qe : C.value ? de : fe);
|
|
172
|
+
let h;
|
|
173
|
+
const m = Te(
|
|
174
|
+
(e) => {
|
|
175
|
+
if (!h) return;
|
|
176
|
+
const { separator: t, before: a, after: i, initial: s } = h, l = K(s, t, e);
|
|
177
|
+
n.lazy ? B.value = { separator: t, ratio: l.slice(0, t + 1).reduce((o, c) => o + c, 0) } : (h.requested = l, L(l)), k("panelResize", X(t, a, i, l));
|
|
178
|
+
},
|
|
179
|
+
(e, t, a) => {
|
|
180
|
+
if (!h) return;
|
|
181
|
+
const { separator: i, before: s, after: l, initial: o } = h;
|
|
182
|
+
h = void 0, V.value = void 0, B.value = void 0, !t && n.lazy && L(K(o, i, e)), a && J(() => k("panelResizeEnd", { ...X(i, s, l), cancelled: t }));
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
function Se(e, t) {
|
|
186
|
+
if (m.active() || e.button !== 0 || (U(), !A(t))) return;
|
|
187
|
+
const a = r.value, { min: i, max: s } = R(t);
|
|
188
|
+
if (!m.start(e, {
|
|
189
|
+
vertical: n.vertical,
|
|
190
|
+
available: v.value,
|
|
191
|
+
direction: !n.vertical && C.value ? -1 : 1,
|
|
192
|
+
initial: a[t],
|
|
193
|
+
constrain: (c) => Math.min(s, Math.max(i, c))
|
|
194
|
+
})) return;
|
|
195
|
+
const [l, o] = f.value.slice(t, t + 2);
|
|
196
|
+
h = { separator: t, before: l, after: o, initial: a }, V.value = t, k("panelResizeStart", X(t, l, o));
|
|
197
|
+
}
|
|
198
|
+
function Ce(e, t) {
|
|
199
|
+
if (e.key === "Enter" && !m.active() && Z(t) !== void 0) {
|
|
200
|
+
e.preventDefault(), oe(t);
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
if (m.active() || !A(t) || v.value <= 0 || !["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "Home", "End"].includes(e.key)) return;
|
|
204
|
+
e.preventDefault();
|
|
205
|
+
const { min: a, max: i } = R(t), s = (Number.isFinite(n.step) && n.step > 0 ? n.step : 2) * (e.shiftKey ? 5 : 1), l = e.key === "ArrowDown" || e.key === (C.value && !n.vertical ? "ArrowLeft" : "ArrowRight"), o = e.key === "Home" ? a : e.key === "End" ? i : Math.min(i, Math.max(a, r.value[t] + (l ? s : -s)));
|
|
206
|
+
L(K(r.value, t, o));
|
|
207
|
+
}
|
|
208
|
+
const Pe = p(() => JSON.stringify(u.value.map((e) => [e.id, e.min, e.max, e.resizable, e.collapsible])));
|
|
209
|
+
return H([Pe, v, C, () => n.disabled, () => n.lazy, () => n.vertical], () => m.finish(!0), { flush: "sync" }), H(r, (e, t) => {
|
|
210
|
+
h && !Q(e, t) && !Q(e, h.requested ?? h.initial) && m.finish(!0);
|
|
211
|
+
}, { flush: "post" }), H([P, () => n.vertical, () => n.dividerSize], U, { flush: "post" }), Oe(se), Be(se), Ie(ne), Le(ne), me({ togglePane: E, getPanelSizes: le, getPaneElement: we, resizePane: ge, resetSizes: ie }), (e, t) => {
|
|
212
|
+
var a, i;
|
|
213
|
+
return b(), w("div", x({
|
|
214
|
+
ref_key: "host",
|
|
215
|
+
ref: O
|
|
216
|
+
}, ee(he), {
|
|
217
|
+
class: ["hys-ui-ent-split hys-ui-multi-split", { "hys-ui-vertical": S.vertical }],
|
|
218
|
+
style: {
|
|
219
|
+
"--hys-ui-splitter-size": S.dividerSize + "px",
|
|
220
|
+
"--hys-ui-divider-count": P.value,
|
|
221
|
+
"--hys-ui-split-preview": (((a = B.value) == null ? void 0 : a.ratio) ?? 0) / 100,
|
|
222
|
+
"--hys-ui-preview-bar": (((i = B.value) == null ? void 0 : i.separator) ?? 0) + 0.5
|
|
223
|
+
}
|
|
224
|
+
}), [
|
|
225
|
+
(b(!0), w(F, null, ve($.value, (s, l) => (b(), w(F, {
|
|
226
|
+
key: s.panel.id
|
|
227
|
+
}, [
|
|
228
|
+
T("div", {
|
|
229
|
+
id: I(l),
|
|
230
|
+
class: "hys-ui-splitter-pane",
|
|
231
|
+
"data-hys-pane": s.panel.id,
|
|
232
|
+
inert: s.collapsed,
|
|
233
|
+
style: Ke({ "--hys-ui-split-ratio": r.value[l] / 100 })
|
|
234
|
+
}, [
|
|
235
|
+
te(e.$slots, "panel", x({ ref_for: !0 }, s), () => [
|
|
236
|
+
He(Ne(s.panel.label), 1)
|
|
237
|
+
])
|
|
238
|
+
], 12, Qe),
|
|
239
|
+
l < P.value ? (b(), w("div", {
|
|
240
|
+
key: 0,
|
|
241
|
+
class: "hys-ui-splitter-bar",
|
|
242
|
+
"data-hys-separator": l
|
|
243
|
+
}, [
|
|
244
|
+
T("div", {
|
|
245
|
+
class: "hys-ui-ent-split-handle",
|
|
246
|
+
role: "separator",
|
|
247
|
+
tabindex: A(l) ? 0 : -1,
|
|
248
|
+
"aria-label": `${S.ariaLabel} ${l + 1}`,
|
|
249
|
+
"aria-controls": `${I(l)} ${I(l + 1)}`,
|
|
250
|
+
"aria-disabled": !A(l) || void 0,
|
|
251
|
+
"aria-orientation": S.vertical ? "horizontal" : "vertical",
|
|
252
|
+
"aria-valuenow": r.value[l],
|
|
253
|
+
"aria-valuemin": Math.min(r.value[l], R(l).min),
|
|
254
|
+
"aria-valuemax": Math.max(r.value[l], R(l).max),
|
|
255
|
+
"aria-keyshortcuts": Z(l) === void 0 ? void 0 : "Enter",
|
|
256
|
+
"data-resizing": V.value === l || void 0,
|
|
257
|
+
onPointerdown: (o) => Se(o, l),
|
|
258
|
+
onLostpointercapture: t[0] || (t[0] = //@ts-ignore
|
|
259
|
+
(...o) => ee(m).cancel && ee(m).cancel(...o)),
|
|
260
|
+
onKeydown: (o) => Ce(o, l),
|
|
261
|
+
onDblclick: (o) => ze(l)
|
|
262
|
+
}, [
|
|
263
|
+
T("span", Ze, [
|
|
264
|
+
te(e.$slots, "handle", {
|
|
265
|
+
separator: l,
|
|
266
|
+
before: s.panel.id,
|
|
267
|
+
after: u.value[l + 1].id,
|
|
268
|
+
vertical: S.vertical,
|
|
269
|
+
disabled: !A(l),
|
|
270
|
+
resizing: V.value === l
|
|
271
|
+
}, () => [
|
|
272
|
+
t[1] || (t[1] = T("span", { class: "hys-ui-splitter-dots" }, null, -1))
|
|
273
|
+
])
|
|
274
|
+
])
|
|
275
|
+
], 40, Ye),
|
|
276
|
+
(b(!0), w(F, null, ve([l, l + 1], (o) => (b(), w(F, { key: o }, [
|
|
277
|
+
u.value[o].collapsible ? (b(), w("button", {
|
|
278
|
+
key: 0,
|
|
279
|
+
class: je(["hys-ui-splitter-toggle", o === l ? "hys-ui-splitter-toggle-first" : "hys-ui-splitter-toggle-second"]),
|
|
280
|
+
type: "button",
|
|
281
|
+
"aria-label": ($.value[o].collapsed ? "展开" : "折叠") + (u.value[o].label ?? u.value[o].id),
|
|
282
|
+
"aria-controls": I(o),
|
|
283
|
+
"aria-expanded": !$.value[o].collapsed,
|
|
284
|
+
"data-collapsed": $.value[o].collapsed || void 0,
|
|
285
|
+
disabled: Y(o, l) === void 0,
|
|
286
|
+
onClick: (c) => E(u.value[o].id, l)
|
|
287
|
+
}, [
|
|
288
|
+
te(e.$slots, "panel-collapse", x({ ref_for: !0 }, $.value[o], {
|
|
289
|
+
side: o === l ? "start" : "end",
|
|
290
|
+
toggle: () => E(u.value[o].id, l)
|
|
291
|
+
}), () => [
|
|
292
|
+
(b(), Ve(We(o === l !== $.value[o].collapsed ? ke.value : Me.value), { size: 13 }))
|
|
293
|
+
])
|
|
294
|
+
], 10, xe)) : ae("", !0)
|
|
295
|
+
], 64))), 128))
|
|
296
|
+
], 8, Xe)) : ae("", !0)
|
|
297
|
+
], 64))), 128)),
|
|
298
|
+
B.value ? (b(), w("div", et)) : ae("", !0)
|
|
299
|
+
], 16);
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
export {
|
|
304
|
+
nt as default
|
|
305
|
+
};
|