@luzmo/ngx-analytics-components-kit 1.0.8 → 1.0.9-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/esm/components/ai-chat-empty-state.d.ts +39 -0
  2. package/esm/components/ai-chat-empty-state.js +99 -0
  3. package/esm/components/ai-chat.d.ts +147 -0
  4. package/esm/components/ai-chat.js +455 -0
  5. package/esm/components/ai-interaction-textarea.d.ts +106 -0
  6. package/esm/components/ai-interaction-textarea.js +305 -0
  7. package/esm/components/data-field-level.d.ts +50 -0
  8. package/esm/components/data-field-level.js +129 -0
  9. package/esm/components/data-field-panel.d.ts +4 -4
  10. package/esm/components/data-field.d.ts +4 -4
  11. package/esm/components/data-fields-select.d.ts +87 -0
  12. package/esm/components/data-fields-select.js +243 -0
  13. package/esm/components/dataset-icon.d.ts +34 -0
  14. package/esm/components/dataset-icon.js +86 -0
  15. package/esm/components/dataset-selector-list.d.ts +56 -0
  16. package/esm/components/dataset-selector-list.js +155 -0
  17. package/esm/components/dataset-selector-row.d.ts +70 -0
  18. package/esm/components/dataset-selector-row.js +197 -0
  19. package/esm/components/display-settings-binning.d.ts +37 -0
  20. package/esm/components/display-settings-binning.js +91 -0
  21. package/esm/components/display-settings-datetime.d.ts +40 -0
  22. package/esm/components/display-settings-datetime.js +99 -0
  23. package/esm/components/display-settings-grand-totals.d.ts +37 -0
  24. package/esm/components/display-settings-grand-totals.js +91 -0
  25. package/esm/components/display-settings-numeric.d.ts +45 -0
  26. package/esm/components/display-settings-numeric.js +115 -0
  27. package/esm/components/display-settings-period-over-period.d.ts +50 -0
  28. package/esm/components/display-settings-period-over-period.js +123 -0
  29. package/esm/components/display-settings.d.ts +83 -0
  30. package/esm/components/display-settings.js +231 -0
  31. package/esm/components/filter-expression-picker.d.ts +64 -0
  32. package/esm/components/filter-expression-picker.js +179 -0
  33. package/esm/components/filter-item.d.ts +74 -0
  34. package/esm/components/filter-item.js +222 -0
  35. package/esm/components/filter-parameter-picker.d.ts +56 -0
  36. package/esm/components/filter-parameter-picker.js +151 -0
  37. package/esm/components/filter-value-picker-datetime.d.ts +47 -0
  38. package/esm/components/filter-value-picker-datetime.js +131 -0
  39. package/esm/components/filter-value-picker-hierarchy.d.ts +53 -0
  40. package/esm/components/filter-value-picker-hierarchy.js +155 -0
  41. package/esm/components/filter-value-picker-numeric.d.ts +53 -0
  42. package/esm/components/filter-value-picker-numeric.js +155 -0
  43. package/esm/components/filter-value-picker.d.ts +57 -0
  44. package/esm/components/filter-value-picker.js +171 -0
  45. package/esm/components/filters.d.ts +14 -4
  46. package/esm/components/filters.js +39 -3
  47. package/esm/components/formula-editor.d.ts +1 -0
  48. package/esm/components/formula-editor.js +1 -1
  49. package/esm/components/formula-field.d.ts +70 -0
  50. package/esm/components/formula-field.js +209 -0
  51. package/esm/components/interactive-viz-item.d.ts +63 -0
  52. package/esm/components/interactive-viz-item.js +188 -0
  53. package/esm/components/item-slot-drop.d.ts +5 -5
  54. package/esm/components/slot-menu-list.d.ts +46 -0
  55. package/esm/components/slot-menu-list.js +123 -0
  56. package/esm/components/slot-menu.d.ts +104 -0
  57. package/esm/components/slot-menu.js +300 -0
  58. package/esm/components/viz-item-menu.d.ts +42 -0
  59. package/esm/components/viz-item-menu.js +111 -0
  60. package/esm/index.d.ts +54 -2
  61. package/esm/index.js +106 -2
  62. package/package.json +2 -2
