@digital-ai/dot-components 3.10.1 → 3.11.1
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/index.esm.js +1208 -782
- package/package.json +1 -1
- package/src/lib/components/analytics/dashboard-actions/DashboardActions.d.ts +2 -1
- package/src/lib/components/analytics/dashboard-actions/DashboardOptionsMenu.d.ts +2 -1
- package/src/lib/components/analytics/dashboard-details/DashboardDetails.d.ts +19 -0
- package/src/lib/components/analytics/dashboard-details/DashboardDetails.styles.d.ts +2 -0
- package/src/lib/components/analytics/dashboard-details/DashboardStatusPill.d.ts +5 -0
- package/src/lib/components/analytics/metadata-api/MetadataApiProvider.d.ts +2 -1
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardView.d.ts +12 -0
- package/src/lib/components/chip/ChipList.d.ts +17 -0
- package/src/lib/components/chip/ChipList.styles.d.ts +2 -0
- package/src/lib/components/index.d.ts +4 -1
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ interface DashboardActionsCommonProps {
|
|
|
6
6
|
dashboard: DashboardView;
|
|
7
7
|
isEdit?: boolean;
|
|
8
8
|
onClose?: (dashboard: DashboardView) => void;
|
|
9
|
+
onDetails?: (dashboard: DashboardView) => void;
|
|
9
10
|
onDuplicated?: (dashboard: DashboardView, isDone?: boolean) => void;
|
|
10
11
|
onFavorite?: (id: string, value: boolean) => void;
|
|
11
12
|
onStatusChanged?: (dashboard: DashboardView) => void;
|
|
@@ -15,5 +16,5 @@ interface DashboardActionsProps extends DashboardActionsCommonProps {
|
|
|
15
16
|
applications: ApplicationModel[];
|
|
16
17
|
categories: AllCategories;
|
|
17
18
|
}
|
|
18
|
-
declare function DotDashboardActions({ applications, categories, dashboard, isEdit, canEdit, onClose, onFavorite, onStatusChanged, onDuplicated, onViewMode, }: DashboardActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function DotDashboardActions({ applications, categories, dashboard, isEdit, canEdit, onClose, onFavorite, onStatusChanged, onDuplicated, onViewMode, onDetails, }: DashboardActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export { DashboardActionsCommonProps, DotDashboardActions };
|
|
@@ -2,9 +2,10 @@ import { DashboardView } from '../metadata-api/openapi';
|
|
|
2
2
|
interface DashboardOptionsMenuProps {
|
|
3
3
|
dashboard: DashboardView;
|
|
4
4
|
isEdit?: boolean;
|
|
5
|
+
onDetails?: (dashboard: DashboardView) => void;
|
|
5
6
|
onStartDuplicate?: (dashboard: DashboardView) => void;
|
|
6
7
|
onStartStatusChange?: (dashboard: DashboardView, status: DashboardView.lifecycle_state) => void;
|
|
7
8
|
onViewMode?: (dashboard: DashboardView, mode: string) => void;
|
|
8
9
|
}
|
|
9
|
-
export declare function DotDashboardOptionsMenu({ dashboard, isEdit, onStartDuplicate, onStartStatusChange, onViewMode, }: DashboardOptionsMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function DotDashboardOptionsMenu({ dashboard, isEdit, onStartDuplicate, onStartStatusChange, onViewMode, onDetails, }: DashboardOptionsMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { CommonProps } from '../../CommonProps';
|
|
3
|
+
import { DashboardView } from '../metadata-api/openapi';
|
|
4
|
+
interface CommonDashboardDetailsProps extends CommonProps {
|
|
5
|
+
onClose?: (event: MouseEvent | KeyboardEvent) => void;
|
|
6
|
+
onFavorite?: (dashboardId: string, favoriteValue: boolean) => void;
|
|
7
|
+
yOffset?: number;
|
|
8
|
+
zIndex?: number;
|
|
9
|
+
}
|
|
10
|
+
interface DashboardDetailsViewProps extends CommonDashboardDetailsProps {
|
|
11
|
+
dashboard: DashboardView;
|
|
12
|
+
open: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const DotDashboardDetailsView: ({ className, dashboard, onClose, onFavorite, open, yOffset, zIndex, }: DashboardDetailsViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface DashboardDetailsProps extends CommonDashboardDetailsProps {
|
|
16
|
+
dashboard?: DashboardView;
|
|
17
|
+
}
|
|
18
|
+
export declare const DotDashboardDetails: ({ dashboard, onClose, onFavorite, ...commonProps }: DashboardDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const rootClassName = "dot-dashboard-details";
|
|
2
|
+
export declare const StyledDashboardDetails: import("styled-components").StyledComponent<({ anchor, ariaLabel, ariaRole, className, children, "data-pendoid": dataPendoId, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../../drawer/Drawer").DrawerProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
@@ -9,15 +9,16 @@ export interface MetadataApiProviderProps {
|
|
|
9
9
|
interface DotMetadataApiContextProps {
|
|
10
10
|
categories: AllCategoriesResponse;
|
|
11
11
|
categoriesLoading: boolean;
|
|
12
|
-
dashboards: DashboardView[];
|
|
13
12
|
dashboardsError: ApiError;
|
|
14
13
|
dashboardsLoading: boolean;
|
|
15
14
|
duplicateDashboard: (dashboardId: string, dashboard: DashboardCopyBody) => Promise<DashboardView>;
|
|
16
15
|
favoriteDashboard: (dashboardId: string, favoriteValue: boolean) => Promise<DashboardView>;
|
|
17
16
|
getCategories: () => Promise<AllCategoriesResponse>;
|
|
18
17
|
getDashboardHelpContent: (helpContentId: string) => Promise<string>;
|
|
18
|
+
openedDashboardDetails: DashboardView;
|
|
19
19
|
platformConsoleUrl: string;
|
|
20
20
|
searchDashboards: (search: DashboardFilters) => Promise<DashboardView[]>;
|
|
21
|
+
setOpenedDashboardDetails: (dashboard: DashboardView) => void;
|
|
21
22
|
setOverrideAccountId: (accountId: string) => void;
|
|
22
23
|
setToken: (token: string) => void;
|
|
23
24
|
updateDashboard: (dashboardId: string, dashboard: DashboardPatchBody, isSync?: boolean) => Promise<DashboardView>;
|
|
@@ -87,6 +87,18 @@ export type DashboardView = {
|
|
|
87
87
|
* Whether the dashboard is marked as a favorite by this user.
|
|
88
88
|
*/
|
|
89
89
|
favorite: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* The date and time that the dashboard was last modified.
|
|
92
|
+
*/
|
|
93
|
+
updated_dt?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* The full name of the dashboard modifier.
|
|
96
|
+
*/
|
|
97
|
+
updated_by_fullname?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* The platform id of the dashboard modifier.
|
|
100
|
+
*/
|
|
101
|
+
updated_by_id?: string | null;
|
|
90
102
|
};
|
|
91
103
|
export declare namespace DashboardView {
|
|
92
104
|
/**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface Styles {
|
|
2
|
+
[prop: string]: string;
|
|
3
|
+
}
|
|
4
|
+
interface ChipItem {
|
|
5
|
+
readonly key: string;
|
|
6
|
+
readonly label: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const formatListForTooltip: (words: string[]) => import("react/jsx-runtime").JSX.Element | "";
|
|
9
|
+
interface ChipListProps {
|
|
10
|
+
readonly dataTestId?: string;
|
|
11
|
+
readonly items: ChipItem[];
|
|
12
|
+
readonly maxChars: number;
|
|
13
|
+
readonly size?: 'small' | 'medium';
|
|
14
|
+
readonly style?: Styles;
|
|
15
|
+
}
|
|
16
|
+
declare function DotChipList({ dataTestId, items, maxChars, size, style, }: ChipListProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export { DotChipList };
|
|
@@ -65,16 +65,19 @@ export { DotCardHeader } from './card/CardHeader';
|
|
|
65
65
|
export { DotCheckbox } from './checkbox/Checkbox';
|
|
66
66
|
export { DotCheckboxGroup } from './checkbox/CheckboxGroup';
|
|
67
67
|
export { DotChip } from './chip/Chip';
|
|
68
|
+
export { DotChipList } from './chip/ChipList';
|
|
68
69
|
export { DotConfirmationDialog } from './confirmation-dialog/ConfirmationDialog';
|
|
69
70
|
export { DotCoreApiProvider, useDotCoreApiContext, } from './core-api/CoreApiProvider';
|
|
70
71
|
export { Cell, CssCell } from './css-grid/CssCell';
|
|
71
72
|
export { CssGrid } from './css-grid/CssGrid';
|
|
72
73
|
export { CssGridDebug } from './css-grid/CssGridDebug';
|
|
74
|
+
export { DotDashboardDetails } from './analytics/dashboard-details/DashboardDetails';
|
|
73
75
|
export { DashboardAppTypeOptions, DashboardData, DotDashboardDialog, } from './analytics/dashboard-dialog/DashboardDialog';
|
|
74
76
|
export { DotDashboardActions } from './analytics/dashboard-actions/DashboardActions';
|
|
75
77
|
export { DotDashboardHeader } from './analytics/dashboard-header/DashboardHeader';
|
|
76
78
|
export { DotDashboardOptionsMenu } from './analytics/dashboard-actions/DashboardOptionsMenu';
|
|
77
79
|
export { DotDashboardPublishConfirm } from './analytics/dashboard-actions/DashboardPublishConfirm';
|
|
80
|
+
export { DotDashboardStatusPill } from './analytics/dashboard-details/DashboardStatusPill';
|
|
78
81
|
export { DotDialog } from './dialog/Dialog';
|
|
79
82
|
export { DotDrawer } from './drawer/Drawer';
|
|
80
83
|
export { DotEmptyState } from './empty-state/EmptyState';
|
|
@@ -119,4 +122,4 @@ export { DotClickAwayListener } from './click-away-listener';
|
|
|
119
122
|
export { DotCarousel } from './carousel/Carousel';
|
|
120
123
|
export { DotStickyWithBorder } from './sticky-with-border';
|
|
121
124
|
export { CreateUUID } from './createUUID';
|
|
122
|
-
export { BoardStatusProvider, ColumnStatusProvider, DotBoard, DotBoardColumn, DotBoardColumnActionBar, DotBoardColumnCollapse, DotBoardColumnExpand, DotBoardColumnHeader, DotBoardColumnItems, DotBoardColumnSummary, useBoardStatus, useColumnStatus, } from
|
|
125
|
+
export { BoardStatusProvider, ColumnStatusProvider, DotBoard, DotBoardColumn, DotBoardColumnActionBar, DotBoardColumnCollapse, DotBoardColumnExpand, DotBoardColumnHeader, DotBoardColumnItems, DotBoardColumnSummary, useBoardStatus, useColumnStatus, } from './board';
|