@luzmo/ngx-analytics-components-kit 1.0.9-beta.8 → 1.1.1

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.
@@ -0,0 +1,48 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/add-to-dashboard';
3
+ import type { LuzmoAddToDashboard as LuzmoAddToDashboardHostElement, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail } from '@luzmo/analytics-components-kit/add-to-dashboard';
4
+ import type { Placement } from '@luzmo/lucero';
5
+ import * as i0 from "@angular/core";
6
+ export type { AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, AddToDashboardSettings, BuiltInDashboardActionsConfig, DashboardActionCallOptions, DashboardActions, DashboardListPage, DashboardListRequest, DashboardOption, FlexChartConfig } from '@luzmo/analytics-components-kit/add-to-dashboard';
7
+ export declare class LuzmoAddToDashboard implements OnChanges {
8
+ private readonly elementRef;
9
+ private readonly renderer;
10
+ private readonly destroyRef;
11
+ private readonly host;
12
+ private readonly listenerCleanup;
13
+ /** The underlying custom element instance. Use to call imperative methods. */
14
+ get nativeElement(): LuzmoAddToDashboardHostElement;
15
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
16
+ language?: string;
17
+ /** Auth key for the built-in adapter. */
18
+ authKey?: string;
19
+ /** Auth token for the built-in adapter. */
20
+ authToken?: string;
21
+ /** API URL for the built-in adapter. */
22
+ apiUrl?: string;
23
+ /** Placement of the picker relative to the button. */
24
+ placement?: Placement;
25
+ /** When present, the button is disabled. */
26
+ disabled?: boolean;
27
+ /** The size of the element */
28
+ size?: 's' | 'm' | 'l' | 'xl';
29
+ /** Fired after the chart was saved to a dashboard, a new dashboard or a variant. */
30
+ readonly luzmoChartAdded: import("@angular/core").OutputEmitterRef<CustomEvent<AddToDashboardChartAddedEventDetail>>;
31
+ /** Fired when saving the chart failed. */
32
+ readonly luzmoChartAddFailed: import("@angular/core").OutputEmitterRef<CustomEvent<AddToDashboardChartAddFailedEventDetail>>;
33
+ constructor();
34
+ ngOnChanges(changes: SimpleChanges): void;
35
+ /**
36
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
37
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
38
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
39
+ * undefined / null by clearing their bindings.
40
+ */
41
+ private setHostProperty;
42
+ private bindEvents;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAddToDashboard, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAddToDashboard, "luzmo-add-to-dashboard", ["luzmoAddToDashboard"], { "language": { "alias": "language"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoChartAdded": "luzmoChartAdded"; "luzmoChartAddFailed": "luzmoChartAddFailed"; }, never, ["*"], true, never>;
45
+ static ngAcceptInputType_disabled: unknown;
46
+ }
47
+ /** The underlying custom element type for LuzmoAddToDashboard */
48
+ export type LuzmoAddToDashboardElement = LuzmoAddToDashboardHostElement;
@@ -0,0 +1,129 @@
1
+ import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/add-to-dashboard';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-add-to-dashboard>
7
+ */
8
+ export class LuzmoAddToDashboard {
9
+ elementRef = inject(ElementRef);
10
+ renderer = inject(Renderer2);
11
+ destroyRef = inject(DestroyRef);
12
+ host = this.elementRef.nativeElement;
13
+ listenerCleanup = [];
14
+ /** The underlying custom element instance. Use to call imperative methods. */
15
+ get nativeElement() {
16
+ return this.host;
17
+ }
18
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
19
+ language;
20
+ /** Auth key for the built-in adapter. */
21
+ authKey;
22
+ /** Auth token for the built-in adapter. */
23
+ authToken;
24
+ /** API URL for the built-in adapter. */
25
+ apiUrl;
26
+ /** Placement of the picker relative to the button. */
27
+ placement;
28
+ /** When present, the button is disabled. */
29
+ disabled;
30
+ /** The size of the element */
31
+ size;
32
+ /** Fired after the chart was saved to a dashboard, a new dashboard or a variant. */
33
+ luzmoChartAdded = output({ alias: 'luzmoChartAdded' });
34
+ /** Fired when saving the chart failed. */
35
+ luzmoChartAddFailed = output({ alias: 'luzmoChartAddFailed' });
36
+ constructor() {
37
+ this.bindEvents();
38
+ this.destroyRef.onDestroy(() => {
39
+ for (const cleanup of this.listenerCleanup) {
40
+ cleanup();
41
+ }
42
+ });
43
+ }
44
+ ngOnChanges(changes) {
45
+ for (const key of Object.keys(changes)) {
46
+ switch (key) {
47
+ case 'language':
48
+ this.setHostProperty('language', changes['language'].currentValue);
49
+ break;
50
+ case 'authKey':
51
+ this.setHostProperty('authKey', changes['authKey'].currentValue);
52
+ break;
53
+ case 'authToken':
54
+ this.setHostProperty('authToken', changes['authToken'].currentValue);
55
+ break;
56
+ case 'apiUrl':
57
+ this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
58
+ break;
59
+ case 'placement':
60
+ this.setHostProperty('placement', changes['placement'].currentValue);
61
+ break;
62
+ case 'disabled':
63
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
64
+ break;
65
+ case 'size':
66
+ this.setHostProperty('size', changes['size'].currentValue);
67
+ break;
68
+ default:
69
+ break;
70
+ }
71
+ }
72
+ }
73
+ /**
74
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
75
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
76
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
77
+ * undefined / null by clearing their bindings.
78
+ */
79
+ setHostProperty(key, value) {
80
+ this.renderer.setProperty(this.host, key, value);
81
+ }
82
+ bindEvents() {
83
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-added', (event) => {
84
+ const typed = event;
85
+ this.luzmoChartAdded.emit(typed);
86
+ }));
87
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-add-failed', (event) => {
88
+ const typed = event;
89
+ this.luzmoChartAddFailed.emit(typed);
90
+ }));
91
+ }
92
+ static ɵfac = function LuzmoAddToDashboard_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAddToDashboard)(); };
93
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAddToDashboard, selectors: [["luzmo-add-to-dashboard"]], inputs: { language: "language", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", placement: "placement", disabled: [2, "disabled", "disabled", booleanAttribute], size: "size" }, outputs: { luzmoChartAdded: "luzmoChartAdded", luzmoChartAddFailed: "luzmoChartAddFailed" }, exportAs: ["luzmoAddToDashboard"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAddToDashboard_Template(rf, ctx) { if (rf & 1) {
94
+ i0.ɵɵprojectionDef();
95
+ i0.ɵɵprojection(0);
96
+ } }, encapsulation: 2 });
97
+ }
98
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoAddToDashboard, [{
99
+ type: Component,
100
+ args: [{
101
+ selector: 'luzmo-add-to-dashboard',
102
+ exportAs: 'luzmoAddToDashboard',
103
+ standalone: true,
104
+ changeDetection: ChangeDetectionStrategy.OnPush,
105
+ template: '<ng-content />'
106
+ }]
107
+ }], () => [], { language: [{
108
+ type: Input,
109
+ args: [{ alias: 'language' }]
110
+ }], authKey: [{
111
+ type: Input,
112
+ args: [{ alias: 'authKey' }]
113
+ }], authToken: [{
114
+ type: Input,
115
+ args: [{ alias: 'authToken' }]
116
+ }], apiUrl: [{
117
+ type: Input,
118
+ args: [{ alias: 'apiUrl' }]
119
+ }], placement: [{
120
+ type: Input,
121
+ args: [{ alias: 'placement' }]
122
+ }], disabled: [{
123
+ type: Input,
124
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
125
+ }], size: [{
126
+ type: Input,
127
+ args: [{ alias: 'size' }]
128
+ }], luzmoChartAdded: [{ type: i0.Output, args: ["luzmoChartAdded"] }], luzmoChartAddFailed: [{ type: i0.Output, args: ["luzmoChartAddFailed"] }] }); })();
129
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAddToDashboard, { className: "LuzmoAddToDashboard", filePath: "components/add-to-dashboard.ts", lineNumber: 17 }); })();
@@ -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, 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';
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, AssistantMessageFeedbackEventDetail, AssistantMessageFeedbackRating, 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, AiChatAgentConfig, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatMessageSentEventDetail, AiChatSession, AiChatStepEvent, AssistantMessageActionEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
3
+ import type { LuzmoAiChat as LuzmoAiChatHostElement, AiChatAgentConfig, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatMessageSentEventDetail, AiChatSession, AiChatStepEvent, AssistantMessageActionEventDetail, AssistantMessageFeedbackEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
4
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, 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';
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, AssistantMessageFeedbackEventDetail, AssistantMessageFeedbackRating, 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;
@@ -25,6 +25,8 @@ export declare class LuzmoAiChat implements OnChanges {
25
25
  stoppable?: boolean;
26
26
  /** When true, shows context menu (3 dots) on assistant messages */
27
27
  showAssistantContextMenu?: boolean;
28
+ /** When true, shows thumbs up/down feedback buttons below each completed assistant message. A message with `hideFeedback: true` hides its buttons; the selected rating is kept in `ChatMessage.feedback`. */
29
+ showAssistantMessageFeedback?: boolean;
28
30
  /** Auth key for DataBroker authentication */
29
31
  authKey?: string;
30
32
  /** Auth token for DataBroker authentication */
@@ -101,7 +103,7 @@ export declare class LuzmoAiChat implements OnChanges {
101
103
  emptyStateSubtitle?: string;
102
104
  /** Optional suggestion chips for the empty state. When empty, only the title is shown. Each entry may include `selectedDatasets` to pre-select datasets when the chip is activated. */
103
105
  emptyStateSuggestions?: AiChatEmptyStateSuggestion[];
104
- /** Size of the chat: `s`, `m` (default), `l` or `xl`. Scales messages, progress steps, questions, the empty state and the prompt input together. Custom actions beyond built-in `ChatMessage.actions` buttons can be projected via the `assistant-message-actions` light-DOM slot on the latest assistant message. */
106
+ /** Size of the chat: `s`, `m` (default), `l` or `xl`. Scales messages, progress steps, questions, the empty state and the prompt input together. */
105
107
  size?: unknown;
106
108
  /** Fired when a user sends a message */
107
109
  readonly luzmoMessageSent: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatMessageSentEventDetail>>;
@@ -117,6 +119,8 @@ export declare class LuzmoAiChat implements OnChanges {
117
119
  readonly luzmoConversationIdChanged: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatConversationIdChangedEventDetail>>;
118
120
  /** Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set) */
119
121
  readonly luzmoAssistantMessageAction: import("@angular/core").OutputEmitterRef<CustomEvent<AssistantMessageActionEventDetail>>;
122
+ /** Fired once when the user selects, switches or clears a thumbs rating, after the session holds the new rating. Not fired for programmatic updates. */
123
+ readonly luzmoAssistantMessageFeedback: import("@angular/core").OutputEmitterRef<CustomEvent<AssistantMessageFeedbackEventDetail>>;
120
124
  constructor();
121
125
  ngOnChanges(changes: SimpleChanges): void;
122
126
  /**
@@ -128,10 +132,11 @@ export declare class LuzmoAiChat implements OnChanges {
128
132
  private setHostProperty;
129
133
  private bindEvents;
130
134
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiChat, never>;
131
- 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; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoMessageSent": "luzmoMessageSent"; "luzmoDatasetsChanged": "luzmoDatasetsChanged"; "luzmoStep": "luzmoStep"; "luzmoComplete": "luzmoComplete"; "luzmoStop": "luzmoStop"; "luzmoConversationIdChanged": "luzmoConversationIdChanged"; "luzmoAssistantMessageAction": "luzmoAssistantMessageAction"; }, never, ["*"], true, never>;
135
+ 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; }; "showAssistantMessageFeedback": { "alias": "showAssistantMessageFeedback"; "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; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoMessageSent": "luzmoMessageSent"; "luzmoDatasetsChanged": "luzmoDatasetsChanged"; "luzmoStep": "luzmoStep"; "luzmoComplete": "luzmoComplete"; "luzmoStop": "luzmoStop"; "luzmoConversationIdChanged": "luzmoConversationIdChanged"; "luzmoAssistantMessageAction": "luzmoAssistantMessageAction"; "luzmoAssistantMessageFeedback": "luzmoAssistantMessageFeedback"; }, never, ["*"], true, never>;
132
136
  static ngAcceptInputType_disabled: unknown;
133
137
  static ngAcceptInputType_stoppable: unknown;
134
138
  static ngAcceptInputType_showAssistantContextMenu: unknown;
139
+ static ngAcceptInputType_showAssistantMessageFeedback: unknown;
135
140
  static ngAcceptInputType_includePublicDatasets: unknown;
136
141
  static ngAcceptInputType_flagOpendata: unknown;
137
142
  static ngAcceptInputType_hideDatasetButton: unknown;
@@ -27,6 +27,8 @@ export class LuzmoAiChat {
27
27
  stoppable;
28
28
  /** When true, shows context menu (3 dots) on assistant messages */
29
29
  showAssistantContextMenu;
30
+ /** When true, shows thumbs up/down feedback buttons below each completed assistant message. A message with `hideFeedback: true` hides its buttons; the selected rating is kept in `ChatMessage.feedback`. */
31
+ showAssistantMessageFeedback;
30
32
  /** Auth key for DataBroker authentication */
31
33
  authKey;
32
34
  /** Auth token for DataBroker authentication */
@@ -103,7 +105,7 @@ export class LuzmoAiChat {
103
105
  emptyStateSubtitle;
104
106
  /** Optional suggestion chips for the empty state. When empty, only the title is shown. Each entry may include `selectedDatasets` to pre-select datasets when the chip is activated. */
105
107
  emptyStateSuggestions;
106
- /** Size of the chat: `s`, `m` (default), `l` or `xl`. Scales messages, progress steps, questions, the empty state and the prompt input together. Custom actions beyond built-in `ChatMessage.actions` buttons can be projected via the `assistant-message-actions` light-DOM slot on the latest assistant message. */
108
+ /** Size of the chat: `s`, `m` (default), `l` or `xl`. Scales messages, progress steps, questions, the empty state and the prompt input together. */
107
109
  size;
108
110
  /** Fired when a user sends a message */
109
111
  luzmoMessageSent = output({ alias: 'luzmoMessageSent' });
@@ -119,6 +121,8 @@ export class LuzmoAiChat {
119
121
  luzmoConversationIdChanged = output({ alias: 'luzmoConversationIdChanged' });
120
122
  /** Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set) */
121
123
  luzmoAssistantMessageAction = output({ alias: 'luzmoAssistantMessageAction' });
124
+ /** Fired once when the user selects, switches or clears a thumbs rating, after the session holds the new rating. Not fired for programmatic updates. */
125
+ luzmoAssistantMessageFeedback = output({ alias: 'luzmoAssistantMessageFeedback' });
122
126
  constructor() {
123
127
  this.bindEvents();
124
128
  this.destroyRef.onDestroy(() => {
@@ -148,6 +152,9 @@ export class LuzmoAiChat {
148
152
  case 'showAssistantContextMenu':
149
153
  this.setHostProperty('showAssistantContextMenu', changes['showAssistantContextMenu'].currentValue);
150
154
  break;
155
+ case 'showAssistantMessageFeedback':
156
+ this.setHostProperty('showAssistantMessageFeedback', changes['showAssistantMessageFeedback'].currentValue);
157
+ break;
151
158
  case 'authKey':
152
159
  this.setHostProperty('authKey', changes['authKey'].currentValue);
153
160
  break;
@@ -308,9 +315,13 @@ export class LuzmoAiChat {
308
315
  const typed = event;
309
316
  this.luzmoAssistantMessageAction.emit(typed);
310
317
  }));
318
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-assistant-message-feedback', (event) => {
319
+ const typed = event;
320
+ this.luzmoAssistantMessageFeedback.emit(typed);
321
+ }));
311
322
  }
312
323
  static ɵfac = function LuzmoAiChat_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiChat)(); };
313
- 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", size: "size" }, 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) {
324
+ 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], showAssistantMessageFeedback: [2, "showAssistantMessageFeedback", "showAssistantMessageFeedback", 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", size: "size" }, outputs: { luzmoMessageSent: "luzmoMessageSent", luzmoDatasetsChanged: "luzmoDatasetsChanged", luzmoStep: "luzmoStep", luzmoComplete: "luzmoComplete", luzmoStop: "luzmoStop", luzmoConversationIdChanged: "luzmoConversationIdChanged", luzmoAssistantMessageAction: "luzmoAssistantMessageAction", luzmoAssistantMessageFeedback: "luzmoAssistantMessageFeedback" }, exportAs: ["luzmoAiChat"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiChat_Template(rf, ctx) { if (rf & 1) {
314
325
  i0.ɵɵprojectionDef();
315
326
  i0.ɵɵprojection(0);
316
327
  } }, encapsulation: 2 });
