@voplus/morpho-document 6.0.44 → 6.0.46

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 (76) hide show
  1. package/es/data/tenant-service/TenantServiceStore.d.ts +23 -0
  2. package/es/data/tenant-service/TenantServiceStore.js +69 -0
  3. package/es/data/tenant-service/TenantServiceStore.js.map +1 -0
  4. package/es/data/tenant-service/hooks.d.ts +10 -0
  5. package/es/data/tenant-service/hooks.js +19 -0
  6. package/es/data/tenant-service/hooks.js.map +1 -0
  7. package/es/data/tenant-service/index.d.ts +4 -0
  8. package/es/data/tenant-service/index.js +5 -0
  9. package/es/data/tenant-service/index.js.map +1 -0
  10. package/es/data/tenant-service/interfaces.d.ts +17 -0
  11. package/es/data/tenant-service/interfaces.js +2 -0
  12. package/es/data/tenant-service/interfaces.js.map +1 -0
  13. package/es/data/tenant-service/types.d.ts +14 -0
  14. package/es/data/tenant-service/types.js +2 -0
  15. package/es/data/tenant-service/types.js.map +1 -0
  16. package/es/data/tenant-service-execution/TenantServiceExecutionStore.d.ts +21 -0
  17. package/es/data/tenant-service-execution/TenantServiceExecutionStore.js +61 -0
  18. package/es/data/tenant-service-execution/TenantServiceExecutionStore.js.map +1 -0
  19. package/es/data/tenant-service-execution/hooks.d.ts +10 -0
  20. package/es/data/tenant-service-execution/hooks.js +19 -0
  21. package/es/data/tenant-service-execution/hooks.js.map +1 -0
  22. package/es/data/tenant-service-execution/index.d.ts +4 -0
  23. package/es/data/tenant-service-execution/index.js +5 -0
  24. package/es/data/tenant-service-execution/index.js.map +1 -0
  25. package/es/data/tenant-service-execution/interfaces.d.ts +13 -0
  26. package/es/data/tenant-service-execution/interfaces.js +2 -0
  27. package/es/data/tenant-service-execution/interfaces.js.map +1 -0
  28. package/es/data/tenant-service-execution/types.d.ts +7 -0
  29. package/es/data/tenant-service-execution/types.js +2 -0
  30. package/es/data/tenant-service-execution/types.js.map +1 -0
  31. package/es/modules/tenant-service/components/TenantServiceHeader/index.d.ts +8 -0
  32. package/es/modules/tenant-service/components/TenantServiceHeader/index.js +19 -0
  33. package/es/modules/tenant-service/components/TenantServiceHeader/index.js.map +1 -0
  34. package/es/modules/tenant-service/components/TenantServiceHeader/index.less +12 -0
  35. package/es/modules/tenant-service/components/TenantServiceItem/index.d.ts +7 -0
  36. package/es/modules/tenant-service/components/TenantServiceItem/index.js +36 -0
  37. package/es/modules/tenant-service/components/TenantServiceItem/index.js.map +1 -0
  38. package/es/modules/tenant-service/components/TenantServiceItem/index.less +35 -0
  39. package/es/modules/tenant-service/components/TenantServiceList/index.d.ts +17 -0
  40. package/es/modules/tenant-service/components/TenantServiceList/index.js +68 -0
  41. package/es/modules/tenant-service/components/TenantServiceList/index.js.map +1 -0
  42. package/es/modules/tenant-service/components/TenantServiceList/index.less +12 -0
  43. package/es/modules/tenant-service/components/TenantServiceProperties/index.d.ts +22 -0
  44. package/es/modules/tenant-service/components/TenantServiceProperties/index.js +43 -0
  45. package/es/modules/tenant-service/components/TenantServiceProperties/index.js.map +1 -0
  46. package/es/modules/tenant-service/components/TenantServicePropertiesView/index.d.ts +9 -0
  47. package/es/modules/tenant-service/components/TenantServicePropertiesView/index.js +18 -0
  48. package/es/modules/tenant-service/components/TenantServicePropertiesView/index.js.map +1 -0
  49. package/es/modules/tenant-service/components/TenantServicePropertiesView/index.less +4 -0
  50. package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.d.ts +8 -0
  51. package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.js +13 -0
  52. package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.js.map +1 -0
  53. package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.less +7 -0
  54. package/es/modules/tenant-service/components/TenantServiceSelect/index.d.ts +12 -0
  55. package/es/modules/tenant-service/components/TenantServiceSelect/index.js +44 -0
  56. package/es/modules/tenant-service/components/TenantServiceSelect/index.js.map +1 -0
  57. package/es/modules/tenant-service/components/TenantServiceTabs/index.d.ts +8 -0
  58. package/es/modules/tenant-service/components/TenantServiceTabs/index.js +41 -0
  59. package/es/modules/tenant-service/components/TenantServiceTabs/index.js.map +1 -0
  60. package/es/modules/tenant-service/controls/TenantServiceMenu/index.d.ts +6 -0
  61. package/es/modules/tenant-service/controls/TenantServiceMenu/index.js +9 -0
  62. package/es/modules/tenant-service/controls/TenantServiceMenu/index.js.map +1 -0
  63. package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.d.ts +3 -0
  64. package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.js +36 -0
  65. package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.js.map +1 -0
  66. package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.less +17 -0
  67. package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.js +42 -12
  68. package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.js.map +1 -1
  69. package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.less +77 -15
  70. package/es/pages/Signature/Envelope/EnvelopeRecipientView/state.d.ts +1 -0
  71. package/es/pages/Signature/Envelope/EnvelopeRecipientView/state.js +9 -0
  72. package/es/pages/Signature/Envelope/EnvelopeRecipientView/state.js.map +1 -1
  73. package/es/routes.d.ts +6 -0
  74. package/es/routes.js +14 -1
  75. package/es/routes.js.map +1 -1
  76. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ .tenant-service-list {
2
+ display: flex;
3
+ flex-direction: column;
4
+ height: 100%;
5
+
6
+ :global {
7
+ .tenant-service-list-content {
8
+ background-color: #fff;
9
+ padding: 0 !important;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import { ITenantService } from "../../../../data/tenant-service";
3
+ export type TenantServicePropertiesName = "Enable" | "IsRunning";
4
+ declare const TenantServiceProperties: {
5
+ (props: {
6
+ id: string;
7
+ headerVisible?: boolean;
8
+ tenantServiceTitle?: string;
9
+ tenantServiceProperties?: {
10
+ name: TenantServicePropertiesName;
11
+ visible?: boolean;
12
+ }[];
13
+ data?: ITenantService;
14
+ }): React.JSX.Element;
15
+ defaultProps: {
16
+ tenantServiceTitle: string;
17
+ tenantServiceProperties: {
18
+ name: string;
19
+ }[];
20
+ };
21
+ };
22
+ export default TenantServiceProperties;
@@ -0,0 +1,43 @@
1
+ import DescriptionEditor from "../../../../controls/DescriptionEditor";
2
+ import ToolBar from "../../../../controls/ToolBar/ToolBar2";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import Prop from "@voplus/morpho-ui/es/controls/Prop";
5
+ import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
6
+ import React from "react";
7
+ import { Switch } from "antd";
8
+ import Scrollbars from "react-custom-scrollbars-2";
9
+ import { useTenantServiceStore, } from "../../../../data/tenant-service";
10
+ import TenantServiceMenu from "../../controls/TenantServiceMenu";
11
+ const TenantServiceProperties = (props) => {
12
+ /** 加class name 为了方便做integration tests */
13
+ const classId = "tenantService-properties";
14
+ const { id, headerVisible, tenantServiceTitle, tenantServiceProperties } = props;
15
+ // const tenantService = useTenantService(id);
16
+ const tenantService = props.data;
17
+ const store = useTenantServiceStore();
18
+ const filterPro = tenantServiceProperties === null || tenantServiceProperties === void 0 ? void 0 : tenantServiceProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
19
+ return observe(() => (React.createElement("div", { className: "properties-list" },
20
+ headerVisible && (React.createElement("div", { className: "properties-header" },
21
+ React.createElement("div", { className: "title" }, tenantService.name),
22
+ React.createElement(ToolBar, { id: id, showMenu: false },
23
+ React.createElement(TenantServiceMenu, { id: id })))),
24
+ React.createElement(Scrollbars, { autoHide: true },
25
+ React.createElement(DescriptionEditor, { id: id, description: tenantService.description, readonly: true }),
26
+ 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
+ function renderProp(item) {
28
+ switch (item.name) {
29
+ case "Enable":
30
+ return (React.createElement(Switch, { checked: tenantService.enable, onChange: (checked) => {
31
+ store.edit(id, { data: { Enable: checked }, error: "message" });
32
+ } }));
33
+ case "IsRunning":
34
+ return React.createElement(Switch, { checked: tenantService.isRunning, disabled: true });
35
+ }
36
+ }
37
+ };
38
+ TenantServiceProperties.defaultProps = {
39
+ tenantServiceTitle: "TenantService Properties",
40
+ tenantServiceProperties: [{ name: "Enable" }, { name: "IsRunning" }],
41
+ };
42
+ export default TenantServiceProperties;
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,EAAc,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAEN,qBAAqB,GAErB,MAAM,iCAAiC,CAAC;AACzC,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AAIjE,MAAM,uBAAuB,GAAG,CAAC,KAMhC,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,8CAA8C;IAC9C,MAAM,aAAa,GAAG,KAAK,CAAC,IAAK,CAAC;IAClC,MAAM,KAAK,GAAG,qBAAqB,EAAE,CAAC;IAEtC,MAAM,SAAS,GAAG,uBAAuB,aAAvB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AAI,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,WAAW;gBACf,OAAO,oBAAC,MAAM,IAAC,OAAO,EAAE,aAAa,CAAC,SAAS,EAAE,QAAQ,SAAG,CAAC;QAC/D,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,uBAAuB,CAAC,YAAY,GAAG;IACtC,kBAAkB,EAAE,0BAA0B;IAC9C,uBAAuB,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;CACpE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import "./index.less";
2
+ import React from "react";
3
+ import { ITenantService } from "../../../../data/tenant-service";
4
+ declare const TenantServicePropertiesView: (props: {
5
+ id: string;
6
+ default?: boolean;
7
+ data?: ITenantService;
8
+ }) => React.JSX.Element;
9
+ export default TenantServicePropertiesView;
@@ -0,0 +1,18 @@
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 TenantServiceHeader from "../TenantServiceHeader";
6
+ import TenantServiceTabs from "../TenantServiceTabs";
7
+ const TenantServicePropertiesView = (props) => {
8
+ const id = props.id;
9
+ const view = useMemo(() => new ViewContextData("PropertiesView"), []);
10
+ // const tenantService = useTenantService(id);
11
+ const tenantService = props.data;
12
+ return observe(() => (React.createElement(ViewContext.Provider, { value: view },
13
+ React.createElement("div", { className: "module-detail-view tenant-service-properties-view" },
14
+ React.createElement(TenantServiceHeader, { id: id, data: tenantService }),
15
+ React.createElement(TenantServiceTabs, { id: id, properties: true, data: tenantService })))));
16
+ };
17
+ export default TenantServicePropertiesView;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServicePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AAErD,MAAM,2BAA2B,GAAG,CAAC,KAIpC,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,8CAA8C;IAC9C,MAAM,aAAa,GAAG,KAAK,CAAC,IAAK,CAAC;IAElC,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,EAAE,IAAI,EAAE,aAAa,GAAI;YACpD,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,QAAC,IAAI,EAAE,aAAa,GAAI,CACxD,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,4 @@
1
+ :global {
2
+ .tenant-service-properties-view {
3
+ }
4
+ }
@@ -0,0 +1,8 @@
1
+ import "./index.less";
2
+ import React from "react";
3
+ declare const TenantServiceQuickViewDialog: (props: {
4
+ id: string;
5
+ visible?: boolean;
6
+ onCancel?: () => void;
7
+ }) => React.JSX.Element;
8
+ export default TenantServiceQuickViewDialog;
@@ -0,0 +1,13 @@
1
+ import "./index.less";
2
+ import QuickViewDialog from "../../../../controls/QuickViewDialog";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import React from "react";
5
+ import TenantServiceHeader from "../TenantServiceHeader";
6
+ import TenantServiceProperties from "../TenantServiceProperties";
7
+ const TenantServiceQuickViewDialog = (props) => {
8
+ const { id } = props;
9
+ return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "tenant-service-quick-view", header: React.createElement(TenantServiceHeader, { id: id }) },
10
+ React.createElement(TenantServiceProperties, { id: id }))));
11
+ };
12
+ export default TenantServiceQuickViewDialog;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,eAAe,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AAEjE,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;QAEvC,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI,CAClB,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
@@ -0,0 +1,7 @@
1
+ :global {
2
+ .tenant-service-quick-view {
3
+ .tenant-service-header {
4
+ padding: 10px 44px 10px 20px;
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,12 @@
1
+ import React, { CSSProperties } from "react";
2
+ import { ITenantService } from "../../../../data/tenant-service";
3
+ declare const TenantServiceSelect: (props: {
4
+ /** filter by tenantService centerId(financial center id) */
5
+ centerId?: string | undefined;
6
+ rate?: number | undefined;
7
+ style?: React.CSSProperties | undefined;
8
+ autoFocus?: boolean | undefined;
9
+ onBlur?: (() => void) | undefined;
10
+ onChange?: ((tenantService: ITenantService) => void) | undefined;
11
+ }) => React.JSX.Element;
12
+ export default TenantServiceSelect;
@@ -0,0 +1,44 @@
1
+ import React, { useState } from "react";
2
+ import { useTenantServiceListEffect } from "../../../../data/tenant-service";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useCreateListDataState } from "@voplus/morpho-ui/es/data";
5
+ import { Select } from "antd";
6
+ const TenantServiceSelect = (props) => {
7
+ const { rate, style, autoFocus } = props;
8
+ const centerId = props.centerId;
9
+ const [timer, setTimer] = useState();
10
+ const [value, setValue] = useState(rate);
11
+ const list = useCreateListDataState({
12
+ filterDefaults: {
13
+ filters: filters(),
14
+ },
15
+ }, [centerId]);
16
+ useTenantServiceListEffect(null, (result) => {
17
+ list.union(result);
18
+ }, list.filters.options);
19
+ return observe(() => (React.createElement(Select, { value: value, showSearch: true, allowClear: true, autoFocus: autoFocus, style: { width: "100%", ...style }, loading: list.loading, filterOption: false, placeholder: "Select TenantService", popupClassName: "tenant-service-select-popup", onBlur: () => props.onBlur && props.onBlur(), onSearch: onSearch, onChange: handleChange }, list.data.map((item) => (React.createElement(Select.Option, { key: item.id, value: item.name }, item.name))))));
20
+ function filters() {
21
+ const filter = [];
22
+ if (centerId) {
23
+ filter.push({ c: "ParentNodeId", o: "=", l: "And", v1: centerId });
24
+ }
25
+ return filter;
26
+ }
27
+ function onSearch(val) {
28
+ if (timer)
29
+ clearTimeout(timer);
30
+ setTimer(setTimeout(() => {
31
+ list.triggerSearch(val);
32
+ setTimer(undefined);
33
+ }, 1000));
34
+ }
35
+ function handleChange(rate, option) {
36
+ var _a;
37
+ setValue(rate);
38
+ const tenantService = list.data.find((d) => d.id === option.key);
39
+ if (tenantService)
40
+ (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, tenantService);
41
+ }
42
+ };
43
+ export default TenantServiceSelect;
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAkB,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAG7F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,MAAM,mBAAmB,GAAG,CAAC,KAQ5B,EAAE,EAAE;IACJ,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACzC,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IAChC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAA8B,CAAC;IAEjE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEzC,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,OAAO,EAAE,OAAO,EAAE;SAClB;KACD,EACD,CAAC,QAAQ,CAAC,CACV,CAAC;IAEF,0BAA0B,CACzB,IAAI,EACJ,CAAC,MAAM,EAAE,EAAE;QACV,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpB,CAAC,EACD,IAAI,CAAC,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AQ,CACf,CAAC;IACH,CAAC;IAED,SAAS,YAAY,CAAC,IAAY,EAAE,MAAW;;QAC9C,QAAQ,CAAC,IAAI,CAAC,CAAC;QACf,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,CAAC;QACjE,IAAI,aAAa;YAAE,MAAA,KAAK,CAAC,QAAQ,sDAAG,aAAa,CAAC,CAAC;IACpD,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { ITenantService } from "../../../../data/tenant-service";
3
+ declare const TenantServiceTabs: (props: {
4
+ id: string;
5
+ properties?: boolean;
6
+ data?: ITenantService;
7
+ }) => React.JSX.Element;
8
+ export default TenantServiceTabs;
@@ -0,0 +1,41 @@
1
+ import React, { useState } from "react";
2
+ import { useDocumentListEffect } from "@voplus/morpho-document-core";
3
+ import DocumentList from "../../../../components/DocumentList";
4
+ import DocumentTabs from "../../../../components/DocumentTabs";
5
+ import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
6
+ import { observe } from "@voplus/morpho-ui";
7
+ import { Badge } from "antd";
8
+ import TenantServiceProperties from "../TenantServiceProperties";
9
+ const TenantServiceTabs = (props) => {
10
+ const { id, properties } = props;
11
+ const [docTotals, setDocTotals] = useState(0);
12
+ const [activeKey, setActiveKey] = useState();
13
+ useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
14
+ Total: true,
15
+ List: false,
16
+ Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
17
+ });
18
+ const items = [
19
+ {
20
+ key: "Document",
21
+ label: (React.createElement(React.Fragment, null,
22
+ "Document",
23
+ React.createElement(Badge, { count: docTotals, className: "margin-left-10" }))),
24
+ children: React.createElement(DocumentList, { id: id, multiple: true, viewTitle: " ", total: false }),
25
+ },
26
+ {
27
+ key: "Activities",
28
+ label: "Activities",
29
+ children: React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id, title: " " }) : null),
30
+ },
31
+ ];
32
+ properties &&
33
+ items.unshift({
34
+ key: "Properties",
35
+ label: "Properties",
36
+ children: React.createElement(TenantServiceProperties, { id: id, data: props.data }),
37
+ });
38
+ return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "Document", tabItems: items, onChange: (key) => setActiveKey(key) })));
39
+ };
40
+ export default TenantServiceTabs;
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;AAExC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,WAAW,MAAM,2DAA2D,CAAC;AAEpF,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,EAAE;IAChG,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IACjC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU,CAAC;IAErD,qBAAqB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE;QACx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iBAAiB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ declare const TenantServiceMenu: (props: {
3
+ id: string;
4
+ closeAside?: boolean;
5
+ }) => React.JSX.Element;
6
+ export default TenantServiceMenu;
@@ -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 TenantServiceMenu = (props) => {
6
+ return observe(() => React.createElement(NodeMenu, { ...props, menus: React.createElement(Access, null) }));
7
+ };
8
+ export default TenantServiceMenu;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/controls/TenantServiceMenu/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,iBAAiB,GAAG,CAAC,KAA2C,EAAE,EAAE;IACzE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,QAAQ,OAAK,KAAK,EAAE,KAAK,EAAE,oBAAC,MAAM,OAAG,GAAI,CAAC,CAAC;AAClE,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const TenantServiceDefaultView: () => React.JSX.Element;
3
+ export default TenantServiceDefaultView;
@@ -0,0 +1,36 @@
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 TenantServiceProperties from "../../components/TenantServiceProperties";
9
+ import TenantServiceTabs from "../../components/TenantServiceTabs";
10
+ import styles from "./index.less";
11
+ const TenantServiceDefaultView = () => {
12
+ const { id } = useParams();
13
+ const store = new TabItemStore({ url: "" });
14
+ // const tenantService = useTenantService(id!);
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
+ };
22
+ const [asideContext] = useState(AsideContent.createContext());
23
+ const tab = useTabItem();
24
+ useEffect(() => {
25
+ runInAction(() => (tab.title = tenantService.name));
26
+ });
27
+ return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
28
+ React.createElement(MainContent, { className: styles["tenant-service-default-view"] },
29
+ React.createElement(MainContent.Nav, { collapsible: true },
30
+ React.createElement(TenantServiceProperties, { id: id, headerVisible: true, data: tenantService })),
31
+ React.createElement("div", { className: "tenant-service-context" },
32
+ React.createElement(AsideContent, { context: asideContext },
33
+ React.createElement(TenantServiceTabs, { id: id, data: tenantService })))))));
34
+ };
35
+ export default TenantServiceDefaultView;
36
+ //# 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,OA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oBAClC,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAG,EAAE,IAAI,EAAE,aAAa,GAAI,CACrC,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
+ }
@@ -1,11 +1,12 @@
1
- import React, { useState } from "react";
2
- import { Button, Card, Checkbox, Spin } from "antd";
1
+ import React, { useEffect, useRef, useState } from "react";
2
+ import { Button, Card, Checkbox, Spin, Row } from "antd";
3
3
  import { EnvelopeContext, EnvelopeContextState } from "../../data/EnvelopeContext";
