@ibiz-template/vue3-components 0.7.10 → 0.7.12
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-jfPZ04eU.js → chart-Wh3LMgZ1.js} +1 -1
- package/dist/index-3xonNDdv.js +4 -0
- package/dist/index-WP6TUdg-.js +1 -0
- package/dist/index-kgWpXafW.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-A4-TpWet.js +1 -0
- package/dist/wang-editor-PQvDXaA9.js +1 -0
- package/dist/{xlsx-util-my1qbty8.js → xlsx-util-Zf9d2PeX.js} +1 -1
- package/es/common/data-import2/data-import2.mjs +1 -1
- package/es/common/doing-notice/doing-notice.mjs +7 -5
- package/es/common/map-chart/map-chart.util.mjs +4 -1
- package/es/common/view-message/view-message.css +1 -1
- package/es/common/view-message/view-message.d.ts +848 -1
- package/es/common/view-message/view-message.mjs +52 -22
- package/es/control/app-menu/app-menu.mjs +6 -2
- package/es/control/calendar/calendar.mjs +1 -1
- package/es/control/chart/chart.mjs +1 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +19002 -27
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.mjs +4 -2
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +66 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +14 -11
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +2 -2
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.provider.mjs +3 -1
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +17 -11
- package/es/control/gantt/gantt.d.ts +1 -0
- package/es/control/gantt/gantt.mjs +15 -4
- package/es/control/gantt/index.d.ts +1 -0
- package/es/control/grid/grid/grid.mjs +3 -2
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +3 -1
- package/es/control/grid/row-edit-popover/row-edit-popover.mjs +9 -5
- package/es/control/grid/row-edit-popover/use-row-edit-popover.mjs +3 -3
- package/es/control/kanban/kanban.mjs +17 -9
- package/es/control/list/list.mjs +2 -2
- package/es/control/report-panel/report-detail/user2-report-panel/user2-report-panel.mjs +2 -2
- package/es/control/report-panel/report-panel.mjs +2 -2
- package/es/control/search-bar/filter-tree/filter-tree.mjs +7 -5
- package/es/control/search-bar/search-bar.mjs +2 -2
- package/es/control/search-bar/search-groups/edit-group-util.mjs +10 -2
- package/es/control/search-bar/search-groups/new-group-util.mjs +13 -3
- package/es/control/search-bar/search-groups/search-groups.d.ts +1 -1
- package/es/control/search-bar/search-groups/search-groups.mjs +47 -38
- package/es/control/toolbar/export-excel/export-excel.mjs +23 -21
- package/es/control/tree/el-tree-util.mjs +4 -2
- package/es/control/tree/tree.mjs +3 -1
- package/es/control/tree-grid/tree-grid.mjs +3 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.mjs +3 -1
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +6 -2
- package/es/control/tree-grid-ex/use-row-edit-popover.mjs +3 -3
- package/es/control/wizard-panel/wizard-panel.mjs +3 -3
- package/es/editor/autocomplete/autocomplete-editor.controller.mjs +4 -1
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +3 -1
- package/es/editor/code/monaco-editor/monaco-editor.mjs +3 -3
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -1
- package/es/editor/data-picker/picker-editor.controller.mjs +12 -3
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +1 -1
- package/es/editor/html/wang-editor/ai/ai-modules.mjs +1 -1
- package/es/editor/html/wang-editor/wang-editor.mjs +18 -12
- package/es/editor/list-box/list-box-picker-editor.controller.mjs +4 -1
- package/es/editor/markdown/markdown-editor.controller.mjs +2 -2
- package/es/editor/not-supported-editor/not-supported-editor.mjs +4 -2
- package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.mjs +4 -2
- package/es/editor/span/span-editor.controller.mjs +4 -1
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.mjs +3 -1
- package/es/editor/text-box/text-box-editor.controller.mjs +4 -4
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +7 -3
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +1 -1
- package/es/index.mjs +1 -0
- package/es/locale/en/index.d.ts +656 -42
- package/es/locale/en/index.mjs +672 -58
- package/es/locale/zh-CN/index.d.ts +654 -42
- package/es/locale/zh-CN/index.mjs +660 -48
- package/es/panel-component/auth-captcha/auth-captcha.controller.d.ts +37 -0
- package/es/panel-component/auth-captcha/auth-captcha.controller.mjs +69 -0
- package/es/panel-component/auth-captcha/auth-captcha.css +1 -0
- package/es/panel-component/auth-captcha/auth-captcha.d.ts +28 -0
- package/es/panel-component/auth-captcha/auth-captcha.mjs +63 -0
- package/es/panel-component/auth-captcha/auth-captcha.provider.d.ts +14 -0
- package/es/panel-component/auth-captcha/auth-captcha.provider.mjs +21 -0
- package/es/panel-component/auth-captcha/auth-captcha.state.d.ts +38 -0
- package/es/panel-component/auth-captcha/auth-captcha.state.mjs +44 -0
- package/es/panel-component/auth-captcha/index.d.ts +25 -0
- package/es/panel-component/auth-captcha/index.mjs +15 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.mjs +1 -1
- package/es/panel-component/index.mjs +4 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.mjs +2 -2
- package/es/panel-component/nav-tabs/nav-tabs.mjs +4 -4
- package/es/panel-component/panel-remember-me/panel-remember-me.mjs +1 -1
- package/es/panel-component/panel-tab-panel/index.d.ts +4 -2
- package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.d.ts +31 -0
- package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.mjs +42 -0
- package/es/panel-component/panel-tab-panel/panel-tab-panel.d.ts +5 -3
- package/es/panel-component/panel-tab-panel/panel-tab-panel.mjs +14 -5
- package/es/panel-component/panel-tab-panel/panel-tab-panel.provider.d.ts +2 -1
- package/es/panel-component/panel-tab-panel/panel-tab-panel.provider.mjs +2 -2
- package/es/panel-component/panel-tab-panel/panel-tab-panel.state.d.ts +20 -0
- package/es/panel-component/panel-tab-panel/panel-tab-panel.state.mjs +24 -0
- package/es/panel-component/searchform-buttons/searchform-buttons.controller.mjs +3 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +16 -11
- package/es/panel-component/short-cut/index.d.ts +43 -0
- package/es/panel-component/short-cut/index.mjs +12 -0
- package/es/panel-component/short-cut/short-cut.css +1 -0
- package/es/panel-component/short-cut/short-cut.d.ts +46 -0
- package/es/panel-component/short-cut/short-cut.mjs +190 -0
- package/es/panel-component/short-cut/short-cut.provider.d.ts +12 -0
- package/es/panel-component/short-cut/short-cut.provider.mjs +21 -0
- package/es/panel-component/user-message/async-action/async-action-preview/async-action-preview.mjs +20 -14
- package/es/panel-component/user-message/async-action/async-action-tab/async-action-tab.mjs +5 -3
- package/es/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.mjs +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.mjs +3 -3
- package/es/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.mjs +9 -5
- package/es/panel-component/user-message/user-message.mjs +4 -4
- package/es/panel-component/view-msg-pos/view-msg-pos.mjs +4 -1
- package/es/util/index.d.ts +1 -0
- package/es/util/index.mjs +1 -0
- package/es/util/render-util/render-util.d.ts +48 -0
- package/es/util/render-util/render-util.mjs +60 -0
- package/es/view/403-view/403-view.mjs +4 -4
- package/es/view/404-view/404-view.mjs +4 -4
- package/es/view/error-view/error-view.mjs +3 -1
- package/es/view/login-view/login-view.mjs +27 -23
- package/es/view/sub-app-ref-view/sub-app-ref-view.mjs +1 -1
- package/es/view-engine/edit-view.engine.mjs +22 -18
- package/es/view-engine/exp-view.engine.mjs +1 -1
- package/es/view-engine/login-view.engine.mjs +18 -3
- package/es/view-engine/mpickup-view-engine.mjs +1 -1
- package/es/view-engine/opt-view.engine.mjs +2 -2
- package/es/view-engine/tab-exp-view.engine.mjs +2 -2
- package/es/view-engine/wf-dyna-edit-view.engine.mjs +5 -2
- package/es/web-app/guard/auth-guard/auth-guard.mjs +8 -6
- package/es/web-app/main.mjs +2 -0
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.mjs +3 -1
- package/lib/common/data-import2/data-import2.cjs +1 -1
- package/lib/common/doing-notice/doing-notice.cjs +6 -4
- package/lib/common/map-chart/map-chart.util.cjs +4 -1
- package/lib/common/view-message/view-message.cjs +52 -22
- package/lib/common/view-message/view-message.css +1 -1
- package/lib/control/app-menu/app-menu.cjs +6 -2
- package/lib/control/calendar/calendar.cjs +1 -1
- package/lib/control/chart/chart.cjs +1 -1
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +1 -1
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.cjs +3 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +13 -10
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.provider.cjs +3 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +16 -10
- package/lib/control/gantt/gantt.cjs +14 -3
- package/lib/control/grid/grid/grid.cjs +3 -2
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +3 -1
- package/lib/control/grid/row-edit-popover/row-edit-popover.cjs +8 -4
- package/lib/control/grid/row-edit-popover/use-row-edit-popover.cjs +3 -3
- package/lib/control/kanban/kanban.cjs +16 -8
- package/lib/control/list/list.cjs +1 -1
- package/lib/control/report-panel/report-detail/user2-report-panel/user2-report-panel.cjs +1 -1
- package/lib/control/report-panel/report-panel.cjs +1 -1
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +7 -5
- package/lib/control/search-bar/search-bar.cjs +2 -2
- package/lib/control/search-bar/search-groups/edit-group-util.cjs +10 -2
- package/lib/control/search-bar/search-groups/new-group-util.cjs +13 -3
- package/lib/control/search-bar/search-groups/search-groups.cjs +46 -37
- package/lib/control/toolbar/export-excel/export-excel.cjs +23 -21
- package/lib/control/tree/el-tree-util.cjs +4 -2
- package/lib/control/tree/tree.cjs +3 -1
- package/lib/control/tree-grid/tree-grid.cjs +3 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.cjs +3 -1
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +6 -2
- package/lib/control/tree-grid-ex/use-row-edit-popover.cjs +3 -3
- package/lib/control/wizard-panel/wizard-panel.cjs +3 -3
- package/lib/editor/autocomplete/autocomplete-editor.controller.cjs +4 -1
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +3 -1
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +3 -3
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -1
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +2 -1
- package/lib/editor/data-picker/picker-editor.controller.cjs +12 -3
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +1 -1
- package/lib/editor/html/wang-editor/ai/ai-modules.cjs +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +17 -11
- package/lib/editor/list-box/list-box-picker-editor.controller.cjs +4 -1
- package/lib/editor/markdown/markdown-editor.controller.cjs +2 -2
- package/lib/editor/not-supported-editor/not-supported-editor.cjs +3 -1
- package/lib/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.cjs +3 -1
- package/lib/editor/span/span-editor.controller.cjs +4 -1
- package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.cjs +3 -1
- package/lib/editor/text-box/text-box-editor.controller.cjs +4 -4
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +6 -2
- package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.cjs +1 -1
- package/lib/index.cjs +2 -0
- package/lib/locale/en/index.cjs +672 -58
- package/lib/locale/zh-CN/index.cjs +660 -48
- package/lib/panel-component/auth-captcha/auth-captcha.cjs +65 -0
- package/lib/panel-component/auth-captcha/auth-captcha.controller.cjs +71 -0
- package/lib/panel-component/auth-captcha/auth-captcha.css +1 -0
- package/lib/panel-component/auth-captcha/auth-captcha.provider.cjs +23 -0
- package/lib/panel-component/auth-captcha/auth-captcha.state.cjs +46 -0
- package/lib/panel-component/auth-captcha/index.cjs +20 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +1 -1
- package/lib/panel-component/index.cjs +4 -0
- package/lib/panel-component/nav-pos-index/nav-pos-index.cjs +1 -1
- package/lib/panel-component/nav-tabs/nav-tabs.cjs +3 -3
- package/lib/panel-component/panel-remember-me/panel-remember-me.cjs +1 -1
- package/lib/panel-component/panel-tab-panel/panel-tab-panel.cjs +14 -5
- package/lib/panel-component/panel-tab-panel/panel-tab-panel.controller.cjs +44 -0
- package/lib/panel-component/panel-tab-panel/panel-tab-panel.provider.cjs +2 -2
- package/lib/panel-component/panel-tab-panel/panel-tab-panel.state.cjs +26 -0
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +15 -10
- package/lib/panel-component/searchform-buttons/searchform-buttons.controller.cjs +3 -1
- package/lib/panel-component/short-cut/index.cjs +17 -0
- package/lib/panel-component/short-cut/short-cut.cjs +192 -0
- package/lib/panel-component/short-cut/short-cut.css +1 -0
- package/lib/panel-component/short-cut/short-cut.provider.cjs +23 -0
- package/lib/panel-component/user-message/async-action/async-action-preview/async-action-preview.cjs +19 -13
- package/lib/panel-component/user-message/async-action/async-action-tab/async-action-tab.cjs +4 -2
- package/lib/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.cjs +1 -1
- package/lib/panel-component/user-message/internal-message/internal-message-json/internal-message-json.cjs +2 -2
- package/lib/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.cjs +8 -4
- package/lib/panel-component/user-message/user-message.cjs +4 -4
- package/lib/panel-component/view-msg-pos/view-msg-pos.cjs +4 -1
- package/lib/util/index.cjs +2 -0
- package/lib/util/render-util/render-util.cjs +62 -0
- package/lib/view/403-view/403-view.cjs +3 -3
- package/lib/view/404-view/404-view.cjs +3 -3
- package/lib/view/error-view/error-view.cjs +3 -1
- package/lib/view/login-view/login-view.cjs +26 -22
- package/lib/view/sub-app-ref-view/sub-app-ref-view.cjs +1 -1
- package/lib/view-engine/edit-view.engine.cjs +22 -18
- package/lib/view-engine/exp-view.engine.cjs +1 -1
- package/lib/view-engine/login-view.engine.cjs +18 -3
- package/lib/view-engine/mpickup-view-engine.cjs +1 -1
- package/lib/view-engine/opt-view.engine.cjs +2 -2
- package/lib/view-engine/tab-exp-view.engine.cjs +2 -2
- package/lib/view-engine/wf-dyna-edit-view.engine.cjs +5 -2
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +8 -6
- package/lib/web-app/main.cjs +2 -0
- package/lib/web-app/util/unauthorized-handler/unauthorized-handler.cjs +3 -1
- package/package.json +7 -6
- package/dist/index-GoU343c8.js +0 -4
- package/dist/index-dsmTOMa5.js +0 -1
- package/dist/index-sGpuIVYT.js +0 -1
- package/dist/map-chart-cmVrWpPw.js +0 -1
- package/dist/wang-editor-Vch7U079.js +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PanelItemState } from '@ibiz-template/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* 分页面板状态
|
|
4
|
+
*
|
|
5
|
+
* @author tony001
|
|
6
|
+
* @date 2024-05-12 14:05:01
|
|
7
|
+
* @export
|
|
8
|
+
* @class PanelTabPanelState
|
|
9
|
+
* @extends {PanelItemState}
|
|
10
|
+
*/
|
|
11
|
+
export declare class PanelTabPanelState extends PanelItemState {
|
|
12
|
+
/**
|
|
13
|
+
* 当前激活分页
|
|
14
|
+
*
|
|
15
|
+
* @author tony001
|
|
16
|
+
* @date 2024-05-12 14:05:36
|
|
17
|
+
* @type {string}
|
|
18
|
+
*/
|
|
19
|
+
activeTab: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PanelItemState } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class PanelTabPanelState extends PanelItemState {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* 当前激活分页
|
|
15
|
+
*
|
|
16
|
+
* @author tony001
|
|
17
|
+
* @date 2024-05-12 14:05:36
|
|
18
|
+
* @type {string}
|
|
19
|
+
*/
|
|
20
|
+
__publicField(this, "activeTab", "");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { PanelTabPanelState };
|
|
@@ -43,7 +43,9 @@ class SearchFormButtonsController extends PanelItemController {
|
|
|
43
43
|
await super.onInit();
|
|
44
44
|
const searchFrom = this.panel.container;
|
|
45
45
|
if (!searchFrom) {
|
|
46
|
-
throw new RuntimeError(
|
|
46
|
+
throw new RuntimeError(
|
|
47
|
+
ibiz.i18n.t("panelComponent.searchformButtons.errMessage")
|
|
48
|
+
);
|
|
47
49
|
}
|
|
48
50
|
this.searchFrom = searchFrom;
|
|
49
51
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isVNode, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './searchform-buttons.css';
|
|
4
4
|
import { ElMessageBox } from 'element-plus';
|
|
5
5
|
import { SearchFormButtonsController } from './searchform-buttons.controller.mjs';
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
|
+
function _isSlot(s) {
|
|
9
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
10
|
+
}
|
|
8
11
|
const SearchFormButtons = /* @__PURE__ */ defineComponent({
|
|
9
12
|
name: "IBizSearchFormButtons",
|
|
10
13
|
props: {
|
|
@@ -27,9 +30,9 @@ const SearchFormButtons = /* @__PURE__ */ defineComponent({
|
|
|
27
30
|
c.onResetButtonClick();
|
|
28
31
|
};
|
|
29
32
|
const saveFilterConfirm = () => {
|
|
30
|
-
ElMessageBox.prompt("
|
|
31
|
-
confirmButtonText: "
|
|
32
|
-
cancelButtonText: "
|
|
33
|
+
ElMessageBox.prompt(ibiz.i18n.t("panelComponent.searchformButtons.enterPrompt"), ibiz.i18n.t("panelComponent.searchformButtons.queryPrompt"), {
|
|
34
|
+
confirmButtonText: ibiz.i18n.t("app.save"),
|
|
35
|
+
cancelButtonText: ibiz.i18n.t("app.cancel")
|
|
33
36
|
}).then(({
|
|
34
37
|
value
|
|
35
38
|
}) => {
|
|
@@ -45,12 +48,13 @@ const SearchFormButtons = /* @__PURE__ */ defineComponent({
|
|
|
45
48
|
};
|
|
46
49
|
},
|
|
47
50
|
render() {
|
|
51
|
+
let _slot;
|
|
48
52
|
return createVNode("div", {
|
|
49
53
|
"class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass]
|
|
50
54
|
}, [this.controller.searchButtonStyle === "SEARCHONLY" ? createVNode(resolveComponent("el-button"), {
|
|
51
55
|
"onClick": this.onSearchButtonClick
|
|
52
|
-
}, {
|
|
53
|
-
default: () => [
|
|
56
|
+
}, _isSlot(_slot = ibiz.i18n.t("app.search")) ? _slot : {
|
|
57
|
+
default: () => [_slot]
|
|
54
58
|
}) : createVNode(resolveComponent("el-dropdown"), {
|
|
55
59
|
"split-button": true,
|
|
56
60
|
"type": "primary",
|
|
@@ -58,17 +62,18 @@ const SearchFormButtons = /* @__PURE__ */ defineComponent({
|
|
|
58
62
|
}, {
|
|
59
63
|
default: () => createVNode("span", {
|
|
60
64
|
"class": this.ns.b("label")
|
|
61
|
-
}, [
|
|
65
|
+
}, [ibiz.i18n.t("app.search")]),
|
|
62
66
|
dropdown: () => {
|
|
67
|
+
let _slot2, _slot3;
|
|
63
68
|
return createVNode(resolveComponent("el-dropdown-menu"), null, {
|
|
64
69
|
default: () => [createVNode(resolveComponent("el-dropdown-item"), {
|
|
65
70
|
"onClick": this.onResetButtonClick
|
|
66
|
-
}, {
|
|
67
|
-
default: () => [
|
|
71
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("app.reset")) ? _slot2 : {
|
|
72
|
+
default: () => [_slot2]
|
|
68
73
|
}), createVNode(resolveComponent("el-dropdown-item"), {
|
|
69
74
|
"onClick": this.saveFilterConfirm
|
|
70
|
-
}, {
|
|
71
|
-
default: () => [
|
|
75
|
+
}, _isSlot(_slot3 = ibiz.i18n.t("panelComponent.searchformButtons.saveCondition")) ? _slot3 : {
|
|
76
|
+
default: () => [_slot3]
|
|
72
77
|
}), this.controller.storedFilters.length > 0 && this.controller.storedFilters.map((item, index) => {
|
|
73
78
|
return createVNode(resolveComponent("el-dropdown-item"), {
|
|
74
79
|
"class": this.ns.b("filter-item"),
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const IBizShortCut: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
modelData: {
|
|
3
|
+
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
controller: {
|
|
7
|
+
type: typeof import("@ibiz-template/runtime").PanelItemController;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
12
|
+
data: import("vue").Ref<{
|
|
13
|
+
key: string;
|
|
14
|
+
name: string;
|
|
15
|
+
appViewId: string;
|
|
16
|
+
context: {
|
|
17
|
+
[x: string]: any;
|
|
18
|
+
[x: symbol]: any;
|
|
19
|
+
srfsessionid: string;
|
|
20
|
+
srfappid: string;
|
|
21
|
+
srfsimple?: boolean | undefined;
|
|
22
|
+
srfpaginationviewid?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
params: IParams;
|
|
25
|
+
openMode: string;
|
|
26
|
+
icon?: string | undefined;
|
|
27
|
+
}[]>;
|
|
28
|
+
isShowToolbar: import("vue").Ref<boolean>;
|
|
29
|
+
onChange: (evt: IData) => void;
|
|
30
|
+
onShowChange: () => void;
|
|
31
|
+
renderDraggable: (isVertical: boolean) => JSX.Element;
|
|
32
|
+
renderMoreToolbar: () => JSX.Element;
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
modelData: {
|
|
35
|
+
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
controller: {
|
|
39
|
+
type: typeof import("@ibiz-template/runtime").PanelItemController;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
}>>, {}, {}>>;
|
|
43
|
+
export default IBizShortCut;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
3
|
+
import { ShortCut } from './short-cut.mjs';
|
|
4
|
+
import { ShortCutProvider } from './short-cut.provider.mjs';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const IBizShortCut = withInstall(ShortCut, function(v) {
|
|
8
|
+
v.component(ShortCut.name, ShortCut);
|
|
9
|
+
registerPanelItemProvider("RAWITEM_SHORTCUT", () => new ShortCutProvider());
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export { IBizShortCut, IBizShortCut as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-short-cut{bottom:4px;right:4px;z-index:2;position:fixed;display:flex;align-items:center;border-radius:4px;box-shadow:0 0 16px rgba(0,0,0,.0784313725);border:1px solid var(--ibiz-color-border);background:var(--ibiz-color-bg-1)}.ibiz-short-cut.is-hidden{display:none}.ibiz-short-cut__more{padding:2px;cursor:pointer}.ibiz-short-cut__more .el-tooltip__trigger{padding:8px;line-height:18px}.ibiz-short-cut__more .el-tooltip__trigger:hover{border-radius:2px;color:var(--ibiz-color-primary);background-color:var(--ibiz-color-primary-light-default)}.ibiz-short-cut__more--icon{margin-left:8px}.ibiz-short-cut__recover{padding:2px;display:flex;cursor:pointer;align-items:center}.ibiz-short-cut__recover .el-tooltip__trigger{padding:8px;line-height:18px}.ibiz-short-cut__recover .el-tooltip__trigger:hover{border-radius:2px;color:var(--ibiz-color-primary);background-color:var(--ibiz-color-primary-light-default)}.ibiz-short-cut__item{display:flex;cursor:pointer;position:relative;align-items:center;flex-flow:row nowrap;place-content:center flex-start}.ibiz-short-cut__item .icon{flex-shrink:0}.ibiz-short-cut__item .icon.caption{margin-right:8px}.ibiz-short-cut__item .drag-icon{visibility:hidden}.ibiz-short-cut__item .close-icon{visibility:hidden;font-size:18px}.ibiz-short-cut__item .close-icon:hover{color:var(--ibiz-color-danger-hover)}.ibiz-short-cut__item--caption{flex-grow:1;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ibiz-short-cut__item:hover .close-icon,.ibiz-short-cut__item:hover .drag-icon{visibility:visible}.ibiz-short-cut .is-horizontal{display:flex;padding:8px}.ibiz-short-cut .is-horizontal .ibiz-short-cut__item{max-width:165px;border-right:1px solid var(--ibiz-color-border)}.ibiz-short-cut .is-horizontal .ibiz-short-cut__item--caption{margin:0 8px}.ibiz-short-cut__popover.el-popover.el-popper{padding:10px 0}.ibiz-short-cut__popover .is-vertical .ibiz-short-cut__item{width:225px;height:44px;padding:9px 20px}.ibiz-short-cut__popover .is-vertical .ibiz-short-cut__item .drag-icon{left:5px;position:absolute}.ibiz-short-cut__popover .is-vertical .ibiz-short-cut__item:hover{background-color:var(--ibiz-color-fill-1)}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IPanelRawItem } from '@ibiz/model-core';
|
|
3
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
4
|
+
import './short-cut.scss';
|
|
5
|
+
export declare const ShortCut: import("vue").DefineComponent<{
|
|
6
|
+
modelData: {
|
|
7
|
+
type: PropType<IPanelRawItem>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
controller: {
|
|
11
|
+
type: typeof PanelItemController;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
16
|
+
data: import("vue").Ref<{
|
|
17
|
+
key: string;
|
|
18
|
+
name: string;
|
|
19
|
+
appViewId: string;
|
|
20
|
+
context: {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
[x: symbol]: any;
|
|
23
|
+
srfsessionid: string;
|
|
24
|
+
srfappid: string;
|
|
25
|
+
srfsimple?: boolean | undefined;
|
|
26
|
+
srfpaginationviewid?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
params: IParams;
|
|
29
|
+
openMode: string;
|
|
30
|
+
icon?: string | undefined;
|
|
31
|
+
}[]>;
|
|
32
|
+
isShowToolbar: import("vue").Ref<boolean>;
|
|
33
|
+
onChange: (evt: IData) => void;
|
|
34
|
+
onShowChange: () => void;
|
|
35
|
+
renderDraggable: (isVertical: boolean) => JSX.Element;
|
|
36
|
+
renderMoreToolbar: () => JSX.Element;
|
|
37
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
modelData: {
|
|
39
|
+
type: PropType<IPanelRawItem>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
controller: {
|
|
43
|
+
type: typeof PanelItemController;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
}>>, {}, {}>;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { getCurrentInstance, ref, createVNode, resolveComponent, defineComponent } from 'vue';
|
|
2
|
+
import { PanelItemController, OpenAppViewCommand } from '@ibiz-template/runtime';
|
|
3
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
4
|
+
import draggable from 'vuedraggable';
|
|
5
|
+
import './short-cut.css';
|
|
6
|
+
import { IBizContext } from '@ibiz-template/core';
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
const ShortCut = /* @__PURE__ */ defineComponent({
|
|
10
|
+
name: "IBizShortCut",
|
|
11
|
+
components: {
|
|
12
|
+
draggable
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
modelData: {
|
|
16
|
+
type: Object,
|
|
17
|
+
required: true
|
|
18
|
+
},
|
|
19
|
+
controller: {
|
|
20
|
+
type: PanelItemController,
|
|
21
|
+
required: true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(props) {
|
|
25
|
+
const ns = useNamespace("short-cut");
|
|
26
|
+
const vue = getCurrentInstance().proxy;
|
|
27
|
+
const isShowToolbar = ref(false);
|
|
28
|
+
const isShowMore = ref(false);
|
|
29
|
+
const data = ref(ibiz.util.shortCut.data);
|
|
30
|
+
const dragCache = {
|
|
31
|
+
newIndex: 0,
|
|
32
|
+
oldIndex: 0
|
|
33
|
+
};
|
|
34
|
+
const onShowChange = () => {
|
|
35
|
+
isShowToolbar.value = !isShowToolbar.value;
|
|
36
|
+
if (isShowToolbar.value) {
|
|
37
|
+
isShowMore.value = false;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const getOpenMode = (openMode) => {
|
|
41
|
+
switch (openMode) {
|
|
42
|
+
case "ROUTE_MODAL":
|
|
43
|
+
return "INDEXVIEWTAB_POPUPMODAL";
|
|
44
|
+
case "MODAL":
|
|
45
|
+
return "POPUPMODAL";
|
|
46
|
+
case "DRAWER":
|
|
47
|
+
return "DRAWER_RIGHT";
|
|
48
|
+
default:
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const onClick = (item) => {
|
|
52
|
+
isShowMore.value = false;
|
|
53
|
+
ibiz.commands.execute(OpenAppViewCommand.TAG, item.appViewId, IBizContext.create(item.context), item.params, {
|
|
54
|
+
openMode: getOpenMode(item.openMode)
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
const onChange = (evt) => {
|
|
58
|
+
if (evt.moved) {
|
|
59
|
+
ibiz.util.shortCut.changeIndex(evt.moved.newIndex, evt.moved.oldIndex);
|
|
60
|
+
} else if (evt.added) {
|
|
61
|
+
dragCache.newIndex = evt.added.newIndex;
|
|
62
|
+
} else if (evt.removed) {
|
|
63
|
+
dragCache.oldIndex = evt.removed.oldIndex;
|
|
64
|
+
ibiz.util.shortCut.changeIndex(dragCache.newIndex, dragCache.oldIndex);
|
|
65
|
+
}
|
|
66
|
+
vue.$forceUpdate();
|
|
67
|
+
};
|
|
68
|
+
const onDelete = (event, key) => {
|
|
69
|
+
event.stopPropagation();
|
|
70
|
+
ibiz.util.shortCut.removeShortCut(key);
|
|
71
|
+
vue.$forceUpdate();
|
|
72
|
+
};
|
|
73
|
+
const renderDraggable = (isVertical) => {
|
|
74
|
+
return createVNode(draggable, {
|
|
75
|
+
"itemKey": "key",
|
|
76
|
+
"class": [ns.e("draggable"), ns.is("vertical", isVertical), ns.is("horizontal", !isVertical)],
|
|
77
|
+
"modelValue": data.value,
|
|
78
|
+
"group": props.controller.model.id,
|
|
79
|
+
"onChange": (evt) => onChange(evt)
|
|
80
|
+
}, {
|
|
81
|
+
item: ({
|
|
82
|
+
element,
|
|
83
|
+
index
|
|
84
|
+
}) => {
|
|
85
|
+
if (isVertical && !isShowToolbar.value || isVertical && isShowToolbar.value && index > 5 || !isVertical && index < 6) {
|
|
86
|
+
return createVNode("div", {
|
|
87
|
+
"class": ns.e("item"),
|
|
88
|
+
"onClick": () => onClick(element)
|
|
89
|
+
}, [createVNode("svg", {
|
|
90
|
+
"viewBox": "0 0 16 16",
|
|
91
|
+
"class": ["drag-icon", "icon"],
|
|
92
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
93
|
+
"height": "14px",
|
|
94
|
+
"width": "14px",
|
|
95
|
+
"focusable": "false"
|
|
96
|
+
}, [createVNode("g", {
|
|
97
|
+
"id": "drag-icon/drag--",
|
|
98
|
+
"stroke-width": "1",
|
|
99
|
+
"fill-rule": "evenodd"
|
|
100
|
+
}, [createVNode("g", {
|
|
101
|
+
"id": "drag-icon",
|
|
102
|
+
"transform": "translate(5 1)",
|
|
103
|
+
"fill-rule": "nonzero"
|
|
104
|
+
}, [createVNode("path", {
|
|
105
|
+
"d": "M1 2a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM1 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2z",
|
|
106
|
+
"id": "drag-icon-air"
|
|
107
|
+
}, null)])])]), createVNode("ion-icon", {
|
|
108
|
+
"class": ["icon", "caption"],
|
|
109
|
+
"name": "ellipsis-horizontal-circle-outline"
|
|
110
|
+
}, null), createVNode("div", {
|
|
111
|
+
"class": ns.em("item", "caption")
|
|
112
|
+
}, [element.name]), createVNode("ion-icon", {
|
|
113
|
+
"class": ["close-icon", "icon"],
|
|
114
|
+
"name": "close-outline",
|
|
115
|
+
"onClick": (event) => onDelete(event, element.key)
|
|
116
|
+
}, null)]);
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
footer: () => {
|
|
120
|
+
if (isVertical && !isShowToolbar.value) {
|
|
121
|
+
return createVNode("div", {
|
|
122
|
+
"class": [ns.e("item"), ns.e("action")],
|
|
123
|
+
"onClick": onShowChange
|
|
124
|
+
}, [createVNode("ion-icon", {
|
|
125
|
+
"name": "chevron-back-outline"
|
|
126
|
+
}, null), createVNode("div", {
|
|
127
|
+
"class": ns.em("item", "caption")
|
|
128
|
+
}, [ibiz.i18n.t("panelComponent.shortCut.expandToolbar")])]);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
const renderMoreToolbar = () => {
|
|
134
|
+
return createVNode(resolveComponent("el-popover"), {
|
|
135
|
+
"visible": isShowMore.value,
|
|
136
|
+
"onUpdate:visible": ($event) => isShowMore.value = $event,
|
|
137
|
+
"placement": "top-start",
|
|
138
|
+
"trigger": "click",
|
|
139
|
+
"width": "auto",
|
|
140
|
+
"popper-class": ns.e("popover")
|
|
141
|
+
}, {
|
|
142
|
+
reference: () => {
|
|
143
|
+
return createVNode("div", {
|
|
144
|
+
"class": ns.e("more")
|
|
145
|
+
}, [createVNode(resolveComponent("el-tooltip"), {
|
|
146
|
+
"content": ibiz.i18n.t("app.more"),
|
|
147
|
+
"placement": "top"
|
|
148
|
+
}, {
|
|
149
|
+
default: () => [createVNode("div", null, [createVNode("span", {
|
|
150
|
+
"class": ns.em("more", "caption")
|
|
151
|
+
}, [isShowToolbar.value ? "6/".concat(data.value.length) : data.value.length]), createVNode("i", {
|
|
152
|
+
"class": ["fa", ns.em("more", "icon"), isShowMore.value ? "fa-angle-double-down" : "fa-angle-double-up"],
|
|
153
|
+
"aria-hidden": "true"
|
|
154
|
+
}, null)])]
|
|
155
|
+
})]);
|
|
156
|
+
},
|
|
157
|
+
default: () => {
|
|
158
|
+
return renderDraggable(true);
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
return {
|
|
163
|
+
ns,
|
|
164
|
+
data,
|
|
165
|
+
isShowToolbar,
|
|
166
|
+
onChange,
|
|
167
|
+
onShowChange,
|
|
168
|
+
renderDraggable,
|
|
169
|
+
renderMoreToolbar
|
|
170
|
+
};
|
|
171
|
+
},
|
|
172
|
+
render() {
|
|
173
|
+
return createVNode("div", {
|
|
174
|
+
"class": [this.ns.b(), ...this.controller.containerClass, this.ns.is("hidden", this.data.length === 0)]
|
|
175
|
+
}, [this.isShowToolbar && this.renderDraggable(false), (!this.isShowToolbar || this.data.length > 6) && this.renderMoreToolbar(), this.isShowToolbar && createVNode("div", {
|
|
176
|
+
"class": this.ns.e("recover"),
|
|
177
|
+
"onClick": this.onShowChange
|
|
178
|
+
}, [createVNode(resolveComponent("el-tooltip"), {
|
|
179
|
+
"effect": "dark",
|
|
180
|
+
"content": ibiz.i18n.t("app.retract"),
|
|
181
|
+
"placement": "top"
|
|
182
|
+
}, {
|
|
183
|
+
default: () => [createVNode("ion-icon", {
|
|
184
|
+
"name": "chevron-forward-outline"
|
|
185
|
+
}, null)]
|
|
186
|
+
})])]);
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
export { ShortCut };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IPanelItemProvider, PanelController, PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelItem } from '@ibiz/model-core';
|
|
3
|
+
/**
|
|
4
|
+
* 快捷方式组件适配器
|
|
5
|
+
*
|
|
6
|
+
* @class ShortCutProvider
|
|
7
|
+
* @implements {EditorProvider}
|
|
8
|
+
*/
|
|
9
|
+
export declare class ShortCutProvider implements IPanelItemProvider {
|
|
10
|
+
component: string;
|
|
11
|
+
createController(panelItem: IPanelItem, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelItemController>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class ShortCutProvider {
|
|
11
|
+
constructor() {
|
|
12
|
+
__publicField(this, "component", "IBizShortCut");
|
|
13
|
+
}
|
|
14
|
+
async createController(panelItem, panel, parent) {
|
|
15
|
+
const c = new PanelItemController(panelItem, panel, parent);
|
|
16
|
+
await c.init();
|
|
17
|
+
return c;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { ShortCutProvider };
|
package/es/panel-component/user-message/async-action/async-action-preview/async-action-preview.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { reactive, createVNode, resolveComponent, createTextVNode, defineComponent } from 'vue';
|
|
1
|
+
import { isVNode, reactive, createVNode, resolveComponent, createTextVNode, defineComponent } from 'vue';
|
|
2
2
|
import { RuntimeError, downloadFileFromBlob } from '@ibiz-template/core';
|
|
3
3
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
4
4
|
import qs from 'qs';
|
|
5
5
|
import './async-action-preview.css';
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
|
+
function _isSlot(s) {
|
|
9
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
10
|
+
}
|
|
8
11
|
function fileDownload(file) {
|
|
9
12
|
ibiz.net.request(file.url, {
|
|
10
13
|
method: "get",
|
|
@@ -22,10 +25,10 @@ function fileDownload(file) {
|
|
|
22
25
|
file.name += ".".concat(filename.split(".")[1]);
|
|
23
26
|
}
|
|
24
27
|
if (response.status !== 200) {
|
|
25
|
-
throw new RuntimeError("
|
|
28
|
+
throw new RuntimeError(ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.downloadFailedErr"));
|
|
26
29
|
}
|
|
27
30
|
if (!response.data) {
|
|
28
|
-
throw new RuntimeError("
|
|
31
|
+
throw new RuntimeError(ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.noExistentErr"));
|
|
29
32
|
} else {
|
|
30
33
|
const fileName = file.name;
|
|
31
34
|
downloadFileFromBlob(response.data, fileName);
|
|
@@ -62,7 +65,9 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
|
|
|
62
65
|
}],
|
|
63
66
|
errorFileUrl: ""
|
|
64
67
|
});
|
|
65
|
-
info.title =
|
|
68
|
+
info.title = ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.importDetailPrompt", {
|
|
69
|
+
name: props.asyncAction.asyncacitonname
|
|
70
|
+
});
|
|
66
71
|
info.beginTime = props.asyncAction.begintime;
|
|
67
72
|
info.endTime = props.asyncAction.endtime;
|
|
68
73
|
if (props.asyncAction.actionresult) {
|
|
@@ -71,7 +76,7 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
|
|
|
71
76
|
try {
|
|
72
77
|
actionResult = JSON.parse(actionResult);
|
|
73
78
|
} catch (error) {
|
|
74
|
-
throw new RuntimeError("
|
|
79
|
+
throw new RuntimeError(ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.parseImportInfoErr"));
|
|
75
80
|
}
|
|
76
81
|
}
|
|
77
82
|
info.total = actionResult.total || 0;
|
|
@@ -105,6 +110,7 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
|
|
|
105
110
|
};
|
|
106
111
|
},
|
|
107
112
|
render() {
|
|
113
|
+
let _slot, _slot2;
|
|
108
114
|
return createVNode("div", {
|
|
109
115
|
"class": [this.ns.b()]
|
|
110
116
|
}, [createVNode("div", {
|
|
@@ -115,16 +121,16 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
|
|
|
115
121
|
"class": this.ns.b("toolbar")
|
|
116
122
|
}, [this.info.errorFileUrl && createVNode(resolveComponent("el-button"), {
|
|
117
123
|
"onClick": this.onDownLoad
|
|
118
|
-
}, {
|
|
119
|
-
default: () => [
|
|
124
|
+
}, _isSlot(_slot = ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.downloadErrFile")) ? _slot : {
|
|
125
|
+
default: () => [_slot]
|
|
120
126
|
}), createVNode(resolveComponent("el-button"), {
|
|
121
127
|
"onClick": this.onClose
|
|
122
|
-
}, {
|
|
123
|
-
default: () => [
|
|
128
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("app.close")) ? _slot2 : {
|
|
129
|
+
default: () => [_slot2]
|
|
124
130
|
})])]), createVNode("div", {
|
|
125
131
|
"class": this.ns.b("time")
|
|
126
132
|
}, [createVNode(resolveComponent("el-form-item"), {
|
|
127
|
-
"label": "
|
|
133
|
+
"label": ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.importTime")
|
|
128
134
|
}, {
|
|
129
135
|
default: () => [this.info.beginTime, createTextVNode(" ~ "), this.info.endTime]
|
|
130
136
|
})]), createVNode(resolveComponent("el-row"), {
|
|
@@ -134,7 +140,7 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
|
|
|
134
140
|
"span": 8
|
|
135
141
|
}, {
|
|
136
142
|
default: () => [createVNode(resolveComponent("el-form-item"), {
|
|
137
|
-
"label": "
|
|
143
|
+
"label": ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.importTotal")
|
|
138
144
|
}, {
|
|
139
145
|
default: () => [this.info.total]
|
|
140
146
|
})]
|
|
@@ -142,7 +148,7 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
|
|
|
142
148
|
"span": 8
|
|
143
149
|
}, {
|
|
144
150
|
default: () => [createVNode(resolveComponent("el-form-item"), {
|
|
145
|
-
"label": "
|
|
151
|
+
"label": ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.successImport")
|
|
146
152
|
}, {
|
|
147
153
|
default: () => [this.info.success]
|
|
148
154
|
})]
|
|
@@ -150,7 +156,7 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
|
|
|
150
156
|
"span": 8
|
|
151
157
|
}, {
|
|
152
158
|
default: () => [createVNode(resolveComponent("el-form-item"), {
|
|
153
|
-
"label": "
|
|
159
|
+
"label": ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.ImportFailed")
|
|
154
160
|
}, {
|
|
155
161
|
default: () => [this.info.error]
|
|
156
162
|
})]
|
|
@@ -166,7 +172,7 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
|
|
|
166
172
|
"class": this.ns.be("detail-item", "error")
|
|
167
173
|
}, [createVNode("div", {
|
|
168
174
|
"class": this.ns.be("detail-item", "error-title")
|
|
169
|
-
}, [
|
|
175
|
+
}, [ibiz.i18n.t("app.error")]), createVNode("div", {
|
|
170
176
|
"class": this.ns.be("detail-item", "error-reason")
|
|
171
177
|
}, [detail.reason])])]);
|
|
172
178
|
})])]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, createVNode,
|
|
1
|
+
import { ref, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { getAsyncActionProvider } from '@ibiz-template/runtime';
|
|
4
4
|
import './async-action-tab.css';
|
|
@@ -59,10 +59,12 @@ const AsyncActionTab = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
}
|
|
60
60
|
return createVNode("div", {
|
|
61
61
|
"class": this.ns.e("item")
|
|
62
|
-
}, [
|
|
62
|
+
}, [ibiz.i18n.t("panelComponent.userMessage.asyncActionTab.noSupportType", {
|
|
63
|
+
type: msg.actiontype
|
|
64
|
+
})]);
|
|
63
65
|
}), this.allItems.length === 0 && createVNode("div", {
|
|
64
66
|
"class": this.ns.e("nodata")
|
|
65
|
-
}, [
|
|
67
|
+
}, [ibiz.i18n.t("panelComponent.userMessage.asyncActionTab.noAsyncAction")])]);
|
|
66
68
|
}
|
|
67
69
|
});
|
|
68
70
|
|
|
@@ -40,7 +40,7 @@ const InternalMessageContainer = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
toolbarItems.push({
|
|
41
41
|
key: "read",
|
|
42
42
|
icon: "checkmark-done-outline",
|
|
43
|
-
tooltip: "
|
|
43
|
+
tooltip: ibiz.i18n.t("panelComponent.userMessage.internalMessageContainer.markAsRead")
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
return toolbarItems;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode, computed, createVNode,
|
|
1
|
+
import { isVNode, computed, createVNode, resolveComponent, defineComponent } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './internal-message-json.css';
|
|
4
4
|
|
|
@@ -43,7 +43,7 @@ const InternalMessageJSON = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
return [{
|
|
44
44
|
icon: "link-outline",
|
|
45
45
|
key: "openRedirectView",
|
|
46
|
-
tooltip: "
|
|
46
|
+
tooltip: ibiz.i18n.t("panelComponent.userMessage.internalMessageJson.jumpToView")
|
|
47
47
|
}];
|
|
48
48
|
});
|
|
49
49
|
const onToolbarClick = (key) => {
|
|
@@ -71,7 +71,7 @@ const InternalMessageJSON = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
} else {
|
|
72
72
|
content = createVNode("div", {
|
|
73
73
|
"class": this.ns.e("content")
|
|
74
|
-
}, [
|
|
74
|
+
}, [ibiz.i18n.t("panelComponent.userMessage.internalMessageJson.missingHtml")]);
|
|
75
75
|
}
|
|
76
76
|
return createVNode(resolveComponent("iBizInternalMessageContainer"), {
|
|
77
77
|
"class": [this.ns.b()],
|