@voplus/morpho-workspace 1.3.95 → 1.3.96
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.
@@ -9,6 +9,7 @@ const WorkTypeSelect = (props) => {
|
|
9
9
|
const [timer, setTimer] = useState();
|
10
10
|
const list = useCreateListDataState({
|
11
11
|
filterDefaults: {
|
12
|
+
includes: "workspace",
|
12
13
|
filters: [{ c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Requester"]) }],
|
13
14
|
},
|
14
15
|
}, []);
|
@@ -16,7 +17,12 @@ const WorkTypeSelect = (props) => {
|
|
16
17
|
list.union(result);
|
17
18
|
setWorkTypeData(result);
|
18
19
|
}, list.filters.options);
|
19
|
-
return observe(() => (React.createElement(Select, { showSearch: true, style: { width: "100%", ...style }, loading: list.loading, filterOption: false, placeholder: "Select WorkType", onSearch: onSearch, onChange: handleChange }, workTypeData.map((item) =>
|
20
|
+
return observe(() => (React.createElement(Select, { showSearch: true, style: { width: "100%", ...style }, loading: list.loading, filterOption: false, placeholder: "Select WorkType", onSearch: onSearch, onChange: handleChange }, workTypeData.map((item) => {
|
21
|
+
var _a;
|
22
|
+
return (React.createElement(Select.Option, { key: item.id, value: item.id },
|
23
|
+
React.createElement("div", null, item.name),
|
24
|
+
React.createElement("div", { style: { color: "#00000073", fontSize: "12px" } }, (_a = item.workspace) === null || _a === void 0 ? void 0 : _a.name)));
|
25
|
+
}))));
|
20
26
|
function onSearch(val) {
|
21
27
|
if (timer)
|
22
28
|
clearTimeout(timer);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAa,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,cA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