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

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 (66) hide show
  1. package/esm/components/add-to-dashboard.d.ts +48 -0
  2. package/esm/components/add-to-dashboard.js +129 -0
  3. package/esm/components/ai-chat-empty-state.d.ts +41 -0
  4. package/esm/components/ai-chat-empty-state.js +107 -0
  5. package/esm/components/ai-chat.d.ts +149 -0
  6. package/esm/components/ai-chat.js +463 -0
  7. package/esm/components/ai-interaction-textarea.d.ts +108 -0
  8. package/esm/components/ai-interaction-textarea.js +313 -0
  9. package/esm/components/data-field-level.d.ts +50 -0
  10. package/esm/components/data-field-level.js +129 -0
  11. package/esm/components/data-field-panel.d.ts +4 -4
  12. package/esm/components/data-field.d.ts +4 -4
  13. package/esm/components/data-fields-select.d.ts +87 -0
  14. package/esm/components/data-fields-select.js +243 -0
  15. package/esm/components/dataset-icon.d.ts +34 -0
  16. package/esm/components/dataset-icon.js +86 -0
  17. package/esm/components/dataset-selector-list.d.ts +56 -0
  18. package/esm/components/dataset-selector-list.js +155 -0
  19. package/esm/components/dataset-selector-row.d.ts +72 -0
  20. package/esm/components/dataset-selector-row.js +205 -0
  21. package/esm/components/display-settings-binning.d.ts +37 -0
  22. package/esm/components/display-settings-binning.js +91 -0
  23. package/esm/components/display-settings-datetime.d.ts +40 -0
  24. package/esm/components/display-settings-datetime.js +99 -0
  25. package/esm/components/display-settings-grand-totals.d.ts +37 -0
  26. package/esm/components/display-settings-grand-totals.js +91 -0
  27. package/esm/components/display-settings-numeric.d.ts +45 -0
  28. package/esm/components/display-settings-numeric.js +115 -0
  29. package/esm/components/display-settings-period-over-period.d.ts +50 -0
  30. package/esm/components/display-settings-period-over-period.js +123 -0
  31. package/esm/components/display-settings.d.ts +83 -0
  32. package/esm/components/display-settings.js +231 -0
  33. package/esm/components/filter-expression-picker.d.ts +64 -0
  34. package/esm/components/filter-expression-picker.js +179 -0
  35. package/esm/components/filter-item.d.ts +74 -0
  36. package/esm/components/filter-item.js +222 -0
  37. package/esm/components/filter-parameter-picker.d.ts +56 -0
  38. package/esm/components/filter-parameter-picker.js +151 -0
  39. package/esm/components/filter-value-picker-datetime.d.ts +47 -0
  40. package/esm/components/filter-value-picker-datetime.js +131 -0
  41. package/esm/components/filter-value-picker-hierarchy.d.ts +53 -0
  42. package/esm/components/filter-value-picker-hierarchy.js +155 -0
  43. package/esm/components/filter-value-picker-numeric.d.ts +53 -0
  44. package/esm/components/filter-value-picker-numeric.js +155 -0
  45. package/esm/components/filter-value-picker.d.ts +57 -0
  46. package/esm/components/filter-value-picker.js +171 -0
  47. package/esm/components/filters.d.ts +14 -4
  48. package/esm/components/filters.js +39 -3
  49. package/esm/components/formula-editor.d.ts +1 -0
  50. package/esm/components/formula-editor.js +1 -1
  51. package/esm/components/formula-field.d.ts +70 -0
  52. package/esm/components/formula-field.js +209 -0
  53. package/esm/components/interactive-viz-item.d.ts +76 -0
  54. package/esm/components/interactive-viz-item.js +224 -0
  55. package/esm/components/item-grid-item-actions-menu.d.ts +10 -8
  56. package/esm/components/item-grid-item-actions-menu.js +12 -6
  57. package/esm/components/item-grid.d.ts +5 -3
  58. package/esm/components/item-grid.js +8 -2
  59. package/esm/components/item-slot-drop.d.ts +5 -5
  60. package/esm/components/slot-menu-list.d.ts +46 -0
  61. package/esm/components/slot-menu-list.js +123 -0
  62. package/esm/components/slot-menu.d.ts +104 -0
  63. package/esm/components/slot-menu.js +300 -0
  64. package/esm/index.d.ts +54 -2
  65. package/esm/index.js +106 -2
  66. 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,76 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/interactive-viz-item';