4
4
  import { useApplicationContext, useLayout } from "@voplus/morpho-data";
5
5
  import { useEnvelope, useEnvelopeStore } from "../../data/envelope";
6
6
  import { LoadingOutlined } from "@ant-design/icons";
7
+ import { Scrollbars } from "react-custom-scrollbars-2";
7
8
  import { observe } from "@voplus/morpho-ui";
8
- import { runInAction } from "mobx";
9
+ import { runInAction, autorun } from "mobx";
9
10
  import { useParams } from "react-router-dom";
10
11
  import { State } from "./state";
11
12
  import DescriptionEditor from "../../../../controls/DescriptionEditor";
@@ -16,24 +17,53 @@ const EnvelopeRecipientView = () => {
16
17
  const sUserAgent = navigator.userAgent.toLowerCase();
17
18
  const layout = useLayout();
18
19
  const params = useParams();
20
+ const scrollRef = useRef();
19
21
  const id = params.id;
20
22
  const { user } = useApplicationContext();
21
23
  const envelope = useEnvelope(id, { reload: true, includes: "tags,versions" });
22
24
  const envelopStore = useEnvelopeStore();
23
25
  const [state] = useState(new State(id));
24
26
  const [context] = useState(new EnvelopeContextState(id, envelopStore, user.info.unit.id, true));
25
- const DescriptionPage = () => observe(() => (React.createElement("div", { className: "envelope-recipient_description_page" },
26
- React.createElement(Card, { title: `Digital Signature Envelope - ${envelope.name || "***"}`, className: "steps-content" },
27
- React.createElement(DescriptionEditor, { id: id, collapsible: false, description: envelope.description, readonly: true, padding: "0" }),
28
- React.createElement("div", { style: { padding: "0 24px" } },
27
+ const handleScroll = () => {
28
+ var _a, _b, _c;
29
+ const scrollHeight = (_a = scrollRef.current) === null || _a === void 0 ? void 0 : _a.getScrollHeight();
30
+ const clientHeight = (_b = scrollRef.current) === null || _b === void 0 ? void 0 : _b.getClientHeight();
31
+ const scrollTop = (_c = scrollRef.current) === null || _c === void 0 ? void 0 : _c.getScrollTop();
32
+ const isAtBottom = scrollHeight - clientHeight - scrollTop < 10;
33
+ state.buttonDisabled = !isAtBottom;
34
+ };
35
+ useEffect(() => autorun(() => envelope.loaded &&
36
+ setTimeout(() => {
37
+ var _a, _b;
38
+ const scrollHeight = (_a = scrollRef.current) === null || _a === void 0 ? void 0 : _a.getScrollHeight();
39
+ const clientHeight = (_b = scrollRef.current) === null || _b === void 0 ? void 0 : _b.getClientHeight();
40
+ if (scrollHeight === clientHeight)
41
+ state.buttonDisabled = false;
42
+ })));
43
+ return observe(() => (React.createElement("div", { className: "envelope-client-view" }, !envelope.loaded ? (React.createElement("div", { style: { textAlign: "center" } },
44
+ React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 30 }, spin: true }) }))) : envelope.description && !state.doNotShow && !state.continue ? (layout.ui.mobile ? (React.createElement("div", { className: "envelope-recipient-description-mobile" },
45
+ React.createElement("div", { className: "header" }, `Digital Signature Envelope - ${envelope.name || "***"}`),
46
+ React.createElement("div", { className: "content" },
47
+ React.createElement(Scrollbars, { autoHide: true, ref: scrollRef, onScrollFrame: handleScroll },
48
+ React.createElement(DescriptionEditor, { id: id, collapsible: false, description: envelope.description, readonly: true, padding: "0" }))),
49
+ React.createElement("div", { className: "footer" },
50
+ React.createElement(Row, { justify: "space-between", align: "middle" },
29
51
  React.createElement(Checkbox, { checked: state.show, onChange: (e) => runInAction(() => {
30
52
  state.show = e.target.checked;
31
53
  state.setDoNotShow();
32
- }) }, "Do not show this page any more")),
33
- React.createElement("div", { className: "continue-btn" },
34
- React.createElement(Button, { type: "primary", onClick: () => runInAction(() => (state.continue = true)) }, "Continue"))))));
35
- return observe(() => (React.createElement("div", { className: "envelope-client-view" }, envelope.loading ? (React.createElement("div", { style: { textAlign: "center" } },
36
- React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 30 }, spin: true }) }))) : envelope.description && !state.doNotShow && !state.continue ? (React.createElement(DescriptionPage, null)) : (React.createElement(EnvelopeContext.Provider, { value: context }, /ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(sUserAgent) ? (React.createElement(MobileView, { id: id })) : (React.createElement(PcView, { id: id })))))));
54
+ }) }, "Do not show this page any more"),
55
+ React.createElement(Button, { type: "primary", disabled: state.buttonDisabled, onClick: () => runInAction(() => (state.continue = true)) }, "Continue"))))) : (React.createElement("div", { className: "envelope-recipient-description-pc" },
56
+ React.createElement("div", { className: "content" },
57
+ React.createElement(Card, { title: `Digital Signature Envelope - ${envelope.name || "***"}`, className: "steps-content" },
58
+ React.createElement(Scrollbars, { autoHide: true, ref: scrollRef, onScrollFrame: handleScroll },
59
+ React.createElement(DescriptionEditor, { id: id, collapsible: false, description: envelope.description, readonly: true, padding: "0" })))),
60
+ React.createElement("div", { className: "footer" },
61
+ React.createElement(Row, { justify: "space-between", align: "middle" },
62
+ React.createElement(Checkbox, { checked: state.show, onChange: (e) => runInAction(() => {
63
+ state.show = e.target.checked;
64
+ state.setDoNotShow();
65
+ }) }, "Do not show this page any more"),
66
+ React.createElement(Button, { type: "primary", disabled: state.buttonDisabled, onClick: () => runInAction(() => (state.continue = true)) }, "Continue")))))) : (React.createElement(EnvelopeContext.Provider, { value: context }, /ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(sUserAgent) ? (React.createElement(MobileView, { id: id })) : (React.createElement(PcView, { id: id })))))));
37
67
  };
