@voplus/morpho-document 6.1.10 → 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.
Files changed (111) hide show
  1. package/es/components/DocumentBreadCrumbsHeader/index.d.ts +1 -1
  2. package/es/components/DocumentCardList/index.d.ts +2 -2
  3. package/es/components/DocumentList/index.d.ts +11 -11
  4. package/es/components/DocumentListCard/index.d.ts +8 -8
  5. package/es/components/DocumentSelectDialog/index.d.ts +5 -5
  6. package/es/components/DocumentSortableTree/SortableTreeContext.d.ts +0 -1
  7. package/es/components/DocumentTabs/index.d.ts +7 -7
  8. package/es/components/DocumentTree/index.d.ts +2 -2
  9. package/es/components/FileViewer/FileViewer.d.ts +2 -2
  10. package/es/components/Links/NewLinkType.d.ts +2 -2
  11. package/es/components/NewDocumentForm/NewDocumentFormDialog.d.ts +4 -4
  12. package/es/components/NewDocumentForm/index.d.ts +8 -8
  13. package/es/components/PasteListInDocument/index.d.ts +3 -3
  14. package/es/components/SendForm/index.d.ts +7 -7
  15. package/es/components/ViewFrame/index.d.ts +6 -6
  16. package/es/components/WordFillView/WordFillContext.d.ts +0 -1
  17. package/es/controls/ChildDocumentSelect/Item.d.ts +2 -2
  18. package/es/controls/ChildDocumentSelect/index.d.ts +6 -6
  19. package/es/controls/DocumentDataIconBar/index.d.ts +4 -4
  20. package/es/controls/DocumentLabel/index.d.ts +2 -2
  21. package/es/controls/DocumentMenu/items/Access.d.ts +2 -2
  22. package/es/controls/DocumentMenu/items/Archive.d.ts +2 -2
  23. package/es/controls/DocumentMenu/items/Copy.d.ts +2 -2
  24. package/es/controls/DocumentMenu/items/CopyReference.d.ts +2 -2
  25. package/es/controls/DocumentMenu/items/Delete.d.ts +4 -4
  26. package/es/controls/DocumentMenu/items/DownloadFiles.d.ts +2 -2
  27. package/es/controls/DocumentMenu/items/DownloadLetter.d.ts +2 -2
  28. package/es/controls/DocumentMenu/items/Duplicate.d.ts +2 -2
  29. package/es/controls/DocumentMenu/items/Lock.d.ts +3 -3
  30. package/es/controls/DocumentMenu/items/Notifications.d.ts +2 -2
  31. package/es/controls/DocumentMenu/items/OpenInBrowser.d.ts +2 -2
  32. package/es/controls/DocumentMenu/items/OpenReferenceView.d.ts +2 -2
  33. package/es/controls/DocumentMenu/items/OpenWordFillPage.d.ts +2 -2
  34. package/es/controls/DocumentMenu/items/Pin.d.ts +2 -2
  35. package/es/controls/DocumentMenu/items/Print.d.ts +3 -3
  36. package/es/controls/DocumentMenu/items/PrintActivities.d.ts +2 -2
  37. package/es/controls/DocumentMenu/items/Publish.d.ts +4 -4
  38. package/es/controls/DocumentMenu/items/PublishLock.d.ts +2 -2
  39. package/es/controls/DocumentMenu/items/Revert.d.ts +2 -2
  40. package/es/controls/DocumentMenu/items/Unlock.d.ts +3 -3
  41. package/es/controls/DocumentMenu/items/Unpin.d.ts +2 -2
  42. package/es/controls/DocumentStatusLabel/index.d.ts +4 -4
  43. package/es/controls/ToolBar/buttons/Delete.d.ts +3 -3
  44. package/es/controls/ToolBar/buttons/Download.d.ts +4 -4
  45. package/es/controls/ToolBar/buttons/Edit.d.ts +3 -3
  46. package/es/controls/ToolBar/buttons/Open.d.ts +4 -4
  47. package/es/controls/ToolBar/buttons/UpLevel.d.ts +3 -3
  48. package/es/controls/data-icons/FlagIcon/index.d.ts +6 -6
  49. package/es/data/DocumentMetaStore.d.ts +0 -1
  50. package/es/data/contexts/DocumentListContext/index.d.ts +0 -1
  51. package/es/data/message-template/metas.d.ts +0 -1
  52. package/es/data/metas/ContainerMeta.d.ts +0 -1
  53. package/es/data/metas/DocumentRegisterMeta.d.ts +0 -1
  54. package/es/data/metas/FileTypeMeta.d.ts +0 -1
  55. package/es/data/metas/GraphMeta.d.ts +0 -1
  56. package/es/data/metas/LibraryMeta.d.ts +0 -1
  57. package/es/data/metas/PageMeta.d.ts +0 -1
  58. package/es/data/metas/RegisteredDocumentMeta.d.ts +0 -1
  59. package/es/data/metas/ShortcutMeta.d.ts +0 -1
  60. package/es/data/metas/SignEnvelopeMeta.d.ts +0 -1
  61. package/es/data/metas/TextMeta.d.ts +0 -1
  62. package/es/modules/document-register/controls/DocumentRegisterStatusLabel/index.d.ts +1 -1
  63. package/es/modules/graph/control/GraphMenu/item/OpenEditor.d.ts +2 -2
  64. package/es/modules/message-template/components/CodeMirror/index.d.ts +3 -3
  65. package/es/modules/message-template/components/MessageTemplateContent/state.js +1 -1
  66. package/es/modules/message-template/components/MessageTemplateContent/state.js.map +1 -1
  67. package/es/modules/message-template/components/MessageTemplateSelect/index.d.ts +4 -4
  68. package/es/modules/message-template/controls/MessageTemplateMenu/items/SendPreviewEmail.d.ts +2 -2
  69. package/es/modules/page/components/PageItemHeader/index.d.ts +3 -3
  70. package/es/modules/page/data/PageContext.d.ts +0 -1
  71. package/es/modules/quick-access/AdvanceFilterForm/index.d.ts +2 -2
  72. package/es/modules/quick-access/GeneralFilterForm/index.d.ts +2 -2
  73. package/es/modules/quick-access/QuickAccessPage/QuickAccessContext.d.ts +0 -1
  74. package/es/modules/registered-document/RegisteredDocumentContext.d.ts +1 -1
  75. package/es/modules/registered-document/components/RegisteredDocumentListHeader/index.d.ts +4 -4
  76. package/es/modules/registered-document/controls/RegisteredDocumentStatusLabel/index.d.ts +1 -1
  77. package/es/modules/tenant-service/components/StringDynamicField/index.d.ts +1 -1
  78. package/es/modules/tenant-service/components/TenantServiceList/index.d.ts +4 -4
  79. package/es/modules/tenant-service/components/TenantServiceList/index.js +27 -21
  80. package/es/modules/tenant-service/components/TenantServiceList/index.js.map +1 -1
  81. package/es/modules/tenant-service/components/TenantServiceList/index.less +0 -10
  82. package/es/modules/tenant-service/components/TenantServiceTabs/index.js +2 -1
  83. package/es/modules/tenant-service/components/TenantServiceTabs/index.js.map +1 -1
  84. package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.d.ts +4 -6
  85. package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.js +7 -9
  86. package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.js.map +1 -1
  87. package/es/obsolete/EmailTemplate/CodeMirror/index.d.ts +3 -3
  88. package/es/obsolete/EmailTemplate/EmailTemplateSelect/index.d.ts +2 -2
  89. package/es/pages/Library/components/DocumentTree/index.d.ts +2 -2
  90. package/es/pages/Signature/Envelope/components/ReasonDialog/index.d.ts +1 -1
  91. package/es/pages/Signature/Envelope/components/RemindersDialog/index.d.ts +1 -1
  92. package/es/pages/Signature/Envelope/components/RemoveSignatureDialog/index.d.ts +2 -2
  93. package/es/pages/Signature/Envelope/components/ReviewDialog/index.d.ts +1 -1
  94. package/es/pages/Signature/Envelope/components/ReviewDialog/state.d.ts +2 -2
  95. package/es/pages/Signature/Envelope/components/SendDialog/index.d.ts +3 -3
  96. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Cancel.d.ts +2 -2
  97. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Complete.d.ts +2 -2
  98. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Reopen.d.ts +2 -2
  99. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendInvite.d.ts +2 -2
  100. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReminders.d.ts +2 -2
  101. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReview.d.ts +2 -2
  102. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/ViewSignatures.d.ts +2 -2
  103. package/es/pages/Signature/Letter/LetterItem/index.d.ts +4 -4
  104. package/es/pages/Signature/Letter/LetterList/index.d.ts +6 -6
  105. package/es/pages/Signature/Letter/LetterRecipientItem/index.d.ts +2 -2
  106. package/es/pages/Signature/Letter/LetterViewer/index.d.ts +1 -1
  107. package/es/pages/Signature/SignatureTable/RemoveSignatureDialog.d.ts +2 -2
  108. package/es/pages/Signature/SigningReminderDialog/index.d.ts +1 -1
  109. package/es/pages/Signature/data/EnvelopeContext.d.ts +0 -1
  110. package/es/pages/VSubmit/components/EmailRecipients/index.d.ts +3 -3
  111. 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 | undefined;
