@univerjs/sheets
Advanced tools
Comparing version 0.3.0-alpha.1 to 0.3.0-nightly.202410101606
@@ -1,2 +0,2 @@ | ||
import { BorderType, BorderStyleTypes, ICommand } from '@univerjs/core'; | ||
import { BorderStyleTypes, ICommand, BorderType } from '@univerjs/core'; | ||
import { IBorderInfo } from '../../services/border-style-manager.service'; | ||
@@ -3,0 +3,0 @@ export interface ISetBorderBasicCommandParams { |
@@ -1,2 +0,2 @@ | ||
import { IPermissionService, IRange } from '@univerjs/core'; | ||
import { IRange, IPermissionService } from '@univerjs/core'; | ||
import { UnitAction } from '@univerjs/protocol'; | ||
@@ -3,0 +3,0 @@ import { RangeProtectionRuleModel } from './range-protection-rule.model'; |
@@ -11,2 +11,4 @@ import { IRange, Disposable, IPermissionService, IUniverInstanceService } from '@univerjs/core'; | ||
private readonly _cellInfoCache; | ||
private readonly _rowInfoCache; | ||
private readonly _colInfoCache; | ||
constructor(_ruleModel: RangeProtectionRuleModel, _permissionService: IPermissionService, _univerInstanceService: IUniverInstanceService); | ||
@@ -18,5 +20,9 @@ private _initCache; | ||
private _ensureCellInfoMap; | ||
private _ensureRowColInfoMap; | ||
private _addCellRuleCache; | ||
private _deleteCellRuleCache; | ||
reBuildCache(unitId: string, subUnitId: string): void; | ||
getRowPermissionInfo(unitId: string, subUnitId: string, row: number, types: UnitAction[]): boolean; | ||
getColPermissionInfo(unitId: string, subUnitId: string, col: number, types: UnitAction[]): boolean; | ||
private _initUpdateRowColInfoCache; | ||
getCellInfo(unitId: string, subUnitId: string, row: number, col: number): (Partial<Record<UnitAction, boolean>> & { | ||
@@ -23,0 +29,0 @@ ruleId?: string; |
@@ -13,2 +13,3 @@ import { ICellData, IRange, Nullable, ObjectMatrix } from '@univerjs/core'; | ||
} | ||
export declare const INumfmtService: import('@wendellhu/redi').IdentifierDecorator<INumfmtService>; | ||
export interface INumfmtService { | ||
@@ -22,2 +23,1 @@ getValue(unitId: string, subUnitId: string, row: number, col: number, model?: ObjectMatrix<INumfmtItem>): Nullable<INumfmtItemWithCache>; | ||
} | ||
export declare const INumfmtService: import('@wendellhu/redi').IdentifierDecorator<INumfmtService>; |
@@ -10,2 +10,3 @@ import { IMutationInfo, Disposable, DisposableCollection, ICommandService, IUniverInstanceService } from '@univerjs/core'; | ||
import { RefRangeService } from '../../../services/ref-range/ref-range.service'; | ||
import { SheetInterceptorService } from '../../sheet-interceptor/sheet-interceptor.service'; | ||
export declare class RangeProtectionRefRangeService extends Disposable { | ||
@@ -18,4 +19,6 @@ private _selectionProtectionRuleModel; | ||
private readonly _rangeProtectionCache; | ||
private readonly _sheetInterceptorService; | ||
private readonly _rangeProtectionRuleModel; | ||
disposableCollection: DisposableCollection; | ||
constructor(_selectionProtectionRuleModel: RangeProtectionRuleModel, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _refRangeService: RefRangeService, _selectionProtectionRenderModel: RangeProtectionRenderModel, _rangeProtectionCache: RangeProtectionCache); | ||
constructor(_selectionProtectionRuleModel: RangeProtectionRuleModel, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _refRangeService: RefRangeService, _selectionProtectionRenderModel: RangeProtectionRenderModel, _rangeProtectionCache: RangeProtectionCache, _sheetInterceptorService: SheetInterceptorService, _rangeProtectionRuleModel: RangeProtectionRuleModel); | ||
private _onRefRangeChange; | ||
@@ -44,2 +47,3 @@ refRangeHandle(config: EffectRefRangeParams, unitId: string, subUnitId: string): { | ||
private _initReBuildCache; | ||
private _initRemoveSheet; | ||
} |
import { Injector, IPermissionService, IResourceManagerService, IUniverInstanceService, RxDisposable } from '@univerjs/core'; | ||
import { RangeProtectionRuleModel } from '../../../model/range-protection-rule.model'; | ||
import { WorksheetProtectionPointModel } from './worksheet-permission-point.model'; | ||
import { WorksheetProtectionRuleModel } from './worksheet-permission-rule.model'; | ||
import { WorksheetProtectionPointModel } from './worksheet-permission-point.model'; | ||
export declare const RULE_MODEL_PLUGIN_NAME = "SHEET_WORKSHEET_PROTECTION_PLUGIN"; | ||
@@ -6,0 +6,0 @@ export declare const POINT_MODEL_PLUGIN_NAME = "SHEET_WORKSHEET_PROTECTION_POINT_PLUGIN"; |
import { IDisposable, IMutationInfo, IRange, Nullable, Disposable, ICommandService, InterceptorManager, IUniverInstanceService } from '@univerjs/core'; | ||
import { EffectRefRangeParams } from './type'; | ||
import { SheetsSelectionsService } from '../selections/selection-manager.service'; | ||
import { SheetInterceptorService } from '../sheet-interceptor/sheet-interceptor.service'; | ||
import { EffectRefRangeParams } from './type'; | ||
type RefRangCallback = (params: EffectRefRangeParams) => { | ||
@@ -6,0 +6,0 @@ redos: IMutationInfo[]; |
@@ -1,2 +0,2 @@ | ||
import { Disposable, InterceptorEffectEnum, IUniverInstanceService, ICommandInfo, IDisposable, IInterceptor, IRange, IUndoRedoCommandInfosByInterceptor, Nullable } from '@univerjs/core'; | ||
import { ICommandInfo, IDisposable, IInterceptor, IRange, IUndoRedoCommandInfosByInterceptor, Nullable, Disposable, InterceptorEffectEnum, IUniverInstanceService } from '@univerjs/core'; | ||
export interface IBeforeCommandInterceptor { | ||
@@ -3,0 +3,0 @@ priority?: number; |
@@ -12,3 +12,5 @@ import { IUniverSheetsConfig } from './controllers/config.schema'; | ||
private _initDependencies; | ||
onStarting(_injector?: Injector): void; | ||
onStarting(): void; | ||
onRendered(): void; | ||
onReady(): void; | ||
} |
{ | ||
"name": "@univerjs/sheets", | ||
"version": "0.3.0-alpha.1", | ||
"version": "0.3.0-nightly.202410101606", | ||
"private": false, | ||
@@ -51,14 +51,14 @@ "description": "UniverSheet normal base-sheets", | ||
"rxjs": ">=7.0.0", | ||
"@univerjs/core": "0.3.0-alpha.1", | ||
"@univerjs/engine-formula": "0.3.0-alpha.1", | ||
"@univerjs/rpc": "0.3.0-alpha.1", | ||
"@univerjs/engine-numfmt": "0.3.0-alpha.1", | ||
"@univerjs/sheets": "0.3.0-alpha.1" | ||
"@univerjs/core": "0.3.0-nightly.202410101606", | ||
"@univerjs/engine-formula": "0.3.0-nightly.202410101606", | ||
"@univerjs/sheets": "0.3.0-nightly.202410101606", | ||
"@univerjs/rpc": "0.3.0-nightly.202410101606", | ||
"@univerjs/engine-numfmt": "0.3.0-nightly.202410101606" | ||
}, | ||
"dependencies": { | ||
"@univerjs/protocol": "0.1.39-alpha.15", | ||
"@univerjs/core": "0.3.0-alpha.1", | ||
"@univerjs/engine-numfmt": "0.3.0-alpha.1", | ||
"@univerjs/rpc": "0.3.0-alpha.1", | ||
"@univerjs/engine-formula": "0.3.0-alpha.1" | ||
"@univerjs/core": "0.3.0-nightly.202410101606", | ||
"@univerjs/engine-numfmt": "0.3.0-nightly.202410101606", | ||
"@univerjs/engine-formula": "0.3.0-nightly.202410101606", | ||
"@univerjs/rpc": "0.3.0-nightly.202410101606" | ||
}, | ||
@@ -70,3 +70,3 @@ "devDependencies": { | ||
"vitest": "^2.1.1", | ||
"@univerjs-infra/shared": "0.3.0-alpha.1" | ||
"@univerjs-infra/shared": "0.3.0" | ||
}, | ||
@@ -92,5 +92,4 @@ "univerSpace": { | ||
"lint:types": "tsc --noEmit", | ||
"build": "tsc && vite build", | ||
"sync:cnpm": "cnpm sync" | ||
"build": "tsc && vite build" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1649463
238
3925
8
1
+ Added@types/node@22.13.5(transitive)
+ Added@univerjs/core@0.3.0-nightly.202410101606(transitive)
+ Added@univerjs/engine-formula@0.3.0-nightly.202410101606(transitive)
+ Added@univerjs/engine-numfmt@0.3.0-nightly.202410101606(transitive)
+ Added@univerjs/rpc@0.3.0-nightly.202410101606(transitive)
- Removed@types/node@22.13.4(transitive)
- Removed@univerjs/core@0.3.0-alpha.1(transitive)
- Removed@univerjs/engine-formula@0.3.0-alpha.1(transitive)
- Removed@univerjs/engine-numfmt@0.3.0-alpha.1(transitive)
- Removed@univerjs/rpc@0.3.0-alpha.1(transitive)