@luzmo/ngx-analytics-components-kit 1.0.8-beta.4 → 1.0.8-beta.6
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/esm/components/ai-chat-empty-state.d.ts +1 -1
- package/esm/components/ai-chat.d.ts +14 -7
- package/esm/components/ai-chat.js +28 -4
- package/esm/components/ai-interaction-textarea.d.ts +4 -1
- package/esm/components/ai-interaction-textarea.js +9 -1
- package/esm/components/dataset-selector-row.d.ts +4 -1
- package/esm/components/dataset-selector-row.js +9 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { OnChanges, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import '@luzmo/analytics-components-kit/ai-chat';
|
|
3
3
|
import type { LuzmoAiChatEmptyState as LuzmoAiChatEmptyStateHostElement, AiChatEmptyStateSuggestion, AiChatEmptyStateSuggestionSelectedDetail } from '@luzmo/analytics-components-kit/ai-chat';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export type { AgentStreamDefinition, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatEmptyStateSuggestionSelectedDetail, AiChatMessageSentEventDetail, AiChatRecognizedStepType, AiChatSessionBuildContext, AiChatSessionCallbacks, AiChatSessionConfig, AiChatSessionControllerOptions, AiChatSessionRestoreParams, AiChatSessionRestoreResult, AiChatSessionSeed, AiChatSessionState, AiChatSessionSubmitParams, AiChatStepBase, AiChatStepEvent, AiDictationCreateBody, AiDictationProperties, AiPromptCreateBody, AiPromptDeleteBody, AssistantMessageAction, AssistantMessageActionConfirmVariant, AssistantMessageActionEventDetail, BuildAiDictationRequestOptions, LuzmoPromptSubmittedEventDetail, LuzmoRestoreRequestedEventDetail, ProgressTreeNode, PromptBoxAttachment, PromptBoxFileIcons, RecognizedStepEvent, StreamAiDictationOptions, StreamHandlerCallbacks, StreamHandlerContext, StreamHandlerState, StreamingRequestOptions, StreamingResponse, UnknownStepEvent, UploadAiPromptImagesOptions } from '@luzmo/analytics-components-kit/ai-chat';
|
|
5
|
+
export type { AgentStreamDefinition, AiChatAgentConfig, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatEmptyStateSuggestionSelectedDetail, AiChatMessageSentEventDetail, AiChatRecognizedStepType, AiChatSessionBuildContext, AiChatSessionCallbacks, AiChatSessionConfig, AiChatSessionControllerOptions, AiChatSessionRestoreParams, AiChatSessionRestoreResult, AiChatSessionSeed, AiChatSessionState, AiChatSessionSubmitParams, AiChatStepBase, AiChatStepEvent, AiDictationCreateBody, AiDictationProperties, AiPromptCreateBody, AiPromptDeleteBody, AssistantMessageAction, AssistantMessageActionConfirmVariant, AssistantMessageActionEventDetail, BuildAiDictationRequestOptions, ChatMessageElicitation, LuzmoPromptSubmittedEventDetail, LuzmoRestoreRequestedEventDetail, ProgressTreeNode, PromptBoxAttachment, PromptBoxFileIcons, RecognizedStepEvent, StreamAiDictationOptions, StreamHandlerCallbacks, StreamHandlerContext, StreamHandlerState, StreamingRequestOptions, StreamingResponse, UnknownStepEvent, UploadAiPromptImagesOptions } from '@luzmo/analytics-components-kit/ai-chat';
|
|
6
6
|
export declare class LuzmoAiChatEmptyState implements OnChanges {
|
|
7
7
|
private readonly elementRef;
|
|
8
8
|
private readonly renderer;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import '@luzmo/analytics-components-kit/ai-chat';
|
|
3
|
-
import type { LuzmoAiChat as LuzmoAiChatHostElement, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatMessageSentEventDetail, AiChatSession, AiChatStepEvent, AssistantMessageActionEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
|
|
4
|
-
import type { AiPromptAgent, AiPromptItemTask, AiPromptScreenMode, DashboardStatePayload } from '@luzmo/analytics-components-kit/ai-chat';
|
|
3
|
+
import type { LuzmoAiChat as LuzmoAiChatHostElement, AiChatAgentConfig, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatMessageSentEventDetail, AiChatSession, AiChatStepEvent, AssistantMessageActionEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
|
|
4
|
+
import type { AiPromptAgent, AiPromptCustomItemInput, AiPromptItemTask, AiPromptScreenMode, DashboardStatePayload } from '@luzmo/analytics-components-kit/ai-chat';
|
|
5
5
|
import type { ChatMessage, Dataset, LuzmoChart } from '@luzmo/analytics-components-kit/types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export type { AgentStreamDefinition, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatEmptyStateSuggestionSelectedDetail, AiChatMessageSentEventDetail, AiChatRecognizedStepType, AiChatSessionBuildContext, AiChatSessionCallbacks, AiChatSessionConfig, AiChatSessionControllerOptions, AiChatSessionRestoreParams, AiChatSessionRestoreResult, AiChatSessionSeed, AiChatSessionState, AiChatSessionSubmitParams, AiChatStepBase, AiChatStepEvent, AiDictationCreateBody, AiDictationProperties, AiPromptCreateBody, AiPromptDeleteBody, AssistantMessageAction, AssistantMessageActionConfirmVariant, AssistantMessageActionEventDetail, BuildAiDictationRequestOptions, LuzmoPromptSubmittedEventDetail, LuzmoRestoreRequestedEventDetail, ProgressTreeNode, PromptBoxAttachment, PromptBoxFileIcons, RecognizedStepEvent, StreamAiDictationOptions, StreamHandlerCallbacks, StreamHandlerContext, StreamHandlerState, StreamingRequestOptions, StreamingResponse, UnknownStepEvent, UploadAiPromptImagesOptions } from '@luzmo/analytics-components-kit/ai-chat';
|
|
7
|
+
export type { AgentStreamDefinition, AiChatAgentConfig, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatEmptyStateSuggestionSelectedDetail, AiChatMessageSentEventDetail, AiChatRecognizedStepType, AiChatSessionBuildContext, AiChatSessionCallbacks, AiChatSessionConfig, AiChatSessionControllerOptions, AiChatSessionRestoreParams, AiChatSessionRestoreResult, AiChatSessionSeed, AiChatSessionState, AiChatSessionSubmitParams, AiChatStepBase, AiChatStepEvent, AiDictationCreateBody, AiDictationProperties, AiPromptCreateBody, AiPromptDeleteBody, AssistantMessageAction, AssistantMessageActionConfirmVariant, AssistantMessageActionEventDetail, BuildAiDictationRequestOptions, ChatMessageElicitation, LuzmoPromptSubmittedEventDetail, LuzmoRestoreRequestedEventDetail, ProgressTreeNode, PromptBoxAttachment, PromptBoxFileIcons, RecognizedStepEvent, StreamAiDictationOptions, StreamHandlerCallbacks, StreamHandlerContext, StreamHandlerState, StreamingRequestOptions, StreamingResponse, UnknownStepEvent, UploadAiPromptImagesOptions } from '@luzmo/analytics-components-kit/ai-chat';
|
|
8
8
|
export declare class LuzmoAiChat implements OnChanges {
|
|
9
9
|
private readonly elementRef;
|
|
10
10
|
private readonly renderer;
|
|
@@ -45,6 +45,8 @@ export declare class LuzmoAiChat implements OnChanges {
|
|
|
45
45
|
disableDatasetModification?: boolean;
|
|
46
46
|
/** When true, hides the dataset row and add-dataset button entirely */
|
|
47
47
|
hideSelectedDatasets?: boolean;
|
|
48
|
+
/** When true, hides the Agents section in the input and runs prompts without a picked agent */
|
|
49
|
+
hideAgents?: boolean;
|
|
48
50
|
/** When true, disables @ trigger mentions for dataset fields in the input */
|
|
49
51
|
disableColumnMentions?: boolean;
|
|
50
52
|
/** When true, a picked agent or at least one selected dataset is required before the prompt can be submitted */
|
|
@@ -57,8 +59,10 @@ export declare class LuzmoAiChat implements OnChanges {
|
|
|
57
59
|
acceptedFileTypes?: string[];
|
|
58
60
|
/** Optional upload override; otherwise uploads via `POST /upload` on attach. */
|
|
59
61
|
uploadAttachments?: unknown;
|
|
60
|
-
/** Which aiprompt agent to use. Determines request payload and stream handling. With `agent-id` set it no longer shapes the request payload, only stream handling. */
|
|
62
|
+
/** Which aiprompt agent to use (`item`, `dashboard`, `analyst` or `custom-item`). Determines request payload and stream handling. With `agent-id` set it no longer shapes the request payload, only stream handling. Custom-item hosts must set `hide-agents` and leave `agent-id` unset to preserve draft context and internal repair prompts. */
|
|
61
63
|
agent?: AiPromptAgent;
|
|
64
|
+
/** Typed agent selection and context. Takes precedence over legacy agent, task and context properties. Omit context to preserve the same agent's session context; use null to clear it. Undefined leaves a host session's typed configuration intact and uses legacy properties for an internal session. */
|
|
65
|
+
agentConfig?: AiChatAgentConfig;
|
|
62
66
|
/** Saved Agent id (UUID) to run the prompt as. An agent picked in the prompt box takes precedence for that prompt. */
|
|
63
67
|
agentId?: string;
|
|
64
68
|
/** Task for the item agent (`generate`, `suggest`, `describe`). Ignored when `agent-id` is set. */
|
|
@@ -73,6 +77,8 @@ export declare class LuzmoAiChat implements OnChanges {
|
|
|
73
77
|
chart?: LuzmoChart | null;
|
|
74
78
|
/** Dashboard context for `agent="dashboard"`. */
|
|
75
79
|
dashboard?: DashboardStatePayload | null;
|
|
80
|
+
/** Draft context for `agent="custom-item"`, sent as its `custom-item` input. The host owns the shape: the chart document under `document`, plus fields such as `chartId`. With a host `chatSession`, the default null preserves its draft. Once this element supplies a draft, setting this property to null clears the session's custom item context. */
|
|
81
|
+
customItem?: AiPromptCustomItemInput['value'] | null;
|
|
76
82
|
/** Current screen mode when editing a dashboard. */
|
|
77
83
|
currentScreenMode?: AiPromptScreenMode;
|
|
78
84
|
/** Locale ID sent to the aiprompt API. */
|
|
@@ -99,9 +105,9 @@ export declare class LuzmoAiChat implements OnChanges {
|
|
|
99
105
|
readonly luzmoMessageSent: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatMessageSentEventDetail>>;
|
|
100
106
|
/** Fired when the selected datasets change */
|
|
101
107
|
readonly luzmoDatasetsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatDatasetsChangedEventDetail>>;
|
|
102
|
-
/** Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow. */
|
|
108
|
+
/** Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, custom-item, elicitation, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow. */
|
|
103
109
|
readonly luzmoStep: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatStepEvent>>;
|
|
104
|
-
/** Fired exactly once per response with the authoritative final result (dashboard/chart/name) or an `error`. */
|
|
110
|
+
/** Fired exactly once per response with the authoritative final result (dashboard/chart/name/customItem) or an `error`. */
|
|
105
111
|
readonly luzmoComplete: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatCompleteEvent>>;
|
|
106
112
|
/** Fired when an in-flight prompt is stopped Custom actions beyond built-in `ChatMessage.actions` buttons can be projected via the `assistant-message-actions` light-DOM slot on the latest assistant message. */
|
|
107
113
|
readonly luzmoStop: import("@angular/core").OutputEmitterRef<CustomEvent<void>>;
|
|
@@ -120,7 +126,7 @@ export declare class LuzmoAiChat implements OnChanges {
|
|
|
120
126
|
private setHostProperty;
|
|
121
127
|
private bindEvents;
|
|
122
128
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiChat, never>;
|
|
123
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiChat, "luzmo-ai-chat", ["luzmoAiChat"], { "messages": { "alias": "messages"; "required": false; }; "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "stoppable": { "alias": "stoppable"; "required": false; }; "showAssistantContextMenu": { "alias": "showAssistantContextMenu"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "hideDatasetButton": { "alias": "hideDatasetButton"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideSelectedDatasets": { "alias": "hideSelectedDatasets"; "required": false; }; "disableColumnMentions": { "alias": "disableColumnMentions"; "required": false; }; "requireDataset": { "alias": "requireDataset"; "required": false; }; "allowImages": { "alias": "allowImages"; "required": false; }; "allowVoiceInput": { "alias": "allowVoiceInput"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "uploadAttachments": { "alias": "uploadAttachments"; "required": false; }; "agent": { "alias": "agent"; "required": false; }; "agentId": { "alias": "agentId"; "required": false; }; "task": { "alias": "task"; "required": false; }; "modelPreference": { "alias": "modelPreference"; "required": false; }; "chatSession": { "alias": "chatSession"; "required": false; }; "conversationId": { "alias": "conversationId"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; "dashboard": { "alias": "dashboard"; "required": false; }; "currentScreenMode": { "alias": "currentScreenMode"; "required": false; }; "localeId": { "alias": "localeId"; "required": false; }; "timezoneId": { "alias": "timezoneId"; "required": false; }; "apiVersion": { "alias": "apiVersion"; "required": false; }; "stream": { "alias": "stream"; "required": false; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; }; "cancelledMessage": { "alias": "cancelledMessage"; "required": false; }; "initialPrompt": { "alias": "initialPrompt"; "required": false; }; "emptyStateTitle": { "alias": "emptyStateTitle"; "required": false; }; "emptyStateSubtitle": { "alias": "emptyStateSubtitle"; "required": false; }; "emptyStateSuggestions": { "alias": "emptyStateSuggestions"; "required": false; }; }, { "luzmoMessageSent": "luzmoMessageSent"; "luzmoDatasetsChanged": "luzmoDatasetsChanged"; "luzmoStep": "luzmoStep"; "luzmoComplete": "luzmoComplete"; "luzmoStop": "luzmoStop"; "luzmoConversationIdChanged": "luzmoConversationIdChanged"; "luzmoAssistantMessageAction": "luzmoAssistantMessageAction"; }, never, ["*"], true, never>;
|
|
129
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiChat, "luzmo-ai-chat", ["luzmoAiChat"], { "messages": { "alias": "messages"; "required": false; }; "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "stoppable": { "alias": "stoppable"; "required": false; }; "showAssistantContextMenu": { "alias": "showAssistantContextMenu"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "hideDatasetButton": { "alias": "hideDatasetButton"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideSelectedDatasets": { "alias": "hideSelectedDatasets"; "required": false; }; "hideAgents": { "alias": "hideAgents"; "required": false; }; "disableColumnMentions": { "alias": "disableColumnMentions"; "required": false; }; "requireDataset": { "alias": "requireDataset"; "required": false; }; "allowImages": { "alias": "allowImages"; "required": false; }; "allowVoiceInput": { "alias": "allowVoiceInput"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "uploadAttachments": { "alias": "uploadAttachments"; "required": false; }; "agent": { "alias": "agent"; "required": false; }; "agentConfig": { "alias": "agentConfig"; "required": false; }; "agentId": { "alias": "agentId"; "required": false; }; "task": { "alias": "task"; "required": false; }; "modelPreference": { "alias": "modelPreference"; "required": false; }; "chatSession": { "alias": "chatSession"; "required": false; }; "conversationId": { "alias": "conversationId"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; "dashboard": { "alias": "dashboard"; "required": false; }; "customItem": { "alias": "customItem"; "required": false; }; "currentScreenMode": { "alias": "currentScreenMode"; "required": false; }; "localeId": { "alias": "localeId"; "required": false; }; "timezoneId": { "alias": "timezoneId"; "required": false; }; "apiVersion": { "alias": "apiVersion"; "required": false; }; "stream": { "alias": "stream"; "required": false; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; }; "cancelledMessage": { "alias": "cancelledMessage"; "required": false; }; "initialPrompt": { "alias": "initialPrompt"; "required": false; }; "emptyStateTitle": { "alias": "emptyStateTitle"; "required": false; }; "emptyStateSubtitle": { "alias": "emptyStateSubtitle"; "required": false; }; "emptyStateSuggestions": { "alias": "emptyStateSuggestions"; "required": false; }; }, { "luzmoMessageSent": "luzmoMessageSent"; "luzmoDatasetsChanged": "luzmoDatasetsChanged"; "luzmoStep": "luzmoStep"; "luzmoComplete": "luzmoComplete"; "luzmoStop": "luzmoStop"; "luzmoConversationIdChanged": "luzmoConversationIdChanged"; "luzmoAssistantMessageAction": "luzmoAssistantMessageAction"; }, never, ["*"], true, never>;
|
|
124
130
|
static ngAcceptInputType_disabled: unknown;
|
|
125
131
|
static ngAcceptInputType_stoppable: unknown;
|
|
126
132
|
static ngAcceptInputType_showAssistantContextMenu: unknown;
|
|
@@ -130,6 +136,7 @@ export declare class LuzmoAiChat implements OnChanges {
|
|
|
130
136
|
static ngAcceptInputType_hideDatasetIcons: unknown;
|
|
131
137
|
static ngAcceptInputType_disableDatasetModification: unknown;
|
|
132
138
|
static ngAcceptInputType_hideSelectedDatasets: unknown;
|
|
139
|
+
static ngAcceptInputType_hideAgents: unknown;
|
|
133
140
|
static ngAcceptInputType_disableColumnMentions: unknown;
|
|
134
141
|
static ngAcceptInputType_requireDataset: unknown;
|
|
135
142
|
static ngAcceptInputType_allowImages: unknown;
|
|
@@ -47,6 +47,8 @@ export class LuzmoAiChat {
|
|
|
47
47
|
disableDatasetModification;
|
|
48
48
|
/** When true, hides the dataset row and add-dataset button entirely */
|
|
49
49
|
hideSelectedDatasets;
|
|
50
|
+
/** When true, hides the Agents section in the input and runs prompts without a picked agent */
|
|
51
|
+
hideAgents;
|
|
50
52
|
/** When true, disables @ trigger mentions for dataset fields in the input */
|
|
51
53
|
disableColumnMentions;
|
|
52
54
|
/** When true, a picked agent or at least one selected dataset is required before the prompt can be submitted */
|
|
@@ -59,8 +61,10 @@ export class LuzmoAiChat {
|
|
|
59
61
|
acceptedFileTypes;
|
|
60
62
|
/** Optional upload override; otherwise uploads via `POST /upload` on attach. */
|
|
61
63
|
uploadAttachments;
|
|
62
|
-
/** Which aiprompt agent to use. Determines request payload and stream handling. With `agent-id` set it no longer shapes the request payload, only stream handling. */
|
|
64
|
+
/** Which aiprompt agent to use (`item`, `dashboard`, `analyst` or `custom-item`). Determines request payload and stream handling. With `agent-id` set it no longer shapes the request payload, only stream handling. Custom-item hosts must set `hide-agents` and leave `agent-id` unset to preserve draft context and internal repair prompts. */
|
|
63
65
|
agent;
|
|
66
|
+
/** Typed agent selection and context. Takes precedence over legacy agent, task and context properties. Omit context to preserve the same agent's session context; use null to clear it. Undefined leaves a host session's typed configuration intact and uses legacy properties for an internal session. */
|
|
67
|
+
agentConfig;
|
|
64
68
|
/** Saved Agent id (UUID) to run the prompt as. An agent picked in the prompt box takes precedence for that prompt. */
|
|
65
69
|
agentId;
|
|
66
70
|
/** Task for the item agent (`generate`, `suggest`, `describe`). Ignored when `agent-id` is set. */
|
|
@@ -75,6 +79,8 @@ export class LuzmoAiChat {
|
|
|
75
79
|
chart;
|
|
76
80
|
/** Dashboard context for `agent="dashboard"`. */
|
|
77
81
|
dashboard;
|
|
82
|
+
/** Draft context for `agent="custom-item"`, sent as its `custom-item` input. The host owns the shape: the chart document under `document`, plus fields such as `chartId`. With a host `chatSession`, the default null preserves its draft. Once this element supplies a draft, setting this property to null clears the session's custom item context. */
|
|
83
|
+
customItem;
|
|
78
84
|
/** Current screen mode when editing a dashboard. */
|
|
79
85
|
currentScreenMode;
|
|
80
86
|
/** Locale ID sent to the aiprompt API. */
|
|
@@ -101,9 +107,9 @@ export class LuzmoAiChat {
|
|
|
101
107
|
luzmoMessageSent = output({ alias: 'luzmoMessageSent' });
|
|
102
108
|
/** Fired when the selected datasets change */
|
|
103
109
|
luzmoDatasetsChanged = output({ alias: 'luzmoDatasetsChanged' });
|
|
104
|
-
/** Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow. */
|
|
110
|
+
/** Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, custom-item, elicitation, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow. */
|
|
105
111
|
luzmoStep = output({ alias: 'luzmoStep' });
|
|
106
|
-
/** Fired exactly once per response with the authoritative final result (dashboard/chart/name) or an `error`. */
|
|
112
|
+
/** Fired exactly once per response with the authoritative final result (dashboard/chart/name/customItem) or an `error`. */
|
|
107
113
|
luzmoComplete = output({ alias: 'luzmoComplete' });
|
|
108
114
|
/** Fired when an in-flight prompt is stopped Custom actions beyond built-in `ChatMessage.actions` buttons can be projected via the `assistant-message-actions` light-DOM slot on the latest assistant message. */
|
|
109
115
|
luzmoStop = output({ alias: 'luzmoStop' });
|
|
@@ -170,6 +176,9 @@ export class LuzmoAiChat {
|
|
|
170
176
|
case 'hideSelectedDatasets':
|
|
171
177
|
this.setHostProperty('hideSelectedDatasets', changes['hideSelectedDatasets'].currentValue);
|
|
172
178
|
break;
|
|
179
|
+
case 'hideAgents':
|
|
180
|
+
this.setHostProperty('hideAgents', changes['hideAgents'].currentValue);
|
|
181
|
+
break;
|
|
173
182
|
case 'disableColumnMentions':
|
|
174
183
|
this.setHostProperty('disableColumnMentions', changes['disableColumnMentions'].currentValue);
|
|
175
184
|
break;
|
|
@@ -191,6 +200,9 @@ export class LuzmoAiChat {
|
|
|
191
200
|
case 'agent':
|
|
192
201
|
this.setHostProperty('agent', changes['agent'].currentValue);
|
|
193
202
|
break;
|
|
203
|
+
case 'agentConfig':
|
|
204
|
+
this.setHostProperty('agentConfig', changes['agentConfig'].currentValue);
|
|
205
|
+
break;
|
|
194
206
|
case 'agentId':
|
|
195
207
|
this.setHostProperty('agentId', changes['agentId'].currentValue);
|
|
196
208
|
break;
|
|
@@ -212,6 +224,9 @@ export class LuzmoAiChat {
|
|
|
212
224
|
case 'dashboard':
|
|
213
225
|
this.setHostProperty('dashboard', changes['dashboard'].currentValue);
|
|
214
226
|
break;
|
|
227
|
+
case 'customItem':
|
|
228
|
+
this.setHostProperty('customItem', changes['customItem'].currentValue);
|
|
229
|
+
break;
|
|
215
230
|
case 'currentScreenMode':
|
|
216
231
|
this.setHostProperty('currentScreenMode', changes['currentScreenMode'].currentValue);
|
|
217
232
|
break;
|
|
@@ -290,7 +305,7 @@ export class LuzmoAiChat {
|
|
|
290
305
|
}));
|
|
291
306
|
}
|
|
292
307
|
static ɵfac = function LuzmoAiChat_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiChat)(); };
|
|
293
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiChat, selectors: [["luzmo-ai-chat"]], inputs: { messages: "messages", selectedDatasets: "selectedDatasets", placeholder: "placeholder", disabled: [2, "disabled", "disabled", booleanAttribute], stoppable: [2, "stoppable", "stoppable", booleanAttribute], showAssistantContextMenu: [2, "showAssistantContextMenu", "showAssistantContextMenu", booleanAttribute], authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], hideDatasetButton: [2, "hideDatasetButton", "hideDatasetButton", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideSelectedDatasets: [2, "hideSelectedDatasets", "hideSelectedDatasets", booleanAttribute], disableColumnMentions: [2, "disableColumnMentions", "disableColumnMentions", booleanAttribute], requireDataset: [2, "requireDataset", "requireDataset", booleanAttribute], allowImages: [2, "allowImages", "allowImages", booleanAttribute], allowVoiceInput: [2, "allowVoiceInput", "allowVoiceInput", booleanAttribute], acceptedFileTypes: "acceptedFileTypes", uploadAttachments: "uploadAttachments", agent: "agent", agentId: "agentId", task: "task", modelPreference: "modelPreference", chatSession: "chatSession", conversationId: "conversationId", chart: "chart", dashboard: "dashboard", currentScreenMode: "currentScreenMode", localeId: "localeId", timezoneId: "timezoneId", apiVersion: "apiVersion", stream: [2, "stream", "stream", booleanAttribute], loadingMessage: "loadingMessage", cancelledMessage: "cancelledMessage", initialPrompt: "initialPrompt", emptyStateTitle: "emptyStateTitle", emptyStateSubtitle: "emptyStateSubtitle", emptyStateSuggestions: "emptyStateSuggestions" }, outputs: { luzmoMessageSent: "luzmoMessageSent", luzmoDatasetsChanged: "luzmoDatasetsChanged", luzmoStep: "luzmoStep", luzmoComplete: "luzmoComplete", luzmoStop: "luzmoStop", luzmoConversationIdChanged: "luzmoConversationIdChanged", luzmoAssistantMessageAction: "luzmoAssistantMessageAction" }, exportAs: ["luzmoAiChat"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiChat_Template(rf, ctx) { if (rf & 1) {
|
|
308
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiChat, selectors: [["luzmo-ai-chat"]], inputs: { messages: "messages", selectedDatasets: "selectedDatasets", placeholder: "placeholder", disabled: [2, "disabled", "disabled", booleanAttribute], stoppable: [2, "stoppable", "stoppable", booleanAttribute], showAssistantContextMenu: [2, "showAssistantContextMenu", "showAssistantContextMenu", booleanAttribute], authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], hideDatasetButton: [2, "hideDatasetButton", "hideDatasetButton", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideSelectedDatasets: [2, "hideSelectedDatasets", "hideSelectedDatasets", booleanAttribute], hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], disableColumnMentions: [2, "disableColumnMentions", "disableColumnMentions", booleanAttribute], requireDataset: [2, "requireDataset", "requireDataset", booleanAttribute], allowImages: [2, "allowImages", "allowImages", booleanAttribute], allowVoiceInput: [2, "allowVoiceInput", "allowVoiceInput", booleanAttribute], acceptedFileTypes: "acceptedFileTypes", uploadAttachments: "uploadAttachments", agent: "agent", agentConfig: "agentConfig", agentId: "agentId", task: "task", modelPreference: "modelPreference", chatSession: "chatSession", conversationId: "conversationId", chart: "chart", dashboard: "dashboard", customItem: "customItem", currentScreenMode: "currentScreenMode", localeId: "localeId", timezoneId: "timezoneId", apiVersion: "apiVersion", stream: [2, "stream", "stream", booleanAttribute], loadingMessage: "loadingMessage", cancelledMessage: "cancelledMessage", initialPrompt: "initialPrompt", emptyStateTitle: "emptyStateTitle", emptyStateSubtitle: "emptyStateSubtitle", emptyStateSuggestions: "emptyStateSuggestions" }, outputs: { luzmoMessageSent: "luzmoMessageSent", luzmoDatasetsChanged: "luzmoDatasetsChanged", luzmoStep: "luzmoStep", luzmoComplete: "luzmoComplete", luzmoStop: "luzmoStop", luzmoConversationIdChanged: "luzmoConversationIdChanged", luzmoAssistantMessageAction: "luzmoAssistantMessageAction" }, exportAs: ["luzmoAiChat"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiChat_Template(rf, ctx) { if (rf & 1) {
|
|
294
309
|
i0.ɵɵprojectionDef();
|
|
295
310
|
i0.ɵɵprojection(0);
|
|
296
311
|
} }, encapsulation: 2 });
|
|
@@ -352,6 +367,9 @@ export class LuzmoAiChat {
|
|
|
352
367
|
}], hideSelectedDatasets: [{
|
|
353
368
|
type: Input,
|
|
354
369
|
args: [{ alias: 'hideSelectedDatasets', transform: booleanAttribute }]
|
|
370
|
+
}], hideAgents: [{
|
|
371
|
+
type: Input,
|
|
372
|
+
args: [{ alias: 'hideAgents', transform: booleanAttribute }]
|
|
355
373
|
}], disableColumnMentions: [{
|
|
356
374
|
type: Input,
|
|
357
375
|
args: [{ alias: 'disableColumnMentions', transform: booleanAttribute }]
|
|
@@ -373,6 +391,9 @@ export class LuzmoAiChat {
|
|
|
373
391
|
}], agent: [{
|
|
374
392
|
type: Input,
|
|
375
393
|
args: [{ alias: 'agent' }]
|
|
394
|
+
}], agentConfig: [{
|
|
395
|
+
type: Input,
|
|
396
|
+
args: [{ alias: 'agentConfig' }]
|
|
376
397
|
}], agentId: [{
|
|
377
398
|
type: Input,
|
|
378
399
|
args: [{ alias: 'agentId' }]
|
|
@@ -394,6 +415,9 @@ export class LuzmoAiChat {
|
|
|
394
415
|
}], dashboard: [{
|
|
395
416
|
type: Input,
|
|
396
417
|
args: [{ alias: 'dashboard' }]
|
|
418
|
+
}], customItem: [{
|
|
419
|
+
type: Input,
|
|
420
|
+
args: [{ alias: 'customItem' }]
|
|
397
421
|
}], currentScreenMode: [{
|
|
398
422
|
type: Input,
|
|
399
423
|
args: [{ alias: 'currentScreenMode' }]
|
|
@@ -39,6 +39,8 @@ export declare class LuzmoAiInteractionTextarea implements OnChanges {
|
|
|
39
39
|
maxVisibleSelectedDatasets?: number;
|
|
40
40
|
/** The saved Agent the prompt is scoped to, or null */
|
|
41
41
|
selectedAgent?: Agent | null;
|
|
42
|
+
/** When true, hides the Agents section in the add dropdown and ignores `selectedAgent` for `require-dataset` and `prompt-submitted` */
|
|
43
|
+
hideAgents?: boolean;
|
|
42
44
|
/** When true, disables the "+ Add dataset" button and disables dataset pill removal */
|
|
43
45
|
disableDatasetModification?: boolean;
|
|
44
46
|
/** When true, hides the dataset row entirely */
|
|
@@ -82,13 +84,14 @@ export declare class LuzmoAiInteractionTextarea implements OnChanges {
|
|
|
82
84
|
private setHostProperty;
|
|
83
85
|
private bindEvents;
|
|
84
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiInteractionTextarea, never>;
|
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiInteractionTextarea, "luzmo-ai-interaction-textarea", ["luzmoAiInteractionTextarea"], { "placeholder": { "alias": "placeholder"; "required": false; }; "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "singleLine": { "alias": "singleLine"; "required": false; }; "hideDatasetButton": { "alias": "hideDatasetButton"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "maxVisibleSelectedDatasets": { "alias": "maxVisibleSelectedDatasets"; "required": false; }; "selectedAgent": { "alias": "selectedAgent"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideSelectedDatasets": { "alias": "hideSelectedDatasets"; "required": false; }; "disableColumnMentions": { "alias": "disableColumnMentions"; "required": false; }; "isGenerating": { "alias": "isGenerating"; "required": false; }; "stoppable": { "alias": "stoppable"; "required": false; }; "value": { "alias": "value"; "required": false; }; "retainOnSubmit": { "alias": "retainOnSubmit"; "required": false; }; "requireDataset": { "alias": "requireDataset"; "required": false; }; "allowImages": { "alias": "allowImages"; "required": false; }; "allowVoiceInput": { "alias": "allowVoiceInput"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "apiVersion": { "alias": "apiVersion"; "required": false; }; "uploadAttachments": { "alias": "uploadAttachments"; "required": false; }; "fileIcons": { "alias": "fileIcons"; "required": false; }; }, { "promptSubmitted": "promptSubmitted"; "promptStopped": "promptStopped"; }, never, ["*"], true, never>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiInteractionTextarea, "luzmo-ai-interaction-textarea", ["luzmoAiInteractionTextarea"], { "placeholder": { "alias": "placeholder"; "required": false; }; "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "singleLine": { "alias": "singleLine"; "required": false; }; "hideDatasetButton": { "alias": "hideDatasetButton"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "maxVisibleSelectedDatasets": { "alias": "maxVisibleSelectedDatasets"; "required": false; }; "selectedAgent": { "alias": "selectedAgent"; "required": false; }; "hideAgents": { "alias": "hideAgents"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideSelectedDatasets": { "alias": "hideSelectedDatasets"; "required": false; }; "disableColumnMentions": { "alias": "disableColumnMentions"; "required": false; }; "isGenerating": { "alias": "isGenerating"; "required": false; }; "stoppable": { "alias": "stoppable"; "required": false; }; "value": { "alias": "value"; "required": false; }; "retainOnSubmit": { "alias": "retainOnSubmit"; "required": false; }; "requireDataset": { "alias": "requireDataset"; "required": false; }; "allowImages": { "alias": "allowImages"; "required": false; }; "allowVoiceInput": { "alias": "allowVoiceInput"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "apiVersion": { "alias": "apiVersion"; "required": false; }; "uploadAttachments": { "alias": "uploadAttachments"; "required": false; }; "fileIcons": { "alias": "fileIcons"; "required": false; }; }, { "promptSubmitted": "promptSubmitted"; "promptStopped": "promptStopped"; }, never, ["*"], true, never>;
|
|
86
88
|
static ngAcceptInputType_includePublicDatasets: unknown;
|
|
87
89
|
static ngAcceptInputType_flagOpendata: unknown;
|
|
88
90
|
static ngAcceptInputType_disabled: unknown;
|
|
89
91
|
static ngAcceptInputType_singleLine: unknown;
|
|
90
92
|
static ngAcceptInputType_hideDatasetButton: unknown;
|
|
91
93
|
static ngAcceptInputType_hideDatasetIcons: unknown;
|
|
94
|
+
static ngAcceptInputType_hideAgents: unknown;
|
|
92
95
|
static ngAcceptInputType_disableDatasetModification: unknown;
|
|
93
96
|
static ngAcceptInputType_hideSelectedDatasets: unknown;
|
|
94
97
|
static ngAcceptInputType_disableColumnMentions: unknown;
|
|
@@ -43,6 +43,8 @@ export class LuzmoAiInteractionTextarea {
|
|
|
43
43
|
maxVisibleSelectedDatasets;
|
|
44
44
|
/** The saved Agent the prompt is scoped to, or null */
|
|
45
45
|
selectedAgent;
|
|
46
|
+
/** When true, hides the Agents section in the add dropdown and ignores `selectedAgent` for `require-dataset` and `prompt-submitted` */
|
|
47
|
+
hideAgents;
|
|
46
48
|
/** When true, disables the "+ Add dataset" button and disables dataset pill removal */
|
|
47
49
|
disableDatasetModification;
|
|
48
50
|
/** When true, hides the dataset row entirely */
|
|
@@ -128,6 +130,9 @@ export class LuzmoAiInteractionTextarea {
|
|
|
128
130
|
case 'selectedAgent':
|
|
129
131
|
this.setHostProperty('selectedAgent', changes['selectedAgent'].currentValue);
|
|
130
132
|
break;
|
|
133
|
+
case 'hideAgents':
|
|
134
|
+
this.setHostProperty('hideAgents', changes['hideAgents'].currentValue);
|
|
135
|
+
break;
|
|
131
136
|
case 'disableDatasetModification':
|
|
132
137
|
this.setHostProperty('disableDatasetModification', changes['disableDatasetModification'].currentValue);
|
|
133
138
|
break;
|
|
@@ -195,7 +200,7 @@ export class LuzmoAiInteractionTextarea {
|
|
|
195
200
|
}));
|
|
196
201
|
}
|
|
197
202
|
static ɵfac = function LuzmoAiInteractionTextarea_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiInteractionTextarea)(); };
|
|
198
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiInteractionTextarea, selectors: [["luzmo-ai-interaction-textarea"]], inputs: { placeholder: "placeholder", selectedDatasets: "selectedDatasets", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], singleLine: [2, "singleLine", "singleLine", booleanAttribute], hideDatasetButton: [2, "hideDatasetButton", "hideDatasetButton", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], maxVisibleSelectedDatasets: "maxVisibleSelectedDatasets", selectedAgent: "selectedAgent", disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideSelectedDatasets: [2, "hideSelectedDatasets", "hideSelectedDatasets", booleanAttribute], disableColumnMentions: [2, "disableColumnMentions", "disableColumnMentions", booleanAttribute], isGenerating: [2, "isGenerating", "isGenerating", booleanAttribute], stoppable: [2, "stoppable", "stoppable", booleanAttribute], value: "value", retainOnSubmit: [2, "retainOnSubmit", "retainOnSubmit", booleanAttribute], requireDataset: [2, "requireDataset", "requireDataset", booleanAttribute], allowImages: [2, "allowImages", "allowImages", booleanAttribute], allowVoiceInput: [2, "allowVoiceInput", "allowVoiceInput", booleanAttribute], acceptedFileTypes: "acceptedFileTypes", apiVersion: "apiVersion", uploadAttachments: "uploadAttachments", fileIcons: "fileIcons" }, outputs: { promptSubmitted: "promptSubmitted", promptStopped: "promptStopped" }, exportAs: ["luzmoAiInteractionTextarea"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiInteractionTextarea_Template(rf, ctx) { if (rf & 1) {
|
|
203
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiInteractionTextarea, selectors: [["luzmo-ai-interaction-textarea"]], inputs: { placeholder: "placeholder", selectedDatasets: "selectedDatasets", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], singleLine: [2, "singleLine", "singleLine", booleanAttribute], hideDatasetButton: [2, "hideDatasetButton", "hideDatasetButton", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], maxVisibleSelectedDatasets: "maxVisibleSelectedDatasets", selectedAgent: "selectedAgent", hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideSelectedDatasets: [2, "hideSelectedDatasets", "hideSelectedDatasets", booleanAttribute], disableColumnMentions: [2, "disableColumnMentions", "disableColumnMentions", booleanAttribute], isGenerating: [2, "isGenerating", "isGenerating", booleanAttribute], stoppable: [2, "stoppable", "stoppable", booleanAttribute], value: "value", retainOnSubmit: [2, "retainOnSubmit", "retainOnSubmit", booleanAttribute], requireDataset: [2, "requireDataset", "requireDataset", booleanAttribute], allowImages: [2, "allowImages", "allowImages", booleanAttribute], allowVoiceInput: [2, "allowVoiceInput", "allowVoiceInput", booleanAttribute], acceptedFileTypes: "acceptedFileTypes", apiVersion: "apiVersion", uploadAttachments: "uploadAttachments", fileIcons: "fileIcons" }, outputs: { promptSubmitted: "promptSubmitted", promptStopped: "promptStopped" }, exportAs: ["luzmoAiInteractionTextarea"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiInteractionTextarea_Template(rf, ctx) { if (rf & 1) {
|
|
199
204
|
i0.ɵɵprojectionDef();
|
|
200
205
|
i0.ɵɵprojection(0);
|
|
201
206
|
} }, encapsulation: 2 });
|
|
@@ -251,6 +256,9 @@ export class LuzmoAiInteractionTextarea {
|
|
|
251
256
|
}], selectedAgent: [{
|
|
252
257
|
type: Input,
|
|
253
258
|
args: [{ alias: 'selectedAgent' }]
|
|
259
|
+
}], hideAgents: [{
|
|
260
|
+
type: Input,
|
|
261
|
+
args: [{ alias: 'hideAgents', transform: booleanAttribute }]
|
|
254
262
|
}], disableDatasetModification: [{
|
|
255
263
|
type: Input,
|
|
256
264
|
args: [{ alias: 'disableDatasetModification', transform: booleanAttribute }]
|
|
@@ -15,6 +15,8 @@ export declare class LuzmoDatasetSelectorRow implements OnChanges {
|
|
|
15
15
|
selectedDatasets?: Dataset[];
|
|
16
16
|
/** The agent the chat is scoped to, or null */
|
|
17
17
|
selectedAgent?: Agent | null;
|
|
18
|
+
/** When true, hides the Agents section and ignores `selectedAgent` */
|
|
19
|
+
hideAgents?: boolean;
|
|
18
20
|
/** Accessible label and hover tooltip text for the search trigger */
|
|
19
21
|
buttonLabel?: string;
|
|
20
22
|
/** Auth key for DataBroker authentication */
|
|
@@ -56,7 +58,8 @@ export declare class LuzmoDatasetSelectorRow implements OnChanges {
|
|
|
56
58
|
private setHostProperty;
|
|
57
59
|
private bindEvents;
|
|
58
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDatasetSelectorRow, never>;
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDatasetSelectorRow, "luzmo-dataset-selector-row", ["luzmoDatasetSelectorRow"], { "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "selectedAgent": { "alias": "selectedAgent"; "required": false; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "maxVisibleSelectedDatasets": { "alias": "maxVisibleSelectedDatasets"; "required": false; }; }, { "luzmoAgentSelected": "luzmoAgentSelected"; "datasetSelected": "datasetSelected"; "datasetRemoved": "datasetRemoved"; "luzmoAgentRemoved": "luzmoAgentRemoved"; }, never, ["*"], true, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDatasetSelectorRow, "luzmo-dataset-selector-row", ["luzmoDatasetSelectorRow"], { "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "selectedAgent": { "alias": "selectedAgent"; "required": false; }; "hideAgents": { "alias": "hideAgents"; "required": false; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "maxVisibleSelectedDatasets": { "alias": "maxVisibleSelectedDatasets"; "required": false; }; }, { "luzmoAgentSelected": "luzmoAgentSelected"; "datasetSelected": "datasetSelected"; "datasetRemoved": "datasetRemoved"; "luzmoAgentRemoved": "luzmoAgentRemoved"; }, never, ["*"], true, never>;
|
|
62
|
+
static ngAcceptInputType_hideAgents: unknown;
|
|
60
63
|
static ngAcceptInputType_includePublicDatasets: unknown;
|
|
61
64
|
static ngAcceptInputType_flagOpendata: unknown;
|
|
62
65
|
static ngAcceptInputType_disabled: unknown;
|
|
@@ -19,6 +19,8 @@ export class LuzmoDatasetSelectorRow {
|
|
|
19
19
|
selectedDatasets;
|
|
20
20
|
/** The agent the chat is scoped to, or null */
|
|
21
21
|
selectedAgent;
|
|
22
|
+
/** When true, hides the Agents section and ignores `selectedAgent` */
|
|
23
|
+
hideAgents;
|
|
22
24
|
/** Accessible label and hover tooltip text for the search trigger */
|
|
23
25
|
buttonLabel;
|
|
24
26
|
/** Auth key for DataBroker authentication */
|
|
@@ -66,6 +68,9 @@ export class LuzmoDatasetSelectorRow {
|
|
|
66
68
|
case 'selectedAgent':
|
|
67
69
|
this.setHostProperty('selectedAgent', changes['selectedAgent'].currentValue);
|
|
68
70
|
break;
|
|
71
|
+
case 'hideAgents':
|
|
72
|
+
this.setHostProperty('hideAgents', changes['hideAgents'].currentValue);
|
|
73
|
+
break;
|
|
69
74
|
case 'buttonLabel':
|
|
70
75
|
this.setHostProperty('buttonLabel', changes['buttonLabel'].currentValue);
|
|
71
76
|
break;
|
|
@@ -132,7 +137,7 @@ export class LuzmoDatasetSelectorRow {
|
|
|
132
137
|
}));
|
|
133
138
|
}
|
|
134
139
|
static ɵfac = function LuzmoDatasetSelectorRow_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDatasetSelectorRow)(); };
|
|
135
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDatasetSelectorRow, selectors: [["luzmo-dataset-selector-row"]], inputs: { selectedDatasets: "selectedDatasets", selectedAgent: "selectedAgent", buttonLabel: "buttonLabel", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], maxVisibleSelectedDatasets: "maxVisibleSelectedDatasets" }, outputs: { luzmoAgentSelected: "luzmoAgentSelected", datasetSelected: "datasetSelected", datasetRemoved: "datasetRemoved", luzmoAgentRemoved: "luzmoAgentRemoved" }, exportAs: ["luzmoDatasetSelectorRow"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDatasetSelectorRow_Template(rf, ctx) { if (rf & 1) {
|
|
140
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDatasetSelectorRow, selectors: [["luzmo-dataset-selector-row"]], inputs: { selectedDatasets: "selectedDatasets", selectedAgent: "selectedAgent", hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], buttonLabel: "buttonLabel", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], maxVisibleSelectedDatasets: "maxVisibleSelectedDatasets" }, outputs: { luzmoAgentSelected: "luzmoAgentSelected", datasetSelected: "datasetSelected", datasetRemoved: "datasetRemoved", luzmoAgentRemoved: "luzmoAgentRemoved" }, exportAs: ["luzmoDatasetSelectorRow"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDatasetSelectorRow_Template(rf, ctx) { if (rf & 1) {
|
|
136
141
|
i0.ɵɵprojectionDef();
|
|
137
142
|
i0.ɵɵprojection(0);
|
|
138
143
|
} }, encapsulation: 2 });
|
|
@@ -152,6 +157,9 @@ export class LuzmoDatasetSelectorRow {
|
|
|
152
157
|
}], selectedAgent: [{
|
|
153
158
|
type: Input,
|
|
154
159
|
args: [{ alias: 'selectedAgent' }]
|
|
160
|
+
}], hideAgents: [{
|
|
161
|
+
type: Input,
|
|
162
|
+
args: [{ alias: 'hideAgents', transform: booleanAttribute }]
|
|
155
163
|
}], buttonLabel: [{
|
|
156
164
|
type: Input,
|
|
157
165
|
args: [{ alias: 'buttonLabel' }]
|
package/package.json
CHANGED
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@angular/core": "^17.3.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
|
|
31
31
|
"@angular/forms": "^17.3.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
|
|
32
|
-
"@luzmo/analytics-components-kit": "1.0.8-beta.
|
|
32
|
+
"@luzmo/analytics-components-kit": "1.0.8-beta.6"
|
|
33
33
|
},
|
|
34
|
-
"version": "1.0.8-beta.
|
|
34
|
+
"version": "1.0.8-beta.6",
|
|
35
35
|
"peerDependenciesMeta": {
|
|
36
36
|
"@angular/forms": {
|
|
37
37
|
"optional": true
|