@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.
Files changed (106) hide show
  1. package/README.md +40 -0
  2. package/esm/components/ai-chat-empty-state.d.ts +39 -0
  3. package/esm/components/ai-chat-empty-state.js +99 -0
  4. package/esm/components/ai-chat.d.ts +121 -0
  5. package/esm/components/ai-chat.js +369 -0
  6. package/esm/components/ai-interaction-textarea.d.ts +110 -0
  7. package/esm/components/ai-interaction-textarea.js +297 -0
  8. package/esm/components/data-field-level.d.ts +42 -0
  9. package/esm/components/data-field-level.js +115 -0
  10. package/esm/components/data-field-panel.d.ts +84 -0
  11. package/esm/components/data-field-panel.js +260 -0
  12. package/esm/components/data-field.d.ts +41 -0
  13. package/esm/components/data-field.js +108 -0
  14. package/esm/components/data-fields-select.d.ts +70 -0
  15. package/esm/components/data-fields-select.js +187 -0
  16. package/esm/components/dataset-icon.d.ts +34 -0
  17. package/esm/components/dataset-icon.js +86 -0
  18. package/esm/components/dataset-selector-list.d.ts +53 -0
  19. package/esm/components/dataset-selector-list.js +147 -0
  20. package/esm/components/dataset-selector-row.d.ts +56 -0
  21. package/esm/components/dataset-selector-row.js +153 -0
  22. package/esm/components/display-settings-binning.d.ts +32 -0
  23. package/esm/components/display-settings-binning.js +74 -0
  24. package/esm/components/display-settings-datetime.d.ts +36 -0
  25. package/esm/components/display-settings-datetime.js +89 -0
  26. package/esm/components/display-settings-grand-totals.d.ts +33 -0
  27. package/esm/components/display-settings-grand-totals.js +75 -0
  28. package/esm/components/display-settings-numeric.d.ts +41 -0
  29. package/esm/components/display-settings-numeric.js +99 -0
  30. package/esm/components/display-settings-period-over-period.d.ts +38 -0
  31. package/esm/components/display-settings-period-over-period.js +89 -0
  32. package/esm/components/display-settings.d.ts +69 -0
  33. package/esm/components/display-settings.js +182 -0
  34. package/esm/components/filter-expression-picker.d.ts +54 -0
  35. package/esm/components/filter-expression-picker.js +146 -0
  36. package/esm/components/filter-item.d.ts +44 -0
  37. package/esm/components/filter-item.js +130 -0
  38. package/esm/components/filter-parameter-picker.d.ts +31 -0
  39. package/esm/components/filter-parameter-picker.js +78 -0
  40. package/esm/components/filter-value-picker-datetime.d.ts +34 -0
  41. package/esm/components/filter-value-picker-datetime.js +90 -0
  42. package/esm/components/filter-value-picker-hierarchy.d.ts +40 -0
  43. package/esm/components/filter-value-picker-hierarchy.js +114 -0
  44. package/esm/components/filter-value-picker-numeric.d.ts +40 -0
  45. package/esm/components/filter-value-picker-numeric.js +114 -0
  46. package/esm/components/filter-value-picker.d.ts +44 -0
  47. package/esm/components/filter-value-picker.js +130 -0
  48. package/esm/components/filters.d.ts +49 -0
  49. package/esm/components/filters.js +139 -0
  50. package/esm/components/formula-editor.d.ts +39 -0
  51. package/esm/components/formula-editor.js +95 -0
  52. package/esm/components/formula-field.d.ts +31 -0
  53. package/esm/components/formula-field.js +69 -0
  54. package/esm/components/formula.d.ts +31 -0
  55. package/esm/components/formula.js +75 -0
  56. package/esm/components/item-grid-item-actions-menu.d.ts +34 -0
  57. package/esm/components/item-grid-item-actions-menu.js +82 -0
  58. package/esm/components/item-grid.d.ts +80 -0
  59. package/esm/components/item-grid.js +245 -0
  60. package/esm/components/item-option-action-button-group.d.ts +30 -0
  61. package/esm/components/item-option-action-button-group.js +63 -0
  62. package/esm/components/item-option-color-palette-picker.d.ts +30 -0
  63. package/esm/components/item-option-color-palette-picker.js +63 -0
  64. package/esm/components/item-option-color-picker.d.ts +35 -0
  65. package/esm/components/item-option-color-picker.js +102 -0
  66. package/esm/components/item-option-color-range.d.ts +30 -0
  67. package/esm/components/item-option-color-range.js +63 -0
  68. package/esm/components/item-option-multi-language-field.d.ts +31 -0
  69. package/esm/components/item-option-multi-language-field.js +74 -0
  70. package/esm/components/item-option-number-field.d.ts +32 -0
  71. package/esm/components/item-option-number-field.js +81 -0
  72. package/esm/components/item-option-panel.d.ts +54 -0
  73. package/esm/components/item-option-panel.js +155 -0
  74. package/esm/components/item-option-picker.d.ts +30 -0
  75. package/esm/components/item-option-picker.js +63 -0
  76. package/esm/components/item-option-position-picker.d.ts +30 -0
  77. package/esm/components/item-option-position-picker.js +63 -0
  78. package/esm/components/item-option-positions-number-field.d.ts +32 -0
  79. package/esm/components/item-option-positions-number-field.js +81 -0
  80. package/esm/components/item-option-radio-button-group.d.ts +31 -0
  81. package/esm/components/item-option-radio-button-group.js +74 -0
  82. package/esm/components/item-option-slider.d.ts +36 -0
  83. package/esm/components/item-option-slider.js +109 -0
  84. package/esm/components/item-option-switch.d.ts +34 -0
  85. package/esm/components/item-option-switch.js +81 -0
  86. package/esm/components/item-option-text-field.d.ts +31 -0
  87. package/esm/components/item-option-text-field.js +74 -0
  88. package/esm/components/item-option.d.ts +48 -0
  89. package/esm/components/item-option.js +161 -0
  90. package/esm/components/item-slot-drop-panel.d.ts +78 -0
  91. package/esm/components/item-slot-drop-panel.js +233 -0
  92. package/esm/components/item-slot-drop.d.ts +63 -0
  93. package/esm/components/item-slot-drop.js +201 -0
  94. package/esm/components/item-slot-picker-panel.d.ts +95 -0
  95. package/esm/components/item-slot-picker-panel.js +301 -0
  96. package/esm/components/item-slot-picker.d.ts +80 -0
  97. package/esm/components/item-slot-picker.js +235 -0
  98. package/esm/components/slot-menu-list.d.ts +37 -0
  99. package/esm/components/slot-menu-list.js +97 -0
  100. package/esm/components/slot-menu.d.ts +85 -0
  101. package/esm/components/slot-menu.js +271 -0
  102. package/esm/components/viz-item-menu.d.ts +40 -0
  103. package/esm/components/viz-item-menu.js +103 -0
  104. package/esm/index.d.ts +105 -0
  105. package/esm/index.js +209 -0
  106. package/package.json +40 -0
