@luzmo/ngx-analytics-components-kit 1.0.3-beta.11

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 (106) hide show
  1. package/README.md +40 -0
  2. package/esm/components/ai-chat-empty-state.d.ts +39 -0
  3. package/esm/components/ai-chat-empty-state.js +99 -0
  4. package/esm/components/ai-chat.d.ts +121 -0
  5. package/esm/components/ai-chat.js +369 -0
  6. package/esm/components/ai-interaction-textarea.d.ts +110 -0
  7. package/esm/components/ai-interaction-textarea.js +297 -0
  8. package/esm/components/data-field-level.d.ts +42 -0
  9. package/esm/components/data-field-level.js +115 -0
  10. package/esm/components/data-field-panel.d.ts +84 -0
  11. package/esm/components/data-field-panel.js +260 -0
  12. package/esm/components/data-field.d.ts +41 -0
  13. package/esm/components/data-field.js +108 -0
  14. package/esm/components/data-fields-select.d.ts +70 -0
  15. package/esm/components/data-fields-select.js +187 -0
  16. package/esm/components/dataset-icon.d.ts +34 -0
  17. package/esm/components/dataset-icon.js +86 -0
  18. package/esm/components/dataset-selector-list.d.ts +53 -0
  19. package/esm/components/dataset-selector-list.js +147 -0
  20. package/esm/components/dataset-selector-row.d.ts +56 -0
  21. package/esm/components/dataset-selector-row.js +153 -0
  22. package/esm/components/display-settings-binning.d.ts +32 -0
  23. package/esm/components/display-settings-binning.js +74 -0
  24. package/esm/components/display-settings-datetime.d.ts +36 -0
  25. package/esm/components/display-settings-datetime.js +89 -0
  26. package/esm/components/display-settings-grand-totals.d.ts +33 -0
  27. package/esm/components/display-settings-grand-totals.js +75 -0
  28. package/esm/components/display-settings-numeric.d.ts +41 -0
  29. package/esm/components/display-settings-numeric.js +99 -0
  30. package/esm/components/display-settings-period-over-period.d.ts +38 -0
  31. package/esm/components/display-settings-period-over-period.js +89 -0
  32. package/esm/components/display-settings.d.ts +69 -0
  33. package/esm/components/display-settings.js +182 -0
  34. package/esm/components/filter-expression-picker.d.ts +54 -0
  35. package/esm/components/filter-expression-picker.js +146 -0
  36. package/esm/components/filter-item.d.ts +44 -0
  37. package/esm/components/filter-item.js +130 -0
  38. package/esm/components/filter-parameter-picker.d.ts +31 -0
  39. package/esm/components/filter-parameter-picker.js +78 -0
  40. package/esm/components/filter-value-picker-datetime.d.ts +34 -0
  41. package/esm/components/filter-value-picker-datetime.js +90 -0
  42. package/esm/components/filter-value-picker-hierarchy.d.ts +40 -0
  43. package/esm/components/filter-value-picker-hierarchy.js +114 -0
  44. package/esm/components/filter-value-picker-numeric.d.ts +40 -0
  45. package/esm/components/filter-value-picker-numeric.js +114 -0
  46. package/esm/components/filter-value-picker.d.ts +44 -0
  47. package/esm/components/filter-value-picker.js +130 -0
  48. package/esm/components/filters.d.ts +49 -0
  49. package/esm/components/filters.js +139 -0
  50. package/esm/components/formula-editor.d.ts +39 -0
  51. package/esm/components/formula-editor.js +95 -0
  52. package/esm/components/formula-field.d.ts +31 -0
  53. package/esm/components/formula-field.js +69 -0
  54. package/esm/components/formula.d.ts +31 -0
  55. package/esm/components/formula.js +75 -0
  56. package/esm/components/item-grid-item-actions-menu.d.ts +34 -0
  57. package/esm/components/item-grid-item-actions-menu.js +82 -0
  58. package/esm/components/item-grid.d.ts +80 -0
  59. package/esm/components/item-grid.js +245 -0
  60. package/esm/components/item-option-action-button-group.d.ts +30 -0
  61. package/esm/components/item-option-action-button-group.js +63 -0
  62. package/esm/components/item-option-color-palette-picker.d.ts +30 -0
  63. package/esm/components/item-option-color-palette-picker.js +63 -0
  64. package/esm/components/item-option-color-picker.d.ts +35 -0
  65. package/esm/components/item-option-color-picker.js +102 -0
  66. package/esm/components/item-option-color-range.d.ts +30 -0
  67. package/esm/components/item-option-color-range.js +63 -0
  68. package/esm/components/item-option-multi-language-field.d.ts +31 -0
  69. package/esm/components/item-option-multi-language-field.js +74 -0
  70. package/esm/components/item-option-number-field.d.ts +32 -0
  71. package/esm/components/item-option-number-field.js +81 -0
  72. package/esm/components/item-option-panel.d.ts +54 -0
  73. package/esm/components/item-option-panel.js +155 -0
  74. package/esm/components/item-option-picker.d.ts +30 -0
  75. package/esm/components/item-option-picker.js +63 -0
  76. package/esm/components/item-option-position-picker.d.ts +30 -0
  77. package/esm/components/item-option-position-picker.js +63 -0
  78. package/esm/components/item-option-positions-number-field.d.ts +32 -0
  79. package/esm/components/item-option-positions-number-field.js +81 -0
  80. package/esm/components/item-option-radio-button-group.d.ts +31 -0
  81. package/esm/components/item-option-radio-button-group.js +74 -0
  82. package/esm/components/item-option-slider.d.ts +36 -0
  83. package/esm/components/item-option-slider.js +109 -0
  84. package/esm/components/item-option-switch.d.ts +34 -0
  85. package/esm/components/item-option-switch.js +81 -0
  86. package/esm/components/item-option-text-field.d.ts +31 -0
  87. package/esm/components/item-option-text-field.js +74 -0
  88. package/esm/components/item-option.d.ts +48 -0
  89. package/esm/components/item-option.js +161 -0
  90. package/esm/components/item-slot-drop-panel.d.ts +78 -0
  91. package/esm/components/item-slot-drop-panel.js +233 -0
  92. package/esm/components/item-slot-drop.d.ts +63 -0
  93. package/esm/components/item-slot-drop.js +201 -0
  94. package/esm/components/item-slot-picker-panel.d.ts +95 -0
  95. package/esm/components/item-slot-picker-panel.js +301 -0
  96. package/esm/components/item-slot-picker.d.ts +80 -0
  97. package/esm/components/item-slot-picker.js +235 -0
  98. package/esm/components/slot-menu-list.d.ts +37 -0
  99. package/esm/components/slot-menu-list.js +97 -0
  100. package/esm/components/slot-menu.d.ts +85 -0
  101. package/esm/components/slot-menu.js +271 -0
  102. package/esm/components/viz-item-menu.d.ts +40 -0
  103. package/esm/components/viz-item-menu.js +103 -0
  104. package/esm/index.d.ts +105 -0
  105. package/esm/index.js +209 -0
  106. package/package.json +40 -0
