hys-ui 0.6.0 → 0.8.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 (268) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +19 -0
  3. package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
  4. package/dist/components/HysDataGrid/HysDataGrid2.vue.js +1055 -753
  5. package/dist/components/HysDataGrid/gridColumnLayout.js +46 -0
  6. package/dist/components/HysDataGrid/gridPresentation.js +17 -0
  7. package/dist/components/HysDataGrid/useGridContextMenu.js +33 -0
  8. package/dist/components/HysDatePicker/HysDatePicker.vue.js +102 -48
  9. package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +2 -2
  10. package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +874 -532
  11. package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +2 -2
  12. package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +209 -168
  13. package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +102 -48
  14. package/dist/components/HysDescriptions/HysDescriptions.vue.js +7 -0
  15. package/dist/components/HysDescriptions/HysDescriptions2.vue.js +146 -0
  16. package/dist/components/HysForm/HysForm2.vue.js +9 -8
  17. package/dist/components/HysIcon/HysIcon.vue.js +373 -0
  18. package/dist/components/HysIcon/HysIcon2.vue.js +5 -0
  19. package/dist/components/HysIcon/IconGraphic/IconGraphic.vue.js +147 -0
  20. package/dist/components/HysIcon/IconGraphic/IconGraphic2.vue.js +4 -0
  21. package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.js +7 -0
  22. package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel2.vue.js +440 -0
  23. package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.js +29 -0
  24. package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic2.vue.js +4 -0
  25. package/dist/components/HysIcon/IconTooltip/IconTooltip.vue.js +19 -0
  26. package/dist/components/HysIcon/IconTooltip/IconTooltip2.vue.js +4 -0
  27. package/dist/components/HysIcon/builtins/access.js +180 -0
  28. package/dist/components/HysIcon/builtins/actions.js +327 -0
  29. package/dist/components/HysIcon/builtins/business.js +364 -0
  30. package/dist/components/HysIcon/builtins/catalog/access-1.json.js +51 -0
  31. package/dist/components/HysIcon/builtins/catalog/access-2.json.js +35 -0
  32. package/dist/components/HysIcon/builtins/catalog/accessibility.json.js +26 -0
  33. package/dist/components/HysIcon/builtins/catalog/arrows-1.json.js +45 -0
  34. package/dist/components/HysIcon/builtins/catalog/arrows-2.json.js +46 -0
  35. package/dist/components/HysIcon/builtins/catalog/arrows-3.json.js +42 -0
  36. package/dist/components/HysIcon/builtins/catalog/charts-1.json.js +50 -0
  37. package/dist/components/HysIcon/builtins/catalog/charts-2.json.js +13 -0
  38. package/dist/components/HysIcon/builtins/catalog/commerce.json.js +43 -0
  39. package/dist/components/HysIcon/builtins/catalog/communication-1.json.js +49 -0
  40. package/dist/components/HysIcon/builtins/catalog/communication-2.json.js +37 -0
  41. package/dist/components/HysIcon/builtins/catalog/design-1.json.js +61 -0
  42. package/dist/components/HysIcon/builtins/catalog/design-2.json.js +27 -0
  43. package/dist/components/HysIcon/builtins/catalog/development-1.json.js +58 -0
  44. package/dist/components/HysIcon/builtins/catalog/development-2.json.js +60 -0
  45. package/dist/components/HysIcon/builtins/catalog/development-3.json.js +25 -0
  46. package/dist/components/HysIcon/builtins/catalog/devices-1.json.js +52 -0
  47. package/dist/components/HysIcon/builtins/catalog/devices-2.json.js +55 -0
  48. package/dist/components/HysIcon/builtins/catalog/devices-3.json.js +23 -0
  49. package/dist/components/HysIcon/builtins/catalog/education.json.js +34 -0
  50. package/dist/components/HysIcon/builtins/catalog/emoji.json.js +24 -0
  51. package/dist/components/HysIcon/builtins/catalog/files-1.json.js +45 -0
  52. package/dist/components/HysIcon/builtins/catalog/files-2.json.js +47 -0
  53. package/dist/components/HysIcon/builtins/catalog/files-3.json.js +8 -0
  54. package/dist/components/HysIcon/builtins/catalog/food-1.json.js +67 -0
  55. package/dist/components/HysIcon/builtins/catalog/food-2.json.js +40 -0
  56. package/dist/components/HysIcon/builtins/catalog/home.json.js +36 -0
  57. package/dist/components/HysIcon/builtins/catalog/layout-1.json.js +46 -0
  58. package/dist/components/HysIcon/builtins/catalog/layout-2.json.js +45 -0
  59. package/dist/components/HysIcon/builtins/catalog/manifest.json.js +4 -0
  60. package/dist/components/HysIcon/builtins/catalog/maps-1.json.js +61 -0
  61. package/dist/components/HysIcon/builtins/catalog/maps-2.json.js +24 -0
  62. package/dist/components/HysIcon/builtins/catalog/media-1.json.js +57 -0
  63. package/dist/components/HysIcon/builtins/catalog/media-2.json.js +13 -0
  64. package/dist/components/HysIcon/builtins/catalog/medical.json.js +30 -0
  65. package/dist/components/HysIcon/builtins/catalog/nature.json.js +54 -0
  66. package/dist/components/HysIcon/builtins/catalog/recreation.json.js +51 -0
  67. package/dist/components/HysIcon/builtins/catalog/shapes.json.js +54 -0
  68. package/dist/components/HysIcon/builtins/catalog/text-1.json.js +52 -0
  69. package/dist/components/HysIcon/builtins/catalog/text-2.json.js +54 -0
  70. package/dist/components/HysIcon/builtins/catalog/text-3.json.js +58 -0
  71. package/dist/components/HysIcon/builtins/catalog/text-4.json.js +41 -0
  72. package/dist/components/HysIcon/builtins/catalog/time.json.js +39 -0
  73. package/dist/components/HysIcon/builtins/catalog/transport-1.json.js +57 -0
  74. package/dist/components/HysIcon/builtins/catalog/transport-2.json.js +7 -0
  75. package/dist/components/HysIcon/builtins/catalog/weather.json.js +46 -0
  76. package/dist/components/HysIcon/builtins/communication.js +314 -0
  77. package/dist/components/HysIcon/builtins/documents.js +315 -0
  78. package/dist/components/HysIcon/builtins/extendedCatalog.js +75 -0
  79. package/dist/components/HysIcon/builtins/iconInCategory.js +11 -0
  80. package/dist/components/HysIcon/builtins/media.js +255 -0
  81. package/dist/components/HysIcon/builtins/navigation.js +276 -0
  82. package/dist/components/HysIcon/builtins/technology.js +189 -0
  83. package/dist/components/HysIcon/iconBuiltins.js +228 -0
  84. package/dist/components/HysIcon/iconConfig.js +30 -0
  85. package/dist/components/HysIcon/iconRegistry.js +183 -0
  86. package/dist/components/HysIcon/iconSafety.js +191 -0
  87. package/dist/components/HysIcon/iconStyle.js +70 -0
  88. package/dist/components/HysIcon/useIconResource.js +75 -0
  89. package/dist/components/HysPopconfirm/HysPopconfirm.vue.js +7 -0
  90. package/dist/components/HysPopconfirm/HysPopconfirm2.vue.js +346 -0
  91. package/dist/components/HysPopconfirm/usePopconfirmAction.js +32 -0
  92. package/dist/components/HysResult/HysResult.vue.js +7 -0
  93. package/dist/components/HysResult/HysResult2.vue.js +124 -0
  94. package/dist/components/HysSpace/HysSpace.vue.js +7 -0
  95. package/dist/components/HysSpace/HysSpace2.vue.js +79 -0
  96. package/dist/components/HysSpace/spaceItems.js +17 -0
  97. package/dist/components/HysSpin/HysSpin.vue.js +7 -0
  98. package/dist/components/HysSpin/HysSpin2.vue.js +427 -0
  99. package/dist/components/HysSpin/SpinGlyph/SpinGlyph.vue.js +334 -0
  100. package/dist/components/HysSpin/SpinGlyph/SpinGlyph2.vue.js +5 -0
  101. package/dist/components/HysSpin/SpinPortal/SpinPortal.vue.js +7 -0
  102. package/dist/components/HysSpin/SpinPortal/SpinPortal2.vue.js +66 -0
  103. package/dist/components/HysSpin/SpinPortal/spinTarget.js +57 -0
  104. package/dist/components/HysSpin/spinCatalog.js +35 -0
  105. package/dist/components/HysSpin/spinConfig.js +32 -0
  106. package/dist/components/HysSpin/spinService.js +160 -0
  107. package/dist/components/HysSpin/spinStyle.js +39 -0
  108. package/dist/components/HysSpin/useHysSpinTask.js +92 -0
  109. package/dist/components/HysSpin/useSpinFullscreen.js +60 -0
  110. package/dist/components/HysSpin/useSpinVisibility.js +59 -0
  111. package/dist/components/HysSplitPane/HysSplitPane.vue.js +285 -204
  112. package/dist/components/HysSplitPane/splitPaneResize.js +75 -0
  113. package/dist/components/HysTabPane/HysTabPane.vue.js +49 -0
  114. package/dist/components/HysTabPane/HysTabPane2.vue.js +4 -0
  115. package/dist/components/HysTable/HysTable.vue.js +3 -3
  116. package/dist/components/HysTable/HysTable2.vue.js +412 -383
  117. package/dist/components/HysTable/tableSearch.js +24 -0
  118. package/dist/components/HysTabs/HysTabs.vue.js +172 -5
  119. package/dist/components/HysTabs/HysTabs2.vue.js +2 -275
  120. package/dist/components/HysTabs/TabsMore/TabsMore.vue.js +7 -0
  121. package/dist/components/HysTabs/TabsMore/TabsMore2.vue.js +133 -0
  122. package/dist/components/HysTabs/TabsPanels/TabsPanels.vue.js +161 -0
  123. package/dist/components/HysTabs/TabsPanels/TabsPanels2.vue.js +4 -0
  124. package/dist/components/HysTabs/TabsPrompts/TabsPrompts.vue.js +4 -0
  125. package/dist/components/HysTabs/TabsPrompts/TabsPrompts2.vue.js +88 -0
  126. package/dist/components/HysTabs/TabsSlot/TabsSlot.js +13 -0
  127. package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.js +7 -0
  128. package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench2.vue.js +687 -0
  129. package/dist/components/HysTabs/tabsConfig.js +35 -0
  130. package/dist/components/HysTabs/tabsItems.js +79 -0
  131. package/dist/components/HysTabs/tabsPersistence.js +118 -0
  132. package/dist/components/HysTabs/useHysRouteTabs.js +77 -0
  133. package/dist/components/HysTabs/useTabsDragGhost.js +47 -0
  134. package/dist/components/HysTabs/useTabsNav.js +127 -0
  135. package/dist/components/HysTabs/useTabsOverlays.js +52 -0
  136. package/dist/components/HysTabs/useTabsPanels.js +101 -0
  137. package/dist/components/HysTabs/useTabsPointer.js +131 -0
  138. package/dist/components/HysTabs/useTabsState.js +263 -0
  139. package/dist/composables/datePicker.js +153 -94
  140. package/dist/composables/datePickerModel.js +156 -0
  141. package/dist/composables/datePickerPanels.js +78 -0
  142. package/dist/composables/datePickerRules.js +166 -0
  143. package/dist/composables/floatingPosition.js +32 -13
  144. package/dist/composables/formLayout.js +20 -42
  145. package/dist/composables/popupSurfaceStyle.js +30 -0
  146. package/dist/composables/useContainerWidth.js +24 -0
  147. package/dist/composables/useDatePicker.js +274 -381
  148. package/dist/composables/useFloating.js +42 -41
  149. package/dist/composables/usePageVisibility.js +19 -0
  150. package/dist/composables/usePopupSurface.js +153 -162
  151. package/dist/composables/usePopupSurfaceInteractions.js +91 -90
  152. package/dist/composables/useSplitPaneDrag.js +29 -26
  153. package/dist/composables/useSvgInstanceId.js +15 -0
  154. package/dist/composables/useTable.js +321 -306
  155. package/dist/composables/useTabularRowNavigation.js +46 -0
  156. package/dist/index.js +229 -185
  157. package/dist/internal/MultiSplitPane.vue.js +246 -205
  158. package/dist/internal/PopupSurfacePanel.vue.js +2 -2
  159. package/dist/internal/PopupSurfacePanel2.vue.js +35 -30
  160. package/dist/style.css +1 -1
  161. package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +40 -2
  162. package/dist/types/components/HysDataGrid/gridColumnLayout.d.ts +22 -0
  163. package/dist/types/components/HysDataGrid/gridPresentation.d.ts +47 -0
  164. package/dist/types/components/HysDataGrid/useGridContextMenu.d.ts +14 -0
  165. package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +6 -9
  166. package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +12 -0
  167. package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +6 -0
  168. package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +6 -9
  169. package/dist/types/components/HysDescriptions/HysDescriptions.vue.d.ts +20 -0
  170. package/dist/types/components/HysDescriptions/descriptionsTypes.d.ts +54 -0
  171. package/dist/types/components/HysForm/HysForm.vue.d.ts +1 -1
  172. package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +1 -1
  173. package/dist/types/components/HysIcon/HysIcon.vue.d.ts +76 -0
  174. package/dist/types/components/HysIcon/IconGraphic/IconGraphic.vue.d.ts +43 -0
  175. package/dist/types/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.d.ts +17 -0
  176. package/dist/types/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.d.ts +10 -0
  177. package/dist/types/components/HysIcon/IconTooltip/IconTooltip.vue.d.ts +11 -0
  178. package/dist/types/components/HysIcon/builtins/access.d.ts +15 -0
  179. package/dist/types/components/HysIcon/builtins/actions.d.ts +30 -0
  180. package/dist/types/components/HysIcon/builtins/business.d.ts +31 -0
  181. package/dist/types/components/HysIcon/builtins/communication.d.ts +27 -0
  182. package/dist/types/components/HysIcon/builtins/documents.d.ts +29 -0
  183. package/dist/types/components/HysIcon/builtins/extendedCatalog.d.ts +2 -0
  184. package/dist/types/components/HysIcon/builtins/iconInCategory.d.ts +2 -0
  185. package/dist/types/components/HysIcon/builtins/media.d.ts +24 -0
  186. package/dist/types/components/HysIcon/builtins/navigation.d.ts +30 -0
  187. package/dist/types/components/HysIcon/builtins/technology.d.ts +18 -0
  188. package/dist/types/components/HysIcon/iconBuiltins.d.ts +2 -0
  189. package/dist/types/components/HysIcon/iconConfig.d.ts +10 -0
  190. package/dist/types/components/HysIcon/iconRegistry.d.ts +5 -0
  191. package/dist/types/components/HysIcon/iconSafety.d.ts +8 -0
  192. package/dist/types/components/HysIcon/iconStyle.d.ts +6 -0
  193. package/dist/types/components/HysIcon/iconTypes.d.ts +192 -0
  194. package/dist/types/components/HysIcon/useIconResource.d.ts +14 -0
  195. package/dist/types/components/HysPopconfirm/HysPopconfirm.vue.d.ts +85 -0
  196. package/dist/types/components/HysPopconfirm/popconfirmTypes.d.ts +72 -0
  197. package/dist/types/components/HysPopconfirm/usePopconfirmAction.d.ts +6 -0
  198. package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
  199. package/dist/types/components/HysResult/HysResult.vue.d.ts +22 -0
  200. package/dist/types/components/HysResult/resultTypes.d.ts +32 -0
  201. package/dist/types/components/HysSpace/HysSpace.vue.d.ts +15 -0
  202. package/dist/types/components/HysSpace/spaceItems.d.ts +9 -0
  203. package/dist/types/components/HysSpace/spaceTypes.d.ts +20 -0
  204. package/dist/types/components/HysSpin/HysSpin.vue.d.ts +84 -0
  205. package/dist/types/components/HysSpin/SpinGlyph/SpinGlyph.vue.d.ts +16 -0
  206. package/dist/types/components/HysSpin/SpinPortal/SpinPortal.vue.d.ts +21 -0
  207. package/dist/types/components/HysSpin/SpinPortal/spinTarget.d.ts +3 -0
  208. package/dist/types/components/HysSpin/spinCatalog.d.ts +122 -0
  209. package/dist/types/components/HysSpin/spinConfig.d.ts +10 -0
  210. package/dist/types/components/HysSpin/spinService.d.ts +7 -0
  211. package/dist/types/components/HysSpin/spinStyle.d.ts +5 -0
  212. package/dist/types/components/HysSpin/spinTypes.d.ts +133 -0
  213. package/dist/types/components/HysSpin/useHysSpinTask.d.ts +4 -0
  214. package/dist/types/components/HysSpin/useSpinFullscreen.d.ts +17 -0
  215. package/dist/types/components/HysSpin/useSpinVisibility.d.ts +10 -0
  216. package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +25 -2
  217. package/dist/types/components/HysSplitPane/splitPaneResize.d.ts +17 -0
  218. package/dist/types/components/HysTabPane/HysTabPane.vue.d.ts +11 -0
  219. package/dist/types/components/HysTable/HysTable.vue.d.ts +16 -10
  220. package/dist/types/components/HysTable/tableSearch.d.ts +2 -0
  221. package/dist/types/components/HysTabs/HysTabs.vue.d.ts +83 -74
  222. package/dist/types/components/HysTabs/TabsMore/TabsMore.vue.d.ts +14 -0
  223. package/dist/types/components/HysTabs/TabsPanels/TabsPanels.vue.d.ts +17 -0
  224. package/dist/types/components/HysTabs/TabsPrompts/TabsPrompts.vue.d.ts +7 -0
  225. package/dist/types/components/HysTabs/TabsSlot/TabsSlot.d.ts +9 -0
  226. package/dist/types/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.d.ts +32 -0
  227. package/dist/types/components/HysTabs/tabsConfig.d.ts +4 -0
  228. package/dist/types/components/HysTabs/tabsItems.d.ts +14 -0
  229. package/dist/types/components/HysTabs/tabsPersistence.d.ts +6 -0
  230. package/dist/types/components/HysTabs/tabsTypes.d.ts +236 -0
  231. package/dist/types/components/HysTabs/useHysRouteTabs.d.ts +22 -0
  232. package/dist/types/components/HysTabs/useTabsDragGhost.d.ts +22 -0
  233. package/dist/types/components/HysTabs/useTabsNav.d.ts +20 -0
  234. package/dist/types/components/HysTabs/useTabsOverlays.d.ts +54 -0
  235. package/dist/types/components/HysTabs/useTabsPanels.d.ts +14 -0
  236. package/dist/types/components/HysTabs/useTabsPointer.d.ts +30 -0
  237. package/dist/types/components/HysTabs/useTabsState.d.ts +32 -0
  238. package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +2 -2
  239. package/dist/types/components/HysToast/toastPresentation.d.ts +1 -1
  240. package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +2 -2
  241. package/dist/types/composables/dataGrid.d.ts +34 -0
  242. package/dist/types/composables/datePicker.d.ts +14 -214
  243. package/dist/types/composables/datePickerModel.d.ts +63 -0
  244. package/dist/types/composables/datePickerPanels.d.ts +23 -0
  245. package/dist/types/composables/datePickerRules.d.ts +31 -0
  246. package/dist/types/composables/datePickerTypes.d.ts +277 -0
  247. package/dist/types/composables/floatingPosition.d.ts +1 -1
  248. package/dist/types/composables/formLayout.d.ts +1 -2
  249. package/dist/types/composables/popupSurfaceStyle.d.ts +7 -0
  250. package/dist/types/composables/table.d.ts +10 -1
  251. package/dist/types/composables/toastQueue.d.ts +4 -4
  252. package/dist/types/composables/toastQueueModel.d.ts +2 -2
  253. package/dist/types/composables/useColorPicker.d.ts +2 -4
  254. package/dist/types/composables/useContainerWidth.d.ts +2 -0
  255. package/dist/types/composables/useContextMenu.d.ts +2 -4
  256. package/dist/types/composables/useDatePicker.d.ts +20 -11
  257. package/dist/types/composables/useFloating.d.ts +4 -5
  258. package/dist/types/composables/usePageVisibility.d.ts +1 -0
  259. package/dist/types/composables/usePopupSurface.d.ts +9 -3
  260. package/dist/types/composables/usePopupSurfaceInteractions.d.ts +4 -2
  261. package/dist/types/composables/useSplitPaneDrag.d.ts +2 -2
  262. package/dist/types/composables/useSvgInstanceId.d.ts +1 -0
  263. package/dist/types/composables/useTable.d.ts +2 -0
  264. package/dist/types/composables/useTabularRowNavigation.d.ts +18 -0
  265. package/dist/types/index.d.ts +31 -3
  266. package/dist/types/internal/MultiSplitPane.vue.d.ts +10 -1
  267. package/dist/types/internal/PopupSurfacePanel.vue.d.ts +3 -0
  268. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import o from "./HysDatePickerPanel2.vue.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2dcd05b6"]]);
