@mcurros2/microm 1.1.391-0 → 1.1.393-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 +127 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +877 -524
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -500,6 +500,8 @@ export interface StepperFormStep {
|
|
|
500
500
|
nextStepLabel?: string;
|
|
501
501
|
nextStepValidLabel?: string;
|
|
502
502
|
nextStepValidation?: () => boolean | Promise<boolean>;
|
|
503
|
+
submitDisabled?: boolean;
|
|
504
|
+
allowStepSelect?: boolean;
|
|
503
505
|
icon?: ReactNode;
|
|
504
506
|
}
|
|
505
507
|
export interface StepperFormProps extends EntityFormProps {
|
|
@@ -509,7 +511,6 @@ export interface StepperFormProps extends EntityFormProps {
|
|
|
509
511
|
initialStep: number;
|
|
510
512
|
nextStepLabel?: string;
|
|
511
513
|
prevStepLabel?: string;
|
|
512
|
-
allowStepClickForward?: boolean;
|
|
513
514
|
completedContent?: ReactNode;
|
|
514
515
|
hideNextAndBackWhenCompleted?: boolean;
|
|
515
516
|
onCompleted?: () => void;
|
|
@@ -1634,6 +1635,12 @@ export interface ParsedImportFile {
|
|
|
1634
1635
|
export function getImportFileExtension(file: File): string;
|
|
1635
1636
|
export function parseCSVRows(text: string): string[][];
|
|
1636
1637
|
export function parseImportFile(file: File): Promise<ParsedImportFile>;
|
|
1638
|
+
export interface ImportDataMappingRow {
|
|
1639
|
+
SourceHeader: string;
|
|
1640
|
+
SourceIndex: number;
|
|
1641
|
+
DestinationColumnName: string | null;
|
|
1642
|
+
IsOmitted: boolean;
|
|
1643
|
+
}
|
|
1637
1644
|
export interface ImportDataMappingState {
|
|
1638
1645
|
mapping: FileImportMapping;
|
|
1639
1646
|
initialRow: number;
|
|
@@ -1643,26 +1650,55 @@ export interface ImportDataMappingState {
|
|
|
1643
1650
|
mappedColumnCount: number;
|
|
1644
1651
|
ignoredSourceColumns: string[];
|
|
1645
1652
|
omittedRequiredDestinations: string[];
|
|
1653
|
+
unresolvedSourceColumns: string[];
|
|
1654
|
+
unmappedRequiredDestinations: string[];
|
|
1646
1655
|
}
|
|
1647
|
-
export interface
|
|
1648
|
-
file: File;
|
|
1656
|
+
export interface UseImportDataMappingProps {
|
|
1649
1657
|
destinations: readonly string[];
|
|
1650
1658
|
requiredDestinations: readonly string[];
|
|
1651
|
-
|
|
1659
|
+
omittableRequiredDestinations?: readonly string[];
|
|
1652
1660
|
initialRow?: number;
|
|
1653
1661
|
sampleRowCount?: number;
|
|
1662
|
+
fileErrorLabel?: string;
|
|
1663
|
+
}
|
|
1664
|
+
export interface ImportDataMappingAPI {
|
|
1665
|
+
parsedFile?: ParsedImportFile;
|
|
1666
|
+
sheetName: string;
|
|
1667
|
+
headerRow: number;
|
|
1668
|
+
mappingRows: ImportDataMappingRow[];
|
|
1669
|
+
sampleRows: string[][];
|
|
1670
|
+
mappingState?: ImportDataMappingState;
|
|
1671
|
+
loading: boolean;
|
|
1672
|
+
error?: string;
|
|
1673
|
+
revision: number;
|
|
1674
|
+
omittableRequiredDestinations: readonly string[];
|
|
1675
|
+
omittedRequiredDestinations: readonly string[];
|
|
1676
|
+
loadFile: (file: File) => Promise<void>;
|
|
1677
|
+
reset: () => void;
|
|
1678
|
+
selectSheet: (sheetName: string) => void;
|
|
1679
|
+
selectHeaderRow: (headerRow: number) => void;
|
|
1680
|
+
updateMappingRow: (rowIndex: number, destination: string | null) => void;
|
|
1681
|
+
setMappingRowOmitted: (rowIndex: number, omitted: boolean) => void;
|
|
1682
|
+
setRequiredDestinationOmitted: (destination: string, omitted: boolean) => void;
|
|
1683
|
+
}
|
|
1684
|
+
export function getImportSourceColumnLabel(row: ImportDataMappingRow): string;
|
|
1685
|
+
export function useImportDataMapping({ destinations, requiredDestinations, omittableRequiredDestinations, initialRow, sampleRowCount, fileErrorLabel }: UseImportDataMappingProps): ImportDataMappingAPI;
|
|
1686
|
+
export interface ImportDataMappingEditorProps {
|
|
1687
|
+
mappingAPI: ImportDataMappingAPI;
|
|
1688
|
+
destinations: readonly string[];
|
|
1654
1689
|
worksheetLabel?: string;
|
|
1655
1690
|
initialRowLabel?: string;
|
|
1656
1691
|
sourceHeaderLabel?: string;
|
|
1657
1692
|
sourceIndexLabel?: string;
|
|
1658
1693
|
destinationLabel?: string;
|
|
1694
|
+
omitColumnLabel?: string;
|
|
1659
1695
|
mappingCorrectLabel?: string;
|
|
1660
1696
|
mappingReviewLabel?: string;
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1697
|
+
reviewDataMappingLabel?: string;
|
|
1698
|
+
manualDataMappingRequiredLabel?: string;
|
|
1699
|
+
autonumPrimaryKeysLabel?: string;
|
|
1700
|
+
omitAutonumPrimaryKeyLabel?: string;
|
|
1664
1701
|
noDestinationsLabel?: string;
|
|
1665
|
-
fileErrorLabel?: string;
|
|
1666
1702
|
}
|
|
1667
1703
|
export const ImportDataMappingEditorDefaultProps: Partial<ImportDataMappingEditorProps>;
|
|
1668
1704
|
export function ImportDataMappingEditor(props: ImportDataMappingEditorProps): JSX.Element | null;
|
|
@@ -1739,16 +1775,6 @@ export class ImportEntityDataDef extends EntityDefinition {
|
|
|
1739
1775
|
};
|
|
1740
1776
|
constructor();
|
|
1741
1777
|
}
|
|
1742
|
-
export interface CircleFilledIconProps {
|
|
1743
|
-
backColor?: MantineColor;
|
|
1744
|
-
color?: MantineColor;
|
|
1745
|
-
width?: string | number;
|
|
1746
|
-
minWidth?: string | number;
|
|
1747
|
-
icon: ReactNode;
|
|
1748
|
-
mr?: string;
|
|
1749
|
-
}
|
|
1750
|
-
export const CircleFilledIconDefaultProps: Partial<CircleFilledIconProps>;
|
|
1751
|
-
export const CircleFilledIcon: ForwardRefExoticComponent<CircleFilledIconProps & RefAttributes<HTMLInputElement>>;
|
|
1752
1778
|
export interface ImageCropOptions {
|
|
1753
1779
|
aspectRatio?: number;
|
|
1754
1780
|
}
|
|
@@ -2017,6 +2043,85 @@ export interface ModalFileUploadProps {
|
|
|
2017
2043
|
}
|
|
2018
2044
|
export const UseFileUploadFormOpenDefaultProps: Partial<ModalFileUploadProps>;
|
|
2019
2045
|
export function useFilesUploadForm(): (props: ModalFileUploadProps) => Promise<void>;
|
|
2046
|
+
export interface CircleFilledIconProps {
|
|
2047
|
+
backColor?: MantineColor;
|
|
2048
|
+
color?: MantineColor;
|
|
2049
|
+
width?: string | number;
|
|
2050
|
+
minWidth?: string | number;
|
|
2051
|
+
icon: ReactNode;
|
|
2052
|
+
mr?: string;
|
|
2053
|
+
}
|
|
2054
|
+
export const CircleFilledIconDefaultProps: Partial<CircleFilledIconProps>;
|
|
2055
|
+
export const CircleFilledIcon: ForwardRefExoticComponent<CircleFilledIconProps & RefAttributes<HTMLInputElement>>;
|
|
2056
|
+
export interface ImportCompletedContentProps {
|
|
2057
|
+
fileName: string;
|
|
2058
|
+
result: ImpDataResult;
|
|
2059
|
+
onClose?: () => void | Promise<void>;
|
|
2060
|
+
importedFileLabel?: string;
|
|
2061
|
+
recordsImportedSuccessfullyLabel?: string;
|
|
2062
|
+
recordsNotImportedDueToErrorsLabel?: string;
|
|
2063
|
+
errorColumnTitle?: string;
|
|
2064
|
+
rowColumnTitle?: string;
|
|
2065
|
+
closeLabel?: ReactNode;
|
|
2066
|
+
}
|
|
2067
|
+
export const ImportCompletedContentDefaultProps: Partial<ImportCompletedContentProps>;
|
|
2068
|
+
export function ImportCompletedContent(props: ImportCompletedContentProps): JSX.Element;
|
|
2069
|
+
export interface ImportDataMappingStepProps {
|
|
2070
|
+
mappingAPI: ImportDataMappingAPI;
|
|
2071
|
+
destinations: readonly string[];
|
|
2072
|
+
validationError?: string;
|
|
2073
|
+
}
|
|
2074
|
+
export const ImportDataMappingStepDefaultProps: Partial<ImportDataMappingStepProps>;
|
|
2075
|
+
export function ImportDataMappingStep(props: ImportDataMappingStepProps): JSX.Element;
|
|
2076
|
+
export interface ImportFileStepProps {
|
|
2077
|
+
entity: ImportEntityData;
|
|
2078
|
+
disabled?: boolean;
|
|
2079
|
+
validationError?: string;
|
|
2080
|
+
onValidateFile: (file: File) => Promise<ValidateFileReturnType>;
|
|
2081
|
+
onDelete: (fileGUID: string) => boolean | Promise<boolean>;
|
|
2082
|
+
onUploadComplete: (report: UploadProgressReport) => Promise<UploadCompletionResult | void>;
|
|
2083
|
+
}
|
|
2084
|
+
export function ImportFileStep({ entity, disabled, validationError, onValidateFile, onDelete, onUploadComplete }: ImportFileStepProps): JSX.Element;
|
|
2085
|
+
export interface ImportInstructionsStepProps {
|
|
2086
|
+
importEntity?: Entity<EntityDefinition>;
|
|
2087
|
+
requiredColumns: readonly string[];
|
|
2088
|
+
instructionsLabel?: string;
|
|
2089
|
+
columnHeaderLabel?: string;
|
|
2090
|
+
dataNameLabel?: string;
|
|
2091
|
+
dataTypeLabel?: string;
|
|
2092
|
+
contentLabel?: string;
|
|
2093
|
+
dateFormatLabel?: string;
|
|
2094
|
+
numberFormatLabel?: string;
|
|
2095
|
+
downloadExcelSampleLabel?: string;
|
|
2096
|
+
downloadCSVSampleLabel?: string;
|
|
2097
|
+
}
|
|
2098
|
+
export function getFriendlyImportDataType(type: SQLType): "Integer" | "Number" | "Date" | "Alphanumeric";
|
|
2099
|
+
export function ImportInstructionsStep({ importEntity, requiredColumns, instructionsLabel, columnHeaderLabel, dataNameLabel, dataTypeLabel, contentLabel, dateFormatLabel, numberFormatLabel, downloadExcelSampleLabel, downloadCSVSampleLabel }: ImportInstructionsStepProps): JSX.Element;
|
|
2100
|
+
export interface ImportSampleDataStepProps {
|
|
2101
|
+
mappingAPI: ImportDataMappingAPI;
|
|
2102
|
+
confirmationLabel?: string;
|
|
2103
|
+
noSampleDataLabel?: string;
|
|
2104
|
+
}
|
|
2105
|
+
export const ImportSampleDataStepDefaultProps: Partial<ImportSampleDataStepProps>;
|
|
2106
|
+
export function ImportSampleDataStep(props: ImportSampleDataStepProps): JSX.Element;
|
|
2107
|
+
export interface ImportSummaryStepProps {
|
|
2108
|
+
file: File | null;
|
|
2109
|
+
mappingState?: ImportDataMappingState;
|
|
2110
|
+
mappingAPI?: ImportDataMappingAPI;
|
|
2111
|
+
importStatus?: OperationStatus<ImpDataResult>;
|
|
2112
|
+
summaryTitleLabel?: string;
|
|
2113
|
+
fileLabel?: string;
|
|
2114
|
+
worksheetLabel?: string;
|
|
2115
|
+
headerRowLabel?: string;
|
|
2116
|
+
columnMappingCorrectLabel?: string;
|
|
2117
|
+
columnMappingIncorrectLabel?: string;
|
|
2118
|
+
viewSampleDataLabel?: string;
|
|
2119
|
+
sampleDataModalTitle?: string;
|
|
2120
|
+
submitAndImportLabel?: string;
|
|
2121
|
+
importingDataLabel?: string;
|
|
2122
|
+
}
|
|
2123
|
+
export const ImportSummaryStepDefaultProps: Partial<ImportSummaryStepProps>;
|
|
2124
|
+
export function ImportSummaryStep(props: ImportSummaryStepProps): JSX.Element | null;
|
|
2020
2125
|
export interface ImportEntityDataFormProps extends FormOptions<ImportEntityData> {
|
|
2021
2126
|
importEntity?: Entity<EntityDefinition>;
|
|
2022
2127
|
entityProcName?: string;
|
|
@@ -2026,6 +2131,8 @@ export interface ImportEntityDataFormProps extends FormOptions<ImportEntityData>
|
|
|
2026
2131
|
instructionsStepDescription?: string;
|
|
2027
2132
|
uploadStepLabel?: string;
|
|
2028
2133
|
uploadStepDescription?: string;
|
|
2134
|
+
dataMappingStepLabel?: string;
|
|
2135
|
+
dataMappingStepDescription?: string;
|
|
2029
2136
|
summaryStepLabel?: string;
|
|
2030
2137
|
summaryStepDescription?: string;
|
|
2031
2138
|
instructionsLabel?: string;
|
|
@@ -2042,6 +2149,8 @@ export interface ImportEntityDataFormProps extends FormOptions<ImportEntityData>
|
|
|
2042
2149
|
uploadRequiredLabel?: string;
|
|
2043
2150
|
mappingRequiredLabel?: string;
|
|
2044
2151
|
importButtonLabel?: string;
|
|
2152
|
+
submitAndImportLabel?: string;
|
|
2153
|
+
importingDataLabel?: string;
|
|
2045
2154
|
importedFileLabel?: string;
|
|
2046
2155
|
recordsImportedSuccessfullyLabel?: string;
|
|
2047
2156
|
recordsNotImportedDueToErrorsLabel?: string;
|