@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/input/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 { createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
|
|
4
4
|
//#region components/input/input-group.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 icon_hover_default from "../_components/icon-hover.js";
|
|
3
3
|
import input_default from "./input.js";
|
|
4
4
|
import useMergeState from "../_hooks/use-merge-state.js";
|
package/es/input/input.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, isObject, isUndefined } from "../_utils/is.js";
|
|
5
5
|
import icon_hover_default from "../_components/icon-hover.js";
|
|
@@ -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 { isNumber, isUndefined } from "../_utils/is.js";
|
|
5
5
|
import { KEYBOARD_KEY, getKeyDownHandler } from "../_utils/keyboard.js";
|
|
@@ -364,7 +364,7 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
364
364
|
(_eventHandlers$value = eventHandlers.value) === null || _eventHandlers$value === void 0 || (_eventHandlers$value$ = _eventHandlers$value.onChange) === null || _eventHandlers$value$ === void 0 || _eventHandlers$value$.call(_eventHandlers$value, ev);
|
|
365
365
|
emit("clear", ev);
|
|
366
366
|
};
|
|
367
|
-
const keyDownHandler = getKeyDownHandler(new Map([[KEYBOARD_KEY.ARROW_UP, (ev) => {
|
|
367
|
+
const keyDownHandler = getKeyDownHandler(/* @__PURE__ */ new Map([[KEYBOARD_KEY.ARROW_UP, (ev) => {
|
|
368
368
|
ev.preventDefault();
|
|
369
369
|
!props.readonly && nextStep("plus", ev);
|
|
370
370
|
}], [KEYBOARD_KEY.ARROW_DOWN, (ev) => {
|
|
@@ -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 { isNull, isObject, isUndefined } from "../_utils/is.js";
|
|
5
5
|
import resize_observer_default from "../_components/resize-observer.js";
|
|
@@ -339,7 +339,8 @@ var input_tag_default = /* @__PURE__ */ defineComponent({
|
|
|
339
339
|
};
|
|
340
340
|
const getCounterWidth = (hiddenCount) => {
|
|
341
341
|
if (!measureRef.value || hiddenCount <= 0) return 0;
|
|
342
|
-
|
|
342
|
+
const counterElement = measureRef.value.querySelector(`[data-hidden-count="${hiddenCount}"]`);
|
|
343
|
+
return getOuterWidth(counterElement);
|
|
343
344
|
};
|
|
344
345
|
const isClosableTag = (item) => {
|
|
345
346
|
var _item$tagProps$closab, _item$tagProps;
|
|
@@ -409,7 +410,8 @@ var input_tag_default = /* @__PURE__ */ defineComponent({
|
|
|
409
410
|
};
|
|
410
411
|
const handleRemove = (value, index, e) => {
|
|
411
412
|
var _computedValue$value;
|
|
412
|
-
|
|
413
|
+
const newValue = (_computedValue$value = computedValue.value) === null || _computedValue$value === void 0 ? void 0 : _computedValue$value.filter((_, i) => i !== index);
|
|
414
|
+
updateValue(newValue, e);
|
|
413
415
|
emit("remove", value, e);
|
|
414
416
|
};
|
|
415
417
|
const handleClear = (e) => {
|
|
@@ -425,7 +427,8 @@ var input_tag_default = /* @__PURE__ */ defineComponent({
|
|
|
425
427
|
emit("pressEnter", computedInputValue.value, e);
|
|
426
428
|
return;
|
|
427
429
|
}
|
|
428
|
-
|
|
430
|
+
const newValue = computedValue.value.concat(computedInputValue.value);
|
|
431
|
+
updateValue(newValue, e);
|
|
429
432
|
emit("pressEnter", computedInputValue.value, e);
|
|
430
433
|
if (!retainInputValue.value.create) updateInputValue("", e);
|
|
431
434
|
}
|
package/es/input-tag/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 { isNumber, isObject } from "../_utils/is.js";
|
|
3
3
|
//#region components/input-tag/utils.ts
|
|
4
4
|
var getValueData = (value, fieldNames) => {
|
package/es/json-form/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { SDOptions } from '../_utils/types';
|
|
|
3
3
|
import _JsonForm from './json-form.vue';
|
|
4
4
|
declare const JsonForm: {
|
|
5
5
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6
|
-
schemas: import("./types").
|
|
6
|
+
schemas: import("./types").JsonFormA2UI_0_9_1ComponentNode[] | import("./types").JsonFormSchema<import("./types").JsonFormComponentType<{}>, {}>[];
|
|
7
7
|
adapter?: import("./types").JsonFormAdapter;
|
|
8
8
|
model?: import("./types").JsonFormModel;
|
|
9
9
|
hideLabel?: boolean;
|
|
@@ -38,7 +38,7 @@ declare const JsonForm: {
|
|
|
38
38
|
M: {};
|
|
39
39
|
Defaults: {};
|
|
40
40
|
}, Readonly<{
|
|
41
|
-
schemas: import("./types").
|
|
41
|
+
schemas: import("./types").JsonFormA2UI_0_9_1ComponentNode[] | import("./types").JsonFormSchema<import("./types").JsonFormComponentType<{}>, {}>[];
|
|
42
42
|
adapter?: import("./types").JsonFormAdapter;
|
|
43
43
|
model?: import("./types").JsonFormModel;
|
|
44
44
|
hideLabel?: boolean;
|
|
@@ -68,7 +68,7 @@ declare const JsonForm: {
|
|
|
68
68
|
__isTeleport?: never;
|
|
69
69
|
__isSuspense?: never;
|
|
70
70
|
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
71
|
-
schemas: import("./types").
|
|
71
|
+
schemas: import("./types").JsonFormA2UI_0_9_1ComponentNode[] | import("./types").JsonFormSchema<import("./types").JsonFormComponentType<{}>, {}>[];
|
|
72
72
|
adapter?: import("./types").JsonFormAdapter;
|
|
73
73
|
model?: import("./types").JsonFormModel;
|
|
74
74
|
hideLabel?: boolean;
|
|
@@ -107,6 +107,6 @@ declare const JsonForm: {
|
|
|
107
107
|
install: (app: App, options?: SDOptions) => void;
|
|
108
108
|
};
|
|
109
109
|
export type JsonFormInstance = InstanceType<typeof _JsonForm>;
|
|
110
|
-
export type {
|
|
111
|
-
export {
|
|
110
|
+
export type { JsonFormA2UI_0_9_1ChoiceOption, JsonFormA2UI_0_9_1ComponentNode, JsonFormA2UI_0_9_1DataBinding, JsonFormA2UI_0_9_1FunctionCall, JsonFormAdapter, JsonFormComponentEvents, JsonFormComponentProps, JsonFormComponentRegistry, JsonFormComponentSlotRenderer, JsonFormComponentType, JsonFormExternalComponentMap, JsonFormItemSlotProps, JsonFormModel, JsonFormProps, JsonFormProviderConfig, JsonFormSchema, } from './types';
|
|
111
|
+
export { A2UI_0_9_1, defineJsonFormComponents, defineJsonFormSchemas } from './types';
|
|
112
112
|
export default JsonForm;
|
package/es/json-form/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getComponentPrefix, setGlobalConfig } from "../_utils/global-config.js";
|
|
2
|
-
import "./types.js";
|
|
2
|
+
import { A2UI_0_9_1, defineJsonFormComponents, defineJsonFormSchemas } from "./types.js";
|
|
3
3
|
import json_form_default from "./json-form.js";
|
|
4
4
|
//#region components/json-form/index.ts
|
|
5
5
|
var JsonForm = Object.assign(json_form_default, { install: (app, options) => {
|
|
@@ -8,4 +8,4 @@ var JsonForm = Object.assign(json_form_default, { install: (app, options) => {
|
|
|
8
8
|
app.component(componentPrefix + json_form_default.name, json_form_default);
|
|
9
9
|
} });
|
|
10
10
|
//#endregion
|
|
11
|
-
export { JsonForm as default };
|
|
11
|
+
export { A2UI_0_9_1, JsonForm as default, defineJsonFormComponents, defineJsonFormSchemas };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { JSON_FORM_COMPONENT_TYPES } from "./types.js";
|
|
3
3
|
import { mergeJsonFormClassName, shouldStretchJsonFormControl } from "./utils.js";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createSlots, createTextVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, openBlock, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toHandlers, useModel, useSlots, withCtx } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import grid_col_default from "../grid/grid-col.js";
|
|
3
3
|
import grid_row_default from "../grid/grid-row.js";
|
|
4
4
|
import form_item_default from "../form/form-item.js";
|
|
@@ -35,7 +35,7 @@ var json_form_item_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
35
35
|
const props = __props;
|
|
36
36
|
const workingModel = useModel(__props, "modelValue");
|
|
37
37
|
const normalizedField = computed(() => {
|
|
38
|
-
return props.adapter === "a2ui-0.
|
|
38
|
+
return props.adapter === "a2ui-0.9.1" ? props.schema.field.replace(/^\//, "").replaceAll("/", ".") : props.schema.field;
|
|
39
39
|
});
|
|
40
40
|
const fieldModel = computed({
|
|
41
41
|
get() {
|
|
@@ -68,14 +68,12 @@ var json_form_item_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
68
68
|
var _props$schema$formIte, _props$schema$formIte2, _props$schema$formIte3, _props$schema$formIte4, _props$schema$formIte5, _props$schema$formIte6, _props$schema$formIte7, _props$schema$formIte8, _props$schema$formIte9, _props$schema$formIte10, _props$schema$formIte11, _props$schema$formIte12, _props$schema$formIte13, _props$schema$formIte14, _props$schema$compone2, _props$schema$formIte15, _props$schema$formIte16, _props$schema$formIte17, _props$schema$formIte18, _props$schema$formIte19, _props$schema$formIte20, _props$schema$formIte21;
|
|
69
69
|
const _component_JsonFormItem = resolveComponent("JsonFormItem", true);
|
|
70
70
|
return __props.schema.hidden ? renderSlot(_ctx.$slots, __props.schema.slotName || "hidden", {
|
|
71
|
-
key: 0,
|
|
72
71
|
record: __props.schema,
|
|
73
72
|
value: fieldModel.value
|
|
74
|
-
}) : __props.schema.type === unref(JSON_FORM_COMPONENT_TYPES).noFormItem ? renderSlot(_ctx.$slots, __props.schema.slotName || "default", {
|
|
75
|
-
key: 1,
|
|
73
|
+
}, void 0, void 0, 0) : __props.schema.type === unref(JSON_FORM_COMPONENT_TYPES).noFormItem ? renderSlot(_ctx.$slots, __props.schema.slotName || "default", {
|
|
76
74
|
record: __props.schema,
|
|
77
75
|
value: fieldModel.value
|
|
78
|
-
}) : __props.schema.slotName && _ctx.$slots[__props.schema.slotName] ? (openBlock(), createBlock(unref(form_item_default), mergeProps({
|
|
76
|
+
}, void 0, void 0, 1) : __props.schema.slotName && _ctx.$slots[__props.schema.slotName] ? (openBlock(), createBlock(unref(form_item_default), mergeProps({
|
|
79
77
|
key: 2,
|
|
80
78
|
label: __props.schema.label,
|
|
81
79
|
field: __props.schema.field,
|
|
@@ -1,9 +1,9 @@
|
|
|
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 form_default from "../form/form.js";
|
|
5
5
|
import { JSON_FORM_ADAPTERS } from "./types.js";
|
|
6
|
-
import { resolveJsonFormComponents,
|
|
6
|
+
import { resolveJsonFormComponents, translateA2UI_0_9_1ToJsonFormSchemas } from "./utils.js";
|
|
7
7
|
import json_form_item_default from "./json-form-item.js";
|
|
8
8
|
import { Comment, Fragment, computed, createBlock, createElementBlock, createSlots, defineComponent, inject, mergeModels, mergeProps, openBlock, renderList, renderSlot, resolveDynamicComponent, shallowRef, unref, useModel, useSlots, watch, withCtx } from "vue";
|
|
9
9
|
//#region components/json-form/json-form.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -59,7 +59,7 @@ var json_form_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
59
59
|
return resolveJsonFormComponents(configProvider === null || configProvider === void 0 || (_configProvider$jsonF2 = configProvider.jsonForm) === null || _configProvider$jsonF2 === void 0 ? void 0 : _configProvider$jsonF2.components);
|
|
60
60
|
});
|
|
61
61
|
const normalizedSchemas = computed(() => {
|
|
62
|
-
if (resolvedAdapter.value === JSON_FORM_ADAPTERS.
|
|
62
|
+
if (resolvedAdapter.value === JSON_FORM_ADAPTERS.a2ui_0_9_1) return translateA2UI_0_9_1ToJsonFormSchemas(props.schemas);
|
|
63
63
|
return props.schemas;
|
|
64
64
|
});
|
|
65
65
|
const customComponent = computed(() => {
|
|
@@ -105,7 +105,7 @@ var json_form_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
105
105
|
"auto-label-width": "",
|
|
106
106
|
model: workingModel.value
|
|
107
107
|
}, _ctx.$attrs), {
|
|
108
|
-
default: withCtx(() => [hasDefaultSlot.value ? renderSlot(_ctx.$slots, "default", {
|
|
108
|
+
default: withCtx(() => [hasDefaultSlot.value ? renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 0) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(normalizedSchemas.value, (schema) => {
|
|
109
109
|
return openBlock(), createBlock(json_form_item_default, {
|
|
110
110
|
key: schema.field,
|
|
111
111
|
modelValue: workingModel.value,
|
package/es/json-form/types.d.ts
CHANGED
|
@@ -19,10 +19,10 @@ import type { TimePickerInstance } from '../time-picker';
|
|
|
19
19
|
import type { TransferInstance } from '../transfer';
|
|
20
20
|
import type { TreeSelectInstance } from '../tree-select';
|
|
21
21
|
import type { VerificationCodeInstance } from '../verification-code';
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const A2UI_0_9_1: "a2ui-0.9.1";
|
|
23
23
|
export declare const JSON_FORM_ADAPTERS: {
|
|
24
24
|
readonly default: "default";
|
|
25
|
-
readonly
|
|
25
|
+
readonly a2ui_0_9_1: "a2ui-0.9.1";
|
|
26
26
|
};
|
|
27
27
|
export declare const JSON_FORM_COMPONENT_TYPES: {
|
|
28
28
|
readonly autoComplete: "autoComplete";
|
|
@@ -155,7 +155,7 @@ export type JsonFormProviderConfig<TExternal extends JsonFormExternalComponentMa
|
|
|
155
155
|
};
|
|
156
156
|
export type JsonFormModel = Record<string, unknown>;
|
|
157
157
|
export type JsonFormProps<TExternal extends JsonFormExternalComponentMap = {}> = {
|
|
158
|
-
schemas: JsonFormSchema<JsonFormComponentType<TExternal>, TExternal>[] |
|
|
158
|
+
schemas: JsonFormSchema<JsonFormComponentType<TExternal>, TExternal>[] | JsonFormA2UI_0_9_1ComponentNode[];
|
|
159
159
|
adapter?: JsonFormAdapter;
|
|
160
160
|
model?: JsonFormModel;
|
|
161
161
|
hideLabel?: boolean;
|
|
@@ -163,129 +163,99 @@ export type JsonFormProps<TExternal extends JsonFormExternalComponentMap = {}> =
|
|
|
163
163
|
showColon?: boolean;
|
|
164
164
|
component?: string | Component;
|
|
165
165
|
};
|
|
166
|
-
export type
|
|
167
|
-
|
|
168
|
-
path?: string;
|
|
166
|
+
export type JsonFormA2UI_0_9_1DataBinding = {
|
|
167
|
+
path: string;
|
|
169
168
|
};
|
|
170
|
-
export type
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
169
|
+
export type JsonFormA2UI_0_9_1FunctionCall = {
|
|
170
|
+
call: string;
|
|
171
|
+
args?: Record<string, unknown>;
|
|
172
|
+
returnType?: 'string' | 'number' | 'boolean' | 'array' | 'object' | 'any' | 'void';
|
|
174
173
|
};
|
|
175
|
-
export type
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
export type JsonFormA2UI_0_9_1DynamicString = string | JsonFormA2UI_0_9_1DataBinding | (JsonFormA2UI_0_9_1FunctionCall & {
|
|
175
|
+
returnType: 'string';
|
|
176
|
+
});
|
|
177
|
+
export type JsonFormA2UI_0_9_1DynamicNumber = number | JsonFormA2UI_0_9_1DataBinding | (JsonFormA2UI_0_9_1FunctionCall & {
|
|
178
|
+
returnType: 'number';
|
|
179
|
+
});
|
|
180
|
+
export type JsonFormA2UI_0_9_1DynamicBoolean = boolean | JsonFormA2UI_0_9_1DataBinding | (JsonFormA2UI_0_9_1FunctionCall & {
|
|
181
|
+
returnType: 'boolean';
|
|
182
|
+
});
|
|
183
|
+
export type JsonFormA2UI_0_9_1DynamicStringList = string[] | JsonFormA2UI_0_9_1DataBinding | (JsonFormA2UI_0_9_1FunctionCall & {
|
|
184
|
+
returnType: 'array';
|
|
185
|
+
});
|
|
186
|
+
export type JsonFormA2UI_0_9_1CheckRule = {
|
|
187
|
+
condition: JsonFormA2UI_0_9_1DynamicBoolean;
|
|
188
|
+
message: string;
|
|
178
189
|
};
|
|
179
|
-
export type
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
190
|
+
export type JsonFormA2UI_0_9_1ChoiceOption = {
|
|
191
|
+
label: JsonFormA2UI_0_9_1DynamicString;
|
|
192
|
+
value: string;
|
|
193
|
+
};
|
|
194
|
+
export type JsonFormA2UI_0_9_1Children = string[] | {
|
|
195
|
+
componentId: string;
|
|
196
|
+
path: string;
|
|
197
|
+
};
|
|
198
|
+
type JsonFormA2UI_0_9_1SharedNode = {
|
|
183
199
|
id: string;
|
|
200
|
+
component: string;
|
|
201
|
+
accessibility?: {
|
|
202
|
+
label?: JsonFormA2UI_0_9_1DynamicString;
|
|
203
|
+
description?: JsonFormA2UI_0_9_1DynamicString;
|
|
204
|
+
};
|
|
205
|
+
weight?: number;
|
|
206
|
+
checks?: JsonFormA2UI_0_9_1CheckRule[];
|
|
184
207
|
};
|
|
185
|
-
export type
|
|
186
|
-
component:
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
} | 'Row';
|
|
191
|
-
children?: string[];
|
|
208
|
+
export type JsonFormA2UI_0_9_1ContainerComponent = JsonFormA2UI_0_9_1SharedNode & {
|
|
209
|
+
component: 'Row' | 'Column' | 'List';
|
|
210
|
+
children: JsonFormA2UI_0_9_1Children;
|
|
211
|
+
justify?: 'center' | 'end' | 'spaceAround' | 'spaceBetween' | 'spaceEvenly' | 'start' | 'stretch';
|
|
212
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
192
213
|
};
|
|
193
|
-
export type
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
Column: {
|
|
197
|
-
children?: JsonFormA2UIChildren;
|
|
198
|
-
};
|
|
199
|
-
} | 'Column';
|
|
200
|
-
children?: string[];
|
|
214
|
+
export type JsonFormA2UI_0_9_1CardComponent = JsonFormA2UI_0_9_1SharedNode & {
|
|
215
|
+
component: 'Card';
|
|
216
|
+
child: string;
|
|
201
217
|
};
|
|
202
|
-
export type
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
text?: JsonFormA2UIBoundValue;
|
|
208
|
-
value?: JsonFormA2UIBoundValue;
|
|
209
|
-
textFieldType?: 'shortText' | 'longText' | 'number' | 'obscured' | 'date';
|
|
210
|
-
validationRegexp?: string;
|
|
211
|
-
placeholder?: JsonFormA2UIBoundValue;
|
|
212
|
-
};
|
|
213
|
-
} | 'TextField';
|
|
214
|
-
label?: JsonFormA2UIBoundValue;
|
|
215
|
-
text?: JsonFormA2UIBoundValue;
|
|
216
|
-
value?: JsonFormA2UIBoundValue;
|
|
217
|
-
textFieldType?: 'shortText' | 'longText' | 'number' | 'obscured' | 'date';
|
|
218
|
+
export type JsonFormA2UI_0_9_1TextFieldComponent = JsonFormA2UI_0_9_1SharedNode & {
|
|
219
|
+
component: 'TextField';
|
|
220
|
+
label: JsonFormA2UI_0_9_1DynamicString;
|
|
221
|
+
value?: JsonFormA2UI_0_9_1DynamicString;
|
|
222
|
+
variant?: 'longText' | 'number' | 'shortText' | 'obscured';
|
|
218
223
|
validationRegexp?: string;
|
|
219
|
-
placeholder?: JsonFormA2UIBoundValue;
|
|
220
224
|
};
|
|
221
|
-
export type
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
label?: JsonFormA2UIBoundValue;
|
|
226
|
-
value?: JsonFormA2UIBoundValue;
|
|
227
|
-
};
|
|
228
|
-
} | 'CheckBox';
|
|
229
|
-
label?: JsonFormA2UIBoundValue;
|
|
230
|
-
value?: JsonFormA2UIBoundValue;
|
|
225
|
+
export type JsonFormA2UI_0_9_1CheckBoxComponent = JsonFormA2UI_0_9_1SharedNode & {
|
|
226
|
+
component: 'CheckBox';
|
|
227
|
+
label: JsonFormA2UI_0_9_1DynamicString;
|
|
228
|
+
value: JsonFormA2UI_0_9_1DynamicBoolean;
|
|
231
229
|
};
|
|
232
|
-
export type
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
} | 'Slider';
|
|
241
|
-
value?: JsonFormA2UIBoundValue;
|
|
242
|
-
minValue?: number;
|
|
243
|
-
maxValue?: number;
|
|
230
|
+
export type JsonFormA2UI_0_9_1ChoicePickerComponent = JsonFormA2UI_0_9_1SharedNode & {
|
|
231
|
+
component: 'ChoicePicker';
|
|
232
|
+
label?: JsonFormA2UI_0_9_1DynamicString;
|
|
233
|
+
variant?: 'multipleSelection' | 'mutuallyExclusive';
|
|
234
|
+
options: JsonFormA2UI_0_9_1ChoiceOption[];
|
|
235
|
+
value: JsonFormA2UI_0_9_1DynamicStringList;
|
|
236
|
+
displayStyle?: 'checkbox' | 'chips';
|
|
237
|
+
filterable?: boolean;
|
|
244
238
|
};
|
|
245
|
-
export type
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
value?: JsonFormA2UIBoundValue;
|
|
239
|
+
export type JsonFormA2UI_0_9_1SliderComponent = JsonFormA2UI_0_9_1SharedNode & {
|
|
240
|
+
component: 'Slider';
|
|
241
|
+
label?: JsonFormA2UI_0_9_1DynamicString;
|
|
242
|
+
min?: number;
|
|
243
|
+
max: number;
|
|
244
|
+
value: JsonFormA2UI_0_9_1DynamicNumber;
|
|
245
|
+
};
|
|
246
|
+
export type JsonFormA2UI_0_9_1DateTimeInputComponent = JsonFormA2UI_0_9_1SharedNode & {
|
|
247
|
+
component: 'DateTimeInput';
|
|
248
|
+
value: JsonFormA2UI_0_9_1DynamicString;
|
|
256
249
|
enableDate?: boolean;
|
|
257
250
|
enableTime?: boolean;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
export type JsonFormA2UIChoiceComponent = JsonFormA2UISharedNode & {
|
|
262
|
-
component: {
|
|
263
|
-
MultipleChoice: {
|
|
264
|
-
options?: JsonFormA2UIChoiceOption[];
|
|
265
|
-
selections?: JsonFormA2UIBoundValue;
|
|
266
|
-
maxAllowedSelections?: number;
|
|
267
|
-
label?: JsonFormA2UIBoundValue;
|
|
268
|
-
};
|
|
269
|
-
} | {
|
|
270
|
-
ChoicePicker: {
|
|
271
|
-
options?: JsonFormA2UIChoiceOption[];
|
|
272
|
-
selections?: JsonFormA2UIBoundValue;
|
|
273
|
-
maxAllowedSelections?: number;
|
|
274
|
-
label?: JsonFormA2UIBoundValue;
|
|
275
|
-
};
|
|
276
|
-
} | 'MultipleChoice' | 'ChoicePicker';
|
|
277
|
-
options?: JsonFormA2UIChoiceOption[];
|
|
278
|
-
selections?: JsonFormA2UIBoundValue;
|
|
279
|
-
maxAllowedSelections?: number;
|
|
280
|
-
label?: JsonFormA2UIBoundValue;
|
|
251
|
+
min?: JsonFormA2UI_0_9_1DynamicString;
|
|
252
|
+
max?: JsonFormA2UI_0_9_1DynamicString;
|
|
253
|
+
label?: JsonFormA2UI_0_9_1DynamicString;
|
|
281
254
|
};
|
|
282
|
-
export type
|
|
283
|
-
export type JsonFormA2UI_0_8CustomComponentNode = JsonFormA2UISharedNode & {
|
|
284
|
-
component: string | Record<string, Record<string, unknown>>;
|
|
255
|
+
export type JsonFormA2UI_0_9_1CustomComponentNode = JsonFormA2UI_0_9_1SharedNode & {
|
|
285
256
|
[key: string]: unknown;
|
|
286
257
|
};
|
|
287
|
-
export type
|
|
288
|
-
export type JsonFormA2UIComponentNode = JsonFormA2UI_0_8ComponentNode;
|
|
258
|
+
export type JsonFormA2UI_0_9_1ComponentNode = JsonFormA2UI_0_9_1ContainerComponent | JsonFormA2UI_0_9_1CardComponent | JsonFormA2UI_0_9_1TextFieldComponent | JsonFormA2UI_0_9_1CheckBoxComponent | JsonFormA2UI_0_9_1ChoicePickerComponent | JsonFormA2UI_0_9_1SliderComponent | JsonFormA2UI_0_9_1DateTimeInputComponent | JsonFormA2UI_0_9_1CustomComponentNode;
|
|
289
259
|
export declare const defineJsonFormComponents: <const TExternal extends JsonFormExternalComponentMap>(components: TExternal) => TExternal;
|
|
290
260
|
export declare const defineJsonFormSchemas: <const TExternal extends JsonFormExternalComponentMap>() => <const TSchemas extends JsonFormSchema<JsonFormComponentType<TExternal>, TExternal>[]>(schemas: TSchemas) => TSchemas;
|
|
291
261
|
export {};
|
package/es/json-form/types.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region components/json-form/types.ts
|
|
2
|
-
var
|
|
2
|
+
var A2UI_0_9_1 = "a2ui-0.9.1";
|
|
3
3
|
var JSON_FORM_ADAPTERS = {
|
|
4
4
|
default: "default",
|
|
5
|
-
|
|
5
|
+
a2ui_0_9_1: A2UI_0_9_1
|
|
6
6
|
};
|
|
7
7
|
var JSON_FORM_COMPONENT_TYPES = {
|
|
8
8
|
autoComplete: "autoComplete",
|
|
@@ -40,4 +40,4 @@ var defineJsonFormSchemas = () => {
|
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
//#endregion
|
|
43
|
-
export {
|
|
43
|
+
export { A2UI_0_9_1, JSON_FORM_ADAPTERS, JSON_FORM_COMPONENT_TYPES, defineJsonFormComponents, defineJsonFormSchemas };
|
package/es/json-form/utils.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { Component } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { A2UI_0_9_1, type JsonFormA2UI_0_9_1ComponentNode, type JsonFormComponentRegistry, type JsonFormExternalComponentMap, type JsonFormModel, type JsonFormSchema } from './types';
|
|
3
3
|
export declare const jsonFormBuiltInComponents: JsonFormComponentRegistry;
|
|
4
4
|
export declare function resolveJsonFormComponents<TExternal extends JsonFormExternalComponentMap>(customComponents?: JsonFormComponentRegistry<TExternal>): Record<string, Component>;
|
|
5
5
|
export declare function shouldStretchJsonFormControl(type?: string): boolean;
|
|
6
|
-
export declare function parseJsonFormPath(path: string, adapter?: 'default' | typeof
|
|
7
|
-
export declare function getJsonFormValue(model: JsonFormModel | undefined, path: string, adapter?: 'default' | typeof
|
|
8
|
-
export declare function setJsonFormValue(model: JsonFormModel | undefined, path: string, value: unknown, adapter?: 'default' | typeof
|
|
9
|
-
export declare function
|
|
10
|
-
export declare const translateA2UIToJsonFormSchemas: typeof translateA2UI_0_8ToJsonFormSchemas;
|
|
6
|
+
export declare function parseJsonFormPath(path: string, adapter?: 'default' | typeof A2UI_0_9_1): string[];
|
|
7
|
+
export declare function getJsonFormValue(model: JsonFormModel | undefined, path: string, adapter?: 'default' | typeof A2UI_0_9_1): unknown;
|
|
8
|
+
export declare function setJsonFormValue(model: JsonFormModel | undefined, path: string, value: unknown, adapter?: 'default' | typeof A2UI_0_9_1): void;
|
|
9
|
+
export declare function translateA2UI_0_9_1ToJsonFormSchemas(nodes: JsonFormA2UI_0_9_1ComponentNode[]): JsonFormSchema<string>[];
|
|
11
10
|
export declare function mergeJsonFormClassName(...classNames: unknown[]): unknown[];
|