@luzmo/ngx-analytics-components-kit 1.0.7 → 1.0.8-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/ai-interaction-textarea.d.ts +3 -1
- package/esm/components/ai-interaction-textarea.js +9 -1
- package/esm/components/dataset-selector-row.d.ts +6 -1
- package/esm/components/dataset-selector-row.js +17 -1
- package/esm/components/item-option-guidelines.d.ts +34 -0
- package/esm/components/item-option-guidelines.js +83 -0
- package/esm/index.d.ts +4 -2
- package/esm/index.js +4 -0
- package/package.json +2 -2
|
@@ -34,6 +34,8 @@ export declare class LuzmoAiInteractionTextarea implements OnChanges {
|
|
|
34
34
|
hideDatasetButton?: boolean;
|
|
35
35
|
/** When true, hides dataset-specific icons in selector tags and @ mention dataset headers */
|
|
36
36
|
hideDatasetIcons?: boolean;
|
|
37
|
+
/** Maximum number of selected dataset tags shown before the overflow control. */
|
|
38
|
+
maxVisibleSelectedDatasets?: number;
|
|
37
39
|
/** When true, disables the "+ Add dataset" button and disables dataset pill removal */
|
|
38
40
|
disableDatasetModification?: boolean;
|
|
39
41
|
/** When true, hides the dataset row entirely */
|
|
@@ -77,7 +79,7 @@ export declare class LuzmoAiInteractionTextarea implements OnChanges {
|
|
|
77
79
|
private setHostProperty;
|
|
78
80
|
private bindEvents;
|
|
79
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoAiInteractionTextarea, never>;
|
|
80
|
-
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; }; "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; }; "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>;
|
|
82
|
+
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; }; "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>;
|
|
81
83
|
static ngAcceptInputType_flagOpendata: unknown;
|
|
82
84
|
static ngAcceptInputType_disabled: unknown;
|
|
83
85
|
static ngAcceptInputType_singleLine: unknown;
|
|
@@ -37,6 +37,8 @@ export class LuzmoAiInteractionTextarea {
|
|
|
37
37
|
hideDatasetButton;
|
|
38
38
|
/** When true, hides dataset-specific icons in selector tags and @ mention dataset headers */
|
|
39
39
|
hideDatasetIcons;
|
|
40
|
+
/** Maximum number of selected dataset tags shown before the overflow control. */
|
|
41
|
+
maxVisibleSelectedDatasets;
|
|
40
42
|
/** When true, disables the "+ Add dataset" button and disables dataset pill removal */
|
|
41
43
|
disableDatasetModification;
|
|
42
44
|
/** When true, hides the dataset row entirely */
|
|
@@ -113,6 +115,9 @@ export class LuzmoAiInteractionTextarea {
|
|
|
113
115
|
case 'hideDatasetIcons':
|
|
114
116
|
this.setHostProperty('hideDatasetIcons', changes['hideDatasetIcons'].currentValue);
|
|
115
117
|
break;
|
|
118
|
+
case 'maxVisibleSelectedDatasets':
|
|
119
|
+
this.setHostProperty('maxVisibleSelectedDatasets', changes['maxVisibleSelectedDatasets'].currentValue);
|
|
120
|
+
break;
|
|
116
121
|
case 'disableDatasetModification':
|
|
117
122
|
this.setHostProperty('disableDatasetModification', changes['disableDatasetModification'].currentValue);
|
|
118
123
|
break;
|
|
@@ -180,7 +185,7 @@ export class LuzmoAiInteractionTextarea {
|
|
|
180
185
|
}));
|
|
181
186
|
}
|
|
182
187
|
static ɵfac = function LuzmoAiInteractionTextarea_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoAiInteractionTextarea)(); };
|
|
183
|
-
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", 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], 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) {
|
|
188
|
+
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", 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) {
|
|
184
189
|
i0.ɵɵprojectionDef();
|
|
185
190
|
i0.ɵɵprojection(0);
|
|
186
191
|
} }, encapsulation: 2 });
|
|
@@ -227,6 +232,9 @@ export class LuzmoAiInteractionTextarea {
|
|
|
227
232
|
}], hideDatasetIcons: [{
|
|
228
233
|
type: Input,
|
|
229
234
|
args: [{ alias: 'hideDatasetIcons', transform: booleanAttribute }]
|
|
235
|
+
}], maxVisibleSelectedDatasets: [{
|
|
236
|
+
type: Input,
|
|
237
|
+
args: [{ alias: 'maxVisibleSelectedDatasets' }]
|
|
230
238
|
}], disableDatasetModification: [{
|
|
231
239
|
type: Input,
|
|
232
240
|
args: [{ alias: 'disableDatasetModification', transform: booleanAttribute }]
|
|
@@ -27,8 +27,12 @@ export declare class LuzmoDatasetSelectorRow implements OnChanges {
|
|
|
27
27
|
flagOpendata?: boolean;
|
|
28
28
|
/** When true, disables all interactions: disables the add button, removes dataset pill delete buttons, and makes tags non-interactive */
|
|
29
29
|
disabled?: boolean;
|
|
30
|
+
/** When true, disables dataset search and removal while leaving informational controls interactive. */
|
|
31
|
+
disableDatasetModification?: boolean;
|
|
30
32
|
/** When true, hides dataset icons in selected tags and search options */
|
|
31
33
|
hideDatasetIcons?: boolean;
|
|
34
|
+
/** Maximum number of selected dataset tags shown before the overflow control; unset shows all tags. */
|
|
35
|
+
maxVisibleSelectedDatasets?: number;
|
|
32
36
|
/** Fired when a dataset is selected */
|
|
33
37
|
readonly datasetSelected: import("@angular/core").OutputEmitterRef<CustomEvent<Dataset>>;
|
|
34
38
|
/** Fired when a dataset is removed */
|
|
@@ -44,9 +48,10 @@ export declare class LuzmoDatasetSelectorRow implements OnChanges {
|
|
|
44
48
|
private setHostProperty;
|
|
45
49
|
private bindEvents;
|
|
46
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDatasetSelectorRow, never>;
|
|
47
|
-
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; }; "flagOpendata": { "alias": "flagOpendata"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hideDatasetIcons": { "alias": "hideDatasetIcons"; "required": false; }; }, { "datasetSelected": "datasetSelected"; "datasetRemoved": "datasetRemoved"; }, never, ["*"], true, never>;
|
|
51
|
+
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; }; "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>;
|
|
48
52
|
static ngAcceptInputType_flagOpendata: unknown;
|
|
49
53
|
static ngAcceptInputType_disabled: unknown;
|
|
54
|
+
static ngAcceptInputType_disableDatasetModification: unknown;
|
|
50
55
|
static ngAcceptInputType_hideDatasetIcons: unknown;
|
|
51
56
|
}
|
|
52
57
|
/** The underlying custom element type for LuzmoDatasetSelectorRow */
|
|
@@ -31,8 +31,12 @@ export class LuzmoDatasetSelectorRow {
|
|
|
31
31
|
flagOpendata;
|
|
32
32
|
/** When true, disables all interactions: disables the add button, removes dataset pill delete buttons, and makes tags non-interactive */
|
|
33
33
|
disabled;
|
|
34
|
+
/** When true, disables dataset search and removal while leaving informational controls interactive. */
|
|
35
|
+
disableDatasetModification;
|
|
34
36
|
/** When true, hides dataset icons in selected tags and search options */
|
|
35
37
|
hideDatasetIcons;
|
|
38
|
+
/** Maximum number of selected dataset tags shown before the overflow control; unset shows all tags. */
|
|
39
|
+
maxVisibleSelectedDatasets;
|
|
36
40
|
/** Fired when a dataset is selected */
|
|
37
41
|
datasetSelected = output({ alias: 'datasetSelected' });
|
|
38
42
|
/** Fired when a dataset is removed */
|
|
@@ -72,9 +76,15 @@ export class LuzmoDatasetSelectorRow {
|
|
|
72
76
|
case 'disabled':
|
|
73
77
|
this.setHostProperty('disabled', changes['disabled'].currentValue);
|
|
74
78
|
break;
|
|
79
|
+
case 'disableDatasetModification':
|
|
80
|
+
this.setHostProperty('disableDatasetModification', changes['disableDatasetModification'].currentValue);
|
|
81
|
+
break;
|
|
75
82
|
case 'hideDatasetIcons':
|
|
76
83
|
this.setHostProperty('hideDatasetIcons', changes['hideDatasetIcons'].currentValue);
|
|
77
84
|
break;
|
|
85
|
+
case 'maxVisibleSelectedDatasets':
|
|
86
|
+
this.setHostProperty('maxVisibleSelectedDatasets', changes['maxVisibleSelectedDatasets'].currentValue);
|
|
87
|
+
break;
|
|
78
88
|
default:
|
|
79
89
|
break;
|
|
80
90
|
}
|
|
@@ -100,7 +110,7 @@ export class LuzmoDatasetSelectorRow {
|
|
|
100
110
|
}));
|
|
101
111
|
}
|
|
102
112
|
static ɵfac = function LuzmoDatasetSelectorRow_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDatasetSelectorRow)(); };
|
|
103
|
-
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", flagOpendata: [2, "flagOpendata", "flagOpendata", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], hideDatasetIcons: [2, "hideDatasetIcons", "hideDatasetIcons", booleanAttribute] }, 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) {
|
|
113
|
+
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", 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) {
|
|
104
114
|
i0.ɵɵprojectionDef();
|
|
105
115
|
i0.ɵɵprojection(0);
|
|
106
116
|
} }, encapsulation: 2 });
|
|
@@ -138,8 +148,14 @@ export class LuzmoDatasetSelectorRow {
|
|
|
138
148
|
}], disabled: [{
|
|
139
149
|
type: Input,
|
|
140
150
|
args: [{ alias: 'disabled', transform: booleanAttribute }]
|
|
151
|
+
}], disableDatasetModification: [{
|
|
152
|
+
type: Input,
|
|
153
|
+
args: [{ alias: 'disableDatasetModification', transform: booleanAttribute }]
|
|
141
154
|
}], hideDatasetIcons: [{
|
|
142
155
|
type: Input,
|
|
143
156
|
args: [{ alias: 'hideDatasetIcons', transform: booleanAttribute }]
|
|
157
|
+
}], maxVisibleSelectedDatasets: [{
|
|
158
|
+
type: Input,
|
|
159
|
+
args: [{ alias: 'maxVisibleSelectedDatasets' }]
|
|
144
160
|
}], datasetSelected: [{ type: i0.Output, args: ["datasetSelected"] }], datasetRemoved: [{ type: i0.Output, args: ["datasetRemoved"] }] }); })();
|
|
145
161
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoDatasetSelectorRow, { className: "LuzmoDatasetSelectorRow", filePath: "components/dataset-selector-row.ts", lineNumber: 16 }); })();
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-option-guidelines';
|
|
3
|
+
import type { LuzmoItemOptionGuidelines as LuzmoItemOptionGuidelinesHostElement, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-guidelines';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type { GuidelineLine, GuidelineLineType, GuidelineStyle, GuidelineStyleType, GuidelineWidth, Guidelines, ItemOptionChangedEventDetail } from '@luzmo/analytics-components-kit/item-option-guidelines';
|
|
6
|
+
export declare class LuzmoItemOptionGuidelines 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(): LuzmoItemOptionGuidelinesHostElement;
|
|
14
|
+
/** Default color used when adding a guideline. */
|
|
15
|
+
defaultColor?: string;
|
|
16
|
+
/** Delay in milliseconds before color and number changes are emitted. */
|
|
17
|
+
debounce?: number;
|
|
18
|
+
/** Emitted when the guidelines value changes. */
|
|
19
|
+
readonly luzmoOptionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<ItemOptionChangedEventDetail>>;
|
|
20
|
+
constructor();
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
+
/**
|
|
23
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
24
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
25
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
26
|
+
* undefined / null by clearing their bindings.
|
|
27
|
+
*/
|
|
28
|
+
private setHostProperty;
|
|
29
|
+
private bindEvents;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemOptionGuidelines, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemOptionGuidelines, "luzmo-item-option-guidelines", ["luzmoItemOptionGuidelines"], { "defaultColor": { "alias": "defaultColor"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; }, { "luzmoOptionChanged": "luzmoOptionChanged"; }, never, ["*"], true, never>;
|
|
32
|
+
}
|
|
33
|
+
/** The underlying custom element type for LuzmoItemOptionGuidelines */
|
|
34
|
+
export type LuzmoItemOptionGuidelinesElement = LuzmoItemOptionGuidelinesHostElement;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-option-guidelines';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-item-option-guidelines>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoItemOptionGuidelines {
|
|
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
|
+
/** Default color used when adding a guideline. */
|
|
19
|
+
defaultColor;
|
|
20
|
+
/** Delay in milliseconds before color and number changes are emitted. */
|
|
21
|
+
debounce;
|
|
22
|
+
/** Emitted when the guidelines value changes. */
|
|
23
|
+
luzmoOptionChanged = output({ alias: 'luzmoOptionChanged' });
|
|
24
|
+
constructor() {
|
|
25
|
+
this.bindEvents();
|
|
26
|
+
this.destroyRef.onDestroy(() => {
|
|
27
|
+
for (const cleanup of this.listenerCleanup) {
|
|
28
|
+
cleanup();
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
ngOnChanges(changes) {
|
|
33
|
+
for (const key of Object.keys(changes)) {
|
|
34
|
+
switch (key) {
|
|
35
|
+
case 'defaultColor':
|
|
36
|
+
this.setHostProperty('defaultColor', changes['defaultColor'].currentValue);
|
|
37
|
+
break;
|
|
38
|
+
case 'debounce':
|
|
39
|
+
this.setHostProperty('debounce', changes['debounce'].currentValue);
|
|
40
|
+
break;
|
|
41
|
+
default:
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
48
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
49
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
50
|
+
* undefined / null by clearing their bindings.
|
|
51
|
+
*/
|
|
52
|
+
setHostProperty(key, value) {
|
|
53
|
+
this.renderer.setProperty(this.host, key, value);
|
|
54
|
+
}
|
|
55
|
+
bindEvents() {
|
|
56
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-option-changed', (event) => {
|
|
57
|
+
const typed = event;
|
|
58
|
+
this.luzmoOptionChanged.emit(typed);
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
61
|
+
static ɵfac = function LuzmoItemOptionGuidelines_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemOptionGuidelines)(); };
|
|
62
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemOptionGuidelines, selectors: [["luzmo-item-option-guidelines"]], inputs: { defaultColor: "defaultColor", debounce: "debounce" }, outputs: { luzmoOptionChanged: "luzmoOptionChanged" }, exportAs: ["luzmoItemOptionGuidelines"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemOptionGuidelines_Template(rf, ctx) { if (rf & 1) {
|
|
63
|
+
i0.ɵɵprojectionDef();
|
|
64
|
+
i0.ɵɵprojection(0);
|
|
65
|
+
} }, encapsulation: 2 });
|
|
66
|
+
}
|
|
67
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoItemOptionGuidelines, [{
|
|
68
|
+
type: Component,
|
|
69
|
+
args: [{
|
|
70
|
+
selector: 'luzmo-item-option-guidelines',
|
|
71
|
+
exportAs: 'luzmoItemOptionGuidelines',
|
|
72
|
+
standalone: true,
|
|
73
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
74
|
+
template: '<ng-content />'
|
|
75
|
+
}]
|
|
76
|
+
}], () => [], { defaultColor: [{
|
|
77
|
+
type: Input,
|
|
78
|
+
args: [{ alias: 'defaultColor' }]
|
|
79
|
+
}], debounce: [{
|
|
80
|
+
type: Input,
|
|
81
|
+
args: [{ alias: 'debounce' }]
|
|
82
|
+
}], luzmoOptionChanged: [{ type: i0.Output, args: ["luzmoOptionChanged"] }] }); })();
|
|
83
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoItemOptionGuidelines, { className: "LuzmoItemOptionGuidelines", filePath: "components/item-option-guidelines.ts", lineNumber: 16 }); })();
|
package/esm/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { LuzmoItemOptionActionButtonGroup } from './components/item-option-actio
|
|
|
33
33
|
import { LuzmoItemOptionColorPalettePicker } from './components/item-option-color-palette-picker.js';
|
|
34
34
|
import { LuzmoItemOptionColorPicker } from './components/item-option-color-picker.js';
|
|
35
35
|
import { LuzmoItemOptionColorRange } from './components/item-option-color-range.js';
|
|
36
|
+
import { LuzmoItemOptionGuidelines } from './components/item-option-guidelines.js';
|
|
36
37
|
import { LuzmoItemOptionMultiLanguageField } from './components/item-option-multi-language-field.js';
|
|
37
38
|
import { LuzmoItemOptionNumberField } from './components/item-option-number-field.js';
|
|
38
39
|
import { LuzmoItemOptionPanel } from './components/item-option-panel.js';
|
|
@@ -85,6 +86,7 @@ export { LuzmoItemOptionActionButtonGroup, type LuzmoItemOptionActionButtonGroup
|
|
|
85
86
|
export { LuzmoItemOptionColorPalettePicker, type LuzmoItemOptionColorPalettePickerElement } from './components/item-option-color-palette-picker.js';
|
|
86
87
|
export { LuzmoItemOptionColorPicker, type LuzmoItemOptionColorPickerElement } from './components/item-option-color-picker.js';
|
|
87
88
|
export { LuzmoItemOptionColorRange, type LuzmoItemOptionColorRangeElement } from './components/item-option-color-range.js';
|
|
89
|
+
export { LuzmoItemOptionGuidelines, type LuzmoItemOptionGuidelinesElement } from './components/item-option-guidelines.js';
|
|
88
90
|
export { LuzmoItemOptionMultiLanguageField, type LuzmoItemOptionMultiLanguageFieldElement } from './components/item-option-multi-language-field.js';
|
|
89
91
|
export { LuzmoItemOptionNumberField, type LuzmoItemOptionNumberFieldElement } from './components/item-option-number-field.js';
|
|
90
92
|
export { LuzmoItemOptionPanel, type LuzmoItemOptionPanelElement } from './components/item-option-panel.js';
|
|
@@ -102,6 +104,6 @@ export { LuzmoItemSlotPickerPanel, type LuzmoItemSlotPickerPanelElement } from '
|
|
|
102
104
|
export { LuzmoSlotMenu, type LuzmoSlotMenuElement } from './components/slot-menu.js';
|
|
103
105
|
export { LuzmoSlotMenuList, type LuzmoSlotMenuListElement } from './components/slot-menu-list.js';
|
|
104
106
|
export { LuzmoVizItemMenu, type LuzmoVizItemMenuElement } from './components/viz-item-menu.js';
|
|
105
|
-
export declare const LUZMO_ANGULAR_COMPONENTS: readonly [typeof LuzmoAiChat, typeof LuzmoAiChatEmptyState, typeof LuzmoAiInteractionTextarea, typeof LuzmoDataField, typeof LuzmoDataFieldLevel, typeof LuzmoDataFieldPanel, typeof LuzmoDataFieldsSelect, typeof LuzmoDatasetIcon, typeof LuzmoDatasetSelectorList, typeof LuzmoDatasetSelectorRow, typeof LuzmoDisplaySettings, typeof LuzmoDisplaySettingsBinning, typeof LuzmoDisplaySettingsDatetime, typeof LuzmoDisplaySettingsGrandTotals, typeof LuzmoDisplaySettingsNumeric, typeof LuzmoDisplaySettingsPeriodOverPeriod, typeof LuzmoFilterExpressionPicker, typeof LuzmoFilterItem, typeof LuzmoFilterParameterPicker, typeof LuzmoFilterValuePicker, typeof LuzmoFilterValuePickerDatetime, typeof LuzmoFilterValuePickerHierarchy, typeof LuzmoFilterValuePickerNumeric, typeof LuzmoFilters, typeof LuzmoFormula, typeof LuzmoFormulaEditor, typeof LuzmoFormulaField, typeof LuzmoInteractiveVizItem, typeof LuzmoItemGrid, typeof LuzmoItemGridItemActionsMenu, typeof LuzmoItemOption, typeof LuzmoItemOptionActionButtonGroup, typeof LuzmoItemOptionColorPalettePicker, typeof LuzmoItemOptionColorPicker, typeof LuzmoItemOptionColorRange, typeof LuzmoItemOptionMultiLanguageField, typeof LuzmoItemOptionNumberField, typeof LuzmoItemOptionPanel, typeof LuzmoItemOptionPicker, typeof LuzmoItemOptionPositionPicker, typeof LuzmoItemOptionPositionsNumberField, typeof LuzmoItemOptionRadioButtonGroup, typeof LuzmoItemOptionSlider, typeof LuzmoItemOptionSwitch, typeof LuzmoItemOptionTextField, typeof LuzmoItemSlotDrop, typeof LuzmoItemSlotDropPanel, typeof LuzmoItemSlotPicker, typeof LuzmoItemSlotPickerPanel, typeof LuzmoSlotMenu, typeof LuzmoSlotMenuList, typeof LuzmoVizItemMenu];
|
|
106
|
-
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", "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 LuzmoAiChat, typeof LuzmoAiChatEmptyState, typeof LuzmoAiInteractionTextarea, typeof LuzmoDataField, typeof LuzmoDataFieldLevel, typeof LuzmoDataFieldPanel, typeof LuzmoDataFieldsSelect, typeof LuzmoDatasetIcon, typeof LuzmoDatasetSelectorList, typeof LuzmoDatasetSelectorRow, typeof LuzmoDisplaySettings, typeof LuzmoDisplaySettingsBinning, typeof LuzmoDisplaySettingsDatetime, typeof LuzmoDisplaySettingsGrandTotals, typeof LuzmoDisplaySettingsNumeric, typeof LuzmoDisplaySettingsPeriodOverPeriod, typeof LuzmoFilterExpressionPicker, typeof LuzmoFilterItem, typeof LuzmoFilterParameterPicker, typeof LuzmoFilterValuePicker, typeof LuzmoFilterValuePickerDatetime, typeof LuzmoFilterValuePickerHierarchy, typeof LuzmoFilterValuePickerNumeric, typeof LuzmoFilters, typeof LuzmoFormula, typeof LuzmoFormulaEditor, typeof LuzmoFormulaField, typeof LuzmoInteractiveVizItem, typeof LuzmoItemGrid, typeof LuzmoItemGridItemActionsMenu, typeof LuzmoItemOption, typeof LuzmoItemOptionActionButtonGroup, typeof LuzmoItemOptionColorPalettePicker, typeof LuzmoItemOptionColorPicker, typeof LuzmoItemOptionColorRange, typeof LuzmoItemOptionGuidelines, typeof LuzmoItemOptionMultiLanguageField, typeof LuzmoItemOptionNumberField, typeof LuzmoItemOptionPanel, typeof LuzmoItemOptionPicker, typeof LuzmoItemOptionPositionPicker, typeof LuzmoItemOptionPositionsNumberField, typeof LuzmoItemOptionRadioButtonGroup, typeof LuzmoItemOptionSlider, typeof LuzmoItemOptionSwitch, typeof LuzmoItemOptionTextField, typeof LuzmoItemSlotDrop, typeof LuzmoItemSlotDropPanel, typeof LuzmoItemSlotPicker, typeof LuzmoItemSlotPickerPanel, typeof LuzmoSlotMenu, typeof LuzmoSlotMenuList, typeof LuzmoVizItemMenu];
|
|
108
|
+
export declare const LUZMO_ANGULAR_COMPONENT_NAMES: readonly ["LuzmoAiChat", "LuzmoAiChatEmptyState", "LuzmoAiInteractionTextarea", "LuzmoDataField", "LuzmoDataFieldLevel", "LuzmoDataFieldPanel", "LuzmoDataFieldsSelect", "LuzmoDatasetIcon", "LuzmoDatasetSelectorList", "LuzmoDatasetSelectorRow", "LuzmoDisplaySettings", "LuzmoDisplaySettingsBinning", "LuzmoDisplaySettingsDatetime", "LuzmoDisplaySettingsGrandTotals", "LuzmoDisplaySettingsNumeric", "LuzmoDisplaySettingsPeriodOverPeriod", "LuzmoFilterExpressionPicker", "LuzmoFilterItem", "LuzmoFilterParameterPicker", "LuzmoFilterValuePicker", "LuzmoFilterValuePickerDatetime", "LuzmoFilterValuePickerHierarchy", "LuzmoFilterValuePickerNumeric", "LuzmoFilters", "LuzmoFormula", "LuzmoFormulaEditor", "LuzmoFormulaField", "LuzmoInteractiveVizItem", "LuzmoItemGrid", "LuzmoItemGridItemActionsMenu", "LuzmoItemOption", "LuzmoItemOptionActionButtonGroup", "LuzmoItemOptionColorPalettePicker", "LuzmoItemOptionColorPicker", "LuzmoItemOptionColorRange", "LuzmoItemOptionGuidelines", "LuzmoItemOptionMultiLanguageField", "LuzmoItemOptionNumberField", "LuzmoItemOptionPanel", "LuzmoItemOptionPicker", "LuzmoItemOptionPositionPicker", "LuzmoItemOptionPositionsNumberField", "LuzmoItemOptionRadioButtonGroup", "LuzmoItemOptionSlider", "LuzmoItemOptionSwitch", "LuzmoItemOptionTextField", "LuzmoItemSlotDrop", "LuzmoItemSlotDropPanel", "LuzmoItemSlotPicker", "LuzmoItemSlotPickerPanel", "LuzmoSlotMenu", "LuzmoSlotMenuList", "LuzmoVizItemMenu"];
|
|
107
109
|
export type LuzmoAngularComponentName = (typeof LUZMO_ANGULAR_COMPONENT_NAMES)[number];
|
package/esm/index.js
CHANGED
|
@@ -34,6 +34,7 @@ import { LuzmoItemOptionActionButtonGroup } from './components/item-option-actio
|
|
|
34
34
|
import { LuzmoItemOptionColorPalettePicker } from './components/item-option-color-palette-picker.js';
|
|
35
35
|
import { LuzmoItemOptionColorPicker } from './components/item-option-color-picker.js';
|
|
36
36
|
import { LuzmoItemOptionColorRange } from './components/item-option-color-range.js';
|
|
37
|
+
import { LuzmoItemOptionGuidelines } from './components/item-option-guidelines.js';
|
|
37
38
|
import { LuzmoItemOptionMultiLanguageField } from './components/item-option-multi-language-field.js';
|
|
38
39
|
import { LuzmoItemOptionNumberField } from './components/item-option-number-field.js';
|
|
39
40
|
import { LuzmoItemOptionPanel } from './components/item-option-panel.js';
|
|
@@ -86,6 +87,7 @@ export { LuzmoItemOptionActionButtonGroup } from './components/item-option-actio
|
|
|
86
87
|
export { LuzmoItemOptionColorPalettePicker } from './components/item-option-color-palette-picker.js';
|
|
87
88
|
export { LuzmoItemOptionColorPicker } from './components/item-option-color-picker.js';
|
|
88
89
|
export { LuzmoItemOptionColorRange } from './components/item-option-color-range.js';
|
|
90
|
+
export { LuzmoItemOptionGuidelines } from './components/item-option-guidelines.js';
|
|
89
91
|
export { LuzmoItemOptionMultiLanguageField } from './components/item-option-multi-language-field.js';
|
|
90
92
|
export { LuzmoItemOptionNumberField } from './components/item-option-number-field.js';
|
|
91
93
|
export { LuzmoItemOptionPanel } from './components/item-option-panel.js';
|
|
@@ -139,6 +141,7 @@ export const LUZMO_ANGULAR_COMPONENTS = [
|
|
|
139
141
|
LuzmoItemOptionColorPalettePicker,
|
|
140
142
|
LuzmoItemOptionColorPicker,
|
|
141
143
|
LuzmoItemOptionColorRange,
|
|
144
|
+
LuzmoItemOptionGuidelines,
|
|
142
145
|
LuzmoItemOptionMultiLanguageField,
|
|
143
146
|
LuzmoItemOptionNumberField,
|
|
144
147
|
LuzmoItemOptionPanel,
|
|
@@ -193,6 +196,7 @@ export const LUZMO_ANGULAR_COMPONENT_NAMES = [
|
|
|
193
196
|
'LuzmoItemOptionColorPalettePicker',
|
|
194
197
|
'LuzmoItemOptionColorPicker',
|
|
195
198
|
'LuzmoItemOptionColorRange',
|
|
199
|
+
'LuzmoItemOptionGuidelines',
|
|
196
200
|
'LuzmoItemOptionMultiLanguageField',
|
|
197
201
|
'LuzmoItemOptionNumberField',
|
|
198
202
|
'LuzmoItemOptionPanel',
|
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.
|
|
32
|
+
"@luzmo/analytics-components-kit": "1.0.8-beta.1"
|
|
33
33
|
},
|
|
34
|
-
"version": "1.0.
|
|
34
|
+
"version": "1.0.8-beta.1",
|
|
35
35
|
"peerDependenciesMeta": {
|
|
36
36
|
"@angular/forms": {
|
|
37
37
|
"optional": true
|