@digital-ai/dot-components 3.11.2 → 3.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "3.11.2",
3
+ "version": "3.13.0",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -1,12 +1,10 @@
1
1
  import { ApplicationModel } from '../../core-api/openapi';
2
- import { AllCategories } from '../metadata-api/MetadataApiProvider';
3
2
  import { DashboardView } from '../metadata-api/openapi/';
4
3
  interface DashboardActionsCommonProps {
5
4
  canEdit?: boolean;
6
5
  dashboard: DashboardView;
7
6
  isEdit?: boolean;
8
7
  onClose?: (dashboard: DashboardView) => void;
9
- onDetails?: (dashboard: DashboardView) => void;
10
8
  onDuplicated?: (dashboard: DashboardView, isDone?: boolean) => void;
11
9
  onFavorite?: (id: string, value: boolean) => void;
12
10
  onStatusChanged?: (dashboard: DashboardView) => void;
@@ -14,7 +12,6 @@ interface DashboardActionsCommonProps {
14
12
  }
15
13
  interface DashboardActionsProps extends DashboardActionsCommonProps {
16
14
  applications: ApplicationModel[];
17
- categories: AllCategories;
18
15
  }
19
- declare function DotDashboardActions({ applications, categories, dashboard, isEdit, canEdit, onClose, onFavorite, onStatusChanged, onDuplicated, onViewMode, onDetails, }: DashboardActionsProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function DotDashboardActions({ applications, dashboard, isEdit, canEdit, onClose, onFavorite, onStatusChanged, onDuplicated, onViewMode, }: DashboardActionsProps): import("react/jsx-runtime").JSX.Element;
20
17
  export { DashboardActionsCommonProps, DotDashboardActions };
@@ -1,10 +1,8 @@
1
1
  import { ApplicationModel } from '../../core-api/openapi';
2
- import { AllCategoriesResponse, DashboardView } from '../metadata-api/openapi';
2
+ import { DashboardView } from '../metadata-api/openapi';
3
3
  interface DashboardPublishConfirmProps {
4
4
  /** List of applications the dashboard can be published to **/
5
5
  applicationList: ApplicationModel[];
6
- /** Categories for dashboard publishing **/
7
- categories: AllCategoriesResponse;
8
6
  /** Dashboard to confirm publishing for **/
9
7
  dashboardToPublish: DashboardView;
10
8
  /** Dashboard to confirm unpublishing for **/
@@ -14,5 +12,5 @@ interface DashboardPublishConfirmProps {
14
12
  /** When a dashboard is updated, this function is called with the updated dashboard **/
15
13
  onStatusChanged: (updatedDashboard: DashboardView) => void;
16
14
  }
17
- export declare function DotDashboardPublishConfirm({ applicationList, categories, dashboardToPublish, dashboardToUnpublish, onClose, onStatusChanged, }: Readonly<DashboardPublishConfirmProps>): import("react/jsx-runtime").JSX.Element;
15
+ export declare function DotDashboardPublishConfirm({ applicationList, dashboardToPublish, dashboardToUnpublish, onClose, onStatusChanged, }: Readonly<DashboardPublishConfirmProps>): import("react/jsx-runtime").JSX.Element;
18
16
  export {};
@@ -2,5 +2,5 @@ export declare const dashboardCategoriesContainerClassName = "dashboard-categori
2
2
  export declare const InlineMessage: import("styled-components").StyledComponent<({ ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: import("../../typography/Typography").TypographyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
3
3
  export declare const StyledPublishConfirmDiv: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export declare const StyledAppSelectDiv: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const StyledAppSelectDotAutoComplete: import("styled-components").StyledComponent<(<T extends import("../..").AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: import("../../auto-complete/AutoComplete").AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element), any, {}, never>;
5
+ export declare const StyledAppSelectDotAutoComplete: import("styled-components").StyledComponent<(<T extends import("../..").AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, preserveGroupOrder, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: import("../../auto-complete/AutoComplete").AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element), any, {}, never>;
6
6
  export declare const StyledAppSelectAutoCompleteOption: import("styled-components").StyledComponent<"li", any, {}, never>;
@@ -0,0 +1,5 @@
1
+ import { AutoCompleteProps } from '../../auto-complete';
2
+ export interface DashboardCategoriesAutoCompleteProps extends AutoCompleteProps {
3
+ onNewCategory: (newCategory: string) => void;
4
+ }
5
+ export declare function DashboardCategoriesAutoComplete({ freesolo, actionItem, onInputChange, onNewCategory, ...args }: Readonly<DashboardCategoriesAutoCompleteProps>): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { ApiError, AllCategoriesResponse, DashboardView, DashboardCopyBody, DashboardPatchBody } from './openapi';
2
+ import { ApiError, AllCategoriesResponse, Author, DashboardView, DashboardCopyBody, DashboardPatchBody } from './openapi';
3
3
  export interface MetadataApiProviderProps {
4
4
  accountOverrideId?: string;
5
5
  apiUrl: string;
@@ -7,14 +7,14 @@ export interface MetadataApiProviderProps {
7
7
  token?: string;
8
8
  }
9
9
  interface DotMetadataApiContextProps {
10
- categories: AllCategoriesResponse;
11
- categoriesLoading: boolean;
12
10
  dashboardsError: ApiError;
13
11
  dashboardsLoading: boolean;
14
12
  duplicateDashboard: (dashboardId: string, dashboard: DashboardCopyBody) => Promise<DashboardView>;
15
13
  favoriteDashboard: (dashboardId: string, favoriteValue: boolean) => Promise<DashboardView>;
16
- getCategories: () => Promise<AllCategoriesResponse>;
14
+ getAuthors: (appType: string, publishedOnly?: boolean) => Promise<Author[]>;
15
+ getCategories: (appType: string, publishedOnly?: boolean) => Promise<string[]>;
17
16
  getDashboardHelpContent: (helpContentId: string) => Promise<string>;
17
+ metadataLoading: boolean;
18
18
  openedDashboardDetails: DashboardView;
19
19
  platformConsoleUrl: string;
20
20
  searchDashboards: (search: DashboardFilters) => Promise<DashboardView[]>;
@@ -88,17 +88,17 @@ export type DashboardView = {
88
88
  */
89
89
  favorite: boolean;
90
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.
91
+ * The full name of the dashboard updated_by.
96
92
  */
97
93
  updated_by_fullname?: string | null;
98
94
  /**
99
- * The platform id of the dashboard modifier.
95
+ * The platform id of the dashboard updated_by.
100
96
  */
101
97
  updated_by_id?: string | null;
98
+ /**
99
+ * Timestamp of the latest modification
100
+ */
101
+ updated_dt?: string | null;
102
102
  };
103
103
  export declare namespace DashboardView {
104
104
  /**
@@ -2,6 +2,6 @@ export type Origin = {
2
2
  name: string;
3
3
  description: string;
4
4
  created_dt?: string | null;
5
+ is_platform_origin?: boolean;
5
6
  id?: string | null;
6
- origin_family?: Array<string> | null;
7
7
  };
@@ -15,8 +15,8 @@ export declare class DashboardsService {
15
15
  * @param sort Sort ordering to apply to the query.
16
16
  * @param filter List of filters (each filter is a separate query param, and they are OR'ed).
17
17
  *
18
- * * **Filterable field names**: author_fullname, author_id, bi_type, categories, created_dt, description, external_embedding_id, external_id, id, is_ootb_dashboard, lifecycle_state, name, target_apps, updated_dt
19
- * * **Searchable field names**: author_fullname, categories, description, name
18
+ * * **Filterable field names**: author_fullname, author_id, bi_type, categories, created_dt, description, external_embedding_id, external_id, id, is_ootb_dashboard, lifecycle_state, name, target_apps, updated_by_fullname, updated_by_id, updated_dt
19
+ * * **Searchable field names**: author_fullname, categories, description, name, updated_by_fullname
20
20
  *
21
21
  * @param favorite Boolean flag to only return dashboards marked as favorites.
22
22
  * @param q Case-insensitive search of all text fields.
@@ -112,14 +112,19 @@ export declare class DashboardsService {
112
112
  static deleteDashboardsService1(dashboardId: string): Promise<DashboardView | Error>;
113
113
  /**
114
114
  * Get Metadata (categories and authors)
115
- * Return all Metadata for the given query parameters: bi_type, lifecycle_state, target_app, and/or is_ootb_dashboard
115
+ * Return all Metadata for dashboards optionally filtered by the given parameters
116
+ * @param filter List of filters (each filter is a separate query param, and they are OR'ed).
117
+ *
118
+ * * **Filterable field names**: author_fullname, bi_type, categories, created_dt, description, is_ootb_dashboard, lifecycle_state, name, updated_by_fullname, updated_dt
119
+ * * **Searchable field names**: author_fullname, categories, description, name
120
+ *
121
+ * @param targetApp String match on the Dashboard target application - 'AGILITY', 'CONTINUOUSTEST', 'DEPLOY', 'RELEASE' or 'TEAMFORGE'.
116
122
  * @param biType String match on Dashboard bi type - 'MICROSTRATEGY'.
117
123
  * @param isOotbDashboard Boolean match on Dashboard OOTB status.
118
124
  * @param lifecycleState String match on Dashboard lifecycle state - 'DRAFT' or 'PUBLISHED'.
119
- * @param targetApp String match on the Dashboard target application - 'AGILITY', 'CONTINUOUSTEST', 'DEPLOY' or 'RELEASE'.
120
125
  * @returns MetadataResponse OK
121
126
  * @returns Error Default error response
122
127
  * @throws ApiError
123
128
  */
124
- static getDashboardsService2(biType?: string, isOotbDashboard?: boolean, lifecycleState?: string, targetApp?: string): Promise<MetadataResponse | Error>;
129
+ static getDashboardsMetadata(filter?: Array<string>, targetApp?: string, biType?: string, isOotbDashboard?: boolean, lifecycleState?: string): Promise<MetadataResponse | Error>;
125
130
  }
@@ -10,13 +10,14 @@ export declare class OriginsService {
10
10
  * @param sort Sort ordering to apply to the query.
11
11
  * @param name String match on Origin name.
12
12
  * @param description String match on Origin description.
13
+ * @param isPlatformOrigin Select from platform or tenant (non-platform) Origin.
13
14
  * @param q Case-insensitive search of all text fields.
14
15
  * @param id
15
16
  * @returns OriginPagedResponse OK
16
17
  * @returns Error Default error response
17
18
  * @throws ApiError
18
19
  */
19
- static getOriginsService(start?: number, count?: number, sort?: string, name?: string, description?: string, q?: string, id?: string): Promise<OriginPagedResponse | Error>;
20
+ static getOriginsService(start?: number, count?: number, sort?: string, name?: string, description?: string, isPlatformOrigin?: boolean, q?: string, id?: string): Promise<OriginPagedResponse | Error>;
20
21
  /**
21
22
  * Create an Origin.
22
23
  * Creates an Origin, owned by the authenticated API user.
@@ -75,6 +75,8 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
75
75
  placeholder?: string;
76
76
  /** Classname to be included in the autocomplete popper **/
77
77
  popperClassName?: string;
78
+ /** If true, group order (as specified by the consumer) will be preserved. Default group sorting is used when not specified. */
79
+ preserveGroupOrder?: boolean;
78
80
  /** If true: popper cannot be opened, TextField is in read only mode, change is not allowed */
79
81
  readOnly?: boolean;
80
82
  /** Render group function, group prop must be true for the function to be used **/
@@ -92,4 +94,4 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
92
94
  /** If true, the label will be displayed in a warning state. */
93
95
  warning?: boolean;
94
96
  }
95
- export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
97
+ export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, autoHighlight, className, "data-pendoid": dataPendoId, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, popperClassName, preserveGroupOrder, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const rootClassName = "dot-card-header";
2
+ export declare const StyledCardHeader: import("styled-components").StyledComponent<import("@mui/material").OverridableCardHeader, any, {}, never>;
@@ -1,2 +1,2 @@
1
1
  import { ListProps } from './utils/models';
2
- export declare const DotList: ({ ariaLabel, ariaRole, children, className, component, "data-testid": dataTestId, dense, disablePadding, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, width, }: ListProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const DotList: ({ ariaLabel, ariaRole, children, className, component, "data-testid": dataTestId, dense, disablePadding, items, menuPlacement, nestedDrawerLeftSpacing, nestedListCloseOnClickAway, nestedListType, width, }: ListProps) => import("react/jsx-runtime").JSX.Element;
@@ -20,6 +20,8 @@ export interface ListProps extends CommonProps {
20
20
  menuPlacement?: PopperPlacement;
21
21
  /** If nested type is 'drawer', determines the width of the left spacing */
22
22
  nestedDrawerLeftSpacing?: number;
23
+ /** Determines if expandable nested items will be closed on click away, by default is true */
24
+ nestedListCloseOnClickAway?: boolean;
23
25
  /** If 'menu' the nested list will be displayed as a flyout nav, else it will be an expand/collapse toggle list */
24
26
  nestedListType?: NestedListType;
25
27
  /** Width of list, defaults to 240px */
@@ -20,6 +20,8 @@ export interface PopperProps extends CommonProps {
20
20
  children: ReactNode;
21
21
  /** Disable the portal behavior. If `true`, children stay within parent DOM hierarchy. */
22
22
  disablePortal?: boolean;
23
+ /** If true, the popper will have an arrow */
24
+ hasArrow?: boolean;
23
25
  /** Used to specify the position more indepth, https://popper.js.org/docs/v2/modifiers/ */
24
26
  modifiers?: ModifersProps[];
25
27
  /** Event callback when leaving popper by clicking away */
@@ -29,5 +31,5 @@ export interface PopperProps extends CommonProps {
29
31
  /** Popper placement. */
30
32
  placement?: PopperPlacementType;
31
33
  }
32
- export declare const DotPopper: ({ ariaLabel, anchorEl, children, className, "data-testid": dataTestId, disablePortal, modifiers, onClickAway, open, placement, }: PopperProps) => import("react/jsx-runtime").JSX.Element;
34
+ export declare const DotPopper: ({ ariaLabel, anchorEl, children, className, "data-testid": dataTestId, disablePortal, hasArrow, modifiers, onClickAway, open, placement, }: PopperProps) => import("react/jsx-runtime").JSX.Element;
33
35
  export {};
@@ -1,7 +1,9 @@
1
1
  import { KeyboardEvent, MouseEvent } from 'react';
2
+ import { PopperPlacementType } from '@mui/material';
2
3
  export interface PopperTestWrapperProps {
3
4
  dataTestId?: string;
4
5
  disablePortal?: boolean;
5
6
  onClickAway?: (event: KeyboardEvent | MouseEvent<Document>) => void;
6
7
  }
7
8
  export declare const PopperTestWrapper: (props: PopperTestWrapperProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const POPPER_PLACEMENT_OPTIONS: PopperPlacementType[];
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const rootClassName = "dot-popper";
3
+ export declare const arrowClassName = "MuiPopper-arrow";
3
4
  export declare const StyledPopper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("@mui/base").PopperProps, "direction"> & {
4
5
  component?: import("react").ElementType<any>;
5
6
  components?: {
@@ -10,3 +11,4 @@ export declare const StyledPopper: import("styled-components").StyledComponent<i
10
11
  };
11
12
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
12
13
  } & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
14
+ export declare const StyledArrow: import("styled-components").StyledComponent<"span", any, {}, never>;