@voplus/morpho-csp 1.2.167 → 1.2.168

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 (155) hide show
  1. package/es/Modules.js +2 -0
  2. package/es/Modules.js.map +1 -1
  3. package/es/components/Header/index.less +20 -20
  4. package/es/components/RegisteresMenuItem/index.less +10 -10
  5. package/es/data/shareTransaction/metas.d.ts +3 -0
  6. package/es/data/shareTransaction/metas.js +6 -0
  7. package/es/data/shareTransaction/metas.js.map +1 -1
  8. package/es/modules/account/components/AccountOrganizations/index.less +26 -26
  9. package/es/modules/account/components/AccountPropertiesView/index.less +10 -10
  10. package/es/modules/account/pages/AccountDefaultView/index.less +8 -8
  11. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js +3 -8
  12. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js.map +1 -1
  13. package/es/modules/corporate/clda/components/CLDADetails/index.less +5 -5
  14. package/es/modules/corporate/clda/components/CLDAItem/index.less +41 -41
  15. package/es/modules/corporate/clda/components/CLDAListView/index.less +30 -30
  16. package/es/modules/corporate/clda/components/CLDAProperties/index.less +15 -15
  17. package/es/modules/corporate/clda/components/CLDAPropertiesView/index.less +10 -10
  18. package/es/modules/corporate/clda/components/CLDAQuickViewDialog/index.less +13 -13
  19. package/es/modules/corporate/clda/components/CLDASendForm/index.less +47 -47
  20. package/es/modules/corporate/clda/components/NewCLDAForm/index.less +6 -6
  21. package/es/modules/corporate/clda/controls/CLDAStatusButton/index.less +58 -58
  22. package/es/modules/corporate/clda/controls/LegalDocumentDialog/index.less +8 -8
  23. package/es/modules/corporate/clda/controls/ModeIcon/index.less +20 -20
  24. package/es/modules/corporate/clda/pages/CLDAAddressDefaultView/index.less +14 -14
  25. package/es/modules/corporate/clda/pages/CLDAClientView/index.less +84 -84
  26. package/es/modules/corporate/clda/pages/ChangeAddress2021/index.less +40 -40
  27. package/es/modules/corporate/clda/pages/SecretaryTestPage/index.less +91 -91
  28. package/es/modules/corporate/company/components/CompanyDetailsView/index.less +40 -40
  29. package/es/modules/corporate/company/components/InlineEditAddress/index.less +16 -16
  30. package/es/modules/corporate/company/controller-register/components/ControllerItem/index.js +23 -14
  31. package/es/modules/corporate/company/controller-register/components/ControllerItem/index.js.map +1 -1
  32. package/es/modules/corporate/company/controller-register/components/ControllerItem/index.less +44 -2
  33. package/es/modules/corporate/company/controller-register/components/ControllerList/index.js +3 -1
  34. package/es/modules/corporate/company/controller-register/components/ControllerList/index.js.map +1 -1
  35. package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.d.ts +0 -1
  36. package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js +8 -20
  37. package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js.map +1 -1
  38. package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.less +9 -9
  39. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.less +24 -24
  40. package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.less +5 -5
  41. package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.d.ts +18 -0
  42. package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js +84 -0
  43. package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js.map +1 -0
  44. package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.less +58 -0
  45. package/es/modules/corporate/company/controls/CorporateMenu/index.js +2 -2
  46. package/es/modules/corporate/company/controls/CorporateMenu/index.js.map +1 -1
  47. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.less +64 -64
  48. package/es/modules/corporate/company/identity/components/IdentityItem/index.less +48 -48
  49. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.less +55 -55
  50. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.less +59 -59
  51. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.less +54 -54
  52. package/es/modules/corporate/company/member-register/components/CompanyMemberAvatar/index.less +7 -7
  53. package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.d.ts +0 -1
  54. package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.js +32 -23
  55. package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.js.map +1 -1
  56. package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.less +33 -14
  57. package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js +3 -1
  58. package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js.map +1 -1
  59. package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.less +12 -12
  60. package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.d.ts +0 -1
  61. package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js +9 -19
  62. package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js.map +1 -1
  63. package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.less +10 -10
  64. package/es/modules/corporate/company/member-register/components/MemberShareTransactions/index.less +12 -12
  65. package/es/modules/corporate/company/member-register/components/ShareTransactionsDataIcon/index.less +8 -8
  66. package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.less +6 -6
  67. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.d.ts +0 -1
  68. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js +36 -26
  69. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js.map +1 -1
  70. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.less +31 -17
  71. package/es/modules/corporate/company/officer-register/components/OfficerList/index.js +3 -1
  72. package/es/modules/corporate/company/officer-register/components/OfficerList/index.js.map +1 -1
  73. package/es/modules/corporate/company/officer-register/components/OfficerList/index.less +12 -12
  74. package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.d.ts +0 -1
  75. package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js +9 -23
  76. package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map +1 -1
  77. package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.less +10 -10
  78. package/es/modules/corporate/company/officer-register/controls/OfficerStatusFilter/index.less +5 -5
  79. package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.less +6 -6
  80. package/es/modules/corporate/company/pages/CompanyDefaultView/index.less +67 -67
  81. package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.less +11 -11
  82. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js +5 -5
  83. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -1
  84. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.less +18 -1
  85. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js +3 -1
  86. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
  87. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.less +3 -1
  88. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/Content.js +12 -11
  89. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/Content.js.map +1 -1
  90. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.less +89 -89
  91. package/es/modules/corporate/company/share-transactions-register/controls/ShareTransactionMenu/index.d.ts +5 -0
  92. package/es/modules/corporate/company/share-transactions-register/controls/ShareTransactionMenu/index.js +13 -0
  93. package/es/modules/corporate/company/share-transactions-register/controls/ShareTransactionMenu/index.js.map +1 -0
  94. package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/index.less +5 -5
  95. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.less +89 -89
  96. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.less +20 -20
  97. package/es/modules/corporate/components/DocumentIconList/index.less +14 -14
  98. package/es/modules/corporate/components/Statement/index.less +16 -16
  99. package/es/modules/corporate/filing-record/components/AnnualFilings/index.less +8 -8
  100. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.less +12 -12
  101. package/es/modules/corporate/filing-record/components/FilingRecordQuickView/index.less +56 -56
  102. package/es/modules/corporate/filing-record/components/FilingYearTimeLine/index.less +71 -71
  103. package/es/modules/corporate/legal-generation/components/SettingDialog/index.less +14 -14
  104. package/es/modules/corporate/legal-generation/pages/CorporateLegalGeneration/index.less +72 -72
  105. package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.less +5 -5
  106. package/es/modules/corporate/service/components/NewServiceDialog/index.less +27 -27
  107. package/es/modules/corporate/service/components/ServiceItem/index.less +23 -23
  108. package/es/modules/corporate/service-type/components/ServiceTypePropertiesView/index.less +48 -48
  109. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.less +30 -30
  110. package/es/modules/corporate/share-options-register/components/ShareMovementsDataIcon/index.less +11 -11
  111. package/es/modules/corporate/share-options-register/components/ShareOptionItem/index.less +84 -84
  112. package/es/modules/corporate/share-options-register/components/ShareOptionList/index.less +22 -22
  113. package/es/modules/corporate/share-options-register/components/ShareOptionPropertiesView/index.less +89 -89
  114. package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.less +89 -89
  115. package/es/modules/order/components/OrderItem/index.less +21 -21
  116. package/es/modules/order/components/OrderItems/index.less +48 -48
  117. package/es/modules/order/components/OrderPropertiesView/index.less +13 -13
  118. package/es/modules/order/controls/IncorporationStatusLabel/index.less +41 -41
  119. package/es/modules/order/controls/OrderLabel/index.less +21 -21
  120. package/es/modules/order/pages/OrderDefaultView/index.less +13 -13
  121. package/es/modules/self-registration/clda-form/ApplicationProcessing/index.less +37 -37
  122. package/es/modules/self-registration/clda-form/CompanyInfoForm/index.less +25 -25
  123. package/es/modules/self-registration/clda-form/Download/index.less +41 -41
  124. package/es/modules/self-registration/clda-form/IncorporaitonCart/index.less +26 -26
  125. package/es/modules/self-registration/clda-form/Upload/index.less +15 -15
  126. package/es/modules/self-registration/clda-form/components/CLDAFormQuickViewDialog/index.less +13 -13
  127. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.less +19 -19
  128. package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.less +12 -12
  129. package/es/modules/self-registration/clda-form/components/ShareCapital/index.less +50 -50
  130. package/es/modules/self-registration/clda-form/incorporation/sgp/index.less +36 -36
  131. package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.less +45 -45
  132. package/es/modules/self-registration/components/Card/index.less +51 -51
  133. package/es/modules/self-registration/components/CheckSection/index.less +20 -20
  134. package/es/modules/self-registration/components/MemberCard/index.less +53 -53
  135. package/es/modules/self-registration/components/StripeForm/index.less +36 -36
  136. package/es/modules/self-registration/controls/Blink/index.less +27 -27
  137. package/es/modules/self-registration/controls/Section/index.less +79 -79
  138. package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.less +12 -12
  139. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.less +10 -10
  140. package/es/modules/self-registration/incorporation-clda/pages/CLDAIncorporationDefaultView/index.less +20 -20
  141. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/TourGuide/index.less +5 -5
  142. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.less +52 -52
  143. package/es/modules/self-registration/shopping-cart/ChooseService/index.js +2 -2
  144. package/es/modules/self-registration/shopping-cart/ChooseService/index.less +12 -12
  145. package/es/modules/self-registration/shopping-cart/Payment/index.less +13 -13
  146. package/es/modules/self-registration/shopping-cart/components/Pay/index.less +14 -14
  147. package/es/modules/self-registration/shopping-cart/components/TotalCart/index.less +75 -75
  148. package/es/modules/self-registration/shopping-cart/components/styles.less +23 -23
  149. package/es/modules/self-registration/shopping-cart/pages.less +6 -6
  150. package/es/obsolete/OfficerRegisterDefaultView/index.less +23 -23
  151. package/es/obsolete/controller-register/components/ControllerItem/index.less +29 -29
  152. package/es/obsolete/controller-register/components/ControllerList/index.less +12 -12
  153. package/es/obsolete/controller-register/pages/ControllerDefaultView/index.less +1 -1
  154. package/es/style/common.less +66 -66
  155. package/package.json +1 -1
