@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
|
@@ -1,46 +1,38 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var _useInnerTitle = _interopRequireDefault(require("../common/use-inner-title"));
|
|
28
|
-
var _useWithFormConfig = _interopRequireDefault(require("../common/use-with-form-config"));
|
|
29
|
-
var _useTip = _interopRequireDefault(require("../common/use-tip"));
|
|
30
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
|
-
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); }
|
|
32
|
-
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; }
|
|
33
|
-
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; }
|
|
34
|
-
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 { useDatePickerFormat, useInputAble, usePersistFn, usePopup, util } from '@sheinx/hooks';
|
|
14
|
+
import classNames from 'classnames';
|
|
15
|
+
import { AbsoluteList } from "../absolute-list";
|
|
16
|
+
import React, { useEffect } from 'react';
|
|
17
|
+
import AnimationList from "../animation-list";
|
|
18
|
+
import Picker from "./picker";
|
|
19
|
+
import { getLocale, useConfig } from "../config";
|
|
20
|
+
import Icons from "../icons";
|
|
21
|
+
import Result from "./result";
|
|
22
|
+
import useInnerTitle from "../common/use-inner-title";
|
|
23
|
+
import useWithFormConfig from "../common/use-with-form-config";
|
|
24
|
+
import useTip from "../common/use-tip";
|
|
25
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
35
27
|
var verticalPosition = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];
|
|
36
28
|
var horizontalPosition = ['left-top', 'left-bottom', 'right-top', 'right-bottom'];
|
|
37
29
|
var preventDefault = function preventDefault(e) {
|
|
38
30
|
e.preventDefault();
|
|
39
31
|
};
|
|
40
32
|
var DatePicker = function DatePicker(props0) {
|
|
41
|
-
var _jssStyle$datePicker
|
|
42
|
-
var props = (
|
|
43
|
-
var _useConfig =
|
|
33
|
+
var _jssStyle$datePicker;
|
|
34
|
+
var props = useWithFormConfig(props0);
|
|
35
|
+
var _useConfig = useConfig(),
|
|
44
36
|
locale = _useConfig.locale;
|
|
45
37
|
var jssStyle = props.jssStyle,
|
|
46
38
|
range = props.range,
|
|
@@ -52,13 +44,13 @@ var DatePicker = function DatePicker(props0) {
|
|
|
52
44
|
clearable = _props$clearable === void 0 ? true : _props$clearable,
|
|
53
45
|
disabled = props.disabled,
|
|
54
46
|
size = props.size;
|
|
55
|
-
var _React$useState =
|
|
56
|
-
_React$useState2 = (
|
|
47
|
+
var _React$useState = React.useState(-1),
|
|
48
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
57
49
|
activeIndex = _React$useState2[0],
|
|
58
50
|
setActiveIndex = _React$useState2[1];
|
|
59
|
-
var styles = jssStyle === null || jssStyle === void 0
|
|
60
|
-
var _React$useState3 =
|
|
61
|
-
_React$useState4 = (
|
|
51
|
+
var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$datePicker = jssStyle.datePicker) === null || _jssStyle$datePicker === void 0 ? void 0 : _jssStyle$datePicker.call(jssStyle);
|
|
52
|
+
var _React$useState3 = React.useState(false),
|
|
53
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
62
54
|
focused = _React$useState4[0],
|
|
63
55
|
setFocused = _React$useState4[1];
|
|
64
56
|
var listPosition = props.position || 'bottom-left';
|
|
@@ -69,16 +61,16 @@ var DatePicker = function DatePicker(props0) {
|
|
|
69
61
|
}
|
|
70
62
|
var options = {
|
|
71
63
|
timeZone: props.timeZone,
|
|
72
|
-
weekStartsOn:
|
|
64
|
+
weekStartsOn: getLocale(locale, 'startOfWeek')
|
|
73
65
|
};
|
|
74
|
-
var inputAbleResult =
|
|
66
|
+
var inputAbleResult = useInputAble({
|
|
75
67
|
value: props.value,
|
|
76
68
|
defaultValue: props.defaultValue,
|
|
77
69
|
onChange: props.onChange,
|
|
78
70
|
beforeChange: props.beforeChange,
|
|
79
71
|
control: 'value' in props
|
|
80
72
|
});
|
|
81
|
-
var _useDatePickerFormat =
|
|
73
|
+
var _useDatePickerFormat = useDatePickerFormat({
|
|
82
74
|
value: inputAbleResult.value,
|
|
83
75
|
range: props.range,
|
|
84
76
|
onChange: inputAbleResult.onChange,
|
|
@@ -103,16 +95,16 @@ var DatePicker = function DatePicker(props0) {
|
|
|
103
95
|
format = _useDatePickerFormat.format,
|
|
104
96
|
func = _useDatePickerFormat.func,
|
|
105
97
|
disabledStatus = _useDatePickerFormat.disabledStatus;
|
|
106
|
-
var onCollapse =
|
|
98
|
+
var onCollapse = usePersistFn(function (isOpen) {
|
|
107
99
|
var _props$onCollapse;
|
|
108
100
|
if (isOpen) {
|
|
109
101
|
func.startEdit();
|
|
110
102
|
} else {
|
|
111
103
|
func.finishEdit();
|
|
112
104
|
}
|
|
113
|
-
(_props$onCollapse = props.onCollapse) === null || _props$onCollapse === void 0
|
|
105
|
+
(_props$onCollapse = props.onCollapse) === null || _props$onCollapse === void 0 || _props$onCollapse.call(props, isOpen);
|
|
114
106
|
});
|
|
115
|
-
var _usePopup =
|
|
107
|
+
var _usePopup = usePopup({
|
|
116
108
|
open: props.open,
|
|
117
109
|
onCollapse: onCollapse,
|
|
118
110
|
disabled: disabledStatus === 'all',
|
|
@@ -125,7 +117,7 @@ var DatePicker = function DatePicker(props0) {
|
|
|
125
117
|
popupRef = _usePopup.popupRef,
|
|
126
118
|
openPop = _usePopup.openPop,
|
|
127
119
|
closePop = _usePopup.closePop;
|
|
128
|
-
var tipNode = (
|
|
120
|
+
var tipNode = useTip({
|
|
129
121
|
popover: props.popover,
|
|
130
122
|
popoverProps: props.popoverProps,
|
|
131
123
|
error: props.error,
|
|
@@ -135,31 +127,31 @@ var DatePicker = function DatePicker(props0) {
|
|
|
135
127
|
jssStyle: props.jssStyle
|
|
136
128
|
});
|
|
137
129
|
var hasValue = Array.isArray(inputAbleResult.value) ? inputAbleResult.value.filter(Boolean).length > 0 : !!inputAbleResult.value;
|
|
138
|
-
var renderInnerTitle = (
|
|
130
|
+
var renderInnerTitle = useInnerTitle({
|
|
139
131
|
innerTitle: props.innerTitle,
|
|
140
132
|
placeTitle: props.placeTitle,
|
|
141
133
|
open: open || hasValue,
|
|
142
134
|
size: size,
|
|
143
135
|
jssStyle: jssStyle
|
|
144
136
|
});
|
|
145
|
-
var handleFocus =
|
|
137
|
+
var handleFocus = usePersistFn(function (e) {
|
|
146
138
|
var _props$onFocus;
|
|
147
139
|
setFocused(true);
|
|
148
|
-
(_props$onFocus = props.onFocus) === null || _props$onFocus === void 0
|
|
140
|
+
(_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props, e);
|
|
149
141
|
});
|
|
150
|
-
var handleBlur =
|
|
142
|
+
var handleBlur = usePersistFn(function (e) {
|
|
151
143
|
var _props$onBlur;
|
|
152
144
|
setFocused(false);
|
|
153
|
-
(_props$onBlur = props.onBlur) === null || _props$onBlur === void 0
|
|
145
|
+
(_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e);
|
|
154
146
|
});
|
|
155
|
-
var handleResultClick =
|
|
147
|
+
var handleResultClick = usePersistFn(function () {
|
|
156
148
|
if (disabledStatus === 'all') return;
|
|
157
149
|
openPop();
|
|
158
150
|
});
|
|
159
151
|
var renderResult = function renderResult() {
|
|
160
|
-
var result = /*#__PURE__*/(
|
|
161
|
-
className: (
|
|
162
|
-
children: /*#__PURE__*/(
|
|
152
|
+
var result = /*#__PURE__*/_jsx("div", {
|
|
153
|
+
className: classNames(styles === null || styles === void 0 ? void 0 : styles.result, props.align === 'right' && (styles === null || styles === void 0 ? void 0 : styles.resultAlignRight), props.align === 'center' && (styles === null || styles === void 0 ? void 0 : styles.resultAlignCenter), props.align === 'left' && (styles === null || styles === void 0 ? void 0 : styles.resultAlignLeft)),
|
|
154
|
+
children: /*#__PURE__*/_jsx(Result, {
|
|
163
155
|
jssStyle: jssStyle,
|
|
164
156
|
activeIndex: activeIndex,
|
|
165
157
|
type: type,
|
|
@@ -178,8 +170,8 @@ var DatePicker = function DatePicker(props0) {
|
|
|
178
170
|
})
|
|
179
171
|
});
|
|
180
172
|
var canFocus = !(props.inputable || disabledStatus === 'all');
|
|
181
|
-
return /*#__PURE__*/(
|
|
182
|
-
className: (
|
|
173
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
174
|
+
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),
|
|
183
175
|
ref: targetRef,
|
|
184
176
|
tabIndex: canFocus ? 1 : undefined,
|
|
185
177
|
onClick: handleResultClick,
|
|
@@ -198,27 +190,27 @@ var DatePicker = function DatePicker(props0) {
|
|
|
198
190
|
}
|
|
199
191
|
}
|
|
200
192
|
},
|
|
201
|
-
children: [renderInnerTitle(result), disabledStatus !== 'all' && !isEmpty && clearable && /*#__PURE__*/(
|
|
202
|
-
className: (
|
|
193
|
+
children: [renderInnerTitle(result), disabledStatus !== 'all' && !isEmpty && clearable && /*#__PURE__*/_jsx("div", {
|
|
194
|
+
className: classNames(styles === null || styles === void 0 ? void 0 : styles.clear, styles === null || styles === void 0 ? void 0 : styles.icon),
|
|
203
195
|
onClick: func.handleClear,
|
|
204
|
-
children:
|
|
205
|
-
}), /*#__PURE__*/(
|
|
196
|
+
children: Icons.datepicker.Close
|
|
197
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
206
198
|
className: styles === null || styles === void 0 ? void 0 : styles.icon,
|
|
207
|
-
children: props.type === 'time' ?
|
|
199
|
+
children: props.type === 'time' ? Icons.datepicker.Time : Icons.datepicker.Calendar
|
|
208
200
|
})]
|
|
209
201
|
});
|
|
210
202
|
};
|
|
211
|
-
|
|
203
|
+
useEffect(function () {
|
|
212
204
|
if (props.formatResult && props.inputable) {
|
|
213
205
|
console.warn('formatResult and inputable cannot be used at the same time');
|
|
214
206
|
}
|
|
215
207
|
}, []);
|
|
216
|
-
return /*#__PURE__*/(
|
|
217
|
-
className: (
|
|
208
|
+
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({}, util.getDataAttribute(_defineProperty(_defineProperty({}, 'input-border', 'true'), "type", type))), {}, {
|
|
209
|
+
className: classNames(props.className, styles === null || styles === void 0 ? void 0 : styles.wrapper, props.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), focused && (styles === null || styles === void 0 ? void 0 : styles.wrapperFocus), disabledStatus === 'all' && (styles === null || styles === void 0 ? void 0 : styles.wrapperDisabled), (!!props.error || props.status === 'error') && (styles === null || styles === void 0 ? void 0 : styles.wrapperError), range && (styles === null || styles === void 0 ? void 0 : styles.wrapperRange), !border && (styles === null || styles === void 0 ? void 0 : styles.wrapperNoBorder), !!props.underline && (styles === null || styles === void 0 ? void 0 : styles.wrapperUnderline)),
|
|
218
210
|
style: _objectSpread({
|
|
219
211
|
width: props.width
|
|
220
212
|
}, props.style),
|
|
221
|
-
children: [tipNode, renderResult(), /*#__PURE__*/(
|
|
213
|
+
children: [tipNode, renderResult(), /*#__PURE__*/_jsx(AbsoluteList, {
|
|
222
214
|
parentElRef: targetRef,
|
|
223
215
|
popupElRef: popupRef,
|
|
224
216
|
absolute: props.absolute,
|
|
@@ -228,15 +220,15 @@ var DatePicker = function DatePicker(props0) {
|
|
|
228
220
|
fixedWidth: false,
|
|
229
221
|
popupGap: 4,
|
|
230
222
|
adjust: true,
|
|
231
|
-
children: /*#__PURE__*/(
|
|
223
|
+
children: /*#__PURE__*/_jsx(AnimationList, {
|
|
232
224
|
onRef: popupRef,
|
|
233
|
-
className: (
|
|
225
|
+
className: classNames(styles === null || styles === void 0 ? void 0 : styles.pickerWrapper),
|
|
234
226
|
display: 'block',
|
|
235
227
|
type: 'fade',
|
|
236
228
|
duration: 'fast',
|
|
237
229
|
show: open,
|
|
238
230
|
onMouseDown: preventDefault,
|
|
239
|
-
children: /*#__PURE__*/(
|
|
231
|
+
children: /*#__PURE__*/_jsx(Picker, {
|
|
240
232
|
setTargetArr: func.setTargetArr,
|
|
241
233
|
dateArr: dateArr,
|
|
242
234
|
setDateArr: func.setDateArr,
|
|
@@ -268,5 +260,4 @@ var DatePicker = function DatePicker(props0) {
|
|
|
268
260
|
})]
|
|
269
261
|
}));
|
|
270
262
|
};
|
|
271
|
-
|
|
272
|
-
exports.default = _default;
|
|
263
|
+
export default DatePicker;
|
|
@@ -7,7 +7,7 @@ import { BaseTipProps } from '../common/use-tip';
|
|
|
7
7
|
import { PopoverClasses } from '../popover/popover.type';
|
|
8
8
|
import type { DatePickerValueType, DateTimeType } from '@sheinx/hooks';
|
|
9
9
|
export type { DateTimeType, DatePickerValueType, DatePickerModeType } from '@sheinx/hooks';
|
|
10
|
-
export
|
|
10
|
+
export type AreaType = 'year' | 'month' | 'week' | 'day' | 'time' | 'quick' | 'quarter';
|
|
11
11
|
export interface DatePickerClasses {
|
|
12
12
|
/**
|
|
13
13
|
* 最外层class
|
|
@@ -81,7 +81,7 @@ export interface DatePickerClasses {
|
|
|
81
81
|
quickPicker: string;
|
|
82
82
|
quickPickerItem: string;
|
|
83
83
|
}
|
|
84
|
-
export
|
|
84
|
+
export type DisabledType = 'start' | 'end';
|
|
85
85
|
interface DatePickerJssStyle {
|
|
86
86
|
datePicker?: () => DatePickerClasses;
|
|
87
87
|
button?: () => ButtonClasses;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.type.d.ts","sourceRoot":"","sources":["date-picker.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvE,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC3F,
|
|
1
|
+
{"version":3,"file":"date-picker.type.d.ts","sourceRoot":"","sources":["date-picker.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EA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,EAAE,mBAAmB,GAAG,CAAC,MAAM,mBAAmB,CAAC,CAAC;CAC1D"}
|
package/esm/date-picker/day.js
CHANGED
|
@@ -1,45 +1,35 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _hooks = require("@sheinx/hooks");
|
|
19
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
20
|
-
var _icons = _interopRequireDefault(require("../icons"));
|
|
21
|
-
var _config = require("../config");
|
|
22
|
-
var _time = _interopRequireDefault(require("./time"));
|
|
23
|
-
var _button = _interopRequireDefault(require("../button"));
|
|
24
|
-
var _pickerTitle = _interopRequireDefault(require("./pickerTitle"));
|
|
25
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
|
-
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; }
|
|
27
|
-
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
|
+
import React from 'react';
|
|
8
|
+
import { dateUtil, useDatePick, usePersistFn } from '@sheinx/hooks';
|
|
9
|
+
import classNames from 'classnames';
|
|
10
|
+
import Icons from "../icons";
|
|
11
|
+
import { getLocale, useConfig } from "../config";
|
|
12
|
+
import TimePicker from "./time";
|
|
13
|
+
import Button from "../button";
|
|
14
|
+
import PickerTitle from "./pickerTitle";
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
18
|
var Day = function Day(props) {
|
|
29
19
|
var _jssStyle$datePicker;
|
|
30
20
|
var jssStyle = props.jssStyle;
|
|
31
|
-
var _useConfig =
|
|
21
|
+
var _useConfig = useConfig(),
|
|
32
22
|
locale = _useConfig.locale;
|
|
33
|
-
var styles = jssStyle === null || jssStyle === void 0
|
|
23
|
+
var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$datePicker = jssStyle.datePicker) === null || _jssStyle$datePicker === void 0 ? void 0 : _jssStyle$datePicker.call(jssStyle);
|
|
34
24
|
var areaType = props.type === 'week' ? 'week' : 'day';
|
|
35
|
-
var onChange =
|
|
25
|
+
var onChange = usePersistFn(function (date) {
|
|
36
26
|
props.onChange(date, props.type === 'datetime');
|
|
37
27
|
props.setTarget(undefined);
|
|
38
28
|
});
|
|
39
|
-
var setCurrent =
|
|
29
|
+
var setCurrent = usePersistFn(function (date) {
|
|
40
30
|
props.setCurrent(date, areaType);
|
|
41
31
|
});
|
|
42
|
-
var _useDatePick =
|
|
32
|
+
var _useDatePick = useDatePick({
|
|
43
33
|
current: props.current,
|
|
44
34
|
onCurrentChange: setCurrent,
|
|
45
35
|
value: props.value,
|
|
@@ -71,14 +61,14 @@ var Day = function Day(props) {
|
|
|
71
61
|
var isDisabled = func.isDisabled(item);
|
|
72
62
|
var isToday = func.isToday(item);
|
|
73
63
|
var isInRange = func.isInRange(item);
|
|
74
|
-
return /*#__PURE__*/(
|
|
75
|
-
className: (
|
|
64
|
+
return /*#__PURE__*/_jsx("td", {
|
|
65
|
+
className: classNames(styles === null || styles === void 0 ? void 0 : styles.pickerCell, isActive && (styles === null || styles === void 0 ? void 0 : styles.pickerCellActive), !isCurrentMonth && (styles === null || styles === void 0 ? void 0 : styles.pickerCellBound), isDisabled && (styles === null || styles === void 0 ? void 0 : styles.pickerCellDisabled), isToday && (styles === null || styles === void 0 ? void 0 : styles.pickerCellToday), isInRange && (styles === null || styles === void 0 ? void 0 : styles.pickerCellInRange), (isInRange === 'start' || isInRange === 'start-end') && props.position === 'start' && (styles === null || styles === void 0 ? void 0 : styles.pickerCellInRangeStart), (isInRange === 'end' || isInRange === 'start-end') && props.position === 'end' && (styles === null || styles === void 0 ? void 0 : styles.pickerCellInRangeEnd)),
|
|
76
66
|
onClick: function onClick() {
|
|
77
67
|
return func.handleDayClick(item);
|
|
78
68
|
},
|
|
79
69
|
onDoubleClick: function onDoubleClick() {
|
|
80
70
|
var _props$onDoubleClick;
|
|
81
|
-
(_props$onDoubleClick = props.onDoubleClick) === null || _props$onDoubleClick === void 0
|
|
71
|
+
(_props$onDoubleClick = props.onDoubleClick) === null || _props$onDoubleClick === void 0 || _props$onDoubleClick.call(props, item, areaType);
|
|
82
72
|
},
|
|
83
73
|
onMouseEnter: isDisabled ? undefined : function () {
|
|
84
74
|
props.setTarget(func.getDateWithTime(item));
|
|
@@ -86,15 +76,15 @@ var Day = function Day(props) {
|
|
|
86
76
|
onMouseLeave: isDisabled ? undefined : function () {
|
|
87
77
|
props.setTarget(undefined);
|
|
88
78
|
},
|
|
89
|
-
children: /*#__PURE__*/(
|
|
79
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
90
80
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerCellContent,
|
|
91
|
-
children: /*#__PURE__*/(
|
|
81
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
92
82
|
children: func.getDayStr(item)
|
|
93
83
|
})
|
|
94
84
|
})
|
|
95
85
|
}, index);
|
|
96
86
|
};
|
|
97
|
-
var weeks =
|
|
87
|
+
var weeks = getLocale(locale, 'weekdayValues.narrow');
|
|
98
88
|
var weekDays = Array.from({
|
|
99
89
|
length: 7
|
|
100
90
|
}).map(function (_, index) {
|
|
@@ -105,12 +95,12 @@ var Day = function Day(props) {
|
|
|
105
95
|
if (props.type !== 'week') {
|
|
106
96
|
return;
|
|
107
97
|
}
|
|
108
|
-
return /*#__PURE__*/(
|
|
98
|
+
return /*#__PURE__*/_jsx("th", {
|
|
109
99
|
onClick: function onClick() {
|
|
110
100
|
return func.handleDayClick(item);
|
|
111
101
|
},
|
|
112
|
-
className: (
|
|
113
|
-
children: /*#__PURE__*/(
|
|
102
|
+
className: classNames(styles === null || styles === void 0 ? void 0 : styles.pickerCell, styles === null || styles === void 0 ? void 0 : styles.pickerCellBound),
|
|
103
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
114
104
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerCellContent,
|
|
115
105
|
children: func.getWeekStr(item)
|
|
116
106
|
})
|
|
@@ -123,115 +113,115 @@ var Day = function Day(props) {
|
|
|
123
113
|
var timeStr = func.getTimeStr();
|
|
124
114
|
if (!showLeft && !props.showSelNow) return null;
|
|
125
115
|
var format = props.format;
|
|
126
|
-
if (/^[X|x]$/.test(
|
|
116
|
+
if (/^[X|x]$/.test(dateUtil.compatibleFmt(format))) {
|
|
127
117
|
format = 'HH:mm:ss';
|
|
128
118
|
} else {
|
|
129
119
|
var match = format.match(/[H|h].*/);
|
|
130
120
|
// eslint-disable-next-line
|
|
131
121
|
if (match) format = match[0];
|
|
132
122
|
}
|
|
133
|
-
return /*#__PURE__*/(
|
|
123
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
134
124
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooter,
|
|
135
|
-
children: [props.type === 'datetime' && /*#__PURE__*/(
|
|
136
|
-
className: (
|
|
137
|
-
children: timeStr && /*#__PURE__*/(
|
|
138
|
-
children: [/*#__PURE__*/(
|
|
139
|
-
children:
|
|
140
|
-
}), /*#__PURE__*/(
|
|
125
|
+
children: [props.type === 'datetime' && /*#__PURE__*/_jsx("div", {
|
|
126
|
+
className: classNames(styles === null || styles === void 0 ? void 0 : styles.pickerFooterLeft, styles === null || styles === void 0 ? void 0 : styles.datetime),
|
|
127
|
+
children: timeStr && /*#__PURE__*/_jsxs(_Fragment, {
|
|
128
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
129
|
+
children: Icons.datepicker.Time
|
|
130
|
+
}), /*#__PURE__*/_jsx(TimePicker, _objectSpread(_objectSpread({}, props), {}, {
|
|
141
131
|
showSelNow: false,
|
|
142
132
|
showTitle: false,
|
|
143
133
|
format: format
|
|
144
|
-
})), /*#__PURE__*/(
|
|
134
|
+
})), /*#__PURE__*/_jsx("span", {
|
|
145
135
|
children: func.getTimeStr()
|
|
146
136
|
})]
|
|
147
137
|
})
|
|
148
|
-
}), showRight && /*#__PURE__*/(
|
|
138
|
+
}), showRight && /*#__PURE__*/_jsxs("div", {
|
|
149
139
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooterRight,
|
|
150
|
-
children: [props.showSelNow && props.type === 'date' && /*#__PURE__*/(
|
|
140
|
+
children: [props.showSelNow && props.type === 'date' && /*#__PURE__*/_jsx(Button, {
|
|
151
141
|
size: 'small',
|
|
152
142
|
jssStyle: jssStyle,
|
|
153
143
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooterBtn,
|
|
154
144
|
onClick: selNow,
|
|
155
|
-
children:
|
|
156
|
-
}), props.showSelNow && props.type === 'datetime' && /*#__PURE__*/(
|
|
145
|
+
children: getLocale(locale, 'now')
|
|
146
|
+
}), props.showSelNow && props.type === 'datetime' && /*#__PURE__*/_jsx(Button, {
|
|
157
147
|
size: 'small',
|
|
158
148
|
jssStyle: jssStyle,
|
|
159
149
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooterBtn,
|
|
160
150
|
onClick: selNow,
|
|
161
|
-
children:
|
|
151
|
+
children: getLocale(locale, 'current')
|
|
162
152
|
})]
|
|
163
153
|
})]
|
|
164
154
|
});
|
|
165
155
|
};
|
|
166
|
-
return /*#__PURE__*/(
|
|
167
|
-
className: (
|
|
156
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
157
|
+
className: classNames(props.type === 'week' ? styles === null || styles === void 0 ? void 0 : styles.weekPicker : styles === null || styles === void 0 ? void 0 : styles.dayPicker, styles === null || styles === void 0 ? void 0 : styles.picker),
|
|
168
158
|
onMouseEnter: props.onMouseEnter,
|
|
169
159
|
onMouseLeave: props.onMouseLeave,
|
|
170
|
-
children: [/*#__PURE__*/(
|
|
160
|
+
children: [/*#__PURE__*/_jsx(PickerTitle, {
|
|
171
161
|
position: props.position,
|
|
172
162
|
jssStyle: jssStyle
|
|
173
|
-
}), /*#__PURE__*/(
|
|
163
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
174
164
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerHeader,
|
|
175
|
-
children: [/*#__PURE__*/(
|
|
165
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
176
166
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderLeft,
|
|
177
|
-
children: [/*#__PURE__*/(
|
|
167
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
178
168
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderIcon,
|
|
179
169
|
onClick: func.handlePrevYear,
|
|
180
|
-
children:
|
|
181
|
-
}), /*#__PURE__*/(
|
|
170
|
+
children: Icons.datepicker.ArrowDoubleLeft
|
|
171
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
182
172
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderIcon,
|
|
183
173
|
onClick: func.handlePrevMonth,
|
|
184
|
-
children:
|
|
174
|
+
children: Icons.datepicker.ArrowLeft
|
|
185
175
|
})]
|
|
186
|
-
}), /*#__PURE__*/(
|
|
176
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
187
177
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderMid,
|
|
188
|
-
children: [/*#__PURE__*/(
|
|
178
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
189
179
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderInfo,
|
|
190
180
|
onClick: function onClick() {
|
|
191
181
|
props.setMode('year');
|
|
192
182
|
},
|
|
193
183
|
children: currentYear
|
|
194
|
-
}), /*#__PURE__*/(
|
|
184
|
+
}), /*#__PURE__*/_jsx("i", {
|
|
195
185
|
children: "-"
|
|
196
|
-
}), /*#__PURE__*/(
|
|
186
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
197
187
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderInfo,
|
|
198
188
|
onClick: function onClick() {
|
|
199
189
|
props.setMode('month');
|
|
200
190
|
},
|
|
201
191
|
children: currentMonth
|
|
202
192
|
})]
|
|
203
|
-
}), /*#__PURE__*/(
|
|
193
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
204
194
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderRight,
|
|
205
|
-
children: [/*#__PURE__*/(
|
|
195
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
206
196
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderIcon,
|
|
207
197
|
onClick: func.handleNextMonth,
|
|
208
|
-
children:
|
|
209
|
-
}), /*#__PURE__*/(
|
|
198
|
+
children: Icons.datepicker.ArrowRight
|
|
199
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
210
200
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderIcon,
|
|
211
201
|
onClick: func.handleNextYear,
|
|
212
|
-
children:
|
|
202
|
+
children: Icons.datepicker.ArrowDoubleRight
|
|
213
203
|
})]
|
|
214
204
|
})]
|
|
215
|
-
}), /*#__PURE__*/(
|
|
205
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
216
206
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerBody,
|
|
217
|
-
children: /*#__PURE__*/(
|
|
218
|
-
children: [/*#__PURE__*/(
|
|
219
|
-
children: /*#__PURE__*/(
|
|
220
|
-
children: [props.type === 'week' && /*#__PURE__*/(
|
|
221
|
-
children:
|
|
207
|
+
children: /*#__PURE__*/_jsxs("table", {
|
|
208
|
+
children: [/*#__PURE__*/_jsx("thead", {
|
|
209
|
+
children: /*#__PURE__*/_jsxs("tr", {
|
|
210
|
+
children: [props.type === 'week' && /*#__PURE__*/_jsx("th", {
|
|
211
|
+
children: getLocale(locale, 'weekShort')
|
|
222
212
|
}), weekDays.map(function (item, index) {
|
|
223
|
-
return /*#__PURE__*/(
|
|
213
|
+
return /*#__PURE__*/_jsx("th", {
|
|
224
214
|
children: item
|
|
225
215
|
}, index);
|
|
226
216
|
})]
|
|
227
217
|
})
|
|
228
|
-
}), /*#__PURE__*/(
|
|
218
|
+
}), /*#__PURE__*/_jsx("tbody", {
|
|
229
219
|
children: Array.from({
|
|
230
220
|
length: len
|
|
231
221
|
}).map(function (_, index) {
|
|
232
222
|
var start = index * 7;
|
|
233
|
-
return /*#__PURE__*/(
|
|
234
|
-
className: (
|
|
223
|
+
return /*#__PURE__*/_jsxs("tr", {
|
|
224
|
+
className: classNames(styles === null || styles === void 0 ? void 0 : styles.pickerRow, props.type === 'week' && (styles === null || styles === void 0 ? void 0 : styles.pickerRowWeek)),
|
|
235
225
|
children: [renderWeek(days[start + 3]), days.slice(start, start + 7).map(function (item, index) {
|
|
236
226
|
return renderDay(item, index);
|
|
237
227
|
})]
|
|
@@ -242,5 +232,4 @@ var Day = function Day(props) {
|
|
|
242
232
|
}), renderFooter()]
|
|
243
233
|
});
|
|
244
234
|
};
|
|
245
|
-
|
|
246
|
-
exports.default = _default;
|
|
235
|
+
export default Day;
|