@ibiz-template/vue3-components 0.7.22 → 0.7.24-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-A47VV-n6.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-0QZbYSph.js → xlsx-util-7cpIakTB.js} +1 -1
- package/es/common/grid-setting/grid-setting.mjs +1 -1
- package/es/control/app-menu/app-menu.d.ts +1 -0
- package/es/control/app-menu/app-menu.mjs +8 -1
- package/es/control/app-menu/index.d.ts +1 -0
- package/es/control/drbar/drbar.controller.mjs +2 -2
- package/es/control/drtab/drtab.controller.mjs +2 -2
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.d.ts +2 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.mjs +7 -2
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.d.ts +3 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.mjs +5 -4
- package/es/control/gantt/gantt.mjs +4 -1
- package/es/control/tree/el-tree-util.d.ts +16 -0
- package/es/control/tree/index.d.ts +16 -0
- package/es/control/tree/tree.d.ts +16 -0
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +5 -0
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +5 -0
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +5 -0
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +6 -1
- package/es/editor/data-picker/picker-editor.controller.mjs +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +6 -1
- package/es/editor/html/wang-editor/wang-editor.css +1 -1
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +7 -0
- package/es/editor/raw/ibiz-raw/ibiz-raw.mjs +2 -2
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +1 -0
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.mjs +10 -1
- package/es/locale/en/index.d.ts +3 -0
- package/es/locale/zh-CN/index.d.ts +3 -0
- package/es/node_modules/.pnpm/{element-plus@2.4.2_vue@3.3.8 → element-plus@2.7.5_vue@3.3.8}/node_modules/element-plus/dist/locale/zh-cn.mjs +14 -1
- package/es/panel-component/coop-pos/coop-pos.state.mjs +9 -1
- package/es/view-engine/edit-view.engine.mjs +4 -3
- package/es/view-engine/mpickup-view-engine.mjs +0 -4
- package/es/view-engine/opt-view.engine.mjs +2 -2
- package/es/web-app/create-vue-app.mjs +1 -1
- package/lib/common/grid-setting/grid-setting.cjs +1 -1
- package/lib/control/app-menu/app-menu.cjs +8 -1
- package/lib/control/drbar/drbar.controller.cjs +2 -2
- package/lib/control/drtab/drtab.controller.cjs +2 -2
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.cjs +7 -2
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +5 -4
- package/lib/control/gantt/gantt.cjs +4 -1
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +5 -0
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +5 -0
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +5 -0
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +6 -1
- package/lib/editor/data-picker/picker-editor.controller.cjs +1 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +5 -0
- package/lib/editor/html/wang-editor/wang-editor.css +1 -1
- package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +7 -0
- package/lib/editor/raw/ibiz-raw/ibiz-raw.cjs +2 -2
- package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.cjs +9 -0
- package/lib/node_modules/.pnpm/{element-plus@2.4.2_vue@3.3.8 → element-plus@2.7.5_vue@3.3.8}/node_modules/element-plus/dist/locale/zh-cn.cjs +14 -1
- package/lib/panel-component/coop-pos/coop-pos.state.cjs +9 -1
- package/lib/view-engine/edit-view.engine.cjs +4 -3
- package/lib/view-engine/mpickup-view-engine.cjs +0 -4
- package/lib/view-engine/opt-view.engine.cjs +2 -2
- package/lib/web-app/create-vue-app.cjs +1 -1
- package/package.json +9 -9
- package/dist/index-j68-5YVA.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ref, computed, watch, resolveComponent, createVNode, createTextVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getInputIpProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-input-ip.css';
|
|
4
4
|
|
|
@@ -12,6 +12,7 @@ const IBizInputIP = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
}) {
|
|
13
13
|
const ns = useNamespace("input-ip");
|
|
14
14
|
const c = props.controller;
|
|
15
|
+
const editorRef = ref();
|
|
15
16
|
const showFormDefaultContent = computed(() => {
|
|
16
17
|
if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
|
|
17
18
|
return true;
|
|
@@ -62,6 +63,12 @@ const IBizInputIP = /* @__PURE__ */ defineComponent({
|
|
|
62
63
|
watch(forIp, (newVal, oldVal) => {
|
|
63
64
|
checkIpVal(newVal, oldVal, forIp, 3);
|
|
64
65
|
});
|
|
66
|
+
watch(editorRef, (newVal) => {
|
|
67
|
+
if (props.autoFocus && newVal) {
|
|
68
|
+
const input = newVal.$el.getElementsByTagName("input")[0];
|
|
69
|
+
input.focus();
|
|
70
|
+
}
|
|
71
|
+
});
|
|
65
72
|
const getFocus = () => {
|
|
66
73
|
activeElement.value = true;
|
|
67
74
|
if (isAllBlur.value) {
|
|
@@ -86,6 +93,7 @@ const IBizInputIP = /* @__PURE__ */ defineComponent({
|
|
|
86
93
|
return {
|
|
87
94
|
ns,
|
|
88
95
|
c,
|
|
96
|
+
editorRef,
|
|
89
97
|
currentVal,
|
|
90
98
|
getFocus,
|
|
91
99
|
blur,
|
|
@@ -101,6 +109,7 @@ const IBizInputIP = /* @__PURE__ */ defineComponent({
|
|
|
101
109
|
return createVNode("div", {
|
|
102
110
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)]
|
|
103
111
|
}, [createVNode(resolveComponent("el-input"), {
|
|
112
|
+
"ref": "editorRef",
|
|
104
113
|
"type": "text",
|
|
105
114
|
"size": "small",
|
|
106
115
|
"disabled": this.disabled,
|
package/es/locale/en/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
/*! Element Plus v2.
|
|
1
|
+
/*! Element Plus v2.7.5 */
|
|
2
2
|
|
|
3
3
|
var zhCn = {
|
|
4
4
|
name: "zh-cn",
|
|
5
5
|
el: {
|
|
6
|
+
breadcrumb: {
|
|
7
|
+
label: "\u9762\u5305\u5C51"
|
|
8
|
+
},
|
|
6
9
|
colorpicker: {
|
|
7
10
|
confirm: "\u786E\u5B9A",
|
|
8
11
|
clear: "\u6E05\u7A7A"
|
|
@@ -104,6 +107,11 @@ var zhCn = {
|
|
|
104
107
|
clearFilter: "\u5168\u90E8",
|
|
105
108
|
sumText: "\u5408\u8BA1"
|
|
106
109
|
},
|
|
110
|
+
tour: {
|
|
111
|
+
next: "\u4E0B\u4E00\u6B65",
|
|
112
|
+
previous: "\u4E0A\u4E00\u6B65",
|
|
113
|
+
finish: "\u7ED3\u675F\u5BFC\u89C8"
|
|
114
|
+
},
|
|
107
115
|
tree: {
|
|
108
116
|
emptyText: "\u6682\u65E0\u6570\u636E"
|
|
109
117
|
},
|
|
@@ -124,6 +132,11 @@ var zhCn = {
|
|
|
124
132
|
popconfirm: {
|
|
125
133
|
confirmButtonText: "\u786E\u5B9A",
|
|
126
134
|
cancelButtonText: "\u53D6\u6D88"
|
|
135
|
+
},
|
|
136
|
+
carousel: {
|
|
137
|
+
leftArrow: "\u4E0A\u4E00\u5F20\u5E7B\u706F\u7247",
|
|
138
|
+
rightArrow: "\u4E0B\u4E00\u5F20\u5E7B\u706F\u7247",
|
|
139
|
+
indicator: "\u5E7B\u706F\u7247\u5207\u6362\u81F3\u7D22\u5F15 {index}"
|
|
127
140
|
}
|
|
128
141
|
}
|
|
129
142
|
};
|
|
@@ -26,7 +26,15 @@ class CoopPosState extends PanelItemState {
|
|
|
26
26
|
* @date 2024-04-03 17:04:55
|
|
27
27
|
* @type {IAlertParams}
|
|
28
28
|
*/
|
|
29
|
-
__publicField(this, "alertParams", {
|
|
29
|
+
__publicField(this, "alertParams", {
|
|
30
|
+
data: {
|
|
31
|
+
action: "VIEW",
|
|
32
|
+
entity: "",
|
|
33
|
+
key: "",
|
|
34
|
+
time: 0,
|
|
35
|
+
username: ""
|
|
36
|
+
}
|
|
37
|
+
});
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
40
|
|
|
@@ -101,8 +101,8 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
101
101
|
formDataStateChange(event);
|
|
102
102
|
const data = event.data[0];
|
|
103
103
|
this.view.state.srfactiveviewdata = data;
|
|
104
|
-
if (data
|
|
105
|
-
this.view.context.srfreadonly =
|
|
104
|
+
if (Object.prototype.hasOwnProperty.call(data, "srfreadonly")) {
|
|
105
|
+
this.view.context.srfreadonly = data.srfreadonly;
|
|
106
106
|
}
|
|
107
107
|
evt.emit("onDataChange", { ...event, actionType: "LOAD" });
|
|
108
108
|
});
|
|
@@ -320,7 +320,8 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
320
320
|
const message = "".concat(modes.includes("DISPLAYOPPERSON") ? data.username : ibiz.i18n.t("viewEngine.someone"), " ").concat(actionMsg, " ").concat(this.view.state.caption, "-").concat(dataInfo);
|
|
321
321
|
if (this.coopPos) {
|
|
322
322
|
this.coopPos.updateMessage({
|
|
323
|
-
title: message
|
|
323
|
+
title: message,
|
|
324
|
+
data
|
|
324
325
|
});
|
|
325
326
|
} else {
|
|
326
327
|
ibiz.message.notice({
|
|
@@ -37,10 +37,6 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
37
37
|
this.selectData = JSON.parse(this.view.params.selecteddata);
|
|
38
38
|
delete this.view.params.selecteddata;
|
|
39
39
|
}
|
|
40
|
-
if (this.view.params.selectedData) {
|
|
41
|
-
this.selectData = JSON.parse(this.view.params.selectedData);
|
|
42
|
-
delete this.view.params.selectedData;
|
|
43
|
-
}
|
|
44
40
|
if (!this.view.slotProps.simplelist) {
|
|
45
41
|
this.view.slotProps.simplelist = {};
|
|
46
42
|
}
|
|
@@ -66,8 +66,8 @@ class OptViewEngine extends ViewEngineBase {
|
|
|
66
66
|
this.form.evt.on("onLoadSuccess", (event) => {
|
|
67
67
|
const data = event.data[0];
|
|
68
68
|
this.view.state.srfactiveviewdata = data;
|
|
69
|
-
if (data
|
|
70
|
-
this.view.context.srfreadonly =
|
|
69
|
+
if (Object.prototype.hasOwnProperty.call(data, "srfreadonly")) {
|
|
70
|
+
this.view.context.srfreadonly = data.srfreadonly;
|
|
71
71
|
}
|
|
72
72
|
formDataStateChange(event);
|
|
73
73
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp, KeepAlive } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import zhCn from '../node_modules/.pnpm/element-plus@2.
|
|
3
|
+
import zhCn from '../node_modules/.pnpm/element-plus@2.7.5_vue@3.3.8/node_modules/element-plus/dist/locale/zh-cn.mjs';
|
|
4
4
|
import { AppHooks, piniaInstance } from '@ibiz-template/vue3-util';
|
|
5
5
|
import IBizVue3 from '../ibiz-vue3.mjs';
|
|
6
6
|
import { i18n } from '../locale/index.mjs';
|
|
@@ -67,7 +67,7 @@ const IBizGridSetting = /* @__PURE__ */ vue.defineComponent({
|
|
|
67
67
|
}, {
|
|
68
68
|
reference: () => {
|
|
69
69
|
return vue.createVNode("ion-icon", {
|
|
70
|
-
"name": "
|
|
70
|
+
"name": "options-outline",
|
|
71
71
|
"class": this.ns.b("set-icon"),
|
|
72
72
|
"title": ibiz.i18n.t("component.gridSetting.hideControl")
|
|
73
73
|
}, null);
|
|
@@ -298,6 +298,11 @@ const AppMenuControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
298
298
|
const configReset = () => {
|
|
299
299
|
saveConfigs.value = [];
|
|
300
300
|
};
|
|
301
|
+
const ellipsisSvg = () => {
|
|
302
|
+
return vue.createVNode("ion-icon", {
|
|
303
|
+
"name": "ellipsis-horizontal"
|
|
304
|
+
}, null);
|
|
305
|
+
};
|
|
301
306
|
return {
|
|
302
307
|
menus,
|
|
303
308
|
c,
|
|
@@ -312,7 +317,8 @@ const AppMenuControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
312
317
|
configSaves,
|
|
313
318
|
configReset,
|
|
314
319
|
isShowCollapse,
|
|
315
|
-
enableCustomized
|
|
320
|
+
enableCustomized,
|
|
321
|
+
ellipsisSvg
|
|
316
322
|
};
|
|
317
323
|
},
|
|
318
324
|
render() {
|
|
@@ -330,6 +336,7 @@ const AppMenuControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
330
336
|
"onSelect": this.onClick,
|
|
331
337
|
"theme": "light",
|
|
332
338
|
"mode": this.menuMode,
|
|
339
|
+
"ellipsis-icon": () => this.ellipsisSvg(),
|
|
333
340
|
"ellipsis": this.menuMode === "horizontal"
|
|
334
341
|
}, {
|
|
335
342
|
default: () => {
|
|
@@ -251,8 +251,8 @@ class DRBarController extends runtime.ControlController {
|
|
|
251
251
|
this.form.evt.on("onLoadSuccess", async (event) => {
|
|
252
252
|
const data = event.data[0];
|
|
253
253
|
this.view.state.srfactiveviewdata = data;
|
|
254
|
-
if (data
|
|
255
|
-
this.view.context.srfreadonly =
|
|
254
|
+
if (Object.prototype.hasOwnProperty.call(data, "srfreadonly")) {
|
|
255
|
+
this.view.context.srfreadonly = data.srfreadonly;
|
|
256
256
|
}
|
|
257
257
|
await this.calcDrBarItemsState();
|
|
258
258
|
this.handleFormChange();
|
|
@@ -200,8 +200,8 @@ class DRTabController extends runtime.ControlController {
|
|
|
200
200
|
this.form.evt.on("onLoadSuccess", async (event) => {
|
|
201
201
|
const data = event.data[0];
|
|
202
202
|
this.view.state.srfactiveviewdata = data;
|
|
203
|
-
if (data
|
|
204
|
-
this.view.context.srfreadonly =
|
|
203
|
+
if (Object.prototype.hasOwnProperty.call(data, "srfreadonly")) {
|
|
204
|
+
this.view.context.srfreadonly = data.srfreadonly;
|
|
205
205
|
}
|
|
206
206
|
await this.calcDrTabPagesState();
|
|
207
207
|
this.handleFormChange();
|
|
@@ -46,7 +46,7 @@ const RepeaterGrid = /* @__PURE__ */ vue.defineComponent({
|
|
|
46
46
|
await formC.created();
|
|
47
47
|
formC.setSimpleData(data);
|
|
48
48
|
formControllers.push(formC);
|
|
49
|
-
props.controller.setRepeaterController(
|
|
49
|
+
props.controller.setRepeaterController("".concat(formControllers.length - 1), formC);
|
|
50
50
|
formC.evt.on("onFormDataChange", (event) => {
|
|
51
51
|
const formData = {
|
|
52
52
|
...event.data[0]
|
|
@@ -26,9 +26,13 @@ const RepeaterMultiForm = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
arrData[index] = value;
|
|
27
27
|
emit("change", arrData);
|
|
28
28
|
};
|
|
29
|
+
const onCreated = (index, event) => {
|
|
30
|
+
props.controller.setRepeaterController("".concat(index), event.ctrl);
|
|
31
|
+
};
|
|
29
32
|
return {
|
|
30
33
|
ns,
|
|
31
|
-
onValueChange
|
|
34
|
+
onValueChange,
|
|
35
|
+
onCreated
|
|
32
36
|
};
|
|
33
37
|
},
|
|
34
38
|
render() {
|
|
@@ -51,7 +55,8 @@ const RepeaterMultiForm = /* @__PURE__ */ vue.defineComponent({
|
|
|
51
55
|
"controller": this.controller,
|
|
52
56
|
"onChange": (value) => {
|
|
53
57
|
this.onValueChange(value, index);
|
|
54
|
-
}
|
|
58
|
+
},
|
|
59
|
+
"onCreated": (event) => this.onCreated(index, event)
|
|
55
60
|
}, null);
|
|
56
61
|
}
|
|
57
62
|
});
|
|
@@ -20,7 +20,8 @@ const RepeaterSingleForm = /* @__PURE__ */ vue.defineComponent({
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
emits: {
|
|
23
|
-
change: (_value) => true
|
|
23
|
+
change: (_value) => true,
|
|
24
|
+
created: (_value) => true
|
|
24
25
|
},
|
|
25
26
|
setup(props, {
|
|
26
27
|
emit
|
|
@@ -39,8 +40,8 @@ const RepeaterSingleForm = /* @__PURE__ */ vue.defineComponent({
|
|
|
39
40
|
const data = getFilteredData(event.data[0]);
|
|
40
41
|
emit("change", data);
|
|
41
42
|
};
|
|
42
|
-
const onCreated = (
|
|
43
|
-
|
|
43
|
+
const onCreated = (event) => {
|
|
44
|
+
emit("created", event);
|
|
44
45
|
};
|
|
45
46
|
return {
|
|
46
47
|
ns,
|
|
@@ -60,7 +61,7 @@ const RepeaterSingleForm = /* @__PURE__ */ vue.defineComponent({
|
|
|
60
61
|
"isSimple": true,
|
|
61
62
|
"data": this.data,
|
|
62
63
|
"onFormDataChange": this.onFormDataChange,
|
|
63
|
-
"onCreated":
|
|
64
|
+
"onCreated": this.onCreated
|
|
64
65
|
}, null);
|
|
65
66
|
}
|
|
66
67
|
});
|
|
@@ -45,6 +45,7 @@ const GanttControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
45
45
|
const ganttRef = vue.ref();
|
|
46
46
|
const isInited = vue.ref(false);
|
|
47
47
|
const ns = vue3Util.useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
48
|
+
const sliderMove = vue.ref(false);
|
|
48
49
|
const iBizRawItem = vue.resolveComponent("IBizRawItem");
|
|
49
50
|
const iBizIcon = vue.resolveComponent("IBizIcon");
|
|
50
51
|
let forbidClick = false;
|
|
@@ -134,7 +135,8 @@ const GanttControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
134
135
|
c.setSelection(selection);
|
|
135
136
|
};
|
|
136
137
|
const onNodeClick = (nodeData, evt) => {
|
|
137
|
-
if (forbidClick) {
|
|
138
|
+
if (forbidClick || sliderMove.value) {
|
|
139
|
+
sliderMove.value = false;
|
|
138
140
|
return;
|
|
139
141
|
}
|
|
140
142
|
c.onTreeNodeClick(nodeData, evt);
|
|
@@ -183,6 +185,7 @@ const GanttControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
183
185
|
begin: nodeData._beginDataItemValue ? dayjs(nodeData._beginDataItemValue).format("YYYY-MM-DD HH:mm:ss") : void 0,
|
|
184
186
|
end: nodeData._endDataItemValue ? dayjs(nodeData._endDataItemValue).format("YYYY-MM-DD HH:mm:ss") : void 0
|
|
185
187
|
};
|
|
188
|
+
sliderMove.value = true;
|
|
186
189
|
c.modifyNodeTime(nodeData, newValue);
|
|
187
190
|
};
|
|
188
191
|
const calcContextMenuItems = (toolbarItems, nodeData, evt, menuState) => {
|
|
@@ -76,6 +76,11 @@ const IBizAutoComplete = /* @__PURE__ */ vue.defineComponent({
|
|
|
76
76
|
}, {
|
|
77
77
|
immediate: true
|
|
78
78
|
});
|
|
79
|
+
vue.watch(editorRef, (newVal) => {
|
|
80
|
+
if (props.autoFocus && newVal && newVal.focus) {
|
|
81
|
+
newVal.focus();
|
|
82
|
+
}
|
|
83
|
+
});
|
|
79
84
|
const handleDataSelect = async (data) => {
|
|
80
85
|
const dataItems = await c.calcFillDataItems(data);
|
|
81
86
|
if (dataItems.length) {
|
|
@@ -81,6 +81,11 @@ const IBizMPicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
81
81
|
immediate: true,
|
|
82
82
|
deep: true
|
|
83
83
|
});
|
|
84
|
+
vue.watch(editorRef, (newVal) => {
|
|
85
|
+
if (props.autoFocus && newVal && newVal.focus) {
|
|
86
|
+
newVal.focus();
|
|
87
|
+
}
|
|
88
|
+
});
|
|
84
89
|
const setEditable = (flag) => {
|
|
85
90
|
if (flag) {
|
|
86
91
|
isEditable.value = flag;
|
|
@@ -60,6 +60,11 @@ const IBizPickerDropDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
60
60
|
}, {
|
|
61
61
|
immediate: true
|
|
62
62
|
});
|
|
63
|
+
vue.watch(editorRef, (newVal) => {
|
|
64
|
+
if (props.autoFocus && newVal && newVal.focus) {
|
|
65
|
+
newVal.focus();
|
|
66
|
+
}
|
|
67
|
+
});
|
|
63
68
|
const onSearch = async (query) => {
|
|
64
69
|
if (!shouldLoad.value) {
|
|
65
70
|
return;
|
|
@@ -92,7 +92,7 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
92
92
|
srfkey: props.data[c.valueItem],
|
|
93
93
|
srfmajortext: props.value
|
|
94
94
|
}];
|
|
95
|
-
params.value.
|
|
95
|
+
params.value.selecteddata = selectedData.value;
|
|
96
96
|
}
|
|
97
97
|
} else {
|
|
98
98
|
const selectItems = [];
|
|
@@ -148,6 +148,11 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
|
|
|
148
148
|
immediate: true,
|
|
149
149
|
deep: true
|
|
150
150
|
});
|
|
151
|
+
vue.watch(editorRef, (newVal) => {
|
|
152
|
+
if (props.autoFocus && newVal && newVal.focus) {
|
|
153
|
+
newVal.focus();
|
|
154
|
+
}
|
|
155
|
+
});
|
|
151
156
|
vue.onMounted(() => {
|
|
152
157
|
if (editorRef.value) {
|
|
153
158
|
pickViewWidth.value = "".concat(editorRef.value.$parent.$el.offsetWidth, "px");
|
|
@@ -220,7 +220,7 @@ class PickerEditorController extends runtime.EditorController {
|
|
|
220
220
|
this.params
|
|
221
221
|
);
|
|
222
222
|
if (selectedData) {
|
|
223
|
-
params.
|
|
223
|
+
params.selecteddata = selectedData;
|
|
224
224
|
}
|
|
225
225
|
if (!this.pickupView) {
|
|
226
226
|
throw new core.RuntimeModelError(
|
|
@@ -104,6 +104,11 @@ const IBizDateRangePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
104
104
|
setEditable(false);
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
|
+
vue.watch(editorRef, (newVal) => {
|
|
108
|
+
if (props.autoFocus && newVal && newVal.focus) {
|
|
109
|
+
newVal.focus();
|
|
110
|
+
}
|
|
111
|
+
});
|
|
107
112
|
const onFocus = (e) => {
|
|
108
113
|
emit("focus", e);
|
|
109
114
|
setEditable(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-html{--ibiz-html-height:300px;display:inline-block;width:100%;height:100%;--w-e-textarea-bg-color:var(--ibiz-color-bg-1);--w-e-textarea-color:var(--ibiz-color-text-2);--w-e-textarea-border-color:var(--ibiz-color-border);--w-e-textarea-slight-border-color:var(--ibiz-color-border);--w-e-textarea-slight-color:var(--ibiz-color-text-
|
|
1
|
+
.ibiz-html{--ibiz-html-height:300px;display:inline-block;width:100%;height:100%;--w-e-textarea-bg-color:var(--ibiz-color-bg-1);--w-e-textarea-color:var(--ibiz-color-text-2);--w-e-textarea-border-color:var(--ibiz-color-border);--w-e-textarea-slight-border-color:var(--ibiz-color-border);--w-e-textarea-slight-color:var(--ibiz-color-text-3);--w-e-textarea-slight-bg-color:var(--ibiz-color-bg-1);--w-e-textarea-selected-border-color:var(--ibiz-color-border);--w-e-textarea-handler-bg-color:var(--ibiz-color-primary);--w-e-toolbar-color:var(--ibiz-color-text-0);--w-e-toolbar-bg-color:var(--ibiz-color-bg-1);--w-e-toolbar-active-color:var(--ibiz-color-text-0);--w-e-toolbar-active-bg-color:var(--ibiz-color-bg-1);--w-e-toolbar-disabled-color:var(--ibiz-color-disabled-text);--w-e-toolbar-border-color:var(--ibiz-color-border);--w-e-modal-button-bg-color:var(--ibiz-color-bg-1);--w-e-modal-button-border-color:var(--ibiz-color-border)}.ibiz-html .ibiz-html-content{display:flex;flex-direction:column;height:100%;background-color:var(--ibiz-color-bg-0)}.ibiz-html .ibiz-html-editor{height:var(--ibiz-html-height)!important;padding:0;overflow-y:scroll;border:1px solid var(--ibiz-color-border)}.ibiz-html .ibiz-html-editor.is-readonly{height:auto!important}.ibiz-html .ibiz-html-editor table{width:100%!important;border-collapse:collapse}.ibiz-html .ibiz-html-editor table th{height:var(--ibiz-height-control-large);min-height:var(--ibiz-height-control-large);padding:var(--ibiz-spacing-tight);border:1px solid var(--ibiz-color-border)}.ibiz-html .ibiz-html-editor table td{height:var(--ibiz-height-control-large);min-height:var(--ibiz-height-control-large);padding:var(--ibiz-spacing-tight);empty-cells:show;border:1px solid var(--ibiz-color-border)}.ibiz-html .w-e-menu-tooltip-v5::before{color:var(--ibiz-color-text-0);background-color:var(--w-e-toolbar-bg-color)}.ibiz-html .w-e-full-screen-container{z-index:9999}.ibiz-html .w-e-scroll>div{background-color:var(--ibiz-color-bg-1)}.ibiz-html .table-container table{width:100%}.ibiz-html-editor-readonly .ibiz-html-toolbar{display:none}.ibiz-html-editor-readonly .ibiz-html-editor{border:none}.ibiz-html-footer{display:flex;align-items:center;justify-content:end;margin-top:var(--ibiz-spacing-base-tight);margin-right:var(--ibiz-spacing-tight)}.ibiz-html-footer>*+*{margin-left:var(--ibiz-spacing-base)}.ibiz-html-footer__cancel{height:var(--ibiz-height-control-default);line-height:var(--ibiz-height-control-default);color:var(--ibiz-color-text-1);cursor:pointer;opacity:.7}.ibiz-html-footer__cancel:hover{color:var(--ibiz-color-primary);opacity:1}.ibiz-html-footer__save{height:var(--ibiz-height-control-default);padding:0 var(--ibiz-spacing-base);line-height:var(--ibiz-height-control-default);color:var(--ibiz-color-primary-active-text);text-align:center;cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:var(--ibiz-border-radius-small)}.ibiz-html-custom-toolbar{display:flex;align-items:center;justify-content:end;width:100%;height:var(--ibiz-height-control-default);padding-right:var(--ibiz-spacing-base);font-size:var(--ibiz-font-size-header-6)}.ibiz-html-custom-toolbar>*+*{margin-left:var(--ibiz-spacing-base-loose)}.ibiz-html-custom-toolbar i{cursor:pointer}.ibiz-html-custom-toolbar i:hover{color:var(--ibiz-color-primary)}.ibiz-html-message{width:500px;max-width:unset}.ibiz-html-message__message-content--message-tip{color:var(--ibiz-color-text-3)}.ibiz-html-message__message-cancel{color:var(--ibiz-color-text-1);background-color:transparent}.ibiz-html-message__message-cancel:hover{color:var(--ibiz-color-primary);background-color:transparent}.ibiz-html-message__message-comfire{background-color:var(--ibiz-color-danger)!important}.ibiz-html-message__message-comfire:hover{box-shadow:0 2px 5px 1px var(--ibiz-color-danger)}.ibiz-html-dialog-full-screen{height:80%}.ibiz-html-dialog-full-screen .ibiz-html{padding:0 var(--ibiz-spacing-extra-loose);--w-e-toolbar-bg-color:var(--ibiz-color-bg-0)}.ibiz-html-dialog-full-screen .ibiz-html-custom-toolbar{height:56px}.ibiz-html-dialog-full-screen .ibiz-html-content{height:calc(100% - 124px)}.ibiz-html-dialog-full-screen .ibiz-html-content .ibiz-html-editor{height:100%!important}.ibiz-html-footer-dialog{height:68px;margin-top:0}
|
|
@@ -64,6 +64,12 @@ const IBizNumberRangePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
64
64
|
}, {
|
|
65
65
|
immediate: true
|
|
66
66
|
});
|
|
67
|
+
vue.watch(editorRef, (newVal) => {
|
|
68
|
+
if (props.autoFocus && newVal) {
|
|
69
|
+
const input = newVal.$el.getElementsByTagName("input")[0];
|
|
70
|
+
input.focus();
|
|
71
|
+
}
|
|
72
|
+
});
|
|
67
73
|
const setEditable = (flag) => {
|
|
68
74
|
if (flag) {
|
|
69
75
|
isEditable.value = flag;
|
|
@@ -139,6 +145,7 @@ const IBizNumberRangePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
139
145
|
const editContent = vue.createVNode("div", {
|
|
140
146
|
"class": this.ns.b("input")
|
|
141
147
|
}, [vue.createVNode(vue.resolveComponent("el-input-number"), vue.mergeProps({
|
|
148
|
+
"ref": "editorRef",
|
|
142
149
|
"min": this.min,
|
|
143
150
|
"modelValue": this.minValue,
|
|
144
151
|
"disabled": this.disabled,
|
|
@@ -41,7 +41,7 @@ const IBizRaw = /* @__PURE__ */ vue.defineComponent({
|
|
|
41
41
|
content.value = newVal;
|
|
42
42
|
}
|
|
43
43
|
if (template && newVal) {
|
|
44
|
-
let obj =
|
|
44
|
+
let obj = newVal;
|
|
45
45
|
if (typeof newVal === "string") {
|
|
46
46
|
try {
|
|
47
47
|
obj = JSON.parse(newVal);
|
|
@@ -56,7 +56,7 @@ const IBizRaw = /* @__PURE__ */ vue.defineComponent({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
content.value = await ibiz.util.hbs.render(template, obj
|
|
59
|
+
content.value = await ibiz.util.hbs.render(template, obj);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}, {
|
|
@@ -14,6 +14,7 @@ const IBizInputIP = /* @__PURE__ */ vue.defineComponent({
|
|
|
14
14
|
}) {
|
|
15
15
|
const ns = vue3Util.useNamespace("input-ip");
|
|
16
16
|
const c = props.controller;
|
|
17
|
+
const editorRef = vue.ref();
|
|
17
18
|
const showFormDefaultContent = vue.computed(() => {
|
|
18
19
|
if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
|
|
19
20
|
return true;
|
|
@@ -64,6 +65,12 @@ const IBizInputIP = /* @__PURE__ */ vue.defineComponent({
|
|
|
64
65
|
vue.watch(forIp, (newVal, oldVal) => {
|
|
65
66
|
checkIpVal(newVal, oldVal, forIp, 3);
|
|
66
67
|
});
|
|
68
|
+
vue.watch(editorRef, (newVal) => {
|
|
69
|
+
if (props.autoFocus && newVal) {
|
|
70
|
+
const input = newVal.$el.getElementsByTagName("input")[0];
|
|
71
|
+
input.focus();
|
|
72
|
+
}
|
|
73
|
+
});
|
|
67
74
|
const getFocus = () => {
|
|
68
75
|
activeElement.value = true;
|
|
69
76
|
if (isAllBlur.value) {
|
|
@@ -88,6 +95,7 @@ const IBizInputIP = /* @__PURE__ */ vue.defineComponent({
|
|
|
88
95
|
return {
|
|
89
96
|
ns,
|
|
90
97
|
c,
|
|
98
|
+
editorRef,
|
|
91
99
|
currentVal,
|
|
92
100
|
getFocus,
|
|
93
101
|
blur,
|
|
@@ -103,6 +111,7 @@ const IBizInputIP = /* @__PURE__ */ vue.defineComponent({
|
|
|
103
111
|
return vue.createVNode("div", {
|
|
104
112
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)]
|
|
105
113
|
}, [vue.createVNode(vue.resolveComponent("el-input"), {
|
|
114
|
+
"ref": "editorRef",
|
|
106
115
|
"type": "text",
|
|
107
116
|
"size": "small",
|
|
108
117
|
"disabled": this.disabled,
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
/*! Element Plus v2.
|
|
5
|
+
/*! Element Plus v2.7.5 */
|
|
6
6
|
|
|
7
7
|
var zhCn = {
|
|
8
8
|
name: "zh-cn",
|
|
9
9
|
el: {
|
|
10
|
+
breadcrumb: {
|
|
11
|
+
label: "\u9762\u5305\u5C51"
|
|
12
|
+
},
|
|
10
13
|
colorpicker: {
|
|
11
14
|
confirm: "\u786E\u5B9A",
|
|
12
15
|
clear: "\u6E05\u7A7A"
|
|
@@ -108,6 +111,11 @@ var zhCn = {
|
|
|
108
111
|
clearFilter: "\u5168\u90E8",
|
|
109
112
|
sumText: "\u5408\u8BA1"
|
|
110
113
|
},
|
|
114
|
+
tour: {
|
|
115
|
+
next: "\u4E0B\u4E00\u6B65",
|
|
116
|
+
previous: "\u4E0A\u4E00\u6B65",
|
|
117
|
+
finish: "\u7ED3\u675F\u5BFC\u89C8"
|
|
118
|
+
},
|
|
111
119
|
tree: {
|
|
112
120
|
emptyText: "\u6682\u65E0\u6570\u636E"
|
|
113
121
|
},
|
|
@@ -128,6 +136,11 @@ var zhCn = {
|
|
|
128
136
|
popconfirm: {
|
|
129
137
|
confirmButtonText: "\u786E\u5B9A",
|
|
130
138
|
cancelButtonText: "\u53D6\u6D88"
|
|
139
|
+
},
|
|
140
|
+
carousel: {
|
|
141
|
+
leftArrow: "\u4E0A\u4E00\u5F20\u5E7B\u706F\u7247",
|
|
142
|
+
rightArrow: "\u4E0B\u4E00\u5F20\u5E7B\u706F\u7247",
|
|
143
|
+
indicator: "\u5E7B\u706F\u7247\u5207\u6362\u81F3\u7D22\u5F15 {index}"
|
|
131
144
|
}
|
|
132
145
|
}
|
|
133
146
|
};
|
|
@@ -28,7 +28,15 @@ class CoopPosState extends runtime.PanelItemState {
|
|
|
28
28
|
* @date 2024-04-03 17:04:55
|
|
29
29
|
* @type {IAlertParams}
|
|
30
30
|
*/
|
|
31
|
-
__publicField(this, "alertParams", {
|
|
31
|
+
__publicField(this, "alertParams", {
|
|
32
|
+
data: {
|
|
33
|
+
action: "VIEW",
|
|
34
|
+
entity: "",
|
|
35
|
+
key: "",
|
|
36
|
+
time: 0,
|
|
37
|
+
username: ""
|
|
38
|
+
}
|
|
39
|
+
});
|
|
32
40
|
}
|
|
33
41
|
}
|
|
34
42
|
|
|
@@ -103,8 +103,8 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
103
103
|
formDataStateChange(event);
|
|
104
104
|
const data = event.data[0];
|
|
105
105
|
this.view.state.srfactiveviewdata = data;
|
|
106
|
-
if (data
|
|
107
|
-
this.view.context.srfreadonly =
|
|
106
|
+
if (Object.prototype.hasOwnProperty.call(data, "srfreadonly")) {
|
|
107
|
+
this.view.context.srfreadonly = data.srfreadonly;
|
|
108
108
|
}
|
|
109
109
|
evt.emit("onDataChange", { ...event, actionType: "LOAD" });
|
|
110
110
|
});
|
|
@@ -322,7 +322,8 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
322
322
|
const message = "".concat(modes.includes("DISPLAYOPPERSON") ? data.username : ibiz.i18n.t("viewEngine.someone"), " ").concat(actionMsg, " ").concat(this.view.state.caption, "-").concat(dataInfo);
|
|
323
323
|
if (this.coopPos) {
|
|
324
324
|
this.coopPos.updateMessage({
|
|
325
|
-
title: message
|
|
325
|
+
title: message,
|
|
326
|
+
data
|
|
326
327
|
});
|
|
327
328
|
} else {
|
|
328
329
|
ibiz.message.notice({
|
|
@@ -39,10 +39,6 @@ class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
|
|
|
39
39
|
this.selectData = JSON.parse(this.view.params.selecteddata);
|
|
40
40
|
delete this.view.params.selecteddata;
|
|
41
41
|
}
|
|
42
|
-
if (this.view.params.selectedData) {
|
|
43
|
-
this.selectData = JSON.parse(this.view.params.selectedData);
|
|
44
|
-
delete this.view.params.selectedData;
|
|
45
|
-
}
|
|
46
42
|
if (!this.view.slotProps.simplelist) {
|
|
47
43
|
this.view.slotProps.simplelist = {};
|
|
48
44
|
}
|
|
@@ -68,8 +68,8 @@ class OptViewEngine extends runtime.ViewEngineBase {
|
|
|
68
68
|
this.form.evt.on("onLoadSuccess", (event) => {
|
|
69
69
|
const data = event.data[0];
|
|
70
70
|
this.view.state.srfactiveviewdata = data;
|
|
71
|
-
if (data
|
|
72
|
-
this.view.context.srfreadonly =
|
|
71
|
+
if (Object.prototype.hasOwnProperty.call(data, "srfreadonly")) {
|
|
72
|
+
this.view.context.srfreadonly = data.srfreadonly;
|
|
73
73
|
}
|
|
74
74
|
formDataStateChange(event);
|
|
75
75
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var ElementPlus = require('element-plus');
|
|
5
|
-
var zhCn = require('../node_modules/.pnpm/element-plus@2.
|
|
5
|
+
var zhCn = require('../node_modules/.pnpm/element-plus@2.7.5_vue@3.3.8/node_modules/element-plus/dist/locale/zh-cn.cjs');
|
|
6
6
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
7
|
var ibizVue3 = require('../ibiz-vue3.cjs');
|
|
8
8
|
var index = require('../locale/index.cjs');
|