@luzmo/ngx-analytics-components-kit 1.0.8-beta.7 → 1.0.8
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/data-field-panel.d.ts +4 -4
- package/esm/components/data-field.d.ts +4 -4
- package/esm/components/formula-editor.d.ts +0 -1
- package/esm/components/formula-editor.js +1 -1
- package/esm/components/item-slot-drop.d.ts +5 -5
- package/esm/index.d.ts +2 -54
- package/esm/index.js +2 -106
- package/package.json +2 -2
- package/esm/components/ai-chat-empty-state.d.ts +0 -39
- package/esm/components/ai-chat-empty-state.js +0 -99
- package/esm/components/ai-chat.d.ts +0 -147
- package/esm/components/ai-chat.js +0 -455
- package/esm/components/ai-interaction-textarea.d.ts +0 -106
- package/esm/components/ai-interaction-textarea.js +0 -305
- package/esm/components/data-field-level.d.ts +0 -50
- package/esm/components/data-field-level.js +0 -129
- package/esm/components/data-fields-select.d.ts +0 -81
- package/esm/components/data-fields-select.js +0 -227
- package/esm/components/dataset-icon.d.ts +0 -34
- package/esm/components/dataset-icon.js +0 -86
- package/esm/components/dataset-selector-list.d.ts +0 -56
- package/esm/components/dataset-selector-list.js +0 -155
- package/esm/components/dataset-selector-row.d.ts +0 -70
- package/esm/components/dataset-selector-row.js +0 -197
- package/esm/components/display-settings-binning.d.ts +0 -37
- package/esm/components/display-settings-binning.js +0 -91
- package/esm/components/display-settings-datetime.d.ts +0 -40
- package/esm/components/display-settings-datetime.js +0 -99
- package/esm/components/display-settings-grand-totals.d.ts +0 -37
- package/esm/components/display-settings-grand-totals.js +0 -91
- package/esm/components/display-settings-numeric.d.ts +0 -45
- package/esm/components/display-settings-numeric.js +0 -115
- package/esm/components/display-settings-period-over-period.d.ts +0 -44
- package/esm/components/display-settings-period-over-period.js +0 -107
- package/esm/components/display-settings.d.ts +0 -83
- package/esm/components/display-settings.js +0 -231
- package/esm/components/filter-expression-picker.d.ts +0 -64
- package/esm/components/filter-expression-picker.js +0 -179
- package/esm/components/filter-item.d.ts +0 -63
- package/esm/components/filter-item.js +0 -187
- package/esm/components/filter-parameter-picker.d.ts +0 -56
- package/esm/components/filter-parameter-picker.js +0 -151
- package/esm/components/filter-value-picker-datetime.d.ts +0 -47
- package/esm/components/filter-value-picker-datetime.js +0 -131
- package/esm/components/filter-value-picker-hierarchy.d.ts +0 -53
- package/esm/components/filter-value-picker-hierarchy.js +0 -155
- package/esm/components/filter-value-picker-numeric.d.ts +0 -53
- package/esm/components/filter-value-picker-numeric.js +0 -155
- package/esm/components/filter-value-picker.d.ts +0 -57
- package/esm/components/filter-value-picker.js +0 -171
- package/esm/components/formula-field.d.ts +0 -70
- package/esm/components/formula-field.js +0 -209
- package/esm/components/interactive-viz-item.d.ts +0 -63
- package/esm/components/interactive-viz-item.js +0 -188
- package/esm/components/slot-menu-list.d.ts +0 -46
- package/esm/components/slot-menu-list.js +0 -123
- package/esm/components/slot-menu.d.ts +0 -104
- package/esm/components/slot-menu.js +0 -300
- package/esm/components/viz-item-menu.d.ts +0 -42
- package/esm/components/viz-item-menu.js +0 -111
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import '@luzmo/analytics-components-kit/formula-field';
|
|
3
|
-
import type { LuzmoFormulaField as LuzmoFormulaFieldHostElement } from '@luzmo/analytics-components-kit/formula-field';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LuzmoFormulaField implements OnChanges {
|
|
6
|
-
private readonly elementRef;
|
|
7
|
-
private readonly renderer;
|
|
8
|
-
private readonly destroyRef;
|
|
9
|
-
private readonly host;
|
|
10
|
-
private readonly listenerCleanup;
|
|
11
|
-
/** The underlying custom element instance. Use to call imperative methods. */
|
|
12
|
-
get nativeElement(): LuzmoFormulaFieldHostElement;
|
|
13
|
-
/** Renders the field display-only (no editing). */
|
|
14
|
-
readonly?: boolean;
|
|
15
|
-
/** Placeholder text shown in the editable input when the expression is empty. */
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
/** Number of text lines the input is sized to start with. Defaults to 3. */
|
|
18
|
-
rows?: number;
|
|
19
|
-
/** Maximum number of text lines before a scrollbar appears (only when `grows`). */
|
|
20
|
-
maxRows?: number;
|
|
21
|
-
/** Whether the input grows in height with its content (up to `maxRows` if set). */
|
|
22
|
-
grows?: boolean;
|
|
23
|
-
/** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
|
|
24
|
-
language?: string;
|
|
25
|
-
/** The formula expression (function syntax), e.g. `SUM({datasetId:columnId})`. */
|
|
26
|
-
expression?: string;
|
|
27
|
-
/** Datasets and their data fields, provided directly (takes preference over `datasetIds`). */
|
|
28
|
-
datasetsDataFields?: unknown;
|
|
29
|
-
/** Dataset ids to fetch from the Luzmo API (auth attributes optional for public datasets). */
|
|
30
|
-
datasetIds?: string[];
|
|
31
|
-
/** Base URL of the Luzmo API used to fetch datasets by id. */
|
|
32
|
-
apiUrl?: string;
|
|
33
|
-
/** Luzmo API authorization key, used with `authToken` to fetch datasets by id. */
|
|
34
|
-
authKey?: string;
|
|
35
|
-
/** Luzmo API authorization token, used with `authKey` to fetch datasets by id. */
|
|
36
|
-
authToken?: string;
|
|
37
|
-
/** Whether aggregation functions are offered (in the autocompletion, and - for the editor - via the aggregations list and pills). Defaults to `true`. Note: as a boolean attribute defaulting to `true` it cannot be turned off via markup (an absent attribute keeps the default); set the `.showAggregations` property to `false` to disable. */
|
|
38
|
-
showAggregations?: boolean;
|
|
39
|
-
/** Language used for data labels (column / dataset names). */
|
|
40
|
-
contentLanguage?: string;
|
|
41
|
-
/** When true, aggregations render as multi-stage nested widgets. */
|
|
42
|
-
multiStageAggregation?: boolean;
|
|
43
|
-
/** When true, aggregations can be nested inside other aggregations. */
|
|
44
|
-
nestedAggregation?: boolean;
|
|
45
|
-
/** The size of the element */
|
|
46
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
47
|
-
/** Fired (debounced) when the expression changes (only when not readonly). */
|
|
48
|
-
readonly luzmoExpressionChanged: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
|
|
49
|
-
/** Fired when fetching datasets by id fails. */
|
|
50
|
-
readonly luzmoDatasetsError: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
|
|
51
|
-
constructor();
|
|
52
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
53
|
-
/**
|
|
54
|
-
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
55
|
-
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
56
|
-
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
57
|
-
* undefined / null by clearing their bindings.
|
|
58
|
-
*/
|
|
59
|
-
private setHostProperty;
|
|
60
|
-
private bindEvents;
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFormulaField, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFormulaField, "luzmo-formula-field", ["luzmoFormulaField"], { "readonly": { "alias": "readonly"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "language": { "alias": "language"; "required": false; }; "expression": { "alias": "expression"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "showAggregations": { "alias": "showAggregations"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "multiStageAggregation": { "alias": "multiStageAggregation"; "required": false; }; "nestedAggregation": { "alias": "nestedAggregation"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoExpressionChanged": "luzmoExpressionChanged"; "luzmoDatasetsError": "luzmoDatasetsError"; }, never, ["*"], true, never>;
|
|
63
|
-
static ngAcceptInputType_readonly: unknown;
|
|
64
|
-
static ngAcceptInputType_grows: unknown;
|
|
65
|
-
static ngAcceptInputType_showAggregations: unknown;
|
|
66
|
-
static ngAcceptInputType_multiStageAggregation: unknown;
|
|
67
|
-
static ngAcceptInputType_nestedAggregation: unknown;
|
|
68
|
-
}
|
|
69
|
-
/** The underlying custom element type for LuzmoFormulaField */
|
|
70
|
-
export type LuzmoFormulaFieldElement = LuzmoFormulaFieldHostElement;
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
-
import '@luzmo/analytics-components-kit/formula-field';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
const _c0 = ["*"];
|
|
5
|
-
/**
|
|
6
|
-
* Angular wrapper component for <luzmo-formula-field>
|
|
7
|
-
*/
|
|
8
|
-
export class LuzmoFormulaField {
|
|
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
|
-
/** Renders the field display-only (no editing). */
|
|
19
|
-
readonly;
|
|
20
|
-
/** Placeholder text shown in the editable input when the expression is empty. */
|
|
21
|
-
placeholder;
|
|
22
|
-
/** Number of text lines the input is sized to start with. Defaults to 3. */
|
|
23
|
-
rows;
|
|
24
|
-
/** Maximum number of text lines before a scrollbar appears (only when `grows`). */
|
|
25
|
-
maxRows;
|
|
26
|
-
/** Whether the input grows in height with its content (up to `maxRows` if set). */
|
|
27
|
-
grows;
|
|
28
|
-
/** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
|
|
29
|
-
language;
|
|
30
|
-
/** The formula expression (function syntax), e.g. `SUM({datasetId:columnId})`. */
|
|
31
|
-
expression;
|
|
32
|
-
/** Datasets and their data fields, provided directly (takes preference over `datasetIds`). */
|
|
33
|
-
datasetsDataFields;
|
|
34
|
-
/** Dataset ids to fetch from the Luzmo API (auth attributes optional for public datasets). */
|
|
35
|
-
datasetIds;
|
|
36
|
-
/** Base URL of the Luzmo API used to fetch datasets by id. */
|
|
37
|
-
apiUrl;
|
|
38
|
-
/** Luzmo API authorization key, used with `authToken` to fetch datasets by id. */
|
|
39
|
-
authKey;
|
|
40
|
-
/** Luzmo API authorization token, used with `authKey` to fetch datasets by id. */
|
|
41
|
-
authToken;
|
|
42
|
-
/** Whether aggregation functions are offered (in the autocompletion, and - for the editor - via the aggregations list and pills). Defaults to `true`. Note: as a boolean attribute defaulting to `true` it cannot be turned off via markup (an absent attribute keeps the default); set the `.showAggregations` property to `false` to disable. */
|
|
43
|
-
showAggregations;
|
|
44
|
-
/** Language used for data labels (column / dataset names). */
|
|
45
|
-
contentLanguage;
|
|
46
|
-
/** When true, aggregations render as multi-stage nested widgets. */
|
|
47
|
-
multiStageAggregation;
|
|
48
|
-
/** When true, aggregations can be nested inside other aggregations. */
|
|
49
|
-
nestedAggregation;
|
|
50
|
-
/** The size of the element */
|
|
51
|
-
size;
|
|
52
|
-
/** Fired (debounced) when the expression changes (only when not readonly). */
|
|
53
|
-
luzmoExpressionChanged = output({ alias: 'luzmoExpressionChanged' });
|
|
54
|
-
/** Fired when fetching datasets by id fails. */
|
|
55
|
-
luzmoDatasetsError = output({ alias: 'luzmoDatasetsError' });
|
|
56
|
-
constructor() {
|
|
57
|
-
this.bindEvents();
|
|
58
|
-
this.destroyRef.onDestroy(() => {
|
|
59
|
-
for (const cleanup of this.listenerCleanup) {
|
|
60
|
-
cleanup();
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
ngOnChanges(changes) {
|
|
65
|
-
for (const key of Object.keys(changes)) {
|
|
66
|
-
switch (key) {
|
|
67
|
-
case 'readonly':
|
|
68
|
-
this.setHostProperty('readonly', changes['readonly'].currentValue);
|
|
69
|
-
break;
|
|
70
|
-
case 'placeholder':
|
|
71
|
-
this.setHostProperty('placeholder', changes['placeholder'].currentValue);
|
|
72
|
-
break;
|
|
73
|
-
case 'rows':
|
|
74
|
-
this.setHostProperty('rows', changes['rows'].currentValue);
|
|
75
|
-
break;
|
|
76
|
-
case 'maxRows':
|
|
77
|
-
this.setHostProperty('maxRows', changes['maxRows'].currentValue);
|
|
78
|
-
break;
|
|
79
|
-
case 'grows':
|
|
80
|
-
this.setHostProperty('grows', changes['grows'].currentValue);
|
|
81
|
-
break;
|
|
82
|
-
case 'language':
|
|
83
|
-
this.setHostProperty('language', changes['language'].currentValue);
|
|
84
|
-
break;
|
|
85
|
-
case 'expression':
|
|
86
|
-
this.setHostProperty('expression', changes['expression'].currentValue);
|
|
87
|
-
break;
|
|
88
|
-
case 'datasetsDataFields':
|
|
89
|
-
this.setHostProperty('datasetsDataFields', changes['datasetsDataFields'].currentValue);
|
|
90
|
-
break;
|
|
91
|
-
case 'datasetIds':
|
|
92
|
-
this.setHostProperty('datasetIds', changes['datasetIds'].currentValue);
|
|
93
|
-
break;
|
|
94
|
-
case 'apiUrl':
|
|
95
|
-
this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
|
|
96
|
-
break;
|
|
97
|
-
case 'authKey':
|
|
98
|
-
this.setHostProperty('authKey', changes['authKey'].currentValue);
|
|
99
|
-
break;
|
|
100
|
-
case 'authToken':
|
|
101
|
-
this.setHostProperty('authToken', changes['authToken'].currentValue);
|
|
102
|
-
break;
|
|
103
|
-
case 'showAggregations':
|
|
104
|
-
this.setHostProperty('showAggregations', changes['showAggregations'].currentValue);
|
|
105
|
-
break;
|
|
106
|
-
case 'contentLanguage':
|
|
107
|
-
this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
|
|
108
|
-
break;
|
|
109
|
-
case 'multiStageAggregation':
|
|
110
|
-
this.setHostProperty('multiStageAggregation', changes['multiStageAggregation'].currentValue);
|
|
111
|
-
break;
|
|
112
|
-
case 'nestedAggregation':
|
|
113
|
-
this.setHostProperty('nestedAggregation', changes['nestedAggregation'].currentValue);
|
|
114
|
-
break;
|
|
115
|
-
case 'size':
|
|
116
|
-
this.setHostProperty('size', changes['size'].currentValue);
|
|
117
|
-
break;
|
|
118
|
-
default:
|
|
119
|
-
break;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
125
|
-
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
126
|
-
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
127
|
-
* undefined / null by clearing their bindings.
|
|
128
|
-
*/
|
|
129
|
-
setHostProperty(key, value) {
|
|
130
|
-
this.renderer.setProperty(this.host, key, value);
|
|
131
|
-
}
|
|
132
|
-
bindEvents() {
|
|
133
|
-
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-expression-changed', (event) => {
|
|
134
|
-
const typed = event;
|
|
135
|
-
this.luzmoExpressionChanged.emit(typed);
|
|
136
|
-
}));
|
|
137
|
-
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-datasets-error', (event) => {
|
|
138
|
-
const typed = event;
|
|
139
|
-
this.luzmoDatasetsError.emit(typed);
|
|
140
|
-
}));
|
|
141
|
-
}
|
|
142
|
-
static ɵfac = function LuzmoFormulaField_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFormulaField)(); };
|
|
143
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFormulaField, selectors: [["luzmo-formula-field"]], inputs: { readonly: [2, "readonly", "readonly", booleanAttribute], placeholder: "placeholder", rows: "rows", maxRows: "maxRows", grows: [2, "grows", "grows", booleanAttribute], language: "language", expression: "expression", datasetsDataFields: "datasetsDataFields", datasetIds: "datasetIds", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", showAggregations: [2, "showAggregations", "showAggregations", booleanAttribute], contentLanguage: "contentLanguage", multiStageAggregation: [2, "multiStageAggregation", "multiStageAggregation", booleanAttribute], nestedAggregation: [2, "nestedAggregation", "nestedAggregation", booleanAttribute], size: "size" }, outputs: { luzmoExpressionChanged: "luzmoExpressionChanged", luzmoDatasetsError: "luzmoDatasetsError" }, exportAs: ["luzmoFormulaField"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFormulaField_Template(rf, ctx) { if (rf & 1) {
|
|
144
|
-
i0.ɵɵprojectionDef();
|
|
145
|
-
i0.ɵɵprojection(0);
|
|
146
|
-
} }, encapsulation: 2 });
|
|
147
|
-
}
|
|
148
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFormulaField, [{
|
|
149
|
-
type: Component,
|
|
150
|
-
args: [{
|
|
151
|
-
selector: 'luzmo-formula-field',
|
|
152
|
-
exportAs: 'luzmoFormulaField',
|
|
153
|
-
standalone: true,
|
|
154
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
155
|
-
template: '<ng-content />'
|
|
156
|
-
}]
|
|
157
|
-
}], () => [], { readonly: [{
|
|
158
|
-
type: Input,
|
|
159
|
-
args: [{ alias: 'readonly', transform: booleanAttribute }]
|
|
160
|
-
}], placeholder: [{
|
|
161
|
-
type: Input,
|
|
162
|
-
args: [{ alias: 'placeholder' }]
|
|
163
|
-
}], rows: [{
|
|
164
|
-
type: Input,
|
|
165
|
-
args: [{ alias: 'rows' }]
|
|
166
|
-
}], maxRows: [{
|
|
167
|
-
type: Input,
|
|
168
|
-
args: [{ alias: 'maxRows' }]
|
|
169
|
-
}], grows: [{
|
|
170
|
-
type: Input,
|
|
171
|
-
args: [{ alias: 'grows', transform: booleanAttribute }]
|
|
172
|
-
}], language: [{
|
|
173
|
-
type: Input,
|
|
174
|
-
args: [{ alias: 'language' }]
|
|
175
|
-
}], expression: [{
|
|
176
|
-
type: Input,
|
|
177
|
-
args: [{ alias: 'expression' }]
|
|
178
|
-
}], datasetsDataFields: [{
|
|
179
|
-
type: Input,
|
|
180
|
-
args: [{ alias: 'datasetsDataFields' }]
|
|
181
|
-
}], datasetIds: [{
|
|
182
|
-
type: Input,
|
|
183
|
-
args: [{ alias: 'datasetIds' }]
|
|
184
|
-
}], apiUrl: [{
|
|
185
|
-
type: Input,
|
|
186
|
-
args: [{ alias: 'apiUrl' }]
|
|
187
|
-
}], authKey: [{
|
|
188
|
-
type: Input,
|
|
189
|
-
args: [{ alias: 'authKey' }]
|
|
190
|
-
}], authToken: [{
|
|
191
|
-
type: Input,
|
|
192
|
-
args: [{ alias: 'authToken' }]
|
|
193
|
-
}], showAggregations: [{
|
|
194
|
-
type: Input,
|
|
195
|
-
args: [{ alias: 'showAggregations', transform: booleanAttribute }]
|
|
196
|
-
}], contentLanguage: [{
|
|
197
|
-
type: Input,
|
|
198
|
-
args: [{ alias: 'contentLanguage' }]
|
|
199
|
-
}], multiStageAggregation: [{
|
|
200
|
-
type: Input,
|
|
201
|
-
args: [{ alias: 'multiStageAggregation', transform: booleanAttribute }]
|
|
202
|
-
}], nestedAggregation: [{
|
|
203
|
-
type: Input,
|
|
204
|
-
args: [{ alias: 'nestedAggregation', transform: booleanAttribute }]
|
|
205
|
-
}], size: [{
|
|
206
|
-
type: Input,
|
|
207
|
-
args: [{ alias: 'size' }]
|
|
208
|
-
}], luzmoExpressionChanged: [{ type: i0.Output, args: ["luzmoExpressionChanged"] }], luzmoDatasetsError: [{ type: i0.Output, args: ["luzmoDatasetsError"] }] }); })();
|
|
209
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFormulaField, { className: "LuzmoFormulaField", filePath: "components/formula-field.ts", lineNumber: 15 }); })();
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
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';
|
|
4
|
-
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 declare class LuzmoInteractiveVizItem 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(): LuzmoInteractiveVizItemHostElement;
|
|
14
|
-
/** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
|
|
15
|
-
language?: string;
|
|
16
|
-
/** Loose chart config (type, options, slots, filters); slots may use the keyed-object form. */
|
|
17
|
-
chart?: FlexChartConfig | null;
|
|
18
|
-
/** Current feedback (drives the thumbs up/down selection). */
|
|
19
|
-
feedback?: ChartFeedback | null;
|
|
20
|
-
/** Message id from the backend. Feedback is only shown when set. */
|
|
21
|
-
messageId?: string;
|
|
22
|
-
/** Auth key for the embedded chart and config panels. */
|
|
23
|
-
authKey?: string;
|
|
24
|
-
/** Auth token for the embedded chart and config panels. */
|
|
25
|
-
authToken?: string;
|
|
26
|
-
/** API URL for the embedded chart and config panels. */
|
|
27
|
-
apiUrl?: string;
|
|
28
|
-
/** App server URL for the embedded chart (assets, thumbnails). */
|
|
29
|
-
appServer?: string;
|
|
30
|
-
/** Content language for chart data and dataset metadata. Defaults to the UI `language`. */
|
|
31
|
-
contentLanguage?: string;
|
|
32
|
-
/** When present, hides the inline chart actions (ranking, display mode). */
|
|
33
|
-
hideActions?: boolean;
|
|
34
|
-
/** When present, hides the feedback bar. */
|
|
35
|
-
hideFeedback?: boolean;
|
|
36
|
-
/** When present, hides the config-panel toggle and the panel itself. */
|
|
37
|
-
hideConfigPanel?: boolean;
|
|
38
|
-
/** The size of the element */
|
|
39
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
40
|
-
/** Fired when the inline actions (ranking, sort, display mode) change the chart options. */
|
|
41
|
-
readonly luzmoChartOptionsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>;
|
|
42
|
-
/** Fired when the config panel changes slots, filters, or options (full chart). */
|
|
43
|
-
readonly luzmoChartChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemChartChangedEventDetail>>;
|
|
44
|
-
/** Fired when the user changes the thumbs up/down rating. */
|
|
45
|
-
readonly luzmoFeedbackChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>;
|
|
46
|
-
constructor();
|
|
47
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
48
|
-
/**
|
|
49
|
-
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
50
|
-
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
51
|
-
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
52
|
-
* undefined / null by clearing their bindings.
|
|
53
|
-
*/
|
|
54
|
-
private setHostProperty;
|
|
55
|
-
private bindEvents;
|
|
56
|
-
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>;
|
|
58
|
-
static ngAcceptInputType_hideActions: unknown;
|
|
59
|
-
static ngAcceptInputType_hideFeedback: unknown;
|
|
60
|
-
static ngAcceptInputType_hideConfigPanel: unknown;
|
|
61
|
-
}
|
|
62
|
-
/** The underlying custom element type for LuzmoInteractiveVizItem */
|
|
63
|
-
export type LuzmoInteractiveVizItemElement = LuzmoInteractiveVizItemHostElement;
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
-
import '@luzmo/analytics-components-kit/interactive-viz-item';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
const _c0 = ["*"];
|
|
5
|
-
/**
|
|
6
|
-
* Angular wrapper component for <luzmo-interactive-viz-item>
|
|
7
|
-
*
|
|
8
|
-
* @slot chart-actions-extra - Host-injected actions rendered at the end of the inline actions bar (e.g. copy-to-dashboard).
|
|
9
|
-
* @csspart container - The viz item container.
|
|
10
|
-
* @csspart chart-container - The embedded chart wrapper.
|
|
11
|
-
* @csspart config-panel - The expandable configuration panel.
|
|
12
|
-
*/
|
|
13
|
-
export class LuzmoInteractiveVizItem {
|
|
14
|
-
elementRef = inject(ElementRef);
|
|
15
|
-
renderer = inject(Renderer2);
|
|
16
|
-
destroyRef = inject(DestroyRef);
|
|
17
|
-
host = this.elementRef.nativeElement;
|
|
18
|
-
listenerCleanup = [];
|
|
19
|
-
/** The underlying custom element instance. Use to call imperative methods. */
|
|
20
|
-
get nativeElement() {
|
|
21
|
-
return this.host;
|
|
22
|
-
}
|
|
23
|
-
/** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
|
|
24
|
-
language;
|
|
25
|
-
/** Loose chart config (type, options, slots, filters); slots may use the keyed-object form. */
|
|
26
|
-
chart;
|
|
27
|
-
/** Current feedback (drives the thumbs up/down selection). */
|
|
28
|
-
feedback;
|
|
29
|
-
/** Message id from the backend. Feedback is only shown when set. */
|
|
30
|
-
messageId;
|
|
31
|
-
/** Auth key for the embedded chart and config panels. */
|
|
32
|
-
authKey;
|
|
33
|
-
/** Auth token for the embedded chart and config panels. */
|
|
34
|
-
authToken;
|
|
35
|
-
/** API URL for the embedded chart and config panels. */
|
|
36
|
-
apiUrl;
|
|
37
|
-
/** App server URL for the embedded chart (assets, thumbnails). */
|
|
38
|
-
appServer;
|
|
39
|
-
/** Content language for chart data and dataset metadata. Defaults to the UI `language`. */
|
|
40
|
-
contentLanguage;
|
|
41
|
-
/** When present, hides the inline chart actions (ranking, display mode). */
|
|
42
|
-
hideActions;
|
|
43
|
-
/** When present, hides the feedback bar. */
|
|
44
|
-
hideFeedback;
|
|
45
|
-
/** When present, hides the config-panel toggle and the panel itself. */
|
|
46
|
-
hideConfigPanel;
|
|
47
|
-
/** The size of the element */
|
|
48
|
-
size;
|
|
49
|
-
/** Fired when the inline actions (ranking, sort, display mode) change the chart options. */
|
|
50
|
-
luzmoChartOptionsChanged = output({ alias: 'luzmoChartOptionsChanged' });
|
|
51
|
-
/** Fired when the config panel changes slots, filters, or options (full chart). */
|
|
52
|
-
luzmoChartChanged = output({ alias: 'luzmoChartChanged' });
|
|
53
|
-
/** Fired when the user changes the thumbs up/down rating. */
|
|
54
|
-
luzmoFeedbackChanged = output({ alias: 'luzmoFeedbackChanged' });
|
|
55
|
-
constructor() {
|
|
56
|
-
this.bindEvents();
|
|
57
|
-
this.destroyRef.onDestroy(() => {
|
|
58
|
-
for (const cleanup of this.listenerCleanup) {
|
|
59
|
-
cleanup();
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
ngOnChanges(changes) {
|
|
64
|
-
for (const key of Object.keys(changes)) {
|
|
65
|
-
switch (key) {
|
|
66
|
-
case 'language':
|
|
67
|
-
this.setHostProperty('language', changes['language'].currentValue);
|
|
68
|
-
break;
|
|
69
|
-
case 'chart':
|
|
70
|
-
this.setHostProperty('chart', changes['chart'].currentValue);
|
|
71
|
-
break;
|
|
72
|
-
case 'feedback':
|
|
73
|
-
this.setHostProperty('feedback', changes['feedback'].currentValue);
|
|
74
|
-
break;
|
|
75
|
-
case 'messageId':
|
|
76
|
-
this.setHostProperty('messageId', changes['messageId'].currentValue);
|
|
77
|
-
break;
|
|
78
|
-
case 'authKey':
|
|
79
|
-
this.setHostProperty('authKey', changes['authKey'].currentValue);
|
|
80
|
-
break;
|
|
81
|
-
case 'authToken':
|
|
82
|
-
this.setHostProperty('authToken', changes['authToken'].currentValue);
|
|
83
|
-
break;
|
|
84
|
-
case 'apiUrl':
|
|
85
|
-
this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
|
|
86
|
-
break;
|
|
87
|
-
case 'appServer':
|
|
88
|
-
this.setHostProperty('appServer', changes['appServer'].currentValue);
|
|
89
|
-
break;
|
|
90
|
-
case 'contentLanguage':
|
|
91
|
-
this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
|
|
92
|
-
break;
|
|
93
|
-
case 'hideActions':
|
|
94
|
-
this.setHostProperty('hideActions', changes['hideActions'].currentValue);
|
|
95
|
-
break;
|
|
96
|
-
case 'hideFeedback':
|
|
97
|
-
this.setHostProperty('hideFeedback', changes['hideFeedback'].currentValue);
|
|
98
|
-
break;
|
|
99
|
-
case 'hideConfigPanel':
|
|
100
|
-
this.setHostProperty('hideConfigPanel', changes['hideConfigPanel'].currentValue);
|
|
101
|
-
break;
|
|
102
|
-
case 'size':
|
|
103
|
-
this.setHostProperty('size', changes['size'].currentValue);
|
|
104
|
-
break;
|
|
105
|
-
default:
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
112
|
-
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
113
|
-
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
114
|
-
* undefined / null by clearing their bindings.
|
|
115
|
-
*/
|
|
116
|
-
setHostProperty(key, value) {
|
|
117
|
-
this.renderer.setProperty(this.host, key, value);
|
|
118
|
-
}
|
|
119
|
-
bindEvents() {
|
|
120
|
-
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-options-changed', (event) => {
|
|
121
|
-
const typed = event;
|
|
122
|
-
this.luzmoChartOptionsChanged.emit(typed);
|
|
123
|
-
}));
|
|
124
|
-
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-chart-changed', (event) => {
|
|
125
|
-
const typed = event;
|
|
126
|
-
this.luzmoChartChanged.emit(typed);
|
|
127
|
-
}));
|
|
128
|
-
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-feedback-changed', (event) => {
|
|
129
|
-
const typed = event;
|
|
130
|
-
this.luzmoFeedbackChanged.emit(typed);
|
|
131
|
-
}));
|
|
132
|
-
}
|
|
133
|
-
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) {
|
|
135
|
-
i0.ɵɵprojectionDef();
|
|
136
|
-
i0.ɵɵprojection(0);
|
|
137
|
-
} }, encapsulation: 2 });
|
|
138
|
-
}
|
|
139
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoInteractiveVizItem, [{
|
|
140
|
-
type: Component,
|
|
141
|
-
args: [{
|
|
142
|
-
selector: 'luzmo-interactive-viz-item',
|
|
143
|
-
exportAs: 'luzmoInteractiveVizItem',
|
|
144
|
-
standalone: true,
|
|
145
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
146
|
-
template: '<ng-content />'
|
|
147
|
-
}]
|
|
148
|
-
}], () => [], { language: [{
|
|
149
|
-
type: Input,
|
|
150
|
-
args: [{ alias: 'language' }]
|
|
151
|
-
}], chart: [{
|
|
152
|
-
type: Input,
|
|
153
|
-
args: [{ alias: 'chart' }]
|
|
154
|
-
}], feedback: [{
|
|
155
|
-
type: Input,
|
|
156
|
-
args: [{ alias: 'feedback' }]
|
|
157
|
-
}], messageId: [{
|
|
158
|
-
type: Input,
|
|
159
|
-
args: [{ alias: 'messageId' }]
|
|
160
|
-
}], authKey: [{
|
|
161
|
-
type: Input,
|
|
162
|
-
args: [{ alias: 'authKey' }]
|
|
163
|
-
}], authToken: [{
|
|
164
|
-
type: Input,
|
|
165
|
-
args: [{ alias: 'authToken' }]
|
|
166
|
-
}], apiUrl: [{
|
|
167
|
-
type: Input,
|
|
168
|
-
args: [{ alias: 'apiUrl' }]
|
|
169
|
-
}], appServer: [{
|
|
170
|
-
type: Input,
|
|
171
|
-
args: [{ alias: 'appServer' }]
|
|
172
|
-
}], contentLanguage: [{
|
|
173
|
-
type: Input,
|
|
174
|
-
args: [{ alias: 'contentLanguage' }]
|
|
175
|
-
}], hideActions: [{
|
|
176
|
-
type: Input,
|
|
177
|
-
args: [{ alias: 'hideActions', transform: booleanAttribute }]
|
|
178
|
-
}], hideFeedback: [{
|
|
179
|
-
type: Input,
|
|
180
|
-
args: [{ alias: 'hideFeedback', transform: booleanAttribute }]
|
|
181
|
-
}], hideConfigPanel: [{
|
|
182
|
-
type: Input,
|
|
183
|
-
args: [{ alias: 'hideConfigPanel', transform: booleanAttribute }]
|
|
184
|
-
}], size: [{
|
|
185
|
-
type: Input,
|
|
186
|
-
args: [{ alias: 'size' }]
|
|
187
|
-
}], luzmoChartOptionsChanged: [{ type: i0.Output, args: ["luzmoChartOptionsChanged"] }], luzmoChartChanged: [{ type: i0.Output, args: ["luzmoChartChanged"] }], luzmoFeedbackChanged: [{ type: i0.Output, args: ["luzmoFeedbackChanged"] }] }); })();
|
|
188
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoInteractiveVizItem, { className: "LuzmoInteractiveVizItem", filePath: "components/interactive-viz-item.ts", lineNumber: 21 }); })();
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import '@luzmo/analytics-components-kit/slot-menu-list';
|
|
3
|
-
import type { LuzmoSlotMenuList as LuzmoSlotMenuListHostElement, SlotListChangedEventDetail } from '@luzmo/analytics-components-kit/slot-menu-list';
|
|
4
|
-
import type { SlotContent } from '@luzmo/analytics-components-kit/types';
|
|
5
|
-
import type { SlotName } from '@luzmo/dashboard-contents-types';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export type { SlotListChangedEventDetail } from '@luzmo/analytics-components-kit/slot-menu-list';
|
|
8
|
-
export declare class LuzmoSlotMenuList implements OnChanges {
|
|
9
|
-
private readonly elementRef;
|
|
10
|
-
private readonly renderer;
|
|
11
|
-
private readonly destroyRef;
|
|
12
|
-
private readonly host;
|
|
13
|
-
private readonly listenerCleanup;
|
|
14
|
-
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
|
-
get nativeElement(): LuzmoSlotMenuListHostElement;
|
|
16
|
-
/** The language of the settings interface */
|
|
17
|
-
language?: string;
|
|
18
|
-
/** The language to use for locale-aware formatting and labels */
|
|
19
|
-
contentLanguage?: string;
|
|
20
|
-
/** The list of slot contents (columns/formulas) shown in the reorderable list. */
|
|
21
|
-
slotContents?: SlotContent[];
|
|
22
|
-
/** The containing slot name used to identify measure calculations. */
|
|
23
|
-
slotName?: SlotName;
|
|
24
|
-
/** The containing slot type used to identify measure calculations. */
|
|
25
|
-
slotType?: string;
|
|
26
|
-
/** Index of the currently active/selected slot content. */
|
|
27
|
-
activeIndex?: number;
|
|
28
|
-
/** The size of the element */
|
|
29
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
30
|
-
/** Emitted when the slot list changes */
|
|
31
|
-
readonly luzmoSlotListChanged: import("@angular/core").OutputEmitterRef<CustomEvent<SlotListChangedEventDetail>>;
|
|
32
|
-
constructor();
|
|
33
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
34
|
-
/**
|
|
35
|
-
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
36
|
-
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
37
|
-
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
38
|
-
* undefined / null by clearing their bindings.
|
|
39
|
-
*/
|
|
40
|
-
private setHostProperty;
|
|
41
|
-
private bindEvents;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoSlotMenuList, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoSlotMenuList, "luzmo-slot-menu-list", ["luzmoSlotMenuList"], { "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotContents": { "alias": "slotContents"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotType": { "alias": "slotType"; "required": false; }; "activeIndex": { "alias": "activeIndex"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotListChanged": "luzmoSlotListChanged"; }, never, ["*"], true, never>;
|
|
44
|
-
}
|
|
45
|
-
/** The underlying custom element type for LuzmoSlotMenuList */
|
|
46
|
-
export type LuzmoSlotMenuListElement = LuzmoSlotMenuListHostElement;
|