@nocobase/client-v2 3.0.0-alpha.6 → 3.0.0-alpha.7
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/es/flow/models/actions/UpdateRecordActionUtils.d.ts +8 -2
- package/es/flow/models/blocks/table/JSColumnModel.d.ts +2 -0
- package/es/index.mjs +87 -78
- package/lib/index.js +93 -84
- package/package.json +7 -7
- package/src/__tests__/app.test.tsx +110 -0
- package/src/__tests__/browserChecker.test.ts +37 -0
- package/src/__tests__/settings-shell.test.tsx +27 -1
- package/src/components/AppComponents.tsx +16 -7
- package/src/components/form/table/Table.tsx +81 -6
- package/src/components/form/table/__tests__/Table.columnWidth.test.tsx +433 -0
- package/src/flow/models/actions/UpdateRecordActionModel.tsx +18 -1
- package/src/flow/models/actions/UpdateRecordActionUtils.ts +18 -6
- package/src/flow/models/actions/__tests__/UpdateRecordActionModel.test.ts +76 -4
- package/src/flow/models/blocks/form/__tests__/FormBlockModel.test.tsx +8 -2
- package/src/flow/models/blocks/table/JSColumnModel.tsx +10 -1
- package/src/flow/models/blocks/table/__tests__/JSColumnModel.test.tsx +52 -5
- package/src/flow/models/fields/AssociationFieldModel/__tests__/RecordPickerFieldModel.itemContext.test.ts +46 -0
- package/src/settings-app/SettingsShell.tsx +19 -4
|
@@ -6,7 +6,13 @@
|
|
|
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 type { AxiosRequestConfig } from 'axios';
|
|
10
|
+
type UpdateRecordActionParams = {
|
|
11
|
+
assignedValues?: unknown;
|
|
12
|
+
requestConfig?: AxiosRequestConfig;
|
|
13
|
+
};
|
|
9
14
|
export declare function refreshLinkageRulesAfterUpdate(ctx: any): Promise<void>;
|
|
10
|
-
export declare function applyUpdateRecordAction(ctx: any, params:
|
|
15
|
+
export declare function applyUpdateRecordAction(ctx: any, params: UpdateRecordActionParams, options?: {
|
|
11
16
|
settingsFlowKey?: string;
|
|
12
|
-
}): Promise<
|
|
17
|
+
}): Promise<boolean>;
|
|
18
|
+
export {};
|
|
@@ -6,10 +6,12 @@
|
|
|
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 type { FlowModelOptions } from '@nocobase/flow-engine';
|
|
9
10
|
import React from 'react';
|
|
10
11
|
import { TableCustomColumnModel } from './TableCustomColumnModel';
|
|
11
12
|
export declare class JSColumnModel extends TableCustomColumnModel {
|
|
12
13
|
private _RenderComponent?;
|
|
14
|
+
onInit(options: FlowModelOptions): void;
|
|
13
15
|
renderHiddenInConfig(): React.JSX.Element;
|
|
14
16
|
getInputArgs(): {};
|
|
15
17
|
getColumnProps(): {
|