@luzmo/ngx-analytics-components-kit 1.3.0 → 2.0.0

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 (42) hide show
  1. package/esm/components/add-to-dashboard.d.ts +8 -4
  2. package/esm/components/add-to-dashboard.js +23 -7
  3. package/esm/components/ai-chat-empty-state.d.ts +1 -1
  4. package/esm/components/ai-chat.d.ts +6 -4
  5. package/esm/components/ai-chat.js +10 -2
  6. package/esm/components/data-fields-select.d.ts +2 -0
  7. package/esm/components/data-fields-select.js +4 -0
  8. package/esm/components/display-settings-period-over-period.d.ts +12 -5
  9. package/esm/components/display-settings-period-over-period.js +29 -5
  10. package/esm/components/display-settings.d.ts +11 -4
  11. package/esm/components/display-settings.js +28 -4
  12. package/esm/components/interactive-viz-item.d.ts +30 -9
  13. package/esm/components/interactive-viz-item.js +98 -27
  14. package/esm/components/item-grid-item-actions-menu.d.ts +2 -0
  15. package/esm/components/item-grid-item-actions-menu.js +4 -0
  16. package/esm/components/item-grid.d.ts +3 -1
  17. package/esm/components/item-grid.js +9 -1
  18. package/esm/components/item-option-color-picker.d.ts +10 -10
  19. package/esm/components/item-option-color-picker.js +34 -34
  20. package/esm/components/item-option-guidelines.d.ts +8 -2
  21. package/esm/components/item-option-guidelines.js +26 -2
  22. package/esm/components/item-option-multi-language-field.d.ts +3 -3
  23. package/esm/components/item-option-multi-language-field.js +10 -10
  24. package/esm/components/item-option-number-field.d.ts +5 -5
  25. package/esm/components/item-option-number-field.js +18 -18
  26. package/esm/components/item-option-positions-number-field.d.ts +5 -5
  27. package/esm/components/item-option-positions-number-field.js +18 -18
  28. package/esm/components/item-option-radio-button-group.d.ts +3 -3
  29. package/esm/components/item-option-radio-button-group.js +10 -10
  30. package/esm/components/item-option-text-field.d.ts +3 -3
  31. package/esm/components/item-option-text-field.js +10 -10
  32. package/esm/components/item-slot-drop-panel.d.ts +4 -1
  33. package/esm/components/item-slot-drop-panel.js +10 -2
  34. package/esm/components/item-slot-drop.d.ts +4 -1
  35. package/esm/components/item-slot-drop.js +10 -2
  36. package/esm/components/item-slot-picker-panel.d.ts +5 -2
  37. package/esm/components/item-slot-picker-panel.js +11 -3
  38. package/esm/components/item-slot-picker.d.ts +9 -4
  39. package/esm/components/item-slot-picker.js +26 -10
  40. package/esm/components/slot-menu.d.ts +7 -2
  41. package/esm/components/slot-menu.js +18 -2
  42. package/package.json +2 -2
