@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,8 +1,13 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, nextTick, createVNode, onMounted, onUnmounted, resolveComponent } from 'vue';
|
|
2
|
-
import './monaco-editor.css';
|
|
1
|
+
import { defineComponent, ref, watch, nextTick, createVNode, onMounted, onUnmounted, withDirectives, resolveDirective, resolveComponent } from 'vue';
|
|
3
2
|
import { getCodeProps, getEditorEmits, useNamespace, useUIStore } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { createUUID } from 'qx-util';
|
|
4
4
|
import { ElMessageBox } from 'element-plus';
|
|
5
5
|
import '../../../node_modules/.pnpm/@monaco-editor_loader@1.4.0_monaco-editor@0.45.0/node_modules/@monaco-editor/loader/lib/es/index.mjs';
|
|
6
|
+
import { UIActionUtil, SysUIActionTag } from '@ibiz-template/runtime';
|
|
7
|
+
import { StringUtil, getAppCookie, CoreConst, IBizContext } from '@ibiz-template/core';
|
|
8
|
+
import '../../../util/index.mjs';
|
|
9
|
+
import './monaco-editor.css';
|
|
10
|
+
import { calcAiToolbarItemsByAc } from '../../../util/ai-util/ai-util.mjs';
|
|
6
11
|
import loader from '../../../node_modules/.pnpm/@monaco-editor_loader@1.4.0_monaco-editor@0.45.0/node_modules/@monaco-editor/loader/lib/es/loader/index.mjs';
|
|
7
12
|
|
|
8
13
|
"use strict";
|
|
@@ -13,14 +18,17 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
13
18
|
setup(props, {
|
|
14
19
|
emit
|
|
15
20
|
}) {
|
|
21
|
+
const codeEditBox = ref();
|
|
16
22
|
const ns = useNamespace("code");
|
|
17
23
|
const c = props.controller;
|
|
24
|
+
const UUID = createUUID();
|
|
18
25
|
const currentVal = ref("");
|
|
19
26
|
const enableEdit = ref(true);
|
|
20
27
|
const hasEnableEdit = ref(false);
|
|
21
28
|
const readonlyState = ref(false);
|
|
22
29
|
const enableFullScreen = ref(false);
|
|
23
30
|
const isFullScreen = ref(false);
|
|
31
|
+
const isLoading = ref(false);
|
|
24
32
|
const editorModel = c.model;
|
|
25
33
|
if (editorModel.editorParams) {
|
|
26
34
|
if (editorModel.editorParams.enableEdit) {
|
|
@@ -34,10 +42,20 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
34
42
|
}
|
|
35
43
|
let editor;
|
|
36
44
|
let monacoEditor;
|
|
45
|
+
let codeLensProviderDisposable;
|
|
46
|
+
let inlineCompletionsProviderDisposable;
|
|
47
|
+
let decorationsCollection;
|
|
48
|
+
let chatInstance;
|
|
37
49
|
const {
|
|
38
|
-
UIStore
|
|
50
|
+
UIStore,
|
|
51
|
+
zIndex
|
|
39
52
|
} = useUIStore();
|
|
40
53
|
const getMonacoTheme = (name) => {
|
|
54
|
+
var _a;
|
|
55
|
+
const customTheme = (_a = c == null ? void 0 : c.editorParams) == null ? void 0 : _a.customTheme;
|
|
56
|
+
if (customTheme) {
|
|
57
|
+
return customTheme === "dark" ? "vs-dark" : "vs";
|
|
58
|
+
}
|
|
41
59
|
return name === "dark" ? "vs-".concat(UIStore.theme) : "vs";
|
|
42
60
|
};
|
|
43
61
|
watch(() => UIStore.theme, (newVal) => {
|
|
@@ -69,15 +87,232 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
69
87
|
watch(() => props.disabled, updateEditorOptions, {
|
|
70
88
|
immediate: true
|
|
71
89
|
});
|
|
72
|
-
const
|
|
90
|
+
const unload = () => {
|
|
91
|
+
editor == null ? void 0 : editor.dispose();
|
|
92
|
+
editor = null;
|
|
93
|
+
decorationsCollection == null ? void 0 : decorationsCollection.clear();
|
|
94
|
+
decorationsCollection = null;
|
|
95
|
+
codeLensProviderDisposable == null ? void 0 : codeLensProviderDisposable.dispose();
|
|
96
|
+
codeLensProviderDisposable = null;
|
|
97
|
+
inlineCompletionsProviderDisposable == null ? void 0 : inlineCompletionsProviderDisposable.dispose();
|
|
98
|
+
inlineCompletionsProviderDisposable = null;
|
|
99
|
+
chatInstance == null ? void 0 : chatInstance.close();
|
|
100
|
+
};
|
|
101
|
+
const openAIChat = async () => {
|
|
102
|
+
if (!c.deACMode || !c.model.appDataEntityId)
|
|
103
|
+
return;
|
|
104
|
+
const {
|
|
105
|
+
contentToolbarItems,
|
|
106
|
+
footerToolbarItems,
|
|
107
|
+
questionToolbarItems,
|
|
108
|
+
otherToolbarItems
|
|
109
|
+
} = calcAiToolbarItemsByAc(c.deACMode);
|
|
110
|
+
const module = await import('@ibiz-template-plugin/ai-chat');
|
|
111
|
+
chatInstance = module.chat || module.default.chat;
|
|
112
|
+
let id = "";
|
|
113
|
+
let abortController;
|
|
114
|
+
chatInstance.create({
|
|
115
|
+
containerOptions: {
|
|
116
|
+
zIndex: zIndex.increment()
|
|
117
|
+
},
|
|
118
|
+
chatOptions: {
|
|
119
|
+
caption: c.deACMode.logicName,
|
|
120
|
+
context: {
|
|
121
|
+
...c.context
|
|
122
|
+
},
|
|
123
|
+
params: {
|
|
124
|
+
...c.params,
|
|
125
|
+
srfactag: c.deACMode.codeName
|
|
126
|
+
},
|
|
127
|
+
// 编辑器参数srfaiappendcurdata,是否传入对象参数,用于历史查询传参
|
|
128
|
+
appendCurData: c.editorParams.srfaiappendcurdata === "true" ? props.data : void 0,
|
|
129
|
+
// 编辑器参数srfaiappendcurcontent,传入编辑内容作为用户消息,获取历史数据后附加
|
|
130
|
+
appendCurContent: c.editorParams.srfaiappendcurcontent ? StringUtil.fill(c.editorParams.srfaiappendcurcontent, c.context, c.params, props.data) : void 0,
|
|
131
|
+
appDataEntityId: c.model.appDataEntityId,
|
|
132
|
+
contentToolbarItems,
|
|
133
|
+
footerToolbarItems,
|
|
134
|
+
questionToolbarItems,
|
|
135
|
+
otherToolbarItems,
|
|
136
|
+
question: async (aiChat, ctx, param, other, arr) => {
|
|
137
|
+
id = createUUID();
|
|
138
|
+
abortController = new AbortController();
|
|
139
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
140
|
+
try {
|
|
141
|
+
await deService.aiChatSse((msg) => {
|
|
142
|
+
if (msg.actionstate === 20 && msg.actionresult) {
|
|
143
|
+
aiChat.addMessage({
|
|
144
|
+
messageid: id,
|
|
145
|
+
state: msg.actionstate,
|
|
146
|
+
type: "DEFAULT",
|
|
147
|
+
role: "ASSISTANT",
|
|
148
|
+
content: msg.actionresult
|
|
149
|
+
});
|
|
150
|
+
} else if (msg.actionstate === 30 && msg.actionresult) {
|
|
151
|
+
const result = JSON.parse(msg.actionresult);
|
|
152
|
+
const choices = result.choices;
|
|
153
|
+
if (choices && choices.length > 0) {
|
|
154
|
+
aiChat.replaceMessage({
|
|
155
|
+
messageid: id,
|
|
156
|
+
state: msg.actionstate,
|
|
157
|
+
type: "DEFAULT",
|
|
158
|
+
role: "ASSISTANT",
|
|
159
|
+
content: choices[0].content || ""
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
} else if (msg.actionstate === 40) {
|
|
163
|
+
aiChat.replaceMessage({
|
|
164
|
+
messageid: id,
|
|
165
|
+
state: msg.actionstate,
|
|
166
|
+
type: "ERROR",
|
|
167
|
+
role: "ASSISTANT",
|
|
168
|
+
content: msg.actionresult
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}, abortController, ctx, param, {
|
|
172
|
+
messages: arr
|
|
173
|
+
});
|
|
174
|
+
} catch (error) {
|
|
175
|
+
aiChat.replaceMessage({
|
|
176
|
+
messageid: id,
|
|
177
|
+
state: 40,
|
|
178
|
+
type: "ERROR",
|
|
179
|
+
role: "ASSISTANT",
|
|
180
|
+
content: error.message || ibiz.i18n.t("app.aiError")
|
|
181
|
+
});
|
|
182
|
+
abortController == null ? void 0 : abortController.abort();
|
|
183
|
+
} finally {
|
|
184
|
+
aiChat.completeMessage(id, true);
|
|
185
|
+
return true;
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
abortQuestion: async (aiChat) => {
|
|
189
|
+
abortController == null ? void 0 : abortController.abort();
|
|
190
|
+
await aiChat.stopMessage({
|
|
191
|
+
messageid: id,
|
|
192
|
+
state: 30,
|
|
193
|
+
type: "DEFAULT",
|
|
194
|
+
role: "ASSISTANT",
|
|
195
|
+
content: ""
|
|
196
|
+
});
|
|
197
|
+
await aiChat.completeMessage(id, true);
|
|
198
|
+
},
|
|
199
|
+
action: (action, message) => {
|
|
200
|
+
if (action === "backfill")
|
|
201
|
+
emit("change", message.realcontent);
|
|
202
|
+
},
|
|
203
|
+
history: async (ctx, param, other) => {
|
|
204
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
205
|
+
const historyData = other.appendCurData ? other.appendCurData : {};
|
|
206
|
+
const result = await deService.aiChatHistory(ctx, param, historyData);
|
|
207
|
+
if (result.data && Array.isArray(result.data)) {
|
|
208
|
+
let preMsg;
|
|
209
|
+
result.data.forEach((item) => {
|
|
210
|
+
if (item.role === "TOOL") {
|
|
211
|
+
if (preMsg && item.content) {
|
|
212
|
+
chatInstance.aiChat.updateRecommendPrompt(preMsg, item.content);
|
|
213
|
+
}
|
|
214
|
+
} else {
|
|
215
|
+
const msg = {
|
|
216
|
+
messageid: createUUID(),
|
|
217
|
+
state: 30,
|
|
218
|
+
type: "DEFAULT",
|
|
219
|
+
role: item.role,
|
|
220
|
+
content: item.content,
|
|
221
|
+
completed: true
|
|
222
|
+
};
|
|
223
|
+
preMsg = msg;
|
|
224
|
+
chatInstance.aiChat.addMessage(msg);
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
return true;
|
|
229
|
+
},
|
|
230
|
+
recommendPrompt: async (ctx, param, other) => {
|
|
231
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
232
|
+
const result = await deService.aiChatRecommendPrompt(ctx, param, other.message);
|
|
233
|
+
if (result.ok && result.data) {
|
|
234
|
+
const choices = result.data.choices;
|
|
235
|
+
if (choices && choices.length > 0) {
|
|
236
|
+
return choices[0];
|
|
237
|
+
}
|
|
238
|
+
return null;
|
|
239
|
+
}
|
|
240
|
+
return null;
|
|
241
|
+
},
|
|
242
|
+
uploader: {
|
|
243
|
+
onUpload: async (file, reportProgress, options) => {
|
|
244
|
+
const fileMeata = ibiz.util.file.calcFileUpDownUrl((options == null ? void 0 : options.context) || c.context, (options == null ? void 0 : options.params) || c.params, {});
|
|
245
|
+
const uploadHeaders = {};
|
|
246
|
+
const token = getAppCookie(CoreConst.TOKEN);
|
|
247
|
+
if (token) {
|
|
248
|
+
Object.assign(uploadHeaders, {
|
|
249
|
+
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(token)
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
const formData = new FormData();
|
|
253
|
+
formData.append("file", file);
|
|
254
|
+
const res = await ibiz.net.axios({
|
|
255
|
+
url: fileMeata.uploadUrl,
|
|
256
|
+
method: "post",
|
|
257
|
+
headers: uploadHeaders,
|
|
258
|
+
data: formData,
|
|
259
|
+
onUploadProgress: (progressEvent) => {
|
|
260
|
+
const percent = progressEvent.loaded / progressEvent.total * 100;
|
|
261
|
+
reportProgress(percent);
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
return res.data;
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
extendToolbarClick: async (event, source, context, params, data) => {
|
|
268
|
+
var _a, _b;
|
|
269
|
+
const result = await UIActionUtil.exec(source.id, {
|
|
270
|
+
view: c.view,
|
|
271
|
+
ctrl: c.ctrl,
|
|
272
|
+
context: IBizContext.create(context),
|
|
273
|
+
params,
|
|
274
|
+
data: [data],
|
|
275
|
+
event
|
|
276
|
+
}, source.appId);
|
|
277
|
+
if (result.closeView) {
|
|
278
|
+
c.view.closeView({
|
|
279
|
+
ok: true
|
|
280
|
+
});
|
|
281
|
+
} else if (result.refresh) {
|
|
282
|
+
switch (result.refreshMode) {
|
|
283
|
+
case 1:
|
|
284
|
+
c.view.callUIAction(SysUIActionTag.REFRESH);
|
|
285
|
+
break;
|
|
286
|
+
case 2:
|
|
287
|
+
(_a = c.view.parentView) == null ? void 0 : _a.callUIAction(SysUIActionTag.REFRESH);
|
|
288
|
+
break;
|
|
289
|
+
case 3:
|
|
290
|
+
(_b = c.view.getTopView()) == null ? void 0 : _b.callUIAction(SysUIActionTag.REFRESH);
|
|
291
|
+
break;
|
|
292
|
+
default:
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return result;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
const validate = (model) => {
|
|
301
|
+
const currentEditor = monacoEditor.getEditors().find((e) => e.getModel() === model);
|
|
302
|
+
if (!currentEditor || currentEditor.__instanceId !== UUID)
|
|
303
|
+
return false;
|
|
304
|
+
return true;
|
|
305
|
+
};
|
|
73
306
|
const editorInit = () => {
|
|
74
307
|
nextTick(() => {
|
|
308
|
+
isLoading.value = true;
|
|
75
309
|
loader.config({
|
|
76
310
|
paths: {
|
|
77
311
|
vs: "".concat(ibiz.env.pluginBaseUrl, "/monaco-editor@0.45.0/min/vs")
|
|
78
312
|
}
|
|
79
313
|
});
|
|
80
314
|
loader.init().then((loaderMonaco) => {
|
|
315
|
+
isLoading.value = false;
|
|
81
316
|
if (!editor) {
|
|
82
317
|
monacoEditor = loaderMonaco.editor;
|
|
83
318
|
editor = monacoEditor.create(codeEditBox.value, {
|
|
@@ -99,16 +334,71 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
99
334
|
},
|
|
100
335
|
fontSize: 16,
|
|
101
336
|
// 字体大小
|
|
337
|
+
fixedOverflowWidgets: true,
|
|
338
|
+
// 确保悬浮提示不会被裁剪
|
|
102
339
|
scrollBeyondLastLine: false,
|
|
103
340
|
// 取消代码后面一大段空白
|
|
104
341
|
overviewRulerBorder: false
|
|
105
342
|
// 不要滚动条的边框
|
|
106
343
|
});
|
|
344
|
+
editor.__instanceId = UUID;
|
|
345
|
+
if (c.deACMode && ibiz.env.enableAI) {
|
|
346
|
+
codeLensProviderDisposable = loaderMonaco.languages.registerCodeLensProvider(props.language || props.controller.language, {
|
|
347
|
+
provideCodeLenses: function(model, _token) {
|
|
348
|
+
if (!validate(model))
|
|
349
|
+
return {
|
|
350
|
+
lenses: [],
|
|
351
|
+
dispose: () => {
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
return {
|
|
355
|
+
lenses: [{
|
|
356
|
+
id: "AI",
|
|
357
|
+
range: new loaderMonaco.Range(1, 1, 1, 1),
|
|
358
|
+
command: {
|
|
359
|
+
title: "".concat(c.deACMode.logicName),
|
|
360
|
+
id: editor.addCommand(0, () => openAIChat())
|
|
361
|
+
}
|
|
362
|
+
}],
|
|
363
|
+
dispose: () => {
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
},
|
|
367
|
+
resolveCodeLens: (_model, codeLens, _token) => codeLens
|
|
368
|
+
});
|
|
369
|
+
}
|
|
107
370
|
}
|
|
108
371
|
setTimeout(() => {
|
|
109
372
|
editor.layout();
|
|
110
373
|
editor.setValue(currentVal.value);
|
|
111
374
|
});
|
|
375
|
+
const createDecorationsCollection = () => {
|
|
376
|
+
if (decorationsCollection)
|
|
377
|
+
decorationsCollection.clear();
|
|
378
|
+
if (c.placeHolder && !(editor == null ? void 0 : editor.getValue())) {
|
|
379
|
+
decorationsCollection = editor.createDecorationsCollection([{
|
|
380
|
+
range: new loaderMonaco.Range(1, 1, 1, 1),
|
|
381
|
+
// 影响第1行的开始位置
|
|
382
|
+
options: {
|
|
383
|
+
isWholeLine: true,
|
|
384
|
+
// 是否作用于整行
|
|
385
|
+
beforeContentClassName: "".concat(ns.e("first-prompt"), " ghost-text-decoration")
|
|
386
|
+
// 在内容前加修饰 mtk8为注释样式类名
|
|
387
|
+
}
|
|
388
|
+
}]);
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
const originalSetValue = editor.setValue.bind(editor);
|
|
392
|
+
editor.setValue = (newValue) => {
|
|
393
|
+
originalSetValue(newValue);
|
|
394
|
+
createDecorationsCollection();
|
|
395
|
+
};
|
|
396
|
+
editor.onDidFocusEditorText(() => {
|
|
397
|
+
decorationsCollection == null ? void 0 : decorationsCollection.clear();
|
|
398
|
+
});
|
|
399
|
+
editor.onDidBlurEditorText(() => {
|
|
400
|
+
createDecorationsCollection();
|
|
401
|
+
});
|
|
112
402
|
editor.onDidChangeModelContent(() => {
|
|
113
403
|
if (!hasEnableEdit.value) {
|
|
114
404
|
currentVal.value = editor.getValue();
|
|
@@ -118,6 +408,8 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
118
408
|
window.addEventListener("resize", () => {
|
|
119
409
|
editor.layout();
|
|
120
410
|
});
|
|
411
|
+
}).catch(() => {
|
|
412
|
+
isLoading.value = false;
|
|
121
413
|
});
|
|
122
414
|
});
|
|
123
415
|
};
|
|
@@ -137,8 +429,7 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
137
429
|
};
|
|
138
430
|
const changeFullScreenState = async () => {
|
|
139
431
|
currentVal.value = String(editor == null ? void 0 : editor.getValue());
|
|
140
|
-
|
|
141
|
-
editor = null;
|
|
432
|
+
unload();
|
|
142
433
|
isFullScreen.value = !isFullScreen.value;
|
|
143
434
|
editorInit();
|
|
144
435
|
};
|
|
@@ -227,14 +518,17 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
227
518
|
const renderCodeContent = () => {
|
|
228
519
|
return createVNode("div", {
|
|
229
520
|
"ref": codeEditBox,
|
|
230
|
-
"class": ns.e("box")
|
|
521
|
+
"class": ns.e("box"),
|
|
522
|
+
"style": {
|
|
523
|
+
[ns.cssVarBlockName("placeholder")]: '"'.concat(c.placeHolder, '"')
|
|
524
|
+
}
|
|
231
525
|
}, null);
|
|
232
526
|
};
|
|
233
527
|
onMounted(() => {
|
|
234
528
|
editorInit();
|
|
235
529
|
});
|
|
236
530
|
onUnmounted(() => {
|
|
237
|
-
|
|
531
|
+
unload();
|
|
238
532
|
});
|
|
239
533
|
return {
|
|
240
534
|
ns,
|
|
@@ -243,6 +537,7 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
243
537
|
isFullScreen,
|
|
244
538
|
hasEnableEdit,
|
|
245
539
|
readonlyState,
|
|
540
|
+
isLoading,
|
|
246
541
|
renderFooter,
|
|
247
542
|
renderHeaderToolbar,
|
|
248
543
|
renderCodeContent,
|
|
@@ -250,13 +545,15 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
250
545
|
};
|
|
251
546
|
},
|
|
252
547
|
render() {
|
|
253
|
-
|
|
548
|
+
var _a, _b;
|
|
549
|
+
const isLoading = !((_b = (_a = this.controller.view) == null ? void 0 : _a.state) == null ? void 0 : _b.isLoading) && this.isLoading;
|
|
550
|
+
return !this.isFullScreen ? withDirectives(createVNode("div", {
|
|
254
551
|
"class": [this.ns.b(), {
|
|
255
552
|
[this.ns.b("editor-readonly")]: this.readonlyState
|
|
256
553
|
}, {
|
|
257
554
|
[this.ns.b("editor-enable")]: !this.readonlyState
|
|
258
|
-
}]
|
|
259
|
-
}, [this.renderHeaderToolbar(), this.renderCodeContent(), this.hasEnableEdit && !this.readonlyState ? this.renderFooter() : null]) : createVNode(resolveComponent("el-dialog"), {
|
|
555
|
+
}, this.ns.is("enable", this.hasEnableEdit)]
|
|
556
|
+
}, [this.renderHeaderToolbar(), this.renderCodeContent(), this.hasEnableEdit && !this.readonlyState ? this.renderFooter() : null]), [[resolveDirective("loading"), isLoading]]) : createVNode(resolveComponent("el-dialog"), {
|
|
260
557
|
"modelValue": this.isFullScreen,
|
|
261
558
|
"onUpdate:modelValue": ($event) => this.isFullScreen = $event,
|
|
262
559
|
"width": "80%",
|
|
@@ -264,13 +561,13 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
264
561
|
"class": this.ns.b("dialog-full-screen"),
|
|
265
562
|
"onClose": () => this.changeFullScreenState()
|
|
266
563
|
}, {
|
|
267
|
-
default: () => [createVNode("div", {
|
|
564
|
+
default: () => [withDirectives(createVNode("div", {
|
|
268
565
|
"class": [this.ns.b(), {
|
|
269
566
|
[this.ns.b("editor-readonly")]: this.readonlyState
|
|
270
567
|
}, {
|
|
271
568
|
[this.ns.b("editor-enable")]: !this.readonlyState
|
|
272
569
|
}]
|
|
273
|
-
}, [this.renderHeaderToolbar(), this.renderCodeContent(), this.hasEnableEdit && !this.readonlyState ? this.renderFooter() : null])]
|
|
570
|
+
}, [this.renderHeaderToolbar(), this.renderCodeContent(), this.hasEnableEdit && !this.readonlyState ? this.renderFooter() : null]), [[resolveDirective("loading"), isLoading]])]
|
|
274
571
|
});
|
|
275
572
|
}
|
|
276
573
|
});
|
|
@@ -43,7 +43,7 @@ export declare const IBizColorMPickerCustom: import("vue").DefineComponent<{
|
|
|
43
43
|
};
|
|
44
44
|
}, {
|
|
45
45
|
ns: import("@ibiz-template/core").Namespace;
|
|
46
|
-
tabs:
|
|
46
|
+
tabs: import("@ibiz-template/core").IApiData[];
|
|
47
47
|
curSelect: import("vue").Ref<string>;
|
|
48
48
|
colorStr: import("vue").Ref<string>;
|
|
49
49
|
renderColorList: () => JSX.Element[];
|
|
@@ -24,7 +24,7 @@ export declare const IBizColorMPickerDefault: import("vue").DefineComponent<{
|
|
|
24
24
|
curType: import("vue").Ref<string>;
|
|
25
25
|
curTemplateColor: import("vue").Ref<string>;
|
|
26
26
|
showTemplateList: import("vue").Ref<boolean>;
|
|
27
|
-
colorType:
|
|
27
|
+
colorType: import("@ibiz-template/core").IApiData[];
|
|
28
28
|
templateColorList: import("vue").ComputedRef<any>;
|
|
29
29
|
handleTemplateColorChange: () => void;
|
|
30
30
|
handleSchemeChange: () => void;
|
|
@@ -4,7 +4,7 @@ import { ColorPickerEditorController } from '../color-picker-editor.controller';
|
|
|
4
4
|
export declare const IBizColorPicker: import("vue").DefineComponent<{
|
|
5
5
|
value: StringConstructor;
|
|
6
6
|
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<ColorPickerEditorController>, undefined, undefined>;
|
|
7
|
-
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<
|
|
7
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
8
8
|
disabled: {
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
};
|
|
@@ -28,8 +28,8 @@ export declare const IBizColorPicker: import("vue").DefineComponent<{
|
|
|
28
28
|
c: ColorPickerEditorController;
|
|
29
29
|
currentVal: Ref<string | string[] | null>;
|
|
30
30
|
predefineColors: Ref<string[]>;
|
|
31
|
-
contentStyle: import("vue").ComputedRef<
|
|
32
|
-
colorPicker: Ref<
|
|
31
|
+
contentStyle: import("vue").ComputedRef<import("@ibiz-template/core").IApiData | null>;
|
|
32
|
+
colorPicker: Ref<import("@ibiz-template/core").IApiData | null>;
|
|
33
33
|
multiple: boolean;
|
|
34
34
|
isCustom: boolean;
|
|
35
35
|
customColorList: any;
|
|
@@ -42,14 +42,18 @@ export declare const IBizColorPicker: import("vue").DefineComponent<{
|
|
|
42
42
|
onChange: (value: string | string[]) => void;
|
|
43
43
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
44
|
change: (_value: unknown, _name?: string | undefined, _ignore?: boolean | undefined) => boolean;
|
|
45
|
-
blur: (_event?:
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
blur: (_event?: import("@ibiz-template/core").IApiData | undefined) => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* 配置示例:
|
|
48
|
+
* CUSTOMCOLORLIST = [{"text":"颜色名字","value":["#123123","#111222","#333322","#11ff33"]}]
|
|
49
|
+
*/
|
|
50
|
+
focus: (_event?: import("@ibiz-template/core").IApiData | undefined) => boolean;
|
|
51
|
+
enter: (_event?: import("@ibiz-template/core").IApiData | undefined) => boolean;
|
|
48
52
|
infoTextChange: (_text: string) => boolean;
|
|
49
53
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
54
|
value: StringConstructor;
|
|
51
55
|
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<ColorPickerEditorController>, undefined, undefined>;
|
|
52
|
-
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<
|
|
56
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
53
57
|
disabled: {
|
|
54
58
|
type: BooleanConstructor;
|
|
55
59
|
};
|
|
@@ -69,10 +73,10 @@ export declare const IBizColorPicker: import("vue").DefineComponent<{
|
|
|
69
73
|
required: boolean;
|
|
70
74
|
};
|
|
71
75
|
}>> & {
|
|
72
|
-
onFocus?: ((_event?:
|
|
73
|
-
onBlur?: ((_event?:
|
|
76
|
+
onFocus?: ((_event?: import("@ibiz-template/core").IApiData | undefined) => any) | undefined;
|
|
77
|
+
onBlur?: ((_event?: import("@ibiz-template/core").IApiData | undefined) => any) | undefined;
|
|
74
78
|
onChange?: ((_value: unknown, _name?: string | undefined, _ignore?: boolean | undefined) => any) | undefined;
|
|
75
|
-
onEnter?: ((_event?:
|
|
79
|
+
onEnter?: ((_event?: import("@ibiz-template/core").IApiData | undefined) => any) | undefined;
|
|
76
80
|
onInfoTextChange?: ((_text: string) => any) | undefined;
|
|
77
81
|
}, {
|
|
78
82
|
disabled: boolean;
|
|
@@ -4,7 +4,7 @@ import { PickerEditorController } from '../picker-editor.controller';
|
|
|
4
4
|
export declare const IBizMPicker: import("vue").DefineComponent<{
|
|
5
5
|
value: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
|
|
6
6
|
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<PickerEditorController>, undefined, undefined>;
|
|
7
|
-
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<
|
|
7
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
8
8
|
disabled: {
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
};
|
|
@@ -28,7 +28,7 @@ export declare const IBizMPicker: import("vue").DefineComponent<{
|
|
|
28
28
|
c: PickerEditorController;
|
|
29
29
|
curValue: Ref<string[]>;
|
|
30
30
|
loading: Ref<boolean>;
|
|
31
|
-
items: Ref<
|
|
31
|
+
items: Ref<import("@ibiz-template/core").IApiData[]>;
|
|
32
32
|
valueText: import("vue").ComputedRef<string>;
|
|
33
33
|
onSearch: (query: string) => Promise<void>;
|
|
34
34
|
onOpenChange: (flag: boolean) => void;
|
|
@@ -38,7 +38,7 @@ export declare const IBizMPicker: import("vue").DefineComponent<{
|
|
|
38
38
|
onFocus: (e: IData) => void;
|
|
39
39
|
onBlur: (e: IData) => void;
|
|
40
40
|
handleKeyUp: (e: KeyboardEvent) => void;
|
|
41
|
-
selectItems: Ref<
|
|
41
|
+
selectItems: Ref<import("@ibiz-template/core").IApiData[]>;
|
|
42
42
|
editorRef: Ref<any>;
|
|
43
43
|
isEditable: Ref<boolean>;
|
|
44
44
|
setEditable: (flag: boolean) => void;
|
|
@@ -46,14 +46,14 @@ export declare const IBizMPicker: import("vue").DefineComponent<{
|
|
|
46
46
|
renderEmpty: () => JSX.Element | undefined;
|
|
47
47
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
48
|
change: (_value: unknown, _name?: string | undefined, _ignore?: boolean | undefined) => boolean;
|
|
49
|
-
blur: (_event?:
|
|
50
|
-
focus: (_event?:
|
|
51
|
-
enter: (_event?:
|
|
49
|
+
blur: (_event?: import("@ibiz-template/core").IApiData | undefined) => boolean;
|
|
50
|
+
focus: (_event?: import("@ibiz-template/core").IApiData | undefined) => boolean;
|
|
51
|
+
enter: (_event?: import("@ibiz-template/core").IApiData | undefined) => boolean;
|
|
52
52
|
infoTextChange: (_text: string) => boolean;
|
|
53
53
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
54
|
value: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
|
|
55
55
|
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<PickerEditorController>, undefined, undefined>;
|
|
56
|
-
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<
|
|
56
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
57
57
|
disabled: {
|
|
58
58
|
type: BooleanConstructor;
|
|
59
59
|
};
|
|
@@ -73,10 +73,10 @@ export declare const IBizMPicker: import("vue").DefineComponent<{
|
|
|
73
73
|
required: boolean;
|
|
74
74
|
};
|
|
75
75
|
}>> & {
|
|
76
|
-
onFocus?: ((_event?:
|
|
77
|
-
onBlur?: ((_event?:
|
|
76
|
+
onFocus?: ((_event?: import("@ibiz-template/core").IApiData | undefined) => any) | undefined;
|
|
77
|
+
onBlur?: ((_event?: import("@ibiz-template/core").IApiData | undefined) => any) | undefined;
|
|
78
78
|
onChange?: ((_value: unknown, _name?: string | undefined, _ignore?: boolean | undefined) => any) | undefined;
|
|
79
|
-
onEnter?: ((_event?:
|
|
79
|
+
onEnter?: ((_event?: import("@ibiz-template/core").IApiData | undefined) => any) | undefined;
|
|
80
80
|
onInfoTextChange?: ((_text: string) => any) | undefined;
|
|
81
81
|
}, {
|
|
82
82
|
disabled: boolean;
|
|
@@ -5,7 +5,7 @@ import { PickerEditorController } from '../picker-editor.controller';
|
|
|
5
5
|
export declare const IBizPicker: import("vue").DefineComponent<{
|
|
6
6
|
value: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
|
|
7
7
|
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<PickerEditorController>, undefined, undefined>;
|
|
8
|
-
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<
|
|
8
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
9
9
|
disabled: {
|
|
10
10
|
type: BooleanConstructor;
|
|
11
11
|
};
|
|
@@ -29,7 +29,7 @@ export declare const IBizPicker: import("vue").DefineComponent<{
|
|
|
29
29
|
c: PickerEditorController;
|
|
30
30
|
curValue: Ref<string | string[] | null>;
|
|
31
31
|
valueText: import("vue").ComputedRef<string>;
|
|
32
|
-
items: Ref<
|
|
32
|
+
items: Ref<import("@ibiz-template/core").IApiData[]>;
|
|
33
33
|
openPickUpView: (e: MouseEvent) => Promise<void>;
|
|
34
34
|
openLinkView: (e: MouseEvent) => Promise<void>;
|
|
35
35
|
onACSelect: (item: IData) => Promise<void>;
|
|
@@ -48,14 +48,14 @@ export declare const IBizPicker: import("vue").DefineComponent<{
|
|
|
48
48
|
renderEmpty: () => JSX.Element;
|
|
49
49
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
50
50
|
change: (_value: unknown, _name?: string | undefined, _ignore?: boolean | undefined) => boolean;
|
|
51
|
-
blur: (_event?:
|
|
52
|
-
focus: (_event?:
|
|
53
|
-
enter: (_event?:
|
|
51
|
+
blur: (_event?: import("@ibiz-template/core").IApiData | undefined) => boolean;
|
|
52
|
+
focus: (_event?: import("@ibiz-template/core").IApiData | undefined) => boolean;
|
|
53
|
+
enter: (_event?: import("@ibiz-template/core").IApiData | undefined) => boolean;
|
|
54
54
|
infoTextChange: (_text: string) => boolean;
|
|
55
55
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
56
|
value: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
|
|
57
57
|
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<PickerEditorController>, undefined, undefined>;
|
|
58
|
-
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<
|
|
58
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
59
59
|
disabled: {
|
|
60
60
|
type: BooleanConstructor;
|
|
61
61
|
};
|
|
@@ -75,10 +75,10 @@ export declare const IBizPicker: import("vue").DefineComponent<{
|
|
|
75
75
|
required: boolean;
|
|
76
76
|
};
|
|
77
77
|
}>> & {
|
|
78
|
-
onFocus?: ((_event?:
|
|
79
|
-
onBlur?: ((_event?:
|
|
78
|
+
onFocus?: ((_event?: import("@ibiz-template/core").IApiData | undefined) => any) | undefined;
|
|
79
|
+
onBlur?: ((_event?: import("@ibiz-template/core").IApiData | undefined) => any) | undefined;
|
|
80
80
|
onChange?: ((_value: unknown, _name?: string | undefined, _ignore?: boolean | undefined) => any) | undefined;
|
|
81
|
-
onEnter?: ((_event?:
|
|
81
|
+
onEnter?: ((_event?: import("@ibiz-template/core").IApiData | undefined) => any) | undefined;
|
|
82
82
|
onInfoTextChange?: ((_text: string) => any) | undefined;
|
|
83
83
|
}, {
|
|
84
84
|
disabled: boolean;
|
|
@@ -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}
|