@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,10 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
require('./monaco-editor.css');
|
|
5
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var qxUtil = require('qx-util');
|
|
6
6
|
var ElementPlus = require('element-plus');
|
|
7
7
|
require('../../../node_modules/.pnpm/@monaco-editor_loader@1.4.0_monaco-editor@0.45.0/node_modules/@monaco-editor/loader/lib/es/index.cjs');
|
|
8
|
+
var runtime = require('@ibiz-template/runtime');
|
|
9
|
+
var core = require('@ibiz-template/core');
|
|
10
|
+
require('../../../util/index.cjs');
|
|
11
|
+
require('./monaco-editor.css');
|
|
12
|
+
var aiUtil = require('../../../util/ai-util/ai-util.cjs');
|
|
8
13
|
var index = require('../../../node_modules/.pnpm/@monaco-editor_loader@1.4.0_monaco-editor@0.45.0/node_modules/@monaco-editor/loader/lib/es/loader/index.cjs');
|
|
9
14
|
|
|
10
15
|
"use strict";
|
|
@@ -15,14 +20,17 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
15
20
|
setup(props, {
|
|
16
21
|
emit
|
|
17
22
|
}) {
|
|
23
|
+
const codeEditBox = vue.ref();
|
|
18
24
|
const ns = vue3Util.useNamespace("code");
|
|
19
25
|
const c = props.controller;
|
|
26
|
+
const UUID = qxUtil.createUUID();
|
|
20
27
|
const currentVal = vue.ref("");
|
|
21
28
|
const enableEdit = vue.ref(true);
|
|
22
29
|
const hasEnableEdit = vue.ref(false);
|
|
23
30
|
const readonlyState = vue.ref(false);
|
|
24
31
|
const enableFullScreen = vue.ref(false);
|
|
25
32
|
const isFullScreen = vue.ref(false);
|
|
33
|
+
const isLoading = vue.ref(false);
|
|
26
34
|
const editorModel = c.model;
|
|
27
35
|
if (editorModel.editorParams) {
|
|
28
36
|
if (editorModel.editorParams.enableEdit) {
|
|
@@ -36,10 +44,20 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
44
|
}
|
|
37
45
|
let editor;
|
|
38
46
|
let monacoEditor;
|
|
47
|
+
let codeLensProviderDisposable;
|
|
48
|
+
let inlineCompletionsProviderDisposable;
|
|
49
|
+
let decorationsCollection;
|
|
50
|
+
let chatInstance;
|
|
39
51
|
const {
|
|
40
|
-
UIStore
|
|
52
|
+
UIStore,
|
|
53
|
+
zIndex
|
|
41
54
|
} = vue3Util.useUIStore();
|
|
42
55
|
const getMonacoTheme = (name) => {
|
|
56
|
+
var _a;
|
|
57
|
+
const customTheme = (_a = c == null ? void 0 : c.editorParams) == null ? void 0 : _a.customTheme;
|
|
58
|
+
if (customTheme) {
|
|
59
|
+
return customTheme === "dark" ? "vs-dark" : "vs";
|
|
60
|
+
}
|
|
43
61
|
return name === "dark" ? "vs-".concat(UIStore.theme) : "vs";
|
|
44
62
|
};
|
|
45
63
|
vue.watch(() => UIStore.theme, (newVal) => {
|
|
@@ -71,15 +89,232 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
71
89
|
vue.watch(() => props.disabled, updateEditorOptions, {
|
|
72
90
|
immediate: true
|
|
73
91
|
});
|
|
74
|
-
const
|
|
92
|
+
const unload = () => {
|
|
93
|
+
editor == null ? void 0 : editor.dispose();
|
|
94
|
+
editor = null;
|
|
95
|
+
decorationsCollection == null ? void 0 : decorationsCollection.clear();
|
|
96
|
+
decorationsCollection = null;
|
|
97
|
+
codeLensProviderDisposable == null ? void 0 : codeLensProviderDisposable.dispose();
|
|
98
|
+
codeLensProviderDisposable = null;
|
|
99
|
+
inlineCompletionsProviderDisposable == null ? void 0 : inlineCompletionsProviderDisposable.dispose();
|
|
100
|
+
inlineCompletionsProviderDisposable = null;
|
|
101
|
+
chatInstance == null ? void 0 : chatInstance.close();
|
|
102
|
+
};
|
|
103
|
+
const openAIChat = async () => {
|
|
104
|
+
if (!c.deACMode || !c.model.appDataEntityId)
|
|
105
|
+
return;
|
|
106
|
+
const {
|
|
107
|
+
contentToolbarItems,
|
|
108
|
+
footerToolbarItems,
|
|
109
|
+
questionToolbarItems,
|
|
110
|
+
otherToolbarItems
|
|
111
|
+
} = aiUtil.calcAiToolbarItemsByAc(c.deACMode);
|
|
112
|
+
const module = await import('@ibiz-template-plugin/ai-chat');
|
|
113
|
+
chatInstance = module.chat || module.default.chat;
|
|
114
|
+
let id = "";
|
|
115
|
+
let abortController;
|
|
116
|
+
chatInstance.create({
|
|
117
|
+
containerOptions: {
|
|
118
|
+
zIndex: zIndex.increment()
|
|
119
|
+
},
|
|
120
|
+
chatOptions: {
|
|
121
|
+
caption: c.deACMode.logicName,
|
|
122
|
+
context: {
|
|
123
|
+
...c.context
|
|
124
|
+
},
|
|
125
|
+
params: {
|
|
126
|
+
...c.params,
|
|
127
|
+
srfactag: c.deACMode.codeName
|
|
128
|
+
},
|
|
129
|
+
// 编辑器参数srfaiappendcurdata,是否传入对象参数,用于历史查询传参
|
|
130
|
+
appendCurData: c.editorParams.srfaiappendcurdata === "true" ? props.data : void 0,
|
|
131
|
+
// 编辑器参数srfaiappendcurcontent,传入编辑内容作为用户消息,获取历史数据后附加
|
|
132
|
+
appendCurContent: c.editorParams.srfaiappendcurcontent ? core.StringUtil.fill(c.editorParams.srfaiappendcurcontent, c.context, c.params, props.data) : void 0,
|
|
133
|
+
appDataEntityId: c.model.appDataEntityId,
|
|
134
|
+
contentToolbarItems,
|
|
135
|
+
footerToolbarItems,
|
|
136
|
+
questionToolbarItems,
|
|
137
|
+
otherToolbarItems,
|
|
138
|
+
question: async (aiChat, ctx, param, other, arr) => {
|
|
139
|
+
id = qxUtil.createUUID();
|
|
140
|
+
abortController = new AbortController();
|
|
141
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
142
|
+
try {
|
|
143
|
+
await deService.aiChatSse((msg) => {
|
|
144
|
+
if (msg.actionstate === 20 && msg.actionresult) {
|
|
145
|
+
aiChat.addMessage({
|
|
146
|
+
messageid: id,
|
|
147
|
+
state: msg.actionstate,
|
|
148
|
+
type: "DEFAULT",
|
|
149
|
+
role: "ASSISTANT",
|
|
150
|
+
content: msg.actionresult
|
|
151
|
+
});
|
|
152
|
+
} else if (msg.actionstate === 30 && msg.actionresult) {
|
|
153
|
+
const result = JSON.parse(msg.actionresult);
|
|
154
|
+
const choices = result.choices;
|
|
155
|
+
if (choices && choices.length > 0) {
|
|
156
|
+
aiChat.replaceMessage({
|
|
157
|
+
messageid: id,
|
|
158
|
+
state: msg.actionstate,
|
|
159
|
+
type: "DEFAULT",
|
|
160
|
+
role: "ASSISTANT",
|
|
161
|
+
content: choices[0].content || ""
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
} else if (msg.actionstate === 40) {
|
|
165
|
+
aiChat.replaceMessage({
|
|
166
|
+
messageid: id,
|
|
167
|
+
state: msg.actionstate,
|
|
168
|
+
type: "ERROR",
|
|
169
|
+
role: "ASSISTANT",
|
|
170
|
+
content: msg.actionresult
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}, abortController, ctx, param, {
|
|
174
|
+
messages: arr
|
|
175
|
+
});
|
|
176
|
+
} catch (error) {
|
|
177
|
+
aiChat.replaceMessage({
|
|
178
|
+
messageid: id,
|
|
179
|
+
state: 40,
|
|
180
|
+
type: "ERROR",
|
|
181
|
+
role: "ASSISTANT",
|
|
182
|
+
content: error.message || ibiz.i18n.t("app.aiError")
|
|
183
|
+
});
|
|
184
|
+
abortController == null ? void 0 : abortController.abort();
|
|
185
|
+
} finally {
|
|
186
|
+
aiChat.completeMessage(id, true);
|
|
187
|
+
return true;
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
abortQuestion: async (aiChat) => {
|
|
191
|
+
abortController == null ? void 0 : abortController.abort();
|
|
192
|
+
await aiChat.stopMessage({
|
|
193
|
+
messageid: id,
|
|
194
|
+
state: 30,
|
|
195
|
+
type: "DEFAULT",
|
|
196
|
+
role: "ASSISTANT",
|
|
197
|
+
content: ""
|
|
198
|
+
});
|
|
199
|
+
await aiChat.completeMessage(id, true);
|
|
200
|
+
},
|
|
201
|
+
action: (action, message) => {
|
|
202
|
+
if (action === "backfill")
|
|
203
|
+
emit("change", message.realcontent);
|
|
204
|
+
},
|
|
205
|
+
history: async (ctx, param, other) => {
|
|
206
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
207
|
+
const historyData = other.appendCurData ? other.appendCurData : {};
|
|
208
|
+
const result = await deService.aiChatHistory(ctx, param, historyData);
|
|
209
|
+
if (result.data && Array.isArray(result.data)) {
|
|
210
|
+
let preMsg;
|
|
211
|
+
result.data.forEach((item) => {
|
|
212
|
+
if (item.role === "TOOL") {
|
|
213
|
+
if (preMsg && item.content) {
|
|
214
|
+
chatInstance.aiChat.updateRecommendPrompt(preMsg, item.content);
|
|
215
|
+
}
|
|
216
|
+
} else {
|
|
217
|
+
const msg = {
|
|
218
|
+
messageid: qxUtil.createUUID(),
|
|
219
|
+
state: 30,
|
|
220
|
+
type: "DEFAULT",
|
|
221
|
+
role: item.role,
|
|
222
|
+
content: item.content,
|
|
223
|
+
completed: true
|
|
224
|
+
};
|
|
225
|
+
preMsg = msg;
|
|
226
|
+
chatInstance.aiChat.addMessage(msg);
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
return true;
|
|
231
|
+
},
|
|
232
|
+
recommendPrompt: async (ctx, param, other) => {
|
|
233
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
234
|
+
const result = await deService.aiChatRecommendPrompt(ctx, param, other.message);
|
|
235
|
+
if (result.ok && result.data) {
|
|
236
|
+
const choices = result.data.choices;
|
|
237
|
+
if (choices && choices.length > 0) {
|
|
238
|
+
return choices[0];
|
|
239
|
+
}
|
|
240
|
+
return null;
|
|
241
|
+
}
|
|
242
|
+
return null;
|
|
243
|
+
},
|
|
244
|
+
uploader: {
|
|
245
|
+
onUpload: async (file, reportProgress, options) => {
|
|
246
|
+
const fileMeata = ibiz.util.file.calcFileUpDownUrl((options == null ? void 0 : options.context) || c.context, (options == null ? void 0 : options.params) || c.params, {});
|
|
247
|
+
const uploadHeaders = {};
|
|
248
|
+
const token = core.getAppCookie(core.CoreConst.TOKEN);
|
|
249
|
+
if (token) {
|
|
250
|
+
Object.assign(uploadHeaders, {
|
|
251
|
+
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(token)
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
const formData = new FormData();
|
|
255
|
+
formData.append("file", file);
|
|
256
|
+
const res = await ibiz.net.axios({
|
|
257
|
+
url: fileMeata.uploadUrl,
|
|
258
|
+
method: "post",
|
|
259
|
+
headers: uploadHeaders,
|
|
260
|
+
data: formData,
|
|
261
|
+
onUploadProgress: (progressEvent) => {
|
|
262
|
+
const percent = progressEvent.loaded / progressEvent.total * 100;
|
|
263
|
+
reportProgress(percent);
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
return res.data;
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
extendToolbarClick: async (event, source, context, params, data) => {
|
|
270
|
+
var _a, _b;
|
|
271
|
+
const result = await runtime.UIActionUtil.exec(source.id, {
|
|
272
|
+
view: c.view,
|
|
273
|
+
ctrl: c.ctrl,
|
|
274
|
+
context: core.IBizContext.create(context),
|
|
275
|
+
params,
|
|
276
|
+
data: [data],
|
|
277
|
+
event
|
|
278
|
+
}, source.appId);
|
|
279
|
+
if (result.closeView) {
|
|
280
|
+
c.view.closeView({
|
|
281
|
+
ok: true
|
|
282
|
+
});
|
|
283
|
+
} else if (result.refresh) {
|
|
284
|
+
switch (result.refreshMode) {
|
|
285
|
+
case 1:
|
|
286
|
+
c.view.callUIAction(runtime.SysUIActionTag.REFRESH);
|
|
287
|
+
break;
|
|
288
|
+
case 2:
|
|
289
|
+
(_a = c.view.parentView) == null ? void 0 : _a.callUIAction(runtime.SysUIActionTag.REFRESH);
|
|
290
|
+
break;
|
|
291
|
+
case 3:
|
|
292
|
+
(_b = c.view.getTopView()) == null ? void 0 : _b.callUIAction(runtime.SysUIActionTag.REFRESH);
|
|
293
|
+
break;
|
|
294
|
+
default:
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
return result;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
};
|
|
302
|
+
const validate = (model) => {
|
|
303
|
+
const currentEditor = monacoEditor.getEditors().find((e) => e.getModel() === model);
|
|
304
|
+
if (!currentEditor || currentEditor.__instanceId !== UUID)
|
|
305
|
+
return false;
|
|
306
|
+
return true;
|
|
307
|
+
};
|
|
75
308
|
const editorInit = () => {
|
|
76
309
|
vue.nextTick(() => {
|
|
310
|
+
isLoading.value = true;
|
|
77
311
|
index.default.config({
|
|
78
312
|
paths: {
|
|
79
313
|
vs: "".concat(ibiz.env.pluginBaseUrl, "/monaco-editor@0.45.0/min/vs")
|
|
80
314
|
}
|
|
81
315
|
});
|
|
82
316
|
index.default.init().then((loaderMonaco) => {
|
|
317
|
+
isLoading.value = false;
|
|
83
318
|
if (!editor) {
|
|
84
319
|
monacoEditor = loaderMonaco.editor;
|
|
85
320
|
editor = monacoEditor.create(codeEditBox.value, {
|
|
@@ -101,16 +336,71 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
101
336
|
},
|
|
102
337
|
fontSize: 16,
|
|
103
338
|
// 字体大小
|
|
339
|
+
fixedOverflowWidgets: true,
|
|
340
|
+
// 确保悬浮提示不会被裁剪
|
|
104
341
|
scrollBeyondLastLine: false,
|
|
105
342
|
// 取消代码后面一大段空白
|
|
106
343
|
overviewRulerBorder: false
|
|
107
344
|
// 不要滚动条的边框
|
|
108
345
|
});
|
|
346
|
+
editor.__instanceId = UUID;
|
|
347
|
+
if (c.deACMode && ibiz.env.enableAI) {
|
|
348
|
+
codeLensProviderDisposable = loaderMonaco.languages.registerCodeLensProvider(props.language || props.controller.language, {
|
|
349
|
+
provideCodeLenses: function(model, _token) {
|
|
350
|
+
if (!validate(model))
|
|
351
|
+
return {
|
|
352
|
+
lenses: [],
|
|
353
|
+
dispose: () => {
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
return {
|
|
357
|
+
lenses: [{
|
|
358
|
+
id: "AI",
|
|
359
|
+
range: new loaderMonaco.Range(1, 1, 1, 1),
|
|
360
|
+
command: {
|
|
361
|
+
title: "".concat(c.deACMode.logicName),
|
|
362
|
+
id: editor.addCommand(0, () => openAIChat())
|
|
363
|
+
}
|
|
364
|
+
}],
|
|
365
|
+
dispose: () => {
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
},
|
|
369
|
+
resolveCodeLens: (_model, codeLens, _token) => codeLens
|
|
370
|
+
});
|
|
371
|
+
}
|
|
109
372
|
}
|
|
110
373
|
setTimeout(() => {
|
|
111
374
|
editor.layout();
|
|
112
375
|
editor.setValue(currentVal.value);
|
|
113
376
|
});
|
|
377
|
+
const createDecorationsCollection = () => {
|
|
378
|
+
if (decorationsCollection)
|
|
379
|
+
decorationsCollection.clear();
|
|
380
|
+
if (c.placeHolder && !(editor == null ? void 0 : editor.getValue())) {
|
|
381
|
+
decorationsCollection = editor.createDecorationsCollection([{
|
|
382
|
+
range: new loaderMonaco.Range(1, 1, 1, 1),
|
|
383
|
+
// 影响第1行的开始位置
|
|
384
|
+
options: {
|
|
385
|
+
isWholeLine: true,
|
|
386
|
+
// 是否作用于整行
|
|
387
|
+
beforeContentClassName: "".concat(ns.e("first-prompt"), " ghost-text-decoration")
|
|
388
|
+
// 在内容前加修饰 mtk8为注释样式类名
|
|
389
|
+
}
|
|
390
|
+
}]);
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
const originalSetValue = editor.setValue.bind(editor);
|
|
394
|
+
editor.setValue = (newValue) => {
|
|
395
|
+
originalSetValue(newValue);
|
|
396
|
+
createDecorationsCollection();
|
|
397
|
+
};
|
|
398
|
+
editor.onDidFocusEditorText(() => {
|
|
399
|
+
decorationsCollection == null ? void 0 : decorationsCollection.clear();
|
|
400
|
+
});
|
|
401
|
+
editor.onDidBlurEditorText(() => {
|
|
402
|
+
createDecorationsCollection();
|
|
403
|
+
});
|
|
114
404
|
editor.onDidChangeModelContent(() => {
|
|
115
405
|
if (!hasEnableEdit.value) {
|
|
116
406
|
currentVal.value = editor.getValue();
|
|
@@ -120,6 +410,8 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
120
410
|
window.addEventListener("resize", () => {
|
|
121
411
|
editor.layout();
|
|
122
412
|
});
|
|
413
|
+
}).catch(() => {
|
|
414
|
+
isLoading.value = false;
|
|
123
415
|
});
|
|
124
416
|
});
|
|
125
417
|
};
|
|
@@ -139,8 +431,7 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
139
431
|
};
|
|
140
432
|
const changeFullScreenState = async () => {
|
|
141
433
|
currentVal.value = String(editor == null ? void 0 : editor.getValue());
|
|
142
|
-
|
|
143
|
-
editor = null;
|
|
434
|
+
unload();
|
|
144
435
|
isFullScreen.value = !isFullScreen.value;
|
|
145
436
|
editorInit();
|
|
146
437
|
};
|
|
@@ -229,14 +520,17 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
229
520
|
const renderCodeContent = () => {
|
|
230
521
|
return vue.createVNode("div", {
|
|
231
522
|
"ref": codeEditBox,
|
|
232
|
-
"class": ns.e("box")
|
|
523
|
+
"class": ns.e("box"),
|
|
524
|
+
"style": {
|
|
525
|
+
[ns.cssVarBlockName("placeholder")]: '"'.concat(c.placeHolder, '"')
|
|
526
|
+
}
|
|
233
527
|
}, null);
|
|
234
528
|
};
|
|
235
529
|
vue.onMounted(() => {
|
|
236
530
|
editorInit();
|
|
237
531
|
});
|
|
238
532
|
vue.onUnmounted(() => {
|
|
239
|
-
|
|
533
|
+
unload();
|
|
240
534
|
});
|
|
241
535
|
return {
|
|
242
536
|
ns,
|
|
@@ -245,6 +539,7 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
245
539
|
isFullScreen,
|
|
246
540
|
hasEnableEdit,
|
|
247
541
|
readonlyState,
|
|
542
|
+
isLoading,
|
|
248
543
|
renderFooter,
|
|
249
544
|
renderHeaderToolbar,
|
|
250
545
|
renderCodeContent,
|
|
@@ -252,13 +547,15 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
252
547
|
};
|
|
253
548
|
},
|
|
254
549
|
render() {
|
|
255
|
-
|
|
550
|
+
var _a, _b;
|
|
551
|
+
const isLoading = !((_b = (_a = this.controller.view) == null ? void 0 : _a.state) == null ? void 0 : _b.isLoading) && this.isLoading;
|
|
552
|
+
return !this.isFullScreen ? vue.withDirectives(vue.createVNode("div", {
|
|
256
553
|
"class": [this.ns.b(), {
|
|
257
554
|
[this.ns.b("editor-readonly")]: this.readonlyState
|
|
258
555
|
}, {
|
|
259
556
|
[this.ns.b("editor-enable")]: !this.readonlyState
|
|
260
|
-
}]
|
|
261
|
-
}, [this.renderHeaderToolbar(), this.renderCodeContent(), this.hasEnableEdit && !this.readonlyState ? this.renderFooter() : null]) : vue.createVNode(vue.resolveComponent("el-dialog"), {
|
|
557
|
+
}, this.ns.is("enable", this.hasEnableEdit)]
|
|
558
|
+
}, [this.renderHeaderToolbar(), this.renderCodeContent(), this.hasEnableEdit && !this.readonlyState ? this.renderFooter() : null]), [[vue.resolveDirective("loading"), isLoading]]) : vue.createVNode(vue.resolveComponent("el-dialog"), {
|
|
262
559
|
"modelValue": this.isFullScreen,
|
|
263
560
|
"onUpdate:modelValue": ($event) => this.isFullScreen = $event,
|
|
264
561
|
"width": "80%",
|
|
@@ -266,13 +563,13 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
266
563
|
"class": this.ns.b("dialog-full-screen"),
|
|
267
564
|
"onClose": () => this.changeFullScreenState()
|
|
268
565
|
}, {
|
|
269
|
-
default: () => [vue.createVNode("div", {
|
|
566
|
+
default: () => [vue.withDirectives(vue.createVNode("div", {
|
|
270
567
|
"class": [this.ns.b(), {
|
|
271
568
|
[this.ns.b("editor-readonly")]: this.readonlyState
|
|
272
569
|
}, {
|
|
273
570
|
[this.ns.b("editor-enable")]: !this.readonlyState
|
|
274
571
|
}]
|
|
275
|
-
}, [this.renderHeaderToolbar(), this.renderCodeContent(), this.hasEnableEdit && !this.readonlyState ? this.renderFooter() : null])]
|
|
572
|
+
}, [this.renderHeaderToolbar(), this.renderCodeContent(), this.hasEnableEdit && !this.readonlyState ? this.renderFooter() : null]), [[vue.resolveDirective("loading"), isLoading]])]
|
|
276
573
|
});
|
|
277
574
|
}
|
|
278
575
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-code{display:flex;flex-direction:column;width:100%;height:100%}.ibiz-code__box{width:100%;height:100%;min-height:200px;overflow:hidden}.ibiz-code-toolbar{display:flex;align-items:center;justify-content:end;width:100%;min-height:var(--ibiz-height-control-default);padding-right:var(--ibiz-spacing-base);font-size:var(--ibiz-font-size-header-6)}.ibiz-code-toolbar>*+*{margin-left:var(--ibiz-spacing-base-loose)}.ibiz-code-toolbar i{cursor:pointer}.ibiz-code-toolbar i:hover{color:var(--ibiz-color-primary)}.ibiz-code-footer{display:flex;align-items:center;justify-content:end;width:100%;min-height:36px;margin-top:var(--ibiz-spacing-base-tight);margin-right:var(--ibiz-spacing-tight)}.ibiz-code-footer>*+*{margin-left:var(--ibiz-spacing-base)}.ibiz-code-footer__cancel{height:36px;line-height:36px;color:var(--ibiz-color-text-1);cursor:pointer;opacity:.7}.ibiz-code-footer__cancel:hover{color:var(--ibiz-color-primary);opacity:1}.ibiz-code-footer__save{width:96px;height:36px;line-height:36px;color:var(--ibiz-color-primary-active-text);text-align:center;cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:var(--ibiz-border-radius-small)}.ibiz-code-footer__save:hover{box-shadow:0 2px 5px 1px var(--ibiz-color-primary)}.ibiz-code-message{width:500px;max-width:unset}.ibiz-code-message__message-content--message-tip{color:var(--ibiz-color-text-3)}.ibiz-code-message__message-cancel{color:var(--ibiz-color-text-1);background-color:transparent}.ibiz-code-message__message-cancel:hover{color:var(--ibiz-color-primary);background-color:transparent}.ibiz-code-message__message-comfire{background-color:var(--ibiz-color-danger)!important}.ibiz-code-message__message-comfire:hover{box-shadow:0 2px 5px 1px var(--ibiz-color-danger)}.ibiz-code-editor-enable .ibiz-code__box{height:calc(100% - 68px)}.ibiz-code-dialog-full-screen{height:80%!important}.ibiz-code-dialog-full-screen .ibiz-code{gap:0;padding:0 var(--ibiz-spacing-extra-loose);--w-e-toolbar-bg-color:var(--ibiz-color-bg-0)}.ibiz-code-dialog-full-screen .ibiz-code .ibiz-code__box{height:calc(100% - 124px)}.ibiz-code-dialog-full-screen .ibiz-code .ibiz-code-toolbar{min-height:56px}.ibiz-code-footer-dialog{min-height:68px;margin-top:0}
|
|
1
|
+
.ibiz-code{display:flex;flex-direction:column;width:100%;height:100%}.ibiz-code__box{width:100%;height:100%;min-height:200px;overflow:hidden}.ibiz-code__first-prompt::before{padding-right:var(--ibiz-spacing-base);content:var(--ibiz-code-placeholder)}.ibiz-code-toolbar{display:flex;align-items:center;justify-content:end;width:100%;min-height:var(--ibiz-height-control-default);padding-right:var(--ibiz-spacing-base);font-size:var(--ibiz-font-size-header-6)}.ibiz-code-toolbar>*+*{margin-left:var(--ibiz-spacing-base-loose)}.ibiz-code-toolbar i{cursor:pointer}.ibiz-code-toolbar i:hover{color:var(--ibiz-color-primary)}.ibiz-code-footer{display:flex;align-items:center;justify-content:end;width:100%;min-height:36px;margin-top:var(--ibiz-spacing-base-tight);margin-right:var(--ibiz-spacing-tight)}.ibiz-code-footer>*+*{margin-left:var(--ibiz-spacing-base)}.ibiz-code-footer__cancel{height:36px;line-height:36px;color:var(--ibiz-color-text-1);cursor:pointer;opacity:.7}.ibiz-code-footer__cancel:hover{color:var(--ibiz-color-primary);opacity:1}.ibiz-code-footer__save{width:96px;height:36px;line-height:36px;color:var(--ibiz-color-primary-active-text);text-align:center;cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:var(--ibiz-border-radius-small)}.ibiz-code-footer__save:hover{box-shadow:0 2px 5px 1px var(--ibiz-color-primary)}.ibiz-code-message{width:500px;max-width:unset}.ibiz-code-message__message-content--message-tip{color:var(--ibiz-color-text-3)}.ibiz-code-message__message-cancel{color:var(--ibiz-color-text-1);background-color:transparent}.ibiz-code-message__message-cancel:hover{color:var(--ibiz-color-primary);background-color:transparent}.ibiz-code-message__message-comfire{background-color:var(--ibiz-color-danger)!important}.ibiz-code-message__message-comfire:hover{box-shadow:0 2px 5px 1px var(--ibiz-color-danger)}.ibiz-code-editor-enable.is-enable .ibiz-code__box{height:calc(100% - 68px)}.ibiz-code-dialog-full-screen{height:80%!important}.ibiz-code-dialog-full-screen .ibiz-code{gap:0;padding:0 var(--ibiz-spacing-extra-loose);--w-e-toolbar-bg-color:var(--ibiz-color-bg-0)}.ibiz-code-dialog-full-screen .ibiz-code .ibiz-code__box{height:calc(100% - 124px)}.ibiz-code-dialog-full-screen .ibiz-code .ibiz-code-toolbar{min-height:56px}.ibiz-code-footer-dialog{min-height:68px;margin-top:0}
|
|
@@ -182,6 +182,10 @@ const IBizPickerDropDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
182
182
|
const valueText = vue.computed(() => {
|
|
183
183
|
return vue3Util.renderString(curValue.value);
|
|
184
184
|
});
|
|
185
|
+
const {
|
|
186
|
+
popoverid,
|
|
187
|
+
setPopoverZIndex
|
|
188
|
+
} = vue3Util.usePopoverzIndex();
|
|
185
189
|
vue.watch(valueText, (newVal, oldVal) => {
|
|
186
190
|
if (newVal !== oldVal) {
|
|
187
191
|
emit("infoTextChange", newVal);
|
|
@@ -213,6 +217,7 @@ const IBizPickerDropDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
213
217
|
immediate: true,
|
|
214
218
|
deep: true
|
|
215
219
|
});
|
|
220
|
+
setPopoverZIndex("--".concat(ns.namespace, "-picker-dropdown-transfer-zindex"));
|
|
216
221
|
});
|
|
217
222
|
const renderActionItem = (detail) => {
|
|
218
223
|
if (!c.groupActionState[detail.id].visible) {
|
|
@@ -274,7 +279,8 @@ const IBizPickerDropDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
274
279
|
setEditable,
|
|
275
280
|
showFormDefaultContent,
|
|
276
281
|
renderGroupAction,
|
|
277
|
-
renderEmpty
|
|
282
|
+
renderEmpty,
|
|
283
|
+
popoverid
|
|
278
284
|
};
|
|
279
285
|
},
|
|
280
286
|
render() {
|
|
@@ -289,7 +295,7 @@ const IBizPickerDropDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
289
295
|
"remote": true,
|
|
290
296
|
"remote-show-suffix": this.c.model.showTrigger,
|
|
291
297
|
"clearable": true,
|
|
292
|
-
"popper-class": [this.ns.e("transfer"), this.ns.is("empty", !this.items.length)],
|
|
298
|
+
"popper-class": [this.popoverid, this.ns.e("transfer"), this.ns.is("empty", !this.items.length)],
|
|
293
299
|
"loading": this.loading,
|
|
294
300
|
"placeholder": this.c.placeHolder ? this.c.placeHolder : " ",
|
|
295
301
|
"remote-method": this.onSearch,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-picker-dropdown{--ibiz-picker-dropdown-height:var(--ibiz-editor-default-line-height);--ibiz-picker-dropdown-empty-bg-color:var(--ibiz-color-bg-3)}.ibiz-picker-dropdown .el-select{width:100%}.ibiz-picker-dropdown .el-input .el-input__inner{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color);border-color:var(--ibiz-form-item-border-color)}.ibiz-picker-dropdown .el-input .el-input__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-picker-dropdown .el-input .el-input__inner::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-picker-dropdown .el-input.is-disabled .el-input__inner{color:var(--ibiz-form-item-disabled-color);border-color:var(--ibiz-form-item-disabled-border-color)}.ibiz-picker-dropdown--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-picker-dropdown__action-item{color:var(--ibiz-color-link);text-align:center}.ibiz-picker-dropdown__empty{padding:0;--ibiz-no-data-min-height:100px;--el-empty-image-width:100px}.ibiz-picker-dropdown__transfer{--ibiz-picker-dropdown-height:var(--ibiz-editor-default-line-height);--ibiz-picker-dropdown-empty-bg-color:var(--ibiz-color-bg-3)}.ibiz-picker-dropdown__transfer.is-empty .el-select-dropdown__item{height:auto;padding:0}.ibiz-picker-dropdown__transfer.is-empty .ibiz-no-data{background-color:var(--ibiz-picker-dropdown-empty-bg-color)}.ibiz-picker-dropdown-form-default-content{display:none}.ibiz-form-item .ibiz-picker-dropdown.is-show-default:hover .ibiz-picker-dropdown-form-default-content{display:none}.ibiz-form-item .ibiz-picker-dropdown.is-show-default:hover .ibiz-picker-dropdown-select{display:block}.ibiz-form-item .ibiz-picker-dropdown.is-show-default .ibiz-picker-dropdown-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-form-item .ibiz-picker-dropdown.is-show-default .ibiz-picker-dropdown-select{display:none}.ibiz-form-item .ibiz-picker-dropdown.is-show-default.is-editable .ibiz-picker-dropdown-form-default-content{display:none}.ibiz-form-item .ibiz-picker-dropdown.is-show-default.is-editable .ibiz-picker-dropdown-select{display:block}
|
|
1
|
+
.ibiz-picker-dropdown{--ibiz-picker-dropdown-height:var(--ibiz-editor-default-line-height);--ibiz-picker-dropdown-empty-bg-color:var(--ibiz-color-bg-3);--ibiz-picker-dropdown-transfer-zindex:1000}.ibiz-picker-dropdown .el-select{width:100%}.ibiz-picker-dropdown .el-input .el-input__inner{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color);border-color:var(--ibiz-form-item-border-color)}.ibiz-picker-dropdown .el-input .el-input__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-picker-dropdown .el-input .el-input__inner::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-picker-dropdown .el-input.is-disabled .el-input__inner{color:var(--ibiz-form-item-disabled-color);border-color:var(--ibiz-form-item-disabled-border-color)}.ibiz-picker-dropdown--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-picker-dropdown__action-item{color:var(--ibiz-color-link);text-align:center}.ibiz-picker-dropdown__empty{padding:0;--ibiz-no-data-min-height:100px;--el-empty-image-width:100px}.ibiz-picker-dropdown__transfer{--ibiz-picker-dropdown-height:var(--ibiz-editor-default-line-height);--ibiz-picker-dropdown-empty-bg-color:var(--ibiz-color-bg-3);--ibiz-picker-dropdown-transfer-zindex:1000;z-index:var(--ibiz-picker-dropdown-transfer-zindex)!important}.ibiz-picker-dropdown__transfer.is-empty .el-select-dropdown__item{height:auto;padding:0}.ibiz-picker-dropdown__transfer.is-empty .ibiz-no-data{background-color:var(--ibiz-picker-dropdown-empty-bg-color)}.ibiz-picker-dropdown-form-default-content{display:none}.ibiz-form-item .ibiz-picker-dropdown.is-show-default:hover .ibiz-picker-dropdown-form-default-content{display:none}.ibiz-form-item .ibiz-picker-dropdown.is-show-default:hover .ibiz-picker-dropdown-select{display:block}.ibiz-form-item .ibiz-picker-dropdown.is-show-default .ibiz-picker-dropdown-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-form-item .ibiz-picker-dropdown.is-show-default .ibiz-picker-dropdown-select{display:none}.ibiz-form-item .ibiz-picker-dropdown.is-show-default.is-editable .ibiz-picker-dropdown-form-default-content{display:none}.ibiz-form-item .ibiz-picker-dropdown.is-show-default.is-editable .ibiz-picker-dropdown-select{display:block}
|
|
@@ -17,6 +17,7 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
17
17
|
setup(props, {
|
|
18
18
|
emit
|
|
19
19
|
}) {
|
|
20
|
+
var _a;
|
|
20
21
|
const ns = vue3Util.useNamespace("picker-select-view");
|
|
21
22
|
const c = props.controller;
|
|
22
23
|
const editorModel = c.model;
|
|
@@ -50,6 +51,7 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
50
51
|
const multipleTempText = vue.ref(null);
|
|
51
52
|
const multipleObjs = vue.ref(null);
|
|
52
53
|
const showView = vue.ref(false);
|
|
54
|
+
const isDesignPreview = ((_a = c.context) == null ? void 0 : _a.srfrunmode) === "DESIGN";
|
|
53
55
|
const showFormDefaultContent = vue.computed(() => {
|
|
54
56
|
if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
|
|
55
57
|
return true;
|
|
@@ -86,7 +88,9 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
88
|
queryValue.value = newVal || "";
|
|
87
89
|
}
|
|
88
90
|
if (!props.data || !c.valueItem || !props.data[c.valueItem]) {
|
|
89
|
-
|
|
91
|
+
if (!isDesignPreview) {
|
|
92
|
+
ibiz.log.error("\u503C\u9879\u5F02\u5E38");
|
|
93
|
+
}
|
|
90
94
|
} else {
|
|
91
95
|
selectedData.value = [{
|
|
92
96
|
srfkey: props.data[c.valueItem],
|
|
@@ -132,7 +132,8 @@ class PickerEditorController extends runtime.EditorController {
|
|
|
132
132
|
const embedViewEditors = [
|
|
133
133
|
"PICKEREX_DROPDOWNVIEW",
|
|
134
134
|
"PICKEREX_DROPDOWNVIEW_LINK",
|
|
135
|
-
"PICKUPVIEW"
|
|
135
|
+
"PICKUPVIEW",
|
|
136
|
+
"MOBPICKER_DROPDOWNVIEW"
|
|
136
137
|
];
|
|
137
138
|
if (this.model.editorType && embedViewEditors.includes(this.model.editorType)) {
|
|
138
139
|
this.initPickupViewParams();
|
|
@@ -222,6 +223,9 @@ class PickerEditorController extends runtime.EditorController {
|
|
|
222
223
|
this.params
|
|
223
224
|
);
|
|
224
225
|
const fixedParams = {};
|
|
226
|
+
if (ibiz.config.pickerdefaultsort) {
|
|
227
|
+
Object.assign(fixedParams, { sort: ibiz.config.pickerdefaultsort });
|
|
228
|
+
}
|
|
225
229
|
if (this.sort && !Object.is(this.sort, "")) {
|
|
226
230
|
Object.assign(fixedParams, { sort: this.sort });
|
|
227
231
|
}
|
|
@@ -23,10 +23,12 @@ class DataPickerEditorProvider {
|
|
|
23
23
|
break;
|
|
24
24
|
case "ADDRESSPICKUP":
|
|
25
25
|
case "ADDRESSPICKUP_AC":
|
|
26
|
+
case "MOBMPICKER":
|
|
26
27
|
componentName = "IBizMPicker";
|
|
27
28
|
break;
|
|
28
29
|
case "PICKEREX_DROPDOWNVIEW":
|
|
29
30
|
case "PICKEREX_DROPDOWNVIEW_LINK":
|
|
31
|
+
case "MOBPICKER_DROPDOWNVIEW":
|
|
30
32
|
componentName = "IBizPickerSelectView";
|
|
31
33
|
break;
|
|
32
34
|
case "PICKUPVIEW":
|
|
@@ -15,20 +15,27 @@ class DatePickerEditorController extends runtime.EditorController {
|
|
|
15
15
|
getFormatByType(editorType) {
|
|
16
16
|
switch (editorType) {
|
|
17
17
|
case "DATEPICKER":
|
|
18
|
+
case "MOBDATE":
|
|
18
19
|
return "YYYY-MM-DD HH:mm:ss";
|
|
19
20
|
case "DATEPICKEREX":
|
|
20
21
|
return "YYYY-MM-DD HH:mm:ss";
|
|
21
22
|
case "DATEPICKEREX_NOTIME":
|
|
23
|
+
case "MOBDATE_NOTIME":
|
|
22
24
|
return "YYYY-MM-DD";
|
|
23
25
|
case "DATEPICKEREX_HOUR":
|
|
26
|
+
case "MOBDATE_HOUR":
|
|
24
27
|
return "YYYY-MM-DD HH";
|
|
25
28
|
case "DATEPICKEREX_MINUTE":
|
|
29
|
+
case "MOBDATE_MINUTE":
|
|
26
30
|
return "YYYY-MM-DD HH:mm";
|
|
27
31
|
case "DATEPICKEREX_SECOND":
|
|
32
|
+
case "MOBDATE_SECOND":
|
|
28
33
|
return "YYYY-MM-DD HH:mm:ss";
|
|
29
34
|
case "DATEPICKEREX_NODAY":
|
|
35
|
+
case "MOBDATE_NODAY":
|
|
30
36
|
return "HH:mm:ss";
|
|
31
37
|
case "DATEPICKEREX_NODAY_NOSECOND":
|
|
38
|
+
case "MOBDATE_NODAY_NOSECOND":
|
|
32
39
|
return "HH:mm";
|
|
33
40
|
case "DATEPICKEREX_NOSECOND":
|
|
34
41
|
return "YYYY-MM-DD HH:mm";
|
|
@@ -30,10 +30,13 @@ const IBizDatePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
30
30
|
switch (editorModel.editorType) {
|
|
31
31
|
case "DATEPICKEREX":
|
|
32
32
|
case "DATEPICKEREX_NOTIME":
|
|
33
|
+
case "MOBDATE_NOTIME":
|
|
33
34
|
type.value = "date";
|
|
34
35
|
break;
|
|
35
36
|
case "DATEPICKEREX_NODAY":
|
|
36
37
|
case "DATEPICKEREX_NODAY_NOSECOND":
|
|
38
|
+
case "MOBDATE_NODAY":
|
|
39
|
+
case "MOBDATE_NODAY_NOSECOND":
|
|
37
40
|
isTimePicker.value = true;
|
|
38
41
|
type.value = "time";
|
|
39
42
|
break;
|
|
@@ -42,6 +45,10 @@ const IBizDatePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
45
|
case "DATEPICKEREX_SECOND":
|
|
43
46
|
case "DATEPICKEREX_NOSECOND":
|
|
44
47
|
case "DATEPICKER":
|
|
48
|
+
case "MOBDATE":
|
|
49
|
+
case "MOBDATE_HOUR":
|
|
50
|
+
case "MOBDATE_MINUTE":
|
|
51
|
+
case "MOBDATE_SECOND":
|
|
45
52
|
default:
|
|
46
53
|
type.value = "datetime";
|
|
47
54
|
}
|
|
@@ -33,8 +33,10 @@ class DateRangeEditorController extends runtime.EditorController {
|
|
|
33
33
|
getFormatByType() {
|
|
34
34
|
switch (this.model.editorType) {
|
|
35
35
|
case "DATERANGE":
|
|
36
|
+
case "MOBDATERANGE":
|
|
36
37
|
return "YYYY-MM-DD HH:mm:ss";
|
|
37
38
|
case "DATERANGE_NOTIME":
|
|
39
|
+
case "MOBDATERANGE_NOTIME":
|
|
38
40
|
return "YYYY-MM-DD";
|
|
39
41
|
default:
|
|
40
42
|
return "YYYY-MM-DD HH:mm:ss";
|
|
@@ -36,9 +36,11 @@ const IBizDateRangePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
36
|
const type = vue.ref("daterange");
|
|
37
37
|
switch (editorModel.editorType) {
|
|
38
38
|
case "DATERANGE":
|
|
39
|
+
case "MOBDATERANGE":
|
|
39
40
|
type.value = "datetimerange";
|
|
40
41
|
break;
|
|
41
42
|
case "DATERANGE_NOTIME":
|
|
43
|
+
case "MOBDATERANGE_NOTIME":
|
|
42
44
|
type.value = "daterange";
|
|
43
45
|
break;
|
|
44
46
|
default:
|
|
@@ -42,7 +42,7 @@ class DropDownListEditorController extends runtime.CodeListEditorController {
|
|
|
42
42
|
async onInit() {
|
|
43
43
|
var _a, _b, _c;
|
|
44
44
|
super.onInit();
|
|
45
|
-
if (this.model.editorType === "MDROPDOWNLIST") {
|
|
45
|
+
if (this.model.editorType === "MDROPDOWNLIST" || this.model.editorType === "MOBCHECKLIST") {
|
|
46
46
|
this.multiple = true;
|
|
47
47
|
}
|
|
48
48
|
if ((_a = this.editorParams) == null ? void 0 : _a.forceSelection) {
|