@luzmo/ngx-analytics-components-kit 1.3.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.
Files changed (42) hide show
  1. package/esm/components/add-to-dashboard.d.ts +8 -4
  2. package/esm/components/add-to-dashboard.js +23 -7
  3. package/esm/components/ai-chat-empty-state.d.ts +1 -1
  4. package/esm/components/ai-chat.d.ts +6 -4
  5. package/esm/components/ai-chat.js +10 -2
  6. package/esm/components/data-fields-select.d.ts +2 -0
  7. package/esm/components/data-fields-select.js +4 -0
  8. package/esm/components/display-settings-period-over-period.d.ts +12 -5
  9. package/esm/components/display-settings-period-over-period.js +29 -5
  10. package/esm/components/display-settings.d.ts +11 -4
  11. package/esm/components/display-settings.js +28 -4
  12. package/esm/components/interactive-viz-item.d.ts +30 -9
  13. package/esm/components/interactive-viz-item.js +98 -27
  14. package/esm/components/item-grid-item-actions-menu.d.ts +2 -0
  15. package/esm/components/item-grid-item-actions-menu.js +4 -0
  16. package/esm/components/item-grid.d.ts +3 -1
  17. package/esm/components/item-grid.js +9 -1
  18. package/esm/components/item-option-color-picker.d.ts +10 -10
  19. package/esm/components/item-option-color-picker.js +34 -34
  20. package/esm/components/item-option-guidelines.d.ts +8 -2
  21. package/esm/components/item-option-guidelines.js +26 -2
  22. package/esm/components/item-option-multi-language-field.d.ts +3 -3
  23. package/esm/components/item-option-multi-language-field.js +10 -10
  24. package/esm/components/item-option-number-field.d.ts +5 -5
  25. package/esm/components/item-option-number-field.js +18 -18
  26. package/esm/components/item-option-positions-number-field.d.ts +5 -5
  27. package/esm/components/item-option-positions-number-field.js +18 -18
  28. package/esm/components/item-option-radio-button-group.d.ts +3 -3
  29. package/esm/components/item-option-radio-button-group.js +10 -10
  30. package/esm/components/item-option-text-field.d.ts +3 -3
  31. package/esm/components/item-option-text-field.js +10 -10
  32. package/esm/components/item-slot-drop-panel.d.ts +4 -1
  33. package/esm/components/item-slot-drop-panel.js +10 -2
  34. package/esm/components/item-slot-drop.d.ts +4 -1
  35. package/esm/components/item-slot-drop.js +10 -2
  36. package/esm/components/item-slot-picker-panel.d.ts +5 -2
  37. package/esm/components/item-slot-picker-panel.js +11 -3
  38. package/esm/components/item-slot-picker.d.ts +9 -4
  39. package/esm/components/item-slot-picker.js +26 -10
  40. package/esm/components/slot-menu.d.ts +7 -2
  41. package/esm/components/slot-menu.js +18 -2
  42. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/add-to-dashboard';
3
- import type { LuzmoAddToDashboard as LuzmoAddToDashboardHostElement, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail } from '@luzmo/analytics-components-kit/add-to-dashboard';
3
+ import type { LuzmoAddToDashboard as LuzmoAddToDashboardHostElement, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, DashboardActions, FlexChartConfig } from '@luzmo/analytics-components-kit/add-to-dashboard';
4
4
  import type { Placement } from '@luzmo/lucero';
5
5
  import * as i0 from "@angular/core";
6
6
  export type { AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, AddToDashboardSettings, BuiltInDashboardActionsConfig, DashboardActionCallOptions, DashboardActions, DashboardListPage, DashboardListRequest, DashboardOption, FlexChartConfig } from '@luzmo/analytics-components-kit/add-to-dashboard';