10
- className?: string | undefined;
11
- editable?: boolean | undefined;
12
- onChange?: ((params: any) => void) | undefined;
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" | undefined;
5
+ size?: "small" | "middle" | "large";
6
6
  /** disabled Button */
7
- disabled?: boolean | undefined;
7
+ disabled?: boolean;
8
8
  /** function of Click */
9
- action?: ((context?: any) => void) | undefined;
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" | undefined;
5
+ size?: "small" | "middle" | "large";
6
6
  /** disabled Button */
7
- disabled?: boolean | undefined;
8
- text?: string | undefined;
7
+ disabled?: boolean;
8
+ text?: string;
9
9
  /** function of Click */
10
- action?: ((context?: any) => void) | undefined;
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" | undefined;
5
+ size?: "small" | "middle" | "large";
6
6
  /** disabled Button */
7
- disabled?: boolean | undefined;
7
+ disabled?: boolean;
8
8
  /** function of Click */
9
- action?: ((context?: any) => void) | undefined;
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" | undefined;
5
+ size?: "small" | "middle" | "large";
6
6
  /** disabled Button */
7
- disabled?: boolean | undefined;
7
+ disabled?: boolean;
8
8
  /** url of open new page */
9
- url?: string | undefined;
9
+ url?: string;
10
10
  /** function of Click */