4
+ const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dbd8d465"]]);
5
5
  export {
6
- c as default
6
+ d as default
7
7
  };
@@ -1,15 +1,15 @@
1
- import { defineComponent as ve, ref as I, computed as m, openBlock as l, createElementBlock as u, createElementVNode as b, renderSlot as c, createVNode as E, unref as w, createCommentVNode as g, toDisplayString as k, Fragment as F, createTextVNode as z, normalizeClass as B, renderList as U, mergeProps as j, nextTick as W } from "vue";
2
- import { ChevronsLeft as we, ChevronLeft as ye, ChevronRight as be, ChevronsRight as ke } from "lucide-vue-next";
3
- import { calendarParts as N, calendarDate as O, civilDay as C, calendarISO as Q } from "../../composables/calendar.js";
4
- import { datePeriod as X, dateLocale as te, dateWeek as S, DATE_MIN as G, DATE_MAX as J, dateShift as Z } from "../../composables/datePicker.js";
5
- const me = ["aria-label"], fe = { class: "hys-ui-date-panel-heading" }, he = { class: "hys-ui-date-navigation" }, ce = ["aria-label", "disabled"], ge = ["aria-label", "disabled"], Ce = {
1
+ import { defineComponent as ke, ref as U, computed as h, openBlock as u, createElementBlock as s, createElementVNode as b, renderSlot as $, createVNode as P, unref as y, createCommentVNode as A, toDisplayString as k, Fragment as F, createTextVNode as L, normalizeClass as Y, renderList as W, mergeProps as j, nextTick as O } from "vue";
2
+ import { ChevronsLeft as me, ChevronLeft as fe, ChevronsRight as re, ChevronRight as he } from "lucide-vue-next";
3
+ import { calendarParts as g, calendarDate as Q, civilDay as c, calendarISO as X } from "../../composables/calendar.js";
4
+ import { dateLocale as de, dateWeek as q, DATE_MIN as G, DATE_MAX as J, datePeriod as ce, dateShift as Z } from "../../composables/datePicker.js";
5
+ const ge = ["aria-label"], Ce = { class: "hys-ui-date-panel-heading" }, $e = { class: "hys-ui-date-navigation" }, Ae = ["aria-label", "disabled"], De = ["aria-label", "disabled"], Me = {
6
6
  class: "hys-ui-date-period-title",
7
7
  "aria-live": "polite"
8
- }, $e = ["aria-label"], De = ["aria-label"], Ae = { key: 0 }, Ne = ["aria-label"], Fe = { class: "hys-ui-date-navigation" }, Se = ["aria-label", "disabled"], qe = ["aria-label", "disabled"], Me = { key: 0 }, Pe = ["aria-label"], xe = {
8
+ }, Ne = ["aria-label"], Fe = ["aria-label"], Se = ["aria-label", "title"], Pe = ["aria-label"], qe = { key: 0 }, xe = ["aria-label"], ze = { class: "hys-ui-date-navigation" }, Ee = ["aria-label", "disabled"], Le = ["aria-label", "disabled"], Ye = { key: 0 }, Be = ["aria-label"], Te = {
9
9
  key: 0,
10
10
  class: "hys-ui-date-week-number",
11
11
  role: "rowheader"
12
- }, Ee = ["disabled", "aria-label", "onClick"], ze = ["data-picker-day", "data-date", "data-period", "aria-label", "aria-selected", "aria-current", "tabindex", "disabled", "onFocus", "onPointerenter", "onClick", "onKeydown"], Ye = /* @__PURE__ */ ve({
12
+ }, Ve = ["disabled", "aria-label", "onClick"], Ke = ["data-picker-day", "data-date", "data-period", "aria-label", "aria-selected", "aria-current", "tabindex", "disabled", "onFocus", "onPointerenter", "onClick", "onKeydown"], We = /* @__PURE__ */ ke({
13
13
  __name: "HysDatePickerPanel",
14
14
  props: {
15
15
  month: {},
@@ -17,6 +17,7 @@ const me = ["aria-label"], fe = { class: "hys-ui-date-panel-heading" }, he = { c
17
17
  unit: {},
18
18
  selected: {},
19
19
  range: { type: Boolean },
20
+ stage: {},
20
21
  preview: {},
21
22
  first: {},
22
23
  weekContains: {},
@@ -31,17 +32,19 @@ const me = ["aria-label"], fe = { class: "hys-ui-date-panel-heading" }, he = { c
31
32
  cellClassName: { type: Function }
32
33
  },
33
34
  emits: ["browse", "mode", "pick", "preview"],
34
- setup(t, { expose: ae, emit: ie }) {
35
- const e = t, $ = ie, L = I(), T = I(), q = I(), v = m(() => N(e.month).year), f = m(() => N(e.month).month), V = m(() => Math.floor((v.value - 1) / 12) * 12 + 1), Y = m(() => e.unit === "week" ? "date" : e.unit), ne = () => Q(
36
- C(
35
+ setup(t, { expose: oe, emit: le }) {
36
+ const e = t, D = le, B = U(), T = U(), x = U(), w = h(() => g(e.month).year), C = h(() => g(e.month).month), V = h(() => Math.floor((w.value - 1) / 12) * 12 + 1), S = h(() => Math.floor(w.value / 100) * 100), p = h(
37
+ () => e.locale.startsWith("zh") ? "选择年代" : "Choose decade"
38
+ ), K = h(() => e.unit === "week" ? "date" : e.unit), ue = () => X(
39
+ c(
37
40
  (/* @__PURE__ */ new Date()).getFullYear(),
38
41
  (/* @__PURE__ */ new Date()).getMonth(),
39
42
  (/* @__PURE__ */ new Date()).getDate()
40
43
  )
41
- ), re = m(
44
+ ), se = h(
42
45
  () => Array.from({ length: 7 }, (a, r) => {
43
- const i = O(
44
- C(2026, 10, 2) + (e.first + 6) % 7 + r
46
+ const i = Q(
47
+ c(2026, 10, 2) + (e.first + 6) % 7 + r
45
48
  );
46
49
  try {
47
50
  return new Intl.DateTimeFormat(e.locale, { weekday: "short" }).format(
@@ -53,280 +56,318 @@ const me = ["aria-label"], fe = { class: "hys-ui-date-panel-heading" }, he = { c
53
56
  );
54
57
  }
55
58
  })
56
- ), D = m(() => {
57
- const a = e.selected.filter((o) => !!o), r = C(v.value, f.value, 1), i = r - (N(r).weekday - e.first + 7) % 7, n = e.view === "date" ? Array.from({ length: 42 }, (o, d) => i + d) : e.view === "month" ? Array.from({ length: 12 }, (o, d) => C(v.value, d, 1)) : e.view === "quarter" ? Array.from(
59
+ ), M = h(() => {
60
+ const a = e.selected.filter((d) => !!d), r = c(w.value, C.value, 1), i = r - (g(r).weekday - e.first + 7) % 7, n = e.view === "date" ? Array.from({ length: 42 }, (d, o) => i + o) : e.view === "month" ? Array.from({ length: 12 }, (d, o) => c(w.value, o, 1)) : e.view === "quarter" ? Array.from(
58
61
  { length: 4 },
59
- (o, d) => C(v.value, d * 3, 1)
62
+ (d, o) => c(w.value, o * 3, 1)
63
+ ) : e.view === "decade" ? Array.from(
64
+ { length: 10 },
65
+ (d, o) => c(Math.max(1, S.value + o * 10), 0, 1)
60
66
  ) : Array.from(
61
67
  { length: 12 },
62
- (o, d) => C(V.value + d, 0, 1)
63
- ), y = e.preview !== void 0 && a[0] ? [a[0].day, e.preview] : a.map((o) => o.day), s = e.range && y.length === 2 ? y.sort((o, d) => o - d) : void 0;
64
- return n.map((o) => {
65
- const d = N(o), h = e.view === "date" ? e.unit : e.view, A = X(o, h, e.first), ee = d.month !== f.value, se = e.view === "date" ? String(d.day) : e.view === "month" ? te(e.locale).format(O(o)) : e.view === "quarter" ? "Q" + (Math.floor(d.month / 3) + 1) : String(d.year), x = S(o, e.first, e.weekContains), le = e.disabled || o < G || o > J || (e.view === "date" ? (e.unit === "week" ? !e.periodAvailable(A[0], A[1]) : !e.available(o)) || !e.adjacent && ee : !e.periodAvailable(A[0], A[1]));
68
+ (d, o) => c(V.value + o, 0, 1)
69
+ ), m = e.preview !== void 0 && a[0] ? [a[0].day, e.preview] : a.map((d) => d.day), l = e.range && m.length === 2 ? m.sort((d, o) => d - o) : void 0;
70
+ return n.map((d, o) => {
71
+ const f = g(d), v = _(d), ae = e.view === "date" ? 7 : 3, ie = f.month !== C.value, ye = e.view === "date" ? String(f.day) : e.view === "month" ? de(e.locale).format(Q(d)) : e.view === "quarter" ? "Q" + (Math.floor(f.month / 3) + 1) : e.view === "decade" ? f.year + "–" + g(v[1]).year : String(f.year), E = q(d, e.first, e.weekContains), be = e.disabled || d < G || d > J || (e.view === "date" ? (e.unit === "week" ? !e.periodAvailable(v[0], v[1]) : !e.available(d)) || !e.adjacent && ie : !e.periodAvailable(v[0], v[1]));
66
72
  return {
67
- date: new Date(o * 864e5),
68
- iso: Q(o),
69
- value: o,
70
- end: A[1],
71
- text: se,
73
+ date: new Date(d * 864e5),
74
+ iso: X(d),
75
+ value: d,
76
+ end: v[1],
77
+ text: ye,
72
78
  type: e.view,
73
- outside: e.view === "date" && ee,
74
- disabled: le,
75
- selected: a.some(
76
- (ue) => X(ue.day, h, e.first)[0] === A[0]
77
- ),
78
- inRange: !!s && o >= s[0] && o <= s[1],
79
- today: Q(o) === ne(),
80
- week: x.week,
81
- weekYear: x.year,
82
- weekStart: x.start,
83
- weekEnd: x.end
79
+ outside: e.view === "date" && ie,
80
+ disabled: be,
81
+ selected: a.some((ne) => ne.day >= v[0] && ne.day <= v[1]),
82
+ inRange: !!l && v[1] >= l[0] && v[0] <= l[1],
83
+ range: e.range ? e.stage : void 0,
84
+ rangeStart: !!l && l[0] >= v[0] && l[0] <= v[1],
85
+ rangeEnd: !!l && l[1] >= v[0] && l[1] <= v[1],
86
+ row: Math.floor(o / ae),
87
+ column: o % ae,
88
+ today: X(d) === ue(),
89
+ week: E.week,
90
+ weekYear: E.year,
91
+ weekStart: E.start,
92
+ weekEnd: E.end
84
93
  };
85
94
  });
86
- }), p = m(() => {
87
- var r, i, n, y;
88
- const a = D.value.filter((s) => !s.disabled);
89
- return ((r = a.find((s) => s.value === T.value)) == null ? void 0 : r.value) ?? ((i = a.find((s) => s.selected)) == null ? void 0 : i.value) ?? ((n = a.find((s) => !s.outside)) == null ? void 0 : n.value) ?? ((y = a[0]) == null ? void 0 : y.value);
90
- }), oe = m(() => {
95
+ });
96
+ function _(a) {
97
+ if (e.view === "decade") {
98
+ const r = Math.floor(g(a).year / 10) * 10;
99
+ return [
100
+ c(Math.max(1, r), 0, 1),
101
+ c(r + 9, 11, 31)
102
+ ];
103
+ }
104
+ return ce(
105
+ a,
106
+ e.view === "date" ? e.unit : e.view === "time" ? "date" : e.view,
107
+ e.first
108
+ );
109
+ }
110
+ const ee = h(() => {
111
+ var r, i, n, m;
112
+ const a = M.value.filter((l) => !l.disabled);
113
+ return ((r = a.find((l) => l.value === T.value)) == null ? void 0 : r.value) ?? ((i = a.find((l) => l.selected)) == null ? void 0 : i.value) ?? ((n = a.find((l) => !l.outside)) == null ? void 0 : n.value) ?? ((m = a[0]) == null ? void 0 : m.value);
114
+ }), ve = h(() => {
91
115
  const a = e.view === "date" ? 7 : 3;
92
116
  return Array.from(
93
- { length: Math.ceil(D.value.length / a) },
94
- (r, i) => D.value.slice(i * a, (i + 1) * a)
117
+ { length: Math.ceil(M.value.length / a) },
118
+ (r, i) => M.value.slice(i * a, (i + 1) * a)
95
119
  );
96
120
  });
97
- function _(a) {
121
+ function te(a) {
98
122
  var r;
99
123
  return [
100
- ...((r = L.value) == null ? void 0 : r.querySelectorAll("[data-picker-day]")) ?? []
124
+ ...((r = B.value) == null ? void 0 : r.querySelectorAll("[data-picker-day]")) ?? []
101
125
  ].find((i) => i.dataset.pickerDay === String(a));
102
126
  }
103
- async function K(a = p.value) {
127
+ async function R(a = ee.value) {
104
128
  if (a === void 0) return;
105
- let r = _(a);
106
- r || (await W(), r = _(a)), r && !r.disabled && r.focus();
129
+ let r = te(a);
130
+ r || (await O(), r = te(a)), r && !r.disabled && r.focus();
107
131
  }
108
- async function M(a) {
109
- e.disabled || ($("mode", a), await W(), await K());
132
+ async function N(a) {
133
+ e.disabled || (D("mode", a), await O(), await R());
110
134
  }
111
- async function R(a) {
112
- $("browse", a), await W();
135
+ async function H(a) {
136
+ D("browse", a), await O();
113
137
  }
114
- function P(a, r = !1) {
115
- const i = e.view === "year" ? 144 : r || e.view === "month" || e.view === "quarter" ? 12 : 1;
116
- R(Z(e.month, i * a));
138
+ function z(a, r = !1) {
139
+ const i = e.view === "decade" ? 1200 : e.view === "year" ? 144 : r || e.view === "month" || e.view === "quarter" ? 12 : 1;
140
+ H(Z(e.month, i * a));
117
141
  }
118
- async function H(a) {
142
+ async function I(a) {
119
143
  if (a.disabled) return;
120
- const r = { year: 0, quarter: 1, month: 2, date: 3 };
121
- if (r[e.view] >= r[Y.value]) {
122
- $("pick", a.value);
144
+ const r = {
145
+ decade: -1,
146
+ year: 0,
147
+ quarter: 1,
148
+ month: 2,
149
+ date: 3,
150
+ time: 3
151
+ };
152
+ if (r[e.view] >= r[K.value]) {
153
+ D("pick", a.value);
123
154
  return;
124
155
  }
125
- await R(a.value), await M(
126
- e.view === "year" ? e.unit === "quarter" ? "quarter" : "month" : e.view === "quarter" ? "month" : "date"
156
+ await H(a.value), await N(
157
+ e.view === "decade" ? "year" : e.view === "year" ? e.unit === "quarter" ? "quarter" : "month" : e.view === "quarter" ? "month" : "date"
127
158
  );
128
159
  }
129
- async function de(a, r) {
160
+ async function we(a, r) {
130
161
  if (e.disabled || a.isComposing || a.keyCode === 229 || a.altKey || a.metaKey)
131
162
  return;
132
163
  if (a.key === "Enter" || a.key === " ") {
133
- a.preventDefault(), await H(r);
164
+ a.preventDefault(), await I(r);
134
165
  return;
135
166
  }
136
167
  let i = r.value, n = 0;
137
- const y = {
168
+ const m = {
138
169
  ArrowLeft: -1,
139
170
  ArrowRight: 1,
140
171
  ArrowUp: e.view === "date" ? -7 : -3,
141
172
  ArrowDown: e.view === "date" ? 7 : 3
142
173
  };
143
- if (a.key in y) n = y[a.key];
174
+ if (a.key in m) n = m[a.key];
144
175
  else if (a.key === "Home" || a.key === "End")
145
176
  if (e.view === "date") {
146
- const d = (N(i).weekday - e.first + 7) % 7;
147
- i += a.key === "Home" ? -d : 6 - d;
177
+ const o = (g(i).weekday - e.first + 7) % 7;
178
+ i += a.key === "Home" ? -o : 6 - o;
148
179
  } else
149
- i = D.value[a.key === "Home" ? 0 : D.value.length - 1].value;
180
+ i = M.value[a.key === "Home" ? 0 : M.value.length - 1].value;
150
181
  else if (a.key === "PageUp" || a.key === "PageDown") {
151
- const d = (a.key === "PageUp" ? -1 : 1) * (a.ctrlKey ? 12 : e.view === "year" ? 144 : e.view === "date" ? 1 : 12);
152
- i = Z(i, d);
182
+ const o = (a.key === "PageUp" ? -1 : 1) * (a.ctrlKey ? 12 : e.view === "decade" ? 1200 : e.view === "year" ? 144 : e.view === "date" ? 1 : 12);
183
+ i = Z(i, o);
153
184
  } else return;
154
185
  a.preventDefault();
155
- const s = (d, h) => e.view === "date" ? d + h : Z(
156
- d,
157
- h * (e.view === "year" ? 12 : e.view === "quarter" ? 3 : 1)
186
+ const l = (o, f) => e.view === "date" ? o + f : Z(
187
+ o,
188
+ f * (e.view === "decade" ? 120 : e.view === "year" ? 12 : e.view === "quarter" ? 3 : 1)
158
189
  );
159
- n && (i = s(i, n));
160
- let o = !1;
161
- for (let d = 0; d < 370 && i >= G && i <= J; d++) {
162
- const h = X(
163
- i,
164
- e.view === "date" ? e.unit : e.view,
165
- e.first
166
- )[1];
167
- if (e.view === "date" ? e.available(i) : e.periodAvailable(i, h)) {
168
- o = !0;
190
+ n && (i = l(i, n));
191
+ let d = !1;
192
+ for (let o = 0; o < 370 && i >= G && i <= J; o++) {
193
+ const f = _(i)[1];
194
+ if (e.view === "date" ? e.available(i) : e.periodAvailable(i, f)) {
195
+ d = !0;
169
196
  break;
170
197
  }
171
- i = s(i, n || 1);
198
+ i = l(i, n || 1);
172
199
  }
173
- !o || i < G || i > J || (T.value = i, (!D.value.some((d) => d.value === i) || e.view === "date" && N(i).month !== f.value) && await R(i), await K(i));
200
+ !d || i < G || i > J || (T.value = i, (!M.value.some((o) => o.value === i) || e.view === "date" && g(i).month !== C.value) && await H(i), await R(i));
174
201
  }
175
- return ae({ focus: K, element: L }), (a, r) => (l(), u("section", {
202
+ return oe({ focus: R, element: B }), (a, r) => (u(), s("section", {
176
203
  ref_key: "root",
177
- ref: L,
204
+ ref: B,
178
205
  class: "hys-ui-date-panel",
179
- "aria-label": v.value + "-" + String(f.value + 1).padStart(2, "0")
206
+ "aria-label": w.value + "-" + String(C.value + 1).padStart(2, "0")
180
207
  }, [
181
- b("div", fe, [
182
- b("div", he, [
208
+ b("div", Ce, [
209
+ b("div", $e, [
183
210
  b("button", {
184
211
  type: "button",
185
212
  "aria-label": t.words.prevYear,
186
- disabled: t.disabled || v.value <= 1,
187
- onClick: r[0] || (r[0] = (i) => P(-1, !0))
213
+ disabled: t.disabled || (t.view === "decade" ? S.value === 0 : w.value <= 1),
214
+ onClick: r[0] || (r[0] = (i) => z(-1, !0))
188
215
  }, [
189
- c(a.$slots, "prev-year", {}, () => [
190
- E(w(we), { size: 15 })
216
+ $(a.$slots, "prev-year", {}, () => [
217
+ P(y(me), { size: 15 })
191
218
  ], !0)
192
- ], 8, ce),
193
- t.view === "date" ? (l(), u("button", {
219
+ ], 8, Ae),
220
+ t.view === "date" ? (u(), s("button", {
194
221
  key: 0,
195
222
  type: "button",
196
223
  "aria-label": t.words.prevMonth,
197
- disabled: t.disabled || f.value === 0 && v.value <= 1,
198
- onClick: r[1] || (r[1] = (i) => P(-1))
224
+ disabled: t.disabled || C.value === 0 && w.value <= 1,
225
+ onClick: r[1] || (r[1] = (i) => z(-1))
199
226
  }, [
200
- c(a.$slots, "prev-month", {}, () => [
201
- E(w(ye), { size: 15 })
227
+ $(a.$slots, "prev-month", {}, () => [
228
+ P(y(fe), { size: 15 })
202
229
  ], !0)
203
- ], 8, ge)) : g("", !0)
230
+ ], 8, De)) : A("", !0)
204
231
  ]),
205
- b("div", Ce, [
206
- t.view === "year" ? (l(), u("button", {
232
+ b("div", Me, [
233
+ t.view === "decade" ? (u(), s("button", {
207
234
  key: 0,
208
235
  type: "button",
209
236
  "aria-label": t.words.back,
210
- onClick: r[2] || (r[2] = (i) => M(Y.value))
211
- }, k(V.value) + " — " + k(Math.min(9999, V.value + 11)), 9, $e)) : (l(), u(F, { key: 1 }, [
237
+ onClick: r[2] || (r[2] = (i) => N("year"))
238
+ }, k(Math.max(1, S.value)) + " — " + k(S.value + 99), 9, Ne)) : t.view === "year" ? (u(), s(F, { key: 1 }, [
239
+ b("button", {
240
+ type: "button",
241
+ "aria-label": t.words.back,
242
+ onClick: r[3] || (r[3] = (i) => N(K.value))
243
+ }, k(V.value) + " — " + k(Math.min(9999, V.value + 11)), 9, Fe),
244
+ b("button", {
245
+ type: "button",
246
+ "aria-label": p.value,
247
+ title: p.value,
248
+ onClick: r[4] || (r[4] = (i) => N("decade"))
249
+ }, [
250
+ P(y(re), { size: 13 })
251
+ ], 8, Se)
252
+ ], 64)) : (u(), s(F, { key: 2 }, [
212
253
  b("button", {
213
254
  type: "button",
214
255
  "aria-label": t.words.year,
215
- onClick: r[3] || (r[3] = (i) => M("year"))
256
+ onClick: r[5] || (r[5] = (i) => N("year"))
216
257
  }, [
217
- z(k(v.value), 1),
218
- t.locale.startsWith("zh") ? (l(), u("span", Ae, "年")) : g("", !0)
219
- ], 8, De),
220
- t.view !== "quarter" ? (l(), u("button", {
258
+ L(k(w.value), 1),
259
+ t.locale.startsWith("zh") ? (u(), s("span", qe, "年")) : A("", !0)
260
+ ], 8, Pe),
261
+ t.view !== "quarter" ? (u(), s("button", {
221
262
  key: 0,
222
263
  type: "button",
223
264
  "aria-label": t.view === "month" ? t.words.back : t.words.month,
224
- onClick: r[4] || (r[4] = (i) => M(t.view === "month" ? Y.value : "month"))
225
- }, k(w(te)(t.locale).format(w(O)(w(C)(v.value, f.value, 1)))), 9, Ne)) : g("", !0)
265
+ onClick: r[6] || (r[6] = (i) => N(t.view === "month" ? K.value : "month"))
266
+ }, k(y(de)(t.locale).format(y(Q)(y(c)(w.value, C.value, 1)))), 9, xe)) : A("", !0)
226
267
  ], 64))
227
268
  ]),
228
- b("div", Fe, [
229
- t.view === "date" ? (l(), u("button", {
269
+ b("div", ze, [
270
+ t.view === "date" ? (u(), s("button", {
230
271
  key: 0,
231
272
  type: "button",
232
273
  "aria-label": t.words.nextMonth,
233
- disabled: t.disabled || f.value === 11 && v.value >= 9999,
234
- onClick: r[5] || (r[5] = (i) => P(1))
274
+ disabled: t.disabled || C.value === 11 && w.value >= 9999,
275
+ onClick: r[7] || (r[7] = (i) => z(1))
235
276
  }, [
236
- c(a.$slots, "next-month", {}, () => [
237
- E(w(be), { size: 15 })
277
+ $(a.$slots, "next-month", {}, () => [
278
+ P(y(he), { size: 15 })
238
279
  ], !0)
239
- ], 8, Se)) : g("", !0),
280
+ ], 8, Ee)) : A("", !0),
240
281
  b("button", {
241
282
  type: "button",
242
283
  "aria-label": t.words.nextYear,
243
- disabled: t.disabled || v.value >= 9999,
244
- onClick: r[6] || (r[6] = (i) => P(1, !0))
284
+ disabled: t.disabled || (t.view === "decade" ? S.value >= 9900 : w.value >= 9999),
285
+ onClick: r[8] || (r[8] = (i) => z(1, !0))
245
286
  }, [
246
- c(a.$slots, "next-year", {}, () => [
247
- E(w(ke), { size: 15 })
287
+ $(a.$slots, "next-year", {}, () => [
288
+ P(y(re), { size: 15 })
248
289
  ], !0)
249
- ], 8, qe)
290
+ ], 8, Le)
250
291
  ])
251
292
  ]),
252
- t.view === "date" ? (l(), u("div", {
293
+ t.view === "date" ? (u(), s("div", {
253
294
  key: 0,
254
- class: B(["hys-ui-date-weekdays", { "hys-ui-date-with-weeks": t.weekNumbers }]),
295
+ class: Y(["hys-ui-date-weekdays", { "hys-ui-date-with-weeks": t.weekNumbers }]),
255
296
  "aria-hidden": "true"
256
297
  }, [
257
- t.weekNumbers ? (l(), u("span", Me, k(t.words.week), 1)) : g("", !0),
258
- (l(!0), u(F, null, U(re.value, (i, n) => (l(), u("span", { key: n }, k(i), 1))), 128))
259
- ], 2)) : g("", !0),
298
+ t.weekNumbers ? (u(), s("span", Ye, k(t.words.week), 1)) : A("", !0),
299
+ (u(!0), s(F, null, W(se.value, (i, n) => (u(), s("span", { key: n }, k(i), 1))), 128))
300
+ ], 2)) : A("", !0),
260
301
  b("div", {
261
- class: B(["hys-ui-date-cells", [
302
+ class: Y(["hys-ui-date-cells", [
262
303
  "hys-ui-date-view-" + t.view,
263
304
  { "hys-ui-date-with-weeks": t.weekNumbers && t.view === "date" }
264
305
  ]]),
265
306
  role: "grid",
266
- "aria-label": t.view === "date" ? t.words.empty : t.view === "year" ? t.words.year : t.words.month,
267
- onMouseleave: r[7] || (r[7] = (i) => {
268
- q.value = void 0, $("preview", void 0);
307
+ "aria-label": t.view === "date" ? t.words.empty : t.view === "year" || t.view === "decade" ? t.words.year : t.words.month,
308
+ onMouseleave: r[9] || (r[9] = (i) => {
309
+ x.value = void 0, D("preview", void 0);
269
310
  })
270
311
  }, [
271
- (l(!0), u(F, null, U(oe.value, (i) => (l(), u("div", {
312
+ (u(!0), s(F, null, W(ve.value, (i) => (u(), s("div", {
272
313
  key: i[0].value,
273
314
  role: "row",
274
- class: B(["hys-ui-date-grid-row", {
275
- "hys-ui-date-week-hover": t.unit === "week" && t.view === "date" && q.value !== void 0 && i.some((n) => n.value === q.value)
315
+ class: Y(["hys-ui-date-grid-row", {
316
+ "hys-ui-date-week-hover": t.unit === "week" && t.view === "date" && x.value !== void 0 && i.some((n) => n.value === x.value)
276
317
  }])
277
318
  }, [
278
- (l(!0), u(F, null, U(i, (n, y) => {
279
- var s;
280
- return l(), u(F, {
319
+ (u(!0), s(F, null, W(i, (n, m) => {
320
+ var l;
321
+ return u(), s(F, {
281
322
  key: n.value
282
323
  }, [
283
- t.view === "date" && t.weekNumbers && y % 7 === 0 ? (l(), u("span", xe, [
284
- t.unit === "week" ? (l(), u("button", {
324
+ t.view === "date" && t.weekNumbers && m % 7 === 0 ? (u(), s("span", Te, [
325
+ t.unit === "week" ? (u(), s("button", {
285
326
  key: 0,
286
327
  type: "button",
287
328
  tabindex: "-1",
288
- disabled: i.every((o) => o.disabled),
329
+ disabled: i.every((d) => d.disabled),
289
330
  "aria-label": `${n.weekYear} ${t.words.week} ${n.week}: ${n.weekStart} – ${n.weekEnd}`,
290
- onClick: (o) => H(i.find((d) => !d.disabled))
331
+ onClick: (d) => I(i.find((o) => !o.disabled))
291
332
  }, [
292
- c(a.$slots, "week-number", j({ ref_for: !0 }, w(S)(n.value, t.first, t.weekContains), {
333
+ $(a.$slots, "week-number", j({ ref_for: !0 }, y(q)(n.value, t.first, t.weekContains), {
293
334
  selected: n.selected,
294
- disabled: i.every((o) => o.disabled)
335
+ disabled: i.every((d) => d.disabled)
295
336
  }), () => {
296
- var o;
337
+ var d;
297
338
  return [
298
- z(k(((o = t.weekNumberFormatter) == null ? void 0 : o.call(
339
+ L(k(((d = t.weekNumberFormatter) == null ? void 0 : d.call(
299
340
  t,
300
- w(S)(n.value, t.first, t.weekContains)
341
+ y(q)(n.value, t.first, t.weekContains)
301
342
  )) ?? n.week), 1)
302
343
  ];
303
344
  }, !0)
304
- ], 8, Ee)) : c(a.$slots, "week-number", j({ ref_for: !0 }, w(S)(n.value, t.first, t.weekContains), {
345
+ ], 8, Ve)) : $(a.$slots, "week-number", j({ ref_for: !0 }, y(q)(n.value, t.first, t.weekContains), {
305
346
  selected: n.selected,
306
347
  disabled: n.disabled
307
348
  }), () => {
308
- var o;
349
+ var d;
309
350
  return [
310
- z(k(((o = t.weekNumberFormatter) == null ? void 0 : o.call(
351
+ L(k(((d = t.weekNumberFormatter) == null ? void 0 : d.call(
311
352
  t,
312
- w(S)(n.value, t.first, t.weekContains)
353
+ y(q)(n.value, t.first, t.weekContains)
313
354
  )) ?? n.week), 1)
314
355
  ];
315
356
  }, !0, 1)
316
- ])) : g("", !0),
357
+ ])) : A("", !0),
317
358
  b("button", {
318
359
  type: "button",
319
360
  role: "gridcell",
320
361
  "data-picker-day": n.value,
321
- "data-date": t.view === "date" ? n.iso : void 0,
362
+ "data-date": n.iso,
322
363
  "data-period": t.view !== "date" ? n.iso : void 0,
323
364
  "aria-label": t.view === "date" ? n.iso : n.text,
324
365
  "aria-selected": n.selected,
325
366
  "aria-current": n.today ? "date" : void 0,
326
- tabindex: n.value === p.value ? 0 : -1,
367
+ tabindex: n.value === ee.value ? 0 : -1,
327
368
  disabled: n.disabled,
328
- class: B([
329
- (s = t.cellClassName) == null ? void 0 : s.call(t, n),
369
+ class: Y([
370
+ (l = t.cellClassName) == null ? void 0 : l.call(t, n),
330
371
  {
331
372
  "hys-ui-is-selected": n.selected,
332
373
  "hys-ui-is-today": n.today,
@@ -334,24 +375,24 @@ const me = ["aria-label"], fe = { class: "hys-ui-date-panel-heading" }, he = { c
334
375
  "hys-ui-is-in-range": n.inRange && !n.selected
335
376
  }
336
377
  ]),
337
- onFocus: (o) => {
338
- T.value = n.value, $("preview", n.value);
378
+ onFocus: (d) => {
379
+ T.value = n.value, D("preview", n.value);
339
380
  },
340
- onPointerenter: (o) => !n.disabled && (q.value = n.value, $("preview", n.value)),
341
- onClick: (o) => H(n),
342
- onKeydown: (o) => de(o, n)
381
+ onPointerenter: (d) => !n.disabled && (x.value = n.value, D("preview", n.value)),
382
+ onClick: (d) => I(n),
383
+ onKeydown: (d) => we(d, n)
343
384
  }, [
344
- c(a.$slots, "cell", j({ ref_for: !0 }, n), () => [
345
- z(k(n.text), 1)
385
+ $(a.$slots, "cell", j({ ref_for: !0 }, n), () => [
386
+ L(k(n.text), 1)
346
387
  ], !0)
347
- ], 42, ze)
388
+ ], 42, Ke)
348
389
  ], 64);
349
390
  }), 128))
350
391
  ], 2))), 128))
351
- ], 42, Pe)
352
- ], 8, me));
392
+ ], 42, Be)
393
+ ], 8, ge));
353
394
  }
354
395
  });
355
396
  export {
356
- Ye as default
397
+ We as default
357
398
  };