@voplus/morpho-csp 1.2.137 → 1.2.139

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 (129) hide show
  1. package/es/components/Header/index.less +20 -20
  2. package/es/components/RegisteresMenuItem/index.less +10 -10
  3. package/es/data/member/interfaces.d.ts +4 -0
  4. package/es/data/member/types.d.ts +1 -0
  5. package/es/modules/account/components/AccountOrganizations/index.less +26 -26
  6. package/es/modules/account/components/AccountPropertiesView/index.less +10 -10
  7. package/es/modules/account/pages/AccountDefaultView/index.less +8 -8
  8. package/es/modules/corporate/clda/components/CLDADetails/index.less +5 -5
  9. package/es/modules/corporate/clda/components/CLDAItem/index.less +41 -41
  10. package/es/modules/corporate/clda/components/CLDAListView/index.less +30 -30
  11. package/es/modules/corporate/clda/components/CLDAProperties/index.less +15 -15
  12. package/es/modules/corporate/clda/components/CLDAPropertiesView/index.less +10 -10
  13. package/es/modules/corporate/clda/components/CLDAQuickViewDialog/index.less +13 -13
  14. package/es/modules/corporate/clda/components/CLDASendForm/index.less +47 -47
  15. package/es/modules/corporate/clda/components/NewCLDAForm/index.less +6 -6
  16. package/es/modules/corporate/clda/controls/CLDAStatusButton/index.less +58 -58
  17. package/es/modules/corporate/clda/controls/LegalDocumentDialog/index.less +8 -8
  18. package/es/modules/corporate/clda/controls/ModeIcon/index.less +20 -20
  19. package/es/modules/corporate/clda/pages/CLDAAddressDefaultView/index.less +14 -14
  20. package/es/modules/corporate/clda/pages/CLDAClientView/index.less +84 -84
  21. package/es/modules/corporate/clda/pages/ChangeAddress2021/index.less +40 -40
  22. package/es/modules/corporate/clda/pages/SecretaryTestPage/index.less +91 -91
  23. package/es/modules/corporate/company/components/CompanyDetailsView/index.less +40 -40
  24. package/es/modules/corporate/company/components/InlineEditAddress/index.less +16 -16
  25. package/es/modules/corporate/company/controller-register/components/ControllerItem/index.less +41 -41
  26. package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.less +51 -51
  27. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.less +24 -24
  28. package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.less +5 -5
  29. package/es/modules/corporate/company/controls/CorporateMenu/index.less +35 -35
  30. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.less +64 -64
  31. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.less +61 -61
  32. package/es/modules/corporate/company/identity/components/IdentityInformation/index.js +1 -0
  33. package/es/modules/corporate/company/identity/components/IdentityInformation/index.js.map +1 -1
  34. package/es/modules/corporate/company/identity/components/IdentityInformation/state.js +1 -0
  35. package/es/modules/corporate/company/identity/components/IdentityInformation/state.js.map +1 -1
  36. package/es/modules/corporate/company/identity/components/IdentityItem/index.less +48 -48
  37. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.less +55 -55
  38. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.less +59 -59
  39. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.less +54 -54
  40. package/es/modules/corporate/company/member-register/components/CompanyMemberAvatar/index.less +7 -7
  41. package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.less +35 -35
  42. package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.less +12 -12
  43. package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js +1 -1
  44. package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js.map +1 -1
  45. package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.less +44 -44
  46. package/es/modules/corporate/company/member-register/components/Details/index.d.ts +0 -1
  47. package/es/modules/corporate/company/member-register/components/Details/index.js +13 -43
  48. package/es/modules/corporate/company/member-register/components/Details/index.js.map +1 -1
  49. package/es/modules/corporate/company/member-register/components/DetailsObsolete/index.d.ts +7 -0
  50. package/es/modules/corporate/company/member-register/components/DetailsObsolete/index.js +50 -0
  51. package/es/modules/corporate/company/member-register/components/DetailsObsolete/index.js.map +1 -0
  52. package/es/modules/corporate/company/member-register/components/MemberShareTransactions/index.less +12 -12
  53. package/es/modules/corporate/company/member-register/components/ShareTransactionsDataIcon/index.less +8 -8
  54. package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.less +6 -6
  55. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.less +40 -40
  56. package/es/modules/corporate/company/officer-register/components/OfficerList/index.less +12 -12
  57. package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.less +44 -44
  58. package/es/modules/corporate/company/officer-register/controls/OfficerStatusFilter/index.less +5 -5
  59. package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.less +6 -6
  60. package/es/modules/corporate/company/pages/CompanyDefaultView/index.less +67 -67
  61. package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.less +11 -11
  62. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.less +72 -72
  63. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.less +16 -16
  64. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.less +89 -89
  65. package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/index.less +5 -5
  66. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.less +89 -89
  67. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.less +20 -20
  68. package/es/modules/corporate/components/DocumentIconList/index.less +14 -14
  69. package/es/modules/corporate/components/Statement/index.less +16 -16
  70. package/es/modules/corporate/filing-record/components/AnnualFilings/index.less +8 -8
  71. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.less +12 -12
  72. package/es/modules/corporate/filing-record/components/FilingRecordQuickView/index.less +56 -56
  73. package/es/modules/corporate/filing-record/components/FilingYearTimeLine/index.less +71 -71
  74. package/es/modules/corporate/legal-generation/components/SettingDialog/index.less +14 -14
  75. package/es/modules/corporate/legal-generation/pages/CorporateLegalGeneration/index.less +72 -72
  76. package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.less +5 -5
  77. package/es/modules/corporate/service/components/NewServiceDialog/index.less +27 -27
  78. package/es/modules/corporate/service/components/ServiceItem/index.less +23 -23
  79. package/es/modules/corporate/service-type/components/ServiceTypePropertiesView/index.less +48 -48
  80. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.less +30 -30
  81. package/es/modules/corporate/share-options-register/components/ShareMovementsDataIcon/index.less +11 -11
  82. package/es/modules/corporate/share-options-register/components/ShareOptionItem/index.less +84 -84
  83. package/es/modules/corporate/share-options-register/components/ShareOptionList/index.less +22 -22
  84. package/es/modules/corporate/share-options-register/components/ShareOptionPropertiesView/index.less +89 -89
  85. package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.less +89 -89
  86. package/es/modules/order/components/OrderItem/index.less +21 -21
  87. package/es/modules/order/components/OrderItems/index.less +48 -48
  88. package/es/modules/order/components/OrderPropertiesView/index.less +13 -13
  89. package/es/modules/order/controls/IncorporationStatusLabel/index.less +41 -41
  90. package/es/modules/order/controls/OrderLabel/index.less +21 -21
  91. package/es/modules/order/pages/OrderDefaultView/index.less +13 -13
  92. package/es/modules/self-registration/clda-form/ApplicationProcessing/index.less +37 -37
  93. package/es/modules/self-registration/clda-form/CompanyInfoForm/index.less +25 -25
  94. package/es/modules/self-registration/clda-form/Download/index.less +41 -41
  95. package/es/modules/self-registration/clda-form/IncorporaitonCart/index.less +26 -26
  96. package/es/modules/self-registration/clda-form/Upload/index.less +15 -15
  97. package/es/modules/self-registration/clda-form/components/CLDAFormQuickViewDialog/index.less +13 -13
  98. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.less +19 -19
  99. package/es/modules/self-registration/clda-form/components/MemberInfo/index.less +201 -201
  100. package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.less +12 -12
  101. package/es/modules/self-registration/clda-form/components/ShareCapital/index.less +50 -50
  102. package/es/modules/self-registration/clda-form/incorporation/sgp/index.less +36 -36
  103. package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.less +45 -45
  104. package/es/modules/self-registration/components/Card/index.less +51 -51
  105. package/es/modules/self-registration/components/CheckSection/index.less +20 -20
  106. package/es/modules/self-registration/components/MemberCard/index.less +53 -53
  107. package/es/modules/self-registration/components/StripeForm/index.less +36 -36
  108. package/es/modules/self-registration/controls/Blink/index.less +27 -27
  109. package/es/modules/self-registration/controls/Section/index.less +79 -79
  110. package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.less +12 -12
  111. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.less +10 -10
  112. package/es/modules/self-registration/incorporation-clda/pages/CLDAIncorporationDefaultView/index.less +20 -20
  113. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/TourGuide/index.less +5 -5
  114. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.less +52 -52
  115. package/es/modules/self-registration/shopping-cart/ChooseService/index.js +2 -2
  116. package/es/modules/self-registration/shopping-cart/ChooseService/index.less +12 -12
  117. package/es/modules/self-registration/shopping-cart/Payment/index.less +13 -13
  118. package/es/modules/self-registration/shopping-cart/components/Pay/index.less +14 -14
  119. package/es/modules/self-registration/shopping-cart/components/TotalCart/index.less +75 -75
  120. package/es/modules/self-registration/shopping-cart/components/styles.less +23 -23
  121. package/es/modules/self-registration/shopping-cart/pages.less +6 -6
  122. package/es/obsolete/OfficerRegisterDefaultView/index.less +23 -23
  123. package/es/obsolete/controller-register/components/ControllerInformation/ControllerPropertiesView/index.less +39 -39
  124. package/es/obsolete/controller-register/components/ControllerItem/index.less +29 -29
  125. package/es/obsolete/controller-register/components/ControllerList/index.less +12 -12
  126. package/es/obsolete/controller-register/pages/ControllerDefaultView/index.less +1 -1
  127. package/es/style/common.less +66 -66
  128. package/package.json +1 -1
  129. /package/es/modules/corporate/company/member-register/components/{Details → DetailsObsolete}/index.less +0 -0
