@gridsuite/commons-ui 0.89.0 → 0.89.2
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/_mocks_/svg.d.ts +0 -1
- package/dist/components/authentication/AuthenticationRouter.d.ts +0 -1
- package/dist/components/authentication/AuthenticationRouterErrorDisplay.d.ts +0 -1
- package/dist/components/authentication/SignInCallbackHandler.d.ts +0 -1
- package/dist/components/authentication/SilentRenewCallbackHandler.d.ts +0 -1
- package/dist/components/authentication/authenticationType.d.ts +0 -1
- package/dist/components/authentication/utils/authService.d.ts +0 -1
- package/dist/components/authentication/utils/userManagerMock.d.ts +0 -1
- package/dist/components/cardErrorBoundary/CardErrorBoundary.d.ts +0 -1
- package/dist/components/checkBoxList/CheckBoxList.d.ts +0 -1
- package/dist/components/checkBoxList/CheckBoxListItem.d.ts +0 -1
- package/dist/components/checkBoxList/CheckBoxListItems.d.ts +0 -1
- package/dist/components/checkBoxList/ClickableCheckBoxItem.d.ts +0 -1
- package/dist/components/checkBoxList/ClickableRowItem.d.ts +0 -1
- package/dist/components/checkBoxList/DraggableCheckBoxListItem.d.ts +0 -1
- package/dist/components/checkBoxList/DraggableClickableCheckBoxItem.d.ts +0 -1
- package/dist/components/checkBoxList/DraggableClickableRowItem.d.ts +0 -1
- package/dist/components/checkBoxList/checkBoxList.type.d.ts +0 -1
- package/dist/components/contingencyList/criteriaBased/CriteriaBasedForm.d.ts +0 -1
- package/dist/components/contingencyList/criteriaBased/criteriaBasedUtils.d.ts +0 -1
- package/dist/components/customAGGrid/customAggrid.d.ts +0 -1
- package/dist/components/customAGGrid/customAggrid.style.d.ts +0 -1
- package/dist/components/dialogs/customMuiDialog/CustomMuiDialog.d.ts +0 -1
- package/dist/components/dialogs/elementCreationDialog/ElementCreationDialog.d.ts +0 -1
- package/dist/components/dialogs/modifyElementSelection/ModifyElementSelection.d.ts +0 -1
- package/dist/components/directoryItemSelector/DirectoryItemSelector.d.ts +0 -1
- package/dist/components/elementSearch/elementItem/EquipmentItem.d.ts +0 -1
- package/dist/components/elementSearch/elementSearchDialog/ElementSearchDialog.d.ts +0 -1
- package/dist/components/elementSearch/elementSearchInput/ElementSearchInput.d.ts +0 -1
- package/dist/components/elementSearch/tagRenderer/TagRenderer.d.ts +0 -1
- package/dist/components/expandableGroup/ExpandableGroup.d.ts +0 -1
- package/dist/components/filter/FilterCreationDialog.d.ts +0 -1
- package/dist/components/filter/FilterForm.d.ts +0 -1
- package/dist/components/filter/HeaderFilterForm.d.ts +0 -1
- package/dist/components/filter/constants/FilterConstants.d.ts +0 -1
- package/dist/components/filter/expert/ExpertFilterEditionDialog.d.ts +0 -1
- package/dist/components/filter/expert/ExpertFilterForm.d.ts +0 -1
- package/dist/components/filter/expert/expertFilter.type.d.ts +0 -1
- package/dist/components/filter/expert/expertFilterConstants.d.ts +0 -1
- package/dist/components/filter/expert/expertFilterUtils.d.ts +0 -1
- package/dist/components/filter/explicitNaming/ExplicitNamingFilterEditionDialog.d.ts +0 -1
- package/dist/components/filter/explicitNaming/ExplicitNamingFilterForm.d.ts +0 -1
- package/dist/components/filter/filter.type.d.ts +0 -1
- package/dist/components/filter/utils/filterApi.d.ts +0 -1
- package/dist/components/filter/utils/filterFormUtils.d.ts +0 -1
- package/dist/components/flatParameters/FlatParameters.d.ts +0 -1
- package/dist/components/inputs/SelectClearable.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/DirectoryItemsInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/agGridTable/BottomRightButtons.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/agGridTable/CustomAgGridTable.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/agGridTable/cellEditors/numericEditor.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/autocompleteInputs/AutocompleteInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/booleans/BooleanInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/booleans/CheckboxInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/booleans/RadioInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/booleans/SwitchInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/errorManagement/ErrorInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/errorManagement/FieldErrorAlert.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/errorManagement/MidFormError.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/numbers/FloatInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/numbers/IntegerInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/numbers/RangeInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/numbers/SliderInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/provider/CustomFormProvider.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/provider/useCustomFormContext.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/selectInputs/MuiSelectInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/selectInputs/SelectInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/text/DescriptionField.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/text/ExpandingTextField.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/text/TextInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/text/UniqueNameInput.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/utils/CancelButton.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/utils/HelperPreviousValue.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/utils/HelperPreviousValue.js +1 -1
- package/dist/components/inputs/reactHookForm/utils/SubmitButton.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/utils/TextFieldWithAdornment.d.ts +0 -1
- package/dist/components/inputs/reactHookForm/utils/functions.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/AddButton.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/AutocompleteWithFavorites.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/CombinatorSelector.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/CountryValueEditor.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/CustomReactQueryBuilder.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/ElementValueEditor.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/FieldSelector.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/OperatorSelector.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/PropertyValueEditor.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/RemoveButton.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/TextValueEditor.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/TranslatedValueEditor.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/ValueEditor.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/ValueSelector.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/hooks/useConvertValue.d.ts +0 -1
- package/dist/components/inputs/reactQueryBuilder/hooks/useValid.d.ts +0 -1
- package/dist/components/multipleSelectionDialog/MultipleSelectionDialog.d.ts +0 -1
- package/dist/components/notifications/NotificationsProvider.d.ts +0 -1
- package/dist/components/notifications/hooks/useListenerManager.d.ts +0 -1
- package/dist/components/overflowableText/OverflowableText.d.ts +0 -1
- package/dist/components/snackbarProvider/SnackbarProvider.d.ts +0 -1
- package/dist/components/topBar/AboutDialog.d.ts +0 -1
- package/dist/components/topBar/GridLogo.d.ts +0 -1
- package/dist/components/topBar/MessageBanner.d.ts +0 -1
- package/dist/components/topBar/TopBar.d.ts +0 -1
- package/dist/components/topBar/UserInformationDialog.d.ts +0 -1
- package/dist/components/treeViewFinder/TreeViewFinder.d.ts +0 -1
- package/dist/hooks/customStates/useStateBoolean.d.ts +0 -1
- package/dist/hooks/customStates/useStateNumber.d.ts +0 -1
- package/dist/hooks/useCustomFilterOptions.d.ts +0 -1
- package/dist/hooks/useModificationLabelComputer.d.ts +0 -1
- package/dist/hooks/usePredefinedProperties.d.ts +0 -1
- package/dist/hooks/useSnackMessage.d.ts +0 -1
- package/dist/redux/actions/authActions.d.ts +0 -1
- package/dist/redux/commonStore.d.ts +0 -1
- package/dist/services/appsMetadata.d.ts +0 -1
- package/dist/services/directory.d.ts +0 -1
- package/dist/services/explore.d.ts +0 -1
- package/dist/services/study.d.ts +0 -1
- package/dist/services/userAdmin.d.ts +0 -1
- package/dist/utils/conversionUtils.d.ts +0 -1
- package/dist/utils/mapper/equipmentTypesForPredefinedPropertiesMapper.d.ts +0 -1
- package/dist/utils/mapper/getFileIcon.d.ts +0 -1
- package/dist/utils/styles.d.ts +0 -1
- package/dist/utils/types/equipmentType.d.ts +0 -1
- package/dist/utils/types/metadata.d.ts +0 -1
- package/dist/utils/types/types.d.ts +0 -1
- package/package.json +10 -10
package/dist/_mocks_/svg.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { AuthenticationRouterProps } from './authenticationType';
|
|
2
|
-
|
|
3
2
|
export declare function AuthenticationRouter({ userManager, signInCallbackError, authenticationRouterError, showAuthenticationRouterLogin, dispatch, navigate, location, }: Readonly<AuthenticationRouterProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,6 @@ import { UserManager } from 'oidc-client';
|
|
|
2
2
|
import { Dispatch } from 'react';
|
|
3
3
|
import { Location, NavigateFunction } from 'react-router';
|
|
4
4
|
import { AuthenticationActions } from '../../redux/actions/authActions';
|
|
5
|
-
|
|
6
5
|
export type AuthenticationRouterErrorState = {
|
|
7
6
|
userName?: string;
|
|
8
7
|
userValidationError?: {
|
|
@@ -2,7 +2,6 @@ import { Dispatch } from 'react';
|
|
|
2
2
|
import { Location, NavigateFunction } from 'react-router';
|
|
3
3
|
import { Log, User, UserManager } from 'oidc-client';
|
|
4
4
|
import { AuthenticationActions } from '../../../redux/actions/authActions';
|
|
5
|
-
|
|
6
5
|
type UserValidationFunc = (user: User) => Promise<boolean>;
|
|
7
6
|
type IdpSettingsGetter = () => Promise<IdpSettings>;
|
|
8
7
|
export type IdpSettings = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MetadataService, OidcClientSettings, SigninRequest, SigninResponse, SignoutRequest, SignoutResponse, User, UserManager, UserManagerEvents, UserManagerSettings } from 'oidc-client';
|
|
2
|
-
|
|
3
2
|
declare class Events implements UserManagerEvents {
|
|
4
3
|
userLoadedCallbacks: UserManagerEvents.UserLoadedCallback[];
|
|
5
4
|
load(): void;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { CheckBoxListItemProps } from './checkBoxList.type';
|
|
2
|
-
|
|
3
2
|
export declare function CheckBoxListItem<T>({ item, sx, secondaryAction, getItemId, divider, onItemClick, isItemClickable, ...props }: Readonly<CheckBoxListItemProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { CheckBoxListItemsProps } from './checkBoxList.type';
|
|
2
|
-
|
|
3
2
|
export declare function CheckBoxListItems<T>({ items, selectedItems, onSelectionChange, getItemId, sx, secondaryAction, addSelectAllCheckbox, selectAllCheckBoxLabel, getItemLabel, isDisabled, isDndDragAndDropActive, isDragDisable, divider, onItemClick, isItemClickable, ...props }: Readonly<CheckBoxListItemsProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { DraggableCheckBoxListItemProps } from './checkBoxList.type';
|
|
2
|
-
|
|
3
2
|
export declare function DraggableCheckBoxListItem<T>({ item, sx, secondaryAction, getItemId, isDragDisable, provided, divider, onItemClick, isItemClickable, ...props }: Readonly<DraggableCheckBoxListItemProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { DraggableClickableCheckBoxItemProps } from './checkBoxList.type';
|
|
2
|
-
|
|
3
2
|
export declare function DraggableClickableCheckBoxItem({ sx, disabled, provided, isHighlighted, label, ...props }: Readonly<DraggableClickableCheckBoxItemProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { DraggableClickableRowItemProps } from './checkBoxList.type';
|
|
2
|
-
|
|
3
2
|
export declare function DraggableClickableRowItem({ sx, disabled, onClick, provided, isHighlighted, label, onItemClick, isItemClickable, ...props }: Readonly<DraggableClickableRowItemProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { DraggableProvided, DragStart, DropResult } from 'react-beautiful-dnd';
|
|
3
3
|
import { SxProps, Theme } from '@mui/material';
|
|
4
|
-
|
|
5
4
|
export type CheckBoxListItemSx = {
|
|
6
5
|
checkBoxIcon?: SxProps<Theme>;
|
|
7
6
|
label?: SxProps<Theme>;
|
|
@@ -2,7 +2,6 @@ import { ObjectSchema } from 'yup';
|
|
|
2
2
|
import { FieldConstants } from '../../../utils/constants/fieldConstants';
|
|
3
3
|
import { default as yup } from '../../../utils/yupConfig';
|
|
4
4
|
import { RangeInputData } from '../../inputs/reactHookForm/numbers/RangeInput';
|
|
5
|
-
|
|
6
5
|
export type CriteriaBasedData = {
|
|
7
6
|
[FieldConstants.COUNTRIES]?: string[];
|
|
8
7
|
[FieldConstants.COUNTRIES_1]?: string[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { FieldErrors, FieldValues, SubmitHandler, UseFormReturn } from 'react-hook-form';
|
|
3
3
|
import { ObjectSchema } from 'yup';
|
|
4
|
-
|
|
5
4
|
export interface CustomMuiDialogProps<T extends FieldValues = FieldValues> {
|
|
6
5
|
open: boolean;
|
|
7
6
|
formSchema: ObjectSchema<T>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { UUID } from 'crypto';
|
|
2
2
|
import { TreeViewFinderProps } from '../treeViewFinder/TreeViewFinder';
|
|
3
3
|
import { ElementAttributes } from '../../utils';
|
|
4
|
-
|
|
5
4
|
export interface DirectoryItemSelectorProps extends TreeViewFinderProps {
|
|
6
5
|
types: string[];
|
|
7
6
|
equipmentTypes?: string[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SxProps, Theme } from '@mui/material';
|
|
2
2
|
import { EquipmentInfos } from '../../../utils/types/equipmentType';
|
|
3
3
|
import { TagRenderer } from '../tagRenderer/TagRenderer';
|
|
4
|
-
|
|
5
4
|
export interface EquipmentItemProps {
|
|
6
5
|
inputValue: string;
|
|
7
6
|
suffixRenderer?: typeof TagRenderer;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { FilterEditionProps } from '../filter.type';
|
|
2
|
-
|
|
3
2
|
export declare function ExpertFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, itemSelectionForCopy, getFilterById, setItemSelectionForCopy, activeDirectory, language, description, }: Readonly<FilterEditionProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Field } from 'react-querybuilder';
|
|
2
2
|
import { CombinatorType, DataType, OperatorType } from './expertFilter.type';
|
|
3
3
|
import { FieldType } from '../../../utils/types/fieldType';
|
|
4
|
-
|
|
5
4
|
export declare enum RULES {
|
|
6
5
|
EMPTY_RULE = "emptyRule",
|
|
7
6
|
EMPTY_GROUP = "emptyGroup",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { QueryValidator, RuleGroupType, RuleGroupTypeAny } from 'react-querybuilder';
|
|
2
2
|
import { IntlShape } from 'react-intl';
|
|
3
3
|
import { RuleGroupTypeExport } from './expertFilter.type';
|
|
4
|
-
|
|
5
4
|
export declare const getOperators: (fieldName: string, intl: IntlShape) => {
|
|
6
5
|
name: string;
|
|
7
6
|
label: string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { FilterEditionProps } from '../filter.type';
|
|
2
|
-
|
|
3
2
|
export declare function ExplicitNamingFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, itemSelectionForCopy, setItemSelectionForCopy, getFilterById, activeDirectory, language, description, }: Readonly<FilterEditionProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,6 @@ import { UUID } from 'crypto';
|
|
|
2
2
|
import { FieldConstants } from '../../../utils/constants/fieldConstants';
|
|
3
3
|
import { default as yup } from '../../../utils/yupConfig';
|
|
4
4
|
import { DISTRIBUTION_KEY } from '../constants/FilterConstants';
|
|
5
|
-
|
|
6
5
|
export declare const explicitNamingFilterSchema: {
|
|
7
6
|
filterEquipmentsAttributes: yup.ArraySchema<{
|
|
8
7
|
equipmentID?: string | null | undefined;
|
|
@@ -3,7 +3,6 @@ import { FieldConstants } from '../../utils';
|
|
|
3
3
|
import { RuleGroupTypeExport } from './expert/expertFilter.type';
|
|
4
4
|
import { EXPERT_FILTER_QUERY } from './expert/expertFilterConstants';
|
|
5
5
|
import { FILTER_EQUIPMENTS_ATTRIBUTES } from './explicitNaming/ExplicitNamingFilterConstants';
|
|
6
|
-
|
|
7
6
|
/**
|
|
8
7
|
* Represent an item/object in directories.
|
|
9
8
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { UUID } from 'crypto';
|
|
2
|
-
|
|
3
2
|
export declare const saveExplicitNamingFilter: (tableValues: any[], isFilterCreation: boolean, equipmentType: string, name: string, description: string, id: string | null, setCreateFilterErr: (value?: string) => void, handleClose: () => void, activeDirectory?: UUID, token?: string) => void;
|
|
4
3
|
export declare const saveExpertFilter: (id: string | null, query: any, equipmentType: string, name: string, description: string, isFilterCreation: boolean, activeDirectory: UUID | undefined | null, onClose: () => void, onError: (message: string) => void, token?: string) => void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AutocompleteProps, TextFieldProps } from '@mui/material';
|
|
2
2
|
import { Option } from '../../../../utils/types/types';
|
|
3
|
-
|
|
4
3
|
export interface AutocompleteInputProps extends Omit<AutocompleteProps<Option, boolean | undefined, boolean | undefined, boolean | undefined>, 'value' | 'onChange' | 'renderInput'> {
|
|
5
4
|
name: string;
|
|
6
5
|
options: Option[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { FieldValues, UseFormReturn } from 'react-hook-form';
|
|
3
3
|
import { ObjectSchema } from 'yup';
|
|
4
|
-
|
|
5
4
|
type CustomFormContextProps<TFieldValues extends FieldValues = FieldValues> = {
|
|
6
5
|
removeOptional?: boolean;
|
|
7
6
|
validationSchema: ObjectSchema<TFieldValues>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AutocompleteInputProps } from '../autocompleteInputs/AutocompleteInput';
|
|
2
2
|
import { Option } from '../../../../utils/types/types';
|
|
3
|
-
|
|
4
3
|
export interface SelectInputProps extends Omit<AutocompleteInputProps, 'outputTransform' | 'inputTransform' | 'readOnly' | 'getOptionLabel'> {
|
|
5
4
|
options: Option[];
|
|
6
5
|
}
|
|
@@ -2,7 +2,6 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { TextFieldProps } from '@mui/material';
|
|
3
3
|
import { TextFieldWithAdornmentProps } from '../utils/TextFieldWithAdornment';
|
|
4
4
|
import { Input } from '../../../../utils/types/types';
|
|
5
|
-
|
|
6
5
|
export interface TextInputProps {
|
|
7
6
|
name: string;
|
|
8
7
|
label?: string;
|
|
@@ -9,7 +9,7 @@ function HelperPreviousValue({
|
|
|
9
9
|
adornmentText
|
|
10
10
|
}) {
|
|
11
11
|
const intl = useIntl();
|
|
12
|
-
if (!previousValue && previousValue !== 0) {
|
|
12
|
+
if (!previousValue && previousValue !== 0 || Number.isNaN(previousValue)) {
|
|
13
13
|
return void 0;
|
|
14
14
|
}
|
|
15
15
|
return /* @__PURE__ */ jsx(FormHelperText, { error: false, sx: { marginLeft: 0 }, children: !disabledTooltip ? /* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, sx: { alignItems: "center" }, children: [
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AutocompleteProps } from '@mui/material/Autocomplete/Autocomplete';
|
|
2
|
-
|
|
3
2
|
interface AutocompleteWithFavoritesProps<Value> extends Omit<AutocompleteProps<Value, boolean, false, boolean>, 'multiple' | 'renderInput' | 'renderGroup' | 'groupBy'> {
|
|
4
3
|
favorites: Value[];
|
|
5
4
|
valid: boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ListenerEventWS, ListenerOnReopen } from '../contexts/NotificationsContext';
|
|
2
|
-
|
|
3
2
|
export declare const useListenerManager: <TListener extends ListenerEventWS | ListenerOnReopen, TMessage extends MessageEvent>(urls: Record<string, string | undefined>) => {
|
|
4
3
|
addListener: (urlKey: string, listener: TListener) => void;
|
|
5
4
|
removeListener: (urlKey: string, id: string) => void;
|
|
@@ -5,7 +5,6 @@ import { AboutDialogProps } from './AboutDialog';
|
|
|
5
5
|
import { LogoutProps } from '../authentication/Logout';
|
|
6
6
|
import { Metadata } from '../../utils';
|
|
7
7
|
import { DARK_THEME, LANG_ENGLISH, LANG_FRENCH, LANG_SYSTEM, LIGHT_THEME } from '../../utils/constants/browserConstants';
|
|
8
|
-
|
|
9
8
|
export type GsLangUser = typeof LANG_ENGLISH | typeof LANG_FRENCH;
|
|
10
9
|
export type GsLang = GsLangUser | typeof LANG_SYSTEM;
|
|
11
10
|
export type GsTheme = typeof LIGHT_THEME | typeof DARK_THEME;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ButtonProps, ModalProps } from '@mui/material';
|
|
3
3
|
import { TreeViewClasses } from '@mui/x-tree-view';
|
|
4
|
-
|
|
5
4
|
export declare const generateTreeViewFinderClass: (className: string) => string;
|
|
6
5
|
export interface TreeViewFinderNodeProps {
|
|
7
6
|
id: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { PredefinedProperties } from '../utils/types/types';
|
|
3
3
|
import { EquipmentType } from '../utils';
|
|
4
|
-
|
|
5
4
|
export declare const usePredefinedProperties: (initialType: EquipmentType | null) => [PredefinedProperties, Dispatch<SetStateAction<EquipmentType | null>>];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UUID } from 'crypto';
|
|
2
2
|
import { ElementAttributes } from '../utils';
|
|
3
|
-
|
|
4
3
|
export declare function fetchRootFolders(types: string[]): Promise<ElementAttributes[]>;
|
|
5
4
|
export declare function fetchDirectoryContent(directoryUuid: UUID, types?: string[]): Promise<ElementAttributes[]>;
|
|
6
5
|
export declare function fetchDirectoryElementPath(elementUuid: UUID): Promise<ElementAttributes[]>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { UUID } from 'crypto';
|
|
2
2
|
import { ElementAttributes } from '../utils/types/types';
|
|
3
3
|
import { NewFilterType } from '../components/filter/filter.type';
|
|
4
|
-
|
|
5
4
|
export declare function createFilter(newFilter: NewFilterType, name: string, description: string, parentDirectoryUuid: UUID | undefined | null, token?: string): Promise<Response>;
|
|
6
5
|
export declare function saveFilter(filter: NewFilterType, name: string, description: string, token?: string): Promise<Response>;
|
|
7
6
|
export declare function fetchElementsInfos(ids: UUID[], elementTypes?: string[], equipmentTypes?: string[]): Promise<ElementAttributes[]>;
|
package/dist/services/study.d.ts
CHANGED
package/dist/utils/styles.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SxProps, Theme } from '@mui/material';
|
|
2
|
-
|
|
3
2
|
export declare const makeComposeClasses: (generateGlobalClass: (className: string) => string) => (classes: Record<string, string>, ruleName: string) => string;
|
|
4
3
|
export declare const toNestedGlobalSelectors: (styles: object, generateGlobalClass: (className: string) => string) => {
|
|
5
4
|
[k: string]: any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridsuite/commons-ui",
|
|
3
|
-
"version": "0.89.
|
|
3
|
+
"version": "0.89.2",
|
|
4
4
|
"description": "common react components for gridsuite applications",
|
|
5
|
+
"author": "gridsuite team",
|
|
6
|
+
"homepage": "https://github.com/gridsuite",
|
|
7
|
+
"license": "MPL-2.0",
|
|
8
|
+
"repository": "git://github.com/gridsuite/commons-ui.git",
|
|
5
9
|
"engines": {
|
|
6
10
|
"node": ">=22",
|
|
7
11
|
"npm": "^10.9.2"
|
|
@@ -59,7 +63,7 @@
|
|
|
59
63
|
"react": "^18.3.1",
|
|
60
64
|
"react-dom": "^18.3.1",
|
|
61
65
|
"react-hook-form": "^7.54.2",
|
|
62
|
-
"react-intl": "^
|
|
66
|
+
"react-intl": "^7.1.6",
|
|
63
67
|
"react-papaparse": "^4.4.0",
|
|
64
68
|
"react-router": "^6.29.0",
|
|
65
69
|
"yup": "^1.6.1"
|
|
@@ -122,22 +126,18 @@
|
|
|
122
126
|
"react": "^18.3.1",
|
|
123
127
|
"react-dom": "^18.3.1",
|
|
124
128
|
"react-hook-form": "^7.54.2",
|
|
125
|
-
"react-intl": "^
|
|
129
|
+
"react-intl": "^7.1.6",
|
|
126
130
|
"react-papaparse": "^4.4.0",
|
|
127
131
|
"react-resizable": "^3.0.5",
|
|
128
132
|
"react-router": "^6.29.0",
|
|
129
133
|
"react-router-dom": "^6.29.0",
|
|
130
134
|
"ts-node": "^10.9.2",
|
|
131
135
|
"typescript": "~5.5.4",
|
|
132
|
-
"vite": "^
|
|
133
|
-
"vite-plugin-dts": "^
|
|
136
|
+
"vite": "^6.2.1",
|
|
137
|
+
"vite-plugin-dts": "^4.5.3",
|
|
134
138
|
"vite-plugin-eslint": "^1.8.1",
|
|
135
139
|
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
136
140
|
"vite-plugin-svgr": "^4.3.0",
|
|
137
141
|
"yup": "^1.6.1"
|
|
138
|
-
}
|
|
139
|
-
"author": "gridsuite team",
|
|
140
|
-
"homepage": "https://github.com/gridsuite",
|
|
141
|
-
"license": "MPL-2.0",
|
|
142
|
-
"repository": "git://github.com/gridsuite/commons-ui.git"
|
|
142
|
+
}
|
|
143
143
|
}
|