@luzmo/ngx-analytics-components-kit 1.0.8-beta.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/data-field-panel.d.ts +4 -4
- package/esm/components/data-field.d.ts +4 -4
- package/esm/components/formula-editor.d.ts +0 -1
- package/esm/components/formula-editor.js +1 -1
- package/esm/components/item-slot-drop.d.ts +5 -5
- package/esm/index.d.ts +2 -54
- package/esm/index.js +2 -106
- package/package.json +2 -2
- package/esm/components/ai-chat-empty-state.d.ts +0 -39
- package/esm/components/ai-chat-empty-state.js +0 -99
- package/esm/components/ai-chat.d.ts +0 -147
- package/esm/components/ai-chat.js +0 -455
- package/esm/components/ai-interaction-textarea.d.ts +0 -106
- package/esm/components/ai-interaction-textarea.js +0 -305
- package/esm/components/data-field-level.d.ts +0 -50
- package/esm/components/data-field-level.js +0 -129
- package/esm/components/data-fields-select.d.ts +0 -81
- package/esm/components/data-fields-select.js +0 -227
- package/esm/components/dataset-icon.d.ts +0 -34
- package/esm/components/dataset-icon.js +0 -86
- package/esm/components/dataset-selector-list.d.ts +0 -56
- package/esm/components/dataset-selector-list.js +0 -155
- package/esm/components/dataset-selector-row.d.ts +0 -70
- package/esm/components/dataset-selector-row.js +0 -197
- package/esm/components/display-settings-binning.d.ts +0 -37
- package/esm/components/display-settings-binning.js +0 -91
- package/esm/components/display-settings-datetime.d.ts +0 -40
- package/esm/components/display-settings-datetime.js +0 -99
- package/esm/components/display-settings-grand-totals.d.ts +0 -37
- package/esm/components/display-settings-grand-totals.js +0 -91
- package/esm/components/display-settings-numeric.d.ts +0 -45
- package/esm/components/display-settings-numeric.js +0 -115
- package/esm/components/display-settings-period-over-period.d.ts +0 -44
- package/esm/components/display-settings-period-over-period.js +0 -107
- package/esm/components/display-settings.d.ts +0 -83
- package/esm/components/display-settings.js +0 -231
- package/esm/components/filter-expression-picker.d.ts +0 -64
- package/esm/components/filter-expression-picker.js +0 -179
- package/esm/components/filter-item.d.ts +0 -63
- package/esm/components/filter-item.js +0 -187
- package/esm/components/filter-parameter-picker.d.ts +0 -56
- package/esm/components/filter-parameter-picker.js +0 -151
- package/esm/components/filter-value-picker-datetime.d.ts +0 -47
- package/esm/components/filter-value-picker-datetime.js +0 -131
- package/esm/components/filter-value-picker-hierarchy.d.ts +0 -53
- package/esm/components/filter-value-picker-hierarchy.js +0 -155
- package/esm/components/filter-value-picker-numeric.d.ts +0 -53
- package/esm/components/filter-value-picker-numeric.js +0 -155
- package/esm/components/filter-value-picker.d.ts +0 -57
- package/esm/components/filter-value-picker.js +0 -171
- package/esm/components/formula-field.d.ts +0 -70
- package/esm/components/formula-field.js +0 -209
- package/esm/components/interactive-viz-item.d.ts +0 -63
- package/esm/components/interactive-viz-item.js +0 -188
- package/esm/components/slot-menu-list.d.ts +0 -46
- package/esm/components/slot-menu-list.js +0 -123
- package/esm/components/slot-menu.d.ts +0 -104
- package/esm/components/slot-menu.js +0 -300
- package/esm/components/viz-item-menu.d.ts +0 -42
- package/esm/components/viz-item-menu.js +0 -111
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
-
import '@luzmo/analytics-components-kit/viz-item-menu';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
const _c0 = ["*"];
|
|
5
|
-
/**
|
|
6
|
-
* Angular wrapper component for <luzmo-viz-item-menu>
|
|
7
|
-
*/
|
|
8
|
-
export class LuzmoVizItemMenu {
|
|
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 visualization item ID */
|
|
19
|
-
vizItemId;
|
|
20
|
-
/** Array of menu buttons to hide */
|
|
21
|
-
hiddenButtons;
|
|
22
|
-
/** The currently selected menu button */
|
|
23
|
-
selectedButton;
|
|
24
|
-
/** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
|
|
25
|
-
language;
|
|
26
|
-
/** Emitted when the selected button changes */
|
|
27
|
-
selectedChanged = output({ alias: 'selectedChanged' });
|
|
28
|
-
/** Emitted when any menu item is clicked */
|
|
29
|
-
buttonClicked = output({ alias: 'buttonClicked' });
|
|
30
|
-
/** Emitted when hovering over the edit button */
|
|
31
|
-
editButtonHovered = output({ alias: 'editButtonHovered' });
|
|
32
|
-
constructor() {
|
|
33
|
-
this.bindEvents();
|
|
34
|
-
this.destroyRef.onDestroy(() => {
|
|
35
|
-
for (const cleanup of this.listenerCleanup) {
|
|
36
|
-
cleanup();
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
ngOnChanges(changes) {
|
|
41
|
-
for (const key of Object.keys(changes)) {
|
|
42
|
-
switch (key) {
|
|
43
|
-
case 'vizItemId':
|
|
44
|
-
this.setHostProperty('vizItemId', changes['vizItemId'].currentValue);
|
|
45
|
-
break;
|
|
46
|
-
case 'hiddenButtons':
|
|
47
|
-
this.setHostProperty('hiddenButtons', changes['hiddenButtons'].currentValue);
|
|
48
|
-
break;
|
|
49
|
-
case 'selectedButton':
|
|
50
|
-
this.setHostProperty('selectedButton', changes['selectedButton'].currentValue);
|
|
51
|
-
break;
|
|
52
|
-
case 'language':
|
|
53
|
-
this.setHostProperty('language', changes['language'].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, 'selected-changed', (event) => {
|
|
71
|
-
const typed = event;
|
|
72
|
-
this.selectedChanged.emit(typed);
|
|
73
|
-
}));
|
|
74
|
-
this.listenerCleanup.push(this.renderer.listen(this.host, 'button-clicked', (event) => {
|
|
75
|
-
const typed = event;
|
|
76
|
-
this.buttonClicked.emit(typed);
|
|
77
|
-
}));
|
|
78
|
-
this.listenerCleanup.push(this.renderer.listen(this.host, 'edit-button-hovered', (event) => {
|
|
79
|
-
const typed = event;
|
|
80
|
-
this.editButtonHovered.emit(typed);
|
|
81
|
-
}));
|
|
82
|
-
}
|
|
83
|
-
static ɵfac = function LuzmoVizItemMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoVizItemMenu)(); };
|
|
84
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoVizItemMenu, selectors: [["luzmo-viz-item-menu"]], inputs: { vizItemId: "vizItemId", hiddenButtons: "hiddenButtons", selectedButton: "selectedButton", language: "language" }, outputs: { selectedChanged: "selectedChanged", buttonClicked: "buttonClicked", editButtonHovered: "editButtonHovered" }, exportAs: ["luzmoVizItemMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoVizItemMenu_Template(rf, ctx) { if (rf & 1) {
|
|
85
|
-
i0.ɵɵprojectionDef();
|
|
86
|
-
i0.ɵɵprojection(0);
|
|
87
|
-
} }, encapsulation: 2 });
|
|
88
|
-
}
|
|
89
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoVizItemMenu, [{
|
|
90
|
-
type: Component,
|
|
91
|
-
args: [{
|
|
92
|
-
selector: 'luzmo-viz-item-menu',
|
|
93
|
-
exportAs: 'luzmoVizItemMenu',
|
|
94
|
-
standalone: true,
|
|
95
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
96
|
-
template: '<ng-content />'
|
|
97
|
-
}]
|
|
98
|
-
}], () => [], { vizItemId: [{
|
|
99
|
-
type: Input,
|
|
100
|
-
args: [{ alias: 'vizItemId' }]
|
|
101
|
-
}], hiddenButtons: [{
|
|
102
|
-
type: Input,
|
|
103
|
-
args: [{ alias: 'hiddenButtons' }]
|
|
104
|
-
}], selectedButton: [{
|
|
105
|
-
type: Input,
|
|
106
|
-
args: [{ alias: 'selectedButton' }]
|
|
107
|
-
}], language: [{
|
|
108
|
-
type: Input,
|
|
109
|
-
args: [{ alias: 'language' }]
|
|
110
|
-
}], selectedChanged: [{ type: i0.Output, args: ["selectedChanged"] }], buttonClicked: [{ type: i0.Output, args: ["buttonClicked"] }], editButtonHovered: [{ type: i0.Output, args: ["editButtonHovered"] }] }); })();
|
|
111
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoVizItemMenu, { className: "LuzmoVizItemMenu", filePath: "components/viz-item-menu.ts", lineNumber: 16 }); })();
|