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
@@ -15,6 +15,8 @@ declare const _default: (params: {
|
|
15
15
|
error: import('vue').WritableComputedRef<boolean, boolean>;
|
16
16
|
disabled: Ref<boolean, boolean>;
|
17
17
|
maxLength: import('vue').ComputedRef<number>;
|
18
|
+
setCursor: () => void;
|
19
|
+
recordCursor: () => void;
|
18
20
|
handleInput: (e: Event) => Promise<void>;
|
19
21
|
handleComposition: (e: CompositionEvent) => Promise<void> | undefined;
|
20
22
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../node_modules/b-tween/dist/b-tween.es.js"),require("../../node_modules/dayjs/dayjs.min.js"),require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../node_modules/dayjs/plugin/duration.js"),require("../../node_modules/dayjs/plugin/toObject.js"),require("../../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../../node_modules/dayjs/plugin/isSameOrBefore.js"),require("../../_shared/utils/dom.js");const u=require("../../_shared/utils/is.js"),l=require("../../_shared/utils/hooks.js");require("../../_shared/utils/locale.js"),require("../../_shared/utils/time.js");const r=require("./useCursor.js");exports.default=a=>{const{props:
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../node_modules/b-tween/dist/b-tween.es.js"),require("../../node_modules/dayjs/dayjs.min.js"),require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../node_modules/dayjs/plugin/duration.js"),require("../../node_modules/dayjs/plugin/toObject.js"),require("../../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../../node_modules/dayjs/plugin/isSameOrBefore.js"),require("../../_shared/utils/dom.js");const u=require("../../_shared/utils/is.js"),l=require("../../_shared/utils/hooks.js");require("../../_shared/utils/locale.js"),require("../../_shared/utils/time.js");const r=require("./useCursor.js");exports.default=a=>{const{props:o,emits:s,inputRef:t}=a,{modelValue:i,defaultValue:n,disabled:d,readonly:v,allowClear:c,error:m,showWordLimit:p,maxLength:j}=e.toRefs(o),{wordLength:h,wordSlice:g}=o,{setCursor:y,recordCursor:f}=r.default(t),q=e.computed(()=>{var e;return u.isNumber(j.value)?j.value:null==(e=j.value)?void 0:e.length}),_=e.computed(()=>{var e;return!u.isNumber(j.value)&&(null==(e=j.value)?void 0:e.errorOnly)}),b=l.useControlValue(m,!1),C=l.useControlValue(i,n.value,e=>{s("update:modelValue",e)}),w=e.computed(()=>u.isNumber(q.value)&&p.value),x=e.computed(()=>c.value&&!d.value&&!v.value&&!!C.value.length);let L=0;const S=e.computed(()=>O(C.value)),V=e.ref(!1);function O(e){return u.isFunction(h)?h(e):(null==e?void 0:e.length)||0}const T=async()=>{f(),await e.nextTick(),t.value&&C.value!==t.value.value&&(t.value.value=C.value,y())},N=(e,u)=>{q.value&&O(e)>q.value?_.value?(C.value=e,b.value=!0):C.value=g(e,L):C.value=e,s("input",e,u),T()};return{computedValue:C,showClearBtn:x,showWordLimit:w,curLength:S,error:b,disabled:d,maxLength:q,setCursor:y,recordCursor:f,handleInput:async e=>{const{value:u}=e.target;if(!V.value){if(S.value==q.value&&(L=C.value.length),q.value&&!_.value&&S.value>=q.value&&O(u)>q.value&&"insertText"===e.inputType)return T();N(u,e)}},handleComposition:e=>{const{value:l,selectionStart:r,selectionEnd:a}=e.target;if(V.value="compositionend"!==e.type,!V.value)return q.value&&!_.value&&S.value>=q.value&&O(l)>q.value&&r===a?T():void N(l,e);u.isUndefined(q.value)&&(s("input",l,e),C.value=l)}}};
|
package/lib/Input/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.yc-input-outer{width:100%;display:inline-flex;align-items:center}.yc-input-outer .yc-input-prepend,.yc-input-outer .yc-input-append,.yc-input-outer .yc-input-wrapper{flex-shrink:0;font-size:inherit}.yc-input-outer .yc-input-prepend,.yc-input-outer .yc-input-append{overflow:hidden;height:100%;padding:0 12px;color:var(--color-text-1);font-weight:400;white-space:nowrap;background-color:var(--color-fill-2);display:flex;align-items:center}.yc-input-outer .yc-input-prepend.yc-input-prepend,.yc-input-outer .yc-input-append.yc-input-prepend{border-right:1px solid var(--color-neutral-3);border-top-left-radius:2px;border-bottom-left-radius:2px}.yc-input-outer .yc-input-prepend.yc-input-append,.yc-input-outer .yc-input-append.yc-input-append{border-left:1px solid var(--color-neutral-3);border-top-right-radius:2px;border-bottom-right-radius:2px}.yc-input-has-prepend .yc-input-wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.yc-input-has-append .yc-input-wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.yc-input-error .yc-input-wrapper{background-color:var(--color-danger-light-1)}.yc-input-error .yc-input-wrapper:not(.yc-input-wrapper-disabled):hover{border-color:transparent;background-color:var(--color-danger-light-2)}.yc-input-error .yc-input-wrapper:not(.yc-input-wrapper-disabled):focus-within{background:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.yc-input-disabled{cursor:not-allowed}.yc-input-disabled .yc-input-wrapper{cursor:not-allowed;border-color:transparent;background-color:var(--color-fill-2);color:var(--color-text-4)}.yc-input-disabled .yc-input-wrapper .yc-input-prefix,.yc-input-disabled .yc-input-wrapper .yc-input-suffix{color:inherit}.yc-input-disabled .yc-input-wrapper .yc-input::placeholder{color:var(--color-text-4)}.yc-input-wrapper{flex:1;height:100%;width:100%;cursor:text;padding:0 12px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);transition:color .1s cubic-bezier(0, 0, 1, 1),border-color .1s cubic-bezier(0, 0, 1, 1),background-color .1s cubic-bezier(0, 0, 1, 1);color:var(--color-text-1);font-size:inherit;font-weight:400;display:flex;align-items:center}.yc-input-wrapper:not(.yc-input-wrapper-disabled):hover{border-color:transparent;background-color:var(--color-fill-3)}.yc-input-wrapper:not(.yc-input-wrapper-disabled):hover .yc-input-clear-button{visibility:visible}.yc-input-wrapper:not(.yc-input-wrapper-disabled):focus-within{background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.yc-input-wrapper .yc-input-prefix,.yc-input-wrapper .yc-input-suffix,.yc-input-wrapper .yc-input{flex-shrink:0;color:inherit}.yc-input-wrapper .yc-input-prefix,.yc-input-wrapper .yc-input-suffix{height:100%;color:var(--color-text-2);display:flex;justify-content:center;align-items:center}.yc-input-wrapper .yc-input-prefix .yc-input-word-limit,.yc-input-wrapper .yc-input-suffix .yc-input-word-limit{color:var(--color-text-3);font-size:12px}.yc-input-wrapper .yc-input-prefix .yc-icon-button,.yc-input-wrapper .yc-input-suffix .yc-icon-button{color:inherit}.yc-input-wrapper .yc-input-prefix.yc-input-prefix,.yc-input-wrapper .yc-input-suffix.yc-input-prefix{padding-right:12px}.yc-input-wrapper .yc-input-prefix.yc-input-suffix,.yc-input-wrapper .yc-input-suffix.yc-input-suffix{padding-left:12px}.yc-input-wrapper .yc-input-clear-button{visibility:hidden}.yc-input-wrapper .yc-input{flex:1;cursor:inherit;outline:none;border:none;border-radius:var(--border-radius-none);background-color:transparent;color:inherit}.yc-input-wrapper .yc-input::placeholder{color:var(--color-text-3)}.yc-input-size-mini{font-size:12px;height:24px}.yc-input-size-mini .yc-input-wrapper .yc-input{padding:1px 0;line-height:1.667}.yc-input-size-small{font-size:14px;height:28px}.yc-input-size-small .yc-input-wrapper .yc-input{padding:2px 0;line-height:1.5715}.yc-input-size-medium{font-size:14px;height:32px}.yc-input-size-medium .yc-input-wrapper .yc-input{padding:4px 0;line-height:1.5715}.yc-input-size-large{font-size:14px;height:36px}.yc-input-size-large .yc-input-wrapper .yc-input{padding:6px 0;line-height:1.5715}
|
1
|
+
.yc-input-outer{width:100%;display:inline-flex;align-items:center}.yc-input-outer .yc-input-prepend,.yc-input-outer .yc-input-append,.yc-input-outer .yc-input-wrapper{flex-shrink:0;font-size:inherit}.yc-input-outer .yc-input-prepend,.yc-input-outer .yc-input-append{overflow:hidden;height:100%;padding:0 12px;color:var(--color-text-1);font-weight:400;white-space:nowrap;background-color:var(--color-fill-2);display:flex;align-items:center}.yc-input-outer .yc-input-prepend{border-right:1px solid var(--color-neutral-3);border-top-left-radius:2px;border-bottom-left-radius:2px}.yc-input-outer .yc-input-append{border-left:1px solid var(--color-neutral-3);border-top-right-radius:2px;border-bottom-right-radius:2px}.yc-input-has-prepend .yc-input-wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.yc-input-has-append .yc-input-wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.yc-input-error .yc-input-wrapper{background-color:var(--color-danger-light-1)}.yc-input-error .yc-input-wrapper:not(.yc-input-wrapper-disabled):hover{border-color:transparent;background-color:var(--color-danger-light-2)}.yc-input-error .yc-input-wrapper:not(.yc-input-wrapper-disabled):focus-within{background:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.yc-input-disabled{cursor:not-allowed}.yc-input-disabled .yc-input-wrapper{cursor:not-allowed;border-color:transparent;background-color:var(--color-fill-2);color:var(--color-text-4)}.yc-input-disabled .yc-input-wrapper .yc-input-prefix,.yc-input-disabled .yc-input-wrapper .yc-input-suffix{color:inherit}.yc-input-disabled .yc-input-wrapper .yc-input::placeholder{color:var(--color-text-4)}.yc-input-search .yc-input-prepend,.yc-input-search .yc-input-append{border:none;padding:0}.yc-input-search .yc-input-prepend .yc-button,.yc-input-search .yc-input-append .yc-button{border-radius:0}.yc-input-wrapper{flex:1;height:100%;width:100%;cursor:text;padding:0 12px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);transition:color .1s cubic-bezier(0, 0, 1, 1),border-color .1s cubic-bezier(0, 0, 1, 1),background-color .1s cubic-bezier(0, 0, 1, 1);color:var(--color-text-1);font-size:inherit;font-weight:400;display:flex;align-items:center}.yc-input-wrapper:not(.yc-input-wrapper-disabled):hover{border-color:transparent;background-color:var(--color-fill-3)}.yc-input-wrapper:not(.yc-input-wrapper-disabled):hover .yc-input-clear-button{visibility:visible}.yc-input-wrapper:not(.yc-input-wrapper-disabled):focus-within{background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.yc-input-wrapper .yc-input-prefix,.yc-input-wrapper .yc-input-suffix,.yc-input-wrapper .yc-input{flex-shrink:0;color:inherit}.yc-input-wrapper .yc-input-prefix,.yc-input-wrapper .yc-input-suffix{height:100%;color:var(--color-text-2);display:flex;justify-content:center;align-items:center}.yc-input-wrapper .yc-input-prefix .yc-input-word-limit,.yc-input-wrapper .yc-input-suffix .yc-input-word-limit{color:var(--color-text-3);font-size:12px}.yc-input-wrapper .yc-input-prefix .yc-icon-button,.yc-input-wrapper .yc-input-suffix .yc-icon-button{color:inherit}.yc-input-wrapper .yc-input-prefix.yc-input-prefix,.yc-input-wrapper .yc-input-suffix.yc-input-prefix{padding-right:12px}.yc-input-wrapper .yc-input-prefix.yc-input-suffix,.yc-input-wrapper .yc-input-suffix.yc-input-suffix{padding-left:12px}.yc-input-wrapper .yc-input-clear-button{visibility:hidden}.yc-input-wrapper .yc-input{flex:1;cursor:inherit;outline:none;border:none;border-radius:var(--border-radius-none);background-color:transparent;color:inherit}.yc-input-wrapper .yc-input::placeholder{color:var(--color-text-3)}.yc-input-size-mini{font-size:12px;height:24px}.yc-input-size-mini .yc-input-wrapper .yc-input{padding:1px 0;line-height:1.667}.yc-input-size-small{font-size:14px;height:28px}.yc-input-size-small .yc-input-wrapper .yc-input{padding:2px 0;line-height:1.5715}.yc-input-size-medium{font-size:14px;height:32px}.yc-input-size-medium .yc-input-wrapper .yc-input{padding:4px 0;line-height:1.5715}.yc-input-size-large{font-size:14px;height:36px}.yc-input-size-large .yc-input-wrapper .yc-input{padding:6px 0;line-height:1.5715}.yc-input-group{display:inline-flex;align-items:center}.yc-input-group .yc-input-outer .yc-input-wrapper{border-radius:0}.yc-input-group .yc-input-outer:not(:last-child) .yc-input-wrapper{border-right:1px solid var(--color-neutral-3)}.yc-input-group .yc-input-outer:not(:last-child):not(.yc-input-disabled) .yc-input-wrapper:focus-within{border-right-color:rgb(var(--primary-6))}.yc-input-group .yc-input-outer:not(:last-child):not(.yc-input-disabled).yc-input-error .yc-input-wrapper:focus-within{border-right-color:rgb(var(--danger-6))}.yc-input-group .yc-input-outer:first-child .yc-input-wrapper{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.yc-input-group .yc-input-outer:last-child .yc-input-wrapper{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}.yc-input-group .yc-input-tag,.yc-input-group .yc-textarea-wrapper,.yc-input-group .yc-picker{border-radius:0}.yc-input-group .yc-input-tag:not(:last-child),.yc-input-group .yc-textarea-wrapper:not(:last-child),.yc-input-group .yc-picker:not(:last-child){border-right:1px solid var(--color-neutral-3)}.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus{border-right-color:rgb(var(--primary-6))}.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group .yc-input-tag:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group .yc-textarea-wrapper:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group .yc-picker:not(:last-child):not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus{border-right-color:rgb(var(--danger-6))}.yc-input-group .yc-input-tag:first-child,.yc-input-group .yc-textarea-wrapper:first-child,.yc-input-group .yc-picker:first-child{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.yc-input-group .yc-input-tag:last-child,.yc-input-group .yc-textarea-wrapper:last-child,.yc-input-group .yc-picker:last-child{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}.yc-input-group>.yc-select:not(:last-child) .yc-input-outer .yc-input-wrapper,.yc-input-group .yc-cascader:not(:last-child) .yc-input-outer .yc-input-wrapper{border-radius:0}.yc-input-group>.yc-select:not(:last-child) .yc-input-outer .yc-input-wrapper,.yc-input-group .yc-cascader:not(:last-child) .yc-input-outer .yc-input-wrapper{border-right:1px solid var(--color-neutral-3)}.yc-input-group>.yc-select:not(:last-child) .yc-input-outer:not(.yc-input-disabled) .yc-input-wrapper:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-input-outer:not(.yc-input-disabled) .yc-input-wrapper:focus-within{border-right-color:rgb(var(--primary-6))}.yc-input-group>.yc-select:not(:last-child) .yc-input-outer:not(.yc-input-disabled).yc-input-error .yc-input-wrapper:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-input-outer:not(.yc-input-disabled).yc-input-error .yc-input-wrapper:focus-within{border-right-color:rgb(var(--danger-6))}.yc-input-group>.yc-select:not(:last-child) .yc-input-tag,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper,.yc-input-group>.yc-select:not(:last-child) .yc-picker,.yc-input-group .yc-cascader:not(:last-child) .yc-picker{border-radius:0;border-right:1px solid var(--color-neutral-3)}.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus{border-right-color:rgb(var(--primary-6))}.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-input-tag:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-textarea-wrapper:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group>.yc-select:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus,.yc-input-group .yc-cascader:not(:last-child) .yc-picker:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus{border-right-color:rgb(var(--danger-6))}.yc-input-group>.yc-select:first-child .yc-input-tag,.yc-input-group .yc-cascader:first-child .yc-input-tag,.yc-input-group>.yc-select:first-child .yc-textarea-wrapper,.yc-input-group .yc-cascader:first-child .yc-textarea-wrapper,.yc-input-group>.yc-select:first-child .yc-picker,.yc-input-group .yc-cascader:first-child .yc-picker,.yc-input-group>.yc-select:first-child .yc-input-outer.yc-input-wrapper,.yc-input-group .yc-cascader:first-child .yc-input-outer.yc-input-wrapper{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.yc-input-group>.yc-select:last-child .yc-input-tag,.yc-input-group .yc-cascader:last-child .yc-input-tag,.yc-input-group>.yc-select:last-child .yc-textarea-wrapper,.yc-input-group .yc-cascader:last-child .yc-textarea-wrapper,.yc-input-group>.yc-select:last-child .yc-picker,.yc-input-group .yc-cascader:last-child .yc-picker,.yc-input-group>.yc-select:last-child .yc-input-outer.yc-input-wrapper,.yc-input-group .yc-cascader:last-child .yc-input-outer.yc-input-wrapper{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}.reset-base-input .yc-input-wrapper{border-right:1px solid var(--color-neutral-3)}.reset-base-input:not(.yc-input-disabled) .yc-input-wrapper:focus-within{border-right-color:rgb(var(--primary-6))}.reset-base-input:not(.yc-input-disabled).yc-input-error .yc-input-wrapper:focus-within{border-right-color:rgb(var(--danger-6))}.reset-senior-input{border-right:1px solid var(--color-neutral-3)}.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled):focus-within,.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-focus{border-right-color:rgb(var(--primary-6))}.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error:focus-within,.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error:focus-within,.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error:focus-within,.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-input-tag-error.yc-picker-focus,.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-picker-error.yc-picker-focus,.reset-senior-input:not(.yc-input-tag-disabled):not(.yc-textarea-disabled).yc-textarea-error.yc-picker-focus{border-right-color:rgb(var(--danger-6))}.reset-first-border-radius{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.reset-last-border-radius{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}
|
package/lib/Input/index.d.ts
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
import { App } from 'vue';
|
2
2
|
import { default as _Input } from './Input.vue';
|
3
|
+
import { default as _InputSearch } from './InputSearch.vue';
|
4
|
+
import { default as _InputPassword } from './InputPassword.vue';
|
5
|
+
import { default as _InputGroup } from './InputGroup.vue';
|
3
6
|
export type InputInstance = InstanceType<typeof _Input>;
|
7
|
+
export type InputPasswordInstance = InstanceType<typeof _InputPassword>;
|
8
|
+
export type InputSearchInstance = InstanceType<typeof _InputSearch>;
|
9
|
+
export type InputGroupInstance = InstanceType<typeof _InputGroup>;
|
4
10
|
export * from './type';
|
5
11
|
declare const Input: {
|
6
12
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').InputProps> & Readonly<{
|
@@ -11,13 +17,13 @@ declare const Input: {
|
|
11
17
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
12
18
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
13
19
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
14
|
-
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
15
|
-
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
16
20
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
17
21
|
}>, {
|
18
22
|
focus(): void;
|
19
23
|
blur(): void;
|
20
24
|
getInputRef(): HTMLInputElement;
|
25
|
+
setCursor?: () => void;
|
26
|
+
recordCursor?: () => void;
|
21
27
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
22
28
|
change: (value: string, ev: Event) => any;
|
23
29
|
focus: (ev: FocusEvent) => any;
|
@@ -26,8 +32,6 @@ declare const Input: {
|
|
26
32
|
input: (value: string, ev: Event) => any;
|
27
33
|
keydown: (ev: KeyboardEvent) => any;
|
28
34
|
"update:modelValue": (value: string) => any;
|
29
|
-
"update:visibility": (value: boolean) => any;
|
30
|
-
"visibility-change": (value: boolean) => any;
|
31
35
|
pressEnter: (ev: KeyboardEvent) => any;
|
32
36
|
}, import('vue').PublicProps, {
|
33
37
|
error: boolean;
|
@@ -43,10 +47,6 @@ declare const Input: {
|
|
43
47
|
wordLength: import('./type').WordLength;
|
44
48
|
wordSlice: import('./type').WordSlice;
|
45
49
|
inputAttrs: import('..').RecordType;
|
46
|
-
isPassword: boolean;
|
47
|
-
visibility: boolean;
|
48
|
-
defaultVisibility: boolean;
|
49
|
-
invisibleButton: boolean;
|
50
50
|
showInput: boolean;
|
51
51
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
52
52
|
inputRef: HTMLInputElement;
|
@@ -65,13 +65,13 @@ declare const Input: {
|
|
65
65
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
66
66
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
67
67
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
68
|
-
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
69
|
-
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
70
68
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
71
69
|
}>, {
|
72
70
|
focus(): void;
|
73
71
|
blur(): void;
|
74
72
|
getInputRef(): HTMLInputElement;
|
73
|
+
setCursor?: () => void;
|
74
|
+
recordCursor?: () => void;
|
75
75
|
}, {}, {}, {}, {
|
76
76
|
error: boolean;
|
77
77
|
size: import('..').Size;
|
@@ -86,10 +86,6 @@ declare const Input: {
|
|
86
86
|
wordLength: import('./type').WordLength;
|
87
87
|
wordSlice: import('./type').WordSlice;
|
88
88
|
inputAttrs: import('..').RecordType;
|
89
|
-
isPassword: boolean;
|
90
|
-
visibility: boolean;
|
91
|
-
defaultVisibility: boolean;
|
92
|
-
invisibleButton: boolean;
|
93
89
|
showInput: boolean;
|
94
90
|
}>;
|
95
91
|
__isFragment?: never;
|
@@ -103,13 +99,13 @@ declare const Input: {
|
|
103
99
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
104
100
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
105
101
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
106
|
-
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
107
|
-
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
108
102
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
109
103
|
}>, {
|
110
104
|
focus(): void;
|
111
105
|
blur(): void;
|
112
106
|
getInputRef(): HTMLInputElement;
|
107
|
+
setCursor?: () => void;
|
108
|
+
recordCursor?: () => void;
|
113
109
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
114
110
|
change: (value: string, ev: Event) => any;
|
115
111
|
focus: (ev: FocusEvent) => any;
|
@@ -118,8 +114,6 @@ declare const Input: {
|
|
118
114
|
input: (value: string, ev: Event) => any;
|
119
115
|
keydown: (ev: KeyboardEvent) => any;
|
120
116
|
"update:modelValue": (value: string) => any;
|
121
|
-
"update:visibility": (value: boolean) => any;
|
122
|
-
"visibility-change": (value: boolean) => any;
|
123
117
|
pressEnter: (ev: KeyboardEvent) => any;
|
124
118
|
}, string, {
|
125
119
|
error: boolean;
|
@@ -135,19 +129,442 @@ declare const Input: {
|
|
135
129
|
wordLength: import('./type').WordLength;
|
136
130
|
wordSlice: import('./type').WordSlice;
|
137
131
|
inputAttrs: import('..').RecordType;
|
138
|
-
isPassword: boolean;
|
139
|
-
visibility: boolean;
|
140
|
-
defaultVisibility: boolean;
|
141
|
-
invisibleButton: boolean;
|
142
132
|
showInput: boolean;
|
143
133
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
144
134
|
$slots: any;
|
145
135
|
}) & {
|
136
|
+
group: {
|
137
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
138
|
+
P: {};
|
139
|
+
B: {};
|
140
|
+
D: {};
|
141
|
+
C: {};
|
142
|
+
M: {};
|
143
|
+
Defaults: {};
|
144
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
145
|
+
__isFragment?: never;
|
146
|
+
__isTeleport?: never;
|
147
|
+
__isSuspense?: never;
|
148
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
149
|
+
$slots: {
|
150
|
+
default?(_: {}): any;
|
151
|
+
};
|
152
|
+
});
|
153
|
+
password: {
|
154
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').InputPasswordProps> & Readonly<{
|
155
|
+
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
156
|
+
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
157
|
+
}>, {
|
158
|
+
focus(): void;
|
159
|
+
blur(): void;
|
160
|
+
getInputRef(): HTMLInputElement;
|
161
|
+
setCursor?: () => void;
|
162
|
+
recordCursor?: () => void;
|
163
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
164
|
+
"update:visibility": (value: boolean) => any;
|
165
|
+
"visibility-change": (value: boolean) => any;
|
166
|
+
}, import('vue').PublicProps, {
|
167
|
+
visibility: boolean;
|
168
|
+
defaultVisibility: boolean;
|
169
|
+
invisibleButton: boolean;
|
170
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
171
|
+
inputRef: ({
|
172
|
+
$: import('vue').ComponentInternalInstance;
|
173
|
+
$data: {};
|
174
|
+
$props: {
|
175
|
+
readonly modelValue?: string | undefined;
|
176
|
+
readonly defaultValue?: string | undefined;
|
177
|
+
readonly size?: import('..').Size | undefined;
|
178
|
+
readonly allowClear?: boolean | undefined;
|
179
|
+
readonly disabled?: boolean | undefined;
|
180
|
+
readonly readonly?: boolean | undefined;
|
181
|
+
readonly error?: boolean | undefined;
|
182
|
+
readonly placeholder?: string | undefined;
|
183
|
+
readonly maxLength?: import('./type').MaxLength | undefined;
|
184
|
+
readonly wordLength?: import('./type').WordLength | undefined;
|
185
|
+
readonly wordSlice?: import('./type').WordSlice | undefined;
|
186
|
+
readonly showWordLimit?: boolean | undefined;
|
187
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
188
|
+
readonly showInput?: boolean | undefined;
|
189
|
+
readonly onChange?: ((value: string, ev: Event) => any) | undefined;
|
190
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
191
|
+
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
192
|
+
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
193
|
+
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
194
|
+
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
195
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
196
|
+
readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
197
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
198
|
+
$attrs: {
|
199
|
+
[x: string]: unknown;
|
200
|
+
};
|
201
|
+
$refs: {
|
202
|
+
[x: string]: unknown;
|
203
|
+
} & {
|
204
|
+
inputRef: HTMLInputElement;
|
205
|
+
};
|
206
|
+
$slots: Readonly<{
|
207
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
208
|
+
}>;
|
209
|
+
$root: import('vue').ComponentPublicInstance | null;
|
210
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
211
|
+
$host: Element | null;
|
212
|
+
$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);
|
213
|
+
$el: HTMLDivElement;
|
214
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
|
215
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
216
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
217
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
218
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
219
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
220
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
221
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
222
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
223
|
+
}>, {
|
224
|
+
focus(): void;
|
225
|
+
blur(): void;
|
226
|
+
getInputRef(): HTMLInputElement;
|
227
|
+
setCursor?: () => void;
|
228
|
+
recordCursor?: () => void;
|
229
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
230
|
+
change: (value: string, ev: Event) => any;
|
231
|
+
focus: (ev: FocusEvent) => any;
|
232
|
+
clear: (ev: MouseEvent) => any;
|
233
|
+
blur: (ev: FocusEvent) => any;
|
234
|
+
input: (value: string, ev: Event) => any;
|
235
|
+
keydown: (ev: KeyboardEvent) => any;
|
236
|
+
"update:modelValue": (value: string) => any;
|
237
|
+
pressEnter: (ev: KeyboardEvent) => any;
|
238
|
+
}, string, {
|
239
|
+
error: boolean;
|
240
|
+
size: import('..').Size;
|
241
|
+
disabled: boolean;
|
242
|
+
placeholder: string;
|
243
|
+
modelValue: string;
|
244
|
+
defaultValue: string;
|
245
|
+
maxLength: import('./type').MaxLength;
|
246
|
+
showWordLimit: boolean;
|
247
|
+
allowClear: boolean;
|
248
|
+
readonly: boolean;
|
249
|
+
wordLength: import('./type').WordLength;
|
250
|
+
wordSlice: import('./type').WordSlice;
|
251
|
+
inputAttrs: import('..').RecordType;
|
252
|
+
showInput: boolean;
|
253
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
254
|
+
beforeCreate?: (() => void) | (() => void)[];
|
255
|
+
created?: (() => void) | (() => void)[];
|
256
|
+
beforeMount?: (() => void) | (() => void)[];
|
257
|
+
mounted?: (() => void) | (() => void)[];
|
258
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
259
|
+
updated?: (() => void) | (() => void)[];
|
260
|
+
activated?: (() => void) | (() => void)[];
|
261
|
+
deactivated?: (() => void) | (() => void)[];
|
262
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
263
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
264
|
+
destroyed?: (() => void) | (() => void)[];
|
265
|
+
unmounted?: (() => void) | (() => void)[];
|
266
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
267
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
268
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
269
|
+
};
|
270
|
+
$forceUpdate: () => void;
|
271
|
+
$nextTick: typeof import('vue').nextTick;
|
272
|
+
$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;
|
273
|
+
} & Readonly<{
|
274
|
+
error: boolean;
|
275
|
+
size: import('..').Size;
|
276
|
+
disabled: boolean;
|
277
|
+
placeholder: string;
|
278
|
+
modelValue: string;
|
279
|
+
defaultValue: string;
|
280
|
+
maxLength: import('./type').MaxLength;
|
281
|
+
showWordLimit: boolean;
|
282
|
+
allowClear: boolean;
|
283
|
+
readonly: boolean;
|
284
|
+
wordLength: import('./type').WordLength;
|
285
|
+
wordSlice: import('./type').WordSlice;
|
286
|
+
inputAttrs: import('..').RecordType;
|
287
|
+
showInput: boolean;
|
288
|
+
}> & Omit<Readonly<import('./type').InputProps> & Readonly<{
|
289
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
290
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
291
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
292
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
293
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
294
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
295
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
296
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
297
|
+
}>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
298
|
+
focus(): void;
|
299
|
+
blur(): void;
|
300
|
+
getInputRef(): HTMLInputElement;
|
301
|
+
setCursor?: () => void;
|
302
|
+
recordCursor?: () => void;
|
303
|
+
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
304
|
+
$slots: any;
|
305
|
+
}) | null;
|
306
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
307
|
+
P: {};
|
308
|
+
B: {};
|
309
|
+
D: {};
|
310
|
+
C: {};
|
311
|
+
M: {};
|
312
|
+
Defaults: {};
|
313
|
+
}, Readonly<import('./type').InputPasswordProps> & Readonly<{
|
314
|
+
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
315
|
+
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
316
|
+
}>, {
|
317
|
+
focus(): void;
|
318
|
+
blur(): void;
|
319
|
+
getInputRef(): HTMLInputElement;
|
320
|
+
setCursor?: () => void;
|
321
|
+
recordCursor?: () => void;
|
322
|
+
}, {}, {}, {}, {
|
323
|
+
visibility: boolean;
|
324
|
+
defaultVisibility: boolean;
|
325
|
+
invisibleButton: boolean;
|
326
|
+
}>;
|
327
|
+
__isFragment?: never;
|
328
|
+
__isTeleport?: never;
|
329
|
+
__isSuspense?: never;
|
330
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./type').InputPasswordProps> & Readonly<{
|
331
|
+
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
332
|
+
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
333
|
+
}>, {
|
334
|
+
focus(): void;
|
335
|
+
blur(): void;
|
336
|
+
getInputRef(): HTMLInputElement;
|
337
|
+
setCursor?: () => void;
|
338
|
+
recordCursor?: () => void;
|
339
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
340
|
+
"update:visibility": (value: boolean) => any;
|
341
|
+
"visibility-change": (value: boolean) => any;
|
342
|
+
}, string, {
|
343
|
+
visibility: boolean;
|
344
|
+
defaultVisibility: boolean;
|
345
|
+
invisibleButton: boolean;
|
346
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
347
|
+
$slots: {
|
348
|
+
prepend?(_: {}): any;
|
349
|
+
append?(_: {}): any;
|
350
|
+
prefix?(_: {}): any;
|
351
|
+
suffix?(_: {}): any;
|
352
|
+
};
|
353
|
+
});
|
354
|
+
search: {
|
355
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').InputSearchProps> & Readonly<{
|
356
|
+
onSearch?: ((value: string, ev: MouseEvent) => any) | undefined;
|
357
|
+
}>, {
|
358
|
+
focus(): void;
|
359
|
+
blur(): void;
|
360
|
+
getInputRef(): HTMLInputElement;
|
361
|
+
setCursor?: () => void;
|
362
|
+
recordCursor?: () => void;
|
363
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
364
|
+
search: (value: string, ev: MouseEvent) => any;
|
365
|
+
}, import('vue').PublicProps, {
|
366
|
+
size: import('..').Size;
|
367
|
+
disabled: boolean;
|
368
|
+
loading: boolean;
|
369
|
+
searchButton: boolean;
|
370
|
+
buttonText: string;
|
371
|
+
buttonProps: import('..').ButtonGroupProps;
|
372
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
373
|
+
inputRef: ({
|
374
|
+
$: import('vue').ComponentInternalInstance;
|
375
|
+
$data: {};
|
376
|
+
$props: {
|
377
|
+
readonly modelValue?: string | undefined;
|
378
|
+
readonly defaultValue?: string | undefined;
|
379
|
+
readonly size?: import('..').Size | undefined;
|
380
|
+
readonly allowClear?: boolean | undefined;
|
381
|
+
readonly disabled?: boolean | undefined;
|
382
|
+
readonly readonly?: boolean | undefined;
|
383
|
+
readonly error?: boolean | undefined;
|
384
|
+
readonly placeholder?: string | undefined;
|
385
|
+
readonly maxLength?: import('./type').MaxLength | undefined;
|
386
|
+
readonly wordLength?: import('./type').WordLength | undefined;
|
387
|
+
readonly wordSlice?: import('./type').WordSlice | undefined;
|
388
|
+
readonly showWordLimit?: boolean | undefined;
|
389
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
390
|
+
readonly showInput?: boolean | undefined;
|
391
|
+
readonly onChange?: ((value: string, ev: Event) => any) | undefined;
|
392
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
393
|
+
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
394
|
+
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
395
|
+
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
396
|
+
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
397
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
398
|
+
readonly onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
399
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
400
|
+
$attrs: {
|
401
|
+
[x: string]: unknown;
|
402
|
+
};
|
403
|
+
$refs: {
|
404
|
+
[x: string]: unknown;
|
405
|
+
} & {
|
406
|
+
inputRef: HTMLInputElement;
|
407
|
+
};
|
408
|
+
$slots: Readonly<{
|
409
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
410
|
+
}>;
|
411
|
+
$root: import('vue').ComponentPublicInstance | null;
|
412
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
413
|
+
$host: Element | null;
|
414
|
+
$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);
|
415
|
+
$el: HTMLDivElement;
|
416
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
|
417
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
418
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
419
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
420
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
421
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
422
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
423
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
424
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
425
|
+
}>, {
|
426
|
+
focus(): void;
|
427
|
+
blur(): void;
|
428
|
+
getInputRef(): HTMLInputElement;
|
429
|
+
setCursor?: () => void;
|
430
|
+
recordCursor?: () => void;
|
431
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
432
|
+
change: (value: string, ev: Event) => any;
|
433
|
+
focus: (ev: FocusEvent) => any;
|
434
|
+
clear: (ev: MouseEvent) => any;
|
435
|
+
blur: (ev: FocusEvent) => any;
|
436
|
+
input: (value: string, ev: Event) => any;
|
437
|
+
keydown: (ev: KeyboardEvent) => any;
|
438
|
+
"update:modelValue": (value: string) => any;
|
439
|
+
pressEnter: (ev: KeyboardEvent) => any;
|
440
|
+
}, string, {
|
441
|
+
error: boolean;
|
442
|
+
size: import('..').Size;
|
443
|
+
disabled: boolean;
|
444
|
+
placeholder: string;
|
445
|
+
modelValue: string;
|
446
|
+
defaultValue: string;
|
447
|
+
maxLength: import('./type').MaxLength;
|
448
|
+
showWordLimit: boolean;
|
449
|
+
allowClear: boolean;
|
450
|
+
readonly: boolean;
|
451
|
+
wordLength: import('./type').WordLength;
|
452
|
+
wordSlice: import('./type').WordSlice;
|
453
|
+
inputAttrs: import('..').RecordType;
|
454
|
+
showInput: boolean;
|
455
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
456
|
+
beforeCreate?: (() => void) | (() => void)[];
|
457
|
+
created?: (() => void) | (() => void)[];
|
458
|
+
beforeMount?: (() => void) | (() => void)[];
|
459
|
+
mounted?: (() => void) | (() => void)[];
|
460
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
461
|
+
updated?: (() => void) | (() => void)[];
|
462
|
+
activated?: (() => void) | (() => void)[];
|
463
|
+
deactivated?: (() => void) | (() => void)[];
|
464
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
465
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
466
|
+
destroyed?: (() => void) | (() => void)[];
|
467
|
+
unmounted?: (() => void) | (() => void)[];
|
468
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
469
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
470
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
471
|
+
};
|
472
|
+
$forceUpdate: () => void;
|
473
|
+
$nextTick: typeof import('vue').nextTick;
|
474
|
+
$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;
|
475
|
+
} & Readonly<{
|
476
|
+
error: boolean;
|
477
|
+
size: import('..').Size;
|
478
|
+
disabled: boolean;
|
479
|
+
placeholder: string;
|
480
|
+
modelValue: string;
|
481
|
+
defaultValue: string;
|
482
|
+
maxLength: import('./type').MaxLength;
|
483
|
+
showWordLimit: boolean;
|
484
|
+
allowClear: boolean;
|
485
|
+
readonly: boolean;
|
486
|
+
wordLength: import('./type').WordLength;
|
487
|
+
wordSlice: import('./type').WordSlice;
|
488
|
+
inputAttrs: import('..').RecordType;
|
489
|
+
showInput: boolean;
|
490
|
+
}> & Omit<Readonly<import('./type').InputProps> & Readonly<{
|
491
|
+
onChange?: ((value: string, ev: Event) => any) | undefined;
|
492
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
493
|
+
onClear?: ((ev: MouseEvent) => any) | undefined;
|
494
|
+
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
495
|
+
onInput?: ((value: string, ev: Event) => any) | undefined;
|
496
|
+
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
497
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
498
|
+
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
499
|
+
}>, "focus" | "blur" | "setCursor" | "recordCursor" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
500
|
+
focus(): void;
|
501
|
+
blur(): void;
|
502
|
+
getInputRef(): HTMLInputElement;
|
503
|
+
setCursor?: () => void;
|
504
|
+
recordCursor?: () => void;
|
505
|
+
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
506
|
+
$slots: any;
|
507
|
+
}) | null;
|
508
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
509
|
+
P: {};
|
510
|
+
B: {};
|
511
|
+
D: {};
|
512
|
+
C: {};
|
513
|
+
M: {};
|
514
|
+
Defaults: {};
|
515
|
+
}, Readonly<import('./type').InputSearchProps> & Readonly<{
|
516
|
+
onSearch?: ((value: string, ev: MouseEvent) => any) | undefined;
|
517
|
+
}>, {
|
518
|
+
focus(): void;
|
519
|
+
blur(): void;
|
520
|
+
getInputRef(): HTMLInputElement;
|
521
|
+
setCursor?: () => void;
|
522
|
+
recordCursor?: () => void;
|
523
|
+
}, {}, {}, {}, {
|
524
|
+
size: import('..').Size;
|
525
|
+
disabled: boolean;
|
526
|
+
loading: boolean;
|
527
|
+
searchButton: boolean;
|
528
|
+
buttonText: string;
|
529
|
+
buttonProps: import('..').ButtonGroupProps;
|
530
|
+
}>;
|
531
|
+
__isFragment?: never;
|
532
|
+
__isTeleport?: never;
|
533
|
+
__isSuspense?: never;
|
534
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./type').InputSearchProps> & Readonly<{
|
535
|
+
onSearch?: ((value: string, ev: MouseEvent) => any) | undefined;
|
536
|
+
}>, {
|
537
|
+
focus(): void;
|
538
|
+
blur(): void;
|
539
|
+
getInputRef(): HTMLInputElement;
|
540
|
+
setCursor?: () => void;
|
541
|
+
recordCursor?: () => void;
|
542
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
543
|
+
search: (value: string, ev: MouseEvent) => any;
|
544
|
+
}, string, {
|
545
|
+
size: import('..').Size;
|
546
|
+
disabled: boolean;
|
547
|
+
loading: boolean;
|
548
|
+
searchButton: boolean;
|
549
|
+
buttonText: string;
|
550
|
+
buttonProps: import('..').ButtonGroupProps;
|
551
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
552
|
+
$slots: {
|
553
|
+
prepend?(_: {}): any;
|
554
|
+
append?(_: {}): any;
|
555
|
+
prefix?(_: {}): any;
|
556
|
+
suffix?(_: {}): any;
|
557
|
+
};
|
558
|
+
});
|
146
559
|
install: (app: App) => void;
|
147
560
|
};
|
561
|
+
export { _InputGroup as InputGroup, _InputPassword as InputPassword, _InputSearch as InputSearch, };
|
148
562
|
declare module 'vue' {
|
149
563
|
interface GlobalComponents {
|
150
564
|
YcInput: typeof Input;
|
565
|
+
YcInputGroup: typeof _InputGroup;
|
566
|
+
YcInputPassword: typeof _InputPassword;
|
567
|
+
YcInputSearch: typeof _InputSearch;
|
151
568
|
}
|
152
569
|
}
|
153
570
|
export default Input;
|
package/lib/Input/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Input.vue.js");;/* empty css */const t=Object.assign(e.default,{install:
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Input.vue.js");;/* empty css */const u=require("./InputSearch.vue.js"),t=require("./InputPassword.vue.js"),a=require("./InputGroup.vue.js");;/* empty css */const r=Object.assign(e.default,{group:a.default,password:t.default,search:u.default,install:r=>{r.component("Yc"+e.default.name,e.default),r.component("Yc"+u.default.name,u.default),r.component("Yc"+t.default.name,t.default),r.component("Yc"+a.default.name,a.default)}});exports.InputSearch=u.default,exports.InputPassword=t.default,exports.InputGroup=a.default,exports.default=r;
|