@voplus/morpho-workspace 6.0.121 → 6.0.123

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@ import { INotification, INewNotification, NotificationStatus } from ".";
2
2
  import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
3
3
  import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
4
4
  import { FilterOption, PageParameters } from "@voplus/morpho-data/es/types";
5
+ import { PlaceholderValue } from "@voplus/morpho-document/es/data/message-template";
5
6
  import dayjs from "dayjs";
6
7
  /** Custom load notification list options type */
7
8
  export type LoadNotificationListOptions = {
@@ -41,6 +42,7 @@ export type CreateNotificationOptions = {
41
42
  Channels: number;
42
43
  Subject?: string;
43
44
  Body?: string;
45
+ Placeholders?: PlaceholderValue;
44
46
  };
45
47
  } & StoreActionOptions;
46
48
  /** Custom load notification list options type. */
@@ -4,7 +4,7 @@ import { observe } from "@voplus/morpho-ui";
4
4
  import { Scrollbars } from "react-custom-scrollbars-2";
5
5
  import { useNotificationStore } from "../../../../data/notification";
6
6
  import { useMessageTemplateStore } from "@voplus/morpho-document/es/data/message-template";
7
- import { Form, Row, Col, Space, Button, Tabs, Checkbox, Input, message, Skeleton, Empty, } from "antd";
7
+ import { Form, Row, Col, Space, Button, Tabs, Checkbox, Input, message, Skeleton, Empty, Radio, } from "antd";
8
8
  import { useApplicationContext } from "@voplus/morpho-data";
9
9
  import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
10
10
  import MessageTemplateSelect from "@voplus/morpho-document/es/modules/message-template/components/MessageTemplateSelect";
