@acorex/modules 21.0.0-next.73 → 21.0.0-next.74
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/fesm2022/acorex-modules-ai-management.mjs +48 -15
- package/fesm2022/acorex-modules-ai-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-FKvCLWhj.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-yboYQ8I-.mjs} +24 -24
- package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-FKvCLWhj.mjs.map → acorex-modules-assessment-management-acorex-modules-assessment-management-yboYQ8I-.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-B59NvUDv.mjs → acorex-modules-assessment-management-assessment-case.entity-BBWeshSs.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-B59NvUDv.mjs.map → acorex-modules-assessment-management-assessment-case.entity-BBWeshSs.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-assessment-session-answers-view.util-DY3kcvHv.mjs → acorex-modules-assessment-management-assessment-session-answers-view.util-UCYBAHLk.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-session-answers-view.util-DY3kcvHv.mjs.map → acorex-modules-assessment-management-assessment-session-answers-view.util-UCYBAHLk.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-NZgnUnIg.mjs → acorex-modules-assessment-management-assessment-session.entity-Bp_dS1Js.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-NZgnUnIg.mjs.map → acorex-modules-assessment-management-assessment-session.entity-Bp_dS1Js.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-DTpp9nGB.mjs → acorex-modules-assessment-management-fill-assessment-session.command-VivCLw2H.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-DTpp9nGB.mjs.map → acorex-modules-assessment-management-fill-assessment-session.command-VivCLw2H.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-preview-question.command-DLN9rq0h.mjs → acorex-modules-assessment-management-preview-question.command-CKF4BjCx.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-preview-question.command-DLN9rq0h.mjs.map → acorex-modules-assessment-management-preview-question.command-CKF4BjCx.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-D5RxnsfD.mjs → acorex-modules-assessment-management-preview-questionnaire.command-B_2o4jC2.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-D5RxnsfD.mjs.map → acorex-modules-assessment-management-preview-questionnaire.command-B_2o4jC2.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-j6Pzk1UT.mjs → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-s8KcR3D0.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-j6Pzk1UT.mjs.map → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-s8KcR3D0.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-C8jxKIKe.mjs → acorex-modules-assessment-management-question-bank-item.entity-Sj-5woTX.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-C8jxKIKe.mjs.map → acorex-modules-assessment-management-question-bank-item.entity-Sj-5woTX.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-DYtzVNK8.mjs → acorex-modules-assessment-management-questionnaire-viewer-popup.component-ClvQ18w6.mjs} +5 -375
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-ClvQ18w6.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-Ca-oiaZ5.mjs → acorex-modules-assessment-management-questionnaire.entity-BbyNZvoc.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-Ca-oiaZ5.mjs.map → acorex-modules-assessment-management-questionnaire.entity-BbyNZvoc.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-review-assessment-session.command-CXSelp7y.mjs → acorex-modules-assessment-management-review-assessment-session.command-B2QViI9d.mjs} +3 -3
- package/fesm2022/{acorex-modules-assessment-management-review-assessment-session.command-CXSelp7y.mjs.map → acorex-modules-assessment-management-review-assessment-session.command-B2QViI9d.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-BQDyUTwa.mjs → acorex-modules-assessment-management-view-session-answers.command-CWdBtkn1.mjs} +3 -3
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-BQDyUTwa.mjs.map → acorex-modules-assessment-management-view-session-answers.command-CWdBtkn1.mjs.map} +1 -1
- package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
- package/fesm2022/{acorex-modules-content-management-acorex-modules-content-management-CVyrVwfU.mjs → acorex-modules-content-management-acorex-modules-content-management-B5zqb3b_.mjs} +5 -5
- package/fesm2022/{acorex-modules-content-management-acorex-modules-content-management-CVyrVwfU.mjs.map → acorex-modules-content-management-acorex-modules-content-management-B5zqb3b_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-content-management-permission-definition.provider-BnnCEroN.mjs → acorex-modules-content-management-permission-definition.provider-DxI6NmP4.mjs} +2 -2
- package/fesm2022/{acorex-modules-content-management-permission-definition.provider-BnnCEroN.mjs.map → acorex-modules-content-management-permission-definition.provider-DxI6NmP4.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-edit.component-B3Scw9SG.mjs → acorex-modules-content-management-template-content-editor-widget-edit.component-ChmkpMy9.mjs} +3 -3
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-edit.component-B3Scw9SG.mjs.map → acorex-modules-content-management-template-content-editor-widget-edit.component-ChmkpMy9.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-view.component-D7EBdcU9.mjs → acorex-modules-content-management-template-content-editor-widget-view.component-LyoQmopL.mjs} +2 -2
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-view.component-D7EBdcU9.mjs.map → acorex-modules-content-management-template-content-editor-widget-view.component-LyoQmopL.mjs.map} +1 -1
- package/fesm2022/acorex-modules-content-management.mjs +1 -1
- package/fesm2022/{acorex-modules-conversation-acorex-modules-conversation-p9c5_MMk.mjs → acorex-modules-conversation-acorex-modules-conversation-lPw23AJc.mjs} +10 -9
- package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-lPw23AJc.mjs.map +1 -0
- package/fesm2022/{acorex-modules-conversation-assist-delegated-agent-detail-popup.component-DQiGLMAZ.mjs → acorex-modules-conversation-assist-delegated-agent-detail-popup.component-D0SGSQC8.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-assist-delegated-agent-detail-popup.component-DQiGLMAZ.mjs.map → acorex-modules-conversation-assist-delegated-agent-detail-popup.component-D0SGSQC8.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-conversation-comments-page.component-rY_6dZ3X.mjs → acorex-modules-conversation-comments-page.component-Bqeplzuy.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-comments-page.component-rY_6dZ3X.mjs.map → acorex-modules-conversation-comments-page.component-Bqeplzuy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-conversation-send-assist-chat-message.command-Bi1MZ0AE.mjs → acorex-modules-conversation-send-assist-chat-message.command-CFwkUHCc.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-send-assist-chat-message.command-Bi1MZ0AE.mjs.map → acorex-modules-conversation-send-assist-chat-message.command-CFwkUHCc.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-1Mro9mxs.mjs → acorex-modules-conversation-start-assist-chat.command-aEOnD6ax.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-1Mro9mxs.mjs.map → acorex-modules-conversation-start-assist-chat.command-aEOnD6ax.mjs.map} +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +1 -1
- package/fesm2022/{acorex-modules-dashboard-management-acorex-modules-dashboard-management-DLOyCwM3.mjs → acorex-modules-dashboard-management-acorex-modules-dashboard-management-D2TrYnCW.mjs} +4 -4
- package/fesm2022/{acorex-modules-dashboard-management-acorex-modules-dashboard-management-DLOyCwM3.mjs.map → acorex-modules-dashboard-management-acorex-modules-dashboard-management-D2TrYnCW.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-dashboard-management-index-DlrkqIge.mjs → acorex-modules-dashboard-management-index-DAQNEq43.mjs} +2 -2
- package/fesm2022/{acorex-modules-dashboard-management-index-DlrkqIge.mjs.map → acorex-modules-dashboard-management-index-DAQNEq43.mjs.map} +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs +1 -1
- package/fesm2022/acorex-modules-data-management.mjs +2 -1
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-help-desk-acorex-modules-help-desk-B8de7ifz.mjs.map +1 -1
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-SYgMvrE2.mjs → acorex-modules-platform-management-acorex-modules-platform-management-ilmoyxAw.mjs} +95 -4442
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-ilmoyxAw.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-menu-list.component-CKiFNjU0.mjs → acorex-modules-platform-management-menu-list.component-MJCUVTho.mjs} +2 -2
- package/fesm2022/{acorex-modules-platform-management-menu-list.component-CKiFNjU0.mjs.map → acorex-modules-platform-management-menu-list.component-MJCUVTho.mjs.map} +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/fesm2022/{acorex-modules-task-management-acorex-modules-task-management-Dfx7mO_y.mjs → acorex-modules-task-management-acorex-modules-task-management-Bv7Ye6d1.mjs} +2 -2
- package/fesm2022/{acorex-modules-task-management-acorex-modules-task-management-Dfx7mO_y.mjs.map → acorex-modules-task-management-acorex-modules-task-management-Bv7Ye6d1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-task-management-task-board.page-eXpBudGO.mjs → acorex-modules-task-management-task-board.page-CfgeDnBx.mjs} +3 -3
- package/fesm2022/{acorex-modules-task-management-task-board.page-eXpBudGO.mjs.map → acorex-modules-task-management-task-board.page-CfgeDnBx.mjs.map} +1 -1
- package/fesm2022/acorex-modules-task-management.mjs +1 -1
- package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-LJ8Bb-CT.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-BW6kK9Av.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management-index--D61tV-f.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management-index-DXIQw3Ao.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management-save-workflow-definition-activities.command-huamhFhc.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-activity-instance-rows.utils-L8W4ogSI.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-run-history-popup.component-FLqOdI2t.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-run-history-visual-tab.component-3gnqTYdJ.mjs.map +1 -1
- package/package.json +2 -2
- package/types/acorex-modules-ai-management.d.ts +2 -2
- package/types/acorex-modules-content-management.d.ts +2 -1
- package/types/acorex-modules-data-management.d.ts +2 -1
- package/types/acorex-modules-notification-management.d.ts +2 -1
- package/types/acorex-modules-platform-management.d.ts +3 -137
- package/types/acorex-modules-workflow-management.d.ts +2 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-DYtzVNK8.mjs.map +0 -1
- package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-p9c5_MMk.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-SYgMvrE2.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AXPSessionService, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
|
|
2
|
-
import { AXPOutputContractTranscriptSegmentService, AXPSettingsService, AXPRegionalSetting,
|
|
2
|
+
import { AXPOutputContractTranscriptSegmentService, AXPSettingsService, AXPRegionalSetting, AXPFileStorageService, AXP_AGENT_OUTPUT_CONTRACT_DEFAULT_STRUCTURED_RETRIES, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_OUTPUT_CONTRACT_TRANSCRIPT_SEGMENT_PROVIDER } from '@acorex/platform/common';
|
|
3
3
|
import * as i1$1 from '@acorex/platform/core';
|
|
4
|
-
import { objectKeyValueTransforms, AXPTagProvider, AXPPlatformScope, AXPComponentSlotModule, AXP_MODULE_MANIFEST_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_TAG_PROVIDER, AXP_CONTEXT_DEFINITION_PROVIDER } from '@acorex/platform/core';
|
|
4
|
+
import { objectKeyValueTransforms, applyFilterArray, applySortArray, AXPTagProvider, AXPPlatformScope, AXPComponentSlotModule, AXP_MODULE_MANIFEST_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_TAG_PROVIDER, AXP_CONTEXT_DEFINITION_PROVIDER } from '@acorex/platform/core';
|
|
5
5
|
import { AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
|
6
6
|
import { AXPWidgetsCatalog, AXPWidgetGroupEnum, AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGET_DEFINITION_PROVIDER } from '@acorex/platform/layout/widget-core';
|
|
7
7
|
import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXPWidgetsModule } from '@acorex/platform/layout/widgets';
|
|
@@ -12,7 +12,7 @@ import { AXPCommonMenuKeys, AXPWidgetsList } from '@acorex/modules/common';
|
|
|
12
12
|
import * as i7 from '@acorex/core/translation';
|
|
13
13
|
import { resolveMultiLanguageString, AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
14
14
|
import { AXDataSource } from '@acorex/cdk/common';
|
|
15
|
-
import {
|
|
15
|
+
import { AXP_ENTITY_DEFINITION_CRUD_SERVICE } from '@acorex/platform/domain';
|
|
16
16
|
import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
|
|
17
17
|
import * as i2 from '@acorex/components/button';
|
|
18
18
|
import { AXButtonModule } from '@acorex/components/button';
|
|
@@ -25,6 +25,7 @@ import * as i5 from '@acorex/components/text-area';
|
|
|
25
25
|
import { AXTextAreaModule } from '@acorex/components/text-area';
|
|
26
26
|
import { AXToastService } from '@acorex/components/toast';
|
|
27
27
|
import { AXFileService } from '@acorex/core/file';
|
|
28
|
+
import { AXPFileStorageStatus } from '@acorex/platform/contracts';
|
|
28
29
|
import * as i6 from '@angular/common';
|
|
29
30
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
30
31
|
import * as i1 from '@angular/forms';
|
|
@@ -535,16 +536,43 @@ const AI_CAPABILITY_FILTER = {
|
|
|
535
536
|
},
|
|
536
537
|
],
|
|
537
538
|
};
|
|
539
|
+
function mapRegistryRow(id, definition) {
|
|
540
|
+
return {
|
|
541
|
+
id,
|
|
542
|
+
name: definition.name,
|
|
543
|
+
description: definition.description,
|
|
544
|
+
catalogTitle: definition.catalogTitle,
|
|
545
|
+
active: definition.active,
|
|
546
|
+
aiMetadataJson: definition.aiMetadataJson,
|
|
547
|
+
capabilities: definition.capabilities,
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
async function queryRegistryCatalog(crud, list, request) {
|
|
551
|
+
if (!crud) {
|
|
552
|
+
return { items: [], total: 0 };
|
|
553
|
+
}
|
|
554
|
+
let items = (await list()).map(({ id, definition }) => mapRegistryRow(id, definition));
|
|
555
|
+
if (request?.filter) {
|
|
556
|
+
items = applyFilterArray(items, [request.filter], request.filter.logic ?? 'and');
|
|
557
|
+
}
|
|
558
|
+
if (request?.sort?.length) {
|
|
559
|
+
items = applySortArray(items, request.sort);
|
|
560
|
+
}
|
|
561
|
+
const total = items.length;
|
|
562
|
+
const skip = request?.skip ?? 0;
|
|
563
|
+
const take = request?.take ?? items.length;
|
|
564
|
+
return {
|
|
565
|
+
items: items.slice(skip, skip + take),
|
|
566
|
+
total,
|
|
567
|
+
};
|
|
568
|
+
}
|
|
538
569
|
//#endregion
|
|
539
570
|
//#region ---- Command catalog ----
|
|
540
571
|
class AXMAiCommandRegistryCatalogDataSourceDefinition {
|
|
541
572
|
constructor() {
|
|
542
|
-
this.
|
|
573
|
+
this.crud = inject(AXP_ENTITY_DEFINITION_CRUD_SERVICE, { optional: true });
|
|
543
574
|
}
|
|
544
575
|
items() {
|
|
545
|
-
const accessor = this.entityService
|
|
546
|
-
.withEntity(RootConfig$1.module.name, RootConfig$1.entities.commandDefinition.name)
|
|
547
|
-
.data();
|
|
548
576
|
const columns = [
|
|
549
577
|
{ name: 'id', title: 'ID', datatype: 'uuid', type: AXPWidgetsCatalog.text },
|
|
550
578
|
{ name: 'catalogTitle', title: 'Title', datatype: 'string', type: AXPWidgetsCatalog.text },
|
|
@@ -573,14 +601,18 @@ class AXMAiCommandRegistryCatalogDataSourceDefinition {
|
|
|
573
601
|
sort: [{ field: 'catalogTitle', dir: 'asc' }],
|
|
574
602
|
filter: AI_CAPABILITY_FILTER,
|
|
575
603
|
};
|
|
576
|
-
const res = await
|
|
604
|
+
const res = await queryRegistryCatalog(this.crud, () => this.crud.listCommands(), request);
|
|
577
605
|
return {
|
|
578
606
|
items: (res.items ?? []),
|
|
579
607
|
total: res.total ?? (res.items?.length ?? 0),
|
|
580
608
|
};
|
|
581
609
|
},
|
|
582
610
|
byKey: async (key) => {
|
|
583
|
-
|
|
611
|
+
const def = await this.crud?.getCommand(String(key));
|
|
612
|
+
if (!def) {
|
|
613
|
+
return null;
|
|
614
|
+
}
|
|
615
|
+
return mapRegistryRow(String(key), def);
|
|
584
616
|
},
|
|
585
617
|
pageSize: 500,
|
|
586
618
|
});
|
|
@@ -602,12 +634,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
602
634
|
//#region ---- Query catalog ----
|
|
603
635
|
class AXMAiQueryRegistryCatalogDataSourceDefinition {
|
|
604
636
|
constructor() {
|
|
605
|
-
this.
|
|
637
|
+
this.crud = inject(AXP_ENTITY_DEFINITION_CRUD_SERVICE, { optional: true });
|
|
606
638
|
}
|
|
607
639
|
items() {
|
|
608
|
-
const accessor = this.entityService
|
|
609
|
-
.withEntity(RootConfig$1.module.name, RootConfig$1.entities.queryDefinition.name)
|
|
610
|
-
.data();
|
|
611
640
|
const columns = [
|
|
612
641
|
{ name: 'id', title: 'ID', datatype: 'uuid', type: AXPWidgetsCatalog.text },
|
|
613
642
|
{ name: 'catalogTitle', title: 'Title', datatype: 'string', type: AXPWidgetsCatalog.text },
|
|
@@ -636,14 +665,18 @@ class AXMAiQueryRegistryCatalogDataSourceDefinition {
|
|
|
636
665
|
sort: [{ field: 'catalogTitle', dir: 'asc' }],
|
|
637
666
|
filter: AI_CAPABILITY_FILTER,
|
|
638
667
|
};
|
|
639
|
-
const res = await
|
|
668
|
+
const res = await queryRegistryCatalog(this.crud, () => this.crud.listQueries(), request);
|
|
640
669
|
return {
|
|
641
670
|
items: (res.items ?? []),
|
|
642
671
|
total: res.total ?? (res.items?.length ?? 0),
|
|
643
672
|
};
|
|
644
673
|
},
|
|
645
674
|
byKey: async (key) => {
|
|
646
|
-
|
|
675
|
+
const def = await this.crud?.getQuery(String(key));
|
|
676
|
+
if (!def) {
|
|
677
|
+
return null;
|
|
678
|
+
}
|
|
679
|
+
return mapRegistryRow(String(key), def);
|
|
647
680
|
},
|
|
648
681
|
pageSize: 500,
|
|
649
682
|
});
|