@luzmo/ngx-analytics-components-kit 1.0.9-beta.8 → 1.1.1

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/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  // Auto-generated Angular wrappers
2
+ import { LuzmoAddToDashboard } from './components/add-to-dashboard.js';
2
3
  import { LuzmoAiChat } from './components/ai-chat.js';
3
4
  import { LuzmoAiChatEmptyState } from './components/ai-chat-empty-state.js';
4
5
  import { LuzmoAiInteractionTextarea } from './components/ai-interaction-textarea.js';
@@ -51,7 +52,7 @@ import { LuzmoItemSlotPicker } from './components/item-slot-picker.js';
51
52
  import { LuzmoItemSlotPickerPanel } from './components/item-slot-picker-panel.js';
52
53
  import { LuzmoSlotMenu } from './components/slot-menu.js';
53
54
  import { LuzmoSlotMenuList } from './components/slot-menu-list.js';
54
- import { LuzmoVizItemMenu } from './components/viz-item-menu.js';
55
+ export { LuzmoAddToDashboard } from './components/add-to-dashboard.js';
55
56
  export { LuzmoAiChat } from './components/ai-chat.js';
56
57
  export { LuzmoAiChatEmptyState } from './components/ai-chat-empty-state.js';
57
58
  export { LuzmoAiInteractionTextarea } from './components/ai-interaction-textarea.js';
@@ -104,8 +105,8 @@ export { LuzmoItemSlotPicker } from './components/item-slot-picker.js';
104
105
  export { LuzmoItemSlotPickerPanel } from './components/item-slot-picker-panel.js';
105
106
  export { LuzmoSlotMenu } from './components/slot-menu.js';
106
107
  export { LuzmoSlotMenuList } from './components/slot-menu-list.js';
107
- export { LuzmoVizItemMenu } from './components/viz-item-menu.js';
108
108
  export const LUZMO_ANGULAR_COMPONENTS = [
109
+ LuzmoAddToDashboard,
109
110
  LuzmoAiChat,
110
111
  LuzmoAiChatEmptyState,
111
112
  LuzmoAiInteractionTextarea,
@@ -157,10 +158,10 @@ export const LUZMO_ANGULAR_COMPONENTS = [
157
158
  LuzmoItemSlotPicker,
158
159
  LuzmoItemSlotPickerPanel,
159
160
  LuzmoSlotMenu,
160
- LuzmoSlotMenuList,
161
- LuzmoVizItemMenu
161
+ LuzmoSlotMenuList
162
162
  ];
163
163
  export const LUZMO_ANGULAR_COMPONENT_NAMES = [
164
+ 'LuzmoAddToDashboard',
164
165
  'LuzmoAiChat',
165
166
  'LuzmoAiChatEmptyState',
166
167
  'LuzmoAiInteractionTextarea',
@@ -212,6 +213,5 @@ export const LUZMO_ANGULAR_COMPONENT_NAMES = [
212
213
  'LuzmoItemSlotPicker',
213
214
  'LuzmoItemSlotPickerPanel',
214
215
  'LuzmoSlotMenu',
215
- 'LuzmoSlotMenuList',
216
- 'LuzmoVizItemMenu'
216
+ 'LuzmoSlotMenuList'
217
217
  ];
package/package.json CHANGED
@@ -29,9 +29,13 @@
29
29
  "peerDependencies": {
30
30
  "@angular/core": "^17.3.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
31
31
  "@angular/forms": "^17.3.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
32
- "@luzmo/analytics-components-kit": "1.0.9-beta.8"
32
+ "@luzmo/analytics-components-kit": "1.1.1"
33
+ },
34
+ "version": "1.1.1",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/cumulio-internal/analytics-components-kit.git"
33
38
  },
34
- "version": "1.0.9-beta.8",
35
39
  "peerDependenciesMeta": {
36
40
  "@angular/forms": {
37
41
  "optional": true
@@ -1,42 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/viz-item-menu';
3
- import type { LuzmoVizItemMenu as LuzmoVizItemMenuHostElement, VizItemMenuButton, VizItemMenuButtonClickedEventDetail, VizItemMenuSelectedChangedEventDetail } from '@luzmo/analytics-components-kit/viz-item-menu';
4
- import * as i0 from "@angular/core";
5
- export type { VizItemMenuButton, VizItemMenuButtonClickedEventDetail, VizItemMenuSelectedChangedEventDetail } from '@luzmo/analytics-components-kit/viz-item-menu';
6
- export declare class LuzmoVizItemMenu 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(): LuzmoVizItemMenuHostElement;
14
- /** The visualization item ID */
15
- vizItemId?: string;
16
- /** Array of menu buttons to hide */
17
- hiddenButtons?: VizItemMenuButton[];
18
- /** The currently selected menu button */
19
- selectedButton?: VizItemMenuButton | null;
20
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
21
- language?: string;
22
- /** Emitted when the selected button changes */
23
- readonly selectedChanged: import("@angular/core").OutputEmitterRef<CustomEvent<VizItemMenuSelectedChangedEventDetail>>;
24
- /** Emitted when any menu item is clicked */
25
- readonly buttonClicked: import("@angular/core").OutputEmitterRef<CustomEvent<VizItemMenuButtonClickedEventDetail>>;
26
- /** Emitted when hovering over the edit button */
27
- readonly editButtonHovered: import("@angular/core").OutputEmitterRef<CustomEvent<void>>;
28
- constructor();
29
- ngOnChanges(changes: SimpleChanges): void;
30
- /**
31
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
32
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
33
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
34
- * undefined / null by clearing their bindings.
35
- */
36
- private setHostProperty;
37
- private bindEvents;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoVizItemMenu, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoVizItemMenu, "luzmo-viz-item-menu", ["luzmoVizItemMenu"], { "vizItemId": { "alias": "vizItemId"; "required": false; }; "hiddenButtons": { "alias": "hiddenButtons"; "required": false; }; "selectedButton": { "alias": "selectedButton"; "required": false; }; "language": { "alias": "language"; "required": false; }; }, { "selectedChanged": "selectedChanged"; "buttonClicked": "buttonClicked"; "editButtonHovered": "editButtonHovered"; }, never, ["*"], true, never>;
40
- }
41
- /** The underlying custom element type for LuzmoVizItemMenu */
42
- export type LuzmoVizItemMenuElement = LuzmoVizItemMenuHostElement;
@@ -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 }); })();