@web-utils/component 3.8.3 → 4.0.1
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/awesome-button/index.mjs +25 -55
- package/base.css +1 -1
- package/card/index.mjs +13 -13
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/index.mjs +2 -2
- package/chat/style.css +1 -1
- package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
- package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
- package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
- package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
- package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
- package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
- package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
- package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
- package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
- package/chunks/configComponents.BDhlZU8F.mjs +23 -0
- package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
- package/chunks/core.DJEgjQW6.mjs +54 -0
- package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
- package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
- package/chunks/form-input.B8z37eqj.mjs +31 -0
- package/chunks/form-item.D-H-wCPE.mjs +233 -0
- package/chunks/form-validate.CVarNHKX.mjs +12 -0
- package/chunks/helper.BiMLcEEk.mjs +41 -0
- package/chunks/index.9OxHjTIE.mjs +16 -0
- package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
- package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
- package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/color-picker/index.mjs +19 -37
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +13 -24
- package/custom-scrollbar/index.mjs +1 -2
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +16 -28
- package/dynamic-table/style.css +1 -1
- package/easy-popup/index.mjs +22 -40
- package/easy-popup/style.css +1 -1
- package/editable-tree/index.mjs +203 -250
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +30 -52
- package/element-dialog/style.css +1 -1
- package/flex-column/index.mjs +13 -25
- package/flex-item/index.mjs +15 -27
- package/flex-row/index.mjs +13 -25
- package/flow/index.mjs +30 -32
- package/flow-designer/index.mjs +344 -375
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +64 -91
- package/form-block/index.mjs +33 -26
- package/form-card/index.mjs +25 -0
- package/form-cascader/index.mjs +70 -67
- package/form-checkbox/index.mjs +71 -0
- package/form-checkbox-group/index.mjs +33 -53
- package/form-date-picker/index.mjs +44 -73
- package/form-holder/index.mjs +60 -64
- package/form-holder/style.css +1 -0
- package/form-input/index.mjs +62 -40
- package/form-input-cron-expression/index.mjs +77 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.mjs +21 -33
- package/form-input-id-card/index.mjs +25 -38
- package/form-input-number/index.mjs +39 -42
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +26 -37
- package/form-input-tag/index.mjs +32 -34
- package/form-input-time/index.mjs +22 -37
- package/form-item/index.mjs +109 -101
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +18 -10
- package/form-item-group/index.mjs +73 -69
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +41 -36
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +142 -75
- package/form-select/style.css +1 -0
- package/form-switch/index.mjs +29 -34
- package/form-table/index.mjs +85 -0
- package/form-table-plus/index.mjs +109 -0
- package/form-textarea/index.mjs +23 -35
- package/form-tree-select/index.mjs +72 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.mjs +78 -0
- package/form-view/index.mjs +43 -77
- package/form-view/style.css +1 -1
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +12 -17
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +5 -7
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +14 -16
- package/fy-empty/index.mjs +1 -1
- package/fy-empty/style.css +1 -1
- package/fy-form/index.mjs +117 -136
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +319 -345
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +2 -2
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +1 -1
- package/fy-input-map/index.mjs +21 -26
- package/fy-input-map/style.css +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +10 -12
- package/fy-input-tree/index.mjs +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +4 -4
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +0 -1
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/index.mjs +3 -3
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/highlight-j-s/style.css +1 -1
- package/image-cropper/index.mjs +14 -65
- package/image-preview/index.mjs +17 -45
- package/image-preview/style.css +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +666 -496
- package/input-number/index.mjs +64 -9
- package/keyboard/style.css +1 -1
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +44 -74
- package/name-avatar/style.css +1 -1
- package/package.json +18 -17
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +354 -226
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +63 -106
- package/photo-swipe/index.mjs +51 -74
- package/picker-table-view/index.mjs +117 -0
- package/present-view/index.mjs +43 -77
- package/present-view/style.css +1 -1
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/index.mjs +2 -2
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +2 -2
- package/sign-panel/style.css +1 -1
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.mjs +31 -49
- package/split-pane/style.css +1 -1
- package/sub-table/index.mjs +206 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.mjs +231 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.mjs +18 -38
- package/swiper/style.css +1 -1
- package/tab/index.mjs +1 -1
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +112 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +178 -135
- package/table-view/style.css +1 -1
- package/tabs-view/index.mjs +104 -0
- package/tabs-view/style.css +1 -0
- package/tag-render/index.mjs +13 -24
- package/text-ellipsis/index.mjs +1 -1
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +48 -66
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +3 -3
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +36 -67
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3843
- package/x-input-tag/index.mjs +29 -61
- package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
- package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
- package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
- package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
- package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
- package/toolbar-button/style.css +0 -1
- /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
package/vue-cron/index.mjs
CHANGED
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} catch (l) {
|
|
6
|
-
a(l);
|
|
7
|
-
}
|
|
8
|
-
}, r = (o) => {
|
|
9
|
-
try {
|
|
10
|
-
c(t.throw(o));
|
|
11
|
-
} catch (l) {
|
|
12
|
-
a(l);
|
|
13
|
-
}
|
|
14
|
-
}, c = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(i, r);
|
|
15
|
-
c((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 Y = {
|
|
1
|
+
import { formatDate as N } from "@web-utils/integrations/dayjs";
|
|
2
|
+
import { copy as H } from "@web-utils/core";
|
|
3
|
+
import { n as L } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
const F = {
|
|
21
5
|
Seconds: {
|
|
22
6
|
name: "秒",
|
|
23
7
|
every: "每秒钟,允许的通配符[* / , -]",
|
|
@@ -77,7 +61,7 @@ const Y = {
|
|
|
77
61
|
function b(n, e) {
|
|
78
62
|
return n.reduce((t, s, a) => (t.push(...e(s, a, n)), t), []);
|
|
79
63
|
}
|
|
80
|
-
const
|
|
64
|
+
const W = {
|
|
81
65
|
"@yearly": "0 0 0 1 1 * *",
|
|
82
66
|
"@annually": "0 0 0 1 1 * *",
|
|
83
67
|
"@monthly": "0 0 0 1 * * *",
|
|
@@ -85,14 +69,14 @@ const T = {
|
|
|
85
69
|
"@daily": "0 0 0 * * * *",
|
|
86
70
|
"@midnight": "0 0 0 * * * *",
|
|
87
71
|
"@hourly": "0 0 * * * * *"
|
|
88
|
-
},
|
|
72
|
+
}, z = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"], Y = new RegExp(z.join("|"), "g"), R = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"], U = new RegExp(R.join("|"), "g"), g = 275759;
|
|
89
73
|
var S;
|
|
90
74
|
(function(n) {
|
|
91
75
|
n.IncrementLargerThanRange = "IncrementLargerThanRange";
|
|
92
76
|
})(S || (S = {}));
|
|
93
|
-
function
|
|
77
|
+
function T(n) {
|
|
94
78
|
let e = n.trim().toLowerCase();
|
|
95
|
-
|
|
79
|
+
W[e] && (e = W[e]);
|
|
96
80
|
const t = e.split(/\s+/g);
|
|
97
81
|
if (t.length < 5 || t.length > 7)
|
|
98
82
|
throw new Error("Expression must have at least 5 fields, and no more than 7 fields");
|
|
@@ -103,12 +87,12 @@ function C(n) {
|
|
|
103
87
|
t.push("*");
|
|
104
88
|
}
|
|
105
89
|
return [
|
|
106
|
-
new
|
|
107
|
-
new
|
|
108
|
-
new
|
|
109
|
-
new
|
|
110
|
-
new
|
|
111
|
-
new
|
|
90
|
+
new C(t[0]),
|
|
91
|
+
new C(t[1]),
|
|
92
|
+
new B(t[2]),
|
|
93
|
+
new P(t[3], t[5]),
|
|
94
|
+
new V(t[4]),
|
|
95
|
+
new j(t[6])
|
|
112
96
|
];
|
|
113
97
|
}
|
|
114
98
|
function E(n, e, t) {
|
|
@@ -175,8 +159,8 @@ class y {
|
|
|
175
159
|
to: p ? void 0 : u
|
|
176
160
|
};
|
|
177
161
|
} else if (m) {
|
|
178
|
-
const [u, k] = m.split("-").map((
|
|
179
|
-
const I = parseInt(
|
|
162
|
+
const [u, k] = m.split("-").map((M) => {
|
|
163
|
+
const I = parseInt(M, 10);
|
|
180
164
|
return i ? i(I) : I;
|
|
181
165
|
});
|
|
182
166
|
if (u < t || u > s || k < t || k > s || k < u && !a)
|
|
@@ -190,22 +174,22 @@ class y {
|
|
|
190
174
|
}
|
|
191
175
|
}
|
|
192
176
|
y.asterisk = new y("*");
|
|
193
|
-
class
|
|
177
|
+
class C extends f {
|
|
194
178
|
constructor() {
|
|
195
179
|
super(...arguments), this.first = 0, this.last = 59;
|
|
196
180
|
}
|
|
197
181
|
}
|
|
198
|
-
class
|
|
182
|
+
class B extends f {
|
|
199
183
|
constructor() {
|
|
200
184
|
super(...arguments), this.first = 0, this.last = 23;
|
|
201
185
|
}
|
|
202
186
|
}
|
|
203
|
-
class
|
|
187
|
+
class P {
|
|
204
188
|
constructor(e, t) {
|
|
205
189
|
this.lastDay = !1, this.lastWeekday = !1, this.daysItems = [], this.nearestWeekdayItems = [], this.daysOfWeekItems = [], this.lastDaysOfWeekItems = [], this.nthDaysOfWeekItems = [];
|
|
206
190
|
for (let i of e.split(",").map((r) => r === "?" ? "*" : r))
|
|
207
191
|
i === "l" ? this.lastDay = !0 : i === "lw" ? this.lastWeekday = !0 : i.endsWith("w") ? this.nearestWeekdayItems.push(y.parse(i.slice(0, -1), 1, 31)) : this.daysItems.push(y.parse(i, 1, 31));
|
|
208
|
-
const s = t.replace(
|
|
192
|
+
const s = t.replace(U, (i) => R.indexOf(i) + ""), a = (i) => y.parse(i, 0, 6, !0, (r) => r === 7 ? 0 : r);
|
|
209
193
|
for (let i of s.split(",").map((r) => r === "?" ? "*" : r)) {
|
|
210
194
|
const r = i.lastIndexOf("#");
|
|
211
195
|
if (i.endsWith("l"))
|
|
@@ -284,12 +268,12 @@ class D {
|
|
|
284
268
|
return Array.from(s).filter((c) => c <= a).sort(w);
|
|
285
269
|
}
|
|
286
270
|
}
|
|
287
|
-
class
|
|
271
|
+
class V extends f {
|
|
288
272
|
constructor(e) {
|
|
289
|
-
super(e.replace(
|
|
273
|
+
super(e.replace(Y, (t) => z.indexOf(t) + 1 + "")), this.first = 1, this.last = 12;
|
|
290
274
|
}
|
|
291
275
|
}
|
|
292
|
-
class
|
|
276
|
+
class j extends f {
|
|
293
277
|
constructor(e) {
|
|
294
278
|
super(e), this.first = 1970, this.last = 2099, this.items;
|
|
295
279
|
}
|
|
@@ -343,7 +327,7 @@ class h {
|
|
|
343
327
|
}
|
|
344
328
|
}
|
|
345
329
|
const _ = /* @__PURE__ */ new Map();
|
|
346
|
-
class
|
|
330
|
+
class O {
|
|
347
331
|
constructor(e) {
|
|
348
332
|
if (typeof e == "number") {
|
|
349
333
|
if (e > 840 || e < -840)
|
|
@@ -366,7 +350,7 @@ class z {
|
|
|
366
350
|
minute: "2-digit",
|
|
367
351
|
second: "2-digit"
|
|
368
352
|
});
|
|
369
|
-
} catch
|
|
353
|
+
} catch {
|
|
370
354
|
throw new Error("Invalid IANA name or offset");
|
|
371
355
|
}
|
|
372
356
|
this.zoneName = e;
|
|
@@ -391,7 +375,7 @@ class z {
|
|
|
391
375
|
return (l - d) / 6e4;
|
|
392
376
|
}
|
|
393
377
|
nativeDateToCronosDate(e) {
|
|
394
|
-
return this.dateTimeFormat ? this.dateTimeFormat.formatToParts ?
|
|
378
|
+
return this.dateTimeFormat ? this.dateTimeFormat.formatToParts ? q(this.dateTimeFormat, e) : G(this.dateTimeFormat, e) : h.fromUTCTimestamp(e.getTime() + (this.fixedOffset || 0) * 6e4);
|
|
395
379
|
}
|
|
396
380
|
cronosDateToNativeDate(e) {
|
|
397
381
|
if (!this.dateTimeFormat)
|
|
@@ -406,33 +390,33 @@ class z {
|
|
|
406
390
|
return i === r ? new Date(a) : new Date(s - Math.min(i, r) * 6e4);
|
|
407
391
|
}
|
|
408
392
|
}
|
|
409
|
-
function
|
|
410
|
-
const t = n.format(e).replace(/\u200E/g, ""), s = t.match(/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/), [, a, i, r, c, o, l] = (s
|
|
393
|
+
function G(n, e) {
|
|
394
|
+
const t = n.format(e).replace(/\u200E/g, ""), s = t.match(/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/), [, a, i, r, c, o, l] = (s ?? []).map((d) => parseInt(d, 10));
|
|
411
395
|
return new h(r, a, i, c % 24, o, l);
|
|
412
396
|
}
|
|
413
|
-
function
|
|
397
|
+
function q(n, e) {
|
|
414
398
|
const t = n.formatToParts(e);
|
|
415
399
|
return new h(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));
|
|
416
400
|
}
|
|
417
|
-
const v =
|
|
401
|
+
const v = 3600 * 1e3, x = (n, e) => e.findIndex((t) => t >= n);
|
|
418
402
|
class $ {
|
|
419
403
|
constructor(e, t, s, a, i, r, c) {
|
|
420
404
|
this.cronString = e, this.seconds = t, this.minutes = s, this.hours = a, this.days = i, this.months = r, this.years = c, this.skipRepeatedHour = !0, this.missingHour = "insert", this._warnings = null;
|
|
421
405
|
}
|
|
422
406
|
static parse(e, t = {}) {
|
|
423
407
|
var s;
|
|
424
|
-
const a =
|
|
408
|
+
const a = T(e);
|
|
425
409
|
if (t.strict) {
|
|
426
410
|
let r = b(a, (c) => c.warnings);
|
|
427
411
|
if (typeof t.strict == "object" && (r = r.filter((c) => !!t.strict[c.type])), r.length > 0)
|
|
428
412
|
throw new Error(`Strict mode: Parsing failed with ${r.length} warnings`);
|
|
429
413
|
}
|
|
430
414
|
const i = new $(e, a[0].values, a[1].values, a[2].values, a[3].values, a[4].values, a[5]);
|
|
431
|
-
return i.timezone = t.timezone instanceof
|
|
415
|
+
return i.timezone = t.timezone instanceof O ? t.timezone : t.timezone !== void 0 ? new O(t.timezone) : void 0, i.skipRepeatedHour = t.skipRepeatedHour !== void 0 ? t.skipRepeatedHour : i.skipRepeatedHour, i.missingHour = (s = t.missingHour) !== null && s !== void 0 ? s : i.missingHour, i;
|
|
432
416
|
}
|
|
433
417
|
get warnings() {
|
|
434
418
|
if (!this._warnings) {
|
|
435
|
-
const e =
|
|
419
|
+
const e = T(this.cronString);
|
|
436
420
|
this._warnings = b(e, (t) => t.warnings);
|
|
437
421
|
}
|
|
438
422
|
return this._warnings;
|
|
@@ -535,7 +519,7 @@ class $ {
|
|
|
535
519
|
return s === void 0 ? null : e.copyWith({ second: s });
|
|
536
520
|
}
|
|
537
521
|
}
|
|
538
|
-
const
|
|
522
|
+
const Q = {
|
|
539
523
|
name: "VueCron",
|
|
540
524
|
props: {
|
|
541
525
|
data: Object,
|
|
@@ -684,7 +668,7 @@ const Z = {
|
|
|
684
668
|
},
|
|
685
669
|
computed: {
|
|
686
670
|
text() {
|
|
687
|
-
return
|
|
671
|
+
return F;
|
|
688
672
|
},
|
|
689
673
|
secondsText() {
|
|
690
674
|
let n = "";
|
|
@@ -878,15 +862,13 @@ const Z = {
|
|
|
878
862
|
},
|
|
879
863
|
cron: {
|
|
880
864
|
immediate: !0,
|
|
881
|
-
handler() {
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
}
|
|
889
|
-
});
|
|
865
|
+
async handler() {
|
|
866
|
+
const n = `${this.secondsText} ${this.minutesText} ${this.hoursText} ${this.daysText} ${this.monthsText} ${this.weeksText} ${this.yearsText}`;
|
|
867
|
+
try {
|
|
868
|
+
this.runsParser ? this.runs = await this.runsParser(n) : this.runs = $.parse(n).nextNDates(/* @__PURE__ */ new Date(), 5).map((e) => N(e));
|
|
869
|
+
} catch (e) {
|
|
870
|
+
console.error(e), this.runs = [e.message];
|
|
871
|
+
}
|
|
890
872
|
}
|
|
891
873
|
},
|
|
892
874
|
expression: {
|
|
@@ -896,7 +878,7 @@ const Z = {
|
|
|
896
878
|
},
|
|
897
879
|
methods: {
|
|
898
880
|
copyCron() {
|
|
899
|
-
|
|
881
|
+
H(
|
|
900
882
|
this.cron,
|
|
901
883
|
() => {
|
|
902
884
|
this.$message.success("复制成功");
|
|
@@ -1021,7 +1003,7 @@ const Z = {
|
|
|
1021
1003
|
}
|
|
1022
1004
|
}
|
|
1023
1005
|
};
|
|
1024
|
-
var
|
|
1006
|
+
var Z = function() {
|
|
1025
1007
|
var e = this, t = e._self._c;
|
|
1026
1008
|
return t("div", { staticClass: "vue-cron" }, [t("ElTabs", { attrs: { type: "border-card" } }, [t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
1027
1009
|
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Seconds.name))])];
|
|
@@ -1184,15 +1166,15 @@ var J = function() {
|
|
|
1184
1166
|
}), 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.quartz ? e.weeksTextQuartz : 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", 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) {
|
|
1185
1167
|
return t("ul", { key: s, staticStyle: { "padding-left": "18px" } }, [t("li", { staticStyle: { "margin-bottom": "4px" } }, [e._v(e._s(s))])]);
|
|
1186
1168
|
})], 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);
|
|
1187
|
-
},
|
|
1169
|
+
}, J = [], K = /* @__PURE__ */ L(
|
|
1170
|
+
Q,
|
|
1188
1171
|
Z,
|
|
1189
1172
|
J,
|
|
1190
|
-
K,
|
|
1191
1173
|
!1,
|
|
1192
1174
|
null,
|
|
1193
1175
|
null
|
|
1194
1176
|
);
|
|
1195
|
-
const
|
|
1177
|
+
const te = K.exports;
|
|
1196
1178
|
export {
|
|
1197
|
-
|
|
1179
|
+
te as default
|
|
1198
1180
|
};
|
package/vue-qr-code/index.mjs
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
s(n.next(e));
|
|
5
|
-
} catch (i) {
|
|
6
|
-
r(i);
|
|
7
|
-
}
|
|
8
|
-
}, p = (e) => {
|
|
9
|
-
try {
|
|
10
|
-
s(n.throw(e));
|
|
11
|
-
} catch (i) {
|
|
12
|
-
r(i);
|
|
13
|
-
}
|
|
14
|
-
}, s = (e) => e.done ? l(e.value) : Promise.resolve(e.value).then(c, p);
|
|
15
|
-
s((n = n.apply(t, a)).next());
|
|
16
|
-
});
|
|
17
|
-
import { drawToCanvas as d, genDataURL as h, genSVG as m } from "@web-utils/integrations/qrcode";
|
|
18
|
-
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
19
|
-
const f = {
|
|
1
|
+
import { drawToCanvas as a, genDataURL as n, genSVG as s } from "@web-utils/integrations/qrcode";
|
|
2
|
+
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
const r = {
|
|
20
4
|
name: "VueQrCode",
|
|
21
5
|
props: {
|
|
22
6
|
/**
|
|
@@ -47,27 +31,25 @@ const f = {
|
|
|
47
31
|
}
|
|
48
32
|
},
|
|
49
33
|
methods: {
|
|
50
|
-
generate() {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
a === "canvas" ? yield d(this.$el, this.text, t) : a === "img" ? this.$el.src = yield h(this.text, t) : this.$el.innerHTML = yield m(this.text, t);
|
|
55
|
-
});
|
|
34
|
+
async generate() {
|
|
35
|
+
await this.$nextTick();
|
|
36
|
+
const { options: t, tag: e } = this;
|
|
37
|
+
e === "canvas" ? await a(this.$el, this.text, t) : e === "img" ? this.$el.src = await n(this.text, t) : this.$el.innerHTML = await s(this.text, t);
|
|
56
38
|
}
|
|
57
39
|
},
|
|
58
40
|
render(t) {
|
|
59
41
|
return t(this.tag, this.$slots.default);
|
|
60
42
|
}
|
|
61
|
-
},
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
43
|
+
}, o = null, l = null;
|
|
44
|
+
var c = /* @__PURE__ */ i(
|
|
45
|
+
r,
|
|
46
|
+
o,
|
|
47
|
+
l,
|
|
66
48
|
!1,
|
|
67
49
|
null,
|
|
68
50
|
null
|
|
69
51
|
);
|
|
70
|
-
const
|
|
52
|
+
const h = c.exports;
|
|
71
53
|
export {
|
|
72
|
-
|
|
54
|
+
h as default
|
|
73
55
|
};
|
|
@@ -76,7 +76,7 @@ const n = {
|
|
|
76
76
|
methods: {
|
|
77
77
|
// Init Quill instance
|
|
78
78
|
initialize() {
|
|
79
|
-
this.$el && (this.innerOptions =
|
|
79
|
+
this.$el && (this.innerOptions = { ...this.defaultOptions, ...this.globalOptions, ...this.options }, this.quill = new l(this.$refs.editor, this.innerOptions), this.quill.enable(!1), (this.value || this.content) && this.quill.pasteHTML(this.value || this.content), this.disabled || this.quill.enable(!0), this.quill.on("selection-change", (t) => {
|
|
80
80
|
t ? this.$emit("focus", this.quill) : this.$emit("blur", this.quill);
|
|
81
81
|
}), this.quill.on("text-change", () => {
|
|
82
82
|
let t = this.$refs.editor.children[0].innerHTML;
|
|
@@ -89,7 +89,7 @@ const n = {
|
|
|
89
89
|
var r = function() {
|
|
90
90
|
var i = this, e = i._self._c;
|
|
91
91
|
return e("div", { staticClass: "vue-quill-editor" }, [i._t("toolbar"), e("div", { ref: "editor", staticClass: "quill-editor" })], 2);
|
|
92
|
-
}, u = [],
|
|
92
|
+
}, u = [], h = /* @__PURE__ */ s(
|
|
93
93
|
o,
|
|
94
94
|
r,
|
|
95
95
|
u,
|
|
@@ -97,7 +97,7 @@ var r = function() {
|
|
|
97
97
|
null,
|
|
98
98
|
null
|
|
99
99
|
);
|
|
100
|
-
const q =
|
|
100
|
+
const q = h.exports;
|
|
101
101
|
export {
|
|
102
102
|
q as default
|
|
103
103
|
};
|
package/vue-tags-input/index.mjs
CHANGED