@voplus/morpho-workspace 6.0.141 → 6.0.143
Sign up to get free protection for your applications and to get access to all the features.
- package/es/modules/tasks/components/TaskEstimatedTime/index.js +3 -2
- package/es/modules/tasks/components/TaskEstimatedTime/index.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/state.d.ts +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/state.js +4 -3
- package/es/modules/tasks/components/TaskEstimatedTime/state.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.d.ts +0 -1
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js +5 -11
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.d.ts +4 -2
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.js +30 -23
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.less +60 -0
- package/es/modules/work/work-schedule/components/WorkScheduleListCard/index.js +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleListCard/index.js.map +1 -1
- package/package.json +1 -1
@@ -3,6 +3,7 @@ import { Button, DatePicker, InputNumber, Popover } from "antd";
|
|
3
3
|
import { State } from "./state";
|
4
4
|
import { faHourglassEnd, faHourglassStart, faStopwatch } from "@fortawesome/pro-light-svg-icons";
|
5
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
6
|
+
import { utcdayjs } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
6
7
|
import { observe } from "@voplus/morpho-ui";
|
7
8
|
import { runInAction } from "mobx";
|
8
9
|
import { useTaskStore } from "@voplus/morpho-document-core";
|
@@ -35,8 +36,8 @@ const TaskEstimatedTime = (props) => {
|
|
35
36
|
React.createElement(DatePicker.RangePicker, { autoFocus: true, format: "YYYY-MM-DD",
|
36
37
|
// disabledDate={disabledDate}
|
37
38
|
allowEmpty: [true, true], value: [
|
38
|
-
state.startDate ?
|
39
|
-
state.dueDate ?
|
39
|
+
state.startDate ? utcdayjs(state.startDate) : undefined,
|
40
|
+
state.dueDate ? utcdayjs(state.dueDate) : undefined,
|
40
41
|
], onChange: state.changeSchedule })),
|
41
42
|
React.createElement("div", { className: "task-time-popover_footer" },
|
42
43
|
React.createElement(Button, { type: "link", className: "remove", onClick: () => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAAE,KAAK,EAA0B,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACjG,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,CAAC;AAEtB,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3B,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAE,EAAE;IAC3D,MAAM,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtF,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,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
/** edit estimatedHours */
|
33
33
|
changeEstimatedHours: (value: number) => void;
|
34
34
|
/** edit schedule */
|
35
|
-
changeSchedule: (
|
35
|
+
changeSchedule: (dates: any) => void;
|
36
36
|
get dateFormat(): "DD MMM YYYY" | "DD MMM";
|
37
37
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { action, computed, makeObservable, observable } from "mobx";
|
3
|
+
import { forceUTC } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
3
4
|
import { message } from "antd";
|
4
5
|
import dayjs from "dayjs";
|
5
6
|
export class State {
|
@@ -108,9 +109,9 @@ export class State {
|
|
108
109
|
enumerable: true,
|
109
110
|
configurable: true,
|
110
111
|
writable: true,
|
111
|
-
value: (
|
112
|
-
this.startDate =
|
113
|
-
this.dueDate =
|
112
|
+
value: (dates) => {
|
113
|
+
this.startDate = dates ? forceUTC(dates[0]) : undefined;
|
114
|
+
this.dueDate = dates ? forceUTC(dates[1]) : undefined;
|
114
115
|
this.estimatedHours = 0;
|
115
116
|
}
|
116
117
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,OAAO,KAAK;IAiBjB,YAA2B,SAAoB;QAA5B;;;;mBAA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AsC;AAE9B;IAAlB,UAAU;iCAAgB;AAER;IAAlB,UAAU;wCAAyD;AAEjD;IAAlB,UAAU;sCAAuD;AAE/C;IAAlB,UAAU;6CAA2B;AAEnB;IAAlB,UAAU;gDAA8B;AAEtB;IAAlB,UAAU;sCAAwB;AAEhB;IAAlB,UAAU;sCAAwB;AAQ5B;IADN,MAAM;qCAqBL;AAGK;IADN,MAAM;mDAKL;AAGK;IADN,MAAM;6CAKL;AAGF;IADC,QAAQ;uCAGR"}
|
@@ -12,17 +12,18 @@ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
12
12
|
import UnitReference from "@voplus/morpho-org/es/controls/UnitReference/LoadedUnitReference";
|
13
13
|
import WorkScheduleMenu from "../../controls/WorkScheduleMenu";
|
14
14
|
import WorkScheduleQuickViewDialog from "../WorkScheduleQuickViewDialog";
|
15
|
+
import WorkSchedulePropertiesView from "../WorkSchedulePropertiesView";
|
16
|
+
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
15
17
|
import classnames from "classnames";
|
16
18
|
import styles from "./index.less";
|
17
19
|
const WorkScheduleItem = (props) => {
|
18
|
-
const { id, avatar
|
20
|
+
const { id, avatar } = props;
|
19
21
|
const workSchedule = useWorkSchedule(id);
|
20
22
|
const meta = useMetaStore();
|
21
23
|
const [hover, setHover] = useState(false);
|
22
|
-
const [visibleQuickView, setVisibleQuickView] = useState(false);
|
23
24
|
return observe(() => {
|
24
25
|
var _a, _b, _c, _d, _e, _f;
|
25
|
-
return (React.createElement(
|
26
|
+
return (React.createElement(ItemFunction, { className: styles["work-schedule-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(WorkSchedulePropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(WorkScheduleQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
|
26
27
|
React.createElement(Skeleton, { avatar: avatar, paragraph: { rows: 1 }, loading: !workSchedule.loaded },
|
27
28
|
React.createElement(ColumnItem, { className: "workSchedule-column-item" },
|
28
29
|
React.createElement(ColumnItemCol, { span: 10 },
|
@@ -53,15 +54,8 @@ const WorkScheduleItem = (props) => {
|
|
53
54
|
} },
|
54
55
|
React.createElement(ToolBar, { id: id, showMenu: false },
|
55
56
|
React.createElement(Open, { size: "middle", url: meta.getRoute(workSchedule) }),
|
56
|
-
React.createElement(WorkScheduleMenu, { id: id, closeAside: true }))))))))
|
57
|
-
visibleQuickView && (React.createElement(WorkScheduleQuickViewDialog, { id: id, visible: true, onCancel: onQuickView }))));
|
57
|
+
React.createElement(WorkScheduleMenu, { id: id, closeAside: true }))))))))));
|
58
58
|
});
|
59
|
-
/** Quick View */
|
60
|
-
function onQuickView() {
|
61
|
-
if (!quickView)
|
62
|
-
return;
|
63
|
-
setVisibleQuickView(!visibleQuickView);
|
64
|
-
}
|
65
59
|
};
|
66
60
|
export default WorkScheduleItem;
|
67
61
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAC7F,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,UAAU,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAC7F,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AACvE,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,gBAAgB,GAAG,CAAC,KAAuC,EAAE,E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a,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU;4BACvC,oBAAC,eAAe,IACf,SAAS,EAAE,UAAU,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAClE,MAAM,EACL,6BACC,SAAS,EAAE,UAAU,CACpB,6DAA6D,CAC7D;oCAED,oBAAC,YAAY,IAAC,KAAK,EAAE,YAAY,CAAC,QAAQ,GAAI,CACzC,EAEP,QAAQ,EACP,6BAAK,SAAS,EAAC,6BAA6B,IAAE,YAAY,CAAC,MAAM,CAAO,GAExE;4BACF,6BACC,SAAS,EAAE,UAAU,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EACjE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oCACd,CAAC,CAAC,eAAe,EAAE,CAAC;oCACpB,QAAQ,CAAC,KAAK,CAAC,CAAC;gCACjB,CAAC;gCAED,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;oCAC/B,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAmB,CAAC,GAAI;oCAC/D,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACrC,CACL,CACS,CACd,CACH,CACW,CACH,CACG,CACf,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -10,12 +10,14 @@ export type WorkScheduleListProps = {
|
|
10
10
|
};
|
11
11
|
/** title */
|
12
12
|
viewTitle?: React.ReactNode;
|
13
|
-
/**
|
14
|
-
|
13
|
+
/** 是否允 new */
|
14
|
+
addAble?: boolean;
|
15
15
|
/** Call back when received total number of workSchedule. */
|
16
16
|
onTotal?: (total: number) => void;
|
17
17
|
/** Call back when an item has been clicked on the list. */
|
18
18
|
onClickItem?: (item: IWorkSchedule) => void;
|
19
|
+
/** 如果card 头部样式不一样 */
|
20
|
+
type?: "card";
|
19
21
|
};
|
20
22
|
declare const WorkScheduleList: {
|
21
23
|
(props: WorkScheduleListProps): React.JSX.Element;
|
@@ -9,19 +9,24 @@ import WorkScheduleFilter from "../../controls/WorkScheduleFilter";
|
|
9
9
|
import WorkTypesFilter from "../../../../../controls/filters/WorkTypesFilter";
|
10
10
|
import NewWorkScheduleForm from "../NewWorkScheduleForm";
|
11
11
|
import NewWorkScheduleFormDialog from "../NewWorkScheduleForm/NewWorkScheduleFormDialog";
|
12
|
-
import
|
12
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
13
|
+
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
13
14
|
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
14
15
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
16
|
+
import { faSuitcase } from "@fortawesome/pro-solid-svg-icons";
|
17
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
15
18
|
import WorkScheduleItem from "../WorkScheduleItem";
|
16
19
|
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
20
|
+
import classnames from "classnames";
|
17
21
|
import dayjs from "dayjs";
|
18
22
|
import styles from "./index.less";
|
19
23
|
dayjs.extend(quarterOfYear);
|
20
24
|
const WorkScheduleList = (props) => {
|
21
|
-
const { contact, viewTitle,
|
25
|
+
const { contact, viewTitle, scheduleDate } = props;
|
22
26
|
const [activeId, setActiveId] = useState("");
|
23
27
|
const [addAble, setAddAble] = useState(false);
|
24
28
|
const view = useViewContext();
|
29
|
+
const [asideContext] = useState(AsideContent.createContext());
|
25
30
|
const list = useCreateListDataState({
|
26
31
|
filterDefaults: {
|
27
32
|
filters: filters(),
|
@@ -47,26 +52,32 @@ const WorkScheduleList = (props) => {
|
|
47
52
|
...list.filters.options,
|
48
53
|
});
|
49
54
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
50
|
-
React.createElement(
|
51
|
-
React.createElement(
|
52
|
-
|
53
|
-
sortable: false,
|
54
|
-
quickSearch: true,
|
55
|
-
selectedFilterKey: ["WorkTypes"],
|
56
|
-
onAdd: () => (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" && setAddAble(!addAble),
|
57
|
-
filterViewProps: {
|
55
|
+
React.createElement(AsideContent, { context: asideContext },
|
56
|
+
React.createElement("div", { className: styles["work-schedule-list"] },
|
57
|
+
React.createElement(ListHeaderTool, { className: classnames({ "page-card": props.type === "card" }), addAble: props.addAble, sortable: false, selectedFilterKey: ["WorkTypes"], filterViewProps: {
|
58
58
|
columns: [
|
59
59
|
React.createElement(WorkScheduleFilter, { key: "WorkScheduleFilter", defaultValue: "Empty" }),
|
60
60
|
React.createElement(WorkTypesFilter, { key: "WorkTypesFilter" }),
|
61
61
|
],
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
62
|
+
}, searchOptions: { placeholder: "Search in work schedules" }, onAdd: () => {
|
63
|
+
if ((view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView") {
|
64
|
+
setAddAble(!addAble);
|
65
|
+
}
|
66
|
+
else {
|
67
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewWorkScheduleForm, { contact: contact }), { span: 12 });
|
68
|
+
}
|
69
|
+
}, preExtra: () => (React.createElement("div", { className: "page-head-content" }, props.type === "card" ? (React.createElement("div", { className: "page-head-name" }, viewTitle)) : (React.createElement(React.Fragment, null,
|
70
|
+
React.createElement("div", { className: "page-head-avatar" },
|
71
|
+
React.createElement(FAIcon, { icon: faSuitcase })),
|
72
|
+
React.createElement("div", { className: "page-head-info" },
|
73
|
+
React.createElement("div", { className: "page-head-name" }, viewTitle),
|
74
|
+
React.createElement("div", { className: "description" }, "Your tasks: prioritize and complete your work")))))) }),
|
75
|
+
React.createElement(ListView, { headerProps: { visible: false }, asideable: false, className: "work-schedule-list-content", renderItem: ({ item, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: { active: activeId === item.id }, onClick: () => {
|
76
|
+
var _a;
|
77
|
+
setActiveId(item.id);
|
78
|
+
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
|
79
|
+
} },
|
80
|
+
React.createElement(WorkScheduleItem, { id: item.id }))) }))),
|
70
81
|
addAble && (React.createElement(NewWorkScheduleFormDialog, { contact: contact, onCancel: () => setAddAble(false), onSave: () => setAddAble(false) })))));
|
71
82
|
function filters() {
|
72
83
|
let filter = [];
|
@@ -133,13 +144,9 @@ const WorkScheduleList = (props) => {
|
|
133
144
|
}
|
134
145
|
return filter;
|
135
146
|
}
|
136
|
-
function onFilter(context) {
|
137
|
-
context.paging.Page = 1;
|
138
|
-
context.filter();
|
139
|
-
}
|
140
147
|
};
|
141
148
|
WorkScheduleList.defaultProps = {
|
142
|
-
viewTitle: "Work
|
149
|
+
viewTitle: "Work Schedules",
|
143
150
|
};
|
144
151
|
export default WorkScheduleList;
|
145
152
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAA0B,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAiB,yBAAyB,EA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,MAAM,GAAG,CAAC,iBAAiB,EAAE,GAAG,MAAM,CAAC,CAAC;gBACxC,MAAM;YACP,KAAK,KAAK;gBACT,MAAM,GAAG,CAAC,SAAS,EAAE,GAAG,MAAM,CAAC,CAAC;gBAChC,MAAM;YACP,KAAK,MAAM;gBACV,MAAM,GAAG,CAAC,UAAU,EAAE,GAAG,MAAM,CAAC,CAAC;gBACjC,MAAM;YACP,KAAK,OAAO;gBACX,MAAM,GAAG,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,CAAC;gBAClC,MAAM;YACP,KAAK,SAAS;gBACb,MAAM,GAAG,CAAC,aAAa,EAAE,GAAG,MAAM,CAAC,CAAC;gBACpC,MAAM;YACP;gBACC,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC;AACF,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC/B,SAAS,EAAE,gBAAgB;CAC3B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -8,5 +8,65 @@
|
|
8
8
|
background-color: #fff;
|
9
9
|
padding: 0 !important;
|
10
10
|
}
|
11
|
+
.list-view-header-tool {
|
12
|
+
padding: 20px 20px 0 20px;
|
13
|
+
border-bottom: 1px solid #e6e6e6;
|
14
|
+
&.page-card {
|
15
|
+
padding: 14px 20px 0 20px;
|
16
|
+
.selected-filter-list {
|
17
|
+
margin-top: 14px;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
.selected-filter-list {
|
21
|
+
margin-top: 20px;
|
22
|
+
}
|
23
|
+
.header-tool-space {
|
24
|
+
align-items: end;
|
25
|
+
justify-content: space-between;
|
26
|
+
}
|
27
|
+
.page-head-content {
|
28
|
+
flex: 1;
|
29
|
+
display: flex;
|
30
|
+
.ant-avatar {
|
31
|
+
width: 50px;
|
32
|
+
height: 50px;
|
33
|
+
line-height: 50px;
|
34
|
+
border-radius: 2px;
|
35
|
+
}
|
36
|
+
.page-head-avatar {
|
37
|
+
width: 50px;
|
38
|
+
height: 50px;
|
39
|
+
padding: 0 12px;
|
40
|
+
line-height: 50px;
|
41
|
+
font-size: 22px;
|
42
|
+
display: flex;
|
43
|
+
align-items: center;
|
44
|
+
justify-content: center;
|
45
|
+
color: #217eb2;
|
46
|
+
background: #e5fbff;
|
47
|
+
border-radius: 5px;
|
48
|
+
border: 2px solid #217eb2;
|
49
|
+
}
|
50
|
+
.page-head-info {
|
51
|
+
color: #868686;
|
52
|
+
margin-left: 15px;
|
53
|
+
}
|
54
|
+
.page-head-name {
|
55
|
+
display: flex;
|
56
|
+
align-items: center;
|
57
|
+
color: #217eb2;
|
58
|
+
font-size: 20px;
|
59
|
+
font-weight: bold;
|
60
|
+
line-height: 27px;
|
61
|
+
.ant-dropdown-trigger {
|
62
|
+
color: #cbcbcb;
|
63
|
+
font-weight: normal;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
.description {
|
67
|
+
font-size: 14px;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
11
71
|
}
|
12
72
|
}
|
@@ -4,7 +4,7 @@ import ListCard from "@voplus/morpho-ui/es/controls/ListCard";
|
|
4
4
|
import WorkScheduleList from "../WorkScheduleList";
|
5
5
|
const WorkScheduleListCard = (props) => {
|
6
6
|
return observe(() => (React.createElement(ListCard, { style: props.style },
|
7
|
-
React.createElement(WorkScheduleList, { ...props }))));
|
7
|
+
React.createElement(WorkScheduleList, { ...props, type: "card" }))));
|
8
8
|
};
|
9
9
|
export default WorkScheduleListCard;
|
10
10
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,OAAO,gBAA2C,MAAM,qBAAqB,CAAC;AAE9E,MAAM,oBAAoB,GAAG,CAC3B,KAA8D,EAC9D,EAAE;IACF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK;QAC1B,oBAAC,gBAAgB,OAAK,KAAK,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,OAAO,gBAA2C,MAAM,qBAAqB,CAAC;AAE9E,MAAM,oBAAoB,GAAG,CAC3B,KAA8D,EAC9D,EAAE;IACF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK;QAC1B,oBAAC,gBAAgB,OAAK,KAAK,EAAE,IAAI,EAAC,MAAM,GAAG,CAClC,CACZ,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|