@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
|
@@ -76,6 +76,16 @@ class PickerEditorController extends runtime.EditorController {
|
|
|
76
76
|
* @type {IAcItemProvider}
|
|
77
77
|
*/
|
|
78
78
|
__publicField(this, "acItemProvider");
|
|
79
|
+
/**
|
|
80
|
+
* 分组行为状态
|
|
81
|
+
*/
|
|
82
|
+
__publicField(this, "groupActionState", new runtime.ButtonContainerState());
|
|
83
|
+
/**
|
|
84
|
+
* @description 自填模式行为行为组
|
|
85
|
+
* @type {IAppDEUIActionGroupDetail[]}
|
|
86
|
+
* @memberof PickerEditorController
|
|
87
|
+
*/
|
|
88
|
+
__publicField(this, "actionDetails", []);
|
|
79
89
|
}
|
|
80
90
|
async onInit() {
|
|
81
91
|
var _a, _b, _c, _d;
|
|
@@ -130,6 +140,37 @@ class PickerEditorController extends runtime.EditorController {
|
|
|
130
140
|
this.objectIdField = (_b = this.model.objectIdField) == null ? void 0 : _b.toLowerCase();
|
|
131
141
|
this.objectNameField = (_c = this.model.objectNameField) == null ? void 0 : _c.toLowerCase();
|
|
132
142
|
this.objectValueField = (_d = this.model.objectValueField) == null ? void 0 : _d.toLowerCase();
|
|
143
|
+
if (this.model.uiactionGroup) {
|
|
144
|
+
this.actionDetails = this.model.uiactionGroup.uiactionGroupDetails || [];
|
|
145
|
+
if (this.actionDetails.length > 0) {
|
|
146
|
+
this.actionDetails.forEach((detail) => {
|
|
147
|
+
const actionid = detail.uiactionId;
|
|
148
|
+
if (actionid) {
|
|
149
|
+
const buttonState = new runtime.UIActionButtonState(
|
|
150
|
+
detail.id,
|
|
151
|
+
this.context.srfappid,
|
|
152
|
+
actionid
|
|
153
|
+
);
|
|
154
|
+
this.groupActionState.addState(detail.id, buttonState);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
await this.groupActionState.init();
|
|
158
|
+
this.actionDetails.forEach((detail) => {
|
|
159
|
+
if (detail.capLanguageRes && detail.capLanguageRes.lanResTag) {
|
|
160
|
+
detail.caption = ibiz.i18n.t(
|
|
161
|
+
detail.capLanguageRes.lanResTag,
|
|
162
|
+
detail.caption
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
if (detail.tooltipLanguageRes && detail.tooltipLanguageRes.lanResTag) {
|
|
166
|
+
detail.tooltip = ibiz.i18n.t(
|
|
167
|
+
detail.tooltipLanguageRes.lanResTag,
|
|
168
|
+
detail.tooltip
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
133
174
|
}
|
|
134
175
|
/**
|
|
135
176
|
* 初始化noAc和noButton
|
|
@@ -327,6 +368,30 @@ class PickerEditorController extends runtime.EditorController {
|
|
|
327
368
|
}
|
|
328
369
|
return object;
|
|
329
370
|
}
|
|
371
|
+
/**
|
|
372
|
+
* @description 分组行为项点击
|
|
373
|
+
* @param {IUIActionGroupDetail} detail
|
|
374
|
+
* @param {MouseEvent} event
|
|
375
|
+
* @return {*} {Promise<void>}
|
|
376
|
+
* @memberof PickerEditorController
|
|
377
|
+
*/
|
|
378
|
+
async onActionClick(detail, data, event) {
|
|
379
|
+
if (event) {
|
|
380
|
+
event.stopPropagation();
|
|
381
|
+
}
|
|
382
|
+
const actionId = detail.uiactionId;
|
|
383
|
+
await runtime.UIActionUtil.execAndResolved(
|
|
384
|
+
actionId,
|
|
385
|
+
{
|
|
386
|
+
context: this.context,
|
|
387
|
+
params: this.params,
|
|
388
|
+
data: [data],
|
|
389
|
+
view: this.view,
|
|
390
|
+
event
|
|
391
|
+
},
|
|
392
|
+
detail.appId
|
|
393
|
+
);
|
|
394
|
+
}
|
|
330
395
|
}
|
|
331
396
|
|
|
332
397
|
exports.PickerEditorController = PickerEditorController;
|
|
@@ -151,7 +151,7 @@ const IBizDatePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
151
151
|
const readonlyContent = this.formatValue;
|
|
152
152
|
const formDefaultContent = vue.createVNode("div", {
|
|
153
153
|
"class": this.ns.b("form-default-content")
|
|
154
|
-
}, [this.formatValue ? this.formatValue :
|
|
154
|
+
}, [this.formatValue ? this.formatValue : ibiz.config.common.emptyText]);
|
|
155
155
|
return vue.createVNode("div", {
|
|
156
156
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.e(this.editorModel.editorType), this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
157
157
|
"onKeyup": this.handleKeyUp
|
|
@@ -192,7 +192,7 @@ const IBizDateRangePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
192
192
|
"start-placeholder": this.startPlaceHolder,
|
|
193
193
|
"end-placeholder": this.endPlaceHolder,
|
|
194
194
|
"unlink-panels": this.unlinkPanels
|
|
195
|
-
}, this.$attrs), null) :
|
|
195
|
+
}, this.$attrs), null) : ibiz.config.common.emptyText]);
|
|
196
196
|
return vue.createVNode("div", {
|
|
197
197
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
198
198
|
"onKeyup": this.handleKeyUp
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-date-range-picker .el-date-editor{width:100%;line-height:var(--ibiz-editor-default-line-height);display:flex;align-items:center;justify-content:flex-start}.ibiz-date-range-picker .el-date-editor .el-range-input{color:var(--ibiz-form-item-text-color);background-color:transparent}.ibiz-date-range-picker--readonly{font-size:var(--ibiz-form-item-font-size);
|
|
1
|
+
.ibiz-date-range-picker .el-date-editor{width:100%;line-height:var(--ibiz-editor-default-line-height);display:flex;align-items:center;justify-content:flex-start}.ibiz-date-range-picker .el-date-editor .el-range-input{color:var(--ibiz-form-item-text-color);background-color:transparent}.ibiz-date-range-picker--readonly{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-readonly-color);line-height:var(--ibiz-editor-default-line-height)}.ibiz-date-range-picker-form-default-content{display:none}.ibiz-form-item .ibiz-date-range-picker.is-show-default:hover .ibiz-date-range-picker-form-default-content{display:none}.ibiz-form-item .ibiz-date-range-picker.is-show-default:hover .ibiz-date-range-picker-input{display:flex}.ibiz-form-item .ibiz-date-range-picker.is-show-default .ibiz-date-range-picker-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-date-range-picker.is-show-default .ibiz-date-range-picker-form-default-content .ibiz-date-range-picker-default-input{box-shadow:none}.ibiz-form-item .ibiz-date-range-picker.is-show-default .ibiz-date-range-picker-form-default-content.is-has-val{padding:0}.ibiz-form-item .ibiz-date-range-picker.is-show-default .ibiz-date-range-picker-input{display:none}.ibiz-form-item .ibiz-date-range-picker.is-show-default.is-editable .ibiz-date-range-picker-form-default-content{display:none}.ibiz-form-item .ibiz-date-range-picker.is-show-default.is-editable .ibiz-date-range-picker-input{display:flex}
|
|
@@ -71,20 +71,12 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
71
71
|
});
|
|
72
72
|
return list;
|
|
73
73
|
};
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const codeListModel = app.codeList.getCodeList(c.model.appCodeListId);
|
|
78
|
-
if (codeListModel) {
|
|
79
|
-
codeItemValueNumber.value = codeListModel.codeItemValueNumber || false;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
isLoading.value = true;
|
|
83
|
-
let codeList = await c.loadCodeList(props.data);
|
|
74
|
+
const afterLoadCodeList = (codeList) => {
|
|
75
|
+
items.value = [];
|
|
76
|
+
codeListItems.value = [];
|
|
84
77
|
if (c.multiple && !codeList.some((item) => item.children)) {
|
|
85
78
|
codeList = c.handleCodeListAllItems(codeList);
|
|
86
79
|
}
|
|
87
|
-
isLoadedCodeList.value = true;
|
|
88
80
|
if (c.blankItemName && !c.multiple) {
|
|
89
81
|
items.value = [{
|
|
90
82
|
value: void 0,
|
|
@@ -101,6 +93,19 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
101
93
|
break;
|
|
102
94
|
}
|
|
103
95
|
}
|
|
96
|
+
};
|
|
97
|
+
const loadCodeList = async () => {
|
|
98
|
+
if (c.model.appCodeListId) {
|
|
99
|
+
const app = ibiz.hub.getApp(c.context.srfappid);
|
|
100
|
+
const codeListModel = app.codeList.getCodeList(c.model.appCodeListId);
|
|
101
|
+
if (codeListModel) {
|
|
102
|
+
codeItemValueNumber.value = codeListModel.codeItemValueNumber || false;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
isLoading.value = true;
|
|
106
|
+
const codeList = await c.loadCodeList(props.data);
|
|
107
|
+
afterLoadCodeList(codeList);
|
|
108
|
+
isLoadedCodeList.value = true;
|
|
104
109
|
isLoading.value = false;
|
|
105
110
|
};
|
|
106
111
|
vue.watch(() => props.value, async (newVal, oldVal) => {
|
|
@@ -154,7 +159,7 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
154
159
|
} = runtime.useCodeListSelection(c.allItemsValue);
|
|
155
160
|
const curValue = vue.computed({
|
|
156
161
|
get() {
|
|
157
|
-
var _a, _b
|
|
162
|
+
var _a, _b;
|
|
158
163
|
if (!isLoadedCodeList.value) {
|
|
159
164
|
return c.multiple ? [] : "";
|
|
160
165
|
}
|
|
@@ -173,7 +178,7 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
173
178
|
}
|
|
174
179
|
return c.multiple ? props.value : props.value.toString();
|
|
175
180
|
}
|
|
176
|
-
return
|
|
181
|
+
return props.value || props.value === 0 ? props.value.toString() : "";
|
|
177
182
|
},
|
|
178
183
|
set(_select) {
|
|
179
184
|
let select = _select;
|
|
@@ -195,13 +200,21 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
195
200
|
}
|
|
196
201
|
emit("change", selectArr);
|
|
197
202
|
} else if (editorItems && editorItems.length > 0) {
|
|
198
|
-
|
|
203
|
+
let emitVal = select;
|
|
204
|
+
if (codeItemValueNumber.value) {
|
|
205
|
+
emitVal = select === "" ? null : Number(select);
|
|
206
|
+
}
|
|
207
|
+
emit("change", emitVal, editorItems[0].id);
|
|
199
208
|
const selectItem = getCodeListItemByValue(codeItemValueNumber.value ? Number(select) : select);
|
|
200
209
|
if (selectItem) {
|
|
201
210
|
emit("change", selectItem.text);
|
|
202
211
|
}
|
|
203
212
|
} else {
|
|
204
|
-
|
|
213
|
+
let emitVal = select;
|
|
214
|
+
if (codeItemValueNumber.value) {
|
|
215
|
+
emitVal = select === "" ? null : Number(select);
|
|
216
|
+
}
|
|
217
|
+
emit("change", emitVal);
|
|
205
218
|
}
|
|
206
219
|
setEditable(false);
|
|
207
220
|
if (c.editorParams.alwaysLoad === "true") {
|
|
@@ -274,13 +287,8 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
274
287
|
}
|
|
275
288
|
};
|
|
276
289
|
const fn = (data) => {
|
|
277
|
-
if (data)
|
|
278
|
-
|
|
279
|
-
items.value = c.handleCodeListAllItems(data);
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
items.value = data;
|
|
283
|
-
}
|
|
290
|
+
if (data)
|
|
291
|
+
afterLoadCodeList(data);
|
|
284
292
|
};
|
|
285
293
|
vue3Util.useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
286
294
|
vue.onMounted(() => {
|
|
@@ -455,7 +463,7 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
455
463
|
}, [vue.createVNode("span", {
|
|
456
464
|
"class": this.ns.be("content-item", "label")
|
|
457
465
|
}, [text])]);
|
|
458
|
-
}) :
|
|
466
|
+
}) : ibiz.config.common.emptyText]);
|
|
459
467
|
return vue.createVNode("div", {
|
|
460
468
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent), this.c.editorParams.type === "round" && this.ns.m("round")],
|
|
461
469
|
"style": this.cssVars
|
|
@@ -89,7 +89,7 @@ const IBizEmojiPicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
89
89
|
const renderFormDefaultContent = () => {
|
|
90
90
|
return vue.createVNode("div", {
|
|
91
91
|
"class": [ns.b("form-default-content"), ns.is("clear", !!emoji.value)]
|
|
92
|
-
}, [emoji.value ? emoji.value :
|
|
92
|
+
}, [emoji.value ? emoji.value : ibiz.config.common.emptyText]);
|
|
93
93
|
};
|
|
94
94
|
const renderReference = () => {
|
|
95
95
|
return vue.createVNode(vue.resolveComponent("el-button"), {
|
|
@@ -56,20 +56,12 @@ const IBizVirtualizedList = /* @__PURE__ */ vue.defineComponent({
|
|
|
56
56
|
});
|
|
57
57
|
return list;
|
|
58
58
|
};
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const codeListModel = app.codeList.getCodeList(c.model.appCodeListId);
|
|
63
|
-
if (codeListModel) {
|
|
64
|
-
codeItemValueNumber.value = codeListModel.codeItemValueNumber || false;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
isLoading.value = true;
|
|
68
|
-
let codeList = await c.loadCodeList(props.data);
|
|
59
|
+
const afterLoadCodeList = (codeList) => {
|
|
60
|
+
items.value = [];
|
|
61
|
+
codeListItems.value = [];
|
|
69
62
|
if (c.multiple && !codeList.some((item) => item.children)) {
|
|
70
63
|
codeList = c.handleCodeListAllItems(codeList);
|
|
71
64
|
}
|
|
72
|
-
isLoadedCodeList.value = true;
|
|
73
65
|
if (c.blankItemName && !c.multiple) {
|
|
74
66
|
items.value = [{
|
|
75
67
|
value: void 0,
|
|
@@ -86,6 +78,19 @@ const IBizVirtualizedList = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
78
|
break;
|
|
87
79
|
}
|
|
88
80
|
}
|
|
81
|
+
};
|
|
82
|
+
const loadCodeList = async () => {
|
|
83
|
+
if (c.model.appCodeListId) {
|
|
84
|
+
const app = ibiz.hub.getApp(c.context.srfappid);
|
|
85
|
+
const codeListModel = app.codeList.getCodeList(c.model.appCodeListId);
|
|
86
|
+
if (codeListModel) {
|
|
87
|
+
codeItemValueNumber.value = codeListModel.codeItemValueNumber || false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
isLoading.value = true;
|
|
91
|
+
const codeList = await c.loadCodeList(props.data);
|
|
92
|
+
afterLoadCodeList(codeList);
|
|
93
|
+
isLoadedCodeList.value = true;
|
|
89
94
|
isLoading.value = false;
|
|
90
95
|
};
|
|
91
96
|
vue.watch(() => props.value, async (newVal, oldVal) => {
|
|
@@ -249,13 +254,8 @@ const IBizVirtualizedList = /* @__PURE__ */ vue.defineComponent({
|
|
|
249
254
|
}
|
|
250
255
|
};
|
|
251
256
|
const fn = (data) => {
|
|
252
|
-
if (data)
|
|
253
|
-
|
|
254
|
-
items.value = c.handleCodeListAllItems(data);
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
items.value = data;
|
|
258
|
-
}
|
|
257
|
+
if (data)
|
|
258
|
+
afterLoadCodeList(data);
|
|
259
259
|
};
|
|
260
260
|
vue3Util.useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
261
261
|
vue.onMounted(() => {
|
|
@@ -29,7 +29,7 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
|
|
|
29
29
|
const editorRef = vue.shallowRef();
|
|
30
30
|
const valueHtml = vue.ref("");
|
|
31
31
|
const headers = vue.ref({
|
|
32
|
-
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(
|
|
32
|
+
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(core.getAppCookie(core.CoreConst.TOKEN))
|
|
33
33
|
});
|
|
34
34
|
const uploadUrl = vue.ref("");
|
|
35
35
|
const downloadUrl = vue.ref("");
|
package/lib/editor/index.cjs
CHANGED
|
@@ -33,6 +33,7 @@ require('./preset/index.cjs');
|
|
|
33
33
|
require('./carousel/index.cjs');
|
|
34
34
|
require('./user/ibiz-searchcond-edit/index.cjs');
|
|
35
35
|
require('./date-range-select/index.cjs');
|
|
36
|
+
var ibizImageCropping = require('./upload/ibiz-image-cropping/ibiz-image-cropping.cjs');
|
|
36
37
|
var span = require('./span/span/span.cjs');
|
|
37
38
|
var spanLink = require('./span/span-link/span-link.cjs');
|
|
38
39
|
var input = require('./text-box/input/input.cjs');
|
|
@@ -102,6 +103,7 @@ var carouselEditor_provider = require('./carousel/carousel-editor.provider.cjs')
|
|
|
102
103
|
"use strict";
|
|
103
104
|
const IBizEditor = {
|
|
104
105
|
install: (v) => {
|
|
106
|
+
v.component(ibizImageCropping.IBizImageCropping.name, ibizImageCropping.IBizImageCropping);
|
|
105
107
|
v.component(notSupportedEditor.NotSupportedEditor.name, notSupportedEditor.NotSupportedEditor);
|
|
106
108
|
v.component(span.IBizSpan.name, span.IBizSpan);
|
|
107
109
|
v.component(spanLink.IBizSpanLink.name, spanLink.IBizSpanLink);
|
|
@@ -239,6 +241,10 @@ const IBizEditor = {
|
|
|
239
241
|
"PICTURE_ONE_RAW",
|
|
240
242
|
() => new uploadEditor_provider.FileUploaderEditorProvider("PICTURE_ONE_RAW")
|
|
241
243
|
);
|
|
244
|
+
runtime.registerEditorProvider(
|
|
245
|
+
"PICTURE_CROPPING",
|
|
246
|
+
() => new uploadEditor_provider.FileUploaderEditorProvider("PICTURE_CROPPING")
|
|
247
|
+
);
|
|
242
248
|
runtime.registerEditorProvider("RAW", () => new rawEditor_provider.RawEditorProvider());
|
|
243
249
|
runtime.registerEditorProvider("STEPPER", () => new stepperEditor_provider.StepperEditorProvider());
|
|
244
250
|
runtime.registerEditorProvider("RATING", () => new rateEditor_provider.RateEditorProvider());
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
var ramda = require('ramda');
|
|
6
|
-
require('./ibiz-list-box.css');
|
|
7
6
|
var runtime = require('@ibiz-template/runtime');
|
|
7
|
+
require('./ibiz-list-box.css');
|
|
8
8
|
|
|
9
9
|
"use strict";
|
|
10
10
|
function _isSlot(s) {
|
|
@@ -23,7 +23,7 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
23
23
|
const editor = vue.ref(null);
|
|
24
24
|
const id = qxUtil.createUUID();
|
|
25
25
|
const headers = vue.ref({
|
|
26
|
-
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(
|
|
26
|
+
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(core.getAppCookie(core.CoreConst.TOKEN))
|
|
27
27
|
});
|
|
28
28
|
const uploadUrl = vue.ref("");
|
|
29
29
|
const downloadUrl = vue.ref("");
|
|
@@ -144,7 +144,7 @@ const IBizMarkDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
144
144
|
const calcMarkDownStyle = () => {
|
|
145
145
|
if (window.ResizeObserver && markDownBox.value) {
|
|
146
146
|
const tempCssVars = {
|
|
147
|
-
width: "".concat(markDownBox.value.offsetWidth, "px")
|
|
147
|
+
width: markDownBox.value.offsetWidth ? "".concat(markDownBox.value.offsetWidth, "px") : "100%"
|
|
148
148
|
};
|
|
149
149
|
if (c && typeof c.parent.model.height === "number") {
|
|
150
150
|
Object.assign(tempCssVars, {
|
|
@@ -193,7 +193,7 @@ const IBizNumberRangePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
193
193
|
"class": this.ns.b("default-separator")
|
|
194
194
|
}, [this.rangeSeparator]), vue.createVNode("div", {
|
|
195
195
|
"class": this.ns.b("default-max")
|
|
196
|
-
}, [this.maxValue])] :
|
|
196
|
+
}, [this.maxValue])] : ibiz.config.common.emptyText]);
|
|
197
197
|
return vue.createVNode("div", {
|
|
198
198
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
199
199
|
"ref": "componentRef"
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
-
require('./ibiz-radio.css');
|
|
6
5
|
var qxUtil = require('qx-util');
|
|
6
|
+
require('./ibiz-radio.css');
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
9
9
|
function _isSlot(s) {
|
|
@@ -47,9 +47,8 @@ const IBizRadio = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
47
|
deep: true
|
|
48
48
|
});
|
|
49
49
|
const fn = (data) => {
|
|
50
|
-
if (data)
|
|
50
|
+
if (data)
|
|
51
51
|
items.value = data;
|
|
52
|
-
}
|
|
53
52
|
};
|
|
54
53
|
vue3Util.useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
55
54
|
const valueText = vue.computed(() => {
|
|
@@ -160,7 +160,7 @@ const IBizSpan = /* @__PURE__ */ vue.defineComponent({
|
|
|
160
160
|
content = this.text;
|
|
161
161
|
this.spanTitle = this.text;
|
|
162
162
|
} else {
|
|
163
|
-
content =
|
|
163
|
+
content = ibiz.config.common.emptyText;
|
|
164
164
|
}
|
|
165
165
|
const isEllipsis = this.c.editorParams.overflowMode === "ellipsis" || this.c.model.wrapMode === "NOWRAP";
|
|
166
166
|
return vue.createVNode("span", {
|
|
@@ -205,7 +205,7 @@ const IBizInputNumber = /* @__PURE__ */ vue.defineComponent({
|
|
|
205
205
|
}
|
|
206
206
|
return vue.createVNode("div", {
|
|
207
207
|
"class": this.ns.b("form-default-content")
|
|
208
|
-
}, [this.currentVal || this.currentVal === 0 ? this.currentFormatVal + unit :
|
|
208
|
+
}, [this.currentVal || this.currentVal === 0 ? this.currentFormatVal + unit : ibiz.config.common.emptyText]);
|
|
209
209
|
};
|
|
210
210
|
return vue.createVNode("div", {
|
|
211
211
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)]
|
|
@@ -376,7 +376,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
376
376
|
}
|
|
377
377
|
const formDefaultContent = vue.createVNode("div", {
|
|
378
378
|
"class": this.ns.b("form-default-content")
|
|
379
|
-
}, [this.currentVal ? this.type === "password" ? this.currentVal.split("").map((_item) => "\u2022") : this.currentFormatVal :
|
|
379
|
+
}, [this.currentVal ? this.type === "password" ? this.currentVal.split("").map((_item) => "\u2022") : this.currentFormatVal : ibiz.config.common.emptyText]);
|
|
380
380
|
return vue.createVNode("div", {
|
|
381
381
|
"class": [this.ns.b(), this.ns.is("textarea", Object.is(this.type, "textarea")), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
382
382
|
"style": {
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
require('./ibiz-image-cropping.css');
|
|
6
|
+
var useIviewUpload = require('../use/use-iview-upload.cjs');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
const IBizImageCropping = /* @__PURE__ */ vue.defineComponent({
|
|
10
|
+
name: "IBizImageCropping",
|
|
11
|
+
props: vue3Util.getUploadProps(),
|
|
12
|
+
emits: vue3Util.getEditorEmits(),
|
|
13
|
+
setup(props, {
|
|
14
|
+
emit
|
|
15
|
+
}) {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
const ns = vue3Util.useNamespace("image-cropping-upload");
|
|
18
|
+
const c = props.controller;
|
|
19
|
+
const {
|
|
20
|
+
useInFocusAndBlur,
|
|
21
|
+
useInValueChange
|
|
22
|
+
} = vue3Util.useAutoFocusBlur(props, emit);
|
|
23
|
+
const {
|
|
24
|
+
uploadUrl,
|
|
25
|
+
headers,
|
|
26
|
+
files,
|
|
27
|
+
limit,
|
|
28
|
+
onDownload,
|
|
29
|
+
onError,
|
|
30
|
+
onRemove,
|
|
31
|
+
onSuccess,
|
|
32
|
+
beforeUpload
|
|
33
|
+
} = useIviewUpload.useIViewUpload(props, (value) => {
|
|
34
|
+
emit("change", value);
|
|
35
|
+
useInValueChange();
|
|
36
|
+
}, c);
|
|
37
|
+
const dialogImageUrl = vue.ref([]);
|
|
38
|
+
const dialogImageUrlIndex = vue.ref(0);
|
|
39
|
+
const dialogVisible = vue.ref(false);
|
|
40
|
+
const uploadTag = vue.ref(false);
|
|
41
|
+
const imageUpload = vue.ref();
|
|
42
|
+
const cropRect = {};
|
|
43
|
+
if ((_a = c.editorParams) == null ? void 0 : _a.cropWidth) {
|
|
44
|
+
Object.assign(cropRect, {
|
|
45
|
+
cropareaWidth: Number(c.editorParams.cropWidth)
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if ((_b = c.editorParams) == null ? void 0 : _b.cropHeight) {
|
|
49
|
+
Object.assign(cropRect, {
|
|
50
|
+
cropareaHeight: Number(c.editorParams.cropHeight)
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
const tempFileList = vue.ref();
|
|
54
|
+
const cropVisible = vue.ref(false);
|
|
55
|
+
const onDialogVisibleChange = (value) => {
|
|
56
|
+
dialogVisible.value = value;
|
|
57
|
+
};
|
|
58
|
+
const onPreview = (file) => {
|
|
59
|
+
dialogImageUrl.value = [];
|
|
60
|
+
files.value.forEach((i) => {
|
|
61
|
+
if (i.base64) {
|
|
62
|
+
dialogImageUrl.value.push(i.base64);
|
|
63
|
+
} else if (i.url) {
|
|
64
|
+
dialogImageUrl.value.push(i.url);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
dialogImageUrlIndex.value = files.value.findIndex((item) => item.url === file.url);
|
|
68
|
+
dialogVisible.value = true;
|
|
69
|
+
};
|
|
70
|
+
const noUploadIcon = vue.computed(() => {
|
|
71
|
+
return limit.value === 1 && files.value.length === 1;
|
|
72
|
+
});
|
|
73
|
+
const showFormDefaultContent = vue.computed(() => {
|
|
74
|
+
if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
return false;
|
|
78
|
+
});
|
|
79
|
+
const {
|
|
80
|
+
componentRef
|
|
81
|
+
} = vue3Util.useFocusAndBlur(() => emit("focus"), () => useInFocusAndBlur());
|
|
82
|
+
const onChange = (file) => {
|
|
83
|
+
if (file.status === "ready" && !uploadTag.value) {
|
|
84
|
+
tempFileList.value = file;
|
|
85
|
+
uploadTag.value = true;
|
|
86
|
+
cropVisible.value = true;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const dataURLtoBlob = (dataURL) => {
|
|
90
|
+
const byteString = atob(dataURL.split(",")[1]);
|
|
91
|
+
const mimeString = dataURL.split(",")[0].split(":")[1].split(";")[0];
|
|
92
|
+
const arrayBuffer = new ArrayBuffer(byteString.length);
|
|
93
|
+
const intArray = new Uint8Array(arrayBuffer);
|
|
94
|
+
for (let i = 0; i < byteString.length; i++) {
|
|
95
|
+
intArray[i] = byteString.charCodeAt(i);
|
|
96
|
+
}
|
|
97
|
+
return new Blob([arrayBuffer], {
|
|
98
|
+
type: mimeString
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
const cropChange = (url) => {
|
|
102
|
+
if (!url) {
|
|
103
|
+
uploadTag.value = false;
|
|
104
|
+
cropVisible.value = false;
|
|
105
|
+
ibiz.message.info(ibiz.i18n.t("editor.upload.cancelUpload"));
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
const blob = dataURLtoBlob(url);
|
|
109
|
+
const _tempFile = new File([blob], "cropimg.png", {
|
|
110
|
+
type: blob.type
|
|
111
|
+
});
|
|
112
|
+
if (_tempFile) {
|
|
113
|
+
vue.nextTick(() => {
|
|
114
|
+
imageUpload.value.handleRemove(tempFileList.value);
|
|
115
|
+
imageUpload.value.handleStart(_tempFile);
|
|
116
|
+
tempFileList.value = void 0;
|
|
117
|
+
imageUpload.value.submit();
|
|
118
|
+
uploadTag.value = false;
|
|
119
|
+
cropVisible.value = false;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
const cropDialogClose = () => {
|
|
124
|
+
if (tempFileList.value) {
|
|
125
|
+
ibiz.message.info(ibiz.i18n.t("editor.upload.cancelUpload"));
|
|
126
|
+
imageUpload.value.handleRemove(tempFileList.value);
|
|
127
|
+
}
|
|
128
|
+
uploadTag.value = false;
|
|
129
|
+
};
|
|
130
|
+
return {
|
|
131
|
+
ns,
|
|
132
|
+
c,
|
|
133
|
+
files,
|
|
134
|
+
limit,
|
|
135
|
+
headers,
|
|
136
|
+
uploadUrl,
|
|
137
|
+
dialogImageUrl,
|
|
138
|
+
dialogVisible,
|
|
139
|
+
noUploadIcon,
|
|
140
|
+
beforeUpload,
|
|
141
|
+
onSuccess,
|
|
142
|
+
onError,
|
|
143
|
+
onRemove,
|
|
144
|
+
onDownload,
|
|
145
|
+
onDialogVisibleChange,
|
|
146
|
+
onPreview,
|
|
147
|
+
componentRef,
|
|
148
|
+
showFormDefaultContent,
|
|
149
|
+
dialogImageUrlIndex,
|
|
150
|
+
cropVisible,
|
|
151
|
+
tempFileList,
|
|
152
|
+
imageUpload,
|
|
153
|
+
cropRect,
|
|
154
|
+
onChange,
|
|
155
|
+
cropDialogClose,
|
|
156
|
+
cropChange
|
|
157
|
+
};
|
|
158
|
+
},
|
|
159
|
+
render() {
|
|
160
|
+
return vue.createVNode("div", {
|
|
161
|
+
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.readonly && this.c.autoPreview && this.ns.m("autosize"), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
162
|
+
"ref": "componentRef"
|
|
163
|
+
}, [vue.createVNode("div", {
|
|
164
|
+
"class": this.ns.e("image-upload-list")
|
|
165
|
+
}, [this.files.map((item) => vue.createVNode("div", {
|
|
166
|
+
"key": item.id,
|
|
167
|
+
"class": this.ns.e("list-item")
|
|
168
|
+
}, [vue.createVNode("img", {
|
|
169
|
+
"src": item.base64 ? item.base64 : item.url
|
|
170
|
+
}, null), vue.createVNode("div", {
|
|
171
|
+
"class": this.ns.e("list-item-cover")
|
|
172
|
+
}, [vue.createVNode("ion-icon", {
|
|
173
|
+
"class": this.ns.e("preview-icon"),
|
|
174
|
+
"onClick": () => this.onPreview(item),
|
|
175
|
+
"name": "search"
|
|
176
|
+
}, null), vue.createVNode("ion-icon", {
|
|
177
|
+
"class": this.ns.e("download-icon"),
|
|
178
|
+
"onClick": () => this.onDownload(item),
|
|
179
|
+
"name": "download"
|
|
180
|
+
}, null), vue.createVNode("ion-icon", {
|
|
181
|
+
"class": this.ns.e("remove-icon"),
|
|
182
|
+
"onClick": () => this.onRemove(item),
|
|
183
|
+
"name": "remove"
|
|
184
|
+
}, null)])]))]), vue.createVNode(vue.resolveComponent("el-upload"), vue.mergeProps({
|
|
185
|
+
"ref": "imageUpload",
|
|
186
|
+
"class": [this.ns.b("icon"), this.ns.is("not-show", this.noUploadIcon)],
|
|
187
|
+
"file-list": this.files,
|
|
188
|
+
"action": this.uploadUrl,
|
|
189
|
+
"headers": this.headers,
|
|
190
|
+
"disabled": this.disabled,
|
|
191
|
+
"multiple": false,
|
|
192
|
+
"limit": this.limit,
|
|
193
|
+
"show-file-list": false,
|
|
194
|
+
"accept": this.c.accept,
|
|
195
|
+
"list-type": "picture-card",
|
|
196
|
+
"auto-upload": false,
|
|
197
|
+
"onChange": this.onChange,
|
|
198
|
+
"before-upload": this.beforeUpload,
|
|
199
|
+
"onSuccess": this.onSuccess,
|
|
200
|
+
"onError": this.onError,
|
|
201
|
+
"onRemove": this.onRemove,
|
|
202
|
+
"onPreview": this.onDownload
|
|
203
|
+
}, this.$attrs), {
|
|
204
|
+
default: () => [vue.createVNode("ion-icon", {
|
|
205
|
+
"name": "add-outline",
|
|
206
|
+
"class": this.ns.e("image-upload-add")
|
|
207
|
+
}, null)]
|
|
208
|
+
}), vue.createVNode(vue.resolveComponent("el-dialog"), {
|
|
209
|
+
"modelValue": this.cropVisible,
|
|
210
|
+
"onUpdate:modelValue": ($event) => this.cropVisible = $event,
|
|
211
|
+
"title": ibiz.i18n.t("editor.upload.cropImg"),
|
|
212
|
+
"class": this.ns.e("upload-dialog"),
|
|
213
|
+
"onClosed": this.cropDialogClose,
|
|
214
|
+
"destroy-on-close": true,
|
|
215
|
+
"width": 640
|
|
216
|
+
}, {
|
|
217
|
+
default: () => {
|
|
218
|
+
return vue.createVNode(vue.resolveComponent("iBizCropping"), vue.mergeProps({
|
|
219
|
+
"img": this.tempFileList,
|
|
220
|
+
"onChange": this.cropChange
|
|
221
|
+
}, this.cropRect), null);
|
|
222
|
+
}
|
|
223
|
+
}), this.dialogVisible ? vue.createVNode(vue.resolveComponent("el-image-viewer"), vue.mergeProps({
|
|
224
|
+
"onClose": () => this.onDialogVisibleChange(false),
|
|
225
|
+
"url-list": this.dialogImageUrl,
|
|
226
|
+
"hide-on-click-modal": true,
|
|
227
|
+
"close-on-press-escape": true,
|
|
228
|
+
"teleported": true,
|
|
229
|
+
"z-index": 9999,
|
|
230
|
+
"initial-index": this.dialogImageUrlIndex
|
|
231
|
+
}, this.$attrs), null) : null]);
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
exports.IBizImageCropping = IBizImageCropping;
|