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

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.
@@ -0,0 +1,48 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/add-to-dashboard';
3
+ import type { LuzmoAddToDashboard as LuzmoAddToDashboardHostElement, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail } from '@luzmo/analytics-components-kit/add-to-dashboard';
4
+ import type { Placement } from '@luzmo/lucero';
5
+ import * as i0 from "@angular/core";
6
+ export type { AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, AddToDashboardSettings, BuiltInDashboardActionsConfig, DashboardActionCallOptions, DashboardActions, DashboardListPage, DashboardListRequest, DashboardOption, FlexChartConfig } from '@luzmo/analytics-components-kit/add-to-dashboard';
7
+ export declare class LuzmoAddToDashboard implements OnChanges {
8
+ private readonly elementRef;
9
+ private readonly renderer;
10
+ private readonly destroyRef;
11
+ private readonly host;
12
+ private readonly listenerCleanup;
13
+ /** The underlying custom element instance. Use to call imperative methods. */
14
+ get nativeElement(): LuzmoAddToDashboardHostElement;
15
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
16
+ language?: string;
17
+ /** Auth key for the built-in adapter. */
18
+ authKey?: string;
19
+ /** Auth token for the built-in adapter. */
20
+ authToken?: string;
21
+ /** API URL for the built-in adapter. */
22
+ apiUrl?: string;
23
+ /** Placement of the picker relative to the button. */
24
+ placement?: Placement;
25
+ /** When present, the button is disabled. */
26
+ disabled?: boolean;
27
+ /** The size of the element */
28
+ size?: 's' | 'm' | 'l' | 'xl';
29
+ /** Fired after the chart was saved to a dashboard, a new dashboard or a variant. */
30
+ readonly luzmoChartAdded: import("@angular/core").OutputEmitterRef<CustomEvent<AddToDashboardChartAddedEventDetail>>;
31
+ /** Fired when saving the chart failed. */
32
+ readonly luzmoChartAddFailed: import("@angular/core").OutputEmitterRef<CustomEvent<AddToDashboardChartAddFailedEventDetail>>;
33
+ constructor();
34
+ ngOnChanges(changes: SimpleChanges): void;
35
+ /**
36
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
37
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
38
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
39
+ * undefined / null by clearing their bindings.
40
+ */
41
+ private setHostProperty;
42
+ private bindEvents;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAddToDashboard, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAddToDashboard, "luzmo-add-to-dashboard", ["luzmoAddToDashboard"], { "language": { "alias": "language"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoChartAdded": "luzmoChartAdded"; "luzmoChartAddFailed": "luzmoChartAddFailed"; }, never, ["*"], true, never>;
45
+ static ngAcceptInputType_disabled: unknown;
46
+ }
47
+ /** The underlying custom element type for LuzmoAddToDashboard */
48
+ export type LuzmoAddToDashboardElement = LuzmoAddToDashboardHostElement;
@@ -0,0 +1,129 @@
1
+ import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/add-to-dashboard';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-add-to-dashboard>
7
+ */
8
+ export class LuzmoAddToDashboard {
9
+ elementRef = inject(ElementRef);
10
+ renderer = inject(Renderer2);
11
+ destroyRef = inject(DestroyRef);
12
+ host = this.elementRef.nativeElement;
13
+ listenerCleanup = [];
14
+ /** The underlying custom element instance. Use to call imperative methods. */
15
+ get nativeElement() {
16
+ return this.host;
17
+ }
18
+ /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
19
+ language;
20
+ /** Auth key for the built-in adapter. */
21
+ authKey;
22
+ /** Auth token for the built-in adapter. */
23
+ authToken;
24
+ /** API URL for the built-in adapter. */
25
+ apiUrl;
26
+ /** Placement of the picker relative to the button. */
27
+ placement;
28
+ /** When present, the button is disabled. */
29
+ disabled;
30
+ /** The size of the element */
31
+ size;
32
+ /** Fired after the chart was saved to a dashboard, a new dashboard or a variant. */
33
+ luzmoChartAdded = output({ alias: 'luzmoChartAdded' });
34
+ /** Fired when saving the chart failed. */
35
+ luzmoChartAddFailed = output({ alias: 'luzmoChartAddFailed' });
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 'authKey':
51
+ this.setHostProperty('authKey', changes['authKey'].currentValue);
52
+ break;
53
+ case 'authToken':
54
+ this.setHostProperty('authToken', changes['authToken'].currentValue);
55
+ break;
56
+ case 'apiUrl':
57
+ this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
58
+ break;
59
+ case 'placement':
60
+ this.setHostProperty('placement', changes['placement'].currentValue);
61
+ break;
62
+ case 'disabled':
63
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
64
+ break;
65
+ case 'size':
66
+ this.setHostProperty('size', changes['size'].currentValue);
67
+ break;
68
+ default:
69
+ break;
70
+ }
71
+ }
72
+ }
73
+ /**
74
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
75
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
76
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
77
+ * undefined / null by clearing their bindings.
78
+ */
79
+ setHostProperty(key, value) {
80
+ this.renderer.setProperty(this.host, key, value);
81
+ }
82
+ bindEvents() {
83
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-added', (event) => {
84
+ const typed = event;
85
+ this.luzmoChartAdded.emit(typed);
86
+ }));
87
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-add-failed', (event) => {
88
+ const typed = event;
89
+ this.luzmoChartAddFailed.emit(typed);
90
+ }));
91
+ }
92
+ static ɵfac = function LuzmoAddToDashboard_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAddToDashboard)(); };
93
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAddToDashboard, selectors: [["luzmo-add-to-dashboard"]], inputs: { language: "language", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", placement: "placement", disabled: [2, "disabled", "disabled", booleanAttribute], size: "size" }, outputs: { luzmoChartAdded: "luzmoChartAdded", luzmoChartAddFailed: "luzmoChartAddFailed" }, exportAs: ["luzmoAddToDashboard"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAddToDashboard_Template(rf, ctx) { if (rf & 1) {
94
+ i0.ɵɵprojectionDef();
95
+ i0.ɵɵprojection(0);
96
+ } }, encapsulation: 2 });
97
+ }
98
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoAddToDashboard, [{
99
+ type: Component,
100
+ args: [{
101
+ selector: 'luzmo-add-to-dashboard',
102
+ exportAs: 'luzmoAddToDashboard',
103
+ standalone: true,
104
+ changeDetection: ChangeDetectionStrategy.OnPush,
105
+ template: '<ng-content />'
106
+ }]
107
+ }], () => [], { language: [{
108
+ type: Input,
109
+ args: [{ alias: 'language' }]
110
+ }], authKey: [{
111
+ type: Input,
112
+ args: [{ alias: 'authKey' }]
113
+ }], authToken: [{
114
+ type: Input,
115
+ args: [{ alias: 'authToken' }]
116
+ }], apiUrl: [{
117
+ type: Input,
118
+ args: [{ alias: 'apiUrl' }]
119
+ }], placement: [{
120
+ type: Input,
121
+ args: [{ alias: 'placement' }]
122
+ }], disabled: [{
123
+ type: Input,
124
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
125
+ }], size: [{
126
+ type: Input,
127
+ args: [{ alias: 'size' }]
128
+ }], luzmoChartAdded: [{ type: i0.Output, args: ["luzmoChartAdded"] }], luzmoChartAddFailed: [{ type: i0.Output, args: ["luzmoChartAddFailed"] }] }); })();
129
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAddToDashboard, { className: "LuzmoAddToDashboard", filePath: "components/add-to-dashboard.ts", lineNumber: 17 }); })();
@@ -13,8 +13,8 @@ export declare class LuzmoDatasetIcon implements OnChanges {
13
13
  get nativeElement(): LuzmoDatasetIconHostElement;
14
14
  /** The dataset information containing subtype and thumbnail data */
15
15
  datasetInfo?: DatasetIcon;
16
- /** The size of the icon */
17
- size?: '16px' | '24px' | '32px' | '48px' | '64px';
16
+ /** The size of the icon, as a pixel length (e.g. `12px`, `16px`, `24px`) */
17
+ size?: `${number}px`;
18
18
  /** The base URL for the application (used for thumbnail URLs) */
19
19
  appUrl?: string;
20
20
  constructor();
@@ -17,7 +17,7 @@ export class LuzmoDatasetIcon {
17
17
  }
18
18
  /** The dataset information containing subtype and thumbnail data */
19
19
  datasetInfo;
20
- /** The size of the icon */
20
+ /** The size of the icon, as a pixel length (e.g. `12px`, `16px`, `24px`) */
21
21
  size;
22
22
  /** The base URL for the application (used for thumbnail URLs) */
23
23
  appUrl;
@@ -1,8 +1,9 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/interactive-viz-item';
3
- import type { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemHostElement, ChartFeedback, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
3
+ import type { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemHostElement, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, ChartFeedback, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
4
+ import type { LuzmoEmbedVizItem } from '@luzmo/embed';
4
5
  import * as i0 from "@angular/core";
5
- export type { ChartActionDescriptor, ChartActionType, ChartFeedback, ChartFeedbackRating, ChartMutationRequest, ChartOption, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail, NormalizedChartConfig, Ranking, Sort } from '@luzmo/analytics-components-kit/interactive-viz-item';
6
+ export type { AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, ChartActionDescriptor, ChartActionType, ChartFeedback, ChartFeedbackRating, ChartMutationRequest, ChartOption, DashboardActions, FlexChartConfig, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail, NormalizedChartConfig, Ranking, Sort } from '@luzmo/analytics-components-kit/interactive-viz-item';
6
7
  export declare class LuzmoInteractiveVizItem implements OnChanges {
7
8
  private readonly elementRef;
8
9
  private readonly renderer;
@@ -13,6 +14,10 @@ export declare class LuzmoInteractiveVizItem implements OnChanges {
13
14
  get nativeElement(): LuzmoInteractiveVizItemHostElement;
14
15
  /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
15
16
  language?: string;
17
+ /** When present, renders `luzmo-add-to-dashboard` in the actions bar. */
18
+ addToDashboard?: boolean;
19
+ /** Click-to-filter on the embedded chart, forwarded as its `canFilter`. The `can-filter` attribute means `'all'`; unset keeps it off. */
20
+ canFilter?: LuzmoEmbedVizItem['canFilter'];
16
21
  /** Loose chart config (type, options, slots, filters); slots may use the keyed-object form. */
17
22
  chart?: FlexChartConfig | null;
18
23
  /** Current feedback (drives the thumbs up/down selection). */
@@ -35,14 +40,20 @@ export declare class LuzmoInteractiveVizItem implements OnChanges {
35
40
  hideFeedback?: boolean;
36
41
  /** When present, hides the config-panel toggle and the panel itself. */
37
42
  hideConfigPanel?: boolean;
43
+ /** When present, chart changes are only emitted and the host sets `chart`; otherwise they are applied here and still emitted. */
44
+ controlled?: boolean;
38
45
  /** The size of the element */
39
46
  size?: 's' | 'm' | 'l' | 'xl';
40
- /** Fired when the inline actions (ranking, sort, display mode) change the chart options. */
47
+ /** Fired when the inline actions (ranking, sort, display mode) change the chart options. Applied to `chart` first unless `controlled` is set. */
41
48
  readonly luzmoChartOptionsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>;
42
- /** Fired when the config panel changes slots, filters, or options (full chart). */
49
+ /** Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set. */
43
50
  readonly luzmoChartChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemChartChangedEventDetail>>;
44
- /** Fired when the user changes the thumbs up/down rating. */
51
+ /** Fired when the user changes the thumbs up/down rating. Never applied to `feedback`; the host owns it in both modes. */
45
52
  readonly luzmoFeedbackChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>;
53
+ /** Fired by the inner `luzmo-add-to-dashboard` after the chart was saved. */
54
+ readonly luzmoChartAdded: import("@angular/core").OutputEmitterRef<CustomEvent<AddToDashboardChartAddedEventDetail>>;
55
+ /** Fired by the inner `luzmo-add-to-dashboard` when saving failed. */
56
+ readonly luzmoChartAddFailed: import("@angular/core").OutputEmitterRef<CustomEvent<AddToDashboardChartAddFailedEventDetail>>;
46
57
  constructor();
47
58
  ngOnChanges(changes: SimpleChanges): void;
48
59
  /**
@@ -54,10 +65,12 @@ export declare class LuzmoInteractiveVizItem implements OnChanges {
54
65
  private setHostProperty;
55
66
  private bindEvents;
56
67
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoInteractiveVizItem, never>;
57
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoInteractiveVizItem, "luzmo-interactive-viz-item", ["luzmoInteractiveVizItem"], { "language": { "alias": "language"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; "feedback": { "alias": "feedback"; "required": false; }; "messageId": { "alias": "messageId"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "hideActions": { "alias": "hideActions"; "required": false; }; "hideFeedback": { "alias": "hideFeedback"; "required": false; }; "hideConfigPanel": { "alias": "hideConfigPanel"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoChartOptionsChanged": "luzmoChartOptionsChanged"; "luzmoChartChanged": "luzmoChartChanged"; "luzmoFeedbackChanged": "luzmoFeedbackChanged"; }, never, ["*"], true, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoInteractiveVizItem, "luzmo-interactive-viz-item", ["luzmoInteractiveVizItem"], { "language": { "alias": "language"; "required": false; }; "addToDashboard": { "alias": "addToDashboard"; "required": false; }; "canFilter": { "alias": "canFilter"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; "feedback": { "alias": "feedback"; "required": false; }; "messageId": { "alias": "messageId"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "hideActions": { "alias": "hideActions"; "required": false; }; "hideFeedback": { "alias": "hideFeedback"; "required": false; }; "hideConfigPanel": { "alias": "hideConfigPanel"; "required": false; }; "controlled": { "alias": "controlled"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoChartOptionsChanged": "luzmoChartOptionsChanged"; "luzmoChartChanged": "luzmoChartChanged"; "luzmoFeedbackChanged": "luzmoFeedbackChanged"; "luzmoChartAdded": "luzmoChartAdded"; "luzmoChartAddFailed": "luzmoChartAddFailed"; }, never, ["*"], true, never>;
69
+ static ngAcceptInputType_addToDashboard: unknown;
58
70
  static ngAcceptInputType_hideActions: unknown;
59
71
  static ngAcceptInputType_hideFeedback: unknown;
60
72
  static ngAcceptInputType_hideConfigPanel: unknown;
73
+ static ngAcceptInputType_controlled: unknown;
61
74
  }
62
75
  /** The underlying custom element type for LuzmoInteractiveVizItem */
63
76
  export type LuzmoInteractiveVizItemElement = LuzmoInteractiveVizItemHostElement;
@@ -22,6 +22,10 @@ export class LuzmoInteractiveVizItem {
22
22
  }
23
23
  /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
24
24
  language;
25
+ /** When present, renders `luzmo-add-to-dashboard` in the actions bar. */
26
+ addToDashboard;
27
+ /** Click-to-filter on the embedded chart, forwarded as its `canFilter`. The `can-filter` attribute means `'all'`; unset keeps it off. */
28
+ canFilter;
25
29
  /** Loose chart config (type, options, slots, filters); slots may use the keyed-object form. */
26
30
  chart;
27
31
  /** Current feedback (drives the thumbs up/down selection). */
@@ -44,14 +48,20 @@ export class LuzmoInteractiveVizItem {
44
48
  hideFeedback;
45
49
  /** When present, hides the config-panel toggle and the panel itself. */
46
50
  hideConfigPanel;
51
+ /** When present, chart changes are only emitted and the host sets `chart`; otherwise they are applied here and still emitted. */
52
+ controlled;
47
53
  /** The size of the element */
48
54
  size;
49
- /** Fired when the inline actions (ranking, sort, display mode) change the chart options. */
55
+ /** Fired when the inline actions (ranking, sort, display mode) change the chart options. Applied to `chart` first unless `controlled` is set. */
50
56
  luzmoChartOptionsChanged = output({ alias: 'luzmoChartOptionsChanged' });
51
- /** Fired when the config panel changes slots, filters, or options (full chart). */
57
+ /** Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set. */
52
58
  luzmoChartChanged = output({ alias: 'luzmoChartChanged' });
53
- /** Fired when the user changes the thumbs up/down rating. */
59
+ /** Fired when the user changes the thumbs up/down rating. Never applied to `feedback`; the host owns it in both modes. */
54
60
  luzmoFeedbackChanged = output({ alias: 'luzmoFeedbackChanged' });
61
+ /** Fired by the inner `luzmo-add-to-dashboard` after the chart was saved. */
62
+ luzmoChartAdded = output({ alias: 'luzmoChartAdded' });
63
+ /** Fired by the inner `luzmo-add-to-dashboard` when saving failed. */
64
+ luzmoChartAddFailed = output({ alias: 'luzmoChartAddFailed' });
55
65
  constructor() {
56
66
  this.bindEvents();
57
67
  this.destroyRef.onDestroy(() => {
@@ -66,6 +76,12 @@ export class LuzmoInteractiveVizItem {
66
76
  case 'language':
67
77
  this.setHostProperty('language', changes['language'].currentValue);
68
78
  break;
79
+ case 'addToDashboard':
80
+ this.setHostProperty('addToDashboard', changes['addToDashboard'].currentValue);
81
+ break;
82
+ case 'canFilter':
83
+ this.setHostProperty('canFilter', changes['canFilter'].currentValue);
84
+ break;
69
85
  case 'chart':
70
86
  this.setHostProperty('chart', changes['chart'].currentValue);
71
87
  break;
@@ -99,6 +115,9 @@ export class LuzmoInteractiveVizItem {
99
115
  case 'hideConfigPanel':
100
116
  this.setHostProperty('hideConfigPanel', changes['hideConfigPanel'].currentValue);
101
117
  break;
118
+ case 'controlled':
119
+ this.setHostProperty('controlled', changes['controlled'].currentValue);
120
+ break;
102
121
  case 'size':
103
122
  this.setHostProperty('size', changes['size'].currentValue);
104
123
  break;
@@ -129,9 +148,17 @@ export class LuzmoInteractiveVizItem {
129
148
  const typed = event;
130
149
  this.luzmoFeedbackChanged.emit(typed);
131
150
  }));
151
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-added', (event) => {
152
+ const typed = event;
153
+ this.luzmoChartAdded.emit(typed);
154
+ }));
155
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-add-failed', (event) => {
156
+ const typed = event;
157
+ this.luzmoChartAddFailed.emit(typed);
158
+ }));
132
159
  }
133
160
  static ɵfac = function LuzmoInteractiveVizItem_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoInteractiveVizItem)(); };
134
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoInteractiveVizItem, selectors: [["luzmo-interactive-viz-item"]], inputs: { language: "language", chart: "chart", feedback: "feedback", messageId: "messageId", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", contentLanguage: "contentLanguage", hideActions: [2, "hideActions", "hideActions", booleanAttribute], hideFeedback: [2, "hideFeedback", "hideFeedback", booleanAttribute], hideConfigPanel: [2, "hideConfigPanel", "hideConfigPanel", booleanAttribute], size: "size" }, outputs: { luzmoChartOptionsChanged: "luzmoChartOptionsChanged", luzmoChartChanged: "luzmoChartChanged", luzmoFeedbackChanged: "luzmoFeedbackChanged" }, exportAs: ["luzmoInteractiveVizItem"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoInteractiveVizItem_Template(rf, ctx) { if (rf & 1) {
161
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoInteractiveVizItem, selectors: [["luzmo-interactive-viz-item"]], inputs: { language: "language", addToDashboard: [2, "addToDashboard", "addToDashboard", booleanAttribute], canFilter: "canFilter", chart: "chart", feedback: "feedback", messageId: "messageId", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", contentLanguage: "contentLanguage", hideActions: [2, "hideActions", "hideActions", booleanAttribute], hideFeedback: [2, "hideFeedback", "hideFeedback", booleanAttribute], hideConfigPanel: [2, "hideConfigPanel", "hideConfigPanel", booleanAttribute], controlled: [2, "controlled", "controlled", booleanAttribute], size: "size" }, outputs: { luzmoChartOptionsChanged: "luzmoChartOptionsChanged", luzmoChartChanged: "luzmoChartChanged", luzmoFeedbackChanged: "luzmoFeedbackChanged", luzmoChartAdded: "luzmoChartAdded", luzmoChartAddFailed: "luzmoChartAddFailed" }, exportAs: ["luzmoInteractiveVizItem"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoInteractiveVizItem_Template(rf, ctx) { if (rf & 1) {
135
162
  i0.ɵɵprojectionDef();
136
163
  i0.ɵɵprojection(0);
137
164
  } }, encapsulation: 2 });
