@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
|
@@ -356,6 +356,7 @@ const FilterTreeControl = /* @__PURE__ */ defineComponent({
|
|
|
356
356
|
})])]);
|
|
357
357
|
};
|
|
358
358
|
renderFilterItems = (node) => {
|
|
359
|
+
let _slot3;
|
|
359
360
|
const itemsC = findFilterController(node);
|
|
360
361
|
if (node.simple) {
|
|
361
362
|
let _slot2;
|
|
@@ -394,8 +395,8 @@ const FilterTreeControl = /* @__PURE__ */ defineComponent({
|
|
|
394
395
|
"onClick": () => {
|
|
395
396
|
addItem(node);
|
|
396
397
|
}
|
|
397
|
-
}, {
|
|
398
|
-
default: () => [
|
|
398
|
+
}, _isSlot(_slot3 = ibiz.i18n.t("control.searchBar.filterTree.addItem")) ? _slot3 : {
|
|
399
|
+
default: () => [_slot3]
|
|
399
400
|
})]), createVNode("div", {
|
|
400
401
|
"class": ns.be("group", "list")
|
|
401
402
|
}, [node.children.length > 0 && node.children.map((child, index) => {
|
|
@@ -432,6 +433,7 @@ const FilterTreeControl = /* @__PURE__ */ defineComponent({
|
|
|
432
433
|
};
|
|
433
434
|
},
|
|
434
435
|
render() {
|
|
436
|
+
let _slot4;
|
|
435
437
|
return createVNode("div", {
|
|
436
438
|
"class": [this.ns.b()]
|
|
437
439
|
}, [this.UiFilterNodes.length > 0 && this.UiFilterNodes.map((node) => {
|
|
@@ -446,13 +448,13 @@ const FilterTreeControl = /* @__PURE__ */ defineComponent({
|
|
|
446
448
|
this.onConfirm();
|
|
447
449
|
}
|
|
448
450
|
}, {
|
|
449
|
-
default: () => [this.isInSearchBar ? "
|
|
451
|
+
default: () => [this.isInSearchBar ? ibiz.i18n.t("app.search") : ibiz.i18n.t("control.common.determine")]
|
|
450
452
|
}), createVNode(resolveComponent("el-button"), {
|
|
451
453
|
"onClick": () => {
|
|
452
454
|
this.onCancel();
|
|
453
455
|
}
|
|
454
|
-
}, {
|
|
455
|
-
default: () => [
|
|
456
|
+
}, _isSlot(_slot4 = ibiz.i18n.t("app.reset")) ? _slot4 : {
|
|
457
|
+
default: () => [_slot4]
|
|
456
458
|
})])]);
|
|
457
459
|
}
|
|
458
460
|
});
|
|
@@ -136,7 +136,7 @@ const SearchBarControl = /* @__PURE__ */ defineComponent({
|
|
|
136
136
|
}, [groupItem.caption]);
|
|
137
137
|
})])), this.c.model.enableGroup && this.c.isBackendSearchGroup && createVNode(resolveComponent("el-button"), {
|
|
138
138
|
"class": this.ns.b("save"),
|
|
139
|
-
"title": "
|
|
139
|
+
"title": ibiz.i18n.t("control.searchBar.saveGroup"),
|
|
140
140
|
"onClick": this.handleSave
|
|
141
141
|
}, {
|
|
142
142
|
default: () => [createVNode("ion-icon", {
|
|
@@ -160,7 +160,7 @@ const SearchBarControl = /* @__PURE__ */ defineComponent({
|
|
|
160
160
|
}), this.c.enableFilter && createVNode(resolveComponent("el-button"), {
|
|
161
161
|
"ref": "filterButtonRef",
|
|
162
162
|
"type": "primary",
|
|
163
|
-
"title": "
|
|
163
|
+
"title": ibiz.i18n.t("control.searchBar.filter"),
|
|
164
164
|
"class": this.ns.b("filter"),
|
|
165
165
|
"onClick": () => this.triggerFilter()
|
|
166
166
|
}, {
|
|
@@ -8,7 +8,13 @@ function useEditGroup(c) {
|
|
|
8
8
|
});
|
|
9
9
|
const editFormRef = ref();
|
|
10
10
|
const editFormRules = reactive({
|
|
11
|
-
caption: [
|
|
11
|
+
caption: [
|
|
12
|
+
{
|
|
13
|
+
required: true,
|
|
14
|
+
message: ibiz.i18n.t("control.searchBar.searchGroups.groupValueRule"),
|
|
15
|
+
trigger: "blur"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
12
18
|
});
|
|
13
19
|
const handleEditFormSubmit = async () => {
|
|
14
20
|
if (editFormRef.value) {
|
|
@@ -28,7 +34,9 @@ function useEditGroup(c) {
|
|
|
28
34
|
}
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
|
-
ibiz.message.success(
|
|
37
|
+
ibiz.message.success(
|
|
38
|
+
"".concat(ibiz.i18n.t("control.common.updateSuccess"), "\uFF01")
|
|
39
|
+
);
|
|
32
40
|
editDialogVisible.value = false;
|
|
33
41
|
}
|
|
34
42
|
}
|
|
@@ -8,7 +8,13 @@ function useNewGroup(c) {
|
|
|
8
8
|
});
|
|
9
9
|
const newFormRef = ref();
|
|
10
10
|
const newFormRules = reactive({
|
|
11
|
-
caption: [
|
|
11
|
+
caption: [
|
|
12
|
+
{
|
|
13
|
+
required: true,
|
|
14
|
+
message: ibiz.i18n.t("control.searchBar.searchGroups.groupValueRule"),
|
|
15
|
+
trigger: "blur"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
12
18
|
});
|
|
13
19
|
const handleNewFormCancel = () => {
|
|
14
20
|
if (newFormRef.value) {
|
|
@@ -25,13 +31,17 @@ function useNewGroup(c) {
|
|
|
25
31
|
return group.caption === newForm.caption;
|
|
26
32
|
});
|
|
27
33
|
if (sameCaptionGroup) {
|
|
28
|
-
ibiz.message.error(
|
|
34
|
+
ibiz.message.error(
|
|
35
|
+
ibiz.i18n.t("control.searchBar.searchGroups.errorMessage")
|
|
36
|
+
);
|
|
29
37
|
return;
|
|
30
38
|
}
|
|
31
39
|
await c.service.create(newForm.caption);
|
|
32
40
|
handleNewFormCancel();
|
|
33
41
|
await c.initSearBarGroups();
|
|
34
|
-
ibiz.message.success(
|
|
42
|
+
ibiz.message.success(
|
|
43
|
+
"".concat(ibiz.i18n.t("control.common.newSuccCreated"), "\uFF01")
|
|
44
|
+
);
|
|
35
45
|
}
|
|
36
46
|
}
|
|
37
47
|
);
|
|
@@ -31,7 +31,7 @@ export declare const SearchGroups: import("vue").DefineComponent<{
|
|
|
31
31
|
removeGroup: (groupItem: IBackendSearchBarGroup) => void;
|
|
32
32
|
isActiveMore: import("vue").ComputedRef<boolean>;
|
|
33
33
|
onDragChange: (evt: IData) => Promise<void>;
|
|
34
|
-
editLinkTitle: (groupItem: IBackendSearchBarGroup) =>
|
|
34
|
+
editLinkTitle: (groupItem: IBackendSearchBarGroup) => string;
|
|
35
35
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
36
|
controller: {
|
|
37
37
|
type: PropType<SearchBarController>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, computed,
|
|
1
|
+
import { isVNode, ref, computed, createVNode, resolveComponent, defineComponent } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './search-groups.css';
|
|
4
4
|
import { ElMessageBox } from 'element-plus';
|
|
@@ -8,6 +8,9 @@ import { useNewGroup } from './new-group-util.mjs';
|
|
|
8
8
|
import { useEditGroup } from './edit-group-util.mjs';
|
|
9
9
|
|
|
10
10
|
"use strict";
|
|
11
|
+
function _isSlot(s) {
|
|
12
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
13
|
+
}
|
|
11
14
|
const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
12
15
|
name: "IBizSearchGroups",
|
|
13
16
|
components: {
|
|
@@ -57,11 +60,11 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
57
60
|
const editLinkTitle = (groupItem) => {
|
|
58
61
|
if (groupItem.saved) {
|
|
59
62
|
if (groupItem.noEdit) {
|
|
60
|
-
return "
|
|
63
|
+
return ibiz.i18n.t("control.searchBar.searchGroups.noEditPrompt");
|
|
61
64
|
}
|
|
62
65
|
return "";
|
|
63
66
|
}
|
|
64
|
-
return "
|
|
67
|
+
return ibiz.i18n.t("control.searchBar.searchGroups.savePrompt");
|
|
65
68
|
};
|
|
66
69
|
const onGroupClick = (item) => {
|
|
67
70
|
c.handleGroupClick(item);
|
|
@@ -79,20 +82,23 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
79
82
|
};
|
|
80
83
|
const removeGroup = (groupItem) => {
|
|
81
84
|
ElMessageBox({
|
|
82
|
-
title: "
|
|
85
|
+
title: ibiz.i18n.t("control.searchBar.searchGroups.delTitle"),
|
|
83
86
|
message: () => {
|
|
84
87
|
return createVNode("div", {
|
|
85
88
|
"class": ns.b("remove-dialog")
|
|
86
89
|
}, [createVNode("div", {
|
|
87
|
-
"class": ns.b("remove-dialog-content")
|
|
88
|
-
|
|
90
|
+
"class": ns.b("remove-dialog-content"),
|
|
91
|
+
"innerHTML": ibiz.i18n.t("control.searchBar.searchGroups.confirmDelPrompt", {
|
|
92
|
+
itemName: groupItem.caption || groupItem.name
|
|
93
|
+
})
|
|
94
|
+
}, null), createVNode("div", {
|
|
89
95
|
"class": ns.b("remove-dialog-tip")
|
|
90
|
-
}, [
|
|
96
|
+
}, [ibiz.i18n.t("control.searchBar.searchGroups.unrecoverablePrompt")])]);
|
|
91
97
|
},
|
|
92
98
|
showCancelButton: true,
|
|
93
|
-
confirmButtonText: "
|
|
99
|
+
confirmButtonText: ibiz.i18n.t("control.common.determine"),
|
|
94
100
|
confirmButtonClass: ns.b("remove-confirm-btn"),
|
|
95
|
-
cancelButtonText: "
|
|
101
|
+
cancelButtonText: ibiz.i18n.t("app.cancel"),
|
|
96
102
|
cancelButtonClass: ns.b("remove-cancel-btn")
|
|
97
103
|
}).then(async () => {
|
|
98
104
|
if (groupItem.id) {
|
|
@@ -103,7 +109,7 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
103
109
|
c.state.searchBarGroups.splice(index, 1);
|
|
104
110
|
}
|
|
105
111
|
}
|
|
106
|
-
ibiz.message.success("\
|
|
112
|
+
ibiz.message.success("".concat(ibiz.i18n.t("control.common.deleteSuccess"), "\uFF01"));
|
|
107
113
|
await c.initSearBarGroups();
|
|
108
114
|
}
|
|
109
115
|
}).catch(() => {
|
|
@@ -193,7 +199,7 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
193
199
|
}, {
|
|
194
200
|
default: () => createVNode("div", {
|
|
195
201
|
"class": [this.ns.b("more"), this.ns.is("selected", this.isActiveMore)]
|
|
196
|
-
}, [this.c.model.groupMoreText || "
|
|
202
|
+
}, [this.c.model.groupMoreText || ibiz.i18n.t("app.more"), createVNode("ion-icon", {
|
|
197
203
|
"name": "chevron-down-outline"
|
|
198
204
|
}, null)]),
|
|
199
205
|
dropdown: () => createVNode(resolveComponent("el-dropdown-menu"), null, {
|
|
@@ -220,7 +226,7 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
220
226
|
"name": "add-outline"
|
|
221
227
|
}, null), createVNode("span", {
|
|
222
228
|
"class": this.ns.b("item-caption")
|
|
223
|
-
}, [
|
|
229
|
+
}, [ibiz.i18n.t("control.searchBar.searchGroups.newGroup")])]
|
|
224
230
|
}), createVNode(resolveComponent("el-dropdown-item"), {
|
|
225
231
|
"onClick": this.manageGroup
|
|
226
232
|
}, {
|
|
@@ -228,13 +234,13 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
228
234
|
"name": "settings-outline"
|
|
229
235
|
}, null), createVNode("span", {
|
|
230
236
|
"class": this.ns.b("item-caption")
|
|
231
|
-
}, [
|
|
237
|
+
}, [ibiz.i18n.t("control.searchBar.searchGroups.groupManage")])]
|
|
232
238
|
})]
|
|
233
239
|
})
|
|
234
240
|
}), createVNode(resolveComponent("el-dialog"), {
|
|
235
241
|
"modelValue": this.newDialogVisible,
|
|
236
242
|
"onUpdate:modelValue": ($event) => this.newDialogVisible = $event,
|
|
237
|
-
"title": "
|
|
243
|
+
"title": ibiz.i18n.t("control.searchBar.searchGroups.newGroup"),
|
|
238
244
|
"modal-class": this.ns.b("new-dialog")
|
|
239
245
|
}, {
|
|
240
246
|
default: () => {
|
|
@@ -245,36 +251,37 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
245
251
|
"rules": this.newFormRules
|
|
246
252
|
}, {
|
|
247
253
|
default: () => [createVNode(resolveComponent("el-form-item"), {
|
|
248
|
-
"label": "
|
|
254
|
+
"label": ibiz.i18n.t("control.searchBar.searchGroups.groupName"),
|
|
249
255
|
"prop": "caption"
|
|
250
256
|
}, {
|
|
251
257
|
default: () => [createVNode(resolveComponent("el-input"), {
|
|
252
258
|
"modelValue": this.newForm.caption,
|
|
253
259
|
"onUpdate:modelValue": ($event) => this.newForm.caption = $event,
|
|
254
|
-
"placeholder": "
|
|
260
|
+
"placeholder": ibiz.i18n.t("control.searchBar.searchGroups.enterPrompt")
|
|
255
261
|
}, null)]
|
|
256
262
|
})]
|
|
257
263
|
});
|
|
258
264
|
},
|
|
259
265
|
footer: () => {
|
|
266
|
+
let _slot, _slot2;
|
|
260
267
|
return createVNode("div", {
|
|
261
268
|
"class": this.ns.b("new-dialog-footer")
|
|
262
269
|
}, [createVNode(resolveComponent("el-button"), {
|
|
263
270
|
"class": this.ns.b("cancel-btn"),
|
|
264
271
|
"onClick": this.handleNewFormCancel
|
|
265
|
-
}, {
|
|
266
|
-
default: () => [
|
|
272
|
+
}, _isSlot(_slot = ibiz.i18n.t("control.searchBar.searchGroups.dialogCancel")) ? _slot : {
|
|
273
|
+
default: () => [_slot]
|
|
267
274
|
}), createVNode(resolveComponent("el-button"), {
|
|
268
275
|
"type": "primary",
|
|
269
276
|
"onClick": this.handleNewFormSubmit
|
|
270
|
-
}, {
|
|
271
|
-
default: () => [
|
|
277
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("control.searchBar.searchGroups.dialogDetermine")) ? _slot2 : {
|
|
278
|
+
default: () => [_slot2]
|
|
272
279
|
})]);
|
|
273
280
|
}
|
|
274
281
|
}), createVNode(resolveComponent("el-dialog"), {
|
|
275
282
|
"modelValue": this.editDialogVisible,
|
|
276
283
|
"onUpdate:modelValue": ($event) => this.editDialogVisible = $event,
|
|
277
|
-
"title": "
|
|
284
|
+
"title": ibiz.i18n.t("control.searchBar.searchGroups.editGroup"),
|
|
278
285
|
"modal-class": this.ns.b("edit-dialog")
|
|
279
286
|
}, {
|
|
280
287
|
default: () => {
|
|
@@ -285,36 +292,37 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
285
292
|
"rules": this.editFormRules
|
|
286
293
|
}, {
|
|
287
294
|
default: () => [createVNode(resolveComponent("el-form-item"), {
|
|
288
|
-
"label": "
|
|
295
|
+
"label": ibiz.i18n.t("control.searchBar.searchGroups.groupName"),
|
|
289
296
|
"prop": "caption"
|
|
290
297
|
}, {
|
|
291
298
|
default: () => [createVNode(resolveComponent("el-input"), {
|
|
292
299
|
"modelValue": this.editForm.caption,
|
|
293
300
|
"onUpdate:modelValue": ($event) => this.editForm.caption = $event,
|
|
294
|
-
"placeholder": "
|
|
301
|
+
"placeholder": ibiz.i18n.t("control.searchBar.searchGroups.enterPrompt")
|
|
295
302
|
}, null)]
|
|
296
303
|
})]
|
|
297
304
|
});
|
|
298
305
|
},
|
|
299
306
|
footer: () => {
|
|
307
|
+
let _slot3, _slot4;
|
|
300
308
|
return createVNode("div", {
|
|
301
309
|
"class": this.ns.b("edit-dialog-footer")
|
|
302
310
|
}, [createVNode(resolveComponent("el-button"), {
|
|
303
311
|
"class": this.ns.b("cancel-btn"),
|
|
304
312
|
"onClick": this.handleEditFormCancel
|
|
305
|
-
}, {
|
|
306
|
-
default: () => [
|
|
313
|
+
}, _isSlot(_slot3 = ibiz.i18n.t("control.searchBar.searchGroups.dialogCancel")) ? _slot3 : {
|
|
314
|
+
default: () => [_slot3]
|
|
307
315
|
}), createVNode(resolveComponent("el-button"), {
|
|
308
316
|
"type": "primary",
|
|
309
317
|
"onClick": this.handleEditFormSubmit
|
|
310
|
-
}, {
|
|
311
|
-
default: () => [
|
|
318
|
+
}, _isSlot(_slot4 = ibiz.i18n.t("control.searchBar.searchGroups.dialogDetermine")) ? _slot4 : {
|
|
319
|
+
default: () => [_slot4]
|
|
312
320
|
})]);
|
|
313
321
|
}
|
|
314
322
|
}), createVNode(resolveComponent("el-dialog"), {
|
|
315
323
|
"modelValue": this.manageDialogVisible,
|
|
316
324
|
"onUpdate:modelValue": ($event) => this.manageDialogVisible = $event,
|
|
317
|
-
"title": "
|
|
325
|
+
"title": ibiz.i18n.t("control.searchBar.searchGroups.groupManage"),
|
|
318
326
|
"modal-class": this.ns.b("manage-dialog")
|
|
319
327
|
}, {
|
|
320
328
|
default: () => [createVNode("div", {
|
|
@@ -325,7 +333,7 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
325
333
|
"class": this.ns.b("content-top-left")
|
|
326
334
|
}, [createVNode("ion-icon", {
|
|
327
335
|
"name": "alert-circle-outline"
|
|
328
|
-
}, null),
|
|
336
|
+
}, null), ibiz.i18n.t("control.searchBar.searchGroups.manageTips")]), createVNode("div", {
|
|
329
337
|
"class": this.ns.b("content-top-right")
|
|
330
338
|
}, [createVNode(resolveComponent("el-button"), {
|
|
331
339
|
"onClick": () => {
|
|
@@ -334,18 +342,18 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
334
342
|
}, {
|
|
335
343
|
default: () => [createVNode("ion-icon", {
|
|
336
344
|
"name": "add-outline"
|
|
337
|
-
}, null),
|
|
345
|
+
}, null), ibiz.i18n.t("control.searchBar.searchGroups.newGroup")]
|
|
338
346
|
})])]), createVNode("div", {
|
|
339
347
|
"class": this.ns.b("content-bottom")
|
|
340
348
|
}, [createVNode("div", {
|
|
341
349
|
"class": this.ns.b("table-header")
|
|
342
350
|
}, [createVNode("div", {
|
|
343
351
|
"class": this.ns.b("name")
|
|
344
|
-
}, [
|
|
352
|
+
}, [ibiz.i18n.t("control.searchBar.searchGroups.name")]), createVNode("div", {
|
|
345
353
|
"class": this.ns.b("show")
|
|
346
|
-
}, [
|
|
354
|
+
}, [ibiz.i18n.t("control.searchBar.searchGroups.show")]), createVNode("div", {
|
|
347
355
|
"class": this.ns.b("action")
|
|
348
|
-
}, [
|
|
356
|
+
}, [ibiz.i18n.t("control.searchBar.searchGroups.operate")])]), createVNode(draggable, {
|
|
349
357
|
"class": this.ns.b("table-body"),
|
|
350
358
|
"modelValue": this.c.state.searchBarGroups,
|
|
351
359
|
"onUpdate:modelValue": ($event) => this.c.state.searchBarGroups = $event,
|
|
@@ -360,6 +368,7 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
360
368
|
item: ({
|
|
361
369
|
element: groupItem
|
|
362
370
|
}) => {
|
|
371
|
+
let _slot5, _slot6;
|
|
363
372
|
return createVNode("div", {
|
|
364
373
|
"class": this.ns.b("table-row")
|
|
365
374
|
}, [createVNode("div", {
|
|
@@ -376,15 +385,15 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
|
|
|
376
385
|
"disabled": !groupItem.saved || groupItem.noEdit,
|
|
377
386
|
"title": this.editLinkTitle(groupItem),
|
|
378
387
|
"onClick": () => this.editGroup(groupItem)
|
|
379
|
-
}, {
|
|
380
|
-
default: () => [
|
|
388
|
+
}, _isSlot(_slot5 = ibiz.i18n.t("app.edit")) ? _slot5 : {
|
|
389
|
+
default: () => [_slot5]
|
|
381
390
|
}), createVNode(resolveComponent("el-link"), {
|
|
382
391
|
"type": "danger",
|
|
383
392
|
"disabled": !groupItem.saved,
|
|
384
|
-
"title": !groupItem.saved ? "
|
|
393
|
+
"title": !groupItem.saved ? ibiz.i18n.t("control.searchBar.searchGroups.savePrompt") : "",
|
|
385
394
|
"onClick": () => this.removeGroup(groupItem)
|
|
386
|
-
}, {
|
|
387
|
-
default: () => [
|
|
395
|
+
}, _isSlot(_slot6 = ibiz.i18n.t("app.delete")) ? _slot6 : {
|
|
396
|
+
default: () => [_slot6]
|
|
388
397
|
})])]);
|
|
389
398
|
}
|
|
390
399
|
})])])]
|
|
@@ -70,21 +70,22 @@ const IBizExportExcel = /* @__PURE__ */ defineComponent({
|
|
|
70
70
|
});
|
|
71
71
|
},
|
|
72
72
|
default: () => {
|
|
73
|
+
let _slot2, _slot3, _slot4, _slot5;
|
|
73
74
|
return [createVNode(resolveComponent("el-menu-item"), {
|
|
74
75
|
"class": this.ns.b("menu-item"),
|
|
75
76
|
"onClick": (e) => this.onCommand("maxRowCount", e)
|
|
76
|
-
}, {
|
|
77
|
-
default: () => [
|
|
77
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("control.toolbar.exportExcel.exportAll")) ? _slot2 : {
|
|
78
|
+
default: () => [_slot2]
|
|
78
79
|
}), createVNode(resolveComponent("el-menu-item"), {
|
|
79
80
|
"class": this.ns.b("menu-item"),
|
|
80
81
|
"onClick": (e) => this.onCommand("activatedPage", e)
|
|
81
|
-
}, {
|
|
82
|
-
default: () => [
|
|
82
|
+
}, _isSlot(_slot3 = ibiz.i18n.t("control.toolbar.exportExcel.expCurrentPage")) ? _slot3 : {
|
|
83
|
+
default: () => [_slot3]
|
|
83
84
|
}), createVNode(resolveComponent("el-menu-item"), {
|
|
84
85
|
"class": this.ns.b("menu-item"),
|
|
85
86
|
"onClick": (e) => this.onCommand("selectedRows", e)
|
|
86
|
-
}, {
|
|
87
|
-
default: () => [
|
|
87
|
+
}, _isSlot(_slot4 = ibiz.i18n.t("control.toolbar.exportExcel.expCurrentSelect")) ? _slot4 : {
|
|
88
|
+
default: () => [_slot4]
|
|
88
89
|
}), createVNode(resolveComponent("el-menu-item"), {
|
|
89
90
|
"class": [this.ns.b("menu-item"), this.ns.e("custom")]
|
|
90
91
|
}, {
|
|
@@ -119,11 +120,11 @@ const IBizExportExcel = /* @__PURE__ */ defineComponent({
|
|
|
119
120
|
"onClick": (event) => {
|
|
120
121
|
event.stopPropagation();
|
|
121
122
|
}
|
|
122
|
-
}, [
|
|
123
|
+
}, [ibiz.i18n.t("control.toolbar.exportExcel.page")]), createVNode(resolveComponent("el-button"), {
|
|
123
124
|
"onClick": (e) => this.onCommand("customPage", e),
|
|
124
125
|
"size": "small"
|
|
125
|
-
}, {
|
|
126
|
-
default: () => [
|
|
126
|
+
}, _isSlot(_slot5 = ibiz.i18n.t("control.toolbar.exportExcel.export")) ? _slot5 : {
|
|
127
|
+
default: () => [_slot5]
|
|
127
128
|
})]
|
|
128
129
|
})];
|
|
129
130
|
}
|
|
@@ -134,29 +135,30 @@ const IBizExportExcel = /* @__PURE__ */ defineComponent({
|
|
|
134
135
|
"trigger": "click"
|
|
135
136
|
}, {
|
|
136
137
|
default: () => {
|
|
137
|
-
let
|
|
138
|
+
let _slot6;
|
|
138
139
|
return createVNode(resolveComponent("el-button"), {
|
|
139
140
|
"title": this.item.tooltip,
|
|
140
141
|
"size": this.$props.size,
|
|
141
142
|
"class": this.ns.e("button")
|
|
142
|
-
}, _isSlot(
|
|
143
|
-
default: () => [
|
|
143
|
+
}, _isSlot(_slot6 = this.btnContent(this.item)) ? _slot6 : {
|
|
144
|
+
default: () => [_slot6]
|
|
144
145
|
});
|
|
145
146
|
},
|
|
146
147
|
dropdown: () => {
|
|
148
|
+
let _slot7, _slot8, _slot9, _slot10;
|
|
147
149
|
return createVNode(resolveComponent("el-dropdown-menu"), null, {
|
|
148
150
|
default: () => [createVNode(resolveComponent("el-dropdown-item"), {
|
|
149
151
|
"command": "maxRowCount"
|
|
150
|
-
}, {
|
|
151
|
-
default: () => [
|
|
152
|
+
}, _isSlot(_slot7 = ibiz.i18n.t("control.toolbar.exportExcel.exportAll")) ? _slot7 : {
|
|
153
|
+
default: () => [_slot7]
|
|
152
154
|
}), createVNode(resolveComponent("el-dropdown-item"), {
|
|
153
155
|
"command": "activatedPage"
|
|
154
|
-
}, {
|
|
155
|
-
default: () => [
|
|
156
|
+
}, _isSlot(_slot8 = ibiz.i18n.t("control.toolbar.exportExcel.expCurrentPage")) ? _slot8 : {
|
|
157
|
+
default: () => [_slot8]
|
|
156
158
|
}), createVNode(resolveComponent("el-dropdown-item"), {
|
|
157
159
|
"command": "selectedRows"
|
|
158
|
-
}, {
|
|
159
|
-
default: () => [
|
|
160
|
+
}, _isSlot(_slot9 = ibiz.i18n.t("control.toolbar.exportExcel.expCurrentSelect")) ? _slot9 : {
|
|
161
|
+
default: () => [_slot9]
|
|
160
162
|
}), createVNode(resolveComponent("el-dropdown-item"), {
|
|
161
163
|
"class": this.ns.e("custom"),
|
|
162
164
|
"command": ""
|
|
@@ -192,11 +194,11 @@ const IBizExportExcel = /* @__PURE__ */ defineComponent({
|
|
|
192
194
|
"onClick": (event) => {
|
|
193
195
|
event.stopPropagation();
|
|
194
196
|
}
|
|
195
|
-
}, [
|
|
197
|
+
}, [ibiz.i18n.t("control.toolbar.exportExcel.page")]), createVNode(resolveComponent("el-button"), {
|
|
196
198
|
"onClick": (e) => this.onCommand("customPage", e),
|
|
197
199
|
"size": "small"
|
|
198
|
-
}, {
|
|
199
|
-
default: () => [
|
|
200
|
+
}, _isSlot(_slot10 = ibiz.i18n.t("control.toolbar.exportExcel.export")) ? _slot10 : {
|
|
201
|
+
default: () => [_slot10]
|
|
200
202
|
})]
|
|
201
203
|
})]
|
|
202
204
|
});
|
|
@@ -13,7 +13,7 @@ function useElTreeUtil(treeRef, c) {
|
|
|
13
13
|
const getTreeInstance = () => {
|
|
14
14
|
const elTree = treeRef.value;
|
|
15
15
|
if (!elTree) {
|
|
16
|
-
throw new RuntimeError("
|
|
16
|
+
throw new RuntimeError(ibiz.i18n.t("control.tree.noFoundInstance"));
|
|
17
17
|
}
|
|
18
18
|
return elTree;
|
|
19
19
|
};
|
|
@@ -66,7 +66,9 @@ function formatNodeDropType(dropType) {
|
|
|
66
66
|
case "after":
|
|
67
67
|
return "next";
|
|
68
68
|
default:
|
|
69
|
-
throw new RuntimeError(
|
|
69
|
+
throw new RuntimeError(
|
|
70
|
+
ibiz.i18n.t("control.tree.noSupported", { dropType })
|
|
71
|
+
);
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
|
package/es/control/tree/tree.mjs
CHANGED
|
@@ -349,7 +349,9 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
349
349
|
const updateNodeExpand = (data, expanded) => {
|
|
350
350
|
const nodeData = findNodeData(data._uuid, c);
|
|
351
351
|
if (!nodeData) {
|
|
352
|
-
throw new RuntimeError(
|
|
352
|
+
throw new RuntimeError(ibiz.i18n.t("control.common.noFoundNode", {
|
|
353
|
+
id: data._uuid
|
|
354
|
+
}));
|
|
353
355
|
}
|
|
354
356
|
c.onExpandChange(nodeData, expanded);
|
|
355
357
|
};
|
|
@@ -153,7 +153,9 @@ const TreeGridControl = /* @__PURE__ */ defineComponent({
|
|
|
153
153
|
"class": ns.b("batch-toolbar-content")
|
|
154
154
|
}, [createVNode("div", {
|
|
155
155
|
"class": ns.b("batch-toolbar-text")
|
|
156
|
-
}, [
|
|
156
|
+
}, [ibiz.i18n.t("control.common.itemsSelected", {
|
|
157
|
+
length: c.state.selectedData.length
|
|
158
|
+
})]), createVNode("div", {
|
|
157
159
|
"class": ns.b("batch-toolbar-separator")
|
|
158
160
|
}, [createTextVNode("|")]), createVNode(resolveComponent("iBizToolbarControl"), {
|
|
159
161
|
"modelData": batchToolbar,
|
|
@@ -41,7 +41,9 @@ const TreeGridExEditColumn = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
case "all":
|
|
42
42
|
return useAllEdit(props, componentRef);
|
|
43
43
|
default:
|
|
44
|
-
throw new RuntimeError(
|
|
44
|
+
throw new RuntimeError(ibiz.i18n.t("control.common.noSupportItem", {
|
|
45
|
+
name: ibiz.config.grid.editShowMode
|
|
46
|
+
}));
|
|
45
47
|
}
|
|
46
48
|
};
|
|
47
49
|
const {
|
|
@@ -108,7 +108,9 @@ const TreeGridExControl = /* @__PURE__ */ defineComponent({
|
|
|
108
108
|
if (row && row.showRowEdit !== true) {
|
|
109
109
|
await c.switchRowEdit(row, true);
|
|
110
110
|
} else {
|
|
111
|
-
throw new RuntimeError(
|
|
111
|
+
throw new RuntimeError(ibiz.i18n.t("control.treeGridEx.noFoundMessage", {
|
|
112
|
+
id: data.id
|
|
113
|
+
}));
|
|
112
114
|
}
|
|
113
115
|
} else {
|
|
114
116
|
c.onTreeNodeClick(nodeData, event);
|
|
@@ -151,7 +153,9 @@ const TreeGridExControl = /* @__PURE__ */ defineComponent({
|
|
|
151
153
|
const onExpandChange = (row, expanded) => {
|
|
152
154
|
const nodeData = c.getNodeData(row._uuid);
|
|
153
155
|
if (!nodeData) {
|
|
154
|
-
throw new RuntimeError(
|
|
156
|
+
throw new RuntimeError(ibiz.i18n.t("control.common.noFoundNode", {
|
|
157
|
+
id: row._uuid
|
|
158
|
+
}));
|
|
155
159
|
}
|
|
156
160
|
c.onExpandChange(nodeData, expanded);
|
|
157
161
|
};
|
|
@@ -11,7 +11,7 @@ function useRowEditPopover(tableRef, c) {
|
|
|
11
11
|
const popStyle = reactive({});
|
|
12
12
|
const findTrEl = (row) => {
|
|
13
13
|
if (!tableRef.value) {
|
|
14
|
-
throw new RuntimeError("
|
|
14
|
+
throw new RuntimeError(ibiz.i18n.t("control.common.citeErrMessage"));
|
|
15
15
|
}
|
|
16
16
|
const tableEl = tableRef.value.$el;
|
|
17
17
|
let selector = ".el-table__row";
|
|
@@ -20,7 +20,7 @@ function useRowEditPopover(tableRef, c) {
|
|
|
20
20
|
}
|
|
21
21
|
const trEl = tableEl.querySelector(selector);
|
|
22
22
|
if (!trEl) {
|
|
23
|
-
throw new RuntimeError("
|
|
23
|
+
throw new RuntimeError(ibiz.i18n.t("control.common.noDomErrMessage"));
|
|
24
24
|
}
|
|
25
25
|
return trEl;
|
|
26
26
|
};
|
|
@@ -29,7 +29,7 @@ function useRowEditPopover(tableRef, c) {
|
|
|
29
29
|
const trEl = findTrEl(row);
|
|
30
30
|
showPlaceholder.value = ((_a = trEl.parentNode) == null ? void 0 : _a.lastElementChild) === trEl;
|
|
31
31
|
if (!popInstance) {
|
|
32
|
-
throw new RuntimeError("
|
|
32
|
+
throw new RuntimeError(ibiz.i18n.t("control.common.noPopErrMessage"));
|
|
33
33
|
}
|
|
34
34
|
const popEl = popInstance.$el;
|
|
35
35
|
const {
|
|
@@ -71,19 +71,19 @@ const WizardPanelControl = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
this.c.onPrevClick();
|
|
72
72
|
}
|
|
73
73
|
}, {
|
|
74
|
-
default: () => [dewizard.prevCaption ? dewizard.prevCaption : "
|
|
74
|
+
default: () => [dewizard.prevCaption ? dewizard.prevCaption : ibiz.i18n.t("control.common.retreat")]
|
|
75
75
|
}), ((_c = buttonsState["".concat(activeFormTag, "@NEXT")]) == null ? void 0 : _c.visible) && createVNode(resolveComponent("el-button"), {
|
|
76
76
|
"onClick": () => {
|
|
77
77
|
this.c.onNextClick();
|
|
78
78
|
}
|
|
79
79
|
}, {
|
|
80
|
-
default: () => [dewizard.nextCaption ? dewizard.nextCaption : "
|
|
80
|
+
default: () => [dewizard.nextCaption ? dewizard.nextCaption : ibiz.i18n.t("control.common.forward")]
|
|
81
81
|
}), ((_d = buttonsState["".concat(activeFormTag, "@FINISH")]) == null ? void 0 : _d.visible) && createVNode(resolveComponent("el-button"), {
|
|
82
82
|
"onClick": () => {
|
|
83
83
|
this.c.onFinishClick();
|
|
84
84
|
}
|
|
85
85
|
}, {
|
|
86
|
-
default: () => [dewizard.finishCaption ? dewizard.finishCaption : "
|
|
86
|
+
default: () => [dewizard.finishCaption ? dewizard.finishCaption : ibiz.i18n.t("app.complete")]
|
|
87
87
|
})]);
|
|
88
88
|
const {
|
|
89
89
|
dewizardSteps
|
|
@@ -107,7 +107,10 @@ class AutoCompleteEditorController extends EditorController {
|
|
|
107
107
|
);
|
|
108
108
|
return res;
|
|
109
109
|
}
|
|
110
|
-
throw new RuntimeModelError(
|
|
110
|
+
throw new RuntimeModelError(
|
|
111
|
+
this.model,
|
|
112
|
+
ibiz.i18n.t("editor.common.entityConfigErr")
|
|
113
|
+
);
|
|
111
114
|
}
|
|
112
115
|
/**
|
|
113
116
|
* 计算回填数据
|
|
@@ -260,7 +260,9 @@ const IBizCascader = /* @__PURE__ */ defineComponent({
|
|
|
260
260
|
const nodes = response.data.map((item, index) => ({
|
|
261
261
|
...item,
|
|
262
262
|
value: item.srfkey,
|
|
263
|
-
label: item.srfmajortext ? item.srfmajortext : "
|
|
263
|
+
label: item.srfmajortext ? item.srfmajortext : ibiz.i18n.t("editor.cascader.ibizCascader.title", {
|
|
264
|
+
index
|
|
265
|
+
}),
|
|
264
266
|
leaf: level === valueItems.value.length - 1,
|
|
265
267
|
nodekey: "".concat(value ? "".concat(value, "_").concat(item.srfkey) : item.srfkey)
|
|
266
268
|
}));
|