3
+ import type { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemHostElement, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, ChartFeedback, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
4
+ import type { LuzmoEmbedVizItem } from '@luzmo/embed';
5
+ import * as i0 from "@angular/core";
6
+ export type { AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, ChartActionDescriptor, ChartActionType, ChartFeedback, ChartFeedbackRating, ChartMutationRequest, ChartOption, DashboardActions, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail, NormalizedChartConfig, Ranking, Sort } from '@luzmo/analytics-components-kit/interactive-viz-item';
7
+ export declare class LuzmoInteractiveVizItem implements OnChanges {
8
+ private readonly elementRef;
9
+ private readonly renderer;
10
+ private readonly destroyRef;
11
+ private readonly host;
12
+ private readonly listenerCleanup;
13
+ /** The underlying custom element instance. Use to call imperative methods. */
14
+ get nativeElement(): LuzmoInteractiveVizItemHostElement;
15
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
16
+ language?: string;
17
+ /** When present, renders `luzmo-add-to-dashboard` in the actions bar. */
18
+ addToDashboard?: boolean;
19
+ /** Click-to-filter on the embedded chart, forwarded as its `canFilter`. The `can-filter` attribute means `'all'`; unset keeps it off. */
20
+ canFilter?: LuzmoEmbedVizItem['canFilter'];
21
+ /** Loose chart config (type, options, slots, filters); slots may use the keyed-object form. */
22
+ chart?: FlexChartConfig | null;
23
+ /** Current feedback (drives the thumbs up/down selection). */
24
+ feedback?: ChartFeedback | null;
25
+ /** Message id from the backend. Feedback is only shown when set. */
26
+ messageId?: string;
27
+ /** Auth key for the embedded chart and config panels. */
28
+ authKey?: string;
29
+ /** Auth token for the embedded chart and config panels. */
30
+ authToken?: string;
31
+ /** API URL for the embedded chart and config panels. */
32
+ apiUrl?: string;
33
+ /** App server URL for the embedded chart (assets, thumbnails). */
34
+ appServer?: string;
35
+ /** Content language for chart data and dataset metadata. Defaults to the UI `language`. */
36
+ contentLanguage?: string;
37
+ /** When present, hides the inline chart actions (ranking, display mode). */
38
+ hideActions?: boolean;
39
+ /** When present, hides the feedback bar. */
40
+ hideFeedback?: boolean;
41
+ /** When present, hides the config-panel toggle and the panel itself. */
42
+ hideConfigPanel?: boolean;
43
+ /** When present, chart changes are only emitted and the host sets `chart`; otherwise they are applied here and still emitted. */
44
+ controlled?: boolean;
45
+ /** The size of the element */
46
+ size?: 's' | 'm' | 'l' | 'xl';
47
+ /** Fired when the inline actions (ranking, sort, display mode) change the chart options. Applied to `chart` first unless `controlled` is set. */
48
+ readonly luzmoChartOptionsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>;
49
+ /** Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set. */
50
+ readonly luzmoChartChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemChartChangedEventDetail>>;
51
+ /** Fired when the user changes the thumbs up/down rating. Never applied to `feedback`; the host owns it in both modes. */
52
+ readonly luzmoFeedbackChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>;
53
+ /** Fired by the inner `luzmo-add-to-dashboard` after the chart was saved. */
54
+ readonly luzmoChartAdded: import("@angular/core").OutputEmitterRef<CustomEvent<AddToDashboardChartAddedEventDetail>>;
55
+ /** Fired by the inner `luzmo-add-to-dashboard` when saving failed. */
56
+ readonly luzmoChartAddFailed: import("@angular/core").OutputEmitterRef<CustomEvent<AddToDashboardChartAddFailedEventDetail>>;
57
+ constructor();
58
+ ngOnChanges(changes: SimpleChanges): void;
59
+ /**
60
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
61
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
62
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
63
+ * undefined / null by clearing their bindings.
64
+ */
65
+ private setHostProperty;
66
+ private bindEvents;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoInteractiveVizItem, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoInteractiveVizItem, "luzmo-interactive-viz-item", ["luzmoInteractiveVizItem"], { "language": { "alias": "language"; "required": false; }; "addToDashboard": { "alias": "addToDashboard"; "required": false; }; "canFilter": { "alias": "canFilter"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; "feedback": { "alias": "feedback"; "required": false; }; "messageId": { "alias": "messageId"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "hideActions": { "alias": "hideActions"; "required": false; }; "hideFeedback": { "alias": "hideFeedback"; "required": false; }; "hideConfigPanel": { "alias": "hideConfigPanel"; "required": false; }; "controlled": { "alias": "controlled"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoChartOptionsChanged": "luzmoChartOptionsChanged"; "luzmoChartChanged": "luzmoChartChanged"; "luzmoFeedbackChanged": "luzmoFeedbackChanged"; "luzmoChartAdded": "luzmoChartAdded"; "luzmoChartAddFailed": "luzmoChartAddFailed"; }, never, ["*"], true, never>;
69
+ static ngAcceptInputType_addToDashboard: unknown;
70
+ static ngAcceptInputType_hideActions: unknown;
71
+ static ngAcceptInputType_hideFeedback: unknown;
72
+ static ngAcceptInputType_hideConfigPanel: unknown;
73
+ static ngAcceptInputType_controlled: unknown;
74
+ }
75
+ /** The underlying custom element type for LuzmoInteractiveVizItem */
76
+ export type LuzmoInteractiveVizItemElement = LuzmoInteractiveVizItemHostElement;
@@ -0,0 +1,224 @@
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
+ /** When present, renders `luzmo-add-to-dashboard` in the actions bar. */
26
+ addToDashboard;
27
+ /** Click-to-filter on the embedded chart, forwarded as its `canFilter`. The `can-filter` attribute means `'all'`; unset keeps it off. */
28
+ canFilter;
29
+ /** Loose chart config (type, options, slots, filters); slots may use the keyed-object form. */
30
+ chart;
31
+ /** Current feedback (drives the thumbs up/down selection). */
32
+ feedback;
33
+ /** Message id from the backend. Feedback is only shown when set. */
34
+ messageId;
35
+ /** Auth key for the embedded chart and config panels. */
36
+ authKey;
37
+ /** Auth token for the embedded chart and config panels. */
38
+ authToken;
39
+ /** API URL for the embedded chart and config panels. */
40
+ apiUrl;
41
+ /** App server URL for the embedded chart (assets, thumbnails). */
42
+ appServer;
43
+ /** Content language for chart data and dataset metadata. Defaults to the UI `language`. */
44
+ contentLanguage;
45
+ /** When present, hides the inline chart actions (ranking, display mode). */
46
+ hideActions;
47
+ /** When present, hides the feedback bar. */
48
+ hideFeedback;
49
+ /** When present, hides the config-panel toggle and the panel itself. */
50
+ hideConfigPanel;
51
+ /** When present, chart changes are only emitted and the host sets `chart`; otherwise they are applied here and still emitted. */
52
+ controlled;
53
+ /** The size of the element */
54
+ size;
55
+ /** Fired when the inline actions (ranking, sort, display mode) change the chart options. Applied to `chart` first unless `controlled` is set. */
56
+ luzmoChartOptionsChanged = output({ alias: 'luzmoChartOptionsChanged' });
57
+ /** Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set. */
58
+ luzmoChartChanged = output({ alias: 'luzmoChartChanged' });
59
+ /** Fired when the user changes the thumbs up/down rating. Never applied to `feedback`; the host owns it in both modes. */
60
+ luzmoFeedbackChanged = output({ alias: 'luzmoFeedbackChanged' });
61
+ /** Fired by the inner `luzmo-add-to-dashboard` after the chart was saved. */
62
+ luzmoChartAdded = output({ alias: 'luzmoChartAdded' });
63
+ /** Fired by the inner `luzmo-add-to-dashboard` when saving failed. */
64
+ luzmoChartAddFailed = output({ alias: 'luzmoChartAddFailed' });
65
+ constructor() {
66
+ this.bindEvents();
67
+ this.destroyRef.onDestroy(() => {
68
+ for (const cleanup of this.listenerCleanup) {
69
+ cleanup();
70
+ }
71
+ });
72
+ }
73
+ ngOnChanges(changes) {
74
+ for (const key of Object.keys(changes)) {
75
+ switch (key) {
76
+ case 'language':
77
+ this.setHostProperty('language', changes['language'].currentValue);
78
+ break;
79
+ case 'addToDashboard':
80
+ this.setHostProperty('addToDashboard', changes['addToDashboard'].currentValue);
81
+ break;
82
+ case 'canFilter':
83
+ this.setHostProperty('canFilter', changes['canFilter'].currentValue);
84
+ break;
85
+ case 'chart':
86
+ this.setHostProperty('chart', changes['chart'].currentValue);
87
+ break;
88
+ case 'feedback':
89
+ this.setHostProperty('feedback', changes['feedback'].currentValue);
90
+ break;
91
+ case 'messageId':
92
+ this.setHostProperty('messageId', changes['messageId'].currentValue);
93
+ break;
94
+ case 'authKey':
95
+ this.setHostProperty('authKey', changes['authKey'].currentValue);
96
+ break;
97
+ case 'authToken':
98
+ this.setHostProperty('authToken', changes['authToken'].currentValue);
99
+ break;
100
+ case 'apiUrl':
101
+ this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
102
+ break;
103
+ case 'appServer':
104
+ this.setHostProperty('appServer', changes['appServer'].currentValue);
105
+ break;
106
+ case 'contentLanguage':
107
+ this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
108
+ break;
109
+ case 'hideActions':
110
+ this.setHostProperty('hideActions', changes['hideActions'].currentValue);
111
+ break;
112
+ case 'hideFeedback':
113
+ this.setHostProperty('hideFeedback', changes['hideFeedback'].currentValue);
114
+ break;
115
+ case 'hideConfigPanel':
116
+ this.setHostProperty('hideConfigPanel', changes['hideConfigPanel'].currentValue);
117
+ break;
118
+ case 'controlled':
119
+ this.setHostProperty('controlled', changes['controlled'].currentValue);
120
+ break;
121
+ case 'size':
122
+ this.setHostProperty('size', changes['size'].currentValue);
123
+ break;
124
+ default:
125
+ break;
126
+ }
127
+ }
128
+ }
129
+ /**
130
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
131
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
132
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
133
+ * undefined / null by clearing their bindings.
134
+ */
135
+ setHostProperty(key, value) {
136
+ this.renderer.setProperty(this.host, key, value);
137
+ }
138
+ bindEvents() {
139
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-options-changed', (event) => {
140
+ const typed = event;
141
+ this.luzmoChartOptionsChanged.emit(typed);
142
+ }));
143
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-changed', (event) => {
144
+ const typed = event;
145
+ this.luzmoChartChanged.emit(typed);
146
+ }));
147
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-feedback-changed', (event) => {
148
+ const typed = event;
149
+ this.luzmoFeedbackChanged.emit(typed);
150
+ }));
151
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-added', (event) => {
152
+ const typed = event;
153
+ this.luzmoChartAdded.emit(typed);
154
+ }));
155
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-add-failed', (event) => {
156
+ const typed = event;
157
+ this.luzmoChartAddFailed.emit(typed);
158
+ }));
159
+ }
160
+ static ɵfac = function LuzmoInteractiveVizItem_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoInteractiveVizItem)(); };
161
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoInteractiveVizItem, selectors: [["luzmo-interactive-viz-item"]], inputs: { language: "language", addToDashboard: [2, "addToDashboard", "addToDashboard", booleanAttribute], canFilter: "canFilter", chart: "chart", feedback: "feedback", messageId: "messageId", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", contentLanguage: "contentLanguage", hideActions: [2, "hideActions", "hideActions", booleanAttribute], hideFeedback: [2, "hideFeedback", "hideFeedback", booleanAttribute], hideConfigPanel: [2, "hideConfigPanel", "hideConfigPanel", booleanAttribute], controlled: [2, "controlled", "controlled", booleanAttribute], size: "size" }, outputs: { luzmoChartOptionsChanged: "luzmoChartOptionsChanged", luzmoChartChanged: "luzmoChartChanged", luzmoFeedbackChanged: "luzmoFeedbackChanged", luzmoChartAdded: "luzmoChartAdded", luzmoChartAddFailed: "luzmoChartAddFailed" }, exportAs: ["luzmoInteractiveVizItem"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoInteractiveVizItem_Template(rf, ctx) { if (rf & 1) {
162
+ i0.ɵɵprojectionDef();
163
+ i0.ɵɵprojection(0);
164
+ } }, encapsulation: 2 });
165
+ }
166
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoInteractiveVizItem, [{
167
+ type: Component,
168
+ args: [{
169
+ selector: 'luzmo-interactive-viz-item',
170
+ exportAs: 'luzmoInteractiveVizItem',
171
+ standalone: true,
172
+ changeDetection: ChangeDetectionStrategy.OnPush,
173
+ template: '<ng-content />'
174
+ }]
175
+ }], () => [], { language: [{
176
+ type: Input,
177
+ args: [{ alias: 'language' }]
178
+ }], addToDashboard: [{
179
+ type: Input,
180
+ args: [{ alias: 'addToDashboard', transform: booleanAttribute }]
181
+ }], canFilter: [{
182
+ type: Input,
183
+ args: [{ alias: 'canFilter' }]
184
+ }], chart: [{
185
+ type: Input,
186
+ args: [{ alias: 'chart' }]
187
+ }], feedback: [{
188
+ type: Input,
189
+ args: [{ alias: 'feedback' }]
190
+ }], messageId: [{
191
+ type: Input,
192
+ args: [{ alias: 'messageId' }]
193
+ }], authKey: [{
194
+ type: Input,
195
+ args: [{ alias: 'authKey' }]
196
+ }], authToken: [{
197
+ type: Input,
198
+ args: [{ alias: 'authToken' }]
199
+ }], apiUrl: [{
200
+ type: Input,
201
+ args: [{ alias: 'apiUrl' }]
202
+ }], appServer: [{
203
+ type: Input,
204
+ args: [{ alias: 'appServer' }]
205
+ }], contentLanguage: [{
206
+ type: Input,
207
+ args: [{ alias: 'contentLanguage' }]
208
+ }], hideActions: [{
209
+ type: Input,
210
+ args: [{ alias: 'hideActions', transform: booleanAttribute }]
211
+ }], hideFeedback: [{
212
+ type: Input,
213
+ args: [{ alias: 'hideFeedback', transform: booleanAttribute }]
214
+ }], hideConfigPanel: [{
215
+ type: Input,
216
+ args: [{ alias: 'hideConfigPanel', transform: booleanAttribute }]
217
+ }], controlled: [{
218
+ type: Input,
219
+ args: [{ alias: 'controlled', transform: booleanAttribute }]
220
+ }], size: [{
221
+ type: Input,
222
+ args: [{ alias: 'size' }]
223
+ }], luzmoChartOptionsChanged: [{ type: i0.Output, args: ["luzmoChartOptionsChanged"] }], luzmoChartChanged: [{ type: i0.Output, args: ["luzmoChartChanged"] }], luzmoFeedbackChanged: [{ type: i0.Output, args: ["luzmoFeedbackChanged"] }], luzmoChartAdded: [{ type: i0.Output, args: ["luzmoChartAdded"] }], luzmoChartAddFailed: [{ type: i0.Output, args: ["luzmoChartAddFailed"] }] }); })();
224
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoInteractiveVizItem, { className: "LuzmoInteractiveVizItem", filePath: "components/interactive-viz-item.ts", lineNumber: 22 }); })();
@@ -1,9 +1,9 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/item-grid';
3
- import type { LuzmoItemGridItemActionsMenu as LuzmoItemGridItemActionsMenuHostElement, ActionGroup } from '@luzmo/analytics-components-kit/item-grid';
2
+ import '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
3
+ import type { LuzmoItemGridItemActionsMenu as LuzmoItemGridItemActionsMenuHostElement, ActionGroup, ItemGridItemActionEventDetail, ItemGridItemActionHoverEventDetail } from '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
4
4
  import type { Placement } from '@luzmo/lucero';
