@ibiz-template/vue3-components 0.6.13 → 0.6.15
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-3K521QVy.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-BqNTIOJa.js → xlsx-util-hUT-k6qF.js} +1 -1
- package/es/common/data-import/data-import.mjs +1 -1
- package/es/control/drbar/drbar.controller.d.ts +2 -2
- package/es/control/drbar/drbar.controller.mjs +9 -4
- package/es/control/drtab/drtab.controller.mjs +2 -1
- package/es/control/form/form/form.mjs +4 -3
- package/es/control/form/form-detail/form-item/form-item.d.ts +8 -0
- package/es/control/form/form-detail/form-item/form-item.mjs +5 -1
- package/es/control/form/form-detail/form-item/index.d.ts +8 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +12 -0
- package/es/control/grid/grid/grid-control.util.mjs +7 -1
- package/es/control/grid/grid/grid.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/cell-edit.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.d.ts +9 -0
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +5 -1
- package/es/control/grid/grid-column/grid-field-edit-column/index.d.ts +8 -0
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +2 -3
- package/es/editor/date-range/date-range-editor.controller.d.ts +9 -0
- package/es/editor/date-range/date-range-editor.controller.mjs +18 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +1 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +8 -2
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/es/panel-component/index.mjs +3 -1
- package/es/panel-component/user-message/async-action/async-action-preview/async-action-preview.mjs +5 -2
- package/es/view-engine/edit-view.engine.mjs +7 -2
- package/es/view-engine/opt-view.engine.mjs +1 -0
- package/es/view-engine/report-view.engine.mjs +1 -1
- package/es/view-engine/tab-search-view.engine.d.ts +1 -0
- package/es/view-engine/tab-search-view.engine.mjs +2 -0
- package/lib/common/data-import/data-import.cjs +1 -1
- package/lib/control/drbar/drbar.controller.cjs +9 -4
- package/lib/control/drtab/drtab.controller.cjs +2 -1
- package/lib/control/form/form/form.cjs +3 -2
- package/lib/control/form/form-detail/form-item/form-item.cjs +5 -1
- package/lib/control/grid/grid/grid-control.util.cjs +6 -0
- package/lib/control/grid/grid/grid.cjs +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/cell-edit.cjs +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +5 -1
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +2 -3
- package/lib/editor/date-range/date-range-editor.controller.cjs +18 -0
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +8 -2
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/lib/panel-component/index.cjs +2 -0
- package/lib/panel-component/user-message/async-action/async-action-preview/async-action-preview.cjs +5 -2
- package/lib/view-engine/edit-view.engine.cjs +7 -2
- package/lib/view-engine/opt-view.engine.cjs +1 -0
- package/lib/view-engine/report-view.engine.cjs +1 -1
- package/lib/view-engine/tab-search-view.engine.cjs +2 -0
- package/package.json +8 -8
- package/dist/index-p726BxsV.js +0 -4
|
@@ -9,6 +9,9 @@ function useITableEvent(c) {
|
|
|
9
9
|
let forbidChange = false;
|
|
10
10
|
let isGridUISort = false;
|
|
11
11
|
async function onRowClick(data, _column, _event) {
|
|
12
|
+
if (data.srfuf === runtime.Srfuf.CREATE) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
12
15
|
if (ibiz.config.grid.editShowMode === "row" && c.model.enableRowEdit) {
|
|
13
16
|
const row = c.findRowState(data);
|
|
14
17
|
if (row && row.showRowEdit !== true) {
|
|
@@ -19,6 +22,9 @@ function useITableEvent(c) {
|
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
function onDbRowClick(data) {
|
|
25
|
+
if (data.srfuf === runtime.Srfuf.CREATE) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
22
28
|
c.onDbRowClick(data);
|
|
23
29
|
}
|
|
24
30
|
function onSelectionChange(selection) {
|
|
@@ -34,7 +34,7 @@ function useCellEdit(props, componentRef) {
|
|
|
34
34
|
return cellEditable.value && !editable.value;
|
|
35
35
|
});
|
|
36
36
|
const stopPropagation = vue.computed(() => {
|
|
37
|
-
return cellEditable.value;
|
|
37
|
+
return cellEditable.value || editorShowEdit.value;
|
|
38
38
|
});
|
|
39
39
|
let funcs;
|
|
40
40
|
const onMaskClick = () => {
|
|
@@ -23,6 +23,10 @@ const GridFieldEditColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
23
23
|
row: {
|
|
24
24
|
type: runtime.GridRowState,
|
|
25
25
|
required: true
|
|
26
|
+
},
|
|
27
|
+
attrs: {
|
|
28
|
+
type: Object,
|
|
29
|
+
required: false
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
32
|
setup(props) {
|
|
@@ -95,7 +99,7 @@ const GridFieldEditColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
95
99
|
onInfoTextChange: this.onInfoTextChange,
|
|
96
100
|
title: this.tooltip,
|
|
97
101
|
...this.editorProps,
|
|
98
|
-
...this
|
|
102
|
+
...this.attrs
|
|
99
103
|
})]
|
|
100
104
|
});
|
|
101
105
|
}
|
|
@@ -79,9 +79,8 @@ const IBizDatePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
79
79
|
};
|
|
80
80
|
if (props.autoFocus) {
|
|
81
81
|
vue.watch(editorRef, (newVal) => {
|
|
82
|
-
if (newVal) {
|
|
83
|
-
|
|
84
|
-
input.click();
|
|
82
|
+
if (newVal && newVal.focus) {
|
|
83
|
+
newVal.focus();
|
|
85
84
|
}
|
|
86
85
|
});
|
|
87
86
|
}
|
|
@@ -3,7 +3,25 @@
|
|
|
3
3
|
var runtime = require('@ibiz-template/runtime');
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __publicField = (obj, key, value) => {
|
|
9
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
+
return value;
|
|
11
|
+
};
|
|
6
12
|
class DateRangeEditorController extends runtime.EditorController {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
/**
|
|
16
|
+
* 日期选择弹框内选中的时间值
|
|
17
|
+
*
|
|
18
|
+
* @author ljx
|
|
19
|
+
* @date 2024-03-28 16:11:21
|
|
20
|
+
* @public
|
|
21
|
+
* @returns {*} {string}
|
|
22
|
+
*/
|
|
23
|
+
__publicField(this, "dateRange", []);
|
|
24
|
+
}
|
|
7
25
|
/**
|
|
8
26
|
* 根据编辑器类型获取格式化
|
|
9
27
|
*
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var ramda = require('ramda');
|
|
5
6
|
require('./ibiz-date-range-picker.css');
|
|
6
7
|
|
|
7
8
|
"use strict";
|
|
@@ -111,6 +112,9 @@ const IBizDateRangePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
111
112
|
emit("blur", e);
|
|
112
113
|
setEditable(false);
|
|
113
114
|
};
|
|
115
|
+
const onCalendarChange = (val) => {
|
|
116
|
+
c.dateRange = ramda.clone(val);
|
|
117
|
+
};
|
|
114
118
|
const valueText = vue.computed(() => {
|
|
115
119
|
if (curValue.value.length > 0) {
|
|
116
120
|
return "".concat(curValue.value[0], " ").concat(rangeSeparator, " ").concat(curValue.value[1]);
|
|
@@ -141,7 +145,8 @@ const IBizDateRangePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
141
145
|
isEditable,
|
|
142
146
|
setEditable,
|
|
143
147
|
showFormDefaultContent,
|
|
144
|
-
handleKeyUp
|
|
148
|
+
handleKeyUp,
|
|
149
|
+
onCalendarChange
|
|
145
150
|
};
|
|
146
151
|
},
|
|
147
152
|
render() {
|
|
@@ -161,7 +166,8 @@ const IBizDateRangePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
161
166
|
"end-placeholder": this.endPlaceHolder,
|
|
162
167
|
"unlink-panels": this.unlinkPanels,
|
|
163
168
|
"onFocus": this.onFocus,
|
|
164
|
-
"onBlur": this.onBlur
|
|
169
|
+
"onBlur": this.onBlur,
|
|
170
|
+
"onCalendarChange": this.onCalendarChange
|
|
165
171
|
}, this.$attrs), null);
|
|
166
172
|
const readonlyContent = vue.createVNode("div", {
|
|
167
173
|
"class": (this.ns.b(), this.ns.m("readonly"))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-input-number{display:flex;align-items:center;height:100%}.ibiz-input-number .el-input .el-input__inner{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color);border-color:var(--ibiz-form-item-border-color)}.ibiz-input-number .el-input .el-input__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input-number .el-input .el-input__inner::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input-number .el-input.is-disabled .el-input__inner{color:var(--ibiz-form-item-disabled-color);border-color:var(--ibiz-form-item-disabled-border-color)}.ibiz-input-number .el-input.is-disabled .el-input__wrapper{background-color:var(--ibiz-form-item-disabled-bg-color)}.ibiz-input-number .ibiz-input-number-input{flex-grow:1;width:auto;height:var(--ibiz-editor-default-line-height)}.ibiz-input-number--readonly{font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-readonly-color);word-break:break-word;white-space:pre-wrap}.ibiz-input-number .ibiz-input-number__unit{flex:0 0 auto;margin-left:10px;font-size:var(--ibiz-form-item-font-size);font-style:normal}.ibiz-input-number-form-default-content{display:none}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-form-default-content{display:none}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-input{display:block}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-input .el-input-number__decrease,.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-input .el-input-number__increase{top:2px}.ibiz-form-item .ibiz-input-number.is-show-default .ibiz-input-number-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-form-item .ibiz-input-number.is-show-default .ibiz-input-number-input{display:none}.ibiz-form-item .ibiz-input-number.is-show-default.is-editable .ibiz-input-number-form-default-content{display:none}.ibiz-form-item .ibiz-input-number.is-show-default.is-editable .ibiz-input-number-input{display:block}
|
|
1
|
+
.ibiz-input-number{display:flex;align-items:center;height:100%}.ibiz-input-number .el-input .el-input__inner{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color);text-align:left;border-color:var(--ibiz-form-item-border-color)}.ibiz-input-number .el-input-number.is-without-controls .el-input__wrapper{padding-right:11px;padding-left:11px}.ibiz-input-number .el-input .el-input__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input-number .el-input .el-input__inner::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input-number .el-input.is-disabled .el-input__inner{color:var(--ibiz-form-item-disabled-color);border-color:var(--ibiz-form-item-disabled-border-color)}.ibiz-input-number .el-input.is-disabled .el-input__wrapper{background-color:var(--ibiz-form-item-disabled-bg-color)}.ibiz-input-number .ibiz-input-number-input{flex-grow:1;width:auto;height:var(--ibiz-editor-default-line-height)}.ibiz-input-number--readonly{font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-readonly-color);word-break:break-word;white-space:pre-wrap}.ibiz-input-number .ibiz-input-number__unit{flex:0 0 auto;margin-left:10px;font-size:var(--ibiz-form-item-font-size);font-style:normal}.ibiz-input-number-form-default-content{display:none}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-form-default-content{display:none}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-input{display:block}.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-input .el-input-number__decrease,.ibiz-form-item .ibiz-input-number.is-show-default:hover .ibiz-input-number-input .el-input-number__increase{top:2px}.ibiz-form-item .ibiz-input-number.is-show-default .ibiz-input-number-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-form-item .ibiz-input-number.is-show-default .ibiz-input-number-input{display:none}.ibiz-form-item .ibiz-input-number.is-show-default.is-editable .ibiz-input-number-form-default-content{display:none}.ibiz-form-item .ibiz-input-number.is-show-default.is-editable .ibiz-input-number-input{display:block}
|
package/lib/panel-component/user-message/async-action/async-action-preview/async-action-preview.cjs
CHANGED
|
@@ -14,10 +14,13 @@ function fileDownload(file) {
|
|
|
14
14
|
baseURL: ""
|
|
15
15
|
// 已经有baseURL了,这里无需再写
|
|
16
16
|
}).then((response) => {
|
|
17
|
-
|
|
17
|
+
let filename = qs.parse(response.headers["content-disposition"], {
|
|
18
18
|
delimiter: ";"
|
|
19
19
|
}).filename;
|
|
20
20
|
if (filename) {
|
|
21
|
+
if (filename.startsWith('"') && filename.endsWith('"')) {
|
|
22
|
+
filename = filename.substring(1, filename.length - 1);
|
|
23
|
+
}
|
|
21
24
|
file.name += ".".concat(filename.split(".")[1]);
|
|
22
25
|
}
|
|
23
26
|
if (response.status !== 200) {
|
|
@@ -87,7 +90,7 @@ const AsyncActionPreview = /* @__PURE__ */ vue.defineComponent({
|
|
|
87
90
|
info.errorDetails = [];
|
|
88
91
|
}
|
|
89
92
|
if (actionResult.errorfile) {
|
|
90
|
-
info.errorFileUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/").concat(actionResult.errorfile.folder, "/").concat(actionResult.errorfile.fileid);
|
|
93
|
+
info.errorFileUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/").concat(actionResult.errorfile.folder, "/").concat(actionResult.errorfile.fileid).replace("/{cat}", "");
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
const onDownLoad = () => {
|
|
@@ -93,6 +93,7 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
93
93
|
};
|
|
94
94
|
this.form.evt.on("onLoadSuccess", (event) => {
|
|
95
95
|
formDataStateChange(event);
|
|
96
|
+
this.view.state.srfactiveviewdata = event.data[0];
|
|
96
97
|
evt.emit("onDataChange", { ...event, actionType: "LOAD" });
|
|
97
98
|
});
|
|
98
99
|
this.form.evt.on("onLoadDraftSuccess", (event) => {
|
|
@@ -127,7 +128,7 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
127
128
|
return this.form.save();
|
|
128
129
|
}
|
|
129
130
|
async refresh() {
|
|
130
|
-
|
|
131
|
+
this.form.doNextActive(() => this.load(), { key: "load" });
|
|
131
132
|
}
|
|
132
133
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
133
134
|
async call(key, args) {
|
|
@@ -265,7 +266,11 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
265
266
|
},
|
|
266
267
|
data instanceof runtime.ControlVO ? data.getOrigin() : data
|
|
267
268
|
);
|
|
268
|
-
ibiz.mc.command.send(
|
|
269
|
+
ibiz.mc.command.send(
|
|
270
|
+
{ srfdecodename: "SysTodo" },
|
|
271
|
+
"OBJECTUPDATED",
|
|
272
|
+
"WITHDRAW"
|
|
273
|
+
);
|
|
269
274
|
}
|
|
270
275
|
/**
|
|
271
276
|
* 初始化标记打开数据相关逻辑
|
|
@@ -32,6 +32,8 @@ class TabSearchViewEngine extends tabExpView_engine.TabExpViewEngine {
|
|
|
32
32
|
get tabExpPanel() {
|
|
33
33
|
return this.view.getController("tabexppanel");
|
|
34
34
|
}
|
|
35
|
+
preprocessTabExpModelLayout() {
|
|
36
|
+
}
|
|
35
37
|
async onCreated() {
|
|
36
38
|
await super.onCreated();
|
|
37
39
|
const { childNames } = this.view;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.15",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"@floating-ui/dom": "^1.5.3",
|
|
31
31
|
"@ibiz-template-plugin/ai-chat": "^0.0.1",
|
|
32
32
|
"@ibiz-template-plugin/gantt": "0.1.3-alpha.46",
|
|
33
|
-
"@ibiz-template/core": "0.6.
|
|
33
|
+
"@ibiz-template/core": "0.6.16",
|
|
34
34
|
"@ibiz-template/devtool": "0.0.1-dev.6",
|
|
35
|
-
"@ibiz-template/model-helper": "0.6.
|
|
36
|
-
"@ibiz-template/runtime": "0.6.
|
|
35
|
+
"@ibiz-template/model-helper": "0.6.16",
|
|
36
|
+
"@ibiz-template/runtime": "0.6.16",
|
|
37
37
|
"@ibiz-template/theme": "^0.6.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.6.
|
|
39
|
-
"@ibiz-template/web-theme": "^1.1.
|
|
40
|
-
"@ibiz/model-core": "^0.1.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.6.16",
|
|
39
|
+
"@ibiz-template/web-theme": "^1.1.14",
|
|
40
|
+
"@ibiz/model-core": "^0.1.19",
|
|
41
41
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
42
42
|
"@monaco-editor/loader": "^1.4.0",
|
|
43
43
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@ibiz-template/runtime": "^0.6.0",
|
|
101
101
|
"@ibiz-template/theme": "^0.6.0",
|
|
102
102
|
"@ibiz-template/vue3-util": "^0.6.0",
|
|
103
|
-
"@ibiz/model-core": "^0.1.
|
|
103
|
+
"@ibiz/model-core": "^0.1.19",
|
|
104
104
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
105
105
|
"@monaco-editor/loader": "^1.3.3",
|
|
106
106
|
"@wangeditor/editor": "^5.1.23",
|