@ingestro/importer-react 4.5.0 → 4.6.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/{chunk-OPYMH566.js → chunk-523BT7JN.js} +1 -1
- package/{chunk-CQHSLEFA.js → chunk-F7ASAXPY.js} +1 -1
- package/{chunk-EE3NEC6Z.js → chunk-R7NBOVTH.js} +34 -34
- package/{chunk-MJ4XZSRH.js → chunk-TXUOXDJO.js} +1 -1
- package/chunk-VJNSVCH6.js +1 -0
- package/index.d.ts +49 -5
- package/index.js +409 -345
- package/package.json +1 -1
- package/workers/hooks/index.js +1 -1
- package/workers/matchValues/index.js +1 -1
- package/workers/parseData/index.js +1 -1
- package/workers/searchAndReplace/index.js +1 -1
- package/chunk-AINUNGZU.js +0 -1
package/package.json
CHANGED
package/workers/hooks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,b as m}from"../../chunk-GEB7CZLW.js";import{g as a,h as g}from"../../chunk-
|
|
1
|
+
import{a as s,b as m}from"../../chunk-GEB7CZLW.js";import{g as a,h as g}from"../../chunk-F7ASAXPY.js";import"../../chunk-J5WOZVPO.js";import"../../chunk-3IKZH76S.js";import{isEmpty as p,isNil as v,isUndefined as R}from"lodash";import{expose as h}from"comlink";var I=(n,t,o,f,r)=>{p(n)||Object.keys(n).forEach(e=>{let l=a(r,e);R(n[e].value)||(f[t][e]=n[e].value);let d=g(e,r.filter(i=>!i.isHidden()));v(n[e].info)||d<0||n[e].info?.forEach(i=>{if(!l?.isDisabled()&&i.level===m)return;let c={rowIndex:t,colIndex:d,popover:{message:i.message,level:i.level||s}};(o[t]?.length??0)===0?o[t]=[c]:o[t].push(c)})})},E=async({initResults:n,dataInfos:t,initialValues:o},f)=>{for(let r=0;r<n.length;r++)I(n[r][0],n[r][1],t,o,f);return{dataInfos:t,initialValues:o}},b=async({initialValues:n,key:t,result:o,colIndex:f})=>{let r={};for(let e=0;e<o.length;e++)if(R(o[e][0].value)||n[o[e][1]]&&(n[o[e][1]][t]=o[e][0].value),o?.[e]?.[0]?.info&&f>=0){let l=o?.[e]?.[0]?.info??[],d={message:o?.[e]?.[0]?.info?.[0]?.message??"",level:o?.[e]?.[0]?.info?.[0]?.level??s};for(let c=0;c<l?.length;c++)if(l[c].level!==m){d={message:o?.[e]?.[0]?.info?.[c]?.message??"",level:o?.[e]?.[0]?.info?.[c]?.level??s};break}let i={rowIndex:o[e][1],colIndex:f,popover:d};i.popover.level!==m&&n[o[e][1]]&&((r[o[e][1]]?.length??0)===0?r[o[e][1]]=[i]:r[o[e][1]].push(i))}return{dataInfos:r,initialValues:n}},x=async({dataInfos:n,columnDataInfos:t})=>{let o=Object.keys(t);for(let f=0;f<o.length;f++){let r=o[f];t?.[r]?.length>0&&(n[r]||(n[r]=[]),n[r].push(...t[r]))}return{dataInfos:n}},D=()=>!0;h({check:D,handleOnEntryInit:E,handleColumnHooks:b,integrateColumnHooksData:x});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as o,f as t,g as m,h as n,i,j as r}from"../../chunk-
|
|
1
|
+
import{e as o,f as t,g as m,h as n,i,j as r}from"../../chunk-TXUOXDJO.js";import"../../chunk-VJNSVCH6.js";import"../../chunk-F7ASAXPY.js";import"../../chunk-J5WOZVPO.js";import"../../chunk-3IKZH76S.js";import{expose as e}from"comlink";var p=()=>!0;e({check:p,getValues:r,addToAllRows:o,joinWithoutColumns:t,joinOnColumns:m,appendToColumns:n,countMatching:i});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{c as e,d as t,e as o,f as r,g as c,h as n,i as s,k as h}from"../../chunk-R7NBOVTH.js";import"../../chunk-3IKZH76S.js";import{expose as m}from"comlink";var v=()=>!0;m({convertCsv2Sheet:e,convertExcel2Sheet:s,convertJson2Sheet:o,convertXLS2Sheet:r,convertXML2Sheet:c,jsonParser:t,parseDateFormat:h,convertPdf2Sheets:n,check:v});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as o}from"../../chunk-
|
|
1
|
+
import{e as o}from"../../chunk-523BT7JN.js";import"../../chunk-VJNSVCH6.js";import"../../chunk-F7ASAXPY.js";import"../../chunk-J5WOZVPO.js";import"../../chunk-3IKZH76S.js";import*as e from"comlink";var m=()=>!0;e.expose({check:m,getCountBySearchValue:o});
|
package/chunk-AINUNGZU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a}from"./chunk-CQHSLEFA.js";var n=class p extends a{constructor({description:t,key:e,example:i,label:l,type:r,options:u,validators:d,alternativeMatches:h,columnSize:m,isMultiSelection:g,allowCustomOptions:y,allowedCustomOptionTypes:s,creator:C,baseKey:M,baseKeyCounter:c,hidden:O,optionMappingConfiguration:b,...w}){super({description:t,key:e,example:i,label:l,type:r,validators:d,alternativeMatches:h,columnSize:m,creator:C,baseKey:M,baseKeyCounter:c,hidden:O,optionMappingConfiguration:b,...w});this.optionTypeMap=null;this.getOptions=()=>this.options;this.getOptionTypeMap=()=>{if(!this.optionTypeMap){this.optionTypeMap=new Map;for(let t=0;t<this.options.length;t++){let e=this.options[t];this.optionTypeMap.set(e.value,e.type??"string")}}return this.optionTypeMap};this.setOptions=t=>{this.options=t,this.optionTypeMap=null};this.serialize=()=>{let t={description:this.getDescription(),example:this.getExample(),isRequired:this.getIsRequired(),key:this.getKey(),label:this.getLabel(),type:this.getType(),validators:this.getValidators().map(i=>i.serialize()),alternativeMatches:this.getAlternativeMatches(),columnSize:this.getColumnSize(),columnWidth:this.getColumnWidth(),outputFormat:this.getOutputFormat(),numberFormat:this.getNumberFormat(),baseKey:this.getBaseKey(),baseKeyCounter:this.getBaseKeyCounter(),creator:this.getCreator(),hidden:this.isHidden(),disabled:this.isDisabled(),optionMappingConfiguration:this.getOptionMappingConfiguration()},e=this.getOptions();return{...t,options:e,isMultiSelection:this.isMultiSelection,allowCustomOptions:this.allowCustomOptions,allowedCustomOptionTypes:this.allowedCustomOptionTypes?[...this.allowedCustomOptionTypes]:void 0}};this.getIsMultiSelection=()=>this.isMultiSelection;this.getAllowCustomOptions=()=>this.allowCustomOptions;this.getAllowedCustomOptionTypes=()=>this.allowedCustomOptionTypes?[...this.allowedCustomOptionTypes]:void 0;this.options=u?.map(o=>({...o,baseKey:o?.baseKey||o.value,baseKeyCounter:o.baseKeyCounter||0,alternativeMatches:o.alternativeMatches.filter(T=>T!==o.label),validations:o.validations||[]})),this.isMultiSelection=g,this.allowCustomOptions=y,this.allowedCustomOptionTypes=s?[...s]:void 0}clone(){let t=this.serialize();return new p({description:t.description,example:t.example,key:t.key,label:t.label,type:t.type,options:t.options,validators:this.getValidators(),alternativeMatches:t.alternativeMatches,columnSize:t.columnSize,columnWidth:t.columnWidth,isMultiSelection:t.isMultiSelection,allowCustomOptions:t.allowCustomOptions,allowedCustomOptionTypes:t.allowedCustomOptionTypes,hidden:t.hidden,disabled:t.disabled,optionMappingConfiguration:t.optionMappingConfiguration})}},K=n;export{K as a};
|