@voplus/morpho-workspace 6.0.109 → 6.0.110

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,6 +24,7 @@ export type NotificationEditDataOptions = {
24
24
  status?: NotificationStatus;
25
25
  CreateDate?: dayjs.Dayjs | string;
26
26
  Subject?: string;
27
+ EmailTemplateId?: string;
27
28
  Channels?: ("Email" | "Instant Message")[];
28
29
  };
29
30
  export type NotificationEditOptions = {
@@ -6,7 +6,7 @@
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  background-color: #ebf5ff;
9
- border-radius: 5px;
9
+ border-radius: @border-radius;
10
10
 
11
11
  &:global(.action) {
12
12
  opacity: 0.5;
@@ -1,8 +1,13 @@
1
- import "./index.less";
2
1
  import React from "react";
2
+ import "./index.less";
3
3
  export type NewNotificationFormProps = {
4
4
  /** 需要 corporate 或者 customer id */
5
5
  targetId: string;
6
+ /** Recipient (就是corporaete/customer 的 contact), 不能变更 */
7
+ recipient?: {
8
+ id: string;
9
+ name: string;
10
+ };
6
11
  type?: "full" | "mini";
7
12
  showView?: boolean;
8
13
  className?: string;
@@ -1,67 +1,135 @@
1
- import "./index.less";
1
+ import React, { useState } from "react";
2
+ import { State } from "./state";
2
3
  import { observe } from "@voplus/morpho-ui";
4
+ import { Scrollbars } from "react-custom-scrollbars-2";
5
+ import { useNotificationStore } from "../../../../data/notification";
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";
8
+ import { useApplicationContext } from "@voplus/morpho-data";
3
9
  import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
10
+ import MessageTemplateSelect from "@voplus/morpho-document/es/modules/message-template/components/MessageTemplateSelect";
4
11
  import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
5
- import { Form, Row, Space, Button, Checkbox, Input, message } from "antd";
6
- import classnames from "classnames";
7
- import React, { useState } from "react";
12
+ import UnitReference from "@voplus/morpho-org/es/controls/UnitReference/LoadedUnitReference";
8
13
  import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
9
- import { useNotificationStore } from "../../../../data/notification";
10
14
  import NotificationPropertiesView from "../NotificationPropertiesView";
11
- import { State } from "./state";
15
+ import classnames from "classnames";
16
+ import "./index.less";
12
17
  const NewNotificationFormContent = (props) => {
18
+ const [state] = useState(new State());
13
19
  const store = useNotificationStore();
20
+ const emailTemplateStore = useMessageTemplateStore();
14
21
  const asideContext = useAsideContentContext();
15
- const [state] = useState(new State());
22
+ const context = useApplicationContext();
23
+ const EmailContentComponent = observe(() => {
24
+ var _a;
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,
28
+ React.createElement("div", { className: "email-content-subtitle" }, "Choose Email Template"),
29
+ React.createElement(MessageTemplateSelect, { isLayout: false, onChange: (data) => {
30
+ if (!data)
31
+ return;
32
+ emailTemplateStore.load(data.id, { includes: "placeholders" }).then((res) => {
33
+ var _a;
34
+ state.params.EmailTemplateId = res.id;
35
+ (_a = res.placeholders) === null || _a === void 0 ? void 0 : _a.map((item) => state.placeholderList.push({ Placeholder: item }));
36
+ });
37
+ } }),
38
+ !!((_a = state.placeholderList) === null || _a === void 0 ? void 0 : _a.length) && (React.createElement(Form, { className: "email-content-placeholder-list", scrollToFirstError: true, labelAlign: "left", labelCol: { span: 6 } }, state.placeholderList.map((item, index) => (React.createElement(Form.Item, { label: item.Placeholder, key: index }, item.Placeholder === "Message" ? (React.createElement(ProseMirror, { scroll: true, toolbarProps: { sticky: false }, className: "proseMirror", onChange: (opt) => (item.Value = opt.getInnerHtml()) })) : (React.createElement(Input, { onChange: (e) => (item.Value = e.target.value) }))))))))) : (React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", onChange: (opt) => (state.params.Body = opt.getInnerHtml()) })))));
39
+ });
40
+ const PreviewComponent = observe(() => (React.createElement(Skeleton, { loading: state.loadPreview },
41
+ React.createElement("div", { className: "preview-component" },
42
+ React.createElement("div", { className: "preview-component-header" },
43
+ React.createElement("div", { className: "header-title" }, "Template Preview"),
44
+ React.createElement("div", { className: "header-explain" }, "This is a preview example of your drafting email content")),
45
+ state.params.Body ? React.createElement("iframe", { srcDoc: state.params.Body }) : React.createElement(Empty, null)))));
16
46
  const content = observe(() => (React.createElement("div", { className: classnames("new-notification-form", { "sub-notification-simply-form": props.type === "mini" }, props.className) },
17
47
  React.createElement(Form, { layout: "vertical" },
18
- React.createElement(Form.Item, { label: "Channels" },
19
- React.createElement(Checkbox.Group, { options: [
20
- { label: "Email", value: "Email" },
21
- { label: "Instant Message", value: "Instant Message" },
22
- ], defaultValue: ["Email"], onChange: (checkedValues) => {
23
- if (checkedValues.length === 1) {
24
- state.params.Channels = checkedValues[0] === "Email" ? 1 : 2;
25
- }
26
- else if (checkedValues.length === 2) {
27
- state.params.Channels = 11;
28
- }
29
- else {
30
- state.params.Channels = 0;
31
- }
32
- } })),
33
- React.createElement(Form.Item, { label: "Subject" },
34
- React.createElement(Input, { onChange: (e) => (state.params.Subject = e.target.value) })),
35
- React.createElement(Form.Item, { label: "Body" },
36
- React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", onChange: (opt) => (state.params.Body = opt.getInnerHtml()) })),
37
- props.type === "mini" && (React.createElement(Row, { className: "notification-form-btn", justify: "end" },
38
- React.createElement(Space, null,
39
- React.createElement(Button, { onClick: onCancel }, "Cancel"),
40
- React.createElement(Button, { type: "primary", loading: state.loading, onClick: onSave }, "Submit"))))))));
48
+ React.createElement(Row, null,
49
+ React.createElement(Col, { span: 12 },
50
+ React.createElement(Form.Item, { label: "Recipients" },
51
+ React.createElement("div", { className: "new-notification-recipient" }, props.recipient && React.createElement(UnitReference, { unit: props.recipient, symbol: true, type: "link" })))),
52
+ React.createElement(Col, { span: 12 },
53
+ React.createElement(Form.Item, { label: "CC" })),
54
+ React.createElement(Col, { span: context.host.isTest ? 12 : 0 },
55
+ React.createElement(Form.Item, { label: "Channels" },
56
+ React.createElement(Checkbox.Group, { options: [
57
+ { label: "Email", value: "Email" },
58
+ { label: "Instant Message", value: "Instant Message" },
59
+ ], defaultValue: ["Email"], onChange: (checkedValues) => {
60
+ if (checkedValues.length === 1) {
61
+ state.params.Channels = checkedValues[0] === "Email" ? 1 : 2;
62
+ }
63
+ else if (checkedValues.length === 2) {
64
+ state.params.Channels = 11;
65
+ }
66
+ else {
67
+ state.params.Channels = 0;
68
+ }
69
+ } }))),
70
+ React.createElement(Col, { span: context.host.isTest ? 12 : 24 },
71
+ React.createElement(Form.Item, { label: "Subject" },
72
+ React.createElement(Input, { onChange: (e) => (state.params.Subject = e.target.value) }))))),
73
+ React.createElement(Tabs, { className: "new-notification-form-tabs", defaultActiveKey: "Email Content", onChange: (key) => {
74
+ if (key !== "preview" || !state.params.EmailTemplateId)
75
+ return;
76
+ onPreview();
77
+ }, items: [
78
+ {
79
+ key: "email-content",
80
+ label: "Email Content",
81
+ children: EmailContentComponent,
82
+ },
83
+ {
84
+ key: "preview",
85
+ label: "Preview",
86
+ children: PreviewComponent,
87
+ },
88
+ ] }),
89
+ props.type === "mini" && (React.createElement(Row, { className: "notification-form-btn", justify: "end" },
90
+ React.createElement(Space, null,
91
+ React.createElement(Button, { onClick: onCancel }, "Cancel"),
92
+ React.createElement(Button, { type: "primary", loading: state.loading, onClick: onSave }, "Submit")))))));
41
93
  return observe(() => (React.createElement(React.Fragment, null, props.type === "full" ? (React.createElement(AddFormView, { title: "Add Notification", loading: !!state.loading, onCancel: onCancel, onSubmit: onSave }, content)) : (content))));