11
- action?: ((context?: any) => void) | undefined;
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" | undefined;
7
+ size?: "small" | "middle" | "large";
8
8
  /** disabled Button */
9
- disabled?: boolean | undefined;
9
+ disabled?: boolean;
10
10
  /** function of Click */
11
- action?: ((context?: any) => void) | undefined;
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 | undefined;
7
- flag?: "Star" | "Urgent" | "None" | undefined;
6
+ editable?: boolean;
7
+ flag?: "None" | "Star" | "Urgent";
8
8
  icon?: any;
9
- color?: string | undefined;
10
- size?: "sm" | "xs" | "lg" | undefined;
11
- className?: string | undefined;
12
- onchange?: ((params?: any) => void) | undefined;
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 {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare class DocumentListContextState {
3
2
  /** active?: string (文件id) 在DocumentSortableTree-FileExplorerTheme需要用到,显示点击当前的item的active效果 */
4
3
  active?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterOption } from "@voplus/morpho-data";
3
2
  import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
4
3
  import { IDocument, QuickViewProps, DocumentMenuProps } from "@voplus/morpho-document-core";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DefaultDocumentTypeMeta } from "../..";
3
2
  import { IDocumentMetaStore } from "@voplus/morpho-document-core";
4
3
  /** Meta information for graph. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, QuickViewProps, IDocumentMetaStore, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
4
3
  /** Meta information for DocumentRegister document. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
4
3
  /** Meta information for File document. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, IDocumentMetaStore, QuickViewProps, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../..";
4
3
  /** Meta information for graph. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DefaultDocumentTypeMeta } from "../..";
3
2
  import { IDocumentMetaStore } from "@voplus/morpho-document-core";
4
3
  /** Meta information for shortcut. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, IDocumentMetaStore, QuickViewProps, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../..";
4
3
  /** Meta information for shortcut. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, QuickViewProps, IDocumentMetaStore, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
4
3
  /** Meta information for RegisteredDocument document. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, IDocumentMetaStore, QuickViewProps, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../..";
4
3
  /** Meta information for shortcut. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DocumentCardProps, IDocument, IDocumentMetaStore, QuickViewProps, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../..";
4
3
  /** Meta information for e-sign envelope. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DocumentMenuProps, IDocument, IDocumentMetaStore, QuickViewProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../..";
4
3
  /** Meta information for shortcut. */
@@ -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 | undefined;
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 | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
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 | undefined;
4
- readOnly?: boolean | undefined;
5
- onChange?: ((code: string) => void) | undefined;
3
+ code?: string;
4
+ readOnly?: boolean;
5
+ onChange?: (code: string) => void;
6
6
  }) => React.JSX.Element;
7
7
  export default CodeMirror;
@@ -28,7 +28,7 @@ export class State {
28
28
  value: void 0
29
29
  });
30
30
  makeObservable(this);
