@nocobase/plugin-kanban 1.0.0-alpha.1 → 1.0.0-alpha.11

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.
Files changed (40) hide show
  1. package/dist/client/CreateAndSelectSort/index.d.ts +8 -0
  2. package/dist/client/Kanban.Card.Designer.d.ts +8 -0
  3. package/dist/client/Kanban.Card.d.ts +8 -0
  4. package/dist/client/Kanban.CardViewer.d.ts +8 -0
  5. package/dist/client/Kanban.Designer.d.ts +8 -0
  6. package/dist/client/Kanban.Settings.d.ts +8 -0
  7. package/dist/client/Kanban.d.ts +8 -0
  8. package/dist/client/KanbanActionInitializers.d.ts +8 -0
  9. package/dist/client/KanbanBlockInitializer.d.ts +29 -1
  10. package/dist/client/KanbanBlockProvider.d.ts +8 -0
  11. package/dist/client/board/Board.d.ts +8 -0
  12. package/dist/client/board/Card.d.ts +8 -0
  13. package/dist/client/board/CardAdder.d.ts +8 -0
  14. package/dist/client/board/CardForm.d.ts +8 -0
  15. package/dist/client/board/Column.d.ts +8 -0
  16. package/dist/client/board/ColumnAdder.d.ts +8 -0
  17. package/dist/client/board/ColumnForm.d.ts +8 -0
  18. package/dist/client/board/DefaultCard.d.ts +8 -0
  19. package/dist/client/board/DefaultColumnHeader.d.ts +8 -0
  20. package/dist/client/board/Kanban.d.ts +8 -0
  21. package/dist/client/board/helpers.d.ts +8 -0
  22. package/dist/client/board/index.d.ts +8 -0
  23. package/dist/client/board/services.d.ts +8 -0
  24. package/dist/client/board/style.d.ts +8 -0
  25. package/dist/client/board/utils.d.ts +8 -0
  26. package/dist/client/board/withDroppable.d.ts +8 -0
  27. package/dist/client/context.d.ts +8 -0
  28. package/dist/client/createKanbanBlockUISchema.d.ts +10 -1
  29. package/dist/client/index.d.ts +8 -0
  30. package/dist/client/index.js +40 -31
  31. package/dist/client/locale/index.d.ts +8 -0
  32. package/dist/client/style.d.ts +8 -0
  33. package/dist/externalVersion.js +12 -3
  34. package/dist/index.d.ts +8 -0
  35. package/dist/index.js +9 -0
  36. package/dist/server/index.d.ts +8 -0
  37. package/dist/server/index.js +9 -0
  38. package/dist/server/plugin.d.ts +8 -0
  39. package/dist/server/plugin.js +9 -0
  40. package/package.json +2 -2
@@ -1,2 +1,10 @@
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
+ */
1
9
  import React from 'react';
2
10
  export declare const CreateAndSelectSort: (props: any) => React.JSX.Element;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import { CompatibleSchemaInitializer } from '@nocobase/client';
2
10
  import React from 'react';
3
11
  export declare const KanbanCardDesigner: () => React.JSX.Element;
@@ -1 +1,9 @@
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
+ */
1
9
  export declare const KanbanCard: any;
@@ -1 +1,9 @@
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
+ */
1
9
  export declare const KanbanCardViewer: any;
@@ -1,2 +1,10 @@
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
+ */
1
9
  import React from 'react';
2
10
  export declare const KanbanDesigner: () => React.JSX.Element;
@@ -1,2 +1,10 @@
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
+ */
1
9
  import { SchemaSettings } from '@nocobase/client';
2
10
  export declare const kanbanSettings: SchemaSettings<{}>;