@@ -1,40 +1,40 @@
1
- :global {
2
- .company-details-view {
3
- height: 100%;
4
- .company-amount-title {
5
- color: rgba(0, 0, 0, 0.85);
6
- font-weight: bold;
7
- font-size: 16px;
8
- margin-bottom: 10px;
9
- }
10
- h4 {
11
- padding: 10px 0;
12
- margin: 0;
13
- }
14
- .ant-timeline {
15
- margin-top: 20px;
16
- }
17
- .card-amount {
18
- margin-bottom: 15px;
19
- }
20
- .card-company {
21
- position: relative;
22
- margin-bottom: 15px;
23
- &:hover .hover-edit-btn {
24
- display: block;
25
- cursor: pointer;
26
- }
27
- .ant-descriptions-item-label {
28
- font-weight: 500;
29
- }
30
- .ant-descriptions-extra .ant-btn {
31
- padding: 0 0 0 10px;
32
- height: auto;
33
- }
34
- .hover-edit-btn {
35
- display: none;
36
- height: auto;
37
- }
38
- }
39
- }
40
- }
1
+ :global {
2
+ .company-details-view {
3
+ height: 100%;
4
+ .company-amount-title {
5
+ color: rgba(0, 0, 0, 0.85);
6
+ font-weight: bold;
7
+ font-size: 16px;
8
+ margin-bottom: 10px;
9
+ }
10
+ h4 {
11
+ padding: 10px 0;
12
+ margin: 0;
13
+ }
14
+ .ant-timeline {
15
+ margin-top: 20px;
16
+ }
17
+ .card-amount {
18
+ margin-bottom: 15px;
19
+ }
20
+ .card-company {
21
+ position: relative;
22
+ margin-bottom: 15px;
23
+ &:hover .hover-edit-btn {
24
+ display: block;
25
+ cursor: pointer;
26
+ }
27
+ .ant-descriptions-item-label {
28
+ font-weight: 500;
29
+ }
30
+ .ant-descriptions-extra .ant-btn {
31
+ padding: 0 0 0 10px;
32
+ height: auto;
33
+ }
34
+ .hover-edit-btn {
35
+ display: none;
36
+ height: auto;
37
+ }
38
+ }
39
+ }
40
+ }
@@ -1,16 +1,16 @@
1
- :global {
2
- .inline-edit-address,
3
- .company-information {
4
- .ant-col .ant-row.ant-form-item {
5
- display: block;
6
- .ant-col.ant-form-item-label {
7
- display: inline;
8
- width: 100%;
9
- text-align: left;
10
- > label {
11
- height: auto;
12
- }
13
- }
14
- }
15
- }
16
- }
1
+ :global {
2
+ .inline-edit-address,
3
+ .company-information {
4
+ .ant-col .ant-row.ant-form-item {
5
+ display: block;
6
+ .ant-col.ant-form-item-label {
7
+ display: inline;
8
+ width: 100%;
9
+ text-align: left;
10
+ > label {
11
+ height: auto;
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }
@@ -1,30 +1,32 @@
1
- import React from "react";
1
+ import React, { useState } from "react";
2
2
  import { observe } from "@voplus/morpho-ui";
3
- import { useController } from "../../../../../../data/controller";
4
- import { Badge } from "@voplus/antd";
3
+ import { useController, useControllerStore } from "../../../../../../data/controller";
4
+ import { Badge, Skeleton } from "@voplus/antd";
5
5
  import { faEnvelope, faPhone } from "@fortawesome/pro-light-svg-icons";
6
6
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
7
+ import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
8
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
9
+ import CompanyControllerMenu from "../../../controls/CompanyRegisterMenu";
7
10
  import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
8
11
  import classnames from "classnames";
9
12
  import moment from "moment";
10
13
  import styles from "./index.less";
11
14
  const ControllerItem = (props) => {
12
15
  const { id, unitId, index } = props;
16
+ const [isHover, setIsHover] = useState(false);
13
17
  const controller = useController(id);
18
+ const store = useControllerStore();
14
19
  return observe(() => {
15
20
  var _a, _b, _c, _d, _e, _f, _g;
16
21
  const phone = (_a = controller.phone) !== null && _a !== void 0 ? _a : (_b = controller.contact) === null || _b === void 0 ? void 0 : _b.phone;
17
22
  const email = (_c = controller.email) !== null && _c !== void 0 ? _c : (_d = controller.contact) === null || _d === void 0 ? void 0 : _d.email;
18
- return (React.createElement("div", { className: classnames(styles["controller-item"], "hover:bg-gray-50") },
23
+ return (React.createElement("div", { className: classnames(styles["controller-item"]), onMouseOver: () => setIsHover(true), onMouseLeave: () => setIsHover(false) }, controller.loading ? (React.createElement(Skeleton, { avatar: true, paragraph: { rows: 1 } })) : (React.createElement(React.Fragment, null,
19
24
  React.createElement("div", { className: "avatar" },
20
25
  React.createElement(UnitAvatar, { id: unitId, index: index, size: "large" })),
21
- React.createElement("div", { className: "controller-content" },
22
- React.createElement("div", { className: "flex items-center justify-between mb-1" },
23
- React.createElement("div", { className: "font-medium text-indigo-600 truncate" }, (_f = (_e = controller.identity) === null || _e === void 0 ? void 0 : _e.fullName) !== null && _f !== void 0 ? _f : (_g = controller.contact) === null || _g === void 0 ? void 0 : _g.name),
24
- React.createElement("div", { className: "ml-2 flex-shrink-0 flex" },
25
- React.createElement("div", { className: "px-2 inline-flex leading-5 font-semibold rounded-full bg-green-100 text-green-800" }, controller.confirmationStatus))),
26
- React.createElement("div", { className: "data-bar sm:flex sm:justify-between mt-1" },
27
- React.createElement("div", null,
26
+ React.createElement("div", { className: "controller-item-content" },
27
+ React.createElement("div", { className: "controller-item-info" },
28
+ React.createElement("div", { className: "controller-item-name font-medium text-indigo-600 truncate" }, (_f = (_e = controller.identity) === null || _e === void 0 ? void 0 : _e.fullName) !== null && _f !== void 0 ? _f : (_g = controller.contact) === null || _g === void 0 ? void 0 : _g.name),
29
+ React.createElement("div", { className: "controller-item-data-bar" },
28
30
  email && (React.createElement("span", { className: "text-sm text-gray-500 margin-right-15" },
29
31
  React.createElement(FAIcon, { icon: faEnvelope }),
30
32
  email)),
@@ -36,10 +38,17 @@ const ControllerItem = (props) => {
36
38
  moment(controller.appointment).format("YYYY-MM-DD"))),
37
39
  controller.cease && (React.createElement("span", { className: "text-sm text-gray-500 margin-right-15" },
38
40
  "Cease: ",
39
- moment(controller.cease).format("YYYY-MM-DD")))),
40
- React.createElement("div", { className: "mt-2 flex items-center text-sm text-gray-500 sm:mt-0" },
41
+ moment(controller.cease).format("YYYY-MM-DD"))))),
42
+ React.createElement("div", { className: classnames("controller-item-menus", { hide: isHover }) },
43
+ React.createElement("div", { className: "controller-item-status" },
44
+ React.createElement("div", { className: "px-2 leading-5 font-semibold rounded-full bg-green-100 text-green-800" }, controller.confirmationStatus)),
45
+ React.createElement("div", { className: "controller-item-identity" },
41
46
  !controller.identity && React.createElement(Badge, { status: "warning", text: "Need Identity Info" }),
42
- controller.status && controller.identity && (React.createElement("div", null, controller.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" })))))))));
47
+ controller.status && controller.identity && (React.createElement("div", null, controller.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" })))))),
48
+ React.createElement("div", { className: classnames("controller-item-tool", { show: isHover }), onClick: (e) => e.stopPropagation() },
49
+ React.createElement(ToolBar, { id: id, showMenu: false },
50
+ React.createElement(Open, { url: `/controller/${id}` }),
51
+ React.createElement(CompanyControllerMenu, { id: id, unitId: controller.contact.id, store: store, closeAside: true }))))))));
43
52
  });
44
53
  };
45
54
  export default ControllerItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,MAAM,MAAM,cAAc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AI;4BACxB,KAAK,CACA,CACP;wBACA,UAAU,CAAC,WAAW,IAAI,CAC1B,8BAAM,SAAS,EAAC,uCAAuC;;4BACxC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAC3D,CACP;wBACA,UAAU,CAAC,KAAK,IAAI,CACpB,8BAAM,SAAS,EAAC,uCAAuC;;4BAC9C,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAC/C,CACP,CACI;oBACN,6BAAK,SAAS,EAAC,sDAAsD;wBACnE,CAAC,UAAU,CAAC,QAAQ,IAAI,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,EAAC,IAAI,EAAC,oBAAoB,GAAG;wBAC5E,UAAU,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,IAAI,CAC5C,iCACE,UAAU,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAClC,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,GAAG,CACzC,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IAAC,MAAM,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,GAAG,CACpC,CACI,CACN,CACI,CACD,CACD,CACD,CACN,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE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AAS,EAAC,0BAA0B;wBACvC,CAAC,UAAU,CAAC,QAAQ,IAAI,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,EAAC,IAAI,EAAC,oBAAoB,GAAG;wBAC5E,UAAU,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,IAAI,CAC5C,iCACE,UAAU,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAClC,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,GAAG,CACzC,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IAAC,MAAM,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,GAAG,CACpC,CACI,CACN,CACI,CACD;gBACN,6BACC,SAAS,EAAE,UAAU,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAChE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE;oBAEnC,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;wBAC/B,oBAAC,IAAI,IAAC,GAAG,EAAE,eAAe,EAAE,EAAE,GAAI;wBAClC,oBAAC,qBAAqB,IACrB,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,EAC7B,KAAK,EAAE,KAAK,EACZ,UAAU,SACT,CACO,CACL,CACD,CACU,CACjB,CACI,CACN,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
@@ -10,8 +10,50 @@
10
10
  margin-right: 10px;
11
11
  }
12
12
 
13
- .controller-content {
13
+ .controller-item-content {
14
+ display: flex;
15
+ justify-content: space-between;
16
+ align-items: center;
14
17
  width: 100%;
18
+
19
+ .controller-item-info {
20
+ display: flex;
21
+ flex-direction: column;
22
+
23
+ .controller-item-data-bar {
24
+ min-height: 22px;
25
+ }
26
+ }
27
+
28
+ .controller-item-menus {
29
+ display: flex;
30
+ flex-direction: column;
31
+ width: 132px;
32
+
33
+ &.hide {
34
+ display: none;
35
+ }
36
+
37
+ .controller-item-status {
38
+ display: flex;
39
+ justify-content: end;
40
+ width: 100%;
41
+ }
42
+
43
+ .controller-item-identity {
44
+ display: flex;
45
+ justify-content: end;
46
+ width: 100%;
47
+ }
48
+ }
49
+
50
+ .controller-item-tool {
51
+ display: none;
52
+
53
+ &.show {
54
+ display: block;
55
+ }
56
+ }
15
57
  }
16
58
  }
17
- }
59
+ }
@@ -6,6 +6,7 @@ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
6
6
  import { runInAction } from "mobx";
7
7
  import { useAutoUpdateListData } from "@voplus/morpho-document-core";
8
8
  import { useDeepMemo } from "@voplus/morpho-data";
9
+ import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
9
10
  import SelectControllerForm from "../SelectControllerForm";
10
11
  import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
11
12
  import ControllerItem from "../ControllerItem";
@@ -54,7 +55,8 @@ const ControllerList = (props) => {
54
55
  addAble: false,
55
56
  }, renderItem: ({ item, index }) => {
56
57
  var _a;
57
- return (React.createElement(ControllerItem, { key: item.id, id: item.id, unitId: item.contact.id, identityId: (_a = item.identity) === null || _a === void 0 ? void 0 : _a.id, index: index, className: index === 0 ? "shareTransaction-item-first" : "" }));
58
+ return (React.createElement(DocumentItemFrame, { key: item.id },
59
+ React.createElement(ControllerItem, { id: item.id, unitId: item.contact.id, identityId: (_a = item.identity) === null || _a === void 0 ? void 0 : _a.id, index: index })));
58
60
  }, propertiesView: (id) => React.createElement(ControllerPropertiesView, { id: id, allowEdit: allowEdit }), className: styles["controller-list-view"] }),
59
61
  state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => runInAction(() => (state.addAble = false)) }))),
60
62
  visible && React.createElement(SelectControllerForm, { parentId: parentId, onCancel: () => setVisible(false) }))));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,uBAAuB,EACvB,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,cAAc,GAAG,CAAC,KAIvB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,eAAe,GAAG,kBAAkB,EAAE,CAAC;IAE7C,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,OAAO,EAAE;gBACR,EAAE,CAAC,EAAE,cAAc,EAAE,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,EAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,GACzD,CACF,CACyB;QAC1B,OAAO,IAAI,oBAAC,oBAAoB,IAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CAC3E,CACjB,CAAC,CAAC;IAEH,uBAAuB;IACvB,KAAK,UAAU,MAAM,CAAC,IAAkD;QACvE,qDAAqD;QACrD,IAAI,IAAI,EAAE;YACT,MAAM,GAAG,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC;gBACxC,IAAI,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;gBAClD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;SAClB;QACD,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,uBAAuB,EACvB,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C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AC;IAEH,uBAAuB;IACvB,KAAK,UAAU,MAAM,CAAC,IAAkD;QACvE,qDAAqD;QACrD,IAAI,IAAI,EAAE;YACT,MAAM,GAAG,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC;gBACxC,IAAI,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;gBAClD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;SAClB;QACD,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import "./index.less";
