@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
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
var qxUtil = require('qx-util');
|
|
5
|
+
var core = require('@ibiz-template/core');
|
|
6
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
|
+
var aiUtil = require('../ai-util/ai-util.cjs');
|
|
8
|
+
|
|
3
9
|
"use strict";
|
|
4
10
|
class AppUtil {
|
|
5
11
|
/**
|
|
@@ -150,6 +156,281 @@ class AppUtil {
|
|
|
150
156
|
}
|
|
151
157
|
return true;
|
|
152
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* 打开AI聊天
|
|
161
|
+
*
|
|
162
|
+
* @param {IAiChatParam} chartParams
|
|
163
|
+
* @return {*} {Promise<IChatMessage[]>}
|
|
164
|
+
* @memberof AppUtil
|
|
165
|
+
*/
|
|
166
|
+
async openAiChat(chartParams) {
|
|
167
|
+
const {
|
|
168
|
+
data,
|
|
169
|
+
view,
|
|
170
|
+
ctrl,
|
|
171
|
+
params,
|
|
172
|
+
context,
|
|
173
|
+
appDEACModeId,
|
|
174
|
+
appDataEntityId
|
|
175
|
+
} = chartParams;
|
|
176
|
+
const deACMode = await runtime.getDeACMode(
|
|
177
|
+
appDEACModeId,
|
|
178
|
+
appDataEntityId,
|
|
179
|
+
context.srfappid
|
|
180
|
+
);
|
|
181
|
+
if (!deACMode)
|
|
182
|
+
return Promise.resolve([]);
|
|
183
|
+
const {
|
|
184
|
+
contentToolbarItems,
|
|
185
|
+
footerToolbarItems,
|
|
186
|
+
questionToolbarItems,
|
|
187
|
+
otherToolbarItems
|
|
188
|
+
} = aiUtil.calcAiToolbarItemsByAc(deACMode);
|
|
189
|
+
const module = await import('@ibiz-template-plugin/ai-chat');
|
|
190
|
+
const chatInstance = module.chat || module.default.chat;
|
|
191
|
+
const messages = [];
|
|
192
|
+
const appDataEntityName = runtime.calcDeCodeNameById(appDataEntityId);
|
|
193
|
+
let topicId = "".concat(context.srfsystemid, "_").concat(context.srfappid, "_").concat(appDataEntityId, "_").concat(appDEACModeId, "_");
|
|
194
|
+
topicId += context[appDataEntityName] ? context[appDataEntityName] : qxUtil.createUUID();
|
|
195
|
+
const caption = "[".concat(deACMode.logicName, "]").concat((data == null ? void 0 : data.srfmajortext) || "");
|
|
196
|
+
const tempParams = { ...params, ...{ srfactag: deACMode.codeName } };
|
|
197
|
+
const { zIndex } = vue3Util.useUIStore();
|
|
198
|
+
const containerZIndex = zIndex.increment();
|
|
199
|
+
return new Promise((resolve) => {
|
|
200
|
+
let id = "";
|
|
201
|
+
let abortController;
|
|
202
|
+
chatInstance.create({
|
|
203
|
+
mode: "TOPIC",
|
|
204
|
+
containerOptions: {
|
|
205
|
+
zIndex: containerZIndex,
|
|
206
|
+
enableBackFill: false
|
|
207
|
+
},
|
|
208
|
+
topicOptions: {
|
|
209
|
+
appid: ibiz.env.appId,
|
|
210
|
+
id: topicId,
|
|
211
|
+
caption,
|
|
212
|
+
url: window.location.hash.substring(1),
|
|
213
|
+
type: context.srftopicpath || "default",
|
|
214
|
+
beforeDelete: async (...args) => {
|
|
215
|
+
const isBatchRemove = args[4];
|
|
216
|
+
const result = await ibiz.confirm.warning({
|
|
217
|
+
title: ibiz.i18n.t(
|
|
218
|
+
"util.appUtil.".concat(isBatchRemove ? "clearTopic" : "aiTitle")
|
|
219
|
+
),
|
|
220
|
+
desc: ibiz.i18n.t(
|
|
221
|
+
"util.appUtil.".concat(isBatchRemove ? "clearTopicDesc" : "aiDesc")
|
|
222
|
+
)
|
|
223
|
+
});
|
|
224
|
+
return result;
|
|
225
|
+
},
|
|
226
|
+
action: async (action, context2, params2, data2, event) => {
|
|
227
|
+
if (action === "LINK") {
|
|
228
|
+
await ibiz.openView.push(data2.url);
|
|
229
|
+
}
|
|
230
|
+
return true;
|
|
231
|
+
},
|
|
232
|
+
configService: (appid, storageType, subType) => {
|
|
233
|
+
return new runtime.ConfigService(appid, storageType, subType);
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
chatOptions: {
|
|
237
|
+
caption: deACMode.logicName,
|
|
238
|
+
context: { ...context },
|
|
239
|
+
params: tempParams,
|
|
240
|
+
// 界面行为导航上下文参数srfaiappendcurdata,是否传入对象参数,用于历史查询传参
|
|
241
|
+
appendCurData: context.srfaiappendcurdata === "true" ? data : void 0,
|
|
242
|
+
appDataEntityId,
|
|
243
|
+
contentToolbarItems,
|
|
244
|
+
footerToolbarItems,
|
|
245
|
+
questionToolbarItems,
|
|
246
|
+
otherToolbarItems,
|
|
247
|
+
question: async (aiChat, ctx, param, other, arr) => {
|
|
248
|
+
id = qxUtil.createUUID();
|
|
249
|
+
abortController = new AbortController();
|
|
250
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
251
|
+
try {
|
|
252
|
+
await deService.aiChatSse(
|
|
253
|
+
(msg) => {
|
|
254
|
+
if (msg.actionstate === 20 && msg.actionresult) {
|
|
255
|
+
aiChat.addMessage({
|
|
256
|
+
messageid: id,
|
|
257
|
+
state: msg.actionstate,
|
|
258
|
+
type: "DEFAULT",
|
|
259
|
+
role: "ASSISTANT",
|
|
260
|
+
content: msg.actionresult
|
|
261
|
+
});
|
|
262
|
+
} else if (msg.actionstate === 30 && msg.actionresult) {
|
|
263
|
+
const result = JSON.parse(msg.actionresult);
|
|
264
|
+
const choices = result.choices;
|
|
265
|
+
if (choices && choices.length > 0) {
|
|
266
|
+
aiChat.replaceMessage({
|
|
267
|
+
messageid: id,
|
|
268
|
+
state: msg.actionstate,
|
|
269
|
+
type: "DEFAULT",
|
|
270
|
+
role: "ASSISTANT",
|
|
271
|
+
content: choices[0].content || ""
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
} else if (msg.actionstate === 40) {
|
|
275
|
+
aiChat.replaceMessage({
|
|
276
|
+
messageid: id,
|
|
277
|
+
state: msg.actionstate,
|
|
278
|
+
type: "ERROR",
|
|
279
|
+
role: "ASSISTANT",
|
|
280
|
+
content: msg.actionresult
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
abortController,
|
|
285
|
+
ctx,
|
|
286
|
+
param,
|
|
287
|
+
{
|
|
288
|
+
messages: arr
|
|
289
|
+
}
|
|
290
|
+
);
|
|
291
|
+
} catch (error) {
|
|
292
|
+
aiChat.replaceMessage({
|
|
293
|
+
messageid: id,
|
|
294
|
+
state: 40,
|
|
295
|
+
type: "ERROR",
|
|
296
|
+
role: "ASSISTANT",
|
|
297
|
+
content: error.message || ibiz.i18n.t("app.aiError")
|
|
298
|
+
});
|
|
299
|
+
abortController == null ? void 0 : abortController.abort();
|
|
300
|
+
} finally {
|
|
301
|
+
aiChat.completeMessage(id, true);
|
|
302
|
+
return true;
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
abortQuestion: async (aiChat) => {
|
|
306
|
+
abortController == null ? void 0 : abortController.abort();
|
|
307
|
+
await aiChat.stopMessage({
|
|
308
|
+
messageid: id,
|
|
309
|
+
state: 30,
|
|
310
|
+
type: "DEFAULT",
|
|
311
|
+
role: "ASSISTANT",
|
|
312
|
+
content: ""
|
|
313
|
+
});
|
|
314
|
+
await aiChat.completeMessage(id, true);
|
|
315
|
+
},
|
|
316
|
+
closed: () => {
|
|
317
|
+
resolve(messages);
|
|
318
|
+
},
|
|
319
|
+
history: async (ctx, param, other) => {
|
|
320
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
321
|
+
const historyData = other.appendCurData ? other.appendCurData : {};
|
|
322
|
+
const result = await deService.aiChatHistory(
|
|
323
|
+
ctx,
|
|
324
|
+
param,
|
|
325
|
+
historyData
|
|
326
|
+
);
|
|
327
|
+
if (result.data && Array.isArray(result.data)) {
|
|
328
|
+
let preMsg;
|
|
329
|
+
result.data.forEach((item) => {
|
|
330
|
+
if (item.role === "TOOL") {
|
|
331
|
+
if (preMsg && item.content) {
|
|
332
|
+
chatInstance.aiChat.updateRecommendPrompt(
|
|
333
|
+
preMsg,
|
|
334
|
+
item.content
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
} else {
|
|
338
|
+
const msg = {
|
|
339
|
+
messageid: qxUtil.createUUID(),
|
|
340
|
+
state: 30,
|
|
341
|
+
type: "DEFAULT",
|
|
342
|
+
role: item.role,
|
|
343
|
+
content: item.content,
|
|
344
|
+
completed: true
|
|
345
|
+
};
|
|
346
|
+
preMsg = msg;
|
|
347
|
+
chatInstance.aiChat.addMessage(msg);
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
return true;
|
|
352
|
+
},
|
|
353
|
+
recommendPrompt: async (ctx, param, other) => {
|
|
354
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
355
|
+
const result = await deService.aiChatRecommendPrompt(
|
|
356
|
+
ctx,
|
|
357
|
+
param,
|
|
358
|
+
other.message
|
|
359
|
+
);
|
|
360
|
+
if (result.ok && result.data) {
|
|
361
|
+
const choices = result.data.choices;
|
|
362
|
+
if (choices && choices.length > 0) {
|
|
363
|
+
return choices[0];
|
|
364
|
+
}
|
|
365
|
+
return null;
|
|
366
|
+
}
|
|
367
|
+
return null;
|
|
368
|
+
},
|
|
369
|
+
uploader: {
|
|
370
|
+
onUpload: async (file, reportProgress, options) => {
|
|
371
|
+
const { uploadUrl } = ibiz.util.file.calcFileUpDownUrl(
|
|
372
|
+
(options == null ? void 0 : options.context) || context,
|
|
373
|
+
(options == null ? void 0 : options.params) || params,
|
|
374
|
+
{}
|
|
375
|
+
);
|
|
376
|
+
const headers = {};
|
|
377
|
+
const token = core.getAppCookie(core.CoreConst.TOKEN);
|
|
378
|
+
if (token) {
|
|
379
|
+
Object.assign(headers, {
|
|
380
|
+
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(token)
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
const formData = new FormData();
|
|
384
|
+
formData.append("file", file);
|
|
385
|
+
const res = await ibiz.net.axios({
|
|
386
|
+
url: uploadUrl,
|
|
387
|
+
method: "post",
|
|
388
|
+
headers,
|
|
389
|
+
data: formData,
|
|
390
|
+
onUploadProgress: (progressEvent) => {
|
|
391
|
+
const percent = progressEvent.loaded / progressEvent.total * 100;
|
|
392
|
+
reportProgress(percent);
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
return res.data;
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
extendToolbarClick: async (event, source, context2, params2, data2) => {
|
|
399
|
+
var _a, _b;
|
|
400
|
+
const result = await runtime.UIActionUtil.exec(
|
|
401
|
+
source.id,
|
|
402
|
+
{
|
|
403
|
+
view,
|
|
404
|
+
ctrl,
|
|
405
|
+
context: core.IBizContext.create(context2),
|
|
406
|
+
params: params2,
|
|
407
|
+
data: [data2],
|
|
408
|
+
event
|
|
409
|
+
},
|
|
410
|
+
source.appId
|
|
411
|
+
);
|
|
412
|
+
if (result.closeView) {
|
|
413
|
+
view.closeView({ ok: true });
|
|
414
|
+
} else if (result.refresh) {
|
|
415
|
+
switch (result.refreshMode) {
|
|
416
|
+
case 1:
|
|
417
|
+
view.callUIAction(runtime.SysUIActionTag.REFRESH);
|
|
418
|
+
break;
|
|
419
|
+
case 2:
|
|
420
|
+
(_a = view.parentView) == null ? void 0 : _a.callUIAction(runtime.SysUIActionTag.REFRESH);
|
|
421
|
+
break;
|
|
422
|
+
case 3:
|
|
423
|
+
(_b = view.getTopView()) == null ? void 0 : _b.callUIAction(runtime.SysUIActionTag.REFRESH);
|
|
424
|
+
break;
|
|
425
|
+
default:
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
return result;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
});
|
|
433
|
+
}
|
|
153
434
|
}
|
|
154
435
|
|
|
155
436
|
exports.AppUtil = AppUtil;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
function convertBtnType(buttonStyle) {
|
|
5
|
+
let buttonType = "default";
|
|
6
|
+
if (buttonStyle && ["PRIMARY", "SUCCESS", "WARNING", "DANGER", "INFO"].includes(buttonStyle))
|
|
7
|
+
buttonType = buttonStyle.toLowerCase();
|
|
8
|
+
if (buttonStyle && ["INVERSE"].includes(buttonStyle))
|
|
9
|
+
buttonType = "text";
|
|
10
|
+
return buttonType;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports.convertBtnType = convertBtnType;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var ElementPlus = require('element-plus');
|
|
5
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.
|
|
5
|
+
var namespace = require('../../node_modules/.pnpm/@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');
|
|
6
6
|
var fullscreenToolbar = require('../../common/fullscreen-toolbar/fullscreen-toolbar.cjs');
|
|
7
7
|
|
|
8
8
|
"use strict";
|
package/lib/util/index.cjs
CHANGED
|
@@ -14,6 +14,8 @@ var appUtil = require('./app-util/app-util.cjs');
|
|
|
14
14
|
var fullscreenUtil = require('./fullscreen/fullscreen-util.cjs');
|
|
15
15
|
var wangEditorUtil = require('./wang-editor-util/wang-editor-util.cjs');
|
|
16
16
|
var keydownUtil = require('./keydown-util/keydown-util.cjs');
|
|
17
|
+
var aiUtil = require('./ai-util/ai-util.cjs');
|
|
18
|
+
var buttonUtil = require('./button-util/button-util.cjs');
|
|
17
19
|
|
|
18
20
|
"use strict";
|
|
19
21
|
|
|
@@ -31,3 +33,5 @@ exports.AppUtil = appUtil.AppUtil;
|
|
|
31
33
|
exports.FullscreenUtil = fullscreenUtil.FullscreenUtil;
|
|
32
34
|
exports.parseHtml = wangEditorUtil.parseHtml;
|
|
33
35
|
exports.useFocusByEnter = keydownUtil.useFocusByEnter;
|
|
36
|
+
exports.calcAiToolbarItemsByAc = aiUtil.calcAiToolbarItemsByAc;
|
|
37
|
+
exports.convertBtnType = buttonUtil.convertBtnType;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
3
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
4
5
|
var core = require('@ibiz-template/core');
|
|
5
6
|
|
|
@@ -12,6 +13,42 @@ class OpenViewUtil {
|
|
|
12
13
|
push(path) {
|
|
13
14
|
return vue3Util.routerCallback.open(this.router, path);
|
|
14
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* 校验是否可以打开视图
|
|
18
|
+
*
|
|
19
|
+
* @author zhanghengfeng
|
|
20
|
+
* @date 2025-02-10 19:02:35
|
|
21
|
+
* @param {IViewController} topView
|
|
22
|
+
* @param {string} appViewId
|
|
23
|
+
* @param {IContext} context
|
|
24
|
+
* @param {IParams} [_params={}]
|
|
25
|
+
* @param {IOpenViewOptions} [opts={}]
|
|
26
|
+
* @return {*} {Promise<boolean>}
|
|
27
|
+
*/
|
|
28
|
+
async verify(topView, appViewId, context, _params = {}, opts = {}) {
|
|
29
|
+
if (!topView || !appViewId) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
33
|
+
if (!appView) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
const { openMode = "INDEXVIEWTAB" } = appView;
|
|
37
|
+
const viewOpenMode = opts.openMode || openMode;
|
|
38
|
+
if (viewOpenMode !== "INDEXVIEWTAB" && viewOpenMode !== "INDEXVIEWTAB_POPUP") {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
if (topView.model.id !== appView.id) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
if (topView.model.appDataEntityId && appView.appDataEntityId && topView.model.appDataEntityId === appView.appDataEntityId && context.srfkey) {
|
|
45
|
+
const deName = runtime.calcDeCodeNameById(topView.model.appDataEntityId);
|
|
46
|
+
if (topView.context[deName] === context.srfkey) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
15
52
|
async root(appViewId, context, params, modalOptions) {
|
|
16
53
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
17
54
|
const { path } = await vue3Util.generateRoutePath(
|
|
@@ -40,14 +77,15 @@ class OpenViewUtil {
|
|
|
40
77
|
/**
|
|
41
78
|
* 模态打开视图
|
|
42
79
|
*
|
|
43
|
-
* @author
|
|
44
|
-
* @date
|
|
80
|
+
* @author tony001
|
|
81
|
+
* @date 2025-03-24 17:03:17
|
|
45
82
|
* @param {string} appViewId
|
|
46
|
-
* @param {
|
|
47
|
-
* @param {
|
|
48
|
-
* @
|
|
83
|
+
* @param {IContext} context
|
|
84
|
+
* @param {IParams} [params]
|
|
85
|
+
* @param {IOverlayContainerOptions} [options={}]
|
|
86
|
+
* @return {*} {Promise<IModalData>}
|
|
49
87
|
*/
|
|
50
|
-
async modal(appViewId, context, params) {
|
|
88
|
+
async modal(appViewId, context, params, options = {}) {
|
|
51
89
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
52
90
|
const modalOption = JSON.parse(ibiz.config.common.modalOption || "{}");
|
|
53
91
|
const opts = {
|
|
@@ -61,11 +99,24 @@ class OpenViewUtil {
|
|
|
61
99
|
{
|
|
62
100
|
context,
|
|
63
101
|
params,
|
|
64
|
-
viewId: appView.id
|
|
102
|
+
viewId: appView.id,
|
|
103
|
+
ctx: options.ctx
|
|
65
104
|
},
|
|
66
105
|
opts
|
|
67
106
|
);
|
|
68
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* 气泡模式打开
|
|
110
|
+
*
|
|
111
|
+
* @author tony001
|
|
112
|
+
* @date 2025-03-24 17:03:35
|
|
113
|
+
* @param {string} appViewId
|
|
114
|
+
* @param {MouseEvent} event
|
|
115
|
+
* @param {IContext} context
|
|
116
|
+
* @param {IParams} [params]
|
|
117
|
+
* @param {(IPopoverOptions<FloatingUIConfig> & IOverlayContainerOptions)} [options={}]
|
|
118
|
+
* @return {*} {Promise<IModalData>}
|
|
119
|
+
*/
|
|
69
120
|
async popover(appViewId, event, context, params, options = {}) {
|
|
70
121
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
71
122
|
const opts = {
|
|
@@ -81,7 +132,8 @@ class OpenViewUtil {
|
|
|
81
132
|
{
|
|
82
133
|
context,
|
|
83
134
|
params,
|
|
84
|
-
viewId: appView.id
|
|
135
|
+
viewId: appView.id,
|
|
136
|
+
ctx: options.ctx
|
|
85
137
|
},
|
|
86
138
|
opts
|
|
87
139
|
);
|
|
@@ -89,14 +141,15 @@ class OpenViewUtil {
|
|
|
89
141
|
/**
|
|
90
142
|
* 抽屉打开视图
|
|
91
143
|
*
|
|
92
|
-
* @author
|
|
93
|
-
* @date
|
|
144
|
+
* @author tony001
|
|
145
|
+
* @date 2025-03-24 17:03:59
|
|
94
146
|
* @param {string} appViewId
|
|
95
|
-
* @param {
|
|
96
|
-
* @param {
|
|
97
|
-
* @
|
|
147
|
+
* @param {IContext} context
|
|
148
|
+
* @param {IParams} [params]
|
|
149
|
+
* @param {IOverlayContainerOptions} [options={}]
|
|
150
|
+
* @return {*} {Promise<IModalData>}
|
|
98
151
|
*/
|
|
99
|
-
async drawer(appViewId, context, params) {
|
|
152
|
+
async drawer(appViewId, context, params, options = {}) {
|
|
100
153
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
101
154
|
const placement = vue3Util.getDrawerPlacement(appView.openMode);
|
|
102
155
|
const drawerOption = JSON.parse(ibiz.config.common.drawerOption || "{}");
|
|
@@ -111,7 +164,8 @@ class OpenViewUtil {
|
|
|
111
164
|
{
|
|
112
165
|
context,
|
|
113
166
|
params,
|
|
114
|
-
viewId: appView.id
|
|
167
|
+
viewId: appView.id,
|
|
168
|
+
ctx: options.ctx
|
|
115
169
|
},
|
|
116
170
|
opts
|
|
117
171
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-403-view{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;width:100%;height:100%;font-size:var(--ibiz-font-size-header-6)}.ibiz-403-view .ibiz-403-view-img{width:375px}.ibiz-403-view .ibiz-403-view-text{margin-top:var(--ibiz-spacing-super-loose);display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.ibiz-403-view-text__text1{margin-bottom:var(--ibiz-spacing-base-loose)}.ibiz-403-view-text__text2 a{color:var(--ibiz-color-link);cursor:pointer}.ibiz-403-view.is-top{width:100vw;height:100vh}
|
|
1
|
+
.ibiz-403-view{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;width:100%;height:100%;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base) 0 var(--ibiz-spacing-base);font-size:var(--ibiz-font-size-header-6)}.ibiz-403-view .ibiz-403-view-img{width:375px;max-width:100%;-o-object-fit:contain;object-fit:contain;overflow:hidden}.ibiz-403-view .ibiz-403-view-text{margin-top:var(--ibiz-spacing-super-loose);display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.ibiz-403-view-text__text1{margin-bottom:var(--ibiz-spacing-base-loose)}.ibiz-403-view-text__text2 a{color:var(--ibiz-color-link);cursor:pointer}.ibiz-403-view.is-top{width:100vw;height:100vh}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-404-view{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;width:100%;height:100%;font-size:var(--ibiz-font-size-header-6)}.ibiz-404-view .ibiz-404-view-img{width:375px}.ibiz-404-view .ibiz-404-view-text{margin-top:var(--ibiz-spacing-super-loose);display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.ibiz-404-view-text__text1{margin-bottom:var(--ibiz-spacing-base-loose)}.ibiz-404-view-text__text2 a{color:var(--ibiz-color-link);cursor:pointer}.ibiz-404-view.is-top{width:100vw;height:100vh}
|
|
1
|
+
.ibiz-404-view{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;width:100%;height:100%;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base) 0 var(--ibiz-spacing-base);font-size:var(--ibiz-font-size-header-6)}.ibiz-404-view .ibiz-404-view-img{width:375px;max-width:100%;-o-object-fit:contain;object-fit:contain;overflow:hidden}.ibiz-404-view .ibiz-404-view-text{margin-top:var(--ibiz-spacing-super-loose);display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.ibiz-404-view-text__text1{margin-bottom:var(--ibiz-spacing-base-loose)}.ibiz-404-view-text__text2 a{color:var(--ibiz-color-link);cursor:pointer}.ibiz-404-view.is-top{width:100vw;height:100vh}
|
|
@@ -3,7 +3,81 @@
|
|
|
3
3
|
var runtime = require('@ibiz-template/runtime');
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __publicField = (obj, key, value) => {
|
|
9
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
+
return value;
|
|
11
|
+
};
|
|
6
12
|
class CustomViewEngine extends runtime.ViewEngineBase {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
/**
|
|
16
|
+
* 部件集合
|
|
17
|
+
*
|
|
18
|
+
* @type {IControl[]}
|
|
19
|
+
* @memberof CustomViewEngine
|
|
20
|
+
*/
|
|
21
|
+
__publicField(this, "controls", []);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 视图created生命周期执行逻辑
|
|
25
|
+
*
|
|
26
|
+
* @return {*} {Promise<void>}
|
|
27
|
+
* @memberof CustomViewEngine
|
|
28
|
+
*/
|
|
29
|
+
async onCreated() {
|
|
30
|
+
await super.onCreated();
|
|
31
|
+
this.controls = runtime.getControlsByView(this.view.model);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 视图mounted生命周期执行逻辑
|
|
35
|
+
*
|
|
36
|
+
* @return {*} {Promise<void>}
|
|
37
|
+
* @memberof CustomViewEngine
|
|
38
|
+
*/
|
|
39
|
+
async onMounted() {
|
|
40
|
+
await super.onMounted();
|
|
41
|
+
this.calcToolbarState = this.calcToolbarState.bind(this);
|
|
42
|
+
this.controls.forEach((ctrl) => {
|
|
43
|
+
const control = this.view.getController(
|
|
44
|
+
ctrl.name
|
|
45
|
+
);
|
|
46
|
+
control == null ? void 0 : control.evt.on(
|
|
47
|
+
"onLoadSuccess",
|
|
48
|
+
() => this.calcToolbarButtonState(ctrl, void 0)
|
|
49
|
+
);
|
|
50
|
+
control == null ? void 0 : control.evt.on(
|
|
51
|
+
"onSelectionChange",
|
|
52
|
+
(evt) => this.calcToolbarButtonState(ctrl, evt.data[0])
|
|
53
|
+
);
|
|
54
|
+
control == null ? void 0 : control.evt.on(
|
|
55
|
+
"onRefreshSuccess",
|
|
56
|
+
(evt) => this.calcToolbarButtonState(ctrl, evt.data[0])
|
|
57
|
+
);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 计算工具栏按钮状态
|
|
62
|
+
*
|
|
63
|
+
* @param {IMDControl} control 数据部件模型
|
|
64
|
+
* @param {(IData | undefined)} data 数据
|
|
65
|
+
* @memberof CustomViewEngine
|
|
66
|
+
*/
|
|
67
|
+
calcToolbarButtonState(control, data) {
|
|
68
|
+
const model = this.controls.find(
|
|
69
|
+
(ctrl) => {
|
|
70
|
+
var _a;
|
|
71
|
+
return ctrl.controlType === "TOOLBAR" && ((_a = ctrl.xdataControlName) == null ? void 0 : _a.toLowerCase()) === control.name;
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
if (model) {
|
|
75
|
+
const toolbar = this.view.getController(
|
|
76
|
+
model.name
|
|
77
|
+
);
|
|
78
|
+
toolbar == null ? void 0 : toolbar.calcButtonState(data, control.appDataEntityId);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
7
81
|
/**
|
|
8
82
|
* 执行视图预置界面行为能力
|
|
9
83
|
*
|
|
@@ -8,10 +8,6 @@ class EditViewEngine extends runtime.DEMainViewEngine {
|
|
|
8
8
|
get form() {
|
|
9
9
|
return this.view.getController("form");
|
|
10
10
|
}
|
|
11
|
-
get coopPos() {
|
|
12
|
-
var _a;
|
|
13
|
-
return (_a = this.view.layoutPanel) == null ? void 0 : _a.panelItems.coop_pos;
|
|
14
|
-
}
|
|
15
11
|
init() {
|
|
16
12
|
super.init();
|
|
17
13
|
if (this.view.model.multiFormMode === 1 && this.view.params.srfdatatype) {
|
|
@@ -344,31 +340,14 @@ class EditViewEngine extends runtime.DEMainViewEngine {
|
|
|
344
340
|
* @memberof EditViewEngine
|
|
345
341
|
*/
|
|
346
342
|
doMarkDataAction() {
|
|
343
|
+
super.doMarkDataAction();
|
|
347
344
|
if (this.doActions.includes("VIEW")) {
|
|
348
|
-
|
|
349
|
-
const dataInfo = this.form.getData()[0].srfmajortext;
|
|
350
|
-
this.markOpenDataCallback(data, dataInfo);
|
|
351
|
-
};
|
|
352
|
-
this.form.evt.on("onLoadSuccess", async (event) => {
|
|
353
|
-
const data = event.data[0];
|
|
354
|
-
const result = await this.sendMarkDataAction("VIEW", data.srfkey);
|
|
355
|
-
if (result.ok && result.data.length > 0) {
|
|
356
|
-
result.data.forEach((item) => {
|
|
357
|
-
var _a;
|
|
358
|
-
if (item.data) {
|
|
359
|
-
(_a = this.coopPos) == null ? void 0 : _a.updateMessage({
|
|
360
|
-
data: item.data
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
this.subscribeMarkDataAction(data.srfkey, callback);
|
|
366
|
-
});
|
|
345
|
+
this.form.evt.on("onLoadSuccess", () => this.sendViewDataAction());
|
|
367
346
|
}
|
|
368
347
|
if (this.doActions.includes("EDIT")) {
|
|
369
348
|
let isWait = false;
|
|
370
|
-
this.form.evt.on("onFormDataChange", (
|
|
371
|
-
const data =
|
|
349
|
+
this.form.evt.on("onFormDataChange", () => {
|
|
350
|
+
const data = this.form.getData()[0];
|
|
372
351
|
if (isWait) {
|
|
373
352
|
return;
|
|
374
353
|
}
|
|
@@ -383,8 +362,8 @@ class EditViewEngine extends runtime.DEMainViewEngine {
|
|
|
383
362
|
});
|
|
384
363
|
}
|
|
385
364
|
if (this.doActions.includes("UPDATE")) {
|
|
386
|
-
this.form.evt.on("onSaveSuccess", (
|
|
387
|
-
const data =
|
|
365
|
+
this.form.evt.on("onSaveSuccess", () => {
|
|
366
|
+
const data = this.form.getData()[0];
|
|
388
367
|
this.sendMarkDataAction("UPDATE", data.srfkey);
|
|
389
368
|
});
|
|
390
369
|
}
|