@@ -1,3 +1,11 @@
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
+ */
1
9
  export declare const toColumns: (groupField: any, dataSource: Array<any>, primaryKey: any) => {
2
10
  id: string;
3
11
  title: string;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import { CompatibleSchemaInitializer } from '@nocobase/client';
2
10
  /**
3
11
  * @deprecated
@@ -1,2 +1,30 @@
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
+ */
1
9
  import React from 'react';
2
- export declare const KanbanBlockInitializer: () => React.JSX.Element;
10
+ import { Collection, CollectionFieldOptions } from '@nocobase/client';
11
+ export declare const KanbanBlockInitializer: ({ filterCollections, onlyCurrentDataSource, hideSearch, createBlockSchema, showAssociationFields, }: {
12
+ filterCollections: (options: {
13
+ collection?: Collection;
14
+ associationField?: CollectionFieldOptions;
15
+ }) => boolean;
16
+ onlyCurrentDataSource: boolean;
17
+ hideSearch?: boolean;
18
+ createBlockSchema?: (options: any) => any;
19
+ showAssociationFields?: boolean;
20
+ }) => React.JSX.Element;
21
+ export declare const useCreateKanbanBlock: () => {
22
+ createKanbanBlock: ({ item }: {
23
+ item: any;
24
+ }) => Promise<void>;
25
+ };
26
+ export declare function useCreateAssociationKanbanBlock(): {
27
+ createAssociationKanbanBlock: ({ item }: {
28
+ item: any;
29
+ }) => Promise<void>;
30
+ };
@@ -1,3 +1,11 @@
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
+ */
1
9
  import React from 'react';
2
10
  export declare const KanbanBlockContext: React.Context<any>;
3
11
  export declare const KanbanBlockProvider: (props: any) => React.JSX.Element;
@@ -1,2 +1,10 @@
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
+ */
1
9
  declare const Board: any;
2
10
  export default Board;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import React from 'react';
2
10
  declare function Card({ children, index, renderCard, disableCardDrag }: {
3
11
  children: any;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import React from 'react';
2
10
  declare function CardAdder({ column, onConfirm }: {
3
11
  column: any;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import React from 'react';
2
10
  declare function CardForm({ onConfirm, onCancel }: {
3
11
  onConfirm: any;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import React from 'react';
2
10
  declare function Column({ children, index: columnIndex, renderCard, renderCardAdder, renderColumnHeader, disableColumnDrag, disableCardDrag, onCardNew, allowAddCard, cardAdderPosition, }: {
3
11
  children: any;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import React from 'react';
2
10
  declare function ColumnAdder({ onConfirm }: {
3
11
  onConfirm: any;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import React from 'react';
2
10
  declare function ColumnForm({ onConfirm, onCancel }: {
3
11
  onConfirm: any;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import React from 'react';
2
10
  declare function DefaultCard({ children: card, dragging, allowRemoveCard, onCardRemove }: {
3
11
  children: any;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import React from 'react';
2
10
  declare function DefaultColumnHeader({ children: column, allowRemoveColumn, onColumnRemove, allowRenameColumn, onColumnRename, }: {
3
11
  children: any;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import '@asseinfo/react-kanban/dist/styles.css';
2
10
  import React from 'react';
3
11
  export declare function Kanban(): React.JSX.Element;
@@ -1,3 +1,11 @@
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
+ */
1
9
  declare function moveColumn(board: any, { fromPosition }: {
2
10
  fromPosition: any;
3
11
  }, { toPosition }: {
@@ -1 +1,9 @@
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
+ */
1
9
  export { default as Board } from './Board';
@@ -1,3 +1,11 @@
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
+ */
1
9
  declare function getCoordinates(event: any, board: any): {
2
10
  source?: undefined;
3
11
  destination?: undefined;
@@ -1,3 +1,11 @@
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
+ */
1
9
  export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
10
  nbBord: import("antd-style").SerializedStyles;
3
11
  kanbanBoard: import("antd-style").SerializedStyles;
@@ -1,3 +1,11 @@
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
+ */
1
9
  declare function partialRight(fn: any, ...args: any[]): (...leftArgs: any[]) => any;
2
10
  declare function addInArrayAtPosition(array: any, element: any, position: any): any[];
3
11
  declare function removeFromArrayAtPosition(array: any, position: any): any;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import React from 'react';
2
10
  declare function withDroppable(Component: any): {
3
11
  ({ children, ...droppableProps }: {
@@ -1,3 +1,11 @@
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
+ */
1
9
  /// <reference types="react" />
2
10
  export declare const KanbanCardContext: import("react").Context<any>;
3
11
  export declare const KanbanColumnContext: import("react").Context<any>;
@@ -1,8 +1,17 @@
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
+ */
1
9
  import { ISchema } from '@formily/react';
2
10
  export declare const createKanbanBlockUISchema: (options: {
3
- collectionName: string;
4
11
  groupField: string;
5
12
  sortField: string;
6
13
  dataSource: string;
7
14
  params?: Record<string, any>;
15
+ collectionName?: string;
16
+ association?: string;
8
17
  }) => ISchema;
@@ -1,3 +1,11 @@
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
+ */
1
9
  import { Plugin } from '@nocobase/client';
2
10
  declare class PluginKanbanClient extends Plugin {
3
11
  load(): Promise<void>;