yc-design-vue 2.1.8 → 2.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/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/es/Alert/index.vue.js +2 -2
- package/es/Avatar/Avatar.vue.d.ts +1 -1
- package/es/Avatar/Avatar.vue.js +1 -1
- package/es/Avatar/index.d.ts +3 -3
- package/es/BackTop/index.vue.js +1 -1
- package/es/Badge/index.d.ts +3 -3
- package/es/Badge/index.vue.d.ts +1 -1
- package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +2 -2
- package/es/Button/Button.vue.d.ts +2 -2
- package/es/Button/ButtonGroup.vue.d.ts +1 -1
- package/es/Button/index.d.ts +9 -9
- package/es/Calendar/Calendar.vue.js +2 -2
- package/es/Card/Card.vue.d.ts +1 -1
- package/es/Card/index.d.ts +3 -3
- package/es/Carousel/CarouselArrow.vue.js +1 -1
- package/es/Cascader/Cascader.vue.d.ts +12 -44
- package/es/Cascader/CascaderIcon.vue.js +2 -2
- package/es/Cascader/CascaderOption.vue.js +1 -1
- package/es/Cascader/index.d.ts +6 -22
- package/es/Checkbox/Checkbox.vue.js +2 -2
- package/es/Collapse/CollapseItem.vue.js +2 -2
- package/es/ColorPicker/ColorInput.vue.js +73 -69
- package/es/ColorPicker/index.css +1 -1
- package/es/Drawer/Drawer.vue.js +2 -2
- package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/es/Dropdown/DropdownButton.vue.js +1 -1
- package/es/Dropdown/Dsubmenu.vue.js +1 -1
- package/es/Dropdown/index.d.ts +3 -3
- package/es/Empty/index.vue.js +1 -1
- package/es/Image/Image.vue.js +1 -1
- package/es/Image/ImagePreview.vue.js +1 -1
- package/es/Image/ImagePreviewArrow.vue.js +1 -1
- package/es/Image/ImagePreviewToolbar.vue.js +1 -1
- package/es/Input/Input.vue.d.ts +2 -8
- package/es/Input/Input.vue.js +26 -48
- package/es/Input/InputGroup.vue.d.ts +17 -0
- package/es/Input/InputGroup.vue.js +18 -0
- package/es/Input/InputGroup.vue3.js +5 -0
- package/es/Input/InputPassword.vue.d.ts +309 -0
- package/es/Input/InputPassword.vue.js +122 -0
- package/es/Input/InputPassword.vue2.js +4 -0
- package/es/Input/InputSearch.vue.d.ts +310 -0
- package/es/Input/InputSearch.vue.js +133 -0
- package/es/Input/InputSearch.vue2.js +4 -0
- package/es/Input/hooks/useLimitedInput.d.ts +2 -0
- package/es/Input/hooks/useLimitedInput.js +2 -0
- package/es/Input/index.css +1 -1
- package/es/Input/index.d.ts +439 -22
- package/es/Input/index.js +13 -0
- package/es/Input/type.d.ts +24 -6
- package/es/InputNumber/InputNumber.vue.d.ts +12 -44
- package/es/InputNumber/InputOperaBtn.vue.js +1 -1
- package/es/InputNumber/index.d.ts +6 -22
- package/es/InputTag/index.vue.js +2 -2
- package/es/Layout/LayoutSider.vue.js +1 -1
- package/es/Link/index.d.ts +3 -3
- package/es/Link/index.vue.d.ts +1 -1
- package/es/Link/index.vue.js +1 -1
- package/es/Menu/Menu.vue.js +1 -1
- package/es/Menu/MenuEllipsis.vue.js +1 -1
- package/es/Menu/SubMenu.vue.js +1 -1
- package/es/Message/Message.vue.js +2 -2
- package/es/Modal/Modal.vue.js +2 -2
- package/es/Notification/Notification.vue.js +2 -2
- package/es/PageHeader/index.vue.js +2 -2
- package/es/Pagination/PaginationItem.vue.js +1 -1
- package/es/Progress/ProgressCircle.vue.js +1 -1
- package/es/Radio/Radio.vue.js +2 -2
- package/es/Rate/index.vue.js +1 -1
- package/es/ResizeBox/index.vue.js +1 -1
- package/es/Select/SelectIcon.vue.js +2 -2
- package/es/Spin/index.vue.js +1 -1
- package/es/Split/index.vue.js +1 -1
- package/es/Statistic/Statistic.vue.d.ts +1 -1
- package/es/Statistic/index.d.ts +3 -3
- package/es/Steps/Step.vue.d.ts +1 -1
- package/es/Steps/Step.vue.js +1 -1
- package/es/Steps/Steps.vue.d.ts +1 -1
- package/es/Steps/index.d.ts +6 -6
- package/es/Tabs/TabButton.vue.js +2 -2
- package/es/Tabs/Tabs.vue.js +1 -1
- package/es/Tag/index.vue.js +2 -2
- package/es/Textarea/index.vue.js +2 -2
- package/es/TimePicker/TimePicker.vue.js +2 -2
- package/es/TimePicker/TimePickerPanel.vue.js +2 -1
- package/es/Transfer/Transfer.vue.js +1 -1
- package/es/Transfer/TransferPanel.vue.js +3 -3
- package/es/Trigger/index.vue.js +1 -1
- package/es/Typography/TypographyBase.vue.d.ts +12 -44
- package/es/Typography/TypographyBase.vue.js +3 -3
- package/es/Upload/UploadButton.vue.js +1 -1
- package/es/Upload/UploadDrag.vue.js +1 -1
- package/es/Upload/UploadFileList.vue2.js +2 -2
- package/es/Upload/UploadPictureCard.vue2.js +2 -2
- package/es/_shared/components/IconButton/{index.vue2.js → index.vue.js} +1 -1
- package/es/_shared/components/IconButton/index.vue3.js +2 -2
- package/es/_shared/constants/index.js +1 -1
- package/es/_shared/icons/IconArrowDown.vue.js +1 -1
- package/es/_shared/icons/IconArrowRight.vue.js +1 -1
- package/es/_shared/icons/IconCheck.vue.js +1 -1
- package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/es/_shared/icons/IconClose.vue.js +1 -1
- package/es/_shared/icons/IconCopy.vue.js +28 -1
- package/es/_shared/icons/IconCopy.vue2.js +1 -28
- package/es/_shared/icons/IconDelete.vue2.js +1 -1
- package/es/_shared/icons/IconDragDot.vue.js +1 -1
- package/es/_shared/icons/IconEdit.vue.js +28 -1
- package/es/_shared/icons/IconEdit.vue2.js +1 -28
- package/es/_shared/icons/IconEmpty.vue.js +1 -1
- package/es/_shared/icons/IconError.vue.js +1 -1
- package/es/_shared/icons/IconExclamation.vue2.js +1 -1
- package/es/_shared/icons/IconEyeClose.vue.js +32 -1
- package/es/_shared/icons/IconEyeClose.vue2.js +1 -32
- package/es/_shared/icons/IconEyeOpen.vue.js +29 -1
- package/es/_shared/icons/IconEyeOpen.vue2.js +1 -29
- package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
- package/es/_shared/icons/IconFile.vue2.js +1 -1
- package/es/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/es/_shared/icons/IconImageClose.vue.js +1 -1
- package/es/_shared/icons/IconInfo.vue.js +1 -1
- package/es/_shared/icons/IconInfoLine.vue.js +1 -1
- package/es/_shared/icons/IconLink.vue.js +1 -1
- package/es/_shared/icons/IconLoading.vue.js +1 -1
- package/es/_shared/icons/IconMenuFold.vue.js +1 -1
- package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
- package/es/_shared/icons/IconMinus.vue2.js +1 -1
- package/es/_shared/icons/IconMore.vue.js +1 -1
- package/es/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/es/_shared/icons/IconPlus.vue.js +1 -1
- package/es/_shared/icons/IconRight.vue.js +1 -1
- package/es/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/es/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/es/_shared/icons/IconSearch.vue.js +28 -1
- package/es/_shared/icons/IconSearch.vue2.js +1 -28
- package/es/_shared/icons/IconSeparator.vue.js +28 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -28
- package/es/_shared/icons/IconStar.vue.js +1 -1
- package/es/_shared/icons/IconSuccess.vue.js +1 -1
- package/es/_shared/icons/IconTime.vue.js +1 -1
- package/es/_shared/icons/IconToTop.vue.js +1 -1
- package/es/_shared/icons/IconUpload.vue2.js +1 -1
- package/es/_shared/icons/IconWarning.vue.js +1 -1
- package/es/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/es/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/es/index.d.ts +9 -9
- package/es/index.js +7 -0
- package/es/style.css +1 -1
- package/lib/Alert/index.vue.js +1 -1
- package/lib/Avatar/Avatar.vue.d.ts +1 -1
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/Avatar/index.d.ts +3 -3
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/Badge/index.d.ts +3 -3
- package/lib/Badge/index.vue.d.ts +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/lib/Button/Button.vue.d.ts +2 -2
- package/lib/Button/ButtonGroup.vue.d.ts +1 -1
- package/lib/Button/index.d.ts +9 -9
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Card/Card.vue.d.ts +1 -1
- package/lib/Card/index.d.ts +3 -3
- package/lib/Carousel/CarouselArrow.vue.js +1 -1
- package/lib/Cascader/Cascader.vue.d.ts +12 -44
- package/lib/Cascader/CascaderIcon.vue.js +1 -1
- package/lib/Cascader/CascaderOption.vue.js +1 -1
- package/lib/Cascader/index.d.ts +6 -22
- package/lib/Checkbox/Checkbox.vue.js +1 -1
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/ColorPicker/ColorInput.vue.js +1 -1
- package/lib/ColorPicker/index.css +1 -1
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/lib/Dropdown/DropdownButton.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/index.d.ts +3 -3
- package/lib/Empty/index.vue.js +1 -1
- package/lib/Image/Image.vue.js +1 -1
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/ImagePreviewArrow.vue.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
- package/lib/Input/Input.vue.d.ts +2 -8
- package/lib/Input/Input.vue.js +1 -1
- package/lib/Input/InputGroup.vue.d.ts +17 -0
- package/lib/Input/InputGroup.vue.js +1 -0
- package/lib/Input/{InputSuffix.vue3.js → InputGroup.vue3.js} +1 -1
- package/lib/Input/InputPassword.vue.d.ts +309 -0
- package/lib/Input/InputPassword.vue.js +1 -0
- package/lib/Input/InputPassword.vue2.js +1 -0
- package/lib/Input/InputSearch.vue.d.ts +310 -0
- package/lib/Input/InputSearch.vue.js +1 -0
- package/lib/Input/InputSearch.vue2.js +1 -0
- package/lib/Input/hooks/useLimitedInput.d.ts +2 -0
- package/lib/Input/hooks/useLimitedInput.js +1 -1
- package/lib/Input/index.css +1 -1
- package/lib/Input/index.d.ts +439 -22
- package/lib/Input/index.js +1 -1
- package/lib/Input/type.d.ts +24 -6
- package/lib/InputNumber/InputNumber.vue.d.ts +12 -44
- package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
- package/lib/InputNumber/index.d.ts +6 -22
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Link/index.d.ts +3 -3
- package/lib/Link/index.vue.d.ts +1 -1
- package/lib/Link/index.vue.js +1 -1
- package/lib/Menu/Menu.vue.js +1 -1
- package/lib/Menu/MenuEllipsis.vue.js +1 -1
- package/lib/Menu/SubMenu.vue.js +1 -1
- package/lib/Message/Message.vue.js +1 -1
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/PageHeader/index.vue.js +1 -1
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Rate/index.vue.js +1 -1
- package/lib/ResizeBox/index.vue.js +1 -1
- package/lib/Select/SelectIcon.vue.js +1 -1
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Split/index.vue.js +1 -1
- package/lib/Statistic/Statistic.vue.d.ts +1 -1
- package/lib/Statistic/index.d.ts +3 -3
- package/lib/Steps/Step.vue.d.ts +1 -1
- package/lib/Steps/Step.vue.js +1 -1
- package/lib/Steps/Steps.vue.d.ts +1 -1
- package/lib/Steps/index.d.ts +6 -6
- package/lib/Tabs/TabButton.vue.js +1 -1
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
- package/lib/Transfer/Transfer.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.d.ts +12 -44
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Upload/UploadButton.vue.js +1 -1
- package/lib/Upload/UploadDrag.vue.js +1 -1
- package/lib/Upload/UploadFileList.vue2.js +1 -1
- package/lib/Upload/UploadPictureCard.vue2.js +1 -1
- package/lib/_shared/components/IconButton/index.vue.js +1 -0
- package/lib/_shared/components/IconButton/index.vue3.js +1 -1
- package/lib/_shared/constants/index.js +1 -1
- package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
- package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
- package/lib/_shared/icons/IconCheck.vue.js +1 -1
- package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/lib/_shared/icons/IconClose.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconDragDot.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/IconEmpty.vue.js +1 -1
- package/lib/_shared/icons/IconError.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
- package/lib/_shared/icons/IconFile.vue2.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/lib/_shared/icons/IconImageClose.vue.js +1 -1
- package/lib/_shared/icons/IconInfo.vue.js +1 -1
- package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
- package/lib/_shared/icons/IconLink.vue.js +1 -1
- package/lib/_shared/icons/IconLoading.vue.js +1 -1
- package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
- package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
- package/lib/_shared/icons/IconMinus.vue2.js +1 -1
- package/lib/_shared/icons/IconMore.vue.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/lib/_shared/icons/IconPlus.vue.js +1 -1
- package/lib/_shared/icons/IconRight.vue.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSearch.vue2.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/icons/IconStar.vue.js +1 -1
- package/lib/_shared/icons/IconSuccess.vue.js +1 -1
- package/lib/_shared/icons/IconTime.vue.js +1 -1
- package/lib/_shared/icons/IconToTop.vue.js +1 -1
- package/lib/_shared/icons/IconUpload.vue2.js +1 -1
- package/lib/_shared/icons/IconWarning.vue.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/lib/index.d.ts +9 -9
- package/lib/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/Input/InputSuffix.vue.d.ts +0 -31
- package/es/Input/InputSuffix.vue.js +0 -58
- package/es/Input/InputSuffix.vue3.js +0 -5
- package/lib/Input/InputSuffix.vue.d.ts +0 -31
- package/lib/Input/InputSuffix.vue.js +0 -1
- package/lib/_shared/components/IconButton/index.vue2.js +0 -1
@@ -0,0 +1,309 @@
|
|
1
|
+
import { InputPasswordProps } from './type';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
attrs: Partial<{}>;
|
4
|
+
slots: {
|
5
|
+
prepend?(_: {}): any;
|
6
|
+
append?(_: {}): any;
|
7
|
+
prefix?(_: {}): any;
|
8
|
+
suffix?(_: {}): any;
|
9
|
+
};
|
10
|
+
refs: {
|
11
|
+
inputRef: ({
|
12
|
+
$: import('vue').ComponentInternalInstance;
|
13
|
+
$data: {};
|
14
|
+
$props: {
|
15
|
+
readonly modelValue?: string | undefined;
|
16
|
+
readonly defaultValue?: string | undefined;
|
17
|
+
readonly size?: import('..').Size | undefined;
|
18
|
+
readonly allowClear?: boolean | undefined;
|
19
|
+
readonly disabled?: boolean | undefined;
|
20
|
+
readonly readonly?: boolean | undefined;
|
21
|
+
readonly error?: boolean | undefined;
|
22
|
+
readonly placeholder?: string | undefined;
|
23
|
+
readonly maxLength?: import('./type').MaxLength | undefined;
|
24
|
+
readonly wordLength?: import('./type').WordLength | undefined;
|
25
|
+
readonly wordSlice?: import('./type').WordSlice | undefined;
|
26
|
+
readonly showWordLimit?: boolean | undefined;
|
27
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
28
|
+
readonly showInput?: boolean | undefined;
|
29
|
+
readonly onChange?: ((value: string, ev: Event) => any) | undefined;
|
30
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
31
|
+
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
32
|
+
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
33
|
+
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
34
|
+
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
35
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
36
|
+
readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
37
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
38
|
+
$attrs: {
|
39
|
+
[x: string]: unknown;
|
40
|
+
};
|
41
|
+
$refs: {
|
42
|
+
[x: string]: unknown;
|
43
|
+
} & {
|
44
|
+
inputRef: HTMLInputElement;
|
45
|
+
};
|
46
|
+
$slots: Readonly<{
|
47
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
48
|
+
}>;
|
49
|
+
$root: import('vue').ComponentPublicInstance | null;
|
50
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
51
|
+
$host: Element | null;
|
52
|
+
$emit: ((event: "change", value: string, ev: Event) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
|
53
|
+
$el: HTMLDivElement;
|
54
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
|
55
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
56
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
57
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
58
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
59
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
60
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
61
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
62
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
63
|
+
}>, {
|
64
|
+
focus(): void;
|
65
|
+
blur(): void;
|
66
|
+
getInputRef(): HTMLInputElement;
|
67
|
+
setCursor?: () => void;
|
68
|
+
recordCursor?: () => void;
|
69
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
70
|
+
change: (value: string, ev: Event) => any;
|
71
|
+
focus: (ev: FocusEvent) => any;
|
72
|
+
clear: (ev: MouseEvent) => any;
|
73
|
+
blur: (ev: FocusEvent) => any;
|
74
|
+
input: (value: string, ev: Event) => any;
|
75
|
+
keydown: (ev: KeyboardEvent) => any;
|
76
|
+
"update:modelValue": (value: string) => any;
|
77
|
+
pressEnter: (ev: KeyboardEvent) => any;
|
78
|
+
}, string, {
|
79
|
+
error: boolean;
|
80
|
+
size: import('..').Size;
|
81
|
+
disabled: boolean;
|
82
|
+
placeholder: string;
|
83
|
+
modelValue: string;
|
84
|
+
defaultValue: string;
|
85
|
+
maxLength: import('./type').MaxLength;
|
86
|
+
showWordLimit: boolean;
|
87
|
+
allowClear: boolean;
|
88
|
+
readonly: boolean;
|
89
|
+
wordLength: import('./type').WordLength;
|
90
|
+
wordSlice: import('./type').WordSlice;
|
91
|
+
inputAttrs: import('..').RecordType;
|
92
|
+
showInput: boolean;
|
93
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
94
|
+
beforeCreate?: (() => void) | (() => void)[];
|
95
|
+
created?: (() => void) | (() => void)[];
|
96
|
+
beforeMount?: (() => void) | (() => void)[];
|
97
|
+
mounted?: (() => void) | (() => void)[];
|
98
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
99
|
+
updated?: (() => void) | (() => void)[];
|
100
|
+
activated?: (() => void) | (() => void)[];
|
101
|
+
deactivated?: (() => void) | (() => void)[];
|
102
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
103
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
104
|
+
destroyed?: (() => void) | (() => void)[];
|
105
|
+
unmounted?: (() => void) | (() => void)[];
|
106
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
107
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
108
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
109
|
+
};
|
110
|
+
$forceUpdate: () => void;
|
111
|
+
$nextTick: typeof import('vue').nextTick;
|
112
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
113
|
+
} & Readonly<{
|
114
|
+
error: boolean;
|
115
|
+
size: import('..').Size;
|
116
|
+
disabled: boolean;
|
117
|
+
placeholder: string;
|
118
|
+
modelValue: string;
|
119
|
+
defaultValue: string;
|
120
|
+
maxLength: import('./type').MaxLength;
|
121
|
+
showWordLimit: boolean;
|
122
|
+
allowClear: boolean;
|
123
|
+
readonly: boolean;
|
124
|
+
wordLength: import('./type').WordLength;
|
125
|
+
wordSlice: import('./type').WordSlice;
|
126
|
+
inputAttrs: import('..').RecordType;
|
127
|
+
showInput: boolean;
|
128
|
+
}> & Omit<Readonly<import('./type').InputProps> & Readonly<{
|
129
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
130
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
131
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
132
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
133
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
134
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
135
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
136
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
137
|
+
}>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
138
|
+
focus(): void;
|
139
|
+
blur(): void;
|
140
|
+
getInputRef(): HTMLInputElement;
|
141
|
+
setCursor?: () => void;
|
142
|
+
recordCursor?: () => void;
|
143
|
+
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
144
|
+
$slots: any;
|
145
|
+
}) | null;
|
146
|
+
};
|
147
|
+
rootEl: HTMLDivElement;
|
148
|
+
};
|
149
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
150
|
+
declare const __VLS_component: import('vue').DefineComponent<InputPasswordProps, {
|
151
|
+
focus(): void;
|
152
|
+
blur(): void;
|
153
|
+
getInputRef(): HTMLInputElement;
|
154
|
+
setCursor?: () => void;
|
155
|
+
recordCursor?: () => void;
|
156
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
157
|
+
"update:visibility": (value: boolean) => any;
|
158
|
+
"visibility-change": (value: boolean) => any;
|
159
|
+
}, string, import('vue').PublicProps, Readonly<InputPasswordProps> & Readonly<{
|
160
|
+
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
161
|
+
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
162
|
+
}>, {
|
163
|
+
visibility: boolean;
|
164
|
+
defaultVisibility: boolean;
|
165
|
+
invisibleButton: boolean;
|
166
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
167
|
+
inputRef: ({
|
168
|
+
$: import('vue').ComponentInternalInstance;
|
169
|
+
$data: {};
|
170
|
+
$props: {
|
171
|
+
readonly modelValue?: string | undefined;
|
172
|
+
readonly defaultValue?: string | undefined;
|
173
|
+
readonly size?: import('..').Size | undefined;
|
174
|
+
readonly allowClear?: boolean | undefined;
|
175
|
+
readonly disabled?: boolean | undefined;
|
176
|
+
readonly readonly?: boolean | undefined;
|
177
|
+
readonly error?: boolean | undefined;
|
178
|
+
readonly placeholder?: string | undefined;
|
179
|
+
readonly maxLength?: import('./type').MaxLength | undefined;
|
180
|
+
readonly wordLength?: import('./type').WordLength | undefined;
|
181
|
+
readonly wordSlice?: import('./type').WordSlice | undefined;
|
182
|
+
readonly showWordLimit?: boolean | undefined;
|
183
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
184
|
+
readonly showInput?: boolean | undefined;
|
185
|
+
readonly onChange?: ((value: string, ev: Event) => any) | undefined;
|
186
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
187
|
+
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
188
|
+
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
189
|
+
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
190
|
+
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
191
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
192
|
+
readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
193
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
194
|
+
$attrs: {
|
195
|
+
[x: string]: unknown;
|
196
|
+
};
|
197
|
+
$refs: {
|
198
|
+
[x: string]: unknown;
|
199
|
+
} & {
|
200
|
+
inputRef: HTMLInputElement;
|
201
|
+
};
|
202
|
+
$slots: Readonly<{
|
203
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
204
|
+
}>;
|
205
|
+
$root: import('vue').ComponentPublicInstance | null;
|
206
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
207
|
+
$host: Element | null;
|
208
|
+
$emit: ((event: "change", value: string, ev: Event) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
|
209
|
+
$el: HTMLDivElement;
|
210
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
|
211
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
212
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
213
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
214
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
215
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
216
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
217
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
218
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
219
|
+
}>, {
|
220
|
+
focus(): void;
|
221
|
+
blur(): void;
|
222
|
+
getInputRef(): HTMLInputElement;
|
223
|
+
setCursor?: () => void;
|
224
|
+
recordCursor?: () => void;
|
225
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
226
|
+
change: (value: string, ev: Event) => any;
|
227
|
+
focus: (ev: FocusEvent) => any;
|
228
|
+
clear: (ev: MouseEvent) => any;
|
229
|
+
blur: (ev: FocusEvent) => any;
|
230
|
+
input: (value: string, ev: Event) => any;
|
231
|
+
keydown: (ev: KeyboardEvent) => any;
|
232
|
+
"update:modelValue": (value: string) => any;
|
233
|
+
pressEnter: (ev: KeyboardEvent) => any;
|
234
|
+
}, string, {
|
235
|
+
error: boolean;
|
236
|
+
size: import('..').Size;
|
237
|
+
disabled: boolean;
|
238
|
+
placeholder: string;
|
239
|
+
modelValue: string;
|
240
|
+
defaultValue: string;
|
241
|
+
maxLength: import('./type').MaxLength;
|
242
|
+
showWordLimit: boolean;
|
243
|
+
allowClear: boolean;
|
244
|
+
readonly: boolean;
|
245
|
+
wordLength: import('./type').WordLength;
|
246
|
+
wordSlice: import('./type').WordSlice;
|
247
|
+
inputAttrs: import('..').RecordType;
|
248
|
+
showInput: boolean;
|
249
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
250
|
+
beforeCreate?: (() => void) | (() => void)[];
|
251
|
+
created?: (() => void) | (() => void)[];
|
252
|
+
beforeMount?: (() => void) | (() => void)[];
|
253
|
+
mounted?: (() => void) | (() => void)[];
|
254
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
255
|
+
updated?: (() => void) | (() => void)[];
|
256
|
+
activated?: (() => void) | (() => void)[];
|
257
|
+
deactivated?: (() => void) | (() => void)[];
|
258
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
259
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
260
|
+
destroyed?: (() => void) | (() => void)[];
|
261
|
+
unmounted?: (() => void) | (() => void)[];
|
262
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
263
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
264
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
265
|
+
};
|
266
|
+
$forceUpdate: () => void;
|
267
|
+
$nextTick: typeof import('vue').nextTick;
|
268
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
269
|
+
} & Readonly<{
|
270
|
+
error: boolean;
|
271
|
+
size: import('..').Size;
|
272
|
+
disabled: boolean;
|
273
|
+
placeholder: string;
|
274
|
+
modelValue: string;
|
275
|
+
defaultValue: string;
|
276
|
+
maxLength: import('./type').MaxLength;
|
277
|
+
showWordLimit: boolean;
|
278
|
+
allowClear: boolean;
|
279
|
+
readonly: boolean;
|
280
|
+
wordLength: import('./type').WordLength;
|
281
|
+
wordSlice: import('./type').WordSlice;
|
282
|
+
inputAttrs: import('..').RecordType;
|
283
|
+
showInput: boolean;
|
284
|
+
}> & Omit<Readonly<import('./type').InputProps> & Readonly<{
|
285
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
286
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
287
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
288
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
289
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
290
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
291
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
292
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
293
|
+
}>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
294
|
+
focus(): void;
|
295
|
+
blur(): void;
|
296
|
+
getInputRef(): HTMLInputElement;
|
297
|
+
setCursor?: () => void;
|
298
|
+
recordCursor?: () => void;
|
299
|
+
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
300
|
+
$slots: any;
|
301
|
+
}) | null;
|
302
|
+
}, HTMLDivElement>;
|
303
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
304
|
+
export default _default;
|
305
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
306
|
+
new (): {
|
307
|
+
$slots: S;
|
308
|
+
};
|
309
|
+
};
|
@@ -0,0 +1,122 @@
|
|
1
|
+
import { defineComponent, toRefs, ref, createBlock, openBlock, mergeProps, unref, createSlots, withCtx, createCommentVNode, renderSlot } from "vue";
|
2
|
+
import "../node_modules/b-tween/dist/b-tween.es.js";
|
3
|
+
import "../node_modules/dayjs/dayjs.min.js";
|
4
|
+
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
|
+
import "../node_modules/dayjs/plugin/duration.js";
|
6
|
+
import "../node_modules/dayjs/plugin/toObject.js";
|
7
|
+
import "../node_modules/dayjs/plugin/isSameOrAfter.js";
|
8
|
+
import "../node_modules/dayjs/plugin/isSameOrBefore.js";
|
9
|
+
import { sleep } from "../_shared/utils/dom.js";
|
10
|
+
import { useControlValue } from "../_shared/utils/hooks.js";
|
11
|
+
import "../_shared/utils/locale.js";
|
12
|
+
import "../_shared/utils/time.js";
|
13
|
+
import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
|
14
|
+
/* empty css */
|
15
|
+
/* empty css */
|
16
|
+
/* empty css */
|
17
|
+
import _sfc_main$4 from "../_shared/icons/IconEyeClose.vue.js";
|
18
|
+
import _sfc_main$3 from "../_shared/icons/IconEyeOpen.vue.js";
|
19
|
+
import _sfc_main$1 from "./Input.vue.js";
|
20
|
+
/* empty css */
|
21
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
22
|
+
...{
|
23
|
+
name: "InputPassword"
|
24
|
+
},
|
25
|
+
__name: "InputPassword",
|
26
|
+
props: {
|
27
|
+
visibility: { type: Boolean, default: void 0 },
|
28
|
+
defaultVisibility: { type: Boolean, default: false },
|
29
|
+
invisibleButton: { type: Boolean, default: true }
|
30
|
+
},
|
31
|
+
emits: ["update:visibility", "visibility-change"],
|
32
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
33
|
+
const props = __props;
|
34
|
+
const emits = __emit;
|
35
|
+
const { visibility, defaultVisibility } = toRefs(props);
|
36
|
+
const computedVisibility = useControlValue(
|
37
|
+
visibility,
|
38
|
+
defaultVisibility.value,
|
39
|
+
(val) => {
|
40
|
+
emits("update:visibility", val);
|
41
|
+
emits("visibility-change", val);
|
42
|
+
}
|
43
|
+
);
|
44
|
+
const inputRef = ref();
|
45
|
+
const handleClick = async () => {
|
46
|
+
var _a, _b, _c, _d;
|
47
|
+
(_b = (_a = inputRef.value) == null ? void 0 : _a.recordCursor) == null ? void 0 : _b.call(_a);
|
48
|
+
await sleep(0);
|
49
|
+
computedVisibility.value = !computedVisibility.value;
|
50
|
+
(_d = (_c = inputRef.value) == null ? void 0 : _c.setCursor) == null ? void 0 : _d.call(_c);
|
51
|
+
};
|
52
|
+
__expose({
|
53
|
+
focus() {
|
54
|
+
var _a;
|
55
|
+
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
56
|
+
},
|
57
|
+
blur() {
|
58
|
+
var _a;
|
59
|
+
(_a = inputRef.value) == null ? void 0 : _a.blur();
|
60
|
+
},
|
61
|
+
getInputRef() {
|
62
|
+
var _a;
|
63
|
+
return (_a = inputRef.value) == null ? void 0 : _a.getInputRef();
|
64
|
+
}
|
65
|
+
});
|
66
|
+
return (_ctx, _cache) => {
|
67
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps(_ctx.$attrs, {
|
68
|
+
"input-attrs": {
|
69
|
+
type: unref(computedVisibility) ? "text" : "password"
|
70
|
+
},
|
71
|
+
ref_key: "inputRef",
|
72
|
+
ref: inputRef
|
73
|
+
}), createSlots({
|
74
|
+
extra: withCtx(() => [
|
75
|
+
_ctx.invisibleButton ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
76
|
+
key: 0,
|
77
|
+
size: 14,
|
78
|
+
onClick: handleClick
|
79
|
+
}, {
|
80
|
+
default: withCtx(() => [
|
81
|
+
unref(computedVisibility) ? (openBlock(), createBlock(unref(_sfc_main$3), { key: 0 })) : (openBlock(), createBlock(unref(_sfc_main$4), { key: 1 }))
|
82
|
+
]),
|
83
|
+
_: 1
|
84
|
+
})) : createCommentVNode("", true)
|
85
|
+
]),
|
86
|
+
_: 2
|
87
|
+
}, [
|
88
|
+
_ctx.$slots.prepend ? {
|
89
|
+
name: "prepend",
|
90
|
+
fn: withCtx(() => [
|
91
|
+
renderSlot(_ctx.$slots, "prepend")
|
92
|
+
]),
|
93
|
+
key: "0"
|
94
|
+
} : void 0,
|
95
|
+
_ctx.$slots.append ? {
|
96
|
+
name: "append",
|
97
|
+
fn: withCtx(() => [
|
98
|
+
renderSlot(_ctx.$slots, "append")
|
99
|
+
]),
|
100
|
+
key: "1"
|
101
|
+
} : void 0,
|
102
|
+
_ctx.$slots.prefix ? {
|
103
|
+
name: "prefix",
|
104
|
+
fn: withCtx(() => [
|
105
|
+
renderSlot(_ctx.$slots, "prefix")
|
106
|
+
]),
|
107
|
+
key: "2"
|
108
|
+
} : void 0,
|
109
|
+
_ctx.$slots.suffix ? {
|
110
|
+
name: "suffix",
|
111
|
+
fn: withCtx(() => [
|
112
|
+
renderSlot(_ctx.$slots, "suffix")
|
113
|
+
]),
|
114
|
+
key: "3"
|
115
|
+
} : void 0
|
116
|
+
]), 1040, ["input-attrs"]);
|
117
|
+
};
|
118
|
+
}
|
119
|
+
});
|
120
|
+
export {
|
121
|
+
_sfc_main as default
|
122
|
+
};
|