5
5
  import * as i0 from "@angular/core";
6
- export type { Action, ActionGroup, AddGridItemInput, ClonedItemPositioning, DefaultActionType, GridItemActionEventDetail, GridItemData, GridItemPatch, GridItemPosition, GridItemPositionPatch, GridItemRenderer, GridItemSizePatch, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
6
+ export type { Action, ActionGroup, ItemGridItemActionEventDetail, ItemGridItemActionHoverEventDetail } from '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
7
7
  export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
8
8
  private readonly elementRef;
9
9
  private readonly renderer;
@@ -12,9 +12,9 @@ export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
12
12
  private readonly listenerCleanup;
13
13
  /** The underlying custom element instance. Use to call imperative methods. */
14
14
  get nativeElement(): LuzmoItemGridItemActionsMenuHostElement;
15
- /** The preferred placement of the menu */
15
+ /** The preferred placement, which determines the toolbar orientation. */
16
16
  placement?: Placement;
17
- /** The Actions to display in the menu */
17
+ /** The grouped actions displayed in the toolbar. */
18
18
  actions?: ActionGroup[];
19
19
  /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
20
20
  language?: string;
@@ -24,8 +24,10 @@ export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
24
24
  autofocus?: boolean;
25
25
  /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
26
26
  tabIndex?: number;
27
- /** Fired when the user clicks an action in the menu; `detail` holds the action key, type, and active state. */
28
- readonly luzmoItemGridItemAction: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
27
+ /** Fired when the user activates an action. */
28
+ readonly luzmoItemGridItemAction: import("@angular/core").OutputEmitterRef<CustomEvent<ItemGridItemActionEventDetail>>;
29
+ /** Fired when the pointer enters an action, for example to preload what it opens. */
30
+ readonly luzmoItemGridItemActionHover: import("@angular/core").OutputEmitterRef<CustomEvent<ItemGridItemActionHoverEventDetail>>;
29
31
  constructor();
30
32
  ngOnChanges(changes: SimpleChanges): void;
31
33
  /**
@@ -37,7 +39,7 @@ export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
37
39
  private setHostProperty;
38
40
  private bindEvents;
39
41
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemGridItemActionsMenu, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemGridItemActionsMenu, "luzmo-item-grid-item-actions-menu", ["luzmoItemGridItemActionsMenu"], { "placement": { "alias": "placement"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoItemGridItemAction": "luzmoItemGridItemAction"; }, never, ["*"], true, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemGridItemActionsMenu, "luzmo-item-grid-item-actions-menu", ["luzmoItemGridItemActionsMenu"], { "placement": { "alias": "placement"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoItemGridItemAction": "luzmoItemGridItemAction"; "luzmoItemGridItemActionHover": "luzmoItemGridItemActionHover"; }, never, ["*"], true, never>;
41
43
  static ngAcceptInputType_disabled: unknown;
42
44
  static ngAcceptInputType_autofocus: unknown;
43
45
  }
@@ -1,5 +1,5 @@
1
1
  import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/item-grid';
2
+ import '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
3
3
  import * as i0 from "@angular/core";
4
4
  const _c0 = ["*"];
5
5
  /**
@@ -15,9 +15,9 @@ export class LuzmoItemGridItemActionsMenu {
15
15
  get nativeElement() {
16
16
  return this.host;
17
17
  }
18
- /** The preferred placement of the menu */
18
+ /** The preferred placement, which determines the toolbar orientation. */
19
19
  placement;
20
- /** The Actions to display in the menu */
20
+ /** The grouped actions displayed in the toolbar. */
21
21
  actions;
22
22
  /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
23
23
  language;
@@ -27,8 +27,10 @@ export class LuzmoItemGridItemActionsMenu {
27
27
  autofocus;
28
28
  /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
29
29
  tabIndex;
30
- /** Fired when the user clicks an action in the menu; `detail` holds the action key, type, and active state. */
30
+ /** Fired when the user activates an action. */
31
31
  luzmoItemGridItemAction = output({ alias: 'luzmoItemGridItemAction' });
32
+ /** Fired when the pointer enters an action, for example to preload what it opens. */
33
+ luzmoItemGridItemActionHover = output({ alias: 'luzmoItemGridItemActionHover' });
32
34
  constructor() {
33
35
  this.bindEvents();
34
36
  this.destroyRef.onDestroy(() => {
@@ -77,9 +79,13 @@ export class LuzmoItemGridItemActionsMenu {
77
79
  const typed = event;
78
80
  this.luzmoItemGridItemAction.emit(typed);
79
81
  }));
82
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-item-grid-item-action-hover', (event) => {
83
+ const typed = event;
84
+ this.luzmoItemGridItemActionHover.emit(typed);
85
+ }));
80
86
  }
