@fibrae/semi-foundation 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -18
- package/README.zh-CN.md +20 -18
- package/dist/base/auto-close-foundation.d.ts +3 -10
- package/dist/base/auto-close-foundation.js +21 -42
- package/dist/base/constants.d.ts +1 -0
- package/dist/base/focus-handle.js +2 -2
- package/dist/base/focus-scope.js +1 -20
- package/dist/base/foundation.d.ts +0 -1
- package/dist/base/hook-api.d.ts +21 -0
- package/dist/base/hook-api.js +20 -0
- package/dist/base/index.d.ts +15 -0
- package/dist/base/index.js +15 -0
- package/dist/base/list-store.d.ts +53 -13
- package/dist/base/list-store.js +126 -48
- package/dist/base/modal-resources.js +1 -1
- package/dist/base/overlay-session.d.ts +16 -0
- package/dist/base/overlay-session.js +36 -0
- package/dist/base/static-list-wrapper.d.ts +6 -1
- package/dist/base/static-list-wrapper.js +12 -3
- package/dist/components/anchor/anchor.css +0 -4
- package/dist/components/anchor/anchor.scss +0 -3
- package/dist/components/anchor/foundation.d.ts +10 -2
- package/dist/components/anchor/foundation.js +45 -6
- package/dist/components/audio-player/audio-player.css +1 -1
- package/dist/components/audio-player/audio-player.scss +3 -1
- package/dist/components/audio-player/foundation.d.ts +7 -5
- package/dist/components/audio-player/foundation.js +5 -1
- package/dist/components/auto-complete/auto-complete.css +0 -4
- package/dist/components/auto-complete/auto-complete.scss +0 -2
- package/dist/components/auto-complete/constants.d.ts +3 -1
- package/dist/components/auto-complete/foundation.d.ts +5 -7
- package/dist/components/auto-complete/foundation.js +32 -28
- package/dist/components/avatar/avatar.css +1 -4
- package/dist/components/avatar/avatar.scss +1 -3
- package/dist/components/avatar/foundation.d.ts +3 -0
- package/dist/components/avatar/foundation.js +6 -2
- package/dist/components/backtop/backtop.css +0 -4
- package/dist/components/backtop/backtop.scss +0 -3
- package/dist/components/backtop/constants.d.ts +4 -0
- package/dist/components/backtop/constants.js +5 -1
- package/dist/components/backtop/foundation.d.ts +1 -0
- package/dist/components/backtop/foundation.js +7 -3
- package/dist/components/badge/badge.css +1 -4
- package/dist/components/badge/badge.scss +1 -3
- package/dist/components/badge/constants.d.ts +3 -1
- package/dist/components/banner/banner.css +0 -4
- package/dist/components/banner/banner.scss +0 -3
- package/dist/components/banner/foundation.d.ts +1 -0
- package/dist/components/breadcrumb/breadcrumb.css +9 -8
- package/dist/components/breadcrumb/breadcrumb.scss +10 -6
- package/dist/components/breadcrumb/foundation.d.ts +1 -0
- package/dist/components/breadcrumb/item-foundation.d.ts +3 -1
- package/dist/components/breadcrumb/item-foundation.js +1 -1
- package/dist/components/button/button.css +0 -9
- package/dist/components/button/constants.d.ts +3 -1
- package/dist/components/button/icon-button.css +0 -10
- package/dist/components/button/icon-button.scss +0 -1
- package/dist/components/button/rtl.scss +0 -7
- package/dist/components/calendar/calendar.css +0 -6
- package/dist/components/calendar/calendar.scss +0 -3
- package/dist/components/calendar/event-util.d.ts +3 -3
- package/dist/components/calendar/foundation.d.ts +15 -7
- package/dist/components/calendar/foundation.js +28 -17
- package/dist/components/calendar/month-foundation.d.ts +7 -2
- package/dist/components/calendar/month-foundation.js +11 -3
- package/dist/components/card/card.css +0 -14
- package/dist/components/card/card.scss +0 -3
- package/dist/components/card/constants.d.ts +3 -1
- package/dist/components/carousel/carousel.css +0 -4
- package/dist/components/carousel/foundation.d.ts +4 -1
- package/dist/components/carousel/foundation.js +20 -8
- package/dist/components/carousel/rtl.scss +0 -4
- package/dist/components/cascader/cascader.css +1 -6
- package/dist/components/cascader/cascader.scss +1 -1
- package/dist/components/cascader/constants.d.ts +2 -0
- package/dist/components/cascader/foundation.d.ts +8 -7
- package/dist/components/cascader/foundation.js +16 -7
- package/dist/components/cascader/rtl.scss +0 -5
- package/dist/components/cascader/util.d.ts +2 -2
- package/dist/components/cascader/util.js +2 -2
- package/dist/components/checkbox/checkbox-foundation.d.ts +4 -4
- package/dist/components/checkbox/checkbox-foundation.js +3 -1
- package/dist/components/checkbox/checkbox-group-foundation.d.ts +5 -0
- package/dist/components/checkbox/checkbox-group-foundation.js +4 -0
- package/dist/components/checkbox/checkbox.css +0 -5
- package/dist/components/checkbox/checkbox.scss +0 -3
- package/dist/components/code-highlight/code-highlight.css +1 -1
- package/dist/components/code-highlight/code-highlight.scss +1 -1
- package/dist/components/code-highlight/index.d.ts +2 -0
- package/dist/components/code-highlight/index.js +3 -0
- package/dist/components/collapse/collapse.css +1 -4
- package/dist/components/collapse/collapse.scss +1 -3
- package/dist/components/collapse/foundation.d.ts +1 -0
- package/dist/components/collapsible/foundation.d.ts +1 -0
- package/dist/components/color-picker/color-choose-area-foundation.d.ts +1 -0
- package/dist/components/color-picker/color-picker.css +1 -3
- package/dist/components/color-picker/color-picker.scss +1 -3
- package/dist/components/color-picker/color-slider-foundation.d.ts +1 -0
- package/dist/components/color-picker/data-part-foundation.d.ts +2 -1
- package/dist/components/color-picker/data-part-foundation.js +1 -1
- package/dist/components/color-picker/foundation.d.ts +9 -1
- package/dist/components/color-picker/foundation.js +20 -5
- package/dist/components/color-picker/utils/round.js +1 -1
- package/dist/components/config-provider/inherit-config.d.ts +5 -2
- package/dist/components/config-provider/inherit-config.js +1 -0
- package/dist/components/config-provider/responsive-types.d.ts +0 -3
- package/dist/components/cropper/constants.d.ts +2 -0
- package/dist/components/cropper/cropper.css +20 -22
- package/dist/components/cropper/cropper.scss +21 -23
- package/dist/components/cropper/foundation.d.ts +2 -15
- package/dist/components/cropper/foundation.js +139 -132
- package/dist/components/cropper/utils.d.ts +0 -1
- package/dist/components/cropper/utils.js +0 -1
- package/dist/components/date-picker/_utils/get-default-picker-date.d.ts +6 -4
- package/dist/components/date-picker/_utils/get-default-picker-date.js +12 -27
- package/dist/components/date-picker/_utils/index.d.ts +3 -4
- package/dist/components/date-picker/_utils/index.js +2 -3
- package/dist/components/date-picker/_utils/is-timestamp.js +1 -1
- package/dist/components/date-picker/_utils/parse-value.d.ts +13 -0
- package/dist/components/date-picker/_utils/parse-value.js +21 -0
- package/dist/components/date-picker/_utils/parser.d.ts +1 -0
- package/dist/components/date-picker/_utils/parser.js +5 -7
- package/dist/components/date-picker/_utils/picker-type.js +1 -1
- package/dist/components/date-picker/_utils/to-callback-args.d.ts +2 -5
- package/dist/components/date-picker/_utils/to-callback-args.js +4 -9
- package/dist/components/date-picker/constants.d.ts +2 -0
- package/dist/components/date-picker/constants.js +1 -1
- package/dist/components/date-picker/date-picker.css +0 -4
- package/dist/components/date-picker/foundation.d.ts +16 -26
- package/dist/components/date-picker/foundation.js +49 -42
- package/dist/components/date-picker/input-foundation.d.ts +11 -6
- package/dist/components/date-picker/input-foundation.js +13 -13
- package/dist/components/date-picker/month-foundation.d.ts +23 -8
- package/dist/components/date-picker/month-foundation.js +49 -10
- package/dist/components/date-picker/months-grid-foundation.d.ts +12 -10
- package/dist/components/date-picker/months-grid-foundation.js +60 -31
- package/dist/components/date-picker/rtl.scss +0 -4
- package/dist/components/date-picker/year-and-month-foundation.d.ts +2 -6
- package/dist/components/date-picker/year-and-month-foundation.js +5 -8
- package/dist/components/descriptions/constants.d.ts +3 -1
- package/dist/components/descriptions/descriptions.css +0 -4
- package/dist/components/descriptions/descriptions.scss +0 -3
- package/dist/components/divider/constants.d.ts +1 -1
- package/dist/components/divider/constants.js +1 -1
- package/dist/components/drag-move/foundation.d.ts +1 -0
- package/dist/components/dropdown/constants.d.ts +2 -0
- package/dist/components/dropdown/dropdown.css +0 -4
- package/dist/components/dropdown/dropdown.scss +0 -3
- package/dist/components/dropdown/foundation.d.ts +13 -0
- package/dist/components/dropdown/foundation.js +18 -7
- package/dist/components/dropdown/menu-foundation.d.ts +2 -1
- package/dist/components/dropdown/menu-foundation.js +2 -2
- package/dist/components/empty/constants.d.ts +3 -1
- package/dist/components/empty/empty.css +0 -4
- package/dist/components/empty/empty.scss +0 -3
- package/dist/components/feedback/constants.d.ts +3 -1
- package/dist/components/feedback/foundation.d.ts +9 -0
- package/dist/components/feedback/foundation.js +9 -0
- package/dist/components/float-button/float-button.css +2 -2
- package/dist/components/float-button/float-button.scss +2 -5
- package/dist/components/form/array-field-rows.d.ts +37 -8
- package/dist/components/form/array-field-rows.js +72 -18
- package/dist/components/form/errors.d.ts +3 -1
- package/dist/components/form/errors.js +5 -1
- package/dist/components/form/form.css +0 -10
- package/dist/components/form/form.scss +0 -7
- package/dist/components/form/foundation.d.ts +7 -2
- package/dist/components/form/foundation.js +14 -2
- package/dist/components/form/interface.d.ts +9 -2
- package/dist/components/form/utils.d.ts +54 -1
- package/dist/components/form/utils.js +43 -5
- package/dist/components/grid/grid.css +88 -4154
- package/dist/components/grid/grid.scss +32 -59
- package/dist/components/grid/gutter.d.ts +1 -1
- package/dist/components/grid/mixin.scss +20 -101
- package/dist/components/grid/utils.d.ts +8 -4
- package/dist/components/grid/utils.js +40 -27
- package/dist/components/grid/variables.scss +0 -1
- package/dist/components/highlight/constants.d.ts +3 -1
- package/dist/components/highlight/foundation.d.ts +7 -4
- package/dist/components/highlight/foundation.js +9 -7
- package/dist/components/hot-keys/foundation.d.ts +1 -0
- package/dist/components/image/constants.d.ts +5 -1
- package/dist/components/image/image-foundation.d.ts +1 -0
- package/dist/components/image/image.css +0 -6
- package/dist/components/image/preview-footer-foundation.d.ts +1 -0
- package/dist/components/image/preview-foundation.d.ts +1 -0
- package/dist/components/image/preview-image-foundation.d.ts +1 -0
- package/dist/components/image/preview-inner-foundation.d.ts +9 -6
- package/dist/components/image/preview-inner-foundation.js +59 -44
- package/dist/components/image/rtl.scss +0 -6
- package/dist/components/input/constants.d.ts +5 -1
- package/dist/components/input/foundation.d.ts +22 -2
- package/dist/components/input/foundation.js +26 -1
- package/dist/components/input/input.css +0 -18
- package/dist/components/input/input.scss +0 -17
- package/dist/components/input/text-entry-foundation.d.ts +8 -1
- package/dist/components/input/text-entry-foundation.js +13 -1
- package/dist/components/input/textarea-foundation.d.ts +23 -5
- package/dist/components/input/textarea-foundation.js +30 -6
- package/dist/components/input/textarea.css +0 -6
- package/dist/components/input/textarea.scss +0 -3
- package/dist/components/input/variables.scss +0 -3
- package/dist/components/input-number/constants.d.ts +3 -1
- package/dist/components/input-number/foundation.d.ts +1 -0
- package/dist/components/input-number/foundation.js +2 -2
- package/dist/components/input-number/input-number.css +0 -4
- package/dist/components/input-number/input-number.scss +0 -3
- package/dist/components/json-viewer/foundation.d.ts +10 -5
- package/dist/components/json-viewer/foundation.js +38 -23
- package/dist/components/layout/layout.css +0 -4
- package/dist/components/layout/layout.scss +0 -3
- package/dist/components/list/list.css +0 -5
- package/dist/components/list/list.scss +0 -3
- package/dist/components/lottie/foundation.d.ts +2 -2
- package/dist/components/lottie/foundation.js +23 -7
- package/dist/components/markdown-render/foundation.d.ts +2 -2
- package/dist/components/markdown-render/foundation.js +5 -2
- package/dist/components/markdown-render/markdown-render.css +2 -1
- package/dist/components/markdown-render/markdown-render.scss +2 -1
- package/dist/components/modal/confirm-instance.d.ts +28 -0
- package/dist/components/modal/confirm-instance.js +54 -0
- package/dist/components/modal/constants.d.ts +3 -1
- package/dist/components/modal/modal-content-foundation.d.ts +5 -5
- package/dist/components/modal/modal-content-foundation.js +6 -4
- package/dist/components/modal/modal-foundation.d.ts +3 -4
- package/dist/components/modal/modal-foundation.js +9 -18
- package/dist/components/modal/modal.css +0 -4
- package/dist/components/modal/modal.scss +0 -3
- package/dist/components/navigation/constants.d.ts +4 -0
- package/dist/components/navigation/foundation.d.ts +12 -4
- package/dist/components/navigation/foundation.js +19 -15
- package/dist/components/navigation/item-foundation.d.ts +14 -4
- package/dist/components/navigation/item-foundation.js +23 -10
- package/dist/components/navigation/navigation.css +0 -4
- package/dist/components/navigation/rtl.scss +0 -4
- package/dist/components/navigation/sub-nav-foundation.d.ts +1 -0
- package/dist/components/notification/constants.d.ts +1 -4
- package/dist/components/notification/constants.js +1 -6
- package/dist/components/notification/notification-api-foundation.d.ts +4 -2
- package/dist/components/notification/notification-api-foundation.js +14 -4
- package/dist/components/notification/notification-foundation.d.ts +1 -0
- package/dist/components/notification/notification-list-foundation.d.ts +14 -51
- package/dist/components/notification/notification-list-foundation.js +7 -63
- package/dist/components/notification/notification.css +0 -4
- package/dist/components/notification/notification.scss +0 -3
- package/dist/components/overflow-list/constants.d.ts +2 -0
- package/dist/components/overflow-list/foundation.d.ts +27 -15
- package/dist/components/overflow-list/foundation.js +105 -31
- package/dist/components/overflow-list/overflow-list.css +0 -4
- package/dist/components/overflow-list/overflow-list.scss +0 -3
- package/dist/components/pagination/foundation.d.ts +20 -2
- package/dist/components/pagination/foundation.js +32 -4
- package/dist/components/pagination/pagination.css +0 -4
- package/dist/components/pagination/rtl.scss +0 -4
- package/dist/components/pincode/foundation.d.ts +9 -2
- package/dist/components/pincode/foundation.js +11 -5
- package/dist/components/pincode/pincode.css +6 -8
- package/dist/components/pincode/pincode.scss +6 -9
- package/dist/components/popconfirm/constants.d.ts +3 -1
- package/dist/components/popconfirm/popconfirm-foundation.d.ts +4 -1
- package/dist/components/popconfirm/popconfirm-foundation.js +2 -1
- package/dist/components/popconfirm/popconfirm.css +0 -4
- package/dist/components/popconfirm/rtl.scss +0 -4
- package/dist/components/popover/constants.d.ts +2 -0
- package/dist/components/popover/popover.css +1 -4
- package/dist/components/popover/popover.scss +0 -2
- package/dist/components/progress/progress.css +2 -4
- package/dist/components/progress/progress.scss +2 -0
- package/dist/components/progress/rtl.scss +0 -4
- package/dist/components/radio/constants.d.ts +3 -1
- package/dist/components/radio/radio-foundation.d.ts +3 -5
- package/dist/components/radio/radio-foundation.js +3 -5
- package/dist/components/radio/radio-group-foundation.d.ts +6 -0
- package/dist/components/radio/radio-group-foundation.js +7 -0
- package/dist/components/radio/radio.css +0 -5
- package/dist/components/radio/radio.scss +0 -3
- package/dist/components/rating/foundation.d.ts +6 -0
- package/dist/components/rating/foundation.js +7 -2
- package/dist/components/rating/rating.css +0 -4
- package/dist/components/rating/rating.scss +0 -3
- package/dist/components/resizable/group/index.d.ts +1 -0
- package/dist/components/resizable/group/index.js +11 -1
- package/dist/components/resizable/resizable.css +6 -0
- package/dist/components/resizable/resizable.scss +3 -0
- package/dist/components/resizable/single/index.d.ts +1 -0
- package/dist/components/resizable/utils.js +1 -1
- package/dist/components/scroll-list/item-foundation.d.ts +17 -5
- package/dist/components/scroll-list/item-foundation.js +44 -29
- package/dist/components/scroll-list/scroll-list.css +0 -4
- package/dist/components/scroll-list/scroll-list.scss +0 -3
- package/dist/components/select/constants.d.ts +2 -0
- package/dist/components/select/constants.js +1 -1
- package/dist/components/select/foundation.d.ts +34 -11
- package/dist/components/select/foundation.js +126 -85
- package/dist/components/select/select.css +4 -7
- package/dist/components/select/select.scss +10 -5
- package/dist/components/side-sheet/constants.d.ts +2 -0
- package/dist/components/side-sheet/side-sheet-foundation.d.ts +10 -7
- package/dist/components/side-sheet/side-sheet-foundation.js +40 -30
- package/dist/components/side-sheet/side-sheet.css +0 -4
- package/dist/components/side-sheet/side-sheet.scss +0 -3
- package/dist/components/skeleton/skeleton.css +0 -4
- package/dist/components/skeleton/skeleton.scss +0 -3
- package/dist/components/slider/constants.d.ts +3 -1
- package/dist/components/slider/foundation.d.ts +39 -6
- package/dist/components/slider/foundation.js +56 -11
- package/dist/components/slider/rtl.scss +0 -2
- package/dist/components/slider/slider.css +2 -4
- package/dist/components/slider/slider.scss +2 -0
- package/dist/components/space/space.css +0 -4
- package/dist/components/space/space.scss +0 -3
- package/dist/components/spin/constants.d.ts +3 -1
- package/dist/components/spin/foundation.d.ts +1 -0
- package/dist/components/spin/foundation.js +1 -1
- package/dist/components/spin/spin.css +0 -5
- package/dist/components/spin/spin.scss +0 -3
- package/dist/components/steps/fill-steps.css +1 -1
- package/dist/components/steps/fill-steps.scss +1 -1
- package/dist/components/steps/steps.css +1 -7
- package/dist/components/steps/steps.scss +0 -2
- package/dist/components/switch/foundation.d.ts +1 -0
- package/dist/components/switch/rtl.scss +0 -4
- package/dist/components/switch/switch.css +0 -4
- package/dist/components/table/constants.d.ts +2 -0
- package/dist/components/table/foundation.d.ts +4 -3
- package/dist/components/table/foundation.js +40 -47
- package/dist/components/table/rtl.scss +0 -5
- package/dist/components/table/table.css +1 -6
- package/dist/components/table/table.scss +2 -1
- package/dist/components/table/utils.d.ts +59 -7
- package/dist/components/table/utils.js +90 -9
- package/dist/components/tabs/constants.d.ts +2 -0
- package/dist/components/tabs/foundation.d.ts +1 -9
- package/dist/components/tabs/foundation.js +21 -90
- package/dist/components/tabs/rtl.scss +0 -4
- package/dist/components/tabs/tab-bar-foundation.d.ts +45 -0
- package/dist/components/tabs/tab-bar-foundation.js +94 -0
- package/dist/components/tabs/tabs.css +4 -6
- package/dist/components/tabs/tabs.scss +4 -2
- package/dist/components/tabs/variables.scss +1 -1
- package/dist/components/tag/tag.css +0 -7
- package/dist/components/tag/tag.scss +0 -3
- package/dist/components/tag-input/foundation.d.ts +37 -14
- package/dist/components/tag-input/foundation.js +27 -1
- package/dist/components/tag-input/tag-input.css +0 -4
- package/dist/components/tag-input/tag-input.scss +0 -3
- package/dist/components/time-picker/combobox-options.d.ts +69 -0
- package/dist/components/time-picker/combobox-options.js +98 -0
- package/dist/components/time-picker/constants.d.ts +2 -0
- package/dist/components/time-picker/foundation.d.ts +19 -4
- package/dist/components/time-picker/foundation.js +46 -26
- package/dist/components/time-picker/input-foundation.d.ts +9 -2
- package/dist/components/time-picker/input-foundation.js +7 -0
- package/dist/components/time-picker/time-picker.css +0 -6
- package/dist/components/time-picker/time-picker.scss +0 -3
- package/dist/components/time-picker/utils/index.d.ts +4 -2
- package/dist/components/time-picker/utils/index.js +4 -6
- package/dist/components/timeline/rtl.scss +0 -4
- package/dist/components/timeline/timeline.css +0 -4
- package/dist/components/toast/constants.d.ts +0 -2
- package/dist/components/toast/constants.js +0 -2
- package/dist/components/toast/toast-api-foundation.d.ts +3 -2
- package/dist/components/toast/toast-api-foundation.js +14 -6
- package/dist/components/toast/toast-foundation.d.ts +1 -0
- package/dist/components/toast/toast-list-foundation.d.ts +11 -29
- package/dist/components/toast/toast-list-foundation.js +6 -74
- package/dist/components/toast/toast.css +0 -4
- package/dist/components/toast/toast.scss +0 -3
- package/dist/components/tooltip/constants.d.ts +2 -6
- package/dist/components/tooltip/constants.js +1 -7
- package/dist/components/tooltip/foundation.d.ts +15 -16
- package/dist/components/tooltip/foundation.js +60 -20
- package/dist/components/tooltip/tooltip.css +1 -4
- package/dist/components/tooltip/tooltip.scss +0 -2
- package/dist/components/transfer/constants.d.ts +1 -0
- package/dist/components/transfer/constants.js +2 -1
- package/dist/components/transfer/foundation.d.ts +37 -0
- package/dist/components/transfer/foundation.js +42 -1
- package/dist/components/transfer/transfer-utils.js +1 -1
- package/dist/components/transfer/transfer.css +0 -4
- package/dist/components/transfer/transfer.scss +0 -3
- package/dist/components/tree/constants.d.ts +2 -0
- package/dist/components/tree/foundation.d.ts +19 -4
- package/dist/components/tree/foundation.js +39 -4
- package/dist/components/tree/rtl.scss +0 -7
- package/dist/components/tree/shared.d.ts +50 -7
- package/dist/components/tree/shared.js +51 -9
- package/dist/components/tree/tree-util.d.ts +37 -38
- package/dist/components/tree/tree-util.js +5 -5
- package/dist/components/tree/tree.css +0 -7
- package/dist/components/tree-select/constants.d.ts +2 -0
- package/dist/components/tree-select/constants.js +1 -1
- package/dist/components/tree-select/foundation.d.ts +22 -14
- package/dist/components/tree-select/foundation.js +58 -13
- package/dist/components/tree-select/tree-select.css +0 -5
- package/dist/components/tree-select/tree-select.scss +0 -3
- package/dist/components/typography/copy.d.ts +8 -0
- package/dist/components/typography/copy.js +11 -0
- package/dist/components/typography/ellipsis.d.ts +31 -0
- package/dist/components/typography/ellipsis.js +30 -1
- package/dist/components/typography/rtl.scss +0 -4
- package/dist/components/typography/typography.css +0 -4
- package/dist/components/upload/constants.d.ts +4 -2
- package/dist/components/upload/constants.js +1 -1
- package/dist/components/upload/foundation.d.ts +26 -0
- package/dist/components/upload/foundation.js +28 -3
- package/dist/components/upload/rtl.scss +0 -4
- package/dist/components/upload/upload.css +0 -4
- package/dist/components/upload/utils.d.ts +7 -1
- package/dist/components/upload/utils.js +14 -4
- package/dist/components/user-guide/foundation.d.ts +5 -13
- package/dist/components/user-guide/foundation.js +91 -39
- package/dist/components/video-player/constants.d.ts +3 -0
- package/dist/components/video-player/constants.js +13 -1
- package/dist/components/video-player/foundation.d.ts +5 -4
- package/dist/components/video-player/foundation.js +7 -3
- package/dist/components/video-player/progress-foundation.d.ts +1 -1
- package/dist/components/video-player/progress-foundation.js +2 -2
- package/dist/components/video-player/seek-foundation.d.ts +7 -4
- package/dist/components/video-player/seek-foundation.js +26 -16
- package/dist/components/video-player/utils.d.ts +0 -2
- package/dist/components/video-player/utils.js +1 -14
- package/dist/components/video-player/video-player.css +10 -16
- package/dist/components/video-player/video-player.scss +12 -16
- package/dist/locale/index.d.ts +6 -0
- package/dist/locale/index.js +5 -0
- package/dist/locale/interface.d.ts +16 -5
- package/dist/locale/resolve-locale.d.ts +3 -3
- package/dist/locale/resolve-locale.js +20 -6
- package/dist/locale/source/en_US.js +4 -2
- package/dist/locale/source/zh_CN.js +4 -2
- package/dist/utils/a11y.d.ts +23 -11
- package/dist/utils/a11y.js +32 -17
- package/dist/utils/announcer.d.ts +0 -17
- package/dist/utils/announcer.js +1 -19
- package/dist/utils/assert-client.d.ts +1 -0
- package/dist/utils/assert-client.js +5 -0
- package/dist/utils/clipboard.d.ts +9 -1
- package/dist/utils/clipboard.js +25 -1
- package/dist/utils/date-fns-extra.d.ts +1 -0
- package/dist/utils/date-fns-extra.js +4 -1
- package/dist/utils/date-fns-locale.d.ts +6 -0
- package/dist/utils/date-fns-locale.js +15 -0
- package/dist/utils/dom.d.ts +10 -6
- package/dist/utils/dom.js +17 -6
- package/dist/utils/focus-handover.js +2 -2
- package/dist/utils/index.d.ts +32 -0
- package/dist/utils/index.js +31 -0
- package/dist/utils/layer.d.ts +15 -0
- package/dist/utils/layer.js +38 -1
- package/dist/utils/media.d.ts +2 -0
- package/dist/utils/media.js +15 -0
- package/dist/utils/zoned-time.d.ts +6 -0
- package/dist/utils/zoned-time.js +18 -0
- package/package.json +10 -7
- package/dist/components/anchor/rtl.scss +0 -9
- package/dist/components/auto-complete/rtl.scss +0 -9
- package/dist/components/avatar/rtl.scss +0 -11
- package/dist/components/backtop/rtl.scss +0 -8
- package/dist/components/badge/rtl.scss +0 -8
- package/dist/components/banner/rtl.scss +0 -8
- package/dist/components/breadcrumb/rtl.scss +0 -9
- package/dist/components/calendar/rtl.scss +0 -10
- package/dist/components/card/rtl.scss +0 -18
- package/dist/components/checkbox/rtl.scss +0 -11
- package/dist/components/collapse/rtl.scss +0 -8
- package/dist/components/date-picker/_utils/is-valid-date.d.ts +0 -1
- package/dist/components/date-picker/_utils/is-valid-date.js +0 -5
- package/dist/components/descriptions/rtl.scss +0 -8
- package/dist/components/dropdown/rtl.scss +0 -9
- package/dist/components/empty/rtl.scss +0 -8
- package/dist/components/float-button/rtl.scss +0 -2
- package/dist/components/form/rtl.scss +0 -13
- package/dist/components/grid/rtl.scss +0 -10
- package/dist/components/input/rtl.scss +0 -11
- package/dist/components/input-number/rtl.scss +0 -9
- package/dist/components/layout/rtl.scss +0 -7
- package/dist/components/list/rtl.scss +0 -9
- package/dist/components/modal/rtl.scss +0 -10
- package/dist/components/notification/rtl.scss +0 -9
- package/dist/components/overflow-list/rtl.scss +0 -7
- package/dist/components/popover/rtl.scss +0 -9
- package/dist/components/radio/rtl.scss +0 -11
- package/dist/components/rating/rtl.scss +0 -9
- package/dist/components/scroll-list/rtl.scss +0 -9
- package/dist/components/select/rtl.scss +0 -10
- package/dist/components/side-sheet/rtl.scss +0 -9
- package/dist/components/skeleton/rtl.scss +0 -9
- package/dist/components/space/rtl.scss +0 -8
- package/dist/components/spin/rtl.scss +0 -11
- package/dist/components/steps/rtl.scss +0 -14
- package/dist/components/tag/rtl.scss +0 -12
- package/dist/components/tag-input/rtl.scss +0 -9
- package/dist/components/time-picker/combox-foundation.d.ts +0 -64
- package/dist/components/time-picker/combox-foundation.js +0 -96
- package/dist/components/time-picker/rtl.scss +0 -10
- package/dist/components/toast/rtl.scss +0 -9
- package/dist/components/tooltip/rtl.scss +0 -9
- package/dist/components/transfer/rtl.scss +0 -9
- package/dist/components/tree-select/rtl.scss +0 -9
- package/dist/locale/source/ar.d.ts +0 -3
- package/dist/locale/source/ar.js +0 -520
- package/dist/locale/source/az.d.ts +0 -3
- package/dist/locale/source/az.js +0 -520
- package/dist/locale/source/bg.d.ts +0 -3
- package/dist/locale/source/bg.js +0 -520
- package/dist/locale/source/bn_IN.d.ts +0 -3
- package/dist/locale/source/bn_IN.js +0 -520
- package/dist/locale/source/ca.d.ts +0 -3
- package/dist/locale/source/ca.js +0 -520
- package/dist/locale/source/ceb_PH.d.ts +0 -3
- package/dist/locale/source/ceb_PH.js +0 -520
- package/dist/locale/source/cs_CZ.d.ts +0 -3
- package/dist/locale/source/cs_CZ.js +0 -520
- package/dist/locale/source/da.d.ts +0 -3
- package/dist/locale/source/da.js +0 -520
- package/dist/locale/source/de.d.ts +0 -3
- package/dist/locale/source/de.js +0 -520
- package/dist/locale/source/el_GR.d.ts +0 -3
- package/dist/locale/source/el_GR.js +0 -520
- package/dist/locale/source/en_GB.d.ts +0 -3
- package/dist/locale/source/en_GB.js +0 -520
- package/dist/locale/source/es.d.ts +0 -3
- package/dist/locale/source/es.js +0 -520
- package/dist/locale/source/es_419.d.ts +0 -3
- package/dist/locale/source/es_419.js +0 -520
- package/dist/locale/source/et.d.ts +0 -3
- package/dist/locale/source/et.js +0 -520
- package/dist/locale/source/fa_IR.d.ts +0 -3
- package/dist/locale/source/fa_IR.js +0 -520
- package/dist/locale/source/fi_FI.d.ts +0 -3
- package/dist/locale/source/fi_FI.js +0 -520
- package/dist/locale/source/fil_PH.d.ts +0 -3
- package/dist/locale/source/fil_PH.js +0 -520
- package/dist/locale/source/fr.d.ts +0 -3
- package/dist/locale/source/fr.js +0 -520
- package/dist/locale/source/fr_CA.d.ts +0 -3
- package/dist/locale/source/fr_CA.js +0 -520
- package/dist/locale/source/ga.d.ts +0 -3
- package/dist/locale/source/ga.js +0 -520
- package/dist/locale/source/he_IL.d.ts +0 -3
- package/dist/locale/source/he_IL.js +0 -520
- package/dist/locale/source/hi_IN.d.ts +0 -3
- package/dist/locale/source/hi_IN.js +0 -520
- package/dist/locale/source/hr.d.ts +0 -3
- package/dist/locale/source/hr.js +0 -520
- package/dist/locale/source/hu_HU.d.ts +0 -3
- package/dist/locale/source/hu_HU.js +0 -520
- package/dist/locale/source/id_ID.d.ts +0 -3
- package/dist/locale/source/id_ID.js +0 -520
- package/dist/locale/source/is.d.ts +0 -3
- package/dist/locale/source/is.js +0 -520
- package/dist/locale/source/it.d.ts +0 -3
- package/dist/locale/source/it.js +0 -520
- package/dist/locale/source/ja_JP.d.ts +0 -3
- package/dist/locale/source/ja_JP.js +0 -520
- package/dist/locale/source/jv_ID.d.ts +0 -3
- package/dist/locale/source/jv_ID.js +0 -520
- package/dist/locale/source/kk.d.ts +0 -3
- package/dist/locale/source/kk.js +0 -520
- package/dist/locale/source/km_KH.d.ts +0 -3
- package/dist/locale/source/km_KH.js +0 -520
- package/dist/locale/source/ko_KR.d.ts +0 -3
- package/dist/locale/source/ko_KR.js +0 -520
- package/dist/locale/source/lt.d.ts +0 -3
- package/dist/locale/source/lt.js +0 -520
- package/dist/locale/source/lv.d.ts +0 -3
- package/dist/locale/source/lv.js +0 -520
- package/dist/locale/source/ms_MY.d.ts +0 -3
- package/dist/locale/source/ms_MY.js +0 -520
- package/dist/locale/source/my_MM.d.ts +0 -3
- package/dist/locale/source/my_MM.js +0 -520
- package/dist/locale/source/nb.d.ts +0 -3
- package/dist/locale/source/nb.js +0 -520
- package/dist/locale/source/nl_NL.d.ts +0 -3
- package/dist/locale/source/nl_NL.js +0 -520
- package/dist/locale/source/pl_PL.d.ts +0 -3
- package/dist/locale/source/pl_PL.js +0 -520
- package/dist/locale/source/pt.d.ts +0 -3
- package/dist/locale/source/pt.js +0 -520
- package/dist/locale/source/pt_BR.d.ts +0 -3
- package/dist/locale/source/pt_BR.js +0 -520
- package/dist/locale/source/ro.d.ts +0 -3
- package/dist/locale/source/ro.js +0 -520
- package/dist/locale/source/ru_RU.d.ts +0 -3
- package/dist/locale/source/ru_RU.js +0 -520
- package/dist/locale/source/sk.d.ts +0 -3
- package/dist/locale/source/sk.js +0 -520
- package/dist/locale/source/sl.d.ts +0 -3
- package/dist/locale/source/sl.js +0 -520
- package/dist/locale/source/sq.d.ts +0 -3
- package/dist/locale/source/sq.js +0 -520
- package/dist/locale/source/sv_SE.d.ts +0 -3
- package/dist/locale/source/sv_SE.js +0 -520
- package/dist/locale/source/sw.d.ts +0 -3
- package/dist/locale/source/sw.js +0 -520
- package/dist/locale/source/th_TH.d.ts +0 -3
- package/dist/locale/source/th_TH.js +0 -520
- package/dist/locale/source/tr_TR.d.ts +0 -3
- package/dist/locale/source/tr_TR.js +0 -520
- package/dist/locale/source/uk_UA.d.ts +0 -3
- package/dist/locale/source/uk_UA.js +0 -520
- package/dist/locale/source/ur.d.ts +0 -3
- package/dist/locale/source/ur.js +0 -520
- package/dist/locale/source/uz.d.ts +0 -3
- package/dist/locale/source/uz.js +0 -520
- package/dist/locale/source/vi_VN.d.ts +0 -3
- package/dist/locale/source/vi_VN.js +0 -520
- package/dist/locale/source/zh_TW.d.ts +0 -3
- package/dist/locale/source/zh_TW.js +0 -520
- package/dist/utils/is-element.d.ts +0 -1
- package/dist/utils/is-element.js +0 -5
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import BaseFoundation, { DefaultAdapter } from "../../base/foundation.js";
|
|
2
|
-
import
|
|
2
|
+
import "../../base/index.js";
|
|
3
3
|
import { Locale } from "../../locale/interface.js";
|
|
4
|
+
import { ArrayElement } from "../../utils/type.js";
|
|
4
5
|
import { WeekStartNumber } from "./_utils/get-month-table.js";
|
|
5
6
|
import { strings } from "./constants.js";
|
|
7
|
+
import { DateOffsetType, DisabledDateType, DisabledTimeType, PresetPosition, RenderDateType, RenderFullDateType, ValueType } from "./foundation.js";
|
|
6
8
|
import { DateInputFoundationProps, RangeInput } from "./input-foundation.js";
|
|
7
|
-
import { YearAndMonthFoundationProps } from "./year-and-month-foundation.js";
|
|
8
9
|
import { FocusRecords, MonthDayInfo } from "./month-foundation.js";
|
|
9
|
-
import {
|
|
10
|
+
import { YearAndMonthFoundationProps } from "./year-and-month-foundation.js";
|
|
10
11
|
import { isEqual } from "es-toolkit";
|
|
11
12
|
type Type = ArrayElement<typeof strings.TYPE_SET>;
|
|
12
13
|
interface MonthsGridElementProps {
|
|
@@ -17,6 +18,7 @@ export type PanelType = 'left' | 'right';
|
|
|
17
18
|
export type PanelView = 'date' | 'time';
|
|
18
19
|
/** `panel` is a month panel, `wrap` its year-month or time list, `switch` the date/time switch above it */
|
|
19
20
|
export type PanelPart = 'panel' | 'wrap' | 'switch';
|
|
21
|
+
export type PanelFocusTarget = 'yearList' | 'title';
|
|
20
22
|
export type YearMonthChangeType = 'prevMonth' | 'nextMonth' | 'prevYear' | 'nextYear';
|
|
21
23
|
export interface MonthsGridFoundationProps extends MonthsGridElementProps, Pick<YearAndMonthFoundationProps, 'startYear' | 'endYear'> {
|
|
22
24
|
type?: Type;
|
|
@@ -36,7 +38,6 @@ export interface MonthsGridFoundationProps extends MonthsGridElementProps, Pick<
|
|
|
36
38
|
timePickerOpts?: any;
|
|
37
39
|
/** DatePicker shows a picked date only once its owner passes it back, see `DatePickerFoundation.isSelectionControlled` */
|
|
38
40
|
selectionControlled?: boolean;
|
|
39
|
-
rangeStart?: string;
|
|
40
41
|
rangeInputFocus?: boolean | string;
|
|
41
42
|
locale?: any;
|
|
42
43
|
format?: string;
|
|
@@ -56,8 +57,6 @@ export interface MonthsGridFoundationProps extends MonthsGridElementProps, Pick<
|
|
|
56
57
|
focusRecords?: FocusRecords;
|
|
57
58
|
insetInput: DateInputFoundationProps['insetInput'];
|
|
58
59
|
presetPosition?: PresetPosition;
|
|
59
|
-
renderQuickControls?: any;
|
|
60
|
-
renderDateInput?: any;
|
|
61
60
|
}
|
|
62
61
|
export interface PanelState {
|
|
63
62
|
/** The date displayed in the current date panel, update when switching year and month */
|
|
@@ -82,6 +81,8 @@ export interface MonthsGridAdapter extends DefaultAdapter<MonthsGridFoundationPr
|
|
|
82
81
|
notifyPanelChange: MonthsGridFoundationProps['onPanelChange'];
|
|
83
82
|
/** a part of a month panel, null while it is not rendered */
|
|
84
83
|
getPanelNode: (part: PanelPart, panelType: PanelType) => HTMLElement | null | undefined;
|
|
84
|
+
/** Focuses the year list or the month title of a panel */
|
|
85
|
+
focusPanelTarget: (panelType: PanelType, target: PanelFocusTarget) => void;
|
|
85
86
|
reselectScrollLists: () => void;
|
|
86
87
|
}
|
|
87
88
|
export default class MonthsGridFoundation extends BaseFoundation<MonthsGridAdapter, MonthsGridFoundationProps, MonthsGridFoundationState> {
|
|
@@ -109,10 +110,10 @@ export default class MonthsGridFoundation extends BaseFoundation<MonthsGridAdapt
|
|
|
109
110
|
* Which panels show their year and month picker; while one does, its weeks need a minHeight, or a change of the
|
|
110
111
|
* number of weeks makes the scroll list unstable
|
|
111
112
|
*/
|
|
112
|
-
static getYAMOpenType(state: Pick<MonthsGridFoundationState, 'monthLeft' | 'monthRight'>): "
|
|
113
|
+
static getYAMOpenType(state: Pick<MonthsGridFoundationState, 'monthLeft' | 'monthRight'>): "left" | "right" | "none" | "both";
|
|
113
114
|
static isYearOrTime(panel: PanelState): boolean;
|
|
114
115
|
/** The `x-open-type` of a panel: what it shows in place of, or beside, its month */
|
|
115
|
-
static getOpenType(panel: PanelState): "
|
|
116
|
+
static getOpenType(panel: PanelState): "time" | "date" | "year";
|
|
116
117
|
static formatMonthText(locale: Pick<Locale['DatePicker'], 'monthText' | 'months'>, month?: Date): string;
|
|
117
118
|
/** The texts of a panel's date and time switch; the date is the picked range endpoint, else the shown date */
|
|
118
119
|
static getSwitchTexts({ rangeEndpoint, showDate, dateFormat, format: formatProp, locale, dateFnsLocale }: {
|
|
@@ -152,10 +153,11 @@ export default class MonthsGridFoundation extends BaseFoundation<MonthsGridAdapt
|
|
|
152
153
|
handleTimeChange: (newTime: {
|
|
153
154
|
timeStampValue: number;
|
|
154
155
|
}, panelType: PanelType) => void;
|
|
155
|
-
/** The host calls it after every render */
|
|
156
|
-
applyPanelSize: () => void;
|
|
157
156
|
handleWeeksRowNumChange: () => void;
|
|
157
|
+
/** From the month title, which hides or unmounts: the year list takes the focus */
|
|
158
158
|
showYearPicker: (panelType: PanelType) => void;
|
|
159
|
+
/** From the year list's back button, which unmounts: the month title takes the focus */
|
|
160
|
+
backToDatePanel: (panelType: PanelType) => void;
|
|
159
161
|
showTimePicker: (panelType: PanelType) => void;
|
|
160
162
|
showDatePanel: (panelType: PanelType) => void;
|
|
161
163
|
switchPanels: (view: PanelView) => void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import BaseFoundation from "../../base/foundation.js";
|
|
2
2
|
import { formatLocale } from "../../locale/format.js";
|
|
3
|
-
import {
|
|
3
|
+
import { isValidDate } from "../../utils/date-fns-extra.js";
|
|
4
4
|
import getDefaultFormatToken, { getDefaultFormatTokenByType } from "./_utils/get-default-format-token.js";
|
|
5
|
-
import
|
|
5
|
+
import getDefaultPickerDate from "./_utils/get-default-picker-date.js";
|
|
6
6
|
import isBefore$1 from "./_utils/is-before.js";
|
|
7
|
-
import isValidDate from "./_utils/is-valid-date.js";
|
|
8
7
|
import getFullDateOffset from "./_utils/get-full-date-offset.js";
|
|
9
8
|
import { compatibleParse } from "./_utils/parser.js";
|
|
10
9
|
import { isDateTimeType, isMultiple, isRangeType } from "./_utils/picker-type.js";
|
|
11
10
|
import toCallbackArgs from "./_utils/to-callback-args.js";
|
|
12
|
-
import
|
|
11
|
+
import toDateArg from "./_utils/to-date-arg.js";
|
|
12
|
+
import { strings } from "./constants.js";
|
|
13
13
|
import { isEqual } from "es-toolkit";
|
|
14
14
|
import { addMonths, addYears, differenceInCalendarMonths, format, isSameDay, parseISO, set, subMonths, subYears } from "date-fns";
|
|
15
15
|
// src/components/date-picker/months-grid-foundation.ts
|
|
@@ -19,10 +19,26 @@ const dateCalcFns = {
|
|
|
19
19
|
prevYear: subYears,
|
|
20
20
|
nextYear: addYears
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Props that change which panels render, whether they share a minHeight, or the measured month width (density sizes
|
|
24
|
+
* the cells, locale the navigation) and switch height (format, locale and dateFnsLocale write its texts)
|
|
25
|
+
*/
|
|
26
|
+
const PANEL_SIZE_PROPS = [
|
|
27
|
+
"type",
|
|
28
|
+
"insetInput",
|
|
29
|
+
"density",
|
|
30
|
+
"locale",
|
|
31
|
+
"format",
|
|
32
|
+
"dateFnsLocale"
|
|
33
|
+
];
|
|
22
34
|
var MonthsGridFoundation = class MonthsGridFoundation extends BaseFoundation {
|
|
23
35
|
/** the measured height of both panels while they show a scroll list; 0 means measure it when applying */
|
|
24
36
|
#panelHeight = 0;
|
|
25
|
-
static propKeys = [
|
|
37
|
+
static propKeys = [
|
|
38
|
+
"selectedValue",
|
|
39
|
+
"defaultPickerValue",
|
|
40
|
+
...PANEL_SIZE_PROPS
|
|
41
|
+
];
|
|
26
42
|
static propEquals = { defaultPickerValue: isEqual };
|
|
27
43
|
/** The time part of `format`, in the tokens the time panel uses */
|
|
28
44
|
static #getValidTimeFormat(format) {
|
|
@@ -107,12 +123,13 @@ var MonthsGridFoundation = class MonthsGridFoundation extends BaseFoundation {
|
|
|
107
123
|
}
|
|
108
124
|
}
|
|
109
125
|
#applyDefaultPickerValue() {
|
|
110
|
-
const { defaultPickerValue, type, format, dateFnsLocale } = this.getProps();
|
|
126
|
+
const { defaultPickerValue, type, format, dateFnsLocale, timeZone } = this.getProps();
|
|
111
127
|
if (defaultPickerValue === void 0) return;
|
|
112
128
|
const { nowDate, nextDate } = getDefaultPickerDate({
|
|
113
129
|
defaultPickerValue,
|
|
114
130
|
format: format || getDefaultFormatTokenByType(type),
|
|
115
|
-
dateFnsLocale
|
|
131
|
+
dateFnsLocale,
|
|
132
|
+
timeZone
|
|
116
133
|
});
|
|
117
134
|
if (isValidDate(nowDate) && isValidDate(nextDate)) {
|
|
118
135
|
this.#updatePanelDetail(strings.PANEL_TYPE_LEFT, { pickerDate: nowDate });
|
|
@@ -211,15 +228,31 @@ var MonthsGridFoundation = class MonthsGridFoundation extends BaseFoundation {
|
|
|
211
228
|
const height = (panelType) => (this.adapter.getPanelNode("wrap", panelType)?.getBoundingClientRect().height || 0) + (this.adapter.getPanelNode("switch", panelType)?.getBoundingClientRect().height || 0);
|
|
212
229
|
return Math.max(height(strings.PANEL_TYPE_LEFT), height(strings.PANEL_TYPE_RIGHT));
|
|
213
230
|
}
|
|
214
|
-
#
|
|
231
|
+
#applyPanelSize() {
|
|
232
|
+
const sizes = MonthsGridFoundation.getPanelSizeStyle(this.getStates(), this.getProp("insetInput"), {
|
|
233
|
+
monthWidth: (panelType) => this.adapter.getPanelNode("wrap", panelType)?.getBoundingClientRect().width ?? null,
|
|
234
|
+
scrollListHeight: () => this.#panelHeight || this.#scrollListHeight()
|
|
235
|
+
});
|
|
236
|
+
for (const panelType of [strings.PANEL_TYPE_LEFT, strings.PANEL_TYPE_RIGHT]) {
|
|
237
|
+
const panel = this.adapter.getPanelNode("panel", panelType);
|
|
238
|
+
if (panel) {
|
|
239
|
+
panel.style.minWidth = sizes[panelType].minWidth;
|
|
240
|
+
panel.style.minHeight = sizes[panelType].minHeight;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Sizes, re-centres and focuses once the commit shows the new view. `focusTarget` is for a switch whose button
|
|
246
|
+
* unmounts or hides under the focus; the date/time switch buttons and an inset input keep theirs.
|
|
247
|
+
*/
|
|
248
|
+
#setPanelView(panelType, view, focusTarget) {
|
|
215
249
|
const before = this.#countScrollLists();
|
|
216
250
|
this.#updatePanelDetail(panelType, view, () => {
|
|
217
251
|
const after = this.#countScrollLists();
|
|
218
|
-
if (before === 1 && after === 2)
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
} else if (before === 2 && after === 1) this.adapter.reselectScrollLists();
|
|
252
|
+
if (before === 1 && after === 2) this.#panelHeight = this.#scrollListHeight();
|
|
253
|
+
this.#applyPanelSize();
|
|
254
|
+
if (before === 1 && after === 2 || before === 2 && after === 1) this.adapter.reselectScrollLists();
|
|
255
|
+
if (focusTarget) this.adapter.focusPanelTarget(panelType, focusTarget);
|
|
223
256
|
});
|
|
224
257
|
}
|
|
225
258
|
#toMonth(panelType, target) {
|
|
@@ -267,7 +300,7 @@ var MonthsGridFoundation = class MonthsGridFoundation extends BaseFoundation {
|
|
|
267
300
|
month
|
|
268
301
|
});
|
|
269
302
|
if (dateType === "dateTime") fullDate = this.#mergeDateAndTime(fullDate, monthLeft.pickerDate);
|
|
270
|
-
if (disabledDate(fullDate, {
|
|
303
|
+
if (disabledDate?.(fullDate, {
|
|
271
304
|
rangeStart,
|
|
272
305
|
rangeEnd
|
|
273
306
|
})) return;
|
|
@@ -395,7 +428,8 @@ var MonthsGridFoundation = class MonthsGridFoundation extends BaseFoundation {
|
|
|
395
428
|
const { nowDate, nextDate } = getDefaultPickerDate({
|
|
396
429
|
defaultPickerValue: props.defaultPickerValue,
|
|
397
430
|
format: props.format || getDefaultFormatTokenByType(props.type),
|
|
398
|
-
dateFnsLocale: props.dateFnsLocale
|
|
431
|
+
dateFnsLocale: props.dateFnsLocale,
|
|
432
|
+
timeZone: props.timeZone
|
|
399
433
|
});
|
|
400
434
|
const state = {
|
|
401
435
|
selected: /* @__PURE__ */ new Set(),
|
|
@@ -412,7 +446,7 @@ var MonthsGridFoundation = class MonthsGridFoundation extends BaseFoundation {
|
|
|
412
446
|
isYearPickerOpen: false
|
|
413
447
|
},
|
|
414
448
|
hoverDay: "",
|
|
415
|
-
rangeStart:
|
|
449
|
+
rangeStart: "",
|
|
416
450
|
rangeEnd: "",
|
|
417
451
|
offsetRangeStart: "",
|
|
418
452
|
offsetRangeEnd: ""
|
|
@@ -512,6 +546,7 @@ var MonthsGridFoundation = class MonthsGridFoundation extends BaseFoundation {
|
|
|
512
546
|
const { selectedValue, defaultPickerValue } = this.getProps();
|
|
513
547
|
if (selectedValue !== prev.selectedValue) this.#updateSelectedFromProps(selectedValue);
|
|
514
548
|
if (!isEqual(defaultPickerValue, prev.defaultPickerValue)) this.#applyDefaultPickerValue();
|
|
549
|
+
if (PANEL_SIZE_PROPS.some((key) => this.getProp(key) !== prev[key])) this.#applyPanelSize();
|
|
515
550
|
}
|
|
516
551
|
toYearMonth = (panelType, target) => {
|
|
517
552
|
this.#toMonth(panelType, target);
|
|
@@ -567,31 +602,25 @@ var MonthsGridFoundation = class MonthsGridFoundation extends BaseFoundation {
|
|
|
567
602
|
}, panelType);
|
|
568
603
|
}
|
|
569
604
|
};
|
|
570
|
-
/** The host calls it after every render */
|
|
571
|
-
applyPanelSize = () => {
|
|
572
|
-
const sizes = MonthsGridFoundation.getPanelSizeStyle(this.getStates(), this.getProp("insetInput"), {
|
|
573
|
-
monthWidth: (panelType) => this.adapter.getPanelNode("wrap", panelType)?.getBoundingClientRect().width ?? null,
|
|
574
|
-
scrollListHeight: () => this.#panelHeight || this.#scrollListHeight()
|
|
575
|
-
});
|
|
576
|
-
for (const panelType of [strings.PANEL_TYPE_LEFT, strings.PANEL_TYPE_RIGHT]) {
|
|
577
|
-
const panel = this.adapter.getPanelNode("panel", panelType);
|
|
578
|
-
if (panel) {
|
|
579
|
-
panel.style.minWidth = sizes[panelType].minWidth;
|
|
580
|
-
panel.style.minHeight = sizes[panelType].minHeight;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
605
|
handleWeeksRowNumChange = () => {
|
|
585
606
|
if (this.#countScrollLists() === 1) {
|
|
586
607
|
this.#panelHeight = this.#scrollListHeight();
|
|
587
608
|
this.adapter.reselectScrollLists();
|
|
588
609
|
}
|
|
589
610
|
};
|
|
611
|
+
/** From the month title, which hides or unmounts: the year list takes the focus */
|
|
590
612
|
showYearPicker = (panelType) => {
|
|
591
613
|
this.#setPanelView(panelType, {
|
|
592
614
|
isTimePickerOpen: false,
|
|
593
615
|
isYearPickerOpen: true
|
|
594
|
-
});
|
|
616
|
+
}, "yearList");
|
|
617
|
+
};
|
|
618
|
+
/** From the year list's back button, which unmounts: the month title takes the focus */
|
|
619
|
+
backToDatePanel = (panelType) => {
|
|
620
|
+
this.#setPanelView(panelType, {
|
|
621
|
+
isTimePickerOpen: false,
|
|
622
|
+
isYearPickerOpen: false
|
|
623
|
+
}, "title");
|
|
595
624
|
};
|
|
596
625
|
showTimePicker = (panelType) => {
|
|
597
626
|
if (this.getProp("disabledTimePicker")) return;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import BaseFoundation, { DefaultAdapter } from "../../base/foundation.js";
|
|
2
|
+
import "../../base/index.js";
|
|
2
3
|
import { ArrayElement } from "../../utils/type.js";
|
|
3
4
|
import { strings } from "./constants.js";
|
|
4
|
-
import { PanelType } from "./months-grid-foundation.js";
|
|
5
5
|
import { PresetPosition } from "./foundation.js";
|
|
6
|
+
import { PanelType } from "./months-grid-foundation.js";
|
|
6
7
|
type Type = ArrayElement<typeof strings.TYPE_SET>;
|
|
7
8
|
export interface YearAndMonth {
|
|
8
9
|
currentYear: {
|
|
@@ -26,7 +27,6 @@ export interface YearAndMonthFoundationProps {
|
|
|
26
27
|
right: number;
|
|
27
28
|
};
|
|
28
29
|
onSelect?: (obj: YearAndMonth) => void;
|
|
29
|
-
onBackToMain?: () => void;
|
|
30
30
|
locale?: any;
|
|
31
31
|
monthCycled?: boolean;
|
|
32
32
|
yearCycled?: boolean;
|
|
@@ -34,8 +34,6 @@ export interface YearAndMonthFoundationProps {
|
|
|
34
34
|
disabledDate?: (date: Date) => boolean;
|
|
35
35
|
density?: string;
|
|
36
36
|
presetPosition?: PresetPosition;
|
|
37
|
-
renderQuickControls?: any;
|
|
38
|
-
renderDateInput?: any;
|
|
39
37
|
type?: Type;
|
|
40
38
|
yearAndMonthOpts?: any;
|
|
41
39
|
startYear?: number;
|
|
@@ -43,7 +41,6 @@ export interface YearAndMonthFoundationProps {
|
|
|
43
41
|
}
|
|
44
42
|
export interface YearAndMonthAdapter extends DefaultAdapter<YearAndMonthFoundationProps, Record<string, never>> {
|
|
45
43
|
notifySelect: (yearAndMonth: YearAndMonth) => void;
|
|
46
|
-
notifyBackToMain: () => void;
|
|
47
44
|
}
|
|
48
45
|
export interface MonthScrollItem {
|
|
49
46
|
[k: string]: any;
|
|
@@ -70,6 +67,5 @@ export default class YearAndMonthFoundation extends BaseFoundation<YearAndMonthA
|
|
|
70
67
|
static getMonthList(props: YearAndMonthFoundationProps, panelType: PanelType): MonthScrollItem[];
|
|
71
68
|
selectYear: (item: YearScrollItem, panelType?: PanelType) => void;
|
|
72
69
|
selectMonth: (item: MonthScrollItem, panelType?: PanelType) => void;
|
|
73
|
-
backToMain: () => void;
|
|
74
70
|
}
|
|
75
71
|
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import BaseFoundation from "../../base/foundation.js";
|
|
2
|
-
import { strings } from "./constants.js";
|
|
3
2
|
import getYearAndMonth from "./_utils/get-year-and-month.js";
|
|
4
3
|
import getYears from "./_utils/get-years.js";
|
|
4
|
+
import { strings } from "./constants.js";
|
|
5
5
|
// src/components/date-picker/year-and-month-foundation.ts
|
|
6
6
|
const MONTHS = Array.from({ length: 12 }, (_v, idx) => idx + 1);
|
|
7
7
|
var YearAndMonthFoundation = class YearAndMonthFoundation extends BaseFoundation {
|
|
8
8
|
#autoSelectMonth(item, panelType, year, currentMonth) {
|
|
9
9
|
const { disabledDate } = this.adapter.getProps();
|
|
10
10
|
const oppositeType = panelType === strings.PANEL_TYPE_LEFT ? "right" : "left";
|
|
11
|
-
const isValid = (month) => !disabledDate(new Date(item.year, month - 1));
|
|
11
|
+
const isValid = (month) => !disabledDate?.(new Date(item.year, month - 1));
|
|
12
12
|
const isCurrentMonthDisabled = !isValid(currentMonth[panelType]);
|
|
13
|
-
const isOppositeMonthDisabled = disabledDate(new Date(year[oppositeType], currentMonth[oppositeType] - 1));
|
|
13
|
+
const isOppositeMonthDisabled = Boolean(disabledDate?.(new Date(year[oppositeType], currentMonth[oppositeType] - 1)));
|
|
14
14
|
if (!isCurrentMonthDisabled && !isOppositeMonthDisabled) return;
|
|
15
15
|
let finalYear = year;
|
|
16
16
|
let finalMonth = { ...currentMonth };
|
|
@@ -62,7 +62,7 @@ var YearAndMonthFoundation = class YearAndMonthFoundation extends BaseFoundation
|
|
|
62
62
|
return getYears(startYear, endYear).map((year) => ({
|
|
63
63
|
year,
|
|
64
64
|
value: year,
|
|
65
|
-
disabled: type === "year" ? disabledDate(new Date(year, 0)) : MONTHS.every((month) => disabledDate(new Date(year, month - 1))) || Boolean(panelType === strings.PANEL_TYPE_RIGHT && leftYear && leftYear > year)
|
|
65
|
+
disabled: type === "year" ? Boolean(disabledDate?.(new Date(year, 0))) : MONTHS.every((month) => disabledDate?.(new Date(year, month - 1))) || Boolean(panelType === strings.PANEL_TYPE_RIGHT && leftYear && leftYear > year)
|
|
66
66
|
}));
|
|
67
67
|
}
|
|
68
68
|
/** The month column of a panel; in the right panel of the same year no month may come before the left one */
|
|
@@ -73,7 +73,7 @@ var YearAndMonthFoundation = class YearAndMonthFoundation extends BaseFoundation
|
|
|
73
73
|
const right = strings.PANEL_TYPE_RIGHT;
|
|
74
74
|
return MONTHS.map((month) => ({
|
|
75
75
|
month,
|
|
76
|
-
disabled: disabledDate(new Date(currentYear[panelType], month - 1)) || Boolean(panelType === right && currentMonth[left] && currentYear[left] === currentYear[right] && currentMonth[left] > month),
|
|
76
|
+
disabled: Boolean(disabledDate?.(new Date(currentYear[panelType], month - 1))) || Boolean(panelType === right && currentMonth[left] && currentYear[left] === currentYear[right] && currentMonth[left] > month),
|
|
77
77
|
value: locale.fullMonths[month]
|
|
78
78
|
}));
|
|
79
79
|
}
|
|
@@ -108,8 +108,5 @@ var YearAndMonthFoundation = class YearAndMonthFoundation extends BaseFoundation
|
|
|
108
108
|
currentMonth: month
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
|
-
backToMain = () => {
|
|
112
|
-
this.adapter.notifyBackToMain();
|
|
113
|
-
};
|
|
114
111
|
};
|
|
115
112
|
export { YearAndMonthFoundation as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import BaseFoundation, { DefaultAdapter } from "../../base/foundation.js";
|
|
2
|
+
import "../../base/index.js";
|
|
2
3
|
export interface DragMoveAdapter<P extends DragMoveBaseProps = DragMoveBaseProps> extends DefaultAdapter<P, object> {
|
|
3
4
|
notifyMouseDown: (e: PointerEvent) => void;
|
|
4
5
|
notifyMouseMove: (e: PointerEvent) => void;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const cssClasses: {
|
|
2
2
|
PREFIX: string;
|
|
3
3
|
};
|
|
4
|
+
/** Keys of `classNames` and `styles`; the root element takes `className` and `style` */
|
|
5
|
+
export type DropdownPart = 'content' | 'wrapper';
|
|
4
6
|
export declare const strings: {
|
|
5
7
|
DEFAULT_LEAVE_DELAY: number;
|
|
6
8
|
ITEM_SELECTOR: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import BaseFoundation from "../../base/foundation.js";
|
|
2
|
+
import "../../base/index.js";
|
|
2
3
|
import { DropdownContextAdapter } from "./menu-foundation.js";
|
|
3
4
|
/** The context is the one around the Dropdown: a Dropdown inside a menu reads that menu's DropdownMenuContext */
|
|
4
5
|
export interface DropdownAdapter<P extends DropdownBaseProps = DropdownBaseProps> extends DropdownContextAdapter<P, DropdownBaseState> {
|
|
@@ -20,8 +21,20 @@ export interface DropdownBaseState {
|
|
|
20
21
|
export default class DropdownFoundation<P extends DropdownBaseProps = DropdownBaseProps> extends BaseFoundation<DropdownAdapter<P>, P, DropdownBaseState> {
|
|
21
22
|
#private;
|
|
22
23
|
static getInitialState(): DropdownBaseState;
|
|
24
|
+
/** The `menuDepth` this Dropdown provides to its popup, from the one around it */
|
|
25
|
+
static getChildMenuDepth(menuDepth?: number): number;
|
|
26
|
+
/** A submenu (inside a menu) sits closer to its parent item than a top-level menu to its trigger */
|
|
27
|
+
static getSpacing(spacing?: number | {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
}, menuDepth?: number): number | {
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
};
|
|
23
34
|
/** Closes the menu without moving focus */
|
|
24
35
|
close: () => void;
|
|
36
|
+
/** Closes the menu and the menus of every enclosing Dropdown, without moving focus */
|
|
37
|
+
closeAll: () => void;
|
|
25
38
|
/** Tooltip's onVisibleChange: an actual change when uncontrolled, only a request to the owner when controlled */
|
|
26
39
|
handleVisibleChange: (visible: boolean) => void;
|
|
27
40
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import BaseFoundation from "../../base/foundation.js";
|
|
2
1
|
import FocusTrapHandle from "../../base/focus-handle.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import BaseFoundation from "../../base/foundation.js";
|
|
3
|
+
import { handlePrevent, isTextEditor, setFocusToFirstItem, setFocusToLastItem } from "../../utils/a11y.js";
|
|
4
|
+
import { getPopupTrigger } from "../../utils/layer.js";
|
|
5
|
+
import { numbers, strings } from "./constants.js";
|
|
5
6
|
// src/components/dropdown/foundation.ts
|
|
6
7
|
const { ITEM_SELECTOR } = strings;
|
|
7
8
|
const NATIVE_KEY_CLICK_SELECTOR = "button, summary, input[type=\"button\"], input[type=\"submit\"], input[type=\"reset\"]";
|
|
@@ -44,10 +45,23 @@ var DropdownFoundation = class extends BaseFoundation {
|
|
|
44
45
|
static getInitialState() {
|
|
45
46
|
return { popVisible: false };
|
|
46
47
|
}
|
|
48
|
+
/** The `menuDepth` this Dropdown provides to its popup, from the one around it */
|
|
49
|
+
static getChildMenuDepth(menuDepth = 0) {
|
|
50
|
+
return menuDepth + 1;
|
|
51
|
+
}
|
|
52
|
+
/** A submenu (inside a menu) sits closer to its parent item than a top-level menu to its trigger */
|
|
53
|
+
static getSpacing(spacing, menuDepth = 0) {
|
|
54
|
+
return spacing ?? (menuDepth > 0 ? numbers.NESTED_SPACING : numbers.SPACING);
|
|
55
|
+
}
|
|
47
56
|
/** Closes the menu without moving focus */
|
|
48
57
|
close = () => {
|
|
49
58
|
this.adapter.hidePopup();
|
|
50
59
|
};
|
|
60
|
+
/** Closes the menu and the menus of every enclosing Dropdown, without moving focus */
|
|
61
|
+
closeAll = () => {
|
|
62
|
+
this.close();
|
|
63
|
+
this.adapter.getContext("closeAll")?.();
|
|
64
|
+
};
|
|
51
65
|
/** Tooltip's onVisibleChange: an actual change when uncontrolled, only a request to the owner when controlled */
|
|
52
66
|
handleVisibleChange = (visible) => {
|
|
53
67
|
if (this.getProp("visible") === void 0) this.setState({ popVisible: visible });
|
|
@@ -114,10 +128,7 @@ var DropdownFoundation = class extends BaseFoundation {
|
|
|
114
128
|
}
|
|
115
129
|
break;
|
|
116
130
|
}
|
|
117
|
-
case "Tab": if (popVisible)
|
|
118
|
-
this.close();
|
|
119
|
-
this.adapter.getContext("closeAll")?.();
|
|
120
|
-
}
|
|
131
|
+
case "Tab": if (popVisible) this.closeAll();
|
|
121
132
|
}
|
|
122
133
|
};
|
|
123
134
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import BaseFoundation, { DefaultAdapter, DirectionContext } from "../../base/foundation.js";
|
|
2
|
+
import "../../base/index.js";
|
|
2
3
|
export type DropdownSelectionMode = 'single' | 'multiple';
|
|
3
4
|
/**
|
|
4
5
|
* Role and checked state of a menu item, from the menu's selectionMode (as React Aria Menu) and showTick. Without a
|
|
5
6
|
* selectionMode a tick shows a checked state, so showTick alone makes the items checkboxes.
|
|
6
7
|
*/
|
|
7
|
-
export declare function getItemRole(selectionMode?: DropdownSelectionMode, showTick?: boolean): "
|
|
8
|
+
export declare function getItemRole(selectionMode?: DropdownSelectionMode, showTick?: boolean): "menuitem" | "menuitemradio" | "menuitemcheckbox";
|
|
8
9
|
/**
|
|
9
10
|
* What a Dropdown provides to everything inside its popup, read by the menus there and by a Dropdown whose trigger is
|
|
10
11
|
* one of their items. A framework adapter passes it as the foundation context, with the reading direction added.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import BaseFoundation from "../../base/foundation.js";
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
2
|
+
import { Typeahead, getListTargetIndex, handlePrevent, setFocusToItem } from "../../utils/a11y.js";
|
|
3
|
+
import { getPopupTrigger } from "../../utils/layer.js";
|
|
4
4
|
import { strings } from "./constants.js";
|
|
5
5
|
// src/components/dropdown/menu-foundation.ts
|
|
6
6
|
const { ITEM_SELECTOR } = strings;
|
|
@@ -9,4 +9,6 @@ export declare const strings: {
|
|
|
9
9
|
readonly normal: "😐";
|
|
10
10
|
readonly good: "😃";
|
|
11
11
|
};
|
|
12
|
-
};
|
|
12
|
+
};
|
|
13
|
+
/** Keys of `classNames` and `styles`; the root element takes `className` and `style`. Forwarded to the Modal or SideSheet of the current mode */
|
|
14
|
+
export type FeedbackPart = 'mask' | 'header' | 'body';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import BaseFoundation, { DefaultAdapter } from "../../base/foundation.js";
|
|
2
|
+
import "../../base/index.js";
|
|
2
3
|
import { CheckboxValue } from "../checkbox/checkbox-group-foundation.js";
|
|
3
4
|
import { RadioChangeEvent } from "../radio/radio-foundation.js";
|
|
4
5
|
export interface EmojiResult {
|
|
@@ -8,6 +9,12 @@ export interface EmojiResult {
|
|
|
8
9
|
export type FeedbackValue = CheckboxValue | CheckboxValue[] | EmojiResult;
|
|
9
10
|
/** Nothing chosen: null, undefined, an empty string or an empty array. 0 and false are real radio values. */
|
|
10
11
|
export declare function isFeedbackValueEmpty(value?: FeedbackValue | null): boolean;
|
|
12
|
+
export interface FeedbackContentValues {
|
|
13
|
+
text: string;
|
|
14
|
+
radio?: CheckboxValue;
|
|
15
|
+
checkbox: CheckboxValue[];
|
|
16
|
+
emoji?: string;
|
|
17
|
+
}
|
|
11
18
|
type PromiseStatus = 'pending' | 'fulfilled' | 'rejected';
|
|
12
19
|
export interface FeedbackBaseState {
|
|
13
20
|
value: FeedbackValue | null;
|
|
@@ -29,6 +36,8 @@ export interface FeedbackAdapter<P extends object = object, CE = unknown, OE = u
|
|
|
29
36
|
export default class FeedbackFoundation<P extends object = object, CE = unknown, OE = unknown, TE = unknown> extends BaseFoundation<FeedbackAdapter<P, CE, OE, TE>, P, FeedbackBaseState> {
|
|
30
37
|
#private;
|
|
31
38
|
static getInitialState(): FeedbackBaseState;
|
|
39
|
+
/** What each built-in content shows of the value; null (submitted or cancelled) and another type's shape show nothing chosen */
|
|
40
|
+
static getContentValues(value: FeedbackValue | null): FeedbackContentValues;
|
|
32
41
|
handleRadioChange: (e: RadioChangeEvent) => void;
|
|
33
42
|
handleEmojiReasonChange: (value: string, e?: TE) => void;
|
|
34
43
|
handleTextChange: (value: string, e?: TE) => void;
|
|
@@ -33,6 +33,15 @@ var FeedbackFoundation = class extends BaseFoundation {
|
|
|
33
33
|
onCancelReturnPromiseStatus: "fulfilled"
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
+
/** What each built-in content shows of the value; null (submitted or cancelled) and another type's shape show nothing chosen */
|
|
37
|
+
static getContentValues(value) {
|
|
38
|
+
return {
|
|
39
|
+
text: typeof value === "string" ? value : "",
|
|
40
|
+
radio: typeof value === "string" || typeof value === "number" || typeof value === "boolean" ? value : void 0,
|
|
41
|
+
checkbox: Array.isArray(value) ? value : [],
|
|
42
|
+
emoji: value !== null && typeof value === "object" && !Array.isArray(value) ? value.emoji : void 0
|
|
43
|
+
};
|
|
44
|
+
}
|
|
36
45
|
handleRadioChange = (e) => {
|
|
37
46
|
const { value } = e.target;
|
|
38
47
|
this.adapter.notifyRadioChange(e);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
.semi-floatButton {
|
|
12
12
|
position: fixed;
|
|
13
|
-
|
|
13
|
+
inset-inline-end: 24px;
|
|
14
14
|
bottom: 24px;
|
|
15
15
|
z-index: 1000;
|
|
16
16
|
padding: 0;
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
|
|
94
94
|
.semi-floatButtonGroup {
|
|
95
95
|
position: fixed;
|
|
96
|
-
|
|
96
|
+
inset-inline-end: 24px;
|
|
97
97
|
bottom: 24px;
|
|
98
98
|
z-index: 1000;
|
|
99
99
|
display: inline-flex;
|