@sdata/web-vue 3.17.0 → 3.18.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/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/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-trigger.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 +4 -4
- package/es/_hooks/use-cursor.js +4 -2
- package/es/_hooks/use-scrollbar.js +1 -1
- package/es/_utils/color.js +2 -2
- package/es/_utils/date.js +20 -20
- package/es/_utils/floating.d.ts +8 -0
- package/es/_utils/floating.js +54 -0
- package/es/_utils/global-config.js +1 -1
- package/es/_utils/is-equal.js +1 -1
- package/es/_utils/keyboard.js +3 -2
- package/es/_utils/omit.js +1 -1
- package/es/_utils/responsive-observe.js +2 -2
- package/es/_utils/virtual-dropdown.js +2 -2
- package/es/_utils/vue-utils.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/asyncToGenerator.js +2 -2
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/defineProperty.js +3 -3
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/extends.js +2 -2
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectDestructuringEmpty.js +2 -2
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectSpread2.js +3 -3
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectWithoutProperties.js +3 -3
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectWithoutPropertiesLoose.js +2 -2
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/toPrimitive.js +3 -3
- package/es/_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.js +9 -0
- package/es/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/typeof.js +2 -2
- 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 +5 -2
- package/es/anchor/index.js +1 -1
- package/es/auto-complete/auto-complete.d.ts +7 -0
- package/es/auto-complete/auto-complete.js +34 -27
- package/es/auto-complete/index.d.ts +9 -0
- package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/avatar/index.js +1 -1
- package/es/back-top/back-top.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/badge/badge.d.ts +1 -1
- package/es/badge/badge.js +2 -2
- package/es/badge/index.d.ts +3 -3
- package/es/basic-crud-table/basic-crud-modal.vue.d.ts +6 -6
- package/es/basic-crud-table/basic-crud-modal.vue_vue_type_script_setup_true_lang.js +4 -3
- package/es/basic-crud-table/basic-crud-table.vue.d.ts +18 -18
- package/es/basic-crud-table/basic-crud-table.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/basic-crud-table/index.d.ts +54 -54
- 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/index.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 +5 -5
- package/es/button/index.js +1 -1
- package/es/calendar/components/cell.vue_vue_type_script_setup_true_lang.js +6 -11
- package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +3 -12
- package/es/calendar/components/header.vue_vue_type_script_setup_true_lang.js +3 -4
- package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +3 -6
- package/es/calendar/components/time-column.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/card/card-grid.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/card/index.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.js +1 -1
- package/es/carousel/index.js +1 -1
- package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +138 -132
- package/es/cascader/index.js +1 -1
- package/es/cascader/types.d.ts +2 -0
- package/es/checkbox/index.js +1 -1
- package/es/collapse/collapse.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/collapse/index.js +1 -1
- package/es/color-picker/color-picker.d.ts +7 -0
- package/es/color-picker/color-picker.js +15 -10
- package/es/color-picker/index.d.ts +9 -0
- package/es/color-picker/panel.js +7 -4
- package/es/color-picker/utils.js +3 -2
- package/es/comment/comment.vue_vue_type_script_setup_true_lang.js +5 -5
- 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 +2 -2
- package/es/config-provider/theme.js +3 -3
- 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-format.js +1 -1
- package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
- package/es/date-picker/hooks/use-value-format.js +1 -1
- package/es/date-picker/index.d.ts +9 -0
- package/es/date-picker/index.js +1 -1
- package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +4 -6
- 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 +5 -3
- 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.d.ts +7 -0
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +10 -5
- package/es/date-picker/range-picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/date-picker/range-picker.vue.d.ts +7 -0
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +8 -4
- package/es/descriptions/descriptions-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/descriptions/descriptions.js +1 -1
- package/es/descriptions/index.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.d.ts +7 -0
- package/es/dropdown/dropdown-button.vue_vue_type_script_setup_true_lang.js +4 -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.d.ts +7 -0
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/dropdown/dropdown.vue.d.ts +7 -0
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/dropdown/index.d.ts +27 -0
- package/es/dropdown/index.js +1 -1
- package/es/dropdown/interface.d.ts +3 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +6 -6
- 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 +5 -5
- package/es/form/form.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/form/index.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/grid/index.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-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 +2 -2
- 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-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/icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/icon.js +6 -6
- package/es/image/hooks/use-image-drag.js +3 -1
- 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 +3 -3
- package/es/image/index.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 +3 -2
- package/es/index.d.ts +3 -3
- package/es/index.js +2 -2
- package/es/input/index.js +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.js +1 -1
- package/es/input-number/input-number.js +2 -2
- package/es/input-tag/input-tag.js +7 -4
- package/es/input-tag/utils.js +1 -1
- package/es/json-form/index.d.ts +5 -5
- package/es/json-form/index.js +2 -2
- 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 +4 -6
- package/es/json-form/json-form.vue_vue_type_script_setup_true_lang.js +4 -4
- package/es/json-form/types.d.ts +80 -110
- package/es/json-form/types.js +3 -3
- package/es/json-form/utils.d.ts +5 -6
- package/es/json-form/utils.js +69 -196
- package/es/kv-list/index.d.ts +2 -0
- package/es/kv-list/kv-list-row.vue_vue_type_script_setup_true_lang.js +3 -5
- 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/index.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 +2 -2
- package/es/list/index.js +1 -1
- package/es/list/list-item-meta.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/list/list.js +1 -1
- package/es/mention/index.d.ts +9 -0
- package/es/mention/mention.d.ts +7 -0
- package/es/mention/mention.js +9 -2
- package/es/menu/base-menu.vue.d.ts +7 -0
- package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/menu/context.d.ts +1 -1
- package/es/menu/indent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/menu/index.js +1 -1
- package/es/menu/interface.d.ts +2 -0
- package/es/menu/item-group.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/menu/item.d.ts +1 -1
- package/es/menu/item.js +1 -1
- package/es/menu/menu.d.ts +16 -0
- package/es/menu/menu.js +3 -2
- package/es/menu/overflow-wrap.js +4 -1
- package/es/menu/sub-menu-inline.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +8 -3
- package/es/menu/sub-menu.js +1 -1
- package/es/message/index.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/notification/index.js +1 -1
- package/es/notification/notification.vue_vue_type_script_setup_true_lang.js +1 -1
- 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/popconfirm/index.d.ts +9 -0
- package/es/popconfirm/popconfirm.vue.d.ts +7 -0
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/popover/index.d.ts +9 -0
- package/es/popover/popover.vue.d.ts +7 -0
- package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +6 -3
- 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 +3 -4
- package/es/radio/index.js +1 -1
- package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +2 -5
- package/es/result/result.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/scrollbar/scrollbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sd-vue.js +1 -1
- 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/hooks/use-select.js +1 -1
- package/es/select/index.d.ts +33 -6
- package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/select/select.d.ts +19 -3
- package/es/select/select.js +64 -59
- package/es/select/utils.js +2 -2
- package/es/selectable-card/selectable-card.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/skeleton/index.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 +2 -2
- 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/split/split.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/statistic/countdown.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/statistic/index.js +1 -1
- package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/steps/index.js +1 -1
- 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/z-index.js +1 -1
- package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/table/index.js +1 -1
- package/es/table/interface.d.ts +2 -0
- package/es/table/table-operation-td.js +1 -1
- package/es/table/table-operation-th.js +1 -1
- package/es/table/table-td.js +1 -1
- package/es/table/table-th.js +3 -2
- package/es/table/table.js +5 -3
- package/es/table/utils.js +2 -2
- package/es/tabs/index.js +1 -1
- package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/tabs/tabs-nav-ink.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tabs/tabs-nav.js +2 -1
- package/es/tabs/tabs-tab.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 +3 -4
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/index.d.ts +9 -0
- package/es/time-picker/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.d.ts +7 -0
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +9 -3
- package/es/timeline/index.js +1 -1
- package/es/timeline/item.vue_vue_type_script_setup_true_lang.js +5 -4
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/tooltip/interface.d.ts +2 -0
- package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/tour/index.d.ts +15 -0
- package/es/tour/tour.vue.d.ts +10 -0
- package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +108 -145
- package/es/tour/types.d.ts +3 -0
- 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 +3 -2
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +5 -8
- package/es/tree/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/tree/node.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 +3 -3
- 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.js +1 -1
- package/es/tree-select/tree-select.vue.d.ts +7 -0
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +145 -136
- package/es/trigger/index.d.ts +13 -3
- package/es/trigger/interface.d.ts +2 -0
- package/es/trigger/trigger.d.ts +8 -1
- package/es/trigger/trigger.js +130 -52
- package/es/trigger/utils.d.ts +0 -47
- package/es/trigger/utils.js +1 -268
- package/es/typography/base.js +1 -1
- package/es/typography/edit-content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/typography/index.js +1 -1
- package/es/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/upload/upload.js +2 -2
- package/es/watermark/hooks/use-mutation-observer.js +2 -2
- package/es/watermark/utils/index.js +1 -1
- package/es/watermark/watermark.js +1 -1
- package/json/vetur-attributes.json +9 -0
- package/json/vetur-tags.json +4 -1
- package/json/web-types.json +25 -1
- package/package.json +14 -13
- package/es/_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/toPropertyKey.js +0 -9
package/es/json-form/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import input_password_default from "../input/input-password.js";
|
|
3
3
|
import input_search_default from "../input/input-search.js";
|
|
4
4
|
import Input from "../input/index.js";
|
|
@@ -24,56 +24,9 @@ import TimePicker from "../time-picker/index.js";
|
|
|
24
24
|
import Transfer from "../transfer/index.js";
|
|
25
25
|
import TreeSelect from "../tree-select/index.js";
|
|
26
26
|
import VerificationCode from "../verification-code/index.js";
|
|
27
|
-
import {
|
|
27
|
+
import { isPlainObject } from "es-toolkit";
|
|
28
28
|
//#region components/json-form/utils.ts
|
|
29
|
-
var
|
|
30
|
-
"Row",
|
|
31
|
-
"Column",
|
|
32
|
-
"TextField",
|
|
33
|
-
"CheckBox",
|
|
34
|
-
"Slider",
|
|
35
|
-
"DateTimeInput",
|
|
36
|
-
"MultipleChoice",
|
|
37
|
-
"ChoicePicker"
|
|
38
|
-
]);
|
|
39
|
-
var JSON_FORM_A2UI_0_8_COMPONENT_ALIASES = {
|
|
40
|
-
AutoComplete: JSON_FORM_COMPONENT_TYPES.autoComplete,
|
|
41
|
-
Cascader: JSON_FORM_COMPONENT_TYPES.cascader,
|
|
42
|
-
CheckBox: JSON_FORM_COMPONENT_TYPES.checkbox,
|
|
43
|
-
Checkbox: JSON_FORM_COMPONENT_TYPES.checkbox,
|
|
44
|
-
CheckboxGroup: JSON_FORM_COMPONENT_TYPES.checkboxGroup,
|
|
45
|
-
DatePicker: JSON_FORM_COMPONENT_TYPES.datePicker,
|
|
46
|
-
Input: JSON_FORM_COMPONENT_TYPES.input,
|
|
47
|
-
InputNumber: JSON_FORM_COMPONENT_TYPES.inputNumber,
|
|
48
|
-
InputPassword: JSON_FORM_COMPONENT_TYPES.inputPassword,
|
|
49
|
-
InputSearch: JSON_FORM_COMPONENT_TYPES.inputSearch,
|
|
50
|
-
InputTag: JSON_FORM_COMPONENT_TYPES.inputTag,
|
|
51
|
-
Mention: JSON_FORM_COMPONENT_TYPES.mention,
|
|
52
|
-
NoFormItem: JSON_FORM_COMPONENT_TYPES.noFormItem,
|
|
53
|
-
Radio: JSON_FORM_COMPONENT_TYPES.radio,
|
|
54
|
-
RadioGroup: JSON_FORM_COMPONENT_TYPES.radioGroup,
|
|
55
|
-
RangePicker: JSON_FORM_COMPONENT_TYPES.rangePicker,
|
|
56
|
-
Rate: JSON_FORM_COMPONENT_TYPES.rate,
|
|
57
|
-
Row: JSON_FORM_COMPONENT_TYPES.row,
|
|
58
|
-
Select: JSON_FORM_COMPONENT_TYPES.select,
|
|
59
|
-
Slider: JSON_FORM_COMPONENT_TYPES.slider,
|
|
60
|
-
Switch: JSON_FORM_COMPONENT_TYPES.switch,
|
|
61
|
-
TextArea: JSON_FORM_COMPONENT_TYPES.textarea,
|
|
62
|
-
Textarea: JSON_FORM_COMPONENT_TYPES.textarea,
|
|
63
|
-
TimePicker: JSON_FORM_COMPONENT_TYPES.timePicker,
|
|
64
|
-
Transfer: JSON_FORM_COMPONENT_TYPES.transfer,
|
|
65
|
-
TreeSelect: JSON_FORM_COMPONENT_TYPES.treeSelect,
|
|
66
|
-
VerificationCode: JSON_FORM_COMPONENT_TYPES.verificationCode
|
|
67
|
-
};
|
|
68
|
-
var JSON_FORM_A2UI_0_8_RESERVED_PROPS = new Set([
|
|
69
|
-
"label",
|
|
70
|
-
"text",
|
|
71
|
-
"value",
|
|
72
|
-
"selections",
|
|
73
|
-
"children",
|
|
74
|
-
"maxAllowedSelections"
|
|
75
|
-
]);
|
|
76
|
-
var STRETCH_COMPONENT_TYPES = new Set([
|
|
29
|
+
var STRETCH_COMPONENT_TYPES = /* @__PURE__ */ new Set([
|
|
77
30
|
JSON_FORM_COMPONENT_TYPES.autoComplete,
|
|
78
31
|
JSON_FORM_COMPONENT_TYPES.cascader,
|
|
79
32
|
JSON_FORM_COMPONENT_TYPES.datePicker,
|
|
@@ -124,7 +77,7 @@ function shouldStretchJsonFormControl(type) {
|
|
|
124
77
|
}
|
|
125
78
|
function parseJsonFormPath(path, adapter = "default") {
|
|
126
79
|
if (!path) return [];
|
|
127
|
-
if (adapter === "a2ui-0.
|
|
80
|
+
if (adapter === "a2ui-0.9.1") return path.split("/").slice(1).map((segment) => segment.replaceAll("~1", "/").replaceAll("~0", "~"));
|
|
128
81
|
return path.split(".").filter(Boolean);
|
|
129
82
|
}
|
|
130
83
|
function getJsonFormValue(model, path, adapter = "default") {
|
|
@@ -148,189 +101,109 @@ function setJsonFormValue(model, path, value, adapter = "default") {
|
|
|
148
101
|
}
|
|
149
102
|
current[segments.at(-1)] = value;
|
|
150
103
|
}
|
|
151
|
-
function
|
|
152
|
-
if (typeof value === "string") return value;
|
|
153
|
-
return value === null || value === void 0 ? void 0 : value.literalString;
|
|
154
|
-
}
|
|
155
|
-
function resolveA2UIBoundPath(value) {
|
|
156
|
-
if (typeof value === "string") return;
|
|
157
|
-
return value === null || value === void 0 ? void 0 : value.path;
|
|
158
|
-
}
|
|
159
|
-
function getA2UIChildren(children) {
|
|
160
|
-
var _children$explicitLis;
|
|
161
|
-
if (Array.isArray(children)) return children;
|
|
162
|
-
return (_children$explicitLis = children === null || children === void 0 ? void 0 : children.explicitList) !== null && _children$explicitLis !== void 0 ? _children$explicitLis : [];
|
|
163
|
-
}
|
|
164
|
-
function resolveA2UIComponent(node) {
|
|
165
|
-
var _component$name;
|
|
166
|
-
if (typeof node.component === "string") return {
|
|
167
|
-
name: node.component,
|
|
168
|
-
props: node
|
|
169
|
-
};
|
|
170
|
-
const component = node.component;
|
|
171
|
-
const [name] = Object.keys(component);
|
|
172
|
-
return {
|
|
173
|
-
name,
|
|
174
|
-
props: (_component$name = component[name]) !== null && _component$name !== void 0 ? _component$name : {}
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
function resolveA2UIBoundValue(value) {
|
|
178
|
-
if (typeof value === "string") return value;
|
|
179
|
-
if (!value || typeof value !== "object") return value;
|
|
180
|
-
if ("literalString" in value && typeof value.literalString === "string") return value.literalString;
|
|
181
|
-
if (Array.isArray(value)) return value.map((item) => resolveA2UIBoundValue(item));
|
|
182
|
-
return value;
|
|
183
|
-
}
|
|
184
|
-
function normalizeA2UI_0_8ComponentType(componentName) {
|
|
185
|
-
if (JSON_FORM_A2UI_0_8_COMPONENT_ALIASES[componentName]) return JSON_FORM_A2UI_0_8_COMPONENT_ALIASES[componentName];
|
|
186
|
-
const normalizedName = camelCase(componentName);
|
|
187
|
-
if (normalizedName in JSON_FORM_COMPONENT_TYPES) return normalizedName;
|
|
188
|
-
return normalizedName;
|
|
189
|
-
}
|
|
190
|
-
function resolveA2UI_0_8FieldPath(props) {
|
|
191
|
-
const candidates = [
|
|
192
|
-
props.value,
|
|
193
|
-
props.text,
|
|
194
|
-
props.selections
|
|
195
|
-
];
|
|
196
|
-
for (const candidate of candidates) {
|
|
197
|
-
const path = resolveA2UIBoundPath(candidate);
|
|
198
|
-
if (path) return path;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
function resolveA2UI_0_8Label(props) {
|
|
202
|
-
return resolveA2UIBoundText(props.label);
|
|
104
|
+
function resolveA2UI_0_9_1Path(value) {
|
|
105
|
+
if (value && typeof value === "object" && "path" in value && typeof value.path === "string") return value.path;
|
|
203
106
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
206
|
-
if (Array.isArray(baseProps.options)) baseProps.options = translateA2UIChoiceOptions(baseProps.options);
|
|
207
|
-
for (const key of Object.keys(baseProps)) baseProps[key] = resolveA2UIBoundValue(baseProps[key]);
|
|
208
|
-
if (typeof props.maxAllowedSelections === "number") baseProps.multiple = props.maxAllowedSelections !== 1;
|
|
209
|
-
return baseProps;
|
|
107
|
+
function resolveA2UI_0_9_1Text(value) {
|
|
108
|
+
return typeof value === "string" ? value : void 0;
|
|
210
109
|
}
|
|
211
|
-
function
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
const resolvedProps = props;
|
|
216
|
-
if (normalizedType === JSON_FORM_COMPONENT_TYPES.row || normalizedType === "column") return [];
|
|
217
|
-
return [{
|
|
218
|
-
field: (_resolveA2UI_0_8Field = resolveA2UI_0_8FieldPath(resolvedProps)) !== null && _resolveA2UI_0_8Field !== void 0 ? _resolveA2UI_0_8Field : node.id,
|
|
219
|
-
label: resolveA2UI_0_8Label(resolvedProps),
|
|
220
|
-
type: normalizedType,
|
|
221
|
-
componentProps: translateA2UI_0_8CommonComponentProps(resolvedProps)
|
|
222
|
-
}];
|
|
223
|
-
}
|
|
224
|
-
function translateA2UIChoiceOptions(options = []) {
|
|
225
|
-
return options.map((option) => {
|
|
226
|
-
var _resolveA2UIBoundText;
|
|
227
|
-
return {
|
|
228
|
-
label: (_resolveA2UIBoundText = resolveA2UIBoundText(option.label)) !== null && _resolveA2UIBoundText !== void 0 ? _resolveA2UIBoundText : String(option.value),
|
|
229
|
-
value: option.value
|
|
230
|
-
};
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
function translateA2UI_0_8Field(node) {
|
|
234
|
-
const { name, props } = resolveA2UIComponent(node);
|
|
235
|
-
switch (name) {
|
|
110
|
+
function translateA2UI_0_9_1Field(node) {
|
|
111
|
+
const field = resolveA2UI_0_9_1Path(node.value);
|
|
112
|
+
if (!field) return [];
|
|
113
|
+
switch (node.component) {
|
|
236
114
|
case "TextField": {
|
|
237
|
-
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
const textFieldType = props.textFieldType;
|
|
241
|
-
const mappedType = textFieldType === "longText" ? JSON_FORM_COMPONENT_TYPES.textarea : textFieldType === "number" ? JSON_FORM_COMPONENT_TYPES.inputNumber : textFieldType === "obscured" ? JSON_FORM_COMPONENT_TYPES.inputPassword : textFieldType === "date" ? JSON_FORM_COMPONENT_TYPES.datePicker : JSON_FORM_COMPONENT_TYPES.input;
|
|
115
|
+
const textField = node;
|
|
116
|
+
const variant = textField.variant;
|
|
117
|
+
const type = variant === "longText" ? JSON_FORM_COMPONENT_TYPES.textarea : variant === "number" ? JSON_FORM_COMPONENT_TYPES.inputNumber : variant === "obscured" ? JSON_FORM_COMPONENT_TYPES.inputPassword : JSON_FORM_COMPONENT_TYPES.input;
|
|
242
118
|
return [{
|
|
243
119
|
field,
|
|
244
|
-
label:
|
|
245
|
-
type
|
|
246
|
-
componentProps:
|
|
120
|
+
label: resolveA2UI_0_9_1Text(textField.label),
|
|
121
|
+
type,
|
|
122
|
+
componentProps: textField.validationRegexp ? { inputAttrs: { pattern: textField.validationRegexp } } : void 0
|
|
247
123
|
}];
|
|
248
124
|
}
|
|
249
|
-
case "CheckBox": {
|
|
250
|
-
|
|
251
|
-
|
|
125
|
+
case "CheckBox": return [{
|
|
126
|
+
field,
|
|
127
|
+
label: resolveA2UI_0_9_1Text(node.label),
|
|
128
|
+
type: JSON_FORM_COMPONENT_TYPES.checkbox
|
|
129
|
+
}];
|
|
130
|
+
case "ChoicePicker": {
|
|
131
|
+
const choicePicker = node;
|
|
252
132
|
return [{
|
|
253
133
|
field,
|
|
254
|
-
label:
|
|
255
|
-
type: JSON_FORM_COMPONENT_TYPES.
|
|
256
|
-
componentProps:
|
|
134
|
+
label: resolveA2UI_0_9_1Text(choicePicker.label),
|
|
135
|
+
type: JSON_FORM_COMPONENT_TYPES.checkboxGroup,
|
|
136
|
+
componentProps: {
|
|
137
|
+
options: choicePicker.options.map((option) => {
|
|
138
|
+
var _resolveA2UI_0_9_1Tex;
|
|
139
|
+
return {
|
|
140
|
+
label: (_resolveA2UI_0_9_1Tex = resolveA2UI_0_9_1Text(option.label)) !== null && _resolveA2UI_0_9_1Tex !== void 0 ? _resolveA2UI_0_9_1Tex : option.value,
|
|
141
|
+
value: option.value
|
|
142
|
+
};
|
|
143
|
+
}),
|
|
144
|
+
max: choicePicker.variant === "multipleSelection" ? void 0 : 1
|
|
145
|
+
}
|
|
257
146
|
}];
|
|
258
147
|
}
|
|
259
148
|
case "Slider": {
|
|
260
|
-
|
|
261
|
-
|
|
149
|
+
var _slider$min;
|
|
150
|
+
const slider = node;
|
|
262
151
|
return [{
|
|
263
152
|
field,
|
|
153
|
+
label: resolveA2UI_0_9_1Text(slider.label),
|
|
264
154
|
type: JSON_FORM_COMPONENT_TYPES.slider,
|
|
265
|
-
componentProps:
|
|
266
|
-
min:
|
|
267
|
-
max:
|
|
268
|
-
}
|
|
155
|
+
componentProps: {
|
|
156
|
+
min: (_slider$min = slider.min) !== null && _slider$min !== void 0 ? _slider$min : 0,
|
|
157
|
+
max: slider.max
|
|
158
|
+
}
|
|
269
159
|
}];
|
|
270
160
|
}
|
|
271
161
|
case "DateTimeInput": {
|
|
272
|
-
var
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
const enableTime = (_props$enableTime = props.enableTime) !== null && _props$enableTime !== void 0 ? _props$enableTime : false;
|
|
277
|
-
const type = enableDate ? JSON_FORM_COMPONENT_TYPES.datePicker : JSON_FORM_COMPONENT_TYPES.timePicker;
|
|
278
|
-
return [{
|
|
279
|
-
field,
|
|
280
|
-
label: resolveA2UIBoundText(props.label),
|
|
281
|
-
type,
|
|
282
|
-
componentProps: _objectSpread2(_objectSpread2({}, translateA2UI_0_8CommonComponentProps(props)), enableDate && enableTime ? { showTime: true } : {})
|
|
283
|
-
}];
|
|
284
|
-
}
|
|
285
|
-
case "MultipleChoice":
|
|
286
|
-
case "ChoicePicker": {
|
|
287
|
-
const choiceProps = props;
|
|
288
|
-
const field = resolveA2UIBoundPath(choiceProps.selections);
|
|
289
|
-
if (!field) return [];
|
|
162
|
+
var _dateTimeInput$enable, _dateTimeInput$enable2;
|
|
163
|
+
const dateTimeInput = node;
|
|
164
|
+
const enableDate = (_dateTimeInput$enable = dateTimeInput.enableDate) !== null && _dateTimeInput$enable !== void 0 ? _dateTimeInput$enable : false;
|
|
165
|
+
const enableTime = (_dateTimeInput$enable2 = dateTimeInput.enableTime) !== null && _dateTimeInput$enable2 !== void 0 ? _dateTimeInput$enable2 : false;
|
|
290
166
|
return [{
|
|
291
167
|
field,
|
|
292
|
-
label:
|
|
293
|
-
type: JSON_FORM_COMPONENT_TYPES.
|
|
294
|
-
componentProps:
|
|
295
|
-
options: translateA2UIChoiceOptions(choiceProps.options),
|
|
296
|
-
multiple: choiceProps.maxAllowedSelections !== 1
|
|
297
|
-
})
|
|
168
|
+
label: resolveA2UI_0_9_1Text(dateTimeInput.label),
|
|
169
|
+
type: enableDate ? JSON_FORM_COMPONENT_TYPES.datePicker : JSON_FORM_COMPONENT_TYPES.timePicker,
|
|
170
|
+
componentProps: enableDate && enableTime ? { showTime: true } : void 0
|
|
298
171
|
}];
|
|
299
172
|
}
|
|
300
|
-
default: return
|
|
173
|
+
default: return [];
|
|
301
174
|
}
|
|
302
175
|
}
|
|
303
|
-
function
|
|
176
|
+
function translateA2UI_0_9_1ToJsonFormSchemas(nodes) {
|
|
304
177
|
const nodeMap = new Map(nodes.map((node) => [node.id, node]));
|
|
305
|
-
const referencedIds = /* @__PURE__ */ new Set();
|
|
306
178
|
const visitedIds = /* @__PURE__ */ new Set();
|
|
307
|
-
for (const node of nodes) {
|
|
308
|
-
const { name, props } = resolveA2UIComponent(node);
|
|
309
|
-
if (name === "Row" || name === "Column") for (const childId of getA2UIChildren(props.children)) referencedIds.add(childId);
|
|
310
|
-
}
|
|
311
179
|
const expandNode = (node) => {
|
|
312
180
|
if (visitedIds.has(node.id)) return [];
|
|
313
181
|
visitedIds.add(node.id);
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
182
|
+
if (node.component === "Card") {
|
|
183
|
+
const child = nodeMap.get(node.child);
|
|
184
|
+
return child ? expandNode(child) : [];
|
|
185
|
+
}
|
|
186
|
+
if (node.component === "Column" || node.component === "List" || node.component === "Row") {
|
|
187
|
+
const container = node;
|
|
188
|
+
if (!Array.isArray(container.children)) return [];
|
|
189
|
+
const children = container.children.flatMap((childId) => {
|
|
190
|
+
const child = nodeMap.get(childId);
|
|
191
|
+
return child ? expandNode(child) : [];
|
|
192
|
+
});
|
|
193
|
+
if (node.component !== "Row") return children;
|
|
321
194
|
return [{
|
|
322
195
|
field: node.id,
|
|
323
196
|
type: JSON_FORM_COMPONENT_TYPES.row,
|
|
324
197
|
children
|
|
325
198
|
}];
|
|
326
199
|
}
|
|
327
|
-
|
|
328
|
-
return translateA2UI_0_8GenericField(node);
|
|
200
|
+
return translateA2UI_0_9_1Field(node);
|
|
329
201
|
};
|
|
330
|
-
|
|
202
|
+
const root = nodeMap.get("root");
|
|
203
|
+
return root ? expandNode(root) : [];
|
|
331
204
|
}
|
|
332
205
|
function mergeJsonFormClassName(...classNames) {
|
|
333
206
|
return classNames.filter(Boolean);
|
|
334
207
|
}
|
|
335
208
|
//#endregion
|
|
336
|
-
export { getJsonFormValue, mergeJsonFormClassName, resolveJsonFormComponents, setJsonFormValue, shouldStretchJsonFormControl,
|
|
209
|
+
export { getJsonFormValue, jsonFormBuiltInComponents, mergeJsonFormClassName, parseJsonFormPath, resolveJsonFormComponents, setJsonFormValue, shouldStretchJsonFormControl, translateA2UI_0_9_1ToJsonFormSchemas };
|
package/es/kv-list/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const KvList: {
|
|
|
61
61
|
readonly filterOption: import("../index.ts").FilterOption;
|
|
62
62
|
readonly strict: boolean;
|
|
63
63
|
readonly popupContainer?: string | HTMLElement | null | undefined;
|
|
64
|
+
readonly floatingOptions?: import("../index.ts").FloatingOptions | undefined;
|
|
64
65
|
readonly modelValue?: string | undefined;
|
|
65
66
|
readonly triggerProps?: import("../index.ts").TriggerProps | undefined;
|
|
66
67
|
readonly virtualListProps?: import("../_components/virtual-list/interface.ts").VirtualListProps | undefined;
|
|
@@ -199,6 +200,7 @@ declare const KvList: {
|
|
|
199
200
|
readonly filterOption: import("../index.ts").FilterOption;
|
|
200
201
|
readonly strict: boolean;
|
|
201
202
|
readonly popupContainer?: string | HTMLElement | null | undefined;
|
|
203
|
+
readonly floatingOptions?: import("../index.ts").FloatingOptions | undefined;
|
|
202
204
|
readonly modelValue?: string | undefined;
|
|
203
205
|
readonly triggerProps?: import("../index.ts").TriggerProps | undefined;
|
|
204
206
|
readonly virtualListProps?: import("../_components/virtual-list/interface.ts").VirtualListProps | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { useI18n } from "../locale/index.js";
|
|
4
4
|
import input_password_default from "../input/input-password.js";
|
|
@@ -70,13 +70,12 @@ var kv_list_row_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
70
70
|
_: 1
|
|
71
71
|
}, 8, ["disabled"])], 2),
|
|
72
72
|
createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-key`) }, [_ctx.$slots.key ? renderSlot(_ctx.$slots, "key", {
|
|
73
|
-
key: 0,
|
|
74
73
|
value: __props.item.key,
|
|
75
74
|
item: publicItem.value,
|
|
76
75
|
index: __props.index,
|
|
77
76
|
props: mergedKeyProps.value,
|
|
78
77
|
update: updateKey
|
|
79
|
-
}) : __props.type === "http-header" ? (openBlock(), createBlock(unref(AutoComplete), mergeProps({ key: 1 }, mergedKeyProps.value, {
|
|
78
|
+
}, void 0, void 0, 0) : __props.type === "http-header" ? (openBlock(), createBlock(unref(AutoComplete), mergeProps({ key: 1 }, mergedKeyProps.value, {
|
|
80
79
|
modelValue: keyModel.value,
|
|
81
80
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => keyModel.value = $event)
|
|
82
81
|
}), null, 16, ["modelValue"])) : (openBlock(), createBlock(unref(Input), mergeProps({ key: 2 }, mergedKeyProps.value, {
|
|
@@ -84,13 +83,12 @@ var kv_list_row_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
84
83
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => keyModel.value = $event)
|
|
85
84
|
}), null, 16, ["modelValue"]))], 2),
|
|
86
85
|
createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-value`) }, [_ctx.$slots.value ? renderSlot(_ctx.$slots, "value", {
|
|
87
|
-
key: 0,
|
|
88
86
|
value: __props.item.value,
|
|
89
87
|
item: publicItem.value,
|
|
90
88
|
index: __props.index,
|
|
91
89
|
props: mergedValueProps.value,
|
|
92
90
|
update: updateValue
|
|
93
|
-
}) : __props.type === "secret" ? (openBlock(), createBlock(unref(input_password_default), mergeProps({ key: 1 }, mergedValueProps.value, {
|
|
91
|
+
}, void 0, void 0, 0) : __props.type === "secret" ? (openBlock(), createBlock(unref(input_password_default), mergeProps({ key: 1 }, mergedValueProps.value, {
|
|
94
92
|
modelValue: valueModel.value,
|
|
95
93
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => valueModel.value = $event)
|
|
96
94
|
}), null, 16, ["modelValue"])) : (openBlock(), createBlock(unref(Input), mergeProps({ key: 2 }, mergedValueProps.value, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { useI18n } from "../locale/index.js";
|
|
4
4
|
import Button from "../button/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { computed, createBlock, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, withCtx } from "vue";
|
|
4
4
|
//#region components/layout/content.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { computed, createBlock, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, withCtx } from "vue";
|
|
4
4
|
//#region components/layout/footer.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { computed, createBlock, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, withCtx } from "vue";
|
|
4
4
|
//#region components/layout/header.vue?vue&type=script&setup=true&lang.ts
|
package/es/layout/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { LayoutContextInjectionKey } from "./context.js";
|
|
5
5
|
import { useHasSider } from "./hooks/use-has-sider.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isActivationKey } from "../_utils/keyboard.js";
|
|
5
5
|
import { useI18n } from "../locale/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import IconLoading from "../icon/icon-loading/index.js";
|
|
4
4
|
import Tooltip from "../tooltip/index.js";
|
|
@@ -83,7 +83,7 @@ var link_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
83
83
|
}, {
|
|
84
84
|
default: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(unref(IconLink))])]),
|
|
85
85
|
_: 3
|
|
86
|
-
}, 8, ["content"])) : renderSlot(_ctx.$slots, "icon", {
|
|
86
|
+
}, 8, ["content"])) : renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(unref(IconLink))], void 0, 2)], 2)) : createCommentVNode("", true), shouldRenderEllipsis.value ? (openBlock(), createBlock(unref(PerformantEllipsis), {
|
|
87
87
|
key: 1,
|
|
88
88
|
class: normalizeClass(`${unref(prefixCls)}-content`),
|
|
89
89
|
"line-clamp": __props.ellipsisLineClamp,
|
package/es/list/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { PerformantEllipsis } from "../ellipsis/index.js";
|
|
4
4
|
import { createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, useSlots, withCtx } from "vue";
|
package/es/list/list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isNumber } from "../_utils/is.js";
|
|
5
5
|
import { getAllElements } from "../_utils/vue-utils.js";
|
package/es/mention/index.d.ts
CHANGED
|
@@ -36,6 +36,9 @@ declare const Mention: {
|
|
|
36
36
|
type: BooleanConstructor;
|
|
37
37
|
default: boolean;
|
|
38
38
|
};
|
|
39
|
+
floatingOptions: {
|
|
40
|
+
type: import("vue").PropType<import("..").FloatingOptions>;
|
|
41
|
+
};
|
|
39
42
|
}>> & Readonly<{
|
|
40
43
|
onSearch?: ((_value: string, _prefix: string) => any) | undefined;
|
|
41
44
|
onFocus?: ((_ev: FocusEvent) => any) | undefined;
|
|
@@ -108,6 +111,9 @@ declare const Mention: {
|
|
|
108
111
|
type: BooleanConstructor;
|
|
109
112
|
default: boolean;
|
|
110
113
|
};
|
|
114
|
+
floatingOptions: {
|
|
115
|
+
type: import("vue").PropType<import("..").FloatingOptions>;
|
|
116
|
+
};
|
|
111
117
|
}>> & Readonly<{
|
|
112
118
|
onSearch?: ((_value: string, _prefix: string) => any) | undefined;
|
|
113
119
|
onFocus?: ((_ev: FocusEvent) => any) | undefined;
|
|
@@ -169,6 +175,9 @@ declare const Mention: {
|
|
|
169
175
|
type: BooleanConstructor;
|
|
170
176
|
default: boolean;
|
|
171
177
|
};
|
|
178
|
+
floatingOptions: {
|
|
179
|
+
type: import("vue").PropType<import("..").FloatingOptions>;
|
|
180
|
+
};
|
|
172
181
|
}>> & Readonly<{
|
|
173
182
|
onSearch?: ((_value: string, _prefix: string) => any) | undefined;
|
|
174
183
|
onFocus?: ((_ev: FocusEvent) => any) | undefined;
|
package/es/mention/mention.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import type { FloatingOptions } from '../_utils/floating';
|
|
2
3
|
import { SelectOptionData, SelectOptionGroup } from '../select/interface';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
5
|
modelValue: StringConstructor;
|
|
@@ -34,6 +35,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
34
35
|
type: BooleanConstructor;
|
|
35
36
|
default: boolean;
|
|
36
37
|
};
|
|
38
|
+
floatingOptions: {
|
|
39
|
+
type: PropType<FloatingOptions>;
|
|
40
|
+
};
|
|
37
41
|
}>, {
|
|
38
42
|
inputRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
39
43
|
render: () => import("vue/jsx-runtime").JSX.Element;
|
|
@@ -82,6 +86,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
82
86
|
type: BooleanConstructor;
|
|
83
87
|
default: boolean;
|
|
84
88
|
};
|
|
89
|
+
floatingOptions: {
|
|
90
|
+
type: PropType<FloatingOptions>;
|
|
91
|
+
};
|
|
85
92
|
}>> & Readonly<{
|
|
86
93
|
onSearch?: ((_value: string, _prefix: string) => any) | undefined;
|
|
87
94
|
onFocus?: ((_ev: FocusEvent) => any) | undefined;
|
package/es/mention/mention.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useFormItem } from "../_hooks/use-form-item.js";
|
|
2
|
-
import
|
|
2
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isFunction, isNull, isUndefined } from "../_utils/is.js";
|
|
5
5
|
import resize_observer_default from "../_components/resize-observer.js";
|
|
@@ -91,7 +91,12 @@ var mention_default = /* @__PURE__ */ defineComponent({
|
|
|
91
91
|
allowClear: {
|
|
92
92
|
type: Boolean,
|
|
93
93
|
default: false
|
|
94
|
-
}
|
|
94
|
+
},
|
|
95
|
+
/**
|
|
96
|
+
* @zh Floating UI Vue 的完整定位配置
|
|
97
|
+
* @en Complete Floating UI Vue positioning options
|
|
98
|
+
*/
|
|
99
|
+
floatingOptions: { type: Object }
|
|
95
100
|
},
|
|
96
101
|
emits: {
|
|
97
102
|
"update:modelValue": (_value) => true,
|
|
@@ -335,6 +340,7 @@ var mention_default = /* @__PURE__ */ defineComponent({
|
|
|
335
340
|
"preventFocus": true,
|
|
336
341
|
"popupVisible": computedPopupVisible.value,
|
|
337
342
|
"clickToClose": false,
|
|
343
|
+
"floatingOptions": props.floatingOptions,
|
|
338
344
|
"onPopupVisibleChange": handlePopupVisibleChange
|
|
339
345
|
}, {
|
|
340
346
|
default: () => [createVNode("span", null, [createTextVNode("@")])],
|
|
@@ -349,6 +355,7 @@ var mention_default = /* @__PURE__ */ defineComponent({
|
|
|
349
355
|
"preventFocus": true,
|
|
350
356
|
"popupVisible": computedPopupVisible.value,
|
|
351
357
|
"clickToClose": false,
|
|
358
|
+
"floatingOptions": props.floatingOptions,
|
|
352
359
|
"autoFitPopupWidth": true,
|
|
353
360
|
"autoFitTransformOrigin": true,
|
|
354
361
|
"disabled": mergedDisabled.value,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType, StyleValue } from 'vue';
|
|
2
|
+
import type { FloatingOptions } from '../_utils/floating';
|
|
2
3
|
import { TriggerProps } from '../trigger';
|
|
3
4
|
import { MenuEllipsisProps } from './interface';
|
|
4
5
|
declare var __VLS_1: {}, __VLS_3: {
|
|
@@ -68,6 +69,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
68
69
|
triggerProps: {
|
|
69
70
|
type: PropType<TriggerProps>;
|
|
70
71
|
};
|
|
72
|
+
floatingOptions: {
|
|
73
|
+
type: PropType<FloatingOptions>;
|
|
74
|
+
};
|
|
71
75
|
tooltipProps: {
|
|
72
76
|
type: ObjectConstructor;
|
|
73
77
|
};
|
|
@@ -167,6 +171,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
167
171
|
triggerProps: {
|
|
168
172
|
type: PropType<TriggerProps>;
|
|
169
173
|
};
|
|
174
|
+
floatingOptions: {
|
|
175
|
+
type: PropType<FloatingOptions>;
|
|
176
|
+
};
|
|
170
177
|
tooltipProps: {
|
|
171
178
|
type: ObjectConstructor;
|
|
172
179
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isNumber, isObject } from "../_utils/is.js";
|
|
4
4
|
import { KEYBOARD_KEY } from "../_utils/keyboard.js";
|
|
@@ -123,6 +123,7 @@ var base_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
123
123
|
* @en Accept all `Props` of `Trigger` in pop-up mode
|
|
124
124
|
*/
|
|
125
125
|
triggerProps: { type: Object },
|
|
126
|
+
floatingOptions: { type: Object },
|
|
126
127
|
/**
|
|
127
128
|
* @zh 弹出模式下可接受所有 `ToolTip` 的 `Props`
|
|
128
129
|
* @en Accept all `Props` of `ToolTip` in pop-up mode
|
|
@@ -198,7 +199,7 @@ var base_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
198
199
|
* @slot expand-icon-right
|
|
199
200
|
*/
|
|
200
201
|
const slots = useSlots();
|
|
201
|
-
const { style, mode, theme, levelIndent, accordion, showCollapseButton, scrollConfig, autoScrollIntoView, collapsedWidth, autoOpen, collapsed: propCollapsed, defaultCollapsed, selectedKeys: propSelectedKeys, defaultSelectedKeys, openKeys: propOpenKeys, defaultOpenKeys, triggerProps, tooltipProps, ellipsis, ellipsisProps, autoOpenSelected, breakpoint, popupMaxHeight, prefixCls, inTrigger, siderCollapsed, isRoot } = toRefs(props);
|
|
202
|
+
const { style, mode, theme, levelIndent, accordion, showCollapseButton, scrollConfig, autoScrollIntoView, collapsedWidth, autoOpen, collapsed: propCollapsed, defaultCollapsed, selectedKeys: propSelectedKeys, defaultSelectedKeys, openKeys: propOpenKeys, defaultOpenKeys, triggerProps, floatingOptions, tooltipProps, ellipsis, ellipsisProps, autoOpenSelected, breakpoint, popupMaxHeight, prefixCls, inTrigger, siderCollapsed, isRoot } = toRefs(props);
|
|
202
203
|
const { subMenuKeys, menuData } = useMenuDataCollector({ type: isRoot.value ? "menu" : "popupMenu" });
|
|
203
204
|
const [mergedSelectedKeys, setSelectedKeys] = useMergeState(defaultSelectedKeys.value, reactive({ value: propSelectedKeys }));
|
|
204
205
|
const { openKeys: mergedOpenKeys, setOpenKeys: setMergedOpenKeys, open } = useMenuOpenState(reactive({
|
|
@@ -276,6 +277,7 @@ var base_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
276
277
|
inTrigger,
|
|
277
278
|
collapsed: computedCollapsed,
|
|
278
279
|
triggerProps,
|
|
280
|
+
floatingOptions,
|
|
279
281
|
tooltipProps,
|
|
280
282
|
ellipsis,
|
|
281
283
|
ellipsisProps,
|
package/es/menu/context.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InjectionKey, VNodeTypes } from 'vue';
|
|
2
2
|
import { InternalMenuProps, MenuData } from './interface';
|
|
3
3
|
export declare const MenuInjectionKey: InjectionKey<MenuContext>;
|
|
4
|
-
export type MenuContext = Readonly<Pick<InternalMenuProps, 'mode' | 'theme' | 'levelIndent' | 'autoScrollIntoView' | 'scrollConfig' | 'inTrigger' | 'triggerProps' | 'tooltipProps' | 'ellipsis' | 'ellipsisProps' | 'popupMaxHeight'> & {
|
|
4
|
+
export type MenuContext = Readonly<Pick<InternalMenuProps, 'mode' | 'theme' | 'levelIndent' | 'autoScrollIntoView' | 'scrollConfig' | 'inTrigger' | 'triggerProps' | 'floatingOptions' | 'tooltipProps' | 'ellipsis' | 'ellipsisProps' | 'popupMaxHeight'> & {
|
|
5
5
|
selectedKeys: string[];
|
|
6
6
|
openKeys: string[];
|
|
7
7
|
prefixCls: string;
|