@luzmo/ngx-analytics-components-kit 1.0.3-beta.11

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.
Files changed (106) hide show
  1. package/README.md +40 -0
  2. package/esm/components/ai-chat-empty-state.d.ts +39 -0
  3. package/esm/components/ai-chat-empty-state.js +99 -0
  4. package/esm/components/ai-chat.d.ts +121 -0
  5. package/esm/components/ai-chat.js +369 -0
  6. package/esm/components/ai-interaction-textarea.d.ts +110 -0
  7. package/esm/components/ai-interaction-textarea.js +297 -0
  8. package/esm/components/data-field-level.d.ts +42 -0
  9. package/esm/components/data-field-level.js +115 -0
  10. package/esm/components/data-field-panel.d.ts +84 -0
  11. package/esm/components/data-field-panel.js +260 -0
  12. package/esm/components/data-field.d.ts +41 -0
  13. package/esm/components/data-field.js +108 -0
  14. package/esm/components/data-fields-select.d.ts +70 -0
  15. package/esm/components/data-fields-select.js +187 -0
  16. package/esm/components/dataset-icon.d.ts +34 -0
  17. package/esm/components/dataset-icon.js +86 -0
  18. package/esm/components/dataset-selector-list.d.ts +53 -0
  19. package/esm/components/dataset-selector-list.js +147 -0
  20. package/esm/components/dataset-selector-row.d.ts +56 -0
  21. package/esm/components/dataset-selector-row.js +153 -0
  22. package/esm/components/display-settings-binning.d.ts +32 -0
  23. package/esm/components/display-settings-binning.js +74 -0
  24. package/esm/components/display-settings-datetime.d.ts +36 -0
  25. package/esm/components/display-settings-datetime.js +89 -0
  26. package/esm/components/display-settings-grand-totals.d.ts +33 -0
  27. package/esm/components/display-settings-grand-totals.js +75 -0
  28. package/esm/components/display-settings-numeric.d.ts +41 -0
  29. package/esm/components/display-settings-numeric.js +99 -0
  30. package/esm/components/display-settings-period-over-period.d.ts +38 -0
  31. package/esm/components/display-settings-period-over-period.js +89 -0
  32. package/esm/components/display-settings.d.ts +69 -0
  33. package/esm/components/display-settings.js +182 -0
  34. package/esm/components/filter-expression-picker.d.ts +54 -0
  35. package/esm/components/filter-expression-picker.js +146 -0
  36. package/esm/components/filter-item.d.ts +44 -0
  37. package/esm/components/filter-item.js +130 -0
  38. package/esm/components/filter-parameter-picker.d.ts +31 -0
  39. package/esm/components/filter-parameter-picker.js +78 -0
  40. package/esm/components/filter-value-picker-datetime.d.ts +34 -0
  41. package/esm/components/filter-value-picker-datetime.js +90 -0
  42. package/esm/components/filter-value-picker-hierarchy.d.ts +40 -0
  43. package/esm/components/filter-value-picker-hierarchy.js +114 -0
  44. package/esm/components/filter-value-picker-numeric.d.ts +40 -0
  45. package/esm/components/filter-value-picker-numeric.js +114 -0
  46. package/esm/components/filter-value-picker.d.ts +44 -0
  47. package/esm/components/filter-value-picker.js +130 -0
  48. package/esm/components/filters.d.ts +49 -0
  49. package/esm/components/filters.js +139 -0
  50. package/esm/components/formula-editor.d.ts +39 -0
  51. package/esm/components/formula-editor.js +95 -0
  52. package/esm/components/formula-field.d.ts +31 -0
  53. package/esm/components/formula-field.js +69 -0
  54. package/esm/components/formula.d.ts +31 -0
  55. package/esm/components/formula.js +75 -0
  56. package/esm/components/item-grid-item-actions-menu.d.ts +34 -0
  57. package/esm/components/item-grid-item-actions-menu.js +82 -0
  58. package/esm/components/item-grid.d.ts +80 -0
  59. package/esm/components/item-grid.js +245 -0
  60. package/esm/components/item-option-action-button-group.d.ts +30 -0
  61. package/esm/components/item-option-action-button-group.js +63 -0
  62. package/esm/components/item-option-color-palette-picker.d.ts +30 -0
  63. package/esm/components/item-option-color-palette-picker.js +63 -0
  64. package/esm/components/item-option-color-picker.d.ts +35 -0
  65. package/esm/components/item-option-color-picker.js +102 -0
  66. package/esm/components/item-option-color-range.d.ts +30 -0
  67. package/esm/components/item-option-color-range.js +63 -0
  68. package/esm/components/item-option-multi-language-field.d.ts +31 -0
  69. package/esm/components/item-option-multi-language-field.js +74 -0
  70. package/esm/components/item-option-number-field.d.ts +32 -0
  71. package/esm/components/item-option-number-field.js +81 -0
  72. package/esm/components/item-option-panel.d.ts +54 -0
  73. package/esm/components/item-option-panel.js +155 -0
  74. package/esm/components/item-option-picker.d.ts +30 -0
  75. package/esm/components/item-option-picker.js +63 -0
  76. package/esm/components/item-option-position-picker.d.ts +30 -0
  77. package/esm/components/item-option-position-picker.js +63 -0
  78. package/esm/components/item-option-positions-number-field.d.ts +32 -0
  79. package/esm/components/item-option-positions-number-field.js +81 -0
  80. package/esm/components/item-option-radio-button-group.d.ts +31 -0
  81. package/esm/components/item-option-radio-button-group.js +74 -0
  82. package/esm/components/item-option-slider.d.ts +36 -0
  83. package/esm/components/item-option-slider.js +109 -0
  84. package/esm/components/item-option-switch.d.ts +34 -0
  85. package/esm/components/item-option-switch.js +81 -0
  86. package/esm/components/item-option-text-field.d.ts +31 -0
  87. package/esm/components/item-option-text-field.js +74 -0
  88. package/esm/components/item-option.d.ts +48 -0
  89. package/esm/components/item-option.js +161 -0
  90. package/esm/components/item-slot-drop-panel.d.ts +78 -0
  91. package/esm/components/item-slot-drop-panel.js +233 -0
  92. package/esm/components/item-slot-drop.d.ts +63 -0
  93. package/esm/components/item-slot-drop.js +201 -0
  94. package/esm/components/item-slot-picker-panel.d.ts +95 -0
  95. package/esm/components/item-slot-picker-panel.js +301 -0
  96. package/esm/components/item-slot-picker.d.ts +80 -0
  97. package/esm/components/item-slot-picker.js +235 -0
  98. package/esm/components/slot-menu-list.d.ts +37 -0
  99. package/esm/components/slot-menu-list.js +97 -0
  100. package/esm/components/slot-menu.d.ts +85 -0
  101. package/esm/components/slot-menu.js +271 -0
  102. package/esm/components/viz-item-menu.d.ts +40 -0
  103. package/esm/components/viz-item-menu.js +103 -0
  104. package/esm/index.d.ts +105 -0
  105. package/esm/index.js +209 -0
  106. package/package.json +40 -0