@@ -0,0 +1,38 @@
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
+ periodOverPeriodUiType?: PeriodOverPeriodCondition;
19
+ linkedDatasetDatetimeColumns?: (Column & {
20
+ datasetId: string;
21
+ })[];
22
+ /** Event that is fired when the slot content is changed */
23
+ readonly luzmoSlotContentChanged: import("@angular/core").OutputEmitterRef<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
24
+ constructor();
25
+ ngOnChanges(changes: SimpleChanges): void;
26
+ /**
27
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
28
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
29
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
30
+ * undefined / null by clearing their bindings.
31
+ */
32
+ private setHostProperty;
33
+ private bindEvents;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDisplaySettingsPeriodOverPeriod, never>;
35
+ 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; }; }, { "luzmoSlotContentChanged": "luzmoSlotContentChanged"; }, never, ["*"], true, never>;
36
+ }
37
+ /** The underlying custom element type for LuzmoDisplaySettingsPeriodOverPeriod */
38
+ export type LuzmoDisplaySettingsPeriodOverPeriodElement = LuzmoDisplaySettingsPeriodOverPeriodHostElement;
@@ -0,0 +1,89 @@
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
+ periodOverPeriodUiType;
21
+ linkedDatasetDatetimeColumns;
22
+ /** Event that is fired when the slot content is changed */
23
+ luzmoSlotContentChanged = output({ alias: 'luzmoSlotContentChanged' });
24
+ constructor() {
25
+ this.bindEvents();
26
+ this.destroyRef.onDestroy(() => {
27
+ for (const cleanup of this.listenerCleanup) {
28
+ cleanup();
29
+ }
30
+ });
31
+ }
32
+ ngOnChanges(changes) {
33
+ for (const key of Object.keys(changes)) {
34
+ switch (key) {
35
+ case 'slotContent':
36
+ this.setHostProperty('slotContent', changes['slotContent'].currentValue);
37
+ break;
38
+ case 'periodOverPeriodUiType':
39
+ this.setHostProperty('periodOverPeriodUiType', changes['periodOverPeriodUiType'].currentValue);
40
+ break;
41
+ case 'linkedDatasetDatetimeColumns':
42
+ this.setHostProperty('linkedDatasetDatetimeColumns', changes['linkedDatasetDatetimeColumns'].currentValue);
43
+ break;
44
+ default:
45
+ break;
46
+ }
47
+ }
48
+ }
49
+ /**
50
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
51
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
52
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
53
+ * undefined / null by clearing their bindings.
54
+ */
55
+ setHostProperty(key, value) {
56
+ this.renderer.setProperty(this.host, key, value);
57
+ }
58
+ bindEvents() {
59
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-slot-content-changed', (event) => {
60
+ const typed = event;
61
+ this.luzmoSlotContentChanged.emit(typed);
62
+ }));
63
+ }
64
+ static ɵfac = function LuzmoDisplaySettingsPeriodOverPeriod_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDisplaySettingsPeriodOverPeriod)(); };
65
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDisplaySettingsPeriodOverPeriod, selectors: [["luzmo-display-settings-period-over-period"]], inputs: { slotContent: "slotContent", periodOverPeriodUiType: [0, "periodOverPeriodType", "periodOverPeriodUiType"], linkedDatasetDatetimeColumns: "linkedDatasetDatetimeColumns" }, outputs: { luzmoSlotContentChanged: "luzmoSlotContentChanged" }, exportAs: ["luzmoDisplaySettingsPeriodOverPeriod"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDisplaySettingsPeriodOverPeriod_Template(rf, ctx) { if (rf & 1) {
66
+ i0.ɵɵprojectionDef();
67
+ i0.ɵɵprojection(0);
68
+ } }, encapsulation: 2, changeDetection: 0 });
69
+ }
70
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoDisplaySettingsPeriodOverPeriod, [{
71
+ type: Component,
72
+ args: [{
73
+ selector: 'luzmo-display-settings-period-over-period',
74
+ exportAs: 'luzmoDisplaySettingsPeriodOverPeriod',
75
+ standalone: true,
76
+ changeDetection: ChangeDetectionStrategy.OnPush,
77
+ template: '<ng-content />'
78
+ }]
79
+ }], () => [], { slotContent: [{
80
+ type: Input,
81
+ args: [{ alias: 'slotContent' }]
82
+ }], periodOverPeriodUiType: [{
83
+ type: Input,
84
+ args: [{ alias: 'periodOverPeriodType' }]
85
+ }], linkedDatasetDatetimeColumns: [{
86
+ type: Input,
87
+ args: [{ alias: 'linkedDatasetDatetimeColumns' }]
88
+ }], luzmoSlotContentChanged: [{ type: i0.Output, args: ["luzmoSlotContentChanged"] }] }); })();
89
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoDisplaySettingsPeriodOverPeriod, { className: "LuzmoDisplaySettingsPeriodOverPeriod", filePath: "components/display-settings-period-over-period.ts", lineNumber: 18 }); })();
@@ -0,0 +1,69 @@
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 { MeasureColumnsItem } from '@luzmo/analytics-components-kit/slot-menu';
5
+ import type { PeriodOverPeriodCondition } from '@luzmo/analytics-components-kit/types';
6
+ import type { GenericSlotContent } from '@luzmo/dashboard-contents-types';
7
+ import * as i0 from "@angular/core";
8
+ export type { DisplaySettingsRemoveSlotContentEventDetail, DisplaySettingsSlotContentChangedEventDetail, InfoVisibilityChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings';
9
+ export declare class LuzmoDisplaySettings implements OnChanges {
10
+ private readonly elementRef;
11
+ private readonly renderer;
12
+ private readonly destroyRef;
13
+ private readonly host;
14
+ private readonly listenerCleanup;
15
+ /** The underlying custom element instance. Use to call imperative methods. */
16
+ get nativeElement(): LuzmoDisplaySettingsHostElement;
17
+ /** The language of the settings interface */
18
+ language?: string;
19
+ /** The language to use for locale-aware formatting and labels */
20
+ contentLanguage?: string;
21
+ /** Whether to show the displaySettings. Is used to hide display Settings in cases where there are multiple columns */
22
+ hideDisplaySettings?: boolean;
23
+ /** Whether to show the binning in numeric */
24
+ isBinningDisabled?: boolean;
25
+ /** Whether to show the datetime options */
26
+ areDatetimeOptionsEnabled?: boolean;
27
+ /** Whether to show the grand totals */
28
+ areGrandTotalsEnabled?: boolean;
29
+ /** Whether to show the aggregation options */
30
+ isAggregationDisabled?: boolean;
31
+ /** Whether to show the cumulative sum options */
32
+ isCumulativeSumEnabled?: boolean;
33
+ /** Whether to show the period-over-period in numeric */
34
+ periodOverPeriodUiType?: PeriodOverPeriodCondition | null;
35
+ /** Whether to show the trash button next to the label */
36
+ showRemoveButton?: boolean;
37
+ /** The slot type */
38
+ slotType?: string;
39
+ slotContent?: GenericSlotContent;
40
+ /** The list of columns that can be used for the rate aggregation */
41
+ measureColumns?: MeasureColumnsItem[];
42
+ /** Event that is fired when the slot content is changed */
43
+ readonly luzmoSlotContentChanged: import("@angular/core").OutputEmitterRef<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
44
+ /** Event that is fired when the remove button is clicked */
45
+ readonly luzmoRemoveSlotContent: import("@angular/core").OutputEmitterRef<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
46
+ /** Event that is fired when the info button is clicked, includes the visibility state and ID values */
47
+ readonly luzmoInfoVisibilityChanged: import("@angular/core").OutputEmitterRef<CustomEvent<InfoVisibilityChangedEventDetail>>;
48
+ constructor();
49
+ ngOnChanges(changes: SimpleChanges): void;
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
+ private setHostProperty;
57
+ private bindEvents;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoDisplaySettings, never>;
59
+ 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; }; "slotContent": { "alias": "slotContent"; "required": false; }; "measureColumns": { "alias": "measureColumns"; "required": false; }; }, { "luzmoSlotContentChanged": "luzmoSlotContentChanged"; "luzmoRemoveSlotContent": "luzmoRemoveSlotContent"; "luzmoInfoVisibilityChanged": "luzmoInfoVisibilityChanged"; }, never, ["*"], true, never>;
60
+ static ngAcceptInputType_hideDisplaySettings: unknown;
61
+ static ngAcceptInputType_isBinningDisabled: unknown;
62
+ static ngAcceptInputType_areDatetimeOptionsEnabled: unknown;
63
+ static ngAcceptInputType_areGrandTotalsEnabled: unknown;
64
+ static ngAcceptInputType_isAggregationDisabled: unknown;
65
+ static ngAcceptInputType_isCumulativeSumEnabled: unknown;
66
+ static ngAcceptInputType_showRemoveButton: unknown;
67
+ }
68
+ /** The underlying custom element type for LuzmoDisplaySettings */
69
+ export type LuzmoDisplaySettingsElement = LuzmoDisplaySettingsHostElement;
@@ -0,0 +1,182 @@
1
+ import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/display-settings';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-display-settings>
7
+ */
8
+ export class LuzmoDisplaySettings {
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
+ /** Whether to show the displaySettings. Is used to hide display Settings in cases where there are multiple columns */
23
+ hideDisplaySettings;
24
+ /** Whether to show the binning in numeric */
25
+ isBinningDisabled;
26
+ /** Whether to show the datetime options */
27
+ areDatetimeOptionsEnabled;
28
+ /** Whether to show the grand totals */
29
+ areGrandTotalsEnabled;
30
+ /** Whether to show the aggregation options */
31
+ isAggregationDisabled;
32
+ /** Whether to show the cumulative sum options */
33
+ isCumulativeSumEnabled;
34
+ /** Whether to show the period-over-period in numeric */
35
+ periodOverPeriodUiType;
36
+ /** Whether to show the trash button next to the label */
37
+ showRemoveButton;
38
+ /** The slot type */
39
+ slotType;
40
+ slotContent;
41
+ /** The list of columns that can be used for the rate aggregation */
42
+ measureColumns;
43
+ /** Event that is fired when the slot content is changed */
44
+ luzmoSlotContentChanged = output({ alias: 'luzmoSlotContentChanged' });
45
+ /** Event that is fired when the remove button is clicked */
46
+ luzmoRemoveSlotContent = output({ alias: 'luzmoRemoveSlotContent' });
47
+ /** Event that is fired when the info button is clicked, includes the visibility state and ID values */
48
+ luzmoInfoVisibilityChanged = output({ alias: 'luzmoInfoVisibilityChanged' });
49
+ constructor() {
50
+ this.bindEvents();
51
+ this.destroyRef.onDestroy(() => {
52
+ for (const cleanup of this.listenerCleanup) {
53
+ cleanup();
54
+ }
55
+ });
56
+ }
57
+ ngOnChanges(changes) {
58
+ for (const key of Object.keys(changes)) {
59
+ switch (key) {
60
+ case 'language':
61
+ this.setHostProperty('language', changes['language'].currentValue);
62
+ break;
63
+ case 'contentLanguage':
64
+ this.setHostProperty('contentLanguage', changes['contentLanguage'].currentValue);
65
+ break;
66
+ case 'hideDisplaySettings':
67
+ this.setHostProperty('hideDisplaySettings', changes['hideDisplaySettings'].currentValue);
68
+ break;
69
+ case 'isBinningDisabled':
70
+ this.setHostProperty('isBinningDisabled', changes['isBinningDisabled'].currentValue);
71
+ break;
72
+ case 'areDatetimeOptionsEnabled':
73
+ this.setHostProperty('areDatetimeOptionsEnabled', changes['areDatetimeOptionsEnabled'].currentValue);
74
+ break;
75
+ case 'areGrandTotalsEnabled':
76
+ this.setHostProperty('areGrandTotalsEnabled', changes['areGrandTotalsEnabled'].currentValue);
77
+ break;
78
+ case 'isAggregationDisabled':
79
+ this.setHostProperty('isAggregationDisabled', changes['isAggregationDisabled'].currentValue);
80
+ break;
81
+ case 'isCumulativeSumEnabled':
82
+ this.setHostProperty('isCumulativeSumEnabled', changes['isCumulativeSumEnabled'].currentValue);
83
+ break;
84
+ case 'periodOverPeriodUiType':
85
+ this.setHostProperty('periodOverPeriodUiType', changes['periodOverPeriodUiType'].currentValue);
86
+ break;
87
+ case 'showRemoveButton':
88
+ this.setHostProperty('showRemoveButton', changes['showRemoveButton'].currentValue);
89
+ break;
90
+ case 'slotType':
91
+ this.setHostProperty('slotType', changes['slotType'].currentValue);
92
+ break;
93
+ case 'slotContent':
94
+ this.setHostProperty('slotContent', changes['slotContent'].currentValue);
95
+ break;
96
+ case 'measureColumns':
97
+ this.setHostProperty('measureColumns', changes['measureColumns'].currentValue);
98
+ break;
99
+ default:
100
+ break;
101
+ }
102
+ }
103
+ }
104
+ /**
105
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
106
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
107
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
108
+ * undefined / null by clearing their bindings.
109
+ */
110
+ setHostProperty(key, value) {
111
+ this.renderer.setProperty(this.host, key, value);
112
+ }
113
+ bindEvents() {
114
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-slot-content-changed', (event) => {
115
+ const typed = event;
116
+ this.luzmoSlotContentChanged.emit(typed);
117
+ }));
118
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-remove-slot-content', (event) => {
119
+ const typed = event;
120
+ this.luzmoRemoveSlotContent.emit(typed);
121
+ }));
122
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-info-visibility-changed', (event) => {
123
+ const typed = event;
124
+ this.luzmoInfoVisibilityChanged.emit(typed);
125
+ }));
126
+ }
127
+ static ɵfac = function LuzmoDisplaySettings_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoDisplaySettings)(); };
128
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoDisplaySettings, selectors: [["luzmo-display-settings"]], inputs: { language: "language", contentLanguage: "contentLanguage", hideDisplaySettings: [2, "hideDisplaySettings", "hideDisplaySettings", booleanAttribute], isBinningDisabled: [2, "isBinningDisabled", "isBinningDisabled", booleanAttribute], areDatetimeOptionsEnabled: [2, "areDatetimeOptionsEnabled", "areDatetimeOptionsEnabled", booleanAttribute], areGrandTotalsEnabled: [2, "areGrandTotalsEnabled", "areGrandTotalsEnabled", booleanAttribute], isAggregationDisabled: [2, "isAggregationDisabled", "isAggregationDisabled", booleanAttribute], isCumulativeSumEnabled: [2, "isCumulativeSumEnabled", "isCumulativeSumEnabled", booleanAttribute], periodOverPeriodUiType: "periodOverPeriodUiType", showRemoveButton: [2, "showRemoveButton", "showRemoveButton", booleanAttribute], slotType: "slotType", slotContent: "slotContent", measureColumns: "measureColumns" }, outputs: { luzmoSlotContentChanged: "luzmoSlotContentChanged", luzmoRemoveSlotContent: "luzmoRemoveSlotContent", luzmoInfoVisibilityChanged: "luzmoInfoVisibilityChanged" }, exportAs: ["luzmoDisplaySettings"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoDisplaySettings_Template(rf, ctx) { if (rf & 1) {
129
+ i0.ɵɵprojectionDef();
130
+ i0.ɵɵprojection(0);
131
+ } }, encapsulation: 2, changeDetection: 0 });
132
+ }
133
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoDisplaySettings, [{
134
+ type: Component,
135
+ args: [{
136
+ selector: 'luzmo-display-settings',
137
+ exportAs: 'luzmoDisplaySettings',
138
+ standalone: true,
139
+ changeDetection: ChangeDetectionStrategy.OnPush,
140
+ template: '<ng-content />'
141
+ }]
142
+ }], () => [], { language: [{
143
+ type: Input,
144
+ args: [{ alias: 'language' }]
145
+ }], contentLanguage: [{
146
+ type: Input,
147
+ args: [{ alias: 'contentLanguage' }]
148
+ }], hideDisplaySettings: [{
149
+ type: Input,
150
+ args: [{ alias: 'hideDisplaySettings', transform: booleanAttribute }]
151
+ }], isBinningDisabled: [{
152
+ type: Input,
153
+ args: [{ alias: 'isBinningDisabled', transform: booleanAttribute }]
154
+ }], areDatetimeOptionsEnabled: [{
155
+ type: Input,
156
+ args: [{ alias: 'areDatetimeOptionsEnabled', transform: booleanAttribute }]
157
+ }], areGrandTotalsEnabled: [{
158
+ type: Input,
159
+ args: [{ alias: 'areGrandTotalsEnabled', transform: booleanAttribute }]
160
+ }], isAggregationDisabled: [{
161
+ type: Input,
162
+ args: [{ alias: 'isAggregationDisabled', transform: booleanAttribute }]
163
+ }], isCumulativeSumEnabled: [{
164
+ type: Input,
165
+ args: [{ alias: 'isCumulativeSumEnabled', transform: booleanAttribute }]
166
+ }], periodOverPeriodUiType: [{
167
+ type: Input,
168
+ args: [{ alias: 'periodOverPeriodUiType' }]
169
+ }], showRemoveButton: [{
170
+ type: Input,
171
+ args: [{ alias: 'showRemoveButton', transform: booleanAttribute }]
172
+ }], slotType: [{
173
+ type: Input,
174
+ args: [{ alias: 'slotType' }]
175
+ }], slotContent: [{
176
+ type: Input,
177
+ args: [{ alias: 'slotContent' }]
178
+ }], measureColumns: [{
179
+ type: Input,
180
+ args: [{ alias: 'measureColumns' }]
181
+ }], luzmoSlotContentChanged: [{ type: i0.Output, args: ["luzmoSlotContentChanged"] }], luzmoRemoveSlotContent: [{ type: i0.Output, args: ["luzmoRemoveSlotContent"] }], luzmoInfoVisibilityChanged: [{ type: i0.Output, args: ["luzmoInfoVisibilityChanged"] }] }); })();
182
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoDisplaySettings, { className: "LuzmoDisplaySettings", filePath: "components/display-settings.ts", lineNumber: 19 }); })();
@@ -0,0 +1,54 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/filter-expression-picker';
3
+ import type { LuzmoFilterExpressionPicker as LuzmoFilterExpressionPickerHostElement } from '@luzmo/analytics-components-kit/filter-expression-picker';
4
+ import type { ColumnSubtype, ColumnType } from '@luzmo/dashboard-contents-types';
5
+ import * as i0 from "@angular/core";
6
+ export declare class LuzmoFilterExpressionPicker 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(): LuzmoFilterExpressionPickerHostElement;
14
+ /** The filter object */
15
+ filter?: any;
16
+ /** Whether the picker has a label */
17
+ hasLabel?: boolean;
18
+ /** The label for the picker, if hasLabel is true */
19
+ label?: string;
20
+ /** Allow no selection. If true, the picker will not show a value when no item is selected. Else if no value is provided it will pick the first item. */
21
+ allowEmpty?: boolean;
22
+ /** The placeholder text for the picker is no value selected. If allowEmpty is true, this will be used as the label. */
23
+ placeholder?: string;
24
+ /** Whether the picker is disabled */
25
+ disabled?: boolean;
26
+ /** The type of the column */
27
+ type?: ColumnType;
28
+ /** The subtype of the column */
29
+ subtype?: ColumnSubtype;
30
+ /** Whether the expression is invalid */
31
+ invalid?: boolean;
32
+ /** Whether the column is a formula */
33
+ isFormula?: boolean;
34
+ readonly luzmoExpressionSelected: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
35
+ constructor();
36
+ ngOnChanges(changes: SimpleChanges): void;
37
+ /**
38
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
39
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
40
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
41
+ * undefined / null by clearing their bindings.
42
+ */
43
+ private setHostProperty;
44
+ private bindEvents;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoFilterExpressionPicker, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterExpressionPicker, "luzmo-filter-expression-picker", ["luzmoFilterExpressionPicker"], { "filter": { "alias": "filter"; "required": false; }; "hasLabel": { "alias": "hasLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "allowEmpty": { "alias": "allowEmpty"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "subtype": { "alias": "subtype"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "isFormula": { "alias": "isFormula"; "required": false; }; }, { "luzmoExpressionSelected": "luzmoExpressionSelected"; }, never, ["*"], true, never>;
47
+ static ngAcceptInputType_hasLabel: unknown;
48
+ static ngAcceptInputType_allowEmpty: unknown;
49
+ static ngAcceptInputType_disabled: unknown;
50
+ static ngAcceptInputType_invalid: unknown;
51
+ static ngAcceptInputType_isFormula: unknown;
52
+ }
53
+ /** The underlying custom element type for LuzmoFilterExpressionPicker */
54
+ export type LuzmoFilterExpressionPickerElement = LuzmoFilterExpressionPickerHostElement;
@@ -0,0 +1,146 @@
1
+ import { booleanAttribute, ChangeDetectionStrategy, Component, DestroyRef, ElementRef, inject, Input, output, Renderer2 } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/filter-expression-picker';
3
+ import * as i0 from "@angular/core";
4
+ const _c0 = ["*"];
5
+ /**
6
+ * Angular wrapper component for <luzmo-filter-expression-picker>
7
+ */
8
+ export class LuzmoFilterExpressionPicker {
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 filter object */
19
+ filter;
20
+ /** Whether the picker has a label */
21
+ hasLabel;
22
+ /** The label for the picker, if hasLabel is true */
23
+ label;
24
+ /** Allow no selection. If true, the picker will not show a value when no item is selected. Else if no value is provided it will pick the first item. */
25
+ allowEmpty;
26
+ /** The placeholder text for the picker is no value selected. If allowEmpty is true, this will be used as the label. */
27
+ placeholder;
28
+ /** Whether the picker is disabled */
29
+ disabled;
30
+ /** The type of the column */
31
+ type;
32
+ /** The subtype of the column */
33
+ subtype;
34
+ /** Whether the expression is invalid */
35
+ invalid;
36
+ /** Whether the column is a formula */
37
+ isFormula;
38
+ luzmoExpressionSelected = output({ alias: 'luzmoExpressionSelected' });
39
+ constructor() {
40
+ this.bindEvents();
41
+ this.destroyRef.onDestroy(() => {
42
+ for (const cleanup of this.listenerCleanup) {
43
+ cleanup();
44
+ }
45
+ });
46
+ }
47
+ ngOnChanges(changes) {
48
+ for (const key of Object.keys(changes)) {
49
+ switch (key) {
50
+ case 'filter':
51
+ this.setHostProperty('filter', changes['filter'].currentValue);
52
+ break;
53
+ case 'hasLabel':
54
+ this.setHostProperty('hasLabel', changes['hasLabel'].currentValue);
55
+ break;
56
+ case 'label':
57
+ this.setHostProperty('label', changes['label'].currentValue);
58
+ break;
59
+ case 'allowEmpty':
60
+ this.setHostProperty('allowEmpty', changes['allowEmpty'].currentValue);
61
+ break;
62
+ case 'placeholder':
63
+ this.setHostProperty('placeholder', changes['placeholder'].currentValue);
64
+ break;
65
+ case 'disabled':
66
+ this.setHostProperty('disabled', changes['disabled'].currentValue);
67
+ break;
68
+ case 'type':
69
+ this.setHostProperty('type', changes['type'].currentValue);
70
+ break;
71
+ case 'subtype':
72
+ this.setHostProperty('subtype', changes['subtype'].currentValue);
73
+ break;
74
+ case 'invalid':
75
+ this.setHostProperty('invalid', changes['invalid'].currentValue);
76
+ break;
77
+ case 'isFormula':
78
+ this.setHostProperty('isFormula', changes['isFormula'].currentValue);
79
+ break;
80
+ default:
81
+ break;
82
+ }
83
+ }
84
+ }
85
+ /**
86
+ * Forward a wrapper @Input to the underlying host element via Renderer2 so
87
+ * the wrapper stays compatible with non-DOM Angular platforms (SSR, tests).
88
+ * Unlike a "skip undefined" guard, this lets consumers reset values back to
89
+ * undefined / null by clearing their bindings.
90
+ */
91
+ setHostProperty(key, value) {
92
+ this.renderer.setProperty(this.host, key, value);
93
+ }
94
+ bindEvents() {
95
+ this.listenerCleanup.push(this.renderer.listen(this.host, 'luzmo-expression-selected', (event) => {
96
+ const typed = event;
97
+ this.luzmoExpressionSelected.emit(typed);
98
+ }));
99
+ }
100
+ static ɵfac = function LuzmoFilterExpressionPicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoFilterExpressionPicker)(); };
101
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoFilterExpressionPicker, selectors: [["luzmo-filter-expression-picker"]], inputs: { filter: "filter", hasLabel: [2, "hasLabel", "hasLabel", booleanAttribute], label: "label", allowEmpty: [2, "allowEmpty", "allowEmpty", booleanAttribute], placeholder: "placeholder", disabled: [2, "disabled", "disabled", booleanAttribute], type: "type", subtype: "subtype", invalid: [2, "invalid", "invalid", booleanAttribute], isFormula: [2, "isFormula", "isFormula", booleanAttribute] }, outputs: { luzmoExpressionSelected: "luzmoExpressionSelected" }, exportAs: ["luzmoFilterExpressionPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoFilterExpressionPicker_Template(rf, ctx) { if (rf & 1) {
102
+ i0.ɵɵprojectionDef();
103
+ i0.ɵɵprojection(0);
104
+ } }, encapsulation: 2, changeDetection: 0 });
105
+ }
106
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LuzmoFilterExpressionPicker, [{
107
+ type: Component,
108
+ args: [{
109
+ selector: 'luzmo-filter-expression-picker',
110
+ exportAs: 'luzmoFilterExpressionPicker',
111
+ standalone: true,
112
+ changeDetection: ChangeDetectionStrategy.OnPush,
113
+ template: '<ng-content />'
114
+ }]
115
+ }], () => [], { filter: [{
116
+ type: Input,
117
+ args: [{ alias: 'filter' }]
118
+ }], hasLabel: [{
119
+ type: Input,
120
+ args: [{ alias: 'hasLabel', transform: booleanAttribute }]
121
+ }], label: [{
122
+ type: Input,
123
+ args: [{ alias: 'label' }]
124
+ }], allowEmpty: [{
125
+ type: Input,
126
+ args: [{ alias: 'allowEmpty', transform: booleanAttribute }]
127
+ }], placeholder: [{
128
+ type: Input,
129
+ args: [{ alias: 'placeholder' }]
130
+ }], disabled: [{
131
+ type: Input,
132
+ args: [{ alias: 'disabled', transform: booleanAttribute }]
133
+ }], type: [{
134
+ type: Input,
135
+ args: [{ alias: 'type' }]
136
+ }], subtype: [{
137
+ type: Input,
138
+ args: [{ alias: 'subtype' }]
139
+ }], invalid: [{
140
+ type: Input,
141
+ args: [{ alias: 'invalid', transform: booleanAttribute }]
142
+ }], isFormula: [{
143
+ type: Input,
144
+ args: [{ alias: 'isFormula', transform: booleanAttribute }]
145
+ }], luzmoExpressionSelected: [{ type: i0.Output, args: ["luzmoExpressionSelected"] }] }); })();
146
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LuzmoFilterExpressionPicker, { className: "LuzmoFilterExpressionPicker", filePath: "components/filter-expression-picker.ts", lineNumber: 16 }); })();
@@ -0,0 +1,44 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import '@luzmo/analytics-components-kit/filter-item';
3
+ import type { LuzmoFilterItem as LuzmoFilterItemHostElement } from '@luzmo/analytics-components-kit/filter-item';
4
+ import * as i0 from "@angular/core";
5
+ export declare class LuzmoFilterItem 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(): LuzmoFilterItemHostElement;
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 of the content */
22
+ contentLanguage?: string;
23
+ /** The time zone to use for the date picker */
24
+ timeZone?: string;
25
+ /** The dataset ids to fetch columns & formulas */
26
+ datasetIds?: string[];
27
+ /** The filter to display */
28
+ filter?: any;
29
+ readonly luzmoFilterChanged: import("@angular/core").OutputEmitterRef<CustomEvent<unknown>>;
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<LuzmoFilterItem, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoFilterItem, "luzmo-filter-item", ["luzmoFilterItem"], { "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; }; "timeZone": { "alias": "timeZone"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; }, { "luzmoFilterChanged": "luzmoFilterChanged"; }, never, ["*"], true, never>;
42
+ }
43
+ /** The underlying custom element type for LuzmoFilterItem */
44
+ export type LuzmoFilterItemElement = LuzmoFilterItemHostElement;