@voplus/morpho-csp 1.2.0-dev07 → 1.2.0-dev09
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 +7 -3
- package/es/Modules.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAPropertiesView/index.js +1 -1
- package/es/modules/corporate/CLDA/CLDAPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/components/CLDAMenu.js +1 -1
- package/es/modules/corporate/CLDA/components/CLDAMenu.js.map +1 -1
- package/es/modules/corporate/CLDA/controls/CLDAStatusButton/index.js +13 -16
- package/es/modules/corporate/CLDA/controls/CLDAStatusButton/index.js.map +1 -1
- package/es/modules/corporate/CLDA/controls/ModeIcon/index.d.ts +1 -1
- package/es/services/CLDAActivityLogRenderer.d.ts +18 -0
- package/es/services/CLDAActivityLogRenderer.js +42 -0
- package/es/services/CLDAActivityLogRenderer.js.map +1 -0
- package/package.json +1 -1
package/es/Modules.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ActivityLogRenderService } from "@voplus/morpho-document-core/es/services/ActivityLogRenderService";
|
|
2
|
+
import CLDAActivityLogRenderer from "./services/CLDAActivityLogRenderer";
|
|
1
3
|
import { DocumentMetaStore } from "@voplus/morpho-document/es/data/DocumentMetaStore";
|
|
2
4
|
import { FormElementRegister } from "@voplus/morpho-form/es/services/FormElementRegister";
|
|
3
5
|
import Routes from "./routes";
|
|
@@ -6,15 +8,17 @@ import registerItems from "@voplus/morpho-form/es/elements/registerItems";
|
|
|
6
8
|
const Modules = {
|
|
7
9
|
/** Register necessary module resources. */
|
|
8
10
|
register: (context) => {
|
|
9
|
-
if (!context.
|
|
10
|
-
context.
|
|
11
|
+
if (!context.getService(DocumentMetaStore.StoreName)) {
|
|
12
|
+
context.registerService(new DocumentMetaStore());
|
|
11
13
|
}
|
|
12
14
|
if (!context.getService(nameof(FormElementRegister))) {
|
|
13
15
|
const service = new FormElementRegister();
|
|
14
16
|
registerItems(service);
|
|
15
17
|
context.registerService(service);
|
|
16
18
|
}
|
|
17
|
-
const
|
|
19
|
+
const metas = context.getService(DocumentMetaStore.StoreName);
|
|
20
|
+
const ls = context.getService(ActivityLogRenderService.TypeName);
|
|
21
|
+
ls.addRenderer("CLDA", new CLDAActivityLogRenderer(metas));
|
|
18
22
|
// register coa type metas.
|
|
19
23
|
//store.addMeta(new ChartOfAccountsTypeMeta());
|
|
20
24
|
// register routes.
|
package/es/Modules.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modules.js","sourceRoot":"","sources":["../src/Modules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modules.js","sourceRoot":"","sources":["../src/Modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mEAAmE,CAAC;AAE7G,OAAO,uBAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,aAAa,MAAM,+CAA+C,CAAC;AAE1E,MAAM,OAAO,GAAG;IACf,2CAA2C;IAC3C,QAAQ,EAAE,CAAC,OAAmB,EAAE,EAAE;QACjC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE;YACrD,OAAO,CAAC,eAAe,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;SACjD;QAED,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,EAAE;YACrD,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE,CAAC;YAC1C,aAAa,CAAC,OAAO,CAAC,CAAC;YACvB,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;SACjC;QAED,MAAM,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAsB,CAAC;QACnF,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC,QAAQ,CAA6B,CAAC;QAC7F,EAAE,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,uBAAuB,CAAC,KAAK,CAAC,CAAC,CAAC;QAE3D,2BAA2B;QAC3B,+CAA+C;QAE/C,mBAAmB;QACnB,MAAM,CAAC,SAAS,EAAE,CAAC;IACpB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -13,7 +13,7 @@ const CLDAPropertiesView = (props) => {
|
|
|
13
13
|
const { id } = props;
|
|
14
14
|
const CLDA = useCLDA(id, { reload: true });
|
|
15
15
|
return observe(() => (React.createElement("div", { className: "CLDA-properties-view" },
|
|
16
|
-
React.createElement(DocumentHeader, { id: id, size: "h2", quickDataBarAlign: "left", flagVisible: false, preVisible: false, tools: React.createElement(Toolbar, { moreProps: { menus: { default: React.createElement(CLDAMenu, { id: props.id }) } } }) }),
|
|
16
|
+
React.createElement(DocumentHeader, { id: id, size: "h2", quickDataBarAlign: "left", flagVisible: false, preVisible: false, tools: React.createElement(Toolbar, { moreProps: { id: props.id, menus: { default: React.createElement(CLDAMenu, { id: props.id }) } } }) }),
|
|
17
17
|
CLDA.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
18
18
|
React.createElement(Skeleton, { active: true }))) : (React.createElement(DescriptionEditor, { id: id, description: CLDA.description, readonly: CLDA.readonly, padding: "0 0 0.75rem 0" })),
|
|
19
19
|
React.createElement(DocumentTabs, { id: id, details: React.createElement(CLDADetails, { id: id }) }))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/CLDA/CLDAPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAA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AAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -11,7 +11,7 @@ const CLDAMenu = (props) => {
|
|
|
11
11
|
return observe(() => (React.createElement(DocumentMenu, { id: props.id },
|
|
12
12
|
React.createElement(Button, { type: "link", key: "Envelope", onClick: invite },
|
|
13
13
|
React.createElement(FAIcon, { icon: faEnvelope }),
|
|
14
|
-
React.createElement("span", null, "
|
|
14
|
+
React.createElement("span", null, "Notify CLDA")),
|
|
15
15
|
React.createElement(Access, null),
|
|
16
16
|
React.createElement(Delete, null))));
|
|
17
17
|
/** email send */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CLDAMenu.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/CLDA/components/CLDAMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wDAAwD,CAAC;AAExF,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,MAAM,QAAQ,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE;QACzB,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,UAAU,EAAC,OAAO,EAAE,MAAM;YACjD,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI;YAC5B,
|
|
1
|
+
{"version":3,"file":"CLDAMenu.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/CLDA/components/CLDAMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wDAAwD,CAAC;AAExF,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,MAAM,QAAQ,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE;QACzB,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,UAAU,EAAC,OAAO,EAAE,MAAM;YACjD,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI;YAC5B,gDAAwB,CAChB;QAET,oBAAC,MAAM,OAAG;QACV,oBAAC,MAAM,OAAG,CACI,CACf,CAAC,CAAC;IAEH,iBAAiB;IACjB,KAAK,UAAU,MAAM;QACpB,MAAM,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACpD,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -2,21 +2,18 @@ import "./index.less";
|
|
|
2
2
|
import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import classnames from "classnames";
|
|
5
|
-
const CLDAStatusButton = (props) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{ name: "Completed" },
|
|
19
|
-
], status: (_a = props.status) !== null && _a !== void 0 ? _a : "", onChange: props.onChange })));
|
|
20
|
-
};
|
|
5
|
+
const CLDAStatusButton = (props) => (React.createElement("div", { className: props.className },
|
|
6
|
+
React.createElement(DocumentStatusLabel, { className: classnames("clda-status-button"), editable: props.editable, list: [
|
|
7
|
+
{ name: "Notified" },
|
|
8
|
+
{ name: "Opened" },
|
|
9
|
+
{ name: "SelectMode" },
|
|
10
|
+
{
|
|
11
|
+
name: "EmailConfirmation",
|
|
12
|
+
},
|
|
13
|
+
{ name: "Signing" },
|
|
14
|
+
{ name: "Ready" },
|
|
15
|
+
{ name: "Working" },
|
|
16
|
+
{ name: "Completed" },
|
|
17
|
+
], status: props.status, onChange: props.onChange })));
|
|
21
18
|
export default CLDAStatusButton;
|
|
22
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/CLDA/controls/CLDAStatusButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAGtB,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,gBAAgB,GAAG,CAAC,KAKzB,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/CLDA/controls/CLDAStatusButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAGtB,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,gBAAgB,GAAG,CAAC,KAKzB,EAAE,EAAE,CAAC,CACL,6BAAK,SAAS,EAAE,KAAK,CAAC,SAAS;IAC9B,oBAAC,mBAAmB,IACnB,SAAS,EAAE,UAAU,CAAC,oBAAoB,CAAC,EAC3C,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,IAAI,EAAE;YACL,EAAE,IAAI,EAAE,UAAU,EAAE;YACpB,EAAE,IAAI,EAAE,QAAQ,EAAE;YAClB,EAAE,IAAI,EAAE,YAAY,EAAE;YACtB;gBACC,IAAI,EAAE,mBAAmB;aACzB;YACD,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,OAAO,EAAE;YACjB,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,WAAW,EAAE;SACrB,EACD,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACG,CACN,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const ModeIcon: {
|
|
|
6
6
|
editable?: boolean | undefined;
|
|
7
7
|
mode?: "Physical" | "Digital" | undefined;
|
|
8
8
|
color?: string | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "xs" | "lg" | "sm" | undefined;
|
|
10
10
|
className?: string | undefined;
|
|
11
11
|
onchange?: ((params?: any) => void) | undefined;
|
|
12
12
|
}): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ActivityRenderer } from "@voplus/morpho-document-core/es/services/ActivityLogRenderService/ActivityRenderer";
|
|
2
|
+
import { IActivityLog } from "@voplus/morpho-document-core";
|
|
3
|
+
import { IDocumentIconService } from "@voplus/morpho-document-core/es/services/DocumentIconService";
|
|
4
|
+
import { LogRenderOptions } from "@voplus/morpho-document-core/es/services/ActivityLogRenderService";
|
|
5
|
+
import React from "react";
|
|
6
|
+
export declare const ActivityActionType: {
|
|
7
|
+
Notified: string;
|
|
8
|
+
};
|
|
9
|
+
declare class CLDAActivityLogRenderer extends ActivityRenderer {
|
|
10
|
+
protected icons: IDocumentIconService;
|
|
11
|
+
constructor(icons: IDocumentIconService);
|
|
12
|
+
protected getActionIconInfo(action: string): {
|
|
13
|
+
icon: React.ReactNode;
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
protected Log(item: IActivityLog, options?: LogRenderOptions): JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export default CLDAActivityLogRenderer;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ActivityRenderer } from "@voplus/morpho-document-core/es/services/ActivityLogRenderService/ActivityRenderer";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { faEnvelope } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import moment from "moment";
|
|
6
|
+
export const ActivityActionType = {
|
|
7
|
+
Notified: "Notified",
|
|
8
|
+
};
|
|
9
|
+
class CLDAActivityLogRenderer extends ActivityRenderer {
|
|
10
|
+
constructor(icons) {
|
|
11
|
+
super(icons);
|
|
12
|
+
Object.defineProperty(this, "icons", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value: icons
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
getActionIconInfo(action) {
|
|
20
|
+
const color = "";
|
|
21
|
+
switch (action) {
|
|
22
|
+
case ActivityActionType.Notified:
|
|
23
|
+
//color = "";
|
|
24
|
+
return { icon: React.createElement(FAIcon, { icon: faEnvelope, color: color }), color: color };
|
|
25
|
+
}
|
|
26
|
+
return super.getActionIconInfo(action);
|
|
27
|
+
}
|
|
28
|
+
Log(item, options) {
|
|
29
|
+
switch (item.action) {
|
|
30
|
+
case ActivityActionType.Notified:
|
|
31
|
+
return (React.createElement(React.Fragment, null,
|
|
32
|
+
React.createElement("div", null,
|
|
33
|
+
React.createElement("span", { className: "user-name" }, item.subject.name ? item.subject.name : ""),
|
|
34
|
+
React.createElement("span", { className: "action" }, "Notified "),
|
|
35
|
+
"contact"),
|
|
36
|
+
React.createElement("p", { className: "date-time" }, moment.utc(item.createDate).local().format("HH:mm:ss DD MMM, YYYY"))));
|
|
37
|
+
}
|
|
38
|
+
return super.Log(item, options);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export default CLDAActivityLogRenderer;
|
|
42
|
+
//# sourceMappingURL=CLDAActivityLogRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CLDAActivityLogRenderer.js","sourceRoot":"","sources":["../../src/services/CLDAActivityLogRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oFAAoF,CAAC;AACtH,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAI3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,QAAQ,EAAE,UAAU;CACpB,CAAC;AAEF,MAAM,uBAAwB,SAAQ,gBAAgB;IACrD,YAA6B,KAA2B;QACvD,KAAK,CAAC,KAAK,CAAC,CAAC;;;;;mBADe;;IAE7B,CAAC;IAES,iBAAiB,CAAC,MAAc;QACzC,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,QAAQ,MAAM,EAAE;YACf,KAAK,kBAAkB,CAAC,QAAQ;gBAC/B,aAAa;gBACb,OAAO,EAAE,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EA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