@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 CHANGED
@@ -1,37 +1,42 @@
1
1
  # @univerjs/sheets-conditional-formatting
2
2
 
3
- ## Package Overview
4
-
5
- | Package Name | UMD Namespace | Version | License | Downloads | Contains CSS | Contains i18n locales |
6
- | --- | --- | --- | --- | --- | :---: | :---: |
7
- | `@univerjs/sheets-conditional-formatting` | `UniverSheetsConditionalFormatting` | [![][npm-version-shield]][npm-version-link] | ![][npm-license-shield] | ![][npm-downloads-shield] | ❌ | ❌ |
3
+ [![npm version](https://img.shields.io/npm/v/@univerjs/sheets-conditional-formatting?style=flat-square)](https://npmjs.com/package/@univerjs/sheets-conditional-formatting)
4
+ [![license](https://img.shields.io/npm/l/@univerjs/sheets-conditional-formatting?style=flat-square)](https://npmjs.com/package/@univerjs/sheets-conditional-formatting)
5
+ [![downloads](https://img.shields.io/npm/dm/@univerjs/sheets-conditional-formatting?style=flat-square)](https://npmjs.com/package/@univerjs/sheets-conditional-formatting)
8
6
 
9
- ## Introduction
7
+ `@univerjs/sheets-conditional-formatting` adds the core conditional formatting model, commands, and calculation support for Univer Sheets.
10
8
 
11
- `@univerjs/sheets-conditional-formatting` provides Univer Sheet with basic capabilities for conditional format rendering computation.
12
-
13
- ## Usage
9
+ ## Package Overview
14
10
 
15
- ### Installation
11
+ | Package | UMD global | CSS | Locales | Facade entry |
12
+ | --- | --- | :---: | :---: | :---: |
13
+ | `@univerjs/sheets-conditional-formatting` | `UniverSheetsConditionalFormatting` | No | No | Yes |
16
14
 
17
- ```shell
18
- # Using npm
19
- npm install @univerjs/sheets-conditional-formatting
15
+ ## Installation
20
16
 
21
- # Using pnpm
17
+ ```sh
22
18
  pnpm add @univerjs/sheets-conditional-formatting
19
+ # or
20
+ npm install @univerjs/sheets-conditional-formatting
23
21
  ```
24
22
 
25
- ### Register the plugin
23
+ Keep all `@univerjs/*` packages on the same version.
26
24
 
27
- ```typescript
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
- <!-- Links -->
34
- [npm-version-shield]: https://img.shields.io/npm/v/@univerjs/sheets-conditional-formatting?style=flat-square
35
- [npm-version-link]: https://npmjs.com/package/@univerjs/sheets-conditional-formatting
36
- [npm-license-shield]: https://img.shields.io/npm/l/@univerjs/sheets-conditional-formatting?style=flat-square
37
- [npm-downloads-shield]: https://img.shields.io/npm/dm/@univerjs/sheets-conditional-formatting?style=flat-square
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.124.0/helpers/typeof.js
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.124.0/helpers/toPrimitive.js
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.124.0/helpers/toPropertyKey.js
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.124.0/helpers/defineProperty.js
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,