@gisce/react-ooui 2.112.0-alpha.10 → 2.112.0-alpha.12
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/dist/react-ooui.es.js +4842 -4875
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/widgets/views/Graph/GraphIndicatorComp.d.ts.map +1 -1
- package/dist/widgets/views/Kanban/Kanban.d.ts +1 -1
- package/dist/widgets/views/Kanban/Kanban.d.ts.map +1 -1
- package/dist/widgets/views/Kanban/KanbanBoard.d.ts +12 -16
- package/dist/widgets/views/Kanban/KanbanBoard.d.ts.map +1 -1
- package/dist/widgets/views/Kanban/KanbanCard.d.ts +1 -1
- package/dist/widgets/views/Kanban/KanbanCard.d.ts.map +1 -1
- package/dist/widgets/views/Kanban/KanbanColumn.d.ts +14 -14
- package/dist/widgets/views/Kanban/KanbanColumn.d.ts.map +1 -1
- package/dist/widgets/views/Kanban/types.d.ts +10 -0
- package/dist/widgets/views/Kanban/types.d.ts.map +1 -0
- package/dist/widgets/views/Kanban/useKanbanColumnData.d.ts +36 -0
- package/dist/widgets/views/Kanban/useKanbanColumnData.d.ts.map +1 -0
- package/dist/widgets/views/Kanban/useKanbanColumns.d.ts +18 -0
- package/dist/widgets/views/Kanban/useKanbanColumns.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/widgets/views/Kanban/useKanbanAggregates.d.ts +0 -24
- package/dist/widgets/views/Kanban/useKanbanAggregates.d.ts.map +0 -1
- package/dist/widgets/views/Kanban/useKanbanData.d.ts +0 -42
- package/dist/widgets/views/Kanban/useKanbanData.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphIndicatorComp.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Graph/GraphIndicatorComp.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,
|
|
1
|
+
{"version":3,"file":"GraphIndicatorComp.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Graph/GraphIndicatorComp.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,4CA2FhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kanban.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/Kanban.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Kanban.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/Kanban.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMvC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7C,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAmMF,eAAO,MAAM,eAAe,wIAE3B,CAAC"}
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { KanbanColumnRef } from "./KanbanColumn";
|
|
3
|
+
import { KanbanRecord, ColumnDefinition } from "./types";
|
|
3
4
|
import { Kanban } from "@gisce/ooui";
|
|
4
|
-
import { KanbanAggregatesByColumn } from "./useKanbanAggregates";
|
|
5
5
|
type KanbanBoardProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
columns: ColumnDefinition[];
|
|
7
|
+
columnField: string;
|
|
8
|
+
model: string;
|
|
9
|
+
domain: any[];
|
|
10
|
+
context: any;
|
|
11
|
+
searchParams?: any[];
|
|
12
|
+
fieldsToRetrieve?: string[];
|
|
13
13
|
kanbanDef: Kanban;
|
|
14
|
-
context?: any;
|
|
15
|
-
isLoading?: boolean;
|
|
16
|
-
isRefreshing?: boolean;
|
|
17
|
-
aggregatesByColumn?: KanbanAggregatesByColumn;
|
|
18
|
-
isLoadingAggregates?: boolean;
|
|
19
|
-
hasAggregates?: boolean;
|
|
20
14
|
onCardClick?: (record: KanbanRecord) => void;
|
|
21
15
|
onButtonClick?: (buttonName: string, recordId: number) => void;
|
|
16
|
+
setColumnRef: (columnId: string, ref: KanbanColumnRef | null) => void;
|
|
17
|
+
onColumnCountChange: (columnId: string, count: number) => void;
|
|
22
18
|
};
|
|
23
19
|
export declare const KanbanBoard: import("react").MemoExoticComponent<(props: KanbanBoardProps) => import("react/jsx-runtime").JSX.Element>;
|
|
24
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/KanbanBoard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/KanbanBoard.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAgB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7C,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IACtE,mBAAmB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAChE,CAAC;AAsJF,eAAO,MAAM,WAAW,8CApJa,gBAAgB,6CAoJA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanCard.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/KanbanCard.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"KanbanCard.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/KanbanCard.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AA0DrC,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAChE,CAAC;AAwMF,eAAO,MAAM,UAAU,8CAtMa,eAAe,6CAsMA,CAAC"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { KanbanRecord, ColumnDefinition } from "./types";
|
|
3
3
|
import { Kanban } from "@gisce/ooui";
|
|
4
|
-
|
|
4
|
+
export type KanbanColumnRef = {
|
|
5
|
+
refresh: () => void;
|
|
6
|
+
};
|
|
5
7
|
type KanbanColumnProps = {
|
|
6
|
-
column:
|
|
8
|
+
column: ColumnDefinition;
|
|
9
|
+
columnField: string;
|
|
10
|
+
model: string;
|
|
11
|
+
domain: any[];
|
|
12
|
+
context: any;
|
|
13
|
+
searchParams?: any[];
|
|
14
|
+
fieldsToRetrieve?: string[];
|
|
7
15
|
kanbanDef: Kanban;
|
|
8
16
|
draggable: boolean;
|
|
9
|
-
colorsForRecords?: RefObject<{
|
|
10
|
-
[key: number]: string;
|
|
11
|
-
}>;
|
|
12
|
-
statusForRecords?: RefObject<{
|
|
13
|
-
[key: number]: string;
|
|
14
|
-
}>;
|
|
15
17
|
allowSetMaxCards: boolean;
|
|
16
18
|
maxCards?: number;
|
|
17
|
-
context?: any;
|
|
18
|
-
aggregates?: KanbanColumnAggregatesType;
|
|
19
|
-
isLoadingAggregates?: boolean;
|
|
20
19
|
isOver?: boolean;
|
|
21
20
|
onCardClick?: (record: KanbanRecord) => void;
|
|
22
21
|
onButtonClick?: (buttonName: string, recordId: number) => void;
|
|
23
22
|
onMaxCardsChange?: (colId: string, maxCards: number | undefined) => void;
|
|
23
|
+
onCountChange: (columnId: string, count: number) => void;
|
|
24
24
|
};
|
|
25
|
-
export declare const KanbanColumn: import("react").MemoExoticComponent<(
|
|
25
|
+
export declare const KanbanColumn: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<KanbanColumnProps & import("react").RefAttributes<KanbanColumnRef>>>;
|
|
26
26
|
export {};
|
|
27
27
|
//# sourceMappingURL=KanbanColumn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/KanbanColumn.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/KanbanColumn.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAOrC,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,gBAAgB,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7C,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IACzE,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1D,CAAC;AAgPF,eAAO,MAAM,YAAY,oJAExB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,GAAG,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Kanban } from "@gisce/ooui";
|
|
3
|
+
import { KanbanRecord } from "./types";
|
|
4
|
+
export type KanbanColumnAggregates = {
|
|
5
|
+
[fieldName: string]: {
|
|
6
|
+
label: string;
|
|
7
|
+
amount: number | string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
type UseKanbanColumnDataParams = {
|
|
11
|
+
model: string;
|
|
12
|
+
domain: any[];
|
|
13
|
+
context: any;
|
|
14
|
+
columnField: string;
|
|
15
|
+
columnValue: string;
|
|
16
|
+
searchParams?: any[];
|
|
17
|
+
fieldsToRetrieve?: string[];
|
|
18
|
+
enabled?: boolean;
|
|
19
|
+
kanbanDef?: Kanban;
|
|
20
|
+
};
|
|
21
|
+
export declare const useKanbanColumnData: (params: UseKanbanColumnDataParams) => {
|
|
22
|
+
records: KanbanRecord[];
|
|
23
|
+
count: number;
|
|
24
|
+
aggregates: KanbanColumnAggregates;
|
|
25
|
+
colorsForRecords: import("react").MutableRefObject<{
|
|
26
|
+
[key: number]: string;
|
|
27
|
+
}>;
|
|
28
|
+
statusForRecords: import("react").MutableRefObject<{
|
|
29
|
+
[key: number]: string;
|
|
30
|
+
}>;
|
|
31
|
+
isLoading: boolean;
|
|
32
|
+
error: Error | null;
|
|
33
|
+
refresh: () => void;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=useKanbanColumnData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKanbanColumnData.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/useKanbanColumnData.ts"],"names":[],"mappings":";AASA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,MAAM,sBAAsB,GAAG;IACnC,CAAC,SAAS,EAAE,MAAM,GAAG;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY,yBAAyB;;;;;;;;;;;;;CAwNpE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ColumnDefinition } from "./types";
|
|
2
|
+
type UseKanbanColumnsParams = {
|
|
3
|
+
model: string;
|
|
4
|
+
domain: any[];
|
|
5
|
+
context: any;
|
|
6
|
+
columnField: string;
|
|
7
|
+
columnFieldDefinition: any;
|
|
8
|
+
searchParams?: any[];
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const useKanbanColumns: (params: UseKanbanColumnsParams) => {
|
|
12
|
+
columns: ColumnDefinition[];
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
error: Error | null;
|
|
15
|
+
refresh: () => void;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=useKanbanColumns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKanbanColumns.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/useKanbanColumns.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,GAAG,CAAC;IAC3B,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAAY,sBAAsB;;;;;CAgP9D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Kanban } from "@gisce/ooui";
|
|
2
|
-
export type KanbanColumnAggregates = {
|
|
3
|
-
[fieldName: string]: {
|
|
4
|
-
label: string;
|
|
5
|
-
amount: number | string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export type KanbanAggregatesByColumn = {
|
|
9
|
-
[columnId: string]: KanbanColumnAggregates;
|
|
10
|
-
};
|
|
11
|
-
export declare const useKanbanAggregates: ({ kanbanDef, model, domain, context, columnField, columnIds, enabled, }: {
|
|
12
|
-
kanbanDef?: Kanban | undefined;
|
|
13
|
-
model: string;
|
|
14
|
-
domain: any[];
|
|
15
|
-
context: any;
|
|
16
|
-
columnField: string;
|
|
17
|
-
columnIds: string[];
|
|
18
|
-
enabled?: boolean | undefined;
|
|
19
|
-
}) => {
|
|
20
|
-
aggregatesByColumn: KanbanAggregatesByColumn;
|
|
21
|
-
isLoading: boolean;
|
|
22
|
-
hasAggregates: boolean;
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=useKanbanAggregates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useKanbanAggregates.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/useKanbanAggregates.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAOrC,MAAM,MAAM,sBAAsB,GAAG;IACnC,CAAC,SAAS,EAAE,MAAM,GAAG;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,CAAC,QAAQ,EAAE,MAAM,GAAG,sBAAsB,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,mBAAmB;;WAUvB,MAAM;YACL,GAAG,EAAE;aACJ,GAAG;iBACC,MAAM;eACR,MAAM,EAAE;;;wBAGC,wBAAwB;eACjC,OAAO;mBACH,OAAO;CAyGvB,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Kanban } from "@gisce/ooui";
|
|
3
|
-
export type KanbanRecord = {
|
|
4
|
-
id: number;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
};
|
|
7
|
-
export type KanbanColumn = {
|
|
8
|
-
id: string;
|
|
9
|
-
label: string;
|
|
10
|
-
records: KanbanRecord[];
|
|
11
|
-
count: number;
|
|
12
|
-
};
|
|
13
|
-
type UseKanbanDataParams = {
|
|
14
|
-
model: string;
|
|
15
|
-
domain: any[];
|
|
16
|
-
context: any;
|
|
17
|
-
columnField: string;
|
|
18
|
-
columnFieldDefinition: any;
|
|
19
|
-
searchParams?: any[];
|
|
20
|
-
fieldsToRetrieve?: string[];
|
|
21
|
-
enabled?: boolean;
|
|
22
|
-
kanbanDef?: Kanban;
|
|
23
|
-
viewId?: number;
|
|
24
|
-
};
|
|
25
|
-
export declare const useKanbanData: (params: UseKanbanDataParams) => {
|
|
26
|
-
columns: KanbanColumn[];
|
|
27
|
-
records: KanbanRecord[];
|
|
28
|
-
isLoading: boolean;
|
|
29
|
-
isRefreshing: boolean;
|
|
30
|
-
error: Error | null;
|
|
31
|
-
colorsForRecords: import("react").MutableRefObject<{
|
|
32
|
-
[key: number]: string;
|
|
33
|
-
}>;
|
|
34
|
-
statusForRecords: import("react").MutableRefObject<{
|
|
35
|
-
[key: number]: string;
|
|
36
|
-
}>;
|
|
37
|
-
fetchRecords: () => Promise<void>;
|
|
38
|
-
moveRecord: (recordId: number, fromColumnId: string, toColumnId: string) => Promise<void>;
|
|
39
|
-
totalRows: number;
|
|
40
|
-
};
|
|
41
|
-
export {};
|
|
42
|
-
//# sourceMappingURL=useKanbanData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useKanbanData.d.ts","sourceRoot":"","sources":["../../../../src/widgets/views/Kanban/useKanbanData.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAOF,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,GAAG,CAAC;IAC3B,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,mBAAmB;;;;;;;;;;;;;2BAqYpC,MAAM,gBAAgB,MAAM,cAAc,MAAM;;CAkBpE,CAAC"}
|