@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
|
@@ -65,7 +65,7 @@ const DataImport = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
result = await importData(selectedFile, props.appDataEntity, props.dataImport, props.context);
|
|
66
66
|
ibiz.mc.command.send({
|
|
67
67
|
srfdecodename: props.appDataEntity.codeName
|
|
68
|
-
}, "OBJECTCREATED");
|
|
68
|
+
}, "OBJECTCREATED", "DATAIMPORT");
|
|
69
69
|
const {
|
|
70
70
|
success,
|
|
71
71
|
total,
|
|
@@ -92,10 +92,10 @@ export declare class DRBarController extends ControlController<IDEDRBar, IDRBarS
|
|
|
92
92
|
/**
|
|
93
93
|
* 计算关系界面组权限
|
|
94
94
|
*
|
|
95
|
-
* @param {
|
|
95
|
+
* @param {IDRBarItemsState} item 关系组成员
|
|
96
96
|
* @memberof DRBarController
|
|
97
97
|
*/
|
|
98
|
-
calcPermitted(item:
|
|
98
|
+
calcPermitted(item: IDRBarItemsState): Promise<void>;
|
|
99
99
|
/**
|
|
100
100
|
* 计算是否展示
|
|
101
101
|
*
|
|
@@ -119,7 +119,7 @@ class DRBarController extends ControlController {
|
|
|
119
119
|
/**
|
|
120
120
|
* 计算关系界面组权限
|
|
121
121
|
*
|
|
122
|
-
* @param {
|
|
122
|
+
* @param {IDRBarItemsState} item 关系组成员
|
|
123
123
|
* @memberof DRBarController
|
|
124
124
|
*/
|
|
125
125
|
async calcPermitted(item) {
|
|
@@ -169,7 +169,8 @@ class DRBarController extends ControlController {
|
|
|
169
169
|
async onMounted() {
|
|
170
170
|
await super.onMounted();
|
|
171
171
|
if (this.form) {
|
|
172
|
-
this.form.evt.on("onLoadSuccess", async () => {
|
|
172
|
+
this.form.evt.on("onLoadSuccess", async (event) => {
|
|
173
|
+
this.view.state.srfactiveviewdata = event.data[0];
|
|
173
174
|
await this.calcDrBarItemsState();
|
|
174
175
|
this.handleFormChange();
|
|
175
176
|
this.doDefaultSelect();
|
|
@@ -180,6 +181,8 @@ class DRBarController extends ControlController {
|
|
|
180
181
|
this.form.evt.on("onSaveSuccess", () => {
|
|
181
182
|
this.handleFormChange();
|
|
182
183
|
});
|
|
184
|
+
} else {
|
|
185
|
+
await this.calcDrBarItemsState();
|
|
183
186
|
}
|
|
184
187
|
if (this.form.state.isLoaded) {
|
|
185
188
|
this.doDefaultSelect();
|
|
@@ -253,7 +256,8 @@ class DRBarController extends ControlController {
|
|
|
253
256
|
sysImage: item.sysImage,
|
|
254
257
|
disabled: false,
|
|
255
258
|
counterId: item.counterId,
|
|
256
|
-
visible:
|
|
259
|
+
visible: false,
|
|
260
|
+
// 默认不显示
|
|
257
261
|
dataAccessAction: item.dataAccessAction || void 0
|
|
258
262
|
};
|
|
259
263
|
};
|
|
@@ -280,7 +284,8 @@ class DRBarController extends ControlController {
|
|
|
280
284
|
tag: group.id,
|
|
281
285
|
caption: itemCaption,
|
|
282
286
|
sysImage: group.sysImage,
|
|
283
|
-
visible:
|
|
287
|
+
visible: false,
|
|
288
|
+
// 默认不显示
|
|
284
289
|
children: groupItems.map((item) => getItemState(item))
|
|
285
290
|
});
|
|
286
291
|
} else if (groupItems.length === 1) {
|
|
@@ -103,7 +103,8 @@ class DRTabController extends ControlController {
|
|
|
103
103
|
async onMounted() {
|
|
104
104
|
await super.onMounted();
|
|
105
105
|
if (this.form) {
|
|
106
|
-
this.form.evt.on("onLoadSuccess", () => {
|
|
106
|
+
this.form.evt.on("onLoadSuccess", (event) => {
|
|
107
|
+
this.view.state.srfactiveviewdata = event.data[0];
|
|
107
108
|
this.handleFormChange();
|
|
108
109
|
});
|
|
109
110
|
this.form.evt.on("onLoadDraftSuccess", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode, renderSlot, createVNode, resolveComponent, h, defineComponent } from 'vue';
|
|
2
|
-
import { ScriptFactory, findChildFormDetails } from '@ibiz-template/runtime';
|
|
2
|
+
import { ScriptFactory, findChildFormDetails, ControlType } from '@ibiz-template/runtime';
|
|
3
3
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
4
4
|
import './form.css';
|
|
5
5
|
|
|
@@ -45,7 +45,7 @@ const FormControl = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
modelData: detail,
|
|
46
46
|
controller: c.details[detailId],
|
|
47
47
|
key: detail.id,
|
|
48
|
-
|
|
48
|
+
attrs: renderAttrs(detail)
|
|
49
49
|
};
|
|
50
50
|
if (slots[detailId]) {
|
|
51
51
|
return renderSlot(slots, detailId, {
|
|
@@ -113,7 +113,8 @@ const FormControl = /* @__PURE__ */ defineComponent({
|
|
|
113
113
|
});
|
|
114
114
|
};
|
|
115
115
|
} else {
|
|
116
|
-
const
|
|
116
|
+
const formSlotKey = model.controlType === ControlType.SEARCHFORM ? "searchform" : "form";
|
|
117
|
+
const key = controlPanel ? formSlotKey : "default";
|
|
117
118
|
slots[key] = () => {
|
|
118
119
|
return createVNode(resolveComponent("iBizFormPage"), {
|
|
119
120
|
"modelData": this.c.model,
|
|
@@ -11,6 +11,10 @@ export declare const FormItem: import("vue").DefineComponent<{
|
|
|
11
11
|
type: typeof FormItemController;
|
|
12
12
|
required: true;
|
|
13
13
|
};
|
|
14
|
+
attrs: {
|
|
15
|
+
type: PropType<IData>;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
14
18
|
}, {
|
|
15
19
|
ns: import("@ibiz-template/core").Namespace;
|
|
16
20
|
c: FormItemController;
|
|
@@ -24,5 +28,9 @@ export declare const FormItem: import("vue").DefineComponent<{
|
|
|
24
28
|
type: typeof FormItemController;
|
|
25
29
|
required: true;
|
|
26
30
|
};
|
|
31
|
+
attrs: {
|
|
32
|
+
type: PropType<IData>;
|
|
33
|
+
required: false;
|
|
34
|
+
};
|
|
27
35
|
}>>, {}, {}>;
|
|
28
36
|
export default FormItem;
|
|
@@ -17,6 +17,10 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
controller: {
|
|
18
18
|
type: FormItemController,
|
|
19
19
|
required: true
|
|
20
|
+
},
|
|
21
|
+
attrs: {
|
|
22
|
+
type: Object,
|
|
23
|
+
required: false
|
|
20
24
|
}
|
|
21
25
|
},
|
|
22
26
|
setup(props) {
|
|
@@ -48,7 +52,7 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
48
52
|
onFocus: (event) => this.c.onFocus(event),
|
|
49
53
|
onBlur: (event) => this.c.onBlur(event),
|
|
50
54
|
onEnter: (event) => this.controller.onEnter(event),
|
|
51
|
-
...this
|
|
55
|
+
...this.attrs
|
|
52
56
|
};
|
|
53
57
|
if (this.c.form.state.isLoaded) {
|
|
54
58
|
if (this.$slots.default) {
|
|
@@ -8,6 +8,10 @@ export declare const IBizFormItem: import("@ibiz-template/vue3-util").TypeWithIn
|
|
|
8
8
|
type: typeof import("@ibiz-template/runtime").FormItemController;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
|
+
attrs: {
|
|
12
|
+
type: import("vue").PropType<IData>;
|
|
13
|
+
required: false;
|
|
14
|
+
};
|
|
11
15
|
}, {
|
|
12
16
|
ns: import("@ibiz-template/core").Namespace;
|
|
13
17
|
c: import("@ibiz-template/runtime").FormItemController;
|
|
@@ -21,5 +25,9 @@ export declare const IBizFormItem: import("@ibiz-template/vue3-util").TypeWithIn
|
|
|
21
25
|
type: typeof import("@ibiz-template/runtime").FormItemController;
|
|
22
26
|
required: true;
|
|
23
27
|
};
|
|
28
|
+
attrs: {
|
|
29
|
+
type: import("vue").PropType<IData>;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
24
32
|
}>>, {}, {}>>;
|
|
25
33
|
export default IBizFormItem;
|
|
@@ -229,6 +229,10 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
229
229
|
params?: IParams | undefined;
|
|
230
230
|
}) => void;
|
|
231
231
|
getEventArgs: () => Omit<EventBase, "eventName">;
|
|
232
|
+
doNextActive: (cb: () => void, opts: {
|
|
233
|
+
key: string;
|
|
234
|
+
delay?: number | undefined;
|
|
235
|
+
}) => void;
|
|
232
236
|
readonly id: string;
|
|
233
237
|
state: {
|
|
234
238
|
data: IData;
|
|
@@ -11322,6 +11326,10 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
11322
11326
|
params?: IParams | undefined;
|
|
11323
11327
|
}) => void;
|
|
11324
11328
|
getEventArgs: () => Omit<EventBase, "eventName">;
|
|
11329
|
+
doNextActive: (cb: () => void, opts: {
|
|
11330
|
+
key: string;
|
|
11331
|
+
delay?: number | undefined;
|
|
11332
|
+
}) => void;
|
|
11325
11333
|
readonly id: string;
|
|
11326
11334
|
state: {
|
|
11327
11335
|
data: IData;
|
|
@@ -14261,6 +14269,10 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
14261
14269
|
params?: IParams | undefined;
|
|
14262
14270
|
}) => void;
|
|
14263
14271
|
getEventArgs: () => Omit<EventBase, "eventName">;
|
|
14272
|
+
doNextActive: (cb: () => void, opts: {
|
|
14273
|
+
key: string;
|
|
14274
|
+
delay?: number | undefined;
|
|
14275
|
+
}) => void;
|
|
14264
14276
|
readonly id: string;
|
|
14265
14277
|
state: {
|
|
14266
14278
|
isLoaded: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ControlVO, GridRowState } from '@ibiz-template/runtime';
|
|
1
|
+
import { Srfuf, ControlVO, GridRowState } from '@ibiz-template/runtime';
|
|
2
2
|
import { ref, watch, nextTick, computed, watchEffect, onUnmounted } from 'vue';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
@@ -7,6 +7,9 @@ function useITableEvent(c) {
|
|
|
7
7
|
let forbidChange = false;
|
|
8
8
|
let isGridUISort = false;
|
|
9
9
|
async function onRowClick(data, _column, _event) {
|
|
10
|
+
if (data.srfuf === Srfuf.CREATE) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
10
13
|
if (ibiz.config.grid.editShowMode === "row" && c.model.enableRowEdit) {
|
|
11
14
|
const row = c.findRowState(data);
|
|
12
15
|
if (row && row.showRowEdit !== true) {
|
|
@@ -17,6 +20,9 @@ function useITableEvent(c) {
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
function onDbRowClick(data) {
|
|
23
|
+
if (data.srfuf === Srfuf.CREATE) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
20
26
|
c.onDbRowClick(data);
|
|
21
27
|
}
|
|
22
28
|
function onSelectionChange(selection) {
|
|
@@ -32,7 +32,7 @@ function useCellEdit(props, componentRef) {
|
|
|
32
32
|
return cellEditable.value && !editable.value;
|
|
33
33
|
});
|
|
34
34
|
const stopPropagation = computed(() => {
|
|
35
|
-
return cellEditable.value;
|
|
35
|
+
return cellEditable.value || editorShowEdit.value;
|
|
36
36
|
});
|
|
37
37
|
let funcs;
|
|
38
38
|
const onMaskClick = () => {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
import { GridFieldEditColumnController, GridRowState } from '@ibiz-template/runtime';
|
|
2
3
|
import './grid-field-edit-column.scss';
|
|
3
4
|
export declare const GridFieldEditColumn: import("vue").DefineComponent<{
|
|
@@ -9,6 +10,10 @@ export declare const GridFieldEditColumn: import("vue").DefineComponent<{
|
|
|
9
10
|
type: typeof GridRowState;
|
|
10
11
|
required: true;
|
|
11
12
|
};
|
|
13
|
+
attrs: {
|
|
14
|
+
type: PropType<IData>;
|
|
15
|
+
required: false;
|
|
16
|
+
};
|
|
12
17
|
}, {
|
|
13
18
|
ns: import("@ibiz-template/core").Namespace;
|
|
14
19
|
c: GridFieldEditColumnController;
|
|
@@ -27,5 +32,9 @@ export declare const GridFieldEditColumn: import("vue").DefineComponent<{
|
|
|
27
32
|
type: typeof GridRowState;
|
|
28
33
|
required: true;
|
|
29
34
|
};
|
|
35
|
+
attrs: {
|
|
36
|
+
type: PropType<IData>;
|
|
37
|
+
required: false;
|
|
38
|
+
};
|
|
30
39
|
}>>, {}, {}>;
|
|
31
40
|
export default GridFieldEditColumn;
|
|
@@ -19,6 +19,10 @@ const GridFieldEditColumn = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
row: {
|
|
20
20
|
type: GridRowState,
|
|
21
21
|
required: true
|
|
22
|
+
},
|
|
23
|
+
attrs: {
|
|
24
|
+
type: Object,
|
|
25
|
+
required: false
|
|
22
26
|
}
|
|
23
27
|
},
|
|
24
28
|
setup(props) {
|
|
@@ -91,7 +95,7 @@ const GridFieldEditColumn = /* @__PURE__ */ defineComponent({
|
|
|
91
95
|
onInfoTextChange: this.onInfoTextChange,
|
|
92
96
|
title: this.tooltip,
|
|
93
97
|
...this.editorProps,
|
|
94
|
-
...this
|
|
98
|
+
...this.attrs
|
|
95
99
|
})]
|
|
96
100
|
});
|
|
97
101
|
}
|
|
@@ -7,6 +7,10 @@ export declare const IBizGridFieldEditColumn: import("@ibiz-template/vue3-util")
|
|
|
7
7
|
type: typeof import("@ibiz-template/runtime").GridRowState;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
|
+
attrs: {
|
|
11
|
+
type: import("vue").PropType<IData>;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
10
14
|
}, {
|
|
11
15
|
ns: import("@ibiz-template/core").Namespace;
|
|
12
16
|
c: import("@ibiz-template/runtime").GridFieldEditColumnController;
|
|
@@ -25,5 +29,9 @@ export declare const IBizGridFieldEditColumn: import("@ibiz-template/vue3-util")
|
|
|
25
29
|
type: typeof import("@ibiz-template/runtime").GridRowState;
|
|
26
30
|
required: true;
|
|
27
31
|
};
|
|
32
|
+
attrs: {
|
|
33
|
+
type: import("vue").PropType<IData>;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
28
36
|
}>>, {}, {}>>;
|
|
29
37
|
export default IBizGridFieldEditColumn;
|
|
@@ -77,9 +77,8 @@ const IBizDatePicker = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
};
|
|
78
78
|
if (props.autoFocus) {
|
|
79
79
|
watch(editorRef, (newVal) => {
|
|
80
|
-
if (newVal) {
|
|
81
|
-
|
|
82
|
-
input.click();
|
|
80
|
+
if (newVal && newVal.focus) {
|
|
81
|
+
newVal.focus();
|
|
83
82
|
}
|
|
84
83
|
});
|
|
85
84
|
}
|
|
@@ -8,6 +8,15 @@ import { IDateRange } from '@ibiz/model-core';
|
|
|
8
8
|
* @extends {EditorController}
|
|
9
9
|
*/
|
|
10
10
|
export declare class DateRangeEditorController extends EditorController<IDateRange> {
|
|
11
|
+
/**
|
|
12
|
+
* 日期选择弹框内选中的时间值
|
|
13
|
+
*
|
|
14
|
+
* @author ljx
|
|
15
|
+
* @date 2024-03-28 16:11:21
|
|
16
|
+
* @public
|
|
17
|
+
* @returns {*} {string}
|
|
18
|
+
*/
|
|
19
|
+
dateRange: IData;
|
|
11
20
|
/**
|
|
12
21
|
* 根据编辑器类型获取格式化
|
|
13
22
|
*
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import { EditorController } from '@ibiz-template/runtime';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
4
10
|
class DateRangeEditorController extends EditorController {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* 日期选择弹框内选中的时间值
|
|
15
|
+
*
|
|
16
|
+
* @author ljx
|
|
17
|
+
* @date 2024-03-28 16:11:21
|
|
18
|
+
* @public
|
|
19
|
+
* @returns {*} {string}
|
|
20
|
+
*/
|
|
21
|
+
__publicField(this, "dateRange", []);
|
|
22
|
+
}
|
|
5
23
|
/**
|
|
6
24
|
* 根据编辑器类型获取格式化
|
|
7
25
|
*
|
|
@@ -43,6 +43,7 @@ export declare const IBizDateRangePicker: import("vue").DefineComponent<{
|
|
|
43
43
|
setEditable: (flag: boolean) => void;
|
|
44
44
|
showFormDefaultContent: import("vue").ComputedRef<boolean>;
|
|
45
45
|
handleKeyUp: (e: KeyboardEvent) => void;
|
|
46
|
+
onCalendarChange: (val: IData) => void;
|
|
46
47
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
48
|
change: (_value: unknown, _name?: string | undefined) => boolean;
|
|
48
49
|
blur: (_event?: IData | undefined) => boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ref, computed, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getDateRangeProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { clone } from 'ramda';
|
|
3
4
|
import './ibiz-date-range-picker.css';
|
|
4
5
|
|
|
5
6
|
"use strict";
|
|
@@ -109,6 +110,9 @@ const IBizDateRangePicker = /* @__PURE__ */ defineComponent({
|
|
|
109
110
|
emit("blur", e);
|
|
110
111
|
setEditable(false);
|
|
111
112
|
};
|
|
113
|
+
const onCalendarChange = (val) => {
|
|
114
|
+
c.dateRange = clone(val);
|
|
115
|
+
};
|
|
112
116
|
const valueText = computed(() => {
|
|
113
117
|
if (curValue.value.length > 0) {
|
|
114
118
|
return "".concat(curValue.value[0], " ").concat(rangeSeparator, " ").concat(curValue.value[1]);
|
|
@@ -139,7 +143,8 @@ const IBizDateRangePicker = /* @__PURE__ */ defineComponent({
|
|
|
139
143
|
isEditable,
|
|
140
144
|
setEditable,
|
|
141
145
|
showFormDefaultContent,
|
|
142
|
-
handleKeyUp
|
|
146
|
+
handleKeyUp,
|
|
147
|
+
onCalendarChange
|
|
143
148
|
};
|
|
144
149
|
},
|
|
145
150
|
render() {
|
|
@@ -159,7 +164,8 @@ const IBizDateRangePicker = /* @__PURE__ */ defineComponent({
|
|
|
159
164
|
"end-placeholder": this.endPlaceHolder,
|
|
160
165
|
"unlink-panels": this.unlinkPanels,
|
|
161
166
|
"onFocus": this.onFocus,
|
|
162
|
-
"onBlur": this.onBlur
|
|
167
|
+
"onBlur": this.onBlur,
|
|
168
|
+
"onCalendarChange": this.onCalendarChange
|
|
163
169
|
}, this.$attrs), null);
|
|
164
170
|
const readonlyContent = createVNode("div", {
|
|
165
171
|
"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}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBizPanelContainer, IBizPanelCtrlPos, IBizScrollContainer, IBizNavPos, IBizSingleDataContainer, IBizMultiDataContainer, IBizPanelField, IBizPanelRawItem, IBizGridContainer, IBizPanelTabPage, IBizPanelContainerGroup, IBizPanelContainerImage, IBizPanelItemRender } from '@ibiz-template/vue3-util';
|
|
1
|
+
import { IBizPanelContainer, IBizPanelCtrlPos, IBizScrollContainer, IBizNavPos, IBizSingleDataContainer, IBizMultiDataContainer, IBizPanelField, IBizPanelRawItem, IBizGridContainer, IBizPanelTabPage, IBizPanelContainerGroup, IBizPanelContainerImage, IBizPanelItemRender, IBizTeleportPlaceholder, IBizPanelContainerTabs } from '@ibiz-template/vue3-util';
|
|
2
2
|
import { IBizAuthUserinfo } from './auth-userinfo/index.mjs';
|
|
3
3
|
import { IBizNavPosIndex } from './nav-pos-index/index.mjs';
|
|
4
4
|
import { IBizNavTabs } from './nav-tabs/index.mjs';
|
|
@@ -59,6 +59,8 @@ const IBizPanelComponents = {
|
|
|
59
59
|
v.use(IBizPanelItemRender);
|
|
60
60
|
v.use(IBizViewMessage);
|
|
61
61
|
v.use(IBizPanelStaticCarousel);
|
|
62
|
+
v.use(IBizTeleportPlaceholder);
|
|
63
|
+
v.use(IBizPanelContainerTabs);
|
|
62
64
|
}
|
|
63
65
|
};
|
|
64
66
|
|
package/es/panel-component/user-message/async-action/async-action-preview/async-action-preview.mjs
CHANGED
|
@@ -12,10 +12,13 @@ function fileDownload(file) {
|
|
|
12
12
|
baseURL: ""
|
|
13
13
|
// 已经有baseURL了,这里无需再写
|
|
14
14
|
}).then((response) => {
|
|
15
|
-
|
|
15
|
+
let filename = qs.parse(response.headers["content-disposition"], {
|
|
16
16
|
delimiter: ";"
|
|
17
17
|
}).filename;
|
|
18
18
|
if (filename) {
|
|
19
|
+
if (filename.startsWith('"') && filename.endsWith('"')) {
|
|
20
|
+
filename = filename.substring(1, filename.length - 1);
|
|
21
|
+
}
|
|
19
22
|
file.name += ".".concat(filename.split(".")[1]);
|
|
20
23
|
}
|
|
21
24
|
if (response.status !== 200) {
|
|
@@ -85,7 +88,7 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
|
|
|
85
88
|
info.errorDetails = [];
|
|
86
89
|
}
|
|
87
90
|
if (actionResult.errorfile) {
|
|
88
|
-
info.errorFileUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/").concat(actionResult.errorfile.folder, "/").concat(actionResult.errorfile.fileid);
|
|
91
|
+
info.errorFileUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/").concat(actionResult.errorfile.folder, "/").concat(actionResult.errorfile.fileid).replace("/{cat}", "");
|
|
89
92
|
}
|
|
90
93
|
}
|
|
91
94
|
const onDownLoad = () => {
|
|
@@ -91,6 +91,7 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
91
91
|
};
|
|
92
92
|
this.form.evt.on("onLoadSuccess", (event) => {
|
|
93
93
|
formDataStateChange(event);
|
|
94
|
+
this.view.state.srfactiveviewdata = event.data[0];
|
|
94
95
|
evt.emit("onDataChange", { ...event, actionType: "LOAD" });
|
|
95
96
|
});
|
|
96
97
|
this.form.evt.on("onLoadDraftSuccess", (event) => {
|
|
@@ -125,7 +126,7 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
125
126
|
return this.form.save();
|
|
126
127
|
}
|
|
127
128
|
async refresh() {
|
|
128
|
-
|
|
129
|
+
this.form.doNextActive(() => this.load(), { key: "load" });
|
|
129
130
|
}
|
|
130
131
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
131
132
|
async call(key, args) {
|
|
@@ -263,7 +264,11 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
263
264
|
},
|
|
264
265
|
data instanceof ControlVO ? data.getOrigin() : data
|
|
265
266
|
);
|
|
266
|
-
ibiz.mc.command.send(
|
|
267
|
+
ibiz.mc.command.send(
|
|
268
|
+
{ srfdecodename: "SysTodo" },
|
|
269
|
+
"OBJECTUPDATED",
|
|
270
|
+
"WITHDRAW"
|
|
271
|
+
);
|
|
267
272
|
}
|
|
268
273
|
/**
|
|
269
274
|
* 初始化标记打开数据相关逻辑
|
|
@@ -42,6 +42,7 @@ export declare class TabSearchViewEngine extends TabExpViewEngine {
|
|
|
42
42
|
* @readonly
|
|
43
43
|
*/
|
|
44
44
|
get tabExpPanel(): ITabExpPanelController;
|
|
45
|
+
protected preprocessTabExpModelLayout(): void;
|
|
45
46
|
onCreated(): Promise<void>;
|
|
46
47
|
onMounted(): Promise<void>;
|
|
47
48
|
call(key: string, args: any): Promise<IData | null | undefined>;
|
|
@@ -67,7 +67,7 @@ const DataImport = /* @__PURE__ */ vue.defineComponent({
|
|
|
67
67
|
result = await runtime.importData(selectedFile, props.appDataEntity, props.dataImport, props.context);
|
|
68
68
|
ibiz.mc.command.send({
|
|
69
69
|
srfdecodename: props.appDataEntity.codeName
|
|
70
|
-
}, "OBJECTCREATED");
|
|
70
|
+
}, "OBJECTCREATED", "DATAIMPORT");
|
|
71
71
|
const {
|
|
72
72
|
success,
|
|
73
73
|
total,
|
|
@@ -121,7 +121,7 @@ class DRBarController extends runtime.ControlController {
|
|
|
121
121
|
/**
|
|
122
122
|
* 计算关系界面组权限
|
|
123
123
|
*
|
|
124
|
-
* @param {
|
|
124
|
+
* @param {IDRBarItemsState} item 关系组成员
|
|
125
125
|
* @memberof DRBarController
|
|
126
126
|
*/
|
|
127
127
|
async calcPermitted(item) {
|
|
@@ -171,7 +171,8 @@ class DRBarController extends runtime.ControlController {
|
|
|
171
171
|
async onMounted() {
|
|
172
172
|
await super.onMounted();
|
|
173
173
|
if (this.form) {
|
|
174
|
-
this.form.evt.on("onLoadSuccess", async () => {
|
|
174
|
+
this.form.evt.on("onLoadSuccess", async (event) => {
|
|
175
|
+
this.view.state.srfactiveviewdata = event.data[0];
|
|
175
176
|
await this.calcDrBarItemsState();
|
|
176
177
|
this.handleFormChange();
|
|
177
178
|
this.doDefaultSelect();
|
|
@@ -182,6 +183,8 @@ class DRBarController extends runtime.ControlController {
|
|
|
182
183
|
this.form.evt.on("onSaveSuccess", () => {
|
|
183
184
|
this.handleFormChange();
|
|
184
185
|
});
|
|
186
|
+
} else {
|
|
187
|
+
await this.calcDrBarItemsState();
|
|
185
188
|
}
|
|
186
189
|
if (this.form.state.isLoaded) {
|
|
187
190
|
this.doDefaultSelect();
|
|
@@ -255,7 +258,8 @@ class DRBarController extends runtime.ControlController {
|
|
|
255
258
|
sysImage: item.sysImage,
|
|
256
259
|
disabled: false,
|
|
257
260
|
counterId: item.counterId,
|
|
258
|
-
visible:
|
|
261
|
+
visible: false,
|
|
262
|
+
// 默认不显示
|
|
259
263
|
dataAccessAction: item.dataAccessAction || void 0
|
|
260
264
|
};
|
|
261
265
|
};
|
|
@@ -282,7 +286,8 @@ class DRBarController extends runtime.ControlController {
|
|
|
282
286
|
tag: group.id,
|
|
283
287
|
caption: itemCaption,
|
|
284
288
|
sysImage: group.sysImage,
|
|
285
|
-
visible:
|
|
289
|
+
visible: false,
|
|
290
|
+
// 默认不显示
|
|
286
291
|
children: groupItems.map((item) => getItemState(item))
|
|
287
292
|
});
|
|
288
293
|
} else if (groupItems.length === 1) {
|
|
@@ -105,7 +105,8 @@ class DRTabController extends runtime.ControlController {
|
|
|
105
105
|
async onMounted() {
|
|
106
106
|
await super.onMounted();
|
|
107
107
|
if (this.form) {
|
|
108
|
-
this.form.evt.on("onLoadSuccess", () => {
|
|
108
|
+
this.form.evt.on("onLoadSuccess", (event) => {
|
|
109
|
+
this.view.state.srfactiveviewdata = event.data[0];
|
|
109
110
|
this.handleFormChange();
|
|
110
111
|
});
|
|
111
112
|
this.form.evt.on("onLoadDraftSuccess", () => {
|
|
@@ -47,7 +47,7 @@ const FormControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
47
|
modelData: detail,
|
|
48
48
|
controller: c.details[detailId],
|
|
49
49
|
key: detail.id,
|
|
50
|
-
|
|
50
|
+
attrs: renderAttrs(detail)
|
|
51
51
|
};
|
|
52
52
|
if (slots[detailId]) {
|
|
53
53
|
return vue.renderSlot(slots, detailId, {
|
|
@@ -115,7 +115,8 @@ const FormControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
115
115
|
});
|
|
116
116
|
};
|
|
117
117
|
} else {
|
|
118
|
-
const
|
|
118
|
+
const formSlotKey = model.controlType === runtime.ControlType.SEARCHFORM ? "searchform" : "form";
|
|
119
|
+
const key = controlPanel ? formSlotKey : "default";
|
|
119
120
|
slots[key] = () => {
|
|
120
121
|
return vue.createVNode(vue.resolveComponent("iBizFormPage"), {
|
|
121
122
|
"modelData": this.c.model,
|
|
@@ -21,6 +21,10 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
21
|
controller: {
|
|
22
22
|
type: runtime.FormItemController,
|
|
23
23
|
required: true
|
|
24
|
+
},
|
|
25
|
+
attrs: {
|
|
26
|
+
type: Object,
|
|
27
|
+
required: false
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
setup(props) {
|
|
@@ -52,7 +56,7 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
52
56
|
onFocus: (event) => this.c.onFocus(event),
|
|
53
57
|
onBlur: (event) => this.c.onBlur(event),
|
|
54
58
|
onEnter: (event) => this.controller.onEnter(event),
|
|
55
|
-
...this
|
|
59
|
+
...this.attrs
|
|
56
60
|
};
|
|
57
61
|
if (this.c.form.state.isLoaded) {
|
|
58
62
|
if (this.$slots.default) {
|