@univerjs/sheets-conditional-formatting 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 +26 -21
- package/lib/cjs/facade.js +4 -4
- package/lib/cjs/index.js +118 -125
- package/lib/es/facade.js +4 -4
- package/lib/es/index.js +118 -125
- package/lib/facade.js +4 -4
- package/lib/index.js +118 -125
- package/lib/umd/index.js +1 -1
- package/package.json +15 -11
package/README.md
CHANGED
|
@@ -1,37 +1,42 @@
|
|
|
1
1
|
# @univerjs/sheets-conditional-formatting
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
| --- | --- | --- | --- | --- | :---: | :---: |
|
|
7
|
-
| `@univerjs/sheets-conditional-formatting` | `UniverSheetsConditionalFormatting` | [![][npm-version-shield]][npm-version-link] | ![][npm-license-shield] | ![][npm-downloads-shield] | ❌ | ❌ |
|
|
3
|
+
[](https://npmjs.com/package/@univerjs/sheets-conditional-formatting)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs/sheets-conditional-formatting)
|
|
5
|
+
[](https://npmjs.com/package/@univerjs/sheets-conditional-formatting)
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
`@univerjs/sheets-conditional-formatting` adds the core conditional formatting model, commands, and calculation support for Univer Sheets.
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
9
|
+
## Package Overview
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs/sheets-conditional-formatting` | `UniverSheetsConditionalFormatting` | No | No | Yes |
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
# Using npm
|
|
19
|
-
npm install @univerjs/sheets-conditional-formatting
|
|
15
|
+
## Installation
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
```sh
|
|
22
18
|
pnpm add @univerjs/sheets-conditional-formatting
|
|
19
|
+
# or
|
|
20
|
+
npm install @univerjs/sheets-conditional-formatting
|
|
23
21
|
```
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
Keep all `@univerjs/*` packages on the same version.
|
|
26
24
|
|
|
27
|
-
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
28
|
import { UniverSheetsConditionalFormattingPlugin } from '@univerjs/sheets-conditional-formatting';
|
|
29
29
|
|
|
30
30
|
univer.registerPlugin(UniverSheetsConditionalFormattingPlugin);
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
## Integration Notes
|
|
34
|
+
|
|
35
|
+
Use this package with `@univerjs/sheets-conditional-formatting-ui` when users need menus and rule-management panels.
|
|
36
|
+
|
|
37
|
+
## Resources
|
|
38
|
+
|
|
39
|
+
- [Documentation](https://docs.univer.ai)
|
|
40
|
+
- [NPM package](https://npmjs.com/package/@univerjs/sheets-conditional-formatting)
|
|
41
|
+
- [GitHub repository](https://github.com/dream-num/univer)
|
|
42
|
+
|
package/lib/cjs/facade.js
CHANGED
|
@@ -4,7 +4,7 @@ let _univerjs_sheets_conditional_formatting = require("@univerjs/sheets-conditio
|
|
|
4
4
|
let _univerjs_sheets_facade = require("@univerjs/sheets/facade");
|
|
5
5
|
let _univerjs_core_facade = require("@univerjs/core/facade");
|
|
6
6
|
|
|
7
|
-
//#region \0@oxc-project+runtime@0.
|
|
7
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
|
|
8
8
|
function _typeof(o) {
|
|
9
9
|
"@babel/helpers - typeof";
|
|
10
10
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -15,7 +15,7 @@ function _typeof(o) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
|
-
//#region \0@oxc-project+runtime@0.
|
|
18
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
|
|
19
19
|
function toPrimitive(t, r) {
|
|
20
20
|
if ("object" != _typeof(t) || !t) return t;
|
|
21
21
|
var e = t[Symbol.toPrimitive];
|
|
@@ -28,14 +28,14 @@ function toPrimitive(t, r) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region \0@oxc-project+runtime@0.
|
|
31
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
|
|
32
32
|
function toPropertyKey(t) {
|
|
33
33
|
var i = toPrimitive(t, "string");
|
|
34
34
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
|
-
//#region \0@oxc-project+runtime@0.
|
|
38
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
|
|
39
39
|
function _defineProperty(e, r, t) {
|
|
40
40
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
41
41
|
value: t,
|