@luzmo/ngx-analytics-components-kit 1.0.8-beta.3 → 1.0.8-beta.4

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.
@@ -47,7 +47,7 @@ export declare class LuzmoAiChat implements OnChanges {
47
47
  hideSelectedDatasets?: boolean;
48
48
  /** When true, disables @ trigger mentions for dataset fields in the input */
49
49
  disableColumnMentions?: boolean;
50
- /** When true, at least one dataset must be selected before the prompt can be submitted */
50
+ /** When true, a picked agent or at least one selected dataset is required before the prompt can be submitted */
51
51
  requireDataset?: boolean;
52
52
  /** Enables image attachments (PNG/JPEG/WebP/GIF). */
53
53
  allowImages?: boolean;
@@ -59,7 +59,7 @@ export declare class LuzmoAiChat implements OnChanges {
59
59
  uploadAttachments?: unknown;
60
60
  /** Which aiprompt agent to use. Determines request payload and stream handling. With `agent-id` set it no longer shapes the request payload, only stream handling. */
61
61
  agent?: AiPromptAgent;
62
- /** Saved Agent id (UUID) to run the prompt as. */
62
+ /** Saved Agent id (UUID) to run the prompt as. An agent picked in the prompt box takes precedence for that prompt. */
63
63
  agentId?: string;
64
64
  /** Task for the item agent (`generate`, `suggest`, `describe`). Ignored when `agent-id` is set. */
65
65
  task?: AiPromptItemTask;
@@ -49,7 +49,7 @@ export class LuzmoAiChat {
49
49
  hideSelectedDatasets;
50
50
  /** When true, disables @ trigger mentions for dataset fields in the input */
51
51
  disableColumnMentions;
52
- /** When true, at least one dataset must be selected before the prompt can be submitted */
52
+ /** When true, a picked agent or at least one selected dataset is required before the prompt can be submitted */
53
53
  requireDataset;
54
54
  /** Enables image attachments (PNG/JPEG/WebP/GIF). */
55
55
  allowImages;
@@ -61,7 +61,7 @@ export class LuzmoAiChat {
61
61
  uploadAttachments;
62
62
  /** Which aiprompt agent to use. Determines request payload and stream handling. With `agent-id` set it no longer shapes the request payload, only stream handling. */
63
63
  agent;
64
- /** Saved Agent id (UUID) to run the prompt as. */
64
+ /** Saved Agent id (UUID) to run the prompt as. An agent picked in the prompt box takes precedence for that prompt. */
65
65
  agentId;
66
66
  /** Task for the item agent (`generate`, `suggest`, `describe`). Ignored when `agent-id` is set. */
67
67
  task;
@@ -1,9 +1,8 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/ai-interaction-textarea';
3
- import type { LuzmoAiInteractionTextarea as LuzmoAiInteractionTextareaHostElement, PromptBoxFileIcons, PromptSubmittedEventDetail } from '@luzmo/analytics-components-kit/ai-interaction-textarea';
4
- import type { Dataset } from '@luzmo/analytics-components-kit/types';
3
+ import type { LuzmoAiInteractionTextarea as LuzmoAiInteractionTextareaHostElement, Agent, Dataset, PromptBoxFileIcons, PromptSubmittedEventDetail } from '@luzmo/analytics-components-kit/ai-interaction-textarea';
5
4
  import * as i0 from "@angular/core";
6
- export type { PromptBoxAttachment, PromptBoxFileIcons, PromptSubmittedEventDetail } from '@luzmo/analytics-components-kit/ai-interaction-textarea';
5
+ export type { Agent, Dataset, PromptBoxAttachment, PromptBoxFileIcons, PromptSubmittedEventDetail } from '@luzmo/analytics-components-kit/ai-interaction-textarea';
7
6
  export declare class LuzmoAiInteractionTextarea implements OnChanges {
8
7
  private readonly elementRef;
9
8
  private readonly renderer;
@@ -38,6 +37,8 @@ export declare class LuzmoAiInteractionTextarea implements OnChanges {
38
37
  hideDatasetIcons?: boolean;
39
38
  /** Maximum number of selected dataset tags shown before the overflow control. */
40
39
  maxVisibleSelectedDatasets?: number;
40
+ /** The saved Agent the prompt is scoped to, or null */
41
+ selectedAgent?: Agent | null;
41
42
  /** When true, disables the "+ Add dataset" button and disables dataset pill removal */
42
43
  disableDatasetModification?: boolean;
43
44
  /** When true, hides the dataset row entirely */
@@ -52,7 +53,7 @@ export declare class LuzmoAiInteractionTextarea implements OnChanges {
52
53
  value?: string;
53
54
  /** When true, retains the input value after submitting a prompt (default: false) When false (default), clears the textarea value after submission */
54
55
  retainOnSubmit?: boolean;
55
- /** When true, at least one dataset must be selected before the prompt can be submitted */
56
+ /** When true, a selected agent or at least one selected dataset is required before the prompt can be submitted */
56
57
  requireDataset?: boolean;
57
58
  /** When true, enables image attachments via paste or the file picker. */
58
59
  allowImages?: boolean;
@@ -81,7 +82,7 @@ export declare class LuzmoAiInteractionTextarea implements OnChanges {
81
82
  private setHostProperty;
82
83
  private bindEvents;
83
84
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiInteractionTextarea, never>;
84
- 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; }; "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>;
85
+ 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; }; "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>;
85
86
  static ngAcceptInputType_includePublicDatasets: unknown;
86
87
  static ngAcceptInputType_flagOpendata: unknown;
87
88
  static ngAcceptInputType_disabled: unknown;
@@ -41,6 +41,8 @@ export class LuzmoAiInteractionTextarea {
41
41
  hideDatasetIcons;
42
42
  /** Maximum number of selected dataset tags shown before the overflow control. */
43
43
  maxVisibleSelectedDatasets;
44
+ /** The saved Agent the prompt is scoped to, or null */
45
+ selectedAgent;
44
46
  /** When true, disables the "+ Add dataset" button and disables dataset pill removal */
45
47
  disableDatasetModification;
46
48
  /** When true, hides the dataset row entirely */
@@ -55,7 +57,7 @@ export class LuzmoAiInteractionTextarea {
55
57
  value;
56
58
  /** When true, retains the input value after submitting a prompt (default: false) When false (default), clears the textarea value after submission */
57
59
  retainOnSubmit;
58
- /** When true, at least one dataset must be selected before the prompt can be submitted */
60
+ /** When true, a selected agent or at least one selected dataset is required before the prompt can be submitted */
59
61
  requireDataset;
60
62
  /** When true, enables image attachments via paste or the file picker. */
61
63
  allowImages;
@@ -123,6 +125,9 @@ export class LuzmoAiInteractionTextarea {
123
125
  case 'maxVisibleSelectedDatasets':
124
126
  this.setHostProperty('maxVisibleSelectedDatasets', changes['maxVisibleSelectedDatasets'].currentValue);
125
127
  break;
128
+ case 'selectedAgent':
129
+ this.setHostProperty('selectedAgent', changes['selectedAgent'].currentValue);
130
+ break;
126
131
  case 'disableDatasetModification':
127
132
  this.setHostProperty('disableDatasetModification', changes['disableDatasetModification'].currentValue);
128
133
  break;
@@ -190,7 +195,7 @@ export class LuzmoAiInteractionTextarea {
190
195
  }));
191
196
  }
192
197
  static ɵfac = function LuzmoAiInteractionTextarea_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiInteractionTextarea)(); };
193
- 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", 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) {
198
+ 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", 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) {
194
199
  i0.ɵɵprojectionDef();
195
200
  i0.ɵɵprojection(0);
196
201
  } }, encapsulation: 2 });
