@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,313 @@
1
+ import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/ai-interaction-textarea';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-ai-interaction-textarea>
7
+ */
8
+ export class LuzmoAiInteractionTextarea {
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
+ /** Placeholder text for the textarea */
19
+ placeholder;
20
+ /** Array of selected datasets */
21
+ selectedDatasets;
22
+ /** Auth key for DataBroker authentication */
23
+ authKey;
24
+ /** Auth token for DataBroker authentication */
25
+ authToken;
26
+ /** API URL for DataBroker */
27
+ apiUrl;
28
+ /** The URL of the app server for thumbnails and assets */
29
+ appServer;
30
+ /** When true, shows public datasets alongside the user's other datasets. */
31
+ includePublicDatasets;
32
+ /** Alias for includePublicDatasets. */
33
+ flagOpendata;
34
+ /** When true, disables the entire component (opacity 60%, no interactions) */
35
+ disabled;
36
+ /** When true, starts in compact single-line mode and auto-expands as needed */
37
+ singleLine;
38
+ /** When true, hides the "+ Add dataset" button */
39
+ hideDatasetButton;
40
+ /** When true, hides dataset-specific icons in selector tags and @ mention dataset headers */
41
+ hideDatasetIcons;
42
+ /** Maximum number of selected dataset tags shown before the overflow control. */
43
+ maxVisibleSelectedDatasets;
44
+ /** The saved Agent the prompt is scoped to, or null */
45
+ selectedAgent;
46
+ /** When true, hides the Agents section in the add dropdown and ignores `selectedAgent` for `require-dataset` and `prompt-submitted` */
47
+ hideAgents;
48
+ /** When true, disables the "+ Add dataset" button and disables dataset pill removal */
49
+ disableDatasetModification;
50
+ /** When true, hides the dataset row entirely */
51
+ hideSelectedDatasets;
52
+ /** When true, disables @ trigger mentions completely */
53
+ disableColumnMentions;
54
+ /** When true, shows a spinning loader icon instead of the submit arrow */
55
+ isGenerating;
56
+ /** When true, shows a stop control while `is-generating` is true */
57
+ stoppable;
58
+ /** The current value of the textarea (can be controlled from parent to clear or set text) */
59
+ value;
60
+ /** When true, retains the input value after submitting a prompt (default: false) When false (default), clears the textarea value after submission */
61
+ retainOnSubmit;
62
+ /** When true, a selected agent or at least one selected dataset is required before the prompt can be submitted */
63
+ requireDataset;
64
+ /** When true, enables image attachments via paste or the file picker. */
65
+ allowImages;
66
+ /** When true, shows Lucero's mic control; the `POST /aidictation` transcript is inserted, never auto-sent. */
67
+ allowVoiceInput;
68
+ /** Accepted attachment MIME types or extensions. */
69
+ acceptedFileTypes;
70
+ /** API version for built-in `POST /upload` and `POST /aidictation` (default `0.1.0`). */
71
+ apiVersion;
72
+ /** Optional override for eager image upload on attach; return one signed URL per file */
73
+ uploadAttachments;
74
+ /** Custom icons for non-image attachment tiles, keyed by extension. */
75
+ fileIcons;
76
+ /** Size of the prompt box, its dataset row and its attachment button: `s`, `m` (default), `l` or `xl` */
77
+ size;
78
+ /** Fired when a prompt is submitted with selected datasets */
79
+ promptSubmitted = output({ alias: 'promptSubmitted' });
80
+ /** Fired when a running prompt is stopped */
81
+ promptStopped = output({ alias: 'promptStopped' });
82
+ constructor() {
83
+ this.bindEvents();
84
+ this.destroyRef.onDestroy(() => {
85
+ for (const cleanup of this.listenerCleanup) {
86
+ cleanup();
87
+ }
88
+ });
89
+ }
90
+ ngOnChanges(changes) {
91
+ for (const key of Object.keys(changes)) {
92
+ switch (key) {
93
+ case 'placeholder':
94
+ this.setHostProperty('placeholder', changes['placeholder'].currentValue);
95
+ break;
96
+ case 'selectedDatasets':
97
+ this.setHostProperty('selectedDatasets', changes['selectedDatasets'].currentValue);
98
+ break;
99
+ case 'authKey':
100
+ this.setHostProperty('authKey', changes['authKey'].currentValue);
101
+ break;
102
+ case 'authToken':
103
+ this.setHostProperty('authToken', changes['authToken'].currentValue);
104
+ break;
105
+ case 'apiUrl':
106
+ this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
107
+ break;
108
+ case 'appServer':
109
+ this.setHostProperty('appServer', changes['appServer'].currentValue);
110
+ break;
111
+ case 'includePublicDatasets':
112
+ this.setHostProperty('includePublicDatasets', changes['includePublicDatasets'].currentValue);
113
+ break;
114
+ case 'flagOpendata':
115
+ this.setHostProperty('flagOpendata', changes['flagOpendata'].currentValue);
116
+ break;
117
+ case 'disabled':
118
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
119
+ break;
120
+ case 'singleLine':
121
+ this.setHostProperty('singleLine', changes['singleLine'].currentValue);
122
+ break;
123
+ case 'hideDatasetButton':
124
+ this.setHostProperty('hideDatasetButton', changes['hideDatasetButton'].currentValue);
125
+ break;
126
+ case 'hideDatasetIcons':
127
+ this.setHostProperty('hideDatasetIcons', changes['hideDatasetIcons'].currentValue);
128
+ break;
129
+ case 'maxVisibleSelectedDatasets':
130
+ this.setHostProperty('maxVisibleSelectedDatasets', changes['maxVisibleSelectedDatasets'].currentValue);
131
+ break;
132
+ case 'selectedAgent':
133
+ this.setHostProperty('selectedAgent', changes['selectedAgent'].currentValue);
134
+ break;
135
+ case 'hideAgents':
136
+ this.setHostProperty('hideAgents', changes['hideAgents'].currentValue);
137
+ break;
138
+ case 'disableDatasetModification':
139
+ this.setHostProperty('disableDatasetModification', changes['disableDatasetModification'].currentValue);
140
+ break;
141
+ case 'hideSelectedDatasets':
142
+ this.setHostProperty('hideSelectedDatasets', changes['hideSelectedDatasets'].currentValue);
143
+ break;
144
+ case 'disableColumnMentions':
145
+ this.setHostProperty('disableColumnMentions', changes['disableColumnMentions'].currentValue);
146
+ break;
147
+ case 'isGenerating':
148
+ this.setHostProperty('isGenerating', changes['isGenerating'].currentValue);
149
+ break;
150
+ case 'stoppable':
151
+ this.setHostProperty('stoppable', changes['stoppable'].currentValue);
152
+ break;
153
+ case 'value':
154
+ this.setHostProperty('value', changes['value'].currentValue);
155
+ break;
156
+ case 'retainOnSubmit':
157
+ this.setHostProperty('retainOnSubmit', changes['retainOnSubmit'].currentValue);
158
+ break;
159
+ case 'requireDataset':
160
+ this.setHostProperty('requireDataset', changes['requireDataset'].currentValue);
161
+ break;
162
+ case 'allowImages':
163
+ this.setHostProperty('allowImages', changes['allowImages'].currentValue);
164
+ break;
165
+ case 'allowVoiceInput':
166
+ this.setHostProperty('allowVoiceInput', changes['allowVoiceInput'].currentValue);
167
+ break;
168
+ case 'acceptedFileTypes':
169
+ this.setHostProperty('acceptedFileTypes', changes['acceptedFileTypes'].currentValue);
170
+ break;
171
+ case 'apiVersion':
172
+ this.setHostProperty('apiVersion', changes['apiVersion'].currentValue);
173
+ break;
174
+ case 'uploadAttachments':
175
+ this.setHostProperty('uploadAttachments', changes['uploadAttachments'].currentValue);
176
+ break;
177
+ case 'fileIcons':
178
+ this.setHostProperty('fileIcons', changes['fileIcons'].currentValue);
179
+ break;
180
+ case 'size':
181
+ this.setHostProperty('size', changes['size'].currentValue);
182
+ break;
183
+ default:
184
+ break;
185
+ }
186
+ }
187
+ }
188
+ /**
189
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
190
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
191
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
192
+ * undefined / null by clearing their bindings.
193
+ */
194
+ setHostProperty(key, value) {
195
+ this.renderer.setProperty(this.host, key, value);
196
+ }
197
+ bindEvents() {
198
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'prompt-submitted', (event) => {
199
+ const typed = event;
200
+ this.promptSubmitted.emit(typed);
201
+ }));
202
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'prompt-stopped', (event) => {
203
+ const typed = event;
204
+ this.promptStopped.emit(typed);
205
+ }));
206
+ }
207
+ static ɵfac = function LuzmoAiInteractionTextarea_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiInteractionTextarea)(); };
208
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiInteractionTextarea, selectors: [["luzmo-ai-interaction-textarea"]], inputs: { placeholder: "placeholder", selectedDatasets: "selectedDatasets", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], singleLine: [2, "singleLine", "singleLine", booleanAttribute], hideDatasetButton: [2, "hideDatasetButton", "hideDatasetButton", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], maxVisibleSelectedDatasets: "maxVisibleSelectedDatasets", selectedAgent: "selectedAgent", hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideSelectedDatasets: [2, "hideSelectedDatasets", "hideSelectedDatasets", booleanAttribute], disableColumnMentions: [2, "disableColumnMentions", "disableColumnMentions", booleanAttribute], isGenerating: [2, "isGenerating", "isGenerating", booleanAttribute], stoppable: [2, "stoppable", "stoppable", booleanAttribute], value: "value", retainOnSubmit: [2, "retainOnSubmit", "retainOnSubmit", booleanAttribute], requireDataset: [2, "requireDataset", "requireDataset", booleanAttribute], allowImages: [2, "allowImages", "allowImages", booleanAttribute], allowVoiceInput: [2, "allowVoiceInput", "allowVoiceInput", booleanAttribute], acceptedFileTypes: "acceptedFileTypes", apiVersion: "apiVersion", uploadAttachments: "uploadAttachments", fileIcons: "fileIcons", size: "size" }, outputs: { promptSubmitted: "promptSubmitted", promptStopped: "promptStopped" }, exportAs: ["luzmoAiInteractionTextarea"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiInteractionTextarea_Template(rf, ctx) { if (rf & 1) {
209
+ i0.ɵɵprojectionDef();
210
+ i0.ɵɵprojection(0);
211
+ } }, encapsulation: 2 });
212
+ }
213
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoAiInteractionTextarea, [{
214
+ type: Component,
215
+ args: [{
216
+ selector: 'luzmo-ai-interaction-textarea',
217
+ exportAs: 'luzmoAiInteractionTextarea',
218
+ standalone: true,
219
+ changeDetection: ChangeDetectionStrategy.OnPush,
220
+ template: '<ng-content />'
221
+ }]
222
+ }], () => [], { placeholder: [{
223
+ type: Input,
224
+ args: [{ alias: 'placeholder' }]
225
+ }], selectedDatasets: [{
226
+ type: Input,
227
+ args: [{ alias: 'selectedDatasets' }]
228
+ }], authKey: [{
229
+ type: Input,
230
+ args: [{ alias: 'authKey' }]
231
+ }], authToken: [{
232
+ type: Input,
233
+ args: [{ alias: 'authToken' }]
234
+ }], apiUrl: [{
235
+ type: Input,
236
+ args: [{ alias: 'apiUrl' }]
237
+ }], appServer: [{
238
+ type: Input,
239
+ args: [{ alias: 'appServer' }]
240
+ }], includePublicDatasets: [{
241
+ type: Input,
242
+ args: [{ alias: 'includePublicDatasets', transform: booleanAttribute }]
243
+ }], flagOpendata: [{
244
+ type: Input,
245
+ args: [{ alias: 'flagOpendata', transform: booleanAttribute }]
246
+ }], disabled: [{
247
+ type: Input,
248
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
249
+ }], singleLine: [{
250
+ type: Input,
251
+ args: [{ alias: 'singleLine', transform: booleanAttribute }]
252
+ }], hideDatasetButton: [{
253
+ type: Input,
254
+ args: [{ alias: 'hideDatasetButton', transform: booleanAttribute }]
255
+ }], hideDatasetIcons: [{
256
+ type: Input,
257
+ args: [{ alias: 'hideDatasetIcons', transform: booleanAttribute }]
258
+ }], maxVisibleSelectedDatasets: [{
259
+ type: Input,
260
+ args: [{ alias: 'maxVisibleSelectedDatasets' }]
261
+ }], selectedAgent: [{
262
+ type: Input,
263
+ args: [{ alias: 'selectedAgent' }]
264
+ }], hideAgents: [{
265
+ type: Input,
266
+ args: [{ alias: 'hideAgents', transform: booleanAttribute }]
267
+ }], disableDatasetModification: [{
268
+ type: Input,
269
+ args: [{ alias: 'disableDatasetModification', transform: booleanAttribute }]
270
+ }], hideSelectedDatasets: [{
271
+ type: Input,
272
+ args: [{ alias: 'hideSelectedDatasets', transform: booleanAttribute }]
273
+ }], disableColumnMentions: [{
274
+ type: Input,
275
+ args: [{ alias: 'disableColumnMentions', transform: booleanAttribute }]
276
+ }], isGenerating: [{
277
+ type: Input,
278
+ args: [{ alias: 'isGenerating', transform: booleanAttribute }]
279
+ }], stoppable: [{
280
+ type: Input,
281
+ args: [{ alias: 'stoppable', transform: booleanAttribute }]
282
+ }], value: [{
283
+ type: Input,
284
+ args: [{ alias: 'value' }]
285
+ }], retainOnSubmit: [{
286
+ type: Input,
287
+ args: [{ alias: 'retainOnSubmit', transform: booleanAttribute }]
288
+ }], requireDataset: [{
289
+ type: Input,
290
+ args: [{ alias: 'requireDataset', transform: booleanAttribute }]
291
+ }], allowImages: [{
292
+ type: Input,
293
+ args: [{ alias: 'allowImages', transform: booleanAttribute }]
294
+ }], allowVoiceInput: [{
295
+ type: Input,
296
+ args: [{ alias: 'allowVoiceInput', transform: booleanAttribute }]
297
+ }], acceptedFileTypes: [{
298
+ type: Input,
299
+ args: [{ alias: 'acceptedFileTypes' }]
300
+ }], apiVersion: [{
301
+ type: Input,
302
+ args: [{ alias: 'apiVersion' }]
303
+ }], uploadAttachments: [{
304
+ type: Input,
305
+ args: [{ alias: 'uploadAttachments' }]
306
+ }], fileIcons: [{
307
+ type: Input,
308
+ args: [{ alias: 'fileIcons' }]
309
+ }], size: [{
310
+ type: Input,
311
+ args: [{ alias: 'size' }]
312
+ }], promptSubmitted: [{ type: i0.Output, args: ["promptSubmitted"] }], promptStopped: [{ type: i0.Output, args: ["promptStopped"] }] }); })();
313
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAiInteractionTextarea, { className: "LuzmoAiInteractionTextarea", filePath: "components/ai-interaction-textarea.ts", lineNumber: 16 }); })();
@@ -0,0 +1,50 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/data-field-level';
3
+ import type { LuzmoDataFieldLevel as LuzmoDataFieldLevelHostElement, DataFieldDragStartedEventDetail, DataFieldDroppedEventDetail } from '@luzmo/analytics-components-kit/data-field-level';
4
+ import type { DatasetDataField } from '@luzmo/analytics-components-kit/types';
5
+ import * as i0 from "@angular/core";
6
+ export type { DataFieldDragStartedEventDetail, DataFieldDroppedEventDetail } from '@luzmo/analytics-components-kit/data-field-level';
7
+ export declare class LuzmoDataFieldLevel 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(): LuzmoDataFieldLevelHostElement;
15
+ /** Visual treatment of the level: `highlight` to emphasize it, or `normal`. */
16
+ variant?: 'highlight' | 'normal';
17
+ /** Hides the data type icon shown before the level label. */
18
+ hideTypeIcon?: boolean;
19
+ /** Whether this is rendered as a nested sublevel row (indented under a parent field). */
20
+ sublevel?: boolean;
21
+ /** The language in which to display the level labels. */
22
+ language?: string;
23
+ /** Whether the level is disabled (non-interactive and visually muted). */
24
+ disabled?: boolean;
25
+ /** The dataset data field descriptor (column or formula field) this level represents. */
26
+ data?: DatasetDataField;
27
+ /** The size of the element */
28
+ size?: 's' | 'm' | 'l' | 'xl';
29
+ /** Announces that the data field has been dropped */
30
+ readonly luzmoDataFieldDropped: import("@angular/core").OutputEmitterRef<CustomEvent<DataFieldDroppedEventDetail>>;
31
+ /** Announces that the drag is started on the data field */
32
+ readonly luzmoDataFieldDragStarted: import("@angular/core").OutputEmitterRef<CustomEvent<DataFieldDragStartedEventDetail>>;
33
+ constructor();
34
+ ngOnChanges(changes: SimpleChanges): void;
35
+ /**
36
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
37
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
38
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
39
+ * undefined / null by clearing their bindings.
40
+ */
41
+ private setHostProperty;
42
+ private bindEvents;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDataFieldLevel, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDataFieldLevel, "luzmo-data-field-level", ["luzmoDataFieldLevel"], { "variant": { "alias": "variant"; "required": false; }; "hideTypeIcon": { "alias": "hideTypeIcon"; "required": false; }; "sublevel": { "alias": "sublevel"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "data": { "alias": "data"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoDataFieldDropped": "luzmoDataFieldDropped"; "luzmoDataFieldDragStarted": "luzmoDataFieldDragStarted"; }, never, ["*"], true, never>;
45
+ static ngAcceptInputType_hideTypeIcon: unknown;
46
+ static ngAcceptInputType_sublevel: unknown;
47
+ static ngAcceptInputType_disabled: unknown;
48
+ }
49
+ /** The underlying custom element type for LuzmoDataFieldLevel */
50
+ export type LuzmoDataFieldLevelElement = LuzmoDataFieldLevelHostElement;
@@ -0,0 +1,129 @@
1
+ import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/data-field-level';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-data-field-level>
7
+ */
8
+ export class LuzmoDataFieldLevel {
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
+ /** Visual treatment of the level: `highlight` to emphasize it, or `normal`. */
19
+ variant;
20
+ /** Hides the data type icon shown before the level label. */
21
+ hideTypeIcon;
22
+ /** Whether this is rendered as a nested sublevel row (indented under a parent field). */
23
+ sublevel;
24
+ /** The language in which to display the level labels. */
25
+ language;
26
+ /** Whether the level is disabled (non-interactive and visually muted). */
27
+ disabled;
28
+ /** The dataset data field descriptor (column or formula field) this level represents. */
29
+ data;
30
+ /** The size of the element */
31
+ size;
32
+ /** Announces that the data field has been dropped */
33
+ luzmoDataFieldDropped = output({ alias: 'luzmoDataFieldDropped' });
34
+ /** Announces that the drag is started on the data field */
35
+ luzmoDataFieldDragStarted = output({ alias: 'luzmoDataFieldDragStarted' });
36
+ constructor() {
37
+ this.bindEvents();
38
+ this.destroyRef.onDestroy(() => {
39
+ for (const cleanup of this.listenerCleanup) {
40
+ cleanup();
41
+ }
42
+ });
43
+ }
44
+ ngOnChanges(changes) {
45
+ for (const key of Object.keys(changes)) {
46
+ switch (key) {
47
+ case 'variant':
48
+ this.setHostProperty('variant', changes['variant'].currentValue);
49
+ break;
50
+ case 'hideTypeIcon':
51
+ this.setHostProperty('hideTypeIcon', changes['hideTypeIcon'].currentValue);
52
+ break;
53
+ case 'sublevel':
54
+ this.setHostProperty('sublevel', changes['sublevel'].currentValue);
55
+ break;
56
+ case 'language':
57
+ this.setHostProperty('language', changes['language'].currentValue);
58
+ break;
59
+ case 'disabled':
60
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
61
+ break;
62
+ case 'data':
63
+ this.setHostProperty('data', changes['data'].currentValue);
64
+ break;
65
+ case 'size':
66
+ this.setHostProperty('size', changes['size'].currentValue);
67
+ break;
68
+ default:
69
+ break;
70
+ }
71
+ }
72
+ }
73
+ /**
74
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
75
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
76
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
77
+ * undefined / null by clearing their bindings.
78
+ */
79
+ setHostProperty(key, value) {
80
+ this.renderer.setProperty(this.host, key, value);
81
+ }
82
+ bindEvents() {
83
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-data-field-dropped', (event) => {
84
+ const typed = event;
85
+ this.luzmoDataFieldDropped.emit(typed);
86
+ }));
87
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-data-field-drag-started', (event) => {
88
+ const typed = event;
89
+ this.luzmoDataFieldDragStarted.emit(typed);
90
+ }));
91
+ }
92
+ static ɵfac = function LuzmoDataFieldLevel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDataFieldLevel)(); };
93
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDataFieldLevel, selectors: [["luzmo-data-field-level"]], inputs: { variant: "variant", hideTypeIcon: [2, "hideTypeIcon", "hideTypeIcon", booleanAttribute], sublevel: [2, "sublevel", "sublevel", booleanAttribute], language: "language", disabled: [2, "disabled", "disabled", booleanAttribute], data: "data", size: "size" }, outputs: { luzmoDataFieldDropped: "luzmoDataFieldDropped", luzmoDataFieldDragStarted: "luzmoDataFieldDragStarted" }, exportAs: ["luzmoDataFieldLevel"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDataFieldLevel_Template(rf, ctx) { if (rf & 1) {
94
+ i0.ɵɵprojectionDef();
95
+ i0.ɵɵprojection(0);
96
+ } }, encapsulation: 2 });
97
+ }
98
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoDataFieldLevel, [{
99
+ type: Component,
100
+ args: [{
101
+ selector: 'luzmo-data-field-level',
102
+ exportAs: 'luzmoDataFieldLevel',
103
+ standalone: true,
104
+ changeDetection: ChangeDetectionStrategy.OnPush,
105
+ template: '<ng-content />'
106
+ }]
107
+ }], () => [], { variant: [{
108
+ type: Input,
109
+ args: [{ alias: 'variant' }]
110
+ }], hideTypeIcon: [{
111
+ type: Input,
112
+ args: [{ alias: 'hideTypeIcon', transform: booleanAttribute }]
113
+ }], sublevel: [{
114
+ type: Input,
115
+ args: [{ alias: 'sublevel', transform: booleanAttribute }]
116
+ }], language: [{
117
+ type: Input,
118
+ args: [{ alias: 'language' }]
119
+ }], disabled: [{
120
+ type: Input,
121
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
122
+ }], data: [{
123
+ type: Input,
124
+ args: [{ alias: 'data' }]
125
+ }], size: [{
126
+ type: Input,
127
+ args: [{ alias: 'size' }]
128
+ }], luzmoDataFieldDropped: [{ type: i0.Output, args: ["luzmoDataFieldDropped"] }], luzmoDataFieldDragStarted: [{ type: i0.Output, args: ["luzmoDataFieldDragStarted"] }] }); })();
129
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoDataFieldLevel, { className: "LuzmoDataFieldLevel", filePath: "components/data-field-level.ts", lineNumber: 17 }); })();
@@ -1,8 +1,8 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/data-field-panel';
3
- import type { LuzmoDataFieldPanel as LuzmoDataFieldPanelHostElement, DatasetChangedEventDetail, DatasetDataFields } from '@luzmo/analytics-components-kit/data-field-panel';
3
+ import type { LuzmoDataFieldPanel as LuzmoDataFieldPanelHostElement, DataFieldDragStartedEventDetail, DataFieldDroppedEventDetail, DatasetChangedEventDetail, DatasetDataFields } from '@luzmo/analytics-components-kit/data-field-panel';
4
4
  import * as i0 from "@angular/core";
