@voplus/morpho-workspace 1.2.2 → 1.2.4

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.
@@ -5,7 +5,9 @@ import { IDocument } from "@voplus/morpho-document-core";
5
5
  export declare class BoardTypeMeta extends DefaultDocumentTypeMeta {
6
6
  static TypeName: string;
7
7
  get name(): string;
8
- getRoute(document: IDocument): string;
9
8
  getIcon(document: IDocument): JSX.Element;
10
9
  getTabUrl(document: IDocument): string;
10
+ getDefaultView(props: {
11
+ id: string;
12
+ }): JSX.Element | null;
11
13
  }
@@ -1,21 +1,22 @@
1
1
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
2
2
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
3
3
  import React from "react";
4
+ import DefaultView from "../../modules/board/pages/BoardViewList";
4
5
  import { faColumns } from "@fortawesome/pro-solid-svg-icons";
5
6
  /** Meta information for Board document. */
6
7
  export class BoardTypeMeta extends DefaultDocumentTypeMeta {
7
8
  get name() {
8
9
  return BoardTypeMeta.TypeName;
9
10
  }
10
- getRoute(document) {
11
- return `/boards/${document.id}`;
12
- }
13
11
  getIcon(document) {
14
12
  return React.createElement(FontAwesomeIcon, { icon: faColumns });
15
13
  }
16
14
  getTabUrl(document) {
17
15
  throw new Error("Method not implemented.");
18
16
  }
17
+ getDefaultView(props) {
18
+ return React.createElement(DefaultView, { id: props.id });
19
+ }
19
20
  }