@@ -0,0 +1,209 @@
1
+ import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/formula-field';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-formula-field>
7
+ */
8
+ export class LuzmoFormulaField {
9
+ elementRef = inject(ElementRef);
10
+ renderer = inject(Renderer2);
11
+ destroyRef = inject(DestroyRef);
12
+ host = this.elementRef.nativeElement;
13
+ listenerCleanup = [];
14
+ /** The underlying custom element instance. Use to call imperative methods. */
15
+ get nativeElement() {
16
+ return this.host;
17
+ }
18
+ /** Renders the field display-only (no editing). */
19
+ readonly;
20
+ /** Placeholder text shown in the editable input when the expression is empty. */
21
+ placeholder;
22
+ /** Number of text lines the input is sized to start with. Defaults to 3. */
23
+ rows;
24
+ /** Maximum number of text lines before a scrollbar appears (only when `grows`). */
25
+ maxRows;
26
+ /** Whether the input grows in height with its content (up to `maxRows` if set). */
27
+ grows;
28
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
29
+ language;
30
+ /** The formula expression (function syntax), e.g. `SUM({datasetId:columnId})`. */
31
+ expression;
32
+ /** Datasets and their data fields, provided directly (takes preference over `datasetIds`). */
33
+ datasetsDataFields;
34
+ /** Dataset ids to fetch from the Luzmo API (auth attributes optional for public datasets). */
35
+ datasetIds;
36
+ /** Base URL of the Luzmo API used to fetch datasets by id. */
37
+ apiUrl;
38
+ /** Luzmo API authorization key, used with `authToken` to fetch datasets by id. */
39
+ authKey;
40
+ /** Luzmo API authorization token, used with `authKey` to fetch datasets by id. */
41
+ authToken;
42
+ /** Whether aggregation functions are offered (in the autocompletion, and - for the editor - via the aggregations list and pills). Defaults to `true`. Note: as a boolean attribute defaulting to `true` it cannot be turned off via markup (an absent attribute keeps the default); set the `.showAggregations` property to `false` to disable. */
43
+ showAggregations;
44
+ /** Language used for data labels (column / dataset names). */
45
+ contentLanguage;
46
+ /** When true, aggregations render as multi-stage nested widgets. */
47
+ multiStageAggregation;
48
+ /** When true, aggregations can be nested inside other aggregations. */
49
+ nestedAggregation;
50
+ /** The size of the element */
51
+ size;
52
+ /** Fired (debounced) when the expression changes (only when not readonly). */
53
+ luzmoExpressionChanged = output({ alias: 'luzmoExpressionChanged' });
54
+ /** Fired when fetching datasets by id fails. */
55
+ luzmoDatasetsError = output({ alias: 'luzmoDatasetsError' });
56
+ constructor() {
57
+ this.bindEvents();
58
+ this.destroyRef.onDestroy(() => {
59
+ for (const cleanup of this.listenerCleanup) {
60
+ cleanup();
61
+ }
62
+ });
63
+ }
64
+ ngOnChanges(changes) {
65
+ for (const key of Object.keys(changes)) {
66
+ switch (key) {
67
+ case 'readonly':
68
+ this.setHostProperty('readonly', changes['readonly'].currentValue);
69
+ break;
70
+ case 'placeholder':
71
+ this.setHostProperty('placeholder', changes['placeholder'].currentValue);
72
+ break;
73
+ case 'rows':
74
+ this.setHostProperty('rows', changes['rows'].currentValue);
75
+ break;
76
+ case 'maxRows':
77
+ this.setHostProperty('maxRows', changes['maxRows'].currentValue);
78
+ break;
79
+ case 'grows':
80
+ this.setHostProperty('grows', changes['grows'].currentValue);
81
+ break;
82
+ case 'language':
83
+ this.setHostProperty('language', changes['language'].currentValue);
84
+ break;
85
+ case 'expression':
86
+ this.setHostProperty('expression', changes['expression'].currentValue);
87
+ break;
88
+ case 'datasetsDataFields':
89
+ this.setHostProperty('datasetsDataFields', changes['datasetsDataFields'].currentValue);
90
+ break;
91
+ case 'datasetIds':
92
+ this.setHostProperty('datasetIds', changes['datasetIds'].currentValue);
93
+ break;
94
+ case 'apiUrl':
95
+ this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
96
+ break;
97
+ case 'authKey':
98
+ this.setHostProperty('authKey', changes['authKey'].currentValue);
99
+ break;
100
+ case 'authToken':
101
+ this.setHostProperty('authToken', changes['authToken'].currentValue);
102
+ break;
103
+ case 'showAggregations':
104
+ this.setHostProperty('showAggregations', changes['showAggregations'].currentValue);
105
+ break;
106
+ case 'contentLanguage':
107
+ this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
108
+ break;
109
+ case 'multiStageAggregation':
110
+ this.setHostProperty('multiStageAggregation', changes['multiStageAggregation'].currentValue);
111
+ break;
112
+ case 'nestedAggregation':
113
+ this.setHostProperty('nestedAggregation', changes['nestedAggregation'].currentValue);
114
+ break;
115
+ case 'size':
116
+ this.setHostProperty('size', changes['size'].currentValue);
117
+ break;
118
+ default:
119
+ break;
120
+ }
121
+ }
122
+ }
123
+ /**
124
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
125
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
126
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
127
+ * undefined / null by clearing their bindings.
128
+ */
129
+ setHostProperty(key, value) {
130
+ this.renderer.setProperty(this.host, key, value);
131
+ }
132
+ bindEvents() {
133
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-expression-changed', (event) => {
134
+ const typed = event;
135
+ this.luzmoExpressionChanged.emit(typed);
136
+ }));
137
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-datasets-error', (event) => {
138
+ const typed = event;
139
+ this.luzmoDatasetsError.emit(typed);
140
+ }));
141
+ }
142
+ static ɵfac = function LuzmoFormulaField_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFormulaField)(); };
143
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFormulaField, selectors: [["luzmo-formula-field"]], inputs: { readonly: [2, "readonly", "readonly", booleanAttribute], placeholder: "placeholder", rows: "rows", maxRows: "maxRows", grows: [2, "grows", "grows", booleanAttribute], language: "language", expression: "expression", datasetsDataFields: "datasetsDataFields", datasetIds: "datasetIds", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", showAggregations: [2, "showAggregations", "showAggregations", booleanAttribute], contentLanguage: "contentLanguage", multiStageAggregation: [2, "multiStageAggregation", "multiStageAggregation", booleanAttribute], nestedAggregation: [2, "nestedAggregation", "nestedAggregation", booleanAttribute], size: "size" }, outputs: { luzmoExpressionChanged: "luzmoExpressionChanged", luzmoDatasetsError: "luzmoDatasetsError" }, exportAs: ["luzmoFormulaField"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFormulaField_Template(rf, ctx) { if (rf & 1) {
144
+ i0.ɵɵprojectionDef();
145
+ i0.ɵɵprojection(0);
146
+ } }, encapsulation: 2 });
147
+ }
148
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFormulaField, [{
149
+ type: Component,
150
+ args: [{
151
+ selector: 'luzmo-formula-field',
152
+ exportAs: 'luzmoFormulaField',
153
+ standalone: true,
154
+ changeDetection: ChangeDetectionStrategy.OnPush,
155
+ template: '<ng-content />'
156
+ }]
157
+ }], () => [], { readonly: [{
158
+ type: Input,
159
+ args: [{ alias: 'readonly', transform: booleanAttribute }]
160
+ }], placeholder: [{
161
+ type: Input,
162
+ args: [{ alias: 'placeholder' }]
163
+ }], rows: [{
164
+ type: Input,
165
+ args: [{ alias: 'rows' }]
166
+ }], maxRows: [{
167
+ type: Input,
168
+ args: [{ alias: 'maxRows' }]
169
+ }], grows: [{
170
+ type: Input,
171
+ args: [{ alias: 'grows', transform: booleanAttribute }]
172
+ }], language: [{
173
+ type: Input,
174
+ args: [{ alias: 'language' }]
175
+ }], expression: [{
176
+ type: Input,
177
+ args: [{ alias: 'expression' }]
178
+ }], datasetsDataFields: [{
179
+ type: Input,
180
+ args: [{ alias: 'datasetsDataFields' }]
181
+ }], datasetIds: [{
182
+ type: Input,
183
+ args: [{ alias: 'datasetIds' }]
184
+ }], apiUrl: [{
185
+ type: Input,
186
+ args: [{ alias: 'apiUrl' }]
187
+ }], authKey: [{
188
+ type: Input,
189
+ args: [{ alias: 'authKey' }]
190
+ }], authToken: [{
191
+ type: Input,
192
+ args: [{ alias: 'authToken' }]
193
+ }], showAggregations: [{
194
+ type: Input,
195
+ args: [{ alias: 'showAggregations', transform: booleanAttribute }]
196
+ }], contentLanguage: [{
197
+ type: Input,
198
+ args: [{ alias: 'contentLanguage' }]
199
+ }], multiStageAggregation: [{
200
+ type: Input,
201
+ args: [{ alias: 'multiStageAggregation', transform: booleanAttribute }]
202
+ }], nestedAggregation: [{
203
+ type: Input,
204
+ args: [{ alias: 'nestedAggregation', transform: booleanAttribute }]
205
+ }], size: [{
206
+ type: Input,
207
+ args: [{ alias: 'size' }]
208
+ }], luzmoExpressionChanged: [{ type: i0.Output, args: ["luzmoExpressionChanged"] }], luzmoDatasetsError: [{ type: i0.Output, args: ["luzmoDatasetsError"] }] }); })();
209
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFormulaField, { className: "LuzmoFormulaField", filePath: "components/formula-field.ts", lineNumber: 15 }); })();
@@ -0,0 +1,63 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/interactive-viz-item';
3
+ import type { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemHostElement, ChartFeedback, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
4
+ import * as i0 from "@angular/core";
5
+ export type { ChartActionDescriptor, ChartActionType, ChartFeedback, ChartFeedbackRating, ChartMutationRequest, ChartOption, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail, NormalizedChartConfig, Ranking, Sort } from '@luzmo/analytics-components-kit/interactive-viz-item';
6
+ export declare class LuzmoInteractiveVizItem implements OnChanges {
7
+ private readonly elementRef;
8
+ private readonly renderer;
9
+ private readonly destroyRef;
10
+ private readonly host;
11
+ private readonly listenerCleanup;
12
+ /** The underlying custom element instance. Use to call imperative methods. */
13
+ get nativeElement(): LuzmoInteractiveVizItemHostElement;
14
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
15
+ language?: string;
16
+ /** Loose chart config (type, options, slots, filters); slots may use the keyed-object form. */
17
+ chart?: FlexChartConfig | null;
18
+ /** Current feedback (drives the thumbs up/down selection). */
19
+ feedback?: ChartFeedback | null;
20
+ /** Message id from the backend. Feedback is only shown when set. */
21
+ messageId?: string;
22
+ /** Auth key for the embedded chart and config panels. */
23
+ authKey?: string;
24
+ /** Auth token for the embedded chart and config panels. */
25
+ authToken?: string;
26
+ /** API URL for the embedded chart and config panels. */
27
+ apiUrl?: string;
28
+ /** App server URL for the embedded chart (assets, thumbnails). */
29
+ appServer?: string;
30
+ /** Content language for chart data and dataset metadata. Defaults to the UI `language`. */
31
+ contentLanguage?: string;
32
+ /** When present, hides the inline chart actions (ranking, display mode). */
33
+ hideActions?: boolean;
34
+ /** When present, hides the feedback bar. */
35
+ hideFeedback?: boolean;
36
+ /** When present, hides the config-panel toggle and the panel itself. */
37
+ hideConfigPanel?: boolean;
38
+ /** The size of the element */
39
+ size?: 's' | 'm' | 'l' | 'xl';
40
+ /** Fired when the inline actions (ranking, sort, display mode) change the chart options. */
41
+ readonly luzmoChartOptionsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>;
42
+ /** Fired when the config panel changes slots, filters, or options (full chart). */
43
+ readonly luzmoChartChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemChartChangedEventDetail>>;
44
+ /** Fired when the user changes the thumbs up/down rating. */
45
+ readonly luzmoFeedbackChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>;
46
+ constructor();
47
+ ngOnChanges(changes: SimpleChanges): void;
48
+ /**
49
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
50
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
51
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
52
+ * undefined / null by clearing their bindings.
53
+ */
54
+ private setHostProperty;
55
+ private bindEvents;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoInteractiveVizItem, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoInteractiveVizItem, "luzmo-interactive-viz-item", ["luzmoInteractiveVizItem"], { "language": { "alias": "language"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; "feedback": { "alias": "feedback"; "required": false; }; "messageId": { "alias": "messageId"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "hideActions": { "alias": "hideActions"; "required": false; }; "hideFeedback": { "alias": "hideFeedback"; "required": false; }; "hideConfigPanel": { "alias": "hideConfigPanel"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoChartOptionsChanged": "luzmoChartOptionsChanged"; "luzmoChartChanged": "luzmoChartChanged"; "luzmoFeedbackChanged": "luzmoFeedbackChanged"; }, never, ["*"], true, never>;
58
+ static ngAcceptInputType_hideActions: unknown;
59
+ static ngAcceptInputType_hideFeedback: unknown;
60
+ static ngAcceptInputType_hideConfigPanel: unknown;
61
+ }
62
+ /** The underlying custom element type for LuzmoInteractiveVizItem */
63
+ export type LuzmoInteractiveVizItemElement = LuzmoInteractiveVizItemHostElement;
@@ -0,0 +1,188 @@
1
+ import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/interactive-viz-item';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-interactive-viz-item>
7
+ *
8
+ * @slot chart-actions-extra - Host-injected actions rendered at the end of the inline actions bar (e.g. copy-to-dashboard).
9
+ * @csspart container - The viz item container.
10
+ * @csspart chart-container - The embedded chart wrapper.
11
+ * @csspart config-panel - The expandable configuration panel.
12
+ */
13
+ export class LuzmoInteractiveVizItem {
14
+ elementRef = inject(ElementRef);
15
+ renderer = inject(Renderer2);
16
+ destroyRef = inject(DestroyRef);
17
+ host = this.elementRef.nativeElement;
18
+ listenerCleanup = [];
19
+ /** The underlying custom element instance. Use to call imperative methods. */
20
+ get nativeElement() {
21
+ return this.host;
22
+ }
23
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
24
+ language;
25
+ /** Loose chart config (type, options, slots, filters); slots may use the keyed-object form. */
26
+ chart;
27
+ /** Current feedback (drives the thumbs up/down selection). */
28
+ feedback;
29
+ /** Message id from the backend. Feedback is only shown when set. */
30
+ messageId;
31
+ /** Auth key for the embedded chart and config panels. */
32
+ authKey;
33
+ /** Auth token for the embedded chart and config panels. */
34
+ authToken;
35
+ /** API URL for the embedded chart and config panels. */
36
+ apiUrl;
37
+ /** App server URL for the embedded chart (assets, thumbnails). */
38
+ appServer;
39
+ /** Content language for chart data and dataset metadata. Defaults to the UI `language`. */
40
+ contentLanguage;
41
+ /** When present, hides the inline chart actions (ranking, display mode). */
42
+ hideActions;
43
+ /** When present, hides the feedback bar. */
44
+ hideFeedback;
45
+ /** When present, hides the config-panel toggle and the panel itself. */
46
+ hideConfigPanel;
47
+ /** The size of the element */
48
+ size;
49
+ /** Fired when the inline actions (ranking, sort, display mode) change the chart options. */
50
+ luzmoChartOptionsChanged = output({ alias: 'luzmoChartOptionsChanged' });
51
+ /** Fired when the config panel changes slots, filters, or options (full chart). */
52
+ luzmoChartChanged = output({ alias: 'luzmoChartChanged' });
53
+ /** Fired when the user changes the thumbs up/down rating. */
54
+ luzmoFeedbackChanged = output({ alias: 'luzmoFeedbackChanged' });
55
+ constructor() {
56
+ this.bindEvents();
57
+ this.destroyRef.onDestroy(() => {
58
+ for (const cleanup of this.listenerCleanup) {
59
+ cleanup();
60
+ }
61
+ });
62
+ }
63
+ ngOnChanges(changes) {
64
+ for (const key of Object.keys(changes)) {
65
+ switch (key) {
66
+ case 'language':
67
+ this.setHostProperty('language', changes['language'].currentValue);
68
+ break;
69
+ case 'chart':
70
+ this.setHostProperty('chart', changes['chart'].currentValue);
71
+ break;
72
+ case 'feedback':
73
+ this.setHostProperty('feedback', changes['feedback'].currentValue);
74
+ break;
75
+ case 'messageId':
76
+ this.setHostProperty('messageId', changes['messageId'].currentValue);
77
+ break;
78
+ case 'authKey':
79
+ this.setHostProperty('authKey', changes['authKey'].currentValue);
80
+ break;
81
+ case 'authToken':
82
+ this.setHostProperty('authToken', changes['authToken'].currentValue);
83
+ break;
84
+ case 'apiUrl':
85
+ this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
86
+ break;
87
+ case 'appServer':
88
+ this.setHostProperty('appServer', changes['appServer'].currentValue);
89
+ break;
90
+ case 'contentLanguage':
91
+ this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
92
+ break;
93
+ case 'hideActions':
94
+ this.setHostProperty('hideActions', changes['hideActions'].currentValue);
95
+ break;
96
+ case 'hideFeedback':
97
+ this.setHostProperty('hideFeedback', changes['hideFeedback'].currentValue);
98
+ break;
99
+ case 'hideConfigPanel':
100
+ this.setHostProperty('hideConfigPanel', changes['hideConfigPanel'].currentValue);
101
+ break;
102
+ case 'size':
103
+ this.setHostProperty('size', changes['size'].currentValue);
104
+ break;
105
+ default:
106
+ break;
107
+ }
108
+ }
109
+ }
110
+ /**
111
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
112
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
113
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
114
+ * undefined / null by clearing their bindings.
115
+ */
116
+ setHostProperty(key, value) {
117
+ this.renderer.setProperty(this.host, key, value);
118
+ }
119
+ bindEvents() {
120
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-options-changed', (event) => {
121
+ const typed = event;
122
+ this.luzmoChartOptionsChanged.emit(typed);
123
+ }));
124
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-changed', (event) => {
125
+ const typed = event;
126
+ this.luzmoChartChanged.emit(typed);
127
+ }));
128
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-feedback-changed', (event) => {
129
+ const typed = event;
130
+ this.luzmoFeedbackChanged.emit(typed);
131
+ }));
132
+ }
133
+ static ɵfac = function LuzmoInteractiveVizItem_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoInteractiveVizItem)(); };
134
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoInteractiveVizItem, selectors: [["luzmo-interactive-viz-item"]], inputs: { language: "language", chart: "chart", feedback: "feedback", messageId: "messageId", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", contentLanguage: "contentLanguage", hideActions: [2, "hideActions", "hideActions", booleanAttribute], hideFeedback: [2, "hideFeedback", "hideFeedback", booleanAttribute], hideConfigPanel: [2, "hideConfigPanel", "hideConfigPanel", booleanAttribute], size: "size" }, outputs: { luzmoChartOptionsChanged: "luzmoChartOptionsChanged", luzmoChartChanged: "luzmoChartChanged", luzmoFeedbackChanged: "luzmoFeedbackChanged" }, exportAs: ["luzmoInteractiveVizItem"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoInteractiveVizItem_Template(rf, ctx) { if (rf & 1) {
135
+ i0.ɵɵprojectionDef();
136
+ i0.ɵɵprojection(0);
137
+ } }, encapsulation: 2 });
138
+ }
139
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoInteractiveVizItem, [{
140
+ type: Component,
141
+ args: [{
142
+ selector: 'luzmo-interactive-viz-item',
143
+ exportAs: 'luzmoInteractiveVizItem',
144
+ standalone: true,
145
+ changeDetection: ChangeDetectionStrategy.OnPush,
146
+ template: '<ng-content />'
147
+ }]
148
+ }], () => [], { language: [{
149
+ type: Input,
150
+ args: [{ alias: 'language' }]
151
+ }], chart: [{
152
+ type: Input,
153
+ args: [{ alias: 'chart' }]
154
+ }], feedback: [{
155
+ type: Input,
156
+ args: [{ alias: 'feedback' }]
157
+ }], messageId: [{
158
+ type: Input,
159
+ args: [{ alias: 'messageId' }]
160
+ }], authKey: [{
161
+ type: Input,
162
+ args: [{ alias: 'authKey' }]
163
+ }], authToken: [{
164
+ type: Input,
165
+ args: [{ alias: 'authToken' }]
166
+ }], apiUrl: [{
167
+ type: Input,
168
+ args: [{ alias: 'apiUrl' }]
169
+ }], appServer: [{
170
+ type: Input,
171
+ args: [{ alias: 'appServer' }]
172
+ }], contentLanguage: [{
173
+ type: Input,
174
+ args: [{ alias: 'contentLanguage' }]
175
+ }], hideActions: [{
176
+ type: Input,
177
+ args: [{ alias: 'hideActions', transform: booleanAttribute }]
178
+ }], hideFeedback: [{
179
+ type: Input,
180
+ args: [{ alias: 'hideFeedback', transform: booleanAttribute }]
181
+ }], hideConfigPanel: [{
182
+ type: Input,
183
+ args: [{ alias: 'hideConfigPanel', transform: booleanAttribute }]
184
+ }], size: [{
185
+ type: Input,
186
+ args: [{ alias: 'size' }]
187
+ }], luzmoChartOptionsChanged: [{ type: i0.Output, args: ["luzmoChartOptionsChanged"] }], luzmoChartChanged: [{ type: i0.Output, args: ["luzmoChartChanged"] }], luzmoFeedbackChanged: [{ type: i0.Output, args: ["luzmoFeedbackChanged"] }] }); })();
188
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoInteractiveVizItem, { className: "LuzmoInteractiveVizItem", filePath: "components/interactive-viz-item.ts", lineNumber: 21 }); })();
@@ -1,10 +1,10 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/item-slot-drop';
3
- import type { LuzmoItemSlotDrop as LuzmoItemSlotDropHostElement, SlotConfig, SlotContentsChangedEventDetail } from '@luzmo/analytics-components-kit/item-slot-drop';
3
+ import type { LuzmoItemSlotDrop as LuzmoItemSlotDropHostElement, InfoVisibilityChangedEventDetail, SlotConfig, SlotContentsChangedEventDetail, SlotMenuActiveEventDetail, SlotMenuHighlightEventDetail } from '@luzmo/analytics-components-kit/item-slot-drop';
4
4
  import type { SlotName, VizItemSlot, VizItemType } from '@luzmo/dashboard-contents-types';