38
68
  export default EnvelopeRecipientView;
39
69
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Signature/Envelope/EnvelopeRecipientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,UAAU,MAAM,UAAU,CAAC;AAClC,OAAO,MAAM,MAAM,MAAM,CAAC;AAE1B,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAClC,MAAM,UAAU,GAAG,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;IACrD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,EAAE,GAAG,MAAM,CAAC,EAAG,CAAC;IAEtB,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;I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I,CAClB,CACyB,CAC3B,CACI,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,57 +1,119 @@
1
1
  @import "~@voplus/morpho-theme/styles/index.less";
2
2
 
3
3
  :global {
4
- .envelope-recipient_description_page {
4
+ .envelope-recipient-description-mobile {
5
+ display: flex;
6
+ flex-direction: column;
5
7
  height: 100%;
6
- padding: 70px 30px;
7
- background-color: #f5f5f5;
8
- .ant-card {
9
- width: 60%;
10
- min-width: 300px;
11
- margin: auto;
12
- .ant-card-body {
13
- padding: 0;
14
- max-height: calc(100vh - 240px);
15
- overflow-y: auto;
16
- .continue-btn {
8
+ box-sizing: border-box;
9
+
10
+ .header {
11
+ height: 56px;
12
+ line-height: 56px;
13
+ color: rgba(0, 0, 0, 0.88);
14
+ font-weight: 600;
15
+ font-size: 16px;
16
+ white-space: nowrap;
17
+ text-overflow: ellipsis;
18
+ padding: 0 10px;
19
+ border-bottom: 1px solid #f2f2f2;
20
+ }
21
+
22
+ .content {
23
+ flex: 1;
24
+ padding: 10px;
25
+ }
26
+
27
+ .footer {
28
+ height: 52px;
29
+ padding: 10px;
30
+ border-top: 1px solid #f2f2f2;
31
+ }
32
+ }
33
+
34
+ .envelope-recipient-description-pc {
35
+ display: flex;
36
+ flex-direction: column;
37
+ height: 100vh;
38
+ margin: 0;
39
+ padding: 0;
40
+ box-sizing: border-box;
41
+
42
+ .content {
43
+ flex: 1;
44
+ padding: 20px 0;
45
+ height: calc(100% - 113px);
46
+
47
+ .ant-card {
48
+ width: 60%;
49
+ min-width: 300px;
50
+ margin: auto;
51
+ overflow: hidden;
52
+ height: 100%;
53
+
54
+ .ant-card-body {
55
+ padding: 0;
56
+ height: 100%;
57
+ }
58
+
59
+ .description-editor .description-readonly-proseMirror .ProseMirror-container .ProseMirror {
17
60
  padding: 20px 24px;
18
61
  }
62
+
63
+ .ProseMirror > :last-child{
64
+ margin-bottom: 54px !important;
65
+ }
19
66
  }
20
- .description-editor .description-readonly-proseMirror .ProseMirror-container .ProseMirror {
21
- padding: 20px 24px;
22
- }
67
+ }
68
+
69
+ .footer {
70
+ height: 50px;
71
+ padding: 10px 20px;
72
+ box-sizing: border-box;
73
+ position: sticky;
74
+ bottom: 0;
75
+ background: #fff;
76
+ border-top: 1px solid #f2f2f2;
23
77
  }
24
78
  }
79
+
25
80
  .envelope-client-view {
26
81
  height: 100%;
27
82
  display: flex;
28
83
  flex-direction: column;
84
+
29
85
  .envelope-footer {
30
86
  color: gray;
31
87
  text-align: center;
32
88
  padding: 20px;
33
89
  background-color: #ffffff;
90
+
34
91
  .digi-sign {
35
92
  display: flex;
36
93
  justify-content: space-between;
94
+
37
95
  .ant-btn {
38
96
  svg {
39
97
  margin-right: 5px;
40
98
  }
41
99
  }
42
100
  }
101
+
43
102
  .letter-viewer-btn,
44
103
  .letter-viewer-remove-btn {
45
104
  margin-left: 10px;
46
105
  cursor: pointer;
47
106
  }
107
+
48
108
  .letter-viewer-btn:hover {
49
109
  color: @primary-color;
50
110
  }
111
+
51
112
  .letter-viewer-remove-btn:hover {
52
113
  color: @delete-color;
53
114
  }
54
115
  }
116
+
55
117
  .footer-mobile {
56
118
  font-size: 12px;
57
119
  }
@@ -6,6 +6,7 @@ export declare class State {
6
6
  show: boolean;
7
7
  /** open of TourGuide */
8
8
  isTourOpen: boolean;
9
+ buttonDisabled: boolean;
9
10
  constructor(_id: string);
10
11
  get doNotShow(): boolean;
11
12
  get doNotShowMap(): any;