@ibiz-template/vue3-components 0.7.38-alpha.43 → 0.7.38-alpha.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart-C4Y8Daxm.js +1 -0
- package/dist/ibiz-markdown-editor-CKuF8KOI.js +1 -0
- package/dist/index-B79xJqXz.js +1 -0
- package/dist/index-BsxW9vZO.js +1 -0
- package/dist/index-CIQ8bnG_.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-Byqjtna-.js +1 -0
- package/dist/map-chart-user-BaQWHpFu.js +1 -0
- package/dist/wang-editor-Vd0LVyWx.js +1 -0
- package/dist/{xlsx-util-BoMFhSd9.js → xlsx-util-BApCDhEk.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.d.ts +6 -0
- package/es/common/action-toolbar/action-toolbar.mjs +12 -2
- package/es/common/button-list/button-list.css +1 -1
- package/es/common/button-list/button-list.d.ts +3 -2
- package/es/common/button-list/button-list.mjs +102 -27
- package/es/common/control-navigation/control-navigation.mjs +2 -0
- package/es/common/cropping/cropping.css +1 -0
- package/es/common/cropping/cropping.d.ts +54 -0
- package/es/common/cropping/cropping.mjs +291 -0
- package/es/common/data-import/data-import.mjs +3 -2
- package/es/common/data-import2/data-import2.mjs +2 -3
- package/es/common/grid-setting/grid-setting.d.ts +0 -1
- package/es/common/grid-setting/grid-setting.mjs +4 -8
- package/es/common/index.mjs +8 -0
- package/es/common/map-chart/map-manager.mjs +16 -4
- package/es/common/map-chart-user/map-chart-user.css +1 -0
- package/es/common/map-chart-user/map-chart-user.d.ts +136 -0
- package/es/common/map-chart-user/map-chart-user.mjs +104 -0
- package/es/common/map-chart-user/map-chart-user.util.d.ts +39 -0
- package/es/common/map-chart-user/map-chart-user.util.mjs +206 -0
- package/es/common/map-chart-user/map-user-manager.d.ts +21 -0
- package/es/common/map-chart-user/map-user-manager.mjs +155 -0
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.mjs +3 -3
- package/es/control/calendar/calendar-util.mjs +1 -1
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.d.ts +1 -1
- package/es/control/calendar/calendar.mjs +165 -16
- package/es/control/calendar/index.d.ts +1 -1
- package/es/control/chart/chart.mjs +12 -2
- package/es/control/context-menu/context-menu.d.ts +7 -1
- package/es/control/context-menu/context-menu.mjs +15 -4
- package/es/control/context-menu/index.d.ts +7 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +3 -3
- package/es/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +5 -5
- package/es/control/dashboard/dashboard-design/dashboard-design.util.mjs +2 -2
- package/es/control/data-view/data-view.d.ts +0 -1
- package/es/control/data-view/data-view.mjs +15 -9
- package/es/control/data-view/index.d.ts +0 -1
- package/es/control/drbar/drbar.controller.mjs +2 -0
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.mjs +2 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +24 -11
- 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 +6 -0
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +12 -3
- package/es/control/form/form-detail/form-item/form-item.d.ts +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +3 -2
- package/es/control/form/form-detail/form-item/index.d.ts +1 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +1 -1
- package/es/control/gantt/gantt.mjs +16 -3
- package/es/control/grid/grid/grid-control.util.d.ts +2 -0
- package/es/control/grid/grid/grid-control.util.mjs +82 -2
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.d.ts +2 -1
- package/es/control/grid/grid/grid.mjs +143 -10
- package/es/control/grid/grid/index.mjs +2 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.d.ts +39 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.mjs +102 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.provider.d.ts +13 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.provider.mjs +21 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/index.d.ts +37 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/index.mjs +18 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/row-edit.d.ts +13 -0
- package/es/control/grid/grid-column/auto-grid-field-edit-column/row-edit.mjs +36 -0
- 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/grid-field-column.mjs +6 -14
- package/es/control/grid/grid-column/grid-field-edit-column/all-edit.mjs +3 -1
- package/es/control/grid/grid-column/grid-field-edit-column/cell-edit.d.ts +1 -0
- package/es/control/grid/grid-column/grid-field-edit-column/cell-edit.mjs +17 -2
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +19 -6
- package/es/control/grid/grid-column/grid-field-edit-column/index.d.ts +1 -1
- package/es/control/grid/grid-column/index.d.ts +1 -0
- package/es/control/grid/grid-column/index.mjs +1 -0
- package/es/control/grid/index.mjs +1 -0
- package/es/control/grid/row-edit-popover/use-row-edit-popover.mjs +1 -1
- package/es/control/index.mjs +1 -0
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.mjs +15 -3
- package/es/control/list/index.d.ts +0 -1
- package/es/control/list/list.d.ts +0 -1
- package/es/control/list/list.mjs +16 -11
- package/es/control/map/map.d.ts +1 -0
- package/es/control/map/map.mjs +13 -2
- package/es/control/search-bar/filter-tree/filter-tree.mjs +3 -0
- package/es/control/toolbar/index.d.ts +13 -2
- package/es/control/toolbar/toolbar.d.ts +13 -2
- package/es/control/toolbar/toolbar.mjs +31 -12
- package/es/control/tree/el-tree-util.mjs +7 -5
- package/es/control/tree/index.d.ts +2 -5
- package/es/control/tree/tree.d.ts +2 -5
- package/es/control/tree/tree.mjs +17 -25
- package/es/control/tree-grid/tree-grid.mjs +16 -3
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/cell-edit.mjs +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.d.ts +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.mjs +5 -5
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +1 -8
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +16 -3
- package/es/control/wizard-panel/wizard-panel.css +1 -1
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +2 -2
- package/es/editor/autocomplete/autocomplete-editor.controller.d.ts +21 -3
- package/es/editor/autocomplete/autocomplete-editor.controller.mjs +67 -2
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +6 -2
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +87 -6
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +2 -2
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +2 -2
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +1 -1
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +2 -2
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +3 -3
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +2 -3
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +2 -2
- package/es/editor/color-picker/color-picker-editor.controller.d.ts +7 -0
- package/es/editor/color-picker/color-picker-editor.controller.mjs +22 -0
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.css +1 -1
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.d.ts +35 -0
- package/es/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.mjs +18 -3
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +2 -6
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +2 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +3 -2
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +87 -71
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +6 -2
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +89 -30
- 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 +4 -2
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +135 -74
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +6 -2
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +8 -2
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.css +1 -1
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.d.ts +2 -2
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.mjs +18 -5
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +2 -2
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +1 -1
- package/es/editor/data-picker/picker-editor.controller.d.ts +20 -2
- package/es/editor/data-picker/picker-editor.controller.mjs +66 -1
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +2 -2
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +2 -2
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +2 -2
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +31 -23
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +2 -2
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +2 -2
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +18 -18
- package/es/editor/html/wang-editor/wang-editor.d.ts +2 -2
- package/es/editor/html/wang-editor/wang-editor.mjs +3 -3
- package/es/editor/index.mjs +6 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +3 -3
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +4 -4
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +2 -2
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +1 -1
- package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.d.ts +2 -2
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +3 -3
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +2 -3
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +2 -2
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +2 -2
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +2 -2
- package/es/editor/span/span/span.mjs +1 -1
- package/es/editor/span/span-link/span-link.d.ts +2 -2
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +2 -2
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +2 -2
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +2 -2
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +2 -2
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +1 -1
- package/es/editor/text-box/input/input.d.ts +3 -3
- package/es/editor/text-box/input/input.mjs +1 -1
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +2 -2
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.css +1 -0
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +96 -0
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.mjs +233 -0
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +2 -2
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +2 -2
- package/es/editor/upload/index.d.ts +1 -0
- package/es/editor/upload/index.mjs +1 -0
- package/es/editor/upload/upload-editor.provider.mjs +3 -0
- package/es/editor/upload/use/use-iview-upload.mjs +2 -3
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.d.ts +2 -2
- package/es/index.mjs +2 -0
- package/es/locale/en/index.d.ts +17 -0
- package/es/locale/en/index.mjs +16 -4
- package/es/locale/zh-CN/index.d.ts +17 -0
- package/es/locale/zh-CN/index.mjs +16 -4
- package/es/panel-component/coop-pos/coop-pos.css +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +4 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.mjs +3 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.d.ts +3 -2
- package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.css +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.mjs +6 -1
- package/es/panel-component/nav-tabs/nav-tabs.state.d.ts +2 -0
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +4 -2
- package/es/panel-component/panel-app-title/panel-app-title.mjs +2 -0
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +2 -1
- package/es/panel-component/panel-view-content/panel-view-content.mjs +1 -0
- package/es/panel-component/user-action/user-action.mjs +36 -17
- package/es/panel-component/user-message/addin-changed/addin-changed.css +1 -0
- package/es/panel-component/user-message/addin-changed/addin-changed.d.ts +20 -0
- package/es/panel-component/user-message/addin-changed/addin-changed.mjs +47 -0
- package/es/panel-component/user-message/addin-changed/index.d.ts +1 -0
- package/es/panel-component/user-message/addin-changed/index.mjs +3 -0
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.css +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.d.ts +2 -5
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.mjs +20 -1
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.provider.d.ts +2 -5
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/index.d.ts +1 -0
- package/es/util/index.mjs +1 -0
- package/es/util/keydown-util/keydown-util.d.ts +21 -0
- package/es/util/keydown-util/keydown-util.mjs +35 -0
- package/es/util/notice-util/notice-util.d.ts +1 -0
- package/es/util/notice-util/notice-util.mjs +14 -0
- package/es/util/notification-util/upload-manager/upload-manager.mjs +2 -3
- package/es/util/open-view-util/open-view-util.mjs +4 -0
- package/es/view/403-view/403-view.css +1 -1
- package/es/view/403-view/403-view.mjs +1 -1
- package/es/view/404-view/404-view.css +1 -1
- package/es/view/login-view/login-view.mjs +14 -7
- package/es/view-engine/edit-view.engine.d.ts +2 -2
- package/es/view-engine/edit-view.engine.mjs +5 -4
- package/es/view-engine/grid-view.engine.mjs +1 -5
- package/es/view-engine/index.mjs +5 -0
- package/es/view-engine/login-view.engine.mjs +5 -4
- package/es/view-engine/opt-view.engine.mjs +3 -1
- package/es/view-engine/wf-dyna-action-view.engine.mjs +1 -1
- package/es/view-engine/wf-dyna-edit-view.engine.mjs +9 -3
- package/es/view-engine/wf-dyna-start-view.engine.mjs +1 -1
- package/es/view-engine/wf-step-data-view.engine.d.ts +10 -0
- package/es/view-engine/wf-step-data-view.engine.mjs +7 -0
- package/es/web-app/App.mjs +0 -10
- package/es/web-app/attach-environment-config.mjs +2 -2
- package/es/web-app/guard/auth-guard/auth-guard.mjs +4 -4
- package/es/web-app/main.mjs +4 -0
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.d.ts +2 -1
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.mjs +14 -1
- package/lib/common/action-toolbar/action-toolbar.cjs +12 -2
- package/lib/common/button-list/button-list.cjs +101 -26
- package/lib/common/button-list/button-list.css +1 -1
- package/lib/common/control-navigation/control-navigation.cjs +2 -0
- package/lib/common/cropping/cropping.cjs +293 -0
- package/lib/common/cropping/cropping.css +1 -0
- package/lib/common/data-import/data-import.cjs +3 -2
- package/lib/common/data-import2/data-import2.cjs +1 -2
- package/lib/common/grid-setting/grid-setting.cjs +4 -8
- package/lib/common/index.cjs +8 -0
- package/lib/common/map-chart/map-manager.cjs +15 -3
- package/lib/common/map-chart-user/map-chart-user.cjs +109 -0
- package/lib/common/map-chart-user/map-chart-user.css +1 -0
- package/lib/common/map-chart-user/map-chart-user.util.cjs +218 -0
- package/lib/common/map-chart-user/map-user-manager.cjs +157 -0
- package/lib/control/app-menu/app-menu.cjs +2 -2
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/calendar/calendar-util.cjs +1 -1
- package/lib/control/calendar/calendar.cjs +163 -14
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/chart/chart.cjs +11 -1
- package/lib/control/context-menu/context-menu.cjs +15 -4
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +2 -2
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +5 -5
- package/lib/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/lib/control/dashboard/dashboard-design/dashboard-design.util.cjs +2 -2
- package/lib/control/data-view/data-view.cjs +14 -8
- package/lib/control/drbar/drbar.controller.cjs +2 -0
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.controller.cjs +2 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +24 -11
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +11 -2
- 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 +3 -2
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +1 -1
- package/lib/control/gantt/gantt.cjs +14 -1
- package/lib/control/grid/grid/grid-control.util.cjs +81 -1
- package/lib/control/grid/grid/grid.cjs +140 -6
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid/index.cjs +2 -0
- package/lib/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.cjs +107 -0
- package/lib/control/grid/grid-column/auto-grid-field-edit-column/auto-grid-field-edit-column.provider.cjs +23 -0
- package/lib/control/grid/grid-column/auto-grid-field-edit-column/index.cjs +23 -0
- package/lib/control/grid/grid-column/auto-grid-field-edit-column/row-edit.cjs +38 -0
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +6 -14
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/all-edit.cjs +3 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/cell-edit.cjs +16 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.cjs +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.css +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +18 -5
- package/lib/control/grid/grid-column/index.cjs +2 -0
- package/lib/control/grid/index.cjs +2 -0
- package/lib/control/grid/row-edit-popover/use-row-edit-popover.cjs +1 -1
- package/lib/control/index.cjs +104 -102
- package/lib/control/kanban/kanban.cjs +14 -2
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/list/list.cjs +15 -10
- package/lib/control/map/map.cjs +13 -2
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +3 -0
- package/lib/control/toolbar/toolbar.cjs +31 -12
- package/lib/control/tree/el-tree-util.cjs +7 -5
- package/lib/control/tree/tree.cjs +16 -24
- package/lib/control/tree-grid/tree-grid.cjs +14 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/cell-edit.cjs +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.cjs +5 -5
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +1 -8
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +14 -1
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/autocomplete/autocomplete-editor.controller.cjs +66 -1
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +87 -6
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +1 -1
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +2 -3
- package/lib/editor/color-picker/color-picker-editor.controller.cjs +22 -0
- package/lib/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.cjs +18 -3
- package/lib/editor/color-picker/ibiz-color-mpicker-custom/ibiz-color-mpicker-custom.css +1 -1
- package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +2 -1
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +86 -70
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +88 -29
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +134 -73
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +7 -1
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-link/ibiz-picker-link.cjs +18 -5
- package/lib/editor/data-picker/ibiz-picker-link/ibiz-picker-link.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +1 -1
- package/lib/editor/data-picker/picker-editor.controller.cjs +65 -0
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +1 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +1 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +31 -23
- package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +1 -1
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +18 -18
- package/lib/editor/html/wang-editor/wang-editor.cjs +1 -1
- package/lib/editor/index.cjs +6 -0
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +2 -2
- package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +1 -1
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +2 -3
- package/lib/editor/span/span/span.cjs +1 -1
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +1 -1
- package/lib/editor/text-box/input/input.cjs +1 -1
- package/lib/editor/upload/ibiz-image-cropping/ibiz-image-cropping.cjs +235 -0
- package/lib/editor/upload/ibiz-image-cropping/ibiz-image-cropping.css +1 -0
- package/lib/editor/upload/index.cjs +2 -0
- package/lib/editor/upload/upload-editor.provider.cjs +3 -0
- package/lib/editor/upload/use/use-iview-upload.cjs +1 -2
- package/lib/index.cjs +136 -132
- package/lib/locale/en/index.cjs +16 -4
- package/lib/locale/zh-CN/index.cjs +16 -4
- package/lib/panel-component/coop-pos/coop-pos.css +1 -1
- package/lib/panel-component/nav-pos-index/nav-pos-index.cjs +3 -0
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +4 -1
- package/lib/panel-component/nav-tabs/nav-tabs.cjs +6 -1
- package/lib/panel-component/nav-tabs/nav-tabs.controller.cjs +1 -1
- package/lib/panel-component/nav-tabs/nav-tabs.css +1 -1
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +2 -0
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +4 -2
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +2 -1
- package/lib/panel-component/panel-view-content/panel-view-content.cjs +1 -0
- package/lib/panel-component/user-action/user-action.cjs +36 -17
- package/lib/panel-component/user-message/addin-changed/addin-changed.cjs +49 -0
- package/lib/panel-component/user-message/addin-changed/addin-changed.css +1 -0
- package/lib/panel-component/user-message/addin-changed/index.cjs +7 -0
- package/lib/panel-component/user-message/internal-message/internal-message-json/internal-message-json.cjs +20 -1
- package/lib/panel-component/user-message/internal-message/internal-message-json/internal-message-json.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/index.cjs +2 -0
- package/lib/util/keydown-util/keydown-util.cjs +37 -0
- package/lib/util/notice-util/notice-util.cjs +14 -0
- package/lib/util/notification-util/upload-manager/upload-manager.cjs +1 -2
- package/lib/util/open-view-util/open-view-util.cjs +4 -0
- package/lib/view/403-view/403-view.cjs +1 -1
- package/lib/view/403-view/403-view.css +1 -1
- package/lib/view/404-view/404-view.css +1 -1
- package/lib/view/login-view/login-view.cjs +13 -6
- package/lib/view-engine/edit-view.engine.cjs +5 -4
- package/lib/view-engine/grid-view.engine.cjs +1 -5
- package/lib/view-engine/index.cjs +5 -0
- package/lib/view-engine/login-view.engine.cjs +5 -4
- package/lib/view-engine/opt-view.engine.cjs +3 -1
- package/lib/view-engine/wf-dyna-action-view.engine.cjs +1 -1
- package/lib/view-engine/wf-dyna-edit-view.engine.cjs +9 -3
- package/lib/view-engine/wf-dyna-start-view.engine.cjs +1 -1
- package/lib/view-engine/wf-step-data-view.engine.cjs +9 -0
- package/lib/web-app/App.cjs +0 -10
- package/lib/web-app/attach-environment-config.cjs +2 -2
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +3 -3
- package/lib/web-app/main.cjs +4 -0
- package/lib/web-app/util/unauthorized-handler/unauthorized-handler.cjs +14 -1
- package/package.json +7 -7
- package/dist/chart-NHocZH22.js +0 -1
- package/dist/ibiz-markdown-editor-BZ8j-yda.js +0 -1
- package/dist/index-BLHbMaxB.js +0 -1
- package/dist/index-D22WGUVe.js +0 -1
- package/dist/index-b76YR_Js.js +0 -4
- package/dist/map-chart-BsStf5eZ.js +0 -1
- package/dist/wang-editor-Btv6GIhJ.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.43_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.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}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.43_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.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}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -7,6 +7,10 @@ export declare const ToolbarControl: import("vue").DefineComponent<{
|
|
|
7
7
|
type: PropType<IDEToolbar>;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
|
+
runMode: {
|
|
11
|
+
type: PropType<"DESIGN" | "RUNTIME">;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
10
14
|
context: {
|
|
11
15
|
type: PropType<IContext>;
|
|
12
16
|
required: true;
|
|
@@ -30,11 +34,15 @@ export declare const ToolbarControl: import("vue").DefineComponent<{
|
|
|
30
34
|
handleClick: (item: IDEToolbarItem, event: MouseEvent, params?: IData) => Promise<void>;
|
|
31
35
|
renderExtraButtons: (extraButtons: IExtraButton[]) => VNode[];
|
|
32
36
|
renderToolbarItem: (item: IDEToolbarItem) => VNode | null;
|
|
33
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
37
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
38
|
modelData: {
|
|
35
39
|
type: PropType<IDEToolbar>;
|
|
36
40
|
required: true;
|
|
37
41
|
};
|
|
42
|
+
runMode: {
|
|
43
|
+
type: PropType<"DESIGN" | "RUNTIME">;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
38
46
|
context: {
|
|
39
47
|
type: PropType<IContext>;
|
|
40
48
|
required: true;
|
|
@@ -50,7 +58,10 @@ export declare const ToolbarControl: import("vue").DefineComponent<{
|
|
|
50
58
|
type: BooleanConstructor;
|
|
51
59
|
default: boolean;
|
|
52
60
|
};
|
|
53
|
-
}
|
|
61
|
+
}>> & {
|
|
62
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
}, {
|
|
54
64
|
params: IParams;
|
|
65
|
+
runMode: "DESIGN" | "RUNTIME";
|
|
55
66
|
manualCalcButtonState: boolean;
|
|
56
67
|
}, {}>;
|
|
@@ -47,6 +47,10 @@ const ToolbarControl = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
type: Object,
|
|
48
48
|
required: true
|
|
49
49
|
},
|
|
50
|
+
runMode: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "RUNTIME"
|
|
53
|
+
},
|
|
50
54
|
context: {
|
|
51
55
|
type: Object,
|
|
52
56
|
required: true
|
|
@@ -63,7 +67,10 @@ const ToolbarControl = /* @__PURE__ */ defineComponent({
|
|
|
63
67
|
default: false
|
|
64
68
|
}
|
|
65
69
|
},
|
|
66
|
-
|
|
70
|
+
emits: ["click"],
|
|
71
|
+
setup(props, {
|
|
72
|
+
emit
|
|
73
|
+
}) {
|
|
67
74
|
var _a;
|
|
68
75
|
const c = useControlController((...args) => new ToolbarController(...args));
|
|
69
76
|
const ns = useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
@@ -71,15 +78,23 @@ const ToolbarControl = /* @__PURE__ */ defineComponent({
|
|
|
71
78
|
const btnSize = ref("default");
|
|
72
79
|
const toolbarStyle = (_a = c.model.toolbarStyle) == null ? void 0 : _a.toLowerCase();
|
|
73
80
|
const handleClick = async (item, event, params) => {
|
|
74
|
-
|
|
81
|
+
if (props.runMode === "RUNTIME") {
|
|
82
|
+
await c.onItemClick(item, event, params);
|
|
83
|
+
} else {
|
|
84
|
+
emit("click", item);
|
|
85
|
+
}
|
|
75
86
|
};
|
|
76
87
|
const handleActionClick = async (item, event, params) => {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
88
|
+
if (props.runMode === "RUNTIME") {
|
|
89
|
+
const tempItem = {};
|
|
90
|
+
Object.assign(tempItem, {
|
|
91
|
+
...item,
|
|
92
|
+
itemType: item.detailType
|
|
93
|
+
});
|
|
94
|
+
await handleClick(tempItem, event, params);
|
|
95
|
+
} else {
|
|
96
|
+
emit("click", item);
|
|
97
|
+
}
|
|
83
98
|
};
|
|
84
99
|
const renderExtraButtons = (extraButtons) => {
|
|
85
100
|
return extraButtons.map((button) => {
|
|
@@ -154,14 +169,16 @@ const ToolbarControl = /* @__PURE__ */ defineComponent({
|
|
|
154
169
|
}, {
|
|
155
170
|
default: () => [createVNode(resolveComponent("iBizRawItem"), {
|
|
156
171
|
"rawItem": item2,
|
|
157
|
-
"
|
|
172
|
+
"content": item2.rawItem.content,
|
|
173
|
+
"class": ns.b("submenu-rawitem"),
|
|
174
|
+
"onClick": (e) => handleClick(item2, e)
|
|
158
175
|
}, null)]
|
|
159
176
|
});
|
|
160
177
|
}
|
|
161
178
|
if (item2.itemType === "DEUIACTION") {
|
|
162
179
|
let _slot2;
|
|
163
180
|
const buttonType = (_b = item2.buttonStyle) == null ? void 0 : _b.toLowerCase();
|
|
164
|
-
if (actionId === "exportexcel") {
|
|
181
|
+
if (actionId === "exportexcel" || actionId === "gridview_exportaction") {
|
|
165
182
|
return createVNode(IBizExportExcel, {
|
|
166
183
|
"class": [ns.e("menu-exportexcel"), ns.em("item", buttonType), calcCssName(item2)],
|
|
167
184
|
"mode": "menu",
|
|
@@ -356,14 +373,16 @@ const ToolbarControl = /* @__PURE__ */ defineComponent({
|
|
|
356
373
|
"key": itemId,
|
|
357
374
|
"class": [ns.e("item"), ns.e("item-rawitem")]
|
|
358
375
|
}, [createVNode(resolveComponent("iBizRawItem"), {
|
|
359
|
-
"rawItem": item
|
|
376
|
+
"rawItem": item,
|
|
377
|
+
"content": item.rawItem.content,
|
|
378
|
+
"onClick": (e) => handleClick(item, e)
|
|
360
379
|
}, null)]);
|
|
361
380
|
}
|
|
362
381
|
if (item.itemType === "DEUIACTION") {
|
|
363
382
|
let _slot8;
|
|
364
383
|
const actionId = item.uiactionId;
|
|
365
384
|
const buttonType = (_b = item.buttonStyle) == null ? void 0 : _b.toLowerCase();
|
|
366
|
-
if (actionId === "exportexcel") {
|
|
385
|
+
if (actionId === "exportexcel" || actionId === "gridview_exportaction") {
|
|
367
386
|
return createVNode(IBizExportExcel, {
|
|
368
387
|
"class": [ns.e("item"), ns.e("item-deuiaction"), ns.em("item", buttonType), calcCssName(item)],
|
|
369
388
|
"item": item,
|
|
@@ -127,14 +127,16 @@ function findChildItems(c, modelData, curItem) {
|
|
|
127
127
|
return a.ordervalue - b.ordervalue;
|
|
128
128
|
});
|
|
129
129
|
rss.forEach((_rss) => {
|
|
130
|
-
const
|
|
130
|
+
const _children = c.state.items.filter((_item) => {
|
|
131
131
|
var _a;
|
|
132
132
|
return ((_a = _item._nodeId) == null ? void 0 : _a.toLowerCase()) === _rss.childDETreeNodeId;
|
|
133
133
|
});
|
|
134
|
-
if (
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
if (_children.length) {
|
|
135
|
+
_children.forEach((child) => {
|
|
136
|
+
const temp = cloneDeep(child);
|
|
137
|
+
temp._id = createUUID();
|
|
138
|
+
children.push(temp);
|
|
139
|
+
});
|
|
138
140
|
}
|
|
139
141
|
});
|
|
140
142
|
return children;
|
|
@@ -976,11 +976,10 @@ export declare const IBizTreeControl: import("@ibiz-template/vue3-util").TypeWit
|
|
|
976
976
|
allowDrop: (draggingNode: IData, dropNode: IData, type: import("element-plus/es/components/tree/src/tree.type").AllowDropType) => boolean;
|
|
977
977
|
allowDrag: (draggingNode: IData) => boolean;
|
|
978
978
|
handleDrop: (draggingNode: IData, dropNode: IData, dropType: import("element-plus/es/components/tree/src/tree.type").NodeDropType) => void;
|
|
979
|
-
onShowNavView: () => void;
|
|
980
979
|
onNodeTextEditBlur: () => Promise<void>;
|
|
981
980
|
renderNewNode: () => JSX.Element | null;
|
|
982
981
|
handleEditKeyDown: (e: KeyboardEvent) => void;
|
|
983
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
982
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
984
983
|
modelData: {
|
|
985
984
|
type: import("vue").PropType<import("@ibiz/model-core").IDETree>;
|
|
986
985
|
required: true;
|
|
@@ -1040,9 +1039,7 @@ export declare const IBizTreeControl: import("@ibiz-template/vue3-util").TypeWit
|
|
|
1040
1039
|
};
|
|
1041
1040
|
required: false;
|
|
1042
1041
|
};
|
|
1043
|
-
}
|
|
1044
|
-
onNodeClick?: ((...args: any[]) => any) | undefined;
|
|
1045
|
-
}, {
|
|
1042
|
+
}>>, {
|
|
1046
1043
|
params: IParams;
|
|
1047
1044
|
mdctrlActiveMode: number;
|
|
1048
1045
|
singleSelect: boolean;
|
|
@@ -997,11 +997,10 @@ export declare const TreeControl: import("vue").DefineComponent<{
|
|
|
997
997
|
allowDrop: (draggingNode: IData, dropNode: IData, type: AllowDropType) => boolean;
|
|
998
998
|
allowDrag: (draggingNode: IData) => boolean;
|
|
999
999
|
handleDrop: (draggingNode: IData, dropNode: IData, dropType: NodeDropType) => void;
|
|
1000
|
-
onShowNavView: () => void;
|
|
1001
1000
|
onNodeTextEditBlur: () => Promise<void>;
|
|
1002
1001
|
renderNewNode: () => JSX.Element | null;
|
|
1003
1002
|
handleEditKeyDown: (e: KeyboardEvent) => void;
|
|
1004
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
1003
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1005
1004
|
modelData: {
|
|
1006
1005
|
type: PropType<IDETree>;
|
|
1007
1006
|
required: true;
|
|
@@ -1076,9 +1075,7 @@ export declare const TreeControl: import("vue").DefineComponent<{
|
|
|
1076
1075
|
};
|
|
1077
1076
|
required: false;
|
|
1078
1077
|
};
|
|
1079
|
-
}
|
|
1080
|
-
onNodeClick?: ((...args: any[]) => any) | undefined;
|
|
1081
|
-
}, {
|
|
1078
|
+
}>>, {
|
|
1082
1079
|
params: IParams;
|
|
1083
1080
|
mdctrlActiveMode: number;
|
|
1084
1081
|
singleSelect: boolean;
|
package/es/control/tree/tree.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode, defineComponent, ref, reactive, onUnmounted, watch, computed, nextTick, resolveComponent, createVNode, onMounted, withDirectives, resolveDirective } from 'vue';
|
|
1
|
+
import { isVNode, defineComponent, ref, reactive, onUnmounted, watch, computed, nextTick, resolveComponent, createVNode, onMounted, mergeProps, withDirectives, resolveDirective } from 'vue';
|
|
2
2
|
import { useControlController, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { createUUID } from 'qx-util';
|
|
4
4
|
import { cloneDeep, debounce } from 'lodash-es';
|
|
@@ -77,10 +77,7 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
required: false
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
|
-
|
|
81
|
-
setup(props, {
|
|
82
|
-
emit
|
|
83
|
-
}) {
|
|
80
|
+
setup(props) {
|
|
84
81
|
const c = useControlController((...args) => new TreeController(...args));
|
|
85
82
|
useAppTreeBase(c, props);
|
|
86
83
|
const cascadeSelect = ref(false);
|
|
@@ -309,23 +306,11 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
309
306
|
const readonly = computed(() => {
|
|
310
307
|
return !!(c.context.srfreadonly === true || c.context.srfreadonly === "true");
|
|
311
308
|
});
|
|
312
|
-
const onShowNavView = () => {
|
|
313
|
-
c.state.showNavView = !c.state.showNavView;
|
|
314
|
-
};
|
|
315
309
|
const onNodeClick = (nodeData, data, evt) => {
|
|
316
310
|
var _a, _b;
|
|
317
311
|
evt.stopPropagation();
|
|
318
|
-
if (
|
|
319
|
-
emit("nodeClick", {
|
|
320
|
-
nodeData,
|
|
321
|
-
evt
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
if (nodeData._disableSelect)
|
|
325
|
-
return;
|
|
326
|
-
if (forbidClick) {
|
|
312
|
+
if (nodeData._disableSelect || forbidClick)
|
|
327
313
|
return;
|
|
328
|
-
}
|
|
329
314
|
if (((_a = treeRef.value) == null ? void 0 : _a.getCurrentKey()) === nodeData._id && !readonly.value) {
|
|
330
315
|
editCurrentNodeText();
|
|
331
316
|
}
|
|
@@ -466,8 +451,16 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
466
451
|
return result;
|
|
467
452
|
};
|
|
468
453
|
const onNodeContextmenu = async (nodeData, evt) => {
|
|
454
|
+
var _a;
|
|
469
455
|
evt.preventDefault();
|
|
470
456
|
evt.stopPropagation();
|
|
457
|
+
let stopClickTag = ibiz.config.tree.contextMenuRightClickInvoke;
|
|
458
|
+
if ((_a = c.controlParams) == null ? void 0 : _a.contextmenurightclickinvoke) {
|
|
459
|
+
stopClickTag = Object.is(c.controlParams.contextmenurightclickinvoke, "true");
|
|
460
|
+
}
|
|
461
|
+
if (!stopClickTag) {
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
471
464
|
const nodeModel = c.getNodeModel(nodeData._nodeId);
|
|
472
465
|
if (!(nodeModel == null ? void 0 : nodeModel.decontextMenu)) {
|
|
473
466
|
return;
|
|
@@ -504,7 +497,7 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
504
497
|
"nodeModel": nodeModel,
|
|
505
498
|
"nodeData": nodeData,
|
|
506
499
|
"context": c.context,
|
|
507
|
-
"
|
|
500
|
+
"actionCallBack": (detail, e) => c.doUIAction(detail.uiactionId, nodeData, e, detail.appId)
|
|
508
501
|
}, null);
|
|
509
502
|
};
|
|
510
503
|
const updateNodeExpand = (data, expanded) => {
|
|
@@ -620,7 +613,6 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
620
613
|
allowDrop,
|
|
621
614
|
allowDrag,
|
|
622
615
|
handleDrop,
|
|
623
|
-
onShowNavView,
|
|
624
616
|
onNodeTextEditBlur,
|
|
625
617
|
renderNewNode,
|
|
626
618
|
handleEditKeyDown
|
|
@@ -650,7 +642,7 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
650
642
|
const key = this.c.controlPanel ? "tree" : "default";
|
|
651
643
|
slots[key] = () => {
|
|
652
644
|
if (this.c.state.isLoaded && this.treeRefreshKey) {
|
|
653
|
-
return [createVNode(resolveComponent("el-tree"), {
|
|
645
|
+
return [createVNode(resolveComponent("el-tree"), mergeProps({
|
|
654
646
|
"ref": "treeRef",
|
|
655
647
|
"class": this.ns.b("tree"),
|
|
656
648
|
"key": this.treeRefreshKey,
|
|
@@ -680,7 +672,7 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
680
672
|
"allow-drop": this.allowDrop,
|
|
681
673
|
"allow-drag": this.allowDrag,
|
|
682
674
|
"onNodeDrop": this.handleDrop
|
|
683
|
-
}, {
|
|
675
|
+
}, this.$attrs), {
|
|
684
676
|
default: ({
|
|
685
677
|
data
|
|
686
678
|
}) => {
|
|
@@ -733,16 +725,16 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
733
725
|
"class": [this.ns.b("node"), nodeData._disableSelect ? this.ns.bm("node", "disabled") : "", (_b = nodeModel.sysCss) == null ? void 0 : _b.cssName]
|
|
734
726
|
}, [content, this.renderCounter(nodeModel), this.renderContextMenu(nodeModel, nodeData)]);
|
|
735
727
|
}
|
|
736
|
-
}), this.renderNewNode(), this.c.state.enableNavView ? !this.c.state.showNavView ? createVNode("ion-icon", {
|
|
728
|
+
}), this.renderNewNode(), this.c.state.enableNavView && this.c.state.showNavIcon ? !this.c.state.showNavView ? createVNode("ion-icon", {
|
|
737
729
|
"class": this.ns.e("nav-icon"),
|
|
738
730
|
"title": ibiz.i18n.t("component.controlNavigation.showNav"),
|
|
739
731
|
"name": "eye-outline",
|
|
740
|
-
"onClick": this.
|
|
732
|
+
"onClick": () => this.c.onShowNavViewChange()
|
|
741
733
|
}, null) : createVNode("ion-icon", {
|
|
742
734
|
"class": this.ns.e("nav-icon"),
|
|
743
735
|
"title": ibiz.i18n.t("component.controlNavigation.hiddenNav"),
|
|
744
736
|
"name": "eye-off-outline",
|
|
745
|
-
"onClick": this.
|
|
737
|
+
"onClick": () => this.c.onShowNavViewChange()
|
|
746
738
|
}, null) : null];
|
|
747
739
|
}
|
|
748
740
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, createVNode, resolveComponent, createTextVNode, renderSlot } from 'vue';
|
|
2
|
-
import { useControlController, useNamespace } from '@ibiz-template/vue3-util';
|
|
1
|
+
import { isVNode, defineComponent, createVNode, resolveComponent, createTextVNode, renderSlot } from 'vue';
|
|
2
|
+
import { useControlController, useNamespace, hasEmptyPanelRenderer, IBizCustomRender } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { TreeGridController } from '@ibiz-template/runtime';
|
|
4
4
|
import { useRowEditPopover } from '../grid/row-edit-popover/use-row-edit-popover.mjs';
|
|
5
5
|
import '../grid/grid/index.mjs';
|
|
@@ -7,6 +7,9 @@ import { renderChildColumn } from '../grid/grid/grid.mjs';
|
|
|
7
7
|
import { useITableEvent, useAppGridPagination, useAppGridBase, useGridHeaderStyle } from '../grid/grid/grid-control.util.mjs';
|
|
8
8
|
|
|
9
9
|
"use strict";
|
|
10
|
+
function _isSlot(s) {
|
|
11
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
12
|
+
}
|
|
10
13
|
const TreeGridControl = /* @__PURE__ */ defineComponent({
|
|
11
14
|
name: "IBizTreeGridControl",
|
|
12
15
|
props: {
|
|
@@ -105,10 +108,20 @@ const TreeGridControl = /* @__PURE__ */ defineComponent({
|
|
|
105
108
|
"class": ns.b("quick-toolbar")
|
|
106
109
|
}, null);
|
|
107
110
|
}
|
|
111
|
+
const noDataSlots = {};
|
|
112
|
+
if (hasEmptyPanelRenderer(c)) {
|
|
113
|
+
Object.assign(noDataSlots, {
|
|
114
|
+
customRender: () => createVNode(IBizCustomRender, {
|
|
115
|
+
"controller": c
|
|
116
|
+
}, null)
|
|
117
|
+
});
|
|
118
|
+
}
|
|
108
119
|
return createVNode(resolveComponent("iBizNoData"), {
|
|
109
120
|
"text": c.model.emptyText,
|
|
110
121
|
"emptyTextLanguageRes": c.model.emptyTextLanguageRes
|
|
111
|
-
},
|
|
122
|
+
}, _isSlot(noDataSlots) ? noDataSlots : {
|
|
123
|
+
default: () => [noDataSlots]
|
|
124
|
+
});
|
|
112
125
|
}
|
|
113
126
|
return null;
|
|
114
127
|
};
|
|
@@ -51,7 +51,7 @@ function useCellEdit(props, componentRef) {
|
|
|
51
51
|
const onBlur = () => {
|
|
52
52
|
ibiz.log.debug("".concat(c.name, "\u5C5E\u6027\u7F16\u8F91\u5668blur\u4E8B\u4EF6"));
|
|
53
53
|
setEditable(false);
|
|
54
|
-
if (
|
|
54
|
+
if (c.treeGrid.editSaveMode === "cell-blur") {
|
|
55
55
|
c.treeGrid.save(props.row.data);
|
|
56
56
|
}
|
|
57
57
|
};
|
|
@@ -14,7 +14,7 @@ export declare const TreeGridExEditColumn: import("vue").DefineComponent<{
|
|
|
14
14
|
fieldValue: import("vue").ComputedRef<any>;
|
|
15
15
|
componentRef: import("vue").Ref<any>;
|
|
16
16
|
tooltip: import("vue").ComputedRef<string | undefined>;
|
|
17
|
-
rowDataChange: (val: unknown, name?: string) => Promise<void>;
|
|
17
|
+
rowDataChange: (val: unknown, name?: string, ignore?: boolean) => Promise<void>;
|
|
18
18
|
onInfoTextChange: (text: string) => void;
|
|
19
19
|
gridEditItemProps: IData;
|
|
20
20
|
editorProps: IData;
|
|
@@ -28,9 +28,9 @@ const TreeGridExEditColumn = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
const ns = useNamespace("tree-grid-ex-edit-column");
|
|
29
29
|
const componentRef = ref();
|
|
30
30
|
const c = props.controller;
|
|
31
|
-
const rowDataChange = async (val, name) => {
|
|
31
|
+
const rowDataChange = async (val, name, ignore = false) => {
|
|
32
32
|
ibiz.log.debug("".concat(c.name, "\u503C\u53D8\u66F4"), val);
|
|
33
|
-
await c.setRowValue(props.row, val, name);
|
|
33
|
+
await c.setRowValue(props.row, val, name, ignore);
|
|
34
34
|
};
|
|
35
35
|
const useByShowMode = () => {
|
|
36
36
|
switch (c.treeGrid.editShowMode) {
|
|
@@ -78,8 +78,8 @@ const TreeGridExEditColumn = /* @__PURE__ */ defineComponent({
|
|
|
78
78
|
return createVNode(resolveComponent("iBizGridEditItem"), {
|
|
79
79
|
ref: "componentRef",
|
|
80
80
|
required: !this.controller.nodeEditItem.allowEmpty,
|
|
81
|
-
overflowMode: this.controller.overflowMode,
|
|
82
|
-
class: [this.ns, this.ns.m(this.controller.overflowMode)],
|
|
81
|
+
overflowMode: this.controller.treeGrid.overflowMode,
|
|
82
|
+
class: [this.ns, this.ns.m(this.controller.treeGrid.overflowMode)],
|
|
83
83
|
...this.gridEditItemProps
|
|
84
84
|
}, {
|
|
85
85
|
default: () => [this.controller.editorProvider && h(resolveComponent(this.controller.editorProvider.gridEditor), {
|
|
@@ -87,7 +87,7 @@ const TreeGridExEditColumn = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
value: this.fieldValue,
|
|
88
88
|
data: this.row.data,
|
|
89
89
|
controller: this.controller.editor,
|
|
90
|
-
overflowMode: this.controller.overflowMode,
|
|
90
|
+
overflowMode: this.controller.treeGrid.overflowMode,
|
|
91
91
|
onChange: this.rowDataChange,
|
|
92
92
|
onInfoTextChange: this.onInfoTextChange,
|
|
93
93
|
title: this.tooltip,
|
|
@@ -20,13 +20,6 @@ const TreeGridExFieldColumn = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
},
|
|
21
21
|
setup(props) {
|
|
22
22
|
const ns = useNamespace("tree-grid-ex-field-column");
|
|
23
|
-
let emptyHiddenUnit = ibiz.config.grid.emptyHiddenUnit;
|
|
24
|
-
const {
|
|
25
|
-
emptyhiddenunit
|
|
26
|
-
} = props.controller.treeGrid.controlParams;
|
|
27
|
-
if (emptyhiddenunit) {
|
|
28
|
-
emptyHiddenUnit = Object.is(emptyhiddenunit, "true");
|
|
29
|
-
}
|
|
30
23
|
const fieldValue = computed(() => {
|
|
31
24
|
if (props.row.data._nodeType !== "DE" && props.controller.isFirstShowColumn) {
|
|
32
25
|
return props.row.data._text;
|
|
@@ -51,7 +44,7 @@ const TreeGridExFieldColumn = /* @__PURE__ */ defineComponent({
|
|
|
51
44
|
return codeListText.value;
|
|
52
45
|
}
|
|
53
46
|
let text = nodeColumnC.formatValue(fieldValue.value);
|
|
54
|
-
if (emptyHiddenUnit) {
|
|
47
|
+
if (props.controller.treeGrid.emptyHiddenUnit) {
|
|
55
48
|
if (text) {
|
|
56
49
|
text += nodeColumnC.unitName || ((_a = nodeColumnC.nodeColumn) == null ? void 0 : _a.unitName) || "";
|
|
57
50
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, createVNode, resolveComponent, computed, ref, watchEffect, renderSlot, mergeProps, h } from 'vue';
|
|
2
|
-
import { useControlController, useNamespace } from '@ibiz-template/vue3-util';
|
|
1
|
+
import { isVNode, defineComponent, createVNode, resolveComponent, computed, ref, watchEffect, renderSlot, mergeProps, h } from 'vue';
|
|
2
|
+
import { useControlController, useNamespace, hasEmptyPanelRenderer, IBizCustomRender } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { TreeGridExController } from '@ibiz-template/runtime';
|
|
4
4
|
import './tree-grid-ex.css';
|
|
5
5
|
import { RuntimeError } from '@ibiz-template/core';
|
|
@@ -7,6 +7,9 @@ import { createUUID } from 'qx-util';
|
|
|
7
7
|
import { useRowEditPopover } from './use-row-edit-popover.mjs';
|
|
8
8
|
|
|
9
9
|
"use strict";
|
|
10
|
+
function _isSlot(s) {
|
|
11
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
12
|
+
}
|
|
10
13
|
const TreeGridExControl = /* @__PURE__ */ defineComponent({
|
|
11
14
|
name: "IBizTreeGridExControl",
|
|
12
15
|
props: {
|
|
@@ -33,10 +36,20 @@ const TreeGridExControl = /* @__PURE__ */ defineComponent({
|
|
|
33
36
|
const {
|
|
34
37
|
isLoaded
|
|
35
38
|
} = c.state;
|
|
39
|
+
const noDataSlots = {};
|
|
40
|
+
if (hasEmptyPanelRenderer(c)) {
|
|
41
|
+
Object.assign(noDataSlots, {
|
|
42
|
+
customRender: () => createVNode(IBizCustomRender, {
|
|
43
|
+
"controller": c
|
|
44
|
+
}, null)
|
|
45
|
+
});
|
|
46
|
+
}
|
|
36
47
|
return isLoaded && createVNode(resolveComponent("iBizNoData"), {
|
|
37
48
|
"text": c.model.emptyText,
|
|
38
49
|
"emptyTextLanguageRes": c.model.emptyTextLanguageRes
|
|
39
|
-
},
|
|
50
|
+
}, _isSlot(noDataSlots) ? noDataSlots : {
|
|
51
|
+
default: () => [noDataSlots]
|
|
52
|
+
});
|
|
40
53
|
};
|
|
41
54
|
const renderColumns = computed(() => {
|
|
42
55
|
const columns = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.ibiz-control-wizardpanel{--ibiz-control-wizard-panel-header-height:60px;--ibiz-control-wizard-panel-footer-height:40px;height:100%}.ibiz-control-wizardpanel__form{height:calc(100% - var(--ibiz-control-wizard-panel-footer-height));overflow:auto}.ibiz-control-wizardpanel.is-header .ibiz-control-wizardpanel__form{height:calc(100% - var(--ibiz-control-wizard-panel-footer-height) - var(--ibiz-control-wizard-panel-header-height))}.ibiz-control-wizardpanel-header{height:var(--ibiz-control-wizard-panel-header-height)}.ibiz-control-wizardpanel-footer{display:flex;align-items:center;justify-content:flex-end;height:var(--ibiz-control-wizard-panel-footer-height);padding-right:var(--ibiz-padding)}
|
|
1
|
+
@charset "UTF-8";.ibiz-control-wizardpanel{--ibiz-control-wizard-panel-header-height:60px;--ibiz-control-wizard-panel-footer-height:40px;height:100%}.ibiz-control-wizardpanel__form.ibiz-control-form{height:calc(100% - var(--ibiz-control-wizard-panel-footer-height));overflow:auto}.ibiz-control-wizardpanel.is-header .ibiz-control-wizardpanel__form{height:calc(100% - var(--ibiz-control-wizard-panel-footer-height) - var(--ibiz-control-wizard-panel-header-height))}.ibiz-control-wizardpanel-header{height:var(--ibiz-control-wizard-panel-header-height)}.ibiz-control-wizardpanel-footer{display:flex;align-items:center;justify-content:flex-end;height:var(--ibiz-control-wizard-panel-footer-height);padding-right:var(--ibiz-padding)}
|
|
@@ -72,7 +72,7 @@ export declare const IBizArray: import("vue").DefineComponent<{
|
|
|
72
72
|
handleKeyUp: (e: KeyboardEvent) => void;
|
|
73
73
|
showFormDefaultContent: import("vue").ComputedRef<boolean>;
|
|
74
74
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
75
|
-
change: (_value: unknown, _name?: string | undefined) => boolean;
|
|
75
|
+
change: (_value: unknown, _name?: string | undefined, _ignore?: boolean | undefined) => boolean;
|
|
76
76
|
blur: (_event?: IData | undefined) => boolean;
|
|
77
77
|
focus: (_event?: IData | undefined) => boolean;
|
|
78
78
|
enter: (_event?: IData | undefined) => boolean;
|
|
@@ -128,7 +128,7 @@ export declare const IBizArray: import("vue").DefineComponent<{
|
|
|
128
128
|
}>> & {
|
|
129
129
|
onFocus?: ((_event?: IData | undefined) => any) | undefined;
|
|
130
130
|
onBlur?: ((_event?: IData | undefined) => any) | undefined;
|
|
131
|
-
onChange?: ((_value: unknown, _name?: string | undefined) => any) | undefined;
|
|
131
|
+
onChange?: ((_value: unknown, _name?: string | undefined, _ignore?: boolean | undefined) => any) | undefined;
|
|
132
132
|
onEnter?: ((_event?: IData | undefined) => any) | undefined;
|
|
133
133
|
onInfoTextChange?: ((_text: string) => any) | undefined;
|
|
134
134
|
}, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IHttpResponse } from '@ibiz-template/core';
|
|
2
|
-
import { EditorController, IAcItemProvider } from '@ibiz-template/runtime';
|
|
3
|
-
import { IAppDEACMode, IAutoComplete, IDEACModeDataItem } from '@ibiz/model-core';
|
|
2
|
+
import { EditorController, IAcItemProvider, IButtonContainerState } from '@ibiz-template/runtime';
|
|
3
|
+
import { IAppDEACMode, IAppDEUIActionGroupDetail, IAutoComplete, IDEACModeDataItem, IUIActionGroupDetail } from '@ibiz/model-core';
|
|
4
4
|
/**
|
|
5
5
|
* 自动完成编辑器控制器
|
|
6
6
|
* @return {*}
|
|
@@ -40,6 +40,16 @@ export declare class AutoCompleteEditorController extends EditorController<IAuto
|
|
|
40
40
|
* @type {IAcItemProvider}
|
|
41
41
|
*/
|
|
42
42
|
acItemProvider?: IAcItemProvider;
|
|
43
|
+
/**
|
|
44
|
+
* 分组行为状态
|
|
45
|
+
*/
|
|
46
|
+
groupActionState: IButtonContainerState;
|
|
47
|
+
/**
|
|
48
|
+
* @description 自填模式行为行为组
|
|
49
|
+
* @type {IAppDEUIActionGroupDetail[]}
|
|
50
|
+
* @memberof AutoCompleteEditorController
|
|
51
|
+
*/
|
|
52
|
+
actionDetails: IAppDEUIActionGroupDetail[];
|
|
43
53
|
protected onInit(): Promise<void>;
|
|
44
54
|
/**
|
|
45
55
|
* 加载实体数据集数据
|
|
@@ -47,7 +57,7 @@ export declare class AutoCompleteEditorController extends EditorController<IAuto
|
|
|
47
57
|
* @param {string} query 模糊匹配字符串
|
|
48
58
|
* @param {IData} data 表单数据
|
|
49
59
|
* @returns {*} {Promise<IHttpResponse<IData[]>>}
|
|
50
|
-
* @memberof
|
|
60
|
+
* @memberof AutoCompleteEditorController
|
|
51
61
|
*/
|
|
52
62
|
getServiceData(query: string, data: IData): Promise<IHttpResponse<IData[]>>;
|
|
53
63
|
/**
|
|
@@ -62,4 +72,12 @@ export declare class AutoCompleteEditorController extends EditorController<IAuto
|
|
|
62
72
|
id: string;
|
|
63
73
|
value: any;
|
|
64
74
|
}>>;
|
|
75
|
+
/**
|
|
76
|
+
* @description 分组行为项点击
|
|
77
|
+
* @param {IUIActionGroupDetail} detail
|
|
78
|
+
* @param {MouseEvent} event
|
|
79
|
+
* @return {*} {Promise<void>}
|
|
80
|
+
* @memberof AutoCompleteEditorController
|
|
81
|
+
*/
|
|
82
|
+
onActionClick(detail: IUIActionGroupDetail, data: IData, event?: MouseEvent): Promise<void>;
|
|
65
83
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RuntimeModelError } from '@ibiz-template/core';
|
|
2
|
-
import { EditorController, getDeACMode, getAcItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { EditorController, ButtonContainerState, getDeACMode, getAcItemProvider, UIActionButtonState, UIActionUtil } from '@ibiz-template/runtime';
|
|
3
3
|
import { mergeDeepLeft } from 'ramda';
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
@@ -44,6 +44,16 @@ class AutoCompleteEditorController extends EditorController {
|
|
|
44
44
|
* @type {IAcItemProvider}
|
|
45
45
|
*/
|
|
46
46
|
__publicField(this, "acItemProvider");
|
|
47
|
+
/**
|
|
48
|
+
* 分组行为状态
|
|
49
|
+
*/
|
|
50
|
+
__publicField(this, "groupActionState", new ButtonContainerState());
|
|
51
|
+
/**
|
|
52
|
+
* @description 自填模式行为行为组
|
|
53
|
+
* @type {IAppDEUIActionGroupDetail[]}
|
|
54
|
+
* @memberof AutoCompleteEditorController
|
|
55
|
+
*/
|
|
56
|
+
__publicField(this, "actionDetails", []);
|
|
47
57
|
}
|
|
48
58
|
async onInit() {
|
|
49
59
|
super.onInit();
|
|
@@ -84,6 +94,37 @@ class AutoCompleteEditorController extends EditorController {
|
|
|
84
94
|
}
|
|
85
95
|
}
|
|
86
96
|
}
|
|
97
|
+
if (this.model.uiactionGroup) {
|
|
98
|
+
this.actionDetails = this.model.uiactionGroup.uiactionGroupDetails || [];
|
|
99
|
+
if (this.actionDetails.length > 0) {
|
|
100
|
+
this.actionDetails.forEach((detail) => {
|
|
101
|
+
const actionid = detail.uiactionId;
|
|
102
|
+
if (actionid) {
|
|
103
|
+
const buttonState = new UIActionButtonState(
|
|
104
|
+
detail.id,
|
|
105
|
+
this.context.srfappid,
|
|
106
|
+
actionid
|
|
107
|
+
);
|
|
108
|
+
this.groupActionState.addState(detail.id, buttonState);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
await this.groupActionState.init();
|
|
112
|
+
this.actionDetails.forEach((detail) => {
|
|
113
|
+
if (detail.capLanguageRes && detail.capLanguageRes.lanResTag) {
|
|
114
|
+
detail.caption = ibiz.i18n.t(
|
|
115
|
+
detail.capLanguageRes.lanResTag,
|
|
116
|
+
detail.caption
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
if (detail.tooltipLanguageRes && detail.tooltipLanguageRes.lanResTag) {
|
|
120
|
+
detail.tooltip = ibiz.i18n.t(
|
|
121
|
+
detail.tooltipLanguageRes.lanResTag,
|
|
122
|
+
detail.tooltip
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
87
128
|
}
|
|
88
129
|
/**
|
|
89
130
|
* 加载实体数据集数据
|
|
@@ -91,7 +132,7 @@ class AutoCompleteEditorController extends EditorController {
|
|
|
91
132
|
* @param {string} query 模糊匹配字符串
|
|
92
133
|
* @param {IData} data 表单数据
|
|
93
134
|
* @returns {*} {Promise<IHttpResponse<IData[]>>}
|
|
94
|
-
* @memberof
|
|
135
|
+
* @memberof AutoCompleteEditorController
|
|
95
136
|
*/
|
|
96
137
|
async getServiceData(query, data) {
|
|
97
138
|
const { context, params } = this.handlePublicParams(
|
|
@@ -150,6 +191,30 @@ class AutoCompleteEditorController extends EditorController {
|
|
|
150
191
|
}
|
|
151
192
|
return [];
|
|
152
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* @description 分组行为项点击
|
|
196
|
+
* @param {IUIActionGroupDetail} detail
|
|
197
|
+
* @param {MouseEvent} event
|
|
198
|
+
* @return {*} {Promise<void>}
|
|
199
|
+
* @memberof AutoCompleteEditorController
|
|
200
|
+
*/
|
|
201
|
+
async onActionClick(detail, data, event) {
|
|
202
|
+
if (event) {
|
|
203
|
+
event.stopPropagation();
|
|
204
|
+
}
|
|
205
|
+
const actionId = detail.uiactionId;
|
|
206
|
+
await UIActionUtil.execAndResolved(
|
|
207
|
+
actionId,
|
|
208
|
+
{
|
|
209
|
+
context: this.context,
|
|
210
|
+
params: this.params,
|
|
211
|
+
data: [data],
|
|
212
|
+
view: this.view,
|
|
213
|
+
event
|
|
214
|
+
},
|
|
215
|
+
detail.appId
|
|
216
|
+
);
|
|
217
|
+
}
|
|
153
218
|
}
|
|
154
219
|
|
|
155
220
|
export { AutoCompleteEditorController };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-autocomplete{width:100%}.ibiz-autocomplete__transfer-item.is-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-autocomplete .ibiz-autocomplete-input{width:100%}.ibiz-autocomplete--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-autocomplete-form-default-content{display:none}.ibiz-form-item .ibiz-autocomplete.is-show-default:hover .ibiz-autocomplete-form-default-content{display:none}.ibiz-form-item .ibiz-autocomplete.is-show-default:hover .ibiz-autocomplete-input{display:block}.ibiz-form-item .ibiz-autocomplete.is-show-default .ibiz-autocomplete-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-autocomplete.is-show-default .ibiz-autocomplete-input{display:none}.ibiz-form-item .ibiz-autocomplete.is-show-default.is-editable .ibiz-autocomplete-form-default-content{display:none}.ibiz-form-item .ibiz-autocomplete.is-show-default.is-editable .ibiz-autocomplete-input{display:block}
|
|
1
|
+
.ibiz-autocomplete{--ibiz-autocomplete-empty-bg-color:var(--ibiz-color-bg-3);width:100%}.ibiz-autocomplete__transfer-item.is-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-autocomplete__action-item{color:var(--ibiz-color-link);text-align:center}.ibiz-autocomplete__empty{padding:0;--ibiz-no-data-min-height:100px;--el-empty-image-width:100px}.ibiz-autocomplete__suffix{cursor:pointer;visibility:inherit;transition:var(--el-transition-duration);transform:rotate(0)}.ibiz-autocomplete__suffix.is-reverse{transform:rotate(-180deg)}.ibiz-autocomplete__transfer{--ibiz-autocomplete-empty-bg-color:var(--ibiz-color-bg-3)}.ibiz-autocomplete__transfer.is-empty .el-autocomplete-suggestion li{padding:0}.ibiz-autocomplete__transfer.is-empty .ibiz-no-data{background-color:var(--ibiz-autocomplete-empty-bg-color)}.ibiz-autocomplete .ibiz-autocomplete-input{width:100%}.ibiz-autocomplete--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-autocomplete .el-autocomplete{vertical-align:middle}.ibiz-autocomplete-form-default-content{display:none}.ibiz-form-item .ibiz-autocomplete.is-show-default:hover .ibiz-autocomplete-form-default-content{display:none}.ibiz-form-item .ibiz-autocomplete.is-show-default:hover .ibiz-autocomplete-input{display:block}.ibiz-form-item .ibiz-autocomplete.is-show-default .ibiz-autocomplete-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-autocomplete.is-show-default .ibiz-autocomplete-input{display:none}.ibiz-form-item .ibiz-autocomplete.is-show-default.is-editable .ibiz-autocomplete-form-default-content{display:none}.ibiz-form-item .ibiz-autocomplete.is-show-default.is-editable .ibiz-autocomplete-input{display:block}
|