@nocobase/client 1.0.0-alpha.13 → 1.0.0-alpha.15
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/application/index.d.ts +7 -6
- package/es/application/schema-initializer/CompatibleSchemaInitializer.d.ts +2 -2
- package/es/application/schema-settings/index.d.ts +1 -2
- package/es/block-provider/CollectOperators.d.ts +18 -0
- package/es/collection-manager/templates/properties/index.d.ts +1 -0
- package/es/collection-manager/templates/tree.d.ts +1 -0
- package/es/data-source/data-block/DataBlockProvider.d.ts +2 -0
- package/es/data-source/data-source/DataSource.d.ts +1 -1
- package/es/filter-provider/utils.d.ts +3 -3
- package/es/index.d.ts +2 -2
- package/es/index.mjs +18189 -19223
- package/es/modules/actions/save-record/customizeSaveRecordActionSettings.d.ts +4 -0
- package/es/modules/blocks/data-blocks/form/FormBlockInitializer.d.ts +7 -59
- package/es/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.d.ts +1 -0
- package/es/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.d.ts +1 -0
- package/es/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.d.ts +1 -0
- package/es/modules/blocks/data-blocks/form/hooks/useHiddenForInherit.d.ts +15 -0
- package/es/modules/blocks/data-blocks/form/index.d.ts +0 -1
- package/es/{application/schema-settings/context/index.d.ts → modules/blocks/filter-blocks/form/hooks/useCollectOperator.d.ts} +4 -1
- package/es/{application/hoc/index.d.ts → modules/blocks/filter-blocks/form/hooks/useFormItemProps.d.ts} +1 -1
- package/es/schema-component/antd/cascader/Cascader.d.ts +1 -1
- package/es/schema-component/antd/form-item/SchemaSettingOptions.d.ts +0 -8
- package/es/schema-component/antd/grid/Grid.style.d.ts +3 -1
- package/es/schema-initializer/items/ActionInitializer.d.ts +6 -0
- package/es/{modules/actions/add-record/CustomizeAddRecordActionInitializer.d.ts → schema-initializer/items/ActionInitializerItem.d.ts} +1 -1
- package/es/schema-initializer/items/DataBlockInitializer.d.ts +4 -0
- package/es/schema-initializer/items/index.d.ts +1 -0
- package/es/schema-initializer/utils.d.ts +3 -1
- package/es/schema-settings/SchemaSettings.d.ts +2 -10
- package/es/{modules/actions/save-record/SaveRecordActionInitializer.d.ts → schema-settings/SchemaSettingsBlockTitleItem.d.ts} +1 -1
- package/es/schema-settings/SchemaSettingsConnectDataBlocks.d.ts +10 -0
- package/es/{modules/blocks/data-blocks/form/CreateFormBlockInitializer.d.ts → schema-settings/SchemaSettingsSortField.d.ts} +1 -1
- package/es/{application/schema-settings/hooks/index.d.ts → schema-settings/SchemaSettingsTemplate.d.ts} +2 -1
- package/es/schema-settings/VariableInput/type.d.ts +1 -0
- package/es/schema-settings/index.d.ts +8 -5
- package/lib/index.js +252 -206
- package/lib/locale/en_US.js +2 -0
- package/lib/locale/es_ES.js +2 -0
- package/lib/locale/fr_FR.js +2 -0
- package/lib/locale/ja_JP.js +2 -0
- package/lib/locale/ko_KR.js +2 -0
- package/lib/locale/ru_RU.js +2 -0
- package/lib/locale/tr_TR.js +2 -0
- package/lib/locale/uk_UA.js +2 -0
- package/lib/locale/zh-CN.js +2 -0
- package/lib/locale/zh-TW.js +2 -0
- package/package.json +5 -5
- /package/es/{application/hoc → hoc}/withDynamicSchemaProps.d.ts +0 -0
|
@@ -7,15 +7,16 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
export * from './Application';
|
|
10
|
-
export * from './hooks';
|
|
11
10
|
export * from './Plugin';
|
|
11
|
+
export * from './PluginSettingsManager';
|
|
12
12
|
export * from './RouterManager';
|
|
13
|
-
export * from './utils';
|
|
14
13
|
export * from './components';
|
|
14
|
+
export { ApplicationContext } from './context';
|
|
15
|
+
export * from './globalType';
|
|
16
|
+
export * from './hooks';
|
|
15
17
|
export * from './schema-initializer';
|
|
16
18
|
export * from './schema-settings';
|
|
19
|
+
export * from './schema-settings/context/SchemaSettingItemContext';
|
|
20
|
+
export * from './schema-settings/hooks/useSchemaSettingsRender';
|
|
17
21
|
export * from './schema-toolbar';
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './hoc';
|
|
20
|
-
export { ApplicationContext } from './context';
|
|
21
|
-
export * from './globalType';
|
|
22
|
+
export * from './utils';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { SchemaInitializer } from './SchemaInitializer';
|
|
10
10
|
/**
|
|
11
|
-
* @deprecated
|
|
11
|
+
* @deprecated - 该类仅用于兼容旧版 name,不推荐在新插件中使用
|
|
12
12
|
*
|
|
13
13
|
* 因为需要把 SchemaInitializer 的 name 统一为一致的命名风格,统一之后新创建的 Schema 将
|
|
14
14
|
* 使用新的命名风格,而旧的 Schema 仍然使用旧的命名风格,这样会导致一些问题。所以需要有一个方法
|
|
@@ -28,7 +28,7 @@ export declare class CompatibleSchemaInitializer extends SchemaInitializer {
|
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* 由于旧版的 schema 的 x-initializer 的值是旧的命名风格,当其与新的命名比较时就存在问题,
|
|
31
|
-
*
|
|
31
|
+
* 这里通过将新版命名转换为旧版命名再进行比较,以解决这个问题。
|
|
32
32
|
* @param oldOrNewName x-initializer 的值
|
|
33
33
|
* @param newName 新的命名
|
|
34
34
|
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { FC } from 'react';
|
|
10
|
+
export declare const CollectOperators: FC<{
|
|
11
|
+
defaultOperators: Record<string, string>;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const useOperators: () => {
|
|
14
|
+
getOperator: (() => void) | ((name: string | number) => string);
|
|
15
|
+
getOperators: () => Record<string, string> | undefined;
|
|
16
|
+
collectOperator: (name: string | number, operator: string) => void;
|
|
17
|
+
removeOperator: (name: string | number) => void;
|
|
18
|
+
};
|
|
@@ -67,6 +67,7 @@ export declare const defaultConfigurableProperties: {
|
|
|
67
67
|
'x-component': import("react").MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
|
|
68
68
|
'x-component-props': {
|
|
69
69
|
disabled: string;
|
|
70
|
+
presetFieldsDisabledIncludes: string;
|
|
70
71
|
};
|
|
71
72
|
};
|
|
72
73
|
};
|
|
@@ -27,6 +27,8 @@ export interface AllDataBlockProps {
|
|
|
27
27
|
requestService?: UseRequestService<any>;
|
|
28
28
|
requestOptions?: UseRequestOptions;
|
|
29
29
|
dataLoadingMode?: 'auto' | 'manual';
|
|
30
|
+
/** 如果为 true,则区块会被隐藏 */
|
|
31
|
+
hidden?: boolean;
|
|
30
32
|
[index: string]: any;
|
|
31
33
|
}
|
|
32
34
|
type CollectionCreateProps = Pick<AllDataBlockProps, 'collection' | 'dataSource'>;
|
|
@@ -28,7 +28,7 @@ export declare abstract class DataSource {
|
|
|
28
28
|
get app(): import("../..").Application;
|
|
29
29
|
get key(): string;
|
|
30
30
|
get displayName(): string;
|
|
31
|
-
get status(): "
|
|
31
|
+
get status(): "loading" | "loaded" | "loading-failed" | "reloading";
|
|
32
32
|
get errorMessage(): string;
|
|
33
33
|
get collections(): import("../collection").Collection[];
|
|
34
34
|
getOptions(): DataSourceOptions;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Schema } from '@formily/react';
|
|
10
10
|
import { FilterTarget } from '../block-provider/hooks';
|
|
11
|
-
import {
|
|
11
|
+
import { CollectionFieldOptions_deprecated, Collection_deprecated, FieldOptions, useCollection_deprecated } from '../collection-manager';
|
|
12
12
|
import { DataBlock } from './FilterProvider';
|
|
13
13
|
export declare enum FilterBlockType {
|
|
14
14
|
FORM = 0,
|
|
@@ -25,10 +25,10 @@ export declare const getSupportFieldsByForeignKey: (filterBlockCollection: Retur
|
|
|
25
25
|
* @returns
|
|
26
26
|
*/
|
|
27
27
|
export declare const useSupportedBlocks: (filterBlockType: FilterBlockType) => DataBlock[];
|
|
28
|
-
export declare const transformToFilter: (values: Record<string, any>,
|
|
28
|
+
export declare const transformToFilter: (values: Record<string, any>, operators: Record<string, string>, getCollectionJoinField: (name: string) => CollectionFieldOptions_deprecated, collectionName: string) => {
|
|
29
29
|
$and: {
|
|
30
30
|
[x: string]: {
|
|
31
|
-
[x:
|
|
31
|
+
[x: string]: any;
|
|
32
32
|
};
|
|
33
33
|
}[];
|
|
34
34
|
};
|
package/es/index.d.ts
CHANGED
|
@@ -53,11 +53,11 @@ export * from './system-settings';
|
|
|
53
53
|
export * from './testUtils';
|
|
54
54
|
export * from './user';
|
|
55
55
|
export * from './variables';
|
|
56
|
-
export { withDynamicSchemaProps } from './
|
|
56
|
+
export { withDynamicSchemaProps } from './hoc/withDynamicSchemaProps';
|
|
57
57
|
export * from './modules/blocks/BlockSchemaToolbar';
|
|
58
58
|
export * from './modules/blocks/data-blocks/form';
|
|
59
59
|
export * from './modules/blocks/data-blocks/table';
|
|
60
60
|
export * from './modules/blocks/data-blocks/table-selector';
|
|
61
|
-
export * from './modules/blocks/useParentRecordCommon';
|
|
62
61
|
export * from './modules/blocks/index';
|
|
62
|
+
export * from './modules/blocks/useParentRecordCommon';
|
|
63
63
|
export { DeclareVariable } from './modules/variable/DeclareVariable';
|