@sheinx/base 3.0.0-alpha.30 → 3.0.0-alpha.32
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/cjs/absolute-list/absolute-context.js +1 -2
- package/cjs/absolute-list/absolute-list.d.ts +3 -1
- package/cjs/absolute-list/absolute-list.d.ts.map +1 -1
- package/cjs/absolute-list/absolute-list.js +10 -15
- package/cjs/absolute-list/absolute-list.type.d.ts +2 -2
- package/cjs/absolute-list/absolute-list.type.d.ts.map +1 -1
- package/cjs/absolute-list/index.js +2 -2
- package/cjs/absolute-list/use-container.js +7 -14
- package/cjs/alert/alert-icon.js +11 -13
- package/cjs/alert/alert.js +24 -23
- package/cjs/alert/alert.type.d.ts +1 -1
- package/cjs/alert/alert.type.d.ts.map +1 -1
- package/cjs/alert/index.js +2 -2
- package/cjs/animation-list/animation-list.js +20 -25
- package/cjs/animation-list/animation-list.type.d.ts +1 -1
- package/cjs/animation-list/animation-list.type.d.ts.map +1 -1
- package/cjs/animation-list/index.js +2 -2
- package/cjs/breadcrumb/breadcrumb.js +16 -15
- package/cjs/breadcrumb/breadcrumb.type.d.ts +1 -1
- package/cjs/breadcrumb/breadcrumb.type.d.ts.map +1 -1
- package/cjs/breadcrumb/index.js +2 -2
- package/cjs/breadcrumb/list.js +18 -16
- package/cjs/button/button-group.js +6 -12
- package/cjs/button/button-item.js +3 -4
- package/cjs/button/button.js +13 -13
- package/cjs/button/button.type.d.ts +1 -1
- package/cjs/button/button.type.d.ts.map +1 -1
- package/cjs/button/index.js +2 -2
- package/cjs/card/card-accordion-context.js +3 -5
- package/cjs/card/card-accordion.js +11 -7
- package/cjs/card/card-body.js +3 -4
- package/cjs/card/card-footer.js +3 -4
- package/cjs/card/card-header.js +4 -5
- package/cjs/card/card.context.js +3 -4
- package/cjs/card/card.js +17 -16
- package/cjs/card/index.js +2 -2
- package/cjs/card-group/card-group-context.js +2 -3
- package/cjs/card-group/card-group.js +9 -10
- package/cjs/card-group/index.js +2 -2
- package/cjs/card-group/item.js +6 -10
- package/cjs/card-group/lazyload.js +11 -11
- package/cjs/carousel/carousel.js +13 -17
- package/cjs/carousel/carousel.type.d.ts +0 -1
- package/cjs/carousel/carousel.type.d.ts.map +1 -1
- package/cjs/carousel/index.js +2 -2
- package/cjs/cascader/cascader.d.ts.map +1 -1
- package/cjs/cascader/cascader.js +45 -46
- package/cjs/cascader/cascader.type.d.ts +4 -1
- package/cjs/cascader/cascader.type.d.ts.map +1 -1
- package/cjs/cascader/filter-list.js +3 -6
- package/cjs/cascader/filter-node.js +3 -6
- package/cjs/cascader/index.js +2 -2
- package/cjs/cascader/list.js +3 -5
- package/cjs/cascader/node.d.ts.map +1 -1
- package/cjs/cascader/node.js +26 -18
- package/cjs/checkbox/checkbox-group.js +3 -5
- package/cjs/checkbox/checkbox.js +14 -14
- package/cjs/checkbox/group-context.d.ts +1 -1
- package/cjs/checkbox/group-context.d.ts.map +1 -1
- package/cjs/checkbox/group-context.js +1 -2
- package/cjs/checkbox/index.js +2 -2
- package/cjs/checkbox/simple-checkbox.js +12 -12
- package/cjs/checkbox/use-checkbox-inputable.js +10 -7
- package/cjs/collapse/collapse-item.js +10 -15
- package/cjs/collapse/collapse.js +3 -4
- package/cjs/collapse/group-context.d.ts +1 -1
- package/cjs/collapse/group-context.d.ts.map +1 -1
- package/cjs/collapse/group-context.js +1 -2
- package/cjs/collapse/index.js +2 -2
- package/cjs/common/use-clear.js +2 -3
- package/cjs/common/use-inner-title.js +13 -12
- package/cjs/common/use-tip.js +8 -9
- package/cjs/common/use-with-form-config.js +8 -11
- package/cjs/config/index.d.ts +1 -4
- package/cjs/config/index.d.ts.map +1 -1
- package/cjs/config/index.js +18 -18
- package/cjs/config/locale/Props.d.ts +4 -4
- package/cjs/config/locale/Props.d.ts.map +1 -1
- package/cjs/config/locale/en_US.js +2 -3
- package/cjs/config/locale/index.js +3 -3
- package/cjs/config/locale/zh-CN.js +2 -3
- package/cjs/date-picker/date-picker.d.ts.map +1 -1
- package/cjs/date-picker/date-picker.js +26 -27
- package/cjs/date-picker/date-picker.type.d.ts +2 -2
- package/cjs/date-picker/date-picker.type.d.ts.map +1 -1
- package/cjs/date-picker/day.js +15 -21
- package/cjs/date-picker/index.js +2 -2
- package/cjs/date-picker/month.js +5 -9
- package/cjs/date-picker/month.type.d.ts +1 -1
- package/cjs/date-picker/month.type.d.ts.map +1 -1
- package/cjs/date-picker/picker.js +9 -11
- package/cjs/date-picker/pickerTitle.js +2 -3
- package/cjs/date-picker/quarter.js +5 -9
- package/cjs/date-picker/quarter.type.d.ts +1 -1
- package/cjs/date-picker/quarter.type.d.ts.map +1 -1
- package/cjs/date-picker/quick.js +3 -5
- package/cjs/date-picker/result.js +17 -17
- package/cjs/date-picker/time.js +7 -12
- package/cjs/date-picker/year.js +5 -9
- package/cjs/date-picker/year.type.d.ts +1 -1
- package/cjs/date-picker/year.type.d.ts.map +1 -1
- package/cjs/descriptions/descriptions.js +11 -18
- package/cjs/descriptions/descriptions.type.d.ts +1 -1
- package/cjs/descriptions/descriptions.type.d.ts.map +1 -1
- package/cjs/descriptions/index.js +2 -2
- package/cjs/divider/divider.js +3 -4
- package/cjs/divider/index.js +2 -2
- package/cjs/dropdown/Item.js +23 -27
- package/cjs/dropdown/dropdown.js +8 -9
- package/cjs/dropdown/dropdown.type.d.ts +5 -5
- package/cjs/dropdown/dropdown.type.d.ts.map +1 -1
- package/cjs/dropdown/dropdown.type.js +2 -2
- package/cjs/dropdown/dropdownIn.d.ts.map +1 -1
- package/cjs/dropdown/dropdownIn.js +11 -14
- package/cjs/dropdown/index.d.ts +1 -1
- package/cjs/dropdown/index.d.ts.map +1 -1
- package/cjs/dropdown/index.js +2 -2
- package/cjs/editable-area/editable-area.d.ts.map +1 -1
- package/cjs/editable-area/editable-area.js +21 -22
- package/cjs/editable-area/index.js +2 -2
- package/cjs/empty/empty-image.js +2 -3
- package/cjs/empty/empty.js +12 -13
- package/cjs/empty/index.js +2 -2
- package/cjs/form/error-trans.js +2 -6
- package/cjs/form/form-button.js +8 -9
- package/cjs/form/form-field.js +2 -4
- package/cjs/form/form-field.type.d.ts +1 -1
- package/cjs/form/form-field.type.d.ts.map +1 -1
- package/cjs/form/form-fieldset.js +2 -8
- package/cjs/form/form-flow.js +1 -2
- package/cjs/form/form-footer-context.js +14 -16
- package/cjs/form/form-item.js +13 -14
- package/cjs/form/form.d.ts +1 -1
- package/cjs/form/form.d.ts.map +1 -1
- package/cjs/form/form.js +16 -20
- package/cjs/form/form.type.js +1 -2
- package/cjs/form/index.js +2 -2
- package/cjs/gap/gap.js +9 -11
- package/cjs/gap/index.js +2 -2
- package/cjs/grid/grid.js +13 -19
- package/cjs/grid/grid.type.d.ts +1 -1
- package/cjs/grid/grid.type.d.ts.map +1 -1
- package/cjs/grid/index.js +2 -2
- package/cjs/grid/util.d.ts +1 -1
- package/cjs/grid/util.d.ts.map +1 -1
- package/cjs/grid/util.js +0 -3
- package/cjs/icon/icon.js +12 -14
- package/cjs/icon/icon.type.d.ts +1 -1
- package/cjs/icon/icon.type.d.ts.map +1 -1
- package/cjs/icon/index.js +2 -2
- package/cjs/icons/config.d.ts +144 -0
- package/cjs/icons/config.d.ts.map +1 -0
- package/cjs/icons/config.js +164 -0
- package/cjs/icons/icons.d.ts +46 -0
- package/cjs/icons/icons.d.ts.map +1 -0
- package/cjs/icons/icons.js +184 -0
- package/cjs/icons/index.d.ts +1 -47
- package/cjs/icons/index.d.ts.map +1 -1
- package/cjs/icons/index.js +14 -187
- package/cjs/image/image-event.js +3 -4
- package/cjs/image/image-gallery.js +14 -15
- package/cjs/image/image-group.d.ts.map +1 -1
- package/cjs/image/image-group.js +16 -22
- package/cjs/image/image-magnify.js +10 -11
- package/cjs/image/image.js +19 -23
- package/cjs/image/image.type.d.ts +4 -4
- package/cjs/image/image.type.d.ts.map +1 -1
- package/cjs/image/index.js +2 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +4 -6
- package/cjs/input/index.js +2 -2
- package/cjs/input/input-group.js +26 -27
- package/cjs/input/input-number.js +16 -16
- package/cjs/input/input-number.type.d.ts +1 -1
- package/cjs/input/input-number.type.d.ts.map +1 -1
- package/cjs/input/input-password.js +10 -11
- package/cjs/input/input.js +8 -10
- package/cjs/input/input.type.d.ts +1 -1
- package/cjs/input/input.type.d.ts.map +1 -1
- package/cjs/input/simple-input.js +16 -16
- package/cjs/input/use-input-common.d.ts +1 -1
- package/cjs/input/use-input-common.js +22 -22
- package/cjs/list/base-item.js +14 -15
- package/cjs/list/index.js +2 -2
- package/cjs/list/list.d.ts.map +1 -1
- package/cjs/list/list.js +16 -21
- package/cjs/menu/index.js +2 -2
- package/cjs/menu/item.d.ts.map +1 -1
- package/cjs/menu/item.js +11 -13
- package/cjs/menu/menu.js +16 -13
- package/cjs/menu/menu.type.d.ts +2 -2
- package/cjs/menu/menu.type.d.ts.map +1 -1
- package/cjs/menu/scroll.js +10 -6
- package/cjs/menu/scrollbar.js +3 -4
- package/cjs/message/func.js +2 -4
- package/cjs/message/func.type.d.ts +2 -2
- package/cjs/message/func.type.d.ts.map +1 -1
- package/cjs/message/index.js +2 -2
- package/cjs/message/manager.d.ts.map +1 -1
- package/cjs/message/manager.js +6 -7
- package/cjs/message/message.js +45 -43
- package/cjs/modal/index.js +2 -2
- package/cjs/modal/modal-content.js +25 -27
- package/cjs/modal/modal-func.d.ts +1 -1
- package/cjs/modal/modal-func.d.ts.map +1 -1
- package/cjs/modal/modal-func.js +19 -17
- package/cjs/modal/modal-submit.js +10 -11
- package/cjs/modal/modal.js +15 -11
- package/cjs/modal/modal.type.d.ts +1 -1
- package/cjs/modal/modal.type.d.ts.map +1 -1
- package/cjs/modal/use-modal-move.js +15 -12
- package/cjs/modal/use-modal-resize.js +9 -6
- package/cjs/pagination/index.js +2 -2
- package/cjs/pagination/pagination-button.js +11 -12
- package/cjs/pagination/pagination-buttons.js +20 -17
- package/cjs/pagination/pagination-buttons.type.d.ts +2 -2
- package/cjs/pagination/pagination-buttons.type.d.ts.map +1 -1
- package/cjs/pagination/pagination-jumper.js +10 -8
- package/cjs/pagination/pagination-next.d.ts.map +1 -1
- package/cjs/pagination/pagination-next.js +4 -5
- package/cjs/pagination/pagination-prev.d.ts.map +1 -1
- package/cjs/pagination/pagination-prev.js +4 -5
- package/cjs/pagination/pagination-simple.js +2 -3
- package/cjs/pagination/pagination-size-list.js +3 -5
- package/cjs/pagination/pagination.d.ts.map +1 -1
- package/cjs/pagination/pagination.js +10 -13
- package/cjs/pagination/pagination.type.d.ts +2 -2
- package/cjs/pagination/pagination.type.d.ts.map +1 -1
- package/cjs/popover/confirm.js +24 -23
- package/cjs/popover/confirm.type.d.ts +2 -2
- package/cjs/popover/confirm.type.d.ts.map +1 -1
- package/cjs/popover/index.js +2 -2
- package/cjs/popover/popover.js +14 -19
- package/cjs/progress/analyzeColor.js +2 -4
- package/cjs/progress/circle.js +5 -8
- package/cjs/progress/index.js +2 -2
- package/cjs/progress/line-popup.js +8 -8
- package/cjs/progress/line.js +5 -8
- package/cjs/progress/progress.js +8 -9
- package/cjs/radio/group-context.d.ts +1 -1
- package/cjs/radio/group-context.d.ts.map +1 -1
- package/cjs/radio/group-context.js +1 -2
- package/cjs/radio/index.js +2 -2
- package/cjs/radio/radio-group.js +9 -11
- package/cjs/radio/radio.js +12 -12
- package/cjs/radio/simple-radio.js +12 -12
- package/cjs/rate/index.js +2 -2
- package/cjs/rate/rate.js +16 -17
- package/cjs/select/index.js +2 -2
- package/cjs/select/list-columns-option.js +3 -4
- package/cjs/select/list-columns.js +3 -9
- package/cjs/select/list-option.js +11 -9
- package/cjs/select/list-tree.js +3 -4
- package/cjs/select/list.js +23 -20
- package/cjs/select/result-input.d.ts.map +1 -1
- package/cjs/select/result-input.js +8 -17
- package/cjs/select/result-input.type.d.ts +3 -0
- package/cjs/select/result-input.type.d.ts.map +1 -1
- package/cjs/select/result-more.d.ts.map +1 -1
- package/cjs/select/result-more.js +20 -22
- package/cjs/select/result-more.type.d.ts +4 -0
- package/cjs/select/result-more.type.d.ts.map +1 -1
- package/cjs/select/result.d.ts.map +1 -1
- package/cjs/select/result.js +23 -29
- package/cjs/select/result.type.d.ts +14 -1
- package/cjs/select/result.type.d.ts.map +1 -1
- package/cjs/select/select.d.ts.map +1 -1
- package/cjs/select/select.js +47 -44
- package/cjs/select/select.type.d.ts +6 -6
- package/cjs/select/select.type.d.ts.map +1 -1
- package/cjs/slider/index.js +2 -2
- package/cjs/slider/slider.js +9 -11
- package/cjs/spin/base.js +9 -11
- package/cjs/spin/index.js +2 -2
- package/cjs/spin/spin.js +11 -12
- package/cjs/spin/spin.type.d.ts +2 -2
- package/cjs/spin/spin.type.d.ts.map +1 -1
- package/cjs/spin/spins.js +25 -27
- package/cjs/spin/utils.js +2 -4
- package/cjs/steps/index.js +2 -2
- package/cjs/steps/step.arrow.d.ts.map +1 -1
- package/cjs/steps/step.arrow.js +8 -7
- package/cjs/steps/step.default.d.ts.map +1 -1
- package/cjs/steps/step.default.js +13 -11
- package/cjs/steps/step.dot.d.ts.map +1 -1
- package/cjs/steps/step.dot.js +11 -9
- package/cjs/steps/step.js +13 -15
- package/cjs/steps/steps-context.js +1 -2
- package/cjs/steps/steps.js +9 -8
- package/cjs/steps/steps.type.d.ts +3 -3
- package/cjs/steps/steps.type.d.ts.map +1 -1
- package/cjs/sticky/index.js +2 -2
- package/cjs/sticky/sticky.js +18 -20
- package/cjs/switch/index.js +2 -2
- package/cjs/switch/switch.js +16 -12
- package/cjs/table/colgroup.js +1 -3
- package/cjs/table/index.js +2 -2
- package/cjs/table/table.js +15 -19
- package/cjs/table/table.type.d.ts +7 -7
- package/cjs/table/table.type.d.ts.map +1 -1
- package/cjs/table/tbody.js +3 -5
- package/cjs/table/tbody.type.d.ts +2 -2
- package/cjs/table/tbody.type.d.ts.map +1 -1
- package/cjs/table/temp/01-base.d.ts.map +1 -1
- package/cjs/table/temp/01-base.js +22 -14
- package/cjs/table/tfoot.js +4 -7
- package/cjs/table/thead.js +16 -24
- package/cjs/table/thead.type.d.ts +1 -1
- package/cjs/table/thead.type.d.ts.map +1 -1
- package/cjs/table/tr.js +16 -23
- package/cjs/table/use-table-select.js +6 -9
- package/cjs/tabs/index.js +2 -2
- package/cjs/tabs/tab.js +10 -11
- package/cjs/tabs/tabs-header.js +21 -19
- package/cjs/tabs/tabs-panel.js +8 -6
- package/cjs/tabs/tabs.js +24 -26
- package/cjs/tabs/tabs.type.d.ts +2 -2
- package/cjs/tabs/tabs.type.d.ts.map +1 -1
- package/cjs/tag/index.js +2 -2
- package/cjs/tag/tag-input.js +9 -10
- package/cjs/tag/tag.js +14 -14
- package/cjs/tag/tag.type.d.ts +7 -7
- package/cjs/tag/tag.type.d.ts.map +1 -1
- package/cjs/tag/use-tag.js +11 -8
- package/cjs/textarea/index.js +2 -2
- package/cjs/textarea/simple-textarea.js +17 -21
- package/cjs/textarea/textarea.js +22 -23
- package/cjs/textarea/textarea.type.d.ts +1 -6
- package/cjs/textarea/textarea.type.d.ts.map +1 -1
- package/cjs/textarea/use-auto-size.js +13 -12
- package/cjs/tooltip/index.js +2 -2
- package/cjs/tooltip/tooltip.js +11 -16
- package/cjs/transfer/index.js +2 -2
- package/cjs/transfer/transfer-list-header.d.ts.map +1 -1
- package/cjs/transfer/transfer-list-header.js +9 -10
- package/cjs/transfer/transfer-list-item.d.ts.map +1 -1
- package/cjs/transfer/transfer-list-item.js +7 -6
- package/cjs/transfer/transfer-list.js +13 -14
- package/cjs/transfer/transfer-operate.js +2 -4
- package/cjs/transfer/transfer.js +11 -10
- package/cjs/transfer/transfer.type.d.ts +2 -2
- package/cjs/transfer/transfer.type.d.ts.map +1 -1
- package/cjs/tree/index.js +2 -2
- package/cjs/tree/tree-checkbox.d.ts +2 -1
- package/cjs/tree/tree-checkbox.d.ts.map +1 -1
- package/cjs/tree/tree-checkbox.js +4 -3
- package/cjs/tree/tree-checkbox.type.d.ts +2 -2
- package/cjs/tree/tree-checkbox.type.d.ts.map +1 -1
- package/cjs/tree/tree-content.d.ts +2 -1
- package/cjs/tree/tree-content.d.ts.map +1 -1
- package/cjs/tree/tree-content.js +12 -14
- package/cjs/tree/tree-content.type.d.ts +2 -2
- package/cjs/tree/tree-content.type.d.ts.map +1 -1
- package/cjs/tree/tree-context.d.ts +4 -3
- package/cjs/tree/tree-context.d.ts.map +1 -1
- package/cjs/tree/tree-context.js +8 -14
- package/cjs/tree/tree-context.type.d.ts +2 -2
- package/cjs/tree/tree-context.type.d.ts.map +1 -1
- package/cjs/tree/tree-list.d.ts +1 -1
- package/cjs/tree/tree-list.d.ts.map +1 -1
- package/cjs/tree/tree-list.js +4 -4
- package/cjs/tree/tree-list.type.d.ts +3 -3
- package/cjs/tree/tree-list.type.d.ts.map +1 -1
- package/cjs/tree/tree-node.d.ts +1 -1
- package/cjs/tree/tree-node.d.ts.map +1 -1
- package/cjs/tree/tree-node.js +10 -11
- package/cjs/tree/tree-node.type.d.ts +3 -3
- package/cjs/tree/tree-node.type.d.ts.map +1 -1
- package/cjs/tree/tree-root.d.ts +1 -1
- package/cjs/tree/tree-root.d.ts.map +1 -1
- package/cjs/tree/tree-root.js +11 -11
- package/cjs/tree/tree-root.type.d.ts +3 -3
- package/cjs/tree/tree-root.type.d.ts.map +1 -1
- package/cjs/tree/tree.d.ts +2 -1
- package/cjs/tree/tree.d.ts.map +1 -1
- package/cjs/tree/tree.js +19 -21
- package/cjs/tree/tree.type.d.ts +4 -4
- package/cjs/tree/tree.type.d.ts.map +1 -1
- package/cjs/tree-select/index.js +2 -2
- package/cjs/tree-select/tree-select.d.ts +1 -1
- package/cjs/tree-select/tree-select.d.ts.map +1 -1
- package/cjs/tree-select/tree-select.js +35 -36
- package/cjs/tree-select/tree-select.type.d.ts +6 -5
- package/cjs/tree-select/tree-select.type.d.ts.map +1 -1
- package/cjs/upload/button.js +18 -18
- package/cjs/upload/button.type.d.ts +1 -1
- package/cjs/upload/button.type.d.ts.map +1 -1
- package/cjs/upload/drop.js +16 -19
- package/cjs/upload/image.js +8 -9
- package/cjs/upload/index.js +2 -2
- package/cjs/upload/result.js +24 -24
- package/cjs/upload/upload.d.ts.map +1 -1
- package/cjs/upload/upload.js +12 -22
- package/cjs/upload/useInputClick.js +2 -3
- package/cjs/virtual-scroll/index.js +2 -2
- package/cjs/virtual-scroll/scroll.js +9 -15
- package/cjs/virtual-scroll/virtual-scroll-list.js +20 -22
- package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
- package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
- package/esm/absolute-list/absolute-context.js +3 -9
- package/esm/absolute-list/absolute-list.d.ts +3 -1
- package/esm/absolute-list/absolute-list.d.ts.map +1 -1
- package/esm/absolute-list/absolute-list.js +20 -34
- package/esm/absolute-list/absolute-list.type.d.ts +2 -2
- package/esm/absolute-list/absolute-list.type.d.ts.map +1 -1
- package/esm/absolute-list/absolute-list.type.js +1 -5
- package/esm/absolute-list/index.js +1 -19
- package/esm/absolute-list/use-container.js +19 -35
- package/esm/alert/alert-icon.js +15 -24
- package/esm/alert/alert.js +39 -46
- package/esm/alert/alert.type.d.ts +1 -1
- package/esm/alert/alert.type.d.ts.map +1 -1
- package/esm/alert/alert.type.js +1 -5
- package/esm/alert/index.js +1 -19
- package/esm/animation-list/animation-list.js +30 -43
- package/esm/animation-list/animation-list.type.d.ts +1 -1
- package/esm/animation-list/animation-list.type.d.ts.map +1 -1
- package/esm/animation-list/animation-list.type.js +1 -5
- package/esm/animation-list/index.js +1 -19
- package/esm/breadcrumb/breadcrumb.js +35 -39
- package/esm/breadcrumb/breadcrumb.type.d.ts +1 -1
- package/esm/breadcrumb/breadcrumb.type.d.ts.map +1 -1
- package/esm/breadcrumb/breadcrumb.type.js +1 -5
- package/esm/breadcrumb/index.js +1 -19
- package/esm/breadcrumb/list.js +34 -38
- package/esm/button/button-group.js +10 -26
- package/esm/button/button-item.js +4 -12
- package/esm/button/button.js +26 -32
- package/esm/button/button.type.d.ts +1 -1
- package/esm/button/button.type.d.ts.map +1 -1
- package/esm/button/button.type.js +1 -5
- package/esm/button/index.js +2 -26
- package/esm/card/card-accordion-context.js +3 -11
- package/esm/card/card-accordion.js +23 -26
- package/esm/card/card-accordion.type.js +1 -5
- package/esm/card/card-body.js +11 -19
- package/esm/card/card-body.type.js +1 -5
- package/esm/card/card-footer.js +9 -17
- package/esm/card/card-footer.type.js +1 -5
- package/esm/card/card-header.js +17 -24
- package/esm/card/card-header.type.js +1 -5
- package/esm/card/card.context.js +3 -10
- package/esm/card/card.js +43 -47
- package/esm/card/card.type.js +1 -5
- package/esm/card/index.js +6 -54
- package/esm/card-group/card-group-context.js +3 -9
- package/esm/card-group/card-group.js +22 -30
- package/esm/card-group/card-group.type.js +1 -5
- package/esm/card-group/index.js +2 -26
- package/esm/card-group/item.js +18 -30
- package/esm/card-group/item.type.js +1 -5
- package/esm/card-group/lazyload.js +19 -27
- package/esm/carousel/carousel.js +45 -54
- package/esm/carousel/carousel.type.d.ts +0 -1
- package/esm/carousel/carousel.type.d.ts.map +1 -1
- package/esm/carousel/carousel.type.js +1 -5
- package/esm/carousel/index.js +1 -19
- package/esm/cascader/cascader.d.ts.map +1 -1
- package/esm/cascader/cascader.js +119 -127
- package/esm/cascader/cascader.type.d.ts +4 -1
- package/esm/cascader/cascader.type.d.ts.map +1 -1
- package/esm/cascader/cascader.type.js +1 -5
- package/esm/cascader/filter-list.js +13 -23
- package/esm/cascader/filter-list.type.js +1 -5
- package/esm/cascader/filter-node.js +12 -22
- package/esm/cascader/filter-node.type.js +1 -5
- package/esm/cascader/index.js +1 -19
- package/esm/cascader/list.js +9 -18
- package/esm/cascader/list.type.js +1 -5
- package/esm/cascader/node.d.ts.map +1 -1
- package/esm/cascader/node.js +47 -45
- package/esm/cascader/node.type.js +1 -5
- package/esm/checkbox/checkbox-group.js +21 -29
- package/esm/checkbox/checkbox-group.type.js +1 -5
- package/esm/checkbox/checkbox.js +28 -35
- package/esm/checkbox/checkbox.type.js +1 -5
- package/esm/checkbox/group-context.d.ts +1 -1
- package/esm/checkbox/group-context.d.ts.map +1 -1
- package/esm/checkbox/group-context.js +3 -9
- package/esm/checkbox/index.js +2 -26
- package/esm/checkbox/simple-checkbox.js +30 -36
- package/esm/checkbox/use-checkbox-inputable.js +12 -15
- package/esm/collapse/collapse-item.js +28 -41
- package/esm/collapse/collapse-item.type.js +1 -5
- package/esm/collapse/collapse.js +12 -20
- package/esm/collapse/collapse.type.js +1 -5
- package/esm/collapse/group-context.d.ts +1 -1
- package/esm/collapse/group-context.d.ts.map +1 -1
- package/esm/collapse/group-context.js +3 -9
- package/esm/collapse/index.js +2 -26
- package/esm/common/type.js +1 -5
- package/esm/common/use-clear.js +4 -11
- package/esm/common/use-inner-title.js +26 -34
- package/esm/common/use-tip.js +14 -20
- package/esm/common/use-with-form-config.js +10 -19
- package/esm/config/index.d.ts +1 -4
- package/esm/config/index.d.ts.map +1 -1
- package/esm/config/index.js +24 -45
- package/esm/config/locale/Props.d.ts +4 -4
- package/esm/config/locale/Props.d.ts.map +1 -1
- package/esm/config/locale/Props.js +1 -5
- package/esm/config/locale/en_US.js +2 -9
- package/esm/config/locale/index.js +17 -25
- package/esm/config/locale/zh-CN.js +2 -9
- package/esm/date-picker/date-picker.d.ts.map +1 -1
- package/esm/date-picker/date-picker.js +65 -74
- package/esm/date-picker/date-picker.type.d.ts +2 -2
- package/esm/date-picker/date-picker.type.d.ts.map +1 -1
- package/esm/date-picker/date-picker.type.js +1 -5
- package/esm/date-picker/day.js +74 -85
- package/esm/date-picker/day.type.js +1 -5
- package/esm/date-picker/index.js +1 -19
- package/esm/date-picker/month.js +32 -42
- package/esm/date-picker/month.type.d.ts +1 -1
- package/esm/date-picker/month.type.d.ts.map +1 -1
- package/esm/date-picker/month.type.js +1 -5
- package/esm/date-picker/picker.js +30 -38
- package/esm/date-picker/picker.type.js +1 -5
- package/esm/date-picker/pickerTitle.js +8 -15
- package/esm/date-picker/quarter.js +31 -41
- package/esm/date-picker/quarter.type.d.ts +1 -1
- package/esm/date-picker/quarter.type.d.ts.map +1 -1
- package/esm/date-picker/quarter.type.js +1 -5
- package/esm/date-picker/quick.js +13 -22
- package/esm/date-picker/quick.type.js +1 -5
- package/esm/date-picker/result.js +43 -52
- package/esm/date-picker/time.js +33 -47
- package/esm/date-picker/time.type.js +1 -5
- package/esm/date-picker/year.js +34 -44
- package/esm/date-picker/year.type.d.ts +1 -1
- package/esm/date-picker/year.type.d.ts.map +1 -1
- package/esm/date-picker/year.type.js +1 -5
- package/esm/descriptions/descriptions.js +35 -50
- package/esm/descriptions/descriptions.type.d.ts +1 -1
- package/esm/descriptions/descriptions.type.d.ts.map +1 -1
- package/esm/descriptions/descriptions.type.js +1 -5
- package/esm/descriptions/index.js +1 -19
- package/esm/divider/divider.js +7 -15
- package/esm/divider/divider.type.js +1 -5
- package/esm/divider/index.js +1 -19
- package/esm/dropdown/Item.js +30 -41
- package/esm/dropdown/dropdown.js +11 -19
- package/esm/dropdown/dropdown.type.d.ts +5 -5
- package/esm/dropdown/dropdown.type.d.ts.map +1 -1
- package/esm/dropdown/dropdown.type.js +10 -3
- package/esm/dropdown/dropdownIn.d.ts.map +1 -1
- package/esm/dropdown/dropdownIn.js +39 -48
- package/esm/dropdown/index.d.ts +1 -1
- package/esm/dropdown/index.d.ts.map +1 -1
- package/esm/dropdown/index.js +1 -19
- package/esm/editable-area/editable-area.d.ts.map +1 -1
- package/esm/editable-area/editable-area.js +44 -53
- package/esm/editable-area/editable-area.type.js +1 -5
- package/esm/editable-area/index.js +1 -19
- package/esm/empty/empty-image.js +43 -49
- package/esm/empty/empty.js +28 -35
- package/esm/empty/empty.type.js +1 -5
- package/esm/empty/index.js +1 -19
- package/esm/form/error-trans.js +11 -21
- package/esm/form/form-button.js +16 -24
- package/esm/form/form-field.js +9 -18
- package/esm/form/form-field.type.d.ts +1 -1
- package/esm/form/form-field.type.d.ts.map +1 -1
- package/esm/form/form-field.type.js +1 -5
- package/esm/form/form-fieldset.js +17 -29
- package/esm/form/form-fieldset.type.js +1 -5
- package/esm/form/form-flow.js +4 -11
- package/esm/form/form-flow.type.js +1 -5
- package/esm/form/form-footer-context.js +21 -31
- package/esm/form/form-item.js +30 -37
- package/esm/form/form-item.type.js +1 -5
- package/esm/form/form.d.ts +1 -1
- package/esm/form/form.d.ts.map +1 -1
- package/esm/form/form.js +29 -42
- package/esm/form/form.type.js +1 -8
- package/esm/form/index.js +6 -54
- package/esm/gap/gap.js +17 -26
- package/esm/gap/gap.type.js +1 -5
- package/esm/gap/index.js +1 -19
- package/esm/gap/support.js +1 -7
- package/esm/grid/grid.js +19 -34
- package/esm/grid/grid.type.d.ts +1 -1
- package/esm/grid/grid.type.d.ts.map +1 -1
- package/esm/grid/grid.type.js +1 -5
- package/esm/grid/index.js +1 -19
- package/esm/grid/util.d.ts +1 -1
- package/esm/grid/util.d.ts.map +1 -1
- package/esm/grid/util.js +7 -16
- package/esm/icon/icon.js +22 -31
- package/esm/icon/icon.type.d.ts +1 -1
- package/esm/icon/icon.type.d.ts.map +1 -1
- package/esm/icon/icon.type.js +1 -5
- package/esm/icon/index.js +1 -19
- package/esm/icons/config.d.ts +144 -0
- package/esm/icons/config.d.ts.map +1 -0
- package/esm/icons/config.js +157 -0
- package/esm/icons/icons.d.ts +46 -0
- package/esm/icons/icons.d.ts.map +1 -0
- package/esm/icons/icons.js +177 -0
- package/esm/icons/index.d.ts +1 -47
- package/esm/icons/index.d.ts.map +1 -1
- package/esm/icons/index.js +1 -194
- package/esm/image/image-event.js +10 -18
- package/esm/image/image-gallery.js +31 -37
- package/esm/image/image-group.d.ts.map +1 -1
- package/esm/image/image-group.js +30 -44
- package/esm/image/image-group.type.js +1 -5
- package/esm/image/image-magnify.js +17 -23
- package/esm/image/image.js +51 -63
- package/esm/image/image.type.d.ts +4 -4
- package/esm/image/image.type.d.ts.map +1 -1
- package/esm/image/image.type.js +1 -5
- package/esm/image/index.js +2 -26
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +48 -581
- package/esm/input/index.js +4 -40
- package/esm/input/input-group.js +33 -42
- package/esm/input/input-group.type.js +1 -5
- package/esm/input/input-number.js +33 -39
- package/esm/input/input-number.type.d.ts +1 -1
- package/esm/input/input-number.type.d.ts.map +1 -1
- package/esm/input/input-number.type.js +1 -5
- package/esm/input/input-password.js +23 -29
- package/esm/input/input-password.type.js +1 -5
- package/esm/input/input.js +18 -27
- package/esm/input/input.type.d.ts +1 -1
- package/esm/input/input.type.d.ts.map +1 -1
- package/esm/input/input.type.js +1 -5
- package/esm/input/simple-input.js +31 -37
- package/esm/input/use-input-common.d.ts +1 -1
- package/esm/input/use-input-common.js +44 -52
- package/esm/list/base-item.js +47 -54
- package/esm/list/base-item.type.js +1 -5
- package/esm/list/index.js +2 -26
- package/esm/list/list.d.ts.map +1 -1
- package/esm/list/list.js +54 -65
- package/esm/list/list.type.js +1 -5
- package/esm/menu/index.js +1 -19
- package/esm/menu/item.d.ts.map +1 -1
- package/esm/menu/item.js +42 -49
- package/esm/menu/menu.js +35 -38
- package/esm/menu/menu.type.d.ts +2 -2
- package/esm/menu/menu.type.d.ts.map +1 -1
- package/esm/menu/menu.type.js +1 -5
- package/esm/menu/scroll.js +24 -27
- package/esm/menu/scrollbar.js +16 -24
- package/esm/message/func.js +6 -14
- package/esm/message/func.type.d.ts +2 -2
- package/esm/message/func.type.d.ts.map +1 -1
- package/esm/message/func.type.js +1 -5
- package/esm/message/index.js +1 -19
- package/esm/message/manager.d.ts.map +1 -1
- package/esm/message/manager.js +15 -25
- package/esm/message/message.js +59 -65
- package/esm/message/message.type.js +1 -5
- package/esm/modal/index.js +3 -33
- package/esm/modal/modal-content.js +63 -71
- package/esm/modal/modal-content.type.js +1 -5
- package/esm/modal/modal-func.d.ts +1 -1
- package/esm/modal/modal-func.d.ts.map +1 -1
- package/esm/modal/modal-func.js +40 -44
- package/esm/modal/modal-func.type.js +1 -5
- package/esm/modal/modal-submit.js +17 -25
- package/esm/modal/modal.js +23 -26
- package/esm/modal/modal.type.d.ts +1 -1
- package/esm/modal/modal.type.d.ts.map +1 -1
- package/esm/modal/modal.type.js +1 -5
- package/esm/modal/use-modal-move.js +24 -27
- package/esm/modal/use-modal-resize.js +19 -22
- package/esm/pagination/index.js +1 -19
- package/esm/pagination/pagination-button.js +17 -25
- package/esm/pagination/pagination-button.type.js +1 -5
- package/esm/pagination/pagination-buttons.js +37 -39
- package/esm/pagination/pagination-buttons.type.d.ts +2 -2
- package/esm/pagination/pagination-buttons.type.d.ts.map +1 -1
- package/esm/pagination/pagination-buttons.type.js +1 -5
- package/esm/pagination/pagination-jumper.js +26 -30
- package/esm/pagination/pagination-jumper.type.js +1 -5
- package/esm/pagination/pagination-next.d.ts.map +1 -1
- package/esm/pagination/pagination-next.js +10 -18
- package/esm/pagination/pagination-prev.d.ts.map +1 -1
- package/esm/pagination/pagination-prev.js +10 -18
- package/esm/pagination/pagination-simple.js +11 -17
- package/esm/pagination/pagination-simple.type.js +1 -5
- package/esm/pagination/pagination-size-list.js +8 -17
- package/esm/pagination/pagination-size-list.type.js +1 -5
- package/esm/pagination/pagination.d.ts.map +1 -1
- package/esm/pagination/pagination.js +28 -38
- package/esm/pagination/pagination.type.d.ts +2 -2
- package/esm/pagination/pagination.type.d.ts.map +1 -1
- package/esm/pagination/pagination.type.js +1 -5
- package/esm/popover/confirm.js +39 -46
- package/esm/popover/confirm.type.d.ts +2 -2
- package/esm/popover/confirm.type.d.ts.map +1 -1
- package/esm/popover/confirm.type.js +1 -5
- package/esm/popover/index.js +2 -26
- package/esm/popover/popover.js +33 -46
- package/esm/popover/popover.type.js +1 -5
- package/esm/progress/analyzeColor.js +2 -10
- package/esm/progress/circle.js +21 -30
- package/esm/progress/index.js +1 -19
- package/esm/progress/line-popup.js +15 -21
- package/esm/progress/line.js +20 -29
- package/esm/progress/progress.js +13 -21
- package/esm/progress/progress.type.js +1 -5
- package/esm/radio/group-context.d.ts +1 -1
- package/esm/radio/group-context.d.ts.map +1 -1
- package/esm/radio/group-context.js +3 -9
- package/esm/radio/index.js +2 -26
- package/esm/radio/radio-group.js +34 -41
- package/esm/radio/radio-group.type.js +1 -5
- package/esm/radio/radio.js +20 -27
- package/esm/radio/radio.type.js +1 -5
- package/esm/radio/simple-radio.js +24 -30
- package/esm/rate/index.js +1 -19
- package/esm/rate/rate.js +32 -42
- package/esm/rate/rate.type.js +1 -5
- package/esm/rule/index.js +1 -12
- package/esm/select/index.js +1 -19
- package/esm/select/list-columns-option.js +8 -16
- package/esm/select/list-columns-option.type.js +1 -5
- package/esm/select/list-columns.js +21 -33
- package/esm/select/list-option.js +17 -21
- package/esm/select/list-option.type.js +1 -5
- package/esm/select/list-tree.js +11 -19
- package/esm/select/list-tree.type.js +1 -5
- package/esm/select/list.js +41 -46
- package/esm/select/result-input.d.ts.map +1 -1
- package/esm/select/result-input.js +16 -33
- package/esm/select/result-input.type.d.ts +3 -0
- package/esm/select/result-input.type.d.ts.map +1 -1
- package/esm/select/result-input.type.js +1 -5
- package/esm/select/result-more.d.ts.map +1 -1
- package/esm/select/result-more.js +36 -47
- package/esm/select/result-more.type.d.ts +4 -0
- package/esm/select/result-more.type.d.ts.map +1 -1
- package/esm/select/result-more.type.js +1 -5
- package/esm/select/result.d.ts.map +1 -1
- package/esm/select/result.js +67 -81
- package/esm/select/result.type.d.ts +14 -1
- package/esm/select/result.type.d.ts.map +1 -1
- package/esm/select/result.type.js +1 -5
- package/esm/select/select.d.ts.map +1 -1
- package/esm/select/select.js +111 -115
- package/esm/select/select.type.d.ts +6 -6
- package/esm/select/select.type.d.ts.map +1 -1
- package/esm/select/select.type.js +1 -5
- package/esm/slider/index.js +1 -19
- package/esm/slider/slider.js +32 -39
- package/esm/slider/slider.type.js +1 -5
- package/esm/spin/base.js +16 -25
- package/esm/spin/index.js +1 -19
- package/esm/spin/spin.js +26 -33
- package/esm/spin/spin.type.d.ts +2 -2
- package/esm/spin/spin.type.d.ts.map +1 -1
- package/esm/spin/spin.type.js +1 -5
- package/esm/spin/spins.js +71 -80
- package/esm/spin/utils.js +2 -10
- package/esm/steps/index.js +2 -26
- package/esm/steps/step.arrow.d.ts.map +1 -1
- package/esm/steps/step.arrow.js +15 -20
- package/esm/steps/step.default.d.ts.map +1 -1
- package/esm/steps/step.default.js +25 -29
- package/esm/steps/step.dot.d.ts.map +1 -1
- package/esm/steps/step.dot.js +20 -24
- package/esm/steps/step.js +28 -37
- package/esm/steps/step.type.js +1 -5
- package/esm/steps/steps-context.js +3 -9
- package/esm/steps/steps-context.type.js +1 -5
- package/esm/steps/steps.js +18 -24
- package/esm/steps/steps.type.d.ts +3 -3
- package/esm/steps/steps.type.d.ts.map +1 -1
- package/esm/steps/steps.type.js +1 -5
- package/esm/sticky/index.js +1 -19
- package/esm/sticky/sticky.js +40 -48
- package/esm/sticky/sticky.type.js +1 -5
- package/esm/switch/index.js +1 -19
- package/esm/switch/switch.js +31 -33
- package/esm/switch/switch.type.js +1 -5
- package/esm/table/colgroup.js +6 -14
- package/esm/table/index.js +1 -19
- package/esm/table/table.js +89 -100
- package/esm/table/table.type.d.ts +7 -7
- package/esm/table/table.type.d.ts.map +1 -1
- package/esm/table/table.type.js +1 -5
- package/esm/table/tbody.js +11 -20
- package/esm/table/tbody.type.d.ts +2 -2
- package/esm/table/tbody.type.d.ts.map +1 -1
- package/esm/table/tbody.type.js +1 -5
- package/esm/table/temp/01-base.d.ts.map +1 -1
- package/esm/table/temp/01-base.js +40 -37
- package/esm/table/tfoot.js +12 -22
- package/esm/table/tfoot.type.js +1 -12
- package/esm/table/thead.js +47 -62
- package/esm/table/thead.type.d.ts +1 -1
- package/esm/table/thead.type.d.ts.map +1 -1
- package/esm/table/thead.type.js +1 -5
- package/esm/table/tr.js +45 -59
- package/esm/table/use-table-select.js +20 -29
- package/esm/tabs/index.js +2 -26
- package/esm/tabs/tab.js +23 -30
- package/esm/tabs/tab.type.js +1 -5
- package/esm/tabs/tabs-header.js +52 -56
- package/esm/tabs/tabs-header.type.js +1 -5
- package/esm/tabs/tabs-panel.js +14 -19
- package/esm/tabs/tabs-panel.type.js +1 -5
- package/esm/tabs/tabs.js +54 -63
- package/esm/tabs/tabs.type.d.ts +2 -2
- package/esm/tabs/tabs.type.d.ts.map +1 -1
- package/esm/tabs/tabs.type.js +1 -5
- package/esm/tag/index.js +2 -26
- package/esm/tag/tag-input.js +16 -24
- package/esm/tag/tag.js +33 -39
- package/esm/tag/tag.type.d.ts +7 -7
- package/esm/tag/tag.type.d.ts.map +1 -1
- package/esm/tag/tag.type.js +1 -5
- package/esm/tag/use-tag.js +21 -24
- package/esm/textarea/index.js +1 -19
- package/esm/textarea/simple-textarea.js +26 -38
- package/esm/textarea/textarea.js +51 -60
- package/esm/textarea/textarea.type.d.ts +1 -6
- package/esm/textarea/textarea.type.d.ts.map +1 -1
- package/esm/textarea/textarea.type.js +1 -5
- package/esm/textarea/use-auto-size.js +20 -28
- package/esm/tooltip/index.js +1 -19
- package/esm/tooltip/tooltip.js +28 -40
- package/esm/tooltip/tooltip.type.js +1 -5
- package/esm/transfer/index.js +1 -19
- package/esm/transfer/transfer-list-header.d.ts.map +1 -1
- package/esm/transfer/transfer-list-header.js +22 -29
- package/esm/transfer/transfer-list-header.type.js +1 -5
- package/esm/transfer/transfer-list-item.d.ts.map +1 -1
- package/esm/transfer/transfer-list-item.js +21 -26
- package/esm/transfer/transfer-list-item.type.js +1 -5
- package/esm/transfer/transfer-list.js +42 -49
- package/esm/transfer/transfer-list.type.js +1 -5
- package/esm/transfer/transfer-operate.js +6 -14
- package/esm/transfer/transfer-operate.type.js +1 -5
- package/esm/transfer/transfer.js +28 -33
- package/esm/transfer/transfer.type.d.ts +2 -2
- package/esm/transfer/transfer.type.d.ts.map +1 -1
- package/esm/transfer/transfer.type.js +1 -5
- package/esm/tree/index.js +1 -19
- package/esm/tree/tree-checkbox.d.ts +2 -1
- package/esm/tree/tree-checkbox.d.ts.map +1 -1
- package/esm/tree/tree-checkbox.js +8 -13
- package/esm/tree/tree-checkbox.type.d.ts +2 -2
- package/esm/tree/tree-checkbox.type.d.ts.map +1 -1
- package/esm/tree/tree-checkbox.type.js +1 -5
- package/esm/tree/tree-content.d.ts +2 -1
- package/esm/tree/tree-content.d.ts.map +1 -1
- package/esm/tree/tree-content.js +36 -44
- package/esm/tree/tree-content.type.d.ts +2 -2
- package/esm/tree/tree-content.type.d.ts.map +1 -1
- package/esm/tree/tree-content.type.js +1 -5
- package/esm/tree/tree-context.d.ts +4 -3
- package/esm/tree/tree-context.d.ts.map +1 -1
- package/esm/tree/tree-context.js +8 -22
- package/esm/tree/tree-context.type.d.ts +2 -2
- package/esm/tree/tree-context.type.d.ts.map +1 -1
- package/esm/tree/tree-context.type.js +1 -5
- package/esm/tree/tree-list.d.ts +1 -1
- package/esm/tree/tree-list.d.ts.map +1 -1
- package/esm/tree/tree-list.js +10 -17
- package/esm/tree/tree-list.type.d.ts +3 -3
- package/esm/tree/tree-list.type.d.ts.map +1 -1
- package/esm/tree/tree-list.type.js +1 -5
- package/esm/tree/tree-node.d.ts +1 -1
- package/esm/tree/tree-node.d.ts.map +1 -1
- package/esm/tree/tree-node.js +25 -32
- package/esm/tree/tree-node.type.d.ts +3 -3
- package/esm/tree/tree-node.type.d.ts.map +1 -1
- package/esm/tree/tree-node.type.js +1 -5
- package/esm/tree/tree-root.d.ts +1 -1
- package/esm/tree/tree-root.d.ts.map +1 -1
- package/esm/tree/tree-root.js +15 -22
- package/esm/tree/tree-root.type.d.ts +3 -3
- package/esm/tree/tree-root.type.d.ts.map +1 -1
- package/esm/tree/tree-root.type.js +1 -5
- package/esm/tree/tree.d.ts +2 -1
- package/esm/tree/tree.d.ts.map +1 -1
- package/esm/tree/tree.js +36 -45
- package/esm/tree/tree.type.d.ts +4 -4
- package/esm/tree/tree.type.d.ts.map +1 -1
- package/esm/tree/tree.type.js +1 -5
- package/esm/tree-select/index.js +1 -19
- package/esm/tree-select/tree-select.d.ts +1 -1
- package/esm/tree-select/tree-select.d.ts.map +1 -1
- package/esm/tree-select/tree-select.js +103 -111
- package/esm/tree-select/tree-select.type.d.ts +6 -5
- package/esm/tree-select/tree-select.type.d.ts.map +1 -1
- package/esm/tree-select/tree-select.type.js +1 -5
- package/esm/upload/button.js +39 -47
- package/esm/upload/button.type.d.ts +1 -1
- package/esm/upload/button.type.d.ts.map +1 -1
- package/esm/upload/button.type.js +1 -5
- package/esm/upload/drop.js +23 -33
- package/esm/upload/image.js +10 -18
- package/esm/upload/image.type.js +1 -5
- package/esm/upload/index.js +3 -33
- package/esm/upload/result.js +63 -70
- package/esm/upload/upload.d.ts.map +1 -1
- package/esm/upload/upload.js +51 -67
- package/esm/upload/upload.type.js +1 -5
- package/esm/upload/useInputClick.js +5 -12
- package/esm/virtual-scroll/index.js +2 -20
- package/esm/virtual-scroll/scroll.js +19 -32
- package/esm/virtual-scroll/virtual-scroll-list.js +32 -43
- package/esm/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
- package/esm/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
- package/esm/virtual-scroll/virtual-scroll-list.type.js +1 -5
- package/package.json +3 -3
- package/cjs/icons/caret.d.ts +0 -4
- package/cjs/icons/caret.d.ts.map +0 -1
- package/cjs/icons/caret.js +0 -19
- package/cjs/icons/caret.type.d.ts +0 -2
- package/cjs/icons/caret.type.d.ts.map +0 -1
- package/cjs/icons/caret.type.js +0 -5
- package/cjs/table/temp/00-scroll.d.ts +0 -4
- package/cjs/table/temp/00-scroll.d.ts.map +0 -1
- package/cjs/table/temp/00-scroll.js +0 -32
- package/esm/icons/caret.d.ts +0 -4
- package/esm/icons/caret.d.ts.map +0 -1
- package/esm/icons/caret.js +0 -19
- package/esm/icons/caret.type.d.ts +0 -2
- package/esm/icons/caret.type.d.ts.map +0 -1
- package/esm/icons/caret.type.js +0 -5
- package/esm/table/temp/00-scroll.d.ts +0 -4
- package/esm/table/temp/00-scroll.d.ts.map +0 -1
- package/esm/table/temp/00-scroll.js +0 -32
package/esm/switch/switch.js
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { useCheck, useInputAble } from '@sheinx/hooks';
|
|
14
|
+
import classNames from 'classnames';
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import useWithFormConfig from "../common/use-with-form-config";
|
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
19
|
var Switch = function Switch(props0) {
|
|
21
20
|
var _jssStyle$switch;
|
|
22
|
-
var props = (
|
|
21
|
+
var props = useWithFormConfig(props0);
|
|
23
22
|
var jssStyle = props.jssStyle,
|
|
24
23
|
content = props.content,
|
|
25
24
|
size = props.size,
|
|
26
25
|
loading = props.loading,
|
|
27
26
|
className = props.className,
|
|
28
27
|
style = props.style;
|
|
29
|
-
var switchClasses = jssStyle === null || jssStyle === void 0
|
|
28
|
+
var switchClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$switch = jssStyle.switch) === null || _jssStyle$switch === void 0 ? void 0 : _jssStyle$switch.call(jssStyle);
|
|
30
29
|
var disabled = props.disabled || props.loading;
|
|
31
|
-
var _useInputAble =
|
|
30
|
+
var _useInputAble = useInputAble({
|
|
32
31
|
value: props.value,
|
|
33
32
|
onChange: props.onChange,
|
|
34
33
|
defaultValue: props.defaultValue,
|
|
@@ -43,7 +42,7 @@ var Switch = function Switch(props0) {
|
|
|
43
42
|
}
|
|
44
43
|
return !!value;
|
|
45
44
|
};
|
|
46
|
-
var _useCheck =
|
|
45
|
+
var _useCheck = useCheck({
|
|
47
46
|
checked: getChecked(),
|
|
48
47
|
onChange: onChange,
|
|
49
48
|
onClick: props.onClick,
|
|
@@ -54,34 +53,33 @@ var Switch = function Switch(props0) {
|
|
|
54
53
|
getRootProps = _useCheck.getRootProps,
|
|
55
54
|
checked = _useCheck.checked;
|
|
56
55
|
var _ref = content || [],
|
|
57
|
-
_ref2 = (
|
|
56
|
+
_ref2 = _slicedToArray(_ref, 2),
|
|
58
57
|
checkedContent = _ref2[0],
|
|
59
58
|
unCheckedContent = _ref2[1];
|
|
60
|
-
var rootClassName = (
|
|
59
|
+
var rootClassName = classNames(className, switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapper, !!checked && (switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapperChecked), disabled && (switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapperDisabled), size === 'small' && (switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapperSmall), size === 'large' && (switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.wrapperLarge));
|
|
61
60
|
var rootProps = getRootProps({
|
|
62
61
|
className: rootClassName,
|
|
63
62
|
style: style
|
|
64
63
|
});
|
|
65
64
|
var inputProps = getInputProps();
|
|
66
|
-
return /*#__PURE__*/(
|
|
65
|
+
return /*#__PURE__*/_jsxs("button", _objectSpread(_objectSpread({
|
|
67
66
|
type: 'button',
|
|
68
67
|
role: 'switch'
|
|
69
68
|
}, rootProps), {}, {
|
|
70
|
-
children: [/*#__PURE__*/(
|
|
69
|
+
children: [/*#__PURE__*/_jsx("input", _objectSpread(_objectSpread({}, inputProps), {}, {
|
|
71
70
|
type: 'checkbox'
|
|
72
|
-
})), /*#__PURE__*/(
|
|
71
|
+
})), /*#__PURE__*/_jsx("div", {
|
|
73
72
|
className: switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.indicator,
|
|
74
|
-
children: loading ? /*#__PURE__*/(
|
|
73
|
+
children: loading ? /*#__PURE__*/_jsx("div", {
|
|
75
74
|
className: switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.loading
|
|
76
75
|
}) : null
|
|
77
|
-
}), /*#__PURE__*/(
|
|
76
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
78
77
|
className: switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.content,
|
|
79
|
-
children: /*#__PURE__*/(
|
|
78
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
80
79
|
className: switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.textPadding,
|
|
81
80
|
children: checked ? checkedContent : unCheckedContent
|
|
82
81
|
})
|
|
83
82
|
})]
|
|
84
83
|
}));
|
|
85
84
|
};
|
|
86
|
-
|
|
87
|
-
exports.default = _default;
|
|
85
|
+
export default Switch;
|
package/esm/table/colgroup.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
require("core-js/modules/es.array.map.js");
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
2
|
var Colgroup = function Colgroup(props) {
|
|
10
3
|
var _props$colgroup = props.colgroup,
|
|
11
4
|
colgroup = _props$colgroup === void 0 ? [] : _props$colgroup,
|
|
@@ -13,10 +6,10 @@ var Colgroup = function Colgroup(props) {
|
|
|
13
6
|
columns = _props$columns === void 0 ? [] : _props$columns;
|
|
14
7
|
var useColgroup = colgroup && colgroup.length === columns.length;
|
|
15
8
|
if (useColgroup) {
|
|
16
|
-
return /*#__PURE__*/(
|
|
9
|
+
return /*#__PURE__*/_jsx("colgroup", {
|
|
17
10
|
children: colgroup === null || colgroup === void 0 ? void 0 : colgroup.map(function (item, index) {
|
|
18
11
|
var isLast = index === colgroup.length - 1;
|
|
19
|
-
return /*#__PURE__*/(
|
|
12
|
+
return /*#__PURE__*/_jsx("col", {
|
|
20
13
|
style: {
|
|
21
14
|
width: isLast && props.shouldLastColAuto ? undefined : item
|
|
22
15
|
}
|
|
@@ -24,9 +17,9 @@ var Colgroup = function Colgroup(props) {
|
|
|
24
17
|
})
|
|
25
18
|
});
|
|
26
19
|
}
|
|
27
|
-
return /*#__PURE__*/(
|
|
20
|
+
return /*#__PURE__*/_jsx("colgroup", {
|
|
28
21
|
children: columns.map(function (item) {
|
|
29
|
-
return /*#__PURE__*/(
|
|
22
|
+
return /*#__PURE__*/_jsx("col", {
|
|
30
23
|
style: {
|
|
31
24
|
width: item.width
|
|
32
25
|
}
|
|
@@ -34,5 +27,4 @@ var Colgroup = function Colgroup(props) {
|
|
|
34
27
|
})
|
|
35
28
|
});
|
|
36
29
|
};
|
|
37
|
-
|
|
38
|
-
exports.default = _default;
|
|
30
|
+
export default Colgroup;
|
package/esm/table/index.js
CHANGED
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
|
-
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
Object.defineProperty(exports, "Table", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function get() {
|
|
11
|
-
return _table.default;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "default", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _table.default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
var _table = _interopRequireDefault(require("./table"));
|
|
2
|
+
export { default, default as Table } from "./table";
|
package/esm/table/table.js
CHANGED
|
@@ -1,38 +1,28 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
4
|
-
require("core-js/modules/es.array.iterator.js");
|
|
5
|
-
require("core-js/modules/es.weak-map.js");
|
|
6
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
7
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
8
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10
|
-
value: true
|
|
11
|
-
});
|
|
12
|
-
exports.default = void 0;
|
|
13
|
-
require("core-js/modules/es.array.filter.js");
|
|
14
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
15
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
18
|
-
var _scroll = _interopRequireDefault(require("../virtual-scroll/scroll"));
|
|
19
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
20
|
-
var _spin = _interopRequireDefault(require("../spin"));
|
|
21
|
-
var _pagination = _interopRequireDefault(require("../pagination"));
|
|
22
|
-
var _absoluteContext = _interopRequireDefault(require("../absolute-list/absolute-context"));
|
|
23
|
-
var _empty = _interopRequireDefault(require("../empty"));
|
|
24
|
-
var _hooks = require("@sheinx/hooks");
|
|
25
|
-
var _useTableSelect = _interopRequireDefault(require("./use-table-select"));
|
|
26
|
-
var _colgroup = _interopRequireDefault(require("./colgroup"));
|
|
27
|
-
var _thead = _interopRequireDefault(require("./thead"));
|
|
28
|
-
var _tbody = _interopRequireDefault(require("./tbody"));
|
|
29
|
-
var _tfoot = _interopRequireDefault(require("./tfoot"));
|
|
30
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
31
2
|
var _excluded = ["data"];
|
|
32
|
-
function
|
|
33
|
-
function
|
|
34
|
-
function
|
|
35
|
-
function
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
import React, { useEffect, useMemo, useRef } from 'react';
|
|
11
|
+
import Scroll from "../virtual-scroll/scroll";
|
|
12
|
+
import classNames from 'classnames';
|
|
13
|
+
import Spin from "../spin";
|
|
14
|
+
import Pagination from "../pagination";
|
|
15
|
+
import AbsoluteContext from "../absolute-list/absolute-context";
|
|
16
|
+
import Empty from "../empty";
|
|
17
|
+
import { useTableLayout, useTableColumns, useTableSort, useTableTree, usePersistFn, useListSelect, useInputAble, useTableVirtual, usePaginationList, useLatestObj } from '@sheinx/hooks';
|
|
18
|
+
import useTableSelect from "./use-table-select";
|
|
19
|
+
import Colgroup from "./colgroup";
|
|
20
|
+
import Thead from "./thead";
|
|
21
|
+
import Tbody from "./tbody";
|
|
22
|
+
import Tfoot from "./tfoot";
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
36
26
|
var emptyArr = [];
|
|
37
27
|
var virtualScrollerStyle = {
|
|
38
28
|
flex: 1,
|
|
@@ -47,13 +37,13 @@ var scrollWrapperStyle = {
|
|
|
47
37
|
minWidth: 0,
|
|
48
38
|
display: 'flex'
|
|
49
39
|
};
|
|
50
|
-
|
|
40
|
+
export default (function (props) {
|
|
51
41
|
var _props$jssStyle, _props$jssStyle$table, _props$data, _columns$find;
|
|
52
|
-
var tableClasses = props === null || props === void 0
|
|
53
|
-
var tbodyRef =
|
|
54
|
-
var theadRef =
|
|
55
|
-
var tfootRef =
|
|
56
|
-
var scrollRef =
|
|
42
|
+
var tableClasses = props === null || props === void 0 || (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$table = _props$jssStyle.table) === null || _props$jssStyle$table === void 0 ? void 0 : _props$jssStyle$table.call(_props$jssStyle);
|
|
43
|
+
var tbodyRef = useRef(null);
|
|
44
|
+
var theadRef = useRef(null);
|
|
45
|
+
var tfootRef = useRef(null);
|
|
46
|
+
var scrollRef = useRef(null);
|
|
57
47
|
var virtual = ((_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.length) && props.rowsInView !== 0 && (!!props.virtual || props.fixed === 'both' || props.fixed === 'y' || props.fixed === 'auto');
|
|
58
48
|
var _props$verticalAlign = props.verticalAlign,
|
|
59
49
|
verticalAlign = _props$verticalAlign === void 0 ? 'top' : _props$verticalAlign,
|
|
@@ -61,23 +51,23 @@ var _default = function _default(props) {
|
|
|
61
51
|
size = _props$size === void 0 ? 'default' : _props$size,
|
|
62
52
|
_props$pagination = props.pagination,
|
|
63
53
|
pagination = _props$pagination === void 0 ? {} : _props$pagination;
|
|
64
|
-
var selection = (
|
|
54
|
+
var selection = useTableSelect({
|
|
65
55
|
cellSelectable: props.cellSelectable
|
|
66
56
|
});
|
|
67
|
-
var inputableData =
|
|
57
|
+
var inputableData = useInputAble({
|
|
68
58
|
value: props.value,
|
|
69
59
|
defaultValue: undefined,
|
|
70
60
|
onChange: props.onRowSelect,
|
|
71
61
|
control: 'value' in props,
|
|
72
62
|
beforeChange: undefined
|
|
73
63
|
});
|
|
74
|
-
var _useTableColumns =
|
|
64
|
+
var _useTableColumns = useTableColumns({
|
|
75
65
|
columns: props.columns,
|
|
76
66
|
showCheckbox: typeof props.onRowSelect === 'function'
|
|
77
67
|
}),
|
|
78
68
|
columns = _useTableColumns.columns,
|
|
79
69
|
expandHideCol = _useTableColumns.expandHideCol;
|
|
80
|
-
var _useTableLayout =
|
|
70
|
+
var _useTableLayout = useTableLayout({
|
|
81
71
|
theadRef: theadRef,
|
|
82
72
|
tbodyRef: tbodyRef,
|
|
83
73
|
scrollRef: scrollRef,
|
|
@@ -100,7 +90,7 @@ var _default = function _default(props) {
|
|
|
100
90
|
scrollBarWidth = _useTableLayout.scrollBarWidth,
|
|
101
91
|
scrollWidth = _useTableLayout.scrollWidth,
|
|
102
92
|
resizeFlag = _useTableLayout.resizeFlag;
|
|
103
|
-
var _useTableSort =
|
|
93
|
+
var _useTableSort = useTableSort({
|
|
104
94
|
data: props.data,
|
|
105
95
|
sorter: props.sorter,
|
|
106
96
|
onSortCancel: props.onSortCancel,
|
|
@@ -109,7 +99,7 @@ var _default = function _default(props) {
|
|
|
109
99
|
sortedData = _useTableSort.sortedData,
|
|
110
100
|
sortInfo = _useTableSort.sortInfo,
|
|
111
101
|
onSorterChange = _useTableSort.onSorterChange;
|
|
112
|
-
var _usePaginationList =
|
|
102
|
+
var _usePaginationList = usePaginationList({
|
|
113
103
|
data: sortedData,
|
|
114
104
|
shouldPage: !!props.pagination,
|
|
115
105
|
current: pagination === null || pagination === void 0 ? void 0 : pagination.current,
|
|
@@ -120,11 +110,11 @@ var _default = function _default(props) {
|
|
|
120
110
|
total: pagination === null || pagination === void 0 ? void 0 : pagination.total
|
|
121
111
|
}),
|
|
122
112
|
pagedData = _usePaginationList.data,
|
|
123
|
-
paginationInfo = (
|
|
113
|
+
paginationInfo = _objectWithoutProperties(_usePaginationList, _excluded);
|
|
124
114
|
var treeColumnsName = (_columns$find = columns.find(function (item) {
|
|
125
115
|
return item.treeColumnsName;
|
|
126
116
|
})) === null || _columns$find === void 0 ? void 0 : _columns$find.treeColumnsName;
|
|
127
|
-
var _useTableTree =
|
|
117
|
+
var _useTableTree = useTableTree({
|
|
128
118
|
data: pagedData,
|
|
129
119
|
treeColumnsName: treeColumnsName,
|
|
130
120
|
treeExpandKeys: props.treeExpandKeys,
|
|
@@ -160,10 +150,10 @@ var _default = function _default(props) {
|
|
|
160
150
|
}
|
|
161
151
|
return selectData;
|
|
162
152
|
};
|
|
163
|
-
var selectData =
|
|
153
|
+
var selectData = useMemo(function () {
|
|
164
154
|
return getSelectData();
|
|
165
155
|
}, [pagedData, treeData]);
|
|
166
|
-
var datum =
|
|
156
|
+
var datum = useListSelect({
|
|
167
157
|
data: selectData,
|
|
168
158
|
value: inputableData.value,
|
|
169
159
|
multiple: !props.radio,
|
|
@@ -172,7 +162,7 @@ var _default = function _default(props) {
|
|
|
172
162
|
onChange: inputableData.onChange,
|
|
173
163
|
disabled: props.disabled
|
|
174
164
|
});
|
|
175
|
-
var virtualInfo =
|
|
165
|
+
var virtualInfo = useTableVirtual({
|
|
176
166
|
data: virtual ? treeData : emptyArr,
|
|
177
167
|
rowsInView: props.rowsInView || 20,
|
|
178
168
|
rowHeight: props.rowHeight || 40,
|
|
@@ -182,7 +172,7 @@ var _default = function _default(props) {
|
|
|
182
172
|
});
|
|
183
173
|
|
|
184
174
|
// simple table sync left to head and foot
|
|
185
|
-
var setLeft =
|
|
175
|
+
var setLeft = usePersistFn(function (left) {
|
|
186
176
|
var thead = theadRef === null || theadRef === void 0 ? void 0 : theadRef.current;
|
|
187
177
|
var tfoot = tfootRef === null || tfootRef === void 0 ? void 0 : tfootRef.current;
|
|
188
178
|
[thead, tfoot].forEach(function (el) {
|
|
@@ -198,7 +188,7 @@ var _default = function _default(props) {
|
|
|
198
188
|
});
|
|
199
189
|
|
|
200
190
|
// handle head and foot scroll
|
|
201
|
-
var handleHeaderWheel =
|
|
191
|
+
var handleHeaderWheel = usePersistFn(function (e) {
|
|
202
192
|
e.preventDefault();
|
|
203
193
|
var scrollEl = scrollRef.current;
|
|
204
194
|
if (!scrollEl) return;
|
|
@@ -207,7 +197,7 @@ var _default = function _default(props) {
|
|
|
207
197
|
if (scrollLeft === scrollEl.scrollLeft) return;
|
|
208
198
|
scrollEl.scrollLeft = Math.min(Math.max(scrollLeft, 0), max);
|
|
209
199
|
});
|
|
210
|
-
var handleBodyScroll =
|
|
200
|
+
var handleBodyScroll = usePersistFn(function (e) {
|
|
211
201
|
var target = e.currentTarget;
|
|
212
202
|
if (!target) return;
|
|
213
203
|
setLeft(target.scrollLeft);
|
|
@@ -219,7 +209,7 @@ var _default = function _default(props) {
|
|
|
219
209
|
props.onScroll(x, y, target.scrollLeft);
|
|
220
210
|
}
|
|
221
211
|
});
|
|
222
|
-
var handleVirtualScroll =
|
|
212
|
+
var handleVirtualScroll = usePersistFn(function (info) {
|
|
223
213
|
virtualInfo.handleScroll(info);
|
|
224
214
|
layoutFunc.checkFloat();
|
|
225
215
|
if (props.onScroll && typeof props.onScroll === 'function') {
|
|
@@ -229,16 +219,16 @@ var _default = function _default(props) {
|
|
|
229
219
|
var renderEmpty = function renderEmpty() {
|
|
230
220
|
var _props$data2;
|
|
231
221
|
if ((_props$data2 = props.data) !== null && _props$data2 !== void 0 && _props$data2.length) return null;
|
|
232
|
-
return /*#__PURE__*/(
|
|
222
|
+
return /*#__PURE__*/_jsx("div", {
|
|
233
223
|
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyWrapper,
|
|
234
|
-
children: props.empty || /*#__PURE__*/(
|
|
224
|
+
children: props.empty || /*#__PURE__*/_jsx(Empty, {
|
|
235
225
|
jssStyle: props.jssStyle
|
|
236
226
|
})
|
|
237
227
|
});
|
|
238
228
|
};
|
|
239
229
|
var renderTable = function renderTable() {
|
|
240
230
|
var _props$data3;
|
|
241
|
-
var Group = /*#__PURE__*/(
|
|
231
|
+
var Group = /*#__PURE__*/_jsx(Colgroup, {
|
|
242
232
|
colgroup: colgroup,
|
|
243
233
|
columns: columns,
|
|
244
234
|
shouldLastColAuto: !!shouldLastColAuto
|
|
@@ -295,37 +285,37 @@ var _default = function _default(props) {
|
|
|
295
285
|
jssStyle: props.jssStyle,
|
|
296
286
|
colgroup: colgroup
|
|
297
287
|
};
|
|
298
|
-
var headWrapperClass = (
|
|
299
|
-
var footWrapperClass = (
|
|
288
|
+
var headWrapperClass = classNames(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.headWrapper, isScrollY && scrollBarWidth && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.scrollY));
|
|
289
|
+
var footWrapperClass = classNames(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.footWrapper, isScrollY && scrollBarWidth && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.scrollY));
|
|
300
290
|
if (virtual) {
|
|
301
|
-
return /*#__PURE__*/(
|
|
302
|
-
children: [!props.hideHeader && /*#__PURE__*/(
|
|
291
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
292
|
+
children: [!props.hideHeader && /*#__PURE__*/_jsx("div", {
|
|
303
293
|
className: headWrapperClass,
|
|
304
|
-
children: /*#__PURE__*/(
|
|
294
|
+
children: /*#__PURE__*/_jsxs("table", {
|
|
305
295
|
style: {
|
|
306
296
|
width: width,
|
|
307
297
|
transform: "translate3d(-".concat(virtualInfo.innerLeft, "px, 0, 0)")
|
|
308
298
|
},
|
|
309
299
|
ref: theadRef,
|
|
310
|
-
children: [Group, /*#__PURE__*/(
|
|
300
|
+
children: [Group, /*#__PURE__*/_jsx(Thead, _objectSpread(_objectSpread({}, headCommonProps), {}, {
|
|
311
301
|
fixLeftNum: virtualInfo.innerLeft,
|
|
312
302
|
fixRightNum: maxScrollLeft - virtualInfo.innerLeft
|
|
313
303
|
}))]
|
|
314
304
|
})
|
|
315
|
-
}), /*#__PURE__*/(
|
|
305
|
+
}), /*#__PURE__*/_jsx(Scroll, {
|
|
316
306
|
style: scrollWrapperStyle,
|
|
317
307
|
scrollerStyle: virtualScrollerStyle,
|
|
318
308
|
wrapperRef: scrollRef,
|
|
319
309
|
scrollWidth: width || 1,
|
|
320
310
|
scrollHeight: virtualInfo.scrollHeight,
|
|
321
311
|
onScroll: handleVirtualScroll,
|
|
322
|
-
children: /*#__PURE__*/(
|
|
312
|
+
children: /*#__PURE__*/_jsxs("table", {
|
|
323
313
|
style: {
|
|
324
314
|
width: width,
|
|
325
315
|
transform: virtualInfo.getTranslate()
|
|
326
316
|
},
|
|
327
317
|
ref: tbodyRef,
|
|
328
|
-
children: [Group, /*#__PURE__*/(
|
|
318
|
+
children: [Group, /*#__PURE__*/_jsx(Tbody, _objectSpread(_objectSpread({}, bodyCommonProps), {}, {
|
|
329
319
|
currentIndex: virtualInfo.startIndex,
|
|
330
320
|
data: virtualInfo.data,
|
|
331
321
|
setRowHeight: virtualInfo.setRowHeight,
|
|
@@ -333,15 +323,15 @@ var _default = function _default(props) {
|
|
|
333
323
|
fixRightNum: maxScrollLeft - virtualInfo.innerLeft
|
|
334
324
|
}))]
|
|
335
325
|
})
|
|
336
|
-
}), /*#__PURE__*/(
|
|
326
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
337
327
|
className: footWrapperClass,
|
|
338
|
-
children: /*#__PURE__*/(
|
|
328
|
+
children: /*#__PURE__*/_jsxs("table", {
|
|
339
329
|
style: {
|
|
340
330
|
width: width,
|
|
341
331
|
transform: "translate3d(-".concat(virtualInfo.innerLeft, "px, 0, 0)")
|
|
342
332
|
},
|
|
343
333
|
ref: tfootRef,
|
|
344
|
-
children: [Group, /*#__PURE__*/(
|
|
334
|
+
children: [Group, /*#__PURE__*/_jsx(Tfoot, _objectSpread(_objectSpread({}, footCommonProps), {}, {
|
|
345
335
|
fixLeftNum: virtualInfo.innerLeft,
|
|
346
336
|
fixRightNum: maxScrollLeft - virtualInfo.innerLeft
|
|
347
337
|
}))]
|
|
@@ -349,16 +339,16 @@ var _default = function _default(props) {
|
|
|
349
339
|
})]
|
|
350
340
|
});
|
|
351
341
|
}
|
|
352
|
-
if (!isScrollY && !props.sticky && (_props$data3 = props.data) !== null && _props$data3 !== void 0 && _props$data3.length) return /*#__PURE__*/(
|
|
342
|
+
if (!isScrollY && !props.sticky && (_props$data3 = props.data) !== null && _props$data3 !== void 0 && _props$data3.length) return /*#__PURE__*/_jsx("div", {
|
|
353
343
|
ref: scrollRef,
|
|
354
344
|
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bodyWrapper,
|
|
355
345
|
onScroll: handleBodyScroll,
|
|
356
|
-
children: /*#__PURE__*/(
|
|
346
|
+
children: /*#__PURE__*/_jsxs("table", {
|
|
357
347
|
style: {
|
|
358
348
|
width: width
|
|
359
349
|
},
|
|
360
350
|
ref: tbodyRef,
|
|
361
|
-
children: [Group, !props.hideHeader && /*#__PURE__*/(
|
|
351
|
+
children: [Group, !props.hideHeader && /*#__PURE__*/_jsx(Thead, _objectSpread({}, headCommonProps)), /*#__PURE__*/_jsx(Tbody, _objectSpread({}, bodyCommonProps)), /*#__PURE__*/_jsx(Tfoot, _objectSpread({}, footCommonProps))]
|
|
362
352
|
})
|
|
363
353
|
});
|
|
364
354
|
var sticky = props.sticky === true ? {
|
|
@@ -371,48 +361,48 @@ var _default = function _default(props) {
|
|
|
371
361
|
top: top,
|
|
372
362
|
position: 'sticky'
|
|
373
363
|
} : undefined;
|
|
374
|
-
return /*#__PURE__*/(
|
|
375
|
-
children: [!props.hideHeader && /*#__PURE__*/(
|
|
364
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
365
|
+
children: [!props.hideHeader && /*#__PURE__*/_jsx("div", {
|
|
376
366
|
className: headWrapperClass,
|
|
377
367
|
style: stickyStyle,
|
|
378
|
-
children: /*#__PURE__*/(
|
|
368
|
+
children: /*#__PURE__*/_jsxs("table", {
|
|
379
369
|
style: {
|
|
380
370
|
width: width
|
|
381
371
|
},
|
|
382
372
|
ref: theadRef,
|
|
383
|
-
children: [Group, /*#__PURE__*/(
|
|
373
|
+
children: [Group, /*#__PURE__*/_jsx(Thead, _objectSpread({}, headCommonProps))]
|
|
384
374
|
})
|
|
385
|
-
}), /*#__PURE__*/(
|
|
375
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
386
376
|
ref: scrollRef,
|
|
387
377
|
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bodyWrapper,
|
|
388
378
|
onScroll: handleBodyScroll,
|
|
389
379
|
style: {
|
|
390
380
|
height: '100%'
|
|
391
381
|
},
|
|
392
|
-
children: [/*#__PURE__*/(
|
|
382
|
+
children: [/*#__PURE__*/_jsxs("table", {
|
|
393
383
|
style: {
|
|
394
384
|
width: width
|
|
395
385
|
},
|
|
396
386
|
ref: tbodyRef,
|
|
397
|
-
children: [Group, /*#__PURE__*/(
|
|
387
|
+
children: [Group, /*#__PURE__*/_jsx(Tbody, _objectSpread({}, bodyCommonProps))]
|
|
398
388
|
}), renderEmpty()]
|
|
399
|
-
}), /*#__PURE__*/(
|
|
389
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
400
390
|
className: footWrapperClass,
|
|
401
|
-
children: /*#__PURE__*/(
|
|
391
|
+
children: /*#__PURE__*/_jsxs("table", {
|
|
402
392
|
style: {
|
|
403
393
|
width: width
|
|
404
394
|
},
|
|
405
395
|
ref: tfootRef,
|
|
406
|
-
children: [Group, /*#__PURE__*/(
|
|
396
|
+
children: [Group, /*#__PURE__*/_jsx(Tfoot, _objectSpread({}, footCommonProps))]
|
|
407
397
|
})
|
|
408
398
|
})]
|
|
409
399
|
});
|
|
410
400
|
};
|
|
411
401
|
var renderLoading = function renderLoading() {
|
|
412
402
|
if (!props.loading) return null;
|
|
413
|
-
return /*#__PURE__*/(
|
|
414
|
-
className: (
|
|
415
|
-
children: props.loading === true ? /*#__PURE__*/(
|
|
403
|
+
return /*#__PURE__*/_jsx("div", {
|
|
404
|
+
className: classNames(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.loading),
|
|
405
|
+
children: props.loading === true ? /*#__PURE__*/_jsx(Spin, {
|
|
416
406
|
jssStyle: props.jssStyle,
|
|
417
407
|
size: 24
|
|
418
408
|
}) : props.loading
|
|
@@ -420,13 +410,13 @@ var _default = function _default(props) {
|
|
|
420
410
|
};
|
|
421
411
|
var renderPagination = function renderPagination() {
|
|
422
412
|
if (!props.pagination) return null;
|
|
423
|
-
return /*#__PURE__*/(
|
|
413
|
+
return /*#__PURE__*/_jsx(Pagination, _objectSpread(_objectSpread({
|
|
424
414
|
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.pagination,
|
|
425
415
|
jssStyle: props.jssStyle,
|
|
426
416
|
align: "right"
|
|
427
417
|
}, pagination), paginationInfo));
|
|
428
418
|
};
|
|
429
|
-
|
|
419
|
+
useEffect(function () {
|
|
430
420
|
// 绑定 wheel 事件
|
|
431
421
|
if (theadRef.current && theadRef.current.parentElement) {
|
|
432
422
|
theadRef.current.parentElement.addEventListener('wheel', handleHeaderWheel, {
|
|
@@ -447,39 +437,38 @@ var _default = function _default(props) {
|
|
|
447
437
|
}
|
|
448
438
|
};
|
|
449
439
|
}, [theadRef.current, isScrollY]);
|
|
450
|
-
var tableFunc =
|
|
440
|
+
var tableFunc = useLatestObj({
|
|
451
441
|
scrollToIndex: virtualInfo.scrollToIndex
|
|
452
442
|
});
|
|
453
|
-
|
|
443
|
+
useEffect(function () {
|
|
454
444
|
if (props.tableRef) {
|
|
455
445
|
props.tableRef(tableFunc);
|
|
456
446
|
}
|
|
457
447
|
}, []);
|
|
458
|
-
var tableWrapperClass = (
|
|
459
|
-
if (!props.columns || columns.length === 0) return /*#__PURE__*/(
|
|
460
|
-
className: (
|
|
448
|
+
var tableWrapperClass = classNames(props.className, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.wrapper, props.bordered && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bordered), verticalAlign === 'top' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.verticalAlignTop), verticalAlign === 'middle' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.verticalAlignMiddle), size === 'small' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.small), size === 'large' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.large), size === 'default' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.default));
|
|
449
|
+
if (!props.columns || columns.length === 0) return /*#__PURE__*/_jsx("div", {
|
|
450
|
+
className: classNames(tableWrapperClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.simple, props.striped && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.striped)),
|
|
461
451
|
style: _objectSpread({
|
|
462
452
|
height: props.height || '100%'
|
|
463
453
|
}, props.style),
|
|
464
|
-
children: /*#__PURE__*/(
|
|
454
|
+
children: /*#__PURE__*/_jsx("table", {
|
|
465
455
|
style: {
|
|
466
456
|
width: width
|
|
467
457
|
},
|
|
468
458
|
children: props.children
|
|
469
459
|
})
|
|
470
460
|
});
|
|
471
|
-
return /*#__PURE__*/(
|
|
472
|
-
children: [/*#__PURE__*/(
|
|
473
|
-
className: (
|
|
461
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
462
|
+
children: [/*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
|
|
463
|
+
className: classNames(tableWrapperClass, floatLeft && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.floatLeft), floatRight && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.floatRight), props.sticky && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.sticky)),
|
|
474
464
|
style: _objectSpread({
|
|
475
465
|
height: props.height
|
|
476
466
|
}, props.style)
|
|
477
467
|
}, selection.getTableProps()), {}, {
|
|
478
|
-
children: /*#__PURE__*/(
|
|
468
|
+
children: /*#__PURE__*/_jsxs(AbsoluteContext.Provider, {
|
|
479
469
|
value: true,
|
|
480
470
|
children: [renderTable(), renderLoading(), props.children]
|
|
481
471
|
})
|
|
482
472
|
})), renderPagination()]
|
|
483
473
|
});
|
|
484
|
-
};
|
|
485
|
-
exports.default = _default;
|
|
474
|
+
});
|