@digital-ai/dot-components 3.23.0 → 3.24.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 +8 -4
- package/package.json +1 -1
- package/src/lib/components/analytics/dashboard-actions/DashboardOptionsMenu.d.ts +1 -0
- package/src/lib/components/analytics/dashboard-actions/DashboardPublishConfirm.styles.d.ts +1 -1
- package/src/lib/components/auto-complete/AutoComplete.d.ts +4 -2
package/index.esm.js
CHANGED
|
@@ -6645,6 +6645,7 @@ const DotAutoComplete = ({
|
|
|
6645
6645
|
persistentLabel,
|
|
6646
6646
|
placeholder,
|
|
6647
6647
|
popperClassName,
|
|
6648
|
+
popperPlacement,
|
|
6648
6649
|
preserveGroupOrder = false,
|
|
6649
6650
|
readOnly = false,
|
|
6650
6651
|
renderGroup,
|
|
@@ -6739,6 +6740,7 @@ const DotAutoComplete = ({
|
|
|
6739
6740
|
className: popperClasses,
|
|
6740
6741
|
disablePortal: disablePortal,
|
|
6741
6742
|
"$maxHeight": maxHeight,
|
|
6743
|
+
placement: popperPlacement,
|
|
6742
6744
|
children: jsxs(Paper, Object.assign({}, paperProps, {
|
|
6743
6745
|
children: [paperChildren, jsx("div", {
|
|
6744
6746
|
className: "dot-action-item",
|
|
@@ -10665,7 +10667,9 @@ function DashboardCategoriesAutoComplete(_a) {
|
|
|
10665
10667
|
actionItem: customActionItem,
|
|
10666
10668
|
onInputChange: handleInputChange,
|
|
10667
10669
|
error: !!errorMessage,
|
|
10668
|
-
helperText: errorMessage
|
|
10670
|
+
helperText: errorMessage,
|
|
10671
|
+
popperPlacement: "top",
|
|
10672
|
+
maxHeight: 110
|
|
10669
10673
|
}));
|
|
10670
10674
|
}
|
|
10671
10675
|
|
|
@@ -11791,7 +11795,7 @@ function DotDashboardOptionsMenu({
|
|
|
11791
11795
|
}
|
|
11792
11796
|
// If this is a published dashboard, with in-progress changes, and the user is the author of the changes,
|
|
11793
11797
|
// show the republish, revert, and view original options.
|
|
11794
|
-
if (
|
|
11798
|
+
if (isPublished && currentUser && dashboard.is_being_modified && dashboard.modified_author_id === currentUser.id) {
|
|
11795
11799
|
const handlePublishChangesClick = () => {
|
|
11796
11800
|
handleMenuClose();
|
|
11797
11801
|
onStartStatusChange && onStartStatusChange(dashboard, DashboardView.lifecycle_state.PUBLISHED);
|
|
@@ -12049,7 +12053,7 @@ function DotDashboardActions({
|
|
|
12049
12053
|
onStatusChanged && onStatusChanged(publishedDashboard);
|
|
12050
12054
|
// Move to View Mode after publishing
|
|
12051
12055
|
onViewMode && onViewMode(publishedDashboard, 'view');
|
|
12052
|
-
}, [onStatusChanged]);
|
|
12056
|
+
}, [onStatusChanged, onViewMode]);
|
|
12053
12057
|
const handlePublishConfirmClose = useCallback(() => {
|
|
12054
12058
|
setDashboardToPublish(null);
|
|
12055
12059
|
setDashboardToUnpublish(null);
|
|
@@ -12330,7 +12334,7 @@ function DotDashboardHeader({
|
|
|
12330
12334
|
onStatusChanged && onStatusChanged(publishedDashboard);
|
|
12331
12335
|
// Navigate to View Mode after publishing changes
|
|
12332
12336
|
onViewMode && onViewMode(publishedDashboard, 'view');
|
|
12333
|
-
}, [onStatusChanged]);
|
|
12337
|
+
}, [onStatusChanged, onViewMode]);
|
|
12334
12338
|
useEnqueueErrorMessage(!applicationsLoading && applicationsError);
|
|
12335
12339
|
useEnqueueErrorMessage(!metadataLoading && dashboardsError);
|
|
12336
12340
|
useEffect(() => {
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import { UserModel } from '../../core-api/openapi';
|
|
|
4
4
|
interface DashboardOptionsMenuProps {
|
|
5
5
|
currentUser?: UserModel;
|
|
6
6
|
dashboard: DashboardView;
|
|
7
|
+
/** True if the embedded dashboard is in Edit mode. **/
|
|
7
8
|
isEdit?: boolean;
|
|
8
9
|
menuPlacement?: PopperPlacement;
|
|
9
10
|
onDetails?: (dashboard: DashboardView) => void;
|
|
@@ -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, preserveGroupOrder, 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, popperPlacement, 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>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, FocusEvent, HTMLAttributes, JSXElementConstructor, ReactNode, Ref } from 'react';
|
|
2
|
-
import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderGroupParams, AutocompleteRenderOptionState, FilterOptionsState } from '@mui/material';
|
|
2
|
+
import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderGroupParams, AutocompleteRenderOptionState, FilterOptionsState, type PopperPlacementType } from '@mui/material';
|
|
3
3
|
import { CommonProps } from '../CommonProps';
|
|
4
4
|
import { inputSizeOptions } from '../input-form-fields/InputFormFields.propTypes';
|
|
5
5
|
import { ActionItem, AutoCompleteOption, AutoCompleteValue } from './utils/interface';
|
|
@@ -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
|
+
/** Placement of the popper */
|
|
79
|
+
popperPlacement?: PopperPlacementType;
|
|
78
80
|
/** If true, group order (as specified by the consumer) will be preserved. Default group sorting is used when not specified. */
|
|
79
81
|
preserveGroupOrder?: boolean;
|
|
80
82
|
/** If true: popper cannot be opened, TextField is in read only mode, change is not allowed */
|
|
@@ -94,4 +96,4 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
|
|
|
94
96
|
/** If true, the label will be displayed in a warning state. */
|
|
95
97
|
warning?: boolean;
|
|
96
98
|
}
|
|
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;
|
|
99
|
+
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, popperPlacement, preserveGroupOrder, readOnly, renderGroup, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|