@nocobase/plugin-kanban 2.1.0-alpha.25 → 2.1.0-alpha.27

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.
@@ -6,7 +6,4 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- export declare const NAMESPACE = "kanban";
10
- export declare function lang(key: string): string;
11
- export declare function generateNTemplate(key: string): string;
12
- export declare function useKanbanTranslation(): import("react-i18next").UseTranslationResponse<("kanban" | "client")[], undefined>;
9
+ export { generateNTemplate, lang, NAMESPACE, useKanbanTranslation } from '../../locale';
@@ -35,7 +35,6 @@ export declare class KanbanBlockModel extends CollectionBlockModel<{
35
35
  TableAssociationFieldGroupModel: string;
36
36
  TableCustomColumnModel: string;
37
37
  };
38
- static filterCollection(collection: any): boolean;
39
38
  get resource(): MultiRecordResource<any>;
40
39
  getGroupFieldCandidates(): any;
41
40
  getSortFieldCandidates(groupFieldOrName?: any): any;
@@ -29,12 +29,14 @@ type GroupFieldOption = {
29
29
  value: string;
30
30
  };
31
31
  export declare const upsertKanbanCollectionFieldOptions: (fields?: Record<string, any>[], fieldData?: Record<string, any>) => Record<string, any>[];
32
- export declare const KanbanCreateSortFieldSelect: (props: {
32
+ export declare const upsertKanbanFlowCollectionField: (collection: any, fieldData?: Record<string, any>) => void;
33
+ export declare const KanbanCreateSortFieldSelect: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<{
33
34
  [key: string]: any;
34
35
  sortFields?: SortFieldOption[];
35
36
  collectionFields?: CollectionFieldMetadata[];
36
37
  groupField?: GroupFieldOption;
37
38
  collectionName?: string;
38
39
  dataSource?: string;
39
- }) => React.JSX.Element;
40
+ useGroupingFormValues?: boolean;
41
+ }, "ref">>>;
40
42
  export {};
@@ -15,4 +15,5 @@ export declare const KanbanGroupingSelector: React.MemoExoticComponent<import("@
15
15
  model?: KanbanBlockModel;
16
16
  collection?: any;
17
17
  dataSourceKey?: string;
18
+ disabled?: boolean;
18
19
  }>>;
@@ -8,7 +8,7 @@
8
8
  */
9
9
  export declare const KANBAN_UNKNOWN_COLUMN_KEY = "__unknown__";
10
10
  export declare const DEFAULT_KANBAN_PAGE_SIZE = 10;
11
- export declare const DEFAULT_KANBAN_COLUMN_WIDTH = 300;
11
+ export declare const DEFAULT_KANBAN_COLUMN_WIDTH = 250;
12
12
  export declare const KANBAN_COLOR_OPTIONS: string[];
13
13
  export type KanbanGroupOption = {
14
14
  value: string;
@@ -39,7 +39,7 @@ type KanbanCollectionIdentity = {
39
39
  filterTargetKey?: string | string[];
40
40
  getFilterByTK?: (record: any) => any;
41
41
  };
42
- export declare const KANBAN_GROUP_FIELD_INTERFACES: readonly ["select", "m2o"];
42
+ export declare const KANBAN_GROUP_FIELD_INTERFACES: readonly ["select", "radioGroup", "m2o"];
43
43
  export declare const getDefaultKanbanColor: (index: number, fallback?: string) => string;
44
44
  export declare const resolveKanbanColorValue: (color?: string) => string;
45
45
  export declare const toKanbanAlphaColor: (color?: string, alpha?: number) => string;
@@ -11,21 +11,21 @@ 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.0-alpha.25",
14
+ "@nocobase/client": "2.1.0-alpha.27",
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.0-alpha.25",
22
- "@nocobase/flow-engine": "2.1.0-alpha.25",
21
+ "@nocobase/utils": "2.1.0-alpha.27",
22
+ "@nocobase/flow-engine": "2.1.0-alpha.27",
23
23
  "lodash": "4.18.1",
24
- "@nocobase/server": "2.1.0-alpha.25",
25
- "@nocobase/test": "2.1.0-alpha.25",
24
+ "@nocobase/server": "2.1.0-alpha.27",
25
+ "@nocobase/test": "2.1.0-alpha.27",
26
26
  "antd-style": "3.7.1",
27
- "@nocobase/plugin-ai": "2.1.0-alpha.25",
28
- "@nocobase/client-v2": "2.1.0-alpha.25",
27
+ "@nocobase/plugin-ai": "2.1.0-alpha.27",
28
+ "@nocobase/client-v2": "2.1.0-alpha.27",
29
29
  "@dnd-kit/core": "6.1.0",
30
30
  "@dnd-kit/sortable": "7.0.2"
31
31
  };
@@ -45,11 +45,12 @@
45
45
  "Popup settings": "Popup settings",
46
46
  "Popup size": "Popup size",