20
21
  Object.defineProperty(BoardTypeMeta, "TypeName", {
21
22
  enumerable: true,
@@ -1 +1 @@
1
- {"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/board/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;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react" />
2
+ import { DocumentRoute } from "@voplus/morpho-document/es/routes";
2
3
  declare const Routes: {
3
4
  BoardList: {
4
5
  route: string;
5
6
  tabPattern: RegExp;
6
7
  getUrl: () => string;
7
- component: () => JSX.Element;
8
+ component: ({ id }: {
9
+ id: string;
10
+ }) => JSX.Element;
8
11
  };
9
12
  Board: {
10
- route: string;
11
- tabPattern: RegExp;
12
- getUrl: (id: string) => string;
13
- component: () => JSX.Element;
13
+ getUrl: typeof DocumentRoute;
14
14
  };
15
15
  addRoutes: () => void;
16
16
  };
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
  import { Route, Switch } from "react-router";
3
3
  import { BaseRoutes } from "@voplus/morpho-data";
4
+ import { DocumentRoute } from "@voplus/morpho-document/es/routes";
4
5
  import BoardViewList from "./pages/BoardViewList";
5
6
  const BoardRoutes = () => {
6
7
  return (React.createElement(Switch, null,
7
- React.createElement(Route, { path: Routes.BoardList.route, exact: true, component: Routes.BoardList.component }),
8
- React.createElement(Route, { path: Routes.Board.route, exact: true, component: Routes.Board.component })));
8
+ React.createElement(Route, { path: Routes.BoardList.route, exact: true, component: Routes.BoardList.component })));
9
9
  };
10
10
  const Routes = {
11
11
  BoardList: {
@@ -15,17 +15,9 @@ const Routes = {
15
15
  component: BoardViewList,
16
16
  },
17
17
  Board: {
18
- route: "/boards/:id",
19
- tabPattern: RegExp("/boards/[^/]+"),
20
- getUrl: (id) => `/boards/${id}`,
21
- component: BoardViewList,
18
+ getUrl: DocumentRoute,
22
19
  },
23
20
  addRoutes: () => {
24
- BaseRoutes.routes.push({
25
- name: "boards",
26
- tabBasePattern: Routes.Board.tabPattern,
27
- component: React.createElement(BoardRoutes, null),
28
- });
29
21
  BaseRoutes.routes.push({
30
22
  name: "boards-list",
31
23
  tabBasePattern: Routes.BoardList.tabPattern,
@@ -1 +1 @@
1
- {"version":3,"file":"BoardRouets.js","sourceRoot":"","sources":["../../../src/modules/board/BoardRouets.tsx"],"names":[],"mappings":"AAAA,OAAO,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UAAU;YAC3C,SAAS,EAAE,oBAAC,WAAW,OAAG;SAC1B,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"BoardRouets.js","sourceRoot":"","sources":["../../../src/modules/board/BoardRouets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAElD,MAAM,WAAW,GAAG,GAAG,EAAE;IACxB,OAAO,CACN,oBAAC,MAAM;QACN,oBAAC,KAAK,IAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,GAAI,CACnF,CACT,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG;IACd,SAAS,EAAE;QACV,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,MAAM,CAAC,SAAS,CAAC;QAC7B,MAAM,EAAE,GAAG,EAAE,CAAC,SAAS;QACvB,SAAS,EAAE,aAAa;KACxB;IACD,KAAK,EAAE;QACN,MAAM,EAAE,aAAa;KACrB;IAED,SAAS,EAAE,GAAG,EAAE;QACf,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,aAAa;YACnB,cAAc,EAAE,MAAM,CAAC,SAAS,CAAC,UAAU;YAC3C,SAAS,EAAE,oBAAC,WAAW,OAAG;SAC1B,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,3 +1,6 @@
1
1
  /// <reference types="react" />
2
- declare const BoardViewList: () => JSX.Element;
2
+ /** The Board Page component with router parameters support. */
3
+ declare const BoardViewList: ({ id }: {
4
+ id: string;
5
+ }) => JSX.Element;
3
6
  export default BoardViewList;
@@ -10,13 +10,11 @@ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
10
10
  import { runInAction } from "mobx";
11
11
  import styles from "./index.less";
12
12
  import { useBoard } from "../../../../data/board";
13
- import { useRouteMatch } from "react-router";
14
13
  import { useTabItem } from "@voplus/morpho-data";
15
- const BoardViewList = () => {
14
+ /** The Board Page component with router parameters support. */
15
+ const BoardViewList = ({ id }) => {
16
16
  const [asideContext] = useState(AsideContent.createContext());
17
- const match = useRouteMatch();
18
17
  const [state] = useState(new State());
19
- const id = match.params.id;
20
18
  state.board = useBoard(id, { reload: false });
21
19
  /** set tab title */
22
20
  const tab = useTabItem();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/pages/BoardViewList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAoB,MAAM,mBAAmB,CAAC;AAE9D,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,mBAAmB,MAAM,sCAAsC,CAAC;AACvE,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,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,GAED;4BACF,oBAAC,OAAO,OAAG,CACF,CACL,EAEP,kBAAkB,EAAE,KAAK,GACxB;gBACF,oBAAC,KAAK,IAAC,QAAQ,EAAE,EAAE,GAAI,CAClB,CACQ,CACV,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import { AssigneeViewFilter, StartDateFilter } from "../../../../controls/filters";
2
- import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
3
- import React, { useState } from "react";
2
+ import React, { useEffect, useState } from "react";
3
+ import { FilterOptionsContext, ListDataContext, useCreateListDataState, } from "@voplus/morpho-ui/es/data";
4
+ import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
5
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
4
6
  import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
5
7
  import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
6
8
  import MeetingItem from "../../components/MeetingItem";
@@ -11,7 +13,12 @@ import { observe } from "@voplus/morpho-ui";
11
13
  import { useAutoUpdateListData } from "@voplus/morpho-document-core";
12
14
  import { useMeetingListEffect } from "../../../../data/meeting";
13
15
  import { useRenderOnChange } from "@voplus/morpho-ui";
16
+ import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
17
+ import SortViewDropdown from "@voplus/morpho-ui/es/components/layout/ListView/controls/SortViewDropdown";
18
+ import AddForm from "@voplus/morpho-document/es/components/ViewFrame/controls/AddForm";
14
19
  const MeetingList = (props) => {
20
+ const frame = useFrame();
21
+ const [asideContext] = useState(AsideContent.createContext());
15
22
  const { parentId, quickSearch, readonly } = props;
16
23
  const [addAble, setAddAble] = useState(false);
17
24
  const [activeId, setActiveId] = useState("");
@@ -24,28 +31,33 @@ const MeetingList = (props) => {
24
31
  useAutoUpdateListData(list, (d) => d.type === "Meeting");
25
32
  useRenderOnChange(() => list.filters.options);
26
33
  useMeetingListEffect(list, (result) => list.union(result), list.filters.options);
27
- return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
28
- React.createElement(ListView, { renderId: parentId, headerProps: {
29
- // viewTitle: props.title,
30
- header: quickSearch ? undefined : (React.createElement(QuickSearch, { title: "Search", className: "view-title", onChange: onQuickSearch })),
31
- filterViewProps: {
32
- columns: [
33
- React.createElement(AssigneeViewFilter, { key: "AssigneeViewFilter" }),
34
- React.createElement(StartDateFilter, { key: "StartDateFilter", title: "MeetingDate" }),
35
- ],
36
- },
37
- addAble: !readonly,
38
- quickSearch: !!quickSearch,
39
- onAdd: onAdd,
40
- }, formViewTitle: "Add Meeting", formView: !props.propertiesView && React.createElement(NewMeetingForm, { parentId: parentId }), propertiesView: (id) => !props.propertiesView && React.createElement(MeetingPropertiesView, { id: id }), renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
41
- active: activeId === item.id,
42
- hoverEffect: "background",
43
- hoverBackgroundProps: { color: "#f2f2f2" },
44
- activeEffect: "border",
45
- borderProps: { location: "right", color: "#1890ff ", size: "2px" },
46
- }, onClick: () => setActiveId(item.id) },
47
- React.createElement(MeetingItem, { id: item.id, isList: !props.propertiesView, reload: !!readonly }))) }),
48
- !!addAble && (React.createElement(NewMeetingForm, { parentId: parentId, simple: true, onCancel: () => setAddAble(false) })))));
34
+ useEffect(() => {
35
+ setupExtra();
36
+ }, [props.parentId, frame === null || frame === void 0 ? void 0 : frame.view]);
37
+ return observe(() => (React.createElement(AsideContent, { context: asideContext },
38
+ React.createElement(ListDataContext.Provider, { value: list },
39
+ React.createElement(ListView, { renderId: parentId, headerProps: {
40
+ // viewTitle: props.title,
41
+ header: quickSearch ? undefined : (React.createElement(QuickSearch, { title: "Search", className: "view-title", onChange: onQuickSearch })),
42
+ filterViewProps: {
43
+ columns: [
44
+ React.createElement(AssigneeViewFilter, { key: "AssigneeViewFilter" }),
45
+ React.createElement(StartDateFilter, { key: "StartDateFilter", title: "MeetingDate" }),
46
+ ],
47
+ },
48
+ addAble: !readonly,
49
+ quickSearch: !!quickSearch,
50
+ onAdd: onAdd,
51
+ visible: false
52
+ }, formViewTitle: "Add Meeting", formView: !props.propertiesView && React.createElement(NewMeetingForm, { parentId: parentId }), propertiesView: (id) => !props.propertiesView && React.createElement(MeetingPropertiesView, { id: id }), renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
53
+ active: activeId === item.id,
54
+ hoverEffect: "background",
55
+ hoverBackgroundProps: { color: "#f2f2f2" },
56
+ activeEffect: "border",
57
+ borderProps: { location: "right", color: "#1890ff ", size: "2px" },
58
+ }, onClick: () => setActiveId(item.id) },
59
+ React.createElement(MeetingItem, { id: item.id, isList: !props.propertiesView, reload: !!readonly }))) }),
60
+ !!addAble && (React.createElement(NewMeetingForm, { parentId: parentId, simple: true, onCancel: () => setAddAble(false) }))))));
49
61
  function onAdd() {
50
62
  if (!props.propertiesView)
51
63
  return;
@@ -54,6 +66,16 @@ const MeetingList = (props) => {
54
66
  function onQuickSearch(value) {
55
67
  list.triggerName(value);
56
68
  }
69
+ function setupExtra() {
70
+ if (!frame)
71
+ return;
72
+ frame.Extra = observe(() => (React.createElement(FilterOptionsContext.Provider, { value: list.filters },
73
+ quickSearch ? undefined : (React.createElement(QuickSearch, { title: "Search", className: "view-title", onChange: onQuickSearch })),
74
+ React.createElement(SortViewDropdown, { onSort: (sort) => list.triggerSort(sort), className: "margin-left-10" }),
75
+ React.createElement(FilterView, { columns: [React.createElement(AssigneeViewFilter, { key: "AssigneeViewFilter" }),
76
+ React.createElement(StartDateFilter, { key: "StartDateFilter", title: "MeetingDate" }),], className: "margin-left-10" }),
77
+ React.createElement(AddForm, { formViewTitle: "Add Meeting", formView: React.createElement(NewMeetingForm, { parentId: parentId, simple: true }), onAdd: (addFormElement) => asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(addFormElement, { span: 12 }), onClose: () => asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside() }))));
78
+ }
57
79
  };
58
80
  export default MeetingList;
59
81
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AAEtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,qBAAqB,MAAM,wCAAwC,CAAC;AAC3E,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,WAAW,MAAM,sEAAsE,CAAC;AAE/F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,GAAG,CAAC,KAQpB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAElD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAE7C,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,QAAQ,EAAE,0BAA0B;YACpC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC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EACvD,KAAK,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAChF,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,GACxC,CAC6B,CAChC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
@@ -14,7 +14,7 @@ const Documents = (props) => {
14
14
  /** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
15
15
  const list = useCreateListDataState({
16
16
  filterDefaults: {
17
- includes: "tags,path",
17
+ includes: "tags",
18
18
  filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
19
19
  },
20
20
  }, [id]);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/components/Documents/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAEN,qBAAqB,EACrB,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,YAAY,MAAM,kEAAkE,CAAC;AAC5F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,gBAAgB,MAAM,2EAA2E,CAAC;AACzG,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC3C,MAAM,EAAE,EA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C,CAAC,EAAE,EAAE,CAAC,CACrB,oBAAC,YAAY,IAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAI,CACrC,CAAC,CACwB,CACtB,CACM,CACR,CACN,CAAC,CAAC;IACH,SAAS,MAAM,CAAC,IAAqB;QACpC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/components/Documents/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAEN,qBAAqB,EACrB,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,YAAY,MAAM,kEAAkE,CAAC;AAC5F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,gBAAgB,MAAM,2EAA2E,CAAC;AACzG,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC3C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,kFAAkF;IAClF,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;SAC1D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AAC;AACF,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -16,7 +16,7 @@ const Notes = (props) => {
16
16
  const [added, setAdded] = useState(false);
17
17
  const list = useCreateListDataState({
18
18
  filterDefaults: {
19
- includes: "tags,path",
19
+ includes: "tags",
20
20
  filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
21
21
  },
22
22
  }, [id]);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/components/Notes/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,gBAAgB,MAAM,2EAA2E,CAAC;AACzG,OAAO,eAAe,MAAM,sCAAsC,CAAC;AACnE,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,KAAK,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvC,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1C,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,QAAQ,EAAE,WAAW;YACrB,OAAO,EAAE,CAAC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,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -13,7 +13,7 @@ const Works = (props) => {
13
13
  /** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
14
14
  const list = useCreateListDataState({
15
15
  filterDefaults: {
16
- includes: "tags,path",
16
+ includes: "tags",
17
17
  filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
18
18
  },
19
19
  }, [id]);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/components/Works/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAEN,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AAEjF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,KAAK,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvC,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,kFAAkF;IAClF,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,QAAQ,EAAE,WAAW;YACrB,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;SAC1D;KACD,EACD,CAAC,EAAE,CAAC,CACJ,CAAC;IAE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E,qBAAqB,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,EAAE,CAAC,CAAC;IAEtD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QACpC,oBAAC,QAAQ,IACR,WAAW,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;YACtC,2BAA2B;YAC3B,SAAS,EAAC,gBAAgB;YAC1B,6BAA6B;YAC7B,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAO,EAAE,EAAE,CAAC,CACjD,oBAAC,KAAK,CAAC,QAAQ;gBACd,oBAAC,iBAAiB,IACjB,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,UAAU,EAAE;wBACX,WAAW,EAAE,YAAY;wBACzB,oBAAoB,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;wBAC1C,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE;qBACpC;oBAED,oBAAC,cAAc,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,SAAS,SAAG,CACtB,CACJ,CACjB,GACA,CACwB,CAC3B,CAAC,CAAC;IACH,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -19,7 +19,7 @@ const WorkSummaryCards = (props) => {
19
19
  /** 建立 ListView 和useDocumentListEffect所需的ListDataState. props.id重建所以不需reset. */
20
20
  const list = useCreateListDataState({
21
21
  filterDefaults: {
22
- includes: "tags,path",
22
+ includes: "tags",
23
23
  filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: props.id }],
24
24
  },
25
25
  }, [props.id]);
