@ibiz-template/vue3-components 0.7.38-alpha.56 → 0.7.40-alpha.9
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/LICENSE +1 -1
- package/README.md +321 -0
- package/dist/ibiz-markdown-editor-D4ESf3bP.js +1 -0
- package/dist/index--C432Qzt.js +4 -0
- package/dist/index-CmaF1QyJ.js +1 -0
- package/dist/index-frsL8WmS.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-user-CILGy9I4.js +1 -0
- package/dist/wang-editor-ZtYMqlXx.js +1 -0
- package/dist/{xlsx-util-BApCDhEk.js → xlsx-util-CKS7oyKo.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.d.ts +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +14 -8
- package/es/common/anchor-container/anchor-bar-list/anchor-bar-list.d.ts +9 -9
- package/es/common/anchor-container/anchor-container.d.ts +12 -12
- package/es/common/button-list/button-list.d.ts +5 -5
- package/es/common/button-list/button-list.mjs +53 -41
- package/es/common/carousel/carousel.d.ts +1 -1
- package/es/common/carousel-card/carousel-card.d.ts +3 -3
- package/es/common/control-navigation/control-navigation.mjs +7 -1
- package/es/common/control-navigation/provider/navigation-base.provider.mjs +5 -2
- package/es/common/cropping/cropping.d.ts +3 -3
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +12 -12
- package/es/common/data-import/data-import.d.ts +4 -4
- package/es/common/data-import2/data-import2.d.ts +5 -5
- package/es/common/data-import2-select/data-import2-select.d.ts +2 -2
- package/es/common/data-import2-table/data-import2-table.d.ts +2 -2
- package/es/common/emoji-select/components/categories/categories.d.ts +3 -3
- package/es/common/emoji-select/components/emoji-item/emoji-item.d.ts +3 -3
- package/es/common/emoji-select/components/emoji-list/emoji-list.d.ts +7 -7
- package/es/common/emoji-select/emoji-select.d.ts +3 -3
- package/es/common/extend-action-timeline/extend-action-timeline.d.ts +3 -3
- package/es/common/map-chart-user/map-user-manager.d.ts +1 -1
- package/es/common/map-chart-user/map-user-manager.mjs +1 -1
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.d.ts +4 -4
- package/es/common/pql-editor/pql-editor.d.ts +4 -4
- package/es/common/quick-edit/quick-edit.d.ts +15 -5
- package/es/common/quick-edit/quick-edit.mjs +27 -7
- package/es/common/rawitem/rawitem.css +1 -1
- package/es/common/rawitem/rawitem.d.ts +2 -2
- package/es/common/rawitem/rawitem.mjs +4 -3
- package/es/common/view-message/view-message.d.ts +6 -6
- package/es/common/view-message/view-message.mjs +6 -4
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.d.ts +8 -8
- package/es/control/app-menu/app-menu.mjs +8 -4
- package/es/control/app-menu/custom-menu-design/custom-menu-design.d.ts +3 -3
- package/es/control/app-menu/index.d.ts +9 -9
- package/es/control/app-menu-icon-view/app-menu-icon-view.d.ts +5 -5
- package/es/control/app-menu-icon-view/index.d.ts +5 -5
- package/es/control/calendar/calendar.d.ts +7 -7
- package/es/control/calendar/components/calendar-daily/calendar-daily.d.ts +6 -6
- package/es/control/calendar/components/calendar-daily/index.d.ts +6 -6
- package/es/control/calendar/components/calendar-daily/use-calendar-daily.d.ts +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.d.ts +6 -6
- package/es/control/calendar/components/calendar-user/index.d.ts +6 -6
- package/es/control/calendar/components/calendar-week/calendar-week.d.ts +6 -6
- package/es/control/calendar/components/calendar-week/index.d.ts +6 -6
- package/es/control/calendar/components/calendar-week/use-calendar-week.d.ts +4 -4
- package/es/control/calendar/components/custom-calendar/custom-calendar.d.ts +6 -6
- package/es/control/calendar/components/custom-calendar/index.d.ts +6 -6
- package/es/control/calendar/components/interface/calendar-daily.d.ts +3 -3
- package/es/control/calendar/components/interface/calendar-user.d.ts +3 -3
- package/es/control/calendar/components/interface/calendar-week.d.ts +3 -3
- package/es/control/calendar/components/interface/custom-calendar.d.ts +3 -3
- package/es/control/calendar/components/util/util.d.ts +2 -2
- package/es/control/calendar/index.d.ts +8 -8
- package/es/control/caption-bar/caption-bar.d.ts +5 -5
- package/es/control/caption-bar/index.d.ts +5 -5
- package/es/control/chart/chart.d.ts +13 -13
- package/es/control/context-menu/context-menu.css +1 -1
- package/es/control/context-menu/context-menu.d.ts +8 -6
- package/es/control/context-menu/context-menu.mjs +24 -9
- package/es/control/context-menu/index.d.ts +8 -6
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +2 -21357
- package/es/control/dashboard/dashboard-design/dashboard-design.d.ts +2 -2
- package/es/control/dashboard/dashboard.d.ts +6 -6
- package/es/control/dashboard/index.d.ts +7 -7
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.d.ts +6 -6
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.d.ts +6 -6
- package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.d.ts +5 -5
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.d.ts +14 -14
- package/es/control/data-view/data-view.mjs +73 -87
- package/es/control/data-view/index.d.ts +14 -14
- package/es/control/drbar/drbar.d.ts +5 -5
- package/es/control/drbar/index.d.ts +5 -5
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.d.ts +8 -8
- package/es/control/drtab/index.d.ts +8 -8
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/calendar-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/chart-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/data-view-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/grid-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/list-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.d.ts +5 -5
- package/es/control/exp-bar/tree-exp-bar/index.d.ts +5 -5
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.d.ts +5 -5
- package/es/control/form/edit-form/edit-form.css +1 -0
- package/es/control/form/edit-form/edit-form.d.ts +3 -76
- package/es/control/form/edit-form/edit-form.mjs +27 -5
- package/es/control/form/edit-form/index.d.ts +2 -73
- package/es/control/form/form/form.css +1 -1
- package/es/control/form/form/form.d.ts +1 -1
- package/es/control/form/form/form.mjs +1 -1
- package/es/control/form/form/index.d.ts +1 -1
- package/es/control/form/form-detail/form-button/form-button.mjs +4 -1
- package/es/control/form/form-detail/form-button-list/form-button-list.d.ts +1 -1
- package/es/control/form/form-detail/form-button-list/form-button-list.mjs +7 -3
- package/es/control/form/form-detail/form-button-list/index.d.ts +1 -1
- package/es/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/es/control/form/form-detail/form-druipart/form-druipart.d.ts +1 -0
- package/es/control/form/form-detail/form-druipart/form-druipart.mjs +11 -1
- package/es/control/form/form-detail/form-druipart/index.d.ts +1 -0
- package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.d.ts +2 -2
- package/es/control/form/form-detail/form-item/composite-form-item/composite-form-item.mjs +12 -13
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +7 -101
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +65 -92
- package/es/control/form/form-detail/form-item/form-item.d.ts +5 -5
- package/es/control/form/form-detail/form-item/form-item.mjs +32 -44
- package/es/control/form/form-detail/form-item/index.d.ts +4 -4
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.mjs +12 -14
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +20890 -10610
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.d.ts +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.d.ts +3 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +10 -0
- package/es/control/form/form-detail/form-mdctrl/index.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.d.ts +3 -3
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.d.ts +4 -4
- package/es/control/form/form-detail/form-rawitem/form-rawitem.css +1 -1
- package/es/control/form/form-detail/form-rawitem/form-rawitem.d.ts +2 -0
- package/es/control/form/form-detail/form-rawitem/form-rawitem.mjs +134 -2
- package/es/control/form/form-detail/form-rawitem/index.d.ts +2 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.d.ts +1 -1
- package/es/control/form/form-detail/form-tab-panel/index.d.ts +2 -2
- package/es/control/form/search-form/index.d.ts +13 -5
- package/es/control/form/search-form/search-form.d.ts +13 -5
- package/es/control/form/search-form/search-form.mjs +22 -2
- package/es/control/gantt/gantt.d.ts +7 -7
- package/es/control/gantt/index.d.ts +8 -8
- package/es/control/grid/grid/grid-control.util.mjs +18 -11
- package/es/control/grid/grid/grid.d.ts +29 -29
- package/es/control/grid/grid/grid.mjs +9 -1
- package/es/control/grid/grid/index.d.ts +29 -29
- package/es/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.d.ts +4 -4
- package/es/control/grid/grid-column/auto-grid-field-edit-column/index.d.ts +4 -4
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +2 -2
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.d.ts +4 -4
- package/es/control/grid/grid-column/grid-field-edit-column/index.d.ts +4 -4
- package/es/control/kanban/index.d.ts +5 -5
- package/es/control/kanban/kanban.d.ts +5 -5
- package/es/control/list/index.d.ts +14 -14
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +14 -14
- package/es/control/list/list.mjs +64 -58
- package/es/control/map/map.d.ts +5 -5
- package/es/control/medit-view-panel/index.d.ts +5 -5
- package/es/control/medit-view-panel/medit-view-panel.d.ts +5 -5
- package/es/control/pickup-view-panel/index.d.ts +5 -5
- package/es/control/pickup-view-panel/pickup-view-panel.d.ts +5 -5
- package/es/control/report-panel/report-panel.d.ts +5 -5
- package/es/control/search-bar/filter-tree/filter-tree.d.ts +4 -4
- package/es/control/search-bar/index.d.ts +5 -5
- package/es/control/search-bar/search-bar.d.ts +5 -5
- package/es/control/search-bar/search-groups/search-groups.d.ts +6 -6
- package/es/control/tab-exp-panel/index.d.ts +5 -5
- package/es/control/tab-exp-panel/tab-exp-panel.d.ts +5 -5
- package/es/control/toolbar/export-excel/export-excel.mjs +9 -5
- package/es/control/toolbar/index.d.ts +6 -6
- package/es/control/toolbar/short-cut-button/short-cut-button.mjs +4 -3
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.d.ts +5 -5
- package/es/control/toolbar/toolbar.mjs +23 -19
- package/es/control/tree/index.d.ts +14 -14
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +26 -26
- package/es/control/tree/tree.mjs +5 -0
- package/es/control/tree-grid/index.d.ts +24 -24
- package/es/control/tree-grid/tree-grid.d.ts +23 -23
- package/es/control/tree-grid-ex/index.d.ts +11 -11
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.d.ts +2 -2
- package/es/control/tree-grid-ex/tree-grid-ex.d.ts +7 -7
- package/es/control/wizard-panel/index.d.ts +5 -5
- package/es/control/wizard-panel/wizard-panel.css +1 -1
- package/es/control/wizard-panel/wizard-panel.d.ts +5 -5
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +9 -9
- package/es/editor/autocomplete/autocomplete-editor.controller.mjs +3 -0
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +9 -9
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +1 -0
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +8 -8
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +14 -14
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +1 -2
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +8 -8
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +9 -9
- package/es/editor/code/code-editor.controller.d.ts +16 -1
- package/es/editor/code/code-editor.controller.mjs +34 -1
- package/es/editor/code/monaco-editor/monaco-editor.css +1 -1
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +10 -9
- package/es/editor/code/monaco-editor/monaco-editor.mjs +310 -13
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.d.ts +1 -1
- package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.d.ts +1 -1
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +14 -10
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +10 -10
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +9 -9
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +3 -0
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +10 -9
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +9 -3
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +9 -9
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.d.ts +8 -8
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +12 -12
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +5 -1
- package/es/editor/data-picker/picker-editor.controller.mjs +5 -1
- package/es/editor/data-picker/picker-editor.provider.mjs +2 -0
- package/es/editor/date-picker/date-picker-editor.controller.mjs +7 -0
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +8 -8
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +7 -0
- package/es/editor/date-range/date-range-editor.controller.mjs +2 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +8 -8
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +2 -0
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.d.ts +4 -4
- package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +11 -11
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +9 -7
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +8 -8
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +11 -11
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +2 -4
- package/es/editor/html/html-editor.controller.mjs +1 -1
- package/es/editor/html/wang-editor/wang-editor.d.ts +8 -8
- package/es/editor/html/wang-editor/wang-editor.mjs +192 -58
- package/es/editor/index.mjs +80 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +9 -9
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +132 -16
- package/es/editor/not-supported-editor/not-supported-editor.css +1 -1
- package/es/editor/not-supported-editor/not-supported-editor.d.ts +7 -0
- package/es/editor/not-supported-editor/not-supported-editor.mjs +15 -2
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +8 -8
- package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.d.ts +8 -8
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +9 -9
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +9 -3
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +10 -10
- package/es/editor/raw/ibiz-raw/ibiz-raw.css +1 -1
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +9 -8
- package/es/editor/raw/ibiz-raw/ibiz-raw.mjs +5 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +8 -8
- package/es/editor/span/span/span.d.ts +3 -3
- package/es/editor/span/span-link/span-link.d.ts +8 -8
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +8 -8
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +9 -9
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +8 -8
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +8 -8
- package/es/editor/text-box/input/input.d.ts +10 -10
- package/es/editor/text-box/input/input.mjs +194 -61
- package/es/editor/text-box/text-box-editor.controller.mjs +2 -2
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +13 -13
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +15 -15
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +8 -8
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +13 -13
- package/es/editor/upload/upload-editor.controller.mjs +7 -3
- package/es/editor/upload/upload-editor.provider.mjs +3 -0
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.d.ts +8 -8
- package/es/index.mjs +45 -0
- package/es/locale/en/index.d.ts +32 -0
- package/es/locale/en/index.mjs +28 -4
- package/es/locale/zh-CN/index.d.ts +32 -0
- package/es/locale/zh-CN/index.mjs +28 -4
- package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.57_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.40-alpha.7_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +53 -81
- package/es/panel-component/coop-pos/coop-pos.d.ts +1 -1
- package/es/panel-component/coop-pos/index.d.ts +2 -2
- package/es/panel-component/global-search/global-search.controller.d.ts +113 -0
- package/es/panel-component/global-search/global-search.controller.mjs +221 -0
- package/es/panel-component/global-search/global-search.css +1 -0
- package/es/panel-component/global-search/global-search.d.ts +36 -0
- package/es/panel-component/global-search/global-search.mjs +194 -0
- package/es/panel-component/global-search/global-search.provider.d.ts +14 -0
- package/es/panel-component/global-search/global-search.provider.mjs +21 -0
- package/es/panel-component/global-search/global-search.state.d.ts +61 -0
- package/es/panel-component/global-search/global-search.state.mjs +37 -0
- package/es/panel-component/global-search/index.d.ts +33 -0
- package/es/panel-component/global-search/index.mjs +15 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.controller.d.ts +54 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.controller.mjs +78 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.css +1 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.d.ts +26 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.mjs +74 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.provider.d.ts +14 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.provider.mjs +21 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.state.d.ts +10 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.state.mjs +7 -0
- package/es/panel-component/index-blank-placeholder/index.d.ts +25 -0
- package/es/panel-component/index-blank-placeholder/index.mjs +19 -0
- package/es/panel-component/index.mjs +4 -0
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +5 -1
- package/es/panel-component/panel-app-title/index.d.ts +1 -0
- package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.d.ts +1 -0
- package/es/panel-component/panel-app-title/panel-app-title.mjs +45 -21
- package/es/panel-component/panel-button/index.d.ts +1 -1
- package/es/panel-component/panel-button/panel-button.d.ts +1 -1
- package/es/panel-component/panel-button/panel-button.mjs +7 -20
- package/es/panel-component/panel-button-list/index.d.ts +1 -1
- package/es/panel-component/panel-button-list/panel-button-list.controller.d.ts +13 -4
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +27 -7
- package/es/panel-component/panel-button-list/panel-button-list.d.ts +1 -1
- package/es/panel-component/panel-button-list/panel-button-list.mjs +3 -3
- package/es/panel-component/panel-tab-panel/index.d.ts +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +5 -0
- package/es/panel-component/short-cut/index.d.ts +2 -2
- package/es/panel-component/short-cut/short-cut.d.ts +1 -1
- package/es/panel-component/user-message/addin-changed/addin-changed.d.ts +2 -2
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.d.ts +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.provider.d.ts +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.d.ts +1 -1
- package/es/panel-component/user-message/user-message.css +1 -1
- package/es/panel-component/user-message/user-message.mjs +3 -1
- package/es/util/ai-util/ai-util.d.ts +25 -0
- package/es/util/ai-util/ai-util.mjs +44 -0
- package/es/util/app-modal/app-modal-component.d.ts +1 -1
- package/es/util/app-util/app-util.d.ts +10 -1
- package/es/util/app-util/app-util.mjs +281 -0
- package/es/util/button-util/button-util.d.ts +7 -0
- package/es/util/button-util/button-util.mjs +11 -0
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/index.d.ts +2 -0
- package/es/util/index.mjs +2 -0
- package/es/util/notice-util/notice-util.mjs +2 -1
- package/es/util/notification-util/upload-manager/upload-manager.d.ts +1 -1
- package/es/util/open-view-util/open-view-util.d.ts +41 -14
- package/es/util/open-view-util/open-view-util.mjs +69 -15
- package/es/view/403-view/403-view.css +1 -1
- package/es/view/404-view/404-view.css +1 -1
- package/es/view/share-view/share-view.d.ts +1 -1
- package/es/view/sub-app-ref-view/index.d.ts +7 -7
- package/es/view/sub-app-ref-view/sub-app-ref-view.d.ts +7 -7
- package/es/view/wf-step-trace-view/index.d.ts +7 -7
- package/es/view/wf-step-trace-view/wf-step-trace-view.d.ts +7 -7
- package/es/view-engine/custom-view.engine.d.ts +31 -2
- package/es/view-engine/custom-view.engine.mjs +75 -1
- package/es/view-engine/edit-view.engine.d.ts +1 -2
- package/es/view-engine/edit-view.engine.mjs +6 -27
- package/es/view-engine/index.d.ts +43 -0
- package/es/view-engine/index.mjs +2 -1
- package/es/view-engine/portal-view-engine.d.ts +8 -0
- package/es/view-engine/portal-view-engine.mjs +14 -26
- package/es/web-app/App.mjs +2 -0
- package/es/web-app/attach-environment-config.mjs +1 -1
- package/es/web-app/components/router-shell/router-shell.d.ts +3 -3
- package/es/web-app/guard/auth-guard/auth-guard.mjs +5 -0
- package/es/web-app/guard/auth-guard/dyna-auth-guard.mjs +3 -0
- package/es/web-app/main.mjs +1 -1
- package/lib/common/action-toolbar/action-toolbar.cjs +13 -7
- package/lib/common/button-list/button-list.cjs +53 -41
- package/lib/common/control-navigation/control-navigation.cjs +7 -1
- package/lib/common/control-navigation/provider/navigation-base.provider.cjs +5 -2
- package/lib/common/map-chart-user/map-user-manager.cjs +1 -1
- package/lib/common/quick-edit/quick-edit.cjs +26 -6
- package/lib/common/rawitem/rawitem.cjs +4 -3
- package/lib/common/rawitem/rawitem.css +1 -1
- package/lib/common/view-message/view-message.cjs +6 -4
- package/lib/control/app-menu/app-menu.cjs +8 -4
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/context-menu/context-menu.cjs +23 -8
- package/lib/control/context-menu/context-menu.css +1 -1
- package/lib/control/data-view/data-view.cjs +73 -87
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/form/edit-form/edit-form.cjs +27 -5
- package/lib/control/form/edit-form/edit-form.css +1 -0
- package/lib/control/form/form/form.cjs +1 -1
- package/lib/control/form/form/form.css +1 -1
- package/lib/control/form/form-detail/form-button/form-button.cjs +4 -1
- package/lib/control/form/form-detail/form-button-list/form-button-list.cjs +7 -3
- package/lib/control/form/form-detail/form-druipart/form-druipart.cjs +10 -0
- package/lib/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/lib/control/form/form-detail/form-item/composite-form-item/composite-form-item.cjs +12 -13
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +64 -91
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +32 -44
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.cjs +12 -14
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +10 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.cjs +133 -1
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.css +1 -1
- package/lib/control/form/search-form/search-form.cjs +21 -1
- package/lib/control/grid/grid/grid-control.util.cjs +18 -11
- package/lib/control/grid/grid/grid.cjs +9 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/list/list.cjs +64 -58
- package/lib/control/list/list.css +1 -1
- package/lib/control/toolbar/export-excel/export-excel.cjs +9 -5
- package/lib/control/toolbar/short-cut-button/short-cut-button.cjs +4 -3
- package/lib/control/toolbar/toolbar.cjs +23 -19
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.cjs +5 -0
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/autocomplete/autocomplete-editor.controller.cjs +3 -0
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +1 -0
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +1 -2
- package/lib/editor/code/code-editor.controller.cjs +33 -0
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +309 -12
- package/lib/editor/code/monaco-editor/monaco-editor.css +1 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +3 -0
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +8 -2
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +5 -1
- package/lib/editor/data-picker/picker-editor.controller.cjs +5 -1
- package/lib/editor/data-picker/picker-editor.provider.cjs +2 -0
- package/lib/editor/date-picker/date-picker-editor.controller.cjs +7 -0
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +7 -0
- package/lib/editor/date-range/date-range-editor.controller.cjs +2 -0
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +2 -0
- package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +9 -7
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +2 -4
- package/lib/editor/html/html-editor.controller.cjs +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +190 -56
- package/lib/editor/index.cjs +80 -0
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +131 -15
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/lib/editor/not-supported-editor/not-supported-editor.cjs +15 -2
- package/lib/editor/not-supported-editor/not-supported-editor.css +1 -1
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +9 -3
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/lib/editor/raw/ibiz-raw/ibiz-raw.cjs +5 -1
- package/lib/editor/raw/ibiz-raw/ibiz-raw.css +1 -1
- package/lib/editor/text-box/input/input.cjs +192 -59
- package/lib/editor/text-box/text-box-editor.controller.cjs +2 -2
- package/lib/editor/upload/upload-editor.controller.cjs +7 -3
- package/lib/editor/upload/upload-editor.provider.cjs +3 -0
- package/lib/index.cjs +90 -0
- package/lib/locale/en/index.cjs +28 -4
- package/lib/locale/zh-CN/index.cjs +28 -4
- package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.57_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.40-alpha.7_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +53 -81
- package/lib/panel-component/global-search/global-search.cjs +196 -0
- package/lib/panel-component/global-search/global-search.controller.cjs +223 -0
- package/lib/panel-component/global-search/global-search.css +1 -0
- package/lib/panel-component/global-search/global-search.provider.cjs +23 -0
- package/lib/panel-component/global-search/global-search.state.cjs +39 -0
- package/lib/panel-component/global-search/index.cjs +20 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.cjs +76 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.controller.cjs +80 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.css +1 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.provider.cjs +23 -0
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.state.cjs +9 -0
- package/lib/panel-component/index-blank-placeholder/index.cjs +25 -0
- package/lib/panel-component/index.cjs +42 -38
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +5 -1
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +45 -21
- package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/lib/panel-component/panel-button/panel-button.cjs +7 -20
- package/lib/panel-component/panel-button-list/panel-button-list.cjs +3 -3
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +27 -7
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +5 -0
- package/lib/panel-component/user-message/user-message.cjs +3 -1
- package/lib/panel-component/user-message/user-message.css +1 -1
- package/lib/util/ai-util/ai-util.cjs +46 -0
- package/lib/util/app-util/app-util.cjs +281 -0
- package/lib/util/button-util/button-util.cjs +13 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/index.cjs +4 -0
- package/lib/util/notice-util/notice-util.cjs +2 -1
- package/lib/util/open-view-util/open-view-util.cjs +69 -15
- package/lib/view/403-view/403-view.css +1 -1
- package/lib/view/404-view/404-view.css +1 -1
- package/lib/view-engine/custom-view.engine.cjs +74 -0
- package/lib/view-engine/edit-view.engine.cjs +6 -27
- package/lib/view-engine/index.cjs +44 -0
- package/lib/view-engine/portal-view-engine.cjs +14 -26
- package/lib/web-app/App.cjs +2 -0
- package/lib/web-app/attach-environment-config.cjs +1 -1
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +5 -0
- package/lib/web-app/guard/auth-guard/dyna-auth-guard.cjs +3 -0
- package/lib/web-app/main.cjs +1 -1
- package/package.json +16 -16
- package/dist/ibiz-markdown-editor-CKuF8KOI.js +0 -1
- package/dist/index-B79xJqXz.js +0 -1
- package/dist/index-BsxW9vZO.js +0 -1
- package/dist/index-CIQ8bnG_.js +0 -4
- package/dist/map-chart-user-BaQWHpFu.js +0 -1
- package/dist/wang-editor-Vd0LVyWx.js +0 -1
|
@@ -17,20 +17,22 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
17
17
|
setup(props, {
|
|
18
18
|
emit
|
|
19
19
|
}) {
|
|
20
|
+
var _a;
|
|
20
21
|
const ns = vue3Util.useNamespace("markdown");
|
|
21
22
|
const c = props.controller;
|
|
22
23
|
const currentVal = vue.ref("");
|
|
23
|
-
|
|
24
|
+
let editor = null;
|
|
24
25
|
const id = qxUtil.createUUID();
|
|
25
26
|
const headers = vue.ref({
|
|
26
27
|
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(core.getAppCookie(core.CoreConst.TOKEN))
|
|
27
28
|
});
|
|
28
29
|
const uploadUrl = vue.ref("");
|
|
29
30
|
const downloadUrl = vue.ref("");
|
|
31
|
+
const customTheme = (_a = c == null ? void 0 : c.editorParams) == null ? void 0 : _a.customTheme;
|
|
30
32
|
const {
|
|
31
33
|
UIStore
|
|
32
34
|
} = vue3Util.useUIStore();
|
|
33
|
-
const theme = vue.ref(UIStore.theme);
|
|
35
|
+
const theme = vue.ref(customTheme || UIStore.theme);
|
|
34
36
|
const defaultModel = vue.ref("editOnly");
|
|
35
37
|
let resizeObserver = null;
|
|
36
38
|
let lastMarkDownWidth = 0;
|
|
@@ -52,18 +54,15 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
52
54
|
callback(url);
|
|
53
55
|
};
|
|
54
56
|
const getCherryHtml = () => {
|
|
55
|
-
|
|
56
|
-
const result = (_a = editor.value) == null ? void 0 : _a.getHtml();
|
|
57
|
+
const result = editor == null ? void 0 : editor.getHtml();
|
|
57
58
|
return result;
|
|
58
59
|
};
|
|
59
60
|
const getCherryContent = () => {
|
|
60
|
-
|
|
61
|
-
const result = (_a = editor.value) == null ? void 0 : _a.getMarkdown();
|
|
61
|
+
const result = editor == null ? void 0 : editor.getMarkdown();
|
|
62
62
|
return result;
|
|
63
63
|
};
|
|
64
64
|
const setCherryContent = (val) => {
|
|
65
|
-
|
|
66
|
-
(_a = editor.value) == null ? void 0 : _a.setMarkdown(val, false);
|
|
65
|
+
editor == null ? void 0 : editor.setMarkdown(val, false);
|
|
67
66
|
};
|
|
68
67
|
vue.watch(() => props.value, (newVal, oldVal) => {
|
|
69
68
|
if (newVal !== oldVal) {
|
|
@@ -90,15 +89,108 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
90
89
|
[e]: src
|
|
91
90
|
};
|
|
92
91
|
};
|
|
92
|
+
const createElement = (tagName, className = "") => {
|
|
93
|
+
const element = document.createElement(tagName);
|
|
94
|
+
element.className = className;
|
|
95
|
+
return element;
|
|
96
|
+
};
|
|
97
|
+
const createCherryIcon = (tagName) => {
|
|
98
|
+
return createElement("i", "ch-icon ch-icon-".concat(tagName));
|
|
99
|
+
};
|
|
100
|
+
const fullscreenClassName = ns.e("fullscreen");
|
|
101
|
+
const clearNodeChildren = (node) => {
|
|
102
|
+
while (node.firstChild) {
|
|
103
|
+
node.removeChild(node.firstChild);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const getFullscreenNodeInfo = () => {
|
|
107
|
+
if (editor && markDownBox.value) {
|
|
108
|
+
const parentElement = editor.editor.options.editorDom.parentElement;
|
|
109
|
+
if (!parentElement)
|
|
110
|
+
return {};
|
|
111
|
+
const cherryClass = parentElement.classList;
|
|
112
|
+
const fullscreenNode = markDownBox.value.querySelector(".".concat(fullscreenClassName));
|
|
113
|
+
if (!fullscreenNode)
|
|
114
|
+
return {};
|
|
115
|
+
return {
|
|
116
|
+
parentElement,
|
|
117
|
+
cherryClass,
|
|
118
|
+
fullscreenNode
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
return {};
|
|
122
|
+
};
|
|
123
|
+
const openFullscreen = () => {
|
|
124
|
+
const {
|
|
125
|
+
parentElement,
|
|
126
|
+
cherryClass,
|
|
127
|
+
fullscreenNode
|
|
128
|
+
} = getFullscreenNodeInfo();
|
|
129
|
+
if (parentElement && cherryClass && fullscreenNode) {
|
|
130
|
+
clearNodeChildren(fullscreenNode);
|
|
131
|
+
fullscreenNode.appendChild(createCherryIcon("minscreen"));
|
|
132
|
+
cherryClass.add("fullscreen");
|
|
133
|
+
fullscreenNode.title = ibiz.i18n.t("editor.markdown.minimize");
|
|
134
|
+
parentElement.setAttribute("tabindex", "-1");
|
|
135
|
+
vue.nextTick(() => parentElement == null ? void 0 : parentElement.focus());
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const closeFullscreen = () => {
|
|
139
|
+
const {
|
|
140
|
+
parentElement,
|
|
141
|
+
cherryClass,
|
|
142
|
+
fullscreenNode
|
|
143
|
+
} = getFullscreenNodeInfo();
|
|
144
|
+
if (parentElement && cherryClass && fullscreenNode) {
|
|
145
|
+
clearNodeChildren(fullscreenNode);
|
|
146
|
+
fullscreenNode.appendChild(createCherryIcon("fullscreen"));
|
|
147
|
+
fullscreenNode.title = ibiz.i18n.t("editor.markdown.fullscreen");
|
|
148
|
+
cherryClass.remove("fullscreen");
|
|
149
|
+
parentElement == null ? void 0 : parentElement.blur();
|
|
150
|
+
parentElement.setAttribute("tabindex", "-1");
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
const isFullscreen = () => {
|
|
154
|
+
const {
|
|
155
|
+
cherryClass
|
|
156
|
+
} = getFullscreenNodeInfo();
|
|
157
|
+
return cherryClass == null ? void 0 : cherryClass.contains("fullscreen");
|
|
158
|
+
};
|
|
159
|
+
const onSwitchFullscreen = () => {
|
|
160
|
+
if (editor && markDownBox.value) {
|
|
161
|
+
if (isFullscreen()) {
|
|
162
|
+
closeFullscreen();
|
|
163
|
+
} else {
|
|
164
|
+
openFullscreen();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
const handleKeyDown = (_e) => {
|
|
169
|
+
_e.stopPropagation();
|
|
170
|
+
if (_e.key === "Escape") {
|
|
171
|
+
if (isFullscreen()) {
|
|
172
|
+
closeFullscreen();
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
93
176
|
const editorInit = () => {
|
|
94
177
|
if (props.disabled) {
|
|
95
178
|
defaultModel.value = "previewOnly";
|
|
96
179
|
}
|
|
97
180
|
vue.nextTick(() => {
|
|
98
|
-
|
|
181
|
+
var _a2;
|
|
182
|
+
editor = new Cherry({
|
|
99
183
|
id,
|
|
100
184
|
value: currentVal.value,
|
|
101
|
-
|
|
185
|
+
previewer: {
|
|
186
|
+
enablePreviewerBubble: !(props.disabled || props.readonly)
|
|
187
|
+
},
|
|
188
|
+
themeSettings: {
|
|
189
|
+
// 目前应用的主题
|
|
190
|
+
mainTheme: theme.value,
|
|
191
|
+
// 目前应用的代码块主题
|
|
192
|
+
codeBlockTheme: theme.value
|
|
193
|
+
},
|
|
102
194
|
fileUpload,
|
|
103
195
|
emoji: {
|
|
104
196
|
useUnicode: true
|
|
@@ -120,7 +212,6 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
120
212
|
}
|
|
121
213
|
},
|
|
122
214
|
toolbars: {
|
|
123
|
-
theme: theme.value,
|
|
124
215
|
toolbar: ["bold", "italic", "underline", "strikethrough", "|", "color", "header", "|", "list", "image", {
|
|
125
216
|
insert: ["link", "hr", "br", "code", "formula", "toc", "table", "line-table", "bar-table"]
|
|
126
217
|
}, "settings", "togglePreview"],
|
|
@@ -132,14 +223,33 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
132
223
|
callback: {
|
|
133
224
|
afterChange,
|
|
134
225
|
beforeImageMounted
|
|
226
|
+
},
|
|
227
|
+
engine: {
|
|
228
|
+
syntax: {
|
|
229
|
+
table: {
|
|
230
|
+
enableChart: false,
|
|
231
|
+
externals: ["echarts"]
|
|
232
|
+
}
|
|
233
|
+
}
|
|
135
234
|
}
|
|
136
235
|
});
|
|
236
|
+
editor.setTheme(theme.value);
|
|
237
|
+
if (customTheme) {
|
|
238
|
+
editor.setTheme(customTheme);
|
|
239
|
+
editor.setCodeBlockTheme(customTheme);
|
|
240
|
+
}
|
|
241
|
+
const span = createElement("span", "".concat(fullscreenClassName, " cherry-toolbar-button"));
|
|
242
|
+
span.title = ibiz.i18n.t("editor.markdown.fullscreen");
|
|
243
|
+
span.onclick = onSwitchFullscreen;
|
|
244
|
+
span.appendChild(createCherryIcon("fullscreen"));
|
|
245
|
+
const parentElement = props.disabled ? editor.editor.options.editorDom.parentElement : (_a2 = editor.editor.options.editorDom.parentElement) == null ? void 0 : _a2.querySelector(".cherry-toolbar>.toolbar-right");
|
|
246
|
+
parentElement == null ? void 0 : parentElement.appendChild(span);
|
|
137
247
|
});
|
|
138
248
|
};
|
|
139
249
|
vue.watch(() => UIStore.theme, (newVal) => {
|
|
140
|
-
|
|
141
|
-
theme.value
|
|
142
|
-
|
|
250
|
+
theme.value = customTheme || newVal;
|
|
251
|
+
editor == null ? void 0 : editor.setTheme(theme.value);
|
|
252
|
+
editor == null ? void 0 : editor.setCodeBlockTheme(theme.value);
|
|
143
253
|
});
|
|
144
254
|
const calcMarkDownStyle = () => {
|
|
145
255
|
if (window.ResizeObserver && markDownBox.value) {
|
|
@@ -171,11 +281,17 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
171
281
|
}
|
|
172
282
|
};
|
|
173
283
|
vue.onMounted(() => {
|
|
284
|
+
var _a2;
|
|
174
285
|
editorInit();
|
|
175
286
|
calcMarkDownStyle();
|
|
287
|
+
(_a2 = markDownBox.value) == null ? void 0 : _a2.addEventListener("keydown", handleKeyDown.bind(this));
|
|
288
|
+
});
|
|
289
|
+
vue.onBeforeUnmount(() => {
|
|
290
|
+
var _a2;
|
|
291
|
+
(_a2 = markDownBox.value) == null ? void 0 : _a2.removeEventListener("keydown", handleKeyDown.bind(this));
|
|
176
292
|
});
|
|
177
293
|
vue.onUnmounted(() => {
|
|
178
|
-
editor
|
|
294
|
+
editor = null;
|
|
179
295
|
if (resizeObserver) {
|
|
180
296
|
resizeObserver.disconnect();
|
|
181
297
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-markdown .ibiz-markdown-cherry{--ibiz-markdown-width:100%;width:var(--ibiz-markdown-width)}.ibiz-markdown .ibiz-markdown-cherry .cherry{width:100%}.ibiz-markdown.is-disabled .cherry{min-height:auto}.ibiz-markdown .cherry-preview--full{border-left:none}.ibiz-markdown .theme__dark,.ibiz-markdown .theme__light{color:var(--ibiz-form-item-text-color)}.ibiz-markdown .cherry-markdown h1 a::before,.ibiz-markdown .cherry-markdown h2 a::before,.ibiz-markdown .cherry-markdown h3 a::before,.ibiz-markdown .cherry-markdown h4 a::before,.ibiz-markdown .cherry-markdown h5 a::before,.ibiz-markdown .cherry-markdown h6 a::before{display:none}
|
|
1
|
+
.ibiz-markdown .ibiz-markdown-cherry{--ibiz-markdown-width:100%;width:var(--ibiz-markdown-width)}.ibiz-markdown .ibiz-markdown-cherry .cherry{width:100%}.ibiz-markdown.is-disabled .cherry{min-height:auto}.ibiz-markdown.is-disabled .ibiz-markdown__fullscreen{position:absolute;top:8px;right:12px;z-index:98;font-size:var(--ibiz-font-size-regular);line-height:2.8}.ibiz-markdown.is-disabled .theme__dark .ibiz-markdown__fullscreen{color:var(--ibiz-color-text-0)}.ibiz-markdown.is-disabled .theme__dark .ibiz-markdown__fullscreen:hover{background-color:var(--ibiz-color-bg-3)}.ibiz-markdown .cherry-preview--full{border-left:none}.ibiz-markdown .theme__dark,.ibiz-markdown .theme__light{color:var(--ibiz-form-item-text-color)}.ibiz-markdown .cherry-markdown h1 a::before,.ibiz-markdown .cherry-markdown h2 a::before,.ibiz-markdown .cherry-markdown h3 a::before,.ibiz-markdown .cherry-markdown h4 a::before,.ibiz-markdown .cherry-markdown h5 a::before,.ibiz-markdown .cherry-markdown h6 a::before{display:none}
|
|
@@ -11,15 +11,28 @@ const NotSupportedEditor = /* @__PURE__ */ vue.defineComponent({
|
|
|
11
11
|
modelData: {
|
|
12
12
|
type: Object,
|
|
13
13
|
required: true
|
|
14
|
+
},
|
|
15
|
+
context: {
|
|
16
|
+
type: Object
|
|
14
17
|
}
|
|
15
18
|
},
|
|
16
|
-
setup() {
|
|
19
|
+
setup(props) {
|
|
20
|
+
var _a;
|
|
17
21
|
const ns = vue3Util.useNamespace("not-supported-editor");
|
|
22
|
+
const isDesignPreview = ((_a = props.context) == null ? void 0 : _a.srfrunmode) === "DESIGN";
|
|
18
23
|
return {
|
|
19
|
-
ns
|
|
24
|
+
ns,
|
|
25
|
+
isDesignPreview
|
|
20
26
|
};
|
|
21
27
|
},
|
|
22
28
|
render() {
|
|
29
|
+
if (this.isDesignPreview) {
|
|
30
|
+
return vue.createVNode("div", {
|
|
31
|
+
"class": this.ns.b()
|
|
32
|
+
}, [vue.createVNode("div", {
|
|
33
|
+
"class": this.ns.b("preview-content")
|
|
34
|
+
}, null)]);
|
|
35
|
+
}
|
|
23
36
|
return vue.createVNode("div", {
|
|
24
37
|
"class": this.ns.b()
|
|
25
38
|
}, [ibiz.i18n.t("editor.notSupportedEditor.unsupportedType", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-not-supported-editor{color:var(--ibiz-color-danger)}
|
|
1
|
+
.ibiz-not-supported-editor{color:var(--ibiz-color-danger)}.ibiz-not-supported-editor-preview-content{height:var(--el-component-size);color:var(--el-disabled-text-color);background-color:var(--el-disabled-bg-color);border-radius:var(--el-border-radius-base);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}
|
|
@@ -98,7 +98,9 @@ const IBizRadio = /* @__PURE__ */ vue.defineComponent({
|
|
|
98
98
|
"label": qxUtil.notNilEmpty(_item.value) ? String(_item.value) : "",
|
|
99
99
|
"disabled": this.disabled || _item.disableSelect === true
|
|
100
100
|
}, {
|
|
101
|
-
default: () => [vue.createVNode("
|
|
101
|
+
default: () => [_item.sysImage && vue.createVNode(vue.resolveComponent("iBizIcon"), {
|
|
102
|
+
"icon": _item.sysImage
|
|
103
|
+
}, null), vue.createVNode("span", {
|
|
102
104
|
"class": this.ns.e("text")
|
|
103
105
|
}, [_item.text])]
|
|
104
106
|
}) : vue.createVNode(vue.resolveComponent("el-radio-button"), {
|
|
@@ -107,7 +109,9 @@ const IBizRadio = /* @__PURE__ */ vue.defineComponent({
|
|
|
107
109
|
"label": qxUtil.notNilEmpty(_item.value) ? String(_item.value) : "",
|
|
108
110
|
"disabled": this.disabled || _item.disableSelect === true
|
|
109
111
|
}, {
|
|
110
|
-
default: () => [vue.createVNode("
|
|
112
|
+
default: () => [_item.sysImage && vue.createVNode(vue.resolveComponent("iBizIcon"), {
|
|
113
|
+
"icon": _item.sysImage
|
|
114
|
+
}, null), vue.createVNode("span", {
|
|
111
115
|
"class": this.ns.em("button", "text")
|
|
112
116
|
}, [_item.text])]
|
|
113
117
|
}))) ? _slot : {
|
|
@@ -126,7 +130,9 @@ const IBizRadio = /* @__PURE__ */ vue.defineComponent({
|
|
|
126
130
|
}
|
|
127
131
|
this.onSelectValueChange(value);
|
|
128
132
|
}
|
|
129
|
-
}, [_item.
|
|
133
|
+
}, [_item.sysImage && vue.createVNode(vue.resolveComponent("iBizIcon"), {
|
|
134
|
+
"icon": _item.sysImage
|
|
135
|
+
}, null), _item.text || ""]);
|
|
130
136
|
})])]);
|
|
131
137
|
}
|
|
132
138
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-radio{--ibiz-radio-group-row-number:0}.ibiz-radio__text{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color)}.ibiz-radio--readonly{font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-readonly-color)}.ibiz-radio__button--round-corner{margin-right:var(--ibiz-spacing-base-loose)}.ibiz-radio__button--round-corner.el-radio-button.is-active .el-radio-button__inner{color:var(--ibiz-color-primary);background-color:var(--ibiz-color-secondary-light-default);border-color:var(--ibiz-color-secondary-light-default)}.ibiz-radio__button--round-corner.el-radio-button.is-active .el-radio-button__original-radio:checked+.el-radio-button__inner{box-shadow:none}.ibiz-radio__button--round-corner.el-radio-button .el-radio-button__inner{padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);background-color:var(--ibiz-color-tertiary-light-hover);border-color:var(--ibiz-color-tertiary-light-hover);border-radius:var(--ibiz-height-control-default)}.ibiz-radio__button--round-corner.el-radio-button .el-radio-button__inner:nth-last-child(1){margin:0}.ibiz-radio__button--round-corner.el-radio-button.is-disabled.is-active .el-radio-button__inner{border:var(--ibiz-border-thickness-control) solid var(--ibiz-color-disabled-text)}.ibiz-radio__button--round-corner.el-radio-button.is-disabled .el-radio-button__inner{color:var(--ibiz-color-disabled-text);background:var(--ibiz-color-disabled-bg);border-color:var(--ibiz-color-disabled-border)}.ibiz-radio.is-grid-layout .el-radio-group{display:grid;grid-template-columns:repeat(var(--ibiz-radio-group-row-number),1fr)}.ibiz-form-item .ibiz-radio.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}.ibiz-radio-tab{height:100%;overflow-x:auto;white-space:nowrap}.ibiz-radio-tab-item{position:relative;display:inline-block;height:100%;padding:var(--ibiz-spacing-base-tight);font-size:var(--ibiz-font-size-regular);cursor:pointer}.ibiz-radio-tab-item:hover{color:var(--ibiz-color-primary)}.ibiz-radio-tab-item.is-selected::after{position:absolute;bottom:2px;left:var(--ibiz-spacing-base-tight);width:calc(100% - 2 * var(--ibiz-spacing-base-tight));height:2px;content:"";background-color:var(--ibiz-color-primary)}.ibiz-radio-tab-item.is-disabled{color:var(--ibiz-color-disabled-text);cursor:not-allowed}.ibiz-radio-tab-item.is-disabled::after{background-color:var(--ibiz-color-disabled-text)}
|
|
1
|
+
.ibiz-radio{--ibiz-radio-group-row-number:0}.ibiz-radio .el-radio__label{display:flex;align-items:center}.ibiz-radio .el-radio__label .ibiz-icon{display:flex;margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-radio__text{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color)}.ibiz-radio--readonly{font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-readonly-color)}.ibiz-radio__button--round-corner{margin-right:var(--ibiz-spacing-base-loose)}.ibiz-radio__button--round-corner.el-radio-button.is-active .el-radio-button__inner{color:var(--ibiz-color-primary);background-color:var(--ibiz-color-secondary-light-default);border-color:var(--ibiz-color-secondary-light-default)}.ibiz-radio__button--round-corner.el-radio-button.is-active .el-radio-button__original-radio:checked+.el-radio-button__inner{box-shadow:none}.ibiz-radio__button--round-corner.el-radio-button .el-radio-button__inner{padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);background-color:var(--ibiz-color-tertiary-light-hover);border-color:var(--ibiz-color-tertiary-light-hover);border-radius:var(--ibiz-height-control-default)}.ibiz-radio__button--round-corner.el-radio-button .el-radio-button__inner:nth-last-child(1){margin:0}.ibiz-radio__button--round-corner.el-radio-button.is-disabled.is-active .el-radio-button__inner{border:var(--ibiz-border-thickness-control) solid var(--ibiz-color-disabled-text)}.ibiz-radio__button--round-corner.el-radio-button.is-disabled .el-radio-button__inner{color:var(--ibiz-color-disabled-text);background:var(--ibiz-color-disabled-bg);border-color:var(--ibiz-color-disabled-border)}.ibiz-radio__button .el-radio-button__inner{display:flex;align-items:center}.ibiz-radio__button .el-radio-button__inner .ibiz-icon{display:flex;margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-radio.is-grid-layout .el-radio-group{display:grid;grid-template-columns:repeat(var(--ibiz-radio-group-row-number),1fr)}.ibiz-form-item .ibiz-radio.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}.ibiz-radio-tab{display:flex;height:100%;overflow-x:auto;white-space:nowrap}.ibiz-radio-tab-item{position:relative;display:inline-block;display:flex;align-items:center;width:auto;height:100%;padding:var(--ibiz-spacing-base-tight);font-size:var(--ibiz-font-size-regular);cursor:pointer}.ibiz-radio-tab-item:hover{color:var(--ibiz-color-primary)}.ibiz-radio-tab-item .ibiz-icon{display:flex;margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-radio-tab-item.is-selected::after{position:absolute;bottom:2px;left:var(--ibiz-spacing-base-tight);width:calc(100% - 2 * var(--ibiz-spacing-base-tight));height:2px;content:"";background-color:var(--ibiz-color-primary)}.ibiz-radio-tab-item.is-disabled{color:var(--ibiz-color-disabled-text);cursor:not-allowed}.ibiz-radio-tab-item.is-disabled::after{background-color:var(--ibiz-color-disabled-text)}
|
|
@@ -14,6 +14,9 @@ const IBizRaw = /* @__PURE__ */ vue.defineComponent({
|
|
|
14
14
|
const c = props.controller;
|
|
15
15
|
const editorModel = c.model;
|
|
16
16
|
const content = vue.ref("");
|
|
17
|
+
const enableOverFlow = vue.computed(() => {
|
|
18
|
+
return !!c.model.editorHeight;
|
|
19
|
+
});
|
|
17
20
|
let type = "TEXT";
|
|
18
21
|
let template = "";
|
|
19
22
|
if (editorModel.contentType) {
|
|
@@ -66,12 +69,13 @@ const IBizRaw = /* @__PURE__ */ vue.defineComponent({
|
|
|
66
69
|
content,
|
|
67
70
|
type,
|
|
68
71
|
template,
|
|
72
|
+
enableOverFlow,
|
|
69
73
|
showFormDefaultContent
|
|
70
74
|
};
|
|
71
75
|
},
|
|
72
76
|
render() {
|
|
73
77
|
return vue.createVNode("div", {
|
|
74
|
-
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)]
|
|
78
|
+
"class": [this.ns.b(), this.ns.is("overflow", this.enableOverFlow), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)]
|
|
75
79
|
}, [this.content && vue.createVNode(vue.resolveComponent("iBizRawItem"), {
|
|
76
80
|
"class": this.ns.b("content"),
|
|
77
81
|
"content": this.content,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-raw{line-height:var(--ibiz-form-item-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-form-item .ibiz-raw.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}
|
|
1
|
+
.ibiz-raw{line-height:var(--ibiz-form-item-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-raw.is-overflow .ibiz-rawitem{overflow-y:auto}.ibiz-form-item .ibiz-raw.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var lodashEs = require('lodash-es');
|
|
5
5
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
6
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
7
|
var core = require('@ibiz-template/core');
|
|
7
8
|
var qxUtil = require('qx-util');
|
|
9
|
+
require('../../../util/index.cjs');
|
|
8
10
|
require('./input.css');
|
|
11
|
+
var aiUtil = require('../../../util/ai-util/ai-util.cjs');
|
|
9
12
|
|
|
10
13
|
"use strict";
|
|
11
14
|
function _isSlot(s) {
|
|
@@ -40,11 +43,14 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
43
|
const type = vue.computed(() => {
|
|
41
44
|
switch (editorModel.editorType) {
|
|
42
45
|
case "TEXTBOX":
|
|
46
|
+
case "MOBTEXT":
|
|
43
47
|
return "text";
|
|
44
48
|
case "PASSWORD":
|
|
49
|
+
case "MOBPASSWORD":
|
|
45
50
|
return "password";
|
|
46
51
|
case "TEXTAREA":
|
|
47
52
|
case "TEXTAREA_10":
|
|
53
|
+
case "MOBTEXTAREA":
|
|
48
54
|
return "textarea";
|
|
49
55
|
default:
|
|
50
56
|
return "string";
|
|
@@ -159,82 +165,209 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
159
165
|
};
|
|
160
166
|
let chatInstance;
|
|
161
167
|
const onClick = async () => {
|
|
162
|
-
|
|
163
|
-
if (c.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
168
|
+
const appDataEntityId = c.model.appDataEntityId;
|
|
169
|
+
if (!appDataEntityId || !c.deACMode)
|
|
170
|
+
return;
|
|
171
|
+
const {
|
|
172
|
+
contentToolbarItems,
|
|
173
|
+
footerToolbarItems,
|
|
174
|
+
questionToolbarItems,
|
|
175
|
+
otherToolbarItems
|
|
176
|
+
} = aiUtil.calcAiToolbarItemsByAc(c.deACMode);
|
|
177
|
+
const {
|
|
178
|
+
zIndex
|
|
179
|
+
} = vue3Util.useUIStore();
|
|
180
|
+
const containerZIndex = zIndex.increment();
|
|
181
|
+
const module = await import('@ibiz-template-plugin/ai-chat');
|
|
182
|
+
chatInstance = module.chat || module.default.chat;
|
|
183
|
+
let id = "";
|
|
184
|
+
let abortController;
|
|
185
|
+
chatInstance.create({
|
|
186
|
+
containerOptions: {
|
|
187
|
+
zIndex: containerZIndex
|
|
188
|
+
},
|
|
189
|
+
chatOptions: {
|
|
190
|
+
caption: c.deACMode.logicName,
|
|
191
|
+
context: {
|
|
192
|
+
...c.context
|
|
193
|
+
},
|
|
194
|
+
params: {
|
|
195
|
+
...c.params,
|
|
196
|
+
srfactag: c.deACMode.codeName
|
|
197
|
+
},
|
|
198
|
+
// 编辑器参数srfaiappendcurdata,是否传入对象参数,用于历史查询传参
|
|
199
|
+
appendCurData: c.editorParams.srfaiappendcurdata === "true" ? props.data : void 0,
|
|
200
|
+
// 编辑器参数srfaiappendcurcontent,传入编辑内容作为用户消息,获取历史数据后附加
|
|
201
|
+
appendCurContent: c.editorParams.srfaiappendcurcontent ? core.StringUtil.fill(c.editorParams.srfaiappendcurcontent, c.context, c.params, props.data) : void 0,
|
|
202
|
+
appDataEntityId,
|
|
203
|
+
contentToolbarItems,
|
|
204
|
+
footerToolbarItems,
|
|
205
|
+
questionToolbarItems,
|
|
206
|
+
otherToolbarItems,
|
|
207
|
+
question: async (aiChat, ctx, param, other, arr) => {
|
|
208
|
+
id = qxUtil.createUUID();
|
|
209
|
+
abortController = new AbortController();
|
|
210
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
211
|
+
try {
|
|
212
|
+
await deService.aiChatSse((msg) => {
|
|
213
|
+
if (msg.actionstate === 20 && msg.actionresult) {
|
|
214
|
+
aiChat.addMessage({
|
|
186
215
|
messageid: id,
|
|
187
216
|
state: msg.actionstate,
|
|
188
217
|
type: "DEFAULT",
|
|
189
218
|
role: "ASSISTANT",
|
|
190
|
-
content:
|
|
219
|
+
content: msg.actionresult
|
|
220
|
+
});
|
|
221
|
+
} else if (msg.actionstate === 30 && msg.actionresult) {
|
|
222
|
+
const result = JSON.parse(msg.actionresult);
|
|
223
|
+
const choices = result.choices;
|
|
224
|
+
if (choices && choices.length > 0) {
|
|
225
|
+
aiChat.replaceMessage({
|
|
226
|
+
messageid: id,
|
|
227
|
+
state: msg.actionstate,
|
|
228
|
+
type: "DEFAULT",
|
|
229
|
+
role: "ASSISTANT",
|
|
230
|
+
content: choices[0].content || ""
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
} else if (msg.actionstate === 40) {
|
|
234
|
+
aiChat.replaceMessage({
|
|
235
|
+
messageid: id,
|
|
236
|
+
state: msg.actionstate,
|
|
237
|
+
type: "ERROR",
|
|
238
|
+
role: "ASSISTANT",
|
|
239
|
+
content: msg.actionresult
|
|
191
240
|
});
|
|
192
241
|
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
242
|
+
}, abortController, ctx, param, {
|
|
243
|
+
messages: arr
|
|
244
|
+
});
|
|
245
|
+
} catch (error) {
|
|
246
|
+
aiChat.replaceMessage({
|
|
247
|
+
messageid: id,
|
|
248
|
+
state: 40,
|
|
249
|
+
type: "ERROR",
|
|
250
|
+
role: "ASSISTANT",
|
|
251
|
+
content: error.message || ibiz.i18n.t("app.aiError")
|
|
252
|
+
});
|
|
253
|
+
abortController == null ? void 0 : abortController.abort();
|
|
254
|
+
} finally {
|
|
255
|
+
aiChat.completeMessage(id, true);
|
|
256
|
+
return true;
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
abortQuestion: async (aiChat) => {
|
|
260
|
+
abortController == null ? void 0 : abortController.abort();
|
|
261
|
+
await aiChat.stopMessage({
|
|
208
262
|
messageid: id,
|
|
209
|
-
state:
|
|
263
|
+
state: 30,
|
|
210
264
|
type: "DEFAULT",
|
|
211
265
|
role: "ASSISTANT",
|
|
212
266
|
content: ""
|
|
213
267
|
});
|
|
214
|
-
|
|
268
|
+
await aiChat.completeMessage(id, true);
|
|
215
269
|
},
|
|
216
270
|
action: (action, message) => {
|
|
217
271
|
if (action === "backfill") {
|
|
218
|
-
handleChange(message.
|
|
272
|
+
handleChange(message.realcontent || "");
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
history: async (ctx, param, other) => {
|
|
276
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
277
|
+
const historyData = other.appendCurData ? other.appendCurData : {};
|
|
278
|
+
const result = await deService.aiChatHistory(ctx, param, historyData);
|
|
279
|
+
if (result.data && Array.isArray(result.data)) {
|
|
280
|
+
let preMsg;
|
|
281
|
+
result.data.forEach((item) => {
|
|
282
|
+
if (item.role === "TOOL") {
|
|
283
|
+
if (preMsg && item.content) {
|
|
284
|
+
chatInstance.aiChat.updateRecommendPrompt(preMsg, item.content);
|
|
285
|
+
}
|
|
286
|
+
} else {
|
|
287
|
+
const msg = {
|
|
288
|
+
messageid: qxUtil.createUUID(),
|
|
289
|
+
state: 30,
|
|
290
|
+
type: "DEFAULT",
|
|
291
|
+
role: item.role,
|
|
292
|
+
content: item.content,
|
|
293
|
+
completed: true
|
|
294
|
+
};
|
|
295
|
+
preMsg = msg;
|
|
296
|
+
chatInstance.aiChat.addMessage(msg);
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
return true;
|
|
301
|
+
},
|
|
302
|
+
recommendPrompt: async (ctx, param, other) => {
|
|
303
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
304
|
+
const result = await deService.aiChatRecommendPrompt(ctx, param, other.message);
|
|
305
|
+
if (result.ok && result.data) {
|
|
306
|
+
const choices = result.data.choices;
|
|
307
|
+
if (choices && choices.length > 0) {
|
|
308
|
+
return choices[0];
|
|
309
|
+
}
|
|
310
|
+
return null;
|
|
219
311
|
}
|
|
312
|
+
return null;
|
|
313
|
+
},
|
|
314
|
+
uploader: {
|
|
315
|
+
onUpload: async (file, reportProgress, options) => {
|
|
316
|
+
const fileMeata = ibiz.util.file.calcFileUpDownUrl((options == null ? void 0 : options.context) || c.context, (options == null ? void 0 : options.params) || c.params, {});
|
|
317
|
+
const uploadHeaders = {};
|
|
318
|
+
const token = core.getAppCookie(core.CoreConst.TOKEN);
|
|
319
|
+
if (token) {
|
|
320
|
+
Object.assign(uploadHeaders, {
|
|
321
|
+
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(token)
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
const formData = new FormData();
|
|
325
|
+
formData.append("file", file);
|
|
326
|
+
const res = await ibiz.net.axios({
|
|
327
|
+
url: fileMeata.uploadUrl,
|
|
328
|
+
method: "post",
|
|
329
|
+
headers: uploadHeaders,
|
|
330
|
+
data: formData,
|
|
331
|
+
onUploadProgress: (progressEvent) => {
|
|
332
|
+
const percent = progressEvent.loaded / progressEvent.total * 100;
|
|
333
|
+
reportProgress(percent);
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
return res.data;
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
extendToolbarClick: async (event, source, context, params, data) => {
|
|
340
|
+
var _a, _b;
|
|
341
|
+
const result = await runtime.UIActionUtil.exec(source.id, {
|
|
342
|
+
view: c.view,
|
|
343
|
+
ctrl: c.ctrl,
|
|
344
|
+
context: core.IBizContext.create(context),
|
|
345
|
+
params,
|
|
346
|
+
data: [data],
|
|
347
|
+
event
|
|
348
|
+
}, source.appId);
|
|
349
|
+
if (result.closeView) {
|
|
350
|
+
c.view.closeView({
|
|
351
|
+
ok: true
|
|
352
|
+
});
|
|
353
|
+
} else if (result.refresh) {
|
|
354
|
+
switch (result.refreshMode) {
|
|
355
|
+
case 1:
|
|
356
|
+
c.view.callUIAction(runtime.SysUIActionTag.REFRESH);
|
|
357
|
+
break;
|
|
358
|
+
case 2:
|
|
359
|
+
(_a = c.view.parentView) == null ? void 0 : _a.callUIAction(runtime.SysUIActionTag.REFRESH);
|
|
360
|
+
break;
|
|
361
|
+
case 3:
|
|
362
|
+
(_b = c.view.getTopView()) == null ? void 0 : _b.callUIAction(runtime.SysUIActionTag.REFRESH);
|
|
363
|
+
break;
|
|
364
|
+
default:
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
return result;
|
|
220
368
|
}
|
|
221
|
-
});
|
|
222
|
-
const res = await ((_b = c.deService) == null ? void 0 : _b.aiChatHistory(c.context, {
|
|
223
|
-
srfactag: (_a = c.deACMode) == null ? void 0 : _a.codeName
|
|
224
|
-
}));
|
|
225
|
-
if (res.data && Array.isArray(res.data)) {
|
|
226
|
-
res.data.forEach((item) => {
|
|
227
|
-
const msg = {
|
|
228
|
-
messageid: qxUtil.createUUID(),
|
|
229
|
-
state: 30,
|
|
230
|
-
type: "DEFAULT",
|
|
231
|
-
role: item.role,
|
|
232
|
-
content: item.content
|
|
233
|
-
};
|
|
234
|
-
aiChat.addMessage(msg);
|
|
235
|
-
});
|
|
236
369
|
}
|
|
237
|
-
}
|
|
370
|
+
});
|
|
238
371
|
};
|
|
239
372
|
vue.onUnmounted(() => {
|
|
240
373
|
if (chatInstance) {
|
|
@@ -94,7 +94,7 @@ class TextBoxEditorController extends runtime.CodeListEditorController {
|
|
|
94
94
|
async onInit() {
|
|
95
95
|
await super.onInit();
|
|
96
96
|
this.precision = this.editorParams.precision ? lodashEs.toNumber(this.editorParams.precision) : this.model.precision;
|
|
97
|
-
if (this.model.editorType === "TEXTAREA" || this.model.editorType === "TEXTAREA_10") {
|
|
97
|
+
if (this.model.editorType === "TEXTAREA" || this.model.editorType === "TEXTAREA_10" || this.model.editorType === "MOBTEXTAREA") {
|
|
98
98
|
const model = this.model;
|
|
99
99
|
if (model.appDEACModeId) {
|
|
100
100
|
this.deACMode = await runtime.getDeACMode(
|
|
@@ -125,7 +125,7 @@ class TextBoxEditorController extends runtime.CodeListEditorController {
|
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
if (this.deACMode.actype === "CHATCOMPLETION") {
|
|
128
|
+
if (this.deACMode.actype === "CHATCOMPLETION" && ibiz.env.enableAI) {
|
|
129
129
|
this.deService = await ibiz.hub.getApp(model.appId).deService.getService(this.context, model.appDataEntityId);
|
|
130
130
|
this.chatCompletion = true;
|
|
131
131
|
}
|