@voplus/morpho-workspace 11.2.3 → 11.2.6

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.
Files changed (94) hide show
  1. package/es/Modules.js +2 -0
  2. package/es/Modules.js.map +1 -1
  3. package/es/data/worktype/metas.d.ts +12 -0
  4. package/es/data/worktype/metas.js +23 -0
  5. package/es/data/worktype/metas.js.map +1 -0
  6. package/es/modules/{calendar/CalendarRoutes.d.ts → calendar-board/CalendarBoardRoutes.d.ts} +2 -1
  7. package/es/modules/{calendar/CalendarRoutes.js → calendar-board/CalendarBoardRoutes.js} +10 -9
  8. package/es/modules/calendar-board/CalendarBoardRoutes.js.map +1 -0
  9. package/es/modules/calendar-board/components/CalendarActionProperties/index.d.ts +20 -0
  10. package/es/modules/calendar-board/components/CalendarActionProperties/index.js +36 -0
  11. package/es/modules/calendar-board/components/CalendarActionProperties/index.js.map +1 -0
  12. package/es/modules/calendar-board/components/CalendarBoardGrid/index.d.ts +45 -0
  13. package/es/modules/calendar-board/components/CalendarBoardGrid/index.js +89 -0
  14. package/es/modules/calendar-board/components/CalendarBoardGrid/index.js.map +1 -0
  15. package/es/modules/calendar-board/components/CalendarEventChip/index.d.ts +22 -0
  16. package/es/modules/calendar-board/components/CalendarEventChip/index.js +20 -0
  17. package/es/modules/calendar-board/components/CalendarEventChip/index.js.map +1 -0
  18. package/es/modules/calendar-board/components/CalendarLegend/index.d.ts +42 -0
  19. package/es/modules/calendar-board/components/CalendarLegend/index.js +94 -0
  20. package/es/modules/calendar-board/components/CalendarLegend/index.js.map +1 -0
  21. package/es/modules/calendar-board/components/CalendarMoreLink/index.d.ts +11 -0
  22. package/es/modules/calendar-board/components/CalendarMoreLink/index.js +12 -0
  23. package/es/modules/calendar-board/components/CalendarMoreLink/index.js.map +1 -0
  24. package/es/modules/calendar-board/components/CalendarSidebar/index.d.ts +34 -0
  25. package/es/modules/calendar-board/components/CalendarSidebar/index.js +45 -0
  26. package/es/modules/calendar-board/components/CalendarSidebar/index.js.map +1 -0
  27. package/es/modules/calendar-board/components/CalendarToolbar/index.d.ts +30 -0
  28. package/es/modules/calendar-board/components/CalendarToolbar/index.js +30 -0
  29. package/es/modules/calendar-board/components/CalendarToolbar/index.js.map +1 -0
  30. package/es/modules/calendar-board/components/CalendarUpcomingBar/index.d.ts +30 -0
  31. package/es/modules/calendar-board/components/CalendarUpcomingBar/index.js +35 -0
  32. package/es/modules/calendar-board/components/CalendarUpcomingBar/index.js.map +1 -0
  33. package/es/modules/calendar-board/components/CalendarUpcomingEntry/index.d.ts +25 -0
  34. package/es/modules/calendar-board/components/CalendarUpcomingEntry/index.js +35 -0
  35. package/es/modules/calendar-board/components/CalendarUpcomingEntry/index.js.map +1 -0
  36. package/es/modules/calendar-board/components/CalendarViewFilter/index.d.ts +19 -0
  37. package/es/modules/calendar-board/components/CalendarViewFilter/index.js +29 -0
  38. package/es/modules/calendar-board/components/CalendarViewFilter/index.js.map +1 -0
  39. package/es/modules/calendar-board/components/CalendarViewSwitcher/index.d.ts +14 -0
  40. package/es/modules/calendar-board/components/CalendarViewSwitcher/index.js +15 -0
  41. package/es/modules/calendar-board/components/CalendarViewSwitcher/index.js.map +1 -0
  42. package/es/modules/calendar-board/event-meta.d.ts +262 -0
  43. package/es/modules/calendar-board/event-meta.js +329 -0
  44. package/es/modules/calendar-board/event-meta.js.map +1 -0
  45. package/es/modules/calendar-board/layout.d.ts +27 -0
  46. package/es/modules/calendar-board/layout.js +20 -0
  47. package/es/modules/calendar-board/layout.js.map +1 -0
  48. package/es/modules/calendar-board/pages/CalendarBoard/index.css +262 -0
  49. package/es/modules/calendar-board/pages/CalendarBoard/index.d.ts +4 -0
  50. package/es/modules/calendar-board/pages/CalendarBoard/index.js +323 -0
  51. package/es/modules/calendar-board/pages/CalendarBoard/index.js.map +1 -0
  52. package/es/modules/calendar-board/pages/CalendarBoard/state.d.ts +112 -0
  53. package/es/modules/calendar-board/pages/CalendarBoard/state.js +206 -0
  54. package/es/modules/calendar-board/pages/CalendarBoard/state.js.map +1 -0
  55. package/es/modules/calendar-board/sidebar-data.d.ts +35 -0
  56. package/es/modules/calendar-board/sidebar-data.js +28 -0
  57. package/es/modules/calendar-board/sidebar-data.js.map +1 -0
  58. package/es/modules/meeting/components/NewMeetingForm/index.js +1 -1
  59. package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
  60. package/es/modules/project/ProjectDefaultView/index.js +2 -2
  61. package/es/modules/project/ProjectDefaultView/index.js.map +1 -1
  62. package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js +2 -3
  63. package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js.map +1 -1
  64. package/es/modules/work/work-type/components/WorkTypeLink/index.d.ts +7 -0
  65. package/es/modules/work/work-type/components/WorkTypeLink/index.js +16 -0
  66. package/es/modules/work/work-type/components/WorkTypeLink/index.js.map +1 -0
  67. package/es/modules/work/work-type/components/WorkTypeList/index.d.ts +5 -2
  68. package/es/modules/work/work-type/components/WorkTypeList/index.js +8 -6
  69. package/es/modules/work/work-type/components/WorkTypeList/index.js.map +1 -1
  70. package/es/routes.js +2 -2
  71. package/es/routes.js.map +1 -1
  72. package/package.json +1 -1
  73. package/es/modules/calendar/CalendarRoutes.js.map +0 -1
  74. package/es/modules/calendar/components/ActionCard/index.d.ts +0 -7
  75. package/es/modules/calendar/components/ActionCard/index.js +0 -12
  76. package/es/modules/calendar/components/ActionCard/index.js.map +0 -1
  77. package/es/modules/calendar/components/CalendarEventContent/index.d.ts +0 -11
  78. package/es/modules/calendar/components/CalendarEventContent/index.js +0 -10
  79. package/es/modules/calendar/components/CalendarEventContent/index.js.map +0 -1
  80. package/es/modules/calendar/components/CalendarMenu/index.css +0 -30
  81. package/es/modules/calendar/components/CalendarMenu/index.d.ts +0 -7
  82. package/es/modules/calendar/components/CalendarMenu/index.js +0 -52
  83. package/es/modules/calendar/components/CalendarMenu/index.js.map +0 -1
  84. package/es/modules/calendar/pages/CalendarMonth/index.css +0 -248
  85. package/es/modules/calendar/pages/CalendarMonth/index.d.ts +0 -4
  86. package/es/modules/calendar/pages/CalendarMonth/index.js +0 -190
  87. package/es/modules/calendar/pages/CalendarMonth/index.js.map +0 -1
  88. package/es/modules/calendar/pages/CalendarMonth/state.d.ts +0 -11
  89. package/es/modules/calendar/pages/CalendarMonth/state.js +0 -58
  90. package/es/modules/calendar/pages/CalendarMonth/state.js.map +0 -1
  91. package/es/modules/my-document/SectionTemplate/documentGroups.test.d.ts +0 -1
  92. package/es/modules/my-document/SectionTemplate/documentGroups.test.js +0 -63
  93. package/es/modules/my-document/SectionTemplate/documentGroups.test.js.map +0 -1
  94. package/es/modules/work/work-type/components/WorkTypeList/index.css +0 -5