@@ -23,8 +23,10 @@ const NewNotificationFormContent = (props) => {
23
23
  const EmailContentComponent = observe(() => {
24
24
  var _a;
25
25
  return (React.createElement("div", { className: "email-content-component" },
26
- React.createElement(Checkbox, { className: "email-content-choose", checked: state.chooseMessageTemplate, onChange: (e) => (state.chooseMessageTemplate = e.target.checked) }, "Draft with email template"),
27
- React.createElement(Scrollbars, { autoHide: true }, state.chooseMessageTemplate ? (React.createElement(React.Fragment, null,
26
+ React.createElement(Radio.Group, { className: "template-options", value: state.template, onChange: (e) => (state.template = e.target.value) },
27
+ React.createElement(Radio, { value: "Custom" }, "Create Custom Message"),
28
+ React.createElement(Radio, { value: "Existing" }, "Use a Template")),
29
+ React.createElement(Scrollbars, { autoHide: true }, state.template === "Existing" ? (React.createElement(React.Fragment, null,
28
30
  React.createElement("div", { className: "email-content-subtitle" }, "Choose Email Template"),
29
31
  React.createElement(MessageTemplateSelect, { isLayout: false, onChange: (data) => {
30
32
  if (!data)
@@ -32,6 +34,7 @@ const NewNotificationFormContent = (props) => {
32
34
  emailTemplateStore.load(data.id, { includes: "placeholders" }).then((res) => {
33
35
  var _a;
34
36
  state.params.EmailTemplateId = res.id;
37
+ state.params.Subject = res.subject;
35
38
  (_a = res.placeholders) === null || _a === void 0 ? void 0 : _a.map((item) => state.placeholderList.push({ Placeholder: item }));
36
39
  });
37
40
  } }),
@@ -69,7 +72,7 @@ const NewNotificationFormContent = (props) => {
69
72
  } }))),
70
73
  React.createElement(Col, { span: context.host.isTest ? 12 : 24 },
71
74
  React.createElement(Form.Item, { label: "Subject" },
72
- React.createElement(Input, { onChange: (e) => (state.params.Subject = e.target.value) }))))),
75
+ React.createElement(Input, { value: state.params.Subject, onChange: (e) => (state.params.Subject = e.target.value) }))))),
73
76
  React.createElement(Tabs, { className: "new-notification-form-tabs", defaultActiveKey: "Email Content", onChange: (key) => {
74
77
  if (key !== "preview" || !state.params.EmailTemplateId)
75
78
  return;
@@ -109,11 +112,20 @@ const NewNotificationFormContent = (props) => {
109
112
  message.warning("Channels is required");
110
113
  return;
111
114
  }
112
- if (state.chooseMessageTemplate)
115
+ if (state.template === "Existing")
113
116
  onPreview();
114
117
  state.loading = true;
115
118
  const res = await store.create({
116
- data: { TargetId: props.targetId, ...state.params },
119
+ data: state.template === "Existing"
120
+ ? {
121
+ ...state.params,
122
+ TargetId: props.targetId,
123
+ Placeholders: state.placeholderList,
124
+ }
125
+ : {
126
+ ...state.params,
127
+ TargetId: props.targetId,
128
+ },
117
129
  error: "message",
118
130
  });
119
131
  state.loading = false;
@@ -122,6 +134,7 @@ const NewNotificationFormContent = (props) => {
122
134
  span: 12,
123
135
  });
124
136
  state.params = state.Params;
137
+ state.placeholderList = [];
125
138
  (_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props);
126
139
  }
127
140
  // cancel add notifications
@@ -130,6 +143,7 @@ const NewNotificationFormContent = (props) => {
130
143
  if (props.showView)
131
144
  asideContext.closeAside();
132
145
  state.params = state.Params;
146
+ state.placeholderList = [];
133
147
  (_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
134
148
  }
135
149
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationForm.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NewNotificationForm/NotificationForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAC3F,OAAO,EACN,IAAI,EACJ,GAAG,EACH,GAAG,EACH,KAAK,EACL,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,OAAO,EACP,QAAQ,EACR,KAAK,GAEL,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,qBAAqB,MAAM,sFAAsF,CAAC;AACzH,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAE7F,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KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,0BAA0B,CAAC,YAAY,GAAG;IACzC,IAAI,EAAE,MAAM;CACZ,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"NotificationForm.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NewNotificationForm/NotificationForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAC3F,OAAO,EACN,IAAI,EACJ,GAAG,EACH,GAAG,EACH,KAAK,EACL,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,OAAO,EACP,QAAQ,EACR,KAAK,EACL,KAAK,GACL,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,qBAAqB,MAAM,sFAAsF,CAAC;AACzH,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAE7F,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AACvE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AActB,MAAM,0BAA0B,GAAG,CAAC,KAA+B,EAAE,EAAE;IACtE,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,C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AE3B,MAAA,KAAK,CAAC,MAAM,qDAAI,CAAC;IAClB,CAAC;IAED,2BAA2B;IAC3B,SAAS,QAAQ;;QAChB,IAAI,KAAK,CAAC,QAAQ;YAAE,YAAa,CAAC,UAAU,EAAE,CAAC;QAC/C,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,KAAK,CAAC,eAAe,GAAG,EAAE,CAAC;QAE3B,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,0BAA0B,CAAC,YAAY,GAAG;IACzC,IAAI,EAAE,MAAM;CACZ,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -57,10 +57,13 @@
57
57
  .email-content-component {
58
58
  height: calc(100% - 36px);
59
59
 
60
- .email-content-choose {
61
- color: #5d5d5d;
60
+ .template-options {
62
61
  margin-bottom: 14px;
63
- font: normal normal 600 14px/19px Open Sans;
62
+
63
+ .ant-radio-wrapper {
64
+ color: #5d5d5d;
65
+ font: normal normal 600 14px/19px Open Sans;
66
+ }
64
67
  }
65
68
 
66
69
  .email-content-subtitle {
@@ -18,7 +18,7 @@ export declare class State {
18
18
  }[];
19
19
  loading: boolean;
20
20
  loadPreview: boolean;
21
- chooseMessageTemplate: boolean;
21
+ template?: "Custom" | "Existing";
22
22
  placeholderList: {
23
23
  Placeholder: string;
24
24
  Value?: string;
@@ -38,11 +38,11 @@ export class State {
38
38
  writable: true,
39
39
  value: false
40
40
  });
41
- Object.defineProperty(this, "chooseMessageTemplate", {
41
+ Object.defineProperty(this, "template", {
42
42
  enumerable: true,
43
43
  configurable: true,
44
44
  writable: true,
45
- value: false
45
+ value: "Custom"
46
46
  });
47
47
  Object.defineProperty(this, "placeholderList", {
48
48
  enumerable: true,
@@ -67,7 +67,7 @@ __decorate([
67
67
  ], State.prototype, "loadPreview", void 0);
68
68
  __decorate([
69
69
  observable
70
- ], State.prototype, "chooseMessageTemplate", void 0);
70
+ ], State.prototype, "template", void 0);
71
71
  __decorate([
72
72
  observable
73
73
  ], State.prototype, "placeholderList", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NewNotificationForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlD,MAAM,OAAO,KAAK;IACjB;QAGO;;;;mBAAS;gBACf,QAAQ,EAAE,CAAC;gBACX,OAAO,EAAE,EAAE;gBACX,IAAI,EAAE,EAAE;gBACR,eAAe,EAAE,EAAE;aACnB;WAAC;QAEiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QACxC,4CAA4C;QACzB;;;;mBAA0C,EAAE;WAAC;QAC7C;;;;mBAAU,KAAK;WAAC;QAChB;;;;mBAAc,KAAK;WAAC;QACpB;;;;mBAAwB,KAAK;WAAC;QAC9B;;;;mBAA6D,EAAE;WAAC;QAflF,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAeD;AAPmB;IAAlB,UAAU;qCAA6B;AAErB;IAAlB,UAAU;sCAAqD;AAC7C;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;0CAA4B;AACpB;IAAlB,UAAU;oDAAsC;AAC9B;IAAlB,UAAU;8CAAwE"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NewNotificationForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlD,MAAM,OAAO,KAAK;IACjB;QAGO;;;;mBAAS;gBACf,QAAQ,EAAE,CAAC;gBACX,OAAO,EAAE,EAAE;gBACX,IAAI,EAAE,EAAE;gBACR,eAAe,EAAE,EAAE;aACnB;WAAC;QAEiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QACxC,4CAA4C;QACzB;;;;mBAA0C,EAAE;WAAC;QAC7C;;;;mBAAU,KAAK;WAAC;QAChB;;;;mBAAc,KAAK;WAAC;QACpB;;;;mBAAmC,QAAQ;WAAC;QAC5C;;;;mBAA6D,EAAE;WAAC;QAflF,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAeD;AAPmB;IAAlB,UAAU;qCAA6B;AAErB;IAAlB,UAAU;sCAAqD;AAC7C;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;0CAA4B;AACpB;IAAlB,UAAU;uCAAoD;AAC5C;IAAlB,UAAU;8CAAwE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.121",
3
+ "version": "6.0.123",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",