@uzum-tech/ui 1.3.1 → 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 +83297 -64805
- 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/ContentCopy.d.ts +2 -0
- package/es/_internal/icons/ContentCopy.js +8 -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 +3 -0
- package/es/_internal/icons/index.js +3 -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/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/ContentCopy.d.ts +2 -0
- package/lib/_internal/icons/ContentCopy.js +10 -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 +3 -0
- package/lib/_internal/icons/index.js +8 -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/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
|
@@ -68,7 +68,7 @@ export declare const dataTableProps: {
|
|
|
68
68
|
readonly stickyExpandedRows: BooleanConstructor;
|
|
69
69
|
readonly virtualScroll: BooleanConstructor;
|
|
70
70
|
readonly tableLayout: {
|
|
71
|
-
readonly type: PropType<"
|
|
71
|
+
readonly type: PropType<"auto" | "fixed">;
|
|
72
72
|
readonly default: "auto";
|
|
73
73
|
};
|
|
74
74
|
readonly allowCheckingNotLoaded: BooleanConstructor;
|
|
@@ -86,7 +86,7 @@ export declare const dataTableProps: {
|
|
|
86
86
|
};
|
|
87
87
|
readonly flexHeight: BooleanConstructor;
|
|
88
88
|
readonly summaryPlacement: {
|
|
89
|
-
readonly type: PropType<"
|
|
89
|
+
readonly type: PropType<"top" | "bottom">;
|
|
90
90
|
readonly default: "bottom";
|
|
91
91
|
};
|
|
92
92
|
readonly paginationBehaviorOnFilter: {
|
|
@@ -101,10 +101,10 @@ export declare const dataTableProps: {
|
|
|
101
101
|
readonly default: {};
|
|
102
102
|
};
|
|
103
103
|
readonly onLoad: PropType<DataTableOnLoad>;
|
|
104
|
-
readonly 'onUpdate:page': PropType<
|
|
105
|
-
readonly onUpdatePage: PropType<
|
|
106
|
-
readonly 'onUpdate:pageSize': PropType<
|
|
107
|
-
readonly onUpdatePageSize: PropType<
|
|
104
|
+
readonly 'onUpdate:page': PropType<PaginationProps["onUpdate:page"]>;
|
|
105
|
+
readonly onUpdatePage: PropType<PaginationProps["onUpdate:page"]>;
|
|
106
|
+
readonly 'onUpdate:pageSize': PropType<PaginationProps["onUpdate:pageSize"]>;
|
|
107
|
+
readonly onUpdatePageSize: PropType<PaginationProps["onUpdate:pageSize"]>;
|
|
108
108
|
readonly 'onUpdate:sorter': PropType<MaybeArray<OnUpdateSorter>>;
|
|
109
109
|
readonly onUpdateSorter: PropType<MaybeArray<OnUpdateSorter>>;
|
|
110
110
|
readonly 'onUpdate:filters': PropType<MaybeArray<OnUpdateFilters>>;
|
|
@@ -114,8 +114,8 @@ export declare const dataTableProps: {
|
|
|
114
114
|
readonly 'onUpdate:expandedRowKeys': PropType<MaybeArray<OnUpdateExpandedRowKeys>>;
|
|
115
115
|
readonly onUpdateExpandedRowKeys: PropType<MaybeArray<OnUpdateExpandedRowKeys>>;
|
|
116
116
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
117
|
-
readonly onPageChange: PropType<
|
|
118
|
-
readonly onPageSizeChange: PropType<
|
|
117
|
+
readonly onPageChange: PropType<PaginationProps["onUpdate:page"]>;
|
|
118
|
+
readonly onPageSizeChange: PropType<PaginationProps["onUpdate:pageSize"]>;
|
|
119
119
|
readonly onSorterChange: PropType<MaybeArray<OnUpdateSorter> | undefined>;
|
|
120
120
|
readonly onFiltersChange: PropType<MaybeArray<OnUpdateFilters> | undefined>;
|
|
121
121
|
readonly onCheckedRowKeysChange: PropType<MaybeArray<OnUpdateCheckedRowKeys> | undefined>;
|
|
@@ -155,6 +155,9 @@ export declare const dataTableProps: {
|
|
|
155
155
|
tdTextColor: string;
|
|
156
156
|
thTextColor: string;
|
|
157
157
|
thFontWeight: string;
|
|
158
|
+
thSubColor: string;
|
|
159
|
+
thSubFontWeight: string;
|
|
160
|
+
thSubFontSize: string;
|
|
158
161
|
thButtonColorHover: string;
|
|
159
162
|
thIconColor: string;
|
|
160
163
|
thIconColorActive: string;
|
|
@@ -733,12 +736,18 @@ export declare const dataTableProps: {
|
|
|
733
736
|
iconSizeMedium: string;
|
|
734
737
|
iconSizeLarge: string;
|
|
735
738
|
iconSizeHuge: string;
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
739
|
+
titleFontSizeSmall: string;
|
|
740
|
+
titleFontSizeMedium: string;
|
|
741
|
+
titleFontSizeLarge: string;
|
|
742
|
+
titleFontSizeHuge: string;
|
|
743
|
+
descriptionFontSizeSmall: string;
|
|
744
|
+
descriptionFontSizeMedium: string;
|
|
745
|
+
descriptionFontSizeLarge: string;
|
|
746
|
+
descriptionFontSizeHuge: string;
|
|
747
|
+
titleColor: string;
|
|
748
|
+
descriptionColor: string;
|
|
741
749
|
iconColor: string;
|
|
750
|
+
iconBgColor: string;
|
|
742
751
|
extraTextColor: string;
|
|
743
752
|
}, any>;
|
|
744
753
|
}>;
|
|
@@ -866,12 +875,18 @@ export declare const dataTableProps: {
|
|
|
866
875
|
iconSizeMedium: string;
|
|
867
876
|
iconSizeLarge: string;
|
|
868
877
|
iconSizeHuge: string;
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
878
|
+
titleFontSizeSmall: string;
|
|
879
|
+
titleFontSizeMedium: string;
|
|
880
|
+
titleFontSizeLarge: string;
|
|
881
|
+
titleFontSizeHuge: string;
|
|
882
|
+
descriptionFontSizeSmall: string;
|
|
883
|
+
descriptionFontSizeMedium: string;
|
|
884
|
+
descriptionFontSizeLarge: string;
|
|
885
|
+
descriptionFontSizeHuge: string;
|
|
886
|
+
titleColor: string;
|
|
887
|
+
descriptionColor: string;
|
|
874
888
|
iconColor: string;
|
|
889
|
+
iconBgColor: string;
|
|
875
890
|
extraTextColor: string;
|
|
876
891
|
}, any>;
|
|
877
892
|
}>;
|
|
@@ -886,12 +901,18 @@ export declare const dataTableProps: {
|
|
|
886
901
|
iconSizeMedium: string;
|
|
887
902
|
iconSizeLarge: string;
|
|
888
903
|
iconSizeHuge: string;
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
904
|
+
titleFontSizeSmall: string;
|
|
905
|
+
titleFontSizeMedium: string;
|
|
906
|
+
titleFontSizeLarge: string;
|
|
907
|
+
titleFontSizeHuge: string;
|
|
908
|
+
descriptionFontSizeSmall: string;
|
|
909
|
+
descriptionFontSizeMedium: string;
|
|
910
|
+
descriptionFontSizeLarge: string;
|
|
911
|
+
descriptionFontSizeHuge: string;
|
|
912
|
+
titleColor: string;
|
|
913
|
+
descriptionColor: string;
|
|
894
914
|
iconColor: string;
|
|
915
|
+
iconBgColor: string;
|
|
895
916
|
extraTextColor: string;
|
|
896
917
|
}, any>;
|
|
897
918
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
@@ -1050,6 +1071,9 @@ export declare const dataTableProps: {
|
|
|
1050
1071
|
tdTextColor: string;
|
|
1051
1072
|
thTextColor: string;
|
|
1052
1073
|
thFontWeight: string;
|
|
1074
|
+
thSubColor: string;
|
|
1075
|
+
thSubFontWeight: string;
|
|
1076
|
+
thSubFontSize: string;
|
|
1053
1077
|
thButtonColorHover: string;
|
|
1054
1078
|
thIconColor: string;
|
|
1055
1079
|
thIconColorActive: string;
|
|
@@ -1628,12 +1652,18 @@ export declare const dataTableProps: {
|
|
|
1628
1652
|
iconSizeMedium: string;
|
|
1629
1653
|
iconSizeLarge: string;
|
|
1630
1654
|
iconSizeHuge: string;
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1655
|
+
titleFontSizeSmall: string;
|
|
1656
|
+
titleFontSizeMedium: string;
|
|
1657
|
+
titleFontSizeLarge: string;
|
|
1658
|
+
titleFontSizeHuge: string;
|
|
1659
|
+
descriptionFontSizeSmall: string;
|
|
1660
|
+
descriptionFontSizeMedium: string;
|
|
1661
|
+
descriptionFontSizeLarge: string;
|
|
1662
|
+
descriptionFontSizeHuge: string;
|
|
1663
|
+
titleColor: string;
|
|
1664
|
+
descriptionColor: string;
|
|
1636
1665
|
iconColor: string;
|
|
1666
|
+
iconBgColor: string;
|
|
1637
1667
|
extraTextColor: string;
|
|
1638
1668
|
}, any>;
|
|
1639
1669
|
}>;
|
|
@@ -1761,12 +1791,18 @@ export declare const dataTableProps: {
|
|
|
1761
1791
|
iconSizeMedium: string;
|
|
1762
1792
|
iconSizeLarge: string;
|
|
1763
1793
|
iconSizeHuge: string;
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1794
|
+
titleFontSizeSmall: string;
|
|
1795
|
+
titleFontSizeMedium: string;
|
|
1796
|
+
titleFontSizeLarge: string;
|
|
1797
|
+
titleFontSizeHuge: string;
|
|
1798
|
+
descriptionFontSizeSmall: string;
|
|
1799
|
+
descriptionFontSizeMedium: string;
|
|
1800
|
+
descriptionFontSizeLarge: string;
|
|
1801
|
+
descriptionFontSizeHuge: string;
|
|
1802
|
+
titleColor: string;
|
|
1803
|
+
descriptionColor: string;
|
|
1769
1804
|
iconColor: string;
|
|
1805
|
+
iconBgColor: string;
|
|
1770
1806
|
extraTextColor: string;
|
|
1771
1807
|
}, any>;
|
|
1772
1808
|
}>;
|
|
@@ -1781,12 +1817,18 @@ export declare const dataTableProps: {
|
|
|
1781
1817
|
iconSizeMedium: string;
|
|
1782
1818
|
iconSizeLarge: string;
|
|
1783
1819
|
iconSizeHuge: string;
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1820
|
+
titleFontSizeSmall: string;
|
|
1821
|
+
titleFontSizeMedium: string;
|
|
1822
|
+
titleFontSizeLarge: string;
|
|
1823
|
+
titleFontSizeHuge: string;
|
|
1824
|
+
descriptionFontSizeSmall: string;
|
|
1825
|
+
descriptionFontSizeMedium: string;
|
|
1826
|
+
descriptionFontSizeLarge: string;
|
|
1827
|
+
descriptionFontSizeHuge: string;
|
|
1828
|
+
titleColor: string;
|
|
1829
|
+
descriptionColor: string;
|
|
1789
1830
|
iconColor: string;
|
|
1831
|
+
iconBgColor: string;
|
|
1790
1832
|
extraTextColor: string;
|
|
1791
1833
|
}, any>;
|
|
1792
1834
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
@@ -1945,6 +1987,9 @@ export declare const dataTableProps: {
|
|
|
1945
1987
|
tdTextColor: string;
|
|
1946
1988
|
thTextColor: string;
|
|
1947
1989
|
thFontWeight: string;
|
|
1990
|
+
thSubColor: string;
|
|
1991
|
+
thSubFontWeight: string;
|
|
1992
|
+
thSubFontSize: string;
|
|
1948
1993
|
thButtonColorHover: string;
|
|
1949
1994
|
thIconColor: string;
|
|
1950
1995
|
thIconColorActive: string;
|
|
@@ -2523,12 +2568,18 @@ export declare const dataTableProps: {
|
|
|
2523
2568
|
iconSizeMedium: string;
|
|
2524
2569
|
iconSizeLarge: string;
|
|
2525
2570
|
iconSizeHuge: string;
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2571
|
+
titleFontSizeSmall: string;
|
|
2572
|
+
titleFontSizeMedium: string;
|
|
2573
|
+
titleFontSizeLarge: string;
|
|
2574
|
+
titleFontSizeHuge: string;
|
|
2575
|
+
descriptionFontSizeSmall: string;
|
|
2576
|
+
descriptionFontSizeMedium: string;
|
|
2577
|
+
descriptionFontSizeLarge: string;
|
|
2578
|
+
descriptionFontSizeHuge: string;
|
|
2579
|
+
titleColor: string;
|
|
2580
|
+
descriptionColor: string;
|
|
2531
2581
|
iconColor: string;
|
|
2582
|
+
iconBgColor: string;
|
|
2532
2583
|
extraTextColor: string;
|
|
2533
2584
|
}, any>;
|
|
2534
2585
|
}>;
|
|
@@ -2656,12 +2707,18 @@ export declare const dataTableProps: {
|
|
|
2656
2707
|
iconSizeMedium: string;
|
|
2657
2708
|
iconSizeLarge: string;
|
|
2658
2709
|
iconSizeHuge: string;
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2710
|
+
titleFontSizeSmall: string;
|
|
2711
|
+
titleFontSizeMedium: string;
|
|
2712
|
+
titleFontSizeLarge: string;
|
|
2713
|
+
titleFontSizeHuge: string;
|
|
2714
|
+
descriptionFontSizeSmall: string;
|
|
2715
|
+
descriptionFontSizeMedium: string;
|
|
2716
|
+
descriptionFontSizeLarge: string;
|
|
2717
|
+
descriptionFontSizeHuge: string;
|
|
2718
|
+
titleColor: string;
|
|
2719
|
+
descriptionColor: string;
|
|
2664
2720
|
iconColor: string;
|
|
2721
|
+
iconBgColor: string;
|
|
2665
2722
|
extraTextColor: string;
|
|
2666
2723
|
}, any>;
|
|
2667
2724
|
}>;
|
|
@@ -2676,12 +2733,18 @@ export declare const dataTableProps: {
|
|
|
2676
2733
|
iconSizeMedium: string;
|
|
2677
2734
|
iconSizeLarge: string;
|
|
2678
2735
|
iconSizeHuge: string;
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2736
|
+
titleFontSizeSmall: string;
|
|
2737
|
+
titleFontSizeMedium: string;
|
|
2738
|
+
titleFontSizeLarge: string;
|
|
2739
|
+
titleFontSizeHuge: string;
|
|
2740
|
+
descriptionFontSizeSmall: string;
|
|
2741
|
+
descriptionFontSizeMedium: string;
|
|
2742
|
+
descriptionFontSizeLarge: string;
|
|
2743
|
+
descriptionFontSizeHuge: string;
|
|
2744
|
+
titleColor: string;
|
|
2745
|
+
descriptionColor: string;
|
|
2684
2746
|
iconColor: string;
|
|
2747
|
+
iconBgColor: string;
|
|
2685
2748
|
extraTextColor: string;
|
|
2686
2749
|
}, any>;
|
|
2687
2750
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
@@ -2841,12 +2904,14 @@ export interface CommonColumnInfo<T = InternalRowData> {
|
|
|
2841
2904
|
titleAlign?: 'left' | 'center' | 'right';
|
|
2842
2905
|
ellipsis?: Ellipsis;
|
|
2843
2906
|
cellProps?: (rowData: T, rowIndex: number) => HTMLAttributes;
|
|
2907
|
+
visible?: boolean;
|
|
2844
2908
|
}
|
|
2845
2909
|
export type TableColumnTitle = string | ((column: TableBaseColumn) => VNodeChild);
|
|
2846
2910
|
export type TableExpandColumnTitle = string | ((column: TableExpandColumn) => VNodeChild);
|
|
2847
2911
|
export type TableColumnGroupTitle = string | ((column: TableColumnGroup) => VNodeChild);
|
|
2848
2912
|
export type TableColumnGroup<T = InternalRowData> = {
|
|
2849
2913
|
title?: TableColumnGroupTitle;
|
|
2914
|
+
subtitle?: string;
|
|
2850
2915
|
type?: never;
|
|
2851
2916
|
key: ColumnKey;
|
|
2852
2917
|
children: Array<TableBaseColumn<T>>;
|
|
@@ -2855,9 +2920,24 @@ export type TableColumnGroup<T = InternalRowData> = {
|
|
|
2855
2920
|
} & CommonColumnInfo<T>;
|
|
2856
2921
|
export type TableBaseColumn<T = InternalRowData> = {
|
|
2857
2922
|
title?: TableColumnTitle;
|
|
2923
|
+
subtitle?: string;
|
|
2858
2924
|
titleColSpan?: number;
|
|
2859
2925
|
type?: never;
|
|
2860
2926
|
key: ColumnKey;
|
|
2927
|
+
editable?: boolean;
|
|
2928
|
+
mask?: string | ((value: string) => string) | {
|
|
2929
|
+
postProcess: (value: string) => string;
|
|
2930
|
+
};
|
|
2931
|
+
placeholder?: string;
|
|
2932
|
+
totalRow?: {
|
|
2933
|
+
type: 'sum' | 'default' | 'diff' | 'multiply' | 'divide' | 'percentage' | 'function';
|
|
2934
|
+
value?: string;
|
|
2935
|
+
fields?: string[];
|
|
2936
|
+
function?: (values: number[]) => number;
|
|
2937
|
+
mask?: string | ((value: string) => string) | {
|
|
2938
|
+
postProcess: (value: string) => string;
|
|
2939
|
+
};
|
|
2940
|
+
};
|
|
2861
2941
|
tree?: boolean;
|
|
2862
2942
|
sorter?: boolean | Sorter<T> | 'default';
|
|
2863
2943
|
defaultSortOrder?: SortOrder;
|
|
@@ -2904,6 +2984,7 @@ export type Expandable<T = InternalRowData> = (row: T) => boolean;
|
|
|
2904
2984
|
export interface TableExpandColumn<T = InternalRowData> extends Omit<TableSelectionColumn<T>, 'type'> {
|
|
2905
2985
|
type: 'expand';
|
|
2906
2986
|
title?: TableExpandColumnTitle;
|
|
2987
|
+
subtitle?: string;
|
|
2907
2988
|
renderExpand: RenderExpand<T>;
|
|
2908
2989
|
expandable?: Expandable<T>;
|
|
2909
2990
|
}
|
|
@@ -2994,6 +3075,7 @@ export interface DataTableInjection {
|
|
|
2994
3075
|
syncScrollState: (deltaX?: number, deltaY?: number) => void;
|
|
2995
3076
|
setHeaderScrollLeft: (scrollLeft: number) => void;
|
|
2996
3077
|
renderCell: Ref<undefined | ((value: any, rowData: object, column: TableBaseColumn) => VNodeChild)>;
|
|
3078
|
+
handleEdit: (value: any, row: any, key: string) => void;
|
|
2997
3079
|
}
|
|
2998
3080
|
export declare const dataTableInjectionKey: import("vue").InjectionKey<DataTableInjection>;
|
|
2999
3081
|
export interface MainTableInjection {
|
|
@@ -42,6 +42,9 @@ const fixedColumnStyle = createFixedColumnStyle();
|
|
|
42
42
|
// --u-loading-size
|
|
43
43
|
// --u-loading-color
|
|
44
44
|
// --u-opacity-loading
|
|
45
|
+
// --u-th-sub-color
|
|
46
|
+
// --u-th-sub-font-weight
|
|
47
|
+
// --u-th-sub-font-size
|
|
45
48
|
// --u-fixed-box-shadow used in Body.tsx
|
|
46
49
|
// --indent-offset for ellipsis & expand trigger
|
|
47
50
|
export default c([cB('data-table', `
|
|
@@ -137,7 +140,7 @@ c('&:last-child', 'flex-grow: 1;')])])])])])])]), c('>', [cB('data-table-loading
|
|
|
137
140
|
margin: calc(var(--u-th-padding) * -1);
|
|
138
141
|
padding: var(--u-th-padding);
|
|
139
142
|
box-sizing: border-box;
|
|
140
|
-
`), cM('disabled', null, [cB('data-table-td', 'color: var(--u-td-opacity-disabled);')]), cM('striped', 'background-color: var(--u-merged-td-color-striped);', [cB('data-table-td', 'background-color: var(--u-merged-td-color-striped);')]),
|
|
143
|
+
`), cM('disabled', null, [cB('data-table-td', 'color: var(--u-td-opacity-disabled);')]), cM('striped', 'background-color: var(--u-merged-td-color-striped);', [cB('data-table-td', 'background-color: var(--u-merged-td-color-striped);')]), c('&:hover', 'background-color: var(--u-merged-td-color-hover);', [c('>', [cB('data-table-td', 'background-color: var(--u-merged-td-color-hover);')])]), c('&:has(.u-data-table-td--editable:hover)', [c('>', [cB('data-table-td', 'background-color: var(--u-merged-td-color);', [cM('editable', [c('&:hover', 'background-color: var(--u-merged-td-color-hover);')])])])])]), cB('data-table-th', `
|
|
141
144
|
padding: var(--u-th-padding);
|
|
142
145
|
position: relative;
|
|
143
146
|
height: var(--u-th-height);
|
|
@@ -168,6 +171,10 @@ c('&:last-child', 'flex-grow: 1;')])])])])])])]), c('>', [cB('data-table-loading
|
|
|
168
171
|
`, [cE('title', `
|
|
169
172
|
flex: 1;
|
|
170
173
|
min-width: 0;
|
|
174
|
+
`), cE('subtitle', `
|
|
175
|
+
color: var(--u-th-sub-color);
|
|
176
|
+
font-weight: var(--u-th-sub-font-weight);
|
|
177
|
+
font-size: var(--u-th-sub-font-size);
|
|
171
178
|
`)]), cE('ellipsis', `
|
|
172
179
|
display: inline-block;
|
|
173
180
|
vertical-align: bottom;
|
|
@@ -286,6 +293,23 @@ c('&:last-child', 'flex-grow: 1;')])])])])])])]), c('>', [cB('data-table-loading
|
|
|
286
293
|
`), cM('selection, expand', `
|
|
287
294
|
text-align: center;
|
|
288
295
|
line-height: 0;
|
|
296
|
+
`), cM('editable', `
|
|
297
|
+
cursor: pointer;
|
|
298
|
+
position: relative;
|
|
299
|
+
|
|
300
|
+
.u-data-table-editable-input {
|
|
301
|
+
appearance: none;
|
|
302
|
+
text-align: right;
|
|
303
|
+
border: none;
|
|
304
|
+
background: none;
|
|
305
|
+
outline: none;
|
|
306
|
+
padding: 0;
|
|
307
|
+
margin: 0;
|
|
308
|
+
font: inherit;
|
|
309
|
+
color: inherit;
|
|
310
|
+
box-shadow: none;
|
|
311
|
+
width: '100%';
|
|
312
|
+
}
|
|
289
313
|
`), fixedColumnStyle]), cB('data-table-empty', `
|
|
290
314
|
box-sizing: border-box;
|
|
291
315
|
padding: var(--u-empty-padding);
|
|
@@ -12,7 +12,7 @@ export declare function useCheck(props: DataTableSetupProps, data: {
|
|
|
12
12
|
someRowsCheckedRef: ComputedRef<boolean>;
|
|
13
13
|
allRowsCheckedRef: ComputedRef<boolean>;
|
|
14
14
|
headerCheckboxDisabledRef: ComputedRef<boolean>;
|
|
15
|
-
doUpdateCheckedRowKeys: (keys: RowKey[], row: RowData | undefined, action:
|
|
15
|
+
doUpdateCheckedRowKeys: (keys: RowKey[], row: RowData | undefined, action: "check" | "uncheck" | "checkAll" | "uncheckAll") => void;
|
|
16
16
|
doCheckAll: (checkWholeTable?: boolean) => void;
|
|
17
17
|
doUncheckAll: (checkWholeTable?: boolean) => void;
|
|
18
18
|
doCheck: (rowKey: RowKey | RowKey[], single: boolean | undefined, rowInfo: RowData) => void;
|
|
@@ -3,7 +3,7 @@ import type { TreeMate } from 'treemate';
|
|
|
3
3
|
import type { Expandable, InternalRowData, RowKey, DataTableSetupProps } from './interface';
|
|
4
4
|
export declare function useExpand(props: DataTableSetupProps, treeMateRef: Ref<TreeMate<InternalRowData, InternalRowData, InternalRowData>>): {
|
|
5
5
|
stickyExpandedRowsRef: Ref<boolean>;
|
|
6
|
-
mergedExpandedRowKeysRef: import("vue").ComputedRef<
|
|
6
|
+
mergedExpandedRowKeysRef: import("vue").ComputedRef<RowKey[]>;
|
|
7
7
|
renderExpandRef: import("vue").ComputedRef<import("./interface").RenderExpand<any> | undefined>;
|
|
8
8
|
expandableRef: import("vue").ComputedRef<Expandable<any> | undefined>;
|
|
9
9
|
doUpdateExpandedRowKeys: (expandedKeys: RowKey[]) => void;
|
|
@@ -15,6 +15,8 @@ function getRowsAndCols(columns, getResizableWidth) {
|
|
|
15
15
|
maxDepth = currentDepth;
|
|
16
16
|
}
|
|
17
17
|
for (const column of columns) {
|
|
18
|
+
if (column.visible === false)
|
|
19
|
+
continue;
|
|
18
20
|
if ('children' in column) {
|
|
19
21
|
ensureMaxDepth(column.children, currentDepth + 1);
|
|
20
22
|
}
|
|
@@ -39,6 +41,8 @@ function getRowsAndCols(columns, getResizableWidth) {
|
|
|
39
41
|
let hideUntilIndex = 0;
|
|
40
42
|
columns.forEach((column, index) => {
|
|
41
43
|
var _a;
|
|
44
|
+
if (column.visible === false)
|
|
45
|
+
return;
|
|
42
46
|
if ('children' in column) {
|
|
43
47
|
// do not allow colSpan > 1 for non-leaf th
|
|
44
48
|
// we will execute the calculation logic
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function applyMask(value: string, mask: string): string;
|
|
2
|
+
export declare function processMaskedValue(value: string | number, mask: string | ((value: string) => string) | {
|
|
3
|
+
postProcess: (value: string) => string;
|
|
4
|
+
}): string;
|
|
5
|
+
export declare function processInputWithMask(value: string, mask: string | ((value: string) => string) | {
|
|
6
|
+
postProcess: (value: string) => string;
|
|
7
|
+
}): {
|
|
8
|
+
processedValue: string | number;
|
|
9
|
+
displayValue: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { REGEX } from './utils';
|
|
2
|
+
export function applyMask(value, mask) {
|
|
3
|
+
if (!mask)
|
|
4
|
+
return value;
|
|
5
|
+
if (!value || value.trim() === '')
|
|
6
|
+
return '';
|
|
7
|
+
const cleanValue = value.replace(REGEX.ONLY_DIGITS, '');
|
|
8
|
+
if (!cleanValue)
|
|
9
|
+
return '';
|
|
10
|
+
let result = '';
|
|
11
|
+
let valueIndex = 0;
|
|
12
|
+
for (let i = 0; i < mask.length && valueIndex < cleanValue.length; i++) {
|
|
13
|
+
if (mask[i] === '#') {
|
|
14
|
+
result += cleanValue[valueIndex];
|
|
15
|
+
valueIndex++;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
result += mask[i];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return result;
|
|
22
|
+
}
|
|
23
|
+
export function processMaskedValue(value, mask) {
|
|
24
|
+
if (!mask || value === null || value === undefined) {
|
|
25
|
+
return String(value);
|
|
26
|
+
}
|
|
27
|
+
const stringValue = String(value);
|
|
28
|
+
if (typeof mask === 'function') {
|
|
29
|
+
return mask(stringValue);
|
|
30
|
+
}
|
|
31
|
+
else if (typeof mask === 'object' && mask.postProcess) {
|
|
32
|
+
return mask.postProcess(stringValue);
|
|
33
|
+
}
|
|
34
|
+
else if (typeof mask === 'string') {
|
|
35
|
+
return applyMask(stringValue, mask);
|
|
36
|
+
}
|
|
37
|
+
return stringValue;
|
|
38
|
+
}
|
|
39
|
+
export function processInputWithMask(value, mask) {
|
|
40
|
+
if (!mask) {
|
|
41
|
+
return { processedValue: value, displayValue: value };
|
|
42
|
+
}
|
|
43
|
+
if (typeof mask === 'function') {
|
|
44
|
+
const processedValue = mask(value);
|
|
45
|
+
return { processedValue, displayValue: processedValue };
|
|
46
|
+
}
|
|
47
|
+
else if (typeof mask === 'object' && mask.postProcess) {
|
|
48
|
+
const displayValue = mask.postProcess(value);
|
|
49
|
+
const cleanValue = value.replace(REGEX.ONLY_DIGITS, '');
|
|
50
|
+
const processedValue = cleanValue ? parseFloat(cleanValue) : 0;
|
|
51
|
+
return { processedValue, displayValue };
|
|
52
|
+
}
|
|
53
|
+
else if (typeof mask === 'string') {
|
|
54
|
+
const displayValue = applyMask(value, mask);
|
|
55
|
+
return { processedValue: value, displayValue };
|
|
56
|
+
}
|
|
57
|
+
return { processedValue: value, displayValue: value };
|
|
58
|
+
}
|
|
@@ -2,6 +2,10 @@ import type { CSSProperties } from 'vue';
|
|
|
2
2
|
import type { SortOrder, TableBaseColumn, InternalRowData, SortOrderFlag, SortState, CreateRowClassName, TableSelectionColumn, TableColumn, TableExpandColumn } from './interface';
|
|
3
3
|
export declare const SELECTION_COL_WIDTH = 40;
|
|
4
4
|
export declare const EXPAND_COL_WIDTH = 40;
|
|
5
|
+
export declare const REGEX: {
|
|
6
|
+
ONLY_DIGITS: RegExp;
|
|
7
|
+
ONLY_NUMERIC_AND_DOT: RegExp;
|
|
8
|
+
};
|
|
5
9
|
export declare function getNumberColWidth(col: TableColumn): number | undefined;
|
|
6
10
|
export declare function getStringColWidth(col: TableColumn): string | undefined;
|
|
7
11
|
export declare function getColKey(col: TableColumn): string | number;
|
|
@@ -2,6 +2,10 @@ import { depx } from 'seemly';
|
|
|
2
2
|
import { formatLength } from '../../_utils';
|
|
3
3
|
export const SELECTION_COL_WIDTH = 40;
|
|
4
4
|
export const EXPAND_COL_WIDTH = 40;
|
|
5
|
+
export const REGEX = {
|
|
6
|
+
ONLY_DIGITS: /\D/g,
|
|
7
|
+
ONLY_NUMERIC_AND_DOT: /[^\d.]/g
|
|
8
|
+
};
|
|
5
9
|
export function getNumberColWidth(col) {
|
|
6
10
|
if (col.type === 'selection') {
|
|
7
11
|
return col.width === undefined ? SELECTION_COL_WIDTH : depx(col.width);
|
|
@@ -35,6 +35,9 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
35
35
|
tdTextColor: string;
|
|
36
36
|
thTextColor: string;
|
|
37
37
|
thFontWeight: string;
|
|
38
|
+
thSubColor: string;
|
|
39
|
+
thSubFontWeight: string;
|
|
40
|
+
thSubFontSize: string;
|
|
38
41
|
thButtonColorHover: string;
|
|
39
42
|
thIconColor: string;
|
|
40
43
|
thIconColorActive: string;
|
|
@@ -93,6 +96,9 @@ declare const dataTableLight: import("../../_mixins").Theme<"DataTable", {
|
|
|
93
96
|
tdTextColor: string;
|
|
94
97
|
thTextColor: string;
|
|
95
98
|
thFontWeight: string;
|
|
99
|
+
thSubColor: string;
|
|
100
|
+
thSubFontWeight: string;
|
|
101
|
+
thSubFontSize: string;
|
|
96
102
|
thButtonColorHover: string;
|
|
97
103
|
thIconColor: string;
|
|
98
104
|
thIconColorActive: string;
|
|
@@ -671,12 +677,18 @@ declare const dataTableLight: import("../../_mixins").Theme<"DataTable", {
|
|
|
671
677
|
iconSizeMedium: string;
|
|
672
678
|
iconSizeLarge: string;
|
|
673
679
|
iconSizeHuge: string;
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
680
|
+
titleFontSizeSmall: string;
|
|
681
|
+
titleFontSizeMedium: string;
|
|
682
|
+
titleFontSizeLarge: string;
|
|
683
|
+
titleFontSizeHuge: string;
|
|
684
|
+
descriptionFontSizeSmall: string;
|
|
685
|
+
descriptionFontSizeMedium: string;
|
|
686
|
+
descriptionFontSizeLarge: string;
|
|
687
|
+
descriptionFontSizeHuge: string;
|
|
688
|
+
titleColor: string;
|
|
689
|
+
descriptionColor: string;
|
|
679
690
|
iconColor: string;
|
|
691
|
+
iconBgColor: string;
|
|
680
692
|
extraTextColor: string;
|
|
681
693
|
}, any>;
|
|
682
694
|
}>;
|
|
@@ -804,12 +816,18 @@ declare const dataTableLight: import("../../_mixins").Theme<"DataTable", {
|
|
|
804
816
|
iconSizeMedium: string;
|
|
805
817
|
iconSizeLarge: string;
|
|
806
818
|
iconSizeHuge: string;
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
819
|
+
titleFontSizeSmall: string;
|
|
820
|
+
titleFontSizeMedium: string;
|
|
821
|
+
titleFontSizeLarge: string;
|
|
822
|
+
titleFontSizeHuge: string;
|
|
823
|
+
descriptionFontSizeSmall: string;
|
|
824
|
+
descriptionFontSizeMedium: string;
|
|
825
|
+
descriptionFontSizeLarge: string;
|
|
826
|
+
descriptionFontSizeHuge: string;
|
|
827
|
+
titleColor: string;
|
|
828
|
+
descriptionColor: string;
|
|
812
829
|
iconColor: string;
|
|
830
|
+
iconBgColor: string;
|
|
813
831
|
extraTextColor: string;
|
|
814
832
|
}, any>;
|
|
815
833
|
}>;
|
|
@@ -824,12 +842,18 @@ declare const dataTableLight: import("../../_mixins").Theme<"DataTable", {
|
|
|
824
842
|
iconSizeMedium: string;
|
|
825
843
|
iconSizeLarge: string;
|
|
826
844
|
iconSizeHuge: string;
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
845
|
+
titleFontSizeSmall: string;
|
|
846
|
+
titleFontSizeMedium: string;
|
|
847
|
+
titleFontSizeLarge: string;
|
|
848
|
+
titleFontSizeHuge: string;
|
|
849
|
+
descriptionFontSizeSmall: string;
|
|
850
|
+
descriptionFontSizeMedium: string;
|
|
851
|
+
descriptionFontSizeLarge: string;
|
|
852
|
+
descriptionFontSizeHuge: string;
|
|
853
|
+
titleColor: string;
|
|
854
|
+
descriptionColor: string;
|
|
832
855
|
iconColor: string;
|
|
856
|
+
iconBgColor: string;
|
|
833
857
|
extraTextColor: string;
|
|
834
858
|
}, any>;
|
|
835
859
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
@@ -10,7 +10,7 @@ import { dropdownLight } from '../../dropdown/styles';
|
|
|
10
10
|
import { commonLight } from '../../_styles/common';
|
|
11
11
|
import { createTheme } from '../../_mixins';
|
|
12
12
|
export const self = (vars) => {
|
|
13
|
-
const { borderRadius, opacityDisabled, elementsQuaternary, lineHeightBodyLarge, fontBodyMedium, fontBodyLarge, elementsTertiary, containerPrimary, textPrimary, textSecondary, fontWeightBold, elementsPrimary, brandPrimary500, shadowDepth, iconLarge } = vars;
|
|
13
|
+
const { borderRadius, opacityDisabled, elementsQuaternary, lineHeightBodyLarge, fontBodySmall, fontBodyMedium, fontBodyLarge, elementsTertiary, containerPrimary, textPrimary, textSecondary, fontWeightBold, elementsPrimary, brandPrimary500, fontWeight, shadowDepth, iconLarge } = vars;
|
|
14
14
|
return {
|
|
15
15
|
thPaddingSmall: '8px',
|
|
16
16
|
thPaddingMedium: '8px 16px',
|
|
@@ -47,6 +47,9 @@ export const self = (vars) => {
|
|
|
47
47
|
tdTextColor: textPrimary,
|
|
48
48
|
thTextColor: textSecondary,
|
|
49
49
|
thFontWeight: fontWeightBold,
|
|
50
|
+
thSubColor: textSecondary,
|
|
51
|
+
thSubFontWeight: fontWeight,
|
|
52
|
+
thSubFontSize: fontBodySmall,
|
|
50
53
|
thButtonColorHover: elementsTertiary,
|
|
51
54
|
thIconColor: elementsPrimary,
|
|
52
55
|
thIconColorActive: brandPrimary500,
|