@nocobase/plugin-field-formula 2.1.0-alpha.4 → 2.1.0-alpha.40

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.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare function useT(): (str: string) => string;
10
+ export declare function tExpr(key: string): string;
@@ -6,7 +6,7 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { FieldModel } from '@nocobase/client';
9
+ import { FieldModel } from '@nocobase/client-v2';
10
10
  import React from 'react';
11
11
  export declare function FormulaResult(props: any): React.JSX.Element;
12
12
  export declare class FormulaFieldModel extends FieldModel {
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Application, Plugin } from '@nocobase/client-v2';
10
+ export declare class PluginFieldFormulaClient extends Plugin<any, Application> {
11
+ expressionFields: string[];
12
+ registerExpressionFieldInterface(data: string | string[]): void;
13
+ load(): Promise<void>;
14
+ }
15
+ export default PluginFieldFormulaClient;
@@ -9,17 +9,19 @@
9
9
 
10
10
  module.exports = {
11
11
  "@formily/react": "2.3.7",
12
- "@nocobase/client": "2.1.0-alpha.4",
12
+ "@nocobase/client": "2.1.0-alpha.40",
13
+ "@nocobase/evaluators": "2.1.0-alpha.40",
14
+ "@nocobase/utils": "2.1.0-alpha.40",
15
+ "react": "18.2.0",
16
+ "@nocobase/flow-engine": "2.1.0-alpha.40",
17
+ "@nocobase/client-v2": "2.1.0-alpha.40",
18
+ "@nocobase/database": "2.1.0-alpha.40",
19
+ "@nocobase/server": "2.1.0-alpha.40",
20
+ "@nocobase/test": "2.1.0-alpha.40",
13
21
  "react-i18next": "11.18.6",
14
22
  "@formily/reactive": "2.3.7",
15
- "@nocobase/flow-engine": "2.1.0-alpha.4",
23
+ "@ant-design/icons": "5.6.1",
16
24
  "antd": "5.24.2",
17
- "@nocobase/evaluators": "2.1.0-alpha.4",
18
- "@nocobase/utils": "2.1.0-alpha.4",
19
- "lodash": "4.17.21",
20
- "react": "18.2.0",
21
- "@nocobase/database": "2.1.0-alpha.4",
22
- "@nocobase/server": "2.1.0-alpha.4",
23
- "@nocobase/test": "2.1.0-alpha.4",
25
+ "lodash": "4.18.1",
24
26
  "@formily/core": "2.3.7"
25
27
  };
package/package.json CHANGED
@@ -6,8 +6,8 @@
6
6
  "description": "Configure and store the results of calculations between multiple field values in the same record, supporting both Math.js and Excel formula functions.",
7
7
  "description.zh-CN": "可以配置并存储同一条记录的多字段值之间的计算结果,支持 Math.js 和 Excel formula functions 两种引擎",
8
8
  "description.ru-RU": "Настройка и сохранение результатов вычислений между значениями нескольких полей в одной записи с поддержкой движков Math.js и Excel formula functions.",
9
- "version": "2.1.0-alpha.4",
10
- "license": "AGPL-3.0",
9
+ "version": "2.1.0-alpha.40",
10
+ "license": "Apache-2.0",
11
11
  "main": "./dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/field-formula",
13
13
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/field-formula",
@@ -22,13 +22,14 @@
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@nocobase/client": "2.x",
25
+ "@nocobase/client-v2": "2.x",
25
26
  "@nocobase/database": "2.x",
26
27
  "@nocobase/evaluators": "2.x",
27
28
  "@nocobase/server": "2.x",
28
29
  "@nocobase/test": "2.x",
29
30
  "@nocobase/utils": "2.x"
30
31
  },
31
- "gitHead": "32c682485e5f1878b9165be2e9de18000d98f935",
32
+ "gitHead": "e73f99dd0abefe847f2e50ff0fea1f41a82fd048",
32
33
  "keywords": [
33
34
  "Collection fields"
34
35
  ]