@nocobase/plugin-kanban 0.18.0-alpha.1

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 (53) hide show
  1. package/README.md +1 -0
  2. package/client.d.ts +2 -0
  3. package/client.js +1 -0
  4. package/dist/client/Kanban.Card.Designer.TitleSwitch.d.ts +2 -0
  5. package/dist/client/Kanban.Card.Designer.d.ts +4 -0
  6. package/dist/client/Kanban.Card.d.ts +1 -0
  7. package/dist/client/Kanban.CardViewer.d.ts +1 -0
  8. package/dist/client/Kanban.Designer.d.ts +2 -0
  9. package/dist/client/Kanban.Settings.d.ts +2 -0
  10. package/dist/client/Kanban.d.ts +7 -0
  11. package/dist/client/KanbanActionInitializers.d.ts +2 -0
  12. package/dist/client/KanbanBlockInitializer.d.ts +2 -0
  13. package/dist/client/KanbanBlockProvider.d.ts +20 -0
  14. package/dist/client/board/Board.d.ts +2 -0
  15. package/dist/client/board/Card.d.ts +8 -0
  16. package/dist/client/board/CardAdder.d.ts +6 -0
  17. package/dist/client/board/CardForm.d.ts +6 -0
  18. package/dist/client/board/Column.d.ts +17 -0
  19. package/dist/client/board/ColumnAdder.d.ts +5 -0
  20. package/dist/client/board/ColumnForm.d.ts +6 -0
  21. package/dist/client/board/DefaultCard.d.ts +8 -0
  22. package/dist/client/board/DefaultColumnHeader.d.ts +9 -0
  23. package/dist/client/board/Kanban.d.ts +3 -0
  24. package/dist/client/board/helpers.d.ts +19 -0
  25. package/dist/client/board/index.d.ts +1 -0
  26. package/dist/client/board/services.d.ts +25 -0
  27. package/dist/client/board/style.d.ts +4 -0
  28. package/dist/client/board/utils.d.ts +9 -0
  29. package/dist/client/board/withDroppable.d.ts +6 -0
  30. package/dist/client/context.d.ts +3 -0
  31. package/dist/client/index.d.ts +5 -0
  32. package/dist/client/index.js +303 -0
  33. package/dist/client/locale/index.d.ts +4 -0
  34. package/dist/client/style.d.ts +3 -0
  35. package/dist/client/utils.d.ts +57 -0
  36. package/dist/externalVersion.js +16 -0
  37. package/dist/index.d.ts +2 -0
  38. package/dist/index.js +39 -0
  39. package/dist/locale/en-US.d.ts +2 -0
  40. package/dist/locale/en-US.js +24 -0
  41. package/dist/locale/fr-FR.d.ts +2 -0
  42. package/dist/locale/fr-FR.js +24 -0
  43. package/dist/locale/pt-BR.d.ts +46 -0
  44. package/dist/locale/pt-BR.js +69 -0
  45. package/dist/locale/zh-CN.d.ts +52 -0
  46. package/dist/locale/zh-CN.js +75 -0
  47. package/dist/server/index.d.ts +1 -0
  48. package/dist/server/index.js +33 -0
  49. package/dist/server/plugin.d.ts +11 -0
  50. package/dist/server/plugin.js +45 -0
  51. package/package.json +16 -0
  52. package/server.d.ts +2 -0
  53. package/server.js +1 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # @nocobase/plugin-kanban
