@luzmo/ngx-analytics-components-kit 1.0.9-beta.9 → 1.2.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.
- package/esm/components/ai-chat-empty-state.d.ts +1 -1
- package/esm/components/ai-chat.d.ts +9 -4
- package/esm/components/ai-chat.js +17 -3
- package/esm/components/filters.d.ts +4 -1
- package/esm/components/filters.js +9 -1
- package/esm/components/interactive-viz-item.d.ts +13 -4
- package/esm/components/interactive-viz-item.js +29 -3
- package/esm/components/item-grid-item-actions-menu.d.ts +10 -8
- package/esm/components/item-grid-item-actions-menu.js +12 -6
- package/esm/components/item-grid.d.ts +5 -3
- package/esm/components/item-grid.js +8 -2
- package/esm/components/item-option-color-picker.d.ts +11 -4
- package/esm/components/item-option-color-picker.js +23 -3
- package/esm/components/item-option-color-range.d.ts +11 -4
- package/esm/components/item-option-color-range.js +23 -3
- package/esm/components/item-option-guidelines.d.ts +11 -4
- package/esm/components/item-option-guidelines.js +24 -4
- package/esm/components/item-option-panel.d.ts +13 -4
- package/esm/components/item-option-panel.js +30 -4
- package/esm/components/item-option-slider.d.ts +13 -4
- package/esm/components/item-option-slider.js +30 -4
- package/esm/components/item-option.d.ts +13 -4
- package/esm/components/item-option.js +30 -4
- package/esm/components/item-slot-picker-panel.d.ts +3 -1
- package/esm/components/item-slot-picker-panel.js +9 -1
- package/esm/components/item-slot-picker.d.ts +4 -2
- package/esm/components/item-slot-picker.js +10 -2
- package/esm/components/slot-menu.d.ts +4 -1
- package/esm/components/slot-menu.js +9 -1
- package/esm/index.d.ts +2 -4
- package/esm/index.js +2 -6
- package/package.json +6 -2
- package/esm/components/viz-item-menu.d.ts +0 -42
- package/esm/components/viz-item-menu.js +0 -111
|
@@ -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.
|
|
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.
|
|
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 }); })();
|
|
@@ -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,9 +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, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, 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, InteractiveVizItemInteractionEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
|
|
4
4
|
import type { LuzmoEmbedVizItem } from '@luzmo/embed';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
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
|
+
export type { AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, ChartActionDescriptor, ChartActionType, ChartFeedback, ChartFeedbackRating, ChartMutationRequest, ChartOption, DashboardActions, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail, InteractiveVizItemInteractionEventDetail, ItemOptionInteraction, ItemOptionInteractionEventDetail, NormalizedChartConfig, Ranking, Sort } from '@luzmo/analytics-components-kit/interactive-viz-item';
|
|
7
7
|
export declare class LuzmoInteractiveVizItem implements OnChanges {
|
|
8
8
|
private readonly elementRef;
|
|
9
9
|
private readonly renderer;
|
|
@@ -42,12 +42,20 @@ export declare class LuzmoInteractiveVizItem implements OnChanges {
|
|
|
42
42
|
hideConfigPanel?: boolean;
|
|
43
43
|
/** When present, chart changes are only emitted and the host sets `chart`; otherwise they are applied here and still emitted. */
|
|
44
44
|
controlled?: boolean;
|
|
45
|
+
/** Applies and emits option changes live while a control is dragged or a key is held, without debounce, and forwards `luzmo-option-interaction-*` events. Off by default. */
|
|
46
|
+
liveInteractions?: boolean;
|
|
45
47
|
/** The size of the element */
|
|
46
48
|
size?: 's' | 'm' | 'l' | 'xl';
|
|
47
49
|
/** Fired when the inline actions (ranking, sort, display mode) change the chart options. Applied to `chart` first unless `controlled` is set. */
|
|
48
50
|
readonly luzmoChartOptionsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>;
|
|
49
|
-
/** Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set. */
|
|
51
|
+
/** Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set. With `live-interactions`, option updates inside a gesture carry `interaction`. */
|
|
50
52
|
readonly luzmoChartChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemChartChangedEventDetail>>;
|
|
53
|
+
/** With `live-interactions`: an option drag or held key in the config panel first changed its value, right before that `luzmo-chart-changed`; `detail.optionKey` names the option and `detail.chart` is the chart it started on. */
|
|
54
|
+
readonly luzmoOptionInteractionStart: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemInteractionEventDetail>>;
|
|
55
|
+
/** With `live-interactions`: the gesture ended, after its last `luzmo-chart-changed`. `detail.changed` is false when the value is back at its start; `detail.chart` is still the chart it started on. */
|
|
56
|
+
readonly luzmoOptionInteractionEnd: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemInteractionEventDetail>>;
|
|
57
|
+
/** With `live-interactions`: the gesture was cancelled and the control reverted to its start value. */
|
|
58
|
+
readonly luzmoOptionInteractionCancel: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemInteractionEventDetail>>;
|
|
51
59
|
/** Fired when the user changes the thumbs up/down rating. Never applied to `feedback`; the host owns it in both modes. */
|
|
52
60
|
readonly luzmoFeedbackChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>;
|
|
53
61
|
/** Fired by the inner `luzmo-add-to-dashboard` after the chart was saved. */
|
|
@@ -65,12 +73,13 @@ export declare class LuzmoInteractiveVizItem implements OnChanges {
|
|
|
65
73
|
private setHostProperty;
|
|
66
74
|
private bindEvents;
|
|
67
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoInteractiveVizItem, 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>;
|
|
76
|
+
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; }; "liveInteractions": { "alias": "liveInteractions"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoChartOptionsChanged": "luzmoChartOptionsChanged"; "luzmoChartChanged": "luzmoChartChanged"; "luzmoOptionInteractionStart": "luzmoOptionInteractionStart"; "luzmoOptionInteractionEnd": "luzmoOptionInteractionEnd"; "luzmoOptionInteractionCancel": "luzmoOptionInteractionCancel"; "luzmoFeedbackChanged": "luzmoFeedbackChanged"; "luzmoChartAdded": "luzmoChartAdded"; "luzmoChartAddFailed": "luzmoChartAddFailed"; }, never, ["*"], true, never>;
|
|
69
77
|
static ngAcceptInputType_addToDashboard: unknown;
|
|
70
78
|
static ngAcceptInputType_hideActions: unknown;
|
|
71
79
|
static ngAcceptInputType_hideFeedback: unknown;
|
|
72
80
|
static ngAcceptInputType_hideConfigPanel: unknown;
|
|
73
81
|
static ngAcceptInputType_controlled: unknown;
|
|
82
|
+
static ngAcceptInputType_liveInteractions: unknown;
|
|
74
83
|
}
|
|
75
84
|
/** The underlying custom element type for LuzmoInteractiveVizItem */
|
|
76
85
|
export type LuzmoInteractiveVizItemElement = LuzmoInteractiveVizItemHostElement;
|
|
@@ -50,12 +50,20 @@ export class LuzmoInteractiveVizItem {
|
|
|
50
50
|
hideConfigPanel;
|
|
51
51
|
/** When present, chart changes are only emitted and the host sets `chart`; otherwise they are applied here and still emitted. */
|
|
52
52
|
controlled;
|
|
53
|
+
/** Applies and emits option changes live while a control is dragged or a key is held, without debounce, and forwards `luzmo-option-interaction-*` events. Off by default. */
|
|
54
|
+
liveInteractions;
|
|
53
55
|
/** The size of the element */
|
|
54
56
|
size;
|
|
55
57
|
/** Fired when the inline actions (ranking, sort, display mode) change the chart options. Applied to `chart` first unless `controlled` is set. */
|
|
56
58
|
luzmoChartOptionsChanged = output({ alias: 'luzmoChartOptionsChanged' });
|
|
57
|
-
/** Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set. */
|
|
59
|
+
/** Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set. With `live-interactions`, option updates inside a gesture carry `interaction`. */
|
|
58
60
|
luzmoChartChanged = output({ alias: 'luzmoChartChanged' });
|
|
61
|
+
/** With `live-interactions`: an option drag or held key in the config panel first changed its value, right before that `luzmo-chart-changed`; `detail.optionKey` names the option and `detail.chart` is the chart it started on. */
|
|
62
|
+
luzmoOptionInteractionStart = output({ alias: 'luzmoOptionInteractionStart' });
|
|
63
|
+
/** With `live-interactions`: the gesture ended, after its last `luzmo-chart-changed`. `detail.changed` is false when the value is back at its start; `detail.chart` is still the chart it started on. */
|
|
64
|
+
luzmoOptionInteractionEnd = output({ alias: 'luzmoOptionInteractionEnd' });
|
|
65
|
+
/** With `live-interactions`: the gesture was cancelled and the control reverted to its start value. */
|
|
66
|
+
luzmoOptionInteractionCancel = output({ alias: 'luzmoOptionInteractionCancel' });
|
|
59
67
|
/** Fired when the user changes the thumbs up/down rating. Never applied to `feedback`; the host owns it in both modes. */
|
|
60
68
|
luzmoFeedbackChanged = output({ alias: 'luzmoFeedbackChanged' });
|
|
61
69
|
/** Fired by the inner `luzmo-add-to-dashboard` after the chart was saved. */
|
|
@@ -118,6 +126,9 @@ export class LuzmoInteractiveVizItem {
|
|
|
118
126
|
case 'controlled':
|
|
119
127
|
this.setHostProperty('controlled', changes['controlled'].currentValue);
|
|
120
128
|
break;
|
|
129
|
+
case 'liveInteractions':
|
|
130
|
+
this.setHostProperty('liveInteractions', changes['liveInteractions'].currentValue);
|
|
131
|
+
break;
|
|
121
132
|
case 'size':
|
|
122
133
|
this.setHostProperty('size', changes['size'].currentValue);
|
|
123
134
|
break;
|
|
@@ -144,6 +155,18 @@ export class LuzmoInteractiveVizItem {
|
|
|
144
155
|
const typed = event;
|
|
145
156
|
this.luzmoChartChanged.emit(typed);
|
|
146
157
|
}));
|
|
158
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-option-interaction-start', (event) => {
|
|
159
|
+
const typed = event;
|
|
160
|
+
this.luzmoOptionInteractionStart.emit(typed);
|
|
161
|
+
}));
|
|
162
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-option-interaction-end', (event) => {
|
|
163
|
+
const typed = event;
|
|
164
|
+
this.luzmoOptionInteractionEnd.emit(typed);
|
|
165
|
+
}));
|
|
166
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-option-interaction-cancel', (event) => {
|
|
167
|
+
const typed = event;
|
|
168
|
+
this.luzmoOptionInteractionCancel.emit(typed);
|
|
169
|
+
}));
|
|
147
170
|
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-feedback-changed', (event) => {
|
|
148
171
|
const typed = event;
|
|
149
172
|
this.luzmoFeedbackChanged.emit(typed);
|
|
@@ -158,7 +181,7 @@ export class LuzmoInteractiveVizItem {
|
|
|
158
181
|
}));
|
|
159
182
|
}
|
|
160
183
|
static ɵfac = function LuzmoInteractiveVizItem_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoInteractiveVizItem)(); };
|
|
161
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoInteractiveVizItem, selectors: [["luzmo-interactive-viz-item"]], inputs: { language: "language", addToDashboard: [2, "addToDashboard", "addToDashboard", booleanAttribute], canFilter: "canFilter", chart: "chart", feedback: "feedback", messageId: "messageId", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", contentLanguage: "contentLanguage", hideActions: [2, "hideActions", "hideActions", booleanAttribute], hideFeedback: [2, "hideFeedback", "hideFeedback", booleanAttribute], hideConfigPanel: [2, "hideConfigPanel", "hideConfigPanel", booleanAttribute], controlled: [2, "controlled", "controlled", booleanAttribute], size: "size" }, outputs: { luzmoChartOptionsChanged: "luzmoChartOptionsChanged", luzmoChartChanged: "luzmoChartChanged", luzmoFeedbackChanged: "luzmoFeedbackChanged", luzmoChartAdded: "luzmoChartAdded", luzmoChartAddFailed: "luzmoChartAddFailed" }, exportAs: ["luzmoInteractiveVizItem"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoInteractiveVizItem_Template(rf, ctx) { if (rf & 1) {
|
|
184
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoInteractiveVizItem, selectors: [["luzmo-interactive-viz-item"]], inputs: { language: "language", addToDashboard: [2, "addToDashboard", "addToDashboard", booleanAttribute], canFilter: "canFilter", chart: "chart", feedback: "feedback", messageId: "messageId", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", contentLanguage: "contentLanguage", hideActions: [2, "hideActions", "hideActions", booleanAttribute], hideFeedback: [2, "hideFeedback", "hideFeedback", booleanAttribute], hideConfigPanel: [2, "hideConfigPanel", "hideConfigPanel", booleanAttribute], controlled: [2, "controlled", "controlled", booleanAttribute], liveInteractions: [2, "liveInteractions", "liveInteractions", booleanAttribute], size: "size" }, outputs: { luzmoChartOptionsChanged: "luzmoChartOptionsChanged", luzmoChartChanged: "luzmoChartChanged", luzmoOptionInteractionStart: "luzmoOptionInteractionStart", luzmoOptionInteractionEnd: "luzmoOptionInteractionEnd", luzmoOptionInteractionCancel: "luzmoOptionInteractionCancel", luzmoFeedbackChanged: "luzmoFeedbackChanged", luzmoChartAdded: "luzmoChartAdded", luzmoChartAddFailed: "luzmoChartAddFailed" }, exportAs: ["luzmoInteractiveVizItem"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoInteractiveVizItem_Template(rf, ctx) { if (rf & 1) {
|
|
162
185
|
i0.ɵɵprojectionDef();
|
|
163
186
|
i0.ɵɵprojection(0);
|
|
164
187
|
} }, encapsulation: 2 });
|
|
@@ -217,8 +240,11 @@ export class LuzmoInteractiveVizItem {
|
|
|
217
240
|
}], controlled: [{
|
|
218
241
|
type: Input,
|
|
219
242
|
args: [{ alias: 'controlled', transform: booleanAttribute }]
|
|
243
|
+
}], liveInteractions: [{
|
|
244
|
+
type: Input,
|
|
245
|
+
args: [{ alias: 'liveInteractions', transform: booleanAttribute }]
|
|
220
246
|
}], size: [{
|
|
221
247
|
type: Input,
|
|
222
248
|
args: [{ alias: 'size' }]
|
|
223
|
-
}], luzmoChartOptionsChanged: [{ type: i0.Output, args: ["luzmoChartOptionsChanged"] }], luzmoChartChanged: [{ type: i0.Output, args: ["luzmoChartChanged"] }], luzmoFeedbackChanged: [{ type: i0.Output, args: ["luzmoFeedbackChanged"] }], luzmoChartAdded: [{ type: i0.Output, args: ["luzmoChartAdded"] }], luzmoChartAddFailed: [{ type: i0.Output, args: ["luzmoChartAddFailed"] }] }); })();
|
|
249
|
+
}], luzmoChartOptionsChanged: [{ type: i0.Output, args: ["luzmoChartOptionsChanged"] }], luzmoChartChanged: [{ type: i0.Output, args: ["luzmoChartChanged"] }], luzmoOptionInteractionStart: [{ type: i0.Output, args: ["luzmoOptionInteractionStart"] }], luzmoOptionInteractionEnd: [{ type: i0.Output, args: ["luzmoOptionInteractionEnd"] }], luzmoOptionInteractionCancel: [{ type: i0.Output, args: ["luzmoOptionInteractionCancel"] }], luzmoFeedbackChanged: [{ type: i0.Output, args: ["luzmoFeedbackChanged"] }], luzmoChartAdded: [{ type: i0.Output, args: ["luzmoChartAdded"] }], luzmoChartAddFailed: [{ type: i0.Output, args: ["luzmoChartAddFailed"] }] }); })();
|
|
224
250
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoInteractiveVizItem, { className: "LuzmoInteractiveVizItem", filePath: "components/interactive-viz-item.ts", lineNumber: 22 }); })();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import '@luzmo/analytics-components-kit/item-grid';
|
|
3
|
-
import type { LuzmoItemGridItemActionsMenu as LuzmoItemGridItemActionsMenuHostElement, ActionGroup } from '@luzmo/analytics-components-kit/item-grid';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
|
|
3
|
+
import type { LuzmoItemGridItemActionsMenu as LuzmoItemGridItemActionsMenuHostElement, ActionGroup, ItemGridItemActionEventDetail, ItemGridItemActionHoverEventDetail } from '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
|
|
4
4
|
import type { Placement } from '@luzmo/lucero';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export type { Action, ActionGroup,
|
|
6
|
+
export type { Action, ActionGroup, ItemGridItemActionEventDetail, ItemGridItemActionHoverEventDetail } from '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
|
|
7
7
|
export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
|
|
8
8
|
private readonly elementRef;
|
|
9
9
|
private readonly renderer;
|
|
@@ -12,9 +12,9 @@ export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
|
|
|
12
12
|
private readonly listenerCleanup;
|
|
13
13
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
14
14
|
get nativeElement(): LuzmoItemGridItemActionsMenuHostElement;
|
|
15
|
-
/** The preferred placement
|
|
15
|
+
/** The preferred placement, which determines the toolbar orientation. */
|
|
16
16
|
placement?: Placement;
|
|
17
|
-
/** The
|
|
17
|
+
/** The grouped actions displayed in the toolbar. */
|
|
18
18
|
actions?: ActionGroup[];
|
|
19
19
|
/** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
|
|
20
20
|
language?: string;
|
|
@@ -24,8 +24,10 @@ export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
|
|
|
24
24
|
autofocus?: boolean;
|
|
25
25
|
/** The tab index to apply to this control. See general documentation about the tabindex HTML property */
|
|
26
26
|
tabIndex?: number;
|
|
27
|
-
/** Fired when the user
|
|
28
|
-
readonly luzmoItemGridItemAction: import("@angular/core").OutputEmitterRef<CustomEvent<
|
|
27
|
+
/** Fired when the user activates an action. */
|
|
28
|
+
readonly luzmoItemGridItemAction: import("@angular/core").OutputEmitterRef<CustomEvent<ItemGridItemActionEventDetail>>;
|
|
29
|
+
/** Fired when the pointer enters an action, for example to preload what it opens. */
|
|
30
|
+
readonly luzmoItemGridItemActionHover: import("@angular/core").OutputEmitterRef<CustomEvent<ItemGridItemActionHoverEventDetail>>;
|
|
29
31
|
constructor();
|
|
30
32
|
ngOnChanges(changes: SimpleChanges): void;
|
|
31
33
|
/**
|
|
@@ -37,7 +39,7 @@ export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
|
|
|
37
39
|
private setHostProperty;
|
|
38
40
|
private bindEvents;
|
|
39
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemGridItemActionsMenu, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemGridItemActionsMenu, "luzmo-item-grid-item-actions-menu", ["luzmoItemGridItemActionsMenu"], { "placement": { "alias": "placement"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoItemGridItemAction": "luzmoItemGridItemAction"; }, never, ["*"], true, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemGridItemActionsMenu, "luzmo-item-grid-item-actions-menu", ["luzmoItemGridItemActionsMenu"], { "placement": { "alias": "placement"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoItemGridItemAction": "luzmoItemGridItemAction"; "luzmoItemGridItemActionHover": "luzmoItemGridItemActionHover"; }, never, ["*"], true, never>;
|
|
41
43
|
static ngAcceptInputType_disabled: unknown;
|
|
42
44
|
static ngAcceptInputType_autofocus: unknown;
|
|
43
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
-
import '@luzmo/analytics-components-kit/item-grid';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
const _c0 = ["*"];
|
|
5
5
|
/**
|
|
@@ -15,9 +15,9 @@ export class LuzmoItemGridItemActionsMenu {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
-
/** The preferred placement
|
|
18
|
+
/** The preferred placement, which determines the toolbar orientation. */
|
|
19
19
|
placement;
|
|
20
|
-
/** The
|
|
20
|
+
/** The grouped actions displayed in the toolbar. */
|
|
21
21
|
actions;
|
|
22
22
|
/** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
|
|
23
23
|
language;
|
|
@@ -27,8 +27,10 @@ export class LuzmoItemGridItemActionsMenu {
|
|
|
27
27
|
autofocus;
|
|
28
28
|
/** The tab index to apply to this control. See general documentation about the tabindex HTML property */
|
|
29
29
|
tabIndex;
|
|
30
|
-
/** Fired when the user
|
|
30
|
+
/** Fired when the user activates an action. */
|
|
31
31
|
luzmoItemGridItemAction = output({ alias: 'luzmoItemGridItemAction' });
|
|
32
|
+
/** Fired when the pointer enters an action, for example to preload what it opens. */
|
|
33
|
+
luzmoItemGridItemActionHover = output({ alias: 'luzmoItemGridItemActionHover' });
|
|
32
34
|
constructor() {
|
|
33
35
|
this.bindEvents();
|
|
34
36
|
this.destroyRef.onDestroy(() => {
|
|
@@ -77,9 +79,13 @@ export class LuzmoItemGridItemActionsMenu {
|
|
|
77
79
|
const typed = event;
|
|
78
80
|
this.luzmoItemGridItemAction.emit(typed);
|
|
79
81
|
}));
|
|
82
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-item-grid-item-action-hover', (event) => {
|
|
83
|
+
const typed = event;
|
|
84
|
+
this.luzmoItemGridItemActionHover.emit(typed);
|
|
85
|
+
}));
|
|
80
86
|
}
|
|
81
87
|
static ɵfac = function LuzmoItemGridItemActionsMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemGridItemActionsMenu)(); };
|
|
82
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGridItemActionsMenu, selectors: [["luzmo-item-grid-item-actions-menu"]], inputs: { placement: "placement", actions: "actions", language: "language", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction" }, exportAs: ["luzmoItemGridItemActionsMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGridItemActionsMenu_Template(rf, ctx) { if (rf & 1) {
|
|
88
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGridItemActionsMenu, selectors: [["luzmo-item-grid-item-actions-menu"]], inputs: { placement: "placement", actions: "actions", language: "language", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction", luzmoItemGridItemActionHover: "luzmoItemGridItemActionHover" }, exportAs: ["luzmoItemGridItemActionsMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGridItemActionsMenu_Template(rf, ctx) { if (rf & 1) {
|
|
83
89
|
i0.ɵɵprojectionDef();
|
|
84
90
|
i0.ɵɵprojection(0);
|
|
85
91
|
} }, encapsulation: 2 });
|
|
@@ -111,5 +117,5 @@ export class LuzmoItemGridItemActionsMenu {
|
|
|
111
117
|
}], tabIndex: [{
|
|
112
118
|
type: Input,
|
|
113
119
|
args: [{ alias: 'tabIndex' }]
|
|
114
|
-
}], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }] }); })();
|
|
120
|
+
}], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }], luzmoItemGridItemActionHover: [{ type: i0.Output, args: ["luzmoItemGridItemActionHover"] }] }); })();
|
|
115
121
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemGridItemActionsMenu, { className: "LuzmoItemGridItemActionsMenu", filePath: "components/item-grid-item-actions-menu.ts", lineNumber: 17 }); })();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import '@luzmo/analytics-components-kit/item-grid';
|
|
3
|
-
import type { LuzmoItemGrid as LuzmoItemGridHostElement, ClonedItemPositioning, GridItemActionEventDetail, GridItemData, GridItemRenderer, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
|
|
3
|
+
import type { LuzmoItemGrid as LuzmoItemGridHostElement, ClonedItemPositioning, GridItemActionEventDetail, GridItemData, GridItemRenderer, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemGridItemActionHoverEventDetail, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
|
|
4
4
|
import type { ThemeConfig } from '@luzmo/dashboard-contents-types';
|
|
5
5
|
import type { Placement } from '@luzmo/lucero';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export type { Action, ActionGroup, AddGridItemInput, ClonedItemPositioning, DefaultActionType, GridItemActionEventDetail, GridItemData, GridItemPatch, GridItemPosition, GridItemPositionPatch, GridItemRenderer, GridItemSizePatch, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
|
|
7
|
+
export type { Action, ActionGroup, AddGridItemInput, ClonedItemPositioning, DefaultActionType, GridItemActionEventDetail, GridItemData, GridItemPatch, GridItemPosition, GridItemPositionPatch, GridItemRenderer, GridItemSizePatch, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemGridItemActionEventDetail, ItemGridItemActionHoverEventDetail, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
|
|
8
8
|
export declare class LuzmoItemGrid implements OnChanges {
|
|
9
9
|
private readonly elementRef;
|
|
10
10
|
private readonly renderer;
|
|
@@ -55,6 +55,8 @@ export declare class LuzmoItemGrid implements OnChanges {
|
|
|
55
55
|
initialItemStates?: ItemStates;
|
|
56
56
|
/** Fired when an item action is performed */
|
|
57
57
|
readonly luzmoItemGridItemAction: import("@angular/core").OutputEmitterRef<CustomEvent<GridItemActionEventDetail>>;
|
|
58
|
+
/** Bubbles from the item actions menu when the pointer enters an action. The detail has only `action` and `type`, not the item. */
|
|
59
|
+
readonly luzmoItemGridItemActionHover: import("@angular/core").OutputEmitterRef<CustomEvent<ItemGridItemActionHoverEventDetail>>;
|
|
58
60
|
/** Fired when the grid layout is changed */
|
|
59
61
|
readonly luzmoItemGridLayoutChanged: import("@angular/core").OutputEmitterRef<CustomEvent<GridLifecycleEventDetail>>;
|
|
60
62
|
/** Fired when the grid is ready */
|
|
@@ -72,7 +74,7 @@ export declare class LuzmoItemGrid implements OnChanges {
|
|
|
72
74
|
private setHostProperty;
|
|
73
75
|
private bindEvents;
|
|
74
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemGrid, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemGrid, "luzmo-item-grid", ["luzmoItemGrid"], { "appServer": { "alias": "appServer"; "required": false; }; "apiHost": { "alias": "apiHost"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "itemActionsDocumentPopover": { "alias": "itemActionsDocumentPopover"; "required": false; }; "placementItemActionsMenu": { "alias": "placementItemActionsMenu"; "required": false; }; "defaultItemActionsMenu": { "alias": "defaultItemActionsMenu"; "required": false; }; "clonedItemPositioning": { "alias": "clonedItemPositioning"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "items": { "alias": "items"; "required": false; }; "initialItems": { "alias": "initialItems"; "required": false; }; "renderers": { "alias": "renderers"; "required": false; }; "itemStates": { "alias": "itemStates"; "required": false; }; "initialItemStates": { "alias": "initialItemStates"; "required": false; }; }, { "luzmoItemGridItemAction": "luzmoItemGridItemAction"; "luzmoItemGridLayoutChanged": "luzmoItemGridLayoutChanged"; "luzmoItemGridReady": "luzmoItemGridReady"; "luzmoItemGridItemStatesChanged": "luzmoItemGridItemStatesChanged"; }, never, ["*"], true, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemGrid, "luzmo-item-grid", ["luzmoItemGrid"], { "appServer": { "alias": "appServer"; "required": false; }; "apiHost": { "alias": "apiHost"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "itemActionsDocumentPopover": { "alias": "itemActionsDocumentPopover"; "required": false; }; "placementItemActionsMenu": { "alias": "placementItemActionsMenu"; "required": false; }; "defaultItemActionsMenu": { "alias": "defaultItemActionsMenu"; "required": false; }; "clonedItemPositioning": { "alias": "clonedItemPositioning"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "items": { "alias": "items"; "required": false; }; "initialItems": { "alias": "initialItems"; "required": false; }; "renderers": { "alias": "renderers"; "required": false; }; "itemStates": { "alias": "itemStates"; "required": false; }; "initialItemStates": { "alias": "initialItemStates"; "required": false; }; }, { "luzmoItemGridItemAction": "luzmoItemGridItemAction"; "luzmoItemGridItemActionHover": "luzmoItemGridItemActionHover"; "luzmoItemGridLayoutChanged": "luzmoItemGridLayoutChanged"; "luzmoItemGridReady": "luzmoItemGridReady"; "luzmoItemGridItemStatesChanged": "luzmoItemGridItemStatesChanged"; }, never, ["*"], true, never>;
|
|
76
78
|
static ngAcceptInputType_viewMode: unknown;
|
|
77
79
|
static ngAcceptInputType_itemActionsDocumentPopover: unknown;
|
|
78
80
|
}
|
|
@@ -57,6 +57,8 @@ export class LuzmoItemGrid {
|
|
|
57
57
|
initialItemStates;
|
|
58
58
|
/** Fired when an item action is performed */
|
|
59
59
|
luzmoItemGridItemAction = output({ alias: 'luzmoItemGridItemAction' });
|
|
60
|
+
/** Bubbles from the item actions menu when the pointer enters an action. The detail has only `action` and `type`, not the item. */
|
|
61
|
+
luzmoItemGridItemActionHover = output({ alias: 'luzmoItemGridItemActionHover' });
|
|
60
62
|
/** Fired when the grid layout is changed */
|
|
61
63
|
luzmoItemGridLayoutChanged = output({ alias: 'luzmoItemGridLayoutChanged' });
|
|
62
64
|
/** Fired when the grid is ready */
|
|
@@ -153,6 +155,10 @@ export class LuzmoItemGrid {
|
|
|
153
155
|
const typed = event;
|
|
154
156
|
this.luzmoItemGridItemAction.emit(typed);
|
|
155
157
|
}));
|
|
158
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-item-grid-item-action-hover', (event) => {
|
|
159
|
+
const typed = event;
|
|
160
|
+
this.luzmoItemGridItemActionHover.emit(typed);
|
|
161
|
+
}));
|
|
156
162
|
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-item-grid-layout-changed', (event) => {
|
|
157
163
|
const typed = event;
|
|
158
164
|
this.luzmoItemGridLayoutChanged.emit(typed);
|
|
@@ -167,7 +173,7 @@ export class LuzmoItemGrid {
|
|
|
167
173
|
}));
|
|
168
174
|
}
|
|
169
175
|
static ɵfac = function LuzmoItemGrid_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemGrid)(); };
|
|
170
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGrid, selectors: [["luzmo-item-grid"]], inputs: { appServer: "appServer", apiHost: "apiHost", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", language: "language", contentLanguage: "contentLanguage", columns: "columns", rowHeight: "rowHeight", viewMode: [2, "viewMode", "viewMode", booleanAttribute], itemActionsDocumentPopover: [2, "itemActionsDocumentPopover", "itemActionsDocumentPopover", booleanAttribute], placementItemActionsMenu: "placementItemActionsMenu", defaultItemActionsMenu: "defaultItemActionsMenu", clonedItemPositioning: "clonedItemPositioning", theme: "theme", items: "items", initialItems: "initialItems", renderers: "renderers", itemStates: "itemStates", initialItemStates: "initialItemStates" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction", luzmoItemGridLayoutChanged: "luzmoItemGridLayoutChanged", luzmoItemGridReady: "luzmoItemGridReady", luzmoItemGridItemStatesChanged: "luzmoItemGridItemStatesChanged" }, exportAs: ["luzmoItemGrid"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGrid_Template(rf, ctx) { if (rf & 1) {
|
|
176
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGrid, selectors: [["luzmo-item-grid"]], inputs: { appServer: "appServer", apiHost: "apiHost", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", language: "language", contentLanguage: "contentLanguage", columns: "columns", rowHeight: "rowHeight", viewMode: [2, "viewMode", "viewMode", booleanAttribute], itemActionsDocumentPopover: [2, "itemActionsDocumentPopover", "itemActionsDocumentPopover", booleanAttribute], placementItemActionsMenu: "placementItemActionsMenu", defaultItemActionsMenu: "defaultItemActionsMenu", clonedItemPositioning: "clonedItemPositioning", theme: "theme", items: "items", initialItems: "initialItems", renderers: "renderers", itemStates: "itemStates", initialItemStates: "initialItemStates" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction", luzmoItemGridItemActionHover: "luzmoItemGridItemActionHover", luzmoItemGridLayoutChanged: "luzmoItemGridLayoutChanged", luzmoItemGridReady: "luzmoItemGridReady", luzmoItemGridItemStatesChanged: "luzmoItemGridItemStatesChanged" }, exportAs: ["luzmoItemGrid"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGrid_Template(rf, ctx) { if (rf & 1) {
|
|
171
177
|
i0.ɵɵprojectionDef();
|
|
172
178
|
i0.ɵɵprojection(0);
|
|
173
179
|
} }, encapsulation: 2 });
|
|
@@ -241,5 +247,5 @@ export class LuzmoItemGrid {
|
|
|
241
247
|
}], initialItemStates: [{
|
|
242
248
|
type: Input,
|
|
243
249
|
args: [{ alias: 'initialItemStates' }]
|
|
244
|
-
}], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }], luzmoItemGridLayoutChanged: [{ type: i0.Output, args: ["luzmoItemGridLayoutChanged"] }], luzmoItemGridReady: [{ type: i0.Output, args: ["luzmoItemGridReady"] }], luzmoItemGridItemStatesChanged: [{ type: i0.Output, args: ["luzmoItemGridItemStatesChanged"] }] }); })();
|
|
250
|
+
}], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }], luzmoItemGridItemActionHover: [{ type: i0.Output, args: ["luzmoItemGridItemActionHover"] }], luzmoItemGridLayoutChanged: [{ type: i0.Output, args: ["luzmoItemGridLayoutChanged"] }], luzmoItemGridReady: [{ type: i0.Output, args: ["luzmoItemGridReady"] }], luzmoItemGridItemStatesChanged: [{ type: i0.Output, args: ["luzmoItemGridItemStatesChanged"] }] }); })();
|
|
245
251
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemGrid, { className: "LuzmoItemGrid", filePath: "components/item-grid.ts", lineNumber: 18 }); })();
|