@vanillabp/bc-ui 0.0.22 → 0.1.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/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 +2 -2
- package/dist/components/ListOfWorkflows.d.ts +2 -2
- 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 +1 -2
- 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 +4 -3
|
@@ -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,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SearchQuery } from '@vanillabp/bc-official-gui-client';
|
|
3
|
-
import { ShowLoadingIndicatorFunction, GuiSseHook,
|
|
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
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, }: {
|
|
11
11
|
showLoadingIndicator: ShowLoadingIndicatorFunction;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { SearchQuery } from '@vanillabp/bc-official-gui-client';
|
|
3
|
-
import { ShowLoadingIndicatorFunction, GuiSseHook,
|
|
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
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, }: {
|
|
11
11
|
showLoadingIndicator: ShowLoadingIndicatorFunction;
|
|
@@ -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, UserTasks, UserTask, UserSearchResult, KwicResult, Workflows, Workflow } from '@vanillabp/bc-official-gui-client';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* This helps to initialize the given API hook late by
|
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.
|
|
3
|
+
"version": "0.1.1",
|
|
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.
|
|
20
|
-
"@vanillabp/bc-shared": "0.
|
|
19
|
+
"@vanillabp/bc-official-gui-client": "0.1.1",
|
|
20
|
+
"@vanillabp/bc-shared": "0.1.1",
|
|
21
|
+
"@vanillabp/bc-types": "0.1.1"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|
|
23
24
|
"@fontsource/roboto": "4.5.8",
|