3
2
  declare const ControllerPropertiesView: (props: {
4
3
  id: string;
5
4
  allowEdit?: boolean;
@@ -1,10 +1,10 @@
1
1
  import React, { useMemo } from "react";
2
- import { useAsideContentContext, observe } from "@voplus/morpho-ui";
3
- import { useListDataContext } from "@voplus/morpho-ui/es/data";
4
- import { Delete, Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
5
4
  import { Skeleton, Tabs } from "@voplus/antd";
6
5
  import { useController, useControllerStore } from "../../../../../../data/controller";
7
6
  import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
7
+ import CompanyControllerMenu from "../../../controls/CompanyRegisterMenu";
8
8
  import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
9
9
  import ContactInformation from "@voplus/morpho-org/es/components/ContactInformation";
10
10
  import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
@@ -12,25 +12,23 @@ import IdentifyDetail from "../../../identity/components/IdentifyDetail";
12
12
  import ControllerInformation from "../ControllerInformation";
13
13
  import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
14
14
  import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
15
- import "./index.less";
15
+ import styles from "./index.less";
16
16
  const ControllerPropertiesView = (props) => {
17
17
  const { id, allowEdit, toolbar } = props;
18
18
  const controller = useController(id, { reload: true });
19
- const controllerStore = useControllerStore();
20
- const dataState = useListDataContext();
21
- const asideContext = useAsideContentContext();
19
+ const store = useControllerStore();
22
20
  const view = useMemo(() => new ViewContextData("QuickView"), []);
23
21
  return observe(() => {
24
22
  var _a, _b, _c, _d;
25
23
  return (React.createElement(ViewContext.Provider, { value: view },
26
- React.createElement("div", { className: "controller-properties-view_content" },
24
+ React.createElement("div", { className: styles["controller-properties-view-content"] },
27
25
  controller.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
28
- React.createElement(Skeleton, { active: true }))) : (React.createElement("div", { className: "controller-properties-view_header" },
26
+ React.createElement(Skeleton, { active: true }))) : (React.createElement("div", { className: "controller-properties-view-header" },
29
27
  React.createElement(UnitAvatar, { id: controller.contact.id, size: 70 }),
30
28
  React.createElement("div", null, (_b = (_a = controller.identity) === null || _a === void 0 ? void 0 : _a.fullName) !== null && _b !== void 0 ? _b : (_c = controller.contact) === null || _c === void 0 ? void 0 : _c.name),
31
29
  toolbar !== false && (React.createElement(ToolBar, { showMenu: false },
32
30
  React.createElement(Open, { url: `/controller/${id}` }),
33
- allowEdit && React.createElement(Delete, { action: onDelete }))))),
31
+ React.createElement(CompanyControllerMenu, { id: id, unitId: controller.contact.id, store: store, closeAside: true }))))),
34
32
  React.createElement(Tabs, { defaultActiveKey: "Controller" },
35
33
  React.createElement(Tabs.TabPane, { tab: "Controller Details", key: "Controller" },
36
34
  React.createElement(ControllerInformation, { id: id, allowEdit: allowEdit })),
@@ -43,16 +41,6 @@ const ControllerPropertiesView = (props) => {
43
41
  React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" },
44
42
  React.createElement(ActivityLog, { id: id, nodes: [controller.contact.id], bar: false }))))));
45
43
  });
