hys-ui 0.1.0 → 0.2.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 +137 -1
- package/README.md +18 -6
- package/dist/components/HysAccordion/HysAccordion.vue.js +1 -1
- package/dist/components/HysAccordion/HysAccordion2.vue.js +181 -47
- package/dist/components/HysAlert/HysAlert.vue.js +14 -14
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +23 -20
- package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +7 -0
- package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +627 -0
- package/dist/components/HysAvatar/HysAvatar.vue.js +5 -35
- package/dist/components/HysAvatar/HysAvatar2.vue.js +221 -2
- package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +7 -0
- package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +252 -0
- package/dist/components/HysBadge/HysBadge.vue.js +2 -2
- package/dist/components/HysBadge/HysBadge2.vue.js +154 -26
- package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +5 -38
- package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +74 -2
- package/dist/components/HysButton/HysButton.vue.js +2 -2
- package/dist/components/HysButton/HysButton2.vue.js +29 -28
- package/dist/components/HysCalendar/HysCalendar.vue.js +5 -84
- package/dist/components/HysCalendar/HysCalendar2.vue.js +803 -2
- package/dist/components/HysCard/HysCard.vue.js +1 -1
- package/dist/components/HysCard/HysCard2.vue.js +177 -44
- package/dist/components/HysCascader/HysCascader.vue.js +5 -182
- package/dist/components/HysCascader/HysCascader2.vue.js +760 -2
- package/dist/components/HysCascader/HysCascaderColumn.vue.js +7 -0
- package/dist/components/HysCascader/HysCascaderColumn2.vue.js +232 -0
- package/dist/components/HysCheckbox/HysCheckbox.vue.js +5 -39
- package/dist/components/HysCheckbox/HysCheckbox2.vue.js +200 -2
- package/dist/components/HysCheckboxGroup/HysCheckboxGroup.vue.js +7 -0
- package/dist/components/HysCheckboxGroup/HysCheckboxGroup2.vue.js +237 -0
- package/dist/components/HysColorPicker/HysColorPicker.vue.js +2 -2
- package/dist/components/HysColorPicker/HysColorPicker2.vue.js +107 -106
- package/dist/components/HysCommandPalette/HysCommandPalette.vue.js +52 -51
- package/dist/components/HysCommentEditor/HysCommentEditor.vue.js +17 -17
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +397 -390
- package/dist/components/HysDatePicker/HysDatePicker.vue.js +268 -139
- package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +7 -0
- package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +807 -0
- package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +7 -0
- package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +357 -0
- package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +268 -158
- package/dist/components/HysDivider/HysDivider.vue.js +2 -2
- package/dist/components/HysDivider/HysDivider2.vue.js +33 -13
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +55 -54
- package/dist/components/HysFileManager/HysFileManager.vue.js +5 -63
- package/dist/components/HysFileManager/HysFileManager2.vue.js +86 -2
- package/dist/components/HysForm/HysForm.vue.js +3 -3
- package/dist/components/HysForm/HysForm2.vue.js +580 -92
- package/dist/components/HysFormItem/HysFormItem.vue.js +5 -69
- package/dist/components/HysFormItem/HysFormItem2.vue.js +521 -2
- package/dist/components/HysGantt/HysGantt.vue.js +5 -264
- package/dist/components/HysGantt/HysGantt2.vue.js +1399 -2
- package/dist/components/HysInput/HysInput.vue.js +2 -2
- package/dist/components/HysInput/HysInput2.vue.js +468 -120
- package/dist/components/HysMention/HysMention.vue.js +2 -2
- package/dist/components/HysMention/HysMention2.vue.js +89 -88
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +35 -35
- package/dist/components/HysNotificationCenter/HysNotificationCenter.vue.js +37 -36
- package/dist/components/HysNumberInput/HysNumberInput.vue.js +2 -2
- package/dist/components/HysNumberInput/HysNumberInput2.vue.js +561 -70
- package/dist/components/HysOrgTree/HysOrgTree.vue.js +41 -36
- package/dist/components/HysPagination/HysPagination.vue.js +2 -2
- package/dist/components/HysPagination/HysPagination2.vue.js +93 -91
- package/dist/components/HysPermissionMatrix/HysPermissionMatrix.vue.js +5 -41
- package/dist/components/HysPermissionMatrix/HysPermissionMatrix2.vue.js +101 -2
- package/dist/components/HysRadio/HysRadio.vue.js +7 -0
- package/dist/components/HysRadio/HysRadio2.vue.js +180 -0
- package/dist/components/HysRadioGroup/HysRadioGroup.vue.js +5 -40
- package/dist/components/HysRadioGroup/HysRadioGroup2.vue.js +205 -2
- package/dist/components/HysRating/HysRating.vue.js +1 -1
- package/dist/components/HysRating/HysRating2.vue.js +288 -68
- package/dist/components/HysResizablePanel/HysResizablePanel.vue.js +46 -28
- package/dist/components/HysRichTextEditor/HysRichTextEditor.vue.js +2 -2
- package/dist/components/HysRichTextEditor/HysRichTextEditor2.vue.js +87 -67
- package/dist/components/HysSearch/HysSearch.vue.js +50 -38
- package/dist/components/HysSegmented/HysSegmented.vue.js +5 -58
- package/dist/components/HysSegmented/HysSegmented2.vue.js +273 -2
- package/dist/components/HysSelect/HysSelect.vue.js +3 -2
- package/dist/components/HysSelect/HysSelect2.vue.js +859 -164
- package/dist/components/HysSkeleton/HysSkeleton.vue.js +2 -2
- package/dist/components/HysSkeleton/HysSkeleton2.vue.js +126 -29
- package/dist/components/HysSlider/HysSlider.vue.js +2 -2
- package/dist/components/HysSlider/HysSlider2.vue.js +532 -59
- package/dist/components/HysSlider/SliderTooltip.vue.js +7 -0
- package/dist/components/HysSlider/SliderTooltip2.vue.js +156 -0
- package/dist/components/HysSplitPane/HysSplitPane.vue.js +48 -42
- package/dist/components/HysSteps/HysSteps.vue.js +2 -2
- package/dist/components/HysSteps/HysSteps2.vue.js +111 -36
- package/dist/components/HysSwitch/HysSwitch.vue.js +2 -2
- package/dist/components/HysSwitch/HysSwitch2.vue.js +235 -42
- package/dist/components/HysTable/HysTable.vue.js +1 -1
- package/dist/components/HysTable/HysTable2.vue.js +1471 -82
- package/dist/components/HysTable/HysTableFilterOptions.vue.js +7 -0
- package/dist/components/HysTable/HysTableFilterOptions2.vue.js +133 -0
- package/dist/components/HysTabs/HysTabs.vue.js +2 -2
- package/dist/components/HysTabs/HysTabs2.vue.js +262 -66
- package/dist/components/HysTagInput/HysTagInput.vue.js +43 -42
- package/dist/components/HysTextarea/HysTextarea.vue.js +137 -66
- package/dist/components/HysToast/HysToast.vue.js +2 -2
- package/dist/components/HysToast/HysToast2.vue.js +121 -38
- package/dist/components/HysTour/HysTour.vue.js +47 -42
- package/dist/components/HysTransfer/HysTransfer.vue.js +5 -207
- package/dist/components/HysTransfer/HysTransfer2.vue.js +416 -2
- package/dist/components/HysTransfer/HysTransferPanel.vue.js +7 -0
- package/dist/components/HysTransfer/HysTransferPanel2.vue.js +454 -0
- package/dist/components/HysTree/HysTree.vue.js +2 -3
- package/dist/components/HysTree/HysTree2.vue.js +641 -301
- package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +5 -129
- package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +558 -2
- package/dist/components/HysTreeSelect/HysTreeSelectPanel.vue.js +7 -0
- package/dist/components/HysTreeSelect/HysTreeSelectPanel2.vue.js +323 -0
- package/dist/components/HysUpload/HysUpload.vue.js +2 -2
- package/dist/components/HysUpload/HysUpload2.vue.js +97 -78
- package/dist/composables/autocomplete.js +50 -0
- package/dist/composables/avatar.js +57 -0
- package/dist/composables/calendar.js +96 -0
- package/dist/composables/cascader.js +79 -0
- package/dist/composables/choice.js +38 -0
- package/dist/composables/choiceModel.js +67 -0
- package/dist/composables/datePicker.js +227 -0
- package/dist/composables/formContext.js +94 -3
- package/dist/composables/formLayout.js +57 -0
- package/dist/composables/formValidation.js +240 -0
- package/dist/composables/ganttConflicts.js +143 -0
- package/dist/composables/numberInput.js +91 -0
- package/dist/composables/rating.js +16 -0
- package/dist/composables/selectOptions.js +54 -0
- package/dist/composables/table.js +150 -0
- package/dist/composables/textInput.js +34 -0
- package/dist/composables/toastEscape.js +16 -0
- package/dist/composables/transfer.js +63 -0
- package/dist/composables/tree.js +118 -0
- package/dist/composables/treeSelect.js +71 -0
- package/dist/composables/useCascader.js +438 -0
- package/dist/composables/useDatePicker.js +425 -0
- package/dist/composables/useDialog.js +16 -16
- package/dist/composables/useFloating.js +98 -52
- package/dist/composables/useGanttDependencies.js +306 -0
- package/dist/composables/useGanttHistory.js +157 -0
- package/dist/composables/useGanttLabelResize.js +100 -0
- package/dist/composables/useHysToast.js +148 -0
- package/dist/composables/useTable.js +474 -0
- package/dist/composables/useTextareaSize.js +72 -0
- package/dist/composables/useTransfer.js +257 -0
- package/dist/composables/useTree.js +439 -0
- package/dist/composables/useTreeSelect.js +361 -0
- package/dist/config.js +18 -15
- package/dist/index.js +149 -136
- package/dist/style.css +1 -1
- package/dist/types/components/HysAccordion/HysAccordion.vue.d.ts +61 -22
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +201 -0
- package/dist/types/components/HysAvatar/HysAvatar.vue.d.ts +28 -15
- package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +99 -0
- package/dist/types/components/HysBadge/HysBadge.vue.d.ts +41 -4
- package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +38 -10
- package/dist/types/components/HysButton/HysButton.vue.d.ts +0 -1
- package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +119 -29
- package/dist/types/components/HysCard/HysCard.vue.d.ts +57 -5
- package/dist/types/components/HysCascader/HysCascader.vue.d.ts +129 -41
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +55 -0
- package/dist/types/components/HysCheckbox/HysCheckbox.vue.d.ts +55 -27
- package/dist/types/components/HysCheckboxGroup/HysCheckboxGroup.vue.d.ts +73 -0
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +1 -1
- package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +66 -14
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +90 -0
- package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +93 -0
- package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +66 -14
- package/dist/types/components/HysDivider/HysDivider.vue.d.ts +8 -3
- package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +1 -0
- package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +8 -4
- package/dist/types/components/HysForm/HysForm.vue.d.ts +110 -18
- package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +108 -2
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +88 -4
- package/dist/types/components/HysInput/HysInput.vue.d.ts +52 -29
- package/dist/types/components/HysMention/HysMention.vue.d.ts +2 -2
- package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +93 -33
- package/dist/types/components/HysOrgTree/HysOrgTree.vue.d.ts +4 -1
- package/dist/types/components/HysPagination/HysPagination.vue.d.ts +1 -1
- package/dist/types/components/HysPermissionMatrix/HysPermissionMatrix.vue.d.ts +8 -1
- package/dist/types/components/HysPopover/HysPopover.vue.d.ts +3 -3
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
- package/dist/types/components/HysRadio/HysRadio.vue.d.ts +56 -0
- package/dist/types/components/HysRadioGroup/HysRadioGroup.vue.d.ts +62 -17
- package/dist/types/components/HysRating/HysRating.vue.d.ts +85 -5
- package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +6 -0
- package/dist/types/components/HysRichTextEditor/HysRichTextEditor.vue.d.ts +4 -4
- package/dist/types/components/HysSearch/HysSearch.vue.d.ts +2 -2
- package/dist/types/components/HysSegmented/HysSegmented.vue.d.ts +64 -32
- package/dist/types/components/HysSelect/HysSelect.vue.d.ts +120 -14
- package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +30 -2
- package/dist/types/components/HysSlider/HysSlider.vue.d.ts +66 -9
- package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +22 -0
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +6 -0
- package/dist/types/components/HysSteps/HysSteps.vue.d.ts +65 -9
- package/dist/types/components/HysSwitch/HysSwitch.vue.d.ts +76 -17
- package/dist/types/components/HysTable/HysTable.vue.d.ts +206 -32
- package/dist/types/components/HysTable/HysTableFilterOptions.vue.d.ts +18 -0
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +76 -23
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +5 -5
- package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +44 -27
- package/dist/types/components/HysToast/HysToast.vue.d.ts +55 -7
- package/dist/types/components/HysTour/HysTour.vue.d.ts +5 -3
- package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +55 -30
- package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +105 -0
- package/dist/types/components/HysTree/HysTree.vue.d.ts +140 -73
- package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +102 -23
- package/dist/types/components/HysTreeSelect/HysTreeSelectPanel.vue.d.ts +56 -0
- package/dist/types/composables/autocomplete.d.ts +106 -0
- package/dist/types/composables/avatar.d.ts +70 -0
- package/dist/types/composables/calendar.d.ts +66 -0
- package/dist/types/composables/cascader.d.ts +192 -0
- package/dist/types/composables/choice.d.ts +110 -0
- package/dist/types/composables/choiceModel.d.ts +11 -0
- package/dist/types/composables/datePicker.d.ts +247 -0
- package/dist/types/composables/formContext.d.ts +138 -8
- package/dist/types/composables/formLayout.d.ts +11 -0
- package/dist/types/composables/formValidation.d.ts +13 -0
- package/dist/types/composables/gantt.d.ts +68 -0
- package/dist/types/composables/ganttConflicts.d.ts +30 -0
- package/dist/types/composables/numberInput.d.ts +45 -0
- package/dist/types/composables/rating.d.ts +18 -0
- package/dist/types/composables/segmented.d.ts +15 -0
- package/dist/types/composables/selectOptions.d.ts +44 -0
- package/dist/types/composables/slider.d.ts +21 -0
- package/dist/types/composables/table.d.ts +309 -0
- package/dist/types/composables/textInput.d.ts +76 -0
- package/dist/types/composables/toastEscape.d.ts +1 -0
- package/dist/types/composables/transfer.d.ts +180 -0
- package/dist/types/composables/tree.d.ts +237 -0
- package/dist/types/composables/treeSelect.d.ts +167 -0
- package/dist/types/composables/useCascader.d.ts +162 -0
- package/dist/types/composables/useDatePicker.d.ts +79 -0
- package/dist/types/composables/useFloating.d.ts +8 -5
- package/dist/types/composables/useGanttDependencies.d.ts +83 -0
- package/dist/types/composables/useGanttHistory.d.ts +42 -0
- package/dist/types/composables/useGanttLabelResize.d.ts +23 -0
- package/dist/types/composables/useHysToast.d.ts +50 -0
- package/dist/types/composables/useTable.d.ts +60 -0
- package/dist/types/composables/useTextareaSize.d.ts +3 -0
- package/dist/types/composables/useTransfer.d.ts +58 -0
- package/dist/types/composables/useTree.d.ts +77 -0
- package/dist/types/composables/useTreeSelect.d.ts +117 -0
- package/dist/types/index.d.ts +38 -7
- package/package.json +47 -11
|
@@ -1,17 +1,69 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { type HysDatePickerProps, type HysDatePickerValue, type HysDatePickerChange, type HysDateScalar, type HysDatePickerView, type HysDatePickerSlots } from "../../composables/datePicker";
|
|
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
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<HysDatePickerProps<V> & {
|
|
4
|
+
onChange?: ((value: V, info: HysDatePickerChange) => any) | undefined;
|
|
5
|
+
"onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
6
|
+
onClear?: (() => any) | undefined;
|
|
7
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
8
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
9
|
+
onInvalid?: ((info: {
|
|
10
|
+
reason: string;
|
|
11
|
+
dates?: readonly (Date | null)[];
|
|
12
|
+
error?: unknown;
|
|
13
|
+
}) => any) | undefined;
|
|
14
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
"onUpdate:mode"?: ((value: HysDatePickerView) => any) | undefined;
|
|
16
|
+
onPanelChange?: ((date: Date, view: HysDatePickerView, context: {
|
|
17
|
+
index: number;
|
|
18
|
+
}) => any) | undefined;
|
|
19
|
+
"onValue-change"?: ((value: V, info: HysDatePickerChange) => any) | undefined;
|
|
20
|
+
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
21
|
+
"onUpdate:panelValue"?: ((value: HysDateScalar) => any) | undefined;
|
|
22
|
+
onCalendarChange?: ((value: HysDatePickerValue, context: {
|
|
23
|
+
range: "start" | "end";
|
|
24
|
+
dates: readonly (Date | null)[];
|
|
25
|
+
}) => any) | undefined;
|
|
26
|
+
onOk?: ((value: V) => any) | undefined;
|
|
27
|
+
}> & (typeof globalThis extends {
|
|
28
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
29
|
+
} ? P : {});
|
|
30
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
31
|
+
element: import("vue").ComputedRef<HTMLElement | undefined>;
|
|
32
|
+
open: import("vue").ComputedRef<boolean>;
|
|
33
|
+
value: import("vue").ComputedRef<V | undefined>;
|
|
34
|
+
draft: import("vue").ComputedRef<readonly (Date | null)[]>;
|
|
35
|
+
focus: () => void | undefined;
|
|
36
|
+
blur: () => void | undefined;
|
|
37
|
+
show: () => Promise<boolean>;
|
|
38
|
+
hide: (restore?: boolean) => void | undefined;
|
|
39
|
+
handleOpen: () => Promise<boolean>;
|
|
40
|
+
handleClose: () => void | undefined;
|
|
41
|
+
clear: () => Promise<boolean>;
|
|
42
|
+
setValue: (value: V) => Promise<boolean>;
|
|
43
|
+
confirm: () => Promise<boolean>;
|
|
44
|
+
cancel: () => void | undefined;
|
|
45
|
+
showMonth: (value: HysDateScalar) => Promise<boolean>;
|
|
46
|
+
setMode: (view: HysDatePickerView) => boolean;
|
|
47
|
+
}>) => void;
|
|
48
|
+
attrs: any;
|
|
49
|
+
slots: HysDatePickerSlots;
|
|
50
|
+
emit: ((evt: "change", value: V, info: HysDatePickerChange) => void) & ((evt: "update:modelValue", value: V) => void) & ((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", info: {
|
|
51
|
+
reason: string;
|
|
52
|
+
dates?: readonly (Date | null)[];
|
|
53
|
+
error?: unknown;
|
|
54
|
+
}) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:mode", value: HysDatePickerView) => void) & ((evt: "panelChange", date: Date, view: HysDatePickerView, context: {
|
|
55
|
+
index: number;
|
|
56
|
+
}) => void) & ((evt: "value-change", value: V, info: HysDatePickerChange) => 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);
|
|
60
|
+
}>) => import("vue").VNode & {
|
|
61
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
10
62
|
};
|
|
11
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
"update:modelValue": (value: string) => any;
|
|
13
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
63
|
declare const _default: typeof __VLS_export;
|
|
17
64
|
export default _default;
|
|
65
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
66
|
+
[K in keyof T]: T[K];
|
|
67
|
+
} : {
|
|
68
|
+
[K in keyof T as K]: T[K];
|
|
69
|
+
}) & {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { type HysDatePickerProps, type HysDatePickerValue, type HysDatePickerSlots, type HysDatePickerView } from "../../composables/datePicker";
|
|
2
|
+
type __VLS_Props = HysDatePickerProps & {
|
|
3
|
+
range?: boolean;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Slots = HysDatePickerSlots;
|
|
6
|
+
declare function focusTrigger(): void;
|
|
7
|
+
declare function hide(restore?: boolean): void;
|
|
8
|
+
declare function cancel(): void;
|
|
9
|
+
declare function clear(): Promise<boolean>;
|
|
10
|
+
declare function confirm(): Promise<boolean>;
|
|
11
|
+
declare function showMonth(value: unknown): Promise<boolean>;
|
|
12
|
+
declare function setValue(value: HysDatePickerValue): Promise<boolean>;
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
14
|
+
element: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
15
|
+
open: import("vue").ComputedRef<boolean>;
|
|
16
|
+
value: import("vue").ComputedRef<HysDatePickerValue>;
|
|
17
|
+
draft: import("vue").ComputedRef<(Date | null)[]>;
|
|
18
|
+
focus: typeof focusTrigger;
|
|
19
|
+
blur: () => void;
|
|
20
|
+
show: () => Promise<boolean>;
|
|
21
|
+
hide: typeof hide;
|
|
22
|
+
handleOpen: () => Promise<boolean>;
|
|
23
|
+
handleClose: typeof hide;
|
|
24
|
+
clear: typeof clear;
|
|
25
|
+
setValue: typeof setValue;
|
|
26
|
+
confirm: typeof confirm;
|
|
27
|
+
cancel: typeof cancel;
|
|
28
|
+
showMonth: typeof showMonth;
|
|
29
|
+
setMode: (mode: HysDatePickerView) => boolean;
|
|
30
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
change: (...args: any[]) => void;
|
|
32
|
+
"update:modelValue": (...args: any[]) => void;
|
|
33
|
+
clear: (...args: any[]) => void;
|
|
34
|
+
blur: (...args: any[]) => void;
|
|
35
|
+
focus: (...args: any[]) => void;
|
|
36
|
+
invalid: (...args: any[]) => void;
|
|
37
|
+
"update:open": (...args: any[]) => void;
|
|
38
|
+
"update:mode": (...args: any[]) => void;
|
|
39
|
+
panelChange: (...args: any[]) => void;
|
|
40
|
+
"value-change": (...args: any[]) => void;
|
|
41
|
+
"visible-change": (...args: any[]) => void;
|
|
42
|
+
"update:panelValue": (...args: any[]) => void;
|
|
43
|
+
calendarChange: (...args: any[]) => void;
|
|
44
|
+
ok: (...args: any[]) => void;
|
|
45
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
46
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
onInvalid?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
53
|
+
"onUpdate:mode"?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
onPanelChange?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
"onValue-change"?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
"onUpdate:panelValue"?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
onCalendarChange?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onOk?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
}>, {
|
|
61
|
+
bordered: boolean;
|
|
62
|
+
type: import("../../index.js").HysDatePickerType;
|
|
63
|
+
clearable: boolean;
|
|
64
|
+
open: boolean;
|
|
65
|
+
appendTo: string | false | HTMLElement;
|
|
66
|
+
showToday: boolean;
|
|
67
|
+
firstDayOfWeek: number;
|
|
68
|
+
locale: string;
|
|
69
|
+
showAdjacentDays: boolean;
|
|
70
|
+
showFooter: boolean;
|
|
71
|
+
validateEvent: boolean;
|
|
72
|
+
editable: boolean;
|
|
73
|
+
showNow: boolean;
|
|
74
|
+
showConfirm: boolean;
|
|
75
|
+
hourStep: number;
|
|
76
|
+
minuteStep: number;
|
|
77
|
+
secondStep: number;
|
|
78
|
+
showSeconds: boolean;
|
|
79
|
+
rangeSeparator: string;
|
|
80
|
+
singlePanel: boolean;
|
|
81
|
+
rangeValidation: "endpoints" | "continuous";
|
|
82
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
83
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
84
|
+
declare const _default: typeof __VLS_export;
|
|
85
|
+
export default _default;
|
|
86
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
87
|
+
new (): {
|
|
88
|
+
$slots: S;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { type HysDatePoint, type HysDatePickerCell, type HysDatePickerView, type HysDatePickerUnit, type HysDatePickerLocale, type HysDatePickerWeek } from "../../composables/datePicker";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
month: number;
|
|
4
|
+
view: HysDatePickerView;
|
|
5
|
+
unit: HysDatePickerUnit;
|
|
6
|
+
selected: readonly (HysDatePoint | null)[];
|
|
7
|
+
range: boolean;
|
|
8
|
+
preview?: number;
|
|
9
|
+
first: number;
|
|
10
|
+
weekContains: number;
|
|
11
|
+
weekNumberFormatter?: (week: HysDatePickerWeek) => string;
|
|
12
|
+
locale: string;
|
|
13
|
+
words: HysDatePickerLocale;
|
|
14
|
+
weekNumbers: boolean;
|
|
15
|
+
adjacent: boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
available: (day: number) => boolean;
|
|
18
|
+
periodAvailable: (start: number, end: number) => boolean;
|
|
19
|
+
cellClassName?: (cell: HysDatePickerCell) => string;
|
|
20
|
+
};
|
|
21
|
+
declare function focus(day?: number): Promise<void>;
|
|
22
|
+
declare const __VLS_template: () => {
|
|
23
|
+
__VLS_Slots: {
|
|
24
|
+
'prev-year'?: (props: {}) => any;
|
|
25
|
+
} & {
|
|
26
|
+
'prev-month'?: (props: {}) => any;
|
|
27
|
+
} & {
|
|
28
|
+
'next-month'?: (props: {}) => any;
|
|
29
|
+
} & {
|
|
30
|
+
'next-year'?: (props: {}) => any;
|
|
31
|
+
} & {
|
|
32
|
+
'week-number'?: (props: {
|
|
33
|
+
selected: boolean;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
year: number;
|
|
36
|
+
week: number;
|
|
37
|
+
start: string;
|
|
38
|
+
end: string;
|
|
39
|
+
dates: readonly string[];
|
|
40
|
+
}) => any;
|
|
41
|
+
} & {
|
|
42
|
+
'week-number'?: (props: {
|
|
43
|
+
selected: boolean;
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
year: number;
|
|
46
|
+
week: number;
|
|
47
|
+
start: string;
|
|
48
|
+
end: string;
|
|
49
|
+
dates: readonly string[];
|
|
50
|
+
}) => any;
|
|
51
|
+
} & {
|
|
52
|
+
cell?: (props: {
|
|
53
|
+
date: Date;
|
|
54
|
+
iso: string;
|
|
55
|
+
value: number;
|
|
56
|
+
end: number;
|
|
57
|
+
text: string;
|
|
58
|
+
type: HysDatePickerView;
|
|
59
|
+
outside: boolean;
|
|
60
|
+
disabled: boolean;
|
|
61
|
+
selected: boolean;
|
|
62
|
+
inRange: boolean;
|
|
63
|
+
today: boolean;
|
|
64
|
+
week: number;
|
|
65
|
+
weekYear: number;
|
|
66
|
+
weekStart: string;
|
|
67
|
+
weekEnd: string;
|
|
68
|
+
}) => any;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
72
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
73
|
+
focus: typeof focus;
|
|
74
|
+
element: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
75
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
76
|
+
mode: (view: HysDatePickerView) => any;
|
|
77
|
+
preview: (day: number | undefined) => any;
|
|
78
|
+
browse: (day: number) => any;
|
|
79
|
+
pick: (day: number) => any;
|
|
80
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
81
|
+
onMode?: ((view: HysDatePickerView) => any) | undefined;
|
|
82
|
+
onPreview?: ((day: number | undefined) => any) | undefined;
|
|
83
|
+
onBrowse?: ((day: number) => any) | undefined;
|
|
84
|
+
onPick?: ((day: number) => any) | undefined;
|
|
85
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
86
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
87
|
+
declare const _default: typeof __VLS_export;
|
|
88
|
+
export default _default;
|
|
89
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
90
|
+
new (): {
|
|
91
|
+
$slots: S;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
@@ -1,17 +1,69 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { type HysDateRangePickerProps, type HysDatePickerValue, type HysDatePickerChange, type HysDateScalar, type HysDatePickerView, type HysDatePickerSlots } from "../../composables/datePicker";
|
|
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
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<HysDateRangePickerProps<V> & {
|
|
4
|
+
onChange?: ((value: V, info: HysDatePickerChange) => any) | undefined;
|
|
5
|
+
"onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
6
|
+
onClear?: (() => any) | undefined;
|
|
7
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
8
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
9
|
+
onInvalid?: ((info: {
|
|
10
|
+
reason: string;
|
|
11
|
+
dates?: readonly (Date | null)[];
|
|
12
|
+
error?: unknown;
|
|
13
|
+
}) => any) | undefined;
|
|
14
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
"onUpdate:mode"?: ((value: HysDatePickerView) => any) | undefined;
|
|
16
|
+
onPanelChange?: ((date: Date, view: HysDatePickerView, context: {
|
|
17
|
+
index: number;
|
|
18
|
+
}) => any) | undefined;
|
|
19
|
+
"onValue-change"?: ((value: V, info: HysDatePickerChange) => any) | undefined;
|
|
20
|
+
"onVisible-change"?: ((value: boolean) => any) | undefined;
|
|
21
|
+
"onUpdate:panelValue"?: ((value: HysDateScalar) => any) | undefined;
|
|
22
|
+
onCalendarChange?: ((value: HysDatePickerValue, context: {
|
|
23
|
+
range: "start" | "end";
|
|
24
|
+
dates: readonly (Date | null)[];
|
|
25
|
+
}) => any) | undefined;
|
|
26
|
+
onOk?: ((value: V) => any) | undefined;
|
|
27
|
+
}> & (typeof globalThis extends {
|
|
28
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
29
|
+
} ? P : {});
|
|
30
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
31
|
+
element: import("vue").ComputedRef<HTMLElement | undefined>;
|
|
32
|
+
open: import("vue").ComputedRef<boolean>;
|
|
33
|
+
value: import("vue").ComputedRef<V | undefined>;
|
|
34
|
+
draft: import("vue").ComputedRef<readonly (Date | null)[]>;
|
|
35
|
+
focus: () => void | undefined;
|
|
36
|
+
blur: () => void | undefined;
|
|
37
|
+
show: () => Promise<boolean>;
|
|
38
|
+
hide: (restore?: boolean) => void | undefined;
|
|
39
|
+
handleOpen: () => Promise<boolean>;
|
|
40
|
+
handleClose: () => void | undefined;
|
|
41
|
+
clear: () => Promise<boolean>;
|
|
42
|
+
setValue: (value: V) => Promise<boolean>;
|
|
43
|
+
confirm: () => Promise<boolean>;
|
|
44
|
+
cancel: () => void | undefined;
|
|
45
|
+
showMonth: (value: HysDateScalar) => Promise<boolean>;
|
|
46
|
+
setMode: (view: HysDatePickerView) => boolean;
|
|
47
|
+
}>) => void;
|
|
48
|
+
attrs: any;
|
|
49
|
+
slots: HysDatePickerSlots;
|
|
50
|
+
emit: ((evt: "change", value: V, info: HysDatePickerChange) => void) & ((evt: "update:modelValue", value: V) => void) & ((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", info: {
|
|
51
|
+
reason: string;
|
|
52
|
+
dates?: readonly (Date | null)[];
|
|
53
|
+
error?: unknown;
|
|
54
|
+
}) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:mode", value: HysDatePickerView) => void) & ((evt: "panelChange", date: Date, view: HysDatePickerView, context: {
|
|
55
|
+
index: number;
|
|
56
|
+
}) => void) & ((evt: "value-change", value: V, info: HysDatePickerChange) => 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);
|
|
60
|
+
}>) => import("vue").VNode & {
|
|
61
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
10
62
|
};
|
|
11
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
"update:modelValue": (value: [string, string]) => any;
|
|
13
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
-
"onUpdate:modelValue"?: ((value: [string, string]) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
63
|
declare const _default: typeof __VLS_export;
|
|
17
64
|
export default _default;
|
|
65
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
66
|
+
[K in keyof T]: T[K];
|
|
67
|
+
} : {
|
|
68
|
+
[K in keyof T as K]: T[K];
|
|
69
|
+
}) & {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
label?: string;
|
|
3
|
-
direction?:
|
|
3
|
+
direction?: "horizontal" | "vertical";
|
|
4
4
|
dashed?: boolean;
|
|
5
|
-
orientation?:
|
|
5
|
+
orientation?: "left" | "center" | "right" | "start" | "end";
|
|
6
|
+
borderStyle?: "solid" | "dashed" | "dotted" | "double" | "none";
|
|
7
|
+
orientationMargin?: number | string;
|
|
8
|
+
plain?: boolean;
|
|
9
|
+
size?: "sm" | "md" | "lg";
|
|
6
10
|
};
|
|
7
11
|
declare const __VLS_template: () => {
|
|
8
12
|
__VLS_Slots: {
|
|
@@ -11,8 +15,9 @@ declare const __VLS_template: () => {
|
|
|
11
15
|
};
|
|
12
16
|
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
13
17
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
size: "sm" | "md" | "lg";
|
|
14
19
|
direction: "horizontal" | "vertical";
|
|
15
|
-
orientation: "center" | "
|
|
20
|
+
orientation: "left" | "right" | "center" | "end" | "start";
|
|
16
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -4,19 +4,23 @@ export interface ManagedFile {
|
|
|
4
4
|
size: number;
|
|
5
5
|
url?: string;
|
|
6
6
|
}
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
7
10
|
type __VLS_ModelProps = {
|
|
8
11
|
modelValue?: ManagedFile[];
|
|
9
12
|
};
|
|
10
|
-
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
15
|
"update:modelValue": (value: ManagedFile[]) => any;
|
|
16
|
+
download: (id: string) => any;
|
|
12
17
|
remove: (id: string) => any;
|
|
13
18
|
upload: (files: File[]) => any;
|
|
14
|
-
|
|
15
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
20
|
"onUpdate:modelValue"?: ((value: ManagedFile[]) => any) | undefined;
|
|
21
|
+
onDownload?: ((id: string) => any) | undefined;
|
|
17
22
|
onRemove?: ((id: string) => any) | undefined;
|
|
18
23
|
onUpload?: ((files: File[]) => any) | undefined;
|
|
19
|
-
onDownload?: ((id: string) => any) | undefined;
|
|
20
24
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
25
|
declare const _default: typeof __VLS_export;
|
|
22
26
|
export default _default;
|
|
@@ -1,48 +1,140 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type HysFormField, type HysFormFieldData, type HysFormFieldState, type HysFormMessages, type HysFormPath, type HysFormPaths, type HysFormRules, type HysFormTrigger, type HysFormValidateCallback, type HysFormValidationResult } from "../../composables/formContext";
|
|
2
|
+
import { type HysFormCol, type HysFormGridValue } from "../../composables/formLayout";
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
model?: Record<string, unknown>;
|
|
4
|
-
rules?:
|
|
5
|
-
validate?: (
|
|
5
|
+
rules?: HysFormRules;
|
|
6
|
+
validate?: (context: {
|
|
7
|
+
signal: AbortSignal;
|
|
8
|
+
}) => boolean | Promise<boolean>;
|
|
9
|
+
validateMessages?: HysFormMessages;
|
|
10
|
+
validateOnRuleChange?: boolean;
|
|
11
|
+
validateTrigger?: HysFormTrigger | HysFormTrigger[];
|
|
12
|
+
initialValues?: Record<string, unknown>;
|
|
6
13
|
loading?: boolean;
|
|
7
14
|
disabled?: boolean;
|
|
8
15
|
inline?: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
layout?: "horizontal" | "vertical" | "inline";
|
|
17
|
+
columns?: HysFormGridValue;
|
|
18
|
+
gap?: number | string;
|
|
19
|
+
size?: "sm" | "md" | "lg";
|
|
20
|
+
labelPosition?: "top" | "left" | "right";
|
|
21
|
+
labelWidth?: string | number;
|
|
22
|
+
labelAlign?: "left" | "right";
|
|
23
|
+
labelWrap?: boolean;
|
|
24
|
+
labelSuffix?: string;
|
|
25
|
+
colon?: boolean;
|
|
26
|
+
labelCol?: HysFormCol;
|
|
27
|
+
wrapperCol?: HysFormCol;
|
|
28
|
+
showLabel?: boolean;
|
|
29
|
+
showFeedback?: boolean;
|
|
30
|
+
showRequiredMark?: boolean;
|
|
31
|
+
requiredMarkPosition?: "left" | "right";
|
|
32
|
+
optionalMark?: string;
|
|
33
|
+
inlineFeedback?: boolean;
|
|
34
|
+
feedbackIcon?: boolean;
|
|
35
|
+
validateFirst?: boolean;
|
|
36
|
+
preserve?: boolean;
|
|
37
|
+
scrollToError?: boolean | ScrollIntoViewOptions;
|
|
38
|
+
focusOnError?: boolean;
|
|
11
39
|
};
|
|
12
|
-
declare function
|
|
13
|
-
declare function
|
|
14
|
-
declare function
|
|
15
|
-
declare function
|
|
40
|
+
declare function clearValidate(paths?: HysFormPaths): void;
|
|
41
|
+
declare function validateField(path: HysFormPath, triggerOrCallback?: HysFormTrigger | HysFormValidateCallback): Promise<boolean>;
|
|
42
|
+
declare function validateResult(paths?: HysFormPaths): Promise<HysFormValidationResult>;
|
|
43
|
+
declare function validate(pathsOrCallback?: HysFormPaths | HysFormValidateCallback, callback?: HysFormValidateCallback): Promise<boolean>;
|
|
44
|
+
declare function getFieldValue(path: HysFormPath): unknown;
|
|
45
|
+
declare function getFieldsValue(paths?: HysFormPaths): Record<string, unknown>;
|
|
46
|
+
declare function setFieldsValue(values: Record<string, unknown>): void;
|
|
47
|
+
declare function setFieldValue(path: HysFormPath, value: unknown): void;
|
|
48
|
+
declare function getFieldError(path: HysFormPath): string[];
|
|
49
|
+
declare function getFieldsError(paths?: HysFormPaths): {
|
|
50
|
+
name: string;
|
|
51
|
+
errors: string[];
|
|
52
|
+
warnings: string[];
|
|
53
|
+
}[];
|
|
54
|
+
declare function setFields(fields: readonly HysFormFieldData[]): void;
|
|
55
|
+
declare function setInitialValues(values: Record<string, unknown>): void;
|
|
56
|
+
declare function resetFields(paths?: HysFormPaths): void;
|
|
57
|
+
declare function captureInitialValues(paths?: HysFormPaths): void;
|
|
58
|
+
declare function scrollToField(path: HysFormPath, options?: ScrollIntoViewOptions): void;
|
|
59
|
+
declare function focusField(path: HysFormPath): void;
|
|
60
|
+
declare function submit(): Promise<HysFormValidationResult | undefined>;
|
|
16
61
|
declare const __VLS_template: () => {
|
|
17
62
|
__VLS_Slots: {
|
|
18
|
-
default?: (props: {
|
|
63
|
+
default?: (props: {
|
|
64
|
+
errors: Record<string, string>;
|
|
65
|
+
warnings: Record<string, string>;
|
|
66
|
+
validating: boolean;
|
|
67
|
+
}) => any;
|
|
19
68
|
} & {
|
|
20
69
|
actions?: (props: {
|
|
21
70
|
validating: boolean;
|
|
22
71
|
reset: typeof resetFields;
|
|
72
|
+
errors: Record<string, string>;
|
|
73
|
+
warnings: Record<string, string>;
|
|
23
74
|
}) => any;
|
|
24
75
|
};
|
|
25
76
|
};
|
|
26
77
|
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
27
78
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
28
79
|
validate: typeof validate;
|
|
80
|
+
validateFields: typeof validate;
|
|
81
|
+
validateResult: typeof validateResult;
|
|
29
82
|
validateField: typeof validateField;
|
|
30
83
|
clearValidate: typeof clearValidate;
|
|
31
84
|
resetFields: typeof resetFields;
|
|
85
|
+
captureInitialValues: typeof captureInitialValues;
|
|
86
|
+
setInitialValues: typeof setInitialValues;
|
|
87
|
+
scrollToField: typeof scrollToField;
|
|
88
|
+
focusField: typeof focusField;
|
|
89
|
+
getField: (path: HysFormPath) => HysFormField | undefined;
|
|
90
|
+
getFields: () => HysFormField[];
|
|
91
|
+
fields: import("vue").ShallowRef<HysFormField[], HysFormField[]>;
|
|
92
|
+
getFieldValue: typeof getFieldValue;
|
|
93
|
+
getFieldsValue: typeof getFieldsValue;
|
|
94
|
+
setFieldValue: typeof setFieldValue;
|
|
95
|
+
setFieldsValue: typeof setFieldsValue;
|
|
96
|
+
getFieldError: typeof getFieldError;
|
|
97
|
+
getFieldsError: typeof getFieldsError;
|
|
98
|
+
setFields: typeof setFields;
|
|
99
|
+
submit: typeof submit;
|
|
32
100
|
errors: import("vue").Ref<Record<string, string>, Record<string, string>>;
|
|
101
|
+
warnings: import("vue").Ref<Record<string, string>, Record<string, string>>;
|
|
102
|
+
errorMessages: import("vue").Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
103
|
+
warningMessages: import("vue").Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
104
|
+
states: import("vue").Ref<Record<string, HysFormFieldState>, Record<string, HysFormFieldState>>;
|
|
33
105
|
validating: import("vue").Ref<boolean, boolean>;
|
|
34
106
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
-
submit: () => any;
|
|
36
|
-
reset: () => any;
|
|
37
|
-
invalid: () => any;
|
|
107
|
+
submit: (values: Record<string, unknown>) => any;
|
|
108
|
+
reset: (names: string[]) => any;
|
|
109
|
+
invalid: (result: HysFormValidationResult) => any;
|
|
110
|
+
validate: (name: string, valid: boolean, message: string) => any;
|
|
111
|
+
validation: (result: HysFormValidationResult) => any;
|
|
38
112
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
39
|
-
onSubmit?: (() => any) | undefined;
|
|
40
|
-
onReset?: (() => any) | undefined;
|
|
41
|
-
onInvalid?: (() => any) | undefined;
|
|
113
|
+
onSubmit?: ((values: Record<string, unknown>) => any) | undefined;
|
|
114
|
+
onReset?: ((names: string[]) => any) | undefined;
|
|
115
|
+
onInvalid?: ((result: HysFormValidationResult) => any) | undefined;
|
|
116
|
+
onValidate?: ((name: string, valid: boolean, message: string) => any) | undefined;
|
|
117
|
+
onValidation?: ((result: HysFormValidationResult) => any) | undefined;
|
|
42
118
|
}>, {
|
|
43
|
-
|
|
119
|
+
size: "sm" | "md" | "lg";
|
|
120
|
+
preserve: boolean;
|
|
121
|
+
columns: HysFormGridValue;
|
|
122
|
+
gap: string | number;
|
|
123
|
+
rules: HysFormRules;
|
|
124
|
+
validateOnRuleChange: boolean;
|
|
125
|
+
validateTrigger: HysFormTrigger | HysFormTrigger[];
|
|
44
126
|
labelPosition: "left" | "right" | "top";
|
|
45
|
-
labelWidth: string;
|
|
127
|
+
labelWidth: string | number;
|
|
128
|
+
labelWrap: boolean;
|
|
129
|
+
labelSuffix: string;
|
|
130
|
+
showLabel: boolean;
|
|
131
|
+
showFeedback: boolean;
|
|
132
|
+
showRequiredMark: boolean;
|
|
133
|
+
requiredMarkPosition: "left" | "right";
|
|
134
|
+
optionalMark: string;
|
|
135
|
+
validateFirst: boolean;
|
|
136
|
+
scrollToError: boolean | ScrollIntoViewOptions;
|
|
137
|
+
focusOnError: boolean;
|
|
46
138
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
139
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
140
|
declare const _default: typeof __VLS_export;
|