@voplus/morpho-csp 1.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/CorporateUnitSelectDialog/index.d.ts +12 -0
- package/es/components/CorporateUnitSelectDialog/index.js +33 -0
- package/es/components/CorporateUnitSelectDialog/index.js.map +1 -0
- package/es/components/CorporateUnitSelectDialog/index.less +36 -0
- package/es/components/CorporateUnitSelectDialog/state.d.ts +65 -0
- package/es/components/CorporateUnitSelectDialog/state.js +263 -0
- package/es/components/CorporateUnitSelectDialog/state.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/index.d.ts +10 -0
- package/es/components/CorporateUnitSortableTree/index.js +87 -0
- package/es/components/CorporateUnitSortableTree/index.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/state.d.ts +62 -0
- package/es/components/CorporateUnitSortableTree/state.js +220 -0
- package/es/components/CorporateUnitSortableTree/state.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/index.d.ts +3 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/index.js +22 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/index.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.d.ts +4 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.js +84 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.less +319 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.d.ts +3 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js +21 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.less +4 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.d.ts +4 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.js +23 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.d.ts +3 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.js +58 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.less +45 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.d.ts +3 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.js +73 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.less +12 -0
- package/es/data/share-certificate/ShareCertificateStore.d.ts +6 -0
- package/es/data/share-certificate/ShareCertificateStore.js +22 -0
- package/es/data/share-certificate/ShareCertificateStore.js.map +1 -1
- package/es/data/share-certificate/interfaces.d.ts +13 -0
- package/es/data/share-certificate/types.d.ts +2 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.d.ts +6 -2
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.js +10 -5
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.less +9 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.d.ts +10 -4
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js +37 -11
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.less +15 -12
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/state.d.ts +1 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/state.js +9 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/state.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.d.ts +6 -2
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js +13 -6
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.less +8 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.d.ts +9 -4
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js +34 -8
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/state.d.ts +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerList/state.js +9 -0
- package/es/modules/corporate/company/officer-register/components/OfficerList/state.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js +31 -4
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.less +16 -5
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +18 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js +4 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.js +22 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js +22 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.d.ts +2 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js +3 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.d.ts +3 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js +53 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.less +53 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +3 -3
- package/es/routes.d.ts +6 -0
- package/es/routes.js +13 -0
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { Children, cloneElement } from "react";
|
|
2
|
+
import styles from "./tree-node-renderer.less";
|
|
3
|
+
const FileThemeTreeNodeRenderer = (props) => {
|
|
4
|
+
const { children, listIndex, swapFrom, swapLength, swapDepth, scaffoldBlockPxWidth, lowerSiblingCounts, connectDropTarget, isOver, draggedNode, canDrop, treeIndex, treeId, // Delete from otherProps
|
|
5
|
+
getPrevRow, // Delete from otherProps
|
|
6
|
+
node, // Delete from otherProps
|
|
7
|
+
path, // Delete from otherProps
|
|
8
|
+
rowDirection, ...otherProps } = props;
|
|
9
|
+
return connectDropTarget(React.createElement("div", { ...otherProps, className: styles.node }, Children.map(children, (child) => cloneElement(child, {
|
|
10
|
+
isOver,
|
|
11
|
+
canDrop,
|
|
12
|
+
draggedNode,
|
|
13
|
+
lowerSiblingCounts,
|
|
14
|
+
listIndex,
|
|
15
|
+
swapFrom,
|
|
16
|
+
swapLength,
|
|
17
|
+
swapDepth,
|
|
18
|
+
}))));
|
|
19
|
+
};
|
|
20
|
+
export default FileThemeTreeNodeRenderer;
|
|
21
|
+
//# sourceMappingURL=tree-node-renderer.js.map
|
package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-node-renderer.js","sourceRoot":"","sources":["../../../../../src/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAa,YAAY,EAAE,MAAM,OAAO,CAAC;AAIjE,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAE/C,MAAM,yBAAyB,GAAiB,CAAC,KAAwB,EAAE,EAAE;IAC5E,MAAM,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,OAAO,EACP,SAAS,EACT,MAAM,EAAE,yBAAyB;IACjC,UAAU,EAAE,yBAAyB;IACrC,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE,yBAAyB;IAC/B,YAAY,EACZ,GAAG,UAAU,EACb,GAAG,KAAK,CAAC;IACV,OAAO,iBAAiB,CACvB,gCAAS,UAAU,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,IACzC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CACjC,YAAY,CAAC,KAAK,EAAE;QACnB,MAAM;QACN,OAAO;QACP,WAAW;QACX,kBAAkB;QAClB,SAAS;QACT,QAAQ;QACR,UAAU;QACV,SAAS;KACT,CAAC,CACF,CACI,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Can override the following:
|
|
2
|
+
//
|
|
3
|
+
// style: PropTypes.shape({}),
|
|
4
|
+
// innerStyle: PropTypes.shape({}),
|
|
5
|
+
// reactVirtualizedListProps: PropTypes.shape({}),
|
|
6
|
+
// scaffoldBlockPxWidth: PropTypes.number,
|
|
7
|
+
// slideRegionSize: PropTypes.number,
|
|
8
|
+
// rowHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
|
|
9
|
+
// treeNodeRenderer: PropTypes.func,
|
|
10
|
+
// nodeContentRenderer: PropTypes.func,
|
|
11
|
+
// placeholderRenderer: PropTypes.func,
|
|
12
|
+
import "@voplus/react-sortable-tree/style.css";
|
|
13
|
+
import nodeContentRenderer from "./node-content-renderer";
|
|
14
|
+
import treeNodeRenderer from "./tree-node-renderer";
|
|
15
|
+
const SortableTreeUnitTheme = {
|
|
16
|
+
nodeContentRenderer,
|
|
17
|
+
treeNodeRenderer,
|
|
18
|
+
scaffoldBlockPxWidth: 44,
|
|
19
|
+
rowHeight: 85,
|
|
20
|
+
slideRegionSize: 50,
|
|
21
|
+
};
|
|
22
|
+
export default SortableTreeUnitTheme;
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,8BAA8B;AAC9B,mCAAmC;AACnC,kDAAkD;AAClD,0CAA0C;AAC1C,qCAAqC;AACrC,sEAAsE;AACtE,oCAAoC;AACpC,uCAAuC;AACvC,uCAAuC;AAEvC,OAAO,uCAAuC,CAAC;AAG/C,OAAO,mBAAmB,MAAM,yBAAyB,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AAEpD,MAAM,qBAAqB,GAAe;IACzC,mBAAmB;IACnB,gBAAgB;IAChB,oBAAoB,EAAE,EAAE;IACxB,SAAS,EAAE,EAAE;IACb,eAAe,EAAE,EAAE;CACnB,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { Spin } from "@voplus/antd";
|
|
4
|
+
import UnitItem from "@voplus/morpho-org/es/components/UnitItem";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
import { faBars } from "@fortawesome/pro-light-svg-icons";
|
|
7
|
+
import styles from "./node-content-renderer.less";
|
|
8
|
+
/**
|
|
9
|
+
* Check if a node is a descendant of another node.
|
|
10
|
+
*
|
|
11
|
+
* @param {!Object} older - Potential ancestor of younger node
|
|
12
|
+
* @param {!Object} younger - Potential descendant of older node
|
|
13
|
+
*
|
|
14
|
+
* @return {boolean}
|
|
15
|
+
*/
|
|
16
|
+
function isDescendant(older, younger) {
|
|
17
|
+
return (!!older.children &&
|
|
18
|
+
typeof older.children !== "function" &&
|
|
19
|
+
older.children.some((child) => child === younger || isDescendant(child, younger)));
|
|
20
|
+
}
|
|
21
|
+
const FileThemeNodeContentRenderer = (props) => {
|
|
22
|
+
const { scaffoldBlockPxWidth, toggleChildrenVisibility, connectDragPreview, connectDragSource, isDragging, canDrop, canDrag, node, title, subtitle, draggedNode, path, treeIndex, isSearchMatch, isSearchFocus, icons, buttons, className, style, didDrop, lowerSiblingCounts, listIndex, swapFrom, swapLength, swapDepth, treeId, // Not needed, but preserved for other renderers
|
|
23
|
+
isOver, // Not needed, but preserved for other renderers
|
|
24
|
+
parentNode, // Needed for dndManager
|
|
25
|
+
rowDirection, ...otherProps } = props;
|
|
26
|
+
const [isHover, setIsHover] = useState(false);
|
|
27
|
+
const isDraggedDescendant = draggedNode && isDescendant(draggedNode, node);
|
|
28
|
+
const isLandingPadActive = !didDrop && isDragging;
|
|
29
|
+
const buttonStyle = { left: -0.5 * scaffoldBlockPxWidth };
|
|
30
|
+
const handle = (React.createElement(React.Fragment, null, canDrag && (React.createElement(React.Fragment, null, node.childrenListLoading && node.expanded ? (
|
|
31
|
+
// Show a loading symbol on the handle when the children are expanded
|
|
32
|
+
React.createElement("div", { className: styles["doc-moveHandle"] },
|
|
33
|
+
React.createElement(Spin, null))) : (
|
|
34
|
+
// Show the handle used to initiate a drag-and-drop
|
|
35
|
+
connectDragSource(React.createElement("div", { className: styles["doc-moveHandle"] },
|
|
36
|
+
React.createElement(FAIcon, { icon: faBars })), {
|
|
37
|
+
dropEffect: "copy",
|
|
38
|
+
}))))));
|
|
39
|
+
return (React.createElement("div", { style: { height: "100%" }, className: styles["theme-nodeContent"], ...otherProps },
|
|
40
|
+
toggleChildrenVisibility &&
|
|
41
|
+
node.children &&
|
|
42
|
+
(node.children.length > 0 || typeof node.children === "function") && (React.createElement("div", null,
|
|
43
|
+
React.createElement("button", { type: "button", "aria-label": node.expanded ? "Collapse" : "Expand", className: classnames(node.expanded ? "rst__collapseButton" : "rst__expandButton"), style: buttonStyle, onClick: () => toggleChildrenVisibility({
|
|
44
|
+
node,
|
|
45
|
+
path,
|
|
46
|
+
treeIndex,
|
|
47
|
+
}) }),
|
|
48
|
+
node.expanded && !isDragging && (React.createElement("div", { style: { width: scaffoldBlockPxWidth }, className: classnames("rst__lineChildren") })))),
|
|
49
|
+
React.createElement("div", { className: classnames("rst__rowWrapper") }, connectDragPreview(React.createElement("div", { className: classnames("doc-row", isLandingPadActive && "rst__rowLandingPad", isLandingPadActive && !canDrop && "rst__rowCancelPad", isSearchMatch && "rst__rowSearchMatch", isSearchFocus && "rst__rowSearchFocus", className), style: {
|
|
50
|
+
opacity: isDraggedDescendant ? 0.5 : 1,
|
|
51
|
+
...style,
|
|
52
|
+
} },
|
|
53
|
+
handle,
|
|
54
|
+
React.createElement("div", { className: classnames("doc-rowContents", !canDrag && "rst__rowContentsDragDisabled") },
|
|
55
|
+
React.createElement(UnitItem, { id: node.id, type: "tree", className: "unit-tree-item" })))))));
|
|
56
|
+
};
|
|
57
|
+
export default FileThemeNodeContentRenderer;
|
|
58
|
+
//# sourceMappingURL=node-content-renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-content-renderer.js","sourceRoot":"","sources":["../../../../../src/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,MAAM,MAAM,8BAA8B,CAAC;AAElD;;;;;;;GAOG;AACH,SAAS,YAAY,CAAC,KAAU,EAAE,OAAY;IAC7C,OAAO,CACN,CAAC,CAAC,KAAK,CAAC,QAAQ;QAChB,OAAO,KAAK,CAAC,QAAQ,KAAK,UAAU;QACpC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,KAAK,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CACtF,CAAC;AACH,CAAC;AAED,MAAM,4BAA4B,GAAiB,CAAC,KAAwB,EAAE,EAAE;IAC/E,MAAM,EACL,oBAAoB,EACpB,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,SAAS,EACT,aAAa,EACb,aAAa,EACb,KAAK,EACL,OAAO,EACP,SAAS,EACT,KAAK,EACL,OAAO,EACP,kBAAkB,EAClB,SAAS,EACT,QAAQ,EAC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+
:global {
|
|
3
|
+
.rst__collapseButton,
|
|
4
|
+
.rst__expandButton {
|
|
5
|
+
box-shadow: 0 0 0 1px #cccccc;
|
|
6
|
+
}
|
|
7
|
+
.rst__lineChildren::after {
|
|
8
|
+
background-color: #cccccc;
|
|
9
|
+
}
|
|
10
|
+
.doc-row {
|
|
11
|
+
height: 100%;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
display: flex;
|
|
14
|
+
border: solid #bbb 1px;
|
|
15
|
+
box-shadow: 0 2px 2px -2px;
|
|
16
|
+
padding: 0 5px 0 10px;
|
|
17
|
+
border-radius: 2px;
|
|
18
|
+
.doc-rowContents {
|
|
19
|
+
position: relative;
|
|
20
|
+
height: 100%;
|
|
21
|
+
min-width: 230px;
|
|
22
|
+
flex: 1 0 auto;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
.unit-tree-item {
|
|
29
|
+
min-width: 100%;
|
|
30
|
+
margin: 0;
|
|
31
|
+
border-bottom: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.doc-moveHandle {
|
|
37
|
+
width: 20px;
|
|
38
|
+
font-size: 20px;
|
|
39
|
+
color: #ccc;
|
|
40
|
+
cursor: move;
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
z-index: 1;
|
|
45
|
+
}
|
package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React, { Children, cloneElement } from "react";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
import styles from "./tree-node-renderer.less";
|
|
4
|
+
const FileThemeTreeNodeRenderer = (props) => {
|
|
5
|
+
const { children, listIndex, swapFrom, swapLength, swapDepth, scaffoldBlockPxWidth, lowerSiblingCounts, connectDropTarget, isOver, draggedNode, canDrop, treeIndex, treeId, // Delete from otherProps
|
|
6
|
+
getPrevRow, // Delete from otherProps
|
|
7
|
+
node, // Delete from otherProps
|
|
8
|
+
path, // Delete from otherProps
|
|
9
|
+
rowDirection, ...otherProps } = props;
|
|
10
|
+
// Construct the scaffold representing the structure of the tree
|
|
11
|
+
const scaffoldBlockCount = lowerSiblingCounts.length;
|
|
12
|
+
const scaffold = [];
|
|
13
|
+
lowerSiblingCounts.forEach((lowerSiblingCount, i) => {
|
|
14
|
+
let lineClass = "";
|
|
15
|
+
if (lowerSiblingCount > 0) {
|
|
16
|
+
// At this level in the tree, the nodes had sibling nodes further down
|
|
17
|
+
if (listIndex === 0) {
|
|
18
|
+
// Top-left corner of the tree
|
|
19
|
+
lineClass = "rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom";
|
|
20
|
+
}
|
|
21
|
+
else if (i === scaffoldBlockCount - 1) {
|
|
22
|
+
// Last scaffold block in the row, right before the row content
|
|
23
|
+
lineClass = "rst__lineHalfHorizontalRight rst__lineFullVertical";
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
// Simply connecting the line extending down to the next sibling on this level
|
|
27
|
+
lineClass = "rst__lineFullVertical";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
else if (listIndex === 0) {
|
|
31
|
+
// Top-left corner of the tree, but has no siblings
|
|
32
|
+
lineClass = "rst__lineHalfHorizontalRight";
|
|
33
|
+
}
|
|
34
|
+
else if (i === scaffoldBlockCount - 1) {
|
|
35
|
+
// The last or only node in this level of the tree
|
|
36
|
+
lineClass = "rst__lineHalfVerticalTop rst__lineHalfHorizontalRight";
|
|
37
|
+
}
|
|
38
|
+
scaffold.push(React.createElement("div", { key: `pre_${1 + i}`, style: { width: scaffoldBlockPxWidth }, className: classnames("rst__lineBlock", lineClass) }));
|
|
39
|
+
if (treeIndex !== listIndex && i === swapDepth) {
|
|
40
|
+
// This row has been shifted, and is at the depth of
|
|
41
|
+
// the line pointing to the new destination
|
|
42
|
+
let highlightLineClass = "";
|
|
43
|
+
if (listIndex === swapFrom + swapLength - 1) {
|
|
44
|
+
// This block is on the bottom (target) line
|
|
45
|
+
// This block points at the target block (where the row will go when released)
|
|
46
|
+
highlightLineClass = "rst__highlightBottomLeftCorner";
|
|
47
|
+
}
|
|
48
|
+
else if (treeIndex === swapFrom) {
|
|
49
|
+
// This block is on the top (source) line
|
|
50
|
+
highlightLineClass = "rst__highlightTopLeftCorner";
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
// This block is between the bottom and top
|
|
54
|
+
highlightLineClass = "rst__highlightLineVertical";
|
|
55
|
+
}
|
|
56
|
+
const style = {
|
|
57
|
+
width: scaffoldBlockPxWidth,
|
|
58
|
+
left: scaffoldBlockPxWidth * i,
|
|
59
|
+
};
|
|
60
|
+
scaffold.push(React.createElement("div", { key: i, style: style, className: classnames("rst__absoluteLineBlock", highlightLineClass) }));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const style = { left: scaffoldBlockPxWidth * scaffoldBlockCount };
|
|
64
|
+
return connectDropTarget(React.createElement("div", { ...otherProps, className: classnames("rst__node", styles["documenet-node"]) },
|
|
65
|
+
scaffold,
|
|
66
|
+
React.createElement("div", { className: "rst__nodeContent", style: style }, Children.map(children, (child) => cloneElement(child, {
|
|
67
|
+
isOver,
|
|
68
|
+
canDrop,
|
|
69
|
+
draggedNode,
|
|
70
|
+
})))));
|
|
71
|
+
};
|
|
72
|
+
export default FileThemeTreeNodeRenderer;
|
|
73
|
+
//# sourceMappingURL=tree-node-renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-node-renderer.js","sourceRoot":"","sources":["../../../../../src/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGt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YACN,OAAO;YACP,WAAW;SACX,CAAC,CACF,CACI,CACD,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.less
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.documenet-node {
|
|
2
|
+
:global {
|
|
3
|
+
.rst__lineHalfHorizontalRight::before,
|
|
4
|
+
.rst__lineFullVertical::after,
|
|
5
|
+
.rst__lineHalfVerticalTop::after,
|
|
6
|
+
.rst__lineHalfVerticalBottom::after {
|
|
7
|
+
position: absolute;
|
|
8
|
+
content: "";
|
|
9
|
+
background-color: #cccccc !important;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { CreateShareCertificateOptions, EditShareCertificateOptions, IShareCertificate } from ".";
|
|
2
2
|
import { DocumentStore, DocumentTypeStore, LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
|
|
3
3
|
import { ApiEndPoint } from "@voplus/api";
|
|
4
|
+
import { StoreActionOptions } from "@voplus/morpho-data";
|
|
4
5
|
/** ShareCertificate store provides service for shareCertificate operations */
|
|
5
6
|
export declare class ShareCertificateStore extends DocumentTypeStore<IShareCertificate, LoadDocumentOptions, LoadDocumentListOptions, CreateShareCertificateOptions, EditShareCertificateOptions, any> {
|
|
6
7
|
/** Name of the store */
|
|
7
8
|
readonly name: string;
|
|
8
9
|
constructor(endpoint: ApiEndPoint, documents: DocumentStore);
|
|
10
|
+
sharecertSign(id: string, options: {
|
|
11
|
+
image: string;
|
|
12
|
+
} & StoreActionOptions): Promise<void>;
|
|
13
|
+
sendSignees(id: string, options: StoreActionOptions): Promise<void>;
|
|
14
|
+
sendShareholder(id: string, options: StoreActionOptions): Promise<void>;
|
|
9
15
|
}
|
|
10
16
|
/** React hook to retrieve ShareCertificateStore */
|
|
11
17
|
export declare const useShareCertificateStore: () => ShareCertificateStore;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DocumentTypeStore, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
2
|
+
import { RequestBuilder } from "@voplus/api";
|
|
2
3
|
import { useService } from "@voplus/morpho-data";
|
|
3
4
|
const StoreName = "ShareCertificateStore";
|
|
4
5
|
/** ShareCertificate store provides service for shareCertificate operations */
|
|
@@ -13,6 +14,27 @@ export class ShareCertificateStore extends DocumentTypeStore {
|
|
|
13
14
|
value: StoreName
|
|
14
15
|
});
|
|
15
16
|
}
|
|
17
|
+
async sharecertSign(id, options) {
|
|
18
|
+
await this.action(async () => {
|
|
19
|
+
const r = await this.endpoint.post(`/api/csp/shares/certificates/${id}/sign`, new RequestBuilder().json(JSON.stringify(options.image)));
|
|
20
|
+
const t = await r.json();
|
|
21
|
+
this._documents.items.overwrite(t.id, t);
|
|
22
|
+
}, options);
|
|
23
|
+
}
|
|
24
|
+
async sendSignees(id, options) {
|
|
25
|
+
await this.action(async () => {
|
|
26
|
+
const r = await this.endpoint.post(`/api/csp/shares/certificates/${id}/send-signees`);
|
|
27
|
+
const t = await r.json();
|
|
28
|
+
this._documents.items.overwrite(t.id, t);
|
|
29
|
+
}, options);
|
|
30
|
+
}
|
|
31
|
+
async sendShareholder(id, options) {
|
|
32
|
+
await this.action(async () => {
|
|
33
|
+
const r = await this.endpoint.post(`/api/csp/shares/certificates/${id}/send-shareholders`);
|
|
34
|
+
const t = await r.json();
|
|
35
|
+
this._documents.items.overwrite(t.id, t);
|
|
36
|
+
}, options);
|
|
37
|
+
}
|
|
16
38
|
}
|
|
17
39
|
/** React hook to retrieve ShareCertificateStore */
|
|
18
40
|
export const useShareCertificateStore = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShareCertificateStore.js","sourceRoot":"","sources":["../../../src/data/share-certificate/ShareCertificateStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShareCertificateStore.js","sourceRoot":"","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,EAAE,CAAC;YACzB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAC1C,CAAC,EAAE,OAAO,CAAC,CAAC;IACb,CAAC;IAEM,KAAK,CAAC,eAAe,CAAC,EAAU,EAAE,OAA2B;QACnE,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAC5B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,gCAAgC,EAAE,oBAAoB,CAAC,CAAC;YAC3F,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;YACzB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAC1C,CAAC,EAAE,OAAO,CAAC,CAAC;IACb,CAAC;CACD;AAED,mDAAmD;AACnD,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE;IAC5C,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,UAAU,CAChB,SAAS,EACT,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,qBAAqB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CAC9E,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -19,4 +19,17 @@ export interface IShareCertificate extends IDocument {
|
|
|
19
19
|
id: string;
|
|
20
20
|
name: string;
|
|
21
21
|
};
|
|
22
|
+
signee1: {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
signee2: {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
signature1: string;
|
|
31
|
+
signature1Date: string;
|
|
32
|
+
signature2: string;
|
|
33
|
+
signature2Date: string;
|
|
34
|
+
verifyURL: string;
|
|
22
35
|
}
|
package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.d.ts
CHANGED
|
@@ -4,7 +4,11 @@ declare const CompanyMemberItem: (props: {
|
|
|
4
4
|
id: string;
|
|
5
5
|
/** index of member list */
|
|
6
6
|
index: number;
|
|
7
|
-
className?: string;
|
|
8
|
-
quickView?: boolean;
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
quickView?: boolean | undefined;
|
|
9
|
+
checked?: boolean | undefined;
|
|
10
|
+
/** 是否在 selectDialog 中显示 */
|
|
11
|
+
selectDialog?: boolean | undefined;
|
|
12
|
+
onSelectCorporateUnit?: ((params?: any) => void) | undefined;
|
|
9
13
|
}) => JSX.Element;
|
|
10
14
|
export default CompanyMemberItem;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
3
|
import { Badge, Skeleton } from "@voplus/antd";
|
|
4
|
-
import { faCalendar, faEnvelope, faPhone } from "@fortawesome/pro-light-svg-icons";
|
|
4
|
+
import { faCalendar, faEnvelope, faPhone, faCheck } from "@fortawesome/pro-light-svg-icons";
|
|
5
5
|
import { observe } from "@voplus/morpho-ui";
|
|
6
6
|
import { useMember, useMemberStore } from "../../../../../../data/member";
|
|
7
7
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
@@ -14,7 +14,7 @@ import classnames from "classnames";
|
|
|
14
14
|
import moment from "moment";
|
|
15
15
|
import styles from "./index.less";
|
|
16
16
|
const CompanyMemberItem = (props) => {
|
|
17
|
-
const { id, index, quickView } = props;
|
|
17
|
+
const { id, index, quickView, selectDialog, checked } = props;
|
|
18
18
|
const [isHover, setIsHover] = useState(false);
|
|
19
19
|
const [visible, setVisible] = useState(false);
|
|
20
20
|
const member = useMember(id);
|
|
@@ -24,7 +24,11 @@ const CompanyMemberItem = (props) => {
|
|
|
24
24
|
const phone = (_a = member.phone) !== null && _a !== void 0 ? _a : (_b = member.contact) === null || _b === void 0 ? void 0 : _b.phone;
|
|
25
25
|
const email = (_c = member.email) !== null && _c !== void 0 ? _c : (_d = member.contact) === null || _d === void 0 ? void 0 : _d.email;
|
|
26
26
|
return (React.createElement(React.Fragment, null,
|
|
27
|
-
React.createElement("div", { className: styles["member-item"], onMouseOver: () => setIsHover(true), onMouseLeave: () => setIsHover(false), onClick: () =>
|
|
27
|
+
React.createElement("div", { className: styles["member-item"], onMouseOver: () => setIsHover(true), onMouseLeave: () => setIsHover(false), onClick: () => {
|
|
28
|
+
var _a;
|
|
29
|
+
quickView && setVisible(true);
|
|
30
|
+
(_a = props.onSelectCorporateUnit) === null || _a === void 0 ? void 0 : _a.call(props, member);
|
|
31
|
+
} }, member.loading ? (React.createElement(Skeleton, { avatar: true, paragraph: { rows: 1 } })) : (React.createElement(React.Fragment, null,
|
|
28
32
|
React.createElement(CompanyMemberAvatar, { id: member.id, index: index, size: "large" }),
|
|
29
33
|
React.createElement("div", { className: "member-info" },
|
|
30
34
|
React.createElement("div", { className: "title" }, (_f = (_e = member.identity) === null || _e === void 0 ? void 0 : _e.fullName) !== null && _f !== void 0 ? _f : (_g = member.contact) === null || _g === void 0 ? void 0 : _g.name),
|
|
@@ -42,10 +46,11 @@ const CompanyMemberItem = (props) => {
|
|
|
42
46
|
phone)),
|
|
43
47
|
React.createElement(ShareTransactionsDataIcon, { id: member.id }))),
|
|
44
48
|
React.createElement("div", { className: classnames("member-item-identity", { hide: isHover }) }, !member.identity && React.createElement(Badge, { status: "warning", text: "Need Identity Info" })),
|
|
45
|
-
React.createElement("div", { className: classnames("member-item-tool", { show: isHover }), onClick: (e) => e.stopPropagation() },
|
|
49
|
+
!selectDialog && (React.createElement("div", { className: classnames("member-item-tool", { show: isHover }), onClick: (e) => e.stopPropagation() },
|
|
46
50
|
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
47
51
|
React.createElement(Open, { url: `/member/${id}` }),
|
|
48
|
-
React.createElement(CompanyMemberMenu, { id: id, unitId: member.contact.id, store: store, closeAside: true }))))
|
|
52
|
+
React.createElement(CompanyMemberMenu, { id: id, unitId: member.contact.id, store: store, closeAside: true })))),
|
|
53
|
+
checked && React.createElement(FAIcon, { icon: faCheck, className: classnames("icon-check") })))),
|
|
49
54
|
visible && (React.createElement(CompanyMemberQuickView, { id: id, visible: true, onCancel: () => setVisible(false) }))));
|
|
50
55
|
});
|
|
51
56
|
};
|
package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;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1,3 +1,5 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
|
|
1
3
|
.member-item {
|
|
2
4
|
position: relative;
|
|
3
5
|
display: flex;
|
|
@@ -12,6 +14,7 @@
|
|
|
12
14
|
right: 20px;
|
|
13
15
|
border-bottom: 1px solid #f2f2f2;
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
:global {
|
|
16
19
|
.member-info {
|
|
17
20
|
flex: 1;
|
|
@@ -50,5 +53,10 @@
|
|
|
50
53
|
font-size: 13px;
|
|
51
54
|
line-height: 22px;
|
|
52
55
|
}
|
|
56
|
+
|
|
57
|
+
.icon-check {
|
|
58
|
+
font-size: 18px;
|
|
59
|
+
color: @primary-color;
|
|
60
|
+
}
|
|
53
61
|
}
|
|
54
|
-
}
|
|
62
|
+
}
|
package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ICompanyMember } from "../../../../../../data/member";
|
|
2
3
|
import "./index.less";
|
|
3
4
|
declare const CompanyMemberList: (props: {
|
|
4
|
-
membersRegisterId
|
|
5
|
-
corporateId
|
|
6
|
-
allowEdit?: boolean;
|
|
7
|
-
|
|
5
|
+
membersRegisterId?: string | undefined;
|
|
6
|
+
corporateId?: string | undefined;
|
|
7
|
+
allowEdit?: boolean | undefined;
|
|
8
|
+
/** 是否在 selectDialog 中显示 */
|
|
9
|
+
selectDialog?: boolean | undefined;
|
|
10
|
+
/** 选中的 Corporate Unit list */
|
|
11
|
+
selectedLists?: ICompanyMember[] | undefined;
|
|
12
|
+
onRedirect?: (() => void) | undefined;
|
|
13
|
+
onSelectCorporateUnit?: ((params?: any) => void) | undefined;
|
|
8
14
|
}) => JSX.Element;
|
|
9
15
|
export default CompanyMemberList;
|
|
@@ -20,17 +20,14 @@ import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialo
|
|
|
20
20
|
import PageHeader from "@voplus/morpho-ui/es/components/PageHeader";
|
|
21
21
|
import "./index.less";
|
|
22
22
|
const CompanyMemberList = (props) => {
|
|
23
|
-
const { membersRegisterId, corporateId, allowEdit } = props;
|
|
23
|
+
const { membersRegisterId, corporateId, allowEdit, selectDialog } = props;
|
|
24
24
|
const [memberTotal, setMemberTotal] = useState(0);
|
|
25
25
|
const view = useViewContext();
|
|
26
26
|
const memberStore = useMemberStore();
|
|
27
27
|
const corporateStore = useCorporateStore();
|
|
28
28
|
const list = useCreateListDataState({
|
|
29
29
|
filterDefaults: {
|
|
30
|
-
filters:
|
|
31
|
-
{ c: "ParentNodeId", o: "=", l: "And", v1: membersRegisterId },
|
|
32
|
-
{ c: "Status", o: "=", l: "And", v1: "Active" },
|
|
33
|
-
],
|
|
30
|
+
filters: filters(),
|
|
34
31
|
},
|
|
35
32
|
}, [membersRegisterId]);
|
|
36
33
|
const state = useDeepMemo(() => new State(), [membersRegisterId]);
|
|
@@ -53,14 +50,43 @@ const CompanyMemberList = (props) => {
|
|
|
53
50
|
onFilter: onFilter,
|
|
54
51
|
} }));
|
|
55
52
|
return (React.createElement(ListDataContext.Provider, { value: list },
|
|
56
|
-
React.createElement(ListView, { headerProps:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
React.createElement(ListView, { headerProps: props.selectDialog
|
|
54
|
+
? {
|
|
55
|
+
filterViewProps: {
|
|
56
|
+
columns: [React.createElement(MemberStatusFilter, { key: "MemberStatusFilter" })],
|
|
57
|
+
},
|
|
58
|
+
viewTitle: " ",
|
|
59
|
+
addAble: false,
|
|
60
|
+
sortable: false,
|
|
61
|
+
quickSearch: true,
|
|
62
|
+
}
|
|
63
|
+
: {
|
|
64
|
+
header: header,
|
|
65
|
+
sortable: false,
|
|
66
|
+
addAble: false,
|
|
67
|
+
}, renderItem: ({ item, index }) => (React.createElement(DocumentItemFrame, { key: item.id },
|
|
68
|
+
React.createElement(CompanyMemberItem, { id: item.id, index: index, selectDialog: selectDialog, quickView: (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView", checked: state.checkMemberId === item.id, onSelectCorporateUnit: (member) => onCheckItem(member) }))), asideable: !selectDialog, propertiesView: (id) => (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" && (React.createElement(CompanyMemberPropertiesView, { id: id, allowEdit: allowEdit })), className: "member-list-view" }),
|
|
62
69
|
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => runInAction(() => (state.addAble = false)) }))));
|
|
63
70
|
});
|
|
71
|
+
function filters() {
|
|
72
|
+
let filter = [];
|
|
73
|
+
if (membersRegisterId) {
|
|
74
|
+
filter = [
|
|
75
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: membersRegisterId },
|
|
76
|
+
{ c: "Status", o: "=", l: "And", v1: "Active" },
|
|
77
|
+
];
|
|
78
|
+
}
|
|
79
|
+
if (selectDialog && corporateId) {
|
|
80
|
+
filter.push({ c: "CorporateId", o: "=", l: "And", v1: corporateId });
|
|
81
|
+
}
|
|
82
|
+
return filter;
|
|
83
|
+
}
|
|
84
|
+
function onCheckItem(member) {
|
|
85
|
+
var _a;
|
|
86
|
+
/** 已选中的再次click时取消选中状态 */
|
|
87
|
+
state.checkMemberId = state.checkMemberId === member.id ? "" : member.id;
|
|
88
|
+
(_a = props.onSelectCorporateUnit) === null || _a === void 0 ? void 0 : _a.call(props, member);
|
|
89
|
+
}
|
|
64
90
|
function onFilter(context) {
|
|
65
91
|
context.paging.Page = 1;
|
|
66
92
|
context.filter();
|
package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAkB,mBAAmB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAkB,mBAAmB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EA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