@luzmo/ngx-analytics-components-kit 1.0.8-beta.6 → 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,187 +0,0 @@
1
- import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/filter-item';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-filter-item>
7
- */
8
- export class LuzmoFilterItem {
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 of the content */
27
- contentLanguage;
28
- /** The time zone to use for the date picker */
29
- timeZone;
30
- /** The dataset ids to fetch columns & formulas */
31
- datasetIds;
32
- /** The filter to display */
33
- filter;
34
- /** Whether parameter-backed filter values can be created and selected. */
35
- allowParameters;
36
- /** Consumer-owned parameter definitions available for selection. */
37
- parameters;
38
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
39
- language;
40
- /** The size of the element */
41
- size;
42
- /** Disable this control. It will not receive focus or events */
43
- disabled;
44
- /** When this control is rendered, focus it automatically */
45
- autofocus;
46
- /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
47
- tabIndex;
48
- /** Fired when any part of the filter changes; `detail.filter` holds the updated filter. */
49
- luzmoFilterChanged = output({ alias: 'luzmoFilterChanged' });
50
- constructor() {
51
- this.bindEvents();
52
- this.destroyRef.onDestroy(() => {
53
- for (const cleanup of this.listenerCleanup) {
54
- cleanup();
55
- }
56
- });
57
- }
58
- ngOnChanges(changes) {
59
- for (const key of Object.keys(changes)) {
60
- switch (key) {
61
- case 'apiUrl':
62
- this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
63
- break;
64
- case 'authKey':
65
- this.setHostProperty('authKey', changes['authKey'].currentValue);
66
- break;
67
- case 'authToken':
68
- this.setHostProperty('authToken', changes['authToken'].currentValue);
69
- break;
70
- case 'cacheTime':
71
- this.setHostProperty('cacheTime', changes['cacheTime'].currentValue);
72
- break;
73
- case 'contentLanguage':
74
- this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
75
- break;
76
- case 'timeZone':
77
- this.setHostProperty('timeZone', changes['timeZone'].currentValue);
78
- break;
79
- case 'datasetIds':
80
- this.setHostProperty('datasetIds', changes['datasetIds'].currentValue);
81
- break;
82
- case 'filter':
83
- this.setHostProperty('filter', changes['filter'].currentValue);
84
- break;
85
- case 'allowParameters':
86
- this.setHostProperty('allowParameters', changes['allowParameters'].currentValue);
87
- break;
88
- case 'parameters':
89
- this.setHostProperty('parameters', changes['parameters'].currentValue);
90
- break;
91
- case 'language':
92
- this.setHostProperty('language', changes['language'].currentValue);
93
- break;
94
- case 'size':
95
- this.setHostProperty('size', changes['size'].currentValue);
96
- break;
97
- case 'disabled':
98
- this.setHostProperty('disabled', changes['disabled'].currentValue);
99
- break;
100
- case 'autofocus':
101
- this.setHostProperty('autofocus', changes['autofocus'].currentValue);
102
- break;
103
- case 'tabIndex':
104
- this.setHostProperty('tabIndex', changes['tabIndex'].currentValue);
105
- break;
106
- default:
107
- break;
108
- }
109
- }
110
- }
111
- /**
112
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
113
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
114
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
115
- * undefined / null by clearing their bindings.
116
- */
117
- setHostProperty(key, value) {
118
- this.renderer.setProperty(this.host, key, value);
119
- }
120
- bindEvents() {
121
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-filter-changed', (event) => {
122
- const typed = event;
123
- this.luzmoFilterChanged.emit(typed);
124
- }));
125
- }
126
- static ɵfac = function LuzmoFilterItem_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterItem)(); };
127
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterItem, selectors: [["luzmo-filter-item"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", timeZone: "timeZone", datasetIds: "datasetIds", filter: "filter", allowParameters: [2, "allowParameters", "allowParameters", booleanAttribute], parameters: "parameters", language: "language", size: "size", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoFilterChanged: "luzmoFilterChanged" }, exportAs: ["luzmoFilterItem"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterItem_Template(rf, ctx) { if (rf & 1) {
128
- i0.ɵɵprojectionDef();
129
- i0.ɵɵprojection(0);
130
- } }, encapsulation: 2 });
131
- }
132
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFilterItem, [{
133
- type: Component,
134
- args: [{
135
- selector: 'luzmo-filter-item',
136
- exportAs: 'luzmoFilterItem',
137
- standalone: true,
138
- changeDetection: ChangeDetectionStrategy.OnPush,
139
- template: '<ng-content />'
140
- }]
141
- }], () => [], { apiUrl: [{
142
- type: Input,
143
- args: [{ alias: 'apiUrl' }]
144
- }], authKey: [{
145
- type: Input,
146
- args: [{ alias: 'authKey' }]
147
- }], authToken: [{
148
- type: Input,
149
- args: [{ alias: 'authToken' }]
150
- }], cacheTime: [{
151
- type: Input,
152
- args: [{ alias: 'cacheTime' }]
153
- }], contentLanguage: [{
154
- type: Input,
155
- args: [{ alias: 'contentLanguage' }]
156
- }], timeZone: [{
157
- type: Input,
158
- args: [{ alias: 'timeZone' }]
159
- }], datasetIds: [{
160
- type: Input,
161
- args: [{ alias: 'datasetIds' }]
162
- }], filter: [{
163
- type: Input,
164
- args: [{ alias: 'filter' }]
165
- }], allowParameters: [{
166
- type: Input,
167
- args: [{ alias: 'allowParameters', transform: booleanAttribute }]
168
- }], parameters: [{
169
- type: Input,
170
- args: [{ alias: 'parameters' }]
171
- }], language: [{
172
- type: Input,
173
- args: [{ alias: 'language' }]
174
- }], size: [{
175
- type: Input,
176
- args: [{ alias: 'size' }]
177
- }], disabled: [{
178
- type: Input,
179
- args: [{ alias: 'disabled', transform: booleanAttribute }]
180
- }], autofocus: [{
181
- type: Input,
182
- args: [{ alias: 'autofocus', transform: booleanAttribute }]
183
- }], tabIndex: [{
184
- type: Input,
185
- args: [{ alias: 'tabIndex' }]
186
- }], luzmoFilterChanged: [{ type: i0.Output, args: ["luzmoFilterChanged"] }] }); })();
187
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterItem, { className: "LuzmoFilterItem", filePath: "components/filter-item.ts", lineNumber: 16 }); })();
@@ -1,56 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/filter-parameter-picker';
3
- import type { LuzmoFilterParameterPicker as LuzmoFilterParameterPickerHostElement, FilterParameterPickerEventDetail } from '@luzmo/analytics-components-kit/filter-parameter-picker';
4
- import type { FilterParameterType } from '@luzmo/analytics-components-kit/filters';
5
- import type { ItemFilterParameterDefinition } from '@luzmo/dashboard-contents-types';
6
- import * as i0 from "@angular/core";
7
- export type { FilterParameterPickerEventDetail } from '@luzmo/analytics-components-kit/filter-parameter-picker';
8
- export declare class LuzmoFilterParameterPicker 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(): LuzmoFilterParameterPickerHostElement;
16
- /** Parameter definitions available for selection. */
17
- parameters?: ItemFilterParameterDefinition[];
18
- /** Parameter types compatible with the active field and expression. */
19
- allowedTypes?: FilterParameterType[];
20
- /** The parameter currently attached to the filter. */
21
- selectedParameter?: ItemFilterParameterDefinition;
22
- /** The current literal filter value used as the default for a new parameter. */
23
- currentValue?: unknown;
24
- /** Whether parameter selection is disabled. */
25
- disabled?: boolean;
26
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
27
- language?: string;
28
- /** The size of the element */
29
- size?: 's' | 'm' | 'l' | 'xl';
30
- /** When this control is rendered, focus it automatically */
31
- autofocus?: boolean;
32
- /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
33
- tabIndex?: number;
34
- /** Fired when a parameter is selected. */
35
- readonly luzmoParameterSelected: import("@angular/core").OutputEmitterRef<CustomEvent<FilterParameterPickerEventDetail>>;
36
- /** Fired when a parameter is created. */
37
- readonly luzmoParameterCreated: import("@angular/core").OutputEmitterRef<CustomEvent<FilterParameterPickerEventDetail>>;
38
- /** Fired when a parameter is detached from the filter. */
39
- readonly luzmoParameterRemoved: import("@angular/core").OutputEmitterRef<CustomEvent<FilterParameterPickerEventDetail>>;
40
- constructor();
41
- ngOnChanges(changes: SimpleChanges): void;
42
- /**
43
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
44
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
45
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
46
- * undefined / null by clearing their bindings.
47
- */
48
- private setHostProperty;
49
- private bindEvents;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilterParameterPicker, never>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterParameterPicker, "luzmo-filter-parameter-picker", ["luzmoFilterParameterPicker"], { "parameters": { "alias": "parameters"; "required": false; }; "allowedTypes": { "alias": "allowedTypes"; "required": false; }; "selectedParameter": { "alias": "selectedParameter"; "required": false; }; "currentValue": { "alias": "currentValue"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoParameterSelected": "luzmoParameterSelected"; "luzmoParameterCreated": "luzmoParameterCreated"; "luzmoParameterRemoved": "luzmoParameterRemoved"; }, never, ["*"], true, never>;
52
- static ngAcceptInputType_disabled: unknown;
53
- static ngAcceptInputType_autofocus: unknown;
54
- }
55
- /** The underlying custom element type for LuzmoFilterParameterPicker */
56
- export type LuzmoFilterParameterPickerElement = LuzmoFilterParameterPickerHostElement;
@@ -1,151 +0,0 @@
1
- import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/filter-parameter-picker';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-filter-parameter-picker>
7
- */
8
- export class LuzmoFilterParameterPicker {
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
- /** Parameter definitions available for selection. */
19
- parameters;
20
- /** Parameter types compatible with the active field and expression. */
21
- allowedTypes;
22
- /** The parameter currently attached to the filter. */
23
- selectedParameter;
24
- /** The current literal filter value used as the default for a new parameter. */
25
- currentValue;
26
- /** Whether parameter selection is disabled. */
27
- disabled;
28
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
29
- language;
30
- /** The size of the element */
31
- size;
32
- /** When this control is rendered, focus it automatically */
33
- autofocus;
34
- /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
35
- tabIndex;
36
- /** Fired when a parameter is selected. */
37
- luzmoParameterSelected = output({ alias: 'luzmoParameterSelected' });
38
- /** Fired when a parameter is created. */
39
- luzmoParameterCreated = output({ alias: 'luzmoParameterCreated' });
40
- /** Fired when a parameter is detached from the filter. */
41
- luzmoParameterRemoved = output({ alias: 'luzmoParameterRemoved' });
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 'parameters':
54
- this.setHostProperty('parameters', changes['parameters'].currentValue);
55
- break;
56
- case 'allowedTypes':
57
- this.setHostProperty('allowedTypes', changes['allowedTypes'].currentValue);
58
- break;
59
- case 'selectedParameter':
60
- this.setHostProperty('selectedParameter', changes['selectedParameter'].currentValue);
61
- break;
62
- case 'currentValue':
63
- this.setHostProperty('currentValue', changes['currentValue'].currentValue);
64
- break;
65
- case 'disabled':
66
- this.setHostProperty('disabled', changes['disabled'].currentValue);
67
- break;
68
- case 'language':
69
- this.setHostProperty('language', changes['language'].currentValue);
70
- break;
71
- case 'size':
72
- this.setHostProperty('size', changes['size'].currentValue);
73
- break;
74
- case 'autofocus':
75
- this.setHostProperty('autofocus', changes['autofocus'].currentValue);
76
- break;
77
- case 'tabIndex':
78
- this.setHostProperty('tabIndex', changes['tabIndex'].currentValue);
79
- break;
80
- default:
81
- break;
82
- }
83
- }
84
- }
85
- /**
86
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
87
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
88
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
89
- * undefined / null by clearing their bindings.
90
- */
91
- setHostProperty(key, value) {
92
- this.renderer.setProperty(this.host, key, value);
93
- }
94
- bindEvents() {
95
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-parameter-selected', (event) => {
96
- const typed = event;
97
- this.luzmoParameterSelected.emit(typed);
98
- }));
99
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-parameter-created', (event) => {
100
- const typed = event;
101
- this.luzmoParameterCreated.emit(typed);
102
- }));
103
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-parameter-removed', (event) => {
104
- const typed = event;
105
- this.luzmoParameterRemoved.emit(typed);
106
- }));
107
- }
108
- static ɵfac = function LuzmoFilterParameterPicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterParameterPicker)(); };
109
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterParameterPicker, selectors: [["luzmo-filter-parameter-picker"]], inputs: { parameters: "parameters", allowedTypes: "allowedTypes", selectedParameter: "selectedParameter", currentValue: "currentValue", disabled: [2, "disabled", "disabled", booleanAttribute], language: "language", size: "size", autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoParameterSelected: "luzmoParameterSelected", luzmoParameterCreated: "luzmoParameterCreated", luzmoParameterRemoved: "luzmoParameterRemoved" }, exportAs: ["luzmoFilterParameterPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterParameterPicker_Template(rf, ctx) { if (rf & 1) {
110
- i0.ɵɵprojectionDef();
111
- i0.ɵɵprojection(0);
112
- } }, encapsulation: 2 });
113
- }
114
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFilterParameterPicker, [{
115
- type: Component,
116
- args: [{
117
- selector: 'luzmo-filter-parameter-picker',
118
- exportAs: 'luzmoFilterParameterPicker',
119
- standalone: true,
120
- changeDetection: ChangeDetectionStrategy.OnPush,
121
- template: '<ng-content />'
122
- }]
123
- }], () => [], { parameters: [{
124
- type: Input,
125
- args: [{ alias: 'parameters' }]
126
- }], allowedTypes: [{
127
- type: Input,
128
- args: [{ alias: 'allowedTypes' }]
129
- }], selectedParameter: [{
130
- type: Input,
131
- args: [{ alias: 'selectedParameter' }]
132
- }], currentValue: [{
133
- type: Input,
134
- args: [{ alias: 'currentValue' }]
135
- }], disabled: [{
136
- type: Input,
137
- args: [{ alias: 'disabled', transform: booleanAttribute }]
138
- }], language: [{
139
- type: Input,
140
- args: [{ alias: 'language' }]
141
- }], size: [{
142
- type: Input,
143
- args: [{ alias: 'size' }]
144
- }], autofocus: [{
145
- type: Input,
146
- args: [{ alias: 'autofocus', transform: booleanAttribute }]
147
- }], tabIndex: [{
148
- type: Input,
149
- args: [{ alias: 'tabIndex' }]
150
- }], luzmoParameterSelected: [{ type: i0.Output, args: ["luzmoParameterSelected"] }], luzmoParameterCreated: [{ type: i0.Output, args: ["luzmoParameterCreated"] }], luzmoParameterRemoved: [{ type: i0.Output, args: ["luzmoParameterRemoved"] }] }); })();
151
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterParameterPicker, { className: "LuzmoFilterParameterPicker", filePath: "components/filter-parameter-picker.ts", lineNumber: 18 }); })();
@@ -1,47 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/filter-value-picker-datetime';
3
- import type { LuzmoFilterValuePickerDatetime as LuzmoFilterValuePickerDatetimeHostElement } from '@luzmo/analytics-components-kit/filter-value-picker-datetime';
4
- import * as i0 from "@angular/core";
5
- export declare class LuzmoFilterValuePickerDatetime 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(): LuzmoFilterValuePickerDatetimeHostElement;
13
- /** The language to use for locale-aware formatting and column/formula labels */
14
- contentLanguage?: string;
15
- /** The time zone to use for the date picker */
16
- timeZone?: string;
17
- /** The filter used to retrieve the value */
18
- filter?: any;
19
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
20
- language?: string;
21
- /** The size of the element */
22
- size?: 's' | 'm' | 'l' | 'xl';
23
- /** Disable this control. It will not receive focus or events */
24
- disabled?: boolean;
25
- /** When this control is rendered, focus it automatically */
26
- autofocus?: boolean;
27
- /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
28
- tabIndex?: number;
29
- /** Fired when the datetime filter value changes; `detail.value` holds the new value (ISO date or relative range). */
30
- readonly luzmoFilterValueChanged: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
31
- constructor();
32
- ngOnChanges(changes: SimpleChanges): void;
33
- /**
34
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
35
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
36
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
37
- * undefined / null by clearing their bindings.
38
- */
39
- private setHostProperty;
40
- private bindEvents;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilterValuePickerDatetime, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterValuePickerDatetime, "luzmo-filter-value-picker-datetime", ["luzmoFilterValuePickerDatetime"], { "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "timeZone": { "alias": "timeZone"; "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>;
43
- static ngAcceptInputType_disabled: unknown;
44
- static ngAcceptInputType_autofocus: unknown;
45
- }
46
- /** The underlying custom element type for LuzmoFilterValuePickerDatetime */
47
- export type LuzmoFilterValuePickerDatetimeElement = LuzmoFilterValuePickerDatetimeHostElement;
@@ -1,131 +0,0 @@
1
- import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/filter-value-picker-datetime';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-filter-value-picker-datetime>
7
- */
8
- export class LuzmoFilterValuePickerDatetime {
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 to use for locale-aware formatting and column/formula labels */
19
- contentLanguage;
20
- /** The time zone to use for the date picker */
21
- timeZone;
22
- /** The filter used to retrieve the value */
23
- filter;
24
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
25
- language;
26
- /** The size of the element */
27
- size;
28
- /** Disable this control. It will not receive focus or events */
29
- disabled;
30
- /** When this control is rendered, focus it automatically */
31
- autofocus;
32
- /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
33
- tabIndex;
34
- /** Fired when the datetime filter value changes; `detail.value` holds the new value (ISO date or relative range). */
35
- luzmoFilterValueChanged = output({ alias: 'luzmoFilterValueChanged' });
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 'contentLanguage':
48
- this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
49
- break;
50
- case 'timeZone':
51
- this.setHostProperty('timeZone', changes['timeZone'].currentValue);
52
- break;
53
- case 'filter':
54
- this.setHostProperty('filter', changes['filter'].currentValue);
55
- break;
56
- case 'language':
57
- this.setHostProperty('language', changes['language'].currentValue);
58
- break;
59
- case 'size':
60
- this.setHostProperty('size', changes['size'].currentValue);
61
- break;
62
- case 'disabled':
63
- this.setHostProperty('disabled', changes['disabled'].currentValue);
64
- break;
65
- case 'autofocus':
66
- this.setHostProperty('autofocus', changes['autofocus'].currentValue);
67
- break;
68
- case 'tabIndex':
69
- this.setHostProperty('tabIndex', changes['tabIndex'].currentValue);
70
- break;
71
- default:
72
- break;
73
- }
74
- }
75
- }
76
- /**
77
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
78
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
79
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
80
- * undefined / null by clearing their bindings.
81
- */
82
- setHostProperty(key, value) {
83
- this.renderer.setProperty(this.host, key, value);
84
- }
85
- bindEvents() {
86
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-filter-value-changed', (event) => {
87
- const typed = event;
88
- this.luzmoFilterValueChanged.emit(typed);
89
- }));
90
- }
91
- static ɵfac = function LuzmoFilterValuePickerDatetime_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterValuePickerDatetime)(); };
92
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterValuePickerDatetime, selectors: [["luzmo-filter-value-picker-datetime"]], inputs: { contentLanguage: "contentLanguage", timeZone: "timeZone", filter: "filter", language: "language", size: "size", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoFilterValueChanged: "luzmoFilterValueChanged" }, exportAs: ["luzmoFilterValuePickerDatetime"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterValuePickerDatetime_Template(rf, ctx) { if (rf & 1) {
93
- i0.ɵɵprojectionDef();
94
- i0.ɵɵprojection(0);
95
- } }, encapsulation: 2 });
96
- }
97
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFilterValuePickerDatetime, [{
98
- type: Component,
99
- args: [{
100
- selector: 'luzmo-filter-value-picker-datetime',
101
- exportAs: 'luzmoFilterValuePickerDatetime',
102
- standalone: true,
103
- changeDetection: ChangeDetectionStrategy.OnPush,
104
- template: '<ng-content />'
105
- }]
106
- }], () => [], { contentLanguage: [{
107
- type: Input,
108
- args: [{ alias: 'contentLanguage' }]
109
- }], timeZone: [{
110
- type: Input,
111
- args: [{ alias: 'timeZone' }]
112
- }], filter: [{
113
- type: Input,
114
- args: [{ alias: 'filter' }]
115
- }], language: [{
116
- type: Input,
117
- args: [{ alias: 'language' }]
118
- }], size: [{
119
- type: Input,
120
- args: [{ alias: 'size' }]
121
- }], disabled: [{
122
- type: Input,
123
- args: [{ alias: 'disabled', transform: booleanAttribute }]
124
- }], autofocus: [{
125
- type: Input,
126
- args: [{ alias: 'autofocus', transform: booleanAttribute }]
127
- }], tabIndex: [{
128
- type: Input,
129
- args: [{ alias: 'tabIndex' }]
130
- }], luzmoFilterValueChanged: [{ type: i0.Output, args: ["luzmoFilterValueChanged"] }] }); })();
131
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterValuePickerDatetime, { className: "LuzmoFilterValuePickerDatetime", filePath: "components/filter-value-picker-datetime.ts", lineNumber: 15 }); })();
@@ -1,53 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/filter-value-picker-hierarchy';
3
- import type { LuzmoFilterValuePickerHierarchy as LuzmoFilterValuePickerHierarchyHostElement } from '@luzmo/analytics-components-kit/filter-value-picker-hierarchy';
4
- import * as i0 from "@angular/core";
5
- export declare class LuzmoFilterValuePickerHierarchy 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(): LuzmoFilterValuePickerHierarchyHostElement;
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 filter used to retrieve the value */
24
- filter?: any;
25
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
26
- language?: string;
27
- /** The size of the element */
28
- size?: 's' | 'm' | 'l' | 'xl';
29
- /** Disable this control. It will not receive focus or events */
30
- disabled?: boolean;
31
- /** When this control is rendered, focus it automatically */
32
- autofocus?: boolean;
33
- /** The tab index to apply to this control. See general documentation about the tabindex HTML property */
34
- tabIndex?: number;
35
- /** Fired when the hierarchy filter value changes; `detail.value` holds the selected value(s). */
36
- readonly luzmoFilterValueChanged: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
37
- constructor();
38
- ngOnChanges(changes: SimpleChanges): void;
39
- /**
40
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
41
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
42
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
43
- * undefined / null by clearing their bindings.
44
- */
45
- private setHostProperty;
46
- private bindEvents;
47
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilterValuePickerHierarchy, never>;
48
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterValuePickerHierarchy, "luzmo-filter-value-picker-hierarchy", ["luzmoFilterValuePickerHierarchy"], { "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; }; "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>;
49
- static ngAcceptInputType_disabled: unknown;
50
- static ngAcceptInputType_autofocus: unknown;
51
- }
52
- /** The underlying custom element type for LuzmoFilterValuePickerHierarchy */
53
- export type LuzmoFilterValuePickerHierarchyElement = LuzmoFilterValuePickerHierarchyHostElement;