@mcurros2/microm 1.1.154-0 → 1.1.157-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/index.css +5 -5
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +174 -172
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6672 -6711
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { AlertProps, DefaultMantineColor, Variants, StepperProps, MantineTheme, TextareaProps, TextInputProps, MantineNumberSize, MantineColor, PasswordInputProps, NotificationProps, CheckboxProps, ProgressProps, ButtonProps, ActionIconProps, NumberInputProps, ImageProps, MultiSelectProps, SelectItem, BadgeVariant, MantineSize, CardProps, OverlayProps, TransitionProps, AccordionProps, PinInputProps, SwitchProps, Radio, SelectProps, GroupProps, AvatarProps, AutocompleteItem, AutocompleteProps, DefaultProps, BadgeProps } from "@mantine/core";
|
|
2
|
-
import
|
|
2
|
+
import { JSX } from "react/jsx-runtime";
|
|
3
|
+
import React, { JSXElementConstructor, ReactElement, ReactNode, PropsWithChildren, ComponentType, RefAttributes, ForwardRefExoticComponent, MutableRefObject, useState, Dispatch, SetStateAction, KeyboardEvent, RefObject, CSSProperties, ComponentPropsWithoutRef, Context, ReactPortal } from "react";
|
|
3
4
|
import { hasLength, isInRange, isNotEmpty, matches, UseFormReturnType } from "@mantine/form";
|
|
4
5
|
import { LooseKeys } from "@mantine/form/lib/types";
|
|
5
|
-
import { IconProps } from "@tabler/icons-react";
|
|
6
|
+
import { IconProps, Icon } from "@tabler/icons-react";
|
|
6
7
|
import { ModalSettings } from "@mantine/modals/lib/context";
|
|
7
8
|
import { PrismProps } from "@mantine/prism";
|
|
8
9
|
import { DateInputProps, TimeInputProps, CalendarProps } from "@mantine/dates";
|
|
10
|
+
import { EntityClientAction as _EntityClientAction1, UseEntityFormReturnType as _UseEntityFormReturnType1, DataResult as _DataResult1, OperationStatus as _OperationStatus1, DataMapInfoWindowRenderer as _DataMapInfoWindowRenderer1, DataMapSelectRecordsRenderer as _DataMapSelectRecordsRenderer1, DataMapMarkerRenderer as _DataMapMarkerRenderer1, DataMapGroupMarkerRenderer as _DataMapGroupMarkerRenderer1, EntityDefinition as _EntityDefinition1, Entity as _Entity1, ValuesObject as _ValuesObject1, DBStatusResult as _DBStatusResult1, DataGridLabels as _DataGridLabels1, GridColumnsOverrides as _GridColumnsOverrides1, DataGridSelectionChangedCallback as _DataGridSelectionChangedCallback1, GridRecord as _GridRecord1, GridSelectionChangedCallback as _GridSelectionChangedCallback1, GridDoubleClickCallback as _GridDoubleClickCallback1, GridColumn as _GridColumn1 } from "src";
|
|
9
11
|
import { DropzoneProps } from "@mantine/dropzone";
|
|
10
12
|
import { AccordionVariant } from "@mantine/core/lib/Accordion/Accordion.types";
|
|
11
13
|
import { SpotlightAction } from "@mantine/spotlight";
|
|
@@ -59,11 +61,11 @@ export interface AlertErrorProps extends Omit<AlertProps, 'icon'> {
|
|
|
59
61
|
iconTooltip?: string;
|
|
60
62
|
}
|
|
61
63
|
export const AlertErrorDefaultProps: Partial<AlertErrorProps>;
|
|
62
|
-
export function AlertError(props: AlertErrorProps):
|
|
64
|
+
export function AlertError(props: AlertErrorProps): JSX.Element;
|
|
63
65
|
export const AlertInfoDefaultProps: Partial<AlertProps>;
|
|
64
|
-
export function AlertInfo(props: AlertProps):
|
|
66
|
+
export function AlertInfo(props: AlertProps): JSX.Element;
|
|
65
67
|
export const AlertSuccessDefaultProps: Partial<AlertProps>;
|
|
66
|
-
export function AlertSuccess(props: AlertProps):
|
|
68
|
+
export function AlertSuccess(props: AlertProps): JSX.Element;
|
|
67
69
|
export interface ColorConfigurationValue {
|
|
68
70
|
colorKey: DefaultMantineColor;
|
|
69
71
|
colorShade: any;
|
|
@@ -72,7 +74,7 @@ export interface ColorConfigurationProps {
|
|
|
72
74
|
onChange(color: ColorConfigurationValue): void;
|
|
73
75
|
value: ColorConfigurationValue;
|
|
74
76
|
}
|
|
75
|
-
export function ColorConfiguration({ onChange, value }: ColorConfigurationProps):
|
|
77
|
+
export function ColorConfiguration({ onChange, value }: ColorConfigurationProps): JSX.Element;
|
|
76
78
|
export interface LoginOptions {
|
|
77
79
|
client: MicroMClient;
|
|
78
80
|
onStatusCompleted: StatusCompletedHandler<MicroMToken>;
|
|
@@ -93,7 +95,7 @@ export interface LoginValues {
|
|
|
93
95
|
server: string;
|
|
94
96
|
rememberme: boolean;
|
|
95
97
|
}
|
|
96
|
-
export function Login(props: LoginOptions):
|
|
98
|
+
export function Login(props: LoginOptions): JSX.Element;
|
|
97
99
|
export interface LoginModalProps {
|
|
98
100
|
client: MicroMClient;
|
|
99
101
|
title?: string;
|
|
@@ -102,7 +104,7 @@ export interface LoginModalProps {
|
|
|
102
104
|
checkOnInit?: boolean;
|
|
103
105
|
}
|
|
104
106
|
export const LoginModalDefaultProps: Partial<LoginModalProps>;
|
|
105
|
-
export function LoginModal(props: LoginModalProps):
|
|
107
|
+
export function LoginModal(props: LoginModalProps): JSX.Element;
|
|
106
108
|
/** Flags for determining the role of the column */
|
|
107
109
|
export enum EntityColumnFlags {
|
|
108
110
|
/** This flag indicates that this column is NOT sent as parameter to any API endpoint */
|
|
@@ -346,7 +348,7 @@ export interface EntityFormProps extends PropsWithChildren {
|
|
|
346
348
|
saveBeforeRemoteNavigation?: boolean;
|
|
347
349
|
}
|
|
348
350
|
export const EntityFormDefaultProps: Partial<EntityFormProps>;
|
|
349
|
-
export function EntityForm(props: EntityFormProps):
|
|
351
|
+
export function EntityForm(props: EntityFormProps): JSX.Element;
|
|
350
352
|
export type UseFieldConfigurationProps = {
|
|
351
353
|
entityForm: UseEntityFormReturnType;
|
|
352
354
|
column: EntityColumn<Value>;
|
|
@@ -366,7 +368,7 @@ export interface EntityFormPageProps extends Omit<FormOptions<Entity<any>>, 'ent
|
|
|
366
368
|
defaultLoadingComponent?: ReactNode;
|
|
367
369
|
}
|
|
368
370
|
export const EntityFormPagePropsDefaultProps: Partial<EntityFormPageProps>;
|
|
369
|
-
export function EntityFormPage(props: EntityFormPageProps):
|
|
371
|
+
export function EntityFormPage(props: EntityFormPageProps): JSX.Element;
|
|
370
372
|
export interface StepperFormStep {
|
|
371
373
|
name: string;
|
|
372
374
|
label: string;
|
|
@@ -392,7 +394,7 @@ export interface StepperFormProps extends EntityFormProps {
|
|
|
392
394
|
stepperProps?: Omit<Partial<StepperProps>, 'children' | 'active'>;
|
|
393
395
|
}
|
|
394
396
|
export const StepperFormDefaultProps: Partial<StepperFormProps>;
|
|
395
|
-
export function StepperForm(props: StepperFormProps):
|
|
397
|
+
export function StepperForm(props: StepperFormProps): JSX.Element;
|
|
396
398
|
export function getWindowLocationQueryStringAsObject(): Record<string, string>;
|
|
397
399
|
export function buildURLQueryString(params: Record<string, Value>): string;
|
|
398
400
|
export function getWindowLocationQueryStringAsValueObject(columns: ColumnsObject): ValuesObject;
|
|
@@ -621,7 +623,7 @@ export interface TextAreaFieldProps extends TextareaProps, Omit<useTextTransform
|
|
|
621
623
|
}>;
|
|
622
624
|
autofocus?: boolean;
|
|
623
625
|
}
|
|
624
|
-
export const TextAreaField:
|
|
626
|
+
export const TextAreaField: ForwardRefExoticComponent<TextAreaFieldProps & RefAttributes<HTMLTextAreaElement>>;
|
|
625
627
|
export interface TextFieldProps extends TextInputProps, Omit<useTextTransformProps, 'entityForm' | 'column'> {
|
|
626
628
|
column: EntityColumn<Value>;
|
|
627
629
|
entityForm: UseEntityFormReturnType;
|
|
@@ -632,26 +634,26 @@ export interface TextFieldProps extends TextInputProps, Omit<useTextTransformPro
|
|
|
632
634
|
}>;
|
|
633
635
|
autoFocus?: boolean;
|
|
634
636
|
}
|
|
635
|
-
export const TextField:
|
|
637
|
+
export const TextField: ForwardRefExoticComponent<TextFieldProps & RefAttributes<HTMLInputElement>>;
|
|
636
638
|
export interface AutoFormFieldsProps<T extends Entity<EntityDefinition>> {
|
|
637
639
|
entity: T;
|
|
638
640
|
entityForm: UseEntityFormReturnType;
|
|
639
641
|
}
|
|
640
|
-
export function AutoFormFields(props: AutoFormFieldsProps<Entity<EntityDefinition>>): (
|
|
641
|
-
export function AutoForm(props: FormOptions<Entity<EntityDefinition>>):
|
|
642
|
+
export function AutoFormFields(props: AutoFormFieldsProps<Entity<EntityDefinition>>): (ReactElement<any, string | JSXElementConstructor<any>> | undefined)[];
|
|
643
|
+
export function AutoForm(props: FormOptions<Entity<EntityDefinition>>): JSX.Element;
|
|
642
644
|
export interface ModalFormOptions {
|
|
643
645
|
entity: Entity<EntityDefinition>;
|
|
644
646
|
onSaved: (entity: Entity<EntityDefinition>) => void;
|
|
645
647
|
onCancel: (entity: Entity<EntityDefinition>) => void;
|
|
646
648
|
}
|
|
647
|
-
export function ModalForm({ entity, onSaved, onCancel }: ModalFormOptions):
|
|
649
|
+
export function ModalForm({ entity, onSaved, onCancel }: ModalFormOptions): JSX.Element;
|
|
648
650
|
export const ModalsManagerDefaultProps: {
|
|
649
651
|
closeLabel: string;
|
|
650
652
|
fullscreenLabel: string;
|
|
651
653
|
minimizeLabel: string;
|
|
652
654
|
toggleLabel: string;
|
|
653
|
-
FullScreenIcon:
|
|
654
|
-
RestoreScreeSizeIcon:
|
|
655
|
+
FullScreenIcon: ForwardRefExoticComponent<IconProps & RefAttributes<Icon>>;
|
|
656
|
+
RestoreScreeSizeIcon: ForwardRefExoticComponent<IconProps & RefAttributes<Icon>>;
|
|
655
657
|
withCloseButton: boolean;
|
|
656
658
|
};
|
|
657
659
|
export type MicroMModalSize = MantineNumberSize | 'fullscreen';
|
|
@@ -685,7 +687,7 @@ export interface ModalsManagerProps extends PropsWithChildren {
|
|
|
685
687
|
/** This delay in milliseconds will be used to wait for the modal to be closed and fire the onClosed() event */
|
|
686
688
|
animationDuration: number;
|
|
687
689
|
}
|
|
688
|
-
export const ModalsManager: ({ modalProps, animationDuration, children }: ModalsManagerProps) =>
|
|
690
|
+
export const ModalsManager: ({ modalProps, animationDuration, children }: ModalsManagerProps) => JSX.Element;
|
|
689
691
|
export const useModal: () => ModalContextType;
|
|
690
692
|
export interface SearchInputProps extends TextInputProps {
|
|
691
693
|
onSearchClick: React.MouseEventHandler;
|
|
@@ -699,7 +701,7 @@ export interface SearchInputProps extends TextInputProps {
|
|
|
699
701
|
[x: string]: any;
|
|
700
702
|
}
|
|
701
703
|
export const SearchInputDefaultProps: Partial<SearchInputProps>;
|
|
702
|
-
export function SearchInput(props: SearchInputProps):
|
|
704
|
+
export function SearchInput(props: SearchInputProps): JSX.Element;
|
|
703
705
|
export interface ToggleActionIconOptions {
|
|
704
706
|
hidden: boolean;
|
|
705
707
|
size: string;
|
|
@@ -714,10 +716,10 @@ export interface ToggleActionIconOptions {
|
|
|
714
716
|
radius?: MantineNumberSize;
|
|
715
717
|
title?: string;
|
|
716
718
|
}
|
|
717
|
-
export const ToggleActionIcon:
|
|
719
|
+
export const ToggleActionIcon: ForwardRefExoticComponent<ToggleActionIconOptions & RefAttributes<HTMLButtonElement>>;
|
|
718
720
|
export function useExecuteView(entity?: Entity<EntityDefinition>, values?: ValuesObject, viewName?: string, search?: string[] | undefined, limit?: string | null, refresh?: boolean, filters?: ValuesObject): OperationStatus<DataResult[]>;
|
|
719
721
|
export function useDebugProps<T>(propsObject: T, dependencies: any[], componentName: string): void;
|
|
720
|
-
export function useEnterAsTab<T extends HTMLElement>():
|
|
722
|
+
export function useEnterAsTab<T extends HTMLElement>(): MutableRefObject<T | null>;
|
|
721
723
|
export interface useLoginType {
|
|
722
724
|
login: () => void;
|
|
723
725
|
}
|
|
@@ -742,17 +744,17 @@ export interface PasswordFieldProps extends PasswordInputProps {
|
|
|
742
744
|
children: ReactNode;
|
|
743
745
|
}>;
|
|
744
746
|
}
|
|
745
|
-
export function PasswordField(props: PasswordFieldProps):
|
|
747
|
+
export function PasswordField(props: PasswordFieldProps): JSX.Element;
|
|
746
748
|
export type useExecuteActionReturnType<TReturn extends EntityDefinition | ValuesObject> = {
|
|
747
749
|
status: OperationStatus<TReturn>;
|
|
748
750
|
execute: (values?: ValuesObject) => Promise<OperationStatus<TReturn> | undefined>;
|
|
749
751
|
};
|
|
750
752
|
export function useExecuteServerAction<T extends EntityDefinition, TReturn extends EntityDefinition | ValuesObject>(entity: Entity<T>, actionName: string): useExecuteActionReturnType<TReturn>;
|
|
751
753
|
export const NotifySuccessDefaultProps: Partial<NotificationProps>;
|
|
752
|
-
export function NotifySuccess(props: NotificationProps):
|
|
753
|
-
export function NotifyError(props: NotificationProps):
|
|
754
|
+
export function NotifySuccess(props: NotificationProps): JSX.Element;
|
|
755
|
+
export function NotifyError(props: NotificationProps): JSX.Element;
|
|
754
756
|
export const NotifyInfoDefaultProps: Partial<NotificationProps>;
|
|
755
|
-
export function NotifyInfo(props: NotificationProps):
|
|
757
|
+
export function NotifyInfo(props: NotificationProps): JSX.Element;
|
|
756
758
|
export interface NotifyBitFieldProps extends NotificationProps {
|
|
757
759
|
column: EntityColumn<boolean>;
|
|
758
760
|
trueIcon?: ReactNode;
|
|
@@ -763,7 +765,7 @@ export interface NotifyBitFieldProps extends NotificationProps {
|
|
|
763
765
|
falseColor?: MantineColor;
|
|
764
766
|
}
|
|
765
767
|
export const NotifyBitFieldDefaultProps: Partial<NotifyBitFieldProps>;
|
|
766
|
-
export function NotifyBitField(props: NotifyBitFieldProps):
|
|
768
|
+
export function NotifyBitField(props: NotifyBitFieldProps): JSX.Element;
|
|
767
769
|
export interface CheckboxFieldProps extends CheckboxProps {
|
|
768
770
|
column: EntityColumn<Value>;
|
|
769
771
|
entityForm: UseEntityFormReturnType;
|
|
@@ -771,8 +773,8 @@ export interface CheckboxFieldProps extends CheckboxProps {
|
|
|
771
773
|
disableOnLoading?: boolean;
|
|
772
774
|
requiredMessage?: ReactNode;
|
|
773
775
|
}
|
|
774
|
-
export function CheckboxField(props: CheckboxFieldProps):
|
|
775
|
-
export function FakeProgressBar(props: ProgressProps):
|
|
776
|
+
export function CheckboxField(props: CheckboxFieldProps): JSX.Element;
|
|
777
|
+
export function FakeProgressBar(props: ProgressProps): JSX.Element;
|
|
776
778
|
export interface UseOperationStatusCallback<T> {
|
|
777
779
|
callback: (...args: any[]) => Promise<T>;
|
|
778
780
|
operation: DataOperationType;
|
|
@@ -796,17 +798,17 @@ export interface ConfirmPanelProps {
|
|
|
796
798
|
runOnOpen?: boolean;
|
|
797
799
|
}
|
|
798
800
|
export const ConfirmAndExecutePanelDefaultProps: Partial<ConfirmPanelProps>;
|
|
799
|
-
export function ConfirmAndExecutePanel(props: ConfirmPanelProps):
|
|
801
|
+
export function ConfirmAndExecutePanel(props: ConfirmPanelProps): JSX.Element;
|
|
800
802
|
export interface EmailFieldProps extends Omit<TextFieldProps, 'validate'> {
|
|
801
803
|
invalidMessage?: string;
|
|
802
804
|
}
|
|
803
805
|
export const EmailFieldDefaultProps: Partial<EmailFieldProps>;
|
|
804
|
-
export function EmailField(props: EmailFieldProps):
|
|
806
|
+
export function EmailField(props: EmailFieldProps): JSX.Element;
|
|
805
807
|
export interface UrlFieldProps extends Omit<TextFieldProps, 'validate'> {
|
|
806
808
|
invalidMessage?: string;
|
|
807
809
|
}
|
|
808
810
|
export const UrlFieldDefaultProps: Partial<UrlFieldProps>;
|
|
809
|
-
export function UrlField(props: UrlFieldProps):
|
|
811
|
+
export function UrlField(props: UrlFieldProps): JSX.Element;
|
|
810
812
|
export interface UseDynamicContentProps {
|
|
811
813
|
contentState: ReturnType<typeof useState<ReactNode>>;
|
|
812
814
|
dynamicContent: Promise<ReactNode>;
|
|
@@ -819,11 +821,11 @@ export interface CopyToClipboardProps extends ActionIconProps {
|
|
|
819
821
|
copiedColor?: MantineColor;
|
|
820
822
|
iconSize?: string | number;
|
|
821
823
|
}
|
|
822
|
-
export function CopyToClipboard(props: CopyToClipboardProps):
|
|
824
|
+
export function CopyToClipboard(props: CopyToClipboardProps): JSX.Element;
|
|
823
825
|
export interface CodeBlockProps extends Omit<PrismProps, 'children'> {
|
|
824
826
|
codeText: string;
|
|
825
827
|
}
|
|
826
|
-
export function CodeBlock(props: CodeBlockProps):
|
|
828
|
+
export function CodeBlock(props: CodeBlockProps): JSX.Element;
|
|
827
829
|
export interface DateInputFieldProps extends DateInputProps {
|
|
828
830
|
column: EntityColumn<Value>;
|
|
829
831
|
entityForm: UseEntityFormReturnType;
|
|
@@ -835,7 +837,7 @@ export interface DateInputFieldProps extends DateInputProps {
|
|
|
835
837
|
autoFocus?: boolean;
|
|
836
838
|
}
|
|
837
839
|
export const DateInputFieldDefaultProps: Partial<DateInputFieldProps>;
|
|
838
|
-
export const DateInputField:
|
|
840
|
+
export const DateInputField: ForwardRefExoticComponent<DateInputFieldProps & RefAttributes<HTMLInputElement>>;
|
|
839
841
|
export interface NumberFieldProps extends NumberInputProps {
|
|
840
842
|
column: EntityColumn<Value>;
|
|
841
843
|
entityForm: UseEntityFormReturnType;
|
|
@@ -848,7 +850,7 @@ export interface NumberFieldProps extends NumberInputProps {
|
|
|
848
850
|
}>;
|
|
849
851
|
autoFocus?: boolean;
|
|
850
852
|
}
|
|
851
|
-
export const NumberField:
|
|
853
|
+
export const NumberField: ForwardRefExoticComponent<NumberFieldProps & RefAttributes<HTMLInputElement>>;
|
|
852
854
|
export interface UseHierarchyKeysProps {
|
|
853
855
|
formAPI: UseEntityFormReturnType;
|
|
854
856
|
hierarchy: string[];
|
|
@@ -861,12 +863,12 @@ export interface PhoneFieldProps extends Omit<TextFieldProps, 'validate'> {
|
|
|
861
863
|
showWhatsappIcon?: boolean;
|
|
862
864
|
}
|
|
863
865
|
export const PhoneFieldDefaultProps: Partial<PhoneFieldProps>;
|
|
864
|
-
export function PhoneField(props: PhoneFieldProps):
|
|
866
|
+
export function PhoneField(props: PhoneFieldProps): JSX.Element;
|
|
865
867
|
export interface CUITFieldProps extends TextFieldProps {
|
|
866
868
|
invalidMessage?: string;
|
|
867
869
|
}
|
|
868
870
|
export const CUITFieldDefaultProps: Partial<CUITFieldProps>;
|
|
869
|
-
export function CUITField(props: CUITFieldProps):
|
|
871
|
+
export function CUITField(props: CUITFieldProps): JSX.Element;
|
|
870
872
|
export interface UseParentKeysProps {
|
|
871
873
|
formAPI: UseEntityFormReturnType;
|
|
872
874
|
columnNames: string[];
|
|
@@ -888,7 +890,7 @@ export const TimeFieldDefaultProps: Partial<TimeFieldProps>;
|
|
|
888
890
|
interface TimeFieldRef {
|
|
889
891
|
showPicker: () => void;
|
|
890
892
|
}
|
|
891
|
-
export const TimeField:
|
|
893
|
+
export const TimeField: ForwardRefExoticComponent<TimeFieldProps & RefAttributes<TimeFieldRef>>;
|
|
892
894
|
export function getInitials(input: string): string;
|
|
893
895
|
export interface useIsLoggedInProps {
|
|
894
896
|
client: MicroMClient;
|
|
@@ -916,7 +918,7 @@ export interface UseLocaleFormatProps {
|
|
|
916
918
|
export const UseLocaleFormatDefaultProps: Partial<UseLocaleFormatProps>;
|
|
917
919
|
export function useLocaleFormat(props: UseLocaleFormatProps): {
|
|
918
920
|
locale: string | undefined;
|
|
919
|
-
setLocale:
|
|
921
|
+
setLocale: Dispatch<SetStateAction<string | undefined>>;
|
|
920
922
|
formatValue: (value: Value, sqlType: SQLType) => string;
|
|
921
923
|
getNativeValue: (value: Value, sqlType: SQLType) => Value;
|
|
922
924
|
formatColumnValue: (col: EntityColumn<Value>) => string;
|
|
@@ -978,7 +980,7 @@ export class CategoriesValues extends Entity<CategoriesValuesDef> {
|
|
|
978
980
|
constructor(client: MicroMClient, parentKeys?: {});
|
|
979
981
|
}
|
|
980
982
|
export const CategoriesFormDefaultProps: Partial<FormOptions<Categories>>;
|
|
981
|
-
export function CategoriesForm(props: FormOptions<Categories>):
|
|
983
|
+
export function CategoriesForm(props: FormOptions<Categories>): JSX.Element;
|
|
982
984
|
export class Categories extends Entity<CategoriesDef> {
|
|
983
985
|
constructor(client: MicroMClient, parentKeys?: {});
|
|
984
986
|
}
|
|
@@ -1041,7 +1043,7 @@ export interface MicromUsersGroupsMenusColumnsOverridesLabels {
|
|
|
1041
1043
|
export const MicromUsersGroupsMenusColumnsOverridesLabelsDefaultProps: Partial<MicromUsersGroupsMenusColumnsOverridesLabels>;
|
|
1042
1044
|
export function MicromUsersGroupsMenusColumnsOverrides(theme: MantineTheme): {
|
|
1043
1045
|
4: {
|
|
1044
|
-
render: (value: unknown) =>
|
|
1046
|
+
render: (value: unknown) => JSX.Element;
|
|
1045
1047
|
};
|
|
1046
1048
|
};
|
|
1047
1049
|
export class MicromUsersGroupsMenusDef extends EntityDefinition {
|
|
@@ -1068,8 +1070,8 @@ export class MicromUsersGroupsMenusDef extends EntityDefinition {
|
|
|
1068
1070
|
};
|
|
1069
1071
|
};
|
|
1070
1072
|
clientActions: {
|
|
1071
|
-
ACTEnableMenus:
|
|
1072
|
-
ACTDisableMenus:
|
|
1073
|
+
ACTEnableMenus: _EntityClientAction1;
|
|
1074
|
+
ACTDisableMenus: _EntityClientAction1;
|
|
1073
1075
|
};
|
|
1074
1076
|
constructor();
|
|
1075
1077
|
}
|
|
@@ -1088,7 +1090,7 @@ export interface MicromUsersGroupsFormProps extends FormOptions<MicromUsersGroup
|
|
|
1088
1090
|
membersTabLabel?: string;
|
|
1089
1091
|
}
|
|
1090
1092
|
export const MicromUsersGroupsFormDefaultProps: Partial<MicromUsersGroupsFormProps>;
|
|
1091
|
-
export function MicromUsersGroupsForm(props: MicromUsersGroupsFormProps):
|
|
1093
|
+
export function MicromUsersGroupsForm(props: MicromUsersGroupsFormProps): JSX.Element;
|
|
1092
1094
|
export class MicromUsersGroups extends Entity<MicromUsersGroupsDef> {
|
|
1093
1095
|
constructor(client: MicroMClient, parentKeys?: {});
|
|
1094
1096
|
}
|
|
@@ -1162,7 +1164,7 @@ export interface MicromUsersFormProps extends FormOptions<MicromUsers> {
|
|
|
1162
1164
|
willUnlockInNextLogonLabel?: string;
|
|
1163
1165
|
}
|
|
1164
1166
|
export const MicromUsersFormDefaultProps: Partial<MicromUsersFormProps>;
|
|
1165
|
-
export function MicromUsersForm(props: MicromUsersFormProps):
|
|
1167
|
+
export function MicromUsersForm(props: MicromUsersFormProps): JSX.Element;
|
|
1166
1168
|
export class MicromUsers extends Entity<MicromUsersDef> {
|
|
1167
1169
|
constructor(client: MicroMClient, parentKeys?: {});
|
|
1168
1170
|
}
|
|
@@ -1207,7 +1209,7 @@ export interface MicromUsersStatusPanel {
|
|
|
1207
1209
|
loginInfoTitle?: string;
|
|
1208
1210
|
}
|
|
1209
1211
|
export const MicromUsersStatusPanelDefaultProps: Partial<MicromUsersStatusPanel>;
|
|
1210
|
-
export function MicromMUsersStatusPanel(props: MicromUsersStatusPanel):
|
|
1212
|
+
export function MicromMUsersStatusPanel(props: MicromUsersStatusPanel): JSX.Element;
|
|
1211
1213
|
export class FileStoreProcessDef extends EntityDefinition {
|
|
1212
1214
|
columns: {
|
|
1213
1215
|
dt_inserttime: EntityColumn<Date>;
|
|
@@ -1423,7 +1425,7 @@ export interface CircleFilledIconProps {
|
|
|
1423
1425
|
mr?: string;
|
|
1424
1426
|
}
|
|
1425
1427
|
export const CircleFilledIconDefaultProps: Partial<CircleFilledIconProps>;
|
|
1426
|
-
export const CircleFilledIcon:
|
|
1428
|
+
export const CircleFilledIcon: ForwardRefExoticComponent<CircleFilledIconProps & RefAttributes<HTMLInputElement>>;
|
|
1427
1429
|
export interface ImportEntityDataLabels {
|
|
1428
1430
|
Icon?: (props: IconProps) => ReactNode;
|
|
1429
1431
|
Title?: string;
|
|
@@ -1457,7 +1459,7 @@ export interface ImportEntityDataFormProps extends FormOptions<ImportEntityData>
|
|
|
1457
1459
|
rowColumnTitle?: string;
|
|
1458
1460
|
}
|
|
1459
1461
|
export const ImportEntityDataFormDefaultProps: Partial<ImportEntityDataFormProps>;
|
|
1460
|
-
export function ImportEntityDataForm(props: ImportEntityDataFormProps):
|
|
1462
|
+
export function ImportEntityDataForm(props: ImportEntityDataFormProps): JSX.Element;
|
|
1461
1463
|
export class EmailServiceConfigurationDef extends EntityDefinition {
|
|
1462
1464
|
columns: {
|
|
1463
1465
|
dt_inserttime: EntityColumn<Date>;
|
|
@@ -1495,8 +1497,8 @@ export interface EmailServiceConfigurationFormProps extends FormOptions<EmailSer
|
|
|
1495
1497
|
setDefaultMessageButtonLabel?: string;
|
|
1496
1498
|
}
|
|
1497
1499
|
export const EmailServiceConfigurationFormDefaultProps: Partial<EmailServiceConfigurationFormProps>;
|
|
1498
|
-
export function EmailServiceConfigurationForm(props: EmailServiceConfigurationFormProps):
|
|
1499
|
-
export const EmailServiceConfigurationIcon:
|
|
1500
|
+
export function EmailServiceConfigurationForm(props: EmailServiceConfigurationFormProps): JSX.Element;
|
|
1501
|
+
export const EmailServiceConfigurationIcon: ForwardRefExoticComponent<IconProps & RefAttributes<Icon>>;
|
|
1500
1502
|
export const EmailServiceConfigurationHelpText = "* Configure your email server settings.";
|
|
1501
1503
|
export const EmailServiceConfigurationTitle = "Email Service Configuration";
|
|
1502
1504
|
export class EmailServiceConfiguration extends Entity<EmailServiceConfigurationDef> {
|
|
@@ -1569,9 +1571,9 @@ export interface FilePreviewProps {
|
|
|
1569
1571
|
closeText: string;
|
|
1570
1572
|
filePreviewError?: string;
|
|
1571
1573
|
}
|
|
1572
|
-
export function ImagePreview({ documentURL, onClose, closeText }: FilePreviewProps):
|
|
1574
|
+
export function ImagePreview({ documentURL, onClose, closeText }: FilePreviewProps): JSX.Element;
|
|
1573
1575
|
export const PDFPreviewDefaultProps: Partial<FilePreviewProps>;
|
|
1574
|
-
export function PDFPreview(props: FilePreviewProps):
|
|
1576
|
+
export function PDFPreview(props: FilePreviewProps): JSX.Element;
|
|
1575
1577
|
export type PreviewFileTypes = 'image' | 'pdf' | 'other';
|
|
1576
1578
|
export const getFileType: (file_name: string) => PreviewFileTypes;
|
|
1577
1579
|
export interface FileUploaderProps extends Omit<DropzoneProps, 'children' | 'onDrop' | 'maxSize' | 'maxFiles'> {
|
|
@@ -1592,7 +1594,7 @@ export interface FileUploaderProps extends Omit<DropzoneProps, 'children' | 'onD
|
|
|
1592
1594
|
parentFormAPI?: UseEntityFormReturnType;
|
|
1593
1595
|
}
|
|
1594
1596
|
export const FileUploaderDefaultProps: Partial<FileUploaderProps>;
|
|
1595
|
-
export function FileUploader(props: FileUploaderProps):
|
|
1597
|
+
export function FileUploader(props: FileUploaderProps): JSX.Element;
|
|
1596
1598
|
export interface FilesUploadFormProps extends UseFileUploadProps {
|
|
1597
1599
|
fileProcessColumn: EntityColumn<string>;
|
|
1598
1600
|
onOK?: (fileprocess_id: string, uploadProgress: Record<string, UploadProgressReport>) => void;
|
|
@@ -1605,7 +1607,7 @@ export interface FilesUploadFormProps extends UseFileUploadProps {
|
|
|
1605
1607
|
onValidateFile?: (file: File) => Promise<ValidateFileReturnType>;
|
|
1606
1608
|
}
|
|
1607
1609
|
export const FilesUploadFormDefaultProps: Partial<FilesUploadFormProps>;
|
|
1608
|
-
export function FilesUploadForm(props: FilesUploadFormProps):
|
|
1610
|
+
export function FilesUploadForm(props: FilesUploadFormProps): JSX.Element;
|
|
1609
1611
|
export interface ModalFileUploadProps {
|
|
1610
1612
|
client: MicroMClient;
|
|
1611
1613
|
fileProcessColumn: EntityColumn<string>;
|
|
@@ -1682,9 +1684,9 @@ export function useExportToExcel(props: UseExportToExcelProps): {
|
|
|
1682
1684
|
};
|
|
1683
1685
|
export interface UseViewFiltersProps extends Omit<UseEntityFormOptions, 'noSaveOnSubmit'> {
|
|
1684
1686
|
}
|
|
1685
|
-
export function useViewFiltersForm(props: UseViewFiltersProps):
|
|
1687
|
+
export function useViewFiltersForm(props: UseViewFiltersProps): _UseEntityFormReturnType1;
|
|
1686
1688
|
export const ApplyFiltersDefaultLabel = "Apply Filters";
|
|
1687
|
-
export function AutoFiltersForm(props: FormOptions<Entity<EntityDefinition>>):
|
|
1689
|
+
export function AutoFiltersForm(props: FormOptions<Entity<EntityDefinition>>): JSX.Element;
|
|
1688
1690
|
export function createEntityForm<T extends FormOptions<Entity<EntityDefinition>>>(props: T): Promise<ReactNode>;
|
|
1689
1691
|
export interface openEntityFormProps<T extends FormOptions<Entity<EntityDefinition>>> {
|
|
1690
1692
|
modals: ModalContextType;
|
|
@@ -1758,7 +1760,7 @@ export interface SearchFilterInputProps extends MultiSelectProps {
|
|
|
1758
1760
|
[x: string]: any;
|
|
1759
1761
|
}
|
|
1760
1762
|
export const SearchFilterInputDefaultProps: Partial<SearchFilterInputProps>;
|
|
1761
|
-
export const SearchFilterInput:
|
|
1763
|
+
export const SearchFilterInput: ForwardRefExoticComponent<Omit<SearchFilterInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
1762
1764
|
export function useFirstVisible(ref: React.RefObject<HTMLElement>, options?: IntersectionObserverInit): boolean;
|
|
1763
1765
|
export interface OpenFormProps {
|
|
1764
1766
|
entity: Entity<EntityDefinition>;
|
|
@@ -1948,8 +1950,8 @@ export type GridOptions = {
|
|
|
1948
1950
|
export type GridImperative = {};
|
|
1949
1951
|
export const DefaultGridProps: Partial<GridOptions>;
|
|
1950
1952
|
export const DefaultGridColumnProps: Partial<GridColumn>;
|
|
1951
|
-
export const Grid:
|
|
1952
|
-
export function GridGlobalStyles():
|
|
1953
|
+
export const Grid: ForwardRefExoticComponent<GridOptions & RefAttributes<GridImperative>>;
|
|
1954
|
+
export function GridGlobalStyles(): JSX.Element;
|
|
1953
1955
|
export interface UseDataGridToolbarFiltersProps {
|
|
1954
1956
|
filterValues: ValuesObject | undefined;
|
|
1955
1957
|
setFilterValues: Dispatch<SetStateAction<ValuesObject | undefined>>;
|
|
@@ -2034,15 +2036,15 @@ export interface DataGridToolbarOptions {
|
|
|
2034
2036
|
configMenuDropdown?: ReactNode;
|
|
2035
2037
|
}
|
|
2036
2038
|
export const DataGridToolbarDefaultProps: Partial<DataGridToolbarOptions>;
|
|
2037
|
-
export function DataGridToolbar(props: DataGridToolbarOptions):
|
|
2039
|
+
export function DataGridToolbar(props: DataGridToolbarOptions): JSX.Element;
|
|
2038
2040
|
export interface DataGridColumnsMenuProps {
|
|
2039
2041
|
columns?: GridColumn[];
|
|
2040
2042
|
setColumns: (columns: GridColumn[]) => void;
|
|
2041
2043
|
setOpened: (opened: boolean) => void;
|
|
2042
2044
|
}
|
|
2043
|
-
export function DataGridColumnsMenu(props: DataGridColumnsMenuProps):
|
|
2045
|
+
export function DataGridColumnsMenu(props: DataGridColumnsMenuProps): JSX.Element;
|
|
2044
2046
|
export const DataGridDefaultProps: Partial<DataGridProps>;
|
|
2045
|
-
export function DataGrid(props: DataGridProps):
|
|
2047
|
+
export function DataGrid(props: DataGridProps): JSX.Element;
|
|
2046
2048
|
export interface DataGridFormProps extends DataGridProps {
|
|
2047
2049
|
customTitle?: ReactNode;
|
|
2048
2050
|
title?: string;
|
|
@@ -2052,7 +2054,7 @@ export interface DataGridFormProps extends DataGridProps {
|
|
|
2052
2054
|
showTitle?: boolean;
|
|
2053
2055
|
}
|
|
2054
2056
|
export const DataGridFormDefaultProps: Partial<DataGridFormProps>;
|
|
2055
|
-
export function DataGridForm(props: DataGridFormProps):
|
|
2057
|
+
export function DataGridForm(props: DataGridFormProps): JSX.Element;
|
|
2056
2058
|
export interface useDataGridFormType {
|
|
2057
2059
|
open: ({ entity, viewName, onClosed, selectionMode, modalProps, search, modalTitle, gridTitle }: ModalDataGridProps) => void;
|
|
2058
2060
|
}
|
|
@@ -2078,7 +2080,7 @@ export interface DataGridPageProps extends Omit<DataGridProps, 'entity' | 'title
|
|
|
2078
2080
|
showTitle?: boolean;
|
|
2079
2081
|
}
|
|
2080
2082
|
export const DataGridPageDefaultProps: Partial<DataGridPageProps>;
|
|
2081
|
-
export function DataGridPage(props: DataGridPageProps):
|
|
2083
|
+
export function DataGridPage(props: DataGridPageProps): JSX.Element;
|
|
2082
2084
|
export interface EntityCardProps<T extends ValuesObject> {
|
|
2083
2085
|
entity: Entity<EntityDefinition>;
|
|
2084
2086
|
recordIndex: number;
|
|
@@ -2100,13 +2102,13 @@ export interface EntityCardProps<T extends ValuesObject> {
|
|
|
2100
2102
|
cardHrefTarget?: string;
|
|
2101
2103
|
}
|
|
2102
2104
|
export const DataViewDefaultProps: Partial<DataViewProps>;
|
|
2103
|
-
export const DataView:
|
|
2105
|
+
export const DataView: ForwardRefExoticComponent<DataViewProps & RefAttributes<HTMLElement>>;
|
|
2104
2106
|
export interface DataViewCardContainerProps extends EntityCardProps<ValuesObject> {
|
|
2105
2107
|
EntityCard?: ComponentType<EntityCardProps<ValuesObject>>;
|
|
2106
2108
|
CardProps?: Omit<CardProps, 'children'>;
|
|
2107
2109
|
}
|
|
2108
2110
|
export const DataViewCardContainerDefaultProps: Partial<DataViewCardContainerProps>;
|
|
2109
|
-
export function DataViewCardContainer(props: DataViewCardContainerProps):
|
|
2111
|
+
export function DataViewCardContainer(props: DataViewCardContainerProps): JSX.Element;
|
|
2110
2112
|
export type DataViewLimit = '50' | '100' | '500' | '1000' | '10000' | '0';
|
|
2111
2113
|
export const DataViewLimitData: (rowsLabel: string, unlimitedLabel: string) => SelectItem[];
|
|
2112
2114
|
export type DataViewSelection = number[];
|
|
@@ -2261,18 +2263,18 @@ export interface DataViewPageProps extends Omit<DataViewProps, 'entity'> {
|
|
|
2261
2263
|
client: MicroMClient;
|
|
2262
2264
|
entityConstructor: (client: MicroMClient) => Entity<EntityDefinition>;
|
|
2263
2265
|
}
|
|
2264
|
-
export function DataViewPage(props: DataViewPageProps):
|
|
2266
|
+
export function DataViewPage(props: DataViewPageProps): JSX.Element;
|
|
2265
2267
|
export function useViewState(search?: string[], limit?: DataViewLimit): {
|
|
2266
2268
|
searchText: string[] | undefined;
|
|
2267
|
-
setSearchText:
|
|
2269
|
+
setSearchText: Dispatch<SetStateAction<string[] | undefined>>;
|
|
2268
2270
|
limitRows: string | null;
|
|
2269
|
-
setLimitRows:
|
|
2271
|
+
setLimitRows: Dispatch<SetStateAction<string | null>>;
|
|
2270
2272
|
refresh: boolean;
|
|
2271
|
-
setRefresh:
|
|
2273
|
+
setRefresh: Dispatch<SetStateAction<boolean>>;
|
|
2272
2274
|
filterValues: ValuesObject | undefined;
|
|
2273
|
-
setFilterValues:
|
|
2275
|
+
setFilterValues: Dispatch<SetStateAction<ValuesObject | undefined>>;
|
|
2274
2276
|
filtersDescription: ValuesObject | undefined;
|
|
2275
|
-
setFiltersDescription:
|
|
2277
|
+
setFiltersDescription: Dispatch<SetStateAction<ValuesObject | undefined>>;
|
|
2276
2278
|
};
|
|
2277
2279
|
export interface LookupProps {
|
|
2278
2280
|
parentKeys?: ValuesObject;
|
|
@@ -2298,7 +2300,7 @@ export interface LookupProps {
|
|
|
2298
2300
|
enableView?: boolean;
|
|
2299
2301
|
}
|
|
2300
2302
|
export const LookupDefaultProps: Partial<LookupProps>;
|
|
2301
|
-
export function Lookup(props: LookupProps):
|
|
2303
|
+
export function Lookup(props: LookupProps): JSX.Element;
|
|
2302
2304
|
export interface LookupFormProps {
|
|
2303
2305
|
dataGridProps: DataGridProps;
|
|
2304
2306
|
onOK: (selectedKeys: DataGridSelectionKeys) => void;
|
|
@@ -2308,7 +2310,7 @@ export interface LookupFormProps {
|
|
|
2308
2310
|
cancelLabel?: string;
|
|
2309
2311
|
}
|
|
2310
2312
|
export const LookupFormDefaultProps: Partial<LookupFormProps>;
|
|
2311
|
-
export function LookupForm(props: LookupFormProps):
|
|
2313
|
+
export function LookupForm(props: LookupFormProps): JSX.Element;
|
|
2312
2314
|
export interface LookupResultState {
|
|
2313
2315
|
columnName: string;
|
|
2314
2316
|
key: Value;
|
|
@@ -2383,7 +2385,7 @@ export interface LookupFormActionProps {
|
|
|
2383
2385
|
showActions?: boolean;
|
|
2384
2386
|
}
|
|
2385
2387
|
export const LookupFormActionDefaultProps: Partial<LookupFormActionProps>;
|
|
2386
|
-
export function LookupFormAction(props: LookupFormActionProps):
|
|
2388
|
+
export function LookupFormAction(props: LookupFormActionProps): JSX.Element;
|
|
2387
2389
|
export function useExecuteLookup({ entity, lookupDefName, parentKeys }: UseLookupEntityOptions): {
|
|
2388
2390
|
execute: () => Promise<OperationStatus<string> | undefined>;
|
|
2389
2391
|
status: OperationStatus<string>;
|
|
@@ -2402,14 +2404,14 @@ export interface LoginModalFormProps {
|
|
|
2402
2404
|
centered?: boolean;
|
|
2403
2405
|
}
|
|
2404
2406
|
export const LoginModalFormDefaultProps: Partial<LoginModalFormProps>;
|
|
2405
|
-
export function LoginModalForm(props: LoginModalFormProps):
|
|
2407
|
+
export function LoginModalForm(props: LoginModalFormProps): JSX.Element;
|
|
2406
2408
|
export interface WeekPickerProps extends CalendarProps {
|
|
2407
2409
|
weekStartDatevalue: Date | null;
|
|
2408
2410
|
setWeekStartValue: (value: Date | null) => void;
|
|
2409
2411
|
setWeekEndValue?: (value: Date | null) => void;
|
|
2410
2412
|
allowDeselect?: boolean;
|
|
2411
2413
|
}
|
|
2412
|
-
export function WeekPicker(props: WeekPickerProps):
|
|
2414
|
+
export function WeekPicker(props: WeekPickerProps): JSX.Element;
|
|
2413
2415
|
export interface WeekPickerFieldProps extends Omit<WeekPickerProps, 'weekStartDatevalue' | 'setWeekStartValue' | 'setWeekEndValue'> {
|
|
2414
2416
|
weekStartDateColumn: EntityColumn<Date | null>;
|
|
2415
2417
|
weekEndDateColumn?: EntityColumn<Date | null>;
|
|
@@ -2432,7 +2434,7 @@ export interface WeekPickerFieldProps extends Omit<WeekPickerProps, 'weekStartDa
|
|
|
2432
2434
|
description?: string;
|
|
2433
2435
|
}
|
|
2434
2436
|
export const WeekPickerFieldDefaultProps: Partial<WeekPickerFieldProps>;
|
|
2435
|
-
export function WeekPickerField(props: WeekPickerFieldProps):
|
|
2437
|
+
export function WeekPickerField(props: WeekPickerFieldProps): JSX.Element;
|
|
2436
2438
|
export interface PinFieldProps extends Omit<PinInputProps, 'validate'>, Omit<useTextTransformProps, 'entityForm' | 'column'> {
|
|
2437
2439
|
column: EntityColumn<Value>;
|
|
2438
2440
|
entityForm: UseEntityFormReturnType;
|
|
@@ -2447,7 +2449,7 @@ export interface PinFieldProps extends Omit<PinInputProps, 'validate'>, Omit<use
|
|
|
2447
2449
|
label?: string;
|
|
2448
2450
|
}
|
|
2449
2451
|
export const PinFieldDefaultProps: Partial<PinFieldProps>;
|
|
2450
|
-
export function PinField(props: PinFieldProps):
|
|
2452
|
+
export function PinField(props: PinFieldProps): JSX.Element;
|
|
2451
2453
|
export function useExecuteProcess(entity: Entity<EntityDefinition>, proc: EntityProc): {
|
|
2452
2454
|
execute: (values?: ValuesObject) => Promise<OperationStatus<DBStatusResult> | undefined>;
|
|
2453
2455
|
status: OperationStatus<DBStatusResult>;
|
|
@@ -2467,7 +2469,7 @@ export interface SwitchFieldProps extends SwitchProps {
|
|
|
2467
2469
|
disableOnLoading?: boolean;
|
|
2468
2470
|
requiredMessage?: ReactNode;
|
|
2469
2471
|
}
|
|
2470
|
-
export function SwitchField(props: SwitchFieldProps):
|
|
2472
|
+
export function SwitchField(props: SwitchFieldProps): JSX.Element;
|
|
2471
2473
|
export interface RecoverPasswordOptions {
|
|
2472
2474
|
client: MicroMClient;
|
|
2473
2475
|
changedSuccessfullyURL?: string;
|
|
@@ -2489,7 +2491,7 @@ export interface RecoverPasswordValues {
|
|
|
2489
2491
|
password: string;
|
|
2490
2492
|
recovery_code: string;
|
|
2491
2493
|
}
|
|
2492
|
-
export function RecoverPassword(props: RecoverPasswordOptions):
|
|
2494
|
+
export function RecoverPassword(props: RecoverPasswordOptions): JSX.Element;
|
|
2493
2495
|
export interface RecoverPasswordEmailOptions {
|
|
2494
2496
|
client: MicroMClient;
|
|
2495
2497
|
onStatusCompleted?: StatusCompletedHandler<DBStatusResult>;
|
|
@@ -2504,7 +2506,7 @@ export const RecoverPasswordEmailDefaultProps: Partial<RecoverPasswordEmailOptio
|
|
|
2504
2506
|
export interface RecoverPasswordEmailValues {
|
|
2505
2507
|
username: string;
|
|
2506
2508
|
}
|
|
2507
|
-
export function RecoverPasswordEmail(props: RecoverPasswordEmailOptions):
|
|
2509
|
+
export function RecoverPasswordEmail(props: RecoverPasswordEmailOptions): JSX.Element;
|
|
2508
2510
|
export function useEvent<T extends (...args: any[]) => any>(callback: T): T;
|
|
2509
2511
|
export function moneyFormatter(value: string, currencySymbol: string): string;
|
|
2510
2512
|
export function moneyParser(value: string): string;
|
|
@@ -2514,7 +2516,7 @@ export interface MoneyRangeFieldProps extends Omit<NumberFieldProps, 'parser' |
|
|
|
2514
2516
|
thousandsStep?: number;
|
|
2515
2517
|
}
|
|
2516
2518
|
export const MoneyRangeFieldDefaultProps: Partial<MoneyRangeFieldProps>;
|
|
2517
|
-
export function MoneyRangeField(props: MoneyRangeFieldProps):
|
|
2519
|
+
export function MoneyRangeField(props: MoneyRangeFieldProps): JSX.Element;
|
|
2518
2520
|
export interface RadioGroupFieldProps extends ComponentPropsWithoutRef<typeof Radio.Group> {
|
|
2519
2521
|
column: EntityColumn<Value>;
|
|
2520
2522
|
entityForm: UseEntityFormReturnType;
|
|
@@ -2528,7 +2530,7 @@ export interface RadioGroupFieldProps extends ComponentPropsWithoutRef<typeof Ra
|
|
|
2528
2530
|
showDescription?: boolean;
|
|
2529
2531
|
}
|
|
2530
2532
|
export const RadioGroupFieldDefaultProps: Partial<RadioGroupFieldProps>;
|
|
2531
|
-
export const RadioGroupField:
|
|
2533
|
+
export const RadioGroupField: ForwardRefExoticComponent<RadioGroupFieldProps & RefAttributes<HTMLInputElement>>;
|
|
2532
2534
|
type SizeInput = {
|
|
2533
2535
|
width: string;
|
|
2534
2536
|
height: string;
|
|
@@ -2538,7 +2540,7 @@ type Size = {
|
|
|
2538
2540
|
height: number;
|
|
2539
2541
|
};
|
|
2540
2542
|
export function useAncestorResize(minSize?: SizeInput): {
|
|
2541
|
-
ref:
|
|
2543
|
+
ref: RefObject<HTMLDivElement>;
|
|
2542
2544
|
size: Size;
|
|
2543
2545
|
};
|
|
2544
2546
|
export function useResponsiveWidth(maxWidthRem: string, paddingRem: string): string;
|
|
@@ -2567,7 +2569,7 @@ export const useLookupSelect: (props: UseLookupSelectOptions) => {
|
|
|
2567
2569
|
onFocus?: any;
|
|
2568
2570
|
onBlur?: any;
|
|
2569
2571
|
};
|
|
2570
|
-
status:
|
|
2572
|
+
status: _OperationStatus1<_DataResult1[]>;
|
|
2571
2573
|
};
|
|
2572
2574
|
export interface CustomSelectProps extends Omit<SelectProps, 'data'> {
|
|
2573
2575
|
}
|
|
@@ -2591,7 +2593,7 @@ export interface LookupSelectOptions {
|
|
|
2591
2593
|
editButtonVariant?: ButtonVariant;
|
|
2592
2594
|
}
|
|
2593
2595
|
export const LookupSelectDefaultProps: Partial<LookupSelectOptions>;
|
|
2594
|
-
export const LookupSelect:
|
|
2596
|
+
export const LookupSelect: ForwardRefExoticComponent<LookupSelectOptions & RefAttributes<HTMLInputElement>>;
|
|
2595
2597
|
export interface EntityActionButtonProps extends Omit<ButtonProps, 'leftIcon'> {
|
|
2596
2598
|
entity: Entity<EntityDefinition>;
|
|
2597
2599
|
action: EntityClientAction;
|
|
@@ -2599,7 +2601,7 @@ export interface EntityActionButtonProps extends Omit<ButtonProps, 'leftIcon'> {
|
|
|
2599
2601
|
label?: string;
|
|
2600
2602
|
onClose?: (result?: boolean) => Promise<boolean>;
|
|
2601
2603
|
}
|
|
2602
|
-
export function EntityActionButton(props: EntityActionButtonProps):
|
|
2604
|
+
export function EntityActionButton(props: EntityActionButtonProps): JSX.Element;
|
|
2603
2605
|
export interface RingProgressFieldProps extends Omit<CardProps, 'children'> {
|
|
2604
2606
|
column: EntityColumn<number>;
|
|
2605
2607
|
loading?: boolean;
|
|
@@ -2617,7 +2619,7 @@ export interface RingProgressFieldProps extends Omit<CardProps, 'children'> {
|
|
|
2617
2619
|
iconColor?: MantineColor;
|
|
2618
2620
|
}
|
|
2619
2621
|
export const RingProgressFieldDefaultProps: Partial<RingProgressFieldProps>;
|
|
2620
|
-
export function RingProgressField(props: RingProgressFieldProps):
|
|
2622
|
+
export function RingProgressField(props: RingProgressFieldProps): JSX.Element;
|
|
2621
2623
|
export interface LookupMultiSelectProps extends Omit<MultiSelectProps, 'data'> {
|
|
2622
2624
|
parentKeys?: ValuesObject;
|
|
2623
2625
|
column: EntityColumn<Value>;
|
|
@@ -2632,7 +2634,7 @@ export interface LookupMultiSelectProps extends Omit<MultiSelectProps, 'data'> {
|
|
|
2632
2634
|
grow?: boolean;
|
|
2633
2635
|
}
|
|
2634
2636
|
export const LookupMultiSelectDefaultProps: Partial<LookupMultiSelectProps>;
|
|
2635
|
-
export function LookupMultiSelect(props: LookupMultiSelectProps):
|
|
2637
|
+
export function LookupMultiSelect(props: LookupMultiSelectProps): JSX.Element;
|
|
2636
2638
|
export interface MenuItem {
|
|
2637
2639
|
ID: string;
|
|
2638
2640
|
link?: string;
|
|
@@ -2658,7 +2660,7 @@ export interface MicroMRouterState {
|
|
|
2658
2660
|
navigate: (newPath: string) => void;
|
|
2659
2661
|
navigationState: NavigationState;
|
|
2660
2662
|
}
|
|
2661
|
-
export const MicroMRouterContext:
|
|
2663
|
+
export const MicroMRouterContext: Context<MicroMRouterState | undefined>;
|
|
2662
2664
|
export const useMicroMRouter: () => MicroMRouterState;
|
|
2663
2665
|
export interface MenuItemsProps {
|
|
2664
2666
|
AllItems: MenuItem[];
|
|
@@ -2676,7 +2678,7 @@ export interface MenuItemsProps {
|
|
|
2676
2678
|
autoHideNavBarOnClick?: boolean;
|
|
2677
2679
|
}
|
|
2678
2680
|
export const MenuItemsPropsDefaultProps: Partial<MenuItemsProps>;
|
|
2679
|
-
export function MenuNavLinks(props: MenuItemsProps):
|
|
2681
|
+
export function MenuNavLinks(props: MenuItemsProps): JSX.Element;
|
|
2680
2682
|
export interface MenuProps {
|
|
2681
2683
|
items: MenuItem[];
|
|
2682
2684
|
setContent: Dispatch<SetStateAction<ReactNode>>;
|
|
@@ -2690,7 +2692,7 @@ export interface MenuProps {
|
|
|
2690
2692
|
autoCloseOnItemClickWhenSmallScreen?: boolean;
|
|
2691
2693
|
}
|
|
2692
2694
|
export const MenuDefaultProps: Partial<MenuProps>;
|
|
2693
|
-
export function MenuNavBar(props: MenuProps):
|
|
2695
|
+
export function MenuNavBar(props: MenuProps): JSX.Element;
|
|
2694
2696
|
export interface MenuPanelProps {
|
|
2695
2697
|
setContent: Dispatch<SetStateAction<ReactNode>>;
|
|
2696
2698
|
setOpened: Dispatch<SetStateAction<boolean>>;
|
|
@@ -2703,7 +2705,7 @@ export interface MenuPanelProps {
|
|
|
2703
2705
|
autoCloseOnItemClickWhenSmallScreen?: boolean;
|
|
2704
2706
|
}
|
|
2705
2707
|
export const MenuPanelDefaultProps: Partial<MenuPanelProps>;
|
|
2706
|
-
export function MenuNavBarPanel(props: MenuPanelProps):
|
|
2708
|
+
export function MenuNavBarPanel(props: MenuPanelProps): JSX.Element;
|
|
2707
2709
|
export interface MenuContentProps {
|
|
2708
2710
|
client: MicroMClient;
|
|
2709
2711
|
menuId: string;
|
|
@@ -2763,21 +2765,21 @@ export interface AvatarUploaderProps extends Omit<AvatarProps, 'src'> {
|
|
|
2763
2765
|
PlaceHolderIcon?: React.ReactNode;
|
|
2764
2766
|
readOnlyMode?: boolean;
|
|
2765
2767
|
}
|
|
2766
|
-
export function AvatarUploader(props: AvatarUploaderProps):
|
|
2768
|
+
export function AvatarUploader(props: AvatarUploaderProps): JSX.Element;
|
|
2767
2769
|
export interface LinkProps {
|
|
2768
2770
|
to: string;
|
|
2769
2771
|
children: React.ReactNode;
|
|
2770
2772
|
}
|
|
2771
|
-
export function Link(props: LinkProps):
|
|
2773
|
+
export function Link(props: LinkProps): JSX.Element;
|
|
2772
2774
|
export function useNavigation(): MicroMRouterState;
|
|
2773
2775
|
export function MicroMRouter(props: {
|
|
2774
2776
|
children: ReactNode;
|
|
2775
|
-
}):
|
|
2777
|
+
}): JSX.Element;
|
|
2776
2778
|
export interface RouteProps {
|
|
2777
2779
|
path: string;
|
|
2778
2780
|
children: React.ReactNode;
|
|
2779
2781
|
}
|
|
2780
|
-
export function Route(props: RouteProps):
|
|
2782
|
+
export function Route(props: RouteProps): JSX.Element | null;
|
|
2781
2783
|
export const DEFAULT_MAP_CENTER: latLng;
|
|
2782
2784
|
export type GoogleMapsAddressComponentType = 'street_address' | 'route' | 'intersection' | 'political' | 'country' | 'administrative_area_level_1' | 'administrative_area_level_2' | 'administrative_area_level_3' | 'administrative_area_level_4' | 'administrative_area_level_5' | 'administrative_area_level_6' | 'administrative_area_level_7' | 'colloquial_area' | 'locality' | 'sublocality' | 'sublocality_level_1' | 'sublocality_level_2' | 'sublocality_level_3' | 'sublocality_level_4' | 'sublocality_level_5' | 'neighborhood' | 'premise' | 'subpremise' | 'plus_code' | 'postal_code' | 'natural_feature' | 'airport' | 'park' | 'point_of_interest' | 'floor' | 'establishment' | 'landmark' | 'parking' | 'post_box' | 'postal_town' | 'room' | 'street_number' | 'bus_station' | 'train_station' | 'transit_station';
|
|
2783
2785
|
export type AddressComponentValue = {
|
|
@@ -2846,7 +2848,7 @@ export function useGoogleMapsAPI(): {
|
|
|
2846
2848
|
callback: (result: google.maps.places.PlaceResult | null, status: google.maps.places.PlacesServiceStatus) => void;
|
|
2847
2849
|
}) => void;
|
|
2848
2850
|
geocode: (request: google.maps.GeocoderRequest, callback: (results: google.maps.GeocoderResult[] | null | undefined, status: google.maps.GeocoderStatus | null | undefined) => void) => void;
|
|
2849
|
-
attributionsRef:
|
|
2851
|
+
attributionsRef: RefObject<HTMLDivElement>;
|
|
2850
2852
|
refreshSessionToken: () => void;
|
|
2851
2853
|
geometryReady: boolean;
|
|
2852
2854
|
getPlaceDetails: (props: {
|
|
@@ -2862,8 +2864,8 @@ export function useGoogleAddressMapping(): {
|
|
|
2862
2864
|
mapGoogleAddressComponents: (addressComponents: google.maps.GeocoderAddressComponent[], mappingRules: AddressMappingRule[]) => MappedAddressResult;
|
|
2863
2865
|
};
|
|
2864
2866
|
export function useGoogleAddressAutocomplete({ onAddressFound, restrictions, onChange, value, onAPIError, mappingRules, iconColor }: GoogleAddressAutocompleteProps): {
|
|
2865
|
-
userInputRef:
|
|
2866
|
-
attributionsRef:
|
|
2867
|
+
userInputRef: RefObject<HTMLInputElement>;
|
|
2868
|
+
attributionsRef: RefObject<HTMLDivElement>;
|
|
2867
2869
|
isLoading: boolean;
|
|
2868
2870
|
handleOnUserInputChange: (value: string) => void;
|
|
2869
2871
|
handleOnItemSubmit: (item: AutocompleteItem & {
|
|
@@ -2892,7 +2894,7 @@ export type GoogleAddressAutocompleteProps = Omit<AutocompleteProps, 'data'> & {
|
|
|
2892
2894
|
iconColor?: MantineColor;
|
|
2893
2895
|
};
|
|
2894
2896
|
export const DefaultGoogleAddressAutocompleteProps: Partial<GoogleAddressAutocompleteProps>;
|
|
2895
|
-
export function GoogleAddressAutocomplete(props: GoogleAddressAutocompleteProps):
|
|
2897
|
+
export function GoogleAddressAutocomplete(props: GoogleAddressAutocompleteProps): JSX.Element;
|
|
2896
2898
|
export interface GoogleMapZoomFeatureStyles {
|
|
2897
2899
|
styleDefault?: google.maps.FeatureStyleOptions;
|
|
2898
2900
|
styleClicked?: google.maps.FeatureStyleOptions;
|
|
@@ -2963,19 +2965,19 @@ export interface GoogleMapContextType {
|
|
|
2963
2965
|
infoWindowRef: RefObject<google.maps.InfoWindow>;
|
|
2964
2966
|
infoWindowContentRef?: RefObject<HTMLDivElement>;
|
|
2965
2967
|
}
|
|
2966
|
-
export const GoogleMapContext:
|
|
2968
|
+
export const GoogleMapContext: Context<GoogleMapContextType | null>;
|
|
2967
2969
|
export function useGoogleMap(): GoogleMapContextType;
|
|
2968
2970
|
export function useGoogleMapRegionSelector(props: GoogleMapRegionSelectorProps): {
|
|
2969
2971
|
applyStyle: (params: google.maps.FeatureStyleFunctionOptions) => google.maps.FeatureStyleOptions;
|
|
2970
2972
|
selectFeature: (features: google.maps.PlaceFeature[]) => void;
|
|
2971
2973
|
highLightFeature: (placeIds: string[]) => void;
|
|
2972
2974
|
currentZoomFeature: GoogleMapZoomFeature;
|
|
2973
|
-
setCurrentZoomFeature:
|
|
2975
|
+
setCurrentZoomFeature: Dispatch<SetStateAction<GoogleMapZoomFeature>>;
|
|
2974
2976
|
map: google.maps.Map | null;
|
|
2975
2977
|
handleClick: (e: google.maps.FeatureMouseEvent) => void;
|
|
2976
2978
|
handleMouseMove: (e: google.maps.FeatureMouseEvent) => void;
|
|
2977
2979
|
activeZoomFeatures: GoogleMapZoomFeature[];
|
|
2978
|
-
setActiveZoomFeatures:
|
|
2980
|
+
setActiveZoomFeatures: Dispatch<SetStateAction<GoogleMapZoomFeature[]>>;
|
|
2979
2981
|
refreshStyles: () => void;
|
|
2980
2982
|
};
|
|
2981
2983
|
export function GoogleMapRegionSelector(props: GoogleMapRegionSelectorProps): null;
|
|
@@ -2995,13 +2997,13 @@ export interface MarkerProps {
|
|
|
2995
2997
|
export const MarkerPropsDefault: Partial<MarkerProps>;
|
|
2996
2998
|
export function GoogleMarker(props: MarkerProps): undefined;
|
|
2997
2999
|
export function useCreateGoogleMap({ mapOptions, children, setInfoWindowContent, infoWindowContentRef }: GoogleMapProps): {
|
|
2998
|
-
containerRef:
|
|
3000
|
+
containerRef: RefObject<HTMLDivElement>;
|
|
2999
3001
|
mapContext: {
|
|
3000
3002
|
map: google.maps.Map | null;
|
|
3001
|
-
renderMarkers: () =>
|
|
3002
|
-
infoWindowRef:
|
|
3003
|
-
infoWindowContentRef:
|
|
3004
|
-
setInfoWindowContent:
|
|
3003
|
+
renderMarkers: () => ReactNode;
|
|
3004
|
+
infoWindowRef: MutableRefObject<google.maps.InfoWindow>;
|
|
3005
|
+
infoWindowContentRef: RefObject<HTMLDivElement> | undefined;
|
|
3006
|
+
setInfoWindowContent: Dispatch<SetStateAction<ReactNode>> | undefined;
|
|
3005
3007
|
};
|
|
3006
3008
|
};
|
|
3007
3009
|
export type GoogleMapProps = DefaultProps & PropsWithChildren<{
|
|
@@ -3010,7 +3012,7 @@ export type GoogleMapProps = DefaultProps & PropsWithChildren<{
|
|
|
3010
3012
|
setInfoWindowContent?: Dispatch<SetStateAction<ReactNode>>;
|
|
3011
3013
|
}>;
|
|
3012
3014
|
export const DefaultMapProps: Partial<GoogleMapProps>;
|
|
3013
|
-
export function GoogleMap(props: GoogleMapProps):
|
|
3015
|
+
export function GoogleMap(props: GoogleMapProps): JSX.Element;
|
|
3014
3016
|
export function useGoogleAddressMappingRules(): {
|
|
3015
3017
|
mappingRules: AddressMappingRule[];
|
|
3016
3018
|
addMappingRule: (rules: AddressMappingRule[]) => void;
|
|
@@ -3020,23 +3022,23 @@ export interface InfoWindowPortalProps {
|
|
|
3020
3022
|
container: Element | DocumentFragment;
|
|
3021
3023
|
children: React.ReactNode;
|
|
3022
3024
|
}
|
|
3023
|
-
export function InfoWindowPortal({ children, container }: InfoWindowPortalProps):
|
|
3025
|
+
export function InfoWindowPortal({ children, container }: InfoWindowPortalProps): ReactPortal;
|
|
3024
3026
|
export interface GoogleMapsInfoWindowProps {
|
|
3025
3027
|
container: Element | DocumentFragment;
|
|
3026
3028
|
infoWindowContent: React.ReactNode;
|
|
3027
3029
|
}
|
|
3028
|
-
export function GoogleMapsInfoWindow({ container, infoWindowContent }: GoogleMapsInfoWindowProps):
|
|
3030
|
+
export function GoogleMapsInfoWindow({ container, infoWindowContent }: GoogleMapsInfoWindowProps): JSX.Element;
|
|
3029
3031
|
export function useDefaultClusterRenderer(groupOfLabel?: string, locationsLabel?: string): {
|
|
3030
3032
|
render: (cluster: Cluster, stats: ClusterStats, map: google.maps.Map) => Marker;
|
|
3031
3033
|
};
|
|
3032
3034
|
export function useCreateGoogleMapCluster({ mapOptions, InitialMarkerClustererOptions, setInfoWindowContent, infoWindowContentRef, labels, markers, selectedMarkers }: GoogleMapClusterProps): {
|
|
3033
|
-
containerRef:
|
|
3035
|
+
containerRef: RefObject<HTMLDivElement>;
|
|
3034
3036
|
mapContext: {
|
|
3035
3037
|
map: google.maps.Map | null;
|
|
3036
3038
|
renderMarkers: () => never;
|
|
3037
|
-
infoWindowRef:
|
|
3038
|
-
infoWindowContentRef:
|
|
3039
|
-
setInfoWindowContent:
|
|
3039
|
+
infoWindowRef: MutableRefObject<google.maps.InfoWindow>;
|
|
3040
|
+
infoWindowContentRef: RefObject<HTMLDivElement> | undefined;
|
|
3041
|
+
setInfoWindowContent: Dispatch<SetStateAction<ReactNode>> | undefined;
|
|
3040
3042
|
};
|
|
3041
3043
|
};
|
|
3042
3044
|
export interface MapClusterOptions extends Omit<MarkerClustererOptions, 'map' | 'markers'> {
|
|
@@ -3055,12 +3057,12 @@ export type GoogleMapClusterProps = DefaultProps & PropsWithChildren<{
|
|
|
3055
3057
|
selectedMarkers: SelectedMarkerProps;
|
|
3056
3058
|
}>;
|
|
3057
3059
|
export const DefaultMapClusterProps: Partial<GoogleMapClusterProps>;
|
|
3058
|
-
export function GoogleMapCluster(props: GoogleMapClusterProps):
|
|
3060
|
+
export function GoogleMapCluster(props: GoogleMapClusterProps): JSX.Element;
|
|
3059
3061
|
export function getGoogleMapsStreetViewImage(location: google.maps.LatLng | google.maps.LatLngLiteral, width?: number, height?: number, fov?: number): string;
|
|
3060
3062
|
export interface GoogleMapRegionSelectorMapProps extends GoogleMapProps {
|
|
3061
3063
|
regionSelectorProps: Omit<GoogleMapRegionSelectorProps, 'googleMapsAPI'>;
|
|
3062
3064
|
}
|
|
3063
|
-
export function GoogleMapRegionSelectorMap(props: GoogleMapRegionSelectorMapProps):
|
|
3065
|
+
export function GoogleMapRegionSelectorMap(props: GoogleMapRegionSelectorMapProps): JSX.Element;
|
|
3064
3066
|
export interface AddressAutocompleteResult {
|
|
3065
3067
|
address?: MappedAddressResult;
|
|
3066
3068
|
position?: latLng;
|
|
@@ -3079,7 +3081,7 @@ export interface AddressAutocompleteProps extends Omit<GoogleAddressAutocomplete
|
|
|
3079
3081
|
countries: string[];
|
|
3080
3082
|
onAddressFound?: (addressResult?: AddressAutocompleteResult) => void;
|
|
3081
3083
|
}
|
|
3082
|
-
export function AddressAutocomplete(props: AddressAutocompleteProps):
|
|
3084
|
+
export function AddressAutocomplete(props: AddressAutocompleteProps): JSX.Element;
|
|
3083
3085
|
export interface AddressMapMarkerPosition {
|
|
3084
3086
|
position: latLng;
|
|
3085
3087
|
mappedAddressType?: MappingAddressType;
|
|
@@ -3102,7 +3104,7 @@ export interface AddressMapMarkerProps {
|
|
|
3102
3104
|
fullScreenControl?: boolean;
|
|
3103
3105
|
}
|
|
3104
3106
|
export const AddressMapMarkerDefaultProps: Partial<AddressMapMarkerProps>;
|
|
3105
|
-
export function AddressMapMarker(props: AddressMapMarkerProps):
|
|
3107
|
+
export function AddressMapMarker(props: AddressMapMarkerProps): JSX.Element;
|
|
3106
3108
|
export interface AddressSearchProps extends Omit<AddressMapMarkerProps, 'showErrors'> {
|
|
3107
3109
|
countries: string[];
|
|
3108
3110
|
onAddressFound?: (result: AddressFoundResult) => void;
|
|
@@ -3111,7 +3113,7 @@ export interface AddressSearchProps extends Omit<AddressMapMarkerProps, 'showErr
|
|
|
3111
3113
|
draggable?: boolean;
|
|
3112
3114
|
}
|
|
3113
3115
|
export const AddressSearchDefaultProps: Partial<AddressSearchProps>;
|
|
3114
|
-
export function AddressSearch(props: AddressSearchProps):
|
|
3116
|
+
export function AddressSearch(props: AddressSearchProps): JSX.Element;
|
|
3115
3117
|
export interface AddressSearchFormProps {
|
|
3116
3118
|
helpMessage?: string;
|
|
3117
3119
|
okLabel?: string;
|
|
@@ -3125,7 +3127,7 @@ export interface AddressSearchFormProps {
|
|
|
3125
3127
|
draggable?: boolean;
|
|
3126
3128
|
}
|
|
3127
3129
|
export const AddressSearchFormDefaultProps: Partial<AddressSearchFormProps>;
|
|
3128
|
-
export function AddressSearchForm(props: AddressSearchFormProps):
|
|
3130
|
+
export function AddressSearchForm(props: AddressSearchFormProps): JSX.Element;
|
|
3129
3131
|
export interface AddressSearchModalOptions {
|
|
3130
3132
|
onOK: (address?: AddressFoundResult, position?: latLng) => void;
|
|
3131
3133
|
onCancel?: () => void;
|
|
@@ -3147,7 +3149,7 @@ export interface AddressLookupProps extends Omit<AddressAutocompleteProps, 'righ
|
|
|
3147
3149
|
currentPosition?: AddressMapMarkerPosition;
|
|
3148
3150
|
}
|
|
3149
3151
|
export const AddressLookupDefaultProps: Partial<AddressLookupProps>;
|
|
3150
|
-
export function AddressLookup(props: AddressLookupProps):
|
|
3152
|
+
export function AddressLookup(props: AddressLookupProps): JSX.Element;
|
|
3151
3153
|
/**
|
|
3152
3154
|
* Converts a hexadecimal color string to an RGB array.
|
|
3153
3155
|
* @param hex - The hexadecimal color string.
|
|
@@ -3285,7 +3287,7 @@ export interface DataMapProps {
|
|
|
3285
3287
|
}
|
|
3286
3288
|
export const DataMapDefaultProps: Partial<DataMapProps>;
|
|
3287
3289
|
export const DataMapDefaultDataGridProps: Partial<DataGridProps>;
|
|
3288
|
-
export function DataMap(props: DataMapProps):
|
|
3290
|
+
export function DataMap(props: DataMapProps): JSX.Element;
|
|
3289
3291
|
export interface DataMapPageProps extends Omit<DataMapProps, 'dataGridProps'> {
|
|
3290
3292
|
dataGridProps: Omit<DataGridProps, 'gridHeight' | 'entity'>;
|
|
3291
3293
|
title?: string;
|
|
@@ -3297,7 +3299,7 @@ export interface DataMapPageProps extends Omit<DataMapProps, 'dataGridProps'> {
|
|
|
3297
3299
|
showTitle?: boolean;
|
|
3298
3300
|
}
|
|
3299
3301
|
export const DataMapPageDefaultProps: Partial<DataMapPageProps>;
|
|
3300
|
-
export function DataMapPage(props: DataMapPageProps):
|
|
3302
|
+
export function DataMapPage(props: DataMapPageProps): JSX.Element;
|
|
3301
3303
|
export interface DataMapFormProps extends DataMapProps {
|
|
3302
3304
|
customTitle?: ReactNode;
|
|
3303
3305
|
title?: string;
|
|
@@ -3307,7 +3309,7 @@ export interface DataMapFormProps extends DataMapProps {
|
|
|
3307
3309
|
showTitle?: boolean;
|
|
3308
3310
|
}
|
|
3309
3311
|
export const DataMapFormDefaultProps: Partial<DataMapFormProps>;
|
|
3310
|
-
export function DataMapForm(props: DataMapFormProps):
|
|
3312
|
+
export function DataMapForm(props: DataMapFormProps): JSX.Element;
|
|
3311
3313
|
export interface UseMultiDataMapGridProps {
|
|
3312
3314
|
dataMapView: MultiDataMapViewProps;
|
|
3313
3315
|
viewState: ReturnType<typeof useViewState>;
|
|
@@ -3325,18 +3327,18 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3325
3327
|
longitudRecordIndex?: number;
|
|
3326
3328
|
dataSetId?: string;
|
|
3327
3329
|
tabLabel?: string;
|
|
3328
|
-
tabIcon?: (props:
|
|
3329
|
-
InfoWindowRenderer?:
|
|
3330
|
-
selectRecordsRenderer?:
|
|
3331
|
-
markerRenderer?:
|
|
3332
|
-
groupMarkerRenderer?:
|
|
3330
|
+
tabIcon?: (props: IconProps) => ReactNode;
|
|
3331
|
+
InfoWindowRenderer?: _DataMapInfoWindowRenderer1;
|
|
3332
|
+
selectRecordsRenderer?: _DataMapSelectRecordsRenderer1;
|
|
3333
|
+
markerRenderer?: _DataMapMarkerRenderer1;
|
|
3334
|
+
groupMarkerRenderer?: _DataMapGroupMarkerRenderer1;
|
|
3333
3335
|
centerMarkerColumnIndex?: number;
|
|
3334
3336
|
search: string[];
|
|
3335
|
-
entity:
|
|
3337
|
+
entity: _Entity1<_EntityDefinition1>;
|
|
3336
3338
|
formMode: "view" | "add" | "edit" | undefined;
|
|
3337
|
-
parentKeys:
|
|
3339
|
+
parentKeys: _ValuesObject1;
|
|
3338
3340
|
onModalClosed: (cancelled?: boolean) => void;
|
|
3339
|
-
onModalSaved: (new_status:
|
|
3341
|
+
onModalSaved: (new_status: _OperationStatus1<_DBStatusResult1 | null>) => void;
|
|
3340
3342
|
modalFormSize: string | number | undefined;
|
|
3341
3343
|
onModalCancelled: () => void;
|
|
3342
3344
|
withBorder: boolean;
|
|
@@ -3352,16 +3354,16 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3352
3354
|
autoSelectFirstRow: boolean;
|
|
3353
3355
|
notExportableColumns: number[];
|
|
3354
3356
|
withModalFullscreenButton: boolean;
|
|
3355
|
-
labels:
|
|
3357
|
+
labels: _DataGridLabels1;
|
|
3356
3358
|
onRecordsDeleted: () => void;
|
|
3357
3359
|
onActionRefreshOnClose: () => void;
|
|
3358
3360
|
onAddClick: (gridAddClick: (element?: HTMLElement) => void, element?: HTMLElement) => void;
|
|
3359
|
-
onEditClick: (keys:
|
|
3360
|
-
onDeleteClick: (keys:
|
|
3361
|
-
columnsOverrides:
|
|
3361
|
+
onEditClick: (keys: _ValuesObject1, element?: HTMLElement) => void;
|
|
3362
|
+
onDeleteClick: (keys: _ValuesObject1[], element?: HTMLElement) => void;
|
|
3363
|
+
columnsOverrides: _GridColumnsOverrides1;
|
|
3362
3364
|
autoSizeColumnsOnLoad: boolean;
|
|
3363
3365
|
preserveSelection: boolean;
|
|
3364
|
-
onSelectionChanged:
|
|
3366
|
+
onSelectionChanged: _DataGridSelectionChangedCallback1;
|
|
3365
3367
|
columnBorders: boolean;
|
|
3366
3368
|
rowBorders: boolean;
|
|
3367
3369
|
visibleFilters: string[];
|
|
@@ -3370,8 +3372,8 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3370
3372
|
showActions: boolean;
|
|
3371
3373
|
actionsButtonVariant: "white" | "filled" | "outline" | "light" | "default" | "gradient" | "subtle" | undefined;
|
|
3372
3374
|
allwaysRefreshOnEntityClose: boolean;
|
|
3373
|
-
onDataRefresh: (result:
|
|
3374
|
-
doubleClickAction: (("view" | "none" | "edit" | ((record:
|
|
3375
|
+
onDataRefresh: (result: _OperationStatus1<_DataResult1[]>) => void;
|
|
3376
|
+
doubleClickAction: (("view" | "none" | "edit" | ((record: _GridRecord1) => void)) & NonNullable<"view" | "none" | "edit" | ((record: _GridRecord1) => void) | undefined>) | undefined;
|
|
3375
3377
|
initialHiddenColumns: number[];
|
|
3376
3378
|
setInitialFiltersFromColumns: boolean;
|
|
3377
3379
|
showToolbar: boolean;
|
|
@@ -3380,54 +3382,54 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3380
3382
|
};
|
|
3381
3383
|
viewState: {
|
|
3382
3384
|
searchText: string[] | undefined;
|
|
3383
|
-
setSearchText:
|
|
3385
|
+
setSearchText: Dispatch<SetStateAction<string[] | undefined>>;
|
|
3384
3386
|
limitRows: string | null;
|
|
3385
|
-
setLimitRows:
|
|
3387
|
+
setLimitRows: Dispatch<SetStateAction<string | null>>;
|
|
3386
3388
|
refresh: boolean;
|
|
3387
|
-
setRefresh:
|
|
3388
|
-
filterValues:
|
|
3389
|
-
setFilterValues:
|
|
3390
|
-
filtersDescription:
|
|
3391
|
-
setFiltersDescription:
|
|
3389
|
+
setRefresh: Dispatch<SetStateAction<boolean>>;
|
|
3390
|
+
filterValues: _ValuesObject1 | undefined;
|
|
3391
|
+
setFilterValues: Dispatch<SetStateAction<_ValuesObject1 | undefined>>;
|
|
3392
|
+
filtersDescription: _ValuesObject1 | undefined;
|
|
3393
|
+
setFiltersDescription: Dispatch<SetStateAction<_ValuesObject1 | undefined>>;
|
|
3392
3394
|
};
|
|
3393
|
-
executeViewState:
|
|
3395
|
+
executeViewState: _OperationStatus1<_DataResult1[]>;
|
|
3394
3396
|
dataGridAPI: {
|
|
3395
|
-
handleSelectionChanged:
|
|
3396
|
-
handleDoubleClick:
|
|
3397
|
+
handleSelectionChanged: _GridSelectionChangedCallback1;
|
|
3398
|
+
handleDoubleClick: _GridDoubleClickCallback1;
|
|
3397
3399
|
handleDeleteClick: (element?: HTMLElement) => Promise<void>;
|
|
3398
3400
|
handleEditClick: (element?: HTMLElement) => Promise<void>;
|
|
3399
3401
|
handleAddClick: (element?: HTMLElement, onClosed?: (cancelled?: boolean) => void) => Promise<void>;
|
|
3400
3402
|
handleViewClick: (element?: HTMLElement) => Promise<void>;
|
|
3401
3403
|
handleToggleSelectable: () => void;
|
|
3402
3404
|
handleRefresh: (search_text: string[] | undefined) => void;
|
|
3403
|
-
handleExecuteAction: (action:
|
|
3405
|
+
handleExecuteAction: (action: _EntityClientAction1, recordIndex?: number, element?: HTMLElement) => Promise<void>;
|
|
3404
3406
|
handleExport: () => Promise<void>;
|
|
3405
3407
|
selectedRowsCount: number;
|
|
3406
3408
|
showSelectCheckbox: boolean;
|
|
3407
3409
|
UIAPI: {
|
|
3408
3410
|
handleAddClick: (element?: HTMLElement, onClosed?: (cancelled?: boolean) => void) => Promise<void>;
|
|
3409
|
-
handleEditClick: (keys:
|
|
3410
|
-
handleViewClick: (keys:
|
|
3411
|
-
handleDeleteClick: (keys:
|
|
3412
|
-
handleExecuteAction: (action:
|
|
3413
|
-
handleDeleteRecord: (keys:
|
|
3411
|
+
handleEditClick: (keys: _ValuesObject1, element?: HTMLElement, onClosed?: (cancelled?: boolean) => void) => Promise<void>;
|
|
3412
|
+
handleViewClick: (keys: _ValuesObject1, element?: HTMLElement, onClosed?: (cancelled?: boolean) => void) => Promise<void>;
|
|
3413
|
+
handleDeleteClick: (keys: _ValuesObject1[], element?: HTMLElement) => Promise<void>;
|
|
3414
|
+
handleExecuteAction: (action: _EntityClientAction1, keys: _ValuesObject1[], element?: HTMLElement) => Promise<boolean | undefined>;
|
|
3415
|
+
handleDeleteRecord: (keys: _ValuesObject1, element?: HTMLElement) => Promise<void>;
|
|
3414
3416
|
handleImportDataClick: () => Promise<void>;
|
|
3415
3417
|
};
|
|
3416
|
-
columns:
|
|
3418
|
+
columns: _GridColumn1[] | undefined;
|
|
3417
3419
|
rows: ValuesRecord[] | undefined;
|
|
3418
3420
|
isLoading: boolean;
|
|
3419
3421
|
handleImportDataClick: () => Promise<void>;
|
|
3420
|
-
setColumns:
|
|
3422
|
+
setColumns: Dispatch<SetStateAction<_GridColumn1[] | undefined>>;
|
|
3421
3423
|
};
|
|
3422
|
-
actualColumnsOverrides:
|
|
3423
|
-
actualSelectionClickHandler:
|
|
3424
|
+
actualColumnsOverrides: _GridColumnsOverrides1 | undefined;
|
|
3425
|
+
actualSelectionClickHandler: _DataMapSelectRecordsRenderer1;
|
|
3424
3426
|
selectedRows: GridSelection;
|
|
3425
|
-
setSelectedRows:
|
|
3426
|
-
getInfoWindowClickHandler: (dataSetId: string, record: ValuesRecord, recordIndex: number) => ((infoWindow: google.maps.InfoWindow) =>
|
|
3427
|
+
setSelectedRows: Dispatch<SetStateAction<GridSelection>>;
|
|
3428
|
+
getInfoWindowClickHandler: (dataSetId: string, record: ValuesRecord, recordIndex: number) => ((infoWindow: google.maps.InfoWindow) => ReactNode) | null;
|
|
3427
3429
|
markers: MarkerProps[];
|
|
3428
3430
|
selectedMarkers: SelectedMarkerProps;
|
|
3429
3431
|
showOnMap: boolean;
|
|
3430
|
-
setShowOnMap:
|
|
3432
|
+
setShowOnMap: Dispatch<SetStateAction<boolean>>;
|
|
3431
3433
|
centerMarker: MarkerProps | undefined;
|
|
3432
3434
|
};
|
|
3433
3435
|
export interface MultiDataMapViewProps extends Omit<DataGridProps, 'gridHeight' | 'selectionMode' | 'enableExport' | 'autoFocus' | 'toolbarIconVariant' | 'toolbarSize' | 'filtersFormSize' | 'parentFormAPI'> {
|
|
@@ -3469,7 +3471,7 @@ export interface MultiDataMapProps {
|
|
|
3469
3471
|
formMode?: FormMode;
|
|
3470
3472
|
}
|
|
3471
3473
|
export const MultiDataMapDefaultProps: Partial<MultiDataMapProps>;
|
|
3472
|
-
export function MultiDataMap(props: MultiDataMapProps):
|
|
3474
|
+
export function MultiDataMap(props: MultiDataMapProps): JSX.Element;
|
|
3473
3475
|
export interface MultiDataMapPageViewProps extends Omit<MultiDataMapViewProps, 'entity'> {
|
|
3474
3476
|
entityConstructor: (client: MicroMClient) => Entity<EntityDefinition>;
|
|
3475
3477
|
}
|
|
@@ -3487,7 +3489,7 @@ export interface MultiDataMapPageProps extends Omit<MultiDataMapProps, 'dataMapV
|
|
|
3487
3489
|
showTitle?: boolean;
|
|
3488
3490
|
}
|
|
3489
3491
|
export const MultiDataMapPageDefaultProps: Partial<MultiDataMapPageProps>;
|
|
3490
|
-
export function MultiDataMapPage(props: MultiDataMapPageProps):
|
|
3492
|
+
export function MultiDataMapPage(props: MultiDataMapPageProps): JSX.Element;
|
|
3491
3493
|
export interface MultiDataMapFormProps extends MultiDataMapProps {
|
|
3492
3494
|
customTitle?: ReactNode;
|
|
3493
3495
|
title?: string;
|
|
@@ -3497,11 +3499,11 @@ export interface MultiDataMapFormProps extends MultiDataMapProps {
|
|
|
3497
3499
|
showTitle?: boolean;
|
|
3498
3500
|
}
|
|
3499
3501
|
export const MultiDataMapFormDefaultProps: Partial<MultiDataMapFormProps>;
|
|
3500
|
-
export function MultiDataMapForm(props: MultiDataMapFormProps):
|
|
3502
|
+
export function MultiDataMapForm(props: MultiDataMapFormProps): JSX.Element;
|
|
3501
3503
|
export interface RegionSelectorItemProps extends Omit<BadgeProps, 'rightSection'> {
|
|
3502
3504
|
onCloseClick?: () => void;
|
|
3503
3505
|
}
|
|
3504
|
-
export function RegionSelectorItem({ onCloseClick, children, ...rest }: RegionSelectorItemProps):
|
|
3506
|
+
export function RegionSelectorItem({ onCloseClick, children, ...rest }: RegionSelectorItemProps): JSX.Element;
|
|
3505
3507
|
export interface RegionSelectorProps extends Omit<GoogleMapRegionSelectorProps, 'googleMapsAPI'> {
|
|
3506
3508
|
mapId: string;
|
|
3507
3509
|
readOnly?: boolean;
|
|
@@ -3523,14 +3525,14 @@ export interface RegionSelectorProps extends Omit<GoogleMapRegionSelectorProps,
|
|
|
3523
3525
|
autoFocus?: boolean;
|
|
3524
3526
|
}
|
|
3525
3527
|
export const RegionSelectorDefaultProps: Partial<RegionSelectorProps>;
|
|
3526
|
-
export function RegionSelector(props: RegionSelectorProps):
|
|
3528
|
+
export function RegionSelector(props: RegionSelectorProps): JSX.Element;
|
|
3527
3529
|
export interface DataRegionSelectorProps extends RegionSelectorProps {
|
|
3528
3530
|
entity: Entity<EntityDefinition>;
|
|
3529
3531
|
queryName: string;
|
|
3530
3532
|
parentKeys?: ValuesObject;
|
|
3531
3533
|
mapDataResult: (data: DataResult) => Record<string, SelectedRegionData>;
|
|
3532
3534
|
}
|
|
3533
|
-
export function DataRegion(props: DataRegionSelectorProps):
|
|
3535
|
+
export function DataRegion(props: DataRegionSelectorProps): JSX.Element;
|
|
3534
3536
|
export interface MicroMError extends Error {
|
|
3535
3537
|
status: number;
|
|
3536
3538
|
message: string;
|