@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,30 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-action-button-group';
3
+ import type { LuzmoItemOptionActionButtonGroup as LuzmoItemOptionActionButtonGroupHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-action-button-group';
4
+ import * as i0 from "@angular/core";
5
+ export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-action-button-group';
6
+ export declare class LuzmoItemOptionActionButtonGroup 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(): LuzmoItemOptionActionButtonGroupHostElement;
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<LuzmoItemOptionActionButtonGroup, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionActionButtonGroup, "luzmo-item-option-action-button-group", ["luzmoItemOptionActionButtonGroup"], {}, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
28
+ }
29
+ /** The underlying custom element type for LuzmoItemOptionActionButtonGroup */
30
+ export type LuzmoItemOptionActionButtonGroupElement = LuzmoItemOptionActionButtonGroupHostElement;
@@ -0,0 +1,63 @@
1
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-action-button-group';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-item-option-action-button-group>
7
+ */
8
+ export class LuzmoItemOptionActionButtonGroup {
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 LuzmoItemOptionActionButtonGroup_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionActionButtonGroup)(); };
48
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionActionButtonGroup, selectors: [["luzmo-item-option-action-button-group"]], outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionActionButtonGroup"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionActionButtonGroup_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(LuzmoItemOptionActionButtonGroup, [{
54
+ type: Component,
55
+ args: [{
56
+ selector: 'luzmo-item-option-action-button-group',
57
+ exportAs: 'luzmoItemOptionActionButtonGroup',
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(LuzmoItemOptionActionButtonGroup, { className: "LuzmoItemOptionActionButtonGroup", filePath: "components/item-option-action-button-group.ts", lineNumber: 16 }); })();
@@ -0,0 +1,30 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-color-palette-picker';
3
+ import type { LuzmoItemOptionColorPalettePicker as LuzmoItemOptionColorPalettePickerHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-color-palette-picker';
4
+ import * as i0 from "@angular/core";
5
+ export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-color-palette-picker';
6
+ export declare class LuzmoItemOptionColorPalettePicker 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(): LuzmoItemOptionColorPalettePickerHostElement;
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<LuzmoItemOptionColorPalettePicker, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionColorPalettePicker, "luzmo-item-option-color-palette-picker", ["luzmoItemOptionColorPalettePicker"], {}, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
28
+ }
29
+ /** The underlying custom element type for LuzmoItemOptionColorPalettePicker */
30
+ export type LuzmoItemOptionColorPalettePickerElement = LuzmoItemOptionColorPalettePickerHostElement;
@@ -0,0 +1,63 @@
1
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-color-palette-picker';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-item-option-color-palette-picker>
7
+ */
8
+ export class LuzmoItemOptionColorPalettePicker {
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 LuzmoItemOptionColorPalettePicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionColorPalettePicker)(); };
48
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionColorPalettePicker, selectors: [["luzmo-item-option-color-palette-picker"]], outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionColorPalettePicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionColorPalettePicker_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(LuzmoItemOptionColorPalettePicker, [{
54
+ type: Component,
55
+ args: [{
56
+ selector: 'luzmo-item-option-color-palette-picker',
57
+ exportAs: 'luzmoItemOptionColorPalettePicker',
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(LuzmoItemOptionColorPalettePicker, { className: "LuzmoItemOptionColorPalettePicker", filePath: "components/item-option-color-palette-picker.ts", lineNumber: 16 }); })();
@@ -0,0 +1,35 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-color-picker';
3
+ import type { LuzmoItemOptionColorPicker as LuzmoItemOptionColorPickerHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-color-picker';
4
+ import * as i0 from "@angular/core";
5
+ export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-color-picker';
6
+ export declare class LuzmoItemOptionColorPicker 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(): LuzmoItemOptionColorPickerHostElement;
14
+ swatches?: string[];
15
+ rounding?: 'full' | 'light' | 'none';
16
+ shape?: 'circle' | 'rectangle';
17
+ debounce?: number;
18
+ debounceTimeout?: any;
19
+ /** Emitted when the option value changes. */
20
+ readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
21
+ constructor();
22
+ ngOnChanges(changes: SimpleChanges): void;
23
+ /**
24
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
25
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
26
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
27
+ * undefined / null by clearing their bindings.
28
+ */
29
+ private setHostProperty;
30
+ private bindEvents;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionColorPicker, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionColorPicker, "luzmo-item-option-color-picker", ["luzmoItemOptionColorPicker"], { "swatches": { "alias": "swatches"; "required": false; }; "rounding": { "alias": "rounding"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; "debounceTimeout": { "alias": "debounceTimeout"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
33
+ }
34
+ /** The underlying custom element type for LuzmoItemOptionColorPicker */
35
+ export type LuzmoItemOptionColorPickerElement = LuzmoItemOptionColorPickerHostElement;
@@ -0,0 +1,102 @@
1
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-color-picker';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-item-option-color-picker>
7
+ */
8
+ export class LuzmoItemOptionColorPicker {
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
+ swatches;
19
+ rounding;
20
+ shape;
21
+ debounce;
22
+ debounceTimeout;
23
+ /** Emitted when the option value changes. */
24
+ luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
25
+ constructor() {
26
+ this.bindEvents();
27
+ this.destroyRef.onDestroy(() => {
28
+ for (const cleanup of this.listenerCleanup) {
29
+ cleanup();
30
+ }
31
+ });
32
+ }
33
+ ngOnChanges(changes) {
34
+ for (const key of Object.keys(changes)) {
35
+ switch (key) {
36
+ case 'swatches':
37
+ this.setHostProperty('swatches', changes['swatches'].currentValue);
38
+ break;
39
+ case 'rounding':
40
+ this.setHostProperty('rounding', changes['rounding'].currentValue);
41
+ break;
42
+ case 'shape':
43
+ this.setHostProperty('shape', changes['shape'].currentValue);
44
+ break;
45
+ case 'debounce':
46
+ this.setHostProperty('debounce', changes['debounce'].currentValue);
47
+ break;
48
+ case 'debounceTimeout':
49
+ this.setHostProperty('debounceTimeout', changes['debounceTimeout'].currentValue);
50
+ break;
51
+ default:
52
+ break;
53
+ }
54
+ }
55
+ }
56
+ /**
57
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
58
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
59
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
60
+ * undefined / null by clearing their bindings.
61
+ */
62
+ setHostProperty(key, value) {
63
+ this.renderer.setProperty(this.host, key, value);
64
+ }
65
+ bindEvents() {
66
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-option-changed', (event) => {
67
+ const typed = event;
68
+ this.luzmoOptionChanged.emit(typed);
69
+ }));
70
+ }
71
+ static ɵfac = function LuzmoItemOptionColorPicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionColorPicker)(); };
72
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionColorPicker, selectors: [["luzmo-item-option-color-picker"]], inputs: { swatches: "swatches", rounding: "rounding", shape: "shape", debounce: "debounce", debounceTimeout: "debounceTimeout" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionColorPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionColorPicker_Template(rf, ctx) { if (rf & 1) {
73
+ i0.ɵɵprojectionDef();
74
+ i0.ɵɵprojection(0);
75
+ } }, encapsulation: 2, changeDetection: 0 });
76
+ }
77
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoItemOptionColorPicker, [{
78
+ type: Component,
79
+ args: [{
80
+ selector: 'luzmo-item-option-color-picker',
81
+ exportAs: 'luzmoItemOptionColorPicker',
82
+ standalone: true,
83
+ changeDetection: ChangeDetectionStrategy.OnPush,
84
+ template: '<ng-content />'
85
+ }]
86
+ }], () => [], { swatches: [{
87
+ type: Input,
88
+ args: [{ alias: 'swatches' }]
89
+ }], rounding: [{
90
+ type: Input,
91
+ args: [{ alias: 'rounding' }]
92
+ }], shape: [{
93
+ type: Input,
94
+ args: [{ alias: 'shape' }]
95
+ }], debounce: [{
96
+ type: Input,
97
+ args: [{ alias: 'debounce' }]
98
+ }], debounceTimeout: [{
99
+ type: Input,
100
+ args: [{ alias: 'debounceTimeout' }]
101
+ }], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
102
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionColorPicker, { className: "LuzmoItemOptionColorPicker", filePath: "components/item-option-color-picker.ts", lineNumber: 16 }); })();
@@ -0,0 +1,30 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-color-range';
3
+ import type { LuzmoItemOptionColorRange as LuzmoItemOptionColorRangeHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-color-range';
4
+ import * as i0 from "@angular/core";
5
+ export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-color-range';
6
+ export declare class LuzmoItemOptionColorRange 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(): LuzmoItemOptionColorRangeHostElement;
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<LuzmoItemOptionColorRange, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionColorRange, "luzmo-item-option-color-range", ["luzmoItemOptionColorRange"], {}, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
28
+ }
29
+ /** The underlying custom element type for LuzmoItemOptionColorRange */
30
+ export type LuzmoItemOptionColorRangeElement = LuzmoItemOptionColorRangeHostElement;
@@ -0,0 +1,63 @@
1
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-color-range';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-item-option-color-range>
7
+ */
8
+ export class LuzmoItemOptionColorRange {
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 LuzmoItemOptionColorRange_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionColorRange)(); };
48
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionColorRange, selectors: [["luzmo-item-option-color-range"]], outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionColorRange"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionColorRange_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(LuzmoItemOptionColorRange, [{
54
+ type: Component,
55
+ args: [{
56
+ selector: 'luzmo-item-option-color-range',
57
+ exportAs: 'luzmoItemOptionColorRange',
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(LuzmoItemOptionColorRange, { className: "LuzmoItemOptionColorRange", filePath: "components/item-option-color-range.ts", lineNumber: 16 }); })();
@@ -0,0 +1,31 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-multi-language-field';
3
+ import type { LuzmoItemOptionMultiLangField as LuzmoItemOptionMultiLangFieldHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-multi-language-field';
4
+ import * as i0 from "@angular/core";
5
+ export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-multi-language-field';
6
+ export declare class LuzmoItemOptionMultiLanguageField 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(): LuzmoItemOptionMultiLangFieldHostElement;
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<LuzmoItemOptionMultiLanguageField, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionMultiLanguageField, "luzmo-item-option-multi-language-field", ["luzmoItemOptionMultiLanguageField"], { "debounceTimeout": { "alias": "debounceTimeout"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
29
+ }
30
+ /** The underlying custom element type for LuzmoItemOptionMultiLanguageField */
31
+ export type LuzmoItemOptionMultiLanguageFieldElement = LuzmoItemOptionMultiLangFieldHostElement;
@@ -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-multi-language-field';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-item-option-multi-language-field>
7
+ */
8
+ export class LuzmoItemOptionMultiLanguageField {
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 LuzmoItemOptionMultiLanguageField_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionMultiLanguageField)(); };
56
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionMultiLanguageField, selectors: [["luzmo-item-option-multi-language-field"]], inputs: { debounceTimeout: "debounceTimeout" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionMultiLanguageField"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionMultiLanguageField_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(LuzmoItemOptionMultiLanguageField, [{
62
+ type: Component,
63
+ args: [{
64
+ selector: 'luzmo-item-option-multi-language-field',
65
+ exportAs: 'luzmoItemOptionMultiLanguageField',
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(LuzmoItemOptionMultiLanguageField, { className: "LuzmoItemOptionMultiLanguageField", filePath: "components/item-option-multi-language-field.ts", lineNumber: 16 }); })();
@@ -0,0 +1,32 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/item-option-number-field';
3
+ import type { LuzmoItemOptionNumberField as LuzmoItemOptionNumberFieldHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-number-field';
4
+ import * as i0 from "@angular/core";
5
+ export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-number-field';
6
+ export declare class LuzmoItemOptionNumberField 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(): LuzmoItemOptionNumberFieldHostElement;
14
+ debounce?: 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<LuzmoItemOptionNumberField, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionNumberField, "luzmo-item-option-number-field", ["luzmoItemOptionNumberField"], { "debounce": { "alias": "debounce"; "required": false; }; "debounceTimeout": { "alias": "debounceTimeout"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
30
+ }
31
+ /** The underlying custom element type for LuzmoItemOptionNumberField */
32
+ export type LuzmoItemOptionNumberFieldElement = LuzmoItemOptionNumberFieldHostElement;
@@ -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-number-field';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-item-option-number-field>
7
+ */
8
+ export class LuzmoItemOptionNumberField {
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
+ debounce;
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 'debounce':
34
+ this.setHostProperty('debounce', changes['debounce'].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 LuzmoItemOptionNumberField_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionNumberField)(); };
60
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionNumberField, selectors: [["luzmo-item-option-number-field"]], inputs: { debounce: "debounce", debounceTimeout: "debounceTimeout" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionNumberField"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionNumberField_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(LuzmoItemOptionNumberField, [{
66
+ type: Component,
67
+ args: [{
68
+ selector: 'luzmo-item-option-number-field',
69
+ exportAs: 'luzmoItemOptionNumberField',
70
+ standalone: true,
71
+ changeDetection: ChangeDetectionStrategy.OnPush,
72
+ template: '<ng-content />'
73
+ }]
74
+ }], () => [], { debounce: [{
75
+ type: Input,
76
+ args: [{ alias: 'debounce' }]
77
+ }], debounceTimeout: [{
78
+ type: Input,
79
+ args: [{ alias: 'debounceTimeout' }]
80
+ }], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
81
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionNumberField, { className: "LuzmoItemOptionNumberField", filePath: "components/item-option-number-field.ts", lineNumber: 16 }); })();