@sisense/sdk-ui 1.8.0 → 1.10.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.
- package/dist/ai/ai-context-provider.d.ts +1 -4
- package/dist/ai/ai-disclaimer.d.ts +4 -2
- package/dist/ai/api/chat-api-provider.d.ts +1 -1
- package/dist/ai/buttons/insights-button.d.ts +3 -0
- package/dist/ai/buttons/thumbs-down-button.d.ts +1 -2
- package/dist/ai/buttons/thumbs-up-button.d.ts +1 -2
- package/dist/ai/chat-box.d.ts +1 -2
- package/dist/ai/chat-config.d.ts +21 -1
- package/dist/ai/chat-dropup.d.ts +11 -0
- package/dist/ai/chat-frame.d.ts +7 -4
- package/dist/ai/chat-home.d.ts +1 -2
- package/dist/ai/chat-input.d.ts +4 -2
- package/dist/ai/chat-router.d.ts +1 -2
- package/dist/ai/chatbot.d.ts +0 -7
- package/dist/ai/common/collapsible.d.ts +1 -2
- package/dist/ai/common/dropup-section.d.ts +7 -0
- package/dist/ai/common/error-container.d.ts +1 -2
- package/dist/ai/common/icon-button.d.ts +12 -0
- package/dist/ai/{toolbar.d.ts → common/toolbar.d.ts} +5 -0
- package/dist/ai/common/tooltip.d.ts +2 -3
- package/dist/ai/data-topics/data-topic-item.d.ts +1 -2
- package/dist/ai/data-topics/data-topic-list.d.ts +1 -2
- package/dist/ai/icons/arrow-left-icon.d.ts +5 -2
- package/dist/ai/icons/clear-chat-icon.d.ts +2 -2
- package/dist/ai/icons/close-dialog-icon.d.ts +1 -2
- package/dist/ai/icons/expand-icon.d.ts +3 -2
- package/dist/ai/icons/info-icon.d.ts +3 -2
- package/dist/ai/icons/light-bulb-icon.d.ts +3 -2
- package/dist/ai/icons/loading-dots-icon.d.ts +1 -2
- package/dist/ai/icons/message-icon.d.ts +2 -2
- package/dist/ai/icons/refresh-icon.d.ts +1 -2
- package/dist/ai/icons/sisense-logo.d.ts +5 -2
- package/dist/ai/icons/three-dots-icon.d.ts +3 -2
- package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +2 -2
- package/dist/ai/icons/thumbs-down-icon.d.ts +2 -2
- package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +2 -2
- package/dist/ai/icons/thumbs-up-icon.d.ts +2 -2
- package/dist/ai/index.d.ts +3 -1
- package/dist/ai/messages/chart-message-toolbar.d.ts +1 -2
- package/dist/ai/messages/chart-message.d.ts +1 -2
- package/dist/ai/messages/chat-welcome-message.d.ts +1 -2
- package/dist/ai/messages/clear-history-message.d.ts +1 -2
- package/dist/ai/messages/clear-history-success-message.d.ts +1 -2
- package/dist/ai/messages/clickable-message.d.ts +4 -2
- package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
- package/dist/ai/messages/get-widget-options.d.ts +14 -0
- package/dist/ai/messages/insights-message.d.ts +1 -7
- package/dist/ai/messages/jaql-element.d.ts +5 -2
- package/dist/ai/messages/message-list-resolver.d.ts +1 -2
- package/dist/ai/messages/message-resolver.d.ts +2 -1
- package/dist/ai/messages/nlq-message-group.d.ts +6 -4
- package/dist/ai/messages/text-message.d.ts +4 -5
- package/dist/ai/nav-back-button.d.ts +6 -4
- package/dist/ai/suggestions/suggestion-item.d.ts +1 -2
- package/dist/ai/suggestions/suggestion-list-skeleton.d.ts +1 -2
- package/dist/ai/suggestions/suggestion-list.d.ts +1 -2
- package/dist/ai/suggestions/suggestions-with-intro.d.ts +1 -2
- package/dist/ai/{translators/use-get-data-source.d.ts → use-get-data-source-fields.d.ts} +2 -2
- package/dist/ai.js +2130 -7264
- package/dist/alert-box/alert-box.d.ts +1 -2
- package/dist/api/types/dashboard-dto.d.ts +16 -0
- package/dist/app/client-application.d.ts +6 -2
- package/dist/area-chart.d.ts +3 -3
- package/dist/bar-chart.d.ts +2 -2
- package/dist/chart/helpers/use-translated-data-options.d.ts +2 -2
- package/dist/chart-data-options/get-translated-data-options.d.ts +2 -2
- package/dist/chart-data-options/utils.d.ts +10 -0
- package/dist/chart-options-processor/style-to-design-options-translator/prepare-design-options.d.ts +4 -2
- package/dist/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +7 -4
- package/dist/chart-options-processor/theme-option-service.d.ts +0 -8
- package/dist/chart-options-processor/translations/design-options.d.ts +9 -7
- package/dist/chart-options-processor/translations/types.d.ts +7 -6
- package/dist/charts/map-charts/areamap/areamap.d.ts +3 -6
- package/dist/charts/map-charts/scattermap/scattermap.d.ts +5 -9
- package/dist/charts/table/data-table-wrapper.d.ts +1 -2
- package/dist/charts/table/header/field-type-icon.d.ts +1 -2
- package/dist/charts/table/pure-table.d.ts +1 -2
- package/dist/column-chart.d.ts +2 -2
- package/dist/common/components/loading-dots.d.ts +1 -2
- package/dist/common/components/loading-indicator.d.ts +83 -2
- package/dist/common/components/loading-overlay.d.ts +1 -1
- package/dist/common/components/loading-spinner.d.ts +1 -2
- package/dist/common/icons/exclamation-mark-icon.d.ts +1 -2
- package/dist/common/icons/loading-icon.d.ts +1 -2
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +3 -2
- package/dist/dashboard-widget/types.d.ts +22 -2
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +1 -0
- package/dist/dashboard-widget/utils.d.ts +9 -0
- package/dist/debounce-2yQ2123W.js +76298 -0
- package/dist/decorators/component-decorators/with-tracking/use-track-component-init.d.ts +1 -1
- package/dist/dynamic-size-container/default-size.d.ts +5 -1
- package/dist/dynamic-size-container/dynamic-size-container.d.ts +12 -3
- package/dist/error-boundary/error-boundary-box.d.ts +1 -2
- package/dist/error-boundary/error-boundary.d.ts +1 -1
- package/dist/filters/components/common/dropdown.d.ts +1 -1
- package/dist/filters/components/common/switch.d.ts +4 -1
- package/dist/filters/components/common/triangle-indicator.d.ts +1 -2
- package/dist/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +1 -2
- package/dist/filters/components/date-filter/date-filter/calendar-header.d.ts +1 -2
- package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +1 -2
- package/dist/filters/components/date-filter/date-filter/quick-date-selection-buttons.d.ts +1 -2
- package/dist/filters/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/filters/components/icons/arrow-right-icon.d.ts +1 -1
- package/dist/filters/components/icons/date-icon.d.ts +1 -1
- package/dist/filters/components/icons/double-arrow-right-icon.d.ts +1 -1
- package/dist/filters/components/icons/menu-icon.d.ts +1 -1
- package/dist/filters/components/icons/pencil-icon.d.ts +1 -1
- package/dist/filters/components/icons/plus-icon.d.ts +1 -1
- package/dist/filters/components/icons/search-icon.d.ts +1 -1
- package/dist/filters/components/icons/trash-icon.d.ts +1 -1
- package/dist/highcharts-memorized.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +35808 -7229
- package/dist/indicator-canvas.d.ts +4 -9
- package/dist/line-chart.d.ts +2 -2
- package/dist/models/dashboard/translate-dashboard.d.ts +3 -2
- package/dist/models/dashboard/types.d.ts +6 -8
- package/dist/models/widget/use-get-widget-model.d.ts +1 -1
- package/dist/models/widget/widget-model.d.ts +50 -6
- package/dist/no-results-overlay/no-results-overlay.d.ts +1 -2
- package/dist/pie-chart.d.ts +2 -2
- package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +20 -0
- package/dist/pivot-table/sorting-utils.d.ts +11 -55
- package/dist/pivot-table/use-get-pivot-table-query.d.ts +10 -2
- package/dist/pivot-table/use-pivot-table-data-options-internal.d.ts +15 -0
- package/dist/polar-chart.d.ts +2 -2
- package/dist/props.d.ts +61 -2
- package/dist/query-execution/use-execute-query.d.ts +1 -1
- package/dist/scatter-chart.d.ts +1 -1
- package/dist/sisense-chart/sisense-chart.d.ts +4 -6
- package/dist/theme-provider/default-theme-settings.d.ts +9 -0
- package/dist/theme-provider/types.d.ts +7 -0
- package/dist/translation/i18n-provider.d.ts +1 -1
- package/dist/translation/resources/en.d.ts +3 -1
- package/dist/translation/resources/index.d.ts +6 -2
- package/dist/types.d.ts +170 -1
- package/dist/widgets/common/context-menu.d.ts +1 -2
- package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
- package/dist/widgets/common/widget-container.d.ts +15 -0
- package/dist/widgets/common/widget-header-info-button.d.ts +1 -2
- package/dist/widgets/drilldown-widget.d.ts +2 -3
- package/dist/widgets/pivot-table-widget.d.ts +22 -0
- package/package.json +18 -19
- package/dist/ai/chat-style-provider.d.ts +0 -22
- package/dist/ai/icons/magic-wand-icon.d.ts +0 -2
- package/dist/ai/magic-wand-dropdown.d.ts +0 -7
- package/dist/ai/suggestions/suggestion-dropdown-item.d.ts +0 -7
- package/dist/ai/suggestions/suggestion-dropdown-list.d.ts +0 -7
- package/dist/ai/translators/code-templates.d.ts +0 -11
- package/dist/ai/translators/generate-code.d.ts +0 -9
- package/dist/ai/translators/index.d.ts +0 -4
- package/dist/ai/translators/model-translator.d.ts +0 -51
- package/dist/ai/translators/query-translator.d.ts +0 -137
- package/dist/ai/translators/translate-filters-to-code.d.ts +0 -2
- package/dist/ai/translators/translate-props-to-code.d.ts +0 -8
- package/dist/ai/translators/types.d.ts +0 -105
- package/dist/ai/translators/utils.d.ts +0 -12
- package/dist/useQuery-cb11e76c.js +0 -121619
package/dist/types.d.ts
CHANGED
|
@@ -328,6 +328,14 @@ export interface PivotTableStyleOptions {
|
|
|
328
328
|
* Boolean flag whether to apply background color to alternate columns
|
|
329
329
|
*/
|
|
330
330
|
alternatingColumnsColor?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Boolean flag whether to fill row members cells with background color
|
|
333
|
+
*/
|
|
334
|
+
membersColor?: boolean;
|
|
335
|
+
/**
|
|
336
|
+
* Boolean flag whether to fill totals and subtotals cells with background color
|
|
337
|
+
*/
|
|
338
|
+
totalsColor?: boolean;
|
|
331
339
|
/**
|
|
332
340
|
* Number of rows per page
|
|
333
341
|
*
|
|
@@ -356,6 +364,10 @@ export interface PivotTableStyleOptions {
|
|
|
356
364
|
* Boolean flag whether the height of the component should be automatically adjusted to fit the content
|
|
357
365
|
*/
|
|
358
366
|
isAutoHeight?: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* Manual height of each row (default is 25px)
|
|
369
|
+
*/
|
|
370
|
+
rowHeight?: number;
|
|
359
371
|
}
|
|
360
372
|
/**
|
|
361
373
|
* Common part of IndicatorStyleOptions for all types of indicator
|
|
@@ -561,7 +573,9 @@ export interface ThemeSettings {
|
|
|
561
573
|
typography?: {
|
|
562
574
|
/** Font family name to style component text */
|
|
563
575
|
fontFamily?: string;
|
|
576
|
+
/** Primary text color */
|
|
564
577
|
primaryTextColor?: string;
|
|
578
|
+
/** Secondary text color */
|
|
565
579
|
secondaryTextColor?: string;
|
|
566
580
|
};
|
|
567
581
|
/** General theme settings */
|
|
@@ -575,6 +589,155 @@ export interface ThemeSettings {
|
|
|
575
589
|
/** Hover color for primary buttons */
|
|
576
590
|
primaryButtonHoverColor?: string;
|
|
577
591
|
};
|
|
592
|
+
/**
|
|
593
|
+
* Theme settings specific to the AI Chatbot component
|
|
594
|
+
*
|
|
595
|
+
* @internal
|
|
596
|
+
*/
|
|
597
|
+
aiChat?: {
|
|
598
|
+
/** Background color of the chatbot */
|
|
599
|
+
backgroundColor?: string;
|
|
600
|
+
/** Text color of the chatbot */
|
|
601
|
+
primaryTextColor?: string;
|
|
602
|
+
/** Secondary text color of the chatbot */
|
|
603
|
+
secondaryTextColor?: string;
|
|
604
|
+
/** Primary font size for text in the chatbot */
|
|
605
|
+
primaryFontSize?: [fontSize: string, lineHeight: string];
|
|
606
|
+
/** Border of the chatbot */
|
|
607
|
+
border?: false | string;
|
|
608
|
+
/** Border radius of the chatbot */
|
|
609
|
+
borderRadius?: false | string;
|
|
610
|
+
/** Settings for the main chat body */
|
|
611
|
+
body?: {
|
|
612
|
+
/** Left padding of the chat body */
|
|
613
|
+
paddingLeft?: string;
|
|
614
|
+
/** Right padding of the chat body */
|
|
615
|
+
paddingRight?: string;
|
|
616
|
+
/** Top padding of the chat body */
|
|
617
|
+
paddingTop?: string;
|
|
618
|
+
/** Bottom padding of the chat body */
|
|
619
|
+
paddingBottom?: string;
|
|
620
|
+
/** Gap size between each message in the chat body */
|
|
621
|
+
gapBetweenMessages?: string;
|
|
622
|
+
};
|
|
623
|
+
/** Settings for the chat footer */
|
|
624
|
+
footer?: {
|
|
625
|
+
/** Left padding of the chat footer */
|
|
626
|
+
paddingLeft?: string;
|
|
627
|
+
/** Right padding of the chat footer */
|
|
628
|
+
paddingRight?: string;
|
|
629
|
+
/** Top padding of the chat footer */
|
|
630
|
+
paddingTop?: string;
|
|
631
|
+
/** Bottom padding of the chat footer */
|
|
632
|
+
paddingBottom?: string;
|
|
633
|
+
};
|
|
634
|
+
/** Settings for user chat messages */
|
|
635
|
+
userMessages?: {
|
|
636
|
+
/** Background color of user chat messages */
|
|
637
|
+
backgroundColor?: string;
|
|
638
|
+
};
|
|
639
|
+
/** Settings for system chat messages */
|
|
640
|
+
systemMessages?: {
|
|
641
|
+
/** Background color of system chat messages */
|
|
642
|
+
backgroundColor?: string;
|
|
643
|
+
};
|
|
644
|
+
/** Settings for the chatbot input */
|
|
645
|
+
input?: {
|
|
646
|
+
/** Background color of the input */
|
|
647
|
+
backgroundColor?: string;
|
|
648
|
+
/** Settings to be applied on input focus */
|
|
649
|
+
focus?: {
|
|
650
|
+
/** Outline color of the input */
|
|
651
|
+
outlineColor?: string;
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
/** Settings for the chatbot header */
|
|
655
|
+
header?: {
|
|
656
|
+
/** Background color of the chatbot header */
|
|
657
|
+
backgroundColor?: string;
|
|
658
|
+
/** Text color of the chatbot header */
|
|
659
|
+
textColor?: string;
|
|
660
|
+
};
|
|
661
|
+
/** Settings for chatbot dropup */
|
|
662
|
+
dropup?: {
|
|
663
|
+
/** Background color of the dropup */
|
|
664
|
+
backgroundColor?: string;
|
|
665
|
+
/** Box shadow of the dropup */
|
|
666
|
+
boxShadow?: string;
|
|
667
|
+
/** Border radius of the dropup */
|
|
668
|
+
borderRadius?: string;
|
|
669
|
+
/** Settings for the section headers of the dropup */
|
|
670
|
+
headers?: {
|
|
671
|
+
/** Text color of headers */
|
|
672
|
+
textColor?: string;
|
|
673
|
+
/** Settings to be applied on hover of the headers */
|
|
674
|
+
hover?: {
|
|
675
|
+
/** Background color of headers on hover */
|
|
676
|
+
backgroundColor?: string;
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
/** Settings for the dropup items */
|
|
680
|
+
items?: {
|
|
681
|
+
/** Text color of the dropup items */
|
|
682
|
+
textColor?: string;
|
|
683
|
+
/** Settings to be applied on hover of dropup items */
|
|
684
|
+
hover?: {
|
|
685
|
+
/** Background color of dropup items on hover */
|
|
686
|
+
backgroundColor?: string;
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
/** Settings for the chatbot suggestions */
|
|
691
|
+
suggestions?: {
|
|
692
|
+
/** Text color of the chatbot suggestions */
|
|
693
|
+
textColor?: string;
|
|
694
|
+
/** Background color of the chatbot suggestions */
|
|
695
|
+
backgroundColor?: string;
|
|
696
|
+
/** Border of the chatbot suggestions */
|
|
697
|
+
border?: string;
|
|
698
|
+
/** 2-color gradient to be applied on the border */
|
|
699
|
+
borderGradient?: [string, string] | null;
|
|
700
|
+
/** Border radius of the chatbot suggestions */
|
|
701
|
+
borderRadius?: string;
|
|
702
|
+
/** Setting to be applied on hover */
|
|
703
|
+
hover?: {
|
|
704
|
+
/** Background color of the chatbot suggestions on hover */
|
|
705
|
+
backgroundColor?: string;
|
|
706
|
+
/** Text color of the chatbot suggestions on hover */
|
|
707
|
+
textColor?: string;
|
|
708
|
+
};
|
|
709
|
+
/** 2-color gradient to be applied on suggestions loading animation */
|
|
710
|
+
loadingGradient?: [string, string];
|
|
711
|
+
/** Gap size between each suggestion item */
|
|
712
|
+
gap?: string;
|
|
713
|
+
};
|
|
714
|
+
/** Settings for the chatbot clickable messages */
|
|
715
|
+
clickableMessages?: {
|
|
716
|
+
/** Background color of the chatbot clickable messages */
|
|
717
|
+
backgroundColor?: string;
|
|
718
|
+
/** Text color of the chatbot clickable messages */
|
|
719
|
+
textColor?: string;
|
|
720
|
+
/** Border of the chatbot clickable messages */
|
|
721
|
+
border?: false | string;
|
|
722
|
+
/** Setting to be applied on hover */
|
|
723
|
+
hover?: {
|
|
724
|
+
/** Text color of the chatbot clickable messages on hover */
|
|
725
|
+
textColor?: string;
|
|
726
|
+
/** Background color of the chatbot clickable messages on hover */
|
|
727
|
+
backgroundColor?: string;
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
/** Settings for the chatbot icons */
|
|
731
|
+
icons?: {
|
|
732
|
+
/** Color of the chatbot icons */
|
|
733
|
+
color?: string;
|
|
734
|
+
/** Setting to be applied on hover */
|
|
735
|
+
hover?: {
|
|
736
|
+
/** Color of the chatbot icons on hover */
|
|
737
|
+
color?: string;
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
};
|
|
578
741
|
}
|
|
579
742
|
/**
|
|
580
743
|
* Complete set of theme settings defining the look and feel of components.
|
|
@@ -649,11 +812,17 @@ export interface DashboardWidgetStyleOptions extends WidgetStyleOptions {
|
|
|
649
812
|
/** Style settings defining the look and feel of ChartWidget */
|
|
650
813
|
export type ChartWidgetStyleOptions = ChartStyleOptions & WidgetStyleOptions;
|
|
651
814
|
/**
|
|
652
|
-
* Style settings defining the look and feel of TableWidget
|
|
815
|
+
* Style settings defining the look and feel of TableWidget
|
|
653
816
|
*
|
|
654
817
|
* @internal
|
|
655
818
|
*/
|
|
656
819
|
export type TableWidgetStyleOptions = TableStyleOptions & WidgetStyleOptions;
|
|
820
|
+
/**
|
|
821
|
+
* Style settings defining the look and feel of TableWidget
|
|
822
|
+
*
|
|
823
|
+
* @internal
|
|
824
|
+
*/
|
|
825
|
+
export type PivotTableWidgetStyleOptions = PivotTableStyleOptions & WidgetStyleOptions;
|
|
657
826
|
/**
|
|
658
827
|
* Runs type guard check for ThemeOid.
|
|
659
828
|
*
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ContextMenuProps } from '../../props';
|
|
3
2
|
/**
|
|
4
3
|
* Context menu of a Drilldown Widget
|
|
5
4
|
*
|
|
6
5
|
* @group Drilldown
|
|
7
6
|
*/
|
|
8
|
-
export declare const ContextMenu: ({ position, closeContextMenu, itemSections, children, }: ContextMenuProps) => JSX.Element;
|
|
7
|
+
export declare const ContextMenu: ({ position, closeContextMenu, itemSections, children, }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledPrevButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
-
}, "
|
|
4
|
+
}, "children" | "style" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
}, {}, {}>;
|
|
7
7
|
export declare const StyledNextButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
8
8
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
9
|
-
}, "
|
|
9
|
+
}, "children" | "style" | "disabled" | "size" | "className" | "tabIndex" | "color" | "action" | "classes" | "sx" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
11
|
}, {}, {}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { WidgetStyleOptions } from '../../types';
|
|
3
|
+
interface WidgetContainerProps {
|
|
4
|
+
dataSetName?: string;
|
|
5
|
+
styleOptions?: WidgetStyleOptions;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
topSlot?: ReactNode;
|
|
9
|
+
bottomSlot?: ReactNode;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
onRefresh?: () => void;
|
|
12
|
+
}
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const WidgetContainer: React.FC<WidgetContainerProps>;
|
|
15
|
+
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { WidgetStyleOptions } from '../../types';
|
|
3
2
|
export default function WidgetHeaderInfoButton({ title, description, styleOptions, onRefresh, }: {
|
|
4
3
|
title?: string;
|
|
5
4
|
description?: string;
|
|
6
5
|
styleOptions?: WidgetStyleOptions['header'];
|
|
7
6
|
onRefresh: () => void;
|
|
8
|
-
}): JSX.Element;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DrilldownWidgetProps } from '../props';
|
|
3
2
|
/**
|
|
4
3
|
* React component designed to add drilldown functionality to any type of chart.
|
|
@@ -29,10 +28,10 @@ import { DrilldownWidgetProps } from '../props';
|
|
|
29
28
|
*
|
|
30
29
|
* Additional drilldown examples:
|
|
31
30
|
*
|
|
32
|
-
* - [Detached Breadcrumbs](https://
|
|
31
|
+
* - [Detached Breadcrumbs](https://www.sisense.com/platform/compose-sdk/playground/?example=use-cases%2Fdrilldown-detached-breadcrumbs)
|
|
33
32
|
*
|
|
34
33
|
* @param props - DrilldownWidget properties
|
|
35
34
|
* @returns DrilldownWidget wrapper component
|
|
36
35
|
* @group Drilldown
|
|
37
36
|
*/
|
|
38
|
-
export declare const DrilldownWidget: ({ drilldownDimensions, initialDimension, config, children, }: DrilldownWidgetProps) => JSX.Element;
|
|
37
|
+
export declare const DrilldownWidget: ({ drilldownDimensions, initialDimension, config, children, }: DrilldownWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type FunctionComponent } from 'react';
|
|
2
|
+
import { PivotTableWidgetProps } from '../props';
|
|
3
|
+
/**
|
|
4
|
+
* The PivotTableWidget component extending the PivotTable component to support widget style options.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* Example of using the `PivotTableWidget` component to
|
|
8
|
+
* plot a pivot table over the `Sample ECommerce` data source hosted in a Sisense instance.
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <PivotTableWidget
|
|
11
|
+
* dataSource={DM.DataSource}
|
|
12
|
+
* dataOptions={{
|
|
13
|
+
* rows: [DM.Category.Category],
|
|
14
|
+
* values: [measureFactory.sum(DM.Commerce.Cost, 'Total Cost')]
|
|
15
|
+
* }}
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
* @param props - Pivot Table Widget properties
|
|
19
|
+
* @returns Widget component representing a pivot table
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const PivotTableWidget: FunctionComponent<PivotTableWidgetProps>;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"Sisense",
|
|
12
12
|
"Compose SDK"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.10.0",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -38,14 +38,15 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@emotion/react": "^11.10.5",
|
|
40
40
|
"@emotion/styled": "^11.10.5",
|
|
41
|
-
"@mui/material": "^5.
|
|
42
|
-
"@
|
|
43
|
-
"@sisense/sdk-
|
|
44
|
-
"@sisense/sdk-
|
|
45
|
-
"@sisense/sdk-
|
|
46
|
-
"@sisense/sdk-
|
|
47
|
-
"@sisense/sdk-
|
|
48
|
-
"@sisense/
|
|
41
|
+
"@mui/material": "^5.15.16",
|
|
42
|
+
"@mui/system": "^5.15.15",
|
|
43
|
+
"@sisense/sdk-common": "^1.10.0",
|
|
44
|
+
"@sisense/sdk-data": "^1.10.0",
|
|
45
|
+
"@sisense/sdk-pivot-client": "^1.10.0",
|
|
46
|
+
"@sisense/sdk-query-client": "^1.10.0",
|
|
47
|
+
"@sisense/sdk-rest-client": "^1.10.0",
|
|
48
|
+
"@sisense/sdk-tracking": "^1.10.0",
|
|
49
|
+
"@sisense/sisense-charts": "5.1.1",
|
|
49
50
|
"@tanstack/react-query": "4.36.1",
|
|
50
51
|
"classnames": "^2.3.2",
|
|
51
52
|
"colorjs.io": "^0.4.3",
|
|
@@ -67,8 +68,7 @@
|
|
|
67
68
|
"react-number-format": "^5.1.0",
|
|
68
69
|
"ts-deepmerge": "6.0.2",
|
|
69
70
|
"ts-essentials": "^9.3.0",
|
|
70
|
-
"whatwg-fetch": "^3.6.2"
|
|
71
|
-
"yaml": "^2.4.0"
|
|
71
|
+
"whatwg-fetch": "^3.6.2"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"dev": "vite",
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
],
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@babel/preset-env": "^7.20.2",
|
|
96
|
-
"@monaco-editor/react": "^4.6.0",
|
|
97
96
|
"@mui/icons-material": "^5.14.9",
|
|
98
97
|
"@mui/x-data-grid": "^6.16.0",
|
|
99
98
|
"@mui/x-data-grid-pro": "^6.16.0",
|
|
@@ -109,13 +108,13 @@
|
|
|
109
108
|
"@swc-node/register": "^1.6.5",
|
|
110
109
|
"@testing-library/jest-dom": "^6.4.2",
|
|
111
110
|
"@testing-library/react": "^14.0.0",
|
|
112
|
-
"@types/fixed-data-table-2": "^0.
|
|
111
|
+
"@types/fixed-data-table-2": "^1.0.0",
|
|
113
112
|
"@types/leaflet": "^1.9.8",
|
|
114
113
|
"@types/lodash": "^4.14.194",
|
|
115
114
|
"@types/proj4leaflet": "^1.0.10",
|
|
116
|
-
"@types/react": "18.
|
|
115
|
+
"@types/react": "18.3.1",
|
|
117
116
|
"@types/react-datepicker": "^4.11.2",
|
|
118
|
-
"@types/react-dom": "18.
|
|
117
|
+
"@types/react-dom": "18.3.0",
|
|
119
118
|
"@types/react-grid-layout": "^1.3.5",
|
|
120
119
|
"@types/react-plotly.js": "^2.6.0",
|
|
121
120
|
"@vitejs/plugin-react-swc": "^3.3.0",
|
|
@@ -124,21 +123,21 @@
|
|
|
124
123
|
"canvas": "^2.11.2",
|
|
125
124
|
"eslint": "^8.40.0",
|
|
126
125
|
"jsdom": "^22.1.0",
|
|
127
|
-
"monaco-editor": "^0.45.0",
|
|
128
126
|
"msw": "2.2.1",
|
|
129
127
|
"plotly.js": "^2.25.2",
|
|
130
128
|
"postcss": "^8.4.31",
|
|
131
129
|
"prettier": "2.8.4",
|
|
132
|
-
"react": "18.
|
|
133
|
-
"react-dom": "
|
|
130
|
+
"react": "18.3.1",
|
|
131
|
+
"react-dom": "18.3.1",
|
|
134
132
|
"react-grid-layout": "^1.4.4",
|
|
135
133
|
"react-json-view": "^1.21.3",
|
|
136
134
|
"react-plotly.js": "^2.6.0",
|
|
135
|
+
"rollup-plugin-re": "^1.0.7",
|
|
137
136
|
"sass": "1.58.3",
|
|
138
137
|
"storybook": "7.0.24",
|
|
139
138
|
"tailwindcss": "^3.3.1",
|
|
140
139
|
"typescript": "4.8.4",
|
|
141
|
-
"vite": "
|
|
140
|
+
"vite": "5.2.10",
|
|
142
141
|
"vite-plugin-checker": "^0.6.1",
|
|
143
142
|
"vite-plugin-css-injected-by-js": "3.0.1",
|
|
144
143
|
"vite-plugin-dts": "^2.3.0",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface ChatStyle {
|
|
3
|
-
backgroundColor?: string;
|
|
4
|
-
primaryTextColor?: string;
|
|
5
|
-
secondaryTextColor?: string;
|
|
6
|
-
messageBackgroundColor?: string;
|
|
7
|
-
inputBackgroundColor?: string;
|
|
8
|
-
border?: false | string;
|
|
9
|
-
suggestions?: {
|
|
10
|
-
textColor?: string;
|
|
11
|
-
border?: string;
|
|
12
|
-
hoverBackgroundColor?: string;
|
|
13
|
-
loadingGradient?: [string, string];
|
|
14
|
-
};
|
|
15
|
-
iconColor?: string;
|
|
16
|
-
}
|
|
17
|
-
export type ChatStyleProviderProps = {
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
value: ChatStyle;
|
|
20
|
-
};
|
|
21
|
-
export declare const useChatStyle: () => ChatStyle;
|
|
22
|
-
export declare const ChatStyleProvider: ({ children, value }: ChatStyleProviderProps) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface SuggestionDropdownListProps {
|
|
3
|
-
onSelect: (selection: string) => void;
|
|
4
|
-
suggestions: string[];
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
}
|
|
7
|
-
export default function SuggestionDropdownList(props: SuggestionDropdownListProps): JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CodeTemplates } from '../../ai/translators/types';
|
|
2
|
-
/**
|
|
3
|
-
* Code templates for different UI frameworks.
|
|
4
|
-
*
|
|
5
|
-
* A code template is made up of other code templates and placeholders.
|
|
6
|
-
* This allows a code template to be reused in other code templates.
|
|
7
|
-
* For example, a chart widget template can be reused in a dashboard template.
|
|
8
|
-
*
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export declare const CODE_TEMPLATES: CodeTemplates;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CodeTemplateKey, UiFramework } from '../../ai/translators/types';
|
|
2
|
-
/**
|
|
3
|
-
* Generates code from a template with the given data and UI framework.
|
|
4
|
-
*
|
|
5
|
-
* @param templateKey - the key of the template to use
|
|
6
|
-
* @param data - the data to populate the template with
|
|
7
|
-
* @param uiFramework - the UI framework for the generated code
|
|
8
|
-
*/
|
|
9
|
-
export declare const generateCode: (templateKey: CodeTemplateKey, data: Record<string, string>, uiFramework?: UiFramework) => string;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ExpandedQueryModel, ChartWidgetModel, UiFramework } from '../../ai/translators/types';
|
|
2
|
-
/**
|
|
3
|
-
* A class that translates expanded query model to CSDK chart model and code.
|
|
4
|
-
*
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class ModelTranslator {
|
|
8
|
-
queryModel: ExpandedQueryModel;
|
|
9
|
-
constructor(queryModel: ExpandedQueryModel);
|
|
10
|
-
/**
|
|
11
|
-
* Gets chart recommendations or default to table.
|
|
12
|
-
*
|
|
13
|
-
* @param chart - chart recommendations
|
|
14
|
-
* @returns chart recommendations or default to table
|
|
15
|
-
*/
|
|
16
|
-
private getChartRecommendationsOrDefault;
|
|
17
|
-
/**
|
|
18
|
-
* Gets filters from metadata.
|
|
19
|
-
*
|
|
20
|
-
* @param metadata - metadata items
|
|
21
|
-
* @return array of Filter objects
|
|
22
|
-
*/
|
|
23
|
-
private getFilters;
|
|
24
|
-
/**
|
|
25
|
-
* Splits metadata into columns and filters.
|
|
26
|
-
*
|
|
27
|
-
* @param metadata - metadata items
|
|
28
|
-
*/
|
|
29
|
-
private splitMetadata;
|
|
30
|
-
/**
|
|
31
|
-
* Converts query model to chart.
|
|
32
|
-
*
|
|
33
|
-
* TODO Refactor Chatbot to use this method to render the chart
|
|
34
|
-
*/
|
|
35
|
-
toChart(): ChartWidgetModel | undefined;
|
|
36
|
-
private stringifyDataSource;
|
|
37
|
-
private stringifyChartType;
|
|
38
|
-
private stringifyFilters;
|
|
39
|
-
private stringifyDataOptions;
|
|
40
|
-
private stringifyExtraImports;
|
|
41
|
-
private getChartWidgetCode;
|
|
42
|
-
private getTableWidgetCode;
|
|
43
|
-
/**
|
|
44
|
-
* Converts chart widget model to CSDK code.
|
|
45
|
-
*
|
|
46
|
-
* @param chartWidgetModel - chart widget model
|
|
47
|
-
* @param uiFramework - UI framework
|
|
48
|
-
* @returns CSDK code string of the UI framework
|
|
49
|
-
*/
|
|
50
|
-
toCode(chartWidgetModel: ChartWidgetModel, uiFramework?: UiFramework): string;
|
|
51
|
-
}
|