@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.
- package/README.md +40 -0
- package/esm/components/ai-chat-empty-state.d.ts +39 -0
- package/esm/components/ai-chat-empty-state.js +99 -0
- package/esm/components/ai-chat.d.ts +121 -0
- package/esm/components/ai-chat.js +369 -0
- package/esm/components/ai-interaction-textarea.d.ts +110 -0
- package/esm/components/ai-interaction-textarea.js +297 -0
- package/esm/components/data-field-level.d.ts +42 -0
- package/esm/components/data-field-level.js +115 -0
- package/esm/components/data-field-panel.d.ts +84 -0
- package/esm/components/data-field-panel.js +260 -0
- package/esm/components/data-field.d.ts +41 -0
- package/esm/components/data-field.js +108 -0
- package/esm/components/data-fields-select.d.ts +70 -0
- package/esm/components/data-fields-select.js +187 -0
- package/esm/components/dataset-icon.d.ts +34 -0
- package/esm/components/dataset-icon.js +86 -0
- package/esm/components/dataset-selector-list.d.ts +53 -0
- package/esm/components/dataset-selector-list.js +147 -0
- package/esm/components/dataset-selector-row.d.ts +56 -0
- package/esm/components/dataset-selector-row.js +153 -0
- package/esm/components/display-settings-binning.d.ts +32 -0
- package/esm/components/display-settings-binning.js +74 -0
- package/esm/components/display-settings-datetime.d.ts +36 -0
- package/esm/components/display-settings-datetime.js +89 -0
- package/esm/components/display-settings-grand-totals.d.ts +33 -0
- package/esm/components/display-settings-grand-totals.js +75 -0
- package/esm/components/display-settings-numeric.d.ts +41 -0
- package/esm/components/display-settings-numeric.js +99 -0
- package/esm/components/display-settings-period-over-period.d.ts +38 -0
- package/esm/components/display-settings-period-over-period.js +89 -0
- package/esm/components/display-settings.d.ts +69 -0
- package/esm/components/display-settings.js +182 -0
- package/esm/components/filter-expression-picker.d.ts +54 -0
- package/esm/components/filter-expression-picker.js +146 -0
- package/esm/components/filter-item.d.ts +44 -0
- package/esm/components/filter-item.js +130 -0
- package/esm/components/filter-parameter-picker.d.ts +31 -0
- package/esm/components/filter-parameter-picker.js +78 -0
- package/esm/components/filter-value-picker-datetime.d.ts +34 -0
- package/esm/components/filter-value-picker-datetime.js +90 -0
- package/esm/components/filter-value-picker-hierarchy.d.ts +40 -0
- package/esm/components/filter-value-picker-hierarchy.js +114 -0
- package/esm/components/filter-value-picker-numeric.d.ts +40 -0
- package/esm/components/filter-value-picker-numeric.js +114 -0
- package/esm/components/filter-value-picker.d.ts +44 -0
- package/esm/components/filter-value-picker.js +130 -0
- package/esm/components/filters.d.ts +49 -0
- package/esm/components/filters.js +139 -0
- package/esm/components/formula-editor.d.ts +39 -0
- package/esm/components/formula-editor.js +95 -0
- package/esm/components/formula-field.d.ts +31 -0
- package/esm/components/formula-field.js +69 -0
- package/esm/components/formula.d.ts +31 -0
- package/esm/components/formula.js +75 -0
- package/esm/components/item-grid-item-actions-menu.d.ts +34 -0
- package/esm/components/item-grid-item-actions-menu.js +82 -0
- package/esm/components/item-grid.d.ts +80 -0
- package/esm/components/item-grid.js +245 -0
- package/esm/components/item-option-action-button-group.d.ts +30 -0
- package/esm/components/item-option-action-button-group.js +63 -0
- package/esm/components/item-option-color-palette-picker.d.ts +30 -0
- package/esm/components/item-option-color-palette-picker.js +63 -0
- package/esm/components/item-option-color-picker.d.ts +35 -0
- package/esm/components/item-option-color-picker.js +102 -0
- package/esm/components/item-option-color-range.d.ts +30 -0
- package/esm/components/item-option-color-range.js +63 -0
- package/esm/components/item-option-multi-language-field.d.ts +31 -0
- package/esm/components/item-option-multi-language-field.js +74 -0
- package/esm/components/item-option-number-field.d.ts +32 -0
- package/esm/components/item-option-number-field.js +81 -0
- package/esm/components/item-option-panel.d.ts +54 -0
- package/esm/components/item-option-panel.js +155 -0
- package/esm/components/item-option-picker.d.ts +30 -0
- package/esm/components/item-option-picker.js +63 -0
- package/esm/components/item-option-position-picker.d.ts +30 -0
- package/esm/components/item-option-position-picker.js +63 -0
- package/esm/components/item-option-positions-number-field.d.ts +32 -0
- package/esm/components/item-option-positions-number-field.js +81 -0
- package/esm/components/item-option-radio-button-group.d.ts +31 -0
- package/esm/components/item-option-radio-button-group.js +74 -0
- package/esm/components/item-option-slider.d.ts +36 -0
- package/esm/components/item-option-slider.js +109 -0
- package/esm/components/item-option-switch.d.ts +34 -0
- package/esm/components/item-option-switch.js +81 -0
- package/esm/components/item-option-text-field.d.ts +31 -0
- package/esm/components/item-option-text-field.js +74 -0
- package/esm/components/item-option.d.ts +48 -0
- package/esm/components/item-option.js +161 -0
- package/esm/components/item-slot-drop-panel.d.ts +78 -0
- package/esm/components/item-slot-drop-panel.js +233 -0
- package/esm/components/item-slot-drop.d.ts +63 -0
- package/esm/components/item-slot-drop.js +201 -0
- package/esm/components/item-slot-picker-panel.d.ts +95 -0
- package/esm/components/item-slot-picker-panel.js +301 -0
- package/esm/components/item-slot-picker.d.ts +80 -0
- package/esm/components/item-slot-picker.js +235 -0
- package/esm/components/slot-menu-list.d.ts +37 -0
- package/esm/components/slot-menu-list.js +97 -0
- package/esm/components/slot-menu.d.ts +85 -0
- package/esm/components/slot-menu.js +271 -0
- package/esm/components/viz-item-menu.d.ts +40 -0
- package/esm/components/viz-item-menu.js +103 -0
- package/esm/index.d.ts +105 -0
- package/esm/index.js +209 -0
- package/package.json +40 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Luzmo Analytics Components Kit - Angular Wrappers
|
|
2
|
+
|
|
3
|
+
> Standalone Angular wrapper components for the Luzmo Analytics Components Kit web components
|
|
4
|
+
|
|
5
|
+
This package provides Angular wrappers for the Luzmo Analytics Components Kit web components.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @luzmo/ngx-analytics-components-kit @luzmo/analytics-components-kit @angular/core @angular/forms
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Requirements
|
|
14
|
+
|
|
15
|
+
- Angular `>= 17.3` (the wrappers use the functional `output()` API).
|
|
16
|
+
- The peer package `@luzmo/analytics-components-kit` provides the underlying
|
|
17
|
+
custom-element classes that the wrappers register at import time.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import { Component } from '@angular/core';
|
|
23
|
+
import { LuzmoDataField } from '@luzmo/ngx-analytics-components-kit';
|
|
24
|
+
|
|
25
|
+
@Component({
|
|
26
|
+
selector: 'app-root',
|
|
27
|
+
standalone: true,
|
|
28
|
+
imports: [LuzmoDataField],
|
|
29
|
+
template: `<luzmo-data-field></luzmo-data-field>`
|
|
30
|
+
})
|
|
31
|
+
export class AppComponent {}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The wrapper class name mirrors the host element (`LuzmoDataField`); the
|
|
35
|
+
underlying `HTMLElement` subclass type is re-exported as
|
|
36
|
+
`LuzmoDataFieldElement` for `@ViewChild` / `ElementRef<T>` use cases.
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- This package depends on `@luzmo/analytics-components-kit` for the underlying custom elements.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/ai-chat';
|
|
3
|
+
import type { LuzmoAiChatEmptyState as LuzmoAiChatEmptyStateHostElement, AiChatEmptyStateSuggestion, AiChatEmptyStateSuggestionSelectedDetail } from '@luzmo/analytics-components-kit/ai-chat';
|
|
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, AiPromptCreateBody, AiPromptDeleteBody, LuzmoPromptSubmittedEventDetail, LuzmoRestoreRequestedEventDetail, ProgressTreeNode, RecognizedStepEvent, StreamHandlerCallbacks, StreamHandlerContext, StreamHandlerState, StreamingRequestOptions, StreamingResponse, UnknownStepEvent } from '@luzmo/analytics-components-kit/ai-chat';
|
|
6
|
+
export declare class LuzmoAiChatEmptyState implements OnChanges {
|
|
7
|
+
private readonly elementRef;
|
|
8
|
+
private readonly renderer;
|
|
9
|
+
private readonly destroyRef;
|
|
10
|
+
private readonly host;
|
|
11
|
+
private readonly listenerCleanup;
|
|
12
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
13
|
+
get nativeElement(): LuzmoAiChatEmptyStateHostElement;
|
|
14
|
+
/** Heading shown above the suggestions. */
|
|
15
|
+
title?: string;
|
|
16
|
+
/** Supporting text shown above suggestion chips when `suggestions` is non-empty. */
|
|
17
|
+
subtitle?: string;
|
|
18
|
+
/** Suggestion chips rendered with https://lucero.luzmo.com/ | Lucero `luzmo-action-button` (`variant="accent"`). */
|
|
19
|
+
suggestions?: AiChatEmptyStateSuggestion[];
|
|
20
|
+
/** When true, suggestion chips cannot be activated. */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Fired when the user selects a suggestion chip */
|
|
23
|
+
readonly luzmoSuggestionSelected: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatEmptyStateSuggestionSelectedDetail>>;
|
|
24
|
+
constructor();
|
|
25
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
26
|
+
/**
|
|
27
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
28
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
29
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
30
|
+
* undefined / null by clearing their bindings.
|
|
31
|
+
*/
|
|
32
|
+
private setHostProperty;
|
|
33
|
+
private bindEvents;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiChatEmptyState, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiChatEmptyState, "luzmo-ai-chat-empty-state", ["luzmoAiChatEmptyState"], { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "luzmoSuggestionSelected": "luzmoSuggestionSelected"; }, never, ["*"], true, never>;
|
|
36
|
+
static ngAcceptInputType_disabled: unknown;
|
|
37
|
+
}
|
|
38
|
+
/** The underlying custom element type for LuzmoAiChatEmptyState */
|
|
39
|
+
export type LuzmoAiChatEmptyStateElement = LuzmoAiChatEmptyStateHostElement;
|
|
@@ -0,0 +1,99 @@
|
|
|
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-empty-state>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoAiChatEmptyState {
|
|
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
|
+
/** Heading shown above the suggestions. */
|
|
19
|
+
title;
|
|
20
|
+
/** Supporting text shown above suggestion chips when `suggestions` is non-empty. */
|
|
21
|
+
subtitle;
|
|
22
|
+
/** Suggestion chips rendered with https://lucero.luzmo.com/ | Lucero `luzmo-action-button` (`variant="accent"`). */
|
|
23
|
+
suggestions;
|
|
24
|
+
/** When true, suggestion chips cannot be activated. */
|
|
25
|
+
disabled;
|
|
26
|
+
/** Fired when the user selects a suggestion chip */
|
|
27
|
+
luzmoSuggestionSelected = output({ alias: 'luzmoSuggestionSelected' });
|
|
28
|
+
constructor() {
|
|
29
|
+
this.bindEvents();
|
|
30
|
+
this.destroyRef.onDestroy(() => {
|
|
31
|
+
for (const cleanup of this.listenerCleanup) {
|
|
32
|
+
cleanup();
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
ngOnChanges(changes) {
|
|
37
|
+
for (const key of Object.keys(changes)) {
|
|
38
|
+
switch (key) {
|
|
39
|
+
case 'title':
|
|
40
|
+
this.setHostProperty('title', changes['title'].currentValue);
|
|
41
|
+
break;
|
|
42
|
+
case 'subtitle':
|
|
43
|
+
this.setHostProperty('subtitle', changes['subtitle'].currentValue);
|
|
44
|
+
break;
|
|
45
|
+
case 'suggestions':
|
|
46
|
+
this.setHostProperty('suggestions', changes['suggestions'].currentValue);
|
|
47
|
+
break;
|
|
48
|
+
case 'disabled':
|
|
49
|
+
this.setHostProperty('disabled', changes['disabled'].currentValue);
|
|
50
|
+
break;
|
|
51
|
+
default:
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
58
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
59
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
60
|
+
* undefined / null by clearing their bindings.
|
|
61
|
+
*/
|
|
62
|
+
setHostProperty(key, value) {
|
|
63
|
+
this.renderer.setProperty(this.host, key, value);
|
|
64
|
+
}
|
|
65
|
+
bindEvents() {
|
|
66
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-suggestion-selected', (event) => {
|
|
67
|
+
const typed = event;
|
|
68
|
+
this.luzmoSuggestionSelected.emit(typed);
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
static ɵfac = function LuzmoAiChatEmptyState_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiChatEmptyState)(); };
|
|
72
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiChatEmptyState, selectors: [["luzmo-ai-chat-empty-state"]], inputs: { title: "title", subtitle: "subtitle", suggestions: "suggestions", disabled: [2, "disabled", "disabled", booleanAttribute] }, outputs: { luzmoSuggestionSelected: "luzmoSuggestionSelected" }, exportAs: ["luzmoAiChatEmptyState"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiChatEmptyState_Template(rf, ctx) { if (rf & 1) {
|
|
73
|
+
i0.ɵɵprojectionDef();
|
|
74
|
+
i0.ɵɵprojection(0);
|
|
75
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
76
|
+
}
|
|
77
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoAiChatEmptyState, [{
|
|
78
|
+
type: Component,
|
|
79
|
+
args: [{
|
|
80
|
+
selector: 'luzmo-ai-chat-empty-state',
|
|
81
|
+
exportAs: 'luzmoAiChatEmptyState',
|
|
82
|
+
standalone: true,
|
|
83
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
84
|
+
template: '<ng-content />'
|
|
85
|
+
}]
|
|
86
|
+
}], () => [], { title: [{
|
|
87
|
+
type: Input,
|
|
88
|
+
args: [{ alias: 'title' }]
|
|
89
|
+
}], subtitle: [{
|
|
90
|
+
type: Input,
|
|
91
|
+
args: [{ alias: 'subtitle' }]
|
|
92
|
+
}], suggestions: [{
|
|
93
|
+
type: Input,
|
|
94
|
+
args: [{ alias: 'suggestions' }]
|
|
95
|
+
}], disabled: [{
|
|
96
|
+
type: Input,
|
|
97
|
+
args: [{ alias: 'disabled', transform: booleanAttribute }]
|
|
98
|
+
}], luzmoSuggestionSelected: [{ type: i0.Output, args: ["luzmoSuggestionSelected"] }] }); })();
|
|
99
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAiChatEmptyState, { className: "LuzmoAiChatEmptyState", filePath: "components/ai-chat-empty-state.ts", lineNumber: 16 }); })();
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/ai-chat';
|
|
3
|
+
import type { LuzmoAiChat as LuzmoAiChatHostElement, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatMessageSentEventDetail, AiChatSession, AiChatStepEvent } from '@luzmo/analytics-components-kit/ai-chat';
|
|
4
|
+
import type { AiPromptAgent, AiPromptItemTask, AiPromptScreenMode, DashboardStatePayload } from '@luzmo/analytics-components-kit/ai-chat';
|
|
5
|
+
import type { ChatMessage, Dataset, LuzmoChart } from '@luzmo/analytics-components-kit/types';
|
|
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, AiPromptCreateBody, AiPromptDeleteBody, LuzmoPromptSubmittedEventDetail, LuzmoRestoreRequestedEventDetail, ProgressTreeNode, RecognizedStepEvent, StreamHandlerCallbacks, StreamHandlerContext, StreamHandlerState, StreamingRequestOptions, StreamingResponse, UnknownStepEvent } from '@luzmo/analytics-components-kit/ai-chat';
|
|
8
|
+
export declare class LuzmoAiChat implements OnChanges {
|
|
9
|
+
private readonly elementRef;
|
|
10
|
+
private readonly renderer;
|
|
11
|
+
private readonly destroyRef;
|
|
12
|
+
private readonly host;
|
|
13
|
+
private readonly listenerCleanup;
|
|
14
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
|
+
get nativeElement(): LuzmoAiChatHostElement;
|
|
16
|
+
/** Live transcript is AiChatSession.state.messages. This prop optionally seeds the session on first connect. */
|
|
17
|
+
messages?: ChatMessage[];
|
|
18
|
+
/** Live selection is in the session. This prop optionally seeds on first connect. */
|
|
19
|
+
selectedDatasets?: Dataset[];
|
|
20
|
+
/** Placeholder text for the textarea */
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
/** When true, disables the entire chat interface */
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/** When true, shows a stop control on the prompt input while a response is generating */
|
|
25
|
+
stoppable?: boolean;
|
|
26
|
+
/** When true, shows context menu (3 dots) on assistant messages */
|
|
27
|
+
showAssistantContextMenu?: boolean;
|
|
28
|
+
/** Auth key for DataBroker authentication */
|
|
29
|
+
authKey?: string;
|
|
30
|
+
/** Auth token for DataBroker authentication */
|
|
31
|
+
authToken?: string;
|
|
32
|
+
/** API URL for DataBroker */
|
|
33
|
+
apiUrl?: string;
|
|
34
|
+
/** The URL of the app server for thumbnails and assets */
|
|
35
|
+
appServer?: string;
|
|
36
|
+
/** When true, restricts results to public datasets (opendata parity) */
|
|
37
|
+
flagOpendata?: boolean;
|
|
38
|
+
/** When true, hides the "+ Add dataset" button in the input */
|
|
39
|
+
hideDatasetButton?: boolean;
|
|
40
|
+
/** When true, hides dataset icons in the input dataset selector and @ mention dataset headers */
|
|
41
|
+
hideDatasetIcons?: boolean;
|
|
42
|
+
/** When true, hides the add-dataset button and disables removing selected datasets while keeping pills visible */
|
|
43
|
+
disableDatasetModification?: boolean;
|
|
44
|
+
/** When true, hides the dataset row and add-dataset button entirely */
|
|
45
|
+
hideSelectedDatasets?: boolean;
|
|
46
|
+
/** When true, disables @ trigger mentions for dataset fields in the input */
|
|
47
|
+
disableColumnMentions?: boolean;
|
|
48
|
+
/** When true, at least one dataset must be selected before the prompt can be submitted */
|
|
49
|
+
requireDataset?: boolean;
|
|
50
|
+
/** Which aiprompt agent to use. Determines request payload and stream handling. */
|
|
51
|
+
agent?: AiPromptAgent;
|
|
52
|
+
/** Task for the item agent (`generate`, `suggest`, `describe`). */
|
|
53
|
+
task?: AiPromptItemTask;
|
|
54
|
+
/** AI model preference for item agent chart generation */
|
|
55
|
+
modelPreference?: 'performance' | 'quality';
|
|
56
|
+
/** Host-owned AiChatSession. The component subscribes and renders; does not abort on disconnect. */
|
|
57
|
+
chatSession?: AiChatSession | null;
|
|
58
|
+
/** Conversation ID (synced into the session; updated when the API returns a new id). */
|
|
59
|
+
conversationId?: string | null;
|
|
60
|
+
/** Chart context for `agent="item"`. */
|
|
61
|
+
chart?: LuzmoChart | null;
|
|
62
|
+
/** Dashboard context for `agent="dashboard"`. */
|
|
63
|
+
dashboard?: DashboardStatePayload | null;
|
|
64
|
+
/** Current screen mode when editing a dashboard. */
|
|
65
|
+
currentScreenMode?: AiPromptScreenMode;
|
|
66
|
+
/** Locale ID sent to the aiprompt API. */
|
|
67
|
+
localeId?: string;
|
|
68
|
+
/** Timezone ID for dashboard agent requests. */
|
|
69
|
+
timezoneId?: string;
|
|
70
|
+
/** API version */
|
|
71
|
+
apiVersion?: string;
|
|
72
|
+
/** When true, uses NDJSON streaming for AI responses. When false, uses a single JSON response. */
|
|
73
|
+
stream?: boolean;
|
|
74
|
+
/** Loading message shown while generating and before progress steps are available. */
|
|
75
|
+
loadingMessage?: string | null;
|
|
76
|
+
/** When set, auto-submits via the session without adding a duplicate user message (assumes the prompt is already in the transcript). */
|
|
77
|
+
initialPrompt?: string | null;
|
|
78
|
+
/** Title for the empty state when there are no messages. */
|
|
79
|
+
emptyStateTitle?: string;
|
|
80
|
+
/** Optional label above empty-state suggestion chips. Only shown when `emptyStateSuggestions` is non-empty. */
|
|
81
|
+
emptyStateSubtitle?: string;
|
|
82
|
+
/** 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. */
|
|
83
|
+
emptyStateSuggestions?: AiChatEmptyStateSuggestion[];
|
|
84
|
+
/** Fired when a user sends a message */
|
|
85
|
+
readonly luzmoMessageSent: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatMessageSentEventDetail>>;
|
|
86
|
+
/** Fired when the selected datasets change */
|
|
87
|
+
readonly luzmoDatasetsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatDatasetsChangedEventDetail>>;
|
|
88
|
+
/** 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. */
|
|
89
|
+
readonly luzmoStep: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatStepEvent>>;
|
|
90
|
+
/** Fired exactly once per response with the authoritative final result (dashboard/chart/name) or an `error`. */
|
|
91
|
+
readonly luzmoComplete: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatCompleteEvent>>;
|
|
92
|
+
/** Fired when an in-flight prompt is stopped */
|
|
93
|
+
readonly luzmoStop: import("@angular/core").OutputEmitterRef<CustomEvent<void>>;
|
|
94
|
+
/** Fired when the conversation ID is updated from the API */
|
|
95
|
+
readonly luzmoConversationIdChanged: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatConversationIdChangedEventDetail>>;
|
|
96
|
+
constructor();
|
|
97
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
98
|
+
/**
|
|
99
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
100
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
101
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
102
|
+
* undefined / null by clearing their bindings.
|
|
103
|
+
*/
|
|
104
|
+
private setHostProperty;
|
|
105
|
+
private bindEvents;
|
|
106
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiChat, never>;
|
|
107
|
+
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; }; "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; }; "agent": { "alias": "agent"; "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; }; "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"; }, never, ["*"], true, never>;
|
|
108
|
+
static ngAcceptInputType_disabled: unknown;
|
|
109
|
+
static ngAcceptInputType_stoppable: unknown;
|
|
110
|
+
static ngAcceptInputType_showAssistantContextMenu: unknown;
|
|
111
|
+
static ngAcceptInputType_flagOpendata: unknown;
|
|
112
|
+
static ngAcceptInputType_hideDatasetButton: unknown;
|
|
113
|
+
static ngAcceptInputType_hideDatasetIcons: unknown;
|
|
114
|
+
static ngAcceptInputType_disableDatasetModification: unknown;
|
|
115
|
+
static ngAcceptInputType_hideSelectedDatasets: unknown;
|
|
116
|
+
static ngAcceptInputType_disableColumnMentions: unknown;
|
|
117
|
+
static ngAcceptInputType_requireDataset: unknown;
|
|
118
|
+
static ngAcceptInputType_stream: unknown;
|
|
119
|
+
}
|
|
120
|
+
/** The underlying custom element type for LuzmoAiChat */
|
|
121
|
+
export type LuzmoAiChatElement = LuzmoAiChatHostElement;
|