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,22 +1,128 @@
|
|
|
1
|
+
import { type HysFormCol, type HysFormGridValue } from "../../composables/formLayout";
|
|
2
|
+
import { type HysFormPath, type HysFormRule, type HysFormStatus, type HysFormTrigger } from "../../composables/formContext";
|
|
1
3
|
type __VLS_Props = {
|
|
2
4
|
label?: string;
|
|
3
|
-
prop?:
|
|
5
|
+
prop?: HysFormPath;
|
|
6
|
+
rules?: HysFormRule | HysFormRule[];
|
|
7
|
+
dependencies?: HysFormPath[];
|
|
4
8
|
error?: string;
|
|
9
|
+
warning?: string;
|
|
10
|
+
status?: HysFormStatus;
|
|
5
11
|
required?: boolean;
|
|
12
|
+
showRequiredMark?: boolean;
|
|
13
|
+
requiredMarkPosition?: "left" | "right";
|
|
6
14
|
hint?: string;
|
|
7
15
|
for?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
size?: "sm" | "md" | "lg";
|
|
18
|
+
labelPosition?: "top" | "left" | "right";
|
|
19
|
+
labelWidth?: string | number;
|
|
20
|
+
labelAlign?: "left" | "right";
|
|
21
|
+
labelWrap?: boolean;
|
|
22
|
+
labelSuffix?: string;
|
|
23
|
+
colon?: boolean;
|
|
24
|
+
labelCol?: HysFormCol;
|
|
25
|
+
wrapperCol?: HysFormCol;
|
|
26
|
+
span?: HysFormGridValue;
|
|
27
|
+
optionalMark?: string;
|
|
28
|
+
tooltip?: string;
|
|
29
|
+
help?: string;
|
|
30
|
+
extra?: string;
|
|
31
|
+
showLabel?: boolean;
|
|
32
|
+
showFeedback?: boolean;
|
|
33
|
+
feedbackIcon?: boolean;
|
|
34
|
+
inlineFeedback?: boolean;
|
|
35
|
+
validateFirst?: boolean;
|
|
36
|
+
preserve?: boolean;
|
|
37
|
+
autoLink?: boolean;
|
|
38
|
+
group?: boolean;
|
|
39
|
+
noStyle?: boolean;
|
|
40
|
+
validateTrigger?: HysFormTrigger | HysFormTrigger[];
|
|
8
41
|
};
|
|
42
|
+
declare function validate(event?: HysFormTrigger): Promise<boolean>;
|
|
43
|
+
declare function focus(): void;
|
|
9
44
|
declare const __VLS_template: () => {
|
|
10
45
|
__VLS_Slots: {
|
|
46
|
+
label?: (props: {
|
|
47
|
+
required: boolean;
|
|
48
|
+
status: HysFormStatus;
|
|
49
|
+
}) => any;
|
|
50
|
+
} & {
|
|
51
|
+
tooltip?: (props: {}) => any;
|
|
52
|
+
} & {
|
|
11
53
|
default?: (props: {
|
|
12
54
|
id: string;
|
|
13
55
|
invalid: boolean;
|
|
14
56
|
error: string | undefined;
|
|
57
|
+
warning: string | undefined;
|
|
58
|
+
errors: string[];
|
|
59
|
+
warnings: string[];
|
|
60
|
+
status: HysFormStatus;
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
size: "sm" | "md" | "lg";
|
|
63
|
+
}) => any;
|
|
64
|
+
} & {
|
|
65
|
+
help?: (props: {
|
|
66
|
+
error: string | undefined;
|
|
67
|
+
warning: string | undefined;
|
|
68
|
+
errors: string[];
|
|
69
|
+
warnings: string[];
|
|
70
|
+
status: HysFormStatus;
|
|
71
|
+
}) => any;
|
|
72
|
+
} & {
|
|
73
|
+
feedback?: (props: {
|
|
74
|
+
error: string | undefined;
|
|
75
|
+
warning: string | undefined;
|
|
76
|
+
errors: string[];
|
|
77
|
+
warnings: string[];
|
|
78
|
+
status: HysFormStatus;
|
|
79
|
+
}) => any;
|
|
80
|
+
} & {
|
|
81
|
+
error?: (props: {
|
|
82
|
+
error: string;
|
|
83
|
+
errors: string[];
|
|
84
|
+
}) => any;
|
|
85
|
+
} & {
|
|
86
|
+
warning?: (props: {
|
|
87
|
+
warning: string;
|
|
88
|
+
warnings: string[];
|
|
89
|
+
}) => any;
|
|
90
|
+
} & {
|
|
91
|
+
hint?: (props: {}) => any;
|
|
92
|
+
} & {
|
|
93
|
+
extra?: (props: {
|
|
94
|
+
status: HysFormStatus;
|
|
15
95
|
}) => any;
|
|
16
96
|
};
|
|
17
97
|
};
|
|
18
98
|
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
19
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
99
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
100
|
+
validate: typeof validate;
|
|
101
|
+
clearValidate: () => void;
|
|
102
|
+
resetField: () => void;
|
|
103
|
+
setInitialValue: ((value: unknown) => void) | undefined;
|
|
104
|
+
focus: typeof focus;
|
|
105
|
+
path: import("vue").ComputedRef<string>;
|
|
106
|
+
status: import("vue").ComputedRef<HysFormStatus>;
|
|
107
|
+
error: import("vue").ComputedRef<string | undefined>;
|
|
108
|
+
warning: import("vue").ComputedRef<string | undefined>;
|
|
109
|
+
size: import("vue").ComputedRef<"sm" | "md" | "lg">;
|
|
110
|
+
validateMessage: import("vue").ComputedRef<string | undefined>;
|
|
111
|
+
validateState: import("vue").ComputedRef<HysFormStatus>;
|
|
112
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
113
|
+
required: boolean;
|
|
114
|
+
preserve: boolean;
|
|
115
|
+
group: boolean;
|
|
116
|
+
labelWrap: boolean;
|
|
117
|
+
colon: boolean;
|
|
118
|
+
showLabel: boolean;
|
|
119
|
+
showFeedback: boolean;
|
|
120
|
+
showRequiredMark: boolean;
|
|
121
|
+
inlineFeedback: boolean;
|
|
122
|
+
feedbackIcon: boolean;
|
|
123
|
+
validateFirst: boolean;
|
|
124
|
+
autoLink: boolean;
|
|
125
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
126
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
127
|
declare const _default: typeof __VLS_export;
|
|
22
128
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HysGanttScrollOptions, HysGanttDependencyChange, HysGanttDependencyInvalid, HysGanttDependencyMove, HysGanttHistoryEntry, HysGanttHistoryState, HysGanttHistoryInvalid, HysGanttConflict } from "../../composables/gantt";
|
|
1
2
|
export interface GanttItem {
|
|
2
3
|
id: string | number;
|
|
3
4
|
title: string;
|
|
@@ -10,7 +11,7 @@ export interface GanttItem {
|
|
|
10
11
|
color?: string;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
}
|
|
13
|
-
type Scale =
|
|
14
|
+
type Scale = "day" | "week" | "month";
|
|
14
15
|
type __VLS_Props = {
|
|
15
16
|
items: GanttItem[];
|
|
16
17
|
modelValue?: string | number | null;
|
|
@@ -18,22 +19,105 @@ type __VLS_Props = {
|
|
|
18
19
|
editable?: boolean;
|
|
19
20
|
rowHeight?: number;
|
|
20
21
|
labelWidth?: number;
|
|
22
|
+
labelResizable?: boolean;
|
|
23
|
+
minLabelWidth?: number;
|
|
24
|
+
maxLabelWidth?: number;
|
|
25
|
+
fitContainer?: boolean;
|
|
26
|
+
height?: number | string;
|
|
27
|
+
maxHeight?: number | string | false;
|
|
28
|
+
virtual?: boolean;
|
|
29
|
+
overscan?: number;
|
|
30
|
+
dependencyEditable?: boolean;
|
|
31
|
+
showDependencies?: boolean;
|
|
32
|
+
history?: boolean;
|
|
33
|
+
historyLimit?: number;
|
|
34
|
+
historyKeyboard?: boolean;
|
|
35
|
+
showHistoryControls?: boolean;
|
|
36
|
+
showConflicts?: boolean;
|
|
21
37
|
};
|
|
22
|
-
declare
|
|
23
|
-
|
|
38
|
+
declare function scrollToTask(id: string | number, options?: HysGanttScrollOptions): Promise<boolean>;
|
|
39
|
+
declare function scrollToTop(options?: Pick<HysGanttScrollOptions, "behavior">): void;
|
|
40
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
41
|
+
element: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
42
|
+
viewport: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
43
|
+
scrollToTask: typeof scrollToTask;
|
|
44
|
+
scrollToTop: typeof scrollToTop;
|
|
45
|
+
addDependency: (sourceId: string | number, targetId: string | number) => Promise<boolean>;
|
|
46
|
+
removeDependency: (sourceId: string | number, targetId: string | number) => Promise<boolean>;
|
|
47
|
+
moveDependency: (sourceId: string | number, previousTargetId: string | number, targetId: string | number) => Promise<boolean>;
|
|
48
|
+
cancelDependency: () => void;
|
|
49
|
+
undo: () => Promise<boolean>;
|
|
50
|
+
redo: () => Promise<boolean>;
|
|
51
|
+
clearHistory: () => void;
|
|
52
|
+
canUndo: import("vue").ComputedRef<boolean>;
|
|
53
|
+
canRedo: import("vue").ComputedRef<boolean>;
|
|
54
|
+
historyState: import("vue").ComputedRef<HysGanttHistoryState>;
|
|
55
|
+
conflicts: import("vue").ComputedRef<{
|
|
56
|
+
id: string;
|
|
57
|
+
type: import("../..").HysGanttConflictType;
|
|
58
|
+
taskId: string | number;
|
|
59
|
+
taskTitle: string;
|
|
60
|
+
sourceId?: string | number;
|
|
61
|
+
sourceTitle?: string;
|
|
62
|
+
message: string;
|
|
63
|
+
expectedStart?: string;
|
|
64
|
+
days?: number;
|
|
65
|
+
}[]>;
|
|
66
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
67
|
change: (item: GanttItem) => any;
|
|
68
|
+
"update:modelValue": (id: string | number | null) => any;
|
|
25
69
|
open: (item: GanttItem) => any;
|
|
70
|
+
undo: (entry: HysGanttHistoryEntry) => any;
|
|
71
|
+
redo: (entry: HysGanttHistoryEntry) => any;
|
|
72
|
+
"update:scale": (value: Scale) => any;
|
|
73
|
+
scaleChange: (value: Scale) => any;
|
|
26
74
|
"update:items": (items: GanttItem[]) => any;
|
|
75
|
+
dependencyAdd: (info: HysGanttDependencyChange, item: GanttItem) => any;
|
|
76
|
+
dependencyRemove: (info: HysGanttDependencyChange, item: GanttItem) => any;
|
|
77
|
+
dependencyInvalid: (info: HysGanttDependencyInvalid) => any;
|
|
78
|
+
dependencyMove: (info: HysGanttDependencyMove, item: GanttItem, previousItem: GanttItem) => any;
|
|
79
|
+
"update:labelWidth": (width: number) => any;
|
|
80
|
+
labelResize: (width: number) => any;
|
|
81
|
+
historyChange: (state: HysGanttHistoryState) => any;
|
|
82
|
+
historyInvalid: (info: HysGanttHistoryInvalid) => any;
|
|
83
|
+
conflictChange: (conflicts: HysGanttConflict[]) => any;
|
|
27
84
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
-
"onUpdate:modelValue"?: ((id: string | number | null) => any) | undefined;
|
|
29
85
|
onChange?: ((item: GanttItem) => any) | undefined;
|
|
86
|
+
"onUpdate:modelValue"?: ((id: string | number | null) => any) | undefined;
|
|
30
87
|
onOpen?: ((item: GanttItem) => any) | undefined;
|
|
88
|
+
onUndo?: ((entry: HysGanttHistoryEntry) => any) | undefined;
|
|
89
|
+
onRedo?: ((entry: HysGanttHistoryEntry) => any) | undefined;
|
|
90
|
+
"onUpdate:scale"?: ((value: Scale) => any) | undefined;
|
|
91
|
+
onScaleChange?: ((value: Scale) => any) | undefined;
|
|
31
92
|
"onUpdate:items"?: ((items: GanttItem[]) => any) | undefined;
|
|
93
|
+
onDependencyAdd?: ((info: HysGanttDependencyChange, item: GanttItem) => any) | undefined;
|
|
94
|
+
onDependencyRemove?: ((info: HysGanttDependencyChange, item: GanttItem) => any) | undefined;
|
|
95
|
+
onDependencyInvalid?: ((info: HysGanttDependencyInvalid) => any) | undefined;
|
|
96
|
+
onDependencyMove?: ((info: HysGanttDependencyMove, item: GanttItem, previousItem: GanttItem) => any) | undefined;
|
|
97
|
+
"onUpdate:labelWidth"?: ((width: number) => any) | undefined;
|
|
98
|
+
onLabelResize?: ((width: number) => any) | undefined;
|
|
99
|
+
onHistoryChange?: ((state: HysGanttHistoryState) => any) | undefined;
|
|
100
|
+
onHistoryInvalid?: ((info: HysGanttHistoryInvalid) => any) | undefined;
|
|
101
|
+
onConflictChange?: ((conflicts: HysGanttConflict[]) => any) | undefined;
|
|
32
102
|
}>, {
|
|
33
103
|
scale: Scale;
|
|
104
|
+
maxHeight: string | number | false;
|
|
105
|
+
virtual: boolean;
|
|
106
|
+
overscan: number;
|
|
34
107
|
editable: boolean;
|
|
35
108
|
labelWidth: number;
|
|
36
109
|
rowHeight: number;
|
|
110
|
+
labelResizable: boolean;
|
|
111
|
+
minLabelWidth: number;
|
|
112
|
+
maxLabelWidth: number;
|
|
113
|
+
fitContainer: boolean;
|
|
114
|
+
dependencyEditable: boolean;
|
|
115
|
+
showDependencies: boolean;
|
|
116
|
+
history: boolean;
|
|
117
|
+
historyLimit: number;
|
|
118
|
+
historyKeyboard: boolean;
|
|
119
|
+
showHistoryControls: boolean;
|
|
120
|
+
showConflicts: boolean;
|
|
37
121
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
122
|
declare const _default: typeof __VLS_export;
|
|
39
123
|
export default _default;
|
|
@@ -1,57 +1,80 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
placeholder?: string;
|
|
4
|
-
type?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
readonly?: boolean;
|
|
7
|
-
ariaLabel?: string;
|
|
8
|
-
error?: string;
|
|
9
|
-
clearable?: boolean;
|
|
10
|
-
showPassword?: boolean;
|
|
11
|
-
showCount?: boolean;
|
|
12
|
-
maxlength?: number;
|
|
13
|
-
minlength?: number;
|
|
14
|
-
autocomplete?: string;
|
|
15
|
-
name?: string;
|
|
16
|
-
size?: 'sm' | 'md' | 'lg';
|
|
17
|
-
};
|
|
1
|
+
import { type HysInputProps } from "../../composables/textInput";
|
|
2
|
+
declare function clear(): void;
|
|
18
3
|
declare const __VLS_template: () => {
|
|
19
4
|
__VLS_Slots: {
|
|
20
5
|
prepend?: (props: {}) => any;
|
|
21
6
|
} & {
|
|
22
7
|
prefix?: (props: {}) => any;
|
|
8
|
+
} & {
|
|
9
|
+
'clear-icon'?: (props: {}) => any;
|
|
10
|
+
} & {
|
|
11
|
+
'password-icon'?: (props: {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
}) => any;
|
|
23
14
|
} & {
|
|
24
15
|
suffix?: (props: {}) => any;
|
|
16
|
+
} & {
|
|
17
|
+
count?: (props: {
|
|
18
|
+
value: string;
|
|
19
|
+
count: number;
|
|
20
|
+
maxLength: number | undefined;
|
|
21
|
+
}) => any;
|
|
25
22
|
} & {
|
|
26
23
|
append?: (props: {}) => any;
|
|
24
|
+
} & {
|
|
25
|
+
count?: (props: {
|
|
26
|
+
value: string;
|
|
27
|
+
count: number;
|
|
28
|
+
maxLength: number | undefined;
|
|
29
|
+
}) => any;
|
|
27
30
|
};
|
|
28
31
|
};
|
|
29
32
|
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
30
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
31
|
-
input: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
32
|
-
|
|
33
|
+
declare const __VLS_base: import("vue").DefineComponent<HysInputProps, {
|
|
34
|
+
input: import("vue").Ref<HTMLInputElement | HTMLTextAreaElement | undefined, HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
35
|
+
textarea: import("vue").ComputedRef<HTMLTextAreaElement | undefined>;
|
|
36
|
+
isComposing: import("vue").Ref<boolean, boolean>;
|
|
37
|
+
focus: (options?: FocusOptions) => void;
|
|
33
38
|
blur: () => void | undefined;
|
|
34
39
|
select: () => void | undefined;
|
|
40
|
+
clear: typeof clear;
|
|
41
|
+
resize: () => Promise<void>;
|
|
42
|
+
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
|
|
43
|
+
scrollTo: (options: ScrollToOptions) => void | undefined;
|
|
35
44
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
-
"update:modelValue": (value: string) => any;
|
|
37
45
|
change: (value: string) => any;
|
|
38
|
-
|
|
46
|
+
"update:modelValue": (value: string) => any;
|
|
39
47
|
clear: () => any;
|
|
40
|
-
|
|
48
|
+
input: (value: string) => any;
|
|
41
49
|
blur: (event: FocusEvent) => any;
|
|
50
|
+
compositionend: (event: CompositionEvent) => any;
|
|
51
|
+
compositionstart: (event: CompositionEvent) => any;
|
|
52
|
+
compositionupdate: (event: CompositionEvent) => any;
|
|
53
|
+
focus: (event: FocusEvent) => any;
|
|
42
54
|
pressEnter: (event: KeyboardEvent) => any;
|
|
43
|
-
|
|
44
|
-
|
|
55
|
+
"update:passwordVisible": (value: boolean) => any;
|
|
56
|
+
passwordVisibleChange: (value: boolean) => any;
|
|
57
|
+
}, string, import("vue").PublicProps, Readonly<HysInputProps> & Readonly<{
|
|
45
58
|
onChange?: ((value: string) => any) | undefined;
|
|
46
|
-
|
|
59
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
47
60
|
onClear?: (() => any) | undefined;
|
|
48
|
-
|
|
61
|
+
onInput?: ((value: string) => any) | undefined;
|
|
49
62
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
63
|
+
onCompositionend?: ((event: CompositionEvent) => any) | undefined;
|
|
64
|
+
onCompositionstart?: ((event: CompositionEvent) => any) | undefined;
|
|
65
|
+
onCompositionupdate?: ((event: CompositionEvent) => any) | undefined;
|
|
66
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
50
67
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
68
|
+
"onUpdate:passwordVisible"?: ((value: boolean) => any) | undefined;
|
|
69
|
+
onPasswordVisibleChange?: ((value: boolean) => any) | undefined;
|
|
51
70
|
}>, {
|
|
52
|
-
|
|
71
|
+
bordered: boolean;
|
|
53
72
|
type: string;
|
|
54
|
-
|
|
73
|
+
resize: "none" | "both" | "horizontal" | "vertical";
|
|
74
|
+
showPasswordOn: "click" | "mousedown";
|
|
75
|
+
passwordVisible: boolean;
|
|
76
|
+
countPosition: "inside" | "outside";
|
|
77
|
+
rows: number;
|
|
55
78
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
79
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
57
80
|
declare const _default: typeof __VLS_export;
|
|
@@ -30,15 +30,15 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
30
30
|
focus: () => void | undefined;
|
|
31
31
|
blur: () => void | undefined;
|
|
32
32
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
-
"update:modelValue": (value: string) => any;
|
|
34
33
|
change: (value: string) => any;
|
|
34
|
+
"update:modelValue": (value: string) => any;
|
|
35
35
|
select: (user: {
|
|
36
36
|
id: string;
|
|
37
37
|
name: string;
|
|
38
38
|
}) => any;
|
|
39
39
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
40
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
41
40
|
onChange?: ((value: string) => any) | undefined;
|
|
41
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
42
42
|
onSelect?: ((user: {
|
|
43
43
|
id: string;
|
|
44
44
|
name: string;
|
|
@@ -1,36 +1,96 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { type HysNumberInputValue, type HysNumberInputFormatInfo, type HysNumberInputInvalidInfo, type HysNumberInputStepInfo } from "../../composables/numberInput";
|
|
2
|
+
declare const __VLS_export: <T extends HysNumberInputValue = number | null>(__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<{
|
|
4
|
+
modelValue?: T;
|
|
5
|
+
defaultValue?: T;
|
|
6
|
+
min?: number | string;
|
|
7
|
+
max?: number | string;
|
|
8
|
+
step?: number | string;
|
|
9
|
+
stepBase?: number | string;
|
|
10
|
+
precision?: number;
|
|
11
|
+
stepStrictly?: boolean;
|
|
12
|
+
stringMode?: boolean;
|
|
13
|
+
valueOnClear?: number | string | null;
|
|
14
|
+
clearable?: boolean;
|
|
15
|
+
updateOnInput?: boolean;
|
|
16
|
+
formatter?: (value: HysNumberInputValue, info: HysNumberInputFormatInfo) => string;
|
|
17
|
+
parser?: (input: string) => number | string | null | undefined;
|
|
18
|
+
decimalSeparator?: string;
|
|
19
|
+
validator?: (value: HysNumberInputValue) => boolean;
|
|
20
|
+
allowInput?: (input: string) => boolean;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
readonly?: boolean;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
ariaLabel?: string;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
name?: string;
|
|
27
|
+
error?: string;
|
|
28
|
+
status?: "error" | "warning" | "success";
|
|
29
|
+
showControls?: boolean;
|
|
30
|
+
controlsPosition?: "both" | "right";
|
|
31
|
+
selectOnFocus?: boolean;
|
|
32
|
+
keyboard?: boolean | Partial<Record<"ArrowUp" | "ArrowDown" | "Home" | "End" | "PageUp" | "PageDown", boolean>>;
|
|
33
|
+
wheel?: boolean;
|
|
34
|
+
repeat?: boolean;
|
|
35
|
+
repeatDelay?: number;
|
|
36
|
+
repeatInterval?: number;
|
|
37
|
+
size?: "sm" | "md" | "lg";
|
|
38
|
+
bordered?: boolean;
|
|
39
|
+
round?: boolean;
|
|
40
|
+
block?: boolean;
|
|
41
|
+
autofocus?: boolean;
|
|
42
|
+
align?: "left" | "center" | "right";
|
|
43
|
+
} & {
|
|
44
|
+
onChange?: ((value: T) => any) | undefined;
|
|
45
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
46
|
+
onClear?: (() => any) | undefined;
|
|
47
|
+
onInput?: ((value: T | null) => any) | undefined;
|
|
48
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
49
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
50
|
+
onInvalid?: ((info: HysNumberInputInvalidInfo) => any) | undefined;
|
|
51
|
+
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
52
|
+
onStep?: ((value: T, info: HysNumberInputStepInfo) => any) | undefined;
|
|
53
|
+
}> & (typeof globalThis extends {
|
|
54
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
55
|
+
} ? P : {});
|
|
56
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
57
|
+
input: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
58
|
+
focus: (options?: FocusOptions) => void;
|
|
59
|
+
blur: () => void | undefined;
|
|
60
|
+
select: () => void | undefined;
|
|
61
|
+
clear: () => void;
|
|
62
|
+
commit: (text?: string) => boolean;
|
|
63
|
+
increase: (multiplier?: number) => boolean;
|
|
64
|
+
decrease: (multiplier?: number) => boolean;
|
|
65
|
+
}>) => void;
|
|
66
|
+
attrs: any;
|
|
67
|
+
slots: {
|
|
68
|
+
prepend?: (props: {}) => any;
|
|
69
|
+
} & {
|
|
70
|
+
prefix?: (props: {}) => any;
|
|
71
|
+
} & {
|
|
72
|
+
suffix?: (props: {}) => any;
|
|
73
|
+
} & {
|
|
74
|
+
'clear-icon'?: (props: {}) => any;
|
|
75
|
+
} & {
|
|
76
|
+
'decrease-icon'?: (props: {}) => any;
|
|
77
|
+
} & {
|
|
78
|
+
'increase-icon'?: (props: {}) => any;
|
|
79
|
+
} & {
|
|
80
|
+
'increase-icon'?: (props: {}) => any;
|
|
81
|
+
} & {
|
|
82
|
+
'decrease-icon'?: (props: {}) => any;
|
|
83
|
+
} & {
|
|
84
|
+
append?: (props: {}) => any;
|
|
85
|
+
};
|
|
86
|
+
emit: ((evt: "change", value: T) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "clear") => void) & ((evt: "input", value: T | null) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", info: HysNumberInputInvalidInfo) => void) & ((evt: "pressEnter", event: KeyboardEvent) => void) & ((evt: "step", value: T, info: HysNumberInputStepInfo) => void);
|
|
87
|
+
}>) => import("vue").VNode & {
|
|
88
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
14
89
|
};
|
|
15
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
16
|
-
focus: () => void | undefined;
|
|
17
|
-
blur: () => void | undefined;
|
|
18
|
-
select: () => void | undefined;
|
|
19
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
-
"update:modelValue": (value: number) => any;
|
|
21
|
-
change: (value: number) => any;
|
|
22
|
-
focus: (event: FocusEvent) => any;
|
|
23
|
-
blur: (event: FocusEvent) => any;
|
|
24
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
26
|
-
onChange?: ((value: number) => any) | undefined;
|
|
27
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
28
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
29
|
-
}>, {
|
|
30
|
-
size: "sm" | "md" | "lg";
|
|
31
|
-
step: number;
|
|
32
|
-
showControls: boolean;
|
|
33
|
-
selectOnFocus: boolean;
|
|
34
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
90
|
declare const _default: typeof __VLS_export;
|
|
36
91
|
export default _default;
|
|
92
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
93
|
+
[K in keyof T]: T[K];
|
|
94
|
+
} : {
|
|
95
|
+
[K in keyof T as K]: T[K];
|
|
96
|
+
}) & {};
|
|
@@ -10,6 +10,7 @@ type __VLS_Props = {
|
|
|
10
10
|
searchable?: boolean;
|
|
11
11
|
checkable?: boolean;
|
|
12
12
|
checkedKeys?: string[];
|
|
13
|
+
disabled?: boolean;
|
|
13
14
|
};
|
|
14
15
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
16
|
"update:modelValue": (id: string) => any;
|
|
@@ -17,6 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
17
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
19
|
"onUpdate:modelValue"?: ((id: string) => any) | undefined;
|
|
19
20
|
"onUpdate:checkedKeys"?: ((keys: string[]) => any) | undefined;
|
|
20
|
-
}>, {
|
|
21
|
+
}>, {
|
|
22
|
+
searchable: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
24
|
declare const _default: typeof __VLS_export;
|
|
22
25
|
export default _default;
|
|
@@ -33,13 +33,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
33
33
|
"onUpdate:pageSize"?: ((size: number) => any) | undefined;
|
|
34
34
|
}>, {
|
|
35
35
|
disabled: boolean;
|
|
36
|
+
compact: boolean;
|
|
36
37
|
loading: boolean;
|
|
37
38
|
pageSize: number;
|
|
38
39
|
siblingCount: number;
|
|
39
40
|
showSizeChanger: boolean;
|
|
40
41
|
showQuickJumper: boolean;
|
|
41
42
|
showTotal: boolean;
|
|
42
|
-
compact: boolean;
|
|
43
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
45
45
|
export default _default;
|
|
@@ -2,11 +2,18 @@ type __VLS_Props = {
|
|
|
2
2
|
roles: string[];
|
|
3
3
|
resources: string[];
|
|
4
4
|
modelValue: Record<string, boolean>;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
showSelectAll?: boolean;
|
|
5
8
|
};
|
|
6
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
change: (value: Record<string, boolean>) => any;
|
|
7
11
|
"update:modelValue": (value: Record<string, boolean>) => any;
|
|
8
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onChange?: ((value: Record<string, boolean>) => any) | undefined;
|
|
9
14
|
"onUpdate:modelValue"?: ((value: Record<string, boolean>) => any) | undefined;
|
|
10
|
-
}>, {
|
|
15
|
+
}>, {
|
|
16
|
+
showSelectAll: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
18
|
declare const _default: typeof __VLS_export;
|
|
12
19
|
export default _default;
|
|
@@ -21,14 +21,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
21
21
|
show: () => void;
|
|
22
22
|
hide: () => void;
|
|
23
23
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
-
visibleChange: (value: boolean) => any;
|
|
25
24
|
"update:open": (value: boolean) => any;
|
|
25
|
+
visibleChange: (value: boolean) => any;
|
|
26
26
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
-
onVisibleChange?: ((value: boolean) => any) | undefined;
|
|
28
27
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
28
|
+
onVisibleChange?: ((value: boolean) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
open: boolean;
|
|
31
30
|
trigger: "click" | "focus" | "hover";
|
|
31
|
+
open: boolean;
|
|
32
32
|
placement: Placement;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -21,8 +21,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
21
21
|
type: "circle" | "line";
|
|
22
22
|
width: number;
|
|
23
23
|
status: "success" | "warning" | "normal" | "error";
|
|
24
|
-
showLabel: boolean;
|
|
25
24
|
strokeWidth: number;
|
|
25
|
+
showLabel: boolean;
|
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type HysChoiceValue } from "../../composables/choice";
|
|
2
|
+
declare const __VLS_export: <T extends HysChoiceValue = HysChoiceValue>(__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<{
|
|
4
|
+
modelValue?: T | null;
|
|
5
|
+
defaultValue?: T | null;
|
|
6
|
+
value?: T;
|
|
7
|
+
label?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
size?: "sm" | "md" | "lg";
|
|
11
|
+
button?: boolean;
|
|
12
|
+
border?: boolean;
|
|
13
|
+
buttonStyle?: "outline" | "solid";
|
|
14
|
+
name?: string;
|
|
15
|
+
form?: string;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
tabindex?: number;
|
|
19
|
+
focusable?: boolean;
|
|
20
|
+
autofocus?: boolean;
|
|
21
|
+
error?: string;
|
|
22
|
+
status?: "error" | "warning" | "success";
|
|
23
|
+
} & {
|
|
24
|
+
onChange?: ((value: T) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
26
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
27
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
28
|
+
}> & (typeof globalThis extends {
|
|
29
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
30
|
+
} ? P : {});
|
|
31
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
32
|
+
input: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
33
|
+
checked: import("vue").ComputedRef<boolean>;
|
|
34
|
+
focus: (options?: FocusOptions) => void;
|
|
35
|
+
blur: () => void | undefined;
|
|
36
|
+
select: () => Promise<boolean>;
|
|
37
|
+
}>) => void;
|
|
38
|
+
attrs: any;
|
|
39
|
+
slots: {
|
|
40
|
+
icon?: (props: {
|
|
41
|
+
checked: boolean;
|
|
42
|
+
}) => any;
|
|
43
|
+
} & {
|
|
44
|
+
default?: (props: {}) => any;
|
|
45
|
+
};
|
|
46
|
+
emit: ((evt: "change", value: T) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void);
|
|
47
|
+
}>) => import("vue").VNode & {
|
|
48
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
49
|
+
};
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
53
|
+
[K in keyof T]: T[K];
|
|
54
|
+
} : {
|
|
55
|
+
[K in keyof T as K]: T[K];
|
|
56
|
+
}) & {};
|