@@ -148,6 +175,12 @@ export class LuzmoInteractiveVizItem {
148
175
  }], () => [], { language: [{
149
176
  type: Input,
150
177
  args: [{ alias: 'language' }]
178
+ }], addToDashboard: [{
179
+ type: Input,
180
+ args: [{ alias: 'addToDashboard', transform: booleanAttribute }]
181
+ }], canFilter: [{
182
+ type: Input,
183
+ args: [{ alias: 'canFilter' }]
151
184
  }], chart: [{
152
185
  type: Input,
153
186
  args: [{ alias: 'chart' }]
@@ -181,8 +214,11 @@ export class LuzmoInteractiveVizItem {
181
214
  }], hideConfigPanel: [{
182
215
  type: Input,
183
216
  args: [{ alias: 'hideConfigPanel', transform: booleanAttribute }]
217
+ }], controlled: [{
218
+ type: Input,
219
+ args: [{ alias: 'controlled', transform: booleanAttribute }]
184
220
  }], size: [{
185
221
  type: Input,
186
222
  args: [{ alias: 'size' }]
187
- }], luzmoChartOptionsChanged: [{ type: i0.Output, args: ["luzmoChartOptionsChanged"] }], luzmoChartChanged: [{ type: i0.Output, args: ["luzmoChartChanged"] }], luzmoFeedbackChanged: [{ type: i0.Output, args: ["luzmoFeedbackChanged"] }] }); })();
188
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoInteractiveVizItem, { className: "LuzmoInteractiveVizItem", filePath: "components/interactive-viz-item.ts", lineNumber: 21 }); })();
223
+ }], luzmoChartOptionsChanged: [{ type: i0.Output, args: ["luzmoChartOptionsChanged"] }], luzmoChartChanged: [{ type: i0.Output, args: ["luzmoChartChanged"] }], luzmoFeedbackChanged: [{ type: i0.Output, args: ["luzmoFeedbackChanged"] }], luzmoChartAdded: [{ type: i0.Output, args: ["luzmoChartAdded"] }], luzmoChartAddFailed: [{ type: i0.Output, args: ["luzmoChartAddFailed"] }] }); })();
224
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoInteractiveVizItem, { className: "LuzmoInteractiveVizItem", filePath: "components/interactive-viz-item.ts", lineNumber: 22 }); })();
package/esm/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { LuzmoAddToDashboard } from './components/add-to-dashboard.js';
1
2
  import { LuzmoAiChat } from './components/ai-chat.js';
