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,4 +1,7 @@
|
|
|
1
|
-
import { type HysDataGridKey, type HysDataGridProps, type HysDataGridQuery, type HysDataGridSort } from "../../composables/dataGrid";
|
|
1
|
+
import { type GridColumn, type HysDataGridKey, type HysDataGridProps, type HysDataGridQuery, type HysDataGridSort } from "../../composables/dataGrid";
|
|
2
|
+
import { type HysDataGridColumnLayout, type HysDataGridColumnLayoutSnapshot } from "./gridColumnLayout";
|
|
3
|
+
import { type HysDataGridCellContext, type HysDataGridContext, type HysDataGridHeaderContext, type HysDataGridHeaderGroup, type HysDataGridPin, type HysDataGridRowContext } from "./gridPresentation";
|
|
4
|
+
import type { HysContextMenuItem, HysMenuKey, HysMenuSelectInfo } from "../../composables/menu";
|
|
2
5
|
export type { GridColumn } from "../../composables/dataGrid";
|
|
3
6
|
declare const _default: typeof __VLS_export;
|
|
4
7
|
export default _default;
|
|
@@ -10,6 +13,19 @@ declare const __VLS_export: <T extends object = Record<string, unknown>>(__VLS_p
|
|
|
10
13
|
onRowClick?: ((row: T) => any) | undefined;
|
|
11
14
|
"onUpdate:selectedRowKeys"?: ((keys: HysDataGridKey[]) => any) | undefined;
|
|
12
15
|
onColumnsChange?: ((keys: string[]) => any) | undefined;
|
|
16
|
+
onColumnLayoutChange?: ((layout: HysDataGridColumnLayoutSnapshot) => any) | undefined;
|
|
17
|
+
"onUpdate:currentRowKey"?: ((key: HysDataGridKey | null) => any) | undefined;
|
|
18
|
+
onCurrentChange?: ((key: HysDataGridKey | null, previous: HysDataGridKey | null) => any) | undefined;
|
|
19
|
+
onHeaderClick?: ((context: HysDataGridHeaderContext<T>, event: MouseEvent) => any) | undefined;
|
|
20
|
+
onHeaderContextmenu?: ((context: HysDataGridHeaderContext<T>, event: MouseEvent) => any) | undefined;
|
|
21
|
+
onRowDblclick?: ((context: HysDataGridRowContext<T>, event: MouseEvent) => any) | undefined;
|
|
22
|
+
onRowContextmenu?: ((context: HysDataGridRowContext<T>, event: MouseEvent) => any) | undefined;
|
|
23
|
+
onCellClick?: ((context: HysDataGridCellContext<T>, event: MouseEvent) => any) | undefined;
|
|
24
|
+
onCellDblclick?: ((context: HysDataGridCellContext<T>, event: MouseEvent) => any) | undefined;
|
|
25
|
+
onCellContextmenu?: ((context: HysDataGridCellContext<T>, event: MouseEvent) => any) | undefined;
|
|
26
|
+
onContextMenuSelect?: ((key: HysMenuKey, context: HysDataGridContext<T>, info: HysMenuSelectInfo<HysContextMenuItem>) => any) | undefined;
|
|
27
|
+
"onUpdate:groupBy"?: ((key: string) => any) | undefined;
|
|
28
|
+
onGroupChange?: ((key: string) => any) | undefined;
|
|
13
29
|
onSortChange?: ((sort: HysDataGridSort | null) => any) | undefined;
|
|
14
30
|
onPageChange?: ((page: number) => any) | undefined;
|
|
15
31
|
"onUpdate:query"?: ((query: HysDataGridQuery) => any) | undefined;
|
|
@@ -30,6 +46,10 @@ declare const __VLS_export: <T extends object = Record<string, unknown>>(__VLS_p
|
|
|
30
46
|
} ? P : {});
|
|
31
47
|
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
32
48
|
resetColumns: () => void;
|
|
49
|
+
getColumnLayout: () => HysDataGridColumnLayoutSnapshot;
|
|
50
|
+
applyColumnLayout: (layout: HysDataGridColumnLayout) => void;
|
|
51
|
+
setGroupBy: (key: string) => void;
|
|
52
|
+
setGroupsExpanded: (expanded: boolean) => void;
|
|
33
53
|
getQuery: () => HysDataGridQuery;
|
|
34
54
|
setQuery: (change: Partial<HysDataGridQuery>) => void;
|
|
35
55
|
resetQuery: () => void;
|
|
@@ -39,6 +59,13 @@ declare const __VLS_export: <T extends object = Record<string, unknown>>(__VLS_p
|
|
|
39
59
|
toggleRowSelection: (key: HysDataGridKey, checked?: boolean) => void;
|
|
40
60
|
scrollTo: (options: ScrollToOptions) => void;
|
|
41
61
|
scrollToRow: (key: HysDataGridKey) => boolean;
|
|
62
|
+
focusRow: (key: HysDataGridKey) => boolean;
|
|
63
|
+
getCurrentRowKey: () => HysDataGridKey | null;
|
|
64
|
+
setCurrentRow: (key: HysDataGridKey | null) => void;
|
|
65
|
+
setColumnVisibility: (key: string, visible: boolean) => boolean;
|
|
66
|
+
pinColumn: (key: string, side: HysDataGridPin | null) => boolean;
|
|
67
|
+
resizeColumn: (key: string, width: number) => boolean;
|
|
68
|
+
resetColumnWidth: (key: string) => boolean;
|
|
42
69
|
}>) => void;
|
|
43
70
|
attrs: any;
|
|
44
71
|
slots: {
|
|
@@ -51,8 +78,19 @@ declare const __VLS_export: <T extends object = Record<string, unknown>>(__VLS_p
|
|
|
51
78
|
error: unknown;
|
|
52
79
|
retry: () => void;
|
|
53
80
|
}): unknown;
|
|
81
|
+
"toolbar-actions"?(scope: {
|
|
82
|
+
query: HysDataGridQuery;
|
|
83
|
+
selectedKeys: HysDataGridKey[];
|
|
84
|
+
}): unknown;
|
|
85
|
+
"header-cell"?(scope: HysDataGridHeaderContext<T>): unknown;
|
|
86
|
+
"header-group"?(scope: {
|
|
87
|
+
group: HysDataGridHeaderGroup;
|
|
88
|
+
columns: readonly GridColumn<T>[];
|
|
89
|
+
pinned?: HysDataGridPin;
|
|
90
|
+
}): unknown;
|
|
91
|
+
"body-cell"?(scope: HysDataGridCellContext<T>): unknown;
|
|
54
92
|
};
|
|
55
|
-
emit: ((evt: "loadError", error: unknown) => void) & ((evt: "selectionChange", keys: HysDataGridKey[]) => void) & ((evt: "pageSizeChange", size: number) => void) & ((evt: "rowClick", row: T) => void) & ((evt: "update:selectedRowKeys", keys: HysDataGridKey[]) => void) & ((evt: "columnsChange", keys: string[]) => void) & ((evt: "sortChange", sort: HysDataGridSort | null) => void) & ((evt: "pageChange", page: number) => void) & ((evt: "update:query", query: HysDataGridQuery) => void) & ((evt: "queryChange", query: HysDataGridQuery) => void) & ((evt: "cellEdit", payload: {
|
|
93
|
+
emit: ((evt: "loadError", error: unknown) => void) & ((evt: "selectionChange", keys: HysDataGridKey[]) => void) & ((evt: "pageSizeChange", size: number) => void) & ((evt: "rowClick", row: T) => void) & ((evt: "update:selectedRowKeys", keys: HysDataGridKey[]) => void) & ((evt: "columnsChange", keys: string[]) => void) & ((evt: "columnLayoutChange", layout: HysDataGridColumnLayoutSnapshot) => void) & ((evt: "update:currentRowKey", key: HysDataGridKey | null) => void) & ((evt: "currentChange", key: HysDataGridKey | null, previous: HysDataGridKey | null) => void) & ((evt: "headerClick", context: HysDataGridHeaderContext<T>, event: MouseEvent) => void) & ((evt: "headerContextmenu", context: HysDataGridHeaderContext<T>, event: MouseEvent) => void) & ((evt: "rowDblclick", context: HysDataGridRowContext<T>, event: MouseEvent) => void) & ((evt: "rowContextmenu", context: HysDataGridRowContext<T>, event: MouseEvent) => void) & ((evt: "cellClick", context: HysDataGridCellContext<T>, event: MouseEvent) => void) & ((evt: "cellDblclick", context: HysDataGridCellContext<T>, event: MouseEvent) => void) & ((evt: "cellContextmenu", context: HysDataGridCellContext<T>, event: MouseEvent) => void) & ((evt: "contextMenuSelect", key: HysMenuKey, context: HysDataGridContext<T>, info: HysMenuSelectInfo<HysContextMenuItem>) => void) & ((evt: "update:groupBy", key: string) => void) & ((evt: "groupChange", key: string) => void) & ((evt: "sortChange", sort: HysDataGridSort | null) => void) & ((evt: "pageChange", page: number) => void) & ((evt: "update:query", query: HysDataGridQuery) => void) & ((evt: "queryChange", query: HysDataGridQuery) => void) & ((evt: "cellEdit", payload: {
|
|
56
94
|
row: T;
|
|
57
95
|
rowKey: HysDataGridKey;
|
|
58
96
|
column: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type GridColumn } from "../../composables/dataGrid";
|
|
2
|
+
import type { HysDataGridPin } from "./gridPresentation";
|
|
3
|
+
export interface HysDataGridColumnLayout {
|
|
4
|
+
order?: readonly string[];
|
|
5
|
+
hidden?: readonly string[];
|
|
6
|
+
widths?: Readonly<Record<string, number>>;
|
|
7
|
+
pins?: Readonly<Record<string, HysDataGridPin | null>>;
|
|
8
|
+
}
|
|
9
|
+
export type HysDataGridColumnLayoutSnapshot = Required<Omit<HysDataGridColumnLayout, "pins">> & Pick<HysDataGridColumnLayout, "pins">;
|
|
10
|
+
export declare const gridMinColumnWidth: (column: Pick<GridColumn, "minWidth">) => number;
|
|
11
|
+
export declare const gridMaxColumnWidth: (column: Pick<GridColumn, "minWidth" | "maxWidth">) => number;
|
|
12
|
+
export declare const gridBoundColumnWidth: (column: Pick<GridColumn, "minWidth" | "maxWidth">, width: number) => number;
|
|
13
|
+
export declare function normalizeGridColumnLayout<T extends object>(columns: ReadonlyMap<string, GridColumn<T>>, layout?: HysDataGridColumnLayout): {
|
|
14
|
+
order: any[];
|
|
15
|
+
hidden: any[];
|
|
16
|
+
widths: {
|
|
17
|
+
[k: string]: number;
|
|
18
|
+
};
|
|
19
|
+
pins: {
|
|
20
|
+
[k: string]: HysDataGridPin | null;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { CSSProperties } from "vue";
|
|
2
|
+
import type { HysContextMenuItem } from "../../composables/menu";
|
|
3
|
+
import type { GridColumn, HysDataGridKey, HysDataGridSort } from "../../composables/dataGrid";
|
|
4
|
+
export type HysDataGridPin = "left" | "right";
|
|
5
|
+
export interface HysDataGridHeaderGroup {
|
|
6
|
+
key: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
export interface HysDataGridHeaderContext<T extends object> {
|
|
10
|
+
column: GridColumn<T>;
|
|
11
|
+
columnIndex: number;
|
|
12
|
+
sort: HysDataGridSort["direction"] | undefined;
|
|
13
|
+
filter: string;
|
|
14
|
+
pinned: HysDataGridPin | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface HysDataGridRowContext<T extends object> {
|
|
17
|
+
row: T;
|
|
18
|
+
rowKey: HysDataGridKey;
|
|
19
|
+
index: number;
|
|
20
|
+
pageIndex: number;
|
|
21
|
+
depth: number;
|
|
22
|
+
selected: boolean;
|
|
23
|
+
current: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface HysDataGridCellContext<T extends object> extends HysDataGridRowContext<T> {
|
|
26
|
+
column: GridColumn<T>;
|
|
27
|
+
columnIndex: number;
|
|
28
|
+
value: unknown;
|
|
29
|
+
}
|
|
30
|
+
export type HysDataGridContext<T extends object> = ({
|
|
31
|
+
type: "header";
|
|
32
|
+
} & HysDataGridHeaderContext<T>) | ({
|
|
33
|
+
type: "row";
|
|
34
|
+
} & HysDataGridRowContext<T>) | ({
|
|
35
|
+
type: "cell";
|
|
36
|
+
} & HysDataGridCellContext<T>);
|
|
37
|
+
export type HysDataGridContextMenu<T extends object> = boolean | ((context: HysDataGridContext<T>, items: readonly HysContextMenuItem[]) => readonly HysContextMenuItem[] | false);
|
|
38
|
+
export type HysDataGridClass<C> = string | ((context: C) => string | undefined);
|
|
39
|
+
export type HysDataGridStyle<C> = CSSProperties | ((context: C) => CSSProperties | undefined);
|
|
40
|
+
interface HeaderGroup<T extends object> {
|
|
41
|
+
id: string;
|
|
42
|
+
group: HysDataGridHeaderGroup | undefined;
|
|
43
|
+
columns: GridColumn<T>[];
|
|
44
|
+
pinned: HysDataGridPin | undefined;
|
|
45
|
+
}
|
|
46
|
+
export declare function gridHeaderGroups<T extends object>(columns: readonly GridColumn<T>[], pinOf: (column: GridColumn<T>) => HysDataGridPin | undefined): HeaderGroup<T>[];
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { HysContextMenuItem, HysMenuKey, HysMenuSelectInfo } from "../../composables/menu";
|
|
2
|
+
import type { HysDataGridContext, HysDataGridContextMenu } from "./gridPresentation";
|
|
3
|
+
export declare function useGridContextMenu<T extends object>(options: {
|
|
4
|
+
enabled: (context: HysDataGridContext<T>) => boolean;
|
|
5
|
+
config: () => HysDataGridContextMenu<T> | undefined;
|
|
6
|
+
defaults: (context: HysDataGridContext<T>) => readonly HysContextMenuItem[];
|
|
7
|
+
select: (value: HysMenuKey, context: HysDataGridContext<T>, info: HysMenuSelectInfo) => void;
|
|
8
|
+
}): {
|
|
9
|
+
items: import("vue").ShallowRef<readonly HysContextMenuItem[], readonly HysContextMenuItem[]>;
|
|
10
|
+
open: (target: HysDataGridContext<T>, event: MouseEvent | KeyboardEvent) => Promise<void>;
|
|
11
|
+
keydown: (target: HysDataGridContext<T>, event: KeyboardEvent) => void;
|
|
12
|
+
select: (value: HysMenuKey, info: HysMenuSelectInfo) => void;
|
|
13
|
+
close: () => void;
|
|
14
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HysDatePickerProps, type HysDatePickerValue, type HysDatePickerChange, type HysDateScalar, type HysDatePickerView, type HysDatePickerSlots } from "../../composables/datePicker";
|
|
1
|
+
import { type HysDatePickerProps, type HysDatePickerValue, type HysDatePickerChange, type HysDateCalendarChange, type HysDateScalar, type HysDatePickerView, type HysDatePickerSlots } from "../../composables/datePicker";
|
|
2
2
|
declare const __VLS_export: <V extends HysDatePickerValue = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<HysDatePickerProps<V> & {
|
|
4
4
|
onChange?: ((value: V, info: HysDatePickerChange) => any) | undefined;
|
|
@@ -17,13 +17,13 @@ declare const __VLS_export: <V extends HysDatePickerValue = string>(__VLS_props:
|
|
|
17
17
|
onPanelChange?: ((date: Date, view: HysDatePickerView, context: {
|
|
18
18
|
index: number;
|
|
19
19
|
}) => any) | undefined;
|
|
20
|
+
onOpenChange?: ((value: boolean) => any) | undefined;
|
|
20
21
|
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
21
22
|
"onUpdate:panelValue"?: ((value: HysDateScalar) => any) | undefined;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
dates: readonly (Date | null)[];
|
|
25
|
-
}) => any) | undefined;
|
|
23
|
+
"onUpdate:panelValues"?: ((value: readonly [Date, Date]) => any) | undefined;
|
|
24
|
+
onCalendarChange?: ((value: HysDatePickerValue, context: HysDateCalendarChange) => any) | undefined;
|
|
26
25
|
onOk?: ((value: V) => any) | undefined;
|
|
26
|
+
"onUpdate:value"?: ((value: V) => any) | undefined;
|
|
27
27
|
}> & (typeof globalThis extends {
|
|
28
28
|
__VLS_PROPS_FALLBACK: infer P;
|
|
29
29
|
} ? P : {});
|
|
@@ -53,10 +53,7 @@ declare const __VLS_export: <V extends HysDatePickerValue = string>(__VLS_props:
|
|
|
53
53
|
error?: unknown;
|
|
54
54
|
}) => void) & ((evt: "value-change", value: V, info: HysDatePickerChange) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:mode", value: HysDatePickerView) => void) & ((evt: "panelChange", date: Date, view: HysDatePickerView, context: {
|
|
55
55
|
index: number;
|
|
56
|
-
}) => void) & ((evt: "visible-change", value: boolean) => void) & ((evt: "update:panelValue", value: HysDateScalar) => void) & ((evt: "calendarChange", value: HysDatePickerValue, context:
|
|
57
|
-
range: "start" | "end";
|
|
58
|
-
dates: readonly (Date | null)[];
|
|
59
|
-
}) => void) & ((evt: "ok", value: V) => void);
|
|
56
|
+
}) => void) & ((evt: "openChange", value: boolean) => void) & ((evt: "visible-change", value: boolean) => void) & ((evt: "update:panelValue", value: HysDateScalar) => void) & ((evt: "update:panelValues", value: readonly [Date, Date]) => void) & ((evt: "calendarChange", value: HysDatePickerValue, context: HysDateCalendarChange) => void) & ((evt: "ok", value: V) => void) & ((evt: "update:value", value: V) => void);
|
|
60
57
|
}>) => import("vue").VNode & {
|
|
61
58
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
62
59
|
};
|
|
@@ -38,10 +38,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
38
38
|
"update:open": (...args: any[]) => void;
|
|
39
39
|
"update:mode": (...args: any[]) => void;
|
|
40
40
|
panelChange: (...args: any[]) => void;
|
|
41
|
+
openChange: (...args: any[]) => void;
|
|
41
42
|
"visible-change": (...args: any[]) => void;
|
|
42
43
|
"update:panelValue": (...args: any[]) => void;
|
|
44
|
+
"update:panelValues": (...args: any[]) => void;
|
|
43
45
|
calendarChange: (...args: any[]) => void;
|
|
44
46
|
ok: (...args: any[]) => void;
|
|
47
|
+
"update:value": (...args: any[]) => void;
|
|
45
48
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
46
49
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
47
50
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -53,16 +56,20 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
53
56
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
54
57
|
"onUpdate:mode"?: ((...args: any[]) => any) | undefined;
|
|
55
58
|
onPanelChange?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onOpenChange?: ((...args: any[]) => any) | undefined;
|
|
56
60
|
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
57
61
|
"onUpdate:panelValue"?: ((...args: any[]) => any) | undefined;
|
|
62
|
+
"onUpdate:panelValues"?: ((...args: any[]) => any) | undefined;
|
|
58
63
|
onCalendarChange?: ((...args: any[]) => any) | undefined;
|
|
59
64
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
60
66
|
}>, {
|
|
61
67
|
bordered: boolean;
|
|
62
68
|
type: import("../..").HysDatePickerType;
|
|
63
69
|
locale: string;
|
|
64
70
|
open: boolean;
|
|
65
71
|
clearable: boolean;
|
|
72
|
+
allowClear: boolean;
|
|
66
73
|
validateEvent: boolean;
|
|
67
74
|
appendTo: string | false | HTMLElement;
|
|
68
75
|
showFooter: boolean;
|
|
@@ -70,8 +77,12 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
70
77
|
firstDayOfWeek: number;
|
|
71
78
|
showAdjacentDays: boolean;
|
|
72
79
|
editable: boolean;
|
|
80
|
+
showWeekNumber: boolean;
|
|
81
|
+
automaticDropdown: boolean;
|
|
73
82
|
showNow: boolean;
|
|
74
83
|
showConfirm: boolean;
|
|
84
|
+
use12Hours: boolean;
|
|
85
|
+
hideDisabledOptions: boolean;
|
|
75
86
|
hourStep: number;
|
|
76
87
|
minuteStep: number;
|
|
77
88
|
secondStep: number;
|
|
@@ -79,6 +90,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
79
90
|
rangeSeparator: string;
|
|
80
91
|
singlePanel: boolean;
|
|
81
92
|
rangeValidation: "endpoints" | "continuous";
|
|
93
|
+
teleported: boolean;
|
|
82
94
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
83
95
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
84
96
|
declare const _default: typeof __VLS_export;
|
|
@@ -5,6 +5,7 @@ type __VLS_Props = {
|
|
|
5
5
|
unit: HysDatePickerUnit;
|
|
6
6
|
selected: readonly (HysDatePoint | null)[];
|
|
7
7
|
range: boolean;
|
|
8
|
+
stage: "start" | "end";
|
|
8
9
|
preview?: number;
|
|
9
10
|
first: number;
|
|
10
11
|
weekContains: number;
|
|
@@ -65,6 +66,11 @@ declare const __VLS_template: () => {
|
|
|
65
66
|
weekYear: number;
|
|
66
67
|
weekStart: string;
|
|
67
68
|
weekEnd: string;
|
|
69
|
+
range?: "start" | "end";
|
|
70
|
+
rangeStart?: boolean;
|
|
71
|
+
rangeEnd?: boolean;
|
|
72
|
+
row?: number;
|
|
73
|
+
column?: number;
|
|
68
74
|
}) => any;
|
|
69
75
|
};
|
|
70
76
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HysDateRangePickerProps, type HysDatePickerValue, type HysDatePickerChange, type HysDateScalar, type HysDatePickerView, type HysDatePickerSlots } from "../../composables/datePicker";
|
|
1
|
+
import { type HysDateRangePickerProps, type HysDatePickerValue, type HysDatePickerChange, type HysDateCalendarChange, type HysDateScalar, type HysDatePickerView, type HysDatePickerSlots } from "../../composables/datePicker";
|
|
2
2
|
declare const __VLS_export: <V extends HysDatePickerValue = [string, string]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<HysDateRangePickerProps<V> & {
|
|
4
4
|
onChange?: ((value: V, info: HysDatePickerChange) => any) | undefined;
|
|
@@ -17,13 +17,13 @@ declare const __VLS_export: <V extends HysDatePickerValue = [string, string]>(__
|
|
|
17
17
|
onPanelChange?: ((date: Date, view: HysDatePickerView, context: {
|
|
18
18
|
index: number;
|
|
19
19
|
}) => any) | undefined;
|
|
20
|
+
onOpenChange?: ((value: boolean) => any) | undefined;
|
|
20
21
|
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
21
22
|
"onUpdate:panelValue"?: ((value: HysDateScalar) => any) | undefined;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
dates: readonly (Date | null)[];
|
|
25
|
-
}) => any) | undefined;
|
|
23
|
+
"onUpdate:panelValues"?: ((value: readonly [Date, Date]) => any) | undefined;
|
|
24
|
+
onCalendarChange?: ((value: HysDatePickerValue, context: HysDateCalendarChange) => any) | undefined;
|
|
26
25
|
onOk?: ((value: V) => any) | undefined;
|
|
26
|
+
"onUpdate:value"?: ((value: V) => any) | undefined;
|
|
27
27
|
}> & (typeof globalThis extends {
|
|
28
28
|
__VLS_PROPS_FALLBACK: infer P;
|
|
29
29
|
} ? P : {});
|
|
@@ -53,10 +53,7 @@ declare const __VLS_export: <V extends HysDatePickerValue = [string, string]>(__
|
|
|
53
53
|
error?: unknown;
|
|
54
54
|
}) => void) & ((evt: "value-change", value: V, info: HysDatePickerChange) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:mode", value: HysDatePickerView) => void) & ((evt: "panelChange", date: Date, view: HysDatePickerView, context: {
|
|
55
55
|
index: number;
|
|
56
|
-
}) => void) & ((evt: "visible-change", value: boolean) => void) & ((evt: "update:panelValue", value: HysDateScalar) => void) & ((evt: "calendarChange", value: HysDatePickerValue, context:
|
|
57
|
-
range: "start" | "end";
|
|
58
|
-
dates: readonly (Date | null)[];
|
|
59
|
-
}) => void) & ((evt: "ok", value: V) => void);
|
|
56
|
+
}) => void) & ((evt: "openChange", value: boolean) => void) & ((evt: "visible-change", value: boolean) => void) & ((evt: "update:panelValue", value: HysDateScalar) => void) & ((evt: "update:panelValues", value: readonly [Date, Date]) => void) & ((evt: "calendarChange", value: HysDatePickerValue, context: HysDateCalendarChange) => void) & ((evt: "ok", value: V) => void) & ((evt: "update:value", value: V) => void);
|
|
60
57
|
}>) => import("vue").VNode & {
|
|
61
58
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
62
59
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HysDescriptionsProps, HysDescriptionsSlots } from "./descriptionsTypes";
|
|
2
|
+
type __VLS_Slots = HysDescriptionsSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<HysDescriptionsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HysDescriptionsProps> & Readonly<{}>, {
|
|
4
|
+
items: readonly import("./descriptionsTypes").HysDescriptionItem[];
|
|
5
|
+
size: "sm" | "md" | "lg";
|
|
6
|
+
placeholder: string;
|
|
7
|
+
layout: "horizontal" | "vertical";
|
|
8
|
+
emptyText: string;
|
|
9
|
+
columns: import("../..").HysFormGridValue;
|
|
10
|
+
align: import("./descriptionsTypes").HysDescriptionAlign;
|
|
11
|
+
labelAlign: import("./descriptionsTypes").HysDescriptionAlign;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { CSSProperties, VNodeChild } from "vue";
|
|
2
|
+
import type { HysFormGridValue } from "../../composables/formLayout";
|
|
3
|
+
export type HysDescriptionValue = string | number | boolean | bigint | null | undefined;
|
|
4
|
+
export type HysDescriptionAlign = "start" | "center" | "end";
|
|
5
|
+
export type HysDescriptionsColumns = HysFormGridValue;
|
|
6
|
+
export interface HysDescriptionItem {
|
|
7
|
+
key: string | number;
|
|
8
|
+
label: string;
|
|
9
|
+
value?: HysDescriptionValue;
|
|
10
|
+
span?: number | "full";
|
|
11
|
+
rowSpan?: number;
|
|
12
|
+
hidden?: boolean;
|
|
13
|
+
labelWidth?: number | string;
|
|
14
|
+
align?: HysDescriptionAlign;
|
|
15
|
+
labelAlign?: HysDescriptionAlign;
|
|
16
|
+
labelClass?: string;
|
|
17
|
+
contentClass?: string;
|
|
18
|
+
labelStyle?: CSSProperties;
|
|
19
|
+
contentStyle?: CSSProperties;
|
|
20
|
+
format?: (value: HysDescriptionValue, item: HysDescriptionItem) => HysDescriptionValue;
|
|
21
|
+
}
|
|
22
|
+
export interface HysDescriptionsProps {
|
|
23
|
+
items?: readonly HysDescriptionItem[];
|
|
24
|
+
title?: string;
|
|
25
|
+
extra?: string;
|
|
26
|
+
columns?: HysDescriptionsColumns;
|
|
27
|
+
layout?: "horizontal" | "vertical";
|
|
28
|
+
size?: "sm" | "md" | "lg";
|
|
29
|
+
bordered?: boolean;
|
|
30
|
+
colon?: boolean;
|
|
31
|
+
labelWidth?: number | string;
|
|
32
|
+
labelAlign?: HysDescriptionAlign;
|
|
33
|
+
align?: HysDescriptionAlign;
|
|
34
|
+
labelStyle?: CSSProperties;
|
|
35
|
+
contentStyle?: CSSProperties;
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
emptyText?: string;
|
|
38
|
+
ariaLabel?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface HysDescriptionContext {
|
|
41
|
+
item: HysDescriptionItem;
|
|
42
|
+
index: number;
|
|
43
|
+
value: HysDescriptionValue;
|
|
44
|
+
text: string;
|
|
45
|
+
}
|
|
46
|
+
export interface HysDescriptionsSlots {
|
|
47
|
+
title?: () => VNodeChild;
|
|
48
|
+
extra?: () => VNodeChild;
|
|
49
|
+
label?: (context: HysDescriptionContext) => VNodeChild;
|
|
50
|
+
value?: (context: HysDescriptionContext) => VNodeChild;
|
|
51
|
+
empty?: () => VNodeChild;
|
|
52
|
+
[name: `label-${string}`]: ((context: HysDescriptionContext) => VNodeChild) | undefined;
|
|
53
|
+
[name: `value-${string}`]: ((context: HysDescriptionContext) => VNodeChild) | undefined;
|
|
54
|
+
}
|
|
@@ -120,11 +120,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
120
120
|
preserve: boolean;
|
|
121
121
|
columns: HysFormGridValue;
|
|
122
122
|
gap: string | number;
|
|
123
|
+
labelWidth: string | number;
|
|
123
124
|
rules: HysFormRules;
|
|
124
125
|
validateOnRuleChange: boolean;
|
|
125
126
|
validateTrigger: HysFormTrigger | HysFormTrigger[];
|
|
126
127
|
labelPosition: "left" | "right" | "top";
|
|
127
|
-
labelWidth: string | number;
|
|
128
128
|
labelWrap: boolean;
|
|
129
129
|
labelSuffix: string;
|
|
130
130
|
showLabel: boolean;
|
|
@@ -113,8 +113,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
113
113
|
required: boolean;
|
|
114
114
|
group: boolean;
|
|
115
115
|
preserve: boolean;
|
|
116
|
-
labelWrap: boolean;
|
|
117
116
|
colon: boolean;
|
|
117
|
+
labelWrap: boolean;
|
|
118
118
|
showLabel: boolean;
|
|
119
119
|
showFeedback: boolean;
|
|
120
120
|
showRequiredMark: boolean;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { type VNodeChild } from "vue";
|
|
2
|
+
import type { HysIconContext, HysIconProps, HysIconReference, HysIconSource } from "./iconTypes";
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
default?: (context: HysIconContext) => VNodeChild;
|
|
5
|
+
icon?: (context: HysIconContext) => VNodeChild;
|
|
6
|
+
loading?: (context: HysIconContext) => VNodeChild;
|
|
7
|
+
fallback?: (context: HysIconContext) => VNodeChild;
|
|
8
|
+
badge?: (context: HysIconContext) => VNodeChild;
|
|
9
|
+
};
|
|
10
|
+
declare function play(): void;
|
|
11
|
+
declare function select(value: string): void;
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<HysIconProps, {
|
|
13
|
+
element: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
14
|
+
focus: () => void | undefined;
|
|
15
|
+
select: typeof select;
|
|
16
|
+
reload: () => void;
|
|
17
|
+
preload: (names: readonly string[]) => Promise<PromiseSettledResult<HysIconSource>[]>;
|
|
18
|
+
play: typeof play;
|
|
19
|
+
restart: typeof play;
|
|
20
|
+
pause: () => void;
|
|
21
|
+
resume: () => void;
|
|
22
|
+
stop: () => void;
|
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
change: (context: HysIconContext) => any;
|
|
25
|
+
click: (event: MouseEvent) => any;
|
|
26
|
+
keydown: (event: KeyboardEvent) => any;
|
|
27
|
+
blur: (event: FocusEvent) => any;
|
|
28
|
+
dblclick: (event: MouseEvent) => any;
|
|
29
|
+
error: (error: unknown, context: HysIconContext) => any;
|
|
30
|
+
focus: (event: FocusEvent) => any;
|
|
31
|
+
load: (context: HysIconContext, event?: Event | undefined) => any;
|
|
32
|
+
mouseenter: (event: MouseEvent) => any;
|
|
33
|
+
mouseleave: (event: MouseEvent) => any;
|
|
34
|
+
"update:name": (name: string) => any;
|
|
35
|
+
"update:selected": (selected: boolean) => any;
|
|
36
|
+
statusChange: (status: string, previous: string) => any;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<HysIconProps> & Readonly<{
|
|
38
|
+
onChange?: ((context: HysIconContext) => any) | undefined;
|
|
39
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
40
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
41
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
42
|
+
onDblclick?: ((event: MouseEvent) => any) | undefined;
|
|
43
|
+
onError?: ((error: unknown, context: HysIconContext) => any) | undefined;
|
|
44
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
45
|
+
onLoad?: ((context: HysIconContext, event?: Event | undefined) => any) | undefined;
|
|
46
|
+
onMouseenter?: ((event: MouseEvent) => any) | undefined;
|
|
47
|
+
onMouseleave?: ((event: MouseEvent) => any) | undefined;
|
|
48
|
+
"onUpdate:name"?: ((name: string) => any) | undefined;
|
|
49
|
+
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
50
|
+
onStatusChange?: ((status: string, previous: string) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
paused: boolean;
|
|
54
|
+
active: boolean;
|
|
55
|
+
readonly: boolean;
|
|
56
|
+
fallback: false | HysIconReference;
|
|
57
|
+
loadingIcon: false | HysIconReference;
|
|
58
|
+
selected: boolean;
|
|
59
|
+
picker: boolean;
|
|
60
|
+
directional: boolean;
|
|
61
|
+
badge: string | number | boolean;
|
|
62
|
+
flipX: boolean;
|
|
63
|
+
flipY: boolean;
|
|
64
|
+
animated: boolean;
|
|
65
|
+
decorative: boolean;
|
|
66
|
+
clickable: boolean;
|
|
67
|
+
allowUpload: boolean;
|
|
68
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
69
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
70
|
+
declare const _default: typeof __VLS_export;
|
|
71
|
+
export default _default;
|
|
72
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
73
|
+
new (): {
|
|
74
|
+
$slots: S;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type PropType, type VNode } from "vue";
|
|
2
|
+
import type { HysIconSource } from "../iconTypes";
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
source: {
|
|
7
|
+
type: PropType<HysIconSource>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
variant: StringConstructor;
|
|
11
|
+
fill: StringConstructor;
|
|
12
|
+
stroke: StringConstructor;
|
|
13
|
+
strokeWidth: NumberConstructor;
|
|
14
|
+
fit: StringConstructor;
|
|
15
|
+
gradient: PropType<readonly string[]>;
|
|
16
|
+
allowedOrigins: PropType<readonly string[]>;
|
|
17
|
+
morphTo: StringConstructor;
|
|
18
|
+
draw: BooleanConstructor;
|
|
19
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
load: (_event: Event) => true;
|
|
23
|
+
error: (_event: Event) => true;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
source: {
|
|
26
|
+
type: PropType<HysIconSource>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
variant: StringConstructor;
|
|
30
|
+
fill: StringConstructor;
|
|
31
|
+
stroke: StringConstructor;
|
|
32
|
+
strokeWidth: NumberConstructor;
|
|
33
|
+
fit: StringConstructor;
|
|
34
|
+
gradient: PropType<readonly string[]>;
|
|
35
|
+
allowedOrigins: PropType<readonly string[]>;
|
|
36
|
+
morphTo: StringConstructor;
|
|
37
|
+
draw: BooleanConstructor;
|
|
38
|
+
}>> & Readonly<{
|
|
39
|
+
onError?: ((_event: Event) => any) | undefined;
|
|
40
|
+
onLoad?: ((_event: Event) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
draw: boolean;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HysIconPickerLocale, HysIconRegistry } from "../iconTypes";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
name?: string;
|
|
4
|
+
registry: HysIconRegistry;
|
|
5
|
+
variant?: string;
|
|
6
|
+
allowUpload?: boolean;
|
|
7
|
+
storageKey?: string;
|
|
8
|
+
allowedOrigins?: readonly string[];
|
|
9
|
+
locale?: Partial<HysIconPickerLocale>;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
select: (name: string) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onSelect?: ((name: string) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HysIconReference, HysIconRegistry } from "../iconTypes";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
icon: HysIconReference;
|
|
4
|
+
registry: HysIconRegistry;
|
|
5
|
+
variant?: string;
|
|
6
|
+
allowedOrigins?: readonly string[];
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
text: StringConstructor;
|
|
5
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
text: StringConstructor;
|
|
11
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const accountIcons: {
|
|
2
|
+
users: import("../iconTypes").HysIconEntry;
|
|
3
|
+
"user-plus": import("../iconTypes").HysIconEntry;
|
|
4
|
+
"user-check": import("../iconTypes").HysIconEntry;
|
|
5
|
+
contact: import("../iconTypes").HysIconEntry;
|
|
6
|
+
"id-card": import("../iconTypes").HysIconEntry;
|
|
7
|
+
"badge-check": import("../iconTypes").HysIconEntry;
|
|
8
|
+
lock: import("../iconTypes").HysIconEntry;
|
|
9
|
+
"lock-open": import("../iconTypes").HysIconEntry;
|
|
10
|
+
"key-round": import("../iconTypes").HysIconEntry;
|
|
11
|
+
shield: import("../iconTypes").HysIconEntry;
|
|
12
|
+
"shield-check": import("../iconTypes").HysIconEntry;
|
|
13
|
+
"shield-alert": import("../iconTypes").HysIconEntry;
|
|
14
|
+
fingerprint: import("../iconTypes").HysIconEntry;
|
|
15
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const actionsIcons: {
|
|
2
|
+
pencil: import("../iconTypes").HysIconEntry;
|
|
3
|
+
"square-pen": import("../iconTypes").HysIconEntry;
|
|
4
|
+
"trash-2": import("../iconTypes").HysIconEntry;
|
|
5
|
+
save: import("../iconTypes").HysIconEntry;
|
|
6
|
+
clipboard: import("../iconTypes").HysIconEntry;
|
|
7
|
+
scissors: import("../iconTypes").HysIconEntry;
|
|
8
|
+
eye: import("../iconTypes").HysIconEntry;
|
|
9
|
+
"eye-off": import("../iconTypes").HysIconEntry;
|
|
10
|
+
filter: import("../iconTypes").HysIconEntry;
|
|
11
|
+
"list-filter": import("../iconTypes").HysIconEntry;
|
|
12
|
+
"undo-2": import("../iconTypes").HysIconEntry;
|
|
13
|
+
"redo-2": import("../iconTypes").HysIconEntry;
|
|
14
|
+
maximize: import("../iconTypes").HysIconEntry;
|
|
15
|
+
minimize: import("../iconTypes").HysIconEntry;
|
|
16
|
+
"zoom-in": import("../iconTypes").HysIconEntry;
|
|
17
|
+
"zoom-out": import("../iconTypes").HysIconEntry;
|
|
18
|
+
"grip-vertical": import("../iconTypes").HysIconEntry;
|
|
19
|
+
pin: import("../iconTypes").HysIconEntry;
|
|
20
|
+
};
|
|
21
|
+
export declare const statusIcons: {
|
|
22
|
+
"circle-x": import("../iconTypes").HysIconEntry;
|
|
23
|
+
"circle-dashed": import("../iconTypes").HysIconEntry;
|
|
24
|
+
"circle-dot": import("../iconTypes").HysIconEntry;
|
|
25
|
+
ban: import("../iconTypes").HysIconEntry;
|
|
26
|
+
"octagon-alert": import("../iconTypes").HysIconEntry;
|
|
27
|
+
triangle: import("../iconTypes").HysIconEntry;
|
|
28
|
+
sparkles: import("../iconTypes").HysIconEntry;
|
|
29
|
+
zap: import("../iconTypes").HysIconEntry;
|
|
30
|
+
};
|