@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,123 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/slot-menu-list';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-slot-menu-list>
7
- */
8
- export class LuzmoSlotMenuList {
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
- /** The list of slot contents (columns/formulas) shown in the reorderable list. */
23
- slotContents;
24
- /** The containing slot name used to identify measure calculations. */
25
- slotName;
26
- /** The containing slot type used to identify measure calculations. */
27
- slotType;
28
- /** Index of the currently active/selected slot content. */
29
- activeIndex;
30
- /** The size of the element */
31
- size;
32
- /** Emitted when the slot list changes */
33
- luzmoSlotListChanged = output({ alias: 'luzmoSlotListChanged' });
34
- constructor() {
35
- this.bindEvents();
36
- this.destroyRef.onDestroy(() => {
37
- for (const cleanup of this.listenerCleanup) {
38
- cleanup();
39
- }
40
- });
41
- }
42
- ngOnChanges(changes) {
43
- for (const key of Object.keys(changes)) {
44
- switch (key) {
45
- case 'language':
46
- this.setHostProperty('language', changes['language'].currentValue);
47
- break;
48
- case 'contentLanguage':
49
- this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
50
- break;
51
- case 'slotContents':
52
- this.setHostProperty('slotContents', changes['slotContents'].currentValue);
53
- break;
54
- case 'slotName':
55
- this.setHostProperty('slotName', changes['slotName'].currentValue);
56
- break;
57
- case 'slotType':
58
- this.setHostProperty('slotType', changes['slotType'].currentValue);
59
- break;
60
- case 'activeIndex':
61
- this.setHostProperty('activeIndex', changes['activeIndex'].currentValue);
62
- break;
63
- case 'size':
64
- this.setHostProperty('size', changes['size'].currentValue);
65
- break;
66
- default:
67
- break;
68
- }
69
- }
70
- }
71
- /**
72
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
73
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
74
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
75
- * undefined / null by clearing their bindings.
76
- */
77
- setHostProperty(key, value) {
78
- this.renderer.setProperty(this.host, key, value);
79
- }
80
- bindEvents() {
81
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-slot-list-changed', (event) => {
82
- const typed = event;
83
- this.luzmoSlotListChanged.emit(typed);
84
- }));
85
- }
86
- static ɵfac = function LuzmoSlotMenuList_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoSlotMenuList)(); };
87
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoSlotMenuList, selectors: [["luzmo-slot-menu-list"]], inputs: { language: "language", contentLanguage: "contentLanguage", slotContents: "slotContents", slotName: "slotName", slotType: "slotType", activeIndex: "activeIndex", size: "size" }, outputs: { luzmoSlotListChanged: "luzmoSlotListChanged" }, exportAs: ["luzmoSlotMenuList"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoSlotMenuList_Template(rf, ctx) { if (rf & 1) {
88
- i0.ɵɵprojectionDef();
89
- i0.ɵɵprojection(0);
90
- } }, encapsulation: 2 });
91
- }
92
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoSlotMenuList, [{
93
- type: Component,
94
- args: [{
95
- selector: 'luzmo-slot-menu-list',
96
- exportAs: 'luzmoSlotMenuList',
97
- standalone: true,
98
- changeDetection: ChangeDetectionStrategy.OnPush,
99
- template: '<ng-content />'
100
- }]
101
- }], () => [], { language: [{
102
- type: Input,
103
- args: [{ alias: 'language' }]
104
- }], contentLanguage: [{
105
- type: Input,
106
- args: [{ alias: 'contentLanguage' }]
107
- }], slotContents: [{
108
- type: Input,
109
- args: [{ alias: 'slotContents' }]
110
- }], slotName: [{
111
- type: Input,
112
- args: [{ alias: 'slotName' }]
113
- }], slotType: [{
114
- type: Input,
115
- args: [{ alias: 'slotType' }]
116
- }], activeIndex: [{
117
- type: Input,
118
- args: [{ alias: 'activeIndex' }]
119
- }], size: [{
120
- type: Input,
121
- args: [{ alias: 'size' }]
122
- }], luzmoSlotListChanged: [{ type: i0.Output, args: ["luzmoSlotListChanged"] }] }); })();
123
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoSlotMenuList, { className: "LuzmoSlotMenuList", filePath: "components/slot-menu-list.ts", lineNumber: 18 }); })();
@@ -1,104 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/slot-menu';
3
- import type { LuzmoSlotMenu as LuzmoSlotMenuHostElement, InfoVisibilityChangedEventDetail, MeasureColumnsItem, SlotContentsChangedEventDetail, SlotMenuActiveEventDetail, SlotMenuHighlightEventDetail } from '@luzmo/analytics-components-kit/slot-menu';
4
- import type { DatasetDataFields } from '@luzmo/analytics-components-kit/data-field-panel';
5
- import type { LuzmoDisplaySettings } from '@luzmo/analytics-components-kit/display-settings';
6
- import type { LuzmoSlotMenuList } from '@luzmo/analytics-components-kit/slot-menu-list';
7
- import type { SlotContent } from '@luzmo/analytics-components-kit/types';
8
- import type { SlotName, VizItemType } from '@luzmo/dashboard-contents-types';
9
- import * as i0 from "@angular/core";
10
- export type { InfoVisibilityChangedEventDetail, MeasureColumnsItem, SlotContentChangedEventDetail, SlotContentsChangedEventDetail, SlotListChangedEventDetail, SlotMenuActiveEventDetail, SlotMenuHighlightEventDetail } from '@luzmo/analytics-components-kit/slot-menu';
11
- export declare class LuzmoSlotMenu implements OnChanges {
12
- private readonly elementRef;
13
- private readonly renderer;
14
- private readonly destroyRef;
15
- private readonly host;
16
- private readonly listenerCleanup;
17
- /** The underlying custom element instance. Use to call imperative methods. */
18
- get nativeElement(): LuzmoSlotMenuHostElement;
19
- /** The language of the settings interface */
20
- language?: string;
21
- /** The language to use for locale-aware formatting and labels */
22
- contentLanguage?: string;
23
- /** The slot type */
24
- slotType?: 'numeric' | 'categorical' | 'mixed';
25
- /** The name of the slot being edited. */
26
- slotName?: SlotName;
27
- /** The visualization item type that provides slot and option configuration. */
28
- itemType?: VizItemType;
29
- /** Whether to show the drag handle and allow dragging */
30
- noDrag?: boolean;
31
- /** Whether to show the close button */
32
- noClose?: boolean;
33
- /** The variant to show */
34
- variant?: 'popup' | 'draggable' | 'default';
35
- /** Whether to show the top menu label & delete button */
36
- noTopMenuLabel?: boolean;
37
- /** CSS selector for the boundary element that constrains dragging of the menu. */
38
- dragBoundary?: string;
39
- /** Whether grand-totals options are available for this slot. */
40
- areGrandTotalsEnabled?: boolean;
41
- /** Whether datetime display options are available for this slot. */
42
- areDatetimeOptionsEnabled?: boolean;
43
- /** Whether numeric binning options are hidden for this slot. */
44
- isBinningDisabled?: boolean;
45
- /** Whether aggregation options are hidden for this slot. */
46
- isAggregationDisabled?: boolean;
47
- /** Whether cumulative-sum options are available for this slot. */
48
- isCumulativeSumEnabled?: boolean;
49
- /** The contents (columns/formulas) assigned to this slot. */
50
- slotContents?: SlotContent[];
51
- /** Measure columns available for rate aggregation. */
52
- measureColumns?: MeasureColumnsItem[];
53
- /** (Optional) If you only want to display a specific content of a slot, you can set the slotIndex to the index of the content you want to display. */
54
- slotIndex?: number;
55
- /** Reference to the rendered display-settings element. */
56
- displaySettingsElement?: LuzmoDisplaySettings;
57
- /** Reference to the rendered slot-menu-list element. */
58
- slotMenuListElement?: LuzmoSlotMenuList;
59
- /** The API URL of the databroker */
60
- apiUrl?: string;
61
- /** The auth key of the databroker */
62
- authKey?: string;
63
- /** The auth token of the databroker */
64
- authToken?: string;
65
- /** Datasets used to resolve column names in ad-hoc calculation previews. */
66
- datasetsDataFields?: DatasetDataFields[];
67
- /** The size of the element */
68
- size?: 's' | 'm' | 'l' | 'xl';
69
- /** Emitted when the slot contents change */
70
- readonly luzmoSlotContentsChanged: import("@angular/core").OutputEmitterRef<CustomEvent<SlotContentsChangedEventDetail>>;
71
- /** Emitted when the slot menu is closed */
72
- readonly luzmoClose: import("@angular/core").OutputEmitterRef<CustomEvent<void>>;
73
- /** Emitted when the slot menu becomes active for a dataset */
74
- readonly luzmoSlotMenuActive: import("@angular/core").OutputEmitterRef<CustomEvent<SlotMenuActiveEventDetail>>;
75
- /** Emitted to highlight a column or formula in the slot menu */
76
- readonly luzmoSlotMenuHighlight: import("@angular/core").OutputEmitterRef<CustomEvent<SlotMenuHighlightEventDetail>>;
77
- /** Emitted when the menu becomes inactive. */
78
- readonly luzmoSlotMenuInactive: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
79
- /** Event that is fired when the info button is clicked in display-settings, includes the visibility state and ID values */
80
- readonly luzmoInfoVisibilityChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InfoVisibilityChangedEventDetail>>;
81
- constructor();
82
- ngOnChanges(changes: SimpleChanges): void;
83
- /**
84
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
85
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
86
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
87
- * undefined / null by clearing their bindings.
88
- */
89
- private setHostProperty;
90
- private bindEvents;
91
- close(): void;
92
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoSlotMenu, never>;
93
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoSlotMenu, "luzmo-slot-menu", ["luzmoSlotMenu"], { "language": { "alias": "language"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotType": { "alias": "slotType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "noDrag": { "alias": "noDrag"; "required": false; }; "noClose": { "alias": "noClose"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "noTopMenuLabel": { "alias": "noTopMenuLabel"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "areGrandTotalsEnabled": { "alias": "areGrandTotalsEnabled"; "required": false; }; "areDatetimeOptionsEnabled": { "alias": "areDatetimeOptionsEnabled"; "required": false; }; "isBinningDisabled": { "alias": "isBinningDisabled"; "required": false; }; "isAggregationDisabled": { "alias": "isAggregationDisabled"; "required": false; }; "isCumulativeSumEnabled": { "alias": "isCumulativeSumEnabled"; "required": false; }; "slotContents": { "alias": "slotContents"; "required": false; }; "measureColumns": { "alias": "measureColumns"; "required": false; }; "slotIndex": { "alias": "slotIndex"; "required": false; }; "displaySettingsElement": { "alias": "displaySettingsElement"; "required": false; }; "slotMenuListElement": { "alias": "slotMenuListElement"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; "luzmoClose": "luzmoClose"; "luzmoSlotMenuActive": "luzmoSlotMenuActive"; "luzmoSlotMenuHighlight": "luzmoSlotMenuHighlight"; "luzmoSlotMenuInactive": "luzmoSlotMenuInactive"; "luzmoInfoVisibilityChanged": "luzmoInfoVisibilityChanged"; }, never, ["*"], true, never>;
94
- static ngAcceptInputType_noDrag: unknown;
95
- static ngAcceptInputType_noClose: unknown;
96
- static ngAcceptInputType_noTopMenuLabel: unknown;
97
- static ngAcceptInputType_areGrandTotalsEnabled: unknown;
98
- static ngAcceptInputType_areDatetimeOptionsEnabled: unknown;
99
- static ngAcceptInputType_isBinningDisabled: unknown;
100
- static ngAcceptInputType_isAggregationDisabled: unknown;
101
- static ngAcceptInputType_isCumulativeSumEnabled: unknown;
102
- }
103
- /** The underlying custom element type for LuzmoSlotMenu */
104
- export type LuzmoSlotMenuElement = LuzmoSlotMenuHostElement;
@@ -1,300 +0,0 @@
1
- import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/slot-menu';
3
- import * as i0 from "@angular/core";
4
- const _c0 = ["*"];
5
- /**
6
- * Angular wrapper component for <luzmo-slot-menu>
7
- */
8
- export class LuzmoSlotMenu {
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
- /** The slot type */
23
- slotType;
24
- /** The name of the slot being edited. */
25
- slotName;
26
- /** The visualization item type that provides slot and option configuration. */
27
- itemType;
28
- /** Whether to show the drag handle and allow dragging */
29
- noDrag;
30
- /** Whether to show the close button */
31
- noClose;
32
- /** The variant to show */
33
- variant;
34
- /** Whether to show the top menu label & delete button */
35
- noTopMenuLabel;
36
- /** CSS selector for the boundary element that constrains dragging of the menu. */
37
- dragBoundary;
38
- /** Whether grand-totals options are available for this slot. */
39
- areGrandTotalsEnabled;
40
- /** Whether datetime display options are available for this slot. */
41
- areDatetimeOptionsEnabled;
42
- /** Whether numeric binning options are hidden for this slot. */
43
- isBinningDisabled;
44
- /** Whether aggregation options are hidden for this slot. */
45
- isAggregationDisabled;
46
- /** Whether cumulative-sum options are available for this slot. */
47
- isCumulativeSumEnabled;
48
- /** The contents (columns/formulas) assigned to this slot. */
49
- slotContents;
50
- /** Measure columns available for rate aggregation. */
51
- measureColumns;
52
- /** (Optional) If you only want to display a specific content of a slot, you can set the slotIndex to the index of the content you want to display. */
53
- slotIndex;
54
- /** Reference to the rendered display-settings element. */
55
- displaySettingsElement;
56
- /** Reference to the rendered slot-menu-list element. */
57
- slotMenuListElement;
58
- /** The API URL of the databroker */
59
- apiUrl;
60
- /** The auth key of the databroker */
61
- authKey;
62
- /** The auth token of the databroker */
63
- authToken;
64
- /** Datasets used to resolve column names in ad-hoc calculation previews. */
65
- datasetsDataFields;
66
- /** The size of the element */
67
- size;
68
- /** Emitted when the slot contents change */
69
- luzmoSlotContentsChanged = output({ alias: 'luzmoSlotContentsChanged' });
70
- /** Emitted when the slot menu is closed */
71
- luzmoClose = output({ alias: 'luzmoClose' });
72
- /** Emitted when the slot menu becomes active for a dataset */
73
- luzmoSlotMenuActive = output({ alias: 'luzmoSlotMenuActive' });
74
- /** Emitted to highlight a column or formula in the slot menu */
75
- luzmoSlotMenuHighlight = output({ alias: 'luzmoSlotMenuHighlight' });
76
- /** Emitted when the menu becomes inactive. */
77
- luzmoSlotMenuInactive = output({ alias: 'luzmoSlotMenuInactive' });
78
- /** Event that is fired when the info button is clicked in display-settings, includes the visibility state and ID values */
79
- luzmoInfoVisibilityChanged = output({ alias: 'luzmoInfoVisibilityChanged' });
80
- constructor() {
81
- this.bindEvents();
82
- this.destroyRef.onDestroy(() => {
83
- for (const cleanup of this.listenerCleanup) {
84
- cleanup();
85
- }
86
- });
87
- }
88
- ngOnChanges(changes) {
89
- for (const key of Object.keys(changes)) {
90
- switch (key) {
91
- case 'language':
92
- this.setHostProperty('language', changes['language'].currentValue);
93
- break;
94
- case 'contentLanguage':
95
- this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
96
- break;
97
- case 'slotType':
98
- this.setHostProperty('slotType', changes['slotType'].currentValue);
99
- break;
100
- case 'slotName':
101
- this.setHostProperty('slotName', changes['slotName'].currentValue);
102
- break;
103
- case 'itemType':
104
- this.setHostProperty('itemType', changes['itemType'].currentValue);
105
- break;
106
- case 'noDrag':
107
- this.setHostProperty('noDrag', changes['noDrag'].currentValue);
108
- break;
109
- case 'noClose':
110
- this.setHostProperty('noClose', changes['noClose'].currentValue);
111
- break;
112
- case 'variant':
113
- this.setHostProperty('variant', changes['variant'].currentValue);
114
- break;
115
- case 'noTopMenuLabel':
116
- this.setHostProperty('noTopMenuLabel', changes['noTopMenuLabel'].currentValue);
117
- break;
118
- case 'dragBoundary':
119
- this.setHostProperty('dragBoundary', changes['dragBoundary'].currentValue);
120
- break;
121
- case 'areGrandTotalsEnabled':
122
- this.setHostProperty('areGrandTotalsEnabled', changes['areGrandTotalsEnabled'].currentValue);
123
- break;
124
- case 'areDatetimeOptionsEnabled':
125
- this.setHostProperty('areDatetimeOptionsEnabled', changes['areDatetimeOptionsEnabled'].currentValue);
126
- break;
127
- case 'isBinningDisabled':
128
- this.setHostProperty('isBinningDisabled', changes['isBinningDisabled'].currentValue);
129
- break;
130
- case 'isAggregationDisabled':
131
- this.setHostProperty('isAggregationDisabled', changes['isAggregationDisabled'].currentValue);
132
- break;
133
- case 'isCumulativeSumEnabled':
134
- this.setHostProperty('isCumulativeSumEnabled', changes['isCumulativeSumEnabled'].currentValue);
135
- break;
136
- case 'slotContents':
137
- this.setHostProperty('slotContents', changes['slotContents'].currentValue);
138
- break;
139
- case 'measureColumns':
140
- this.setHostProperty('measureColumns', changes['measureColumns'].currentValue);
141
- break;
142
- case 'slotIndex':
143
- this.setHostProperty('slotIndex', changes['slotIndex'].currentValue);
144
- break;
145
- case 'displaySettingsElement':
146
- this.setHostProperty('displaySettingsElement', changes['displaySettingsElement'].currentValue);
147
- break;
148
- case 'slotMenuListElement':
149
- this.setHostProperty('slotMenuListElement', changes['slotMenuListElement'].currentValue);
150
- break;
151
- case 'apiUrl':
152
- this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
153
- break;
154
- case 'authKey':
155
- this.setHostProperty('authKey', changes['authKey'].currentValue);
156
- break;
157
- case 'authToken':
158
- this.setHostProperty('authToken', changes['authToken'].currentValue);
159
- break;
160
- case 'datasetsDataFields':
161
- this.setHostProperty('datasetsDataFields', changes['datasetsDataFields'].currentValue);
162
- break;
163
- case 'size':
164
- this.setHostProperty('size', changes['size'].currentValue);
165
- break;
166
- default:
167
- break;
168
- }
169
- }
170
- }
171
- /**
172
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
173
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
174
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
175
- * undefined / null by clearing their bindings.
176
- */
177
- setHostProperty(key, value) {
178
- this.renderer.setProperty(this.host, key, value);
179
- }
180
- bindEvents() {
181
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-slot-contents-changed', (event) => {
182
- const typed = event;
183
- this.luzmoSlotContentsChanged.emit(typed);
184
- }));
185
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-close', (event) => {
186
- const typed = event;
187
- this.luzmoClose.emit(typed);
188
- }));
189
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-slot-menu-active', (event) => {
190
- const typed = event;
191
- this.luzmoSlotMenuActive.emit(typed);
192
- }));
193
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-slot-menu-highlight', (event) => {
194
- const typed = event;
195
- this.luzmoSlotMenuHighlight.emit(typed);
196
- }));
197
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-slot-menu-inactive', (event) => {
198
- const typed = event;
199
- this.luzmoSlotMenuInactive.emit(typed);
200
- }));
201
- this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-info-visibility-changed', (event) => {
202
- const typed = event;
203
- this.luzmoInfoVisibilityChanged.emit(typed);
204
- }));
205
- }
206
- close() {
207
- return this.host.close();
208
- }
209
- static ɵfac = function LuzmoSlotMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoSlotMenu)(); };
210
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoSlotMenu, selectors: [["luzmo-slot-menu"]], inputs: { language: "language", contentLanguage: "contentLanguage", slotType: "slotType", slotName: "slotName", itemType: "itemType", noDrag: [2, "noDrag", "noDrag", booleanAttribute], noClose: [2, "noClose", "noClose", booleanAttribute], variant: "variant", noTopMenuLabel: [2, "noTopMenuLabel", "noTopMenuLabel", booleanAttribute], dragBoundary: "dragBoundary", areGrandTotalsEnabled: [2, "areGrandTotalsEnabled", "areGrandTotalsEnabled", booleanAttribute], areDatetimeOptionsEnabled: [2, "areDatetimeOptionsEnabled", "areDatetimeOptionsEnabled", booleanAttribute], isBinningDisabled: [2, "isBinningDisabled", "isBinningDisabled", booleanAttribute], isAggregationDisabled: [2, "isAggregationDisabled", "isAggregationDisabled", booleanAttribute], isCumulativeSumEnabled: [2, "isCumulativeSumEnabled", "isCumulativeSumEnabled", booleanAttribute], slotContents: "slotContents", measureColumns: "measureColumns", slotIndex: "slotIndex", displaySettingsElement: "displaySettingsElement", slotMenuListElement: "slotMenuListElement", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", datasetsDataFields: "datasetsDataFields", size: "size" }, outputs: { luzmoSlotContentsChanged: "luzmoSlotContentsChanged", luzmoClose: "luzmoClose", luzmoSlotMenuActive: "luzmoSlotMenuActive", luzmoSlotMenuHighlight: "luzmoSlotMenuHighlight", luzmoSlotMenuInactive: "luzmoSlotMenuInactive", luzmoInfoVisibilityChanged: "luzmoInfoVisibilityChanged" }, exportAs: ["luzmoSlotMenu"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoSlotMenu_Template(rf, ctx) { if (rf & 1) {
211
- i0.ɵɵprojectionDef();
212
- i0.ɵɵprojection(0);
213
- } }, encapsulation: 2 });
214
- }
215
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoSlotMenu, [{
216
- type: Component,
217
- args: [{
218
- selector: 'luzmo-slot-menu',
219
- exportAs: 'luzmoSlotMenu',
220
- standalone: true,
221
- changeDetection: ChangeDetectionStrategy.OnPush,
222
- template: '<ng-content />'
223
- }]
224
- }], () => [], { language: [{
225
- type: Input,
226
- args: [{ alias: 'language' }]
227
- }], contentLanguage: [{
228
- type: Input,
229
- args: [{ alias: 'contentLanguage' }]
230
- }], slotType: [{
231
- type: Input,
232
- args: [{ alias: 'slotType' }]
233
- }], slotName: [{
234
- type: Input,
235
- args: [{ alias: 'slotName' }]
236
- }], itemType: [{
237
- type: Input,
238
- args: [{ alias: 'itemType' }]
239
- }], noDrag: [{
240
- type: Input,
241
- args: [{ alias: 'noDrag', transform: booleanAttribute }]
242
- }], noClose: [{
243
- type: Input,
244
- args: [{ alias: 'noClose', transform: booleanAttribute }]
245
- }], variant: [{
246
- type: Input,
247
- args: [{ alias: 'variant' }]
248
- }], noTopMenuLabel: [{
249
- type: Input,
250
- args: [{ alias: 'noTopMenuLabel', transform: booleanAttribute }]
251
- }], dragBoundary: [{
252
- type: Input,
253
- args: [{ alias: 'dragBoundary' }]
254
- }], areGrandTotalsEnabled: [{
255
- type: Input,
256
- args: [{ alias: 'areGrandTotalsEnabled', transform: booleanAttribute }]
257
- }], areDatetimeOptionsEnabled: [{
258
- type: Input,
259
- args: [{ alias: 'areDatetimeOptionsEnabled', transform: booleanAttribute }]
260
- }], isBinningDisabled: [{
261
- type: Input,
262
- args: [{ alias: 'isBinningDisabled', transform: booleanAttribute }]
263
- }], isAggregationDisabled: [{
264
- type: Input,
265
- args: [{ alias: 'isAggregationDisabled', transform: booleanAttribute }]
266
- }], isCumulativeSumEnabled: [{
267
- type: Input,
268
- args: [{ alias: 'isCumulativeSumEnabled', transform: booleanAttribute }]
269
- }], slotContents: [{
270
- type: Input,
271
- args: [{ alias: 'slotContents' }]
272
- }], measureColumns: [{
273
- type: Input,
274
- args: [{ alias: 'measureColumns' }]
275
- }], slotIndex: [{
276
- type: Input,
277
- args: [{ alias: 'slotIndex' }]
278
- }], displaySettingsElement: [{
279
- type: Input,
280
- args: [{ alias: 'displaySettingsElement' }]
281
- }], slotMenuListElement: [{
282
- type: Input,
283
- args: [{ alias: 'slotMenuListElement' }]
284
- }], apiUrl: [{
285
- type: Input,
286
- args: [{ alias: 'apiUrl' }]
287
- }], authKey: [{
288
- type: Input,
289
- args: [{ alias: 'authKey' }]
290
- }], authToken: [{
291
- type: Input,
292
- args: [{ alias: 'authToken' }]
293
- }], datasetsDataFields: [{
294
- type: Input,
295
- args: [{ alias: 'datasetsDataFields' }]
296
- }], size: [{
297
- type: Input,
298
- args: [{ alias: 'size' }]
299
- }], luzmoSlotContentsChanged: [{ type: i0.Output, args: ["luzmoSlotContentsChanged"] }], luzmoClose: [{ type: i0.Output, args: ["luzmoClose"] }], luzmoSlotMenuActive: [{ type: i0.Output, args: ["luzmoSlotMenuActive"] }], luzmoSlotMenuHighlight: [{ type: i0.Output, args: ["luzmoSlotMenuHighlight"] }], luzmoSlotMenuInactive: [{ type: i0.Output, args: ["luzmoSlotMenuInactive"] }], luzmoInfoVisibilityChanged: [{ type: i0.Output, args: ["luzmoInfoVisibilityChanged"] }] }); })();
300
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoSlotMenu, { className: "LuzmoSlotMenu", filePath: "components/slot-menu.ts", lineNumber: 21 }); })();
@@ -1,42 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import '@luzmo/analytics-components-kit/viz-item-menu';
3
- import type { LuzmoVizItemMenu as LuzmoVizItemMenuHostElement, VizItemMenuButton, VizItemMenuButtonClickedEventDetail, VizItemMenuSelectedChangedEventDetail } from '@luzmo/analytics-components-kit/viz-item-menu';
4
- import * as i0 from "@angular/core";
5
- export type { VizItemMenuButton, VizItemMenuButtonClickedEventDetail, VizItemMenuSelectedChangedEventDetail } from '@luzmo/analytics-components-kit/viz-item-menu';
6
- export declare class LuzmoVizItemMenu 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(): LuzmoVizItemMenuHostElement;
14
- /** The visualization item ID */
15
- vizItemId?: string;
16
- /** Array of menu buttons to hide */
17
- hiddenButtons?: VizItemMenuButton[];
18
- /** The currently selected menu button */
19
- selectedButton?: VizItemMenuButton | null;
20
- /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
21
- language?: string;
22
- /** Emitted when the selected button changes */
23
- readonly selectedChanged: import("@angular/core").OutputEmitterRef<CustomEvent<VizItemMenuSelectedChangedEventDetail>>;
24
- /** Emitted when any menu item is clicked */
25
- readonly buttonClicked: import("@angular/core").OutputEmitterRef<CustomEvent<VizItemMenuButtonClickedEventDetail>>;
26
- /** Emitted when hovering over the edit button */
27
- readonly editButtonHovered: import("@angular/core").OutputEmitterRef<CustomEvent<void>>;
28
- constructor();
29
- ngOnChanges(changes: SimpleChanges): void;
30
- /**
31
- * Forward a wrapper @Input to the underlying host element via Renderer2 so
32
- * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
33
- * Unlike a "skip undefined" guard, this lets consumers reset values back to
34
- * undefined / null by clearing their bindings.
35
- */
36
- private setHostProperty;
37
- private bindEvents;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoVizItemMenu, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoVizItemMenu, "luzmo-viz-item-menu", ["luzmoVizItemMenu"], { "vizItemId": { "alias": "vizItemId"; "required": false; }; "hiddenButtons": { "alias": "hiddenButtons"; "required": false; }; "selectedButton": { "alias": "selectedButton"; "required": false; }; "language": { "alias": "language"; "required": false; }; }, { "selectedChanged": "selectedChanged"; "buttonClicked": "buttonClicked"; "editButtonHovered": "editButtonHovered"; }, never, ["*"], true, never>;
40
- }
41
- /** The underlying custom element type for LuzmoVizItemMenu */
42
- export type LuzmoVizItemMenuElement = LuzmoVizItemMenuHostElement;