2
3
  import { LuzmoAiChatEmptyState } from './components/ai-chat-empty-state.js';
3
4
  import { LuzmoAiInteractionTextarea } from './components/ai-interaction-textarea.js';
@@ -51,6 +52,7 @@ import { LuzmoItemSlotPickerPanel } from './components/item-slot-picker-panel.js
51
52
  import { LuzmoSlotMenu } from './components/slot-menu.js';
52
53
  import { LuzmoSlotMenuList } from './components/slot-menu-list.js';
53
54
  import { LuzmoVizItemMenu } from './components/viz-item-menu.js';
55
+ export { LuzmoAddToDashboard, type LuzmoAddToDashboardElement } from './components/add-to-dashboard.js';
54
56
  export { LuzmoAiChat, type LuzmoAiChatElement } from './components/ai-chat.js';
55
57
  export { LuzmoAiChatEmptyState, type LuzmoAiChatEmptyStateElement } from './components/ai-chat-empty-state.js';
56
58
  export { LuzmoAiInteractionTextarea, type LuzmoAiInteractionTextareaElement } from './components/ai-interaction-textarea.js';
@@ -104,6 +106,6 @@ export { LuzmoItemSlotPickerPanel, type LuzmoItemSlotPickerPanelElement } from '
104
106
  export { LuzmoSlotMenu, type LuzmoSlotMenuElement } from './components/slot-menu.js';
