@luzmo/ngx-analytics-components-kit 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/ai-chat-empty-state.d.ts +1 -1
- package/esm/components/ai-chat.d.ts +6 -4
- package/esm/components/ai-chat.js +10 -2
- package/esm/components/display-settings-period-over-period.d.ts +12 -5
- package/esm/components/display-settings-period-over-period.js +29 -5
- package/esm/components/display-settings.d.ts +11 -4
- package/esm/components/display-settings.js +28 -4
- package/esm/components/item-slot-drop-panel.d.ts +4 -1
- package/esm/components/item-slot-drop-panel.js +10 -2
- package/esm/components/item-slot-drop.d.ts +4 -1
- package/esm/components/item-slot-drop.js +10 -2
- package/esm/components/item-slot-picker-panel.d.ts +4 -1
- package/esm/components/item-slot-picker-panel.js +10 -2
- package/esm/components/item-slot-picker.d.ts +7 -2
- package/esm/components/item-slot-picker.js +18 -2
- package/esm/components/slot-menu.d.ts +7 -2
- package/esm/components/slot-menu.js +18 -2
- package/package.json +2 -2
|
@@ -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, 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';
|
|
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, ChatChoiceOption, ChatChoiceQuestion, ChatMessageElicitation, ChatMessageQuestion, ChatQuestionAnswers, ChatQuestionResponse, 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
3
|
import type { LuzmoAiChat as LuzmoAiChatHostElement, AiChatAgentConfig, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatEmptyStateSuggestion, AiChatMessageSentEventDetail, AiChatSession, AiChatStepEvent, AssistantMessageActionEventDetail, AssistantMessageFeedbackEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
|
|
4
|
-
import type { AiPromptAgent, AiPromptCustomItemInput, AiPromptItemTask, AiPromptScreenMode, DashboardStatePayload } from '@luzmo/analytics-components-kit/ai-chat';
|
|
4
|
+
import type { AiChatInteraction, 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, 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';
|
|
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, ChatChoiceOption, ChatChoiceQuestion, ChatMessageElicitation, ChatMessageQuestion, ChatQuestionAnswers, ChatQuestionResponse, 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;
|
|
@@ -71,6 +71,8 @@ export declare class LuzmoAiChat implements OnChanges {
|
|
|
71
71
|
task?: AiPromptItemTask;
|
|
72
72
|
/** AI model preference for item agent chart generation */
|
|
73
73
|
modelPreference?: 'performance' | 'quality';
|
|
74
|
+
/** Boxes the agent may show, declared on every request as `client_capabilities`. Defaults to none. Pass `['question']` once the aiprompt API accepts `client_capabilities`. Ignored with a host `chatSession`. */
|
|
75
|
+
interactions?: AiChatInteraction[];
|
|
74
76
|
/** Host-owned AiChatSession. The component subscribes and renders; does not abort on disconnect. */
|
|
75
77
|
chatSession?: AiChatSession | null;
|
|
76
78
|
/** Conversation ID (synced into the session; updated when the API returns a new id). */
|
|
@@ -109,7 +111,7 @@ export declare class LuzmoAiChat implements OnChanges {
|
|
|
109
111
|
readonly luzmoMessageSent: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatMessageSentEventDetail>>;
|
|
110
112
|
/** Fired when the selected datasets change */
|
|
111
113
|
readonly luzmoDatasetsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatDatasetsChangedEventDetail>>;
|
|
112
|
-
/** Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, custom-item, elicitation, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow. */
|
|
114
|
+
/** Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, custom-item, elicitation, question, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow. */
|
|
113
115
|
readonly luzmoStep: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatStepEvent>>;
|
|
114
116
|
/** Fired exactly once per response with the authoritative final result (dashboard/chart/name/customItem) or an `error`. */
|
|
115
117
|
readonly luzmoComplete: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatCompleteEvent>>;
|
|
@@ -132,7 +134,7 @@ export declare class LuzmoAiChat implements OnChanges {
|
|
|
132
134
|
private setHostProperty;
|
|
133
135
|
private bindEvents;
|
|
134
136
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiChat, 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>;
|
|
137
|
+
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; }; "interactions": { "alias": "interactions"; "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>;
|
|
136
138
|
static ngAcceptInputType_disabled: unknown;
|
|
137
139
|
static ngAcceptInputType_stoppable: unknown;
|
|
138
140
|
static ngAcceptInputType_showAssistantContextMenu: unknown;
|
|
@@ -73,6 +73,8 @@ export class LuzmoAiChat {
|
|
|
73
73
|
task;
|
|
74
74
|
/** AI model preference for item agent chart generation */
|
|
75
75
|
modelPreference;
|
|
76
|
+
/** Boxes the agent may show, declared on every request as `client_capabilities`. Defaults to none. Pass `['question']` once the aiprompt API accepts `client_capabilities`. Ignored with a host `chatSession`. */
|
|
77
|
+
interactions;
|
|
76
78
|
/** Host-owned AiChatSession. The component subscribes and renders; does not abort on disconnect. */
|
|
77
79
|
chatSession;
|
|
78
80
|
/** Conversation ID (synced into the session; updated when the API returns a new id). */
|
|
@@ -111,7 +113,7 @@ export class LuzmoAiChat {
|
|
|
111
113
|
luzmoMessageSent = output({ alias: 'luzmoMessageSent' });
|
|
112
114
|
/** Fired when the selected datasets change */
|
|
113
115
|
luzmoDatasetsChanged = output({ alias: 'luzmoDatasetsChanged' });
|
|
114
|
-
/** Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, custom-item, elicitation, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow. */
|
|
116
|
+
/** Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, custom-item, elicitation, question, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow. */
|
|
115
117
|
luzmoStep = output({ alias: 'luzmoStep' });
|
|
116
118
|
/** Fired exactly once per response with the authoritative final result (dashboard/chart/name/customItem) or an `error`. */
|
|
117
119
|
luzmoComplete = output({ alias: 'luzmoComplete' });
|
|
@@ -221,6 +223,9 @@ export class LuzmoAiChat {
|
|
|
221
223
|
case 'modelPreference':
|
|
222
224
|
this.setHostProperty('modelPreference', changes['modelPreference'].currentValue);
|
|
223
225
|
break;
|
|
226
|
+
case 'interactions':
|
|
227
|
+
this.setHostProperty('interactions', changes['interactions'].currentValue);
|
|
228
|
+
break;
|
|
224
229
|
case 'chatSession':
|
|
225
230
|
this.setHostProperty('chatSession', changes['chatSession'].currentValue);
|
|
226
231
|
break;
|
|
@@ -321,7 +326,7 @@ export class LuzmoAiChat {
|
|
|
321
326
|
}));
|
|
322
327
|
}
|
|
323
328
|
static ɵfac = function LuzmoAiChat_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiChat)(); };
|
|
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) {
|
|
329
|
+
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", interactions: "interactions", 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) {
|
|
325
330
|
i0.ɵɵprojectionDef();
|
|
326
331
|
i0.ɵɵprojection(0);
|
|
327
332
|
} }, encapsulation: 2 });
|
|
@@ -422,6 +427,9 @@ export class LuzmoAiChat {
|
|
|
422
427
|
}], modelPreference: [{
|
|
423
428
|
type: Input,
|
|
424
429
|
args: [{ alias: 'modelPreference' }]
|
|
430
|
+
}], interactions: [{
|
|
431
|
+
type: Input,
|
|
432
|
+
args: [{ alias: 'interactions' }]
|
|
425
433
|
}], chatSession: [{
|
|
426
434
|
type: Input,
|
|
427
435
|
args: [{ alias: 'chatSession' }]
|
|
@@ -2,7 +2,7 @@ import { OnChanges, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import '@luzmo/analytics-components-kit/display-settings-period-over-period';
|
|
3
3
|
import type { LuzmoDisplaySettingsPeriodOverPeriod as LuzmoDisplaySettingsPeriodOverPeriodHostElement, DisplaySettingsSlotContentChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings-period-over-period';
|
|
4
4
|
import type { PeriodOverPeriodCondition } from '@luzmo/analytics-components-kit/types';
|
|
5
|
-
import type { Column } from '@luzmo/dashboard-contents-types';
|
|
5
|
+
import type { Column, VizItemSlot, VizItemType } from '@luzmo/dashboard-contents-types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export type { DisplaySettingsSlotContentChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings-period-over-period';
|
|
8
8
|
export declare class LuzmoDisplaySettingsPeriodOverPeriod implements OnChanges {
|
|
@@ -13,13 +13,19 @@ export declare class LuzmoDisplaySettingsPeriodOverPeriod implements OnChanges {
|
|
|
13
13
|
private readonly listenerCleanup;
|
|
14
14
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
15
|
get nativeElement(): LuzmoDisplaySettingsPeriodOverPeriodHostElement;
|
|
16
|
+
/** Full saved slots for deriving comparison levels and implicit datetime offsets. */
|
|
17
|
+
slotsContents?: VizItemSlot[];
|
|
18
|
+
/** Visualization type used to interpret comparison slot context. */
|
|
19
|
+
itemType?: VizItemType;
|
|
20
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
21
|
+
hasConnectedComparisonFilter?: boolean;
|
|
16
22
|
/** The slotContent that is passed to the settings */
|
|
17
23
|
slotContent?: any;
|
|
18
|
-
/**
|
|
24
|
+
/** Optional UI variant supplied by a parent. When absent, derive it from runtime slot and filter context. */
|
|
19
25
|
periodOverPeriodUiType?: PeriodOverPeriodCondition;
|
|
20
|
-
/** Offer the "Periods" offset when there is no datetime category (an offset date column is needed). The item then shifts by the length of the period selected by its date filters. */
|
|
26
|
+
/** Offer the "Periods" offset when there is no datetime category (an offset date column is needed). The item then shifts by the length of the period selected by its date filters. Defaults to true for KPIs, false otherwise. */
|
|
21
27
|
allowPeriodsWithoutDatetimeColumn?: boolean;
|
|
22
|
-
/** Hide the "Past value" comparison type
|
|
28
|
+
/** Hide the "Past value" comparison type. Defaults to true for KPIs, false otherwise; explicit booleans override the default. */
|
|
23
29
|
hidePastValue?: boolean;
|
|
24
30
|
/** Datetime columns from the linked dataset available as offset/comparison date columns. */
|
|
25
31
|
linkedDatasetDatetimeColumns?: (Column & {
|
|
@@ -42,7 +48,8 @@ export declare class LuzmoDisplaySettingsPeriodOverPeriod implements OnChanges {
|
|
|
42
48
|
private setHostProperty;
|
|
43
49
|
private bindEvents;
|
|
44
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDisplaySettingsPeriodOverPeriod, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDisplaySettingsPeriodOverPeriod, "luzmo-display-settings-period-over-period", ["luzmoDisplaySettingsPeriodOverPeriod"], { "slotContent": { "alias": "slotContent"; "required": false; }; "periodOverPeriodUiType": { "alias": "periodOverPeriodType"; "required": false; }; "allowPeriodsWithoutDatetimeColumn": { "alias": "allowPeriodsWithoutDatetimeColumn"; "required": false; }; "hidePastValue": { "alias": "hidePastValue"; "required": false; }; "linkedDatasetDatetimeColumns": { "alias": "linkedDatasetDatetimeColumns"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentChanged": "luzmoSlotContentChanged"; }, never, ["*"], true, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDisplaySettingsPeriodOverPeriod, "luzmo-display-settings-period-over-period", ["luzmoDisplaySettingsPeriodOverPeriod"], { "slotsContents": { "alias": "slotsContents"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "hasConnectedComparisonFilter": { "alias": "hasConnectedComparisonFilter"; "required": false; }; "slotContent": { "alias": "slotContent"; "required": false; }; "periodOverPeriodUiType": { "alias": "periodOverPeriodType"; "required": false; }; "allowPeriodsWithoutDatetimeColumn": { "alias": "allowPeriodsWithoutDatetimeColumn"; "required": false; }; "hidePastValue": { "alias": "hidePastValue"; "required": false; }; "linkedDatasetDatetimeColumns": { "alias": "linkedDatasetDatetimeColumns"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentChanged": "luzmoSlotContentChanged"; }, never, ["*"], true, never>;
|
|
52
|
+
static ngAcceptInputType_hasConnectedComparisonFilter: unknown;
|
|
46
53
|
static ngAcceptInputType_allowPeriodsWithoutDatetimeColumn: unknown;
|
|
47
54
|
static ngAcceptInputType_hidePastValue: unknown;
|
|
48
55
|
}
|
|
@@ -15,13 +15,19 @@ export class LuzmoDisplaySettingsPeriodOverPeriod {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
+
/** Full saved slots for deriving comparison levels and implicit datetime offsets. */
|
|
19
|
+
slotsContents;
|
|
20
|
+
/** Visualization type used to interpret comparison slot context. */
|
|
21
|
+
itemType;
|
|
22
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
23
|
+
hasConnectedComparisonFilter;
|
|
18
24
|
/** The slotContent that is passed to the settings */
|
|
19
25
|
slotContent;
|
|
20
|
-
/**
|
|
26
|
+
/** Optional UI variant supplied by a parent. When absent, derive it from runtime slot and filter context. */
|
|
21
27
|
periodOverPeriodUiType;
|
|
22
|
-
/** Offer the "Periods" offset when there is no datetime category (an offset date column is needed). The item then shifts by the length of the period selected by its date filters. */
|
|
28
|
+
/** Offer the "Periods" offset when there is no datetime category (an offset date column is needed). The item then shifts by the length of the period selected by its date filters. Defaults to true for KPIs, false otherwise. */
|
|
23
29
|
allowPeriodsWithoutDatetimeColumn;
|
|
24
|
-
/** Hide the "Past value" comparison type
|
|
30
|
+
/** Hide the "Past value" comparison type. Defaults to true for KPIs, false otherwise; explicit booleans override the default. */
|
|
25
31
|
hidePastValue;
|
|
26
32
|
/** Datetime columns from the linked dataset available as offset/comparison date columns. */
|
|
27
33
|
linkedDatasetDatetimeColumns;
|
|
@@ -42,6 +48,15 @@ export class LuzmoDisplaySettingsPeriodOverPeriod {
|
|
|
42
48
|
ngOnChanges(changes) {
|
|
43
49
|
for (const key of Object.keys(changes)) {
|
|
44
50
|
switch (key) {
|
|
51
|
+
case 'slotsContents':
|
|
52
|
+
this.setHostProperty('slotsContents', changes['slotsContents'].currentValue);
|
|
53
|
+
break;
|
|
54
|
+
case 'itemType':
|
|
55
|
+
this.setHostProperty('itemType', changes['itemType'].currentValue);
|
|
56
|
+
break;
|
|
57
|
+
case 'hasConnectedComparisonFilter':
|
|
58
|
+
this.setHostProperty('hasConnectedComparisonFilter', changes['hasConnectedComparisonFilter'].currentValue);
|
|
59
|
+
break;
|
|
45
60
|
case 'slotContent':
|
|
46
61
|
this.setHostProperty('slotContent', changes['slotContent'].currentValue);
|
|
47
62
|
break;
|
|
@@ -84,7 +99,7 @@ export class LuzmoDisplaySettingsPeriodOverPeriod {
|
|
|
84
99
|
}));
|
|
85
100
|
}
|
|
86
101
|
static ɵfac = function LuzmoDisplaySettingsPeriodOverPeriod_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDisplaySettingsPeriodOverPeriod)(); };
|
|
87
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDisplaySettingsPeriodOverPeriod, selectors: [["luzmo-display-settings-period-over-period"]], inputs: { slotContent: "slotContent", periodOverPeriodUiType: [0, "periodOverPeriodType", "periodOverPeriodUiType"], allowPeriodsWithoutDatetimeColumn: [2, "allowPeriodsWithoutDatetimeColumn", "allowPeriodsWithoutDatetimeColumn", booleanAttribute], hidePastValue: [2, "hidePastValue", "hidePastValue", booleanAttribute], linkedDatasetDatetimeColumns: "linkedDatasetDatetimeColumns", language: "language", size: "size" }, outputs: { luzmoSlotContentChanged: "luzmoSlotContentChanged" }, exportAs: ["luzmoDisplaySettingsPeriodOverPeriod"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDisplaySettingsPeriodOverPeriod_Template(rf, ctx) { if (rf & 1) {
|
|
102
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDisplaySettingsPeriodOverPeriod, selectors: [["luzmo-display-settings-period-over-period"]], inputs: { slotsContents: "slotsContents", itemType: "itemType", hasConnectedComparisonFilter: [2, "hasConnectedComparisonFilter", "hasConnectedComparisonFilter", booleanAttribute], slotContent: "slotContent", periodOverPeriodUiType: [0, "periodOverPeriodType", "periodOverPeriodUiType"], allowPeriodsWithoutDatetimeColumn: [2, "allowPeriodsWithoutDatetimeColumn", "allowPeriodsWithoutDatetimeColumn", booleanAttribute], hidePastValue: [2, "hidePastValue", "hidePastValue", booleanAttribute], linkedDatasetDatetimeColumns: "linkedDatasetDatetimeColumns", language: "language", size: "size" }, outputs: { luzmoSlotContentChanged: "luzmoSlotContentChanged" }, exportAs: ["luzmoDisplaySettingsPeriodOverPeriod"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDisplaySettingsPeriodOverPeriod_Template(rf, ctx) { if (rf & 1) {
|
|
88
103
|
i0.ɵɵprojectionDef();
|
|
89
104
|
i0.ɵɵprojection(0);
|
|
90
105
|
} }, encapsulation: 2 });
|
|
@@ -98,7 +113,16 @@ export class LuzmoDisplaySettingsPeriodOverPeriod {
|
|
|
98
113
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
99
114
|
template: '<ng-content />'
|
|
100
115
|
}]
|
|
101
|
-
}], () => [], {
|
|
116
|
+
}], () => [], { slotsContents: [{
|
|
117
|
+
type: Input,
|
|
118
|
+
args: [{ alias: 'slotsContents' }]
|
|
119
|
+
}], itemType: [{
|
|
120
|
+
type: Input,
|
|
121
|
+
args: [{ alias: 'itemType' }]
|
|
122
|
+
}], hasConnectedComparisonFilter: [{
|
|
123
|
+
type: Input,
|
|
124
|
+
args: [{ alias: 'hasConnectedComparisonFilter', transform: booleanAttribute }]
|
|
125
|
+
}], slotContent: [{
|
|
102
126
|
type: Input,
|
|
103
127
|
args: [{ alias: 'slotContent' }]
|
|
104
128
|
}], periodOverPeriodUiType: [{
|
|
@@ -4,7 +4,7 @@ import type { LuzmoDisplaySettings as LuzmoDisplaySettingsHostElement, DisplaySe
|
|
|
4
4
|
import type { DatasetDataFields } from '@luzmo/analytics-components-kit/data-field-panel';
|
|
5
5
|
import type { MeasureColumnsItem } from '@luzmo/analytics-components-kit/slot-menu';
|
|
6
6
|
import type { PeriodOverPeriodCondition, SlotContent } from '@luzmo/analytics-components-kit/types';
|
|
7
|
-
import type { SlotName } from '@luzmo/dashboard-contents-types';
|
|
7
|
+
import type { SlotName, VizItemSlot, VizItemType } from '@luzmo/dashboard-contents-types';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export type { DisplaySettingsRemoveSlotContentEventDetail, DisplaySettingsSlotContentChangedEventDetail, InfoVisibilityChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings';
|
|
10
10
|
export declare class LuzmoDisplaySettings implements OnChanges {
|
|
@@ -15,6 +15,12 @@ export declare class LuzmoDisplaySettings implements OnChanges {
|
|
|
15
15
|
private readonly listenerCleanup;
|
|
16
16
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
17
17
|
get nativeElement(): LuzmoDisplaySettingsHostElement;
|
|
18
|
+
/** Full saved slots for deriving comparison levels and implicit datetime offsets. */
|
|
19
|
+
slotsContents?: VizItemSlot[];
|
|
20
|
+
/** Visualization type used to interpret comparison slot context. */
|
|
21
|
+
itemType?: VizItemType;
|
|
22
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
23
|
+
hasConnectedComparisonFilter?: boolean;
|
|
18
24
|
/** The language of the settings interface */
|
|
19
25
|
language?: string;
|
|
20
26
|
/** The language to use for locale-aware formatting and labels */
|
|
@@ -31,7 +37,7 @@ export declare class LuzmoDisplaySettings implements OnChanges {
|
|
|
31
37
|
isAggregationDisabled?: boolean;
|
|
32
38
|
/** Whether to show the cumulative sum options */
|
|
33
39
|
isCumulativeSumEnabled?: boolean;
|
|
34
|
-
/**
|
|
40
|
+
/** Optional comparison UI override for standalone use; null hides comparisons. Otherwise derived from slotsContents, itemType, filters, and datasetsDataFields. */
|
|
35
41
|
periodOverPeriodUiType?: PeriodOverPeriodCondition | null;
|
|
36
42
|
/** Whether to show the trash button next to the label */
|
|
37
43
|
showRemoveButton?: boolean;
|
|
@@ -41,7 +47,7 @@ export declare class LuzmoDisplaySettings implements OnChanges {
|
|
|
41
47
|
slotName?: SlotName;
|
|
42
48
|
/** The slot content model (label, formatting, aggregation, etc.) for the field being configured. */
|
|
43
49
|
slotContent?: SlotContent;
|
|
44
|
-
/** Datasets used
|
|
50
|
+
/** Datasets used for calculation previews and standalone comparison offset date choices (columns or dataFields). */
|
|
45
51
|
datasetsDataFields?: DatasetDataFields[];
|
|
46
52
|
/** The API URL used when resolving calculation previews by dataset id. */
|
|
47
53
|
apiUrl?: string;
|
|
@@ -70,7 +76,8 @@ export declare class LuzmoDisplaySettings implements OnChanges {
|
|
|
70
76
|
private setHostProperty;
|
|
71
77
|
private bindEvents;
|
|
72
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDisplaySettings, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDisplaySettings, "luzmo-display-settings", ["luzmoDisplaySettings"], { "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "hideDisplaySettings": { "alias": "hideDisplaySettings"; "required": false; }; "isBinningDisabled": { "alias": "isBinningDisabled"; "required": false; }; "areDatetimeOptionsEnabled": { "alias": "areDatetimeOptionsEnabled"; "required": false; }; "areGrandTotalsEnabled": { "alias": "areGrandTotalsEnabled"; "required": false; }; "isAggregationDisabled": { "alias": "isAggregationDisabled"; "required": false; }; "isCumulativeSumEnabled": { "alias": "isCumulativeSumEnabled"; "required": false; }; "periodOverPeriodUiType": { "alias": "periodOverPeriodUiType"; "required": false; }; "showRemoveButton": { "alias": "showRemoveButton"; "required": false; }; "slotType": { "alias": "slotType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotContent": { "alias": "slotContent"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "measureColumns": { "alias": "measureColumns"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentChanged": "luzmoSlotContentChanged"; "luzmoRemoveSlotContent": "luzmoRemoveSlotContent"; "luzmoInfoVisibilityChanged": "luzmoInfoVisibilityChanged"; }, never, ["*"], true, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDisplaySettings, "luzmo-display-settings", ["luzmoDisplaySettings"], { "slotsContents": { "alias": "slotsContents"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "hasConnectedComparisonFilter": { "alias": "hasConnectedComparisonFilter"; "required": false; }; "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "hideDisplaySettings": { "alias": "hideDisplaySettings"; "required": false; }; "isBinningDisabled": { "alias": "isBinningDisabled"; "required": false; }; "areDatetimeOptionsEnabled": { "alias": "areDatetimeOptionsEnabled"; "required": false; }; "areGrandTotalsEnabled": { "alias": "areGrandTotalsEnabled"; "required": false; }; "isAggregationDisabled": { "alias": "isAggregationDisabled"; "required": false; }; "isCumulativeSumEnabled": { "alias": "isCumulativeSumEnabled"; "required": false; }; "periodOverPeriodUiType": { "alias": "periodOverPeriodUiType"; "required": false; }; "showRemoveButton": { "alias": "showRemoveButton"; "required": false; }; "slotType": { "alias": "slotType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotContent": { "alias": "slotContent"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "measureColumns": { "alias": "measureColumns"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentChanged": "luzmoSlotContentChanged"; "luzmoRemoveSlotContent": "luzmoRemoveSlotContent"; "luzmoInfoVisibilityChanged": "luzmoInfoVisibilityChanged"; }, never, ["*"], true, never>;
|
|
80
|
+
static ngAcceptInputType_hasConnectedComparisonFilter: unknown;
|
|
74
81
|
static ngAcceptInputType_hideDisplaySettings: unknown;
|
|
75
82
|
static ngAcceptInputType_isBinningDisabled: unknown;
|
|
76
83
|
static ngAcceptInputType_areDatetimeOptionsEnabled: unknown;
|
|
@@ -15,6 +15,12 @@ export class LuzmoDisplaySettings {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
+
/** Full saved slots for deriving comparison levels and implicit datetime offsets. */
|
|
19
|
+
slotsContents;
|
|
20
|
+
/** Visualization type used to interpret comparison slot context. */
|
|
21
|
+
itemType;
|
|
22
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
23
|
+
hasConnectedComparisonFilter;
|
|
18
24
|
/** The language of the settings interface */
|
|
19
25
|
language;
|
|
20
26
|
/** The language to use for locale-aware formatting and labels */
|
|
@@ -31,7 +37,7 @@ export class LuzmoDisplaySettings {
|
|
|
31
37
|
isAggregationDisabled;
|
|
32
38
|
/** Whether to show the cumulative sum options */
|
|
33
39
|
isCumulativeSumEnabled;
|
|
34
|
-
/**
|
|
40
|
+
/** Optional comparison UI override for standalone use; null hides comparisons. Otherwise derived from slotsContents, itemType, filters, and datasetsDataFields. */
|
|
35
41
|
periodOverPeriodUiType;
|
|
36
42
|
/** Whether to show the trash button next to the label */
|
|
37
43
|
showRemoveButton;
|
|
@@ -41,7 +47,7 @@ export class LuzmoDisplaySettings {
|
|
|
41
47
|
slotName;
|
|
42
48
|
/** The slot content model (label, formatting, aggregation, etc.) for the field being configured. */
|
|
43
49
|
slotContent;
|
|
44
|
-
/** Datasets used
|
|
50
|
+
/** Datasets used for calculation previews and standalone comparison offset date choices (columns or dataFields). */
|
|
45
51
|
datasetsDataFields;
|
|
46
52
|
/** The API URL used when resolving calculation previews by dataset id. */
|
|
47
53
|
apiUrl;
|
|
@@ -70,6 +76,15 @@ export class LuzmoDisplaySettings {
|
|
|
70
76
|
ngOnChanges(changes) {
|
|
71
77
|
for (const key of Object.keys(changes)) {
|
|
72
78
|
switch (key) {
|
|
79
|
+
case 'slotsContents':
|
|
80
|
+
this.setHostProperty('slotsContents', changes['slotsContents'].currentValue);
|
|
81
|
+
break;
|
|
82
|
+
case 'itemType':
|
|
83
|
+
this.setHostProperty('itemType', changes['itemType'].currentValue);
|
|
84
|
+
break;
|
|
85
|
+
case 'hasConnectedComparisonFilter':
|
|
86
|
+
this.setHostProperty('hasConnectedComparisonFilter', changes['hasConnectedComparisonFilter'].currentValue);
|
|
87
|
+
break;
|
|
73
88
|
case 'language':
|
|
74
89
|
this.setHostProperty('language', changes['language'].currentValue);
|
|
75
90
|
break;
|
|
@@ -156,7 +171,7 @@ export class LuzmoDisplaySettings {
|
|
|
156
171
|
}));
|
|
157
172
|
}
|
|
158
173
|
static ɵfac = function LuzmoDisplaySettings_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDisplaySettings)(); };
|
|
159
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDisplaySettings, selectors: [["luzmo-display-settings"]], inputs: { language: "language", contentLanguage: "contentLanguage", hideDisplaySettings: [2, "hideDisplaySettings", "hideDisplaySettings", booleanAttribute], isBinningDisabled: [2, "isBinningDisabled", "isBinningDisabled", booleanAttribute], areDatetimeOptionsEnabled: [2, "areDatetimeOptionsEnabled", "areDatetimeOptionsEnabled", booleanAttribute], areGrandTotalsEnabled: [2, "areGrandTotalsEnabled", "areGrandTotalsEnabled", booleanAttribute], isAggregationDisabled: [2, "isAggregationDisabled", "isAggregationDisabled", booleanAttribute], isCumulativeSumEnabled: [2, "isCumulativeSumEnabled", "isCumulativeSumEnabled", booleanAttribute], periodOverPeriodUiType: "periodOverPeriodUiType", showRemoveButton: [2, "showRemoveButton", "showRemoveButton", booleanAttribute], slotType: "slotType", slotName: "slotName", slotContent: "slotContent", datasetsDataFields: "datasetsDataFields", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", measureColumns: "measureColumns", size: "size" }, outputs: { luzmoSlotContentChanged: "luzmoSlotContentChanged", luzmoRemoveSlotContent: "luzmoRemoveSlotContent", luzmoInfoVisibilityChanged: "luzmoInfoVisibilityChanged" }, exportAs: ["luzmoDisplaySettings"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDisplaySettings_Template(rf, ctx) { if (rf & 1) {
|
|
174
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDisplaySettings, selectors: [["luzmo-display-settings"]], inputs: { slotsContents: "slotsContents", itemType: "itemType", hasConnectedComparisonFilter: [2, "hasConnectedComparisonFilter", "hasConnectedComparisonFilter", booleanAttribute], language: "language", contentLanguage: "contentLanguage", hideDisplaySettings: [2, "hideDisplaySettings", "hideDisplaySettings", booleanAttribute], isBinningDisabled: [2, "isBinningDisabled", "isBinningDisabled", booleanAttribute], areDatetimeOptionsEnabled: [2, "areDatetimeOptionsEnabled", "areDatetimeOptionsEnabled", booleanAttribute], areGrandTotalsEnabled: [2, "areGrandTotalsEnabled", "areGrandTotalsEnabled", booleanAttribute], isAggregationDisabled: [2, "isAggregationDisabled", "isAggregationDisabled", booleanAttribute], isCumulativeSumEnabled: [2, "isCumulativeSumEnabled", "isCumulativeSumEnabled", booleanAttribute], periodOverPeriodUiType: "periodOverPeriodUiType", showRemoveButton: [2, "showRemoveButton", "showRemoveButton", booleanAttribute], slotType: "slotType", slotName: "slotName", slotContent: "slotContent", datasetsDataFields: "datasetsDataFields", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", measureColumns: "measureColumns", size: "size" }, outputs: { luzmoSlotContentChanged: "luzmoSlotContentChanged", luzmoRemoveSlotContent: "luzmoRemoveSlotContent", luzmoInfoVisibilityChanged: "luzmoInfoVisibilityChanged" }, exportAs: ["luzmoDisplaySettings"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDisplaySettings_Template(rf, ctx) { if (rf & 1) {
|
|
160
175
|
i0.ɵɵprojectionDef();
|
|
161
176
|
i0.ɵɵprojection(0);
|
|
162
177
|
} }, encapsulation: 2 });
|
|
@@ -170,7 +185,16 @@ export class LuzmoDisplaySettings {
|
|
|
170
185
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
171
186
|
template: '<ng-content />'
|
|
172
187
|
}]
|
|
173
|
-
}], () => [], {
|
|
188
|
+
}], () => [], { slotsContents: [{
|
|
189
|
+
type: Input,
|
|
190
|
+
args: [{ alias: 'slotsContents' }]
|
|
191
|
+
}], itemType: [{
|
|
192
|
+
type: Input,
|
|
193
|
+
args: [{ alias: 'itemType' }]
|
|
194
|
+
}], hasConnectedComparisonFilter: [{
|
|
195
|
+
type: Input,
|
|
196
|
+
args: [{ alias: 'hasConnectedComparisonFilter', transform: booleanAttribute }]
|
|
197
|
+
}], language: [{
|
|
174
198
|
type: Input,
|
|
175
199
|
args: [{ alias: 'language' }]
|
|
176
200
|
}], contentLanguage: [{
|
|
@@ -13,6 +13,8 @@ export declare class LuzmoItemSlotDropPanel implements OnChanges {
|
|
|
13
13
|
private readonly listenerCleanup;
|
|
14
14
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
15
|
get nativeElement(): LuzmoItemSlotDropPanelHostElement;
|
|
16
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
17
|
+
hasConnectedComparisonFilter?: boolean;
|
|
16
18
|
/** The type of the item (e.g., 'bar-chart', 'line-chart', 'area-chart') */
|
|
17
19
|
itemType?: VizItemType | string;
|
|
18
20
|
/** The language to use for locale-aware formatting and labels */
|
|
@@ -72,7 +74,8 @@ export declare class LuzmoItemSlotDropPanel implements OnChanges {
|
|
|
72
74
|
private setHostProperty;
|
|
73
75
|
private bindEvents;
|
|
74
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemSlotDropPanel, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotDropPanel, "luzmo-item-slot-drop-panel", ["luzmoItemSlotDropPanel"], { "itemType": { "alias": "itemType"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotsConfiguration": { "alias": "slotsConfiguration"; "required": false; }; "positioningConfiguration": { "alias": "positioningConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "positioned": { "alias": "positioned"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "slotMenuPlacement": { "alias": "slotMenuPlacement"; "required": false; }; "hideDelete": { "alias": "hideDelete"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "constraintMode": { "alias": "constraintMode"; "required": false; }; "slotMenuMode": { "alias": "slotMenuMode"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "slotspanel": { "alias": "slotsPanel"; "required": false; }; "slotsgrid": { "alias": "slotsGrid"; "required": false; }; "slotcell": { "alias": "slotCell"; "required": false; }; "itemslotdrop": { "alias": "itemSlotDrop"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotConstraintTriggered": "luzmoSlotConstraintTriggered"; "luzmoSlotsContentsChanged": "luzmoSlotsContentsChanged"; }, never, ["*"], true, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotDropPanel, "luzmo-item-slot-drop-panel", ["luzmoItemSlotDropPanel"], { "hasConnectedComparisonFilter": { "alias": "hasConnectedComparisonFilter"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotsConfiguration": { "alias": "slotsConfiguration"; "required": false; }; "positioningConfiguration": { "alias": "positioningConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "positioned": { "alias": "positioned"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "slotMenuPlacement": { "alias": "slotMenuPlacement"; "required": false; }; "hideDelete": { "alias": "hideDelete"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "constraintMode": { "alias": "constraintMode"; "required": false; }; "slotMenuMode": { "alias": "slotMenuMode"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "slotspanel": { "alias": "slotsPanel"; "required": false; }; "slotsgrid": { "alias": "slotsGrid"; "required": false; }; "slotcell": { "alias": "slotCell"; "required": false; }; "itemslotdrop": { "alias": "itemSlotDrop"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotConstraintTriggered": "luzmoSlotConstraintTriggered"; "luzmoSlotsContentsChanged": "luzmoSlotsContentsChanged"; }, never, ["*"], true, never>;
|
|
78
|
+
static ngAcceptInputType_hasConnectedComparisonFilter: unknown;
|
|
76
79
|
static ngAcceptInputType_positioned: unknown;
|
|
77
80
|
static ngAcceptInputType_hideDelete: unknown;
|
|
78
81
|
static ngAcceptInputType_hideConfiguration: unknown;
|
|
@@ -15,6 +15,8 @@ export class LuzmoItemSlotDropPanel {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
19
|
+
hasConnectedComparisonFilter;
|
|
18
20
|
/** The type of the item (e.g., 'bar-chart', 'line-chart', 'area-chart') */
|
|
19
21
|
itemType;
|
|
20
22
|
/** The language to use for locale-aware formatting and labels */
|
|
@@ -74,6 +76,9 @@ export class LuzmoItemSlotDropPanel {
|
|
|
74
76
|
ngOnChanges(changes) {
|
|
75
77
|
for (const key of Object.keys(changes)) {
|
|
76
78
|
switch (key) {
|
|
79
|
+
case 'hasConnectedComparisonFilter':
|
|
80
|
+
this.setHostProperty('hasConnectedComparisonFilter', changes['hasConnectedComparisonFilter'].currentValue);
|
|
81
|
+
break;
|
|
77
82
|
case 'itemType':
|
|
78
83
|
this.setHostProperty('itemType', changes['itemType'].currentValue);
|
|
79
84
|
break;
|
|
@@ -165,7 +170,7 @@ export class LuzmoItemSlotDropPanel {
|
|
|
165
170
|
}));
|
|
166
171
|
}
|
|
167
172
|
static ɵfac = function LuzmoItemSlotDropPanel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemSlotDropPanel)(); };
|
|
168
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotDropPanel, selectors: [["luzmo-item-slot-drop-panel"]], inputs: { itemType: "itemType", contentLanguage: "contentLanguage", slotsConfiguration: "slotsConfiguration", positioningConfiguration: "positioningConfiguration", slotsContents: "slotsContents", positioned: [2, "positioned", "positioned", booleanAttribute], dragBoundary: "dragBoundary", slotMenuPlacement: "slotMenuPlacement", hideDelete: [2, "hideDelete", "hideDelete", booleanAttribute], hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], grows: [2, "grows", "grows", booleanAttribute], constraintMode: "constraintMode", slotMenuMode: "slotMenuMode", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", slotspanel: [0, "slotsPanel", "slotspanel"], slotsgrid: [0, "slotsGrid", "slotsgrid"], slotcell: [0, "slotCell", "slotcell"], itemslotdrop: [0, "itemSlotDrop", "itemslotdrop"], language: "language", size: "size" }, outputs: { luzmoSlotConstraintTriggered: "luzmoSlotConstraintTriggered", luzmoSlotsContentsChanged: "luzmoSlotsContentsChanged" }, exportAs: ["luzmoItemSlotDropPanel"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotDropPanel_Template(rf, ctx) { if (rf & 1) {
|
|
173
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotDropPanel, selectors: [["luzmo-item-slot-drop-panel"]], inputs: { hasConnectedComparisonFilter: [2, "hasConnectedComparisonFilter", "hasConnectedComparisonFilter", booleanAttribute], itemType: "itemType", contentLanguage: "contentLanguage", slotsConfiguration: "slotsConfiguration", positioningConfiguration: "positioningConfiguration", slotsContents: "slotsContents", positioned: [2, "positioned", "positioned", booleanAttribute], dragBoundary: "dragBoundary", slotMenuPlacement: "slotMenuPlacement", hideDelete: [2, "hideDelete", "hideDelete", booleanAttribute], hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], grows: [2, "grows", "grows", booleanAttribute], constraintMode: "constraintMode", slotMenuMode: "slotMenuMode", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", slotspanel: [0, "slotsPanel", "slotspanel"], slotsgrid: [0, "slotsGrid", "slotsgrid"], slotcell: [0, "slotCell", "slotcell"], itemslotdrop: [0, "itemSlotDrop", "itemslotdrop"], language: "language", size: "size" }, outputs: { luzmoSlotConstraintTriggered: "luzmoSlotConstraintTriggered", luzmoSlotsContentsChanged: "luzmoSlotsContentsChanged" }, exportAs: ["luzmoItemSlotDropPanel"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotDropPanel_Template(rf, ctx) { if (rf & 1) {
|
|
169
174
|
i0.ɵɵprojectionDef();
|
|
170
175
|
i0.ɵɵprojection(0);
|
|
171
176
|
} }, encapsulation: 2 });
|
|
@@ -179,7 +184,10 @@ export class LuzmoItemSlotDropPanel {
|
|
|
179
184
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
180
185
|
template: '<ng-content />'
|
|
181
186
|
}]
|
|
182
|
-
}], () => [], {
|
|
187
|
+
}], () => [], { hasConnectedComparisonFilter: [{
|
|
188
|
+
type: Input,
|
|
189
|
+
args: [{ alias: 'hasConnectedComparisonFilter', transform: booleanAttribute }]
|
|
190
|
+
}], itemType: [{
|
|
183
191
|
type: Input,
|
|
184
192
|
args: [{ alias: 'itemType' }]
|
|
185
193
|
}], contentLanguage: [{
|
|
@@ -13,6 +13,8 @@ export declare class LuzmoItemSlotDrop implements OnChanges {
|
|
|
13
13
|
private readonly listenerCleanup;
|
|
14
14
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
15
|
get nativeElement(): LuzmoItemSlotDropHostElement;
|
|
16
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
17
|
+
hasConnectedComparisonFilter?: boolean;
|
|
16
18
|
/** The visualization item type that determines the available slots and their configuration. */
|
|
17
19
|
itemType?: VizItemType;
|
|
18
20
|
/** The name of the slot this drop target represents. */
|
|
@@ -68,7 +70,8 @@ export declare class LuzmoItemSlotDrop implements OnChanges {
|
|
|
68
70
|
private setHostProperty;
|
|
69
71
|
private bindEvents;
|
|
70
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemSlotDrop, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotDrop, "luzmo-item-slot-drop", ["luzmoItemSlotDrop"], { "itemType": { "alias": "itemType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotConfiguration": { "alias": "slotConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "label": { "alias": "label"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "hideDelete": { "alias": "hideDelete"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotMenuInactive": "luzmoSlotMenuInactive"; "luzmoSlotMenuActive": "luzmoSlotMenuActive"; "luzmoSlotMenuHighlight": "luzmoSlotMenuHighlight"; "luzmoInfoVisibilityChanged": "luzmoInfoVisibilityChanged"; "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; }, never, ["*"], true, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotDrop, "luzmo-item-slot-drop", ["luzmoItemSlotDrop"], { "hasConnectedComparisonFilter": { "alias": "hasConnectedComparisonFilter"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotConfiguration": { "alias": "slotConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "label": { "alias": "label"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "hideDelete": { "alias": "hideDelete"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotMenuInactive": "luzmoSlotMenuInactive"; "luzmoSlotMenuActive": "luzmoSlotMenuActive"; "luzmoSlotMenuHighlight": "luzmoSlotMenuHighlight"; "luzmoInfoVisibilityChanged": "luzmoInfoVisibilityChanged"; "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; }, never, ["*"], true, never>;
|
|
74
|
+
static ngAcceptInputType_hasConnectedComparisonFilter: unknown;
|
|
72
75
|
static ngAcceptInputType_rotate: unknown;
|
|
73
76
|
static ngAcceptInputType_hideDelete: unknown;
|
|
74
77
|
static ngAcceptInputType_hideConfiguration: unknown;
|
|
@@ -15,6 +15,8 @@ export class LuzmoItemSlotDrop {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
19
|
+
hasConnectedComparisonFilter;
|
|
18
20
|
/** The visualization item type that determines the available slots and their configuration. */
|
|
19
21
|
itemType;
|
|
20
22
|
/** The name of the slot this drop target represents. */
|
|
@@ -70,6 +72,9 @@ export class LuzmoItemSlotDrop {
|
|
|
70
72
|
ngOnChanges(changes) {
|
|
71
73
|
for (const key of Object.keys(changes)) {
|
|
72
74
|
switch (key) {
|
|
75
|
+
case 'hasConnectedComparisonFilter':
|
|
76
|
+
this.setHostProperty('hasConnectedComparisonFilter', changes['hasConnectedComparisonFilter'].currentValue);
|
|
77
|
+
break;
|
|
73
78
|
case 'itemType':
|
|
74
79
|
this.setHostProperty('itemType', changes['itemType'].currentValue);
|
|
75
80
|
break;
|
|
@@ -158,7 +163,7 @@ export class LuzmoItemSlotDrop {
|
|
|
158
163
|
}));
|
|
159
164
|
}
|
|
160
165
|
static ɵfac = function LuzmoItemSlotDrop_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemSlotDrop)(); };
|
|
161
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotDrop, selectors: [["luzmo-item-slot-drop"]], inputs: { itemType: "itemType", slotName: "slotName", slotConfiguration: "slotConfiguration", slotsContents: "slotsContents", label: "label", contentLanguage: "contentLanguage", dragBoundary: "dragBoundary", rotate: [2, "rotate", "rotate", booleanAttribute], apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", menu: "menu", placement: "placement", hideDelete: [2, "hideDelete", "hideDelete", booleanAttribute], hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], language: "language", size: "size" }, outputs: { luzmoSlotMenuInactive: "luzmoSlotMenuInactive", luzmoSlotMenuActive: "luzmoSlotMenuActive", luzmoSlotMenuHighlight: "luzmoSlotMenuHighlight", luzmoInfoVisibilityChanged: "luzmoInfoVisibilityChanged", luzmoSlotContentsChanged: "luzmoSlotContentsChanged" }, exportAs: ["luzmoItemSlotDrop"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotDrop_Template(rf, ctx) { if (rf & 1) {
|
|
166
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotDrop, selectors: [["luzmo-item-slot-drop"]], inputs: { hasConnectedComparisonFilter: [2, "hasConnectedComparisonFilter", "hasConnectedComparisonFilter", booleanAttribute], itemType: "itemType", slotName: "slotName", slotConfiguration: "slotConfiguration", slotsContents: "slotsContents", label: "label", contentLanguage: "contentLanguage", dragBoundary: "dragBoundary", rotate: [2, "rotate", "rotate", booleanAttribute], apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", menu: "menu", placement: "placement", hideDelete: [2, "hideDelete", "hideDelete", booleanAttribute], hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], language: "language", size: "size" }, outputs: { luzmoSlotMenuInactive: "luzmoSlotMenuInactive", luzmoSlotMenuActive: "luzmoSlotMenuActive", luzmoSlotMenuHighlight: "luzmoSlotMenuHighlight", luzmoInfoVisibilityChanged: "luzmoInfoVisibilityChanged", luzmoSlotContentsChanged: "luzmoSlotContentsChanged" }, exportAs: ["luzmoItemSlotDrop"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotDrop_Template(rf, ctx) { if (rf & 1) {
|
|
162
167
|
i0.ɵɵprojectionDef();
|
|
163
168
|
i0.ɵɵprojection(0);
|
|
164
169
|
} }, encapsulation: 2 });
|
|
@@ -172,7 +177,10 @@ export class LuzmoItemSlotDrop {
|
|
|
172
177
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
173
178
|
template: '<ng-content />'
|
|
174
179
|
}]
|
|
175
|
-
}], () => [], {
|
|
180
|
+
}], () => [], { hasConnectedComparisonFilter: [{
|
|
181
|
+
type: Input,
|
|
182
|
+
args: [{ alias: 'hasConnectedComparisonFilter', transform: booleanAttribute }]
|
|
183
|
+
}], itemType: [{
|
|
176
184
|
type: Input,
|
|
177
185
|
args: [{ alias: 'itemType' }]
|
|
178
186
|
}], slotName: [{
|
|
@@ -14,6 +14,8 @@ export declare class LuzmoItemSlotPickerPanel implements OnChanges {
|
|
|
14
14
|
private readonly listenerCleanup;
|
|
15
15
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
16
16
|
get nativeElement(): LuzmoItemSlotPickerPanelHostElement;
|
|
17
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
18
|
+
hasConnectedComparisonFilter?: boolean;
|
|
17
19
|
/** The type of the item (e.g., 'bar-chart', 'line-chart', 'area-chart') */
|
|
18
20
|
itemType?: VizItemType | string;
|
|
19
21
|
/** The language to use for locale-aware formatting and labels */
|
|
@@ -91,7 +93,8 @@ export declare class LuzmoItemSlotPickerPanel implements OnChanges {
|
|
|
91
93
|
private setHostProperty;
|
|
92
94
|
private bindEvents;
|
|
93
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemSlotPickerPanel, 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>;
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotPickerPanel, "luzmo-item-slot-picker-panel", ["luzmoItemSlotPickerPanel"], { "hasConnectedComparisonFilter": { "alias": "hasConnectedComparisonFilter"; "required": false; }; "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>;
|
|
97
|
+
static ngAcceptInputType_hasConnectedComparisonFilter: unknown;
|
|
95
98
|
static ngAcceptInputType_datasetPicker: unknown;
|
|
96
99
|
static ngAcceptInputType_grows: unknown;
|
|
97
100
|
}
|
|
@@ -15,6 +15,8 @@ export class LuzmoItemSlotPickerPanel {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
19
|
+
hasConnectedComparisonFilter;
|
|
18
20
|
/** The type of the item (e.g., 'bar-chart', 'line-chart', 'area-chart') */
|
|
19
21
|
itemType;
|
|
20
22
|
/** The language to use for locale-aware formatting and labels */
|
|
@@ -92,6 +94,9 @@ export class LuzmoItemSlotPickerPanel {
|
|
|
92
94
|
ngOnChanges(changes) {
|
|
93
95
|
for (const key of Object.keys(changes)) {
|
|
94
96
|
switch (key) {
|
|
97
|
+
case 'hasConnectedComparisonFilter':
|
|
98
|
+
this.setHostProperty('hasConnectedComparisonFilter', changes['hasConnectedComparisonFilter'].currentValue);
|
|
99
|
+
break;
|
|
95
100
|
case 'itemType':
|
|
96
101
|
this.setHostProperty('itemType', changes['itemType'].currentValue);
|
|
97
102
|
break;
|
|
@@ -212,7 +217,7 @@ export class LuzmoItemSlotPickerPanel {
|
|
|
212
217
|
}));
|
|
213
218
|
}
|
|
214
219
|
static ɵfac = function LuzmoItemSlotPickerPanel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemSlotPickerPanel)(); };
|
|
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) {
|
|
220
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotPickerPanel, selectors: [["luzmo-item-slot-picker-panel"]], inputs: { hasConnectedComparisonFilter: [2, "hasConnectedComparisonFilter", "hasConnectedComparisonFilter", booleanAttribute], 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) {
|
|
216
221
|
i0.ɵɵprojectionDef();
|
|
217
222
|
i0.ɵɵprojection(0);
|
|
218
223
|
} }, encapsulation: 2 });
|
|
@@ -226,7 +231,10 @@ export class LuzmoItemSlotPickerPanel {
|
|
|
226
231
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
227
232
|
template: '<ng-content />'
|
|
228
233
|
}]
|
|
229
|
-
}], () => [], {
|
|
234
|
+
}], () => [], { hasConnectedComparisonFilter: [{
|
|
235
|
+
type: Input,
|
|
236
|
+
args: [{ alias: 'hasConnectedComparisonFilter', transform: booleanAttribute }]
|
|
237
|
+
}], itemType: [{
|
|
230
238
|
type: Input,
|
|
231
239
|
args: [{ alias: 'itemType' }]
|
|
232
240
|
}], contentLanguage: [{
|
|
@@ -3,7 +3,7 @@ import '@luzmo/analytics-components-kit/item-slot-picker';
|
|
|
3
3
|
import type { LuzmoItemSlotPicker as LuzmoItemSlotPickerHostElement, SlotContentsChangedEventDetail } from '@luzmo/analytics-components-kit/item-slot-picker';
|
|
4
4
|
import type { Placement } from '@floating-ui/dom';
|
|
5
5
|
import type { DatasetsDataFields, SlotContent } from '@luzmo/analytics-components-kit/types';
|
|
6
|
-
import type { SlotConfig, SlotName, VizItemType } from '@luzmo/dashboard-contents-types';
|
|
6
|
+
import type { SlotConfig, SlotName, VizItemSlot, VizItemType } from '@luzmo/dashboard-contents-types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export type { SlotContentsChangedEventDetail } from '@luzmo/analytics-components-kit/item-slot-picker';
|
|
9
9
|
export declare class LuzmoItemSlotPicker implements OnChanges {
|
|
@@ -14,6 +14,10 @@ export declare class LuzmoItemSlotPicker implements OnChanges {
|
|
|
14
14
|
private readonly listenerCleanup;
|
|
15
15
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
16
16
|
get nativeElement(): LuzmoItemSlotPickerHostElement;
|
|
17
|
+
/** Full saved slots for deriving comparison levels and implicit datetime offsets. */
|
|
18
|
+
slotsContents?: VizItemSlot[];
|
|
19
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
20
|
+
hasConnectedComparisonFilter?: boolean;
|
|
17
21
|
/** The API URL for the databroker */
|
|
18
22
|
apiUrl?: string;
|
|
19
23
|
/** The API key to fetch the columns */
|
|
@@ -77,7 +81,8 @@ export declare class LuzmoItemSlotPicker implements OnChanges {
|
|
|
77
81
|
private setHostProperty;
|
|
78
82
|
private bindEvents;
|
|
79
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemSlotPicker, 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; }; "search": { "alias": "search"; "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; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; }, never, ["*"], true, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotPicker, "luzmo-item-slot-picker", ["luzmoItemSlotPicker"], { "slotsContents": { "alias": "slotsContents"; "required": false; }; "hasConnectedComparisonFilter": { "alias": "hasConnectedComparisonFilter"; "required": false; }; "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; }; "search": { "alias": "search"; "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; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; }, never, ["*"], true, never>;
|
|
85
|
+
static ngAcceptInputType_hasConnectedComparisonFilter: unknown;
|
|
81
86
|
static ngAcceptInputType_disabled: unknown;
|
|
82
87
|
static ngAcceptInputType_grows: unknown;
|
|
83
88
|
static ngAcceptInputType_hasLabel: unknown;
|
|
@@ -15,6 +15,10 @@ export class LuzmoItemSlotPicker {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
+
/** Full saved slots for deriving comparison levels and implicit datetime offsets. */
|
|
19
|
+
slotsContents;
|
|
20
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
21
|
+
hasConnectedComparisonFilter;
|
|
18
22
|
/** The API URL for the databroker */
|
|
19
23
|
apiUrl;
|
|
20
24
|
/** The API key to fetch the columns */
|
|
@@ -78,6 +82,12 @@ export class LuzmoItemSlotPicker {
|
|
|
78
82
|
ngOnChanges(changes) {
|
|
79
83
|
for (const key of Object.keys(changes)) {
|
|
80
84
|
switch (key) {
|
|
85
|
+
case 'slotsContents':
|
|
86
|
+
this.setHostProperty('slotsContents', changes['slotsContents'].currentValue);
|
|
87
|
+
break;
|
|
88
|
+
case 'hasConnectedComparisonFilter':
|
|
89
|
+
this.setHostProperty('hasConnectedComparisonFilter', changes['hasConnectedComparisonFilter'].currentValue);
|
|
90
|
+
break;
|
|
81
91
|
case 'apiUrl':
|
|
82
92
|
this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
|
|
83
93
|
break;
|
|
@@ -174,7 +184,7 @@ export class LuzmoItemSlotPicker {
|
|
|
174
184
|
}));
|
|
175
185
|
}
|
|
176
186
|
static ɵfac = function LuzmoItemSlotPicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemSlotPicker)(); };
|
|
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", search: "search", icons: "icons", placeholder: "placeholder", datasetsDataFields: "datasetsDataFields", placement: "placement", slotMenuPlacement: "slotMenuPlacement", slotMenuMode: "slotMenuMode", hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], hideClear: [2, "hideClear", "hideClear", booleanAttribute], language: "language", 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) {
|
|
187
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotPicker, selectors: [["luzmo-item-slot-picker"]], inputs: { slotsContents: "slotsContents", hasConnectedComparisonFilter: [2, "hasConnectedComparisonFilter", "hasConnectedComparisonFilter", booleanAttribute], 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", search: "search", icons: "icons", placeholder: "placeholder", datasetsDataFields: "datasetsDataFields", placement: "placement", slotMenuPlacement: "slotMenuPlacement", slotMenuMode: "slotMenuMode", hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], hideClear: [2, "hideClear", "hideClear", booleanAttribute], language: "language", 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) {
|
|
178
188
|
i0.ɵɵprojectionDef();
|
|
179
189
|
i0.ɵɵprojection(0);
|
|
180
190
|
} }, encapsulation: 2 });
|
|
@@ -188,7 +198,13 @@ export class LuzmoItemSlotPicker {
|
|
|
188
198
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
189
199
|
template: '<ng-content />'
|
|
190
200
|
}]
|
|
191
|
-
}], () => [], {
|
|
201
|
+
}], () => [], { slotsContents: [{
|
|
202
|
+
type: Input,
|
|
203
|
+
args: [{ alias: 'slotsContents' }]
|
|
204
|
+
}], hasConnectedComparisonFilter: [{
|
|
205
|
+
type: Input,
|
|
206
|
+
args: [{ alias: 'hasConnectedComparisonFilter', transform: booleanAttribute }]
|
|
207
|
+
}], apiUrl: [{
|
|
192
208
|
type: Input,
|
|
193
209
|
args: [{ alias: 'apiUrl' }]
|
|
194
210
|
}], authKey: [{
|
|
@@ -5,7 +5,7 @@ import type { DatasetDataFields } from '@luzmo/analytics-components-kit/data-fie
|
|
|
5
5
|
import type { LuzmoDisplaySettings } from '@luzmo/analytics-components-kit/display-settings';
|
|
6
6
|
import type { LuzmoSlotMenuList } from '@luzmo/analytics-components-kit/slot-menu-list';
|
|
7
7
|
import type { SlotContent } from '@luzmo/analytics-components-kit/types';
|
|
8
|
-
import type { SlotName, VizItemType } from '@luzmo/dashboard-contents-types';
|
|
8
|
+
import type { SlotName, VizItemSlot, VizItemType } from '@luzmo/dashboard-contents-types';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export type { InfoVisibilityChangedEventDetail, MeasureColumnsItem, SlotContentChangedEventDetail, SlotContentsChangedEventDetail, SlotListChangedEventDetail, SlotMenuActiveEventDetail, SlotMenuHighlightEventDetail } from '@luzmo/analytics-components-kit/slot-menu';
|
|
11
11
|
export declare class LuzmoSlotMenu implements OnChanges {
|
|
@@ -16,6 +16,10 @@ export declare class LuzmoSlotMenu implements OnChanges {
|
|
|
16
16
|
private readonly listenerCleanup;
|
|
17
17
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
18
18
|
get nativeElement(): LuzmoSlotMenuHostElement;
|
|
19
|
+
/** Full saved slots for deriving comparison levels and implicit datetime offsets. */
|
|
20
|
+
slotsContents?: VizItemSlot[];
|
|
21
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
22
|
+
hasConnectedComparisonFilter?: boolean;
|
|
19
23
|
/** The language of the settings interface */
|
|
20
24
|
language?: string;
|
|
21
25
|
/** The language to use for locale-aware formatting and labels */
|
|
@@ -92,7 +96,8 @@ export declare class LuzmoSlotMenu implements OnChanges {
|
|
|
92
96
|
private bindEvents;
|
|
93
97
|
close(): void;
|
|
94
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoSlotMenu, 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>;
|
|
99
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoSlotMenu, "luzmo-slot-menu", ["luzmoSlotMenu"], { "slotsContents": { "alias": "slotsContents"; "required": false; }; "hasConnectedComparisonFilter": { "alias": "hasConnectedComparisonFilter"; "required": false; }; "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>;
|
|
100
|
+
static ngAcceptInputType_hasConnectedComparisonFilter: unknown;
|
|
96
101
|
static ngAcceptInputType_noDrag: unknown;
|
|
97
102
|
static ngAcceptInputType_noClose: unknown;
|
|
98
103
|
static ngAcceptInputType_noTopMenuLabel: unknown;
|
|
@@ -15,6 +15,10 @@ export class LuzmoSlotMenu {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
+
/** Full saved slots for deriving comparison levels and implicit datetime offsets. */
|
|
19
|
+
slotsContents;
|
|
20
|
+
/** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
|
|
21
|
+
hasConnectedComparisonFilter;
|
|
18
22
|
/** The language of the settings interface */
|
|
19
23
|
language;
|
|
20
24
|
/** The language to use for locale-aware formatting and labels */
|
|
@@ -90,6 +94,12 @@ export class LuzmoSlotMenu {
|
|
|
90
94
|
ngOnChanges(changes) {
|
|
91
95
|
for (const key of Object.keys(changes)) {
|
|
92
96
|
switch (key) {
|
|
97
|
+
case 'slotsContents':
|
|
98
|
+
this.setHostProperty('slotsContents', changes['slotsContents'].currentValue);
|
|
99
|
+
break;
|
|
100
|
+
case 'hasConnectedComparisonFilter':
|
|
101
|
+
this.setHostProperty('hasConnectedComparisonFilter', changes['hasConnectedComparisonFilter'].currentValue);
|
|
102
|
+
break;
|
|
93
103
|
case 'language':
|
|
94
104
|
this.setHostProperty('language', changes['language'].currentValue);
|
|
95
105
|
break;
|
|
@@ -212,7 +222,7 @@ export class LuzmoSlotMenu {
|
|
|
212
222
|
return this.host.close();
|
|
213
223
|
}
|
|
214
224
|
static ɵfac = function LuzmoSlotMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoSlotMenu)(); };
|
|
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) {
|
|
225
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoSlotMenu, selectors: [["luzmo-slot-menu"]], inputs: { slotsContents: "slotsContents", hasConnectedComparisonFilter: [2, "hasConnectedComparisonFilter", "hasConnectedComparisonFilter", booleanAttribute], 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) {
|
|
216
226
|
i0.ɵɵprojectionDef();
|
|
217
227
|
i0.ɵɵprojection(0);
|
|
218
228
|
} }, encapsulation: 2 });
|
|
@@ -226,7 +236,13 @@ export class LuzmoSlotMenu {
|
|
|
226
236
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
227
237
|
template: '<ng-content />'
|
|
228
238
|
}]
|
|
229
|
-
}], () => [], {
|
|
239
|
+
}], () => [], { slotsContents: [{
|
|
240
|
+
type: Input,
|
|
241
|
+
args: [{ alias: 'slotsContents' }]
|
|
242
|
+
}], hasConnectedComparisonFilter: [{
|
|
243
|
+
type: Input,
|
|
244
|
+
args: [{ alias: 'hasConnectedComparisonFilter', transform: booleanAttribute }]
|
|
245
|
+
}], language: [{
|
|
230
246
|
type: Input,
|
|
231
247
|
args: [{ alias: 'language' }]
|
|
232
248
|
}], contentLanguage: [{
|
package/package.json
CHANGED
|
@@ -29,9 +29,9 @@
|
|
|
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": "
|
|
32
|
+
"@luzmo/analytics-components-kit": "2.0.0"
|
|
33
33
|
},
|
|
34
|
-
"version": "
|
|
34
|
+
"version": "2.0.0",
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
|
37
37
|
"url": "git+https://github.com/cumulio-internal/analytics-components-kit.git"
|