31
- if (!((_a = this.messageTemplate) === null || _a === void 0 ? void 0 : _a.preview)) {
31
+ if (!((_a = this.messageTemplate) === null || _a === void 0 ? void 0 : _a.hasOwnProperty("preview"))) {
32
32
  this.loadData();
33
33
  }
34
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplateContent/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAG1D,MAAM,OAAO,KAAK;IAIjB,YAAoB,EAAU,EAAU,KAA2B;;QAAvD;;;;mBAAQ,EAAE;WAAQ;QAAE;;;;mBAAQ,KAAK;WAAsB;QAHhD;;;;mBAAU,KAAK;WAAC;QAChB;;;;;WAAkC;QAGpD,cAAc,CAAC,IAAI,CAAC,CAAC;QAErB,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,eAAe,0CAAE,OAAO,CAAA,EAAE,CAAC;YACpC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACjB,CAAC;IACF,CAAC;IAGY,AAAN,KAAK,CAAC,QAAQ;QACpB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAEpB,MAAM,IAAI,CAAC,KAAK;aACd,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC;aAC7C,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC,CAAC;aAC3C,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IACtC,CAAC;CACD;AApBmB;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;8CAA0C;AAWxC;IADZ,MAAM;qCAQN"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplateContent/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAG1D,MAAM,OAAO,KAAK;IAIjB,YAAoB,EAAU,EAAU,KAA2B;;QAAvD;;;;mBAAQ,EAAE;WAAQ;QAAE;;;;mBAAQ,KAAK;WAAsB;QAHhD;;;;mBAAU,KAAK;WAAC;QAChB;;;;;WAAkC;QAGpD,cAAc,CAAC,IAAI,CAAC,CAAC;QAErB,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,eAAe,0CAAE,cAAc,CAAC,SAAS,CAAC,CAAA,EAAE,CAAC;YACtD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACjB,CAAC;IACF,CAAC;IAGY,AAAN,KAAK,CAAC,QAAQ;QACpB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAEpB,MAAM,IAAI,CAAC,KAAK;aACd,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC;aAC7C,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC,CAAC;aAC3C,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IACtC,CAAC;CACD;AApBmB;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;8CAA0C;AAWxC;IADZ,MAAM;qCAQN"}
@@ -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<any, import("rc-select/lib/Select").DefaultOptionType> & {
6
- defaultValue?: string | undefined;
7
- isLayout?: boolean | undefined;
8
- onChange?: ((messageTemplate?: IMessageTemplate) => void) | undefined;
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;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const SendPreviewEmail: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
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?: ((collapse: boolean) => void) | undefined;
7
+ changeCollapse?: (collapse: boolean) => void;
8
8
  /** Open new tab button */
9
- openVisible?: boolean | undefined;
9
+ openVisible?: boolean;
10
10
  /** show icon */
11
- iconVisible?: boolean | undefined;
11
+ iconVisible?: boolean;
12
12
  preToolBar?: ReactNode;
13
13
  }) => React.JSX.Element;
14
14
  export default PageItemHeader;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IPageItemState } from "./IPageItemState";
