@voplus/morpho-document 6.0.45 → 6.0.47

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 (123) hide show
  1. package/es/controls/PDFViewer/index.js +2 -20
  2. package/es/controls/PDFViewer/index.js.map +1 -1
  3. package/es/data/tenant-service/TenantServiceStore.d.ts +23 -0
  4. package/es/data/tenant-service/TenantServiceStore.js +69 -0
  5. package/es/data/tenant-service/TenantServiceStore.js.map +1 -0
  6. package/es/data/tenant-service/hooks.d.ts +10 -0
  7. package/es/data/tenant-service/hooks.js +19 -0
  8. package/es/data/tenant-service/hooks.js.map +1 -0
  9. package/es/data/tenant-service/index.d.ts +4 -0
  10. package/es/data/tenant-service/index.js +5 -0
  11. package/es/data/tenant-service/index.js.map +1 -0
  12. package/es/data/tenant-service/interfaces.d.ts +21 -0
  13. package/es/data/tenant-service/interfaces.js +2 -0
  14. package/es/data/tenant-service/interfaces.js.map +1 -0
  15. package/es/data/tenant-service/types.d.ts +16 -0
  16. package/es/data/tenant-service/types.js +2 -0
  17. package/es/data/tenant-service/types.js.map +1 -0
  18. package/es/data/tenant-service-execution/TenantServiceExecutionStore.d.ts +21 -0
  19. package/es/data/tenant-service-execution/TenantServiceExecutionStore.js +61 -0
  20. package/es/data/tenant-service-execution/TenantServiceExecutionStore.js.map +1 -0
  21. package/es/data/tenant-service-execution/hooks.d.ts +10 -0
  22. package/es/data/tenant-service-execution/hooks.js +19 -0
  23. package/es/data/tenant-service-execution/hooks.js.map +1 -0
  24. package/es/data/tenant-service-execution/index.d.ts +4 -0
  25. package/es/data/tenant-service-execution/index.js +5 -0
  26. package/es/data/tenant-service-execution/index.js.map +1 -0
  27. package/es/data/tenant-service-execution/interfaces.d.ts +24 -0
  28. package/es/data/tenant-service-execution/interfaces.js +2 -0
  29. package/es/data/tenant-service-execution/interfaces.js.map +1 -0
  30. package/es/data/tenant-service-execution/types.d.ts +7 -0
  31. package/es/data/tenant-service-execution/types.js +2 -0
  32. package/es/data/tenant-service-execution/types.js.map +1 -0
  33. package/es/modules/tenant-service/components/TenantServiceHeader/index.d.ts +6 -0
  34. package/es/modules/tenant-service/components/TenantServiceHeader/index.js +19 -0
  35. package/es/modules/tenant-service/components/TenantServiceHeader/index.js.map +1 -0
  36. package/es/modules/tenant-service/components/TenantServiceHeader/index.less +12 -0
  37. package/es/modules/tenant-service/components/TenantServiceInterval/index.d.ts +5 -0
  38. package/es/modules/tenant-service/components/TenantServiceInterval/index.js +36 -0
  39. package/es/modules/tenant-service/components/TenantServiceInterval/index.js.map +1 -0
  40. package/es/modules/tenant-service/components/TenantServiceInterval/index.less +32 -0
  41. package/es/modules/tenant-service/components/TenantServiceInterval/state.d.ts +28 -0
  42. package/es/modules/tenant-service/components/TenantServiceInterval/state.js +177 -0
  43. package/es/modules/tenant-service/components/TenantServiceInterval/state.js.map +1 -0
  44. package/es/modules/tenant-service/components/TenantServiceItem/index.d.ts +5 -0
  45. package/es/modules/tenant-service/components/TenantServiceItem/index.js +33 -0
  46. package/es/modules/tenant-service/components/TenantServiceItem/index.js.map +1 -0
  47. package/es/modules/tenant-service/components/TenantServiceItem/index.less +36 -0
  48. package/es/modules/tenant-service/components/TenantServiceList/index.d.ts +15 -0
  49. package/es/modules/tenant-service/components/TenantServiceList/index.js +52 -0
  50. package/es/modules/tenant-service/components/TenantServiceList/index.js.map +1 -0
  51. package/es/modules/tenant-service/components/TenantServiceList/index.less +12 -0
  52. package/es/modules/tenant-service/components/TenantServiceProperties/index.d.ts +20 -0
  53. package/es/modules/tenant-service/components/TenantServiceProperties/index.js +53 -0
  54. package/es/modules/tenant-service/components/TenantServiceProperties/index.js.map +1 -0
  55. package/es/modules/tenant-service/components/TenantServicePropertiesView/index.d.ts +6 -0
  56. package/es/modules/tenant-service/components/TenantServicePropertiesView/index.js +16 -0
  57. package/es/modules/tenant-service/components/TenantServicePropertiesView/index.js.map +1 -0
  58. package/es/modules/tenant-service/components/TenantServicePropertiesView/index.less +4 -0
  59. package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.d.ts +8 -0
  60. package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.js +22 -0
  61. package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.js.map +1 -0
  62. package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.less +7 -0
  63. package/es/modules/tenant-service/components/TenantServiceReference/index.d.ts +5 -0
  64. package/es/modules/tenant-service/components/TenantServiceReference/index.js +14 -0
  65. package/es/modules/tenant-service/components/TenantServiceReference/index.js.map +1 -0
  66. package/es/modules/tenant-service/components/TenantServiceTabs/index.d.ts +8 -0
  67. package/es/modules/tenant-service/components/TenantServiceTabs/index.js +34 -0
  68. package/es/modules/tenant-service/components/TenantServiceTabs/index.js.map +1 -0
  69. package/es/modules/tenant-service/controls/TenantServiceMenu/index.d.ts +6 -0
  70. package/es/modules/tenant-service/controls/TenantServiceMenu/index.js +9 -0
  71. package/es/modules/tenant-service/controls/TenantServiceMenu/index.js.map +1 -0
  72. package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.d.ts +3 -0
  73. package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.js +30 -0
  74. package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.js.map +1 -0
  75. package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.less +17 -0
  76. package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.d.ts +6 -0
  77. package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.js +19 -0
  78. package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.js.map +1 -0
  79. package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.less +12 -0
  80. package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.d.ts +5 -0
  81. package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.js +34 -0
  82. package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.js.map +1 -0
  83. package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.less +29 -0
  84. package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.d.ts +16 -0
  85. package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.js +52 -0
  86. package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.js.map +1 -0
  87. package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.less +12 -0
  88. package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.d.ts +7 -0
  89. package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.js +24 -0
  90. package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.js.map +1 -0
  91. package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.less +27 -0
  92. package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.d.ts +20 -0
  93. package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.js +46 -0
  94. package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.js.map +1 -0
  95. package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.d.ts +9 -0
  96. package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.js +16 -0
  97. package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.js.map +1 -0
  98. package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.less +4 -0
  99. package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.d.ts +8 -0
  100. package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.js +22 -0
  101. package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.js.map +1 -0
  102. package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.less +7 -0
  103. package/es/modules/tenant-service-execution/components/TenantServiceExecutionTabs/index.d.ts +6 -0
  104. package/es/modules/tenant-service-execution/components/TenantServiceExecutionTabs/index.js +24 -0
  105. package/es/modules/tenant-service-execution/components/TenantServiceExecutionTabs/index.js.map +1 -0
  106. package/es/modules/tenant-service-execution/controls/TenantServiceExecutionMenu/index.d.ts +6 -0
  107. package/es/modules/tenant-service-execution/controls/TenantServiceExecutionMenu/index.js +9 -0
  108. package/es/modules/tenant-service-execution/controls/TenantServiceExecutionMenu/index.js.map +1 -0
  109. package/es/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.d.ts +3 -0
  110. package/es/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.js +30 -0
  111. package/es/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.js.map +1 -0
  112. package/es/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.less +17 -0
  113. package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.js +42 -12
  114. package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.js.map +1 -1
  115. package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.less +77 -15
  116. package/es/pages/Signature/Envelope/EnvelopeRecipientView/state.d.ts +1 -0
  117. package/es/pages/Signature/Envelope/EnvelopeRecipientView/state.js +9 -0
  118. package/es/pages/Signature/Envelope/EnvelopeRecipientView/state.js.map +1 -1
  119. package/es/pages/Signature/Letter/LetterViewer/index.less +1 -1
  120. package/es/routes.d.ts +18 -0
  121. package/es/routes.js +40 -1
  122. package/es/routes.js.map +1 -1
  123. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ import { TabItemContext, TabItemStore, useTabItem } from "@voplus/morpho-data";
