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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/ai-chat';
3
3
  import type { LuzmoAiChatEmptyState as LuzmoAiChatEmptyStateHostElement, AiChatEmptyStateSuggestion, AiChatEmptyStateSuggestionSelectedDetail } from '@luzmo/analytics-components-kit/ai-chat';
4
4
  import * as i0 from "@angular/core";
5
- export type { AgentStreamDefinition, AiChatAgentConfig, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatEmptyStateSuggestionSelectedDetail, AiChatMessageSentEventDetail, AiChatRecognizedStepType, AiChatSessionBuildContext, AiChatSessionCallbacks, AiChatSessionConfig, AiChatSessionControllerOptions, AiChatSessionRestoreParams, AiChatSessionRestoreResult, AiChatSessionSeed, AiChatSessionState, AiChatSessionSubmitParams, AiChatStepBase, AiChatStepEvent, AiDictationCreateBody, AiDictationProperties, AiPromptCreateBody, AiPromptDeleteBody, AssistantMessageAction, AssistantMessageActionConfirmVariant, AssistantMessageActionEventDetail, BuildAiDictationRequestOptions, ChatMessageElicitation, LuzmoPromptSubmittedEventDetail, LuzmoRestoreRequestedEventDetail, ProgressTreeNode, PromptBoxAttachment, PromptBoxFileIcons, RecognizedStepEvent, StreamAiDictationOptions, StreamHandlerCallbacks, StreamHandlerContext, StreamHandlerState, StreamingRequestOptions, StreamingResponse, UnknownStepEvent, UploadAiPromptImagesOptions } from '@luzmo/analytics-components-kit/ai-chat';
5
+ export type { AgentStreamDefinition, AiChatAgentConfig, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatEmptyStateSuggestionSelectedDetail, AiChatMessageSentEventDetail, AiChatRecognizedStepType, AiChatSessionBuildContext, AiChatSessionCallbacks, AiChatSessionConfig, AiChatSessionControllerOptions, AiChatSessionRestoreParams, AiChatSessionRestoreResult, AiChatSessionSeed, AiChatSessionState, AiChatSessionSubmitParams, AiChatStepBase, AiChatStepEvent, AiDictationCreateBody, AiDictationProperties, AiPromptCreateBody, AiPromptDeleteBody, AssistantMessageAction, AssistantMessageActionConfirmVariant, AssistantMessageActionEventDetail, AssistantMessageFeedbackEventDetail, AssistantMessageFeedbackRating, BuildAiDictationRequestOptions, ChatMessageElicitation, LuzmoPromptSubmittedEventDetail, LuzmoRestoreRequestedEventDetail, ProgressTreeNode, PromptBoxAttachment, PromptBoxFileIcons, RecognizedStepEvent, StreamAiDictationOptions, StreamHandlerCallbacks, StreamHandlerContext, StreamHandlerState, StreamingRequestOptions, StreamingResponse, UnknownStepEvent, UploadAiPromptImagesOptions } from '@luzmo/analytics-components-kit/ai-chat';
6
6
  export declare class LuzmoAiChatEmptyState implements OnChanges {
7
7
  private readonly elementRef;
8
8
  private readonly renderer;
@@ -1,10 +1,10 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/ai-chat';
3
- import type { LuzmoAiChat as LuzmoAiChatHostElement, AiChatAgentConfig, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatMessageSentEventDetail, AiChatSession, AiChatStepEvent, AssistantMessageActionEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
3
+ import type { LuzmoAiChat as LuzmoAiChatHostElement, AiChatAgentConfig, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatMessageSentEventDetail, AiChatSession, AiChatStepEvent, AssistantMessageActionEventDetail, AssistantMessageFeedbackEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
4
4
  import type { AiPromptAgent, AiPromptCustomItemInput, AiPromptItemTask, AiPromptScreenMode, DashboardStatePayload } from '@luzmo/analytics-components-kit/ai-chat';
5
5
  import type { ChatMessage, Dataset, LuzmoChart } from '@luzmo/analytics-components-kit/types';
6
6
  import * as i0 from "@angular/core";
7
- export type { AgentStreamDefinition, AiChatAgentConfig, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatEmptyStateSuggestionSelectedDetail, AiChatMessageSentEventDetail, AiChatRecognizedStepType, AiChatSessionBuildContext, AiChatSessionCallbacks, AiChatSessionConfig, AiChatSessionControllerOptions, AiChatSessionRestoreParams, AiChatSessionRestoreResult, AiChatSessionSeed, AiChatSessionState, AiChatSessionSubmitParams, AiChatStepBase, AiChatStepEvent, AiDictationCreateBody, AiDictationProperties, AiPromptCreateBody, AiPromptDeleteBody, AssistantMessageAction, AssistantMessageActionConfirmVariant, AssistantMessageActionEventDetail, BuildAiDictationRequestOptions, ChatMessageElicitation, LuzmoPromptSubmittedEventDetail, LuzmoRestoreRequestedEventDetail, ProgressTreeNode, PromptBoxAttachment, PromptBoxFileIcons, RecognizedStepEvent, StreamAiDictationOptions, StreamHandlerCallbacks, StreamHandlerContext, StreamHandlerState, StreamingRequestOptions, StreamingResponse, UnknownStepEvent, UploadAiPromptImagesOptions } from '@luzmo/analytics-components-kit/ai-chat';
7
+ export type { AgentStreamDefinition, AiChatAgentConfig, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatEmptyStateSuggestionSelectedDetail, AiChatMessageSentEventDetail, AiChatRecognizedStepType, AiChatSessionBuildContext, AiChatSessionCallbacks, AiChatSessionConfig, AiChatSessionControllerOptions, AiChatSessionRestoreParams, AiChatSessionRestoreResult, AiChatSessionSeed, AiChatSessionState, AiChatSessionSubmitParams, AiChatStepBase, AiChatStepEvent, AiDictationCreateBody, AiDictationProperties, AiPromptCreateBody, AiPromptDeleteBody, AssistantMessageAction, AssistantMessageActionConfirmVariant, AssistantMessageActionEventDetail, AssistantMessageFeedbackEventDetail, AssistantMessageFeedbackRating, BuildAiDictationRequestOptions, ChatMessageElicitation, LuzmoPromptSubmittedEventDetail, LuzmoRestoreRequestedEventDetail, ProgressTreeNode, PromptBoxAttachment, PromptBoxFileIcons, RecognizedStepEvent, StreamAiDictationOptions, StreamHandlerCallbacks, StreamHandlerContext, StreamHandlerState, StreamingRequestOptions, StreamingResponse, UnknownStepEvent, UploadAiPromptImagesOptions } from '@luzmo/analytics-components-kit/ai-chat';
8
8
  export declare class LuzmoAiChat implements OnChanges {
9
9
  private readonly elementRef;
10
10
  private readonly renderer;
@@ -25,6 +25,8 @@ export declare class LuzmoAiChat implements OnChanges {
25
25
  stoppable?: boolean;
26
26
  /** When true, shows context menu (3 dots) on assistant messages */
27
27
  showAssistantContextMenu?: boolean;
28
+ /** When true, shows thumbs up/down feedback buttons below each completed assistant message. A message with `hideFeedback: true` hides its buttons; the selected rating is kept in `ChatMessage.feedback`. */
29
+ showAssistantMessageFeedback?: boolean;
28
30
  /** Auth key for DataBroker authentication */
29
31
  authKey?: string;
30
32
  /** Auth token for DataBroker authentication */
@@ -101,7 +103,7 @@ export declare class LuzmoAiChat implements OnChanges {
101
103
  emptyStateSubtitle?: string;
102
104
  /** Optional suggestion chips for the empty state. When empty, only the title is shown. Each entry may include `selectedDatasets` to pre-select datasets when the chip is activated. */
103
105
  emptyStateSuggestions?: AiChatEmptyStateSuggestion[];
104
- /** Size of the chat: `s`, `m` (default), `l` or `xl`. Scales messages, progress steps, questions, the empty state and the prompt input together. Custom actions beyond built-in `ChatMessage.actions` buttons can be projected via the `assistant-message-actions` light-DOM slot on the latest assistant message. */
106
+ /** Size of the chat: `s`, `m` (default), `l` or `xl`. Scales messages, progress steps, questions, the empty state and the prompt input together. */
105
107
  size?: unknown;
106
108
  /** Fired when a user sends a message */
107
109
  readonly luzmoMessageSent: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatMessageSentEventDetail>>;
@@ -117,6 +119,8 @@ export declare class LuzmoAiChat implements OnChanges {
117
119
  readonly luzmoConversationIdChanged: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatConversationIdChangedEventDetail>>;
118
120
  /** Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set) */
119
121
  readonly luzmoAssistantMessageAction: import("@angular/core").OutputEmitterRef<CustomEvent<AssistantMessageActionEventDetail>>;
122
+ /** Fired once when the user selects, switches or clears a thumbs rating, after the session holds the new rating. Not fired for programmatic updates. */
123
+ readonly luzmoAssistantMessageFeedback: import("@angular/core").OutputEmitterRef<CustomEvent<AssistantMessageFeedbackEventDetail>>;
120
124
  constructor();
121
125
  ngOnChanges(changes: SimpleChanges): void;
122
126
  /**
@@ -128,10 +132,11 @@ export declare class LuzmoAiChat implements OnChanges {
128
132
  private setHostProperty;
129
133
  private bindEvents;
130
134
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiChat, never>;
131
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiChat, "luzmo-ai-chat", ["luzmoAiChat"], { "messages": { "alias": "messages"; "required": false; }; "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "stoppable": { "alias": "stoppable"; "required": false; }; "showAssistantContextMenu": { "alias": "showAssistantContextMenu"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "hideDatasetButton": { "alias": "hideDatasetButton"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideSelectedDatasets": { "alias": "hideSelectedDatasets"; "required": false; }; "hideAgents": { "alias": "hideAgents"; "required": false; }; "disableColumnMentions": { "alias": "disableColumnMentions"; "required": false; }; "requireDataset": { "alias": "requireDataset"; "required": false; }; "allowImages": { "alias": "allowImages"; "required": false; }; "allowVoiceInput": { "alias": "allowVoiceInput"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "uploadAttachments": { "alias": "uploadAttachments"; "required": false; }; "agent": { "alias": "agent"; "required": false; }; "agentConfig": { "alias": "agentConfig"; "required": false; }; "agentId": { "alias": "agentId"; "required": false; }; "task": { "alias": "task"; "required": false; }; "modelPreference": { "alias": "modelPreference"; "required": false; }; "chatSession": { "alias": "chatSession"; "required": false; }; "conversationId": { "alias": "conversationId"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; "dashboard": { "alias": "dashboard"; "required": false; }; "customItem": { "alias": "customItem"; "required": false; }; "currentScreenMode": { "alias": "currentScreenMode"; "required": false; }; "localeId": { "alias": "localeId"; "required": false; }; "timezoneId": { "alias": "timezoneId"; "required": false; }; "apiVersion": { "alias": "apiVersion"; "required": false; }; "stream": { "alias": "stream"; "required": false; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; }; "cancelledMessage": { "alias": "cancelledMessage"; "required": false; }; "initialPrompt": { "alias": "initialPrompt"; "required": false; }; "emptyStateTitle": { "alias": "emptyStateTitle"; "required": false; }; "emptyStateSubtitle": { "alias": "emptyStateSubtitle"; "required": false; }; "emptyStateSuggestions": { "alias": "emptyStateSuggestions"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoMessageSent": "luzmoMessageSent"; "luzmoDatasetsChanged": "luzmoDatasetsChanged"; "luzmoStep": "luzmoStep"; "luzmoComplete": "luzmoComplete"; "luzmoStop": "luzmoStop"; "luzmoConversationIdChanged": "luzmoConversationIdChanged"; "luzmoAssistantMessageAction": "luzmoAssistantMessageAction"; }, never, ["*"], true, never>;
135
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiChat, "luzmo-ai-chat", ["luzmoAiChat"], { "messages": { "alias": "messages"; "required": false; }; "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "stoppable": { "alias": "stoppable"; "required": false; }; "showAssistantContextMenu": { "alias": "showAssistantContextMenu"; "required": false; }; "showAssistantMessageFeedback": { "alias": "showAssistantMessageFeedback"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "hideDatasetButton": { "alias": "hideDatasetButton"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideSelectedDatasets": { "alias": "hideSelectedDatasets"; "required": false; }; "hideAgents": { "alias": "hideAgents"; "required": false; }; "disableColumnMentions": { "alias": "disableColumnMentions"; "required": false; }; "requireDataset": { "alias": "requireDataset"; "required": false; }; "allowImages": { "alias": "allowImages"; "required": false; }; "allowVoiceInput": { "alias": "allowVoiceInput"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "uploadAttachments": { "alias": "uploadAttachments"; "required": false; }; "agent": { "alias": "agent"; "required": false; }; "agentConfig": { "alias": "agentConfig"; "required": false; }; "agentId": { "alias": "agentId"; "required": false; }; "task": { "alias": "task"; "required": false; }; "modelPreference": { "alias": "modelPreference"; "required": false; }; "chatSession": { "alias": "chatSession"; "required": false; }; "conversationId": { "alias": "conversationId"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; "dashboard": { "alias": "dashboard"; "required": false; }; "customItem": { "alias": "customItem"; "required": false; }; "currentScreenMode": { "alias": "currentScreenMode"; "required": false; }; "localeId": { "alias": "localeId"; "required": false; }; "timezoneId": { "alias": "timezoneId"; "required": false; }; "apiVersion": { "alias": "apiVersion"; "required": false; }; "stream": { "alias": "stream"; "required": false; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; }; "cancelledMessage": { "alias": "cancelledMessage"; "required": false; }; "initialPrompt": { "alias": "initialPrompt"; "required": false; }; "emptyStateTitle": { "alias": "emptyStateTitle"; "required": false; }; "emptyStateSubtitle": { "alias": "emptyStateSubtitle"; "required": false; }; "emptyStateSuggestions": { "alias": "emptyStateSuggestions"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoMessageSent": "luzmoMessageSent"; "luzmoDatasetsChanged": "luzmoDatasetsChanged"; "luzmoStep": "luzmoStep"; "luzmoComplete": "luzmoComplete"; "luzmoStop": "luzmoStop"; "luzmoConversationIdChanged": "luzmoConversationIdChanged"; "luzmoAssistantMessageAction": "luzmoAssistantMessageAction"; "luzmoAssistantMessageFeedback": "luzmoAssistantMessageFeedback"; }, never, ["*"], true, never>;
132
136
  static ngAcceptInputType_disabled: unknown;
133
137
  static ngAcceptInputType_stoppable: unknown;
134
138
  static ngAcceptInputType_showAssistantContextMenu: unknown;
139
+ static ngAcceptInputType_showAssistantMessageFeedback: unknown;
135
140
  static ngAcceptInputType_includePublicDatasets: unknown;
136
141
  static ngAcceptInputType_flagOpendata: unknown;
137
142
  static ngAcceptInputType_hideDatasetButton: unknown;
@@ -27,6 +27,8 @@ export class LuzmoAiChat {
27
27
  stoppable;
28
28
  /** When true, shows context menu (3 dots) on assistant messages */
29
29
  showAssistantContextMenu;
30
+ /** When true, shows thumbs up/down feedback buttons below each completed assistant message. A message with `hideFeedback: true` hides its buttons; the selected rating is kept in `ChatMessage.feedback`. */
31
+ showAssistantMessageFeedback;
30
32
  /** Auth key for DataBroker authentication */
31
33
  authKey;
32
34
  /** Auth token for DataBroker authentication */
@@ -103,7 +105,7 @@ export class LuzmoAiChat {
103
105
  emptyStateSubtitle;
104
106
  /** Optional suggestion chips for the empty state. When empty, only the title is shown. Each entry may include `selectedDatasets` to pre-select datasets when the chip is activated. */
105
107
  emptyStateSuggestions;
106
- /** Size of the chat: `s`, `m` (default), `l` or `xl`. Scales messages, progress steps, questions, the empty state and the prompt input together. Custom actions beyond built-in `ChatMessage.actions` buttons can be projected via the `assistant-message-actions` light-DOM slot on the latest assistant message. */
108
+ /** Size of the chat: `s`, `m` (default), `l` or `xl`. Scales messages, progress steps, questions, the empty state and the prompt input together. */
107
109
  size;
108
110
  /** Fired when a user sends a message */
109
111
  luzmoMessageSent = output({ alias: 'luzmoMessageSent' });
@@ -119,6 +121,8 @@ export class LuzmoAiChat {
119
121
  luzmoConversationIdChanged = output({ alias: 'luzmoConversationIdChanged' });
120
122
  /** Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set) */
121
123
  luzmoAssistantMessageAction = output({ alias: 'luzmoAssistantMessageAction' });
124
+ /** Fired once when the user selects, switches or clears a thumbs rating, after the session holds the new rating. Not fired for programmatic updates. */
125
+ luzmoAssistantMessageFeedback = output({ alias: 'luzmoAssistantMessageFeedback' });
122
126
  constructor() {
123
127
  this.bindEvents();
124
128
  this.destroyRef.onDestroy(() => {
@@ -148,6 +152,9 @@ export class LuzmoAiChat {
148
152
  case 'showAssistantContextMenu':
149
153
  this.setHostProperty('showAssistantContextMenu', changes['showAssistantContextMenu'].currentValue);
150
154
  break;
155
+ case 'showAssistantMessageFeedback':
156
+ this.setHostProperty('showAssistantMessageFeedback', changes['showAssistantMessageFeedback'].currentValue);
157
+ break;
151
158
  case 'authKey':
152
159
  this.setHostProperty('authKey', changes['authKey'].currentValue);
153
160
  break;
@@ -308,9 +315,13 @@ export class LuzmoAiChat {
308
315
  const typed = event;
309
316
  this.luzmoAssistantMessageAction.emit(typed);
310
317
  }));
318
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-assistant-message-feedback', (event) => {
319
+ const typed = event;
320
+ this.luzmoAssistantMessageFeedback.emit(typed);
321
+ }));
311
322
  }
312
323
  static ɵfac = function LuzmoAiChat_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiChat)(); };
313
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiChat, selectors: [["luzmo-ai-chat"]], inputs: { messages: "messages", selectedDatasets: "selectedDatasets", placeholder: "placeholder", disabled: [2, "disabled", "disabled", booleanAttribute], stoppable: [2, "stoppable", "stoppable", booleanAttribute], showAssistantContextMenu: [2, "showAssistantContextMenu", "showAssistantContextMenu", booleanAttribute], authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], hideDatasetButton: [2, "hideDatasetButton", "hideDatasetButton", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideSelectedDatasets: [2, "hideSelectedDatasets", "hideSelectedDatasets", booleanAttribute], hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], disableColumnMentions: [2, "disableColumnMentions", "disableColumnMentions", booleanAttribute], requireDataset: [2, "requireDataset", "requireDataset", booleanAttribute], allowImages: [2, "allowImages", "allowImages", booleanAttribute], allowVoiceInput: [2, "allowVoiceInput", "allowVoiceInput", booleanAttribute], acceptedFileTypes: "acceptedFileTypes", uploadAttachments: "uploadAttachments", agent: "agent", agentConfig: "agentConfig", agentId: "agentId", task: "task", modelPreference: "modelPreference", chatSession: "chatSession", conversationId: "conversationId", chart: "chart", dashboard: "dashboard", customItem: "customItem", currentScreenMode: "currentScreenMode", localeId: "localeId", timezoneId: "timezoneId", apiVersion: "apiVersion", stream: [2, "stream", "stream", booleanAttribute], loadingMessage: "loadingMessage", cancelledMessage: "cancelledMessage", initialPrompt: "initialPrompt", emptyStateTitle: "emptyStateTitle", emptyStateSubtitle: "emptyStateSubtitle", emptyStateSuggestions: "emptyStateSuggestions", size: "size" }, outputs: { luzmoMessageSent: "luzmoMessageSent", luzmoDatasetsChanged: "luzmoDatasetsChanged", luzmoStep: "luzmoStep", luzmoComplete: "luzmoComplete", luzmoStop: "luzmoStop", luzmoConversationIdChanged: "luzmoConversationIdChanged", luzmoAssistantMessageAction: "luzmoAssistantMessageAction" }, exportAs: ["luzmoAiChat"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiChat_Template(rf, ctx) { if (rf & 1) {
324
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiChat, selectors: [["luzmo-ai-chat"]], inputs: { messages: "messages", selectedDatasets: "selectedDatasets", placeholder: "placeholder", disabled: [2, "disabled", "disabled", booleanAttribute], stoppable: [2, "stoppable", "stoppable", booleanAttribute], showAssistantContextMenu: [2, "showAssistantContextMenu", "showAssistantContextMenu", booleanAttribute], showAssistantMessageFeedback: [2, "showAssistantMessageFeedback", "showAssistantMessageFeedback", booleanAttribute], authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], hideDatasetButton: [2, "hideDatasetButton", "hideDatasetButton", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideSelectedDatasets: [2, "hideSelectedDatasets", "hideSelectedDatasets", booleanAttribute], hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], disableColumnMentions: [2, "disableColumnMentions", "disableColumnMentions", booleanAttribute], requireDataset: [2, "requireDataset", "requireDataset", booleanAttribute], allowImages: [2, "allowImages", "allowImages", booleanAttribute], allowVoiceInput: [2, "allowVoiceInput", "allowVoiceInput", booleanAttribute], acceptedFileTypes: "acceptedFileTypes", uploadAttachments: "uploadAttachments", agent: "agent", agentConfig: "agentConfig", agentId: "agentId", task: "task", modelPreference: "modelPreference", chatSession: "chatSession", conversationId: "conversationId", chart: "chart", dashboard: "dashboard", customItem: "customItem", currentScreenMode: "currentScreenMode", localeId: "localeId", timezoneId: "timezoneId", apiVersion: "apiVersion", stream: [2, "stream", "stream", booleanAttribute], loadingMessage: "loadingMessage", cancelledMessage: "cancelledMessage", initialPrompt: "initialPrompt", emptyStateTitle: "emptyStateTitle", emptyStateSubtitle: "emptyStateSubtitle", emptyStateSuggestions: "emptyStateSuggestions", size: "size" }, outputs: { luzmoMessageSent: "luzmoMessageSent", luzmoDatasetsChanged: "luzmoDatasetsChanged", luzmoStep: "luzmoStep", luzmoComplete: "luzmoComplete", luzmoStop: "luzmoStop", luzmoConversationIdChanged: "luzmoConversationIdChanged", luzmoAssistantMessageAction: "luzmoAssistantMessageAction", luzmoAssistantMessageFeedback: "luzmoAssistantMessageFeedback" }, exportAs: ["luzmoAiChat"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiChat_Template(rf, ctx) { if (rf & 1) {
314
325
  i0.ɵɵprojectionDef();
315
326
  i0.ɵɵprojection(0);
316
327
  } }, encapsulation: 2 });
@@ -342,6 +353,9 @@ export class LuzmoAiChat {
342
353
  }], showAssistantContextMenu: [{
343
354
  type: Input,
344
355
  args: [{ alias: 'showAssistantContextMenu', transform: booleanAttribute }]
356
+ }], showAssistantMessageFeedback: [{
357
+ type: Input,
358
+ args: [{ alias: 'showAssistantMessageFeedback', transform: booleanAttribute }]
345
359
  }], authKey: [{
346
360
  type: Input,
347
361
  args: [{ alias: 'authKey' }]
@@ -459,5 +473,5 @@ export class LuzmoAiChat {
459
473
  }], size: [{
460
474
  type: Input,
461
475
  args: [{ alias: 'size' }]
462
- }], luzmoMessageSent: [{ type: i0.Output, args: ["luzmoMessageSent"] }], luzmoDatasetsChanged: [{ type: i0.Output, args: ["luzmoDatasetsChanged"] }], luzmoStep: [{ type: i0.Output, args: ["luzmoStep"] }], luzmoComplete: [{ type: i0.Output, args: ["luzmoComplete"] }], luzmoStop: [{ type: i0.Output, args: ["luzmoStop"] }], luzmoConversationIdChanged: [{ type: i0.Output, args: ["luzmoConversationIdChanged"] }], luzmoAssistantMessageAction: [{ type: i0.Output, args: ["luzmoAssistantMessageAction"] }] }); })();
476
+ }], luzmoMessageSent: [{ type: i0.Output, args: ["luzmoMessageSent"] }], luzmoDatasetsChanged: [{ type: i0.Output, args: ["luzmoDatasetsChanged"] }], luzmoStep: [{ type: i0.Output, args: ["luzmoStep"] }], luzmoComplete: [{ type: i0.Output, args: ["luzmoComplete"] }], luzmoStop: [{ type: i0.Output, args: ["luzmoStop"] }], luzmoConversationIdChanged: [{ type: i0.Output, args: ["luzmoConversationIdChanged"] }], luzmoAssistantMessageAction: [{ type: i0.Output, args: ["luzmoAssistantMessageAction"] }], luzmoAssistantMessageFeedback: [{ type: i0.Output, args: ["luzmoAssistantMessageFeedback"] }] }); })();
463
477
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAiChat, { className: "LuzmoAiChat", filePath: "components/ai-chat.ts", lineNumber: 18 }); })();
@@ -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
- 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, AddGridItemInput, ClonedItemPositioning, DefaultActionType, GridItemActionEventDetail, GridItemData, GridItemPatch, GridItemPosition, GridItemPositionPatch, GridItemRenderer, GridItemSizePatch, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
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 of the menu */
15
+ /** The preferred placement, which determines the toolbar orientation. */
16
16
  placement?: Placement;
