it-data-nexus-ui-library 2.11.3 → 2.11.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Caption as i,Body2 as
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Caption as i,Body2 as t}from"../Typography.mjs";import{Stack as l}from"../_Primitives/Stack.mjs";import{ChartFrame as o}from"./chartFrame.mjs";function a({rows:a,columns:n,cells:s,statusMap:d,cellMinHeight:c=40,cellIconSize:m=22,columnLabelOrientation:p="horizontal",sx:x,title:b,titleComponent:h,titleSx:g,titleHidden:u,description:f,actions:$,isLoading:w,isError:v,errorMessage:y,paperSx:S}){const j=new Map(s.map(e=>[`${e.rowId}:${e.columnId}`,e])),C="vertical"===p||"auto"===p&&n.length>4,H=C?"25%":"33%";return e(o,{title:b,titleComponent:h,titleSx:g,titleHidden:u,description:f,actions:$,isLoading:w,isError:v,errorMessage:y,paperSx:S,children:r(l,{sx:[{gap:.5},...Array.isArray(x)?x:x?[x]:[]],role:"table","aria-label":b??"Heatmap",children:[r(l,{direction:"row",role:"row",sx:{gap:.5},children:[e(l,{sx:{flex:`0 0 ${H}`}}),n.map(r=>e(l,{role:"columnheader",sx:{flex:1,alignItems:"center",justifyContent:C?"flex-end":void 0,minWidth:0},children:e(i,{sx:C?{writingMode:"vertical-rl",transform:"rotate(180deg)",whiteSpace:"nowrap"}:{textAlign:"center"},children:r.label})},r.id))]}),a.map(i=>r(l,{direction:"row",role:"row",sx:{gap:.5},children:[e(l,{role:"rowheader",sx:{flex:`0 0 ${H}`,justifyContent:"center",minWidth:0},children:e(t,{children:i.label})}),n.map(r=>{const t=j.get(`${i.id}:${r.id}`),o=t?d[t.status]:void 0,a=t?.label??o?.label??"No data";if(!o)return e(l,{role:"cell","aria-label":`${a}: ${i.label}, ${r.label}`,sx:{flex:1,minHeight:c,border:1,borderColor:"divider",borderRadius:.5,bgcolor:"action.hover"}},r.id);const{Icon:n,color:s}=o;return e(l,{role:"cell",sx:{flex:1,minHeight:c,alignItems:"center",justifyContent:"center",border:1,borderColor:"divider",borderRadius:.5,bgcolor:"action.hover"},children:e(n,{"aria-label":`${a}: ${i.label}, ${r.label}`,titleAccess:`${a}: ${i.label}, ${r.label}`,sx:{color:s,fontSize:m}})},r.id)})]},i.id))]})})}a.displayName="NexusHeatmap";export{a as NexusHeatmap};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{Autocomplete as l,TextField as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Autocomplete as l,TextField as a}from"@mui/material";const o=({options:o,value:i,onChange:n,label:t,placeholder:s,noOptionsText:r="No options",disabled:u=!1,disableClearable:p=!1,size:d="small"})=>{const b=o.find(e=>e.value===i)??null;return e(l,{options:o,value:b,onChange:(e,l)=>n(l?.value??""),getOptionLabel:e=>e.label,isOptionEqualToValue:(e,l)=>e.value===l.value,noOptionsText:r,disabled:u,disableClearable:p,size:d,fullWidth:!0,sx:{minWidth:{xs:0,sm:200}},renderInput:l=>e(a,{...l,label:t,placeholder:s})})};export{o as SearchableSelect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="2.11.
|
|
1
|
+
const o="2.11.5";export{o as SAGE_NEXUS_UI_VERSION};
|
package/dist/index.d.ts
CHANGED
|
@@ -1360,9 +1360,10 @@ interface SearchableSelectProps {
|
|
|
1360
1360
|
placeholder?: string;
|
|
1361
1361
|
noOptionsText?: string;
|
|
1362
1362
|
disabled?: boolean;
|
|
1363
|
+
disableClearable?: boolean;
|
|
1363
1364
|
size?: "small" | "medium";
|
|
1364
1365
|
}
|
|
1365
|
-
declare const SearchableSelect: ({ options, value, onChange, label, placeholder, noOptionsText, disabled, size, }: SearchableSelectProps) => react.JSX.Element;
|
|
1366
|
+
declare const SearchableSelect: ({ options, value, onChange, label, placeholder, noOptionsText, disabled, disableClearable, size, }: SearchableSelectProps) => react.JSX.Element;
|
|
1366
1367
|
|
|
1367
1368
|
interface SideBladeProps {
|
|
1368
1369
|
open: boolean;
|
|
@@ -1596,6 +1597,7 @@ interface NexusHeatmapStatus {
|
|
|
1596
1597
|
color: string;
|
|
1597
1598
|
label: string;
|
|
1598
1599
|
}
|
|
1600
|
+
type NexusHeatmapColumnLabelOrientation = "horizontal" | "vertical" | "auto";
|
|
1599
1601
|
interface NexusHeatmapProps extends ChartAsyncProps {
|
|
1600
1602
|
rows: NexusHeatmapAxisItem[];
|
|
1601
1603
|
columns: NexusHeatmapAxisItem[];
|
|
@@ -1605,9 +1607,15 @@ interface NexusHeatmapProps extends ChartAsyncProps {
|
|
|
1605
1607
|
cellMinHeight?: number;
|
|
1606
1608
|
/** Icon size in px for populated heatmap cells. Defaults to 22. */
|
|
1607
1609
|
cellIconSize?: number;
|
|
1610
|
+
/**
|
|
1611
|
+
* Orientation of the column headings. `"vertical"` reads bottom-to-top so long labels fit narrow
|
|
1612
|
+
* columns, and also narrows the row-label column. `"auto"` goes vertical above 4 columns.
|
|
1613
|
+
* Defaults to `"horizontal"`.
|
|
1614
|
+
*/
|
|
1615
|
+
columnLabelOrientation?: NexusHeatmapColumnLabelOrientation;
|
|
1608
1616
|
sx?: SxProps<Theme>;
|
|
1609
1617
|
}
|
|
1610
|
-
declare function NexusHeatmap({ rows, columns, cells, statusMap, cellMinHeight, cellIconSize, sx, title, titleComponent, titleSx, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, }: NexusHeatmapProps): react.JSX.Element;
|
|
1618
|
+
declare function NexusHeatmap({ rows, columns, cells, statusMap, cellMinHeight, cellIconSize, columnLabelOrientation, sx, title, titleComponent, titleSx, titleHidden, description, actions, isLoading, isError, errorMessage, paperSx, }: NexusHeatmapProps): react.JSX.Element;
|
|
1611
1619
|
declare namespace NexusHeatmap {
|
|
1612
1620
|
var displayName: string;
|
|
1613
1621
|
}
|
|
@@ -2349,4 +2357,4 @@ declare const leftPipe: SxProps<Theme>;
|
|
|
2349
2357
|
declare const expandableText: (isExpanded: boolean) => SxProps<Theme>;
|
|
2350
2358
|
|
|
2351
2359
|
export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, ActivityFeed, AgentChatDialog, AgentChatWidget, AgentChatWindow, AgentChatWindowHeader, AiButton, AiButtonTile, AiCard, AiChip, AiGlassCard, AiGlassPaper, AiPaper, Alert, ArtifactViewer, Avatar, Body1, Body2, Breadcrumbs, BudgetMeter, ButtonBase, ButtonTile, Caption, Card, Carousel, ChatAvatar, ChatContentFallback, ChatDatapoints, ChatHistory, ChatHistoryAgentItem, ChatHistoryButtonBase, ChatHistoryHeader, ChatInput, ChatResponseMarkdown, ChatWindowBody, Checkbox, CheckboxGroup, Chip, CircularProgress, Code, Collapse, Container, CopyButton, CopyableTableContainer, DateRangeFilter, DateRangePicker, DeltaChip, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, DiffView, Divider, Duration, EmptyState, FABButton, FaviconLinks, FlowDiagram, FlowNodePalette, FlowNodePaletteItem, FlowNodePaletteProvider, FormControlLabel, FormDialog, FormGroup, GhostButton, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, Grid, H1, H2, H3, H4, IconButton, JsonViewer, KeyValueList, Link, LoadingSpinnerNexus, LocationMultiSelect, LogoOptions, MAX_CHART_POINTS, MarkdownContent, MessageBubble, MessageFeedbackBar, MessageList, MetricCard, MetricStat, MetricValue, MuiAppThemeProvider, NEXUS_THEME_STORAGE_KEY, NexusAreaChart, NexusBarChart, NexusDataGrid, NexusEmptyState, NexusFlow, NexusFunnelChart, NexusHeatmap, NexusHome, NexusLineChart, NexusLogo, NexusNodeIcon, NexusOrbit, NexusPieChart, NexusScatterChart, NexusStackedAreaChart, NexusStackedBarChart, NexusiFrame, NotificationBell, NotificationListItem, Paper, PaperAsync, PrimaryButton, PrimaryButtonLink, ProcessSteps, ProgressBar, RagChip, RagDot, RelativeTime, SageLogoSvg, SchemaFieldView, SearchInput, SearchableSelect, SecondaryButton, SecondaryButtonLink, SectionNav, SegmentedControl, Select, SelectableList, SideBlade, SideBladeNavList, SideBladeNavListItem, Skeleton, SkillChip, SkipLink, Slider, SourceCitations, Span, Stack, StageProgress, StatusBadge, StatusChip, StreamingBubble, SuggestedPrompts, Switch, Tab, Table, TableBody, TableCell, TableHead, TableRow, Tabs, TextField, ThemeModeContext, ThemeModeProvider, ThemeToggle, Tile, Toast, Tooltip, TypingIndicator, chartDefinitions, chatHistoryMatchesQuery, chatWindowMarkdownComponents, colours, columnsForItemCount, createSageTheme, deltaColorForPolarity, expandableText, filterChatHistoryConversations, fontSageHeadline, fontSageText, fontSageUI, formatDatapointDelta, formatDatapointValue, formatDate, formatDurationMs, formatSurnameFirstname, getFaviconUrls, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, isAllowedImageSrc, latestTraceLabel, leftPipe, ragColorForDelta, resolveArtifact, safeChatMarkdownComponents, safeMarkdownUrl, sanitizeRawHtmlTable, splitRawHtmlTables, toSandboxedSrcDoc, useThemeMode, useTokens, validateChartDefinition, validateChartItem };
|
|
2352
|
-
export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, ActivityFeedEntry, ActivityFeedProps, ActivitySummary, AgentChatDialogProps, AgentChatWidgetProps, AgentChatWindowHeaderProps, AgentChatWindowProps, AiButtonProps, AiButtonTileProps, AiCardProps, AiChipProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, ArtifactContent, ArtifactKind, ArtifactViewerProps, AvatarProps, AvatarSize, AvatarVariant, BreadcrumbItem, BreadcrumbsProps, BudgetMeterProps, ButtonTileProps, CardProps, CardTrend, CarouselBreakpoint, CarouselItemsPerView, CarouselProps, ChartAsyncProps, ChartDefinition, ChartEnvelope, ChartFieldSchema, ChartToProps, ChartValidationResult, ChartValueFormatter, ChatAvatarProps, ChatContentFallbackProps, ChatDatapointDelta, ChatDatapointItem, ChatDatapointPolarity, ChatDatapointValueFormat, ChatDatapointsData, ChatDatapointsProps, ChatHistoryAgent, ChatHistoryAgentItemProps, ChatHistoryButtonBaseProps, ChatHistoryConversation, ChatHistoryHeaderProps, ChatHistoryProps, ChatInputProps, ChatMessage, ChatResponseMarkdownProps, ChatTableCell, ChatTableData, ChatTablePart, CodeBlock, CopyButtonProps, CopyableTableContainerProps, DateRangeFilterProps, DateRangePickerProps, DateRangePreset, DateRangeValue, DeltaChipProps, DeltaChipTone, DialogProps, DiffViewProps, DurationProps, EmptyStateProps, FABButtonProps, FileArtifact, FlowDiagramColumn, FlowDiagramHub, FlowDiagramItem, FlowDiagramLogo, FlowDiagramProps, FlowNodePaletteItemProps, FlowNodePaletteProps, FlowNodePaletteProviderProps, FormDialogProps, GhostButtonProps, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, IconButtonVariant, JsonSchema, JsonViewerProps, KeyValueItem, KeyValueListProps, LatencyMetrics, LinkProps, LoadingSpinnerNexusProps, MarkdownContentProps, MessageBubbleProps, MessageFeedbackBarProps, MessageListProps, MetricCardProps, MetricStatProps, MetricValueSize, ModeTokens, NexusAreaChartProps, NexusBarChartProps, NexusEmptyStateProps, NexusFlowProps, NexusFunnelChartProps, NexusFunnelStage, NexusHeatmapAxisItem, NexusHeatmapCell, NexusHeatmapProps, NexusHeatmapStatus, NexusLineChartProps, NexusNodeIconProps, NexusNodeIconSize, NexusNodeIconTone, NexusOrbitProps, NexusPaperProps, NexusPieChartProps, NexusScatterChartProps, NexusStackedAreaChartProps, NexusStackedBarChartProps, NexusiFrameProps, NotificationBellProps, NotificationListItemProps, PaperAsyncProps, ParsedActivity, PrimaryButtonLinkProps, PrimaryButtonProps, ProcessStep, ProcessStepsProps, ProgressBarProps, ProgressBarStatus, RelativeTimeProps, ResolvedArtifact, SchemaFieldViewProps, SearchableSelectOption, SearchableSelectProps, SecondaryButtonLinkProps, SecondaryButtonProps, SectionNavItem, SectionNavProps, SegmentedControlOption, SegmentedControlProps, SelectOption, SelectProps, SelectableListItem, SelectableListProps, SideBladeNavItem, SideBladeNavListItemProps, SideBladeNavListProps, SideBladeProps, SkeletonProps, SkipLinkProps, SliderMarkOption, SliderProps, SourceCitationsProps, StackedBarItem, StageProgressProps, StageProgressStep, StageState, StatusBadgeProps, StatusBadgeVariant, StreamingBubbleProps, SuggestedPromptsProps, ThemeMode, ThemeModeContextValue, ThemeModeProviderProps, TileProps, ToastProps, TooltipProps, TraceEvent, TypingIndicatorProps };
|
|
2360
|
+
export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, ActivityFeedEntry, ActivityFeedProps, ActivitySummary, AgentChatDialogProps, AgentChatWidgetProps, AgentChatWindowHeaderProps, AgentChatWindowProps, AiButtonProps, AiButtonTileProps, AiCardProps, AiChipProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, ArtifactContent, ArtifactKind, ArtifactViewerProps, AvatarProps, AvatarSize, AvatarVariant, BreadcrumbItem, BreadcrumbsProps, BudgetMeterProps, ButtonTileProps, CardProps, CardTrend, CarouselBreakpoint, CarouselItemsPerView, CarouselProps, ChartAsyncProps, ChartDefinition, ChartEnvelope, ChartFieldSchema, ChartToProps, ChartValidationResult, ChartValueFormatter, ChatAvatarProps, ChatContentFallbackProps, ChatDatapointDelta, ChatDatapointItem, ChatDatapointPolarity, ChatDatapointValueFormat, ChatDatapointsData, ChatDatapointsProps, ChatHistoryAgent, ChatHistoryAgentItemProps, ChatHistoryButtonBaseProps, ChatHistoryConversation, ChatHistoryHeaderProps, ChatHistoryProps, ChatInputProps, ChatMessage, ChatResponseMarkdownProps, ChatTableCell, ChatTableData, ChatTablePart, CodeBlock, CopyButtonProps, CopyableTableContainerProps, DateRangeFilterProps, DateRangePickerProps, DateRangePreset, DateRangeValue, DeltaChipProps, DeltaChipTone, DialogProps, DiffViewProps, DurationProps, EmptyStateProps, FABButtonProps, FileArtifact, FlowDiagramColumn, FlowDiagramHub, FlowDiagramItem, FlowDiagramLogo, FlowDiagramProps, FlowNodePaletteItemProps, FlowNodePaletteProps, FlowNodePaletteProviderProps, FormDialogProps, GhostButtonProps, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, IconButtonVariant, JsonSchema, JsonViewerProps, KeyValueItem, KeyValueListProps, LatencyMetrics, LinkProps, LoadingSpinnerNexusProps, MarkdownContentProps, MessageBubbleProps, MessageFeedbackBarProps, MessageListProps, MetricCardProps, MetricStatProps, MetricValueSize, ModeTokens, NexusAreaChartProps, NexusBarChartProps, NexusEmptyStateProps, NexusFlowProps, NexusFunnelChartProps, NexusFunnelStage, NexusHeatmapAxisItem, NexusHeatmapCell, NexusHeatmapColumnLabelOrientation, NexusHeatmapProps, NexusHeatmapStatus, NexusLineChartProps, NexusNodeIconProps, NexusNodeIconSize, NexusNodeIconTone, NexusOrbitProps, NexusPaperProps, NexusPieChartProps, NexusScatterChartProps, NexusStackedAreaChartProps, NexusStackedBarChartProps, NexusiFrameProps, NotificationBellProps, NotificationListItemProps, PaperAsyncProps, ParsedActivity, PrimaryButtonLinkProps, PrimaryButtonProps, ProcessStep, ProcessStepsProps, ProgressBarProps, ProgressBarStatus, RelativeTimeProps, ResolvedArtifact, SchemaFieldViewProps, SearchableSelectOption, SearchableSelectProps, SecondaryButtonLinkProps, SecondaryButtonProps, SectionNavItem, SectionNavProps, SegmentedControlOption, SegmentedControlProps, SelectOption, SelectProps, SelectableListItem, SelectableListProps, SideBladeNavItem, SideBladeNavListItemProps, SideBladeNavListProps, SideBladeProps, SkeletonProps, SkipLinkProps, SliderMarkOption, SliderProps, SourceCitationsProps, StackedBarItem, StageProgressProps, StageProgressStep, StageState, StatusBadgeProps, StatusBadgeVariant, StreamingBubbleProps, SuggestedPromptsProps, ThemeMode, ThemeModeContextValue, ThemeModeProviderProps, TileProps, ToastProps, TooltipProps, TraceEvent, TypingIndicatorProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "it-data-nexus-ui-library",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.5",
|
|
4
4
|
"description": "Nexus core components",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "emsmart-sage",
|
|
@@ -46,28 +46,28 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@mui/x-charts": "^9.4.0",
|
|
48
48
|
"@radix-ui/react-popover": "^1.1.15",
|
|
49
|
-
"dompurify": "3.4.13",
|
|
50
49
|
"diff": "^9.0.0",
|
|
50
|
+
"dompurify": "3.4.13",
|
|
51
51
|
"react-json-view-lite": "^2.5.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@xyflow/react": "^12.12.0",
|
|
55
54
|
"@emotion/react": "^11.14.0",
|
|
56
55
|
"@emotion/styled": "^11.14.1",
|
|
57
56
|
"@mui/icons-material": "^7 || ^8 || ^9",
|
|
58
57
|
"@mui/material": "^7 || ^8 || ^9",
|
|
59
58
|
"@mui/x-data-grid": "^7 || ^8 || ^9",
|
|
60
59
|
"@mui/x-date-pickers": "^7 || ^8 || ^9",
|
|
60
|
+
"@rjsf/core": "^6.11.0",
|
|
61
|
+
"@rjsf/mui": "^6.11.0",
|
|
62
|
+
"@rjsf/utils": "^6.11.0",
|
|
63
|
+
"@rjsf/validator-ajv8": "^6.11.0",
|
|
64
|
+
"@xyflow/react": "^12.12.0",
|
|
61
65
|
"date-fns": "^3 || ^4",
|
|
62
66
|
"react": "^18 || ^19",
|
|
63
67
|
"react-day-picker": "^9",
|
|
64
68
|
"react-dom": "^18 || ^19",
|
|
65
69
|
"react-markdown": "^10",
|
|
66
|
-
"remark-gfm": "^4"
|
|
67
|
-
"@rjsf/core": "^6.11.0",
|
|
68
|
-
"@rjsf/mui": "^6.11.0",
|
|
69
|
-
"@rjsf/utils": "^6.11.0",
|
|
70
|
-
"@rjsf/validator-ajv8": "^6.11.0"
|
|
70
|
+
"remark-gfm": "^4"
|
|
71
71
|
},
|
|
72
72
|
"peerDependenciesMeta": {
|
|
73
73
|
"@radix-ui/react-popover": {
|
|
@@ -102,7 +102,6 @@
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@xyflow/react": "^12.12.0",
|
|
106
105
|
"@chromatic-com/storybook": "^5.3.0",
|
|
107
106
|
"@emotion/react": "^11.14.0",
|
|
108
107
|
"@emotion/styled": "^11.14.1",
|
|
@@ -133,6 +132,7 @@
|
|
|
133
132
|
"@vitejs/plugin-react": "^6.0.1",
|
|
134
133
|
"@vitest/browser-playwright": "^4.1.4",
|
|
135
134
|
"@vitest/coverage-v8": "^4.1.4",
|
|
135
|
+
"@xyflow/react": "^12.12.0",
|
|
136
136
|
"date-fns": "^4.1.0",
|
|
137
137
|
"eslint": "9.39.4",
|
|
138
138
|
"eslint-plugin-import": "^2.32.0",
|