47
47
  "Quick create": "Quick create",
48
+ "Quick create popup settings": "Quick create popup settings",
48
49
  "Select a grouping field first": "Select a grouping field first",
49
50
  "Select group values": "Select group values",
50
51
  "The order of the selected values determines the kanban column order": "The order of the selected values determines the kanban column order",
51
52
  "Set column width": "Set column width",
52
- "Single select and many-to-one fields can be used as the grouping field": "Single select and many-to-one fields can be used as the grouping field",
53
+ "Single select and many-to-one fields can be used as the grouping field": "Single select, radio group, and many-to-one fields can be used as the grouping field",
53
54
  "Small": "Small",
54
55
  "Sort": "Sort",
55
56
  "Sorting field": "Sorting field",
@@ -57,6 +58,7 @@
57
58
  "Style": "Style",
58
59
  "Title field": "Title field",
59
60
  "Unknown": "Unknown",
61
+ "Choose the sorting field that matches the current grouping field. Other sorting fields cannot be used for drag sorting.": "Choose the sorting field that matches the current grouping field. Other sorting fields cannot be used for drag sorting.",
60
62
  "Used for sorting kanban cards, only sorting fields corresponding to grouping fields can be selected": "Used for sorting kanban cards, only sorting fields corresponding to grouping fields can be selected",
61
63
  "View record": "View record"
62
- }
64
+ }
@@ -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
+ export declare const NAMESPACE = "kanban";
10
+ export declare function lang(key: string): string;
11
+ export declare function generateNTemplate(key: string): string;
12
+ export declare function useKanbanTranslation(): import("react-i18next").UseTranslationResponse<("kanban" | "client")[], undefined>;
@@ -0,0 +1,55 @@
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
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var locale_exports = {};
28
+ __export(locale_exports, {
29
+ NAMESPACE: () => NAMESPACE,
30
+ generateNTemplate: () => generateNTemplate,
31
+ lang: () => lang,
32
+ useKanbanTranslation: () => useKanbanTranslation
33
+ });
34
+ module.exports = __toCommonJS(locale_exports);
35
+ var import_client = require("@nocobase/client");
36
+ var import_react_i18next = require("react-i18next");
37
+ const NAMESPACE = "kanban";
38
+ function lang(key) {
39
+ return import_client.i18n.t(key, { ns: NAMESPACE });
40
+ }
41
+ function generateNTemplate(key) {
42
+ return `{{t('${key}', { ns: '${NAMESPACE}', nsMode: 'fallback' })}}`;
43
+ }
44
+ function useKanbanTranslation() {
45
+ return (0, import_react_i18next.useTranslation)([NAMESPACE, "client"], {
46
+ nsMode: "fallback"
47
+ });
48
+ }
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
51
+ NAMESPACE,
52
+ generateNTemplate,
53
+ lang,
54
+ useKanbanTranslation
55
+ });
@@ -45,11 +45,12 @@
45
45
  "Popup settings": "弹窗设置",
46
46
  "Popup size": "弹窗尺寸",
47
47
  "Quick create": "快捷新增",
48
+ "Quick create popup settings": "快速创建弹窗设置",
48
49
  "Select a grouping field first": "请先选择分组字段",
49
50
  "Select group values": "选择分组值",
50
51
  "The order of the selected values determines the kanban column order": "看板的列顺序基于值选择的顺序确定",
51
52
  "Set column width": "设置列宽",
52
- "Single select and many-to-one fields can be used as the grouping field": "单选和多对一字段可以用作分组字段",
53
+ "Single select and many-to-one fields can be used as the grouping field": "下拉单选、单选框和多对一字段可以用作分组字段",
53
54
  "Small": "小",
54
55
  "Sort": "排序",
55
56
  "Sorting field": "排序字段",
@@ -57,6 +58,7 @@
57
58
  "Style": "样式",
58
59
  "Title field": "标题字段",
59
60
  "Unknown": "未知",
61
+ "Choose the sorting field that matches the current grouping field. Other sorting fields cannot be used for drag sorting.": "请选择与当前分组字段匹配的排序字段,其他排序字段不能用于拖拽排序。",
60
62
  "Used for sorting kanban cards, only sorting fields corresponding to grouping fields can be selected": "用于看板卡片的排序,只能选择与分组字段相对应的排序字段",
61
63
  "View record": "查看记录"
62
- }
64
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-kanban",
3
- "version": "2.1.0-alpha.25",
3
+ "version": "2.1.0-alpha.27",
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",
@@ -20,7 +20,7 @@
20
20
  "devDependencies": {
21
21
  "react-intersection-observer": "^9.8.1"
22
22
  },
23
- "gitHead": "63e4aaa625f3108fe41238e85bb13dee37fe1f48",
23
+ "gitHead": "a340a88d86d3ff7e06d723215b02aa3c122f4870",
24
24
  "keywords": [
25
25
  "Blocks"
26
26
  ]