@ibiz-template/vue3-components 0.7.41-alpha.113 → 0.7.41-alpha.115
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-BLBroBhu.js → index-B3O6yu1f.js} +1 -1
- package/dist/index-B4MZRULw.js +339 -0
- package/dist/{index-C-9vEACb.js → index-qO4rCmKY.js} +1 -1
- package/dist/{index.es-BU8Fy5we.js → index.es-D9o2oz4Y.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-9zdglekK.js → wang-editor-4yBz8Mkf.js} +1 -1
- package/dist/{xlsx-util-DrUAhpzt.js → xlsx-util-3sCwAhs0.js} +1 -1
- package/es/common/button-list/button-list.mjs +6 -1
- package/es/common/data-import/data-import.mjs +14 -8
- package/es/control/calendar/components/calendar-user2/calendar-user2.mjs +2 -2
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +1 -2
- package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.mjs +2 -0
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.mjs +73 -13
- package/es/control/drtab/drtab.mjs +1 -1
- package/es/control/drtab/flow-drtab.css +1 -1
- package/es/control/drtab/flow-drtab.mjs +28 -18
- package/es/control/exp-bar/render-util.mjs +2 -2
- package/es/control/medit-view-panel/medit-view-panel.mjs +1 -1
- package/es/control/toolbar/toolbar.mjs +3 -0
- package/es/control/tree/tree.mjs +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +1 -0
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +2 -1
- package/es/locale/en/index.mjs +1 -0
- package/es/locale/zh-CN/index.mjs +1 -0
- package/es/panel-component/global-search/global-search.mjs +2 -1
- package/es/panel-component/nav-tabs/nav-tabs.mjs +12 -3
- package/es/panel-component/short-cut/short-cut.mjs +2 -1
- package/es/panel-component/user-message/user-message.mjs +1 -0
- package/es/util/ai-chat-util/ai-chat-util.mjs +18 -2
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/lib/common/button-list/button-list.cjs +6 -1
- package/lib/common/data-import/data-import.cjs +14 -8
- package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +2 -2
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +1 -2
- package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.cjs +2 -0
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +1 -1
- package/lib/control/drtab/drtab.controller.cjs +73 -13
- package/lib/control/drtab/flow-drtab.cjs +28 -18
- package/lib/control/drtab/flow-drtab.css +1 -1
- package/lib/control/exp-bar/render-util.cjs +2 -2
- package/lib/control/medit-view-panel/medit-view-panel.cjs +1 -1
- package/lib/control/toolbar/toolbar.cjs +3 -0
- package/lib/control/tree/tree.cjs +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +1 -0
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +2 -1
- package/lib/locale/en/index.cjs +1 -0
- package/lib/locale/zh-CN/index.cjs +1 -0
- package/lib/panel-component/global-search/global-search.cjs +2 -1
- package/lib/panel-component/nav-tabs/nav-tabs.cjs +12 -3
- package/lib/panel-component/short-cut/short-cut.cjs +2 -1
- package/lib/panel-component/user-message/user-message.cjs +1 -0
- package/lib/util/ai-chat-util/ai-chat-util.cjs +18 -2
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/package.json +6 -6
- package/src/common/button-list/button-list.tsx +4 -1
- package/src/common/data-import/data-import.tsx +20 -9
- package/src/control/calendar/components/calendar-user2/calendar-user2.tsx +2 -2
- package/src/control/calendar/components/custom-calendar/custom-calendar.tsx +1 -1
- package/src/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.tsx +2 -0
- package/src/control/drtab/drtab.controller.ts +86 -20
- package/src/control/drtab/drtab.tsx +1 -1
- package/src/control/drtab/flow-drtab.scss +21 -0
- package/src/control/drtab/flow-drtab.tsx +40 -16
- package/src/control/exp-bar/render-util.tsx +3 -3
- package/src/control/medit-view-panel/medit-view-panel.tsx +1 -1
- package/src/control/toolbar/toolbar.tsx +1 -0
- package/src/control/tree/tree.tsx +1 -1
- package/src/control/tree-grid-ex/tree-grid-ex.tsx +1 -0
- package/src/editor/date-picker/ibiz-date-picker/ibiz-date-picker.tsx +1 -0
- package/src/locale/en/index.ts +1 -0
- package/src/locale/zh-CN/index.ts +1 -0
- package/src/panel-component/global-search/global-search.tsx +1 -0
- package/src/panel-component/nav-tabs/nav-tabs.tsx +9 -0
- package/src/panel-component/short-cut/short-cut.tsx +1 -0
- package/src/panel-component/user-message/user-message.tsx +1 -0
- package/src/util/ai-chat-util/ai-chat-util.ts +20 -2
- package/dist/index-CkG9L_La.js +0 -339
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.119_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_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.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.119_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -23,7 +23,7 @@ import './flow-drtab.scss';
|
|
|
23
23
|
export const FlowDrtab = defineComponent({
|
|
24
24
|
name: 'FlowDrtab',
|
|
25
25
|
props: {
|
|
26
|
-
|
|
26
|
+
pagesState: {
|
|
27
27
|
type: Array as PropType<IData[]>,
|
|
28
28
|
default: () => [],
|
|
29
29
|
},
|
|
@@ -93,7 +93,7 @@ export const FlowDrtab = defineComponent({
|
|
|
93
93
|
|
|
94
94
|
// 所有可视视图
|
|
95
95
|
const allVisibleViews = computed(() => {
|
|
96
|
-
return props.
|
|
96
|
+
return props.pagesState.filter(item => {
|
|
97
97
|
const target = props.drtabpages.find(page => {
|
|
98
98
|
return page.id === item.tag;
|
|
99
99
|
});
|
|
@@ -103,8 +103,8 @@ export const FlowDrtab = defineComponent({
|
|
|
103
103
|
|
|
104
104
|
// 所有导航项元素id
|
|
105
105
|
const allNavTags = computed(() => {
|
|
106
|
-
if (props.
|
|
107
|
-
return props.
|
|
106
|
+
if (props.pagesState) {
|
|
107
|
+
return props.pagesState.map(item => {
|
|
108
108
|
const target = props.drtabpages.find(page => {
|
|
109
109
|
return page.id === item.tag;
|
|
110
110
|
});
|
|
@@ -222,7 +222,7 @@ export const FlowDrtab = defineComponent({
|
|
|
222
222
|
});
|
|
223
223
|
completedViews.value += 1;
|
|
224
224
|
if (completedViews.value === allVisibleViews.value && !navtag.value) {
|
|
225
|
-
navtag.value = `${target?.appViewId}_${props.
|
|
225
|
+
navtag.value = `${target?.appViewId}_${props.pagesState[0].tag}`;
|
|
226
226
|
}
|
|
227
227
|
const el = document.getElementById(`${target?.appViewId}_${item.tag}`);
|
|
228
228
|
if (el) {
|
|
@@ -339,7 +339,7 @@ export const FlowDrtab = defineComponent({
|
|
|
339
339
|
navbarRef.value = el;
|
|
340
340
|
}}
|
|
341
341
|
>
|
|
342
|
-
{props.
|
|
342
|
+
{props.pagesState.map(item => {
|
|
343
343
|
const target = props.drtabpages.find(page => {
|
|
344
344
|
return page.id === item.tag;
|
|
345
345
|
});
|
|
@@ -378,20 +378,30 @@ export const FlowDrtab = defineComponent({
|
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
380
|
|
|
381
|
+
/**
|
|
382
|
+
* @description 折叠改变
|
|
383
|
+
* @param {IData} item
|
|
384
|
+
*/
|
|
385
|
+
const onCollapseChange = (item: IData): void => {
|
|
386
|
+
if (!c.enableCollapse) return;
|
|
387
|
+
c.onCollapseChange(item.tag);
|
|
388
|
+
};
|
|
389
|
+
|
|
381
390
|
return {
|
|
382
391
|
c,
|
|
383
392
|
ns,
|
|
384
393
|
uuid,
|
|
385
394
|
navbarpos,
|
|
386
|
-
navBarWidth,
|
|
387
395
|
calcStyle,
|
|
396
|
+
navBarWidth,
|
|
388
397
|
handleScroll,
|
|
389
398
|
onViewMounted,
|
|
390
399
|
renderAnchorBar,
|
|
400
|
+
onCollapseChange,
|
|
391
401
|
};
|
|
392
402
|
},
|
|
393
403
|
render() {
|
|
394
|
-
const tabs = this.
|
|
404
|
+
const tabs = this.pagesState.map((item: IData) => {
|
|
395
405
|
const counterNum = item.counterId
|
|
396
406
|
? this.counterData[item.counterId]
|
|
397
407
|
: undefined;
|
|
@@ -399,21 +409,35 @@ export const FlowDrtab = defineComponent({
|
|
|
399
409
|
const target = this.drtabpages.find(page => {
|
|
400
410
|
return page.id === item.tag;
|
|
401
411
|
});
|
|
402
|
-
if (!target || item.hidden)
|
|
403
|
-
return null;
|
|
404
|
-
}
|
|
412
|
+
if (!target || item.hidden) return null;
|
|
405
413
|
return (
|
|
406
414
|
<div
|
|
407
415
|
id={`${target.appViewId}_${item.tag}`}
|
|
408
416
|
style={this.semanticStyle('item', { item })}
|
|
409
417
|
class={[
|
|
410
|
-
this.ns.e('tab-item'),
|
|
411
418
|
this.ns.e('item'),
|
|
419
|
+
this.ns.e('tab-item'),
|
|
412
420
|
this.semanticClass('item', { item }),
|
|
421
|
+
this.ns.is('enable-collapse', this.c.enableCollapse),
|
|
422
|
+
this.ns.is(
|
|
423
|
+
'collapse',
|
|
424
|
+
this.c.enableCollapse &&
|
|
425
|
+
!this.c.state.expandedKeys.includes(item.tag),
|
|
426
|
+
),
|
|
413
427
|
]}
|
|
414
428
|
>
|
|
415
429
|
{this.showHeader && (
|
|
416
|
-
<div
|
|
430
|
+
<div
|
|
431
|
+
class={this.ns.em('tab-item', 'label')}
|
|
432
|
+
onClick={() => this.onCollapseChange(item)}
|
|
433
|
+
>
|
|
434
|
+
{this.c.enableCollapse && (
|
|
435
|
+
<div
|
|
436
|
+
class={[this.ns.e('icon'), this.ns.em('icon', 'collapse')]}
|
|
437
|
+
>
|
|
438
|
+
<ion-icon name='chevron-down-outline'></ion-icon>
|
|
439
|
+
</div>
|
|
440
|
+
)}
|
|
417
441
|
{item.sysImage && (
|
|
418
442
|
<iBizIcon
|
|
419
443
|
class={[
|
|
@@ -457,8 +481,8 @@ export const FlowDrtab = defineComponent({
|
|
|
457
481
|
)}
|
|
458
482
|
<div
|
|
459
483
|
class={[
|
|
460
|
-
this.ns.em('tab-item', 'tab-view'),
|
|
461
484
|
this.ns.em('item', 'content'),
|
|
485
|
+
this.ns.em('tab-item', 'tab-view'),
|
|
462
486
|
this.semanticClass('item.content', { item }),
|
|
463
487
|
]}
|
|
464
488
|
style={{
|
|
@@ -467,8 +491,8 @@ export const FlowDrtab = defineComponent({
|
|
|
467
491
|
}}
|
|
468
492
|
>
|
|
469
493
|
{h(viewShell, {
|
|
470
|
-
context: this.context,
|
|
471
|
-
params: this.params,
|
|
494
|
+
context: item.context || this.context,
|
|
495
|
+
params: item.params || this.params,
|
|
472
496
|
viewId: target.appViewId,
|
|
473
497
|
onMounted: () => this.onViewMounted(item),
|
|
474
498
|
})}
|
|
@@ -61,11 +61,11 @@ export function useExpBarRender(
|
|
|
61
61
|
>
|
|
62
62
|
{model.sysImage && (
|
|
63
63
|
<iBizIcon
|
|
64
|
-
style={semanticStyle('title.icon')}
|
|
65
64
|
class={[
|
|
66
65
|
expBarNs.be('caption', 'icon'),
|
|
67
|
-
|
|
66
|
+
semanticClass('title.icon'),
|
|
68
67
|
]}
|
|
68
|
+
style={semanticStyle('title.icon')}
|
|
69
69
|
icon={model.sysImage}
|
|
70
70
|
></iBizIcon>
|
|
71
71
|
)}
|
|
@@ -74,7 +74,7 @@ export function useExpBarRender(
|
|
|
74
74
|
class={[
|
|
75
75
|
ns.be('caption', 'text'),
|
|
76
76
|
expBarNs.be('caption', 'text'),
|
|
77
|
-
|
|
77
|
+
semanticClass('title.text'),
|
|
78
78
|
]}
|
|
79
79
|
style={semanticStyle('title.text')}
|
|
80
80
|
>
|
|
@@ -178,7 +178,7 @@ export const MEditViewPanelControl = defineComponent({
|
|
|
178
178
|
this.ns.be('tab-label', 'remove'),
|
|
179
179
|
this.semanticClass('tab.remove', { item }),
|
|
180
180
|
]}
|
|
181
|
-
style={this.
|
|
181
|
+
style={this.semanticStyle('tab.remove', { item })}
|
|
182
182
|
name='close-outline'
|
|
183
183
|
onClick={(event: MouseEvent) =>
|
|
184
184
|
this.handleTabDelete(item, event)
|
|
@@ -380,6 +380,7 @@ export const ToolbarControl = defineComponent({
|
|
|
380
380
|
ns2.bm('dropdown-popper', calcCssName(item)),
|
|
381
381
|
semanticClass('popup', { item }),
|
|
382
382
|
]}
|
|
383
|
+
popper-style={semanticStyle('popup', { item })}
|
|
383
384
|
placement='right-start'
|
|
384
385
|
teleported={false}
|
|
385
386
|
popper-options={{
|
|
@@ -1230,7 +1230,7 @@ export const TreeControl = defineComponent({
|
|
|
1230
1230
|
ref={'treeviewRef'}
|
|
1231
1231
|
controller={this.c}
|
|
1232
1232
|
class={this.semanticClass('root')}
|
|
1233
|
-
style={this.
|
|
1233
|
+
style={this.semanticStyle('root')}
|
|
1234
1234
|
v-loading={this.c.state.isLoading}
|
|
1235
1235
|
element-loading-text={this.c.state.loadingText}
|
|
1236
1236
|
>
|
|
@@ -377,6 +377,7 @@ export const TreeGridExControl = defineComponent({
|
|
|
377
377
|
ref={'tableRef'}
|
|
378
378
|
key={this.tableRefreshKey}
|
|
379
379
|
class={[this.ns.e('table'), this.semanticClass('content')]}
|
|
380
|
+
style={this.semanticStyle('content')}
|
|
380
381
|
border
|
|
381
382
|
row-key='id'
|
|
382
383
|
data={this.elTableData}
|
package/src/locale/en/index.ts
CHANGED
|
@@ -587,6 +587,7 @@ export default {
|
|
|
587
587
|
importResults: 'Import Results',
|
|
588
588
|
downloadTemplate: 'Download the import template and fill in as required:',
|
|
589
589
|
templateFile: 'Data import template file',
|
|
590
|
+
template: 'Template',
|
|
590
591
|
continue: 'Continue importing',
|
|
591
592
|
},
|
|
592
593
|
dataImport2: {
|
|
@@ -352,6 +352,7 @@ export const GlobalSearch = defineComponent({
|
|
|
352
352
|
visible={this.visible}
|
|
353
353
|
placement='bottom-start'
|
|
354
354
|
popper-class={[this.ns.e('popper'), this.semanticClass('popup')]}
|
|
355
|
+
popper-style={this.semanticStyle('popup')}
|
|
355
356
|
>
|
|
356
357
|
{{
|
|
357
358
|
reference: () => {
|
|
@@ -321,6 +321,9 @@ export const NavTabs = defineComponent({
|
|
|
321
321
|
item: msg,
|
|
322
322
|
}),
|
|
323
323
|
]}
|
|
324
|
+
style={this.semanticStyle('item.captioninfo', {
|
|
325
|
+
item: msg,
|
|
326
|
+
})}
|
|
324
327
|
>
|
|
325
328
|
{msg.caption}
|
|
326
329
|
</span>
|
|
@@ -332,6 +335,9 @@ export const NavTabs = defineComponent({
|
|
|
332
335
|
item: msg,
|
|
333
336
|
}),
|
|
334
337
|
]}
|
|
338
|
+
style={this.semanticStyle('item.captiondivider', {
|
|
339
|
+
item: msg,
|
|
340
|
+
})}
|
|
335
341
|
>
|
|
336
342
|
-
|
|
337
343
|
</span>
|
|
@@ -344,6 +350,9 @@ export const NavTabs = defineComponent({
|
|
|
344
350
|
item: msg,
|
|
345
351
|
}),
|
|
346
352
|
]}
|
|
353
|
+
style={this.semanticStyle('item.datainfo', {
|
|
354
|
+
item: msg,
|
|
355
|
+
})}
|
|
347
356
|
>
|
|
348
357
|
{msg.dataInfo}
|
|
349
358
|
</span>
|
|
@@ -133,6 +133,7 @@ export const UserMessage = defineComponent({
|
|
|
133
133
|
<el-popover
|
|
134
134
|
ref='popoverRef'
|
|
135
135
|
popper-class={[this.ns.b('popover'), this.semanticClass('popup')]}
|
|
136
|
+
popper-style={this.semanticStyle('popup')}
|
|
136
137
|
placement='bottom'
|
|
137
138
|
trigger='click'
|
|
138
139
|
v-model:visible={this.showPopover}
|
|
@@ -182,7 +182,10 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
182
182
|
)
|
|
183
183
|
: undefined;
|
|
184
184
|
// 编辑器参数autoquestion,自动提问
|
|
185
|
-
chatOptions.autoQuestion =
|
|
185
|
+
chatOptions.autoQuestion = ibiz.config.common.aiAutoQuestion;
|
|
186
|
+
if (editorParams.autoquestion) {
|
|
187
|
+
chatOptions.autoQuestion = editorParams.autoquestion !== 'false';
|
|
188
|
+
}
|
|
186
189
|
// 编辑器参数autofill,自动填充
|
|
187
190
|
chatOptions.autoFill = editorParams.autofill === 'true';
|
|
188
191
|
// 编辑器参数srfaiappendresource,附加资源数据
|
|
@@ -678,6 +681,12 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
678
681
|
);
|
|
679
682
|
},
|
|
680
683
|
};
|
|
684
|
+
// 文件最大上传大小限制
|
|
685
|
+
let uploadMaxSize = ibiz.config.common.aiUploadMaxSize;
|
|
686
|
+
if (editorParams.srfuploadmaxsize) {
|
|
687
|
+
uploadMaxSize = Number(editorParams.srfuploadmaxsize);
|
|
688
|
+
}
|
|
689
|
+
chatOptions.uploader.maxSize = uploadMaxSize;
|
|
681
690
|
// 扩展工具栏点击
|
|
682
691
|
chatOptions.extendToolbarClick = async (
|
|
683
692
|
event: MouseEvent,
|
|
@@ -892,10 +901,12 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
892
901
|
delete params.srfaiappendcurcontent;
|
|
893
902
|
}
|
|
894
903
|
// 自动提问
|
|
904
|
+
let autoQuestion = ibiz.config.common.aiAutoQuestion;
|
|
895
905
|
if (params.hasOwnProperty('autoquestion')) {
|
|
896
|
-
|
|
906
|
+
autoQuestion = params.autoquestion !== 'false';
|
|
897
907
|
delete params.autoquestion;
|
|
898
908
|
}
|
|
909
|
+
chatOptions.autoQuestion = autoQuestion;
|
|
899
910
|
// 附加资源数据
|
|
900
911
|
if (params.hasOwnProperty('srfaiappendresource')) {
|
|
901
912
|
chatOptions.appendCurResource = StringUtil.fill(
|
|
@@ -1401,6 +1412,13 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
1401
1412
|
);
|
|
1402
1413
|
},
|
|
1403
1414
|
};
|
|
1415
|
+
// 文件最大上传大小限制
|
|
1416
|
+
let uploadMaxSize = ibiz.config.common.aiUploadMaxSize;
|
|
1417
|
+
if (params.hasOwnProperty('srfuploadmaxsize')) {
|
|
1418
|
+
uploadMaxSize = Number(params.srfuploadmaxsize);
|
|
1419
|
+
delete params.srfuploadmaxsize;
|
|
1420
|
+
}
|
|
1421
|
+
chatOptions.uploader.maxSize = uploadMaxSize;
|
|
1404
1422
|
// 扩展工具栏点击
|
|
1405
1423
|
chatOptions.extendToolbarClick = async (
|
|
1406
1424
|
event: MouseEvent,
|