@nocobase/client 2.0.0-alpha.37 → 2.0.0-alpha.39
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/block-provider/index.d.ts +4 -3
- package/es/flow/actions/columnFixed.d.ts +1 -2
- package/es/flow/models/base/BlockModel.d.ts +2 -1
- package/es/flow/models/blocks/filter-form/FilterFormBlockModel.d.ts +1 -0
- package/es/flow/models/fields/AssociationFieldModel/RecordSelectFieldModel.d.ts +2 -2
- package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +41 -0
- package/es/flow/models/fields/mobile-components/MobileDatePicker.d.ts +10 -0
- package/es/flow/models/fields/mobile-components/MobileLazySelect.d.ts +11 -0
- package/es/flow/models/fields/mobile-components/MobileSelect.d.ts +10 -0
- package/es/flow/models/fields/mobile-components/MobileTimePicker.d.ts +10 -0
- package/es/index.mjs +4546 -4087
- package/lib/index-C3fHjsMw-CBH970KQ.js +2148 -0
- package/lib/index.js +111 -103
- package/package.json +6 -6
- package/lib/index-C3fHjsMw-Cpl5F3oQ.js +0 -2140
|
@@ -8,12 +8,13 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export * from './BlockProvider';
|
|
10
10
|
export * from './BlockSchemaComponentProvider';
|
|
11
|
+
export * from './DetailsBlockProvider';
|
|
11
12
|
export * from './FilterFormBlockProvider';
|
|
12
13
|
export * from './FormBlockProvider';
|
|
13
14
|
export * from './FormFieldProvider';
|
|
15
|
+
export * from './hooks';
|
|
16
|
+
export { useLinkActionProps } from './hooks/index';
|
|
14
17
|
export * from './TableBlockProvider';
|
|
15
18
|
export * from './TableFieldProvider';
|
|
16
19
|
export * from './TableSelectorProvider';
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './hooks';
|
|
19
|
-
export { useLinkActionProps } from './hooks/index';
|
|
20
|
+
export * from './TemplateBlockProvider';
|
|
@@ -6,5 +6,4 @@
|
|
|
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
|
-
|
|
10
|
-
export declare const fixed: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
|
|
9
|
+
export declare const fixed: import("@nocobase/flow-engine").ActionDefinition<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { DefaultStructure, FlowModel } from '@nocobase/flow-engine';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export type BlockSceneType = 'new' | 'one' | 'many' | 'select' | BlockSceneType[];
|
|
3
|
+
export type BlockSceneType = 'new' | 'filter' | 'one' | 'many' | 'select' | BlockSceneType[];
|
|
4
4
|
export declare const BlockSceneEnum: {
|
|
5
5
|
new: BlockSceneType;
|
|
6
6
|
one: BlockSceneType;
|
|
7
7
|
many: BlockSceneType;
|
|
8
8
|
select: BlockSceneType;
|
|
9
|
+
filter: BlockSceneType;
|
|
9
10
|
oam: BlockSceneType;
|
|
10
11
|
};
|
|
11
12
|
export declare class BlockModel<T = DefaultStructure> extends FlowModel<T> {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
import { CollectionField, MultiRecordResource } from '@nocobase/flow-engine';
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { AssociationFieldModel } from './AssociationFieldModel';
|
|
12
|
-
|
|
13
|
-
export declare function LazySelect(props:
|
|
12
|
+
import { type LazySelectProps } from './recordSelectShared';
|
|
13
|
+
export declare function LazySelect(props: Readonly<LazySelectProps>): React.JSX.Element;
|
|
14
14
|
export declare class RecordSelectFieldModel extends AssociationFieldModel {
|
|
15
15
|
resource: MultiRecordResource;
|
|
16
16
|
get collectionField(): CollectionField;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { SelectProps } from 'antd';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
export interface AssociationFieldNames {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}
|
|
15
|
+
export type AssociationOption = Record<string, any>;
|
|
16
|
+
export type PopupScrollEvent = Parameters<NonNullable<SelectProps<any>['onPopupScroll']>>[0];
|
|
17
|
+
export interface LazySelectProps extends Omit<SelectProps<any>, 'mode' | 'options' | 'value' | 'onChange'> {
|
|
18
|
+
fieldNames: AssociationFieldNames;
|
|
19
|
+
value?: AssociationOption | AssociationOption[];
|
|
20
|
+
multiple?: boolean;
|
|
21
|
+
allowMultiple?: boolean;
|
|
22
|
+
options?: AssociationOption[];
|
|
23
|
+
onChange: (option: AssociationOption | AssociationOption[]) => void;
|
|
24
|
+
onDropdownVisibleChange?: (open: boolean) => void;
|
|
25
|
+
onPopupScroll?: SelectProps<any>['onPopupScroll'];
|
|
26
|
+
onSearch?: SelectProps<any>['onSearch'];
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface LabelByFieldProps {
|
|
30
|
+
option: AssociationOption;
|
|
31
|
+
fieldNames: AssociationFieldNames;
|
|
32
|
+
}
|
|
33
|
+
export declare function LabelByField(props: Readonly<LabelByFieldProps>): React.JSX.Element;
|
|
34
|
+
export declare function toSelectValue(record: AssociationOption | AssociationOption[] | undefined, fieldNames: AssociationFieldNames, multiple?: boolean): {
|
|
35
|
+
label: React.JSX.Element;
|
|
36
|
+
value: any;
|
|
37
|
+
} | {
|
|
38
|
+
label: React.JSX.Element;
|
|
39
|
+
value: any;
|
|
40
|
+
}[];
|
|
41
|
+
export declare function resolveOptions(options: AssociationOption[] | undefined, value: AssociationOption | AssociationOption[] | undefined, isMultiple: boolean): AssociationOption[];
|
|
@@ -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
|
+
import React from 'react';
|
|
10
|
+
export declare const MobileDatePicker: (props: any) => React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
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 React from 'react';
|
|
10
|
+
import { type LazySelectProps } from '../AssociationFieldModel/recordSelectShared';
|
|
11
|
+
export declare function MobileLazySelect(props: Readonly<LazySelectProps>): React.JSX.Element;
|
|
@@ -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
|
+
import React from 'react';
|
|
10
|
+
export declare function MobileSelect(props: any): React.JSX.Element;
|
|
@@ -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
|
+
import React from 'react';
|
|
10
|
+
export declare const MobileTimePicker: (props: any) => React.JSX.Element;
|