@voplus/morpho-workspace 6.1.7 → 6.1.8
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/modules/notification/components/NotificationHeader/index.d.ts +0 -1
- package/es/modules/notification/components/NotificationHeader/index.js +7 -9
- package/es/modules/notification/components/NotificationHeader/index.js.map +1 -1
- package/es/modules/notification/components/NotificationPropertiesView/index.d.ts +0 -1
- package/es/modules/notification/components/NotificationPropertiesView/index.js +1 -2
- package/es/modules/notification/components/NotificationPropertiesView/index.js.map +1 -1
- package/es/modules/notification/components/NotificationQuickViewDialog/index.less +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleHeader/index.d.ts +0 -1
- package/es/modules/work/work-schedule/components/WorkScheduleHeader/index.js +3 -5
- package/es/modules/work/work-schedule/components/WorkScheduleHeader/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleQuickViewDialog/index.less +1 -5
- package/es/modules/work/work-type/components/WorkTypeHeader/index.d.ts +0 -1
- package/es/modules/work/work-type/components/WorkTypeHeader/index.js +4 -6
- package/es/modules/work/work-type/components/WorkTypeHeader/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.d.ts +1 -1
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.js +15 -24
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.less +2 -9
- package/es/modules/work/work-type/components/WorkTypeQuickViewDialog/index.d.ts +1 -0
- package/es/modules/work/work-type/components/WorkTypeQuickViewDialog/index.js +2 -1
- package/es/modules/work/work-type/components/WorkTypeQuickViewDialog/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeQuickViewDialog/index.less +7 -0
- package/package.json +1 -1
- package/es/modules/notification/components/NotificationHeader/index.less +0 -12
- package/es/modules/notification/components/NotificationPropertiesView/index.less +0 -26
- package/es/modules/work/work-schedule/components/WorkScheduleHeader/index.less +0 -12
- package/es/modules/work/work-type/components/WorkTypeHeader/index.less +0 -12
@@ -1,19 +1,17 @@
|
|
1
|
-
import "./index.less";
|
2
|
-
import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
3
|
-
import { Open } from "@voplus/morpho-org/es/controls/ToolBar/items";
|
4
|
-
import { observe } from "@voplus/morpho-ui";
|
5
1
|
import React from "react";
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
3
|
+
import { Open } from "@voplus/morpho-org/es/controls/ToolBar/items";
|
6
4
|
import { useNotifications } from "../../../../data/notification";
|
7
|
-
import Routes from "../../../Routes";
|
8
5
|
import NotificationMenu from "../../controls/NotificationMenu";
|
6
|
+
import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
7
|
+
import NodeHeaderLayout from "@voplus/morpho-ui/es/controls/NodeHeaderLayout";
|
8
|
+
import Routes from "../../../Routes";
|
9
9
|
const NotificationHeader = (props) => {
|
10
10
|
const id = props.id;
|
11
11
|
const notification = useNotifications(id);
|
12
|
-
return observe(() => (React.createElement(
|
13
|
-
React.createElement("div", null, notification.subject),
|
14
|
-
React.createElement(ToolBar, { more: false, id: id },
|
12
|
+
return observe(() => (React.createElement(NodeHeaderLayout, { content: notification.subject, tool: React.createElement(ToolBar, { more: false, id: id },
|
15
13
|
React.createElement(Open, { url: Routes.NotificationDefaultView.getUrl(id) }),
|
16
|
-
notification.draft && React.createElement(NotificationMenu, { id: id, closeAside: true })))));
|
14
|
+
notification.draft && React.createElement(NotificationMenu, { id: id, closeAside: true })) })));
|
17
15
|
};
|
18
16
|
export default NotificationHeader;
|
19
17
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,kBAAkB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACpD,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,YAAY,GAAG,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAE1C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,gBAAgB,IAChB,OAAO,EAAE,YAAY,CAAC,OAAO,EAC7B,IAAI,EACH,oBAAC,OAAO,IAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;YAC3B,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;YACvD,YAAY,CAAC,KAAK,IAAI,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CAC5D,GAEV,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|
@@ -3,12 +3,11 @@ import React, { useMemo } from "react";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
4
4
|
import NotificationHeader from "../NotificationHeader";
|
5
5
|
import NotificationTabs from "../NotificationTabs";
|
6
|
-
import "./index.less";
|
7
6
|
const NotificationPropertiesView = (props) => {
|
8
7
|
const id = props.id;
|
9
8
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
10
9
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
11
|
-
React.createElement("div", { className: "notification-properties-view" },
|
10
|
+
React.createElement("div", { className: "notification-properties-view module-detail-view" },
|
12
11
|
React.createElement(NotificationHeader, { id: id }),
|
13
12
|
React.createElement(NotificationTabs, { id: id, properties: true })))));
|
14
13
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAEnD,MAAM,0BAA0B,GAAG,CAAC,KAAwC,EAAE,EAAE;IAC/E,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,iDAAiD;YAC/D,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI;YAC9B,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAClC,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,0BAA0B,CAAC"}
|
@@ -5,18 +5,16 @@ import { useWorkSchedule } from "../../../../../data/work-schedule";
|
|
5
5
|
import { useMetaStore } from "@voplus/morpho-document-core";
|
6
6
|
import WorkScheduleMenu from "../../controls/WorkScheduleMenu";
|
7
7
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
8
|
-
import "
|
8
|
+
import NodeHeaderLayout from "@voplus/morpho-ui/es/controls/NodeHeaderLayout";
|
9
9
|
const WorkScheduleHeader = (props) => {
|
10
10
|
const id = props.id;
|
11
11
|
const meta = useMetaStore();
|
12
12
|
const workSchedule = useWorkSchedule(id);
|
13
13
|
return observe(() => {
|
14
14
|
var _a;
|
15
|
-
return (React.createElement(
|
16
|
-
React.createElement("div", null, (_a = workSchedule.workType) === null || _a === void 0 ? void 0 : _a.name),
|
17
|
-
React.createElement(ToolBar, { id: id, showMenu: false },
|
15
|
+
return (React.createElement(NodeHeaderLayout, { content: (_a = workSchedule.workType) === null || _a === void 0 ? void 0 : _a.name, tool: React.createElement(ToolBar, { id: id, showMenu: false },
|
18
16
|
React.createElement(Open, { size: "middle", url: meta.getRoute(workSchedule) }),
|
19
|
-
React.createElement(WorkScheduleMenu, { id: id, closeAside: true }))));
|
17
|
+
React.createElement(WorkScheduleMenu, { id: id, closeAside: true })) }));
|
20
18
|
});
|
21
19
|
};
|
22
20
|
export default WorkScheduleHeader;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CA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,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAmB,CAAC,GAAI;gBAC/D,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACrC,GAEV,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|
@@ -3,20 +3,18 @@ import { State } from "../WorkTypeProperties/state";
|
|
3
3
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
4
4
|
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
5
5
|
import { useWorkType, useWorkTypeStore } from "../../../../../data/worktype";
|
6
|
-
import
|
6
|
+
import NodeHeaderLayout from "@voplus/morpho-ui/es/controls/NodeHeaderLayout";
|
7
7
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
8
|
-
import "
|
8
|
+
import WorkTypeMenu from "../../controls/WorkTypeMenu";
|
9
9
|
const WorkTypeHeader = (props) => {
|
10
10
|
const id = props.id;
|
11
11
|
const worktype = useWorkType(id);
|
12
12
|
const store = useWorkTypeStore();
|
13
13
|
const [state] = useState(new State(store));
|
14
14
|
state.update(worktype);
|
15
|
-
return observe(() => (React.createElement(
|
16
|
-
React.createElement(InlineEdit, { defaultValue: worktype === null || worktype === void 0 ? void 0 : worktype.name, content: (v) => React.createElement("span", null, worktype === null || worktype === void 0 ? void 0 : worktype.name), onSave: (value) => state.save(value, worktype.name, { Name: value }) }),
|
17
|
-
React.createElement(ToolBar, { id: id, showMenu: false },
|
15
|
+
return observe(() => (React.createElement(NodeHeaderLayout, { content: React.createElement(InlineEdit, { defaultValue: worktype === null || worktype === void 0 ? void 0 : worktype.name, content: (v) => React.createElement("span", null, worktype === null || worktype === void 0 ? void 0 : worktype.name), onSave: (value) => state.save(value, worktype.name, { Name: value }) }), tool: React.createElement(ToolBar, { id: id, showMenu: false },
|
18
16
|
React.createElement(Open, { url: `/work-types-page/${id}` }),
|
19
|
-
React.createElement(WorkTypeMenu, { id: id, closeAside: true })))));
|
17
|
+
React.createElement(WorkTypeMenu, { id: id, closeAside: true })) })));
|
20
18
|
};
|
21
19
|
export default WorkTypeHeader;
|
22
20
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,YAAY,MAAM,6BAA6B,CAAC;AAEvD,MAAM,cAAc,GAAG,CAAC,KAAqB,EAAE,EAAE;IAChD,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IAEjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAE3C,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEvB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,gBAAgB,IAChB,OAAO,EACN,oBAAC,UAAU,IACV,YAAY,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAC5B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAQ,EAC7C,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GACnE,EAEH,IAAI,EACH,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;YAC/B,oBAAC,IAAI,IAAC,GAAG,EAAE,oBAAoB,EAAE,EAAE,GAAI;YACvC,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACjC,GAEV,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
@@ -1,40 +1,31 @@
|
|
1
|
-
import "./index.less";
|
2
|
-
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
3
1
|
import React, { useEffect, useMemo, useState } from "react";
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
3
|
+
import { runInAction } from "mobx";
|
4
|
+
import { State } from "./state";
|
4
5
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
6
|
+
import { useDocumentStore } from "@voplus/morpho-document-core";
|
5
7
|
import { useWorkType, useWorkTypeStore } from "../../../../../data/worktype";
|
6
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
7
|
-
import { State } from "./state";
|
8
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
9
|
-
import WorkTypeMenu from "../../controls/WorkTypeMenu";
|
10
|
-
import WorkTypePropertiesTabs from "../WorkTypePropertiesTabs";
|
11
8
|
import WorktypeCompleteWorksChart from "../../controls/WorktypeCompleteWorksChart";
|
12
|
-
import
|
13
|
-
import
|
9
|
+
import WorkTypePropertiesTabs from "../WorkTypePropertiesTabs";
|
10
|
+
import WorkTypeHeader from "../WorkTypeHeader";
|
11
|
+
import "./index.less";
|
14
12
|
const WorkTypePropertiesView = (props) => {
|
15
|
-
const id = props
|
13
|
+
const { id } = props;
|
16
14
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
15
|
+
const worktype = useWorkType(id);
|
17
16
|
const store = useWorkTypeStore();
|
18
17
|
const docStore = useDocumentStore();
|
19
18
|
const [state] = useState(new State(id, store));
|
20
|
-
const worktype = useWorkType(id);
|
21
19
|
useEffect(() => {
|
22
20
|
runInAction(async () => {
|
23
|
-
const doc = await docStore.loadAccess(
|
21
|
+
const doc = await docStore.loadAccess(id);
|
24
22
|
state.update(doc);
|
25
23
|
});
|
26
|
-
}, [
|
27
|
-
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
28
|
-
React.createElement(
|
29
|
-
|
30
|
-
|
31
|
-
React.createElement(InlineEdit, { defaultValue: worktype.name, content: (v) => React.createElement("div", null, worktype.name), onSave: (value) => state.save(value, worktype.name, { Name: value }) }),
|
32
|
-
React.createElement("div", { className: "tools-bar" },
|
33
|
-
React.createElement(ToolBar, { id: id, showMenu: false },
|
34
|
-
React.createElement(Open, { url: `/work-types-page/${id}` }),
|
35
|
-
React.createElement(WorkTypeMenu, { id: id, closeAside: true }))))),
|
36
|
-
React.createElement(WorktypeCompleteWorksChart, { id: props.id }),
|
37
|
-
React.createElement(WorkTypePropertiesTabs, { id: id })))))));
|
24
|
+
}, [id]);
|
25
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view }, worktype.loaded && (React.createElement("div", { className: "module-detail-view worktype-properties-view" },
|
26
|
+
React.createElement(WorkTypeHeader, { id: id }),
|
27
|
+
React.createElement(WorktypeCompleteWorksChart, { id: id }),
|
28
|
+
React.createElement(WorkTypePropertiesTabs, { id: id }))))));
|
38
29
|
};
|
39
30
|
export default WorkTypePropertiesView;
|
40
31
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,0BAA0B,MAAM,2CAA2C,CAAC;AACnF,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,cAAc,CAAC;AAEtB,MAAM,sBAAsB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxD,MAAM,EAAE,EAAE,EAAE,GAAG,KAA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8
|
word-break: break-all;
|
10
|
-
display: flex;
|
11
|
-
align-items: center;
|
12
|
-
justify-content: space-between;
|
13
|
-
}
|
14
|
-
.avatar-list-view {
|
15
|
-
margin-top: 10px;
|
16
9
|
}
|
17
10
|
}
|
18
11
|
}
|
@@ -3,9 +3,10 @@ import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import WorkTypeHeader from "../WorkTypeHeader";
|
4
4
|
import WorkTypeProperties from "../WorkTypeProperties";
|
5
5
|
import QuickViewDialog from "@voplus/morpho-document/es/controls/QuickViewDialog";
|
6
|
+
import "./index.less";
|
6
7
|
const WorkTypeQuickViewDialog = (props) => {
|
7
8
|
const { id } = props;
|
8
|
-
return observe(() => (React.createElement(QuickViewDialog, { ...props, header: React.createElement(WorkTypeHeader, { id: id }), subButtons: [{ name: "Document" }, { name: "Activities" }] },
|
9
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "work-type-quick-view", header: React.createElement(WorkTypeHeader, { id: id }), subButtons: [{ name: "Document" }, { name: "Activities" }] },
|
9
10
|
React.createElement(WorkTypeProperties, { id: id, header: false }))));
|
10
11
|
};
|
11
12
|
export default WorkTypeQuickViewDialog;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,eAAe,MAAM,qDAAqD,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,eAAe,MAAM,qDAAqD,CAAC;AAClF,OAAO,cAAc,CAAC;AAEtB,MAAM,uBAAuB,GAAG,CAAC,KAIhC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,OACX,KAAK,EACT,SAAS,EAAC,sBAAsB,EAChC,MAAM,EAAE,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,GAAI,EAClC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QAE1D,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,GAAI,CAC5B,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
package/package.json
CHANGED
@@ -1,26 +0,0 @@
|
|
1
|
-
:global {
|
2
|
-
.notification-properties-view {
|
3
|
-
display: flex;
|
4
|
-
flex-direction: column;
|
5
|
-
height: 100%;
|
6
|
-
.ant-tabs {
|
7
|
-
display: flex;
|
8
|
-
flex-direction: column;
|
9
|
-
height: 100%;
|
10
|
-
.ant-tabs-content {
|
11
|
-
height: 100%;
|
12
|
-
padding-bottom: 0px !important;
|
13
|
-
.ant-tabs-tabpane {
|
14
|
-
position: relative;
|
15
|
-
height: 100%;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
.ant-tabs-bar {
|
19
|
-
margin: 0 20px;
|
20
|
-
}
|
21
|
-
.ant-tabs-nav {
|
22
|
-
margin: 0;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|