2
+ import React, { useEffect, useState } from "react";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
5
+ import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
6
+ import { runInAction } from "mobx";
7
+ import { useParams } from "react-router-dom";
8
+ import { useTenantService } from "../../../../data/tenant-service";
9
+ import TenantServiceProperties from "../../components/TenantServiceProperties";
10
+ import TenantServiceTabs from "../../components/TenantServiceTabs";
11
+ import styles from "./index.less";
12
+ const TenantServiceDefaultView = () => {
13
+ const { id } = useParams();
14
+ const store = new TabItemStore({ url: "" });
15
+ const tenantService = useTenantService(id);
16
+ const [asideContext] = useState(AsideContent.createContext());
17
+ const tab = useTabItem();
18
+ useEffect(() => {
19
+ runInAction(() => (tab.title = tenantService.name));
20
+ });
21
+ return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
22
+ React.createElement(MainContent, { className: styles["tenant-service-default-view"] },
23
+ React.createElement(MainContent.Nav, { collapsible: true },
24
+ React.createElement(TenantServiceProperties, { id: id, headerVisible: true })),
25
+ React.createElement("div", { className: "tenant-service-context" },
26
+ React.createElement(AsideContent, { context: asideContext },
27
+ React.createElement(TenantServiceTabs, { id: id })))))));
28
+ };
29
+ export default TenantServiceDefaultView;
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/pages/TenantServiceDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,uBAAuB,MAAM,0CAA0C,CAAC;AAC/E,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;AACnE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,wBAAwB,GAAG,GAAG,EAAE;IACrC,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAE3C,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,gBAAgB,CAAC,EAAG,CAAC,CAAC;IAC5C,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAC9D,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACpC,oBAAC,WAAW,IAAC,SAAS,EAAE,MAAM,CAAC,6BAA6B,CAAC;YAC5D,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;gBAC3B,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAG,EAAE,aAAa,SAAG,CACjC;YAClB,6BAAK,SAAS,EAAC,wBAAwB;gBACtC,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;oBAClC,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAG,GAAI,CAChB,CACV,CACO,CACW,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,17 @@
1
+ .tenant-service-default-view {
2
+ :global {
3
+ .main-content-nav {
4
+ width: 370px;
5
+ padding: 0;
6
+ }
7
+
8
+ .tenant-service-context {
9
+ padding: 0;
10
+ background: #ffffff;
11
+
12
+ .ant-tabs-nav {
13
+ margin: 0 !important;
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,6 @@
1
+ import "./index.less";
2
+ import React from "react";
3
+ declare const TenantServiceExecutionHeader: (props: {
4
+ id: string;
5
+ }) => React.JSX.Element;
6
+ export default TenantServiceExecutionHeader;
@@ -0,0 +1,19 @@
1
+ import "./index.less";
2
+ import ToolBar from "../../../../controls/ToolBar/ToolBar2";
3
+ import { Open } from "../../../../controls/ToolBar/buttons";
4
+ import { observe } from "@voplus/morpho-ui";
5
+ import React from "react";
6
+ import { useTenantServiceExecution, } from "../../../../data/tenant-service-execution";
7
+ import Routes from "../../../../routes";
8
+ import TenantServiceExecutionMenu from "../../controls/TenantServiceExecutionMenu";
9
+ const TenantServiceExecutionHeader = (props) => {
10
+ const id = props.id;
11
+ const tenantServiceExecution = useTenantServiceExecution(id);
12
+ return observe(() => (React.createElement("div", { className: "tenant-service-execution-header" },
13
+ React.createElement("div", null, "TenantServiceExecution"),
14
+ React.createElement(ToolBar, { showMenu: false },
15
+ React.createElement(Open, { url: Routes.TenantServiceExecution.getUrl(id) }),
16
+ React.createElement(TenantServiceExecutionMenu, { id: id, closeAside: true })))));
17
+ };
18
+ export default TenantServiceExecutionHeader;
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,yBAAyB,GAEzB,MAAM,2CAA2C,CAAC;AACnD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,0BAA0B,MAAM,2CAA2C,CAAC;AAEnF,MAAM,4BAA4B,GAAG,CAAC,KAAsB,EAAE,EAAE;IAC/D,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,sBAAsB,GAAG,yBAAyB,CAAC,EAAE,CAAC,CAAC;IAE7D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,iCAAiC;QAC/C,0DAGM;QACN,oBAAC,OAAO,IAAC,QAAQ,EAAE,KAAK;YACvB,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;YACvD,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CAC/C,CACL,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,4BAA4B,CAAC"}
@@ -0,0 +1,12 @@
1
+ :global {
2
+ .tenant-service-execution-header {
3
+ font-size: 24px;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ padding: 10px 20px;
7
+
8
+ .tools-bar {
9
+ text-align: right;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ declare const TenantServiceExecutionItem: (props: {
3
+ id: string;
4
+ }) => React.JSX.Element;
5
+ export default TenantServiceExecutionItem;
@@ -0,0 +1,34 @@
1
+ import ToolBar from "../../../../controls/ToolBar/ToolBar2";
2
+ import { Open } from "../../../../controls/ToolBar/buttons";
3
+ import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
4
+ import { observe } from "@voplus/morpho-ui";
5
+ import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
6
+ import classnames from "classnames";
7
+ import React, { useState } from "react";
8
+ import { useTenantServiceExecution } from "../../../../data/tenant-service-execution";
9
+ import Routes from "../../../../routes";
10
+ import dayjs from "dayjs";
11
+ import TenantServiceExecutionMenu from "../../controls/TenantServiceExecutionMenu";
12
+ import PropertiesView from "../TenantServiceExecutionPropertiesView";
13
+ import TenantServiceExecutionQuickViewDialog from "../TenantServiceExecutionQuickViewDialog";
14
+ import styles from "./index.less";
15
+ const TenantServiceExecutionItem = (props) => {
16
+ const { id } = props;
17
+ const tenantServiceExecution = useTenantServiceExecution(id);
18
+ const [hover, setHover] = useState(false);
19
+ return observe(() => (
20
+ // <Skeleton active loading={tenantServiceExecution.loading}>
21
+ React.createElement(ItemFunction, { className: styles["tenant-service-execution-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(PropertiesView, { id: id, data: tenantServiceExecution }), quickViewDialog: (onCancel) => (React.createElement(TenantServiceExecutionQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
22
+ React.createElement(ColumnItem, { className: "tenant-service-execution-column-item" },
23
+ React.createElement(ColumnItemCol, { span: 8, title: "Start Time" }, dayjs(tenantServiceExecution.startTime).format("YYYY-MM-DD")),
24
+ React.createElement(ColumnItemCol, { span: 8, title: "Complete Time" }, dayjs(tenantServiceExecution.completeTime).format("YYYY-MM-DD")),
25
+ React.createElement(ColumnItemCol, { span: 8, align: "flex-end" },
26
+ React.createElement("div", { className: classnames("tenant-service-execution-item-tool", { show: hover }) },
27
+ React.createElement(ToolBar, { showMenu: false },
28
+ React.createElement(Open, { url: Routes.TenantServiceExecution.getUrl(id) }),
29
+ React.createElement(TenantServiceExecutionMenu, { id: id, closeAside: true }))))))
30
+ // </Skeleton>
31
+ ));
32
+ };
33
+ export default TenantServiceExecutionItem;
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,C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AY,IACxC,KAAK,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAC9C;YAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,eAAe,IAC3C,KAAK,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CACjD;YAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU;gBACvC,6BAAK,SAAS,EAAE,UAAU,CAAC,oCAAoC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;oBAChF,oBAAC,OAAO,IAAC,QAAQ,EAAE,KAAK;wBACvB,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;wBACvD,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CAC/C,CACL,CACS,CACJ,CACC;IACf,cAAc;KACd,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,29 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ .tenant-service-execution-item {
4
+ cursor: pointer;
5
+
6
+ &:hover {
7
+ background-color: #f5f8fd;
8
+ }
9
+
10
+ :global {
11
+ .tenant-service-execution-item-name {
12
+ color: #575757;
13
+ font-weight: 500;
14
+ word-break: break-all;
15
+ }
16
+
17
+ .tenant-service-execution-item-tool {
18
+ display: none;
19
+
20
+ &.show {
21
+ display: block;
22
+ }
23
+ }
24
+
25
+ .tenant-service-execution-column-item {
26
+ padding: 10px 20px;
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { ITenantServiceExecution } from "../../../../data/tenant-service-execution";
3
+ declare const TenantServiceExecutionList: (props: {
4
+ tenantServiceId: string;
5
+ /** title */
6
+ viewTitle?: React.ReactNode;
7
+ /** 是否显示 total */
8
+ total?: boolean | undefined;
9
+ /** 是否允在 listView 内部打开 aside */
10
+ asideable?: boolean | undefined;
11
+ /** Call back when received total number of tenant-service-execution. */
12
+ onTotal?: ((total: number) => void) | undefined;
13
+ /** Call back when an item has been clicked on the list. */
14
+ onClickItem?: ((item: ITenantServiceExecution) => void) | undefined;
15
+ }) => React.JSX.Element;
16
+ export default TenantServiceExecutionList;
@@ -0,0 +1,52 @@
1
+ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
2
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
3
+ import React, { useState } from "react";
4
+ import { useTenantServiceExecutionListEffect, } from "../../../../data/tenant-service-execution";
5
+ import { Badge } from "antd";
6
+ import DocumentItemFrame from "../../../../controls/DocumentItemFrame";
7
+ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
8
+ import TenantServiceExecutionItem from "../TenantServiceExecutionItem";
9
+ import styles from "./index.less";
10
+ const TenantServiceExecutionList = (props) => {
11
+ const { tenantServiceId, viewTitle, total, asideable } = props;
12
+ const [activeId, setActiveId] = useState("");
13
+ const [tenantServiceExecutionTotal, setTenantServiceExecutionTotal] = useState(0);
14
+ const list = useCreateListDataState({
15
+ filterDefaults: {
16
+ filters: [{ c: "TenantServiceId", o: "=", l: "And", v1: tenantServiceId }],
17
+ },
18
+ }, [tenantServiceId]);
19
+ useRenderOnChange(() => list.filters.options);
20
+ /** 把ListDataState传给useTenantServiceExecutionListEffect,使之可以自動更新loading, hasmore. */
21
+ useTenantServiceExecutionListEffect(list, (result, total) => {
22
+ var _a;
23
+ list.union(result);
24
+ setTenantServiceExecutionTotal(total);
25
+ (_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total);
26
+ }, {
27
+ Total: true,
28
+ ...list.filters.options,
29
+ });
30
+ return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
31
+ React.createElement("div", { className: styles["tenant-service-execution-list"] },
32
+ 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,
39
+ }, asideable: asideable, className: "tenant-service-execution-list-content", renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
40
+ active: activeId === item.id,
41
+ hoverEffect: "none",
42
+ activeEffect: "border",
43
+ borderProps: { location: "right", color: "#1890ff ", size: "2px" },
44
+ }, onClick: () => {
45
+ var _a;
46
+ setActiveId(item.id);
47
+ (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
48
+ } },
49
+ React.createElement(TenantServiceExecutionItem, { id: item.id }))) })))));
50
+ };
51
+ export default TenantServiceExecutionList;
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,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AAC,KAAK,EAAE,2BAA2B,EAAE,aAAa,EAAE,EAAE,GAAI,CAChE,CAAC,CAAC,CAAC,IAAI,CACN,CACH;oBACD,OAAO,EAAE,KAAK;oBACd,QAAQ,EAAE,KAAK;oBACf,WAAW,EAAE,IAAI;iBACjB,EACD,SAAS,EAAE,SAAS,EACpB,SAAS,EAAC,uCAAuC,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"}
@@ -0,0 +1,12 @@
1
+ .tenant-service-execution-list {
2
+ display: flex;
3
+ flex-direction: column;
4
+ height: 100%;
5
+
6
+ :global {
7
+ .tenant-service-execution-list-content {
8
+ background-color: #fff;
9
+ padding: 0 !important;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const TenantServiceExecutionMessagesList: (props: {
4
+ id: string;
5
+ viewTitle?: boolean;
6
+ }) => React.JSX.Element;
7
+ export default TenantServiceExecutionMessagesList;
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { Empty, Skeleton, Badge } from "antd";
4
+ import dayjs from "dayjs";
5
+ import Scrollbars from "react-custom-scrollbars-2";
6
+ import ItemFrame from "@voplus/morpho-ui/es/controls/ItemFrame";
7
+ import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
8
+ import { useTenantServiceExecution } from "../../../../data/tenant-service-execution";
9
+ import "./index.less";
10
+ const TenantServiceExecutionMessagesList = (props) => {
11
+ const { id, viewTitle } = props;
12
+ const tenantServiceExecution = useTenantServiceExecution(id);
13
+ return observe(() => (React.createElement("div", { className: "execution-message-list" },
14
+ viewTitle && React.createElement("div", { className: "execution-message-header" }, "Messages"),
15
+ React.createElement(Scrollbars, { autoHide: true },
16
+ React.createElement(Skeleton, { loading: tenantServiceExecution.loading }, tenantServiceExecution.messages ? (tenantServiceExecution.messages.map((item, index) => (React.createElement(ItemFrame, { key: index, hoverEffect: "background" },
17
+ React.createElement(ColumnItem, { className: "execution-message-item" },
18
+ React.createElement(ColumnItemCol, { span: 19 },
19
+ React.createElement("div", { className: "execution-message-item-name" }, `${item.message}`),
20
+ React.createElement("div", { className: "data-icon" }, dayjs(item.date).format("DD MMM YYYY"))),
21
+ React.createElement(ColumnItemCol, { span: 5, align: "flex-end" }, item.isError ? React.createElement(Badge, { status: "error", text: "Error" }) : null)))))) : (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })))))));
22
+ };
23
+ export default TenantServiceExecutionMessagesList;
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,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ACtC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAC,KAAK,IAAC,MAAM,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,GAAG,CAAC,CAAC,CAAC,IAAI,CAC7C,CACJ,CACF,CACZ,CAAC,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,sBAAsB,GAAI,CAC9C,CACS,CACC,CACR,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kCAAkC,CAAC"}
@@ -0,0 +1,27 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .execution-message-list {
5
+ height: 100%;
6
+ display: flex;
7
+ flex-direction: column;
8
+ .execution-message-header {
9
+ height: 60px;
10
+ padding: 1em 20px;
11
+ color: #575757;
12
+ font-size: 16px;
13
+ font-weight: 600;
14
+ }
15
+ .execution-message-item {
16
+ padding: 10px 20px;
17
+ .execution-message-item-name {
18
+ color: #575757;
19
+ font-weight: 500;
20
+ word-break: break-all;
21
+ }
22
+ .data-icon {
23
+ color: #6b7280;
24
+ }
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ export type TenantServiceExecutionPropertiesName = "StartTime" | "CompleteTime" | "Service";
3
+ declare const TenantServiceExecutionProperties: {
4
+ (props: {
5
+ id: string;
6
+ headerVisible?: boolean;
7
+ tenantServiceExecutionTitle?: string;
8
+ tenantServiceExecutionProperties?: {
9
+ name: TenantServiceExecutionPropertiesName;
10
+ visible?: boolean;
11
+ }[];
12
+ }): React.JSX.Element;
13
+ defaultProps: {
14
+ tenantServiceExecutionTitle: string;
15
+ tenantServiceExecutionProperties: {
16
+ name: string;
17
+ }[];
18
+ };
19
+ };
20
+ export default TenantServiceExecutionProperties;
@@ -0,0 +1,46 @@
1
+ import ToolBar from "../../../../controls/ToolBar/ToolBar2";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import Prop from "@voplus/morpho-ui/es/controls/Prop";
4
+ import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
5
+ import React from "react";
6
+ import dayjs from "dayjs";
7
+ import Scrollbars from "react-custom-scrollbars-2";
8
+ import { useTenantServiceExecution, useTenantServiceExecutionStore, } from "../../../../data/tenant-service-execution";
9
+ import TenantServiceExecutionMenu from "../../controls/TenantServiceExecutionMenu";
10
+ const TenantServiceExecutionProperties = (props) => {
11
+ /** 加class name 为了方便做integration tests */
12
+ const classId = "tenantServiceExecution-properties";
13
+ const { id, headerVisible, tenantServiceExecutionTitle, tenantServiceExecutionProperties } = props;
14
+ const tenantServiceExecution = useTenantServiceExecution(id);
15
+ const store = useTenantServiceExecutionStore();
16
+ const filterPro = tenantServiceExecutionProperties === null || tenantServiceExecutionProperties === void 0 ? void 0 : tenantServiceExecutionProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
17
+ return observe(() => (React.createElement("div", { className: "properties-list" },
18
+ headerVisible && (React.createElement("div", { className: "properties-header" },
19
+ React.createElement("div", { className: "title" }, "TenantServiceExecution"),
20
+ React.createElement(ToolBar, { id: id, showMenu: false },
21
+ React.createElement(TenantServiceExecutionMenu, { id: id })))),
22
+ React.createElement(Scrollbars, { autoHide: true },
23
+ React.createElement(PropertiesSection, { title: tenantServiceExecutionTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) })))));
24
+ function renderProp(item) {
25
+ switch (item.name) {
26
+ case "StartTime":
27
+ return dayjs(tenantServiceExecution.startTime).format("DD MMM YYYY");
28
+ case "CompleteTime":
29
+ return dayjs(tenantServiceExecution.completeTime).format("DD MMM YYYY");
30
+ case "Service": return React.createElement(React.Fragment, null);
31
+ // return observe(() => (
32
+ // <TenantServiceReference id={tenantServiceExecution.service.id as string} />
33
+ // ));
34
+ }
35
+ }
36
+ };
37
+ TenantServiceExecutionProperties.defaultProps = {
38
+ tenantServiceExecutionTitle: "TenantServiceExecution Properties",
39
+ tenantServiceExecutionProperties: [
40
+ { name: "StartTime" },
41
+ { name: "CompleteTime" },
42
+ { name: "Service" },
43
+ ],
44
+ };
45
+ export default TenantServiceExecutionProperties;
46
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAc,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAEhF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,EACN,yBAAyB,EACzB,8BAA8B,GAC9B,MAAM,2CAA2C,CAAC;AACnD,OAAO,0BAA0B,MAAM,2CAA2C,CAAC;AAInF,MAAM,gCAAgC,GAAG,CAAC,KAQzC,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,mCAAmC,CAAC;IAEpD,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,2BAA2B,EAAE,gCAAgC,EAAE,GACzF,KAAK,CAAC;IAEP,MAAM,sBAAsB,GAAG,yBAAyB,CAAC,EAAE,CAAC,CAAC;IAC7D,MAAM,KAAK,GAAG,8BAA8B,EAAE,CAAC;IAE/C,MAAM,SAAS,GAAG,gCAAgC,aAAhC,gCAAgC,uBAAhC,gCAAgC,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,MAAK,KAAK,CAAC,CAAC;IAExF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAA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,EAAE,cAAc,EAAE;QACxB,EAAE,IAAI,EAAE,SAAS,EAAE;KACnB;CACD,CAAC;AAEF,eAAe,gCAAgC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import "./index.less";
2
+ import React from "react";
3
+ import { ITenantServiceExecution } from "../../../../data/tenant-service-execution";
4
+ declare const TenantServiceExecutionPropertiesView: (props: {
5
+ id: string;
6
+ default?: boolean;
7
+ data?: ITenantServiceExecution;
8
+ }) => React.JSX.Element;
9
+ export default TenantServiceExecutionPropertiesView;
@@ -0,0 +1,16 @@
1
+ import "./index.less";
2
+ import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
3
+ import React, { useMemo } from "react";
4
+ import { observe } from "@voplus/morpho-ui";
5
+ import TenantServiceExecutionHeader from "../TenantServiceExecutionHeader";
6
+ import TenantServiceExecutionTabs from "../TenantServiceExecutionTabs";
7
+ const TenantServiceExecutionPropertiesView = (props) => {
8
+ const id = props.id;
9
+ const view = useMemo(() => new ViewContextData("PropertiesView"), []);
10
+ return observe(() => (React.createElement(ViewContext.Provider, { value: view },
11
+ React.createElement("div", { className: "module-detail-view tenant-service-execution-properties-view" },
12
+ React.createElement(TenantServiceExecutionHeader, { id: id }),
13
+ React.createElement(TenantServiceExecutionTabs, { id: id, properties: true })))));
14
+ };
15
+ export default TenantServiceExecutionPropertiesView;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,4BAA4B,MAAM,iCAAiC,CAAC;AAC3E,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AAEvE,MAAM,oCAAoC,GAAG,CAAC,KAI7C,EAAE,EAAE;IACJ,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,6DAA6D;YAC3E,oBAAC,4BAA4B,IAAC,EAAE,EAAE,EAAE,GAAI;YACxC,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAC5C,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,oCAAoC,CAAC"}
@@ -0,0 +1,4 @@
1
+ :global {
2
+ .tenant-service-execution-properties-view {
3
+ }
4
+ }
@@ -0,0 +1,8 @@
1
+ import "./index.less";
2
+ import React from "react";
3
+ declare const TenantServiceExecutionQuickViewDialog: (props: {
4
+ id: string;
5
+ visible?: boolean;
6
+ onCancel?: () => void;
7
+ }) => React.JSX.Element;
8
+ export default TenantServiceExecutionQuickViewDialog;
@@ -0,0 +1,22 @@
1
+ import "./index.less";
2
+ import QuickViewDialog from "../../../../controls/QuickViewDialog";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import React from "react";
5
+ import { faMessages } from "@fortawesome/pro-light-svg-icons";
6
+ import TenantServiceExecutionHeader from "../TenantServiceExecutionHeader";
7
+ import TenantServiceExecutionProperties from "../TenantServiceExecutionProperties";
8
+ import TenantServiceExecutionMessagesList from "../TenantServiceExecutionMessagesList";
9
+ const TenantServiceExecutionQuickViewDialog = (props) => {
10
+ const { id } = props;
11
+ return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "tenant-service-execution-quick-view", header: React.createElement(TenantServiceExecutionHeader, { id: id }), items: [
12
+ {
13
+ name: "Messages",
14
+ icon: faMessages,
15
+ title: "Messages",
16
+ detail: React.createElement(TenantServiceExecutionMessagesList, { id: id, viewTitle: true }),
17
+ },
18
+ ], subButtons: [] },
19
+ React.createElement(TenantServiceExecutionProperties, { id: id }))));
20
+ };
21
+ export default TenantServiceExecutionQuickViewDialog;
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,4BAA4B,MAAM,iCAAiC,CAAC;AAC3E,OAAO,gCAAgC,MAAM,qCAAqC,CAAC;AACnF,OAAO,kCAAkC,MAAM,uCAAuC,CAAC;AAEvF,MAAM,qCAAqC,GAAG,CAAC,KAI9C,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,OACX,KAAK,EACT,SAAS,EAAC,qCAAqC,EAC/C,MAAM,EAAE,oBAAC,4BAA4B,IAAC,EAAE,EAAE,EAAE,GAAI,EAChD,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;gBACjB,MAAM,EAAE,oBAAC,kCAAkC,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,SAAG;aAChE;SACD,EACD,UAAU,EAAE,EAAE;QAEd,oBAAC,gCAAgC,IAAC,EAAE,EAAE,EAAE,GAAI,CAC3B,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qCAAqC,CAAC"}
@@ -0,0 +1,7 @@
1
+ :global {
2
+ .tenant-service-execution-quick-view {
3
+ .tenant-service-execution-header {
4
+ padding: 10px 44px 10px 20px;
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ declare const TenantServiceExecutionTabs: (props: {
3
+ id: string;
4
+ properties?: boolean;
5
+ }) => React.JSX.Element;
6
+ export default TenantServiceExecutionTabs;
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import DocumentTabs from "../../../../components/DocumentTabs";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import TenantServiceExecutionProperties from "../TenantServiceExecutionProperties";
5
+ import TenantServiceExecutionMessagesList from "../TenantServiceExecutionMessagesList";
6
+ const TenantServiceExecutionTabs = (props) => {
7
+ const { id, properties } = props;
8
+ const items = [
9
+ {
10
+ key: "Messages",
11
+ label: "Messages",
12
+ children: React.createElement(TenantServiceExecutionMessagesList, { id: id }),
13
+ },
14
+ ];
15
+ properties &&
16
+ items.unshift({
17
+ key: "Properties",
18
+ label: "Properties",
19
+ children: React.createElement(TenantServiceExecutionProperties, { id: id }),
20
+ });
21
+ return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "Messages", tabItems: items })));
22
+ };
23
+ export default TenantServiceExecutionTabs;
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,gCAAgC,MAAM,qCAAqC,CAAC;AACnF,OAAO,kCAAkC,MAAM,uCAAuC,CAAC;AAEvF,MAAM,0BAA0B,GAAG,CAAC,KAA2C,EAAE,EAAE;IAClF,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAEjC,MAAM,KAAK,GAAuB;QACjC;YACC,GAAG,EAAE,UAAU;YACf,KAAK,EAAE,UAAU;YACjB,QAAQ,EAAE,oBAAC,kCAAkC,IAAC,EAAE,EAAE,EAAE,GAAI;SACxD;KACD,CAAC;IAEF,UAAU;QACT,KAAK,CAAC,OAAO,CAAC;YACb,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,oBAAC,gCAAgC,IAAC,EAAE,EAAE,EAAE,GAAI;SACtD,CAAC,CAAC;IAEJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,EAAE,QAAQ,EAAE,KAAK,GAAI,CACzF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ declare const TenantServiceExecutionMenu: (props: {
3
+ id: string;
4
+ closeAside?: boolean;
5
+ }) => React.JSX.Element;
6
+ export default TenantServiceExecutionMenu;
@@ -0,0 +1,9 @@
1
+ import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import React from "react";
4
+ import { Access } from "@voplus/morpho-org/es/controls/NodeMenu/items";
5
+ const TenantServiceExecutionMenu = (props) => {
6
+ return observe(() => React.createElement(NodeMenu, { ...props, menus: React.createElement(Access, null) }));
7
+ };
8
+ export default TenantServiceExecutionMenu;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/controls/TenantServiceExecutionMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAEvE,MAAM,0BAA0B,GAAG,CAAC,KAA2C,EAAE,EAAE;IAClF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,QAAQ,OAAK,KAAK,EAAE,KAAK,EAAE,oBAAC,MAAM,OAAG,GAAI,CAAC,CAAC;AAClE,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const TenantServiceExecutionDefaultView: () => React.JSX.Element;
3
+ export default TenantServiceExecutionDefaultView;
@@ -0,0 +1,30 @@
1
+ import { TabItemContext, TabItemStore, useTabItem } from "@voplus/morpho-data";
2
+ import React, { useEffect, useState } from "react";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
5
+ import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
6
+ import { runInAction } from "mobx";
7
+ import { useParams } from "react-router-dom";
8
+ import { useTenantServiceExecution } from "../../../../data/tenant-service-execution";
9
+ import TenantServiceExecutionProperties from "../../components/TenantServiceExecutionProperties";
10
+ import TenantServiceExecutionTabs from "../../components/TenantServiceExecutionTabs";
11
+ import styles from "./index.less";
12
+ const TenantServiceExecutionDefaultView = () => {
13
+ const { id } = useParams();
14
+ const store = new TabItemStore({ url: "" });
15
+ const tenantServiceExecution = useTenantServiceExecution(id);
16
+ const [asideContext] = useState(AsideContent.createContext());
17
+ const tab = useTabItem();
18
+ useEffect(() => {
19
+ runInAction(() => (tab.title = "Tenant Service Execution"));
20
+ });
21
+ return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
22
+ React.createElement(MainContent, { className: styles["tenant-service-execution-default-view"] },
23
+ React.createElement(MainContent.Nav, { collapsible: true },
24
+ React.createElement(TenantServiceExecutionProperties, { id: id, headerVisible: true })),
25
+ React.createElement("div", { className: "tenant-service-execution-context" },
26
+ React.createElement(AsideContent, { context: asideContext },
27
+ React.createElement(TenantServiceExecutionTabs, { id: id })))))));
28
+ };
29
+ export default TenantServiceExecutionDefaultView;
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,gCAAgC,MAAM,mDAAmD,CAAC;AACjG,OAAO,0BAA0B,MAAM,6CAA6C,CAAC;AACrF,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,iCAAiC,GAAG,GAAG,EAAE;IAC9C,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAE3C,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,sBAAsB,GAAG,yBAAyB,CAAC,EAAG,CAAC,CAAC;IAE9D,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC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