@vanillabp/bc-ui 0.1.0 → 0.1.4
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/components/CustomWorkflowModuleComponent.d.ts +2 -1
- package/dist/components/FulltextSearchInput.d.ts +1 -1
- package/dist/components/ListCell.d.ts +2 -1
- package/dist/components/ListColumnHeader.d.ts +2 -1
- package/dist/components/ListOfTasks.d.ts +5 -4
- package/dist/components/ListOfTasks.js +15 -8
- package/dist/components/ListOfWorkflows.d.ts +5 -4
- package/dist/components/ListOfWorkflows.js +13 -8
- package/dist/components/NoElementGivenByModule.d.ts +2 -1
- package/dist/components/NoUserTaskGiven.d.ts +2 -1
- package/dist/components/NoWorkflowGiven.d.ts +2 -1
- package/dist/components/SearchableAndSortableUpdatingList.d.ts +2 -1
- package/dist/components/SearchableAndSortableUpdatingList.js +2 -1
- package/dist/components/User.d.ts +1 -1
- package/dist/components/UserAvatar.d.ts +1 -1
- package/dist/components/UserTaskPage.d.ts +2 -2
- package/dist/components/WorkflowPage.d.ts +2 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/types/apis.d.ts +5 -6
- package/dist/types/index.d.ts +1 -1
- package/dist/types/lists.d.ts +1 -1
- package/dist/utils/column-type.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/module-federation.d.ts +2 -1
- package/package.json +6 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ShowLoadingIndicatorFunction, ToastFunction
|
|
1
|
+
import { ShowLoadingIndicatorFunction, ToastFunction } from '@vanillabp/bc-shared';
|
|
2
2
|
import { WorkflowModule } from '@vanillabp/bc-official-gui-client';
|
|
3
|
+
import { TranslationFunction } from '@vanillabp/bc-types';
|
|
3
4
|
|
|
4
5
|
declare const CustomWorkflowModuleComponent: ({ showLoadingIndicator, toast, workflowModule, useCase, t, entryPoint }: {
|
|
5
6
|
showLoadingIndicator: ShowLoadingIndicatorFunction;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DefaultListCellProps } from '@vanillabp/bc-shared';
|
|
2
|
+
import { Column, Person, TranslationFunction } from '@vanillabp/bc-types';
|
|
2
3
|
import { FC } from 'react';
|
|
3
4
|
import { ListItemData, ListItem } from './SearchableAndSortableUpdatingList.js';
|
|
4
5
|
import { ModuleDefinition, Module } from '../utils/module-federation.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DefaultListHeaderAwareProps } from '@vanillabp/bc-shared';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
+
import { TranslationFunction, Column } from '@vanillabp/bc-types';
|
|
3
4
|
|
|
4
5
|
declare const AUTO_SIZE_COLUMN = "";
|
|
5
6
|
declare const ListColumnHeader: ({ t, currentLanguage, column, columnIndex, numberOfAllColumns, nameOfList, columnHeader, columnWidthAdjustment, setAutoColumnWidth, setColumnWidthAdjustment, sort, isDefaultSort, sortAscending, defaultSortAscending, setSort, setSortAscending, allSelected, selectAll }: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SearchQuery } from '@vanillabp/bc-official-gui-client';
|
|
3
|
-
import { ShowLoadingIndicatorFunction, GuiSseHook,
|
|
2
|
+
import { SearchQuery, UserTaskRetrieveMode } from '@vanillabp/bc-official-gui-client';
|
|
3
|
+
import { ShowLoadingIndicatorFunction, GuiSseHook, DefaultListHeaderAwareProps } from '@vanillabp/bc-shared';
|
|
4
|
+
import { TranslationFunction, Person } from '@vanillabp/bc-types';
|
|
4
5
|
import { BackgroundType, ColorType } from 'grommet/utils';
|
|
5
6
|
import { OpenTaskFunction, NavigateToWorkflowFunction } from '../types/navigate.js';
|
|
6
7
|
import { TasklistApiHook } from '../types/apis.js';
|
|
7
8
|
import { ListOfTasksHeaderFooterFunction } from '../types/lists.js';
|
|
8
|
-
import '@vanillabp/bc-official-gui-client/dist/models/UserTasks';
|
|
9
9
|
|
|
10
|
-
declare const ListOfTasks: ({ showLoadingIndicator, useGuiSse, useTasklistApi, openTask, navigateToWorkflow, t, currentLanguage, currentUser, defaultSort, defaultSortAscending, name, columns, minWidthOfColumns, minWidthOfAutoColumn, children, headerHeight, footer, footerHeight, rowSeparator, applyBackgroundColor, showColumnHeaders, excludeIdColumn, columnHeader, columnHeaderBackground, columnHeaderSeparator, defaultSearchQueries, }: {
|
|
10
|
+
declare const ListOfTasks: ({ showLoadingIndicator, useGuiSse, useTasklistApi, openTask, navigateToWorkflow, t, currentLanguage, currentUser, defaultSort, defaultSortAscending, name, columns, minWidthOfColumns, minWidthOfAutoColumn, children, headerHeight, footer, footerHeight, rowSeparator, applyBackgroundColor, showColumnHeaders, excludeIdColumn, columnHeader, columnHeaderBackground, columnHeaderSeparator, defaultSearchQueries, mode, }: {
|
|
11
11
|
showLoadingIndicator: ShowLoadingIndicatorFunction;
|
|
12
12
|
useGuiSse: GuiSseHook;
|
|
13
13
|
useTasklistApi: TasklistApiHook;
|
|
@@ -34,6 +34,7 @@ declare const ListOfTasks: ({ showLoadingIndicator, useGuiSse, useTasklistApi, o
|
|
|
34
34
|
columnHeaderBackground?: BackgroundType | undefined;
|
|
35
35
|
columnHeaderSeparator?: ColorType | null;
|
|
36
36
|
defaultSearchQueries?: SearchQuery[] | undefined;
|
|
37
|
+
mode?: UserTaskRetrieveMode | undefined;
|
|
37
38
|
}) => JSX.Element;
|
|
38
39
|
|
|
39
40
|
export { ListOfTasks };
|
|
@@ -52,7 +52,7 @@ const updateModuleDefinitions = (userTasks, existingModuleDefinitions, setModule
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
const loadUserTasks = (tasklistApi, numberOfUserTask, setNumberOfUserTasks, existingModuleDefinitions, setModulesOfTasks, existingUserTaskDefinitions, setDefinitionsOfTasks, pageSize, pageNumber, initialTimestamp, searchQueries, sort, sortAscending, mapToBcUserTask) => __async(void 0, null, function* () {
|
|
55
|
+
const loadUserTasks = (tasklistApi, numberOfUserTask, setNumberOfUserTasks, existingModuleDefinitions, setModulesOfTasks, existingUserTaskDefinitions, setDefinitionsOfTasks, pageSize, pageNumber, initialTimestamp, searchQueries, sort, sortAscending, mapToBcUserTask, mode) => __async(void 0, null, function* () {
|
|
56
56
|
const result = yield tasklistApi.getUserTasks(
|
|
57
57
|
(/* @__PURE__ */ new Date()).getTime().toString(),
|
|
58
58
|
pageNumber,
|
|
@@ -60,7 +60,8 @@ const loadUserTasks = (tasklistApi, numberOfUserTask, setNumberOfUserTasks, exis
|
|
|
60
60
|
sort,
|
|
61
61
|
sortAscending,
|
|
62
62
|
searchQueries,
|
|
63
|
-
initialTimestamp
|
|
63
|
+
initialTimestamp,
|
|
64
|
+
mode
|
|
64
65
|
);
|
|
65
66
|
if (numberOfUserTask !== result.page.totalElements) {
|
|
66
67
|
setNumberOfUserTasks(result.page.totalElements);
|
|
@@ -71,7 +72,7 @@ const loadUserTasks = (tasklistApi, numberOfUserTask, setNumberOfUserTasks, exis
|
|
|
71
72
|
items: result.userTasks.map((userTask) => mapToBcUserTask(userTask))
|
|
72
73
|
};
|
|
73
74
|
});
|
|
74
|
-
const reloadUserTasks = (tasklistApi, numberOfUserTask, setNumberOfUserTasks, existingModuleDefinitions, setModulesOfTasks, existingUserTaskDefinitions, setDefinitionsOfTasks, numberOfItems, knownItemsIds, initialTimestamp, searchQueries, sort, sortAscending, mapToBcUserTask, allSelected) => __async(void 0, null, function* () {
|
|
75
|
+
const reloadUserTasks = (tasklistApi, numberOfUserTask, setNumberOfUserTasks, existingModuleDefinitions, setModulesOfTasks, existingUserTaskDefinitions, setDefinitionsOfTasks, numberOfItems, knownItemsIds, initialTimestamp, searchQueries, sort, sortAscending, mapToBcUserTask, allSelected, mode) => __async(void 0, null, function* () {
|
|
75
76
|
const result = yield tasklistApi.getUserTasksUpdate(
|
|
76
77
|
(/* @__PURE__ */ new Date()).getTime().toString(),
|
|
77
78
|
numberOfItems,
|
|
@@ -79,7 +80,8 @@ const reloadUserTasks = (tasklistApi, numberOfUserTask, setNumberOfUserTasks, ex
|
|
|
79
80
|
sort,
|
|
80
81
|
sortAscending,
|
|
81
82
|
searchQueries,
|
|
82
|
-
initialTimestamp
|
|
83
|
+
initialTimestamp,
|
|
84
|
+
mode
|
|
83
85
|
);
|
|
84
86
|
if (numberOfUserTask !== result.page.totalElements) {
|
|
85
87
|
setNumberOfUserTasks(result.page.totalElements);
|
|
@@ -1144,7 +1146,8 @@ const ListOfTasks = ({
|
|
|
1144
1146
|
columnHeader,
|
|
1145
1147
|
columnHeaderBackground = "dark-3",
|
|
1146
1148
|
columnHeaderSeparator = "light-6",
|
|
1147
|
-
defaultSearchQueries = []
|
|
1149
|
+
defaultSearchQueries = [],
|
|
1150
|
+
mode
|
|
1148
1151
|
}) => {
|
|
1149
1152
|
const { isPhone, isTablet } = useResponsiveScreen();
|
|
1150
1153
|
const wakeupSseCallback = useRef(void 0);
|
|
@@ -1194,7 +1197,8 @@ const ListOfTasks = ({
|
|
|
1194
1197
|
searchQueries,
|
|
1195
1198
|
void 0,
|
|
1196
1199
|
true,
|
|
1197
|
-
mapToBcUserTask
|
|
1200
|
+
mapToBcUserTask,
|
|
1201
|
+
mode
|
|
1198
1202
|
);
|
|
1199
1203
|
});
|
|
1200
1204
|
if (userTasks.current === void 0) {
|
|
@@ -1580,7 +1584,8 @@ const ListOfTasks = ({
|
|
|
1580
1584
|
searchQueries,
|
|
1581
1585
|
effectiveSort,
|
|
1582
1586
|
sortAscending,
|
|
1583
|
-
mapToBcUserTask
|
|
1587
|
+
mapToBcUserTask,
|
|
1588
|
+
mode
|
|
1584
1589
|
)
|
|
1585
1590
|
);
|
|
1586
1591
|
}),
|
|
@@ -1601,7 +1606,9 @@ const ListOfTasks = ({
|
|
|
1601
1606
|
searchQueries,
|
|
1602
1607
|
effectiveSort,
|
|
1603
1608
|
sortAscending,
|
|
1604
|
-
mapToBcUserTask
|
|
1609
|
+
mapToBcUserTask,
|
|
1610
|
+
false,
|
|
1611
|
+
mode
|
|
1605
1612
|
)
|
|
1606
1613
|
);
|
|
1607
1614
|
})
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { SearchQuery } from '@vanillabp/bc-official-gui-client';
|
|
3
|
-
import { ShowLoadingIndicatorFunction, GuiSseHook,
|
|
2
|
+
import { SearchQuery, WorkflowRetrieveMode } from '@vanillabp/bc-official-gui-client';
|
|
3
|
+
import { ShowLoadingIndicatorFunction, GuiSseHook, DefaultListHeaderAwareProps } from '@vanillabp/bc-shared';
|
|
4
|
+
import { Person, TranslationFunction } from '@vanillabp/bc-types';
|
|
4
5
|
import { BackgroundType, ColorType } from 'grommet/utils';
|
|
5
6
|
import { OpenTaskFunction, NavigateToWorkflowFunction } from '../types/navigate.js';
|
|
6
7
|
import { WorkflowlistApiHook, TasklistApiHook } from '../types/apis.js';
|
|
7
8
|
import { ListOfWorkflowsHeaderFooterFunction } from '../types/lists.js';
|
|
8
|
-
import '@vanillabp/bc-official-gui-client/dist/models/UserTasks';
|
|
9
9
|
|
|
10
|
-
declare const ListOfWorkflows: ({ showLoadingIndicator, useGuiSse, useWorkflowlistApi, useTasklistApi, openTask, navigateToWorkflow, currentLanguage, currentUser, defaultSort, defaultSortAscending, name, minWidthOfColumns, minWidthOfAutoColumn, columns, children, headerHeight, footer, footerHeight, t, rowSeparator, applyBackgroundColor, showColumnHeaders, excludeIdColumn, columnHeader, columnHeaderBackground, columnHeaderSeparator, defaultSearchQueries, }: {
|
|
10
|
+
declare const ListOfWorkflows: ({ showLoadingIndicator, useGuiSse, useWorkflowlistApi, useTasklistApi, openTask, navigateToWorkflow, currentLanguage, currentUser, defaultSort, defaultSortAscending, name, minWidthOfColumns, minWidthOfAutoColumn, columns, children, headerHeight, footer, footerHeight, t, rowSeparator, applyBackgroundColor, showColumnHeaders, excludeIdColumn, columnHeader, columnHeaderBackground, columnHeaderSeparator, defaultSearchQueries, mode, }: {
|
|
11
11
|
showLoadingIndicator: ShowLoadingIndicatorFunction;
|
|
12
12
|
useGuiSse: GuiSseHook;
|
|
13
13
|
useWorkflowlistApi: WorkflowlistApiHook;
|
|
@@ -35,6 +35,7 @@ declare const ListOfWorkflows: ({ showLoadingIndicator, useGuiSse, useWorkflowli
|
|
|
35
35
|
columnHeaderSeparator?: ColorType | null;
|
|
36
36
|
t: TranslationFunction;
|
|
37
37
|
defaultSearchQueries?: SearchQuery[] | undefined;
|
|
38
|
+
mode?: WorkflowRetrieveMode | undefined;
|
|
38
39
|
}) => JSX.Element;
|
|
39
40
|
|
|
40
41
|
export { ListOfWorkflows };
|
|
@@ -37,8 +37,8 @@ const updateModuleDefinitions = (workflows, existingModuleDefinitions, setModule
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
const loadWorkflows = (workflowlistApi, numberOfWorkflows, setNumberOfWorkflows, existingModuleDefinitions, setModulesOfWorkflows, existingWorkflowDefinitions, setDefinitionsOfWorkflows, pageSize, pageNumber, initialTimestamp, searchQueries, sort, sortAscending, mapToBcWorkflow) => __async(void 0, null, function* () {
|
|
41
|
-
const result = yield workflowlistApi.getWorkflows((/* @__PURE__ */ new Date()).getTime().toString(), pageNumber, pageSize, sort, sortAscending, searchQueries, initialTimestamp);
|
|
40
|
+
const loadWorkflows = (workflowlistApi, numberOfWorkflows, setNumberOfWorkflows, existingModuleDefinitions, setModulesOfWorkflows, existingWorkflowDefinitions, setDefinitionsOfWorkflows, pageSize, pageNumber, initialTimestamp, searchQueries, sort, sortAscending, mapToBcWorkflow, mode) => __async(void 0, null, function* () {
|
|
41
|
+
const result = yield workflowlistApi.getWorkflows((/* @__PURE__ */ new Date()).getTime().toString(), pageNumber, pageSize, sort, sortAscending, searchQueries, initialTimestamp, mode);
|
|
42
42
|
if (numberOfWorkflows !== result.page.totalElements) {
|
|
43
43
|
setNumberOfWorkflows(result.page.totalElements);
|
|
44
44
|
}
|
|
@@ -48,7 +48,7 @@ const loadWorkflows = (workflowlistApi, numberOfWorkflows, setNumberOfWorkflows,
|
|
|
48
48
|
items: result.workflows.map((workflow) => mapToBcWorkflow(workflow))
|
|
49
49
|
};
|
|
50
50
|
});
|
|
51
|
-
const reloadWorkflows = (workflowlistApi, numberOfWorkflows, setNumberOfWorkflows, existingModuleDefinitions, setModulesOfWorkflows, existingWorkflowDefinitions, setDefinitionsOfWorkflows, numberOfItems, knownItemsIds, initialTimestamp, searchQueries, sort, sortAscending, mapToBcWorkflow) => __async(void 0, null, function* () {
|
|
51
|
+
const reloadWorkflows = (workflowlistApi, numberOfWorkflows, setNumberOfWorkflows, existingModuleDefinitions, setModulesOfWorkflows, existingWorkflowDefinitions, setDefinitionsOfWorkflows, numberOfItems, knownItemsIds, initialTimestamp, searchQueries, sort, sortAscending, mapToBcWorkflow, mode) => __async(void 0, null, function* () {
|
|
52
52
|
const result = yield workflowlistApi.getWorkflowsUpdate(
|
|
53
53
|
(/* @__PURE__ */ new Date()).getTime().toString(),
|
|
54
54
|
numberOfItems,
|
|
@@ -56,7 +56,8 @@ const reloadWorkflows = (workflowlistApi, numberOfWorkflows, setNumberOfWorkflow
|
|
|
56
56
|
sort,
|
|
57
57
|
sortAscending,
|
|
58
58
|
searchQueries,
|
|
59
|
-
initialTimestamp
|
|
59
|
+
initialTimestamp,
|
|
60
|
+
mode
|
|
60
61
|
);
|
|
61
62
|
if (numberOfWorkflows !== result.page.totalElements) {
|
|
62
63
|
setNumberOfWorkflows(result.page.totalElements);
|
|
@@ -448,7 +449,8 @@ const ListOfWorkflows = ({
|
|
|
448
449
|
columnHeader,
|
|
449
450
|
columnHeaderBackground = "dark-3",
|
|
450
451
|
columnHeaderSeparator = "light-6",
|
|
451
|
-
defaultSearchQueries = []
|
|
452
|
+
defaultSearchQueries = [],
|
|
453
|
+
mode
|
|
452
454
|
}) => {
|
|
453
455
|
const { isPhone, isTablet, isNotPhone } = useResponsiveScreen();
|
|
454
456
|
const wakeupSseCallback = useRef(void 0);
|
|
@@ -515,7 +517,8 @@ const ListOfWorkflows = ({
|
|
|
515
517
|
searchQueries,
|
|
516
518
|
void 0,
|
|
517
519
|
true,
|
|
518
|
-
mapToBcWorkflow
|
|
520
|
+
mapToBcWorkflow,
|
|
521
|
+
mode
|
|
519
522
|
);
|
|
520
523
|
});
|
|
521
524
|
if (workflows.current === void 0) {
|
|
@@ -816,7 +819,8 @@ const ListOfWorkflows = ({
|
|
|
816
819
|
searchQueries,
|
|
817
820
|
effectiveSort,
|
|
818
821
|
sortAscending,
|
|
819
|
-
mapToBcWorkflow
|
|
822
|
+
mapToBcWorkflow,
|
|
823
|
+
mode
|
|
820
824
|
)
|
|
821
825
|
),
|
|
822
826
|
reloadItems: (numberOfItems, updatedItemsIds, initialTimestamp) => (
|
|
@@ -835,7 +839,8 @@ const ListOfWorkflows = ({
|
|
|
835
839
|
searchQueries,
|
|
836
840
|
effectiveSort,
|
|
837
841
|
sortAscending,
|
|
838
|
-
mapToBcWorkflow
|
|
842
|
+
mapToBcWorkflow,
|
|
843
|
+
mode
|
|
839
844
|
)
|
|
840
845
|
)
|
|
841
846
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ShowLoadingIndicatorFunction
|
|
1
|
+
import { ShowLoadingIndicatorFunction } from '@vanillabp/bc-shared';
|
|
2
|
+
import { TranslationFunction } from '@vanillabp/bc-types';
|
|
2
3
|
|
|
3
4
|
declare const NoElementGivenByModule: ({ loading, retry, showLoadingIndicator, t, }: {
|
|
4
5
|
loading?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ShowLoadingIndicatorFunction
|
|
1
|
+
import { ShowLoadingIndicatorFunction } from '@vanillabp/bc-shared';
|
|
2
|
+
import { TranslationFunction } from '@vanillabp/bc-types';
|
|
2
3
|
|
|
3
4
|
declare const NoUserTaskGiven: ({ loading, retry, showLoadingIndicator, t, }: {
|
|
4
5
|
loading?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ShowLoadingIndicatorFunction
|
|
1
|
+
import { ShowLoadingIndicatorFunction } from '@vanillabp/bc-shared';
|
|
2
|
+
import { TranslationFunction } from '@vanillabp/bc-types';
|
|
2
3
|
|
|
3
4
|
declare const NoWorkflowGiven: ({ loading, retry, showLoadingIndicator, t, }: {
|
|
4
5
|
loading?: boolean | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { MutableRefObject, ReactNode } from 'react';
|
|
2
2
|
import { ColumnConfig } from 'grommet';
|
|
3
|
-
import {
|
|
3
|
+
import { ShowLoadingIndicatorFunction } from '@vanillabp/bc-shared';
|
|
4
4
|
import { BackgroundType, ColorType } from 'grommet/utils';
|
|
5
|
+
import { ListItemStatus } from '@vanillabp/bc-types';
|
|
5
6
|
|
|
6
7
|
declare type ListItemData = {
|
|
7
8
|
id: string;
|
|
@@ -7,7 +7,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
7
7
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
8
8
|
import { Box } from "grommet";
|
|
9
9
|
import { SnapScrollingDataTable } from "./SnapScrollingDataTable.js";
|
|
10
|
-
import { keepOldItemsInArray
|
|
10
|
+
import { keepOldItemsInArray } from "@vanillabp/bc-shared";
|
|
11
|
+
import { ListItemStatus } from "@vanillabp/bc-types";
|
|
11
12
|
const itemsBatchSize = 30;
|
|
12
13
|
;
|
|
13
14
|
;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Person } from '@vanillabp/bc-official-gui-client';
|
|
2
2
|
import { BorderType } from 'grommet/utils';
|
|
3
|
-
import { TranslationFunction } from '@vanillabp/bc-
|
|
3
|
+
import { TranslationFunction } from '@vanillabp/bc-types';
|
|
4
4
|
|
|
5
5
|
declare type UserAvatarProps = {
|
|
6
6
|
t: TranslationFunction;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { ShowLoadingIndicatorFunction, ToastFunction,
|
|
2
|
+
import { ShowLoadingIndicatorFunction, ToastFunction, UserTaskForm } from '@vanillabp/bc-shared';
|
|
3
|
+
import { TranslationFunction, BcUserTask } from '@vanillabp/bc-types';
|
|
3
4
|
import { OpenTaskFunction, NavigateToWorkflowFunction } from '../types/navigate.js';
|
|
4
5
|
import { TasklistApiHook } from '../types/apis.js';
|
|
5
6
|
import { AssignTaskFunction, ClaimTaskFunction } from '../types/lists.js';
|
|
6
7
|
import '@vanillabp/bc-official-gui-client';
|
|
7
|
-
import '@vanillabp/bc-official-gui-client/dist/models/UserTasks';
|
|
8
8
|
|
|
9
9
|
interface UserTaskPageProps {
|
|
10
10
|
userTaskId: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ShowLoadingIndicatorFunction, ToastFunction
|
|
1
|
+
import { ShowLoadingIndicatorFunction, ToastFunction } from '@vanillabp/bc-shared';
|
|
2
|
+
import { TranslationFunction } from '@vanillabp/bc-types';
|
|
2
3
|
import { OpenTaskFunction } from '../types/navigate.js';
|
|
3
4
|
import { WorkflowlistApiHook, TasklistApiHook } from '../types/apis.js';
|
|
4
5
|
import '@vanillabp/bc-official-gui-client';
|
|
5
|
-
import '@vanillabp/bc-official-gui-client/dist/models/UserTasks';
|
|
6
6
|
|
|
7
7
|
declare const WorkflowPage: ({ workflowId, showLoadingIndicator, toast, useWorkflowlistApi, useTasklistApi, openTask, t, }: {
|
|
8
8
|
workflowId: string | undefined;
|
|
@@ -14,6 +14,7 @@ export { UserAvatar } from './UserAvatar.js';
|
|
|
14
14
|
export { User } from './User.js';
|
|
15
15
|
export { CustomWorkflowModuleComponent } from './CustomWorkflowModuleComponent.js';
|
|
16
16
|
import '@vanillabp/bc-shared';
|
|
17
|
+
import '@vanillabp/bc-types';
|
|
17
18
|
import 'grommet';
|
|
18
19
|
import 'styled-components';
|
|
19
20
|
import 'csstype';
|
|
@@ -23,5 +24,4 @@ import '../utils/module-federation.js';
|
|
|
23
24
|
import '@vanillabp/bc-official-gui-client';
|
|
24
25
|
import '../types/navigate.js';
|
|
25
26
|
import '../types/apis.js';
|
|
26
|
-
import '@vanillabp/bc-official-gui-client/dist/models/UserTasks';
|
|
27
27
|
import '../types/lists.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -19,10 +19,10 @@ export { NavigateToWorkflowFunction, OpenTaskFunction } from './types/navigate.j
|
|
|
19
19
|
export { TasklistApi, TasklistApiHook, WakeupSseCallbackReference, WorkflowlistApi, WorkflowlistApiHook } from './types/apis.js';
|
|
20
20
|
export { AssignTaskFunction, ClaimTaskFunction, ListOfTasksHeaderFooterFunction, ListOfWorkflowsHeaderFooterFunction } from './types/lists.js';
|
|
21
21
|
import '@vanillabp/bc-shared';
|
|
22
|
+
import '@vanillabp/bc-types';
|
|
22
23
|
import 'grommet';
|
|
23
24
|
import 'styled-components';
|
|
24
25
|
import 'csstype';
|
|
25
26
|
import 'react';
|
|
26
27
|
import 'grommet/utils';
|
|
27
28
|
import '@vanillabp/bc-official-gui-client';
|
|
28
|
-
import '@vanillabp/bc-official-gui-client/dist/models/UserTasks';
|
package/dist/types/apis.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { WakeupSseCallback } from '@vanillabp/bc-shared';
|
|
2
|
-
import { SearchQuery, UserTask, UserSearchResult, KwicResult, Workflows, Workflow } from '@vanillabp/bc-official-gui-client';
|
|
3
|
-
import { UserTasks } from '@vanillabp/bc-official-gui-client/dist/models/UserTasks';
|
|
2
|
+
import { SearchQuery, UserTaskRetrieveMode, UserTasks, UserTask, UserSearchResult, KwicResult, WorkflowRetrieveMode, Workflows, Workflow } from '@vanillabp/bc-official-gui-client';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* This helps to initialize the given API hook late by
|
|
@@ -10,8 +9,8 @@ import { UserTasks } from '@vanillabp/bc-official-gui-client/dist/models/UserTas
|
|
|
10
9
|
interface WakeupSseCallbackReference {
|
|
11
10
|
current: WakeupSseCallback | undefined;
|
|
12
11
|
}
|
|
13
|
-
declare type TasklistApiCall = (listId: string, pageNumber: number, pageSize: number, sort: string | undefined, sortAscending: boolean, searchQueries?: Array<SearchQuery>, initialTimestamp?: Date) => Promise<UserTasks>;
|
|
14
|
-
declare type TasklistUpdateCall = (listId: string, size: number, knownUserTasksIds: Array<string>, sort: string | undefined, sortAscending: boolean, searchQueries?: Array<SearchQuery>, initialTimestamp?: Date) => Promise<UserTasks>;
|
|
12
|
+
declare type TasklistApiCall = (listId: string, pageNumber: number, pageSize: number, sort: string | undefined, sortAscending: boolean, searchQueries?: Array<SearchQuery>, initialTimestamp?: Date, mode?: UserTaskRetrieveMode) => Promise<UserTasks>;
|
|
13
|
+
declare type TasklistUpdateCall = (listId: string, size: number, knownUserTasksIds: Array<string>, sort: string | undefined, sortAscending: boolean, searchQueries?: Array<SearchQuery>, initialTimestamp?: Date, mode?: UserTaskRetrieveMode) => Promise<UserTasks>;
|
|
15
14
|
declare type TasklistMarkAsReadCall = (userTaskId: string, unread?: boolean) => void;
|
|
16
15
|
declare type TasklistMarkMultipleAsReadCall = (userTaskIds: Array<string>, unread?: boolean) => void;
|
|
17
16
|
declare type TasklistClaimTaskCall = (userTaskId: string, unclaim?: boolean) => void;
|
|
@@ -34,8 +33,8 @@ interface TasklistApi {
|
|
|
34
33
|
findUsers: FindUsersCall;
|
|
35
34
|
kwicUserTasks: KwicUserTasksApiCall;
|
|
36
35
|
}
|
|
37
|
-
declare type GetWorkflowsApiCall = (requestId: string, pageNumber: number, pageSize: number, sort: string | undefined, sortAscending: boolean, searchQueries?: Array<SearchQuery>, initialTimestamp?: Date) => Promise<Workflows>;
|
|
38
|
-
declare type GetWorkflowsUpdateApiCall = (requestId: string, size: number, knownWorkflowsIds: Array<string>, sort: string | undefined, sortAscending: boolean, searchQueries?: Array<SearchQuery>, initialTimestamp?: Date) => Promise<Workflows>;
|
|
36
|
+
declare type GetWorkflowsApiCall = (requestId: string, pageNumber: number, pageSize: number, sort: string | undefined, sortAscending: boolean, searchQueries?: Array<SearchQuery>, initialTimestamp?: Date, mode?: WorkflowRetrieveMode) => Promise<Workflows>;
|
|
37
|
+
declare type GetWorkflowsUpdateApiCall = (requestId: string, size: number, knownWorkflowsIds: Array<string>, sort: string | undefined, sortAscending: boolean, searchQueries?: Array<SearchQuery>, initialTimestamp?: Date, mode?: WorkflowRetrieveMode) => Promise<Workflows>;
|
|
39
38
|
declare type GetUserTasksOfWorkflowApiCall = (workflowId: string, activeOnlyRequested?: boolean, limitListAccordingToCurrentUsersPermissions?: boolean) => Promise<Array<UserTask>>;
|
|
40
39
|
declare type GetWorkflowApiCall = (workflowId: string) => Promise<Workflow>;
|
|
41
40
|
declare type KwicWorkflowsApiCall = (query: string, path?: string, searchQueries?: Array<SearchQuery>, initialTimestamp?: Date) => Promise<Array<KwicResult>>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export { TasklistApi, TasklistApiHook, WakeupSseCallbackReference, WorkflowlistA
|
|
|
3
3
|
export { AssignTaskFunction, ClaimTaskFunction, ListOfTasksHeaderFooterFunction, ListOfWorkflowsHeaderFooterFunction } from './lists.js';
|
|
4
4
|
import '@vanillabp/bc-official-gui-client';
|
|
5
5
|
import '@vanillabp/bc-shared';
|
|
6
|
-
import '@vanillabp/bc-official-gui-client/dist/models/UserTasks';
|
|
7
6
|
import 'react';
|
|
7
|
+
import '@vanillabp/bc-types';
|
package/dist/types/lists.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { UserTask } from '@vanillabp/bc-official-gui-client';
|
|
3
|
-
import { Column } from '@vanillabp/bc-
|
|
3
|
+
import { Column } from '@vanillabp/bc-types';
|
|
4
4
|
|
|
5
5
|
declare type ListOfTasksHeaderFooterFunction = (isPhone: boolean, isTablet: boolean, numberOfTasks: number, columns: Column[] | undefined, sort: string | undefined, setSort: (column?: Column) => void, sortAscending: boolean, setSortAscending: (sortAscending: boolean) => void, selectAll: (select: boolean) => void, allSelected: boolean, refresh: () => void, refreshDisabled: boolean, markAsRead: () => void, markAsUnread: () => void, markAsReadDisabled: boolean, claimTasks: () => void, unclaimTasks: () => void, claimTasksDisabled: boolean, assignTasks: (userId: string) => void, assignDisabled: boolean) => ReactNode | undefined;
|
|
6
6
|
declare type AssignTaskFunction = (userTask: UserTask, userId: string, unassign: boolean) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Column } from '@vanillabp/bc-
|
|
1
|
+
import { Column } from '@vanillabp/bc-types';
|
|
2
2
|
|
|
3
3
|
declare const sortWithoutColumnTypeSpecificAttributes: (currentLanguage: string, effectiveSort?: string) => string | undefined;
|
|
4
4
|
declare const sortWithColumnTypeSpecificAttributes: (currentLanguage: string, column?: Column) => string | undefined;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { Module, ModuleDefinition, TasklistCellProps, UiUriType, WorkflowCellProps, attachScript, detachScript, useFederationModule, useFederationModules } from './module-federation.js';
|
|
2
2
|
export { sortWithColumnTypeSpecificAttributes, sortWithoutColumnTypeSpecificAttributes } from './column-type.js';
|
|
3
3
|
import '@vanillabp/bc-shared';
|
|
4
|
+
import '@vanillabp/bc-types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserTaskForm, UserTaskListCell, WorkflowListCell, WorkflowPage } from '@vanillabp/bc-shared';
|
|
2
|
+
import { ColumnsOfUserTaskFunction, ColumnsOfWorkflowFunction } from '@vanillabp/bc-types';
|
|
2
3
|
|
|
3
4
|
declare enum UiUriType {
|
|
4
5
|
External = "EXTERNAL",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vanillabp/bc-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
"package.json"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@vanillabp/bc-official-gui-client": "0.1.
|
|
20
|
-
"@vanillabp/bc-shared": "0.1.
|
|
19
|
+
"@vanillabp/bc-official-gui-client": "0.1.4",
|
|
20
|
+
"@vanillabp/bc-shared": "0.1.4",
|
|
21
|
+
"@vanillabp/bc-types": "0.1.4"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|
|
23
24
|
"@fontsource/roboto": "4.5.8",
|
|
@@ -58,9 +59,9 @@
|
|
|
58
59
|
"build-storybook": "storybook build",
|
|
59
60
|
"start": "tsup --watch",
|
|
60
61
|
"build": "tsup",
|
|
61
|
-
"unpublish:snapshot": "npm unpublish --force",
|
|
62
|
+
"unpublish:snapshot": "npm view --@vanillabp:registry=\"${NPM_REGISTRY}\" > /dev/null 2>&1 && npm unpublish --@vanillabp:registry=\"${NPM_REGISTRY}\" --force || echo \"Package not present – skipping unpublish\"",
|
|
62
63
|
"publish:snapshot": "npm publish --tag snapshot",
|
|
63
|
-
"version:snapshot": "npm version ${npm_config_newversion} --no-git-tag-version",
|
|
64
|
+
"version:snapshot": "npm version ${npm_config_newversion} --no-git-tag-version --allow-same-version",
|
|
64
65
|
"publish:release": "npm publish --access public"
|
|
65
66
|
}
|
|
66
67
|
}
|