@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,155 @@
1
+ import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/filter-value-picker-numeric';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-filter-value-picker-numeric>
7
+ */
8
+ export class LuzmoFilterValuePickerNumeric {
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
+ /** The API URL of the databroker */
19
+ apiUrl;
20
+ /** The auth key of the databroker */
21
+ authKey;
22
+ /** The auth token of the databroker */
23
+ authToken;
24
+ /** The cache time of the databroker */
25
+ cacheTime;
26
+ /** The language to use for locale-aware formatting and labels */
27
+ contentLanguage;
28
+ /** The filter used to retrieve the value */
29
+ filter;
30
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
31
+ language;
32
+ /** The size of the element */
33
+ size;
34
+ /** Disable this control. It will not receive focus or events */
35
+ disabled;
36
+ /** When this control is rendered, focus it automatically */
37
+ autofocus;
38
+ /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
39
+ tabIndex;
40
+ /** Fired when the numeric filter value changes; `detail.value` holds the new number or range. */
41
+ luzmoFilterValueChanged = output({ alias: 'luzmoFilterValueChanged' });
42
+ constructor() {
43
+ this.bindEvents();
44
+ this.destroyRef.onDestroy(() => {
45
+ for (const cleanup of this.listenerCleanup) {
46
+ cleanup();
47
+ }
48
+ });
49
+ }
50
+ ngOnChanges(changes) {
51
+ for (const key of Object.keys(changes)) {
52
+ switch (key) {
53
+ case 'apiUrl':
54
+ this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
55
+ break;
56
+ case 'authKey':
57
+ this.setHostProperty('authKey', changes['authKey'].currentValue);
58
+ break;
59
+ case 'authToken':
60
+ this.setHostProperty('authToken', changes['authToken'].currentValue);
61
+ break;
62
+ case 'cacheTime':
63
+ this.setHostProperty('cacheTime', changes['cacheTime'].currentValue);
64
+ break;
65
+ case 'contentLanguage':
66
+ this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
67
+ break;
68
+ case 'filter':
69
+ this.setHostProperty('filter', changes['filter'].currentValue);
70
+ break;
71
+ case 'language':
72
+ this.setHostProperty('language', changes['language'].currentValue);
73
+ break;
74
+ case 'size':
75
+ this.setHostProperty('size', changes['size'].currentValue);
76
+ break;
77
+ case 'disabled':
78
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
79
+ break;
80
+ case 'autofocus':
81
+ this.setHostProperty('autofocus', changes['autofocus'].currentValue);
82
+ break;
83
+ case 'tabIndex':
84
+ this.setHostProperty('tabIndex', changes['tabIndex'].currentValue);
85
+ break;
86
+ default:
87
+ break;
88
+ }
89
+ }
90
+ }
91
+ /**
92
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
93
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
94
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
95
+ * undefined / null by clearing their bindings.
96
+ */
97
+ setHostProperty(key, value) {
98
+ this.renderer.setProperty(this.host, key, value);
99
+ }
100
+ bindEvents() {
101
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-filter-value-changed', (event) => {
102
+ const typed = event;
103
+ this.luzmoFilterValueChanged.emit(typed);
104
+ }));
105
+ }
106
+ static ɵfac = function LuzmoFilterValuePickerNumeric_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterValuePickerNumeric)(); };
107
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterValuePickerNumeric, selectors: [["luzmo-filter-value-picker-numeric"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", filter: "filter", language: "language", size: "size", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoFilterValueChanged: "luzmoFilterValueChanged" }, exportAs: ["luzmoFilterValuePickerNumeric"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterValuePickerNumeric_Template(rf, ctx) { if (rf & 1) {
108
+ i0.ɵɵprojectionDef();
109
+ i0.ɵɵprojection(0);
110
+ } }, encapsulation: 2 });
111
+ }
112
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFilterValuePickerNumeric, [{
113
+ type: Component,
114
+ args: [{
115
+ selector: 'luzmo-filter-value-picker-numeric',
116
+ exportAs: 'luzmoFilterValuePickerNumeric',
117
+ standalone: true,
118
+ changeDetection: ChangeDetectionStrategy.OnPush,
119
+ template: '<ng-content />'
120
+ }]
121
+ }], () => [], { apiUrl: [{
122
+ type: Input,
123
+ args: [{ alias: 'apiUrl' }]
124
+ }], authKey: [{
125
+ type: Input,
126
+ args: [{ alias: 'authKey' }]
127
+ }], authToken: [{
128
+ type: Input,
129
+ args: [{ alias: 'authToken' }]
130
+ }], cacheTime: [{
131
+ type: Input,
132
+ args: [{ alias: 'cacheTime' }]
133
+ }], contentLanguage: [{
134
+ type: Input,
135
+ args: [{ alias: 'contentLanguage' }]
136
+ }], filter: [{
137
+ type: Input,
138
+ args: [{ alias: 'filter' }]
139
+ }], language: [{
140
+ type: Input,
141
+ args: [{ alias: 'language' }]
142
+ }], size: [{
143
+ type: Input,
144
+ args: [{ alias: 'size' }]
145
+ }], disabled: [{
146
+ type: Input,
147
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
148
+ }], autofocus: [{
149
+ type: Input,
150
+ args: [{ alias: 'autofocus', transform: booleanAttribute }]
151
+ }], tabIndex: [{
152
+ type: Input,
153
+ args: [{ alias: 'tabIndex' }]
154
+ }], luzmoFilterValueChanged: [{ type: i0.Output, args: ["luzmoFilterValueChanged"] }] }); })();
155
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterValuePickerNumeric, { className: "LuzmoFilterValuePickerNumeric", filePath: "components/filter-value-picker-numeric.ts", lineNumber: 15 }); })();
@@ -0,0 +1,57 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/filter-value-picker';
3
+ import type { LuzmoFilterValuePicker as LuzmoFilterValuePickerHostElement } from '@luzmo/analytics-components-kit/filter-value-picker';
4
+ import * as i0 from "@angular/core";
5
+ export declare class LuzmoFilterValuePicker implements OnChanges {
6
+ private readonly elementRef;
7
+ private readonly renderer;
8
+ private readonly destroyRef;
9
+ private readonly host;
10
+ private readonly listenerCleanup;
11
+ /** The underlying custom element instance. Use to call imperative methods. */
12
+ get nativeElement(): LuzmoFilterValuePickerHostElement;
13
+ /** The API URL of the databroker */
14
+ apiUrl?: string;
15
+ /** The auth key of the databroker */
16
+ authKey?: string;
17
+ /** The auth token of the databroker */
18
+ authToken?: string;
19
+ /** The cache time of the databroker */
20
+ cacheTime?: number;
21
+ /** The language to use for locale-aware formatting and labels */
22
+ contentLanguage?: string;
23
+ /** The time zone to use for the date picker */
24
+ timeZone?: string;
25
+ /** The type value picker to render */
26
+ valueType?: 'hierarchy' | 'numeric' | 'datetime';
27
+ /** The filter for which to render the value picker */
28
+ filter?: any;
29
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
30
+ language?: string;
31
+ /** The size of the element */
32
+ size?: 's' | 'm' | 'l' | 'xl';
33
+ /** Disable this control. It will not receive focus or events */
34
+ disabled?: boolean;
35
+ /** When this control is rendered, focus it automatically */
36
+ autofocus?: boolean;
37
+ /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
38
+ tabIndex?: number;
39
+ /** Fired when the filter value changes; `detail.value` holds the new value. */
40
+ readonly luzmoFilterValueChanged: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
41
+ constructor();
42
+ ngOnChanges(changes: SimpleChanges): void;
43
+ /**
44
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
45
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
46
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
47
+ * undefined / null by clearing their bindings.
48
+ */
49
+ private setHostProperty;
50
+ private bindEvents;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilterValuePicker, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterValuePicker, "luzmo-filter-value-picker", ["luzmoFilterValuePicker"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "valueType": { "alias": "valueType"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoFilterValueChanged": "luzmoFilterValueChanged"; }, never, ["*"], true, never>;
53
+ static ngAcceptInputType_disabled: unknown;
54
+ static ngAcceptInputType_autofocus: unknown;
55
+ }
56
+ /** The underlying custom element type for LuzmoFilterValuePicker */
57
+ export type LuzmoFilterValuePickerElement = LuzmoFilterValuePickerHostElement;
@@ -0,0 +1,171 @@
1
+ import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/filter-value-picker';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-filter-value-picker>
7
+ */
8
+ export class LuzmoFilterValuePicker {
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
+ /** The API URL of the databroker */
19
+ apiUrl;
20
+ /** The auth key of the databroker */
21
+ authKey;
22
+ /** The auth token of the databroker */
23
+ authToken;
24
+ /** The cache time of the databroker */
25
+ cacheTime;
26
+ /** The language to use for locale-aware formatting and labels */
27
+ contentLanguage;
28
+ /** The time zone to use for the date picker */
29
+ timeZone;
30
+ /** The type value picker to render */
31
+ valueType;
32
+ /** The filter for which to render the value picker */
33
+ filter;
34
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
35
+ language;
36
+ /** The size of the element */
37
+ size;
38
+ /** Disable this control. It will not receive focus or events */
39
+ disabled;
40
+ /** When this control is rendered, focus it automatically */
41
+ autofocus;
42
+ /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
43
+ tabIndex;
44
+ /** Fired when the filter value changes; `detail.value` holds the new value. */
45
+ luzmoFilterValueChanged = output({ alias: 'luzmoFilterValueChanged' });
46
+ constructor() {
47
+ this.bindEvents();
48
+ this.destroyRef.onDestroy(() => {
49
+ for (const cleanup of this.listenerCleanup) {
50
+ cleanup();
51
+ }
52
+ });
53
+ }
54
+ ngOnChanges(changes) {
55
+ for (const key of Object.keys(changes)) {
56
+ switch (key) {
57
+ case 'apiUrl':
58
+ this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
59
+ break;
60
+ case 'authKey':
61
+ this.setHostProperty('authKey', changes['authKey'].currentValue);
62
+ break;
63
+ case 'authToken':
64
+ this.setHostProperty('authToken', changes['authToken'].currentValue);
65
+ break;
66
+ case 'cacheTime':
67
+ this.setHostProperty('cacheTime', changes['cacheTime'].currentValue);
68
+ break;
69
+ case 'contentLanguage':
70
+ this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
71
+ break;
72
+ case 'timeZone':
73
+ this.setHostProperty('timeZone', changes['timeZone'].currentValue);
74
+ break;
75
+ case 'valueType':
76
+ this.setHostProperty('valueType', changes['valueType'].currentValue);
77
+ break;
78
+ case 'filter':
79
+ this.setHostProperty('filter', changes['filter'].currentValue);
80
+ break;
81
+ case 'language':
82
+ this.setHostProperty('language', changes['language'].currentValue);
83
+ break;
84
+ case 'size':
85
+ this.setHostProperty('size', changes['size'].currentValue);
86
+ break;
87
+ case 'disabled':
88
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
89
+ break;
90
+ case 'autofocus':
91
+ this.setHostProperty('autofocus', changes['autofocus'].currentValue);
92
+ break;
93
+ case 'tabIndex':
94
+ this.setHostProperty('tabIndex', changes['tabIndex'].currentValue);
95
+ break;
96
+ default:
97
+ break;
98
+ }
99
+ }
100
+ }
101
+ /**
102
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
103
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
104
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
105
+ * undefined / null by clearing their bindings.
106
+ */
107
+ setHostProperty(key, value) {
108
+ this.renderer.setProperty(this.host, key, value);
109
+ }
110
+ bindEvents() {
111
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-filter-value-changed', (event) => {
112
+ const typed = event;
113
+ this.luzmoFilterValueChanged.emit(typed);
114
+ }));
115
+ }
116
+ static ɵfac = function LuzmoFilterValuePicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterValuePicker)(); };
117
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterValuePicker, selectors: [["luzmo-filter-value-picker"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", timeZone: "timeZone", valueType: "valueType", filter: "filter", language: "language", size: "size", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoFilterValueChanged: "luzmoFilterValueChanged" }, exportAs: ["luzmoFilterValuePicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterValuePicker_Template(rf, ctx) { if (rf & 1) {
118
+ i0.ɵɵprojectionDef();
119
+ i0.ɵɵprojection(0);
120
+ } }, encapsulation: 2 });
121
+ }
122
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFilterValuePicker, [{
123
+ type: Component,
124
+ args: [{
125
+ selector: 'luzmo-filter-value-picker',
126
+ exportAs: 'luzmoFilterValuePicker',
127
+ standalone: true,
128
+ changeDetection: ChangeDetectionStrategy.OnPush,
129
+ template: '<ng-content />'
130
+ }]
131
+ }], () => [], { apiUrl: [{
132
+ type: Input,
133
+ args: [{ alias: 'apiUrl' }]
134
+ }], authKey: [{
135
+ type: Input,
136
+ args: [{ alias: 'authKey' }]
137
+ }], authToken: [{
138
+ type: Input,
139
+ args: [{ alias: 'authToken' }]
140
+ }], cacheTime: [{
141
+ type: Input,
142
+ args: [{ alias: 'cacheTime' }]
143
+ }], contentLanguage: [{
144
+ type: Input,
145
+ args: [{ alias: 'contentLanguage' }]
146
+ }], timeZone: [{
147
+ type: Input,
148
+ args: [{ alias: 'timeZone' }]
149
+ }], valueType: [{
150
+ type: Input,
151
+ args: [{ alias: 'valueType' }]
152
+ }], filter: [{
153
+ type: Input,
154
+ args: [{ alias: 'filter' }]
155
+ }], language: [{
156
+ type: Input,
157
+ args: [{ alias: 'language' }]
158
+ }], size: [{
159
+ type: Input,
160
+ args: [{ alias: 'size' }]
161
+ }], disabled: [{
162
+ type: Input,
163
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
164
+ }], autofocus: [{
165
+ type: Input,
166
+ args: [{ alias: 'autofocus', transform: booleanAttribute }]
167
+ }], tabIndex: [{
168
+ type: Input,
169
+ args: [{ alias: 'tabIndex' }]
170
+ }], luzmoFilterValueChanged: [{ type: i0.Output, args: ["luzmoFilterValueChanged"] }] }); })();
171
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterValuePicker, { className: "LuzmoFilterValuePicker", filePath: "components/filter-value-picker.ts", lineNumber: 15 }); })();
@@ -1,8 +1,8 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/filters';
3
- import type { LuzmoFilters as LuzmoFiltersHostElement, FilterParameter, FiltersChangedEventDetail, FiltersFormat, FiltersInput } from '@luzmo/analytics-components-kit/filters';
3
+ import type { LuzmoFilters as LuzmoFiltersHostElement, FilterColumnDisplay, FilterParameter, FiltersChangedEventDetail, FiltersDisplay, FiltersFormat, FiltersInput } from '@luzmo/analytics-components-kit/filters';
4
4
  import * as i0 from "@angular/core";