@@ -243,6 +248,9 @@ export class LuzmoAiInteractionTextarea {
243
248
  }], maxVisibleSelectedDatasets: [{
244
249
  type: Input,
245
250
  args: [{ alias: 'maxVisibleSelectedDatasets' }]
251
+ }], selectedAgent: [{
252
+ type: Input,
253
+ args: [{ alias: 'selectedAgent' }]
246
254
  }], disableDatasetModification: [{
247
255
  type: Input,
248
256
  args: [{ alias: 'disableDatasetModification', transform: booleanAttribute }]
@@ -286,4 +294,4 @@ export class LuzmoAiInteractionTextarea {
286
294
  type: Input,
287
295
  args: [{ alias: 'fileIcons' }]
288
296
  }], promptSubmitted: [{ type: i0.Output, args: ["promptSubmitted"] }], promptStopped: [{ type: i0.Output, args: ["promptStopped"] }] }); })();
289
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAiInteractionTextarea, { className: "LuzmoAiInteractionTextarea", filePath: "components/ai-interaction-textarea.ts", lineNumber: 17 }); })();
297
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoAiInteractionTextarea, { className: "LuzmoAiInteractionTextarea", filePath: "components/ai-interaction-textarea.ts", lineNumber: 16 }); })();
@@ -1,8 +1,8 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import '@luzmo/analytics-components-kit/dataset-selector-row';
3
- import type { LuzmoDatasetSelectorRow as LuzmoDatasetSelectorRowHostElement, Dataset } from '@luzmo/analytics-components-kit/dataset-selector-row';
3
+ import type { LuzmoDatasetSelectorRow as LuzmoDatasetSelectorRowHostElement, Agent, Dataset } from '@luzmo/analytics-components-kit/dataset-selector-row';
4
4
  import * as i0 from "@angular/core";
