@luzmo/ngx-analytics-components-kit 1.0.9-beta.1 → 1.0.9-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/esm/components/add-to-dashboard.d.ts +48 -0
- package/esm/components/add-to-dashboard.js +129 -0
- package/esm/components/ai-chat-empty-state.d.ts +3 -1
- package/esm/components/ai-chat-empty-state.js +9 -1
- package/esm/components/ai-chat.d.ts +4 -2
- package/esm/components/ai-chat.js +10 -2
- package/esm/components/ai-interaction-textarea.d.ts +3 -1
- package/esm/components/ai-interaction-textarea.js +9 -1
- package/esm/components/dataset-icon.d.ts +2 -2
- package/esm/components/dataset-icon.js +1 -1
- package/esm/components/dataset-selector-row.d.ts +3 -1
- package/esm/components/dataset-selector-row.js +9 -1
- package/esm/components/interactive-viz-item.d.ts +19 -6
- package/esm/components/interactive-viz-item.js +42 -6
- package/esm/components/item-grid-item-actions-menu.d.ts +10 -8
- package/esm/components/item-grid-item-actions-menu.js +12 -6
- package/esm/components/item-grid.d.ts +5 -3
- package/esm/components/item-grid.js +8 -2
- package/esm/index.d.ts +4 -4
- package/esm/index.js +6 -6
- package/package.json +2 -2
- package/esm/components/viz-item-menu.d.ts +0 -42
- package/esm/components/viz-item-menu.js +0 -111
|
@@ -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 }); })();
|
|
@@ -19,6 +19,8 @@ export declare class LuzmoAiChatEmptyState implements OnChanges {
|
|
|
19
19
|
suggestions?: AiChatEmptyStateSuggestion[];
|
|
20
20
|
/** When true, suggestion chips cannot be activated. */
|
|
21
21
|
disabled?: boolean;
|
|
22
|
+
/** Size of the title, subtitle and suggestion chips: `s`, `m` (default), `l` or `xl` */
|
|
23
|
+
size?: unknown;
|
|
22
24
|
/** Fired when the user selects a suggestion chip */
|
|
23
25
|
readonly luzmoSuggestionSelected: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatEmptyStateSuggestionSelectedDetail>>;
|
|
24
26
|
constructor();
|
|
@@ -32,7 +34,7 @@ export declare class LuzmoAiChatEmptyState implements OnChanges {
|
|
|
32
34
|
private setHostProperty;
|
|
33
35
|
private bindEvents;
|
|
34
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiChatEmptyState, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiChatEmptyState, "luzmo-ai-chat-empty-state", ["luzmoAiChatEmptyState"], { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "luzmoSuggestionSelected": "luzmoSuggestionSelected"; }, never, ["*"], true, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiChatEmptyState, "luzmo-ai-chat-empty-state", ["luzmoAiChatEmptyState"], { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSuggestionSelected": "luzmoSuggestionSelected"; }, never, ["*"], true, never>;
|
|
36
38
|
static ngAcceptInputType_disabled: unknown;
|
|
37
39
|
}
|
|
38
40
|
/** The underlying custom element type for LuzmoAiChatEmptyState */
|
|
@@ -23,6 +23,8 @@ export class LuzmoAiChatEmptyState {
|
|
|
23
23
|
suggestions;
|
|
24
24
|
/** When true, suggestion chips cannot be activated. */
|
|
25
25
|
disabled;
|
|
26
|
+
/** Size of the title, subtitle and suggestion chips: `s`, `m` (default), `l` or `xl` */
|
|
27
|
+
size;
|
|
26
28
|
/** Fired when the user selects a suggestion chip */
|
|
27
29
|
luzmoSuggestionSelected = output({ alias: 'luzmoSuggestionSelected' });
|
|
28
30
|
constructor() {
|
|
@@ -48,6 +50,9 @@ export class LuzmoAiChatEmptyState {
|
|
|
48
50
|
case 'disabled':
|
|
49
51
|
this.setHostProperty('disabled', changes['disabled'].currentValue);
|
|
50
52
|
break;
|
|
53
|
+
case 'size':
|
|
54
|
+
this.setHostProperty('size', changes['size'].currentValue);
|
|
55
|
+
break;
|
|
51
56
|
default:
|
|
52
57
|
break;
|
|
53
58
|
}
|
|
@@ -69,7 +74,7 @@ export class LuzmoAiChatEmptyState {
|
|
|
69
74
|
}));
|
|
70
75
|
}
|
|
71
76
|
static ɵfac = function LuzmoAiChatEmptyState_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiChatEmptyState)(); };
|
|
72
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiChatEmptyState, selectors: [["luzmo-ai-chat-empty-state"]], inputs: { title: "title", subtitle: "subtitle", suggestions: "suggestions", disabled: [2, "disabled", "disabled", booleanAttribute] }, outputs: { luzmoSuggestionSelected: "luzmoSuggestionSelected" }, exportAs: ["luzmoAiChatEmptyState"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiChatEmptyState_Template(rf, ctx) { if (rf & 1) {
|
|
77
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiChatEmptyState, selectors: [["luzmo-ai-chat-empty-state"]], inputs: { title: "title", subtitle: "subtitle", suggestions: "suggestions", disabled: [2, "disabled", "disabled", booleanAttribute], size: "size" }, outputs: { luzmoSuggestionSelected: "luzmoSuggestionSelected" }, exportAs: ["luzmoAiChatEmptyState"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiChatEmptyState_Template(rf, ctx) { if (rf & 1) {
|
|
73
78
|
i0.ɵɵprojectionDef();
|
|
74
79
|
i0.ɵɵprojection(0);
|
|
75
80
|
} }, encapsulation: 2 });
|
|
@@ -95,5 +100,8 @@ export class LuzmoAiChatEmptyState {
|
|
|
95
100
|
}], disabled: [{
|
|
96
101
|
type: Input,
|
|
97
102
|
args: [{ alias: 'disabled', transform: booleanAttribute }]
|
|
103
|
+
}], size: [{
|
|
104
|
+
type: Input,
|
|
105
|
+
args: [{ alias: 'size' }]
|
|
98
106
|
}], luzmoSuggestionSelected: [{ type: i0.Output, args: ["luzmoSuggestionSelected"] }] }); })();
|
|
99
107
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAiChatEmptyState, { className: "LuzmoAiChatEmptyState", filePath: "components/ai-chat-empty-state.ts", lineNumber: 16 }); })();
|
|
@@ -101,6 +101,8 @@ export declare class LuzmoAiChat implements OnChanges {
|
|
|
101
101
|
emptyStateSubtitle?: string;
|
|
102
102
|
/** Optional suggestion chips for the empty state. When empty, only the title is shown. Each entry may include `selectedDatasets` to pre-select datasets when the chip is activated. */
|
|
103
103
|
emptyStateSuggestions?: AiChatEmptyStateSuggestion[];
|
|
104
|
+
/** Size of the chat: `s`, `m` (default), `l` or `xl`. Scales messages, progress steps, questions, the empty state and the prompt input together. Custom actions beyond built-in `ChatMessage.actions` buttons can be projected via the `assistant-message-actions` light-DOM slot on the latest assistant message. */
|
|
105
|
+
size?: unknown;
|
|
104
106
|
/** Fired when a user sends a message */
|
|
105
107
|
readonly luzmoMessageSent: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatMessageSentEventDetail>>;
|
|
106
108
|
/** Fired when the selected datasets change */
|
|
@@ -109,7 +111,7 @@ export declare class LuzmoAiChat implements OnChanges {
|
|
|
109
111
|
readonly luzmoStep: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatStepEvent>>;
|
|
110
112
|
/** Fired exactly once per response with the authoritative final result (dashboard/chart/name/customItem) or an `error`. */
|
|
111
113
|
readonly luzmoComplete: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatCompleteEvent>>;
|
|
112
|
-
/** Fired when an in-flight prompt is stopped
|
|
114
|
+
/** Fired when an in-flight prompt is stopped */
|
|
113
115
|
readonly luzmoStop: import("@angular/core").OutputEmitterRef<CustomEvent<void>>;
|
|
114
116
|
/** Fired when the conversation ID is updated from the API */
|
|
115
117
|
readonly luzmoConversationIdChanged: import("@angular/core").OutputEmitterRef<CustomEvent<AiChatConversationIdChangedEventDetail>>;
|
|
@@ -126,7 +128,7 @@ export declare class LuzmoAiChat implements OnChanges {
|
|
|
126
128
|
private setHostProperty;
|
|
127
129
|
private bindEvents;
|
|
128
130
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiChat, never>;
|
|
129
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiChat, "luzmo-ai-chat", ["luzmoAiChat"], { "messages": { "alias": "messages"; "required": false; }; "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "stoppable": { "alias": "stoppable"; "required": false; }; "showAssistantContextMenu": { "alias": "showAssistantContextMenu"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "hideDatasetButton": { "alias": "hideDatasetButton"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideSelectedDatasets": { "alias": "hideSelectedDatasets"; "required": false; }; "hideAgents": { "alias": "hideAgents"; "required": false; }; "disableColumnMentions": { "alias": "disableColumnMentions"; "required": false; }; "requireDataset": { "alias": "requireDataset"; "required": false; }; "allowImages": { "alias": "allowImages"; "required": false; }; "allowVoiceInput": { "alias": "allowVoiceInput"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "uploadAttachments": { "alias": "uploadAttachments"; "required": false; }; "agent": { "alias": "agent"; "required": false; }; "agentConfig": { "alias": "agentConfig"; "required": false; }; "agentId": { "alias": "agentId"; "required": false; }; "task": { "alias": "task"; "required": false; }; "modelPreference": { "alias": "modelPreference"; "required": false; }; "chatSession": { "alias": "chatSession"; "required": false; }; "conversationId": { "alias": "conversationId"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; "dashboard": { "alias": "dashboard"; "required": false; }; "customItem": { "alias": "customItem"; "required": false; }; "currentScreenMode": { "alias": "currentScreenMode"; "required": false; }; "localeId": { "alias": "localeId"; "required": false; }; "timezoneId": { "alias": "timezoneId"; "required": false; }; "apiVersion": { "alias": "apiVersion"; "required": false; }; "stream": { "alias": "stream"; "required": false; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; }; "cancelledMessage": { "alias": "cancelledMessage"; "required": false; }; "initialPrompt": { "alias": "initialPrompt"; "required": false; }; "emptyStateTitle": { "alias": "emptyStateTitle"; "required": false; }; "emptyStateSubtitle": { "alias": "emptyStateSubtitle"; "required": false; }; "emptyStateSuggestions": { "alias": "emptyStateSuggestions"; "required": false; }; }, { "luzmoMessageSent": "luzmoMessageSent"; "luzmoDatasetsChanged": "luzmoDatasetsChanged"; "luzmoStep": "luzmoStep"; "luzmoComplete": "luzmoComplete"; "luzmoStop": "luzmoStop"; "luzmoConversationIdChanged": "luzmoConversationIdChanged"; "luzmoAssistantMessageAction": "luzmoAssistantMessageAction"; }, never, ["*"], true, never>;
|
|
131
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiChat, "luzmo-ai-chat", ["luzmoAiChat"], { "messages": { "alias": "messages"; "required": false; }; "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "stoppable": { "alias": "stoppable"; "required": false; }; "showAssistantContextMenu": { "alias": "showAssistantContextMenu"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "hideDatasetButton": { "alias": "hideDatasetButton"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideSelectedDatasets": { "alias": "hideSelectedDatasets"; "required": false; }; "hideAgents": { "alias": "hideAgents"; "required": false; }; "disableColumnMentions": { "alias": "disableColumnMentions"; "required": false; }; "requireDataset": { "alias": "requireDataset"; "required": false; }; "allowImages": { "alias": "allowImages"; "required": false; }; "allowVoiceInput": { "alias": "allowVoiceInput"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "uploadAttachments": { "alias": "uploadAttachments"; "required": false; }; "agent": { "alias": "agent"; "required": false; }; "agentConfig": { "alias": "agentConfig"; "required": false; }; "agentId": { "alias": "agentId"; "required": false; }; "task": { "alias": "task"; "required": false; }; "modelPreference": { "alias": "modelPreference"; "required": false; }; "chatSession": { "alias": "chatSession"; "required": false; }; "conversationId": { "alias": "conversationId"; "required": false; }; "chart": { "alias": "chart"; "required": false; }; "dashboard": { "alias": "dashboard"; "required": false; }; "customItem": { "alias": "customItem"; "required": false; }; "currentScreenMode": { "alias": "currentScreenMode"; "required": false; }; "localeId": { "alias": "localeId"; "required": false; }; "timezoneId": { "alias": "timezoneId"; "required": false; }; "apiVersion": { "alias": "apiVersion"; "required": false; }; "stream": { "alias": "stream"; "required": false; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; }; "cancelledMessage": { "alias": "cancelledMessage"; "required": false; }; "initialPrompt": { "alias": "initialPrompt"; "required": false; }; "emptyStateTitle": { "alias": "emptyStateTitle"; "required": false; }; "emptyStateSubtitle": { "alias": "emptyStateSubtitle"; "required": false; }; "emptyStateSuggestions": { "alias": "emptyStateSuggestions"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoMessageSent": "luzmoMessageSent"; "luzmoDatasetsChanged": "luzmoDatasetsChanged"; "luzmoStep": "luzmoStep"; "luzmoComplete": "luzmoComplete"; "luzmoStop": "luzmoStop"; "luzmoConversationIdChanged": "luzmoConversationIdChanged"; "luzmoAssistantMessageAction": "luzmoAssistantMessageAction"; }, never, ["*"], true, never>;
|
|
130
132
|
static ngAcceptInputType_disabled: unknown;
|
|
131
133
|
static ngAcceptInputType_stoppable: unknown;
|
|
132
134
|
static ngAcceptInputType_showAssistantContextMenu: unknown;
|
|
@@ -103,6 +103,8 @@ export class LuzmoAiChat {
|
|
|
103
103
|
emptyStateSubtitle;
|
|
104
104
|
/** Optional suggestion chips for the empty state. When empty, only the title is shown. Each entry may include `selectedDatasets` to pre-select datasets when the chip is activated. */
|
|
105
105
|
emptyStateSuggestions;
|
|
106
|
+
/** Size of the chat: `s`, `m` (default), `l` or `xl`. Scales messages, progress steps, questions, the empty state and the prompt input together. Custom actions beyond built-in `ChatMessage.actions` buttons can be projected via the `assistant-message-actions` light-DOM slot on the latest assistant message. */
|
|
107
|
+
size;
|
|
106
108
|
/** Fired when a user sends a message */
|
|
107
109
|
luzmoMessageSent = output({ alias: 'luzmoMessageSent' });
|
|
108
110
|
/** Fired when the selected datasets change */
|
|
@@ -111,7 +113,7 @@ export class LuzmoAiChat {
|
|
|
111
113
|
luzmoStep = output({ alias: 'luzmoStep' });
|
|
112
114
|
/** Fired exactly once per response with the authoritative final result (dashboard/chart/name/customItem) or an `error`. */
|
|
113
115
|
luzmoComplete = output({ alias: 'luzmoComplete' });
|
|
114
|
-
/** Fired when an in-flight prompt is stopped
|
|
116
|
+
/** Fired when an in-flight prompt is stopped */
|
|
115
117
|
luzmoStop = output({ alias: 'luzmoStop' });
|
|
116
118
|
/** Fired when the conversation ID is updated from the API */
|
|
117
119
|
luzmoConversationIdChanged = output({ alias: 'luzmoConversationIdChanged' });
|
|
@@ -260,6 +262,9 @@ export class LuzmoAiChat {
|
|
|
260
262
|
case 'emptyStateSuggestions':
|
|
261
263
|
this.setHostProperty('emptyStateSuggestions', changes['emptyStateSuggestions'].currentValue);
|
|
262
264
|
break;
|
|
265
|
+
case 'size':
|
|
266
|
+
this.setHostProperty('size', changes['size'].currentValue);
|
|
267
|
+
break;
|
|
263
268
|
default:
|
|
264
269
|
break;
|
|
265
270
|
}
|
|
@@ -305,7 +310,7 @@ export class LuzmoAiChat {
|
|
|
305
310
|
}));
|
|
306
311
|
}
|
|
307
312
|
static ɵfac = function LuzmoAiChat_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiChat)(); };
|
|
308
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiChat, selectors: [["luzmo-ai-chat"]], inputs: { messages: "messages", selectedDatasets: "selectedDatasets", placeholder: "placeholder", disabled: [2, "disabled", "disabled", booleanAttribute], stoppable: [2, "stoppable", "stoppable", booleanAttribute], showAssistantContextMenu: [2, "showAssistantContextMenu", "showAssistantContextMenu", booleanAttribute], authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], hideDatasetButton: [2, "hideDatasetButton", "hideDatasetButton", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideSelectedDatasets: [2, "hideSelectedDatasets", "hideSelectedDatasets", booleanAttribute], hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], disableColumnMentions: [2, "disableColumnMentions", "disableColumnMentions", booleanAttribute], requireDataset: [2, "requireDataset", "requireDataset", booleanAttribute], allowImages: [2, "allowImages", "allowImages", booleanAttribute], allowVoiceInput: [2, "allowVoiceInput", "allowVoiceInput", booleanAttribute], acceptedFileTypes: "acceptedFileTypes", uploadAttachments: "uploadAttachments", agent: "agent", agentConfig: "agentConfig", agentId: "agentId", task: "task", modelPreference: "modelPreference", chatSession: "chatSession", conversationId: "conversationId", chart: "chart", dashboard: "dashboard", customItem: "customItem", currentScreenMode: "currentScreenMode", localeId: "localeId", timezoneId: "timezoneId", apiVersion: "apiVersion", stream: [2, "stream", "stream", booleanAttribute], loadingMessage: "loadingMessage", cancelledMessage: "cancelledMessage", initialPrompt: "initialPrompt", emptyStateTitle: "emptyStateTitle", emptyStateSubtitle: "emptyStateSubtitle", emptyStateSuggestions: "emptyStateSuggestions" }, outputs: { luzmoMessageSent: "luzmoMessageSent", luzmoDatasetsChanged: "luzmoDatasetsChanged", luzmoStep: "luzmoStep", luzmoComplete: "luzmoComplete", luzmoStop: "luzmoStop", luzmoConversationIdChanged: "luzmoConversationIdChanged", luzmoAssistantMessageAction: "luzmoAssistantMessageAction" }, exportAs: ["luzmoAiChat"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiChat_Template(rf, ctx) { if (rf & 1) {
|
|
313
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiChat, selectors: [["luzmo-ai-chat"]], inputs: { messages: "messages", selectedDatasets: "selectedDatasets", placeholder: "placeholder", disabled: [2, "disabled", "disabled", booleanAttribute], stoppable: [2, "stoppable", "stoppable", booleanAttribute], showAssistantContextMenu: [2, "showAssistantContextMenu", "showAssistantContextMenu", booleanAttribute], authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], hideDatasetButton: [2, "hideDatasetButton", "hideDatasetButton", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideSelectedDatasets: [2, "hideSelectedDatasets", "hideSelectedDatasets", booleanAttribute], hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], disableColumnMentions: [2, "disableColumnMentions", "disableColumnMentions", booleanAttribute], requireDataset: [2, "requireDataset", "requireDataset", booleanAttribute], allowImages: [2, "allowImages", "allowImages", booleanAttribute], allowVoiceInput: [2, "allowVoiceInput", "allowVoiceInput", booleanAttribute], acceptedFileTypes: "acceptedFileTypes", uploadAttachments: "uploadAttachments", agent: "agent", agentConfig: "agentConfig", agentId: "agentId", task: "task", modelPreference: "modelPreference", chatSession: "chatSession", conversationId: "conversationId", chart: "chart", dashboard: "dashboard", customItem: "customItem", currentScreenMode: "currentScreenMode", localeId: "localeId", timezoneId: "timezoneId", apiVersion: "apiVersion", stream: [2, "stream", "stream", booleanAttribute], loadingMessage: "loadingMessage", cancelledMessage: "cancelledMessage", initialPrompt: "initialPrompt", emptyStateTitle: "emptyStateTitle", emptyStateSubtitle: "emptyStateSubtitle", emptyStateSuggestions: "emptyStateSuggestions", size: "size" }, outputs: { luzmoMessageSent: "luzmoMessageSent", luzmoDatasetsChanged: "luzmoDatasetsChanged", luzmoStep: "luzmoStep", luzmoComplete: "luzmoComplete", luzmoStop: "luzmoStop", luzmoConversationIdChanged: "luzmoConversationIdChanged", luzmoAssistantMessageAction: "luzmoAssistantMessageAction" }, exportAs: ["luzmoAiChat"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiChat_Template(rf, ctx) { if (rf & 1) {
|
|
309
314
|
i0.ɵɵprojectionDef();
|
|
310
315
|
i0.ɵɵprojection(0);
|
|
311
316
|
} }, encapsulation: 2 });
|
|
@@ -451,5 +456,8 @@ export class LuzmoAiChat {
|
|
|
451
456
|
}], emptyStateSuggestions: [{
|
|
452
457
|
type: Input,
|
|
453
458
|
args: [{ alias: 'emptyStateSuggestions' }]
|
|
459
|
+
}], size: [{
|
|
460
|
+
type: Input,
|
|
461
|
+
args: [{ alias: 'size' }]
|
|
454
462
|
}], luzmoMessageSent: [{ type: i0.Output, args: ["luzmoMessageSent"] }], luzmoDatasetsChanged: [{ type: i0.Output, args: ["luzmoDatasetsChanged"] }], luzmoStep: [{ type: i0.Output, args: ["luzmoStep"] }], luzmoComplete: [{ type: i0.Output, args: ["luzmoComplete"] }], luzmoStop: [{ type: i0.Output, args: ["luzmoStop"] }], luzmoConversationIdChanged: [{ type: i0.Output, args: ["luzmoConversationIdChanged"] }], luzmoAssistantMessageAction: [{ type: i0.Output, args: ["luzmoAssistantMessageAction"] }] }); })();
|
|
455
463
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAiChat, { className: "LuzmoAiChat", filePath: "components/ai-chat.ts", lineNumber: 18 }); })();
|
|
@@ -69,6 +69,8 @@ export declare class LuzmoAiInteractionTextarea implements OnChanges {
|
|
|
69
69
|
uploadAttachments?: unknown;
|
|
70
70
|
/** Custom icons for non-image attachment tiles, keyed by extension. */
|
|
71
71
|
fileIcons?: PromptBoxFileIcons;
|
|
72
|
+
/** Size of the prompt box, its dataset row and its attachment button: `s`, `m` (default), `l` or `xl` */
|
|
73
|
+
size?: unknown;
|
|
72
74
|
/** Fired when a prompt is submitted with selected datasets */
|
|
73
75
|
readonly promptSubmitted: import("@angular/core").OutputEmitterRef<CustomEvent<PromptSubmittedEventDetail>>;
|
|
74
76
|
/** Fired when a running prompt is stopped */
|
|
@@ -84,7 +86,7 @@ export declare class LuzmoAiInteractionTextarea implements OnChanges {
|
|
|
84
86
|
private setHostProperty;
|
|
85
87
|
private bindEvents;
|
|
86
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiInteractionTextarea, never>;
|
|
87
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiInteractionTextarea, "luzmo-ai-interaction-textarea", ["luzmoAiInteractionTextarea"], { "placeholder": { "alias": "placeholder"; "required": false; }; "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "singleLine": { "alias": "singleLine"; "required": false; }; "hideDatasetButton": { "alias": "hideDatasetButton"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "maxVisibleSelectedDatasets": { "alias": "maxVisibleSelectedDatasets"; "required": false; }; "selectedAgent": { "alias": "selectedAgent"; "required": false; }; "hideAgents": { "alias": "hideAgents"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideSelectedDatasets": { "alias": "hideSelectedDatasets"; "required": false; }; "disableColumnMentions": { "alias": "disableColumnMentions"; "required": false; }; "isGenerating": { "alias": "isGenerating"; "required": false; }; "stoppable": { "alias": "stoppable"; "required": false; }; "value": { "alias": "value"; "required": false; }; "retainOnSubmit": { "alias": "retainOnSubmit"; "required": false; }; "requireDataset": { "alias": "requireDataset"; "required": false; }; "allowImages": { "alias": "allowImages"; "required": false; }; "allowVoiceInput": { "alias": "allowVoiceInput"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "apiVersion": { "alias": "apiVersion"; "required": false; }; "uploadAttachments": { "alias": "uploadAttachments"; "required": false; }; "fileIcons": { "alias": "fileIcons"; "required": false; }; }, { "promptSubmitted": "promptSubmitted"; "promptStopped": "promptStopped"; }, never, ["*"], true, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoAiInteractionTextarea, "luzmo-ai-interaction-textarea", ["luzmoAiInteractionTextarea"], { "placeholder": { "alias": "placeholder"; "required": false; }; "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "singleLine": { "alias": "singleLine"; "required": false; }; "hideDatasetButton": { "alias": "hideDatasetButton"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "maxVisibleSelectedDatasets": { "alias": "maxVisibleSelectedDatasets"; "required": false; }; "selectedAgent": { "alias": "selectedAgent"; "required": false; }; "hideAgents": { "alias": "hideAgents"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideSelectedDatasets": { "alias": "hideSelectedDatasets"; "required": false; }; "disableColumnMentions": { "alias": "disableColumnMentions"; "required": false; }; "isGenerating": { "alias": "isGenerating"; "required": false; }; "stoppable": { "alias": "stoppable"; "required": false; }; "value": { "alias": "value"; "required": false; }; "retainOnSubmit": { "alias": "retainOnSubmit"; "required": false; }; "requireDataset": { "alias": "requireDataset"; "required": false; }; "allowImages": { "alias": "allowImages"; "required": false; }; "allowVoiceInput": { "alias": "allowVoiceInput"; "required": false; }; "acceptedFileTypes": { "alias": "acceptedFileTypes"; "required": false; }; "apiVersion": { "alias": "apiVersion"; "required": false; }; "uploadAttachments": { "alias": "uploadAttachments"; "required": false; }; "fileIcons": { "alias": "fileIcons"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "promptSubmitted": "promptSubmitted"; "promptStopped": "promptStopped"; }, never, ["*"], true, never>;
|
|
88
90
|
static ngAcceptInputType_includePublicDatasets: unknown;
|
|
89
91
|
static ngAcceptInputType_flagOpendata: unknown;
|
|
90
92
|
static ngAcceptInputType_disabled: unknown;
|
|
@@ -73,6 +73,8 @@ export class LuzmoAiInteractionTextarea {
|
|
|
73
73
|
uploadAttachments;
|
|
74
74
|
/** Custom icons for non-image attachment tiles, keyed by extension. */
|
|
75
75
|
fileIcons;
|
|
76
|
+
/** Size of the prompt box, its dataset row and its attachment button: `s`, `m` (default), `l` or `xl` */
|
|
77
|
+
size;
|
|
76
78
|
/** Fired when a prompt is submitted with selected datasets */
|
|
77
79
|
promptSubmitted = output({ alias: 'promptSubmitted' });
|
|
78
80
|
/** Fired when a running prompt is stopped */
|
|
@@ -175,6 +177,9 @@ export class LuzmoAiInteractionTextarea {
|
|
|
175
177
|
case 'fileIcons':
|
|
176
178
|
this.setHostProperty('fileIcons', changes['fileIcons'].currentValue);
|
|
177
179
|
break;
|
|
180
|
+
case 'size':
|
|
181
|
+
this.setHostProperty('size', changes['size'].currentValue);
|
|
182
|
+
break;
|
|
178
183
|
default:
|
|
179
184
|
break;
|
|
180
185
|
}
|
|
@@ -200,7 +205,7 @@ export class LuzmoAiInteractionTextarea {
|
|
|
200
205
|
}));
|
|
201
206
|
}
|
|
202
207
|
static ɵfac = function LuzmoAiInteractionTextarea_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiInteractionTextarea)(); };
|
|
203
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiInteractionTextarea, selectors: [["luzmo-ai-interaction-textarea"]], inputs: { placeholder: "placeholder", selectedDatasets: "selectedDatasets", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], singleLine: [2, "singleLine", "singleLine", booleanAttribute], hideDatasetButton: [2, "hideDatasetButton", "hideDatasetButton", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], maxVisibleSelectedDatasets: "maxVisibleSelectedDatasets", selectedAgent: "selectedAgent", hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideSelectedDatasets: [2, "hideSelectedDatasets", "hideSelectedDatasets", booleanAttribute], disableColumnMentions: [2, "disableColumnMentions", "disableColumnMentions", booleanAttribute], isGenerating: [2, "isGenerating", "isGenerating", booleanAttribute], stoppable: [2, "stoppable", "stoppable", booleanAttribute], value: "value", retainOnSubmit: [2, "retainOnSubmit", "retainOnSubmit", booleanAttribute], requireDataset: [2, "requireDataset", "requireDataset", booleanAttribute], allowImages: [2, "allowImages", "allowImages", booleanAttribute], allowVoiceInput: [2, "allowVoiceInput", "allowVoiceInput", booleanAttribute], acceptedFileTypes: "acceptedFileTypes", apiVersion: "apiVersion", uploadAttachments: "uploadAttachments", fileIcons: "fileIcons" }, outputs: { promptSubmitted: "promptSubmitted", promptStopped: "promptStopped" }, exportAs: ["luzmoAiInteractionTextarea"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiInteractionTextarea_Template(rf, ctx) { if (rf & 1) {
|
|
208
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoAiInteractionTextarea, selectors: [["luzmo-ai-interaction-textarea"]], inputs: { placeholder: "placeholder", selectedDatasets: "selectedDatasets", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], singleLine: [2, "singleLine", "singleLine", booleanAttribute], hideDatasetButton: [2, "hideDatasetButton", "hideDatasetButton", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], maxVisibleSelectedDatasets: "maxVisibleSelectedDatasets", selectedAgent: "selectedAgent", hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideSelectedDatasets: [2, "hideSelectedDatasets", "hideSelectedDatasets", booleanAttribute], disableColumnMentions: [2, "disableColumnMentions", "disableColumnMentions", booleanAttribute], isGenerating: [2, "isGenerating", "isGenerating", booleanAttribute], stoppable: [2, "stoppable", "stoppable", booleanAttribute], value: "value", retainOnSubmit: [2, "retainOnSubmit", "retainOnSubmit", booleanAttribute], requireDataset: [2, "requireDataset", "requireDataset", booleanAttribute], allowImages: [2, "allowImages", "allowImages", booleanAttribute], allowVoiceInput: [2, "allowVoiceInput", "allowVoiceInput", booleanAttribute], acceptedFileTypes: "acceptedFileTypes", apiVersion: "apiVersion", uploadAttachments: "uploadAttachments", fileIcons: "fileIcons", size: "size" }, outputs: { promptSubmitted: "promptSubmitted", promptStopped: "promptStopped" }, exportAs: ["luzmoAiInteractionTextarea"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoAiInteractionTextarea_Template(rf, ctx) { if (rf & 1) {
|
|
204
209
|
i0.ɵɵprojectionDef();
|
|
205
210
|
i0.ɵɵprojection(0);
|
|
206
211
|
} }, encapsulation: 2 });
|
|
@@ -301,5 +306,8 @@ export class LuzmoAiInteractionTextarea {
|
|
|
301
306
|
}], fileIcons: [{
|
|
302
307
|
type: Input,
|
|
303
308
|
args: [{ alias: 'fileIcons' }]
|
|
309
|
+
}], size: [{
|
|
310
|
+
type: Input,
|
|
311
|
+
args: [{ alias: 'size' }]
|
|
304
312
|
}], promptSubmitted: [{ type: i0.Output, args: ["promptSubmitted"] }], promptStopped: [{ type: i0.Output, args: ["promptStopped"] }] }); })();
|
|
305
313
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAiInteractionTextarea, { className: "LuzmoAiInteractionTextarea", filePath: "components/ai-interaction-textarea.ts", lineNumber: 16 }); })();
|
|
@@ -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?:
|
|
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;
|
|
@@ -39,6 +39,8 @@ export declare class LuzmoDatasetSelectorRow implements OnChanges {
|
|
|
39
39
|
hideDatasetIcons?: boolean;
|
|
40
40
|
/** Maximum number of selected dataset tags shown before the overflow control; unset shows all tags. */
|
|
41
41
|
maxVisibleSelectedDatasets?: number;
|
|
42
|
+
/** Size of the add trigger, the selected tags and the overflow button: `s`, `m` (default), `l` or `xl` */
|
|
43
|
+
size?: unknown;
|
|
42
44
|
/** Fired when an agent is selected */
|
|
43
45
|
readonly luzmoAgentSelected: import("@angular/core").OutputEmitterRef<CustomEvent<Agent>>;
|
|
44
46
|
/** Fired when a dataset is selected */
|
|
@@ -58,7 +60,7 @@ export declare class LuzmoDatasetSelectorRow implements OnChanges {
|
|
|
58
60
|
private setHostProperty;
|
|
59
61
|
private bindEvents;
|
|
60
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDatasetSelectorRow, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDatasetSelectorRow, "luzmo-dataset-selector-row", ["luzmoDatasetSelectorRow"], { "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "selectedAgent": { "alias": "selectedAgent"; "required": false; }; "hideAgents": { "alias": "hideAgents"; "required": false; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "maxVisibleSelectedDatasets": { "alias": "maxVisibleSelectedDatasets"; "required": false; }; }, { "luzmoAgentSelected": "luzmoAgentSelected"; "datasetSelected": "datasetSelected"; "datasetRemoved": "datasetRemoved"; "luzmoAgentRemoved": "luzmoAgentRemoved"; }, never, ["*"], true, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDatasetSelectorRow, "luzmo-dataset-selector-row", ["luzmoDatasetSelectorRow"], { "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "selectedAgent": { "alias": "selectedAgent"; "required": false; }; "hideAgents": { "alias": "hideAgents"; "required": false; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "appServer": { "alias": "appServer"; "required": false; }; "includePublicDatasets": { "alias": "includePublicDatasets"; "required": false; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableDatasetModification": { "alias": "disableDatasetModification"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; "maxVisibleSelectedDatasets": { "alias": "maxVisibleSelectedDatasets"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoAgentSelected": "luzmoAgentSelected"; "datasetSelected": "datasetSelected"; "datasetRemoved": "datasetRemoved"; "luzmoAgentRemoved": "luzmoAgentRemoved"; }, never, ["*"], true, never>;
|
|
62
64
|
static ngAcceptInputType_hideAgents: unknown;
|
|
63
65
|
static ngAcceptInputType_includePublicDatasets: unknown;
|
|
64
66
|
static ngAcceptInputType_flagOpendata: unknown;
|
|
@@ -43,6 +43,8 @@ export class LuzmoDatasetSelectorRow {
|
|
|
43
43
|
hideDatasetIcons;
|
|
44
44
|
/** Maximum number of selected dataset tags shown before the overflow control; unset shows all tags. */
|
|
45
45
|
maxVisibleSelectedDatasets;
|
|
46
|
+
/** Size of the add trigger, the selected tags and the overflow button: `s`, `m` (default), `l` or `xl` */
|
|
47
|
+
size;
|
|
46
48
|
/** Fired when an agent is selected */
|
|
47
49
|
luzmoAgentSelected = output({ alias: 'luzmoAgentSelected' });
|
|
48
50
|
/** Fired when a dataset is selected */
|
|
@@ -104,6 +106,9 @@ export class LuzmoDatasetSelectorRow {
|
|
|
104
106
|
case 'maxVisibleSelectedDatasets':
|
|
105
107
|
this.setHostProperty('maxVisibleSelectedDatasets', changes['maxVisibleSelectedDatasets'].currentValue);
|
|
106
108
|
break;
|
|
109
|
+
case 'size':
|
|
110
|
+
this.setHostProperty('size', changes['size'].currentValue);
|
|
111
|
+
break;
|
|
107
112
|
default:
|
|
108
113
|
break;
|
|
109
114
|
}
|
|
@@ -137,7 +142,7 @@ export class LuzmoDatasetSelectorRow {
|
|
|
137
142
|
}));
|
|
138
143
|
}
|
|
139
144
|
static ɵfac = function LuzmoDatasetSelectorRow_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDatasetSelectorRow)(); };
|
|
140
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDatasetSelectorRow, selectors: [["luzmo-dataset-selector-row"]], inputs: { selectedDatasets: "selectedDatasets", selectedAgent: "selectedAgent", hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], buttonLabel: "buttonLabel", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], maxVisibleSelectedDatasets: "maxVisibleSelectedDatasets" }, outputs: { luzmoAgentSelected: "luzmoAgentSelected", datasetSelected: "datasetSelected", datasetRemoved: "datasetRemoved", luzmoAgentRemoved: "luzmoAgentRemoved" }, exportAs: ["luzmoDatasetSelectorRow"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDatasetSelectorRow_Template(rf, ctx) { if (rf & 1) {
|
|
145
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDatasetSelectorRow, selectors: [["luzmo-dataset-selector-row"]], inputs: { selectedDatasets: "selectedDatasets", selectedAgent: "selectedAgent", hideAgents: [2, "hideAgents", "hideAgents", booleanAttribute], buttonLabel: "buttonLabel", authKey: "authKey", authToken: "authToken", apiUrl: "apiUrl", appServer: "appServer", includePublicDatasets: [2, "includePublicDatasets", "includePublicDatasets", booleanAttribute], flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], disableDatasetModification: [2, "disableDatasetModification", "disableDatasetModification", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute], maxVisibleSelectedDatasets: "maxVisibleSelectedDatasets", size: "size" }, outputs: { luzmoAgentSelected: "luzmoAgentSelected", datasetSelected: "datasetSelected", datasetRemoved: "datasetRemoved", luzmoAgentRemoved: "luzmoAgentRemoved" }, exportAs: ["luzmoDatasetSelectorRow"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDatasetSelectorRow_Template(rf, ctx) { if (rf & 1) {
|
|
141
146
|
i0.ɵɵprojectionDef();
|
|
142
147
|
i0.ɵɵprojection(0);
|
|
143
148
|
} }, encapsulation: 2 });
|
|
@@ -193,5 +198,8 @@ export class LuzmoDatasetSelectorRow {
|
|
|
193
198
|
}], maxVisibleSelectedDatasets: [{
|
|
194
199
|
type: Input,
|
|
195
200
|
args: [{ alias: 'maxVisibleSelectedDatasets' }]
|
|
201
|
+
}], size: [{
|
|
202
|
+
type: Input,
|
|
203
|
+
args: [{ alias: 'size' }]
|
|
196
204
|
}], luzmoAgentSelected: [{ type: i0.Output, args: ["luzmoAgentSelected"] }], datasetSelected: [{ type: i0.Output, args: ["datasetSelected"] }], datasetRemoved: [{ type: i0.Output, args: ["datasetRemoved"] }], luzmoAgentRemoved: [{ type: i0.Output, args: ["luzmoAgentRemoved"] }] }); })();
|
|
197
205
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoDatasetSelectorRow, { className: "LuzmoDatasetSelectorRow", filePath: "components/dataset-selector-row.ts", lineNumber: 16 }); })();
|
|
@@ -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:
|
|
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 }); })();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import '@luzmo/analytics-components-kit/item-grid';
|
|
3
|
-
import type { LuzmoItemGridItemActionsMenu as LuzmoItemGridItemActionsMenuHostElement, ActionGroup } from '@luzmo/analytics-components-kit/item-grid';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
|
|
3
|
+
import type { LuzmoItemGridItemActionsMenu as LuzmoItemGridItemActionsMenuHostElement, ActionGroup, ItemGridItemActionEventDetail, ItemGridItemActionHoverEventDetail } from '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
|
|
4
4
|
import type { Placement } from '@luzmo/lucero';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export type { Action, ActionGroup,
|
|
6
|
+
export type { Action, ActionGroup, ItemGridItemActionEventDetail, ItemGridItemActionHoverEventDetail } from '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
|
|
7
7
|
export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
|
|
8
8
|
private readonly elementRef;
|
|
9
9
|
private readonly renderer;
|
|
@@ -12,9 +12,9 @@ export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
|
|
|
12
12
|
private readonly listenerCleanup;
|
|
13
13
|
/** The underlying custom element instance. Use to call imperative methods. */
|
|
14
14
|
get nativeElement(): LuzmoItemGridItemActionsMenuHostElement;
|
|
15
|
-
/** The preferred placement
|
|
15
|
+
/** The preferred placement, which determines the toolbar orientation. */
|
|
16
16
|
placement?: Placement;
|
|
17
|
-
/** The
|
|
17
|
+
/** The grouped actions displayed in the toolbar. */
|
|
18
18
|
actions?: ActionGroup[];
|
|
19
19
|
/** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
|
|
20
20
|
language?: string;
|
|
@@ -24,8 +24,10 @@ export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
|
|
|
24
24
|
autofocus?: boolean;
|
|
25
25
|
/** The tab index to apply to this control. See general documentation about the tabindex HTML property */
|
|
26
26
|
tabIndex?: number;
|
|
27
|
-
/** Fired when the user
|
|
28
|
-
readonly luzmoItemGridItemAction: import("@angular/core").OutputEmitterRef<CustomEvent<
|
|
27
|
+
/** Fired when the user activates an action. */
|
|
28
|
+
readonly luzmoItemGridItemAction: import("@angular/core").OutputEmitterRef<CustomEvent<ItemGridItemActionEventDetail>>;
|
|
29
|
+
/** Fired when the pointer enters an action, for example to preload what it opens. */
|
|
30
|
+
readonly luzmoItemGridItemActionHover: import("@angular/core").OutputEmitterRef<CustomEvent<ItemGridItemActionHoverEventDetail>>;
|
|
29
31
|
constructor();
|
|
30
32
|
ngOnChanges(changes: SimpleChanges): void;
|
|
31
33
|
/**
|
|
@@ -37,7 +39,7 @@ export declare class LuzmoItemGridItemActionsMenu implements OnChanges {
|
|
|
37
39
|
private setHostProperty;
|
|
38
40
|
private bindEvents;
|
|
39
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemGridItemActionsMenu, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemGridItemActionsMenu, "luzmo-item-grid-item-actions-menu", ["luzmoItemGridItemActionsMenu"], { "placement": { "alias": "placement"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoItemGridItemAction": "luzmoItemGridItemAction"; }, never, ["*"], true, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemGridItemActionsMenu, "luzmo-item-grid-item-actions-menu", ["luzmoItemGridItemActionsMenu"], { "placement": { "alias": "placement"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "luzmoItemGridItemAction": "luzmoItemGridItemAction"; "luzmoItemGridItemActionHover": "luzmoItemGridItemActionHover"; }, never, ["*"], true, never>;
|
|
41
43
|
static ngAcceptInputType_disabled: unknown;
|
|
42
44
|
static ngAcceptInputType_autofocus: unknown;
|
|
43
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
-
import '@luzmo/analytics-components-kit/item-grid';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
const _c0 = ["*"];
|
|
5
5
|
/**
|
|
@@ -15,9 +15,9 @@ export class LuzmoItemGridItemActionsMenu {
|
|
|
15
15
|
get nativeElement() {
|
|
16
16
|
return this.host;
|
|
17
17
|
}
|
|
18
|
-
/** The preferred placement
|
|
18
|
+
/** The preferred placement, which determines the toolbar orientation. */
|
|
19
19
|
placement;
|
|
20
|
-
/** The
|
|
20
|
+
/** The grouped actions displayed in the toolbar. */
|
|
21
21
|
actions;
|
|
22
22
|
/** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
|
|
23
23
|
language;
|
|
@@ -27,8 +27,10 @@ export class LuzmoItemGridItemActionsMenu {
|
|
|
27
27
|
autofocus;
|
|
28
28
|
/** The tab index to apply to this control. See general documentation about the tabindex HTML property */
|
|
29
29
|
tabIndex;
|
|
30
|
-
/** Fired when the user
|
|
30
|
+
/** Fired when the user activates an action. */
|
|
31
31
|
luzmoItemGridItemAction = output({ alias: 'luzmoItemGridItemAction' });
|
|
32
|
+
/** Fired when the pointer enters an action, for example to preload what it opens. */
|
|
33
|
+
luzmoItemGridItemActionHover = output({ alias: 'luzmoItemGridItemActionHover' });
|
|
32
34
|
constructor() {
|
|
33
35
|
this.bindEvents();
|
|
34
36
|
this.destroyRef.onDestroy(() => {
|
|
@@ -77,9 +79,13 @@ export class LuzmoItemGridItemActionsMenu {
|
|
|
77
79
|
const typed = event;
|
|
78
80
|
this.luzmoItemGridItemAction.emit(typed);
|
|
79
81
|
}));
|
|
82
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-item-grid-item-action-hover', (event) => {
|
|
83
|
+
const typed = event;
|
|
84
|
+
this.luzmoItemGridItemActionHover.emit(typed);
|
|
85
|
+
}));
|
|
80
86
|
}
|
|
81
87
|
static ɵfac = function LuzmoItemGridItemActionsMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemGridItemActionsMenu)(); };
|
|
82
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGridItemActionsMenu, selectors: [["luzmo-item-grid-item-actions-menu"]], inputs: { placement: "placement", actions: "actions", language: "language", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction" }, exportAs: ["luzmoItemGridItemActionsMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGridItemActionsMenu_Template(rf, ctx) { if (rf & 1) {
|
|
88
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGridItemActionsMenu, selectors: [["luzmo-item-grid-item-actions-menu"]], inputs: { placement: "placement", actions: "actions", language: "language", disabled: [2, "disabled", "disabled", booleanAttribute], autofocus: [2, "autofocus", "autofocus", booleanAttribute], tabIndex: "tabIndex" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction", luzmoItemGridItemActionHover: "luzmoItemGridItemActionHover" }, exportAs: ["luzmoItemGridItemActionsMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGridItemActionsMenu_Template(rf, ctx) { if (rf & 1) {
|
|
83
89
|
i0.ɵɵprojectionDef();
|
|
84
90
|
i0.ɵɵprojection(0);
|
|
85
91
|
} }, encapsulation: 2 });
|
|
@@ -111,5 +117,5 @@ export class LuzmoItemGridItemActionsMenu {
|
|
|
111
117
|
}], tabIndex: [{
|
|
112
118
|
type: Input,
|
|
113
119
|
args: [{ alias: 'tabIndex' }]
|
|
114
|
-
}], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }] }); })();
|
|
120
|
+
}], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }], luzmoItemGridItemActionHover: [{ type: i0.Output, args: ["luzmoItemGridItemActionHover"] }] }); })();
|
|
115
121
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemGridItemActionsMenu, { className: "LuzmoItemGridItemActionsMenu", filePath: "components/item-grid-item-actions-menu.ts", lineNumber: 17 }); })();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import '@luzmo/analytics-components-kit/item-grid';
|
|
3
|
-
import type { LuzmoItemGrid as LuzmoItemGridHostElement, ClonedItemPositioning, GridItemActionEventDetail, GridItemData, GridItemRenderer, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
|
|
3
|
+
import type { LuzmoItemGrid as LuzmoItemGridHostElement, ClonedItemPositioning, GridItemActionEventDetail, GridItemData, GridItemRenderer, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemGridItemActionHoverEventDetail, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
|
|
4
4
|
import type { ThemeConfig } from '@luzmo/dashboard-contents-types';
|
|
5
5
|
import type { Placement } from '@luzmo/lucero';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export type { Action, ActionGroup, AddGridItemInput, ClonedItemPositioning, DefaultActionType, GridItemActionEventDetail, GridItemData, GridItemPatch, GridItemPosition, GridItemPositionPatch, GridItemRenderer, GridItemSizePatch, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
|
|
7
|
+
export type { Action, ActionGroup, AddGridItemInput, ClonedItemPositioning, DefaultActionType, GridItemActionEventDetail, GridItemData, GridItemPatch, GridItemPosition, GridItemPositionPatch, GridItemRenderer, GridItemSizePatch, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, InputActionGroup, ItemGridItemActionEventDetail, ItemGridItemActionHoverEventDetail, ItemStates } from '@luzmo/analytics-components-kit/item-grid';
|
|
8
8
|
export declare class LuzmoItemGrid implements OnChanges {
|
|
9
9
|
private readonly elementRef;
|
|
10
10
|
private readonly renderer;
|
|
@@ -55,6 +55,8 @@ export declare class LuzmoItemGrid implements OnChanges {
|
|
|
55
55
|
initialItemStates?: ItemStates;
|
|
56
56
|
/** Fired when an item action is performed */
|
|
57
57
|
readonly luzmoItemGridItemAction: import("@angular/core").OutputEmitterRef<CustomEvent<GridItemActionEventDetail>>;
|
|
58
|
+
/** Bubbles from the item actions menu when the pointer enters an action. The detail has only `action` and `type`, not the item. */
|
|
59
|
+
readonly luzmoItemGridItemActionHover: import("@angular/core").OutputEmitterRef<CustomEvent<ItemGridItemActionHoverEventDetail>>;
|
|
58
60
|
/** Fired when the grid layout is changed */
|
|
59
61
|
readonly luzmoItemGridLayoutChanged: import("@angular/core").OutputEmitterRef<CustomEvent<GridLifecycleEventDetail>>;
|
|
60
62
|
/** Fired when the grid is ready */
|
|
@@ -72,7 +74,7 @@ export declare class LuzmoItemGrid implements OnChanges {
|
|
|
72
74
|
private setHostProperty;
|
|
73
75
|
private bindEvents;
|
|
74
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemGrid, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemGrid, "luzmo-item-grid", ["luzmoItemGrid"], { "appServer": { "alias": "appServer"; "required": false; }; "apiHost": { "alias": "apiHost"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "itemActionsDocumentPopover": { "alias": "itemActionsDocumentPopover"; "required": false; }; "placementItemActionsMenu": { "alias": "placementItemActionsMenu"; "required": false; }; "defaultItemActionsMenu": { "alias": "defaultItemActionsMenu"; "required": false; }; "clonedItemPositioning": { "alias": "clonedItemPositioning"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "items": { "alias": "items"; "required": false; }; "initialItems": { "alias": "initialItems"; "required": false; }; "renderers": { "alias": "renderers"; "required": false; }; "itemStates": { "alias": "itemStates"; "required": false; }; "initialItemStates": { "alias": "initialItemStates"; "required": false; }; }, { "luzmoItemGridItemAction": "luzmoItemGridItemAction"; "luzmoItemGridLayoutChanged": "luzmoItemGridLayoutChanged"; "luzmoItemGridReady": "luzmoItemGridReady"; "luzmoItemGridItemStatesChanged": "luzmoItemGridItemStatesChanged"; }, never, ["*"], true, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemGrid, "luzmo-item-grid", ["luzmoItemGrid"], { "appServer": { "alias": "appServer"; "required": false; }; "apiHost": { "alias": "apiHost"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "itemActionsDocumentPopover": { "alias": "itemActionsDocumentPopover"; "required": false; }; "placementItemActionsMenu": { "alias": "placementItemActionsMenu"; "required": false; }; "defaultItemActionsMenu": { "alias": "defaultItemActionsMenu"; "required": false; }; "clonedItemPositioning": { "alias": "clonedItemPositioning"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "items": { "alias": "items"; "required": false; }; "initialItems": { "alias": "initialItems"; "required": false; }; "renderers": { "alias": "renderers"; "required": false; }; "itemStates": { "alias": "itemStates"; "required": false; }; "initialItemStates": { "alias": "initialItemStates"; "required": false; }; }, { "luzmoItemGridItemAction": "luzmoItemGridItemAction"; "luzmoItemGridItemActionHover": "luzmoItemGridItemActionHover"; "luzmoItemGridLayoutChanged": "luzmoItemGridLayoutChanged"; "luzmoItemGridReady": "luzmoItemGridReady"; "luzmoItemGridItemStatesChanged": "luzmoItemGridItemStatesChanged"; }, never, ["*"], true, never>;
|
|
76
78
|
static ngAcceptInputType_viewMode: unknown;
|
|
77
79
|
static ngAcceptInputType_itemActionsDocumentPopover: unknown;
|
|
78
80
|
}
|
|
@@ -57,6 +57,8 @@ export class LuzmoItemGrid {
|
|
|
57
57
|
initialItemStates;
|
|
58
58
|
/** Fired when an item action is performed */
|
|
59
59
|
luzmoItemGridItemAction = output({ alias: 'luzmoItemGridItemAction' });
|
|
60
|
+
/** Bubbles from the item actions menu when the pointer enters an action. The detail has only `action` and `type`, not the item. */
|
|
61
|
+
luzmoItemGridItemActionHover = output({ alias: 'luzmoItemGridItemActionHover' });
|
|
60
62
|
/** Fired when the grid layout is changed */
|
|
61
63
|
luzmoItemGridLayoutChanged = output({ alias: 'luzmoItemGridLayoutChanged' });
|
|
62
64
|
/** Fired when the grid is ready */
|
|
@@ -153,6 +155,10 @@ export class LuzmoItemGrid {
|
|
|
153
155
|
const typed = event;
|
|
154
156
|
this.luzmoItemGridItemAction.emit(typed);
|
|
155
157
|
}));
|
|
158
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-item-grid-item-action-hover', (event) => {
|
|
159
|
+
const typed = event;
|
|
160
|
+
this.luzmoItemGridItemActionHover.emit(typed);
|
|
161
|
+
}));
|
|
156
162
|
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-item-grid-layout-changed', (event) => {
|
|
157
163
|
const typed = event;
|
|
158
164
|
this.luzmoItemGridLayoutChanged.emit(typed);
|
|
@@ -167,7 +173,7 @@ export class LuzmoItemGrid {
|
|
|
167
173
|
}));
|
|
168
174
|
}
|
|
169
175
|
static ɵfac = function LuzmoItemGrid_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemGrid)(); };
|
|
170
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGrid, selectors: [["luzmo-item-grid"]], inputs: { appServer: "appServer", apiHost: "apiHost", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", language: "language", contentLanguage: "contentLanguage", columns: "columns", rowHeight: "rowHeight", viewMode: [2, "viewMode", "viewMode", booleanAttribute], itemActionsDocumentPopover: [2, "itemActionsDocumentPopover", "itemActionsDocumentPopover", booleanAttribute], placementItemActionsMenu: "placementItemActionsMenu", defaultItemActionsMenu: "defaultItemActionsMenu", clonedItemPositioning: "clonedItemPositioning", theme: "theme", items: "items", initialItems: "initialItems", renderers: "renderers", itemStates: "itemStates", initialItemStates: "initialItemStates" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction", luzmoItemGridLayoutChanged: "luzmoItemGridLayoutChanged", luzmoItemGridReady: "luzmoItemGridReady", luzmoItemGridItemStatesChanged: "luzmoItemGridItemStatesChanged" }, exportAs: ["luzmoItemGrid"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGrid_Template(rf, ctx) { if (rf & 1) {
|
|
176
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemGrid, selectors: [["luzmo-item-grid"]], inputs: { appServer: "appServer", apiHost: "apiHost", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", language: "language", contentLanguage: "contentLanguage", columns: "columns", rowHeight: "rowHeight", viewMode: [2, "viewMode", "viewMode", booleanAttribute], itemActionsDocumentPopover: [2, "itemActionsDocumentPopover", "itemActionsDocumentPopover", booleanAttribute], placementItemActionsMenu: "placementItemActionsMenu", defaultItemActionsMenu: "defaultItemActionsMenu", clonedItemPositioning: "clonedItemPositioning", theme: "theme", items: "items", initialItems: "initialItems", renderers: "renderers", itemStates: "itemStates", initialItemStates: "initialItemStates" }, outputs: { luzmoItemGridItemAction: "luzmoItemGridItemAction", luzmoItemGridItemActionHover: "luzmoItemGridItemActionHover", luzmoItemGridLayoutChanged: "luzmoItemGridLayoutChanged", luzmoItemGridReady: "luzmoItemGridReady", luzmoItemGridItemStatesChanged: "luzmoItemGridItemStatesChanged" }, exportAs: ["luzmoItemGrid"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemGrid_Template(rf, ctx) { if (rf & 1) {
|
|
171
177
|
i0.ɵɵprojectionDef();
|
|
172
178
|
i0.ɵɵprojection(0);
|
|
173
179
|
} }, encapsulation: 2 });
|
|
@@ -241,5 +247,5 @@ export class LuzmoItemGrid {
|
|
|
241
247
|
}], initialItemStates: [{
|
|
242
248
|
type: Input,
|
|
243
249
|
args: [{ alias: 'initialItemStates' }]
|
|
244
|
-
}], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }], luzmoItemGridLayoutChanged: [{ type: i0.Output, args: ["luzmoItemGridLayoutChanged"] }], luzmoItemGridReady: [{ type: i0.Output, args: ["luzmoItemGridReady"] }], luzmoItemGridItemStatesChanged: [{ type: i0.Output, args: ["luzmoItemGridItemStatesChanged"] }] }); })();
|
|
250
|
+
}], luzmoItemGridItemAction: [{ type: i0.Output, args: ["luzmoItemGridItemAction"] }], luzmoItemGridItemActionHover: [{ type: i0.Output, args: ["luzmoItemGridItemActionHover"] }], luzmoItemGridLayoutChanged: [{ type: i0.Output, args: ["luzmoItemGridLayoutChanged"] }], luzmoItemGridReady: [{ type: i0.Output, args: ["luzmoItemGridReady"] }], luzmoItemGridItemStatesChanged: [{ type: i0.Output, args: ["luzmoItemGridItemStatesChanged"] }] }); })();
|
|
245
251
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemGrid, { className: "LuzmoItemGrid", filePath: "components/item-grid.ts", lineNumber: 18 }); })();
|
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';
|
|
@@ -50,7 +51,7 @@ import { LuzmoItemSlotPicker } from './components/item-slot-picker.js';
|
|
|
50
51
|
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
|
+
export { LuzmoAddToDashboard, type LuzmoAddToDashboardElement } from './components/add-to-dashboard.js';
|
|
54
55
|
export { LuzmoAiChat, type LuzmoAiChatElement } from './components/ai-chat.js';
|
|
55
56
|
export { LuzmoAiChatEmptyState, type LuzmoAiChatEmptyStateElement } from './components/ai-chat-empty-state.js';
|
|
56
57
|
export { LuzmoAiInteractionTextarea, type LuzmoAiInteractionTextareaElement } from './components/ai-interaction-textarea.js';
|
|
@@ -103,7 +104,6 @@ export { LuzmoItemSlotPicker, type LuzmoItemSlotPickerElement } from './componen
|
|
|
103
104
|
export { LuzmoItemSlotPickerPanel, type LuzmoItemSlotPickerPanelElement } from './components/item-slot-picker-panel.js';
|
|
104
105
|
export { LuzmoSlotMenu, type LuzmoSlotMenuElement } from './components/slot-menu.js';
|
|
105
106
|
export { LuzmoSlotMenuList, type LuzmoSlotMenuListElement } from './components/slot-menu-list.js';
|
|
106
|
-
export
|
|
107
|
-
export declare const
|
|
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"];
|
|
107
|
+
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];
|
|
108
|
+
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"];
|
|
109
109
|
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';
|
|
@@ -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
|
-
|
|
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,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.
|
|
32
|
+
"@luzmo/analytics-components-kit": "1.0.9-beta.11"
|
|
33
33
|
},
|
|
34
|
-
"version": "1.0.9-beta.
|
|
34
|
+
"version": "1.0.9-beta.11",
|
|
35
35
|
"peerDependenciesMeta": {
|
|
36
36
|
"@angular/forms": {
|
|
37
37
|
"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 }); })();
|