@nocobase/client 2.0.0-alpha.43 → 2.0.0-alpha.45
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/AddChildActionModel.d.ts +14 -0
- package/es/flow/models/actions/ExpandCollapseActionModel.d.ts +17 -0
- package/es/flow/models/actions/index.d.ts +2 -0
- package/es/flow/models/base/ActionModel.d.ts +2 -0
- package/es/flow/models/blocks/table/utils.d.ts +2 -0
- package/es/flow/models/fields/AssociationFieldModel/CascadeSelectFieldModel.d.ts +29 -0
- package/es/flow/models/fields/AssociationFieldModel/RecordSelectFieldModel.d.ts +8 -0
- package/es/flow/models/fields/AssociationFieldModel/index.d.ts +1 -0
- package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +4 -0
- package/es/flow/models/fields/ClickableFieldModel.d.ts +1 -0
- package/es/index.mjs +3664 -2742
- package/lib/{index-C3fHjsMw-BVReRSUh.js → index-C3fHjsMw-BqykS5Rn.js} +286 -236
- package/lib/index.js +187 -137
- package/lib/locale/en-US.json +1 -0
- package/lib/locale/zh-CN.json +6 -1
- package/package.json +6 -6
|
@@ -0,0 +1,14 @@
|
|
|
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 type { ButtonProps } from 'antd/es/button';
|
|
10
|
+
import { PopupActionModel } from '../base';
|
|
11
|
+
export declare class AddChildActionModel extends PopupActionModel {
|
|
12
|
+
defaultProps: ButtonProps;
|
|
13
|
+
getAclActionName(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { ActionModel } from '../base';
|
|
10
|
+
export declare class ExpandCollapseActionModel extends ActionModel {
|
|
11
|
+
expandFlag: boolean;
|
|
12
|
+
static scene: import("../base").ActionSceneType;
|
|
13
|
+
setTitle(title: any): void;
|
|
14
|
+
setExpandFlag(flag: any): void;
|
|
15
|
+
getTitle(): any;
|
|
16
|
+
getIcon(): "NodeCollapseOutlined" | "NodeExpandOutlined";
|
|
17
|
+
}
|
|
@@ -31,6 +31,8 @@ export declare class ActionModel<T extends DefaultStructure = DefaultStructure>
|
|
|
31
31
|
onInit(options: any): void;
|
|
32
32
|
getInputArgs(): {};
|
|
33
33
|
onClick(event: any): void;
|
|
34
|
+
getTitle(): string;
|
|
35
|
+
getIcon(): React.ReactNode;
|
|
34
36
|
render(): React.JSX.Element;
|
|
35
37
|
renderHiddenInConfig(): React.ReactNode | undefined;
|
|
36
38
|
}
|
|
@@ -8,3 +8,5 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export declare function extractIndex(str: any): string;
|
|
10
10
|
export declare function adjustColumnOrder(columns: any): any[];
|
|
11
|
+
export declare function setNestedValue(data: any, recordIndex: any, value: any): void;
|
|
12
|
+
export declare function extractIds(data: any): any[];
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { CollectionField, MultiRecordResource } from '@nocobase/flow-engine';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { AssociationFieldModel } from './AssociationFieldModel';
|
|
12
|
+
export declare class CascadeSelectInnerFieldModel extends AssociationFieldModel {
|
|
13
|
+
resource: MultiRecordResource;
|
|
14
|
+
get collectionField(): CollectionField;
|
|
15
|
+
onInit(options: any): void;
|
|
16
|
+
set onPopupScroll(fn: any);
|
|
17
|
+
set onDropdownVisibleChange(fn: any);
|
|
18
|
+
set onSearch(fn: any);
|
|
19
|
+
set onLoadData(fn: any);
|
|
20
|
+
setDataSource(dataSource: any): void;
|
|
21
|
+
getDataSource(): any;
|
|
22
|
+
getFilterValue(): any;
|
|
23
|
+
}
|
|
24
|
+
export declare class CascadeSelectFieldModel extends CascadeSelectInnerFieldModel {
|
|
25
|
+
render(): React.JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
export declare class CascadeSelectListFieldModel extends CascadeSelectInnerFieldModel {
|
|
28
|
+
render(): React.JSX.Element;
|
|
29
|
+
}
|
|
@@ -10,6 +10,10 @@ import { CollectionField, MultiRecordResource } from '@nocobase/flow-engine';
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { AssociationFieldModel } from './AssociationFieldModel';
|
|
12
12
|
import { type LazySelectProps } from './recordSelectShared';
|
|
13
|
+
export declare function CreateContent({ model, toOne }: {
|
|
14
|
+
model: any;
|
|
15
|
+
toOne?: boolean;
|
|
16
|
+
}): React.JSX.Element;
|
|
13
17
|
export declare function LazySelect(props: Readonly<LazySelectProps>): React.JSX.Element;
|
|
14
18
|
export declare class RecordSelectFieldModel extends AssociationFieldModel {
|
|
15
19
|
resource: MultiRecordResource;
|
|
@@ -21,5 +25,9 @@ export declare class RecordSelectFieldModel extends AssociationFieldModel {
|
|
|
21
25
|
setDataSource(dataSource: any): void;
|
|
22
26
|
getDataSource(): any;
|
|
23
27
|
getFilterValue(): any;
|
|
28
|
+
protected onMount(): void;
|
|
29
|
+
set onModalAddClick(fn: any);
|
|
30
|
+
set onDropdownAddClick(fn: any);
|
|
31
|
+
change(value: any): void;
|
|
24
32
|
render(): React.JSX.Element;
|
|
25
33
|
}
|
|
@@ -27,6 +27,10 @@ export interface LazySelectProps extends Omit<SelectProps<any>, 'mode' | 'option
|
|
|
27
27
|
loading?: boolean;
|
|
28
28
|
onCompositionStart?: (e: any) => void;
|
|
29
29
|
onCompositionEnd?: (e: any, flag?: boolean) => void;
|
|
30
|
+
quickCreate?: 'none' | 'modalAdd' | 'quickAdd';
|
|
31
|
+
onModalAddClick?: (e: any) => void;
|
|
32
|
+
onDropdownAddClick?: (e: any) => void;
|
|
33
|
+
searchText?: string;
|
|
30
34
|
}
|
|
31
35
|
export interface LabelByFieldProps {
|
|
32
36
|
option: AssociationOption;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { CollectionField } from '@nocobase/flow-engine';
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { FieldModel } from '../base';
|
|
12
|
+
export declare function transformNestedData(inputData: any): any[];
|
|
12
13
|
export declare class ClickableFieldModel extends FieldModel {
|
|
13
14
|
get collectionField(): CollectionField;
|
|
14
15
|
/**
|