94
+ async function onPreview() {
95
+ await emailTemplateStore
96
+ .placeholdersPreview(state.params.EmailTemplateId, {
97
+ data: { Placeholders: state.placeholderList },
98
+ error: "message",
99
+ })
100
+ .then((res) => {
101
+ state.loadPreview = true;
102
+ state.params.Body = res === null || res === void 0 ? void 0 : res.content;
103
+ state.loadPreview = false;
104
+ });
105
+ }
42
106
  async function onSave() {
43
107
  var _a;
44
- if (!state.params.Channels)
45
- return message.warning("Channels is required");
108
+ if (!state.params.Channels) {
109
+ message.warning("Channels is required");
110
+ return;
111
+ }
112
+ if (state.chooseMessageTemplate)
113
+ onPreview();
46
114
  state.loading = true;
47
115
  const res = await store.create({
48
116
  data: { TargetId: props.targetId, ...state.params },
49
117
  error: "message",
50
118
  });
51
- (_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props);
52
119
  state.loading = false;
53
120
  if (props.showView && res)
54
- return asideContext.openAside(React.createElement(NotificationPropertiesView, { id: res.id }), {
121
+ asideContext.openAside(React.createElement(NotificationPropertiesView, { id: res.id }), {
55
122
  span: 12,
56
123
  });
57
- if (res)
58
- state.params = state.Params;
124
+ state.params = state.Params;
125
+ (_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props);
59
126
  }
60
127
  // cancel add notifications
61
128
  function onCancel() {
62
129
  var _a;
63
130
  if (props.showView)
64
- return asideContext.closeAside();
131
+ asideContext.closeAside();
132
+ state.params = state.Params;
65
133
  (_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
66
134
  }
67
135
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationForm.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NewNotificationForm/NotificationForm.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAS,MAAM,MAAM,CAAC;AACjF,OA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B;YAAE,SAAS,EAAE,CAAC;QAE7C,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC;YAC9B,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE;YACnD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QAEtB,IAAI,KAAK,CAAC,QAAQ,IAAI,GAAG;YACxB,YAAa,CAAC,SAAS,CAAC,oBAAC,0BAA0B,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE;gBACnE,IAAI,EAAE,EAAE;aACR,CAAC,CAAC;QAEJ,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAE5B,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;QAE5B,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"}
@@ -2,6 +2,10 @@
2
2
 
3
3
  :global {
4
4
  .new-notification-form {
5
+ height: 100%;
6
+ display: flex;
7
+ flex-direction: column;
8
+
5
9
  &.sub-notification-more-form {
6
10
  padding: 0 20px;
7
11
 
@@ -20,6 +24,13 @@
20
24
  }
21
25
  }
22
26
 
27
+ .new-notification-recipient {
28
+ height: 32px;
29
+ padding: 4px 11px;
30
+ border-radius: @border-radius;
31
+ background: #f9f9f9 0% 0% no-repeat padding-box;
32
+ }
33
+
23
34
  .notification-form-btn {
24
35
  margin-top: 10px;
25
36
  }
@@ -28,11 +39,67 @@
28
39
  .prosemirror-content {
29
40
  height: 140px;
30
41
  }
42
+
31
43
  .toolbar-button[title="Align"] {
32
44
  .ant-select {
33
45
  width: auto;
34
46
  }
35
47
  }
36
48
  }
49
+
50
+ .new-notification-form-tabs {
51
+ flex: 1;
52
+
53
+ .email-content-component {
54
+ height: calc(100% - 36px);
55
+
56
+ .email-content-choose {
57
+ color: #5d5d5d;
58
+ margin-bottom: 14px;
59
+ font: normal normal 600 14px/19px Open Sans;
60
+ }
61
+
62
+ .email-content-subtitle {
63
+ color: #868686;
64
+ font: normal normal 600 14px/19px Open Sans;
65
+ margin-bottom: 5px;
66
+ }
67
+
68
+ .email-content-placeholder-list {
69
+ margin-top: 20px;
70
+ }
71
+ }
72
+
73
+ .preview-component {
74
+ width: 100%;
75
+ height: 100%;
76
+ position: relative;
77
+ overflow: hidden;
78
+
79
+ .preview-component-header {
80
+ .header-title {
81
+ color: #5d5d5d;
82
+ font: normal normal bold 14px/19px Open Sans;
83
+ }
84
+
85
+ .header-explain {
86
+ color: #868686;
87
+ font: normal normal 600 14px/19px Open Sans;
88
+ }
89
+ }
90
+
91
+ iframe {
92
+ width: 100%;
93
+ height: calc(100% - 38px);
94
+ border: none;
95
+ position: absolute;
96
+ right: -15px;
97
+ top: 38px;
98
+ bottom: 0;
99
+ overflow-x: hidden;
100
+ overflow-y: scroll;
101
+ }
102
+ }
103
+ }
37
104
  }
38
105
  }
@@ -4,15 +4,23 @@ export declare class State {
4
4
  Channels: number;
5
5
  Subject: string;
6
6
  Body: string;
7
+ EmailTemplateId: string;
7
8
  };
8
9
  params: {
9
10
  Channels: number;
10
11
  Subject: string;
11
12
  Body: string;
13
+ EmailTemplateId: string;
12
14
  };
13
15
  contact: {
14
16
  id: string;
15
17
  name: string;
16
18
  }[];
17
19
  loading: boolean;
20
+ loadPreview: boolean;
21
+ chooseMessageTemplate: boolean;
22
+ placeholderList: {
23
+ Placeholder: string;
24
+ Value?: string;
25
+ }[];
18
26
  }
