@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,155 +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-hierarchy';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-filter-value-picker-hierarchy>
7
- */
8
- export class LuzmoFilterValuePickerHierarchy {
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 hierarchy filter value changes; `detail.value` holds the selected value(s). */
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 LuzmoFilterValuePickerHierarchy_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterValuePickerHierarchy)(); };
107
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterValuePickerHierarchy, selectors: [["luzmo-filter-value-picker-hierarchy"]], 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: ["luzmoFilterValuePickerHierarchy"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterValuePickerHierarchy_Template(rf, ctx) { if (rf & 1) {
108
- i0.ɵɵprojectionDef();
109
- i0.ɵɵprojection(0);
110
- } }, encapsulation: 2 });
111
- }
112
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFilterValuePickerHierarchy, [{
113
- type: Component,
114
- args: [{
115
- selector: 'luzmo-filter-value-picker-hierarchy',
116
- exportAs: 'luzmoFilterValuePickerHierarchy',
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(LuzmoFilterValuePickerHierarchy, { className: "LuzmoFilterValuePickerHierarchy", filePath: "components/filter-value-picker-hierarchy.ts", lineNumber: 15 }); })();
@@ -1,53 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/filter-value-picker-numeric';
3
- import type { LuzmoFilterValuePickerNumeric as LuzmoFilterValuePickerNumericHostElement } from '@luzmo/analytics-components-kit/filter-value-picker-numeric';
4
- import * as i0 from "@angular/core";
5
- export declare class LuzmoFilterValuePickerNumeric 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(): LuzmoFilterValuePickerNumericHostElement;
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 numeric filter value changes; `detail.value` holds the new number or range. */
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<LuzmoFilterValuePickerNumeric, never>;
48
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterValuePickerNumeric, "luzmo-filter-value-picker-numeric", ["luzmoFilterValuePickerNumeric"], { "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 LuzmoFilterValuePickerNumeric */
53
- export type LuzmoFilterValuePickerNumericElement = LuzmoFilterValuePickerNumericHostElement;
@@ -1,155 +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-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 }); })();
@@ -1,57 +0,0 @@
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;
@@ -1,171 +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';
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 }); })();