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

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 (60) hide show
  1. package/esm/components/data-field-panel.d.ts +4 -4
  2. package/esm/components/data-field.d.ts +4 -4
  3. package/esm/components/formula-editor.d.ts +0 -1
  4. package/esm/components/formula-editor.js +1 -1
  5. package/esm/components/item-slot-drop.d.ts +5 -5
  6. package/esm/index.d.ts +2 -54
  7. package/esm/index.js +2 -106
  8. package/package.json +2 -2
  9. package/esm/components/ai-chat-empty-state.d.ts +0 -39
  10. package/esm/components/ai-chat-empty-state.js +0 -99
  11. package/esm/components/ai-chat.d.ts +0 -147
  12. package/esm/components/ai-chat.js +0 -455
  13. package/esm/components/ai-interaction-textarea.d.ts +0 -106
  14. package/esm/components/ai-interaction-textarea.js +0 -305
  15. package/esm/components/data-field-level.d.ts +0 -50
  16. package/esm/components/data-field-level.js +0 -129
  17. package/esm/components/data-fields-select.d.ts +0 -81
  18. package/esm/components/data-fields-select.js +0 -227
  19. package/esm/components/dataset-icon.d.ts +0 -34
  20. package/esm/components/dataset-icon.js +0 -86
  21. package/esm/components/dataset-selector-list.d.ts +0 -56
  22. package/esm/components/dataset-selector-list.js +0 -155
  23. package/esm/components/dataset-selector-row.d.ts +0 -70
  24. package/esm/components/dataset-selector-row.js +0 -197
  25. package/esm/components/display-settings-binning.d.ts +0 -37
  26. package/esm/components/display-settings-binning.js +0 -91
  27. package/esm/components/display-settings-datetime.d.ts +0 -40
  28. package/esm/components/display-settings-datetime.js +0 -99
  29. package/esm/components/display-settings-grand-totals.d.ts +0 -37
  30. package/esm/components/display-settings-grand-totals.js +0 -91
  31. package/esm/components/display-settings-numeric.d.ts +0 -45
  32. package/esm/components/display-settings-numeric.js +0 -115
  33. package/esm/components/display-settings-period-over-period.d.ts +0 -44
  34. package/esm/components/display-settings-period-over-period.js +0 -107
  35. package/esm/components/display-settings.d.ts +0 -83
  36. package/esm/components/display-settings.js +0 -231
  37. package/esm/components/filter-expression-picker.d.ts +0 -64
  38. package/esm/components/filter-expression-picker.js +0 -179
  39. package/esm/components/filter-item.d.ts +0 -63
  40. package/esm/components/filter-item.js +0 -187
  41. package/esm/components/filter-parameter-picker.d.ts +0 -56
  42. package/esm/components/filter-parameter-picker.js +0 -151
  43. package/esm/components/filter-value-picker-datetime.d.ts +0 -47
  44. package/esm/components/filter-value-picker-datetime.js +0 -131
  45. package/esm/components/filter-value-picker-hierarchy.d.ts +0 -53
  46. package/esm/components/filter-value-picker-hierarchy.js +0 -155
  47. package/esm/components/filter-value-picker-numeric.d.ts +0 -53
  48. package/esm/components/filter-value-picker-numeric.js +0 -155
  49. package/esm/components/filter-value-picker.d.ts +0 -57
  50. package/esm/components/filter-value-picker.js +0 -171
  51. package/esm/components/formula-field.d.ts +0 -70
  52. package/esm/components/formula-field.js +0 -209
  53. package/esm/components/interactive-viz-item.d.ts +0 -63
  54. package/esm/components/interactive-viz-item.js +0 -188
  55. package/esm/components/slot-menu-list.d.ts +0 -46
  56. package/esm/components/slot-menu-list.js +0 -123
  57. package/esm/components/slot-menu.d.ts +0 -104
  58. package/esm/components/slot-menu.js +0 -300
  59. package/esm/components/viz-item-menu.d.ts +0 -42
  60. package/esm/components/viz-item-menu.js +0 -111
