@voplus/morpho-document 6.1.67 → 6.1.69
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.js +0 -2
- package/es/Modules.js.map +1 -1
- package/es/components/DocumentItem/DocumentItem2.js +2 -1
- package/es/components/DocumentItem/DocumentItem2.js.map +1 -1
- package/es/components/DocumentTree2/index.js.map +1 -1
- package/es/components/PasteListInDocument/index.js +15 -4
- package/es/components/PasteListInDocument/index.js.map +1 -1
- package/es/controls/DocumentMenu/SubPasteDropdown/SubPasteMenu.js +24 -17
- package/es/controls/DocumentMenu/SubPasteDropdown/SubPasteMenu.js.map +1 -1
- package/es/controls/DocumentMenu/items/Paste.js +8 -6
- package/es/controls/DocumentMenu/items/Paste.js.map +1 -1
- package/es/controls/DocumentMenu/items/PasteLinks.js +8 -6
- package/es/controls/DocumentMenu/items/PasteLinks.js.map +1 -1
- package/es/controls/DocumentMenu/items/PasteShortcut.js +8 -6
- package/es/controls/DocumentMenu/items/PasteShortcut.js.map +1 -1
- package/es/data/action-plan/interfaces.d.ts +12 -0
- package/es/data/action-plan/types.d.ts +10 -2
- package/es/data/action-plan-template/interfaces.d.ts +1 -0
- package/es/data/action-plan-template/types.d.ts +2 -2
- package/es/modules/action-plan/components/ActionPlanItem/index.d.ts +4 -1
- package/es/modules/action-plan/components/ActionPlanItem/index.js +22 -27
- package/es/modules/action-plan/components/ActionPlanItem/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionPlanItem/index.less +15 -12
- package/es/modules/action-plan/components/ActionPlanList/index.d.ts +2 -23
- package/es/modules/action-plan/components/ActionPlanList/index.js +40 -83
- package/es/modules/action-plan/components/ActionPlanList/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionPlanList/index.less +1 -11
- package/es/modules/action-plan/components/ActionPlanTabs/index.js +1 -2
- package/es/modules/action-plan/components/ActionPlanTabs/index.js.map +1 -1
- package/es/modules/action-plan/components/NewActionsForm/index.d.ts +9 -0
- package/es/modules/action-plan/components/NewActionsForm/index.js +28 -0
- package/es/modules/action-plan/components/NewActionsForm/index.js.map +1 -0
- package/es/modules/action-plan/components/NewActionsForm/state.d.ts +18 -0
- package/es/modules/action-plan/components/NewActionsForm/state.js +58 -0
- package/es/modules/action-plan/components/NewActionsForm/state.js.map +1 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.js +4 -2
- package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.js.map +1 -1
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.js +1 -1
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.js.map +1 -1
- package/es/modules/document-register/pages/DocumentRegisterListPage/index.d.ts +1 -0
- package/es/modules/document-register/pages/DocumentRegisterListPage/index.js +4 -4
- package/es/modules/document-register/pages/DocumentRegisterListPage/index.js.map +1 -1
- package/es/modules/registered-document/components/RegisteredDocumentListHeader/index.d.ts +2 -1
- package/es/modules/registered-document/components/RegisteredDocumentListHeader/index.js +23 -5
- package/es/modules/registered-document/components/RegisteredDocumentListHeader/index.js.map +1 -1
- package/es/modules/registered-document/components/RegisteredDocumentTableList/index.d.ts +2 -2
- package/es/modules/registered-document/components/RegisteredDocumentTableList/index.js +6 -6
- package/es/modules/registered-document/components/RegisteredDocumentTableList/index.js.map +1 -1
- package/es/modules/registered-document/components/TypesView/index.js +12 -16
- package/es/modules/registered-document/components/TypesView/index.js.map +1 -1
- package/es/obsolete/LibraryDefaultView/LibraryDefaultView2.js +2 -3
- package/es/obsolete/LibraryDefaultView/LibraryDefaultView2.js.map +1 -1
- package/es/obsolete/LibraryDefaultView/index.js +2 -3
- package/es/obsolete/LibraryDefaultView/index.js.map +1 -1
- package/es/pages/TreeViewPage/index.js.map +1 -1
- package/es/routes.d.ts +0 -6
- package/es/routes.js +0 -13
- package/es/routes.js.map +1 -1
- package/es/views/TreeView/index.js.map +1 -1
- package/package.json +1 -1
- package/es/components/DocumentSortableTree/SortableTreeContext.d.ts +0 -8
- package/es/components/DocumentSortableTree/SortableTreeContext.js +0 -25
- package/es/components/DocumentSortableTree/SortableTreeContext.js.map +0 -1
- package/es/components/DocumentSortableTree/index.d.ts +0 -11
- package/es/components/DocumentSortableTree/index.js +0 -161
- package/es/components/DocumentSortableTree/index.js.map +0 -1
- package/es/components/DocumentSortableTree/index.less +0 -22
- package/es/components/DocumentSortableTree/state.d.ts +0 -88
- package/es/components/DocumentSortableTree/state.js +0 -339
- package/es/components/DocumentSortableTree/state.js.map +0 -1
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/index.d.ts +0 -3
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/index.js +0 -22
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/index.js.map +0 -1
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.d.ts +0 -4
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js +0 -85
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +0 -1
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.less +0 -406
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.d.ts +0 -3
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.js +0 -21
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.js.map +0 -1
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.less +0 -4
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/index.d.ts +0 -4
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/index.js +0 -23
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/index.js.map +0 -1
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.d.ts +0 -3
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.js +0 -60
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.js.map +0 -1
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.less +0 -64
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.d.ts +0 -3
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.js +0 -95
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.js.map +0 -1
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.less +0 -18
- package/es/data/message-schedule/MessageScheduleStore.d.ts +0 -33
- package/es/data/message-schedule/MessageScheduleStore.js +0 -115
- package/es/data/message-schedule/MessageScheduleStore.js.map +0 -1
- package/es/data/message-schedule/hooks.d.ts +0 -10
- package/es/data/message-schedule/hooks.js +0 -18
- package/es/data/message-schedule/hooks.js.map +0 -1
- package/es/data/message-schedule/index.d.ts +0 -4
- package/es/data/message-schedule/index.js +0 -5
- package/es/data/message-schedule/index.js.map +0 -1
- package/es/data/message-schedule/interfaces.d.ts +0 -12
- package/es/data/message-schedule/interfaces.js +0 -2
- package/es/data/message-schedule/interfaces.js.map +0 -1
- package/es/data/message-schedule/message-schedule-events/index.d.ts +0 -3
- package/es/data/message-schedule/message-schedule-events/index.js +0 -4
- package/es/data/message-schedule/message-schedule-events/index.js.map +0 -1
- package/es/data/message-schedule/message-schedule-events/useAutoUpdateListData.d.ts +0 -4
- package/es/data/message-schedule/message-schedule-events/useAutoUpdateListData.js +0 -15
- package/es/data/message-schedule/message-schedule-events/useAutoUpdateListData.js.map +0 -1
- package/es/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.d.ts +0 -4
- package/es/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.js +0 -16
- package/es/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.js.map +0 -1
- package/es/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.d.ts +0 -4
- package/es/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.js +0 -17
- package/es/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.js.map +0 -1
- package/es/data/message-schedule/metas.d.ts +0 -9
- package/es/data/message-schedule/metas.js +0 -31
- package/es/data/message-schedule/metas.js.map +0 -1
- package/es/data/message-schedule/types.d.ts +0 -25
- package/es/data/message-schedule/types.js +0 -2
- package/es/data/message-schedule/types.js.map +0 -1
- package/es/modules/action-plan/components/ActionPlanListQuickView/index.d.ts +0 -8
- package/es/modules/action-plan/components/ActionPlanListQuickView/index.js +0 -12
- package/es/modules/action-plan/components/ActionPlanListQuickView/index.js.map +0 -1
- package/es/modules/action-plan/components/ActionPlanListQuickView/index.less +0 -11
- package/es/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.d.ts +0 -9
- package/es/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.js +0 -13
- package/es/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.js.map +0 -1
- package/es/modules/action-plan/components/NewActionPlanForm/index.d.ts +0 -15
- package/es/modules/action-plan/components/NewActionPlanForm/index.js +0 -59
- package/es/modules/action-plan/components/NewActionPlanForm/index.js.map +0 -1
- package/es/modules/action-plan/components/NewActionPlanForm/index.less +0 -10
- package/es/modules/action-plan/components/NewActionPlanForm/state.d.ts +0 -12
- package/es/modules/action-plan/components/NewActionPlanForm/state.js +0 -32
- package/es/modules/action-plan/components/NewActionPlanForm/state.js.map +0 -1
- package/es/modules/message-schedule/components/MessageScheduleHeader/index.d.ts +0 -12
- package/es/modules/message-schedule/components/MessageScheduleHeader/index.js +0 -22
- package/es/modules/message-schedule/components/MessageScheduleHeader/index.js.map +0 -1
- package/es/modules/message-schedule/components/MessageScheduleItem/index.d.ts +0 -5
- package/es/modules/message-schedule/components/MessageScheduleItem/index.js +0 -40
- package/es/modules/message-schedule/components/MessageScheduleItem/index.js.map +0 -1
- package/es/modules/message-schedule/components/MessageScheduleItem/index.less +0 -30
- package/es/modules/message-schedule/components/MessageScheduleList/index.d.ts +0 -27
- package/es/modules/message-schedule/components/MessageScheduleList/index.js +0 -93
- package/es/modules/message-schedule/components/MessageScheduleList/index.js.map +0 -1
- package/es/modules/message-schedule/components/MessageScheduleList/index.less +0 -14
- package/es/modules/message-schedule/components/MessageScheduleProperties/index.d.ts +0 -20
- package/es/modules/message-schedule/components/MessageScheduleProperties/index.js +0 -57
- package/es/modules/message-schedule/components/MessageScheduleProperties/index.js.map +0 -1
- package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.d.ts +0 -6
- package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.js +0 -23
- package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.js.map +0 -1
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.d.ts +0 -8
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.js +0 -13
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.js.map +0 -1
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.less +0 -15
- package/es/modules/message-schedule/components/MessageScheduleTabs/index.d.ts +0 -6
- package/es/modules/message-schedule/components/MessageScheduleTabs/index.js +0 -52
- package/es/modules/message-schedule/components/MessageScheduleTabs/index.js.map +0 -1
- package/es/modules/message-schedule/components/NewMessageScheduleForm/NewMessageScheduleFormDialog.d.ts +0 -10
- package/es/modules/message-schedule/components/NewMessageScheduleForm/NewMessageScheduleFormDialog.js +0 -14
- package/es/modules/message-schedule/components/NewMessageScheduleForm/NewMessageScheduleFormDialog.js.map +0 -1
- package/es/modules/message-schedule/components/NewMessageScheduleForm/index.d.ts +0 -15
- package/es/modules/message-schedule/components/NewMessageScheduleForm/index.js +0 -62
- package/es/modules/message-schedule/components/NewMessageScheduleForm/index.js.map +0 -1
- package/es/modules/message-schedule/components/NewMessageScheduleForm/index.less +0 -17
- package/es/modules/message-schedule/components/NewMessageScheduleForm/state.d.ts +0 -12
- package/es/modules/message-schedule/components/NewMessageScheduleForm/state.js +0 -32
- package/es/modules/message-schedule/components/NewMessageScheduleForm/state.js.map +0 -1
- package/es/modules/message-schedule/controls/MessageScheduleMenu/index.d.ts +0 -10
- package/es/modules/message-schedule/controls/MessageScheduleMenu/index.js +0 -23
- package/es/modules/message-schedule/controls/MessageScheduleMenu/index.js.map +0 -1
- package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.d.ts +0 -3
- package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.js +0 -29
- package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.js.map +0 -1
- package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.less +0 -7
package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import React, { Children, cloneElement, useCallback, useRef, useState } from "react";
|
|
2
|
-
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import { useSortableTreeContext } from "../../SortableTreeContext";
|
|
4
|
-
import classnames from "classnames";
|
|
5
|
-
import styles from "./tree-node-renderer.less";
|
|
6
|
-
const FileThemeTreeNodeRenderer = (props) => {
|
|
7
|
-
const { children, listIndex, swapFrom, swapLength, swapDepth, scaffoldBlockPxWidth, lowerSiblingCounts, connectDropTarget, isOver, draggedNode, canDrop, treeIndex, treeId, // Delete from otherProps
|
|
8
|
-
getPrevRow, // Delete from otherProps
|
|
9
|
-
node, // Delete from otherProps
|
|
10
|
-
path, // Delete from otherProps
|
|
11
|
-
rowDirection, ...otherProps } = props;
|
|
12
|
-
const ref = useRef(null);
|
|
13
|
-
const tree = useSortableTreeContext();
|
|
14
|
-
const [width, setWidth] = useState(0);
|
|
15
|
-
// Construct the scaffold representing the structure of the tree
|
|
16
|
-
const scaffoldBlockCount = lowerSiblingCounts.length;
|
|
17
|
-
const scaffold = [];
|
|
18
|
-
lowerSiblingCounts.forEach((lowerSiblingCount, i) => {
|
|
19
|
-
let lineClass = "";
|
|
20
|
-
if (lowerSiblingCount > 0) {
|
|
21
|
-
// At this level in the tree, the nodes had sibling nodes further down
|
|
22
|
-
if (listIndex === 0) {
|
|
23
|
-
// Top-left corner of the tree
|
|
24
|
-
lineClass = "rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom";
|
|
25
|
-
}
|
|
26
|
-
else if (i === scaffoldBlockCount - 1) {
|
|
27
|
-
// Last scaffold block in the row, right before the row content
|
|
28
|
-
lineClass = "rst__lineHalfHorizontalRight rst__lineFullVertical";
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
// Simply connecting the line extending down to the next sibling on this level
|
|
32
|
-
lineClass = "rst__lineFullVertical";
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
else if (listIndex === 0) {
|
|
36
|
-
// Top-left corner of the tree, but has no siblings
|
|
37
|
-
lineClass = "rst__lineHalfHorizontalRight";
|
|
38
|
-
}
|
|
39
|
-
else if (i === scaffoldBlockCount - 1) {
|
|
40
|
-
// The last or only node in this level of the tree
|
|
41
|
-
lineClass = "rst__lineHalfVerticalTop rst__lineHalfHorizontalRight";
|
|
42
|
-
}
|
|
43
|
-
scaffold.push(React.createElement("div", { key: `pre_${1 + i}`, style: { width: scaffoldBlockPxWidth }, className: classnames("rst__lineBlock", lineClass) }));
|
|
44
|
-
if (treeIndex !== listIndex && i === swapDepth) {
|
|
45
|
-
// This row has been shifted, and is at the depth of
|
|
46
|
-
// the line pointing to the new destination
|
|
47
|
-
let highlightLineClass = "";
|
|
48
|
-
if (listIndex === swapFrom + swapLength - 1) {
|
|
49
|
-
// This block is on the bottom (target) line
|
|
50
|
-
// This block points at the target block (where the row will go when released)
|
|
51
|
-
highlightLineClass = "rst__highlightBottomLeftCorner";
|
|
52
|
-
}
|
|
53
|
-
else if (treeIndex === swapFrom) {
|
|
54
|
-
// This block is on the top (source) line
|
|
55
|
-
highlightLineClass = "rst__highlightTopLeftCorner";
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
// This block is between the bottom and top
|
|
59
|
-
highlightLineClass = "rst__highlightLineVertical";
|
|
60
|
-
}
|
|
61
|
-
const style = {
|
|
62
|
-
width: scaffoldBlockPxWidth,
|
|
63
|
-
left: scaffoldBlockPxWidth * i,
|
|
64
|
-
};
|
|
65
|
-
scaffold.push(React.createElement("div", { key: i, style: style, className: classnames("rst__absoluteLineBlock", highlightLineClass) }));
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
const nodeRef = useCallback((node) => {
|
|
69
|
-
if (node !== null) {
|
|
70
|
-
setTimeout(() => {
|
|
71
|
-
setWidth(node.getBoundingClientRect().width);
|
|
72
|
-
}, 500);
|
|
73
|
-
}
|
|
74
|
-
}, [tree.isAside]);
|
|
75
|
-
return observe(() => {
|
|
76
|
-
var _a, _b;
|
|
77
|
-
return connectDropTarget(React.createElement("div", { ...otherProps, ref: nodeRef, className: classnames("rst__node", styles["documenet-node"]), style: {
|
|
78
|
-
width: "100%",
|
|
79
|
-
height: 98,
|
|
80
|
-
} },
|
|
81
|
-
scaffold,
|
|
82
|
-
React.createElement("div", { className: "rst__nodeContent", style: {
|
|
83
|
-
left: scaffoldBlockPxWidth * scaffoldBlockCount,
|
|
84
|
-
width: ((_a = ref.current) === null || _a === void 0 ? void 0 : _a.clientWidth) < width - scaffoldBlockPxWidth * scaffoldBlockCount - 10
|
|
85
|
-
? (_b = ref.current) === null || _b === void 0 ? void 0 : _b.clientWidth
|
|
86
|
-
: width - scaffoldBlockPxWidth * scaffoldBlockCount - 10,
|
|
87
|
-
}, ref: ref }, Children.map(children, (child) => cloneElement(child, {
|
|
88
|
-
isOver,
|
|
89
|
-
canDrop,
|
|
90
|
-
draggedNode,
|
|
91
|
-
})))));
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
export default FileThemeTreeNodeRenderer;
|
|
95
|
-
//# sourceMappingURL=tree-node-renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree-node-renderer.js","sourceRoot":"","sources":["../../../../../src/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/t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,WAAW;aACX,CAAC,CACF,CACI,CACD,CACN,CAAA;KAAA,CACD,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.less
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
-
|
|
3
|
-
.documenet-node {
|
|
4
|
-
white-space: normal;
|
|
5
|
-
:global {
|
|
6
|
-
.rst__lineHalfHorizontalRight::before,
|
|
7
|
-
.rst__lineFullVertical::after,
|
|
8
|
-
.rst__lineHalfVerticalTop::after,
|
|
9
|
-
.rst__lineHalfVerticalBottom::after {
|
|
10
|
-
position: absolute;
|
|
11
|
-
content: "";
|
|
12
|
-
background-color: #cccccc !important;
|
|
13
|
-
}
|
|
14
|
-
.document-item .file-type svg {
|
|
15
|
-
color: @purple-primary-color;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ApiEndPoint } from "@voplus/api";
|
|
2
|
-
import { CountedMap, Store } from "@voplus/morpho-data";
|
|
3
|
-
import { CreateMessageScheduleOptions, DeleteMessageScheduleOptions, EditMessageScheduleOptions, LoadMessageScheduleOptions } from "./types";
|
|
4
|
-
import { IMessageSchedule } from "./interfaces";
|
|
5
|
-
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
6
|
-
/** Quotation store supply backend functions. */
|
|
7
|
-
export declare class MessageScheduleStore extends Store {
|
|
8
|
-
readonly endpoint: ApiEndPoint;
|
|
9
|
-
/** Name of the store */
|
|
10
|
-
readonly name: string;
|
|
11
|
-
private readonly _messageScheduleDeleted;
|
|
12
|
-
private readonly _messageScheduleCreated;
|
|
13
|
-
constructor(endpoint: ApiEndPoint);
|
|
14
|
-
/** All currently used corporate. */
|
|
15
|
-
readonly items: CountedMap<string, IMessageSchedule>;
|
|
16
|
-
/** Event fires when a delete messageSchedule has been deleted. */
|
|
17
|
-
get MessageScheduleDeletedEvent(): import("strongly-typed-events").IEvent<MessageScheduleStore, IMessageSchedule>;
|
|
18
|
-
/** Event fires when a new MessageSchedule has been created. */
|
|
19
|
-
get MessageScheduleCreatedEvent(): import("strongly-typed-events").IEvent<MessageScheduleStore, IMessageSchedule>;
|
|
20
|
-
/** Create a new Identity. */
|
|
21
|
-
create(options: CreateMessageScheduleOptions): Promise<IMessageSchedule>;
|
|
22
|
-
/** Edit an existing item on server. */
|
|
23
|
-
edit(id: string, options: EditMessageScheduleOptions): Promise<void>;
|
|
24
|
-
/** messageSchedule 內有文件不能delete */
|
|
25
|
-
delete(ids: string[], options?: DeleteMessageScheduleOptions): Promise<any>;
|
|
26
|
-
/** Load a list of documents from server.
|
|
27
|
-
* @param {LoadDocumentListOptions}
|
|
28
|
-
*/
|
|
29
|
-
loadList(options?: LoadDocumentListOptions): Promise<IMessageSchedule[]>;
|
|
30
|
-
load(id: string, options: LoadMessageScheduleOptions): Promise<IMessageSchedule>;
|
|
31
|
-
}
|
|
32
|
-
/** 响应钩子检索 IdentityStore */
|
|
33
|
-
export declare const useMessageScheduleStore: () => MessageScheduleStore;
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { RequestBuilder } from "@voplus/api";
|
|
2
|
-
import { CountedMap, Store, useApplicationContext } from "@voplus/morpho-data";
|
|
3
|
-
import { observable } from "mobx";
|
|
4
|
-
import { EventDispatcher } from "strongly-typed-events";
|
|
5
|
-
const StoreName = "MessageScheduleStore";
|
|
6
|
-
/** Quotation store supply backend functions. */
|
|
7
|
-
export class MessageScheduleStore extends Store {
|
|
8
|
-
constructor(endpoint) {
|
|
9
|
-
super();
|
|
10
|
-
Object.defineProperty(this, "endpoint", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
configurable: true,
|
|
13
|
-
writable: true,
|
|
14
|
-
value: endpoint
|
|
15
|
-
});
|
|
16
|
-
/** Name of the store */
|
|
17
|
-
Object.defineProperty(this, "name", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true,
|
|
20
|
-
writable: true,
|
|
21
|
-
value: StoreName
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(this, "_messageScheduleDeleted", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true,
|
|
26
|
-
writable: true,
|
|
27
|
-
value: new EventDispatcher()
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(this, "_messageScheduleCreated", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
configurable: true,
|
|
32
|
-
writable: true,
|
|
33
|
-
value: new EventDispatcher()
|
|
34
|
-
});
|
|
35
|
-
/** All currently used corporate. */
|
|
36
|
-
Object.defineProperty(this, "items", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
configurable: true,
|
|
39
|
-
writable: true,
|
|
40
|
-
value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
/** Event fires when a delete messageSchedule has been deleted. */
|
|
44
|
-
get MessageScheduleDeletedEvent() {
|
|
45
|
-
return this._messageScheduleDeleted.asEvent();
|
|
46
|
-
}
|
|
47
|
-
/** Event fires when a new MessageSchedule has been created. */
|
|
48
|
-
get MessageScheduleCreatedEvent() {
|
|
49
|
-
return this._messageScheduleCreated.asEvent();
|
|
50
|
-
}
|
|
51
|
-
/** Create a new Identity. */
|
|
52
|
-
async create(options) {
|
|
53
|
-
// invariant(options.name, "Name cannot be empty.");
|
|
54
|
-
return await this.action(async () => {
|
|
55
|
-
const r = await this.endpoint.post(`/api/messages/schedules/create`, new RequestBuilder().json(options.data));
|
|
56
|
-
const t = (await r.json());
|
|
57
|
-
this._messageScheduleCreated.dispatch(this, t);
|
|
58
|
-
return t;
|
|
59
|
-
}, options);
|
|
60
|
-
}
|
|
61
|
-
/** Edit an existing item on server. */
|
|
62
|
-
async edit(id, options) {
|
|
63
|
-
await this.action(async () => {
|
|
64
|
-
const r = await this.endpoint.post(`/api/messages/schedules/${id}`, new RequestBuilder().json(options.data));
|
|
65
|
-
const t = await r.json();
|
|
66
|
-
this.items.overwrite(t.id, t);
|
|
67
|
-
}, options);
|
|
68
|
-
}
|
|
69
|
-
/** messageSchedule 內有文件不能delete */
|
|
70
|
-
async delete(ids, options) {
|
|
71
|
-
return await this.action(async () => {
|
|
72
|
-
await this.endpoint.delete(`/api/messages/schedules/delete`, new RequestBuilder().json({ Ids: ids, Options: options === null || options === void 0 ? void 0 : options.data }));
|
|
73
|
-
const deleted = [];
|
|
74
|
-
for (const id of ids) {
|
|
75
|
-
const item = this.items.peek(id);
|
|
76
|
-
if (item) {
|
|
77
|
-
deleted.push(item);
|
|
78
|
-
this._messageScheduleDeleted.dispatch(this, item);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return deleted;
|
|
82
|
-
}, options);
|
|
83
|
-
}
|
|
84
|
-
/** Load a list of documents from server.
|
|
85
|
-
* @param {LoadDocumentListOptions}
|
|
86
|
-
*/
|
|
87
|
-
async loadList(options) {
|
|
88
|
-
let query = "";
|
|
89
|
-
if (options === null || options === void 0 ? void 0 : options.Includes) {
|
|
90
|
-
query = query.concat(`includes=${options.Includes}`);
|
|
91
|
-
}
|
|
92
|
-
if (query)
|
|
93
|
-
query = "?".concat(query);
|
|
94
|
-
const r = await this.endpoint.post(`/api/messages/schedules${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
|
|
95
|
-
return (await r.json());
|
|
96
|
-
}
|
|
97
|
-
async load(id, options) {
|
|
98
|
-
let query = "";
|
|
99
|
-
if (options.includes)
|
|
100
|
-
query = query.concat(`includes=${options.includes}`);
|
|
101
|
-
if (query)
|
|
102
|
-
query = "?".concat(query);
|
|
103
|
-
const r = await this.endpoint.get(`/api/messages/schedules/${id}${query}`);
|
|
104
|
-
return await r.json();
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
/** 响应钩子检索 IdentityStore */
|
|
108
|
-
export const useMessageScheduleStore = () => {
|
|
109
|
-
const context = useApplicationContext();
|
|
110
|
-
if (!context.getStore(StoreName)) {
|
|
111
|
-
context.addStore(new MessageScheduleStore(context.api.currentEndPoint));
|
|
112
|
-
}
|
|
113
|
-
return context.getStore(StoreName);
|
|
114
|
-
};
|
|
115
|
-
//# sourceMappingURL=MessageScheduleStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MessageScheduleStore.js","sourceRoot":"","sources":["../../../src/data/message-schedule/MessageScheduleStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAS/E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,SAAS,GAAG,sBAAsB,CAAC;AAEzC,gDAAgD;AAChD,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAY9C,YAAmC,QAAqB;QACvD,KAAK,EAAE,CAAC;QADU;;;;mBAAgB,QAAQ;WAAa;QAXxD,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;QACxB;;;;mBAA0B,IAAI,eAAe,EAG3D;WAAC;QACa;;;;mBAA0B,IAAI,eAAe,EAG3D;WAAC;QAMJ,oCAAoC;QACpB;;;;mBAA8C,IAAI,UAAU,CAC3E,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAuB,CAAA,EACjE,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAClC;WAAC;IANF,CAAC;IAQD,kEAAkE;IAClE,IAAW,2BAA2B;QACrC,OAAO,IAAI,CAAC,uBAAuB,CAAC,OAAO,EAAE,CAAC;IAC/C,CAAC;IAED,+DAA+D;IAC/D,I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,EAAU,EAAE,OAAmC;QAChE,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,IAAI,OAAO,CAAC,QAAQ;YAAE,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3E,IAAI,KAAK;YAAE,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrC,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,2BAA2B,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;QAC3E,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;CACD;AAED,2BAA2B;AAC3B,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE;IAC3C,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QAClC,OAAO,CAAC,QAAQ,CAAC,IAAI,oBAAoB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA0B,CAAC;AAC7D,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
2
|
-
import { IMessageSchedule } from "./interfaces";
|
|
3
|
-
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
4
|
-
import { LoadMessageScheduleOptions } from ".";
|
|
5
|
-
/** React hook to retrieve a messageSchedule
|
|
6
|
-
* @param {string} id - id of the messageSchedule
|
|
7
|
-
* @param {LoadDocumentOptions} options - options
|
|
8
|
-
*/
|
|
9
|
-
export declare const useMessageSchedule: (id: string, options?: LoadMessageScheduleOptions) => IMessageSchedule;
|
|
10
|
-
export declare const useMessageScheduleListEffect: (list: ListDataContextState<IMessageSchedule> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { useListLoaderEffect } from "@voplus/morpho-ui/es/hooks";
|
|
2
|
-
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
|
3
|
-
import { useMessageScheduleStore } from "./MessageScheduleStore";
|
|
4
|
-
/** React hook to retrieve a messageSchedule
|
|
5
|
-
* @param {string} id - id of the messageSchedule
|
|
6
|
-
* @param {LoadDocumentOptions} options - options
|
|
7
|
-
*/
|
|
8
|
-
export const useMessageSchedule = (id, options) => {
|
|
9
|
-
options = options ? options : {};
|
|
10
|
-
const store = useMessageScheduleStore();
|
|
11
|
-
return useLoadCountedMapItem(id, store.items, (calculatedOptions) => store.load(id, calculatedOptions), options);
|
|
12
|
-
};
|
|
13
|
-
export const useMessageScheduleListEffect = (list, effect, options) => {
|
|
14
|
-
const deps = options ? options : {};
|
|
15
|
-
const store = useMessageScheduleStore();
|
|
16
|
-
return useListLoaderEffect(list, store.items, effect, () => store.loadList(options), [deps]);
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/message-schedule/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAU,EAAE,OAAoC,EAAE,EAAE;IACtF,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAAiC,CAAC;IACjE,MAAM,KAAK,GAAG,uBAAuB,EAAE,CAAC;IACxC,OAAO,qBAAqB,CAC3B,EAAE,EACF,KAAK,CAAC,KAAK,EACX,CAAC,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,EACxD,OAAO,CACP,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC3C,IAAmD,EACnD,MAA4C,EAC5C,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,KAAK,GAAG,uBAAuB,EAAE,CAAC;IACxC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/message-schedule/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ILoadable } from "@voplus/morpho-data";
|
|
2
|
-
import { INode } from "@voplus/morpho-document-core";
|
|
3
|
-
export type MessageScheduleStatus = "Draft" | "Scheduled";
|
|
4
|
-
export interface IMessageSchedule extends INode, ILoadable {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
message?: {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
11
|
-
offset?: number;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/message-schedule/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/message-schedule/message-schedule-events/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IMessageSchedule } from "../interfaces";
|
|
2
|
-
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
3
|
-
/** React hook to call action when a new MessageSchedule has been created. */
|
|
4
|
-
export declare const useAutoUpdateListData: (list: ListDataContextState<any>, shouldUpdate: (d: IMessageSchedule, event: string) => boolean) => void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useOnDeleteMessageSchedule, useOnNewMessageSchedule } from ".";
|
|
2
|
-
/** React hook to call action when a new MessageSchedule has been created. */
|
|
3
|
-
export const useAutoUpdateListData = (list, shouldUpdate) => {
|
|
4
|
-
useOnNewMessageSchedule((s, d) => {
|
|
5
|
-
console.log(s, d);
|
|
6
|
-
console.log(shouldUpdate(d, "new"));
|
|
7
|
-
if (shouldUpdate(d, "new"))
|
|
8
|
-
list.union([d]);
|
|
9
|
-
});
|
|
10
|
-
useOnDeleteMessageSchedule((s, d) => {
|
|
11
|
-
if (shouldUpdate(d, "new"))
|
|
12
|
-
list.remove(d.id);
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=useAutoUpdateListData.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAutoUpdateListData.js","sourceRoot":"","sources":["../../../../src/data/message-schedule/message-schedule-events/useAutoUpdateListData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAC;AAIxE,6EAA6E;AAC7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACpC,IAA+B,EAC/B,YAA6D,EAC5D,EAAE;IACH,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAChC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClB,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;QACpC,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,0BAA0B,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACnC,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { MessageScheduleStore } from "../MessageScheduleStore";
|
|
2
|
-
import { IMessageSchedule } from "../interfaces";
|
|
3
|
-
/** React hook to call action when a delete MessageSchedule has been created. */
|
|
4
|
-
export declare const useOnDeleteMessageSchedule: (action: (store: MessageScheduleStore, doc: IMessageSchedule) => void) => void;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useMessageScheduleStore } from "../MessageScheduleStore";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
/** React hook to call action when a delete MessageSchedule has been created. */
|
|
4
|
-
export const useOnDeleteMessageSchedule = (action) => {
|
|
5
|
-
const store = useMessageScheduleStore();
|
|
6
|
-
const onDeleteMessageSchedule = (store, doc) => {
|
|
7
|
-
action(store, doc);
|
|
8
|
-
};
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
store.MessageScheduleDeletedEvent.subscribe(onDeleteMessageSchedule);
|
|
11
|
-
return () => {
|
|
12
|
-
store.MessageScheduleDeletedEvent.unsubscribe(onDeleteMessageSchedule);
|
|
13
|
-
};
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=useOnDeleteMessageSchedule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOnDeleteMessageSchedule.js","sourceRoot":"","sources":["../../../../src/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,gFAAgF;AAChF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACzC,MAAoE,EACnE,EAAE;IACH,MAAM,KAAK,GAAG,uBAAuB,EAAE,CAAC;IACxC,MAAM,uBAAuB,GAAG,CAAC,KAA2B,EAAE,GAAqB,EAAE,EAAE;QACtF,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,2BAA2B,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QACrE,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,2BAA2B,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;QACxE,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { MessageScheduleStore } from "../MessageScheduleStore";
|
|
2
|
-
import { IMessageSchedule } from "../interfaces";
|
|
3
|
-
/** React hook to call action when a new MessageSchedule has been created. */
|
|
4
|
-
export declare const useOnNewMessageSchedule: (action: (store: MessageScheduleStore, doc: IMessageSchedule) => void) => void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useMessageScheduleStore } from "../MessageScheduleStore";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
/** React hook to call action when a new MessageSchedule has been created. */
|
|
4
|
-
export const useOnNewMessageSchedule = (action) => {
|
|
5
|
-
const store = useMessageScheduleStore();
|
|
6
|
-
const onNewMessageSchedule = (store, doc) => {
|
|
7
|
-
// console.log(`onNewMessageSchedule - ${doc.id} ${doc.name}`);
|
|
8
|
-
action(store, doc);
|
|
9
|
-
};
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
store.MessageScheduleCreatedEvent.subscribe(onNewMessageSchedule);
|
|
12
|
-
return () => {
|
|
13
|
-
store.MessageScheduleCreatedEvent.unsubscribe(onNewMessageSchedule);
|
|
14
|
-
};
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=useOnNewMessageSchedule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOnNewMessageSchedule.js","sourceRoot":"","sources":["../../../../src/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,6EAA6E;AAC7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACtC,MAAoE,EACnE,EAAE;IACH,MAAM,KAAK,GAAG,uBAAuB,EAAE,CAAC;IACxC,MAAM,oBAAoB,GAAG,CAAC,KAA2B,EAAE,GAAqB,EAAE,EAAE;QACnF,+DAA+D;QAC/D,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,2BAA2B,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QAClE,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,2BAA2B,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QACrE,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { INode, QuickViewProps } from "@voplus/morpho-document-core";
|
|
2
|
-
import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
|
|
3
|
-
export declare class MessageScheduleMeta extends DefaultDocumentTypeMeta {
|
|
4
|
-
static TypeName: string;
|
|
5
|
-
getRoute(node: INode): string;
|
|
6
|
-
get name(): string;
|
|
7
|
-
getPropertiesView(node: INode): JSX.Element;
|
|
8
|
-
getQuickView(node: INode, props: QuickViewProps): JSX.Element;
|
|
9
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { lazy } from "react";
|
|
2
|
-
import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
|
|
3
|
-
import { suspense } from "@voplus/morpho-ui/es/controls/Suspense";
|
|
4
|
-
const MessageSchedulePropertiesView = lazy(() => import("../../modules/message-schedule/components/MessageSchedulePropertiesView"));
|
|
5
|
-
const MessageScheduleQuickViewDialog = lazy(() => import("../../modules/message-schedule/components/MessageScheduleQuickViewDialog"));
|
|
6
|
-
export class MessageScheduleMeta extends DefaultDocumentTypeMeta {
|
|
7
|
-
getRoute(node) {
|
|
8
|
-
return `/message-schedule/${node.id}`;
|
|
9
|
-
}
|
|
10
|
-
get name() {
|
|
11
|
-
return MessageScheduleMeta.TypeName;
|
|
12
|
-
}
|
|
13
|
-
getPropertiesView(node) {
|
|
14
|
-
return suspense(MessageSchedulePropertiesView)({ id: node.id });
|
|
15
|
-
}
|
|
16
|
-
getQuickView(node, props) {
|
|
17
|
-
props.id = node.id;
|
|
18
|
-
return suspense(MessageScheduleQuickViewDialog)({
|
|
19
|
-
id: node.id,
|
|
20
|
-
visible: props.visible,
|
|
21
|
-
onCancel: props.onCancel,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
Object.defineProperty(MessageScheduleMeta, "TypeName", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true,
|
|
28
|
-
writable: true,
|
|
29
|
-
value: "MessageScheduleNode"
|
|
30
|
-
});
|
|
31
|
-
//# sourceMappingURL=metas.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/message-schedule/metas.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAElE,MAAM,6BAA6B,GAAG,IAAI,CACzC,GAAG,EAAE,CAAC,MAAM,CAAC,yEAAyE,CAAC,CACvF,CAAC;AACF,MAAM,8BAA8B,GAAG,IAAI,CAC1C,GAAG,EAAE,CAAC,MAAM,CAAC,0EAA0E,CAAC,CACxF,CAAC;AAEF,MAAM,OAAO,mBAAoB,SAAQ,uBAAuB;IAGxD,QAAQ,CAAC,IAAW;QAC1B,OAAO,qBAAqB,IAAI,CAAC,EAAE,EAAE,CAAC;IACvC,CAAC;IAED,IAAW,IAAI;QACd,OAAO,mBAAmB,CAAC,QAAQ,CAAC;IACrC,CAAC;IAEM,iBAAiB,CAAC,IAAW;QACnC,OAAO,QAAQ,CAAC,6BAA6B,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAEM,YAAY,CAAC,IAAW,EAAE,KAAqB;QACrD,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAEnB,OAAO,QAAQ,CAAC,8BAA8B,CAAC,CAAC;YAC/C,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;SACxB,CAAC,CAAC;IACJ,CAAC;;AAtBa;;;;WAAW,qBAAqB;GAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
|
|
2
|
-
import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
|
|
3
|
-
import { IMessageSchedule } from "./interfaces";
|
|
4
|
-
/** Custom load org contact options type */
|
|
5
|
-
export type LoadMessageScheduleOptions = {
|
|
6
|
-
/** Comma separated include options e.g. path */
|
|
7
|
-
includes?: string;
|
|
8
|
-
} & LoadOptions<IMessageSchedule>;
|
|
9
|
-
export type MessageScheduleCreateOptions = {
|
|
10
|
-
ParentId: string;
|
|
11
|
-
TemplateId: string;
|
|
12
|
-
};
|
|
13
|
-
export type MessageScheduleEditOptions = {
|
|
14
|
-
TemplateId?: string;
|
|
15
|
-
Offset?: number;
|
|
16
|
-
};
|
|
17
|
-
export type CreateMessageScheduleOptions = {
|
|
18
|
-
data: MessageScheduleCreateOptions;
|
|
19
|
-
} & StoreActionOptions;
|
|
20
|
-
export type EditMessageScheduleOptions = {
|
|
21
|
-
data: MessageScheduleEditOptions;
|
|
22
|
-
} & StoreActionOptions;
|
|
23
|
-
export type DeleteMessageScheduleOptions = {
|
|
24
|
-
data?: DeleteDocumentOptions;
|
|
25
|
-
} & StoreActionOptions;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/message-schedule/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import ActionPlanList from "../ActionPlanList";
|
|
4
|
-
import QuickViewDialog from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
5
|
-
import "./index.less";
|
|
6
|
-
const ActionPlanListQuickView = (props) => {
|
|
7
|
-
const { id } = props;
|
|
8
|
-
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "action-plan-list-quick-view" },
|
|
9
|
-
React.createElement(ActionPlanList, { parentNodeId: id, headerType: "tool" }))));
|
|
10
|
-
};
|
|
11
|
-
export default ActionPlanListQuickView;
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanListQuickView/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,eAAe,MAAM,gDAAgD,CAAC;AAC7E,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,OAAK,KAAK,EAAE,SAAS,EAAC,6BAA6B;QAClE,oBAAC,cAAc,IAAC,YAAY,EAAE,EAAE,EAAE,UAAU,EAAC,MAAM,GAAG,CACrC,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NewActionPlanFormProps } from "./index";
|
|
3
|
-
declare const NewActionPlanFormDialog: {
|
|
4
|
-
(props: NewActionPlanFormProps): React.JSX.Element;
|
|
5
|
-
defaultProps: {
|
|
6
|
-
openMode: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export default NewActionPlanFormDialog;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Modal } from "antd";
|
|
3
|
-
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import NewActionPlanForm from "./index";
|
|
5
|
-
const NewActionPlanFormDialog = (props) => {
|
|
6
|
-
return observe(() => (React.createElement(Modal, { title: "New Action Plan Form Dialog", open: true, closable: false, footer: false, onCancel: props.onCancel },
|
|
7
|
-
React.createElement(NewActionPlanForm, { ...props }))));
|
|
8
|
-
};
|
|
9
|
-
NewActionPlanFormDialog.defaultProps = {
|
|
10
|
-
openMode: "openDialog",
|
|
11
|
-
};
|
|
12
|
-
export default NewActionPlanFormDialog;
|
|
13
|
-
//# sourceMappingURL=NewActionPlanFormDialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NewActionPlanFormDialog.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,iBAA6C,MAAM,SAAS,CAAC;AAEpE,MAAM,uBAAuB,GAAG,CAAC,KAA6B,EAAE,EAAE;IACjE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,KAAK,EAAC,6BAA6B,EACnC,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,KAAK,EACb,QAAQ,EAAE,KAAK,CAAC,QAAQ;QAExB,oBAAC,iBAAiB,OAAK,KAAK,GAAI,CACzB,CACR,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,uBAAuB,CAAC,YAAY,GAAG;IACtC,QAAQ,EAAE,YAAY;CACtB,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type NewActionPlanFormProps = {
|
|
3
|
-
parentNodeId: string;
|
|
4
|
-
openMode?: "openAside" | "openDialog";
|
|
5
|
-
showView?: boolean;
|
|
6
|
-
onCancel?: () => void;
|
|
7
|
-
onSave?: (params?: any) => void;
|
|
8
|
-
};
|
|
9
|
-
declare const NewActionPlanForm: {
|
|
10
|
-
(props: NewActionPlanFormProps): React.JSX.Element;
|
|
11
|
-
defaultProps: {
|
|
12
|
-
openMode: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default NewActionPlanForm;
|