@luzmo/react-analytics-components-kit 1.0.9-beta.7 → 1.0.9-beta.9

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.
@@ -0,0 +1,14 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoAddToDashboard as LuzmoAddToDashboardClass, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail } from '@luzmo/analytics-components-kit/add-to-dashboard';
3
+ /**
4
+ * React wrapper for <luzmo-add-to-dashboard>
5
+ *
6
+ * @event onLuzmoChartAdded - Fired after the chart was saved to a dashboard, a new dashboard or a variant.
7
+ * @event onLuzmoChartAddFailed - Fired when saving the chart failed.
8
+ */
9
+ export declare const LuzmoAddToDashboard: ReactWebComponent<LuzmoAddToDashboardClass, {
10
+ onLuzmoChartAdded: EventName<CustomEvent<AddToDashboardChartAddedEventDetail>>;
11
+ onLuzmoChartAddFailed: EventName<CustomEvent<AddToDashboardChartAddFailedEventDetail>>;
12
+ }>;
13
+ /** The underlying custom element type for LuzmoAddToDashboard */
14
+ export type LuzmoAddToDashboardElement = LuzmoAddToDashboardClass;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoAddToDashboard as LuzmoAddToDashboardClass } from '@luzmo/analytics-components-kit/add-to-dashboard';
4
+ const LuzmoAddToDashboardComponent = createComponent({
5
+ tagName: 'luzmo-add-to-dashboard',
6
+ elementClass: LuzmoAddToDashboardClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoChartAdded: 'luzmo-chart-added',
10
+ onLuzmoChartAddFailed: 'luzmo-chart-add-failed'
11
+ }
12
+ });
13
+ /**
14
+ * React wrapper for <luzmo-add-to-dashboard>
15
+ *
16
+ * @event onLuzmoChartAdded - Fired after the chart was saved to a dashboard, a new dashboard or a variant.
17
+ * @event onLuzmoChartAddFailed - Fired when saving the chart failed.
18
+ */
19
+ export const LuzmoAddToDashboard = LuzmoAddToDashboardComponent;
@@ -1,16 +1,20 @@
1
1
  import { EventName, ReactWebComponent } from '@lit/react';
