@voplus/morpho-csp 9.0.1 → 9.0.2
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.
|
@@ -3,13 +3,13 @@ import { observe } from "@voplus/morpho-ui";
|
|
|
3
3
|
import { Checkbox } from "antd";
|
|
4
4
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
5
5
|
import { State } from "./state";
|
|
6
|
-
import { faUsersSolid, faUserSolid, faUserVneckSolid, faUserTagSolid } from "@voplus/morpho-ui/es/faIcons";
|
|
6
|
+
import { faUsersSolid, faUserSolid, faUserVneckSolid, faUserTagSolid, } from "@voplus/morpho-ui/es/faIcons";
|
|
7
7
|
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
8
8
|
import MemberListInCorporateSelect from "../../modules/corporate/company/member-register/components/MemberListInCorporateSelect";
|
|
9
9
|
import OfficerListInCorporateSelect from "../../modules/corporate/company/officer-register/components/OfficerListInCorporateSelect";
|
|
10
10
|
import SubUnitList from "@voplus/morpho-org/es/components/ListInContactSelect";
|
|
11
11
|
import UnitTree from "@voplus/morpho-org/es/components/UnitTree";
|
|
12
|
-
import SelectDialog from "@voplus/morpho-org/es/
|
|
12
|
+
import SelectDialog from "@voplus/morpho-org/es/controls/SelectDialog";
|
|
13
13
|
const CorporateUnitSelectDialog = (props) => {
|
|
14
14
|
const context = useApplicationContext();
|
|
15
15
|
const [state] = useState(new State(props.defaultSelection, props.multiSelect, props.defaultSelected));
|
|
@@ -37,7 +37,7 @@ const CorporateUnitSelectDialog = (props) => {
|
|
|
37
37
|
icon: React.createElement(FAIcon, { icon: faUserTagSolid }),
|
|
38
38
|
isLeaf: true,
|
|
39
39
|
},
|
|
40
|
-
], defaultSelectedKeys: [state.current], onSelect: (id) => state.onExpand(id) }), listView: React.createElement(Checkbox.Group, { value: (_a = state === null || state === void 0 ? void 0 : state.selectedLists) === null || _a === void 0 ? void 0 : _a.map((u) => u.id) }, state.current === "members" ? (React.createElement(MemberListInCorporateSelect, { corporateId: props.corporateId, selectedLists: state.selectedLists, onSelectCorporateUnit: (item) => state.selectOrDeleteItem(item) })) : state.current === "officers" ? (React.createElement(OfficerListInCorporateSelect, { corporateId: props.corporateId, selectedLists: state.selectedLists, onSelectCorporateUnit: (item) => state.selectOrDeleteItem(item) })) : (React.createElement(SubUnitList, { addAble: true, unitSelectAdd: true, parentId: state.id, type: props.type, filterType: state.filterType, selectedLists: state.selectedLists, maxSelections: props.maxSelections, onSelectUnit: (item) => state.selectOrDeleteItem(item), isShowParentItem: state.id === "c896a84e-b31a-4d10-a181-5d34a21b172d" }))), handleCancel: () => state.handleCancel(), handleOk: () => state.handleOk(), selectedLists: state.selectedLists, title: props.title, maxSelections: props.maxSelections, onClear: () => (state.selectedLists = []),
|
|
40
|
+
], defaultSelectedKeys: [state.current], onSelect: (id) => state.onExpand(id) }), listView: React.createElement(Checkbox.Group, { value: (_a = state === null || state === void 0 ? void 0 : state.selectedLists) === null || _a === void 0 ? void 0 : _a.map((u) => u.id) }, state.current === "members" ? (React.createElement(MemberListInCorporateSelect, { corporateId: props.corporateId, selectedLists: state.selectedLists, onSelectCorporateUnit: (item) => state.selectOrDeleteItem(item) })) : state.current === "officers" ? (React.createElement(OfficerListInCorporateSelect, { corporateId: props.corporateId, selectedLists: state.selectedLists, onSelectCorporateUnit: (item) => state.selectOrDeleteItem(item) })) : (React.createElement(SubUnitList, { addAble: true, unitSelectAdd: true, parentId: state.id, type: props.type, filterType: state.filterType, selectedLists: state.selectedLists, maxSelections: props.maxSelections, onSelectUnit: (item) => state.selectOrDeleteItem(item), isShowParentItem: state.id === "c896a84e-b31a-4d10-a181-5d34a21b172d" }))), handleCancel: () => state.handleCancel(), handleOk: () => state.handleOk(), selectedLists: state.selectedLists, title: props.title, maxSelections: props.maxSelections, onClear: () => (state.selectedLists = []), deselectNode: (item) => state.deselectUnit(item) }));
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
43
|
CorporateUnitSelectDialog.defaultProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CorporateUnitSelectDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAA6B,MAAM,SAAS,CAAC;AAC3D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CorporateUnitSelectDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAA6B,MAAM,SAAS,CAAC;AAC3D,OAAO,EACN,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,cAAc,GACd,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,2BAA2B,MAAM,wFAAwF,CAAC;AACjI,OAAO,4BAA4B,MAAM,0FAA0F,CAAC;AACpI,OAAO,WAAW,MAAM,sDAAsD,CAAC;AAC/E,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,YAAY,MAAM,6CAA6C,CAAC;AAEvE,MAAM,yBAAyB,GAAG,CAAC,KAAgC,EAAE,EAAE;IACtE,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,MAAM,CAA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