@voplus/morpho-csp 6.0.84 → 6.0.86

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 (96) hide show
  1. package/es/data/share-type/ShareTypeStore.d.ts +31 -0
  2. package/es/data/share-type/ShareTypeStore.js +118 -0
  3. package/es/data/share-type/ShareTypeStore.js.map +1 -0
  4. package/es/data/share-type/hook.d.ts +9 -0
  5. package/es/data/share-type/hook.js +19 -0
  6. package/es/data/share-type/hook.js.map +1 -0
  7. package/es/data/share-type/index.d.ts +5 -0
  8. package/es/data/share-type/index.js +6 -0
  9. package/es/data/share-type/index.js.map +1 -0
  10. package/es/data/share-type/interfaces.d.ts +10 -0
  11. package/es/data/share-type/interfaces.js +2 -0
  12. package/es/data/share-type/interfaces.js.map +1 -0
  13. package/es/data/share-type/share-type-events/index.d.ts +3 -0
  14. package/es/data/share-type/share-type-events/index.js +4 -0
  15. package/es/data/share-type/share-type-events/index.js.map +1 -0
  16. package/es/data/share-type/share-type-events/useAutoUpdateListData.d.ts +4 -0
  17. package/es/data/share-type/share-type-events/useAutoUpdateListData.js +13 -0
  18. package/es/data/share-type/share-type-events/useAutoUpdateListData.js.map +1 -0
  19. package/es/data/share-type/share-type-events/useOnDeleteShareType.d.ts +4 -0
  20. package/es/data/share-type/share-type-events/useOnDeleteShareType.js +16 -0
  21. package/es/data/share-type/share-type-events/useOnDeleteShareType.js.map +1 -0
  22. package/es/data/share-type/share-type-events/useOnNewShareType.d.ts +4 -0
  23. package/es/data/share-type/share-type-events/useOnNewShareType.js +16 -0
  24. package/es/data/share-type/share-type-events/useOnNewShareType.js.map +1 -0
  25. package/es/data/share-type/types.d.ts +31 -0
  26. package/es/data/share-type/types.js +2 -0
  27. package/es/data/share-type/types.js.map +1 -0
  28. package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.d.ts +2 -3
  29. package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.js +26 -29
  30. package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.js.map +1 -1
  31. package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreviewPopover/index.d.ts +7 -0
  32. package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreviewPopover/index.js +12 -0
  33. package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreviewPopover/index.js.map +1 -0
  34. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionCard/index.d.ts +7 -0
  35. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionCard/index.js +45 -0
  36. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionCard/index.js.map +1 -0
  37. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionCard/index.less +43 -0
  38. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js +2 -2
  39. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -1
  40. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js +10 -7
  41. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
  42. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.less +3 -0
  43. package/es/modules/corporate/company/share-transactions-register/components/VerifyConfirm/index.d.ts +7 -0
  44. package/es/modules/corporate/company/share-transactions-register/components/VerifyConfirm/index.js +14 -0
  45. package/es/modules/corporate/company/share-transactions-register/components/VerifyConfirm/index.js.map +1 -0
  46. package/es/modules/corporate/company/share-transactions-register/components/VerifyConfirm/index.less +9 -0
  47. package/es/modules/corporate/company/share-transactions-register/components/VerifyConfirmTable/index.d.ts +14 -0
  48. package/es/modules/corporate/company/share-transactions-register/components/VerifyConfirmTable/index.js +28 -0
  49. package/es/modules/corporate/company/share-transactions-register/components/VerifyConfirmTable/index.js.map +1 -0
  50. package/es/modules/corporate/share-type/components/NewShareTypeForm/ShareTypeForm.d.ts +17 -0
  51. package/es/modules/corporate/share-type/components/NewShareTypeForm/ShareTypeForm.js +51 -0
  52. package/es/modules/corporate/share-type/components/NewShareTypeForm/ShareTypeForm.js.map +1 -0
  53. package/es/modules/corporate/share-type/components/NewShareTypeForm/index.d.ts +10 -0
  54. package/es/modules/corporate/share-type/components/NewShareTypeForm/index.js +14 -0
  55. package/es/modules/corporate/share-type/components/NewShareTypeForm/index.js.map +1 -0
  56. package/es/modules/corporate/share-type/components/NewShareTypeForm/index.less +27 -0
  57. package/es/modules/corporate/share-type/components/NewShareTypeForm/state.d.ts +5 -0
  58. package/es/modules/corporate/share-type/components/NewShareTypeForm/state.js +26 -0
  59. package/es/modules/corporate/share-type/components/NewShareTypeForm/state.js.map +1 -0
  60. package/es/modules/corporate/share-type/components/ShareTypeHeader/index.d.ts +6 -0
  61. package/es/modules/corporate/share-type/components/ShareTypeHeader/index.js +16 -0
  62. package/es/modules/corporate/share-type/components/ShareTypeHeader/index.js.map +1 -0
  63. package/es/modules/corporate/share-type/components/ShareTypeHeader/index.less +12 -0
  64. package/es/modules/corporate/share-type/components/ShareTypeItem/index.d.ts +6 -0
  65. package/es/modules/corporate/share-type/components/ShareTypeItem/index.js +26 -0
  66. package/es/modules/corporate/share-type/components/ShareTypeItem/index.js.map +1 -0
  67. package/es/modules/corporate/share-type/components/ShareTypeItem/index.less +29 -0
  68. package/es/modules/corporate/share-type/components/ShareTypeList/index.d.ts +14 -0
  69. package/es/modules/corporate/share-type/components/ShareTypeList/index.js +45 -0
  70. package/es/modules/corporate/share-type/components/ShareTypeList/index.js.map +1 -0
  71. package/es/modules/corporate/share-type/components/ShareTypeList/index.less +11 -0
  72. package/es/modules/corporate/share-type/components/ShareTypeProperties/index.d.ts +21 -0
  73. package/es/modules/corporate/share-type/components/ShareTypeProperties/index.js +38 -0
  74. package/es/modules/corporate/share-type/components/ShareTypeProperties/index.js.map +1 -0
  75. package/es/modules/corporate/share-type/components/ShareTypeProperties/index.less +7 -0
  76. package/es/modules/corporate/share-type/components/ShareTypePropertiesView/index.d.ts +7 -0
  77. package/es/modules/corporate/share-type/components/ShareTypePropertiesView/index.js +16 -0
  78. package/es/modules/corporate/share-type/components/ShareTypePropertiesView/index.js.map +1 -0
  79. package/es/modules/corporate/share-type/components/ShareTypePropertiesView/index.less +35 -0
  80. package/es/modules/corporate/share-type/components/ShareTypeQuickViewDialog/index.d.ts +8 -0
  81. package/es/modules/corporate/share-type/components/ShareTypeQuickViewDialog/index.js +13 -0
  82. package/es/modules/corporate/share-type/components/ShareTypeQuickViewDialog/index.js.map +1 -0
  83. package/es/modules/corporate/share-type/components/ShareTypeQuickViewDialog/index.less +7 -0
  84. package/es/modules/corporate/share-type/components/ShareTypeTabs/index.d.ts +8 -0
  85. package/es/modules/corporate/share-type/components/ShareTypeTabs/index.js +53 -0
  86. package/es/modules/corporate/share-type/components/ShareTypeTabs/index.js.map +1 -0
  87. package/es/modules/corporate/share-type/components/ShareTypeTabs/index.less +8 -0
  88. package/es/modules/corporate/share-type/controls/ShareTypeMenu/index.d.ts +7 -0
  89. package/es/modules/corporate/share-type/controls/ShareTypeMenu/index.js +13 -0
  90. package/es/modules/corporate/share-type/controls/ShareTypeMenu/index.js.map +1 -0
  91. package/es/modules/corporate/share-type/pages/ShareTypeDefaultView/index.d.ts +4 -0
  92. package/es/modules/corporate/share-type/pages/ShareTypeDefaultView/index.js +24 -0
  93. package/es/modules/corporate/share-type/pages/ShareTypeDefaultView/index.js.map +1 -0
  94. package/es/modules/corporate/share-type/pages/ShareTypeDefaultView/index.less +17 -0
  95. package/package.json +1 -1
  96. /package/es/modules/corporate/company/share-transactions-register/components/{ShareTablePreview → ShareTablePreviewPopover}/index.less +0 -0