2
- import { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemClass, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
2
+ import { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemClass, AddToDashboardChartAddFailedEventDetail, AddToDashboardChartAddedEventDetail, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
3
3
  /**
4
4
  * React wrapper for <luzmo-interactive-viz-item>
5
5
  *
6
- * @event onLuzmoChartOptionsChanged - Fired when the inline actions (ranking, sort, display mode) change the chart options.
7
- * @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart).
8
- * @event onLuzmoFeedbackChanged - Fired when the user changes the thumbs up/down rating.
6
+ * @event onLuzmoChartOptionsChanged - Fired when the inline actions (ranking, sort, display mode) change the chart options. Applied to `chart` first unless `controlled` is set.
7
+ * @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set.
8
+ * @event onLuzmoFeedbackChanged - Fired when the user changes the thumbs up/down rating. Never applied to `feedback`; the host owns it in both modes.
9
+ * @event onLuzmoChartAdded - Fired by the inner `luzmo-add-to-dashboard` after the chart was saved.
10
+ * @event onLuzmoChartAddFailed - Fired by the inner `luzmo-add-to-dashboard` when saving failed.
9
11
  */
10
12
  export declare const LuzmoInteractiveVizItem: ReactWebComponent<LuzmoInteractiveVizItemClass, {
11
13
  onLuzmoChartOptionsChanged: EventName<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>;
12
14
  onLuzmoChartChanged: EventName<CustomEvent<InteractiveVizItemChartChangedEventDetail>>;
13
15
  onLuzmoFeedbackChanged: EventName<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>;
16
+ onLuzmoChartAdded: EventName<CustomEvent<AddToDashboardChartAddedEventDetail>>;
17
+ onLuzmoChartAddFailed: EventName<CustomEvent<AddToDashboardChartAddFailedEventDetail>>;
14
18
  }>;
15
19
  /** The underlying custom element type for LuzmoInteractiveVizItem */
16
20
  export type LuzmoInteractiveVizItemElement = LuzmoInteractiveVizItemClass;
@@ -8,14 +8,18 @@ const LuzmoInteractiveVizItemComponent = createComponent({
8
8
  events: {
9
9
  onLuzmoChartOptionsChanged: 'luzmo-chart-options-changed',
10
10
  onLuzmoChartChanged: 'luzmo-chart-changed',
11
- onLuzmoFeedbackChanged: 'luzmo-feedback-changed'
11
+ onLuzmoFeedbackChanged: 'luzmo-feedback-changed',
12
+ onLuzmoChartAdded: 'luzmo-chart-added',
13
+ onLuzmoChartAddFailed: 'luzmo-chart-add-failed'
12
14
  }
13
15
  });
14
16
  /**
15
17
  * React wrapper for <luzmo-interactive-viz-item>
16
18
  *
17
- * @event onLuzmoChartOptionsChanged - Fired when the inline actions (ranking, sort, display mode) change the chart options.
18
- * @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart).
19
- * @event onLuzmoFeedbackChanged - Fired when the user changes the thumbs up/down rating.
19
+ * @event onLuzmoChartOptionsChanged - Fired when the inline actions (ranking, sort, display mode) change the chart options. Applied to `chart` first unless `controlled` is set.
20
+ * @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart). Applied to `chart` first unless `controlled` is set.
21
+ * @event onLuzmoFeedbackChanged - Fired when the user changes the thumbs up/down rating. Never applied to `feedback`; the host owns it in both modes.
22
+ * @event onLuzmoChartAdded - Fired by the inner `luzmo-add-to-dashboard` after the chart was saved.
23
+ * @event onLuzmoChartAddFailed - Fired by the inner `luzmo-add-to-dashboard` when saving failed.
20
24
  */
21
25
  export const LuzmoInteractiveVizItem = LuzmoInteractiveVizItemComponent;
package/esm/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { LuzmoAddToDashboard, type LuzmoAddToDashboardElement } from './components/add-to-dashboard.component';
1
2
  export { LuzmoAiChat, type LuzmoAiChatElement } from './components/ai-chat.component';
2
3
  export { LuzmoAiInteractionTextarea, type LuzmoAiInteractionTextareaElement } from './components/ai-interaction-textarea.component';
3
4
  export { LuzmoDataField, type LuzmoDataFieldElement } from './components/data-field.component';
@@ -49,6 +50,6 @@ export { LuzmoItemSlotPickerPanel, type LuzmoItemSlotPickerPanelElement } from '
49
50
  export { LuzmoSlotMenu, type LuzmoSlotMenuElement } from './components/slot-menu.component';
50
51
  export { LuzmoSlotMenuList, type LuzmoSlotMenuListElement } from './components/slot-menu-list.component';
51
52
  export { LuzmoVizItemMenu, type LuzmoVizItemMenuElement } from './components/viz-item-menu.component';
52
- export declare const LUZMO_REACT_COMPONENTS: readonly [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any];
53
- export declare const LUZMO_REACT_COMPONENT_NAMES: readonly ["LuzmoAiChat", "LuzmoAiInteractionTextarea", "LuzmoDataField", "LuzmoDataFieldLevel", "LuzmoDataFieldPanel", "LuzmoDataFieldsSelect", "LuzmoDatasetIcon", "LuzmoDatasetSelectorList", "LuzmoDatasetSelectorRow", "LuzmoDisplaySettings", "LuzmoDisplaySettingsBinning", "LuzmoDisplaySettingsDatetime", "LuzmoDisplaySettingsGrandTotals", "LuzmoDisplaySettingsNumeric", "LuzmoDisplaySettingsPeriodOverPeriod", "LuzmoFilterExpressionPicker", "LuzmoFilterItem", "LuzmoFilterParameterPicker", "LuzmoFilterValuePicker", "LuzmoFilterValuePickerDatetime", "LuzmoFilterValuePickerHierarchy", "LuzmoFilterValuePickerNumeric", "LuzmoFilters", "LuzmoFormula", "LuzmoFormulaEditor", "LuzmoFormulaField", "LuzmoInteractiveVizItem", "LuzmoItemGrid", "LuzmoItemOption", "LuzmoItemOptionActionButtonGroup", "LuzmoItemOptionColorPalettePicker", "LuzmoItemOptionColorPicker", "LuzmoItemOptionColorRange", "LuzmoItemOptionGuidelines", "LuzmoItemOptionMultiLanguageField", "LuzmoItemOptionNumberField", "LuzmoItemOptionPanel", "LuzmoItemOptionPicker", "LuzmoItemOptionPositionPicker", "LuzmoItemOptionPositionsNumberField", "LuzmoItemOptionRadioButtonGroup", "LuzmoItemOptionSlider", "LuzmoItemOptionSwitch", "LuzmoItemOptionTextField", "LuzmoItemSlotDrop", "LuzmoItemSlotDropPanel", "LuzmoItemSlotPicker", "LuzmoItemSlotPickerPanel", "LuzmoSlotMenu", "LuzmoSlotMenuList", "LuzmoVizItemMenu"];
53
+ export declare const LUZMO_REACT_COMPONENTS: readonly [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any];
54
+ export declare const LUZMO_REACT_COMPONENT_NAMES: readonly ["LuzmoAddToDashboard", "LuzmoAiChat", "LuzmoAiInteractionTextarea", "LuzmoDataField", "LuzmoDataFieldLevel", "LuzmoDataFieldPanel", "LuzmoDataFieldsSelect", "LuzmoDatasetIcon", "LuzmoDatasetSelectorList", "LuzmoDatasetSelectorRow", "LuzmoDisplaySettings", "LuzmoDisplaySettingsBinning", "LuzmoDisplaySettingsDatetime", "LuzmoDisplaySettingsGrandTotals", "LuzmoDisplaySettingsNumeric", "LuzmoDisplaySettingsPeriodOverPeriod", "LuzmoFilterExpressionPicker", "LuzmoFilterItem", "LuzmoFilterParameterPicker", "LuzmoFilterValuePicker", "LuzmoFilterValuePickerDatetime", "LuzmoFilterValuePickerHierarchy", "LuzmoFilterValuePickerNumeric", "LuzmoFilters", "LuzmoFormula", "LuzmoFormulaEditor", "LuzmoFormulaField", "LuzmoInteractiveVizItem", "LuzmoItemGrid", "LuzmoItemOption", "LuzmoItemOptionActionButtonGroup", "LuzmoItemOptionColorPalettePicker", "LuzmoItemOptionColorPicker", "LuzmoItemOptionColorRange", "LuzmoItemOptionGuidelines", "LuzmoItemOptionMultiLanguageField", "LuzmoItemOptionNumberField", "LuzmoItemOptionPanel", "LuzmoItemOptionPicker", "LuzmoItemOptionPositionPicker", "LuzmoItemOptionPositionsNumberField", "LuzmoItemOptionRadioButtonGroup", "LuzmoItemOptionSlider", "LuzmoItemOptionSwitch", "LuzmoItemOptionTextField", "LuzmoItemSlotDrop", "LuzmoItemSlotDropPanel", "LuzmoItemSlotPicker", "LuzmoItemSlotPickerPanel", "LuzmoSlotMenu", "LuzmoSlotMenuList", "LuzmoVizItemMenu"];
54
55
  export type LuzmoReactComponentName = typeof LUZMO_REACT_COMPONENT_NAMES[number];
package/esm/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // Auto-generated React wrappers for Luzmo Analytics Components Kit
2
2
  // Generated using @lit/react
3
+ import { LuzmoAddToDashboard } from './components/add-to-dashboard.component';
3
4
  import { LuzmoAiChat } from './components/ai-chat.component';
4
5
  import { LuzmoAiInteractionTextarea } from './components/ai-interaction-textarea.component';
5
6
  import { LuzmoDataField } from './components/data-field.component';
@@ -51,6 +52,7 @@ import { LuzmoItemSlotPickerPanel } from './components/item-slot-picker-panel.co
51
52
  import { LuzmoSlotMenu } from './components/slot-menu.component';
52
53
  import { LuzmoSlotMenuList } from './components/slot-menu-list.component';
53
54
  import { LuzmoVizItemMenu } from './components/viz-item-menu.component';
55
+ export { LuzmoAddToDashboard } from './components/add-to-dashboard.component';
54
56
  export { LuzmoAiChat } from './components/ai-chat.component';
55
57
  export { LuzmoAiInteractionTextarea } from './components/ai-interaction-textarea.component';
56
58
  export { LuzmoDataField } from './components/data-field.component';
@@ -104,6 +106,7 @@ export { LuzmoSlotMenuList } from './components/slot-menu-list.component';
104
106
  export { LuzmoVizItemMenu } from './components/viz-item-menu.component';
105
107
  // Array of all React component classes for easy imports
106
108
  export const LUZMO_REACT_COMPONENTS = [
109
+ LuzmoAddToDashboard,
107
110
  LuzmoAiChat,
108
111
  LuzmoAiInteractionTextarea,
109
112
  LuzmoDataField,
@@ -158,6 +161,7 @@ export const LUZMO_REACT_COMPONENTS = [
158
161
  ];
159
162
  // List of all available React component names
160
163
  export const LUZMO_REACT_COMPONENT_NAMES = [
164
+ 'LuzmoAddToDashboard',
161
165
  'LuzmoAiChat',
162
166
  'LuzmoAiInteractionTextarea',
163
167
  'LuzmoDataField',
package/package.json CHANGED
@@ -29,7 +29,7 @@
29
29
  "peerDependencies": {
30
30
  "@lit/react": "^1.0.6",
31
31
  "react": "^18.0.0 || ^19.0.0",
32
- "@luzmo/analytics-components-kit": "^1.0.9-beta.7"
32
+ "@luzmo/analytics-components-kit": "^1.0.9-beta.9"
33
33
  },
34
- "version": "1.0.9-beta.7"
34
+ "version": "1.0.9-beta.9"
35
35
  }