framepexls-ui-lib 2.1.0 → 2.2.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/AnalyticsCharts.d.mts +4 -4
- package/dist/AnalyticsCharts.d.ts +4 -4
- package/dist/AppTopbar.d.mts +1 -2
- package/dist/AppTopbar.d.ts +1 -2
- package/dist/AssetPerformanceCard.d.mts +50 -0
- package/dist/AssetPerformanceCard.d.ts +50 -0
- package/dist/AssetPerformanceCard.js +342 -0
- package/dist/AssetPerformanceCard.mjs +319 -0
- package/dist/AssetTickerRow.d.mts +26 -0
- package/dist/AssetTickerRow.d.ts +26 -0
- package/dist/AssetTickerRow.js +255 -0
- package/dist/AssetTickerRow.mjs +225 -0
- package/dist/AuthTopbar.d.mts +2 -2
- package/dist/AuthTopbar.d.ts +2 -2
- package/dist/AuthTopbar.js +2 -1
- package/dist/AuthTopbar.mjs +2 -1
- package/dist/AvatarGroup.d.mts +2 -2
- package/dist/AvatarGroup.d.ts +2 -2
- package/dist/AvatarSquare.d.mts +2 -2
- package/dist/AvatarSquare.d.ts +2 -2
- package/dist/AvatarSquare.js +29 -27
- package/dist/AvatarSquare.mjs +29 -27
- package/dist/Badge.d.mts +1 -2
- package/dist/Badge.d.ts +1 -2
- package/dist/BadgeCluster.d.mts +2 -3
- package/dist/BadgeCluster.d.ts +2 -3
- package/dist/Breadcrumb.d.mts +1 -2
- package/dist/Breadcrumb.d.ts +1 -2
- package/dist/CalendarPanel.d.mts +2 -2
- package/dist/CalendarPanel.d.ts +2 -2
- package/dist/Carousel.d.mts +1 -2
- package/dist/Carousel.d.ts +1 -2
- package/dist/ChangeHistory.d.mts +1 -2
- package/dist/ChangeHistory.d.ts +1 -2
- package/dist/ChartCard.d.mts +1 -2
- package/dist/ChartCard.d.ts +1 -2
- package/dist/ChatCenter.d.mts +2 -2
- package/dist/ChatCenter.d.ts +2 -2
- package/dist/ChatbotCenter.d.mts +1 -2
- package/dist/ChatbotCenter.d.ts +1 -2
- package/dist/CheckboxPillsGroup.d.mts +1 -2
- package/dist/CheckboxPillsGroup.d.ts +1 -2
- package/dist/ColorPicker.d.mts +2 -2
- package/dist/ColorPicker.d.ts +2 -2
- package/dist/ColumnSelector.d.mts +1 -2
- package/dist/ColumnSelector.d.ts +1 -2
- package/dist/ComboSelect.d.mts +1 -2
- package/dist/ComboSelect.d.ts +1 -2
- package/dist/DataPageLayout.d.mts +64 -0
- package/dist/DataPageLayout.d.ts +64 -0
- package/dist/DataPageLayout.js +191 -0
- package/dist/DataPageLayout.mjs +157 -0
- package/dist/DataTable.d.mts +1 -2
- package/dist/DataTable.d.ts +1 -2
- package/dist/DataTableCard.d.mts +1 -2
- package/dist/DataTableCard.d.ts +1 -2
- package/dist/DataTableCardFooter.d.mts +2 -2
- package/dist/DataTableCardFooter.d.ts +2 -2
- package/dist/DateTimeField.d.mts +1 -2
- package/dist/DateTimeField.d.ts +1 -2
- package/dist/Dialog.d.mts +6 -7
- package/dist/Dialog.d.ts +6 -7
- package/dist/DocumentEditor.d.mts +3 -3
- package/dist/DocumentEditor.d.ts +3 -3
- package/dist/Drawer.d.mts +4 -5
- package/dist/Drawer.d.ts +4 -5
- package/dist/Dropdown.d.mts +7 -8
- package/dist/Dropdown.d.ts +7 -8
- package/dist/EmptyState.d.mts +1 -2
- package/dist/EmptyState.d.ts +1 -2
- package/dist/FiltersMultiSelect.d.mts +1 -2
- package/dist/FiltersMultiSelect.d.ts +1 -2
- package/dist/HeliipLoader.d.mts +2 -2
- package/dist/HeliipLoader.d.ts +2 -2
- package/dist/ImpersonationDialog.d.mts +2 -2
- package/dist/ImpersonationDialog.d.ts +2 -2
- package/dist/ImpersonationSwitcher.d.mts +2 -2
- package/dist/ImpersonationSwitcher.d.ts +2 -2
- package/dist/InfoGrid.d.mts +1 -2
- package/dist/InfoGrid.d.ts +1 -2
- package/dist/KnowledgeBase.d.mts +1 -2
- package/dist/KnowledgeBase.d.ts +1 -2
- package/dist/KpiCard.d.mts +2 -3
- package/dist/KpiCard.d.ts +2 -3
- package/dist/LanguageSwitcher.d.mts +2 -2
- package/dist/LanguageSwitcher.d.ts +2 -2
- package/dist/LicenseStatus.d.mts +1 -2
- package/dist/LicenseStatus.d.ts +1 -2
- package/dist/Link.d.mts +1 -2
- package/dist/Link.d.ts +1 -2
- package/dist/Login.d.mts +1 -2
- package/dist/Login.d.ts +1 -2
- package/dist/LoginCarousel.d.mts +2 -3
- package/dist/LoginCarousel.d.ts +2 -3
- package/dist/LoginGallery.d.mts +2 -3
- package/dist/LoginGallery.d.ts +2 -3
- package/dist/LoginTools.d.mts +1 -2
- package/dist/LoginTools.d.ts +1 -2
- package/dist/Map.d.mts +4 -5
- package/dist/Map.d.ts +4 -5
- package/dist/MarkdownEditor.d.mts +2 -2
- package/dist/MarkdownEditor.d.ts +2 -2
- package/dist/MediaCard.d.mts +2 -2
- package/dist/MediaCard.d.ts +2 -2
- package/dist/MediaLibraryLayout.d.mts +89 -0
- package/dist/MediaLibraryLayout.d.ts +89 -0
- package/dist/MediaLibraryLayout.js +369 -0
- package/dist/MediaLibraryLayout.mjs +348 -0
- package/dist/MediaSelector.d.mts +2 -2
- package/dist/MediaSelector.d.ts +2 -2
- package/dist/MediaTile.d.mts +2 -2
- package/dist/MediaTile.d.ts +2 -2
- package/dist/Money.d.mts +2 -2
- package/dist/Money.d.ts +2 -2
- package/dist/MotionProvider.d.mts +1 -2
- package/dist/MotionProvider.d.ts +1 -2
- package/dist/MultiComboSelect.d.mts +2 -3
- package/dist/MultiComboSelect.d.ts +2 -3
- package/dist/NotificationsCenter.d.mts +1 -2
- package/dist/NotificationsCenter.d.ts +1 -2
- package/dist/Numeric.d.mts +2 -2
- package/dist/Numeric.d.ts +2 -2
- package/dist/OmniSearch.d.mts +2 -3
- package/dist/OmniSearch.d.ts +2 -3
- package/dist/OrderButton.d.mts +2 -2
- package/dist/OrderButton.d.ts +2 -2
- package/dist/PageScaffold.d.mts +1 -2
- package/dist/PageScaffold.d.ts +1 -2
- package/dist/PageScaffold.js +1 -1
- package/dist/PageScaffold.mjs +1 -1
- package/dist/PageTransition.d.mts +1 -2
- package/dist/PageTransition.d.ts +1 -2
- package/dist/PageTransition.js +33 -27
- package/dist/PageTransition.mjs +33 -27
- package/dist/Pagination.d.mts +2 -2
- package/dist/Pagination.d.ts +2 -2
- package/dist/PasswordField.d.mts +1 -2
- package/dist/PasswordField.d.ts +1 -2
- package/dist/ProductCatalog.d.mts +2 -3
- package/dist/ProductCatalog.d.ts +2 -3
- package/dist/PromotionsCatalog.d.mts +2 -3
- package/dist/PromotionsCatalog.d.ts +2 -3
- package/dist/QrCode.d.mts +2 -2
- package/dist/QrCode.d.ts +2 -2
- package/dist/QuoteEditor.d.mts +2 -2
- package/dist/QuoteEditor.d.ts +2 -2
- package/dist/RechartsBarCard.d.mts +1 -2
- package/dist/RechartsBarCard.d.ts +1 -2
- package/dist/RechartsDonutCard.d.mts +1 -2
- package/dist/RechartsDonutCard.d.ts +1 -2
- package/dist/RechartsTimeSeriesCard.d.mts +1 -2
- package/dist/RechartsTimeSeriesCard.d.ts +1 -2
- package/dist/ReviewHistory.d.mts +3 -3
- package/dist/ReviewHistory.d.ts +3 -3
- package/dist/Reviews.d.mts +1 -2
- package/dist/Reviews.d.ts +1 -2
- package/dist/SearchInput.d.mts +2 -2
- package/dist/SearchInput.d.ts +2 -2
- package/dist/SegmentedTabs.d.mts +1 -2
- package/dist/SegmentedTabs.d.ts +1 -2
- package/dist/Select.d.mts +2 -2
- package/dist/Select.d.ts +2 -2
- package/dist/ShareAccess.d.mts +1 -2
- package/dist/ShareAccess.d.ts +1 -2
- package/dist/Sidebar.d.mts +1 -2
- package/dist/Sidebar.d.ts +1 -2
- package/dist/Sidebar.js +492 -335
- package/dist/Sidebar.mjs +492 -335
- package/dist/StatCard.d.mts +1 -2
- package/dist/StatCard.d.ts +1 -2
- package/dist/Steps.d.mts +3 -3
- package/dist/Steps.d.ts +3 -3
- package/dist/StorageUsage.d.mts +1 -2
- package/dist/StorageUsage.d.ts +1 -2
- package/dist/Table.d.mts +4 -5
- package/dist/Table.d.ts +4 -5
- package/dist/TableRecordButton.d.mts +1 -2
- package/dist/TableRecordButton.d.ts +1 -2
- package/dist/TimeAgo.d.mts +2 -2
- package/dist/TimeAgo.d.ts +2 -2
- package/dist/TimePanel.d.mts +1 -2
- package/dist/TimePanel.d.ts +1 -2
- package/dist/TimeRangeField.d.mts +2 -2
- package/dist/TimeRangeField.d.ts +2 -2
- package/dist/Toast.d.mts +1 -2
- package/dist/Toast.d.ts +1 -2
- package/dist/Tooltip.d.mts +1 -2
- package/dist/Tooltip.d.ts +1 -2
- package/dist/UploadCard.d.mts +1 -2
- package/dist/UploadCard.d.ts +1 -2
- package/dist/WordEditor.d.mts +3 -3
- package/dist/WordEditor.d.ts +3 -3
- package/dist/WorkflowDiagram.d.mts +1 -2
- package/dist/WorkflowDiagram.d.ts +1 -2
- package/dist/{animations-CHrNeawW.d.mts → animations-Di5tQRLw.d.mts} +2 -2
- package/dist/{animations-CHrNeawW.d.ts → animations-Di5tQRLw.d.ts} +2 -2
- package/dist/animations.d.mts +1 -1
- package/dist/animations.d.ts +1 -1
- package/dist/charts.d.mts +2 -1
- package/dist/charts.d.ts +2 -1
- package/dist/charts.js +6 -0
- package/dist/charts.mjs +6 -2
- package/dist/i18n.d.mts +1 -2
- package/dist/i18n.d.ts +1 -2
- package/dist/iconos/WorkflowEdgesSvg.d.mts +1 -2
- package/dist/iconos/WorkflowEdgesSvg.d.ts +1 -2
- package/dist/iconos/index.d.mts +1546 -1547
- package/dist/iconos/index.d.ts +1546 -1547
- package/dist/iconos/regular-icons.js +2 -2
- package/dist/iconos/regular-icons.mjs +2 -2
- package/dist/index.d.mts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +24 -0
- package/dist/index.mjs +163 -148
- package/dist/internal/AutoSize.d.mts +1 -2
- package/dist/internal/AutoSize.d.ts +1 -2
- package/dist/map.css +1 -1
- package/dist/theme/FontSizeController.d.mts +2 -2
- package/dist/theme/FontSizeController.d.ts +2 -2
- package/dist/theme/FontSizeController.js +1 -1
- package/dist/theme/FontSizeController.mjs +1 -1
- package/dist/theme/ThemeController.d.mts +2 -3
- package/dist/theme/ThemeController.d.ts +2 -3
- package/dist/theme/ThemeProvider.d.mts +1 -2
- package/dist/theme/ThemeProvider.d.ts +1 -2
- package/dist/theme/ThemeScript.d.mts +2 -2
- package/dist/theme/ThemeScript.d.ts +2 -2
- package/dist/theme/ThemeToggle.d.mts +2 -2
- package/dist/theme/ThemeToggle.d.ts +2 -2
- package/dist/theme/ThemeToggle.js +4 -4
- package/dist/theme/ThemeToggle.mjs +4 -4
- package/package.json +7 -8
package/dist/Breadcrumb.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type BreadcrumbItem = {
|
|
@@ -15,6 +14,6 @@ type BreadcrumbProps = {
|
|
|
15
14
|
loadingMinDurationMs?: number;
|
|
16
15
|
className?: string;
|
|
17
16
|
};
|
|
18
|
-
declare function Breadcrumb({ items, maxItems, loading, loadingMinDurationMs, className, }: BreadcrumbProps):
|
|
17
|
+
declare function Breadcrumb({ items, maxItems, loading, loadingMinDurationMs, className, }: BreadcrumbProps): React__default.JSX.Element;
|
|
19
18
|
|
|
20
19
|
export { type BreadcrumbItem, type BreadcrumbProps, Breadcrumb as default };
|
package/dist/CalendarPanel.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
type CalendarPanelProps = {
|
|
4
4
|
cursor: Date;
|
|
@@ -8,6 +8,6 @@ type CalendarPanelProps = {
|
|
|
8
8
|
onCursorChange: (d: Date) => void;
|
|
9
9
|
onPick: (d: Date) => void;
|
|
10
10
|
};
|
|
11
|
-
declare function CalendarPanel({ cursor, value, min, max, onCursorChange, onPick }: CalendarPanelProps):
|
|
11
|
+
declare function CalendarPanel({ cursor, value, min, max, onCursorChange, onPick }: CalendarPanelProps): React__default.JSX.Element;
|
|
12
12
|
|
|
13
13
|
export { type CalendarPanelProps, CalendarPanel as default };
|
package/dist/CalendarPanel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
type CalendarPanelProps = {
|
|
4
4
|
cursor: Date;
|
|
@@ -8,6 +8,6 @@ type CalendarPanelProps = {
|
|
|
8
8
|
onCursorChange: (d: Date) => void;
|
|
9
9
|
onPick: (d: Date) => void;
|
|
10
10
|
};
|
|
11
|
-
declare function CalendarPanel({ cursor, value, min, max, onCursorChange, onPick }: CalendarPanelProps):
|
|
11
|
+
declare function CalendarPanel({ cursor, value, min, max, onCursorChange, onPick }: CalendarPanelProps): React__default.JSX.Element;
|
|
12
12
|
|
|
13
13
|
export { type CalendarPanelProps, CalendarPanel as default };
|
package/dist/Carousel.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type CarouselSlide = {
|
|
@@ -48,6 +47,6 @@ type CarouselProps = {
|
|
|
48
47
|
goTo?: (n: number) => string;
|
|
49
48
|
};
|
|
50
49
|
};
|
|
51
|
-
declare function Carousel({ className, slides, initialIndex, autoAdvanceMs, backgroundMotion, showControls, showDots, chrome, showDecor, overlayNavTone, frameClassName, contentClassName, contentAlign, overlayNavBottomPx, heightMode, minHeightPx, renderOverlay, labels, }: CarouselProps):
|
|
50
|
+
declare function Carousel({ className, slides, initialIndex, autoAdvanceMs, backgroundMotion, showControls, showDots, chrome, showDecor, overlayNavTone, frameClassName, contentClassName, contentAlign, overlayNavBottomPx, heightMode, minHeightPx, renderOverlay, labels, }: CarouselProps): React__default.JSX.Element | null;
|
|
52
51
|
|
|
53
52
|
export { type CarouselApi, type CarouselProps, type CarouselSlide, Carousel as default, useCarousel };
|
package/dist/Carousel.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type CarouselSlide = {
|
|
@@ -48,6 +47,6 @@ type CarouselProps = {
|
|
|
48
47
|
goTo?: (n: number) => string;
|
|
49
48
|
};
|
|
50
49
|
};
|
|
51
|
-
declare function Carousel({ className, slides, initialIndex, autoAdvanceMs, backgroundMotion, showControls, showDots, chrome, showDecor, overlayNavTone, frameClassName, contentClassName, contentAlign, overlayNavBottomPx, heightMode, minHeightPx, renderOverlay, labels, }: CarouselProps):
|
|
50
|
+
declare function Carousel({ className, slides, initialIndex, autoAdvanceMs, backgroundMotion, showControls, showDots, chrome, showDecor, overlayNavTone, frameClassName, contentClassName, contentAlign, overlayNavBottomPx, heightMode, minHeightPx, renderOverlay, labels, }: CarouselProps): React__default.JSX.Element | null;
|
|
52
51
|
|
|
53
52
|
export { type CarouselApi, type CarouselProps, type CarouselSlide, Carousel as default, useCarousel };
|
package/dist/ChangeHistory.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type ChangeHistoryStatus = "success" | "failed" | "pending" | "info";
|
|
@@ -87,6 +86,6 @@ type ChangeHistoryProps = {
|
|
|
87
86
|
renderDetails?: (item: ChangeHistoryItem) => React__default.ReactNode;
|
|
88
87
|
labels?: Partial<ChangeHistoryLabels>;
|
|
89
88
|
};
|
|
90
|
-
declare function ChangeHistory({ items, loading, className, pageSize, initialView, view: controlledView, onViewChange, query: controlledQuery, onQueryChange, filters: controlledFilters, onFiltersChange, page: controlledPage, onPageChange, selectedId: controlledSelectedId, onSelectedIdChange, renderDetails, labels: labelsOverride, }: ChangeHistoryProps):
|
|
89
|
+
declare function ChangeHistory({ items, loading, className, pageSize, initialView, view: controlledView, onViewChange, query: controlledQuery, onQueryChange, filters: controlledFilters, onFiltersChange, page: controlledPage, onPageChange, selectedId: controlledSelectedId, onSelectedIdChange, renderDetails, labels: labelsOverride, }: ChangeHistoryProps): React__default.JSX.Element;
|
|
91
90
|
|
|
92
91
|
export { type ChangeHistoryActor, type ChangeHistoryChange, type ChangeHistoryError, type ChangeHistoryFilterState, type ChangeHistoryItem, type ChangeHistoryLabels, type ChangeHistoryProps, type ChangeHistoryStatus, type ChangeHistoryTarget, ChangeHistory as default };
|
package/dist/ChangeHistory.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type ChangeHistoryStatus = "success" | "failed" | "pending" | "info";
|
|
@@ -87,6 +86,6 @@ type ChangeHistoryProps = {
|
|
|
87
86
|
renderDetails?: (item: ChangeHistoryItem) => React__default.ReactNode;
|
|
88
87
|
labels?: Partial<ChangeHistoryLabels>;
|
|
89
88
|
};
|
|
90
|
-
declare function ChangeHistory({ items, loading, className, pageSize, initialView, view: controlledView, onViewChange, query: controlledQuery, onQueryChange, filters: controlledFilters, onFiltersChange, page: controlledPage, onPageChange, selectedId: controlledSelectedId, onSelectedIdChange, renderDetails, labels: labelsOverride, }: ChangeHistoryProps):
|
|
89
|
+
declare function ChangeHistory({ items, loading, className, pageSize, initialView, view: controlledView, onViewChange, query: controlledQuery, onQueryChange, filters: controlledFilters, onFiltersChange, page: controlledPage, onPageChange, selectedId: controlledSelectedId, onSelectedIdChange, renderDetails, labels: labelsOverride, }: ChangeHistoryProps): React__default.JSX.Element;
|
|
91
90
|
|
|
92
91
|
export { type ChangeHistoryActor, type ChangeHistoryChange, type ChangeHistoryError, type ChangeHistoryFilterState, type ChangeHistoryItem, type ChangeHistoryLabels, type ChangeHistoryProps, type ChangeHistoryStatus, type ChangeHistoryTarget, ChangeHistory as default };
|
package/dist/ChartCard.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type Props = {
|
|
@@ -10,6 +9,6 @@ type Props = {
|
|
|
10
9
|
compact?: boolean;
|
|
11
10
|
className?: string;
|
|
12
11
|
};
|
|
13
|
-
declare function ChartCard({ title, subtitle, right, children, footer, compact, className }: Props):
|
|
12
|
+
declare function ChartCard({ title, subtitle, right, children, footer, compact, className }: Props): React__default.JSX.Element;
|
|
14
13
|
|
|
15
14
|
export { ChartCard as default };
|
package/dist/ChartCard.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type Props = {
|
|
@@ -10,6 +9,6 @@ type Props = {
|
|
|
10
9
|
compact?: boolean;
|
|
11
10
|
className?: string;
|
|
12
11
|
};
|
|
13
|
-
declare function ChartCard({ title, subtitle, right, children, footer, compact, className }: Props):
|
|
12
|
+
declare function ChartCard({ title, subtitle, right, children, footer, compact, className }: Props): React__default.JSX.Element;
|
|
14
13
|
|
|
15
14
|
export { ChartCard as default };
|
package/dist/ChatCenter.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
type ChatUser = {
|
|
4
4
|
id: string | number;
|
|
@@ -74,6 +74,6 @@ type ChatCenterProps = {
|
|
|
74
74
|
className?: string;
|
|
75
75
|
labels?: ChatCenterLabels;
|
|
76
76
|
};
|
|
77
|
-
declare function ChatCenter({ me, threads, messages, open: openProp, onOpenChange, defaultThreadId, activeThreadId: activeThreadIdProp, onThreadChange, onSendMessage, presence, typingUsers, onTyping, unreadCount: unreadCountProp, drawerWidthClass, className, labels, }: ChatCenterProps):
|
|
77
|
+
declare function ChatCenter({ me, threads, messages, open: openProp, onOpenChange, defaultThreadId, activeThreadId: activeThreadIdProp, onThreadChange, onSendMessage, presence, typingUsers, onTyping, unreadCount: unreadCountProp, drawerWidthClass, className, labels, }: ChatCenterProps): React__default.JSX.Element;
|
|
78
78
|
|
|
79
79
|
export { type ChatCenterLabels, type ChatCenterProps, type ChatMessage, type ChatPresenceUser, type ChatThread, type ChatUser, ChatCenter as default };
|
package/dist/ChatCenter.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
type ChatUser = {
|
|
4
4
|
id: string | number;
|
|
@@ -74,6 +74,6 @@ type ChatCenterProps = {
|
|
|
74
74
|
className?: string;
|
|
75
75
|
labels?: ChatCenterLabels;
|
|
76
76
|
};
|
|
77
|
-
declare function ChatCenter({ me, threads, messages, open: openProp, onOpenChange, defaultThreadId, activeThreadId: activeThreadIdProp, onThreadChange, onSendMessage, presence, typingUsers, onTyping, unreadCount: unreadCountProp, drawerWidthClass, className, labels, }: ChatCenterProps):
|
|
77
|
+
declare function ChatCenter({ me, threads, messages, open: openProp, onOpenChange, defaultThreadId, activeThreadId: activeThreadIdProp, onThreadChange, onSendMessage, presence, typingUsers, onTyping, unreadCount: unreadCountProp, drawerWidthClass, className, labels, }: ChatCenterProps): React__default.JSX.Element;
|
|
78
78
|
|
|
79
79
|
export { type ChatCenterLabels, type ChatCenterProps, type ChatMessage, type ChatPresenceUser, type ChatThread, type ChatUser, ChatCenter as default };
|
package/dist/ChatbotCenter.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
import { DocEntry } from './KnowledgeBase.mjs';
|
|
4
3
|
|
|
@@ -84,6 +83,6 @@ type ChatbotCenterProps = {
|
|
|
84
83
|
zIndex?: number;
|
|
85
84
|
labels?: ChatbotCenterLabels;
|
|
86
85
|
};
|
|
87
|
-
declare function ChatbotCenter({ assistant, open: openProp, onOpenChange, messages: messagesProp, onMessagesChange, defaultMessages, persistKey, onSend, onFeedback, suggestions, knowledgeBase, drawerWidthClass, className, triggerVariant, unreadCount, zIndex, labels, }: ChatbotCenterProps):
|
|
86
|
+
declare function ChatbotCenter({ assistant, open: openProp, onOpenChange, messages: messagesProp, onMessagesChange, defaultMessages, persistKey, onSend, onFeedback, suggestions, knowledgeBase, drawerWidthClass, className, triggerVariant, unreadCount, zIndex, labels, }: ChatbotCenterProps): React__default.JSX.Element;
|
|
88
87
|
|
|
89
88
|
export { type ChatbotAssistant, type ChatbotCenterLabels, type ChatbotCenterProps, type ChatbotKnowledgeBaseProps, type ChatbotMessage, type ChatbotRole, type ChatbotSendResult, type ChatbotSource, ChatbotCenter as default };
|
package/dist/ChatbotCenter.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
import { DocEntry } from './KnowledgeBase.js';
|
|
4
3
|
|
|
@@ -84,6 +83,6 @@ type ChatbotCenterProps = {
|
|
|
84
83
|
zIndex?: number;
|
|
85
84
|
labels?: ChatbotCenterLabels;
|
|
86
85
|
};
|
|
87
|
-
declare function ChatbotCenter({ assistant, open: openProp, onOpenChange, messages: messagesProp, onMessagesChange, defaultMessages, persistKey, onSend, onFeedback, suggestions, knowledgeBase, drawerWidthClass, className, triggerVariant, unreadCount, zIndex, labels, }: ChatbotCenterProps):
|
|
86
|
+
declare function ChatbotCenter({ assistant, open: openProp, onOpenChange, messages: messagesProp, onMessagesChange, defaultMessages, persistKey, onSend, onFeedback, suggestions, knowledgeBase, drawerWidthClass, className, triggerVariant, unreadCount, zIndex, labels, }: ChatbotCenterProps): React__default.JSX.Element;
|
|
88
87
|
|
|
89
88
|
export { type ChatbotAssistant, type ChatbotCenterLabels, type ChatbotCenterProps, type ChatbotKnowledgeBaseProps, type ChatbotMessage, type ChatbotRole, type ChatbotSendResult, type ChatbotSource, ChatbotCenter as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type PillsOption = string | {
|
|
@@ -24,6 +23,6 @@ type CheckboxPillsGroupProps = {
|
|
|
24
23
|
className?: string;
|
|
25
24
|
color?: "theme" | "rose" | "sky" | "violet" | "emerald" | "indigo" | "amber" | "slate";
|
|
26
25
|
};
|
|
27
|
-
declare function CheckboxPillsGroup({ options, value, onChange, multiple, name, label, emptyText, size, accent, variant, rounded, withIcon, maxSelected, className, color, }: CheckboxPillsGroupProps):
|
|
26
|
+
declare function CheckboxPillsGroup({ options, value, onChange, multiple, name, label, emptyText, size, accent, variant, rounded, withIcon, maxSelected, className, color, }: CheckboxPillsGroupProps): React__default.JSX.Element;
|
|
28
27
|
|
|
29
28
|
export { type CheckboxPillsGroupProps, type PillsOption, CheckboxPillsGroup as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type PillsOption = string | {
|
|
@@ -24,6 +23,6 @@ type CheckboxPillsGroupProps = {
|
|
|
24
23
|
className?: string;
|
|
25
24
|
color?: "theme" | "rose" | "sky" | "violet" | "emerald" | "indigo" | "amber" | "slate";
|
|
26
25
|
};
|
|
27
|
-
declare function CheckboxPillsGroup({ options, value, onChange, multiple, name, label, emptyText, size, accent, variant, rounded, withIcon, maxSelected, className, color, }: CheckboxPillsGroupProps):
|
|
26
|
+
declare function CheckboxPillsGroup({ options, value, onChange, multiple, name, label, emptyText, size, accent, variant, rounded, withIcon, maxSelected, className, color, }: CheckboxPillsGroupProps): React__default.JSX.Element;
|
|
28
27
|
|
|
29
28
|
export { type CheckboxPillsGroupProps, type PillsOption, CheckboxPillsGroup as default };
|
package/dist/ColorPicker.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
type ColorPickerProps = {
|
|
4
4
|
value?: string;
|
|
@@ -7,6 +7,6 @@ type ColorPickerProps = {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
label?: string;
|
|
9
9
|
};
|
|
10
|
-
declare function ColorPicker({ value, onChange, presets, className, label }: ColorPickerProps):
|
|
10
|
+
declare function ColorPicker({ value, onChange, presets, className, label }: ColorPickerProps): React__default.JSX.Element;
|
|
11
11
|
|
|
12
12
|
export { type ColorPickerProps, ColorPicker as default };
|
package/dist/ColorPicker.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
type ColorPickerProps = {
|
|
4
4
|
value?: string;
|
|
@@ -7,6 +7,6 @@ type ColorPickerProps = {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
label?: string;
|
|
9
9
|
};
|
|
10
|
-
declare function ColorPicker({ value, onChange, presets, className, label }: ColorPickerProps):
|
|
10
|
+
declare function ColorPicker({ value, onChange, presets, className, label }: ColorPickerProps): React__default.JSX.Element;
|
|
11
11
|
|
|
12
12
|
export { type ColorPickerProps, ColorPicker as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type ColumnItem<K extends string> = {
|
|
@@ -12,6 +11,6 @@ type ColumnSelectorProps<K extends string> = {
|
|
|
12
11
|
visible: Record<K, boolean>;
|
|
13
12
|
setVisible: (key: K, val: boolean) => void;
|
|
14
13
|
};
|
|
15
|
-
declare function ColumnSelector<K extends string>({ open, onToggleOpen, items, visible, setVisible, }: ColumnSelectorProps<K>):
|
|
14
|
+
declare function ColumnSelector<K extends string>({ open, onToggleOpen, items, visible, setVisible, }: ColumnSelectorProps<K>): React__default.JSX.Element;
|
|
16
15
|
|
|
17
16
|
export { type ColumnItem, ColumnSelector as default };
|
package/dist/ColumnSelector.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type ColumnItem<K extends string> = {
|
|
@@ -12,6 +11,6 @@ type ColumnSelectorProps<K extends string> = {
|
|
|
12
11
|
visible: Record<K, boolean>;
|
|
13
12
|
setVisible: (key: K, val: boolean) => void;
|
|
14
13
|
};
|
|
15
|
-
declare function ColumnSelector<K extends string>({ open, onToggleOpen, items, visible, setVisible, }: ColumnSelectorProps<K>):
|
|
14
|
+
declare function ColumnSelector<K extends string>({ open, onToggleOpen, items, visible, setVisible, }: ColumnSelectorProps<K>): React__default.JSX.Element;
|
|
16
15
|
|
|
17
16
|
export { type ColumnItem, ColumnSelector as default };
|
package/dist/ComboSelect.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type ComboOption = {
|
|
@@ -40,6 +39,6 @@ type ComboSelectProps = {
|
|
|
40
39
|
onQueryChange?: (q: string) => void;
|
|
41
40
|
showAvatar?: boolean;
|
|
42
41
|
};
|
|
43
|
-
declare function ComboSelect({ options, sections, value, onChange, placeholder, disabled, loading, allowClear, searchable, maxItems, className, noResultsText, renderOption, renderSectionHeader, portalTarget, closeOnSelect, keepFocusOnSelect, clearQueryOnSelect, renderTags, interactiveOptions, onQueryChange, showAvatar, }: ComboSelectProps):
|
|
42
|
+
declare function ComboSelect({ options, sections, value, onChange, placeholder, disabled, loading, allowClear, searchable, maxItems, className, noResultsText, renderOption, renderSectionHeader, portalTarget, closeOnSelect, keepFocusOnSelect, clearQueryOnSelect, renderTags, interactiveOptions, onQueryChange, showAvatar, }: ComboSelectProps): React__default.JSX.Element;
|
|
44
43
|
|
|
45
44
|
export { type ComboOption, type ComboSection, type ComboSelectProps, ComboSelect as default };
|
package/dist/ComboSelect.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
type ComboOption = {
|
|
@@ -40,6 +39,6 @@ type ComboSelectProps = {
|
|
|
40
39
|
onQueryChange?: (q: string) => void;
|
|
41
40
|
showAvatar?: boolean;
|
|
42
41
|
};
|
|
43
|
-
declare function ComboSelect({ options, sections, value, onChange, placeholder, disabled, loading, allowClear, searchable, maxItems, className, noResultsText, renderOption, renderSectionHeader, portalTarget, closeOnSelect, keepFocusOnSelect, clearQueryOnSelect, renderTags, interactiveOptions, onQueryChange, showAvatar, }: ComboSelectProps):
|
|
42
|
+
declare function ComboSelect({ options, sections, value, onChange, placeholder, disabled, loading, allowClear, searchable, maxItems, className, noResultsText, renderOption, renderSectionHeader, portalTarget, closeOnSelect, keepFocusOnSelect, clearQueryOnSelect, renderTags, interactiveOptions, onQueryChange, showAvatar, }: ComboSelectProps): React__default.JSX.Element;
|
|
44
43
|
|
|
45
44
|
export { type ComboOption, type ComboSection, type ComboSelectProps, ComboSelect as default };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import DataTable, { DataTableColumn } from './DataTable.mjs';
|
|
3
|
+
import { DataTableCardFooterProps } from './DataTableCardFooter.mjs';
|
|
4
|
+
import { EmptyStateProps } from './EmptyState.mjs';
|
|
5
|
+
import { PageScaffoldProps } from './PageScaffold.mjs';
|
|
6
|
+
import { BreadcrumbItem } from './Breadcrumb.mjs';
|
|
7
|
+
import './Badge.mjs';
|
|
8
|
+
import './Button.mjs';
|
|
9
|
+
import './FiltersMultiSelect.mjs';
|
|
10
|
+
import './CheckboxPillsGroup.mjs';
|
|
11
|
+
|
|
12
|
+
type DataPageKpiTickerItem = {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
value: React__default.ReactNode;
|
|
16
|
+
helper?: React__default.ReactNode;
|
|
17
|
+
symbol?: string;
|
|
18
|
+
numericValue?: number | null;
|
|
19
|
+
accent?: string;
|
|
20
|
+
change?: number | null;
|
|
21
|
+
changePercent?: number | null;
|
|
22
|
+
sparkline?: number[];
|
|
23
|
+
};
|
|
24
|
+
type DataPagePaginationProps = Pick<DataTableCardFooterProps, "page" | "totalPages" | "pageSize" | "pageSizeOptions" | "onPageChange" | "onPageSizeChange">;
|
|
25
|
+
type DataTablePassthroughProps<Row, K extends string> = Omit<React__default.ComponentProps<typeof DataTable<Row, K>>, "rows" | "columns" | "getRowId" | "empty">;
|
|
26
|
+
type DataPageLayoutProps<Row, K extends string> = Omit<PageScaffoldProps, "breadcrumb" | "children" | "columns" | "empty" | "emptyState" | "kpis" | "top"> & {
|
|
27
|
+
title?: string;
|
|
28
|
+
subtitle?: string;
|
|
29
|
+
breadcrumb?: PageScaffoldProps["breadcrumb"];
|
|
30
|
+
breadcrumbItems?: BreadcrumbItem[];
|
|
31
|
+
top?: React__default.ReactNode;
|
|
32
|
+
tickerItems?: DataPageKpiTickerItem[];
|
|
33
|
+
tickerClassName?: string;
|
|
34
|
+
beforeTable?: React__default.ReactNode;
|
|
35
|
+
afterTable?: React__default.ReactNode;
|
|
36
|
+
overlays?: React__default.ReactNode;
|
|
37
|
+
cardClassName?: string;
|
|
38
|
+
cardHeaderClassName?: string;
|
|
39
|
+
bulkBar?: React__default.ReactNode;
|
|
40
|
+
controlsLeft?: React__default.ReactNode;
|
|
41
|
+
controlsRight?: React__default.ReactNode;
|
|
42
|
+
toolbarColumns?: React__default.ReactNode;
|
|
43
|
+
rows?: Row[];
|
|
44
|
+
columns?: Array<DataTableColumn<Row, K, any>>;
|
|
45
|
+
getRowId?: (row: Row) => string;
|
|
46
|
+
tableProps?: DataTablePassthroughProps<Row, K>;
|
|
47
|
+
table?: React__default.ReactNode;
|
|
48
|
+
tableContainerClassName?: string;
|
|
49
|
+
empty?: boolean;
|
|
50
|
+
emptyState?: React__default.ReactElement | EmptyStateProps | string | number;
|
|
51
|
+
emptyAction?: React__default.ReactNode;
|
|
52
|
+
footer?: React__default.ReactNode;
|
|
53
|
+
pagination?: DataPagePaginationProps;
|
|
54
|
+
error?: React__default.ReactNode;
|
|
55
|
+
errorClassName?: string;
|
|
56
|
+
children?: React__default.ReactNode;
|
|
57
|
+
};
|
|
58
|
+
declare function DataPageKpiTickerRow({ items, className, }: {
|
|
59
|
+
items: DataPageKpiTickerItem[];
|
|
60
|
+
className?: string;
|
|
61
|
+
}): React__default.JSX.Element;
|
|
62
|
+
declare function DataPageLayout<Row, K extends string>({ title: _title, subtitle: _subtitle, breadcrumb, breadcrumbItems, top, tickerItems, tickerClassName, beforeTable, afterTable, overlays, cardClassName, cardHeaderClassName, bulkBar, controlsLeft, controlsRight, toolbarColumns, rows, columns, getRowId, tableProps, table, tableContainerClassName, empty, emptyState, emptyAction, footer, pagination, error, errorClassName, children, ...pageProps }: DataPageLayoutProps<Row, K>): React__default.JSX.Element;
|
|
63
|
+
|
|
64
|
+
export { type DataPageKpiTickerItem, DataPageKpiTickerRow, type DataPageLayoutProps, type DataPagePaginationProps, DataPageLayout as default };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import DataTable, { DataTableColumn } from './DataTable.js';
|
|
3
|
+
import { DataTableCardFooterProps } from './DataTableCardFooter.js';
|
|
4
|
+
import { EmptyStateProps } from './EmptyState.js';
|
|
5
|
+
import { PageScaffoldProps } from './PageScaffold.js';
|
|
6
|
+
import { BreadcrumbItem } from './Breadcrumb.js';
|
|
7
|
+
import './Badge.js';
|
|
8
|
+
import './Button.js';
|
|
9
|
+
import './FiltersMultiSelect.js';
|
|
10
|
+
import './CheckboxPillsGroup.js';
|
|
11
|
+
|
|
12
|
+
type DataPageKpiTickerItem = {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
value: React__default.ReactNode;
|
|
16
|
+
helper?: React__default.ReactNode;
|
|
17
|
+
symbol?: string;
|
|
18
|
+
numericValue?: number | null;
|
|
19
|
+
accent?: string;
|
|
20
|
+
change?: number | null;
|
|
21
|
+
changePercent?: number | null;
|
|
22
|
+
sparkline?: number[];
|
|
23
|
+
};
|
|
24
|
+
type DataPagePaginationProps = Pick<DataTableCardFooterProps, "page" | "totalPages" | "pageSize" | "pageSizeOptions" | "onPageChange" | "onPageSizeChange">;
|
|
25
|
+
type DataTablePassthroughProps<Row, K extends string> = Omit<React__default.ComponentProps<typeof DataTable<Row, K>>, "rows" | "columns" | "getRowId" | "empty">;
|
|
26
|
+
type DataPageLayoutProps<Row, K extends string> = Omit<PageScaffoldProps, "breadcrumb" | "children" | "columns" | "empty" | "emptyState" | "kpis" | "top"> & {
|
|
27
|
+
title?: string;
|
|
28
|
+
subtitle?: string;
|
|
29
|
+
breadcrumb?: PageScaffoldProps["breadcrumb"];
|
|
30
|
+
breadcrumbItems?: BreadcrumbItem[];
|
|
31
|
+
top?: React__default.ReactNode;
|
|
32
|
+
tickerItems?: DataPageKpiTickerItem[];
|
|
33
|
+
tickerClassName?: string;
|
|
34
|
+
beforeTable?: React__default.ReactNode;
|
|
35
|
+
afterTable?: React__default.ReactNode;
|
|
36
|
+
overlays?: React__default.ReactNode;
|
|
37
|
+
cardClassName?: string;
|
|
38
|
+
cardHeaderClassName?: string;
|
|
39
|
+
bulkBar?: React__default.ReactNode;
|
|
40
|
+
controlsLeft?: React__default.ReactNode;
|
|
41
|
+
controlsRight?: React__default.ReactNode;
|
|
42
|
+
toolbarColumns?: React__default.ReactNode;
|
|
43
|
+
rows?: Row[];
|
|
44
|
+
columns?: Array<DataTableColumn<Row, K, any>>;
|
|
45
|
+
getRowId?: (row: Row) => string;
|
|
46
|
+
tableProps?: DataTablePassthroughProps<Row, K>;
|
|
47
|
+
table?: React__default.ReactNode;
|
|
48
|
+
tableContainerClassName?: string;
|
|
49
|
+
empty?: boolean;
|
|
50
|
+
emptyState?: React__default.ReactElement | EmptyStateProps | string | number;
|
|
51
|
+
emptyAction?: React__default.ReactNode;
|
|
52
|
+
footer?: React__default.ReactNode;
|
|
53
|
+
pagination?: DataPagePaginationProps;
|
|
54
|
+
error?: React__default.ReactNode;
|
|
55
|
+
errorClassName?: string;
|
|
56
|
+
children?: React__default.ReactNode;
|
|
57
|
+
};
|
|
58
|
+
declare function DataPageKpiTickerRow({ items, className, }: {
|
|
59
|
+
items: DataPageKpiTickerItem[];
|
|
60
|
+
className?: string;
|
|
61
|
+
}): React__default.JSX.Element;
|
|
62
|
+
declare function DataPageLayout<Row, K extends string>({ title: _title, subtitle: _subtitle, breadcrumb, breadcrumbItems, top, tickerItems, tickerClassName, beforeTable, afterTable, overlays, cardClassName, cardHeaderClassName, bulkBar, controlsLeft, controlsRight, toolbarColumns, rows, columns, getRowId, tableProps, table, tableContainerClassName, empty, emptyState, emptyAction, footer, pagination, error, errorClassName, children, ...pageProps }: DataPageLayoutProps<Row, K>): React__default.JSX.Element;
|
|
63
|
+
|
|
64
|
+
export { type DataPageKpiTickerItem, DataPageKpiTickerRow, type DataPageLayoutProps, type DataPagePaginationProps, DataPageLayout as default };
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var DataPageLayout_exports = {};
|
|
31
|
+
__export(DataPageLayout_exports, {
|
|
32
|
+
DataPageKpiTickerRow: () => DataPageKpiTickerRow,
|
|
33
|
+
default: () => DataPageLayout
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(DataPageLayout_exports);
|
|
36
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
38
|
+
var import_AssetTickerRow = __toESM(require("./AssetTickerRow"));
|
|
39
|
+
var import_DataTable = __toESM(require("./DataTable"));
|
|
40
|
+
var import_DataTableCard = __toESM(require("./DataTableCard"));
|
|
41
|
+
var import_DataTableCardFooter = __toESM(require("./DataTableCardFooter"));
|
|
42
|
+
var import_EmptyState = __toESM(require("./EmptyState"));
|
|
43
|
+
var import_PageScaffold = __toESM(require("./PageScaffold"));
|
|
44
|
+
function cx(...values) {
|
|
45
|
+
return values.filter(Boolean).join(" ");
|
|
46
|
+
}
|
|
47
|
+
const accents = ["var(--primary)", "#0ea5e9", "#22c55e"];
|
|
48
|
+
function toNumericValue(value) {
|
|
49
|
+
if (typeof value === "number" && Number.isFinite(value)) return value;
|
|
50
|
+
if (typeof value === "string") {
|
|
51
|
+
const parsed = Number(value.replace(/[^\d.-]/g, ""));
|
|
52
|
+
return Number.isFinite(parsed) ? parsed : null;
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
function getSymbol(label, fallback) {
|
|
57
|
+
const words = label.normalize("NFD").replace(/[\u0300-\u036f]/g, "").split(/\s+/).filter(Boolean);
|
|
58
|
+
const initials = words.map((word) => word[0]).join("").slice(0, 3);
|
|
59
|
+
return (initials || fallback).toUpperCase();
|
|
60
|
+
}
|
|
61
|
+
function DataPageKpiTickerRow({
|
|
62
|
+
items,
|
|
63
|
+
className
|
|
64
|
+
}) {
|
|
65
|
+
const tickerItems = items.slice(0, 3).map((item, index) => {
|
|
66
|
+
var _a, _b, _c, _d, _e;
|
|
67
|
+
const price = (_a = item.numericValue) != null ? _a : toNumericValue(item.value);
|
|
68
|
+
const sparkline = (_b = item.sparkline) != null ? _b : [
|
|
69
|
+
Math.max(0, (price != null ? price : 0) * 0.72),
|
|
70
|
+
Math.max(0, (price != null ? price : 0) * 0.88),
|
|
71
|
+
Math.max(0, price != null ? price : 0)
|
|
72
|
+
];
|
|
73
|
+
return {
|
|
74
|
+
id: item.id,
|
|
75
|
+
name: item.label,
|
|
76
|
+
symbol: (_c = item.symbol) != null ? _c : getSymbol(item.label, String(index + 1)),
|
|
77
|
+
price,
|
|
78
|
+
change: item.change,
|
|
79
|
+
changePercent: item.changePercent,
|
|
80
|
+
sparkline,
|
|
81
|
+
accent: (_e = (_d = item.accent) != null ? _d : accents[index]) != null ? _e : "var(--primary)",
|
|
82
|
+
meta: item.helper,
|
|
83
|
+
displayValue: item.value
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
87
|
+
import_AssetTickerRow.default,
|
|
88
|
+
{
|
|
89
|
+
items: tickerItems,
|
|
90
|
+
className,
|
|
91
|
+
priceFormatter: (_, item) => item.displayValue
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
function renderEmptyState(emptyState) {
|
|
96
|
+
if (!emptyState) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_EmptyState.default, {});
|
|
97
|
+
if (import_react.default.isValidElement(emptyState)) return emptyState;
|
|
98
|
+
if (typeof emptyState === "string" || typeof emptyState === "number") {
|
|
99
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_EmptyState.default, { title: emptyState });
|
|
100
|
+
}
|
|
101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_EmptyState.default, { ...emptyState });
|
|
102
|
+
}
|
|
103
|
+
function DataPageLayout({
|
|
104
|
+
title: _title,
|
|
105
|
+
subtitle: _subtitle,
|
|
106
|
+
breadcrumb,
|
|
107
|
+
breadcrumbItems,
|
|
108
|
+
top,
|
|
109
|
+
tickerItems,
|
|
110
|
+
tickerClassName,
|
|
111
|
+
beforeTable,
|
|
112
|
+
afterTable,
|
|
113
|
+
overlays,
|
|
114
|
+
cardClassName,
|
|
115
|
+
cardHeaderClassName,
|
|
116
|
+
bulkBar,
|
|
117
|
+
controlsLeft,
|
|
118
|
+
controlsRight,
|
|
119
|
+
toolbarColumns,
|
|
120
|
+
rows,
|
|
121
|
+
columns,
|
|
122
|
+
getRowId,
|
|
123
|
+
tableProps,
|
|
124
|
+
table,
|
|
125
|
+
tableContainerClassName,
|
|
126
|
+
empty,
|
|
127
|
+
emptyState,
|
|
128
|
+
emptyAction,
|
|
129
|
+
footer,
|
|
130
|
+
pagination,
|
|
131
|
+
error,
|
|
132
|
+
errorClassName,
|
|
133
|
+
children,
|
|
134
|
+
...pageProps
|
|
135
|
+
}) {
|
|
136
|
+
const resolvedBreadcrumb = breadcrumb != null ? breadcrumb : (breadcrumbItems == null ? void 0 : breadcrumbItems.length) ? { items: breadcrumbItems } : void 0;
|
|
137
|
+
const hasTicker = Boolean(tickerItems == null ? void 0 : tickerItems.length);
|
|
138
|
+
const tableRows = rows != null ? rows : [];
|
|
139
|
+
const resolvedEmpty = empty != null ? empty : !table && tableRows.length === 0;
|
|
140
|
+
const tableNode = table != null ? table : columns && getRowId ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
141
|
+
import_DataTable.default,
|
|
142
|
+
{
|
|
143
|
+
rows: tableRows,
|
|
144
|
+
columns,
|
|
145
|
+
getRowId,
|
|
146
|
+
...tableProps != null ? tableProps : {}
|
|
147
|
+
}
|
|
148
|
+
) : null;
|
|
149
|
+
const footerNode = footer != null ? footer : pagination ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
150
|
+
import_DataTableCardFooter.default,
|
|
151
|
+
{
|
|
152
|
+
page: pagination.page,
|
|
153
|
+
totalPages: pagination.totalPages,
|
|
154
|
+
pageSize: pagination.pageSize,
|
|
155
|
+
pageSizeOptions: pagination.pageSizeOptions,
|
|
156
|
+
onPageChange: pagination.onPageChange,
|
|
157
|
+
onPageSizeChange: pagination.onPageSizeChange
|
|
158
|
+
}
|
|
159
|
+
) : null;
|
|
160
|
+
const topNode = top || hasTicker ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
161
|
+
top,
|
|
162
|
+
hasTicker ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataPageKpiTickerRow, { items: tickerItems != null ? tickerItems : [], className: tickerClassName }) : null
|
|
163
|
+
] }) : void 0;
|
|
164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_PageScaffold.default, { ...pageProps, breadcrumb: resolvedBreadcrumb, top: topNode, columns: toolbarColumns, children: [
|
|
165
|
+
beforeTable,
|
|
166
|
+
children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
167
|
+
import_DataTableCard.default,
|
|
168
|
+
{
|
|
169
|
+
className: cardClassName,
|
|
170
|
+
headerClassName: cardHeaderClassName,
|
|
171
|
+
bulkBar,
|
|
172
|
+
controlsLeft,
|
|
173
|
+
controlsRight,
|
|
174
|
+
children: resolvedEmpty ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "p-8", children: [
|
|
175
|
+
renderEmptyState(emptyState),
|
|
176
|
+
emptyAction ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mt-4 flex justify-center", children: emptyAction }) : null
|
|
177
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
178
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cx("overflow-auto", tableContainerClassName), children: tableNode }),
|
|
179
|
+
footerNode
|
|
180
|
+
] })
|
|
181
|
+
}
|
|
182
|
+
),
|
|
183
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cx("mt-4 rounded-xl border border-[var(--border)] px-4 py-3 text-sm text-[var(--muted)]", errorClassName), children: error }) : null,
|
|
184
|
+
afterTable,
|
|
185
|
+
overlays
|
|
186
|
+
] });
|
|
187
|
+
}
|
|
188
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
189
|
+
0 && (module.exports = {
|
|
190
|
+
DataPageKpiTickerRow
|
|
191
|
+
});
|