@luzmo/ngx-analytics-components-kit 1.0.3-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/esm/components/ai-chat-empty-state.d.ts +39 -0
- package/esm/components/ai-chat-empty-state.js +99 -0
- package/esm/components/ai-chat.d.ts +121 -0
- package/esm/components/ai-chat.js +369 -0
- package/esm/components/ai-interaction-textarea.d.ts +110 -0
- package/esm/components/ai-interaction-textarea.js +297 -0
- package/esm/components/data-field-level.d.ts +42 -0
- package/esm/components/data-field-level.js +115 -0
- package/esm/components/data-field-panel.d.ts +84 -0
- package/esm/components/data-field-panel.js +260 -0
- package/esm/components/data-field.d.ts +41 -0
- package/esm/components/data-field.js +108 -0
- package/esm/components/data-fields-select.d.ts +70 -0
- package/esm/components/data-fields-select.js +187 -0
- package/esm/components/dataset-icon.d.ts +34 -0
- package/esm/components/dataset-icon.js +86 -0
- package/esm/components/dataset-selector-list.d.ts +53 -0
- package/esm/components/dataset-selector-list.js +147 -0
- package/esm/components/dataset-selector-row.d.ts +56 -0
- package/esm/components/dataset-selector-row.js +153 -0
- package/esm/components/display-settings-binning.d.ts +32 -0
- package/esm/components/display-settings-binning.js +74 -0
- package/esm/components/display-settings-datetime.d.ts +36 -0
- package/esm/components/display-settings-datetime.js +89 -0
- package/esm/components/display-settings-grand-totals.d.ts +33 -0
- package/esm/components/display-settings-grand-totals.js +75 -0
- package/esm/components/display-settings-numeric.d.ts +41 -0
- package/esm/components/display-settings-numeric.js +99 -0
- package/esm/components/display-settings-period-over-period.d.ts +38 -0
- package/esm/components/display-settings-period-over-period.js +89 -0
- package/esm/components/display-settings.d.ts +69 -0
- package/esm/components/display-settings.js +182 -0
- package/esm/components/filter-expression-picker.d.ts +54 -0
- package/esm/components/filter-expression-picker.js +146 -0
- package/esm/components/filter-item.d.ts +44 -0
- package/esm/components/filter-item.js +130 -0
- package/esm/components/filter-parameter-picker.d.ts +31 -0
- package/esm/components/filter-parameter-picker.js +78 -0
- package/esm/components/filter-value-picker-datetime.d.ts +34 -0
- package/esm/components/filter-value-picker-datetime.js +90 -0
- package/esm/components/filter-value-picker-hierarchy.d.ts +40 -0
- package/esm/components/filter-value-picker-hierarchy.js +114 -0
- package/esm/components/filter-value-picker-numeric.d.ts +40 -0
- package/esm/components/filter-value-picker-numeric.js +114 -0
- package/esm/components/filter-value-picker.d.ts +44 -0
- package/esm/components/filter-value-picker.js +130 -0
- package/esm/components/filters.d.ts +49 -0
- package/esm/components/filters.js +139 -0
- package/esm/components/formula-editor.d.ts +39 -0
- package/esm/components/formula-editor.js +95 -0
- package/esm/components/formula-field.d.ts +31 -0
- package/esm/components/formula-field.js +69 -0
- package/esm/components/formula.d.ts +31 -0
- package/esm/components/formula.js +75 -0
- package/esm/components/item-grid-item-actions-menu.d.ts +34 -0
- package/esm/components/item-grid-item-actions-menu.js +82 -0
- package/esm/components/item-grid.d.ts +80 -0
- package/esm/components/item-grid.js +245 -0
- package/esm/components/item-option-action-button-group.d.ts +30 -0
- package/esm/components/item-option-action-button-group.js +63 -0
- package/esm/components/item-option-color-palette-picker.d.ts +30 -0
- package/esm/components/item-option-color-palette-picker.js +63 -0
- package/esm/components/item-option-color-picker.d.ts +35 -0
- package/esm/components/item-option-color-picker.js +102 -0
- package/esm/components/item-option-color-range.d.ts +30 -0
- package/esm/components/item-option-color-range.js +63 -0
- package/esm/components/item-option-multi-language-field.d.ts +31 -0
- package/esm/components/item-option-multi-language-field.js +74 -0
- package/esm/components/item-option-number-field.d.ts +32 -0
- package/esm/components/item-option-number-field.js +81 -0
- package/esm/components/item-option-panel.d.ts +54 -0
- package/esm/components/item-option-panel.js +155 -0
- package/esm/components/item-option-picker.d.ts +30 -0
- package/esm/components/item-option-picker.js +63 -0
- package/esm/components/item-option-position-picker.d.ts +30 -0
- package/esm/components/item-option-position-picker.js +63 -0
- package/esm/components/item-option-positions-number-field.d.ts +32 -0
- package/esm/components/item-option-positions-number-field.js +81 -0
- package/esm/components/item-option-radio-button-group.d.ts +31 -0
- package/esm/components/item-option-radio-button-group.js +74 -0
- package/esm/components/item-option-slider.d.ts +36 -0
- package/esm/components/item-option-slider.js +109 -0
- package/esm/components/item-option-switch.d.ts +34 -0
- package/esm/components/item-option-switch.js +81 -0
- package/esm/components/item-option-text-field.d.ts +31 -0
- package/esm/components/item-option-text-field.js +74 -0
- package/esm/components/item-option.d.ts +48 -0
- package/esm/components/item-option.js +161 -0
- package/esm/components/item-slot-drop-panel.d.ts +78 -0
- package/esm/components/item-slot-drop-panel.js +233 -0
- package/esm/components/item-slot-drop.d.ts +63 -0
- package/esm/components/item-slot-drop.js +201 -0
- package/esm/components/item-slot-picker-panel.d.ts +95 -0
- package/esm/components/item-slot-picker-panel.js +301 -0
- package/esm/components/item-slot-picker.d.ts +80 -0
- package/esm/components/item-slot-picker.js +235 -0
- package/esm/components/slot-menu-list.d.ts +37 -0
- package/esm/components/slot-menu-list.js +97 -0
- package/esm/components/slot-menu.d.ts +85 -0
- package/esm/components/slot-menu.js +271 -0
- package/esm/components/viz-item-menu.d.ts +40 -0
- package/esm/components/viz-item-menu.js +103 -0
- package/esm/index.d.ts +105 -0
- package/esm/index.js +209 -0
- package/package.json +40 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/filter-item';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-filter-item>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoFilterItem {
|
|
9
|
+
elementRef = inject(ElementRef);
|
|
10
|
+
renderer = inject(Renderer2);
|
|
11
|
+
destroyRef = inject(DestroyRef);
|
|
12
|
+
host = this.elementRef.nativeElement;
|
|
13
|
+
listenerCleanup = [];
|
|
14
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
|
+
get nativeElement() {
|
|
16
|
+
return this.host;
|
|
17
|
+
}
|
|
18
|
+
/** The API URL of the databroker */
|
|
19
|
+
apiUrl;
|
|
20
|
+
/** The auth key of the databroker */
|
|
21
|
+
authKey;
|
|
22
|
+
/** The auth token of the databroker */
|
|
23
|
+
authToken;
|
|
24
|
+
/** The cache time of the databroker */
|
|
25
|
+
cacheTime;
|
|
26
|
+
/** The language of the content */
|
|
27
|
+
contentLanguage;
|
|
28
|
+
/** The time zone to use for the date picker */
|
|
29
|
+
timeZone;
|
|
30
|
+
/** The dataset ids to fetch columns & formulas */
|
|
31
|
+
datasetIds;
|
|
32
|
+
/** The filter to display */
|
|
33
|
+
filter;
|
|
34
|
+
luzmoFilterChanged = output({ alias: 'luzmoFilterChanged' });
|
|
35
|
+
constructor() {
|
|
36
|
+
this.bindEvents();
|
|
37
|
+
this.destroyRef.onDestroy(() => {
|
|
38
|
+
for (const cleanup of this.listenerCleanup) {
|
|
39
|
+
cleanup();
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
ngOnChanges(changes) {
|
|
44
|
+
for (const key of Object.keys(changes)) {
|
|
45
|
+
switch (key) {
|
|
46
|
+
case 'apiUrl':
|
|
47
|
+
this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
|
|
48
|
+
break;
|
|
49
|
+
case 'authKey':
|
|
50
|
+
this.setHostProperty('authKey', changes['authKey'].currentValue);
|
|
51
|
+
break;
|
|
52
|
+
case 'authToken':
|
|
53
|
+
this.setHostProperty('authToken', changes['authToken'].currentValue);
|
|
54
|
+
break;
|
|
55
|
+
case 'cacheTime':
|
|
56
|
+
this.setHostProperty('cacheTime', changes['cacheTime'].currentValue);
|
|
57
|
+
break;
|
|
58
|
+
case 'contentLanguage':
|
|
59
|
+
this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
|
|
60
|
+
break;
|
|
61
|
+
case 'timeZone':
|
|
62
|
+
this.setHostProperty('timeZone', changes['timeZone'].currentValue);
|
|
63
|
+
break;
|
|
64
|
+
case 'datasetIds':
|
|
65
|
+
this.setHostProperty('datasetIds', changes['datasetIds'].currentValue);
|
|
66
|
+
break;
|
|
67
|
+
case 'filter':
|
|
68
|
+
this.setHostProperty('filter', changes['filter'].currentValue);
|
|
69
|
+
break;
|
|
70
|
+
default:
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
77
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
78
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
79
|
+
* undefined / null by clearing their bindings.
|
|
80
|
+
*/
|
|
81
|
+
setHostProperty(key, value) {
|
|
82
|
+
this.renderer.setProperty(this.host, key, value);
|
|
83
|
+
}
|
|
84
|
+
bindEvents() {
|
|
85
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-filter-changed', (event) => {
|
|
86
|
+
const typed = event;
|
|
87
|
+
this.luzmoFilterChanged.emit(typed);
|
|
88
|
+
}));
|
|
89
|
+
}
|
|
90
|
+
static ɵfac = function LuzmoFilterItem_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterItem)(); };
|
|
91
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterItem, selectors: [["luzmo-filter-item"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", timeZone: "timeZone", datasetIds: "datasetIds", filter: "filter" }, outputs: { luzmoFilterChanged: "luzmoFilterChanged" }, exportAs: ["luzmoFilterItem"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterItem_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
+
i0.ɵɵprojectionDef();
|
|
93
|
+
i0.ɵɵprojection(0);
|
|
94
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
95
|
+
}
|
|
96
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFilterItem, [{
|
|
97
|
+
type: Component,
|
|
98
|
+
args: [{
|
|
99
|
+
selector: 'luzmo-filter-item',
|
|
100
|
+
exportAs: 'luzmoFilterItem',
|
|
101
|
+
standalone: true,
|
|
102
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
103
|
+
template: '<ng-content />'
|
|
104
|
+
}]
|
|
105
|
+
}], () => [], { apiUrl: [{
|
|
106
|
+
type: Input,
|
|
107
|
+
args: [{ alias: 'apiUrl' }]
|
|
108
|
+
}], authKey: [{
|
|
109
|
+
type: Input,
|
|
110
|
+
args: [{ alias: 'authKey' }]
|
|
111
|
+
}], authToken: [{
|
|
112
|
+
type: Input,
|
|
113
|
+
args: [{ alias: 'authToken' }]
|
|
114
|
+
}], cacheTime: [{
|
|
115
|
+
type: Input,
|
|
116
|
+
args: [{ alias: 'cacheTime' }]
|
|
117
|
+
}], contentLanguage: [{
|
|
118
|
+
type: Input,
|
|
119
|
+
args: [{ alias: 'contentLanguage' }]
|
|
120
|
+
}], timeZone: [{
|
|
121
|
+
type: Input,
|
|
122
|
+
args: [{ alias: 'timeZone' }]
|
|
123
|
+
}], datasetIds: [{
|
|
124
|
+
type: Input,
|
|
125
|
+
args: [{ alias: 'datasetIds' }]
|
|
126
|
+
}], filter: [{
|
|
127
|
+
type: Input,
|
|
128
|
+
args: [{ alias: 'filter' }]
|
|
129
|
+
}], luzmoFilterChanged: [{ type: i0.Output, args: ["luzmoFilterChanged"] }] }); })();
|
|
130
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterItem, { className: "LuzmoFilterItem", filePath: "components/filter-item.ts", lineNumber: 15 }); })();
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/filter-parameter-picker';
|
|
3
|
+
import type { LuzmoFilterParameterPicker as LuzmoFilterParameterPickerHostElement } from '@luzmo/analytics-components-kit/filter-parameter-picker';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LuzmoFilterParameterPicker 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(): LuzmoFilterParameterPickerHostElement;
|
|
13
|
+
/** The language of the settings interface */
|
|
14
|
+
language?: string;
|
|
15
|
+
/** The language to use for locale-aware formatting and labels */
|
|
16
|
+
contentLanguage?: string;
|
|
17
|
+
constructor();
|
|
18
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
+
/**
|
|
20
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
21
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
22
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
23
|
+
* undefined / null by clearing their bindings.
|
|
24
|
+
*/
|
|
25
|
+
private setHostProperty;
|
|
26
|
+
private bindEvents;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilterParameterPicker, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterParameterPicker, "luzmo-filter-parameter-picker", ["luzmoFilterParameterPicker"], { "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
/** The underlying custom element type for LuzmoFilterParameterPicker */
|
|
31
|
+
export type LuzmoFilterParameterPickerElement = LuzmoFilterParameterPickerHostElement;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/filter-parameter-picker';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-filter-parameter-picker>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoFilterParameterPicker {
|
|
9
|
+
elementRef = inject(ElementRef);
|
|
10
|
+
renderer = inject(Renderer2);
|
|
11
|
+
destroyRef = inject(DestroyRef);
|
|
12
|
+
host = this.elementRef.nativeElement;
|
|
13
|
+
listenerCleanup = [];
|
|
14
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
|
+
get nativeElement() {
|
|
16
|
+
return this.host;
|
|
17
|
+
}
|
|
18
|
+
/** The language of the settings interface */
|
|
19
|
+
language;
|
|
20
|
+
/** The language to use for locale-aware formatting and labels */
|
|
21
|
+
contentLanguage;
|
|
22
|
+
constructor() {
|
|
23
|
+
this.bindEvents();
|
|
24
|
+
this.destroyRef.onDestroy(() => {
|
|
25
|
+
for (const cleanup of this.listenerCleanup) {
|
|
26
|
+
cleanup();
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
ngOnChanges(changes) {
|
|
31
|
+
for (const key of Object.keys(changes)) {
|
|
32
|
+
switch (key) {
|
|
33
|
+
case 'language':
|
|
34
|
+
this.setHostProperty('language', changes['language'].currentValue);
|
|
35
|
+
break;
|
|
36
|
+
case 'contentLanguage':
|
|
37
|
+
this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
|
|
38
|
+
break;
|
|
39
|
+
default:
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
46
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
47
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
48
|
+
* undefined / null by clearing their bindings.
|
|
49
|
+
*/
|
|
50
|
+
setHostProperty(key, value) {
|
|
51
|
+
this.renderer.setProperty(this.host, key, value);
|
|
52
|
+
}
|
|
53
|
+
bindEvents() {
|
|
54
|
+
// No custom events for this wrapper.
|
|
55
|
+
}
|
|
56
|
+
static ɵfac = function LuzmoFilterParameterPicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterParameterPicker)(); };
|
|
57
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterParameterPicker, selectors: [["luzmo-filter-parameter-picker"]], inputs: { language: "language", contentLanguage: "contentLanguage" }, exportAs: ["luzmoFilterParameterPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterParameterPicker_Template(rf, ctx) { if (rf & 1) {
|
|
58
|
+
i0.ɵɵprojectionDef();
|
|
59
|
+
i0.ɵɵprojection(0);
|
|
60
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
61
|
+
}
|
|
62
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFilterParameterPicker, [{
|
|
63
|
+
type: Component,
|
|
64
|
+
args: [{
|
|
65
|
+
selector: 'luzmo-filter-parameter-picker',
|
|
66
|
+
exportAs: 'luzmoFilterParameterPicker',
|
|
67
|
+
standalone: true,
|
|
68
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
69
|
+
template: '<ng-content />'
|
|
70
|
+
}]
|
|
71
|
+
}], () => [], { language: [{
|
|
72
|
+
type: Input,
|
|
73
|
+
args: [{ alias: 'language' }]
|
|
74
|
+
}], contentLanguage: [{
|
|
75
|
+
type: Input,
|
|
76
|
+
args: [{ alias: 'contentLanguage' }]
|
|
77
|
+
}] }); })();
|
|
78
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterParameterPicker, { className: "LuzmoFilterParameterPicker", filePath: "components/filter-parameter-picker.ts", lineNumber: 15 }); })();
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/filter-value-picker-datetime';
|
|
3
|
+
import type { LuzmoFilterValuePickerDatetime as LuzmoFilterValuePickerDatetimeHostElement } from '@luzmo/analytics-components-kit/filter-value-picker-datetime';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LuzmoFilterValuePickerDatetime 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(): LuzmoFilterValuePickerDatetimeHostElement;
|
|
13
|
+
/** The language to use for locale-aware formatting and column/formula labels */
|
|
14
|
+
contentLanguage?: string;
|
|
15
|
+
/** The time zone to use for the date picker */
|
|
16
|
+
timeZone?: string;
|
|
17
|
+
/** The filter used to retrieve the value */
|
|
18
|
+
filter?: any;
|
|
19
|
+
readonly luzmoFilterValueChanged: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
|
|
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<LuzmoFilterValuePickerDatetime, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterValuePickerDatetime, "luzmo-filter-value-picker-datetime", ["luzmoFilterValuePickerDatetime"], { "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; }, { "luzmoFilterValueChanged": "luzmoFilterValueChanged"; }, never, ["*"], true, never>;
|
|
32
|
+
}
|
|
33
|
+
/** The underlying custom element type for LuzmoFilterValuePickerDatetime */
|
|
34
|
+
export type LuzmoFilterValuePickerDatetimeElement = LuzmoFilterValuePickerDatetimeHostElement;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/filter-value-picker-datetime';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-filter-value-picker-datetime>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoFilterValuePickerDatetime {
|
|
9
|
+
elementRef = inject(ElementRef);
|
|
10
|
+
renderer = inject(Renderer2);
|
|
11
|
+
destroyRef = inject(DestroyRef);
|
|
12
|
+
host = this.elementRef.nativeElement;
|
|
13
|
+
listenerCleanup = [];
|
|
14
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
|
+
get nativeElement() {
|
|
16
|
+
return this.host;
|
|
17
|
+
}
|
|
18
|
+
/** The language to use for locale-aware formatting and column/formula labels */
|
|
19
|
+
contentLanguage;
|
|
20
|
+
/** The time zone to use for the date picker */
|
|
21
|
+
timeZone;
|
|
22
|
+
/** The filter used to retrieve the value */
|
|
23
|
+
filter;
|
|
24
|
+
luzmoFilterValueChanged = output({ alias: 'luzmoFilterValueChanged' });
|
|
25
|
+
constructor() {
|
|
26
|
+
this.bindEvents();
|
|
27
|
+
this.destroyRef.onDestroy(() => {
|
|
28
|
+
for (const cleanup of this.listenerCleanup) {
|
|
29
|
+
cleanup();
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
ngOnChanges(changes) {
|
|
34
|
+
for (const key of Object.keys(changes)) {
|
|
35
|
+
switch (key) {
|
|
36
|
+
case 'contentLanguage':
|
|
37
|
+
this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
|
|
38
|
+
break;
|
|
39
|
+
case 'timeZone':
|
|
40
|
+
this.setHostProperty('timeZone', changes['timeZone'].currentValue);
|
|
41
|
+
break;
|
|
42
|
+
case 'filter':
|
|
43
|
+
this.setHostProperty('filter', changes['filter'].currentValue);
|
|
44
|
+
break;
|
|
45
|
+
default:
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
52
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
53
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
54
|
+
* undefined / null by clearing their bindings.
|
|
55
|
+
*/
|
|
56
|
+
setHostProperty(key, value) {
|
|
57
|
+
this.renderer.setProperty(this.host, key, value);
|
|
58
|
+
}
|
|
59
|
+
bindEvents() {
|
|
60
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-filter-value-changed', (event) => {
|
|
61
|
+
const typed = event;
|
|
62
|
+
this.luzmoFilterValueChanged.emit(typed);
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
static ɵfac = function LuzmoFilterValuePickerDatetime_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterValuePickerDatetime)(); };
|
|
66
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterValuePickerDatetime, selectors: [["luzmo-filter-value-picker-datetime"]], inputs: { contentLanguage: "contentLanguage", timeZone: "timeZone", filter: "filter" }, outputs: { luzmoFilterValueChanged: "luzmoFilterValueChanged" }, exportAs: ["luzmoFilterValuePickerDatetime"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterValuePickerDatetime_Template(rf, ctx) { if (rf & 1) {
|
|
67
|
+
i0.ɵɵprojectionDef();
|
|
68
|
+
i0.ɵɵprojection(0);
|
|
69
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
70
|
+
}
|
|
71
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFilterValuePickerDatetime, [{
|
|
72
|
+
type: Component,
|
|
73
|
+
args: [{
|
|
74
|
+
selector: 'luzmo-filter-value-picker-datetime',
|
|
75
|
+
exportAs: 'luzmoFilterValuePickerDatetime',
|
|
76
|
+
standalone: true,
|
|
77
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
78
|
+
template: '<ng-content />'
|
|
79
|
+
}]
|
|
80
|
+
}], () => [], { contentLanguage: [{
|
|
81
|
+
type: Input,
|
|
82
|
+
args: [{ alias: 'contentLanguage' }]
|
|
83
|
+
}], timeZone: [{
|
|
84
|
+
type: Input,
|
|
85
|
+
args: [{ alias: 'timeZone' }]
|
|
86
|
+
}], filter: [{
|
|
87
|
+
type: Input,
|
|
88
|
+
args: [{ alias: 'filter' }]
|
|
89
|
+
}], luzmoFilterValueChanged: [{ type: i0.Output, args: ["luzmoFilterValueChanged"] }] }); })();
|
|
90
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterValuePickerDatetime, { className: "LuzmoFilterValuePickerDatetime", filePath: "components/filter-value-picker-datetime.ts", lineNumber: 15 }); })();
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/filter-value-picker-hierarchy';
|
|
3
|
+
import type { LuzmoFilterValuePickerHierarchy as LuzmoFilterValuePickerHierarchyHostElement } from '@luzmo/analytics-components-kit/filter-value-picker-hierarchy';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LuzmoFilterValuePickerHierarchy 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(): LuzmoFilterValuePickerHierarchyHostElement;
|
|
13
|
+
/** The API URL of the databroker */
|
|
14
|
+
apiUrl?: string;
|
|
15
|
+
/** The auth key of the databroker */
|
|
16
|
+
authKey?: string;
|
|
17
|
+
/** The auth token of the databroker */
|
|
18
|
+
authToken?: string;
|
|
19
|
+
/** The cache time of the databroker */
|
|
20
|
+
cacheTime?: number;
|
|
21
|
+
/** The language to use for locale-aware formatting and labels */
|
|
22
|
+
contentLanguage?: string;
|
|
23
|
+
/** The filter used to retrieve the value */
|
|
24
|
+
filter?: any;
|
|
25
|
+
readonly luzmoFilterValueChanged: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
|
|
26
|
+
constructor();
|
|
27
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
+
/**
|
|
29
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
30
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
31
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
32
|
+
* undefined / null by clearing their bindings.
|
|
33
|
+
*/
|
|
34
|
+
private setHostProperty;
|
|
35
|
+
private bindEvents;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilterValuePickerHierarchy, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterValuePickerHierarchy, "luzmo-filter-value-picker-hierarchy", ["luzmoFilterValuePickerHierarchy"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; }, { "luzmoFilterValueChanged": "luzmoFilterValueChanged"; }, never, ["*"], true, never>;
|
|
38
|
+
}
|
|
39
|
+
/** The underlying custom element type for LuzmoFilterValuePickerHierarchy */
|
|
40
|
+
export type LuzmoFilterValuePickerHierarchyElement = LuzmoFilterValuePickerHierarchyHostElement;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/filter-value-picker-hierarchy';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["*"];
|
|
5
|
+
/**
|
|
6
|
+
* Angular wrapper component for <luzmo-filter-value-picker-hierarchy>
|
|
7
|
+
*/
|
|
8
|
+
export class LuzmoFilterValuePickerHierarchy {
|
|
9
|
+
elementRef = inject(ElementRef);
|
|
10
|
+
renderer = inject(Renderer2);
|
|
11
|
+
destroyRef = inject(DestroyRef);
|
|
12
|
+
host = this.elementRef.nativeElement;
|
|
13
|
+
listenerCleanup = [];
|
|
14
|
+
/** The underlying custom element instance. Use to call imperative methods. */
|
|
15
|
+
get nativeElement() {
|
|
16
|
+
return this.host;
|
|
17
|
+
}
|
|
18
|
+
/** The API URL of the databroker */
|
|
19
|
+
apiUrl;
|
|
20
|
+
/** The auth key of the databroker */
|
|
21
|
+
authKey;
|
|
22
|
+
/** The auth token of the databroker */
|
|
23
|
+
authToken;
|
|
24
|
+
/** The cache time of the databroker */
|
|
25
|
+
cacheTime;
|
|
26
|
+
/** The language to use for locale-aware formatting and labels */
|
|
27
|
+
contentLanguage;
|
|
28
|
+
/** The filter used to retrieve the value */
|
|
29
|
+
filter;
|
|
30
|
+
luzmoFilterValueChanged = output({ alias: 'luzmoFilterValueChanged' });
|
|
31
|
+
constructor() {
|
|
32
|
+
this.bindEvents();
|
|
33
|
+
this.destroyRef.onDestroy(() => {
|
|
34
|
+
for (const cleanup of this.listenerCleanup) {
|
|
35
|
+
cleanup();
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
ngOnChanges(changes) {
|
|
40
|
+
for (const key of Object.keys(changes)) {
|
|
41
|
+
switch (key) {
|
|
42
|
+
case 'apiUrl':
|
|
43
|
+
this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
|
|
44
|
+
break;
|
|
45
|
+
case 'authKey':
|
|
46
|
+
this.setHostProperty('authKey', changes['authKey'].currentValue);
|
|
47
|
+
break;
|
|
48
|
+
case 'authToken':
|
|
49
|
+
this.setHostProperty('authToken', changes['authToken'].currentValue);
|
|
50
|
+
break;
|
|
51
|
+
case 'cacheTime':
|
|
52
|
+
this.setHostProperty('cacheTime', changes['cacheTime'].currentValue);
|
|
53
|
+
break;
|
|
54
|
+
case 'contentLanguage':
|
|
55
|
+
this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
|
|
56
|
+
break;
|
|
57
|
+
case 'filter':
|
|
58
|
+
this.setHostProperty('filter', changes['filter'].currentValue);
|
|
59
|
+
break;
|
|
60
|
+
default:
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
67
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
68
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
69
|
+
* undefined / null by clearing their bindings.
|
|
70
|
+
*/
|
|
71
|
+
setHostProperty(key, value) {
|
|
72
|
+
this.renderer.setProperty(this.host, key, value);
|
|
73
|
+
}
|
|
74
|
+
bindEvents() {
|
|
75
|
+
this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-filter-value-changed', (event) => {
|
|
76
|
+
const typed = event;
|
|
77
|
+
this.luzmoFilterValueChanged.emit(typed);
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
static ɵfac = function LuzmoFilterValuePickerHierarchy_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterValuePickerHierarchy)(); };
|
|
81
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterValuePickerHierarchy, selectors: [["luzmo-filter-value-picker-hierarchy"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", cacheTime: "cacheTime", contentLanguage: "contentLanguage", filter: "filter" }, outputs: { luzmoFilterValueChanged: "luzmoFilterValueChanged" }, exportAs: ["luzmoFilterValuePickerHierarchy"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterValuePickerHierarchy_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
+
i0.ɵɵprojectionDef();
|
|
83
|
+
i0.ɵɵprojection(0);
|
|
84
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
85
|
+
}
|
|
86
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFilterValuePickerHierarchy, [{
|
|
87
|
+
type: Component,
|
|
88
|
+
args: [{
|
|
89
|
+
selector: 'luzmo-filter-value-picker-hierarchy',
|
|
90
|
+
exportAs: 'luzmoFilterValuePickerHierarchy',
|
|
91
|
+
standalone: true,
|
|
92
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
93
|
+
template: '<ng-content />'
|
|
94
|
+
}]
|
|
95
|
+
}], () => [], { apiUrl: [{
|
|
96
|
+
type: Input,
|
|
97
|
+
args: [{ alias: 'apiUrl' }]
|
|
98
|
+
}], authKey: [{
|
|
99
|
+
type: Input,
|
|
100
|
+
args: [{ alias: 'authKey' }]
|
|
101
|
+
}], authToken: [{
|
|
102
|
+
type: Input,
|
|
103
|
+
args: [{ alias: 'authToken' }]
|
|
104
|
+
}], cacheTime: [{
|
|
105
|
+
type: Input,
|
|
106
|
+
args: [{ alias: 'cacheTime' }]
|
|
107
|
+
}], contentLanguage: [{
|
|
108
|
+
type: Input,
|
|
109
|
+
args: [{ alias: 'contentLanguage' }]
|
|
110
|
+
}], filter: [{
|
|
111
|
+
type: Input,
|
|
112
|
+
args: [{ alias: 'filter' }]
|
|
113
|
+
}], luzmoFilterValueChanged: [{ type: i0.Output, args: ["luzmoFilterValueChanged"] }] }); })();
|
|
114
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterValuePickerHierarchy, { className: "LuzmoFilterValuePickerHierarchy", filePath: "components/filter-value-picker-hierarchy.ts", lineNumber: 15 }); })();
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import '@luzmo/analytics-components-kit/filter-value-picker-numeric';
|
|
3
|
+
import type { LuzmoFilterValuePickerNumeric as LuzmoFilterValuePickerNumericHostElement } from '@luzmo/analytics-components-kit/filter-value-picker-numeric';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LuzmoFilterValuePickerNumeric 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(): LuzmoFilterValuePickerNumericHostElement;
|
|
13
|
+
/** The API URL of the databroker */
|
|
14
|
+
apiUrl?: string;
|
|
15
|
+
/** The auth key of the databroker */
|
|
16
|
+
authKey?: string;
|
|
17
|
+
/** The auth token of the databroker */
|
|
18
|
+
authToken?: string;
|
|
19
|
+
/** The cache time of the databroker */
|
|
20
|
+
cacheTime?: number;
|
|
21
|
+
/** The language to use for locale-aware formatting and labels */
|
|
22
|
+
contentLanguage?: string;
|
|
23
|
+
/** The filter used to retrieve the value */
|
|
24
|
+
filter?: any;
|
|
25
|
+
readonly luzmoFilterValueChanged: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
|
|
26
|
+
constructor();
|
|
27
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
+
/**
|
|
29
|
+
* Forward a wrapper @Input to the underlying host element via Renderer2 so
|
|
30
|
+
* the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
|
|
31
|
+
* Unlike a "skip undefined" guard, this lets consumers reset values back to
|
|
32
|
+
* undefined / null by clearing their bindings.
|
|
33
|
+
*/
|
|
34
|
+
private setHostProperty;
|
|
35
|
+
private bindEvents;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilterValuePickerNumeric, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterValuePickerNumeric, "luzmo-filter-value-picker-numeric", ["luzmoFilterValuePickerNumeric"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "cacheTime": { "alias": "cacheTime"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; }, { "luzmoFilterValueChanged": "luzmoFilterValueChanged"; }, never, ["*"], true, never>;
|
|
38
|
+
}
|
|
39
|
+
/** The underlying custom element type for LuzmoFilterValuePickerNumeric */
|
|
40
|
+
export type LuzmoFilterValuePickerNumericElement = LuzmoFilterValuePickerNumericHostElement;
|