@@ -1,231 +0,0 @@
1
- import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/display-settings';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-display-settings>
7
- */
8
- export class LuzmoDisplaySettings {
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 language of the settings interface */
19
- language;
20
- /** The language to use for locale-aware formatting and labels */
21
- contentLanguage;
22
- /** Whether to show the displaySettings. Is used to hide display Settings in cases where there are multiple columns */
23
- hideDisplaySettings;
24
- /** Whether to show the binning in numeric */
25
- isBinningDisabled;
26
- /** Whether to show the datetime options */
27
- areDatetimeOptionsEnabled;
28
- /** Whether to show the grand totals */
29
- areGrandTotalsEnabled;
30
- /** Whether to show the aggregation options */
31
- isAggregationDisabled;
32
- /** Whether to show the cumulative sum options */
33
- isCumulativeSumEnabled;
34
- /** Whether to show the period-over-period in numeric */
35
- periodOverPeriodUiType;
36
- /** Whether to show the trash button next to the label */
37
- showRemoveButton;
38
- /** The slot type */
39
- slotType;
40
- /** The slot name used to distinguish measure and dimension calculations. */
41
- slotName;
42
- /** The slot content model (label, formatting, aggregation, etc.) for the field being configured. */
43
- slotContent;
44
- /** Datasets used to resolve column names in ad-hoc calculation previews. */
45
- datasetsDataFields;
46
- /** The API URL used when resolving calculation previews by dataset id. */
47
- apiUrl;
48
- /** The auth key used when resolving calculation previews by dataset id. */
49
- authKey;
50
- /** The auth token used when resolving calculation previews by dataset id. */
51
- authToken;
52
- /** The list of columns that can be used for the rate aggregation */
53
- measureColumns;
54
- /** The size of the element */
55
- size;
56
- /** Event that is fired when the slot content is changed */
57
- luzmoSlotContentChanged = output({ alias: 'luzmoSlotContentChanged' });
58
- /** Event that is fired when the remove button is clicked */
59
- luzmoRemoveSlotContent = output({ alias: 'luzmoRemoveSlotContent' });
60
- /** Event that is fired when the info button is clicked, includes the visibility state and ID values */
61
- luzmoInfoVisibilityChanged = output({ alias: 'luzmoInfoVisibilityChanged' });
62
- constructor() {
63
- this.bindEvents();
64
- this.destroyRef.onDestroy(() => {
65
- for (const cleanup of this.listenerCleanup) {
66
- cleanup();
67
- }
68
- });
69
- }
70
- ngOnChanges(changes) {
71
- for (const key of Object.keys(changes)) {
72
- switch (key) {
73
- case 'language':
74
- this.setHostProperty('language', changes['language'].currentValue);
75
- break;
76
- case 'contentLanguage':
77
- this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
78
- break;
79
- case 'hideDisplaySettings':
80
- this.setHostProperty('hideDisplaySettings', changes['hideDisplaySettings'].currentValue);
81
- break;
82
- case 'isBinningDisabled':
83
- this.setHostProperty('isBinningDisabled', changes['isBinningDisabled'].currentValue);
84
- break;
85
- case 'areDatetimeOptionsEnabled':
86
- this.setHostProperty('areDatetimeOptionsEnabled', changes['areDatetimeOptionsEnabled'].currentValue);
87
- break;
88
- case 'areGrandTotalsEnabled':
89
- this.setHostProperty('areGrandTotalsEnabled', changes['areGrandTotalsEnabled'].currentValue);
90
- break;
91
- case 'isAggregationDisabled':
92
- this.setHostProperty('isAggregationDisabled', changes['isAggregationDisabled'].currentValue);
93
- break;
94
- case 'isCumulativeSumEnabled':
95
- this.setHostProperty('isCumulativeSumEnabled', changes['isCumulativeSumEnabled'].currentValue);
96
- break;
97
- case 'periodOverPeriodUiType':
98
- this.setHostProperty('periodOverPeriodUiType', changes['periodOverPeriodUiType'].currentValue);
99
- break;
100
- case 'showRemoveButton':
101
- this.setHostProperty('showRemoveButton', changes['showRemoveButton'].currentValue);
102
- break;
103
- case 'slotType':
104
- this.setHostProperty('slotType', changes['slotType'].currentValue);
105
- break;
106
- case 'slotName':
107
- this.setHostProperty('slotName', changes['slotName'].currentValue);
108
- break;
109
- case 'slotContent':
110
- this.setHostProperty('slotContent', changes['slotContent'].currentValue);
111
- break;
112
- case 'datasetsDataFields':
113
- this.setHostProperty('datasetsDataFields', changes['datasetsDataFields'].currentValue);
114
- break;
115
- case 'apiUrl':
116
- this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
117
- break;
118
- case 'authKey':
119
- this.setHostProperty('authKey', changes['authKey'].currentValue);
120
- break;
121
- case 'authToken':
122
- this.setHostProperty('authToken', changes['authToken'].currentValue);
123
- break;
124
- case 'measureColumns':
125
- this.setHostProperty('measureColumns', changes['measureColumns'].currentValue);
126
- break;
127
- case 'size':
128
- this.setHostProperty('size', changes['size'].currentValue);
129
- break;
130
- default:
131
- break;
132
- }
133
- }
134
- }
135
- /**
136
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
137
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
138
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
139
- * undefined / null by clearing their bindings.
140
- */
141
- setHostProperty(key, value) {
142
- this.renderer.setProperty(this.host, key, value);
143
- }
144
- bindEvents() {
145
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-slot-content-changed', (event) => {
146
- const typed = event;
147
- this.luzmoSlotContentChanged.emit(typed);
148
- }));
149
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-remove-slot-content', (event) => {
150
- const typed = event;
151
- this.luzmoRemoveSlotContent.emit(typed);
152
- }));
153
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-info-visibility-changed', (event) => {
154
- const typed = event;
155
- this.luzmoInfoVisibilityChanged.emit(typed);
156
- }));
157
- }
158
- static ɵfac = function LuzmoDisplaySettings_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDisplaySettings)(); };
159
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDisplaySettings, selectors: [["luzmo-display-settings"]], inputs: { language: "language", contentLanguage: "contentLanguage", hideDisplaySettings: [2, "hideDisplaySettings", "hideDisplaySettings", booleanAttribute], isBinningDisabled: [2, "isBinningDisabled", "isBinningDisabled", booleanAttribute], areDatetimeOptionsEnabled: [2, "areDatetimeOptionsEnabled", "areDatetimeOptionsEnabled", booleanAttribute], areGrandTotalsEnabled: [2, "areGrandTotalsEnabled", "areGrandTotalsEnabled", booleanAttribute], isAggregationDisabled: [2, "isAggregationDisabled", "isAggregationDisabled", booleanAttribute], isCumulativeSumEnabled: [2, "isCumulativeSumEnabled", "isCumulativeSumEnabled", booleanAttribute], periodOverPeriodUiType: "periodOverPeriodUiType", showRemoveButton: [2, "showRemoveButton", "showRemoveButton", booleanAttribute], slotType: "slotType", slotName: "slotName", slotContent: "slotContent", datasetsDataFields: "datasetsDataFields", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", measureColumns: "measureColumns", size: "size" }, outputs: { luzmoSlotContentChanged: "luzmoSlotContentChanged", luzmoRemoveSlotContent: "luzmoRemoveSlotContent", luzmoInfoVisibilityChanged: "luzmoInfoVisibilityChanged" }, exportAs: ["luzmoDisplaySettings"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDisplaySettings_Template(rf, ctx) { if (rf & 1) {
160
- i0.ɵɵprojectionDef();
161
- i0.ɵɵprojection(0);
162
- } }, encapsulation: 2 });
163
- }
164
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoDisplaySettings, [{
165
- type: Component,
166
- args: [{
167
- selector: 'luzmo-display-settings',
168
- exportAs: 'luzmoDisplaySettings',
169
- standalone: true,
170
- changeDetection: ChangeDetectionStrategy.OnPush,
171
- template: '<ng-content />'
172
- }]
173
- }], () => [], { language: [{
174
- type: Input,
175
- args: [{ alias: 'language' }]
176
- }], contentLanguage: [{
177
- type: Input,
178
- args: [{ alias: 'contentLanguage' }]
179
- }], hideDisplaySettings: [{
180
- type: Input,
181
- args: [{ alias: 'hideDisplaySettings', transform: booleanAttribute }]
182
- }], isBinningDisabled: [{
183
- type: Input,
184
- args: [{ alias: 'isBinningDisabled', transform: booleanAttribute }]
185
- }], areDatetimeOptionsEnabled: [{
186
- type: Input,
187
- args: [{ alias: 'areDatetimeOptionsEnabled', transform: booleanAttribute }]
188
- }], areGrandTotalsEnabled: [{
189
- type: Input,
190
- args: [{ alias: 'areGrandTotalsEnabled', transform: booleanAttribute }]
191
- }], isAggregationDisabled: [{
192
- type: Input,
193
- args: [{ alias: 'isAggregationDisabled', transform: booleanAttribute }]
194
- }], isCumulativeSumEnabled: [{
195
- type: Input,
196
- args: [{ alias: 'isCumulativeSumEnabled', transform: booleanAttribute }]
197
- }], periodOverPeriodUiType: [{
198
- type: Input,
199
- args: [{ alias: 'periodOverPeriodUiType' }]
200
- }], showRemoveButton: [{
201
- type: Input,
202
- args: [{ alias: 'showRemoveButton', transform: booleanAttribute }]
203
- }], slotType: [{
204
- type: Input,
205
- args: [{ alias: 'slotType' }]
206
- }], slotName: [{
207
- type: Input,
208
- args: [{ alias: 'slotName' }]
209
- }], slotContent: [{
210
- type: Input,
211
- args: [{ alias: 'slotContent' }]
212
- }], datasetsDataFields: [{
213
- type: Input,
214
- args: [{ alias: 'datasetsDataFields' }]
215
- }], apiUrl: [{
216
- type: Input,
217
- args: [{ alias: 'apiUrl' }]
218
- }], authKey: [{
219
- type: Input,
220
- args: [{ alias: 'authKey' }]
221
- }], authToken: [{
222
- type: Input,
223
- args: [{ alias: 'authToken' }]
224
- }], measureColumns: [{
225
- type: Input,
226
- args: [{ alias: 'measureColumns' }]
227
- }], size: [{
228
- type: Input,
229
- args: [{ alias: 'size' }]
230
- }], luzmoSlotContentChanged: [{ type: i0.Output, args: ["luzmoSlotContentChanged"] }], luzmoRemoveSlotContent: [{ type: i0.Output, args: ["luzmoRemoveSlotContent"] }], luzmoInfoVisibilityChanged: [{ type: i0.Output, args: ["luzmoInfoVisibilityChanged"] }] }); })();
231
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoDisplaySettings, { className: "LuzmoDisplaySettings", filePath: "components/display-settings.ts", lineNumber: 20 }); })();
@@ -1,64 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/filter-expression-picker';
3
- import type { LuzmoFilterExpressionPicker as LuzmoFilterExpressionPickerHostElement } from '@luzmo/analytics-components-kit/filter-expression-picker';
4
- import type { ColumnSubtype, ColumnType } from '@luzmo/dashboard-contents-types';
5
- import * as i0 from "@angular/core";
6
- export declare class LuzmoFilterExpressionPicker implements OnChanges {
7
- private readonly elementRef;
8
- private readonly renderer;
9
- private readonly destroyRef;
10
- private readonly host;
11
- private readonly listenerCleanup;
12
- /** The underlying custom element instance. Use to call imperative methods. */
13
- get nativeElement(): LuzmoFilterExpressionPickerHostElement;
14
- /** The filter object */
15
- filter?: any;
16
- /** Whether the picker has a label */
17
- hasLabel?: boolean;
18
- /** The label for the picker, if hasLabel is true */
19
- label?: string;
20
- /** 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. */
21
- allowEmpty?: boolean;
22
- /** The placeholder text for the picker is no value selected. If allowEmpty is true, this will be used as the label. */
23
- placeholder?: string;
24
- /** Whether the picker is disabled */
25
- disabled?: boolean;
26
- /** The type of the column */
27
- type?: ColumnType;
28
- /** The subtype of the column */
29
- subtype?: ColumnSubtype;
30
- /** Whether the expression is invalid */
31
- invalid?: boolean;
32
- /** Whether the column is a formula */
33
- isFormula?: boolean;
34
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
35
- language?: string;
36
- /** The size of the element */
37
- size?: 's' | 'm' | 'l' | 'xl';
38
- /** When this control is rendered, focus it automatically */
39
- autofocus?: boolean;
40
- /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
41
- tabIndex?: number;
42
- /** Fired when the user selects a filter expression (operator); `detail.expression` holds the chosen expression. */
43
- readonly luzmoExpressionSelected: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
44
- constructor();
45
- ngOnChanges(changes: SimpleChanges): void;
46
- /**
47
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
48
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
49
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
50
- * undefined / null by clearing their bindings.
51
- */
52
- private setHostProperty;
53
- private bindEvents;
54
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilterExpressionPicker, never>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterExpressionPicker, "luzmo-filter-expression-picker", ["luzmoFilterExpressionPicker"], { "filter": { "alias": "filter"; "required": false; }; "hasLabel": { "alias": "hasLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "allowEmpty": { "alias": "allowEmpty"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "subtype": { "alias": "subtype"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "isFormula": { "alias": "isFormula"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoExpressionSelected": "luzmoExpressionSelected"; }, never, ["*"], true, never>;
56
- static ngAcceptInputType_hasLabel: unknown;
57
- static ngAcceptInputType_allowEmpty: unknown;
58
- static ngAcceptInputType_disabled: unknown;
59
- static ngAcceptInputType_invalid: unknown;
60
- static ngAcceptInputType_isFormula: unknown;
61
- static ngAcceptInputType_autofocus: unknown;
62
- }
63
- /** The underlying custom element type for LuzmoFilterExpressionPicker */
64
- export type LuzmoFilterExpressionPickerElement = LuzmoFilterExpressionPickerHostElement;
@@ -1,179 +0,0 @@
1
- import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/filter-expression-picker';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-filter-expression-picker>
7
- */
8
- export class LuzmoFilterExpressionPicker {
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 filter object */
19
- filter;
20
- /** Whether the picker has a label */
21
- hasLabel;
22
- /** The label for the picker, if hasLabel is true */
23
- label;
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;
26
- /** The placeholder text for the picker is no value selected. If allowEmpty is true, this will be used as the label. */
27
- placeholder;
28
- /** Whether the picker is disabled */
29
- disabled;
30
- /** The type of the column */
31
- type;
32
- /** The subtype of the column */
33
- subtype;
34
- /** Whether the expression is invalid */
35
- invalid;
36
- /** Whether the column is a formula */
37
- isFormula;
38
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
39
- language;
40
- /** The size of the element */
41
- size;
42
- /** When this control is rendered, focus it automatically */
43
- autofocus;
44
- /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
45
- tabIndex;
46
- /** Fired when the user selects a filter expression (operator); `detail.expression` holds the chosen expression. */
47
- luzmoExpressionSelected = output({ alias: 'luzmoExpressionSelected' });
48
- constructor() {
49
- this.bindEvents();
50
- this.destroyRef.onDestroy(() => {
51
- for (const cleanup of this.listenerCleanup) {
52
- cleanup();
53
- }
54
- });
55
- }
56
- ngOnChanges(changes) {
57
- for (const key of Object.keys(changes)) {
58
- switch (key) {
59
- case 'filter':
60
- this.setHostProperty('filter', changes['filter'].currentValue);
61
- break;
62
- case 'hasLabel':
63
- this.setHostProperty('hasLabel', changes['hasLabel'].currentValue);
64
- break;
65
- case 'label':
66
- this.setHostProperty('label', changes['label'].currentValue);
67
- break;
68
- case 'allowEmpty':
69
- this.setHostProperty('allowEmpty', changes['allowEmpty'].currentValue);
70
- break;
71
- case 'placeholder':
72
- this.setHostProperty('placeholder', changes['placeholder'].currentValue);
73
- break;
74
- case 'disabled':
75
- this.setHostProperty('disabled', changes['disabled'].currentValue);
76
- break;
77
- case 'type':
78
- this.setHostProperty('type', changes['type'].currentValue);
79
- break;
80
- case 'subtype':
81
- this.setHostProperty('subtype', changes['subtype'].currentValue);
82
- break;
83
- case 'invalid':
84
- this.setHostProperty('invalid', changes['invalid'].currentValue);
85
- break;
86
- case 'isFormula':
87
- this.setHostProperty('isFormula', changes['isFormula'].currentValue);
88
- break;
89
- case 'language':
90
- this.setHostProperty('language', changes['language'].currentValue);
91
- break;
92
- case 'size':
93
- this.setHostProperty('size', changes['size'].currentValue);
94
- break;
95
- case 'autofocus':
96
- this.setHostProperty('autofocus', changes['autofocus'].currentValue);
97
- break;
98
- case 'tabIndex':
99
- this.setHostProperty('tabIndex', changes['tabIndex'].currentValue);
100
- break;
101
- default:
102
- break;
103
- }
104
- }
105
- }
106
- /**
107
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
108
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
109
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
110
- * undefined / null by clearing their bindings.
111
- */
112
- setHostProperty(key, value) {
113
- this.renderer.setProperty(this.host, key, value);
114
- }
115
- bindEvents() {
116
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-expression-selected', (event) => {
117
- const typed = event;
118
- this.luzmoExpressionSelected.emit(typed);
119
- }));
120
- }
121
- static ɵfac = function LuzmoFilterExpressionPicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterExpressionPicker)(); };
122
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterExpressionPicker, selectors: [["luzmo-filter-expression-picker"]], inputs: { filter: "filter", hasLabel: [2, "hasLabel", "hasLabel", booleanAttribute], label: "label", allowEmpty: [2, "allowEmpty", "allowEmpty", booleanAttribute], placeholder: "placeholder", disabled: [2, "disabled", "disabled", booleanAttribute], type: "type", subtype: "subtype", invalid: [2, "invalid", "invalid", booleanAttribute], isFormula: [2, "isFormula", "isFormula", booleanAttribute], language: "language", size: "size", autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoExpressionSelected: "luzmoExpressionSelected" }, exportAs: ["luzmoFilterExpressionPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterExpressionPicker_Template(rf, ctx) { if (rf & 1) {
123
- i0.ɵɵprojectionDef();
124
- i0.ɵɵprojection(0);
125
- } }, encapsulation: 2 });
126
- }
127
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFilterExpressionPicker, [{
128
- type: Component,
129
- args: [{
130
- selector: 'luzmo-filter-expression-picker',
131
- exportAs: 'luzmoFilterExpressionPicker',
132
- standalone: true,
133
- changeDetection: ChangeDetectionStrategy.OnPush,
134
- template: '<ng-content />'
135
- }]
136
- }], () => [], { filter: [{
137
- type: Input,
138
- args: [{ alias: 'filter' }]
139
- }], hasLabel: [{
140
- type: Input,
141
- args: [{ alias: 'hasLabel', transform: booleanAttribute }]
142
- }], label: [{
143
- type: Input,
144
- args: [{ alias: 'label' }]
145
- }], allowEmpty: [{
146
- type: Input,
147
- args: [{ alias: 'allowEmpty', transform: booleanAttribute }]
148
- }], placeholder: [{
149
- type: Input,
150
- args: [{ alias: 'placeholder' }]
151
- }], disabled: [{
152
- type: Input,
153
- args: [{ alias: 'disabled', transform: booleanAttribute }]
154
- }], type: [{
155
- type: Input,
156
- args: [{ alias: 'type' }]
157
- }], subtype: [{
158
- type: Input,
159
- args: [{ alias: 'subtype' }]
160
- }], invalid: [{
161
- type: Input,
162
- args: [{ alias: 'invalid', transform: booleanAttribute }]
163
- }], isFormula: [{
164
- type: Input,
165
- args: [{ alias: 'isFormula', transform: booleanAttribute }]
166
- }], language: [{
167
- type: Input,
168
- args: [{ alias: 'language' }]
169
- }], size: [{
170
- type: Input,
171
- args: [{ alias: 'size' }]
172
- }], autofocus: [{
173
- type: Input,
174
- args: [{ alias: 'autofocus', transform: booleanAttribute }]
175
- }], tabIndex: [{
176
- type: Input,
177
- args: [{ alias: 'tabIndex' }]
178
- }], luzmoExpressionSelected: [{ type: i0.Output, args: ["luzmoExpressionSelected"] }] }); })();
179
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterExpressionPicker, { className: "LuzmoFilterExpressionPicker", filePath: "components/filter-expression-picker.ts", lineNumber: 16 }); })();
@@ -1,63 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/filter-item';
3
- import type { LuzmoFilterItem as LuzmoFilterItemHostElement } from '@luzmo/analytics-components-kit/filter-item';
4
- import type { FilterParameter } from '@luzmo/analytics-components-kit/filters';
5
- import * as i0 from "@angular/core";
6
- export declare class LuzmoFilterItem implements OnChanges {
7
- private readonly elementRef;
8
- private readonly renderer;
9
- private readonly destroyRef;
10
- private readonly host;
11
- private readonly listenerCleanup;
12
- /** The underlying custom element instance. Use to call imperative methods. */
13
- get nativeElement(): LuzmoFilterItemHostElement;
14
- /** The API URL of the databroker */
15
- apiUrl?: string;
16
- /** The auth key of the databroker */
17
- authKey?: string;
18
- /** The auth token of the databroker */
19
- authToken?: string;
20
- /** The cache time of the databroker */
21
- cacheTime?: number;
22
- /** The language of the content */
23
- contentLanguage?: string;
24
- /** The time zone to use for the date picker */
25
- timeZone?: string;
26
- /** The dataset ids to fetch columns & formulas */
27
- datasetIds?: string[];
28
- /** The filter to display */
29
- filter?: any;
30
- /** Whether parameter-backed filter values can be created and selected. */
31
- allowParameters?: boolean;
32
- /** Consumer-owned parameter definitions available for selection. */
33
- parameters?: FilterParameter[];
34
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
35
- language?: string;
36
- /** The size of the element */
37
- size?: 's' | 'm' | 'l' | 'xl';
38
- /** Disable this control. It will not receive focus or events */
39
- disabled?: boolean;
40
- /** When this control is rendered, focus it automatically */
41
- autofocus?: boolean;
42
- /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
43
- tabIndex?: number;
44
- /** Fired when any part of the filter changes; `detail.filter` holds the updated filter. */
45
- readonly luzmoFilterChanged: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
46
- constructor();
47
- ngOnChanges(changes: SimpleChanges): void;
48
- /**
49
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
50
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
51
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
52
- * undefined / null by clearing their bindings.
53
- */
54
- private setHostProperty;
55
- private bindEvents;
56
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilterItem, never>;
57
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterItem, "luzmo-filter-item", ["luzmoFilterItem"], { "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; }; "filter": { "alias": "filter"; "required": false; }; "allowParameters": { "alias": "allowParameters"; "required": false; }; "parameters": { "alias": "parameters"; "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; }; }, { "luzmoFilterChanged": "luzmoFilterChanged"; }, never, ["*"], true, never>;
58
- static ngAcceptInputType_allowParameters: unknown;
59
- static ngAcceptInputType_disabled: unknown;
60
- static ngAcceptInputType_autofocus: unknown;
61
- }
62
- /** The underlying custom element type for LuzmoFilterItem */
63
- export type LuzmoFilterItemElement = LuzmoFilterItemHostElement;