@@ -1 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,EAAE,MAAM,EAAE;4BAChC,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;yBAC7C;wBACD,OAAO,EAAE,KAAK;qBACd,EACD,SAAS,EAAE,KAAK,CAAC,IAAI,EACrB,WAAW,EAAC,MAAM,EAClB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,oBAAC,YAAY,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAI,GACzE,CACwB,CACtB,CACN,CACI,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Work/components/WorkSummaryCards/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,qBAAqB,EACrB,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,iBAAiB,MAAM,mDAAmD,CAAC;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,iBAAiB,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K,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,IAC9D,KAAK,CAAC,WAAW,IAAI,CACrB,6BAAK,GAAG,EAAE,QAAQ;YACjB,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;gBACpC,oBAAC,iBAAiB,IACjB,WAAW,EAAE;wBACZ,YAAY,EAAE,IAAI;wBAClB,eAAe,EAAE;4BAChB,OAAO,EAAE,CAAC,6BAAK,GAAG,EAAC,GAAG,GAAO,CAAC;yBAC9B;wBACD,WAAW,EAAE;4BACZ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;4BAChC,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;yBAC7C;wBACD,OAAO,EAAE,KAAK;qBACd,EACD,SAAS,EAAE,KAAK,CAAC,IAAI,EACrB,WAAW,EAAC,MAAM,EAClB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,oBAAC,YAAY,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAI,GACzE,CACwB,CACtB,CACN,CACI,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",