@nocobase/client 2.0.0-beta.21 → 2.0.0-beta.22
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/flow/models/base/PageModel/PageModel.d.ts +8 -0
- package/es/flow/models/blocks/filter-form/FilterFormItemModel.d.ts +2 -0
- package/es/flow/models/blocks/filter-form/fields/FilterFormRecordSelectFieldModel.d.ts +12 -0
- package/es/flow/models/blocks/filter-form/fields/index.d.ts +1 -0
- package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +1 -0
- package/es/index.mjs +12989 -12800
- package/es/route-switch/antd/admin-layout/index.d.ts +1 -1
- package/lib/index.js +279 -279
- package/lib/locale/de-DE.json +2 -0
- package/lib/locale/en-US.json +2 -0
- package/lib/locale/es-ES.json +2 -0
- package/lib/locale/fr-FR.json +2 -0
- package/lib/locale/hu-HU.json +2 -0
- package/lib/locale/id-ID.json +2 -0
- package/lib/locale/it-IT.json +2 -0
- package/lib/locale/ja-JP.json +2 -0
- package/lib/locale/ko-KR.json +2 -0
- package/lib/locale/nl-NL.json +2 -0
- package/lib/locale/pt-BR.json +2 -0
- package/lib/locale/ru-RU.json +2 -0
- package/lib/locale/tr-TR.json +2 -0
- package/lib/locale/uk-UA.json +2 -0
- package/lib/locale/vi-VN.json +2 -0
- package/lib/locale/zh-CN.json +2 -0
- package/lib/locale/zh-TW.json +2 -0
- package/package.json +6 -6
|
@@ -25,11 +25,19 @@ export declare class PageModel extends FlowModel<PageModelStructure> {
|
|
|
25
25
|
private lastSeenEmitterViewActivatedVersion;
|
|
26
26
|
private dirtyRefreshScheduled;
|
|
27
27
|
private unmounted;
|
|
28
|
+
private documentTitleUpdateVersion;
|
|
28
29
|
private getActiveTabKey;
|
|
29
30
|
private scheduleActiveLifecycleRefresh;
|
|
30
31
|
onMount(): void;
|
|
31
32
|
protected onUnmount(): void;
|
|
32
33
|
invokeTabModelLifecycleMethod(tabActiveKey: string, method: 'onActive' | 'onInactive'): void;
|
|
34
|
+
/**
|
|
35
|
+
* Resolve configured document title template and update browser tab title.
|
|
36
|
+
* Priority:
|
|
37
|
+
* 1) page without tabs: page.documentTitle > page title
|
|
38
|
+
* 2) page with tabs: activeTab.documentTitle > active tab name
|
|
39
|
+
*/
|
|
40
|
+
updateDocumentTitle(preferredActiveTabKey?: string, retryCount?: number): Promise<void>;
|
|
33
41
|
createPageTabModelOptions: () => CreateModelOptions;
|
|
34
42
|
mapTabs(): {
|
|
35
43
|
key: string;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { FilterableItemModel, FlowModelContext } from '@nocobase/flow-engine';
|
|
10
10
|
import React from 'react';
|
|
11
|
+
import { FieldModel } from '../../base';
|
|
11
12
|
import { FilterFormFieldModel } from './fields';
|
|
12
13
|
export declare class FilterFormItemModel extends FilterableItemModel<{
|
|
13
14
|
subModels: {
|
|
@@ -76,6 +77,7 @@ export declare class FilterFormItemModel extends FilterableItemModel<{
|
|
|
76
77
|
* @returns
|
|
77
78
|
*/
|
|
78
79
|
getFilterValue(): any;
|
|
80
|
+
normalizeAssociationFilterValue(value: any, fieldModel: FieldModel): any;
|
|
79
81
|
getDefaultValue(): any;
|
|
80
82
|
/**
|
|
81
83
|
* 处理回车事件
|
|
@@ -0,0 +1,12 @@
|
|
|
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 { RecordSelectFieldModel } from '../../../fields/AssociationFieldModel';
|
|
10
|
+
export declare class FilterFormRecordSelectFieldModel extends RecordSelectFieldModel {
|
|
11
|
+
onInit(options: any): void;
|
|
12
|
+
}
|
|
@@ -21,6 +21,7 @@ export interface LazySelectProps extends Omit<SelectProps<any>, 'mode' | 'option
|
|
|
21
21
|
value?: AssociationOption | AssociationOption[];
|
|
22
22
|
multiple?: boolean;
|
|
23
23
|
allowMultiple?: boolean;
|
|
24
|
+
keepDropdownOpenOnSelect?: boolean;
|
|
24
25
|
options?: AssociationOption[];
|
|
25
26
|
onChange: (option: AssociationOption | AssociationOption[]) => void;
|
|
26
27
|
onDropdownVisibleChange?: (open: boolean) => void;
|