@@ -10,6 +10,7 @@ export class State {
10
10
  Channels: 1,
11
11
  Subject: "",
12
12
  Body: "",
13
+ EmailTemplateId: "",
13
14
  }
14
15
  });
15
16
  Object.defineProperty(this, "params", {
@@ -31,6 +32,24 @@ export class State {
31
32
  writable: true,
32
33
  value: false
33
34
  });
35
+ Object.defineProperty(this, "loadPreview", {
36
+ enumerable: true,
37
+ configurable: true,
38
+ writable: true,
39
+ value: false
40
+ });
41
+ Object.defineProperty(this, "chooseMessageTemplate", {
42
+ enumerable: true,
43
+ configurable: true,
44
+ writable: true,
45
+ value: false
46
+ });
47
+ Object.defineProperty(this, "placeholderList", {
48
+ enumerable: true,
49
+ configurable: true,
50
+ writable: true,
51
+ value: []
52
+ });
34
53
  makeObservable(this);
35
54
  }
36
55
  }
@@ -43,4 +62,13 @@ __decorate([
43
62
  __decorate([
44
63
  observable
45
64
  ], State.prototype, "loading", void 0);
65
+ __decorate([
66
+ observable
67
+ ], State.prototype, "loadPreview", void 0);
68
+ __decorate([
69
+ observable
70
+ ], State.prototype, "chooseMessageTemplate", void 0);
71
+ __decorate([
72
+ observable
73
+ ], State.prototype, "placeholderList", void 0);
46
74
  //# sourceMappingURL=state.js.map
@@ -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;aACR;WAAC;QACiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QACxC,4CAA4C;QACzB;;;;mBAA0C,EAAE;WAAC;QAC7C;;;;mBAAU,KAAK;WAAC;QAVlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAUD;AAJmB;IAAlB,UAAU;qCAA6B;AAErB;IAAlB,UAAU;sCAAqD;AAC7C;IAAlB,UAAU;sCAAwB"}
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"}
@@ -28,7 +28,7 @@
28
28
  height: 30px;
29
29
  line-height: 20px;
30
30
  color: @default-border-color;
31
- border-radius: @default-border-radius;
31
+ border-radius: @border-radius;
32
32
  border: 1px solid @default-border-color;
33
33
  margin: 0 15px 10px 0;
34
34
 
@@ -4,6 +4,10 @@ export type NotificationListProps = {
4
4
  /** 需要 corporate 或者 customer id */
5
5
  parentId: string;
6
6
  addAble?: boolean;
7
+ recipient?: {
8
+ id: string;
9
+ name: string;
10
+ };
7
11
  };
8
12
  declare const NotificationList: {
9
13
  (props: NotificationListProps): React.JSX.Element;
@@ -38,8 +38,8 @@ const NotificationList = (props) => {
38
38
  onAdd: () => ((view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" || (view === null || view === void 0 ? void 0 : view.Type) === "QuickView") &&
39
39
  setAddNotification(!addNotification),
40
40
  }, formViewTitle: "Add Offiec", formView: (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" &&
41
- (view === null || view === void 0 ? void 0 : view.Type) !== "QuickView" && React.createElement(NotificationForm, { showView: true, targetId: props.parentId }), renderItem: ({ item, index }) => (React.createElement(NotificationItem, { key: item.id, id: item.id })) }),
42
- addNotification && (React.createElement(NewNotificationFormDialog, { targetId: props.parentId, onCancel: () => setAddNotification(false), onSave: () => setAddNotification(false) }))));
41
+ (view === null || view === void 0 ? void 0 : view.Type) !== "QuickView" && (React.createElement(NotificationForm, { showView: true, targetId: props.parentId, recipient: props.recipient })), renderItem: ({ item, index }) => (React.createElement(NotificationItem, { key: item.id, id: item.id })) }),
42
+ addNotification && (React.createElement(NewNotificationFormDialog, { targetId: props.parentId, recipient: props.recipient, onCancel: () => setAddNotification(false), onSave: () => setAddNotification(false) }))));
43
43
  });
44
44
  };
45
45
  NotificationList.defaultProps = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList2/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAGN,0BAA0B,GAC1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,gBAAgB,MAAM,yCAAyC,CAAC;AACvE,OAAO,yBAAyB,MAAM,wBAAwB,CAAC;AAC/D,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO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E,IAAI,CAAC,EAAE,GAAI,CAC/C,GACA;YACD,eAAe,IAAI,CACnB,oBAAC,yBAAyB,IACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,QAAQ,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,EACzC,MAAM,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,GACtC,CACF,CACyB,CAC3B,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC/B,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -18,7 +18,7 @@
18
18
  height: 30px;
19
19
  line-height: 20px;
20
20
  color: @default-border-color;
21
- border-radius: @default-border-radius;
21
+ border-radius: @border-radius;
22
22
  border: 1px solid @default-border-color;
23
23
  margin: 0 15px 10px 0;
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.109",
3
+ "version": "6.0.110",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",