@@ -0,0 +1,54 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-panel';
3
+ import type { LuzmoItemOptionPanel as LuzmoItemOptionPanelHostElement, ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-panel';
4
+ import type { ElementSize } from '@luzmo/analytics-components-kit/types';
5
+ import type { OptionsConfig, Slot, ThemeConfig, TranslationOverrides, TranslationsFile, VizItemType } from '@luzmo/dashboard-contents-types';
6
+ import * as i0 from "@angular/core";
7
+ export type { ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-panel';
8
+ export declare class LuzmoItemOptionPanel 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(): LuzmoItemOptionPanelHostElement;
16
+ /** The language in which to display the option configuration controls. */
17
+ language?: string;
18
+ /** The item type to load the configuration for. Leave empty if using a custom options configuration. */
19
+ itemType?: VizItemType;
20
+ /** The options of the item. */
21
+ options?: Record<string, unknown>;
22
+ /** The slots of the item. */
23
+ slots?: Slot[];
24
+ /** When using a custom options configuration, this is the configuration object. */
25
+ customOptionsConfiguration?: OptionsConfig;
26
+ /** When using a custom translations configuration, this is the configuration object. */
27
+ customTranslations?: TranslationOverrides | TranslationsFile;
28
+ /** The theme of the item. */
29
+ theme?: ThemeConfig & Record<string, any>;
30
+ /** The size of the item option panel component. */
31
+ size?: ElementSize;
32
+ /** The API URL of the databroker */
33
+ apiUrl?: string;
34
+ /** The auth key of the databroker */
35
+ authKey?: string;
36
+ /** The auth token of the databroker */
37
+ authToken?: string;
38
+ /** Announces that the `options` of the element have changed */
39
+ readonly luzmoOptionsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionsChangedEventDetail>>;
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<LuzmoItemOptionPanel, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionPanel, "luzmo-item-option-panel", ["luzmoItemOptionPanel"], { "language": { "alias": "language"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "options": { "alias": "options"; "required": false; }; "slots": { "alias": "slots"; "required": false; }; "customOptionsConfiguration": { "alias": "customOptionsConfiguration"; "required": false; }; "customTranslations": { "alias": "customTranslations"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "size": { "alias": "size"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; }, { "luzmoOptionsChanged": "luzmoOptionsChanged"; }, never, ["*"], true, never>;
52
+ }
53
+ /** The underlying custom element type for LuzmoItemOptionPanel */
54
+ export type LuzmoItemOptionPanelElement = LuzmoItemOptionPanelHostElement;
@@ -0,0 +1,155 @@
1
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-panel';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-item-option-panel>
7
+ */
8
+ export class LuzmoItemOptionPanel {
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 in which to display the option configuration controls. */
19
+ language;
20
+ /** The item type to load the configuration for. Leave empty if using a custom options configuration. */
21
+ itemType;
22
+ /** The options of the item. */
23
+ options;
24
+ /** The slots of the item. */
25
+ slots;
26
+ /** When using a custom options configuration, this is the configuration object. */
27
+ customOptionsConfiguration;
28
+ /** When using a custom translations configuration, this is the configuration object. */
29
+ customTranslations;
30
+ /** The theme of the item. */
31
+ theme;
32
+ /** The size of the item option panel component. */
33
+ size;
34
+ /** The API URL of the databroker */
35
+ apiUrl;
36
+ /** The auth key of the databroker */
37
+ authKey;
38
+ /** The auth token of the databroker */
39
+ authToken;
40
+ /** Announces that the `options` of the element have changed */
41
+ luzmoOptionsChanged = output({ alias: 'luzmoOptionsChanged' });
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 'language':
54
+ this.setHostProperty('language', changes['language'].currentValue);
55
+ break;
56
+ case 'itemType':
57
+ this.setHostProperty('itemType', changes['itemType'].currentValue);
58
+ break;
59
+ case 'options':
60
+ this.setHostProperty('options', changes['options'].currentValue);
61
+ break;
62
+ case 'slots':
63
+ this.setHostProperty('slots', changes['slots'].currentValue);
64
+ break;
65
+ case 'customOptionsConfiguration':
66
+ this.setHostProperty('customOptionsConfiguration', changes['customOptionsConfiguration'].currentValue);
67
+ break;
68
+ case 'customTranslations':
69
+ this.setHostProperty('customTranslations', changes['customTranslations'].currentValue);
70
+ break;
71
+ case 'theme':
72
+ this.setHostProperty('theme', changes['theme'].currentValue);
73
+ break;
74
+ case 'size':
75
+ this.setHostProperty('size', changes['size'].currentValue);
76
+ break;
77
+ case 'apiUrl':
78
+ this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
79
+ break;
80
+ case 'authKey':
81
+ this.setHostProperty('authKey', changes['authKey'].currentValue);
82
+ break;
83
+ case 'authToken':
84
+ this.setHostProperty('authToken', changes['authToken'].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-options-changed', (event) => {
102
+ const typed = event;
103
+ this.luzmoOptionsChanged.emit(typed);
104
+ }));
105
+ }
106
+ static ɵfac = function LuzmoItemOptionPanel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionPanel)(); };
107
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionPanel, selectors: [["luzmo-item-option-panel"]], inputs: { language: "language", itemType: "itemType", options: "options", slots: "slots", customOptionsConfiguration: "customOptionsConfiguration", customTranslations: "customTranslations", theme: "theme", size: "size", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken" }, outputs: { luzmoOptionsChanged: "luzmoOptionsChanged" }, exportAs: ["luzmoItemOptionPanel"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionPanel_Template(rf, ctx) { if (rf & 1) {
108
+ i0.ɵɵprojectionDef();
109
+ i0.ɵɵprojection(0);
110
+ } }, encapsulation: 2, changeDetection: 0 });
111
+ }
112
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoItemOptionPanel, [{
113
+ type: Component,
114
+ args: [{
115
+ selector: 'luzmo-item-option-panel',
116
+ exportAs: 'luzmoItemOptionPanel',
117
+ standalone: true,
118
+ changeDetection: ChangeDetectionStrategy.OnPush,
119
+ template: '<ng-content />'
120
+ }]
121
+ }], () => [], { language: [{
122
+ type: Input,
123
+ args: [{ alias: 'language' }]
124
+ }], itemType: [{
125
+ type: Input,
126
+ args: [{ alias: 'itemType' }]
127
+ }], options: [{
128
+ type: Input,
129
+ args: [{ alias: 'options' }]
130
+ }], slots: [{
131
+ type: Input,
132
+ args: [{ alias: 'slots' }]
133
+ }], customOptionsConfiguration: [{
134
+ type: Input,
135
+ args: [{ alias: 'customOptionsConfiguration' }]
136
+ }], customTranslations: [{
137
+ type: Input,
138
+ args: [{ alias: 'customTranslations' }]
139
+ }], theme: [{
140
+ type: Input,
141
+ args: [{ alias: 'theme' }]
142
+ }], size: [{
143
+ type: Input,
144
+ args: [{ alias: 'size' }]
145
+ }], apiUrl: [{
146
+ type: Input,
147
+ args: [{ alias: 'apiUrl' }]
148
+ }], authKey: [{
149
+ type: Input,
150
+ args: [{ alias: 'authKey' }]
151
+ }], authToken: [{
152
+ type: Input,
153
+ args: [{ alias: 'authToken' }]
154
+ }], luzmoOptionsChanged: [{ type: i0.Output, args: ["luzmoOptionsChanged"] }] }); })();
155
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionPanel, { className: "LuzmoItemOptionPanel", filePath: "components/item-option-panel.ts", lineNumber: 18 }); })();
@@ -0,0 +1,30 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-picker';
3
+ import type { LuzmoItemOptionPicker as LuzmoItemOptionPickerHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-picker';
4
+ import * as i0 from "@angular/core";
5
+ export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-picker';
6
+ export declare class LuzmoItemOptionPicker 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(): LuzmoItemOptionPickerHostElement;
14
+ /** Emitted when the option value changes. */
15
+ readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
16
+ constructor();
17
+ ngOnChanges(changes: SimpleChanges): void;
18
+ /**
19
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
20
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
21
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
22
+ * undefined / null by clearing their bindings.
23
+ */
24
+ private setHostProperty;
25
+ private bindEvents;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionPicker, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionPicker, "luzmo-item-option-picker", ["luzmoItemOptionPicker"], {}, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
28
+ }
29
+ /** The underlying custom element type for LuzmoItemOptionPicker */
30
+ export type LuzmoItemOptionPickerElement = LuzmoItemOptionPickerHostElement;
@@ -0,0 +1,63 @@
1
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-picker';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-item-option-picker>
7
+ */
8
+ export class LuzmoItemOptionPicker {
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
+ /** Emitted when the option value changes. */
19
+ luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
20
+ constructor() {
21
+ this.bindEvents();
22
+ this.destroyRef.onDestroy(() => {
23
+ for (const cleanup of this.listenerCleanup) {
24
+ cleanup();
25
+ }
26
+ });
27
+ }
28
+ ngOnChanges(changes) {
29
+ // No mapped inputs for this wrapper.
30
+ void changes;
31
+ }
32
+ /**
33
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
34
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
35
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
36
+ * undefined / null by clearing their bindings.
37
+ */
38
+ setHostProperty(key, value) {
39
+ this.renderer.setProperty(this.host, key, value);
40
+ }
41
+ bindEvents() {
42
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-option-changed', (event) => {
43
+ const typed = event;
44
+ this.luzmoOptionChanged.emit(typed);
45
+ }));
46
+ }
47
+ static ɵfac = function LuzmoItemOptionPicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionPicker)(); };
48
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionPicker, selectors: [["luzmo-item-option-picker"]], outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionPicker_Template(rf, ctx) { if (rf & 1) {
49
+ i0.ɵɵprojectionDef();
50
+ i0.ɵɵprojection(0);
51
+ } }, encapsulation: 2, changeDetection: 0 });
52
+ }
53
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoItemOptionPicker, [{
54
+ type: Component,
55
+ args: [{
56
+ selector: 'luzmo-item-option-picker',
57
+ exportAs: 'luzmoItemOptionPicker',
58
+ standalone: true,
59
+ changeDetection: ChangeDetectionStrategy.OnPush,
60
+ template: '<ng-content />'
61
+ }]
62
+ }], () => [], { luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
63
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionPicker, { className: "LuzmoItemOptionPicker", filePath: "components/item-option-picker.ts", lineNumber: 16 }); })();
@@ -0,0 +1,30 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-position-picker';
3
+ import type { LuzmoItemOptionPositionPicker as LuzmoItemOptionPositionPickerHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-position-picker';
4
+ import * as i0 from "@angular/core";
5
+ export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-position-picker';
6
+ export declare class LuzmoItemOptionPositionPicker 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(): LuzmoItemOptionPositionPickerHostElement;
14
+ /** Emitted when the option value changes. */
15
+ readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
16
+ constructor();
17
+ ngOnChanges(changes: SimpleChanges): void;
18
+ /**
19
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
20
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
21
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
22
+ * undefined / null by clearing their bindings.
23
+ */
24
+ private setHostProperty;
25
+ private bindEvents;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionPositionPicker, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionPositionPicker, "luzmo-item-option-position-picker", ["luzmoItemOptionPositionPicker"], {}, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
28
+ }
29
+ /** The underlying custom element type for LuzmoItemOptionPositionPicker */
30
+ export type LuzmoItemOptionPositionPickerElement = LuzmoItemOptionPositionPickerHostElement;
@@ -0,0 +1,63 @@
1
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-position-picker';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-item-option-position-picker>
7
+ */
8
+ export class LuzmoItemOptionPositionPicker {
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
+ /** Emitted when the option value changes. */
19
+ luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
20
+ constructor() {
21
+ this.bindEvents();
22
+ this.destroyRef.onDestroy(() => {
23
+ for (const cleanup of this.listenerCleanup) {
24
+ cleanup();
25
+ }
26
+ });
27
+ }
28
+ ngOnChanges(changes) {
29
+ // No mapped inputs for this wrapper.
30
+ void changes;
31
+ }
32
+ /**
33
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
34
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
35
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
36
+ * undefined / null by clearing their bindings.
37
+ */
38
+ setHostProperty(key, value) {
39
+ this.renderer.setProperty(this.host, key, value);
40
+ }
41
+ bindEvents() {
42
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-option-changed', (event) => {
43
+ const typed = event;
44
+ this.luzmoOptionChanged.emit(typed);
45
+ }));
46
+ }
47
+ static ɵfac = function LuzmoItemOptionPositionPicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionPositionPicker)(); };
48
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionPositionPicker, selectors: [["luzmo-item-option-position-picker"]], outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionPositionPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionPositionPicker_Template(rf, ctx) { if (rf & 1) {
49
+ i0.ɵɵprojectionDef();
50
+ i0.ɵɵprojection(0);
51
+ } }, encapsulation: 2, changeDetection: 0 });
52
+ }
53
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoItemOptionPositionPicker, [{
54
+ type: Component,
55
+ args: [{
56
+ selector: 'luzmo-item-option-position-picker',
57
+ exportAs: 'luzmoItemOptionPositionPicker',
58
+ standalone: true,
59
+ changeDetection: ChangeDetectionStrategy.OnPush,
60
+ template: '<ng-content />'
61
+ }]
62
+ }], () => [], { luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
63
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionPositionPicker, { className: "LuzmoItemOptionPositionPicker", filePath: "components/item-option-position-picker.ts", lineNumber: 16 }); })();
@@ -0,0 +1,32 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-positions-number-field';
3
+ import type { LuzmoItemOptionPositionsNumberField as LuzmoItemOptionPositionsNumberFieldHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-positions-number-field';
4
+ import * as i0 from "@angular/core";
5
+ export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-positions-number-field';
6
+ export declare class LuzmoItemOptionPositionsNumberField 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(): LuzmoItemOptionPositionsNumberFieldHostElement;
14
+ syncedValue?: number;
15
+ debounceTimeout?: any;
16
+ /** Emitted when the option value changes. */
17
+ readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
18
+ constructor();
19
+ ngOnChanges(changes: SimpleChanges): void;
20
+ /**
21
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
22
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
23
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
24
+ * undefined / null by clearing their bindings.
25
+ */
26
+ private setHostProperty;
27
+ private bindEvents;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionPositionsNumberField, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionPositionsNumberField, "luzmo-item-option-positions-number-field", ["luzmoItemOptionPositionsNumberField"], { "syncedValue": { "alias": "syncedValue"; "required": false; }; "debounceTimeout": { "alias": "debounceTimeout"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
30
+ }
31
+ /** The underlying custom element type for LuzmoItemOptionPositionsNumberField */
32
+ export type LuzmoItemOptionPositionsNumberFieldElement = LuzmoItemOptionPositionsNumberFieldHostElement;
@@ -0,0 +1,81 @@
1
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-positions-number-field';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-item-option-positions-number-field>
7
+ */
8
+ export class LuzmoItemOptionPositionsNumberField {
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
+ syncedValue;
19
+ debounceTimeout;
20
+ /** Emitted when the option value changes. */
21
+ luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
22
+ constructor() {
23
+ this.bindEvents();
24
+ this.destroyRef.onDestroy(() => {
25
+ for (const cleanup of this.listenerCleanup) {
26
+ cleanup();
27
+ }
28
+ });
29
+ }
30
+ ngOnChanges(changes) {
31
+ for (const key of Object.keys(changes)) {
32
+ switch (key) {
33
+ case 'syncedValue':
34
+ this.setHostProperty('syncedValue', changes['syncedValue'].currentValue);
35
+ break;
36
+ case 'debounceTimeout':
37
+ this.setHostProperty('debounceTimeout', changes['debounceTimeout'].currentValue);
38
+ break;
39
+ default:
40
+ break;
41
+ }
42
+ }
43
+ }
44
+ /**
45
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
46
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
47
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
48
+ * undefined / null by clearing their bindings.
49
+ */
50
+ setHostProperty(key, value) {
51
+ this.renderer.setProperty(this.host, key, value);
52
+ }
53
+ bindEvents() {
54
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-option-changed', (event) => {
55
+ const typed = event;
56
+ this.luzmoOptionChanged.emit(typed);
57
+ }));
58
+ }
59
+ static ɵfac = function LuzmoItemOptionPositionsNumberField_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionPositionsNumberField)(); };
60
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionPositionsNumberField, selectors: [["luzmo-item-option-positions-number-field"]], inputs: { syncedValue: "syncedValue", debounceTimeout: "debounceTimeout" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionPositionsNumberField"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionPositionsNumberField_Template(rf, ctx) { if (rf & 1) {
61
+ i0.ɵɵprojectionDef();
62
+ i0.ɵɵprojection(0);
63
+ } }, encapsulation: 2, changeDetection: 0 });
64
+ }
65
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoItemOptionPositionsNumberField, [{
66
+ type: Component,
67
+ args: [{
68
+ selector: 'luzmo-item-option-positions-number-field',
69
+ exportAs: 'luzmoItemOptionPositionsNumberField',
70
+ standalone: true,
71
+ changeDetection: ChangeDetectionStrategy.OnPush,
72
+ template: '<ng-content />'
73
+ }]
74
+ }], () => [], { syncedValue: [{
75
+ type: Input,
76
+ args: [{ alias: 'syncedValue' }]
77
+ }], debounceTimeout: [{
78
+ type: Input,
79
+ args: [{ alias: 'debounceTimeout' }]
80
+ }], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
81
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionPositionsNumberField, { className: "LuzmoItemOptionPositionsNumberField", filePath: "components/item-option-positions-number-field.ts", lineNumber: 16 }); })();
@@ -0,0 +1,31 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-radio-button-group';
3
+ import type { LuzmoItemOptionRadioButtonGroup as LuzmoItemOptionRadioButtonGroupHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-radio-button-group';
4
+ import * as i0 from "@angular/core";
5
+ export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-radio-button-group';
6
+ export declare class LuzmoItemOptionRadioButtonGroup 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(): LuzmoItemOptionRadioButtonGroupHostElement;
14
+ debounceTimeout?: any;
15
+ /** Emitted when the option value changes. */
16
+ readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
17
+ constructor();
18
+ ngOnChanges(changes: SimpleChanges): void;
19
+ /**
20
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
21
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
22
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
23
+ * undefined / null by clearing their bindings.
24
+ */
25
+ private setHostProperty;
26
+ private bindEvents;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionRadioButtonGroup, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionRadioButtonGroup, "luzmo-item-option-radio-button-group", ["luzmoItemOptionRadioButtonGroup"], { "debounceTimeout": { "alias": "debounceTimeout"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
29
+ }
30
+ /** The underlying custom element type for LuzmoItemOptionRadioButtonGroup */
31
+ export type LuzmoItemOptionRadioButtonGroupElement = LuzmoItemOptionRadioButtonGroupHostElement;
@@ -0,0 +1,74 @@
1
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-radio-button-group';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-item-option-radio-button-group>
7
+ */
8
+ export class LuzmoItemOptionRadioButtonGroup {
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
+ debounceTimeout;
19
+ /** Emitted when the option value changes. */
20
+ luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
21
+ constructor() {
22
+ this.bindEvents();
23
+ this.destroyRef.onDestroy(() => {
24
+ for (const cleanup of this.listenerCleanup) {
25
+ cleanup();
26
+ }
27
+ });
28
+ }
29
+ ngOnChanges(changes) {
30
+ for (const key of Object.keys(changes)) {
31
+ switch (key) {
32
+ case 'debounceTimeout':
33
+ this.setHostProperty('debounceTimeout', changes['debounceTimeout'].currentValue);
34
+ break;
35
+ default:
36
+ break;
37
+ }
38
+ }
39
+ }
40
+ /**
41
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
42
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
43
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
44
+ * undefined / null by clearing their bindings.
45
+ */
46
+ setHostProperty(key, value) {
47
+ this.renderer.setProperty(this.host, key, value);
48
+ }
49
+ bindEvents() {
50
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-option-changed', (event) => {
51
+ const typed = event;
52
+ this.luzmoOptionChanged.emit(typed);
53
+ }));
54
+ }
55
+ static ɵfac = function LuzmoItemOptionRadioButtonGroup_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionRadioButtonGroup)(); };
56
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionRadioButtonGroup, selectors: [["luzmo-item-option-radio-button-group"]], inputs: { debounceTimeout: "debounceTimeout" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionRadioButtonGroup"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionRadioButtonGroup_Template(rf, ctx) { if (rf & 1) {
57
+ i0.ɵɵprojectionDef();
58
+ i0.ɵɵprojection(0);
59
+ } }, encapsulation: 2, changeDetection: 0 });
60
+ }
61
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoItemOptionRadioButtonGroup, [{
62
+ type: Component,
63
+ args: [{
64
+ selector: 'luzmo-item-option-radio-button-group',
65
+ exportAs: 'luzmoItemOptionRadioButtonGroup',
66
+ standalone: true,
67
+ changeDetection: ChangeDetectionStrategy.OnPush,
68
+ template: '<ng-content />'
69
+ }]
70
+ }], () => [], { debounceTimeout: [{
71
+ type: Input,
72
+ args: [{ alias: 'debounceTimeout' }]
73
+ }], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
74
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionRadioButtonGroup, { className: "LuzmoItemOptionRadioButtonGroup", filePath: "components/item-option-radio-button-group.ts", lineNumber: 16 }); })();