@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,118 @@
|
|
|
1
|
+
const i = "http://localhost:3001/api", l = "__static_options_", r = "__dynamic_options_", o = "__static_enum_", u = "__dynamic_enum_", d = {
|
|
2
|
+
id: "default-id",
|
|
3
|
+
title: "Default Schema Name",
|
|
4
|
+
apiKey: "",
|
|
5
|
+
initialData: void 0,
|
|
6
|
+
initialFile: void 0,
|
|
7
|
+
environment: "local",
|
|
8
|
+
browserExcelParsing: !0,
|
|
9
|
+
dataSources: {},
|
|
10
|
+
fields: [],
|
|
11
|
+
stepsConfig: {
|
|
12
|
+
uploadFileStep: {
|
|
13
|
+
supportedExtensions: ["xlsx", "xls", "json", "csv", "txt"],
|
|
14
|
+
maxColumns: 10,
|
|
15
|
+
maxRows: 1e5,
|
|
16
|
+
maxFileSize: 20971520,
|
|
17
|
+
//20mb,
|
|
18
|
+
dataEntryMethod: "manual_and_upload"
|
|
19
|
+
},
|
|
20
|
+
mapHeadersStep: {
|
|
21
|
+
passThroughExcessColumns: !1,
|
|
22
|
+
autoMapHeaders: !0,
|
|
23
|
+
unMatchedHeadersBehaviour: "block"
|
|
24
|
+
},
|
|
25
|
+
reviewStep: {
|
|
26
|
+
invalidDataBehaviour: "block_submit",
|
|
27
|
+
includeValidationMetadata: !1,
|
|
28
|
+
includeOriginalData: !1,
|
|
29
|
+
allowCustomColumn: !1,
|
|
30
|
+
storeInServer: !0
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
advanced: {
|
|
34
|
+
maxInMemoryValidationRows: 500,
|
|
35
|
+
maxPerWorkerValidationRows: 1e4,
|
|
36
|
+
maxInMemoryTransformationRows: 500,
|
|
37
|
+
maxPerWorkerTransformationRows: 1e4
|
|
38
|
+
},
|
|
39
|
+
eventHandlers: {
|
|
40
|
+
// beforeColumnChange
|
|
41
|
+
// afterColumnChange
|
|
42
|
+
// beforeCellChange
|
|
43
|
+
// afterCellChange
|
|
44
|
+
// beforeRowChange
|
|
45
|
+
// afterRowChange
|
|
46
|
+
// beforeRowsChange
|
|
47
|
+
// afterRowsChange
|
|
48
|
+
// beforeUploadFile
|
|
49
|
+
// afterUploadFile
|
|
50
|
+
// beforeHeaderMapping
|
|
51
|
+
// afterHeaderMapping,
|
|
52
|
+
}
|
|
53
|
+
}, n = {
|
|
54
|
+
id: "default-id",
|
|
55
|
+
title: "Default Schema Name",
|
|
56
|
+
apiKey: "",
|
|
57
|
+
initialData: void 0,
|
|
58
|
+
initialFile: void 0,
|
|
59
|
+
environment: "local",
|
|
60
|
+
browserExcelParsing: !0,
|
|
61
|
+
dataSources: {},
|
|
62
|
+
fields: [],
|
|
63
|
+
stepsConfig: {
|
|
64
|
+
uploadFileStep: {
|
|
65
|
+
supportedExtensions: ["xlsx", "xls", "json", "csv", "txt"],
|
|
66
|
+
maxColumns: 10,
|
|
67
|
+
maxRows: 1e5,
|
|
68
|
+
maxFileSize: 20 * 1024 * 1024,
|
|
69
|
+
//20mb,
|
|
70
|
+
dataEntryMethod: "manual_and_upload"
|
|
71
|
+
},
|
|
72
|
+
mapHeadersStep: {
|
|
73
|
+
passThroughExcessColumns: !1,
|
|
74
|
+
autoMapHeaders: !0,
|
|
75
|
+
unMatchedHeadersBehaviour: "block"
|
|
76
|
+
},
|
|
77
|
+
reviewStep: {
|
|
78
|
+
invalidDataBehaviour: "block_submit",
|
|
79
|
+
includeValidationMetadata: !1,
|
|
80
|
+
includeOriginalData: !1,
|
|
81
|
+
allowCustomColumn: !1,
|
|
82
|
+
storeInServer: !0
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
advanced: {
|
|
86
|
+
maxInMemoryValidationRows: 500,
|
|
87
|
+
maxPerWorkerValidationRows: 1e4,
|
|
88
|
+
maxInMemoryTransformationRows: 500,
|
|
89
|
+
maxPerWorkerTransformationRows: 1e4
|
|
90
|
+
},
|
|
91
|
+
eventHandlers: {}
|
|
92
|
+
}, m = {
|
|
93
|
+
No: !1,
|
|
94
|
+
no: !1,
|
|
95
|
+
NO: !1,
|
|
96
|
+
Yes: !0,
|
|
97
|
+
yes: !0,
|
|
98
|
+
YES: !0
|
|
99
|
+
};
|
|
100
|
+
var a = /* @__PURE__ */ ((e) => (e.GenerateUUID = "generateUUID", e.FuzzyFix = "fuzzyFix", e))(a || {}), s = /* @__PURE__ */ ((e) => (e.TrimWhitespace = "trimWhitespace", e.MapToEnum = "mapToEnum", e.DefaultValue = "defaultValue", e.ToUpperCase = "toUpperCase", e.ToLowerCase = "toLowerCase", e.TitleCaseText = "titleCaseText", e.PadString = "padString", e.TruncateText = "truncateText", e.StripHtmlTags = "stripHtmlTags", e.RegexReplace = "regexReplace", e.AutoIncrementIds = "autoIncrementIds", e.FillWithTimestamp = "fillWithTimestamp", e.ParseNumbers = "parseNumbers", e.RoundNumbers = "roundNumbers", e.ScaleNumbers = "scaleNumbers", e.NormalizeZScore = "normalizeZScore", e.FormatDates = "formatDates", e.NormalizeUrls = "normalizeUrls", e.MapCountryNames = "mapCountryNames", e.CombineColumns = "combineColumns", e))(s || {}), t = /* @__PURE__ */ ((e) => (e.ForwardFill = "forwardFill", e.BackwardFill = "backwardFill", e.ClampRange = "clampRange", e.ClearCellRange = "clearCellRange", e.FindAndReplace = "findAndReplace", e.ClearColumn = "clearColumn", e.RemoveColumn = "removeColumn", e.ReplaceEmptyCells = "replaceEmptyCells", e))(t || {});
|
|
101
|
+
const p = /* @__PURE__ */ new Set([
|
|
102
|
+
"combineColumns"
|
|
103
|
+
/* CombineColumns */
|
|
104
|
+
]);
|
|
105
|
+
export {
|
|
106
|
+
s as I,
|
|
107
|
+
l as a,
|
|
108
|
+
a as b,
|
|
109
|
+
m as c,
|
|
110
|
+
d,
|
|
111
|
+
r as e,
|
|
112
|
+
u as f,
|
|
113
|
+
i as g,
|
|
114
|
+
t as h,
|
|
115
|
+
n as i,
|
|
116
|
+
p as j,
|
|
117
|
+
o as s
|
|
118
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i="http://localhost:3001/api",r="__static_options_",l="__dynamic_options_",o="__static_enum_",n="__dynamic_enum_",u={id:"default-id",title:"Default Schema Name",apiKey:"",initialData:void 0,initialFile:void 0,environment:"local",browserExcelParsing:!0,dataSources:{},fields:[],stepsConfig:{uploadFileStep:{supportedExtensions:["xlsx","xls","json","csv","txt"],maxColumns:10,maxRows:1e5,maxFileSize:20971520,dataEntryMethod:"manual_and_upload"},mapHeadersStep:{passThroughExcessColumns:!1,autoMapHeaders:!0,unMatchedHeadersBehaviour:"block"},reviewStep:{invalidDataBehaviour:"block_submit",includeValidationMetadata:!1,includeOriginalData:!1,allowCustomColumn:!1,storeInServer:!0}},advanced:{maxInMemoryValidationRows:500,maxPerWorkerValidationRows:1e4,maxInMemoryTransformationRows:500,maxPerWorkerTransformationRows:1e4},eventHandlers:{}},d={id:"default-id",title:"Default Schema Name",apiKey:"",initialData:void 0,initialFile:void 0,environment:"local",browserExcelParsing:!0,dataSources:{},fields:[],stepsConfig:{uploadFileStep:{supportedExtensions:["xlsx","xls","json","csv","txt"],maxColumns:10,maxRows:1e5,maxFileSize:20*1024*1024,dataEntryMethod:"manual_and_upload"},mapHeadersStep:{passThroughExcessColumns:!1,autoMapHeaders:!0,unMatchedHeadersBehaviour:"block"},reviewStep:{invalidDataBehaviour:"block_submit",includeValidationMetadata:!1,includeOriginalData:!1,allowCustomColumn:!1,storeInServer:!0}},advanced:{maxInMemoryValidationRows:500,maxPerWorkerValidationRows:1e4,maxInMemoryTransformationRows:500,maxPerWorkerTransformationRows:1e4},eventHandlers:{}},m={No:!1,no:!1,NO:!1,Yes:!0,yes:!0,YES:!0};var a=(e=>(e.GenerateUUID="generateUUID",e.FuzzyFix="fuzzyFix",e))(a||{}),s=(e=>(e.TrimWhitespace="trimWhitespace",e.MapToEnum="mapToEnum",e.DefaultValue="defaultValue",e.ToUpperCase="toUpperCase",e.ToLowerCase="toLowerCase",e.TitleCaseText="titleCaseText",e.PadString="padString",e.TruncateText="truncateText",e.StripHtmlTags="stripHtmlTags",e.RegexReplace="regexReplace",e.AutoIncrementIds="autoIncrementIds",e.FillWithTimestamp="fillWithTimestamp",e.ParseNumbers="parseNumbers",e.RoundNumbers="roundNumbers",e.ScaleNumbers="scaleNumbers",e.NormalizeZScore="normalizeZScore",e.FormatDates="formatDates",e.NormalizeUrls="normalizeUrls",e.MapCountryNames="mapCountryNames",e.CombineColumns="combineColumns",e))(s||{}),t=(e=>(e.ForwardFill="forwardFill",e.BackwardFill="backwardFill",e.ClampRange="clampRange",e.ClearCellRange="clearCellRange",e.FindAndReplace="findAndReplace",e.ClearColumn="clearColumn",e.RemoveColumn="removeColumn",e.ReplaceEmptyCells="replaceEmptyCells",e))(t||{});const p=new Set(["combineColumns"]);exports.ICellTransformAction=s;exports.IColumnTransformAction=t;exports.IInvalidCellTransformerAction=a;exports.baseUrl=i;exports.checkboxDefaultMapToEnums=m;exports.crossColumnsTransformers=p;exports.defaultInternalSchema=u;exports.defaultSchema=d;exports.dynamicEnumsResolverDsPrefix=n;exports.dynamicOptionsResolverDsPrefix=l;exports.staticEnumsResolverDsPrefix=o;exports.staticOptionsResolverDsPrefix=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-CI2WmQs5.cjs");exports.ICellTransformAction=r.ICellTransformAction;exports.IColumnTransformAction=r.IColumnTransformAction;exports.IInvalidCellTransformerAction=r.IInvalidCellTransformerAction;exports.crossColumnsTransformers=r.crossColumnsTransformers;exports.defaultSchema=r.defaultSchema;
|
package/dist/index.d.ts
ADDED
package/dist/index.es.js
ADDED
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { defaultSchema } from './lib/constants';
|
|
2
|
+
export * from './lib/types/external.types';
|
|
3
|
+
export type { IBaseFieldSchema, IMenuFieldSchema } from './lib/types/external.types';
|
|
4
|
+
export type { IFieldValidatorType, IRequiredFieldValidator, IRulesFieldValidator, IUUIDFieldValidator, INumericFieldValidator, IBooleanFieldValidator, IRegexFieldValidator, IEmailFieldValidator, IMinFieldValidator, IMaxFieldValidator, IRangeFieldValidator, IMinLengthFieldValidator, IMaxLengthFieldValidator, IUrlFieldValidator, IPhoneFieldValidator, IDateFieldValidator, IEnumerateFieldValidator, ICreditCardFieldValidator, ICustomFieldValidator, IErrorSeverity, IBaseFieldValidator } from './lib/types/validators.types';
|
|
5
|
+
export type { IFieldSchemaType, IDropdownFieldOption } from './lib/types/schema.types';
|
|
6
|
+
export * from './lib/types/transformActions.types';
|
|
7
|
+
export { defaultSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
/**
|
|
3
|
+
* Applies `cellFn` to every visible row’s specified column.
|
|
4
|
+
* @returns the same `data` array, mutated in place.
|
|
5
|
+
*/
|
|
6
|
+
export declare function applyToColumn(data: IvtCellValue[][], hiddenRows: number[], columnNumber: number, cellFn: (cell: IvtCellValue, row: number, col: number) => IvtCellValue, rowFilter?: (rowIndex: number) => boolean): IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types';
|
|
2
|
+
import { IAutoIncrementIdsTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const autoIncrementIdsAction: (payload: IAutoIncrementIdsTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IBackwardFillTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const backwardFillAction: (payload: IBackwardFillTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IClampRangeTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const clampRangeAction: (payload: IClampRangeTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IClearCellRangeTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const clearCellRangeAction: (payload: IClearCellRangeTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IClearColumnTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const clearColumnAction: (payload: IClearColumnTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { ICombineColumnsTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare function convertCellToString(cell: IvtCellValue): string;
|
|
4
|
+
export declare const combineColumnsAction: (payload: ICombineColumnsTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IDefaultValueTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const defaultValueAction: (payload: IDefaultValueTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as Handsontable } from 'handsontable';
|
|
2
|
+
import { ICellTransformAction, IColumnTransformAction, ITransformActionPayload } from '../types';
|
|
3
|
+
declare const isDispatching: import('svelte/store').Writable<boolean>;
|
|
4
|
+
declare const dispatch: (action: IColumnTransformAction | ICellTransformAction, payload: ITransformActionPayload, hiddenRows: number[], hot: Handsontable) => Promise<boolean>;
|
|
5
|
+
export { dispatch, isDispatching };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IFillWithTimestampTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const fillWithTimestampAction: (payload: IFillWithTimestampTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IFindAndReplaceTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const findAndReplaceAction: (payload: IFindAndReplaceTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MomentBuiltinFormat } from 'moment';
|
|
2
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
3
|
+
import { IFormatDatesTransformActionPayload } from '../types/transformActions.types';
|
|
4
|
+
import { LocaleSpecifier } from 'moment/moment';
|
|
5
|
+
export declare function formatDate(cell: IvtCellValue, formatPattern: string, parsePatterns: (string | MomentBuiltinFormat)[], locale: LocaleSpecifier | undefined, strictParsing: boolean): string | number | boolean | Date | null | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* Date‐format transform for table columns.
|
|
8
|
+
*/
|
|
9
|
+
export declare const formatDatesAction: (payload: IFormatDatesTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
File without changes
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IForwardFillTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const forwardFillAction: (payload: IForwardFillTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DataSources, ICellErrorWithMeta, IFuzzyMatchTransformActionPayload, IvtCellValue } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Factory that builds a high-performance fixer for one column,
|
|
4
|
+
* with per-term caching and minimal cloning.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createFuzzyFixer(payload: IFuzzyMatchTransformActionPayload, dataSources: DataSources): (data: IvtCellValue[][], hiddenRows: number[], cellErrors: ICellErrorWithMeta[]) => IvtCellValue[][];
|
|
7
|
+
export declare const fuzzyFixAction: (payload: IFuzzyMatchTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[], dataSources: DataSources, cellErrors: ICellErrorWithMeta[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ICellErrorWithMeta, IvtCellValue } from '../../types/internal.types';
|
|
2
|
+
import { IFuzzyMatchTransformActionPayload } from '../../types/transformActions.types';
|
|
3
|
+
export declare const fuzzyFixAction: (payload: IFuzzyMatchTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[], indexes: Map<string, string>, cellErrors: ICellErrorWithMeta[]) => IvtCellValue[][];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IGenerateUUIDsTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const generateUUIDsAction: (payload: IGenerateUUIDsTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { ILookupCountryNamesTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
/**
|
|
4
|
+
* Converts between country codes and country names in the specified column.
|
|
5
|
+
* Uses the `country-list` package under the hood for lookup.
|
|
6
|
+
* Non-string, empty, or unrecognized values remain unchanged.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* const data = [["US"], ["GB"]];
|
|
10
|
+
* lookupCountryNamesAction({ columnNumber: 0, fieldSchemas: [], direction: 'codeToName' }, data, []);
|
|
11
|
+
* // => [['United States'], ['United Kingdom']]
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* const data2 = [["France"], ["Germany"]];
|
|
15
|
+
* lookupCountryNamesAction({ columnNumber: 0, fieldSchemas: [], direction: 'nameToCode' }, data2, []);
|
|
16
|
+
* // => [['FR'], ['DE']]
|
|
17
|
+
*/
|
|
18
|
+
export declare const lookupCountryNamesAction: (payload: ILookupCountryNamesTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IMapToEnumTransformActionPayloadInternal } from '../types/transformActions.types';
|
|
3
|
+
import { DataSources } from '../types';
|
|
4
|
+
export declare const mapToEnumAction: (payload: IMapToEnumTransformActionPayloadInternal, data: IvtCellValue[][], dataSources: DataSources, hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { INormalizeUrlsTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
/**
|
|
4
|
+
* Normalizes URLs in the specified column:
|
|
5
|
+
* - Ensures a protocol (defaults to http:// if missing)
|
|
6
|
+
* - Enforces HTTPS if requested
|
|
7
|
+
* - Removes all query parameters if requested
|
|
8
|
+
* - Otherwise sorts query parameters alphabetically by key
|
|
9
|
+
* - Lowercases the hostname
|
|
10
|
+
* - Leaves unparsable strings and non-strings unchanged
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const data = [['example.com/path?b=2&a=1']];
|
|
14
|
+
* normalizeUrlsAction(
|
|
15
|
+
* { columnNumber: 0, fieldSchemas: [], enforceHttps: false, removeQueryParams: false },
|
|
16
|
+
* data,
|
|
17
|
+
* []
|
|
18
|
+
* );
|
|
19
|
+
* // => [['http://example.com/path?a=1&b=2']]
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* const data2 = [['EXAMPLE.COM']];
|
|
23
|
+
* normalizeUrlsAction(
|
|
24
|
+
* { columnNumber: 0, fieldSchemas: [], enforceHttps: true, removeQueryParams: false },
|
|
25
|
+
* data2,
|
|
26
|
+
* []
|
|
27
|
+
* );
|
|
28
|
+
* // => [['https://example.com/']]
|
|
29
|
+
*/
|
|
30
|
+
export declare const normalizeUrlsAction: (payload: INormalizeUrlsTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { INormalizeZScoreTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
/**
|
|
4
|
+
* Computes Z‑score normalization on a numeric column across all non-hidden rows.
|
|
5
|
+
* Z‑score = (value - mean) / std where mean and std are computed over the column.
|
|
6
|
+
* If std = 0 or only one non-hidden numeric value, all normalized values are set to 0.
|
|
7
|
+
* Non-numeric and NaN cells remain unchanged.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* const data = [[1], [3]];
|
|
11
|
+
* normalizeZScoreAction({ columnNumber: 0, fieldSchemas: [] }, data, []);
|
|
12
|
+
* // returns [[-1], [1]] // mean=2, std=1
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* const data2 = [[5], [5], [5]];
|
|
16
|
+
* normalizeZScoreAction({ columnNumber: 0, fieldSchemas: [] }, data2, []);
|
|
17
|
+
* // returns [[0], [0], [0]] // std=0 => all zeros
|
|
18
|
+
*
|
|
19
|
+
* @param payload.columnNumber Zero-based index of the column to normalize.
|
|
20
|
+
* @param data 2D array of cell values (rows × columns).
|
|
21
|
+
* @param hiddenRows Array of row indices to skip in computation and normalization.
|
|
22
|
+
* @returns The same `data` array with the specified column normalized in place.
|
|
23
|
+
*/
|
|
24
|
+
export declare const normalizeZScoreAction: (payload: INormalizeZScoreTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IPadStringTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const padStringAction: (payload: IPadStringTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IRegexReplaceTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const regexReplaceAction: (payload: IRegexReplaceTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IRemoveDuplicatesTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const removeDuplicatesAction: (payload: IRemoveDuplicatesTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IRoundNumbersTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const roundNumbersAction: (payload: IRoundNumbersTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IScaleNumbersTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const scaleNumbersAction: (payload: IScaleNumbersTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IStripHtmlTagsTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const stripHtmlTagsAction: (payload: IStripHtmlTagsTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { ITitleCaseTextTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const titleCaseTextAction: (payload: ITitleCaseTextTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IToLowerCaseTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const toLowerCaseAction: (payload: IToLowerCaseTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { IToUpperCaseTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const toUpperCaseAction: (payload: IToUpperCaseTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { ITrimWhitespaceTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const trimWhitespaceAction: (payload: ITrimWhitespaceTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IvtCellValue } from '../types/internal.types';
|
|
2
|
+
import { ITruncateTextTransformActionPayload } from '../types/transformActions.types';
|
|
3
|
+
export declare const truncateTextAction: (payload: ITruncateTextTransformActionPayload, data: IvtCellValue[][], hiddenRows: number[]) => IvtCellValue[][];
|
|
@@ -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,10 @@
|
|
|
1
|
+
import { Writable } from 'svelte/store';
|
|
2
|
+
export interface ContextMenuStoreValue {
|
|
3
|
+
event: MouseEvent;
|
|
4
|
+
anchor?: HTMLElement;
|
|
5
|
+
}
|
|
6
|
+
export interface ContextMenuStore extends Writable<ContextMenuStoreValue | null> {
|
|
7
|
+
toggle(event: MouseEvent, anchor?: HTMLElement): void;
|
|
8
|
+
close(): void;
|
|
9
|
+
}
|
|
10
|
+
export declare function createContextMenuStore(): ContextMenuStore;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ICellErrorWithMeta, ITableRowsInternal } from '../../types';
|
|
2
|
+
export declare function getCellKey(row: number, key: string): string;
|
|
3
|
+
export declare function computeOrigKeys(originalValidations: ICellErrorWithMeta[]): Set<string>;
|
|
4
|
+
export declare function computeAfterKeys(afterTransformErrors: ICellErrorWithMeta[]): Set<string>;
|
|
5
|
+
export declare function computeFixableKeys(origKeys: Set<string>, afterKeys: Set<string>): Set<string>;
|
|
6
|
+
export declare function computeChangedRows(fixableKeys: Set<string>): number[];
|
|
7
|
+
export declare function getPagedRowIndices(changedRows: number[], rowsCount: number, rowsPerPage: number, currentPage: number, hideUnchanged: boolean): number[];
|
|
8
|
+
export interface MergeResult {
|
|
9
|
+
mergedData: ITableRowsInternal;
|
|
10
|
+
mergedValidations: ICellErrorWithMeta[];
|
|
11
|
+
}
|
|
12
|
+
export declare function mergeSelections(originalTableRows: ITableRowsInternal, transformedData: ITableRowsInternal, origMap: Map<string, ICellErrorWithMeta>, afterTransformErrors: ICellErrorWithMeta[], fixableKeys: Set<string>, selectedCells: Set<string>): MergeResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
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';
|