@danmeon/univer-sheets-data-validation
v1.5.2-carenode.7
Published
Unofficial Carenode fork of @univerjs/sheets-data-validation 1.5.2 (Univer by DreamNum), not an official Univer release. Sheet-specific data validation commands, services, and Facade APIs for Univer Sheets.
Maintainers
Readme
Unofficial build.
@danmeon/[email protected]is a Carenode fork of@univerjs/sheets-data-validation1.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: none. Only the package name, version and this notice differ; the code was rebuilt from the upstream source.
@univerjs/sheets-data-validation
@univerjs/sheets-data-validation connects shared data validation rules to Univer Sheets and provides sheet-specific commands, services, and Facade APIs.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
| --- | --- | :---: | :---: | :---: | :---: |
| @univerjs/sheets-data-validation | UniverSheetsDataValidation | No | Yes | Yes | No |
Installation
pnpm add @univerjs/sheets-data-validation
# or
npm install @univerjs/sheets-data-validationUsage
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 { LocaleType, mergeLocales, Univer } from '@univerjs/core';
import { UniverSheetsDataValidationPlugin } from '@univerjs/sheets-data-validation';
import EnUS from '@univerjs/sheets-data-validation/locale/en-US';
const univer = new Univer({
locale: LocaleType.EN_US,
locales: {
[LocaleType.EN_US]: mergeLocales(EnUS),
},
});
univer.registerPlugin(UniverSheetsDataValidationPlugin);Integration Notes
Use this package with @univerjs/sheets-data-validation-ui when users need validation dialogs, dropdowns, and error UI.
- Import
@univerjs/sheets-data-validation/facadewhen using this package through Univer Facade APIs.
