voiptime-components 1.12.23 → 1.12.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -864,6 +864,14 @@ export declare interface FieldValidation {
864
864
  $validate(): Promise<boolean>;
865
865
  }
866
866
 
867
+ export declare class FileParser {
868
+ static isDataFile(file: File): boolean;
869
+ static parseFile(file: File, maxRows?: number, returnData?: boolean): Promise<ParseResult>;
870
+ private static parseCSV;
871
+ private static parseCSVLine;
872
+ private static parseExcel;
873
+ }
874
+
867
875
  export declare class FileValidator {
868
876
  static validateSize(file: File, maxSize?: number): boolean;
869
877
  static validateType(file: File, accept?: string): boolean;
@@ -1121,7 +1129,7 @@ export declare interface PaginationState {
1121
1129
  toItem: number;
1122
1130
  }
1123
1131
 
1124
- declare interface ParseResult {
1132
+ export declare interface ParseResult {
1125
1133
  sheets: SheetParseResult[];
1126
1134
  rows: number;
1127
1135
  columns: string[];
@@ -1167,7 +1175,7 @@ export declare interface SelectionChangeEventData {
1167
1175
  isAllSelected?: boolean;
1168
1176
  }
1169
1177
 
1170
- declare interface SheetParseResult {
1178
+ export declare interface SheetParseResult {
1171
1179
  name: string;
1172
1180
  rows: number;
1173
1181
  columns: string[];
package/dist/index.es.js CHANGED
@@ -29983,6 +29983,7 @@ export {
29983
29983
  ea as DEFAULT_TIME_FORMATS,
29984
29984
  Cs as DropdownContextKey,
29985
29985
  WT as FORMAT_TOKENS,
29986
+ as as FileParser,
29986
29987
  Qr as FileValidator,
29987
29988
  Z8 as MONTH_NAMES,
29988
29989
  ks as MONTH_NAMES_SHORT,