46
- /** 删除controller item */
47
- async function onDelete() {
48
- await controllerStore.delete([id], { error: "message" }).then((res) => {
49
- if (!res)
50
- return;
51
- dataState.remove(id);
52
- if (asideContext)
53
- asideContext.closeAside();
54
- });
55
- }
56
44
  };
57
45
  export default ControllerPropertiesView;
58
46
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAC,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,kBAAkB,MAAM,qDAAqD,CAAC;AACrF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,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EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACrE,IAAI,CAAC,GAAG;gBAAE,OAAO;YACjB,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACrB,IAAI,YAAY;gBAAE,YAAY,CAAC,UAAU,EAAE,CAAC;QAC7C,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,qBAAqB,MAAM,uCAAuC,CAAC;AAC1E,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,kBAAkB,MAAM,qDAAqD,CAAC;AACrF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,wBAAwB,GAAG,CAAC,KAIjC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACzC,MAAM,UAAU,GAA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qB,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,GAAI,CACzC;oBACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,iBAAiB,EAAC,GAAG,EAAC,SAAS;wBAChD,oBAAC,kBAAkB,IAAC,EAAE,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,GAAI,CACzD;oBACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,kBAAkB,EAAC,GAAG,EAAC,UAAU;wBAClD,oBAAC,cAAc,IACd,UAAU,EAAE,MAAA,UAAU,CAAC,QAAQ,0CAAE,EAAG,EACpC,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,EAC/B,YAAY,EAAE,EAAE,EAChB,SAAS,EAAE,SAAS,GACnB,CACY;oBACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,WAAW,EAAC,GAAG,EAAC,UAAU;wBAC3C,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,GAAI,CACzB;oBACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,YAAY,EAAC,GAAG,EAAC,YAAY;wBAC9C,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,GAAI,CACrD,CACT,CACF,CACgB,CACvB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -1,14 +1,14 @@
1
1
  @import "~@voplus/morpho-theme/styles/index.less";