@@ -12,8 +12,10 @@ export declare class LuzmoAddToDashboard implements OnChanges {
12
12
  private readonly listenerCleanup;
13
13
  /** The underlying custom element instance. Use to call imperative methods. */
14
14
  get nativeElement(): LuzmoAddToDashboardHostElement;
15
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
16
- language?: string;
15
+ /** Chart to save; `options.theme` is removed before it reaches the adapter. */
16
+ chart?: FlexChartConfig | null;
17
+ /** Host data operations. When unset, the built-in adapter on the auth properties is used. */
18
+ dashboardActions?: DashboardActions | null;
17
19
  /** Auth key for the built-in adapter. */
18
20
  authKey?: string;
19
21
  /** Auth token for the built-in adapter. */
@@ -24,6 +26,8 @@ export declare class LuzmoAddToDashboard implements OnChanges {
24
26
  placement?: Placement;
25
27
  /** When present, the button is disabled. */
26
28
  disabled?: boolean;
29
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
30
+ language?: string;
27
31
  /** The size of the element */
28
32
  size?: 's' | 'm' | 'l' | 'xl';
29
33
  /** Fired after the chart was saved to a dashboard, a new dashboard or a variant. */
@@ -41,7 +45,7 @@ export declare class LuzmoAddToDashboard implements OnChanges {
41
45
  private setHostProperty;
42
46
  private bindEvents;
43
47
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAddToDashboard, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAddToDashboard, "luzmo-add-to-dashboard", ["luzmoAddToDashboard"], { "language": { "alias": "language"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoChartAdded": "luzmoChartAdded"; "luzmoChartAddFailed": "luzmoChartAddFailed"; }, never, ["*"], true, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAddToDashboard, "luzmo-add-to-dashboard", ["luzmoAddToDashboard"], { "chart": { "alias": "chart"; "required": false; }; "dashboardActions": { "alias": "dashboardActions"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoChartAdded": "luzmoChartAdded"; "luzmoChartAddFailed": "luzmoChartAddFailed"; }, never, ["*"], true, never>;
45
49
  static ngAcceptInputType_disabled: unknown;
46
50
  }
47
51
  /** The underlying custom element type for LuzmoAddToDashboard */
@@ -15,8 +15,10 @@ export class LuzmoAddToDashboard {
15
15
  get nativeElement() {
16
16
  return this.host;
17
17
  }
18
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
19
- language;
18
+ /** Chart to save; `options.theme` is removed before it reaches the adapter. */
19
+ chart;
20
+ /** Host data operations. When unset, the built-in adapter on the auth properties is used. */
21
+ dashboardActions;
20
22
  /** Auth key for the built-in adapter. */
21
23
  authKey;
22
24
  /** Auth token for the built-in adapter. */
@@ -27,6 +29,8 @@ export class LuzmoAddToDashboard {
27
29
  placement;
28
30
  /** When present, the button is disabled. */
29
31
  disabled;
32
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
33
+ language;
30
34
  /** The size of the element */
31
35
  size;
32
36
  /** Fired after the chart was saved to a dashboard, a new dashboard or a variant. */
@@ -44,8 +48,11 @@ export class LuzmoAddToDashboard {
44
48
  ngOnChanges(changes) {
45
49
  for (const key of Object.keys(changes)) {
46
50
  switch (key) {
47
- case 'language':
48
- this.setHostProperty('language', changes['language'].currentValue);
51
+ case 'chart':
52
+ this.setHostProperty('chart', changes['chart'].currentValue);
53
+ break;
54
+ case 'dashboardActions':
55
+ this.setHostProperty('dashboardActions', changes['dashboardActions'].currentValue);
49
56
  break;
50
57
  case 'authKey':
51
58
  this.setHostProperty('authKey', changes['authKey'].currentValue);
@@ -62,6 +69,9 @@ export class LuzmoAddToDashboard {
62
69
  case 'disabled':
63
70
  this.setHostProperty('disabled', changes['disabled'].currentValue);
64
71
  break;
72
+ case 'language':
73
+ this.setHostProperty('language', changes['language'].currentValue);
74
+ break;
65
75
  case 'size':
66
76
  this.setHostProperty('size', changes['size'].currentValue);
67
77
  break;
@@ -90,7 +100,7 @@ export class LuzmoAddToDashboard {
90
100
  }));
91
101
  }
92
102
  static ɵfac = function LuzmoAddToDashboard_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAddToDashboard)(); };
93
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAddToDashboard, selectors: [["luzmo-add-to-dashboard"]], inputs: { language: "language", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", placement: "placement", disabled: [2, "disabled", "disabled", booleanAttribute], size: "size" }, outputs: { luzmoChartAdded: "luzmoChartAdded", luzmoChartAddFailed: "luzmoChartAddFailed" }, exportAs: ["luzmoAddToDashboard"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAddToDashboard_Template(rf, ctx) { if (rf & 1) {
103
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAddToDashboard, selectors: [["luzmo-add-to-dashboard"]], inputs: { chart: "chart", dashboardActions: "dashboardActions", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", placement: "placement", disabled: [2, "disabled", "disabled", booleanAttribute], language: "language", size: "size" }, outputs: { luzmoChartAdded: "luzmoChartAdded", luzmoChartAddFailed: "luzmoChartAddFailed" }, exportAs: ["luzmoAddToDashboard"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAddToDashboard_Template(rf, ctx) { if (rf & 1) {
94
104
  i0.ɵɵprojectionDef();
95
105
  i0.ɵɵprojection(0);
96
106
  } }, encapsulation: 2 });
@@ -104,9 +114,12 @@ export class LuzmoAddToDashboard {
104
114
  changeDetection: ChangeDetectionStrategy.OnPush,
105
115
  template: '<ng-content />'
106
116
  }]
107
- }], () => [], { language: [{
117
+ }], () => [], { chart: [{
108
118
  type: Input,
109
- args: [{ alias: 'language' }]
119
+ args: [{ alias: 'chart' }]
120
+ }], dashboardActions: [{
121
+ type: Input,
122
+ args: [{ alias: 'dashboardActions' }]
110
123
  }], authKey: [{
111
124
  type: Input,
112
125
  args: [{ alias: 'authKey' }]
@@ -122,6 +135,9 @@ export class LuzmoAddToDashboard {
122
135
  }], disabled: [{
123
136
  type: Input,
124
137
  args: [{ alias: 'disabled', transform: booleanAttribute }]
138
+ }], language: [{
139
+ type: Input,
140
+ args: [{ alias: 'language' }]
125
141
  }], size: [{
126
142
  type: Input,
127
143
  args: [{ alias: 'size' }]
@@ -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' }]
@@ -71,6 +71,8 @@ export declare class LuzmoDataFieldsSelect implements OnChanges {
71
71
  */
72
72
  private setHostProperty;
73
73
  private bindEvents;
74
+ /** Focuses the select trigger. */
75
+ focus(options?: FocusOptions): void;
74
76
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDataFieldsSelect, never>;
75
77
  static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDataFieldsSelect, "luzmo-data-fields-select", ["luzmoDataFieldsSelect"], { "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "levels": { "alias": "levels"; "required": false; }; "allowEmpty": { "alias": "allowEmpty"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "value": { "alias": "value"; "required": false; }; "retrieving": { "alias": "retrieving"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "pending": { "alias": "pending"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "quiet": { "alias": "quiet"; "required": false; }; "search": { "alias": "search"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoDataFieldsSelected": "luzmoDataFieldsSelected"; }, never, ["*"], true, never>;
76
78
  static ngAcceptInputType_allowEmpty: unknown;
@@ -158,6 +158,10 @@ export class LuzmoDataFieldsSelect {
158
158
  this.luzmoDataFieldsSelected.emit(typed);
159
159
  }));
160
160
  }
161
+ /** Focuses the select trigger. */
162
+ focus(options) {
163
+ return this.host.focus(options);
164
+ }
161
165
  static ɵfac = function LuzmoDataFieldsSelect_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDataFieldsSelect)(); };
162
166
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDataFieldsSelect, selectors: [["luzmo-data-fields-select"]], inputs: { contentLanguage: "contentLanguage", label: "label", icons: "icons", levels: "levels", allowEmpty: [2, "allowEmpty", "allowEmpty", booleanAttribute], placeholder: "placeholder", selects: "selects", value: "value", retrieving: [2, "retrieving", "retrieving", booleanAttribute], invalid: [2, "invalid", "invalid", booleanAttribute], clearable: [2, "clearable", "clearable", booleanAttribute], pending: [2, "pending", "pending", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], readonly: [2, "readonly", "readonly", booleanAttribute], quiet: [2, "quiet", "quiet", booleanAttribute], search: "search", placement: "placement", datasetsDataFields: "datasetsDataFields", language: "language", size: "size", autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoDataFieldsSelected: "luzmoDataFieldsSelected" }, exportAs: ["luzmoDataFieldsSelect"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDataFieldsSelect_Template(rf, ctx) { if (rf & 1) {
163
167
  i0.ɵɵprojectionDef();
@@ -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
- /** Which period-over-period UI variant to render, based on available datetime columns and comparison filters. */
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, e.g. for items that only show the change. */
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
- /** Which period-over-period UI variant to render, based on available datetime columns and comparison filters. */
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, e.g. for items that only show the change. */
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
- }], () => [], { slotContent: [{
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
- /** Whether to show the period-over-period in numeric */
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 to resolve column names in ad-hoc calculation previews. */
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
- /** Whether to show the period-over-period in numeric */
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 to resolve column names in ad-hoc calculation previews. */
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
- }], () => [], { language: [{
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: [{