@@ -4,12 +4,13 @@ import React, { useState } from "react";
4
4
  import { observe, useRenderOnChange } from "@voplus/morpho-ui";
5
5
  import { useAutoUpdateListData, useDocumentStore } from "@voplus/morpho-document-core";
6
6
  import { useShareTransactionListEffect, useShareTransactionStore, } from "../../../../../../data/share-transaction";
7
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
7
8
  import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
8
9
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
9
10
  import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
10
11
  import { LoadingOutlined } from "@ant-design/icons";
11
12
  import PageHeader from "@voplus/morpho-ui/es/components/PageHeader";
12
- import ShareTransactionItem from "../ShareTransactionItem";
13
+ import ShareTransactionCard from "../ShareTransactionCard";
13
14
  import ShareTransactionPropertiesView from "../ShareTransactionPropertiesView";
14
15
  import { State } from "./state";
15
16
  import TransactionTypeFilter from "../../controls/TransactionTypeFilter";
@@ -21,6 +22,7 @@ import { useDeepMemo } from "@voplus/morpho-data";
21
22
  const ShareTransactionList = (props) => {
22
23
  const { shareTransactionId, corporateId, memberId, headerTitle } = props;
23
24
  const [shareTransactionTotal, setShareTransactionTotal] = useState(0);
25
+ const [asideContext] = useState(AsideContent.createContext());
24
26
  const shareStore = useShareTransactionStore();
25
27
  const documentStore = useDocumentStore();
26
28
  const corporateStore = useCorporateStore();
@@ -64,12 +66,13 @@ const ShareTransactionList = (props) => {
64
66
  }, moreFunBtn: toolBtns }));
