@sdata/web-vue 3.17.0 → 3.19.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/dist/sd.css +478 -0
- package/dist/sd.min.css +2 -2
- package/es/_components/feedback-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/icon-hover.vue.d.ts +1 -1
- package/es/_components/icon-hover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/input-label/input-label.d.ts +13 -1
- package/es/_components/input-label/input-label.js +35 -5
- package/es/_components/input-label/style/index.css +6 -0
- package/es/_components/input-label/style/input-label.scss +8 -0
- package/es/_components/picker/input-range.vue.d.ts +24 -1
- package/es/_components/picker/input-range.vue_vue_type_script_setup_true_lang.js +43 -7
- package/es/_components/picker/input.vue.d.ts +24 -1
- package/es/_components/picker/input.vue_vue_type_script_setup_true_lang.js +32 -5
- package/es/_components/picker/style/index.scss +8 -0
- package/es/_components/resize-trigger.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/select-view/select-view.d.ts +15 -3
- package/es/_components/select-view/select-view.js +10 -1
- package/es/_components/select-view/style/index.css +12 -0
- package/es/_components/transition/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/virtual-list/virtual-list.vue.d.ts +6 -6
- 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-fit-width.d.ts +22 -0
- package/es/_hooks/use-fit-width.js +76 -0
- package/es/_hooks/use-form-item.d.ts +1 -1
- package/es/_hooks/use-scrollbar.js +1 -1
- package/es/_hooks/use-size.d.ts +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.d.ts +1 -1
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/anchor/index.d.ts +3 -3
- package/es/anchor/index.js +1 -1
- package/es/auto-complete/auto-complete.d.ts +27 -2
- package/es/auto-complete/auto-complete.js +52 -27
- package/es/auto-complete/index.d.ts +45 -6
- 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 +20 -20
- 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 +59 -59
- 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.d.ts +2 -2
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/button/index.d.ts +6 -6
- 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/card.d.ts +3 -3
- package/es/card/index.d.ts +6 -6
- 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.d.ts +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/base-cascader-panel.d.ts +1 -1
- package/es/cascader/cascader-option.d.ts +1 -1
- package/es/cascader/cascader-panel.vue.d.ts +1 -1
- package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/cascader/cascader-search-panel.d.ts +1 -1
- package/es/cascader/cascader.vue.d.ts +7 -5
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +150 -132
- package/es/cascader/index.js +1 -1
- package/es/cascader/types.d.ts +4 -1
- package/es/checkbox/checkbox.d.ts +3 -3
- package/es/checkbox/index.d.ts +6 -6
- package/es/checkbox/index.js +1 -1
- package/es/collapse/collapse-item.d.ts +3 -3
- package/es/collapse/collapse.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/collapse/index.d.ts +3 -3
- package/es/collapse/index.js +1 -1
- package/es/color-picker/color-picker.d.ts +9 -2
- package/es/color-picker/color-picker.js +15 -10
- package/es/color-picker/index.d.ts +15 -6
- 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/components.d.ts +4 -0
- package/es/config-provider/config-provider.vue.d.ts +1 -1
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/index.d.ts +3 -3
- 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 +96 -23
- package/es/date-picker/index.js +1 -1
- package/es/date-picker/interface.d.ts +2 -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.d.ts +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 +46 -17
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +40 -6
- package/es/date-picker/pickers/date-picker.d.ts +18 -0
- package/es/date-picker/pickers/date-picker.js +16 -0
- package/es/date-picker/range-picker-panel.vue.d.ts +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.d.ts +46 -17
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +35 -5
- package/es/date-picker/style/index.css +6 -0
- package/es/descriptions/descriptions-item.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/descriptions/descriptions.d.ts +3 -3
- package/es/descriptions/descriptions.js +1 -1
- package/es/descriptions/index.d.ts +9 -9
- package/es/descriptions/index.js +1 -1
- package/es/divider/divider.d.ts +1 -1
- package/es/divider/index.d.ts +3 -3
- package/es/drawer/drawer.vue.d.ts +4 -4
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/drawer/index.d.ts +11 -11
- package/es/drawer/index.js +2 -2
- package/es/dropdown/dropdown-button.vue.d.ts +9 -2
- 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.d.ts +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 +9 -2
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/dropdown/dropdown.vue.d.ts +8 -1
- package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/dropdown/index.d.ts +48 -21
- package/es/dropdown/index.js +1 -1
- package/es/dropdown/interface.d.ts +3 -0
- package/es/ellipsis/ellipsis.vue.d.ts +1 -1
- package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/ellipsis/index.d.ts +6 -6
- package/es/ellipsis/performant-ellipsis.vue.d.ts +1 -1
- 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.d.ts +1 -1
- package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +5 -5
- package/es/form/form.vue.d.ts +1 -1
- package/es/form/form.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/form/index.d.ts +9 -9
- 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.d.ts +3 -3
- 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.d.ts +9 -9
- package/es/grid/index.js +1 -1
- package/es/icon/icon-arrow-up/icon-arrow-up.js +5 -0
- package/es/icon/icon-arrow-up/icon-arrow-up.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-arrow-up/index.js +9 -0
- 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.js +5 -0
- package/es/icon/icon-mute/icon-mute.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-mute/index.js +9 -0
- 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-voice/icon-voice.js +5 -0
- package/es/icon/icon-voice/icon-voice.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-voice/index.js +9 -0
- 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-action.d.ts +6 -6
- package/es/image/preview-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/image/preview-group.vue.d.ts +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.css +478 -0
- package/es/index.d.ts +8 -3
- package/es/index.js +6 -2
- package/es/index.scss +2 -0
- package/es/input/index.d.ts +99 -6
- 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.d.ts +18 -0
- package/es/input/input-password.vue_vue_type_script_setup_true_lang.js +25 -3
- package/es/input/input-search.d.ts +18 -0
- package/es/input/input-search.js +20 -2
- package/es/input/input.d.ts +29 -2
- package/es/input/input.js +46 -4
- package/es/input/style/index.css +16 -0
- package/es/input/style/index.scss +21 -0
- package/es/input-number/index.d.ts +36 -6
- package/es/input-number/input-number.d.ts +20 -2
- package/es/input-number/input-number.js +21 -2
- package/es/input-tag/index.d.ts +36 -6
- package/es/input-tag/input-tag.d.ts +20 -2
- package/es/input-tag/input-tag.js +42 -8
- package/es/input-tag/style/index.css +6 -0
- package/es/input-tag/style/input-tag.scss +8 -0
- 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 +74 -32
- 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/index.d.ts +6 -6
- package/es/link/link.vue.d.ts +2 -2
- 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/locale/interface.d.ts +22 -0
- package/es/locale/lang/ar-eg.js +21 -1
- package/es/locale/lang/de-de.js +21 -1
- package/es/locale/lang/en-us.js +21 -1
- package/es/locale/lang/es-es.js +21 -1
- package/es/locale/lang/fr-fr.js +21 -1
- package/es/locale/lang/id-id.js +21 -1
- package/es/locale/lang/it-it.js +21 -1
- package/es/locale/lang/ja-jp.js +21 -1
- package/es/locale/lang/km-kh.js +21 -1
- package/es/locale/lang/ko-kr.js +21 -1
- package/es/locale/lang/ms-my.js +21 -1
- package/es/locale/lang/nl-nl.js +21 -1
- package/es/locale/lang/pt-pt.js +21 -1
- package/es/locale/lang/ru-ru.js +21 -1
- package/es/locale/lang/th-th.js +21 -1
- package/es/locale/lang/vi-vn.js +21 -1
- package/es/locale/lang/zh-cn.js +21 -1
- package/es/locale/lang/zh-tw.js +21 -1
- package/es/mention/index.d.ts +48 -9
- package/es/mention/mention.d.ts +28 -3
- package/es/mention/mention.js +33 -3
- package/es/mention/style/index.css +6 -0
- package/es/mention/style/index.scss +8 -0
- 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-list.d.ts +1 -1
- package/es/message/message.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/modal/index.d.ts +9 -9
- package/es/modal/index.js +2 -2
- package/es/modal/modal.vue.d.ts +3 -3
- 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 +12 -3
- package/es/popconfirm/popconfirm.vue.d.ts +8 -1
- package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/popover/index.d.ts +15 -6
- package/es/popover/popover.vue.d.ts +9 -2
- package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +6 -3
- package/es/progress/circle.vue.d.ts +1 -1
- package/es/progress/circle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/progress/line.vue.d.ts +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/index.d.ts +15 -15
- package/es/qr-code/qr-code.vue.d.ts +5 -5
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +3 -4
- package/es/radio/index.d.ts +6 -6
- package/es/radio/index.js +1 -1
- package/es/radio/radio.d.ts +3 -3
- package/es/rate/index.d.ts +3 -3
- package/es/rate/rate.d.ts +1 -1
- package/es/resize-box/index.d.ts +5 -5
- package/es/resize-box/resize-box.vue.d.ts +3 -3
- 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/rich-text-editor/built-in-components.d.ts +5 -0
- package/es/rich-text-editor/built-in-components.js +6 -0
- package/es/rich-text-editor/index.d.ts +195 -0
- package/es/rich-text-editor/index.js +12 -0
- package/es/rich-text-editor/nodes/inline-component-node.d.ts +30 -0
- package/es/rich-text-editor/nodes/inline-component-node.js +86 -0
- package/es/rich-text-editor/rich-text-editor.js +5 -0
- package/es/rich-text-editor/rich-text-editor.vue.d.ts +76 -0
- package/es/rich-text-editor/rich-text-editor.vue_vue_type_script_setup_true_lang.js +630 -0
- package/es/rich-text-editor/rich-text-node-renderer.js +5 -0
- package/es/rich-text-editor/rich-text-node-renderer.vue.d.ts +28 -0
- package/es/rich-text-editor/rich-text-node-renderer.vue_vue_type_script_setup_true_lang.js +133 -0
- package/es/rich-text-editor/style/css.js +2 -0
- package/es/rich-text-editor/style/index.css +164 -0
- package/es/rich-text-editor/style/index.d.ts +2 -0
- package/es/rich-text-editor/style/index.js +2 -0
- package/es/rich-text-editor/style/index.scss +193 -0
- package/es/rich-text-editor/style/token.scss +36 -0
- package/es/rich-text-editor/types.d.ts +148 -0
- package/es/scrollbar/scrollbar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/sd-vue.js +7 -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 +141 -60
- package/es/select/interface.d.ts +2 -1
- package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/select/select.d.ts +74 -28
- package/es/select/select.js +82 -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/sender/context.d.ts +8 -0
- package/es/sender/context.js +4 -0
- package/es/sender/index.d.ts +119 -0
- package/es/sender/index.js +20 -0
- package/es/sender/sender-header.js +5 -0
- package/es/sender/sender-header.vue.d.ts +28 -0
- package/es/sender/sender-header.vue_vue_type_script_setup_true_lang.js +127 -0
- package/es/sender/sender-switch.js +5 -0
- package/es/sender/sender-switch.vue.d.ts +32 -0
- package/es/sender/sender-switch.vue_vue_type_script_setup_true_lang.js +95 -0
- package/es/sender/sender.js +5 -0
- package/es/sender/sender.vue_vue_type_script_setup_true_lang.js +871 -0
- package/es/sender/style/css.js +3 -0
- package/es/sender/style/index.css +290 -0
- package/es/sender/style/index.d.ts +3 -0
- package/es/sender/style/index.js +3 -0
- package/es/sender/style/index.scss +346 -0
- package/es/sender/style/token.scss +43 -0
- package/es/sender/types.d.ts +171 -0
- package/es/sender/use-speech.d.ts +9 -0
- package/es/sender/use-speech.js +120 -0
- 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/index.d.ts +3 -3
- 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.d.ts +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.d.ts +1 -1
- package/es/slider/slider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/space/index.d.ts +9 -9
- package/es/space/space.d.ts +2 -2
- package/es/spin/index.d.ts +3 -3
- package/es/spin/spin.d.ts +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.d.ts +3 -3
- package/es/statistic/index.js +1 -1
- package/es/statistic/statistic.vue.d.ts +1 -1
- package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/steps/index.d.ts +5 -5
- package/es/steps/index.js +1 -1
- package/es/steps/step.vue.d.ts +2 -2
- package/es/steps/step.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/steps/steps.vue.d.ts +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.d.ts +17 -17
- package/es/table/index.js +1 -1
- package/es/table/interface.d.ts +2 -0
- package/es/table/table-column.d.ts +1 -1
- package/es/table/table-operation-td.d.ts +12 -12
- package/es/table/table-operation-td.js +1 -1
- package/es/table/table-operation-th.js +1 -1
- package/es/table/table-td.d.ts +2 -2
- package/es/table/table-td.js +1 -1
- package/es/table/table-th.js +3 -2
- package/es/table/table.d.ts +5 -5
- package/es/table/table.js +5 -3
- package/es/table/utils.js +2 -2
- package/es/tabs/index.d.ts +12 -12
- 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.d.ts +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/tabs/tabs.d.ts +4 -4
- package/es/tag/index.d.ts +6 -6
- package/es/tag/tag.vue.d.ts +2 -2
- 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/index.d.ts +38 -8
- package/es/textarea/style/index.css +6 -0
- package/es/textarea/style/index.scss +8 -0
- package/es/textarea/textarea.vue.d.ts +21 -3
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +37 -4
- package/es/time-picker/index.d.ts +45 -6
- package/es/time-picker/interface.d.ts +2 -1
- package/es/time-picker/panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/time-picker/range-panel.js +58 -0
- 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 +27 -2
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +39 -4
- package/es/timeline/index.d.ts +6 -6
- package/es/timeline/index.js +1 -1
- package/es/timeline/item.vue_vue_type_script_setup_true_lang.js +5 -4
- package/es/timeline/timeline.d.ts +3 -3
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +3 -3
- package/es/tooltip/index.d.ts +6 -6
- package/es/tooltip/interface.d.ts +2 -0
- package/es/tooltip/tooltip.vue.d.ts +2 -2
- package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/tour/index.d.ts +18 -3
- package/es/tour/tour.vue.d.ts +11 -1
- 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/index.d.ts +3 -3
- package/es/transfer/transfer-view.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/transfer/transfer.vue.d.ts +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.d.ts +4 -4
- 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/interface.d.ts +2 -1
- package/es/tree-select/panel.js +1 -1
- package/es/tree-select/tree-select.vue.d.ts +32 -7
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +165 -136
- package/es/trigger/index.d.ts +25 -15
- package/es/trigger/interface.d.ts +2 -0
- package/es/trigger/trigger.d.ts +12 -5
- 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.d.ts +4 -4
- package/es/typography/base.js +1 -1
- package/es/typography/edit-content.vue.d.ts +2 -2
- 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/index.d.ts +6 -6
- package/es/upload/upload-button.d.ts +1 -1
- package/es/upload/upload.d.ts +2 -2
- package/es/upload/upload.js +2 -2
- package/es/verification-code/index.d.ts +3 -3
- package/es/verification-code/verification-code.d.ts +1 -1
- package/es/watermark/hooks/use-mutation-observer.js +2 -2
- package/es/watermark/index.d.ts +3 -3
- package/es/watermark/utils/index.js +1 -1
- package/es/watermark/watermark.d.ts +1 -1
- package/es/watermark/watermark.js +1 -1
- package/json/vetur-attributes.json +242 -0
- package/json/vetur-tags.json +87 -4
- package/json/web-types.json +559 -2
- package/package.json +23 -13
- package/es/_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/toPropertyKey.js +0 -9
|
@@ -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 IconExclamationCircleFill from "../icon/icon-exclamation-circle-fill/index.js";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, toDisplayString, unref } from "vue";
|
package/es/qr-code/index.d.ts
CHANGED
|
@@ -69,22 +69,22 @@ declare const QrCode: {
|
|
|
69
69
|
refresh: () => any;
|
|
70
70
|
}, import("vue").PublicProps, {
|
|
71
71
|
type: import("./types").QrCodeType;
|
|
72
|
-
size: number;
|
|
73
72
|
color: string;
|
|
74
|
-
|
|
73
|
+
size: number;
|
|
75
74
|
icon: string;
|
|
75
|
+
bordered: boolean;
|
|
76
76
|
status: import("./types").QrCodeStatusType;
|
|
77
77
|
spinProps: Partial<{
|
|
78
|
-
loading: boolean;
|
|
79
78
|
dot: boolean;
|
|
79
|
+
loading: boolean;
|
|
80
80
|
hideIcon: boolean;
|
|
81
81
|
}> & Omit<{
|
|
82
|
-
readonly loading: boolean;
|
|
83
82
|
readonly dot: boolean;
|
|
83
|
+
readonly loading: boolean;
|
|
84
84
|
readonly hideIcon: boolean;
|
|
85
85
|
readonly size?: number | undefined;
|
|
86
86
|
readonly tip?: string | undefined;
|
|
87
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
87
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "dot" | "loading" | "hideIcon">;
|
|
88
88
|
iconAlt: string;
|
|
89
89
|
iconSize: import("./types").QrCodeIconSize;
|
|
90
90
|
bgColor: string;
|
|
@@ -164,22 +164,22 @@ declare const QrCode: {
|
|
|
164
164
|
onRefresh?: (() => any) | undefined;
|
|
165
165
|
}>, {}, {}, {}, {}, {
|
|
166
166
|
type: import("./types").QrCodeType;
|
|
167
|
-
size: number;
|
|
168
167
|
color: string;
|
|
169
|
-
|
|
168
|
+
size: number;
|
|
170
169
|
icon: string;
|
|
170
|
+
bordered: boolean;
|
|
171
171
|
status: import("./types").QrCodeStatusType;
|
|
172
172
|
spinProps: Partial<{
|
|
173
|
-
loading: boolean;
|
|
174
173
|
dot: boolean;
|
|
174
|
+
loading: boolean;
|
|
175
175
|
hideIcon: boolean;
|
|
176
176
|
}> & Omit<{
|
|
177
|
-
readonly loading: boolean;
|
|
178
177
|
readonly dot: boolean;
|
|
178
|
+
readonly loading: boolean;
|
|
179
179
|
readonly hideIcon: boolean;
|
|
180
180
|
readonly size?: number | undefined;
|
|
181
181
|
readonly tip?: string | undefined;
|
|
182
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
182
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "dot" | "loading" | "hideIcon">;
|
|
183
183
|
iconAlt: string;
|
|
184
184
|
iconSize: import("./types").QrCodeIconSize;
|
|
185
185
|
bgColor: string;
|
|
@@ -258,22 +258,22 @@ declare const QrCode: {
|
|
|
258
258
|
refresh: () => any;
|
|
259
259
|
}, string, {
|
|
260
260
|
type: import("./types").QrCodeType;
|
|
261
|
-
size: number;
|
|
262
261
|
color: string;
|
|
263
|
-
|
|
262
|
+
size: number;
|
|
264
263
|
icon: string;
|
|
264
|
+
bordered: boolean;
|
|
265
265
|
status: import("./types").QrCodeStatusType;
|
|
266
266
|
spinProps: Partial<{
|
|
267
|
-
loading: boolean;
|
|
268
267
|
dot: boolean;
|
|
268
|
+
loading: boolean;
|
|
269
269
|
hideIcon: boolean;
|
|
270
270
|
}> & Omit<{
|
|
271
|
-
readonly loading: boolean;
|
|
272
271
|
readonly dot: boolean;
|
|
272
|
+
readonly loading: boolean;
|
|
273
273
|
readonly hideIcon: boolean;
|
|
274
274
|
readonly size?: number | undefined;
|
|
275
275
|
readonly tip?: string | undefined;
|
|
276
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
276
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "dot" | "loading" | "hideIcon">;
|
|
277
277
|
iconAlt: string;
|
|
278
278
|
iconSize: import("./types").QrCodeIconSize;
|
|
279
279
|
bgColor: string;
|
|
@@ -133,22 +133,22 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
133
133
|
onRefresh?: (() => any) | undefined;
|
|
134
134
|
}>, {
|
|
135
135
|
type: QrCodeType;
|
|
136
|
-
size: number;
|
|
137
136
|
color: string;
|
|
138
|
-
|
|
137
|
+
size: number;
|
|
139
138
|
icon: string;
|
|
139
|
+
bordered: boolean;
|
|
140
140
|
status: QrCodeStatusType;
|
|
141
141
|
spinProps: Partial<{
|
|
142
|
-
loading: boolean;
|
|
143
142
|
dot: boolean;
|
|
143
|
+
loading: boolean;
|
|
144
144
|
hideIcon: boolean;
|
|
145
145
|
}> & Omit<{
|
|
146
|
-
readonly loading: boolean;
|
|
147
146
|
readonly dot: boolean;
|
|
147
|
+
readonly loading: boolean;
|
|
148
148
|
readonly hideIcon: boolean;
|
|
149
149
|
readonly size?: number | undefined;
|
|
150
150
|
readonly tip?: string | undefined;
|
|
151
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
151
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "dot" | "loading" | "hideIcon">;
|
|
152
152
|
iconAlt: string;
|
|
153
153
|
iconSize: QrCodeIconSize;
|
|
154
154
|
bgColor: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
import
|
|
4
|
+
import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/asyncToGenerator.js";
|
|
5
5
|
import qr_code_status_default from "./qr-code-status.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, unref, useSlots, watch } from "vue";
|
|
7
7
|
import QRCode from "qrcode";
|
|
@@ -276,7 +276,6 @@ var qr_code_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
276
276
|
key: 0,
|
|
277
277
|
node: customStatusNode.value
|
|
278
278
|
}, null, 8, ["node"])) : renderSlot(_ctx.$slots, "status", {
|
|
279
|
-
key: 1,
|
|
280
279
|
status: __props.status,
|
|
281
280
|
onRefresh: handleRefresh
|
|
282
281
|
}, () => [createVNode(qr_code_status_default, {
|
|
@@ -288,7 +287,7 @@ var qr_code_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
288
287
|
"prefix-cls",
|
|
289
288
|
"status",
|
|
290
289
|
"spin-props"
|
|
291
|
-
])])], 2)) : createCommentVNode("", true),
|
|
290
|
+
])], void 0, 1)], 2)) : createCommentVNode("", true),
|
|
292
291
|
__props.type === "canvas" ? (openBlock(), createElementBlock("canvas", {
|
|
293
292
|
key: 1,
|
|
294
293
|
ref_key: "canvasRef",
|
package/es/radio/index.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ declare const Radio: {
|
|
|
63
63
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
64
64
|
click: (_e: MouseEvent) => any;
|
|
65
65
|
}, import("vue").PublicProps, {
|
|
66
|
-
size: "small" | "
|
|
66
|
+
size: "small" | "medium" | "large" | "mini";
|
|
67
67
|
disabled: boolean;
|
|
68
68
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
69
69
|
P: {};
|
|
@@ -87,7 +87,7 @@ declare const Radio: {
|
|
|
87
87
|
}>> & Readonly<{
|
|
88
88
|
onClick?: ((_e: MouseEvent) => any) | undefined;
|
|
89
89
|
}>, {}, {}, {}, {}, {
|
|
90
|
-
size: "small" | "
|
|
90
|
+
size: "small" | "medium" | "large" | "mini";
|
|
91
91
|
disabled: boolean;
|
|
92
92
|
}>;
|
|
93
93
|
__isFragment?: never;
|
|
@@ -110,7 +110,7 @@ declare const Radio: {
|
|
|
110
110
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
111
111
|
click: (_e: MouseEvent) => any;
|
|
112
112
|
}, string, {
|
|
113
|
-
size: "small" | "
|
|
113
|
+
size: "small" | "medium" | "large" | "mini";
|
|
114
114
|
disabled: boolean;
|
|
115
115
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
116
116
|
$slots: {
|
|
@@ -220,7 +220,7 @@ declare const Radio: {
|
|
|
220
220
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
221
221
|
click: (_e: MouseEvent) => any;
|
|
222
222
|
}, import("vue").PublicProps, {
|
|
223
|
-
size: "small" | "
|
|
223
|
+
size: "small" | "medium" | "large" | "mini";
|
|
224
224
|
disabled: boolean;
|
|
225
225
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
226
226
|
P: {};
|
|
@@ -244,7 +244,7 @@ declare const Radio: {
|
|
|
244
244
|
}>> & Readonly<{
|
|
245
245
|
onClick?: ((_e: MouseEvent) => any) | undefined;
|
|
246
246
|
}>, {}, {}, {}, {}, {
|
|
247
|
-
size: "small" | "
|
|
247
|
+
size: "small" | "medium" | "large" | "mini";
|
|
248
248
|
disabled: boolean;
|
|
249
249
|
}>;
|
|
250
250
|
__isFragment?: never;
|
|
@@ -267,7 +267,7 @@ declare const Radio: {
|
|
|
267
267
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
268
268
|
click: (_e: MouseEvent) => any;
|
|
269
269
|
}, string, {
|
|
270
|
-
size: "small" | "
|
|
270
|
+
size: "small" | "medium" | "large" | "mini";
|
|
271
271
|
disabled: boolean;
|
|
272
272
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
273
273
|
$slots: {
|
package/es/radio/index.js
CHANGED
package/es/radio/radio.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
82
82
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
83
83
|
click: (_e: MouseEvent) => any;
|
|
84
84
|
}, import("vue").PublicProps, {
|
|
85
|
-
size: "small" | "
|
|
85
|
+
size: "small" | "medium" | "large" | "mini";
|
|
86
86
|
disabled: boolean;
|
|
87
87
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
88
88
|
P: {};
|
|
@@ -106,7 +106,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
106
106
|
}>> & Readonly<{
|
|
107
107
|
onClick?: ((_e: MouseEvent) => any) | undefined;
|
|
108
108
|
}>, {}, {}, {}, {}, {
|
|
109
|
-
size: "small" | "
|
|
109
|
+
size: "small" | "medium" | "large" | "mini";
|
|
110
110
|
disabled: boolean;
|
|
111
111
|
}>;
|
|
112
112
|
__isFragment?: never;
|
|
@@ -129,7 +129,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
129
129
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
130
130
|
click: (_e: MouseEvent) => any;
|
|
131
131
|
}, string, {
|
|
132
|
-
size: "small" | "
|
|
132
|
+
size: "small" | "medium" | "large" | "mini";
|
|
133
133
|
disabled: boolean;
|
|
134
134
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
135
135
|
$slots: {
|
package/es/rate/index.d.ts
CHANGED
|
@@ -47,8 +47,8 @@ declare const Rate: {
|
|
|
47
47
|
change: (_value: number) => true;
|
|
48
48
|
hoverChange: (_value: number) => true;
|
|
49
49
|
}, import("vue").PublicProps, {
|
|
50
|
-
readonly: string | boolean;
|
|
51
50
|
disabled: boolean;
|
|
51
|
+
readonly: string | boolean;
|
|
52
52
|
defaultValue: number;
|
|
53
53
|
modelValue: number;
|
|
54
54
|
allowClear: boolean;
|
|
@@ -103,8 +103,8 @@ declare const Rate: {
|
|
|
103
103
|
"onUpdate:modelValue"?: ((_value: number) => any) | undefined;
|
|
104
104
|
onHoverChange?: ((_value: number) => any) | undefined;
|
|
105
105
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
106
|
-
readonly: string | boolean;
|
|
107
106
|
disabled: boolean;
|
|
107
|
+
readonly: string | boolean;
|
|
108
108
|
defaultValue: number;
|
|
109
109
|
modelValue: number;
|
|
110
110
|
allowClear: boolean;
|
|
@@ -160,8 +160,8 @@ declare const Rate: {
|
|
|
160
160
|
change: (_value: number) => true;
|
|
161
161
|
hoverChange: (_value: number) => true;
|
|
162
162
|
}, string, {
|
|
163
|
-
readonly: string | boolean;
|
|
164
163
|
disabled: boolean;
|
|
164
|
+
readonly: string | boolean;
|
|
165
165
|
defaultValue: number;
|
|
166
166
|
modelValue: number;
|
|
167
167
|
allowClear: boolean;
|
package/es/rate/rate.d.ts
CHANGED
|
@@ -80,8 +80,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
80
|
"onUpdate:modelValue"?: ((_value: number) => any) | undefined;
|
|
81
81
|
onHoverChange?: ((_value: number) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
|
-
readonly: string | boolean;
|
|
84
83
|
disabled: boolean;
|
|
84
|
+
readonly: string | boolean;
|
|
85
85
|
defaultValue: number;
|
|
86
86
|
modelValue: number;
|
|
87
87
|
allowClear: boolean;
|
package/es/resize-box/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ declare const ResizeBox: {
|
|
|
37
37
|
movingEnd: (_ev: MouseEvent) => any;
|
|
38
38
|
}, import("vue").PublicProps, {
|
|
39
39
|
component: string;
|
|
40
|
-
directions: ("
|
|
40
|
+
directions: ("left" | "right" | "bottom" | "top")[];
|
|
41
41
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
42
42
|
P: {};
|
|
43
43
|
B: {};
|
|
@@ -71,7 +71,7 @@ declare const ResizeBox: {
|
|
|
71
71
|
onMovingEnd?: ((_ev: MouseEvent) => any) | undefined;
|
|
72
72
|
}>, {}, {}, {}, {}, {
|
|
73
73
|
component: string;
|
|
74
|
-
directions: ("
|
|
74
|
+
directions: ("left" | "right" | "bottom" | "top")[];
|
|
75
75
|
}>;
|
|
76
76
|
__isFragment?: never;
|
|
77
77
|
__isTeleport?: never;
|
|
@@ -111,17 +111,17 @@ declare const ResizeBox: {
|
|
|
111
111
|
movingEnd: (_ev: MouseEvent) => any;
|
|
112
112
|
}, string, {
|
|
113
113
|
component: string;
|
|
114
|
-
directions: ("
|
|
114
|
+
directions: ("left" | "right" | "bottom" | "top")[];
|
|
115
115
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
116
116
|
$slots: {
|
|
117
117
|
default?: (props: {}) => any;
|
|
118
118
|
} & {
|
|
119
119
|
'resize-trigger'?: (props: {
|
|
120
|
-
direction: "
|
|
120
|
+
direction: "left" | "right" | "bottom" | "top";
|
|
121
121
|
}) => any;
|
|
122
122
|
} & {
|
|
123
123
|
'resize-trigger-icon'?: (props: {
|
|
124
|
-
direction: "
|
|
124
|
+
direction: "left" | "right" | "bottom" | "top";
|
|
125
125
|
}) => any;
|
|
126
126
|
};
|
|
127
127
|
}) & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
export type DirectionType = 'left' | 'right' | 'top' | 'bottom';
|
|
3
3
|
declare var __VLS_9: {}, __VLS_21: {
|
|
4
|
-
direction: "
|
|
4
|
+
direction: "left" | "right" | "bottom" | "top";
|
|
5
5
|
}, __VLS_24: {
|
|
6
|
-
direction: "
|
|
6
|
+
direction: "left" | "right" | "bottom" | "top";
|
|
7
7
|
};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_9) => any;
|
|
@@ -62,7 +62,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
62
62
|
onMovingEnd?: ((_ev: MouseEvent) => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
64
|
component: string;
|
|
65
|
-
directions: ("
|
|
65
|
+
directions: ("left" | "right" | "bottom" | "top")[];
|
|
66
66
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
67
67
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
68
68
|
declare const _default: typeof __VLS_export;
|
|
@@ -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 } from "../_utils/is.js";
|
|
4
4
|
import { off, on } from "../_utils/dom.js";
|
|
@@ -214,10 +214,7 @@ var resize_box_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
214
214
|
onTriggerKeydown(direction, e);
|
|
215
215
|
}
|
|
216
216
|
}, createSlots({
|
|
217
|
-
default: withCtx(() => [_ctx.$slots["resize-trigger"] ? renderSlot(_ctx.$slots, "resize-trigger", {
|
|
218
|
-
key: 0,
|
|
219
|
-
direction
|
|
220
|
-
}) : createCommentVNode("", true)]),
|
|
217
|
+
default: withCtx(() => [_ctx.$slots["resize-trigger"] ? renderSlot(_ctx.$slots, "resize-trigger", { direction }, void 0, void 0, 0) : createCommentVNode("", true)]),
|
|
221
218
|
_: 2
|
|
222
219
|
}, [_ctx.$slots["resize-trigger-icon"] ? {
|
|
223
220
|
name: "icon",
|
|
@@ -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 IconClose from "../icon/icon-close/index.js";
|
|
4
4
|
import IconCheck from "../icon/icon-check/index.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { JsonFormBuiltinComponentType } from '../json-form/types';
|
|
2
|
+
export type RichTextEditorJsonFormNodeName = JsonFormBuiltinComponentType;
|
|
3
|
+
export type RichTextEditorBuiltInNodeName = RichTextEditorJsonFormNodeName | 'tag';
|
|
4
|
+
export declare const RICH_TEXT_EDITOR_JSON_FORM_NODE_NAMES: readonly RichTextEditorJsonFormNodeName[];
|
|
5
|
+
export declare const RICH_TEXT_EDITOR_BUILT_IN_NODE_NAMES: readonly RichTextEditorBuiltInNodeName[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSON_FORM_COMPONENT_TYPES } from "../json-form/types.js";
|
|
2
|
+
//#region components/rich-text-editor/built-in-components.ts
|
|
3
|
+
var RICH_TEXT_EDITOR_JSON_FORM_NODE_NAMES = Object.freeze(Object.values(JSON_FORM_COMPONENT_TYPES));
|
|
4
|
+
var RICH_TEXT_EDITOR_BUILT_IN_NODE_NAMES = Object.freeze([...RICH_TEXT_EDITOR_JSON_FORM_NODE_NAMES, "tag"]);
|
|
5
|
+
//#endregion
|
|
6
|
+
export { RICH_TEXT_EDITOR_BUILT_IN_NODE_NAMES, RICH_TEXT_EDITOR_JSON_FORM_NODE_NAMES };
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import type { SDOptions } from '../_utils/types';
|
|
3
|
+
import _RichTextEditor from './rich-text-editor.vue';
|
|
4
|
+
declare const RichTextEditor: {
|
|
5
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./types").RichTextEditorProps> & Readonly<{
|
|
6
|
+
onUpdate?: ((context: import("./types").RichTextEditorChangeContext) => any) | undefined;
|
|
7
|
+
onError?: ((error: Error) => any) | undefined;
|
|
8
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
9
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
10
|
+
onChange?: ((value: import("./types").RichTextEditorValue, context: import("./types").RichTextEditorChangeContext) => any) | undefined;
|
|
11
|
+
"onUpdate:modelValue"?: ((value: import("./types").RichTextEditorValue) => any) | undefined;
|
|
12
|
+
onReady?: ((editor: import("lexical").LexicalEditor) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
readonly editor: import("lexical").LexicalEditor | null;
|
|
15
|
+
readonly editorState: import("lexical").EditorState | null;
|
|
16
|
+
readonly rootElement: HTMLDivElement | null;
|
|
17
|
+
readonly canUndo: boolean;
|
|
18
|
+
readonly canRedo: boolean;
|
|
19
|
+
focus: (callback?: () => void, options?: import("./types").RichTextEditorFocusOptions) => void;
|
|
20
|
+
blur: () => void | undefined;
|
|
21
|
+
clear: () => void;
|
|
22
|
+
undo: () => boolean;
|
|
23
|
+
redo: () => boolean;
|
|
24
|
+
getJSON: () => import("lexical").SerializedEditorState<import("lexical").SerializedLexicalNode> | undefined;
|
|
25
|
+
setJSON: (value: import("./types").RichTextEditorValue | string, options?: import("lexical").EditorSetOptions) => void;
|
|
26
|
+
getContent: () => import("./types").RichTextEditorContentSnapshot[];
|
|
27
|
+
setContent: (content: readonly import("./types").RichTextEditorContentItem[], options?: import("lexical").EditorUpdateOptions) => void;
|
|
28
|
+
insertContent: (content: readonly import("./types").RichTextEditorContentItem[], options?: import("./types").RichTextEditorInsertOptions) => void;
|
|
29
|
+
getText: () => string;
|
|
30
|
+
getHTML: () => string;
|
|
31
|
+
setHTML: (html: string, options?: import("lexical").EditorUpdateOptions) => void;
|
|
32
|
+
getMarkdown: (transformers?: readonly import("@lexical/markdown").Transformer[]) => string;
|
|
33
|
+
setMarkdown: (markdown: string, transformers?: readonly import("@lexical/markdown").Transformer[], options?: import("lexical").EditorUpdateOptions) => void;
|
|
34
|
+
insertText: (text: string, options?: import("./types").RichTextEditorInsertOptions) => void;
|
|
35
|
+
insertComponent: (data: import("./types").RichTextEditorComponentNodeData, options?: import("./types").RichTextEditorInsertOptions) => void;
|
|
36
|
+
updateComponent: (nodeKey: import("lexical").NodeKey, value: import("type-fest").JsonValue, options?: import("lexical").EditorUpdateOptions) => void;
|
|
37
|
+
removeComponent: (nodeKey: import("lexical").NodeKey, options?: import("lexical").EditorUpdateOptions) => void;
|
|
38
|
+
formatText: (format: import("lexical").TextFormatType) => boolean;
|
|
39
|
+
read: <T>(callback: () => T) => T | undefined;
|
|
40
|
+
update: (callback: () => void, options?: import("lexical").EditorUpdateOptions) => void | undefined;
|
|
41
|
+
dispatchCommand: <T>(command: import("lexical").LexicalCommand<T>, payload: T) => boolean;
|
|
42
|
+
registerCommand: <T>(command: import("lexical").LexicalCommand<T>, listener: import("lexical").CommandListener<T>, priority: import("lexical").CommandListenerPriority) => () => void;
|
|
43
|
+
registerUpdateListener: (listener: import("lexical").UpdateListener) => () => void;
|
|
44
|
+
registerMutationListener: (klass: import("lexical").Klass<import("lexical").LexicalNode>, listener: import("lexical").MutationListener, options?: import("./types").RichTextEditorMutationListenerOptions) => () => void;
|
|
45
|
+
registerNodeTransform: <T extends import("lexical").LexicalNode>(klass: import("lexical").Klass<T>, listener: import("lexical").Transform<T>) => () => void;
|
|
46
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
|
+
update: (context: import("./types").RichTextEditorChangeContext) => any;
|
|
48
|
+
error: (error: Error) => any;
|
|
49
|
+
focus: (event: FocusEvent) => any;
|
|
50
|
+
blur: (event: FocusEvent) => any;
|
|
51
|
+
change: (value: import("./types").RichTextEditorValue, context: import("./types").RichTextEditorChangeContext) => any;
|
|
52
|
+
"update:modelValue": (value: import("./types").RichTextEditorValue) => any;
|
|
53
|
+
ready: (editor: import("lexical").LexicalEditor) => any;
|
|
54
|
+
}, import("vue").PublicProps, {
|
|
55
|
+
classNames: Partial<Record<import("./types").RichTextEditorSemanticType, string>>;
|
|
56
|
+
autoSize: boolean | import("./types").RichTextEditorAutoSize;
|
|
57
|
+
styles: Partial<Record<import("./types").RichTextEditorSemanticType, import("vue").CSSProperties>>;
|
|
58
|
+
plugins: readonly import("./types").RichTextEditorPlugin[];
|
|
59
|
+
transformers: readonly import("@lexical/markdown").Transformer[];
|
|
60
|
+
history: boolean;
|
|
61
|
+
historyDelay: number;
|
|
62
|
+
historyMaxDepth: number | null;
|
|
63
|
+
spellcheck: boolean;
|
|
64
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
65
|
+
P: {};
|
|
66
|
+
B: {};
|
|
67
|
+
D: {};
|
|
68
|
+
C: {};
|
|
69
|
+
M: {};
|
|
70
|
+
Defaults: {};
|
|
71
|
+
}, Readonly<import("./types").RichTextEditorProps> & Readonly<{
|
|
72
|
+
onUpdate?: ((context: import("./types").RichTextEditorChangeContext) => any) | undefined;
|
|
73
|
+
onError?: ((error: Error) => any) | undefined;
|
|
74
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
75
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
76
|
+
onChange?: ((value: import("./types").RichTextEditorValue, context: import("./types").RichTextEditorChangeContext) => any) | undefined;
|
|
77
|
+
"onUpdate:modelValue"?: ((value: import("./types").RichTextEditorValue) => any) | undefined;
|
|
78
|
+
onReady?: ((editor: import("lexical").LexicalEditor) => any) | undefined;
|
|
79
|
+
}>, {
|
|
80
|
+
readonly editor: import("lexical").LexicalEditor | null;
|
|
81
|
+
readonly editorState: import("lexical").EditorState | null;
|
|
82
|
+
readonly rootElement: HTMLDivElement | null;
|
|
83
|
+
readonly canUndo: boolean;
|
|
84
|
+
readonly canRedo: boolean;
|
|
85
|
+
focus: (callback?: () => void, options?: import("./types").RichTextEditorFocusOptions) => void;
|
|
86
|
+
blur: () => void | undefined;
|
|
87
|
+
clear: () => void;
|
|
88
|
+
undo: () => boolean;
|
|
89
|
+
redo: () => boolean;
|
|
90
|
+
getJSON: () => import("lexical").SerializedEditorState<import("lexical").SerializedLexicalNode> | undefined;
|
|
91
|
+
setJSON: (value: import("./types").RichTextEditorValue | string, options?: import("lexical").EditorSetOptions) => void;
|
|
92
|
+
getContent: () => import("./types").RichTextEditorContentSnapshot[];
|
|
93
|
+
setContent: (content: readonly import("./types").RichTextEditorContentItem[], options?: import("lexical").EditorUpdateOptions) => void;
|
|
94
|
+
insertContent: (content: readonly import("./types").RichTextEditorContentItem[], options?: import("./types").RichTextEditorInsertOptions) => void;
|
|
95
|
+
getText: () => string;
|
|
96
|
+
getHTML: () => string;
|
|
97
|
+
setHTML: (html: string, options?: import("lexical").EditorUpdateOptions) => void;
|
|
98
|
+
getMarkdown: (transformers?: readonly import("@lexical/markdown").Transformer[]) => string;
|
|
99
|
+
setMarkdown: (markdown: string, transformers?: readonly import("@lexical/markdown").Transformer[], options?: import("lexical").EditorUpdateOptions) => void;
|
|
100
|
+
insertText: (text: string, options?: import("./types").RichTextEditorInsertOptions) => void;
|
|
101
|
+
insertComponent: (data: import("./types").RichTextEditorComponentNodeData, options?: import("./types").RichTextEditorInsertOptions) => void;
|
|
102
|
+
updateComponent: (nodeKey: import("lexical").NodeKey, value: import("type-fest").JsonValue, options?: import("lexical").EditorUpdateOptions) => void;
|
|
103
|
+
removeComponent: (nodeKey: import("lexical").NodeKey, options?: import("lexical").EditorUpdateOptions) => void;
|
|
104
|
+
formatText: (format: import("lexical").TextFormatType) => boolean;
|
|
105
|
+
read: <T>(callback: () => T) => T | undefined;
|
|
106
|
+
update: (callback: () => void, options?: import("lexical").EditorUpdateOptions) => void | undefined;
|
|
107
|
+
dispatchCommand: <T>(command: import("lexical").LexicalCommand<T>, payload: T) => boolean;
|
|
108
|
+
registerCommand: <T>(command: import("lexical").LexicalCommand<T>, listener: import("lexical").CommandListener<T>, priority: import("lexical").CommandListenerPriority) => () => void;
|
|
109
|
+
registerUpdateListener: (listener: import("lexical").UpdateListener) => () => void;
|
|
110
|
+
registerMutationListener: (klass: import("lexical").Klass<import("lexical").LexicalNode>, listener: import("lexical").MutationListener, options?: import("./types").RichTextEditorMutationListenerOptions) => () => void;
|
|
111
|
+
registerNodeTransform: <T extends import("lexical").LexicalNode>(klass: import("lexical").Klass<T>, listener: import("lexical").Transform<T>) => () => void;
|
|
112
|
+
}, {}, {}, {}, {
|
|
113
|
+
classNames: Partial<Record<import("./types").RichTextEditorSemanticType, string>>;
|
|
114
|
+
autoSize: boolean | import("./types").RichTextEditorAutoSize;
|
|
115
|
+
styles: Partial<Record<import("./types").RichTextEditorSemanticType, import("vue").CSSProperties>>;
|
|
116
|
+
plugins: readonly import("./types").RichTextEditorPlugin[];
|
|
117
|
+
transformers: readonly import("@lexical/markdown").Transformer[];
|
|
118
|
+
history: boolean;
|
|
119
|
+
historyDelay: number;
|
|
120
|
+
historyMaxDepth: number | null;
|
|
121
|
+
spellcheck: boolean;
|
|
122
|
+
}>;
|
|
123
|
+
__isFragment?: never;
|
|
124
|
+
__isTeleport?: never;
|
|
125
|
+
__isSuspense?: never;
|
|
126
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./types").RichTextEditorProps> & Readonly<{
|
|
127
|
+
onUpdate?: ((context: import("./types").RichTextEditorChangeContext) => any) | undefined;
|
|
128
|
+
onError?: ((error: Error) => any) | undefined;
|
|
129
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
130
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
131
|
+
onChange?: ((value: import("./types").RichTextEditorValue, context: import("./types").RichTextEditorChangeContext) => any) | undefined;
|
|
132
|
+
"onUpdate:modelValue"?: ((value: import("./types").RichTextEditorValue) => any) | undefined;
|
|
133
|
+
onReady?: ((editor: import("lexical").LexicalEditor) => any) | undefined;
|
|
134
|
+
}>, {
|
|
135
|
+
readonly editor: import("lexical").LexicalEditor | null;
|
|
136
|
+
readonly editorState: import("lexical").EditorState | null;
|
|
137
|
+
readonly rootElement: HTMLDivElement | null;
|
|
138
|
+
readonly canUndo: boolean;
|
|
139
|
+
readonly canRedo: boolean;
|
|
140
|
+
focus: (callback?: () => void, options?: import("./types").RichTextEditorFocusOptions) => void;
|
|
141
|
+
blur: () => void | undefined;
|
|
142
|
+
clear: () => void;
|
|
143
|
+
undo: () => boolean;
|
|
144
|
+
redo: () => boolean;
|
|
145
|
+
getJSON: () => import("lexical").SerializedEditorState<import("lexical").SerializedLexicalNode> | undefined;
|
|
146
|
+
setJSON: (value: import("./types").RichTextEditorValue | string, options?: import("lexical").EditorSetOptions) => void;
|
|
147
|
+
getContent: () => import("./types").RichTextEditorContentSnapshot[];
|
|
148
|
+
setContent: (content: readonly import("./types").RichTextEditorContentItem[], options?: import("lexical").EditorUpdateOptions) => void;
|
|
149
|
+
insertContent: (content: readonly import("./types").RichTextEditorContentItem[], options?: import("./types").RichTextEditorInsertOptions) => void;
|
|
150
|
+
getText: () => string;
|
|
151
|
+
getHTML: () => string;
|
|
152
|
+
setHTML: (html: string, options?: import("lexical").EditorUpdateOptions) => void;
|
|
153
|
+
getMarkdown: (transformers?: readonly import("@lexical/markdown").Transformer[]) => string;
|
|
154
|
+
setMarkdown: (markdown: string, transformers?: readonly import("@lexical/markdown").Transformer[], options?: import("lexical").EditorUpdateOptions) => void;
|
|
155
|
+
insertText: (text: string, options?: import("./types").RichTextEditorInsertOptions) => void;
|
|
156
|
+
insertComponent: (data: import("./types").RichTextEditorComponentNodeData, options?: import("./types").RichTextEditorInsertOptions) => void;
|
|
157
|
+
updateComponent: (nodeKey: import("lexical").NodeKey, value: import("type-fest").JsonValue, options?: import("lexical").EditorUpdateOptions) => void;
|
|
158
|
+
removeComponent: (nodeKey: import("lexical").NodeKey, options?: import("lexical").EditorUpdateOptions) => void;
|
|
159
|
+
formatText: (format: import("lexical").TextFormatType) => boolean;
|
|
160
|
+
read: <T>(callback: () => T) => T | undefined;
|
|
161
|
+
update: (callback: () => void, options?: import("lexical").EditorUpdateOptions) => void | undefined;
|
|
162
|
+
dispatchCommand: <T>(command: import("lexical").LexicalCommand<T>, payload: T) => boolean;
|
|
163
|
+
registerCommand: <T>(command: import("lexical").LexicalCommand<T>, listener: import("lexical").CommandListener<T>, priority: import("lexical").CommandListenerPriority) => () => void;
|
|
164
|
+
registerUpdateListener: (listener: import("lexical").UpdateListener) => () => void;
|
|
165
|
+
registerMutationListener: (klass: import("lexical").Klass<import("lexical").LexicalNode>, listener: import("lexical").MutationListener, options?: import("./types").RichTextEditorMutationListenerOptions) => () => void;
|
|
166
|
+
registerNodeTransform: <T extends import("lexical").LexicalNode>(klass: import("lexical").Klass<T>, listener: import("lexical").Transform<T>) => () => void;
|
|
167
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
168
|
+
update: (context: import("./types").RichTextEditorChangeContext) => any;
|
|
169
|
+
error: (error: Error) => any;
|
|
170
|
+
focus: (event: FocusEvent) => any;
|
|
171
|
+
blur: (event: FocusEvent) => any;
|
|
172
|
+
change: (value: import("./types").RichTextEditorValue, context: import("./types").RichTextEditorChangeContext) => any;
|
|
173
|
+
"update:modelValue": (value: import("./types").RichTextEditorValue) => any;
|
|
174
|
+
ready: (editor: import("lexical").LexicalEditor) => any;
|
|
175
|
+
}, string, {
|
|
176
|
+
classNames: Partial<Record<import("./types").RichTextEditorSemanticType, string>>;
|
|
177
|
+
autoSize: boolean | import("./types").RichTextEditorAutoSize;
|
|
178
|
+
styles: Partial<Record<import("./types").RichTextEditorSemanticType, import("vue").CSSProperties>>;
|
|
179
|
+
plugins: readonly import("./types").RichTextEditorPlugin[];
|
|
180
|
+
transformers: readonly import("@lexical/markdown").Transformer[];
|
|
181
|
+
history: boolean;
|
|
182
|
+
historyDelay: number;
|
|
183
|
+
historyMaxDepth: number | null;
|
|
184
|
+
spellcheck: boolean;
|
|
185
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
186
|
+
$slots: import("./types").RichTextEditorSlots;
|
|
187
|
+
}) & {
|
|
188
|
+
install: (app: App, options?: SDOptions) => void;
|
|
189
|
+
};
|
|
190
|
+
export { $createInlineComponentNode, $isInlineComponentNode, InlineComponentNode, } from './nodes/inline-component-node';
|
|
191
|
+
export { RICH_TEXT_EDITOR_BUILT_IN_NODE_NAMES, RICH_TEXT_EDITOR_JSON_FORM_NODE_NAMES, } from './built-in-components';
|
|
192
|
+
export type { SerializedInlineComponentNode } from './nodes/inline-component-node';
|
|
193
|
+
export type { RichTextEditorAutoSize, RichTextEditorBuiltInNodeData, RichTextEditorBuiltInNodeName, RichTextEditorChangeContext, RichTextEditorComponentNodeData, RichTextEditorComponentNodeSnapshot, RichTextEditorConfig, RichTextEditorContentItem, RichTextEditorContentSnapshot, RichTextEditorEmits, RichTextEditorFocusOptions, RichTextEditorInputNodeData, RichTextEditorJsonFormNodeData, RichTextEditorJsonFormNodeName, RichTextEditorInsertOptions, RichTextEditorMutationListenerOptions, RichTextEditorNodeRenderContext, RichTextEditorPlugin, RichTextEditorPluginContext, RichTextEditorProps, RichTextEditorRef, RichTextEditorSelectNodeData, RichTextEditorSemanticType, RichTextEditorSlots, RichTextEditorTagNodeData, RichTextEditorValue, } from './types';
|
|
194
|
+
export type RichTextEditorInstance = InstanceType<typeof _RichTextEditor>;
|
|
195
|
+
export default RichTextEditor;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getComponentPrefix, setGlobalConfig } from "../_utils/global-config.js";
|
|
2
|
+
import { $createInlineComponentNode, $isInlineComponentNode, InlineComponentNode } from "./nodes/inline-component-node.js";
|
|
3
|
+
import rich_text_editor_default from "./rich-text-editor.js";
|
|
4
|
+
import { RICH_TEXT_EDITOR_BUILT_IN_NODE_NAMES, RICH_TEXT_EDITOR_JSON_FORM_NODE_NAMES } from "./built-in-components.js";
|
|
5
|
+
//#region components/rich-text-editor/index.ts
|
|
6
|
+
var RichTextEditor = Object.assign(rich_text_editor_default, { install: (app, options) => {
|
|
7
|
+
setGlobalConfig(app, options);
|
|
8
|
+
const componentPrefix = getComponentPrefix(options);
|
|
9
|
+
app.component(componentPrefix + rich_text_editor_default.name, rich_text_editor_default);
|
|
10
|
+
} });
|
|
11
|
+
//#endregion
|
|
12
|
+
export { $createInlineComponentNode, $isInlineComponentNode, InlineComponentNode, RICH_TEXT_EDITOR_BUILT_IN_NODE_NAMES, RICH_TEXT_EDITOR_JSON_FORM_NODE_NAMES, RichTextEditor as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { DOMExportOutput, EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedLexicalNode } from 'lexical';
|
|
2
|
+
import type { JsonValue } from 'type-fest';
|
|
3
|
+
import { DecoratorNode } from 'lexical';
|
|
4
|
+
import type { RichTextEditorComponentNodeData, RichTextEditorComponentNodeSnapshot } from '../types';
|
|
5
|
+
export interface SerializedInlineComponentNode extends SerializedLexicalNode {
|
|
6
|
+
data: RichTextEditorComponentNodeData;
|
|
7
|
+
type: 'sd-inline-component';
|
|
8
|
+
version: 1;
|
|
9
|
+
}
|
|
10
|
+
export declare class InlineComponentNode extends DecoratorNode<null> {
|
|
11
|
+
__data: RichTextEditorComponentNodeData;
|
|
12
|
+
static getType(): string;
|
|
13
|
+
static clone(node: InlineComponentNode): InlineComponentNode;
|
|
14
|
+
static importJSON(serializedNode: SerializedLexicalNode & Record<string, unknown>): InlineComponentNode;
|
|
15
|
+
constructor(data?: RichTextEditorComponentNodeData, key?: NodeKey);
|
|
16
|
+
createDOM(): HTMLElement;
|
|
17
|
+
updateDOM(previousNode: InlineComponentNode, element: HTMLElement): boolean;
|
|
18
|
+
decorate(_editor: LexicalEditor, _config: EditorConfig): null;
|
|
19
|
+
exportDOM(): DOMExportOutput;
|
|
20
|
+
exportJSON(): SerializedInlineComponentNode;
|
|
21
|
+
getData(): RichTextEditorComponentNodeSnapshot;
|
|
22
|
+
getTextContent(): string;
|
|
23
|
+
setValue(value: JsonValue): this;
|
|
24
|
+
setData(data: RichTextEditorComponentNodeData): this;
|
|
25
|
+
isInline(): true;
|
|
26
|
+
isIsolated(): false;
|
|
27
|
+
isKeyboardSelectable(): true;
|
|
28
|
+
}
|
|
29
|
+
export declare function $createInlineComponentNode(data: RichTextEditorComponentNodeData): InlineComponentNode;
|
|
30
|
+
export declare function $isInlineComponentNode(node: LexicalNode | null | undefined): node is InlineComponentNode;
|