@ibiz-template/vue3-components 0.7.41-alpha.16 → 0.7.41-alpha.17
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-U4v1OOOD.js → index-AOFxMmyX.js} +1 -1
- package/dist/{index-lFGFvnYE.js → index-swminiXb.js} +1 -1
- package/dist/index-t1aZ8OJE.js +11 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-_06OYPpu.js → wang-editor-Y8puaTx2.js} +1 -1
- package/dist/{xlsx-util-FNiwKrqm.js → xlsx-util-jYyM8alm.js} +1 -1
- package/es/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +25 -8
- package/es/control/calendar/components/custom-calendar/use-custom-calendar.d.ts +8 -0
- package/es/control/calendar/components/custom-calendar/use-custom-calendar.mjs +20 -1
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.mjs +95 -29
- package/es/control/drbar/drbar.css +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +24 -0
- package/es/control/drtab/drtab.controller.mjs +34 -0
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/drtab/drtab.d.ts +2 -0
- package/es/control/drtab/drtab.mjs +5 -2
- package/es/control/drtab/flow-drtab.css +1 -1
- package/es/control/drtab/flow-drtab.d.ts +17 -2
- package/es/control/drtab/flow-drtab.mjs +189 -11
- package/es/control/drtab/index.d.ts +2 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +55 -4
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +11 -11
- package/es/control/gantt/gantt.mjs +1 -0
- package/es/control/grid/grid/grid-control.util.mjs +36 -14
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +8 -3
- package/es/control/kanban/index.d.ts +4 -1
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.d.ts +4 -1
- package/es/control/kanban/kanban.mjs +51 -15
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.css +1 -1
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.d.ts +2 -1
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.mjs +52 -6
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +1 -1
- package/es/control/list/list.mjs +83 -11
- package/es/control/medit-view-panel/medit-view-panel.css +1 -1
- package/es/control/medit-view-panel/medit-view-panel.mjs +37 -30
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +47 -8
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -0
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +1 -0
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -0
- package/es/editor/upload/upload-editor.controller.d.ts +25 -0
- package/es/editor/upload/upload-editor.controller.mjs +43 -1
- package/es/editor/upload/use/use-iview-upload.mjs +9 -2
- package/es/locale/en/index.d.ts +9 -5
- package/es/locale/en/index.mjs +5 -2
- package/es/locale/zh-CN/index.d.ts +9 -5
- package/es/locale/zh-CN/index.mjs +5 -2
- package/es/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.mjs +3377 -0
- package/es/panel-component/panel-button/panel-button.mjs +1 -0
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view-engine/calendar-view.engine.d.ts +11 -1
- package/es/view-engine/calendar-view.engine.mjs +10 -0
- package/es/view-engine/chart-exp-view.engine.d.ts +6 -6
- package/es/view-engine/chart-exp-view.engine.mjs +6 -15
- package/es/view-engine/gantt-view.engine.d.ts +3 -3
- package/es/view-engine/gantt-view.engine.mjs +3 -46
- package/es/view-engine/login-view.engine.mjs +7 -0
- package/es/view-engine/tab-exp-view.engine.mjs +1 -1
- package/es/view-engine/tab-search-view.engine.mjs +4 -2
- package/es/view-engine/tree-view.engine.d.ts +12 -2
- package/es/view-engine/tree-view.engine.mjs +39 -11
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +23 -6
- package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/lib/control/calendar/components/custom-calendar/use-custom-calendar.cjs +20 -0
- package/lib/control/data-view/data-view.cjs +95 -29
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +5 -2
- package/lib/control/drtab/drtab.controller.cjs +34 -0
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/drtab/flow-drtab.cjs +188 -10
- package/lib/control/drtab/flow-drtab.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +54 -3
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +11 -11
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/lib/control/gantt/gantt.cjs +1 -0
- package/lib/control/grid/grid/grid-control.util.cjs +36 -14
- package/lib/control/grid/grid/grid.cjs +8 -3
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/kanban/kanban.cjs +50 -14
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/kanban/swimlane-kanban/swimlane-kanban.cjs +50 -4
- package/lib/control/kanban/swimlane-kanban/swimlane-kanban.css +1 -1
- package/lib/control/list/list.cjs +83 -11
- package/lib/control/list/list.css +1 -1
- package/lib/control/medit-view-panel/medit-view-panel.cjs +36 -29
- package/lib/control/medit-view-panel/medit-view-panel.css +1 -1
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +47 -8
- package/lib/editor/upload/upload-editor.controller.cjs +43 -1
- package/lib/editor/upload/use/use-iview-upload.cjs +9 -2
- package/lib/locale/en/index.cjs +5 -2
- package/lib/locale/zh-CN/index.cjs +5 -2
- package/lib/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.cjs +3384 -0
- package/lib/panel-component/panel-button/panel-button.cjs +1 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view-engine/calendar-view.engine.cjs +10 -0
- package/lib/view-engine/chart-exp-view.engine.cjs +6 -15
- package/lib/view-engine/gantt-view.engine.cjs +2 -45
- package/lib/view-engine/login-view.engine.cjs +7 -0
- package/lib/view-engine/tab-exp-view.engine.cjs +1 -1
- package/lib/view-engine/tab-search-view.engine.cjs +4 -2
- package/lib/view-engine/tree-view.engine.cjs +39 -11
- package/package.json +9 -7
- package/dist/index-m8q8r8br.js +0 -4
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.14_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.17_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.14_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.17_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -94,22 +94,42 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
|
|
|
94
94
|
}, 100);
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
-
const handleOpenViewClose = (result) => {
|
|
97
|
+
const handleOpenViewClose = async (result) => {
|
|
98
98
|
const selects = [];
|
|
99
99
|
if (result && Array.isArray(result)) {
|
|
100
|
-
result.
|
|
100
|
+
const calcPromises = result.map(async (select) => {
|
|
101
|
+
const item = select;
|
|
102
|
+
if (select.srfnodeid) {
|
|
103
|
+
Object.assign(item, select._deData);
|
|
104
|
+
}
|
|
105
|
+
const dataItems = await c.calcFillDataItems(item);
|
|
106
|
+
const res = {};
|
|
107
|
+
dataItems.forEach((dataItem) => {
|
|
108
|
+
Object.assign(res, {
|
|
109
|
+
[dataItem.id]: dataItem.value
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
return res;
|
|
113
|
+
});
|
|
114
|
+
const dataItemsList = await Promise.all(calcPromises);
|
|
115
|
+
result.forEach((select, _index) => {
|
|
101
116
|
Object.assign(select, {
|
|
102
117
|
[c.keyName]: select[c.keyName] ? select[c.keyName] : select.srfkey,
|
|
103
118
|
[c.textName]: select[c.textName] ? select[c.textName] : select.srfmajortext
|
|
104
119
|
});
|
|
120
|
+
const data = dataItemsList[_index];
|
|
105
121
|
if (c.model.valueType === "OBJECTS") {
|
|
106
|
-
selects.push(
|
|
122
|
+
selects.push({
|
|
123
|
+
...c.handleObjectParams(select),
|
|
124
|
+
...data
|
|
125
|
+
});
|
|
107
126
|
} else if (c.objectIdField) {
|
|
108
127
|
selects.push(select[c.keyName]);
|
|
109
128
|
} else {
|
|
110
129
|
selects.push({
|
|
111
130
|
[c.keyName]: select[c.keyName],
|
|
112
|
-
[c.textName]: select[c.textName]
|
|
131
|
+
[c.textName]: select[c.textName],
|
|
132
|
+
...data
|
|
113
133
|
});
|
|
114
134
|
}
|
|
115
135
|
const index = items.value.findIndex((item) => Object.is(item[c.keyName], select[c.keyName]));
|
|
@@ -144,7 +164,7 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
|
|
|
144
164
|
handleOpenViewClose(res);
|
|
145
165
|
}
|
|
146
166
|
};
|
|
147
|
-
const onSelect = (selects) => {
|
|
167
|
+
const onSelect = async (selects) => {
|
|
148
168
|
setEditable(false);
|
|
149
169
|
if (selects.includes("empty")) {
|
|
150
170
|
resetCurValue();
|
|
@@ -152,7 +172,7 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
|
|
|
152
172
|
}
|
|
153
173
|
const val = [];
|
|
154
174
|
let value = null;
|
|
155
|
-
selects.
|
|
175
|
+
const selections = selects.map((select) => {
|
|
156
176
|
let index = items.value.findIndex((item2) => Object.is(item2[c.keyName], select));
|
|
157
177
|
let item = {};
|
|
158
178
|
if (index >= 0) {
|
|
@@ -163,14 +183,33 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
|
|
|
163
183
|
item = selectItems.value[index];
|
|
164
184
|
}
|
|
165
185
|
}
|
|
186
|
+
return item;
|
|
187
|
+
});
|
|
188
|
+
const calcPromises = selections.map(async (select) => {
|
|
189
|
+
const dataItems = await c.calcFillDataItems(select);
|
|
190
|
+
const res = {};
|
|
191
|
+
dataItems.forEach((dataItem) => {
|
|
192
|
+
Object.assign(res, {
|
|
193
|
+
[dataItem.id]: dataItem.value
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
return res;
|
|
197
|
+
});
|
|
198
|
+
const dataItemsList = await Promise.all(calcPromises);
|
|
199
|
+
selections.forEach((item, index) => {
|
|
200
|
+
const data = dataItemsList[index];
|
|
166
201
|
if (c.model.valueType === "OBJECTS") {
|
|
167
|
-
val.push(
|
|
202
|
+
val.push({
|
|
203
|
+
...c.handleObjectParams(item),
|
|
204
|
+
...data
|
|
205
|
+
});
|
|
168
206
|
} else if (c.objectIdField) {
|
|
169
207
|
val.push(item[c.keyName]);
|
|
170
208
|
} else {
|
|
171
209
|
val.push({
|
|
172
210
|
[c.keyName]: item[c.keyName],
|
|
173
|
-
[c.textName]: item[c.textName]
|
|
211
|
+
[c.textName]: item[c.textName],
|
|
212
|
+
...data
|
|
174
213
|
});
|
|
175
214
|
}
|
|
176
215
|
});
|
|
@@ -11,6 +11,7 @@ import './ibiz-file-upload.scss';
|
|
|
11
11
|
* @editorparams {"name":"uploadparams","parameterType":"string","description":"上传参数,图片或文件上传时,用于计算上传路径"}
|
|
12
12
|
* @editorparams {"name":"exportparams","parameterType":"string","description":"下载参数,图片或文件下载时,用于计算下载路径"}
|
|
13
13
|
* @editorparams {"name":"osscat","parameterType":"string","description":"用于计算上传和下载路径的OSS参数"}
|
|
14
|
+
* @editorparams {"name":"infomap","parameterType":"string","description":"上传文件信息的映射规则字符串,用于将上传成功后返回的文件数据转换为保存数据所需格式。格式为'源键:目标键;源键2:目标键2'。示例:映射规则('filesize:size;fileext:ext'),源对象({filesize:'10000', fileext:'.gif'}),转换结果({size:'10000', ext:'.gif'})"}
|
|
14
15
|
* @editorparams {"name":"readonly","parameterType":"boolean","defaultvalue":false,"description":"设置编辑器是否为只读态"}
|
|
15
16
|
* @ignoreprops autoFocus | overflowMode
|
|
16
17
|
* @ignoreemits blur | focus | enter | infoTextChange
|
|
@@ -13,6 +13,7 @@ import './ibiz-image-cropping.scss';
|
|
|
13
13
|
* @editorparams {"name":"uploadparams","parameterType":"string","description":"上传参数,图片上传时,用于计算上传路径"}
|
|
14
14
|
* @editorparams {"name":"exportparams","parameterType":"string","description":"下载参数,图片下载时,用于计算下载路径"}
|
|
15
15
|
* @editorparams {"name":"osscat","parameterType":"string","description":"用于计算上传和下载路径的OSS参数"}
|
|
16
|
+
* @editorparams {"name":"infomap","parameterType":"string","description":"上传文件信息的映射规则字符串,用于将上传成功后返回的文件数据转换为保存数据所需格式。格式为'源键:目标键;源键2:目标键2'。示例:映射规则('filesize:size;fileext:ext'),源对象({filesize:'10000', fileext:'.gif'}),转换结果({size:'10000', ext:'.gif'})"}
|
|
16
17
|
* @editorparams {"name":"readonly","parameterType":"boolean","defaultvalue":false,"description":"设置编辑器是否为只读态"}
|
|
17
18
|
* @ignoreprops autoFocus | overflowMode
|
|
18
19
|
* @ignoreemits blur | focus | enter | infoTextChange
|
|
@@ -11,6 +11,7 @@ import { UploadEditorController } from '../upload-editor.controller';
|
|
|
11
11
|
* @editorparams {"name":"uploadparams","parameterType":"string","description":"上传参数,图片上传时,用于计算上传路径"}
|
|
12
12
|
* @editorparams {"name":"exportparams","parameterType":"string","description":"下载参数,图片下载时,用于计算下载路径"}
|
|
13
13
|
* @editorparams {"name":"osscat","parameterType":"string","description":"用于计算上传和下载路径的OSS参数"}
|
|
14
|
+
* @editorparams {"name":"infomap","parameterType":"string","description":"上传文件信息的映射规则字符串,用于将上传成功后返回的文件数据转换为保存数据所需格式。格式为'源键:目标键;源键2:目标键2'。示例:映射规则('filesize:size;fileext:ext'),源对象({filesize:'10000', fileext:'.gif'}),转换结果({size:'10000', ext:'.gif'})"}
|
|
14
15
|
* @editorparams {"name":"readonly","parameterType":"boolean","defaultvalue":false,"description":"设置编辑器是否为只读态"}
|
|
15
16
|
* @ignoreprops autoFocus | overflowMode
|
|
16
17
|
* @ignoreemits blur | focus | enter | infoTextChange
|
|
@@ -34,6 +34,10 @@ export declare class UploadEditorController extends EditorController<IFileUpload
|
|
|
34
34
|
* 下载参数
|
|
35
35
|
*/
|
|
36
36
|
exportParams?: IParams;
|
|
37
|
+
/**
|
|
38
|
+
* 上传文件信息的映射规则字符串,格式为"源键:目标键;源键2:目标键2"
|
|
39
|
+
*/
|
|
40
|
+
infoMap: string;
|
|
37
41
|
/**
|
|
38
42
|
* 自适应预览
|
|
39
43
|
* 只读状态下且配置了编辑器参数autoPreview ,加载完图片后自动调整大小达到预览态,且禁用图片hover工具栏
|
|
@@ -43,4 +47,25 @@ export declare class UploadEditorController extends EditorController<IFileUpload
|
|
|
43
47
|
*/
|
|
44
48
|
autoPreview: boolean;
|
|
45
49
|
protected onInit(): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* 根据配置的映射关系转换对象属性
|
|
52
|
+
* 将源对象的指定属性,按照映射规则映射到新对象的目标属性
|
|
53
|
+
*
|
|
54
|
+
* @param {IData} [_data={}] - 源数据对象,包含需要被映射的原始属性
|
|
55
|
+
* @param {string} [infoMap=''] - 映射规则字符串,格式为"源键:目标键;源键2:目标键2"
|
|
56
|
+
* @param {boolean} [isEmit=false] - 是否为抛值时处理,抛值时将源键替换为目标键
|
|
57
|
+
* @returns {IData} 转换后的新对象,仅包含映射规则中定义的属性
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* // isEmit=false
|
|
61
|
+
* // 源对象:{ filesize:'10000', fileext:'.gif', folder:'file' };
|
|
62
|
+
* // 映射规则:'filesize:size;fileext:ext;folder:folder';
|
|
63
|
+
* // 转换结果: { size:'10000', ext:'.gif', folder:'file' }
|
|
64
|
+
*
|
|
65
|
+
* // isEmit=true
|
|
66
|
+
* // 源对象:{ filesize:'10000', fileext:'.gif', folder:'file' };
|
|
67
|
+
* // 映射规则:'filesize:size;fileext:ext;folder:folder';
|
|
68
|
+
* // 转换结果: { size:undefined, ext:undefined, folder:'file' }
|
|
69
|
+
*/
|
|
70
|
+
transformInfoMap: (_data?: IData, infoMap?: string, isEmit?: boolean) => IData;
|
|
46
71
|
}
|
|
@@ -38,6 +38,10 @@ class UploadEditorController extends EditorController {
|
|
|
38
38
|
* 下载参数
|
|
39
39
|
*/
|
|
40
40
|
__publicField(this, "exportParams");
|
|
41
|
+
/**
|
|
42
|
+
* 上传文件信息的映射规则字符串,格式为"源键:目标键;源键2:目标键2"
|
|
43
|
+
*/
|
|
44
|
+
__publicField(this, "infoMap", "");
|
|
41
45
|
/**
|
|
42
46
|
* 自适应预览
|
|
43
47
|
* 只读状态下且配置了编辑器参数autoPreview ,加载完图片后自动调整大小达到预览态,且禁用图片hover工具栏
|
|
@@ -46,10 +50,44 @@ class UploadEditorController extends EditorController {
|
|
|
46
50
|
* @memberof UploadEditorController
|
|
47
51
|
*/
|
|
48
52
|
__publicField(this, "autoPreview", false);
|
|
53
|
+
/**
|
|
54
|
+
* 根据配置的映射关系转换对象属性
|
|
55
|
+
* 将源对象的指定属性,按照映射规则映射到新对象的目标属性
|
|
56
|
+
*
|
|
57
|
+
* @param {IData} [_data={}] - 源数据对象,包含需要被映射的原始属性
|
|
58
|
+
* @param {string} [infoMap=''] - 映射规则字符串,格式为"源键:目标键;源键2:目标键2"
|
|
59
|
+
* @param {boolean} [isEmit=false] - 是否为抛值时处理,抛值时将源键替换为目标键
|
|
60
|
+
* @returns {IData} 转换后的新对象,仅包含映射规则中定义的属性
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* // isEmit=false
|
|
64
|
+
* // 源对象:{ filesize:'10000', fileext:'.gif', folder:'file' };
|
|
65
|
+
* // 映射规则:'filesize:size;fileext:ext;folder:folder';
|
|
66
|
+
* // 转换结果: { size:'10000', ext:'.gif', folder:'file' }
|
|
67
|
+
*
|
|
68
|
+
* // isEmit=true
|
|
69
|
+
* // 源对象:{ filesize:'10000', fileext:'.gif', folder:'file' };
|
|
70
|
+
* // 映射规则:'filesize:size;fileext:ext;folder:folder';
|
|
71
|
+
* // 转换结果: { size:undefined, ext:undefined, folder:'file' }
|
|
72
|
+
*/
|
|
73
|
+
__publicField(this, "transformInfoMap", (_data = {}, infoMap = "", isEmit = false) => {
|
|
74
|
+
const result = {};
|
|
75
|
+
const mappings = infoMap.split(";");
|
|
76
|
+
mappings.forEach((mapping) => {
|
|
77
|
+
let [sourceKey, targetKey] = mapping.split(":");
|
|
78
|
+
if (isEmit)
|
|
79
|
+
sourceKey = targetKey;
|
|
80
|
+
if (sourceKey && targetKey) {
|
|
81
|
+
Object.assign(result, { [targetKey]: _data[sourceKey] });
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
return result;
|
|
85
|
+
});
|
|
49
86
|
}
|
|
50
87
|
async onInit() {
|
|
51
88
|
var _a;
|
|
52
89
|
await super.onInit();
|
|
90
|
+
this.infoMap = ibiz.config.uploadEditor.infoMap;
|
|
53
91
|
if ((_a = this.model.editorType) == null ? void 0 : _a.includes("PICTURE")) {
|
|
54
92
|
this.accept = "image/*";
|
|
55
93
|
}
|
|
@@ -74,7 +112,8 @@ class UploadEditorController extends EditorController {
|
|
|
74
112
|
isdrag,
|
|
75
113
|
uploadparams,
|
|
76
114
|
exportparams,
|
|
77
|
-
autopreview
|
|
115
|
+
autopreview,
|
|
116
|
+
infomap
|
|
78
117
|
} = this.editorParams;
|
|
79
118
|
if (isDrag) {
|
|
80
119
|
this.isDrag = Boolean(isDrag);
|
|
@@ -97,6 +136,9 @@ class UploadEditorController extends EditorController {
|
|
|
97
136
|
if (size) {
|
|
98
137
|
this.size = Number(size);
|
|
99
138
|
}
|
|
139
|
+
if (infomap) {
|
|
140
|
+
this.infoMap = infomap;
|
|
141
|
+
}
|
|
100
142
|
if (uploadParams) {
|
|
101
143
|
try {
|
|
102
144
|
this.uploadParams = JSON.parse(uploadParams);
|
|
@@ -111,7 +111,13 @@ function useIViewUpload(props, valueChange, c) {
|
|
|
111
111
|
);
|
|
112
112
|
const emitValue = () => {
|
|
113
113
|
const _files = [...files.value, ...uploadCache.cacheFiles];
|
|
114
|
-
const value = _files.length > 0 ? JSON.stringify(
|
|
114
|
+
const value = _files.length > 0 ? JSON.stringify(
|
|
115
|
+
_files.map((file) => ({
|
|
116
|
+
name: file.name,
|
|
117
|
+
id: file.id,
|
|
118
|
+
...c.transformInfoMap(file, c.infoMap, true)
|
|
119
|
+
}))
|
|
120
|
+
) : null;
|
|
115
121
|
uploadCache.cacheFiles = [];
|
|
116
122
|
valueChange(value);
|
|
117
123
|
};
|
|
@@ -136,7 +142,8 @@ function useIViewUpload(props, valueChange, c) {
|
|
|
136
142
|
}
|
|
137
143
|
uploadCache.cacheFiles.push({
|
|
138
144
|
name: response.filename,
|
|
139
|
-
id: response.fileid
|
|
145
|
+
id: response.fileid,
|
|
146
|
+
...c.transformInfoMap(response, c.infoMap)
|
|
140
147
|
});
|
|
141
148
|
if (response.name.split(".").pop() === "svg") {
|
|
142
149
|
const blob = svgBlob.get(response.name);
|
package/es/locale/en/index.d.ts
CHANGED
|
@@ -137,6 +137,12 @@ declare const _default: {
|
|
|
137
137
|
computeMoveMetaError: string;
|
|
138
138
|
unclassified: string;
|
|
139
139
|
today: string;
|
|
140
|
+
adjustmentsGroup: string;
|
|
141
|
+
noAllowReorder: string;
|
|
142
|
+
sortingProperties: string;
|
|
143
|
+
invalidSortType: string;
|
|
144
|
+
logicOpendata: string;
|
|
145
|
+
logicNewdata: string;
|
|
140
146
|
};
|
|
141
147
|
editor: {
|
|
142
148
|
editorNoConfigured: string;
|
|
@@ -158,7 +164,6 @@ declare const _default: {
|
|
|
158
164
|
noConfigured: string;
|
|
159
165
|
};
|
|
160
166
|
calendar: {
|
|
161
|
-
missingViewLogic: string;
|
|
162
167
|
noFoundModel: string;
|
|
163
168
|
};
|
|
164
169
|
chart: {
|
|
@@ -240,12 +245,8 @@ declare const _default: {
|
|
|
240
245
|
interfaceBehavior: string;
|
|
241
246
|
};
|
|
242
247
|
kanban: {
|
|
243
|
-
sortingProperties: string;
|
|
244
248
|
sortDirection: string;
|
|
245
249
|
groupedOn: string;
|
|
246
|
-
adjustmentsGroup: string;
|
|
247
|
-
noAllowReorder: string;
|
|
248
|
-
invalidSortType: string;
|
|
249
250
|
};
|
|
250
251
|
meditViewPanel: {
|
|
251
252
|
DraftNew: string;
|
|
@@ -1050,6 +1051,7 @@ declare const _default: {
|
|
|
1050
1051
|
today: string;
|
|
1051
1052
|
tomorrow: string;
|
|
1052
1053
|
nextweek: string;
|
|
1054
|
+
selectdate: string;
|
|
1053
1055
|
};
|
|
1054
1056
|
calendarmonth: {
|
|
1055
1057
|
lastmonth: string;
|
|
@@ -1088,6 +1090,8 @@ declare const _default: {
|
|
|
1088
1090
|
saturday: string;
|
|
1089
1091
|
sunday: string;
|
|
1090
1092
|
};
|
|
1093
|
+
selectWeekRange: string;
|
|
1094
|
+
weekFormat: string;
|
|
1091
1095
|
};
|
|
1092
1096
|
};
|
|
1093
1097
|
chart: {
|
package/es/locale/en/index.mjs
CHANGED
|
@@ -313,7 +313,8 @@ var index = {
|
|
|
313
313
|
tip: "All Day",
|
|
314
314
|
today: "Today",
|
|
315
315
|
tomorrow: "To Morrow",
|
|
316
|
-
nextweek: "Next Week"
|
|
316
|
+
nextweek: "Next Week",
|
|
317
|
+
selectdate: "Select Date"
|
|
317
318
|
},
|
|
318
319
|
calendarmonth: {
|
|
319
320
|
lastmonth: "Last Month",
|
|
@@ -351,7 +352,9 @@ var index = {
|
|
|
351
352
|
friday: "Fri",
|
|
352
353
|
saturday: "Sat",
|
|
353
354
|
sunday: "Sun"
|
|
354
|
-
}
|
|
355
|
+
},
|
|
356
|
+
selectWeekRange: "Select week range",
|
|
357
|
+
weekFormat: "ww [Week] of YYYY"
|
|
355
358
|
}
|
|
356
359
|
},
|
|
357
360
|
chart: {
|
|
@@ -137,6 +137,12 @@ declare const _default: {
|
|
|
137
137
|
computeMoveMetaError: string;
|
|
138
138
|
unclassified: string;
|
|
139
139
|
today: string;
|
|
140
|
+
adjustmentsGroup: string;
|
|
141
|
+
noAllowReorder: string;
|
|
142
|
+
sortingProperties: string;
|
|
143
|
+
invalidSortType: string;
|
|
144
|
+
logicOpendata: string;
|
|
145
|
+
logicNewdata: string;
|
|
140
146
|
};
|
|
141
147
|
editor: {
|
|
142
148
|
editorNoConfigured: string;
|
|
@@ -158,7 +164,6 @@ declare const _default: {
|
|
|
158
164
|
noConfigured: string;
|
|
159
165
|
};
|
|
160
166
|
calendar: {
|
|
161
|
-
missingViewLogic: string;
|
|
162
167
|
noFoundModel: string;
|
|
163
168
|
};
|
|
164
169
|
chart: {
|
|
@@ -240,12 +245,8 @@ declare const _default: {
|
|
|
240
245
|
interfaceBehavior: string;
|
|
241
246
|
};
|
|
242
247
|
kanban: {
|
|
243
|
-
sortingProperties: string;
|
|
244
248
|
sortDirection: string;
|
|
245
249
|
groupedOn: string;
|
|
246
|
-
adjustmentsGroup: string;
|
|
247
|
-
noAllowReorder: string;
|
|
248
|
-
invalidSortType: string;
|
|
249
250
|
};
|
|
250
251
|
meditViewPanel: {
|
|
251
252
|
DraftNew: string;
|
|
@@ -1050,6 +1051,7 @@ declare const _default: {
|
|
|
1050
1051
|
tip: string;
|
|
1051
1052
|
tomorrow: string;
|
|
1052
1053
|
nextweek: string;
|
|
1054
|
+
selectdate: string;
|
|
1053
1055
|
};
|
|
1054
1056
|
calendarmonth: {
|
|
1055
1057
|
weeks: {
|
|
@@ -1083,6 +1085,8 @@ declare const _default: {
|
|
|
1083
1085
|
saturday: string;
|
|
1084
1086
|
sunday: string;
|
|
1085
1087
|
};
|
|
1088
|
+
selectWeekRange: string;
|
|
1089
|
+
weekFormat: string;
|
|
1086
1090
|
};
|
|
1087
1091
|
};
|
|
1088
1092
|
chart: {
|
|
@@ -314,7 +314,8 @@ var index = {
|
|
|
314
314
|
},
|
|
315
315
|
tip: "\u5168\u5929",
|
|
316
316
|
tomorrow: "\u660E\u5929",
|
|
317
|
-
nextweek: "\u4E0B\u5468"
|
|
317
|
+
nextweek: "\u4E0B\u5468",
|
|
318
|
+
selectdate: "\u9009\u62E9\u65E5\u671F"
|
|
318
319
|
},
|
|
319
320
|
calendarmonth: {
|
|
320
321
|
weeks: {
|
|
@@ -347,7 +348,9 @@ var index = {
|
|
|
347
348
|
friday: "\u5468\u4E94",
|
|
348
349
|
saturday: "\u5468\u516D",
|
|
349
350
|
sunday: "\u5468\u65E5"
|
|
350
|
-
}
|
|
351
|
+
},
|
|
352
|
+
selectWeekRange: "\u9009\u62E9\u5468\u8303\u56F4",
|
|
353
|
+
weekFormat: "YYYY\u5E74\u7B2Cww\u5468"
|
|
351
354
|
}
|
|
352
355
|
},
|
|
353
356
|
chart: {
|