@web-utils/component 3.7.1 → 3.7.2
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/code-mirror-editor/index.mjs +46 -465
- package/fy-form-design/index.mjs +3 -2
- package/index.mjs +331 -330
- package/monaco-editor/index.mjs +121 -72
- package/monaco-editor/style.css +1 -0
- package/package.json +2 -1
- package/vue-cron/index.mjs +863 -331
- package/vue-cron/style.css +1 -1
- package/web-types.json +49 -1
package/vue-cron/index.mjs
CHANGED
|
@@ -1,94 +1,598 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var W = (n, e, t) => new Promise((s, a) => {
|
|
2
|
+
var r = (c) => {
|
|
3
|
+
try {
|
|
4
|
+
o(t.next(c));
|
|
5
|
+
} catch (l) {
|
|
6
|
+
a(l);
|
|
7
|
+
}
|
|
8
|
+
}, i = (c) => {
|
|
9
|
+
try {
|
|
10
|
+
o(t.throw(c));
|
|
11
|
+
} catch (l) {
|
|
12
|
+
a(l);
|
|
13
|
+
}
|
|
14
|
+
}, o = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(r, i);
|
|
15
|
+
o((t = t.apply(n, e)).next());
|
|
16
|
+
});
|
|
17
|
+
import { formatDate as H } from "@web-utils/integrations/dayjs";
|
|
18
|
+
import { copy as L } from "@web-utils/core";
|
|
19
|
+
import { n as F } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
20
|
+
const U = {
|
|
3
21
|
Seconds: {
|
|
4
22
|
name: "秒",
|
|
5
|
-
every: "
|
|
6
|
-
interval: ["
|
|
7
|
-
specific: "
|
|
8
|
-
cycle: ["周期从", "
|
|
23
|
+
every: "每秒钟,允许的通配符[, - * /]",
|
|
24
|
+
interval: ["从", "秒钟开始,每", "秒钟执行一次"],
|
|
25
|
+
specific: "指定",
|
|
26
|
+
cycle: ["周期从", " - ", "秒"]
|
|
9
27
|
},
|
|
10
28
|
Minutes: {
|
|
11
29
|
name: "分",
|
|
12
|
-
every: "
|
|
13
|
-
interval: ["
|
|
14
|
-
specific: "
|
|
15
|
-
cycle: ["周期从", "
|
|
30
|
+
every: "每分钟,允许的通配符[, - * /]",
|
|
31
|
+
interval: ["从", "分钟开始,每", "分钟执行一次"],
|
|
32
|
+
specific: "指定",
|
|
33
|
+
cycle: ["周期从", " - ", "分"]
|
|
16
34
|
},
|
|
17
35
|
Hours: {
|
|
18
36
|
name: "时",
|
|
19
|
-
every: "
|
|
20
|
-
interval: ["
|
|
21
|
-
specific: "
|
|
22
|
-
cycle: ["周期从", "
|
|
37
|
+
every: "每小时,允许的通配符[, - * /]",
|
|
38
|
+
interval: ["从", "小时开始,每", "小时执行一次"],
|
|
39
|
+
specific: "指定",
|
|
40
|
+
cycle: ["周期从", " - ", "小时"]
|
|
23
41
|
},
|
|
24
42
|
Day: {
|
|
25
43
|
name: "天",
|
|
26
|
-
every: "
|
|
27
|
-
intervalWeek: ["
|
|
28
|
-
intervalDay: ["
|
|
29
|
-
specificWeek: "
|
|
30
|
-
specificDay: "
|
|
31
|
-
lastDay: "
|
|
32
|
-
lastWeekday: "
|
|
33
|
-
lastWeek: ["
|
|
44
|
+
every: "每天,允许的通配符[, - * #/ L M W]",
|
|
45
|
+
intervalWeek: ["从", "开始,每", "周执行一次"],
|
|
46
|
+
intervalDay: ["从", "天开始,每", "天执行一次"],
|
|
47
|
+
specificWeek: "指定星期",
|
|
48
|
+
specificDay: "指定天",
|
|
49
|
+
lastDay: "本月的最后一天",
|
|
50
|
+
lastWeekday: "本月的最后一个工作日",
|
|
51
|
+
lastWeek: ["本月的最后一个"],
|
|
34
52
|
beforeEndMonth: ["在本月底前", "天"],
|
|
35
|
-
nearestWeekday: ["
|
|
36
|
-
someWeekday: ["
|
|
53
|
+
nearestWeekday: ["每月", "号前的第一个的工作日(周一至周五)"],
|
|
54
|
+
someWeekday: ["本月第", "周的"]
|
|
37
55
|
},
|
|
38
|
-
Week: ["天", "一", "二", "三", "四", "五", "六"].map((
|
|
56
|
+
Week: ["天", "一", "二", "三", "四", "五", "六"].map((n) => `星期${n}`),
|
|
39
57
|
Month: {
|
|
40
58
|
name: "月",
|
|
41
|
-
every: "
|
|
42
|
-
interval: ["
|
|
43
|
-
specific: "
|
|
44
|
-
cycle: ["
|
|
59
|
+
every: "每月,允许的通配符[, - * /]",
|
|
60
|
+
interval: ["从", "月开始,每", "月执行一次"],
|
|
61
|
+
specific: "指定",
|
|
62
|
+
cycle: ["周期从", " - ", "月"]
|
|
45
63
|
},
|
|
46
64
|
Year: {
|
|
47
65
|
name: "年",
|
|
48
|
-
every: "
|
|
49
|
-
interval: ["
|
|
50
|
-
specific: "
|
|
51
|
-
cycle: ["
|
|
66
|
+
every: "每年,允许的通配符[, - * /]",
|
|
67
|
+
interval: ["从", "年开始,每", "年执行一次"],
|
|
68
|
+
specific: "指定",
|
|
69
|
+
cycle: ["周期从", " - ", "年"]
|
|
52
70
|
},
|
|
53
|
-
Save: "
|
|
54
|
-
Close: "
|
|
55
|
-
},
|
|
71
|
+
Save: "确定",
|
|
72
|
+
Close: "取消"
|
|
73
|
+
}, w = (n, e) => n - e;
|
|
74
|
+
function b(n, e) {
|
|
75
|
+
return n.reduce((t, s, a) => (t.push(...e(s, a, n)), t), []);
|
|
76
|
+
}
|
|
77
|
+
const T = {
|
|
78
|
+
"@yearly": "0 0 0 1 1 * *",
|
|
79
|
+
"@annually": "0 0 0 1 1 * *",
|
|
80
|
+
"@monthly": "0 0 0 1 * * *",
|
|
81
|
+
"@weekly": "0 0 0 * * 0 *",
|
|
82
|
+
"@daily": "0 0 0 * * * *",
|
|
83
|
+
"@midnight": "0 0 0 * * * *",
|
|
84
|
+
"@hourly": "0 0 * * * * *"
|
|
85
|
+
}, z = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"], Y = new RegExp(z.join("|"), "g"), M = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"], B = new RegExp(M.join("|"), "g"), g = 275759;
|
|
86
|
+
var S;
|
|
87
|
+
(function(n) {
|
|
88
|
+
n.IncrementLargerThanRange = "IncrementLargerThanRange";
|
|
89
|
+
})(S || (S = {}));
|
|
90
|
+
function C(n) {
|
|
91
|
+
let e = n.trim().toLowerCase();
|
|
92
|
+
T[e] && (e = T[e]);
|
|
93
|
+
const t = e.split(/\s+/g);
|
|
94
|
+
if (t.length < 5 || t.length > 7)
|
|
95
|
+
throw new Error("Expression must have at least 5 fields, and no more than 7 fields");
|
|
96
|
+
switch (t.length) {
|
|
97
|
+
case 5:
|
|
98
|
+
t.unshift("0");
|
|
99
|
+
case 6:
|
|
100
|
+
t.push("*");
|
|
101
|
+
}
|
|
102
|
+
return [
|
|
103
|
+
new R(t[0]),
|
|
104
|
+
new R(t[1]),
|
|
105
|
+
new P(t[2]),
|
|
106
|
+
new V(t[3], t[5]),
|
|
107
|
+
new j(t[4]),
|
|
108
|
+
new Z(t[6])
|
|
109
|
+
];
|
|
110
|
+
}
|
|
111
|
+
function k(n, e, t) {
|
|
112
|
+
const s = [];
|
|
113
|
+
for (let a of n) {
|
|
114
|
+
let r;
|
|
115
|
+
a.step > 1 && a.step > (r = a.rangeLength(e, t)) && s.push({
|
|
116
|
+
type: S.IncrementLargerThanRange,
|
|
117
|
+
message: `Increment (${a.step}) is larger than range (${r}) for expression '${a.itemString}'`
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
return s;
|
|
121
|
+
}
|
|
122
|
+
class y {
|
|
123
|
+
constructor(e) {
|
|
124
|
+
this.field = e;
|
|
125
|
+
}
|
|
126
|
+
parse() {
|
|
127
|
+
return this.field.split(",").map((e) => f.parse(e, this.first, this.last, !0));
|
|
128
|
+
}
|
|
129
|
+
get items() {
|
|
130
|
+
return this._items || (this._items = this.parse()), this._items;
|
|
131
|
+
}
|
|
132
|
+
get values() {
|
|
133
|
+
return y.getValues(this.items, this.first, this.last);
|
|
134
|
+
}
|
|
135
|
+
get warnings() {
|
|
136
|
+
return k(this.items, this.first, this.last);
|
|
137
|
+
}
|
|
138
|
+
static getValues(e, t, s) {
|
|
139
|
+
return Array.from(new Set(b(e, (a) => a.values(t, s)))).sort(w);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
class f {
|
|
143
|
+
constructor(e) {
|
|
144
|
+
this.itemString = e, this.step = 1;
|
|
145
|
+
}
|
|
146
|
+
rangeLength(e, t) {
|
|
147
|
+
var s, a, r, i;
|
|
148
|
+
const o = (a = (s = this.range) === null || s === void 0 ? void 0 : s.from) !== null && a !== void 0 ? a : e, c = (i = (r = this.range) === null || r === void 0 ? void 0 : r.to) !== null && i !== void 0 ? i : t;
|
|
149
|
+
return c < o ? t - o + (c - e) + 1 : c - o;
|
|
150
|
+
}
|
|
151
|
+
values(e, t) {
|
|
152
|
+
const s = this.range ? this.range.from : e, a = this.rangeLength(e, t);
|
|
153
|
+
return Array(Math.floor(a / this.step) + 1).fill(0).map((r, i) => e + (s - e + this.step * i) % (t - e + 1));
|
|
154
|
+
}
|
|
155
|
+
get any() {
|
|
156
|
+
return this.range === void 0 && this.step === 1;
|
|
157
|
+
}
|
|
158
|
+
get single() {
|
|
159
|
+
return !!this.range && this.range.from === this.range.to;
|
|
160
|
+
}
|
|
161
|
+
static parse(e, t, s, a = !1, r) {
|
|
162
|
+
var i;
|
|
163
|
+
const o = new f(e), [c, l, d, h, v] = (i = e.match(/^(?:(\*)|([0-9]+)|([0-9]+-[0-9]+))(?:\/([1-9][0-9]*))?$/)) !== null && i !== void 0 ? i : [];
|
|
164
|
+
if (!c)
|
|
165
|
+
throw new Error("Field item invalid format");
|
|
166
|
+
if (v && (o.step = parseInt(v, 10)), d) {
|
|
167
|
+
let u = parseInt(d, 10);
|
|
168
|
+
if (u = r ? r(u) : u, u < t || u > s)
|
|
169
|
+
throw new Error("Field item out of valid value range");
|
|
170
|
+
o.range = {
|
|
171
|
+
from: u,
|
|
172
|
+
to: v ? void 0 : u
|
|
173
|
+
};
|
|
174
|
+
} else if (h) {
|
|
175
|
+
const [u, x] = h.split("-").map((N) => {
|
|
176
|
+
const I = parseInt(N, 10);
|
|
177
|
+
return r ? r(I) : I;
|
|
178
|
+
});
|
|
179
|
+
if (u < t || u > s || x < t || x > s || x < u && !a)
|
|
180
|
+
throw new Error("Field item range invalid, either value out of valid range or start greater than end in non wraparound field");
|
|
181
|
+
o.range = {
|
|
182
|
+
from: u,
|
|
183
|
+
to: x
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
return o;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
f.asterisk = new f("*");
|
|
190
|
+
class R extends y {
|
|
191
|
+
constructor() {
|
|
192
|
+
super(...arguments), this.first = 0, this.last = 59;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
class P extends y {
|
|
196
|
+
constructor() {
|
|
197
|
+
super(...arguments), this.first = 0, this.last = 23;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
class V {
|
|
201
|
+
constructor(e, t) {
|
|
202
|
+
this.lastDay = !1, this.lastWeekday = !1, this.daysItems = [], this.nearestWeekdayItems = [], this.daysOfWeekItems = [], this.lastDaysOfWeekItems = [], this.nthDaysOfWeekItems = [];
|
|
203
|
+
for (let r of e.split(",").map((i) => i === "?" ? "*" : i))
|
|
204
|
+
r === "l" ? this.lastDay = !0 : r === "lw" ? this.lastWeekday = !0 : r.endsWith("w") ? this.nearestWeekdayItems.push(f.parse(r.slice(0, -1), 1, 31)) : this.daysItems.push(f.parse(r, 1, 31));
|
|
205
|
+
const s = t.replace(B, (r) => M.indexOf(r) + ""), a = (r) => f.parse(r, 0, 6, !0, (i) => i === 7 ? 0 : i);
|
|
206
|
+
for (let r of s.split(",").map((i) => i === "?" ? "*" : i)) {
|
|
207
|
+
const i = r.lastIndexOf("#");
|
|
208
|
+
if (r.endsWith("l"))
|
|
209
|
+
this.lastDaysOfWeekItems.push(a(r.slice(0, -1)));
|
|
210
|
+
else if (i !== -1) {
|
|
211
|
+
const o = r.slice(i + 1);
|
|
212
|
+
if (!/^[1-5]$/.test(o))
|
|
213
|
+
throw new Error("Field item nth of month (#) invalid");
|
|
214
|
+
this.nthDaysOfWeekItems.push({
|
|
215
|
+
item: a(r.slice(0, i)),
|
|
216
|
+
nth: parseInt(o, 10)
|
|
217
|
+
});
|
|
218
|
+
} else
|
|
219
|
+
this.daysOfWeekItems.push(a(r));
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
get values() {
|
|
223
|
+
return D.fromField(this);
|
|
224
|
+
}
|
|
225
|
+
get warnings() {
|
|
226
|
+
const e = [], t = [
|
|
227
|
+
...this.daysItems,
|
|
228
|
+
...this.nearestWeekdayItems
|
|
229
|
+
], s = [
|
|
230
|
+
...this.daysOfWeekItems,
|
|
231
|
+
...this.lastDaysOfWeekItems,
|
|
232
|
+
...this.nthDaysOfWeekItems.map(({ item: a }) => a)
|
|
233
|
+
];
|
|
234
|
+
return e.push(...k(t, 1, 31), ...k(s, 0, 6)), e;
|
|
235
|
+
}
|
|
236
|
+
get allDays() {
|
|
237
|
+
return !this.lastDay && !this.lastWeekday && !this.nearestWeekdayItems.length && !this.lastDaysOfWeekItems.length && !this.nthDaysOfWeekItems.length && this.daysItems.length === 1 && this.daysItems[0].any && this.daysOfWeekItems.length === 1 && this.daysOfWeekItems[0].any;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
class D {
|
|
241
|
+
constructor() {
|
|
242
|
+
this.lastDay = !1, this.lastWeekday = !1, this.days = [], this.nearestWeekday = [], this.daysOfWeek = [], this.lastDaysOfWeek = [], this.nthDaysOfWeek = [];
|
|
243
|
+
}
|
|
244
|
+
static fromField(e) {
|
|
245
|
+
const t = new D(), s = (r) => r.filter((i) => !i.any);
|
|
246
|
+
t.lastDay = e.lastDay, t.lastWeekday = e.lastWeekday, t.days = y.getValues(e.allDays ? [f.asterisk] : s(e.daysItems), 1, 31), t.nearestWeekday = y.getValues(e.nearestWeekdayItems, 1, 31), t.daysOfWeek = y.getValues(s(e.daysOfWeekItems), 0, 6), t.lastDaysOfWeek = y.getValues(e.lastDaysOfWeekItems, 0, 6);
|
|
247
|
+
const a = /* @__PURE__ */ new Set();
|
|
248
|
+
for (let r of e.nthDaysOfWeekItems)
|
|
249
|
+
for (let i of r.item.values(0, 6)) {
|
|
250
|
+
let o = i * 10 + r.nth;
|
|
251
|
+
a.has(o) || (a.add(o), t.nthDaysOfWeek.push([i, r.nth]));
|
|
252
|
+
}
|
|
253
|
+
return t;
|
|
254
|
+
}
|
|
255
|
+
getDays(e, t) {
|
|
256
|
+
const s = new Set(this.days), a = new Date(e, t, 0).getDate(), r = new Date(e, t - 1, 1).getDay(), i = (o) => {
|
|
257
|
+
o > a && (o = a);
|
|
258
|
+
const c = (o + r - 1) % 7;
|
|
259
|
+
let l = o + (c === 0 ? 1 : c === 6 ? -1 : 0);
|
|
260
|
+
return l + (l < 1 ? 3 : l > a ? -3 : 0);
|
|
261
|
+
};
|
|
262
|
+
this.lastDay && s.add(a), this.lastWeekday && s.add(i(a));
|
|
263
|
+
for (const o of this.nearestWeekday)
|
|
264
|
+
s.add(i(o));
|
|
265
|
+
if (this.daysOfWeek.length || this.lastDaysOfWeek.length || this.nthDaysOfWeek.length) {
|
|
266
|
+
const o = Array(7).fill(0).map(() => []);
|
|
267
|
+
for (let c = 1; c < 36; c++)
|
|
268
|
+
o[(c + r - 1) % 7].push(c);
|
|
269
|
+
for (const c of this.daysOfWeek)
|
|
270
|
+
for (const l of o[c])
|
|
271
|
+
s.add(l);
|
|
272
|
+
for (const c of this.lastDaysOfWeek)
|
|
273
|
+
for (let l = o[c].length - 1; l >= 0; l--)
|
|
274
|
+
if (o[c][l] <= a) {
|
|
275
|
+
s.add(o[c][l]);
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
for (const [c, l] of this.nthDaysOfWeek)
|
|
279
|
+
s.add(o[c][l - 1]);
|
|
280
|
+
}
|
|
281
|
+
return Array.from(s).filter((o) => o <= a).sort(w);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
class j extends y {
|
|
285
|
+
constructor(e) {
|
|
286
|
+
super(e.replace(Y, (t) => z.indexOf(t) + 1 + "")), this.first = 1, this.last = 12;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
class Z extends y {
|
|
290
|
+
constructor(e) {
|
|
291
|
+
super(e), this.first = 1970, this.last = 2099, this.items;
|
|
292
|
+
}
|
|
293
|
+
parse() {
|
|
294
|
+
return this.field.split(",").map((e) => f.parse(e, 0, g));
|
|
295
|
+
}
|
|
296
|
+
get warnings() {
|
|
297
|
+
return k(this.items, this.first, g);
|
|
298
|
+
}
|
|
299
|
+
nextYear(e) {
|
|
300
|
+
var t;
|
|
301
|
+
return (t = this.items.reduce((s, a) => {
|
|
302
|
+
var r, i, o, c;
|
|
303
|
+
if (a.any)
|
|
304
|
+
s.push(e);
|
|
305
|
+
else if (a.single) {
|
|
306
|
+
const l = a.range.from;
|
|
307
|
+
l >= e && s.push(l);
|
|
308
|
+
} else {
|
|
309
|
+
const l = (i = (r = a.range) === null || r === void 0 ? void 0 : r.from) !== null && i !== void 0 ? i : this.first;
|
|
310
|
+
if (l > e)
|
|
311
|
+
s.push(l);
|
|
312
|
+
else {
|
|
313
|
+
const d = l + Math.ceil((e - l) / a.step) * a.step;
|
|
314
|
+
d <= ((c = (o = a.range) === null || o === void 0 ? void 0 : o.to) !== null && c !== void 0 ? c : g) && s.push(d);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return s;
|
|
318
|
+
}, []).sort(w)[0]) !== null && t !== void 0 ? t : null;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
class m {
|
|
322
|
+
constructor(e, t = 1, s = 1, a = 0, r = 0, i = 0) {
|
|
323
|
+
this.year = e, this.month = t, this.day = s, this.hour = a, this.minute = r, this.second = i;
|
|
324
|
+
}
|
|
325
|
+
static fromDate(e, t) {
|
|
326
|
+
return t ? t.nativeDateToCronosDate(e) : new m(e.getFullYear(), e.getMonth() + 1, e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds());
|
|
327
|
+
}
|
|
328
|
+
toDate(e) {
|
|
329
|
+
return e ? e.cronosDateToNativeDate(this) : new Date(this.year, this.month - 1, this.day, this.hour, this.minute, this.second);
|
|
330
|
+
}
|
|
331
|
+
static fromUTCTimestamp(e) {
|
|
332
|
+
const t = new Date(e);
|
|
333
|
+
return new m(t.getUTCFullYear(), t.getUTCMonth() + 1, t.getUTCDate(), t.getUTCHours(), t.getUTCMinutes(), t.getUTCSeconds());
|
|
334
|
+
}
|
|
335
|
+
toUTCTimestamp() {
|
|
336
|
+
return Date.UTC(this.year, this.month - 1, this.day, this.hour, this.minute, this.second);
|
|
337
|
+
}
|
|
338
|
+
copyWith({ year: e = this.year, month: t = this.month, day: s = this.day, hour: a = this.hour, minute: r = this.minute, second: i = this.second } = {}) {
|
|
339
|
+
return new m(e, t, s, a, r, i);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
const _ = /* @__PURE__ */ new Map();
|
|
343
|
+
class O {
|
|
344
|
+
constructor(e) {
|
|
345
|
+
if (typeof e == "number") {
|
|
346
|
+
if (e > 840 || e < -840)
|
|
347
|
+
throw new Error("Invalid offset");
|
|
348
|
+
return this.fixedOffset = e, this;
|
|
349
|
+
}
|
|
350
|
+
const t = e.match(/^([+-]?)(0[1-9]|1[0-4])(?::?([0-5][0-9]))?$/);
|
|
351
|
+
if (t)
|
|
352
|
+
return this.fixedOffset = (t[1] === "-" ? -1 : 1) * (parseInt(t[2], 10) * 60 + (parseInt(t[3], 10) || 0)), this;
|
|
353
|
+
if (_.has(e))
|
|
354
|
+
return _.get(e);
|
|
355
|
+
try {
|
|
356
|
+
this.dateTimeFormat = new Intl.DateTimeFormat("en-US", {
|
|
357
|
+
hour12: !1,
|
|
358
|
+
timeZone: e,
|
|
359
|
+
year: "numeric",
|
|
360
|
+
month: "2-digit",
|
|
361
|
+
day: "2-digit",
|
|
362
|
+
hour: "2-digit",
|
|
363
|
+
minute: "2-digit",
|
|
364
|
+
second: "2-digit"
|
|
365
|
+
});
|
|
366
|
+
} catch (a) {
|
|
367
|
+
throw new Error("Invalid IANA name or offset");
|
|
368
|
+
}
|
|
369
|
+
this.zoneName = e;
|
|
370
|
+
const s = (/* @__PURE__ */ new Date()).getUTCFullYear();
|
|
371
|
+
this.winterOffset = this.offset(Date.UTC(s, 0, 1)), this.summerOffset = this.offset(Date.UTC(s, 5, 1)), _.set(e, this);
|
|
372
|
+
}
|
|
373
|
+
toString() {
|
|
374
|
+
if (this.fixedOffset) {
|
|
375
|
+
const e = Math.abs(this.fixedOffset);
|
|
376
|
+
return [
|
|
377
|
+
this.fixedOffset < 0 ? "-" : "+",
|
|
378
|
+
Math.floor(e / 60).toString().padStart(2, "0"),
|
|
379
|
+
(e % 60).toString().padStart(2, "0")
|
|
380
|
+
].join("");
|
|
381
|
+
}
|
|
382
|
+
return this.zoneName;
|
|
383
|
+
}
|
|
384
|
+
offset(e) {
|
|
385
|
+
if (!this.dateTimeFormat)
|
|
386
|
+
return this.fixedOffset || 0;
|
|
387
|
+
const t = new Date(e), { year: s, month: a, day: r, hour: i, minute: o, second: c } = this.nativeDateToCronosDate(t), l = Date.UTC(s, a - 1, r, i, o, c), d = e - e % 1e3;
|
|
388
|
+
return (l - d) / 6e4;
|
|
389
|
+
}
|
|
390
|
+
nativeDateToCronosDate(e) {
|
|
391
|
+
return this.dateTimeFormat ? this.dateTimeFormat.formatToParts ? q(this.dateTimeFormat, e) : G(this.dateTimeFormat, e) : m.fromUTCTimestamp(e.getTime() + (this.fixedOffset || 0) * 6e4);
|
|
392
|
+
}
|
|
393
|
+
cronosDateToNativeDate(e) {
|
|
394
|
+
if (!this.dateTimeFormat)
|
|
395
|
+
return new Date(e.toUTCTimestamp() - (this.fixedOffset || 0) * 6e4);
|
|
396
|
+
const t = (e.month > 3 || e.month < 11 ? this.summerOffset : this.winterOffset) || 0, s = e.toUTCTimestamp();
|
|
397
|
+
let a = s - t * 6e4;
|
|
398
|
+
const r = this.offset(a);
|
|
399
|
+
if (t === r)
|
|
400
|
+
return new Date(a);
|
|
401
|
+
a -= (r - t) * 6e4;
|
|
402
|
+
const i = this.offset(a);
|
|
403
|
+
return r === i ? new Date(a) : new Date(s - Math.min(r, i) * 6e4);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
function G(n, e) {
|
|
407
|
+
const t = n.format(e).replace(/\u200E/g, ""), s = t.match(/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/), [, a, r, i, o, c, l] = (s != null ? s : []).map((d) => parseInt(d, 10));
|
|
408
|
+
return new m(i, a, r, o % 24, c, l);
|
|
409
|
+
}
|
|
410
|
+
function q(n, e) {
|
|
411
|
+
const t = n.formatToParts(e);
|
|
412
|
+
return new m(parseInt(t[4].value, 10), parseInt(t[0].value, 10), parseInt(t[2].value, 10), parseInt(t[6].value, 10) % 24, parseInt(t[8].value, 10), parseInt(t[10].value, 10));
|
|
413
|
+
}
|
|
414
|
+
const p = 60 * 60 * 1e3, E = (n, e) => e.findIndex((t) => t >= n);
|
|
415
|
+
class $ {
|
|
416
|
+
constructor(e, t, s, a, r, i, o) {
|
|
417
|
+
this.cronString = e, this.seconds = t, this.minutes = s, this.hours = a, this.days = r, this.months = i, this.years = o, this.skipRepeatedHour = !0, this.missingHour = "insert", this._warnings = null;
|
|
418
|
+
}
|
|
419
|
+
static parse(e, t = {}) {
|
|
420
|
+
var s;
|
|
421
|
+
const a = C(e);
|
|
422
|
+
if (t.strict) {
|
|
423
|
+
let i = b(a, (o) => o.warnings);
|
|
424
|
+
if (typeof t.strict == "object" && (i = i.filter((o) => !!t.strict[o.type])), i.length > 0)
|
|
425
|
+
throw new Error(`Strict mode: Parsing failed with ${i.length} warnings`);
|
|
426
|
+
}
|
|
427
|
+
const r = new $(e, a[0].values, a[1].values, a[2].values, a[3].values, a[4].values, a[5]);
|
|
428
|
+
return r.timezone = t.timezone instanceof O ? t.timezone : t.timezone !== void 0 ? new O(t.timezone) : void 0, r.skipRepeatedHour = t.skipRepeatedHour !== void 0 ? t.skipRepeatedHour : r.skipRepeatedHour, r.missingHour = (s = t.missingHour) !== null && s !== void 0 ? s : r.missingHour, r;
|
|
429
|
+
}
|
|
430
|
+
get warnings() {
|
|
431
|
+
if (!this._warnings) {
|
|
432
|
+
const e = C(this.cronString);
|
|
433
|
+
this._warnings = b(e, (t) => t.warnings);
|
|
434
|
+
}
|
|
435
|
+
return this._warnings;
|
|
436
|
+
}
|
|
437
|
+
toString() {
|
|
438
|
+
var e, t;
|
|
439
|
+
const s = !this.timezone || !!this.timezone.zoneName, a = Object.entries({
|
|
440
|
+
tz: (t = (e = this.timezone) === null || e === void 0 ? void 0 : e.toString()) !== null && t !== void 0 ? t : "Local",
|
|
441
|
+
skipRepeatedHour: s && this.skipRepeatedHour.toString(),
|
|
442
|
+
missingHour: s && this.missingHour
|
|
443
|
+
}).map(([r, i]) => i && r + ": " + i).filter((r) => r).join(", ");
|
|
444
|
+
return `${this.cronString} (${a})`;
|
|
445
|
+
}
|
|
446
|
+
nextDate(e = /* @__PURE__ */ new Date()) {
|
|
447
|
+
var t;
|
|
448
|
+
const s = m.fromDate(e, this.timezone);
|
|
449
|
+
if (((t = this.timezone) === null || t === void 0 ? void 0 : t.fixedOffset) !== void 0)
|
|
450
|
+
return this._next(s).date;
|
|
451
|
+
const a = e.getTime(), r = s.toUTCTimestamp(), i = m.fromDate(new Date(a - p), this.timezone).toUTCTimestamp(), o = m.fromDate(new Date(a + p), this.timezone).toUTCTimestamp(), c = o - r === 0, l = r - i === 0, d = r - i === p * 2;
|
|
452
|
+
if (this.skipRepeatedHour && l)
|
|
453
|
+
return this._next(s.copyWith({ minute: 59, second: 60 }), !1).date;
|
|
454
|
+
if (this.missingHour === "offset" && d) {
|
|
455
|
+
const u = this._next(s.copyWith({ hour: s.hour - 1 })).date;
|
|
456
|
+
if (!u || u.getTime() > a)
|
|
457
|
+
return u;
|
|
458
|
+
}
|
|
459
|
+
let { date: h, cronosDate: v } = this._next(s);
|
|
460
|
+
return this.missingHour !== "offset" && v && h && v.copyWith({ hour: v.hour + 1 }).toDate(this.timezone).getTime() === h.getTime() ? this.missingHour === "insert" ? v.copyWith({ minute: 0, second: 0 }).toDate(this.timezone) : this._next(v.copyWith({ minute: 59, second: 59 })).date : (this.skipRepeatedHour || (c && (!h || h.getTime() > a + p) && (h = this._next(s.copyWith({ minute: 0, second: 0 }), !1).date), h && h < e && (h = new Date(h.getTime() + p))), h);
|
|
461
|
+
}
|
|
462
|
+
_next(e, t = !0) {
|
|
463
|
+
const s = this._nextYear(t ? e.copyWith({ second: e.second + 1 }) : e);
|
|
464
|
+
return {
|
|
465
|
+
cronosDate: s,
|
|
466
|
+
date: s ? s.toDate(this.timezone) : null
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
nextNDates(e = /* @__PURE__ */ new Date(), t = 5) {
|
|
470
|
+
const s = [];
|
|
471
|
+
let a = e;
|
|
472
|
+
for (let r = 0; r < t; r++) {
|
|
473
|
+
const i = this.nextDate(a);
|
|
474
|
+
if (!i)
|
|
475
|
+
break;
|
|
476
|
+
a = i, s.push(i);
|
|
477
|
+
}
|
|
478
|
+
return s;
|
|
479
|
+
}
|
|
480
|
+
_nextYear(e) {
|
|
481
|
+
let t = e.year, s = null;
|
|
482
|
+
for (; !s; ) {
|
|
483
|
+
if (t = this.years.nextYear(t), t === null)
|
|
484
|
+
return null;
|
|
485
|
+
s = this._nextMonth(t === e.year ? e : new m(t)), t++;
|
|
486
|
+
}
|
|
487
|
+
return s;
|
|
488
|
+
}
|
|
489
|
+
_nextMonth(e) {
|
|
490
|
+
let t = E(e.month, this.months), s = null;
|
|
491
|
+
for (; !s; ) {
|
|
492
|
+
const a = this.months[t];
|
|
493
|
+
if (a === void 0)
|
|
494
|
+
return null;
|
|
495
|
+
s = this._nextDay(a === e.month ? e : new m(e.year, a)), t++;
|
|
496
|
+
}
|
|
497
|
+
return s;
|
|
498
|
+
}
|
|
499
|
+
_nextDay(e) {
|
|
500
|
+
const t = this.days.getDays(e.year, e.month);
|
|
501
|
+
let s = E(e.day, t), a = null;
|
|
502
|
+
for (; !a; ) {
|
|
503
|
+
const r = t[s];
|
|
504
|
+
if (r === void 0)
|
|
505
|
+
return null;
|
|
506
|
+
a = this._nextHour(r === e.day ? e : new m(e.year, e.month, r)), s++;
|
|
507
|
+
}
|
|
508
|
+
return a;
|
|
509
|
+
}
|
|
510
|
+
_nextHour(e) {
|
|
511
|
+
let t = E(e.hour, this.hours), s = null;
|
|
512
|
+
for (; !s; ) {
|
|
513
|
+
const a = this.hours[t];
|
|
514
|
+
if (a === void 0)
|
|
515
|
+
return null;
|
|
516
|
+
s = this._nextMinute(a === e.hour ? e : new m(e.year, e.month, e.day, a)), t++;
|
|
517
|
+
}
|
|
518
|
+
return s;
|
|
519
|
+
}
|
|
520
|
+
_nextMinute(e) {
|
|
521
|
+
let t = E(e.minute, this.minutes), s = null;
|
|
522
|
+
for (; !s; ) {
|
|
523
|
+
const a = this.minutes[t];
|
|
524
|
+
if (a === void 0)
|
|
525
|
+
return null;
|
|
526
|
+
s = this._nextSecond(a === e.minute ? e : new m(e.year, e.month, e.day, e.hour, a)), t++;
|
|
527
|
+
}
|
|
528
|
+
return s;
|
|
529
|
+
}
|
|
530
|
+
_nextSecond(e) {
|
|
531
|
+
const t = E(e.second, this.seconds), s = this.seconds[t];
|
|
532
|
+
return s === void 0 ? null : e.copyWith({ second: s });
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
const J = {
|
|
56
536
|
name: "VueCron",
|
|
57
537
|
props: {
|
|
58
538
|
data: Object,
|
|
59
|
-
expression: String
|
|
539
|
+
expression: String,
|
|
540
|
+
runsParser: Function
|
|
60
541
|
},
|
|
61
542
|
data() {
|
|
543
|
+
const n = (/* @__PURE__ */ new Date()).getFullYear();
|
|
62
544
|
return {
|
|
545
|
+
currentYear: n,
|
|
63
546
|
exps: [
|
|
64
|
-
{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
{
|
|
69
|
-
|
|
70
|
-
|
|
547
|
+
{
|
|
548
|
+
type: "second",
|
|
549
|
+
expression: ""
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
type: "minute",
|
|
553
|
+
expression: ""
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
type: "hour",
|
|
557
|
+
expression: ""
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
type: "day",
|
|
561
|
+
expression: ""
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
type: "month",
|
|
565
|
+
expression: ""
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
type: "Week",
|
|
569
|
+
expression: ""
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
type: "year",
|
|
573
|
+
expression: ""
|
|
574
|
+
}
|
|
71
575
|
],
|
|
72
576
|
second: {
|
|
73
577
|
cronEvery: "",
|
|
74
|
-
incrementStart: "
|
|
75
|
-
incrementIncrement: "
|
|
578
|
+
incrementStart: "1",
|
|
579
|
+
incrementIncrement: "3",
|
|
76
580
|
rangeStart: "",
|
|
77
581
|
rangeEnd: "",
|
|
78
582
|
specificSpecific: []
|
|
79
583
|
},
|
|
80
584
|
minute: {
|
|
81
585
|
cronEvery: "",
|
|
82
|
-
incrementStart: "
|
|
83
|
-
incrementIncrement: "
|
|
586
|
+
incrementStart: "1",
|
|
587
|
+
incrementIncrement: "3",
|
|
84
588
|
rangeStart: "",
|
|
85
589
|
rangeEnd: "",
|
|
86
590
|
specificSpecific: []
|
|
87
591
|
},
|
|
88
592
|
hour: {
|
|
89
593
|
cronEvery: "",
|
|
90
|
-
incrementStart: "
|
|
91
|
-
incrementIncrement: "
|
|
594
|
+
incrementStart: "1",
|
|
595
|
+
incrementIncrement: "3",
|
|
92
596
|
rangeStart: "",
|
|
93
597
|
rangeEnd: "",
|
|
94
598
|
specificSpecific: []
|
|
@@ -114,15 +618,15 @@ const s = {
|
|
|
114
618
|
},
|
|
115
619
|
month: {
|
|
116
620
|
cronEvery: "",
|
|
117
|
-
incrementStart: "
|
|
118
|
-
incrementIncrement: "
|
|
621
|
+
incrementStart: "1",
|
|
622
|
+
incrementIncrement: "3",
|
|
119
623
|
rangeStart: "",
|
|
120
624
|
rangeEnd: "",
|
|
121
625
|
specificSpecific: []
|
|
122
626
|
},
|
|
123
627
|
year: {
|
|
124
628
|
cronEvery: "",
|
|
125
|
-
incrementStart:
|
|
629
|
+
incrementStart: `${n}`,
|
|
126
630
|
incrementIncrement: "1",
|
|
127
631
|
rangeStart: "",
|
|
128
632
|
rangeEnd: "",
|
|
@@ -136,191 +640,217 @@ const s = {
|
|
|
136
640
|
month: "",
|
|
137
641
|
Week: "",
|
|
138
642
|
year: ""
|
|
139
|
-
}
|
|
643
|
+
},
|
|
644
|
+
runs: [],
|
|
645
|
+
defaultStr: "0"
|
|
140
646
|
};
|
|
141
647
|
},
|
|
142
648
|
computed: {
|
|
143
649
|
text() {
|
|
144
|
-
return
|
|
650
|
+
return U;
|
|
145
651
|
},
|
|
146
652
|
secondsText() {
|
|
147
|
-
let
|
|
653
|
+
let n = "";
|
|
148
654
|
switch (this.second.cronEvery.toString()) {
|
|
149
655
|
case "1":
|
|
150
|
-
|
|
656
|
+
n = "*";
|
|
151
657
|
break;
|
|
152
658
|
case "2":
|
|
153
|
-
|
|
659
|
+
n = `${this.second.incrementStart}/${this.second.incrementIncrement}`;
|
|
154
660
|
break;
|
|
155
661
|
case "3":
|
|
156
|
-
this.second.specificSpecific.forEach((
|
|
157
|
-
|
|
158
|
-
}),
|
|
662
|
+
this.second.specificSpecific.forEach((t) => {
|
|
663
|
+
n += `${t},`;
|
|
664
|
+
}), n = n.slice(0, -1);
|
|
159
665
|
break;
|
|
160
666
|
case "4":
|
|
161
|
-
|
|
667
|
+
n = `${this.second.rangeStart}-${this.second.rangeEnd}`;
|
|
162
668
|
break;
|
|
163
669
|
}
|
|
164
|
-
return
|
|
670
|
+
return n || this.defaultStr;
|
|
165
671
|
},
|
|
166
672
|
minutesText() {
|
|
167
|
-
let
|
|
673
|
+
let n = "";
|
|
168
674
|
switch (this.minute.cronEvery.toString()) {
|
|
169
675
|
case "1":
|
|
170
|
-
|
|
676
|
+
n = "*";
|
|
171
677
|
break;
|
|
172
678
|
case "2":
|
|
173
|
-
|
|
679
|
+
n = `${this.minute.incrementStart}/${this.minute.incrementIncrement}`;
|
|
174
680
|
break;
|
|
175
681
|
case "3":
|
|
176
|
-
this.minute.specificSpecific.forEach((
|
|
177
|
-
|
|
178
|
-
}),
|
|
682
|
+
this.minute.specificSpecific.forEach((t) => {
|
|
683
|
+
n += `${t},`;
|
|
684
|
+
}), n = n.slice(0, -1);
|
|
179
685
|
break;
|
|
180
686
|
case "4":
|
|
181
|
-
|
|
687
|
+
n = `${this.minute.rangeStart}-${this.minute.rangeEnd}`;
|
|
182
688
|
break;
|
|
183
689
|
}
|
|
184
|
-
return
|
|
690
|
+
return n || this.defaultStr;
|
|
185
691
|
},
|
|
186
692
|
hoursText() {
|
|
187
|
-
let
|
|
693
|
+
let n = "";
|
|
188
694
|
switch (this.hour.cronEvery.toString()) {
|
|
189
695
|
case "1":
|
|
190
|
-
|
|
696
|
+
n = "*";
|
|
191
697
|
break;
|
|
192
698
|
case "2":
|
|
193
|
-
|
|
699
|
+
n = `${this.hour.incrementStart}/${this.hour.incrementIncrement}`;
|
|
194
700
|
break;
|
|
195
701
|
case "3":
|
|
196
|
-
this.hour.specificSpecific.forEach((
|
|
197
|
-
|
|
198
|
-
}),
|
|
702
|
+
this.hour.specificSpecific.forEach((t) => {
|
|
703
|
+
n += `${t},`;
|
|
704
|
+
}), n = n.slice(0, -1);
|
|
199
705
|
break;
|
|
200
706
|
case "4":
|
|
201
|
-
|
|
707
|
+
n = `${this.hour.rangeStart}-${this.hour.rangeEnd}`;
|
|
202
708
|
break;
|
|
203
709
|
}
|
|
204
|
-
return
|
|
710
|
+
return n || this.defaultStr;
|
|
205
711
|
},
|
|
206
712
|
daysText() {
|
|
207
|
-
let
|
|
713
|
+
let n = "";
|
|
208
714
|
switch (this.day.cronEvery.toString()) {
|
|
209
715
|
case "1":
|
|
716
|
+
n = "*";
|
|
210
717
|
break;
|
|
211
718
|
case "2":
|
|
212
719
|
case "4":
|
|
213
720
|
case "11":
|
|
214
|
-
|
|
721
|
+
n = "?";
|
|
215
722
|
break;
|
|
216
723
|
case "3":
|
|
217
|
-
|
|
724
|
+
n = `${this.day.incrementStart}/${this.day.incrementIncrement}`;
|
|
218
725
|
break;
|
|
219
726
|
case "5":
|
|
220
|
-
this.day.specificSpecific.forEach((
|
|
221
|
-
|
|
222
|
-
}),
|
|
727
|
+
this.day.specificSpecific.forEach((t) => {
|
|
728
|
+
n += `${t},`;
|
|
729
|
+
}), n = n.slice(0, -1);
|
|
223
730
|
break;
|
|
224
731
|
case "6":
|
|
225
|
-
|
|
732
|
+
n = "L";
|
|
226
733
|
break;
|
|
227
734
|
case "7":
|
|
228
|
-
|
|
735
|
+
n = "LW";
|
|
229
736
|
break;
|
|
230
737
|
case "8":
|
|
231
|
-
|
|
738
|
+
n = `${this.day.cronLastSpecificDomDay}L`;
|
|
232
739
|
break;
|
|
233
740
|
case "9":
|
|
234
|
-
|
|
741
|
+
n = `L-${this.day.cronDaysBeforeEomMinus}`;
|
|
235
742
|
break;
|
|
236
743
|
case "10":
|
|
237
|
-
|
|
744
|
+
n = `${this.day.cronDaysNearestWeekday}W`;
|
|
238
745
|
break;
|
|
239
746
|
}
|
|
240
|
-
return
|
|
747
|
+
return n || "1";
|
|
241
748
|
},
|
|
242
749
|
weeksText() {
|
|
243
|
-
let
|
|
750
|
+
let n = "";
|
|
244
751
|
switch (this.day.cronEvery.toString()) {
|
|
245
752
|
case "1":
|
|
246
753
|
case "3":
|
|
247
754
|
case "5":
|
|
248
|
-
|
|
755
|
+
n = "?";
|
|
249
756
|
break;
|
|
250
757
|
case "2":
|
|
251
|
-
|
|
758
|
+
n = `${this.week.incrementStart}/${this.week.incrementIncrement}`;
|
|
252
759
|
break;
|
|
253
760
|
case "4":
|
|
254
|
-
this.week.specificSpecific.forEach((
|
|
255
|
-
|
|
256
|
-
}),
|
|
761
|
+
this.week.specificSpecific.forEach((t) => {
|
|
762
|
+
n += `${t},`;
|
|
763
|
+
}), n = n.slice(0, -1);
|
|
257
764
|
break;
|
|
258
765
|
case "6":
|
|
259
766
|
case "7":
|
|
260
767
|
case "8":
|
|
261
768
|
case "9":
|
|
262
769
|
case "10":
|
|
263
|
-
|
|
770
|
+
n = "?";
|
|
264
771
|
break;
|
|
265
772
|
case "11":
|
|
266
|
-
|
|
773
|
+
n = `${this.week.cronNthDayDay}#${this.week.cronNthDayNth}`;
|
|
267
774
|
break;
|
|
268
775
|
}
|
|
269
|
-
return
|
|
776
|
+
return n || "?";
|
|
270
777
|
},
|
|
271
778
|
monthsText() {
|
|
272
|
-
let
|
|
779
|
+
let n = "";
|
|
273
780
|
switch (this.month.cronEvery.toString()) {
|
|
274
781
|
case "1":
|
|
275
|
-
|
|
782
|
+
n = "*";
|
|
276
783
|
break;
|
|
277
784
|
case "2":
|
|
278
|
-
|
|
785
|
+
n = `${this.month.incrementStart}/${this.month.incrementIncrement}`;
|
|
279
786
|
break;
|
|
280
787
|
case "3":
|
|
281
|
-
this.month.specificSpecific.forEach((
|
|
282
|
-
|
|
283
|
-
}),
|
|
788
|
+
this.month.specificSpecific.forEach((t) => {
|
|
789
|
+
n += `${t},`;
|
|
790
|
+
}), n = n.slice(0, -1);
|
|
284
791
|
break;
|
|
285
792
|
case "4":
|
|
286
|
-
|
|
793
|
+
n = `${this.month.rangeStart}-${this.month.rangeEnd}`;
|
|
287
794
|
break;
|
|
288
795
|
}
|
|
289
|
-
return
|
|
796
|
+
return n || "1";
|
|
290
797
|
},
|
|
291
798
|
yearsText() {
|
|
292
|
-
let
|
|
799
|
+
let n = "";
|
|
293
800
|
switch (this.year.cronEvery.toString()) {
|
|
294
801
|
case "1":
|
|
295
|
-
|
|
802
|
+
n = "*";
|
|
296
803
|
break;
|
|
297
804
|
case "2":
|
|
298
|
-
|
|
805
|
+
n = `${this.year.incrementStart}/${this.year.incrementIncrement}`;
|
|
299
806
|
break;
|
|
300
807
|
case "3":
|
|
301
|
-
this.year.specificSpecific.forEach((
|
|
302
|
-
|
|
303
|
-
}),
|
|
808
|
+
this.year.specificSpecific.forEach((t) => {
|
|
809
|
+
n += `${t},`;
|
|
810
|
+
}), n = n.slice(0, -1);
|
|
304
811
|
break;
|
|
305
812
|
case "4":
|
|
306
|
-
|
|
813
|
+
n = `${this.year.rangeStart}-${this.year.rangeEnd}`;
|
|
307
814
|
break;
|
|
308
815
|
}
|
|
309
|
-
return
|
|
816
|
+
return n || "*";
|
|
310
817
|
},
|
|
311
818
|
cron() {
|
|
312
|
-
return `${this.secondsText
|
|
819
|
+
return `${this.secondsText} ${this.minutesText} ${this.hoursText} ${this.daysText} ${this.monthsText} ${this.weeksText} ${this.yearsText}`;
|
|
313
820
|
}
|
|
314
821
|
},
|
|
315
822
|
watch: {
|
|
316
823
|
data() {
|
|
317
824
|
this.rest(this.$data);
|
|
825
|
+
},
|
|
826
|
+
cron: {
|
|
827
|
+
immediate: !0,
|
|
828
|
+
handler(n) {
|
|
829
|
+
return W(this, null, function* () {
|
|
830
|
+
try {
|
|
831
|
+
this.runsParser ? this.runs = yield this.runsParser(n) : this.runs = $.parse(n).nextNDates(/* @__PURE__ */ new Date(), 5).map((e) => H(e));
|
|
832
|
+
} catch (e) {
|
|
833
|
+
console.log(e), this.runs = [e.message];
|
|
834
|
+
}
|
|
835
|
+
});
|
|
836
|
+
}
|
|
318
837
|
}
|
|
319
838
|
},
|
|
320
839
|
mounted() {
|
|
321
840
|
this.resolveExpression();
|
|
322
841
|
},
|
|
323
842
|
methods: {
|
|
843
|
+
copyCron() {
|
|
844
|
+
L(
|
|
845
|
+
this.cron,
|
|
846
|
+
() => {
|
|
847
|
+
this.$message.success("复制成功");
|
|
848
|
+
},
|
|
849
|
+
() => {
|
|
850
|
+
this.$message.error("复制失败");
|
|
851
|
+
}
|
|
852
|
+
);
|
|
853
|
+
},
|
|
324
854
|
getValue() {
|
|
325
855
|
return this.cron;
|
|
326
856
|
},
|
|
@@ -330,17 +860,17 @@ const s = {
|
|
|
330
860
|
close() {
|
|
331
861
|
this.$emit("close");
|
|
332
862
|
},
|
|
333
|
-
rest(
|
|
334
|
-
for (const e in
|
|
335
|
-
if (
|
|
336
|
-
this.rest(
|
|
863
|
+
rest(n) {
|
|
864
|
+
for (const e in n)
|
|
865
|
+
if (n[e] instanceof Object)
|
|
866
|
+
this.rest(n[e]);
|
|
337
867
|
else
|
|
338
|
-
switch (typeof
|
|
868
|
+
switch (typeof n[e]) {
|
|
339
869
|
case "object":
|
|
340
|
-
|
|
870
|
+
n[e] = [];
|
|
341
871
|
break;
|
|
342
872
|
case "string":
|
|
343
|
-
|
|
873
|
+
n[e] = "";
|
|
344
874
|
break;
|
|
345
875
|
}
|
|
346
876
|
},
|
|
@@ -348,242 +878,244 @@ const s = {
|
|
|
348
878
|
resolveExpression() {
|
|
349
879
|
var e;
|
|
350
880
|
if (!((e = this.expression) != null && e.length)) return;
|
|
351
|
-
const
|
|
352
|
-
if (
|
|
881
|
+
const n = this.expression.split(" ");
|
|
882
|
+
if (n.length < 7)
|
|
353
883
|
throw Error("表达式格式不正确");
|
|
354
|
-
for (let
|
|
355
|
-
this.exps[
|
|
356
|
-
this.exps.forEach((
|
|
357
|
-
switch (this.output[
|
|
884
|
+
for (let t = 0; t < n.length; t++)
|
|
885
|
+
this.exps[t].expression = n[t];
|
|
886
|
+
this.exps.forEach((t) => {
|
|
887
|
+
switch (this.output[t.type] = t.expression, t.type) {
|
|
358
888
|
case "year":
|
|
359
889
|
case "month":
|
|
360
890
|
case "hour":
|
|
361
891
|
case "minute":
|
|
362
892
|
case "second":
|
|
363
|
-
this.commonParser(this[
|
|
893
|
+
this.commonParser(this[t.type], t.expression);
|
|
364
894
|
return;
|
|
365
895
|
case "Week":
|
|
366
|
-
this.resolveWeek(
|
|
896
|
+
this.resolveWeek(t.expression);
|
|
367
897
|
return;
|
|
368
898
|
case "day":
|
|
369
|
-
this.resolveDay(
|
|
899
|
+
this.resolveDay(t.expression);
|
|
370
900
|
}
|
|
371
901
|
});
|
|
372
902
|
},
|
|
373
903
|
// 年,月,时,分,秒
|
|
374
|
-
commonParser(
|
|
375
|
-
e === "*" ? this.resolveStar(
|
|
904
|
+
commonParser(n, e) {
|
|
905
|
+
e === "*" ? this.resolveStar(n) : e.indexOf("-") >= 0 ? this.resolveLine(n, e) : e.indexOf("/") >= 0 ? this.resolveSlash(n, e) : this.resolveComma(n, e);
|
|
376
906
|
},
|
|
377
|
-
resolveWeek(
|
|
378
|
-
if (
|
|
379
|
-
this.day.cronEvery = "2", this.resolveSlash(this.week,
|
|
380
|
-
else if (
|
|
381
|
-
this.day.cronEvery = "4", this.resolveComma(this.week,
|
|
382
|
-
else if (
|
|
907
|
+
resolveWeek(n) {
|
|
908
|
+
if (n.indexOf("/") >= 0)
|
|
909
|
+
this.day.cronEvery = "2", this.resolveSlash(this.week, n);
|
|
910
|
+
else if (n.indexOf(",") >= 0)
|
|
911
|
+
this.day.cronEvery = "4", this.resolveComma(this.week, n);
|
|
912
|
+
else if (n.indexOf("#") >= 0) {
|
|
383
913
|
this.day.cronEvery = "11";
|
|
384
|
-
const e =
|
|
914
|
+
const e = n.split("#");
|
|
385
915
|
this.Week.cronNthDayDay = e[0], this.Week.cronNthDayNth = e[1];
|
|
386
916
|
}
|
|
387
917
|
},
|
|
388
|
-
resolveDay(
|
|
389
|
-
|
|
918
|
+
resolveDay(n) {
|
|
919
|
+
n === "*" ? this.resolveStar(this.day) : n.indexOf("/") >= 0 ? this.resolveSlash(this.day, n, "3") : n === "L" ? this.day.cronEvery = "6" : n === "LW" ? this.day.cronEvery = "7" : /\dL/.test(n) ? (this.day.cronEvery = "8", this.day.cronLastSpecificDomDay = Number(n.match(/(\d)L/)[1])) : /L-\d+/.test(n) ? (this.day.cronEvery = "9", this.day.cronDaysBeforeEomMinus = Number(n.match(/L-(\d+)/)[1])) : /\d+W/.test(n) ? (this.day.cronEvery = "10", this.day.cronDaysNearestWeekday = Number(n.match(/(\d+)W/))[1]) : this.resolveComma(this.day, n, "5");
|
|
390
920
|
},
|
|
391
|
-
resolveStar(
|
|
392
|
-
|
|
921
|
+
resolveStar(n, e = "1") {
|
|
922
|
+
n.cronEvery = e;
|
|
393
923
|
},
|
|
394
|
-
resolveSlash(
|
|
395
|
-
|
|
396
|
-
const
|
|
397
|
-
|
|
924
|
+
resolveSlash(n, e, t = "2") {
|
|
925
|
+
n.cronEvery = t;
|
|
926
|
+
const s = e.split("/");
|
|
927
|
+
n.incrementStart = s[0], n.incrementIncrement = s[1];
|
|
398
928
|
},
|
|
399
|
-
resolveLine(
|
|
400
|
-
|
|
401
|
-
const
|
|
402
|
-
|
|
929
|
+
resolveLine(n, e, t = "4") {
|
|
930
|
+
n.cronEvery = t;
|
|
931
|
+
const s = e.split("-");
|
|
932
|
+
n.rangeStart = s[0], n.rangeStart = s[1];
|
|
403
933
|
},
|
|
404
|
-
resolveComma(
|
|
405
|
-
|
|
934
|
+
resolveComma(n, e, t = "3") {
|
|
935
|
+
n.cronEvery = t, n.specificSpecific = e.split(",");
|
|
406
936
|
}
|
|
407
937
|
}
|
|
408
938
|
};
|
|
409
|
-
var
|
|
410
|
-
var e = this,
|
|
411
|
-
return
|
|
412
|
-
return [
|
|
413
|
-
}, proxy: !0 }]) }, [
|
|
414
|
-
e.$set(e.second, "cronEvery",
|
|
415
|
-
}, expression: "second.cronEvery" } }, [e._v(e._s(e.text.Seconds.every))])], 1),
|
|
416
|
-
e.$set(e.second, "cronEvery",
|
|
417
|
-
}, expression: "second.cronEvery" } }, [e._v(" " + e._s(e.text.Seconds.
|
|
418
|
-
e.$set(e.second, "
|
|
419
|
-
}, expression: "second.
|
|
420
|
-
e.$set(e.second, "
|
|
421
|
-
}, expression: "second.
|
|
422
|
-
e.$set(e.second, "cronEvery",
|
|
423
|
-
}, expression: "second.cronEvery" } }, [e._v(" " + e._s(e.text.Seconds.
|
|
424
|
-
e.$set(e.second, "
|
|
425
|
-
}, expression: "second.
|
|
426
|
-
|
|
427
|
-
}),
|
|
428
|
-
e.$set(e.second, "cronEvery",
|
|
429
|
-
}, expression: "second.cronEvery" } }, [e._v(" " + e._s(e.text.Seconds.
|
|
430
|
-
e.$set(e.second, "
|
|
431
|
-
}, expression: "second.
|
|
432
|
-
e
|
|
433
|
-
}
|
|
434
|
-
return [
|
|
435
|
-
}, proxy: !0 }]) }, [
|
|
436
|
-
e.$set(e.minute, "cronEvery",
|
|
437
|
-
}, expression: "minute.cronEvery" } }, [e._v(e._s(e.text.Minutes.every))])], 1),
|
|
438
|
-
e.$set(e.minute, "cronEvery",
|
|
439
|
-
}, expression: "minute.cronEvery" } }, [e._v(" " + e._s(e.text.Minutes.
|
|
440
|
-
e.$set(e.minute, "
|
|
441
|
-
}, expression: "minute.
|
|
442
|
-
e.$set(e.minute, "
|
|
443
|
-
}, expression: "minute.
|
|
444
|
-
e.$set(e.minute, "cronEvery",
|
|
445
|
-
}, expression: "minute.cronEvery" } }, [e._v(" " + e._s(e.text.Minutes.
|
|
446
|
-
e.$set(e.minute, "
|
|
447
|
-
}, expression: "minute.
|
|
448
|
-
|
|
449
|
-
}),
|
|
450
|
-
e.$set(e.minute, "cronEvery",
|
|
451
|
-
}, expression: "minute.cronEvery" } }, [e._v(" " + e._s(e.text.Minutes.
|
|
452
|
-
e.$set(e.minute, "
|
|
453
|
-
}, expression: "minute.
|
|
454
|
-
e
|
|
455
|
-
}
|
|
456
|
-
return [
|
|
457
|
-
}, proxy: !0 }]) }, [
|
|
458
|
-
e.$set(e.hour, "cronEvery",
|
|
459
|
-
}, expression: "hour.cronEvery" } }, [e._v(e._s(e.text.Hours.every))])], 1),
|
|
460
|
-
e.$set(e.hour, "cronEvery",
|
|
461
|
-
}, expression: "hour.cronEvery" } }, [e._v(" " + e._s(e.text.Hours.
|
|
462
|
-
e.$set(e.hour, "
|
|
463
|
-
}, expression: "hour.
|
|
464
|
-
e.$set(e.hour, "
|
|
465
|
-
}, expression: "hour.
|
|
466
|
-
e.$set(e.hour, "cronEvery",
|
|
467
|
-
}, expression: "hour.cronEvery" } }, [e._v(" " + e._s(e.text.Hours.
|
|
468
|
-
e.$set(e.hour, "
|
|
469
|
-
}, expression: "hour.
|
|
470
|
-
|
|
471
|
-
}),
|
|
472
|
-
e.$set(e.hour, "cronEvery",
|
|
473
|
-
}, expression: "hour.cronEvery" } }, [e._v(" " + e._s(e.text.Hours.
|
|
474
|
-
e.$set(e.hour, "
|
|
475
|
-
}, expression: "hour.
|
|
476
|
-
e
|
|
477
|
-
}
|
|
478
|
-
return [
|
|
479
|
-
}, proxy: !0 }]) }, [
|
|
480
|
-
e.$set(e.day, "cronEvery",
|
|
481
|
-
}, expression: "day.cronEvery" } }, [e._v(e._s(e.text.Day.every))])], 1),
|
|
482
|
-
e.$set(e.day, "cronEvery",
|
|
483
|
-
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.intervalWeek[0]) + " "),
|
|
484
|
-
e.$set(e.week, "
|
|
485
|
-
}, expression: "week.
|
|
486
|
-
|
|
487
|
-
},
|
|
488
|
-
|
|
489
|
-
}
|
|
490
|
-
e.$set(e.day, "cronEvery",
|
|
491
|
-
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.intervalDay[0]) + " "),
|
|
492
|
-
e.$set(e.day, "
|
|
493
|
-
}, expression: "day.
|
|
494
|
-
e.$set(e.day, "
|
|
495
|
-
}, expression: "day.
|
|
496
|
-
e.$set(e.day, "cronEvery",
|
|
497
|
-
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.specificWeek) + " "),
|
|
498
|
-
e.$set(e.week, "specificSpecific",
|
|
499
|
-
}, expression: "week.specificSpecific" } }, e._l(7, function(
|
|
500
|
-
return
|
|
501
|
-
}), 1)], 1)], 1),
|
|
502
|
-
e.$set(e.day, "cronEvery",
|
|
503
|
-
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.specificDay) + " "),
|
|
504
|
-
e.$set(e.day, "specificSpecific",
|
|
505
|
-
}, expression: "day.specificSpecific" } }, e._l(31, function(
|
|
506
|
-
return
|
|
507
|
-
}), 1)], 1)], 1),
|
|
508
|
-
e.$set(e.day, "cronEvery",
|
|
509
|
-
}, expression: "day.cronEvery" } }, [e._v(e._s(e.text.Day.lastDay))])], 1),
|
|
510
|
-
e.$set(e.day, "cronEvery",
|
|
511
|
-
}, expression: "day.cronEvery" } }, [e._v(e._s(e.text.Day.lastWeekday))])], 1),
|
|
512
|
-
e.$set(e.day, "cronEvery",
|
|
513
|
-
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.lastWeek[0]) + " "),
|
|
514
|
-
e.$set(e.day, "cronLastSpecificDomDay",
|
|
515
|
-
}, expression: "day.cronLastSpecificDomDay" } }, e._l(7, function(
|
|
516
|
-
return
|
|
517
|
-
}), 1), e._v(" " + e._s(e.text.Day.lastWeek[1] || "") + " ")], 1)], 1),
|
|
518
|
-
e.$set(e.day, "cronEvery",
|
|
519
|
-
}, expression: "day.cronEvery" } }, [
|
|
520
|
-
e.$set(e.day, "cronDaysBeforeEomMinus",
|
|
521
|
-
}, expression: "day.cronDaysBeforeEomMinus" } }), e._v(" " + e._s(e.text.Day.beforeEndMonth[0]) + " ")], 1)], 1),
|
|
522
|
-
e.$set(e.day, "cronEvery",
|
|
523
|
-
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.nearestWeekday[0]) + " "),
|
|
524
|
-
e.$set(e.day, "cronDaysNearestWeekday",
|
|
525
|
-
}, expression: "day.cronDaysNearestWeekday" } }), e._v(" " + e._s(e.text.Day.nearestWeekday[1]) + " ")], 1)], 1),
|
|
526
|
-
e.$set(e.day, "cronEvery",
|
|
527
|
-
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.someWeekday[0]) + " "),
|
|
528
|
-
e.$set(e.week, "cronNthDayNth",
|
|
529
|
-
}, expression: "week.cronNthDayNth" } }),
|
|
530
|
-
e.$set(e.week, "cronNthDayDay",
|
|
531
|
-
}, expression: "week.cronNthDayDay" } }, e._l(7, function(
|
|
532
|
-
return
|
|
533
|
-
}), 1)
|
|
534
|
-
return [
|
|
535
|
-
}, proxy: !0 }]) }, [
|
|
536
|
-
e.$set(e.month, "cronEvery",
|
|
537
|
-
}, expression: "month.cronEvery" } }, [e._v(e._s(e.text.Month.every))])], 1),
|
|
538
|
-
e.$set(e.month, "cronEvery",
|
|
539
|
-
}, expression: "month.cronEvery" } }, [e._v(" " + e._s(e.text.Month.
|
|
540
|
-
e.$set(e.month, "
|
|
541
|
-
}, expression: "month.
|
|
542
|
-
e.$set(e.month, "
|
|
543
|
-
}, expression: "month.
|
|
544
|
-
e.$set(e.month, "cronEvery",
|
|
545
|
-
}, expression: "month.cronEvery" } }, [e._v(" " + e._s(e.text.Month.
|
|
546
|
-
e.$set(e.month, "
|
|
547
|
-
}, expression: "month.
|
|
548
|
-
|
|
549
|
-
}),
|
|
550
|
-
e.$set(e.month, "cronEvery",
|
|
551
|
-
}, expression: "month.cronEvery" } }, [e._v(" " + e._s(e.text.Month.
|
|
552
|
-
e.$set(e.month, "
|
|
553
|
-
}, expression: "month.
|
|
554
|
-
|
|
555
|
-
},
|
|
556
|
-
return [
|
|
557
|
-
}, proxy: !0 }]) }, [
|
|
558
|
-
e.$set(e.year, "cronEvery",
|
|
559
|
-
}, expression: "year.cronEvery" } }, [e._v(e._s(e.text.Year.every))])], 1),
|
|
560
|
-
e.$set(e.year, "cronEvery",
|
|
561
|
-
}, expression: "year.cronEvery" } }, [e._v(" " + e._s(e.text.Year.
|
|
562
|
-
e.$set(e.year, "
|
|
563
|
-
}, expression: "year.
|
|
564
|
-
e.$set(e.year, "
|
|
565
|
-
}, expression: "year.
|
|
566
|
-
e.$set(e.year, "cronEvery",
|
|
567
|
-
}, expression: "year.cronEvery" } }, [e._v(" " + e._s(e.text.Year.
|
|
568
|
-
e.$set(e.year, "
|
|
569
|
-
}, expression: "year.
|
|
570
|
-
|
|
571
|
-
}),
|
|
572
|
-
e.$set(e.year, "cronEvery",
|
|
573
|
-
}, expression: "year.cronEvery" } }, [e._v(" " + e._s(e.text.Year.
|
|
574
|
-
e.$set(e.year, "
|
|
575
|
-
}, expression: "year.
|
|
576
|
-
|
|
577
|
-
}, expression: "
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
939
|
+
var K = function() {
|
|
940
|
+
var e = this, t = e._self._c;
|
|
941
|
+
return t("div", { staticClass: "vue-cron" }, [t("ElTabs", { attrs: { type: "border-card" } }, [t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
942
|
+
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Seconds.name))])];
|
|
943
|
+
}, proxy: !0 }]) }, [t("div", { staticClass: "tabBody" }, [t("ElRow", [t("ElRadio", { attrs: { label: "1" }, model: { value: e.second.cronEvery, callback: function(s) {
|
|
944
|
+
e.$set(e.second, "cronEvery", s);
|
|
945
|
+
}, expression: "second.cronEvery" } }, [e._v(e._s(e.text.Seconds.every))])], 1), t("ElRow", [t("ElRadio", { attrs: { label: "4" }, model: { value: e.second.cronEvery, callback: function(s) {
|
|
946
|
+
e.$set(e.second, "cronEvery", s);
|
|
947
|
+
}, expression: "second.cronEvery" } }, [e._v(" " + e._s(e.text.Seconds.cycle[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 0, max: 60 }, model: { value: e.second.rangeStart, callback: function(s) {
|
|
948
|
+
e.$set(e.second, "rangeStart", s);
|
|
949
|
+
}, expression: "second.rangeStart" } }), e._v(" " + e._s(e.text.Seconds.cycle[1] || "") + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 59 }, model: { value: e.second.rangeEnd, callback: function(s) {
|
|
950
|
+
e.$set(e.second, "rangeEnd", s);
|
|
951
|
+
}, expression: "second.rangeEnd" } }), e._v(" " + e._s(e.text.Seconds.cycle[2] || "") + " ")], 1)], 1), t("ElRow", [t("ElRadio", { attrs: { label: "2" }, model: { value: e.second.cronEvery, callback: function(s) {
|
|
952
|
+
e.$set(e.second, "cronEvery", s);
|
|
953
|
+
}, expression: "second.cronEvery" } }, [e._v(" " + e._s(e.text.Seconds.interval[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 0, max: 59 }, model: { value: e.second.incrementStart, callback: function(s) {
|
|
954
|
+
e.$set(e.second, "incrementStart", s);
|
|
955
|
+
}, expression: "second.incrementStart" } }), e._v(" " + e._s(e.text.Seconds.interval[1] || "") + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 60 }, model: { value: e.second.incrementIncrement, callback: function(s) {
|
|
956
|
+
e.$set(e.second, "incrementIncrement", s);
|
|
957
|
+
}, expression: "second.incrementIncrement" } }), e._v(" " + e._s(e.text.Seconds.interval[2] || "") + " ")], 1)], 1), t("ElRow", [t("ElRadio", { staticClass: "long", attrs: { label: "3" }, model: { value: e.second.cronEvery, callback: function(s) {
|
|
958
|
+
e.$set(e.second, "cronEvery", s);
|
|
959
|
+
}, expression: "second.cronEvery" } }, [e._v(" " + e._s(e.text.Seconds.specific) + " "), t("ElSelect", { attrs: { size: "small", multiple: "" }, model: { value: e.second.specificSpecific, callback: function(s) {
|
|
960
|
+
e.$set(e.second, "specificSpecific", s);
|
|
961
|
+
}, expression: "second.specificSpecific" } }, e._l(60, function(s) {
|
|
962
|
+
return t("ElOption", { key: s, attrs: { value: s - 1 } }, [e._v(e._s(s - 1))]);
|
|
963
|
+
}), 1)], 1)], 1)], 1)]), t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
964
|
+
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Minutes.name))])];
|
|
965
|
+
}, proxy: !0 }]) }, [t("div", { staticClass: "tabBody" }, [t("ElRow", [t("ElRadio", { attrs: { label: "1" }, model: { value: e.minute.cronEvery, callback: function(s) {
|
|
966
|
+
e.$set(e.minute, "cronEvery", s);
|
|
967
|
+
}, expression: "minute.cronEvery" } }, [e._v(e._s(e.text.Minutes.every))])], 1), t("ElRow", [t("ElRadio", { attrs: { label: "4" }, model: { value: e.minute.cronEvery, callback: function(s) {
|
|
968
|
+
e.$set(e.minute, "cronEvery", s);
|
|
969
|
+
}, expression: "minute.cronEvery" } }, [e._v(" " + e._s(e.text.Minutes.cycle[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 0, max: 60 }, model: { value: e.minute.rangeStart, callback: function(s) {
|
|
970
|
+
e.$set(e.minute, "rangeStart", s);
|
|
971
|
+
}, expression: "minute.rangeStart" } }), e._v(" " + e._s(e.text.Minutes.cycle[1]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 59 }, model: { value: e.minute.rangeEnd, callback: function(s) {
|
|
972
|
+
e.$set(e.minute, "rangeEnd", s);
|
|
973
|
+
}, expression: "minute.rangeEnd" } }), e._v(" " + e._s(e.text.Minutes.cycle[2]) + " ")], 1)], 1), t("ElRow", [t("ElRadio", { attrs: { label: "2" }, model: { value: e.minute.cronEvery, callback: function(s) {
|
|
974
|
+
e.$set(e.minute, "cronEvery", s);
|
|
975
|
+
}, expression: "minute.cronEvery" } }, [e._v(" " + e._s(e.text.Minutes.interval[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 0, max: 59 }, model: { value: e.minute.incrementStart, callback: function(s) {
|
|
976
|
+
e.$set(e.minute, "incrementStart", s);
|
|
977
|
+
}, expression: "minute.incrementStart" } }), e._v(" " + e._s(e.text.Minutes.interval[1]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 60 }, model: { value: e.minute.incrementIncrement, callback: function(s) {
|
|
978
|
+
e.$set(e.minute, "incrementIncrement", s);
|
|
979
|
+
}, expression: "minute.incrementIncrement" } }), e._v(" " + e._s(e.text.Minutes.interval[2] || "") + " ")], 1)], 1), t("ElRow", [t("ElRadio", { staticClass: "long", attrs: { label: "3" }, model: { value: e.minute.cronEvery, callback: function(s) {
|
|
980
|
+
e.$set(e.minute, "cronEvery", s);
|
|
981
|
+
}, expression: "minute.cronEvery" } }, [e._v(" " + e._s(e.text.Minutes.specific) + " "), t("ElSelect", { attrs: { size: "small", multiple: "" }, model: { value: e.minute.specificSpecific, callback: function(s) {
|
|
982
|
+
e.$set(e.minute, "specificSpecific", s);
|
|
983
|
+
}, expression: "minute.specificSpecific" } }, e._l(60, function(s) {
|
|
984
|
+
return t("ElOption", { key: s, attrs: { value: s - 1 } }, [e._v(e._s(s - 1))]);
|
|
985
|
+
}), 1)], 1)], 1)], 1)]), t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
986
|
+
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Hours.name))])];
|
|
987
|
+
}, proxy: !0 }]) }, [t("div", { staticClass: "tabBody" }, [t("ElRow", [t("ElRadio", { attrs: { label: "1" }, model: { value: e.hour.cronEvery, callback: function(s) {
|
|
988
|
+
e.$set(e.hour, "cronEvery", s);
|
|
989
|
+
}, expression: "hour.cronEvery" } }, [e._v(e._s(e.text.Hours.every))])], 1), t("ElRow", [t("ElRadio", { attrs: { label: "4" }, model: { value: e.hour.cronEvery, callback: function(s) {
|
|
990
|
+
e.$set(e.hour, "cronEvery", s);
|
|
991
|
+
}, expression: "hour.cronEvery" } }, [e._v(" " + e._s(e.text.Hours.cycle[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 0, max: 23 }, model: { value: e.hour.rangeStart, callback: function(s) {
|
|
992
|
+
e.$set(e.hour, "rangeStart", s);
|
|
993
|
+
}, expression: "hour.rangeStart" } }), e._v(" " + e._s(e.text.Hours.cycle[1]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 23 }, model: { value: e.hour.rangeEnd, callback: function(s) {
|
|
994
|
+
e.$set(e.hour, "rangeEnd", s);
|
|
995
|
+
}, expression: "hour.rangeEnd" } }), e._v(" " + e._s(e.text.Hours.cycle[2]) + " ")], 1)], 1), t("ElRow", [t("ElRadio", { attrs: { label: "2" }, model: { value: e.hour.cronEvery, callback: function(s) {
|
|
996
|
+
e.$set(e.hour, "cronEvery", s);
|
|
997
|
+
}, expression: "hour.cronEvery" } }, [e._v(" " + e._s(e.text.Hours.interval[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 0, max: 23 }, model: { value: e.hour.incrementStart, callback: function(s) {
|
|
998
|
+
e.$set(e.hour, "incrementStart", s);
|
|
999
|
+
}, expression: "hour.incrementStart" } }), e._v(" " + e._s(e.text.Hours.interval[1]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 23 }, model: { value: e.hour.incrementIncrement, callback: function(s) {
|
|
1000
|
+
e.$set(e.hour, "incrementIncrement", s);
|
|
1001
|
+
}, expression: "hour.incrementIncrement" } }), e._v(" " + e._s(e.text.Hours.interval[2]) + " ")], 1)], 1), t("ElRow", [t("ElRadio", { staticClass: "long", attrs: { label: "3" }, model: { value: e.hour.cronEvery, callback: function(s) {
|
|
1002
|
+
e.$set(e.hour, "cronEvery", s);
|
|
1003
|
+
}, expression: "hour.cronEvery" } }, [e._v(" " + e._s(e.text.Hours.specific) + " "), t("ElSelect", { attrs: { size: "small", multiple: "" }, model: { value: e.hour.specificSpecific, callback: function(s) {
|
|
1004
|
+
e.$set(e.hour, "specificSpecific", s);
|
|
1005
|
+
}, expression: "hour.specificSpecific" } }, e._l(24, function(s) {
|
|
1006
|
+
return t("ElOption", { key: s, attrs: { value: s - 1 } }, [e._v(e._s(s - 1))]);
|
|
1007
|
+
}), 1)], 1)], 1)], 1)]), t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
1008
|
+
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Day.name))])];
|
|
1009
|
+
}, proxy: !0 }]) }, [t("div", { staticClass: "tabBody" }, [t("ElRow", [t("ElRadio", { attrs: { label: "1" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1010
|
+
e.$set(e.day, "cronEvery", s);
|
|
1011
|
+
}, expression: "day.cronEvery" } }, [e._v(e._s(e.text.Day.every))])], 1), t("ElRow", [t("ElRadio", { attrs: { label: "2" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1012
|
+
e.$set(e.day, "cronEvery", s);
|
|
1013
|
+
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.intervalWeek[0]) + " "), t("ElSelect", { attrs: { size: "small" }, model: { value: e.week.incrementStart, callback: function(s) {
|
|
1014
|
+
e.$set(e.week, "incrementStart", s);
|
|
1015
|
+
}, expression: "week.incrementStart" } }, e._l(7, function(s) {
|
|
1016
|
+
return t("ElOption", { key: s, attrs: { label: e.text.Week[s - 1], value: s } });
|
|
1017
|
+
}), 1), e._v(" " + e._s(e.text.Day.intervalWeek[1]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 7 }, model: { value: e.week.incrementIncrement, callback: function(s) {
|
|
1018
|
+
e.$set(e.week, "incrementIncrement", s);
|
|
1019
|
+
}, expression: "week.incrementIncrement" } }), e._v(" " + e._s(e.text.Day.intervalWeek[2]) + " ")], 1)], 1), t("ElRow", [t("ElRadio", { attrs: { label: "3" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1020
|
+
e.$set(e.day, "cronEvery", s);
|
|
1021
|
+
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.intervalDay[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 0, max: 31 }, model: { value: e.day.incrementStart, callback: function(s) {
|
|
1022
|
+
e.$set(e.day, "incrementStart", s);
|
|
1023
|
+
}, expression: "day.incrementStart" } }), e._v(" " + e._s(e.text.Day.intervalDay[1]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 31 }, model: { value: e.day.incrementIncrement, callback: function(s) {
|
|
1024
|
+
e.$set(e.day, "incrementIncrement", s);
|
|
1025
|
+
}, expression: "day.incrementIncrement" } }), e._v(" " + e._s(e.text.Day.intervalDay[2]) + " ")], 1)], 1), t("ElRow", [t("ElRadio", { staticClass: "long", attrs: { label: "4" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1026
|
+
e.$set(e.day, "cronEvery", s);
|
|
1027
|
+
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.specificWeek) + " "), t("ElSelect", { attrs: { size: "small", multiple: "" }, model: { value: e.week.specificSpecific, callback: function(s) {
|
|
1028
|
+
e.$set(e.week, "specificSpecific", s);
|
|
1029
|
+
}, expression: "week.specificSpecific" } }, e._l(7, function(s) {
|
|
1030
|
+
return t("ElOption", { key: s, attrs: { label: e.text.Week[s - 1], value: ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"][s - 1] } });
|
|
1031
|
+
}), 1)], 1)], 1), t("ElRow", [t("ElRadio", { staticClass: "long", attrs: { label: "5" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1032
|
+
e.$set(e.day, "cronEvery", s);
|
|
1033
|
+
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.specificDay) + " "), t("ElSelect", { attrs: { size: "small", multiple: "" }, model: { value: e.day.specificSpecific, callback: function(s) {
|
|
1034
|
+
e.$set(e.day, "specificSpecific", s);
|
|
1035
|
+
}, expression: "day.specificSpecific" } }, e._l(31, function(s) {
|
|
1036
|
+
return t("ElOption", { key: s, attrs: { value: s } }, [e._v(e._s(s))]);
|
|
1037
|
+
}), 1)], 1)], 1), t("ElRow", [t("ElRadio", { attrs: { label: "6" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1038
|
+
e.$set(e.day, "cronEvery", s);
|
|
1039
|
+
}, expression: "day.cronEvery" } }, [e._v(e._s(e.text.Day.lastDay))])], 1), t("ElRow", [t("ElRadio", { attrs: { label: "7" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1040
|
+
e.$set(e.day, "cronEvery", s);
|
|
1041
|
+
}, expression: "day.cronEvery" } }, [e._v(e._s(e.text.Day.lastWeekday))])], 1), t("ElRow", [t("ElRadio", { attrs: { label: "8" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1042
|
+
e.$set(e.day, "cronEvery", s);
|
|
1043
|
+
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.lastWeek[0]) + " "), t("ElSelect", { attrs: { size: "small" }, model: { value: e.day.cronLastSpecificDomDay, callback: function(s) {
|
|
1044
|
+
e.$set(e.day, "cronLastSpecificDomDay", s);
|
|
1045
|
+
}, expression: "day.cronLastSpecificDomDay" } }, e._l(7, function(s) {
|
|
1046
|
+
return t("ElOption", { key: s, attrs: { label: e.text.Week[s - 1], value: s } });
|
|
1047
|
+
}), 1), e._v(" " + e._s(e.text.Day.lastWeek[1] || "") + " ")], 1)], 1), t("ElRow", [t("ElRadio", { attrs: { label: "9" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1048
|
+
e.$set(e.day, "cronEvery", s);
|
|
1049
|
+
}, expression: "day.cronEvery" } }, [t("ElInputNumber", { attrs: { size: "small", min: 1, max: 31 }, model: { value: e.day.cronDaysBeforeEomMinus, callback: function(s) {
|
|
1050
|
+
e.$set(e.day, "cronDaysBeforeEomMinus", s);
|
|
1051
|
+
}, expression: "day.cronDaysBeforeEomMinus" } }), e._v(" " + e._s(e.text.Day.beforeEndMonth[0]) + " ")], 1)], 1), t("ElRow", [t("ElRadio", { attrs: { label: "10" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1052
|
+
e.$set(e.day, "cronEvery", s);
|
|
1053
|
+
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.nearestWeekday[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 31 }, model: { value: e.day.cronDaysNearestWeekday, callback: function(s) {
|
|
1054
|
+
e.$set(e.day, "cronDaysNearestWeekday", s);
|
|
1055
|
+
}, expression: "day.cronDaysNearestWeekday" } }), e._v(" " + e._s(e.text.Day.nearestWeekday[1]) + " ")], 1)], 1), t("ElRow", [t("ElRadio", { attrs: { label: "11" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1056
|
+
e.$set(e.day, "cronEvery", s);
|
|
1057
|
+
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.someWeekday[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 5 }, model: { value: e.week.cronNthDayNth, callback: function(s) {
|
|
1058
|
+
e.$set(e.week, "cronNthDayNth", s);
|
|
1059
|
+
}, expression: "week.cronNthDayNth" } }), e._v(" " + e._s(e.text.Day.someWeekday[1]) + " "), t("ElSelect", { attrs: { size: "small" }, model: { value: e.week.cronNthDayDay, callback: function(s) {
|
|
1060
|
+
e.$set(e.week, "cronNthDayDay", s);
|
|
1061
|
+
}, expression: "week.cronNthDayDay" } }, e._l(7, function(s) {
|
|
1062
|
+
return t("ElOption", { key: s, attrs: { label: e.text.Week[s - 1], value: s } });
|
|
1063
|
+
}), 1)], 1)], 1)], 1)]), t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
1064
|
+
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Month.name))])];
|
|
1065
|
+
}, proxy: !0 }]) }, [t("div", { staticClass: "tabBody" }, [t("ElRow", [t("ElRadio", { attrs: { label: "1" }, model: { value: e.month.cronEvery, callback: function(s) {
|
|
1066
|
+
e.$set(e.month, "cronEvery", s);
|
|
1067
|
+
}, expression: "month.cronEvery" } }, [e._v(e._s(e.text.Month.every))])], 1), t("ElRow", [t("ElRadio", { attrs: { label: "4" }, model: { value: e.month.cronEvery, callback: function(s) {
|
|
1068
|
+
e.$set(e.month, "cronEvery", s);
|
|
1069
|
+
}, expression: "month.cronEvery" } }, [e._v(" " + e._s(e.text.Month.cycle[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 12 }, model: { value: e.month.rangeStart, callback: function(s) {
|
|
1070
|
+
e.$set(e.month, "rangeStart", s);
|
|
1071
|
+
}, expression: "month.rangeStart" } }), e._v(" " + e._s(e.text.Month.cycle[1]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 12 }, model: { value: e.month.rangeEnd, callback: function(s) {
|
|
1072
|
+
e.$set(e.month, "rangeEnd", s);
|
|
1073
|
+
}, expression: "month.rangeEnd" } }), e._v(" " + e._s(e.text.Month.cycle[2]) + " ")], 1)], 1), t("ElRow", [t("ElRadio", { attrs: { label: "2" }, model: { value: e.month.cronEvery, callback: function(s) {
|
|
1074
|
+
e.$set(e.month, "cronEvery", s);
|
|
1075
|
+
}, expression: "month.cronEvery" } }, [e._v(" " + e._s(e.text.Month.interval[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 0, max: 12 }, model: { value: e.month.incrementStart, callback: function(s) {
|
|
1076
|
+
e.$set(e.month, "incrementStart", s);
|
|
1077
|
+
}, expression: "month.incrementStart" } }), e._v(" " + e._s(e.text.Month.interval[1]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 12 }, model: { value: e.month.incrementIncrement, callback: function(s) {
|
|
1078
|
+
e.$set(e.month, "incrementIncrement", s);
|
|
1079
|
+
}, expression: "month.incrementIncrement" } }), e._v(" " + e._s(e.text.Month.interval[2]) + " ")], 1)], 1), t("ElRow", [t("ElRadio", { staticClass: "long", attrs: { label: "3" }, model: { value: e.month.cronEvery, callback: function(s) {
|
|
1080
|
+
e.$set(e.month, "cronEvery", s);
|
|
1081
|
+
}, expression: "month.cronEvery" } }, [e._v(" " + e._s(e.text.Month.specific) + " "), t("ElSelect", { attrs: { size: "small", multiple: "" }, model: { value: e.month.specificSpecific, callback: function(s) {
|
|
1082
|
+
e.$set(e.month, "specificSpecific", s);
|
|
1083
|
+
}, expression: "month.specificSpecific" } }, e._l(12, function(s) {
|
|
1084
|
+
return t("ElOption", { key: s, attrs: { label: s, value: s } });
|
|
1085
|
+
}), 1)], 1)], 1)], 1)]), t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
1086
|
+
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Year.name))])];
|
|
1087
|
+
}, proxy: !0 }]) }, [t("div", { staticClass: "tabBody" }, [t("ElRow", [t("ElRadio", { attrs: { label: "1" }, model: { value: e.year.cronEvery, callback: function(s) {
|
|
1088
|
+
e.$set(e.year, "cronEvery", s);
|
|
1089
|
+
}, expression: "year.cronEvery" } }, [e._v(e._s(e.text.Year.every))])], 1), t("ElRow", [t("ElRadio", { attrs: { label: "4" }, model: { value: e.year.cronEvery, callback: function(s) {
|
|
1090
|
+
e.$set(e.year, "cronEvery", s);
|
|
1091
|
+
}, expression: "year.cronEvery" } }, [e._v(" " + e._s(e.text.Year.cycle[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: e.currentYear, max: 2118 }, model: { value: e.year.rangeStart, callback: function(s) {
|
|
1092
|
+
e.$set(e.year, "rangeStart", s);
|
|
1093
|
+
}, expression: "year.rangeStart" } }), e._v(" " + e._s(e.text.Year.cycle[1]) + " "), t("ElInputNumber", { attrs: { size: "small", min: e.currentYear, max: 2118 }, model: { value: e.year.rangeEnd, callback: function(s) {
|
|
1094
|
+
e.$set(e.year, "rangeEnd", s);
|
|
1095
|
+
}, expression: "year.rangeEnd" } }), e._v(" " + e._s(e.text.Year.cycle[2]) + " ")], 1)], 1), t("ElRow", [t("ElRadio", { attrs: { label: "2" }, model: { value: e.year.cronEvery, callback: function(s) {
|
|
1096
|
+
e.$set(e.year, "cronEvery", s);
|
|
1097
|
+
}, expression: "year.cronEvery" } }, [e._v(" " + e._s(e.text.Year.interval[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: e.currentYear, max: 2118 }, model: { value: e.year.incrementStart, callback: function(s) {
|
|
1098
|
+
e.$set(e.year, "incrementStart", s);
|
|
1099
|
+
}, expression: "year.incrementStart" } }), e._v(" " + e._s(e.text.Year.interval[1]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 99 }, model: { value: e.year.incrementIncrement, callback: function(s) {
|
|
1100
|
+
e.$set(e.year, "incrementIncrement", s);
|
|
1101
|
+
}, expression: "year.incrementIncrement" } }), e._v(" " + e._s(e.text.Year.interval[2]) + " ")], 1)], 1), t("ElRow", [t("ElRadio", { staticClass: "long", attrs: { label: "3" }, model: { value: e.year.cronEvery, callback: function(s) {
|
|
1102
|
+
e.$set(e.year, "cronEvery", s);
|
|
1103
|
+
}, expression: "year.cronEvery" } }, [e._v(" " + e._s(e.text.Year.specific) + " "), t("ElSelect", { attrs: { size: "small", filterable: "", multiple: "" }, model: { value: e.year.specificSpecific, callback: function(s) {
|
|
1104
|
+
e.$set(e.year, "specificSpecific", s);
|
|
1105
|
+
}, expression: "year.specificSpecific" } }, e._l(100, function(s) {
|
|
1106
|
+
return t("ElOption", { key: s, attrs: { label: 2017 + s, value: 2017 + s } });
|
|
1107
|
+
}), 1)], 1)], 1)], 1)])], 1), t("div", { staticStyle: { padding: "0 0 10px" } }, [t("div", { staticClass: "cron-expression", staticStyle: { "padding-top": "20px" } }, [t("p", { staticClass: "title" }, [e._v("Cron 表达式")]), t("div", { staticClass: "flex-row" }, [t("div", { staticClass: "flex-column field" }, [t("span", { staticClass: "field-name" }, [e._v("秒")]), t("span", { staticClass: "field-value" }, [e._v(e._s(e.secondsText))])]), t("div", { staticClass: "flex-column field" }, [t("span", { staticClass: "field-name" }, [e._v(" 分钟")]), t("span", { staticClass: "field-value" }, [e._v(e._s(e.minutesText))])]), t("div", { staticClass: "flex-column field" }, [t("span", { staticClass: "field-name" }, [e._v("小时")]), t("span", { staticClass: "field-value" }, [e._v(e._s(e.hoursText))])]), t("div", { staticClass: "flex-column field" }, [t("span", { staticClass: "field-name" }, [e._v("天")]), t("span", { staticClass: "field-value highlight" }, [e._v(e._s(e.daysText))])]), t("div", { staticClass: "flex-column field" }, [t("span", { staticClass: "field-name" }, [e._v("月")]), t("span", { staticClass: "field-value" }, [e._v(e._s(e.monthsText))])]), t("div", { staticClass: "flex-column field" }, [t("span", { staticClass: "field-name" }, [e._v("周")]), t("span", { staticClass: "field-value highlight" }, [e._v(e._s(e.weeksText))])]), t("div", { staticClass: "flex-column field" }, [t("span", { staticClass: "field-name" }, [e._v("年")]), t("span", { staticClass: "field-value" }, [e._v(e._s(e.yearsText))])]), t("div", { staticClass: "flex-column flex-item", staticStyle: { padding: "0 10px" } }, [t("span", { staticClass: "field-name" }, [e._v("cron 完整表达式")]), t("span", { staticClass: "field-value highlight", staticStyle: { width: "auto", cursor: "copy" }, on: { click: e.copyCron } }, [e._v(e._s(e.cron))])])])]), t("div", { staticClass: "cron-expression", staticStyle: { "margin-top": "10px" } }, [t("div", { staticStyle: { "margin-bottom": "10px" } }, [e._v("最近 5 次运行时间")]), e._l(e.runs, function(s) {
|
|
1108
|
+
return t("ul", { key: s, staticStyle: { "padding-left": "18px" } }, [t("li", { staticStyle: { "margin-bottom": "4px", color: "#ff8100" } }, [e._v(e._s(s))])]);
|
|
1109
|
+
})], 2)]), t("div", { staticClass: "bottom" }, [t("ElButton", { attrs: { type: "primary" }, on: { click: e.change } }, [e._v(e._s(e.text.Save))]), t("ElButton", { attrs: { type: "primary" }, on: { click: e.close } }, [e._v(e._s(e.text.Close))])], 1)], 1);
|
|
1110
|
+
}, Q = [], X = /* @__PURE__ */ F(
|
|
1111
|
+
J,
|
|
1112
|
+
K,
|
|
1113
|
+
Q,
|
|
582
1114
|
!1,
|
|
583
1115
|
null,
|
|
584
1116
|
null
|
|
585
1117
|
);
|
|
586
|
-
const
|
|
1118
|
+
const ne = X.exports;
|
|
587
1119
|
export {
|
|
588
|
-
|
|
1120
|
+
ne as default
|
|
589
1121
|
};
|