@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.
- package/README.md +1 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/Kanban.Card.Designer.TitleSwitch.d.ts +2 -0
- package/dist/client/Kanban.Card.Designer.d.ts +4 -0
- package/dist/client/Kanban.Card.d.ts +1 -0
- package/dist/client/Kanban.CardViewer.d.ts +1 -0
- package/dist/client/Kanban.Designer.d.ts +2 -0
- package/dist/client/Kanban.Settings.d.ts +2 -0
- package/dist/client/Kanban.d.ts +7 -0
- package/dist/client/KanbanActionInitializers.d.ts +2 -0
- package/dist/client/KanbanBlockInitializer.d.ts +2 -0
- package/dist/client/KanbanBlockProvider.d.ts +20 -0
- package/dist/client/board/Board.d.ts +2 -0
- package/dist/client/board/Card.d.ts +8 -0
- package/dist/client/board/CardAdder.d.ts +6 -0
- package/dist/client/board/CardForm.d.ts +6 -0
- package/dist/client/board/Column.d.ts +17 -0
- package/dist/client/board/ColumnAdder.d.ts +5 -0
- package/dist/client/board/ColumnForm.d.ts +6 -0
- package/dist/client/board/DefaultCard.d.ts +8 -0
- package/dist/client/board/DefaultColumnHeader.d.ts +9 -0
- package/dist/client/board/Kanban.d.ts +3 -0
- package/dist/client/board/helpers.d.ts +19 -0
- package/dist/client/board/index.d.ts +1 -0
- package/dist/client/board/services.d.ts +25 -0
- package/dist/client/board/style.d.ts +4 -0
- package/dist/client/board/utils.d.ts +9 -0
- package/dist/client/board/withDroppable.d.ts +6 -0
- package/dist/client/context.d.ts +3 -0
- package/dist/client/index.d.ts +5 -0
- package/dist/client/index.js +303 -0
- package/dist/client/locale/index.d.ts +4 -0
- package/dist/client/style.d.ts +3 -0
- package/dist/client/utils.d.ts +57 -0
- package/dist/externalVersion.js +16 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +39 -0
- package/dist/locale/en-US.d.ts +2 -0
- package/dist/locale/en-US.js +24 -0
- package/dist/locale/fr-FR.d.ts +2 -0
- package/dist/locale/fr-FR.js +24 -0
- package/dist/locale/pt-BR.d.ts +46 -0
- package/dist/locale/pt-BR.js +69 -0
- package/dist/locale/zh-CN.d.ts +52 -0
- package/dist/locale/zh-CN.js +75 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +33 -0
- package/dist/server/plugin.d.ts +11 -0
- package/dist/server/plugin.js +45 -0
- package/package.json +16 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @nocobase/plugin-kanban
|
package/client.d.ts
ADDED
package/client.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/client/index.js');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KanbanCard: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KanbanCardViewer: any;
|
|
@@ -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,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,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,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,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, };
|