@topvisor/ui 1.5.9-pnpm.5 → 1.5.9
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/.chunks/formsExt-DtFeVRvE.es.amd.js +2 -0
- package/.chunks/formsExt-DtFeVRvE.es.amd.js.map +1 -0
- package/.chunks/{formsExt-BD8Sap5u.es.js → formsExt-DtFeVRvE.es.js} +155 -155
- package/.chunks/formsExt-DtFeVRvE.es.js.map +1 -0
- package/assets/schedule.css +1 -1
- package/assets/themes/dark-th.css +1 -1
- package/assets/themes/dark.css +1 -1
- package/assets/themes/light.css +1 -1
- package/autoload-css-manifest.amd.json +1 -1
- package/autoload-css-manifest.json +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +1 -1
- package/package.json +2 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +349 -348
- package/project/project.js.map +1 -1
- package/schedule/schedule.amd.js +1 -1
- package/schedule/schedule.amd.js.map +1 -1
- package/schedule/schedule.js +159 -154
- package/schedule/schedule.js.map +1 -1
- package/src/components/project/groupSelector/groups/utils.d.ts +0 -1
- package/src/components/project/projectSelector/utils.d.ts +8 -2
- package/src/components/project/regionSelector/types.d.ts +17 -10
- package/src/components/project/regionSelector/utils/utils.d.ts +14 -14
- package/src/components/schedule/schedule/{compoents → components}/calendar/types.d.ts +1 -3
- package/src/components/schedule/schedule/{compoents → components}/emails/selector/types.d.ts +6 -2
- package/src/components/schedule/schedule/composables/useModeOptions.d.ts +7 -0
- package/src/components/schedule/schedule/composables/useModelByModeCache.d.ts +9 -0
- package/src/components/schedule/schedule/stories/play/play.d.ts +5 -0
- package/src/components/schedule/schedule/types.d.ts +9 -9
- package/src/components/schedule/schedule/utils.d.ts +1 -6
- package/src/components/schedule/schedule.d.ts +2 -2
- package/.chunks/formsExt-BD8Sap5u.es.amd.js +0 -2
- package/.chunks/formsExt-BD8Sap5u.es.amd.js.map +0 -1
- package/.chunks/formsExt-BD8Sap5u.es.js.map +0 -1
- /package/src/components/schedule/schedule/{compoents → components}/calendar/composables/useDaysByCalendarMode.d.ts +0 -0
- /package/src/components/schedule/schedule/{compoents → components}/emails/types.d.ts +0 -0
- /package/src/components/schedule/schedule/{compoents → components}/socials/types.d.ts +0 -0
- /package/src/components/schedule/schedule/{compoents → components}/timeSelector/types.d.ts +0 -0
package/schedule/schedule.js
CHANGED
|
@@ -10,7 +10,7 @@ import "../.chunks/app-CY6euLQJ.es.js";
|
|
|
10
10
|
import { isEmail as a } from "../utils/check.js";
|
|
11
11
|
import { numberEnding as o } from "../utils/string.js";
|
|
12
12
|
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, mergeModels as g, nextTick as _, normalizeClass as v, onBeforeUnmount as y, onMounted as b, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveComponent as T, toDisplayString as E, toValue as D, unref as O, useModel as k, watch as A, withCtx as j, withKeys as ee, withModifiers as M } from "vue";
|
|
13
|
-
//#region src/components/schedule/schedule/
|
|
13
|
+
//#region src/components/schedule/schedule/components/calendar/composables/useDaysByCalendarMode.ts
|
|
14
14
|
var N = (t) => {
|
|
15
15
|
let n = e();
|
|
16
16
|
return c(() => {
|
|
@@ -86,10 +86,10 @@ var N = (t) => {
|
|
|
86
86
|
...t
|
|
87
87
|
}, n.value = r;
|
|
88
88
|
}, o = () => {
|
|
89
|
-
n.value = [{
|
|
89
|
+
n.value = [...n.value, {
|
|
90
90
|
hour: "0",
|
|
91
91
|
minute: "0"
|
|
92
|
-
}
|
|
92
|
+
}];
|
|
93
93
|
}, c = (e) => {
|
|
94
94
|
n.value = n.value.filter((t, n) => n !== e);
|
|
95
95
|
};
|
|
@@ -103,6 +103,7 @@ var N = (t) => {
|
|
|
103
103
|
class: "top-scheduleTimeSelector_hour",
|
|
104
104
|
modelValue: e.hour,
|
|
105
105
|
options: O(r),
|
|
106
|
+
availableCustomValue: "",
|
|
106
107
|
"onUpdate:modelValue": (e) => a(s, { hour: e })
|
|
107
108
|
}, null, 8, [
|
|
108
109
|
"modelValue",
|
|
@@ -148,12 +149,7 @@ var N = (t) => {
|
|
|
148
149
|
}),
|
|
149
150
|
emits: ["update:modelValue", "update:times"],
|
|
150
151
|
setup(e) {
|
|
151
|
-
let t = e, n = k(e, "modelValue"), r = k(e, "times")
|
|
152
|
-
r.value.length || (r.value = [{
|
|
153
|
-
hour: "0",
|
|
154
|
-
minute: "0"
|
|
155
|
-
}]);
|
|
156
|
-
let i = N(() => t.mode), a = c(() => n.value.includes("ALL") || n.value.length === i.value.length), l = (e) => {
|
|
152
|
+
let t = e, n = k(e, "modelValue"), r = k(e, "times"), i = N(() => t.mode), a = c(() => n.value.includes("ALL") || n.value.length === i.value.length), l = (e) => {
|
|
157
153
|
let t = n.value.includes("ALL") ? i.value.map((e) => e.value) : [...n.value], r = t.indexOf(e);
|
|
158
154
|
r === -1 ? t.push(e) : t.splice(r, 1), n.value = t.length === i.value.length ? ["ALL"] : t;
|
|
159
155
|
}, h = () => {
|
|
@@ -184,10 +180,7 @@ var N = (t) => {
|
|
|
184
180
|
checked: n.value.includes("ALL") || n.value.includes(e.value),
|
|
185
181
|
onChange: (t) => l(e.value),
|
|
186
182
|
tabindex: "0"
|
|
187
|
-
}, null, 40, z), f("span", {
|
|
188
|
-
class: "top-scheduleCalendar_calendarDayTitle",
|
|
189
|
-
"data-top-icon": e.isIcon ? e.title : void 0
|
|
190
|
-
}, [e.isIcon ? u("", !0) : (x(), d(s, { key: 0 }, [p(E(e.title), 1)], 64))], 8, B)]))), 128))]),
|
|
183
|
+
}, null, 40, z), f("span", { "data-top-icon": e.isIcon ? e.title : void 0 }, [e.isIcon ? u("", !0) : (x(), d(s, { key: 0 }, [p(E(e.title), 1)], 64))], 8, B)]))), 128))]),
|
|
191
184
|
f("span", { class: v({
|
|
192
185
|
"top-scheduleCalendar_selectionSummary": !0,
|
|
193
186
|
"top-error": !n.value.length
|
|
@@ -195,12 +188,7 @@ var N = (t) => {
|
|
|
195
188
|
]);
|
|
196
189
|
};
|
|
197
190
|
}
|
|
198
|
-
}), H =
|
|
199
|
-
"onDemand",
|
|
200
|
-
"dayOfWeek",
|
|
201
|
-
"dayOfMonth",
|
|
202
|
-
"afterYandexUpdated"
|
|
203
|
-
], U = () => {
|
|
191
|
+
}), H = () => {
|
|
204
192
|
let t = e();
|
|
205
193
|
return [{
|
|
206
194
|
value: "0",
|
|
@@ -209,28 +197,51 @@ var N = (t) => {
|
|
|
209
197
|
value: String(n + 1),
|
|
210
198
|
title: t("Projects", "in_hour", { hour: n + 1 })
|
|
211
199
|
}))];
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
200
|
+
}, U = (e) => e === "dayOfWeek" || e === "dayOfMonth", W = (e, t = "onDemand") => e.includes("YANDEX_UPDATE") ? "afterYandexUpdated" : e.includes("CHECK_POSITIONS") ? "afterCheck" : e.includes("LAST_OF_MONTH") || e.some((e) => /^\d+$/.test(e)) ? "dayOfMonth" : e.length ? U(t) ? t : "dayOfWeek" : t, G = [
|
|
201
|
+
"onDemand",
|
|
202
|
+
"dayOfWeek",
|
|
203
|
+
"dayOfMonth"
|
|
204
|
+
], K = ["onDemand", "afterCheck"], q = (t, n) => {
|
|
205
|
+
let r = e();
|
|
206
|
+
return c(() => {
|
|
207
|
+
let e = t.type === "go" ? [...G] : [...K];
|
|
208
|
+
t.extraMods && e.push(...t.extraMods), e.includes(n.value) || e.push(n.value);
|
|
209
|
+
let i = {
|
|
210
|
+
onDemand: r.Projects.Settings_on_demand,
|
|
211
|
+
dayOfWeek: r.Projects.Report_on_weekdays,
|
|
212
|
+
dayOfMonth: r.Projects.Settings_particular_days,
|
|
213
|
+
afterYandexUpdated: r.Projects.After_updates,
|
|
214
|
+
afterCheck: e.includes("afterCheck") ? r.Dynamics.Report_after_tracking_30min_1 : ""
|
|
215
|
+
};
|
|
216
|
+
return e.map((e) => ({
|
|
217
|
+
value: e,
|
|
218
|
+
title: i[e]
|
|
219
|
+
}));
|
|
220
|
+
});
|
|
221
|
+
}, te = (e) => ({
|
|
222
|
+
days: [...e.days],
|
|
223
|
+
times: e.times.map((e) => ({ ...e }))
|
|
224
|
+
}), J = (e, t) => {
|
|
225
|
+
let n = {
|
|
226
|
+
daysByMode: {},
|
|
227
|
+
timesByMode: {}
|
|
219
228
|
};
|
|
220
|
-
return
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
|
|
229
|
+
return A(e, () => {
|
|
230
|
+
let r = te(e.value);
|
|
231
|
+
n.daysByMode[t.value] = r.days, n.timesByMode[U(t.value) ? "calendar" : t.value] = r.times;
|
|
232
|
+
}, {
|
|
233
|
+
deep: !0,
|
|
234
|
+
immediate: !0
|
|
235
|
+
}), n;
|
|
236
|
+
}, Y = { class: "top-schedule_header" }, X = { class: "top-schedule_headerTitle" }, Z = {
|
|
225
237
|
key: 0,
|
|
226
238
|
class: "top-schedule_body"
|
|
227
|
-
},
|
|
228
|
-
name: "TopSchedule",
|
|
239
|
+
}, Q = { key: 2 }, ne = /* @__PURE__ */ h({
|
|
229
240
|
__name: "schedule",
|
|
230
241
|
props: /*@__PURE__*/ g({
|
|
231
242
|
modelValue: {},
|
|
232
243
|
type: { default: "go" },
|
|
233
|
-
|
|
244
|
+
extraMods: {},
|
|
234
245
|
multipleTimes: { type: Boolean },
|
|
235
246
|
title: {}
|
|
236
247
|
}, {
|
|
@@ -239,77 +250,52 @@ var N = (t) => {
|
|
|
239
250
|
}),
|
|
240
251
|
emits: ["update:modelValue"],
|
|
241
252
|
setup(e, { slots: t }) {
|
|
242
|
-
let n =
|
|
243
|
-
return A(
|
|
244
|
-
p[a.value] = {
|
|
245
|
-
days: [...r.value.days],
|
|
246
|
-
times: r.value.times.map((e) => ({ ...e }))
|
|
247
|
-
};
|
|
248
|
-
}, {
|
|
249
|
-
deep: !0,
|
|
250
|
-
immediate: !0
|
|
251
|
-
}), A(() => r.value.days, () => a.value = G(r.value.days, a.value), {
|
|
253
|
+
let n = String(Math.floor(Math.random() * 7) + 1), r = e, a = k(e, "modelValue"), o = S(W(a.value.days)), s = q(r, o), c = H(), p = J(a, o);
|
|
254
|
+
return A(() => a.value.days, () => o.value = W(a.value.days, o.value), {
|
|
252
255
|
deep: !0,
|
|
253
256
|
immediate: !0
|
|
254
|
-
}), A(
|
|
255
|
-
let
|
|
257
|
+
}), A(o, (e, t) => {
|
|
258
|
+
let r = p.daysByMode[e], i = p.timesByMode[U(e) ? "calendar" : e], o = {}, s = t;
|
|
256
259
|
switch (e) {
|
|
257
260
|
case "onDemand":
|
|
258
|
-
|
|
259
|
-
days: [],
|
|
260
|
-
times: []
|
|
261
|
-
};
|
|
261
|
+
(s || a.value.days.length) && (o.days = []), (s || a.value.times.length) && (o.times = []);
|
|
262
262
|
break;
|
|
263
263
|
case "dayOfWeek":
|
|
264
264
|
case "dayOfMonth":
|
|
265
|
-
r.value = {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
hour: "0",
|
|
270
|
-
minute: "0"
|
|
271
|
-
}]
|
|
272
|
-
};
|
|
265
|
+
(s || !a.value.days.length) && (o.days = r ?? ["ALL"]), (s || !a.value.times.length) && (o.times = i?.length ? i : [{
|
|
266
|
+
hour: n,
|
|
267
|
+
minute: "0"
|
|
268
|
+
}]);
|
|
273
269
|
break;
|
|
274
270
|
case "afterYandexUpdated":
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
minute: "0"
|
|
280
|
-
}]
|
|
281
|
-
};
|
|
271
|
+
(s || a.value.days[0] !== "YANDEX_UPDATE") && (o.days = ["YANDEX_UPDATE"]), (s || !a.value.times.length) && (o.times = i?.length ? i : [{
|
|
272
|
+
hour: "1",
|
|
273
|
+
minute: "0"
|
|
274
|
+
}]);
|
|
282
275
|
break;
|
|
283
|
-
case "afterCheck":
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
minute: "30"
|
|
288
|
-
}]
|
|
289
|
-
};
|
|
276
|
+
case "afterCheck": (s || a.value.days[0] !== "CHECK_POSITIONS") && (o.days = ["CHECK_POSITIONS"]), (s || !a.value.times.length) && (o.times = i?.length ? i : [{
|
|
277
|
+
hour: "0",
|
|
278
|
+
minute: "0"
|
|
279
|
+
}]);
|
|
290
280
|
}
|
|
291
|
-
|
|
281
|
+
Object.keys(o).length && (a.value = {
|
|
282
|
+
...a.value,
|
|
283
|
+
...o
|
|
284
|
+
});
|
|
285
|
+
}, { immediate: !0 }), (n, r) => (x(), d("div", { class: v(["top-schedule", "top-schedule-type_" + e.type]) }, [f("div", Y, [f("div", X, E(e.title ?? (e.type === "go" ? n.$i18n.Projects.Checks : n.$i18n.Projects.Reports)), 1), m(i, {
|
|
292
286
|
class: "top-schedule_headerMods",
|
|
293
|
-
modelValue:
|
|
294
|
-
"onUpdate:modelValue":
|
|
295
|
-
options:
|
|
287
|
+
modelValue: o.value,
|
|
288
|
+
"onUpdate:modelValue": r[0] ||= (e) => o.value = e,
|
|
289
|
+
options: O(s),
|
|
296
290
|
size: "s"
|
|
297
|
-
}, null, 8, ["modelValue", "options"])]),
|
|
298
|
-
|
|
291
|
+
}, null, 8, ["modelValue", "options"])]), o.value !== "onDemand" && (O(U)(o.value) || o.value === "afterYandexUpdated" || t.default) ? (x(), d("div", Z, [
|
|
292
|
+
O(U)(o.value) ? (x(), l(V, {
|
|
299
293
|
key: 0,
|
|
300
|
-
|
|
301
|
-
modelValue: r.value.
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
}, null, 8, ["modelValue", "options"])) : u("", !0),
|
|
306
|
-
O(W)(a.value) ? (x(), l(V, {
|
|
307
|
-
key: 1,
|
|
308
|
-
modelValue: r.value.days,
|
|
309
|
-
"onUpdate:modelValue": c[2] ||= (e) => r.value.days = e,
|
|
310
|
-
times: r.value.times,
|
|
311
|
-
"onUpdate:times": c[3] ||= (e) => r.value.times = e,
|
|
312
|
-
mode: a.value,
|
|
294
|
+
modelValue: a.value.days,
|
|
295
|
+
"onUpdate:modelValue": r[1] ||= (e) => a.value.days = e,
|
|
296
|
+
times: a.value.times,
|
|
297
|
+
"onUpdate:times": r[2] ||= (e) => a.value.times = e,
|
|
298
|
+
mode: o.value,
|
|
313
299
|
multipleTimes: e.multipleTimes
|
|
314
300
|
}, null, 8, [
|
|
315
301
|
"modelValue",
|
|
@@ -317,86 +303,104 @@ var N = (t) => {
|
|
|
317
303
|
"mode",
|
|
318
304
|
"multipleTimes"
|
|
319
305
|
])) : u("", !0),
|
|
320
|
-
|
|
321
|
-
|
|
306
|
+
o.value === "afterYandexUpdated" && a.value.times[0] ? (x(), l(i, {
|
|
307
|
+
key: 1,
|
|
308
|
+
class: "top-schedule_afterYandexUpdatedDelay",
|
|
309
|
+
modelValue: a.value.times[0].hour,
|
|
310
|
+
"onUpdate:modelValue": r[3] ||= (e) => a.value.times[0].hour = e,
|
|
311
|
+
options: O(c),
|
|
312
|
+
size: "s"
|
|
313
|
+
}, null, 8, ["modelValue", "options"])) : u("", !0),
|
|
314
|
+
(O(U)(o.value) || o.value === "afterYandexUpdated") && t.default ? (x(), d("hr", Q)) : u("", !0),
|
|
315
|
+
w(n.$slots, "default", { mode: o.value })
|
|
322
316
|
])) : u("", !0)], 2));
|
|
323
317
|
}
|
|
324
|
-
}),
|
|
318
|
+
}), re = /* @__PURE__ */ h({
|
|
325
319
|
__name: "selector",
|
|
326
|
-
props: {
|
|
320
|
+
props: /*@__PURE__*/ g({
|
|
327
321
|
modelValue: {},
|
|
328
322
|
emails: { default: () => [] },
|
|
323
|
+
maxEmailsCount: {},
|
|
329
324
|
getEmailSuggestions: {
|
|
330
325
|
type: Function,
|
|
331
326
|
default: () => []
|
|
332
327
|
}
|
|
333
|
-
},
|
|
334
|
-
|
|
328
|
+
}, {
|
|
329
|
+
modelValue: { required: !0 },
|
|
330
|
+
modelModifiers: {}
|
|
331
|
+
}),
|
|
332
|
+
emits: /*@__PURE__*/ g(["update:modelValue", "submit"], ["update:modelValue"]),
|
|
335
333
|
setup(i, { emit: o }) {
|
|
336
|
-
let s =
|
|
334
|
+
let s = i, f = k(i, "modelValue"), p = o, h = e(), g = t.$, v = S(), C = S(), w = null, T = {}, E = c(() => !!s.maxEmailsCount && s.emails.length >= s.maxEmailsCount), D = (e) => e.filter((e) => !s.emails.includes(e)), O = (e = f.value) => {
|
|
337
335
|
let n = String(e).trim();
|
|
338
336
|
if (n) {
|
|
339
337
|
if (!a(n)) {
|
|
340
|
-
t.notice(
|
|
338
|
+
t.notice(h.Common.Enter_valid_email_notice, "error");
|
|
341
339
|
return;
|
|
342
340
|
}
|
|
343
|
-
|
|
341
|
+
p("submit", n);
|
|
344
342
|
}
|
|
345
|
-
},
|
|
346
|
-
if (await _(),
|
|
347
|
-
if (!
|
|
343
|
+
}, A = async () => {
|
|
344
|
+
if (await _(), w = C.value?.$el.querySelector("input") ?? null, w) {
|
|
345
|
+
if (!g?.ui?.autocomplete) {
|
|
348
346
|
console.info("Для работы autocomplete требуется глобальная загрузка jQuery UI Autocomplete");
|
|
349
347
|
return;
|
|
350
348
|
}
|
|
351
|
-
|
|
352
|
-
appendTo:
|
|
349
|
+
g(w).autocomplete({
|
|
350
|
+
appendTo: v.value,
|
|
353
351
|
minLength: 0,
|
|
354
352
|
source: async (e, t) => {
|
|
355
353
|
let n = e.term;
|
|
356
|
-
n in
|
|
354
|
+
n in T || (T[n] = await s.getEmailSuggestions(n)), t(D(T[n]).map((e) => ({
|
|
357
355
|
label: e,
|
|
358
356
|
value: e
|
|
359
357
|
})));
|
|
360
358
|
},
|
|
361
359
|
select: (e, t) => {
|
|
362
|
-
t.item &&
|
|
360
|
+
t.item && w && (e.preventDefault(), O(t.item.value), f.value = "", g(w).trigger("focus"));
|
|
363
361
|
}
|
|
364
|
-
}),
|
|
365
|
-
|
|
362
|
+
}), g(w).attr("autocomplete", "disabled"), g(w).on("focus.scheduleEmailSelector", () => {
|
|
363
|
+
w && g(w).trigger("input");
|
|
366
364
|
});
|
|
367
365
|
}
|
|
368
366
|
};
|
|
369
367
|
return b(() => {
|
|
370
|
-
|
|
368
|
+
A();
|
|
371
369
|
}), y(() => {
|
|
372
|
-
|
|
370
|
+
g?.ui?.autocomplete && w && (g(w).off("focus.scheduleEmailSelector"), g(w).autocomplete("destroy"));
|
|
373
371
|
}), (e, t) => (x(), d("div", {
|
|
374
372
|
class: "top-scheduleEmailSelector",
|
|
375
373
|
ref_key: "elRootRef",
|
|
376
|
-
ref:
|
|
374
|
+
ref: v
|
|
377
375
|
}, [m(n, {
|
|
378
376
|
ref_key: "elInputRef",
|
|
379
|
-
ref:
|
|
380
|
-
modelValue:
|
|
381
|
-
"onUpdate:modelValue": t[1] ||= (e) =>
|
|
382
|
-
onKeydown: t[2] ||= ee(M((e) =>
|
|
377
|
+
ref: C,
|
|
378
|
+
modelValue: f.value,
|
|
379
|
+
"onUpdate:modelValue": t[1] ||= (e) => f.value = e,
|
|
380
|
+
onKeydown: t[2] ||= ee(M((e) => O(), ["prevent"]), ["enter"]),
|
|
383
381
|
title: e.$i18n.Common.Enter_email,
|
|
384
382
|
type: "email",
|
|
385
|
-
size: "
|
|
383
|
+
size: "m",
|
|
384
|
+
disabled: E.value
|
|
386
385
|
}, {
|
|
387
|
-
default: j(() => [
|
|
386
|
+
default: j(() => [E.value ? u("", !0) : (x(), l(r, {
|
|
387
|
+
key: 0,
|
|
388
388
|
class: "top-scheduleEmailSelector_submit",
|
|
389
389
|
color: "theme",
|
|
390
390
|
icon: "",
|
|
391
|
-
onClick: t[0] ||= M((e) =>
|
|
392
|
-
})]),
|
|
391
|
+
onClick: t[0] ||= M((e) => O(), ["prevent"])
|
|
392
|
+
}))]),
|
|
393
393
|
_: 1
|
|
394
|
-
}, 8, [
|
|
394
|
+
}, 8, [
|
|
395
|
+
"modelValue",
|
|
396
|
+
"title",
|
|
397
|
+
"disabled"
|
|
398
|
+
])], 512));
|
|
395
399
|
}
|
|
396
|
-
}),
|
|
397
|
-
key:
|
|
400
|
+
}), ie = { class: "top-scheduleEmail" }, ae = { class: "top-scheduleEmail_title" }, oe = {
|
|
401
|
+
key: 0,
|
|
398
402
|
class: "top-scheduleEmail_emails"
|
|
399
|
-
},
|
|
403
|
+
}, $ = { class: "top-ellipsis1" }, se = /* @__PURE__ */ h({
|
|
400
404
|
__name: "emails",
|
|
401
405
|
props: {
|
|
402
406
|
emails: { default: () => [] },
|
|
@@ -404,49 +408,50 @@ var N = (t) => {
|
|
|
404
408
|
type: Function,
|
|
405
409
|
default: () => []
|
|
406
410
|
},
|
|
407
|
-
maxEmailsCount: {
|
|
411
|
+
maxEmailsCount: {}
|
|
408
412
|
},
|
|
409
413
|
emits: ["add:email", "remove:email"],
|
|
410
414
|
setup(e, { emit: t }) {
|
|
411
|
-
let n =
|
|
415
|
+
let n = e, r = t, i = S(""), a = (e) => {
|
|
412
416
|
let t = e.trim();
|
|
413
|
-
if (!t ||
|
|
414
|
-
|
|
417
|
+
if (!t || n.emails.includes(t)) {
|
|
418
|
+
i.value = "";
|
|
415
419
|
return;
|
|
416
420
|
}
|
|
417
|
-
|
|
421
|
+
r("add:email", t), i.value = "";
|
|
418
422
|
};
|
|
419
|
-
return (t,
|
|
420
|
-
let
|
|
421
|
-
return x(), d("div",
|
|
422
|
-
f("div",
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
modelValue:
|
|
426
|
-
"onUpdate:modelValue": r[0] ||= (e) => a.value = e,
|
|
427
|
-
getEmailSuggestions: e.getEmailSuggestions,
|
|
423
|
+
return (t, n) => {
|
|
424
|
+
let o = T("TopButton");
|
|
425
|
+
return x(), d("div", ie, [
|
|
426
|
+
f("div", ae, E(t.$i18n.Projects.Reports_send_to_address) + " E-mail: ", 1),
|
|
427
|
+
m(re, {
|
|
428
|
+
modelValue: i.value,
|
|
429
|
+
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
428
430
|
emails: e.emails,
|
|
429
|
-
|
|
431
|
+
maxEmailsCount: e.maxEmailsCount,
|
|
432
|
+
getEmailSuggestions: e.getEmailSuggestions,
|
|
433
|
+
onSubmit: a
|
|
430
434
|
}, null, 8, [
|
|
431
435
|
"modelValue",
|
|
432
|
-
"
|
|
433
|
-
"
|
|
434
|
-
|
|
435
|
-
|
|
436
|
+
"emails",
|
|
437
|
+
"maxEmailsCount",
|
|
438
|
+
"getEmailSuggestions"
|
|
439
|
+
]),
|
|
440
|
+
e.emails.length ? (x(), d("div", oe, [(x(!0), d(s, null, C(e.emails, (e) => (x(), d("div", {
|
|
436
441
|
class: "top-scheduleEmail_emailsItem",
|
|
437
442
|
key: e
|
|
438
|
-
}, [f("span",
|
|
439
|
-
onClick: (t) =>
|
|
443
|
+
}, [f("span", $, E(e), 1), m(o, {
|
|
444
|
+
onClick: (t) => r("remove:email", e),
|
|
440
445
|
color: "theme",
|
|
441
446
|
icon: ""
|
|
442
447
|
}, null, 8, ["onClick"])]))), 128))])) : u("", !0)
|
|
443
448
|
]);
|
|
444
449
|
};
|
|
445
450
|
}
|
|
446
|
-
}),
|
|
451
|
+
}), ce = { class: "top-scheduleSocials" }, le = { class: "top-scheduleSocials_title" }, ue = { class: "top-scheduleSocials_channels" }, de = ["data-top-icon"], fe = { class: "top-scheduleSocials_channelLabel top-ellipsis1" }, pe = {
|
|
447
452
|
key: 0,
|
|
448
453
|
class: "top-scheduleSocials_channel"
|
|
449
|
-
},
|
|
454
|
+
}, me = ["data-top-icon"], he = ["href"], ge = /* @__PURE__ */ h({
|
|
450
455
|
__name: "socials",
|
|
451
456
|
props: {
|
|
452
457
|
channels: {},
|
|
@@ -460,15 +465,15 @@ var N = (t) => {
|
|
|
460
465
|
};
|
|
461
466
|
return (n, a) => {
|
|
462
467
|
let o = T("TopButton"), c = T("TopSwitcher");
|
|
463
|
-
return x(), d("div",
|
|
468
|
+
return x(), d("div", ce, [f("div", le, E(n.$i18n.Projects.Reports_send_to_address), 1), f("div", ue, [(x(!0), d(s, null, C(e.channels, (e) => (x(), d("div", {
|
|
464
469
|
class: "top-scheduleSocials_channel",
|
|
465
470
|
key: `${e.source}-${e.id}`
|
|
466
471
|
}, [
|
|
467
472
|
f("span", {
|
|
468
473
|
class: "top-scheduleSocials_channelIcon",
|
|
469
474
|
"data-top-icon": i[e.source]
|
|
470
|
-
}, null, 8,
|
|
471
|
-
f("span",
|
|
475
|
+
}, null, 8, de),
|
|
476
|
+
f("span", fe, E(e.label), 1),
|
|
472
477
|
e.settingLink ? (x(), l(o, {
|
|
473
478
|
key: 0,
|
|
474
479
|
class: "top-scheduleSocials_channelSettings",
|
|
@@ -488,18 +493,18 @@ var N = (t) => {
|
|
|
488
493
|
selected: n
|
|
489
494
|
})
|
|
490
495
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
491
|
-
]))), 128)), (x(!0), d(s, null, C(e.connectors, (e) => (x(), d(s, { key: e.source }, [r(e.source) ? u("", !0) : (x(), d("div",
|
|
496
|
+
]))), 128)), (x(!0), d(s, null, C(e.connectors, (e) => (x(), d(s, { key: e.source }, [r(e.source) ? u("", !0) : (x(), d("div", pe, [f("span", {
|
|
492
497
|
class: "top-scheduleSocials_channelIcon",
|
|
493
498
|
"data-top-icon": i[e.source]
|
|
494
|
-
}, null, 8,
|
|
499
|
+
}, null, 8, me), f("a", {
|
|
495
500
|
class: "top-scheduleSocials_channelLabel top-ellipsis1",
|
|
496
501
|
href: e.connectLink,
|
|
497
502
|
target: "_blank"
|
|
498
|
-
}, E(e.connectLabel), 9,
|
|
503
|
+
}, E(e.connectLabel), 9, he)]))], 64))), 128))])]);
|
|
499
504
|
};
|
|
500
505
|
}
|
|
501
506
|
});
|
|
502
507
|
//#endregion
|
|
503
|
-
export {
|
|
508
|
+
export { ne as TopSchedule, se as TopScheduleEmails, ge as TopScheduleSocials };
|
|
504
509
|
|
|
505
510
|
//# sourceMappingURL=schedule.js.map
|