@ibiz-template/vue3-components 0.7.22 → 0.7.23
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-1aXzEF4M.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-ptclljJM.js} +1 -1
- 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/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/view-engine/edit-view.engine.mjs +2 -2
- package/es/view-engine/mpickup-view-engine.mjs +0 -4
- package/es/view-engine/opt-view.engine.mjs +2 -2
- 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/view-engine/edit-view.engine.cjs +2 -2
- package/lib/view-engine/mpickup-view-engine.cjs +0 -4
- package/lib/view-engine/opt-view.engine.cjs +2 -2
- package/package.json +7 -7
- package/dist/index-j68-5YVA.js +0 -4
|
@@ -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,
|
|
@@ -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
|
});
|
|
@@ -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
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.23",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@floating-ui/dom": "^1.5.3",
|
|
31
31
|
"@ibiz-template-plugin/ai-chat": "^0.0.5",
|
|
32
|
-
"@ibiz-template-plugin/gantt": "0.1.8-alpha.
|
|
32
|
+
"@ibiz-template-plugin/gantt": "0.1.8-alpha.3",
|
|
33
33
|
"@ibiz-template/core": "0.7.18",
|
|
34
34
|
"@ibiz-template/devtool": "0.0.1-dev.6",
|
|
35
|
-
"@ibiz-template/model-helper": "0.7.
|
|
36
|
-
"@ibiz-template/runtime": "0.7.
|
|
35
|
+
"@ibiz-template/model-helper": "0.7.23",
|
|
36
|
+
"@ibiz-template/runtime": "0.7.23",
|
|
37
37
|
"@ibiz-template/theme": "^0.7.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.7.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.7.23",
|
|
39
39
|
"@ibiz-template/web-theme": "^1.1.18",
|
|
40
|
-
"@ibiz/model-core": "^0.1.
|
|
40
|
+
"@ibiz/model-core": "^0.1.30",
|
|
41
41
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
42
42
|
"@monaco-editor/loader": "^1.4.0",
|
|
43
43
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@ibiz-template/runtime": "^0.7.0",
|
|
102
102
|
"@ibiz-template/theme": "^0.7.0",
|
|
103
103
|
"@ibiz-template/vue3-util": "^0.7.0",
|
|
104
|
-
"@ibiz/model-core": "^0.1.
|
|
104
|
+
"@ibiz/model-core": "^0.1.30",
|
|
105
105
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
106
106
|
"@monaco-editor/loader": "^1.3.3",
|
|
107
107
|
"@wangeditor/editor": "^5.1.23",
|