@uzum-tech/ui 1.3.0 → 1.4.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.js +83737 -65269
- package/dist/index.prod.js +12 -2
- package/es/__mocks__/vueuse-core.d.ts +5 -0
- package/es/__mocks__/vueuse-core.js +9 -0
- package/es/_internal/checkbox/src/use-checkbox.d.ts +4 -4
- package/es/_internal/close/src/Close.d.ts +2 -2
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +3 -3
- package/es/_internal/icons/CheckmarkCircle.d.ts +2 -0
- package/es/_internal/icons/CheckmarkCircle.js +9 -0
- package/es/_internal/icons/ContentCopy.d.ts +2 -0
- package/es/_internal/icons/ContentCopy.js +8 -0
- package/es/_internal/icons/DismissCircle.d.ts +2 -0
- package/es/_internal/icons/DismissCircle.js +9 -0
- package/es/_internal/icons/Edit.d.ts +2 -0
- package/es/_internal/icons/Edit.js +9 -0
- package/es/_internal/icons/FileHeart.d.ts +2 -0
- package/es/_internal/icons/FileHeart.js +8 -0
- package/es/_internal/icons/SiderUnionBorder.d.ts +2 -0
- package/es/_internal/icons/SiderUnionBorder.js +8 -0
- package/es/_internal/icons/index.d.ts +6 -0
- package/es/_internal/icons/index.js +6 -0
- package/es/_internal/loading/src/Loading.d.ts +2 -2
- package/es/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/es/_internal/radio/src/use-radio.d.ts +2 -2
- package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +2 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +83 -152
- package/es/_internal/select-menu/src/SelectOption.d.ts +2 -2
- package/es/_internal/select-menu/styles/light.d.ts +11 -5
- package/es/_internal/selection/src/Selection.d.ts +13 -124
- package/es/_internal/skeleton/src/Skeleton.d.ts +1 -1
- package/es/_utils/composable/use-adjusted-to.d.ts +1 -1
- package/es/_utils/cssr/index.d.ts +1 -1
- package/es/_utils/debounce/index.d.ts +1 -0
- package/es/_utils/debounce/index.js +10 -0
- package/es/_utils/inject/index.d.ts +1 -1
- package/es/_utils/vue/render.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +4 -4
- package/es/alert/src/Alert.d.ts +8 -120
- package/es/anchor/src/AnchorAdapter.d.ts +4 -4
- package/es/anchor/src/BaseAnchor.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +130 -175
- package/es/auto-complete/styles/light.d.ts +11 -5
- package/es/avatar/src/Avatar.d.ts +3 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +6 -117
- package/es/back-top/src/BackTop.d.ts +4 -4
- package/es/badge/src/Badge.d.ts +7 -7
- package/es/button/src/Button.d.ts +14 -14
- package/es/calendar/src/Calendar.d.ts +3 -114
- package/es/card/src/Card.d.ts +19 -130
- package/es/card-list/index.d.ts +2 -0
- package/es/card-list/index.js +1 -0
- package/es/card-list/src/CardList.d.ts +259 -0
- package/es/card-list/src/CardList.js +69 -0
- package/es/card-list/src/CardListItem.d.ts +70 -0
- package/es/card-list/src/CardListItem.js +112 -0
- package/es/card-list/src/interface.d.ts +12 -0
- package/es/card-list/src/interface.js +1 -0
- package/es/card-list/src/styles/index.cssr.d.ts +2 -0
- package/es/card-list/src/styles/index.cssr.js +101 -0
- package/es/card-list/styles/dark.d.ts +3 -0
- package/es/card-list/styles/dark.js +8 -0
- package/es/card-list/styles/index.d.ts +3 -0
- package/es/card-list/styles/index.js +2 -0
- package/es/card-list/styles/light.d.ts +22 -0
- package/es/card-list/styles/light.js +26 -0
- package/es/carousel/src/Carousel.d.ts +23 -25
- package/es/carousel/src/CarouselDots.d.ts +5 -5
- package/es/cascader/src/Cascader.d.ts +246 -231
- package/es/cascader/src/CascaderMenu.d.ts +36 -129
- package/es/cascader/src/CascaderOption.d.ts +34 -127
- package/es/cascader/src/CascaderSelectMenu.d.ts +35 -128
- package/es/cascader/src/CascaderSubmenu.d.ts +34 -127
- package/es/cascader/styles/light.d.ts +22 -10
- package/es/checkbox/src/Checkbox.d.ts +18 -129
- package/es/checkbox/src/CheckboxGroup.d.ts +14 -14
- package/es/code/src/Code.d.ts +1 -1
- package/es/collapse/src/Collapse.d.ts +10 -121
- package/es/collapse/src/CollapseItem.d.ts +3 -3
- package/es/collapse/src/CollapseItemContent.d.ts +2 -2
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/color-picker/src/ColorInput.d.ts +2 -2
- package/es/color-picker/src/ColorInputUnit.d.ts +3 -114
- package/es/color-picker/src/ColorPicker.d.ts +7 -7
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +10 -366
- package/es/config-provider/src/config.js +5 -5
- package/es/config-provider/src/internal-interface.d.ts +3 -1
- package/es/countdown/src/Countdown.d.ts +4 -4
- package/es/data-table/src/DataTable.d.ts +308 -255
- package/es/data-table/src/DataTable.js +153 -5
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +59 -137
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +62 -140
- package/es/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/es/data-table/src/MainTable.d.ts +4 -1
- package/es/data-table/src/MainTable.js +6 -4
- package/es/data-table/src/TableParts/Body.d.ts +68 -142
- package/es/data-table/src/TableParts/Body.js +27 -7
- package/es/data-table/src/TableParts/Cell.d.ts +8 -2828
- package/es/data-table/src/TableParts/Cell.js +64 -6
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/es/data-table/src/TableParts/Header.d.ts +60 -138
- package/es/data-table/src/TableParts/Header.js +7 -5
- package/es/data-table/src/interface.d.ts +135 -53
- package/es/data-table/src/styles/index.cssr.js +25 -1
- package/es/data-table/src/use-check.d.ts +1 -1
- package/es/data-table/src/use-expand.d.ts +1 -1
- package/es/data-table/src/use-group-header.js +4 -0
- package/es/data-table/src/use-mask.d.ts +10 -0
- package/es/data-table/src/use-mask.js +58 -0
- package/es/data-table/src/utils.d.ts +4 -0
- package/es/data-table/src/utils.js +4 -0
- package/es/data-table/styles/light.d.ts +39 -15
- package/es/data-table/styles/light.js +4 -1
- package/es/date-picker/src/DatePicker.d.ts +14 -125
- package/es/date-picker/src/panel/date.d.ts +6 -129
- package/es/date-picker/src/panel/daterange.d.ts +7 -118
- package/es/date-picker/src/panel/datetime.d.ts +6 -117
- package/es/date-picker/src/panel/datetimerange.d.ts +7 -118
- package/es/date-picker/src/panel/panelMonth.d.ts +41 -299
- package/es/date-picker/src/panel/panelMonthContent.d.ts +6 -123
- package/es/date-picker/src/panel/panelYear.d.ts +41 -299
- package/es/date-picker/src/panel/panelYearContent.d.ts +6 -135
- package/es/date-picker/src/panel/use-calendar.d.ts +3 -114
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +8 -119
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -113
- package/es/date-picker/styles/_common.js +1 -1
- package/es/descriptions/src/Descriptions.d.ts +2 -2
- package/es/dialog/src/Dialog.d.ts +4 -115
- package/es/dialog/src/Dialog.js +1 -1
- package/es/dialog/src/DialogEnvironment.d.ts +5 -5
- package/es/dialog/src/DialogProvider.d.ts +40 -40
- package/es/dialog/src/dialogProps.d.ts +2 -2
- package/es/divider/src/Divider.d.ts +4 -4
- package/es/drawer/src/Drawer.d.ts +21 -119
- package/es/drawer/src/Drawer.js +4 -1
- package/es/drawer/src/DrawerBodyWrapper.d.ts +12 -114
- package/es/drawer/src/DrawerBodyWrapper.js +6 -0
- package/es/drawer/src/DrawerContent.d.ts +1 -112
- package/es/drawer/src/styles/index.cssr.js +3 -2
- package/es/drawer/styles/_common.js +2 -2
- package/es/dropdown/src/Dropdown.d.ts +31 -142
- package/es/dropdown/src/DropdownGroup.d.ts +3 -2
- package/es/dropdown/src/DropdownMenu.d.ts +3 -2
- package/es/dropdown/src/DropdownOption.d.ts +4 -3
- package/es/dropdown/src/DropdownRenderOption.d.ts +3 -2
- package/es/dynamic-input/src/DynamicInput.d.ts +3 -114
- package/es/dynamic-input/src/InputPreset.d.ts +1 -112
- package/es/dynamic-input/src/PairPreset.d.ts +1 -112
- package/es/dynamic-tags/src/DynamicTags.d.ts +14 -125
- package/es/ellipsis/src/Ellipsis.d.ts +4 -115
- package/es/ellipsis/src/PerformantEllipsis.d.ts +2 -2
- package/es/empty/src/Empty.d.ts +109 -48
- package/es/empty/src/Empty.js +27 -9
- package/es/empty/src/styles/index.cssr.js +38 -11
- package/es/empty/styles/light.d.ts +11 -5
- package/es/empty/styles/light.js +17 -11
- package/es/equation/src/Equation.d.ts +4 -3
- package/es/flex/src/Flex.d.ts +13 -12
- package/es/form/src/Form.d.ts +4 -4
- package/es/form/src/Form.js +2 -2
- package/es/form/src/FormItem.d.ts +23 -10
- package/es/form/src/FormItem.js +20 -7
- package/es/form/src/FormItemCol.d.ts +22 -9
- package/es/form/src/FormItemGridItem.d.ts +24 -11
- package/es/form/src/FormItemRow.d.ts +21 -8
- package/es/form/src/utils.d.ts +3 -2
- package/es/form/src/utils.js +16 -0
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/grid/src/Grid.d.ts +18 -18
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/icon/src/Icon.d.ts +3 -3
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/image/src/Image.d.ts +5 -5
- package/es/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImagePreview.d.ts +1 -1
- package/es/input/src/Input.d.ts +79 -155
- package/es/input/src/Input.js +54 -17
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input/src/use-clipboard.d.ts +9 -0
- package/es/input/src/use-clipboard.js +47 -0
- package/es/input-number/src/InputNumber.d.ts +14 -125
- package/es/layout/src/Layout.d.ts +4 -226
- package/es/layout/src/LayoutContent.d.ts +2 -113
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutHeader.d.ts +2 -2
- package/es/layout/src/LayoutHeader.js +5 -1
- package/es/layout/src/LayoutSider.d.ts +10 -121
- package/es/layout/src/LayoutSider.js +3 -3
- package/es/layout/src/ToggleSidebarButton.d.ts +15 -0
- package/es/layout/src/ToggleSidebarButton.js +23 -0
- package/es/layout/src/interface.d.ts +1 -1
- package/es/layout/src/styles/layout-header.cssr.js +4 -1
- package/es/layout/src/styles/layout-sider.cssr.js +64 -6
- package/es/layout/src/utils/resolveTriggerComponent.d.ts +51 -0
- package/es/layout/src/utils/resolveTriggerComponent.js +13 -0
- package/es/legacy-transfer/src/Transfer.d.ts +112 -163
- package/es/legacy-transfer/src/TransferFilter.d.ts +12 -117
- package/es/legacy-transfer/src/TransferList.d.ts +12 -117
- package/es/legacy-transfer/src/TransferListItem.d.ts +13 -118
- package/es/legacy-transfer/styles/light.d.ts +11 -5
- package/es/list/src/List.d.ts +6 -6
- package/es/list/src/ListItem.d.ts +5 -5
- package/es/loading-bar/src/LoadingBar.d.ts +1 -1
- package/es/loading-bar/src/LoadingBar.js +2 -2
- package/es/loading-bar/src/LoadingBarProvider.d.ts +9 -9
- package/es/locales/common/arDZ.js +9 -2
- package/es/locales/common/deDE.js +9 -2
- package/es/locales/common/enGB.js +9 -2
- package/es/locales/common/enUS.d.ts +8 -1
- package/es/locales/common/enUS.js +9 -2
- package/es/locales/common/eo.js +9 -2
- package/es/locales/common/esAR.js +9 -2
- package/es/locales/common/faIR.js +9 -2
- package/es/locales/common/frFR.js +9 -2
- package/es/locales/common/idID.js +9 -2
- package/es/locales/common/itIT.js +9 -2
- package/es/locales/common/jaJP.js +9 -2
- package/es/locales/common/koKR.js +9 -2
- package/es/locales/common/nbNO.js +9 -2
- package/es/locales/common/nlNL.js +9 -2
- package/es/locales/common/plPL.js +9 -2
- package/es/locales/common/ptBR.js +9 -2
- package/es/locales/common/ruRU.js +9 -2
- package/es/locales/common/skSK.js +9 -2
- package/es/locales/common/svSE.js +9 -2
- package/es/locales/common/thTH.js +9 -2
- package/es/locales/common/trTR.js +9 -2
- package/es/locales/common/ukUA.js +9 -2
- package/es/locales/common/viVN.js +9 -2
- package/es/locales/common/zhCN.js +9 -2
- package/es/locales/common/zhTW.js +9 -2
- package/es/log/src/Log.d.ts +8 -120
- package/es/mention/src/Mention.d.ts +140 -185
- package/es/mention/src/utils.js +4 -4
- package/es/mention/styles/light.d.ts +11 -5
- package/es/menu/src/Menu.d.ts +16 -127
- package/es/menu/src/MenuOption.d.ts +2 -113
- package/es/menu/src/MenuOptionGroup.d.ts +1 -1
- package/es/menu/src/Submenu.d.ts +2 -113
- package/es/message/src/Message.d.ts +1 -1
- package/es/message/src/MessageEnvironment.d.ts +1 -1
- package/es/message/src/MessageProvider.d.ts +5 -5
- package/es/modal/src/BodyWrapper.d.ts +8 -119
- package/es/modal/src/Modal.d.ts +17 -17
- package/es/modal/src/presetProps.d.ts +2 -2
- package/es/notification/src/Notification.d.ts +5 -5
- package/es/notification/src/NotificationContainer.d.ts +1 -112
- package/es/notification/src/NotificationEnvironment.d.ts +4 -4
- package/es/notification/src/NotificationProvider.d.ts +17 -17
- package/es/number-animation/src/NumberAnimation.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +263 -242
- package/es/pagination/styles/light.d.ts +22 -10
- package/es/popconfirm/src/Popconfirm.d.ts +29 -140
- package/es/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +30 -30
- package/es/popover/src/PopoverBody.d.ts +19 -19
- package/es/popselect/src/Popselect.d.ts +195 -240
- package/es/popselect/src/PopselectPanel.d.ts +26 -125
- package/es/popselect/styles/light.d.ts +11 -5
- package/es/preset.d.ts +1 -1
- package/es/progress/src/Line.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +2 -2
- package/es/progress/src/Progress.d.ts +6 -6
- package/es/radio/src/Radio.d.ts +10 -10
- package/es/radio/src/RadioButton.d.ts +6 -6
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/result/src/Result.d.ts +4 -4
- package/es/select/src/Select.d.ts +141 -186
- package/es/select/styles/light.d.ts +11 -5
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +9 -9
- package/es/space/src/Space.d.ts +5 -5
- package/es/spin/src/Spin.d.ts +8 -8
- package/es/steps/src/Step.js +1 -2
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/switch/src/Switch.d.ts +11 -11
- package/es/table/src/Table.d.ts +1 -1
- package/es/tabs/src/Tab.d.ts +10 -22
- package/es/tabs/src/TabPane.d.ts +9 -21
- package/es/tabs/src/Tabs.d.ts +29 -30
- package/es/tag/src/Tag.d.ts +11 -11
- package/es/tag/src/common-props.d.ts +2 -2
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/time/src/Time.d.ts +2 -2
- package/es/time-picker/src/Panel.d.ts +3 -114
- package/es/time-picker/src/PanelCol.d.ts +4 -4
- package/es/time-picker/src/TimePicker.d.ts +17 -128
- package/es/timeline/src/TimelineItem.d.ts +4 -4
- package/es/toggle-button/src/ToggleButton.d.ts +12 -12
- package/es/tooltip/src/Tooltip.d.ts +25 -136
- package/es/transfer/src/Transfer.d.ts +112 -163
- package/es/transfer/src/TransferFilter.d.ts +12 -117
- package/es/transfer/src/TransferList.d.ts +12 -117
- package/es/transfer/src/TransferListItem.d.ts +13 -118
- package/es/transfer/styles/light.d.ts +11 -5
- package/es/tree/src/MotionWrapper.d.ts +2 -2
- package/es/tree/src/Tree.d.ts +148 -199
- package/es/tree/src/TreeNodeCheckbox.d.ts +13 -118
- package/es/tree/src/TreeNodeContent.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.d.ts +3 -3
- package/es/tree/styles/light.d.ts +11 -5
- package/es/tree-select/src/TreeSelect.d.ts +269 -260
- package/es/tree-select/styles/light.d.ts +22 -10
- package/es/typography/src/create-header.d.ts +5 -5
- package/es/typography/src/headers.d.ts +18 -18
- package/es/typography/src/p.d.ts +3 -3
- package/es/typography/src/text.d.ts +6 -6
- package/es/upload/src/Upload.d.ts +137 -137
- package/es/upload/src/Upload.js +60 -188
- package/es/upload/src/UploadFile.d.ts +17 -115
- package/es/upload/src/UploadFile.js +57 -54
- package/es/upload/src/UploadFileList.js +2 -2
- package/es/upload/src/UploadProgress.d.ts +9 -114
- package/es/upload/src/UploadTrigger.js +20 -7
- package/es/upload/src/interface.d.ts +42 -0
- package/es/upload/src/styles/index.cssr.js +159 -34
- package/es/upload/src/useUpload.d.ts +2 -0
- package/es/upload/src/useUpload.js +163 -0
- package/es/upload/src/useUploadActionsRender.d.ts +26 -0
- package/es/upload/src/useUploadActionsRender.js +85 -0
- package/es/upload/src/useUploadInternals.d.ts +25 -0
- package/es/upload/src/useUploadInternals.js +37 -0
- package/es/upload/src/utils.d.ts +2 -1
- package/es/upload/src/utils.js +5 -0
- package/es/upload/styles/light.d.ts +12 -0
- package/es/upload/styles/light.js +8 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/src/Watermark.d.ts +6 -6
- package/lib/__mocks__/vueuse-core.d.ts +5 -0
- package/lib/__mocks__/vueuse-core.js +9 -0
- package/lib/_internal/checkbox/src/use-checkbox.d.ts +4 -4
- package/lib/_internal/close/src/Close.d.ts +2 -2
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +3 -3
- package/lib/_internal/icons/CheckmarkCircle.d.ts +2 -0
- package/lib/_internal/icons/CheckmarkCircle.js +11 -0
- package/lib/_internal/icons/ContentCopy.d.ts +2 -0
- package/lib/_internal/icons/ContentCopy.js +10 -0
- package/lib/_internal/icons/DismissCircle.d.ts +2 -0
- package/lib/_internal/icons/DismissCircle.js +11 -0
- package/lib/_internal/icons/Edit.d.ts +2 -0
- package/lib/_internal/icons/Edit.js +11 -0
- package/lib/_internal/icons/FileHeart.d.ts +2 -0
- package/lib/_internal/icons/FileHeart.js +10 -0
- package/lib/_internal/icons/SiderUnionBorder.d.ts +2 -0
- package/lib/_internal/icons/SiderUnionBorder.js +10 -0
- package/lib/_internal/icons/index.d.ts +6 -0
- package/lib/_internal/icons/index.js +14 -1
- package/lib/_internal/icons/replaceable.js +1 -2
- package/lib/_internal/loading/src/Loading.d.ts +2 -2
- package/lib/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/lib/_internal/radio/src/use-radio.d.ts +2 -2
- package/lib/_internal/radio/src/use-radio.js +2 -2
- package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +2 -2
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +83 -152
- package/lib/_internal/select-menu/src/SelectOption.d.ts +2 -2
- package/lib/_internal/select-menu/styles/light.d.ts +11 -5
- package/lib/_internal/selection/src/Selection.d.ts +13 -124
- package/lib/_internal/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/_mixins/use-config.js +3 -3
- package/lib/_mixins/use-css-vars-class.js +1 -2
- package/lib/_mixins/use-form-item.js +1 -1
- package/lib/_mixins/use-hljs.js +1 -1
- package/lib/_mixins/use-locale.js +1 -1
- package/lib/_mixins/use-rtl.js +1 -2
- package/lib/_mixins/use-style.js +1 -1
- package/lib/_mixins/use-theme.js +1 -2
- package/lib/_resolvers/auto-import/auto-import-resolver.js +1 -2
- package/lib/_styles/transitions/fade-down.cssr.js +2 -3
- package/lib/_styles/transitions/fade-in-height-expand.cssr.js +2 -3
- package/lib/_styles/transitions/fade-in-scale-up.cssr.js +2 -3
- package/lib/_styles/transitions/fade-in-width-expand.cssr.js +2 -3
- package/lib/_styles/transitions/fade-in.cssr.js +2 -3
- package/lib/_styles/transitions/fade-up-width-expand.cssr.js +2 -3
- package/lib/_styles/transitions/icon-switch.cssr.js +2 -3
- package/lib/_styles/transitions/slide-in-from-bottom.js +1 -2
- package/lib/_styles/transitions/slide-in-from-left.js +1 -2
- package/lib/_styles/transitions/slide-in-from-right.js +1 -2
- package/lib/_styles/transitions/slide-in-from-top.js +1 -2
- package/lib/_utils/color/index.js +3 -4
- package/lib/_utils/composable/use-adjusted-to.d.ts +1 -1
- package/lib/_utils/composable/use-adjusted-to.js +1 -2
- package/lib/_utils/composable/use-collection.js +3 -4
- package/lib/_utils/composable/use-deferred-true.js +1 -2
- package/lib/_utils/composable/use-houdini.js +1 -2
- package/lib/_utils/composable/use-lock-html-scroll.js +2 -2
- package/lib/_utils/composable/use-reactivated.js +1 -2
- package/lib/_utils/composable/use-resize.js +1 -2
- package/lib/_utils/css/color-to-class.js +1 -2
- package/lib/_utils/css/format-length.js +1 -2
- package/lib/_utils/cssr/create-key.js +1 -2
- package/lib/_utils/cssr/index.d.ts +1 -1
- package/lib/_utils/cssr/index.js +4 -4
- package/lib/_utils/debounce/index.d.ts +1 -0
- package/lib/_utils/debounce/index.js +13 -0
- package/lib/_utils/dom/is-document.js +1 -2
- package/lib/_utils/env/is-jsdom.js +1 -2
- package/lib/_utils/event/index.js +2 -3
- package/lib/_utils/inject/index.d.ts +1 -1
- package/lib/_utils/uzum/attribute.js +1 -2
- package/lib/_utils/uzum/prop.js +2 -3
- package/lib/_utils/uzum/warn.js +3 -4
- package/lib/_utils/vue/call.js +1 -2
- package/lib/_utils/vue/create-data-key.js +1 -2
- package/lib/_utils/vue/create-injection-key.js +1 -2
- package/lib/_utils/vue/create-ref-setter.js +1 -2
- package/lib/_utils/vue/flatten.js +1 -2
- package/lib/_utils/vue/get-first-slot-vnode.js +1 -2
- package/lib/_utils/vue/get-slot.js +1 -2
- package/lib/_utils/vue/get-v-node-children.js +1 -2
- package/lib/_utils/vue/is-node-v-show-false.js +1 -2
- package/lib/_utils/vue/keep.js +1 -2
- package/lib/_utils/vue/keysOf.js +1 -2
- package/lib/_utils/vue/merge-handlers.js +1 -2
- package/lib/_utils/vue/omit.js +1 -2
- package/lib/_utils/vue/render.d.ts +1 -1
- package/lib/_utils/vue/resolve-slot.js +5 -6
- package/lib/affix/src/Affix.d.ts +4 -4
- package/lib/affix/src/utils.js +2 -3
- package/lib/alert/src/Alert.d.ts +8 -120
- package/lib/anchor/src/AnchorAdapter.d.ts +4 -4
- package/lib/anchor/src/BaseAnchor.d.ts +2 -2
- package/lib/anchor/src/utils.js +1 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +130 -175
- package/lib/auto-complete/src/utils.js +1 -2
- package/lib/auto-complete/styles/light.d.ts +11 -5
- package/lib/auto-complete/styles/light.js +1 -2
- package/lib/avatar/src/Avatar.d.ts +3 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +6 -117
- package/lib/back-top/src/BackTop.d.ts +4 -4
- package/lib/badge/src/Badge.d.ts +7 -7
- package/lib/button/src/Button.d.ts +14 -14
- package/lib/calendar/src/Calendar.d.ts +3 -114
- package/lib/card/src/Card.d.ts +19 -130
- package/lib/card-list/index.d.ts +2 -0
- package/lib/card-list/index.js +9 -0
- package/lib/card-list/src/CardList.d.ts +259 -0
- package/lib/card-list/src/CardList.js +75 -0
- package/lib/card-list/src/CardListItem.d.ts +70 -0
- package/lib/card-list/src/CardListItem.js +117 -0
- package/lib/card-list/src/interface.d.ts +12 -0
- package/lib/card-list/src/interface.js +2 -0
- package/lib/card-list/src/styles/index.cssr.d.ts +2 -0
- package/lib/card-list/src/styles/index.cssr.js +106 -0
- package/lib/card-list/styles/dark.d.ts +3 -0
- package/lib/card-list/styles/dark.js +10 -0
- package/lib/card-list/styles/index.d.ts +3 -0
- package/lib/card-list/styles/index.js +10 -0
- package/lib/card-list/styles/light.d.ts +22 -0
- package/lib/card-list/styles/light.js +30 -0
- package/lib/carousel/src/Carousel.d.ts +23 -25
- package/lib/carousel/src/CarouselDots.d.ts +5 -5
- package/lib/carousel/src/utils/duplicatedLogic.js +6 -7
- package/lib/carousel/src/utils/event.js +1 -2
- package/lib/carousel/src/utils/index.js +3 -4
- package/lib/cascader/src/Cascader.d.ts +246 -231
- package/lib/cascader/src/CascaderMenu.d.ts +36 -129
- package/lib/cascader/src/CascaderOption.d.ts +34 -127
- package/lib/cascader/src/CascaderSelectMenu.d.ts +35 -128
- package/lib/cascader/src/CascaderSubmenu.d.ts +34 -127
- package/lib/cascader/src/utils.js +3 -4
- package/lib/cascader/styles/light.d.ts +22 -10
- package/lib/checkbox/src/Checkbox.d.ts +18 -129
- package/lib/checkbox/src/CheckboxGroup.d.ts +14 -14
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/collapse/src/Collapse.d.ts +10 -121
- package/lib/collapse/src/CollapseItem.d.ts +3 -3
- package/lib/collapse/src/CollapseItemContent.d.ts +2 -2
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/color-picker/src/ColorInput.d.ts +2 -2
- package/lib/color-picker/src/ColorInputUnit.d.ts +3 -114
- package/lib/color-picker/src/ColorPicker.d.ts +7 -7
- package/lib/color-picker/src/utils.js +6 -7
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/composables/use-theme-vars.js +1 -2
- package/lib/config-provider/src/ConfigProvider.d.ts +10 -366
- package/lib/config-provider/src/config.js +5 -5
- package/lib/config-provider/src/internal-interface.d.ts +3 -1
- package/lib/countdown/src/Countdown.d.ts +4 -4
- package/lib/data-table/src/DataTable.d.ts +308 -255
- package/lib/data-table/src/DataTable.js +153 -5
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +59 -137
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +62 -140
- package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/lib/data-table/src/MainTable.d.ts +4 -1
- package/lib/data-table/src/MainTable.js +6 -4
- package/lib/data-table/src/TableParts/Body.d.ts +68 -142
- package/lib/data-table/src/TableParts/Body.js +27 -7
- package/lib/data-table/src/TableParts/Cell.d.ts +8 -2828
- package/lib/data-table/src/TableParts/Cell.js +65 -7
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/lib/data-table/src/TableParts/Header.d.ts +60 -138
- package/lib/data-table/src/TableParts/Header.js +7 -5
- package/lib/data-table/src/interface.d.ts +135 -53
- package/lib/data-table/src/styles/index.cssr.js +25 -1
- package/lib/data-table/src/use-check.d.ts +1 -1
- package/lib/data-table/src/use-check.js +1 -2
- package/lib/data-table/src/use-expand.d.ts +1 -1
- package/lib/data-table/src/use-expand.js +1 -2
- package/lib/data-table/src/use-group-header.js +5 -2
- package/lib/data-table/src/use-mask.d.ts +10 -0
- package/lib/data-table/src/use-mask.js +63 -0
- package/lib/data-table/src/use-resizable.js +1 -2
- package/lib/data-table/src/use-scroll.js +1 -2
- package/lib/data-table/src/use-sorter.js +1 -2
- package/lib/data-table/src/use-table-data.js +1 -2
- package/lib/data-table/src/utils.d.ts +4 -0
- package/lib/data-table/src/utils.js +19 -15
- package/lib/data-table/styles/light.d.ts +39 -15
- package/lib/data-table/styles/light.js +4 -1
- package/lib/date-picker/src/DatePicker.d.ts +14 -125
- package/lib/date-picker/src/panel/date.d.ts +6 -129
- package/lib/date-picker/src/panel/daterange.d.ts +7 -118
- package/lib/date-picker/src/panel/datetime.d.ts +6 -117
- package/lib/date-picker/src/panel/datetimerange.d.ts +7 -118
- package/lib/date-picker/src/panel/panelMonth.d.ts +41 -299
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +6 -123
- package/lib/date-picker/src/panel/panelYear.d.ts +41 -299
- package/lib/date-picker/src/panel/panelYearContent.d.ts +6 -135
- package/lib/date-picker/src/panel/use-calendar.d.ts +3 -114
- package/lib/date-picker/src/panel/use-calendar.js +2 -2
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +8 -119
- package/lib/date-picker/src/panel/use-dual-calendar.js +2 -2
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -113
- package/lib/date-picker/src/panel/use-panel-common.js +2 -2
- package/lib/date-picker/src/utils.js +9 -10
- package/lib/date-picker/src/validation-utils.js +2 -3
- package/lib/date-picker/styles/_common.js +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +2 -2
- package/lib/descriptions/src/utils.js +2 -2
- package/lib/dialog/src/Dialog.d.ts +4 -115
- package/lib/dialog/src/Dialog.js +1 -1
- package/lib/dialog/src/DialogEnvironment.d.ts +5 -5
- package/lib/dialog/src/DialogProvider.d.ts +40 -40
- package/lib/dialog/src/composables.js +2 -3
- package/lib/dialog/src/dialogProps.d.ts +2 -2
- package/lib/discrete/src/discrete.js +1 -2
- package/lib/discrete/src/discreteApp.js +1 -2
- package/lib/divider/src/Divider.d.ts +4 -4
- package/lib/drawer/src/Drawer.d.ts +21 -119
- package/lib/drawer/src/Drawer.js +4 -1
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +12 -114
- package/lib/drawer/src/DrawerBodyWrapper.js +6 -0
- package/lib/drawer/src/DrawerContent.d.ts +1 -112
- package/lib/drawer/src/styles/index.cssr.js +3 -2
- package/lib/drawer/styles/_common.js +2 -2
- package/lib/dropdown/src/Dropdown.d.ts +31 -142
- package/lib/dropdown/src/DropdownGroup.d.ts +3 -2
- package/lib/dropdown/src/DropdownMenu.d.ts +3 -2
- package/lib/dropdown/src/DropdownOption.d.ts +4 -3
- package/lib/dropdown/src/DropdownRenderOption.d.ts +3 -2
- package/lib/dropdown/src/utils.js +4 -5
- package/lib/dynamic-input/src/DynamicInput.d.ts +3 -114
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -112
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -112
- package/lib/dynamic-tags/src/DynamicTags.d.ts +14 -125
- package/lib/ellipsis/src/Ellipsis.d.ts +4 -115
- package/lib/ellipsis/src/Ellipsis.js +3 -3
- package/lib/ellipsis/src/PerformantEllipsis.d.ts +2 -2
- package/lib/empty/src/Empty.d.ts +109 -48
- package/lib/empty/src/Empty.js +25 -7
- package/lib/empty/src/styles/index.cssr.js +37 -10
- package/lib/empty/styles/light.d.ts +11 -5
- package/lib/empty/styles/light.js +17 -11
- package/lib/equation/src/Equation.d.ts +4 -3
- package/lib/flex/src/Flex.d.ts +13 -12
- package/lib/form/src/Form.d.ts +4 -4
- package/lib/form/src/Form.js +2 -2
- package/lib/form/src/FormItem.d.ts +23 -10
- package/lib/form/src/FormItem.js +19 -6
- package/lib/form/src/FormItemCol.d.ts +22 -9
- package/lib/form/src/FormItemGridItem.d.ts +24 -11
- package/lib/form/src/FormItemRow.d.ts +21 -8
- package/lib/form/src/utils.d.ts +3 -2
- package/lib/form/src/utils.js +20 -4
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/grid/src/Grid.d.ts +18 -18
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/icon/src/Icon.d.ts +3 -3
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/image/src/Image.d.ts +5 -5
- package/lib/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImagePreview.d.ts +1 -1
- package/lib/input/src/Input.d.ts +79 -155
- package/lib/input/src/Input.js +54 -17
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input/src/use-clipboard.d.ts +9 -0
- package/lib/input/src/use-clipboard.js +50 -0
- package/lib/input/src/utils.js +3 -4
- package/lib/input-number/src/InputNumber.d.ts +14 -125
- package/lib/input-number/src/utils.js +5 -6
- package/lib/layout/src/Layout.d.ts +4 -226
- package/lib/layout/src/Layout.js +2 -2
- package/lib/layout/src/LayoutContent.d.ts +2 -113
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.d.ts +2 -2
- package/lib/layout/src/LayoutHeader.js +5 -1
- package/lib/layout/src/LayoutSider.d.ts +10 -121
- package/lib/layout/src/LayoutSider.js +3 -3
- package/lib/layout/src/ToggleSidebarButton.d.ts +15 -0
- package/lib/layout/src/ToggleSidebarButton.js +25 -0
- package/lib/layout/src/interface.d.ts +1 -1
- package/lib/layout/src/styles/layout-header.cssr.js +3 -0
- package/lib/layout/src/styles/layout-sider.cssr.js +64 -6
- package/lib/layout/src/utils/resolveTriggerComponent.d.ts +51 -0
- package/lib/layout/src/utils/resolveTriggerComponent.js +19 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +112 -163
- package/lib/legacy-transfer/src/TransferFilter.d.ts +12 -117
- package/lib/legacy-transfer/src/TransferList.d.ts +12 -117
- package/lib/legacy-transfer/src/TransferListItem.d.ts +13 -118
- package/lib/legacy-transfer/src/use-transfer-data.js +1 -2
- package/lib/legacy-transfer/styles/light.d.ts +11 -5
- package/lib/list/src/List.d.ts +6 -6
- package/lib/list/src/ListItem.d.ts +5 -5
- package/lib/loading-bar/src/LoadingBar.d.ts +1 -1
- package/lib/loading-bar/src/LoadingBar.js +2 -2
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +9 -9
- package/lib/loading-bar/src/use-loading-bar.js +1 -2
- package/lib/locales/common/arDZ.js +9 -2
- package/lib/locales/common/deDE.js +9 -2
- package/lib/locales/common/enGB.js +9 -2
- package/lib/locales/common/enUS.d.ts +8 -1
- package/lib/locales/common/enUS.js +9 -2
- package/lib/locales/common/eo.js +9 -2
- package/lib/locales/common/esAR.js +9 -2
- package/lib/locales/common/faIR.js +9 -2
- package/lib/locales/common/frFR.js +9 -2
- package/lib/locales/common/idID.js +9 -2
- package/lib/locales/common/itIT.js +9 -2
- package/lib/locales/common/jaJP.js +9 -2
- package/lib/locales/common/koKR.js +9 -2
- package/lib/locales/common/nbNO.js +9 -2
- package/lib/locales/common/nlNL.js +9 -2
- package/lib/locales/common/plPL.js +9 -2
- package/lib/locales/common/ptBR.js +9 -2
- package/lib/locales/common/ruRU.js +9 -2
- package/lib/locales/common/skSK.js +9 -2
- package/lib/locales/common/svSE.js +9 -2
- package/lib/locales/common/thTH.js +9 -2
- package/lib/locales/common/trTR.js +9 -2
- package/lib/locales/common/ukUA.js +9 -2
- package/lib/locales/common/viVN.js +9 -2
- package/lib/locales/common/zhCN.js +9 -2
- package/lib/locales/common/zhTW.js +9 -2
- package/lib/locales/utils/index.js +1 -2
- package/lib/log/src/Log.d.ts +8 -120
- package/lib/mention/src/Mention.d.ts +140 -185
- package/lib/mention/src/utils.js +7 -8
- package/lib/mention/styles/light.d.ts +11 -5
- package/lib/menu/src/Menu.d.ts +16 -127
- package/lib/menu/src/MenuOption.d.ts +2 -113
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
- package/lib/menu/src/Submenu.d.ts +2 -113
- package/lib/menu/src/use-menu-child.js +1 -2
- package/lib/menu/src/useCheckDeprecated.js +1 -2
- package/lib/menu/src/utils.js +3 -4
- package/lib/menu/styles/light.js +2 -2
- package/lib/message/src/Message.d.ts +1 -1
- package/lib/message/src/MessageEnvironment.d.ts +1 -1
- package/lib/message/src/MessageProvider.d.ts +5 -5
- package/lib/message/src/use-message.js +1 -2
- package/lib/modal/src/BodyWrapper.d.ts +8 -119
- package/lib/modal/src/Modal.d.ts +17 -17
- package/lib/modal/src/presetProps.d.ts +2 -2
- package/lib/notification/src/Notification.d.ts +5 -5
- package/lib/notification/src/NotificationContainer.d.ts +1 -112
- package/lib/notification/src/NotificationEnvironment.d.ts +4 -4
- package/lib/notification/src/NotificationProvider.d.ts +17 -17
- package/lib/notification/src/use-notification.js +1 -2
- package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
- package/lib/number-animation/src/utils.js +1 -2
- package/lib/page-header/styles/light.js +2 -2
- package/lib/pagination/src/Pagination.d.ts +263 -242
- package/lib/pagination/src/utils.js +1 -2
- package/lib/pagination/styles/light.d.ts +22 -10
- package/lib/popconfirm/src/Popconfirm.d.ts +29 -140
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +30 -30
- package/lib/popover/src/PopoverBody.d.ts +19 -19
- package/lib/popselect/src/Popselect.d.ts +195 -240
- package/lib/popselect/src/PopselectPanel.d.ts +26 -125
- package/lib/popselect/styles/light.d.ts +11 -5
- package/lib/popselect/styles/light.js +1 -2
- package/lib/preset.d.ts +1 -1
- package/lib/progress/src/Line.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +2 -2
- package/lib/progress/src/Progress.d.ts +6 -6
- package/lib/radio/src/Radio.d.ts +10 -10
- package/lib/radio/src/RadioButton.d.ts +6 -6
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/result/src/Result.d.ts +4 -4
- package/lib/select/src/Select.d.ts +141 -186
- package/lib/select/src/utils.js +6 -7
- package/lib/select/styles/light.d.ts +11 -5
- package/lib/select/styles/light.js +1 -2
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +9 -9
- package/lib/slider/src/utils.js +2 -3
- package/lib/space/src/Space.d.ts +5 -5
- package/lib/spin/src/Spin.d.ts +8 -8
- package/lib/steps/src/Step.js +3 -4
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +153 -151
- package/lib/switch/src/Switch.d.ts +11 -11
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/tabs/src/Tab.d.ts +10 -22
- package/lib/tabs/src/TabPane.d.ts +9 -21
- package/lib/tabs/src/Tabs.d.ts +29 -30
- package/lib/tag/src/Tag.d.ts +11 -11
- package/lib/tag/src/common-props.d.ts +2 -2
- package/lib/themes/dark.js +148 -146
- package/lib/themes/light.js +148 -146
- package/lib/themes/utils.js +1 -2
- package/lib/time/src/Time.d.ts +2 -2
- package/lib/time-picker/src/Panel.d.ts +3 -114
- package/lib/time-picker/src/PanelCol.d.ts +4 -4
- package/lib/time-picker/src/TimePicker.d.ts +17 -128
- package/lib/time-picker/src/utils.js +6 -6
- package/lib/timeline/src/TimelineItem.d.ts +4 -4
- package/lib/toggle-button/src/ToggleButton.d.ts +12 -12
- package/lib/tooltip/src/Tooltip.d.ts +25 -136
- package/lib/transfer/src/Transfer.d.ts +112 -163
- package/lib/transfer/src/TransferFilter.d.ts +12 -117
- package/lib/transfer/src/TransferList.d.ts +12 -117
- package/lib/transfer/src/TransferListItem.d.ts +13 -118
- package/lib/transfer/src/use-transfer-data.js +1 -2
- package/lib/transfer/styles/light.d.ts +11 -5
- package/lib/tree/src/MotionWrapper.d.ts +2 -2
- package/lib/tree/src/Tree.d.ts +148 -199
- package/lib/tree/src/Tree.js +2 -2
- package/lib/tree/src/TreeNodeCheckbox.d.ts +13 -118
- package/lib/tree/src/TreeNodeContent.d.ts +1 -1
- package/lib/tree/src/TreeNodeSwitcher.d.ts +3 -3
- package/lib/tree/src/dnd.js +2 -3
- package/lib/tree/src/keyboard.js +1 -2
- package/lib/tree/src/utils.js +5 -5
- package/lib/tree/styles/light.d.ts +11 -5
- package/lib/tree-select/src/TreeSelect.d.ts +269 -260
- package/lib/tree-select/src/utils.js +2 -3
- package/lib/tree-select/styles/light.d.ts +22 -10
- package/lib/typography/src/create-header.d.ts +5 -5
- package/lib/typography/src/headers.d.ts +18 -18
- package/lib/typography/src/p.d.ts +3 -3
- package/lib/typography/src/text.d.ts +6 -6
- package/lib/upload/src/Upload.d.ts +137 -137
- package/lib/upload/src/Upload.js +58 -209
- package/lib/upload/src/UploadFile.d.ts +17 -115
- package/lib/upload/src/UploadFile.js +55 -55
- package/lib/upload/src/UploadFileList.js +2 -2
- package/lib/upload/src/UploadProgress.d.ts +9 -114
- package/lib/upload/src/UploadTrigger.js +19 -6
- package/lib/upload/src/interface.d.ts +42 -0
- package/lib/upload/src/styles/index.cssr.js +159 -34
- package/lib/upload/src/useUpload.d.ts +2 -0
- package/lib/upload/src/useUpload.js +166 -0
- package/lib/upload/src/useUploadActionsRender.d.ts +26 -0
- package/lib/upload/src/useUploadActionsRender.js +88 -0
- package/lib/upload/src/useUploadInternals.d.ts +25 -0
- package/lib/upload/src/useUploadInternals.js +43 -0
- package/lib/upload/src/utils.d.ts +2 -1
- package/lib/upload/src/utils.js +13 -7
- package/lib/upload/styles/light.d.ts +12 -0
- package/lib/upload/styles/light.js +8 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +6 -6
- package/package.json +53 -50
- package/volar.d.ts +2 -1
- package/web-types.json +259 -9
package/lib/input/src/Input.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PropType, type InputHTMLAttributes, type TextareaHTMLAttributes, type VNodeChild } from 'vue';
|
|
1
|
+
import { h, type PropType, type InputHTMLAttributes, type TextareaHTMLAttributes, type VNodeChild } from 'vue';
|
|
2
2
|
import type { FormValidationStatus } from '../../form/src/interface';
|
|
3
3
|
import { type ExtractPublicPropTypes, type MaybeArray } from '../../_utils';
|
|
4
4
|
import type { OnUpdateValue, InputSize } from './interface';
|
|
@@ -8,49 +8,56 @@ export declare const inputProps: {
|
|
|
8
8
|
default: undefined;
|
|
9
9
|
};
|
|
10
10
|
type: {
|
|
11
|
-
type: PropType<"
|
|
11
|
+
type: PropType<"text" | "textarea" | "password">;
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
14
|
placeholder: PropType<string | [string, string]>;
|
|
15
15
|
defaultValue: {
|
|
16
|
-
type: PropType<string | [string, string]
|
|
16
|
+
type: PropType<null | string | [string, string]>;
|
|
17
17
|
default: null;
|
|
18
18
|
};
|
|
19
|
-
value: PropType<string | [string, string]
|
|
19
|
+
value: PropType<null | string | [string, string]>;
|
|
20
20
|
disabled: {
|
|
21
21
|
type: PropType<boolean | undefined>;
|
|
22
22
|
default: undefined;
|
|
23
23
|
};
|
|
24
24
|
size: PropType<InputSize>;
|
|
25
25
|
rows: {
|
|
26
|
-
type: PropType<
|
|
26
|
+
type: PropType<number | string>;
|
|
27
27
|
default: number;
|
|
28
28
|
};
|
|
29
29
|
round: BooleanConstructor;
|
|
30
|
-
minlength: PropType<
|
|
31
|
-
maxlength: PropType<
|
|
30
|
+
minlength: PropType<number | string>;
|
|
31
|
+
maxlength: PropType<number | string>;
|
|
32
32
|
clearable: BooleanConstructor;
|
|
33
33
|
autosize: {
|
|
34
34
|
type: PropType<boolean | {
|
|
35
|
-
minRows?: number
|
|
36
|
-
maxRows?: number
|
|
35
|
+
minRows?: number;
|
|
36
|
+
maxRows?: number;
|
|
37
37
|
}>;
|
|
38
38
|
default: boolean;
|
|
39
39
|
};
|
|
40
40
|
pair: BooleanConstructor;
|
|
41
41
|
separator: StringConstructor;
|
|
42
|
+
autocomplete: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
copyable: BooleanConstructor;
|
|
47
|
+
uppercase: BooleanConstructor;
|
|
48
|
+
debounceMs: NumberConstructor;
|
|
42
49
|
readonly: {
|
|
43
|
-
type: (
|
|
50
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
44
51
|
default: boolean;
|
|
45
52
|
};
|
|
46
53
|
passivelyActivated: BooleanConstructor;
|
|
47
|
-
showPasswordOn: PropType<"
|
|
54
|
+
showPasswordOn: PropType<"mousedown" | "click">;
|
|
48
55
|
stateful: {
|
|
49
56
|
type: BooleanConstructor;
|
|
50
57
|
default: boolean;
|
|
51
58
|
};
|
|
52
59
|
autofocus: BooleanConstructor;
|
|
53
|
-
inputProps: PropType<
|
|
60
|
+
inputProps: PropType<TextareaHTMLAttributes | InputHTMLAttributes>;
|
|
54
61
|
resizable: {
|
|
55
62
|
type: BooleanConstructor;
|
|
56
63
|
default: boolean;
|
|
@@ -61,6 +68,7 @@ export declare const inputProps: {
|
|
|
61
68
|
default: undefined;
|
|
62
69
|
};
|
|
63
70
|
loadingSkeleton: BooleanConstructor;
|
|
71
|
+
formatter: PropType<(value: string) => string>;
|
|
64
72
|
allowInput: PropType<(value: string) => boolean>;
|
|
65
73
|
renderCount: PropType<(props: {
|
|
66
74
|
value: string;
|
|
@@ -69,11 +77,13 @@ export declare const inputProps: {
|
|
|
69
77
|
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
70
78
|
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
71
79
|
onInput: PropType<OnUpdateValue>;
|
|
80
|
+
onDebouncedInput: PropType<OnUpdateValue>;
|
|
72
81
|
onFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
|
|
73
82
|
onBlur: PropType<MaybeArray<(e: FocusEvent) => void>>;
|
|
74
83
|
onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
75
84
|
onChange: PropType<OnUpdateValue>;
|
|
76
85
|
onClear: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
86
|
+
copyButtonCallback: PropType<(value: string) => void>;
|
|
77
87
|
countGraphemes: PropType<(value: string) => number>;
|
|
78
88
|
status: PropType<FormValidationStatus>;
|
|
79
89
|
'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -298,49 +308,56 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
298
308
|
default: undefined;
|
|
299
309
|
};
|
|
300
310
|
type: {
|
|
301
|
-
type: PropType<"
|
|
311
|
+
type: PropType<"text" | "textarea" | "password">;
|
|
302
312
|
default: string;
|
|
303
313
|
};
|
|
304
314
|
placeholder: PropType<string | [string, string]>;
|
|
305
315
|
defaultValue: {
|
|
306
|
-
type: PropType<string | [string, string]
|
|
316
|
+
type: PropType<null | string | [string, string]>;
|
|
307
317
|
default: null;
|
|
308
318
|
};
|
|
309
|
-
value: PropType<string | [string, string]
|
|
319
|
+
value: PropType<null | string | [string, string]>;
|
|
310
320
|
disabled: {
|
|
311
321
|
type: PropType<boolean | undefined>;
|
|
312
322
|
default: undefined;
|
|
313
323
|
};
|
|
314
324
|
size: PropType<InputSize>;
|
|
315
325
|
rows: {
|
|
316
|
-
type: PropType<
|
|
326
|
+
type: PropType<number | string>;
|
|
317
327
|
default: number;
|
|
318
328
|
};
|
|
319
329
|
round: BooleanConstructor;
|
|
320
|
-
minlength: PropType<
|
|
321
|
-
maxlength: PropType<
|
|
330
|
+
minlength: PropType<number | string>;
|
|
331
|
+
maxlength: PropType<number | string>;
|
|
322
332
|
clearable: BooleanConstructor;
|
|
323
333
|
autosize: {
|
|
324
334
|
type: PropType<boolean | {
|
|
325
|
-
minRows?: number
|
|
326
|
-
maxRows?: number
|
|
335
|
+
minRows?: number;
|
|
336
|
+
maxRows?: number;
|
|
327
337
|
}>;
|
|
328
338
|
default: boolean;
|
|
329
339
|
};
|
|
330
340
|
pair: BooleanConstructor;
|
|
331
341
|
separator: StringConstructor;
|
|
342
|
+
autocomplete: {
|
|
343
|
+
type: BooleanConstructor;
|
|
344
|
+
default: boolean;
|
|
345
|
+
};
|
|
346
|
+
copyable: BooleanConstructor;
|
|
347
|
+
uppercase: BooleanConstructor;
|
|
348
|
+
debounceMs: NumberConstructor;
|
|
332
349
|
readonly: {
|
|
333
|
-
type: (
|
|
350
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
334
351
|
default: boolean;
|
|
335
352
|
};
|
|
336
353
|
passivelyActivated: BooleanConstructor;
|
|
337
|
-
showPasswordOn: PropType<"
|
|
354
|
+
showPasswordOn: PropType<"mousedown" | "click">;
|
|
338
355
|
stateful: {
|
|
339
356
|
type: BooleanConstructor;
|
|
340
357
|
default: boolean;
|
|
341
358
|
};
|
|
342
359
|
autofocus: BooleanConstructor;
|
|
343
|
-
inputProps: PropType<
|
|
360
|
+
inputProps: PropType<TextareaHTMLAttributes | InputHTMLAttributes>;
|
|
344
361
|
resizable: {
|
|
345
362
|
type: BooleanConstructor;
|
|
346
363
|
default: boolean;
|
|
@@ -351,6 +368,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
351
368
|
default: undefined;
|
|
352
369
|
};
|
|
353
370
|
loadingSkeleton: BooleanConstructor;
|
|
371
|
+
formatter: PropType<(value: string) => string>;
|
|
354
372
|
allowInput: PropType<(value: string) => boolean>;
|
|
355
373
|
renderCount: PropType<(props: {
|
|
356
374
|
value: string;
|
|
@@ -359,11 +377,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
359
377
|
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
360
378
|
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
361
379
|
onInput: PropType<OnUpdateValue>;
|
|
380
|
+
onDebouncedInput: PropType<OnUpdateValue>;
|
|
362
381
|
onFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
|
|
363
382
|
onBlur: PropType<MaybeArray<(e: FocusEvent) => void>>;
|
|
364
383
|
onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
365
384
|
onChange: PropType<OnUpdateValue>;
|
|
366
385
|
onClear: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
386
|
+
copyButtonCallback: PropType<(value: string) => void>;
|
|
367
387
|
countGraphemes: PropType<(value: string) => number>;
|
|
368
388
|
status: PropType<FormValidationStatus>;
|
|
369
389
|
'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -603,14 +623,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
603
623
|
uncontrolledValue: import("vue").Ref<string | [string, string] | null>;
|
|
604
624
|
mergedValue: import("vue").ComputedRef<string | [string, string] | null>;
|
|
605
625
|
passwordVisible: import("vue").Ref<boolean>;
|
|
606
|
-
mergedPlaceholder: import("vue").ComputedRef<[string] | [string
|
|
626
|
+
mergedPlaceholder: import("vue").ComputedRef<[string, string] | [string]>;
|
|
607
627
|
showPlaceholder1: import("vue").ComputedRef<string | false>;
|
|
608
628
|
showPlaceholder2: import("vue").ComputedRef<boolean | "" | undefined>;
|
|
609
629
|
mergedFocus: import("vue").ComputedRef<boolean>;
|
|
610
630
|
isComposing: import("vue").Ref<boolean>;
|
|
611
631
|
activated: import("vue").Ref<boolean>;
|
|
612
632
|
showClearButton: import("vue").ComputedRef<boolean>;
|
|
613
|
-
mergedSize: import("vue").ComputedRef<"small" | "
|
|
633
|
+
mergedSize: import("vue").ComputedRef<"small" | "tiny" | "medium" | "large" | "huge">;
|
|
614
634
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
615
635
|
textDecorationStyle: import("vue").ComputedRef<string[] | {
|
|
616
636
|
textDecoration: string;
|
|
@@ -623,6 +643,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
623
643
|
}>;
|
|
624
644
|
mergedStatus: import("vue").ComputedRef<FormValidationStatus | undefined>;
|
|
625
645
|
textAreaScrollContainerWidth: import("vue").Ref<number | undefined>;
|
|
646
|
+
inputProps: import("vue").ComputedRef<InputHTMLAttributes | TextareaHTMLAttributes>;
|
|
647
|
+
renderCopyButton: (cb?: (value: string | [string, string] | null) => void) => ReturnType<typeof h>;
|
|
626
648
|
handleTextAreaScroll: (e: Event) => void;
|
|
627
649
|
handleCompositionStart: () => void;
|
|
628
650
|
handleCompositionEnd: (e: CompositionEvent) => void;
|
|
@@ -643,118 +665,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
643
665
|
handleTextAreaMirrorResize: () => void;
|
|
644
666
|
getTextareaScrollContainer: () => HTMLTextAreaElement | null;
|
|
645
667
|
mergedTheme: import("vue").ComputedRef<{
|
|
646
|
-
common:
|
|
647
|
-
scrollbarColor: string;
|
|
648
|
-
scrollbarColorHover: string;
|
|
649
|
-
scrollbarWidth: string;
|
|
650
|
-
scrollbarHeight: string;
|
|
651
|
-
scrollbarBorderRadius: string;
|
|
652
|
-
opacityDisabled: string;
|
|
653
|
-
brandPrimary50: string;
|
|
654
|
-
brandPrimary100: string;
|
|
655
|
-
brandPrimary200: string;
|
|
656
|
-
brandPrimary300: string;
|
|
657
|
-
brandPrimary400: string;
|
|
658
|
-
brandPrimary500: string;
|
|
659
|
-
brandPrimary550: string;
|
|
660
|
-
brandPrimary600: string;
|
|
661
|
-
brandSecondary500: string;
|
|
662
|
-
brandSecondary300: string;
|
|
663
|
-
brandSecondary600: string;
|
|
664
|
-
brandTertiary500: string;
|
|
665
|
-
brandTertiary300: string;
|
|
666
|
-
brandTertiary600: string;
|
|
667
|
-
brandQuaternary500: string;
|
|
668
|
-
brandQuaternary300: string;
|
|
669
|
-
brandQuaternary600: string;
|
|
670
|
-
brandQuinary500: string;
|
|
671
|
-
brandQuinary300: string;
|
|
672
|
-
brandQuinary600: string;
|
|
673
|
-
brandQuinary100: string;
|
|
674
|
-
surfacePrimary: string;
|
|
675
|
-
surfaceSecondary: string;
|
|
676
|
-
containerPrimary: string;
|
|
677
|
-
containerSecondary: string;
|
|
678
|
-
textPrimary: string;
|
|
679
|
-
textSecondary: string;
|
|
680
|
-
textTertiary: string;
|
|
681
|
-
textQuaternary: string;
|
|
682
|
-
textBrand: string;
|
|
683
|
-
elementsPrimary: string;
|
|
684
|
-
elementsSecondary: string;
|
|
685
|
-
elementsTertiary: string;
|
|
686
|
-
elementsQuaternary: string;
|
|
687
|
-
elementsQuinary: string;
|
|
688
|
-
elementsDarkQuinary: string;
|
|
689
|
-
elementsSenary: string;
|
|
690
|
-
elementsOnContainer: string;
|
|
691
|
-
transparencyPrimary: string;
|
|
692
|
-
transparencySecondary: string;
|
|
693
|
-
transparencyTertiary: string;
|
|
694
|
-
transparencyQuinary: string;
|
|
695
|
-
transparencyModal: string;
|
|
696
|
-
staticBlack: string;
|
|
697
|
-
staticDarkGrey: string;
|
|
698
|
-
staticWhite: string;
|
|
699
|
-
staticRed: string;
|
|
700
|
-
staticOrange: string;
|
|
701
|
-
staticGreen: string;
|
|
702
|
-
staticDeepBlue: string;
|
|
703
|
-
staticErrorAccent: string;
|
|
704
|
-
shadowDepth2: string;
|
|
705
|
-
shadowDepth: string;
|
|
706
|
-
fontFamily: string;
|
|
707
|
-
fontFamilyMono: string;
|
|
708
|
-
cubicBezierEaseInOut: string;
|
|
709
|
-
cubicBezierEaseOut: string;
|
|
710
|
-
cubicBezierEaseIn: string;
|
|
711
|
-
borderRadiusLarge: string;
|
|
712
|
-
borderRadius: string;
|
|
713
|
-
borderRadiusMedium: string;
|
|
714
|
-
borderRadiusSmall: string;
|
|
715
|
-
borderRadiusTiny: string;
|
|
716
|
-
heightMini: string;
|
|
717
|
-
heightTiny: string;
|
|
718
|
-
heightSmall: string;
|
|
719
|
-
heightMedium: string;
|
|
720
|
-
heightLarge: string;
|
|
721
|
-
heightHuge: string;
|
|
722
|
-
fontDisplayLarge: string;
|
|
723
|
-
fontDisplaySmall: string;
|
|
724
|
-
fontHeadingLarge: string;
|
|
725
|
-
fontHeadingMedium: string;
|
|
726
|
-
fontHeadingSmall: string;
|
|
727
|
-
fontTitleLarge: string;
|
|
728
|
-
fontTitleMedium: string;
|
|
729
|
-
fontTitleSmall: string;
|
|
730
|
-
fontBodyLarge: string;
|
|
731
|
-
fontBodyMedium: string;
|
|
732
|
-
fontBodySmall: string;
|
|
733
|
-
lineHeightDisplayLarge: string;
|
|
734
|
-
lineHeightDisplaySmall: string;
|
|
735
|
-
lineHeightHeadingLarge: string;
|
|
736
|
-
lineHeightHeadingMedium: string;
|
|
737
|
-
lineHeightHeadingSmall: string;
|
|
738
|
-
lineHeightTitleLarge: string;
|
|
739
|
-
lineHeightTitleMedium: string;
|
|
740
|
-
lineHeightTitleSmall: string;
|
|
741
|
-
lineHeightBodyLarge: string;
|
|
742
|
-
lineHeightBodyMedium: string;
|
|
743
|
-
lineHeightBodySmall: string;
|
|
744
|
-
fontWeight: string;
|
|
745
|
-
fontWeightStrong: string;
|
|
746
|
-
fontWeightBold: string;
|
|
747
|
-
iconSmall: string;
|
|
748
|
-
iconMedium: string;
|
|
749
|
-
iconLarge: string;
|
|
750
|
-
iconHuge: string;
|
|
751
|
-
closeSmall: string;
|
|
752
|
-
closeMedium: string;
|
|
753
|
-
closeLarge: string;
|
|
754
|
-
closeHuge: string;
|
|
755
|
-
closeBorderRadius: string;
|
|
756
|
-
name: "common";
|
|
757
|
-
};
|
|
668
|
+
common: import("../..").ThemeCommonVars;
|
|
758
669
|
self: {
|
|
759
670
|
paddingTiny: string;
|
|
760
671
|
paddingSmall: string;
|
|
@@ -892,49 +803,56 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
892
803
|
default: undefined;
|
|
893
804
|
};
|
|
894
805
|
type: {
|
|
895
|
-
type: PropType<"
|
|
806
|
+
type: PropType<"text" | "textarea" | "password">;
|
|
896
807
|
default: string;
|
|
897
808
|
};
|
|
898
809
|
placeholder: PropType<string | [string, string]>;
|
|
899
810
|
defaultValue: {
|
|
900
|
-
type: PropType<string | [string, string]
|
|
811
|
+
type: PropType<null | string | [string, string]>;
|
|
901
812
|
default: null;
|
|
902
813
|
};
|
|
903
|
-
value: PropType<string | [string, string]
|
|
814
|
+
value: PropType<null | string | [string, string]>;
|
|
904
815
|
disabled: {
|
|
905
816
|
type: PropType<boolean | undefined>;
|
|
906
817
|
default: undefined;
|
|
907
818
|
};
|
|
908
819
|
size: PropType<InputSize>;
|
|
909
820
|
rows: {
|
|
910
|
-
type: PropType<
|
|
821
|
+
type: PropType<number | string>;
|
|
911
822
|
default: number;
|
|
912
823
|
};
|
|
913
824
|
round: BooleanConstructor;
|
|
914
|
-
minlength: PropType<
|
|
915
|
-
maxlength: PropType<
|
|
825
|
+
minlength: PropType<number | string>;
|
|
826
|
+
maxlength: PropType<number | string>;
|
|
916
827
|
clearable: BooleanConstructor;
|
|
917
828
|
autosize: {
|
|
918
829
|
type: PropType<boolean | {
|
|
919
|
-
minRows?: number
|
|
920
|
-
maxRows?: number
|
|
830
|
+
minRows?: number;
|
|
831
|
+
maxRows?: number;
|
|
921
832
|
}>;
|
|
922
833
|
default: boolean;
|
|
923
834
|
};
|
|
924
835
|
pair: BooleanConstructor;
|
|
925
836
|
separator: StringConstructor;
|
|
837
|
+
autocomplete: {
|
|
838
|
+
type: BooleanConstructor;
|
|
839
|
+
default: boolean;
|
|
840
|
+
};
|
|
841
|
+
copyable: BooleanConstructor;
|
|
842
|
+
uppercase: BooleanConstructor;
|
|
843
|
+
debounceMs: NumberConstructor;
|
|
926
844
|
readonly: {
|
|
927
|
-
type: (
|
|
845
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
928
846
|
default: boolean;
|
|
929
847
|
};
|
|
930
848
|
passivelyActivated: BooleanConstructor;
|
|
931
|
-
showPasswordOn: PropType<"
|
|
849
|
+
showPasswordOn: PropType<"mousedown" | "click">;
|
|
932
850
|
stateful: {
|
|
933
851
|
type: BooleanConstructor;
|
|
934
852
|
default: boolean;
|
|
935
853
|
};
|
|
936
854
|
autofocus: BooleanConstructor;
|
|
937
|
-
inputProps: PropType<
|
|
855
|
+
inputProps: PropType<TextareaHTMLAttributes | InputHTMLAttributes>;
|
|
938
856
|
resizable: {
|
|
939
857
|
type: BooleanConstructor;
|
|
940
858
|
default: boolean;
|
|
@@ -945,6 +863,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
945
863
|
default: undefined;
|
|
946
864
|
};
|
|
947
865
|
loadingSkeleton: BooleanConstructor;
|
|
866
|
+
formatter: PropType<(value: string) => string>;
|
|
948
867
|
allowInput: PropType<(value: string) => boolean>;
|
|
949
868
|
renderCount: PropType<(props: {
|
|
950
869
|
value: string;
|
|
@@ -953,11 +872,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
953
872
|
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
954
873
|
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
955
874
|
onInput: PropType<OnUpdateValue>;
|
|
875
|
+
onDebouncedInput: PropType<OnUpdateValue>;
|
|
956
876
|
onFocus: PropType<MaybeArray<(e: FocusEvent) => void>>;
|
|
957
877
|
onBlur: PropType<MaybeArray<(e: FocusEvent) => void>>;
|
|
958
878
|
onClick: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
959
879
|
onChange: PropType<OnUpdateValue>;
|
|
960
880
|
onClear: PropType<MaybeArray<(e: MouseEvent) => void>>;
|
|
881
|
+
copyButtonCallback: PropType<(value: string) => void>;
|
|
961
882
|
countGraphemes: PropType<(value: string) => number>;
|
|
962
883
|
status: PropType<FormValidationStatus>;
|
|
963
884
|
'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -1176,22 +1097,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1176
1097
|
}, any>>>;
|
|
1177
1098
|
}>>, {
|
|
1178
1099
|
type: "textarea" | "text" | "password";
|
|
1179
|
-
readonly: string | boolean;
|
|
1180
|
-
round: boolean;
|
|
1181
1100
|
disabled: boolean | undefined;
|
|
1182
|
-
autofocus: boolean;
|
|
1183
|
-
autosize: boolean | {
|
|
1184
|
-
minRows?: number | undefined;
|
|
1185
|
-
maxRows?: number | undefined;
|
|
1186
|
-
};
|
|
1187
1101
|
loading: boolean;
|
|
1188
1102
|
bordered: boolean | undefined;
|
|
1103
|
+
round: boolean;
|
|
1104
|
+
autofocus: boolean;
|
|
1105
|
+
uppercase: boolean;
|
|
1189
1106
|
clearable: boolean;
|
|
1190
1107
|
loadingSkeleton: boolean;
|
|
1108
|
+
autosize: boolean | {
|
|
1109
|
+
minRows?: number;
|
|
1110
|
+
maxRows?: number;
|
|
1111
|
+
};
|
|
1191
1112
|
resizable: boolean;
|
|
1192
1113
|
pair: boolean;
|
|
1114
|
+
autocomplete: boolean;
|
|
1193
1115
|
defaultValue: string | [string, string] | null;
|
|
1194
1116
|
rows: string | number;
|
|
1117
|
+
copyable: boolean;
|
|
1118
|
+
readonly: string | boolean;
|
|
1195
1119
|
passivelyActivated: boolean;
|
|
1196
1120
|
stateful: boolean;
|
|
1197
1121
|
showCount: boolean;
|
package/lib/input/src/Input.js
CHANGED
|
@@ -43,6 +43,9 @@ const interface_1 = require("./interface");
|
|
|
43
43
|
const utils_1 = require("./utils");
|
|
44
44
|
const WordCount_1 = __importDefault(require("./WordCount"));
|
|
45
45
|
const input_cssr_1 = __importStar(require("./styles/input.cssr"));
|
|
46
|
+
const debounce_1 = require("../../_utils/debounce");
|
|
47
|
+
const use_clipboard_1 = require("./use-clipboard");
|
|
48
|
+
const DEFAULT_DEBOUNCE_MS = 500;
|
|
46
49
|
exports.inputProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { bordered: {
|
|
47
50
|
type: Boolean,
|
|
48
51
|
default: undefined
|
|
@@ -61,7 +64,10 @@ exports.inputProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
61
64
|
}, round: Boolean, minlength: [String, Number], maxlength: [String, Number], clearable: Boolean, autosize: {
|
|
62
65
|
type: [Boolean, Object],
|
|
63
66
|
default: false
|
|
64
|
-
}, pair: Boolean, separator: String,
|
|
67
|
+
}, pair: Boolean, separator: String, autocomplete: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: true
|
|
70
|
+
}, copyable: Boolean, uppercase: Boolean, debounceMs: Number, readonly: {
|
|
65
71
|
type: [String, Boolean],
|
|
66
72
|
default: false
|
|
67
73
|
}, passivelyActivated: Boolean, showPasswordOn: String, stateful: {
|
|
@@ -73,7 +79,7 @@ exports.inputProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
73
79
|
}, showCount: Boolean, loading: {
|
|
74
80
|
type: Boolean,
|
|
75
81
|
default: undefined
|
|
76
|
-
}, loadingSkeleton: Boolean, allowInput: Function, renderCount: Function, onMousedown: Function, onKeydown: Function, onKeyup: Function, onInput: [Function, Array], onFocus: [Function, Array], onBlur: [Function, Array], onClick: [Function, Array], onChange: [Function, Array], onClear: [Function, Array], countGraphemes: Function, status: String, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array],
|
|
82
|
+
}, loadingSkeleton: Boolean, formatter: Function, allowInput: Function, renderCount: Function, onMousedown: Function, onKeydown: Function, onKeyup: Function, onInput: [Function, Array], onDebouncedInput: [Function, Array], onFocus: [Function, Array], onBlur: [Function, Array], onClick: [Function, Array], onChange: [Function, Array], onClear: [Function, Array], copyButtonCallback: Function, countGraphemes: Function, status: String, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array],
|
|
77
83
|
/** private */
|
|
78
84
|
textDecoration: [String, Array], attrSize: {
|
|
79
85
|
type: Number,
|
|
@@ -87,7 +93,8 @@ exports.inputProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
87
93
|
exports.default = (0, vue_1.defineComponent)({
|
|
88
94
|
name: 'Input',
|
|
89
95
|
props: exports.inputProps,
|
|
90
|
-
setup(props) {
|
|
96
|
+
setup(props, { emit }) {
|
|
97
|
+
var _a;
|
|
91
98
|
if (process.env.NODE_ENV !== 'production') {
|
|
92
99
|
(0, vue_1.watchEffect)(() => {
|
|
93
100
|
if (props.showPasswordToggle) {
|
|
@@ -249,6 +256,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
249
256
|
const { maxlength } = props;
|
|
250
257
|
return maxlength === undefined ? undefined : Number(maxlength);
|
|
251
258
|
});
|
|
259
|
+
// autocomplete
|
|
260
|
+
const inputProps = (0, vue_1.computed)(() => (Object.assign({ autocomplete: props.autocomplete ? undefined : 'new-password' }, props.inputProps)));
|
|
252
261
|
(0, vue_1.onMounted)(() => {
|
|
253
262
|
// sync mirror if is not pair
|
|
254
263
|
const { value } = mergedValueRef;
|
|
@@ -257,6 +266,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
257
266
|
}
|
|
258
267
|
});
|
|
259
268
|
// other methods
|
|
269
|
+
const emitDebouncedInput = (0, debounce_1.debounce)((value) => {
|
|
270
|
+
emit('debouncedInput', value);
|
|
271
|
+
}, (_a = props.debounceMs) !== null && _a !== void 0 ? _a : DEFAULT_DEBOUNCE_MS);
|
|
260
272
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
261
273
|
const vm = (0, vue_1.getCurrentInstance)().proxy;
|
|
262
274
|
function doUpdateValue(value) {
|
|
@@ -270,6 +282,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
270
282
|
(0, _utils_1.call)(onInput, value);
|
|
271
283
|
uncontrolledValueRef.value = value;
|
|
272
284
|
nTriggerFormInput();
|
|
285
|
+
emitDebouncedInput(value);
|
|
273
286
|
}
|
|
274
287
|
function doChange(value) {
|
|
275
288
|
const { onChange } = props;
|
|
@@ -347,7 +360,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
347
360
|
}
|
|
348
361
|
}
|
|
349
362
|
function handleInput(e, index = 0, event = 'input') {
|
|
350
|
-
|
|
363
|
+
let targetValue = e.target.value;
|
|
364
|
+
if (props.uppercase)
|
|
365
|
+
targetValue = targetValue.toUpperCase();
|
|
366
|
+
if (props.formatter)
|
|
367
|
+
targetValue = props.formatter(targetValue);
|
|
351
368
|
syncMirror(targetValue);
|
|
352
369
|
if (e instanceof InputEvent && !e.isComposing) {
|
|
353
370
|
isComposingRef.value = false;
|
|
@@ -716,6 +733,23 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
716
733
|
mergedClsPrefixRef,
|
|
717
734
|
countGraphemesRef: (0, vue_1.toRef)(props, 'countGraphemes')
|
|
718
735
|
});
|
|
736
|
+
const { renderCopyButton } = (0, use_clipboard_1.useCopyableText)({
|
|
737
|
+
mergedClsPrefixRef,
|
|
738
|
+
mergedValueRef
|
|
739
|
+
}, props.copyButtonCallback
|
|
740
|
+
? (value) => {
|
|
741
|
+
var _a, _b, _c;
|
|
742
|
+
if (typeof value === 'string') {
|
|
743
|
+
(_a = props.copyButtonCallback) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
|
744
|
+
}
|
|
745
|
+
else if (Array.isArray(value)) {
|
|
746
|
+
(_b = props.copyButtonCallback) === null || _b === void 0 ? void 0 : _b.call(props, value[0]);
|
|
747
|
+
}
|
|
748
|
+
else {
|
|
749
|
+
(_c = props.copyButtonCallback) === null || _c === void 0 ? void 0 : _c.call(props, '');
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
: undefined);
|
|
719
753
|
const exposedProps = {
|
|
720
754
|
wrapperElRef,
|
|
721
755
|
inputElRef,
|
|
@@ -806,8 +840,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
806
840
|
textareaMirrorElRef,
|
|
807
841
|
textareaScrollbarInstRef,
|
|
808
842
|
// value
|
|
809
|
-
rtlEnabled: rtlEnabledRef, uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, passwordVisible: passwordVisibleRef, mergedPlaceholder: mergedPlaceholderRef, showPlaceholder1: showPlaceholder1Ref, showPlaceholder2: showPlaceholder2Ref, mergedFocus: mergedFocusRef, isComposing: isComposingRef, activated: activatedRef, showClearButton, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, textDecorationStyle: textDecorationStyleRef, mergedClsPrefix: mergedClsPrefixRef, mergedBordered: mergedBorderedRef, mergedShowPasswordOn: mergedShowPasswordOnRef, placeholderStyle: placeholderStyleRef, mergedStatus: mergedStatusRef, textAreaScrollContainerWidth: textAreaScrollContainerWidthRef,
|
|
843
|
+
rtlEnabled: rtlEnabledRef, uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, passwordVisible: passwordVisibleRef, mergedPlaceholder: mergedPlaceholderRef, showPlaceholder1: showPlaceholder1Ref, showPlaceholder2: showPlaceholder2Ref, mergedFocus: mergedFocusRef, isComposing: isComposingRef, activated: activatedRef, showClearButton, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, textDecorationStyle: textDecorationStyleRef, mergedClsPrefix: mergedClsPrefixRef, mergedBordered: mergedBorderedRef, mergedShowPasswordOn: mergedShowPasswordOnRef, placeholderStyle: placeholderStyleRef, mergedStatus: mergedStatusRef, textAreaScrollContainerWidth: textAreaScrollContainerWidthRef, inputProps,
|
|
810
844
|
// methods
|
|
845
|
+
renderCopyButton,
|
|
811
846
|
handleTextAreaScroll,
|
|
812
847
|
handleCompositionStart,
|
|
813
848
|
handleCompositionEnd,
|
|
@@ -830,7 +865,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
830
865
|
}, mergedTheme: themeRef, cssVars: inlineThemeDisabled ? undefined : cssVarsRef, themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender });
|
|
831
866
|
},
|
|
832
867
|
render() {
|
|
833
|
-
var _a, _b;
|
|
868
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
834
869
|
const { mergedClsPrefix, mergedStatus, themeClass, type, countGraphemes, onRender } = this;
|
|
835
870
|
const $slots = this.$slots;
|
|
836
871
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
@@ -856,7 +891,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
856
891
|
(0, _utils_1.resolveWrappedSlot)($slots.prefix, (children) => children && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__prefix` }, children))),
|
|
857
892
|
type === 'textarea' ? ((0, vue_1.h)(_internal_1.UScrollbar, { ref: "textareaScrollbarInstRef", class: `${mergedClsPrefix}-input__textarea`, container: this.getTextareaScrollContainer, triggerDisplayManually: true, useUnifiedContainer: true, internalHoistYRail: true }, {
|
|
858
893
|
default: () => {
|
|
859
|
-
var _a, _b;
|
|
894
|
+
var _a, _b, _c, _d;
|
|
860
895
|
const { textAreaScrollContainerWidth } = this;
|
|
861
896
|
const scrollContainerWidthStyle = {
|
|
862
897
|
width: this.autosize &&
|
|
@@ -870,8 +905,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
870
905
|
], autofocus: this.autofocus, rows: Number(this.rows), placeholder: this.placeholder, value: this.mergedValue, disabled: this.mergedDisabled, maxlength: countGraphemes ? undefined : this.maxlength, minlength: countGraphemes ? undefined : this.minlength, readonly: this.readonly, tabindex: this.passivelyActivated && !this.activated
|
|
871
906
|
? -1
|
|
872
907
|
: undefined, style: [
|
|
873
|
-
this.textDecorationStyle[0],
|
|
874
|
-
(
|
|
908
|
+
(_b = this.textDecorationStyle) === null || _b === void 0 ? void 0 : _b[0],
|
|
909
|
+
(_c = this.inputProps) === null || _c === void 0 ? void 0 : _c.style,
|
|
875
910
|
scrollContainerWidthStyle
|
|
876
911
|
], onBlur: this.handleInputBlur, onFocus: (e) => {
|
|
877
912
|
this.handleInputFocus(e, 2);
|
|
@@ -879,7 +914,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
879
914
|
this.showPlaceholder1 ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__placeholder`, style: [
|
|
880
915
|
this.placeholderStyle,
|
|
881
916
|
scrollContainerWidthStyle
|
|
882
|
-
], key: "placeholder" }, this.mergedPlaceholder[0])) : null,
|
|
917
|
+
], key: "placeholder" }, (_d = this.mergedPlaceholder) === null || _d === void 0 ? void 0 : _d[0])) : null,
|
|
883
918
|
this.autosize ? ((0, vue_1.h)(vueuc_1.VResizeObserver, { onResize: this.handleTextAreaMirrorResize }, {
|
|
884
919
|
default: () => ((0, vue_1.h)("div", { ref: "textareaMirrorElRef", class: `${mergedClsPrefix}-input__textarea-mirror`, key: "mirror" }))
|
|
885
920
|
})) : null));
|
|
@@ -893,9 +928,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
893
928
|
`${mergedClsPrefix}-input__input-el`,
|
|
894
929
|
(_a = this.inputProps) === null || _a === void 0 ? void 0 : _a.class
|
|
895
930
|
], style: [
|
|
896
|
-
this.textDecorationStyle[0],
|
|
897
|
-
(
|
|
898
|
-
], tabindex: this.passivelyActivated && !this.activated ? -1 : undefined, placeholder: this.mergedPlaceholder[0], disabled: this.mergedDisabled, maxlength: countGraphemes ? undefined : this.maxlength, minlength: countGraphemes ? undefined : this.minlength, value: Array.isArray(this.mergedValue)
|
|
931
|
+
(_b = this.textDecorationStyle) === null || _b === void 0 ? void 0 : _b[0],
|
|
932
|
+
(_c = this.inputProps) === null || _c === void 0 ? void 0 : _c.style
|
|
933
|
+
], tabindex: this.passivelyActivated && !this.activated ? -1 : undefined, placeholder: (_d = this.mergedPlaceholder) === null || _d === void 0 ? void 0 : _d[0], disabled: this.mergedDisabled, maxlength: countGraphemes ? undefined : this.maxlength, minlength: countGraphemes ? undefined : this.minlength, value: Array.isArray(this.mergedValue)
|
|
899
934
|
? this.mergedValue[0]
|
|
900
935
|
: this.mergedValue, readonly: this.readonly, autofocus: this.autofocus, size: this.attrSize, onBlur: this.handleInputBlur, onFocus: (e) => {
|
|
901
936
|
this.handleInputFocus(e, 0);
|
|
@@ -905,13 +940,14 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
905
940
|
this.handleChange(e, 0);
|
|
906
941
|
} })),
|
|
907
942
|
this.showPlaceholder1 ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__placeholder` },
|
|
908
|
-
(0, vue_1.h)("span", null, this.mergedPlaceholder[0]))) : null,
|
|
943
|
+
(0, vue_1.h)("span", null, (_e = this.mergedPlaceholder) === null || _e === void 0 ? void 0 : _e[0]))) : null,
|
|
909
944
|
this.autosize ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__input-mirror`, key: "mirror", ref: "inputMirrorElRef" }, "\u00A0")) : null)),
|
|
910
945
|
!this.pair &&
|
|
911
946
|
(0, _utils_1.resolveWrappedSlot)($slots.suffix, (children) => {
|
|
912
947
|
return children ||
|
|
913
948
|
this.clearable ||
|
|
914
949
|
this.showCount ||
|
|
950
|
+
this.copyable ||
|
|
915
951
|
this.mergedShowPasswordOn ||
|
|
916
952
|
this.loading !== undefined ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__suffix` }, [
|
|
917
953
|
(0, _utils_1.resolveWrappedSlot)($slots['clear-icon-placeholder'], (children) => {
|
|
@@ -929,6 +965,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
929
965
|
this.showCount && this.type !== 'textarea' ? ((0, vue_1.h)(WordCount_1.default, null, {
|
|
930
966
|
default: (props) => { var _a; return (_a = $slots.count) === null || _a === void 0 ? void 0 : _a.call($slots, props); }
|
|
931
967
|
})) : null,
|
|
968
|
+
this.copyable && this.renderCopyButton(),
|
|
932
969
|
this.mergedShowPasswordOn && this.type === 'password' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__eye`, onMousedown: this.handlePasswordToggleMousedown, onClick: this.handlePasswordToggleClick }, this.passwordVisible
|
|
933
970
|
? (0, _utils_1.resolveSlot)($slots['password-visible-icon'], () => [
|
|
934
971
|
(0, vue_1.h)(_internal_1.UBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => (0, vue_1.h)(icons_1.EyeIcon, null) })
|
|
@@ -941,9 +978,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
941
978
|
this.pair ? ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-input__separator` }, (0, _utils_1.resolveSlot)($slots.separator, () => [this.separator]))) : null,
|
|
942
979
|
this.pair ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input-wrapper` },
|
|
943
980
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__input` },
|
|
944
|
-
(0, vue_1.h)("input", { ref: "inputEl2Ref", type: this.type, class: `${mergedClsPrefix}-input__input-el`, tabindex: this.passivelyActivated && !this.activated ? -1 : undefined, placeholder: this.mergedPlaceholder[1], disabled: this.mergedDisabled, maxlength: countGraphemes ? undefined : this.maxlength, minlength: countGraphemes ? undefined : this.minlength, value: Array.isArray(this.mergedValue)
|
|
981
|
+
(0, vue_1.h)("input", { ref: "inputEl2Ref", type: this.type, class: `${mergedClsPrefix}-input__input-el`, tabindex: this.passivelyActivated && !this.activated ? -1 : undefined, placeholder: (_f = this.mergedPlaceholder) === null || _f === void 0 ? void 0 : _f[1], disabled: this.mergedDisabled, maxlength: countGraphemes ? undefined : this.maxlength, minlength: countGraphemes ? undefined : this.minlength, value: Array.isArray(this.mergedValue)
|
|
945
982
|
? this.mergedValue[1]
|
|
946
|
-
: undefined, readonly: this.readonly, style: this.textDecorationStyle[1], onBlur: this.handleInputBlur, onFocus: (e) => {
|
|
983
|
+
: undefined, readonly: this.readonly, style: (_g = this.textDecorationStyle) === null || _g === void 0 ? void 0 : _g[1], onBlur: this.handleInputBlur, onFocus: (e) => {
|
|
947
984
|
this.handleInputFocus(e, 1);
|
|
948
985
|
}, onInput: (e) => {
|
|
949
986
|
this.handleInput(e, 1);
|
|
@@ -951,7 +988,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
951
988
|
this.handleChange(e, 1);
|
|
952
989
|
} }),
|
|
953
990
|
this.showPlaceholder2 ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__placeholder` },
|
|
954
|
-
(0, vue_1.h)("span", null, this.mergedPlaceholder[1]))) : null),
|
|
991
|
+
(0, vue_1.h)("span", null, (_h = this.mergedPlaceholder) === null || _h === void 0 ? void 0 : _h[1]))) : null),
|
|
955
992
|
(0, _utils_1.resolveWrappedSlot)($slots.suffix, (children) => {
|
|
956
993
|
return ((this.clearable || children) && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-input__suffix` }, [
|
|
957
994
|
this.clearable && ((0, vue_1.h)(_internal_1.UBaseClear, { clsPrefix: mergedClsPrefix, show: this.showClearButton, onClear: this.handleClear }, {
|