@nocobase/plugin-kanban 2.3.0-alpha.1 → 2.3.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.
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import { CollectionBlockModel } from '@nocobase/client-v2';
|
|
10
|
-
import { MultiRecordResource } from '@nocobase/flow-engine';
|
|
10
|
+
import { MultiRecordResource, type FlowModel } from '@nocobase/flow-engine';
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { type KanbanGroupOption } from './utils';
|
|
13
13
|
type KanbanPopupActionOptions = {
|
|
14
14
|
persist?: boolean;
|
|
15
15
|
};
|
|
16
|
+
type KanbanPopupActionKey = 'cardViewAction' | 'quickCreateAction';
|
|
16
17
|
declare class KanbanBlockResource extends MultiRecordResource {
|
|
17
18
|
refresh(): Promise<void>;
|
|
18
19
|
}
|
|
@@ -67,12 +68,12 @@ export declare class KanbanBlockModel extends CollectionBlockModel<{
|
|
|
67
68
|
getEffectiveSortFieldName(groupFieldOrName?: any): any;
|
|
68
69
|
getDragEnabled(): boolean;
|
|
69
70
|
getCardOpenMode(): "dialog" | "embed" | "drawer";
|
|
70
|
-
getCardPopupSize(): "
|
|
71
|
+
getCardPopupSize(): "large" | "medium" | "small";
|
|
71
72
|
getCardPopupTemplateUid(): string;
|
|
72
73
|
getCardPopupPageModelClass(): any;
|
|
73
74
|
getQuickCreateEnabled(): boolean;
|
|
74
75
|
getPopupMode(): "dialog" | "embed" | "drawer";
|
|
75
|
-
getPopupSize(): "
|
|
76
|
+
getPopupSize(): "large" | "medium" | "small";
|
|
76
77
|
getPopupTemplateUid(): string;
|
|
77
78
|
getPopupPageModelClass(): any;
|
|
78
79
|
getPopupTargetUid(): string;
|
|
@@ -88,7 +89,7 @@ export declare class KanbanBlockModel extends CollectionBlockModel<{
|
|
|
88
89
|
renderActions(): React.JSX.Element;
|
|
89
90
|
getPopupActionUid(): any;
|
|
90
91
|
getQuickCreateActionUid(): any;
|
|
91
|
-
loadPopupAction(actionKey:
|
|
92
|
+
loadPopupAction(actionKey: KanbanPopupActionKey): Promise<FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
|
|
92
93
|
syncPopupAction(action: any, options: {
|
|
93
94
|
mode: string;
|
|
94
95
|
size: string;
|
|
@@ -97,11 +98,16 @@ export declare class KanbanBlockModel extends CollectionBlockModel<{
|
|
|
97
98
|
pageModelClass?: string;
|
|
98
99
|
dataSourceKey?: string;
|
|
99
100
|
collectionName?: string;
|
|
101
|
+
popupTemplateParams?: Record<string, any>;
|
|
100
102
|
}, syncOptions?: KanbanPopupActionOptions): Promise<void>;
|
|
101
103
|
syncCardViewAction(action: any, options?: KanbanPopupActionOptions): Promise<void>;
|
|
102
|
-
|
|
104
|
+
private initializePopupAction;
|
|
105
|
+
private getOrInitializePopupAction;
|
|
106
|
+
private persistNewPopupAction;
|
|
107
|
+
private runPopupActionOperation;
|
|
108
|
+
ensureCardViewAction(options?: KanbanPopupActionOptions): Promise<FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
|
|
103
109
|
getQuickCreateAction(): any;
|
|
104
|
-
ensureQuickCreateAction(options?: KanbanPopupActionOptions): Promise<
|
|
110
|
+
ensureQuickCreateAction(options?: KanbanPopupActionOptions): Promise<FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
|
|
105
111
|
syncQuickCreateAction(action: any, options?: KanbanPopupActionOptions): Promise<void>;
|
|
106
112
|
openEmptyPopupShell(options: {
|
|
107
113
|
mode?: string;
|
|
@@ -44,7 +44,7 @@ export declare const getDefaultKanbanColor: (index: number, fallback?: string) =
|
|
|
44
44
|
export declare const resolveKanbanColorValue: (color?: string) => string;
|
|
45
45
|
export declare const toKanbanAlphaColor: (color?: string, alpha?: number) => string;
|
|
46
46
|
export declare const normalizeKanbanCardOpenMode: (value?: string) => "dialog" | "embed" | "drawer";
|
|
47
|
-
export declare const normalizeKanbanPopupSize: (value?: string) => "
|
|
47
|
+
export declare const normalizeKanbanPopupSize: (value?: string) => "large" | "medium" | "small";
|
|
48
48
|
export declare const isKanbanGroupField: (field: any) => boolean;
|
|
49
49
|
export declare const isAssociationGroupField: (field: any) => boolean;
|
|
50
50
|
export declare const isMultipleGroupField: (field: any) => boolean;
|
package/dist/externalVersion.js
CHANGED
|
@@ -11,19 +11,19 @@ module.exports = {
|
|
|
11
11
|
"@ant-design/icons": "5.6.1",
|
|
12
12
|
"@formily/react": "2.3.7",
|
|
13
13
|
"@formily/shared": "2.3.7",
|
|
14
|
-
"@nocobase/client": "2.3.0-
|
|
14
|
+
"@nocobase/client": "2.3.0-beta.10",
|
|
15
15
|
"antd": "5.24.2",
|
|
16
16
|
"react": "18.2.0",
|
|
17
17
|
"react-i18next": "11.18.6",
|
|
18
18
|
"@emotion/css": "11.13.0",
|
|
19
19
|
"@formily/antd-v5": "1.2.3",
|
|
20
20
|
"@formily/core": "2.3.7",
|
|
21
|
-
"@nocobase/utils": "2.3.0-
|
|
22
|
-
"@nocobase/flow-engine": "2.3.0-
|
|
21
|
+
"@nocobase/utils": "2.3.0-beta.10",
|
|
22
|
+
"@nocobase/flow-engine": "2.3.0-beta.10",
|
|
23
23
|
"lodash": "4.18.1",
|
|
24
|
-
"@nocobase/client-v2": "2.3.0-
|
|
25
|
-
"@nocobase/server": "2.3.0-
|
|
26
|
-
"@nocobase/test": "2.3.0-
|
|
24
|
+
"@nocobase/client-v2": "2.3.0-beta.10",
|
|
25
|
+
"@nocobase/server": "2.3.0-beta.10",
|
|
26
|
+
"@nocobase/test": "2.3.0-beta.10",
|
|
27
27
|
"antd-style": "3.7.1",
|
|
28
28
|
"@dnd-kit/core": "6.1.0",
|
|
29
29
|
"@dnd-kit/sortable": "7.0.2"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-kanban",
|
|
3
|
-
"version": "2.3.0-
|
|
3
|
+
"version": "2.3.0-beta.10",
|
|
4
4
|
"main": "dist/server/index.js",
|
|
5
5
|
"homepage": "https://docs.nocobase.com/handbook/block-kanban",
|
|
6
6
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/block-kanban",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@dnd-kit/sortable": "^7.0.0",
|
|
24
24
|
"react-intersection-observer": "^9.8.1"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "7aa3dce6cf3201752882f7012c72997898015d89",
|
|
27
27
|
"keywords": [
|
|
28
28
|
"Blocks"
|
|
29
29
|
]
|