@luzmo/ngx-analytics-components-kit 1.0.8-beta.6 → 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.
Files changed (60) hide show
  1. package/esm/components/data-field-panel.d.ts +4 -4
  2. package/esm/components/data-field.d.ts +4 -4
  3. package/esm/components/formula-editor.d.ts +0 -1
  4. package/esm/components/formula-editor.js +1 -1
  5. package/esm/components/item-slot-drop.d.ts +5 -5
  6. package/esm/index.d.ts +2 -54
  7. package/esm/index.js +2 -106
  8. package/package.json +2 -2
  9. package/esm/components/ai-chat-empty-state.d.ts +0 -39
  10. package/esm/components/ai-chat-empty-state.js +0 -99
  11. package/esm/components/ai-chat.d.ts +0 -147
  12. package/esm/components/ai-chat.js +0 -455
  13. package/esm/components/ai-interaction-textarea.d.ts +0 -106
  14. package/esm/components/ai-interaction-textarea.js +0 -305
  15. package/esm/components/data-field-level.d.ts +0 -50
  16. package/esm/components/data-field-level.js +0 -129
  17. package/esm/components/data-fields-select.d.ts +0 -81
  18. package/esm/components/data-fields-select.js +0 -227
  19. package/esm/components/dataset-icon.d.ts +0 -34
  20. package/esm/components/dataset-icon.js +0 -86
  21. package/esm/components/dataset-selector-list.d.ts +0 -56
  22. package/esm/components/dataset-selector-list.js +0 -155
  23. package/esm/components/dataset-selector-row.d.ts +0 -70
  24. package/esm/components/dataset-selector-row.js +0 -197
  25. package/esm/components/display-settings-binning.d.ts +0 -37
  26. package/esm/components/display-settings-binning.js +0 -91
  27. package/esm/components/display-settings-datetime.d.ts +0 -40
  28. package/esm/components/display-settings-datetime.js +0 -99
  29. package/esm/components/display-settings-grand-totals.d.ts +0 -37
  30. package/esm/components/display-settings-grand-totals.js +0 -91
  31. package/esm/components/display-settings-numeric.d.ts +0 -45
  32. package/esm/components/display-settings-numeric.js +0 -115
  33. package/esm/components/display-settings-period-over-period.d.ts +0 -44
  34. package/esm/components/display-settings-period-over-period.js +0 -107
  35. package/esm/components/display-settings.d.ts +0 -83
  36. package/esm/components/display-settings.js +0 -231
  37. package/esm/components/filter-expression-picker.d.ts +0 -64
  38. package/esm/components/filter-expression-picker.js +0 -179
  39. package/esm/components/filter-item.d.ts +0 -63
  40. package/esm/components/filter-item.js +0 -187
  41. package/esm/components/filter-parameter-picker.d.ts +0 -56
  42. package/esm/components/filter-parameter-picker.js +0 -151
  43. package/esm/components/filter-value-picker-datetime.d.ts +0 -47
  44. package/esm/components/filter-value-picker-datetime.js +0 -131
  45. package/esm/components/filter-value-picker-hierarchy.d.ts +0 -53
  46. package/esm/components/filter-value-picker-hierarchy.js +0 -155
  47. package/esm/components/filter-value-picker-numeric.d.ts +0 -53
  48. package/esm/components/filter-value-picker-numeric.js +0 -155
  49. package/esm/components/filter-value-picker.d.ts +0 -57
  50. package/esm/components/filter-value-picker.js +0 -171
  51. package/esm/components/formula-field.d.ts +0 -70
  52. package/esm/components/formula-field.js +0 -209
  53. package/esm/components/interactive-viz-item.d.ts +0 -63
  54. package/esm/components/interactive-viz-item.js +0 -188
  55. package/esm/components/slot-menu-list.d.ts +0 -46
  56. package/esm/components/slot-menu-list.js +0 -123
  57. package/esm/components/slot-menu.d.ts +0 -104
  58. package/esm/components/slot-menu.js +0 -300
  59. package/esm/components/viz-item-menu.d.ts +0 -42
  60. package/esm/components/viz-item-menu.js +0 -111
