@luzmo/react-analytics-components-kit 1.0.9-beta.1 → 1.0.9-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.
- package/esm/components/add-to-dashboard.component.d.ts +14 -0
- package/esm/components/add-to-dashboard.component.js +19 -0
- package/esm/components/ai-chat.component.d.ts +1 -1
- package/esm/components/ai-chat.component.js +1 -1
- package/esm/components/interactive-viz-item.component.d.ts +8 -4
- package/esm/components/interactive-viz-item.component.js +8 -4
- package/esm/components/item-grid-item-actions-menu.component.d.ts +14 -0
- package/esm/components/item-grid-item-actions-menu.component.js +19 -0
- package/esm/components/item-grid.component.d.ts +3 -1
- package/esm/components/item-grid.component.js +2 -0
- package/esm/index.d.ts +4 -3
- package/esm/index.js +10 -6
- package/package.json +2 -2
- package/esm/components/viz-item-menu.component.d.ts +0 -16
- package/esm/components/viz-item-menu.component.js +0 -21
|
@@ -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;
|
|
@@ -7,7 +7,7 @@ import { LuzmoAiChat as LuzmoAiChatClass, AiChatCompleteEvent, AiChatConversatio
|
|
|
7
7
|
* @event onLuzmoDatasetsChanged - Fired when the selected datasets change
|
|
8
8
|
* @event onLuzmoStep - Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, custom-item, elicitation, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow.
|
|
9
9
|
* @event onLuzmoComplete - Fired exactly once per response with the authoritative final result (dashboard/chart/name/customItem) or an `error`.
|
|
10
|
-
* @event onLuzmoStop - Fired when an in-flight prompt is stopped
|
|
10
|
+
* @event onLuzmoStop - Fired when an in-flight prompt is stopped
|
|
11
11
|
* @event onLuzmoConversationIdChanged - Fired when the conversation ID is updated from the API
|
|
12
12
|
* @event onLuzmoAssistantMessageAction - Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set)
|
|
13
13
|
*/
|
|
@@ -22,7 +22,7 @@ const LuzmoAiChatComponent = createComponent({
|
|
|
22
22
|
* @event onLuzmoDatasetsChanged - Fired when the selected datasets change
|
|
23
23
|
* @event onLuzmoStep - Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, custom-item, elicitation, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow.
|
|
24
24
|
* @event onLuzmoComplete - Fired exactly once per response with the authoritative final result (dashboard/chart/name/customItem) or an `error`.
|
|
25
|
-
* @event onLuzmoStop - Fired when an in-flight prompt is stopped
|
|
25
|
+
* @event onLuzmoStop - Fired when an in-flight prompt is stopped
|
|
26
26
|
* @event onLuzmoConversationIdChanged - Fired when the conversation ID is updated from the API
|
|
27
27
|
* @event onLuzmoAssistantMessageAction - Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set)
|
|
28
28
|
*/
|
|
@@ -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;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoItemGridItemActionsMenu as LuzmoItemGridItemActionsMenuClass, ItemGridItemActionEventDetail, ItemGridItemActionHoverEventDetail } from '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-item-grid-item-actions-menu>
|
|
5
|
+
*
|
|
6
|
+
* @event onLuzmoItemGridItemAction - Fired when the user activates an action.
|
|
7
|
+
* @event onLuzmoItemGridItemActionHover - Fired when the pointer enters an action, for example to preload what it opens.
|
|
8
|
+
*/
|
|
9
|
+
export declare const LuzmoItemGridItemActionsMenu: ReactWebComponent<LuzmoItemGridItemActionsMenuClass, {
|
|
10
|
+
onLuzmoItemGridItemAction: EventName<CustomEvent<ItemGridItemActionEventDetail>>;
|
|
11
|
+
onLuzmoItemGridItemActionHover: EventName<CustomEvent<ItemGridItemActionHoverEventDetail>>;
|
|
12
|
+
}>;
|
|
13
|
+
/** The underlying custom element type for LuzmoItemGridItemActionsMenu */
|
|
14
|
+
export type LuzmoItemGridItemActionsMenuElement = LuzmoItemGridItemActionsMenuClass;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoItemGridItemActionsMenu as LuzmoItemGridItemActionsMenuClass } from '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
|
|
4
|
+
const LuzmoItemGridItemActionsMenuComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-item-grid-item-actions-menu',
|
|
6
|
+
elementClass: LuzmoItemGridItemActionsMenuClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onLuzmoItemGridItemAction: 'luzmo-item-grid-item-action',
|
|
10
|
+
onLuzmoItemGridItemActionHover: 'luzmo-item-grid-item-action-hover'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* React wrapper for <luzmo-item-grid-item-actions-menu>
|
|
15
|
+
*
|
|
16
|
+
* @event onLuzmoItemGridItemAction - Fired when the user activates an action.
|
|
17
|
+
* @event onLuzmoItemGridItemActionHover - Fired when the pointer enters an action, for example to preload what it opens.
|
|
18
|
+
*/
|
|
19
|
+
export const LuzmoItemGridItemActionsMenu = LuzmoItemGridItemActionsMenuComponent;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoItemGrid as LuzmoItemGridClass, GridItemActionEventDetail, GridItemStatesChangedEventDetail, GridLifecycleEventDetail } from '@luzmo/analytics-components-kit/item-grid';
|
|
2
|
+
import { LuzmoItemGrid as LuzmoItemGridClass, GridItemActionEventDetail, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, ItemGridItemActionHoverEventDetail } from '@luzmo/analytics-components-kit/item-grid';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-item-grid>
|
|
5
5
|
*
|
|
6
6
|
* @event onLuzmoItemGridItemAction - Fired when an item action is performed
|
|
7
|
+
* @event onLuzmoItemGridItemActionHover - Bubbles from the item actions menu when the pointer enters an action. The detail has only `action` and `type`, not the item.
|
|
7
8
|
* @event onLuzmoItemGridLayoutChanged - Fired when the grid layout is changed
|
|
8
9
|
* @event onLuzmoItemGridReady - Fired when the grid is ready
|
|
9
10
|
* @event onLuzmoItemGridItemStatesChanged - Fired when item states change (controlled and uncontrolled mode)
|
|
10
11
|
*/
|
|
11
12
|
export declare const LuzmoItemGrid: ReactWebComponent<LuzmoItemGridClass, {
|
|
12
13
|
onLuzmoItemGridItemAction: EventName<CustomEvent<GridItemActionEventDetail>>;
|
|
14
|
+
onLuzmoItemGridItemActionHover: EventName<CustomEvent<ItemGridItemActionHoverEventDetail>>;
|
|
13
15
|
onLuzmoItemGridLayoutChanged: EventName<CustomEvent<GridLifecycleEventDetail>>;
|
|
14
16
|
onLuzmoItemGridReady: EventName<CustomEvent<GridLifecycleEventDetail>>;
|
|
15
17
|
onLuzmoItemGridItemStatesChanged: EventName<CustomEvent<GridItemStatesChangedEventDetail>>;
|
|
@@ -7,6 +7,7 @@ const LuzmoItemGridComponent = createComponent({
|
|
|
7
7
|
react: React,
|
|
8
8
|
events: {
|
|
9
9
|
onLuzmoItemGridItemAction: 'luzmo-item-grid-item-action',
|
|
10
|
+
onLuzmoItemGridItemActionHover: 'luzmo-item-grid-item-action-hover',
|
|
10
11
|
onLuzmoItemGridLayoutChanged: 'luzmo-item-grid-layout-changed',
|
|
11
12
|
onLuzmoItemGridReady: 'luzmo-item-grid-ready',
|
|
12
13
|
onLuzmoItemGridItemStatesChanged: 'luzmo-item-grid-item-states-changed'
|
|
@@ -16,6 +17,7 @@ const LuzmoItemGridComponent = createComponent({
|
|
|
16
17
|
* React wrapper for <luzmo-item-grid>
|
|
17
18
|
*
|
|
18
19
|
* @event onLuzmoItemGridItemAction - Fired when an item action is performed
|
|
20
|
+
* @event onLuzmoItemGridItemActionHover - Bubbles from the item actions menu when the pointer enters an action. The detail has only `action` and `type`, not the item.
|
|
19
21
|
* @event onLuzmoItemGridLayoutChanged - Fired when the grid layout is changed
|
|
20
22
|
* @event onLuzmoItemGridReady - Fired when the grid is ready
|
|
21
23
|
* @event onLuzmoItemGridItemStatesChanged - Fired when item states change (controlled and uncontrolled mode)
|
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';
|
|
@@ -26,6 +27,7 @@ export { LuzmoFormulaEditor, type LuzmoFormulaEditorElement } from './components
|
|
|
26
27
|
export { LuzmoFormulaField, type LuzmoFormulaFieldElement } from './components/formula-field.component';
|
|
27
28
|
export { LuzmoInteractiveVizItem, type LuzmoInteractiveVizItemElement } from './components/interactive-viz-item.component';
|
|
28
29
|
export { LuzmoItemGrid, type LuzmoItemGridElement } from './components/item-grid.component';
|
|
30
|
+
export { LuzmoItemGridItemActionsMenu, type LuzmoItemGridItemActionsMenuElement } from './components/item-grid-item-actions-menu.component';
|
|
29
31
|
export { LuzmoItemOption, type LuzmoItemOptionElement } from './components/item-option.component';
|
|
30
32
|
export { LuzmoItemOptionActionButtonGroup, type LuzmoItemOptionActionButtonGroupElement } from './components/item-option-action-button-group.component';
|
|
31
33
|
export { LuzmoItemOptionColorPalettePicker, type LuzmoItemOptionColorPalettePickerElement } from './components/item-option-color-palette-picker.component';
|
|
@@ -48,7 +50,6 @@ export { LuzmoItemSlotPicker, type LuzmoItemSlotPickerElement } from './componen
|
|
|
48
50
|
export { LuzmoItemSlotPickerPanel, type LuzmoItemSlotPickerPanelElement } from './components/item-slot-picker-panel.component';
|
|
49
51
|
export { LuzmoSlotMenu, type LuzmoSlotMenuElement } from './components/slot-menu.component';
|
|
50
52
|
export { LuzmoSlotMenuList, type LuzmoSlotMenuListElement } from './components/slot-menu-list.component';
|
|
51
|
-
export
|
|
52
|
-
export declare const
|
|
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", "LuzmoItemGridItemActionsMenu", "LuzmoItemOption", "LuzmoItemOptionActionButtonGroup", "LuzmoItemOptionColorPalettePicker", "LuzmoItemOptionColorPicker", "LuzmoItemOptionColorRange", "LuzmoItemOptionGuidelines", "LuzmoItemOptionMultiLanguageField", "LuzmoItemOptionNumberField", "LuzmoItemOptionPanel", "LuzmoItemOptionPicker", "LuzmoItemOptionPositionPicker", "LuzmoItemOptionPositionsNumberField", "LuzmoItemOptionRadioButtonGroup", "LuzmoItemOptionSlider", "LuzmoItemOptionSwitch", "LuzmoItemOptionTextField", "LuzmoItemSlotDrop", "LuzmoItemSlotDropPanel", "LuzmoItemSlotPicker", "LuzmoItemSlotPickerPanel", "LuzmoSlotMenu", "LuzmoSlotMenuList"];
|
|
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';
|
|
@@ -28,6 +29,7 @@ import { LuzmoFormulaEditor } from './components/formula-editor.component';
|
|
|
28
29
|
import { LuzmoFormulaField } from './components/formula-field.component';
|
|
29
30
|
import { LuzmoInteractiveVizItem } from './components/interactive-viz-item.component';
|
|
30
31
|
import { LuzmoItemGrid } from './components/item-grid.component';
|
|
32
|
+
import { LuzmoItemGridItemActionsMenu } from './components/item-grid-item-actions-menu.component';
|
|
31
33
|
import { LuzmoItemOption } from './components/item-option.component';
|
|
32
34
|
import { LuzmoItemOptionActionButtonGroup } from './components/item-option-action-button-group.component';
|
|
33
35
|
import { LuzmoItemOptionColorPalettePicker } from './components/item-option-color-palette-picker.component';
|
|
@@ -50,7 +52,7 @@ import { LuzmoItemSlotPicker } from './components/item-slot-picker.component';
|
|
|
50
52
|
import { LuzmoItemSlotPickerPanel } from './components/item-slot-picker-panel.component';
|
|
51
53
|
import { LuzmoSlotMenu } from './components/slot-menu.component';
|
|
52
54
|
import { LuzmoSlotMenuList } from './components/slot-menu-list.component';
|
|
53
|
-
|
|
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';
|
|
@@ -79,6 +81,7 @@ export { LuzmoFormulaEditor } from './components/formula-editor.component';
|
|
|
79
81
|
export { LuzmoFormulaField } from './components/formula-field.component';
|
|
80
82
|
export { LuzmoInteractiveVizItem } from './components/interactive-viz-item.component';
|
|
81
83
|
export { LuzmoItemGrid } from './components/item-grid.component';
|
|
84
|
+
export { LuzmoItemGridItemActionsMenu } from './components/item-grid-item-actions-menu.component';
|
|
82
85
|
export { LuzmoItemOption } from './components/item-option.component';
|
|
83
86
|
export { LuzmoItemOptionActionButtonGroup } from './components/item-option-action-button-group.component';
|
|
84
87
|
export { LuzmoItemOptionColorPalettePicker } from './components/item-option-color-palette-picker.component';
|
|
@@ -101,9 +104,9 @@ export { LuzmoItemSlotPicker } from './components/item-slot-picker.component';
|
|
|
101
104
|
export { LuzmoItemSlotPickerPanel } from './components/item-slot-picker-panel.component';
|
|
102
105
|
export { LuzmoSlotMenu } from './components/slot-menu.component';
|
|
103
106
|
export { LuzmoSlotMenuList } from './components/slot-menu-list.component';
|
|
104
|
-
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,
|
|
@@ -132,6 +135,7 @@ export const LUZMO_REACT_COMPONENTS = [
|
|
|
132
135
|
LuzmoFormulaField,
|
|
133
136
|
LuzmoInteractiveVizItem,
|
|
134
137
|
LuzmoItemGrid,
|
|
138
|
+
LuzmoItemGridItemActionsMenu,
|
|
135
139
|
LuzmoItemOption,
|
|
136
140
|
LuzmoItemOptionActionButtonGroup,
|
|
137
141
|
LuzmoItemOptionColorPalettePicker,
|
|
@@ -153,11 +157,11 @@ export const LUZMO_REACT_COMPONENTS = [
|
|
|
153
157
|
LuzmoItemSlotPicker,
|
|
154
158
|
LuzmoItemSlotPickerPanel,
|
|
155
159
|
LuzmoSlotMenu,
|
|
156
|
-
LuzmoSlotMenuList
|
|
157
|
-
LuzmoVizItemMenu
|
|
160
|
+
LuzmoSlotMenuList
|
|
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',
|
|
@@ -186,6 +190,7 @@ export const LUZMO_REACT_COMPONENT_NAMES = [
|
|
|
186
190
|
'LuzmoFormulaField',
|
|
187
191
|
'LuzmoInteractiveVizItem',
|
|
188
192
|
'LuzmoItemGrid',
|
|
193
|
+
'LuzmoItemGridItemActionsMenu',
|
|
189
194
|
'LuzmoItemOption',
|
|
190
195
|
'LuzmoItemOptionActionButtonGroup',
|
|
191
196
|
'LuzmoItemOptionColorPalettePicker',
|
|
@@ -207,6 +212,5 @@ export const LUZMO_REACT_COMPONENT_NAMES = [
|
|
|
207
212
|
'LuzmoItemSlotPicker',
|
|
208
213
|
'LuzmoItemSlotPickerPanel',
|
|
209
214
|
'LuzmoSlotMenu',
|
|
210
|
-
'LuzmoSlotMenuList'
|
|
211
|
-
'LuzmoVizItemMenu'
|
|
215
|
+
'LuzmoSlotMenuList'
|
|
212
216
|
];
|
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.
|
|
32
|
+
"@luzmo/analytics-components-kit": "^1.0.9-beta.11"
|
|
33
33
|
},
|
|
34
|
-
"version": "1.0.9-beta.
|
|
34
|
+
"version": "1.0.9-beta.11"
|
|
35
35
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoVizItemMenu as LuzmoVizItemMenuClass, VizItemMenuButtonClickedEventDetail, VizItemMenuSelectedChangedEventDetail } from '@luzmo/analytics-components-kit/viz-item-menu';
|
|
3
|
-
/**
|
|
4
|
-
* React wrapper for <luzmo-viz-item-menu>
|
|
5
|
-
*
|
|
6
|
-
* @event onSelectedChanged - Emitted when the selected button changes
|
|
7
|
-
* @event onButtonClicked - Emitted when any menu item is clicked
|
|
8
|
-
* @event onEditButtonHovered - Emitted when hovering over the edit button
|
|
9
|
-
*/
|
|
10
|
-
export declare const LuzmoVizItemMenu: ReactWebComponent<LuzmoVizItemMenuClass, {
|
|
11
|
-
onSelectedChanged: EventName<CustomEvent<VizItemMenuSelectedChangedEventDetail>>;
|
|
12
|
-
onButtonClicked: EventName<CustomEvent<VizItemMenuButtonClickedEventDetail>>;
|
|
13
|
-
onEditButtonHovered: EventName<CustomEvent<void>>;
|
|
14
|
-
}>;
|
|
15
|
-
/** The underlying custom element type for LuzmoVizItemMenu */
|
|
16
|
-
export type LuzmoVizItemMenuElement = LuzmoVizItemMenuClass;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { createComponent } from '@lit/react';
|
|
3
|
-
import { LuzmoVizItemMenu as LuzmoVizItemMenuClass } from '@luzmo/analytics-components-kit/viz-item-menu';
|
|
4
|
-
const LuzmoVizItemMenuComponent = createComponent({
|
|
5
|
-
tagName: 'luzmo-viz-item-menu',
|
|
6
|
-
elementClass: LuzmoVizItemMenuClass,
|
|
7
|
-
react: React,
|
|
8
|
-
events: {
|
|
9
|
-
onSelectedChanged: 'selected-changed',
|
|
10
|
-
onButtonClicked: 'button-clicked',
|
|
11
|
-
onEditButtonHovered: 'edit-button-hovered'
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
/**
|
|
15
|
-
* React wrapper for <luzmo-viz-item-menu>
|
|
16
|
-
*
|
|
17
|
-
* @event onSelectedChanged - Emitted when the selected button changes
|
|
18
|
-
* @event onButtonClicked - Emitted when any menu item is clicked
|
|
19
|
-
* @event onEditButtonHovered - Emitted when hovering over the edit button
|
|
20
|
-
*/
|
|
21
|
-
export const LuzmoVizItemMenu = LuzmoVizItemMenuComponent;
|