@voplus/morpho-document 6.1.11 → 6.1.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/es/components/DocumentBreadCrumbsHeader/index.d.ts +1 -1
- package/es/components/DocumentCardList/index.d.ts +2 -2
- package/es/components/DocumentList/index.d.ts +11 -11
- package/es/components/DocumentListCard/index.d.ts +8 -8
- package/es/components/DocumentSelectDialog/index.d.ts +5 -5
- package/es/components/DocumentSortableTree/SortableTreeContext.d.ts +0 -1
- package/es/components/DocumentTabs/index.d.ts +7 -7
- package/es/components/DocumentTree/index.d.ts +2 -2
- package/es/components/FileViewer/FileViewer.d.ts +2 -2
- package/es/components/Links/NewLinkType.d.ts +2 -2
- package/es/components/NewDocumentForm/NewDocumentFormDialog.d.ts +4 -4
- package/es/components/NewDocumentForm/index.d.ts +8 -8
- package/es/components/PasteListInDocument/index.d.ts +3 -3
- package/es/components/SendForm/index.d.ts +7 -7
- package/es/components/ViewFrame/index.d.ts +6 -6
- package/es/components/WordFillView/WordFillContext.d.ts +0 -1
- package/es/controls/ChildDocumentSelect/Item.d.ts +2 -2
- package/es/controls/ChildDocumentSelect/index.d.ts +6 -6
- package/es/controls/DocumentDataIconBar/index.d.ts +4 -4
- package/es/controls/DocumentLabel/index.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Access.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Archive.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Copy.d.ts +2 -2
- package/es/controls/DocumentMenu/items/CopyReference.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Delete.d.ts +4 -4
- package/es/controls/DocumentMenu/items/DownloadFiles.d.ts +2 -2
- package/es/controls/DocumentMenu/items/DownloadLetter.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Duplicate.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Lock.d.ts +3 -3
- package/es/controls/DocumentMenu/items/Notifications.d.ts +2 -2
- package/es/controls/DocumentMenu/items/OpenInBrowser.d.ts +2 -2
- package/es/controls/DocumentMenu/items/OpenReferenceView.d.ts +2 -2
- package/es/controls/DocumentMenu/items/OpenWordFillPage.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Pin.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Print.d.ts +3 -3
- package/es/controls/DocumentMenu/items/PrintActivities.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Publish.d.ts +4 -4
- package/es/controls/DocumentMenu/items/PublishLock.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Revert.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Unlock.d.ts +3 -3
- package/es/controls/DocumentMenu/items/Unpin.d.ts +2 -2
- package/es/controls/DocumentStatusLabel/index.d.ts +4 -4
- package/es/controls/ToolBar/buttons/Delete.d.ts +3 -3
- package/es/controls/ToolBar/buttons/Download.d.ts +4 -4
- package/es/controls/ToolBar/buttons/Edit.d.ts +3 -3
- package/es/controls/ToolBar/buttons/Open.d.ts +4 -4
- package/es/controls/ToolBar/buttons/UpLevel.d.ts +3 -3
- package/es/controls/data-icons/FlagIcon/index.d.ts +6 -6
- package/es/data/DocumentMetaStore.d.ts +0 -1
- package/es/data/contexts/DocumentListContext/index.d.ts +0 -1
- package/es/data/message-template/metas.d.ts +0 -1
- package/es/data/metas/ContainerMeta.d.ts +0 -1
- package/es/data/metas/DocumentRegisterMeta.d.ts +0 -1
- package/es/data/metas/FileTypeMeta.d.ts +0 -1
- package/es/data/metas/GraphMeta.d.ts +0 -1
- package/es/data/metas/LibraryMeta.d.ts +0 -1
- package/es/data/metas/PageMeta.d.ts +0 -1
- package/es/data/metas/RegisteredDocumentMeta.d.ts +0 -1
- package/es/data/metas/ShortcutMeta.d.ts +0 -1
- package/es/data/metas/SignEnvelopeMeta.d.ts +0 -1
- package/es/data/metas/TextMeta.d.ts +0 -1
- package/es/modules/document-register/controls/DocumentRegisterStatusLabel/index.d.ts +1 -1
- package/es/modules/graph/control/GraphMenu/item/OpenEditor.d.ts +2 -2
- package/es/modules/message-template/components/CodeMirror/index.d.ts +3 -3
- package/es/modules/message-template/components/MessageTemplateSelect/index.d.ts +4 -4
- package/es/modules/message-template/controls/MessageTemplateMenu/items/SendPreviewEmail.d.ts +2 -2
- package/es/modules/page/components/PageItemHeader/index.d.ts +3 -3
- package/es/modules/page/data/PageContext.d.ts +0 -1
- package/es/modules/quick-access/AdvanceFilterForm/index.d.ts +2 -2
- package/es/modules/quick-access/GeneralFilterForm/index.d.ts +2 -2
- package/es/modules/quick-access/QuickAccessPage/QuickAccessContext.d.ts +0 -1
- package/es/modules/registered-document/RegisteredDocumentContext.d.ts +1 -1
- package/es/modules/registered-document/components/RegisteredDocumentListHeader/index.d.ts +4 -4
- package/es/modules/registered-document/controls/RegisteredDocumentStatusLabel/index.d.ts +1 -1
- package/es/modules/tenant-service/components/StringDynamicField/index.d.ts +1 -1
- package/es/modules/tenant-service/components/TenantServiceList/index.d.ts +4 -4
- package/es/modules/tenant-service/components/TenantServiceList/index.js +27 -21
- package/es/modules/tenant-service/components/TenantServiceList/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceList/index.less +0 -10
- package/es/modules/tenant-service/components/TenantServiceTabs/index.js +2 -1
- package/es/modules/tenant-service/components/TenantServiceTabs/index.js.map +1 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.d.ts +4 -6
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.js +7 -9
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.js.map +1 -1
- package/es/obsolete/EmailTemplate/CodeMirror/index.d.ts +3 -3
- package/es/obsolete/EmailTemplate/EmailTemplateSelect/index.d.ts +2 -2
- package/es/pages/Library/components/DocumentTree/index.d.ts +2 -2
- package/es/pages/Signature/Envelope/components/ReasonDialog/index.d.ts +1 -1
- package/es/pages/Signature/Envelope/components/RemindersDialog/index.d.ts +1 -1
- package/es/pages/Signature/Envelope/components/RemoveSignatureDialog/index.d.ts +2 -2
- package/es/pages/Signature/Envelope/components/ReviewDialog/index.d.ts +1 -1
- package/es/pages/Signature/Envelope/components/ReviewDialog/state.d.ts +2 -2
- package/es/pages/Signature/Envelope/components/SendDialog/index.d.ts +3 -3
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Cancel.d.ts +2 -2
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Complete.d.ts +2 -2
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Reopen.d.ts +2 -2
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendInvite.d.ts +2 -2
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReminders.d.ts +2 -2
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReview.d.ts +2 -2
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/ViewSignatures.d.ts +2 -2
- package/es/pages/Signature/Letter/LetterItem/index.d.ts +4 -4
- package/es/pages/Signature/Letter/LetterList/index.d.ts +6 -6
- package/es/pages/Signature/Letter/LetterRecipientItem/index.d.ts +2 -2
- package/es/pages/Signature/Letter/LetterViewer/index.d.ts +1 -1
- package/es/pages/Signature/SignatureTable/RemoveSignatureDialog.d.ts +2 -2
- package/es/pages/Signature/SigningReminderDialog/index.d.ts +1 -1
- package/es/pages/Signature/data/EnvelopeContext.d.ts +0 -1
- package/es/pages/VSubmit/components/EmailRecipients/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -6,9 +6,9 @@ declare const DocumentStatusLabel: (props: {
|
|
|
6
6
|
displayName?: string;
|
|
7
7
|
}[];
|
|
8
8
|
/** The current status */
|
|
9
|
-
status?: string
|
|
10
|
-
className?: string
|
|
11
|
-
editable?: boolean
|
|
12
|
-
onChange?: (
|
|
9
|
+
status?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
editable?: boolean;
|
|
12
|
+
onChange?: (params: any) => void;
|
|
13
13
|
}) => React.JSX.Element;
|
|
14
14
|
export default DocumentStatusLabel;
|
|
@@ -2,11 +2,11 @@ import React from "react";
|
|
|
2
2
|
declare const Delete: {
|
|
3
3
|
(props: {
|
|
4
4
|
/** size of Button */
|
|
5
|
-
size?: "small" | "middle" | "large"
|
|
5
|
+
size?: "small" | "middle" | "large";
|
|
6
6
|
/** disabled Button */
|
|
7
|
-
disabled?: boolean
|
|
7
|
+
disabled?: boolean;
|
|
8
8
|
/** function of Click */
|
|
9
|
-
action?: (
|
|
9
|
+
action?: (context?: any) => void;
|
|
10
10
|
}): React.JSX.Element;
|
|
11
11
|
defaultProps: {
|
|
12
12
|
size: string;
|
|
@@ -2,12 +2,12 @@ import React from "react";
|
|
|
2
2
|
declare const Download: {
|
|
3
3
|
(props: {
|
|
4
4
|
/** size of Button */
|
|
5
|
-
size?: "small" | "middle" | "large"
|
|
5
|
+
size?: "small" | "middle" | "large";
|
|
6
6
|
/** disabled Button */
|
|
7
|
-
disabled?: boolean
|
|
8
|
-
text?: string
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
text?: string;
|
|
9
9
|
/** function of Click */
|
|
10
|
-
action?: (
|
|
10
|
+
action?: (context?: any) => void;
|
|
11
11
|
}): React.JSX.Element;
|
|
12
12
|
defaultProps: {
|
|
13
13
|
size: string;
|
|
@@ -2,11 +2,11 @@ import React from "react";
|
|
|
2
2
|
declare const Edit: {
|
|
3
3
|
(props: {
|
|
4
4
|
/** size of Button */
|
|
5
|
-
size?: "small" | "middle" | "large"
|
|
5
|
+
size?: "small" | "middle" | "large";
|
|
6
6
|
/** disabled Button */
|
|
7
|
-
disabled?: boolean
|
|
7
|
+
disabled?: boolean;
|
|
8
8
|
/** function of Click */
|
|
9
|
-
action?: (
|
|
9
|
+
action?: (context?: any) => void;
|
|
10
10
|
}): React.JSX.Element;
|
|
11
11
|
defaultProps: {
|
|
12
12
|
size: string;
|
|
@@ -2,13 +2,13 @@ import React from "react";
|
|
|
2
2
|
declare const Open: {
|
|
3
3
|
(props: {
|
|
4
4
|
/** size of Button */
|
|
5
|
-
size?: "small" | "middle" | "large"
|
|
5
|
+
size?: "small" | "middle" | "large";
|
|
6
6
|
/** disabled Button */
|
|
7
|
-
disabled?: boolean
|
|
7
|
+
disabled?: boolean;
|
|
8
8
|
/** url of open new page */
|
|
9
|
-
url?: string
|
|
9
|
+
url?: string;
|
|
10
10
|
/** function of Click */
|
|
11
|
-
action?: (
|
|
11
|
+
action?: (context?: any) => void;
|
|
12
12
|
}): React.JSX.Element;
|
|
13
13
|
defaultProps: {
|
|
14
14
|
size: string;
|
|
@@ -4,11 +4,11 @@ declare const UpLevel: {
|
|
|
4
4
|
/** */
|
|
5
5
|
id: string;
|
|
6
6
|
/** size of Button */
|
|
7
|
-
size?: "small" | "middle" | "large"
|
|
7
|
+
size?: "small" | "middle" | "large";
|
|
8
8
|
/** disabled Button */
|
|
9
|
-
disabled?: boolean
|
|
9
|
+
disabled?: boolean;
|
|
10
10
|
/** function of Click */
|
|
11
|
-
action?: (
|
|
11
|
+
action?: (context?: any) => void;
|
|
12
12
|
}): React.JSX.Element;
|
|
13
13
|
defaultProps: {
|
|
14
14
|
size: string;
|
|
@@ -3,13 +3,13 @@ import React from "react";
|
|
|
3
3
|
declare const FlagIcon: {
|
|
4
4
|
(props: {
|
|
5
5
|
id: string;
|
|
6
|
-
editable?: boolean
|
|
7
|
-
flag?: "
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
flag?: "None" | "Star" | "Urgent";
|
|
8
8
|
icon?: any;
|
|
9
|
-
color?: string
|
|
10
|
-
size?: "
|
|
11
|
-
className?: string
|
|
12
|
-
onchange?: (
|
|
9
|
+
color?: string;
|
|
10
|
+
size?: "xs" | "sm" | "lg";
|
|
11
|
+
className?: string;
|
|
12
|
+
onchange?: (params?: any) => void;
|
|
13
13
|
}): React.JSX.Element;
|
|
14
14
|
defaultProps: {
|
|
15
15
|
editable: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DocumentCardProps, IDocument, IDocumentMetaStore, IDocumentTypeMeta, QuickViewProps, DocumentMenuProps, DocumentNewFormProps } from "@voplus/morpho-document-core";
|
|
3
2
|
import { FilterOption, Store } from "@voplus/morpho-data";
|
|
4
3
|
export declare class DocumentMetaStore extends Store implements IDocumentMetaStore {
|
|
@@ -4,7 +4,7 @@ import { DocumentRegisterStatus } from "../../../../data/document-register";
|
|
|
4
4
|
declare const DocumentRegisterStatusLabel: (props: {
|
|
5
5
|
status: string;
|
|
6
6
|
editable: boolean;
|
|
7
|
-
className?: string
|
|
7
|
+
className?: string;
|
|
8
8
|
onChange: (status: DocumentRegisterStatus) => void;
|
|
9
9
|
}) => React.JSX.Element;
|
|
10
10
|
export default DocumentRegisterStatusLabel;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const OpenEditor: (props: {
|
|
3
3
|
/** disabled Button */
|
|
4
|
-
disabled?: boolean
|
|
4
|
+
disabled?: boolean;
|
|
5
5
|
/** function of Click */
|
|
6
|
-
action?: (
|
|
6
|
+
action?: (context?: any) => void;
|
|
7
7
|
}) => React.JSX.Element;
|
|
8
8
|
export default OpenEditor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const CodeMirror: (props: {
|
|
3
|
-
code?: string
|
|
4
|
-
readOnly?: boolean
|
|
5
|
-
onChange?: (
|
|
3
|
+
code?: string;
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
onChange?: (code: string) => void;
|
|
6
6
|
}) => React.JSX.Element;
|
|
7
7
|
export default CodeMirror;
|
|
@@ -2,10 +2,10 @@ import React from "react";
|
|
|
2
2
|
import { SelectProps } from "antd";
|
|
3
3
|
import { IMessageTemplate } from "../../../../data/message-template";
|
|
4
4
|
declare const MessageTemplateSelect: {
|
|
5
|
-
(props: SelectProps
|
|
6
|
-
defaultValue?: string
|
|
7
|
-
isLayout?: boolean
|
|
8
|
-
onChange?: (
|
|
5
|
+
(props: SelectProps & {
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
isLayout?: boolean;
|
|
8
|
+
onChange?: (messageTemplate?: IMessageTemplate) => void;
|
|
9
9
|
}): React.JSX.Element;
|
|
10
10
|
defaultProps: {
|
|
11
11
|
isLayout: boolean;
|
package/es/modules/message-template/controls/MessageTemplateMenu/items/SendPreviewEmail.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const SendPreviewEmail: (props: {
|
|
3
3
|
/** disabled Button */
|
|
4
|
-
disabled?: boolean
|
|
4
|
+
disabled?: boolean;
|
|
5
5
|
/** function of Click */
|
|
6
|
-
action?: (
|
|
6
|
+
action?: (context?: any) => void;
|
|
7
7
|
}) => React.JSX.Element;
|
|
8
8
|
export default SendPreviewEmail;
|
|
@@ -4,11 +4,11 @@ declare const PageItemHeader: (props: {
|
|
|
4
4
|
id: string;
|
|
5
5
|
collapse: boolean;
|
|
6
6
|
connectDragSource?: any;
|
|
7
|
-
changeCollapse?: (
|
|
7
|
+
changeCollapse?: (collapse: boolean) => void;
|
|
8
8
|
/** Open new tab button */
|
|
9
|
-
openVisible?: boolean
|
|
9
|
+
openVisible?: boolean;
|
|
10
10
|
/** show icon */
|
|
11
|
-
iconVisible?: boolean
|
|
11
|
+
iconVisible?: boolean;
|
|
12
12
|
preToolBar?: ReactNode;
|
|
13
13
|
}) => React.JSX.Element;
|
|
14
14
|
export default PageItemHeader;
|
|
@@ -3,7 +3,7 @@ import { INodeInfo } from "../../../data/quick-access";
|
|
|
3
3
|
import { FilterOption } from "@voplus/morpho-data";
|
|
4
4
|
declare const AdvanceFilterForm: (props: {
|
|
5
5
|
fileTypes: INodeInfo[];
|
|
6
|
-
onChange?: (
|
|
7
|
-
onFilter?: (
|
|
6
|
+
onChange?: (type: string) => void;
|
|
7
|
+
onFilter?: (options?: FilterOption[]) => void;
|
|
8
8
|
}) => React.JSX.Element;
|
|
9
9
|
export default AdvanceFilterForm;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { FilterOption } from "@voplus/morpho-data";
|
|
3
3
|
declare const GeneralFilterForm: (props: {
|
|
4
4
|
id: "InvoiceNode" | "CorporateNode" | "CustomerNode" | "QuotationNode" | "WorkNode" | "FormSchemaNode" | "MessageTemplate" | "DocumentNode";
|
|
5
|
-
className?: string
|
|
6
|
-
onFilter?: (
|
|
5
|
+
className?: string;
|
|
6
|
+
onFilter?: (options?: FilterOption[]) => void;
|
|
7
7
|
}) => React.JSX.Element;
|
|
8
8
|
export default GeneralFilterForm;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
/** Registered Document State */
|
|
3
3
|
export declare class RegisteredDocumentState {
|
|
4
4
|
private viewType?;
|
|
5
|
-
constructor(viewType?: "
|
|
5
|
+
constructor(viewType?: "DefaultView" | "PropertiesView" | undefined);
|
|
6
6
|
/** RegisteredDocumentProperties 点击 view more 跳转到 RegisteredDocumentTabs 的 Documents */
|
|
7
7
|
activeKey?: string;
|
|
8
8
|
setActiveKey(key: string): void;
|
|
@@ -2,10 +2,10 @@ import React from "react";
|
|
|
2
2
|
import { ITypeLineOptions } from "../../../../data/document-register";
|
|
3
3
|
declare const RegisterListHeader: (props: {
|
|
4
4
|
parentId: string;
|
|
5
|
-
types?: ITypeLineOptions[]
|
|
5
|
+
types?: ITypeLineOptions[];
|
|
6
6
|
/** type of registers shown on the list. */
|
|
7
|
-
type?: number
|
|
8
|
-
onChangeFilter?: (
|
|
9
|
-
onAdd?: (
|
|
7
|
+
type?: number;
|
|
8
|
+
onChangeFilter?: (typeId?: number) => void;
|
|
9
|
+
onAdd?: () => void;
|
|
10
10
|
}) => React.JSX.Element;
|
|
11
11
|
export default RegisterListHeader;
|
|
@@ -4,7 +4,7 @@ import { RegisteredDocumentStatus } from "../../../../data/registered-document";
|
|
|
4
4
|
declare const RegisteredDocumentStatusLabel: (props: {
|
|
5
5
|
status: string;
|
|
6
6
|
editable: boolean;
|
|
7
|
-
className?: string
|
|
7
|
+
className?: string;
|
|
8
8
|
onChange: (status: RegisteredDocumentStatus) => void;
|
|
9
9
|
}) => React.JSX.Element;
|
|
10
10
|
export default RegisteredDocumentStatusLabel;
|
|
@@ -2,6 +2,6 @@ import React from "react";
|
|
|
2
2
|
import { INodeField } from "../../../../data/tenant-service";
|
|
3
3
|
declare const StringDynamicField: (props: {
|
|
4
4
|
field: INodeField;
|
|
5
|
-
onChange?: (
|
|
5
|
+
onChange?: (v: string) => void;
|
|
6
6
|
}) => React.JSX.Element;
|
|
7
7
|
export default StringDynamicField;
|
|
@@ -4,12 +4,12 @@ declare const TenantServiceList: (props: {
|
|
|
4
4
|
/** title */
|
|
5
5
|
viewTitle?: React.ReactNode;
|
|
6
6
|
/** 是否显示 total */
|
|
7
|
-
total?: boolean
|
|
7
|
+
total?: boolean;
|
|
8
8
|
/** 是否允在 listView 内部打开 aside */
|
|
9
|
-
asideable?: boolean
|
|
9
|
+
asideable?: boolean;
|
|
10
10
|
/** Call back when received total number of tenant-service. */
|
|
11
|
-
onTotal?: (
|
|
11
|
+
onTotal?: (total: number) => void;
|
|
12
12
|
/** Call back when an item has been clicked on the list. */
|
|
13
|
-
onClickItem?: (
|
|
13
|
+
onClickItem?: (item: ITenantService) => void;
|
|
14
14
|
}) => React.JSX.Element;
|
|
15
15
|
export default TenantServiceList;
|
|
@@ -2,9 +2,10 @@ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
|
2
2
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
3
3
|
import React, { useState } from "react";
|
|
4
4
|
import { useTenantServiceListEffect } from "../../../../data/tenant-service";
|
|
5
|
-
import {
|
|
5
|
+
import { faSquareRing } from "@fortawesome/pro-solid-svg-icons";
|
|
6
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
7
|
import DocumentItemFrame from "../../../../controls/DocumentItemFrame";
|
|
7
|
-
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/
|
|
8
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView";
|
|
8
9
|
import TenantServiceItem from "../TenantServiceItem";
|
|
9
10
|
import styles from "./index.less";
|
|
10
11
|
const TenantServiceList = (props) => {
|
|
@@ -29,25 +30,30 @@ const TenantServiceList = (props) => {
|
|
|
29
30
|
...list.filters.options,
|
|
30
31
|
});
|
|
31
32
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
32
|
-
React.createElement(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
33
|
+
React.createElement(ListView, { headerProps: {
|
|
34
|
+
headDashboardProps: {
|
|
35
|
+
headerType: "page",
|
|
36
|
+
avatarIcon: React.createElement(FAIcon, { icon: faSquareRing }),
|
|
37
|
+
title: viewTitle || "Tenant Service",
|
|
38
|
+
description: "Access and manage all tenant-related services in one dedicated page.",
|
|
39
|
+
listHeaderProps: {
|
|
40
|
+
visible: true,
|
|
41
|
+
addAble: false,
|
|
42
|
+
sortable: false,
|
|
43
|
+
searchOptions: { placeholder: "Search in tenant service" },
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
}, asideable: asideable, className: styles["tenant-service-list"], renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
|
47
|
+
active: activeId === item.id,
|
|
48
|
+
hoverEffect: "none",
|
|
49
|
+
activeEffect: "border",
|
|
50
|
+
borderProps: { location: "right", color: "#1890ff ", size: "2px" },
|
|
51
|
+
}, onClick: () => {
|
|
52
|
+
var _a;
|
|
53
|
+
setActiveId(item.id);
|
|
54
|
+
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
|
|
55
|
+
} },
|
|
56
|
+
React.createElement(TenantServiceItem, { id: item.id }))) }))));
|
|
51
57
|
};
|
|
52
58
|
export default TenantServiceList;
|
|
53
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAkB,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAkB,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,QAAQ,MAAM,0DAA0D,CAAC;AAChF,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,iBAAiB,GAAG,CAAC,KAW1B,EAAE,EAAE;IACJ,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,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AAE,MAAM,CAAC,qBAAqB,CAAC,EACxC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,CAC9B,oBAAC,iBAAiB,IACjB,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,UAAU,EAAE;oBACX,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC,EAAE;oBAC5B,WAAW,EAAE,MAAM;oBACnB,YAAY,EAAE,QAAQ;oBACtB,WAAW,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE;iBAClE,EACD,OAAO,EAAE,GAAG,EAAE;;oBACb,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;oBACrB,MAAA,KAAK,CAAC,WAAW,sDAAG,IAAI,CAAC,CAAC;gBAC3B,CAAC;gBAED,oBAAC,iBAAiB,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACf,CACpB,GACA,CACwB,CAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -24,7 +24,7 @@ const TenantServiceTabs = (props) => {
|
|
|
24
24
|
label: (React.createElement(React.Fragment, null,
|
|
25
25
|
"Tenant Service Execution",
|
|
26
26
|
React.createElement(Badge, { count: docTotals, overflowCount: 999, className: "margin-left-10" }))),
|
|
27
|
-
children: React.createElement(TenantServiceExecutionList, {
|
|
27
|
+
children: React.createElement(TenantServiceExecutionList, { tenantServiceId: id, asideable: false }),
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
key: "Activities",
|
|
@@ -41,6 +41,7 @@ const TenantServiceTabs = (props) => {
|
|
|
41
41
|
return observe(() => {
|
|
42
42
|
var _a;
|
|
43
43
|
((_a = tenantService.fields) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
44
|
+
items.find((i) => i.key !== "Settings") &&
|
|
44
45
|
items.splice(properties ? 2 : 1, 0, {
|
|
45
46
|
key: "Settings",
|
|
46
47
|
label: "Settings",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAE/D,OAAO,0BAA0B,MAAM,yEAAyE,CAAC;AACjH,OAAO,EAAE,mCAAmC,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,WAAW,MAAM,4DAA4D,CAAC;AAErF,MAAM,iBAAiB,GAAG,CAAC,KAAkE,EAAE,EAAE;IAChG,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IACjC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU,CAAC;IACrD,MAAM,aAAa,GAAG,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAE3C,mCAAmC,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE;QACtF,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;KAC7D,CAAC,CAAC;IAEH,MAAM,KAAK,GAAuB;QACjC;YACC,GAAG,EAAE,wBAAwB;YAC7B,KAAK,EAAE,CACN;;gBAEC,oBAAC,KAAK,IAAC,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,EAAE,SAAS,EAAC,gBAAgB,GAAG,CACxE,CACH;YACD,QAAQ,EAAE,oBAAC,0BAA0B,IAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAE/D,OAAO,0BAA0B,MAAM,yEAAyE,CAAC;AACjH,OAAO,EAAE,mCAAmC,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,WAAW,MAAM,4DAA4D,CAAC;AAErF,MAAM,iBAAiB,GAAG,CAAC,KAAkE,EAAE,EAAE;IAChG,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IACjC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU,CAAC;IACrD,MAAM,aAAa,GAAG,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAE3C,mCAAmC,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,IA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QAAQ,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,GAAI,CAAC;aACnF,CAAC,CAAC;QACJ,OAAO,CACN,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,wBAAwB,EAC5D,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GACnC,CACF,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.d.ts
CHANGED
|
@@ -2,15 +2,13 @@ import React from "react";
|
|
|
2
2
|
import { ITenantServiceExecution } from "../../../../data/tenant-service-execution";
|
|
3
3
|
declare const TenantServiceExecutionList: (props: {
|
|
4
4
|
tenantServiceId: string;
|
|
5
|
-
/** title */
|
|
6
|
-
viewTitle?: React.ReactNode;
|
|
7
5
|
/** 是否显示 total */
|
|
8
|
-
total?: boolean
|
|
6
|
+
total?: boolean;
|
|
9
7
|
/** 是否允在 listView 内部打开 aside */
|
|
10
|
-
asideable?: boolean
|
|
8
|
+
asideable?: boolean;
|
|
11
9
|
/** Call back when received total number of tenant-service-execution. */
|
|
12
|
-
onTotal?: (
|
|
10
|
+
onTotal?: (total: number) => void;
|
|
13
11
|
/** Call back when an item has been clicked on the list. */
|
|
14
|
-
onClickItem?: (
|
|
12
|
+
onClickItem?: (item: ITenantServiceExecution) => void;
|
|
15
13
|
}) => React.JSX.Element;
|
|
16
14
|
export default TenantServiceExecutionList;
|
|
@@ -2,13 +2,12 @@ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
|
2
2
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
3
3
|
import React, { useState } from "react";
|
|
4
4
|
import { useTenantServiceExecutionListEffect, } from "../../../../data/tenant-service-execution";
|
|
5
|
-
import { Badge } from "antd";
|
|
6
5
|
import DocumentItemFrame from "../../../../controls/DocumentItemFrame";
|
|
7
|
-
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/
|
|
6
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView";
|
|
8
7
|
import TenantServiceExecutionItem from "../TenantServiceExecutionItem";
|
|
9
8
|
import styles from "./index.less";
|
|
10
9
|
const TenantServiceExecutionList = (props) => {
|
|
11
|
-
const { tenantServiceId,
|
|
10
|
+
const { tenantServiceId, total, asideable } = props;
|
|
12
11
|
const [activeId, setActiveId] = useState("");
|
|
13
12
|
const [tenantServiceExecutionTotal, setTenantServiceExecutionTotal] = useState(0);
|
|
14
13
|
const list = useCreateListDataState({
|
|
@@ -30,12 +29,11 @@ const TenantServiceExecutionList = (props) => {
|
|
|
30
29
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
31
30
|
React.createElement("div", { className: styles["tenant-service-execution-list"] },
|
|
32
31
|
React.createElement(ListView, { headerProps: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
quickSearch: true,
|
|
32
|
+
headerToolProps: {
|
|
33
|
+
addAble: false,
|
|
34
|
+
sortable: false,
|
|
35
|
+
searchOptions: { placeholder: "Search in subs tenant service execution" },
|
|
36
|
+
},
|
|
39
37
|
}, asideable: asideable, className: "tenant-service-execution-list-content", renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
|
40
38
|
active: activeId === item.id,
|
|
41
39
|
hoverEffect: "none",
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,mCAAmC,GACnC,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,mCAAmC,GACnC,MAAM,2CAA2C,CAAC;AAEnD,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,QAAQ,MAAM,0DAA0D,CAAC;AAChF,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AACvE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,0BAA0B,GAAG,CAAC,KAUnC,EAAE,EAAE;IACJ,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACpD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC7C,MAAM,CAAC,2BAA2B,EAAE,8BAA8B,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElF,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,e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,IAAI,CAAC,EAAE,CAAC,CAAC;wBACrB,MAAA,KAAK,CAAC,WAAW,sDAAG,IAAI,CAAC,CAAC;oBAC3B,CAAC;oBAED,oBAAC,0BAA0B,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACxB,CACpB,GACA,CACG,CACoB,CAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const CodeMirror: (props: {
|
|
3
3
|
code: string;
|
|
4
|
-
height?: string
|
|
5
|
-
readOnly?: boolean
|
|
6
|
-
onChange?: (
|
|
4
|
+
height?: string;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
onChange?: (code: string) => void;
|
|
7
7
|
}) => React.JSX.Element;
|
|
8
8
|
export default CodeMirror;
|
|
@@ -2,8 +2,8 @@ import React from "react";
|
|
|
2
2
|
declare const EmailTemplateSelect: {
|
|
3
3
|
(props: {
|
|
4
4
|
value: string;
|
|
5
|
-
bordered?: boolean
|
|
6
|
-
onChange?: (
|
|
5
|
+
bordered?: boolean;
|
|
6
|
+
onChange?: (id: string) => void;
|
|
7
7
|
}): React.JSX.Element;
|
|
8
8
|
defaultProps: {
|
|
9
9
|
bordered: boolean;
|
|
@@ -12,7 +12,7 @@ export type IDocTree = {
|
|
|
12
12
|
};
|
|
13
13
|
declare const DocumentTree: (props: {
|
|
14
14
|
id: string;
|
|
15
|
-
className?: string
|
|
16
|
-
onSelect?: (
|
|
15
|
+
className?: string;
|
|
16
|
+
onSelect?: (doc: IDocTree) => void;
|
|
17
17
|
}) => React.JSX.Element;
|
|
18
18
|
export default DocumentTree;
|