@ibiz-template/vue3-components 0.7.41-alpha.157 → 0.7.41-alpha.159
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-DdtHzmUN.js → index-BeC3JyMI.js} +26 -26
- package/dist/{index.es-cLtMr15w.js → index.es-C7LvrFRW.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-DFNtwyjK.js → wang-editor-Ka4vfTnr.js} +1 -1
- package/dist/{xlsx-util-Ciny_N7Q.js → xlsx-util-sVgVo4ng.js} +1 -1
- package/es/util/ai-chat-util/ai-chat-util.mjs +12 -4
- package/lib/util/ai-chat-util/ai-chat-util.cjs +12 -4
- package/package.json +2 -2
- package/src/util/ai-chat-util/ai-chat-util.ts +22 -8
|
@@ -419,6 +419,7 @@ class AIChatUtil {
|
|
|
419
419
|
status: "sent"
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
|
+
aiChat.setActiveAsyncacitonId("");
|
|
422
423
|
} else if (msg.actionstate === 40) {
|
|
423
424
|
aiChat.replaceMessage({
|
|
424
425
|
messageid: id,
|
|
@@ -428,6 +429,7 @@ class AIChatUtil {
|
|
|
428
429
|
errorText: msg.actionresult,
|
|
429
430
|
status: "failed"
|
|
430
431
|
});
|
|
432
|
+
aiChat.setActiveAsyncacitonId("");
|
|
431
433
|
}
|
|
432
434
|
},
|
|
433
435
|
abortController,
|
|
@@ -459,7 +461,6 @@ class AIChatUtil {
|
|
|
459
461
|
} finally {
|
|
460
462
|
aiChat.removeWaitingMessage(id);
|
|
461
463
|
aiChat.completeMessage(id, true);
|
|
462
|
-
aiChat.setActiveAsyncacitonId("");
|
|
463
464
|
return true;
|
|
464
465
|
}
|
|
465
466
|
};
|
|
@@ -552,6 +553,7 @@ class AIChatUtil {
|
|
|
552
553
|
status: "sent"
|
|
553
554
|
});
|
|
554
555
|
}
|
|
556
|
+
aiChat.setActiveAsyncacitonId("");
|
|
555
557
|
} else if (msg.actionstate === 40) {
|
|
556
558
|
aiChat.replaceMessage({
|
|
557
559
|
messageid: id,
|
|
@@ -561,6 +563,7 @@ class AIChatUtil {
|
|
|
561
563
|
errorText: msg.actionresult,
|
|
562
564
|
status: "failed"
|
|
563
565
|
});
|
|
566
|
+
aiChat.setActiveAsyncacitonId("");
|
|
564
567
|
}
|
|
565
568
|
},
|
|
566
569
|
abortController,
|
|
@@ -589,12 +592,13 @@ class AIChatUtil {
|
|
|
589
592
|
false
|
|
590
593
|
);
|
|
591
594
|
}
|
|
595
|
+
} else {
|
|
596
|
+
aiChat.setActiveAsyncacitonId("");
|
|
592
597
|
}
|
|
593
598
|
abortController == null ? void 0 : abortController.abort();
|
|
594
599
|
} finally {
|
|
595
600
|
aiChat.isLoading.value = false;
|
|
596
601
|
aiChat.completeMessage(id, true);
|
|
597
|
-
aiChat.setActiveAsyncacitonId("");
|
|
598
602
|
return true;
|
|
599
603
|
}
|
|
600
604
|
}
|
|
@@ -1252,6 +1256,7 @@ class AIChatUtil {
|
|
|
1252
1256
|
status: "sent"
|
|
1253
1257
|
});
|
|
1254
1258
|
}
|
|
1259
|
+
aiChat.setActiveAsyncacitonId("");
|
|
1255
1260
|
} else if (msg.actionstate === 40) {
|
|
1256
1261
|
aiChat.replaceMessage({
|
|
1257
1262
|
messageid: id,
|
|
@@ -1261,6 +1266,7 @@ class AIChatUtil {
|
|
|
1261
1266
|
errorText: msg.actionresult,
|
|
1262
1267
|
status: "failed"
|
|
1263
1268
|
});
|
|
1269
|
+
aiChat.setActiveAsyncacitonId("");
|
|
1264
1270
|
}
|
|
1265
1271
|
},
|
|
1266
1272
|
abortController,
|
|
@@ -1291,7 +1297,6 @@ class AIChatUtil {
|
|
|
1291
1297
|
abortController == null ? void 0 : abortController.abort();
|
|
1292
1298
|
} finally {
|
|
1293
1299
|
aiChat.removeWaitingMessage(id);
|
|
1294
|
-
aiChat.setActiveAsyncacitonId("");
|
|
1295
1300
|
aiChat.completeMessage(id, true);
|
|
1296
1301
|
return true;
|
|
1297
1302
|
}
|
|
@@ -1385,6 +1390,7 @@ class AIChatUtil {
|
|
|
1385
1390
|
status: "sent"
|
|
1386
1391
|
});
|
|
1387
1392
|
}
|
|
1393
|
+
aiChat.setActiveAsyncacitonId("");
|
|
1388
1394
|
} else if (msg.actionstate === 40) {
|
|
1389
1395
|
aiChat.replaceMessage({
|
|
1390
1396
|
messageid: id,
|
|
@@ -1394,6 +1400,7 @@ class AIChatUtil {
|
|
|
1394
1400
|
errorText: msg.actionresult,
|
|
1395
1401
|
status: "failed"
|
|
1396
1402
|
});
|
|
1403
|
+
aiChat.setActiveAsyncacitonId("");
|
|
1397
1404
|
}
|
|
1398
1405
|
},
|
|
1399
1406
|
abortController,
|
|
@@ -1422,12 +1429,13 @@ class AIChatUtil {
|
|
|
1422
1429
|
false
|
|
1423
1430
|
);
|
|
1424
1431
|
}
|
|
1432
|
+
} else {
|
|
1433
|
+
aiChat.setActiveAsyncacitonId("");
|
|
1425
1434
|
}
|
|
1426
1435
|
abortController == null ? void 0 : abortController.abort();
|
|
1427
1436
|
} finally {
|
|
1428
1437
|
aiChat.isLoading.value = false;
|
|
1429
1438
|
aiChat.completeMessage(id, true);
|
|
1430
|
-
aiChat.setActiveAsyncacitonId("");
|
|
1431
1439
|
return true;
|
|
1432
1440
|
}
|
|
1433
1441
|
}
|
|
@@ -421,6 +421,7 @@ class AIChatUtil {
|
|
|
421
421
|
status: "sent"
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
|
+
aiChat.setActiveAsyncacitonId("");
|
|
424
425
|
} else if (msg.actionstate === 40) {
|
|
425
426
|
aiChat.replaceMessage({
|
|
426
427
|
messageid: id,
|
|
@@ -430,6 +431,7 @@ class AIChatUtil {
|
|
|
430
431
|
errorText: msg.actionresult,
|
|
431
432
|
status: "failed"
|
|
432
433
|
});
|
|
434
|
+
aiChat.setActiveAsyncacitonId("");
|
|
433
435
|
}
|
|
434
436
|
},
|
|
435
437
|
abortController,
|
|
@@ -461,7 +463,6 @@ class AIChatUtil {
|
|
|
461
463
|
} finally {
|
|
462
464
|
aiChat.removeWaitingMessage(id);
|
|
463
465
|
aiChat.completeMessage(id, true);
|
|
464
|
-
aiChat.setActiveAsyncacitonId("");
|
|
465
466
|
return true;
|
|
466
467
|
}
|
|
467
468
|
};
|
|
@@ -554,6 +555,7 @@ class AIChatUtil {
|
|
|
554
555
|
status: "sent"
|
|
555
556
|
});
|
|
556
557
|
}
|
|
558
|
+
aiChat.setActiveAsyncacitonId("");
|
|
557
559
|
} else if (msg.actionstate === 40) {
|
|
558
560
|
aiChat.replaceMessage({
|
|
559
561
|
messageid: id,
|
|
@@ -563,6 +565,7 @@ class AIChatUtil {
|
|
|
563
565
|
errorText: msg.actionresult,
|
|
564
566
|
status: "failed"
|
|
565
567
|
});
|
|
568
|
+
aiChat.setActiveAsyncacitonId("");
|
|
566
569
|
}
|
|
567
570
|
},
|
|
568
571
|
abortController,
|
|
@@ -591,12 +594,13 @@ class AIChatUtil {
|
|
|
591
594
|
false
|
|
592
595
|
);
|
|
593
596
|
}
|
|
597
|
+
} else {
|
|
598
|
+
aiChat.setActiveAsyncacitonId("");
|
|
594
599
|
}
|
|
595
600
|
abortController == null ? void 0 : abortController.abort();
|
|
596
601
|
} finally {
|
|
597
602
|
aiChat.isLoading.value = false;
|
|
598
603
|
aiChat.completeMessage(id, true);
|
|
599
|
-
aiChat.setActiveAsyncacitonId("");
|
|
600
604
|
return true;
|
|
601
605
|
}
|
|
602
606
|
}
|
|
@@ -1254,6 +1258,7 @@ class AIChatUtil {
|
|
|
1254
1258
|
status: "sent"
|
|
1255
1259
|
});
|
|
1256
1260
|
}
|
|
1261
|
+
aiChat.setActiveAsyncacitonId("");
|
|
1257
1262
|
} else if (msg.actionstate === 40) {
|
|
1258
1263
|
aiChat.replaceMessage({
|
|
1259
1264
|
messageid: id,
|
|
@@ -1263,6 +1268,7 @@ class AIChatUtil {
|
|
|
1263
1268
|
errorText: msg.actionresult,
|
|
1264
1269
|
status: "failed"
|
|
1265
1270
|
});
|
|
1271
|
+
aiChat.setActiveAsyncacitonId("");
|
|
1266
1272
|
}
|
|
1267
1273
|
},
|
|
1268
1274
|
abortController,
|
|
@@ -1293,7 +1299,6 @@ class AIChatUtil {
|
|
|
1293
1299
|
abortController == null ? void 0 : abortController.abort();
|
|
1294
1300
|
} finally {
|
|
1295
1301
|
aiChat.removeWaitingMessage(id);
|
|
1296
|
-
aiChat.setActiveAsyncacitonId("");
|
|
1297
1302
|
aiChat.completeMessage(id, true);
|
|
1298
1303
|
return true;
|
|
1299
1304
|
}
|
|
@@ -1387,6 +1392,7 @@ class AIChatUtil {
|
|
|
1387
1392
|
status: "sent"
|
|
1388
1393
|
});
|
|
1389
1394
|
}
|
|
1395
|
+
aiChat.setActiveAsyncacitonId("");
|
|
1390
1396
|
} else if (msg.actionstate === 40) {
|
|
1391
1397
|
aiChat.replaceMessage({
|
|
1392
1398
|
messageid: id,
|
|
@@ -1396,6 +1402,7 @@ class AIChatUtil {
|
|
|
1396
1402
|
errorText: msg.actionresult,
|
|
1397
1403
|
status: "failed"
|
|
1398
1404
|
});
|
|
1405
|
+
aiChat.setActiveAsyncacitonId("");
|
|
1399
1406
|
}
|
|
1400
1407
|
},
|
|
1401
1408
|
abortController,
|
|
@@ -1424,12 +1431,13 @@ class AIChatUtil {
|
|
|
1424
1431
|
false
|
|
1425
1432
|
);
|
|
1426
1433
|
}
|
|
1434
|
+
} else {
|
|
1435
|
+
aiChat.setActiveAsyncacitonId("");
|
|
1427
1436
|
}
|
|
1428
1437
|
abortController == null ? void 0 : abortController.abort();
|
|
1429
1438
|
} finally {
|
|
1430
1439
|
aiChat.isLoading.value = false;
|
|
1431
1440
|
aiChat.completeMessage(id, true);
|
|
1432
|
-
aiChat.setActiveAsyncacitonId("");
|
|
1433
1441
|
return true;
|
|
1434
1442
|
}
|
|
1435
1443
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.159",
|
|
4
4
|
"description": "web端组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
33
33
|
"@floating-ui/dom": "^1.5.3",
|
|
34
|
-
"@ibiz-template-plugin/ai-chat": "^0.0.
|
|
34
|
+
"@ibiz-template-plugin/ai-chat": "^0.0.125",
|
|
35
35
|
"@ibiz-template-plugin/gantt": "0.1.8-alpha.468",
|
|
36
36
|
"@ibiz-template-plugin/bi-report": "0.0.32",
|
|
37
37
|
"@ibiz-template-plugin/data-view": "0.0.8",
|
|
@@ -595,6 +595,8 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
595
595
|
status: 'sent',
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
|
+
// 清空异步消息任务
|
|
599
|
+
aiChat.setActiveAsyncacitonId('');
|
|
598
600
|
}
|
|
599
601
|
// 40: 回答报错,展示错误信息
|
|
600
602
|
else if (msg.actionstate === 40) {
|
|
@@ -606,6 +608,8 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
606
608
|
errorText: msg.actionresult as string,
|
|
607
609
|
status: 'failed',
|
|
608
610
|
});
|
|
611
|
+
// 清空异步消息任务
|
|
612
|
+
aiChat.setActiveAsyncacitonId('');
|
|
609
613
|
}
|
|
610
614
|
},
|
|
611
615
|
abortController,
|
|
@@ -639,8 +643,6 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
639
643
|
aiChat.removeWaitingMessage(id);
|
|
640
644
|
// 标记当前消息已经交互完成
|
|
641
645
|
aiChat.completeMessage(id, true);
|
|
642
|
-
// 清空异步消息任务
|
|
643
|
-
aiChat.setActiveAsyncacitonId('');
|
|
644
646
|
return true;
|
|
645
647
|
}
|
|
646
648
|
};
|
|
@@ -756,6 +758,8 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
756
758
|
status: 'sent',
|
|
757
759
|
});
|
|
758
760
|
}
|
|
761
|
+
// 清空异步消息任务
|
|
762
|
+
aiChat.setActiveAsyncacitonId('');
|
|
759
763
|
}
|
|
760
764
|
// 40: 回答报错,展示错误信息
|
|
761
765
|
else if (msg.actionstate === 40) {
|
|
@@ -767,6 +771,8 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
767
771
|
errorText: msg.actionresult as string,
|
|
768
772
|
status: 'failed',
|
|
769
773
|
});
|
|
774
|
+
// 清空异步消息任务
|
|
775
|
+
aiChat.setActiveAsyncacitonId('');
|
|
770
776
|
}
|
|
771
777
|
},
|
|
772
778
|
abortController,
|
|
@@ -797,6 +803,9 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
797
803
|
false,
|
|
798
804
|
);
|
|
799
805
|
}
|
|
806
|
+
} else {
|
|
807
|
+
// 清空异步消息任务
|
|
808
|
+
aiChat.setActiveAsyncacitonId('');
|
|
800
809
|
}
|
|
801
810
|
abortController?.abort();
|
|
802
811
|
} finally {
|
|
@@ -804,8 +813,6 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
804
813
|
aiChat.isLoading.value = false;
|
|
805
814
|
// 标记当前消息已经交互完成
|
|
806
815
|
aiChat.completeMessage(id, true);
|
|
807
|
-
// 清空异步消息任务
|
|
808
|
-
aiChat.setActiveAsyncacitonId('');
|
|
809
816
|
return true;
|
|
810
817
|
}
|
|
811
818
|
}
|
|
@@ -1643,6 +1650,8 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
1643
1650
|
status: 'sent',
|
|
1644
1651
|
});
|
|
1645
1652
|
}
|
|
1653
|
+
// 清空异步消息任务
|
|
1654
|
+
aiChat.setActiveAsyncacitonId('');
|
|
1646
1655
|
}
|
|
1647
1656
|
// 40: 回答报错,展示错误信息
|
|
1648
1657
|
else if (msg.actionstate === 40) {
|
|
@@ -1654,6 +1663,8 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
1654
1663
|
errorText: msg.actionresult as string,
|
|
1655
1664
|
status: 'failed',
|
|
1656
1665
|
});
|
|
1666
|
+
// 清空异步消息任务
|
|
1667
|
+
aiChat.setActiveAsyncacitonId('');
|
|
1657
1668
|
}
|
|
1658
1669
|
},
|
|
1659
1670
|
abortController,
|
|
@@ -1685,8 +1696,6 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
1685
1696
|
} finally {
|
|
1686
1697
|
// 移除等待回复消息
|
|
1687
1698
|
aiChat.removeWaitingMessage(id);
|
|
1688
|
-
// 清空异步消息任务
|
|
1689
|
-
aiChat.setActiveAsyncacitonId('');
|
|
1690
1699
|
// 标记当前消息已经交互完成
|
|
1691
1700
|
aiChat.completeMessage(id, true);
|
|
1692
1701
|
return true;
|
|
@@ -1804,6 +1813,8 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
1804
1813
|
status: 'sent',
|
|
1805
1814
|
});
|
|
1806
1815
|
}
|
|
1816
|
+
// 清空异步消息任务
|
|
1817
|
+
aiChat.setActiveAsyncacitonId('');
|
|
1807
1818
|
}
|
|
1808
1819
|
// 40: 回答报错,展示错误信息
|
|
1809
1820
|
else if (msg.actionstate === 40) {
|
|
@@ -1815,6 +1826,8 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
1815
1826
|
errorText: msg.actionresult as string,
|
|
1816
1827
|
status: 'failed',
|
|
1817
1828
|
});
|
|
1829
|
+
// 清空异步消息任务
|
|
1830
|
+
aiChat.setActiveAsyncacitonId('');
|
|
1818
1831
|
}
|
|
1819
1832
|
},
|
|
1820
1833
|
abortController,
|
|
@@ -1845,6 +1858,9 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
1845
1858
|
false,
|
|
1846
1859
|
);
|
|
1847
1860
|
}
|
|
1861
|
+
} else {
|
|
1862
|
+
// 清空异步消息任务
|
|
1863
|
+
aiChat.setActiveAsyncacitonId('');
|
|
1848
1864
|
}
|
|
1849
1865
|
abortController?.abort();
|
|
1850
1866
|
} finally {
|
|
@@ -1852,8 +1868,6 @@ export class AIChatUtil implements IApiAIChatUtil {
|
|
|
1852
1868
|
aiChat.isLoading.value = false;
|
|
1853
1869
|
// 标记当前消息已经交互完成
|
|
1854
1870
|
aiChat.completeMessage(id, true);
|
|
1855
|
-
// 清空异步消息任务
|
|
1856
|
-
aiChat.setActiveAsyncacitonId('');
|
|
1857
1871
|
return true;
|
|
1858
1872
|
}
|
|
1859
1873
|
}
|