2
2
 
3
- :global {
4
- .controller-properties-view_content {
5
- display: flex;
6
- flex-direction: column;
7
- height: 100%;
8
- overflow: hidden;
9
- background-color: #fff;
10
-
11
- .controller-properties-view_header {
3
+ .controller-properties-view-content {
4
+ display: flex;
5
+ flex-direction: column;
6
+ height: 100%;
7
+ overflow: hidden;
8
+ background-color: #fff;
9
+
10
+ :global {
11
+ .controller-properties-view-header {
12
12
  position: relative;
13
13
  text-align: center;
14
14
  padding: 20px 0 10px 0;
@@ -1,25 +1,25 @@
1
- @import "~@voplus/morpho-theme/styles/index.less";
2
-
3
- :global {
4
- .controller-status {
5
-
6
- &.unconfirmed,
7
- &.unconfirmed:hover {
8
- border: unset;
9
- background: #ffe58f;
10
- color: white;
11
- }
12
-
13
- &.confirmed-not-controller,
14
- &.confirmed-not-controller:hover {
15
- background: @closed-color;
16
- }
17
-
18
- &.confirmed-controller,
19
- &.confirmed-controller:hover {
20
- background: @done-color;
21
- }
22
-
23
- width: 13em;
24
- }
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .controller-status {
5
+
6
+ &.unconfirmed,
7
+ &.unconfirmed:hover {
8
+ border: unset;
9
+ background: #ffe58f;
10
+ color: white;
11
+ }
12
+
13
+ &.confirmed-not-controller,
14
+ &.confirmed-not-controller:hover {
15
+ background: @closed-color;
16
+ }
17
+
18
+ &.confirmed-controller,
19
+ &.confirmed-controller:hover {
20
+ background: @done-color;
21
+ }
22
+
23
+ width: 13em;
24
+ }
25
25
  }
@@ -1,6 +1,6 @@
1
- :global {
2
- .controller-default-view {
3
- padding: 0 !important;
4
- overflow: hidden;
5
- }
1
+ :global {
2
+ .controller-default-view {
3
+ padding: 0 !important;
4
+ overflow: hidden;
5
+ }
6
6
  }
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { MemberStore } from "../../../../../data/member";
3
+ import { OfficerStore } from "../../../../../data/officer";
4
+ import { ControllerStore } from "../../../../../data/controller";
5
+ declare const CompanyRegisterMenu: {
6
+ (props: {
7
+ id: string;
8
+ unitId: string;
9
+ store: MemberStore | OfficerStore | ControllerStore;
10
+ icon?: React.ReactNode;
11
+ className?: string;
12
+ closeAside?: boolean;
13
+ }): JSX.Element;
14
+ defaultProps: {
15
+ icon: JSX.Element;
16
+ };
17
+ };
18
+ export default CompanyRegisterMenu;
@@ -0,0 +1,84 @@
1
+ import React, { useState } from "react";
2
+ import { useLayout } from "@voplus/morpho-data";
3
+ import { Button, Dropdown, Menu, Modal, Popover, message } from "@voplus/antd";
4
+ import { useUnit } from "@voplus/morpho-org";
5
+ import { faTrashAlt, faCircleEllipsis, faUserEdit, faFolderUser, faBuilding, faPanelEws, faPaste, faAddressCard, faArrowUpRightFromSquare, } from "@fortawesome/pro-light-svg-icons";
6
+ import { observe, useAsideContentContext } from "@voplus/morpho-ui";
7
+ import { useListDataContext } from "@voplus/morpho-ui/es/data";
8
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
9
+ import { useDocumentStore, useMoveNodeInfoService, useDocument, } from "@voplus/morpho-document-core";
10
+ import PasteList from "@voplus/morpho-document/es/controls/PasteList";
11
+ import PermissionModal from "@voplus/morpho-org/es/controls/PermissionModal";
12
+ import Routes from "../../../../../routes";
13
+ import classnames from "classnames";
14
+ import styles from "./index.less";
15
+ const CompanyRegisterMenu = (props) => {
16
+ const document = useDocument(props.id);
17
+ const move = useMoveNodeInfoService();
18
+ const docStore = useDocumentStore();
19
+ const unit = useUnit(props.unitId);
20
+ const layout = useLayout();
21
+ const dataState = useListDataContext();
22
+ const asideContext = useAsideContentContext();
23
+ const [visible, setVisible] = useState(false);
24
+ const pasteListVisible = move.info.length ? {} : { visible: false };
25
+ return observe(() => (React.createElement(React.Fragment, null,
26
+ React.createElement(Dropdown, { placement: "bottomRight", overlay: React.createElement(Menu, { className: classnames(styles["company-registere-menu"], props.className) },
27
+ !document.system && (React.createElement(Popover, { placement: "left", content: React.createElement(PasteList, { move: move }), overlayStyle: { width: "400px" }, ...pasteListVisible },
28
+ React.createElement(Menu.Item, { key: "Paste", disabled: (!move.hasTypes(["Document"]) && docStore.copyIds.length === 0) ||
29
+ document.readonly, onClick: onPaste },
30
+ React.createElement(FAIcon, { icon: faPaste }),
31
+ React.createElement("span", { className: "type-name" }, "Paste")))),
32
+ React.createElement(Menu.Item, { key: "Access", onClick: () => setVisible(!visible) },
33
+ React.createElement(FAIcon, { icon: faUserEdit }),
34
+ React.createElement("span", { className: "type-name" }, "Access")),
35
+ React.createElement(Menu.SubMenu, { key: "Contact", title: "Contact", popupClassName: styles["company-registere-sub-menu"], icon: React.createElement(FAIcon, { icon: faFolderUser }) },
36
+ React.createElement(Menu.Item, { key: "Open", disabled: !props.unitId, onClick: () => layout.history.push(`/units/${props.unitId}`) },
37
+ React.createElement(FAIcon, { icon: faArrowUpRightFromSquare }),
38
+ React.createElement("span", { className: "type-name" }, "Open")),
39
+ (unit === null || unit === void 0 ? void 0 : unit.type) === "Organization" && (React.createElement(Menu.Item, { key: "ViewCorporate", disabled: !props.unitId, onClick: () => layout.history.push(Routes.UnitCorporatePage.getUrl(props.unitId)) },
40
+ React.createElement(FAIcon, { icon: faBuilding }),
41
+ React.createElement("span", { className: "type-name" }, "View Corporate"))),
42
+ React.createElement(Menu.Item, { key: "ViewRiskProfile", disabled: !props.unitId, onClick: () => layout.history.push(Routes.UnitRiskProfilePage.getUrl(props.unitId)) },
43
+ React.createElement(FAIcon, { icon: faAddressCard }),
44
+ React.createElement("span", { className: "type-name" }, "View Risk Profile")),
45
+ React.createElement(Menu.Item, { key: "ViewCustomer", disabled: !props.unitId, onClick: () => layout.history.push(`/customer-empty/${props.unitId}`) },
46
+ React.createElement(FAIcon, { icon: faPanelEws }),
47
+ React.createElement("span", { className: "type-name" }, "View Customer"))),
48
+ React.createElement(Menu.Item, { key: "Delete", onClick: onDelete },
49
+ React.createElement(FAIcon, { icon: faTrashAlt, color: "#f5222d" }),
50
+ React.createElement("span", { className: "type-name delete" }, "Delete"))) },
51
+ React.createElement(Button, { size: "small", type: "link" }, props.icon)),
52
+ visible && React.createElement(PermissionModal, { id: props.id, onChange: () => setVisible(!visible) }))));
53
+ async function onPaste() {
54
+ const nodes = move.findRemove(["Document"]);
55
+ if (nodes.some((x) => x.id === props.id)) {
56
+ return message.warn("Cannot move to itself");
57
+ }
58
+ if (nodes.length) {
59
+ await docStore.paste(props.id, nodes.map((x) => x.id));
60
+ message.success("Document pasted.");
61
+ }
62
+ }
63
+ function onDelete() {
64
+ /** 如果文件下有子文件, 询问是否删除所有子文件 */
65
+ Modal.confirm({
66
+ title: "Do you want to delete this item?",
67
+ async onOk() {
68
+ /** 删除后是否关闭Aside */
69
+ await props.store.delete([props.id], { error: "message" }).then((res) => {
70
+ if (!res)
71
+ return;
72
+ dataState.remove(props.id);
73
+ if (!!props.closeAside && (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent))
74
+ asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside();
75
+ });
76
+ },
77
+ });
78
+ }
79
+ };
80
+ CompanyRegisterMenu.defaultProps = {
81
+ icon: React.createElement(FAIcon, { icon: faCircleEllipsis }),
82
+ };
83
+ export default CompanyRegisterMenu;
84
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/controls/CompanyRegisterMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACN,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,UAAU,EACV,UAAU,EACV,OAAO,EACP,aAAa,EACb,wBAAwB,GACxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAIpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,O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