@ibiz-template/vue3-components 0.7.11 → 0.7.13-alpha.0
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/index-Ky5xo5V5.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/wang-editor-PQvDXaA9.js +1 -0
- package/dist/{xlsx-util-lBpTaCO_.js → xlsx-util-OSsMvylt.js} +1 -1
- package/es/control/context-menu/context-menu.d.ts +1 -0
- package/es/control/context-menu/context-menu.mjs +8 -0
- package/es/control/context-menu/index.d.ts +1 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +2 -0
- 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-repeater/repeater-grid/repeater-grid.d.ts +2 -0
- package/es/control/grid/grid/grid.mjs +0 -1
- package/es/control/kanban/kanban.mjs +1 -1
- package/es/control/list/list.mjs +2 -2
- package/es/control/search-bar/filter-tree/filter-tree.mjs +2 -2
- package/es/control/toolbar/export-excel/export-excel.css +1 -1
- 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-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/wang-editor.mjs +7 -7
- 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/locale/en/index.d.ts +550 -44
- package/es/locale/en/index.mjs +554 -48
- package/es/locale/zh-CN/index.d.ts +548 -44
- package/es/locale/zh-CN/index.mjs +552 -48
- package/es/panel-component/auth-captcha/auth-captcha.controller.d.ts +57 -0
- package/es/panel-component/auth-captcha/auth-captcha.controller.mjs +123 -0
- package/es/panel-component/auth-captcha/auth-captcha.css +1 -0
- package/es/panel-component/auth-captcha/auth-captcha.d.ts +29 -0
- package/es/panel-component/auth-captcha/auth-captcha.mjs +72 -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 +45 -0
- package/es/panel-component/auth-captcha/auth-captcha.state.mjs +51 -0
- package/es/panel-component/auth-captcha/index.d.ts +26 -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-button/panel-button.controller.mjs +7 -1
- 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/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.d.ts +3 -1
- package/es/view-engine/login-view.engine.mjs +20 -4
- 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 +2 -2
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.mjs +3 -1
- package/lib/control/context-menu/context-menu.cjs +8 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +1 -1
- package/lib/control/grid/grid/grid.cjs +0 -1
- package/lib/control/kanban/kanban.cjs +1 -1
- package/lib/control/list/list.cjs +1 -1
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +2 -2
- package/lib/control/toolbar/export-excel/export-excel.css +1 -1
- 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-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/wang-editor.cjs +6 -6
- 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/locale/en/index.cjs +554 -48
- package/lib/locale/zh-CN/index.cjs +552 -48
- package/lib/panel-component/auth-captcha/auth-captcha.cjs +74 -0
- package/lib/panel-component/auth-captcha/auth-captcha.controller.cjs +125 -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 +53 -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-button/panel-button.controller.cjs +7 -1
- 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/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 +20 -4
- 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 +2 -2
- package/lib/web-app/util/unauthorized-handler/unauthorized-handler.cjs +3 -1
- package/package.json +6 -5
- package/dist/index-0Z8KS6t6.js +0 -1
- package/dist/index-GZW20-jI.js +0 -4
- package/dist/index-OkS9bkdl.js +0 -1
- package/dist/wang-editor-HlmvPsb1.js +0 -1
|
@@ -37,6 +37,7 @@ export declare const ContextMenuControl: import("vue").DefineComponent<{
|
|
|
37
37
|
expandDetails: Ref<IDETBUIActionItem[]>;
|
|
38
38
|
groupDetails: Ref<IDETBUIActionItem[]>;
|
|
39
39
|
groupButtonRef: Ref<any>;
|
|
40
|
+
dropdownRef: Ref<any>;
|
|
40
41
|
popoverVisible: Ref<boolean>;
|
|
41
42
|
handleClick: (detail: IDETBUIActionItem, e: MouseEvent) => Promise<void>;
|
|
42
43
|
calcActionItemClass: (item: IDETBUIActionItem) => string[];
|
|
@@ -53,6 +53,7 @@ const ContextMenuControl = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
const expandDetails = ref([]);
|
|
54
54
|
const groupDetails = ref([]);
|
|
55
55
|
const groupButtonRef = ref();
|
|
56
|
+
const dropdownRef = ref();
|
|
56
57
|
const popoverVisible = ref(false);
|
|
57
58
|
if (actionDetails) {
|
|
58
59
|
actionDetails == null ? void 0 : actionDetails.forEach((detail) => {
|
|
@@ -86,6 +87,11 @@ const ContextMenuControl = /* @__PURE__ */ defineComponent({
|
|
|
86
87
|
await c.calcButtonState(props.nodeData._deData || (props.nodeData.srfkey ? props.nodeData : void 0), props.nodeModel.appDataEntityId);
|
|
87
88
|
});
|
|
88
89
|
const handleClick = async (detail, e) => {
|
|
90
|
+
if (props.mode === "buttons") {
|
|
91
|
+
popoverVisible.value = false;
|
|
92
|
+
} else if (dropdownRef.value) {
|
|
93
|
+
dropdownRef.value.handleClose();
|
|
94
|
+
}
|
|
89
95
|
e.stopPropagation();
|
|
90
96
|
emit("action-click", detail, e);
|
|
91
97
|
};
|
|
@@ -95,6 +101,7 @@ const ContextMenuControl = /* @__PURE__ */ defineComponent({
|
|
|
95
101
|
expandDetails,
|
|
96
102
|
groupDetails,
|
|
97
103
|
groupButtonRef,
|
|
104
|
+
dropdownRef,
|
|
98
105
|
popoverVisible,
|
|
99
106
|
handleClick,
|
|
100
107
|
calcActionItemClass,
|
|
@@ -164,6 +171,7 @@ const ContextMenuControl = /* @__PURE__ */ defineComponent({
|
|
|
164
171
|
})]]);
|
|
165
172
|
}
|
|
166
173
|
return createVNode(resolveComponent("el-dropdown"), {
|
|
174
|
+
"ref": "dropdownRef",
|
|
167
175
|
"onCommand": (command) => this.handleClick(command, new MouseEvent("click")),
|
|
168
176
|
"class": [this.ns.b(), this.ns.m("dropdown")]
|
|
169
177
|
}, {
|
|
@@ -33,6 +33,7 @@ export declare const IBizContextMenuControl: import("@ibiz-template/vue3-util").
|
|
|
33
33
|
expandDetails: import("vue").Ref<import("@ibiz/model-core").IDETBUIActionItem[]>;
|
|
34
34
|
groupDetails: import("vue").Ref<import("@ibiz/model-core").IDETBUIActionItem[]>;
|
|
35
35
|
groupButtonRef: import("vue").Ref<any>;
|
|
36
|
+
dropdownRef: import("vue").Ref<any>;
|
|
36
37
|
popoverVisible: import("vue").Ref<boolean>;
|
|
37
38
|
handleClick: (detail: import("@ibiz/model-core").IDETBUIActionItem, e: MouseEvent) => Promise<void>;
|
|
38
39
|
calcActionItemClass: (item: import("@ibiz/model-core").IDETBUIActionItem) => string[];
|
|
@@ -5109,6 +5109,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
5109
5109
|
[p: string]: import("@ibiz-template/runtime").IViewMessage[];
|
|
5110
5110
|
};
|
|
5111
5111
|
isClosing: boolean;
|
|
5112
|
+
isShortCut: boolean;
|
|
5112
5113
|
isCreated: boolean;
|
|
5113
5114
|
isMounted: boolean;
|
|
5114
5115
|
isDestroyed: boolean;
|
|
@@ -12170,6 +12171,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
12170
12171
|
[p: string]: import("@ibiz-template/runtime").IViewMessage[];
|
|
12171
12172
|
};
|
|
12172
12173
|
isClosing: boolean;
|
|
12174
|
+
isShortCut: boolean;
|
|
12173
12175
|
isCreated: boolean;
|
|
12174
12176
|
isMounted: boolean;
|
|
12175
12177
|
isDestroyed: boolean;
|
|
@@ -117,7 +117,7 @@ const FormGroupPanel = /* @__PURE__ */ defineComponent({
|
|
|
117
117
|
"onClick": () => {
|
|
118
118
|
state.isShowMore = !state.isShowMore;
|
|
119
119
|
}
|
|
120
|
-
}, [!state.isShowMore ? ibiz.i18n.t("control.form.formGroupPanel.showMore") : ibiz.i18n.t("
|
|
120
|
+
}, [!state.isShowMore ? ibiz.i18n.t("control.form.formGroupPanel.showMore") : ibiz.i18n.t("app.retract")])]);
|
|
121
121
|
}
|
|
122
122
|
return createVNode("div", {
|
|
123
123
|
"class": classArr,
|
|
@@ -3148,6 +3148,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
3148
3148
|
[p: string]: import("@ibiz-template/runtime").IViewMessage[];
|
|
3149
3149
|
};
|
|
3150
3150
|
isClosing: boolean;
|
|
3151
|
+
isShortCut: boolean;
|
|
3151
3152
|
isCreated: boolean;
|
|
3152
3153
|
isMounted: boolean;
|
|
3153
3154
|
isDestroyed: boolean;
|
|
@@ -7366,6 +7367,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
7366
7367
|
[p: string]: import("@ibiz-template/runtime").IViewMessage[];
|
|
7367
7368
|
};
|
|
7368
7369
|
isClosing: boolean;
|
|
7370
|
+
isShortCut: boolean;
|
|
7369
7371
|
isCreated: boolean;
|
|
7370
7372
|
isMounted: boolean;
|
|
7371
7373
|
isDestroyed: boolean;
|
|
@@ -246,7 +246,6 @@ const GridControl = /* @__PURE__ */ defineComponent({
|
|
|
246
246
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
247
247
|
"height": "1em",
|
|
248
248
|
"width": "1em",
|
|
249
|
-
"preserveAspectRatio": "drag-icon",
|
|
250
249
|
"focusable": "false"
|
|
251
250
|
}, [createVNode("g", {
|
|
252
251
|
"id": "drag-icon/drag--",
|
|
@@ -296,7 +296,7 @@ const KanbanControl = /* @__PURE__ */ defineComponent({
|
|
|
296
296
|
}, {
|
|
297
297
|
default: () => [createVNode("ion-icon", {
|
|
298
298
|
"name": "add-outline",
|
|
299
|
-
"title": ibiz.i18n.t("
|
|
299
|
+
"title": ibiz.i18n.t("app.newlyBuild")
|
|
300
300
|
}, null)]
|
|
301
301
|
}), showActionBar && createVNode(resolveComponent("el-dropdown"), {
|
|
302
302
|
"class": ns.be("group", "header-actions"),
|
package/es/control/list/list.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode, computed, resolveComponent, createVNode,
|
|
1
|
+
import { isVNode, computed, resolveComponent, createVNode, resolveDirective, withDirectives, defineComponent } from 'vue';
|
|
2
2
|
import { useControlController, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { isNil } from 'lodash-es';
|
|
4
4
|
import { ListController } from '@ibiz-template/runtime';
|
|
@@ -115,7 +115,7 @@ const ListControl = /* @__PURE__ */ defineComponent({
|
|
|
115
115
|
return panel ? renderPanelItem(item, panel) : renderDefaultItem(item);
|
|
116
116
|
}) : createVNode("div", {
|
|
117
117
|
"class": ns.bem("group-content", "item", "empty")
|
|
118
|
-
}, [
|
|
118
|
+
}, [ibiz.i18n.t("app.noData")])]
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
121
|
const renderListContent = () => {
|
|
@@ -448,12 +448,12 @@ const FilterTreeControl = /* @__PURE__ */ defineComponent({
|
|
|
448
448
|
this.onConfirm();
|
|
449
449
|
}
|
|
450
450
|
}, {
|
|
451
|
-
default: () => [this.isInSearchBar ? ibiz.i18n.t("
|
|
451
|
+
default: () => [this.isInSearchBar ? ibiz.i18n.t("app.search") : ibiz.i18n.t("control.common.determine")]
|
|
452
452
|
}), createVNode(resolveComponent("el-button"), {
|
|
453
453
|
"onClick": () => {
|
|
454
454
|
this.onCancel();
|
|
455
455
|
}
|
|
456
|
-
}, _isSlot(_slot4 = ibiz.i18n.t("
|
|
456
|
+
}, _isSlot(_slot4 = ibiz.i18n.t("app.reset")) ? _slot4 : {
|
|
457
457
|
default: () => [_slot4]
|
|
458
458
|
})])]);
|
|
459
459
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-export-excel{width:270px}.ibiz-export-excel__custom{display:flex;align-items:center;justify-content:center}.ibiz-export-excel__custom>*+*{margin-left:10px}.ibiz-export-excel__custom.el-dropdown-menu__item:focus{color:var(--el-text-color-regular);background-color:transparent}.ibiz-export-excel__custom .el-input{--el-input-text-color:var(--ibiz-color-white)}.ibiz-export-excel__button{display:flex;align-items:center;justify-content:center;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base)}.ibiz-export-excel__button>span{display:flex;align-items:center;justify-content:center;font-size:var(--ibiz-font-size-regular)}.ibiz-export-excel__button>span .ibiz-toolbar-item-icon{display:flex;align-items:center;justify-content:center;width:var(--ibiz-control-toolbar-icon-max-width);height:var(--ibiz-control-toolbar-icon-max-height)}.ibiz-export-excel__button>span .ibiz-toolbar-item-icon .ibiz-icon{display:flex;align-items:center;justify-content:center}.ibiz-export-excel__button>span .ibiz-toolbar-item-icon i{font-size:var(--ibiz-font-size-regular)}.ibiz-export-excel__button>span .ibiz-toolbar-item-icon img{display:inline-block;width:100%;height:100%}.ibiz-export-excel__button>span .ibiz-toolbar-item-icon+.ibiz-toolbar-item-text{margin:var(--ibiz-control-toolbar-text-margin)}.ibiz-export-excel-submenu-button{justify-content:flex-start;width:100%;height:36px;padding:0 10px;border-radius:0}.ibiz-export-excel-submenu-button>span{font-size:var(--ibiz-font-size-regular)}.ibiz-export-excel-submenu-button>span .ibiz-toolbar-item-icon{display:flex;align-items:center;justify-content:center;width:var(--ibiz-control-toolbar-icon-max-width);height:var(--ibiz-control-toolbar-icon-max-height)}.ibiz-export-excel-submenu-button>span .ibiz-toolbar-item-icon .ibiz-icon{display:flex;align-items:center;justify-content:center}.ibiz-export-excel-submenu-button>span .ibiz-toolbar-item-icon i{font-size:var(--ibiz-font-size-regular)}.ibiz-export-excel-submenu-button>span .ibiz-toolbar-item-icon img{display:inline-block;width:100%;height:100%}.ibiz-export-excel-submenu-button>span .ibiz-toolbar-item-icon+.ibiz-toolbar-item-text{margin:var(--ibiz-control-toolbar-text-margin)}.ibiz-control-toolbar-submenu-popper .ibiz-export-excel-submenu .el-sub-menu__title{padding:0}.ibiz-control-toolbar-submenu-popper .ibiz-export-excel-submenu
|
|
1
|
+
.ibiz-export-excel{width:270px}.ibiz-export-excel__custom{display:flex;align-items:center;justify-content:center}.ibiz-export-excel__custom>*+*{margin-left:10px}.ibiz-export-excel__custom.el-dropdown-menu__item:focus{color:var(--el-text-color-regular);background-color:transparent}.ibiz-export-excel__custom .el-input{--el-input-text-color:var(--ibiz-color-white)}.ibiz-export-excel__button{display:flex;align-items:center;justify-content:center;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base)}.ibiz-export-excel__button>span{display:flex;align-items:center;justify-content:center;font-size:var(--ibiz-font-size-regular)}.ibiz-export-excel__button>span .ibiz-toolbar-item-icon{display:flex;align-items:center;justify-content:center;width:var(--ibiz-control-toolbar-icon-max-width);height:var(--ibiz-control-toolbar-icon-max-height)}.ibiz-export-excel__button>span .ibiz-toolbar-item-icon .ibiz-icon{display:flex;align-items:center;justify-content:center}.ibiz-export-excel__button>span .ibiz-toolbar-item-icon i{font-size:var(--ibiz-font-size-regular)}.ibiz-export-excel__button>span .ibiz-toolbar-item-icon img{display:inline-block;width:100%;height:100%}.ibiz-export-excel__button>span .ibiz-toolbar-item-icon+.ibiz-toolbar-item-text{margin:var(--ibiz-control-toolbar-text-margin)}.ibiz-export-excel-submenu-button{justify-content:flex-start;width:100%;height:36px;padding:0 10px;border-radius:0}.ibiz-export-excel-submenu-button>span{font-size:var(--ibiz-font-size-regular)}.ibiz-export-excel-submenu-button>span .ibiz-toolbar-item-icon{display:flex;align-items:center;justify-content:center;width:var(--ibiz-control-toolbar-icon-max-width);height:var(--ibiz-control-toolbar-icon-max-height)}.ibiz-export-excel-submenu-button>span .ibiz-toolbar-item-icon .ibiz-icon{display:flex;align-items:center;justify-content:center}.ibiz-export-excel-submenu-button>span .ibiz-toolbar-item-icon i{font-size:var(--ibiz-font-size-regular)}.ibiz-export-excel-submenu-button>span .ibiz-toolbar-item-icon img{display:inline-block;width:100%;height:100%}.ibiz-export-excel-submenu-button>span .ibiz-toolbar-item-icon+.ibiz-toolbar-item-text{margin:var(--ibiz-control-toolbar-text-margin)}.ibiz-control-toolbar-submenu-popper .ibiz-export-excel-submenu .el-sub-menu__title{padding:0}.ibiz-control-toolbar-submenu-popper .ibiz-export-excel-submenu.hover{color:var(--ibiz-color-primary-hover-text);background-color:var(--ibiz-color-primary-hover)}.ibiz-control-toolbar-submenu-popper .ibiz-export-excel-submenu .ibiz-export-excel-submenu-popper{width:270px;color:var(--ibiz-color-primary-text);background-color:var(--ibiz-color-primary)}
|
|
@@ -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
|
}));
|
|
@@ -162,14 +162,14 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
162
162
|
const renderCancelMessage = () => {
|
|
163
163
|
return createVNode("div", {
|
|
164
164
|
"class": ns.be("message", "message-content")
|
|
165
|
-
}, [createVNode("p", null, [ibiz.i18n.t("editor.
|
|
165
|
+
}, [createVNode("p", null, [ibiz.i18n.t("editor.common.confirmCancelPrompt")]), createVNode("p", {
|
|
166
166
|
"class": ns.bem("message", "message-content", "message-tip")
|
|
167
|
-
}, [ibiz.i18n.t("editor.
|
|
167
|
+
}, [ibiz.i18n.t("editor.common.cancelEditPrompt")])]);
|
|
168
168
|
};
|
|
169
169
|
const cancelEdit = () => {
|
|
170
170
|
if (props.value !== (editor == null ? void 0 : editor.getValue())) {
|
|
171
171
|
ElMessageBox({
|
|
172
|
-
title: ibiz.i18n.t("editor.
|
|
172
|
+
title: ibiz.i18n.t("editor.common.confirmCancel"),
|
|
173
173
|
type: "warning",
|
|
174
174
|
customClass: ns.b("message"),
|
|
175
175
|
message: renderCancelMessage(),
|
|
@@ -220,7 +220,7 @@ const IBizPickerDropDown = /* @__PURE__ */ defineComponent({
|
|
|
220
220
|
"onUpdate:modelValue": ($event) => this.refValue = $event,
|
|
221
221
|
"filterable": true,
|
|
222
222
|
"remote": true,
|
|
223
|
-
"remote-show-suffix":
|
|
223
|
+
"remote-show-suffix": this.c.model.showTrigger,
|
|
224
224
|
"clearable": true,
|
|
225
225
|
"loading": this.loading,
|
|
226
226
|
"placeholder": this.c.placeHolder ? this.c.placeHolder : " ",
|
|
@@ -438,7 +438,8 @@ const IBizPickerSelectView = /* @__PURE__ */ defineComponent({
|
|
|
438
438
|
this.onFocus(e);
|
|
439
439
|
},
|
|
440
440
|
"onKeyup": this.handleKeyUp,
|
|
441
|
-
"disabled": this.disabled || this.readonly
|
|
441
|
+
"disabled": this.disabled || this.readonly,
|
|
442
|
+
"remote-show-suffix": this.c.model.showTrigger
|
|
442
443
|
}, _isSlot(_slot = this.items.map((item, index) => {
|
|
443
444
|
return createVNode(resolveComponent("el-option"), {
|
|
444
445
|
"key": item.srfkey + index,
|
|
@@ -186,7 +186,10 @@ class PickerEditorController extends EditorController {
|
|
|
186
186
|
);
|
|
187
187
|
return res;
|
|
188
188
|
}
|
|
189
|
-
throw new RuntimeModelError(
|
|
189
|
+
throw new RuntimeModelError(
|
|
190
|
+
this.model,
|
|
191
|
+
ibiz.i18n.t("editor.common.entityConfigErr")
|
|
192
|
+
);
|
|
190
193
|
}
|
|
191
194
|
/**
|
|
192
195
|
* 打开数据选择视图
|
|
@@ -207,7 +210,10 @@ class PickerEditorController extends EditorController {
|
|
|
207
210
|
params.selectedData = selectedData;
|
|
208
211
|
}
|
|
209
212
|
if (!this.pickupView) {
|
|
210
|
-
throw new RuntimeModelError(
|
|
213
|
+
throw new RuntimeModelError(
|
|
214
|
+
this.model,
|
|
215
|
+
ibiz.i18n.t("editor.common.selectViewConfigErr")
|
|
216
|
+
);
|
|
211
217
|
}
|
|
212
218
|
const res = await ibiz.commands.execute(
|
|
213
219
|
OpenAppViewCommand.TAG,
|
|
@@ -236,7 +242,10 @@ class PickerEditorController extends EditorController {
|
|
|
236
242
|
);
|
|
237
243
|
const { linkAppViewId } = this.model;
|
|
238
244
|
if (!linkAppViewId) {
|
|
239
|
-
throw new RuntimeModelError(
|
|
245
|
+
throw new RuntimeModelError(
|
|
246
|
+
this.model,
|
|
247
|
+
ibiz.i18n.t("editor.common.linkViewConfigErr")
|
|
248
|
+
);
|
|
240
249
|
}
|
|
241
250
|
return ibiz.commands.execute(
|
|
242
251
|
OpenAppViewCommand.TAG,
|
|
@@ -18,7 +18,7 @@ const IBizDateRangePicker = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
let unlinkPanels = false;
|
|
19
19
|
const startPlaceHolder = editorModel.placeHolder ? editorModel.placeHolder.split(";")[0] || "" : "";
|
|
20
20
|
const endPlaceHolder = editorModel.placeHolder ? editorModel.placeHolder.split(";")[1] || "" : "";
|
|
21
|
-
let rangeSeparator = "
|
|
21
|
+
let rangeSeparator = ibiz.i18n.t("editor.dateRange.rangeSeparator");
|
|
22
22
|
if (editorModel.editorParams) {
|
|
23
23
|
if (editorModel.editorParams.valueSeparator) {
|
|
24
24
|
valueSeparator = editorModel.editorParams.valueSeparator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, shallowRef, watch, onBeforeUnmount, nextTick, onMounted,
|
|
1
|
+
import { ref, shallowRef, watch, onBeforeUnmount, nextTick, onMounted, createVNode, onUnmounted, resolveComponent, defineComponent } from 'vue';
|
|
2
2
|
import { Toolbar, Editor } from '@wangeditor/editor-for-vue';
|
|
3
3
|
import { getCookie, createUUID } from 'qx-util';
|
|
4
4
|
import { isNil } from 'ramda';
|
|
@@ -252,7 +252,7 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
|
|
|
252
252
|
emit("blur");
|
|
253
253
|
};
|
|
254
254
|
const customAlert = (info, type) => {
|
|
255
|
-
alert("\u3010\
|
|
255
|
+
alert("\u3010".concat(ibiz.i18n.t("editor.html.wangEditor.customTips"), "\u3011").concat(type, " - ").concat(info));
|
|
256
256
|
};
|
|
257
257
|
const customPaste = (editor, event, callback) => {
|
|
258
258
|
callback(true);
|
|
@@ -353,14 +353,14 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
|
|
|
353
353
|
const renderCancelMessage = () => {
|
|
354
354
|
return createVNode("div", {
|
|
355
355
|
"class": ns.be("message", "message-content")
|
|
356
|
-
}, [createVNode("p", null, [
|
|
356
|
+
}, [createVNode("p", null, [ibiz.i18n.t("editor.common.confirmCancelPrompt")]), createVNode("p", {
|
|
357
357
|
"class": ns.bem("message", "message-content", "message-tip")
|
|
358
|
-
}, [
|
|
358
|
+
}, [ibiz.i18n.t("editor.common.cancelEditPrompt")])]);
|
|
359
359
|
};
|
|
360
360
|
const cancelEdit = () => {
|
|
361
361
|
if (props.value !== valueHtml.value) {
|
|
362
362
|
ElMessageBox({
|
|
363
|
-
title: "
|
|
363
|
+
title: ibiz.i18n.t("editor.common.confirmCancel"),
|
|
364
364
|
type: "warning",
|
|
365
365
|
customClass: ns.b("message"),
|
|
366
366
|
message: renderCancelMessage(),
|
|
@@ -395,10 +395,10 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
|
|
|
395
395
|
}, [createVNode("div", {
|
|
396
396
|
"class": ns.be("footer", "cancel"),
|
|
397
397
|
"onClick": () => cancelEdit()
|
|
398
|
-
}, [
|
|
398
|
+
}, [ibiz.i18n.t("app.cancel")]), createVNode("div", {
|
|
399
399
|
"class": ns.be("footer", "save"),
|
|
400
400
|
"onClick": () => save()
|
|
401
|
-
}, [
|
|
401
|
+
}, [ibiz.i18n.t("app.save")])]);
|
|
402
402
|
}
|
|
403
403
|
return null;
|
|
404
404
|
};
|
|
@@ -58,7 +58,10 @@ class ListBoxPickerEditorController extends EditorController {
|
|
|
58
58
|
);
|
|
59
59
|
return res;
|
|
60
60
|
}
|
|
61
|
-
throw new RuntimeModelError(
|
|
61
|
+
throw new RuntimeModelError(
|
|
62
|
+
this.model,
|
|
63
|
+
ibiz.i18n.t("editor.common.entityConfigErr")
|
|
64
|
+
);
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
|
|
@@ -89,7 +89,7 @@ class MarkDownEditorController extends EditorController {
|
|
|
89
89
|
} catch (error) {
|
|
90
90
|
throw new RuntimeModelError(
|
|
91
91
|
uploadparams,
|
|
92
|
-
"
|
|
92
|
+
ibiz.i18n.t("editor.markdown.uploadJsonFormatErr")
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -99,7 +99,7 @@ class MarkDownEditorController extends EditorController {
|
|
|
99
99
|
} catch (error) {
|
|
100
100
|
throw new RuntimeModelError(
|
|
101
101
|
exportparams,
|
|
102
|
-
"
|
|
102
|
+
ibiz.i18n.t("editor.markdown.exportJsonFormatErr")
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './not-supported-editor.css';
|
|
4
4
|
|
|
@@ -20,7 +20,9 @@ const NotSupportedEditor = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
render() {
|
|
21
21
|
return createVNode("div", {
|
|
22
22
|
"class": this.ns.b()
|
|
23
|
-
}, [
|
|
23
|
+
}, [ibiz.i18n.t("editor.notSupportedEditor.unsupportedType", {
|
|
24
|
+
type: this.modelData.editorType
|
|
25
|
+
})]);
|
|
24
26
|
}
|
|
25
27
|
});
|
|
26
28
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, watch, resolveComponent, createVNode,
|
|
1
|
+
import { ref, watch, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getRawProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-preset-rawitem.css';
|
|
4
4
|
|
|
@@ -46,7 +46,9 @@ const IBizPresetRawitem = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
"type": "TEXT"
|
|
47
47
|
}, null);
|
|
48
48
|
} else {
|
|
49
|
-
content = createVNode("div", null, [
|
|
49
|
+
content = createVNode("div", null, [ibiz.i18n.t("editor.preset.ibizPresetRawitem.noSupportType", {
|
|
50
|
+
type: this.type
|
|
51
|
+
})]);
|
|
50
52
|
}
|
|
51
53
|
return createVNode("div", {
|
|
52
54
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : ""],
|
|
@@ -49,7 +49,10 @@ class SpanEditorController extends CodeListEditorController {
|
|
|
49
49
|
);
|
|
50
50
|
const { linkAppViewId } = this.model;
|
|
51
51
|
if (!linkAppViewId) {
|
|
52
|
-
throw new RuntimeModelError(
|
|
52
|
+
throw new RuntimeModelError(
|
|
53
|
+
this.model,
|
|
54
|
+
ibiz.i18n.t("editor.common.linkViewConfigErr")
|
|
55
|
+
);
|
|
53
56
|
}
|
|
54
57
|
return ibiz.commands.execute(
|
|
55
58
|
OpenAppViewCommand.TAG,
|
|
@@ -40,7 +40,9 @@ const IBizInputIP = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
if (reg.test(newVal)) {
|
|
41
41
|
currentVal.value[index] = newVal;
|
|
42
42
|
} else if (ip) {
|
|
43
|
-
ibiz.message.warning("
|
|
43
|
+
ibiz.message.warning(ibiz.i18n.t("editor.textBox.warningMessage", {
|
|
44
|
+
num: index + 1
|
|
45
|
+
}));
|
|
44
46
|
ip.value = oldVal;
|
|
45
47
|
currentVal.value[index] = oldVal;
|
|
46
48
|
}
|
|
@@ -116,10 +116,10 @@ class TextBoxEditorController extends EditorController {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
if (this.model.predefinedType === "AUTH_USERID") {
|
|
120
|
-
this.placeHolder = "
|
|
121
|
-
} else if (this.model.predefinedType === "AUTH_PASSWORD") {
|
|
122
|
-
this.placeHolder = "
|
|
119
|
+
if (this.model.predefinedType === "AUTH_USERID" && !this.placeHolder) {
|
|
120
|
+
this.placeHolder = ibiz.i18n.t("app.pleaseEnterAccount");
|
|
121
|
+
} else if (this.model.predefinedType === "AUTH_PASSWORD" && !this.placeHolder) {
|
|
122
|
+
this.placeHolder = ibiz.i18n.t("app.pleaseEnterPassword");
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { computed, resolveComponent, mergeProps,
|
|
1
|
+
import { isVNode, computed, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getUploadProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-file-upload.css';
|
|
4
4
|
import { useIViewUpload } from '../use/use-iview-upload.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
|
+
function _isSlot(s) {
|
|
8
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
9
|
+
}
|
|
7
10
|
const IBizFileUpload = /* @__PURE__ */ defineComponent({
|
|
8
11
|
name: "IBizFileUpload",
|
|
9
12
|
props: getUploadProps(),
|
|
@@ -61,6 +64,7 @@ const IBizFileUpload = /* @__PURE__ */ defineComponent({
|
|
|
61
64
|
};
|
|
62
65
|
},
|
|
63
66
|
render() {
|
|
67
|
+
let _slot;
|
|
64
68
|
return createVNode("div", {
|
|
65
69
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
66
70
|
"ref": "componentRef"
|
|
@@ -83,8 +87,8 @@ const IBizFileUpload = /* @__PURE__ */ defineComponent({
|
|
|
83
87
|
default: () => [this.noUploadIcon ? null : createVNode(resolveComponent("el-button"), {
|
|
84
88
|
"class": [this.ns.b("button")],
|
|
85
89
|
"size": this.isGridEditor ? "small" : "default"
|
|
86
|
-
}, {
|
|
87
|
-
default: () => [
|
|
90
|
+
}, _isSlot(_slot = ibiz.i18n.t("editor.upload.uploadFiles")) ? _slot : {
|
|
91
|
+
default: () => [_slot]
|
|
88
92
|
})]
|
|
89
93
|
})]);
|
|
90
94
|
}
|
|
@@ -165,7 +165,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ defineComponent({
|
|
|
165
165
|
}, this.$attrs), null), createVNode(resolveComponent("el-button"), {
|
|
166
166
|
"ref": "filterButtonRef",
|
|
167
167
|
"type": "primary",
|
|
168
|
-
"title": "
|
|
168
|
+
"title": ibiz.i18n.t("app.edit"),
|
|
169
169
|
"class": this.ns.b("filter"),
|
|
170
170
|
"onClick": () => this.triggerFilter()
|
|
171
171
|
}, {
|