5
- export type { DatasetChangedEventDetail, DatasetDataFields } from '@luzmo/analytics-components-kit/data-field-panel';
5
+ export type { DataFieldDragStartedEventDetail, DataFieldDroppedEventDetail, DatasetChangedEventDetail, DatasetDataFields } from '@luzmo/analytics-components-kit/data-field-panel';
6
6
  export declare class LuzmoDataFieldPanel implements OnChanges {
7
7
  private readonly elementRef;
8
8
  private readonly renderer;
@@ -60,9 +60,9 @@ export declare class LuzmoDataFieldPanel implements OnChanges {
60
60
  /** Announces that the selected dataset has changed */
61
61
  readonly luzmoDatasetChanged: import("@angular/core").OutputEmitterRef<CustomEvent<DatasetChangedEventDetail>>;
62
62
  /** Announces that a data field has been dropped */
63
- readonly luzmoDataFieldDropped: import("@angular/core").OutputEmitterRef<unknown>;
63
+ readonly luzmoDataFieldDropped: import("@angular/core").OutputEmitterRef<CustomEvent<DataFieldDroppedEventDetail>>;
64
64
  /** Announces that a drag has started on a data field */
65
- readonly luzmoDataFieldDragStarted: import("@angular/core").OutputEmitterRef<unknown>;
65
+ readonly luzmoDataFieldDragStarted: import("@angular/core").OutputEmitterRef<CustomEvent<DataFieldDragStartedEventDetail>>;
66
66
  constructor();
67
67
  ngOnChanges(changes: SimpleChanges): void;
68
68
  /**
@@ -1,9 +1,9 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/data-field';
3
- import type { LuzmoDataField as LuzmoDataFieldHostElement } from '@luzmo/analytics-components-kit/data-field';
3
+ import type { LuzmoDataField as LuzmoDataFieldHostElement, DataFieldDragStartedEventDetail, DataFieldDroppedEventDetail } from '@luzmo/analytics-components-kit/data-field';
4
4
  import type { DatasetDataField } from '@luzmo/analytics-components-kit/types';
5
5
  import * as i0 from "@angular/core";
6
- export type { DatasetDataFieldWithSublevel } from '@luzmo/analytics-components-kit/data-field';
6
+ export type { DataFieldDragStartedEventDetail, DataFieldDroppedEventDetail, DatasetDataFieldWithSublevel } from '@luzmo/analytics-components-kit/data-field';
7
7
  export declare class LuzmoDataField implements OnChanges {
8
8
  private readonly elementRef;
9
9
  private readonly renderer;
@@ -27,9 +27,9 @@ export declare class LuzmoDataField implements OnChanges {
27
27
  /** The size of the element */
28
28
  size?: 's' | 'm' | 'l' | 'xl';
29
29
  /** Announces that the data field has been dropped */
30
- readonly luzmoDataFieldDropped: import("@angular/core").OutputEmitterRef<unknown>;
30
+ readonly luzmoDataFieldDropped: import("@angular/core").OutputEmitterRef<CustomEvent<DataFieldDroppedEventDetail>>;
31
31
  /** Announces that the drag is started on the data field */
32
- readonly luzmoDataFieldDragStarted: import("@angular/core").OutputEmitterRef<unknown>;
32
+ readonly luzmoDataFieldDragStarted: import("@angular/core").OutputEmitterRef<CustomEvent<DataFieldDragStartedEventDetail>>;
33
33
  constructor();
34
34
  ngOnChanges(changes: SimpleChanges): void;
35
35
  /**
@@ -0,0 +1,87 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/data-fields-select';
3
+ import type { LuzmoDataFieldsSelect as LuzmoDataFieldsSelectHostElement, AdHocFormulaInput, DataFieldsSelectedEventDetail } from '@luzmo/analytics-components-kit/data-fields-select';
4
+ import type { DatasetFormulaMetadata, DatasetMetadata } from '@luzmo/analytics-components-kit/types';
5
+ import type { Placement } from '@luzmo/lucero';
6
+ import * as i0 from "@angular/core";
7
+ export type { AdHocFormulaFieldData, AdHocFormulaInput, DataFieldsSelectedEventDetail } from '@luzmo/analytics-components-kit/data-fields-select';
8
+ export declare class LuzmoDataFieldsSelect 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(): LuzmoDataFieldsSelectHostElement;
16
+ /** The language to use for locale-aware formatting and labels */
17
+ contentLanguage?: string;
18
+ /** The accessible label for the select (used for aria-label) */
19
+ label?: string;
20
+ /** Where to show icons */
21
+ icons?: 'none' | 'menu-only' | 'all';
22
+ /** Whether datetime and hierarchy columns expand into selectable sublevels. Turn this off in contexts that address the column as a whole, so the column stays selectable by its own id. */
23
+ levels?: 'on' | 'off';
24
+ /** Allow no selection. If true, the picker will not show a value when no item is selected. Else if no value is provided it will pick the first item. */
25
+ allowEmpty?: boolean;
26
+ /** The placeholder text for the picker is no value selected. If allowEmpty is true, this will be used as the label. */
27
+ placeholder?: string;
28
+ /** Whether the picker allows single or multiple selections. */
29
+ selects?: 'single' | 'multiple';
30
+ /** The IDs of the selected data fields. If not provided, the first item will be selected when `allowEmpty` is false and the picker is not readonly. */
31
+ value?: string[];
32
+ /** Whether the picker is in retrieving state (shows loading indicator) */
33
+ retrieving?: boolean;
34
+ /** Whether the picker is invalid - eg. the dataFieldId is not found in the datasetsDataFields or query failed to fetch data */
35
+ invalid?: boolean;
36
+ /** Whether the picker is clearable */
37
+ clearable?: boolean;
38
+ /** Whether the picker is in pending state */
39
+ pending?: boolean;
40
+ /** Whether the picker is disabled */
41
+ disabled?: boolean;
42
+ /** Prevents selection changes while preserving the picker's normal appearance. */
43
+ readonly?: boolean;
44
+ /** Keeps the picker editable while applying the select's reduced-chrome treatment. */
45
+ quiet?: boolean;
46
+ /** Whether to show a search field in the dropdown */
47
+ search?: 'on' | 'off' | 'auto';
48
+ /** The placement of the dropdown menu */
49
+ placement?: Placement;
50
+ /** The datasets and their dataFields to display. The `formulas` array accepts both saved formulas (with `id`) and ad hoc formulas (with a `formula` expression string). Ad hoc formulas render inline with a formula icon. */
51
+ datasetsDataFields?: (Pick<DatasetMetadata, 'id' | 'name' | 'columns'> & {
52
+ formulas: (DatasetFormulaMetadata | AdHocFormulaInput)[];
53
+ })[];
54
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
55
+ language?: string;
56
+ /** The size of the element */
57
+ size?: 's' | 'm' | 'l' | 'xl';
58
+ /** When this control is rendered, focus it automatically */
59
+ autofocus?: boolean;
60
+ /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
61
+ tabIndex?: number;
62
+ /** Emitted when data fields are selected */
63
+ readonly luzmoDataFieldsSelected: import("@angular/core").OutputEmitterRef<CustomEvent<DataFieldsSelectedEventDetail>>;
64
+ constructor();
65
+ ngOnChanges(changes: SimpleChanges): void;
66
+ /**
67
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
68
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
69
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
70
+ * undefined / null by clearing their bindings.
71
+ */
72
+ private setHostProperty;
73
+ private bindEvents;
74
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDataFieldsSelect, never>;
75
+ 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
+ static ngAcceptInputType_allowEmpty: unknown;
77
+ static ngAcceptInputType_retrieving: unknown;
78
+ static ngAcceptInputType_invalid: unknown;
79
+ static ngAcceptInputType_clearable: unknown;
80
+ static ngAcceptInputType_pending: unknown;
81
+ static ngAcceptInputType_disabled: unknown;
82
+ static ngAcceptInputType_readonly: unknown;
83
+ static ngAcceptInputType_quiet: unknown;
84
+ static ngAcceptInputType_autofocus: unknown;
85
+ }
86
+ /** The underlying custom element type for LuzmoDataFieldsSelect */
87
+ export type LuzmoDataFieldsSelectElement = LuzmoDataFieldsSelectHostElement;