@luzmo/react-analytics-components-kit 1.0.5-beta.2

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 (104) hide show
  1. package/README.md +63 -0
  2. package/esm/components/ai-chat.component.d.ts +24 -0
  3. package/esm/components/ai-chat.component.js +29 -0
  4. package/esm/components/ai-interaction-textarea.component.d.ts +14 -0
  5. package/esm/components/ai-interaction-textarea.component.js +19 -0
  6. package/esm/components/data-field-level.component.d.ts +14 -0
  7. package/esm/components/data-field-level.component.js +19 -0
  8. package/esm/components/data-field-panel.component.d.ts +21 -0
  9. package/esm/components/data-field-panel.component.js +26 -0
  10. package/esm/components/data-field.component.d.ts +14 -0
  11. package/esm/components/data-field.component.js +19 -0
  12. package/esm/components/data-fields-select.component.d.ts +12 -0
  13. package/esm/components/data-fields-select.component.js +17 -0
  14. package/esm/components/dataset-icon.component.d.ts +8 -0
  15. package/esm/components/dataset-icon.component.js +13 -0
  16. package/esm/components/dataset-selector-list.component.d.ts +12 -0
  17. package/esm/components/dataset-selector-list.component.js +17 -0
  18. package/esm/components/dataset-selector-row.component.d.ts +14 -0
  19. package/esm/components/dataset-selector-row.component.js +19 -0
  20. package/esm/components/display-settings-binning.component.d.ts +12 -0
  21. package/esm/components/display-settings-binning.component.js +17 -0
  22. package/esm/components/display-settings-datetime.component.d.ts +12 -0
  23. package/esm/components/display-settings-datetime.component.js +17 -0
  24. package/esm/components/display-settings-grand-totals.component.d.ts +12 -0
  25. package/esm/components/display-settings-grand-totals.component.js +17 -0
  26. package/esm/components/display-settings-numeric.component.d.ts +12 -0
  27. package/esm/components/display-settings-numeric.component.js +17 -0
  28. package/esm/components/display-settings-period-over-period.component.d.ts +12 -0
  29. package/esm/components/display-settings-period-over-period.component.js +17 -0
  30. package/esm/components/display-settings.component.d.ts +16 -0
  31. package/esm/components/display-settings.component.js +21 -0
  32. package/esm/components/filter-expression-picker.component.d.ts +12 -0
  33. package/esm/components/filter-expression-picker.component.js +17 -0
  34. package/esm/components/filter-item.component.d.ts +12 -0
  35. package/esm/components/filter-item.component.js +17 -0
  36. package/esm/components/filter-parameter-picker.component.d.ts +8 -0
  37. package/esm/components/filter-parameter-picker.component.js +13 -0
  38. package/esm/components/filter-value-picker-datetime.component.d.ts +12 -0
  39. package/esm/components/filter-value-picker-datetime.component.js +17 -0
  40. package/esm/components/filter-value-picker-hierarchy.component.d.ts +12 -0
  41. package/esm/components/filter-value-picker-hierarchy.component.js +17 -0
  42. package/esm/components/filter-value-picker-numeric.component.d.ts +12 -0
  43. package/esm/components/filter-value-picker-numeric.component.js +17 -0
  44. package/esm/components/filter-value-picker.component.d.ts +12 -0
  45. package/esm/components/filter-value-picker.component.js +17 -0
  46. package/esm/components/filters.component.d.ts +12 -0
  47. package/esm/components/filters.component.js +17 -0
  48. package/esm/components/formula-editor.component.d.ts +16 -0
  49. package/esm/components/formula-editor.component.js +21 -0
  50. package/esm/components/formula-field.component.d.ts +14 -0
  51. package/esm/components/formula-field.component.js +19 -0
  52. package/esm/components/formula.component.d.ts +14 -0
  53. package/esm/components/formula.component.js +19 -0
  54. package/esm/components/interactive-viz-item.component.d.ts +16 -0
  55. package/esm/components/interactive-viz-item.component.js +21 -0
  56. package/esm/components/item-grid.component.d.ts +18 -0
  57. package/esm/components/item-grid.component.js +23 -0
  58. package/esm/components/item-option-action-button-group.component.d.ts +12 -0
  59. package/esm/components/item-option-action-button-group.component.js +17 -0
  60. package/esm/components/item-option-color-palette-picker.component.d.ts +12 -0
  61. package/esm/components/item-option-color-palette-picker.component.js +17 -0
  62. package/esm/components/item-option-color-picker.component.d.ts +12 -0
  63. package/esm/components/item-option-color-picker.component.js +17 -0
  64. package/esm/components/item-option-color-range.component.d.ts +12 -0
  65. package/esm/components/item-option-color-range.component.js +17 -0
  66. package/esm/components/item-option-multi-language-field.component.d.ts +12 -0
  67. package/esm/components/item-option-multi-language-field.component.js +17 -0
  68. package/esm/components/item-option-number-field.component.d.ts +12 -0
  69. package/esm/components/item-option-number-field.component.js +17 -0
  70. package/esm/components/item-option-panel.component.d.ts +12 -0
  71. package/esm/components/item-option-panel.component.js +17 -0
  72. package/esm/components/item-option-picker.component.d.ts +12 -0
  73. package/esm/components/item-option-picker.component.js +17 -0
  74. package/esm/components/item-option-position-picker.component.d.ts +12 -0
  75. package/esm/components/item-option-position-picker.component.js +17 -0
  76. package/esm/components/item-option-positions-number-field.component.d.ts +12 -0
  77. package/esm/components/item-option-positions-number-field.component.js +17 -0
  78. package/esm/components/item-option-radio-button-group.component.d.ts +12 -0
  79. package/esm/components/item-option-radio-button-group.component.js +17 -0
  80. package/esm/components/item-option-slider.component.d.ts +12 -0
  81. package/esm/components/item-option-slider.component.js +17 -0
  82. package/esm/components/item-option-switch.component.d.ts +12 -0
  83. package/esm/components/item-option-switch.component.js +17 -0
  84. package/esm/components/item-option-text-field.component.d.ts +12 -0
  85. package/esm/components/item-option-text-field.component.js +17 -0
  86. package/esm/components/item-option.component.d.ts +12 -0
  87. package/esm/components/item-option.component.js +17 -0
  88. package/esm/components/item-slot-drop-panel.component.d.ts +14 -0
  89. package/esm/components/item-slot-drop-panel.component.js +19 -0
  90. package/esm/components/item-slot-drop.component.d.ts +20 -0
  91. package/esm/components/item-slot-drop.component.js +25 -0
  92. package/esm/components/item-slot-picker-panel.component.d.ts +18 -0
  93. package/esm/components/item-slot-picker-panel.component.js +23 -0
  94. package/esm/components/item-slot-picker.component.d.ts +12 -0
  95. package/esm/components/item-slot-picker.component.js +17 -0
  96. package/esm/components/slot-menu-list.component.d.ts +12 -0
  97. package/esm/components/slot-menu-list.component.js +17 -0
  98. package/esm/components/slot-menu.component.d.ts +22 -0
  99. package/esm/components/slot-menu.component.js +27 -0
  100. package/esm/components/viz-item-menu.component.d.ts +16 -0
  101. package/esm/components/viz-item-menu.component.js +21 -0
  102. package/esm/index.d.ts +53 -0
  103. package/esm/index.js +208 -0
  104. package/package.json +35 -0
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # Luzmo Analytics Components Kit - React wrappers
2
+
3
+ > Lightweight React wrappers using `@lit/react`
4
+
5
+ This package provides React wrappers for the Luzmo Analytics Components Kit web components.
6
+ Each wrapper is generated automatically using `@lit/react`'s `createComponent` helper,
7
+ which provides proper React integration including event handling and TypeScript support.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ npm install @luzmo/react-analytics-components-kit @luzmo/analytics-components-kit react @lit/react
13
+ ```
14
+
15
+ ## Requirements
16
+
17
+ - React `^18.0.0 || ^19.0.0`.
18
+ - `@lit/react` `^1.0.6`.
19
+ - The peer package `@luzmo/analytics-components-kit` provides the underlying custom elements.
20
+
21
+ ## Usage
22
+
23
+ ```tsx
24
+ import { LuzmoDataField } from '@luzmo/react-analytics-components-kit';
25
+
26
+ function App() {
27
+ return (
28
+ <LuzmoDataField
29
+ data={
30
+ {
31
+ /* your data */
32
+ }
33
+ }
34
+ onDataItemDropped={(e) => console.log('Dropped:', e.detail)}
35
+ />
36
+ );
37
+ }
38
+ ```
39
+
40
+ ## Event handling
41
+
42
+ Events are automatically converted to React-style callback props:
43
+
44
+ - `data-item-dropped` → `onDataItemDropped`
45
+ - `filters-changed` → `onFiltersChanged`
46
+
47
+ ## TypeScript support
48
+
49
+ ```tsx
50
+ import { LuzmoDataField, type LuzmoDataFieldElement } from '@luzmo/react-analytics-components-kit';
51
+ import { useRef } from 'react';
52
+
53
+ function App() {
54
+ const ref = useRef<LuzmoDataFieldElement>(null);
55
+
56
+ return <LuzmoDataField ref={ref} />;
57
+ }
58
+ ```
59
+
60
+ ## Notes
61
+
62
+ - This package depends on `@luzmo/analytics-components-kit` for the underlying custom elements.
63
+ - Importing from `@luzmo/analytics-components-kit/react` is deprecated; migrate to this package.
@@ -0,0 +1,24 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoAiChat as LuzmoAiChatClass, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatMessageSentEventDetail, AiChatStepEvent, AssistantMessageActionEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
3
+ /**
4
+ * React wrapper for <luzmo-ai-chat>
5
+ *
6
+ * @event onLuzmoMessageSent - Fired when a user sends a message
7
+ * @event onLuzmoDatasetsChanged - Fired when the selected datasets change
8
+ * @event onLuzmoStep - Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow.
9
+ * @event onLuzmoComplete - Fired exactly once per response with the authoritative final result (dashboard/chart/name) or an `error`.
10
+ * @event onLuzmoStop - Fired when an in-flight prompt is stopped Custom actions beyond built-in `ChatMessage.actions` buttons can be projected via the `assistant-message-actions` light-DOM slot on the latest assistant message.
11
+ * @event onLuzmoConversationIdChanged - Fired when the conversation ID is updated from the API
12
+ * @event onLuzmoAssistantMessageAction - Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set)
13
+ */
14
+ export declare const LuzmoAiChat: ReactWebComponent<LuzmoAiChatClass, {
15
+ onLuzmoMessageSent: EventName<CustomEvent<AiChatMessageSentEventDetail>>;
16
+ onLuzmoDatasetsChanged: EventName<CustomEvent<AiChatDatasetsChangedEventDetail>>;
17
+ onLuzmoStep: EventName<CustomEvent<AiChatStepEvent>>;
18
+ onLuzmoComplete: EventName<CustomEvent<AiChatCompleteEvent>>;
19
+ onLuzmoStop: EventName<CustomEvent<void>>;
20
+ onLuzmoConversationIdChanged: EventName<CustomEvent<AiChatConversationIdChangedEventDetail>>;
21
+ onLuzmoAssistantMessageAction: EventName<CustomEvent<AssistantMessageActionEventDetail>>;
22
+ }>;
23
+ /** The underlying custom element type for LuzmoAiChat */
24
+ export type LuzmoAiChatElement = LuzmoAiChatClass;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoAiChat as LuzmoAiChatClass } from '@luzmo/analytics-components-kit/ai-chat';
4
+ const LuzmoAiChatComponent = createComponent({
5
+ tagName: 'luzmo-ai-chat',
6
+ elementClass: LuzmoAiChatClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoMessageSent: 'luzmo-message-sent',
10
+ onLuzmoDatasetsChanged: 'luzmo-datasets-changed',
11
+ onLuzmoStep: 'luzmo-step',
12
+ onLuzmoComplete: 'luzmo-complete',
13
+ onLuzmoStop: 'luzmo-stop',
14
+ onLuzmoConversationIdChanged: 'luzmo-conversation-id-changed',
15
+ onLuzmoAssistantMessageAction: 'luzmo-assistant-message-action'
16
+ }
17
+ });
18
+ /**
19
+ * React wrapper for <luzmo-ai-chat>
20
+ *
21
+ * @event onLuzmoMessageSent - Fired when a user sends a message
22
+ * @event onLuzmoDatasetsChanged - Fired when the selected datasets change
23
+ * @event onLuzmoStep - Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow.
24
+ * @event onLuzmoComplete - Fired exactly once per response with the authoritative final result (dashboard/chart/name) or an `error`.
25
+ * @event onLuzmoStop - Fired when an in-flight prompt is stopped Custom actions beyond built-in `ChatMessage.actions` buttons can be projected via the `assistant-message-actions` light-DOM slot on the latest assistant message.
26
+ * @event onLuzmoConversationIdChanged - Fired when the conversation ID is updated from the API
27
+ * @event onLuzmoAssistantMessageAction - Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set)
28
+ */
29
+ export const LuzmoAiChat = LuzmoAiChatComponent;
@@ -0,0 +1,14 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoAiInteractionTextarea as LuzmoAiInteractionTextareaClass, PromptSubmittedEventDetail } from '@luzmo/analytics-components-kit/ai-interaction-textarea';
3
+ /**
4
+ * React wrapper for <luzmo-ai-interaction-textarea>
5
+ *
6
+ * @event onPromptSubmitted - Fired when a prompt is submitted with selected datasets
7
+ * @event onPromptStopped - Fired when a running prompt is stopped
8
+ */
9
+ export declare const LuzmoAiInteractionTextarea: ReactWebComponent<LuzmoAiInteractionTextareaClass, {
10
+ onPromptSubmitted: EventName<CustomEvent<PromptSubmittedEventDetail>>;
11
+ onPromptStopped: EventName<CustomEvent<void>>;
12
+ }>;
13
+ /** The underlying custom element type for LuzmoAiInteractionTextarea */
14
+ export type LuzmoAiInteractionTextareaElement = LuzmoAiInteractionTextareaClass;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoAiInteractionTextarea as LuzmoAiInteractionTextareaClass } from '@luzmo/analytics-components-kit/ai-interaction-textarea';
4
+ const LuzmoAiInteractionTextareaComponent = createComponent({
5
+ tagName: 'luzmo-ai-interaction-textarea',
6
+ elementClass: LuzmoAiInteractionTextareaClass,
7
+ react: React,
8
+ events: {
9
+ onPromptSubmitted: 'prompt-submitted',
10
+ onPromptStopped: 'prompt-stopped'
11
+ }
12
+ });
13
+ /**
14
+ * React wrapper for <luzmo-ai-interaction-textarea>
15
+ *
16
+ * @event onPromptSubmitted - Fired when a prompt is submitted with selected datasets
17
+ * @event onPromptStopped - Fired when a running prompt is stopped
18
+ */
19
+ export const LuzmoAiInteractionTextarea = LuzmoAiInteractionTextareaComponent;
@@ -0,0 +1,14 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDataFieldLevel as LuzmoDataFieldLevelClass, DataFieldDragStartedEventDetail, DataFieldDroppedEventDetail } from '@luzmo/analytics-components-kit/data-field-level';
3
+ /**
4
+ * React wrapper for <luzmo-data-field-level>
5
+ *
6
+ * @event onLuzmoDataFieldDropped - Announces that the data field has been dropped
7
+ * @event onLuzmoDataFieldDragStarted - Announces that the drag is started on the data field
8
+ */
9
+ export declare const LuzmoDataFieldLevel: ReactWebComponent<LuzmoDataFieldLevelClass, {
10
+ onLuzmoDataFieldDropped: EventName<CustomEvent<DataFieldDroppedEventDetail>>;
11
+ onLuzmoDataFieldDragStarted: EventName<CustomEvent<DataFieldDragStartedEventDetail>>;
12
+ }>;
13
+ /** The underlying custom element type for LuzmoDataFieldLevel */
14
+ export type LuzmoDataFieldLevelElement = LuzmoDataFieldLevelClass;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDataFieldLevel as LuzmoDataFieldLevelClass } from '@luzmo/analytics-components-kit/data-field-level';
4
+ const LuzmoDataFieldLevelComponent = createComponent({
5
+ tagName: 'luzmo-data-field-level',
6
+ elementClass: LuzmoDataFieldLevelClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoDataFieldDropped: 'luzmo-data-field-dropped',
10
+ onLuzmoDataFieldDragStarted: 'luzmo-data-field-drag-started'
11
+ }
12
+ });
13
+ /**
14
+ * React wrapper for <luzmo-data-field-level>
15
+ *
16
+ * @event onLuzmoDataFieldDropped - Announces that the data field has been dropped
17
+ * @event onLuzmoDataFieldDragStarted - Announces that the drag is started on the data field
18
+ */
19
+ export const LuzmoDataFieldLevel = LuzmoDataFieldLevelComponent;
@@ -0,0 +1,21 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDataFieldPanel as LuzmoDataFieldPanelClass, DataFieldDragStartedEventDetail, DataFieldDroppedEventDetail, DatasetChangedEventDetail } from '@luzmo/analytics-components-kit/data-field-panel';
3
+ /**
4
+ * A panel component that displays a list of data fields from a dataset.
5
+ * Optionally includes a dataset picker dropdown to switch between datasets.
6
+ *
7
+ * Data can be provided in two ways:
8
+ * 1. `datasetsDataFields` - Direct data, takes preference when provided
9
+ * 2. `datasetIds` + auth props - Fetches data automatically using the Luzmo API
10
+ *
11
+ * @event onLuzmoDatasetChanged - Announces that the selected dataset has changed
12
+ * @event onLuzmoDataFieldDropped - Announces that a data field has been dropped
13
+ * @event onLuzmoDataFieldDragStarted - Announces that a drag has started on a data field
14
+ */
15
+ export declare const LuzmoDataFieldPanel: ReactWebComponent<LuzmoDataFieldPanelClass, {
16
+ onLuzmoDatasetChanged: EventName<CustomEvent<DatasetChangedEventDetail>>;
17
+ onLuzmoDataFieldDropped: EventName<CustomEvent<DataFieldDroppedEventDetail>>;
18
+ onLuzmoDataFieldDragStarted: EventName<CustomEvent<DataFieldDragStartedEventDetail>>;
19
+ }>;
20
+ /** The underlying custom element type for LuzmoDataFieldPanel */
21
+ export type LuzmoDataFieldPanelElement = LuzmoDataFieldPanelClass;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDataFieldPanel as LuzmoDataFieldPanelClass } from '@luzmo/analytics-components-kit/data-field-panel';
4
+ const LuzmoDataFieldPanelComponent = createComponent({
5
+ tagName: 'luzmo-data-field-panel',
6
+ elementClass: LuzmoDataFieldPanelClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoDatasetChanged: 'luzmo-dataset-changed',
10
+ onLuzmoDataFieldDropped: 'luzmo-data-field-dropped',
11
+ onLuzmoDataFieldDragStarted: 'luzmo-data-field-drag-started'
12
+ }
13
+ });
14
+ /**
15
+ * A panel component that displays a list of data fields from a dataset.
16
+ * Optionally includes a dataset picker dropdown to switch between datasets.
17
+ *
18
+ * Data can be provided in two ways:
19
+ * 1. `datasetsDataFields` - Direct data, takes preference when provided
20
+ * 2. `datasetIds` + auth props - Fetches data automatically using the Luzmo API
21
+ *
22
+ * @event onLuzmoDatasetChanged - Announces that the selected dataset has changed
23
+ * @event onLuzmoDataFieldDropped - Announces that a data field has been dropped
24
+ * @event onLuzmoDataFieldDragStarted - Announces that a drag has started on a data field
25
+ */
26
+ export const LuzmoDataFieldPanel = LuzmoDataFieldPanelComponent;
@@ -0,0 +1,14 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDataField as LuzmoDataFieldClass, DataFieldDragStartedEventDetail, DataFieldDroppedEventDetail } from '@luzmo/analytics-components-kit/data-field';
3
+ /**
4
+ * React wrapper for <luzmo-data-field>
5
+ *
6
+ * @event onLuzmoDataFieldDropped - Announces that the data field has been dropped
7
+ * @event onLuzmoDataFieldDragStarted - Announces that the drag is started on the data field
8
+ */
9
+ export declare const LuzmoDataField: ReactWebComponent<LuzmoDataFieldClass, {
10
+ onLuzmoDataFieldDropped: EventName<CustomEvent<DataFieldDroppedEventDetail>>;
11
+ onLuzmoDataFieldDragStarted: EventName<CustomEvent<DataFieldDragStartedEventDetail>>;
12
+ }>;
13
+ /** The underlying custom element type for LuzmoDataField */
14
+ export type LuzmoDataFieldElement = LuzmoDataFieldClass;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDataField as LuzmoDataFieldClass } from '@luzmo/analytics-components-kit/data-field';
4
+ const LuzmoDataFieldComponent = createComponent({
5
+ tagName: 'luzmo-data-field',
6
+ elementClass: LuzmoDataFieldClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoDataFieldDropped: 'luzmo-data-field-dropped',
10
+ onLuzmoDataFieldDragStarted: 'luzmo-data-field-drag-started'
11
+ }
12
+ });
13
+ /**
14
+ * React wrapper for <luzmo-data-field>
15
+ *
16
+ * @event onLuzmoDataFieldDropped - Announces that the data field has been dropped
17
+ * @event onLuzmoDataFieldDragStarted - Announces that the drag is started on the data field
18
+ */
19
+ export const LuzmoDataField = LuzmoDataFieldComponent;
@@ -0,0 +1,12 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDataFieldsSelect as LuzmoDataFieldsSelectClass, DataFieldsSelectedEventDetail } from '@luzmo/analytics-components-kit/data-fields-select';
3
+ /**
4
+ * React wrapper for <luzmo-data-fields-select>
5
+ *
6
+ * @event onLuzmoDataFieldsSelected - Emitted when data fields are selected
7
+ */
8
+ export declare const LuzmoDataFieldsSelect: ReactWebComponent<LuzmoDataFieldsSelectClass, {
9
+ onLuzmoDataFieldsSelected: EventName<CustomEvent<DataFieldsSelectedEventDetail>>;
10
+ }>;
11
+ /** The underlying custom element type for LuzmoDataFieldsSelect */
12
+ export type LuzmoDataFieldsSelectElement = LuzmoDataFieldsSelectClass;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDataFieldsSelect as LuzmoDataFieldsSelectClass } from '@luzmo/analytics-components-kit/data-fields-select';
4
+ const LuzmoDataFieldsSelectComponent = createComponent({
5
+ tagName: 'luzmo-data-fields-select',
6
+ elementClass: LuzmoDataFieldsSelectClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoDataFieldsSelected: 'luzmo-data-fields-selected'
10
+ }
11
+ });
12
+ /**
13
+ * React wrapper for <luzmo-data-fields-select>
14
+ *
15
+ * @event onLuzmoDataFieldsSelected - Emitted when data fields are selected
16
+ */
17
+ export const LuzmoDataFieldsSelect = LuzmoDataFieldsSelectComponent;
@@ -0,0 +1,8 @@
1
+ import { ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDatasetIcon as LuzmoDatasetIconClass } from '@luzmo/analytics-components-kit/dataset-icon';
3
+ /**
4
+ * React wrapper for <luzmo-dataset-icon>
5
+ */
6
+ export declare const LuzmoDatasetIcon: ReactWebComponent<LuzmoDatasetIconClass>;
7
+ /** The underlying custom element type for LuzmoDatasetIcon */
8
+ export type LuzmoDatasetIconElement = LuzmoDatasetIconClass;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDatasetIcon as LuzmoDatasetIconClass } from '@luzmo/analytics-components-kit/dataset-icon';
4
+ const LuzmoDatasetIconComponent = createComponent({
5
+ tagName: 'luzmo-dataset-icon',
6
+ elementClass: LuzmoDatasetIconClass,
7
+ react: React,
8
+ events: {}
9
+ });
10
+ /**
11
+ * React wrapper for <luzmo-dataset-icon>
12
+ */
13
+ export const LuzmoDatasetIcon = LuzmoDatasetIconComponent;
@@ -0,0 +1,12 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDatasetSelectorList as LuzmoDatasetSelectorListClass, Dataset } from '@luzmo/analytics-components-kit/dataset-selector-list';
3
+ /**
4
+ * React wrapper for <luzmo-dataset-selector-list>
5
+ *
6
+ * @event onDatasetSelected - Fired when a dataset is selected
7
+ */
8
+ export declare const LuzmoDatasetSelectorList: ReactWebComponent<LuzmoDatasetSelectorListClass, {
9
+ onDatasetSelected: EventName<CustomEvent<Dataset>>;
10
+ }>;
11
+ /** The underlying custom element type for LuzmoDatasetSelectorList */
12
+ export type LuzmoDatasetSelectorListElement = LuzmoDatasetSelectorListClass;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDatasetSelectorList as LuzmoDatasetSelectorListClass } from '@luzmo/analytics-components-kit/dataset-selector-list';
4
+ const LuzmoDatasetSelectorListComponent = createComponent({
5
+ tagName: 'luzmo-dataset-selector-list',
6
+ elementClass: LuzmoDatasetSelectorListClass,
7
+ react: React,
8
+ events: {
9
+ onDatasetSelected: 'dataset-selected'
10
+ }
11
+ });
12
+ /**
13
+ * React wrapper for <luzmo-dataset-selector-list>
14
+ *
15
+ * @event onDatasetSelected - Fired when a dataset is selected
16
+ */
17
+ export const LuzmoDatasetSelectorList = LuzmoDatasetSelectorListComponent;
@@ -0,0 +1,14 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDatasetSelectorRow as LuzmoDatasetSelectorRowClass, Dataset } from '@luzmo/analytics-components-kit/dataset-selector-row';
3
+ /**
4
+ * React wrapper for <luzmo-dataset-selector-row>
5
+ *
6
+ * @event onDatasetSelected - Fired when a dataset is selected
7
+ * @event onDatasetRemoved - Fired when a dataset is removed
8
+ */
9
+ export declare const LuzmoDatasetSelectorRow: ReactWebComponent<LuzmoDatasetSelectorRowClass, {
10
+ onDatasetSelected: EventName<CustomEvent<Dataset>>;
11
+ onDatasetRemoved: EventName<CustomEvent<Dataset>>;
12
+ }>;
13
+ /** The underlying custom element type for LuzmoDatasetSelectorRow */
14
+ export type LuzmoDatasetSelectorRowElement = LuzmoDatasetSelectorRowClass;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDatasetSelectorRow as LuzmoDatasetSelectorRowClass } from '@luzmo/analytics-components-kit/dataset-selector-row';
4
+ const LuzmoDatasetSelectorRowComponent = createComponent({
5
+ tagName: 'luzmo-dataset-selector-row',
6
+ elementClass: LuzmoDatasetSelectorRowClass,
7
+ react: React,
8
+ events: {
9
+ onDatasetSelected: 'dataset-selected',
10
+ onDatasetRemoved: 'dataset-removed'
11
+ }
12
+ });
13
+ /**
14
+ * React wrapper for <luzmo-dataset-selector-row>
15
+ *
16
+ * @event onDatasetSelected - Fired when a dataset is selected
17
+ * @event onDatasetRemoved - Fired when a dataset is removed
18
+ */
19
+ export const LuzmoDatasetSelectorRow = LuzmoDatasetSelectorRowComponent;
@@ -0,0 +1,12 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDisplaySettingsBinning as LuzmoDisplaySettingsBinningClass, DisplaySettingsSlotContentChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings-binning';
3
+ /**
4
+ * React wrapper for <luzmo-display-settings-binning>
5
+ *
6
+ * @event onLuzmoSlotContentChanged - Event that is fired when the slot content is changed
7
+ */
8
+ export declare const LuzmoDisplaySettingsBinning: ReactWebComponent<LuzmoDisplaySettingsBinningClass, {
9
+ onLuzmoSlotContentChanged: EventName<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
10
+ }>;
11
+ /** The underlying custom element type for LuzmoDisplaySettingsBinning */
12
+ export type LuzmoDisplaySettingsBinningElement = LuzmoDisplaySettingsBinningClass;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDisplaySettingsBinning as LuzmoDisplaySettingsBinningClass } from '@luzmo/analytics-components-kit/display-settings-binning';
4
+ const LuzmoDisplaySettingsBinningComponent = createComponent({
5
+ tagName: 'luzmo-display-settings-binning',
6
+ elementClass: LuzmoDisplaySettingsBinningClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoSlotContentChanged: 'luzmo-slot-content-changed'
10
+ }
11
+ });
12
+ /**
13
+ * React wrapper for <luzmo-display-settings-binning>
14
+ *
15
+ * @event onLuzmoSlotContentChanged - Event that is fired when the slot content is changed
16
+ */
17
+ export const LuzmoDisplaySettingsBinning = LuzmoDisplaySettingsBinningComponent;
@@ -0,0 +1,12 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDisplaySettingsDatetime as LuzmoDisplaySettingsDatetimeClass, DisplaySettingsSlotContentChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings-datetime';
3
+ /**
4
+ * React wrapper for <luzmo-display-settings-datetime>
5
+ *
6
+ * @event onLuzmoSlotContentChanged - Event that is fired when the slot content is changed
7
+ */
8
+ export declare const LuzmoDisplaySettingsDatetime: ReactWebComponent<LuzmoDisplaySettingsDatetimeClass, {
9
+ onLuzmoSlotContentChanged: EventName<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
10
+ }>;
11
+ /** The underlying custom element type for LuzmoDisplaySettingsDatetime */
12
+ export type LuzmoDisplaySettingsDatetimeElement = LuzmoDisplaySettingsDatetimeClass;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDisplaySettingsDatetime as LuzmoDisplaySettingsDatetimeClass } from '@luzmo/analytics-components-kit/display-settings-datetime';
4
+ const LuzmoDisplaySettingsDatetimeComponent = createComponent({
5
+ tagName: 'luzmo-display-settings-datetime',
6
+ elementClass: LuzmoDisplaySettingsDatetimeClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoSlotContentChanged: 'luzmo-slot-content-changed'
10
+ }
11
+ });
12
+ /**
13
+ * React wrapper for <luzmo-display-settings-datetime>
14
+ *
15
+ * @event onLuzmoSlotContentChanged - Event that is fired when the slot content is changed
16
+ */
17
+ export const LuzmoDisplaySettingsDatetime = LuzmoDisplaySettingsDatetimeComponent;
@@ -0,0 +1,12 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDisplaySettingsGrandTotals as LuzmoDisplaySettingsGrandTotalsClass, DisplaySettingsSlotContentChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings-grand-totals';
3
+ /**
4
+ * React wrapper for <luzmo-display-settings-grand-totals>
5
+ *
6
+ * @event onLuzmoSlotContentChanged - Event that is fired when the slot content is changed
7
+ */
8
+ export declare const LuzmoDisplaySettingsGrandTotals: ReactWebComponent<LuzmoDisplaySettingsGrandTotalsClass, {
9
+ onLuzmoSlotContentChanged: EventName<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
10
+ }>;
11
+ /** The underlying custom element type for LuzmoDisplaySettingsGrandTotals */
12
+ export type LuzmoDisplaySettingsGrandTotalsElement = LuzmoDisplaySettingsGrandTotalsClass;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDisplaySettingsGrandTotals as LuzmoDisplaySettingsGrandTotalsClass } from '@luzmo/analytics-components-kit/display-settings-grand-totals';
4
+ const LuzmoDisplaySettingsGrandTotalsComponent = createComponent({
5
+ tagName: 'luzmo-display-settings-grand-totals',
6
+ elementClass: LuzmoDisplaySettingsGrandTotalsClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoSlotContentChanged: 'luzmo-slot-content-changed'
10
+ }
11
+ });
12
+ /**
13
+ * React wrapper for <luzmo-display-settings-grand-totals>
14
+ *
15
+ * @event onLuzmoSlotContentChanged - Event that is fired when the slot content is changed
16
+ */
17
+ export const LuzmoDisplaySettingsGrandTotals = LuzmoDisplaySettingsGrandTotalsComponent;
@@ -0,0 +1,12 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDisplaySettingsNumeric as LuzmoDisplaySettingsNumericClass, DisplaySettingsSlotContentChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings-numeric';
3
+ /**
4
+ * React wrapper for <luzmo-display-settings-numeric>
5
+ *
6
+ * @event onLuzmoSlotContentChanged - Event that is fired when the slot content is changed
7
+ */
8
+ export declare const LuzmoDisplaySettingsNumeric: ReactWebComponent<LuzmoDisplaySettingsNumericClass, {
9
+ onLuzmoSlotContentChanged: EventName<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
10
+ }>;
11
+ /** The underlying custom element type for LuzmoDisplaySettingsNumeric */
12
+ export type LuzmoDisplaySettingsNumericElement = LuzmoDisplaySettingsNumericClass;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDisplaySettingsNumeric as LuzmoDisplaySettingsNumericClass } from '@luzmo/analytics-components-kit/display-settings-numeric';
4
+ const LuzmoDisplaySettingsNumericComponent = createComponent({
5
+ tagName: 'luzmo-display-settings-numeric',
6
+ elementClass: LuzmoDisplaySettingsNumericClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoSlotContentChanged: 'luzmo-slot-content-changed'
10
+ }
11
+ });
12
+ /**
13
+ * React wrapper for <luzmo-display-settings-numeric>
14
+ *
15
+ * @event onLuzmoSlotContentChanged - Event that is fired when the slot content is changed
16
+ */
17
+ export const LuzmoDisplaySettingsNumeric = LuzmoDisplaySettingsNumericComponent;
@@ -0,0 +1,12 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDisplaySettingsPeriodOverPeriod as LuzmoDisplaySettingsPeriodOverPeriodClass, DisplaySettingsSlotContentChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings-period-over-period';
3
+ /**
4
+ * React wrapper for <luzmo-display-settings-period-over-period>
5
+ *
6
+ * @event onLuzmoSlotContentChanged - Event that is fired when the slot content is changed
7
+ */
8
+ export declare const LuzmoDisplaySettingsPeriodOverPeriod: ReactWebComponent<LuzmoDisplaySettingsPeriodOverPeriodClass, {
9
+ onLuzmoSlotContentChanged: EventName<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
10
+ }>;
11
+ /** The underlying custom element type for LuzmoDisplaySettingsPeriodOverPeriod */
12
+ export type LuzmoDisplaySettingsPeriodOverPeriodElement = LuzmoDisplaySettingsPeriodOverPeriodClass;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDisplaySettingsPeriodOverPeriod as LuzmoDisplaySettingsPeriodOverPeriodClass } from '@luzmo/analytics-components-kit/display-settings-period-over-period';
4
+ const LuzmoDisplaySettingsPeriodOverPeriodComponent = createComponent({
5
+ tagName: 'luzmo-display-settings-period-over-period',
6
+ elementClass: LuzmoDisplaySettingsPeriodOverPeriodClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoSlotContentChanged: 'luzmo-slot-content-changed'
10
+ }
11
+ });
12
+ /**
13
+ * React wrapper for <luzmo-display-settings-period-over-period>
14
+ *
15
+ * @event onLuzmoSlotContentChanged - Event that is fired when the slot content is changed
16
+ */
17
+ export const LuzmoDisplaySettingsPeriodOverPeriod = LuzmoDisplaySettingsPeriodOverPeriodComponent;
@@ -0,0 +1,16 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoDisplaySettings as LuzmoDisplaySettingsClass, DisplaySettingsRemoveSlotContentEventDetail, DisplaySettingsSlotContentChangedEventDetail, InfoVisibilityChangedEventDetail } from '@luzmo/analytics-components-kit/display-settings';
3
+ /**
4
+ * React wrapper for <luzmo-display-settings>
5
+ *
6
+ * @event onLuzmoSlotContentChanged - Event that is fired when the slot content is changed
7
+ * @event onLuzmoRemoveSlotContent - Event that is fired when the remove button is clicked
8
+ * @event onLuzmoInfoVisibilityChanged - Event that is fired when the info button is clicked, includes the visibility state and ID values
9
+ */
10
+ export declare const LuzmoDisplaySettings: ReactWebComponent<LuzmoDisplaySettingsClass, {
11
+ onLuzmoSlotContentChanged: EventName<CustomEvent<DisplaySettingsSlotContentChangedEventDetail>>;
12
+ onLuzmoRemoveSlotContent: EventName<CustomEvent<DisplaySettingsRemoveSlotContentEventDetail>>;
13
+ onLuzmoInfoVisibilityChanged: EventName<CustomEvent<InfoVisibilityChangedEventDetail>>;
14
+ }>;
15
+ /** The underlying custom element type for LuzmoDisplaySettings */
16
+ export type LuzmoDisplaySettingsElement = LuzmoDisplaySettingsClass;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoDisplaySettings as LuzmoDisplaySettingsClass } from '@luzmo/analytics-components-kit/display-settings';
4
+ const LuzmoDisplaySettingsComponent = createComponent({
5
+ tagName: 'luzmo-display-settings',
6
+ elementClass: LuzmoDisplaySettingsClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoSlotContentChanged: 'luzmo-slot-content-changed',
10
+ onLuzmoRemoveSlotContent: 'luzmo-remove-slot-content',
11
+ onLuzmoInfoVisibilityChanged: 'luzmo-info-visibility-changed'
12
+ }
13
+ });
14
+ /**
15
+ * React wrapper for <luzmo-display-settings>
16
+ *
17
+ * @event onLuzmoSlotContentChanged - Event that is fired when the slot content is changed
18
+ * @event onLuzmoRemoveSlotContent - Event that is fired when the remove button is clicked
19
+ * @event onLuzmoInfoVisibilityChanged - Event that is fired when the info button is clicked, includes the visibility state and ID values
20
+ */
21
+ export const LuzmoDisplaySettings = LuzmoDisplaySettingsComponent;
@@ -0,0 +1,12 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoFilterExpressionPicker as LuzmoFilterExpressionPickerClass } from '@luzmo/analytics-components-kit/filter-expression-picker';
3
+ /**
4
+ * React wrapper for <luzmo-filter-expression-picker>
5
+ *
6
+ * @event onLuzmoExpressionSelected - Fired when the user selects a filter expression (operator); `detail.expression` holds the chosen expression.
7
+ */
8
+ export declare const LuzmoFilterExpressionPicker: ReactWebComponent<LuzmoFilterExpressionPickerClass, {
9
+ onLuzmoExpressionSelected: EventName<CustomEvent>;
10
+ }>;
11
+ /** The underlying custom element type for LuzmoFilterExpressionPicker */
12
+ export type LuzmoFilterExpressionPickerElement = LuzmoFilterExpressionPickerClass;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoFilterExpressionPicker as LuzmoFilterExpressionPickerClass } from '@luzmo/analytics-components-kit/filter-expression-picker';
4
+ const LuzmoFilterExpressionPickerComponent = createComponent({
5
+ tagName: 'luzmo-filter-expression-picker',
6
+ elementClass: LuzmoFilterExpressionPickerClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoExpressionSelected: 'luzmo-expression-selected'
10
+ }
11
+ });
12
+ /**
13
+ * React wrapper for <luzmo-filter-expression-picker>
14
+ *
15
+ * @event onLuzmoExpressionSelected - Fired when the user selects a filter expression (operator); `detail.expression` holds the chosen expression.
16
+ */
17
+ export const LuzmoFilterExpressionPicker = LuzmoFilterExpressionPickerComponent;