@@ -342,6 +353,9 @@ export class LuzmoAiChat {
342
353
  }], showAssistantContextMenu: [{
343
354
  type: Input,
344
355
  args: [{ alias: 'showAssistantContextMenu', transform: booleanAttribute }]
356
+ }], showAssistantMessageFeedback: [{
357
+ type: Input,
358
+ args: [{ alias: 'showAssistantMessageFeedback', transform: booleanAttribute }]
345
359
  }], authKey: [{
346
360
  type: Input,
347
361
  args: [{ alias: 'authKey' }]
@@ -459,5 +473,5 @@ export class LuzmoAiChat {
459
473
  }], size: [{
460
474
  type: Input,
461
475
  args: [{ alias: 'size' }]
462
- }], luzmoMessageSent: [{ type: i0.Output, args: ["luzmoMessageSent"] }], luzmoDatasetsChanged: [{ type: i0.Output, args: ["luzmoDatasetsChanged"] }], luzmoStep: [{ type: i0.Output, args: ["luzmoStep"] }], luzmoComplete: [{ type: i0.Output, args: ["luzmoComplete"] }], luzmoStop: [{ type: i0.Output, args: ["luzmoStop"] }], luzmoConversationIdChanged: [{ type: i0.Output, args: ["luzmoConversationIdChanged"] }], luzmoAssistantMessageAction: [{ type: i0.Output, args: ["luzmoAssistantMessageAction"] }] }); })();
476
+ }], luzmoMessageSent: [{ type: i0.Output, args: ["luzmoMessageSent"] }], luzmoDatasetsChanged: [{ type: i0.Output, args: ["luzmoDatasetsChanged"] }], luzmoStep: [{ type: i0.Output, args: ["luzmoStep"] }], luzmoComplete: [{ type: i0.Output, args: ["luzmoComplete"] }], luzmoStop: [{ type: i0.Output, args: ["luzmoStop"] }], luzmoConversationIdChanged: [{ type: i0.Output, args: ["luzmoConversationIdChanged"] }], luzmoAssistantMessageAction: [{ type: i0.Output, args: ["luzmoAssistantMessageAction"] }], luzmoAssistantMessageFeedback: [{ type: i0.Output, args: ["luzmoAssistantMessageFeedback"] }] }); })();
463
477
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAiChat, { className: "LuzmoAiChat", filePath: "components/ai-chat.ts", lineNumber: 18 }); })();
@@ -13,8 +13,8 @@ export declare class LuzmoDatasetIcon implements OnChanges {
13
13
  get nativeElement(): LuzmoDatasetIconHostElement;
14
14
  /** The dataset information containing subtype and thumbnail data */
15
15
  datasetInfo?: DatasetIcon;
16
- /** The size of the icon */
17
- size?: '16px' | '24px' | '32px' | '48px' | '64px';
16
+ /** The size of the icon, as a pixel length (e.g. `12px`, `16px`, `24px`) */
17
+ size?: `${number}px`;
18
18
  /** The base URL for the application (used for thumbnail URLs) */
19
19
  appUrl?: string;
20
20
  constructor();
@@ -17,7 +17,7 @@ export class LuzmoDatasetIcon {
17
17
  }
18
18
  /** The dataset information containing subtype and thumbnail data */
19
19
  datasetInfo;
20
- /** The size of the icon */
20
+ /** The size of the icon, as a pixel length (e.g. `12px`, `16px`, `24px`) */
21
21
  size;
22
22
  /** The base URL for the application (used for thumbnail URLs) */
23
23
  appUrl;
@@ -29,6 +29,8 @@ export declare class LuzmoFilters implements OnChanges {
29
29
  filters?: FiltersInput;
30
30
  /** Output format for the `luzmo-filters-changed` event. `canonical` emits `ItemFilterGroup[]`; `clean` emits the clean clause groups that aligned hosts consume. A tree that cannot be represented cleanly falls back to canonical output, and the event says which format it carries. */
31
31
  format?: FiltersFormat;
32
+ /** Show an AND-only editor without the condition column or group actions. Existing OR conditions are preserved and cannot be edited in this mode. */
33
+ simple?: boolean;
32
34
  /** How the filters are presented. `rich` is the editable group editor. `text` is a read-only sentence, with parentheses around nested AND/OR groups. `outline` is one wrapping filter per line inside bracket rails, and can delete a filter unless `readonly` is set. */
33
35
  display?: FiltersDisplay;
34
36
  /** Presentation of column and formula references in text and outline displays. */
@@ -74,7 +76,8 @@ export declare class LuzmoFilters implements OnChanges {
74
76
  private setHostProperty;
75
77
  private bindEvents;
76
78
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilters, never>;
77
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilters, "luzmo-filters", ["luzmoFilters"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "format": { "alias": "format"; "required": false; }; "display": { "alias": "display"; "required": false; }; "columnDisplay": { "alias": "columnDisplay"; "required": false; }; "quiet": { "alias": "quiet"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "allowParameters": { "alias": "allowParameters"; "required": false; }; "parameters": { "alias": "parameters"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoFiltersChanged": "luzmoFiltersChanged"; "luzmoParameterCreated": "luzmoParameterCreated"; "luzmoParameterRemoved": "luzmoParameterRemoved"; }, never, ["*"], true, never>;
79
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilters, "luzmo-filters", ["luzmoFilters"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "format": { "alias": "format"; "required": false; }; "simple": { "alias": "simple"; "required": false; }; "display": { "alias": "display"; "required": false; }; "columnDisplay": { "alias": "columnDisplay"; "required": false; }; "quiet": { "alias": "quiet"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "allowParameters": { "alias": "allowParameters"; "required": false; }; "parameters": { "alias": "parameters"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoFiltersChanged": "luzmoFiltersChanged"; "luzmoParameterCreated": "luzmoParameterCreated"; "luzmoParameterRemoved": "luzmoParameterRemoved"; }, never, ["*"], true, never>;
80
+ static ngAcceptInputType_simple: unknown;
78
81
  static ngAcceptInputType_quiet: unknown;
79
82
  static ngAcceptInputType_readonly: unknown;
80
83
  static ngAcceptInputType_allowParameters: unknown;
@@ -37,6 +37,8 @@ export class LuzmoFilters {
37
37
  filters;
38
38
  /** Output format for the `luzmo-filters-changed` event. `canonical` emits `ItemFilterGroup[]`; `clean` emits the clean clause groups that aligned hosts consume. A tree that cannot be represented cleanly falls back to canonical output, and the event says which format it carries. */
39
39
  format;
40
+ /** Show an AND-only editor without the condition column or group actions. Existing OR conditions are preserved and cannot be edited in this mode. */
41
+ simple;
40
42
  /** How the filters are presented. `rich` is the editable group editor. `text` is a read-only sentence, with parentheses around nested AND/OR groups. `outline` is one wrapping filter per line inside bracket rails, and can delete a filter unless `readonly` is set. */
41
43
  display;
42
44
  /** Presentation of column and formula references in text and outline displays. */
@@ -105,6 +107,9 @@ export class LuzmoFilters {
105
107
  case 'format':
106
108
  this.setHostProperty('format', changes['format'].currentValue);
107
109
  break;
110
+ case 'simple':
111
+ this.setHostProperty('simple', changes['simple'].currentValue);
112
+ break;
108
113
  case 'display':
109
114
  this.setHostProperty('display', changes['display'].currentValue);
110
115
  break;
@@ -170,7 +175,7 @@ export class LuzmoFilters {
170
175
  }));
171
176
  }
172
177
  static ɵfac = function LuzmoFilters_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilters)(); };
173
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilters, selectors: [["luzmo-filters"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", timeZone: "timeZone", datasetIds: "datasetIds", filters: "filters", format: "format", display: "display", columnDisplay: "columnDisplay", quiet: [2, "quiet", "quiet", booleanAttribute], readonly: [2, "readonly", "readonly", booleanAttribute], allowParameters: [2, "allowParameters", "allowParameters", booleanAttribute], parameters: "parameters", debounce: "debounce", language: "language", size: "size", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoFiltersChanged: "luzmoFiltersChanged", luzmoParameterCreated: "luzmoParameterCreated", luzmoParameterRemoved: "luzmoParameterRemoved" }, exportAs: ["luzmoFilters"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilters_Template(rf, ctx) { if (rf & 1) {
178
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilters, selectors: [["luzmo-filters"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", timeZone: "timeZone", datasetIds: "datasetIds", filters: "filters", format: "format", simple: [2, "simple", "simple", booleanAttribute], display: "display", columnDisplay: "columnDisplay", quiet: [2, "quiet", "quiet", booleanAttribute], readonly: [2, "readonly", "readonly", booleanAttribute], allowParameters: [2, "allowParameters", "allowParameters", booleanAttribute], parameters: "parameters", debounce: "debounce", language: "language", size: "size", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoFiltersChanged: "luzmoFiltersChanged", luzmoParameterCreated: "luzmoParameterCreated", luzmoParameterRemoved: "luzmoParameterRemoved" }, exportAs: ["luzmoFilters"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilters_Template(rf, ctx) { if (rf & 1) {
174
179
  i0.ɵɵprojectionDef();
175
180
  i0.ɵɵprojection(0);
176
181
  } }, encapsulation: 2 });
@@ -211,6 +216,9 @@ export class LuzmoFilters {
211
216
  }], format: [{
212
217
  type: Input,
213
218
  args: [{ alias: 'format' }]
219
+ }], simple: [{
220
+ type: Input,
221
+ args: [{ alias: 'simple', transform: booleanAttribute }]
214
222
  }], display: [{
215
223
  type: Input,
216
224
  args: [{ alias: 'display' }]
@@ -1,8 +1,9 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/interactive-viz-item';
3
- import type { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemHostElement, ChartFeedback, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
3
+ import type { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemHostElement, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, ChartFeedback, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
4
+ import type { LuzmoEmbedVizItem } from '@luzmo/embed';
4
5
  import * as i0 from "@angular/core";
5
- export type { ChartActionDescriptor, ChartActionType, ChartFeedback, ChartFeedbackRating, ChartMutationRequest, ChartOption, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail, NormalizedChartConfig, Ranking, Sort } from '@luzmo/analytics-components-kit/interactive-viz-item';
6
+ export type { AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, ChartActionDescriptor, ChartActionType, ChartFeedback, ChartFeedbackRating, ChartMutationRequest, ChartOption, DashboardActions, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail, NormalizedChartConfig, Ranking, Sort } from '@luzmo/analytics-components-kit/interactive-viz-item';
6
7
  export declare class LuzmoInteractiveVizItem implements OnChanges {
7
8
  private readonly elementRef;
8
9
  private readonly renderer;
@@ -13,6 +14,10 @@ export declare class LuzmoInteractiveVizItem implements OnChanges {
13
14
  get nativeElement(): LuzmoInteractiveVizItemHostElement;
14
15
  /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
15
16
  language?: string;
17
+ /** When present, renders `luzmo-add-to-dashboard` in the actions bar. */
18
+ addToDashboard?: boolean;
19
+ /** Click-to-filter on the embedded chart, forwarded as its `canFilter`. The `can-filter` attribute means `'all'`; unset keeps it off. */
20
+ canFilter?: LuzmoEmbedVizItem['canFilter'];
16
21
  /** Loose chart config (type, options, slots, filters); slots may use the keyed-object form. */
17
22
  chart?: FlexChartConfig | null;
18
23
  /** Current feedback (drives the thumbs up/down selection). */
@@ -35,14 +40,20 @@ export declare class LuzmoInteractiveVizItem implements OnChanges {
35
40
  hideFeedback?: boolean;
36
41
  /** When present, hides the config-panel toggle and the panel itself. */
37
42
  hideConfigPanel?: boolean;
43
+ /** When present, chart changes are only emitted and the host sets `chart`; otherwise they are applied here and still emitted. */
44
+ controlled?: boolean;
38
45
  /** The size of the element */
39
46
  size?: 's' | 'm' | 'l' | 'xl';
40
- /** Fired when the inline actions (ranking, sort, display mode) change the chart options. */
47
+ /** Fired when the inline actions (ranking, sort, display mode) change the chart options. Applied to `chart` first unless `controlled` is set. */
41
48
  readonly luzmoChartOptionsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>;
42
- /** Fired when the config panel changes slots, filters, or options (full chart). */
49
+ /** Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set. */
43
50
  readonly luzmoChartChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemChartChangedEventDetail>>;
44
- /** Fired when the user changes the thumbs up/down rating. */
51
+ /** Fired when the user changes the thumbs up/down rating. Never applied to `feedback`; the host owns it in both modes. */
45
52
  readonly luzmoFeedbackChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>;
53
+ /** Fired by the inner `luzmo-add-to-dashboard` after the chart was saved. */
54
+ readonly luzmoChartAdded: import("@angular/core").OutputEmitterRef<CustomEvent<AddToDashboardChartAddedEventDetail>>;
55
+ /** Fired by the inner `luzmo-add-to-dashboard` when saving failed. */
56
+ readonly luzmoChartAddFailed: import("@angular/core").OutputEmitterRef<CustomEvent<AddToDashboardChartAddFailedEventDetail>>;
46
57
  constructor();
47
58
  ngOnChanges(changes: SimpleChanges): void;
48
59
  /**
@@ -54,10 +65,12 @@ export declare class LuzmoInteractiveVizItem implements OnChanges {
54
65
  private setHostProperty;
55
66
  private bindEvents;
56
67
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoInteractiveVizItem, never>;
57
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoInteractiveVizItem, "luzmo-interactive-viz-item", ["luzmoInteractiveVizItem"], { "language": { "alias": "language"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; "feedback": { "alias": "feedback"; "required": false; }; "messageId": { "alias": "messageId"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "hideActions": { "alias": "hideActions"; "required": false; }; "hideFeedback": { "alias": "hideFeedback"; "required": false; }; "hideConfigPanel": { "alias": "hideConfigPanel"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoChartOptionsChanged": "luzmoChartOptionsChanged"; "luzmoChartChanged": "luzmoChartChanged"; "luzmoFeedbackChanged": "luzmoFeedbackChanged"; }, never, ["*"], true, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoInteractiveVizItem, "luzmo-interactive-viz-item", ["luzmoInteractiveVizItem"], { "language": { "alias": "language"; "required": false; }; "addToDashboard": { "alias": "addToDashboard"; "required": false; }; "canFilter": { "alias": "canFilter"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; "feedback": { "alias": "feedback"; "required": false; }; "messageId": { "alias": "messageId"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "hideActions": { "alias": "hideActions"; "required": false; }; "hideFeedback": { "alias": "hideFeedback"; "required": false; }; "hideConfigPanel": { "alias": "hideConfigPanel"; "required": false; }; "controlled": { "alias": "controlled"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoChartOptionsChanged": "luzmoChartOptionsChanged"; "luzmoChartChanged": "luzmoChartChanged"; "luzmoFeedbackChanged": "luzmoFeedbackChanged"; "luzmoChartAdded": "luzmoChartAdded"; "luzmoChartAddFailed": "luzmoChartAddFailed"; }, never, ["*"], true, never>;
69
+ static ngAcceptInputType_addToDashboard: unknown;
58
70
  static ngAcceptInputType_hideActions: unknown;
59
71
  static ngAcceptInputType_hideFeedback: unknown;
60
72
  static ngAcceptInputType_hideConfigPanel: unknown;
73
+ static ngAcceptInputType_controlled: unknown;
61
74
  }
62
75
  /** The underlying custom element type for LuzmoInteractiveVizItem */
63
76
  export type LuzmoInteractiveVizItemElement = LuzmoInteractiveVizItemHostElement;