@nocobase/client 2.1.0-beta.1 → 2.1.0-beta.10
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/LICENSE +201 -661
- package/README.md +79 -10
- package/es/ai/tools-manager/index.d.ts +0 -1
- package/es/collection-manager/templates/view.d.ts +11 -11
- package/es/flow/actions/afterSuccess.d.ts +9 -0
- package/es/flow/actions/index.d.ts +1 -0
- package/es/flow/components/FieldAssignValueInput.d.ts +6 -0
- package/es/flow/components/code-editor/runjsDiagnostics.d.ts +5 -2
- package/es/flow/components/filter/LinkageFilterItem.d.ts +23 -0
- package/es/flow/internal/utils/modelUtils.d.ts +4 -0
- package/es/flow/models/actions/AddChildActionModel.d.ts +1 -0
- package/es/flow/models/actions/BulkDeleteActionModel.d.ts +1 -0
- package/es/flow/models/actions/LinkActionModel.d.ts +1 -4
- package/es/flow/models/actions/LinkActionUtils.d.ts +34 -0
- package/es/flow/models/actions/UpdateRecordActionUtils.d.ts +12 -0
- package/es/flow/models/actions/joinUrlSearch.d.ts +12 -0
- package/es/flow/models/base/ActionGroupModel.d.ts +8 -0
- package/es/flow/models/base/BlockModel.d.ts +26 -0
- package/es/flow/models/base/CollectionBlockModel.d.ts +9 -27
- package/es/flow/models/base/GridModel.d.ts +1 -0
- package/es/flow/models/base/PageModel/ChildPageModel.d.ts +1 -0
- package/es/flow/models/base/PageModel/PageModel.d.ts +1 -1
- package/es/flow/models/base/PageModel/RootPageModel.d.ts +8 -0
- package/es/flow/models/blocks/details/DetailsBlockModel.d.ts +4 -0
- package/es/flow/models/blocks/filter-form/FilterFormGridModel.d.ts +12 -1
- package/es/flow/models/blocks/form/CreateFormModel.d.ts +1 -0
- package/es/flow/models/blocks/form/EditFormModel.d.ts +2 -0
- package/es/flow/models/blocks/form/FormBlockModel.d.ts +1 -0
- package/es/flow/models/blocks/form/submitValues.d.ts +8 -0
- package/es/flow/models/blocks/form/value-runtime/rules.d.ts +2 -0
- package/es/flow/models/blocks/table/TableBlockModel.d.ts +1 -23
- package/es/flow/models/fields/DisplayAssociationField/displaySubListUtils.d.ts +14 -0
- package/es/flow/utils/actionCapability.d.ts +60 -0
- package/es/flow/utils/index.d.ts +1 -0
- package/es/flow/utils/pagination.d.ts +29 -0
- package/es/index.mjs +5675 -4712
- package/es/route-switch/antd/admin-layout/index.d.ts +4 -0
- package/es/route-switch/antd/admin-layout/mobileMenuNavigation.d.ts +15 -0
- package/es/schema-component/antd/association-field/Table.d.ts +0 -57
- package/es/schema-component/antd/date-picker/DatePicker.d.ts +26 -0
- package/es/schema-settings/SchemaSettingsDefaultValue.d.ts +18 -0
- package/es/schema-settings/VariableInput/hooks/useParentIterationVariable.d.ts +3 -3
- package/lib/index.js +220 -179
- package/lib/locale/de-DE.json +3 -0
- package/lib/locale/en-US.json +3 -0
- package/lib/locale/es-ES.json +3 -0
- package/lib/locale/fr-FR.json +3 -0
- package/lib/locale/hu-HU.json +3 -0
- package/lib/locale/id-ID.json +3 -0
- package/lib/locale/it-IT.json +3 -0
- package/lib/locale/ja-JP.json +3 -0
- package/lib/locale/ko-KR.json +3 -0
- package/lib/locale/nl-NL.json +3 -0
- package/lib/locale/pt-BR.json +3 -0
- package/lib/locale/ru-RU.json +3 -0
- package/lib/locale/tr-TR.json +3 -0
- package/lib/locale/uk-UA.json +3 -0
- package/lib/locale/vi-VN.json +3 -0
- package/lib/locale/zh-CN.json +4 -1
- package/lib/locale/zh-TW.json +3 -0
- package/package.json +7 -7
|
@@ -35,4 +35,8 @@ export declare class AdminLayoutPlugin extends Plugin {
|
|
|
35
35
|
load(): Promise<void>;
|
|
36
36
|
}
|
|
37
37
|
export declare function findRouteBySchemaUid(schemaUid: string, treeArray: any[]): any;
|
|
38
|
+
export declare const shouldRenderIconInTitle: ({ depth, isMobile }: {
|
|
39
|
+
depth: number;
|
|
40
|
+
isMobile: boolean;
|
|
41
|
+
}) => boolean;
|
|
38
42
|
export declare function findFirstPageRoute(routes: NocoBaseDesktopRoute[]): any;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
export declare const MOBILE_MENU_CLOSE_DELAY_MS = 220;
|
|
10
|
+
export declare const runAfterMobileMenuClosed: ({ isMobile, closeMobileMenu, callback, delayMs, }: {
|
|
11
|
+
isMobile: boolean;
|
|
12
|
+
closeMobileMenu: () => void;
|
|
13
|
+
callback: () => void;
|
|
14
|
+
delayMs?: number;
|
|
15
|
+
}) => void;
|
|
@@ -6,61 +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
|
-
export declare const useColumnsDeepMemoized: (columns: any[]) => Pick<import("@formily/react").Stringify<{
|
|
10
|
-
[key: symbol]: any;
|
|
11
|
-
[key: `x-${string}`]: any;
|
|
12
|
-
[key: `x-${number}`]: any;
|
|
13
|
-
version?: string;
|
|
14
|
-
name?: import("@formily/react").SchemaKey;
|
|
15
|
-
title?: any;
|
|
16
|
-
description?: any;
|
|
17
|
-
default?: any;
|
|
18
|
-
readOnly?: boolean;
|
|
19
|
-
writeOnly?: boolean;
|
|
20
|
-
type?: import("@formily/react").SchemaTypes;
|
|
21
|
-
enum?: import("@formily/react").SchemaEnum<any>;
|
|
22
|
-
const?: any;
|
|
23
|
-
multipleOf?: number;
|
|
24
|
-
maximum?: number;
|
|
25
|
-
exclusiveMaximum?: number;
|
|
26
|
-
minimum?: number;
|
|
27
|
-
exclusiveMinimum?: number;
|
|
28
|
-
maxLength?: number;
|
|
29
|
-
minLength?: number;
|
|
30
|
-
pattern?: string | RegExp;
|
|
31
|
-
maxItems?: number;
|
|
32
|
-
minItems?: number;
|
|
33
|
-
uniqueItems?: boolean;
|
|
34
|
-
maxProperties?: number;
|
|
35
|
-
minProperties?: number;
|
|
36
|
-
required?: string | boolean | string[];
|
|
37
|
-
format?: string;
|
|
38
|
-
$ref?: string;
|
|
39
|
-
$namespace?: string;
|
|
40
|
-
definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
41
|
-
properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
42
|
-
items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
|
|
43
|
-
additionalItems?: import("@formily/react").Stringify<any>;
|
|
44
|
-
patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
45
|
-
additionalProperties?: import("@formily/react").Stringify<any>;
|
|
46
|
-
"x-value"?: any;
|
|
47
|
-
"x-index"?: number;
|
|
48
|
-
"x-pattern"?: any;
|
|
49
|
-
"x-display"?: any;
|
|
50
|
-
"x-validator"?: any;
|
|
51
|
-
"x-decorator"?: any;
|
|
52
|
-
"x-decorator-props"?: any;
|
|
53
|
-
"x-component"?: any;
|
|
54
|
-
"x-component-props"?: any;
|
|
55
|
-
"x-reactions"?: import("@formily/react").SchemaReactions<any>;
|
|
56
|
-
"x-content"?: any;
|
|
57
|
-
"x-data"?: any;
|
|
58
|
-
"x-visible"?: boolean;
|
|
59
|
-
"x-hidden"?: boolean;
|
|
60
|
-
"x-disabled"?: boolean;
|
|
61
|
-
"x-editable"?: boolean;
|
|
62
|
-
"x-read-only"?: boolean;
|
|
63
|
-
"x-read-pretty"?: boolean;
|
|
64
|
-
"x-compile-omitted"?: string[];
|
|
65
|
-
}>, symbol | "name" | "title" | "pattern" | "default" | "maximum" | "type" | "maxLength" | "minLength" | "readOnly" | "required" | "description" | `x-${string}` | `x-${number}` | "version" | "writeOnly" | "enum" | "const" | "multipleOf" | "exclusiveMaximum" | "minimum" | "exclusiveMinimum" | "maxItems" | "minItems" | "uniqueItems" | "maxProperties" | "minProperties" | "format" | "$ref" | "$namespace" | "definitions" | "items" | "additionalItems" | "patternProperties" | "additionalProperties">[];
|
|
66
9
|
export declare const Table: any;
|
|
@@ -10,6 +10,32 @@ import React from 'react';
|
|
|
10
10
|
interface IDatePickerProps {
|
|
11
11
|
utc?: boolean;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* 解析筛选日期组件的展示格式。
|
|
15
|
+
*
|
|
16
|
+
* 这里优先使用 schema 上显式配置的 dateFormat / format,
|
|
17
|
+
* 只有在当前 picker 没有自定义格式时才回退到默认 picker 格式。
|
|
18
|
+
*
|
|
19
|
+
* @param options 当前筛选日期组件的格式参数
|
|
20
|
+
* @returns 适用于当前 picker 的最终展示格式
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* resolveFilterPickerFormat({
|
|
24
|
+
* targetPicker: 'date',
|
|
25
|
+
* picker: 'date',
|
|
26
|
+
* dateFormat: 'MM/DD/YY',
|
|
27
|
+
* showTime: false,
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const resolveFilterPickerFormat: (options: {
|
|
32
|
+
targetPicker: string;
|
|
33
|
+
picker?: string;
|
|
34
|
+
format?: string;
|
|
35
|
+
dateFormat?: string;
|
|
36
|
+
showTime?: boolean;
|
|
37
|
+
timeFormat?: string;
|
|
38
|
+
}) => any;
|
|
13
39
|
export declare const useDatePickerContext: () => IDatePickerProps;
|
|
14
40
|
export declare const DatePickerProvider: React.Provider<IDatePickerProps>;
|
|
15
41
|
export declare const DatePicker: {
|
|
@@ -8,6 +8,24 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Schema } from '@formily/react';
|
|
10
10
|
import React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* 将 CollectionField 的 uiSchema 映射到默认值弹窗里真正渲染的字段 schema。
|
|
13
|
+
*
|
|
14
|
+
* 默认值弹窗不会直接渲染 CollectionField,而是会把它替换成实际的表单组件。
|
|
15
|
+
* 这里必须把选项字段依赖的 `enum` 也带过去,否则下拉 / 单选 / 多选在弹窗里会没有可选项。
|
|
16
|
+
*
|
|
17
|
+
* @param clonedSchema 当前字段 schema 的克隆副本
|
|
18
|
+
* @param collectionFieldUiSchema 数据表字段上的 uiSchema
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const schema = { 'x-component': 'CollectionField' };
|
|
22
|
+
* applyCollectionFieldUiSchemaToDefaultValueSchema(schema, {
|
|
23
|
+
* 'x-component': 'Select',
|
|
24
|
+
* enum: [{ label: 'Option 1', value: 'option1' }],
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare const applyCollectionFieldUiSchemaToDefaultValueSchema: (clonedSchema: Record<string, any>, collectionFieldUiSchema: Record<string, any>) => void;
|
|
11
29
|
export declare const SchemaSettingsDefaultValue: (props: {
|
|
12
30
|
fieldSchema?: Schema;
|
|
13
31
|
hideVariableButton?: boolean;
|
|
@@ -13,8 +13,8 @@ export declare const useParentObjectContext: () => {
|
|
|
13
13
|
shouldDisplayParentObject: boolean;
|
|
14
14
|
/** 变量的值 */
|
|
15
15
|
parentObjectCtx: any;
|
|
16
|
-
collectionName:
|
|
17
|
-
dataSource:
|
|
16
|
+
collectionName: any;
|
|
17
|
+
dataSource: any;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* 变量:`上级对象`
|
|
@@ -34,5 +34,5 @@ export declare const useParentObjectVariable: ({ collectionField, schema, noDisa
|
|
|
34
34
|
shouldDisplayParentObject: boolean;
|
|
35
35
|
/** 变量的值 */
|
|
36
36
|
parentObjectCtx: any;
|
|
37
|
-
collectionName:
|
|
37
|
+
collectionName: any;
|
|
38
38
|
};
|