@@ -1,91 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/display-settings-grand-totals';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-display-settings-grand-totals>
7
- */
8
- export class LuzmoDisplaySettingsGrandTotals {
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 slotContent that is passed to the settings */
19
- slotContent;
20
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
21
- language;
22
- /** The size of the element */
23
- size;
24
- /** Event that is fired when the slot content is changed */
25
- luzmoSlotContentChanged = output({ alias: 'luzmoSlotContentChanged' });
26
- constructor() {
27
- this.bindEvents();
28
- this.destroyRef.onDestroy(() => {
29
- for (const cleanup of this.listenerCleanup) {
30
- cleanup();
31
- }
32
- });
33
- }
34
- ngOnChanges(changes) {
35
- for (const key of Object.keys(changes)) {
36
- switch (key) {
37
- case 'slotContent':
38
- this.setHostProperty('slotContent', changes['slotContent'].currentValue);
39
- break;
40
- case 'language':
41
- this.setHostProperty('language', changes['language'].currentValue);
42
- break;
43
- case 'size':
44
- this.setHostProperty('size', changes['size'].currentValue);
45
- break;
46
- default:
47
- break;
48
- }
49
- }
50
- }
51
- /**
52
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
53
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
54
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
55
- * undefined / null by clearing their bindings.
56
- */
57
- setHostProperty(key, value) {
58
- this.renderer.setProperty(this.host, key, value);
59
- }
60
- bindEvents() {
61
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-slot-content-changed', (event) => {
62
- const typed = event;
63
- this.luzmoSlotContentChanged.emit(typed);
64
- }));
65
- }
66
- static ɵfac = function LuzmoDisplaySettingsGrandTotals_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDisplaySettingsGrandTotals)(); };
67
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDisplaySettingsGrandTotals, selectors: [["luzmo-display-settings-grand-totals"]], inputs: { slotContent: "slotContent", language: "language", size: "size" }, outputs: { luzmoSlotContentChanged: "luzmoSlotContentChanged" }, exportAs: ["luzmoDisplaySettingsGrandTotals"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDisplaySettingsGrandTotals_Template(rf, ctx) { if (rf & 1) {
68
- i0.ɵɵprojectionDef();
69
- i0.ɵɵprojection(0);
70
- } }, encapsulation: 2 });
71
- }
72
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoDisplaySettingsGrandTotals, [{
73
- type: Component,
74
- args: [{
75
- selector: 'luzmo-display-settings-grand-totals',
76
- exportAs: 'luzmoDisplaySettingsGrandTotals',
77
- standalone: true,
78
- changeDetection: ChangeDetectionStrategy.OnPush,
79
- template: '<ng-content />'
80
- }]
81
- }], () => [], { slotContent: [{
82
- type: Input,
83
- args: [{ alias: 'slotContent' }]
84
- }], language: [{
85
- type: Input,
86
- args: [{ alias: 'language' }]
87
- }], size: [{
88
- type: Input,
89
- args: [{ alias: 'size' }]
90
- }], luzmoSlotContentChanged: [{ type: i0.Output, args: ["luzmoSlotContentChanged"] }] }); })();
91
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoDisplaySettingsGrandTotals, { className: "LuzmoDisplaySettingsGrandTotals", filePath: "components/display-settings-grand-totals.ts", lineNumber: 17 }); })();
@@ -1,45 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/display-settings-numeric';
3
- import type { LuzmoDisplaySettingsNumeric as LuzmoDisplaySettingsNumericHostElement, DisplaySettingsSlotContentChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings-numeric';
4
- import type { MeasureColumnsItem } from '@luzmo/analytics-components-kit/slot-menu';
5
- import * as i0 from "@angular/core";
6
- export type { DisplaySettingsSlotContentChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings-numeric';
7
- export declare class LuzmoDisplaySettingsNumeric implements OnChanges {
8
- private readonly elementRef;
9
- private readonly renderer;
10
- private readonly destroyRef;
11
- private readonly host;
12
- private readonly listenerCleanup;
13
- /** The underlying custom element instance. Use to call imperative methods. */
14
- get nativeElement(): LuzmoDisplaySettingsNumericHostElement;
15
- /** The slotContent that is passed to the settings */
16
- slotContent?: any;
17
- /** The list of measure columns grouped by dataset that can be used for the rate aggregation. Shape: [{ datasetId, datasetName, columns: Column[] }] */
18
- measureColumns?: MeasureColumnsItem[];
19
- /** Whether or not to show the aggregation options */
20
- isAggregationDisabled?: boolean;
21
- /** Whether or not to show the cumulative sum options */
22
- isCumulativeSumEnabled?: boolean;
23
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
24
- language?: string;
25
- /** The size of the element */
26
- size?: 's' | 'm' | 'l' | 'xl';
27
- /** Event that is fired when the slot content is changed */
28
- readonly luzmoSlotContentChanged: import("@angular/core").OutputEmitterRef<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
29
- constructor();
30
- ngOnChanges(changes: SimpleChanges): void;
31
- /**
32
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
33
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
34
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
35
- * undefined / null by clearing their bindings.
36
- */
37
- private setHostProperty;
38
- private bindEvents;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDisplaySettingsNumeric, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDisplaySettingsNumeric, "luzmo-display-settings-numeric", ["luzmoDisplaySettingsNumeric"], { "slotContent": { "alias": "slotContent"; "required": false; }; "measureColumns": { "alias": "measureColumns"; "required": false; }; "isAggregationDisabled": { "alias": "isAggregationDisabled"; "required": false; }; "isCumulativeSumEnabled": { "alias": "isCumulativeSumEnabled"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentChanged": "luzmoSlotContentChanged"; }, never, ["*"], true, never>;
41
- static ngAcceptInputType_isAggregationDisabled: unknown;
42
- static ngAcceptInputType_isCumulativeSumEnabled: unknown;
43
- }
44
- /** The underlying custom element type for LuzmoDisplaySettingsNumeric */
45
- export type LuzmoDisplaySettingsNumericElement = LuzmoDisplaySettingsNumericHostElement;
@@ -1,115 +0,0 @@
1
- import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/display-settings-numeric';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-display-settings-numeric>
7
- */
8
- export class LuzmoDisplaySettingsNumeric {
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 slotContent that is passed to the settings */
19
- slotContent;
20
- /** The list of measure columns grouped by dataset that can be used for the rate aggregation. Shape: [{ datasetId, datasetName, columns: Column[] }] */
21
- measureColumns;
22
- /** Whether or not to show the aggregation options */
23
- isAggregationDisabled;
24
- /** Whether or not to show the cumulative sum options */
25
- isCumulativeSumEnabled;
26
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
27
- language;
28
- /** The size of the element */
29
- size;
30
- /** Event that is fired when the slot content is changed */
31
- luzmoSlotContentChanged = output({ alias: 'luzmoSlotContentChanged' });
32
- constructor() {
33
- this.bindEvents();
34
- this.destroyRef.onDestroy(() => {
35
- for (const cleanup of this.listenerCleanup) {
36
- cleanup();
37
- }
38
- });
39
- }
40
- ngOnChanges(changes) {
41
- for (const key of Object.keys(changes)) {
42
- switch (key) {
43
- case 'slotContent':
44
- this.setHostProperty('slotContent', changes['slotContent'].currentValue);
45
- break;
46
- case 'measureColumns':
47
- this.setHostProperty('measureColumns', changes['measureColumns'].currentValue);
48
- break;
49
- case 'isAggregationDisabled':
50
- this.setHostProperty('isAggregationDisabled', changes['isAggregationDisabled'].currentValue);
51
- break;
52
- case 'isCumulativeSumEnabled':
53
- this.setHostProperty('isCumulativeSumEnabled', changes['isCumulativeSumEnabled'].currentValue);
54
- break;
55
- case 'language':
56
- this.setHostProperty('language', changes['language'].currentValue);
57
- break;
58
- case 'size':
59
- this.setHostProperty('size', changes['size'].currentValue);
60
- break;
61
- default:
62
- break;
63
- }
64
- }
65
- }
66
- /**
67
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
68
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
69
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
70
- * undefined / null by clearing their bindings.
71
- */
72
- setHostProperty(key, value) {
73
- this.renderer.setProperty(this.host, key, value);
74
- }
75
- bindEvents() {
76
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-slot-content-changed', (event) => {
77
- const typed = event;
78
- this.luzmoSlotContentChanged.emit(typed);
79
- }));
80
- }
81
- static ɵfac = function LuzmoDisplaySettingsNumeric_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDisplaySettingsNumeric)(); };
82
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDisplaySettingsNumeric, selectors: [["luzmo-display-settings-numeric"]], inputs: { slotContent: "slotContent", measureColumns: "measureColumns", isAggregationDisabled: [2, "isAggregationDisabled", "isAggregationDisabled", booleanAttribute], isCumulativeSumEnabled: [2, "isCumulativeSumEnabled", "isCumulativeSumEnabled", booleanAttribute], language: "language", size: "size" }, outputs: { luzmoSlotContentChanged: "luzmoSlotContentChanged" }, exportAs: ["luzmoDisplaySettingsNumeric"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDisplaySettingsNumeric_Template(rf, ctx) { if (rf & 1) {
83
- i0.ɵɵprojectionDef();
84
- i0.ɵɵprojection(0);
85
- } }, encapsulation: 2 });
86
- }
87
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoDisplaySettingsNumeric, [{
88
- type: Component,
89
- args: [{
90
- selector: 'luzmo-display-settings-numeric',
91
- exportAs: 'luzmoDisplaySettingsNumeric',
92
- standalone: true,
93
- changeDetection: ChangeDetectionStrategy.OnPush,
94
- template: '<ng-content />'
95
- }]
96
- }], () => [], { slotContent: [{
97
- type: Input,
98
- args: [{ alias: 'slotContent' }]
99
- }], measureColumns: [{
100
- type: Input,
101
- args: [{ alias: 'measureColumns' }]
102
- }], isAggregationDisabled: [{
103
- type: Input,
104
- args: [{ alias: 'isAggregationDisabled', transform: booleanAttribute }]
105
- }], isCumulativeSumEnabled: [{
106
- type: Input,
107
- args: [{ alias: 'isCumulativeSumEnabled', transform: booleanAttribute }]
108
- }], language: [{
109
- type: Input,
110
- args: [{ alias: 'language' }]
111
- }], size: [{
112
- type: Input,
113
- args: [{ alias: 'size' }]
114
- }], luzmoSlotContentChanged: [{ type: i0.Output, args: ["luzmoSlotContentChanged"] }] }); })();
115
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoDisplaySettingsNumeric, { className: "LuzmoDisplaySettingsNumeric", filePath: "components/display-settings-numeric.ts", lineNumber: 17 }); })();
@@ -1,44 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/display-settings-period-over-period';
3
- import type { LuzmoDisplaySettingsPeriodOverPeriod as LuzmoDisplaySettingsPeriodOverPeriodHostElement, DisplaySettingsSlotContentChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings-period-over-period';
4
- import type { PeriodOverPeriodCondition } from '@luzmo/analytics-components-kit/types';
5
- import type { Column } from '@luzmo/dashboard-contents-types';
6
- import * as i0 from "@angular/core";
7
- export type { DisplaySettingsSlotContentChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings-period-over-period';
8
- export declare class LuzmoDisplaySettingsPeriodOverPeriod 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(): LuzmoDisplaySettingsPeriodOverPeriodHostElement;
16
- /** The slotContent that is passed to the settings */
17
- slotContent?: any;
18
- /** Which period-over-period UI variant to render, based on available datetime columns and comparison filters. */
19
- periodOverPeriodUiType?: PeriodOverPeriodCondition;
20
- /** Datetime columns from the linked dataset available as offset/comparison date columns. */
21
- linkedDatasetDatetimeColumns?: (Column & {
22
- datasetId: string;
23
- })[];
24
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
25
- language?: string;
26
- /** The size of the element */
27
- size?: 's' | 'm' | 'l' | 'xl';
28
- /** Event that is fired when the slot content is changed */
29
- readonly luzmoSlotContentChanged: import("@angular/core").OutputEmitterRef<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
30
- constructor();
31
- ngOnChanges(changes: SimpleChanges): void;
32
- /**
33
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
34
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
35
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
36
- * undefined / null by clearing their bindings.
37
- */
38
- private setHostProperty;
39
- private bindEvents;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDisplaySettingsPeriodOverPeriod, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDisplaySettingsPeriodOverPeriod, "luzmo-display-settings-period-over-period", ["luzmoDisplaySettingsPeriodOverPeriod"], { "slotContent": { "alias": "slotContent"; "required": false; }; "periodOverPeriodUiType": { "alias": "periodOverPeriodType"; "required": false; }; "linkedDatasetDatetimeColumns": { "alias": "linkedDatasetDatetimeColumns"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentChanged": "luzmoSlotContentChanged"; }, never, ["*"], true, never>;
42
- }
43
- /** The underlying custom element type for LuzmoDisplaySettingsPeriodOverPeriod */
44
- export type LuzmoDisplaySettingsPeriodOverPeriodElement = LuzmoDisplaySettingsPeriodOverPeriodHostElement;
@@ -1,107 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/display-settings-period-over-period';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-display-settings-period-over-period>
7
- */
8
- export class LuzmoDisplaySettingsPeriodOverPeriod {
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 slotContent that is passed to the settings */
19
- slotContent;
20
- /** Which period-over-period UI variant to render, based on available datetime columns and comparison filters. */
21
- periodOverPeriodUiType;
22
- /** Datetime columns from the linked dataset available as offset/comparison date columns. */
23
- linkedDatasetDatetimeColumns;
24
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
25
- language;
26
- /** The size of the element */
27
- size;
28
- /** Event that is fired when the slot content is changed */
29
- luzmoSlotContentChanged = output({ alias: 'luzmoSlotContentChanged' });
30
- constructor() {
31
- this.bindEvents();
32
- this.destroyRef.onDestroy(() => {
33
- for (const cleanup of this.listenerCleanup) {
34
- cleanup();
35
- }
36
- });
37
- }
38
- ngOnChanges(changes) {
39
- for (const key of Object.keys(changes)) {
40
- switch (key) {
41
- case 'slotContent':
42
- this.setHostProperty('slotContent', changes['slotContent'].currentValue);
43
- break;
44
- case 'periodOverPeriodUiType':
45
- this.setHostProperty('periodOverPeriodUiType', changes['periodOverPeriodUiType'].currentValue);
46
- break;
47
- case 'linkedDatasetDatetimeColumns':
48
- this.setHostProperty('linkedDatasetDatetimeColumns', changes['linkedDatasetDatetimeColumns'].currentValue);
49
- break;
50
- case 'language':
51
- this.setHostProperty('language', changes['language'].currentValue);
52
- break;
53
- case 'size':
54
- this.setHostProperty('size', changes['size'].currentValue);
55
- break;
56
- default:
57
- break;
58
- }
59
- }
60
- }
61
- /**
62
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
63
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
64
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
65
- * undefined / null by clearing their bindings.
66
- */
67
- setHostProperty(key, value) {
68
- this.renderer.setProperty(this.host, key, value);
69
- }
70
- bindEvents() {
71
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-slot-content-changed', (event) => {
72
- const typed = event;
73
- this.luzmoSlotContentChanged.emit(typed);
74
- }));
75
- }
76
- static ɵfac = function LuzmoDisplaySettingsPeriodOverPeriod_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDisplaySettingsPeriodOverPeriod)(); };
77
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDisplaySettingsPeriodOverPeriod, selectors: [["luzmo-display-settings-period-over-period"]], inputs: { slotContent: "slotContent", periodOverPeriodUiType: [0, "periodOverPeriodType", "periodOverPeriodUiType"], linkedDatasetDatetimeColumns: "linkedDatasetDatetimeColumns", language: "language", size: "size" }, outputs: { luzmoSlotContentChanged: "luzmoSlotContentChanged" }, exportAs: ["luzmoDisplaySettingsPeriodOverPeriod"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDisplaySettingsPeriodOverPeriod_Template(rf, ctx) { if (rf & 1) {
78
- i0.ɵɵprojectionDef();
79
- i0.ɵɵprojection(0);
80
- } }, encapsulation: 2 });
81
- }
82
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoDisplaySettingsPeriodOverPeriod, [{
83
- type: Component,
84
- args: [{
85
- selector: 'luzmo-display-settings-period-over-period',
86
- exportAs: 'luzmoDisplaySettingsPeriodOverPeriod',
87
- standalone: true,
88
- changeDetection: ChangeDetectionStrategy.OnPush,
89
- template: '<ng-content />'
90
- }]
91
- }], () => [], { slotContent: [{
92
- type: Input,
93
- args: [{ alias: 'slotContent' }]
94
- }], periodOverPeriodUiType: [{
95
- type: Input,
96
- args: [{ alias: 'periodOverPeriodType' }]
97
- }], linkedDatasetDatetimeColumns: [{
98
- type: Input,
99
- args: [{ alias: 'linkedDatasetDatetimeColumns' }]
100
- }], language: [{
101
- type: Input,
102
- args: [{ alias: 'language' }]
103
- }], size: [{
104
- type: Input,
105
- args: [{ alias: 'size' }]
106
- }], luzmoSlotContentChanged: [{ type: i0.Output, args: ["luzmoSlotContentChanged"] }] }); })();
107
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoDisplaySettingsPeriodOverPeriod, { className: "LuzmoDisplaySettingsPeriodOverPeriod", filePath: "components/display-settings-period-over-period.ts", lineNumber: 18 }); })();
@@ -1,83 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/display-settings';
3
- import type { LuzmoDisplaySettings as LuzmoDisplaySettingsHostElement, DisplaySettingsSlotContentChangedEventDetail, InfoVisibilityChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings';
4
- import type { DatasetDataFields } from '@luzmo/analytics-components-kit/data-field-panel';
5
- import type { MeasureColumnsItem } from '@luzmo/analytics-components-kit/slot-menu';
6
- import type { PeriodOverPeriodCondition, SlotContent } from '@luzmo/analytics-components-kit/types';
7
- import type { SlotName } from '@luzmo/dashboard-contents-types';
8
- import * as i0 from "@angular/core";
9
- export type { DisplaySettingsRemoveSlotContentEventDetail, DisplaySettingsSlotContentChangedEventDetail, InfoVisibilityChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings';
10
- export declare class LuzmoDisplaySettings implements OnChanges {
11
- private readonly elementRef;
12
- private readonly renderer;
13
- private readonly destroyRef;
14
- private readonly host;
15
- private readonly listenerCleanup;
16
- /** The underlying custom element instance. Use to call imperative methods. */
17
- get nativeElement(): LuzmoDisplaySettingsHostElement;
18
- /** The language of the settings interface */
19
- language?: string;
20
- /** The language to use for locale-aware formatting and labels */
21
- contentLanguage?: string;
22
- /** Whether to show the displaySettings. Is used to hide display Settings in cases where there are multiple columns */
23
- hideDisplaySettings?: boolean;
24
- /** Whether to show the binning in numeric */
25
- isBinningDisabled?: boolean;
26
- /** Whether to show the datetime options */
27
- areDatetimeOptionsEnabled?: boolean;
28
- /** Whether to show the grand totals */
29
- areGrandTotalsEnabled?: boolean;
30
- /** Whether to show the aggregation options */
31
- isAggregationDisabled?: boolean;
32
- /** Whether to show the cumulative sum options */
33
- isCumulativeSumEnabled?: boolean;
34
- /** Whether to show the period-over-period in numeric */
35
- periodOverPeriodUiType?: PeriodOverPeriodCondition | null;
36
- /** Whether to show the trash button next to the label */
37
- showRemoveButton?: boolean;
38
- /** The slot type */
39
- slotType?: string;
40
- /** The slot name used to distinguish measure and dimension calculations. */
41
- slotName?: SlotName;
42
- /** The slot content model (label, formatting, aggregation, etc.) for the field being configured. */
43
- slotContent?: SlotContent;
44
- /** Datasets used to resolve column names in ad-hoc calculation previews. */
45
- datasetsDataFields?: DatasetDataFields[];
46
- /** The API URL used when resolving calculation previews by dataset id. */
47
- apiUrl?: string;
48
- /** The auth key used when resolving calculation previews by dataset id. */
49
- authKey?: string;
50
- /** The auth token used when resolving calculation previews by dataset id. */
51
- authToken?: string;
52
- /** The list of columns that can be used for the rate aggregation */
53
- measureColumns?: MeasureColumnsItem[];
54
- /** The size of the element */
55
- size?: 's' | 'm' | 'l' | 'xl';
56
- /** Event that is fired when the slot content is changed */
57
- readonly luzmoSlotContentChanged: import("@angular/core").OutputEmitterRef<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
58
- /** Event that is fired when the remove button is clicked */
59
- readonly luzmoRemoveSlotContent: import("@angular/core").OutputEmitterRef<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
60
- /** Event that is fired when the info button is clicked, includes the visibility state and ID values */
61
- readonly luzmoInfoVisibilityChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InfoVisibilityChangedEventDetail>>;
62
- constructor();
63
- ngOnChanges(changes: SimpleChanges): void;
64
- /**
65
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
66
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
67
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
68
- * undefined / null by clearing their bindings.
69
- */
70
- private setHostProperty;
71
- private bindEvents;
72
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDisplaySettings, never>;
73
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoDisplaySettings, "luzmo-display-settings", ["luzmoDisplaySettings"], { "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "hideDisplaySettings": { "alias": "hideDisplaySettings"; "required": false; }; "isBinningDisabled": { "alias": "isBinningDisabled"; "required": false; }; "areDatetimeOptionsEnabled": { "alias": "areDatetimeOptionsEnabled"; "required": false; }; "areGrandTotalsEnabled": { "alias": "areGrandTotalsEnabled"; "required": false; }; "isAggregationDisabled": { "alias": "isAggregationDisabled"; "required": false; }; "isCumulativeSumEnabled": { "alias": "isCumulativeSumEnabled"; "required": false; }; "periodOverPeriodUiType": { "alias": "periodOverPeriodUiType"; "required": false; }; "showRemoveButton": { "alias": "showRemoveButton"; "required": false; }; "slotType": { "alias": "slotType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotContent": { "alias": "slotContent"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "measureColumns": { "alias": "measureColumns"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentChanged": "luzmoSlotContentChanged"; "luzmoRemoveSlotContent": "luzmoRemoveSlotContent"; "luzmoInfoVisibilityChanged": "luzmoInfoVisibilityChanged"; }, never, ["*"], true, never>;
74
- static ngAcceptInputType_hideDisplaySettings: unknown;
75
- static ngAcceptInputType_isBinningDisabled: unknown;
76
- static ngAcceptInputType_areDatetimeOptionsEnabled: unknown;
77
- static ngAcceptInputType_areGrandTotalsEnabled: unknown;
78
- static ngAcceptInputType_isAggregationDisabled: unknown;
79
- static ngAcceptInputType_isCumulativeSumEnabled: unknown;
80
- static ngAcceptInputType_showRemoveButton: unknown;
81
- }
82
- /** The underlying custom element type for LuzmoDisplaySettings */
83
- export type LuzmoDisplaySettingsElement = LuzmoDisplaySettingsHostElement;