5
- export type { CleanFilter, CleanFilterClauseGroup, CleanFilterGroup, CleanRetrievedFilterGroup, DashboardFilterOutput, DetectedFiltersFormat, FilterClause, FilterCondition, FilterGroup, FilterParameter, FilterParameterEventDetail, FilterParameterType, FiltersChangedEventDetail, FiltersFormat, FiltersInput, FiltersOutput, ItemFilterOutput, TransformFiltersOptions } from '@luzmo/analytics-components-kit/filters';
5
+ export type { CleanFilter, CleanFilterClauseGroup, CleanFilterGroup, CleanRetrievedFilterGroup, DashboardFilterOutput, DetectedFiltersFormat, FilterClause, FilterColumnDisplay, FilterCondition, FilterGroup, FilterParameter, FilterParameterEventDetail, FilterParameterType, FiltersChangedEventDetail, FiltersDisplay, FiltersFormat, FiltersInput, FiltersOutput, ItemFilterOutput, TransformFiltersOptions } from '@luzmo/analytics-components-kit/filters';
6
6
  export declare class LuzmoFilters implements OnChanges {
7
7
  private readonly elementRef;
8
8
  private readonly renderer;
@@ -29,6 +29,14 @@ export declare class LuzmoFilters implements OnChanges {
29
29
  filters?: FiltersInput;
30
30
  /** Output format for the `luzmo-filters-changed` event. `canonical` emits `ItemFilterGroup[]`; `clean` emits the clean clause groups that aligned hosts consume. A tree that cannot be represented cleanly falls back to canonical output, and the event says which format it carries. */
31
31
  format?: FiltersFormat;
32
+ /** How the filters are presented. `rich` is the editable group editor. `text` is a read-only sentence, with parentheses around nested AND/OR groups. `outline` is one wrapping filter per line inside bracket rails, and can delete a filter unless `readonly` is set. */
33
+ display?: FiltersDisplay;
34
+ /** Presentation of column and formula references in text and outline displays. */
35
+ columnDisplay?: FilterColumnDisplay;
36
+ /** Removes rich-editor control chrome while keeping the filters editable. */
37
+ quiet?: boolean;
38
+ /** Prevents changes while preserving the selected display and visual treatment. In `outline`, this hides the delete buttons. */
39
+ readonly?: boolean;
32
40
  /** Whether parameter-backed filter values can be created and selected. */
33
41
  allowParameters?: boolean;
34
42
  /** Consumer-owned parameter definitions available to filter rows. */
@@ -45,7 +53,7 @@ export declare class LuzmoFilters implements OnChanges {
45
53
  autofocus?: boolean;
46
54
  /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
47
55
  tabIndex?: number;
48
- /** Announces that the filters have changed, carrying the emitted groups and the format they are in */
56
+ /** Announces that the filters have changed, carrying the emitted groups and the format they are in. `display="text"` never fires this. Outline fires it after a filter is deleted. */
49
57
  readonly luzmoFiltersChanged: import("@angular/core").OutputEmitterRef<CustomEvent<FiltersChangedEventDetail>>;
50
58
  /** Announces that a parameter was created and added to `parameters`. */
51
59
  readonly luzmoParameterCreated: import("@angular/core").OutputEmitterRef<CustomEvent<{
@@ -66,7 +74,9 @@ export declare class LuzmoFilters implements OnChanges {
66
74
  private setHostProperty;
67
75
  private bindEvents;
68
76
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilters, never>;
69
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilters, "luzmo-filters", ["luzmoFilters"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "format": { "alias": "format"; "required": false; }; "allowParameters": { "alias": "allowParameters"; "required": false; }; "parameters": { "alias": "parameters"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoFiltersChanged": "luzmoFiltersChanged"; "luzmoParameterCreated": "luzmoParameterCreated"; "luzmoParameterRemoved": "luzmoParameterRemoved"; }, never, ["*"], true, never>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilters, "luzmo-filters", ["luzmoFilters"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "format": { "alias": "format"; "required": false; }; "display": { "alias": "display"; "required": false; }; "columnDisplay": { "alias": "columnDisplay"; "required": false; }; "quiet": { "alias": "quiet"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "allowParameters": { "alias": "allowParameters"; "required": false; }; "parameters": { "alias": "parameters"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoFiltersChanged": "luzmoFiltersChanged"; "luzmoParameterCreated": "luzmoParameterCreated"; "luzmoParameterRemoved": "luzmoParameterRemoved"; }, never, ["*"], true, never>;
78
+ static ngAcceptInputType_quiet: unknown;
79
+ static ngAcceptInputType_readonly: unknown;
70
80
  static ngAcceptInputType_allowParameters: unknown;
71
81
  static ngAcceptInputType_disabled: unknown;
72
82
  static ngAcceptInputType_autofocus: unknown;
@@ -4,6 +4,10 @@ import * as i0 from "@angular/core";
4
4
  const _c0 = ["*"];
5
5
  /**
6
6
  * Angular wrapper component for <luzmo-filters>
7
+ *
8
+ * @csspart filters-text - The inline sentence shown when `display` is `text`.
9
+ * @csspart filters-outline - The bracket layout shown when `display` is `outline`.
10
+ * @csspart filters-outline-row - One filter row in the outline, including its delete button when shown.
7
11
  */
8
12
  export class LuzmoFilters {
9
13
  elementRef = inject(ElementRef);
@@ -33,6 +37,14 @@ export class LuzmoFilters {
33
37
  filters;
34
38
  /** Output format for the `luzmo-filters-changed` event. `canonical` emits `ItemFilterGroup[]`; `clean` emits the clean clause groups that aligned hosts consume. A tree that cannot be represented cleanly falls back to canonical output, and the event says which format it carries. */
35
39
  format;
40
+ /** How the filters are presented. `rich` is the editable group editor. `text` is a read-only sentence, with parentheses around nested AND/OR groups. `outline` is one wrapping filter per line inside bracket rails, and can delete a filter unless `readonly` is set. */
41
+ display;
42
+ /** Presentation of column and formula references in text and outline displays. */
43
+ columnDisplay;
44
+ /** Removes rich-editor control chrome while keeping the filters editable. */
45
+ quiet;
46
+ /** Prevents changes while preserving the selected display and visual treatment. In `outline`, this hides the delete buttons. */
47
+ readonly;
36
48
  /** Whether parameter-backed filter values can be created and selected. */
37
49
  allowParameters;
38
50
  /** Consumer-owned parameter definitions available to filter rows. */
@@ -49,7 +61,7 @@ export class LuzmoFilters {
49
61
  autofocus;
50
62
  /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
51
63
  tabIndex;
52
- /** Announces that the filters have changed, carrying the emitted groups and the format they are in */
64
+ /** Announces that the filters have changed, carrying the emitted groups and the format they are in. `display="text"` never fires this. Outline fires it after a filter is deleted. */
53
65
  luzmoFiltersChanged = output({ alias: 'luzmoFiltersChanged' });
54
66
  /** Announces that a parameter was created and added to `parameters`. */
55
67
  luzmoParameterCreated = output({ alias: 'luzmoParameterCreated' });
@@ -93,6 +105,18 @@ export class LuzmoFilters {
93
105
  case 'format':
94
106
  this.setHostProperty('format', changes['format'].currentValue);
95
107
  break;
108
+ case 'display':
109
+ this.setHostProperty('display', changes['display'].currentValue);
110
+ break;
111
+ case 'columnDisplay':
112
+ this.setHostProperty('columnDisplay', changes['columnDisplay'].currentValue);
113
+ break;
114
+ case 'quiet':
115
+ this.setHostProperty('quiet', changes['quiet'].currentValue);
116
+ break;
117
+ case 'readonly':
118
+ this.setHostProperty('readonly', changes['readonly'].currentValue);
119
+ break;
96
120
  case 'allowParameters':
97
121
  this.setHostProperty('allowParameters', changes['allowParameters'].currentValue);
98
122
  break;
@@ -146,7 +170,7 @@ export class LuzmoFilters {
146
170
  }));
147
171
  }
148
172
  static ɵfac = function LuzmoFilters_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilters)(); };
149
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilters, selectors: [["luzmo-filters"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", timeZone: "timeZone", datasetIds: "datasetIds", filters: "filters", format: "format", allowParameters: [2, "allowParameters", "allowParameters", booleanAttribute], parameters: "parameters", debounce: "debounce", language: "language", size: "size", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoFiltersChanged: "luzmoFiltersChanged", luzmoParameterCreated: "luzmoParameterCreated", luzmoParameterRemoved: "luzmoParameterRemoved" }, exportAs: ["luzmoFilters"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilters_Template(rf, ctx) { if (rf & 1) {
173
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilters, selectors: [["luzmo-filters"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", timeZone: "timeZone", datasetIds: "datasetIds", filters: "filters", format: "format", display: "display", columnDisplay: "columnDisplay", quiet: [2, "quiet", "quiet", booleanAttribute], readonly: [2, "readonly", "readonly", booleanAttribute], allowParameters: [2, "allowParameters", "allowParameters", booleanAttribute], parameters: "parameters", debounce: "debounce", language: "language", size: "size", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoFiltersChanged: "luzmoFiltersChanged", luzmoParameterCreated: "luzmoParameterCreated", luzmoParameterRemoved: "luzmoParameterRemoved" }, exportAs: ["luzmoFilters"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilters_Template(rf, ctx) { if (rf & 1) {
150
174
  i0.ɵɵprojectionDef();
151
175
  i0.ɵɵprojection(0);
152
176
  } }, encapsulation: 2 });
@@ -187,6 +211,18 @@ export class LuzmoFilters {
187
211
  }], format: [{
188
212
  type: Input,
189
213
  args: [{ alias: 'format' }]
214
+ }], display: [{
215
+ type: Input,
216
+ args: [{ alias: 'display' }]
217
+ }], columnDisplay: [{
218
+ type: Input,
219
+ args: [{ alias: 'columnDisplay' }]
220
+ }], quiet: [{
221
+ type: Input,
222
+ args: [{ alias: 'quiet', transform: booleanAttribute }]
223
+ }], readonly: [{
224
+ type: Input,
225
+ args: [{ alias: 'readonly', transform: booleanAttribute }]
190
226
  }], allowParameters: [{
191
227
  type: Input,
192
228
  args: [{ alias: 'allowParameters', transform: booleanAttribute }]
@@ -212,4 +248,4 @@ export class LuzmoFilters {
212
248
  type: Input,
213
249
  args: [{ alias: 'tabIndex' }]
214
250
  }], luzmoFiltersChanged: [{ type: i0.Output, args: ["luzmoFiltersChanged"] }], luzmoParameterCreated: [{ type: i0.Output, args: ["luzmoParameterCreated"] }], luzmoParameterRemoved: [{ type: i0.Output, args: ["luzmoParameterRemoved"] }] }); })();
215
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilters, { className: "LuzmoFilters", filePath: "components/filters.ts", lineNumber: 16 }); })();
251
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilters, { className: "LuzmoFilters", filePath: "components/filters.ts", lineNumber: 20 }); })();
@@ -3,6 +3,7 @@ import '@luzmo/analytics-components-kit/formula-editor';
3
3
  import type { LuzmoFormulaEditor as LuzmoFormulaEditorHostElement } from '@luzmo/analytics-components-kit/formula-editor';
