@danmeon/univer-sheets
v1.5.2-carenode.7
Published
Unofficial Carenode fork of @univerjs/sheets 1.5.2 (Univer by DreamNum), not an official Univer release. Core spreadsheet model and business logic for Univer Sheets.
Maintainers
Readme
Unofficial build.
@danmeon/[email protected]is a Carenode fork of@univerjs/sheets1.5.2 from Univer by DreamNum. It is not an official Univer release and DreamNum does not support it. It is distributed under the same Apache-2.0 license (see LICENSE).Built from
DanMeon/univerbranchcarenode/v1.5.2, commit47617674e922d90bb50e1dd62b6efc6106193dd0.
Source files changed from upstream v1.5.2 in this package (each changed file carries a "Modified by Carenode" header):
packages/sheets/src/basics/xlsxkit-calculation-settings-lock.tspackages/sheets/src/commands/commands/auto-fill.command.tspackages/sheets/src/commands/commands/set-workbook-calculation-settings.command.tspackages/sheets/src/commands/mutations/move-range.mutation.tspackages/sheets/src/commands/mutations/set-range-values.mutation.tspackages/sheets/src/controllers/permission/sheet-permission-check.controller.tspackages/sheets/src/controllers/permission/sheet-permission-init.controller.tspackages/sheets/src/controllers/permission/sheet-permission-view-model.controller.tspackages/sheets/src/index.tspackages/sheets/src/services/auto-fill/auto-fill.service.tspackages/sheets/src/services/permission/range-permission/range-protection.service.tspackages/sheets/src/services/permission/worksheet-permission/worksheet-permission.service.ts
@univerjs/sheets
@univerjs/sheets provides the core spreadsheet data model and business logic for Univer Sheets, independent of the UI layer.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
| --- | --- | :---: | :---: | :---: | :---: |
| @univerjs/sheets | UniverSheets | No | Yes | Yes | Yes |
Installation
pnpm add @univerjs/sheets
# or
npm install @univerjs/sheetsUsage
Start with the integration setup for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
import EnUS from '@univerjs/sheets/locale/en-US';
import { UniverSheetsPlugin } from '@univerjs/sheets';
univer.registerPlugin(UniverSheetsPlugin);
// Merge EnUS into your Univer locale map when this package contributes UI text.Worker usage
On the main thread, import UniverSheetsPlugin from @univerjs/sheets. Set notExecuteFormula: true to delegate calculation to the worker.
In the worker entry, import UniverSheetsPlugin from @univerjs/sheets/worker:
import { UniverSheetsPlugin } from '@univerjs/sheets/worker';
univer.registerPlugin(UniverSheetsPlugin, { onlyRegisterFormulaRelatedMutations: true });Integration Notes
- Import
@univerjs/sheets/facadewhen using this package through Univer Facade APIs.
