@nocobase/client 1.0.1-alpha.1 → 1.2.0-alpha
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/schema-settings/index.d.ts +1 -0
- package/es/application/schema-settings/utils/createModalSettingsItem.d.ts +28 -0
- package/es/application/schema-settings/utils/createSelectSettingsItem.d.ts +28 -0
- package/es/application/schema-settings/utils/createSwitchSettingsItem.d.ts +25 -0
- package/es/application/schema-settings/utils/index.d.ts +11 -0
- package/es/application/schema-settings/utils/util.d.ts +21 -0
- package/es/block-provider/TemplateBlockProvider.d.ts +1 -1
- package/es/block-provider/hooks/index.d.ts +4 -1
- package/es/data-source/collection/Collection.d.ts +1 -0
- package/es/i18n/i18n.d.ts +4 -0
- package/es/index.d.ts +1 -0
- package/es/index.mjs +2320 -2115
- package/es/schema-component/antd/card-item/CardItem.d.ts +2 -2
- package/es/schema-component/antd/filter/useFilterActionProps.d.ts +1 -1
- package/es/schema-component/antd/grid/Grid.d.ts +2 -0
- package/es/schema-component/antd/input/Json.d.ts +2 -0
- package/es/schema-component/hooks/useBlockSize.d.ts +6 -1
- package/es/schema-initializer/items/DataBlockInitializer.d.ts +3 -2
- package/es/schema-initializer/items/FilterBlockInitializer.d.ts +1 -1
- package/es/schema-settings/index.d.ts +2 -0
- package/es/schema-settings/setDefaultSortingRulesSchemaSettingsItem.d.ts +10 -0
- package/es/schema-settings/setTheDataScopeSchemaSettingsItem.d.ts +10 -0
- package/lib/index.js +89 -87
- package/lib/locale/en_US.js +2 -1
- package/lib/locale/es_ES.js +2 -1
- package/lib/locale/fr_FR.js +2 -1
- package/lib/locale/ja_JP.js +3 -2
- package/lib/locale/ko_KR.js +2 -1
- package/lib/locale/pt_BR.js +2 -1
- package/lib/locale/ru_RU.js +2 -1
- package/lib/locale/tr_TR.js +2 -1
- package/lib/locale/uk_UA.js +2 -1
- package/lib/locale/zh-CN.js +3 -2
- package/lib/locale/zh-TW.js +2 -1
- package/package.json +6 -5
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { CardProps } from 'antd';
|
|
10
10
|
import React, { FC } from 'react';
|
|
11
11
|
import { IntersectionOptions } from 'react-intersection-observer';
|
|
12
|
-
interface CardItemProps extends CardProps {
|
|
12
|
+
export interface CardItemProps extends CardProps {
|
|
13
13
|
name?: string;
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
/**
|
|
@@ -21,6 +21,6 @@ interface CardItemProps extends CardProps {
|
|
|
21
21
|
element?: React.JSX.Element;
|
|
22
22
|
};
|
|
23
23
|
heightMode?: string;
|
|
24
|
+
height?: number;
|
|
24
25
|
}
|
|
25
26
|
export declare const CardItem: FC<CardItemProps>;
|
|
26
|
-
export {};
|
|
@@ -10,7 +10,7 @@ export declare const useGetFilterOptions: () => (collectionName: any, dataSource
|
|
|
10
10
|
export declare const useFilterOptions: (collectionName: string) => any[];
|
|
11
11
|
export declare const useGetFilterFieldOptions: () => (fields: any) => any[];
|
|
12
12
|
export declare const useFilterFieldOptions: (fields: any) => any[];
|
|
13
|
-
export declare const removeNullCondition: (filter: any) => any;
|
|
13
|
+
export declare const removeNullCondition: (filter: any, customFlat?: any) => any;
|
|
14
14
|
export declare const useFilterActionProps: () => {
|
|
15
15
|
options: any;
|
|
16
16
|
onSubmit(values: any): any;
|
|
@@ -6,7 +6,9 @@
|
|
|
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 React from 'react';
|
|
9
10
|
import { DndContextProps } from '../../common/dnd-context';
|
|
11
|
+
export declare const GridRowContext: React.Context<any>;
|
|
10
12
|
export declare const useGridContext: () => any;
|
|
11
13
|
export declare const useGridRowContext: () => any;
|
|
12
14
|
export interface GridProps {
|
|
@@ -11,8 +11,10 @@ import React from 'react';
|
|
|
11
11
|
export type JSONTextAreaProps = TextAreaProps & {
|
|
12
12
|
value?: string;
|
|
13
13
|
space?: number;
|
|
14
|
+
json5?: boolean;
|
|
14
15
|
};
|
|
15
16
|
export declare const Json: React.ForwardRefExoticComponent<TextAreaProps & {
|
|
16
17
|
value?: string;
|
|
17
18
|
space?: number;
|
|
19
|
+
json5?: boolean;
|
|
18
20
|
} & React.RefAttributes<React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>>>;
|
|
@@ -6,10 +6,15 @@
|
|
|
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
|
-
|
|
9
|
+
interface UseDataBlockHeightOptions {
|
|
10
|
+
removeBlockHeaderHeight?: boolean;
|
|
11
|
+
innerExtraHeight?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const useDataBlockHeight: (options?: UseDataBlockHeightOptions) => any;
|
|
10
14
|
export declare const useBlockHeight: () => any;
|
|
11
15
|
export declare const useTableSize: () => {
|
|
12
16
|
height: number;
|
|
13
17
|
width: number;
|
|
14
18
|
tableSizeRefCallback: (instance: HTMLDivElement) => void;
|
|
15
19
|
};
|
|
20
|
+
export {};
|
|
@@ -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 React from 'react';
|
|
9
|
+
import React, { FC } from 'react';
|
|
10
10
|
import { DataSource } from '../../data-source';
|
|
11
11
|
import { Collection, CollectionFieldOptions } from '../../data-source/collection/Collection';
|
|
12
12
|
import { useCollectionDataSourceItems } from '../utils';
|
|
@@ -58,5 +58,6 @@ export interface DataBlockInitializerProps {
|
|
|
58
58
|
currentText?: string;
|
|
59
59
|
/** 用于更改 Other records 的文案 */
|
|
60
60
|
otherText?: string;
|
|
61
|
+
children?: React.ReactNode;
|
|
61
62
|
}
|
|
62
|
-
export declare const DataBlockInitializer:
|
|
63
|
+
export declare const DataBlockInitializer: FC<DataBlockInitializerProps>;
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
/// <reference types="react" />
|
|
10
|
-
export declare const FilterBlockInitializer:
|
|
10
|
+
export declare const FilterBlockInitializer: import("react").FC<import("./DataBlockInitializer").DataBlockInitializerProps>;
|
|
@@ -19,6 +19,8 @@ export * from './SchemaSettingsNumberFormat';
|
|
|
19
19
|
export * from './SchemaSettingsSortingRule';
|
|
20
20
|
export * from './SchemaSettingsTemplate';
|
|
21
21
|
export * from './SchemaSettingsBlockHeightItem';
|
|
22
|
+
export * from './setDefaultSortingRulesSchemaSettingsItem';
|
|
23
|
+
export * from './setTheDataScopeSchemaSettingsItem';
|
|
22
24
|
export * from './hooks/useGetAriaLabelOfDesigner';
|
|
23
25
|
export * from './hooks/useIsAllowToSetDefaultValue';
|
|
24
26
|
export { default as useParseDataScopeFilter } from './hooks/useParseDataScopeFilter';
|
|
@@ -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 { SchemaSettingsItemType } from '../application';
|
|
10
|
+
export declare const setDefaultSortingRulesSchemaSettingsItem: SchemaSettingsItemType;
|
|
@@ -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 { SchemaSettingsItemType } from '../application';
|
|
10
|
+
export declare const setTheDataScopeSchemaSettingsItem: SchemaSettingsItemType;
|