@voplus/morpho-document 6.1.83 → 6.1.84
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/modules/action-plan/components/ActionPlanQuickViewDialog/index.js +7 -5
- package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.js +7 -5
- package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.js.map +1 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.js +7 -5
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import ActionPlanHeader from "../ActionPlanHeader";
|
|
4
4
|
import ActionPlanProperties from "../ActionPlanProperties";
|
|
5
|
-
import { useHandleError } from "@voplus/morpho-document-core";
|
|
6
5
|
import QuickViewDialog from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
7
6
|
import { useActionPlan } from "../../../../data/action-plan";
|
|
8
7
|
import "./index.less";
|
|
9
8
|
const ActionPlanQuickViewDialog = (props) => {
|
|
10
9
|
const { id } = props;
|
|
11
|
-
const
|
|
12
|
-
const actionPlan = useActionPlan(id, { onError:
|
|
13
|
-
|
|
10
|
+
const [error, setError] = useState(null);
|
|
11
|
+
const actionPlan = useActionPlan(id, { onError: (e) => setError(e) });
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
setError(null);
|
|
14
|
+
}, [id]);
|
|
15
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, error: error, className: "action-plan-quick-view", header: React.createElement(ActionPlanHeader, { id: id, onClose: props.onCancel }), buttons: [{ name: "Document" }, { name: "Activities" }] },
|
|
14
16
|
React.createElement(ActionPlanProperties, { id: id }))));
|
|
15
17
|
};
|
|
16
18
|
export default ActionPlanQuickViewDialog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,cAAc,CAAC;AAEtB,MAAM,yBAAyB,GAAG,CAAC,KAIlC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAEtE,SAAS,CAAC,GAAG,EAAE;QACd,QAAQ,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAET,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,OACX,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,wBAAwB,EAClC,MAAM,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,GAAI,EAC7D,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QAEvD,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,GAAI,CACf,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React, { useMemo } from "react";
|
|
1
|
+
import React, { useMemo, useState, useEffect } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
4
|
-
import { useHandleError } from "@voplus/morpho-document-core";
|
|
5
4
|
import TenantServiceExecutionList from "../../../tenant-service-execution/components/TenantServiceExecutionList";
|
|
6
5
|
import QuickViewDialog from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
7
6
|
import { useTenantService } from "../../../../data/tenant-service";
|
|
@@ -12,10 +11,13 @@ import "./index.less";
|
|
|
12
11
|
const TenantServiceQuickViewDialog = (props) => {
|
|
13
12
|
const { id } = props;
|
|
14
13
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
15
|
-
const
|
|
16
|
-
const tenantService = useTenantService(id, { onError:
|
|
14
|
+
const [error, setError] = useState(null);
|
|
15
|
+
const tenantService = useTenantService(id, { onError: (e) => setError(e) });
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
setError(null);
|
|
18
|
+
}, [id]);
|
|
17
19
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
18
|
-
React.createElement(QuickViewDialog, { ...props, className: "tenant-service-quick-view", header: React.createElement(TenantServiceHeader, { id: id, onClose: props.onCancel }), items: [
|
|
20
|
+
React.createElement(QuickViewDialog, { ...props, error: error, className: "tenant-service-quick-view", header: React.createElement(TenantServiceHeader, { id: id, onClose: props.onCancel }), items: [
|
|
19
21
|
{
|
|
20
22
|
name: "TenantServiceExecution",
|
|
21
23
|
icon: faBallot,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,0BAA0B,MAAM,yEAAyE,CAAC;AACjH,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,cAAc,CAAC;AAEtB,MAAM,4BAA4B,GAAG,CAAC,KAIrC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;IAEjE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,aAAa,GAAG,gBAAgB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAE5E,SAAS,CAAC,GAAG,EAAE;QACd,QAAQ,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAET,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,oBAAC,eAAe,OACX,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,2BAA2B,EACrC,MAAM,EAAE,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,GAAI,EAChE,KAAK,EAAE;gBACN;oBACC,IAAI,EAAE,wBAAwB;oBAC9B,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,0BAA0B;oBACjC,MAAM,EAAE,oBAAC,0BAA0B,IAAC,eAAe,EAAE,EAAE,GAAI;iBAC3D;aACD;YAED,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI,CAClB,CACI,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
2
|
import QuickViewDialog from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { useHandleError } from "@voplus/morpho-document-core";
|
|
4
|
+
import React, { useState, useEffect } from "react";
|
|
6
5
|
import { faMessages } from "@fortawesome/pro-light-svg-icons";
|
|
7
6
|
import TenantServiceExecutionHeader from "../TenantServiceExecutionHeader";
|
|
8
7
|
import TenantServiceExecutionProperties from "../TenantServiceExecutionProperties";
|
|
@@ -10,11 +9,14 @@ import TenantServiceExecutionMessagesList from "../TenantServiceExecutionMessage
|
|
|
10
9
|
import { useTenantServiceExecution } from "../../../../data/tenant-service-execution";
|
|
11
10
|
const TenantServiceExecutionQuickViewDialog = (props) => {
|
|
12
11
|
const { id } = props;
|
|
13
|
-
const
|
|
12
|
+
const [error, setError] = useState(null);
|
|
14
13
|
const tenantServiceExecution = useTenantServiceExecution(id, {
|
|
15
|
-
onError:
|
|
14
|
+
onError: (e) => setError(e),
|
|
16
15
|
});
|
|
17
|
-
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
setError(null);
|
|
18
|
+
}, [id]);
|
|
19
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, error: error, className: "tenant-service-execution-quick-view", header: React.createElement(TenantServiceExecutionHeader, { id: id, onClose: props.onCancel }), items: [
|
|
18
20
|
{
|
|
19
21
|
name: "Messages",
|
|
20
22
|
icon: faMessages,
|
|
@@ -1 +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,gDAAgD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,
|
|
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,gDAAgD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,4BAA4B,MAAM,iCAAiC,CAAC;AAC3E,OAAO,gCAAgC,MAAM,qCAAqC,CAAC;AACnF,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