package/client.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/client';
2
+ export { default } from './dist/client';
package/client.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/client/index.js');
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const KanbanCardDesignerTitleSwitch: () => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SchemaInitializer } from '@nocobase/client';
3
+ export declare const KanbanCardDesigner: () => React.JSX.Element;
4
+ export declare const kanbanCardInitializers: SchemaInitializer<any, {}>;
@@ -0,0 +1 @@
1
+ export declare const KanbanCard: any;
@@ -0,0 +1 @@
1
+ export declare const KanbanCardViewer: any;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const KanbanDesigner: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SchemaSettings } from '@nocobase/client';
2
+ export declare const kanbanSettings: SchemaSettings<{}>;
@@ -0,0 +1,7 @@
1
+ export declare const toColumns: (groupField: any, dataSource?: Array<any>) => {
2
+ id: string;
3
+ title: string;
4
+ color: string;
5
+ cards: any[];
6
+ }[];
7
+ export declare const Kanban: any;
@@ -0,0 +1,2 @@
1
+ import { SchemaInitializer } from '@nocobase/client';
2
+ export declare const kanbanActionInitializers: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const KanbanBlockInitializer: () => React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ export declare const KanbanBlockContext: React.Context<any>;
3
+ export declare const KanbanBlockProvider: (props: any) => React.JSX.Element;
4
+ export declare const useKanbanBlockContext: () => any;
5
+ export declare const useKanbanBlockProps: () => {
6
+ setDataSource: React.Dispatch<React.SetStateAction<any[]>>;
7
+ dataSource: any[];
8
+ groupField: any;
9
+ disableCardDrag: boolean;
10
+ onCardDragEnd({ columns, groupField }: {
11
+ columns: any;
12
+ groupField: any;
13
+ }, { fromColumnId, fromPosition }: {
14
+ fromColumnId: any;
15
+ fromPosition: any;
16
+ }, { toColumnId, toPosition }: {
17
+ toColumnId: any;
18
+ toPosition: any;
19
+ }): Promise<void>;
20
+ };
@@ -0,0 +1,2 @@
1
+ declare const Board: any;
2
+ export default Board;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ declare function Card({ children, index, renderCard, disableCardDrag }: {
3
+ children: any;
4
+ index: any;
5
+ renderCard: any;
6
+ disableCardDrag: any;
7
+ }): React.JSX.Element;
8
+ export default Card;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare function CardAdder({ column, onConfirm }: {
3
+ column: any;
4
+ onConfirm: any;
5
+ }): React.JSX.Element;
6
+ export default CardAdder;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare function CardForm({ onConfirm, onCancel }: {
3
+ onConfirm: any;
4
+ onCancel: any;
5
+ }): React.JSX.Element;
6
+ export default CardForm;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ declare function Column({ children, index: columnIndex, renderCard, renderCardAdder, renderColumnHeader, disableColumnDrag, disableCardDrag, onCardNew, allowAddCard, cardAdderPosition, }: {
3
+ children: any;
4
+ index: any;
5
+ renderCard: any;
6
+ renderCardAdder?: ({ column, onConfirm }: {
7
+ column: any;
8
+ onConfirm: any;
9
+ }) => React.JSX.Element;
10
+ renderColumnHeader: any;
11
+ disableColumnDrag: any;
12
+ disableCardDrag: any;
13
+ onCardNew: any;
14
+ allowAddCard: any;
15
+ cardAdderPosition?: string;
16
+ }): React.JSX.Element;
17
+ export default Column;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare function ColumnAdder({ onConfirm }: {
3
+ onConfirm: any;
4
+ }): React.JSX.Element;
5
+ export default ColumnAdder;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare function ColumnForm({ onConfirm, onCancel }: {
3
+ onConfirm: any;
4
+ onCancel: any;
5
+ }): React.JSX.Element;
6
+ export default ColumnForm;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ declare function DefaultCard({ children: card, dragging, allowRemoveCard, onCardRemove }: {
3
+ children: any;
4
+ dragging: any;
5
+ allowRemoveCard: any;
6
+ onCardRemove: any;
7
+ }): React.JSX.Element;
8
+ export default DefaultCard;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare function DefaultColumnHeader({ children: column, allowRemoveColumn, onColumnRemove, allowRenameColumn, onColumnRename, }: {
3
+ children: any;
4
+ allowRemoveColumn: any;
5
+ onColumnRemove: any;
6
+ allowRenameColumn: any;
7
+ onColumnRename: any;
8
+ }): React.JSX.Element;
9
+ export default DefaultColumnHeader;
@@ -0,0 +1,3 @@
1
+ import '@asseinfo/react-kanban/dist/styles.css';
2
+ import React from 'react';
3
+ export declare function Kanban(): React.JSX.Element;
@@ -0,0 +1,19 @@
1
+ declare function moveColumn(board: any, { fromPosition }: {
2
+ fromPosition: any;
3
+ }, { toPosition }: {
4
+ toPosition: any;
5
+ }): any;
6
+ declare function moveCard(board: any, { fromPosition, fromColumnId }: {
7
+ fromPosition: any;
8
+ fromColumnId: any;
9
+ }, { toPosition, toColumnId }: {
10
+ toPosition: any;
11
+ toColumnId: any;
12
+ }): any;
13
+ declare function addColumn(board: any, column: any): any;
14
+ declare function removeColumn(board: any, column: any): any;
15
+ declare function changeColumn(board: any, column: any, newColumn: any): any;
16
+ declare function addCard(board: any, inColumn: any, card: any, { on }?: any): any;
17
+ declare function removeCard(board: any, fromColumn: any, card: any): any;
18
+ declare function changeCard(board: any, cardId: any, newCard: any): any;
19
+ export { moveColumn, moveCard, addColumn, removeColumn, changeColumn, addCard, removeCard, changeCard };
@@ -0,0 +1 @@
1
+ export { default as Board } from './Board';
@@ -0,0 +1,25 @@
1
+ declare function getCoordinates(event: any, board: any): {
2
+ source?: undefined;
3
+ destination?: undefined;
4
+ } | {
5
+ source: {
6
+ fromPosition: any;
7
+ };
8
+ destination: {
9
+ toPosition: any;
10
+ };
11
+ } | {
12
+ source: {
13
+ fromColumnId: any;
14
+ fromPosition: any;
15
+ };
16
+ destination: {
17
+ toColumnId: any;
18
+ toPosition: any;
19
+ };
20
+ };
21
+ declare function isAColumnMove(type: any): boolean;
22
+ declare function getCard(board: any, sourceCoordinate: any): any;
23
+ declare function isMovingAColumnToAnotherPosition(coordinates: any): boolean;
24
+ declare function isMovingACardToAnotherPosition(coordinates: any): boolean;
25
+ export { getCard, getCoordinates, isAColumnMove, isMovingAColumnToAnotherPosition, isMovingACardToAnotherPosition };
@@ -0,0 +1,4 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
+ nbBord: import("antd-style").SerializedStyles;
3
+ kanbanBoard: import("antd-style").SerializedStyles;
4
+ }>;
@@ -0,0 +1,9 @@
1
+ declare function partialRight(fn: any, ...args: any[]): (...leftArgs: any[]) => any;
2
+ declare function addInArrayAtPosition(array: any, element: any, position: any): any[];
3
+ declare function removeFromArrayAtPosition(array: any, position: any): any;
4
+ declare function changeElementOfPositionInArray(array: any, from: any, to: any): any;
5
+ declare function identity(value: any): any;
6
+ declare function when(value: any, predicate?: typeof identity): (callback: any) => any;
7
+ declare function replaceElementOfArray(array: any): (options: any) => any;
8
+ declare function pickPropOut(object: any, prop: any): {};
9
+ export { addInArrayAtPosition, removeFromArrayAtPosition, changeElementOfPositionInArray, when, replaceElementOfArray, partialRight, pickPropOut, };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare function withDroppable(Component: any): ({ children, ...droppableProps }: {
3
+ [x: string]: any;
4
+ children: any;
5
+ }) => React.JSX.Element;
6
+ export default withDroppable;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const KanbanCardContext: import("react").Context<any>;
3
+ export declare const KanbanColumnContext: import("react").Context<any>;
@@ -0,0 +1,5 @@
1
+ import { Plugin } from '@nocobase/client';
2
+ declare class KanbanPlugin extends Plugin {
3
+ load(): Promise<void>;
4
+ }
5
+ export default KanbanPlugin;