65
67
  return (React.createElement(ListDataContext.Provider, { value: list },
66
68
  React.createElement("div", { className: styles["share-transaction-list"] },
67
- React.createElement(ListView, { headerProps: {
68
- header: header,
69
- sortable: false,
70
- addAble: false,
71
- }, propertiesView: (id) => React.createElement(ShareTransactionPropertiesView, { id: id }), renderItem: ({ item, index, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id },
72
- React.createElement(ShareTransactionItem, { id: item.id, connectDragSource: connectDragSource }))), moveAfter: moveAfter }),
69
+ React.createElement(AsideContent, { context: asideContext },
70
+ React.createElement(ListView, { className: "list-content", headerProps: {
71
+ header: header,
72
+ sortable: false,
73
+ addAble: false,
74
+ }, asideable: false, propertiesView: (id) => React.createElement(ShareTransactionPropertiesView, { id: id }), renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id },
75
+ React.createElement(ShareTransactionCard, { id: item.id }))), moveAfter: moveAfter })),
73
76
  state.addAble && (React.createElement("div", { className: "create-shareTransaction-form" },
74
77
  React.createElement(Input, { autoFocus: true, value: state.name, onChange: (e) => runInAction(() => (state.name = e.target.value)), placeholder: `Name of ${state.type} for ShareTransaction`, suffix: state.loading ? React.createElement(LoadingOutlined, null) : "", onPressEnter: onSave, onKeyDown: (e) => {
75
78
  if (e.key === "Escape")
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EACN,6BAA6B,EAC7B,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAElD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,8BAA8B,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAA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AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EACN,6BAA6B,EAC7B,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,8BAA8B,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,o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:global {
9
+ .list-content {
10
+ background-color: @background-color;
11
+ }
9
12
  .create-shareTransaction-form {
10
13
  padding: 10px 20px;
11
14
  border-top: 1px solid @border-color-base;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { IVerification } from "@voplus/morpho-org/es/modules/verification/VerificationInformation/VerificationStore";
3
+ import "./index.less";
4
+ declare const VerifyConfirm: (props: {
5
+ verification: IVerification;
6
+ }) => React.JSX.Element;
7
+ export default VerifyConfirm;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { Badge, Popover } from "antd";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import VerifyConfirmTable from "../VerifyConfirmTable";
5
+ import "./index.less";
6
+ const VerifyConfirm = (props) => {
7
+ const { verification } = props;
8
+ return observe(() => {
9
+ var _a, _b;
10
+ return (React.createElement(Popover, { content: React.createElement(VerifyConfirmTable, { data: verification }), overlayStyle: { width: "600px" }, placement: "leftTop" }, ((_a = verification === null || verification === void 0 ? void 0 : verification.confirmedBy) === null || _a === void 0 ? void 0 : _a.id) ? (React.createElement(Badge, { status: "success" })) : ((_b = verification === null || verification === void 0 ? void 0 : verification.verifiedBy) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement(Badge, { status: "default" })) : (React.createElement(Badge, { color: "#fff", className: "verification-empty-badge" }))));
11
+ });
12
+ };
13
+ export default VerifyConfirm;
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/VerifyConfirm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AAEvD,OAAO,cAAc,CAAC;AAEtB,MAAM,aAAa,GAAG,CAAC,KAAsC,EAAE,EAAE;IAChE,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAE/B,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,OAAO,IACP,OAAO,EAAE,oBAAC,kBAAkB,IAAC,IAAI,EAAE,YAAY,GAAI,EACnD,YAAY,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAChC,SAAS,EAAC,SAAS,IAGlB,CAAA,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,WAAW,0CAAE,EAAE,EAAC,CAAC,CAAC,CAChC,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,GAAG,CAC1B,CAAC,CAAC,CAAC,CAAA,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,0CAAE,EAAE,EAAC,CAAC,CAAC,CAClC,oBAAC,KAAK,IAAC,MAAM,EAAC,SAAS,GAAG,CAC1B,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IAAC,KAAK,EAAC,MAAM,EAAC,SAAS,EAAC,0BAA0B,GAAG,CAC3D,CACQ,CACV,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,9 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .verification-empty-badge {
5
+ .ant-badge-status-dot {
6
+ border: solid 1px @title-icon-color;
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { IVerification } from "@voplus/morpho-org/es/modules/verification/VerificationInformation/VerificationStore";
3
+ export type IDate = {
4
+ verification: string;
5
+ date: string;
6
+ by: {
7
+ id: string;
8
+ name: string;
9
+ };
10
+ };
11
+ declare const VerifyConfirmTable: (props: {
12
+ data: IVerification;
13
+ }) => React.JSX.Element;
14
+ export default VerifyConfirmTable;
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ import { Table } from "antd";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
5
+ const VerifyConfirmTable = (props) => {
6
+ const { data } = props;
7
+ const verification = [];
8
+ if (data.confirmedBy.id)
9
+ verification.push({ verification: "Confirmed", date: data.confirmedOn, by: data.confirmedBy });
10
+ if (data.verifiedBy.id)
11
+ verification.push({ verification: "Verified", date: data.verifiedOn, by: data.verifiedBy });
12
+ const columns = [
13
+ { title: "Verification", dataIndex: "verification" },
14
+ {
15
+ title: "Date",
16
+ dataIndex: "date",
17
+ render: (_, { date }) => React.createElement(UTCShortDate, { value: date }),
18
+ },
19
+ {
20
+ title: "By",
21
+ dataIndex: "by",
22
+ render: (_, { by }) => by.name,
23
+ },
24
+ ];
25
+ return observe(() => (React.createElement(Table, { columns: columns, rowKey: "verification", dataSource: verification, pagination: false })));
26
+ };
27
+ export default VerifyConfirmTable;
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/VerifyConfirmTable/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,4CAA4C,CAAC;AAKtE,MAAM,kBAAkB,GAAG,CAAC,KAA8B,EAAE,EAAE;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEvB,MAAM,YAAY,GAAY,EAAE,CAAC;IACjC,IAAI,IAAI,CAAC,WAAW,CAAC,EAAE;QACtB,YAAY,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAChG,IAAI,IAAI,CAAC,UAAU,CAAC,EAAE;QACrB,YAAY,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IAE7F,MAAM,OAAO,GAAuB;QACnC,EAAE,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE;QACpD;YACC,KAAK,EAAE,MAAM;YACb,SAAS,EAAE,MAAM;YACjB,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,oBAAC,YAAY,IAAC,KAAK,EAAE,IAAI,GAAI;SACtD;QACD;YACC,KAAK,EAAE,IAAI;YACX,SAAS,EAAE,IAAI;YACf,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI;SAC9B;KACD,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAC,cAAc,EAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,GAAI,CAC9F,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ export type NewShareTypeFormProps = {
4
+ corporateId: string;
5
+ type?: "full" | "mini";
6
+ showView?: boolean;
7
+ className?: string;
8
+ onCancel?: () => void;
9
+ onSave?: (data?: any) => void;
10
+ };
11
+ declare const NewShareTypeFormContent: {
12
+ (props: NewShareTypeFormProps): React.JSX.Element;
13
+ defaultProps: {
14
+ type: string;
15
+ };
16
+ };
17
+ export default NewShareTypeFormContent;
@@ -0,0 +1,51 @@
1
+ import React, { useState } from "react";
2
+ import { State } from "./state";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
5
+ import { Form, Row, Space, Button } from "antd";
6
+ import { useShareTypeStore } from "../../../../../data/share-type";
7
+ import ShareTypePropertiesView from "../ShareTypePropertiesView";
8
+ import OfficeSelect from "@voplus/morpho-org/es/modules/office/components/OfficeSelect";
9
+ import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
10
+ import classnames from "classnames";
11
+ import "./index.less";
12
+ const NewShareTypeFormContent = (props) => {
13
+ const store = useShareTypeStore();
14
+ const asideContext = useAsideContentContext();
15
+ const [state] = useState(new State());
16
+ const content = observe(() => (React.createElement("div", { className: classnames("new-share-type-form", { "sub-share-type-simply-form": props.type === "mini" }, props.className) },
17
+ React.createElement(Form, { layout: "vertical" },
18
+ React.createElement(Form.Item, { name: "Office", label: "Office" },
19
+ React.createElement(OfficeSelect, { onChange: (office) => (state.officeId = office === null || office === void 0 ? void 0 : office.id) })),
20
+ props.type === "mini" && (React.createElement(Row, { className: "share-type-form-btn", justify: "end" },
21
+ React.createElement(Space, null,
22
+ React.createElement(Button, { onClick: onCancel }, "Cancel"),
23
+ React.createElement(Button, { type: "primary", loading: state.loading, onClick: onSave }, "Submit"))))))));
24
+ return observe(() => (React.createElement(React.Fragment, null, props.type === "full" ? (React.createElement(AddFormView, { title: "Add Virtual Address", loading: !!state.loading, onCancel: onCancel, onSubmit: onSave }, content)) : (content))));
25
+ async function onSave() {
26
+ var _a;
27
+ state.loading = true;
28
+ const res = await store.create({
29
+ data: { CorporateId: props.corporateId, OfficeId: state.officeId },
30
+ error: "message",
31
+ });
32
+ (_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props);
33
+ state.loading = false;
34
+ if (props.showView && res)
35
+ return asideContext.openAside(React.createElement(ShareTypePropertiesView, { id: res.id }), {
36
+ span: 12,
37
+ });
38
+ }
39
+ // cancel add virtual address
40
+ function onCancel() {
41
+ var _a;
42
+ if (props.showView)
43
+ return asideContext.closeAside();
44
+ (_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
45
+ }
46
+ };
47
+ NewShareTypeFormContent.defaultProps = {
48
+ type: "full",
49
+ };
50
+ export default NewShareTypeFormContent;
51
+ //# sourceMappingURL=ShareTypeForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShareTypeForm.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-type/components/NewShareTypeForm/ShareTypeForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,YAAY,MAAM,8DAA8D,CAAC;AACxF,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAYtB,MAAM,uBAAuB,GAAG,CAAC,KAA4B,EAAE,EAAE;IAChE,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC9C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAC7B,6BACC,SAAS,EAAE,UAAU,CACpB,qBAAqB,EACrB,EAAE,4BAA4B,EAAE,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,EACvD,KAAK,CAAC,SAAS,CACf;QAED,oBAAC,IAAI,IA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;QACjB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACtB,IAAI,KAAK,CAAC,QAAQ,IAAI,GAAG;YACxB,OAAO,YAAa,CAAC,SAAS,CAAC,oBAAC,uBAAuB,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE;gBACvE,IAAI,EAAE,EAAE;aACR,CAAC,CAAC;IACL,CAAC;IAED,6BAA6B;IAC7B,SAAS,QAAQ;;QAChB,IAAI,KAAK,CAAC,QAAQ;YAAE,OAAO,YAAa,CAAC,UAAU,EAAE,CAAC;QACtD,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,uBAAuB,CAAC,YAAY,GAAG;IACtC,IAAI,EAAE,MAAM;CACZ,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { NewShareTypeFormProps } from "./ShareTypeForm";
3
+ declare const NewShareTypeFormDialog: {
4
+ (props: NewShareTypeFormProps): React.JSX.Element;
5
+ defaultProps: {
6
+ type: string;
7
+ showSubmit: boolean;
8
+ };
9
+ };
10
+ export default NewShareTypeFormDialog;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import Content from "./ShareTypeForm";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { Modal } from "antd";
5
+ const NewShareTypeFormDialog = (props) => {
6
+ return observe(() => (React.createElement(Modal, { title: "New Share Type Form Dialog", open: true, closable: false, footer: null, onCancel: props.onCancel },
7
+ React.createElement(Content, { ...props }))));
8
+ };
9
+ NewShareTypeFormDialog.defaultProps = {
10
+ type: "mini",
11
+ showSubmit: true,
12
+ };
13
+ export default NewShareTypeFormDialog;
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-type/components/NewShareTypeForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,OAAkC,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAE7B,MAAM,sBAAsB,GAAG,CAAC,KAA4B,EAAE,EAAE;IAC/D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,KAAK,EAAC,4BAA4B,EAClC,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,CAAC,QAAQ;QAExB,oBAAC,OAAO,OAAK,KAAK,GAAI,CACf,CACR,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG;IACrC,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,IAAI;CAChB,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,27 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .new-share-type-form {
5
+ &.sub-share-type-more-form {
6
+ padding: 0 20px;
7
+
8
+ .ant-form-item {
9
+ margin-bottom: 15px;
10
+ }
11
+ }
12
+
13
+ &.sub-share-type-simply-form {
14
+ flex: none;
15
+ padding-bottom: 10px;
16
+ // border-top: #f2f2f2 solid 1px;
17
+
18
+ .ant-form-item {
19
+ margin-bottom: 10px;
20
+ }
21
+ }
22
+
23
+ .share-type-form-btn {
24
+ margin-top: 10px;
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,5 @@
1
+ export declare class State {
2
+ constructor();
3
+ loading: boolean;
4
+ officeId: string;
5
+ }
@@ -0,0 +1,26 @@
1
+ import { __decorate } from "tslib";
2
+ import { makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ Object.defineProperty(this, "loading", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: false
10
+ });
11
+ Object.defineProperty(this, "officeId", {
12
+ enumerable: true,
13
+ configurable: true,
14
+ writable: true,
15
+ value: void 0
16
+ });
17
+ makeObservable(this);
18
+ }
19
+ }
20
+ __decorate([
21
+ observable
22
+ ], State.prototype, "loading", void 0);
23
+ __decorate([
24
+ observable
25
+ ], State.prototype, "officeId", void 0);
26
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-type/components/NewShareTypeForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlD,MAAM,OAAO,KAAK;IACjB;QAGmB;;;;mBAAU,KAAK;WAAC;QAChB;;;;;WAAiB;QAHnC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAGD;AAFmB;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;uCAAyB"}
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const ShareTypeHeader: (props: {
4
+ id: string;
5
+ }) => React.JSX.Element;
6
+ export default ShareTypeHeader;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { useShareType } from "../../../../../data/share-type";
4
+ import ShareTypeMenu from "../../controls/ShareTypeMenu";
5
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
6
+ import "./index.less";
7
+ const ShareTypeHeader = (props) => {
8
+ const id = props.id;
9
+ const shareType = useShareType(id);
10
+ return observe(() => (React.createElement("div", { className: "share-type-header" },
11
+ React.createElement("div", null, shareType.name),
12
+ React.createElement(ToolBar, { showMenu: false, id: id },
13
+ React.createElement(ShareTypeMenu, { id: id, closeAside: true })))));
14
+ };
15
+ export default ShareTypeHeader;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-type/components/ShareTypeHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,cAAc,CAAC;AAEtB,MAAM,eAAe,GAAG,CAAC,KAAqB,EAAE,EAAE;IACjD,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IAEnC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,mBAAmB;QACjC,iCAAM,SAAS,CAAC,IAAI,CAAO;QAC3B,oBAAC,OAAO,IAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;YAE/B,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CAClC,CACL,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,12 @@
1
+ :global {
2
+ .share-type-header {
3
+ font-size: 24px;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ padding: 10px 20px;
7
+
8
+ .tools-bar {
9
+ text-align: right;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const ShareTypeItem: (props: {
4
+ id: string;
5
+ }) => React.JSX.Element;
6
+ export default ShareTypeItem;
@@ -0,0 +1,26 @@
1
+ import React, { useState } from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
4
+ import { useShareType } from "../../../../../data/share-type";
5
+ import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
6
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
7
+ import ShareTypeMenu from "../../controls/ShareTypeMenu";
8
+ import PropertiesView from "../ShareTypePropertiesView";
9
+ import ShareTypeQuickViewDialog from "../ShareTypeQuickViewDialog";
10
+ import classnames from "classnames";
11
+ import "./index.less";
12
+ const ShareTypeItem = (props) => {
13
+ const { id } = props;
14
+ const shareType = useShareType(id);
15
+ const [hover, setHover] = useState(false);
16
+ return observe(() => (React.createElement(ItemFunction, { className: "share-type-item", onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(PropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(ShareTypeQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
17
+ React.createElement(ColumnItem, { className: "share-type-column-item" },
18
+ React.createElement(ColumnItemCol, { span: 20, label: "Address" },
19
+ React.createElement("div", { className: "share-type-item-name" })),
20
+ React.createElement(ColumnItemCol, { span: 4, align: "flex-end" },
21
+ React.createElement("div", { className: classnames("share-type-item-tool", { show: hover }) },
22
+ React.createElement(ToolBar, { showMenu: false, id: id },
23
+ React.createElement(ShareTypeMenu, { id: id, closeAside: true }))))))));
24
+ };
25
+ export default ShareTypeItem;
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-type/components/ShareTypeItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OA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B,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CAClC,CACL,CACS,CACJ,CACC,CACf,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,29 @@
1
+ :global {
2
+ .share-type-item {
3
+ cursor: pointer;
4
+
5
+ &:hover {
6
+ background-color: #f5f8fd;
7
+ }
8
+
9
+ :global {
10
+ .share-type-item-name {
11
+ color: #575757;
12
+ font-weight: 500;
13
+ word-break: break-all;
14
+ }
15
+
16
+ .share-type-item-tool {
17
+ display: none;
18
+
19
+ &.show {
20
+ display: block;
21
+ }
22
+ }
23
+
24
+ .share-type-column-item {
25
+ padding: 7px 20px;
26
+ }
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ export type ShareTypeListProps = {
4
+ corporateId: string;
5
+ /** title */
6
+ viewTitle?: React.ReactNode;
7
+ };
8
+ declare const ShareTypeList: {
9
+ (props: ShareTypeListProps): React.JSX.Element;
10
+ defaultProps: {
11
+ viewTitle: string;
12
+ };
13
+ };
14
+ export default ShareTypeList;
@@ -0,0 +1,45 @@
1
+ import React, { useState } from "react";
2
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
3
+ import { useAutoUpdateListData, useShareTypeListEffect, } from "../../../../../data/share-type";
4
+ import { useRenderOnChange, observe } from "@voplus/morpho-ui";
5
+ import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
6
+ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
7
+ import ShareTypeForm from "../NewShareTypeForm/ShareTypeForm";
8
+ import NewShareTypeFormDialog from "../NewShareTypeForm";
9
+ import ShareTypeItem from "../ShareTypeItem";
10
+ import "./index.less";
11
+ const ShareTypeList = (props) => {
12
+ const { corporateId, viewTitle } = props;
13
+ const [addAble, setAddAble] = useState(false);
14
+ const view = useViewContext();
15
+ const list = useCreateListDataState({
16
+ filterDefaults: {
17
+ filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: corporateId }],
18
+ },
19
+ }, [corporateId]);
20
+ useAutoUpdateListData(list, (d) => d.parentId === corporateId);
21
+ useRenderOnChange(() => list.filters.options);
22
+ useShareTypeListEffect(list, (result, total) => {
23
+ list.union(result);
24
+ }, {
25
+ Total: false,
26
+ ...list.filters.options,
27
+ });
28
+ return observe(() => {
29
+ return (React.createElement(ListDataContext.Provider, { value: list },
30
+ React.createElement(ListView, { className: "share-type-list-view", headerProps: {
31
+ viewTitle: viewTitle,
32
+ sortable: false,
33
+ quickSearch: true,
34
+ onAdd: () => ((view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" || (view === null || view === void 0 ? void 0 : view.Type) === "QuickView") &&
35
+ setAddAble(!addAble),
36
+ }, formViewTitle: "Add Virtual Address", formView: (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" &&
37
+ (view === null || view === void 0 ? void 0 : view.Type) !== "QuickView" && React.createElement(ShareTypeForm, { showView: true, corporateId: corporateId }), renderItem: ({ item, index }) => (React.createElement(ShareTypeItem, { key: item.id, id: item.id })) }),
38
+ addAble && (React.createElement(NewShareTypeFormDialog, { corporateId: corporateId, onCancel: () => setAddAble(false), onSave: () => setAddAble(false) }))));
39
+ });
40
+ };
41
+ ShareTypeList.defaultProps = {
42
+ viewTitle: "Virtual Address List",
43
+ };
44
+ export default ShareTypeList;
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-type/components/ShareTypeList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EACN,qBAAqB,EAErB,sBAAsB,GACtB,MAAM,gCAAgC,CAAC;A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-view {
3
+ padding: 0 !important;
4
+ .list-view-header .view-title {
5
+ flex: 1;
6
+ }
7
+ aside {
8
+ border-top: 0;
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ export type ShareTypePropertiesName = "Address";
4
+ declare const ShareTypeProperties: {
5
+ (props: {
6
+ id: string;
7
+ headerVisible?: boolean;
8
+ ShareTypeTitle?: string;
9
+ ShareTypeProperties?: {
10
+ name: ShareTypePropertiesName;
11
+ visible?: boolean;
12
+ }[];
13
+ }): React.JSX.Element;
14
+ defaultProps: {
15
+ ShareTypeTitle: string;
16
+ ShareTypeProperties: {
17
+ name: string;
18
+ }[];
19
+ };
20
+ };
21
+ export default ShareTypeProperties;
@@ -0,0 +1,38 @@
1
+ import React from "react";
2
+ import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
3
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
4
+ import { Scrollbars } from "react-custom-scrollbars-2";
5
+ import { useShareType, useShareTypeStore } from "../../../../../data/share-type";
6
+ import { observe } from "@voplus/morpho-ui";
7
+ import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
8
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
9
+ import Prop from "@voplus/morpho-ui/es/controls/Prop";
10
+ import ShareTypeMenu from "../../controls/ShareTypeMenu";
11
+ import "./index.less";
12
+ const ShareTypeProperties = (props) => {
13
+ /** 加class name 为了方便做integration tests */
14
+ const classId = "share-type-properties";
15
+ const { id, headerVisible, ShareTypeTitle, ShareTypeProperties } = props;
16
+ const shareType = useShareType(id, { reload: true });
17
+ const store = useShareTypeStore();
18
+ const filterPro = ShareTypeProperties === null || ShareTypeProperties === void 0 ? void 0 : ShareTypeProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
19
+ return observe(() => (React.createElement("div", { className: "properties-list share-type-properties-list" },
20
+ headerVisible && (React.createElement("div", { className: "properties-header" },
21
+ React.createElement("div", { className: "title" }, shareType.name),
22
+ React.createElement(ToolBar, { id: id, showMenu: false },
23
+ React.createElement(ShareTypeMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })))),
24
+ React.createElement(Scrollbars, { autoHide: true },
25
+ React.createElement(PropertiesSection, { title: ShareTypeTitle, 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)))) })))));
26
+ function renderProp(item) {
27
+ switch (item.name) {
28
+ case "Address":
29
+ return React.createElement(React.Fragment, null);
30
+ }
31
+ }
32
+ };
33
+ ShareTypeProperties.defaultProps = {
34
+ ShareTypeTitle: "Virtual Address Properties",
35
+ ShareTypeProperties: [{ name: "Address" }],
36
+ };
37
+ export default ShareTypeProperties;
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-type/components/ShareTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,cAAc,CAAC;AAItB,MAAM,mBAAmB,GAAG,CAAC,KAK5B,EAAE,EAAE;IACJ,yC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