@sdata/web-vue 4.5.5 → 4.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/THIRD_PARTY_NOTICES.md +15 -0
- package/dist/sd.css +107 -57
- package/dist/sd.min.css +2 -2
- package/es/_components/auto-tooltip/auto-tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/client-only.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/feedback-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/icon-hover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/input-label/input-label.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/picker/input-range.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/picker/input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/resize-observer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/resize-trigger.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/select-view/select-view.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/transition/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/_hooks/use-scrollbar.js +1 -1
- package/es/_utils/color.js +1 -1
- package/es/_utils/date.js +2 -2
- package/es/_utils/global-config.js +1 -1
- package/es/_utils/omit.js +1 -1
- package/es/_utils/responsive-observe.js +1 -1
- package/es/_utils/virtual-dropdown.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/asyncToGenerator.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/defineProperty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/extends.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/objectDestructuringEmpty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/objectSpread2.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/objectWithoutProperties.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/toPrimitive.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/toPropertyKey.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.147.0 → _@oxc-project_runtime@0.148.0}/helpers/esm/typeof.js +1 -1
- package/es/affix/affix.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/alert/alert.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/anchor/anchor-link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/auto-complete/auto-complete.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/auto-complete/style/index.css +1 -1
- package/es/avatar/avatar-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/back-top/back-top.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/badge/badge.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/basic-crud-table/basic-crud-modal.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/basic-crud-table/basic-crud-table.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/bloom-menu/bloom-menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/bloom-menu/style/index.css +2 -2
- package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/border-beam/styles.js +1 -1
- package/es/breadcrumb/breadcrumb-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/breadcrumb/breadcrumb.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/button/button-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/calendar/components/cell.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/card/card-actions.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/card/card-grid.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/card/card-meta.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/card/card.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/card/style/index.css +3 -3
- package/es/card/style/index.scss +9 -3
- package/es/carousel/carousel-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/carousel/carousel-indicator.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/carousel/carousel-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/carousel/carousel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/cascader/base-cascader-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/cascader/cascader-column.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/cascader/cascader-option.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/cascader/cascader-search-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/cascader/style/index.css +2 -2
- package/es/checkbox/checkbox-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/checkbox/checkbox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/checkbox/icon-check.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/collapse/collapse-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/collapse/collapse.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/color-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/control-bar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/gradient-thumb.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/palette.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/color-picker/style/index.css +5 -5
- package/es/color-picker/utils.js +1 -1
- package/es/comment/comment.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/components.d.ts +3 -1
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/theme.js +1 -1
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/copy/style/index.css +1 -1
- package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/cropper/style/index.css +1 -1
- package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
- package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/date/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/footer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/month/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/quarter/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/shortcuts.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/week/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/week-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/panels/year/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/date-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/month-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/quarter-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/week-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/pickers/year-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/range-picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/style/index.css +1 -1
- package/es/descriptions/descriptions-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/descriptions/descriptions.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/divider/divider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/drawer/index.js +2 -2
- package/es/dropdown/dropdown-button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-option.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/dropdown/style/index.css +1 -1
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/empty/empty.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/file-previewer/use-pdf-js.js +2 -2
- package/es/form/form-item-label.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/form/form-item-message.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/form/form.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/grid-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/grid-row.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-arrow-up/icon-arrow-up.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-calendar/icon-calendar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-caret-down/icon-caret-down.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-caret-left/icon-caret-left.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-caret-right/icon-caret-right.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-caret-up/icon-caret-up.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-check/icon-check.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-check-circle-fill/icon-check-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-clock-circle/icon-clock-circle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-close/icon-close.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-close-circle-fill/icon-close-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-copy/icon-copy.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-delete/icon-delete.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-double-left/icon-double-left.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-double-right/icon-double-right.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-down/icon-down.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-drag-dot/icon-drag-dot.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-drag-dot-vertical/icon-drag-dot-vertical.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-edit/icon-edit.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-empty/icon-empty.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-exclamation/icon-exclamation.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-eye/icon-eye.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-eye-invisible/icon-eye-invisible.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-face-frown-fill/icon-face-frown-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-face-meh-fill/icon-face-meh-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-face-smile-fill/icon-face-smile-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file/icon-file.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file-audio/icon-file-audio.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file-image/icon-file-image.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file-pdf/icon-file-pdf.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-file-video/icon-file-video.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-filter/icon-filter.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-fullscreen/icon-fullscreen.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-image-close/icon-image-close.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-info/icon-info.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-info-circle-fill/icon-info-circle-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-left/icon-left.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-link/icon-link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-list/icon-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-loading/icon-loading.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-menu-fold/icon-menu-fold.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-menu-unfold/icon-menu-unfold.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-minus/icon-minus.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-more/icon-more.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-mute/icon-mute.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-oblique-line/icon-oblique-line.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-original-size/icon-original-size.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-pause/icon-pause.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-play-arrow-fill/icon-play-arrow-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-plus/icon-plus.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-question-circle/icon-question-circle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-right/icon-right.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-rotate-left/icon-rotate-left.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-rotate-right/icon-rotate-right.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-search/icon-search.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-star-fill/icon-star-fill.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-to-top/icon-to-top.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-up/icon-up.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-upload/icon-upload.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-voice/icon-voice.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-zoom-in/icon-zoom-in.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon/icon-zoom-out/icon-zoom-out.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon-component/add-from-icon-font-cn.js +1 -1
- package/es/icon-component/icon-font.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon-component/icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon.js +5 -5
- package/es/image/image-footer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/image.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-action.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-toolbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/index.css +107 -57
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/es/index.scss +1 -1
- package/es/input/input-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/input/input-password.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/input/input-search.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/input/input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/input-mask/input-mask.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/input-mask/mask-engine.js +1 -1
- package/es/input-number/input-number.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/input-tag/input-tag.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/input-tag/utils.js +1 -1
- package/es/json-form/json-form-component.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/json-form.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/json-form/style/index.css +2 -2
- package/es/json-form/utils.js +1 -1
- package/es/kv-list/kv-list-row.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/kv-list/kv-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/layout/style/index.css +3 -3
- package/es/link/link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/list-item-meta.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/list-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/mention/mention.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/indent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/item-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/overflow-wrap.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/style/index.css +2 -2
- package/es/menu/sub-menu-inline.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/sub-menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/message/index.js +1 -1
- package/es/message/message-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/message/message.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/message/style/index.css +1 -1
- package/es/modal/index.js +2 -2
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/model-selector/model-selector-content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-dialog.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-empty.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-logo-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-logo.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-name.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-separator.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-shortcut.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector-trigger.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/model-selector/model-selector.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/notification/index.js +1 -1
- package/es/notification/notification-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/notification/notification.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/notification/style/index.css +1 -1
- package/es/notification/style/index.scss +3 -1
- package/es/number-flow/number-flow-group.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/number-flow/number-flow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-item-ellipsis.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-item-step.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-jumper.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/page-options.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/pagination/pagination.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/panel-group/context.d.ts +4 -0
- package/es/panel-group/context.js +13 -0
- package/es/panel-group/core/axes.d.ts +33 -0
- package/es/panel-group/core/axes.js +33 -0
- package/es/panel-group/core/dom.d.ts +6 -0
- package/es/panel-group/core/dom.js +42 -0
- package/es/panel-group/core/env.d.ts +9 -0
- package/es/panel-group/core/env.js +31 -0
- package/es/panel-group/core/grips.d.ts +17 -0
- package/es/panel-group/core/grips.js +76 -0
- package/es/panel-group/core/group.d.ts +13 -0
- package/es/panel-group/core/group.js +19 -0
- package/es/panel-group/core/motion.d.ts +16 -0
- package/es/panel-group/core/motion.js +58 -0
- package/es/panel-group/core/panel.d.ts +54 -0
- package/es/panel-group/core/panel.js +277 -0
- package/es/panel-group/core/reorder.d.ts +6 -0
- package/es/panel-group/core/reorder.js +23 -0
- package/es/panel-group/core/separator.d.ts +3 -0
- package/es/panel-group/core/separator.js +130 -0
- package/es/panel-group/core/transition.d.ts +9 -0
- package/es/panel-group/core/transition.js +56 -0
- package/es/panel-group/core/utils.d.ts +11 -0
- package/es/panel-group/core/utils.js +19 -0
- package/es/panel-group/index.d.ts +134 -0
- package/es/panel-group/index.js +22 -0
- package/es/panel-group/panel-group.js +5 -0
- package/es/panel-group/panel-group.vue.d.ts +18 -0
- package/es/panel-group/panel-group.vue_vue_type_script_setup_true_lang.js +53 -0
- package/es/panel-group/panel-separator.js +5 -0
- package/es/panel-group/panel-separator.vue.d.ts +17 -0
- package/es/panel-group/panel-separator.vue_vue_type_script_setup_true_lang.js +119 -0
- package/es/panel-group/panel.js +5 -0
- package/es/panel-group/panel.vue.d.ts +30 -0
- package/es/panel-group/panel.vue_vue_type_script_setup_true_lang.js +251 -0
- package/es/panel-group/style/index.css +110 -0
- package/es/panel-group/style/index.scss +118 -0
- package/es/panel-group/style/token.scss +16 -0
- package/es/panel-group/types.d.ts +21 -0
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/popconfirm/style/index.css +1 -1
- package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/popover/style/index.css +1 -1
- package/es/progress/circle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/progress/line.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/progress/progress.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/progress/steps.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/radio/radio-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/radio/radio.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/rate/rate.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/regex-vis/layout.js +1 -1
- package/es/regex-vis/parser/parser.js +1 -1
- package/es/regex-vis/regex-vis.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/result/403.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/result/404.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/result/500.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/result/result.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/rich-text-editor/nodes/inline-component-node.js +1 -1
- package/es/rich-text-editor/rich-text-editor.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/rich-text-editor/rich-text-node-renderer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/scrollbar/scrollbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sd-vue.js +5 -3
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/select/hooks/use-options.js +1 -1
- package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/select/select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/select/style/index.css +1 -1
- package/es/select/utils.js +1 -1
- package/es/selectable-card/selectable-card.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-header.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-recording-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-skill-tag.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-stop-loading-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender-switch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sender/sender.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/skeleton/line.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/skeleton/shape.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/skeleton/skeleton.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-dots.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-input.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-marks.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider-ticks.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/slider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/slider/style/index.css +1 -1
- package/es/space/space.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/spin/dot-loading.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/spin/spin.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/split/split.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/split/style/index.scss +1 -2
- package/es/split/style/token.scss +0 -3
- package/es/statistic/countdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/steps/step.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/steps/steps.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/style/theme/_tokens.scss +1 -1
- package/es/style/theme/global.scss +69 -31
- package/es/style/theme/index.scss +5 -2
- package/es/switch/style/index.css +1 -1
- package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/table/style/index.css +1 -1
- package/es/table/table-column.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-operation-td.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-operation-th.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-tbody.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-td.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-th.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-thead.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table-tr.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/table/table.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/table/utils.js +1 -1
- package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs-button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs-nav-ink.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs-nav.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs-tab.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/thinking-orb/engine/profiles.js +1 -1
- package/es/thinking-orb/presets.js +1 -1
- package/es/thinking-orb/thinking-orb.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/range-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/style/index.css +1 -1
- package/es/time-picker/time-column.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/timeline/item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/timeline/timeline.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tour/style/index.css +1 -1
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/transfer/transfer-list-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/transfer/transfer-view.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/transfer/transfer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/node-switcher.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/node.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/transition-node-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/tree/utils/tree-data.js +1 -1
- package/es/tree-select/hooks/use-selected-state.js +1 -1
- package/es/tree-select/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree-select/style/index.css +1 -1
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/trigger/trigger.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/base.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/edit-content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/operations.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/paragraph.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/text.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/title.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/typography-content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/typography-operations.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/typography.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/utils/inner-text-renderer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload-button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload-list-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload-picture-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload-progress.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/verification-code/verification-code.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/watermark/hooks/use-mutation-observer.js +1 -1
- package/es/watermark/watermark.vue_vue_type_script_setup_true_lang.js +1 -1
- package/json/vetur-attributes.json +47 -24
- package/json/vetur-tags.json +26 -11
- package/json/web-types.json +134 -53
- package/package.json +5 -4
- package/es/resize-box/index.d.ts +0 -131
- package/es/resize-box/index.js +0 -10
- package/es/resize-box/resize-box.js +0 -5
- package/es/resize-box/resize-box.vue.d.ts +0 -74
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +0 -240
- package/es/resize-box/style/index.css +0 -60
- package/es/resize-box/style/index.scss +0 -62
- package/es/resize-box/style/token.scss +0 -14
- /package/es/{resize-box → panel-group}/style/css.js +0 -0
- /package/es/{resize-box → panel-group}/style/index.d.ts +0 -0
- /package/es/{resize-box → panel-group}/style/index.js +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { inject, provide } from "vue";
|
|
2
|
+
//#region components/panel-group/context.ts
|
|
3
|
+
var PanelGroupKey = Symbol("PanelGroupKey");
|
|
4
|
+
var providePanelGroup = (group) => provide(PanelGroupKey, group);
|
|
5
|
+
var usePanelGroup = () => {
|
|
6
|
+
const group = inject(PanelGroupKey, void 0);
|
|
7
|
+
if (!group) throw new Error("Panel 组件必须位于 PanelGroup 内使用");
|
|
8
|
+
return group;
|
|
9
|
+
};
|
|
10
|
+
/** PanelGroup 自身用于判断是否嵌套。 */
|
|
11
|
+
var injectParentPanelGroup = () => inject(PanelGroupKey, void 0);
|
|
12
|
+
//#endregion
|
|
13
|
+
export { injectParentPanelGroup, providePanelGroup, usePanelGroup };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const AXES: {
|
|
2
|
+
readonly horizontal: {
|
|
3
|
+
readonly axis: 'Inline';
|
|
4
|
+
readonly client: 'clientWidth';
|
|
5
|
+
readonly cross: 'height';
|
|
6
|
+
readonly crossAxis: 'Inline';
|
|
7
|
+
readonly cursor: 'col-resize';
|
|
8
|
+
readonly direction: 'row';
|
|
9
|
+
readonly edge: 'left';
|
|
10
|
+
readonly extent: 'width';
|
|
11
|
+
readonly grow: 'ArrowRight';
|
|
12
|
+
readonly point: 'x';
|
|
13
|
+
readonly separator: 'vertical';
|
|
14
|
+
readonly shrink: 'ArrowLeft';
|
|
15
|
+
};
|
|
16
|
+
readonly vertical: {
|
|
17
|
+
readonly axis: 'Block';
|
|
18
|
+
readonly client: 'clientHeight';
|
|
19
|
+
readonly cross: 'width';
|
|
20
|
+
readonly crossAxis: 'Block';
|
|
21
|
+
readonly cursor: 'row-resize';
|
|
22
|
+
readonly direction: 'column';
|
|
23
|
+
readonly edge: 'top';
|
|
24
|
+
readonly extent: 'height';
|
|
25
|
+
readonly grow: 'ArrowDown';
|
|
26
|
+
readonly point: 'y';
|
|
27
|
+
readonly separator: 'horizontal';
|
|
28
|
+
readonly shrink: 'ArrowUp';
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type Orientation = keyof typeof AXES;
|
|
32
|
+
export type Axes = (typeof AXES)[Orientation];
|
|
33
|
+
export type Side = 'end' | 'start';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region components/panel-group/core/axes.ts
|
|
2
|
+
var AXES = {
|
|
3
|
+
horizontal: {
|
|
4
|
+
axis: "Inline",
|
|
5
|
+
client: "clientWidth",
|
|
6
|
+
cross: "height",
|
|
7
|
+
crossAxis: "Inline",
|
|
8
|
+
cursor: "col-resize",
|
|
9
|
+
direction: "row",
|
|
10
|
+
edge: "left",
|
|
11
|
+
extent: "width",
|
|
12
|
+
grow: "ArrowRight",
|
|
13
|
+
point: "x",
|
|
14
|
+
separator: "vertical",
|
|
15
|
+
shrink: "ArrowLeft"
|
|
16
|
+
},
|
|
17
|
+
vertical: {
|
|
18
|
+
axis: "Block",
|
|
19
|
+
client: "clientHeight",
|
|
20
|
+
cross: "width",
|
|
21
|
+
crossAxis: "Block",
|
|
22
|
+
cursor: "row-resize",
|
|
23
|
+
direction: "column",
|
|
24
|
+
edge: "top",
|
|
25
|
+
extent: "height",
|
|
26
|
+
grow: "ArrowDown",
|
|
27
|
+
point: "y",
|
|
28
|
+
separator: "horizontal",
|
|
29
|
+
shrink: "ArrowUp"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { AXES };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const FILL_ATTRIBUTE = "data-sd-panels-fill";
|
|
2
|
+
export declare const SEPARATOR_ATTRIBUTE = "data-sd-panels-separator";
|
|
3
|
+
export declare const isRtl: (element: Element | null) => boolean;
|
|
4
|
+
export declare const isSeparator: (node: Element | null) => boolean;
|
|
5
|
+
export declare const hasFillAfter: (node: Element | null) => boolean;
|
|
6
|
+
export declare const lockBody: (cursor: string, onEscape: () => void) => () => void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//#region components/panel-group/core/dom.ts
|
|
2
|
+
var FILL_ATTRIBUTE = "data-sd-panels-fill";
|
|
3
|
+
var SEPARATOR_ATTRIBUTE = "data-sd-panels-separator";
|
|
4
|
+
var isRtl = (element) => !!element && getComputedStyle(element).direction === "rtl";
|
|
5
|
+
var isSeparator = (node) => {
|
|
6
|
+
var _node$hasAttribute;
|
|
7
|
+
return (_node$hasAttribute = node === null || node === void 0 ? void 0 : node.hasAttribute("data-sd-panels-separator")) !== null && _node$hasAttribute !== void 0 ? _node$hasAttribute : false;
|
|
8
|
+
};
|
|
9
|
+
var hasFillAfter = (node) => {
|
|
10
|
+
const next = node === null || node === void 0 ? void 0 : node.nextElementSibling;
|
|
11
|
+
return !!next && (next.hasAttribute("data-sd-panels-fill") || hasFillAfter(next));
|
|
12
|
+
};
|
|
13
|
+
var locks = 0;
|
|
14
|
+
var saved = {};
|
|
15
|
+
var lockBody = (cursor, onEscape) => {
|
|
16
|
+
const { style } = document.body;
|
|
17
|
+
const onKeyDown = (event) => {
|
|
18
|
+
if (event.key === "Escape") {
|
|
19
|
+
event.preventDefault();
|
|
20
|
+
onEscape();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
if (locks === 0) saved = {
|
|
24
|
+
cursor: style.cursor,
|
|
25
|
+
userSelect: style.userSelect,
|
|
26
|
+
webkitUserSelect: style.webkitUserSelect
|
|
27
|
+
};
|
|
28
|
+
locks += 1;
|
|
29
|
+
Object.assign(style, {
|
|
30
|
+
cursor,
|
|
31
|
+
userSelect: "none",
|
|
32
|
+
webkitUserSelect: "none"
|
|
33
|
+
});
|
|
34
|
+
addEventListener("keydown", onKeyDown, true);
|
|
35
|
+
return () => {
|
|
36
|
+
locks -= 1;
|
|
37
|
+
if (locks === 0) Object.assign(style, saved);
|
|
38
|
+
removeEventListener("keydown", onKeyDown, true);
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { FILL_ATTRIBUTE, SEPARATOR_ATTRIBUTE, hasFillAfter, isRtl, isSeparator, lockBody };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const coarsePointer: {
|
|
2
|
+
get: () => boolean;
|
|
3
|
+
subscribe: (listener: () => void) => () => void | undefined;
|
|
4
|
+
};
|
|
5
|
+
export declare const reducedMotion: {
|
|
6
|
+
get: () => boolean;
|
|
7
|
+
subscribe: (listener: () => void) => () => void | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const edgeSize: () => 8 | 20;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//#region components/panel-group/core/env.ts
|
|
2
|
+
var media = (query) => {
|
|
3
|
+
let list;
|
|
4
|
+
const get = () => {
|
|
5
|
+
var _list;
|
|
6
|
+
(_list = list) !== null && _list !== void 0 || (list = typeof matchMedia === "function" ? matchMedia(query) : void 0);
|
|
7
|
+
return list;
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
get: () => {
|
|
11
|
+
var _get$matches, _get;
|
|
12
|
+
return (_get$matches = (_get = get()) === null || _get === void 0 ? void 0 : _get.matches) !== null && _get$matches !== void 0 ? _get$matches : false;
|
|
13
|
+
},
|
|
14
|
+
subscribe: (listener) => {
|
|
15
|
+
var _get2;
|
|
16
|
+
(_get2 = get()) === null || _get2 === void 0 || _get2.addEventListener("change", listener);
|
|
17
|
+
return () => {
|
|
18
|
+
var _get3;
|
|
19
|
+
return (_get3 = get()) === null || _get3 === void 0 ? void 0 : _get3.removeEventListener("change", listener);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
var coarsePointer = media("(pointer: coarse)");
|
|
25
|
+
var reducedMotion = media("(prefers-reduced-motion: reduce)");
|
|
26
|
+
var EDGE_SIZE_FINE = 8;
|
|
27
|
+
var EDGE_SIZE_COARSE = 20;
|
|
28
|
+
/** 边缘伸缩杆的命中厚度(px)。 */
|
|
29
|
+
var edgeSize = () => coarsePointer.get() ? EDGE_SIZE_COARSE : EDGE_SIZE_FINE;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { coarsePointer, edgeSize, reducedMotion };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PanelController } from './panel';
|
|
2
|
+
export type GripState = 'crossed' | 'held' | null;
|
|
3
|
+
export interface Point {
|
|
4
|
+
clientX: number;
|
|
5
|
+
clientY: number;
|
|
6
|
+
}
|
|
7
|
+
declare const invalidate: () => void;
|
|
8
|
+
export declare const grips: {
|
|
9
|
+
at(point: Point): HTMLElement[];
|
|
10
|
+
invalidate: typeof invalidate;
|
|
11
|
+
mark(key: 'crossed' | 'held', elements: HTMLElement[]): void;
|
|
12
|
+
partners(elements: HTMLElement[], self: HTMLElement | null): PanelController[];
|
|
13
|
+
register(element: HTMLElement, controller: PanelController): () => void;
|
|
14
|
+
state(element: HTMLElement | null): GripState;
|
|
15
|
+
subscribe: (listener: () => void) => () => void;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { emitter } from "./utils.js";
|
|
2
|
+
import { coarsePointer } from "./env.js";
|
|
3
|
+
//#region components/panel-group/core/grips.ts
|
|
4
|
+
var HIT_MARGIN_FINE = 5;
|
|
5
|
+
var HIT_MARGIN_COARSE = 12;
|
|
6
|
+
var registry = /* @__PURE__ */ new Map();
|
|
7
|
+
var bus = emitter();
|
|
8
|
+
var marks = {
|
|
9
|
+
crossed: /* @__PURE__ */ new Set(),
|
|
10
|
+
held: /* @__PURE__ */ new Set()
|
|
11
|
+
};
|
|
12
|
+
var rects = null;
|
|
13
|
+
var watching;
|
|
14
|
+
var invalidate = () => {
|
|
15
|
+
rects = null;
|
|
16
|
+
};
|
|
17
|
+
var sameSet = (elements, current) => elements.length === current.size && elements.every((element) => current.has(element));
|
|
18
|
+
var measure = () => {
|
|
19
|
+
var _rects;
|
|
20
|
+
(_rects = rects) !== null && _rects !== void 0 || (rects = [...registry.keys()].map((element) => ({
|
|
21
|
+
element,
|
|
22
|
+
rect: element.getBoundingClientRect()
|
|
23
|
+
})));
|
|
24
|
+
return rects;
|
|
25
|
+
};
|
|
26
|
+
var grips = {
|
|
27
|
+
/** 返回与该点相交(需 ≥2 个杆同时命中)的元素列表。 */
|
|
28
|
+
at(point) {
|
|
29
|
+
if (registry.size < 2) return [];
|
|
30
|
+
const margin = coarsePointer.get() ? HIT_MARGIN_COARSE : HIT_MARGIN_FINE;
|
|
31
|
+
const hits = measure().filter(({ rect }) => point.clientX >= rect.left - margin && point.clientX <= rect.right + margin && point.clientY >= rect.top - margin && point.clientY <= rect.bottom + margin).map(({ element }) => element);
|
|
32
|
+
return hits.length > 1 ? hits : [];
|
|
33
|
+
},
|
|
34
|
+
invalidate,
|
|
35
|
+
mark(key, elements) {
|
|
36
|
+
if (sameSet(elements, marks[key])) return;
|
|
37
|
+
marks[key] = new Set(elements);
|
|
38
|
+
bus.emit();
|
|
39
|
+
},
|
|
40
|
+
partners(elements, self) {
|
|
41
|
+
return elements.filter((element) => element !== self).map((element) => registry.get(element)).filter((controller) => controller !== void 0);
|
|
42
|
+
},
|
|
43
|
+
register(element, controller) {
|
|
44
|
+
registry.set(element, controller);
|
|
45
|
+
invalidate();
|
|
46
|
+
if (!watching && typeof window !== "undefined") {
|
|
47
|
+
watching = new AbortController();
|
|
48
|
+
const { signal } = watching;
|
|
49
|
+
addEventListener("resize", invalidate, { signal });
|
|
50
|
+
addEventListener("scroll", invalidate, {
|
|
51
|
+
capture: true,
|
|
52
|
+
passive: true,
|
|
53
|
+
signal
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
const stop = controller.motion.size.on("change", invalidate);
|
|
57
|
+
return () => {
|
|
58
|
+
stop();
|
|
59
|
+
registry.delete(element);
|
|
60
|
+
marks.crossed.delete(element);
|
|
61
|
+
marks.held.delete(element);
|
|
62
|
+
invalidate();
|
|
63
|
+
if (registry.size === 0) {
|
|
64
|
+
watching === null || watching === void 0 || watching.abort();
|
|
65
|
+
watching = void 0;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
state(element) {
|
|
70
|
+
if (!element) return null;
|
|
71
|
+
return marks.held.has(element) ? "held" : marks.crossed.has(element) ? "crossed" : null;
|
|
72
|
+
},
|
|
73
|
+
subscribe: bus.subscribe
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
export { grips };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Axes, Orientation, Side } from './axes';
|
|
2
|
+
import type { PanelController } from './panel';
|
|
3
|
+
export interface EngineGroup {
|
|
4
|
+
axes: Axes;
|
|
5
|
+
fill: {
|
|
6
|
+
anchor: 'flex-start' | 'flex-end';
|
|
7
|
+
size: number | '100%';
|
|
8
|
+
};
|
|
9
|
+
notify: () => void;
|
|
10
|
+
panels: Map<Side, PanelController>;
|
|
11
|
+
subscribe: (listener: () => void) => () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const createEngineGroup: (orientation?: Orientation) => EngineGroup;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AXES } from "./axes.js";
|
|
2
|
+
import { emitter } from "./utils.js";
|
|
3
|
+
import { reactive } from "vue";
|
|
4
|
+
//#region components/panel-group/core/group.ts
|
|
5
|
+
var createEngineGroup = (orientation = "horizontal") => {
|
|
6
|
+
const bus = emitter();
|
|
7
|
+
return {
|
|
8
|
+
axes: AXES[orientation],
|
|
9
|
+
fill: reactive({
|
|
10
|
+
anchor: "flex-start",
|
|
11
|
+
size: "100%"
|
|
12
|
+
}),
|
|
13
|
+
notify: () => bus.emit(),
|
|
14
|
+
panels: /* @__PURE__ */ new Map(),
|
|
15
|
+
subscribe: bus.subscribe
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { createEngineGroup };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ResolvedTransition } from './transition';
|
|
2
|
+
export type MotionValueEvent = 'change' | 'animationComplete';
|
|
3
|
+
export type MotionValueListener = (value: number) => void;
|
|
4
|
+
export declare class MotionValue {
|
|
5
|
+
private current;
|
|
6
|
+
private changeListeners;
|
|
7
|
+
private completeListeners;
|
|
8
|
+
private stopAnimation;
|
|
9
|
+
constructor(initial?: number);
|
|
10
|
+
get(): number;
|
|
11
|
+
jump(value: number): void;
|
|
12
|
+
private set;
|
|
13
|
+
animate(target: number, transition?: ResolvedTransition): void;
|
|
14
|
+
stop(): void;
|
|
15
|
+
on(event: MotionValueEvent, listener: MotionValueListener | (() => void)): () => void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import _objectWithoutProperties from "../../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/objectWithoutProperties.js";
|
|
3
|
+
import { timing } from "./transition.js";
|
|
4
|
+
import { animate } from "motion-v";
|
|
5
|
+
//#region components/panel-group/core/motion.ts
|
|
6
|
+
var _excluded = ["duration", "easing"];
|
|
7
|
+
var MotionValue = class {
|
|
8
|
+
constructor(initial = 0) {
|
|
9
|
+
this.changeListeners = /* @__PURE__ */ new Set();
|
|
10
|
+
this.completeListeners = /* @__PURE__ */ new Set();
|
|
11
|
+
this.current = initial;
|
|
12
|
+
}
|
|
13
|
+
get() {
|
|
14
|
+
return this.current;
|
|
15
|
+
}
|
|
16
|
+
jump(value) {
|
|
17
|
+
this.stop();
|
|
18
|
+
this.set(value);
|
|
19
|
+
}
|
|
20
|
+
set(value) {
|
|
21
|
+
if (value === this.current) return;
|
|
22
|
+
this.current = value;
|
|
23
|
+
this.changeListeners.forEach((listener) => listener(value));
|
|
24
|
+
}
|
|
25
|
+
animate(target, transition = timing()) {
|
|
26
|
+
this.stop();
|
|
27
|
+
const { duration, easing } = transition, options = _objectWithoutProperties(transition, _excluded);
|
|
28
|
+
const complete = () => {
|
|
29
|
+
this.set(target);
|
|
30
|
+
this.completeListeners.forEach((listener) => listener());
|
|
31
|
+
};
|
|
32
|
+
if (target === this.current || duration <= 0) {
|
|
33
|
+
complete();
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const animation = animate(this.current, target, _objectSpread2(_objectSpread2({}, options), {}, {
|
|
37
|
+
duration: duration / 1e3,
|
|
38
|
+
ease: easing,
|
|
39
|
+
onUpdate: (value) => this.set(value),
|
|
40
|
+
onComplete: complete
|
|
41
|
+
}));
|
|
42
|
+
this.stopAnimation = () => animation.stop();
|
|
43
|
+
}
|
|
44
|
+
stop() {
|
|
45
|
+
var _this$stopAnimation;
|
|
46
|
+
(_this$stopAnimation = this.stopAnimation) === null || _this$stopAnimation === void 0 || _this$stopAnimation.call(this);
|
|
47
|
+
this.stopAnimation = void 0;
|
|
48
|
+
}
|
|
49
|
+
on(event, listener) {
|
|
50
|
+
const set = event === "change" ? this.changeListeners : this.completeListeners;
|
|
51
|
+
set.add(listener);
|
|
52
|
+
return () => {
|
|
53
|
+
set.delete(listener);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { MotionValue };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { PanelSize, PanelTransition } from '../types';
|
|
2
|
+
import type { EngineGroup } from './group';
|
|
3
|
+
import { MotionValue } from './motion';
|
|
4
|
+
export interface PanelOptions {
|
|
5
|
+
collapsed?: boolean;
|
|
6
|
+
defaultSize?: PanelSize;
|
|
7
|
+
maxSize?: PanelSize;
|
|
8
|
+
minSize?: PanelSize;
|
|
9
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
10
|
+
onSizeChange?: (size: PanelSize) => void;
|
|
11
|
+
size: PanelSize;
|
|
12
|
+
transition?: PanelTransition;
|
|
13
|
+
}
|
|
14
|
+
export interface PanelState {
|
|
15
|
+
bare: boolean;
|
|
16
|
+
dragging: boolean;
|
|
17
|
+
end: boolean | undefined;
|
|
18
|
+
folding: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface PanelKeyEvent {
|
|
21
|
+
key: string;
|
|
22
|
+
preventDefault: () => void;
|
|
23
|
+
shiftKey: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface PanelDrag {
|
|
26
|
+
cancel: () => void;
|
|
27
|
+
end: () => void;
|
|
28
|
+
move: (offset: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
}) => void;
|
|
32
|
+
start: (cursor?: string) => void;
|
|
33
|
+
}
|
|
34
|
+
export interface PanelController {
|
|
35
|
+
attach: (element: HTMLElement) => () => void;
|
|
36
|
+
bounds: () => {
|
|
37
|
+
max: number;
|
|
38
|
+
min: number;
|
|
39
|
+
};
|
|
40
|
+
destroy: () => void;
|
|
41
|
+
drag: PanelDrag;
|
|
42
|
+
motion: {
|
|
43
|
+
content: MotionValue;
|
|
44
|
+
size: MotionValue;
|
|
45
|
+
};
|
|
46
|
+
options: PanelOptions;
|
|
47
|
+
reset: () => void;
|
|
48
|
+
resizeByKey: (event: PanelKeyEvent) => void;
|
|
49
|
+
state: PanelState;
|
|
50
|
+
subscribe: (listener: () => void) => () => void;
|
|
51
|
+
sync: (options: PanelOptions, mounting?: boolean) => void;
|
|
52
|
+
target: number;
|
|
53
|
+
}
|
|
54
|
+
export declare const createPanel: (group: EngineGroup, initial: PanelOptions) => PanelController;
|