@univerjs/sheets-ui 0.21.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -21
- package/lib/cjs/index.js +444 -409
- package/lib/es/index.js +445 -410
- package/lib/index.js +445 -410
- package/lib/types/config/config.d.ts +21 -0
- package/lib/types/controllers/shortcuts/utils.d.ts +8 -0
- package/lib/types/services/clipboard/html-to-usm/converter.d.ts +11 -0
- package/lib/types/services/clipboard/type.d.ts +1 -0
- package/lib/types/services/editor/cell-editor-manager.service.d.ts +1 -1
- package/lib/types/services/editor/formula-editor-manager.service.d.ts +6 -4
- package/lib/types/services/editor-bridge.service.d.ts +2 -2
- package/lib/types/services/status-bar.service.d.ts +1 -1
- package/lib/umd/index.js +11 -11
- package/package.json +23 -19
package/README.md
CHANGED
|
@@ -1,35 +1,47 @@
|
|
|
1
1
|
# @univerjs/sheets-ui
|
|
2
2
|
|
|
3
|
+
[](https://npmjs.com/package/@univerjs/sheets-ui)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs/sheets-ui)
|
|
5
|
+
[](https://npmjs.com/package/@univerjs/sheets-ui)
|
|
6
|
+
|
|
7
|
+
`@univerjs/sheets-ui` provides the main spreadsheet UI layer for Univer Sheets, including selection, menus, clipboard, formula bar integration, and rendering interaction services.
|
|
8
|
+
|
|
3
9
|
## Package Overview
|
|
4
10
|
|
|
5
|
-
| Package
|
|
6
|
-
| --- | --- |
|
|
7
|
-
| `@univerjs/sheets-ui` | `UniverSheetsUi` |
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs/sheets-ui` | `UniverSheetsUi` | Yes | Yes | Yes |
|
|
8
14
|
|
|
9
|
-
##
|
|
15
|
+
## Installation
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
```sh
|
|
18
|
+
pnpm add @univerjs/sheets-ui
|
|
19
|
+
# or
|
|
20
|
+
npm install @univerjs/sheets-ui
|
|
21
|
+
```
|
|
12
22
|
|
|
13
|
-
|
|
14
|
-
* Copy-paste service, allowing customization of copy-paste behavior for specific features via the provided methods
|
|
15
|
-
* Autofill service, enabling customization of autofill behavior for specific features via the provided methods
|
|
16
|
-
* Cell editor and formula editor
|
|
17
|
-
* Rendering spreadsheets in canvas
|
|
23
|
+
Keep all `@univerjs/*` packages on the same version.
|
|
18
24
|
|
|
19
25
|
## Usage
|
|
20
26
|
|
|
21
|
-
|
|
27
|
+
```ts
|
|
28
|
+
import '@univerjs/sheets-ui/lib/index.css';
|
|
29
|
+
import EnUS from '@univerjs/sheets-ui/locale/en-US';
|
|
30
|
+
import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';
|
|
22
31
|
|
|
23
|
-
|
|
24
|
-
# Using npm
|
|
25
|
-
npm install @univerjs/sheets-ui
|
|
32
|
+
univer.registerPlugin(UniverSheetsUIPlugin);
|
|
26
33
|
|
|
27
|
-
|
|
28
|
-
pnpm add @univerjs/sheets-ui
|
|
34
|
+
// Merge EnUS into your Univer locale map when this package contributes UI text.
|
|
29
35
|
```
|
|
30
36
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
Exported plugin classes:
|
|
38
|
+
|
|
39
|
+
- `UniverSheetsUIPlugin`
|
|
40
|
+
- `UniverSheetsMobileUIPlugin`
|
|
41
|
+
|
|
42
|
+
## Resources
|
|
43
|
+
|
|
44
|
+
- [Documentation](https://docs.univer.ai)
|
|
45
|
+
- [NPM package](https://npmjs.com/package/@univerjs/sheets-ui)
|
|
46
|
+
- [GitHub repository](https://github.com/dream-num/univer)
|
|
47
|
+
|