Socket
Socket
Sign inDemoInstall

@bixi-design/excel

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bixi-design/excel - npm Package Compare versions

Comparing version 1.7.6-alpha.20 to 2.0.1-alpha.4

dist/excel.d.ts

10

dist/base.d.ts

@@ -1,2 +0,2 @@

import { ILuckyFileInfo, IluckyImage, IluckyImageBorder, IluckyImageCrop, IluckyImageDefault, IluckyImages, IluckySheet, IluckySheetborderInfoCellForImp, IluckySheetborderInfoCellValue, IluckySheetborderInfoCellValueStyle, IluckysheetCalcChain, IluckySheetCelldata, IluckySheetCelldataValue, IluckySheetCelldataValueMerge, ILuckySheetCellFormat, IluckySheetChart, IluckysheetConditionFormat, IluckySheetConfig, IluckySheetConfigMerge, IluckysheetDataVerification, IluckysheetFrozen, IluckysheetHyperlink, IluckySheetPivotTable, IluckySheetSelection } from './typings';
import { ILuckyFileInfo, IluckyImage, IluckyImageBorder, IluckyImageCrop, IluckyImageDefault, ILuckyImages, IluckySheet, IluckySheetborderInfoCellForImp, IluckySheetborderInfoCellValue, IluckySheetborderInfoCellValueStyle, IluckysheetCalcChain, IluckySheetCelldata, IluckySheetCelldataValue, IluckySheetCelldataValueMerge, ILuckySheetCellFormat, IluckySheetChart, IluckysheetConditionFormat, IluckySheetConfig, IluckySheetConfigMerge, IluckysheetDataVerification, IluckysheetFrozen, IluckysheetHyperlink, IluckySheetPivotTable, IluckySheetSelection } from './typings';
export declare class LuckyFileBase {

@@ -29,3 +29,3 @@ info?: LuckyFileInfo;

calcChain?: IluckysheetCalcChain[];
images?: IluckyImages;
images?: ILuckyImages;
dataVerification?: IluckysheetDataVerification;

@@ -116,2 +116,8 @@ hyperlink?: IluckysheetHyperlink;

crop?: IluckyImageCrop;
srcRect?: {
left: number;
top: number;
bottom: number;
right: number;
};
default?: IluckyImageDefault;

@@ -118,0 +124,0 @@ fixedLeft?: number;

1

dist/cell.d.ts
import { LuckySheetborderInfoCellForImp, LuckySheetCelldataBase } from './base';
import { Element, IStyleCollections, ReadXml } from './read-xml';
export declare class LuckySheetCelldata extends LuckySheetCelldataBase {
static composeLuckySheetCelldata(cell: Element, styles: IStyleCollections, sharedStrings: Element[], mergeCells: Element[], sheetFile: string, readXml: ReadXml): Promise<LuckySheetCelldata>;
_borderObject?: LuckySheetborderInfoCellForImp;

@@ -5,0 +6,0 @@ _fomulaRef?: string;

@@ -30,3 +30,3 @@ import { LuckyFileBase } from './base';

*/
getSheetsFull(isInitialCell?: boolean): void;
getSheetsFull(isInitialCell?: boolean): Promise<void>;
private columnWidthSet;

@@ -45,8 +45,8 @@ private rowHeightSet;

*/
getSheetsWithoutCell(): void;
getSheetsWithoutCell(): Promise<void>;
/**
* @return LuckySheet file json
*/
Parse(): string;
Parse(): Promise<string>;
private toJsonString;
}

@@ -6,5 +6,5 @@ import { LuckyImageBase } from './base';

constructor(files: IUploadfileList);
getImageByName(pathName: string): Image | null;
getImageByName(pathName: string, rId: string): LuckyImage | null;
}
export declare class Image extends LuckyImageBase {
export declare class LuckyImage extends LuckyImageBase {
fromCol: number;

@@ -18,4 +18,5 @@ fromColOff: number;

toRowOff?: number;
constructor(pathName: string, base64: string);
rId?: string;
constructor(pathName: string, base64: string, rId: string);
setDefault(): void;
}

@@ -1,12 +0,2 @@

export declare class BixiExcel {
static sheet: any;
static transformExcelToLucky(excelFile: File): Promise<{
files: ISafeAny;
fs: string;
}>;
static transformExcelToLuckyByUrl(url: string, name: string): Promise<{
files: ISafeAny;
fs: string;
}>;
}
export { BixiExcel } from './excel';
export { excelRangeToNum } from './utils';

@@ -17,2 +17,3 @@ import { LuckySheetBase } from './base';

constructor(sheetName: string, sheetId: string, sheetOrder: number, isInitialCell: boolean | undefined, allFileOption: any);
build(sheetName: string, sheetId: string, sheetOrder: number, isInitialCell: boolean | undefined, allFileOption: any): Promise<void>;
private getXdrValue;

@@ -23,3 +24,2 @@ private composeImages;

private getChartOptionsByRid;
private appendPieChartOptions;
/**

@@ -26,0 +26,0 @@ * @desc This will convert cols/col to luckysheet config of column'width

@@ -34,3 +34,3 @@ import { Chart } from './chart';

defaultRowHeight: number;
images: IluckyImages;
images: ILuckyImages;
dataVerification: IluckysheetDataVerification;

@@ -264,5 +264,5 @@ hyperlink: IluckysheetHyperlink;

}
export declare type IluckyImages = Record<string, IluckyImage>;
export declare type IcellOtherInfo = Record<string, IformulaList>;
export declare type IformulaList = Record<string, IformulaListItem | null>;
export declare type ILuckyImages = Record<string, IluckyImage>;
export declare type ICellOtherInfo = Record<string, IFormulaList>;
export declare type IFormulaList = Record<string, IformulaListItem | null>;
export interface IformulaListItem {

@@ -350,1 +350,20 @@ r: number;

}
export interface IBixiExcelProgress {
/**
* 处理状态
*/
status: 'default' | 'processing' | 'failed' | 'success';
/**
* 当前 sheet 索引
*/
currentSheetIndex: number;
/**
* 当前 sheet 处理进度
*/
currentSheetProcessPercent: number;
/**
* sheet 总数
*/
totalSheet: number;
}
export declare type IBixiExcelProgressListener = (params: IBixiExcelProgress) => void;

@@ -141,1 +141,2 @@ import { IluckySheetSelection } from './typings';

};
export declare function clipImage(base64Str: string, offsetLeftPercent: number, offsetTopPercent: number, widthPercent: number, heightPercent: number): Promise<string>;
{
"name": "@bixi-design/excel",
"version": "1.7.6-alpha.20",
"version": "2.0.1-alpha.4",
"description": "React Excel",

@@ -22,3 +22,5 @@ "main": "dist/index.js",

"dependencies": {
"@types/lodash-es": "^4.17.5"
"@types/lodash-es": "^4.17.5",
"dayjs": "^1.10.6",
"jszip": "^3.5.0"
},

@@ -31,3 +33,3 @@ "author": "it@datagrand.com",

},
"gitHead": "c164c23f07a54c31076723beba501edf21597e9c"
"gitHead": "a2ac98b71e9e59ef5781ed6982c26c3322c4e4b3"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc