@nocobase/plugin-kanban 2.1.2 → 2.1.4

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.
@@ -10,6 +10,9 @@ import { CollectionBlockModel } from '@nocobase/client-v2';
10
10
  import { MultiRecordResource } from '@nocobase/flow-engine';
11
11
  import React from 'react';
12
12
  import { type KanbanGroupOption } from './utils';
13
+ type KanbanPopupActionOptions = {
14
+ persist?: boolean;
15
+ };
13
16
  declare class KanbanBlockResource extends MultiRecordResource {
14
17
  refresh(): Promise<void>;
15
18
  }
@@ -64,12 +67,12 @@ export declare class KanbanBlockModel extends CollectionBlockModel<{
64
67
  getEffectiveSortFieldName(groupFieldOrName?: any): any;
65
68
  getDragEnabled(): boolean;
66
69
  getCardOpenMode(): "dialog" | "embed" | "drawer";
67
- getCardPopupSize(): "large" | "medium" | "small";
70
+ getCardPopupSize(): "small" | "large" | "medium";
68
71
  getCardPopupTemplateUid(): string;
69
72
  getCardPopupPageModelClass(): any;
70
73
  getQuickCreateEnabled(): boolean;
71
74
  getPopupMode(): "dialog" | "embed" | "drawer";
72
- getPopupSize(): "large" | "medium" | "small";
75
+ getPopupSize(): "small" | "large" | "medium";
73
76
  getPopupTemplateUid(): string;
74
77
  getPopupPageModelClass(): any;
75
78
  getPopupTargetUid(): string;
@@ -83,8 +86,9 @@ export declare class KanbanBlockModel extends CollectionBlockModel<{
83
86
  onActive(forceRefresh?: boolean): void;
84
87
  renderConfigureActions(): React.JSX.Element;
85
88
  renderActions(): React.JSX.Element;
86
- getPopupActionUid(): string;
87
- getQuickCreateActionUid(): string;
89
+ getPopupActionUid(): any;
90
+ getQuickCreateActionUid(): any;
91
+ loadPopupAction(actionKey: 'cardViewAction' | 'quickCreateAction'): Promise<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
88
92
  syncPopupAction(action: any, options: {
89
93
  mode: string;
90
94
  size: string;
@@ -93,12 +97,12 @@ export declare class KanbanBlockModel extends CollectionBlockModel<{
93
97
  pageModelClass?: string;
94
98
  dataSourceKey?: string;
95
99
  collectionName?: string;
96
- }): Promise<void>;
97
- syncCardViewAction(action: any): Promise<void>;
98
- ensureCardViewAction(): Promise<any>;
100
+ }, syncOptions?: KanbanPopupActionOptions): Promise<void>;
101
+ syncCardViewAction(action: any, options?: KanbanPopupActionOptions): Promise<void>;
102
+ ensureCardViewAction(options?: KanbanPopupActionOptions): Promise<any>;
99
103
  getQuickCreateAction(): any;
100
- ensureQuickCreateAction(): Promise<any>;
101
- syncQuickCreateAction(action: any): Promise<void>;
104
+ ensureQuickCreateAction(options?: KanbanPopupActionOptions): Promise<any>;
105
+ syncQuickCreateAction(action: any, options?: KanbanPopupActionOptions): Promise<void>;
102
106
  openEmptyPopupShell(options: {
103
107
  mode?: string;
104
108
  size?: 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) => "large" | "medium" | "small";
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;
@@ -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.1.2",
14
+ "@nocobase/client": "2.1.4",
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.1.2",
22
- "@nocobase/flow-engine": "2.1.2",
21
+ "@nocobase/utils": "2.1.4",
22
+ "@nocobase/flow-engine": "2.1.4",
23
23
  "lodash": "4.18.1",
24
- "@nocobase/client-v2": "2.1.2",
25
- "@nocobase/server": "2.1.2",
26
- "@nocobase/test": "2.1.2",
24
+ "@nocobase/client-v2": "2.1.4",
25
+ "@nocobase/server": "2.1.4",
26
+ "@nocobase/test": "2.1.4",
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.1.2",
3
+ "version": "2.1.4",
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": "e1b28561425c5c34ff3bc6ae1f81c66b72f02872",
26
+ "gitHead": "73c01b1e842afdaafdffd6fa4bb090c1da9b0816",
27
27
  "keywords": [
28
28
  "Blocks"
29
29
  ]