@@ -13,6 +13,8 @@ export declare class LuzmoItemSlotDropPanel implements OnChanges {
13
13
  private readonly listenerCleanup;
14
14
  /** The underlying custom element instance. Use to call imperative methods. */
15
15
  get nativeElement(): LuzmoItemSlotDropPanelHostElement;
16
+ /** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
17
+ hasConnectedComparisonFilter?: boolean;
16
18
  /** The type of the item (e.g., 'bar-chart', 'line-chart', 'area-chart') */
17
19
  itemType?: VizItemType | string;
18
20
  /** The language to use for locale-aware formatting and labels */
@@ -72,7 +74,8 @@ export declare class LuzmoItemSlotDropPanel implements OnChanges {
72
74
  private setHostProperty;
73
75
  private bindEvents;
74
76
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemSlotDropPanel, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotDropPanel, "luzmo-item-slot-drop-panel", ["luzmoItemSlotDropPanel"], { "itemType": { "alias": "itemType"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotsConfiguration": { "alias": "slotsConfiguration"; "required": false; }; "positioningConfiguration": { "alias": "positioningConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "positioned": { "alias": "positioned"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "slotMenuPlacement": { "alias": "slotMenuPlacement"; "required": false; }; "hideDelete": { "alias": "hideDelete"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "constraintMode": { "alias": "constraintMode"; "required": false; }; "slotMenuMode": { "alias": "slotMenuMode"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "slotspanel": { "alias": "slotsPanel"; "required": false; }; "slotsgrid": { "alias": "slotsGrid"; "required": false; }; "slotcell": { "alias": "slotCell"; "required": false; }; "itemslotdrop": { "alias": "itemSlotDrop"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotConstraintTriggered": "luzmoSlotConstraintTriggered"; "luzmoSlotsContentsChanged": "luzmoSlotsContentsChanged"; }, never, ["*"], true, never>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotDropPanel, "luzmo-item-slot-drop-panel", ["luzmoItemSlotDropPanel"], { "hasConnectedComparisonFilter": { "alias": "hasConnectedComparisonFilter"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotsConfiguration": { "alias": "slotsConfiguration"; "required": false; }; "positioningConfiguration": { "alias": "positioningConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "positioned": { "alias": "positioned"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "slotMenuPlacement": { "alias": "slotMenuPlacement"; "required": false; }; "hideDelete": { "alias": "hideDelete"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "constraintMode": { "alias": "constraintMode"; "required": false; }; "slotMenuMode": { "alias": "slotMenuMode"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "slotspanel": { "alias": "slotsPanel"; "required": false; }; "slotsgrid": { "alias": "slotsGrid"; "required": false; }; "slotcell": { "alias": "slotCell"; "required": false; }; "itemslotdrop": { "alias": "itemSlotDrop"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotConstraintTriggered": "luzmoSlotConstraintTriggered"; "luzmoSlotsContentsChanged": "luzmoSlotsContentsChanged"; }, never, ["*"], true, never>;
78
+ static ngAcceptInputType_hasConnectedComparisonFilter: unknown;
76
79
  static ngAcceptInputType_positioned: unknown;
77
80
  static ngAcceptInputType_hideDelete: unknown;
78
81
  static ngAcceptInputType_hideConfiguration: unknown;
@@ -15,6 +15,8 @@ export class LuzmoItemSlotDropPanel {
15
15
  get nativeElement() {
16
16
  return this.host;
17
17
  }
18
+ /** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
19
+ hasConnectedComparisonFilter;
18
20
  /** The type of the item (e.g., 'bar-chart', 'line-chart', 'area-chart') */
19
21
  itemType;
20
22
  /** The language to use for locale-aware formatting and labels */
@@ -74,6 +76,9 @@ export class LuzmoItemSlotDropPanel {
74
76
  ngOnChanges(changes) {
75
77
  for (const key of Object.keys(changes)) {
76
78
  switch (key) {
79
+ case 'hasConnectedComparisonFilter':
80
+ this.setHostProperty('hasConnectedComparisonFilter', changes['hasConnectedComparisonFilter'].currentValue);
81
+ break;
77
82
  case 'itemType':
78
83
  this.setHostProperty('itemType', changes['itemType'].currentValue);
79
84
  break;
@@ -165,7 +170,7 @@ export class LuzmoItemSlotDropPanel {
165
170
  }));
166
171
  }
167
172
  static ɵfac = function LuzmoItemSlotDropPanel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemSlotDropPanel)(); };
168
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotDropPanel, selectors: [["luzmo-item-slot-drop-panel"]], inputs: { itemType: "itemType", contentLanguage: "contentLanguage", slotsConfiguration: "slotsConfiguration", positioningConfiguration: "positioningConfiguration", slotsContents: "slotsContents", positioned: [2, "positioned", "positioned", booleanAttribute], dragBoundary: "dragBoundary", slotMenuPlacement: "slotMenuPlacement", hideDelete: [2, "hideDelete", "hideDelete", booleanAttribute], hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], grows: [2, "grows", "grows", booleanAttribute], constraintMode: "constraintMode", slotMenuMode: "slotMenuMode", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", slotspanel: [0, "slotsPanel", "slotspanel"], slotsgrid: [0, "slotsGrid", "slotsgrid"], slotcell: [0, "slotCell", "slotcell"], itemslotdrop: [0, "itemSlotDrop", "itemslotdrop"], language: "language", size: "size" }, outputs: { luzmoSlotConstraintTriggered: "luzmoSlotConstraintTriggered", luzmoSlotsContentsChanged: "luzmoSlotsContentsChanged" }, exportAs: ["luzmoItemSlotDropPanel"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotDropPanel_Template(rf, ctx) { if (rf & 1) {
173
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotDropPanel, selectors: [["luzmo-item-slot-drop-panel"]], inputs: { hasConnectedComparisonFilter: [2, "hasConnectedComparisonFilter", "hasConnectedComparisonFilter", booleanAttribute], itemType: "itemType", contentLanguage: "contentLanguage", slotsConfiguration: "slotsConfiguration", positioningConfiguration: "positioningConfiguration", slotsContents: "slotsContents", positioned: [2, "positioned", "positioned", booleanAttribute], dragBoundary: "dragBoundary", slotMenuPlacement: "slotMenuPlacement", hideDelete: [2, "hideDelete", "hideDelete", booleanAttribute], hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], grows: [2, "grows", "grows", booleanAttribute], constraintMode: "constraintMode", slotMenuMode: "slotMenuMode", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", slotspanel: [0, "slotsPanel", "slotspanel"], slotsgrid: [0, "slotsGrid", "slotsgrid"], slotcell: [0, "slotCell", "slotcell"], itemslotdrop: [0, "itemSlotDrop", "itemslotdrop"], language: "language", size: "size" }, outputs: { luzmoSlotConstraintTriggered: "luzmoSlotConstraintTriggered", luzmoSlotsContentsChanged: "luzmoSlotsContentsChanged" }, exportAs: ["luzmoItemSlotDropPanel"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotDropPanel_Template(rf, ctx) { if (rf & 1) {
169
174
  i0.ɵɵprojectionDef();
170
175
  i0.ɵɵprojection(0);
171
176
  } }, encapsulation: 2 });
@@ -179,7 +184,10 @@ export class LuzmoItemSlotDropPanel {
179
184
  changeDetection: ChangeDetectionStrategy.OnPush,
180
185
  template: '<ng-content />'
181
186
  }]
182
- }], () => [], { itemType: [{
187
+ }], () => [], { hasConnectedComparisonFilter: [{
188
+ type: Input,
189
+ args: [{ alias: 'hasConnectedComparisonFilter', transform: booleanAttribute }]
190
+ }], itemType: [{
183
191
  type: Input,
184
192
  args: [{ alias: 'itemType' }]
185
193
  }], contentLanguage: [{
@@ -13,6 +13,8 @@ export declare class LuzmoItemSlotDrop implements OnChanges {
13
13
  private readonly listenerCleanup;
14
14
  /** The underlying custom element instance. Use to call imperative methods. */
15
15
  get nativeElement(): LuzmoItemSlotDropHostElement;
16
+ /** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
17
+ hasConnectedComparisonFilter?: boolean;
16
18
  /** The visualization item type that determines the available slots and their configuration. */
17
19
  itemType?: VizItemType;
18
20
  /** The name of the slot this drop target represents. */
@@ -68,7 +70,8 @@ export declare class LuzmoItemSlotDrop implements OnChanges {
68
70
  private setHostProperty;
69
71
  private bindEvents;
70
72
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemSlotDrop, never>;
71
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotDrop, "luzmo-item-slot-drop", ["luzmoItemSlotDrop"], { "itemType": { "alias": "itemType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotConfiguration": { "alias": "slotConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "label": { "alias": "label"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "hideDelete": { "alias": "hideDelete"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotMenuInactive": "luzmoSlotMenuInactive"; "luzmoSlotMenuActive": "luzmoSlotMenuActive"; "luzmoSlotMenuHighlight": "luzmoSlotMenuHighlight"; "luzmoInfoVisibilityChanged": "luzmoInfoVisibilityChanged"; "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; }, never, ["*"], true, never>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotDrop, "luzmo-item-slot-drop", ["luzmoItemSlotDrop"], { "hasConnectedComparisonFilter": { "alias": "hasConnectedComparisonFilter"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotConfiguration": { "alias": "slotConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "label": { "alias": "label"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "hideDelete": { "alias": "hideDelete"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotMenuInactive": "luzmoSlotMenuInactive"; "luzmoSlotMenuActive": "luzmoSlotMenuActive"; "luzmoSlotMenuHighlight": "luzmoSlotMenuHighlight"; "luzmoInfoVisibilityChanged": "luzmoInfoVisibilityChanged"; "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; }, never, ["*"], true, never>;
74
+ static ngAcceptInputType_hasConnectedComparisonFilter: unknown;
72
75
  static ngAcceptInputType_rotate: unknown;
73
76
  static ngAcceptInputType_hideDelete: unknown;
74
77
  static ngAcceptInputType_hideConfiguration: unknown;
@@ -15,6 +15,8 @@ export class LuzmoItemSlotDrop {
15
15
  get nativeElement() {
16
16
  return this.host;
17
17
  }
18
+ /** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
19
+ hasConnectedComparisonFilter;
18
20
  /** The visualization item type that determines the available slots and their configuration. */
19
21
  itemType;
20
22
  /** The name of the slot this drop target represents. */
@@ -70,6 +72,9 @@ export class LuzmoItemSlotDrop {
70
72
  ngOnChanges(changes) {
71
73
  for (const key of Object.keys(changes)) {
72
74
  switch (key) {
75
+ case 'hasConnectedComparisonFilter':
76
+ this.setHostProperty('hasConnectedComparisonFilter', changes['hasConnectedComparisonFilter'].currentValue);
77
+ break;
73
78
  case 'itemType':
74
79
  this.setHostProperty('itemType', changes['itemType'].currentValue);
75
80
  break;
@@ -158,7 +163,7 @@ export class LuzmoItemSlotDrop {
158
163
  }));
159
164
  }
160
165
  static ɵfac = function LuzmoItemSlotDrop_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemSlotDrop)(); };
161
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotDrop, selectors: [["luzmo-item-slot-drop"]], inputs: { itemType: "itemType", slotName: "slotName", slotConfiguration: "slotConfiguration", slotsContents: "slotsContents", label: "label", contentLanguage: "contentLanguage", dragBoundary: "dragBoundary", rotate: [2, "rotate", "rotate", booleanAttribute], apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", menu: "menu", placement: "placement", hideDelete: [2, "hideDelete", "hideDelete", booleanAttribute], hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], language: "language", size: "size" }, outputs: { luzmoSlotMenuInactive: "luzmoSlotMenuInactive", luzmoSlotMenuActive: "luzmoSlotMenuActive", luzmoSlotMenuHighlight: "luzmoSlotMenuHighlight", luzmoInfoVisibilityChanged: "luzmoInfoVisibilityChanged", luzmoSlotContentsChanged: "luzmoSlotContentsChanged" }, exportAs: ["luzmoItemSlotDrop"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotDrop_Template(rf, ctx) { if (rf & 1) {
166
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotDrop, selectors: [["luzmo-item-slot-drop"]], inputs: { hasConnectedComparisonFilter: [2, "hasConnectedComparisonFilter", "hasConnectedComparisonFilter", booleanAttribute], itemType: "itemType", slotName: "slotName", slotConfiguration: "slotConfiguration", slotsContents: "slotsContents", label: "label", contentLanguage: "contentLanguage", dragBoundary: "dragBoundary", rotate: [2, "rotate", "rotate", booleanAttribute], apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", menu: "menu", placement: "placement", hideDelete: [2, "hideDelete", "hideDelete", booleanAttribute], hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], language: "language", size: "size" }, outputs: { luzmoSlotMenuInactive: "luzmoSlotMenuInactive", luzmoSlotMenuActive: "luzmoSlotMenuActive", luzmoSlotMenuHighlight: "luzmoSlotMenuHighlight", luzmoInfoVisibilityChanged: "luzmoInfoVisibilityChanged", luzmoSlotContentsChanged: "luzmoSlotContentsChanged" }, exportAs: ["luzmoItemSlotDrop"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotDrop_Template(rf, ctx) { if (rf & 1) {
162
167
  i0.ɵɵprojectionDef();
163
168
  i0.ɵɵprojection(0);
164
169
  } }, encapsulation: 2 });
@@ -172,7 +177,10 @@ export class LuzmoItemSlotDrop {
172
177
  changeDetection: ChangeDetectionStrategy.OnPush,
173
178
  template: '<ng-content />'
174
179
  }]
175
- }], () => [], { itemType: [{
180
+ }], () => [], { hasConnectedComparisonFilter: [{
181
+ type: Input,
182
+ args: [{ alias: 'hasConnectedComparisonFilter', transform: booleanAttribute }]
183
+ }], itemType: [{
176
184
  type: Input,
177
185
  args: [{ alias: 'itemType' }]
178
186
  }], slotName: [{
@@ -14,6 +14,8 @@ export declare class LuzmoItemSlotPickerPanel implements OnChanges {
14
14
  private readonly listenerCleanup;
15
15
  /** The underlying custom element instance. Use to call imperative methods. */
16
16
  get nativeElement(): LuzmoItemSlotPickerPanelHostElement;
17
+ /** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
18
+ hasConnectedComparisonFilter?: boolean;
17
19
  /** The type of the item (e.g., 'bar-chart', 'line-chart', 'area-chart') */
18
20
  itemType?: VizItemType | string;
19
21
  /** The language to use for locale-aware formatting and labels */
@@ -34,7 +36,7 @@ export declare class LuzmoItemSlotPickerPanel implements OnChanges {
34
36
  datasetsDataFields?: Array<DatasetsDataFields & Pick<DatasetMetadata, 'description'>>;
35
37
  /** Array of dataset IDs to fetch and display. Used as an alternative to datasetsDataFields - when provided (and datasetsDataFields is empty), the component will fetch the dataset metadata automatically. Requires apiUrl, authKey, and authToken to be set. */
36
38
  datasetIds?: string[];
37
- /** The currently selected dataset ID. If not provided, defaults to the first available dataset. */
39
+ /** The currently selected dataset ID. If not provided, defaults to the first available dataset, except when the panel fetches the dataset list itself. */
38
40
  selectedDatasetId?: string;
39
41
  /** Whether to show the dataset picker dropdown. */
40
42
  datasetPicker?: boolean;
@@ -91,7 +93,8 @@ export declare class LuzmoItemSlotPickerPanel implements OnChanges {
91
93
  private setHostProperty;
92
94
  private bindEvents;
93
95
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemSlotPickerPanel, never>;
94
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotPickerPanel, "luzmo-item-slot-picker-panel", ["luzmoItemSlotPickerPanel"], { "itemType": { "alias": "itemType"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotsConfiguration": { "alias": "slotsConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "dataFieldsSearch": { "alias": "dataFieldsSearch"; "required": false; }; "datasetSearch": { "alias": "datasetSearch"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "selectedDatasetId": { "alias": "selectedDatasetId"; "required": false; }; "datasetPicker": { "alias": "datasetPicker"; "required": false; }; "datasetPickerLabel": { "alias": "datasetPickerLabel"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "slotMenuPlacement": { "alias": "slotMenuPlacement"; "required": false; }; "slotMenuMode": { "alias": "slotMenuMode"; "required": false; }; "constraintMode": { "alias": "constraintMode"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "container": { "alias": "container"; "required": false; }; "datasetfieldlabel": { "alias": "datasetFieldLabel"; "required": false; }; "slotspanel": { "alias": "slotsPanel"; "required": false; }; "slotcontainer": { "alias": "slotContainer"; "required": false; }; "fieldlabel": { "alias": "fieldLabel"; "required": false; }; "itemslotpicker": { "alias": "itemSlotPicker"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoDatasetConstraintTriggered": "luzmoDatasetConstraintTriggered"; "luzmoSlotsContentsChanged": "luzmoSlotsContentsChanged"; "luzmoDatasetChanged": "luzmoDatasetChanged"; "luzmoSlotConstraintTriggered": "luzmoSlotConstraintTriggered"; }, never, ["*"], true, never>;
96
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotPickerPanel, "luzmo-item-slot-picker-panel", ["luzmoItemSlotPickerPanel"], { "hasConnectedComparisonFilter": { "alias": "hasConnectedComparisonFilter"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "slotsConfiguration": { "alias": "slotsConfiguration"; "required": false; }; "slotsContents": { "alias": "slotsContents"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "dataFieldsSearch": { "alias": "dataFieldsSearch"; "required": false; }; "datasetSearch": { "alias": "datasetSearch"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "datasetIds": { "alias": "datasetIds"; "required": false; }; "selectedDatasetId": { "alias": "selectedDatasetId"; "required": false; }; "datasetPicker": { "alias": "datasetPicker"; "required": false; }; "datasetPickerLabel": { "alias": "datasetPickerLabel"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "slotMenuPlacement": { "alias": "slotMenuPlacement"; "required": false; }; "slotMenuMode": { "alias": "slotMenuMode"; "required": false; }; "constraintMode": { "alias": "constraintMode"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "container": { "alias": "container"; "required": false; }; "datasetfieldlabel": { "alias": "datasetFieldLabel"; "required": false; }; "slotspanel": { "alias": "slotsPanel"; "required": false; }; "slotcontainer": { "alias": "slotContainer"; "required": false; }; "fieldlabel": { "alias": "fieldLabel"; "required": false; }; "itemslotpicker": { "alias": "itemSlotPicker"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoDatasetConstraintTriggered": "luzmoDatasetConstraintTriggered"; "luzmoSlotsContentsChanged": "luzmoSlotsContentsChanged"; "luzmoDatasetChanged": "luzmoDatasetChanged"; "luzmoSlotConstraintTriggered": "luzmoSlotConstraintTriggered"; }, never, ["*"], true, never>;
97
+ static ngAcceptInputType_hasConnectedComparisonFilter: unknown;
95
98
  static ngAcceptInputType_datasetPicker: unknown;
96
99
  static ngAcceptInputType_grows: unknown;
97
100
  }
@@ -15,6 +15,8 @@ export class LuzmoItemSlotPickerPanel {
15
15
  get nativeElement() {
16
16
  return this.host;
17
17
  }
18
+ /** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
19
+ hasConnectedComparisonFilter;
18
20
  /** The type of the item (e.g., 'bar-chart', 'line-chart', 'area-chart') */
19
21
  itemType;
20
22
  /** The language to use for locale-aware formatting and labels */
@@ -35,7 +37,7 @@ export class LuzmoItemSlotPickerPanel {
35
37
  datasetsDataFields;
36
38
  /** Array of dataset IDs to fetch and display. Used as an alternative to datasetsDataFields - when provided (and datasetsDataFields is empty), the component will fetch the dataset metadata automatically. Requires apiUrl, authKey, and authToken to be set. */
37
39
  datasetIds;
38
- /** The currently selected dataset ID. If not provided, defaults to the first available dataset. */
40
+ /** The currently selected dataset ID. If not provided, defaults to the first available dataset, except when the panel fetches the dataset list itself. */
39
41
  selectedDatasetId;
40
42
  /** Whether to show the dataset picker dropdown. */
41
43
  datasetPicker;
@@ -92,6 +94,9 @@ export class LuzmoItemSlotPickerPanel {
92
94
  ngOnChanges(changes) {
93
95
  for (const key of Object.keys(changes)) {
94
96
  switch (key) {
97
+ case 'hasConnectedComparisonFilter':
98
+ this.setHostProperty('hasConnectedComparisonFilter', changes['hasConnectedComparisonFilter'].currentValue);
99
+ break;
95
100
  case 'itemType':
96
101
  this.setHostProperty('itemType', changes['itemType'].currentValue);
97
102
  break;
@@ -212,7 +217,7 @@ export class LuzmoItemSlotPickerPanel {
212
217
  }));
213
218
  }
214
219
  static ɵfac = function LuzmoItemSlotPickerPanel_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemSlotPickerPanel)(); };
215
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotPickerPanel, selectors: [["luzmo-item-slot-picker-panel"]], inputs: { itemType: "itemType", contentLanguage: "contentLanguage", slotsConfiguration: "slotsConfiguration", slotsContents: "slotsContents", selects: "selects", dataFieldsSearch: "dataFieldsSearch", datasetSearch: "datasetSearch", icons: "icons", datasetsDataFields: "datasetsDataFields", datasetIds: "datasetIds", selectedDatasetId: "selectedDatasetId", datasetPicker: [2, "datasetPicker", "datasetPicker", booleanAttribute], datasetPickerLabel: "datasetPickerLabel", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", placement: "placement", slotMenuPlacement: "slotMenuPlacement", slotMenuMode: "slotMenuMode", constraintMode: "constraintMode", grows: [2, "grows", "grows", booleanAttribute], container: "container", datasetfieldlabel: [0, "datasetFieldLabel", "datasetfieldlabel"], slotspanel: [0, "slotsPanel", "slotspanel"], slotcontainer: [0, "slotContainer", "slotcontainer"], fieldlabel: [0, "fieldLabel", "fieldlabel"], itemslotpicker: [0, "itemSlotPicker", "itemslotpicker"], language: "language", size: "size" }, outputs: { luzmoDatasetConstraintTriggered: "luzmoDatasetConstraintTriggered", luzmoSlotsContentsChanged: "luzmoSlotsContentsChanged", luzmoDatasetChanged: "luzmoDatasetChanged", luzmoSlotConstraintTriggered: "luzmoSlotConstraintTriggered" }, exportAs: ["luzmoItemSlotPickerPanel"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotPickerPanel_Template(rf, ctx) { if (rf & 1) {
220
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotPickerPanel, selectors: [["luzmo-item-slot-picker-panel"]], inputs: { hasConnectedComparisonFilter: [2, "hasConnectedComparisonFilter", "hasConnectedComparisonFilter", booleanAttribute], itemType: "itemType", contentLanguage: "contentLanguage", slotsConfiguration: "slotsConfiguration", slotsContents: "slotsContents", selects: "selects", dataFieldsSearch: "dataFieldsSearch", datasetSearch: "datasetSearch", icons: "icons", datasetsDataFields: "datasetsDataFields", datasetIds: "datasetIds", selectedDatasetId: "selectedDatasetId", datasetPicker: [2, "datasetPicker", "datasetPicker", booleanAttribute], datasetPickerLabel: "datasetPickerLabel", apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", placement: "placement", slotMenuPlacement: "slotMenuPlacement", slotMenuMode: "slotMenuMode", constraintMode: "constraintMode", grows: [2, "grows", "grows", booleanAttribute], container: "container", datasetfieldlabel: [0, "datasetFieldLabel", "datasetfieldlabel"], slotspanel: [0, "slotsPanel", "slotspanel"], slotcontainer: [0, "slotContainer", "slotcontainer"], fieldlabel: [0, "fieldLabel", "fieldlabel"], itemslotpicker: [0, "itemSlotPicker", "itemslotpicker"], language: "language", size: "size" }, outputs: { luzmoDatasetConstraintTriggered: "luzmoDatasetConstraintTriggered", luzmoSlotsContentsChanged: "luzmoSlotsContentsChanged", luzmoDatasetChanged: "luzmoDatasetChanged", luzmoSlotConstraintTriggered: "luzmoSlotConstraintTriggered" }, exportAs: ["luzmoItemSlotPickerPanel"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotPickerPanel_Template(rf, ctx) { if (rf & 1) {
216
221
  i0.ɵɵprojectionDef();
217
222
  i0.ɵɵprojection(0);
218
223
  } }, encapsulation: 2 });
@@ -226,7 +231,10 @@ export class LuzmoItemSlotPickerPanel {
226
231
  changeDetection: ChangeDetectionStrategy.OnPush,
227
232
  template: '<ng-content />'
228
233
  }]
229
- }], () => [], { itemType: [{
234
+ }], () => [], { hasConnectedComparisonFilter: [{
235
+ type: Input,
236
+ args: [{ alias: 'hasConnectedComparisonFilter', transform: booleanAttribute }]
237
+ }], itemType: [{
230
238
  type: Input,
231
239
  args: [{ alias: 'itemType' }]
232
240
  }], contentLanguage: [{
@@ -3,7 +3,7 @@ import '@luzmo/analytics-components-kit/item-slot-picker';
3
3
  import type { LuzmoItemSlotPicker as LuzmoItemSlotPickerHostElement, SlotContentsChangedEventDetail } from '@luzmo/analytics-components-kit/item-slot-picker';
4
4
  import type { Placement } from '@floating-ui/dom';
5
5
  import type { DatasetsDataFields, SlotContent } from '@luzmo/analytics-components-kit/types';
6
- import type { SlotConfig, SlotName, VizItemType } from '@luzmo/dashboard-contents-types';
6
+ import type { SlotConfig, SlotName, VizItemSlot, VizItemType } from '@luzmo/dashboard-contents-types';
7
7
  import * as i0 from "@angular/core";
8
8
  export type { SlotContentsChangedEventDetail } from '@luzmo/analytics-components-kit/item-slot-picker';
9
9
  export declare class LuzmoItemSlotPicker implements OnChanges {
@@ -14,6 +14,10 @@ export declare class LuzmoItemSlotPicker implements OnChanges {
14
14
  private readonly listenerCleanup;
15
15
  /** The underlying custom element instance. Use to call imperative methods. */
16
16
  get nativeElement(): LuzmoItemSlotPickerHostElement;
17
+ /** Full saved slots for deriving comparison levels and implicit datetime offsets. */
18
+ slotsContents?: VizItemSlot[];
19
+ /** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
20
+ hasConnectedComparisonFilter?: boolean;
17
21
  /** The API URL for the databroker */
18
22
  apiUrl?: string;
19
23
  /** The API key to fetch the columns */
@@ -42,6 +46,8 @@ export declare class LuzmoItemSlotPicker implements OnChanges {
42
46
  label?: string;
43
47
  /** Whether the picker allows single or multiple selections. Only relevant if the slot configuration allows multiple data fields. */
44
48
  selects?: 'single' | 'multiple';
49
+ /** Whether the search input is visible: `on`, `off`, or `auto`. */
50
+ search?: 'on' | 'off' | 'auto';
45
51
  /** Where to show icons */
46
52
  icons?: 'none' | 'menu-only' | 'all';
47
53
  /** The placeholder text for the picker is no value selected. */
@@ -60,8 +66,6 @@ export declare class LuzmoItemSlotPicker implements OnChanges {
60
66
  hideClear?: boolean;
61
67
  /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
62
68
  language?: string;
63
- /** Whether the search input is visible: `on`, `off`, or `auto`. */
64
- search?: 'on' | 'off' | 'auto';
65
69
  /** The size of the element */
66
70
  size?: 's' | 'm' | 'l' | 'xl';
67
71
  /** Announces that the slot contents has changed */
@@ -77,7 +81,8 @@ export declare class LuzmoItemSlotPicker implements OnChanges {
77
81
  private setHostProperty;
78
82
  private bindEvents;
79
83
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoItemSlotPicker, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotPicker, "luzmo-item-slot-picker", ["luzmoItemSlotPicker"], { "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotConfiguration": { "alias": "slotConfiguration"; "required": false; }; "slotContents": { "alias": "slotContents"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "hasLabel": { "alias": "hasLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "slotMenuPlacement": { "alias": "slotMenuPlacement"; "required": false; }; "slotMenuMode": { "alias": "slotMenuMode"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "hideClear": { "alias": "hideClear"; "required": false; }; "language": { "alias": "language"; "required": false; }; "search": { "alias": "search"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; }, never, ["*"], true, never>;
84
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoItemSlotPicker, "luzmo-item-slot-picker", ["luzmoItemSlotPicker"], { "slotsContents": { "alias": "slotsContents"; "required": false; }; "hasConnectedComparisonFilter": { "alias": "hasConnectedComparisonFilter"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "authKey": { "alias": "authKey"; "required": false; }; "authToken": { "alias": "authToken"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotConfiguration": { "alias": "slotConfiguration"; "required": false; }; "slotContents": { "alias": "slotContents"; "required": false; }; "contentLanguage": { "alias": "contentLanguage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "grows": { "alias": "grows"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "hasLabel": { "alias": "hasLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "search": { "alias": "search"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "datasetsDataFields": { "alias": "datasetsDataFields"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "slotMenuPlacement": { "alias": "slotMenuPlacement"; "required": false; }; "slotMenuMode": { "alias": "slotMenuMode"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "hideClear": { "alias": "hideClear"; "required": false; }; "language": { "alias": "language"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "luzmoSlotContentsChanged": "luzmoSlotContentsChanged"; }, never, ["*"], true, never>;
85
+ static ngAcceptInputType_hasConnectedComparisonFilter: unknown;
81
86
  static ngAcceptInputType_disabled: unknown;
82
87
  static ngAcceptInputType_grows: unknown;
83
88
  static ngAcceptInputType_hasLabel: unknown;
@@ -15,6 +15,10 @@ export class LuzmoItemSlotPicker {
15
15
  get nativeElement() {
16
16
  return this.host;
17
17
  }
18
+ /** Full saved slots for deriving comparison levels and implicit datetime offsets. */
19
+ slotsContents;
20
+ /** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
21
+ hasConnectedComparisonFilter;
18
22
  /** The API URL for the databroker */
19
23
  apiUrl;
20
24
  /** The API key to fetch the columns */
@@ -43,6 +47,8 @@ export class LuzmoItemSlotPicker {
43
47
  label;
44
48
  /** Whether the picker allows single or multiple selections. Only relevant if the slot configuration allows multiple data fields. */
45
49
  selects;
50
+ /** Whether the search input is visible: `on`, `off`, or `auto`. */
51
+ search;
46
52
  /** Where to show icons */
47
53
  icons;
48
54
  /** The placeholder text for the picker is no value selected. */
@@ -61,8 +67,6 @@ export class LuzmoItemSlotPicker {
61
67
  hideClear;
62
68
  /** The language for UI labels. Supported values: 'en', 'nl', 'fr', 'de', 'es' */
63
69
  language;
64
- /** Whether the search input is visible: `on`, `off`, or `auto`. */
65
- search;
66
70
  /** The size of the element */
67
71
  size;
68
72
  /** Announces that the slot contents has changed */
@@ -78,6 +82,12 @@ export class LuzmoItemSlotPicker {
78
82
  ngOnChanges(changes) {
79
83
  for (const key of Object.keys(changes)) {
80
84
  switch (key) {
85
+ case 'slotsContents':
86
+ this.setHostProperty('slotsContents', changes['slotsContents'].currentValue);
87
+ break;
88
+ case 'hasConnectedComparisonFilter':
89
+ this.setHostProperty('hasConnectedComparisonFilter', changes['hasConnectedComparisonFilter'].currentValue);
90
+ break;
81
91
  case 'apiUrl':
82
92
  this.setHostProperty('apiUrl', changes['apiUrl'].currentValue);
83
93
  break;
@@ -120,6 +130,9 @@ export class LuzmoItemSlotPicker {
120
130
  case 'selects':
121
131
  this.setHostProperty('selects', changes['selects'].currentValue);
122
132
  break;
133
+ case 'search':
134
+ this.setHostProperty('search', changes['search'].currentValue);
135
+ break;
123
136
  case 'icons':
124
137
  this.setHostProperty('icons', changes['icons'].currentValue);
125
138
  break;
@@ -147,9 +160,6 @@ export class LuzmoItemSlotPicker {
147
160
  case 'language':
148
161
  this.setHostProperty('language', changes['language'].currentValue);
149
162
  break;
150
- case 'search':
151
- this.setHostProperty('search', changes['search'].currentValue);
152
- break;
153
163
  case 'size':
154
164
  this.setHostProperty('size', changes['size'].currentValue);
155
165
  break;
@@ -174,7 +184,7 @@ export class LuzmoItemSlotPicker {
174
184
  }));
175
185
  }
176
186
  static ɵfac = function LuzmoItemSlotPicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoItemSlotPicker)(); };
177
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotPicker, selectors: [["luzmo-item-slot-picker"]], inputs: { apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", itemType: "itemType", slotName: "slotName", slotConfiguration: "slotConfiguration", slotContents: "slotContents", contentLanguage: "contentLanguage", disabled: [2, "disabled", "disabled", booleanAttribute], grows: [2, "grows", "grows", booleanAttribute], menu: "menu", hasLabel: [2, "hasLabel", "hasLabel", booleanAttribute], label: "label", selects: "selects", icons: "icons", placeholder: "placeholder", datasetsDataFields: "datasetsDataFields", placement: "placement", slotMenuPlacement: "slotMenuPlacement", slotMenuMode: "slotMenuMode", hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], hideClear: [2, "hideClear", "hideClear", booleanAttribute], language: "language", search: "search", size: "size" }, outputs: { luzmoSlotContentsChanged: "luzmoSlotContentsChanged" }, exportAs: ["luzmoItemSlotPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotPicker_Template(rf, ctx) { if (rf & 1) {
187
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoItemSlotPicker, selectors: [["luzmo-item-slot-picker"]], inputs: { slotsContents: "slotsContents", hasConnectedComparisonFilter: [2, "hasConnectedComparisonFilter", "hasConnectedComparisonFilter", booleanAttribute], apiUrl: "apiUrl", authKey: "authKey", authToken: "authToken", itemType: "itemType", slotName: "slotName", slotConfiguration: "slotConfiguration", slotContents: "slotContents", contentLanguage: "contentLanguage", disabled: [2, "disabled", "disabled", booleanAttribute], grows: [2, "grows", "grows", booleanAttribute], menu: "menu", hasLabel: [2, "hasLabel", "hasLabel", booleanAttribute], label: "label", selects: "selects", search: "search", icons: "icons", placeholder: "placeholder", datasetsDataFields: "datasetsDataFields", placement: "placement", slotMenuPlacement: "slotMenuPlacement", slotMenuMode: "slotMenuMode", hideConfiguration: [2, "hideConfiguration", "hideConfiguration", booleanAttribute], hideClear: [2, "hideClear", "hideClear", booleanAttribute], language: "language", size: "size" }, outputs: { luzmoSlotContentsChanged: "luzmoSlotContentsChanged" }, exportAs: ["luzmoItemSlotPicker"], features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function LuzmoItemSlotPicker_Template(rf, ctx) { if (rf & 1) {
178
188
  i0.ɵɵprojectionDef();
179
189
  i0.ɵɵprojection(0);
180
190
  } }, encapsulation: 2 });
@@ -188,7 +198,13 @@ export class LuzmoItemSlotPicker {
188
198
  changeDetection: ChangeDetectionStrategy.OnPush,
189
199
  template: '<ng-content />'
190
200
  }]
191
- }], () => [], { apiUrl: [{
201
+ }], () => [], { slotsContents: [{
202
+ type: Input,
203
+ args: [{ alias: 'slotsContents' }]
204
+ }], hasConnectedComparisonFilter: [{
205
+ type: Input,
206
+ args: [{ alias: 'hasConnectedComparisonFilter', transform: booleanAttribute }]
207
+ }], apiUrl: [{
192
208
  type: Input,
193
209
  args: [{ alias: 'apiUrl' }]
194
210
  }], authKey: [{
@@ -230,6 +246,9 @@ export class LuzmoItemSlotPicker {
230
246
  }], selects: [{
231
247
  type: Input,
232
248
  args: [{ alias: 'selects' }]
249
+ }], search: [{
250
+ type: Input,
251
+ args: [{ alias: 'search' }]
233
252
  }], icons: [{
234
253
  type: Input,
235
254
  args: [{ alias: 'icons' }]
@@ -257,9 +276,6 @@ export class LuzmoItemSlotPicker {
257
276
  }], language: [{
258
277
  type: Input,
259
278
  args: [{ alias: 'language' }]
260
- }], search: [{
261
- type: Input,
262
- args: [{ alias: 'search' }]
263
279
  }], size: [{
264
280
  type: Input,
265
281
  args: [{ alias: 'size' }]
@@ -5,7 +5,7 @@ import type { DatasetDataFields } from '@luzmo/analytics-components-kit/data-fie
5
5
  import type { LuzmoDisplaySettings } from '@luzmo/analytics-components-kit/display-settings';
6
6
  import type { LuzmoSlotMenuList } from '@luzmo/analytics-components-kit/slot-menu-list';
7
7
  import type { SlotContent } from '@luzmo/analytics-components-kit/types';
8
- import type { SlotName, VizItemType } from '@luzmo/dashboard-contents-types';
8
+ import type { SlotName, VizItemSlot, VizItemType } from '@luzmo/dashboard-contents-types';
9
9
  import * as i0 from "@angular/core";
10
10
  export type { InfoVisibilityChangedEventDetail, MeasureColumnsItem, SlotContentChangedEventDetail, SlotContentsChangedEventDetail, SlotListChangedEventDetail, SlotMenuActiveEventDetail, SlotMenuHighlightEventDetail } from '@luzmo/analytics-components-kit/slot-menu';
11
11
  export declare class LuzmoSlotMenu implements OnChanges {
@@ -16,6 +16,10 @@ export declare class LuzmoSlotMenu implements OnChanges {
16
16
  private readonly listenerCleanup;
17
17
  /** The underlying custom element instance. Use to call imperative methods. */
18
18
  get nativeElement(): LuzmoSlotMenuHostElement;
19
+ /** Full saved slots for deriving comparison levels and implicit datetime offsets. */
20
+ slotsContents?: VizItemSlot[];
21
+ /** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
22
+ hasConnectedComparisonFilter?: boolean;
19
23
  /** The language of the settings interface */
20
24
  language?: string;
21
25
  /** The language to use for locale-aware formatting and labels */
@@ -92,7 +96,8 @@ export declare class LuzmoSlotMenu implements OnChanges {
92
96
  private bindEvents;
93
97
  close(): void;
94
98
  static ɵfac: i0.ɵɵFactoryDeclaration<LuzmoSlotMenu, never>;
95
- 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; }; "noRemove": { "alias": "noRemove"; "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>;
99
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuzmoSlotMenu, "luzmo-slot-menu", ["luzmoSlotMenu"], { "slotsContents": { "alias": "slotsContents"; "required": false; }; "hasConnectedComparisonFilter": { "alias": "hasConnectedComparisonFilter"; "required": false; }; "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; }; "noRemove": { "alias": "noRemove"; "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>;
100
+ static ngAcceptInputType_hasConnectedComparisonFilter: unknown;
96
101
  static ngAcceptInputType_noDrag: unknown;
97
102
  static ngAcceptInputType_noClose: unknown;
98
103
  static ngAcceptInputType_noTopMenuLabel: unknown;
@@ -15,6 +15,10 @@ export class LuzmoSlotMenu {
15
15
  get nativeElement() {
16
16
  return this.host;
17
17
  }
18
+ /** Full saved slots for deriving comparison levels and implicit datetime offsets. */
19
+ slotsContents;
20
+ /** Whether a comparison filter currently applies to this item. Runtime only; never saved in slot contents. */
21
+ hasConnectedComparisonFilter;
18
22
  /** The language of the settings interface */
19
23
  language;
20
24
  /** The language to use for locale-aware formatting and labels */
@@ -90,6 +94,12 @@ export class LuzmoSlotMenu {
90
94
  ngOnChanges(changes) {
91
95
  for (const key of Object.keys(changes)) {
92
96
  switch (key) {
97
+ case 'slotsContents':
98
+ this.setHostProperty('slotsContents', changes['slotsContents'].currentValue);
99
+ break;
100
+ case 'hasConnectedComparisonFilter':
101
+ this.setHostProperty('hasConnectedComparisonFilter', changes['hasConnectedComparisonFilter'].currentValue);
102
+ break;
93
103
  case 'language':
94
104
  this.setHostProperty('language', changes['language'].currentValue);
95
105
  break;
@@ -212,7 +222,7 @@ export class LuzmoSlotMenu {
212
222
  return this.host.close();
213
223
  }
214
224
  static ɵfac = function LuzmoSlotMenu_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LuzmoSlotMenu)(); };
215
- 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], noRemove: [2, "noRemove", "noRemove", 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) {
225
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LuzmoSlotMenu, selectors: [["luzmo-slot-menu"]], inputs: { slotsContents: "slotsContents", hasConnectedComparisonFilter: [2, "hasConnectedComparisonFilter", "hasConnectedComparisonFilter", booleanAttribute], 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], noRemove: [2, "noRemove", "noRemove", 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) {
216
226
  i0.ɵɵprojectionDef();
217
227
  i0.ɵɵprojection(0);
218
228
  } }, encapsulation: 2 });
@@ -226,7 +236,13 @@ export class LuzmoSlotMenu {
226
236
  changeDetection: ChangeDetectionStrategy.OnPush,
227
237
  template: '<ng-content />'
228
238
  }]
229
- }], () => [], { language: [{
239
+ }], () => [], { slotsContents: [{
240
+ type: Input,
241
+ args: [{ alias: 'slotsContents' }]
242
+ }], hasConnectedComparisonFilter: [{
243
+ type: Input,
244
+ args: [{ alias: 'hasConnectedComparisonFilter', transform: booleanAttribute }]
245
+ }], language: [{
230
246
  type: Input,
231
247
  args: [{ alias: 'language' }]
232
248
  }], contentLanguage: [{
package/package.json CHANGED
@@ -29,9 +29,9 @@
29
29
  "peerDependencies": {
30
30
  "@angular/core": "^17.3.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
31
31
  "@angular/forms": "^17.3.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
32
- "@luzmo/analytics-components-kit": "1.3.0"
32
+ "@luzmo/analytics-components-kit": "2.0.0"
33
33
  },
34
- "version": "1.3.0",
34
+ "version": "2.0.0",
35
35
  "repository": {
36
36
  "type": "git",
37
37
  "url": "git+https://github.com/cumulio-internal/analytics-components-kit.git"