@uzum-tech/ui 1.3.1 → 1.4.1
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 +3 -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 +109 -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 +3 -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 +114 -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
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import type { ListItemOptions } from './interface';
|
|
3
|
+
import { ExtractPublicPropTypes } from '../../_utils';
|
|
4
|
+
export declare const cardListProps: {
|
|
5
|
+
readonly data: PropType<ListItemOptions[]>;
|
|
6
|
+
readonly options: PropType<ListItemOptions[]>;
|
|
7
|
+
readonly cols: {
|
|
8
|
+
readonly type: PropType<number | string>;
|
|
9
|
+
readonly default: 3;
|
|
10
|
+
};
|
|
11
|
+
readonly xGap: {
|
|
12
|
+
readonly type: PropType<number | string>;
|
|
13
|
+
readonly default: 16;
|
|
14
|
+
};
|
|
15
|
+
readonly yGap: {
|
|
16
|
+
readonly type: PropType<number | string>;
|
|
17
|
+
readonly default: 16;
|
|
18
|
+
};
|
|
19
|
+
readonly cardProps: PropType<Record<string, any>>;
|
|
20
|
+
readonly gridProps: PropType<Record<string, any>>;
|
|
21
|
+
readonly showDivider: {
|
|
22
|
+
readonly type: BooleanConstructor;
|
|
23
|
+
readonly default: true;
|
|
24
|
+
};
|
|
25
|
+
readonly renderDivider: PropType<({ index, count, direction }: {
|
|
26
|
+
index: number;
|
|
27
|
+
count: number;
|
|
28
|
+
direction: "horizontal" | "vertical";
|
|
29
|
+
}) => any>;
|
|
30
|
+
readonly theme: PropType<import("../../_mixins").Theme<"CardList", {
|
|
31
|
+
textColor: string;
|
|
32
|
+
textLineHeight: string;
|
|
33
|
+
textFontWeight: string;
|
|
34
|
+
textFontSize: string;
|
|
35
|
+
titleTextColor: string;
|
|
36
|
+
titleLineHeight: string;
|
|
37
|
+
titleFontWeight: string;
|
|
38
|
+
titleFontSize: string;
|
|
39
|
+
borderColor: string;
|
|
40
|
+
borderRadius: string;
|
|
41
|
+
boxShadow: string;
|
|
42
|
+
colorEmbedded: string;
|
|
43
|
+
dividerColor: string;
|
|
44
|
+
dropDownBgColor: string;
|
|
45
|
+
}, any>>;
|
|
46
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"CardList", {
|
|
47
|
+
textColor: string;
|
|
48
|
+
textLineHeight: string;
|
|
49
|
+
textFontWeight: string;
|
|
50
|
+
textFontSize: string;
|
|
51
|
+
titleTextColor: string;
|
|
52
|
+
titleLineHeight: string;
|
|
53
|
+
titleFontWeight: string;
|
|
54
|
+
titleFontSize: string;
|
|
55
|
+
borderColor: string;
|
|
56
|
+
borderRadius: string;
|
|
57
|
+
boxShadow: string;
|
|
58
|
+
colorEmbedded: string;
|
|
59
|
+
dividerColor: string;
|
|
60
|
+
dropDownBgColor: string;
|
|
61
|
+
}, any>>>;
|
|
62
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"CardList", {
|
|
63
|
+
textColor: string;
|
|
64
|
+
textLineHeight: string;
|
|
65
|
+
textFontWeight: string;
|
|
66
|
+
textFontSize: string;
|
|
67
|
+
titleTextColor: string;
|
|
68
|
+
titleLineHeight: string;
|
|
69
|
+
titleFontWeight: string;
|
|
70
|
+
titleFontSize: string;
|
|
71
|
+
borderColor: string;
|
|
72
|
+
borderRadius: string;
|
|
73
|
+
boxShadow: string;
|
|
74
|
+
colorEmbedded: string;
|
|
75
|
+
dividerColor: string;
|
|
76
|
+
dropDownBgColor: string;
|
|
77
|
+
}, any>>>;
|
|
78
|
+
};
|
|
79
|
+
export type CardListProps = ExtractPublicPropTypes<typeof cardListProps>;
|
|
80
|
+
declare const _default: import("vue").DefineComponent<{
|
|
81
|
+
readonly data: PropType<ListItemOptions[]>;
|
|
82
|
+
readonly options: PropType<ListItemOptions[]>;
|
|
83
|
+
readonly cols: {
|
|
84
|
+
readonly type: PropType<number | string>;
|
|
85
|
+
readonly default: 3;
|
|
86
|
+
};
|
|
87
|
+
readonly xGap: {
|
|
88
|
+
readonly type: PropType<number | string>;
|
|
89
|
+
readonly default: 16;
|
|
90
|
+
};
|
|
91
|
+
readonly yGap: {
|
|
92
|
+
readonly type: PropType<number | string>;
|
|
93
|
+
readonly default: 16;
|
|
94
|
+
};
|
|
95
|
+
readonly cardProps: PropType<Record<string, any>>;
|
|
96
|
+
readonly gridProps: PropType<Record<string, any>>;
|
|
97
|
+
readonly showDivider: {
|
|
98
|
+
readonly type: BooleanConstructor;
|
|
99
|
+
readonly default: true;
|
|
100
|
+
};
|
|
101
|
+
readonly renderDivider: PropType<({ index, count, direction }: {
|
|
102
|
+
index: number;
|
|
103
|
+
count: number;
|
|
104
|
+
direction: "horizontal" | "vertical";
|
|
105
|
+
}) => any>;
|
|
106
|
+
readonly theme: PropType<import("../../_mixins").Theme<"CardList", {
|
|
107
|
+
textColor: string;
|
|
108
|
+
textLineHeight: string;
|
|
109
|
+
textFontWeight: string;
|
|
110
|
+
textFontSize: string;
|
|
111
|
+
titleTextColor: string;
|
|
112
|
+
titleLineHeight: string;
|
|
113
|
+
titleFontWeight: string;
|
|
114
|
+
titleFontSize: string;
|
|
115
|
+
borderColor: string;
|
|
116
|
+
borderRadius: string;
|
|
117
|
+
boxShadow: string;
|
|
118
|
+
colorEmbedded: string;
|
|
119
|
+
dividerColor: string;
|
|
120
|
+
dropDownBgColor: string;
|
|
121
|
+
}, any>>;
|
|
122
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"CardList", {
|
|
123
|
+
textColor: string;
|
|
124
|
+
textLineHeight: string;
|
|
125
|
+
textFontWeight: string;
|
|
126
|
+
textFontSize: string;
|
|
127
|
+
titleTextColor: string;
|
|
128
|
+
titleLineHeight: string;
|
|
129
|
+
titleFontWeight: string;
|
|
130
|
+
titleFontSize: string;
|
|
131
|
+
borderColor: string;
|
|
132
|
+
borderRadius: string;
|
|
133
|
+
boxShadow: string;
|
|
134
|
+
colorEmbedded: string;
|
|
135
|
+
dividerColor: string;
|
|
136
|
+
dropDownBgColor: string;
|
|
137
|
+
}, any>>>;
|
|
138
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"CardList", {
|
|
139
|
+
textColor: string;
|
|
140
|
+
textLineHeight: string;
|
|
141
|
+
textFontWeight: string;
|
|
142
|
+
textFontSize: string;
|
|
143
|
+
titleTextColor: string;
|
|
144
|
+
titleLineHeight: string;
|
|
145
|
+
titleFontWeight: string;
|
|
146
|
+
titleFontSize: string;
|
|
147
|
+
borderColor: string;
|
|
148
|
+
borderRadius: string;
|
|
149
|
+
boxShadow: string;
|
|
150
|
+
colorEmbedded: string;
|
|
151
|
+
dividerColor: string;
|
|
152
|
+
dropDownBgColor: string;
|
|
153
|
+
}, any>>>;
|
|
154
|
+
}, {
|
|
155
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
156
|
+
cssVars: import("vue").ComputedRef<{
|
|
157
|
+
'--u-bezier': string;
|
|
158
|
+
'--u-border-color': string;
|
|
159
|
+
'--u-border-radius': string;
|
|
160
|
+
'--u-box-shadow': string;
|
|
161
|
+
'--u-color-embedded': string;
|
|
162
|
+
'--u-text-color': string;
|
|
163
|
+
'--u-text-line-height': string;
|
|
164
|
+
'--u-text-font-weight': string;
|
|
165
|
+
'--u-text-font-size': string;
|
|
166
|
+
'--u-title-text-color': string;
|
|
167
|
+
'--u-title-line-height': string;
|
|
168
|
+
'--u-title-font-weight': string;
|
|
169
|
+
'--u-title-font-size': string;
|
|
170
|
+
'--u-divider-color': string;
|
|
171
|
+
'--u-dropdown-bg-color': string;
|
|
172
|
+
}> | undefined;
|
|
173
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
174
|
+
onRender: (() => void) | undefined;
|
|
175
|
+
items: import("vue").ComputedRef<ListItemOptions[]>;
|
|
176
|
+
slots: Readonly<{
|
|
177
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
178
|
+
}>;
|
|
179
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
180
|
+
readonly data: PropType<ListItemOptions[]>;
|
|
181
|
+
readonly options: PropType<ListItemOptions[]>;
|
|
182
|
+
readonly cols: {
|
|
183
|
+
readonly type: PropType<number | string>;
|
|
184
|
+
readonly default: 3;
|
|
185
|
+
};
|
|
186
|
+
readonly xGap: {
|
|
187
|
+
readonly type: PropType<number | string>;
|
|
188
|
+
readonly default: 16;
|
|
189
|
+
};
|
|
190
|
+
readonly yGap: {
|
|
191
|
+
readonly type: PropType<number | string>;
|
|
192
|
+
readonly default: 16;
|
|
193
|
+
};
|
|
194
|
+
readonly cardProps: PropType<Record<string, any>>;
|
|
195
|
+
readonly gridProps: PropType<Record<string, any>>;
|
|
196
|
+
readonly showDivider: {
|
|
197
|
+
readonly type: BooleanConstructor;
|
|
198
|
+
readonly default: true;
|
|
199
|
+
};
|
|
200
|
+
readonly renderDivider: PropType<({ index, count, direction }: {
|
|
201
|
+
index: number;
|
|
202
|
+
count: number;
|
|
203
|
+
direction: "horizontal" | "vertical";
|
|
204
|
+
}) => any>;
|
|
205
|
+
readonly theme: PropType<import("../../_mixins").Theme<"CardList", {
|
|
206
|
+
textColor: string;
|
|
207
|
+
textLineHeight: string;
|
|
208
|
+
textFontWeight: string;
|
|
209
|
+
textFontSize: string;
|
|
210
|
+
titleTextColor: string;
|
|
211
|
+
titleLineHeight: string;
|
|
212
|
+
titleFontWeight: string;
|
|
213
|
+
titleFontSize: string;
|
|
214
|
+
borderColor: string;
|
|
215
|
+
borderRadius: string;
|
|
216
|
+
boxShadow: string;
|
|
217
|
+
colorEmbedded: string;
|
|
218
|
+
dividerColor: string;
|
|
219
|
+
dropDownBgColor: string;
|
|
220
|
+
}, any>>;
|
|
221
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"CardList", {
|
|
222
|
+
textColor: string;
|
|
223
|
+
textLineHeight: string;
|
|
224
|
+
textFontWeight: string;
|
|
225
|
+
textFontSize: string;
|
|
226
|
+
titleTextColor: string;
|
|
227
|
+
titleLineHeight: string;
|
|
228
|
+
titleFontWeight: string;
|
|
229
|
+
titleFontSize: string;
|
|
230
|
+
borderColor: string;
|
|
231
|
+
borderRadius: string;
|
|
232
|
+
boxShadow: string;
|
|
233
|
+
colorEmbedded: string;
|
|
234
|
+
dividerColor: string;
|
|
235
|
+
dropDownBgColor: string;
|
|
236
|
+
}, any>>>;
|
|
237
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"CardList", {
|
|
238
|
+
textColor: string;
|
|
239
|
+
textLineHeight: string;
|
|
240
|
+
textFontWeight: string;
|
|
241
|
+
textFontSize: string;
|
|
242
|
+
titleTextColor: string;
|
|
243
|
+
titleLineHeight: string;
|
|
244
|
+
titleFontWeight: string;
|
|
245
|
+
titleFontSize: string;
|
|
246
|
+
borderColor: string;
|
|
247
|
+
borderRadius: string;
|
|
248
|
+
boxShadow: string;
|
|
249
|
+
colorEmbedded: string;
|
|
250
|
+
dividerColor: string;
|
|
251
|
+
dropDownBgColor: string;
|
|
252
|
+
}, any>>>;
|
|
253
|
+
}>>, {
|
|
254
|
+
readonly cols: string | number;
|
|
255
|
+
readonly xGap: string | number;
|
|
256
|
+
readonly yGap: string | number;
|
|
257
|
+
readonly showDivider: boolean;
|
|
258
|
+
}, {}>;
|
|
259
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { defineComponent, h, computed } from 'vue';
|
|
2
|
+
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
3
|
+
import Grid from '../../grid/src/Grid';
|
|
4
|
+
import GridItem from '../../grid/src/GridItem';
|
|
5
|
+
import UCardListItem from './CardListItem';
|
|
6
|
+
import style from './styles/index.cssr';
|
|
7
|
+
import cardListLight from '../styles/light';
|
|
8
|
+
export const cardListProps = Object.assign(Object.assign({}, useTheme.props), { data: Array, options: Array, cols: {
|
|
9
|
+
type: [Number, String],
|
|
10
|
+
default: 3
|
|
11
|
+
}, xGap: {
|
|
12
|
+
type: [Number, String],
|
|
13
|
+
default: 16
|
|
14
|
+
}, yGap: {
|
|
15
|
+
type: [Number, String],
|
|
16
|
+
default: 16
|
|
17
|
+
}, cardProps: Object, gridProps: Object, showDivider: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: true
|
|
20
|
+
}, renderDivider: Function });
|
|
21
|
+
export default defineComponent({
|
|
22
|
+
name: 'CardList',
|
|
23
|
+
props: cardListProps,
|
|
24
|
+
setup(props, { slots }) {
|
|
25
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
26
|
+
const items = computed(() => props.data || props.options || []);
|
|
27
|
+
const themeRef = useTheme('CardList', '-card-list', style, cardListLight, props, mergedClsPrefixRef);
|
|
28
|
+
const cssVarsRef = computed(() => {
|
|
29
|
+
const { self: { textColor, textLineHeight, textFontWeight, textFontSize, titleTextColor, titleLineHeight, titleFontWeight, titleFontSize, borderColor, borderRadius, boxShadow, colorEmbedded, dividerColor, dropDownBgColor }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
30
|
+
return {
|
|
31
|
+
'--u-bezier': cubicBezierEaseInOut,
|
|
32
|
+
'--u-border-color': borderColor,
|
|
33
|
+
'--u-border-radius': borderRadius,
|
|
34
|
+
'--u-box-shadow': boxShadow,
|
|
35
|
+
'--u-color-embedded': colorEmbedded,
|
|
36
|
+
'--u-text-color': textColor,
|
|
37
|
+
'--u-text-line-height': textLineHeight,
|
|
38
|
+
'--u-text-font-weight': textFontWeight,
|
|
39
|
+
'--u-text-font-size': textFontSize,
|
|
40
|
+
'--u-title-text-color': titleTextColor,
|
|
41
|
+
'--u-title-line-height': titleLineHeight,
|
|
42
|
+
'--u-title-font-weight': titleFontWeight,
|
|
43
|
+
'--u-title-font-size': titleFontSize,
|
|
44
|
+
'--u-divider-color': dividerColor,
|
|
45
|
+
'--u-dropdown-bg-color': dropDownBgColor
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
const themeClassHandle = inlineThemeDisabled
|
|
49
|
+
? useThemeClass('card-list', undefined, cssVarsRef, props)
|
|
50
|
+
: undefined;
|
|
51
|
+
return {
|
|
52
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
53
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
54
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
55
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender,
|
|
56
|
+
items,
|
|
57
|
+
slots
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
render() {
|
|
61
|
+
const { mergedClsPrefix, items, cols, xGap, yGap, cardProps, gridProps, showDivider, themeClass, cssVars, renderDivider, onRender } = this;
|
|
62
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
63
|
+
return h(Grid, Object.assign({ class: [`${mergedClsPrefix}-card-list`, themeClass], style: cssVars, cols,
|
|
64
|
+
xGap,
|
|
65
|
+
yGap }, gridProps), () => items.map((card, idx) => h(GridItem, { key: idx, span: card.span || 1 }, () => [
|
|
66
|
+
h(UCardListItem, Object.assign(Object.assign({ title: card.title, subtitle: card.subtitle, items: card.items, direction: card.direction, dropdown: card.dropdown }, cardProps), { renderDivider: showDivider ? renderDivider : () => null }))
|
|
67
|
+
])));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
+
import type { VNode } from 'vue';
|
|
4
|
+
declare const cardListItemProps: {
|
|
5
|
+
readonly title: StringConstructor;
|
|
6
|
+
readonly subtitle: StringConstructor;
|
|
7
|
+
readonly items: PropType<Array<{
|
|
8
|
+
title?: string;
|
|
9
|
+
content?: string;
|
|
10
|
+
}>>;
|
|
11
|
+
readonly direction: {
|
|
12
|
+
readonly type: PropType<"horizontal" | "vertical">;
|
|
13
|
+
readonly default: "horizontal";
|
|
14
|
+
};
|
|
15
|
+
readonly dropdown: BooleanConstructor;
|
|
16
|
+
readonly renderDivider: PropType<({ index, count, direction }: {
|
|
17
|
+
index: number;
|
|
18
|
+
count: number;
|
|
19
|
+
direction: "horizontal" | "vertical";
|
|
20
|
+
}) => VNode>;
|
|
21
|
+
};
|
|
22
|
+
export type CardListItemProps = ExtractPublicPropTypes<typeof cardListItemProps>;
|
|
23
|
+
declare const _default: import("vue").DefineComponent<{
|
|
24
|
+
readonly title: StringConstructor;
|
|
25
|
+
readonly subtitle: StringConstructor;
|
|
26
|
+
readonly items: PropType<Array<{
|
|
27
|
+
title?: string;
|
|
28
|
+
content?: string;
|
|
29
|
+
}>>;
|
|
30
|
+
readonly direction: {
|
|
31
|
+
readonly type: PropType<"horizontal" | "vertical">;
|
|
32
|
+
readonly default: "horizontal";
|
|
33
|
+
};
|
|
34
|
+
readonly dropdown: BooleanConstructor;
|
|
35
|
+
readonly renderDivider: PropType<({ index, count, direction }: {
|
|
36
|
+
index: number;
|
|
37
|
+
count: number;
|
|
38
|
+
direction: "horizontal" | "vertical";
|
|
39
|
+
}) => VNode>;
|
|
40
|
+
}, {
|
|
41
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
42
|
+
slots: Readonly<{
|
|
43
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
isOpen: import("vue").Ref<boolean>;
|
|
46
|
+
toggle: () => void;
|
|
47
|
+
selfRef: import("vue").Ref<HTMLElement | null>;
|
|
48
|
+
dropdownRef: import("vue").Ref<HTMLElement | null>;
|
|
49
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
readonly title: StringConstructor;
|
|
51
|
+
readonly subtitle: StringConstructor;
|
|
52
|
+
readonly items: PropType<Array<{
|
|
53
|
+
title?: string;
|
|
54
|
+
content?: string;
|
|
55
|
+
}>>;
|
|
56
|
+
readonly direction: {
|
|
57
|
+
readonly type: PropType<"horizontal" | "vertical">;
|
|
58
|
+
readonly default: "horizontal";
|
|
59
|
+
};
|
|
60
|
+
readonly dropdown: BooleanConstructor;
|
|
61
|
+
readonly renderDivider: PropType<({ index, count, direction }: {
|
|
62
|
+
index: number;
|
|
63
|
+
count: number;
|
|
64
|
+
direction: "horizontal" | "vertical";
|
|
65
|
+
}) => VNode>;
|
|
66
|
+
}>>, {
|
|
67
|
+
readonly direction: "vertical" | "horizontal";
|
|
68
|
+
readonly dropdown: boolean;
|
|
69
|
+
}, {}>;
|
|
70
|
+
export default _default;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { defineComponent, h, ref, onMounted, onBeforeUnmount } from 'vue';
|
|
2
|
+
import { useConfig } from '../../_mixins';
|
|
3
|
+
import useStyle from '../../_mixins/use-style';
|
|
4
|
+
import style from './styles/index.cssr';
|
|
5
|
+
import ChevronDown from '../../_internal/icons/ChevronDown';
|
|
6
|
+
const cardListItemProps = {
|
|
7
|
+
title: String,
|
|
8
|
+
subtitle: String,
|
|
9
|
+
items: Array,
|
|
10
|
+
direction: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: 'horizontal'
|
|
13
|
+
},
|
|
14
|
+
dropdown: Boolean,
|
|
15
|
+
renderDivider: Function
|
|
16
|
+
};
|
|
17
|
+
export default defineComponent({
|
|
18
|
+
name: 'UCardListItem',
|
|
19
|
+
props: cardListItemProps,
|
|
20
|
+
setup(props, { slots }) {
|
|
21
|
+
const { mergedClsPrefixRef } = useConfig(props);
|
|
22
|
+
useStyle('-card-list-item', style, mergedClsPrefixRef);
|
|
23
|
+
const isOpen = ref(false);
|
|
24
|
+
const toggle = () => {
|
|
25
|
+
isOpen.value = !isOpen.value;
|
|
26
|
+
};
|
|
27
|
+
const selfRef = ref(null);
|
|
28
|
+
const dropdownRef = ref(null);
|
|
29
|
+
const handleClickOutside = (event) => {
|
|
30
|
+
if (selfRef.value &&
|
|
31
|
+
!selfRef.value.contains(event.target) &&
|
|
32
|
+
dropdownRef.value &&
|
|
33
|
+
!dropdownRef.value.contains(event.target)) {
|
|
34
|
+
if (isOpen.value) {
|
|
35
|
+
isOpen.value = false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
onMounted(() => {
|
|
40
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
41
|
+
});
|
|
42
|
+
onBeforeUnmount(() => {
|
|
43
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
44
|
+
});
|
|
45
|
+
return {
|
|
46
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
47
|
+
slots,
|
|
48
|
+
isOpen,
|
|
49
|
+
toggle,
|
|
50
|
+
selfRef,
|
|
51
|
+
dropdownRef
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
render() {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
const mergedClsPrefix = this.mergedClsPrefix;
|
|
57
|
+
const items = Array.isArray(this.items) ? this.items : [];
|
|
58
|
+
const isGrouped = !this.dropdown &&
|
|
59
|
+
(this.direction === 'horizontal' || this.direction === 'vertical');
|
|
60
|
+
const isDropdown = this.dropdown;
|
|
61
|
+
return (h("div", { class: `${mergedClsPrefix}-card-list-item`, onClick: isDropdown && items.length ? this.toggle : undefined, ref: "selfRef" },
|
|
62
|
+
isDropdown && (h("div", { class: `${mergedClsPrefix}-card-list-item__wrapper` },
|
|
63
|
+
h("div", { class: `${mergedClsPrefix}-card-list-item__wrapper-content` },
|
|
64
|
+
this.title && (h("div", { class: `${mergedClsPrefix}-card-list-item__title` }, this.title)),
|
|
65
|
+
this.subtitle && (h("div", { class: `${mergedClsPrefix}-card-list-item__subtitle` }, this.subtitle))),
|
|
66
|
+
h(ChevronDown, { style: {
|
|
67
|
+
width: '20px',
|
|
68
|
+
height: '20px',
|
|
69
|
+
color: '#B0B3B9',
|
|
70
|
+
flexShrink: 0,
|
|
71
|
+
transition: 'transform 0.2s',
|
|
72
|
+
transform: this.isOpen ? 'rotate(180deg)' : 'none'
|
|
73
|
+
} }))),
|
|
74
|
+
isGrouped && items.length > 0 && (h("div", { class: [
|
|
75
|
+
`${mergedClsPrefix}-card-list-item__items`,
|
|
76
|
+
this.direction,
|
|
77
|
+
this.direction === 'vertical' &&
|
|
78
|
+
`${mergedClsPrefix}-card-list-item__items--grid`
|
|
79
|
+
] }, items.map((item, idx) => [
|
|
80
|
+
h("div", { class: `${mergedClsPrefix}-card-list-item__item`, key: idx },
|
|
81
|
+
item.title && (h("div", { class: `${mergedClsPrefix}-card-list-item__title` }, item.title)),
|
|
82
|
+
item.content && (h("div", { class: `${mergedClsPrefix}-card-list-item__subtitle` }, item.content))),
|
|
83
|
+
idx < items.length - 1 &&
|
|
84
|
+
(this.renderDivider
|
|
85
|
+
? this.renderDivider({
|
|
86
|
+
index: idx,
|
|
87
|
+
count: items.length,
|
|
88
|
+
direction: this.direction
|
|
89
|
+
})
|
|
90
|
+
: h('div', {
|
|
91
|
+
class: [
|
|
92
|
+
`${mergedClsPrefix}-card-list-item__divider`,
|
|
93
|
+
this.direction === 'vertical'
|
|
94
|
+
? `${mergedClsPrefix}-card-list-item__divider--vertical`
|
|
95
|
+
: `${mergedClsPrefix}-card-list-item__divider--horizontal`,
|
|
96
|
+
this.direction === 'vertical' &&
|
|
97
|
+
`${mergedClsPrefix}-card-list-item__divider--grid`
|
|
98
|
+
]
|
|
99
|
+
}))
|
|
100
|
+
]))),
|
|
101
|
+
isDropdown && this.isOpen && items.length > 0 ? (h("ul", { class: `${mergedClsPrefix}-card-list-item__dropdown`, style: "margin-top: 8px;", ref: "dropdownRef", onClick: (e) => {
|
|
102
|
+
e.stopPropagation();
|
|
103
|
+
} }, items.map((item, idx) => (h("li", { key: idx },
|
|
104
|
+
h("div", { class: `${mergedClsPrefix}-card-list-item__dropdown-item` },
|
|
105
|
+
item.title && (h("div", { class: `${mergedClsPrefix}-card-list-item__title` }, item.title)),
|
|
106
|
+
item.content && (h("div", { class: `${mergedClsPrefix}-card-list-item__subtitle` }, item.content)))))))) : null, (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 :
|
|
107
|
+
_b.call(_a)));
|
|
108
|
+
}
|
|
109
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type Primitive = string | number | boolean | undefined | null;
|
|
2
|
+
export interface ListItemOptions {
|
|
3
|
+
title?: Primitive;
|
|
4
|
+
subtitle?: Primitive;
|
|
5
|
+
span?: number;
|
|
6
|
+
dropdown?: boolean;
|
|
7
|
+
items?: Array<{
|
|
8
|
+
title?: Primitive;
|
|
9
|
+
content?: Primitive;
|
|
10
|
+
}>;
|
|
11
|
+
direction?: 'horizontal' | 'vertical';
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { c, cB } from '../../../_utils/cssr';
|
|
2
|
+
export default cB('card-list-item', [c('&', {
|
|
3
|
+
padding: '16px',
|
|
4
|
+
backgroundColor: 'var(--u-color-embedded)',
|
|
5
|
+
borderRadius: 'var(--u-border-radius)',
|
|
6
|
+
boxShadow: 'var(--u-box-shadow)',
|
|
7
|
+
display: 'flex',
|
|
8
|
+
flexDirection: 'column',
|
|
9
|
+
gap: '8px',
|
|
10
|
+
position: 'relative'
|
|
11
|
+
}), cB('card-list-item__title', {
|
|
12
|
+
fontSize: 'var(--u-title-font-size)',
|
|
13
|
+
lineHeight: 'var(--u-title-line-height)',
|
|
14
|
+
fontWeight: 'var(--u-title-font-weight)',
|
|
15
|
+
color: 'var(--u-title-text-color)'
|
|
16
|
+
}), cB('card-list-item__subtitle', {
|
|
17
|
+
fontSize: 'var(--u-text-font-size)',
|
|
18
|
+
lineHeight: 'var(--u-text-line-height)',
|
|
19
|
+
fontWeight: 'var(--u-text-font-weight)',
|
|
20
|
+
color: 'var(--u-text-color)'
|
|
21
|
+
}), cB('card-list-item__items', {
|
|
22
|
+
display: 'flex',
|
|
23
|
+
gap: '0'
|
|
24
|
+
}, [c('&.horizontal', {
|
|
25
|
+
flexDirection: 'column'
|
|
26
|
+
}), c('&.vertical', {
|
|
27
|
+
flexDirection: 'row',
|
|
28
|
+
alignItems: 'stretch'
|
|
29
|
+
})]), cB('card-list-item__items--grid', {
|
|
30
|
+
display: 'grid',
|
|
31
|
+
gridAutoFlow: 'column',
|
|
32
|
+
alignItems: 'stretch',
|
|
33
|
+
width: '100%'
|
|
34
|
+
}), cB('card-list-item__divider', {
|
|
35
|
+
background: 'var(--u-divider-color)',
|
|
36
|
+
flexShrink: '0'
|
|
37
|
+
}), cB('card-list-item__divider--vertical', {
|
|
38
|
+
width: '1px',
|
|
39
|
+
height: '100%',
|
|
40
|
+
alignSelf: 'stretch',
|
|
41
|
+
display: 'block'
|
|
42
|
+
}), cB('card-list-item__divider--horizontal', {
|
|
43
|
+
width: '100%',
|
|
44
|
+
height: '1px',
|
|
45
|
+
alignSelf: 'stretch',
|
|
46
|
+
display: 'block',
|
|
47
|
+
margin: '16px 0'
|
|
48
|
+
}), cB('card-list-item__divider--grid', {
|
|
49
|
+
height: '100%',
|
|
50
|
+
minWidth: '1px',
|
|
51
|
+
background: 'var(--u-divider-color)',
|
|
52
|
+
alignSelf: 'stretch',
|
|
53
|
+
display: 'block',
|
|
54
|
+
margin: '0 16px'
|
|
55
|
+
}), cB('card-list-item__item', {
|
|
56
|
+
flex: '1 1 0%',
|
|
57
|
+
padding: '4px 0',
|
|
58
|
+
display: 'flex',
|
|
59
|
+
flexDirection: 'column',
|
|
60
|
+
alignItems: 'stretch',
|
|
61
|
+
minHeight: '0',
|
|
62
|
+
minWidth: '0',
|
|
63
|
+
overflow: 'auto'
|
|
64
|
+
}), cB('card-list-item__dropdown', {
|
|
65
|
+
marginTop: '6px',
|
|
66
|
+
padding: '12px 0',
|
|
67
|
+
background: 'var(--u-dropdown-bg-color)',
|
|
68
|
+
borderRadius: 'var(--u-border-radius)',
|
|
69
|
+
boxShadow: 'var(--u-box-shadow)',
|
|
70
|
+
width: '100%',
|
|
71
|
+
maxHeight: '500px',
|
|
72
|
+
overflow: 'auto',
|
|
73
|
+
left: 0,
|
|
74
|
+
right: 0,
|
|
75
|
+
zIndex: 10,
|
|
76
|
+
position: 'absolute',
|
|
77
|
+
top: '100%',
|
|
78
|
+
boxSizing: 'border-box',
|
|
79
|
+
border: 'none'
|
|
80
|
+
}), cB('card-list-item__dropdown', [c('li', {
|
|
81
|
+
padding: '10px 18px'
|
|
82
|
+
})]), cB('card-list-item__wrapper', {
|
|
83
|
+
display: 'flex',
|
|
84
|
+
alignItems: 'center',
|
|
85
|
+
justifyContent: 'space-between',
|
|
86
|
+
gap: '8px',
|
|
87
|
+
padding: '4px 0'
|
|
88
|
+
}), cB('card-list-item__wrapper-content', {
|
|
89
|
+
flex: 1,
|
|
90
|
+
minWidth: 0,
|
|
91
|
+
overflow: 'hidden',
|
|
92
|
+
display: 'flex',
|
|
93
|
+
flexDirection: 'column'
|
|
94
|
+
}), c('.u-divider--vertical', {
|
|
95
|
+
width: '1px !important',
|
|
96
|
+
minWidth: '1px',
|
|
97
|
+
height: '100% !important',
|
|
98
|
+
minHeight: '1px',
|
|
99
|
+
alignSelf: 'stretch',
|
|
100
|
+
display: 'block !important'
|
|
101
|
+
})]);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
|
+
import { type Theme } from '../../_mixins';
|
|
3
|
+
export declare const self: (vars: ThemeCommonVars) => {
|
|
4
|
+
textColor: string;
|
|
5
|
+
textLineHeight: string;
|
|
6
|
+
textFontWeight: string;
|
|
7
|
+
textFontSize: string;
|
|
8
|
+
titleTextColor: string;
|
|
9
|
+
titleLineHeight: string;
|
|
10
|
+
titleFontWeight: string;
|
|
11
|
+
titleFontSize: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
borderRadius: string;
|
|
14
|
+
boxShadow: string;
|
|
15
|
+
colorEmbedded: string;
|
|
16
|
+
dividerColor: string;
|
|
17
|
+
dropDownBgColor: string;
|
|
18
|
+
};
|
|
19
|
+
export type CardListThemeVars = ReturnType<typeof self>;
|
|
20
|
+
declare const cardListLight: Theme<'CardList', CardListThemeVars>;
|
|
21
|
+
export default cardListLight;
|
|
22
|
+
export type CardListTheme = typeof cardListLight;
|