@voplus/morpho-document 6.0.46 → 6.0.48
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/data/tenant-service/TenantServiceStore.js +3 -3
- package/es/data/tenant-service/TenantServiceStore.js.map +1 -1
- package/es/data/tenant-service/interfaces.d.ts +4 -0
- package/es/data/tenant-service/types.d.ts +3 -1
- package/es/data/tenant-service-execution/TenantServiceExecutionStore.js +2 -2
- package/es/data/tenant-service-execution/TenantServiceExecutionStore.js.map +1 -1
- package/es/data/tenant-service-execution/hooks.d.ts +1 -1
- package/es/data/tenant-service-execution/hooks.js +1 -1
- package/es/data/tenant-service-execution/hooks.js.map +1 -1
- package/es/data/tenant-service-execution/interfaces.d.ts +14 -3
- package/es/modules/tenant-service/components/TenantServiceHeader/index.d.ts +0 -2
- package/es/modules/tenant-service/components/TenantServiceHeader/index.js +2 -2
- package/es/modules/tenant-service/components/TenantServiceHeader/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceInterval/index.d.ts +5 -0
- package/es/modules/tenant-service/components/TenantServiceInterval/index.js +36 -0
- package/es/modules/tenant-service/components/TenantServiceInterval/index.js.map +1 -0
- package/es/modules/tenant-service/components/TenantServiceInterval/index.less +32 -0
- package/es/modules/tenant-service/components/TenantServiceInterval/state.d.ts +28 -0
- package/es/modules/tenant-service/components/TenantServiceInterval/state.js +177 -0
- package/es/modules/tenant-service/components/TenantServiceInterval/state.js.map +1 -0
- package/es/modules/tenant-service/components/TenantServiceItem/index.d.ts +0 -2
- package/es/modules/tenant-service/components/TenantServiceItem/index.js +15 -18
- package/es/modules/tenant-service/components/TenantServiceItem/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceItem/index.less +1 -0
- package/es/modules/tenant-service/components/TenantServiceList/index.d.ts +0 -2
- package/es/modules/tenant-service/components/TenantServiceList/index.js +3 -19
- package/es/modules/tenant-service/components/TenantServiceList/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceProperties/index.d.ts +1 -3
- package/es/modules/tenant-service/components/TenantServiceProperties/index.js +17 -7
- package/es/modules/tenant-service/components/TenantServiceProperties/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServicePropertiesView/index.d.ts +0 -3
- package/es/modules/tenant-service/components/TenantServicePropertiesView/index.js +2 -4
- package/es/modules/tenant-service/components/TenantServicePropertiesView/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.d.ts +1 -1
- package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.js +13 -4
- package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceReference/index.d.ts +5 -0
- package/es/modules/tenant-service/components/TenantServiceReference/index.js +14 -0
- package/es/modules/tenant-service/components/TenantServiceReference/index.js.map +1 -0
- package/es/modules/tenant-service/components/TenantServiceTabs/index.js +9 -16
- package/es/modules/tenant-service/components/TenantServiceTabs/index.js.map +1 -1
- package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.js +4 -10
- package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.js.map +1 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.d.ts +6 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.js +19 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.less +12 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.d.ts +5 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.js +34 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.less +29 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.d.ts +16 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.js +52 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.less +12 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.d.ts +7 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.js +24 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.less +27 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.d.ts +20 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.js +46 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.d.ts +9 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.js +16 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.less +4 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.d.ts +8 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.js +22 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.js.map +1 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.less +7 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionTabs/index.d.ts +6 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionTabs/index.js +24 -0
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionTabs/index.js.map +1 -0
- package/es/modules/tenant-service-execution/controls/TenantServiceExecutionMenu/index.d.ts +6 -0
- package/es/modules/tenant-service-execution/controls/TenantServiceExecutionMenu/index.js +9 -0
- package/es/modules/tenant-service-execution/controls/TenantServiceExecutionMenu/index.js.map +1 -0
- package/es/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.d.ts +3 -0
- package/es/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.js +30 -0
- package/es/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.js.map +1 -0
- package/es/modules/tenant-service-execution/pages/TenantServiceExecutionDefaultView/index.less +17 -0
- package/es/pages/Signature/Letter/LetterViewer/index.less +1 -1
- package/es/routes.d.ts +12 -0
- package/es/routes.js +31 -5
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/tenant-service/components/TenantServiceSelect/index.d.ts +0 -12
- package/es/modules/tenant-service/components/TenantServiceSelect/index.js +0 -44
- package/es/modules/tenant-service/components/TenantServiceSelect/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAkB,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,iBAAiB,GAAG,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,mBA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
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
export type TenantServicePropertiesName = "Enable" | "IsRunning";
|
|
2
|
+
export type TenantServicePropertiesName = "Enable" | "Is Running" | "Last Start" | "Interval";
|
|
4
3
|
declare const TenantServiceProperties: {
|
|
5
4
|
(props: {
|
|
6
5
|
id: string;
|
|
@@ -10,7 +9,6 @@ declare const TenantServiceProperties: {
|
|
|
10
9
|
name: TenantServicePropertiesName;
|
|
11
10
|
visible?: boolean;
|
|
12
11
|
}[];
|
|
13
|
-
data?: ITenantService;
|
|
14
12
|
}): React.JSX.Element;
|
|
15
13
|
defaultProps: {
|
|
16
14
|
tenantServiceTitle: string;
|
|
@@ -4,16 +4,17 @@ import { observe } from "@voplus/morpho-ui";
|
|
|
4
4
|
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
5
5
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
6
6
|
import React from "react";
|
|
7
|
+
import dayjs from "dayjs";
|
|
7
8
|
import { Switch } from "antd";
|
|
8
9
|
import Scrollbars from "react-custom-scrollbars-2";
|
|
9
|
-
import
|
|
10
|
+
import TenantServiceInterval from "../TenantServiceInterval";
|
|
11
|
+
import { useTenantService, useTenantServiceStore } from "../../../../data/tenant-service";
|
|
10
12
|
import TenantServiceMenu from "../../controls/TenantServiceMenu";
|
|
11
13
|
const TenantServiceProperties = (props) => {
|
|
12
14
|
/** 加class name 为了方便做integration tests */
|
|
13
15
|
const classId = "tenantService-properties";
|
|
14
16
|
const { id, headerVisible, tenantServiceTitle, tenantServiceProperties } = props;
|
|
15
|
-
|
|
16
|
-
const tenantService = props.data;
|
|
17
|
+
const tenantService = useTenantService(id);
|
|
17
18
|
const store = useTenantServiceStore();
|
|
18
19
|
const filterPro = tenantServiceProperties === null || tenantServiceProperties === void 0 ? void 0 : tenantServiceProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
19
20
|
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
@@ -22,22 +23,31 @@ const TenantServiceProperties = (props) => {
|
|
|
22
23
|
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
23
24
|
React.createElement(TenantServiceMenu, { id: id })))),
|
|
24
25
|
React.createElement(Scrollbars, { autoHide: true },
|
|
25
|
-
React.createElement(DescriptionEditor, { id: id, description: tenantService.description, readonly: true }),
|
|
26
|
+
tenantService.description ? (React.createElement(DescriptionEditor, { id: id, description: tenantService.description, readonly: true })) : null,
|
|
26
27
|
React.createElement(PropertiesSection, { title: tenantServiceTitle, 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)))) })))));
|
|
27
28
|
function renderProp(item) {
|
|
28
29
|
switch (item.name) {
|
|
30
|
+
case "Is Running":
|
|
31
|
+
return React.createElement(Switch, { checked: tenantService.isRunning, disabled: true });
|
|
32
|
+
case "Last Start":
|
|
33
|
+
return React.createElement(React.Fragment, null, dayjs(tenantService.lastStart).format("YYYY-MM-DD"));
|
|
29
34
|
case "Enable":
|
|
30
35
|
return (React.createElement(Switch, { checked: tenantService.enable, onChange: (checked) => {
|
|
31
36
|
store.edit(id, { data: { Enable: checked }, error: "message" });
|
|
32
37
|
} }));
|
|
33
|
-
case "
|
|
34
|
-
return React.createElement(
|
|
38
|
+
case "Interval":
|
|
39
|
+
return React.createElement(TenantServiceInterval, { id: id });
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
};
|
|
38
43
|
TenantServiceProperties.defaultProps = {
|
|
39
44
|
tenantServiceTitle: "TenantService Properties",
|
|
40
|
-
tenantServiceProperties: [
|
|
45
|
+
tenantServiceProperties: [
|
|
46
|
+
{ name: "Interval" },
|
|
47
|
+
{ name: "Enable" },
|
|
48
|
+
{ name: "Is Running" },
|
|
49
|
+
{ name: "Last Start" },
|
|
50
|
+
],
|
|
41
51
|
};
|
|
42
52
|
export default TenantServiceProperties;
|
|
43
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AAIjE,MAAM,uBAAuB,GAAG,CAAC,KAKhC,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,0BAA0B,CAAC;IAE3C,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,GAAG,KAAK,CAAC;IAEjF,MAAM,aAAa,GAAG,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAC3C,MAAM,KAAK,GAAG,qBAAqB,EAAE,CAAC;IAEtC,MAAM,SAAS,GAAG,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAE,M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AAK,YAAY;gBAChB,OAAO,0CAAG,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAI,CAAC;YACnE,KAAK,QAAQ;gBACZ,OAAO,CACN,oBAAC,MAAM,IACN,OAAO,EAAE,aAAa,CAAC,MAAM,EAC7B,QAAQ,EAAE,CAAC,OAAgB,EAAE,EAAE;wBAC9B,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;oBACjE,CAAC,GACA,CACF,CAAC;YACH,KAAK,UAAU;gBACd,OAAO,oBAAC,qBAAqB,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC;QAC3C,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,uBAAuB,CAAC,YAAY,GAAG;IACtC,kBAAkB,EAAE,0BAA0B;IAC9C,uBAAuB,EAAE;QACxB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,YAAY,EAAE;QACtB,EAAE,IAAI,EAAE,YAAY,EAAE;KACtB;CACD,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ITenantService } from "../../../../data/tenant-service";
|
|
4
3
|
declare const TenantServicePropertiesView: (props: {
|
|
5
4
|
id: string;
|
|
6
|
-
default?: boolean;
|
|
7
|
-
data?: ITenantService;
|
|
8
5
|
}) => React.JSX.Element;
|
|
9
6
|
export default TenantServicePropertiesView;
|
|
@@ -7,12 +7,10 @@ import TenantServiceTabs from "../TenantServiceTabs";
|
|
|
7
7
|
const TenantServicePropertiesView = (props) => {
|
|
8
8
|
const id = props.id;
|
|
9
9
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
10
|
-
// const tenantService = useTenantService(id);
|
|
11
|
-
const tenantService = props.data;
|
|
12
10
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
13
11
|
React.createElement("div", { className: "module-detail-view tenant-service-properties-view" },
|
|
14
|
-
React.createElement(TenantServiceHeader, { id: id
|
|
15
|
-
React.createElement(TenantServiceTabs, { id: id, properties: true
|
|
12
|
+
React.createElement(TenantServiceHeader, { id: id }),
|
|
13
|
+
React.createElement(TenantServiceTabs, { id: id, properties: true })))));
|
|
16
14
|
};
|
|
17
15
|
export default TenantServicePropertiesView;
|
|
18
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServicePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServicePropertiesView/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;AAC5C,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AAErD,MAAM,2BAA2B,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC7D,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,mDAAmD;YACjE,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,GAAI;YAC/B,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CACnC,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import QuickViewDialog from "../../../../controls/QuickViewDialog";
|
|
3
|
-
import { observe } from "@voplus/morpho-ui";
|
|
4
1
|
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import TenantServiceExecutionList from "../../../tenant-service-execution/components/TenantServiceExecutionList";
|
|
4
|
+
import QuickViewDialog from "../../../../controls/QuickViewDialog";
|
|
5
|
+
import { faBallot } from "@fortawesome/pro-light-svg-icons";
|
|
5
6
|
import TenantServiceHeader from "../TenantServiceHeader";
|
|
6
7
|
import TenantServiceProperties from "../TenantServiceProperties";
|
|
8
|
+
import "./index.less";
|
|
7
9
|
const TenantServiceQuickViewDialog = (props) => {
|
|
8
10
|
const { id } = props;
|
|
9
|
-
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "tenant-service-quick-view", header: React.createElement(TenantServiceHeader, { id: id })
|
|
11
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "tenant-service-quick-view", header: React.createElement(TenantServiceHeader, { id: id }), items: [
|
|
12
|
+
{
|
|
13
|
+
name: "TenantServiceExecution",
|
|
14
|
+
icon: faBallot,
|
|
15
|
+
title: "Tenant Service Execution",
|
|
16
|
+
detail: React.createElement(TenantServiceExecutionList, { tenantServiceId: id }),
|
|
17
|
+
},
|
|
18
|
+
], subButtons: [] },
|
|
10
19
|
React.createElement(TenantServiceProperties, { id: id }))));
|
|
11
20
|
};
|
|
12
21
|
export default TenantServiceQuickViewDialog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,0BAA0B,MAAM,yEAAyE,CAAC;AACjH,OAAO,eAAe,MAAM,sCAAsC,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;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,OACX,KAAK,EACT,SAAS,EAAC,2BAA2B,EACrC,MAAM,EAAE,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,GAAI,EACvC,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,wBAAwB;gBAC9B,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,0BAA0B;gBACjC,MAAM,EAAE,oBAAC,0BAA0B,IAAC,eAAe,EAAE,EAAE,GAAI;aAC3D;SACD,EACD,UAAU,EAAE,EAAE;QAEd,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI,CAClB,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import QuickView from "../TenantServiceQuickViewDialog";
|
|
4
|
+
import { useTenantService } from "../../../../data/tenant-service";
|
|
5
|
+
const TenantServiceReference = (props) => {
|
|
6
|
+
const { id } = props;
|
|
7
|
+
const [visible, setVisible] = useState(false);
|
|
8
|
+
const tenantService = useTenantService(id);
|
|
9
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
10
|
+
React.createElement("span", { className: "prosemirror-mention-node", onClick: () => setVisible(true) }, `&${tenantService.name}`),
|
|
11
|
+
visible && React.createElement(QuickView, { id: id, visible: true, onCancel: () => setVisible(false) }))));
|
|
12
|
+
};
|
|
13
|
+
export default TenantServiceReference;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceReference/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,sBAAsB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAG,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACd,8BACC,SAAS,EAAC,0BAA0B,EACpC,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAC9B,IAAI,aAAa,CAAC,IAAI,EAAE,CAAQ;QACjC,OAAO,IAAI,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,QAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CAC5D,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,41 +1,34 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
3
|
-
import DocumentList from "../../../../components/DocumentList";
|
|
4
2
|
import DocumentTabs from "../../../../components/DocumentTabs";
|
|
5
|
-
import
|
|
3
|
+
import TenantServiceExecutionList from "../../../tenant-service-execution/components/TenantServiceExecutionList";
|
|
4
|
+
import { useTenantServiceExecutionListEffect } from "../../../../data/tenant-service-execution";
|
|
6
5
|
import { observe } from "@voplus/morpho-ui";
|
|
7
6
|
import { Badge } from "antd";
|
|
8
7
|
import TenantServiceProperties from "../TenantServiceProperties";
|
|
9
8
|
const TenantServiceTabs = (props) => {
|
|
10
9
|
const { id, properties } = props;
|
|
11
10
|
const [docTotals, setDocTotals] = useState(0);
|
|
12
|
-
|
|
13
|
-
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
11
|
+
useTenantServiceExecutionListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
14
12
|
Total: true,
|
|
15
13
|
List: false,
|
|
16
|
-
Filters: [{ c: "
|
|
14
|
+
Filters: [{ c: "TenantServiceId", o: "=", l: "And", v1: id }],
|
|
17
15
|
});
|
|
18
16
|
const items = [
|
|
19
17
|
{
|
|
20
|
-
key: "
|
|
18
|
+
key: "TenantServiceExecution",
|
|
21
19
|
label: (React.createElement(React.Fragment, null,
|
|
22
|
-
"
|
|
20
|
+
"Tenant Service Execution",
|
|
23
21
|
React.createElement(Badge, { count: docTotals, className: "margin-left-10" }))),
|
|
24
|
-
children: React.createElement(
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
key: "Activities",
|
|
28
|
-
label: "Activities",
|
|
29
|
-
children: React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id, title: " " }) : null),
|
|
22
|
+
children: React.createElement(TenantServiceExecutionList, { viewTitle: " ", tenantServiceId: id }),
|
|
30
23
|
},
|
|
31
24
|
];
|
|
32
25
|
properties &&
|
|
33
26
|
items.unshift({
|
|
34
27
|
key: "Properties",
|
|
35
28
|
label: "Properties",
|
|
36
|
-
children: React.createElement(TenantServiceProperties, { id: id
|
|
29
|
+
children: React.createElement(TenantServiceProperties, { id: id }),
|
|
37
30
|
});
|
|
38
|
-
return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "
|
|
31
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "TenantServiceExecution", tabItems: items })));
|
|
39
32
|
};
|
|
40
33
|
export default TenantServiceTabs;
|
|
41
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -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;
|
|
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,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AAEjE,MAAM,iBAAiB,GAAG,CAAC,KAAkE,EAAE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|
|
|
5
5
|
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
6
6
|
import { runInAction } from "mobx";
|
|
7
7
|
import { useParams } from "react-router-dom";
|
|
8
|
+
import { useTenantService } from "../../../../data/tenant-service";
|
|
8
9
|
import TenantServiceProperties from "../../components/TenantServiceProperties";
|
|
9
10
|
import TenantServiceTabs from "../../components/TenantServiceTabs";
|
|
10
11
|
import styles from "./index.less";
|
|
11
12
|
const TenantServiceDefaultView = () => {
|
|
12
13
|
const { id } = useParams();
|
|
13
14
|
const store = new TabItemStore({ url: "" });
|
|
14
|
-
|
|
15
|
-
const tenantService = {
|
|
16
|
-
id: "1",
|
|
17
|
-
serviceId: "123",
|
|
18
|
-
name: "Linked Sales Center",
|
|
19
|
-
description: "Principal manager endowed with full permissions, including the ability to change settings.Dedicated personnel tasked with the specific responsibility of invoice approval.",
|
|
20
|
-
isRunning: true,
|
|
21
|
-
};
|
|
15
|
+
const tenantService = useTenantService(id);
|
|
22
16
|
const [asideContext] = useState(AsideContent.createContext());
|
|
23
17
|
const tab = useTabItem();
|
|
24
18
|
useEffect(() => {
|
|
@@ -27,10 +21,10 @@ const TenantServiceDefaultView = () => {
|
|
|
27
21
|
return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
|
|
28
22
|
React.createElement(MainContent, { className: styles["tenant-service-default-view"] },
|
|
29
23
|
React.createElement(MainContent.Nav, { collapsible: true },
|
|
30
|
-
React.createElement(TenantServiceProperties, { id: id, headerVisible: true
|
|
24
|
+
React.createElement(TenantServiceProperties, { id: id, headerVisible: true })),
|
|
31
25
|
React.createElement("div", { className: "tenant-service-context" },
|
|
32
26
|
React.createElement(AsideContent, { context: asideContext },
|
|
33
|
-
React.createElement(TenantServiceTabs, { id: id
|
|
27
|
+
React.createElement(TenantServiceTabs, { id: id })))))));
|
|
34
28
|
};
|
|
35
29
|
export default TenantServiceDefaultView;
|
|
36
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +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;
|
|
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,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
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.js.map
ADDED
|
@@ -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,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
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.js.map
ADDED
|
@@ -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,CAAC;AAErF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CA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,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
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.js.map
ADDED
|
@@ -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,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,CAAC,CAAC,CAAC,CAAC;IAElF,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,eAAe,EAAE,CAAC;SAC1E;KACD,EACD,CAAC,eAAe,CAAC,CACjB,CAAC;IAEF,iBAAiB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9C,oFAAoF;IACpF,mCAAmC,CAClC,I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;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"}
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.js
ADDED
|
@@ -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,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,SAAS,MAAM,yCAAyC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAY,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,cAAc,CAAC;AAEtB,MAAM,kCAAkC,GAAG,CAAC,KAA0C,EAAE,EAAE;IACzF,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAChC,MAAM,sBAAsB,GAAG,yBAAyB,CAAC,EAAE,CAAC,CAAC;IAE7D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,wBAAwB;QACrC,SAAS,IAAI,6BAAK,SAAS,EAAC,0BAA0B,eAAe;QACtE,oBAAC,UAAU,IAAC,QAAQ;YACnB,oBAAC,QAAQ,IAAC,OAAO,EAAE,sBAAsB,CAAC,OAAO,IAC/C,sBAAsB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAClC,sBAAsB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACpD,oBAAC,SAAS,IAAC,GAAG,EAAE,KAAK,EAAE,WAAW,EAAC,YAAY;gBAC9C,oBAAC,UAAU,IAAC,SAAS,EAAC,wBAAwB;oBAC7C,oBAAC,aAAa,IAAC,IAAI,EAAE,EAAE;wBACtB,6BAAK,SAAS,EAAC,6BAA6B,IAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAO;wBACtE,6BAAK,SAAS,EAAC,WAAW,IAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAO,CAC1D;oBAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU,IACtC,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"}
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionMessagesList/index.less
ADDED
|
@@ -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
|
+
}
|