@nocobase/client 2.0.0-alpha.9 → 2.1.0-alpha.1
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/.dumirc.ts +4 -0
- package/es/application/Application.d.ts +2 -1
- package/es/block-configs/BlockConfigsProvider.d.ts +1 -1
- package/es/block-provider/hooks/index.d.ts +2 -1
- package/es/block-provider/index.d.ts +4 -3
- package/es/collection-manager/Configuration/SetPrimaryKeyAction.d.ts +10 -0
- package/es/collection-manager/Configuration/components/CollectionCategory.d.ts +1 -1
- package/es/collection-manager/Configuration/components/CollectionFieldInterfaceTag.d.ts +1 -1
- package/es/collection-manager/Configuration/components/CollectionTemplateTag.d.ts +1 -1
- package/es/collection-manager/Configuration/components/Summary.d.ts +1 -1
- package/es/collection-manager/Configuration/interfaces.d.ts +1 -0
- package/es/collection-manager/action-hooks.d.ts +1 -1
- package/es/collection-manager/interfaces/color.d.ts +0 -1
- package/es/collection-manager/interfaces/index.d.ts +1 -0
- package/es/collection-manager/interfaces/input.d.ts +1 -0
- package/es/collection-manager/interfaces/integer.d.ts +1 -0
- package/es/collection-manager/interfaces/nanoid.d.ts +1 -0
- package/es/collection-manager/interfaces/number.d.ts +44 -0
- package/es/collection-manager/interfaces/snowflake-id.d.ts +117 -0
- package/es/collection-manager/interfaces/uuid.d.ts +1 -0
- package/es/collection-manager/templates/properties/index.d.ts +1 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +1 -0
- package/es/data-source/data-source/DataSourceManager.d.ts +1 -0
- package/es/flow/FlowModelRepository.d.ts +4 -0
- package/es/flow/FlowPage.d.ts +2 -1
- package/es/flow/actions/columnFixed.d.ts +1 -2
- package/es/flow/actions/displayFieldComponent.d.ts +1 -1
- package/es/flow/actions/index.d.ts +5 -1
- package/es/flow/actions/linkageRules.d.ts +4 -0
- package/es/flow/actions/navigateToURL.d.ts +9 -0
- package/es/flow/actions/openView.d.ts +2 -13
- package/es/flow/actions/setTargetDataScope.d.ts +10 -0
- package/es/flow/actions/showMessage.d.ts +9 -0
- package/es/flow/actions/showNotification.d.ts +9 -0
- package/es/flow/actions/titleField.d.ts +0 -1
- package/es/flow/common/Liquid.d.ts +33 -0
- package/es/flow/common/Markdown/Display.d.ts +9 -0
- package/es/flow/common/Markdown/Edit.d.ts +23 -0
- package/es/flow/common/Markdown/Markdown.d.ts +24 -0
- package/es/flow/common/Markdown/style.d.ts +10 -0
- package/es/flow/common/Markdown/useCDN.d.ts +9 -0
- package/es/flow/components/BlockItemCard.d.ts +2 -0
- package/es/flow/components/FieldAssignValueInput.d.ts +1 -0
- package/es/flow/components/code-editor/extension/CodeEditorExtension.d.ts +14 -0
- package/es/flow/components/code-editor/extension/index.d.ts +9 -0
- package/es/flow/components/code-editor/index.d.ts +5 -4
- package/es/flow/components/code-editor/jsxCompletion.d.ts +10 -0
- package/es/flow/components/code-editor/linter.d.ts +2 -0
- package/es/flow/components/code-editor/panels/RightExtra.d.ts +3 -1
- package/es/flow/components/code-editor/types.d.ts +16 -0
- package/es/flow/components/filter/FilterContainer.d.ts +4 -4
- package/es/flow/components/filter/FilterGroup.d.ts +2 -1
- package/es/flow/components/filter/LinkageFilterItem.d.ts +1 -0
- package/es/flow/components/filter/VariableFilterItem.d.ts +4 -1
- package/es/flow/components/index.d.ts +1 -1
- package/es/flow/components/placeholders/BlockPlaceholder.d.ts +1 -0
- package/es/flow/flows/editMarkdownFlow.d.ts +10 -0
- package/es/flow/getViewDiffAndUpdateHidden.d.ts +1 -0
- package/es/flow/index.d.ts +5 -0
- package/es/flow/internal/utils/associationValueCoercion.d.ts +15 -0
- package/es/flow/internal/utils/enumOptionsUtils.d.ts +7 -7
- package/es/flow/internal/utils/operatorSchemaHelper.d.ts +15 -0
- package/es/flow/internal/utils/rebuildFieldSubModel.d.ts +33 -0
- package/es/flow/models/actions/AddChildActionModel.d.ts +15 -0
- package/es/flow/models/actions/AddNewActionModel.d.ts +1 -0
- package/es/flow/models/actions/EditActionModel.d.ts +1 -0
- package/es/flow/models/actions/ExpandCollapseActionModel.d.ts +19 -0
- package/es/flow/models/actions/FilterActionModel.d.ts +5 -59
- package/es/flow/models/actions/JSActionModel.d.ts +13 -0
- package/es/flow/models/actions/LinkActionModel.d.ts +18 -0
- package/es/flow/models/actions/UpdateRecordActionModel.d.ts +6 -0
- package/es/flow/models/actions/index.d.ts +4 -0
- package/es/flow/models/base/ActionModel.d.ts +15 -5
- package/es/flow/models/base/BlockModel.d.ts +4 -1
- package/es/flow/models/base/CollectionBlockModel.d.ts +12 -25
- package/es/flow/models/base/FieldModel.d.ts +6 -0
- package/es/flow/models/base/GridModel.d.ts +27 -4
- package/es/flow/models/base/PageModel/ChildPageModel.d.ts +1 -0
- package/es/flow/models/base/PageModel/PageModel.d.ts +3 -0
- package/es/flow/models/base/PageModel/PageTabModel.d.ts +2 -0
- package/es/flow/models/base/PageModel/RootPageModel.d.ts +2 -0
- package/es/flow/models/blocks/details/DetailsBlockModel.d.ts +1 -0
- package/es/flow/models/blocks/details/DetailsCustomItemModel.d.ts +2 -2
- package/es/flow/models/blocks/details/DetailsGridModel.d.ts +1 -0
- package/es/flow/models/blocks/details/DetailsItemModel.d.ts +2 -2
- package/es/flow/models/blocks/details/DetailsJSFieldItemModel.d.ts +2 -2
- package/es/flow/models/blocks/filter-form/FilterFormBlockModel.d.ts +4 -0
- package/es/flow/models/blocks/filter-form/FilterFormGridModel.d.ts +1 -0
- package/es/flow/models/blocks/filter-form/FilterFormItemModel.d.ts +5 -4
- package/es/flow/models/blocks/filter-form/FilterFormSubmitActionModel.d.ts +1 -1
- package/es/flow/models/blocks/filter-form/fields/FilterFormCustomFieldModel.d.ts +2 -1
- package/es/flow/models/blocks/filter-manager/flow-actions/customizeFilterRender.d.ts +10 -0
- package/es/flow/models/blocks/filter-manager/flow-actions/index.d.ts +2 -0
- package/es/flow/models/blocks/filter-manager/flow-actions/operatorComponentProps.d.ts +10 -0
- package/es/flow/models/blocks/form/CreateFormModel.d.ts +1 -0
- package/es/flow/models/blocks/form/EditFormModel.d.ts +1 -0
- package/es/flow/models/blocks/form/FormBlockModel.d.ts +11 -1
- package/es/flow/models/blocks/form/FormGridModel.d.ts +1 -0
- package/es/flow/models/blocks/form/FormItemModel.d.ts +1 -1
- package/es/flow/models/blocks/form/FormJSFieldItemModel.d.ts +1 -1
- package/es/flow/models/blocks/form/submitHandler.d.ts +9 -0
- package/es/flow/models/blocks/js-block/JSBlock.d.ts +1 -0
- package/es/flow/models/blocks/table/JSColumnModel.d.ts +0 -1
- package/es/flow/models/blocks/table/TableActionsColumnModel.d.ts +0 -1
- package/es/flow/models/blocks/table/TableBlockModel.d.ts +14 -1
- package/es/flow/models/blocks/table/TableColumnModel.d.ts +9 -2
- package/es/flow/models/blocks/table/TableJSFieldItemModel.d.ts +2 -2
- package/es/flow/models/blocks/table/utils.d.ts +8 -0
- package/es/flow/models/blocks/utils/transformChildrenToJS.d.ts +42 -0
- package/es/flow/models/fields/AssociationFieldModel/AssociationFieldModel.d.ts +1 -0
- package/es/flow/models/fields/AssociationFieldModel/CascadeSelectFieldModel.d.ts +29 -0
- package/es/flow/models/fields/AssociationFieldModel/RecordPickerFieldModel.d.ts +2 -0
- package/es/flow/models/fields/AssociationFieldModel/RecordSelectFieldModel.d.ts +8 -2
- package/es/flow/models/fields/AssociationFieldModel/SubFormFieldModel.d.ts +7 -0
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.d.ts +3 -3
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +2 -0
- package/es/flow/models/fields/AssociationFieldModel/index.d.ts +1 -0
- package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +49 -0
- package/es/flow/models/fields/ClickableFieldModel.d.ts +3 -2
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubItemFieldModel.d.ts +1 -0
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubListFieldModel.d.ts +1 -0
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubTableFieldModel.d.ts +3 -1
- package/es/flow/models/fields/DisplayEnumFieldModel.d.ts +1 -0
- package/es/flow/models/fields/DisplayJSONFieldModel.d.ts +3 -3
- package/es/flow/models/fields/DisplayNumberFieldModel.d.ts +4 -2
- package/es/flow/models/fields/DisplayTextFieldModel.d.ts +1 -1
- package/es/flow/models/fields/JSItemModel.d.ts +0 -1
- package/es/flow/models/fields/JsonFieldModel.d.ts +1 -0
- package/es/flow/models/fields/MarkdownItemModel.d.ts +1 -0
- package/es/flow/models/fields/TimeFieldModel.d.ts +0 -1
- 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/{components/JsonInput.d.ts → models/fields/mobile-components/MobileSelect.d.ts} +1 -1
- package/es/flow/models/fields/mobile-components/MobileTimePicker.d.ts +10 -0
- package/es/flow/resolveViewParamsToViewList.d.ts +4 -2
- package/es/flow/{components/decorator → utils}/index.d.ts +1 -1
- package/es/global-theme/type.d.ts +1 -0
- package/es/hooks/useFullscreenOverlay.d.ts +20 -0
- package/es/index.d.ts +1 -0
- package/es/index.mjs +28903 -22307
- package/es/modules/menu/FlowPageMenuItem.d.ts +1 -3
- package/es/modules/menu/index.d.ts +9 -0
- package/es/nocobase-buildin-plugin/plugins/LocalePlugin.d.ts +0 -1
- package/es/schema-component/antd/association-select/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/filter/FilterItem.d.ts +1 -1
- package/es/schema-component/antd/input/EllipsisWithTooltip.d.ts +1 -0
- package/es/schema-component/antd/linkageFilter/LinkageFilterItem.d.ts +1 -1
- package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +1 -3
- package/es/schema-component/antd/table/Table.Column.ActionBar.d.ts +1 -1
- package/es/schema-component/antd/table/Table.Void.d.ts +1 -0
- package/es/schema-component/antd/table-v2/Table.Column.ActionBar.d.ts +1 -1
- package/es/schema-component/antd/upload/shared.d.ts +1 -1
- package/es/schema-settings/LinkageRules/LinkageRuleAction.d.ts +2 -2
- package/es/schema-settings/LinkageRules/components/BlockLinkageRuleAction.d.ts +1 -1
- package/es/schema-settings/LinkageRules/components/FieldStyleLinkageRuleAction.d.ts +1 -1
- package/lib/index-C3fHjsMw-CDWZlvuM.js +2237 -0
- package/lib/index.js +453 -239
- package/lib/locale/cron/zh-CN.json +33 -0
- package/lib/locale/cron/zh-TW.json +33 -0
- package/lib/locale/de-DE.json +1545 -0
- package/lib/locale/en-US.json +1553 -0
- package/lib/locale/es-ES.json +1573 -0
- package/lib/locale/fr-FR.json +1549 -0
- package/lib/locale/hu-HU.json +1545 -0
- package/lib/locale/id-ID.json +1546 -0
- package/lib/locale/{it-IT.js → it-IT.json} +1496 -1054
- package/lib/locale/ja-JP.json +1564 -0
- package/lib/locale/ko-KR.json +1558 -0
- package/lib/locale/{nl-NL.js → nl-NL.json} +1493 -1018
- package/lib/locale/pt-BR.json +1617 -0
- package/lib/locale/ru-RU.json +1551 -0
- package/lib/locale/tr-TR.json +1553 -0
- package/lib/locale/uk-UA.json +1570 -0
- package/lib/locale/vi-VN.json +1545 -0
- package/lib/locale/zh-CN.json +1571 -0
- package/lib/locale/zh-TW.json +1549 -0
- package/package.json +10 -7
- package/es/flow/components/decorator/injectable.d.ts +0 -19
- package/lib/index-C3fHjsMw-BTweCpKS.js +0 -2023
- package/lib/locale/cron/zh-CN.js +0 -33
- package/lib/locale/cron/zh-TW.js +0 -33
- package/lib/locale/de-DE.js +0 -904
- package/lib/locale/en-US.js +0 -1001
- package/lib/locale/es-ES.js +0 -824
- package/lib/locale/fr-FR.js +0 -844
- package/lib/locale/ja-JP.js +0 -1062
- package/lib/locale/ko-KR.js +0 -935
- package/lib/locale/pt-BR.js +0 -804
- package/lib/locale/ru-RU.js +0 -633
- package/lib/locale/tr-TR.js +0 -631
- package/lib/locale/uk-UA.js +0 -847
- package/lib/locale/zh-CN.js +0 -1436
- package/lib/locale/zh-TW.js +0 -938
- /package/es/flow/{internal/utils → utils}/blockUtils.d.ts +0 -0
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
import { CollectionField, MultiRecordResource } from '@nocobase/flow-engine';
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { AssociationFieldModel } from './AssociationFieldModel';
|
|
12
|
-
export declare function
|
|
13
|
-
|
|
12
|
+
export declare function CreateContent({ model, toOne }: {
|
|
13
|
+
model: any;
|
|
14
|
+
toOne?: boolean;
|
|
15
|
+
}): React.JSX.Element;
|
|
14
16
|
export declare class RecordSelectFieldModel extends AssociationFieldModel {
|
|
15
17
|
resource: MultiRecordResource;
|
|
16
18
|
get collectionField(): CollectionField;
|
|
@@ -21,5 +23,9 @@ export declare class RecordSelectFieldModel extends AssociationFieldModel {
|
|
|
21
23
|
setDataSource(dataSource: any): void;
|
|
22
24
|
getDataSource(): any;
|
|
23
25
|
getFilterValue(): any;
|
|
26
|
+
protected onMount(): void;
|
|
27
|
+
set onModalAddClick(fn: any);
|
|
28
|
+
set onDropdownAddClick(fn: any);
|
|
29
|
+
change(value: any): void;
|
|
24
30
|
render(): React.JSX.Element;
|
|
25
31
|
}
|
|
@@ -15,11 +15,18 @@ export declare const ObjectNester: (props: any) => React.JSX.Element;
|
|
|
15
15
|
export declare class SubFormFieldModel extends FormAssociationFieldModel {
|
|
16
16
|
updateAssociation: boolean;
|
|
17
17
|
onInit(options: any): void;
|
|
18
|
+
onMount(): void;
|
|
18
19
|
render(): React.JSX.Element;
|
|
19
20
|
}
|
|
20
21
|
export declare class SubFormListFieldModel extends FormAssociationFieldModel {
|
|
22
|
+
selectedRows: {
|
|
23
|
+
value: any[];
|
|
24
|
+
};
|
|
21
25
|
updateAssociation: boolean;
|
|
22
26
|
onInit(options: any): void;
|
|
27
|
+
set onSelectExitRecordClick(fn: any);
|
|
28
|
+
change(): void;
|
|
29
|
+
onMount(): void;
|
|
23
30
|
render(): React.JSX.Element;
|
|
24
31
|
}
|
|
25
32
|
export {};
|
package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.d.ts
CHANGED
|
@@ -11,13 +11,13 @@ import { TableColumnProps } from 'antd';
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { SubTableFieldModel } from '.';
|
|
13
13
|
import { FieldModel } from '../../../base';
|
|
14
|
-
export interface
|
|
14
|
+
export interface SubTableColumnModelStructure {
|
|
15
15
|
parent: SubTableFieldModel;
|
|
16
16
|
subModels: {
|
|
17
17
|
field: FieldModel;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
export declare class SubTableColumnModel<T extends
|
|
20
|
+
export declare class SubTableColumnModel<T extends SubTableColumnModelStructure = SubTableColumnModelStructure> extends EditableItemModel<T> {
|
|
21
21
|
static renderMode: ModelRenderMode;
|
|
22
22
|
renderHiddenInConfig(): React.JSX.Element;
|
|
23
23
|
static defineChildren(ctx: FlowModelContext): any;
|
|
@@ -25,5 +25,5 @@ export declare class SubTableColumnModel<T extends SubTableColumnModelStructor =
|
|
|
25
25
|
onInit(options: any): void;
|
|
26
26
|
afterAddAsSubModel(): Promise<void>;
|
|
27
27
|
getColumnProps(): TableColumnProps;
|
|
28
|
-
|
|
28
|
+
renderItem(): any;
|
|
29
29
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
onCompositionStart?: (e: any) => void;
|
|
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;
|
|
34
|
+
allowCreate?: boolean;
|
|
35
|
+
allowEdit?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface LabelByFieldProps {
|
|
38
|
+
option: AssociationOption;
|
|
39
|
+
fieldNames: AssociationFieldNames;
|
|
40
|
+
}
|
|
41
|
+
export declare function LabelByField(props: Readonly<LabelByFieldProps>): React.JSX.Element;
|
|
42
|
+
export declare function toSelectValue(record: AssociationOption | AssociationOption[] | undefined, fieldNames: AssociationFieldNames, multiple?: boolean): {
|
|
43
|
+
label: React.JSX.Element;
|
|
44
|
+
value: any;
|
|
45
|
+
} | {
|
|
46
|
+
label: React.JSX.Element;
|
|
47
|
+
value: any;
|
|
48
|
+
}[];
|
|
49
|
+
export declare function resolveOptions(options: AssociationOption[] | undefined, value: AssociationOption | AssociationOption[] | undefined, isMultiple: boolean): AssociationOption[];
|
|
@@ -9,14 +9,15 @@
|
|
|
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
|
/**
|
|
15
16
|
* 点击打开行为
|
|
16
17
|
*/
|
|
17
18
|
onClick(event: any, currentRecord: any): void;
|
|
18
|
-
renderComponent(value: any): any;
|
|
19
|
-
renderInDisplayStyle(value: any, record?: any): React.JSX.Element;
|
|
19
|
+
renderComponent(value: any, wrap?: any): any;
|
|
20
|
+
renderInDisplayStyle(value: any, record?: any, isToMany?: any, wrap?: any): React.JSX.Element;
|
|
20
21
|
/**
|
|
21
22
|
* 基类统一渲染逻辑
|
|
22
23
|
*/
|
|
@@ -9,10 +9,12 @@
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { FieldModel } from '../../base';
|
|
11
11
|
export declare class DisplaySubTableFieldModel extends FieldModel {
|
|
12
|
+
disableTitleField: boolean;
|
|
13
|
+
defaultOverflowMode: string;
|
|
12
14
|
get collection(): any;
|
|
13
15
|
get collectionField(): any;
|
|
14
16
|
onInit(options: any): void;
|
|
15
17
|
afterAddAsSubModel(): Promise<void>;
|
|
16
|
-
|
|
18
|
+
getBaseColumns(): any[];
|
|
17
19
|
render(): React.JSX.Element;
|
|
18
20
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import {
|
|
11
|
-
export declare class DisplayJSONFieldModel extends
|
|
12
|
-
|
|
10
|
+
import { DisplayTitleFieldModel } from './DisplayTitleFieldModel';
|
|
11
|
+
export declare class DisplayJSONFieldModel extends DisplayTitleFieldModel {
|
|
12
|
+
renderComponent(value: any): React.JSX.Element;
|
|
13
13
|
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { ClickableFieldModel } from './ClickableFieldModel';
|
|
11
|
+
export declare function formatNumber(props: any): any;
|
|
11
12
|
interface displayNumberProps {
|
|
12
13
|
formatStyle?: 'normal' | 'scientifix';
|
|
13
14
|
unitConversion?: number;
|
|
@@ -19,13 +20,14 @@ interface displayNumberProps {
|
|
|
19
20
|
* @default '0.00'
|
|
20
21
|
*/
|
|
21
22
|
separator?: '0,0.00' | '0.0,00' | '0 0,00' | '0.00';
|
|
22
|
-
|
|
23
|
+
numberStep?: number;
|
|
23
24
|
value?: any;
|
|
24
25
|
addonBefore?: React.ReactNode;
|
|
25
26
|
addonAfter?: React.ReactNode;
|
|
26
27
|
}
|
|
27
|
-
export declare const
|
|
28
|
+
export declare const getDisplayNumber: (props: displayNumberProps) => any;
|
|
28
29
|
export declare class DisplayNumberFieldModel extends ClickableFieldModel {
|
|
29
30
|
renderComponent(value: any): React.JSX.Element;
|
|
30
31
|
}
|
|
32
|
+
export declare const UnitConversion: () => React.JSX.Element;
|
|
31
33
|
export {};
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { ClickableFieldModel } from './ClickableFieldModel';
|
|
11
11
|
export declare class DisplayTextFieldModel extends ClickableFieldModel {
|
|
12
|
-
renderComponent(value: any): React.JSX.Element;
|
|
12
|
+
renderComponent(value: any, wrap: any): React.JSX.Element;
|
|
13
13
|
}
|
|
@@ -15,7 +15,6 @@ import { CommonItemModel } from '../base/CommonItemModel';
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class JSItemModel extends CommonItemModel {
|
|
17
17
|
private _offResourceRefresh?;
|
|
18
|
-
private _lastPage?;
|
|
19
18
|
private _mountedOnce;
|
|
20
19
|
getInputArgs(): {};
|
|
21
20
|
render(): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FieldModel } from '../base';
|
|
3
|
+
export declare const JsonInput: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
|
|
3
4
|
export declare class JsonFieldModel extends FieldModel {
|
|
4
5
|
render(): React.JSX.Element;
|
|
5
6
|
}
|
|
@@ -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 const MobileTimePicker: (props: any) => React.JSX.Element;
|
|
@@ -9,10 +9,12 @@
|
|
|
9
9
|
import { FlowEngine, FlowModel, ViewParam } from '@nocobase/flow-engine';
|
|
10
10
|
export interface ViewItem {
|
|
11
11
|
params: ViewParam;
|
|
12
|
-
|
|
12
|
+
modelUid?: string;
|
|
13
|
+
model?: FlowModel;
|
|
13
14
|
hidden: {
|
|
14
15
|
value: boolean;
|
|
15
16
|
};
|
|
16
17
|
index: number;
|
|
17
18
|
}
|
|
18
|
-
export declare function resolveViewParamsToViewList(flowEngine: FlowEngine, viewParams: ViewParam[], routeModel: FlowModel):
|
|
19
|
+
export declare function resolveViewParamsToViewList(flowEngine: FlowEngine, viewParams: ViewParam[], routeModel: FlowModel): ViewItem[];
|
|
20
|
+
export declare function updateViewListHidden(viewItems: ViewItem[]): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 React from 'react';
|
|
10
|
+
type UseFullscreenOverlayResult = {
|
|
11
|
+
isFullscreen: boolean;
|
|
12
|
+
toggleFullscreen: () => void;
|
|
13
|
+
enterFullscreen: () => void;
|
|
14
|
+
exitFullscreen: () => void;
|
|
15
|
+
placeholderRef: React.RefCallback<HTMLDivElement>;
|
|
16
|
+
placeholderStyle: React.CSSProperties;
|
|
17
|
+
container: HTMLElement | null;
|
|
18
|
+
};
|
|
19
|
+
export declare function useFullscreenOverlay(): UseFullscreenOverlayResult;
|
|
20
|
+
export {};
|
package/es/index.d.ts
CHANGED
|
@@ -78,3 +78,4 @@ export { languageCodes } from './locale';
|
|
|
78
78
|
export { CollectionFieldUISchemaProvider, IsInNocoBaseRecursionFieldContext, NocoBaseRecursionField, RefreshComponentProvider, useRefreshFieldSchema, } from './formily/NocoBaseRecursionField';
|
|
79
79
|
export { FieldModelRenderer } from '@nocobase/flow-engine';
|
|
80
80
|
export { transformFilter } from '@nocobase/utils/client';
|
|
81
|
+
export * from './modules/menu';
|