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.
- package/CHANGELOG.md +15 -0
- package/LICENSE +19 -0
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +1055 -753
- package/dist/components/HysDataGrid/gridColumnLayout.js +46 -0
- package/dist/components/HysDataGrid/gridPresentation.js +17 -0
- package/dist/components/HysDataGrid/useGridContextMenu.js +33 -0
- package/dist/components/HysDatePicker/HysDatePicker.vue.js +102 -48
- package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +2 -2
- package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +874 -532
- package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +2 -2
- package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +209 -168
- package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +102 -48
- package/dist/components/HysDescriptions/HysDescriptions.vue.js +7 -0
- package/dist/components/HysDescriptions/HysDescriptions2.vue.js +146 -0
- package/dist/components/HysForm/HysForm2.vue.js +9 -8
- package/dist/components/HysIcon/HysIcon.vue.js +373 -0
- package/dist/components/HysIcon/HysIcon2.vue.js +5 -0
- package/dist/components/HysIcon/IconGraphic/IconGraphic.vue.js +147 -0
- package/dist/components/HysIcon/IconGraphic/IconGraphic2.vue.js +4 -0
- package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.js +7 -0
- package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel2.vue.js +440 -0
- package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.js +29 -0
- package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic2.vue.js +4 -0
- package/dist/components/HysIcon/IconTooltip/IconTooltip.vue.js +19 -0
- package/dist/components/HysIcon/IconTooltip/IconTooltip2.vue.js +4 -0
- package/dist/components/HysIcon/builtins/access.js +180 -0
- package/dist/components/HysIcon/builtins/actions.js +327 -0
- package/dist/components/HysIcon/builtins/business.js +364 -0
- package/dist/components/HysIcon/builtins/catalog/access-1.json.js +51 -0
- package/dist/components/HysIcon/builtins/catalog/access-2.json.js +35 -0
- package/dist/components/HysIcon/builtins/catalog/accessibility.json.js +26 -0
- package/dist/components/HysIcon/builtins/catalog/arrows-1.json.js +45 -0
- package/dist/components/HysIcon/builtins/catalog/arrows-2.json.js +46 -0
- package/dist/components/HysIcon/builtins/catalog/arrows-3.json.js +42 -0
- package/dist/components/HysIcon/builtins/catalog/charts-1.json.js +50 -0
- package/dist/components/HysIcon/builtins/catalog/charts-2.json.js +13 -0
- package/dist/components/HysIcon/builtins/catalog/commerce.json.js +43 -0
- package/dist/components/HysIcon/builtins/catalog/communication-1.json.js +49 -0
- package/dist/components/HysIcon/builtins/catalog/communication-2.json.js +37 -0
- package/dist/components/HysIcon/builtins/catalog/design-1.json.js +61 -0
- package/dist/components/HysIcon/builtins/catalog/design-2.json.js +27 -0
- package/dist/components/HysIcon/builtins/catalog/development-1.json.js +58 -0
- package/dist/components/HysIcon/builtins/catalog/development-2.json.js +60 -0
- package/dist/components/HysIcon/builtins/catalog/development-3.json.js +25 -0
- package/dist/components/HysIcon/builtins/catalog/devices-1.json.js +52 -0
- package/dist/components/HysIcon/builtins/catalog/devices-2.json.js +55 -0
- package/dist/components/HysIcon/builtins/catalog/devices-3.json.js +23 -0
- package/dist/components/HysIcon/builtins/catalog/education.json.js +34 -0
- package/dist/components/HysIcon/builtins/catalog/emoji.json.js +24 -0
- package/dist/components/HysIcon/builtins/catalog/files-1.json.js +45 -0
- package/dist/components/HysIcon/builtins/catalog/files-2.json.js +47 -0
- package/dist/components/HysIcon/builtins/catalog/files-3.json.js +8 -0
- package/dist/components/HysIcon/builtins/catalog/food-1.json.js +67 -0
- package/dist/components/HysIcon/builtins/catalog/food-2.json.js +40 -0
- package/dist/components/HysIcon/builtins/catalog/home.json.js +36 -0
- package/dist/components/HysIcon/builtins/catalog/layout-1.json.js +46 -0
- package/dist/components/HysIcon/builtins/catalog/layout-2.json.js +45 -0
- package/dist/components/HysIcon/builtins/catalog/manifest.json.js +4 -0
- package/dist/components/HysIcon/builtins/catalog/maps-1.json.js +61 -0
- package/dist/components/HysIcon/builtins/catalog/maps-2.json.js +24 -0
- package/dist/components/HysIcon/builtins/catalog/media-1.json.js +57 -0
- package/dist/components/HysIcon/builtins/catalog/media-2.json.js +13 -0
- package/dist/components/HysIcon/builtins/catalog/medical.json.js +30 -0
- package/dist/components/HysIcon/builtins/catalog/nature.json.js +54 -0
- package/dist/components/HysIcon/builtins/catalog/recreation.json.js +51 -0
- package/dist/components/HysIcon/builtins/catalog/shapes.json.js +54 -0
- package/dist/components/HysIcon/builtins/catalog/text-1.json.js +52 -0
- package/dist/components/HysIcon/builtins/catalog/text-2.json.js +54 -0
- package/dist/components/HysIcon/builtins/catalog/text-3.json.js +58 -0
- package/dist/components/HysIcon/builtins/catalog/text-4.json.js +41 -0
- package/dist/components/HysIcon/builtins/catalog/time.json.js +39 -0
- package/dist/components/HysIcon/builtins/catalog/transport-1.json.js +57 -0
- package/dist/components/HysIcon/builtins/catalog/transport-2.json.js +7 -0
- package/dist/components/HysIcon/builtins/catalog/weather.json.js +46 -0
- package/dist/components/HysIcon/builtins/communication.js +314 -0
- package/dist/components/HysIcon/builtins/documents.js +315 -0
- package/dist/components/HysIcon/builtins/extendedCatalog.js +75 -0
- package/dist/components/HysIcon/builtins/iconInCategory.js +11 -0
- package/dist/components/HysIcon/builtins/media.js +255 -0
- package/dist/components/HysIcon/builtins/navigation.js +276 -0
- package/dist/components/HysIcon/builtins/technology.js +189 -0
- package/dist/components/HysIcon/iconBuiltins.js +228 -0
- package/dist/components/HysIcon/iconConfig.js +30 -0
- package/dist/components/HysIcon/iconRegistry.js +183 -0
- package/dist/components/HysIcon/iconSafety.js +191 -0
- package/dist/components/HysIcon/iconStyle.js +70 -0
- package/dist/components/HysIcon/useIconResource.js +75 -0
- package/dist/components/HysPopconfirm/HysPopconfirm.vue.js +7 -0
- package/dist/components/HysPopconfirm/HysPopconfirm2.vue.js +346 -0
- package/dist/components/HysPopconfirm/usePopconfirmAction.js +32 -0
- package/dist/components/HysResult/HysResult.vue.js +7 -0
- package/dist/components/HysResult/HysResult2.vue.js +124 -0
- package/dist/components/HysSpace/HysSpace.vue.js +7 -0
- package/dist/components/HysSpace/HysSpace2.vue.js +79 -0
- package/dist/components/HysSpace/spaceItems.js +17 -0
- package/dist/components/HysSpin/HysSpin.vue.js +7 -0
- package/dist/components/HysSpin/HysSpin2.vue.js +427 -0
- package/dist/components/HysSpin/SpinGlyph/SpinGlyph.vue.js +334 -0
- package/dist/components/HysSpin/SpinGlyph/SpinGlyph2.vue.js +5 -0
- package/dist/components/HysSpin/SpinPortal/SpinPortal.vue.js +7 -0
- package/dist/components/HysSpin/SpinPortal/SpinPortal2.vue.js +66 -0
- package/dist/components/HysSpin/SpinPortal/spinTarget.js +57 -0
- package/dist/components/HysSpin/spinCatalog.js +35 -0
- package/dist/components/HysSpin/spinConfig.js +32 -0
- package/dist/components/HysSpin/spinService.js +160 -0
- package/dist/components/HysSpin/spinStyle.js +39 -0
- package/dist/components/HysSpin/useHysSpinTask.js +92 -0
- package/dist/components/HysSpin/useSpinFullscreen.js +60 -0
- package/dist/components/HysSpin/useSpinVisibility.js +59 -0
- package/dist/components/HysSplitPane/HysSplitPane.vue.js +285 -204
- package/dist/components/HysSplitPane/splitPaneResize.js +75 -0
- package/dist/components/HysTabPane/HysTabPane.vue.js +49 -0
- package/dist/components/HysTabPane/HysTabPane2.vue.js +4 -0
- package/dist/components/HysTable/HysTable.vue.js +3 -3
- package/dist/components/HysTable/HysTable2.vue.js +412 -383
- package/dist/components/HysTable/tableSearch.js +24 -0
- package/dist/components/HysTabs/HysTabs.vue.js +172 -5
- package/dist/components/HysTabs/HysTabs2.vue.js +2 -275
- package/dist/components/HysTabs/TabsMore/TabsMore.vue.js +7 -0
- package/dist/components/HysTabs/TabsMore/TabsMore2.vue.js +133 -0
- package/dist/components/HysTabs/TabsPanels/TabsPanels.vue.js +161 -0
- package/dist/components/HysTabs/TabsPanels/TabsPanels2.vue.js +4 -0
- package/dist/components/HysTabs/TabsPrompts/TabsPrompts.vue.js +4 -0
- package/dist/components/HysTabs/TabsPrompts/TabsPrompts2.vue.js +88 -0
- package/dist/components/HysTabs/TabsSlot/TabsSlot.js +13 -0
- package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.js +7 -0
- package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench2.vue.js +687 -0
- package/dist/components/HysTabs/tabsConfig.js +35 -0
- package/dist/components/HysTabs/tabsItems.js +79 -0
- package/dist/components/HysTabs/tabsPersistence.js +118 -0
- package/dist/components/HysTabs/useHysRouteTabs.js +77 -0
- package/dist/components/HysTabs/useTabsDragGhost.js +47 -0
- package/dist/components/HysTabs/useTabsNav.js +127 -0
- package/dist/components/HysTabs/useTabsOverlays.js +52 -0
- package/dist/components/HysTabs/useTabsPanels.js +101 -0
- package/dist/components/HysTabs/useTabsPointer.js +131 -0
- package/dist/components/HysTabs/useTabsState.js +263 -0
- package/dist/composables/datePicker.js +153 -94
- package/dist/composables/datePickerModel.js +156 -0
- package/dist/composables/datePickerPanels.js +78 -0
- package/dist/composables/datePickerRules.js +166 -0
- package/dist/composables/floatingPosition.js +32 -13
- package/dist/composables/formLayout.js +20 -42
- package/dist/composables/popupSurfaceStyle.js +30 -0
- package/dist/composables/useContainerWidth.js +24 -0
- package/dist/composables/useDatePicker.js +274 -381
- package/dist/composables/useFloating.js +42 -41
- package/dist/composables/usePageVisibility.js +19 -0
- package/dist/composables/usePopupSurface.js +153 -162
- package/dist/composables/usePopupSurfaceInteractions.js +91 -90
- package/dist/composables/useSplitPaneDrag.js +29 -26
- package/dist/composables/useSvgInstanceId.js +15 -0
- package/dist/composables/useTable.js +321 -306
- package/dist/composables/useTabularRowNavigation.js +46 -0
- package/dist/index.js +229 -185
- package/dist/internal/MultiSplitPane.vue.js +246 -205
- package/dist/internal/PopupSurfacePanel.vue.js +2 -2
- package/dist/internal/PopupSurfacePanel2.vue.js +35 -30
- package/dist/style.css +1 -1
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +40 -2
- package/dist/types/components/HysDataGrid/gridColumnLayout.d.ts +22 -0
- package/dist/types/components/HysDataGrid/gridPresentation.d.ts +47 -0
- package/dist/types/components/HysDataGrid/useGridContextMenu.d.ts +14 -0
- package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +6 -9
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +12 -0
- package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +6 -0
- package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +6 -9
- package/dist/types/components/HysDescriptions/HysDescriptions.vue.d.ts +20 -0
- package/dist/types/components/HysDescriptions/descriptionsTypes.d.ts +54 -0
- package/dist/types/components/HysForm/HysForm.vue.d.ts +1 -1
- package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +1 -1
- package/dist/types/components/HysIcon/HysIcon.vue.d.ts +76 -0
- package/dist/types/components/HysIcon/IconGraphic/IconGraphic.vue.d.ts +43 -0
- package/dist/types/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.d.ts +17 -0
- package/dist/types/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.d.ts +10 -0
- package/dist/types/components/HysIcon/IconTooltip/IconTooltip.vue.d.ts +11 -0
- package/dist/types/components/HysIcon/builtins/access.d.ts +15 -0
- package/dist/types/components/HysIcon/builtins/actions.d.ts +30 -0
- package/dist/types/components/HysIcon/builtins/business.d.ts +31 -0
- package/dist/types/components/HysIcon/builtins/communication.d.ts +27 -0
- package/dist/types/components/HysIcon/builtins/documents.d.ts +29 -0
- package/dist/types/components/HysIcon/builtins/extendedCatalog.d.ts +2 -0
- package/dist/types/components/HysIcon/builtins/iconInCategory.d.ts +2 -0
- package/dist/types/components/HysIcon/builtins/media.d.ts +24 -0
- package/dist/types/components/HysIcon/builtins/navigation.d.ts +30 -0
- package/dist/types/components/HysIcon/builtins/technology.d.ts +18 -0
- package/dist/types/components/HysIcon/iconBuiltins.d.ts +2 -0
- package/dist/types/components/HysIcon/iconConfig.d.ts +10 -0
- package/dist/types/components/HysIcon/iconRegistry.d.ts +5 -0
- package/dist/types/components/HysIcon/iconSafety.d.ts +8 -0
- package/dist/types/components/HysIcon/iconStyle.d.ts +6 -0
- package/dist/types/components/HysIcon/iconTypes.d.ts +192 -0
- package/dist/types/components/HysIcon/useIconResource.d.ts +14 -0
- package/dist/types/components/HysPopconfirm/HysPopconfirm.vue.d.ts +85 -0
- package/dist/types/components/HysPopconfirm/popconfirmTypes.d.ts +72 -0
- package/dist/types/components/HysPopconfirm/usePopconfirmAction.d.ts +6 -0
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
- package/dist/types/components/HysResult/HysResult.vue.d.ts +22 -0
- package/dist/types/components/HysResult/resultTypes.d.ts +32 -0
- package/dist/types/components/HysSpace/HysSpace.vue.d.ts +15 -0
- package/dist/types/components/HysSpace/spaceItems.d.ts +9 -0
- package/dist/types/components/HysSpace/spaceTypes.d.ts +20 -0
- package/dist/types/components/HysSpin/HysSpin.vue.d.ts +84 -0
- package/dist/types/components/HysSpin/SpinGlyph/SpinGlyph.vue.d.ts +16 -0
- package/dist/types/components/HysSpin/SpinPortal/SpinPortal.vue.d.ts +21 -0
- package/dist/types/components/HysSpin/SpinPortal/spinTarget.d.ts +3 -0
- package/dist/types/components/HysSpin/spinCatalog.d.ts +122 -0
- package/dist/types/components/HysSpin/spinConfig.d.ts +10 -0
- package/dist/types/components/HysSpin/spinService.d.ts +7 -0
- package/dist/types/components/HysSpin/spinStyle.d.ts +5 -0
- package/dist/types/components/HysSpin/spinTypes.d.ts +133 -0
- package/dist/types/components/HysSpin/useHysSpinTask.d.ts +4 -0
- package/dist/types/components/HysSpin/useSpinFullscreen.d.ts +17 -0
- package/dist/types/components/HysSpin/useSpinVisibility.d.ts +10 -0
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +25 -2
- package/dist/types/components/HysSplitPane/splitPaneResize.d.ts +17 -0
- package/dist/types/components/HysTabPane/HysTabPane.vue.d.ts +11 -0
- package/dist/types/components/HysTable/HysTable.vue.d.ts +16 -10
- package/dist/types/components/HysTable/tableSearch.d.ts +2 -0
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +83 -74
- package/dist/types/components/HysTabs/TabsMore/TabsMore.vue.d.ts +14 -0
- package/dist/types/components/HysTabs/TabsPanels/TabsPanels.vue.d.ts +17 -0
- package/dist/types/components/HysTabs/TabsPrompts/TabsPrompts.vue.d.ts +7 -0
- package/dist/types/components/HysTabs/TabsSlot/TabsSlot.d.ts +9 -0
- package/dist/types/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.d.ts +32 -0
- package/dist/types/components/HysTabs/tabsConfig.d.ts +4 -0
- package/dist/types/components/HysTabs/tabsItems.d.ts +14 -0
- package/dist/types/components/HysTabs/tabsPersistence.d.ts +6 -0
- package/dist/types/components/HysTabs/tabsTypes.d.ts +236 -0
- package/dist/types/components/HysTabs/useHysRouteTabs.d.ts +22 -0
- package/dist/types/components/HysTabs/useTabsDragGhost.d.ts +22 -0
- package/dist/types/components/HysTabs/useTabsNav.d.ts +20 -0
- package/dist/types/components/HysTabs/useTabsOverlays.d.ts +54 -0
- package/dist/types/components/HysTabs/useTabsPanels.d.ts +14 -0
- package/dist/types/components/HysTabs/useTabsPointer.d.ts +30 -0
- package/dist/types/components/HysTabs/useTabsState.d.ts +32 -0
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +2 -2
- package/dist/types/components/HysToast/toastPresentation.d.ts +1 -1
- package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +2 -2
- package/dist/types/composables/dataGrid.d.ts +34 -0
- package/dist/types/composables/datePicker.d.ts +14 -214
- package/dist/types/composables/datePickerModel.d.ts +63 -0
- package/dist/types/composables/datePickerPanels.d.ts +23 -0
- package/dist/types/composables/datePickerRules.d.ts +31 -0
- package/dist/types/composables/datePickerTypes.d.ts +277 -0
- package/dist/types/composables/floatingPosition.d.ts +1 -1
- package/dist/types/composables/formLayout.d.ts +1 -2
- package/dist/types/composables/popupSurfaceStyle.d.ts +7 -0
- package/dist/types/composables/table.d.ts +10 -1
- package/dist/types/composables/toastQueue.d.ts +4 -4
- package/dist/types/composables/toastQueueModel.d.ts +2 -2
- package/dist/types/composables/useColorPicker.d.ts +2 -4
- package/dist/types/composables/useContainerWidth.d.ts +2 -0
- package/dist/types/composables/useContextMenu.d.ts +2 -4
- package/dist/types/composables/useDatePicker.d.ts +20 -11
- package/dist/types/composables/useFloating.d.ts +4 -5
- package/dist/types/composables/usePageVisibility.d.ts +1 -0
- package/dist/types/composables/usePopupSurface.d.ts +9 -3
- package/dist/types/composables/usePopupSurfaceInteractions.d.ts +4 -2
- package/dist/types/composables/useSplitPaneDrag.d.ts +2 -2
- package/dist/types/composables/useSvgInstanceId.d.ts +1 -0
- package/dist/types/composables/useTable.d.ts +2 -0
- package/dist/types/composables/useTabularRowNavigation.d.ts +18 -0
- package/dist/types/index.d.ts +31 -3
- package/dist/types/internal/MultiSplitPane.vue.d.ts +10 -1
- package/dist/types/internal/PopupSurfacePanel.vue.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,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
|
|
4
|
+
const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dbd8d465"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ChevronsLeft as
|
|
3
|
-
import { calendarParts as
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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:
|
|
35
|
-
const e = t,
|
|
36
|
-
|
|
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
|
-
),
|
|
44
|
+
), se = h(
|
|
42
45
|
() => Array.from({ length: 7 }, (a, r) => {
|
|
43
|
-
const i =
|
|
44
|
-
|
|
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
|
-
),
|
|
57
|
-
const a = e.selected.filter((
|
|
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
|
-
(
|
|
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
|
-
(
|
|
63
|
-
),
|
|
64
|
-
return n.map((o) => {
|
|
65
|
-
const d =
|
|
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(
|
|
68
|
-
iso:
|
|
69
|
-
value:
|
|
70
|
-
end:
|
|
71
|
-
text:
|
|
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" &&
|
|
74
|
-
disabled:
|
|
75
|
-
selected: a.some(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
})
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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(
|
|
94
|
-
(r, i) =>
|
|
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
|
|
121
|
+
function te(a) {
|
|
98
122
|
var r;
|
|
99
123
|
return [
|
|
100
|
-
...((r =
|
|
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
|
|
127
|
+
async function R(a = ee.value) {
|
|
104
128
|
if (a === void 0) return;
|
|
105
|
-
let r =
|
|
106
|
-
r || (await
|
|
129
|
+
let r = te(a);
|
|
130
|
+
r || (await O(), r = te(a)), r && !r.disabled && r.focus();
|
|
107
131
|
}
|
|
108
|
-
async function
|
|
109
|
-
e.disabled || (
|
|
132
|
+
async function N(a) {
|
|
133
|
+
e.disabled || (D("mode", a), await O(), await R());
|
|
110
134
|
}
|
|
111
|
-
async function
|
|
112
|
-
|
|
135
|
+
async function H(a) {
|
|
136
|
+
D("browse", a), await O();
|
|
113
137
|
}
|
|
114
|
-
function
|
|
115
|
-
const i = e.view === "year" ? 144 : r || e.view === "month" || e.view === "quarter" ? 12 : 1;
|
|
116
|
-
|
|
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
|
|
142
|
+
async function I(a) {
|
|
119
143
|
if (a.disabled) return;
|
|
120
|
-
const r = {
|
|
121
|
-
|
|
122
|
-
|
|
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
|
|
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
|
|
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
|
|
164
|
+
a.preventDefault(), await I(r);
|
|
134
165
|
return;
|
|
135
166
|
}
|
|
136
167
|
let i = r.value, n = 0;
|
|
137
|
-
const
|
|
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
|
|
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
|
|
147
|
-
i += a.key === "Home" ? -
|
|
177
|
+
const o = (g(i).weekday - e.first + 7) % 7;
|
|
178
|
+
i += a.key === "Home" ? -o : 6 - o;
|
|
148
179
|
} else
|
|
149
|
-
i =
|
|
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
|
|
152
|
-
i = Z(i,
|
|
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
|
|
156
|
-
|
|
157
|
-
|
|
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 =
|
|
160
|
-
let
|
|
161
|
-
for (let
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
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 =
|
|
198
|
+
i = l(i, n || 1);
|
|
172
199
|
}
|
|
173
|
-
!
|
|
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
|
|
202
|
+
return oe({ focus: R, element: B }), (a, r) => (u(), s("section", {
|
|
176
203
|
ref_key: "root",
|
|
177
|
-
ref:
|
|
204
|
+
ref: B,
|
|
178
205
|
class: "hys-ui-date-panel",
|
|
179
|
-
"aria-label":
|
|
206
|
+
"aria-label": w.value + "-" + String(C.value + 1).padStart(2, "0")
|
|
180
207
|
}, [
|
|
181
|
-
b("div",
|
|
182
|
-
b("div",
|
|
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 ||
|
|
187
|
-
onClick: r[0] || (r[0] = (i) =>
|
|
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
|
-
|
|
190
|
-
|
|
216
|
+
$(a.$slots, "prev-year", {}, () => [
|
|
217
|
+
P(y(me), { size: 15 })
|
|
191
218
|
], !0)
|
|
192
|
-
], 8,
|
|
193
|
-
t.view === "date" ? (
|
|
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 ||
|
|
198
|
-
onClick: r[1] || (r[1] = (i) =>
|
|
224
|
+
disabled: t.disabled || C.value === 0 && w.value <= 1,
|
|
225
|
+
onClick: r[1] || (r[1] = (i) => z(-1))
|
|
199
226
|
}, [
|
|
200
|
-
|
|
201
|
-
|
|
227
|
+
$(a.$slots, "prev-month", {}, () => [
|
|
228
|
+
P(y(fe), { size: 15 })
|
|
202
229
|
], !0)
|
|
203
|
-
], 8,
|
|
230
|
+
], 8, De)) : A("", !0)
|
|
204
231
|
]),
|
|
205
|
-
b("div",
|
|
206
|
-
t.view === "
|
|
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) =>
|
|
211
|
-
}, k(
|
|
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[
|
|
256
|
+
onClick: r[5] || (r[5] = (i) => N("year"))
|
|
216
257
|
}, [
|
|
217
|
-
|
|
218
|
-
t.locale.startsWith("zh") ? (
|
|
219
|
-
], 8,
|
|
220
|
-
t.view !== "quarter" ? (
|
|
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[
|
|
225
|
-
}, k(
|
|
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",
|
|
229
|
-
t.view === "date" ? (
|
|
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 ||
|
|
234
|
-
onClick: r[
|
|
274
|
+
disabled: t.disabled || C.value === 11 && w.value >= 9999,
|
|
275
|
+
onClick: r[7] || (r[7] = (i) => z(1))
|
|
235
276
|
}, [
|
|
236
|
-
|
|
237
|
-
|
|
277
|
+
$(a.$slots, "next-month", {}, () => [
|
|
278
|
+
P(y(he), { size: 15 })
|
|
238
279
|
], !0)
|
|
239
|
-
], 8,
|
|
280
|
+
], 8, Ee)) : A("", !0),
|
|
240
281
|
b("button", {
|
|
241
282
|
type: "button",
|
|
242
283
|
"aria-label": t.words.nextYear,
|
|
243
|
-
disabled: t.disabled ||
|
|
244
|
-
onClick: r[
|
|
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
|
-
|
|
247
|
-
|
|
287
|
+
$(a.$slots, "next-year", {}, () => [
|
|
288
|
+
P(y(re), { size: 15 })
|
|
248
289
|
], !0)
|
|
249
|
-
], 8,
|
|
290
|
+
], 8, Le)
|
|
250
291
|
])
|
|
251
292
|
]),
|
|
252
|
-
t.view === "date" ? (
|
|
293
|
+
t.view === "date" ? (u(), s("div", {
|
|
253
294
|
key: 0,
|
|
254
|
-
class:
|
|
295
|
+
class: Y(["hys-ui-date-weekdays", { "hys-ui-date-with-weeks": t.weekNumbers }]),
|
|
255
296
|
"aria-hidden": "true"
|
|
256
297
|
}, [
|
|
257
|
-
t.weekNumbers ? (
|
|
258
|
-
(
|
|
259
|
-
], 2)) :
|
|
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:
|
|
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[
|
|
268
|
-
|
|
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
|
-
(
|
|
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:
|
|
275
|
-
"hys-ui-date-week-hover": t.unit === "week" && t.view === "date" &&
|
|
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
|
-
(
|
|
279
|
-
var
|
|
280
|
-
return
|
|
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 &&
|
|
284
|
-
t.unit === "week" ? (
|
|
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((
|
|
329
|
+
disabled: i.every((d) => d.disabled),
|
|
289
330
|
"aria-label": `${n.weekYear} ${t.words.week} ${n.week}: ${n.weekStart} – ${n.weekEnd}`,
|
|
290
|
-
onClick: (
|
|
331
|
+
onClick: (d) => I(i.find((o) => !o.disabled))
|
|
291
332
|
}, [
|
|
292
|
-
|
|
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((
|
|
335
|
+
disabled: i.every((d) => d.disabled)
|
|
295
336
|
}), () => {
|
|
296
|
-
var
|
|
337
|
+
var d;
|
|
297
338
|
return [
|
|
298
|
-
|
|
339
|
+
L(k(((d = t.weekNumberFormatter) == null ? void 0 : d.call(
|
|
299
340
|
t,
|
|
300
|
-
|
|
341
|
+
y(q)(n.value, t.first, t.weekContains)
|
|
301
342
|
)) ?? n.week), 1)
|
|
302
343
|
];
|
|
303
344
|
}, !0)
|
|
304
|
-
], 8,
|
|
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
|
|
349
|
+
var d;
|
|
309
350
|
return [
|
|
310
|
-
|
|
351
|
+
L(k(((d = t.weekNumberFormatter) == null ? void 0 : d.call(
|
|
311
352
|
t,
|
|
312
|
-
|
|
353
|
+
y(q)(n.value, t.first, t.weekContains)
|
|
313
354
|
)) ?? n.week), 1)
|
|
314
355
|
];
|
|
315
356
|
}, !0, 1)
|
|
316
|
-
])) :
|
|
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":
|
|
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 ===
|
|
367
|
+
tabindex: n.value === ee.value ? 0 : -1,
|
|
327
368
|
disabled: n.disabled,
|
|
328
|
-
class:
|
|
329
|
-
(
|
|
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: (
|
|
338
|
-
T.value = n.value,
|
|
378
|
+
onFocus: (d) => {
|
|
379
|
+
T.value = n.value, D("preview", n.value);
|
|
339
380
|
},
|
|
340
|
-
onPointerenter: (
|
|
341
|
-
onClick: (
|
|
342
|
-
onKeydown: (
|
|
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
|
-
|
|
345
|
-
|
|
385
|
+
$(a.$slots, "cell", j({ ref_for: !0 }, n), () => [
|
|
386
|
+
L(k(n.text), 1)
|
|
346
387
|
], !0)
|
|
347
|
-
], 42,
|
|
388
|
+
], 42, Ke)
|
|
348
389
|
], 64);
|
|
349
390
|
}), 128))
|
|
350
391
|
], 2))), 128))
|
|
351
|
-
], 42,
|
|
352
|
-
], 8,
|
|
392
|
+
], 42, Be)
|
|
393
|
+
], 8, ge));
|
|
353
394
|
}
|
|
354
395
|
});
|
|
355
396
|
export {
|
|
356
|
-
|
|
397
|
+
We as default
|
|
357
398
|
};
|