hys-ui 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +149 -0
- package/README.md +17 -1
- package/dist/components/HysAccordion/HysAccordion.vue.js +1 -1
- package/dist/components/HysAccordion/HysAccordion2.vue.js +181 -47
- package/dist/components/HysAlert/HysAlert.vue.js +5 -54
- package/dist/components/HysAlert/HysAlert2.vue.js +159 -2
- package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +7 -0
- package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +639 -0
- package/dist/components/HysAvatar/HysAvatar.vue.js +5 -35
- package/dist/components/HysAvatar/HysAvatar2.vue.js +221 -2
- package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +7 -0
- package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +256 -0
- package/dist/components/HysBadge/HysBadge.vue.js +2 -2
- package/dist/components/HysBadge/HysBadge2.vue.js +154 -27
- package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +5 -38
- package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +288 -2
- package/dist/components/HysButton/HysButton.vue.js +2 -2
- package/dist/components/HysButton/HysButton2.vue.js +29 -28
- package/dist/components/HysCalendar/HysCalendar.vue.js +5 -92
- package/dist/components/HysCalendar/HysCalendar2.vue.js +815 -2
- package/dist/components/HysCard/HysCard.vue.js +2 -2
- package/dist/components/HysCard/HysCard2.vue.js +175 -42
- package/dist/components/HysCascader/HysCascader.vue.js +5 -194
- package/dist/components/HysCascader/HysCascader2.vue.js +773 -2
- package/dist/components/HysCascader/HysCascaderColumn.vue.js +7 -0
- package/dist/components/HysCascader/HysCascaderColumn2.vue.js +232 -0
- package/dist/components/HysCheckbox/HysCheckbox.vue.js +3 -3
- package/dist/components/HysCheckbox/HysCheckbox2.vue.js +180 -65
- package/dist/components/HysCheckboxGroup/HysCheckboxGroup.vue.js +7 -0
- package/dist/components/HysCheckboxGroup/HysCheckboxGroup2.vue.js +237 -0
- 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 +1 -1
- package/dist/components/HysColorPicker/HysColorPicker2.vue.js +239 -216
- 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 +1019 -563
- package/dist/components/HysDatePicker/HysDatePicker.vue.js +270 -139
- package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +7 -0
- package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +820 -0
- package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +7 -0
- package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +357 -0
- package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +270 -158
- package/dist/components/HysDivider/HysDivider.vue.js +2 -2
- package/dist/components/HysDivider/HysDivider2.vue.js +33 -13
- 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/HysFileManager/HysFileManager.vue.js +3 -3
- package/dist/components/HysFileManager/HysFileManager2.vue.js +43 -42
- package/dist/components/HysForm/HysForm.vue.js +3 -3
- package/dist/components/HysForm/HysForm2.vue.js +578 -92
- package/dist/components/HysFormItem/HysFormItem.vue.js +5 -85
- package/dist/components/HysFormItem/HysFormItem2.vue.js +528 -2
- package/dist/components/HysGantt/HysGantt.vue.js +1 -1
- package/dist/components/HysGantt/HysGantt2.vue.js +1380 -268
- package/dist/components/HysInput/HysInput.vue.js +2 -2
- package/dist/components/HysInput/HysInput2.vue.js +467 -120
- package/dist/components/HysMention/HysMention.vue.js +2 -2
- package/dist/components/HysMention/HysMention2.vue.js +122 -109
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +490 -85
- package/dist/components/HysNumberInput/HysNumberInput.vue.js +2 -2
- package/dist/components/HysNumberInput/HysNumberInput2.vue.js +561 -79
- package/dist/components/HysOrgTree/HysOrgTree.vue.js +29 -26
- package/dist/components/HysPagination/HysPagination.vue.js +1 -1
- package/dist/components/HysPagination/HysPagination2.vue.js +2 -0
- package/dist/components/HysPermissionMatrix/HysPermissionMatrix.vue.js +2 -2
- package/dist/components/HysPermissionMatrix/HysPermissionMatrix2.vue.js +52 -51
- 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/HysRadio/HysRadio.vue.js +7 -0
- package/dist/components/HysRadio/HysRadio2.vue.js +180 -0
- package/dist/components/HysRadioGroup/HysRadioGroup.vue.js +2 -2
- package/dist/components/HysRadioGroup/HysRadioGroup2.vue.js +190 -65
- package/dist/components/HysRating/HysRating.vue.js +1 -1
- package/dist/components/HysRating/HysRating2.vue.js +288 -68
- package/dist/components/HysRichTextEditor/HysRichTextEditor.vue.js +1 -1
- package/dist/components/HysRichTextEditor/HysRichTextEditor2.vue.js +70 -69
- package/dist/components/HysSearch/HysSearch.vue.js +37 -36
- package/dist/components/HysSegmented/HysSegmented.vue.js +5 -63
- package/dist/components/HysSegmented/HysSegmented2.vue.js +273 -2
- package/dist/components/HysSelect/HysSelect.vue.js +3 -2
- package/dist/components/HysSelect/HysSelect2.vue.js +999 -189
- package/dist/components/HysSkeleton/HysSkeleton.vue.js +2 -2
- package/dist/components/HysSkeleton/HysSkeleton2.vue.js +126 -29
- package/dist/components/HysSlider/HysSlider.vue.js +1 -1
- package/dist/components/HysSlider/HysSlider2.vue.js +536 -59
- package/dist/components/HysSlider/SliderTooltip.vue.js +7 -0
- package/dist/components/HysSlider/SliderTooltip2.vue.js +170 -0
- package/dist/components/HysSteps/HysSteps.vue.js +1 -1
- package/dist/components/HysSteps/HysSteps2.vue.js +110 -36
- package/dist/components/HysSwitch/HysSwitch.vue.js +2 -2
- package/dist/components/HysSwitch/HysSwitch2.vue.js +232 -50
- package/dist/components/HysTable/HysTable.vue.js +1 -1
- package/dist/components/HysTable/HysTable2.vue.js +1494 -88
- package/dist/components/HysTable/HysTableFilterOptions.vue.js +7 -0
- package/dist/components/HysTable/HysTableFilterOptions2.vue.js +133 -0
- package/dist/components/HysTabs/HysTabs.vue.js +2 -2
- package/dist/components/HysTabs/HysTabs2.vue.js +262 -68
- package/dist/components/HysTagInput/HysTagInput.vue.js +5 -81
- package/dist/components/HysTagInput/HysTagInput2.vue.js +396 -2
- package/dist/components/HysTextarea/HysTextarea.vue.js +138 -77
- package/dist/components/HysTimeline/HysTimeline.vue.js +2 -2
- package/dist/components/HysTimeline/HysTimeline2.vue.js +243 -24
- package/dist/components/HysTooltip/HysTooltip.vue.js +5 -64
- package/dist/components/HysTooltip/HysTooltip2.vue.js +110 -2
- package/dist/components/HysTour/HysTour.vue.js +46 -42
- package/dist/components/HysTransfer/HysTransfer.vue.js +5 -223
- package/dist/components/HysTransfer/HysTransfer2.vue.js +446 -2
- package/dist/components/HysTransfer/HysTransferPanel.vue.js +7 -0
- package/dist/components/HysTransfer/HysTransferPanel2.vue.js +503 -0
- package/dist/components/HysTree/HysTree.vue.js +2 -3
- package/dist/components/HysTree/HysTree2.vue.js +651 -301
- package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +5 -136
- package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +570 -2
- package/dist/components/HysTreeSelect/HysTreeSelectPanel.vue.js +7 -0
- package/dist/components/HysTreeSelect/HysTreeSelectPanel2.vue.js +323 -0
- package/dist/components/HysUpload/HysUpload.vue.js +2 -2
- package/dist/components/HysUpload/HysUpload2.vue.js +459 -124
- package/dist/components/HysVirtualTable/HysVirtualTable.vue.js +5 -94
- package/dist/components/HysVirtualTable/HysVirtualTable2.vue.js +656 -2
- package/dist/composables/autocomplete.js +50 -0
- package/dist/composables/avatar.js +57 -0
- package/dist/composables/calendar.js +96 -0
- package/dist/composables/cascader.js +79 -0
- package/dist/composables/choice.js +38 -0
- package/dist/composables/choiceModel.js +67 -0
- package/dist/composables/color.js +97 -0
- package/dist/composables/dataGrid.js +68 -0
- package/dist/composables/datePicker.js +227 -0
- package/dist/composables/drawer.js +17 -0
- package/dist/composables/feedback.js +14 -0
- package/dist/composables/formContext.js +92 -7
- package/dist/composables/formLayout.js +57 -0
- package/dist/composables/formValidation.js +240 -0
- package/dist/composables/ganttConflicts.js +143 -0
- package/dist/composables/menu.js +96 -0
- package/dist/composables/modal.js +14 -0
- package/dist/composables/numberInput.js +91 -0
- package/dist/composables/overlayManager.js +48 -18
- package/dist/composables/progress.js +94 -0
- package/dist/composables/rating.js +16 -0
- package/dist/composables/selectOptions.js +54 -0
- package/dist/composables/table.js +150 -0
- package/dist/composables/tagInput.js +16 -0
- package/dist/composables/textInput.js +34 -0
- package/dist/composables/timeline.js +19 -0
- package/dist/composables/transfer.js +65 -0
- package/dist/composables/tree.js +118 -0
- package/dist/composables/treeSelect.js +71 -0
- package/dist/composables/upload.js +55 -0
- package/dist/composables/uploadRequest.js +58 -0
- package/dist/composables/useAlert.js +124 -0
- package/dist/composables/useCascader.js +438 -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/useDatePicker.js +425 -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 +136 -56
- package/dist/composables/useGanttDependencies.js +306 -0
- package/dist/composables/useGanttHistory.js +157 -0
- package/dist/composables/useGanttLabelResize.js +100 -0
- package/dist/composables/useHysModal.js +185 -0
- package/dist/composables/useModal.js +295 -0
- package/dist/composables/useModalInteraction.js +394 -0
- package/dist/composables/usePopupSurface.js +458 -0
- package/dist/composables/useTable.js +474 -0
- package/dist/composables/useTagInput.js +313 -0
- package/dist/composables/useTextareaSize.js +72 -0
- package/dist/composables/useTransfer.js +257 -0
- package/dist/composables/useTransferMotion.js +185 -0
- package/dist/composables/useTree.js +439 -0
- package/dist/composables/useTreeSelect.js +361 -0
- package/dist/composables/useUpload.js +472 -0
- package/dist/composables/useUploadModel.js +65 -0
- package/dist/composables/useUploadRequests.js +266 -0
- package/dist/composables/useVirtualTableLayout.js +277 -0
- package/dist/composables/virtualTable.js +43 -0
- package/dist/index.js +152 -139
- 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/HysAccordion/HysAccordion.vue.d.ts +61 -22
- package/dist/types/components/HysAlert/HysAlert.vue.d.ts +32 -22
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +201 -0
- package/dist/types/components/HysAvatar/HysAvatar.vue.d.ts +28 -15
- package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +104 -0
- package/dist/types/components/HysBadge/HysBadge.vue.d.ts +41 -4
- package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +71 -20
- package/dist/types/components/HysButton/HysButton.vue.d.ts +0 -1
- package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +120 -31
- package/dist/types/components/HysCard/HysCard.vue.d.ts +55 -7
- package/dist/types/components/HysCascader/HysCascader.vue.d.ts +129 -41
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +55 -0
- package/dist/types/components/HysCheckbox/HysCheckbox.vue.d.ts +50 -39
- package/dist/types/components/HysCheckboxGroup/HysCheckboxGroup.vue.d.ts +73 -0
- 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/HysDatePicker.vue.d.ts +66 -14
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +90 -0
- package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +93 -0
- package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +66 -14
- package/dist/types/components/HysDivider/HysDivider.vue.d.ts +8 -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/HysForm/HysForm.vue.d.ts +110 -18
- package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +108 -2
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +84 -5
- package/dist/types/components/HysInput/HysInput.vue.d.ts +52 -29
- package/dist/types/components/HysMention/HysMention.vue.d.ts +4 -3
- package/dist/types/components/HysModal/HysModal.vue.d.ts +111 -34
- package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +93 -35
- package/dist/types/components/HysOrgTree/HysOrgTree.vue.d.ts +1 -0
- package/dist/types/components/HysPagination/HysPagination.vue.d.ts +1 -1
- package/dist/types/components/HysPermissionMatrix/HysPermissionMatrix.vue.d.ts +2 -2
- 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/HysRadio/HysRadio.vue.d.ts +56 -0
- package/dist/types/components/HysRadioGroup/HysRadioGroup.vue.d.ts +34 -12
- package/dist/types/components/HysRating/HysRating.vue.d.ts +85 -5
- package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +2 -2
- package/dist/types/components/HysRichTextEditor/HysRichTextEditor.vue.d.ts +4 -4
- package/dist/types/components/HysSearch/HysSearch.vue.d.ts +2 -2
- package/dist/types/components/HysSegmented/HysSegmented.vue.d.ts +64 -32
- package/dist/types/components/HysSelect/HysSelect.vue.d.ts +131 -22
- package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +30 -2
- package/dist/types/components/HysSlider/HysSlider.vue.d.ts +69 -11
- package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +24 -0
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +3 -3
- package/dist/types/components/HysSteps/HysSteps.vue.d.ts +64 -9
- package/dist/types/components/HysSwitch/HysSwitch.vue.d.ts +76 -17
- package/dist/types/components/HysTable/HysTable.vue.d.ts +206 -32
- package/dist/types/components/HysTable/HysTableFilterOptions.vue.d.ts +18 -0
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +76 -23
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +50 -28
- package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +44 -27
- package/dist/types/components/HysTimeline/HysTimeline.vue.d.ts +19 -32
- package/dist/types/components/HysToast/HysToast.vue.d.ts +3 -3
- package/dist/types/components/HysTooltip/HysTooltip.vue.d.ts +39 -19
- package/dist/types/components/HysTour/HysTour.vue.d.ts +4 -3
- package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +55 -40
- package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +107 -0
- package/dist/types/components/HysTree/HysTree.vue.d.ts +140 -73
- package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +102 -23
- package/dist/types/components/HysTreeSelect/HysTreeSelectPanel.vue.d.ts +56 -0
- 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 +109 -0
- package/dist/types/composables/avatar.d.ts +73 -0
- package/dist/types/composables/calendar.d.ts +66 -0
- package/dist/types/composables/cascader.d.ts +195 -0
- package/dist/types/composables/choice.d.ts +110 -0
- package/dist/types/composables/choiceModel.d.ts +11 -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 +250 -0
- package/dist/types/composables/drawer.d.ts +102 -0
- package/dist/types/composables/feedback.d.ts +98 -0
- package/dist/types/composables/formContext.d.ts +135 -8
- package/dist/types/composables/formLayout.d.ts +11 -0
- package/dist/types/composables/formValidation.d.ts +13 -0
- package/dist/types/composables/gantt.d.ts +68 -0
- package/dist/types/composables/ganttConflicts.d.ts +30 -0
- package/dist/types/composables/menu.d.ts +183 -0
- package/dist/types/composables/modal.d.ts +183 -0
- package/dist/types/composables/numberInput.d.ts +45 -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/rating.d.ts +18 -0
- package/dist/types/composables/segmented.d.ts +15 -0
- package/dist/types/composables/selectOptions.d.ts +46 -0
- package/dist/types/composables/slider.d.ts +21 -0
- package/dist/types/composables/table.d.ts +312 -0
- package/dist/types/composables/tagInput.d.ts +96 -0
- package/dist/types/composables/textInput.d.ts +76 -0
- package/dist/types/composables/timeline.d.ts +82 -0
- package/dist/types/composables/transfer.d.ts +187 -0
- package/dist/types/composables/tree.d.ts +240 -0
- package/dist/types/composables/treeSelect.d.ts +170 -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 +162 -0
- 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/useDatePicker.d.ts +79 -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 +28 -6
- package/dist/types/composables/useGanttDependencies.d.ts +83 -0
- package/dist/types/composables/useGanttHistory.d.ts +42 -0
- package/dist/types/composables/useGanttLabelResize.d.ts +23 -0
- package/dist/types/composables/useHysModal.d.ts +44 -0
- package/dist/types/composables/useModal.d.ts +62 -0
- package/dist/types/composables/useModalInteraction.d.ts +27 -0
- package/dist/types/composables/usePopupSurface.d.ts +3341 -0
- package/dist/types/composables/useTable.d.ts +60 -0
- package/dist/types/composables/useTagInput.d.ts +66 -0
- package/dist/types/composables/useTextareaSize.d.ts +3 -0
- package/dist/types/composables/useTransfer.d.ts +58 -0
- package/dist/types/composables/useTransferMotion.d.ts +36 -0
- package/dist/types/composables/useTree.d.ts +77 -0
- package/dist/types/composables/useTreeSelect.d.ts +117 -0
- package/dist/types/composables/useUpload.d.ts +94 -0
- package/dist/types/composables/useUploadModel.d.ts +14 -0
- package/dist/types/composables/useUploadRequests.d.ts +38 -0
- package/dist/types/composables/useVirtualTableLayout.d.ts +51 -0
- package/dist/types/composables/virtualTable.d.ts +126 -0
- package/dist/types/index.d.ts +50 -9
- 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 +2 -1
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
import { defineComponent as xe, ref as I, computed as d, watch as F, onDeactivated as Ke, onBeforeUnmount as Te, onMounted as De, onActivated as Me, nextTick as W, openBlock as r, createElementBlock as c, mergeProps as He, unref as k, createElementVNode as m, renderSlot as S, createBlock as x, withCtx as O, toDisplayString as h, createVNode as $, createCommentVNode as w, normalizeStyle as j, normalizeClass as ie, Fragment as G, renderList as Be, createTextVNode as p, withModifiers as Ae } from "vue";
|
|
2
|
+
import { Search as qe, X as Pe, GripVertical as Ie, LoaderCircle as Oe } from "lucide-vue-next";
|
|
3
|
+
import ne from "../HysCheckbox/HysCheckbox.vue.js";
|
|
4
|
+
import se from "../HysButton/HysButton.vue.js";
|
|
5
|
+
import $e from "../HysInput/HysInput.vue.js";
|
|
6
|
+
import Fe from "../HysPagination/HysPagination.vue.js";
|
|
7
|
+
import { useHysRootAttrs as pe } from "../../config.js";
|
|
8
|
+
import { transferLabel as re, transferToken as T } from "../../composables/transfer.js";
|
|
9
|
+
const Le = ["data-side", "aria-label", "aria-busy"], Ne = { class: "hys-ui-pf-transfer-header" }, Ee = ["id"], Re = ["id"], Ve = { class: "hys-ui-transfer-count" }, Ue = { class: "hys-ui-transfer-body" }, We = ["aria-label"], je = ["data-transfer-key", "draggable", "title", "onClickCapture", "onDblclick", "onMousedown", "onDragstart"], Ge = { class: "hys-ui-transfer-label" }, Xe = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "hys-ui-transfer-label"
|
|
12
|
+
}, Je = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "hys-ui-pf-transfer-empty"
|
|
15
|
+
}, Qe = ["aria-label"], Ye = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "hys-ui-transfer-extra"
|
|
18
|
+
}, Ze = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "hys-ui-transfer-filter-count"
|
|
21
|
+
}, _e = {
|
|
22
|
+
key: 2,
|
|
23
|
+
class: "hys-ui-transfer-pagination"
|
|
24
|
+
}, et = {
|
|
25
|
+
key: 3,
|
|
26
|
+
class: "hys-ui-transfer-footer"
|
|
27
|
+
}, ut = /* @__PURE__ */ xe({
|
|
28
|
+
__name: "HysTransferPanel",
|
|
29
|
+
props: {
|
|
30
|
+
side: {},
|
|
31
|
+
title: {},
|
|
32
|
+
id: {},
|
|
33
|
+
items: {},
|
|
34
|
+
total: {},
|
|
35
|
+
filtered: {},
|
|
36
|
+
checkedKeys: {},
|
|
37
|
+
busy: { type: Boolean },
|
|
38
|
+
loading: { type: Boolean },
|
|
39
|
+
filterable: { type: Boolean },
|
|
40
|
+
query: {},
|
|
41
|
+
placeholder: {},
|
|
42
|
+
showSelectAll: { type: Boolean },
|
|
43
|
+
showInvert: { type: Boolean },
|
|
44
|
+
oneWay: { type: Boolean },
|
|
45
|
+
size: {},
|
|
46
|
+
listHeight: {},
|
|
47
|
+
itemHeight: {},
|
|
48
|
+
overscan: {},
|
|
49
|
+
virtual: { type: Boolean },
|
|
50
|
+
draggable: { type: Boolean },
|
|
51
|
+
moveOnDoubleClick: { type: Boolean },
|
|
52
|
+
draggedKeys: {},
|
|
53
|
+
dropTarget: { type: Boolean },
|
|
54
|
+
words: {},
|
|
55
|
+
page: {},
|
|
56
|
+
pageSize: {},
|
|
57
|
+
pagination: { type: [Object, Boolean] },
|
|
58
|
+
listStyle: {},
|
|
59
|
+
format: { type: Function },
|
|
60
|
+
renderContent: { type: Function }
|
|
61
|
+
},
|
|
62
|
+
emits: ["check", "rangeCheck", "moveItem", "checkAll", "invert", "search", "remove", "page", "pageSize", "dragStart", "dragEnd", "dragOver", "dragLeave", "drop", "scroll"],
|
|
63
|
+
setup(e, { expose: oe, emit: ue }) {
|
|
64
|
+
const l = e, u = ue, de = pe(), s = I(), X = I(), J = I(), v = I(0), D = I(0);
|
|
65
|
+
let K = 0, g = !0, M = 0, L = 0, y;
|
|
66
|
+
function N() {
|
|
67
|
+
y == null || y.disconnect(), y = void 0, !(!g || !l.virtual || !s.value) && (D.value = s.value.clientHeight, typeof ResizeObserver < "u" && (y = new ResizeObserver(() => {
|
|
68
|
+
g && s.value && (D.value = s.value.clientHeight);
|
|
69
|
+
}), y.observe(s.value)));
|
|
70
|
+
}
|
|
71
|
+
const H = d(() => new Set(l.checkedKeys)), ce = d(() => new Set(l.draggedKeys)), B = d(() => l.items.filter((t) => !t.disabled)), A = d(() => !l.oneWay || l.side === "left"), Q = d(
|
|
72
|
+
() => B.value.filter((t) => H.value.has(t.key)).length
|
|
73
|
+
), E = d(
|
|
74
|
+
() => !!B.value.length && Q.value === B.value.length
|
|
75
|
+
), Y = d(() => Q.value > 0 && !E.value), R = d(() => ({
|
|
76
|
+
side: l.side,
|
|
77
|
+
total: l.total,
|
|
78
|
+
filtered: l.filtered,
|
|
79
|
+
checked: l.checkedKeys.length
|
|
80
|
+
})), q = d(
|
|
81
|
+
() => Number.isFinite(l.listHeight) ? Math.max(80, Math.min(2e3, l.listHeight)) : 240
|
|
82
|
+
), f = d(
|
|
83
|
+
() => Number.isFinite(l.itemHeight) ? Math.max(24, Math.min(200, l.itemHeight)) : 36
|
|
84
|
+
), Z = d(
|
|
85
|
+
() => Number.isFinite(l.overscan) ? Math.max(0, Math.min(30, Math.floor(l.overscan))) : 4
|
|
86
|
+
), _ = d(
|
|
87
|
+
() => l.virtual ? Math.max(
|
|
88
|
+
0,
|
|
89
|
+
Math.min(
|
|
90
|
+
Math.max(0, l.items.length - 1),
|
|
91
|
+
Math.floor(v.value / f.value) - Z.value
|
|
92
|
+
)
|
|
93
|
+
) : 0
|
|
94
|
+
), fe = d(
|
|
95
|
+
() => l.virtual ? Math.min(
|
|
96
|
+
l.items.length,
|
|
97
|
+
Math.ceil(
|
|
98
|
+
(v.value + (D.value || q.value)) / f.value
|
|
99
|
+
) + Z.value
|
|
100
|
+
) : l.items.length
|
|
101
|
+
), ye = d(() => l.items.slice(_.value, fe.value)), ee = (t) => {
|
|
102
|
+
var i;
|
|
103
|
+
return ((i = l.renderContent) == null ? void 0 : i.call(l, t.item, l.side)) ?? "";
|
|
104
|
+
};
|
|
105
|
+
function he(t) {
|
|
106
|
+
var i;
|
|
107
|
+
!g || !((i = s.value) != null && i.isConnected) || (M = s.value.scrollTop, u("scroll", t), !(!l.virtual || K) && (K = requestAnimationFrame(() => {
|
|
108
|
+
K = 0, g && s.value && (v.value = s.value.scrollTop);
|
|
109
|
+
})));
|
|
110
|
+
}
|
|
111
|
+
function ve() {
|
|
112
|
+
M = 0, v.value = 0, s.value && (s.value.scrollTop = 0);
|
|
113
|
+
}
|
|
114
|
+
F(() => [l.query, l.page, l.pageSize, l.virtual], ve), F(
|
|
115
|
+
() => l.items.length,
|
|
116
|
+
() => {
|
|
117
|
+
s.value && v.value > l.items.length * f.value && (s.value.scrollTop = Math.max(
|
|
118
|
+
0,
|
|
119
|
+
l.items.length * f.value - q.value
|
|
120
|
+
), v.value = s.value.scrollTop);
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
async function ge(t) {
|
|
124
|
+
var n, o;
|
|
125
|
+
const i = l.items[t];
|
|
126
|
+
if (!i) return;
|
|
127
|
+
if (l.virtual && s.value) {
|
|
128
|
+
const b = t * f.value;
|
|
129
|
+
b < s.value.scrollTop ? s.value.scrollTop = b : b + f.value > s.value.scrollTop + (D.value || q.value) && (s.value.scrollTop = b + f.value - (D.value || q.value)), v.value = s.value.scrollTop, M = s.value.scrollTop;
|
|
130
|
+
}
|
|
131
|
+
if (await W(), !g) return;
|
|
132
|
+
const a = [
|
|
133
|
+
...((n = s.value) == null ? void 0 : n.querySelectorAll("[data-transfer-key]")) ?? []
|
|
134
|
+
].find((b) => b.dataset.transferKey === T(i.key));
|
|
135
|
+
(o = a == null ? void 0 : a.querySelector("input:not(:disabled),button:not(:disabled)")) == null || o.focus({ preventScroll: l.virtual });
|
|
136
|
+
}
|
|
137
|
+
let C, P;
|
|
138
|
+
function V(t) {
|
|
139
|
+
const i = l.items.findIndex((o) => o.key === t);
|
|
140
|
+
if (i < 0) return;
|
|
141
|
+
const a = l.items.findIndex((o) => o.key === C), n = a < 0 ? i : a;
|
|
142
|
+
a < 0 && (C = t), u(
|
|
143
|
+
"rangeCheck",
|
|
144
|
+
l.items.slice(Math.min(n, i), Math.max(n, i) + 1).filter((o) => !o.disabled).map((o) => o.key)
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
function te(t, i) {
|
|
148
|
+
const a = P === t;
|
|
149
|
+
if (P = void 0, a) {
|
|
150
|
+
V(t);
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
C = t, u("check", t, i);
|
|
154
|
+
}
|
|
155
|
+
function be(t, i) {
|
|
156
|
+
if (t.shiftKey || t.ctrlKey || t.metaKey) {
|
|
157
|
+
t.preventDefault();
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
l.moveOnDoubleClick && !l.busy && !i.disabled && t.button === 0 && t.detail > 1 && !t.target.closest(
|
|
161
|
+
'button,a,input,textarea,select,[contenteditable="true"]'
|
|
162
|
+
) && t.preventDefault();
|
|
163
|
+
}
|
|
164
|
+
function ke(t, i) {
|
|
165
|
+
var n, o;
|
|
166
|
+
if (l.busy || i.disabled || !A.value) return;
|
|
167
|
+
const a = t.target;
|
|
168
|
+
if (!a.closest(
|
|
169
|
+
'button,a,textarea,select,input:not([type="checkbox"]),[contenteditable="true"]'
|
|
170
|
+
)) {
|
|
171
|
+
if (a.matches('input[type="checkbox"]')) {
|
|
172
|
+
t.shiftKey && (P = i.key);
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
if (l.moveOnDoubleClick && !t.shiftKey && !t.ctrlKey && !t.metaKey) {
|
|
176
|
+
t.preventDefault(), t.stopPropagation(), (n = t.currentTarget.querySelector("input:not(:disabled)")) == null || n.focus({ preventScroll: !0 });
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
(t.shiftKey || t.ctrlKey || t.metaKey || !a.closest(".hys-ui-transfer-check")) && (t.preventDefault(), t.stopPropagation(), t.shiftKey ? V(i.key) : te(i.key, !H.value.has(i.key)), (o = t.currentTarget.querySelector("input:not(:disabled)")) == null || o.focus({ preventScroll: !0 }));
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
function me(t, i) {
|
|
183
|
+
!l.moveOnDoubleClick || t.shiftKey || t.ctrlKey || t.metaKey || l.busy || i.disabled || t.target.closest(
|
|
184
|
+
'button,a,input,textarea,select,[contenteditable="true"]'
|
|
185
|
+
) || (t.preventDefault(), t.stopPropagation(), u("moveItem", i.key));
|
|
186
|
+
}
|
|
187
|
+
F(
|
|
188
|
+
() => [l.query, l.page, l.pageSize],
|
|
189
|
+
() => {
|
|
190
|
+
C = void 0, P = void 0;
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
function we(t) {
|
|
194
|
+
var le;
|
|
195
|
+
const i = t.target;
|
|
196
|
+
if (!i.matches('input[type="checkbox"]') && !i.closest(".hys-ui-transfer-remove") || l.busy || !["ArrowUp", "ArrowDown", "Home", "End"].includes(t.key))
|
|
197
|
+
return;
|
|
198
|
+
const a = t.target.closest(
|
|
199
|
+
"[data-transfer-key]"
|
|
200
|
+
);
|
|
201
|
+
if (!a) return;
|
|
202
|
+
const n = l.items.map((z, U) => ({ item: z, index: U })).filter((z) => !z.item.disabled);
|
|
203
|
+
if (!n.length) return;
|
|
204
|
+
t.preventDefault();
|
|
205
|
+
const o = n.findIndex(
|
|
206
|
+
(z) => T(z.item.key) === a.dataset.transferKey
|
|
207
|
+
), b = t.key === "Home" ? 0 : t.key === "End" ? n.length - 1 : Math.max(
|
|
208
|
+
0,
|
|
209
|
+
Math.min(
|
|
210
|
+
n.length - 1,
|
|
211
|
+
o + (t.key === "ArrowDown" ? 1 : -1)
|
|
212
|
+
)
|
|
213
|
+
);
|
|
214
|
+
if (t.shiftKey && A.value) {
|
|
215
|
+
const z = (le = l.items.find(
|
|
216
|
+
(U) => T(U.key) === a.dataset.transferKey
|
|
217
|
+
)) == null ? void 0 : le.key;
|
|
218
|
+
C === void 0 && (C = z), V(n[b].item.key);
|
|
219
|
+
}
|
|
220
|
+
ge(n[b].index);
|
|
221
|
+
}
|
|
222
|
+
function ae() {
|
|
223
|
+
g = !1, C = void 0, P = void 0, L++, y == null || y.disconnect(), y = void 0, K && cancelAnimationFrame(K), K = 0;
|
|
224
|
+
}
|
|
225
|
+
Ke(ae), Te(ae), De(N), F(() => l.virtual, N, { flush: "post" }), Me(() => {
|
|
226
|
+
g = !0;
|
|
227
|
+
const t = ++L;
|
|
228
|
+
W(() => {
|
|
229
|
+
!g || t !== L || !s.value || (s.value.scrollTop = M, v.value = s.value.scrollTop, N());
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
async function Ce(t) {
|
|
233
|
+
if (!g || !s.value) return;
|
|
234
|
+
let i = t.top;
|
|
235
|
+
if (t.key !== void 0) {
|
|
236
|
+
const a = l.items.findIndex((n) => n.key === t.key);
|
|
237
|
+
if (a < 0) return;
|
|
238
|
+
if (l.virtual) i = a * f.value;
|
|
239
|
+
else {
|
|
240
|
+
await W();
|
|
241
|
+
const n = [
|
|
242
|
+
...s.value.querySelectorAll("[data-transfer-key]")
|
|
243
|
+
].find((o) => o.dataset.transferKey === T(t.key));
|
|
244
|
+
n && (i = n.offsetTop);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
i !== void 0 && Number.isFinite(i) && (s.value.scrollTo({ top: i, behavior: t.behavior ?? "auto" }), M = s.value.scrollTop, l.virtual && (v.value = s.value.scrollTop));
|
|
248
|
+
}
|
|
249
|
+
function ze() {
|
|
250
|
+
var t, i, a;
|
|
251
|
+
l.busy || (l.filterable ? (t = X.value) == null || t.focus() : (a = (i = J.value) == null ? void 0 : i.querySelector("input:not(:disabled),button:not(:disabled)")) == null || a.focus());
|
|
252
|
+
}
|
|
253
|
+
function Se(t) {
|
|
254
|
+
t.key === "Enter" && !t.isComposing && t.keyCode !== 229 && t.preventDefault();
|
|
255
|
+
}
|
|
256
|
+
return oe({ scrollTo: Ce, focus: ze }), (t, i) => (r(), c("section", He({
|
|
257
|
+
ref_key: "element",
|
|
258
|
+
ref: J
|
|
259
|
+
}, k(de), {
|
|
260
|
+
class: ["hys-ui-v4-pane hys-ui-transfer-pane", { "hys-ui-is-drop-target": e.dropTarget }],
|
|
261
|
+
"data-side": e.side,
|
|
262
|
+
"aria-label": e.title,
|
|
263
|
+
"aria-busy": e.loading || void 0,
|
|
264
|
+
onDragover: i[6] || (i[6] = (a) => u("dragOver", a)),
|
|
265
|
+
onDragleave: i[7] || (i[7] = (a) => u("dragLeave", a)),
|
|
266
|
+
onDrop: i[8] || (i[8] = (a) => u("drop", a))
|
|
267
|
+
}), [
|
|
268
|
+
m("header", Ne, [
|
|
269
|
+
S(t.$slots, "header", {
|
|
270
|
+
info: R.value,
|
|
271
|
+
allChecked: E.value,
|
|
272
|
+
indeterminate: Y.value
|
|
273
|
+
}, () => [
|
|
274
|
+
e.showSelectAll && A.value ? (r(), x(ne, {
|
|
275
|
+
key: 0,
|
|
276
|
+
"model-value": E.value,
|
|
277
|
+
indeterminate: Y.value,
|
|
278
|
+
size: e.size,
|
|
279
|
+
disabled: e.busy || !B.value.length,
|
|
280
|
+
"aria-label": k(re)(e.words.selectAll, { title: e.title }),
|
|
281
|
+
onChange: i[0] || (i[0] = (a) => u("checkAll", a))
|
|
282
|
+
}, {
|
|
283
|
+
default: O(() => [
|
|
284
|
+
m("strong", {
|
|
285
|
+
id: e.id + "-title"
|
|
286
|
+
}, h(e.title), 9, Ee)
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
}, 8, ["model-value", "indeterminate", "size", "disabled", "aria-label"])) : (r(), c("strong", {
|
|
290
|
+
key: 1,
|
|
291
|
+
id: e.id + "-title"
|
|
292
|
+
}, h(e.title), 9, Re)),
|
|
293
|
+
m("span", Ve, h(e.format ? e.format(R.value) : e.checkedKeys.length ? e.checkedKeys.length + " / " + e.total : e.total), 1)
|
|
294
|
+
], !0)
|
|
295
|
+
]),
|
|
296
|
+
e.filterable ? (r(), x($e, {
|
|
297
|
+
key: 0,
|
|
298
|
+
ref_key: "searchInput",
|
|
299
|
+
ref: X,
|
|
300
|
+
class: "hys-ui-pf-transfer-search",
|
|
301
|
+
"model-value": e.query,
|
|
302
|
+
size: e.size,
|
|
303
|
+
placeholder: e.placeholder,
|
|
304
|
+
"aria-label": e.placeholder + " · " + e.title,
|
|
305
|
+
disabled: e.busy,
|
|
306
|
+
clearable: "",
|
|
307
|
+
"onUpdate:modelValue": i[1] || (i[1] = (a) => u("search", String(a))),
|
|
308
|
+
onKeydown: Se
|
|
309
|
+
}, {
|
|
310
|
+
prefix: O(() => [
|
|
311
|
+
$(k(qe), {
|
|
312
|
+
size: 14,
|
|
313
|
+
"aria-hidden": "true"
|
|
314
|
+
})
|
|
315
|
+
]),
|
|
316
|
+
_: 1
|
|
317
|
+
}, 8, ["model-value", "size", "placeholder", "aria-label", "disabled"])) : w("", !0),
|
|
318
|
+
m("div", Ue, [
|
|
319
|
+
m("div", {
|
|
320
|
+
ref_key: "viewport",
|
|
321
|
+
ref: s,
|
|
322
|
+
class: ie(["hys-ui-pf-transfer-list", { "hys-ui-transfer-virtual": e.virtual }]),
|
|
323
|
+
style: j({
|
|
324
|
+
height: q.value + "px",
|
|
325
|
+
"--hys-ui-transfer-item-height": f.value + "px",
|
|
326
|
+
...e.listStyle
|
|
327
|
+
}),
|
|
328
|
+
role: "group",
|
|
329
|
+
"aria-label": e.title,
|
|
330
|
+
onScrollPassive: he,
|
|
331
|
+
onKeydown: we
|
|
332
|
+
}, [
|
|
333
|
+
S(t.$slots, "panel", {}, () => [
|
|
334
|
+
m("div", {
|
|
335
|
+
class: "hys-ui-transfer-content",
|
|
336
|
+
style: j(
|
|
337
|
+
e.virtual ? {
|
|
338
|
+
height: e.items.length * f.value + "px",
|
|
339
|
+
position: "relative"
|
|
340
|
+
} : void 0
|
|
341
|
+
)
|
|
342
|
+
}, [
|
|
343
|
+
m("div", {
|
|
344
|
+
class: "hys-ui-transfer-rows",
|
|
345
|
+
style: j(
|
|
346
|
+
e.virtual ? {
|
|
347
|
+
position: "absolute",
|
|
348
|
+
top: _.value * f.value + "px",
|
|
349
|
+
left: 0,
|
|
350
|
+
right: 0
|
|
351
|
+
} : void 0
|
|
352
|
+
)
|
|
353
|
+
}, [
|
|
354
|
+
(r(!0), c(G, null, Be(ye.value, (a) => (r(), c("div", {
|
|
355
|
+
key: k(T)(a.key),
|
|
356
|
+
class: ie(["hys-ui-v4-option hys-ui-transfer-row", {
|
|
357
|
+
"hys-ui-is-checked": H.value.has(a.key),
|
|
358
|
+
"hys-ui-is-disabled": a.disabled,
|
|
359
|
+
"hys-ui-is-dragging": ce.value.has(a.key)
|
|
360
|
+
}]),
|
|
361
|
+
"data-transfer-key": k(T)(a.key),
|
|
362
|
+
draggable: e.draggable && !e.busy && !a.disabled && !(e.oneWay && e.side === "right"),
|
|
363
|
+
title: a.disabled ? void 0 : e.moveOnDoubleClick ? e.side === "left" ? e.words.doubleClickRight : e.words.doubleClickLeft : e.side === "left" ? e.words.dragRight : e.words.dragLeft,
|
|
364
|
+
onClickCapture: (n) => ke(n, a),
|
|
365
|
+
onDblclick: (n) => me(n, a),
|
|
366
|
+
onMousedown: (n) => be(n, a),
|
|
367
|
+
onDragstart: (n) => u("dragStart", n, a.key),
|
|
368
|
+
onDragend: i[2] || (i[2] = (n) => u("dragEnd"))
|
|
369
|
+
}, [
|
|
370
|
+
A.value ? (r(), x(ne, {
|
|
371
|
+
key: 0,
|
|
372
|
+
class: "hys-ui-transfer-check",
|
|
373
|
+
size: e.size,
|
|
374
|
+
"model-value": H.value.has(a.key),
|
|
375
|
+
disabled: e.busy || a.disabled,
|
|
376
|
+
"aria-label": a.label,
|
|
377
|
+
onChange: (n) => te(a.key, n)
|
|
378
|
+
}, {
|
|
379
|
+
default: O(() => [
|
|
380
|
+
m("span", Ge, [
|
|
381
|
+
S(t.$slots, "option", {
|
|
382
|
+
option: a.option,
|
|
383
|
+
label: a.label,
|
|
384
|
+
checked: H.value.has(a.key),
|
|
385
|
+
disabled: e.busy || a.disabled
|
|
386
|
+
}, () => [
|
|
387
|
+
e.renderContent ? (r(), x(ee, {
|
|
388
|
+
key: 0,
|
|
389
|
+
item: a.option
|
|
390
|
+
}, null, 8, ["item"])) : (r(), c(G, { key: 1 }, [
|
|
391
|
+
p(h(a.label), 1)
|
|
392
|
+
], 64))
|
|
393
|
+
], !0)
|
|
394
|
+
])
|
|
395
|
+
]),
|
|
396
|
+
_: 2
|
|
397
|
+
}, 1032, ["size", "model-value", "disabled", "aria-label", "onChange"])) : (r(), c("span", Xe, [
|
|
398
|
+
S(t.$slots, "option", {
|
|
399
|
+
option: a.option,
|
|
400
|
+
label: a.label,
|
|
401
|
+
checked: !1,
|
|
402
|
+
disabled: e.busy || a.disabled
|
|
403
|
+
}, () => [
|
|
404
|
+
e.renderContent ? (r(), x(ee, {
|
|
405
|
+
key: 0,
|
|
406
|
+
item: a.option
|
|
407
|
+
}, null, 8, ["item"])) : (r(), c(G, { key: 1 }, [
|
|
408
|
+
p(h(a.label), 1)
|
|
409
|
+
], 64))
|
|
410
|
+
], !0)
|
|
411
|
+
])),
|
|
412
|
+
e.oneWay && e.side === "right" ? (r(), x(se, {
|
|
413
|
+
key: 2,
|
|
414
|
+
variant: "ghost",
|
|
415
|
+
size: "sm",
|
|
416
|
+
class: "hys-ui-transfer-remove",
|
|
417
|
+
disabled: e.busy || a.disabled,
|
|
418
|
+
"aria-label": k(re)(e.words.remove, { label: a.label }),
|
|
419
|
+
onClick: Ae((n) => u("remove", a.key), ["stop"])
|
|
420
|
+
}, {
|
|
421
|
+
default: O(() => [
|
|
422
|
+
$(k(Pe), {
|
|
423
|
+
size: 14,
|
|
424
|
+
"aria-hidden": "true"
|
|
425
|
+
})
|
|
426
|
+
]),
|
|
427
|
+
_: 1
|
|
428
|
+
}, 8, ["disabled", "aria-label", "onClick"])) : e.draggable && !a.disabled ? (r(), x(k(Ie), {
|
|
429
|
+
key: 3,
|
|
430
|
+
class: "hys-ui-pf-transfer-grip",
|
|
431
|
+
size: 12,
|
|
432
|
+
"aria-hidden": "true"
|
|
433
|
+
})) : w("", !0)
|
|
434
|
+
], 42, je))), 128))
|
|
435
|
+
], 4)
|
|
436
|
+
], 4),
|
|
437
|
+
!e.items.length && !e.loading ? (r(), c("div", Je, [
|
|
438
|
+
S(t.$slots, "empty", { query: e.query }, () => [
|
|
439
|
+
p(h(e.query ? e.words.noMatch : e.side === "left" ? e.words.emptyLeft : e.words.emptyRight), 1)
|
|
440
|
+
], !0)
|
|
441
|
+
])) : w("", !0)
|
|
442
|
+
], !0)
|
|
443
|
+
], 46, We),
|
|
444
|
+
e.loading ? (r(), c("div", {
|
|
445
|
+
key: 0,
|
|
446
|
+
class: "hys-ui-transfer-loading",
|
|
447
|
+
role: "status",
|
|
448
|
+
"aria-label": e.words.loading
|
|
449
|
+
}, [
|
|
450
|
+
S(t.$slots, "loading", {}, () => [
|
|
451
|
+
$(k(Oe), {
|
|
452
|
+
size: 18,
|
|
453
|
+
class: "hys-ui-icon-spin",
|
|
454
|
+
"aria-hidden": "true"
|
|
455
|
+
}),
|
|
456
|
+
m("span", null, h(e.words.loading), 1)
|
|
457
|
+
], !0)
|
|
458
|
+
], 8, Qe)) : w("", !0)
|
|
459
|
+
]),
|
|
460
|
+
e.showInvert && A.value ? (r(), c("div", Ye, [
|
|
461
|
+
$(se, {
|
|
462
|
+
variant: "ghost",
|
|
463
|
+
size: "sm",
|
|
464
|
+
disabled: e.busy || !B.value.length,
|
|
465
|
+
onClick: i[3] || (i[3] = (a) => u("invert"))
|
|
466
|
+
}, {
|
|
467
|
+
default: O(() => [
|
|
468
|
+
p(h(e.words.invert), 1)
|
|
469
|
+
]),
|
|
470
|
+
_: 1
|
|
471
|
+
}, 8, ["disabled"]),
|
|
472
|
+
e.filtered !== e.total ? (r(), c("span", Ze, h(e.filtered) + " / " + h(e.total), 1)) : w("", !0)
|
|
473
|
+
])) : w("", !0),
|
|
474
|
+
e.pagination ? (r(), c("div", _e, [
|
|
475
|
+
$(Fe, {
|
|
476
|
+
page: e.page,
|
|
477
|
+
"page-size": e.pageSize,
|
|
478
|
+
total: e.filtered,
|
|
479
|
+
disabled: e.busy,
|
|
480
|
+
compact: e.pagination.compact ?? !0,
|
|
481
|
+
"show-total": !1,
|
|
482
|
+
"show-size-changer": e.pagination.showSizeChanger,
|
|
483
|
+
"page-size-options": e.pagination.pageSizeOptions,
|
|
484
|
+
labels: {
|
|
485
|
+
first: e.words.firstPage,
|
|
486
|
+
previous: e.words.previousPage,
|
|
487
|
+
next: e.words.nextPage,
|
|
488
|
+
last: e.words.lastPage,
|
|
489
|
+
perPage: e.words.perPage
|
|
490
|
+
},
|
|
491
|
+
"onUpdate:page": i[4] || (i[4] = (a) => u("page", a)),
|
|
492
|
+
"onUpdate:pageSize": i[5] || (i[5] = (a) => u("pageSize", a))
|
|
493
|
+
}, null, 8, ["page", "page-size", "total", "disabled", "compact", "show-size-changer", "page-size-options", "labels"])
|
|
494
|
+
])) : w("", !0),
|
|
495
|
+
t.$slots.footer ? (r(), c("footer", et, [
|
|
496
|
+
S(t.$slots, "footer", { info: R.value }, void 0, !0)
|
|
497
|
+
])) : w("", !0)
|
|
498
|
+
], 16, Le));
|
|
499
|
+
}
|
|
500
|
+
});
|
|
501
|
+
export {
|
|
502
|
+
ut as default
|
|
503
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import o from "./HysTree2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-781f99f3"]]);
|
|
6
5
|
export {
|
|
7
|
-
|
|
6
|
+
m as default
|
|
8
7
|
};
|