@sdata/web-vue 4.5.5 → 4.6.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 +70 -20
- package/dist/sd.min.css +1 -1
- 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/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/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/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/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/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/cropper/cropper.vue_vue_type_script_setup_true_lang.js +2 -2
- 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/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/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 +70 -20
- 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/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/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/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/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/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/popover/popover.vue_vue_type_script_setup_true_lang.js +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/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/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/switch/style/index.css +1 -1
- package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +2 -2
- 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/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/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/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,22 @@
|
|
|
1
|
+
import { getComponentPrefix, setGlobalConfig } from "../_utils/global-config.js";
|
|
2
|
+
import panel_group_default from "./panel-group.js";
|
|
3
|
+
import panel_separator_default from "./panel-separator.js";
|
|
4
|
+
import panel_default from "./panel.js";
|
|
5
|
+
//#region components/panel-group/index.ts
|
|
6
|
+
var PanelGroup = Object.assign(panel_group_default, { install: (app, options) => {
|
|
7
|
+
setGlobalConfig(app, options);
|
|
8
|
+
const componentPrefix = getComponentPrefix(options);
|
|
9
|
+
app.component(componentPrefix + panel_group_default.name, panel_group_default);
|
|
10
|
+
} });
|
|
11
|
+
var Panel = Object.assign(panel_default, { install: (app, options) => {
|
|
12
|
+
setGlobalConfig(app, options);
|
|
13
|
+
const componentPrefix = getComponentPrefix(options);
|
|
14
|
+
app.component(componentPrefix + panel_default.name, panel_default);
|
|
15
|
+
} });
|
|
16
|
+
var PanelSeparator = Object.assign(panel_separator_default, { install: (app, options) => {
|
|
17
|
+
setGlobalConfig(app, options);
|
|
18
|
+
const componentPrefix = getComponentPrefix(options);
|
|
19
|
+
app.component(componentPrefix + panel_separator_default.name, panel_separator_default);
|
|
20
|
+
} });
|
|
21
|
+
//#endregion
|
|
22
|
+
export { Panel, PanelSeparator, PanelGroup as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import panel_group_vue_vue_type_script_setup_true_lang_default from "./panel-group.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region components/panel-group/panel-group.vue
|
|
3
|
+
var panel_group_default = panel_group_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { panel_group_default as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PanelTransition } from './types';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
default?: () => unknown;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
orientation?: 'horizontal' | 'vertical';
|
|
7
|
+
reorder?: boolean;
|
|
8
|
+
transition?: PanelTransition;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
|
+
import { injectParentPanelGroup, providePanelGroup } from "./context.js";
|
|
4
|
+
import { createEngineGroup } from "./core/group.js";
|
|
5
|
+
import { reorder } from "./core/reorder.js";
|
|
6
|
+
import { computed, createElementBlock, defineComponent, normalizeClass, normalizeStyle, onBeforeUpdate, onUpdated, openBlock, ref, renderSlot } from "vue";
|
|
7
|
+
//#region components/panel-group/panel-group.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var panel_group_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "PanelGroup" }), {}, {
|
|
9
|
+
__name: "panel-group",
|
|
10
|
+
props: {
|
|
11
|
+
orientation: {},
|
|
12
|
+
reorder: { type: Boolean },
|
|
13
|
+
transition: {}
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
var _props$orientation;
|
|
17
|
+
/** @zh 面板与伸缩杆 @en Panels and separators */
|
|
18
|
+
const props = __props;
|
|
19
|
+
const parentGroup = injectParentPanelGroup();
|
|
20
|
+
const group = createEngineGroup((_props$orientation = props.orientation) !== null && _props$orientation !== void 0 ? _props$orientation : "horizontal");
|
|
21
|
+
providePanelGroup(group);
|
|
22
|
+
const rootRef = ref();
|
|
23
|
+
const prefixCls = getPrefixCls("panel-group");
|
|
24
|
+
const classNames = computed(() => [prefixCls]);
|
|
25
|
+
const rootStyle = computed(() => ({
|
|
26
|
+
display: "flex",
|
|
27
|
+
flexDirection: group.axes.direction,
|
|
28
|
+
height: "100%",
|
|
29
|
+
width: "100%",
|
|
30
|
+
overflow: parentGroup ? void 0 : "clip"
|
|
31
|
+
}));
|
|
32
|
+
let beforeBoxes = null;
|
|
33
|
+
onBeforeUpdate(() => {
|
|
34
|
+
if (props.reorder !== false && rootRef.value) beforeBoxes = reorder.measure(rootRef.value, group.axes);
|
|
35
|
+
});
|
|
36
|
+
onUpdated(() => {
|
|
37
|
+
const boxes = beforeBoxes;
|
|
38
|
+
beforeBoxes = null;
|
|
39
|
+
if (boxes) reorder.play(boxes, group.axes, props.transition);
|
|
40
|
+
group.notify();
|
|
41
|
+
});
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return openBlock(), createElementBlock("div", {
|
|
44
|
+
ref_key: "rootRef",
|
|
45
|
+
ref: rootRef,
|
|
46
|
+
class: normalizeClass(classNames.value),
|
|
47
|
+
style: normalizeStyle(rootStyle.value)
|
|
48
|
+
}, [renderSlot(_ctx.$slots, "default")], 6);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}));
|
|
52
|
+
//#endregion
|
|
53
|
+
export { panel_group_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import panel_separator_vue_vue_type_script_setup_true_lang_default from "./panel-separator.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region components/panel-group/panel-separator.vue
|
|
3
|
+
var panel_separator_default = panel_separator_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { panel_separator_default as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PanelController } from './core/panel';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
default?: () => unknown;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
own?: PanelController;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
|
+
import { useI18n } from "../locale/index.js";
|
|
4
|
+
import IconDragDotVertical from "../icon/icon-drag-dot-vertical/index.js";
|
|
5
|
+
import { usePanelGroup } from "./context.js";
|
|
6
|
+
import { edgeSize } from "./core/env.js";
|
|
7
|
+
import IconDragDot from "../icon/icon-drag-dot/index.js";
|
|
8
|
+
import { attachSeparator } from "./core/separator.js";
|
|
9
|
+
import { computed, createBlock, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, unref } from "vue";
|
|
10
|
+
//#region components/panel-group/panel-separator.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var _hoisted_1 = ["aria-orientation", "aria-label"];
|
|
12
|
+
var _hoisted_2 = ["aria-orientation", "aria-label"];
|
|
13
|
+
var panel_separator_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
14
|
+
name: "PanelSeparator",
|
|
15
|
+
inheritAttrs: false
|
|
16
|
+
}), {}, {
|
|
17
|
+
__name: "panel-separator",
|
|
18
|
+
props: {
|
|
19
|
+
ariaLabel: {},
|
|
20
|
+
own: {}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
var _props$own$state$end, _props$own;
|
|
24
|
+
/** @zh 自定义伸缩杆内容 @en Custom resize grip content */
|
|
25
|
+
const props = __props;
|
|
26
|
+
const { t } = useI18n();
|
|
27
|
+
const group = usePanelGroup();
|
|
28
|
+
const { axes } = group;
|
|
29
|
+
const prefixCls = getPrefixCls("panel-separator");
|
|
30
|
+
const gripRef = ref();
|
|
31
|
+
let detach;
|
|
32
|
+
const ownEnd = ref((_props$own$state$end = (_props$own = props.own) === null || _props$own === void 0 ? void 0 : _props$own.state.end) !== null && _props$own$state$end !== void 0 ? _props$own$state$end : false);
|
|
33
|
+
let unsubOwn;
|
|
34
|
+
if (props.own) unsubOwn = props.own.subscribe(() => {
|
|
35
|
+
var _props$own$state$end2, _props$own2;
|
|
36
|
+
ownEnd.value = (_props$own$state$end2 = (_props$own2 = props.own) === null || _props$own2 === void 0 ? void 0 : _props$own2.state.end) !== null && _props$own$state$end2 !== void 0 ? _props$own$state$end2 : false;
|
|
37
|
+
});
|
|
38
|
+
onMounted(() => {
|
|
39
|
+
if (gripRef.value) detach = attachSeparator(gripRef.value, group, props.own);
|
|
40
|
+
});
|
|
41
|
+
onBeforeUnmount(() => {
|
|
42
|
+
detach === null || detach === void 0 || detach();
|
|
43
|
+
unsubOwn === null || unsubOwn === void 0 || unsubOwn();
|
|
44
|
+
});
|
|
45
|
+
const ariaLabel = computed(() => {
|
|
46
|
+
var _props$ariaLabel;
|
|
47
|
+
return (_props$ariaLabel = props.ariaLabel) !== null && _props$ariaLabel !== void 0 ? _props$ariaLabel : t("a11y.resize");
|
|
48
|
+
});
|
|
49
|
+
const slotClass = computed(() => props.own ? [`${prefixCls}-edge`] : [prefixCls]);
|
|
50
|
+
const triggerCls = getPrefixCls("resizebox-trigger");
|
|
51
|
+
const gripClass = [
|
|
52
|
+
`${prefixCls}-grip`,
|
|
53
|
+
triggerCls,
|
|
54
|
+
`${triggerCls}-${axes.separator}`
|
|
55
|
+
];
|
|
56
|
+
const ownStyle = computed(() => {
|
|
57
|
+
const end = ownEnd.value;
|
|
58
|
+
return {
|
|
59
|
+
position: "absolute",
|
|
60
|
+
[axes.axis === "Inline" ? end ? "insetInlineEnd" : "insetInlineStart" : end ? "insetBlockEnd" : "insetBlockStart"]: 0,
|
|
61
|
+
[axes.axis === "Inline" ? "insetBlock" : "insetInline"]: 0
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
const slotStyle = computed(() => ({ [axes.extent]: 0 }));
|
|
65
|
+
const gripStyle = computed(() => _objectSpread2({ cursor: axes.cursor }, props.own ? { [axes.extent]: `${edgeSize()}px` } : {}));
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
return __props.own ? (openBlock(), createElementBlock("div", {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: normalizeClass(slotClass.value),
|
|
70
|
+
style: normalizeStyle(ownStyle.value)
|
|
71
|
+
}, [createElementVNode("div", mergeProps({
|
|
72
|
+
ref_key: "gripRef",
|
|
73
|
+
ref: gripRef
|
|
74
|
+
}, _ctx.$attrs, {
|
|
75
|
+
class: gripClass,
|
|
76
|
+
style: gripStyle.value,
|
|
77
|
+
role: "separator",
|
|
78
|
+
tabindex: "0",
|
|
79
|
+
"aria-orientation": unref(axes).separator,
|
|
80
|
+
"aria-label": ariaLabel.value
|
|
81
|
+
}), [renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("div", {
|
|
82
|
+
class: normalizeClass(`${unref(triggerCls)}-icon-wrapper`),
|
|
83
|
+
"aria-hidden": "true"
|
|
84
|
+
}, [unref(axes).separator === "horizontal" ? (openBlock(), createBlock(unref(IconDragDot), {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: normalizeClass(`${unref(triggerCls)}-icon`)
|
|
87
|
+
}, null, 8, ["class"])) : (openBlock(), createBlock(unref(IconDragDotVertical), {
|
|
88
|
+
key: 1,
|
|
89
|
+
class: normalizeClass(`${unref(triggerCls)}-icon`)
|
|
90
|
+
}, null, 8, ["class"]))], 2)])], 16, _hoisted_1)], 6)) : (openBlock(), createElementBlock("div", {
|
|
91
|
+
key: 1,
|
|
92
|
+
class: normalizeClass(slotClass.value),
|
|
93
|
+
style: normalizeStyle(slotStyle.value),
|
|
94
|
+
"data-sd-panels-separator": ""
|
|
95
|
+
}, [createElementVNode("div", mergeProps({
|
|
96
|
+
ref_key: "gripRef",
|
|
97
|
+
ref: gripRef
|
|
98
|
+
}, _ctx.$attrs, {
|
|
99
|
+
class: gripClass,
|
|
100
|
+
style: gripStyle.value,
|
|
101
|
+
role: "separator",
|
|
102
|
+
tabindex: "0",
|
|
103
|
+
"aria-orientation": unref(axes).separator,
|
|
104
|
+
"aria-label": ariaLabel.value
|
|
105
|
+
}), [renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("div", {
|
|
106
|
+
class: normalizeClass(`${unref(triggerCls)}-icon-wrapper`),
|
|
107
|
+
"aria-hidden": "true"
|
|
108
|
+
}, [unref(axes).separator === "horizontal" ? (openBlock(), createBlock(unref(IconDragDot), {
|
|
109
|
+
key: 0,
|
|
110
|
+
class: normalizeClass(`${unref(triggerCls)}-icon`)
|
|
111
|
+
}, null, 8, ["class"])) : (openBlock(), createBlock(unref(IconDragDotVertical), {
|
|
112
|
+
key: 1,
|
|
113
|
+
class: normalizeClass(`${unref(triggerCls)}-icon`)
|
|
114
|
+
}, null, 8, ["class"]))], 2)])], 16, _hoisted_2)], 6));
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}));
|
|
118
|
+
//#endregion
|
|
119
|
+
export { panel_separator_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import panel_vue_vue_type_script_setup_true_lang_default from "./panel.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region components/panel-group/panel.vue
|
|
3
|
+
var panel_default = panel_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { panel_default as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { PanelFold, PanelSize, PanelSlotProps, PanelTransition } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
size?: PanelSize;
|
|
4
|
+
collapsed?: boolean;
|
|
5
|
+
defaultSize?: PanelSize;
|
|
6
|
+
fold?: PanelFold;
|
|
7
|
+
minSize?: PanelSize;
|
|
8
|
+
maxSize?: PanelSize;
|
|
9
|
+
pin?: boolean;
|
|
10
|
+
keepMounted?: boolean;
|
|
11
|
+
transition?: PanelTransition;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_Slots = {
|
|
14
|
+
default?: (props: PanelSlotProps) => unknown;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:collapsed": (collapsed: boolean) => any;
|
|
18
|
+
"update:size": (size: PanelSize) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
|
21
|
+
"onUpdate:size"?: ((size: PanelSize) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/objectSpread2.js";
|
|
2
|
+
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
|
+
import { usePanelGroup } from "./context.js";
|
|
4
|
+
import { cssEasing, timing } from "./core/transition.js";
|
|
5
|
+
import panel_separator_default from "./panel-separator.js";
|
|
6
|
+
import { createPanel } from "./core/panel.js";
|
|
7
|
+
import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, unref, watch, withCtx } from "vue";
|
|
8
|
+
//#region components/panel-group/panel.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
10
|
+
name: "Panel",
|
|
11
|
+
inheritAttrs: false
|
|
12
|
+
}), {}, {
|
|
13
|
+
__name: "panel",
|
|
14
|
+
props: {
|
|
15
|
+
size: {},
|
|
16
|
+
collapsed: { type: Boolean },
|
|
17
|
+
defaultSize: {},
|
|
18
|
+
fold: {},
|
|
19
|
+
minSize: {},
|
|
20
|
+
maxSize: {},
|
|
21
|
+
pin: { type: Boolean },
|
|
22
|
+
keepMounted: { type: Boolean },
|
|
23
|
+
transition: {}
|
|
24
|
+
},
|
|
25
|
+
emits: ["update:size", "update:collapsed"],
|
|
26
|
+
setup(__props, { emit: __emit }) {
|
|
27
|
+
var _getCurrentInstance, _props$size, _controller$state;
|
|
28
|
+
const props = __props;
|
|
29
|
+
const emit = __emit;
|
|
30
|
+
/**
|
|
31
|
+
* @zh 面板内容
|
|
32
|
+
* @en Panel content
|
|
33
|
+
* @slot default
|
|
34
|
+
* @binding {PanelSlotProps} collapsed/dragging/folding 面板状态
|
|
35
|
+
*/
|
|
36
|
+
const group = usePanelGroup();
|
|
37
|
+
const { axes } = group;
|
|
38
|
+
const prefixCls = getPrefixCls("panel");
|
|
39
|
+
const hasCollapsedBinding = !!((_getCurrentInstance = getCurrentInstance()) === null || _getCurrentInstance === void 0 || (_getCurrentInstance = _getCurrentInstance.vnode.props) === null || _getCurrentInstance === void 0 ? void 0 : _getCurrentInstance["onUpdate:collapsed"]);
|
|
40
|
+
const sized = props.size !== void 0;
|
|
41
|
+
const controller = sized ? createPanel(group, {
|
|
42
|
+
size: (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : "100%",
|
|
43
|
+
collapsed: props.collapsed,
|
|
44
|
+
defaultSize: props.defaultSize,
|
|
45
|
+
minSize: props.minSize,
|
|
46
|
+
maxSize: props.maxSize,
|
|
47
|
+
transition: props.transition,
|
|
48
|
+
onSizeChange: (value) => emit("update:size", value),
|
|
49
|
+
onCollapsedChange: hasCollapsedBinding ? (value) => {
|
|
50
|
+
emit("update:collapsed", value);
|
|
51
|
+
} : void 0
|
|
52
|
+
}) : void 0;
|
|
53
|
+
const unsubs = [];
|
|
54
|
+
const panelState = ref((_controller$state = controller === null || controller === void 0 ? void 0 : controller.state) !== null && _controller$state !== void 0 ? _controller$state : {
|
|
55
|
+
bare: false,
|
|
56
|
+
dragging: false,
|
|
57
|
+
end: void 0,
|
|
58
|
+
folding: false
|
|
59
|
+
});
|
|
60
|
+
if (controller) unsubs.push(controller.subscribe(() => {
|
|
61
|
+
panelState.value = controller.state;
|
|
62
|
+
}));
|
|
63
|
+
const state = panelState;
|
|
64
|
+
const present = computed(() => {
|
|
65
|
+
var _props$fold;
|
|
66
|
+
return !props.collapsed || state.value.dragging || ((_props$fold = props.fold) === null || _props$fold === void 0 ? void 0 : _props$fold.hidden) === void 0 && state.value.folding;
|
|
67
|
+
});
|
|
68
|
+
const wasPresent = ref(present.value);
|
|
69
|
+
watch(present, (value) => {
|
|
70
|
+
if (value) wasPresent.value = true;
|
|
71
|
+
});
|
|
72
|
+
const contentMounted = computed(() => props.keepMounted === false ? present.value : wasPresent.value || present.value);
|
|
73
|
+
const contentPose = computed(() => {
|
|
74
|
+
var _props$fold2, _props$fold3, _props$fold4;
|
|
75
|
+
return present.value || !((_props$fold2 = props.fold) === null || _props$fold2 === void 0 ? void 0 : _props$fold2.hidden) ? (_props$fold3 = props.fold) === null || _props$fold3 === void 0 ? void 0 : _props$fold3.shown : (_props$fold4 = props.fold) === null || _props$fold4 === void 0 ? void 0 : _props$fold4.hidden;
|
|
76
|
+
});
|
|
77
|
+
const poseTransition = computed(() => {
|
|
78
|
+
var _props$transition$dur, _props$transition;
|
|
79
|
+
const duration = (_props$transition$dur = (_props$transition = props.transition) === null || _props$transition === void 0 ? void 0 : _props$transition.duration) !== null && _props$transition$dur !== void 0 ? _props$transition$dur : 250;
|
|
80
|
+
const easing = cssEasing(props.transition);
|
|
81
|
+
return { transition: `transform ${duration}ms ${easing}, opacity ${duration}ms ${easing}` };
|
|
82
|
+
});
|
|
83
|
+
const contentStyle = computed(() => [
|
|
84
|
+
{ [axes.cross]: "100%" },
|
|
85
|
+
poseTransition.value,
|
|
86
|
+
contentPose.value
|
|
87
|
+
]);
|
|
88
|
+
const contentAnimations = /* @__PURE__ */ new Map();
|
|
89
|
+
const cancelContent = (el) => {
|
|
90
|
+
var _contentAnimations$ge;
|
|
91
|
+
(_contentAnimations$ge = contentAnimations.get(el)) === null || _contentAnimations$ge === void 0 || _contentAnimations$ge.cancel();
|
|
92
|
+
contentAnimations.delete(el);
|
|
93
|
+
};
|
|
94
|
+
const animateContent = (el, done, entering) => {
|
|
95
|
+
var _props$fold5, _props$fold$shown$opa, _props$fold$shown, _props$fold$shown$tra, _props$fold$shown2, _props$fold$hidden$op, _props$fold$hidden$tr;
|
|
96
|
+
cancelContent(el);
|
|
97
|
+
if (props.keepMounted !== false || !((_props$fold5 = props.fold) === null || _props$fold5 === void 0 ? void 0 : _props$fold5.hidden)) {
|
|
98
|
+
done();
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const shown = {
|
|
102
|
+
opacity: (_props$fold$shown$opa = (_props$fold$shown = props.fold.shown) === null || _props$fold$shown === void 0 ? void 0 : _props$fold$shown.opacity) !== null && _props$fold$shown$opa !== void 0 ? _props$fold$shown$opa : 1,
|
|
103
|
+
transform: (_props$fold$shown$tra = (_props$fold$shown2 = props.fold.shown) === null || _props$fold$shown2 === void 0 ? void 0 : _props$fold$shown2.transform) !== null && _props$fold$shown$tra !== void 0 ? _props$fold$shown$tra : "none"
|
|
104
|
+
};
|
|
105
|
+
const hidden = {
|
|
106
|
+
opacity: (_props$fold$hidden$op = props.fold.hidden.opacity) !== null && _props$fold$hidden$op !== void 0 ? _props$fold$hidden$op : shown.opacity,
|
|
107
|
+
transform: (_props$fold$hidden$tr = props.fold.hidden.transform) !== null && _props$fold$hidden$tr !== void 0 ? _props$fold$hidden$tr : shown.transform
|
|
108
|
+
};
|
|
109
|
+
const animation = el.animate(entering ? [hidden, shown] : [shown, hidden], {
|
|
110
|
+
duration: timing(props.transition).duration,
|
|
111
|
+
easing: cssEasing(props.transition)
|
|
112
|
+
});
|
|
113
|
+
contentAnimations.set(el, animation);
|
|
114
|
+
animation.finished.then(() => {
|
|
115
|
+
contentAnimations.delete(el);
|
|
116
|
+
done();
|
|
117
|
+
}, () => {});
|
|
118
|
+
};
|
|
119
|
+
const enterContent = (el, done) => animateContent(el, done, true);
|
|
120
|
+
const leaveContent = (el, done) => animateContent(el, done, false);
|
|
121
|
+
const slotProps = computed(() => ({
|
|
122
|
+
collapsed: !!props.collapsed,
|
|
123
|
+
dragging: state.value.dragging,
|
|
124
|
+
folding: state.value.folding
|
|
125
|
+
}));
|
|
126
|
+
const wrapperRef = ref();
|
|
127
|
+
const contentRef = ref();
|
|
128
|
+
watch(contentRef, (el, _previous, onCleanup) => {
|
|
129
|
+
if (!el || !controller) return;
|
|
130
|
+
const applyContent = (value) => {
|
|
131
|
+
el.style[axes.extent] = `${value}px`;
|
|
132
|
+
};
|
|
133
|
+
applyContent(controller.motion.content.get());
|
|
134
|
+
onCleanup(controller.motion.content.on("change", applyContent));
|
|
135
|
+
}, { flush: "post" });
|
|
136
|
+
const fillClipping = computed(() => group.fill.size !== "100%");
|
|
137
|
+
const fillStyle = computed(() => {
|
|
138
|
+
const overflow = fillClipping.value ? "clip" : "visible";
|
|
139
|
+
if (props.pin) return {
|
|
140
|
+
flex: "1 1 0%",
|
|
141
|
+
minWidth: 0,
|
|
142
|
+
minHeight: 0,
|
|
143
|
+
display: "flex",
|
|
144
|
+
flexDirection: axes.direction,
|
|
145
|
+
justifyContent: group.fill.anchor,
|
|
146
|
+
overflow
|
|
147
|
+
};
|
|
148
|
+
return {
|
|
149
|
+
flex: "1 1 0%",
|
|
150
|
+
minWidth: 0,
|
|
151
|
+
minHeight: 0,
|
|
152
|
+
overflow
|
|
153
|
+
};
|
|
154
|
+
});
|
|
155
|
+
const pinInnerStyle = computed(() => ({
|
|
156
|
+
flexShrink: 0,
|
|
157
|
+
[axes.cross]: "100%",
|
|
158
|
+
[axes.extent]: typeof group.fill.size === "number" ? `${group.fill.size}px` : group.fill.size
|
|
159
|
+
}));
|
|
160
|
+
const buildOptions = () => ({
|
|
161
|
+
size: props.size,
|
|
162
|
+
collapsed: props.collapsed,
|
|
163
|
+
defaultSize: props.defaultSize,
|
|
164
|
+
minSize: props.minSize,
|
|
165
|
+
maxSize: props.maxSize,
|
|
166
|
+
transition: props.transition,
|
|
167
|
+
onSizeChange: (value) => emit("update:size", value),
|
|
168
|
+
onCollapsedChange: hasCollapsedBinding ? (value) => {
|
|
169
|
+
emit("update:collapsed", value);
|
|
170
|
+
} : void 0
|
|
171
|
+
});
|
|
172
|
+
let detach;
|
|
173
|
+
onMounted(() => {
|
|
174
|
+
if (!controller || !wrapperRef.value) return;
|
|
175
|
+
const el = wrapperRef.value;
|
|
176
|
+
detach = controller.attach(el);
|
|
177
|
+
const extentProp = axes.extent;
|
|
178
|
+
const applyExtent = (v) => {
|
|
179
|
+
el.style[extentProp] = `${Math.abs(v)}px`;
|
|
180
|
+
};
|
|
181
|
+
applyExtent(controller.motion.size.get());
|
|
182
|
+
unsubs.push(controller.motion.size.on("change", applyExtent));
|
|
183
|
+
unsubs.push(group.subscribe(() => controller.sync(buildOptions())));
|
|
184
|
+
controller.sync(buildOptions(), true);
|
|
185
|
+
});
|
|
186
|
+
watch(() => [
|
|
187
|
+
props.size,
|
|
188
|
+
props.collapsed,
|
|
189
|
+
props.defaultSize,
|
|
190
|
+
props.minSize,
|
|
191
|
+
props.maxSize,
|
|
192
|
+
props.transition
|
|
193
|
+
], () => {
|
|
194
|
+
controller === null || controller === void 0 || controller.sync(buildOptions());
|
|
195
|
+
}, { flush: "post" });
|
|
196
|
+
onBeforeUnmount(() => {
|
|
197
|
+
for (const el of contentAnimations.keys()) cancelContent(el);
|
|
198
|
+
detach === null || detach === void 0 || detach();
|
|
199
|
+
detach = void 0;
|
|
200
|
+
for (const fn of [...unsubs].reverse()) fn();
|
|
201
|
+
unsubs.length = 0;
|
|
202
|
+
controller === null || controller === void 0 || controller.destroy();
|
|
203
|
+
});
|
|
204
|
+
const sizedClass = [prefixCls];
|
|
205
|
+
const contentClass = [`${prefixCls}-content`];
|
|
206
|
+
const fillClass = [`${prefixCls}-fill`];
|
|
207
|
+
const pinInnerClass = [`${prefixCls}-fill-inner`];
|
|
208
|
+
const sizedStaticStyle = computed(() => ({
|
|
209
|
+
flexDirection: axes.direction,
|
|
210
|
+
justifyContent: state.value.end ? "flex-start" : "flex-end",
|
|
211
|
+
overflow: props.collapsed || state.value.dragging || state.value.folding ? "clip" : "visible"
|
|
212
|
+
}));
|
|
213
|
+
return (_ctx, _cache) => {
|
|
214
|
+
return sized ? (openBlock(), createElementBlock("div", {
|
|
215
|
+
key: 0,
|
|
216
|
+
ref_key: "wrapperRef",
|
|
217
|
+
ref: wrapperRef,
|
|
218
|
+
class: normalizeClass(sizedClass),
|
|
219
|
+
style: normalizeStyle(sizedStaticStyle.value)
|
|
220
|
+
}, [createVNode(Transition, {
|
|
221
|
+
css: false,
|
|
222
|
+
onEnter: enterContent,
|
|
223
|
+
onLeave: leaveContent,
|
|
224
|
+
onEnterCancelled: cancelContent,
|
|
225
|
+
onLeaveCancelled: cancelContent
|
|
226
|
+
}, {
|
|
227
|
+
default: withCtx(() => [contentMounted.value ? (openBlock(), createElementBlock("div", mergeProps({
|
|
228
|
+
key: 0,
|
|
229
|
+
ref_key: "contentRef",
|
|
230
|
+
ref: contentRef
|
|
231
|
+
}, _ctx.$attrs, {
|
|
232
|
+
class: contentClass,
|
|
233
|
+
style: contentStyle.value
|
|
234
|
+
}), [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))], 16)) : createCommentVNode("", true)]),
|
|
235
|
+
_: 3
|
|
236
|
+
}), unref(state).bare ? (openBlock(), createBlock(panel_separator_default, {
|
|
237
|
+
key: 0,
|
|
238
|
+
own: unref(controller)
|
|
239
|
+
}, null, 8, ["own"])) : createCommentVNode("", true)], 4)) : (openBlock(), createElementBlock("div", mergeProps({ key: 1 }, __props.pin ? {} : _ctx.$attrs, {
|
|
240
|
+
class: fillClass,
|
|
241
|
+
style: fillStyle.value,
|
|
242
|
+
"data-sd-panels-fill": ""
|
|
243
|
+
}), [__props.pin ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
244
|
+
class: pinInnerClass,
|
|
245
|
+
style: pinInnerStyle.value
|
|
246
|
+
}), [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)))], 16)) : renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps.value)), void 0, void 0, 1)], 16));
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
}));
|
|
250
|
+
//#endregion
|
|
251
|
+
export { panel_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/******** borderSize *******/
|
|
2
|
+
/******** borderStyle *******/
|
|
3
|
+
/******** radius *******/
|
|
4
|
+
/******** shadow distance *******/
|
|
5
|
+
/******** size *******/
|
|
6
|
+
/******** spacing *******/
|
|
7
|
+
/******** shadow *******/
|
|
8
|
+
/******** opacity *******/
|
|
9
|
+
/******** fontSize *******/
|
|
10
|
+
/******** fontWeight ********/
|
|
11
|
+
/******** Primary *******/
|
|
12
|
+
/******** success *******/
|
|
13
|
+
/******** warning *******/
|
|
14
|
+
/******** danger *******/
|
|
15
|
+
/******** link *******/
|
|
16
|
+
/******** radius *******/
|
|
17
|
+
/********* icon hover *********/
|
|
18
|
+
.sd-panel-group {
|
|
19
|
+
position: relative;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sd-panel {
|
|
23
|
+
position: relative;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-shrink: 0;
|
|
26
|
+
min-width: 0;
|
|
27
|
+
min-height: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sd-panel-content,
|
|
31
|
+
.sd-panel-fill-inner {
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.sd-panel-fill {
|
|
37
|
+
min-width: 0;
|
|
38
|
+
min-height: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sd-panel-separator {
|
|
42
|
+
position: relative;
|
|
43
|
+
z-index: 1;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex: none;
|
|
46
|
+
flex-direction: inherit;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
min-height: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.sd-panel-separator-edge {
|
|
54
|
+
position: absolute;
|
|
55
|
+
z-index: 1;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.sd-panel-separator-grip {
|
|
62
|
+
position: relative;
|
|
63
|
+
flex-shrink: 0;
|
|
64
|
+
outline: none;
|
|
65
|
+
cursor: var(--sd-panel-separator-cursor, col-resize);
|
|
66
|
+
touch-action: none;
|
|
67
|
+
}
|
|
68
|
+
.sd-panel-separator-grip[aria-orientation=vertical] {
|
|
69
|
+
width: 14px;
|
|
70
|
+
height: 100%;
|
|
71
|
+
}
|
|
72
|
+
.sd-panel-separator-grip[aria-orientation=horizontal] {
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: 14px;
|
|
75
|
+
}
|
|
76
|
+
.sd-panel-separator-grip:focus-visible {
|
|
77
|
+
border-radius: 4px;
|
|
78
|
+
box-shadow: 0 0 0 3px var(--sd-color-primary-light-2);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (prefers-reduced-motion: reduce) {
|
|
82
|
+
.sd-panel-content {
|
|
83
|
+
transition: none !important;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.sd-resizebox-trigger-icon-wrapper {
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 50%;
|
|
89
|
+
left: 50%;
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
width: 100%;
|
|
94
|
+
height: 100%;
|
|
95
|
+
color: var(--sd-color-text-1);
|
|
96
|
+
font-size: 12px;
|
|
97
|
+
line-height: 1;
|
|
98
|
+
background-color: var(--sd-color-neutral-3);
|
|
99
|
+
transform: translate(-50%, -50%);
|
|
100
|
+
}
|
|
101
|
+
.sd-resizebox-trigger-icon {
|
|
102
|
+
display: inline-block;
|
|
103
|
+
margin: -3px;
|
|
104
|
+
}
|
|
105
|
+
.sd-resizebox-trigger-vertical > .sd-resizebox-trigger-icon-wrapper {
|
|
106
|
+
width: 6px;
|
|
107
|
+
}
|
|
108
|
+
.sd-resizebox-trigger-horizontal > .sd-resizebox-trigger-icon-wrapper {
|
|
109
|
+
height: 6px;
|
|
110
|
+
}
|