@voplus/morpho-workspace 6.0.102 → 6.0.103

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,7 @@
1
- import { Archive, Open, Print, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
2
- import { CommentDataIcon, DocumentDataIcon } from "@voplus/morpho-document/es/controls/data-icons";
1
+ import { Archive, Open, Print, Reload, Close, } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
3
2
  import React, { useMemo, useState } from "react";
4
3
  import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
5
- import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
4
+ import DocumentPropertiesHeader from "@voplus/morpho-document/es/components/DocumentPropertiesHeader";
6
5
  import MeetingTabs from "../MeetingTabs";
7
6
  import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
8
7
  import { observe } from "@voplus/morpho-ui";
@@ -16,13 +15,14 @@ const MeetingPropertiesView = (props) => {
16
15
  const meeting = useMeeting(id);
17
16
  return observe(() => (React.createElement(ViewContext.Provider, { value: view },
18
17
  React.createElement("div", { className: "module-detail-view" }, reload && (React.createElement(React.Fragment, null,
19
- React.createElement(DocumentHeader, { id: id, size: "h3", autoSaveName: true, quickDataBarAlign: "left", clickNameEffect: "edit", flagVisible: false, quickVisible: false, tagsVisible: false, descriptionVisible: false, quickDataBar: React.createElement(React.Fragment, null,
20
- React.createElement(DocumentDataIcon, { id: id, includes: "tags,task-number-reports" }),
21
- React.createElement(CommentDataIcon, { id: id })), tools: React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
22
- React.createElement(Reload, { action: onReLoad }),
23
- React.createElement(Open, { url: meta.getRoute(meeting) }),
24
- React.createElement(Archive, null),
25
- React.createElement(Print, { url: `meeting/print/${id}` })) }),
18
+ React.createElement(DocumentPropertiesHeader, { id: id, documentHeaderProper: {
19
+ tools: (React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
20
+ React.createElement(Reload, { action: onReLoad }),
21
+ React.createElement(Open, { url: meta.getRoute(meeting) }),
22
+ React.createElement(Archive, null),
23
+ React.createElement(Print, { url: `meeting/print/${id}` }),
24
+ React.createElement(Close, null))),
25
+ } }),
26
26
  React.createElement(MeetingTabs, { id: id, properties: true })))))));
27
27
  /** reload data */
28
28
  function onReLoad() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAElE,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,qBAAqB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,CAA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C;AACF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,OAAO,EACP,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,GACL,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,wBAAwB,MAAM,gEAAgE,CAAC;AACtG,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,qBAAqB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;IAE/B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,oBAAoB,IACjC,MAAM,IAAI,CACV,oBAAC,KAAK,CAAC,QAAQ;YACd,oBAAC,wBAAwB,IACxB,EAAE,EAAE,EAAE,EACN,oBAAoB,EAAE;oBACrB,KAAK,EAAE,CACN,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;wBAC/C,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;wBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAI;wBACrC,oBAAC,OAAO,OAAG;wBACX,oBAAC,KAAK,IAAC,GAAG,EAAE,iBAAiB,EAAE,EAAE,GAAI;wBACrC,oBAAC,KAAK,OAAG,CACA,CACV;iBACD,GACA;YACF,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAClB,CACjB,CACI,CACgB,CACvB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,qBAAqB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import "./index.less";
