@nocobase/plugin-kanban 3.0.0-alpha.12 → 3.0.0-alpha.13
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(): "small" | "large" | "medium";
|
|
71
72
|
getCardPopupTemplateUid(): string;
|
|
72
73
|
getCardPopupPageModelClass(): any;
|
|
73
74
|
getQuickCreateEnabled(): boolean;
|
|
74
75
|
getPopupMode(): "dialog" | "embed" | "drawer";
|
|
75
|
-
getPopupSize(): "
|
|
76
|
+
getPopupSize(): "small" | "large" | "medium";
|
|
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;
|
|
@@ -100,9 +101,13 @@ export declare class KanbanBlockModel extends CollectionBlockModel<{
|
|
|
100
101
|
popupTemplateParams?: Record<string, any>;
|
|
101
102
|
}, syncOptions?: KanbanPopupActionOptions): Promise<void>;
|
|
102
103
|
syncCardViewAction(action: any, options?: KanbanPopupActionOptions): Promise<void>;
|
|
103
|
-
|
|
104
|
+
private initializePopupAction;
|
|
105
|
+
private getOrInitializePopupAction;
|
|
106
|
+
private persistNewPopupAction;
|
|
107
|
+
private runPopupActionOperation;
|
|
108
|
+
ensureCardViewAction(options?: KanbanPopupActionOptions): Promise<FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
|
|
104
109
|
getQuickCreateAction(): any;
|
|
105
|
-
ensureQuickCreateAction(options?: KanbanPopupActionOptions): Promise<
|
|
110
|
+
ensureQuickCreateAction(options?: KanbanPopupActionOptions): Promise<FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
|
|
106
111
|
syncQuickCreateAction(action: any, options?: KanbanPopupActionOptions): Promise<void>;
|
|
107
112
|
openEmptyPopupShell(options: {
|
|
108
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) => "small" | "large" | "medium";
|
|
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": "3.0.0-alpha.
|
|
14
|
+
"@nocobase/client": "3.0.0-alpha.13",
|
|
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": "3.0.0-alpha.
|
|
22
|
-
"@nocobase/flow-engine": "3.0.0-alpha.
|
|
21
|
+
"@nocobase/utils": "3.0.0-alpha.13",
|
|
22
|
+
"@nocobase/flow-engine": "3.0.0-alpha.13",
|
|
23
23
|
"lodash": "4.18.1",
|
|
24
|
-
"@nocobase/client-v2": "3.0.0-alpha.
|
|
25
|
-
"@nocobase/server": "3.0.0-alpha.
|
|
26
|
-
"@nocobase/test": "3.0.0-alpha.
|
|
24
|
+
"@nocobase/client-v2": "3.0.0-alpha.13",
|
|
25
|
+
"@nocobase/server": "3.0.0-alpha.13",
|
|
26
|
+
"@nocobase/test": "3.0.0-alpha.13",
|
|
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": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.13",
|
|
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": "1786007244b67ba18ac92e0512c084795a6687cc",
|
|
27
27
|
"keywords": [
|
|
28
28
|
"Blocks"
|
|
29
29
|
]
|