@@ -1,50 +1,20 @@
1
- import "./index.less";
2
- import { Form } from "@voplus/antd";
3
- import { useMemberStore, } from "../../../../../../data/member";
4
- import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
5
- import { InlineEdit } from "@voplus/morpho-ui";
6
1
  import React from "react";
7
- import Scrollbars from "react-custom-scrollbars";
8
- import moment from "moment";
2
+ import { Form } from "@voplus/antd";
3
+ import { useMember, useMemberStore } from "../../../../../../data/member";
9
4
  import { observe } from "@voplus/morpho-ui";
5
+ import MetionList from "@voplus/morpho-org/es/controls/MetionList";
10
6
  const Details = (props) => {
11
7
  const { id, allowEdit } = props;
12
- // const member = useMember(id);
13
- const member = {
14
- id: id,
15
- name: "股东名册",
16
- guarantee: 20000,
17
- since: "2020-01-19T09:20:30.072",
18
- until: "2022-11-19T09:20:30.072",
19
- };
20
- const memberStore = useMemberStore();
21
- return observe(() => (React.createElement(Scrollbars, null,
22
- React.createElement(Form, { labelAlign: "left", labelCol: { span: 5 }, className: "company-information" },
23
- React.createElement("h3", null, "Shares"),
24
- React.createElement(React.Fragment, null,
25
- React.createElement(Form.Item, { label: "Ordinary" },
26
- React.createElement(InlineEdit, { defaultValue: member.guarantee, editable: allowEdit, content: (v) => React.createElement(React.Fragment, null, v.store.value || "Add Ordinary") })),
27
- React.createElement(Form.Item, { label: "Preference" },
28
- React.createElement(InlineEdit, { defaultValue: member.guarantee, editable: allowEdit, content: (v) => React.createElement(React.Fragment, null, v.store.value || "Add Preference") }))),
29
- React.createElement("h3", null, "Period"),
30
- React.createElement(React.Fragment, null,
31
- React.createElement(Form.Item, { label: "Since" },
32
- React.createElement(InlineEdit, { defaultValue: member === null || member === void 0 ? void 0 : member.since, content: (v) => (React.createElement("span", null, v ? moment(v.store.value).format("YYYY-MM-DD") : "Add Since")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
33
- if ((member === null || member === void 0 ? void 0 : member.since) && moment(date).isSame(member === null || member === void 0 ? void 0 : member.since, "day"))
34
- return;
35
- memberStore.edit(id, { data: { Since: date }, error: "message" });
36
- } })),
37
- React.createElement(Form.Item, { label: "Until" },
38
- React.createElement(InlineEdit, { defaultValue: member === null || member === void 0 ? void 0 : member.until, content: (v) => (React.createElement("span", null, v ? moment(v.store.value).format("YYYY-MM-DD") : "Add Until")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
39
- if ((member === null || member === void 0 ? void 0 : member.until) && moment(date).isSame(member === null || member === void 0 ? void 0 : member.until, "day"))
40
- return;
41
- memberStore.edit(id, { data: { Until: date }, error: "message" });
42
- } })))))));
43
- /** hover edit Contact Info */
44
- function inlineEdit(value, oldValue, option) {
45
- // if (!value || value.trim() === oldValue) return;
46
- memberStore.edit(id, { data: option, error: "message" });
47
- }
8
+ const member = useMember(id);
9
+ const store = useMemberStore();
10
+ return observe(() => (React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 }, className: "company-information" },
11
+ React.createElement(Form.Item, { label: "Representative" },
12
+ React.createElement(MetionList, { isEmptyData: true, canEdit: allowEdit, contacts: member.representative ? [member.representative] : [], onChange: (list) => {
13
+ store.edit(id, {
14
+ data: { RepresentativeId: list.length ? list[0].id : "" },
15
+ error: "message",
16
+ });
17
+ } })))));
48
18
  };
