@mcurros2/microm 1.1.380-0 → 1.1.382-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.d.ts +188 -119
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23728 -23375
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { ModalSettings } from "@mantine/modals/lib/context";
|
|
|
6
6
|
import { IconProps, Icon } from "@tabler/icons-react";
|
|
7
7
|
import { LooseKeys } from "@mantine/form/lib/types";
|
|
8
8
|
import { AccordionVariant } from "@mantine/core/lib/Accordion/Accordion.types";
|
|
9
|
-
import { 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, GridColumnsOverrides as _GridColumnsOverrides1, DataGridSelectionChangedCallback as _DataGridSelectionChangedCallback1, DataViewSearchCallback as _DataViewSearchCallback1, DataGridLabels as _DataGridLabels1, GridRecord as _GridRecord1,
|
|
9
|
+
import { UseEntityFormReturnType as _UseEntityFormReturnType1, EntityClientAction as _EntityClientAction1, 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, GridColumnsOverrides as _GridColumnsOverrides1, DataGridSelectionChangedCallback as _DataGridSelectionChangedCallback1, DataViewSearchCallback as _DataViewSearchCallback1, DataGridLabels as _DataGridLabels1, GridRecord as _GridRecord1, EntityClientActionOnClickProps as _EntityClientActionOnClickProps1, GridSelectionChangedCallback as _GridSelectionChangedCallback1, GridDoubleClickCallback as _GridDoubleClickCallback1, GridColumn as _GridColumn1 } from "src";
|
|
10
10
|
import { PrismProps } from "@mantine/prism";
|
|
11
11
|
import { DateInputProps, TimeInputProps, CalendarProps } from "@mantine/dates";
|
|
12
12
|
import { DropzoneProps } from "@mantine/dropzone";
|
|
@@ -1092,6 +1092,7 @@ export interface EntityClientActionOnClickProps {
|
|
|
1092
1092
|
selectedKeys?: ValuesObject[];
|
|
1093
1093
|
element?: HTMLElement;
|
|
1094
1094
|
onClose?: (result?: boolean) => Promise<boolean>;
|
|
1095
|
+
others?: any;
|
|
1095
1096
|
}
|
|
1096
1097
|
export interface EntityClientAction {
|
|
1097
1098
|
name: string;
|
|
@@ -1322,6 +1323,11 @@ export function splitCompoundKey(rawValue: string, group: CompoundKeyGroup): {
|
|
|
1322
1323
|
export function composeCompoundKey(values: readonly Value[], group: CompoundKeyGroup): string;
|
|
1323
1324
|
export function extractCompoundKeyValues(keys: ValuesObject, group: CompoundKeyGroup): Value[] | undefined;
|
|
1324
1325
|
export function extractCompoundRecordKeys(record: object, group: CompoundKeyGroup): ValuesObject | undefined;
|
|
1326
|
+
export interface EntityClientActionImportDataOnClickProps {
|
|
1327
|
+
destinationEntity: Entity<any>;
|
|
1328
|
+
entityProcName?: string;
|
|
1329
|
+
excludedImportDestinations?: string[];
|
|
1330
|
+
}
|
|
1325
1331
|
export interface useTextTransformProps {
|
|
1326
1332
|
entityForm: UseEntityFormReturnType;
|
|
1327
1333
|
column: EntityColumn<Value>;
|
|
@@ -1635,10 +1641,89 @@ export interface ExcelImportMappingEditorProps {
|
|
|
1635
1641
|
}
|
|
1636
1642
|
export const ExcelImportMappingEditorDefaultProps: Partial<ExcelImportMappingEditorProps>;
|
|
1637
1643
|
export function ExcelImportMappingEditor(props: ExcelImportMappingEditorProps): JSX.Element;
|
|
1638
|
-
export const
|
|
1639
|
-
|
|
1640
|
-
|
|
1644
|
+
export const ACTDownloadImportedFileLabels: {
|
|
1645
|
+
label: string;
|
|
1646
|
+
error: string;
|
|
1641
1647
|
};
|
|
1648
|
+
export const ACTDownloadImportedFile: EntityClientAction;
|
|
1649
|
+
export const ApplyFiltersDefaultLabel = "Apply Filters";
|
|
1650
|
+
export function AutoFiltersForm(props: FormOptions<Entity<EntityDefinition>>): JSX.Element;
|
|
1651
|
+
export function createEntityForm<T extends FormOptions<Entity<EntityDefinition>>>(props: T): Promise<ReactNode>;
|
|
1652
|
+
export interface openEntityFormProps<T extends FormOptions<Entity<EntityDefinition>>> {
|
|
1653
|
+
modals: ModalContextType;
|
|
1654
|
+
title?: string;
|
|
1655
|
+
element?: HTMLElement;
|
|
1656
|
+
handleModalSaved: (newStatus: OperationStatus<DBStatusResult | null>) => Promise<void>;
|
|
1657
|
+
handleModalCancel: () => Promise<void>;
|
|
1658
|
+
handleModalClosed?: () => void;
|
|
1659
|
+
modalFormSize?: MicroMModalSize;
|
|
1660
|
+
withModalFullscreenButton?: boolean;
|
|
1661
|
+
formProps: T;
|
|
1662
|
+
}
|
|
1663
|
+
export function openEntityForm<T extends FormOptions<Entity<EntityDefinition>>>({ modals, title, element, handleModalCancel, handleModalSaved, modalFormSize, formProps, handleModalClosed, withModalFullscreenButton }: openEntityFormProps<T>): Promise<void>;
|
|
1664
|
+
export class FileStoreProcessDef extends EntityDefinition {
|
|
1665
|
+
columns: {
|
|
1666
|
+
dt_inserttime: EntityColumn<Date>;
|
|
1667
|
+
dt_lu: EntityColumn<Date>;
|
|
1668
|
+
vc_webinsuser: EntityColumn<string>;
|
|
1669
|
+
vc_webluuser: EntityColumn<string>;
|
|
1670
|
+
vc_insuser: EntityColumn<string>;
|
|
1671
|
+
vc_luuser: EntityColumn<string>;
|
|
1672
|
+
c_fileprocess_id: EntityColumn<string>;
|
|
1673
|
+
};
|
|
1674
|
+
views: {
|
|
1675
|
+
fsp_brwStandard: {
|
|
1676
|
+
name: string;
|
|
1677
|
+
keyMappings: {
|
|
1678
|
+
c_fileprocess_id: number;
|
|
1679
|
+
};
|
|
1680
|
+
};
|
|
1681
|
+
};
|
|
1682
|
+
constructor();
|
|
1683
|
+
}
|
|
1684
|
+
export class FileStoreProcess extends Entity<FileStoreProcessDef> {
|
|
1685
|
+
constructor(client: MicroMClient, parentKeys?: {});
|
|
1686
|
+
}
|
|
1687
|
+
export class ImportEntityDataDef extends EntityDefinition {
|
|
1688
|
+
columns: {
|
|
1689
|
+
dt_inserttime: EntityColumn<Date>;
|
|
1690
|
+
dt_lu: EntityColumn<Date>;
|
|
1691
|
+
vc_webinsuser: EntityColumn<string>;
|
|
1692
|
+
vc_webluuser: EntityColumn<string>;
|
|
1693
|
+
vc_insuser: EntityColumn<string>;
|
|
1694
|
+
vc_luuser: EntityColumn<string>;
|
|
1695
|
+
c_fileprocess_id: EntityColumn<string>;
|
|
1696
|
+
};
|
|
1697
|
+
views: {
|
|
1698
|
+
ipr_brwStandard: {
|
|
1699
|
+
name: string;
|
|
1700
|
+
keyMappings: {
|
|
1701
|
+
c_import_process: number;
|
|
1702
|
+
};
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
lookups: {
|
|
1706
|
+
FileStoreProcess: {
|
|
1707
|
+
name: string;
|
|
1708
|
+
viewMapping: {
|
|
1709
|
+
keyIndex: number;
|
|
1710
|
+
descriptionIndex: number;
|
|
1711
|
+
};
|
|
1712
|
+
entityConstructor: (client: MicroMClient, parentKeys?: ValuesObject) => FileStoreProcess;
|
|
1713
|
+
};
|
|
1714
|
+
};
|
|
1715
|
+
constructor();
|
|
1716
|
+
}
|
|
1717
|
+
export interface CircleFilledIconProps {
|
|
1718
|
+
backColor?: MantineColor;
|
|
1719
|
+
color?: MantineColor;
|
|
1720
|
+
width?: string | number;
|
|
1721
|
+
minWidth?: string | number;
|
|
1722
|
+
icon: ReactNode;
|
|
1723
|
+
mr?: string;
|
|
1724
|
+
}
|
|
1725
|
+
export const CircleFilledIconDefaultProps: Partial<CircleFilledIconProps>;
|
|
1726
|
+
export const CircleFilledIcon: ForwardRefExoticComponent<CircleFilledIconProps & RefAttributes<HTMLInputElement>>;
|
|
1642
1727
|
export interface ImageCropOptions {
|
|
1643
1728
|
aspectRatio?: number;
|
|
1644
1729
|
}
|
|
@@ -1727,29 +1812,6 @@ export class FileStoreClientDef extends EntityDefinition {
|
|
|
1727
1812
|
export class FileStoreClient extends Entity<FileStoreClientDef> {
|
|
1728
1813
|
constructor(client: MicroMClient, parentKeys?: {});
|
|
1729
1814
|
}
|
|
1730
|
-
export class FileStoreProcessDef extends EntityDefinition {
|
|
1731
|
-
columns: {
|
|
1732
|
-
dt_inserttime: EntityColumn<Date>;
|
|
1733
|
-
dt_lu: EntityColumn<Date>;
|
|
1734
|
-
vc_webinsuser: EntityColumn<string>;
|
|
1735
|
-
vc_webluuser: EntityColumn<string>;
|
|
1736
|
-
vc_insuser: EntityColumn<string>;
|
|
1737
|
-
vc_luuser: EntityColumn<string>;
|
|
1738
|
-
c_fileprocess_id: EntityColumn<string>;
|
|
1739
|
-
};
|
|
1740
|
-
views: {
|
|
1741
|
-
fsp_brwStandard: {
|
|
1742
|
-
name: string;
|
|
1743
|
-
keyMappings: {
|
|
1744
|
-
c_fileprocess_id: number;
|
|
1745
|
-
};
|
|
1746
|
-
};
|
|
1747
|
-
};
|
|
1748
|
-
constructor();
|
|
1749
|
-
}
|
|
1750
|
-
export class FileStoreProcess extends Entity<FileStoreProcessDef> {
|
|
1751
|
-
constructor(client: MicroMClient, parentKeys?: {});
|
|
1752
|
-
}
|
|
1753
1815
|
export interface FullImagePreviewProps {
|
|
1754
1816
|
source: HTMLCanvasElement;
|
|
1755
1817
|
rotation: number;
|
|
@@ -1930,6 +1992,103 @@ export interface ModalFileUploadProps {
|
|
|
1930
1992
|
}
|
|
1931
1993
|
export const UseFileUploadFormOpenDefaultProps: Partial<ModalFileUploadProps>;
|
|
1932
1994
|
export function useFilesUploadForm(): (props: ModalFileUploadProps) => Promise<void>;
|
|
1995
|
+
export interface ImportEntityDataFormProps extends FormOptions<ImportEntityData> {
|
|
1996
|
+
importEntity?: Entity<EntityDefinition>;
|
|
1997
|
+
entityProcName?: string;
|
|
1998
|
+
excludedImportDestinations?: string[];
|
|
1999
|
+
onImportSuccess?: () => Promise<void>;
|
|
2000
|
+
importInfoLabel?: string;
|
|
2001
|
+
csvInstructionsLabel?: string;
|
|
2002
|
+
columnHeaderLabel?: string;
|
|
2003
|
+
dataNameLabel?: string;
|
|
2004
|
+
contentLabel?: string;
|
|
2005
|
+
dataTypeLabel?: string;
|
|
2006
|
+
errorReadingFileLabel?: string;
|
|
2007
|
+
emptyCSVFileLabel?: string;
|
|
2008
|
+
missingColumnsLabel?: string;
|
|
2009
|
+
dateFormatLabel?: string;
|
|
2010
|
+
numberFormatLabel?: string;
|
|
2011
|
+
downloadSampleLabel?: string;
|
|
2012
|
+
importButtonLabel?: string;
|
|
2013
|
+
importHelpAndInstructionsLabel?: string;
|
|
2014
|
+
recordsImportedSusccessfullyLabel?: string;
|
|
2015
|
+
recordsNotImportedDueToErrorsLabel?: string;
|
|
2016
|
+
importTheCSVFileLabel?: string;
|
|
2017
|
+
importedFileLabel?: string;
|
|
2018
|
+
errorColumnTitle?: string;
|
|
2019
|
+
rowColumnTitle?: string;
|
|
2020
|
+
}
|
|
2021
|
+
export const ImportEntityDataFormDefaultProps: Partial<ImportEntityDataFormProps>;
|
|
2022
|
+
export function ImportEntityDataForm(props: ImportEntityDataFormProps): JSX.Element;
|
|
2023
|
+
export interface ImportEntityDataLabels {
|
|
2024
|
+
Icon?: (props: IconProps) => ReactNode;
|
|
2025
|
+
Title?: string;
|
|
2026
|
+
HelpText?: string;
|
|
2027
|
+
}
|
|
2028
|
+
export const ImportEntityDataLabels: Partial<ImportEntityDataLabels>;
|
|
2029
|
+
export class ImportEntityData extends Entity<ImportEntityDataDef> {
|
|
2030
|
+
constructor(client: MicroMClient, parentKeys?: {});
|
|
2031
|
+
}
|
|
2032
|
+
export const ACTImportDataLabels: {
|
|
2033
|
+
label: string;
|
|
2034
|
+
};
|
|
2035
|
+
export const ACTImportData: EntityClientAction;
|
|
2036
|
+
export class ImportProcessDef extends EntityDefinition {
|
|
2037
|
+
columns: {
|
|
2038
|
+
dt_inserttime: EntityColumn<Date>;
|
|
2039
|
+
dt_lu: EntityColumn<Date>;
|
|
2040
|
+
vc_webinsuser: EntityColumn<string>;
|
|
2041
|
+
vc_webluuser: EntityColumn<string>;
|
|
2042
|
+
vc_insuser: EntityColumn<string>;
|
|
2043
|
+
vc_luuser: EntityColumn<string>;
|
|
2044
|
+
c_import_process_id: EntityColumn<string>;
|
|
2045
|
+
c_fileprocess_id: EntityColumn<string>;
|
|
2046
|
+
i_total_records: EntityColumn<number>;
|
|
2047
|
+
i_errors: EntityColumn<number>;
|
|
2048
|
+
vc_assemblytypename: EntityColumn<string>;
|
|
2049
|
+
vc_import_procname: EntityColumn<string>;
|
|
2050
|
+
c_import_status_id: EntityColumn<string>;
|
|
2051
|
+
vc_fileguid: EntityColumn<string>;
|
|
2052
|
+
};
|
|
2053
|
+
views: {
|
|
2054
|
+
ipr_brwStandard: {
|
|
2055
|
+
name: string;
|
|
2056
|
+
keyMappings: {
|
|
2057
|
+
c_import_process_id: number;
|
|
2058
|
+
vc_fileguid: number;
|
|
2059
|
+
};
|
|
2060
|
+
};
|
|
2061
|
+
};
|
|
2062
|
+
clientActions: {
|
|
2063
|
+
ACTImportData: _EntityClientAction1;
|
|
2064
|
+
ACTDownloadImportedFile: _EntityClientAction1;
|
|
2065
|
+
};
|
|
2066
|
+
constructor();
|
|
2067
|
+
}
|
|
2068
|
+
export class ImportProcess extends Entity<ImportProcessDef> {
|
|
2069
|
+
constructor(client: MicroMClient, parentKeys?: ValuesObject);
|
|
2070
|
+
}
|
|
2071
|
+
type ControlledDataGridPanelProps = 'entityConstructor' | 'entityLoader' | 'parentKeys' | 'enableImport' | 'entityProcName' | 'excludedImportDestinations' | 'clientActionOthers' | 'enableAdd' | 'enableEdit' | 'enableDelete' | 'enableView' | 'formMode' | 'selectionMode' | 'showActions' | 'showActionsToolbar' | 'doubleClickAction' | 'autoSelectFirstRow' | 'showSelectRowsButton' | 'initialSelectRowsToggle';
|
|
2072
|
+
export type ImportDataPanelDestinationSourceProps = {
|
|
2073
|
+
/** Builds the entity that receives the imported records synchronously. */
|
|
2074
|
+
destinationEntityConstructor: NonNullable<EntitySourceProps['entityConstructor']>;
|
|
2075
|
+
destinationEntityLoader?: never;
|
|
2076
|
+
} | {
|
|
2077
|
+
destinationEntityConstructor?: never;
|
|
2078
|
+
/** Loads the entity that receives the imported records asynchronously. */
|
|
2079
|
+
destinationEntityLoader: NonNullable<EntitySourceProps['entityLoader']>;
|
|
2080
|
+
};
|
|
2081
|
+
export type ImportDataPanelProps = Omit<DataGridPanelProps, ControlledDataGridPanelProps> & ImportDataPanelDestinationSourceProps & {
|
|
2082
|
+
parentKeys?: ValuesObject;
|
|
2083
|
+
entityProcName?: string;
|
|
2084
|
+
excludedImportDestinations?: string[];
|
|
2085
|
+
};
|
|
2086
|
+
export const ImportDataPanelDefaultProps: Partial<ImportDataPanelProps>;
|
|
2087
|
+
export function ImportDataPanel(props: ImportDataPanelProps): JSX.Element;
|
|
2088
|
+
export const UseImportDataDefaultProps: {
|
|
2089
|
+
noFileProcessLabel: string;
|
|
2090
|
+
errorImportingDataLabel: string;
|
|
2091
|
+
};
|
|
1933
2092
|
export interface useEntityCSVImportValidationProps {
|
|
1934
2093
|
errorReadingFileLabel?: string;
|
|
1935
2094
|
emptyCSVFileLabel?: string;
|
|
@@ -1989,83 +2148,6 @@ export interface OperationStatus<T> {
|
|
|
1989
2148
|
data?: T;
|
|
1990
2149
|
}
|
|
1991
2150
|
export type StatusCompletedHandler<T extends MicroMToken | TwoFactorLoginResult | DBStatusResult | DataResult | ValuesObject | null> = (status: OperationStatus<T>) => void;
|
|
1992
|
-
export class ImportEntityDataDef extends EntityDefinition {
|
|
1993
|
-
columns: {
|
|
1994
|
-
dt_inserttime: EntityColumn<Date>;
|
|
1995
|
-
dt_lu: EntityColumn<Date>;
|
|
1996
|
-
vc_webinsuser: EntityColumn<string>;
|
|
1997
|
-
vc_webluuser: EntityColumn<string>;
|
|
1998
|
-
vc_insuser: EntityColumn<string>;
|
|
1999
|
-
vc_luuser: EntityColumn<string>;
|
|
2000
|
-
c_fileprocess_id: EntityColumn<string>;
|
|
2001
|
-
};
|
|
2002
|
-
views: {
|
|
2003
|
-
ipr_brwStandard: {
|
|
2004
|
-
name: string;
|
|
2005
|
-
keyMappings: {
|
|
2006
|
-
c_import_process: number;
|
|
2007
|
-
};
|
|
2008
|
-
};
|
|
2009
|
-
};
|
|
2010
|
-
lookups: {
|
|
2011
|
-
FileStoreProcess: {
|
|
2012
|
-
name: string;
|
|
2013
|
-
viewMapping: {
|
|
2014
|
-
keyIndex: number;
|
|
2015
|
-
descriptionIndex: number;
|
|
2016
|
-
};
|
|
2017
|
-
entityConstructor: (client: MicroMClient, parentKeys?: ValuesObject) => FileStoreProcess;
|
|
2018
|
-
};
|
|
2019
|
-
};
|
|
2020
|
-
constructor();
|
|
2021
|
-
}
|
|
2022
|
-
export interface CircleFilledIconProps {
|
|
2023
|
-
backColor?: MantineColor;
|
|
2024
|
-
color?: MantineColor;
|
|
2025
|
-
width?: string | number;
|
|
2026
|
-
minWidth?: string | number;
|
|
2027
|
-
icon: ReactNode;
|
|
2028
|
-
mr?: string;
|
|
2029
|
-
}
|
|
2030
|
-
export const CircleFilledIconDefaultProps: Partial<CircleFilledIconProps>;
|
|
2031
|
-
export const CircleFilledIcon: ForwardRefExoticComponent<CircleFilledIconProps & RefAttributes<HTMLInputElement>>;
|
|
2032
|
-
export interface ImportEntityDataFormProps extends FormOptions<ImportEntityData> {
|
|
2033
|
-
importEntity?: Entity<EntityDefinition>;
|
|
2034
|
-
entityProcName?: string;
|
|
2035
|
-
excludedImportDestinations?: string[];
|
|
2036
|
-
onImportSuccess?: () => Promise<void>;
|
|
2037
|
-
importInfoLabel?: string;
|
|
2038
|
-
csvInstructionsLabel?: string;
|
|
2039
|
-
columnHeaderLabel?: string;
|
|
2040
|
-
dataNameLabel?: string;
|
|
2041
|
-
contentLabel?: string;
|
|
2042
|
-
dataTypeLabel?: string;
|
|
2043
|
-
errorReadingFileLabel?: string;
|
|
2044
|
-
emptyCSVFileLabel?: string;
|
|
2045
|
-
missingColumnsLabel?: string;
|
|
2046
|
-
dateFormatLabel?: string;
|
|
2047
|
-
numberFormatLabel?: string;
|
|
2048
|
-
downloadSampleLabel?: string;
|
|
2049
|
-
importButtonLabel?: string;
|
|
2050
|
-
importHelpAndInstructionsLabel?: string;
|
|
2051
|
-
recordsImportedSusccessfullyLabel?: string;
|
|
2052
|
-
recordsNotImportedDueToErrorsLabel?: string;
|
|
2053
|
-
importTheCSVFileLabel?: string;
|
|
2054
|
-
importedFileLabel?: string;
|
|
2055
|
-
errorColumnTitle?: string;
|
|
2056
|
-
rowColumnTitle?: string;
|
|
2057
|
-
}
|
|
2058
|
-
export const ImportEntityDataFormDefaultProps: Partial<ImportEntityDataFormProps>;
|
|
2059
|
-
export function ImportEntityDataForm(props: ImportEntityDataFormProps): JSX.Element;
|
|
2060
|
-
export interface ImportEntityDataLabels {
|
|
2061
|
-
Icon?: (props: IconProps) => ReactNode;
|
|
2062
|
-
Title?: string;
|
|
2063
|
-
HelpText?: string;
|
|
2064
|
-
}
|
|
2065
|
-
export const ImportEntityDataLabels: Partial<ImportEntityDataLabels>;
|
|
2066
|
-
export class ImportEntityData extends Entity<ImportEntityDataDef> {
|
|
2067
|
-
constructor(client: MicroMClient, parentKeys?: {});
|
|
2068
|
-
}
|
|
2069
2151
|
export interface UseImportDataProps {
|
|
2070
2152
|
initialFormMode: FormMode;
|
|
2071
2153
|
title?: string;
|
|
@@ -2080,21 +2162,6 @@ export interface UseImportDataProps {
|
|
|
2080
2162
|
export function useImportDataForm({ initialFormMode, title, element, getDataOnInit, modalFormSize, handleModalCancel, handleModalClosed, handleModalSaved, handleImportSuccess }: UseImportDataProps): {
|
|
2081
2163
|
openImportDataForm: (importEntity: Entity<EntityDefinition>, entityProcName?: string, excludedImportDestinations?: string[]) => Promise<void>;
|
|
2082
2164
|
};
|
|
2083
|
-
export const ApplyFiltersDefaultLabel = "Apply Filters";
|
|
2084
|
-
export function AutoFiltersForm(props: FormOptions<Entity<EntityDefinition>>): JSX.Element;
|
|
2085
|
-
export function createEntityForm<T extends FormOptions<Entity<EntityDefinition>>>(props: T): Promise<ReactNode>;
|
|
2086
|
-
export interface openEntityFormProps<T extends FormOptions<Entity<EntityDefinition>>> {
|
|
2087
|
-
modals: ModalContextType;
|
|
2088
|
-
title?: string;
|
|
2089
|
-
element?: HTMLElement;
|
|
2090
|
-
handleModalSaved: (newStatus: OperationStatus<DBStatusResult | null>) => Promise<void>;
|
|
2091
|
-
handleModalCancel: () => Promise<void>;
|
|
2092
|
-
handleModalClosed?: () => void;
|
|
2093
|
-
modalFormSize?: MicroMModalSize;
|
|
2094
|
-
withModalFullscreenButton?: boolean;
|
|
2095
|
-
formProps: T;
|
|
2096
|
-
}
|
|
2097
|
-
export function openEntityForm<T extends FormOptions<Entity<EntityDefinition>>>({ modals, title, element, handleModalCancel, handleModalSaved, modalFormSize, formProps, handleModalClosed, withModalFullscreenButton }: openEntityFormProps<T>): Promise<void>;
|
|
2098
2165
|
export interface EntityUILabels {
|
|
2099
2166
|
addLabel: string;
|
|
2100
2167
|
editLabel: string;
|
|
@@ -2133,6 +2200,7 @@ export interface UseEntityUIProps {
|
|
|
2133
2200
|
entityProcName?: string;
|
|
2134
2201
|
excludedImportDestinations?: string[];
|
|
2135
2202
|
onImportSuccess?: () => void;
|
|
2203
|
+
clientActionOthers?: EntityClientActionOnClickProps['others'];
|
|
2136
2204
|
}
|
|
2137
2205
|
export function useEntityUI(props: UseEntityUIProps): {
|
|
2138
2206
|
handleAddClick: (element?: HTMLElement, onClosed?: (cancelled?: boolean) => void) => Promise<void>;
|
|
@@ -3477,6 +3545,7 @@ export function useMultiDataMapGrid({ dataMapView, viewState, selectionMode, map
|
|
|
3477
3545
|
initialSelectRowsToggle: boolean;
|
|
3478
3546
|
entityProcName: string;
|
|
3479
3547
|
excludedImportDestinations: string[];
|
|
3548
|
+
clientActionOthers: _EntityClientActionOnClickProps1["others"];
|
|
3480
3549
|
onRecordsDeleted: () => void;
|
|
3481
3550
|
onActionRefreshOnClose: () => void;
|
|
3482
3551
|
renderOnlyWhenVisible: boolean;
|