@acorex/modules 21.0.0-next.63 → 21.0.0-next.65
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-assist-delegated-agent-configurator-widget-edit.component-u1hZ4P5s.mjs → acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-BC6vzGG9.mjs} +25 -3
- package/fesm2022/acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-BC6vzGG9.mjs.map +1 -0
- package/fesm2022/acorex-modules-ai-management.mjs +43 -7
- package/fesm2022/acorex-modules-ai-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-DlhSQ0cB.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-DqmJVJ0z.mjs} +22 -37
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-DqmJVJ0z.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-B6C2PRZw.mjs → acorex-modules-assessment-management-assessment-case.entity-DhVwPz0T.mjs} +8 -7
- package/fesm2022/acorex-modules-assessment-management-assessment-case.entity-DhVwPz0T.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-DquzZNaQ.mjs → acorex-modules-assessment-management-assessment-session.entity-BvV2Qgw1.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-DquzZNaQ.mjs.map → acorex-modules-assessment-management-assessment-session.entity-BvV2Qgw1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-CRE8SxzC.mjs → acorex-modules-assessment-management-fill-assessment-session.command-4fkaeAG-.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-CRE8SxzC.mjs.map → acorex-modules-assessment-management-fill-assessment-session.command-4fkaeAG-.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-preview-question.command-Ce7yOnJY.mjs → acorex-modules-assessment-management-preview-question.command-6IGOdVVZ.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-preview-question.command-Ce7yOnJY.mjs.map → acorex-modules-assessment-management-preview-question.command-6IGOdVVZ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-S-8MDeB7.mjs → acorex-modules-assessment-management-preview-questionnaire.command-CRDBe_BS.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-S-8MDeB7.mjs.map → acorex-modules-assessment-management-preview-questionnaire.command-CRDBe_BS.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-wdHMGBxi.mjs → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-B2ES-zcL.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-wdHMGBxi.mjs.map → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-B2ES-zcL.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-1Pm9O0kv.mjs → acorex-modules-assessment-management-question-bank-item.entity-Cw2WCdYK.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-1Pm9O0kv.mjs.map → acorex-modules-assessment-management-question-bank-item.entity-Cw2WCdYK.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-Dwx0y7WY.mjs → acorex-modules-assessment-management-questionnaire-viewer-popup.component-D9I3S-ZT.mjs} +120 -7
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-D9I3S-ZT.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-BI_jc4C6.mjs → acorex-modules-assessment-management-questionnaire.entity-D9nHUmQB.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-BI_jc4C6.mjs.map → acorex-modules-assessment-management-questionnaire.entity-D9nHUmQB.mjs.map} +1 -1
- package/fesm2022/acorex-modules-assessment-management-view-session-answers.command-BOeO3Dit.mjs +350 -0
- package/fesm2022/acorex-modules-assessment-management-view-session-answers.command-BOeO3Dit.mjs.map +1 -0
- package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
- package/fesm2022/acorex-modules-common.mjs +0 -8
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/{acorex-modules-content-management-acorex-modules-content-management-CO8lZb34.mjs → acorex-modules-content-management-acorex-modules-content-management-DMMKjUJP.mjs} +6 -6
- package/fesm2022/acorex-modules-content-management-acorex-modules-content-management-DMMKjUJP.mjs.map +1 -0
- package/fesm2022/{acorex-modules-content-management-permission-definition.provider-Bcq5uOVH.mjs → acorex-modules-content-management-permission-definition.provider-B9RvUa2y.mjs} +2 -2
- package/fesm2022/{acorex-modules-content-management-permission-definition.provider-Bcq5uOVH.mjs.map → acorex-modules-content-management-permission-definition.provider-B9RvUa2y.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-edit.component-D_q_xWeI.mjs → acorex-modules-content-management-template-content-editor-widget-edit.component-BAuczQJ_.mjs} +2 -2
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-edit.component-D_q_xWeI.mjs.map → acorex-modules-content-management-template-content-editor-widget-edit.component-BAuczQJ_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-view.component-DU5y6UxK.mjs → acorex-modules-content-management-template-content-editor-widget-view.component-BbAK7l89.mjs} +2 -2
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-view.component-DU5y6UxK.mjs.map → acorex-modules-content-management-template-content-editor-widget-view.component-BbAK7l89.mjs.map} +1 -1
- package/fesm2022/acorex-modules-content-management.mjs +1 -1
- package/fesm2022/{acorex-modules-conversation-acorex-modules-conversation-DkdNLMKa.mjs → acorex-modules-conversation-acorex-modules-conversation-CuaEuIdl.mjs} +122 -38
- package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-CuaEuIdl.mjs.map +1 -0
- package/fesm2022/{acorex-modules-conversation-assist-delegated-agent-detail-popup.component-VKPbkRqI.mjs → acorex-modules-conversation-assist-delegated-agent-detail-popup.component-E0e9YjO9.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-assist-delegated-agent-detail-popup.component-VKPbkRqI.mjs.map → acorex-modules-conversation-assist-delegated-agent-detail-popup.component-E0e9YjO9.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-conversation-comments-page.component-ehUCjoFD.mjs → acorex-modules-conversation-comments-page.component-zaGnoDs-.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-comments-page.component-ehUCjoFD.mjs.map → acorex-modules-conversation-comments-page.component-zaGnoDs-.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-conversation-send-assist-chat-message.command-ZNcVi54N.mjs → acorex-modules-conversation-send-assist-chat-message.command-D2vjfYtY.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-send-assist-chat-message.command-ZNcVi54N.mjs.map → acorex-modules-conversation-send-assist-chat-message.command-D2vjfYtY.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-CX6lm1lG.mjs → acorex-modules-conversation-start-assist-chat.command-C2IEDIG9.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-CX6lm1lG.mjs.map → acorex-modules-conversation-start-assist-chat.command-C2IEDIG9.mjs.map} +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-BWezAea1.mjs → acorex-modules-human-capital-management-acorex-modules-human-capital-management-uRz1c5Km.mjs} +20 -20
- package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-BWezAea1.mjs.map → acorex-modules-human-capital-management-acorex-modules-human-capital-management-uRz1c5Km.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-Bh_Bbq5-.mjs → acorex-modules-human-capital-management-approve-leave-request.command-23klKnTy.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-Bh_Bbq5-.mjs.map → acorex-modules-human-capital-management-approve-leave-request.command-23klKnTy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-BpDdDG9i.mjs → acorex-modules-human-capital-management-assign-position-assignment.command-BJ8xUiR2.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-BpDdDG9i.mjs.map → acorex-modules-human-capital-management-assign-position-assignment.command-BJ8xUiR2.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-CjtKaKFw.mjs → acorex-modules-human-capital-management-cancel-leave-request.command-B3u1gXWI.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-CjtKaKFw.mjs.map → acorex-modules-human-capital-management-cancel-leave-request.command-B3u1gXWI.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-Cx_oY2aK.mjs → acorex-modules-human-capital-management-employee.entity-uhwOOw_y.mjs} +11 -3
- package/fesm2022/acorex-modules-human-capital-management-employee.entity-uhwOOw_y.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-B20Taa5x.mjs → acorex-modules-human-capital-management-employment-type.entity-BQe82rsr.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-B20Taa5x.mjs.map → acorex-modules-human-capital-management-employment-type.entity-BQe82rsr.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-BO8QXpZE.mjs → acorex-modules-human-capital-management-leave-request.entity-CE4hs4C8.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-BO8QXpZE.mjs.map → acorex-modules-human-capital-management-leave-request.entity-CE4hs4C8.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-CQwSWqSh.mjs → acorex-modules-human-capital-management-leave-type.entity-DJ4EEUKg.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-CQwSWqSh.mjs.map → acorex-modules-human-capital-management-leave-type.entity-DJ4EEUKg.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-lifecycle-event-type.entity-BPWJrvbN.mjs → acorex-modules-human-capital-management-lifecycle-event-type.entity-CB2hlyOP.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-lifecycle-event-type.entity-BPWJrvbN.mjs.map → acorex-modules-human-capital-management-lifecycle-event-type.entity-CB2hlyOP.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-lifecycle-event.entity-ZZuPu9KQ.mjs → acorex-modules-human-capital-management-lifecycle-event.entity-DWonFZpU.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-lifecycle-event.entity-ZZuPu9KQ.mjs.map → acorex-modules-human-capital-management-lifecycle-event.entity-DWonFZpU.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-BN1y0qhi.mjs → acorex-modules-human-capital-management-position-assignment.entity-o8PjggiT.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-BN1y0qhi.mjs.map → acorex-modules-human-capital-management-position-assignment.entity-o8PjggiT.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-LczqOHP-.mjs → acorex-modules-human-capital-management-reject-leave-request.command-B6sr7oey.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-LczqOHP-.mjs.map → acorex-modules-human-capital-management-reject-leave-request.command-B6sr7oey.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-Dm8YacDI.mjs → acorex-modules-human-capital-management-revoke-position-assignment.command-aH7qTRnr.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-Dm8YacDI.mjs.map → acorex-modules-human-capital-management-revoke-position-assignment.command-aH7qTRnr.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-start-lifecycle-event-flow.command-DPwuyFz2.mjs → acorex-modules-human-capital-management-start-lifecycle-event-flow.command-B-VsXS4c.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-start-lifecycle-event-flow.command-DPwuyFz2.mjs.map → acorex-modules-human-capital-management-start-lifecycle-event-flow.command-B-VsXS4c.mjs.map} +1 -1
- package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
- package/fesm2022/acorex-modules-report-management.mjs +1 -1
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-task-management-acorex-modules-task-management--mdNdYIs.mjs → acorex-modules-task-management-acorex-modules-task-management-DAh3IByo.mjs} +37 -19
- package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-DAh3IByo.mjs.map +1 -0
- package/fesm2022/{acorex-modules-task-management-task-board.page-BIZ1qH7m.mjs → acorex-modules-task-management-task-board.page-C2hB9JPM.mjs} +21 -12
- package/fesm2022/acorex-modules-task-management-task-board.page-C2hB9JPM.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +1 -1
- package/fesm2022/acorex-modules-workflow-management-index-BhVZ1Bcw.mjs.map +1 -1
- package/package.json +2 -2
- package/types/acorex-modules-ai-management.d.ts +1 -2
- package/types/acorex-modules-assessment-management.d.ts +8 -0
- package/types/acorex-modules-conversation.d.ts +23 -3
- package/types/acorex-modules-task-management.d.ts +14 -1
- package/fesm2022/acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-u1hZ4P5s.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-DlhSQ0cB.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-assessment-case.entity-B6C2PRZw.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-assessment-session-answers-view.util-BRdwcIvw.mjs +0 -47
- package/fesm2022/acorex-modules-assessment-management-assessment-session-answers-view.util-BRdwcIvw.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-Dwx0y7WY.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-view-case-last-session-answers.command-Ds-QGMPy.mjs +0 -157
- package/fesm2022/acorex-modules-assessment-management-view-case-last-session-answers.command-Ds-QGMPy.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-view-session-answers.command-COTVoRRG.mjs +0 -172
- package/fesm2022/acorex-modules-assessment-management-view-session-answers.command-COTVoRRG.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-view-session-outcomes.command-2buH7ydV.mjs +0 -239
- package/fesm2022/acorex-modules-assessment-management-view-session-outcomes.command-2buH7ydV.mjs.map +0 -1
- package/fesm2022/acorex-modules-content-management-acorex-modules-content-management-CO8lZb34.mjs.map +0 -1
- package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-DkdNLMKa.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-employee.entity-Cx_oY2aK.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-acorex-modules-task-management--mdNdYIs.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-BIZ1qH7m.mjs.map +0 -1
|
@@ -30,15 +30,37 @@ function mapDelegatedParameterDefinitionsToWidgetProperties(defs) {
|
|
|
30
30
|
}
|
|
31
31
|
: defaultGroup;
|
|
32
32
|
const defaultStr = d.defaultValue !== undefined && d.defaultValue !== null ? String(d.defaultValue) : undefined;
|
|
33
|
+
const title = (d.title?.trim() || d.name);
|
|
34
|
+
const desc = typeof d.description === 'string' ? d.description.trim() : '';
|
|
35
|
+
const widgetType = d.interface?.name?.trim() ? d.interface.name.trim() : 'text-editor';
|
|
36
|
+
if (widgetType !== 'text-editor') {
|
|
37
|
+
const property = {
|
|
38
|
+
name: d.name,
|
|
39
|
+
title,
|
|
40
|
+
...(desc ? { description: desc } : {}),
|
|
41
|
+
group,
|
|
42
|
+
schema: {
|
|
43
|
+
dataType: 'string',
|
|
44
|
+
defaultValue: defaultStr,
|
|
45
|
+
interface: {
|
|
46
|
+
path: `options.${d.name}`,
|
|
47
|
+
name: d.name,
|
|
48
|
+
type: widgetType,
|
|
49
|
+
options: d.interface?.options ?? {},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
visible: true,
|
|
53
|
+
};
|
|
54
|
+
return property;
|
|
55
|
+
}
|
|
33
56
|
const property = createStringProperty({
|
|
34
57
|
name: d.name,
|
|
35
|
-
title
|
|
58
|
+
title,
|
|
36
59
|
path: `options.${d.name}`,
|
|
37
60
|
group,
|
|
38
61
|
visible: true,
|
|
39
62
|
defaultValue: defaultStr,
|
|
40
63
|
});
|
|
41
|
-
const desc = typeof d.description === 'string' ? d.description.trim() : '';
|
|
42
64
|
return desc ? { ...property, description: desc } : property;
|
|
43
65
|
});
|
|
44
66
|
}
|
|
@@ -277,4 +299,4 @@ function resolvePropertyDefinitions(rawValue) {
|
|
|
277
299
|
}
|
|
278
300
|
|
|
279
301
|
export { AXMAssistDelegatedAgentConfiguratorWidgetEditComponent };
|
|
280
|
-
//# sourceMappingURL=acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-
|
|
302
|
+
//# sourceMappingURL=acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-BC6vzGG9.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-BC6vzGG9.mjs","sources":["../../../../libs/modules/ai-management/src/lib/features/widgets/assist-delegated-agent-configurator/delegated-parameter-definitions-to-widget-properties.ts","../../../../libs/modules/ai-management/src/lib/features/widgets/assist-delegated-agent-configurator/assist-delegated-agent-configurator-widget-edit.component.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPWidgetProperty, AXPWidgetPropertyGroup, createStringProperty } from '@acorex/platform/layout/widget-core';\n\n//#endregion\n\n//#region ---- Delegated definitions → property viewer ----\n\ntype DelegatedParameterDefinition = {\n name: string;\n binding: string;\n title?: string;\n description?: string;\n defaultValue?: unknown;\n group?: { name: string; title: string; order?: number };\n interface?: {\n name?: string;\n options?: Record<string, unknown>;\n };\n};\n\n/**\n * Maps delegated parameter definitions to property-viewer compatible fields.\n */\nexport function mapDelegatedParameterDefinitionsToWidgetProperties(\n defs: ReadonlyArray<DelegatedParameterDefinition>,\n): AXPWidgetProperty[] {\n const defaultGroup: AXPWidgetPropertyGroup = {\n name: 'delegated-agent-parameters',\n title: 'Delegated parameters',\n order: 1,\n };\n\n const filtered = defs.filter((d) => d.binding === 'assist_locked' || d.binding === 'assist_default');\n const source =\n filtered.length > 0\n ? filtered\n : [{ name: 'query', binding: 'assist_default', title: 'Query', description: '' }];\n\n return source.map((d) => {\n const group: AXPWidgetPropertyGroup = d.group\n ? {\n name: d.group.name,\n title: d.group.title,\n order: d.group.order ?? 0,\n }\n : defaultGroup;\n\n const defaultStr =\n d.defaultValue !== undefined && d.defaultValue !== null ? String(d.defaultValue) : undefined;\n const title = (d.title?.trim() || d.name) as string;\n const desc = typeof d.description === 'string' ? d.description.trim() : '';\n const widgetType = d.interface?.name?.trim() ? d.interface.name.trim() : 'text-editor';\n\n if (widgetType !== 'text-editor') {\n const property: AXPWidgetProperty = {\n name: d.name,\n title,\n ...(desc ? { description: desc } : {}),\n group,\n schema: {\n dataType: 'string',\n defaultValue: defaultStr,\n interface: {\n path: `options.${d.name}`,\n name: d.name,\n type: widgetType,\n options: d.interface?.options ?? {},\n },\n },\n visible: true,\n };\n return property;\n }\n\n const property = createStringProperty({\n name: d.name,\n title,\n path: `options.${d.name}`,\n group,\n visible: true,\n defaultValue: defaultStr,\n });\n\n return desc ? { ...property, description: desc } : property;\n });\n}\n\nexport function isDelegatedParameterDefinitionList(value: unknown): value is DelegatedParameterDefinition[] {\n if (!Array.isArray(value) || value.length === 0) {\n return false;\n }\n\n const first = value[0];\n if (first == null || typeof first !== 'object' || Array.isArray(first)) {\n return false;\n }\n\n return (\n typeof (first as Record<string, unknown>)['name'] === 'string' &&\n typeof (first as Record<string, unknown>)['binding'] === 'string' &&\n !('schema' in (first as object))\n );\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPDataSourceDefinitionProviderService,\n AXPMultiLanguageString,\n sortByMultiLanguageString,\n type AXPOptionsData,\n} from '@acorex/platform/core';\nimport { AXPItemConfiguratorComponent, ItemConfiguratorListItem } from '@acorex/platform/layout/components';\nimport { AXPValueWidgetComponent, AXPWidgetNode, AXPWidgetProperty } from '@acorex/platform/layout/widget-core';\nimport { ChangeDetectionStrategy, Component, computed, effect, inject, model, signal, untracked } from '@angular/core';\nimport { get, isEqual } from 'lodash-es';\nimport { AI_AGENT_CATALOG_DATASOURCE_NAME } from '../../datasources/ai-agent-catalog.datasource';\nimport {\n isDelegatedParameterDefinitionList,\n mapDelegatedParameterDefinitionsToWidgetProperties,\n} from './delegated-parameter-definitions-to-widget-properties';\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n selector: 'axm-assist-delegated-agent-configurator-widget-edit',\n template: `\n @if (isInitialized()) {\n <axp-item-configurator\n [(selectedItemId)]=\"selectedItemIdModel\"\n [(values)]=\"valuesModel\"\n [label]=\"label()\"\n [readonly]=\"readonly()\"\n [items]=\"listItems()\"\n ></axp-item-configurator>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXPItemConfiguratorComponent],\n})\nexport class AXMAssistDelegatedAgentConfiguratorWidgetEditComponent extends AXPValueWidgetComponent<AXPWidgetNode> {\n //#region ---- Services & Dependencies ----\n\n private readonly dataSourceDefinitionService = inject(AXPDataSourceDefinitionProviderService);\n private readonly translation = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Computed Properties ----\n\n protected readonly = computed<boolean>(() => {\n const raw = this.options()['readonly'];\n if (typeof raw === 'string') {\n const normalized = raw.trim().toLowerCase();\n if (normalized === 'true') {\n return true;\n }\n if (normalized === 'false') {\n return false;\n }\n }\n return raw === true;\n });\n\n protected label = computed<string>(() => {\n const v = this.options()['label'];\n return typeof v === 'string' && v.trim() ? v.trim() : '@ai-management:assists.entities.assist.fields.delegated-agent.title';\n });\n\n private readonly dataSourceName = computed<string>(() => {\n const ds = this.options()['dataSource'];\n if (typeof ds === 'string' && ds.trim() !== '') {\n return ds.trim();\n }\n return AI_AGENT_CATALOG_DATASOURCE_NAME;\n });\n\n private readonly asyncNamedDataSourceItems = signal<unknown[] | undefined>(undefined);\n\n protected listItems = computed<ItemConfiguratorListItem[]>(() => {\n const rows = this.asyncNamedDataSourceItems() ?? [];\n const list: ItemConfiguratorListItem[] = [];\n\n for (const row of rows) {\n const idRaw = get(row as object, 'id');\n const id = idRaw != null ? String(idRaw).trim() : '';\n if (!id) {\n continue;\n }\n\n const title = get(row as object, 'title') as unknown as AXPMultiLanguageString;\n const description = get(row as object, 'description') as unknown as AXPMultiLanguageString;\n const icon = get(row as object, 'icon') as unknown as string;\n const propertyDefinitions = resolvePropertyDefinitions(get(row as object, 'parameterDefinitions'));\n\n list.push({ id, title, description, icon, propertyDefinitions });\n }\n\n return sortByMultiLanguageString(list, (item) => item.title, this.translation.getActiveLang());\n });\n\n //#endregion\n\n //#region ---- State ----\n\n protected isInitialized = signal(false);\n\n //#endregion\n\n //#region ---- Models ----\n\n protected selectedItemIdModel = model<string>('');\n protected valuesModel = model<Record<string, unknown>>({});\n\n //#endregion\n\n //#region ---- Effects ----\n\n private loadNamedDataSourceEffect = effect((onCleanup) => {\n const name = this.dataSourceName();\n let cancelled = false;\n onCleanup(() => {\n cancelled = true;\n });\n\n void (async () => {\n try {\n const def = await this.dataSourceDefinitionService.get(name);\n if (cancelled) {\n return;\n }\n if (!def?.source) {\n this.asyncNamedDataSourceItems.set([]);\n return;\n }\n\n const source = def.source();\n const dataSource = source instanceof Promise ? await source : source;\n if (!dataSource) {\n this.asyncNamedDataSourceItems.set([]);\n return;\n }\n\n const dataSourceAny = dataSource as unknown as {\n config?: { load?: (event: unknown) => Promise<{ items?: unknown[] }> };\n };\n if (!dataSourceAny.config?.load) {\n this.asyncNamedDataSourceItems.set([]);\n return;\n }\n\n const loaded = await dataSourceAny.config.load({ skip: 0, take: 500 });\n if (cancelled) {\n return;\n }\n this.asyncNamedDataSourceItems.set(loaded.items ?? []);\n } catch {\n if (!cancelled) {\n this.asyncNamedDataSourceItems.set([]);\n }\n }\n })();\n });\n\n private syncValueToConfigurator = effect(() => {\n const value = this.getValue();\n\n if (value && value.type) {\n const currentSelected = untracked(() => this.selectedItemIdModel());\n const currentValues = untracked(() => this.valuesModel());\n const nextOptions = (value.options ?? {}) as Record<string, unknown>;\n\n if (value.type !== currentSelected || !isEqual(nextOptions, currentValues)) {\n untracked(() => {\n this.selectedItemIdModel.set(value.type);\n this.valuesModel.set(nextOptions);\n this.isInitialized.set(true);\n });\n }\n return;\n }\n\n untracked(() => {\n if (!this.isInitialized()) {\n this.selectedItemIdModel.set('');\n this.valuesModel.set({});\n this.isInitialized.set(true);\n }\n });\n });\n\n private syncConfiguratorToValue = effect(() => {\n const selectedId = this.selectedItemIdModel();\n const values = this.valuesModel();\n\n if (!untracked(() => this.isInitialized())) {\n return;\n }\n\n const currentValue = untracked(() => this.getValue());\n const empty: AXPWidgetNode = { type: '', options: {} };\n\n if (!selectedId) {\n if (!isEqual(currentValue ?? empty, empty)) {\n untracked(() => {\n this.setValue(empty);\n });\n }\n return;\n }\n\n const next: AXPWidgetNode = {\n ...(currentValue && typeof currentValue === 'object' ? currentValue : {}),\n type: selectedId,\n options: values as AXPOptionsData,\n };\n\n if (!isEqual(next, currentValue)) {\n untracked(() => {\n this.setValue(next);\n });\n }\n });\n\n //#endregion\n}\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction tryParseJsonIfString(value: unknown): unknown {\n if (typeof value === 'string' && value.trim() !== '') {\n try {\n return JSON.parse(value) as unknown;\n } catch {\n return value;\n }\n }\n return value;\n}\n\nfunction isWidgetPropertyArray(value: unknown): value is AXPWidgetProperty[] {\n if (!Array.isArray(value) || value.length === 0) {\n return false;\n }\n\n return value.every(\n (item) =>\n item != null &&\n typeof item === 'object' &&\n 'name' in item &&\n typeof (item as AXPWidgetProperty).name === 'string' &&\n 'schema' in item &&\n 'group' in item,\n );\n}\n\nfunction resolvePropertyDefinitions(rawValue: unknown): AXPWidgetProperty[] {\n const parsed = tryParseJsonIfString(rawValue);\n\n if (isWidgetPropertyArray(parsed)) {\n return parsed;\n }\n\n if (isDelegatedParameterDefinitionList(parsed)) {\n return mapDelegatedParameterDefinitionsToWidgetProperties(parsed);\n }\n\n return [];\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAqBA;;AAEG;AACG,SAAU,kDAAkD,CAChE,IAAiD,EAAA;AAEjD,IAAA,MAAM,YAAY,GAA2B;AAC3C,QAAA,IAAI,EAAE,4BAA4B;AAClC,QAAA,KAAK,EAAE,sBAAsB;AAC7B,QAAA,KAAK,EAAE,CAAC;KACT;IAED,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,KAAK,eAAe,IAAI,CAAC,CAAC,OAAO,KAAK,gBAAgB,CAAC;AACpG,IAAA,MAAM,MAAM,GACV,QAAQ,CAAC,MAAM,GAAG;AAChB,UAAE;UACA,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;AAErF,IAAA,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,KAAI;AACtB,QAAA,MAAM,KAAK,GAA2B,CAAC,CAAC;AACtC,cAAE;AACE,gBAAA,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI;AAClB,gBAAA,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK;AACpB,g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AAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AAC/C,QAAA,OAAO,KAAK;IACd;IAEA,OAAO,KAAK,CAAC,KAAK,CAChB,CAAC,IAAI,KACH,IAAI,IAAI,IAAI;QACZ,OAAO,IAAI,KAAK,QAAQ;AACxB,QAAA,MAAM,IAAI,IAAI;AACd,QAAA,OAAQ,IAA0B,CAAC,IAAI,KAAK,QAAQ;AACpD,QAAA,QAAQ,IAAI,IAAI;QAChB,OAAO,IAAI,IAAI,CAClB;AACH;AAEA,SAAS,0BAA0B,CAAC,QAAiB,EAAA;AACnD,IAAA,MAAM,MAAM,GAAG,oBAAoB,CAAC,QAAQ,CAAC;AAE7C,IAAA,IAAI,qBAAqB,CAAC,MAAM,CAAC,EAAE;AACjC,QAAA,OAAO,MAAM;IACf;AAEA,IAAA,IAAI,kCAAkC,CAAC,MAAM,CAAC,EAAE;AAC9C,QAAA,OAAO,kDAAkD,CAAC,MAAM,CAAC;IACnE;AAEA,IAAA,OAAO,EAAE;AACX;;;;"}
|
|
@@ -2171,7 +2171,7 @@ function isOutputKind(value) {
|
|
|
2171
2171
|
return value === 'string' || value === 'object' || value === 'array';
|
|
2172
2172
|
}
|
|
2173
2173
|
function isTranscriptSegment(value) {
|
|
2174
|
-
return value === 'text' || value === 'node' || value === 'followUp';
|
|
2174
|
+
return value === 'text' || value === 'node' || value === 'followUp' || value === 'file';
|
|
2175
2175
|
}
|
|
2176
2176
|
/** Resolved transcript mapping for an object contract (defaults to `text`). */
|
|
2177
2177
|
function resolveOutputTranscriptSegment(contract) {
|
|
@@ -3037,7 +3037,7 @@ async function runStructuredOutputPipeline(params) {
|
|
|
3037
3037
|
//#endregion
|
|
3038
3038
|
//#region ---- Segment id ----
|
|
3039
3039
|
function isOutputContractSegmentId(value) {
|
|
3040
|
-
return value === 'text' || value === 'node' || value === 'followUp';
|
|
3040
|
+
return value === 'text' || value === 'node' || value === 'followUp' || value === 'file';
|
|
3041
3041
|
}
|
|
3042
3042
|
//#endregion
|
|
3043
3043
|
class AXPAiOutputContractResolveService {
|
|
@@ -3605,10 +3605,10 @@ const AXMAssistDelegatedAgentConfiguratorWidget = {
|
|
|
3605
3605
|
],
|
|
3606
3606
|
components: {
|
|
3607
3607
|
edit: {
|
|
3608
|
-
component: () => import('./acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-
|
|
3608
|
+
component: () => import('./acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-BC6vzGG9.mjs').then((c) => c.AXMAssistDelegatedAgentConfiguratorWidgetEditComponent),
|
|
3609
3609
|
},
|
|
3610
3610
|
designer: {
|
|
3611
|
-
component: () => import('./acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-
|
|
3611
|
+
component: () => import('./acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-BC6vzGG9.mjs').then((c) => c.AXMAssistDelegatedAgentConfiguratorWidgetEditComponent),
|
|
3612
3612
|
},
|
|
3613
3613
|
column: {
|
|
3614
3614
|
component: () => import('./acorex-modules-ai-management-assist-delegated-agent-configurator-widget-column.component-DSC48iD0.mjs').then((c) => c.AXMAssistDelegatedAgentConfiguratorWidgetColumnComponent),
|
|
@@ -3669,6 +3669,15 @@ const AXM_BUILTIN_OUTPUT_CONTRACT_TRANSCRIPT_SEGMENT_DEFINITIONS = [
|
|
|
3669
3669
|
structuredRetries: 2,
|
|
3670
3670
|
},
|
|
3671
3671
|
},
|
|
3672
|
+
{
|
|
3673
|
+
name: 'file',
|
|
3674
|
+
title: '@ai-management:agents.entities.agent.fields.output-contract.transcript-segment.options.file',
|
|
3675
|
+
applicableKinds: ['string'],
|
|
3676
|
+
contract: {
|
|
3677
|
+
kind: 'string',
|
|
3678
|
+
instruction: 'Call AiManagement:ChatGenerateImage with a detailed prompt. On success the platform attaches the image as a chat file segment automatically. User-visible text: at most one friendly sentence (e.g. “Your cartoon version is ready.”). Never paste tool JSON, fileId, mimeType, or file metadata in text.',
|
|
3679
|
+
},
|
|
3680
|
+
},
|
|
3672
3681
|
];
|
|
3673
3682
|
//#endregion
|
|
3674
3683
|
//#region ---- Provider ----
|
|
@@ -4023,7 +4032,7 @@ function axpAiAssistStarterPromptLabelIsNonEmpty(text) {
|
|
|
4023
4032
|
/**
|
|
4024
4033
|
* Build-time only. Do not import from Angular modules.
|
|
4025
4034
|
*/
|
|
4026
|
-
/** Generates an image from a text prompt; model resolution: explicit input, then delegated specialist `options.model`, then mock catalog default (OpenAI gpt-image-1). */
|
|
4035
|
+
/** Generates an image from a text prompt; model resolution: explicit input, then delegated specialist `options.model`, then agent command default, then mock catalog default (OpenAI gpt-image-1). */
|
|
4027
4036
|
const AIMANAGEMENT_CHAT_GENERATE_IMAGE_COMMAND_KEY = 'AiManagement:ChatGenerateImage';
|
|
4028
4037
|
const aiManagementChatGenerateImageCommandDefinition = defineCommand({
|
|
4029
4038
|
key: AIMANAGEMENT_CHAT_GENERATE_IMAGE_COMMAND_KEY,
|
|
@@ -4034,8 +4043,23 @@ const aiManagementChatGenerateImageCommandDefinition = defineCommand({
|
|
|
4034
4043
|
{
|
|
4035
4044
|
name: 'model',
|
|
4036
4045
|
title: 'Model',
|
|
4037
|
-
description: 'Optional AiModel catalog row id (image purpose). When omitted, uses delegatedAgents[].options.model for the active delegated specialist (agentId in run context), then the mock default image model if still unset.',
|
|
4038
|
-
interface: {
|
|
4046
|
+
description: 'Optional AiModel catalog row id (image purpose). When omitted, uses delegatedAgents[].options.model for the active delegated specialist (agentId in run context), then the agent command default, then the mock default image model if still unset.',
|
|
4047
|
+
interface: {
|
|
4048
|
+
name: 'lookup-editor',
|
|
4049
|
+
options: {
|
|
4050
|
+
entity: 'AiManagement.AiModel',
|
|
4051
|
+
textField: 'title',
|
|
4052
|
+
valueField: 'id',
|
|
4053
|
+
look: 'select',
|
|
4054
|
+
allowSearch: true,
|
|
4055
|
+
columns: ['title', 'name'],
|
|
4056
|
+
filter: {
|
|
4057
|
+
field: 'modelPurposes',
|
|
4058
|
+
operator: { type: 'contains' },
|
|
4059
|
+
value: 'image',
|
|
4060
|
+
},
|
|
4061
|
+
},
|
|
4062
|
+
},
|
|
4039
4063
|
},
|
|
4040
4064
|
{
|
|
4041
4065
|
name: 'prompt',
|
|
@@ -4070,6 +4094,18 @@ const aiManagementChatGenerateImageCommandDefinition = defineCommand({
|
|
|
4070
4094
|
description: 'Original prompt text.',
|
|
4071
4095
|
interface: { name: 'text-editor' },
|
|
4072
4096
|
},
|
|
4097
|
+
{
|
|
4098
|
+
name: 'mimeType',
|
|
4099
|
+
title: 'MIME type',
|
|
4100
|
+
description: 'Image MIME type of the stored file (required for chat file replay).',
|
|
4101
|
+
interface: { name: 'text-editor' },
|
|
4102
|
+
},
|
|
4103
|
+
{
|
|
4104
|
+
name: 'name',
|
|
4105
|
+
title: 'File name',
|
|
4106
|
+
description: 'Stored file name shown in chat replay.',
|
|
4107
|
+
interface: { name: 'text-editor' },
|
|
4108
|
+
},
|
|
4073
4109
|
{
|
|
4074
4110
|
name: 'imageUrl',
|
|
4075
4111
|
title: 'Image URL',
|