@@ -1,63 +0,0 @@
1
- import { describe, expect, it } from "vitest";
2
- import { buildGroupTree, computeExpandedRowKeys, filterVisibleGroups, groupRowId, sumGroupTotals, toggleCollapsedKey, } from "./documentGroups";
3
- /** 构造测试分组(list 仅提供 data,其余字段以 any 简化) */
4
- const makeGroup = (flag, total, docIds = []) => ({
5
- flag,
6
- title: flag,
7
- icon: undefined,
8
- total,
9
- list: { data: docIds.map((id) => ({ id })) },
10
- });
11
- describe("groupRowId", () => {
12
- it("生成分组行唯一 id", () => {
13
- expect(groupRowId("Star")).toBe("group-Star");
14
- expect(groupRowId("Urgent")).toBe("group-Urgent");
15
- expect(groupRowId("None")).toBe("group-None");
16
- });
17
- });
18
- describe("filterVisibleGroups", () => {
19
- it("隐藏 total 为 0 的分组并保持顺序", () => {
20
- const groups = [makeGroup("Star", 2), makeGroup("Urgent", 0), makeGroup("None", 3)];
21
- expect(filterVisibleGroups(groups).map((g) => g.flag)).toEqual(["Star", "None"]);
22
- });
23
- });
24
- describe("buildGroupTree", () => {
25
- it("每个可见分组生成一个分组行,children 为该分组文档", () => {
26
- const groups = [
27
- makeGroup("Star", 2, ["s1", "s2"]),
28
- makeGroup("Urgent", 0),
29
- makeGroup("None", 1, ["n1"]),
30
- ];
31
- const rows = buildGroupTree(groups);
32
- expect(rows.map((r) => r.flag)).toEqual(["Star", "None"]);
33
- expect(rows[0]).toMatchObject({ id: "group-Star", isGroup: true, count: 2, name: "Star" });
34
- expect(rows[0].children?.map((c) => c.id)).toEqual(["s1", "s2"]);
35
- expect(rows[1].children?.map((c) => c.id)).toEqual(["n1"]);
36
- });
37
- });
38
- describe("computeExpandedRowKeys", () => {
39
- it("默认展开所有分组行", () => {
40
- const rows = buildGroupTree([makeGroup("Star", 1, ["s1"]), makeGroup("Urgent", 1, ["u1"])]);
41
- expect(computeExpandedRowKeys(rows, new Set())).toEqual(["group-Star", "group-Urgent"]);
42
- });
43
- it("折叠的分组被排除", () => {
44
- const rows = buildGroupTree([makeGroup("Star", 1, ["s1"]), makeGroup("None", 1, ["n1"])]);
45
- expect(computeExpandedRowKeys(rows, new Set(["group-Star"]))).toEqual(["group-None"]);
46
- });
47
- });
48
- describe("toggleCollapsedKey", () => {
49
- it("向 Set 添加/移除 key 且不修改原 Set", () => {
50
- const base = new Set(["group-Star"]);
51
- const afterAdd = toggleCollapsedKey(base, "group-None");
52
- expect(afterAdd.has("group-None")).toBe(true);
53
- expect(base.has("group-None")).toBe(false);
54
- const afterRemove = toggleCollapsedKey(afterAdd, "group-None");
55
- expect(afterRemove.has("group-None")).toBe(false);
56
- });
57
- });
58
- describe("sumGroupTotals", () => {
59
- it("返回各分组 total 之和", () => {
60
- expect(sumGroupTotals([makeGroup("Star", 2), makeGroup("Urgent", 0), makeGroup("None", 3)])).toBe(5);
61
- });
62
- });
63
- //# sourceMappingURL=documentGroups.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documentGroups.test.js","sourceRoot":"","sources":["../../../../src/modules/my-document/SectionTemplate/documentGroups.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACN,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,UAAU,EACV,c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