5
- export type { Dataset } from '@luzmo/analytics-components-kit/dataset-selector-row';
5
+ export type { Agent, Dataset } from '@luzmo/analytics-components-kit/dataset-selector-row';
6
6
  export declare class LuzmoDatasetSelectorRow implements OnChanges {
7
7
  private readonly elementRef;
8
8
  private readonly renderer;
@@ -13,7 +13,9 @@ export declare class LuzmoDatasetSelectorRow implements OnChanges {
13
13
  get nativeElement(): LuzmoDatasetSelectorRowHostElement;
14
14
  /** Array of selected datasets */
15
15
  selectedDatasets?: Dataset[];
16
- /** Accessible label and hover tooltip text for the dataset search trigger */
16
+ /** The agent the chat is scoped to, or null */
17
+ selectedAgent?: Agent | null;
18
+ /** Accessible label and hover tooltip text for the search trigger */
17
19
  buttonLabel?: string;
18
20
  /** Auth key for DataBroker authentication */
19
21
  authKey?: string;
@@ -35,10 +37,14 @@ export declare class LuzmoDatasetSelectorRow implements OnChanges {
35
37
  hideDatasetIcons?: boolean;
36
38
  /** Maximum number of selected dataset tags shown before the overflow control; unset shows all tags. */
37
39
  maxVisibleSelectedDatasets?: number;
40
+ /** Fired when an agent is selected */
41
+ readonly luzmoAgentSelected: import("@angular/core").OutputEmitterRef<CustomEvent<Agent>>;
38
42
  /** Fired when a dataset is selected */
39
43
  readonly datasetSelected: import("@angular/core").OutputEmitterRef<CustomEvent<Dataset>>;
40
44
  /** Fired when a dataset is removed */
41
45
  readonly datasetRemoved: import("@angular/core").OutputEmitterRef<CustomEvent<Dataset>>;
46
+ /** Fired when the selected agent is removed */
47
+ readonly luzmoAgentRemoved: import("@angular/core").OutputEmitterRef<CustomEvent<Agent>>;
42
48
  constructor();
43
49
  ngOnChanges(changes: SimpleChanges): void;
44
50
  /**
@@ -50,7 +56,7 @@ export declare class LuzmoDatasetSelectorRow implements OnChanges {
50
56
  private setHostProperty;
51
57
  private bindEvents;
52
58
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDatasetSelectorRow, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDatasetSelectorRow, "luzmo-dataset-selector-row", ["luzmoDatasetSelectorRow"], { "selectedDatasets": { "alias": "selectedDatasets"; "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; }; }, { "datasetSelected": "datasetSelected"; "datasetRemoved": "datasetRemoved"; }, never, ["*"], true, never>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDatasetSelectorRow, "luzmo-dataset-selector-row", ["luzmoDatasetSelectorRow"], { "selectedDatasets": { "alias": "selectedDatasets"; "required": false; }; "selectedAgent": { "alias": "selectedAgent"; "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>;
54
60
  static ngAcceptInputType_includePublicDatasets: unknown;
55
61
  static ngAcceptInputType_flagOpendata: unknown;
56
62
  static ngAcceptInputType_disabled: unknown;
@@ -17,7 +17,9 @@ export class LuzmoDatasetSelectorRow {
17
17
  }
18
18
  /** Array of selected datasets */
19
19
  selectedDatasets;
20
- /** Accessible label and hover tooltip text for the dataset search trigger */
20
+ /** The agent the chat is scoped to, or null */
21
+ selectedAgent;
22
+ /** Accessible label and hover tooltip text for the search trigger */
21
23
  buttonLabel;
22
24
  /** Auth key for DataBroker authentication */
23
25
  authKey;
@@ -39,10 +41,14 @@ export class LuzmoDatasetSelectorRow {
39
41
  hideDatasetIcons;
40
42
  /** Maximum number of selected dataset tags shown before the overflow control; unset shows all tags. */
41
43
  maxVisibleSelectedDatasets;
44
+ /** Fired when an agent is selected */
45
+ luzmoAgentSelected = output({ alias: 'luzmoAgentSelected' });
42
46
  /** Fired when a dataset is selected */
43
47
  datasetSelected = output({ alias: 'datasetSelected' });
44
48
  /** Fired when a dataset is removed */
45
49
  datasetRemoved = output({ alias: 'datasetRemoved' });
50
+ /** Fired when the selected agent is removed */
51
+ luzmoAgentRemoved = output({ alias: 'luzmoAgentRemoved' });
46
52
  constructor() {
47
53
  this.bindEvents();
48
54
  this.destroyRef.onDestroy(() => {
@@ -57,6 +63,9 @@ export class LuzmoDatasetSelectorRow {
57
63
  case 'selectedDatasets':
58
64
  this.setHostProperty('selectedDatasets', changes['selectedDatasets'].currentValue);
59
65
  break;
66
+ case 'selectedAgent':
67
+ this.setHostProperty('selectedAgent', changes['selectedAgent'].currentValue);
68
+ break;
60
69
  case 'buttonLabel':
61
70
  this.setHostProperty('buttonLabel', changes['buttonLabel'].currentValue);
62
71
  break;
@@ -105,6 +114,10 @@ export class LuzmoDatasetSelectorRow {
105
114
  this.renderer.setProperty(this.host, key, value);
106
115
  }
107
116
  bindEvents() {
117
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-agent-selected', (event) => {
118
+ const typed = event;
119
+ this.luzmoAgentSelected.emit(typed);
120
+ }));
108
121
  this.listenerCleanup.push(this.renderer.listen(this.host, 'dataset-selected', (event) => {
109
122
  const typed = event;
110
123
  this.datasetSelected.emit(typed);
@@ -113,9 +126,13 @@ export class LuzmoDatasetSelectorRow {
113
126
  const typed = event;
114
127
  this.datasetRemoved.emit(typed);
115
128
  }));
129
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-agent-removed', (event) => {
130
+ const typed = event;
131
+ this.luzmoAgentRemoved.emit(typed);
132
+ }));
116
133
  }
117
134
  static ɵfac = function LuzmoDatasetSelectorRow_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDatasetSelectorRow)(); };
118
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDatasetSelectorRow, selectors: [["luzmo-dataset-selector-row"]], inputs: { selectedDatasets: "selectedDatasets", 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: { datasetSelected: "datasetSelected", datasetRemoved: "datasetRemoved" }, exportAs: ["luzmoDatasetSelectorRow"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDatasetSelectorRow_Template(rf, ctx) { if (rf & 1) {
135
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDatasetSelectorRow, selectors: [["luzmo-dataset-selector-row"]], inputs: { selectedDatasets: "selectedDatasets", selectedAgent: "selectedAgent", 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) {
119
136
  i0.ɵɵprojectionDef();
120
137
  i0.ɵɵprojection(0);
121
138
  } }, encapsulation: 2 });
@@ -132,6 +149,9 @@ export class LuzmoDatasetSelectorRow {
132
149
  }], () => [], { selectedDatasets: [{
133
150
  type: Input,
134
151
  args: [{ alias: 'selectedDatasets' }]
152
+ }], selectedAgent: [{
153
+ type: Input,
154
+ args: [{ alias: 'selectedAgent' }]
135
155
  }], buttonLabel: [{
136
156
  type: Input,
137
157
  args: [{ alias: 'buttonLabel' }]
@@ -165,5 +185,5 @@ export class LuzmoDatasetSelectorRow {
165
185
  }], maxVisibleSelectedDatasets: [{
166
186
  type: Input,
167
187
  args: [{ alias: 'maxVisibleSelectedDatasets' }]
168
- }], datasetSelected: [{ type: i0.Output, args: ["datasetSelected"] }], datasetRemoved: [{ type: i0.Output, args: ["datasetRemoved"] }] }); })();
188
+ }], luzmoAgentSelected: [{ type: i0.Output, args: ["luzmoAgentSelected"] }], datasetSelected: [{ type: i0.Output, args: ["datasetSelected"] }], datasetRemoved: [{ type: i0.Output, args: ["datasetRemoved"] }], luzmoAgentRemoved: [{ type: i0.Output, args: ["luzmoAgentRemoved"] }] }); })();
169
189
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoDatasetSelectorRow, { className: "LuzmoDatasetSelectorRow", filePath: "components/dataset-selector-row.ts", lineNumber: 16 }); })();
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.8-beta.3"
32
+ "@luzmo/analytics-components-kit": "1.0.8-beta.4"
33
33
  },
34
- "version": "1.0.8-beta.3",
34
+ "version": "1.0.8-beta.4",
35
35
  "peerDependenciesMeta": {
36
36
  "@angular/forms": {
37
37
  "optional": true