@mcurros2/microm 1.1.392-0 → 1.1.394-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 +21 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +537 -276
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -500,6 +500,7 @@ export interface StepperFormStep {
|
|
|
500
500
|
nextStepLabel?: string;
|
|
501
501
|
nextStepValidLabel?: string;
|
|
502
502
|
nextStepValidation?: () => boolean | Promise<boolean>;
|
|
503
|
+
submitDisabled?: boolean;
|
|
503
504
|
allowStepSelect?: boolean;
|
|
504
505
|
icon?: ReactNode;
|
|
505
506
|
}
|
|
@@ -1638,6 +1639,7 @@ export interface ImportDataMappingRow {
|
|
|
1638
1639
|
SourceHeader: string;
|
|
1639
1640
|
SourceIndex: number;
|
|
1640
1641
|
DestinationColumnName: string | null;
|
|
1642
|
+
IsOmitted: boolean;
|
|
1641
1643
|
}
|
|
1642
1644
|
export interface ImportDataMappingState {
|
|
1643
1645
|
mapping: FileImportMapping;
|
|
@@ -1648,10 +1650,13 @@ export interface ImportDataMappingState {
|
|
|
1648
1650
|
mappedColumnCount: number;
|
|
1649
1651
|
ignoredSourceColumns: string[];
|
|
1650
1652
|
omittedRequiredDestinations: string[];
|
|
1653
|
+
unresolvedSourceColumns: string[];
|
|
1654
|
+
unmappedRequiredDestinations: string[];
|
|
1651
1655
|
}
|
|
1652
1656
|
export interface UseImportDataMappingProps {
|
|
1653
1657
|
destinations: readonly string[];
|
|
1654
1658
|
requiredDestinations: readonly string[];
|
|
1659
|
+
omittableRequiredDestinations?: readonly string[];
|
|
1655
1660
|
initialRow?: number;
|
|
1656
1661
|
sampleRowCount?: number;
|
|
1657
1662
|
fileErrorLabel?: string;
|
|
@@ -1666,14 +1671,18 @@ export interface ImportDataMappingAPI {
|
|
|
1666
1671
|
loading: boolean;
|
|
1667
1672
|
error?: string;
|
|
1668
1673
|
revision: number;
|
|
1674
|
+
omittableRequiredDestinations: readonly string[];
|
|
1675
|
+
omittedRequiredDestinations: readonly string[];
|
|
1669
1676
|
loadFile: (file: File) => Promise<void>;
|
|
1670
1677
|
reset: () => void;
|
|
1671
1678
|
selectSheet: (sheetName: string) => void;
|
|
1672
1679
|
selectHeaderRow: (headerRow: number) => void;
|
|
1673
1680
|
updateMappingRow: (rowIndex: number, destination: string | null) => void;
|
|
1681
|
+
setMappingRowOmitted: (rowIndex: number, omitted: boolean) => void;
|
|
1682
|
+
setRequiredDestinationOmitted: (destination: string, omitted: boolean) => void;
|
|
1674
1683
|
}
|
|
1675
1684
|
export function getImportSourceColumnLabel(row: ImportDataMappingRow): string;
|
|
1676
|
-
export function useImportDataMapping({ destinations, requiredDestinations, initialRow, sampleRowCount, fileErrorLabel }: UseImportDataMappingProps): ImportDataMappingAPI;
|
|
1685
|
+
export function useImportDataMapping({ destinations, requiredDestinations, omittableRequiredDestinations, initialRow, sampleRowCount, fileErrorLabel }: UseImportDataMappingProps): ImportDataMappingAPI;
|
|
1677
1686
|
export interface ImportDataMappingEditorProps {
|
|
1678
1687
|
mappingAPI: ImportDataMappingAPI;
|
|
1679
1688
|
destinations: readonly string[];
|
|
@@ -1682,9 +1691,13 @@ export interface ImportDataMappingEditorProps {
|
|
|
1682
1691
|
sourceHeaderLabel?: string;
|
|
1683
1692
|
sourceIndexLabel?: string;
|
|
1684
1693
|
destinationLabel?: string;
|
|
1694
|
+
omitColumnLabel?: string;
|
|
1685
1695
|
mappingCorrectLabel?: string;
|
|
1686
1696
|
mappingReviewLabel?: string;
|
|
1687
|
-
|
|
1697
|
+
reviewDataMappingLabel?: string;
|
|
1698
|
+
manualDataMappingRequiredLabel?: string;
|
|
1699
|
+
autonumPrimaryKeysLabel?: string;
|
|
1700
|
+
omitAutonumPrimaryKeyLabel?: string;
|
|
1688
1701
|
noDestinationsLabel?: string;
|
|
1689
1702
|
}
|
|
1690
1703
|
export const ImportDataMappingEditorDefaultProps: Partial<ImportDataMappingEditorProps>;
|
|
@@ -2094,18 +2107,16 @@ export function ImportSampleDataStep(props: ImportSampleDataStepProps): JSX.Elem
|
|
|
2094
2107
|
export interface ImportSummaryStepProps {
|
|
2095
2108
|
file: File | null;
|
|
2096
2109
|
mappingState?: ImportDataMappingState;
|
|
2110
|
+
mappingAPI?: ImportDataMappingAPI;
|
|
2097
2111
|
importStatus?: OperationStatus<ImpDataResult>;
|
|
2098
2112
|
summaryTitleLabel?: string;
|
|
2099
2113
|
fileLabel?: string;
|
|
2100
|
-
formatLabel?: string;
|
|
2101
|
-
unknownFormatLabel?: string;
|
|
2102
2114
|
worksheetLabel?: string;
|
|
2103
2115
|
headerRowLabel?: string;
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
noneLabel?: string;
|
|
2116
|
+
columnMappingCorrectLabel?: string;
|
|
2117
|
+
columnMappingIncorrectLabel?: string;
|
|
2118
|
+
viewSampleDataLabel?: string;
|
|
2119
|
+
sampleDataModalTitle?: string;
|
|
2109
2120
|
submitAndImportLabel?: string;
|
|
2110
2121
|
importingDataLabel?: string;
|
|
2111
2122
|
}
|
|
@@ -2122,8 +2133,6 @@ export interface ImportEntityDataFormProps extends FormOptions<ImportEntityData>
|
|
|
2122
2133
|
uploadStepDescription?: string;
|
|
2123
2134
|
dataMappingStepLabel?: string;
|
|
2124
2135
|
dataMappingStepDescription?: string;
|
|
2125
|
-
sampleDataStepLabel?: string;
|
|
2126
|
-
sampleDataStepDescription?: string;
|
|
2127
2136
|
summaryStepLabel?: string;
|
|
2128
2137
|
summaryStepDescription?: string;
|
|
2129
2138
|
instructionsLabel?: string;
|
|
@@ -2139,7 +2148,6 @@ export interface ImportEntityDataFormProps extends FormOptions<ImportEntityData>
|
|
|
2139
2148
|
emptyFileLabel?: string;
|
|
2140
2149
|
uploadRequiredLabel?: string;
|
|
2141
2150
|
mappingRequiredLabel?: string;
|
|
2142
|
-
confirmDataMappingLabel?: string;
|
|
2143
2151
|
importButtonLabel?: string;
|
|
2144
2152
|
submitAndImportLabel?: string;
|
|
2145
2153
|
importingDataLabel?: string;
|
|
@@ -2194,6 +2202,7 @@ export class ImportProcessDef extends EntityDefinition {
|
|
|
2194
2202
|
clientActions: {
|
|
2195
2203
|
ACTImportData: _EntityClientAction1;
|
|
2196
2204
|
ACTDownloadImportedFile: _EntityClientAction1;
|
|
2205
|
+
ACTViewImportErrors: _EntityClientAction1;
|
|
2197
2206
|
};
|
|
2198
2207
|
constructor(destinationProps: ImportDataDestinationProps);
|
|
2199
2208
|
}
|