@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.
- package/README.md +40 -0
- package/esm/components/ai-chat-empty-state.d.ts +39 -0
- package/esm/components/ai-chat-empty-state.js +99 -0
- package/esm/components/ai-chat.d.ts +121 -0
- package/esm/components/ai-chat.js +369 -0
- package/esm/components/ai-interaction-textarea.d.ts +110 -0
- package/esm/components/ai-interaction-textarea.js +297 -0
- package/esm/components/data-field-level.d.ts +42 -0
- package/esm/components/data-field-level.js +115 -0
- package/esm/components/data-field-panel.d.ts +84 -0
- package/esm/components/data-field-panel.js +260 -0
- package/esm/components/data-field.d.ts +41 -0
- package/esm/components/data-field.js +108 -0
- package/esm/components/data-fields-select.d.ts +70 -0
- package/esm/components/data-fields-select.js +187 -0
- package/esm/components/dataset-icon.d.ts +34 -0
- package/esm/components/dataset-icon.js +86 -0
- package/esm/components/dataset-selector-list.d.ts +53 -0
- package/esm/components/dataset-selector-list.js +147 -0
- package/esm/components/dataset-selector-row.d.ts +56 -0
- package/esm/components/dataset-selector-row.js +153 -0
- package/esm/components/display-settings-binning.d.ts +32 -0
- package/esm/components/display-settings-binning.js +74 -0
- package/esm/components/display-settings-datetime.d.ts +36 -0
- package/esm/components/display-settings-datetime.js +89 -0
- package/esm/components/display-settings-grand-totals.d.ts +33 -0
- package/esm/components/display-settings-grand-totals.js +75 -0
- package/esm/components/display-settings-numeric.d.ts +41 -0
- package/esm/components/display-settings-numeric.js +99 -0
- package/esm/components/display-settings-period-over-period.d.ts +38 -0
- package/esm/components/display-settings-period-over-period.js +89 -0
- package/esm/components/display-settings.d.ts +69 -0
- package/esm/components/display-settings.js +182 -0
- package/esm/components/filter-expression-picker.d.ts +54 -0
- package/esm/components/filter-expression-picker.js +146 -0
- package/esm/components/filter-item.d.ts +44 -0
- package/esm/components/filter-item.js +130 -0
- package/esm/components/filter-parameter-picker.d.ts +31 -0
- package/esm/components/filter-parameter-picker.js +78 -0
- package/esm/components/filter-value-picker-datetime.d.ts +34 -0
- package/esm/components/filter-value-picker-datetime.js +90 -0
- package/esm/components/filter-value-picker-hierarchy.d.ts +40 -0
- package/esm/components/filter-value-picker-hierarchy.js +114 -0
- package/esm/components/filter-value-picker-numeric.d.ts +40 -0
- package/esm/components/filter-value-picker-numeric.js +114 -0
- package/esm/components/filter-value-picker.d.ts +44 -0
- package/esm/components/filter-value-picker.js +130 -0
- package/esm/components/filters.d.ts +49 -0
- package/esm/components/filters.js +139 -0
- package/esm/components/formula-editor.d.ts +39 -0
- package/esm/components/formula-editor.js +95 -0
- package/esm/components/formula-field.d.ts +31 -0
- package/esm/components/formula-field.js +69 -0
- package/esm/components/formula.d.ts +31 -0
- package/esm/components/formula.js +75 -0
- package/esm/components/item-grid-item-actions-menu.d.ts +34 -0
- package/esm/components/item-grid-item-actions-menu.js +82 -0
- package/esm/components/item-grid.d.ts +80 -0
- package/esm/components/item-grid.js +245 -0
- package/esm/components/item-option-action-button-group.d.ts +30 -0
- package/esm/components/item-option-action-button-group.js +63 -0
- package/esm/components/item-option-color-palette-picker.d.ts +30 -0
- package/esm/components/item-option-color-palette-picker.js +63 -0
- package/esm/components/item-option-color-picker.d.ts +35 -0
- package/esm/components/item-option-color-picker.js +102 -0
- package/esm/components/item-option-color-range.d.ts +30 -0
- package/esm/components/item-option-color-range.js +63 -0
- package/esm/components/item-option-multi-language-field.d.ts +31 -0
- package/esm/components/item-option-multi-language-field.js +74 -0
- package/esm/components/item-option-number-field.d.ts +32 -0
- package/esm/components/item-option-number-field.js +81 -0
- package/esm/components/item-option-panel.d.ts +54 -0
- package/esm/components/item-option-panel.js +155 -0
- package/esm/components/item-option-picker.d.ts +30 -0
- package/esm/components/item-option-picker.js +63 -0
- package/esm/components/item-option-position-picker.d.ts +30 -0
- package/esm/components/item-option-position-picker.js +63 -0
- package/esm/components/item-option-positions-number-field.d.ts +32 -0
- package/esm/components/item-option-positions-number-field.js +81 -0
- package/esm/components/item-option-radio-button-group.d.ts +31 -0
- package/esm/components/item-option-radio-button-group.js +74 -0
- package/esm/components/item-option-slider.d.ts +36 -0
- package/esm/components/item-option-slider.js +109 -0
- package/esm/components/item-option-switch.d.ts +34 -0
- package/esm/components/item-option-switch.js +81 -0
- package/esm/components/item-option-text-field.d.ts +31 -0
- package/esm/components/item-option-text-field.js +74 -0
- package/esm/components/item-option.d.ts +48 -0
- package/esm/components/item-option.js +161 -0
- package/esm/components/item-slot-drop-panel.d.ts +78 -0
- package/esm/components/item-slot-drop-panel.js +233 -0
- package/esm/components/item-slot-drop.d.ts +63 -0
- package/esm/components/item-slot-drop.js +201 -0
- package/esm/components/item-slot-picker-panel.d.ts +95 -0
- package/esm/components/item-slot-picker-panel.js +301 -0
- package/esm/components/item-slot-picker.d.ts +80 -0
- package/esm/components/item-slot-picker.js +235 -0
- package/esm/components/slot-menu-list.d.ts +37 -0
- package/esm/components/slot-menu-list.js +97 -0
- package/esm/components/slot-menu.d.ts +85 -0
- package/esm/components/slot-menu.js +271 -0
- package/esm/components/viz-item-menu.d.ts +40 -0
- package/esm/components/viz-item-menu.js +103 -0
- package/esm/index.d.ts +105 -0
- package/esm/index.js +209 -0
- package/package.json +40 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-option-slider';
|
|
3
|
+
import type { LuzmoItemOptionSlider as LuzmoItemOptionSliderHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-slider';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-slider';
|
|
6
|
+
export declare class LuzmoItemOptionSlider 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(): LuzmoItemOptionSliderHostElement;
|
|
14
|
+
value?: number;
|
|
15
|
+
default?: number;
|
|
16
|
+
min?: number;
|
|
17
|
+
max?: number;
|
|
18
|
+
step?: number;
|
|
19
|
+
debounce?: number;
|
|
20
|
+
/** Emitted when the option value changes. */
|
|
21
|
+
readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
22
|
+
constructor();
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
/**
|
|
25
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
26
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
27
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
28
|
+
* undefined / null by clearing their bindings.
|
|
29
|
+
*/
|
|
30
|
+
private setHostProperty;
|
|
31
|
+
private bindEvents;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionSlider, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionSlider, "luzmo-item-option-slider", ["luzmoItemOptionSlider"], { "value": { "alias": "value"; "required": false; }; "default": { "alias": "default"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
|
|
34
|
+
}
|
|
35
|
+
/** The underlying custom element type for LuzmoItemOptionSlider */
|
|
36
|
+
export type LuzmoItemOptionSliderElement = LuzmoItemOptionSliderHostElement;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-option-slider';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-item-option-slider>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoItemOptionSlider {
|
|
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
|
+
value;
|
|
19
|
+
default;
|
|
20
|
+
min;
|
|
21
|
+
max;
|
|
22
|
+
step;
|
|
23
|
+
debounce;
|
|
24
|
+
/** Emitted when the option value changes. */
|
|
25
|
+
luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
|
|
26
|
+
constructor() {
|
|
27
|
+
this.bindEvents();
|
|
28
|
+
this.destroyRef.onDestroy(() => {
|
|
29
|
+
for (const cleanup of this.listenerCleanup) {
|
|
30
|
+
cleanup();
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
ngOnChanges(changes) {
|
|
35
|
+
for (const key of Object.keys(changes)) {
|
|
36
|
+
switch (key) {
|
|
37
|
+
case 'value':
|
|
38
|
+
this.setHostProperty('value', changes['value'].currentValue);
|
|
39
|
+
break;
|
|
40
|
+
case 'default':
|
|
41
|
+
this.setHostProperty('default', changes['default'].currentValue);
|
|
42
|
+
break;
|
|
43
|
+
case 'min':
|
|
44
|
+
this.setHostProperty('min', changes['min'].currentValue);
|
|
45
|
+
break;
|
|
46
|
+
case 'max':
|
|
47
|
+
this.setHostProperty('max', changes['max'].currentValue);
|
|
48
|
+
break;
|
|
49
|
+
case 'step':
|
|
50
|
+
this.setHostProperty('step', changes['step'].currentValue);
|
|
51
|
+
break;
|
|
52
|
+
case 'debounce':
|
|
53
|
+
this.setHostProperty('debounce', changes['debounce'].currentValue);
|
|
54
|
+
break;
|
|
55
|
+
default:
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
62
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
63
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
64
|
+
* undefined / null by clearing their bindings.
|
|
65
|
+
*/
|
|
66
|
+
setHostProperty(key, value) {
|
|
67
|
+
this.renderer.setProperty(this.host, key, value);
|
|
68
|
+
}
|
|
69
|
+
bindEvents() {
|
|
70
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-option-changed', (event) => {
|
|
71
|
+
const typed = event;
|
|
72
|
+
this.luzmoOptionChanged.emit(typed);
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
static ɵfac = function LuzmoItemOptionSlider_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionSlider)(); };
|
|
76
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionSlider, selectors: [["luzmo-item-option-slider"]], inputs: { value: "value", default: "default", min: "min", max: "max", step: "step", debounce: "debounce" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionSlider"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionSlider_Template(rf, ctx) { if (rf & 1) {
|
|
77
|
+
i0.ɵɵprojectionDef();
|
|
78
|
+
i0.ɵɵprojection(0);
|
|
79
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
80
|
+
}
|
|
81
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoItemOptionSlider, [{
|
|
82
|
+
type: Component,
|
|
83
|
+
args: [{
|
|
84
|
+
selector: 'luzmo-item-option-slider',
|
|
85
|
+
exportAs: 'luzmoItemOptionSlider',
|
|
86
|
+
standalone: true,
|
|
87
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
88
|
+
template: '<ng-content />'
|
|
89
|
+
}]
|
|
90
|
+
}], () => [], { value: [{
|
|
91
|
+
type: Input,
|
|
92
|
+
args: [{ alias: 'value' }]
|
|
93
|
+
}], default: [{
|
|
94
|
+
type: Input,
|
|
95
|
+
args: [{ alias: 'default' }]
|
|
96
|
+
}], min: [{
|
|
97
|
+
type: Input,
|
|
98
|
+
args: [{ alias: 'min' }]
|
|
99
|
+
}], max: [{
|
|
100
|
+
type: Input,
|
|
101
|
+
args: [{ alias: 'max' }]
|
|
102
|
+
}], step: [{
|
|
103
|
+
type: Input,
|
|
104
|
+
args: [{ alias: 'step' }]
|
|
105
|
+
}], debounce: [{
|
|
106
|
+
type: Input,
|
|
107
|
+
args: [{ alias: 'debounce' }]
|
|
108
|
+
}], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
|
|
109
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionSlider, { className: "LuzmoItemOptionSlider", filePath: "components/item-option-slider.ts", lineNumber: 16 }); })();
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-option-switch';
|
|
3
|
+
import type { LuzmoItemOptionSwitch as LuzmoItemOptionSwitchHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-switch';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-switch';
|
|
6
|
+
export declare class LuzmoItemOptionSwitch 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(): LuzmoItemOptionSwitchHostElement;
|
|
14
|
+
value?: boolean;
|
|
15
|
+
default?: boolean;
|
|
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<LuzmoItemOptionSwitch, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionSwitch, "luzmo-item-option-switch", ["luzmoItemOptionSwitch"], { "value": { "alias": "value"; "required": false; }; "default": { "alias": "default"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
|
|
30
|
+
static ngAcceptInputType_value: unknown;
|
|
31
|
+
static ngAcceptInputType_default: unknown;
|
|
32
|
+
}
|
|
33
|
+
/** The underlying custom element type for LuzmoItemOptionSwitch */
|
|
34
|
+
export type LuzmoItemOptionSwitchElement = LuzmoItemOptionSwitchHostElement;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-option-switch';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-item-option-switch>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoItemOptionSwitch {
|
|
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
|
+
value;
|
|
19
|
+
default;
|
|
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 'value':
|
|
34
|
+
this.setHostProperty('value', changes['value'].currentValue);
|
|
35
|
+
break;
|
|
36
|
+
case 'default':
|
|
37
|
+
this.setHostProperty('default', changes['default'].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 LuzmoItemOptionSwitch_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionSwitch)(); };
|
|
60
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionSwitch, selectors: [["luzmo-item-option-switch"]], inputs: { value: [2, "value", "value", booleanAttribute], default: [2, "default", "default", booleanAttribute] }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionSwitch"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionSwitch_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(LuzmoItemOptionSwitch, [{
|
|
66
|
+
type: Component,
|
|
67
|
+
args: [{
|
|
68
|
+
selector: 'luzmo-item-option-switch',
|
|
69
|
+
exportAs: 'luzmoItemOptionSwitch',
|
|
70
|
+
standalone: true,
|
|
71
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
72
|
+
template: '<ng-content />'
|
|
73
|
+
}]
|
|
74
|
+
}], () => [], { value: [{
|
|
75
|
+
type: Input,
|
|
76
|
+
args: [{ alias: 'value', transform: booleanAttribute }]
|
|
77
|
+
}], default: [{
|
|
78
|
+
type: Input,
|
|
79
|
+
args: [{ alias: 'default', transform: booleanAttribute }]
|
|
80
|
+
}], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
|
|
81
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionSwitch, { className: "LuzmoItemOptionSwitch", filePath: "components/item-option-switch.ts", lineNumber: 16 }); })();
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-option-text-field';
|
|
3
|
+
import type { LuzmoItemOptionTextField as LuzmoItemOptionTextFieldHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-text-field';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type { ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-text-field';
|
|
6
|
+
export declare class LuzmoItemOptionTextField 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(): LuzmoItemOptionTextFieldHostElement;
|
|
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<LuzmoItemOptionTextField, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionTextField, "luzmo-item-option-text-field", ["luzmoItemOptionTextField"], { "debounceTimeout": { "alias": "debounceTimeout"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
/** The underlying custom element type for LuzmoItemOptionTextField */
|
|
31
|
+
export type LuzmoItemOptionTextFieldElement = LuzmoItemOptionTextFieldHostElement;
|
|
@@ -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-text-field';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-item-option-text-field>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoItemOptionTextField {
|
|
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 LuzmoItemOptionTextField_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionTextField)(); };
|
|
56
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionTextField, selectors: [["luzmo-item-option-text-field"]], inputs: { debounceTimeout: "debounceTimeout" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionTextField"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionTextField_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(LuzmoItemOptionTextField, [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{
|
|
64
|
+
selector: 'luzmo-item-option-text-field',
|
|
65
|
+
exportAs: 'luzmoItemOptionTextField',
|
|
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(LuzmoItemOptionTextField, { className: "LuzmoItemOptionTextField", filePath: "components/item-option-text-field.ts", lineNumber: 16 }); })();
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-option';
|
|
3
|
+
import type { LuzmoItemOption as LuzmoItemOptionHostElement, ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option';
|
|
4
|
+
import type { ElementSize } from '@luzmo/analytics-components-kit/types';
|
|
5
|
+
import type { OptionConfig, OptionTranslation, ThemeConfig, TranslationOverrides, VizItemType } from '@luzmo/dashboard-contents-types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export type { ItemOptionChangedEventDetail, ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option';
|
|
8
|
+
export declare class LuzmoItemOption 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(): LuzmoItemOptionHostElement;
|
|
16
|
+
language?: string;
|
|
17
|
+
itemType?: VizItemType | string;
|
|
18
|
+
optionKey?: string;
|
|
19
|
+
customOptionConfiguration?: OptionConfig;
|
|
20
|
+
customTranslations?: OptionTranslation | TranslationOverrides;
|
|
21
|
+
options?: Record<string, unknown>;
|
|
22
|
+
slots?: unknown[];
|
|
23
|
+
theme?: ThemeConfig & Record<string, any>;
|
|
24
|
+
/** The API URL of the databroker */
|
|
25
|
+
apiUrl?: string;
|
|
26
|
+
/** The auth key of the databroker */
|
|
27
|
+
authKey?: string;
|
|
28
|
+
/** The auth token of the databroker */
|
|
29
|
+
authToken?: string;
|
|
30
|
+
size?: ElementSize;
|
|
31
|
+
changedOptions?: unknown;
|
|
32
|
+
/** Announces that the `options` of the element have changed */
|
|
33
|
+
readonly luzmoOptionsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionsChangedEventDetail>>;
|
|
34
|
+
constructor();
|
|
35
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
36
|
+
/**
|
|
37
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
38
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
39
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
40
|
+
* undefined / null by clearing their bindings.
|
|
41
|
+
*/
|
|
42
|
+
private setHostProperty;
|
|
43
|
+
private bindEvents;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOption, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOption, "luzmo-item-option", ["luzmoItemOption"], { "language": { "alias": "language"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "optionKey": { "alias": "optionKey"; "required": false; }; "customOptionConfiguration": { "alias": "customOptionConfiguration"; "required": false; }; "customTranslations": { "alias": "customTranslations"; "required": false; }; "options": { "alias": "options"; "required": false; }; "slots": { "alias": "slots"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "size": { "alias": "size"; "required": false; }; "changedOptions": { "alias": "changedOptions"; "required": false; }; }, { "luzmoOptionsChanged": "luzmoOptionsChanged"; }, never, ["*"], true, never>;
|
|
46
|
+
}
|
|
47
|
+
/** The underlying custom element type for LuzmoItemOption */
|
|
48
|
+
export type LuzmoItemOptionElement = LuzmoItemOptionHostElement;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-option';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-item-option>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoItemOption {
|
|
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
|
+
language;
|
|
19
|
+
itemType;
|
|
20
|
+
optionKey;
|
|
21
|
+
customOptionConfiguration;
|
|
22
|
+
customTranslations;
|
|
23
|
+
options;
|
|
24
|
+
slots;
|
|
25
|
+
theme;
|
|
26
|
+
/** The API URL of the databroker */
|
|
27
|
+
apiUrl;
|
|
28
|
+
/** The auth key of the databroker */
|
|
29
|
+
authKey;
|
|
30
|
+
/** The auth token of the databroker */
|
|
31
|
+
authToken;
|
|
32
|
+
size;
|
|
33
|
+
changedOptions;
|
|
34
|
+
/** Announces that the `options` of the element have changed */
|
|
35
|
+
luzmoOptionsChanged = output({ alias: 'luzmoOptionsChanged' });
|
|
36
|
+
constructor() {
|
|
37
|
+
this.bindEvents();
|
|
38
|
+
this.destroyRef.onDestroy(() => {
|
|
39
|
+
for (const cleanup of this.listenerCleanup) {
|
|
40
|
+
cleanup();
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
ngOnChanges(changes) {
|
|
45
|
+
for (const key of Object.keys(changes)) {
|
|
46
|
+
switch (key) {
|
|
47
|
+
case 'language':
|
|
48
|
+
this.setHostProperty('language', changes['language'].currentValue);
|
|
49
|
+
break;
|
|
50
|
+
case 'itemType':
|
|
51
|
+
this.setHostProperty('itemType', changes['itemType'].currentValue);
|
|
52
|
+
break;
|
|
53
|
+
case 'optionKey':
|
|
54
|
+
this.setHostProperty('optionKey', changes['optionKey'].currentValue);
|
|
55
|
+
break;
|
|
56
|
+
case 'customOptionConfiguration':
|
|
57
|
+
this.setHostProperty('customOptionConfiguration', changes['customOptionConfiguration'].currentValue);
|
|
58
|
+
break;
|
|
59
|
+
case 'customTranslations':
|
|
60
|
+
this.setHostProperty('customTranslations', changes['customTranslations'].currentValue);
|
|
61
|
+
break;
|
|
62
|
+
case 'options':
|
|
63
|
+
this.setHostProperty('options', changes['options'].currentValue);
|
|
64
|
+
break;
|
|
65
|
+
case 'slots':
|
|
66
|
+
this.setHostProperty('slots', changes['slots'].currentValue);
|
|
67
|
+
break;
|
|
68
|
+
case 'theme':
|
|
69
|
+
this.setHostProperty('theme', changes['theme'].currentValue);
|
|
70
|
+
break;
|
|
71
|
+
case 'apiUrl':
|
|
72
|
+
this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
|
|
73
|
+
break;
|
|
74
|
+
case 'authKey':
|
|
75
|
+
this.setHostProperty('authKey', changes['authKey'].currentValue);
|
|
76
|
+
break;
|
|
77
|
+
case 'authToken':
|
|
78
|
+
this.setHostProperty('authToken', changes['authToken'].currentValue);
|
|
79
|
+
break;
|
|
80
|
+
case 'size':
|
|
81
|
+
this.setHostProperty('size', changes['size'].currentValue);
|
|
82
|
+
break;
|
|
83
|
+
case 'changedOptions':
|
|
84
|
+
this.setHostProperty('changedOptions', changes['changedOptions'].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 LuzmoItemOption_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOption)(); };
|
|
107
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOption, selectors: [["luzmo-item-option"]], inputs: { language: "language", itemType: "itemType", optionKey: "optionKey", customOptionConfiguration: "customOptionConfiguration", customTranslations: "customTranslations", options: "options", slots: "slots", theme: "theme", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", size: "size", changedOptions: "changedOptions" }, outputs: { luzmoOptionsChanged: "luzmoOptionsChanged" }, exportAs: ["luzmoItemOption"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOption_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(LuzmoItemOption, [{
|
|
113
|
+
type: Component,
|
|
114
|
+
args: [{
|
|
115
|
+
selector: 'luzmo-item-option',
|
|
116
|
+
exportAs: 'luzmoItemOption',
|
|
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
|
+
}], optionKey: [{
|
|
128
|
+
type: Input,
|
|
129
|
+
args: [{ alias: 'optionKey' }]
|
|
130
|
+
}], customOptionConfiguration: [{
|
|
131
|
+
type: Input,
|
|
132
|
+
args: [{ alias: 'customOptionConfiguration' }]
|
|
133
|
+
}], customTranslations: [{
|
|
134
|
+
type: Input,
|
|
135
|
+
args: [{ alias: 'customTranslations' }]
|
|
136
|
+
}], options: [{
|
|
137
|
+
type: Input,
|
|
138
|
+
args: [{ alias: 'options' }]
|
|
139
|
+
}], slots: [{
|
|
140
|
+
type: Input,
|
|
141
|
+
args: [{ alias: 'slots' }]
|
|
142
|
+
}], theme: [{
|
|
143
|
+
type: Input,
|
|
144
|
+
args: [{ alias: 'theme' }]
|
|
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
|
+
}], size: [{
|
|
155
|
+
type: Input,
|
|
156
|
+
args: [{ alias: 'size' }]
|
|
157
|
+
}], changedOptions: [{
|
|
158
|
+
type: Input,
|
|
159
|
+
args: [{ alias: 'changedOptions' }]
|
|
160
|
+
}], luzmoOptionsChanged: [{ type: i0.Output, args: ["luzmoOptionsChanged"] }] }); })();
|
|
161
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOption, { className: "LuzmoItemOption", filePath: "components/item-option.ts", lineNumber: 18 }); })();
|