4
4
  import type { ValidityChangedEventDetail } from '@luzmo/analytics-components-kit/types';
5
5
  import * as i0 from "@angular/core";
6
+ export type { LuzmoFormulaCodeMirror } from '@luzmo/analytics-components-kit/formula-editor';
6
7
  export declare class LuzmoFormulaEditor implements OnChanges {
7
8
  private readonly elementRef;
8
9
  private readonly renderer;
@@ -233,4 +233,4 @@ export class LuzmoFormulaEditor {
233
233
  type: Input,
234
234
  args: [{ alias: 'size' }]
235
235
  }], luzmoValidityChanged: [{ type: i0.Output, args: ["luzmoValidityChanged"] }], luzmoExpressionChanged: [{ type: i0.Output, args: ["luzmoExpressionChanged"] }], luzmoDatasetsError: [{ type: i0.Output, args: ["luzmoDatasetsError"] }] }); })();
236
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFormulaEditor, { className: "LuzmoFormulaEditor", filePath: "components/formula-editor.ts", lineNumber: 21 }); })();
236
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFormulaEditor, { className: "LuzmoFormulaEditor", filePath: "components/formula-editor.ts", lineNumber: 22 }); })();
@@ -0,0 +1,70 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/formula-field';
3
+ import type { LuzmoFormulaField as LuzmoFormulaFieldHostElement } from '@luzmo/analytics-components-kit/formula-field';
4
+ import * as i0 from "@angular/core";
5
+ export declare class LuzmoFormulaField implements OnChanges {
6
+ private readonly elementRef;
7
+ private readonly renderer;
8
+ private readonly destroyRef;
9
+ private readonly host;
10
+ private readonly listenerCleanup;
11
+ /** The underlying custom element instance. Use to call imperative methods. */
12
+ get nativeElement(): LuzmoFormulaFieldHostElement;
13
+ /** Renders the field display-only (no editing). */
14
+ readonly?: boolean;
15
+ /** Placeholder text shown in the editable input when the expression is empty. */
16
+ placeholder?: string;
17
+ /** Number of text lines the input is sized to start with. Defaults to 3. */
18
+ rows?: number;
19
+ /** Maximum number of text lines before a scrollbar appears (only when `grows`). */
20
+ maxRows?: number;
21
+ /** Whether the input grows in height with its content (up to `maxRows` if set). */
22
+ grows?: boolean;
23
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
24
+ language?: string;
25
+ /** The formula expression (function syntax), e.g. `SUM({datasetId:columnId})`. */
26
+ expression?: string;
27
+ /** Datasets and their data fields, provided directly (takes preference over `datasetIds`). */
28
+ datasetsDataFields?: unknown;
29
+ /** Dataset ids to fetch from the Luzmo API (auth attributes optional for public datasets). */
30
+ datasetIds?: string[];
31
+ /** Base URL of the Luzmo API used to fetch datasets by id. */
32
+ apiUrl?: string;
33
+ /** Luzmo API authorization key, used with `authToken` to fetch datasets by id. */
34
+ authKey?: string;
35
+ /** Luzmo API authorization token, used with `authKey` to fetch datasets by id. */
36
+ authToken?: string;
37
+ /** 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. */
38
+ showAggregations?: boolean;
39
+ /** Language used for data labels (column / dataset names). */
40
+ contentLanguage?: string;
41
+ /** When true, aggregations render as multi-stage nested widgets. */
42
+ multiStageAggregation?: boolean;
43
+ /** When true, aggregations can be nested inside other aggregations. */
44
+ nestedAggregation?: boolean;
45
+ /** The size of the element */
46
+ size?: 's' | 'm' | 'l' | 'xl';
47
+ /** Fired (debounced) when the expression changes (only when not readonly). */
48
+ readonly luzmoExpressionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
49
+ /** Fired when fetching datasets by id fails. */
50
+ readonly luzmoDatasetsError: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
51
+ constructor();
52
+ ngOnChanges(changes: SimpleChanges): void;
53
+ /**
54
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
55
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
56
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
57
+ * undefined / null by clearing their bindings.
58
+ */
59
+ private setHostProperty;
60
+ private bindEvents;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFormulaField, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFormulaField, "luzmo-formula-field", ["luzmoFormulaField"], { "readonly": { "alias": "readonly"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "language": { "alias": "language"; "required": false; }; "expression": { "alias": "expression"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "showAggregations": { "alias": "showAggregations"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "multiStageAggregation": { "alias": "multiStageAggregation"; "required": false; }; "nestedAggregation": { "alias": "nestedAggregation"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoExpressionChanged": "luzmoExpressionChanged"; "luzmoDatasetsError": "luzmoDatasetsError"; }, never, ["*"], true, never>;
63
+ static ngAcceptInputType_readonly: unknown;
64
+ static ngAcceptInputType_grows: unknown;
65
+ static ngAcceptInputType_showAggregations: unknown;
66
+ static ngAcceptInputType_multiStageAggregation: unknown;
67
+ static ngAcceptInputType_nestedAggregation: unknown;
68
+ }
69
+ /** The underlying custom element type for LuzmoFormulaField */
70
+ export type LuzmoFormulaFieldElement = LuzmoFormulaFieldHostElement;