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.
Files changed (337) hide show
  1. package/CHANGELOG.md +149 -0
  2. package/README.md +17 -1
  3. package/dist/components/HysAccordion/HysAccordion.vue.js +1 -1
  4. package/dist/components/HysAccordion/HysAccordion2.vue.js +181 -47
  5. package/dist/components/HysAlert/HysAlert.vue.js +5 -54
  6. package/dist/components/HysAlert/HysAlert2.vue.js +159 -2
  7. package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +7 -0
  8. package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +639 -0
  9. package/dist/components/HysAvatar/HysAvatar.vue.js +5 -35
  10. package/dist/components/HysAvatar/HysAvatar2.vue.js +221 -2
  11. package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +7 -0
  12. package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +256 -0
  13. package/dist/components/HysBadge/HysBadge.vue.js +2 -2
  14. package/dist/components/HysBadge/HysBadge2.vue.js +154 -27
  15. package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +5 -38
  16. package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +288 -2
  17. package/dist/components/HysButton/HysButton.vue.js +2 -2
  18. package/dist/components/HysButton/HysButton2.vue.js +29 -28
  19. package/dist/components/HysCalendar/HysCalendar.vue.js +5 -92
  20. package/dist/components/HysCalendar/HysCalendar2.vue.js +815 -2
  21. package/dist/components/HysCard/HysCard.vue.js +2 -2
  22. package/dist/components/HysCard/HysCard2.vue.js +175 -42
  23. package/dist/components/HysCascader/HysCascader.vue.js +5 -194
  24. package/dist/components/HysCascader/HysCascader2.vue.js +773 -2
  25. package/dist/components/HysCascader/HysCascaderColumn.vue.js +7 -0
  26. package/dist/components/HysCascader/HysCascaderColumn2.vue.js +232 -0
  27. package/dist/components/HysCheckbox/HysCheckbox.vue.js +3 -3
  28. package/dist/components/HysCheckbox/HysCheckbox2.vue.js +180 -65
  29. package/dist/components/HysCheckboxGroup/HysCheckboxGroup.vue.js +7 -0
  30. package/dist/components/HysCheckboxGroup/HysCheckboxGroup2.vue.js +237 -0
  31. package/dist/components/HysColorPicker/HysColorPanel.vue.js +7 -0
  32. package/dist/components/HysColorPicker/HysColorPanel2.vue.js +238 -0
  33. package/dist/components/HysColorPicker/HysColorPicker.vue.js +1 -1
  34. package/dist/components/HysColorPicker/HysColorPicker2.vue.js +239 -216
  35. package/dist/components/HysCommandPalette/HysCommandPalette.vue.js +90 -76
  36. package/dist/components/HysContextMenu/HysContextMenu.vue.js +5 -89
  37. package/dist/components/HysContextMenu/HysContextMenu2.vue.js +247 -2
  38. package/dist/components/HysContextMenu/HysMenuPanel.vue.js +7 -0
  39. package/dist/components/HysContextMenu/HysMenuPanel2.vue.js +208 -0
  40. package/dist/components/HysContextMenu/HysMenuSlot.js +10 -0
  41. package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
  42. package/dist/components/HysDataGrid/HysDataGrid2.vue.js +1019 -563
  43. package/dist/components/HysDatePicker/HysDatePicker.vue.js +270 -139
  44. package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +7 -0
  45. package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +820 -0
  46. package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +7 -0
  47. package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +357 -0
  48. package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +270 -158
  49. package/dist/components/HysDivider/HysDivider.vue.js +2 -2
  50. package/dist/components/HysDivider/HysDivider2.vue.js +33 -13
  51. package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
  52. package/dist/components/HysDrawer/HysDrawer2.vue.js +434 -84
  53. package/dist/components/HysEmpty/HysEmpty.vue.js +5 -41
  54. package/dist/components/HysEmpty/HysEmpty2.vue.js +181 -2
  55. package/dist/components/HysFileManager/HysFileManager.vue.js +3 -3
  56. package/dist/components/HysFileManager/HysFileManager2.vue.js +43 -42
  57. package/dist/components/HysForm/HysForm.vue.js +3 -3
  58. package/dist/components/HysForm/HysForm2.vue.js +578 -92
  59. package/dist/components/HysFormItem/HysFormItem.vue.js +5 -85
  60. package/dist/components/HysFormItem/HysFormItem2.vue.js +528 -2
  61. package/dist/components/HysGantt/HysGantt.vue.js +1 -1
  62. package/dist/components/HysGantt/HysGantt2.vue.js +1380 -268
  63. package/dist/components/HysInput/HysInput.vue.js +2 -2
  64. package/dist/components/HysInput/HysInput2.vue.js +467 -120
  65. package/dist/components/HysMention/HysMention.vue.js +2 -2
  66. package/dist/components/HysMention/HysMention2.vue.js +122 -109
  67. package/dist/components/HysModal/HysModal.vue.js +2 -2
  68. package/dist/components/HysModal/HysModal2.vue.js +490 -85
  69. package/dist/components/HysNumberInput/HysNumberInput.vue.js +2 -2
  70. package/dist/components/HysNumberInput/HysNumberInput2.vue.js +561 -79
  71. package/dist/components/HysOrgTree/HysOrgTree.vue.js +29 -26
  72. package/dist/components/HysPagination/HysPagination.vue.js +1 -1
  73. package/dist/components/HysPagination/HysPagination2.vue.js +2 -0
  74. package/dist/components/HysPermissionMatrix/HysPermissionMatrix.vue.js +2 -2
  75. package/dist/components/HysPermissionMatrix/HysPermissionMatrix2.vue.js +52 -51
  76. package/dist/components/HysPopover/HysPopover.vue.js +5 -91
  77. package/dist/components/HysPopover/HysPopover2.vue.js +120 -2
  78. package/dist/components/HysProgress/HysProgress.vue.js +2 -2
  79. package/dist/components/HysProgress/HysProgress2.vue.js +319 -52
  80. package/dist/components/HysRadio/HysRadio.vue.js +7 -0
  81. package/dist/components/HysRadio/HysRadio2.vue.js +180 -0
  82. package/dist/components/HysRadioGroup/HysRadioGroup.vue.js +2 -2
  83. package/dist/components/HysRadioGroup/HysRadioGroup2.vue.js +190 -65
  84. package/dist/components/HysRating/HysRating.vue.js +1 -1
  85. package/dist/components/HysRating/HysRating2.vue.js +288 -68
  86. package/dist/components/HysRichTextEditor/HysRichTextEditor.vue.js +1 -1
  87. package/dist/components/HysRichTextEditor/HysRichTextEditor2.vue.js +70 -69
  88. package/dist/components/HysSearch/HysSearch.vue.js +37 -36
  89. package/dist/components/HysSegmented/HysSegmented.vue.js +5 -63
  90. package/dist/components/HysSegmented/HysSegmented2.vue.js +273 -2
  91. package/dist/components/HysSelect/HysSelect.vue.js +3 -2
  92. package/dist/components/HysSelect/HysSelect2.vue.js +999 -189
  93. package/dist/components/HysSkeleton/HysSkeleton.vue.js +2 -2
  94. package/dist/components/HysSkeleton/HysSkeleton2.vue.js +126 -29
  95. package/dist/components/HysSlider/HysSlider.vue.js +1 -1
  96. package/dist/components/HysSlider/HysSlider2.vue.js +536 -59
  97. package/dist/components/HysSlider/SliderTooltip.vue.js +7 -0
  98. package/dist/components/HysSlider/SliderTooltip2.vue.js +170 -0
  99. package/dist/components/HysSteps/HysSteps.vue.js +1 -1
  100. package/dist/components/HysSteps/HysSteps2.vue.js +110 -36
  101. package/dist/components/HysSwitch/HysSwitch.vue.js +2 -2
  102. package/dist/components/HysSwitch/HysSwitch2.vue.js +232 -50
  103. package/dist/components/HysTable/HysTable.vue.js +1 -1
  104. package/dist/components/HysTable/HysTable2.vue.js +1494 -88
  105. package/dist/components/HysTable/HysTableFilterOptions.vue.js +7 -0
  106. package/dist/components/HysTable/HysTableFilterOptions2.vue.js +133 -0
  107. package/dist/components/HysTabs/HysTabs.vue.js +2 -2
  108. package/dist/components/HysTabs/HysTabs2.vue.js +262 -68
  109. package/dist/components/HysTagInput/HysTagInput.vue.js +5 -81
  110. package/dist/components/HysTagInput/HysTagInput2.vue.js +396 -2
  111. package/dist/components/HysTextarea/HysTextarea.vue.js +138 -77
  112. package/dist/components/HysTimeline/HysTimeline.vue.js +2 -2
  113. package/dist/components/HysTimeline/HysTimeline2.vue.js +243 -24
  114. package/dist/components/HysTooltip/HysTooltip.vue.js +5 -64
  115. package/dist/components/HysTooltip/HysTooltip2.vue.js +110 -2
  116. package/dist/components/HysTour/HysTour.vue.js +46 -42
  117. package/dist/components/HysTransfer/HysTransfer.vue.js +5 -223
  118. package/dist/components/HysTransfer/HysTransfer2.vue.js +446 -2
  119. package/dist/components/HysTransfer/HysTransferPanel.vue.js +7 -0
  120. package/dist/components/HysTransfer/HysTransferPanel2.vue.js +503 -0
  121. package/dist/components/HysTree/HysTree.vue.js +2 -3
  122. package/dist/components/HysTree/HysTree2.vue.js +651 -301
  123. package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +5 -136
  124. package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +570 -2
  125. package/dist/components/HysTreeSelect/HysTreeSelectPanel.vue.js +7 -0
  126. package/dist/components/HysTreeSelect/HysTreeSelectPanel2.vue.js +323 -0
  127. package/dist/components/HysUpload/HysUpload.vue.js +2 -2
  128. package/dist/components/HysUpload/HysUpload2.vue.js +459 -124
  129. package/dist/components/HysVirtualTable/HysVirtualTable.vue.js +5 -94
  130. package/dist/components/HysVirtualTable/HysVirtualTable2.vue.js +656 -2
  131. package/dist/composables/autocomplete.js +50 -0
  132. package/dist/composables/avatar.js +57 -0
  133. package/dist/composables/calendar.js +96 -0
  134. package/dist/composables/cascader.js +79 -0
  135. package/dist/composables/choice.js +38 -0
  136. package/dist/composables/choiceModel.js +67 -0
  137. package/dist/composables/color.js +97 -0
  138. package/dist/composables/dataGrid.js +68 -0
  139. package/dist/composables/datePicker.js +227 -0
  140. package/dist/composables/drawer.js +17 -0
  141. package/dist/composables/feedback.js +14 -0
  142. package/dist/composables/formContext.js +92 -7
  143. package/dist/composables/formLayout.js +57 -0
  144. package/dist/composables/formValidation.js +240 -0
  145. package/dist/composables/ganttConflicts.js +143 -0
  146. package/dist/composables/menu.js +96 -0
  147. package/dist/composables/modal.js +14 -0
  148. package/dist/composables/numberInput.js +91 -0
  149. package/dist/composables/overlayManager.js +48 -18
  150. package/dist/composables/progress.js +94 -0
  151. package/dist/composables/rating.js +16 -0
  152. package/dist/composables/selectOptions.js +54 -0
  153. package/dist/composables/table.js +150 -0
  154. package/dist/composables/tagInput.js +16 -0
  155. package/dist/composables/textInput.js +34 -0
  156. package/dist/composables/timeline.js +19 -0
  157. package/dist/composables/transfer.js +65 -0
  158. package/dist/composables/tree.js +118 -0
  159. package/dist/composables/treeSelect.js +71 -0
  160. package/dist/composables/upload.js +55 -0
  161. package/dist/composables/uploadRequest.js +58 -0
  162. package/dist/composables/useAlert.js +124 -0
  163. package/dist/composables/useCascader.js +438 -0
  164. package/dist/composables/useColorPicker.js +402 -0
  165. package/dist/composables/useContextMenu.js +514 -0
  166. package/dist/composables/useDataGridRemote.js +67 -0
  167. package/dist/composables/useDatePicker.js +425 -0
  168. package/dist/composables/useDialog.js +86 -43
  169. package/dist/composables/useDrawerPush.js +33 -0
  170. package/dist/composables/useDrawerResize.js +221 -0
  171. package/dist/composables/useFloating.js +136 -56
  172. package/dist/composables/useGanttDependencies.js +306 -0
  173. package/dist/composables/useGanttHistory.js +157 -0
  174. package/dist/composables/useGanttLabelResize.js +100 -0
  175. package/dist/composables/useHysModal.js +185 -0
  176. package/dist/composables/useModal.js +295 -0
  177. package/dist/composables/useModalInteraction.js +394 -0
  178. package/dist/composables/usePopupSurface.js +458 -0
  179. package/dist/composables/useTable.js +474 -0
  180. package/dist/composables/useTagInput.js +313 -0
  181. package/dist/composables/useTextareaSize.js +72 -0
  182. package/dist/composables/useTransfer.js +257 -0
  183. package/dist/composables/useTransferMotion.js +185 -0
  184. package/dist/composables/useTree.js +439 -0
  185. package/dist/composables/useTreeSelect.js +361 -0
  186. package/dist/composables/useUpload.js +472 -0
  187. package/dist/composables/useUploadModel.js +65 -0
  188. package/dist/composables/useUploadRequests.js +266 -0
  189. package/dist/composables/useVirtualTableLayout.js +277 -0
  190. package/dist/composables/virtualTable.js +43 -0
  191. package/dist/index.js +152 -139
  192. package/dist/internal/PopupReference.js +39 -0
  193. package/dist/internal/PopupSurfacePanel.vue.js +7 -0
  194. package/dist/internal/PopupSurfacePanel2.vue.js +92 -0
  195. package/dist/motion/PopupMotion.js +105 -0
  196. package/dist/motion/popup.js +10 -0
  197. package/dist/style.css +1 -1
  198. package/dist/types/components/HysAccordion/HysAccordion.vue.d.ts +61 -22
  199. package/dist/types/components/HysAlert/HysAlert.vue.d.ts +32 -22
  200. package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +201 -0
  201. package/dist/types/components/HysAvatar/HysAvatar.vue.d.ts +28 -15
  202. package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +104 -0
  203. package/dist/types/components/HysBadge/HysBadge.vue.d.ts +41 -4
  204. package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +71 -20
  205. package/dist/types/components/HysButton/HysButton.vue.d.ts +0 -1
  206. package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +120 -31
  207. package/dist/types/components/HysCard/HysCard.vue.d.ts +55 -7
  208. package/dist/types/components/HysCascader/HysCascader.vue.d.ts +129 -41
  209. package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +55 -0
  210. package/dist/types/components/HysCheckbox/HysCheckbox.vue.d.ts +50 -39
  211. package/dist/types/components/HysCheckboxGroup/HysCheckboxGroup.vue.d.ts +73 -0
  212. package/dist/types/components/HysColorPicker/HysColorPanel.vue.d.ts +58 -0
  213. package/dist/types/components/HysColorPicker/HysColorPicker.vue.d.ts +63 -10
  214. package/dist/types/components/HysCommandPalette/HysCommandPalette.vue.d.ts +2 -1
  215. package/dist/types/components/HysContextMenu/HysContextMenu.vue.d.ts +50 -34
  216. package/dist/types/components/HysContextMenu/HysMenuPanel.vue.d.ts +79 -0
  217. package/dist/types/components/HysContextMenu/HysMenuSlot.d.ts +8 -0
  218. package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +65 -118
  219. package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +66 -14
  220. package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +90 -0
  221. package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +93 -0
  222. package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +66 -14
  223. package/dist/types/components/HysDivider/HysDivider.vue.d.ts +8 -3
  224. package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +92 -35
  225. package/dist/types/components/HysEmpty/HysEmpty.vue.d.ts +24 -20
  226. package/dist/types/components/HysForm/HysForm.vue.d.ts +110 -18
  227. package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +108 -2
  228. package/dist/types/components/HysGantt/HysGantt.vue.d.ts +84 -5
  229. package/dist/types/components/HysInput/HysInput.vue.d.ts +52 -29
  230. package/dist/types/components/HysMention/HysMention.vue.d.ts +4 -3
  231. package/dist/types/components/HysModal/HysModal.vue.d.ts +111 -34
  232. package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +93 -35
  233. package/dist/types/components/HysOrgTree/HysOrgTree.vue.d.ts +1 -0
  234. package/dist/types/components/HysPagination/HysPagination.vue.d.ts +1 -1
  235. package/dist/types/components/HysPermissionMatrix/HysPermissionMatrix.vue.d.ts +2 -2
  236. package/dist/types/components/HysPopover/HysPopover.vue.d.ts +41 -29
  237. package/dist/types/components/HysProgress/HysProgress.vue.d.ts +18 -24
  238. package/dist/types/components/HysRadio/HysRadio.vue.d.ts +56 -0
  239. package/dist/types/components/HysRadioGroup/HysRadioGroup.vue.d.ts +34 -12
  240. package/dist/types/components/HysRating/HysRating.vue.d.ts +85 -5
  241. package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +2 -2
  242. package/dist/types/components/HysRichTextEditor/HysRichTextEditor.vue.d.ts +4 -4
  243. package/dist/types/components/HysSearch/HysSearch.vue.d.ts +2 -2
  244. package/dist/types/components/HysSegmented/HysSegmented.vue.d.ts +64 -32
  245. package/dist/types/components/HysSelect/HysSelect.vue.d.ts +131 -22
  246. package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +30 -2
  247. package/dist/types/components/HysSlider/HysSlider.vue.d.ts +69 -11
  248. package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +24 -0
  249. package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +3 -3
  250. package/dist/types/components/HysSteps/HysSteps.vue.d.ts +64 -9
  251. package/dist/types/components/HysSwitch/HysSwitch.vue.d.ts +76 -17
  252. package/dist/types/components/HysTable/HysTable.vue.d.ts +206 -32
  253. package/dist/types/components/HysTable/HysTableFilterOptions.vue.d.ts +18 -0
  254. package/dist/types/components/HysTabs/HysTabs.vue.d.ts +76 -23
  255. package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +50 -28
  256. package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +44 -27
  257. package/dist/types/components/HysTimeline/HysTimeline.vue.d.ts +19 -32
  258. package/dist/types/components/HysToast/HysToast.vue.d.ts +3 -3
  259. package/dist/types/components/HysTooltip/HysTooltip.vue.d.ts +39 -19
  260. package/dist/types/components/HysTour/HysTour.vue.d.ts +4 -3
  261. package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +55 -40
  262. package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +107 -0
  263. package/dist/types/components/HysTree/HysTree.vue.d.ts +140 -73
  264. package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +102 -23
  265. package/dist/types/components/HysTreeSelect/HysTreeSelectPanel.vue.d.ts +56 -0
  266. package/dist/types/components/HysUpload/HysUpload.vue.d.ts +55 -67
  267. package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +71 -40
  268. package/dist/types/composables/autocomplete.d.ts +109 -0
  269. package/dist/types/composables/avatar.d.ts +73 -0
  270. package/dist/types/composables/calendar.d.ts +66 -0
  271. package/dist/types/composables/cascader.d.ts +195 -0
  272. package/dist/types/composables/choice.d.ts +110 -0
  273. package/dist/types/composables/choiceModel.d.ts +11 -0
  274. package/dist/types/composables/color.d.ts +97 -0
  275. package/dist/types/composables/dataGrid.d.ts +100 -0
  276. package/dist/types/composables/datePicker.d.ts +250 -0
  277. package/dist/types/composables/drawer.d.ts +102 -0
  278. package/dist/types/composables/feedback.d.ts +98 -0
  279. package/dist/types/composables/formContext.d.ts +135 -8
  280. package/dist/types/composables/formLayout.d.ts +11 -0
  281. package/dist/types/composables/formValidation.d.ts +13 -0
  282. package/dist/types/composables/gantt.d.ts +68 -0
  283. package/dist/types/composables/ganttConflicts.d.ts +30 -0
  284. package/dist/types/composables/menu.d.ts +183 -0
  285. package/dist/types/composables/modal.d.ts +183 -0
  286. package/dist/types/composables/numberInput.d.ts +45 -0
  287. package/dist/types/composables/overlayManager.d.ts +7 -3
  288. package/dist/types/composables/popupSurface.d.ts +83 -0
  289. package/dist/types/composables/progress.d.ts +92 -0
  290. package/dist/types/composables/rating.d.ts +18 -0
  291. package/dist/types/composables/segmented.d.ts +15 -0
  292. package/dist/types/composables/selectOptions.d.ts +46 -0
  293. package/dist/types/composables/slider.d.ts +21 -0
  294. package/dist/types/composables/table.d.ts +312 -0
  295. package/dist/types/composables/tagInput.d.ts +96 -0
  296. package/dist/types/composables/textInput.d.ts +76 -0
  297. package/dist/types/composables/timeline.d.ts +82 -0
  298. package/dist/types/composables/transfer.d.ts +187 -0
  299. package/dist/types/composables/tree.d.ts +240 -0
  300. package/dist/types/composables/treeSelect.d.ts +170 -0
  301. package/dist/types/composables/upload.d.ts +202 -0
  302. package/dist/types/composables/uploadRequest.d.ts +3 -0
  303. package/dist/types/composables/useAlert.d.ts +21 -0
  304. package/dist/types/composables/useCascader.d.ts +162 -0
  305. package/dist/types/composables/useColorPicker.d.ts +101 -0
  306. package/dist/types/composables/useContextMenu.d.ts +81 -0
  307. package/dist/types/composables/useDataGridRemote.d.ts +15 -0
  308. package/dist/types/composables/useDatePicker.d.ts +79 -0
  309. package/dist/types/composables/useDialog.d.ts +16 -3
  310. package/dist/types/composables/useDrawerPush.d.ts +6 -0
  311. package/dist/types/composables/useDrawerResize.d.ts +27 -0
  312. package/dist/types/composables/useFloating.d.ts +28 -6
  313. package/dist/types/composables/useGanttDependencies.d.ts +83 -0
  314. package/dist/types/composables/useGanttHistory.d.ts +42 -0
  315. package/dist/types/composables/useGanttLabelResize.d.ts +23 -0
  316. package/dist/types/composables/useHysModal.d.ts +44 -0
  317. package/dist/types/composables/useModal.d.ts +62 -0
  318. package/dist/types/composables/useModalInteraction.d.ts +27 -0
  319. package/dist/types/composables/usePopupSurface.d.ts +3341 -0
  320. package/dist/types/composables/useTable.d.ts +60 -0
  321. package/dist/types/composables/useTagInput.d.ts +66 -0
  322. package/dist/types/composables/useTextareaSize.d.ts +3 -0
  323. package/dist/types/composables/useTransfer.d.ts +58 -0
  324. package/dist/types/composables/useTransferMotion.d.ts +36 -0
  325. package/dist/types/composables/useTree.d.ts +77 -0
  326. package/dist/types/composables/useTreeSelect.d.ts +117 -0
  327. package/dist/types/composables/useUpload.d.ts +94 -0
  328. package/dist/types/composables/useUploadModel.d.ts +14 -0
  329. package/dist/types/composables/useUploadRequests.d.ts +38 -0
  330. package/dist/types/composables/useVirtualTableLayout.d.ts +51 -0
  331. package/dist/types/composables/virtualTable.d.ts +126 -0
  332. package/dist/types/index.d.ts +50 -9
  333. package/dist/types/internal/PopupReference.d.ts +18 -0
  334. package/dist/types/internal/PopupSurfacePanel.vue.d.ts +37 -0
  335. package/dist/types/motion/PopupMotion.d.ts +59 -0
  336. package/dist/types/motion/popup.d.ts +12 -0
  337. package/package.json +2 -1
