@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/select/select.js
CHANGED
|
@@ -1,48 +1,44 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
36
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
38
|
-
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
5
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
8
|
+
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; }
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
|
+
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); }
|
|
11
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
+
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."); }
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
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; } }
|
|
16
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
|
+
import React, { useRef, useState } from 'react';
|
|
18
|
+
import classNames from 'classnames';
|
|
19
|
+
import { util, usePersistFn, usePopup, useSelect, useFilter, useGroup, useTiled } from '@sheinx/hooks';
|
|
20
|
+
import { AbsoluteList } from "../absolute-list";
|
|
21
|
+
import useInnerTitle from "../common/use-inner-title";
|
|
22
|
+
import AnimationList from "../animation-list";
|
|
23
|
+
import Spin from "../spin";
|
|
24
|
+
import Result from "./result";
|
|
25
|
+
import List from "./list";
|
|
26
|
+
import TreeList from "./list-tree";
|
|
27
|
+
import Icons from "../icons";
|
|
28
|
+
import ColumnsList from "./list-columns";
|
|
29
|
+
import useWithFormConfig from "../common/use-with-form-config";
|
|
30
|
+
import useTip from "../common/use-tip";
|
|
31
|
+
import { getLocale, useConfig } from "../config";
|
|
32
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
33
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
34
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
39
35
|
var preventDefault = function preventDefault(e) {
|
|
40
36
|
e.preventDefault();
|
|
41
37
|
};
|
|
42
38
|
function Select(props0) {
|
|
43
39
|
var _jssStyle$select;
|
|
44
|
-
var props = (
|
|
45
|
-
var _useConfig =
|
|
40
|
+
var props = useWithFormConfig(props0);
|
|
41
|
+
var _useConfig = useConfig(),
|
|
46
42
|
locale = _useConfig.locale;
|
|
47
43
|
var jssStyle = props.jssStyle,
|
|
48
44
|
className = props.className,
|
|
@@ -122,25 +118,25 @@ function Select(props0) {
|
|
|
122
118
|
onEnterExpand = props.onEnterExpand,
|
|
123
119
|
onFilterWidthCreate = props.onFilterWidthCreate,
|
|
124
120
|
filterSameChange = props.filterSameChange;
|
|
125
|
-
var hasFilter =
|
|
126
|
-
var showInput = hasFilter ||
|
|
127
|
-
var styles = jssStyle === null || jssStyle === void 0
|
|
121
|
+
var hasFilter = util.isFunc(props.onAdvancedFilter || onFilterProp);
|
|
122
|
+
var showInput = hasFilter || util.isFunc(onCreateProp);
|
|
123
|
+
var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$select = jssStyle.select) === null || _jssStyle$select === void 0 ? void 0 : _jssStyle$select.call(jssStyle);
|
|
128
124
|
var rootStyle = Object.assign({
|
|
129
125
|
width: width
|
|
130
126
|
}, style);
|
|
131
|
-
var _useState =
|
|
132
|
-
_useState2 = (
|
|
127
|
+
var _useState = useState('keyboard'),
|
|
128
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
133
129
|
controlType = _useState2[0],
|
|
134
130
|
setControlType = _useState2[1];
|
|
135
|
-
var _useState3 =
|
|
136
|
-
_useState4 = (
|
|
131
|
+
var _useState3 = useState(false),
|
|
132
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
137
133
|
focused = _useState4[0],
|
|
138
134
|
setFocused = _useState4[1];
|
|
139
|
-
var isPreventBlur =
|
|
140
|
-
var blurEvent =
|
|
141
|
-
var inputRef =
|
|
142
|
-
var optionListRef =
|
|
143
|
-
var _useFilter =
|
|
135
|
+
var isPreventBlur = useRef(false);
|
|
136
|
+
var blurEvent = useRef();
|
|
137
|
+
var inputRef = useRef();
|
|
138
|
+
var optionListRef = useRef();
|
|
139
|
+
var _useFilter = useFilter({
|
|
144
140
|
data: data,
|
|
145
141
|
treeData: treeData,
|
|
146
142
|
keygen: keygen,
|
|
@@ -163,8 +159,8 @@ function Select(props0) {
|
|
|
163
159
|
onCreate = _useFilter.onCreate,
|
|
164
160
|
onClearCreatedData = _useFilter.onClearCreatedData,
|
|
165
161
|
rawData = _useFilter.rawData;
|
|
166
|
-
var onCollapse =
|
|
167
|
-
onCollapseProp === null || onCollapseProp === void 0
|
|
162
|
+
var onCollapse = usePersistFn(function (collapse) {
|
|
163
|
+
onCollapseProp === null || onCollapseProp === void 0 || onCollapseProp(collapse);
|
|
168
164
|
if (isPreventBlur.current) {
|
|
169
165
|
isPreventBlur.current = false;
|
|
170
166
|
return;
|
|
@@ -176,14 +172,14 @@ function Select(props0) {
|
|
|
176
172
|
onClearCreatedData();
|
|
177
173
|
});
|
|
178
174
|
var renderMoreIcon = function renderMoreIcon() {
|
|
179
|
-
return
|
|
175
|
+
return Icons.select.More;
|
|
180
176
|
};
|
|
181
|
-
var _useTiled =
|
|
177
|
+
var _useTiled = useTiled({
|
|
182
178
|
data: filterData0,
|
|
183
179
|
filterText: filterText,
|
|
184
180
|
onAdvancedFilter: props.onAdvancedFilter,
|
|
185
181
|
keygen: keygen,
|
|
186
|
-
originIcon:
|
|
182
|
+
originIcon: Icons.select.More,
|
|
187
183
|
moreIcon: renderMoreIcon,
|
|
188
184
|
childrenKey: childrenKey,
|
|
189
185
|
expanded: expanded,
|
|
@@ -193,7 +189,7 @@ function Select(props0) {
|
|
|
193
189
|
filterData = _useTiled.data,
|
|
194
190
|
onFilter = _useTiled.onFilter,
|
|
195
191
|
tiledExpandIcons = _useTiled.expandIcons;
|
|
196
|
-
var _usePopup =
|
|
192
|
+
var _usePopup = usePopup({
|
|
197
193
|
open: openProp,
|
|
198
194
|
onCollapse: onCollapse,
|
|
199
195
|
disabled: false,
|
|
@@ -208,9 +204,9 @@ function Select(props0) {
|
|
|
208
204
|
closePop = _usePopup.closePop,
|
|
209
205
|
PopupProvider = _usePopup.Provider,
|
|
210
206
|
popupProviderValue = _usePopup.providerValue;
|
|
211
|
-
var handleSelectChange =
|
|
207
|
+
var handleSelectChange = usePersistFn(function (value, dataItem, checked) {
|
|
212
208
|
if (createdData || props.emptyAfterSelect) {
|
|
213
|
-
onFilter === null || onFilter === void 0
|
|
209
|
+
onFilter === null || onFilter === void 0 || onFilter('');
|
|
214
210
|
}
|
|
215
211
|
var shouldFocus = showInput && props.reFocus;
|
|
216
212
|
if (!multiple && !shouldFocus) {
|
|
@@ -218,11 +214,11 @@ function Select(props0) {
|
|
|
218
214
|
}
|
|
219
215
|
if (multiple && !shouldFocus) {
|
|
220
216
|
var _inputRef$current;
|
|
221
|
-
inputRef === null || inputRef === void 0
|
|
217
|
+
inputRef === null || inputRef === void 0 || (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.select();
|
|
222
218
|
}
|
|
223
|
-
onChange === null || onChange === void 0
|
|
219
|
+
onChange === null || onChange === void 0 || onChange(value, dataItem, checked);
|
|
224
220
|
});
|
|
225
|
-
var _useSelect =
|
|
221
|
+
var _useSelect = useSelect({
|
|
226
222
|
value: valueProp,
|
|
227
223
|
data: data,
|
|
228
224
|
separator: separator,
|
|
@@ -246,12 +242,12 @@ function Select(props0) {
|
|
|
246
242
|
if (multiple) {
|
|
247
243
|
isEmpty = !value || Array.isArray(value) && value.length === 0;
|
|
248
244
|
} else {
|
|
249
|
-
isEmpty =
|
|
245
|
+
isEmpty = util.isEmpty(value);
|
|
250
246
|
}
|
|
251
247
|
return isEmpty;
|
|
252
248
|
};
|
|
253
249
|
var isEmpty = checkEmpty();
|
|
254
|
-
var _useGroup =
|
|
250
|
+
var _useGroup = useGroup({
|
|
255
251
|
data: filterData,
|
|
256
252
|
groupBy: groupBy
|
|
257
253
|
}),
|
|
@@ -270,18 +266,18 @@ function Select(props0) {
|
|
|
270
266
|
var focusAndOpen = function focusAndOpen() {
|
|
271
267
|
if (!focused) {
|
|
272
268
|
var _inputRef$current2;
|
|
273
|
-
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0
|
|
269
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.focus();
|
|
274
270
|
} else {
|
|
275
271
|
openPop();
|
|
276
272
|
}
|
|
277
273
|
};
|
|
278
274
|
|
|
279
275
|
// 点击 Select 结果框的处理方法
|
|
280
|
-
var handleResultClick =
|
|
276
|
+
var handleResultClick = usePersistFn(function (e) {
|
|
281
277
|
if (disabled === true) return;
|
|
282
278
|
if (!focus) {
|
|
283
279
|
var _inputRef$current3;
|
|
284
|
-
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0
|
|
280
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.focus();
|
|
285
281
|
}
|
|
286
282
|
if (open) {
|
|
287
283
|
if (e.target.tagName === 'INPUT') {
|
|
@@ -292,7 +288,7 @@ function Select(props0) {
|
|
|
292
288
|
openPop();
|
|
293
289
|
}
|
|
294
290
|
});
|
|
295
|
-
var tipNode = (
|
|
291
|
+
var tipNode = useTip({
|
|
296
292
|
popover: props.popover,
|
|
297
293
|
popoverProps: props.popoverProps,
|
|
298
294
|
error: props.error,
|
|
@@ -301,18 +297,18 @@ function Select(props0) {
|
|
|
301
297
|
rootRef: targetRef,
|
|
302
298
|
jssStyle: props.jssStyle
|
|
303
299
|
});
|
|
304
|
-
var rootClass = (
|
|
300
|
+
var rootClass = classNames(className, isEmpty && styles.wrapperEmpty, styles === null || styles === void 0 ? void 0 : styles.wrapper, open && (styles === null || styles === void 0 ? void 0 : styles.wrapperOpen), disabled === true && (styles === null || styles === void 0 ? void 0 : styles.wrapperDisabled), disabled !== true && focused && (styles === null || styles === void 0 ? void 0 : styles.wrapperFocus), innerTitle && (styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitle), size === 'small' && (styles === null || styles === void 0 ? void 0 : styles.wrapperSmall), size === 'large' && (styles === null || styles === void 0 ? void 0 : styles.wrapperLarge), (!!props.error || props.status === 'error') && (styles === null || styles === void 0 ? void 0 : styles.wrapperError), clearable && (styles === null || styles === void 0 ? void 0 : styles.clearable), !border && (styles === null || styles === void 0 ? void 0 : styles.wrapperNoBorder), !!underline && (styles === null || styles === void 0 ? void 0 : styles.wrapperUnderline), _defineProperty({}, styles === null || styles === void 0 ? void 0 : styles.multiple, multiple));
|
|
305
301
|
var getRenderItem = function getRenderItem(data, index) {
|
|
306
302
|
return typeof renderItemProp === 'function' ? renderItemProp(data, index) : data[renderItemProp];
|
|
307
303
|
};
|
|
308
304
|
var renderItem = getRenderItem;
|
|
309
|
-
var handleFocus =
|
|
305
|
+
var handleFocus = usePersistFn(function (e) {
|
|
310
306
|
setFocused(true);
|
|
311
|
-
onFocus === null || onFocus === void 0
|
|
307
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
312
308
|
});
|
|
313
|
-
var handleBlur =
|
|
309
|
+
var handleBlur = usePersistFn(function (e) {
|
|
314
310
|
setFocused(false);
|
|
315
|
-
onBlur === null || onBlur === void 0
|
|
311
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
316
312
|
});
|
|
317
313
|
var handleChange = function handleChange(item) {
|
|
318
314
|
if (multiple) {
|
|
@@ -369,12 +365,12 @@ function Select(props0) {
|
|
|
369
365
|
}
|
|
370
366
|
if (onCreate && !hideCreateOption) {
|
|
371
367
|
var _optionListRef$curren2;
|
|
372
|
-
(_optionListRef$curren2 = optionListRef.current) === null || _optionListRef$curren2 === void 0
|
|
368
|
+
(_optionListRef$curren2 = optionListRef.current) === null || _optionListRef$curren2 === void 0 || _optionListRef$curren2.hoverMove(0, true);
|
|
373
369
|
}
|
|
374
370
|
if (hideCreate) {
|
|
375
371
|
// optionListRef.current?.hoverMove(filterData.length - 1, true);
|
|
376
372
|
}
|
|
377
|
-
onFilter === null || onFilter === void 0
|
|
373
|
+
onFilter === null || onFilter === void 0 || onFilter(trim ? text.trim() : text, from);
|
|
378
374
|
};
|
|
379
375
|
var handleOptionClick = function handleOptionClick() {
|
|
380
376
|
isPreventBlur.current = true;
|
|
@@ -389,7 +385,7 @@ function Select(props0) {
|
|
|
389
385
|
if (inputText) return;
|
|
390
386
|
e.preventDefault();
|
|
391
387
|
var raws = Array.isArray(value) ? value : [value];
|
|
392
|
-
var values = (
|
|
388
|
+
var values = _toConsumableArray(raws);
|
|
393
389
|
var last = values.pop();
|
|
394
390
|
if (last) {
|
|
395
391
|
datum.remove(last);
|
|
@@ -409,7 +405,7 @@ function Select(props0) {
|
|
|
409
405
|
|
|
410
406
|
// tab 可关闭下拉列表
|
|
411
407
|
if (e.keyCode === 9 || e.code === 'Tab') {
|
|
412
|
-
onBlur === null || onBlur === void 0
|
|
408
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
413
409
|
if (open) closePop();
|
|
414
410
|
return;
|
|
415
411
|
}
|
|
@@ -417,11 +413,11 @@ function Select(props0) {
|
|
|
417
413
|
setControlType('keyboard');
|
|
418
414
|
switch (e.keyCode || e.code) {
|
|
419
415
|
case 38 || 'ArrowUp':
|
|
420
|
-
if ((_optionListRef$curren3 = optionListRef.current) !== null && _optionListRef$curren3 !== void 0 && _optionListRef$curren3.hoverHover) (_optionListRef$curren4 = optionListRef.current) === null || _optionListRef$curren4 === void 0
|
|
416
|
+
if ((_optionListRef$curren3 = optionListRef.current) !== null && _optionListRef$curren3 !== void 0 && _optionListRef$curren3.hoverHover) (_optionListRef$curren4 = optionListRef.current) === null || _optionListRef$curren4 === void 0 || _optionListRef$curren4.hoverMove(-1);
|
|
421
417
|
e.preventDefault();
|
|
422
418
|
break;
|
|
423
419
|
case 40 || 'ArrowDown':
|
|
424
|
-
if ((_optionListRef$curren5 = optionListRef.current) !== null && _optionListRef$curren5 !== void 0 && _optionListRef$curren5.hoverHover) (_optionListRef$curren6 = optionListRef.current) === null || _optionListRef$curren6 === void 0
|
|
420
|
+
if ((_optionListRef$curren5 = optionListRef.current) !== null && _optionListRef$curren5 !== void 0 && _optionListRef$curren5.hoverHover) (_optionListRef$curren6 = optionListRef.current) === null || _optionListRef$curren6 === void 0 || _optionListRef$curren6.hoverMove(1);
|
|
425
421
|
e.preventDefault();
|
|
426
422
|
break;
|
|
427
423
|
case 13 || 'Enter':
|
|
@@ -439,7 +435,7 @@ function Select(props0) {
|
|
|
439
435
|
e.stopPropagation();
|
|
440
436
|
datum.removeAll();
|
|
441
437
|
if (filterText) {
|
|
442
|
-
onFilter === null || onFilter === void 0
|
|
438
|
+
onFilter === null || onFilter === void 0 || onFilter('');
|
|
443
439
|
}
|
|
444
440
|
if (open) closePop();
|
|
445
441
|
};
|
|
@@ -460,7 +456,7 @@ function Select(props0) {
|
|
|
460
456
|
};
|
|
461
457
|
|
|
462
458
|
// innerTitle 模式
|
|
463
|
-
var renderInnerTitle = (
|
|
459
|
+
var renderInnerTitle = useInnerTitle({
|
|
464
460
|
open: open || !isEmpty,
|
|
465
461
|
size: size,
|
|
466
462
|
jssStyle: jssStyle,
|
|
@@ -468,18 +464,18 @@ function Select(props0) {
|
|
|
468
464
|
});
|
|
469
465
|
var renderClearable = function renderClearable() {
|
|
470
466
|
if (!multiple !== undefined && !showArrow) return null;
|
|
471
|
-
var defaultIcon = multiple ?
|
|
472
|
-
var arrow = /*#__PURE__*/(
|
|
473
|
-
className: (
|
|
467
|
+
var defaultIcon = multiple ? Icons.select.More : Icons.select.DropdownArrow;
|
|
468
|
+
var arrow = /*#__PURE__*/_jsx("span", {
|
|
469
|
+
className: classNames(styles.arrowIcon, open && !compressed && styles.arrowIconOpen),
|
|
474
470
|
onClick: handleResultClick,
|
|
475
471
|
children: defaultIcon
|
|
476
472
|
});
|
|
477
|
-
var close = /*#__PURE__*/(
|
|
473
|
+
var close = /*#__PURE__*/_jsx("span", {
|
|
478
474
|
className: styles.clearIcon,
|
|
479
475
|
onClick: handleClear,
|
|
480
|
-
children: isEmpty ? arrow :
|
|
476
|
+
children: isEmpty ? arrow : Icons.select.Close
|
|
481
477
|
});
|
|
482
|
-
return /*#__PURE__*/(
|
|
478
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
483
479
|
children: [close, !open && arrow]
|
|
484
480
|
});
|
|
485
481
|
};
|
|
@@ -488,17 +484,17 @@ function Select(props0) {
|
|
|
488
484
|
return renderClearable();
|
|
489
485
|
}
|
|
490
486
|
if (!multiple && !showArrow) return null;
|
|
491
|
-
var defaultIcon = multiple ?
|
|
492
|
-
return /*#__PURE__*/(
|
|
493
|
-
className: (
|
|
487
|
+
var defaultIcon = multiple ? Icons.select.More : Icons.select.DropdownArrow;
|
|
488
|
+
return /*#__PURE__*/_jsx("span", {
|
|
489
|
+
className: classNames(styles.arrowIcon, open && !compressed && styles.arrowIconOpen),
|
|
494
490
|
onClick: handleResultClick,
|
|
495
491
|
children: defaultIcon
|
|
496
492
|
});
|
|
497
493
|
};
|
|
498
494
|
var renderResult = function renderResult() {
|
|
499
|
-
var result = /*#__PURE__*/(
|
|
500
|
-
className: (
|
|
501
|
-
children: /*#__PURE__*/(
|
|
495
|
+
var result = /*#__PURE__*/_jsx("div", {
|
|
496
|
+
className: classNames(styles === null || styles === void 0 ? void 0 : styles.result),
|
|
497
|
+
children: /*#__PURE__*/_jsx(Result, {
|
|
502
498
|
trim: trim,
|
|
503
499
|
jssStyle: jssStyle,
|
|
504
500
|
size: size,
|
|
@@ -531,15 +527,16 @@ function Select(props0) {
|
|
|
531
527
|
onClearCreatedData: onClearCreatedData,
|
|
532
528
|
getDataByValues: getDataByValues,
|
|
533
529
|
checkUnMatched: checkUnMatched,
|
|
534
|
-
onRemove: handleRemove
|
|
530
|
+
onRemove: handleRemove,
|
|
531
|
+
classes: styles
|
|
535
532
|
})
|
|
536
533
|
});
|
|
537
|
-
return /*#__PURE__*/(
|
|
534
|
+
return /*#__PURE__*/_jsx(PopupProvider, {
|
|
538
535
|
value: popupProviderValue,
|
|
539
|
-
children: /*#__PURE__*/(
|
|
540
|
-
className: (
|
|
536
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
537
|
+
className: classNames(styles === null || styles === void 0 ? void 0 : styles.resultWrapper, styles === null || styles === void 0 ? void 0 : styles.wrapperPaddingBox, styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitleTop, styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitleBottom),
|
|
541
538
|
onClick: handleResultClick,
|
|
542
|
-
children: [renderInnerTitle(result), /*#__PURE__*/(
|
|
539
|
+
children: [renderInnerTitle(result), /*#__PURE__*/_jsx("div", {
|
|
543
540
|
className: styles.iconWrapper,
|
|
544
541
|
children: renderIcon()
|
|
545
542
|
})]
|
|
@@ -575,14 +572,14 @@ function Select(props0) {
|
|
|
575
572
|
};
|
|
576
573
|
// 自定义列
|
|
577
574
|
if ('columns' in props && typeof columns === 'number' && columns >= 1 || columns === -1) {
|
|
578
|
-
return /*#__PURE__*/(
|
|
575
|
+
return /*#__PURE__*/_jsx(ColumnsList, _objectSpread({
|
|
579
576
|
columns: columns
|
|
580
577
|
}, listProps));
|
|
581
578
|
}
|
|
582
|
-
return /*#__PURE__*/(
|
|
579
|
+
return /*#__PURE__*/_jsx(List, _objectSpread({}, listProps));
|
|
583
580
|
};
|
|
584
581
|
var renderTreeList = function renderTreeList() {
|
|
585
|
-
return /*#__PURE__*/(
|
|
582
|
+
return /*#__PURE__*/_jsx(TreeList, {
|
|
586
583
|
jssStyle: jssStyle,
|
|
587
584
|
data: filterData,
|
|
588
585
|
datum: datum,
|
|
@@ -603,22 +600,22 @@ function Select(props0) {
|
|
|
603
600
|
if (loading !== true) {
|
|
604
601
|
return loading;
|
|
605
602
|
}
|
|
606
|
-
return /*#__PURE__*/(
|
|
603
|
+
return /*#__PURE__*/_jsx("div", {
|
|
607
604
|
className: styles === null || styles === void 0 ? void 0 : styles.loading,
|
|
608
|
-
children: /*#__PURE__*/(
|
|
605
|
+
children: /*#__PURE__*/_jsx(Spin, {
|
|
609
606
|
jssStyle: jssStyle,
|
|
610
607
|
size: 14
|
|
611
608
|
})
|
|
612
609
|
});
|
|
613
610
|
};
|
|
614
611
|
var renderEmpty = function renderEmpty() {
|
|
615
|
-
return /*#__PURE__*/(
|
|
612
|
+
return /*#__PURE__*/_jsx("div", {
|
|
616
613
|
className: styles === null || styles === void 0 ? void 0 : styles.option,
|
|
617
|
-
children: /*#__PURE__*/(
|
|
614
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
618
615
|
className: styles === null || styles === void 0 ? void 0 : styles.optionInner,
|
|
619
|
-
children: /*#__PURE__*/(
|
|
616
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
620
617
|
className: styles === null || styles === void 0 ? void 0 : styles.empty,
|
|
621
|
-
children: props.emptyText ||
|
|
618
|
+
children: props.emptyText || getLocale(locale, 'noData')
|
|
622
619
|
})
|
|
623
620
|
})
|
|
624
621
|
});
|
|
@@ -654,10 +651,10 @@ function Select(props0) {
|
|
|
654
651
|
}
|
|
655
652
|
return style;
|
|
656
653
|
};
|
|
657
|
-
return /*#__PURE__*/(
|
|
654
|
+
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
|
|
658
655
|
ref: targetRef,
|
|
659
656
|
tabIndex: disabled === true || showInput ? undefined : 0
|
|
660
|
-
},
|
|
657
|
+
}, util.getDataAttribute(_defineProperty({}, 'input-border', 'true'))), {}, {
|
|
661
658
|
className: rootClass,
|
|
662
659
|
style: rootStyle,
|
|
663
660
|
onKeyDown: handleKeyDown,
|
|
@@ -669,7 +666,7 @@ function Select(props0) {
|
|
|
669
666
|
e.preventDefault();
|
|
670
667
|
}
|
|
671
668
|
},
|
|
672
|
-
children: [tipNode, renderResult(), /*#__PURE__*/(
|
|
669
|
+
children: [tipNode, renderResult(), /*#__PURE__*/_jsx(AbsoluteList, {
|
|
673
670
|
adjust: true,
|
|
674
671
|
focus: open,
|
|
675
672
|
fixedWidth: autoAdapt ? 'min' : true,
|
|
@@ -679,10 +676,10 @@ function Select(props0) {
|
|
|
679
676
|
popupGap: 4,
|
|
680
677
|
popupElRef: popupRef,
|
|
681
678
|
parentElRef: targetRef,
|
|
682
|
-
children: /*#__PURE__*/(
|
|
679
|
+
children: /*#__PURE__*/_jsxs(AnimationList, {
|
|
683
680
|
onRef: popupRef,
|
|
684
681
|
show: open,
|
|
685
|
-
className: (
|
|
682
|
+
className: classNames(styles === null || styles === void 0 ? void 0 : styles.pickerWrapper),
|
|
686
683
|
onMouseDown: preventDefault,
|
|
687
684
|
display: 'block',
|
|
688
685
|
type: "scale-y",
|
|
@@ -693,5 +690,4 @@ function Select(props0) {
|
|
|
693
690
|
})]
|
|
694
691
|
}));
|
|
695
692
|
}
|
|
696
|
-
|
|
697
|
-
exports.default = _default;
|
|
693
|
+
export default Select;
|
|
@@ -11,7 +11,7 @@ import { RadioClasses } from '../radio/radio.type';
|
|
|
11
11
|
import { SpinClasses } from '../spin/spin.type';
|
|
12
12
|
import { InputClasses } from '../input/input.type';
|
|
13
13
|
import { BaseTipProps } from '../common/use-tip';
|
|
14
|
-
export
|
|
14
|
+
export type SelectClasses = {
|
|
15
15
|
wrapper: string;
|
|
16
16
|
wrapperEmpty: string;
|
|
17
17
|
wrapperOpen: string;
|
|
@@ -80,7 +80,7 @@ export declare type SelectClasses = {
|
|
|
80
80
|
empty: string;
|
|
81
81
|
popover: string;
|
|
82
82
|
};
|
|
83
|
-
export
|
|
83
|
+
export type JssStyleType = {
|
|
84
84
|
tag?: () => TagClasses;
|
|
85
85
|
select?: () => SelectClasses;
|
|
86
86
|
innerTitle?: () => InnerTitleClasses;
|
|
@@ -91,8 +91,8 @@ export declare type JssStyleType = {
|
|
|
91
91
|
spin?: () => SpinClasses;
|
|
92
92
|
input?: () => InputClasses;
|
|
93
93
|
};
|
|
94
|
-
export
|
|
95
|
-
export
|
|
94
|
+
export type DatumType<DataItem, Value> = ReturnType<typeof useListSelect<DataItem, Value>>;
|
|
95
|
+
export type OptionListRefType = {
|
|
96
96
|
hoverMove: (index: number, force?: boolean) => void;
|
|
97
97
|
hoverHover: (index: number) => void;
|
|
98
98
|
getHoverIndex: () => number;
|
|
@@ -111,7 +111,7 @@ export interface BaseListProps<DataItem, Value> extends Pick<SelectProps<DataIte
|
|
|
111
111
|
onControlTypeChange: React.Dispatch<React.SetStateAction<'mouse' | 'keyboard'>>;
|
|
112
112
|
onOptionClick: (data: DataItem, index: number) => void;
|
|
113
113
|
}
|
|
114
|
-
export interface SelectPropsBase<DataItem, Value> extends Omit<BaseSelectProps<DataItem, Value>, 'control'>, Pick<CommonType, 'className' | 'style' | 'size' | 'status' | 'innerTitle' | 'filterSameChange'>, Pick<AbsoluteListProps, 'absolute' | 'zIndex'>, BaseTipProps {
|
|
114
|
+
export interface SelectPropsBase<DataItem, Value> extends Omit<BaseSelectProps<DataItem, Value>, 'control' | 'filterSameChange'>, Pick<CommonType, 'className' | 'style' | 'size' | 'status' | 'innerTitle' | 'filterSameChange'>, Pick<AbsoluteListProps, 'absolute' | 'zIndex'>, BaseTipProps {
|
|
115
115
|
jssStyle?: JssStyleType;
|
|
116
116
|
/**
|
|
117
117
|
* @en custom empty copy
|
|
@@ -463,5 +463,5 @@ export interface SelectPropsB<DataItem, Value> extends Omit<SelectPropsBase<Data
|
|
|
463
463
|
*/
|
|
464
464
|
childrenKey?: ObjectKey<DataItem>;
|
|
465
465
|
}
|
|
466
|
-
export
|
|
466
|
+
export type SelectProps<DataItem, Value> = SelectPropsA<DataItem, Value> | SelectPropsB<DataItem, Value>;
|
|
467
467
|
//# sourceMappingURL=select.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.type.d.ts","sourceRoot":"","sources":["select.type.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAA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AC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CACnC;AAED,MAAM,MAAM,WAAW,CAAC,QAAQ,EAAE,KAAK,IACnC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,GAC7B,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC"}
|
package/esm/slider/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, "Slider", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function get() {
|
|
11
|
-
return _slider.default;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "default", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _slider.default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
var _slider = _interopRequireDefault(require("./slider"));
|
|
2
|
+
export { default, default as Slider } from "./slider";
|