81
87
  static ɵfac = function LuzmoItemGridItemActionsMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemGridItemActionsMenu)(); };
82
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGridItemActionsMenu, selectors: [["luzmo-item-grid-item-actions-menu"]], inputs: { placement: "placement", actions: "actions", language: "language", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction" }, exportAs: ["luzmoItemGridItemActionsMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGridItemActionsMenu_Template(rf, ctx) { if (rf & 1) {
88
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGridItemActionsMenu, selectors: [["luzmo-item-grid-item-actions-menu"]], inputs: { placement: "placement", actions: "actions", language: "language", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction", luzmoItemGridItemActionHover: "luzmoItemGridItemActionHover" }, exportAs: ["luzmoItemGridItemActionsMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGridItemActionsMenu_Template(rf, ctx) { if (rf & 1) {
83
89
  i0.ɵɵprojectionDef();
84
90
  i0.ɵɵprojection(0);
85
91
  } }, encapsulation: 2 });
@@ -111,5 +117,5 @@ export class LuzmoItemGridItemActionsMenu {
111
117
  }], tabIndex: [{
112
118
  type: Input,
113
119
  args: [{ alias: 'tabIndex' }]
114
- }], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }] }); })();
120
+ }], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }], luzmoItemGridItemActionHover: [{ type: i0.Output, args: ["luzmoItemGridItemActionHover"] }] }); })();
115
121
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemGridItemActionsMenu, { className: "LuzmoItemGridItemActionsMenu", filePath: "components/item-grid-item-actions-menu.ts", lineNumber: 17 }); })();