@@ -0,0 +1,369 @@
1
+ import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/ai-chat';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-ai-chat>
7
+ */
8
+ export class LuzmoAiChat {
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
+ /** Live transcript is AiChatSession.state.messages. This prop optionally seeds the session on first connect. */
19
+ messages;
20
+ /** Live selection is in the session. This prop optionally seeds on first connect. */
21
+ selectedDatasets;
22
+ /** Placeholder text for the textarea */
23
+ placeholder;
24
+ /** When true, disables the entire chat interface */
25
+ disabled;
26
+ /** When true, shows a stop control on the prompt input while a response is generating */
27
+ stoppable;
28
+ /** When true, shows context menu (3 dots) on assistant messages */
29
+ showAssistantContextMenu;
30
+ /** Auth key for DataBroker authentication */
31
+ authKey;
32
+ /** Auth token for DataBroker authentication */
33
+ authToken;
34
+ /** API URL for DataBroker */
35
+ apiUrl;
36
+ /** The URL of the app server for thumbnails and assets */
37
+ appServer;
38
+ /** When true, restricts results to public datasets (opendata parity) */
39
+ flagOpendata;
40
+ /** When true, hides the "+ Add dataset" button in the input */
41
+ hideDatasetButton;
42
+ /** When true, hides dataset icons in the input dataset selector and @ mention dataset headers */
43
+ hideDatasetIcons;
44
+ /** When true, hides the add-dataset button and disables removing selected datasets while keeping pills visible */
45
+ disableDatasetModification;
46
+ /** When true, hides the dataset row and add-dataset button entirely */
47
+ hideSelectedDatasets;
48
+ /** When true, disables @ trigger mentions for dataset fields in the input */
49
+ disableColumnMentions;
50
+ /** When true, at least one dataset must be selected before the prompt can be submitted */
51
+ requireDataset;
52
+ /** Which aiprompt agent to use. Determines request payload and stream handling. */
53
+ agent;
54
+ /** Task for the item agent (`generate`, `suggest`, `describe`). */
55
+ task;
56
+ /** AI model preference for item agent chart generation */
57
+ modelPreference;
58
+ /** Host-owned AiChatSession. The component subscribes and renders; does not abort on disconnect. */
59
+ chatSession;
60
+ /** Conversation ID (synced into the session; updated when the API returns a new id). */
61
+ conversationId;
62
+ /** Chart context for `agent="item"`. */
63
+ chart;
64
+ /** Dashboard context for `agent="dashboard"`. */
65
+ dashboard;
66
+ /** Current screen mode when editing a dashboard. */
67
+ currentScreenMode;
68
+ /** Locale ID sent to the aiprompt API. */
69
+ localeId;
70
+ /** Timezone ID for dashboard agent requests. */
71
+ timezoneId;
72
+ /** API version */
73
+ apiVersion;
74
+ /** When true, uses NDJSON streaming for AI responses. When false, uses a single JSON response. */
75
+ stream;
76
+ /** Loading message shown while generating and before progress steps are available. */
77
+ loadingMessage;
78
+ /** When set, auto-submits via the session without adding a duplicate user message (assumes the prompt is already in the transcript). */
79
+ initialPrompt;
80
+ /** Title for the empty state when there are no messages. */
81
+ emptyStateTitle;
82
+ /** Optional label above empty-state suggestion chips. Only shown when `emptyStateSuggestions` is non-empty. */
83
+ emptyStateSubtitle;
84
+ /** 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. */
85
+ emptyStateSuggestions;
86
+ /** Fired when a user sends a message */
87
+ luzmoMessageSent = output({ alias: 'luzmoMessageSent' });
88
+ /** Fired when the selected datasets change */
89
+ luzmoDatasetsChanged = output({ alias: 'luzmoDatasetsChanged' });
90
+ /** 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. */
91
+ luzmoStep = output({ alias: 'luzmoStep' });
92
+ /** Fired exactly once per response with the authoritative final result (dashboard/chart/name) or an `error`. */
93
+ luzmoComplete = output({ alias: 'luzmoComplete' });
94
+ /** Fired when an in-flight prompt is stopped */
95
+ luzmoStop = output({ alias: 'luzmoStop' });
96
+ /** Fired when the conversation ID is updated from the API */
97
+ luzmoConversationIdChanged = output({ alias: 'luzmoConversationIdChanged' });
98
+ constructor() {
99
+ this.bindEvents();
100
+ this.destroyRef.onDestroy(() => {
101
+ for (const cleanup of this.listenerCleanup) {
102
+ cleanup();
103
+ }
104
+ });
105
+ }
106
+ ngOnChanges(changes) {
107
+ for (const key of Object.keys(changes)) {
108
+ switch (key) {
109
+ case 'messages':
110
+ this.setHostProperty('messages', changes['messages'].currentValue);
111
+ break;
112
+ case 'selectedDatasets':
113
+ this.setHostProperty('selectedDatasets', changes['selectedDatasets'].currentValue);
114
+ break;
115
+ case 'placeholder':
116
+ this.setHostProperty('placeholder', changes['placeholder'].currentValue);
117
+ break;
118
+ case 'disabled':
119
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
120
+ break;
121
+ case 'stoppable':
122
+ this.setHostProperty('stoppable', changes['stoppable'].currentValue);
123
+ break;
124
+ case 'showAssistantContextMenu':
125
+ this.setHostProperty('showAssistantContextMenu', changes['showAssistantContextMenu'].currentValue);
126
+ break;
127
+ case 'authKey':
128
+ this.setHostProperty('authKey', changes['authKey'].currentValue);
129
+ break;
130
+ case 'authToken':
131
+ this.setHostProperty('authToken', changes['authToken'].currentValue);
132
+ break;
133
+ case 'apiUrl':
134
+ this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
135
+ break;
136
+ case 'appServer':
137
+ this.setHostProperty('appServer', changes['appServer'].currentValue);
138
+ break;
139
+ case 'flagOpendata':
140
+ this.setHostProperty('flagOpendata', changes['flagOpendata'].currentValue);
141
+ break;
142
+ case 'hideDatasetButton':
143
+ this.setHostProperty('hideDatasetButton', changes['hideDatasetButton'].currentValue);
144
+ break;
145
+ case 'hideDatasetIcons':
146
+ this.setHostProperty('hideDatasetIcons', changes['hideDatasetIcons'].currentValue);
147
+ break;
148
+ case 'disableDatasetModification':
149
+ this.setHostProperty('disableDatasetModification', changes['disableDatasetModification'].currentValue);
150
+ break;
151
+ case 'hideSelectedDatasets':
152
+ this.setHostProperty('hideSelectedDatasets', changes['hideSelectedDatasets'].currentValue);
153
+ break;
154
+ case 'disableColumnMentions':
155
+ this.setHostProperty('disableColumnMentions', changes['disableColumnMentions'].currentValue);
156
+ break;
157
+ case 'requireDataset':
158
+ this.setHostProperty('requireDataset', changes['requireDataset'].currentValue);
159
+ break;
160
+ case 'agent':
161
+ this.setHostProperty('agent', changes['agent'].currentValue);
162
+ break;
163
+ case 'task':
164
+ this.setHostProperty('task', changes['task'].currentValue);
165
+ break;
166
+ case 'modelPreference':
167
+ this.setHostProperty('modelPreference', changes['modelPreference'].currentValue);
168
+ break;
169
+ case 'chatSession':
170
+ this.setHostProperty('chatSession', changes['chatSession'].currentValue);
171
+ break;
172
+ case 'conversationId':
173
+ this.setHostProperty('conversationId', changes['conversationId'].currentValue);
174
+ break;
175
+ case 'chart':
176
+ this.setHostProperty('chart', changes['chart'].currentValue);
177
+ break;
178
+ case 'dashboard':
179
+ this.setHostProperty('dashboard', changes['dashboard'].currentValue);
180
+ break;
181
+ case 'currentScreenMode':
182
+ this.setHostProperty('currentScreenMode', changes['currentScreenMode'].currentValue);
183
+ break;
184
+ case 'localeId':
185
+ this.setHostProperty('localeId', changes['localeId'].currentValue);
186
+ break;
187
+ case 'timezoneId':
188
+ this.setHostProperty('timezoneId', changes['timezoneId'].currentValue);
189
+ break;
190
+ case 'apiVersion':
191
+ this.setHostProperty('apiVersion', changes['apiVersion'].currentValue);
192
+ break;
193
+ case 'stream':
194
+ this.setHostProperty('stream', changes['stream'].currentValue);
195
+ break;
196
+ case 'loadingMessage':
197
+ this.setHostProperty('loadingMessage', changes['loadingMessage'].currentValue);
198
+ break;
199
+ case 'initialPrompt':
200
+ this.setHostProperty('initialPrompt', changes['initialPrompt'].currentValue);
201
+ break;
202
+ case 'emptyStateTitle':
203
+ this.setHostProperty('emptyStateTitle', changes['emptyStateTitle'].currentValue);
204
+ break;
205
+ case 'emptyStateSubtitle':
206
+ this.setHostProperty('emptyStateSubtitle', changes['emptyStateSubtitle'].currentValue);
207
+ break;
208
+ case 'emptyStateSuggestions':
209
+ this.setHostProperty('emptyStateSuggestions', changes['emptyStateSuggestions'].currentValue);
210
+ break;
211
+ default:
212
+ break;
213
+ }
214
+ }
215
+ }
216
+ /**
217
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
218
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
219
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
220
+ * undefined / null by clearing their bindings.
221
+ */
222
+ setHostProperty(key, value) {
223
+ this.renderer.setProperty(this.host, key, value);
224
+ }
225
+ bindEvents() {
226
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-message-sent', (event) => {
227
+ const typed = event;
228
+ this.luzmoMessageSent.emit(typed);
229
+ }));
230
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-datasets-changed', (event) => {
231
+ const typed = event;
232
+ this.luzmoDatasetsChanged.emit(typed);
233
+ }));
234
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-step', (event) => {
235
+ const typed = event;
236
+ this.luzmoStep.emit(typed);
237
+ }));
238
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-complete', (event) => {
239
+ const typed = event;
240
+ this.luzmoComplete.emit(typed);
241
+ }));
242
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-stop', (event) => {
243
+ const typed = event;
244
+ this.luzmoStop.emit(typed);
245
+ }));
246
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-conversation-id-changed', (event) => {
247
+ const typed = event;
248
+ this.luzmoConversationIdChanged.emit(typed);
249
+ }));
250
+ }
251
+ static ɵfac = function LuzmoAiChat_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiChat)(); };
252
+ 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", 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], agent: "agent", 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", initialPrompt: "initialPrompt", emptyStateTitle: "emptyStateTitle", emptyStateSubtitle: "emptyStateSubtitle", emptyStateSuggestions: "emptyStateSuggestions" }, outputs: { luzmoMessageSent: "luzmoMessageSent", luzmoDatasetsChanged: "luzmoDatasetsChanged", luzmoStep: "luzmoStep", luzmoComplete: "luzmoComplete", luzmoStop: "luzmoStop", luzmoConversationIdChanged: "luzmoConversationIdChanged" }, exportAs: ["luzmoAiChat"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiChat_Template(rf, ctx) { if (rf & 1) {
253
+ i0.ɵɵprojectionDef();
254
+ i0.ɵɵprojection(0);
255
+ } }, encapsulation: 2, changeDetection: 0 });
256
+ }
257
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoAiChat, [{
258
+ type: Component,
259
+ args: [{
260
+ selector: 'luzmo-ai-chat',
261
+ exportAs: 'luzmoAiChat',
262
+ standalone: true,
263
+ changeDetection: ChangeDetectionStrategy.OnPush,
264
+ template: '<ng-content />'
265
+ }]
266
+ }], () => [], { messages: [{
267
+ type: Input,
268
+ args: [{ alias: 'messages' }]
269
+ }], selectedDatasets: [{
270
+ type: Input,
271
+ args: [{ alias: 'selectedDatasets' }]
272
+ }], placeholder: [{
273
+ type: Input,
274
+ args: [{ alias: 'placeholder' }]
275
+ }], disabled: [{
276
+ type: Input,
277
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
278
+ }], stoppable: [{
279
+ type: Input,
280
+ args: [{ alias: 'stoppable', transform: booleanAttribute }]
281
+ }], showAssistantContextMenu: [{
282
+ type: Input,
283
+ args: [{ alias: 'showAssistantContextMenu', transform: booleanAttribute }]
284
+ }], authKey: [{
285
+ type: Input,
286
+ args: [{ alias: 'authKey' }]
287
+ }], authToken: [{
288
+ type: Input,
289
+ args: [{ alias: 'authToken' }]
290
+ }], apiUrl: [{
291
+ type: Input,
292
+ args: [{ alias: 'apiUrl' }]
293
+ }], appServer: [{
294
+ type: Input,
295
+ args: [{ alias: 'appServer' }]
296
+ }], flagOpendata: [{
297
+ type: Input,
298
+ args: [{ alias: 'flagOpendata', transform: booleanAttribute }]
299
+ }], hideDatasetButton: [{
300
+ type: Input,
301
+ args: [{ alias: 'hideDatasetButton', transform: booleanAttribute }]
302
+ }], hideDatasetIcons: [{
303
+ type: Input,
304
+ args: [{ alias: 'hideDatasetIcons', transform: booleanAttribute }]
305
+ }], disableDatasetModification: [{
306
+ type: Input,
307
+ args: [{ alias: 'disableDatasetModification', transform: booleanAttribute }]
308
+ }], hideSelectedDatasets: [{
309
+ type: Input,
310
+ args: [{ alias: 'hideSelectedDatasets', transform: booleanAttribute }]
311
+ }], disableColumnMentions: [{
312
+ type: Input,
313
+ args: [{ alias: 'disableColumnMentions', transform: booleanAttribute }]
314
+ }], requireDataset: [{
315
+ type: Input,
316
+ args: [{ alias: 'requireDataset', transform: booleanAttribute }]
317
+ }], agent: [{
318
+ type: Input,
319
+ args: [{ alias: 'agent' }]
320
+ }], task: [{
321
+ type: Input,
322
+ args: [{ alias: 'task' }]
323
+ }], modelPreference: [{
324
+ type: Input,
325
+ args: [{ alias: 'modelPreference' }]
326
+ }], chatSession: [{
327
+ type: Input,
328
+ args: [{ alias: 'chatSession' }]
329
+ }], conversationId: [{
330
+ type: Input,
331
+ args: [{ alias: 'conversationId' }]
332
+ }], chart: [{
333
+ type: Input,
334
+ args: [{ alias: 'chart' }]
335
+ }], dashboard: [{
336
+ type: Input,
337
+ args: [{ alias: 'dashboard' }]
338
+ }], currentScreenMode: [{
339
+ type: Input,
340
+ args: [{ alias: 'currentScreenMode' }]
341
+ }], localeId: [{
342
+ type: Input,
343
+ args: [{ alias: 'localeId' }]
344
+ }], timezoneId: [{
345
+ type: Input,
346
+ args: [{ alias: 'timezoneId' }]
347
+ }], apiVersion: [{
348
+ type: Input,
349
+ args: [{ alias: 'apiVersion' }]
350
+ }], stream: [{
351
+ type: Input,
352
+ args: [{ alias: 'stream', transform: booleanAttribute }]
353
+ }], loadingMessage: [{
354
+ type: Input,
355
+ args: [{ alias: 'loadingMessage' }]
356
+ }], initialPrompt: [{
357
+ type: Input,
358
+ args: [{ alias: 'initialPrompt' }]
359
+ }], emptyStateTitle: [{
360
+ type: Input,
361
+ args: [{ alias: 'emptyStateTitle' }]
362
+ }], emptyStateSubtitle: [{
363
+ type: Input,
364
+ args: [{ alias: 'emptyStateSubtitle' }]
365
+ }], emptyStateSuggestions: [{
366
+ type: Input,
367
+ args: [{ alias: 'emptyStateSuggestions' }]
368
+ }], 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"] }] }); })();
369
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAiChat, { className: "LuzmoAiChat", filePath: "components/ai-chat.ts", lineNumber: 18 }); })();
@@ -0,0 +1,110 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/ai-interaction-textarea';
3
+ import type { LuzmoAiInteractionTextarea as LuzmoAiInteractionTextareaHostElement, PromptSubmittedEventDetail } from '@luzmo/analytics-components-kit/ai-interaction-textarea';
4
+ import type { Dataset } from '@luzmo/analytics-components-kit/types';
5
+ import * as i0 from "@angular/core";
6
+ export type { PromptSubmittedEventDetail } from '@luzmo/analytics-components-kit/ai-interaction-textarea';
7
+ export declare class LuzmoAiInteractionTextarea 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(): LuzmoAiInteractionTextareaHostElement;
15
+ /** Placeholder text for the textarea */
16
+ placeholder?: string;
17
+ /** Array of selected datasets */
18
+ selectedDatasets?: Dataset[];
19
+ /** Auth key for DataBroker authentication */
20
+ authKey?: string;
21
+ /** Auth token for DataBroker authentication */
22
+ authToken?: string;
23
+ /** API URL for DataBroker */
24
+ apiUrl?: string;
25
+ /** The URL of the app server for thumbnails and assets */
26
+ appServer?: string;
27
+ /** When true, restricts results to public datasets (opendata parity) */
28
+ flagOpendata?: boolean;
29
+ /** When true, disables the entire component (opacity 60%, no interactions) */
30
+ disabled?: boolean;
31
+ /** When true, starts in compact single-line mode and auto-expands as needed */
32
+ singleLine?: boolean;
33
+ /** When true, hides the "+ Add dataset" button */
34
+ hideDatasetButton?: boolean;
35
+ /** When true, hides dataset-specific icons in selector tags and @ mention dataset headers */
36
+ hideDatasetIcons?: boolean;
37
+ /** When true, disables the "+ Add dataset" button and disables dataset pill removal */
38
+ disableDatasetModification?: boolean;
39
+ /** When true, hides the dataset row entirely */
40
+ hideSelectedDatasets?: boolean;
41
+ /** When true, disables @ trigger mentions completely */
42
+ disableColumnMentions?: boolean;
43
+ /** When true, shows a spinning loader icon instead of the submit arrow */
44
+ isGenerating?: boolean;
45
+ /** When true, shows a stop control while `is-generating` is true */
46
+ stoppable?: boolean;
47
+ /** The current value of the textarea (can be controlled from parent to clear or set text) */
48
+ value?: string;
49
+ /** When true, retains the input value after submitting a prompt (default: false) When false (default), clears the textarea value after submission */
50
+ retainOnSubmit?: boolean;
51
+ /** When true, at least one dataset must be selected before the prompt can be submitted */
52
+ requireDataset?: boolean;
53
+ /** When true, starts in compact single-line mode and auto-expands as needed */
54
+ singleline?: boolean;
55
+ /** When true, hides the "+ Add dataset" button */
56
+ hidedatasetbutton?: boolean;
57
+ /** When true, hides dataset-specific icons in selector tags and `@` mention dataset headers */
58
+ hidedataseticons?: boolean;
59
+ /** When true, disables the "+ Add dataset" button and disables dataset pill removal */
60
+ disabledatasetmodification?: boolean;
61
+ /** When true, hides the dataset row entirely */
62
+ hideselecteddatasets?: boolean;
63
+ /** When true, disables `@` trigger mentions completely */
64
+ disablecolumnmentions?: boolean;
65
+ /** When true, shows a spinning loader icon instead of the submit arrow */
66
+ isgenerating?: boolean;
67
+ /** When true, retains the input value after submission (default: false, clears on submit) */
68
+ retainonsubmit?: boolean;
69
+ /** When true, at least one dataset must be selected before the prompt can be submitted */
70
+ requiredataset?: boolean;
71
+ /** Fired when a prompt is submitted with selected datasets */
72
+ readonly promptSubmitted: import("@angular/core").OutputEmitterRef<CustomEvent<PromptSubmittedEventDetail>>;
73
+ /** Fired when a running prompt is stopped */
74
+ readonly promptStopped: import("@angular/core").OutputEmitterRef<CustomEvent<void>>;
75
+ constructor();
76
+ ngOnChanges(changes: SimpleChanges): void;
77
+ /**
78
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
79
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
80
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
81
+ * undefined / null by clearing their bindings.
82
+ */
83
+ private setHostProperty;
84
+ private bindEvents;
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiInteractionTextarea, never>;
86
+ 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; }; "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; }; "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; }; "singleline": { "alias": "singleLine"; "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; }; "isgenerating": { "alias": "isGenerating"; "required": false; }; "retainonsubmit": { "alias": "retainOnSubmit"; "required": false; }; "requiredataset": { "alias": "requireDataset"; "required": false; }; }, { "promptSubmitted": "promptSubmitted"; "promptStopped": "promptStopped"; }, never, ["*"], true, never>;
87
+ static ngAcceptInputType_flagOpendata: unknown;
88
+ static ngAcceptInputType_disabled: unknown;
89
+ static ngAcceptInputType_singleLine: unknown;
90
+ static ngAcceptInputType_hideDatasetButton: unknown;
91
+ static ngAcceptInputType_hideDatasetIcons: unknown;
92
+ static ngAcceptInputType_disableDatasetModification: unknown;
93
+ static ngAcceptInputType_hideSelectedDatasets: unknown;
94
+ static ngAcceptInputType_disableColumnMentions: unknown;
95
+ static ngAcceptInputType_isGenerating: unknown;
96
+ static ngAcceptInputType_stoppable: unknown;
97
+ static ngAcceptInputType_retainOnSubmit: unknown;
98
+ static ngAcceptInputType_requireDataset: unknown;
99
+ static ngAcceptInputType_singleline: unknown;
100
+ static ngAcceptInputType_hidedatasetbutton: unknown;
101
+ static ngAcceptInputType_hidedataseticons: unknown;
102
+ static ngAcceptInputType_disabledatasetmodification: unknown;
103
+ static ngAcceptInputType_hideselecteddatasets: unknown;
104
+ static ngAcceptInputType_disablecolumnmentions: unknown;
105
+ static ngAcceptInputType_isgenerating: unknown;
106
+ static ngAcceptInputType_retainonsubmit: unknown;
107
+ static ngAcceptInputType_requiredataset: unknown;
108
+ }
109
+ /** The underlying custom element type for LuzmoAiInteractionTextarea */
110
+ export type LuzmoAiInteractionTextareaElement = LuzmoAiInteractionTextareaHostElement;