New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@univerjs/sheets

Package Overview
Dependencies
Maintainers
0
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@univerjs/sheets - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

lib/locale/vi-VN.json

3

lib/types/basics/utils.d.ts

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

import { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, Worksheet } from '@univerjs/core';
import { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, UniverInstanceService, Workbook, Worksheet } from '@univerjs/core';
import { IExpandParams } from '../commands/commands/utils/selection-utils';

@@ -20,1 +20,2 @@

export declare function generateNullCellStyle(ranges: IRange[]): IObjectMatrixPrimitiveType<ICellData>;
export declare function getActiveWorksheet(instanceService: UniverInstanceService): [Nullable<Workbook>, Nullable<Worksheet>];

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

import { CellValue, IBorderData, ICellData, ICopyToOptionsData, IDocumentData, IMutation, IMutationCommonParams, IObjectMatrixPrimitiveType, IRange, IStyleData, Nullable, CellValueType } from '@univerjs/core';
import { ICellData, ICopyToOptionsData, IMutation, IMutationCommonParams, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
import { IAccessor } from '@wendellhu/redi';

@@ -34,47 +34,1 @@

export declare const SetRangeValuesMutation: IMutation<ISetRangeValuesMutationParams, boolean>;
/**
* Get the correct type after setting values to a cell.
*
* @param v the new value
* @param oldType the old type
* @returns the new type
*/
export declare function checkCellValueType(v: Nullable<CellValue>, oldType: Nullable<CellValueType>): Nullable<CellValueType>;
/**
* Check if the value can be casted to a boolean.
* @internal
* @param value
* @returns It would return null if the value cannot be casted to a boolean, and would return the boolean value if it can be casted.
*/
export declare function extractBooleanValue(value: Nullable<string | number | boolean>): Nullable<boolean>;
/**
* Convert old style data for storage
* @param style
*/
export declare function transformStyle(oldStyle: Nullable<IStyleData>, newStyle: Nullable<IStyleData>): Nullable<IStyleData>;
/**
* Convert old style normal key for storage
*
* @param style
*/
export declare function transformNormalKey(oldStyle: Nullable<IStyleData>, newStyle: Nullable<IStyleData>): Nullable<IStyleData>;
/**
* Convert old style border for storage
*
* @param style
*/
export declare function transformBorders(oldBorders: IBorderData, newBorders: Nullable<IBorderData>): IBorderData;
/**
* merge new style to old style
*
* @param oldStyle
* @param newStyle
*/
export declare function mergeStyle(oldStyle: Nullable<IStyleData>, newStyle: Nullable<IStyleData>, isRichText?: boolean): Nullable<IStyleData>;
/**
* Find the text style of all paragraphs and modify it to the new style
* @param p
* @param newStyle
*/
export declare function mergeRichTextStyle(p: IDocumentData, newStyle: Nullable<IStyleData>): void;
import { IOperation } from '@univerjs/core';
import { ISelectionWithStyle } from '../../basics/selection';
import { SelectionMoveType } from '../../services/selection-manager.service';
import { SelectionMoveType } from '../../services/selections/selection-manager.service';

@@ -8,3 +8,2 @@ export interface ISetSelectionsOperationParams {

subUnitId: string;
pluginName: string;
selections: ISelectionWithStyle[];

@@ -11,0 +10,0 @@ type?: SelectionMoveType;

@@ -6,3 +6,3 @@ import { IRange, Dimension, Disposable, DisposableCollection, ICommandService, IUniverInstanceService } from '@univerjs/core';

import { EffectRefRangeParams } from '../services/ref-range/type';
import { SelectionManagerService } from '../services/selection-manager.service';
import { SheetsSelectionsService } from '../services/selections/selection-manager.service';
import { SheetInterceptorService } from '../services/sheet-interceptor/sheet-interceptor.service';

@@ -25,3 +25,3 @@

disposableCollection: DisposableCollection;
constructor(_commandService: ICommandService, _refRangeService: RefRangeService, _univerInstanceService: IUniverInstanceService, _injector: Injector, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SelectionManagerService);
constructor(_commandService: ICommandService, _refRangeService: RefRangeService, _univerInstanceService: IUniverInstanceService, _injector: Injector, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SheetsSelectionsService);
private _initCommandInterceptor;

@@ -28,0 +28,0 @@ refRangeHandle(config: EffectRefRangeParams, unitId: string, subUnitId: string): {

@@ -23,2 +23,3 @@ /**

export { alignToMergedCellsBorders, getCellAtRowCol, setEndForRange, isSingleCellSelection } from './commands/commands/utils/selection-utils';
export { getSelectionsService } from './commands/utils/selection-command-util';
export { followSelectionOperation, getPrimaryForRange } from './commands/commands/utils/selection-utils';

@@ -34,3 +35,4 @@ export { handleDeleteRangeMutation } from './commands/utils/handle-range-mutation';

export { WorkbookPermissionService } from './services/permission/workbook-permission/workbook-permission.service';
export { NORMAL_SELECTION_PLUGIN_NAME, SelectionManagerService, SelectionMoveType, } from './services/selection-manager.service';
export { SheetsSelectionsService, WorkbookSelections, SelectionMoveType, DISABLE_NORMAL_SELECTIONS, } from './services/selections/selection-manager.service';
export { IRefSelectionsService } from './services/selections/ref-selections.service';
export { getAddMergeMutationRangeByType } from './controllers/merge-cell.controller';

@@ -37,0 +39,0 @@ export { NumfmtService } from './services/numfmt/numfmt.service';

import { IMutationInfo, IRange, Nullable, Disposable, ICommandService, InterceptorManager, IUniverInstanceService } from '@univerjs/core';
import { IDisposable } from '@wendellhu/redi';
import { SelectionManagerService } from '../selection-manager.service';
import { SheetsSelectionsService } from '../selections/selection-manager.service';
import { SheetInterceptorService } from '../sheet-interceptor/sheet-interceptor.service';

@@ -27,3 +27,3 @@ import { EffectRefRangeParams } from './type';

private _watchRanges;
constructor(_commandService: ICommandService, _sheetInterceptorService: SheetInterceptorService, _univerInstanceService: IUniverInstanceService, _selectionManagerService: SelectionManagerService);
constructor(_commandService: ICommandService, _sheetInterceptorService: SheetInterceptorService, _univerInstanceService: IUniverInstanceService, _selectionManagerService: SheetsSelectionsService);
watchRange(unitId: string, subUnitId: string, range: IRange, callback: WatchRangeCallback, skipIntersects?: boolean): IDisposable;

@@ -30,0 +30,0 @@ private _refRangeManagerMap;

@@ -6,8 +6,6 @@ import { ICommandInfo, IMutationInfo, IRange, Nullable, RANGE_TYPE } from '@univerjs/core';

import { ISheetCommandSharedParams } from '../../commands/utils/interface';
import { SelectionManagerService } from '../selection-manager.service';
import { SheetsSelectionsService } from '../selections/selection-manager.service';
import { EffectRefRangeParams, IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand, IReorderRangeCommand } from './type';
export declare const handleRangeTypeInput: (range: IRange) => {
startColumn: number;
endColumn: number;
rangeType?: RANGE_TYPE;

@@ -18,6 +16,6 @@ startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType;

endRow: number;
startColumn: number;
endColumn: number;
};
export declare const handleRangeTypeOutput: (range: IRange, maxRow: number, maxCol: number) => {
startColumn: number;
endColumn: number;
rangeType?: RANGE_TYPE;

@@ -28,2 +26,4 @@ startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType;

endRow: number;
startColumn: number;
endColumn: number;
};

@@ -73,3 +73,3 @@ export declare const rotateRange: (range: IRange) => IRange;

export declare const handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests: (range: IRange, commandInfo: ICommandInfo, deps: {
selectionManagerService: SelectionManagerService;
selectionManagerService: SheetsSelectionsService;
}) => IRange | null;

@@ -88,5 +88,5 @@ type MutationsAffectRange = ISheetCommandSharedParams | IRemoveSheetMutationParams | IMoveRowsMutationParams | IMoveColumnsMutationParams | IRemoveRowsMutationParams | IRemoveColMutationParams | IInsertColMutationParams | IInsertRowMutationParams | IMoveRangeMutationParams;

export declare function getEffectedRangesOnCommand(command: EffectRefRangeParams, deps: {
selectionManagerService: SelectionManagerService;
selectionManagerService: SheetsSelectionsService;
}): IRange[];
export declare function getEffectedRangesOnMutation(mutation: IMutationInfo<MutationsAffectRange>): IRange[] | undefined;
export {};
{
"name": "@univerjs/sheets",
"version": "0.2.2",
"version": "0.2.3",
"private": false,

@@ -52,8 +52,9 @@ "description": "UniverSheet normal base-sheets",

"rxjs": ">=7.0.0",
"@univerjs/core": "0.2.2",
"@univerjs/engine-formula": "0.2.2",
"@univerjs/rpc": "0.2.2"
"@univerjs/core": "0.2.3",
"@univerjs/engine-numfmt": "0.2.3",
"@univerjs/engine-formula": "0.2.3",
"@univerjs/rpc": "0.2.3"
},
"dependencies": {
"@univerjs/protocol": "0.1.38-alpha.11"
"@univerjs/protocol": "0.1.38-alpha.18"
},

@@ -66,7 +67,7 @@ "devDependencies": {

"vitest": "^1.6.0",
"@univerjs/engine-formula": "0.2.2",
"@univerjs/engine-numfmt": "0.2.2",
"@univerjs/rpc": "0.2.2",
"@univerjs/core": "0.2.2",
"@univerjs/shared": "0.2.2"
"@univerjs/core": "0.2.3",
"@univerjs/engine-formula": "0.2.3",
"@univerjs/engine-numfmt": "0.2.3",
"@univerjs/shared": "0.2.3",
"@univerjs/rpc": "0.2.3"
},

@@ -73,0 +74,0 @@ "univerSpace": {

# @univerjs/sheets
[![npm version](https://img.shields.io/npm/v/@univerjs/sheets)](https://npmjs.org/package/@univerjs/sheets)
[![license](https://img.shields.io/npm/l/@univerjs/sheets)](https://img.shields.io/npm/l/@univerjs/sheets)
![i18n](https://img.shields.io/badge/zh--CN%20%7C%20en--US-cornflowerblue?label=i18n)
## Package Overview
| Package Name | UMD Namespace | Version | License | Downloads | Contains CSS | Contains i18n locales |
| --- | --- | --- | --- | --- | :---: | :---: |
| `@univerjs/sheets` | `UniverSheets` | [![][npm-version-shield]][npm-version-link] | ![][npm-license-shield] | ![][npm-downloads-shield] | ❌ | ⭕️ |
## Introduction

@@ -46,1 +48,7 @@

However, if one feature relies explicitly on another feature, such as a formula needing to perform certain actions when the fill down or copy-paste functions are called, the formula module should directly depend on the fill down and copy-paste modules, instead of using `SheetInterceptorService` for implementation.
<!-- Links -->
[npm-version-shield]: https://img.shields.io/npm/v/@univerjs/sheets?style=flat-square
[npm-version-link]: https://npmjs.com/package/@univerjs/sheets
[npm-license-shield]: https://img.shields.io/npm/l/@univerjs/sheets?style=flat-square
[npm-downloads-shield]: https://img.shields.io/npm/dm/@univerjs/sheets?style=flat-square

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

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