5
5
  import type { Placement } from '@luzmo/lucero';
6
6
  import * as i0 from "@angular/core";
7
- export type { SlotConfig, SlotContentsChangedEventDetail } from '@luzmo/analytics-components-kit/item-slot-drop';
7
+ export type { InfoVisibilityChangedEventDetail, SlotConfig, SlotContentsChangedEventDetail, SlotMenuActiveEventDetail, SlotMenuHighlightEventDetail } from '@luzmo/analytics-components-kit/item-slot-drop';
8
8
  export declare class LuzmoItemSlotDrop implements OnChanges {
9
9
  private readonly elementRef;
10
10
  private readonly renderer;
@@ -50,11 +50,11 @@ export declare class LuzmoItemSlotDrop implements OnChanges {
50
50
  /** Emitted when the slot menu overlay closes / becomes inactive. */
51
51
  readonly luzmoSlotMenuInactive: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
52
52
  /** Emitted when the slot menu overlay opens for a slot */
53
- readonly luzmoSlotMenuActive: import("@angular/core").OutputEmitterRef<unknown>;
53
+ readonly luzmoSlotMenuActive: import("@angular/core").OutputEmitterRef<CustomEvent<SlotMenuActiveEventDetail>>;
54
54
  /** Emitted to highlight the active column or formula in the slot menu */
55
- readonly luzmoSlotMenuHighlight: import("@angular/core").OutputEmitterRef<unknown>;
55
+ readonly luzmoSlotMenuHighlight: import("@angular/core").OutputEmitterRef<CustomEvent<SlotMenuHighlightEventDetail>>;
56
56
  /** Event that is fired when the info button is clicked in display-settings, includes the visibility state and ID values */
57
- readonly luzmoInfoVisibilityChanged: import("@angular/core").OutputEmitterRef<unknown>;
57
+ readonly luzmoInfoVisibilityChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InfoVisibilityChangedEventDetail>>;
58
58
  /** Announces that the slot contents has changed */
59
59
  readonly luzmoSlotContentsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<SlotContentsChangedEventDetail>>;
60
60
  constructor();
@@ -0,0 +1,46 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/slot-menu-list';
3
+ import type { LuzmoSlotMenuList as LuzmoSlotMenuListHostElement, SlotListChangedEventDetail } from '@luzmo/analytics-components-kit/slot-menu-list';
4
+ import type { SlotContent } from '@luzmo/analytics-components-kit/types';
5
+ import type { SlotName } from '@luzmo/dashboard-contents-types';
6
+ import * as i0 from "@angular/core";
7
+ export type { SlotListChangedEventDetail } from '@luzmo/analytics-components-kit/slot-menu-list';
8
+ export declare class LuzmoSlotMenuList implements OnChanges {
9
+ private readonly elementRef;
10
+ private readonly renderer;
11
+ private readonly destroyRef;
12
+ private readonly host;
13
+ private readonly listenerCleanup;
14
+ /** The underlying custom element instance. Use to call imperative methods. */
15
+ get nativeElement(): LuzmoSlotMenuListHostElement;
16
+ /** The language of the settings interface */
17
+ language?: string;
18
+ /** The language to use for locale-aware formatting and labels */
19
+ contentLanguage?: string;
20
+ /** The list of slot contents (columns/formulas) shown in the reorderable list. */
21
+ slotContents?: SlotContent[];
22
+ /** The containing slot name used to identify measure calculations. */
23
+ slotName?: SlotName;
24
+ /** The containing slot type used to identify measure calculations. */
25
+ slotType?: string;
26
+ /** Index of the currently active/selected slot content. */
27
+ activeIndex?: number;
28
+ /** The size of the element */
29
+ size?: 's' | 'm' | 'l' | 'xl';
30
+ /** Emitted when the slot list changes */
31
+ readonly luzmoSlotListChanged: import("@angular/core").OutputEmitterRef<CustomEvent<SlotListChangedEventDetail>>;
32
+ constructor();
33
+ ngOnChanges(changes: SimpleChanges): void;
34
+ /**
35
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
36
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
37
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
38
+ * undefined / null by clearing their bindings.
39
+ */
40
+ private setHostProperty;
41
+ private bindEvents;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoSlotMenuList, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoSlotMenuList, "luzmo-slot-menu-list", ["luzmoSlotMenuList"], { "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotContents": { "alias": "slotContents"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotType": { "alias": "slotType"; "required": false; }; "activeIndex": { "alias": "activeIndex"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotListChanged": "luzmoSlotListChanged"; }, never, ["*"], true, never>;
44
+ }
45
+ /** The underlying custom element type for LuzmoSlotMenuList */
46
+ export type LuzmoSlotMenuListElement = LuzmoSlotMenuListHostElement;