17
- /** The Actions to display in the menu */
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 clicks an action in the menu; `detail` holds the action key, type, and active state. */
28
- readonly luzmoItemGridItemAction: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
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 of the menu */
18
+ /** The preferred placement, which determines the toolbar orientation. */
19
19
  placement;
20
- /** The Actions to display in the menu */
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 clicks an action in the menu; `detail` holds the action key, type, and active state. */
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 }); })();
@@ -50,6 +50,8 @@ export declare class LuzmoItemSlotPickerPanel implements OnChanges {
50
50
  placement?: Placement;
51
51
  /** Placement of the slot menu popover */
52
52
  slotMenuPlacement?: Placement;
53
+ /** How the slot menu opens: `overlay` shows it in a popover, `inline` expands it below the data field. Use `inline` when the panel itself lives in an overlay. Applies to `selects="single"` only. */
54
+ slotMenuMode?: 'overlay' | 'inline';
53
55
  /** Controls how slot constraints are handled - 'auto': Constraints are applied immediately (default) - 'event-only': Emit event with constraint details, let consumer decide */
54
56
  constraintMode?: 'auto' | 'event-only';
55
57
  /** Whether the pickers grow to full width */
@@ -89,7 +91,7 @@ export declare class LuzmoItemSlotPickerPanel implements OnChanges {
89
91
  private setHostProperty;
90
92
  private bindEvents;
91
93
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemSlotPickerPanel, never>;
92
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotPickerPanel, "luzmo-item-slot-picker-panel", ["luzmoItemSlotPickerPanel"], { "itemType": { "alias": "itemType"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotsConfiguration": { "alias": "slotsConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "dataFieldsSearch": { "alias": "dataFieldsSearch"; "required": false; }; "datasetSearch": { "alias": "datasetSearch"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "selectedDatasetId": { "alias": "selectedDatasetId"; "required": false; }; "datasetPicker": { "alias": "datasetPicker"; "required": false; }; "datasetPickerLabel": { "alias": "datasetPickerLabel"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "slotMenuPlacement": { "alias": "slotMenuPlacement"; "required": false; }; "constraintMode": { "alias": "constraintMode"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "container": { "alias": "container"; "required": false; }; "datasetfieldlabel": { "alias": "datasetFieldLabel"; "required": false; }; "slotspanel": { "alias": "slotsPanel"; "required": false; }; "slotcontainer": { "alias": "slotContainer"; "required": false; }; "fieldlabel": { "alias": "fieldLabel"; "required": false; }; "itemslotpicker": { "alias": "itemSlotPicker"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoDatasetConstraintTriggered": "luzmoDatasetConstraintTriggered"; "luzmoSlotsContentsChanged": "luzmoSlotsContentsChanged"; "luzmoDatasetChanged": "luzmoDatasetChanged"; "luzmoSlotConstraintTriggered": "luzmoSlotConstraintTriggered"; }, never, ["*"], true, never>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotPickerPanel, "luzmo-item-slot-picker-panel", ["luzmoItemSlotPickerPanel"], { "itemType": { "alias": "itemType"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotsConfiguration": { "alias": "slotsConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "dataFieldsSearch": { "alias": "dataFieldsSearch"; "required": false; }; "datasetSearch": { "alias": "datasetSearch"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "selectedDatasetId": { "alias": "selectedDatasetId"; "required": false; }; "datasetPicker": { "alias": "datasetPicker"; "required": false; }; "datasetPickerLabel": { "alias": "datasetPickerLabel"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "slotMenuPlacement": { "alias": "slotMenuPlacement"; "required": false; }; "slotMenuMode": { "alias": "slotMenuMode"; "required": false; }; "constraintMode": { "alias": "constraintMode"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "container": { "alias": "container"; "required": false; }; "datasetfieldlabel": { "alias": "datasetFieldLabel"; "required": false; }; "slotspanel": { "alias": "slotsPanel"; "required": false; }; "slotcontainer": { "alias": "slotContainer"; "required": false; }; "fieldlabel": { "alias": "fieldLabel"; "required": false; }; "itemslotpicker": { "alias": "itemSlotPicker"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoDatasetConstraintTriggered": "luzmoDatasetConstraintTriggered"; "luzmoSlotsContentsChanged": "luzmoSlotsContentsChanged"; "luzmoDatasetChanged": "luzmoDatasetChanged"; "luzmoSlotConstraintTriggered": "luzmoSlotConstraintTriggered"; }, never, ["*"], true, never>;
93
95
  static ngAcceptInputType_datasetPicker: unknown;
94
96
  static ngAcceptInputType_grows: unknown;
95
97
  }
@@ -51,6 +51,8 @@ export class LuzmoItemSlotPickerPanel {
51
51
  placement;
52
52
  /** Placement of the slot menu popover */
53
53
  slotMenuPlacement;
54
+ /** How the slot menu opens: `overlay` shows it in a popover, `inline` expands it below the data field. Use `inline` when the panel itself lives in an overlay. Applies to `selects="single"` only. */
55
+ slotMenuMode;
54
56
  /** Controls how slot constraints are handled - 'auto': Constraints are applied immediately (default) - 'event-only': Emit event with constraint details, let consumer decide */
55
57
  constraintMode;
56
58
  /** Whether the pickers grow to full width */
@@ -144,6 +146,9 @@ export class LuzmoItemSlotPickerPanel {
144
146
  case 'slotMenuPlacement':
145
147
  this.setHostProperty('slotMenuPlacement', changes['slotMenuPlacement'].currentValue);
146
148
  break;
149
+ case 'slotMenuMode':
150
+ this.setHostProperty('slotMenuMode', changes['slotMenuMode'].currentValue);
151
+ break;
147
152
  case 'constraintMode':
148
153
  this.setHostProperty('constraintMode', changes['constraintMode'].currentValue);
149
154
  break;
@@ -207,7 +212,7 @@ export class LuzmoItemSlotPickerPanel {
207
212
  }));
208
213
  }
209
214
  static ɵfac = function LuzmoItemSlotPickerPanel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemSlotPickerPanel)(); };
210
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotPickerPanel, selectors: [["luzmo-item-slot-picker-panel"]], inputs: { itemType: "itemType", contentLanguage: "contentLanguage", slotsConfiguration: "slotsConfiguration", slotsContents: "slotsContents", selects: "selects", dataFieldsSearch: "dataFieldsSearch", datasetSearch: "datasetSearch", icons: "icons", datasetsDataFields: "datasetsDataFields", datasetIds: "datasetIds", selectedDatasetId: "selectedDatasetId", datasetPicker: [2, "datasetPicker", "datasetPicker", booleanAttribute], datasetPickerLabel: "datasetPickerLabel", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", placement: "placement", slotMenuPlacement: "slotMenuPlacement", constraintMode: "constraintMode", grows: [2, "grows", "grows", booleanAttribute], container: "container", datasetfieldlabel: [0, "datasetFieldLabel", "datasetfieldlabel"], slotspanel: [0, "slotsPanel", "slotspanel"], slotcontainer: [0, "slotContainer", "slotcontainer"], fieldlabel: [0, "fieldLabel", "fieldlabel"], itemslotpicker: [0, "itemSlotPicker", "itemslotpicker"], language: "language", size: "size" }, outputs: { luzmoDatasetConstraintTriggered: "luzmoDatasetConstraintTriggered", luzmoSlotsContentsChanged: "luzmoSlotsContentsChanged", luzmoDatasetChanged: "luzmoDatasetChanged", luzmoSlotConstraintTriggered: "luzmoSlotConstraintTriggered" }, exportAs: ["luzmoItemSlotPickerPanel"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotPickerPanel_Template(rf, ctx) { if (rf & 1) {
215
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotPickerPanel, selectors: [["luzmo-item-slot-picker-panel"]], inputs: { itemType: "itemType", contentLanguage: "contentLanguage", slotsConfiguration: "slotsConfiguration", slotsContents: "slotsContents", selects: "selects", dataFieldsSearch: "dataFieldsSearch", datasetSearch: "datasetSearch", icons: "icons", datasetsDataFields: "datasetsDataFields", datasetIds: "datasetIds", selectedDatasetId: "selectedDatasetId", datasetPicker: [2, "datasetPicker", "datasetPicker", booleanAttribute], datasetPickerLabel: "datasetPickerLabel", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", placement: "placement", slotMenuPlacement: "slotMenuPlacement", slotMenuMode: "slotMenuMode", constraintMode: "constraintMode", grows: [2, "grows", "grows", booleanAttribute], container: "container", datasetfieldlabel: [0, "datasetFieldLabel", "datasetfieldlabel"], slotspanel: [0, "slotsPanel", "slotspanel"], slotcontainer: [0, "slotContainer", "slotcontainer"], fieldlabel: [0, "fieldLabel", "fieldlabel"], itemslotpicker: [0, "itemSlotPicker", "itemslotpicker"], language: "language", size: "size" }, outputs: { luzmoDatasetConstraintTriggered: "luzmoDatasetConstraintTriggered", luzmoSlotsContentsChanged: "luzmoSlotsContentsChanged", luzmoDatasetChanged: "luzmoDatasetChanged", luzmoSlotConstraintTriggered: "luzmoSlotConstraintTriggered" }, exportAs: ["luzmoItemSlotPickerPanel"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotPickerPanel_Template(rf, ctx) { if (rf & 1) {
211
216
  i0.ɵɵprojectionDef();
212
217
  i0.ɵɵprojection(0);
213
218
  } }, encapsulation: 2 });
@@ -275,6 +280,9 @@ export class LuzmoItemSlotPickerPanel {
275
280
  }], slotMenuPlacement: [{
276
281
  type: Input,
277
282
  args: [{ alias: 'slotMenuPlacement' }]
283
+ }], slotMenuMode: [{
284
+ type: Input,
285
+ args: [{ alias: 'slotMenuMode' }]
278
286
  }], constraintMode: [{
279
287
  type: Input,
280
288
  args: [{ alias: 'constraintMode' }]
@@ -52,9 +52,11 @@ export declare class LuzmoItemSlotPicker implements OnChanges {
52
52
  placement?: Placement;
53
53
  /** Placement of the slot menu popover. Only relevant for 'popup' and 'draggable' menu type */
54
54
  slotMenuPlacement?: Placement;
55
+ /** How the slot menu opens: `overlay` shows it in a popover next to the Edit button, `inline` expands it below the data field. Use `inline` when the picker itself lives in an overlay. `inline` applies to `selects="single"` only; multiple selects always use the overlay. */
56
+ slotMenuMode?: 'overlay' | 'inline';
55
57
  /** Whether to hide the configuration button */
56
58
  hideConfiguration?: boolean;
57
- /** Whether to hide the clear button op a select */
59
+ /** Whether to hide the delete button */
58
60
  hideClear?: boolean;
59
61
  /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
60
62
  language?: string;
@@ -75,7 +77,7 @@ export declare class LuzmoItemSlotPicker implements OnChanges {
75
77
  private setHostProperty;
76
78
  private bindEvents;
77
79
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemSlotPicker, never>;
78
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotPicker, "luzmo-item-slot-picker", ["luzmoItemSlotPicker"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotConfiguration": { "alias": "slotConfiguration"; "required": false; }; "slotContents": { "alias": "slotContents"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "hasLabel": { "alias": "hasLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "slotMenuPlacement": { "alias": "slotMenuPlacement"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "hideClear": { "alias": "hideClear"; "required": false; }; "language": { "alias": "language"; "required": false; }; "search": { "alias": "search"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; }, never, ["*"], true, never>;
80
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotPicker, "luzmo-item-slot-picker", ["luzmoItemSlotPicker"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotConfiguration": { "alias": "slotConfiguration"; "required": false; }; "slotContents": { "alias": "slotContents"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "hasLabel": { "alias": "hasLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "slotMenuPlacement": { "alias": "slotMenuPlacement"; "required": false; }; "slotMenuMode": { "alias": "slotMenuMode"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "hideClear": { "alias": "hideClear"; "required": false; }; "language": { "alias": "language"; "required": false; }; "search": { "alias": "search"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; }, never, ["*"], true, never>;
79
81
  static ngAcceptInputType_disabled: unknown;
80
82
  static ngAcceptInputType_grows: unknown;
81
83
  static ngAcceptInputType_hasLabel: unknown;
@@ -53,9 +53,11 @@ export class LuzmoItemSlotPicker {
53
53
  placement;
54
54
  /** Placement of the slot menu popover. Only relevant for 'popup' and 'draggable' menu type */
55
55
  slotMenuPlacement;
56
+ /** How the slot menu opens: `overlay` shows it in a popover next to the Edit button, `inline` expands it below the data field. Use `inline` when the picker itself lives in an overlay. `inline` applies to `selects="single"` only; multiple selects always use the overlay. */
57
+ slotMenuMode;
56
58
  /** Whether to hide the configuration button */
57
59
  hideConfiguration;
58
- /** Whether to hide the clear button op a select */
60
+ /** Whether to hide the delete button */
59
61
  hideClear;
60
62
  /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
61
63
  language;
@@ -133,6 +135,9 @@ export class LuzmoItemSlotPicker {
133
135
  case 'slotMenuPlacement':
134
136
  this.setHostProperty('slotMenuPlacement', changes['slotMenuPlacement'].currentValue);
135
137
  break;
138
+ case 'slotMenuMode':
139
+ this.setHostProperty('slotMenuMode', changes['slotMenuMode'].currentValue);
140
+ break;
136
141
  case 'hideConfiguration':
137
142
  this.setHostProperty('hideConfiguration', changes['hideConfiguration'].currentValue);
138
143
  break;
@@ -169,7 +174,7 @@ export class LuzmoItemSlotPicker {
169
174
  }));
170
175
  }
171
176
  static ɵfac = function LuzmoItemSlotPicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemSlotPicker)(); };
172
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotPicker, selectors: [["luzmo-item-slot-picker"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", itemType: "itemType", slotName: "slotName", slotConfiguration: "slotConfiguration", slotContents: "slotContents", contentLanguage: "contentLanguage", disabled: [2, "disabled", "disabled", booleanAttribute], grows: [2, "grows", "grows", booleanAttribute], menu: "menu", hasLabel: [2, "hasLabel", "hasLabel", booleanAttribute], label: "label", selects: "selects", icons: "icons", placeholder: "placeholder", datasetsDataFields: "datasetsDataFields", placement: "placement", slotMenuPlacement: "slotMenuPlacement", hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], hideClear: [2, "hideClear", "hideClear", booleanAttribute], language: "language", search: "search", size: "size" }, outputs: { luzmoSlotContentsChanged: "luzmoSlotContentsChanged" }, exportAs: ["luzmoItemSlotPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotPicker_Template(rf, ctx) { if (rf & 1) {
177
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotPicker, selectors: [["luzmo-item-slot-picker"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", itemType: "itemType", slotName: "slotName", slotConfiguration: "slotConfiguration", slotContents: "slotContents", contentLanguage: "contentLanguage", disabled: [2, "disabled", "disabled", booleanAttribute], grows: [2, "grows", "grows", booleanAttribute], menu: "menu", hasLabel: [2, "hasLabel", "hasLabel", booleanAttribute], label: "label", selects: "selects", icons: "icons", placeholder: "placeholder", datasetsDataFields: "datasetsDataFields", placement: "placement", slotMenuPlacement: "slotMenuPlacement", slotMenuMode: "slotMenuMode", hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], hideClear: [2, "hideClear", "hideClear", booleanAttribute], language: "language", search: "search", size: "size" }, outputs: { luzmoSlotContentsChanged: "luzmoSlotContentsChanged" }, exportAs: ["luzmoItemSlotPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotPicker_Template(rf, ctx) { if (rf & 1) {
173
178
  i0.ɵɵprojectionDef();
174
179
  i0.ɵɵprojection(0);
175
180
  } }, encapsulation: 2 });
@@ -240,6 +245,9 @@ export class LuzmoItemSlotPicker {
240
245
  }], slotMenuPlacement: [{
241
246
  type: Input,
242
247
  args: [{ alias: 'slotMenuPlacement' }]
248
+ }], slotMenuMode: [{
249
+ type: Input,
250
+ args: [{ alias: 'slotMenuMode' }]
243
251
  }], hideConfiguration: [{
244
252
  type: Input,
245
253
  args: [{ alias: 'hideConfiguration', transform: booleanAttribute }]
@@ -34,6 +34,8 @@ export declare class LuzmoSlotMenu implements OnChanges {
34
34
  variant?: 'popup' | 'draggable' | 'default';
35
35
  /** Whether to show the top menu label & delete button */
36
36
  noTopMenuLabel?: boolean;
37
+ /** Whether to hide the remove button in the popup variant, for hosts that already offer their own delete action */
38
+ noRemove?: boolean;
37
39
  /** CSS selector for the boundary element that constrains dragging of the menu. */
38
40
  dragBoundary?: string;
39
41
  /** Whether grand-totals options are available for this slot. */
@@ -90,10 +92,11 @@ export declare class LuzmoSlotMenu implements OnChanges {
90
92
  private bindEvents;
91
93
  close(): void;
92
94
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoSlotMenu, never>;
93
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoSlotMenu, "luzmo-slot-menu", ["luzmoSlotMenu"], { "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotType": { "alias": "slotType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "noDrag": { "alias": "noDrag"; "required": false; }; "noClose": { "alias": "noClose"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "noTopMenuLabel": { "alias": "noTopMenuLabel"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "areGrandTotalsEnabled": { "alias": "areGrandTotalsEnabled"; "required": false; }; "areDatetimeOptionsEnabled": { "alias": "areDatetimeOptionsEnabled"; "required": false; }; "isBinningDisabled": { "alias": "isBinningDisabled"; "required": false; }; "isAggregationDisabled": { "alias": "isAggregationDisabled"; "required": false; }; "isCumulativeSumEnabled": { "alias": "isCumulativeSumEnabled"; "required": false; }; "slotContents": { "alias": "slotContents"; "required": false; }; "measureColumns": { "alias": "measureColumns"; "required": false; }; "slotIndex": { "alias": "slotIndex"; "required": false; }; "displaySettingsElement": { "alias": "displaySettingsElement"; "required": false; }; "slotMenuListElement": { "alias": "slotMenuListElement"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; "luzmoClose": "luzmoClose"; "luzmoSlotMenuActive": "luzmoSlotMenuActive"; "luzmoSlotMenuHighlight": "luzmoSlotMenuHighlight"; "luzmoSlotMenuInactive": "luzmoSlotMenuInactive"; "luzmoInfoVisibilityChanged": "luzmoInfoVisibilityChanged"; }, never, ["*"], true, never>;
95
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoSlotMenu, "luzmo-slot-menu", ["luzmoSlotMenu"], { "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotType": { "alias": "slotType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "noDrag": { "alias": "noDrag"; "required": false; }; "noClose": { "alias": "noClose"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "noTopMenuLabel": { "alias": "noTopMenuLabel"; "required": false; }; "noRemove": { "alias": "noRemove"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "areGrandTotalsEnabled": { "alias": "areGrandTotalsEnabled"; "required": false; }; "areDatetimeOptionsEnabled": { "alias": "areDatetimeOptionsEnabled"; "required": false; }; "isBinningDisabled": { "alias": "isBinningDisabled"; "required": false; }; "isAggregationDisabled": { "alias": "isAggregationDisabled"; "required": false; }; "isCumulativeSumEnabled": { "alias": "isCumulativeSumEnabled"; "required": false; }; "slotContents": { "alias": "slotContents"; "required": false; }; "measureColumns": { "alias": "measureColumns"; "required": false; }; "slotIndex": { "alias": "slotIndex"; "required": false; }; "displaySettingsElement": { "alias": "displaySettingsElement"; "required": false; }; "slotMenuListElement": { "alias": "slotMenuListElement"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; "luzmoClose": "luzmoClose"; "luzmoSlotMenuActive": "luzmoSlotMenuActive"; "luzmoSlotMenuHighlight": "luzmoSlotMenuHighlight"; "luzmoSlotMenuInactive": "luzmoSlotMenuInactive"; "luzmoInfoVisibilityChanged": "luzmoInfoVisibilityChanged"; }, never, ["*"], true, never>;
94
96
  static ngAcceptInputType_noDrag: unknown;
95
97
  static ngAcceptInputType_noClose: unknown;
96
98
  static ngAcceptInputType_noTopMenuLabel: unknown;
99
+ static ngAcceptInputType_noRemove: unknown;
97
100
  static ngAcceptInputType_areGrandTotalsEnabled: unknown;
98
101
  static ngAcceptInputType_areDatetimeOptionsEnabled: unknown;
99
102
  static ngAcceptInputType_isBinningDisabled: unknown;
@@ -33,6 +33,8 @@ export class LuzmoSlotMenu {
33
33
  variant;
34
34
  /** Whether to show the top menu label & delete button */
35
35
  noTopMenuLabel;
36
+ /** Whether to hide the remove button in the popup variant, for hosts that already offer their own delete action */
37
+ noRemove;
36
38
  /** CSS selector for the boundary element that constrains dragging of the menu. */
37
39
  dragBoundary;
38
40
  /** Whether grand-totals options are available for this slot. */
@@ -115,6 +117,9 @@ export class LuzmoSlotMenu {
115
117
  case 'noTopMenuLabel':
116
118
  this.setHostProperty('noTopMenuLabel', changes['noTopMenuLabel'].currentValue);
117
119
  break;
120
+ case 'noRemove':
121
+ this.setHostProperty('noRemove', changes['noRemove'].currentValue);
122
+ break;
118
123
  case 'dragBoundary':
119
124
  this.setHostProperty('dragBoundary', changes['dragBoundary'].currentValue);
120
125
  break;
@@ -207,7 +212,7 @@ export class LuzmoSlotMenu {
207
212
  return this.host.close();
208
213
  }
209
214
  static ɵfac = function LuzmoSlotMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoSlotMenu)(); };
210
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoSlotMenu, selectors: [["luzmo-slot-menu"]], inputs: { language: "language", contentLanguage: "contentLanguage", slotType: "slotType", slotName: "slotName", itemType: "itemType", noDrag: [2, "noDrag", "noDrag", booleanAttribute], noClose: [2, "noClose", "noClose", booleanAttribute], variant: "variant", noTopMenuLabel: [2, "noTopMenuLabel", "noTopMenuLabel", booleanAttribute], dragBoundary: "dragBoundary", areGrandTotalsEnabled: [2, "areGrandTotalsEnabled", "areGrandTotalsEnabled", booleanAttribute], areDatetimeOptionsEnabled: [2, "areDatetimeOptionsEnabled", "areDatetimeOptionsEnabled", booleanAttribute], isBinningDisabled: [2, "isBinningDisabled", "isBinningDisabled", booleanAttribute], isAggregationDisabled: [2, "isAggregationDisabled", "isAggregationDisabled", booleanAttribute], isCumulativeSumEnabled: [2, "isCumulativeSumEnabled", "isCumulativeSumEnabled", booleanAttribute], slotContents: "slotContents", measureColumns: "measureColumns", slotIndex: "slotIndex", displaySettingsElement: "displaySettingsElement", slotMenuListElement: "slotMenuListElement", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", datasetsDataFields: "datasetsDataFields", size: "size" }, outputs: { luzmoSlotContentsChanged: "luzmoSlotContentsChanged", luzmoClose: "luzmoClose", luzmoSlotMenuActive: "luzmoSlotMenuActive", luzmoSlotMenuHighlight: "luzmoSlotMenuHighlight", luzmoSlotMenuInactive: "luzmoSlotMenuInactive", luzmoInfoVisibilityChanged: "luzmoInfoVisibilityChanged" }, exportAs: ["luzmoSlotMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoSlotMenu_Template(rf, ctx) { if (rf & 1) {
215
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoSlotMenu, selectors: [["luzmo-slot-menu"]], inputs: { language: "language", contentLanguage: "contentLanguage", slotType: "slotType", slotName: "slotName", itemType: "itemType", noDrag: [2, "noDrag", "noDrag", booleanAttribute], noClose: [2, "noClose", "noClose", booleanAttribute], variant: "variant", noTopMenuLabel: [2, "noTopMenuLabel", "noTopMenuLabel", booleanAttribute], noRemove: [2, "noRemove", "noRemove", booleanAttribute], dragBoundary: "dragBoundary", areGrandTotalsEnabled: [2, "areGrandTotalsEnabled", "areGrandTotalsEnabled", booleanAttribute], areDatetimeOptionsEnabled: [2, "areDatetimeOptionsEnabled", "areDatetimeOptionsEnabled", booleanAttribute], isBinningDisabled: [2, "isBinningDisabled", "isBinningDisabled", booleanAttribute], isAggregationDisabled: [2, "isAggregationDisabled", "isAggregationDisabled", booleanAttribute], isCumulativeSumEnabled: [2, "isCumulativeSumEnabled", "isCumulativeSumEnabled", booleanAttribute], slotContents: "slotContents", measureColumns: "measureColumns", slotIndex: "slotIndex", displaySettingsElement: "displaySettingsElement", slotMenuListElement: "slotMenuListElement", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", datasetsDataFields: "datasetsDataFields", size: "size" }, outputs: { luzmoSlotContentsChanged: "luzmoSlotContentsChanged", luzmoClose: "luzmoClose", luzmoSlotMenuActive: "luzmoSlotMenuActive", luzmoSlotMenuHighlight: "luzmoSlotMenuHighlight", luzmoSlotMenuInactive: "luzmoSlotMenuInactive", luzmoInfoVisibilityChanged: "luzmoInfoVisibilityChanged" }, exportAs: ["luzmoSlotMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoSlotMenu_Template(rf, ctx) { if (rf & 1) {
211
216
  i0.ɵɵprojectionDef();
212
217
  i0.ɵɵprojection(0);
213
218
  } }, encapsulation: 2 });
@@ -248,6 +253,9 @@ export class LuzmoSlotMenu {
248
253
  }], noTopMenuLabel: [{
249
254
  type: Input,
250
255
  args: [{ alias: 'noTopMenuLabel', transform: booleanAttribute }]
256
+ }], noRemove: [{
257
+ type: Input,
258
+ args: [{ alias: 'noRemove', transform: booleanAttribute }]
251
259
  }], dragBoundary: [{
252
260
  type: Input,
253
261
  args: [{ alias: 'dragBoundary' }]
package/esm/index.d.ts CHANGED
@@ -51,7 +51,6 @@ import { LuzmoItemSlotPicker } from './components/item-slot-picker.js';
51
51
  import { LuzmoItemSlotPickerPanel } from './components/item-slot-picker-panel.js';
52
52
  import { LuzmoSlotMenu } from './components/slot-menu.js';
53
53
  import { LuzmoSlotMenuList } from './components/slot-menu-list.js';
54
- import { LuzmoVizItemMenu } from './components/viz-item-menu.js';
55
54
  export { LuzmoAddToDashboard, type LuzmoAddToDashboardElement } from './components/add-to-dashboard.js';
56
55
  export { LuzmoAiChat, type LuzmoAiChatElement } from './components/ai-chat.js';
57
56
  export { LuzmoAiChatEmptyState, type LuzmoAiChatEmptyStateElement } from './components/ai-chat-empty-state.js';
@@ -105,7 +104,6 @@ export { LuzmoItemSlotPicker, type LuzmoItemSlotPickerElement } from './componen
105
104
  export { LuzmoItemSlotPickerPanel, type LuzmoItemSlotPickerPanelElement } from './components/item-slot-picker-panel.js';
106
105
  export { LuzmoSlotMenu, type LuzmoSlotMenuElement } from './components/slot-menu.js';
107
106
  export { LuzmoSlotMenuList, type LuzmoSlotMenuListElement } from './components/slot-menu-list.js';
108
- export { LuzmoVizItemMenu, type LuzmoVizItemMenuElement } from './components/viz-item-menu.js';
109
- export declare const LUZMO_ANGULAR_COMPONENTS: readonly [typeof LuzmoAddToDashboard, typeof LuzmoAiChat, typeof LuzmoAiChatEmptyState, typeof LuzmoAiInteractionTextarea, typeof LuzmoDataField, typeof LuzmoDataFieldLevel, typeof LuzmoDataFieldPanel, typeof LuzmoDataFieldsSelect, typeof LuzmoDatasetIcon, typeof LuzmoDatasetSelectorList, typeof LuzmoDatasetSelectorRow, typeof LuzmoDisplaySettings, typeof LuzmoDisplaySettingsBinning, typeof LuzmoDisplaySettingsDatetime, typeof LuzmoDisplaySettingsGrandTotals, typeof LuzmoDisplaySettingsNumeric, typeof LuzmoDisplaySettingsPeriodOverPeriod, typeof LuzmoFilterExpressionPicker, typeof LuzmoFilterItem, typeof LuzmoFilterParameterPicker, typeof LuzmoFilterValuePicker, typeof LuzmoFilterValuePickerDatetime, typeof LuzmoFilterValuePickerHierarchy, typeof LuzmoFilterValuePickerNumeric, typeof LuzmoFilters, typeof LuzmoFormula, typeof LuzmoFormulaEditor, typeof LuzmoFormulaField, typeof LuzmoInteractiveVizItem, typeof LuzmoItemGrid, typeof LuzmoItemGridItemActionsMenu, typeof LuzmoItemOption, typeof LuzmoItemOptionActionButtonGroup, typeof LuzmoItemOptionColorPalettePicker, typeof LuzmoItemOptionColorPicker, typeof LuzmoItemOptionColorRange, typeof LuzmoItemOptionGuidelines, typeof LuzmoItemOptionMultiLanguageField, typeof LuzmoItemOptionNumberField, typeof LuzmoItemOptionPanel, typeof LuzmoItemOptionPicker, typeof LuzmoItemOptionPositionPicker, typeof LuzmoItemOptionPositionsNumberField, typeof LuzmoItemOptionRadioButtonGroup, typeof LuzmoItemOptionSlider, typeof LuzmoItemOptionSwitch, typeof LuzmoItemOptionTextField, typeof LuzmoItemSlotDrop, typeof LuzmoItemSlotDropPanel, typeof LuzmoItemSlotPicker, typeof LuzmoItemSlotPickerPanel, typeof LuzmoSlotMenu, typeof LuzmoSlotMenuList, typeof LuzmoVizItemMenu];
110
- export declare const LUZMO_ANGULAR_COMPONENT_NAMES: readonly ["LuzmoAddToDashboard", "LuzmoAiChat", "LuzmoAiChatEmptyState", "LuzmoAiInteractionTextarea", "LuzmoDataField", "LuzmoDataFieldLevel", "LuzmoDataFieldPanel", "LuzmoDataFieldsSelect", "LuzmoDatasetIcon", "LuzmoDatasetSelectorList", "LuzmoDatasetSelectorRow", "LuzmoDisplaySettings", "LuzmoDisplaySettingsBinning", "LuzmoDisplaySettingsDatetime", "LuzmoDisplaySettingsGrandTotals", "LuzmoDisplaySettingsNumeric", "LuzmoDisplaySettingsPeriodOverPeriod", "LuzmoFilterExpressionPicker", "LuzmoFilterItem", "LuzmoFilterParameterPicker", "LuzmoFilterValuePicker", "LuzmoFilterValuePickerDatetime", "LuzmoFilterValuePickerHierarchy", "LuzmoFilterValuePickerNumeric", "LuzmoFilters", "LuzmoFormula", "LuzmoFormulaEditor", "LuzmoFormulaField", "LuzmoInteractiveVizItem", "LuzmoItemGrid", "LuzmoItemGridItemActionsMenu", "LuzmoItemOption", "LuzmoItemOptionActionButtonGroup", "LuzmoItemOptionColorPalettePicker", "LuzmoItemOptionColorPicker", "LuzmoItemOptionColorRange", "LuzmoItemOptionGuidelines", "LuzmoItemOptionMultiLanguageField", "LuzmoItemOptionNumberField", "LuzmoItemOptionPanel", "LuzmoItemOptionPicker", "LuzmoItemOptionPositionPicker", "LuzmoItemOptionPositionsNumberField", "LuzmoItemOptionRadioButtonGroup", "LuzmoItemOptionSlider", "LuzmoItemOptionSwitch", "LuzmoItemOptionTextField", "LuzmoItemSlotDrop", "LuzmoItemSlotDropPanel", "LuzmoItemSlotPicker", "LuzmoItemSlotPickerPanel", "LuzmoSlotMenu", "LuzmoSlotMenuList", "LuzmoVizItemMenu"];
107
+ export declare const LUZMO_ANGULAR_COMPONENTS: readonly [typeof LuzmoAddToDashboard, typeof LuzmoAiChat, typeof LuzmoAiChatEmptyState, typeof LuzmoAiInteractionTextarea, typeof LuzmoDataField, typeof LuzmoDataFieldLevel, typeof LuzmoDataFieldPanel, typeof LuzmoDataFieldsSelect, typeof LuzmoDatasetIcon, typeof LuzmoDatasetSelectorList, typeof LuzmoDatasetSelectorRow, typeof LuzmoDisplaySettings, typeof LuzmoDisplaySettingsBinning, typeof LuzmoDisplaySettingsDatetime, typeof LuzmoDisplaySettingsGrandTotals, typeof LuzmoDisplaySettingsNumeric, typeof LuzmoDisplaySettingsPeriodOverPeriod, typeof LuzmoFilterExpressionPicker, typeof LuzmoFilterItem, typeof LuzmoFilterParameterPicker, typeof LuzmoFilterValuePicker, typeof LuzmoFilterValuePickerDatetime, typeof LuzmoFilterValuePickerHierarchy, typeof LuzmoFilterValuePickerNumeric, typeof LuzmoFilters, typeof LuzmoFormula, typeof LuzmoFormulaEditor, typeof LuzmoFormulaField, typeof LuzmoInteractiveVizItem, typeof LuzmoItemGrid, typeof LuzmoItemGridItemActionsMenu, typeof LuzmoItemOption, typeof LuzmoItemOptionActionButtonGroup, typeof LuzmoItemOptionColorPalettePicker, typeof LuzmoItemOptionColorPicker, typeof LuzmoItemOptionColorRange, typeof LuzmoItemOptionGuidelines, typeof LuzmoItemOptionMultiLanguageField, typeof LuzmoItemOptionNumberField, typeof LuzmoItemOptionPanel, typeof LuzmoItemOptionPicker, typeof LuzmoItemOptionPositionPicker, typeof LuzmoItemOptionPositionsNumberField, typeof LuzmoItemOptionRadioButtonGroup, typeof LuzmoItemOptionSlider, typeof LuzmoItemOptionSwitch, typeof LuzmoItemOptionTextField, typeof LuzmoItemSlotDrop, typeof LuzmoItemSlotDropPanel, typeof LuzmoItemSlotPicker, typeof LuzmoItemSlotPickerPanel, typeof LuzmoSlotMenu, typeof LuzmoSlotMenuList];
108
+ export declare const LUZMO_ANGULAR_COMPONENT_NAMES: readonly ["LuzmoAddToDashboard", "LuzmoAiChat", "LuzmoAiChatEmptyState", "LuzmoAiInteractionTextarea", "LuzmoDataField", "LuzmoDataFieldLevel", "LuzmoDataFieldPanel", "LuzmoDataFieldsSelect", "LuzmoDatasetIcon", "LuzmoDatasetSelectorList", "LuzmoDatasetSelectorRow", "LuzmoDisplaySettings", "LuzmoDisplaySettingsBinning", "LuzmoDisplaySettingsDatetime", "LuzmoDisplaySettingsGrandTotals", "LuzmoDisplaySettingsNumeric", "LuzmoDisplaySettingsPeriodOverPeriod", "LuzmoFilterExpressionPicker", "LuzmoFilterItem", "LuzmoFilterParameterPicker", "LuzmoFilterValuePicker", "LuzmoFilterValuePickerDatetime", "LuzmoFilterValuePickerHierarchy", "LuzmoFilterValuePickerNumeric", "LuzmoFilters", "LuzmoFormula", "LuzmoFormulaEditor", "LuzmoFormulaField", "LuzmoInteractiveVizItem", "LuzmoItemGrid", "LuzmoItemGridItemActionsMenu", "LuzmoItemOption", "LuzmoItemOptionActionButtonGroup", "LuzmoItemOptionColorPalettePicker", "LuzmoItemOptionColorPicker", "LuzmoItemOptionColorRange", "LuzmoItemOptionGuidelines", "LuzmoItemOptionMultiLanguageField", "LuzmoItemOptionNumberField", "LuzmoItemOptionPanel", "LuzmoItemOptionPicker", "LuzmoItemOptionPositionPicker", "LuzmoItemOptionPositionsNumberField", "LuzmoItemOptionRadioButtonGroup", "LuzmoItemOptionSlider", "LuzmoItemOptionSwitch", "LuzmoItemOptionTextField", "LuzmoItemSlotDrop", "LuzmoItemSlotDropPanel", "LuzmoItemSlotPicker", "LuzmoItemSlotPickerPanel", "LuzmoSlotMenu", "LuzmoSlotMenuList"];
111
109
  export type LuzmoAngularComponentName = (typeof LUZMO_ANGULAR_COMPONENT_NAMES)[number];
package/esm/index.js CHANGED
@@ -52,7 +52,6 @@ import { LuzmoItemSlotPicker } from './components/item-slot-picker.js';
52
52
  import { LuzmoItemSlotPickerPanel } from './components/item-slot-picker-panel.js';
53
53
  import { LuzmoSlotMenu } from './components/slot-menu.js';
54
54
  import { LuzmoSlotMenuList } from './components/slot-menu-list.js';
55
- import { LuzmoVizItemMenu } from './components/viz-item-menu.js';
56
55
  export { LuzmoAddToDashboard } from './components/add-to-dashboard.js';
57
56
  export { LuzmoAiChat } from './components/ai-chat.js';
58
57
  export { LuzmoAiChatEmptyState } from './components/ai-chat-empty-state.js';
@@ -106,7 +105,6 @@ export { LuzmoItemSlotPicker } from './components/item-slot-picker.js';
106
105
  export { LuzmoItemSlotPickerPanel } from './components/item-slot-picker-panel.js';
107
106
  export { LuzmoSlotMenu } from './components/slot-menu.js';
108
107
  export { LuzmoSlotMenuList } from './components/slot-menu-list.js';
109
- export { LuzmoVizItemMenu } from './components/viz-item-menu.js';
110
108
  export const LUZMO_ANGULAR_COMPONENTS = [
111
109
  LuzmoAddToDashboard,
112
110
  LuzmoAiChat,
@@ -160,8 +158,7 @@ export const LUZMO_ANGULAR_COMPONENTS = [
160
158
  LuzmoItemSlotPicker,
161
159
  LuzmoItemSlotPickerPanel,
162
160
  LuzmoSlotMenu,
163
- LuzmoSlotMenuList,
164
- LuzmoVizItemMenu
161
+ LuzmoSlotMenuList
165
162
  ];
166
163
  export const LUZMO_ANGULAR_COMPONENT_NAMES = [
167
164
  'LuzmoAddToDashboard',
@@ -216,6 +213,5 @@ export const LUZMO_ANGULAR_COMPONENT_NAMES = [
216
213
  'LuzmoItemSlotPicker',
217
214
  'LuzmoItemSlotPickerPanel',
218
215
  'LuzmoSlotMenu',
219
- 'LuzmoSlotMenuList',
220
- 'LuzmoVizItemMenu'
216
+ 'LuzmoSlotMenuList'
221
217
  ];
package/package.json CHANGED
@@ -29,9 +29,13 @@
29
29
  "peerDependencies": {
30
30
  "@angular/core": "^17.3.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
31
31
  "@angular/forms": "^17.3.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
32
- "@luzmo/analytics-components-kit": "1.0.9-beta.9"
32
+ "@luzmo/analytics-components-kit": "1.1.1"
33
+ },
34
+ "version": "1.1.1",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/cumulio-internal/analytics-components-kit.git"
33
38
  },
34
- "version": "1.0.9-beta.9",
35
39
  "peerDependenciesMeta": {
36
40
  "@angular/forms": {
37
41
  "optional": true
@@ -1,42 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/viz-item-menu';
3
- import type { LuzmoVizItemMenu as LuzmoVizItemMenuHostElement, VizItemMenuButton, VizItemMenuButtonClickedEventDetail, VizItemMenuSelectedChangedEventDetail } from '@luzmo/analytics-components-kit/viz-item-menu';
4
- import * as i0 from "@angular/core";
5
- export type { VizItemMenuButton, VizItemMenuButtonClickedEventDetail, VizItemMenuSelectedChangedEventDetail } from '@luzmo/analytics-components-kit/viz-item-menu';
6
- export declare class LuzmoVizItemMenu 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(): LuzmoVizItemMenuHostElement;
14
- /** The visualization item ID */
15
- vizItemId?: string;
16
- /** Array of menu buttons to hide */
17
- hiddenButtons?: VizItemMenuButton[];
18
- /** The currently selected menu button */
19
- selectedButton?: VizItemMenuButton | null;
20
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
21
- language?: string;
22
- /** Emitted when the selected button changes */
23
- readonly selectedChanged: import("@angular/core").OutputEmitterRef<CustomEvent<VizItemMenuSelectedChangedEventDetail>>;
24
- /** Emitted when any menu item is clicked */
25
- readonly buttonClicked: import("@angular/core").OutputEmitterRef<CustomEvent<VizItemMenuButtonClickedEventDetail>>;
26
- /** Emitted when hovering over the edit button */
27
- readonly editButtonHovered: import("@angular/core").OutputEmitterRef<CustomEvent<void>>;
28
- constructor();
29
- ngOnChanges(changes: SimpleChanges): void;
30
- /**
31
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
32
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
33
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
34
- * undefined / null by clearing their bindings.
35
- */
36
- private setHostProperty;
37
- private bindEvents;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoVizItemMenu, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoVizItemMenu, "luzmo-viz-item-menu", ["luzmoVizItemMenu"], { "vizItemId": { "alias": "vizItemId"; "required": false; }; "hiddenButtons": { "alias": "hiddenButtons"; "required": false; }; "selectedButton": { "alias": "selectedButton"; "required": false; }; "language": { "alias": "language"; "required": false; }; }, { "selectedChanged": "selectedChanged"; "buttonClicked": "buttonClicked"; "editButtonHovered": "editButtonHovered"; }, never, ["*"], true, never>;
40
- }
41
- /** The underlying custom element type for LuzmoVizItemMenu */
42
- export type LuzmoVizItemMenuElement = LuzmoVizItemMenuHostElement;
@@ -1,111 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/viz-item-menu';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-viz-item-menu>
7
- */
8
- export class LuzmoVizItemMenu {
9
- elementRef = inject(ElementRef);
10
- renderer = inject(Renderer2);
11
- destroyRef = inject(DestroyRef);
12
- host = this.elementRef.nativeElement;
13
- listenerCleanup = [];
14
- /** The underlying custom element instance. Use to call imperative methods. */
15
- get nativeElement() {
16
- return this.host;
17
- }
18
- /** The visualization item ID */
19
- vizItemId;
20
- /** Array of menu buttons to hide */
21
- hiddenButtons;
22
- /** The currently selected menu button */
23
- selectedButton;
24
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
25
- language;
26
- /** Emitted when the selected button changes */
27
- selectedChanged = output({ alias: 'selectedChanged' });
28
- /** Emitted when any menu item is clicked */
29
- buttonClicked = output({ alias: 'buttonClicked' });
30
- /** Emitted when hovering over the edit button */
31
- editButtonHovered = output({ alias: 'editButtonHovered' });
32
- constructor() {
33
- this.bindEvents();
34
- this.destroyRef.onDestroy(() => {
35
- for (const cleanup of this.listenerCleanup) {
36
- cleanup();
37
- }
38
- });
39
- }
40
- ngOnChanges(changes) {
41
- for (const key of Object.keys(changes)) {
42
- switch (key) {
43
- case 'vizItemId':
44
- this.setHostProperty('vizItemId', changes['vizItemId'].currentValue);
45
- break;
46
- case 'hiddenButtons':
47
- this.setHostProperty('hiddenButtons', changes['hiddenButtons'].currentValue);
48
- break;
49
- case 'selectedButton':
50
- this.setHostProperty('selectedButton', changes['selectedButton'].currentValue);
51
- break;
52
- case 'language':
53
- this.setHostProperty('language', changes['language'].currentValue);
54
- break;
55
- default:
56
- break;
57
- }
58
- }
59
- }
60
- /**
61
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
62
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
63
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
64
- * undefined / null by clearing their bindings.
65
- */
66
- setHostProperty(key, value) {
67
- this.renderer.setProperty(this.host, key, value);
68
- }
69
- bindEvents() {
70
- this.listenerCleanup.push(this.renderer.listen(this.host, 'selected-changed', (event) => {
71
- const typed = event;
72
- this.selectedChanged.emit(typed);
73
- }));
74
- this.listenerCleanup.push(this.renderer.listen(this.host, 'button-clicked', (event) => {
75
- const typed = event;
76
- this.buttonClicked.emit(typed);
77
- }));
78
- this.listenerCleanup.push(this.renderer.listen(this.host, 'edit-button-hovered', (event) => {
79
- const typed = event;
80
- this.editButtonHovered.emit(typed);
81
- }));
82
- }
83
- static ɵfac = function LuzmoVizItemMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoVizItemMenu)(); };
84
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoVizItemMenu, selectors: [["luzmo-viz-item-menu"]], inputs: { vizItemId: "vizItemId", hiddenButtons: "hiddenButtons", selectedButton: "selectedButton", language: "language" }, outputs: { selectedChanged: "selectedChanged", buttonClicked: "buttonClicked", editButtonHovered: "editButtonHovered" }, exportAs: ["luzmoVizItemMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoVizItemMenu_Template(rf, ctx) { if (rf & 1) {
85
- i0.ɵɵprojectionDef();
86
- i0.ɵɵprojection(0);
87
- } }, encapsulation: 2 });
88
- }
89
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoVizItemMenu, [{
90
- type: Component,
91
- args: [{
92
- selector: 'luzmo-viz-item-menu',
93
- exportAs: 'luzmoVizItemMenu',
94
- standalone: true,
95
- changeDetection: ChangeDetectionStrategy.OnPush,
96
- template: '<ng-content />'
97
- }]
98
- }], () => [], { vizItemId: [{
99
- type: Input,
100
- args: [{ alias: 'vizItemId' }]
101
- }], hiddenButtons: [{
102
- type: Input,
103
- args: [{ alias: 'hiddenButtons' }]
104
- }], selectedButton: [{
105
- type: Input,
106
- args: [{ alias: 'selectedButton' }]
107
- }], language: [{
108
- type: Input,
109
- args: [{ alias: 'language' }]
110
- }], selectedChanged: [{ type: i0.Output, args: ["selectedChanged"] }], buttonClicked: [{ type: i0.Output, args: ["buttonClicked"] }], editButtonHovered: [{ type: i0.Output, args: ["editButtonHovered"] }] }); })();
111
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoVizItemMenu, { className: "LuzmoVizItemMenu", filePath: "components/viz-item-menu.ts", lineNumber: 16 }); })();