@ivandt/importer 1.0.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/README.md +30 -0
- package/dist/assets/importer.css +1 -0
- package/dist/importer.cjs.js +514 -0
- package/dist/importer.d.ts +1 -0
- package/dist/importer.es.js +91645 -0
- package/dist/index-C1bluYVj.js +118 -0
- package/dist/index-CI2WmQs5.cjs +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +8 -0
- package/dist/src/importer.d.ts +0 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/lib/IvtImporter.svelte.d.ts +1 -0
- package/dist/src/lib/actions/applyToColumn.d.ts +6 -0
- package/dist/src/lib/actions/autoIncrementIdsAction.d.ts +3 -0
- package/dist/src/lib/actions/backwardFillAction.d.ts +3 -0
- package/dist/src/lib/actions/clampRangeAction.d.ts +3 -0
- package/dist/src/lib/actions/clearCellRangeAction.d.ts +3 -0
- package/dist/src/lib/actions/clearCulmn.d.ts +3 -0
- package/dist/src/lib/actions/combineColumnsAction.d.ts +4 -0
- package/dist/src/lib/actions/defaultValueAction.d.ts +3 -0
- package/dist/src/lib/actions/dispatcher.d.ts +5 -0
- package/dist/src/lib/actions/fillWithTimestampAction.d.ts +3 -0
- package/dist/src/lib/actions/findAndReplace.d.ts +3 -0
- package/dist/src/lib/actions/formatDatesAction.d.ts +9 -0
- package/dist/src/lib/actions/formatPhoneNumbersAction.d.ts +0 -0
- package/dist/src/lib/actions/forwardFillAction.d.ts +3 -0
- package/dist/src/lib/actions/fuzzyFixAction/fastestfuzzyFixAction.d.ts +7 -0
- package/dist/src/lib/actions/fuzzyFixAction/fuzzyFixAction.d.ts +3 -0
- package/dist/src/lib/actions/fuzzyFixAction/fuzzyFixAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/generateUUIDsAction.d.ts +3 -0
- package/dist/src/lib/actions/lookupCountryNamesAction.d.ts +18 -0
- package/dist/src/lib/actions/mapToEnumAction.d.ts +4 -0
- package/dist/src/lib/actions/normalizeUrlsAction.d.ts +30 -0
- package/dist/src/lib/actions/normalizeZScoreAction.d.ts +24 -0
- package/dist/src/lib/actions/padStringAction.d.ts +3 -0
- package/dist/src/lib/actions/parseNumberAction.d.ts +3 -0
- package/dist/src/lib/actions/regexReplaceAction.d.ts +3 -0
- package/dist/src/lib/actions/removeDuplicatesAction.d.ts +3 -0
- package/dist/src/lib/actions/roundNumbersAction.d.ts +3 -0
- package/dist/src/lib/actions/scaleNumbersAction.d.ts +3 -0
- package/dist/src/lib/actions/specs/autoIncrementIdsAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/backwardFillAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/clampRangeAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/clearCellRangeAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/combineColumnsAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/fillWithTimestampAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/findAndReplace.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/formatDatesAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/forwardFillAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/generateUUIDsAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/lookupCountryNamesAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/normalizeUrlsAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/normalizeZScoreAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/padStringAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/parseNumberAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/regexReplaceAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/removeDuplicatesAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/roundNumbersAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/scaleNumbersAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/stripHtmlTagsAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/titleCaseTextAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/toLowerCaseAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/toUpperCaseAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/trimWhitespaceAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/specs/truncateTextAction.spec.d.ts +1 -0
- package/dist/src/lib/actions/stripHtmlTagsAction.d.ts +3 -0
- package/dist/src/lib/actions/titleCaseTextAction.d.ts +3 -0
- package/dist/src/lib/actions/toLowerCaseAction.d.ts +3 -0
- package/dist/src/lib/actions/toUpperCaseAction.d.ts +3 -0
- package/dist/src/lib/actions/trimWhitespace.d.ts +3 -0
- package/dist/src/lib/actions/truncateTextAction.d.ts +3 -0
- package/dist/src/lib/api/suggestMapHeaders.d.ts +5 -0
- package/dist/src/lib/api/validateApiKey.d.ts +2 -0
- package/dist/src/lib/components/IvtAnimatedDots.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtAutocomplete.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtCellMenu.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtCellTooltip.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtChooseHeader.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtColDescTooltip.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtCombineDialog.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtConfirmDialog.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtContextMenu/IvtContextMenu.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtContextMenu/contentMenu.util.d.ts +3 -0
- package/dist/src/lib/components/IvtContextMenu/contextMenu.store.d.ts +10 -0
- package/dist/src/lib/components/IvtDialog.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtDiffTable/DiffTableLogic.d.ts +12 -0
- package/dist/src/lib/components/IvtDiffTable/DiffTableLogic.spec.d.ts +1 -0
- package/dist/src/lib/components/IvtDiffTable/IngDiffTable.spec.d.ts +1 -0
- package/dist/src/lib/components/IvtDiffTable/IvtDiffTable.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtExportExcel.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtFindAndReplaceDialog.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtFullPageTextLoading.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtHot.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtInfoTooltip.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtMapHeaders.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtMappingWarningDialog.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtMention/Caret.d.ts +45 -0
- package/dist/src/lib/components/IvtMention/IvtMention.spec.d.ts +1 -0
- package/dist/src/lib/components/IvtMention/IvtMention.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtMention/renderTemplate.d.ts +2 -0
- package/dist/src/lib/components/IvtMention/renderTemplate.spec.d.ts +1 -0
- package/dist/src/lib/components/IvtMention/replaceLabelsWithValues.d.ts +2 -0
- package/dist/src/lib/components/IvtPaginator.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtSmartFixButton.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtStepper/IvtStepper.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtStepper/constants.d.ts +14 -0
- package/dist/src/lib/components/IvtSubmitDialog.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtTable.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtTableBadges.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtTableWrapper.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtToast.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtToasts.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtTooltip.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtUploadIcons.svelte.d.ts +1 -0
- package/dist/src/lib/components/IvtUploader.svelte.d.ts +1 -0
- package/dist/src/lib/constants.d.ts +17 -0
- package/dist/src/lib/icons/IconCSV.svelte.d.ts +1 -0
- package/dist/src/lib/icons/IconCheck.svelte.d.ts +1 -0
- package/dist/src/lib/icons/IconClearColumn.svelte.d.ts +1 -0
- package/dist/src/lib/icons/IconClose.svelte.d.ts +1 -0
- package/dist/src/lib/icons/IconCombined.svelte.d.ts +1 -0
- package/dist/src/lib/icons/IconError.svelte.d.ts +1 -0
- package/dist/src/lib/icons/IconExcel.svelte.d.ts +1 -0
- package/dist/src/lib/icons/IconFindAndReplace.svelte.d.ts +1 -0
- package/dist/src/lib/icons/IconIntelligence.svelte.d.ts +1 -0
- package/dist/src/lib/icons/IconPDF.svelte.d.ts +1 -0
- package/dist/src/lib/icons/IconRemoveColumn.svelte.d.ts +1 -0
- package/dist/src/lib/icons/IconReplaceEmptyCells.svelte.d.ts +1 -0
- package/dist/src/lib/icons/IconTick.svelte.d.ts +1 -0
- package/dist/src/lib/icons/InfoIcon.svelte.d.ts +1 -0
- package/dist/src/lib/renderers/date-picker.renderer.d.ts +1 -0
- package/dist/src/lib/services/eventHandler.service.d.ts +26 -0
- package/dist/src/lib/store/activeBadge.store.d.ts +3 -0
- package/dist/src/lib/store/constants.d.ts +2 -0
- package/dist/src/lib/store/dataSource.store.d.ts +28 -0
- package/dist/src/lib/store/dataSource.store.spec.d.ts +1 -0
- package/dist/src/lib/store/dialog.store.d.ts +16 -0
- package/dist/src/lib/store/excel-parser.store.d.ts +4 -0
- package/dist/src/lib/store/file.store.d.ts +7 -0
- package/dist/src/lib/store/fileHeaders.store.d.ts +2 -0
- package/dist/src/lib/store/fuzzy.store.d.ts +3 -0
- package/dist/src/lib/store/index.d.ts +13 -0
- package/dist/src/lib/store/initialiseStores.d.ts +3 -0
- package/dist/src/lib/store/mapping.store.d.ts +5 -0
- package/dist/src/lib/store/schema.store.d.ts +3 -0
- package/dist/src/lib/store/stepper.store.d.ts +9 -0
- package/dist/src/lib/store/tableRows.store.d.ts +3 -0
- package/dist/src/lib/store/toast.store.d.ts +4 -0
- package/dist/src/lib/store/validations.store.d.ts +38 -0
- package/dist/src/lib/store/validations.store.spec.d.ts +1 -0
- package/dist/src/lib/types/dto.types.d.ts +10 -0
- package/dist/src/lib/types/events.d.ts +9 -0
- package/dist/src/lib/types/external.types.d.ts +66 -0
- package/dist/src/lib/types/index.d.ts +7 -0
- package/dist/src/lib/types/internal.types.d.ts +143 -0
- package/dist/src/lib/types/parser.types.d.ts +53 -0
- package/dist/src/lib/types/schema.types.d.ts +118 -0
- package/dist/src/lib/types/table.types.d.ts +4 -0
- package/dist/src/lib/types/transformActions.types.d.ts +266 -0
- package/dist/src/lib/types/validators.types.d.ts +113 -0
- package/dist/src/lib/utils/augmentCellChangesWithTableRows.d.ts +21 -0
- package/dist/src/lib/utils/augmentCellChangesWithTableRows.spec.d.ts +1 -0
- package/dist/src/lib/utils/augmentChangesForCrossFieldValidation.d.ts +2 -0
- package/dist/src/lib/utils/augmentChangesForCrossFieldValidation.spec.d.ts +1 -0
- package/dist/src/lib/utils/createField.d.ts +2 -0
- package/dist/src/lib/utils/createFileReaderStore.d.ts +3 -0
- package/dist/src/lib/utils/debounce.d.ts +5 -0
- package/dist/src/lib/utils/downloadTemplate.d.ts +2 -0
- package/dist/src/lib/utils/formatFileSize.d.ts +1 -0
- package/dist/src/lib/utils/getAllPossibleOptions.d.ts +2 -0
- package/dist/src/lib/utils/getCellChangesRowsRange.d.ts +2 -0
- package/dist/src/lib/utils/getCellChangesRowsRange.spec.d.ts +1 -0
- package/dist/src/lib/utils/getEventCords.d.ts +2 -0
- package/dist/src/lib/utils/getFileExtension.d.ts +2 -0
- package/dist/src/lib/utils/hasCalculatedField.d.ts +3 -0
- package/dist/src/lib/utils/hasFullColumnValidators.d.ts +3 -0
- package/dist/src/lib/utils/hot/convertHotDataToIngTableRows.d.ts +2 -0
- package/dist/src/lib/utils/hot/convertTableRowsToHotCellChanges.d.ts +2 -0
- package/dist/src/lib/utils/hot/convertTableRowsToHotData.d.ts +2 -0
- package/dist/src/lib/utils/hot/searchColumn.d.ts +3 -0
- package/dist/src/lib/utils/hot/searchColumn.spec.d.ts +1 -0
- package/dist/src/lib/utils/hot/valueDropdownCellType.d.ts +17 -0
- package/dist/src/lib/utils/isAllMapped.d.ts +3 -0
- package/dist/src/lib/utils/isEqualValue.d.ts +2 -0
- package/dist/src/lib/utils/isEqualValue.spec.d.ts +1 -0
- package/dist/src/lib/utils/isNoOpChanges.d.ts +2 -0
- package/dist/src/lib/utils/isOfType.d.ts +8 -0
- package/dist/src/lib/utils/isSelectOptions.d.ts +1 -0
- package/dist/src/lib/utils/mappers/mapHeaders.d.ts +17 -0
- package/dist/src/lib/utils/mappers/mapHeaders.spec.d.ts +1 -0
- package/dist/src/lib/utils/mappers/mapIngToHotColumns.d.ts +3 -0
- package/dist/src/lib/utils/mustache.d.ts +2 -0
- package/dist/src/lib/utils/mustache.spec.d.ts +1 -0
- package/dist/src/lib/utils/normaliseSchema.d.ts +9 -0
- package/dist/src/lib/utils/normaliseSchema.spec.d.ts +1 -0
- package/dist/src/lib/utils/normalizeFieldOrder/normalizeFieldOrder.d.ts +7 -0
- package/dist/src/lib/utils/normalizeFieldOrder/normalizeFieldOrder.spec.d.ts +1 -0
- package/dist/src/lib/utils/parseNumberOrReturnNull.d.ts +2 -0
- package/dist/src/lib/utils/parseNumberOrReturnNull.spec.d.ts +1 -0
- package/dist/src/lib/utils/sanitiseFieldMappingsAndExtractFieldsForWorker.d.ts +4 -0
- package/dist/src/lib/utils/stripRowDependentClauses.d.ts +5 -0
- package/dist/src/lib/utils/stripRowDependentClauses.spec.d.ts +1 -0
- package/dist/src/lib/utils/throttle.d.ts +5 -0
- package/dist/src/lib/utils/toCleanCamelCase.d.ts +1 -0
- package/dist/src/lib/utils/transformers/transoformTableRows.d.ts +1 -0
- package/dist/src/lib/utils/validators/createValidator.d.ts +2 -0
- package/dist/src/lib/utils/validators/makeResult.d.ts +2 -0
- package/dist/src/lib/utils/validators/resolveEnumerate.d.ts +2 -0
- package/dist/src/lib/utils/validators/rulepilot.d.ts +0 -0
- package/dist/src/lib/utils/validators/sortValidators.d.ts +2 -0
- package/dist/src/lib/utils/validators/spec/boolean.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/comparator.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/creditCard.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/date.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/email.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/enum.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/max.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/maxLength.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/min.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/minLength.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/multiple.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/numeric.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/phone.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/range.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/regex.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/required.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/sortValidators.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/spec.utils.d.ts +4 -0
- package/dist/src/lib/utils/validators/spec/unique.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/spec/url.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/validateBoolean.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateCell.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateCell.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/validateCreditCard.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateDate.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateDate.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/validateEmail.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateEnumerate.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateInvalidIf.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/validateMax.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateMaxLength.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateMin.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateMinLength.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateNumeric.d.ts +2 -0
- package/dist/src/lib/utils/validators/validatePhone.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateRange.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateRegex.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateRequired.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateRows.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateRows.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/validateRules.d.ts +14 -0
- package/dist/src/lib/utils/validators/validateRules.spec.d.ts +1 -0
- package/dist/src/lib/utils/validators/validateUUID.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateUnique.d.ts +2 -0
- package/dist/src/lib/utils/validators/validateUrl.d.ts +2 -0
- package/dist/src/lib/workers/action.worker.d.ts +1 -0
- package/dist/src/lib/workers/excel-parser/createExcelFile.d.ts +6 -0
- package/dist/src/lib/workers/excel-parser/excel-parser.worker.d.ts +1 -0
- package/dist/src/lib/workers/excel-parser/isSameCalendarDate.d.ts +1 -0
- package/dist/src/lib/workers/excel-parser/loadBuffer.d.ts +2 -0
- package/dist/src/lib/workers/excel-parser/normaliseCell.d.ts +13 -0
- package/dist/src/lib/workers/excel-parser/normaliseCell.spec.d.ts +1 -0
- package/dist/src/lib/workers/excel-parser/normaliseRows.d.ts +2 -0
- package/dist/src/lib/workers/excel-parser/normaliseRows.spec.d.ts +1 -0
- package/dist/src/lib/workers/excel-parser/parseComplete.d.ts +8 -0
- package/dist/src/lib/workers/excel-parser/parseComplete.spec.d.ts +1 -0
- package/dist/src/lib/workers/excel-parser/parsePreview.d.ts +9 -0
- package/dist/src/lib/workers/excel-parser/parsePreview.spec.d.ts +1 -0
- package/dist/src/lib/workers/excel-parser/useExcelParseWorker.d.ts +6 -0
- package/dist/src/lib/workers/excel-to-table-rows/excel-to-table-rows.worker.d.ts +3 -0
- package/dist/src/lib/workers/excel-to-table-rows/sortWorkbookMappings.d.ts +2 -0
- package/dist/src/lib/workers/excel-to-table-rows/sortWorkbookMappings.spec.d.ts +1 -0
- package/dist/src/lib/workers/excel-to-table-rows/useExcelToTableRowsWorker.d.ts +5 -0
- package/dist/src/lib/workers/hooks/actionDispatcher.d.ts +2 -0
- package/dist/src/lib/workers/hooks/useActionWorker.d.ts +4 -0
- package/dist/src/lib/workers/transform-table-rows/transformTable.worker.d.ts +1 -0
- package/dist/src/lib/workers/transform-table-rows/transformTableRows.d.ts +2 -0
- package/dist/src/lib/workers/transform-table-rows/transformTableRows.spec.d.ts +1 -0
- package/dist/src/lib/workers/transform-table-rows/useTransformTableRows.d.ts +6 -0
- package/dist/src/lib/workers/validator/useValidatorWorker.d.ts +6 -0
- package/dist/src/lib/workers/validator/validator.worker.d.ts +1 -0
- package/dist/src/lib/workers/workerPool.d.ts +11 -0
- package/dist/src/mock/mock-field-mappings.d.ts +15 -0
- package/dist/src/routes/e2e/mock-mappings/mock-fields-ai-mapping.d.ts +2 -0
- package/dist/src/routes/e2e/mock-mappings/mock-fields-all-match.d.ts +2 -0
- package/dist/src/routes/shared.d.ts +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +101 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface ICaretPosition {
|
|
2
|
+
/**
|
|
3
|
+
* position in pixel.
|
|
4
|
+
*/
|
|
5
|
+
top: number;
|
|
6
|
+
/**
|
|
7
|
+
* position in pixel.
|
|
8
|
+
*/
|
|
9
|
+
left: number;
|
|
10
|
+
/**
|
|
11
|
+
* if true the position is relative to the inner window size, if false the position is relative to itself.
|
|
12
|
+
*/
|
|
13
|
+
absolute: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* height in pixel.
|
|
16
|
+
*/
|
|
17
|
+
height: number;
|
|
18
|
+
}
|
|
19
|
+
export interface ICaretPoint {
|
|
20
|
+
/**
|
|
21
|
+
* left position.
|
|
22
|
+
*/
|
|
23
|
+
left: number;
|
|
24
|
+
/**
|
|
25
|
+
* top position.
|
|
26
|
+
*/
|
|
27
|
+
top: number;
|
|
28
|
+
}
|
|
29
|
+
export interface ICaretOptions {
|
|
30
|
+
/**
|
|
31
|
+
* Enables debug Mode.
|
|
32
|
+
*/
|
|
33
|
+
debug?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* usesSelection End Instead of selection Start.
|
|
36
|
+
*/
|
|
37
|
+
useSelectionEnd?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* if true the left position gets caped if left >= element Width.
|
|
40
|
+
*/
|
|
41
|
+
checkWidthOverflow?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export declare function getAbsolutePosition(element: HTMLTextAreaElement): ICaretPosition;
|
|
44
|
+
export declare function getCaretRelativePosition(element: HTMLTextAreaElement, options?: ICaretOptions): ICaretPosition;
|
|
45
|
+
export declare function setElementPositionBasedOnCaret(element: HTMLElement, caretElement: HTMLTextAreaElement, offset?: ICaretPoint, margin?: number, detectBoundary?: boolean, returnOnly?: boolean): ICaretPoint;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const stepTitles: {
|
|
2
|
+
title: string;
|
|
3
|
+
desc: string;
|
|
4
|
+
}[];
|
|
5
|
+
export declare enum Steps {
|
|
6
|
+
UploadFile = 0,
|
|
7
|
+
ChooseHeader = 1,
|
|
8
|
+
MapHeaders = 2,
|
|
9
|
+
Review = 3
|
|
10
|
+
}
|
|
11
|
+
export declare enum Dialogs {
|
|
12
|
+
MissingMappingWarning = "missingMappingWarning",
|
|
13
|
+
Confirm = "confirm"
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IngSchemaInternal } from './types/schema.types';
|
|
2
|
+
import { IvtSchema } from './types';
|
|
3
|
+
export declare const baseUrl = "http://localhost:3001/api";
|
|
4
|
+
export declare const staticOptionsResolverDsPrefix = "__static_options_";
|
|
5
|
+
export declare const dynamicOptionsResolverDsPrefix = "__dynamic_options_";
|
|
6
|
+
export declare const staticEnumsResolverDsPrefix = "__static_enum_";
|
|
7
|
+
export declare const dynamicEnumsResolverDsPrefix = "__dynamic_enum_";
|
|
8
|
+
export declare const defaultInternalSchema: IngSchemaInternal;
|
|
9
|
+
export declare const defaultSchema: IvtSchema;
|
|
10
|
+
export declare const checkboxDefaultMapToEnums: {
|
|
11
|
+
No: boolean;
|
|
12
|
+
no: boolean;
|
|
13
|
+
NO: boolean;
|
|
14
|
+
Yes: boolean;
|
|
15
|
+
yes: boolean;
|
|
16
|
+
YES: boolean;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ICellErrorWithMeta, IFieldMapping, ITableRowInternal, ITableRowRange, ITableRows, ITableRowsInternal } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Dead simple event handler service
|
|
4
|
+
*/
|
|
5
|
+
export declare class EventHandlerService {
|
|
6
|
+
/**
|
|
7
|
+
* Process beforeRowsChange event and update data sources
|
|
8
|
+
*/
|
|
9
|
+
processBeforeRowsChange(tableRows: ITableRowsInternal, changedRows: ITableRowInternal[], rowRange: ITableRowRange): Promise<{
|
|
10
|
+
changedRows: ITableRowsInternal;
|
|
11
|
+
errors: ICellErrorWithMeta[];
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* Convert internal table rows to client format with field metadata
|
|
15
|
+
*/
|
|
16
|
+
private convertToClientFormat;
|
|
17
|
+
/**
|
|
18
|
+
* Process dynamic options from client result
|
|
19
|
+
*/
|
|
20
|
+
processDynamicOptions(clientResult: ITableRows, fieldMappings: IFieldMapping[], rowRange: ITableRowRange): void;
|
|
21
|
+
/**
|
|
22
|
+
* Convert client result back to internal format
|
|
23
|
+
*/
|
|
24
|
+
private convertToInternalFormat;
|
|
25
|
+
}
|
|
26
|
+
export declare const eventHandlerService: EventHandlerService;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DataSources, IDataSourceResolver, IDropdownFieldOption, ITableRowInternal } from '../types';
|
|
2
|
+
export declare function isNilOrEmpty(value: unknown): boolean;
|
|
3
|
+
export declare const dataSourceStore: {
|
|
4
|
+
/**
|
|
5
|
+
* Initialize with static data sources from schema
|
|
6
|
+
*/
|
|
7
|
+
initializeFromSchema(dataSources: DataSources): void;
|
|
8
|
+
clear(): void;
|
|
9
|
+
/**
|
|
10
|
+
* Update or add a data source (can be any data structure)
|
|
11
|
+
*/
|
|
12
|
+
addDataSource(key: string, data: any): void;
|
|
13
|
+
/**
|
|
14
|
+
* Get all data sources
|
|
15
|
+
*/
|
|
16
|
+
getAllDataSources(): DataSources;
|
|
17
|
+
resolveDynamic<T>(results: T | undefined, query: string, row: ITableRowInternal, dataSources: DataSources): T | undefined;
|
|
18
|
+
resolveSource<T>(resolver: IDataSourceResolver, dataSources?: Record<string, any>, row?: ITableRowInternal): T | undefined;
|
|
19
|
+
resolveDynamicOrStaticOptions(resolver: IDataSourceResolver, dataSources: Record<string, any> | undefined, rowIndex: number, fieldKey: string, row?: ITableRowInternal): IDropdownFieldOption[];
|
|
20
|
+
resolveOptions(resolver: IDataSourceResolver, dataSources?: Record<string, any>, row?: ITableRowInternal): IDropdownFieldOption[];
|
|
21
|
+
resolveEnum(resolver: IDataSourceResolver, dataSources?: Record<string, any>, row?: ITableRowInternal): Record<string, any>;
|
|
22
|
+
/**
|
|
23
|
+
* Create dynamic options resolver based on row context
|
|
24
|
+
*/
|
|
25
|
+
getOptionsResolver(originalResolver: IDataSourceResolver, rowIndex: number, dataSources: DataSources): IDataSourceResolver;
|
|
26
|
+
generateRowDynamicDsKey(fieldKey: string, rowIndex: number, prefix: string): string;
|
|
27
|
+
subscribe: (this: void, run: import('svelte/store').Subscriber<DataSources>, invalidate?: () => void) => import('svelte/store').Unsubscriber;
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Dialogs } from '../components/IvtStepper/constants';
|
|
2
|
+
export declare const dialogStore: import('svelte/store').Writable<{
|
|
3
|
+
missingMappingWarning: boolean;
|
|
4
|
+
confirm: boolean;
|
|
5
|
+
}>;
|
|
6
|
+
type Resolver = (value: boolean | PromiseLike<boolean>) => void;
|
|
7
|
+
type IConfirmDialogData = {
|
|
8
|
+
resolver: Resolver;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const confirmDialogStore: import('svelte/store').Writable<IConfirmDialogData | null>;
|
|
13
|
+
export declare const showDialog: (dialog: Dialogs) => void;
|
|
14
|
+
export declare const showConfirmDialog: (data: Omit<IConfirmDialogData, "resolver">) => Promise<boolean>;
|
|
15
|
+
export declare const hideDialog: (dialog: Dialogs) => void;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IExcelDataStore } from '../types';
|
|
2
|
+
export declare const excelDataStore: import('svelte/store').Writable<IExcelDataStore>;
|
|
3
|
+
export declare function clearExcelStore(error?: string): void;
|
|
4
|
+
export declare const isParsingExcel: import('svelte/store').Writable<boolean>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './activeBadge.store';
|
|
2
|
+
export * from './dataSource.store';
|
|
3
|
+
export * from './dialog.store';
|
|
4
|
+
export * from './excel-parser.store';
|
|
5
|
+
export * from './file.store';
|
|
6
|
+
export * from './fileHeaders.store';
|
|
7
|
+
export * from './fuzzy.store';
|
|
8
|
+
export * from './mapping.store';
|
|
9
|
+
export * from './schema.store';
|
|
10
|
+
export * from './stepper.store';
|
|
11
|
+
export * from './tableRows.store';
|
|
12
|
+
export * from './toast.store';
|
|
13
|
+
export * from './validations.store';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IFieldMappings, IFileHeader } from '../types';
|
|
2
|
+
export declare const fieldMappingsStore: import('svelte/store').Writable<IFieldMappings>;
|
|
3
|
+
export declare const isSuggestingHeaders: import('svelte/store').Writable<boolean>;
|
|
4
|
+
export declare function suggestHeaderMappings(fileHeaders: IFileHeader[]): Promise<void>;
|
|
5
|
+
export declare const finaliseMappings: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Steps } from '../components/IvtStepper/constants';
|
|
2
|
+
import { ITableRowsInternal, IvtSchema } from '../types';
|
|
3
|
+
export declare const stepperStore: import('svelte/store').Writable<Steps>;
|
|
4
|
+
export declare const submittedImport: import('svelte/store').Writable<boolean>;
|
|
5
|
+
export declare const stepNext: () => Promise<void>;
|
|
6
|
+
export declare const stepPrev: (rawSchema: IvtSchema) => Promise<void>;
|
|
7
|
+
export declare const submitImport: () => void;
|
|
8
|
+
export declare const cancelSubmitImport: () => void;
|
|
9
|
+
export declare const initTransformAndValidate: (tableRows: ITableRowsInternal) => Promise<void>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ICellErrorWithMeta } from '../types';
|
|
2
|
+
export declare function createValidationErrorStore(): {
|
|
3
|
+
subscribe: (this: void, run: import('svelte/store').Subscriber<Map<string, ICellErrorWithMeta>>, invalidate?: () => void) => import('svelte/store').Unsubscriber;
|
|
4
|
+
resetAllErrors: (errors: ICellErrorWithMeta[], rowCount: number) => void;
|
|
5
|
+
updateErrors: (errors: ICellErrorWithMeta[], batchStart: number, batchLength: number) => void;
|
|
6
|
+
addOrReplaceErrors: (errors: ICellErrorWithMeta[]) => void;
|
|
7
|
+
getError: (row: number, col: number) => ICellErrorWithMeta | undefined;
|
|
8
|
+
getRangeValidation: (start: number, end: number) => ICellErrorWithMeta[];
|
|
9
|
+
getValidationForColumn: (colIndex: number, severity: "v" | "w" | "e") => ICellErrorWithMeta[];
|
|
10
|
+
getInvalidCells: (severity?: "e" | "w") => ICellErrorWithMeta[];
|
|
11
|
+
getAllErrors: () => ICellErrorWithMeta[];
|
|
12
|
+
clear: () => void;
|
|
13
|
+
errorRowsSet: import('svelte/store').Writable<Set<number>>;
|
|
14
|
+
warningRowsSet: import('svelte/store').Writable<Set<number>>;
|
|
15
|
+
validRowsSet: import('svelte/store').Writable<Set<number>>;
|
|
16
|
+
errorCount: import('svelte/store').Readable<number>;
|
|
17
|
+
warningCount: import('svelte/store').Readable<number>;
|
|
18
|
+
validCount: import('svelte/store').Readable<number>;
|
|
19
|
+
};
|
|
20
|
+
export declare const validationErrorStore: {
|
|
21
|
+
subscribe: (this: void, run: import('svelte/store').Subscriber<Map<string, ICellErrorWithMeta>>, invalidate?: () => void) => import('svelte/store').Unsubscriber;
|
|
22
|
+
resetAllErrors: (errors: ICellErrorWithMeta[], rowCount: number) => void;
|
|
23
|
+
updateErrors: (errors: ICellErrorWithMeta[], batchStart: number, batchLength: number) => void;
|
|
24
|
+
addOrReplaceErrors: (errors: ICellErrorWithMeta[]) => void;
|
|
25
|
+
getError: (row: number, col: number) => ICellErrorWithMeta | undefined;
|
|
26
|
+
getRangeValidation: (start: number, end: number) => ICellErrorWithMeta[];
|
|
27
|
+
getValidationForColumn: (colIndex: number, severity: "v" | "w" | "e") => ICellErrorWithMeta[];
|
|
28
|
+
getInvalidCells: (severity?: "e" | "w") => ICellErrorWithMeta[];
|
|
29
|
+
getAllErrors: () => ICellErrorWithMeta[];
|
|
30
|
+
clear: () => void;
|
|
31
|
+
errorRowsSet: import('svelte/store').Writable<Set<number>>;
|
|
32
|
+
warningRowsSet: import('svelte/store').Writable<Set<number>>;
|
|
33
|
+
validRowsSet: import('svelte/store').Writable<Set<number>>;
|
|
34
|
+
errorCount: import('svelte/store').Readable<number>;
|
|
35
|
+
warningCount: import('svelte/store').Readable<number>;
|
|
36
|
+
validCount: import('svelte/store').Readable<number>;
|
|
37
|
+
};
|
|
38
|
+
export declare const subscribe: (this: void, run: import('svelte/store').Subscriber<Map<string, ICellErrorWithMeta>>, invalidate?: () => void) => import('svelte/store').Unsubscriber, clear: () => void, errorRowsSet: import('svelte/store').Writable<Set<number>>, warningRowsSet: import('svelte/store').Writable<Set<number>>, errorCount: import('svelte/store').Readable<number>, warningCount: import('svelte/store').Readable<number>, validCount: import('svelte/store').Readable<number>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface IHeaderDto {
|
|
2
|
+
label: string;
|
|
3
|
+
key: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IHeaderMapDto {
|
|
7
|
+
schemaHeaders: IHeaderDto[];
|
|
8
|
+
fileHeaders: Omit<IHeaderDto, 'description'>[];
|
|
9
|
+
}
|
|
10
|
+
export type IHeaderMapResponseDto = Record<string, string | null>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ITableRowsInternal } from './table.types';
|
|
2
|
+
import { ITableRowRange } from './internal.types';
|
|
3
|
+
import { ITableRows } from './external.types';
|
|
4
|
+
export type IBeforeRowsChangeReturn = {
|
|
5
|
+
changedRows: ITableRows;
|
|
6
|
+
};
|
|
7
|
+
export type IEventHandlersInternal = {
|
|
8
|
+
beforeRowsChange?: (changedTableRows: ITableRows, range: ITableRowRange, fullTableRows: ITableRowsInternal) => Promise<IBeforeRowsChangeReturn>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ICellTransformAction, IFieldTransformerMapInternal, IMapToEnumTransformActionPayloadInternal } from './transformActions.types';
|
|
2
|
+
import { DataSources, IAutoCompleteFieldSchemaInternal, IBaseFieldSchemaInternal, ICheckBoxFieldSchemaInternal, ICombineFiledSchemaInternal, IDataSourceResolver, IDateFieldSchemaInternal, IDropdownFieldOption, IDropDownFieldSchemaInternal, IngSchemaInternal, INumericFieldSchemaInternal, IPasswordFieldSchemaInternal, ISelectFieldSchemaInternal, ITextFieldSchemaInternal, ITimeFieldSchemaInternal } from './schema.types';
|
|
3
|
+
import { ICellError, IFieldValidatorInternal, IRequiredFieldValidator, IRulesFieldValidator, IUniqueFieldValidatorInternal } from './validators.types';
|
|
4
|
+
import { ITableRowRange, IvtCellValue } from './internal.types';
|
|
5
|
+
import { DefaultTableRowType, ITableRowsInternal } from './table.types';
|
|
6
|
+
export type IUniqueFieldValidator = Omit<IUniqueFieldValidatorInternal, 'valueCounts'>;
|
|
7
|
+
export type IFieldValidator<TableRow = DefaultTableRowType> = Exclude<IFieldValidatorInternal, IUniqueFieldValidatorInternal | IRulesFieldValidator> | IUniqueFieldValidator | IRulesFieldValidator<TableRow>;
|
|
8
|
+
export type IMapToEnumTransformActionPayload = {
|
|
9
|
+
action: ICellTransformAction.MapToEnum;
|
|
10
|
+
payload: Omit<IMapToEnumTransformActionPayloadInternal, 'resolver' | 'columnNumber' | 'fieldSchemas'> & {
|
|
11
|
+
enums: Record<string, IvtCellValue> | IDataSourceResolver;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type IFieldTransformer = Exclude<IFieldTransformerMapInternal, IMapToEnumTransformActionPayloadInternal> | IMapToEnumTransformActionPayload;
|
|
15
|
+
type SwapValidatorsAndTransformer<T, TableRow = DefaultTableRowType> = Omit<T, 'validators' | 'transformers'> & {
|
|
16
|
+
validators?: IFieldValidator<TableRow>[];
|
|
17
|
+
transformers?: IFieldTransformer[];
|
|
18
|
+
};
|
|
19
|
+
export type IBaseFieldSchema<TableRow = DefaultTableRowType> = SwapValidatorsAndTransformer<IBaseFieldSchemaInternal, TableRow>;
|
|
20
|
+
export type IMenuFieldSchema = IAutoCompleteFieldSchema | IDropDownFieldSchema | ISelectFieldSchema;
|
|
21
|
+
export interface IDropDownFieldSchema<TableRow = DefaultTableRowType> extends Omit<SwapValidatorsAndTransformer<IDropDownFieldSchemaInternal, TableRow>, 'options'> {
|
|
22
|
+
options: IDropdownFieldOption[] | IDataSourceResolver;
|
|
23
|
+
}
|
|
24
|
+
export interface IAutoCompleteFieldSchema<TableRow = DefaultTableRowType> extends Omit<SwapValidatorsAndTransformer<IAutoCompleteFieldSchemaInternal, TableRow>, 'options'> {
|
|
25
|
+
options: IDropdownFieldOption[] | IDataSourceResolver;
|
|
26
|
+
}
|
|
27
|
+
export interface ISelectFieldSchema<TableRow = DefaultTableRowType> extends Omit<SwapValidatorsAndTransformer<ISelectFieldSchemaInternal, TableRow>, 'options'> {
|
|
28
|
+
options: string[];
|
|
29
|
+
}
|
|
30
|
+
export interface ICheckBoxFieldSchema<TableRow = DefaultTableRowType> extends Omit<SwapValidatorsAndTransformer<ICheckBoxFieldSchemaInternal>, 'validators'> {
|
|
31
|
+
validators?: (IRequiredFieldValidator | IRulesFieldValidator<TableRow>)[];
|
|
32
|
+
}
|
|
33
|
+
export type IDateFieldSchema<TableRow = DefaultTableRowType> = SwapValidatorsAndTransformer<IDateFieldSchemaInternal, TableRow>;
|
|
34
|
+
export type INumericFieldSchema<TableRow = DefaultTableRowType> = SwapValidatorsAndTransformer<INumericFieldSchemaInternal, TableRow>;
|
|
35
|
+
export type IPasswordFieldSchema<TableRow = DefaultTableRowType> = SwapValidatorsAndTransformer<IPasswordFieldSchemaInternal, TableRow>;
|
|
36
|
+
export type ITextFieldSchema<TableRow = DefaultTableRowType> = SwapValidatorsAndTransformer<ITextFieldSchemaInternal, TableRow>;
|
|
37
|
+
export type ICombineFiledSchema<TableRow = DefaultTableRowType> = SwapValidatorsAndTransformer<ICombineFiledSchemaInternal, TableRow>;
|
|
38
|
+
export type ITimeFieldSchema<TableRow = DefaultTableRowType> = SwapValidatorsAndTransformer<ITimeFieldSchemaInternal, TableRow>;
|
|
39
|
+
export type IFieldSchema<TableRow = DefaultTableRowType> = IAutoCompleteFieldSchema<TableRow> | IDropDownFieldSchema<TableRow> | ISelectFieldSchema<TableRow> | ICheckBoxFieldSchema<TableRow> | IDateFieldSchema<TableRow> | INumericFieldSchema<TableRow> | IPasswordFieldSchema<TableRow> | ITextFieldSchema<TableRow> | ICombineFiledSchema<TableRow> | ITimeFieldSchema<TableRow>;
|
|
40
|
+
export type ITableCell = Pick<IFieldSchema, 'key' | 'type' | 'defaultValue'> & {
|
|
41
|
+
currentValue: IvtCellValue;
|
|
42
|
+
currentError: ICellError | null;
|
|
43
|
+
currentOptions?: IDropdownFieldOption[];
|
|
44
|
+
newValue?: IvtCellValue;
|
|
45
|
+
newError: ICellError | null;
|
|
46
|
+
newOptions?: IDropdownFieldOption[];
|
|
47
|
+
};
|
|
48
|
+
export type ITableRow<TableRow = DefaultTableRowType> = Record<keyof TableRow, ITableCell>;
|
|
49
|
+
export type ITableRows<TableRow = DefaultTableRowType> = ITableRow<TableRow>[];
|
|
50
|
+
export type IBeforeRowsChangeReturn<TableRow = DefaultTableRowType> = {
|
|
51
|
+
changedRows: ITableRows<TableRow>;
|
|
52
|
+
};
|
|
53
|
+
export type IvtSchema<TableRow = DefaultTableRowType> = Omit<IngSchemaInternal, 'dataSources' | 'stepsConfig' | 'advanced' | 'fields' | 'eventHandlers'> & {
|
|
54
|
+
dataSources?: DataSources;
|
|
55
|
+
fields: IFieldSchema<TableRow>[];
|
|
56
|
+
stepsConfig?: {
|
|
57
|
+
uploadFileStep?: Partial<IngSchemaInternal['stepsConfig']['uploadFileStep']>;
|
|
58
|
+
mapHeadersStep?: Partial<IngSchemaInternal['stepsConfig']['mapHeadersStep']>;
|
|
59
|
+
reviewStep?: Partial<IngSchemaInternal['stepsConfig']['reviewStep']>;
|
|
60
|
+
};
|
|
61
|
+
advanced?: Partial<IngSchemaInternal['advanced']>;
|
|
62
|
+
eventHandlers?: {
|
|
63
|
+
beforeRowsChange?: (changedTableRows: ITableRows<TableRow>, range: ITableRowRange, fullTableRows: ITableRowsInternal<TableRow>) => Promise<IBeforeRowsChangeReturn<TableRow>>;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export {};
|