2
- import { Archive, Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
2
+ import { Archive, Open, Reload, Close } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
3
3
  import React, { useMemo, useState } from "react";
4
4
  import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
5
5
  import { useDocument, useMetaStore } from "@voplus/morpho-document-core";
6
6
  import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
7
- import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
7
+ import DocumentPropertiesHeader from "@voplus/morpho-document/es/components/DocumentPropertiesHeader";
8
8
  import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
9
9
  import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
10
10
  import Links from "@voplus/morpho-document/es/components/Links";
@@ -20,11 +20,14 @@ const MeetingsFolderPropertiesView = (props) => {
20
20
  const [activeKey, setActiveKey] = useState();
21
21
  return observe(() => (React.createElement(ViewContext.Provider, { value: view },
22
22
  React.createElement("div", { className: "module-detail-view" }, reload && (React.createElement(React.Fragment, null,
23
- React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, tools: React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
24
- React.createElement(Open, { url: meta.getRoute(document) }),
25
- React.createElement(Reload, { action: onReload }),
26
- React.createElement(Archive, null)) }),
27
- React.createElement(DocumentTabs, { id: id, active: "Meetings", tabItems: [
23
+ React.createElement(DocumentPropertiesHeader, { id: id, documentHeaderProper: {
24
+ tools: (React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
25
+ React.createElement(Reload, { action: onReload }),
26
+ React.createElement(Open, { url: meta.getRoute(document) }),
27
+ React.createElement(Archive, null),
28
+ React.createElement(Close, null))),
29
+ } }),
30
+ React.createElement(DocumentTabs, { id: id, active: "Meetings", properties: true, tabItems: [
28
31
  {
29
32
  key: "Meetings",
30
33
  label: "Meetings",
@@ -34,7 +37,7 @@ const MeetingsFolderPropertiesView = (props) => {
34
37
  {
35
38
  key: "Document",
36
39
  label: "Document",
37
- children: (React.createElement(DocumentList, { id: id, multiple: true, viewTitle: " ", total: false, exclude: ["Meeting"] })),
40
+ children: (React.createElement(DocumentList, { id: id, multiple: true, viewTitle: false, total: false, exclude: ["Meeting"] })),
38
41
  },
39
42
  {
40
43
  key: "Activities",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingsFolderProperitesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qD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,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,GAAI;qBAC3C;iBACD,EACD,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GACnC,CACc,CACjB,CACI,CACgB,CACvB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingsFolderProperitesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,wBAAwB,MAAM,gEAAgE,CAAC;AACtG,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,KAAK,MAAM,6CAA6C,CAAC;AAChE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,4BAA4B,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9D,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;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D;oBACD;wBACC,GAAG,EAAE,UAAU;wBACf,KAAK,EAAE,UAAU;wBACjB,QAAQ,EAAE,CACT,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,QAAQ,QACR,SAAS,EAAE,KAAK,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,CAAC,SAAS,CAAC,GACnB,CACF;qBACD;oBACD;wBACC,GAAG,EAAE,YAAY;wBACjB,KAAK,EAAE,YAAY;wBACnB,QAAQ,EAAE,CACT,0CAAG,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAC,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAAI,CAC5E;qBACD;oBACD;wBACC,GAAG,EAAE,OAAO;wBACZ,KAAK,EAAE,OAAO;wBACd,QAAQ,EAAE,oBAAC,KAAK,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,GAAI;qBAC3C;iBACD,EACD,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GACnC,CACc,CACjB,CACI,CACgB,CACvB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
@@ -1,9 +1,8 @@
1
1
  import "./index.less";
2
- import { Archive, Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
2
+ import { Archive, Open, Reload, Close } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
3
3
  import React, { useMemo, useState } from "react";
4
4
  import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
5
- import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
6
- import TaskDataIconBar from "../../controls/TaskDataIconBar";
5
+ import DocumentPropertiesHeader from "@voplus/morpho-document/es/components/DocumentPropertiesHeader";
7
6
  import TaskTabs from "../TaskTabs";
8
7
  import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
9
8
  import { observe } from "@voplus/morpho-ui";
@@ -16,10 +15,13 @@ const TaskPropertiesView = (props) => {
16
15
  const task = useTask(id, { reload: true, includes: "tags,task-number-reports,createdby,folder" });
17
16
  const [loaded, setLoaded] = useState(true);
18
17
  return observe(() => (React.createElement(ViewContext.Provider, { value: view }, loaded && (React.createElement("div", { className: "module-detail-view" },
19
- React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, tagsVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, className: "task-properties-view-header", quickDataBar: React.createElement(TaskDataIconBar, { id: id }), tools: React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
20
- React.createElement(Reload, { action: onReload }),
21
- React.createElement(Open, { url: meta.getRoute(task) }),
22
- React.createElement(Archive, null)), descriptionVisible: false }),
18
+ React.createElement(DocumentPropertiesHeader, { id: id, documentHeaderProper: {
19
+ tools: (React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
20
+ React.createElement(Reload, { action: onReload }),
21
+ React.createElement(Open, { url: meta.getRoute(task) }),
22
+ React.createElement(Archive, null),
23
+ React.createElement(Close, null))),
24
+ } }),
23
25
  React.createElement(TaskTabs, { id: id, properties: true }))))));
24
26
  /** reload data */
25
27
  function onReload() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,O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E,EAAE,GAAI,EACzC,KAAK,EACJ,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;gBAC/C,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;gBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI;gBAClC,oBAAC,OAAO,OAAG,CACF,EAEX,kBAAkB,EAAE,KAAK,GACxB;QACF,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAC1B,CACN,CACqB,CACvB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,wBAAwB,MAAM,gEAAgE,CAAC;AACtG,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,8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ACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
@@ -1,25 +1,18 @@
1
1
  import "./index.less";
2
- import { Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
3
2
  import React, { useMemo, useState } from "react";
4
3
  import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
5
- import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
6
- import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
4
+ import DocumentPropertiesHeader from "@voplus/morpho-document/es/components/DocumentPropertiesHeader";
7
5
  import WorkTabs from "../WorkTabs";
8
6
  import { observe } from "@voplus/morpho-ui";
9
- import { useMetaStore } from "@voplus/morpho-document-core";
10
- import { useWork } from "../../../../data/work";
11
7
  const WorkPropertiesView = (props) => {
12
8
  const id = props.id;
13
- const meta = useMetaStore();
14
9
  const view = useMemo(() => new ViewContextData("PropertiesView"), []);
15
- const work = useWork(id, { reload: false });
16
10
  const [loaded, setLoaded] = useState(true);
17
11
  return observe(() => (React.createElement(ViewContext.Provider, { value: view },
18
12
  React.createElement("div", { className: "module-detail-view work-properties-view" }, loaded && (React.createElement(React.Fragment, null,
19
- React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, tools: React.createElement("div", { className: "tools-bar" },
20
- React.createElement(ToolBar, { id: id },
21
- React.createElement(Reload, { action: onReload }),
22
- React.createElement(Open, { url: meta.getRoute(work) }))), descriptionVisible: false }),
13
+ React.createElement(DocumentPropertiesHeader, { id: id, documentHeaderProper: {
14
+ toolBarProps: { closeAside: true, close: true, onReload: onReload },
15
+ } }),
23
16
  React.createElement(WorkTabs, { id: id, propertie: true })))))));
24
17
  /** reload data */
25
18
  function onReload() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkP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AC,MAAM,EACxB,eAAe,EAAC,MAAM,EACtB,YAAY,QACZ,KAAK,EACJ,6BAAK,SAAS,EAAC,WAAW;oBACzB,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE;wBACd,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;wBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI,CACzB,CACL,EAEP,kBAAkB,EAAE,KAAK,GACxB;YACF,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,SAAG,CACd,CACjB,CACI,CACgB,CACvB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,wBAAwB,MAAM,gEAAgE,CAAC;AACtG,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,kBAAkB,GAAG,CAAC,KAAwC,EAAE,EAAE;IACvE,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IAEpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,yCAAyC,IACtD,MAAM,IAAI,CACV,oBAAC,KAAK,CAAC,QAAQ;YACd,oBAAC,wBAAwB,IACxB,EAAE,EAAE,EAAE,EACN,oBAAoB,EAAE;oBACrB,YAAY,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE;iBACnE,GACA;YACF,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,SAAG,CACd,CACjB,CACI,CACgB,CACvB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.102",
3
+ "version": "6.0.103",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",