@@ -0,0 +1,820 @@
1
+ import { defineComponent as ua, useSlots as da, computed as y, useAttrs as ca, ref as K, useId as va, provide as fa, watch as Q, nextTick as L, onMounted as pa, onUpdated as ya, onActivated as ma, onDeactivated as ha, onBeforeUnmount as ba, openBlock as s, createElementBlock as v, mergeProps as j, unref as a, withModifiers as Ne, normalizeClass as We, Fragment as $, renderSlot as S, createCommentVNode as m, renderList as M, createTextVNode as T, toDisplayString as h, createElementVNode as P, createVNode as oe, createBlock as A, resolveDynamicComponent as ka, Teleport as wa, withCtx as V, createSlots as ga, withDirectives as Ba, vShow as Ca, mergeDefaults as Sa } from "vue";
2
+ import Pa from "../../motion/PopupMotion.js";
3
+ import { X as $a, Clock3 as qe, CalendarDays as Da } from "lucide-vue-next";
4
+ import Y from "../HysButton/HysButton.vue.js";
5
+ import Ea from "../HysSelect/HysSelect.vue.js";
6
+ import Fa from "./HysDatePickerPanel.vue.js";
7
+ import { useHysRootAttrs as Ma } from "../../config.js";
8
+ import { useHysFormItemContext as Ta, useHysControlState as Va, fieldKey as za } from "../../composables/formContext.js";
9
+ import { useFloating as Aa } from "../../composables/useFloating.js";
10
+ import { useChoiceNativeReset as Na } from "../../composables/choiceModel.js";
11
+ import { useDatePicker as Wa } from "../../composables/useDatePicker.js";
12
+ import { dateNative as qa, datePickerDefaults as Oa } from "../../composables/datePicker.js";
13
+ const ja = ["data-status", "id", "role", "data-hys-ui-field-managed", "tabindex", "aria-label", "aria-required", "aria-invalid", "aria-disabled", "aria-describedby"], Ra = {
14
+ key: 0,
15
+ class: "hys-ui-date-prefix"
16
+ }, Ha = {
17
+ key: 0,
18
+ class: "hys-ui-date-separator"
19
+ }, Ia = ["id", "value", "aria-label", "aria-expanded", "aria-controls", "aria-invalid", "aria-required", "aria-describedby", "disabled", "readonly", "placeholder", "onInput", "onKeydown", "onBlur"], Ka = ["id", "disabled", "aria-label", "aria-expanded", "aria-controls", "aria-invalid", "aria-required", "aria-disabled", "aria-describedby", "aria-readonly"], La = {
20
+ key: 0,
21
+ class: "hys-ui-date-prefix"
22
+ }, Ua = { class: "hys-ui-date-icons" }, Xa = ["aria-label"], Ga = {
23
+ class: "hys-ui-date-suffix",
24
+ "aria-hidden": "true"
25
+ }, Ja = ["name", "value", "form", "disabled"], Qa = ["id"], Ya = ["id", "role", "aria-label"], Za = {
26
+ key: 0,
27
+ class: "hys-ui-date-popup-header"
28
+ }, xa = {
29
+ key: 1,
30
+ class: "hys-ui-date-shortcuts"
31
+ }, _a = ["disabled", "onClick"], et = {
32
+ key: 2,
33
+ class: "hys-ui-date-range-status"
34
+ }, at = ["disabled", "aria-pressed", "onClick"], tt = {
35
+ class: "hys-ui-date-range-instruction",
36
+ role: "status"
37
+ }, lt = { class: "hys-ui-date-panels" }, ot = {
38
+ key: 3,
39
+ class: "hys-ui-date-time-area",
40
+ "data-hys-ui-form-internal": ""
41
+ }, it = {
42
+ key: 0,
43
+ class: "hys-ui-date-time-colon"
44
+ }, nt = {
45
+ key: 4,
46
+ class: "hys-ui-date-partial"
47
+ }, rt = ["disabled", "onClick"], st = ["id"], ut = {
48
+ key: 6,
49
+ class: "hys-ui-date-footer"
50
+ }, dt = { class: "hys-ui-date-footer-shortcuts" }, ct = { class: "hys-ui-date-footer-actions" }, St = /* @__PURE__ */ ua({
51
+ inheritAttrs: !1,
52
+ __name: "HysDatePickerControl",
53
+ props: /* @__PURE__ */ Sa({
54
+ popupTransition: {},
55
+ popupTransitionDuration: {},
56
+ modelValue: {},
57
+ defaultValue: {},
58
+ clearValue: {},
59
+ type: {},
60
+ valueType: {},
61
+ valueFormat: {},
62
+ format: {},
63
+ inputFormats: {},
64
+ disabled: { type: [Boolean, Array] },
65
+ readonly: { type: Boolean },
66
+ size: {},
67
+ status: {},
68
+ bordered: { type: Boolean },
69
+ placeholder: {},
70
+ label: {},
71
+ ariaLabel: {},
72
+ name: {},
73
+ form: {},
74
+ autofocus: { type: Boolean },
75
+ min: {},
76
+ max: {},
77
+ disabledDate: { type: Function },
78
+ disabledTime: { type: Function },
79
+ firstDayOfWeek: {},
80
+ firstWeekContainsDate: {},
81
+ weekNumberFormatter: { type: Function },
82
+ disabledWeek: { type: Function },
83
+ weekValidation: {},
84
+ locale: {},
85
+ messages: {},
86
+ showWeekNumbers: { type: Boolean },
87
+ showAdjacentDays: { type: Boolean },
88
+ defaultPickerValue: {},
89
+ panelValue: {},
90
+ mode: {},
91
+ defaultMode: {},
92
+ shortcuts: {},
93
+ clearable: { type: Boolean },
94
+ editable: { type: Boolean },
95
+ inputReadonly: { type: Boolean },
96
+ showOnFocus: { type: Boolean },
97
+ showToday: { type: Boolean },
98
+ showNow: { type: Boolean },
99
+ showFooter: { type: Boolean },
100
+ showConfirm: { type: Boolean },
101
+ showTime: { type: Boolean },
102
+ defaultTime: {},
103
+ hourStep: {},
104
+ minuteStep: {},
105
+ secondStep: {},
106
+ showSeconds: { type: Boolean },
107
+ rangeSeparator: {},
108
+ startPlaceholder: {},
109
+ endPlaceholder: {},
110
+ allowEmpty: {},
111
+ singlePanel: { type: Boolean },
112
+ unlinkPanels: { type: Boolean },
113
+ minRangeDays: {},
114
+ maxRangeDays: {},
115
+ rangeValidation: {},
116
+ maxDates: {},
117
+ open: { type: Boolean },
118
+ defaultOpen: { type: Boolean },
119
+ inline: { type: Boolean },
120
+ placement: {},
121
+ appendTo: { type: [String, Boolean] },
122
+ popupWidth: {},
123
+ popupClass: {},
124
+ popupStyle: {},
125
+ validateEvent: { type: Boolean },
126
+ cellClassName: { type: Function },
127
+ range: { type: Boolean }
128
+ }, Oa),
129
+ emits: [
130
+ "update:modelValue",
131
+ "change",
132
+ "value-change",
133
+ "update:open",
134
+ "visible-change",
135
+ "update:panelValue",
136
+ "update:mode",
137
+ "panelChange",
138
+ "calendarChange",
139
+ "clear",
140
+ "ok",
141
+ "invalid",
142
+ "focus",
143
+ "blur"
144
+ ],
145
+ setup(r, { expose: Oe, emit: je }) {
146
+ const o = r, Re = da(), He = y(
147
+ () => ["prev-month", "next-month", "prev-year", "next-year"].filter(
148
+ (e) => !!Re[e]
149
+ )
150
+ ), R = je, ie = ca(), he = Ma(), w = Ta(), B = Va({
151
+ get disabled() {
152
+ var e;
153
+ return typeof o.disabled == "boolean" ? o.disabled : !!((e = o.disabled) != null && e.every(Boolean));
154
+ },
155
+ get size() {
156
+ return o.size;
157
+ }
158
+ }), C = K(), Z = K(), U = K(), ne = /* @__PURE__ */ new Map(), N = K(!0), f = y(() => !!o.range), b = y(
159
+ () => !N.value || B.disabled.value || !!o.readonly
160
+ ), z = va(), X = K(!1), H = K([]);
161
+ fa(za, void 0);
162
+ const l = Wa(
163
+ o,
164
+ f,
165
+ b,
166
+ (e, ...t) => R(e, ...t),
167
+ () => {
168
+ o.validateEvent && w.validate("change");
169
+ }
170
+ ), {
171
+ draft: k,
172
+ words: d,
173
+ current: re,
174
+ selected: Ie,
175
+ view: se,
176
+ panels: be,
177
+ error: I,
178
+ time: x,
179
+ needsConfirm: W
180
+ } = l;
181
+ l.begin();
182
+ const ue = y(
183
+ () => N.value && (o.inline || p.open.value)
184
+ ), Ke = y(
185
+ () => C.value ? {
186
+ getBoundingClientRect: () => C.value.getBoundingClientRect(),
187
+ contains: (e) => C.value.contains(e),
188
+ focus: pe,
189
+ get isConnected() {
190
+ var e;
191
+ return !!((e = C.value) != null && e.isConnected);
192
+ }
193
+ } : void 0
194
+ );
195
+ let de = !1, q = 0;
196
+ const p = Aa(Ke, U, {
197
+ get placement() {
198
+ return o.placement;
199
+ },
200
+ width: () => o.popupWidth,
201
+ requestOpen: (e, t) => (e || (de = !!t), R("update:open", e), o.open === void 0 ? void 0 : !1)
202
+ }), ke = y(() => o.inline || p.open.value), ce = y(
203
+ () => o.placeholder || (f.value ? `${o.startPlaceholder ?? d.value.start}${o.rangeSeparator}${o.endPlaceholder ?? d.value.end}` : d.value.empty)
204
+ ), we = y(() => {
205
+ const e = l.describe();
206
+ return f.value ? e.some(Boolean) ? [
207
+ e[0] || o.startPlaceholder || d.value.start,
208
+ e[1] || o.endPlaceholder || d.value.end
209
+ ].join(o.rangeSeparator) : "" : e.filter(Boolean).join("、");
210
+ }), ge = y(() => l.valid(k.value)), Le = y(
211
+ () => W.value && (f.value ? k.value.every(Boolean) : k.value.length) && !ge.value ? d.value.invalid : ""
212
+ ), Be = y(() => I.value || Le.value), Ce = y(
213
+ () => o.clearable && !b.value && Ie.value.some((e, t) => e && !l.locked(t))
214
+ ), G = y(() => String(ie.id ?? w.id.value ?? z)), J = y(
215
+ () => o.ariaLabel || o.label || w.label.value || ce.value
216
+ ), _ = y(
217
+ () => o.status ?? (w.error.value || I.value ? "error" : w.status.value)
218
+ ), Ue = y(
219
+ () => o.inline ? {
220
+ ...o.popupStyle,
221
+ position: "static",
222
+ width: "100%",
223
+ maxWidth: "100%",
224
+ boxShadow: "none"
225
+ } : {
226
+ ...o.popupStyle,
227
+ ...p.style.value,
228
+ width: o.popupWidth ?? (f.value && !o.singlePanel ? "576px" : "304px"),
229
+ maxWidth: "calc(100vw - 20px)",
230
+ maxHeight: "min(80dvh,calc(100dvh - 20px))"
231
+ }
232
+ ), Se = y(() => f.value && !o.singlePanel ? 2 : 1), ve = /* @__PURE__ */ new Map(), fe = y(
233
+ () => k.value.map((e) => e ? qa(e) : null)
234
+ ), Xe = y(
235
+ () => f.value && l.stage.value === "end" ? l.preview.value : void 0
236
+ ), Ge = () => Object.fromEntries(
237
+ Object.entries(ie).filter(
238
+ ([e]) => e !== "id" && !e.startsWith("aria-")
239
+ )
240
+ ), Pe = () => Object.fromEntries(
241
+ Object.entries(ie).filter(([e]) => e.startsWith("aria-"))
242
+ );
243
+ function Je(e, t) {
244
+ t instanceof HTMLInputElement ? ne.set(e, t) : ne.delete(e);
245
+ }
246
+ function g() {
247
+ if (H.value = l.describe(), f.value) for (; H.value.length < 2; ) H.value.push("");
248
+ }
249
+ function pe() {
250
+ var e;
251
+ B.disabled.value || (e = !o.inline && o.editable && !l.multiple.value ? ne.get(0) : Z.value ?? C.value) == null || e.focus();
252
+ }
253
+ async function $e() {
254
+ var e;
255
+ await L(), await ((e = ve.get(0)) == null ? void 0 : e.focus());
256
+ }
257
+ async function D(e = !0, t = !1) {
258
+ if (b.value) return !1;
259
+ const i = q, c = p.open.value;
260
+ return o.inline || await p.show(t), await L(), !ue.value || i !== q ? !1 : (c || (l.begin(), g()), await L(), p.update(), e && await $e(), ue.value);
261
+ }
262
+ function E(e = !1) {
263
+ o.inline || p.close(e);
264
+ }
265
+ function ee() {
266
+ l.begin(), g(), E(!0);
267
+ }
268
+ async function ae() {
269
+ const e = await l.clear();
270
+ return e && (g(), E(!0)), e;
271
+ }
272
+ async function te() {
273
+ const e = await l.confirm();
274
+ return e && (g(), E(!0)), e;
275
+ }
276
+ async function De(e) {
277
+ const t = q, i = await l.choose(e);
278
+ !N.value || t !== q || i && !W.value && !l.multiple.value && !o.inline && (g(), E(!0));
279
+ }
280
+ async function Qe(e) {
281
+ var t;
282
+ if (l.pickShortcut(e))
283
+ if (!W.value)
284
+ await l.request(l.encode(k.value), "shortcut") && (g(), E(!0));
285
+ else {
286
+ const i = (t = k.value.find(Boolean)) == null ? void 0 : t.day;
287
+ i !== void 0 && l.setPanel(i);
288
+ }
289
+ }
290
+ async function Ee(e) {
291
+ if (o.inputReadonly || b.value) return !1;
292
+ const t = await l.input(H.value[e] ?? "", e);
293
+ return t && g(), t;
294
+ }
295
+ function ye(e, t = 0) {
296
+ e.isComposing || e.keyCode === 229 || (e.key === "ArrowDown" && !e.altKey ? (e.preventDefault(), D()) : e.key === "Enter" && o.editable ? (e.preventDefault(), Ee(t)) : e.key === "Escape" && ee());
297
+ }
298
+ function Fe(e) {
299
+ X.value || (X.value = !0, R("focus", e)), o.showOnFocus && !p.restoringFocus.value && !p.open.value && D(!1);
300
+ }
301
+ async function me(e) {
302
+ var t, i;
303
+ await L(), !(!N.value || p.open.value || (t = C.value) != null && t.contains(document.activeElement) || (i = U.value) != null && i.contains(document.activeElement)) && X.value && (X.value = !1, R("blur", e), o.validateEvent && w.validate("blur"));
304
+ }
305
+ function Ye(e, t) {
306
+ var c, u;
307
+ const i = e.relatedTarget;
308
+ !((c = U.value) != null && c.contains(i)) && !((u = C.value) != null && u.contains(i)) && Ee(t), me(e);
309
+ }
310
+ function Ze(e, t) {
311
+ b.value || l.setPanel(e, t);
312
+ }
313
+ async function xe(e) {
314
+ const t = l.boundary(e);
315
+ if (!t || !await D(!1)) return !1;
316
+ const i = l.setPanel(t.day);
317
+ return await L(), p.update(), i;
318
+ }
319
+ async function _e(e) {
320
+ const t = await l.setValue(e);
321
+ return t && (l.begin(), g()), t;
322
+ }
323
+ function Me(e = !1) {
324
+ const t = l.today.value;
325
+ if (e && x.value) {
326
+ if (k.value = [{ ...t }], f.value) return;
327
+ te();
328
+ } else De(t.day);
329
+ }
330
+ function ea(e) {
331
+ l.locked(e) || (l.stage.value = e ? "end" : "start");
332
+ }
333
+ function aa(e) {
334
+ var t;
335
+ !((t = o.allowEmpty) != null && t[e]) || l.locked(e) || b.value || (k.value = k.value.map((i, c) => c === e ? null : i), l.error.value = "");
336
+ }
337
+ function ta(e, t) {
338
+ const i = k.value[e];
339
+ if (!i) return [];
340
+ const c = Math.floor(i.second / 3600), u = Math.floor(i.second / 60) % 60, n = l.timeDisabled(i, e), O = t === "hour" ? o.hourStep : t === "minute" ? o.minuteStep : o.secondStep, Ve = t === "hour" ? 24 : 60, ra = Math.max(
341
+ 1,
342
+ Math.min(Ve, Number.isFinite(O) ? Math.floor(O) : 1)
343
+ ), sa = t === "hour" ? c : t === "minute" ? u : i.second % 60;
344
+ return Array.from({ length: Ve }, (F, le) => le).filter((F) => F % ra === 0 || F === sa).map((F) => {
345
+ var le, ze, Ae;
346
+ return {
347
+ label: String(F).padStart(2, "0"),
348
+ value: F,
349
+ disabled: t === "hour" ? (le = n.hours) == null ? void 0 : le.includes(F) : t === "minute" ? (ze = n.minutes) == null ? void 0 : ze.call(n, c).includes(F) : (Ae = n.seconds) == null ? void 0 : Ae.call(n, c, u).includes(F)
350
+ };
351
+ });
352
+ }
353
+ function la(e, t) {
354
+ var c;
355
+ const i = ((c = k.value[e]) == null ? void 0 : c.second) ?? 0;
356
+ return t === 0 ? Math.floor(i / 3600) : t === 1 ? Math.floor(i / 60) % 60 : i % 60;
357
+ }
358
+ function oa(e, t, i) {
359
+ var n;
360
+ if (typeof i != "number") return;
361
+ const c = ((n = k.value[e]) == null ? void 0 : n.second) ?? 0, u = t === 0 ? i * 3600 + c % 3600 : t === 1 ? Math.floor(c / 3600) * 3600 + i * 60 + c % 60 : Math.floor(c / 60) * 60 + i;
362
+ l.setTime(e, u) && !W.value && l.request(l.encode(k.value), "time");
363
+ }
364
+ function ia(e) {
365
+ return e instanceof Date ? e.toISOString() : e == null ? "" : String(e);
366
+ }
367
+ const na = y(() => {
368
+ const e = re.value;
369
+ return (Array.isArray(e) ? e : [e]).map((t, i) => ({
370
+ value: ia(t),
371
+ name: Array.isArray(o.name) ? o.name[i] : o.name
372
+ })).filter((t) => !!t.name);
373
+ });
374
+ Q(
375
+ () => o.open,
376
+ (e) => {
377
+ if (!(!N.value || o.inline))
378
+ if (e) D(!1, !0);
379
+ else {
380
+ const t = de;
381
+ de = !1, p.close(t, !0);
382
+ }
383
+ }
384
+ ), Q(p.open, (e) => {
385
+ R("visible-change", e), e || (q++, l.begin(), g());
386
+ }), Q(b, (e) => {
387
+ e && (q++, l.model.invalidate(), p.close(!1, !0), o.open && R("update:open", !1));
388
+ }), Q(
389
+ re,
390
+ () => {
391
+ l.begin(), g();
392
+ },
393
+ { deep: !0 }
394
+ ), Q(
395
+ [be, se, () => o.singlePanel, () => o.popupWidth],
396
+ () => void L(() => p.update())
397
+ ), Na(
398
+ C,
399
+ () => {
400
+ l.model.reset(), l.begin(), g(), E();
401
+ },
402
+ g,
403
+ () => o.form
404
+ ), g(), pa(() => {
405
+ (o.open ?? o.defaultOpen) && D(!1, !0), o.autofocus && pe();
406
+ }), ya(() => {
407
+ !o.editable && w.id.value && Z.value && (Z.value.id = G.value);
408
+ }), ma(() => {
409
+ N.value = !0, o.open && !o.inline && D(!1, !0);
410
+ });
411
+ function Te() {
412
+ N.value = !1, q++, X.value = !1, p.close(!1, !0), l.error.value = "";
413
+ }
414
+ return ha(Te), ba(Te), Oe({
415
+ element: C,
416
+ open: ue,
417
+ value: re,
418
+ draft: fe,
419
+ focus: pe,
420
+ blur: () => {
421
+ var e, t, i;
422
+ E(), ((e = C.value) != null && e.contains(document.activeElement) || (t = U.value) != null && t.contains(document.activeElement)) && ((i = document.activeElement) == null || i.blur());
423
+ },
424
+ show: () => D(),
425
+ hide: E,
426
+ handleOpen: () => D(),
427
+ handleClose: E,
428
+ clear: ae,
429
+ setValue: _e,
430
+ confirm: te,
431
+ cancel: ee,
432
+ showMonth: xe,
433
+ setMode: (e) => !b.value && l.setMode(e)
434
+ }), (e, t) => (s(), v("div", j({
435
+ ref_key: "root",
436
+ ref: C
437
+ }, { ...a(he), ...Ge() }, {
438
+ class: ["hys-ui-pf-date-picker hys-ui-date-picker", [
439
+ "hys-ui-date-picker-" + a(B).size.value,
440
+ {
441
+ "hys-ui-date-picker-disabled": a(B).disabled.value,
442
+ "hys-ui-date-picker-readonly": r.readonly,
443
+ "hys-ui-date-picker-borderless": !r.bordered
444
+ }
445
+ ]],
446
+ "data-status": _.value,
447
+ id: r.inline ? G.value : void 0,
448
+ role: r.inline ? "group" : void 0,
449
+ "data-hys-ui-field-managed": r.inline ? "" : void 0,
450
+ tabindex: r.inline ? a(B).disabled.value ? -1 : 0 : void 0,
451
+ "aria-label": r.inline ? J.value : void 0,
452
+ "aria-required": r.inline && a(w).required.value || void 0,
453
+ "aria-invalid": r.inline && _.value === "error" || void 0,
454
+ "aria-disabled": r.inline && a(B).disabled.value || void 0,
455
+ "aria-describedby": r.inline ? a(w).describedBy.value : void 0,
456
+ onFocus: t[6] || (t[6] = Ne((i) => r.inline && $e(), ["self"])),
457
+ onKeydown: t[7] || (t[7] = (i) => r.inline && i.target === C.value && ye(i)),
458
+ onFocusin: Fe,
459
+ onFocusout: me
460
+ }), [
461
+ r.inline ? m("", !0) : (s(), v("div", {
462
+ key: 0,
463
+ class: We(["hys-ui-date-control", {
464
+ "hys-ui-date-control-open": a(p).open.value,
465
+ "hys-ui-date-control-editable": r.editable && !a(l).multiple.value
466
+ }])
467
+ }, [
468
+ r.editable && !a(l).multiple.value ? (s(), v($, { key: 0 }, [
469
+ e.$slots.prefix ? (s(), v("span", Ra, [
470
+ S(e.$slots, "prefix", {}, void 0, !0)
471
+ ])) : m("", !0),
472
+ (s(!0), v($, null, M(f.value ? 2 : 1, (i) => (s(), v($, { key: i }, [
473
+ i === 2 ? (s(), v("span", Ha, [
474
+ S(e.$slots, "range-separator", {}, () => [
475
+ T(h(r.rangeSeparator), 1)
476
+ ], !0)
477
+ ])) : m("", !0),
478
+ P("input", j({
479
+ ref_for: !0,
480
+ ref: (c) => Je(i - 1, c)
481
+ }, { ref_for: !0 }, Pe(), {
482
+ id: i === 1 ? G.value : G.value + "-end",
483
+ "data-hys-ui-field-managed": "",
484
+ class: "hys-ui-date-input",
485
+ type: "text",
486
+ autocomplete: "off",
487
+ value: H.value[i - 1] ?? "",
488
+ "aria-label": f.value ? J.value + " " + (i === 1 ? a(d).start : a(d).end) : J.value,
489
+ "aria-haspopup": "dialog",
490
+ "aria-expanded": a(p).open.value,
491
+ "aria-controls": a(p).open.value ? a(z) + "-panel" : void 0,
492
+ "aria-invalid": _.value === "error" || void 0,
493
+ "aria-required": a(w).required.value || void 0,
494
+ "aria-describedby": [a(w).describedBy.value, a(I) ? a(z) + "-error" : void 0].filter(Boolean).join(" ") || void 0,
495
+ disabled: a(B).disabled.value || a(l).locked(i - 1),
496
+ readonly: r.readonly || r.inputReadonly,
497
+ placeholder: f.value ? i === 1 ? r.startPlaceholder ?? a(d).start : r.endPlaceholder ?? a(d).end : ce.value,
498
+ onInput: (c) => H.value[i - 1] = c.target.value,
499
+ onClick: t[0] || (t[0] = (c) => D(!1)),
500
+ onKeydown: (c) => ye(c, i - 1),
501
+ onBlur: (c) => Ye(c, i - 1)
502
+ }), null, 16, Ia)
503
+ ], 64))), 128))
504
+ ], 64)) : (s(), v("button", j({
505
+ key: 1,
506
+ ref_key: "button",
507
+ ref: Z
508
+ }, Pe(), {
509
+ id: G.value,
510
+ type: "button",
511
+ "data-hys-ui-field-managed": "",
512
+ role: "combobox",
513
+ class: "hys-ui-date-trigger",
514
+ disabled: a(B).disabled.value,
515
+ "aria-label": J.value,
516
+ "aria-haspopup": "dialog",
517
+ "aria-expanded": a(p).open.value,
518
+ "aria-controls": a(p).open.value ? a(z) + "-panel" : void 0,
519
+ "aria-invalid": _.value === "error" || void 0,
520
+ "aria-required": a(w).required.value || void 0,
521
+ "aria-disabled": a(B).disabled.value || void 0,
522
+ "aria-describedby": [a(w).describedBy.value, a(I) ? a(z) + "-error" : void 0].filter(Boolean).join(" ") || void 0,
523
+ "aria-readonly": r.readonly || void 0,
524
+ onClick: t[1] || (t[1] = (i) => a(p).open.value ? E() : D()),
525
+ onKeydown: ye
526
+ }), [
527
+ e.$slots.prefix ? (s(), v("span", La, [
528
+ S(e.$slots, "prefix", {}, void 0, !0)
529
+ ])) : m("", !0),
530
+ P("span", {
531
+ class: We(["hys-ui-date-display", { "hys-ui-pf-placeholder": !we.value }])
532
+ }, h(we.value || ce.value), 3)
533
+ ], 16, Ka)),
534
+ P("span", Ua, [
535
+ Ce.value ? (s(), v("button", {
536
+ key: 0,
537
+ type: "button",
538
+ class: "hys-ui-date-clear",
539
+ "aria-label": a(d).clear,
540
+ onMousedown: t[2] || (t[2] = Ne(() => {
541
+ }, ["prevent"])),
542
+ onClick: ae
543
+ }, [
544
+ S(e.$slots, "clear-icon", {}, () => [
545
+ oe(a($a), { size: 14 })
546
+ ], !0)
547
+ ], 40, Xa)) : m("", !0),
548
+ P("span", Ga, [
549
+ S(e.$slots, "suffix", {}, () => [
550
+ (s(), A(ka(a(x) ? a(qe) : a(Da)), { size: 16 }))
551
+ ], !0)
552
+ ])
553
+ ])
554
+ ], 2)),
555
+ (s(!0), v($, null, M(na.value, (i, c) => (s(), v("input", {
556
+ key: c,
557
+ type: "hidden",
558
+ name: i.name,
559
+ value: i.value,
560
+ form: r.form,
561
+ disabled: a(B).disabled.value
562
+ }, null, 8, Ja))), 128)),
563
+ a(I) && !ke.value ? (s(), v("p", {
564
+ key: 1,
565
+ id: a(z) + "-error",
566
+ class: "hys-ui-date-error",
567
+ role: "alert"
568
+ }, h(a(I)), 9, Qa)) : m("", !0),
569
+ (s(), A(wa, {
570
+ to: r.appendTo || "body",
571
+ disabled: r.inline || r.appendTo === !1
572
+ }, [
573
+ oe(a(Pa), {
574
+ "popup-transition": o.popupTransition,
575
+ "popup-transition-duration": o.popupTransitionDuration,
576
+ placement: a(p).placement.value,
577
+ disabled: r.inline
578
+ }, {
579
+ default: V(() => {
580
+ var i, c;
581
+ return [
582
+ ke.value ? (s(), v("div", j({
583
+ key: 0,
584
+ id: a(z) + "-panel",
585
+ ref_key: "panel",
586
+ ref: U
587
+ }, a(he), {
588
+ class: ["hys-ui-date-popup", [
589
+ r.popupClass,
590
+ "hys-ui-date-popup-" + a(B).size.value,
591
+ {
592
+ "hys-ui-date-inline": r.inline,
593
+ "hys-ui-date-dual": Se.value === 2
594
+ }
595
+ ]],
596
+ style: Ue.value,
597
+ role: r.inline ? "group" : "dialog",
598
+ "aria-label": J.value,
599
+ onFocusin: Fe,
600
+ onFocusout: me
601
+ }), [
602
+ e.$slots.header ? (s(), v("header", Za, [
603
+ S(e.$slots, "header", {
604
+ dates: fe.value,
605
+ view: a(se)
606
+ }, void 0, !0)
607
+ ])) : m("", !0),
608
+ (i = r.shortcuts) != null && i.length ? (s(), v("div", xa, [
609
+ (s(!0), v($, null, M(r.shortcuts, (u, n) => (s(), v("button", {
610
+ key: n,
611
+ type: "button",
612
+ disabled: b.value || u.disabled,
613
+ onClick: (O) => Qe(n)
614
+ }, [
615
+ S(e.$slots, "shortcut", {
616
+ shortcut: u,
617
+ index: n
618
+ }, () => [
619
+ T(h(u.label), 1)
620
+ ], !0)
621
+ ], 8, _a))), 128))
622
+ ])) : m("", !0),
623
+ f.value ? (s(), v("div", et, [
624
+ (s(!0), v($, null, M([a(d).start, a(d).end], (u, n) => (s(), v("button", {
625
+ key: n,
626
+ type: "button",
627
+ disabled: b.value || a(l).locked(n),
628
+ "aria-pressed": a(l).stage.value === (n ? "end" : "start"),
629
+ onClick: (O) => ea(n)
630
+ }, [
631
+ P("span", null, h(u), 1),
632
+ P("strong", null, h(a(l).describe(a(k))[n] || "—"), 1)
633
+ ], 8, at))), 128)),
634
+ P("span", tt, h(a(l).stage.value === "end" ? a(d).chooseEnd : a(d).chooseStart), 1)
635
+ ])) : m("", !0),
636
+ P("div", lt, [
637
+ (s(!0), v($, null, M(Se.value, (u) => (s(), A(Fa, {
638
+ key: u,
639
+ ref_for: !0,
640
+ ref: (n) => {
641
+ n ? a(ve).set(u - 1, n) : a(ve).delete(u - 1);
642
+ },
643
+ month: a(be)[u - 1],
644
+ view: u === 1 ? a(se) : a(l).rightView.value,
645
+ unit: a(l).unit.value,
646
+ selected: a(k),
647
+ range: f.value,
648
+ preview: Xe.value,
649
+ first: a(l).first.value,
650
+ "week-contains": a(l).weekContains.value,
651
+ "week-number-formatter": r.weekNumberFormatter,
652
+ locale: r.locale,
653
+ words: a(d),
654
+ "week-numbers": !!r.showWeekNumbers || a(l).unit.value === "week",
655
+ adjacent: r.showAdjacentDays,
656
+ disabled: b.value,
657
+ available: (n) => a(l).available(
658
+ n,
659
+ f.value && a(l).stage.value === "end" ? 1 : 0
660
+ ),
661
+ "period-available": a(l).periodAvailable,
662
+ "cell-class-name": r.cellClassName,
663
+ onBrowse: (n) => Ze(n, u - 1),
664
+ onMode: (n) => a(l).setMode(n, u - 1),
665
+ onPick: De,
666
+ onPreview: t[3] || (t[3] = (n) => a(l).preview.value = n)
667
+ }, ga({
668
+ cell: V((n) => [
669
+ S(e.$slots, "cell", j({ ref_for: !0 }, n), () => [
670
+ S(e.$slots, "default", j({ ref_for: !0 }, n), () => [
671
+ T(h(n.text), 1)
672
+ ], !0)
673
+ ], !0)
674
+ ]),
675
+ _: 2
676
+ }, [
677
+ e.$slots["week-number"] ? {
678
+ name: "week-number",
679
+ fn: V((n) => [
680
+ S(e.$slots, "week-number", j({ ref_for: !0 }, n), void 0, !0)
681
+ ]),
682
+ key: "0"
683
+ } : void 0,
684
+ M(He.value, (n) => ({
685
+ name: n,
686
+ fn: V(() => [
687
+ S(e.$slots, n, {}, void 0, !0)
688
+ ])
689
+ }))
690
+ ]), 1032, ["month", "view", "unit", "selected", "range", "preview", "first", "week-contains", "week-number-formatter", "locale", "words", "week-numbers", "adjacent", "disabled", "available", "period-available", "cell-class-name", "onBrowse", "onMode"]))), 128))
691
+ ]),
692
+ a(x) ? (s(), v("div", ot, [
693
+ (s(!0), v($, null, M(f.value ? 2 : 1, (u) => (s(), v("div", {
694
+ key: u,
695
+ class: "hys-ui-date-time-row"
696
+ }, [
697
+ P("span", null, [
698
+ T(h(f.value ? u === 1 ? a(d).start : a(d).end : ""), 1),
699
+ f.value ? m("", !0) : (s(), A(a(qe), {
700
+ key: 0,
701
+ size: 14
702
+ }))
703
+ ]),
704
+ (s(!0), v($, null, M(r.showSeconds ? 3 : 2, (n) => (s(), v($, { key: n }, [
705
+ n > 1 ? (s(), v("span", it, ":")) : m("", !0),
706
+ oe(Ea, {
707
+ "model-value": la(u - 1, n - 1),
708
+ options: ta(
709
+ u - 1,
710
+ n === 1 ? "hour" : n === 2 ? "minute" : "second"
711
+ ),
712
+ disabled: b.value || a(l).locked(u - 1) || !a(k)[u - 1],
713
+ size: a(B).size.value,
714
+ "aria-label": (f.value ? (u === 1 ? a(d).start : a(d).end) + " " : "") + (n === 1 ? a(d).hour : n === 2 ? a(d).minute : a(d).second),
715
+ "popup-match-width": !1,
716
+ "onUpdate:modelValue": (O) => oa(u - 1, n - 1, O)
717
+ }, null, 8, ["model-value", "options", "disabled", "size", "aria-label", "onUpdate:modelValue"])
718
+ ], 64))), 128))
719
+ ]))), 128))
720
+ ])) : m("", !0),
721
+ f.value && ((c = r.allowEmpty) != null && c.some(Boolean)) ? (s(), v("div", nt, [
722
+ (s(), v($, null, M(2, (u) => {
723
+ var n;
724
+ return Ba(P("button", {
725
+ key: u,
726
+ type: "button",
727
+ disabled: b.value || a(l).locked(u - 1),
728
+ onClick: (O) => aa(u - 1)
729
+ }, h(a(d).clear) + " " + h(u === 1 ? a(d).start : a(d).end), 9, rt), [
730
+ [Ca, (n = r.allowEmpty) == null ? void 0 : n[u - 1]]
731
+ ]);
732
+ }), 64))
733
+ ])) : m("", !0),
734
+ Be.value ? (s(), v("p", {
735
+ key: 5,
736
+ id: a(z) + "-error",
737
+ class: "hys-ui-date-error hys-ui-date-popup-error",
738
+ role: "alert"
739
+ }, h(Be.value), 9, st)) : m("", !0),
740
+ e.$slots.footer || r.showFooter || a(W) ? (s(), v("footer", ut, [
741
+ S(e.$slots, "footer", {
742
+ dates: fe.value,
743
+ confirm: te,
744
+ cancel: ee,
745
+ clear: ae
746
+ }, () => [
747
+ P("div", dt, [
748
+ r.showToday && !f.value ? (s(), A(Y, {
749
+ key: 0,
750
+ size: "sm",
751
+ variant: "ghost",
752
+ disabled: b.value || !a(l).available(a(l).today.value.day),
753
+ onClick: t[4] || (t[4] = (u) => Me(!1))
754
+ }, {
755
+ default: V(() => [
756
+ T(h(a(d).today), 1)
757
+ ]),
758
+ _: 1
759
+ }, 8, ["disabled"])) : m("", !0),
760
+ a(x) && r.showNow && !f.value ? (s(), A(Y, {
761
+ key: 1,
762
+ size: "sm",
763
+ variant: "ghost",
764
+ disabled: b.value,
765
+ onClick: t[5] || (t[5] = (u) => Me(!0))
766
+ }, {
767
+ default: V(() => [
768
+ T(h(a(d).now), 1)
769
+ ]),
770
+ _: 1
771
+ }, 8, ["disabled"])) : m("", !0),
772
+ Ce.value ? (s(), A(Y, {
773
+ key: 2,
774
+ size: "sm",
775
+ variant: "ghost",
776
+ onClick: ae
777
+ }, {
778
+ default: V(() => [
779
+ T(h(a(d).clear), 1)
780
+ ]),
781
+ _: 1
782
+ })) : m("", !0)
783
+ ]),
784
+ P("div", ct, [
785
+ oe(Y, {
786
+ size: "sm",
787
+ variant: "ghost",
788
+ onClick: ee
789
+ }, {
790
+ default: V(() => [
791
+ T(h(a(W) || f.value ? a(d).cancel : a(d).close), 1)
792
+ ]),
793
+ _: 1
794
+ }),
795
+ a(W) ? (s(), A(Y, {
796
+ key: 0,
797
+ size: "sm",
798
+ disabled: b.value || !ge.value,
799
+ onClick: te
800
+ }, {
801
+ default: V(() => [
802
+ T(h(a(d).confirm), 1)
803
+ ]),
804
+ _: 1
805
+ }, 8, ["disabled"])) : m("", !0)
806
+ ])
807
+ ], !0)
808
+ ])) : m("", !0)
809
+ ], 16, Ya)) : m("", !0)
810
+ ];
811
+ }),
812
+ _: 3
813
+ }, 8, ["popup-transition", "popup-transition-duration", "placement", "disabled"])
814
+ ], 8, ["to", "disabled"]))
815
+ ], 16, ja));
816
+ }
817
+ });
818
+ export {
819
+ St as default
820
+ };