105
107
  export { LuzmoSlotMenuList, type LuzmoSlotMenuListElement } from './components/slot-menu-list.js';
106
108
  export { LuzmoVizItemMenu, type LuzmoVizItemMenuElement } from './components/viz-item-menu.js';
107
- export declare const LUZMO_ANGULAR_COMPONENTS: readonly [typeof LuzmoAiChat, typeof LuzmoAiChatEmptyState, typeof LuzmoAiInteractionTextarea, typeof LuzmoDataField, typeof LuzmoDataFieldLevel, typeof LuzmoDataFieldPanel, typeof LuzmoDataFieldsSelect, typeof LuzmoDatasetIcon, typeof LuzmoDatasetSelectorList, typeof LuzmoDatasetSelectorRow, typeof LuzmoDisplaySettings, typeof LuzmoDisplaySettingsBinning, typeof LuzmoDisplaySettingsDatetime, typeof LuzmoDisplaySettingsGrandTotals, typeof LuzmoDisplaySettingsNumeric, typeof LuzmoDisplaySettingsPeriodOverPeriod, typeof LuzmoFilterExpressionPicker, typeof LuzmoFilterItem, typeof LuzmoFilterParameterPicker, typeof LuzmoFilterValuePicker, typeof LuzmoFilterValuePickerDatetime, typeof LuzmoFilterValuePickerHierarchy, typeof LuzmoFilterValuePickerNumeric, typeof LuzmoFilters, typeof LuzmoFormula, typeof LuzmoFormulaEditor, typeof LuzmoFormulaField, typeof LuzmoInteractiveVizItem, typeof LuzmoItemGrid, typeof LuzmoItemGridItemActionsMenu, typeof LuzmoItemOption, typeof LuzmoItemOptionActionButtonGroup, typeof LuzmoItemOptionColorPalettePicker, typeof LuzmoItemOptionColorPicker, typeof LuzmoItemOptionColorRange, typeof LuzmoItemOptionGuidelines, typeof LuzmoItemOptionMultiLanguageField, typeof LuzmoItemOptionNumberField, typeof LuzmoItemOptionPanel, typeof LuzmoItemOptionPicker, typeof LuzmoItemOptionPositionPicker, typeof LuzmoItemOptionPositionsNumberField, typeof LuzmoItemOptionRadioButtonGroup, typeof LuzmoItemOptionSlider, typeof LuzmoItemOptionSwitch, typeof LuzmoItemOptionTextField, typeof LuzmoItemSlotDrop, typeof LuzmoItemSlotDropPanel, typeof LuzmoItemSlotPicker, typeof LuzmoItemSlotPickerPanel, typeof LuzmoSlotMenu, typeof LuzmoSlotMenuList, typeof LuzmoVizItemMenu];
108
- export declare const LUZMO_ANGULAR_COMPONENT_NAMES: readonly ["LuzmoAiChat", "LuzmoAiChatEmptyState", "LuzmoAiInteractionTextarea", "LuzmoDataField", "LuzmoDataFieldLevel", "LuzmoDataFieldPanel", "LuzmoDataFieldsSelect", "LuzmoDatasetIcon", "LuzmoDatasetSelectorList", "LuzmoDatasetSelectorRow", "LuzmoDisplaySettings", "LuzmoDisplaySettingsBinning", "LuzmoDisplaySettingsDatetime", "LuzmoDisplaySettingsGrandTotals", "LuzmoDisplaySettingsNumeric", "LuzmoDisplaySettingsPeriodOverPeriod", "LuzmoFilterExpressionPicker", "LuzmoFilterItem", "LuzmoFilterParameterPicker", "LuzmoFilterValuePicker", "LuzmoFilterValuePickerDatetime", "LuzmoFilterValuePickerHierarchy", "LuzmoFilterValuePickerNumeric", "LuzmoFilters", "LuzmoFormula", "LuzmoFormulaEditor", "LuzmoFormulaField", "LuzmoInteractiveVizItem", "LuzmoItemGrid", "LuzmoItemGridItemActionsMenu", "LuzmoItemOption", "LuzmoItemOptionActionButtonGroup", "LuzmoItemOptionColorPalettePicker", "LuzmoItemOptionColorPicker", "LuzmoItemOptionColorRange", "LuzmoItemOptionGuidelines", "LuzmoItemOptionMultiLanguageField", "LuzmoItemOptionNumberField", "LuzmoItemOptionPanel", "LuzmoItemOptionPicker", "LuzmoItemOptionPositionPicker", "LuzmoItemOptionPositionsNumberField", "LuzmoItemOptionRadioButtonGroup", "LuzmoItemOptionSlider", "LuzmoItemOptionSwitch", "LuzmoItemOptionTextField", "LuzmoItemSlotDrop", "LuzmoItemSlotDropPanel", "LuzmoItemSlotPicker", "LuzmoItemSlotPickerPanel", "LuzmoSlotMenu", "LuzmoSlotMenuList", "LuzmoVizItemMenu"];
109
+ export declare const LUZMO_ANGULAR_COMPONENTS: readonly [typeof LuzmoAddToDashboard, typeof LuzmoAiChat, typeof LuzmoAiChatEmptyState, typeof LuzmoAiInteractionTextarea, typeof LuzmoDataField, typeof LuzmoDataFieldLevel, typeof LuzmoDataFieldPanel, typeof LuzmoDataFieldsSelect, typeof LuzmoDatasetIcon, typeof LuzmoDatasetSelectorList, typeof LuzmoDatasetSelectorRow, typeof LuzmoDisplaySettings, typeof LuzmoDisplaySettingsBinning, typeof LuzmoDisplaySettingsDatetime, typeof LuzmoDisplaySettingsGrandTotals, typeof LuzmoDisplaySettingsNumeric, typeof LuzmoDisplaySettingsPeriodOverPeriod, typeof LuzmoFilterExpressionPicker, typeof LuzmoFilterItem, typeof LuzmoFilterParameterPicker, typeof LuzmoFilterValuePicker, typeof LuzmoFilterValuePickerDatetime, typeof LuzmoFilterValuePickerHierarchy, typeof LuzmoFilterValuePickerNumeric, typeof LuzmoFilters, typeof LuzmoFormula, typeof LuzmoFormulaEditor, typeof LuzmoFormulaField, typeof LuzmoInteractiveVizItem, typeof LuzmoItemGrid, typeof LuzmoItemGridItemActionsMenu, typeof LuzmoItemOption, typeof LuzmoItemOptionActionButtonGroup, typeof LuzmoItemOptionColorPalettePicker, typeof LuzmoItemOptionColorPicker, typeof LuzmoItemOptionColorRange, typeof LuzmoItemOptionGuidelines, typeof LuzmoItemOptionMultiLanguageField, typeof LuzmoItemOptionNumberField, typeof LuzmoItemOptionPanel, typeof LuzmoItemOptionPicker, typeof LuzmoItemOptionPositionPicker, typeof LuzmoItemOptionPositionsNumberField, typeof LuzmoItemOptionRadioButtonGroup, typeof LuzmoItemOptionSlider, typeof LuzmoItemOptionSwitch, typeof LuzmoItemOptionTextField, typeof LuzmoItemSlotDrop, typeof LuzmoItemSlotDropPanel, typeof LuzmoItemSlotPicker, typeof LuzmoItemSlotPickerPanel, typeof LuzmoSlotMenu, typeof LuzmoSlotMenuList, typeof LuzmoVizItemMenu];
110
+ export declare const LUZMO_ANGULAR_COMPONENT_NAMES: readonly ["LuzmoAddToDashboard", "LuzmoAiChat", "LuzmoAiChatEmptyState", "LuzmoAiInteractionTextarea", "LuzmoDataField", "LuzmoDataFieldLevel", "LuzmoDataFieldPanel", "LuzmoDataFieldsSelect", "LuzmoDatasetIcon", "LuzmoDatasetSelectorList", "LuzmoDatasetSelectorRow", "LuzmoDisplaySettings", "LuzmoDisplaySettingsBinning", "LuzmoDisplaySettingsDatetime", "LuzmoDisplaySettingsGrandTotals", "LuzmoDisplaySettingsNumeric", "LuzmoDisplaySettingsPeriodOverPeriod", "LuzmoFilterExpressionPicker", "LuzmoFilterItem", "LuzmoFilterParameterPicker", "LuzmoFilterValuePicker", "LuzmoFilterValuePickerDatetime", "LuzmoFilterValuePickerHierarchy", "LuzmoFilterValuePickerNumeric", "LuzmoFilters", "LuzmoFormula", "LuzmoFormulaEditor", "LuzmoFormulaField", "LuzmoInteractiveVizItem", "LuzmoItemGrid", "LuzmoItemGridItemActionsMenu", "LuzmoItemOption", "LuzmoItemOptionActionButtonGroup", "LuzmoItemOptionColorPalettePicker", "LuzmoItemOptionColorPicker", "LuzmoItemOptionColorRange", "LuzmoItemOptionGuidelines", "LuzmoItemOptionMultiLanguageField", "LuzmoItemOptionNumberField", "LuzmoItemOptionPanel", "LuzmoItemOptionPicker", "LuzmoItemOptionPositionPicker", "LuzmoItemOptionPositionsNumberField", "LuzmoItemOptionRadioButtonGroup", "LuzmoItemOptionSlider", "LuzmoItemOptionSwitch", "LuzmoItemOptionTextField", "LuzmoItemSlotDrop", "LuzmoItemSlotDropPanel", "LuzmoItemSlotPicker", "LuzmoItemSlotPickerPanel", "LuzmoSlotMenu", "LuzmoSlotMenuList", "LuzmoVizItemMenu"];
109
111
  export type LuzmoAngularComponentName = (typeof LUZMO_ANGULAR_COMPONENT_NAMES)[number];
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';
@@ -52,6 +53,7 @@ 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
55
  import { LuzmoVizItemMenu } from './components/viz-item-menu.js';
