@sdata/web-vue 3.16.1 → 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/dist/sd.css +81 -0
- package/dist/sd.min.css +1 -1
- package/es/_components/feedback-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/icon-hover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/_components/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.d.ts +8 -4
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +34 -15
- package/es/button/index.d.ts +4 -0
- package/es/button/index.js +1 -1
- package/es/button/style/index.css +11 -0
- package/es/button/style/index.scss +12 -0
- 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/base-cascader-panel.js +1 -1
- package/es/cascader/cascader-column.js +1 -1
- package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/cascader/cascader-search-panel.js +1 -1
- 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/components.d.ts +1 -0
- 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 +2 -2
- 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.js +5 -0
- package/es/icon/icon-list/icon-list.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-list/index.js +9 -0
- 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.css +81 -0
- package/es/index.d.ts +5 -3
- package/es/index.js +4 -3
- package/es/index.scss +1 -0
- 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/constants.d.ts +1 -0
- package/es/kv-list/constants.js +127 -0
- package/es/kv-list/index.d.ts +304 -0
- package/es/kv-list/index.js +10 -0
- package/es/kv-list/kv-list-row.js +5 -0
- package/es/kv-list/kv-list-row.vue.d.ts +29 -0
- package/es/kv-list/kv-list-row.vue_vue_type_script_setup_true_lang.js +121 -0
- package/es/kv-list/kv-list.js +5 -0
- package/es/kv-list/kv-list.vue.d.ts +34 -0
- package/es/kv-list/kv-list.vue_vue_type_script_setup_true_lang.js +262 -0
- package/es/kv-list/style/css.js +2 -0
- package/es/kv-list/style/index.css +86 -0
- package/es/kv-list/style/index.d.ts +2 -0
- package/es/kv-list/style/index.js +2 -0
- package/es/kv-list/style/index.scss +93 -0
- package/es/kv-list/style/token.scss +14 -0
- package/es/kv-list/types.d.ts +29 -0
- package/es/kv-list/utils.d.ts +8 -0
- package/es/kv-list/utils.js +32 -0
- 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 +2 -2
- package/es/locale/interface.d.ts +11 -0
- package/es/locale/lang/ar-eg.js +2 -0
- package/es/locale/lang/de-de.js +2 -0
- package/es/locale/lang/en-us.js +2 -0
- package/es/locale/lang/es-es.js +2 -0
- package/es/locale/lang/fr-fr.js +2 -0
- package/es/locale/lang/id-id.js +2 -0
- package/es/locale/lang/it-it.js +2 -0
- package/es/locale/lang/ja-jp.js +2 -0
- package/es/locale/lang/km-kh.js +2 -0
- package/es/locale/lang/ko-kr.js +2 -0
- package/es/locale/lang/kv-list.d.ts +2 -0
- package/es/locale/lang/kv-list.js +14 -0
- package/es/locale/lang/ms-my.js +2 -0
- package/es/locale/lang/nl-nl.js +2 -0
- package/es/locale/lang/pt-pt.js +2 -0
- package/es/locale/lang/ru-ru.js +2 -0
- package/es/locale/lang/th-th.js +2 -0
- package/es/locale/lang/vi-vn.js +2 -0
- package/es/locale/lang/zh-cn.js +11 -0
- package/es/locale/lang/zh-tw.js +11 -0
- 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 +4 -2
- 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 +4 -3
- 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 +6 -4
- 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 +2 -2
- 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 +146 -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 +26 -0
- package/json/vetur-tags.json +13 -1
- package/json/web-types.json +72 -1
- package/package.json +15 -13
- package/es/_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/toPropertyKey.js +0 -9
package/es/json-form/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import input_password_default from "../input/input-password.js";
|
|
3
3
|
import input_search_default from "../input/input-search.js";
|
|
4
4
|
import Input from "../input/index.js";
|
|
@@ -24,56 +24,9 @@ import TimePicker from "../time-picker/index.js";
|
|
|
24
24
|
import Transfer from "../transfer/index.js";
|
|
25
25
|
import TreeSelect from "../tree-select/index.js";
|
|
26
26
|
import VerificationCode from "../verification-code/index.js";
|
|
27
|
-
import {
|
|
27
|
+
import { isPlainObject } from "es-toolkit";
|
|
28
28
|
//#region components/json-form/utils.ts
|
|
29
|
-
var
|
|
30
|
-
"Row",
|
|
31
|
-
"Column",
|
|
32
|
-
"TextField",
|
|
33
|
-
"CheckBox",
|
|
34
|
-
"Slider",
|
|
35
|
-
"DateTimeInput",
|
|
36
|
-
"MultipleChoice",
|
|
37
|
-
"ChoicePicker"
|
|
38
|
-
]);
|
|
39
|
-
var JSON_FORM_A2UI_0_8_COMPONENT_ALIASES = {
|
|
40
|
-
AutoComplete: JSON_FORM_COMPONENT_TYPES.autoComplete,
|
|
41
|
-
Cascader: JSON_FORM_COMPONENT_TYPES.cascader,
|
|
42
|
-
CheckBox: JSON_FORM_COMPONENT_TYPES.checkbox,
|
|
43
|
-
Checkbox: JSON_FORM_COMPONENT_TYPES.checkbox,
|
|
44
|
-
CheckboxGroup: JSON_FORM_COMPONENT_TYPES.checkboxGroup,
|
|
45
|
-
DatePicker: JSON_FORM_COMPONENT_TYPES.datePicker,
|
|
46
|
-
Input: JSON_FORM_COMPONENT_TYPES.input,
|
|
47
|
-
InputNumber: JSON_FORM_COMPONENT_TYPES.inputNumber,
|
|
48
|
-
InputPassword: JSON_FORM_COMPONENT_TYPES.inputPassword,
|
|
49
|
-
InputSearch: JSON_FORM_COMPONENT_TYPES.inputSearch,
|
|
50
|
-
InputTag: JSON_FORM_COMPONENT_TYPES.inputTag,
|
|
51
|
-
Mention: JSON_FORM_COMPONENT_TYPES.mention,
|
|
52
|
-
NoFormItem: JSON_FORM_COMPONENT_TYPES.noFormItem,
|
|
53
|
-
Radio: JSON_FORM_COMPONENT_TYPES.radio,
|
|
54
|
-
RadioGroup: JSON_FORM_COMPONENT_TYPES.radioGroup,
|
|
55
|
-
RangePicker: JSON_FORM_COMPONENT_TYPES.rangePicker,
|
|
56
|
-
Rate: JSON_FORM_COMPONENT_TYPES.rate,
|
|
57
|
-
Row: JSON_FORM_COMPONENT_TYPES.row,
|
|
58
|
-
Select: JSON_FORM_COMPONENT_TYPES.select,
|
|
59
|
-
Slider: JSON_FORM_COMPONENT_TYPES.slider,
|
|
60
|
-
Switch: JSON_FORM_COMPONENT_TYPES.switch,
|
|
61
|
-
TextArea: JSON_FORM_COMPONENT_TYPES.textarea,
|
|
62
|
-
Textarea: JSON_FORM_COMPONENT_TYPES.textarea,
|
|
63
|
-
TimePicker: JSON_FORM_COMPONENT_TYPES.timePicker,
|
|
64
|
-
Transfer: JSON_FORM_COMPONENT_TYPES.transfer,
|
|
65
|
-
TreeSelect: JSON_FORM_COMPONENT_TYPES.treeSelect,
|
|
66
|
-
VerificationCode: JSON_FORM_COMPONENT_TYPES.verificationCode
|
|
67
|
-
};
|
|
68
|
-
var JSON_FORM_A2UI_0_8_RESERVED_PROPS = new Set([
|
|
69
|
-
"label",
|
|
70
|
-
"text",
|
|
71
|
-
"value",
|
|
72
|
-
"selections",
|
|
73
|
-
"children",
|
|
74
|
-
"maxAllowedSelections"
|
|
75
|
-
]);
|
|
76
|
-
var STRETCH_COMPONENT_TYPES = new Set([
|
|
29
|
+
var STRETCH_COMPONENT_TYPES = /* @__PURE__ */ new Set([
|
|
77
30
|
JSON_FORM_COMPONENT_TYPES.autoComplete,
|
|
78
31
|
JSON_FORM_COMPONENT_TYPES.cascader,
|
|
79
32
|
JSON_FORM_COMPONENT_TYPES.datePicker,
|
|
@@ -124,7 +77,7 @@ function shouldStretchJsonFormControl(type) {
|
|
|
124
77
|
}
|
|
125
78
|
function parseJsonFormPath(path, adapter = "default") {
|
|
126
79
|
if (!path) return [];
|
|
127
|
-
if (adapter === "a2ui-0.
|
|
80
|
+
if (adapter === "a2ui-0.9.1") return path.split("/").slice(1).map((segment) => segment.replaceAll("~1", "/").replaceAll("~0", "~"));
|
|
128
81
|
return path.split(".").filter(Boolean);
|
|
129
82
|
}
|
|
130
83
|
function getJsonFormValue(model, path, adapter = "default") {
|
|
@@ -148,189 +101,109 @@ function setJsonFormValue(model, path, value, adapter = "default") {
|
|
|
148
101
|
}
|
|
149
102
|
current[segments.at(-1)] = value;
|
|
150
103
|
}
|
|
151
|
-
function
|
|
152
|
-
if (typeof value === "string") return value;
|
|
153
|
-
return value === null || value === void 0 ? void 0 : value.literalString;
|
|
154
|
-
}
|
|
155
|
-
function resolveA2UIBoundPath(value) {
|
|
156
|
-
if (typeof value === "string") return;
|
|
157
|
-
return value === null || value === void 0 ? void 0 : value.path;
|
|
158
|
-
}
|
|
159
|
-
function getA2UIChildren(children) {
|
|
160
|
-
var _children$explicitLis;
|
|
161
|
-
if (Array.isArray(children)) return children;
|
|
162
|
-
return (_children$explicitLis = children === null || children === void 0 ? void 0 : children.explicitList) !== null && _children$explicitLis !== void 0 ? _children$explicitLis : [];
|
|
163
|
-
}
|
|
164
|
-
function resolveA2UIComponent(node) {
|
|
165
|
-
var _component$name;
|
|
166
|
-
if (typeof node.component === "string") return {
|
|
167
|
-
name: node.component,
|
|
168
|
-
props: node
|
|
169
|
-
};
|
|
170
|
-
const component = node.component;
|
|
171
|
-
const [name] = Object.keys(component);
|
|
172
|
-
return {
|
|
173
|
-
name,
|
|
174
|
-
props: (_component$name = component[name]) !== null && _component$name !== void 0 ? _component$name : {}
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
function resolveA2UIBoundValue(value) {
|
|
178
|
-
if (typeof value === "string") return value;
|
|
179
|
-
if (!value || typeof value !== "object") return value;
|
|
180
|
-
if ("literalString" in value && typeof value.literalString === "string") return value.literalString;
|
|
181
|
-
if (Array.isArray(value)) return value.map((item) => resolveA2UIBoundValue(item));
|
|
182
|
-
return value;
|
|
183
|
-
}
|
|
184
|
-
function normalizeA2UI_0_8ComponentType(componentName) {
|
|
185
|
-
if (JSON_FORM_A2UI_0_8_COMPONENT_ALIASES[componentName]) return JSON_FORM_A2UI_0_8_COMPONENT_ALIASES[componentName];
|
|
186
|
-
const normalizedName = camelCase(componentName);
|
|
187
|
-
if (normalizedName in JSON_FORM_COMPONENT_TYPES) return normalizedName;
|
|
188
|
-
return normalizedName;
|
|
189
|
-
}
|
|
190
|
-
function resolveA2UI_0_8FieldPath(props) {
|
|
191
|
-
const candidates = [
|
|
192
|
-
props.value,
|
|
193
|
-
props.text,
|
|
194
|
-
props.selections
|
|
195
|
-
];
|
|
196
|
-
for (const candidate of candidates) {
|
|
197
|
-
const path = resolveA2UIBoundPath(candidate);
|
|
198
|
-
if (path) return path;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
function resolveA2UI_0_8Label(props) {
|
|
202
|
-
return resolveA2UIBoundText(props.label);
|
|
104
|
+
function resolveA2UI_0_9_1Path(value) {
|
|
105
|
+
if (value && typeof value === "object" && "path" in value && typeof value.path === "string") return value.path;
|
|
203
106
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
206
|
-
if (Array.isArray(baseProps.options)) baseProps.options = translateA2UIChoiceOptions(baseProps.options);
|
|
207
|
-
for (const key of Object.keys(baseProps)) baseProps[key] = resolveA2UIBoundValue(baseProps[key]);
|
|
208
|
-
if (typeof props.maxAllowedSelections === "number") baseProps.multiple = props.maxAllowedSelections !== 1;
|
|
209
|
-
return baseProps;
|
|
107
|
+
function resolveA2UI_0_9_1Text(value) {
|
|
108
|
+
return typeof value === "string" ? value : void 0;
|
|
210
109
|
}
|
|
211
|
-
function
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
const resolvedProps = props;
|
|
216
|
-
if (normalizedType === JSON_FORM_COMPONENT_TYPES.row || normalizedType === "column") return [];
|
|
217
|
-
return [{
|
|
218
|
-
field: (_resolveA2UI_0_8Field = resolveA2UI_0_8FieldPath(resolvedProps)) !== null && _resolveA2UI_0_8Field !== void 0 ? _resolveA2UI_0_8Field : node.id,
|
|
219
|
-
label: resolveA2UI_0_8Label(resolvedProps),
|
|
220
|
-
type: normalizedType,
|
|
221
|
-
componentProps: translateA2UI_0_8CommonComponentProps(resolvedProps)
|
|
222
|
-
}];
|
|
223
|
-
}
|
|
224
|
-
function translateA2UIChoiceOptions(options = []) {
|
|
225
|
-
return options.map((option) => {
|
|
226
|
-
var _resolveA2UIBoundText;
|
|
227
|
-
return {
|
|
228
|
-
label: (_resolveA2UIBoundText = resolveA2UIBoundText(option.label)) !== null && _resolveA2UIBoundText !== void 0 ? _resolveA2UIBoundText : String(option.value),
|
|
229
|
-
value: option.value
|
|
230
|
-
};
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
function translateA2UI_0_8Field(node) {
|
|
234
|
-
const { name, props } = resolveA2UIComponent(node);
|
|
235
|
-
switch (name) {
|
|
110
|
+
function translateA2UI_0_9_1Field(node) {
|
|
111
|
+
const field = resolveA2UI_0_9_1Path(node.value);
|
|
112
|
+
if (!field) return [];
|
|
113
|
+
switch (node.component) {
|
|
236
114
|
case "TextField": {
|
|
237
|
-
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
const textFieldType = props.textFieldType;
|
|
241
|
-
const mappedType = textFieldType === "longText" ? JSON_FORM_COMPONENT_TYPES.textarea : textFieldType === "number" ? JSON_FORM_COMPONENT_TYPES.inputNumber : textFieldType === "obscured" ? JSON_FORM_COMPONENT_TYPES.inputPassword : textFieldType === "date" ? JSON_FORM_COMPONENT_TYPES.datePicker : JSON_FORM_COMPONENT_TYPES.input;
|
|
115
|
+
const textField = node;
|
|
116
|
+
const variant = textField.variant;
|
|
117
|
+
const type = variant === "longText" ? JSON_FORM_COMPONENT_TYPES.textarea : variant === "number" ? JSON_FORM_COMPONENT_TYPES.inputNumber : variant === "obscured" ? JSON_FORM_COMPONENT_TYPES.inputPassword : JSON_FORM_COMPONENT_TYPES.input;
|
|
242
118
|
return [{
|
|
243
119
|
field,
|
|
244
|
-
label:
|
|
245
|
-
type
|
|
246
|
-
componentProps:
|
|
120
|
+
label: resolveA2UI_0_9_1Text(textField.label),
|
|
121
|
+
type,
|
|
122
|
+
componentProps: textField.validationRegexp ? { inputAttrs: { pattern: textField.validationRegexp } } : void 0
|
|
247
123
|
}];
|
|
248
124
|
}
|
|
249
|
-
case "CheckBox": {
|
|
250
|
-
|
|
251
|
-
|
|
125
|
+
case "CheckBox": return [{
|
|
126
|
+
field,
|
|
127
|
+
label: resolveA2UI_0_9_1Text(node.label),
|
|
128
|
+
type: JSON_FORM_COMPONENT_TYPES.checkbox
|
|
129
|
+
}];
|
|
130
|
+
case "ChoicePicker": {
|
|
131
|
+
const choicePicker = node;
|
|
252
132
|
return [{
|
|
253
133
|
field,
|
|
254
|
-
label:
|
|
255
|
-
type: JSON_FORM_COMPONENT_TYPES.
|
|
256
|
-
componentProps:
|
|
134
|
+
label: resolveA2UI_0_9_1Text(choicePicker.label),
|
|
135
|
+
type: JSON_FORM_COMPONENT_TYPES.checkboxGroup,
|
|
136
|
+
componentProps: {
|
|
137
|
+
options: choicePicker.options.map((option) => {
|
|
138
|
+
var _resolveA2UI_0_9_1Tex;
|
|
139
|
+
return {
|
|
140
|
+
label: (_resolveA2UI_0_9_1Tex = resolveA2UI_0_9_1Text(option.label)) !== null && _resolveA2UI_0_9_1Tex !== void 0 ? _resolveA2UI_0_9_1Tex : option.value,
|
|
141
|
+
value: option.value
|
|
142
|
+
};
|
|
143
|
+
}),
|
|
144
|
+
max: choicePicker.variant === "multipleSelection" ? void 0 : 1
|
|
145
|
+
}
|
|
257
146
|
}];
|
|
258
147
|
}
|
|
259
148
|
case "Slider": {
|
|
260
|
-
|
|
261
|
-
|
|
149
|
+
var _slider$min;
|
|
150
|
+
const slider = node;
|
|
262
151
|
return [{
|
|
263
152
|
field,
|
|
153
|
+
label: resolveA2UI_0_9_1Text(slider.label),
|
|
264
154
|
type: JSON_FORM_COMPONENT_TYPES.slider,
|
|
265
|
-
componentProps:
|
|
266
|
-
min:
|
|
267
|
-
max:
|
|
268
|
-
}
|
|
155
|
+
componentProps: {
|
|
156
|
+
min: (_slider$min = slider.min) !== null && _slider$min !== void 0 ? _slider$min : 0,
|
|
157
|
+
max: slider.max
|
|
158
|
+
}
|
|
269
159
|
}];
|
|
270
160
|
}
|
|
271
161
|
case "DateTimeInput": {
|
|
272
|
-
var
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
const enableTime = (_props$enableTime = props.enableTime) !== null && _props$enableTime !== void 0 ? _props$enableTime : false;
|
|
277
|
-
const type = enableDate ? JSON_FORM_COMPONENT_TYPES.datePicker : JSON_FORM_COMPONENT_TYPES.timePicker;
|
|
278
|
-
return [{
|
|
279
|
-
field,
|
|
280
|
-
label: resolveA2UIBoundText(props.label),
|
|
281
|
-
type,
|
|
282
|
-
componentProps: _objectSpread2(_objectSpread2({}, translateA2UI_0_8CommonComponentProps(props)), enableDate && enableTime ? { showTime: true } : {})
|
|
283
|
-
}];
|
|
284
|
-
}
|
|
285
|
-
case "MultipleChoice":
|
|
286
|
-
case "ChoicePicker": {
|
|
287
|
-
const choiceProps = props;
|
|
288
|
-
const field = resolveA2UIBoundPath(choiceProps.selections);
|
|
289
|
-
if (!field) return [];
|
|
162
|
+
var _dateTimeInput$enable, _dateTimeInput$enable2;
|
|
163
|
+
const dateTimeInput = node;
|
|
164
|
+
const enableDate = (_dateTimeInput$enable = dateTimeInput.enableDate) !== null && _dateTimeInput$enable !== void 0 ? _dateTimeInput$enable : false;
|
|
165
|
+
const enableTime = (_dateTimeInput$enable2 = dateTimeInput.enableTime) !== null && _dateTimeInput$enable2 !== void 0 ? _dateTimeInput$enable2 : false;
|
|
290
166
|
return [{
|
|
291
167
|
field,
|
|
292
|
-
label:
|
|
293
|
-
type: JSON_FORM_COMPONENT_TYPES.
|
|
294
|
-
componentProps:
|
|
295
|
-
options: translateA2UIChoiceOptions(choiceProps.options),
|
|
296
|
-
multiple: choiceProps.maxAllowedSelections !== 1
|
|
297
|
-
})
|
|
168
|
+
label: resolveA2UI_0_9_1Text(dateTimeInput.label),
|
|
169
|
+
type: enableDate ? JSON_FORM_COMPONENT_TYPES.datePicker : JSON_FORM_COMPONENT_TYPES.timePicker,
|
|
170
|
+
componentProps: enableDate && enableTime ? { showTime: true } : void 0
|
|
298
171
|
}];
|
|
299
172
|
}
|
|
300
|
-
default: return
|
|
173
|
+
default: return [];
|
|
301
174
|
}
|
|
302
175
|
}
|
|
303
|
-
function
|
|
176
|
+
function translateA2UI_0_9_1ToJsonFormSchemas(nodes) {
|
|
304
177
|
const nodeMap = new Map(nodes.map((node) => [node.id, node]));
|
|
305
|
-
const referencedIds = /* @__PURE__ */ new Set();
|
|
306
178
|
const visitedIds = /* @__PURE__ */ new Set();
|
|
307
|
-
for (const node of nodes) {
|
|
308
|
-
const { name, props } = resolveA2UIComponent(node);
|
|
309
|
-
if (name === "Row" || name === "Column") for (const childId of getA2UIChildren(props.children)) referencedIds.add(childId);
|
|
310
|
-
}
|
|
311
179
|
const expandNode = (node) => {
|
|
312
180
|
if (visitedIds.has(node.id)) return [];
|
|
313
181
|
visitedIds.add(node.id);
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
182
|
+
if (node.component === "Card") {
|
|
183
|
+
const child = nodeMap.get(node.child);
|
|
184
|
+
return child ? expandNode(child) : [];
|
|
185
|
+
}
|
|
186
|
+
if (node.component === "Column" || node.component === "List" || node.component === "Row") {
|
|
187
|
+
const container = node;
|
|
188
|
+
if (!Array.isArray(container.children)) return [];
|
|
189
|
+
const children = container.children.flatMap((childId) => {
|
|
190
|
+
const child = nodeMap.get(childId);
|
|
191
|
+
return child ? expandNode(child) : [];
|
|
192
|
+
});
|
|
193
|
+
if (node.component !== "Row") return children;
|
|
321
194
|
return [{
|
|
322
195
|
field: node.id,
|
|
323
196
|
type: JSON_FORM_COMPONENT_TYPES.row,
|
|
324
197
|
children
|
|
325
198
|
}];
|
|
326
199
|
}
|
|
327
|
-
|
|
328
|
-
return translateA2UI_0_8GenericField(node);
|
|
200
|
+
return translateA2UI_0_9_1Field(node);
|
|
329
201
|
};
|
|
330
|
-
|
|
202
|
+
const root = nodeMap.get("root");
|
|
203
|
+
return root ? expandNode(root) : [];
|
|
331
204
|
}
|
|
332
205
|
function mergeJsonFormClassName(...classNames) {
|
|
333
206
|
return classNames.filter(Boolean);
|
|
334
207
|
}
|
|
335
208
|
//#endregion
|
|
336
|
-
export { getJsonFormValue, mergeJsonFormClassName, resolveJsonFormComponents, setJsonFormValue, shouldStretchJsonFormControl,
|
|
209
|
+
export { getJsonFormValue, jsonFormBuiltInComponents, mergeJsonFormClassName, parseJsonFormPath, resolveJsonFormComponents, setJsonFormValue, shouldStretchJsonFormControl, translateA2UI_0_9_1ToJsonFormSchemas };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const COMMON_HTTP_HEADERS: readonly ["WWW-Authenticate", "Authorization", "Proxy-Authenticate", "Proxy-Authorization", "Age", "Cache-Control", "Clear-Site-Data", "Expires", "Pragma", "Warning", "Accept-CH", "Accept-CH-Lifetime", "Early-Data", "Content-DPR", "DPR", "Device-Memory", "Save-Data", "Viewport-Width", "Width", "Last-Modified", "ETag", "If-Match", "If-None-Match", "If-Modified-Since", "If-Unmodified-Since", "Vary", "Connection", "Keep-Alive", "Accept", "Accept-Charset", "Accept-Encoding", "Accept-Language", "Expect", "Max-Forwards", "Cookie", "Set-Cookie", "Cookie2", "Set-Cookie2", "Access-Control-Allow-Origin", "Access-Control-Allow-Credentials", "Access-Control-Allow-Headers", "Access-Control-Allow-Methods", "Access-Control-Expose-Headers", "Access-Control-Max-Age", "Access-Control-Request-Headers", "Access-Control-Request-Method", "Origin", "Service-Worker-Allowed", "Timing-Allow-Origin", "X-Permitted-Cross-Domain-Policies", "DNT", "Tk", "Content-Disposition", "Content-Length", "Content-Type", "Content-Encoding", "Content-Language", "Content-Location", "Forwarded", "X-Forwarded-For", "X-Forwarded-Host", "X-Forwarded-Proto", "Via", "Location", "From", "Host", "Referer", "Referrer-Policy", "User-Agent", "Allow", "Server", "Accept-Ranges", "Range", "If-Range", "Content-Range", "Cross-Origin-Opener-Policy", "Cross-Origin-Resource-Policy", "Content-Security-Policy", "Content-Security-Policy-Report-Only", "Expect-CT", "Feature-Policy", "Public-Key-Pins", "Public-Key-Pins-Report-Only", "Strict-Transport-Security", "Upgrade-Insecure-Requests", "X-Content-Type-Options", "X-Download-Options", "X-Frame-Options", "X-Powered-By", "X-XSS-Protection", "Last-Event-ID", "NEL", "Ping-From", "Ping-To", "Report-To", "Transfer-Encoding", "TE", "Trailer", "Sec-WebSocket-Key", "Sec-WebSocket-Extensions", "Sec-WebSocket-Accept", "Sec-WebSocket-Protocol", "Sec-WebSocket-Version", "Accept-Push-Policy", "Accept-Signature", "Alt-Svc", "Date", "Large-Allocation", "Link", "Push-Policy", "Retry-After", "Signature", "Signed-Headers", "Server-Timing", "SourceMap", "Upgrade", "X-DNS-Prefetch-Control", "X-Firefox-Spdy", "X-Pingback", "X-Requested-With", "X-Robots-Tag", "X-UA-Compatible"];
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
//#region components/kv-list/constants.ts
|
|
2
|
+
var COMMON_HTTP_HEADERS = [
|
|
3
|
+
"WWW-Authenticate",
|
|
4
|
+
"Authorization",
|
|
5
|
+
"Proxy-Authenticate",
|
|
6
|
+
"Proxy-Authorization",
|
|
7
|
+
"Age",
|
|
8
|
+
"Cache-Control",
|
|
9
|
+
"Clear-Site-Data",
|
|
10
|
+
"Expires",
|
|
11
|
+
"Pragma",
|
|
12
|
+
"Warning",
|
|
13
|
+
"Accept-CH",
|
|
14
|
+
"Accept-CH-Lifetime",
|
|
15
|
+
"Early-Data",
|
|
16
|
+
"Content-DPR",
|
|
17
|
+
"DPR",
|
|
18
|
+
"Device-Memory",
|
|
19
|
+
"Save-Data",
|
|
20
|
+
"Viewport-Width",
|
|
21
|
+
"Width",
|
|
22
|
+
"Last-Modified",
|
|
23
|
+
"ETag",
|
|
24
|
+
"If-Match",
|
|
25
|
+
"If-None-Match",
|
|
26
|
+
"If-Modified-Since",
|
|
27
|
+
"If-Unmodified-Since",
|
|
28
|
+
"Vary",
|
|
29
|
+
"Connection",
|
|
30
|
+
"Keep-Alive",
|
|
31
|
+
"Accept",
|
|
32
|
+
"Accept-Charset",
|
|
33
|
+
"Accept-Encoding",
|
|
34
|
+
"Accept-Language",
|
|
35
|
+
"Expect",
|
|
36
|
+
"Max-Forwards",
|
|
37
|
+
"Cookie",
|
|
38
|
+
"Set-Cookie",
|
|
39
|
+
"Cookie2",
|
|
40
|
+
"Set-Cookie2",
|
|
41
|
+
"Access-Control-Allow-Origin",
|
|
42
|
+
"Access-Control-Allow-Credentials",
|
|
43
|
+
"Access-Control-Allow-Headers",
|
|
44
|
+
"Access-Control-Allow-Methods",
|
|
45
|
+
"Access-Control-Expose-Headers",
|
|
46
|
+
"Access-Control-Max-Age",
|
|
47
|
+
"Access-Control-Request-Headers",
|
|
48
|
+
"Access-Control-Request-Method",
|
|
49
|
+
"Origin",
|
|
50
|
+
"Service-Worker-Allowed",
|
|
51
|
+
"Timing-Allow-Origin",
|
|
52
|
+
"X-Permitted-Cross-Domain-Policies",
|
|
53
|
+
"DNT",
|
|
54
|
+
"Tk",
|
|
55
|
+
"Content-Disposition",
|
|
56
|
+
"Content-Length",
|
|
57
|
+
"Content-Type",
|
|
58
|
+
"Content-Encoding",
|
|
59
|
+
"Content-Language",
|
|
60
|
+
"Content-Location",
|
|
61
|
+
"Forwarded",
|
|
62
|
+
"X-Forwarded-For",
|
|
63
|
+
"X-Forwarded-Host",
|
|
64
|
+
"X-Forwarded-Proto",
|
|
65
|
+
"Via",
|
|
66
|
+
"Location",
|
|
67
|
+
"From",
|
|
68
|
+
"Host",
|
|
69
|
+
"Referer",
|
|
70
|
+
"Referrer-Policy",
|
|
71
|
+
"User-Agent",
|
|
72
|
+
"Allow",
|
|
73
|
+
"Server",
|
|
74
|
+
"Accept-Ranges",
|
|
75
|
+
"Range",
|
|
76
|
+
"If-Range",
|
|
77
|
+
"Content-Range",
|
|
78
|
+
"Cross-Origin-Opener-Policy",
|
|
79
|
+
"Cross-Origin-Resource-Policy",
|
|
80
|
+
"Content-Security-Policy",
|
|
81
|
+
"Content-Security-Policy-Report-Only",
|
|
82
|
+
"Expect-CT",
|
|
83
|
+
"Feature-Policy",
|
|
84
|
+
"Public-Key-Pins",
|
|
85
|
+
"Public-Key-Pins-Report-Only",
|
|
86
|
+
"Strict-Transport-Security",
|
|
87
|
+
"Upgrade-Insecure-Requests",
|
|
88
|
+
"X-Content-Type-Options",
|
|
89
|
+
"X-Download-Options",
|
|
90
|
+
"X-Frame-Options",
|
|
91
|
+
"X-Powered-By",
|
|
92
|
+
"X-XSS-Protection",
|
|
93
|
+
"Last-Event-ID",
|
|
94
|
+
"NEL",
|
|
95
|
+
"Ping-From",
|
|
96
|
+
"Ping-To",
|
|
97
|
+
"Report-To",
|
|
98
|
+
"Transfer-Encoding",
|
|
99
|
+
"TE",
|
|
100
|
+
"Trailer",
|
|
101
|
+
"Sec-WebSocket-Key",
|
|
102
|
+
"Sec-WebSocket-Extensions",
|
|
103
|
+
"Sec-WebSocket-Accept",
|
|
104
|
+
"Sec-WebSocket-Protocol",
|
|
105
|
+
"Sec-WebSocket-Version",
|
|
106
|
+
"Accept-Push-Policy",
|
|
107
|
+
"Accept-Signature",
|
|
108
|
+
"Alt-Svc",
|
|
109
|
+
"Date",
|
|
110
|
+
"Large-Allocation",
|
|
111
|
+
"Link",
|
|
112
|
+
"Push-Policy",
|
|
113
|
+
"Retry-After",
|
|
114
|
+
"Signature",
|
|
115
|
+
"Signed-Headers",
|
|
116
|
+
"Server-Timing",
|
|
117
|
+
"SourceMap",
|
|
118
|
+
"Upgrade",
|
|
119
|
+
"X-DNS-Prefetch-Control",
|
|
120
|
+
"X-Firefox-Spdy",
|
|
121
|
+
"X-Pingback",
|
|
122
|
+
"X-Requested-With",
|
|
123
|
+
"X-Robots-Tag",
|
|
124
|
+
"X-UA-Compatible"
|
|
125
|
+
];
|
|
126
|
+
//#endregion
|
|
127
|
+
export { COMMON_HTTP_HEADERS };
|