@opendesign-plus-test/components 0.0.1-rc.171 → 0.0.1-rc.173
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/dist/components/meeting/types.d.ts +1 -0
- package/dist/components.cjs.js +29 -29
- package/dist/components.es.js +3506 -3503
- package/dist/treeshaking/components/meeting/OMeetingSendMinutesForm.vue.mjs +14 -5
- package/dist/treeshaking/components/meeting/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { useMeetingConfig } from "./composables/useMeetingConfig.mjs";
|
|
|
5
5
|
import { EMAIL_REGEX } from "./config.mjs";
|
|
6
6
|
const _hoisted_1 = { class: "sender-text" };
|
|
7
7
|
const _hoisted_2 = ["placeholder", "onKeydown"];
|
|
8
|
+
const _hoisted_3 = { class: "email-body-content" };
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
__name: "OMeetingSendMinutesForm",
|
|
10
11
|
props: {
|
|
@@ -45,17 +46,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
46
|
};
|
|
46
47
|
const sender = computed(() => {
|
|
47
48
|
var _a;
|
|
48
|
-
return ((_a = props.meeting) == null ? void 0 : _a.
|
|
49
|
+
return ((_a = props.meeting) == null ? void 0 : _a.sender) || "";
|
|
49
50
|
});
|
|
50
51
|
const defaultSubject = () => {
|
|
51
52
|
if (!props.meeting) return "";
|
|
52
53
|
const { topic, date } = props.meeting;
|
|
53
54
|
return t("meeting.sendMinutesSubjectDefault", [topic, date || ""]);
|
|
54
55
|
};
|
|
56
|
+
const normalizeRecipients = (source) => [...new Set(source.map((item) => item.trim()).filter(Boolean))];
|
|
55
57
|
const reset = () => {
|
|
56
58
|
var _a;
|
|
57
59
|
if (!props.meeting) return;
|
|
58
|
-
|
|
60
|
+
if (props.prefill && props.prefill.length) {
|
|
61
|
+
formModel.value.recipients = normalizeRecipients(props.prefill);
|
|
62
|
+
} else {
|
|
63
|
+
formModel.value.recipients = normalizeRecipients((props.meeting.email_list || "").split(/[,;,;]/));
|
|
64
|
+
}
|
|
59
65
|
formModel.value.subject = defaultSubject();
|
|
60
66
|
extraInput.value = "";
|
|
61
67
|
(_a = formRef.value) == null ? void 0 : _a.clearValidate();
|
|
@@ -193,9 +199,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
193
199
|
"disabled-x": "",
|
|
194
200
|
"show-type": "auto"
|
|
195
201
|
}, {
|
|
196
|
-
default: withCtx(() =>
|
|
197
|
-
|
|
198
|
-
|
|
202
|
+
default: withCtx(() => {
|
|
203
|
+
var _a;
|
|
204
|
+
return [
|
|
205
|
+
createElementVNode("div", _hoisted_3, toDisplayString((_a = __props.meeting) == null ? void 0 : _a.minutes), 1)
|
|
206
|
+
];
|
|
207
|
+
}),
|
|
199
208
|
_: 1
|
|
200
209
|
})
|
|
201
210
|
]),
|