beca-ui 2.0.19-beta.9 → 2.0.19-beta.91
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/ConvertVietnameseNumber.js +136 -0
- package/dist/DynamicWorkflowScript.js +1142 -0
- package/dist/beca-ui.js +146792 -117190
- package/dist/components/Button/Button.types.d.ts +8 -4
- package/dist/components/Button/index.d.ts +1 -2
- package/dist/components/Layout/Layout.d.ts +1 -10
- package/dist/components/Layout/index.d.ts +1 -0
- package/dist/components/MainLayout/Header/Header.d.ts +2 -2
- package/dist/components/MainLayout/Header/Header.types.d.ts +3 -3
- package/dist/components/MainLayout/MainLayout.types.d.ts +3 -3
- package/dist/components/MainLayout/SideBarMenu/SideBarMenu.types.d.ts +2 -2
- package/dist/components/Menu/Menu.types.d.ts +2 -2
- package/dist/components/Menu/index.d.ts +1 -2
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/ScrollView/ScrollView.types.d.ts +2 -15
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/WorkflowForm/WorkflowForm.types.d.ts +3 -1
- package/dist/components/WorkflowForm/components/AddRelatedWorkModal.d.ts +13 -0
- package/dist/components/WorkflowForm/components/DynamicAttachTable/DynamicAttachTable.d.ts +1 -1
- package/dist/components/{BecaCard → WorkflowForm/components/DynamicAttachTable/components}/BecaCard.d.ts +1 -1
- package/dist/components/{BecaCard → WorkflowForm/components/DynamicAttachTable/components}/BecaCard.types.d.ts +1 -1
- package/dist/components/WorkflowForm/components/NewUserWorkflow/ProcessModal.d.ts +25 -0
- package/dist/components/WorkflowForm/components/ProcessSection/ProcessDetailModal.d.ts +13 -0
- package/dist/components/WorkflowForm/components/ProcessSection/ProcessSection.d.ts +12 -0
- package/dist/components/WorkflowForm/components/ProcessStepItem.d.ts +16 -0
- package/dist/components/WorkflowForm/components/RelatedUserWorkflowSection.d.ts +13 -0
- package/dist/components/WorkflowForm/components/UserWorkflowShare/AddUserWorkflowShareModal.d.ts +10 -0
- package/dist/components/WorkflowForm/components/UserWorkflowShare/UpdateUserWorkflowShareModal.d.ts +8 -0
- package/dist/components/WorkflowForm/deviceHooks.d.ts +2 -1
- package/dist/components/WorkflowForm/extensions/image-extensions.json.d.ts +125 -0
- package/dist/components/WorkflowForm/extensions/video-extensions.json.d.ts +4 -0
- package/dist/components/WorkflowForm/hooks/processHooks.d.ts +15 -0
- package/dist/components/WorkflowForm/models/AddUserWorkflowShareModel.d.ts +1 -1
- package/dist/components/WorkflowForm/models/UserWorkflowModel.d.ts +1 -1
- package/dist/components/WorkflowForm/models/UserWorkflowShareModel.d.ts +1 -1
- package/dist/components/WorkflowForm/models/WorkflowStepModel.d.ts +7 -2
- package/dist/components/WorkflowForm/models/flowModels/FlowModel.d.ts +6 -0
- package/dist/components/WorkflowForm/models/flowModels/InitialDataModel.d.ts +3 -0
- package/dist/components/WorkflowForm/models/flowModels/{IInitialEdgeModel.d.ts → InitialEdgeModel.d.ts} +1 -1
- package/dist/components/WorkflowForm/models/flowModels/InitialNodeModels.d.ts +14 -0
- package/dist/components/WorkflowForm/models/flowModels/InitialPositionModel.d.ts +4 -0
- package/dist/components/WorkflowForm/models/flowModels/{IInitialStyleModel.d.ts → InitialStyleModel.d.ts} +1 -1
- package/dist/components/WorkflowForm/models/ui/index.d.ts +1 -1
- package/dist/components/WorkflowForm/services/{DataServices.d.ts → DataServices2.d.ts} +2 -2
- package/dist/components/WorkflowForm/services/PermissionService.d.ts +6 -0
- package/dist/components/WorkflowForm/services/SendWorkflowService.d.ts +1 -1
- package/dist/components/WorkflowForm/services/UserCheckListService.d.ts +1 -1
- package/dist/components/WorkflowForm/services/UserWorkflowService.d.ts +1 -1
- package/dist/components/WorkflowForm/services/UserWorkflowShareService.d.ts +15 -0
- package/dist/components/WorkflowForm/services/WorkflowService.d.ts +67 -0
- package/dist/components/WorkflowForm/services/index.d.ts +22 -0
- package/dist/components/WorkflowForm/utils/index.d.ts +0 -4
- package/dist/components/index.d.ts +1 -1
- package/dist/data/LocalesTexts/EnglishTexts.d.ts +4 -0
- package/dist/data/LocalesTexts/VietnameseTexts.d.ts +4 -0
- package/dist/data/SideBarMenu.d.ts +2 -2
- package/dist/hooks/ApiHooks.d.ts +23 -0
- package/dist/hooks/LocaleHook.d.ts +4 -0
- package/dist/hooks/WorkflowHooks.d.ts +49 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/main.css +1 -1
- package/dist/models/Core/Result.d.ts +1 -1
- package/dist/models/Layout/{IMenuModel.d.ts → MenuModel.d.ts} +3 -3
- package/dist/models/Layout/SideBarMenuModel.d.ts +5 -0
- package/dist/models/Layout/index.d.ts +2 -2
- package/dist/models/{IPersonalProfileModel.d.ts → PersonalProfileModel.d.ts} +1 -1
- package/dist/models/SupportContactModel.d.ts +8 -0
- package/dist/models/index.d.ts +2 -2
- package/dist/services/LayoutService.d.ts +4 -4
- package/dist/theme/styles.d.ts +2 -1
- package/package.json +32 -29
- package/dist/components/BecaCard/index.d.ts +0 -2
- package/dist/components/WorkflowForm/models/flowModels/IFlowModel.d.ts +0 -6
- package/dist/components/WorkflowForm/models/flowModels/IInitialDataModel.d.ts +0 -3
- package/dist/components/WorkflowForm/models/flowModels/IInitialNodeModels.d.ts +0 -14
- package/dist/components/WorkflowForm/models/flowModels/IInitialPositionModel.d.ts +0 -4
- package/dist/models/ISupportContactModel.d.ts +0 -8
- package/dist/models/Layout/ISideBarMenuModel.d.ts +0 -5
- /package/dist/{theme → components/WorkflowForm/theme}/Colors.d.ts +0 -0
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
export type ButtonType = "primary" | "dashed" | "text" | "link" | "default";
|
|
3
|
+
export type ButtonShape = "round" | "default" | "circle";
|
|
4
|
+
export type ButtonStatus = "default" | "success" | "info" | "warning" | "danger";
|
|
5
|
+
export type ButtonSize = "small" | "medium" | "large";
|
|
2
6
|
export interface ButtonProps extends Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "size" | "type"> {
|
|
3
7
|
/** Provide a text to the button */
|
|
4
|
-
size?:
|
|
8
|
+
size?: ButtonSize;
|
|
5
9
|
secondary?: boolean;
|
|
6
|
-
status?:
|
|
7
|
-
type?:
|
|
8
|
-
shape?:
|
|
10
|
+
status?: ButtonStatus;
|
|
11
|
+
type?: ButtonType;
|
|
12
|
+
shape?: ButtonShape;
|
|
9
13
|
icon?: React.ReactNode;
|
|
10
14
|
disabled?: boolean;
|
|
11
15
|
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SiderProps } from "antd";
|
|
3
|
-
import { BasicProps } from "antd/lib/layout/layout";
|
|
4
|
-
import { LayoutProps } from ".";
|
|
5
|
-
declare const Layout: React.FunctionComponent<LayoutProps> & {
|
|
6
|
-
Header: React.ForwardRefExoticComponent<BasicProps & React.RefAttributes<HTMLElement>>;
|
|
7
|
-
Footer: React.ForwardRefExoticComponent<BasicProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
-
Sider: React.ForwardRefExoticComponent<SiderProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
Content: React.ForwardRefExoticComponent<BasicProps & React.RefAttributes<HTMLElement>>;
|
|
10
|
-
};
|
|
1
|
+
import { Layout } from "antd";
|
|
11
2
|
export default Layout;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ExtraHeaderProps, HeaderProps
|
|
2
|
-
declare const _default: import("react").ForwardRefExoticComponent<HeaderProps & ExtraHeaderProps & import("react").RefAttributes<NotificationRef>>;
|
|
1
|
+
import { ExtraHeaderProps, HeaderProps } from "./Header.types";
|
|
2
|
+
declare const _default: import("react").ForwardRefExoticComponent<HeaderProps & ExtraHeaderProps & import("react").RefAttributes<import("./Header.types").NotificationRef>>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { PersonalProfileModel, SupportContactModel } from "../../../models";
|
|
3
3
|
import { ApplicationsCardProps } from "../../ApplicationsCard";
|
|
4
4
|
import { MenuItemType } from "../../Menu";
|
|
5
5
|
import { LANGUAGE } from "../../ConfigProvider";
|
|
@@ -22,7 +22,7 @@ export interface HeaderProps extends ApplicationsCardProps {
|
|
|
22
22
|
profileMenuItems?: MenuItemType[];
|
|
23
23
|
homePageUrl: string;
|
|
24
24
|
customHeader?: React.ReactNode;
|
|
25
|
-
supportContactData:
|
|
25
|
+
supportContactData: SupportContactModel[];
|
|
26
26
|
notification?: NotificationProps;
|
|
27
27
|
LinkComponent: any;
|
|
28
28
|
isSwitchTheme?: boolean;
|
|
@@ -31,7 +31,7 @@ export interface HeaderProps extends ApplicationsCardProps {
|
|
|
31
31
|
onChangeLocale?: (locale: LANGUAGE) => void;
|
|
32
32
|
lang: LANGUAGE;
|
|
33
33
|
scrolled?: boolean;
|
|
34
|
-
personalProfile:
|
|
34
|
+
personalProfile: PersonalProfileModel;
|
|
35
35
|
config?: MainLayoutConfig;
|
|
36
36
|
}
|
|
37
37
|
export type ThemeType = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SideBarMenuProps } from "./SideBarMenu";
|
|
3
3
|
import { HeaderProps, NotificationRef } from "./Header";
|
|
4
|
-
import {
|
|
5
|
-
export type MainTheme = "Beca" | "Office";
|
|
4
|
+
import { SideBarMenuModel } from "../../models";
|
|
5
|
+
export type MainTheme = "Beca" | "Office" | "SHE";
|
|
6
6
|
export interface MainLayoutProps extends Omit<SideBarMenuProps, "sideBarMenus">, HeaderProps {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
onChangeCollapse?: (collapsed: boolean) => void;
|
|
9
|
-
sideBarMenus:
|
|
9
|
+
sideBarMenus: SideBarMenuModel[] | (() => SideBarMenuModel[]);
|
|
10
10
|
LinkComponent: any;
|
|
11
11
|
isSwitchTheme?: boolean;
|
|
12
12
|
className?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { SideBarMenuModel } from "../../../models";
|
|
3
3
|
export interface SideBarMenuProps {
|
|
4
|
-
sideBarMenus:
|
|
4
|
+
sideBarMenus: SideBarMenuModel[];
|
|
5
5
|
activeMenu?: string;
|
|
6
6
|
openMenuKeys?: string[];
|
|
7
7
|
pathname: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MenuProps as AntMenuProps, Menu } from "antd";
|
|
2
|
-
import { MenuItemType } from "antd/es/menu/interface";
|
|
2
|
+
import { MenuItemType, ItemType } from "antd/es/menu/interface";
|
|
3
3
|
type AntMenuItemProps = typeof Menu.Item;
|
|
4
4
|
export interface MenuProps extends AntMenuProps {
|
|
5
5
|
}
|
|
6
6
|
export interface MenuItemProps extends AntMenuItemProps {
|
|
7
7
|
}
|
|
8
|
-
export type { MenuItemType };
|
|
8
|
+
export type { MenuItemType, ItemType };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PaginationProps } from ".";
|
|
3
|
-
export declare const paginationItemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", originalElement: React.ReactNode, size?: "default" | "small" | undefined) => string | number |
|
|
3
|
+
export declare const paginationItemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", originalElement: React.ReactNode, size?: "default" | "small" | undefined) => string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
4
4
|
export declare const Pagination: React.FunctionComponent<PaginationProps>;
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
heightRelativeToParent?: string;
|
|
4
|
-
onScroll?: (event: UIEvent) => void;
|
|
5
|
-
addScrolledClass?: boolean;
|
|
6
|
-
freezePosition?: boolean;
|
|
7
|
-
handleClass?: string;
|
|
8
|
-
minScrollHandleHeight?: number;
|
|
9
|
-
flex?: string;
|
|
10
|
-
rtl?: boolean;
|
|
11
|
-
scrollTo?: number;
|
|
12
|
-
keepAtBottom?: boolean;
|
|
13
|
-
className?: string;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
}
|
|
1
|
+
import { Props } from "simplebar-react";
|
|
2
|
+
export type ScrollViewProps = Props;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SelectProps, OptionProps, PopupPosition, SelectRefs } from "./Select.types";
|
|
1
|
+
import { SelectProps, OptionProps, PopupPosition, SelectRefs, BaseSelectRef } from "./Select.types";
|
|
2
2
|
export { default as Select } from "./Select";
|
|
3
|
-
export type { SelectProps, OptionProps, PopupPosition, SelectRefs };
|
|
3
|
+
export type { SelectProps, OptionProps, PopupPosition, SelectRefs, BaseSelectRef, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme } from "../MainLayout";
|
|
2
2
|
import { LANGUAGE } from "../ConfigProvider";
|
|
3
|
-
type WorkflowType = "Resource" | "Application" | "Workflow" | "Public";
|
|
3
|
+
export type WorkflowType = "Resource" | "Application" | "Workflow" | "Public";
|
|
4
4
|
export interface WorkflowFormProps {
|
|
5
5
|
theme?: Theme;
|
|
6
6
|
userWorkflowId?: number;
|
|
@@ -18,6 +18,8 @@ export interface WorkflowFormProps {
|
|
|
18
18
|
preventScrollReset?: boolean;
|
|
19
19
|
unstable_viewTransition?: boolean;
|
|
20
20
|
}) => void;
|
|
21
|
+
closeProcessModal?: (isAccepted: boolean, isError?: boolean) => void;
|
|
22
|
+
onDrafted?: () => void;
|
|
21
23
|
}
|
|
22
24
|
interface WorkflowFormContextType {
|
|
23
25
|
theme: Theme;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UserWorkflowModel } from "../models/UserWorkflowModel";
|
|
3
|
+
type Props = {
|
|
4
|
+
isVisible: boolean;
|
|
5
|
+
selectedData?: UserWorkflowModel[];
|
|
6
|
+
currentUserWorkflowId?: React.Key;
|
|
7
|
+
onPick?: (items: UserWorkflowModel[]) => void;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
relatedUserWorkflows: UserWorkflowModel[];
|
|
10
|
+
isAdmin: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare function AddRelatedWorkModal({ isVisible, selectedData, currentUserWorkflowId, onPick, onCancel, relatedUserWorkflows, isAdmin, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default AddRelatedWorkModal;
|
|
@@ -7,7 +7,7 @@ interface DynamicAttachTableProps {
|
|
|
7
7
|
userWorkflowId?: number;
|
|
8
8
|
attachForm: FormInstance<any>;
|
|
9
9
|
maximumSizeSingle?: number;
|
|
10
|
-
isAttachmentActive
|
|
10
|
+
isAttachmentActive?: boolean;
|
|
11
11
|
actions: UserWorkflowActionsModel;
|
|
12
12
|
attachDataSource: AttachDataType[];
|
|
13
13
|
onChangeAttachDataSource?: (files: AttachDataType[]) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BecaCardProps } from ".";
|
|
1
|
+
import { BecaCardProps } from "./BecaCard.types";
|
|
2
2
|
export declare const BecaCard: (props: BecaCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { CSSProperties } from "react";
|
|
2
|
-
import { DivProps } from "
|
|
2
|
+
import { DivProps } from "../../../models/ui";
|
|
3
3
|
export type StatusType = "success" | "warning" | "danger" | "info";
|
|
4
4
|
export interface BecaCardStatusType {
|
|
5
5
|
status: StatusType;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ProcessStatusModel } from "../../models/ProcessStatusModel";
|
|
2
|
+
interface ProcessModalProps {
|
|
3
|
+
workflowId: number;
|
|
4
|
+
userWorkflowId: number;
|
|
5
|
+
isVisible: boolean;
|
|
6
|
+
defaultWorkflowPriority?: string;
|
|
7
|
+
onCancel?: (isAccepted: boolean, isError?: true) => void;
|
|
8
|
+
isDetail?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare function ProcessModal({ workflowId, userWorkflowId, isVisible, onCancel, defaultWorkflowPriority, isDetail, }: ProcessModalProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
interface StepProps {
|
|
12
|
+
step: ProcessStatusModel;
|
|
13
|
+
index: number;
|
|
14
|
+
onClickTitle?: () => void;
|
|
15
|
+
onMultiChange?: (userIds: number[]) => void;
|
|
16
|
+
isPrint?: boolean;
|
|
17
|
+
showIcon?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function StepItem(props: StepProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
interface StatusIconProps {
|
|
21
|
+
step: ProcessStatusModel;
|
|
22
|
+
size?: number;
|
|
23
|
+
}
|
|
24
|
+
export declare const StatusIcon: ({ step, size }: StatusIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export default ProcessModal;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ColumnsType } from "../../..";
|
|
2
|
+
import { ProcessItemModel } from "../../models/ProcessItemModel";
|
|
3
|
+
import { FlowModel } from "../../models/flowModels/FlowModel";
|
|
4
|
+
type Props = {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
data: ProcessItemModel[];
|
|
8
|
+
columns: ColumnsType;
|
|
9
|
+
userWorkflowId: number;
|
|
10
|
+
flow?: FlowModel;
|
|
11
|
+
};
|
|
12
|
+
declare function ProcessDetailModal(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default ProcessDetailModal;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UserWorkflowActionsModel } from "../../models/UserWorkflowActionsModel";
|
|
2
|
+
import { ProcessItemModel } from "../../models/ProcessItemModel";
|
|
3
|
+
interface ProcessSectionProps {
|
|
4
|
+
userWorkflowId: number;
|
|
5
|
+
actions?: UserWorkflowActionsModel;
|
|
6
|
+
editedUserWorkflowSteps?: any[];
|
|
7
|
+
onChangeEditedUserWorkflowSteps?: (workflowStpes: any[]) => void;
|
|
8
|
+
onChangeProcess?: (process: ProcessItemModel[]) => void;
|
|
9
|
+
onToggleRelatedWorkflowsModal?: (open?: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ProcessSection: (props: ProcessSectionProps) => false | import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ProcessStatusModel } from "../models/ProcessStatusModel";
|
|
2
|
+
interface ProcessStepItemProps {
|
|
3
|
+
step: ProcessStatusModel;
|
|
4
|
+
index: number;
|
|
5
|
+
onClickTitle?: () => void;
|
|
6
|
+
onMultiChange?: (userIds: number[]) => void;
|
|
7
|
+
isPrint?: boolean;
|
|
8
|
+
showIcon?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function ProcessStepItem(props: ProcessStepItemProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
interface StatusIconProps {
|
|
12
|
+
step: ProcessStatusModel;
|
|
13
|
+
size?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const StatusIcon: ({ step, size }: StatusIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WorkflowType } from "../models/enums/WorkflowType";
|
|
2
|
+
import { UserWorkflowActionsModel } from "../models/UserWorkflowActionsModel";
|
|
3
|
+
import { UserWorkflowModel } from "../models/UserWorkflowModel";
|
|
4
|
+
interface RelatedUserWorkflowSectionProps {
|
|
5
|
+
userWorkflowId: number;
|
|
6
|
+
actions: UserWorkflowActionsModel;
|
|
7
|
+
dataSource: UserWorkflowModel[];
|
|
8
|
+
onChange: (data: UserWorkflowModel[]) => void;
|
|
9
|
+
workflowType?: WorkflowType;
|
|
10
|
+
isPrint?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const RelatedUserWorkflowSection: (props: RelatedUserWorkflowSectionProps) => false | import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
package/dist/components/WorkflowForm/components/UserWorkflowShare/AddUserWorkflowShareModal.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UserWorkflowShareModel } from "../../models/UserWorkflowShareModel";
|
|
2
|
+
interface AddUserWorkflowShareModalProps {
|
|
3
|
+
userWorkflowId?: number;
|
|
4
|
+
isVisible: boolean;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
data: UserWorkflowShareModel[];
|
|
7
|
+
onChange?: (data: UserWorkflowShareModel[]) => void;
|
|
8
|
+
}
|
|
9
|
+
declare function AddUserWorkflowShareModal({ isVisible, onCancel, data, onChange, }: AddUserWorkflowShareModalProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default AddUserWorkflowShareModal;
|
package/dist/components/WorkflowForm/components/UserWorkflowShare/UpdateUserWorkflowShareModal.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
userWorkflowId: number;
|
|
3
|
+
isVisible: boolean;
|
|
4
|
+
onCancel: () => void;
|
|
5
|
+
currentEmail?: string;
|
|
6
|
+
};
|
|
7
|
+
declare function UpdateUserWorkflowShareModal({ userWorkflowId, isVisible, onCancel, currentEmail, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default UpdateUserWorkflowShareModal;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
1
2
|
export declare function useDevice(): {
|
|
2
3
|
screenWidth: number;
|
|
3
4
|
screenHeight: number;
|
|
@@ -12,4 +13,4 @@ export declare function useView(element: string): {
|
|
|
12
13
|
export declare const useReachedBottom: () => {
|
|
13
14
|
isReachedBottom: boolean;
|
|
14
15
|
};
|
|
15
|
-
export declare function useOuterClick(callback: (e?: MouseEvent) => void):
|
|
16
|
+
export declare function useOuterClick(callback: (e?: MouseEvent) => void): RefObject<HTMLDivElement | null>;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
declare const _default: [
|
|
2
|
+
"ase",
|
|
3
|
+
"art",
|
|
4
|
+
"bmp",
|
|
5
|
+
"blp",
|
|
6
|
+
"cd5",
|
|
7
|
+
"cit",
|
|
8
|
+
"cpt",
|
|
9
|
+
"cr2",
|
|
10
|
+
"cut",
|
|
11
|
+
"dds",
|
|
12
|
+
"dib",
|
|
13
|
+
"djvu",
|
|
14
|
+
"egt",
|
|
15
|
+
"exif",
|
|
16
|
+
"gif",
|
|
17
|
+
"gpl",
|
|
18
|
+
"grf",
|
|
19
|
+
"icns",
|
|
20
|
+
"ico",
|
|
21
|
+
"iff",
|
|
22
|
+
"jng",
|
|
23
|
+
"jpeg",
|
|
24
|
+
"jpg",
|
|
25
|
+
"jfif",
|
|
26
|
+
"jp2",
|
|
27
|
+
"jps",
|
|
28
|
+
"lbm",
|
|
29
|
+
"max",
|
|
30
|
+
"miff",
|
|
31
|
+
"mng",
|
|
32
|
+
"msp",
|
|
33
|
+
"nitf",
|
|
34
|
+
"ota",
|
|
35
|
+
"pbm",
|
|
36
|
+
"pc1",
|
|
37
|
+
"pc2",
|
|
38
|
+
"pc3",
|
|
39
|
+
"pcf",
|
|
40
|
+
"pcx",
|
|
41
|
+
"pdn",
|
|
42
|
+
"pgm",
|
|
43
|
+
"PI1",
|
|
44
|
+
"PI2",
|
|
45
|
+
"PI3",
|
|
46
|
+
"pict",
|
|
47
|
+
"pct",
|
|
48
|
+
"pnm",
|
|
49
|
+
"pns",
|
|
50
|
+
"ppm",
|
|
51
|
+
"psb",
|
|
52
|
+
"psd",
|
|
53
|
+
"pdd",
|
|
54
|
+
"psp",
|
|
55
|
+
"px",
|
|
56
|
+
"pxm",
|
|
57
|
+
"pxr",
|
|
58
|
+
"qfx",
|
|
59
|
+
"raw",
|
|
60
|
+
"rle",
|
|
61
|
+
"sct",
|
|
62
|
+
"sgi",
|
|
63
|
+
"rgb",
|
|
64
|
+
"int",
|
|
65
|
+
"bw",
|
|
66
|
+
"tga",
|
|
67
|
+
"tiff",
|
|
68
|
+
"tif",
|
|
69
|
+
"vtf",
|
|
70
|
+
"xbm",
|
|
71
|
+
"xcf",
|
|
72
|
+
"xpm",
|
|
73
|
+
"3dv",
|
|
74
|
+
"amf",
|
|
75
|
+
"ai",
|
|
76
|
+
"awg",
|
|
77
|
+
"cgm",
|
|
78
|
+
"cdr",
|
|
79
|
+
"cmx",
|
|
80
|
+
"dxf",
|
|
81
|
+
"e2d",
|
|
82
|
+
"egt",
|
|
83
|
+
"eps",
|
|
84
|
+
"fs",
|
|
85
|
+
"gbr",
|
|
86
|
+
"odg",
|
|
87
|
+
"svg",
|
|
88
|
+
"stl",
|
|
89
|
+
"vrml",
|
|
90
|
+
"x3d",
|
|
91
|
+
"sxd",
|
|
92
|
+
"v2d",
|
|
93
|
+
"vnd",
|
|
94
|
+
"wmf",
|
|
95
|
+
"emf",
|
|
96
|
+
"art",
|
|
97
|
+
"xar",
|
|
98
|
+
"png",
|
|
99
|
+
"webp",
|
|
100
|
+
"jxr",
|
|
101
|
+
"hdp",
|
|
102
|
+
"wdp",
|
|
103
|
+
"cur",
|
|
104
|
+
"ecw",
|
|
105
|
+
"iff",
|
|
106
|
+
"lbm",
|
|
107
|
+
"liff",
|
|
108
|
+
"nrrd",
|
|
109
|
+
"pam",
|
|
110
|
+
"pcx",
|
|
111
|
+
"pgf",
|
|
112
|
+
"sgi",
|
|
113
|
+
"rgb",
|
|
114
|
+
"rgba",
|
|
115
|
+
"bw",
|
|
116
|
+
"int",
|
|
117
|
+
"inta",
|
|
118
|
+
"sid",
|
|
119
|
+
"ras",
|
|
120
|
+
"sun",
|
|
121
|
+
"tga"
|
|
122
|
+
]
|
|
123
|
+
;
|
|
124
|
+
|
|
125
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProcessItemModel } from "../models/ProcessItemModel";
|
|
2
|
+
import { UserWorkflowActionsModel } from "../models/UserWorkflowActionsModel";
|
|
3
|
+
import { ColumnsType } from "../..";
|
|
4
|
+
interface UseProcessColumnsProps {
|
|
5
|
+
actions?: UserWorkflowActionsModel;
|
|
6
|
+
onShowModal: (userWorkflowStepId: number, userWorkflowStepTitle: string) => void;
|
|
7
|
+
hiddenColumns?: string[];
|
|
8
|
+
}
|
|
9
|
+
interface StepStatusIconProps {
|
|
10
|
+
size?: number;
|
|
11
|
+
step: ProcessItemModel;
|
|
12
|
+
}
|
|
13
|
+
export declare const StepStatusIcon: ({ size, step }: StepStatusIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const useProcessColumns: (props: UseProcessColumnsProps) => ColumnsType<any>;
|
|
15
|
+
export {};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { EngineEntity } from "./EngineEntity";
|
|
2
1
|
import { IAssignmentRuleModel } from "./AssignmentRuleModel";
|
|
3
|
-
export interface WorkflowStepModel
|
|
2
|
+
export interface WorkflowStepModel {
|
|
3
|
+
id: number;
|
|
4
|
+
createdBy?: string;
|
|
5
|
+
createdTime?: string | Date | undefined;
|
|
6
|
+
lastModified?: string | Date | undefined;
|
|
7
|
+
modifiedBy?: string;
|
|
8
|
+
isDeleted?: boolean;
|
|
4
9
|
title: string;
|
|
5
10
|
titleEN?: string;
|
|
6
11
|
workflowId: number;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InitialDataModel } from "./InitialDataModel";
|
|
2
|
+
import { InitialPositionModel } from "./InitialPositionModel";
|
|
3
|
+
import { InitialStyleModel } from "./InitialStyleModel";
|
|
4
|
+
export interface InitialNodeModels {
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
sourcePosition: string;
|
|
8
|
+
targetPosition: string;
|
|
9
|
+
data: InitialDataModel;
|
|
10
|
+
position: InitialPositionModel;
|
|
11
|
+
className: string;
|
|
12
|
+
parentNode: string;
|
|
13
|
+
style: InitialStyleModel;
|
|
14
|
+
}
|
|
@@ -22,7 +22,7 @@ export declare const STATUS_TYPES: {
|
|
|
22
22
|
export type FileType = UploadChangeParam<UploadFile<any>> & {
|
|
23
23
|
note: string;
|
|
24
24
|
};
|
|
25
|
-
export declare class
|
|
25
|
+
export declare class DataServices2 {
|
|
26
26
|
static uploadFileRequest({ file, onSuccess }: any): void;
|
|
27
27
|
static handleFiles(key: number, selectedFiles: any, info: UploadChangeParam<UploadFile<any>>): any[];
|
|
28
28
|
static IsEmail(text: string): boolean;
|
|
@@ -33,7 +33,7 @@ export declare class DataServices {
|
|
|
33
33
|
static removeEmpty<T>(obj: any): T;
|
|
34
34
|
static getBase64(img: RcFile, callback: (base64: string) => void): void;
|
|
35
35
|
static emailToAccountName(email: string): string | undefined;
|
|
36
|
-
static isImage(extension?: string |
|
|
36
|
+
static isImage(extension?: string | null): boolean;
|
|
37
37
|
static isVideo(extension?: string | false): boolean;
|
|
38
38
|
static isImageFromType(type: string): boolean;
|
|
39
39
|
static getFileExtension(fileName: string): string | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LANGUAGE } from "../..";
|
|
2
|
+
import { PermissionItemViewModel } from "../models/viewModels/IPermissionItemViewModel";
|
|
3
|
+
export default class PermissionService {
|
|
4
|
+
static search(isOnlyActivePersonalProfile?: boolean, isOnlyPersonalProfile?: boolean, lang?: LANGUAGE): Promise<import("../../../models").Result<PermissionItemViewModel[]>>;
|
|
5
|
+
static getPermissionName(ids: string, permissions: PermissionItemViewModel[]): any;
|
|
6
|
+
}
|
|
@@ -2,7 +2,7 @@ import { LANGUAGE } from "../..";
|
|
|
2
2
|
import { AddSendUserWorkflowModel } from "../models/AddSendUserWorkflowModel";
|
|
3
3
|
import { ProcessStatusModel } from "../models/ProcessStatusModel";
|
|
4
4
|
type AcceptModel = {
|
|
5
|
-
note
|
|
5
|
+
note?: string;
|
|
6
6
|
sendWorkflowModels: ProcessStatusModel[];
|
|
7
7
|
priorityId?: number;
|
|
8
8
|
};
|
|
@@ -5,7 +5,7 @@ import { UploadFileModel } from "../models/UploadFileModel";
|
|
|
5
5
|
import { UserCheckListModel } from "../models/UserCheckListModel";
|
|
6
6
|
import { SignaturedManuallyModel } from "../models/UserWorkflowModel";
|
|
7
7
|
import { UploadFile } from "../..";
|
|
8
|
-
|
|
8
|
+
type FileType = {
|
|
9
9
|
url: string;
|
|
10
10
|
isDownload: boolean;
|
|
11
11
|
};
|
|
@@ -52,7 +52,7 @@ export default class UserWorkflowService {
|
|
|
52
52
|
static getRelateds(relatedId: string): Promise<Result<UserWorkflowModel[]>>;
|
|
53
53
|
static getStatistic(params?: UserWorkflowParams): Promise<Result<UserWorkflowStatisticModel>>;
|
|
54
54
|
static isDate(date: any): boolean;
|
|
55
|
-
static addUserWorkflow(workflowId: number, workflowStepId: number, model: PropertyModel[], note?: string, mainUserWorkflowStepId?: number, workId?: number, formFormat?: RowsType[], workType?: string): Promise<Result<UserWorkflowModel>>;
|
|
55
|
+
static addUserWorkflow(workflowId: number, workflowStepId: number, model: PropertyModel[], note?: string | null, mainUserWorkflowStepId?: number, workId?: number, formFormat?: RowsType[], workType?: string): Promise<Result<UserWorkflowModel>>;
|
|
56
56
|
static updateUserWorkflow(userWorkflowId: number, model: PropertyModel[], note?: string, formFormat?: RowsType[], activeEditUserWorkflow?: boolean): Promise<Result<UserWorkflowModel>>;
|
|
57
57
|
static deleteOldWf({ data }: {
|
|
58
58
|
data: any;
|