3
2
  export declare class PageContextState {
4
3
  /** All page item states. */
@@ -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?: ((type: string) => void) | undefined;
7
- onFilter?: ((options?: FilterOption[]) => void) | undefined;
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 | undefined;
6
- onFilter?: ((options?: FilterOption[]) => void) | undefined;
5
+ className?: string;
6
+ onFilter?: (options?: FilterOption[]) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default GeneralFilterForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare class QuickAccessState {
3
2
  total?: number;
4
3
  onCallback?: () => void;
@@ -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?: "PropertiesView" | "DefaultView" | undefined);
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[] | undefined;
5
+ types?: ITypeLineOptions[];
6
6
  /** type of registers shown on the list. */
7
- type?: number | undefined;
8
- onChangeFilter?: ((typeId?: number) => void) | undefined;
9
- onAdd?: (() => void) | undefined;
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 | undefined;
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?: ((v: string) => void) | undefined;
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 | undefined;
7
+ total?: boolean;
8
8
  /** 是否允在 listView 内部打开 aside */
9
- asideable?: boolean | undefined;
9
+ asideable?: boolean;
10
10
  /** Call back when received total number of tenant-service. */
11
- onTotal?: ((total: number) => void) | undefined;
11
+ onTotal?: (total: number) => void;
12
12
  /** Call back when an item has been clicked on the list. */
13
- onClickItem?: ((item: ITenantService) => void) | undefined;
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 { Badge } from "antd";
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/ListView2";
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("div", { className: styles["tenant-service-list"] },
33
- React.createElement(ListView, { headerProps: {
34
- viewTitle: (React.createElement(React.Fragment, null,
35
- React.createElement("span", { className: "margin-right-10" }, viewTitle || "Tenant Service"),
36
- total && tenantServiceTotal ? (React.createElement(Badge, { count: tenantServiceTotal, overflowCount: 99 })) : null)),
37
- addAble: false,
38
- sortable: false,
39
- quickSearch: true,
40
- }, asideable: asideable, className: "tenant-service-list-content", renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
41
- active: activeId === item.id,
42
- hoverEffect: "none",
43
- activeEffect: "border",
44
- borderProps: { location: "right", color: "#1890ff ", size: "2px" },
45
- }, onClick: () => {
46
- var _a;
47
- setActiveId(item.id);
48
- (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
49
- } },
50
- React.createElement(TenantServiceItem, { id: item.id }))) })))));
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,iB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,iBAAiB,CAAC"}
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,CAAC;IAC9C,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC7C,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEhE,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,QAAQ;SAClB;KACD,EACD,EAAE,CACF,CAAC;IAEF,iBAAiB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9C,2EAA2E;IAC3E,0BAA0B,CACzB,IAAI,EACJ,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;;QACjB,IA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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"}
@@ -1,12 +1,2 @@
1
1
  .tenant-service-list {
2
- display: flex;
3
- flex-direction: column;
4
- height: 100%;
5
-
6
- :global {
7
- .tenant-service-list-content {
8
- background-color: #fff;
9
- padding: 0 !important;
10
- }
11
- }
12
2
  }
@@ -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, { viewTitle: " ", tenantServiceId: id, asideable: false }),
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,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Y,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC,IAAI,CAAI;SAC5E;KACD,CAAC;IAEF,UAAU;QACT,KAAK,CAAC,OAAO,CAAC;YACb,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI;SAC7C,CAAC,CAAC;IAEJ,OAAO,OAAO,CAAC,GAAG,EAAE;;QACnB,CAAA,MAAA,aAAa,CAAC,MAAM,0CAAE,MAAM;YAC3B,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;gBACnC,GAAG,EAAE,UAAU;gBACf,KAAK,EAAE,UAAU;gBACjB,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"}
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;AACj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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 | undefined;
6
+ total?: boolean;
9
7
  /** 是否允在 listView 内部打开 aside */
10
- asideable?: boolean | undefined;
8
+ asideable?: boolean;
11
9
  /** Call back when received total number of tenant-service-execution. */
12
- onTotal?: ((total: number) => void) | undefined;
10
+ onTotal?: (total: number) => void;
13
11
  /** Call back when an item has been clicked on the list. */
14
- onClickItem?: ((item: ITenantServiceExecution) => void) | undefined;
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/ListView2";
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, viewTitle, total, asideable } = props;
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
- viewTitle: (React.createElement(React.Fragment, null,
34
- React.createElement("span", { className: "margin-right-10" }, viewTitle || "Tenant Service Execution"),
35
- total && tenantServiceExecutionTotal ? (React.createElement(Badge, { count: tenantServiceExecutionTotal, overflowCount: 99 })) : null)),
36
- addAble: false,
37
- sortable: false,
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",
@@ -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;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AACvE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,0BAA0B,GAAG,CAAC,KAYnC,EAAE,EAAE;IACJ,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAC/D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC7C,MAAM,CAAC,2BAA2B,EAAE,8BAA8B,CAAC,GAAG,QAAQ,CA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,EACjD,UAAU,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,CAC9B,oBAAC,iBAAiB,IACjB,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,UAAU,EAAE;wBACX,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC,EAAE;wBAC5B,WAAW,EAAE,MAAM;wBACnB,YAAY,EAAE,QAAQ;wBACtB,WAAW,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE;qBAClE,EACD,OAAO,EAAE,GAAG,EAAE;;wBACb,WAAW,CAAC,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
+ {"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,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UAAU,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,CAC9B,oBAAC,iBAAiB,IACjB,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,UAAU,EAAE;wBACX,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC,EAAE;wBAC5B,WAAW,EAAE,MAAM;wBACnB,YAAY,EAAE,QAAQ;wBACtB,WAAW,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE;qBAClE,EACD,OAAO,EAAE,GAAG,EAAE;;wBACb,WAAW,CAAC,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 | undefined;
5
- readOnly?: boolean | undefined;
6
- onChange?: ((code: string) => void) | undefined;
4
+ height?: string;
5
+ readOnly?: boolean;
6
+ onChange?: (code: string) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default CodeMirror;