49
19
  export default Details;
50
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/Details/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,IAAI,EAAY,MAAM,cAAc,CAAC;AAC9C,OAAO,EAGN,cAAc,GACd,MAAM,+BAA+B,CAAC;AAEvC,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;A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AAM,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,EAAE,KAAK,CAAC;gCAAE,OAAO;4BACvE,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;wBACnE,CAAC,GACA,CACS,CACI,CAEX,CACK,CACb,CAAC,CAAC;IAEH,8BAA8B;IAC9B,SAAS,UAAU,CAAC,KAAc,EAAE,QAAiB,EAAE,MAAsC;QAC5F,mDAAmD;QACnD,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAuC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC3F,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/Details/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,UAAU,MAAM,2CAA2C,CAAC;AAEnE,MAAM,OAAO,GAAG,CAAC,KAA0C,EAAE,EAAE;IAC9D,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAChC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC,CAAC;IAC7B,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAE/B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,IAAI,IAAC,UAAU,EAAC,MAAM,EAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,qBAAqB;QAC9E,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,gBAAgB;YAChC,oBAAC,UAAU,IACV,WAAW,QACX,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,EAC9D,QAAQ,EAAE,CACT,IAGG,EACF,EAAE;oBACH,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;wBACd,IAAI,EAAE,EAAE,gBAAgB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;wBACzD,KAAK,EAAE,SAAS;qBAChB,CAAC,CAAC;gBACJ,CAAC,GACA,CACS,CACN,CACP,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const Details: (props: {
4
+ id: string;
5
+ allowEdit?: boolean;
6
+ }) => JSX.Element;
7
+ export default Details;
@@ -0,0 +1,50 @@
1
+ import "./index.less";
2
+ import { Form } from "@voplus/antd";
3
+ import { useMemberStore, } from "../../../../../../data/member";
4
+ import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
5
+ import { InlineEdit } from "@voplus/morpho-ui";
6
+ import React from "react";
7
+ import Scrollbars from "react-custom-scrollbars";
8
+ import moment from "moment";
9
+ import { observe } from "@voplus/morpho-ui";
10
+ const Details = (props) => {
11
+ const { id, allowEdit } = props;
12
+ // const member = useMember(id);
13
+ const member = {
14
+ id: id,
15
+ name: "股东名册",
16
+ guarantee: 20000,
17
+ since: "2020-01-19T09:20:30.072",
18
+ until: "2022-11-19T09:20:30.072",
19
+ };
20
+ const memberStore = useMemberStore();
21
+ return observe(() => (React.createElement(Scrollbars, null,
22
+ React.createElement(Form, { labelAlign: "left", labelCol: { span: 5 }, className: "company-information" },
23
+ React.createElement("h3", null, "Shares"),
24
+ React.createElement(React.Fragment, null,
25
+ React.createElement(Form.Item, { label: "Ordinary" },
26
+ React.createElement(InlineEdit, { defaultValue: member.guarantee, editable: allowEdit, content: (v) => React.createElement(React.Fragment, null, v.store.value || "Add Ordinary") })),
27
+ React.createElement(Form.Item, { label: "Preference" },
28
+ React.createElement(InlineEdit, { defaultValue: member.guarantee, editable: allowEdit, content: (v) => React.createElement(React.Fragment, null, v.store.value || "Add Preference") }))),
29
+ React.createElement("h3", null, "Period"),
30
+ React.createElement(React.Fragment, null,
31
+ React.createElement(Form.Item, { label: "Since" },
32
+ React.createElement(InlineEdit, { defaultValue: member === null || member === void 0 ? void 0 : member.since, content: (v) => (React.createElement("span", null, v ? moment(v.store.value).format("YYYY-MM-DD") : "Add Since")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
33
+ if ((member === null || member === void 0 ? void 0 : member.since) && moment(date).isSame(member === null || member === void 0 ? void 0 : member.since, "day"))
34
+ return;
35
+ memberStore.edit(id, { data: { Since: date }, error: "message" });
36
+ } })),
37
+ React.createElement(Form.Item, { label: "Until" },
38
+ React.createElement(InlineEdit, { defaultValue: member === null || member === void 0 ? void 0 : member.until, content: (v) => (React.createElement("span", null, v ? moment(v.store.value).format("YYYY-MM-DD") : "Add Until")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
39
+ if ((member === null || member === void 0 ? void 0 : member.until) && moment(date).isSame(member === null || member === void 0 ? void 0 : member.until, "day"))
40
+ return;
41
+ memberStore.edit(id, { data: { Until: date }, error: "message" });
42
+ } })))))));
43
+ /** hover edit Contact Info */
44
+ function inlineEdit(value, oldValue, option) {
45
+ // if (!value || value.trim() === oldValue) return;
46
+ memberStore.edit(id, { data: option, error: "message" });
47
+ }
48
+ };
49
+ export default Details;
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../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AE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAY,EAClC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CACf,kCAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,WAAW,CAAQ,CAC3E,EACD,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,SAAS,EACnB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;4BAChB,IAAI,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,KAAI,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,EAAE,KAAK,CAAC;gCAAE,OAAO;4BACvE,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;wBACnE,CAAC,GACA,CACS,CACI,CAEX,CACK,CACb,CAAC,CAAC;IAEH,8BAA8B;IAC9B,SAAS,UAAU,CAAC,KAAc,EAAE,QAAiB,EAAE,MAAsC;QAC5F,mDAAmD;QACnD,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAuC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC3F,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,12 +1,12 @@
1
- .member-share-transactions {
2
- padding: 15px 20px;
3
- :global {
4
- h3 {
5
- margin-bottom: 15px;
6
- color: #000;
7
- }
8
- .share-transactions-table {
9
- margin-bottom: 15px;
10
- }
11
- }
12
- }
1
+ .member-share-transactions {
2
+ padding: 15px 20px;
3
+ :global {
4
+ h3 {
5
+ margin-bottom: 15px;
6
+ color: #000;
7
+ }
8
+ .share-transactions-table {
9
+ margin-bottom: 15px;
10
+ }
11
+ }
12
+ }
@@ -1,8 +1,8 @@
1
- :global {
2
- .task-analytics-popover {
3
- .ant-popover-inner-content {
4
- display: flex;
5
- padding: 0;
6
- }
7
- }
8
- }
1
+ :global {
2
+ .task-analytics-popover {
3
+ .ant-popover-inner-content {
4
+ display: flex;
5
+ padding: 0;
6
+ }
7
+ }
8
+ }
@@ -1,6 +1,6 @@
1
- :global {
2
- .company-member-default-view {
3
- padding: 0 !important;
4
- overflow: hidden;
5
- }
6
- }
1
+ :global {
2
+ .company-member-default-view {
3
+ padding: 0 !important;
4
+ overflow: hidden;
5
+ }
6
+ }
@@ -1,41 +1,41 @@
1
- :global {
2
- .officer-item {
3
- position: relative;
4
- display: flex;
5
- justify-content: space-between;
6
- align-items: center;
7
- padding: 10px 20px;
8
-
9
- &::after {
10
- position: absolute;
11
- content: "";
12
- left: 20px;
13
- bottom: 0;
14
- right: 20px;
15
- border-bottom: 1px solid #f2f2f2;
16
- }
17
-
18
- .officer-info {
19
- flex: 1;
20
- margin-left: 10px;
21
-
22
- .title {
23
- font-weight: 500;
24
- }
25
-
26
- .officer-contact {
27
- color: rgba(0, 0, 0, 0.45);
28
-
29
- .svg-inline--fa {
30
- margin-right: 5px;
31
- }
32
- }
33
- }
34
-
35
- .appointment-date,
36
- .cease-date {
37
- font-size: 13px;
38
- line-height: 22px;
39
- }
40
- }
1
+ :global {
2
+ .officer-item {
3
+ position: relative;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ align-items: center;
7
+ padding: 10px 20px;
8
+
9
+ &::after {
10
+ position: absolute;
11
+ content: "";
12
+ left: 20px;
13
+ bottom: 0;
14
+ right: 20px;
15
+ border-bottom: 1px solid #f2f2f2;
16
+ }
17
+
18
+ .officer-info {
19
+ flex: 1;
20
+ margin-left: 10px;
21
+
22
+ .title {
23
+ font-weight: 500;
24
+ }
25
+
26
+ .officer-contact {
27
+ color: rgba(0, 0, 0, 0.45);
28
+
29
+ .svg-inline--fa {
30
+ margin-right: 5px;
31
+ }
32
+ }
33
+ }
34
+
35
+ .appointment-date,
36
+ .cease-date {
37
+ font-size: 13px;
38
+ line-height: 22px;
39
+ }
40
+ }
41
41
  }
@@ -1,12 +1,12 @@
1
- @import "~@voplus/antd/es/style/themes/default.less";
2
- :global {
3
- .officer-list-view {
4
- padding: 0 !important;
5
- .list-view-header .view-title {
6
- flex: 1;
7
- }
8
- aside {
9
- border-top: 0;
10
- }
11
- }
12
- }
1
+ @import "~@voplus/antd/es/style/themes/default.less";
2
+ :global {
3
+ .officer-list-view {
4
+ padding: 0 !important;
5
+ .list-view-header .view-title {
6
+ flex: 1;
7
+ }
8
+ aside {
9
+ border-top: 0;
10
+ }
11
+ }
12
+ }
@@ -1,44 +1,44 @@
1
- @import "~@voplus/morpho-theme/styles/index.less";
2
-
3
- :global {
4
- .officer-properties-view_content {
5
- display: flex;
6
- flex-direction: column;
7
- height: 100%;
8
- overflow: hidden;
9
- background-color: #fff;
10
-
11
- .officer-properties-view_header {
12
- position: relative;
13
- text-align: center;
14
- padding: 20px 0 10px 0;
15
- .officer-person-name {
16
- color: #000;
17
- font-size: 16px;
18
- font-weight: 500;
19
- padding-top: 12px;
20
- }
21
- .tool-bar {
22
- position: absolute;
23
- top: 20px;
24
- right: 20px;
25
- .delete {
26
- color: @delete-color;
27
- }
28
- }
29
- }
30
- .ant-tabs {
31
- height: 100%;
32
- .ant-tabs-nav {
33
- margin: 0 20px;
34
- }
35
- .company-information {
36
- padding: 15px 20px;
37
- h3 {
38
- margin-bottom: 15px;
39
- color: #000;
40
- }
41
- }
42
- }
43
- }
44
- }
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .officer-properties-view_content {
5
+ display: flex;
6
+ flex-direction: column;
7
+ height: 100%;
8
+ overflow: hidden;
9
+ background-color: #fff;
10
+
11
+ .officer-properties-view_header {
12
+ position: relative;
13
+ text-align: center;
14
+ padding: 20px 0 10px 0;
15
+ .officer-person-name {
16
+ color: #000;
17
+ font-size: 16px;
18
+ font-weight: 500;
19
+ padding-top: 12px;
20
+ }
21
+ .tool-bar {
22
+ position: absolute;
23
+ top: 20px;
24
+ right: 20px;
25
+ .delete {
26
+ color: @delete-color;
27
+ }
28
+ }
29
+ }
30
+ .ant-tabs {
31
+ height: 100%;
32
+ .ant-tabs-nav {
33
+ margin: 0 20px;
34
+ }
35
+ .company-information {
36
+ padding: 15px 20px;
37
+ h3 {
38
+ margin-bottom: 15px;
39
+ color: #000;
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
@@ -1,5 +1,5 @@
1
- :global {
2
- .transaction-type-filter {
3
- padding: 0 15px;
4
- }
5
- }
1
+ :global {
2
+ .transaction-type-filter {
3
+ padding: 0 15px;
4
+ }
5
+ }
@@ -1,6 +1,6 @@
1
- :global {
2
- .officer-default-view {
3
- padding: 0 !important;
4
- overflow: hidden;
5
- }
6
- }
1
+ :global {
2
+ .officer-default-view {
3
+ padding: 0 !important;
4
+ overflow: hidden;
5
+ }
6
+ }
@@ -1,67 +1,67 @@
1
- @import "../../../../../style/common.less";
2
-
3
- :global {
4
- .company-default-view {
5
- width: 100%;
6
- height: 100%;
7
- overflow: hidden;
8
-
9
- // background-color: #f2f2f2;
10
- .main-content-nav {
11
- .main-nav-container {
12
- box-shadow: none;
13
- }
14
-
15
- .company-title {
16
- padding: 10px;
17
- font-size: 18px;
18
- line-height: 20px;
19
- color: #000;
20
- font-weight: 500;
21
- display: flex;
22
- align-items: center;
23
-
24
- .company-name {
25
- flex: 1;
26
- overflow: hidden;
27
- text-overflow: ellipsis;
28
- white-space: nowrap;
29
- }
30
- }
31
-
32
- .company-menu{
33
- width: 290px !important;
34
- }
35
-
36
- .nav-item {
37
- padding: 0 16px 0 24px;
38
- }
39
- }
40
-
41
- .company-document-list {
42
- padding: 0;
43
- background-color: #fff;
44
-
45
- .list-view-header {
46
- justify-content: flex-end;
47
- }
48
- }
49
-
50
- .activity-log-view {
51
- background-color: #fff !important;
52
- margin: 0;
53
-
54
- .view-title {
55
- font-size: 20px;
56
- }
57
- }
58
-
59
- // .share-transaction-aside-content {
60
- // padding: 0;
61
- // .share-transaction-register-view {
62
- // margin: 0 0 0 1rem;
63
- // background-color: #fff;
64
- // }
65
- // }
66
- }
67
- }
1
+ @import "../../../../../style/common.less";
2
+
3
+ :global {
4
+ .company-default-view {
5
+ width: 100%;
6
+ height: 100%;
7
+ overflow: hidden;
8
+
9
+ // background-color: #f2f2f2;
10
+ .main-content-nav {
11
+ .main-nav-container {
12
+ box-shadow: none;
13
+ }
14
+
15
+ .company-title {
16
+ padding: 10px;
17
+ font-size: 18px;
18
+ line-height: 20px;
19
+ color: #000;
20
+ font-weight: 500;
21
+ display: flex;
22
+ align-items: center;
23
+
24
+ .company-name {
25
+ flex: 1;
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ white-space: nowrap;
29
+ }
30
+ }
31
+
32
+ .company-menu{
33
+ width: 290px !important;
34
+ }
35
+
36
+ .nav-item {
37
+ padding: 0 16px 0 24px;
38
+ }
39
+ }
40
+
41
+ .company-document-list {
42
+ padding: 0;
43
+ background-color: #fff;
44
+
45
+ .list-view-header {
46
+ justify-content: flex-end;
47
+ }
48
+ }
49
+
50
+ .activity-log-view {
51
+ background-color: #fff !important;
52
+ margin: 0;
53
+
54
+ .view-title {
55
+ font-size: 20px;
56
+ }
57
+ }
58
+
59
+ // .share-transaction-aside-content {
60
+ // padding: 0;
61
+ // .share-transaction-register-view {
62
+ // margin: 0 0 0 1rem;
63
+ // background-color: #fff;
64
+ // }
65
+ // }
66
+ }
67
+ }
@@ -1,11 +1,11 @@
1
- :global {
2
- .share-movements-data-popover {
3
- .ant-table-thead > tr > th,
4
- .ant-table-tbody > tr > td {
5
- padding: 10px 15px;
6
- }
7
- }
8
- .share-movements-data-icon {
9
- cursor: pointer;
10
- }
11
- }
1
+ :global {
2
+ .share-movements-data-popover {
3
+ .ant-table-thead > tr > th,
4
+ .ant-table-tbody > tr > td {
5
+ padding: 10px 15px;
6
+ }
7
+ }
8
+ .share-movements-data-icon {
9
+ cursor: pointer;
10
+ }
11
+ }