56
+ export { LuzmoAddToDashboard } from './components/add-to-dashboard.js';
55
57
  export { LuzmoAiChat } from './components/ai-chat.js';
56
58
  export { LuzmoAiChatEmptyState } from './components/ai-chat-empty-state.js';
57
59
  export { LuzmoAiInteractionTextarea } from './components/ai-interaction-textarea.js';
@@ -106,6 +108,7 @@ export { LuzmoSlotMenu } from './components/slot-menu.js';
106
108
  export { LuzmoSlotMenuList } from './components/slot-menu-list.js';
107
109
  export { LuzmoVizItemMenu } from './components/viz-item-menu.js';
108
110
  export const LUZMO_ANGULAR_COMPONENTS = [
111
+ LuzmoAddToDashboard,
109
112
  LuzmoAiChat,
110
113
  LuzmoAiChatEmptyState,
111
114
  LuzmoAiInteractionTextarea,
@@ -161,6 +164,7 @@ export const LUZMO_ANGULAR_COMPONENTS = [
161
164
  LuzmoVizItemMenu
162
165
  ];
163
166
  export const LUZMO_ANGULAR_COMPONENT_NAMES = [
167
+ 'LuzmoAddToDashboard',
164
168
  'LuzmoAiChat',
165
169
  'LuzmoAiChatEmptyState',
166
170
  'LuzmoAiInteractionTextarea',
package/package.json CHANGED
@@ -29,9 +29,9 @@
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.0.9-beta.9"
33
33
  },
34
- "version": "1.0.9-beta.8",
34
+ "version": "1.0.9-beta.9",
35
35
  "peerDependenciesMeta": {
36
36
  "@angular/forms": {
37
37
  "optional": true