@web-utils/component 4.0.16 → 5.0.0-beta01
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/address-input/index.mjs +76 -74
- package/affix/index.mjs +71 -78
- package/aside-menu/index.mjs +20 -31
- package/avatar/index.mjs +94 -82
- package/awesome-button/index.mjs +54 -71
- package/capsule-tab/index.mjs +27 -32
- package/card/index.mjs +86 -69
- package/carousel/index.mjs +45 -32
- package/chat/index.mjs +441 -266
- package/chunk-file-uploader/index.mjs +2 -103
- package/chunks/ChunkFileUploader.C3EA0e5t.mjs +114 -0
- package/chunks/EditableTree.C_IJBL5b.mjs +648 -0
- package/chunks/ElementBaseInfo.DyuFR6fE.mjs +209 -0
- package/chunks/ElementDialog.C0IjriTW.mjs +681 -0
- package/chunks/ElementForm.ButuYDPA.mjs +627 -0
- package/chunks/ElementListeners.Dg3e_dmp.mjs +656 -0
- package/chunks/ElementMultiInstance.Dmi79FqA.mjs +290 -0
- package/chunks/ElementOtherConfig.C2AddGTp.mjs +51 -0
- package/chunks/ElementProperties.CfV8UF7L.mjs +196 -0
- package/chunks/ElementTaskConfig.Bn7ycGGn.mjs +446 -0
- package/chunks/FlowCondition.C6PdqOAW.mjs +194 -0
- package/chunks/FlowDesigner.uJYFfKpR.mjs +5101 -0
- package/chunks/FormBlock.BEENc22F.mjs +117 -0
- package/chunks/FormCascader.CaM-oEhv.mjs +1226 -0
- package/chunks/FormInputTime.Bg3UIP8H.mjs +1773 -0
- package/chunks/FormItem.H9OOvNzT.mjs +90 -0
- package/chunks/FormItemGroup.D9eRy-cZ.mjs +147 -0
- package/chunks/FormSelect.CanodoAI.mjs +1472 -0
- package/chunks/FormSwitch.DTqdaFjv.mjs +296 -0
- package/chunks/FormTemp.DiI5EfgK.mjs +139 -0
- package/chunks/FyCurd.DMj1dMK9.mjs +2622 -0
- package/chunks/FyForm.vgR8ujEF.mjs +904 -0
- package/chunks/FyFormDesign.DEWT6LsX.mjs +5600 -0
- package/chunks/FyUEditor.D_rEYfll.mjs +221 -0
- package/chunks/FyUpload.B2QKfTxF.mjs +504 -0
- package/chunks/Keyboard.ItiRy7Gb.mjs +379 -0
- package/chunks/MonacoEditor.Bd5Kui-Y.mjs +301 -0
- package/chunks/PageableTable.Bujb0NUx.mjs +658 -0
- package/chunks/RecordVideo.B35_dLty.mjs +116 -0
- package/chunks/SignalAndMessage.CYVzlFuL.mjs +198 -0
- package/chunks/SplitPane.Dw96M0Yf.mjs +219 -0
- package/chunks/TableColumn.DJYkznbJ.mjs +180 -0
- package/chunks/TableView.DyIdIxAg.mjs +484 -0
- package/chunks/Toolbar.DHuXJAoG.mjs +219 -0
- package/chunks/UserTaskListeners.Bp-2qkHs.mjs +599 -0
- package/chunks/VueCron.GfjodnyM.mjs +1766 -0
- package/chunks/VueTreeSelect.9Ywl-I8e.mjs +1872 -0
- package/chunks/_plugin-vue_export-helper.7vrlOII_.mjs +8 -0
- package/chunks/checkbox.emIuFmnt.mjs +437 -0
- package/chunks/confirmable-mixin.BBil7dto.mjs +1646 -0
- package/chunks/core.DJv6Qrae.mjs +51 -0
- package/chunks/dataformat.Bfr4nOcA.mjs +144 -0
- package/chunks/dic.DgDfnovD.mjs +116 -0
- package/chunks/dictionary.5eKjWeAp.mjs +19 -0
- package/chunks/dictionary.DxZxP0ej.mjs +87 -0
- package/chunks/event.B4iwtUNO.mjs +4 -0
- package/chunks/event.eJ-c1Z3a.mjs +224 -0
- package/chunks/focus-trap.DT4GnqQI.mjs +211 -0
- package/chunks/form-input.D25eDRMq.mjs +34 -0
- package/chunks/form-item.CgmUuw_n.mjs +714 -0
- package/chunks/form-pick.Axem0gOO.mjs +7 -0
- package/chunks/form-validate.B1KPCHqN.mjs +11 -0
- package/chunks/icon.CbS8-322.mjs +259 -0
- package/chunks/init.DwpukyOB.mjs +115 -0
- package/chunks/input.PejnqwSH.mjs +547 -0
- package/chunks/install.yLcn5MLL.mjs +84 -0
- package/chunks/message.BCmee5N0.mjs +400 -0
- package/chunks/overlay.DubSnqma.mjs +122 -0
- package/chunks/packages.BGjydzjm.mjs +56 -0
- package/chunks/permission.DgEVNWlh.mjs +16 -0
- package/chunks/photo-swipe.BB0SJZg9.mjs +55 -0
- package/chunks/radio.BotKXqJr.mjs +274 -0
- package/chunks/scroll.CzORc5Zk.mjs +28 -0
- package/chunks/scrollbar.CAmrlKi9.mjs +345 -0
- package/chunks/slot.C6Ozd2e7.mjs +25 -0
- package/chunks/style.BmlGmjpO.mjs +325 -0
- package/chunks/sub-table-plus-props.B_lLth3j.mjs +28 -0
- package/chunks/tab-mixin.u0EZpx3j.mjs +70 -0
- package/chunks/tag.DPi-PLbb.mjs +141 -0
- package/chunks/teleport._VGEzK4d.mjs +22 -0
- package/chunks/tooltip.D50x7Rva.mjs +1926 -0
- package/chunks/typescript.DiWBU4nj.mjs +4 -0
- package/chunks/use-aria.BW7nWOl1.mjs +17 -0
- package/chunks/use-composition.mUaomyno.mjs +47 -0
- package/chunks/use-deprecated.BfDSbZS9.mjs +12 -0
- package/chunks/use-empty-values.Dy_r78F6.mjs +263 -0
- package/chunks/use-form-item.wsRjehHp.mjs +47 -0
- package/chunks/use-global-config.C9hs-O_x.mjs +56 -0
- package/chunks/use-id.CFO5NeoV.mjs +15 -0
- package/chunks/use-size.DxrwTUwf.mjs +18 -0
- package/chunks/util.B3sjVZoZ.mjs +103 -0
- package/chunks/util.g-WQEec9.mjs +223 -0
- package/chunks/utilSelf.ZED4DmCU.mjs +46 -0
- package/chunks/utils.Cs2fYBrT.mjs +60 -0
- package/chunks/utils.DsGhtCIO.mjs +14 -0
- package/chunks/validator.C4-z_t9p.mjs +5 -0
- package/chunks/vnode.D_SioRnx.mjs +14 -0
- package/code-mirror-editor/index.mjs +89 -88
- package/comment/index.mjs +62 -57
- package/configComponents.mjs +40 -50
- package/confirm-button/index.mjs +34 -46
- package/confirmable/index.mjs +7 -17
- package/context-menu/index.mjs +195 -174
- package/count-up/index.mjs +97 -105
- package/custom-scrollbar/index.mjs +91 -98
- package/data-box/index.mjs +64 -44
- package/data-card/index.mjs +60 -47
- package/data-card-text/index.mjs +63 -49
- package/data-display/index.mjs +71 -51
- package/data-icons/index.mjs +70 -50
- package/data-imgtext/index.mjs +67 -43
- package/data-operatext/index.mjs +51 -40
- package/data-panel/index.mjs +57 -44
- package/data-pay/index.mjs +105 -48
- package/data-price/index.mjs +48 -40
- package/data-progress/index.mjs +67 -44
- package/data-rotate/index.mjs +61 -44
- package/data-table-picker/index.mjs +119 -71
- package/data-tabs/index.mjs +67 -44
- package/dialog-form/index.mjs +139 -87
- package/dynamic-table/index.mjs +166 -109
- package/e-charts/index.mjs +174 -200
- package/easy-popup/index.mjs +91 -102
- package/editable-progress/index.mjs +112 -83
- package/editable-tree/index.mjs +2 -481
- package/element-dialog/index.mjs +2 -306
- package/ellipsis/index.mjs +124 -148
- package/empty-view/index.mjs +48 -65
- package/error-view/index.mjs +39 -51
- package/flex-column/index.mjs +32 -51
- package/flex-item/index.mjs +54 -64
- package/flex-row/index.mjs +32 -39
- package/flex-scroller/index.mjs +29 -30
- package/flow/index.mjs +240 -247
- package/flow-designer/index.mjs +2 -4709
- package/flow-node/index.mjs +56 -64
- package/flow-viewer/index.mjs +159 -157
- package/form-block/index.mjs +2 -147
- package/form-button/index.mjs +35 -47
- package/form-card/index.mjs +14 -25
- package/form-cascader/index.mjs +2 -115
- package/form-checkbox/index.mjs +89 -70
- package/form-checkbox-group/index.mjs +161 -113
- package/form-date-picker/index.mjs +155 -142
- package/form-holder/index.mjs +137 -109
- package/form-input/index.mjs +113 -86
- package/form-input-cron-expression/index.mjs +97 -76
- package/form-input-email/index.mjs +64 -51
- package/form-input-id-card/index.mjs +72 -54
- package/form-input-phone-number/index.mjs +71 -56
- package/form-input-tag/index.mjs +88 -61
- package/form-input-time/index.mjs +2 -73
- package/form-item/index.mjs +2 -142
- package/form-item-config-provider/index.mjs +46 -60
- package/form-item-group/index.mjs +2 -157
- package/form-radio-group/index.mjs +161 -121
- package/form-select/index.mjs +2 -179
- package/form-switch/index.mjs +2 -54
- package/form-table/index.mjs +131 -84
- package/form-table-plus/index.mjs +164 -108
- package/form-textarea/index.mjs +90 -56
- package/form-tree-select/index.mjs +89 -71
- package/form-tree-select-multiple/index.mjs +92 -77
- package/form-view/index.mjs +275 -207
- package/fy-array/index.mjs +121 -70
- package/fy-article/index.mjs +73 -60
- package/fy-cascader/index.mjs +113 -90
- package/fy-checkbox/index.mjs +96 -64
- package/fy-code/index.mjs +48 -50
- package/fy-curd/index.mjs +2 -1879
- package/fy-date/index.mjs +76 -41
- package/fy-draggable/index.mjs +322 -317
- package/fy-dynamic/index.mjs +259 -224
- package/fy-empty/index.mjs +35 -36
- package/fy-form/index.mjs +2 -640
- package/fy-form-design/index.mjs +2 -2852
- package/fy-form-design/style.css +1 -1
- package/fy-from/crud/zh.d.ts +1 -1
- package/fy-input/index.mjs +117 -97
- package/fy-input-color/index.mjs +77 -54
- package/fy-input-icon/index.mjs +129 -82
- package/fy-input-map/index.mjs +242 -183
- package/fy-input-number/index.mjs +74 -49
- package/fy-input-table/index.mjs +160 -105
- package/fy-input-tree/index.mjs +259 -178
- package/fy-progress/index.mjs +36 -39
- package/fy-radio/index.mjs +53 -37
- package/fy-rate/index.mjs +86 -70
- package/fy-select/index.mjs +224 -137
- package/fy-slider/index.mjs +68 -43
- package/fy-switch/index.mjs +67 -41
- package/fy-tabs/index.mjs +46 -46
- package/fy-time/index.mjs +81 -53
- package/fy-title/index.mjs +18 -27
- package/fy-tree/index.mjs +382 -286
- package/fy-u-editor/index.mjs +2 -357
- package/fy-upload/index.mjs +2 -421
- package/guide-steps/index.mjs +72 -71
- package/helper-function.d.ts +2 -30
- package/helper-function.mjs +41 -67
- package/highlight-j-s/index.mjs +50 -59
- package/icon-card/index.mjs +34 -36
- package/icon-temp/index.mjs +27 -27
- package/iframe-window/index.mjs +39 -32
- package/image-cropper/index.mjs +171 -73
- package/image-preview/index.mjs +187 -116
- package/image-viewer/index.mjs +69 -66
- package/index.d.ts +3 -9
- package/index.mjs +174 -489
- package/input-number-range/index.mjs +78 -58
- package/j-s-x-component/index.mjs +13 -15
- package/keyboard/index.mjs +2 -369
- package/license/index.mjs +106 -115
- package/loading-view/index.mjs +39 -51
- package/login/index.mjs +252 -120
- package/monaco-editor/index.mjs +2 -7
- package/name-avatar/index.mjs +61 -53
- package/nav-bar/index.mjs +33 -30
- package/not-implement/index.mjs +10 -22
- package/notice/index.mjs +100 -93
- package/package.json +3 -3
- package/page/index.mjs +18 -25
- package/page-header/index.mjs +27 -33
- package/page-index/index.mjs +121 -99
- package/page-index-top/index.mjs +79 -74
- package/page-skeleton/index.mjs +47 -44
- package/page-skeleton-new/index.mjs +79 -49
- package/pageable-table/index.mjs +2 -512
- package/pageable-view/index.mjs +279 -274
- package/photo-swipe/index.d.ts +4 -0
- package/photo-swipe/index.mjs +33 -36
- package/picker-table-view/index.mjs +224 -117
- package/present-view/index.mjs +266 -196
- package/queue/index.mjs +45 -53
- package/record-video/index.mjs +2 -134
- package/resize-observer/index.mjs +43 -46
- package/search/index.mjs +116 -107
- package/sign/index.mjs +103 -110
- package/sign-panel/index.mjs +182 -141
- package/skeleton/index.mjs +51 -54
- package/skeleton-panel/index.mjs +33 -37
- package/split-pane/index.mjs +3 -196
- package/stateful/index.mjs +69 -73
- package/static-pageable-table/index.mjs +72 -64
- package/sub-table/index.mjs +508 -206
- package/sub-table-plus/index.mjs +592 -230
- package/swiper/index.mjs +128 -120
- package/tab/index.mjs +117 -119
- package/tab-item/index.mjs +48 -56
- package/table-column/index.mjs +2 -225
- package/table-view/index.mjs +3 -326
- package/tabs-view/index.mjs +109 -104
- package/tag-render/index.mjs +79 -67
- package/text-ellipsis/index.mjs +94 -77
- package/toolbar/index.mjs +2 -254
- package/toolbar-button/index.mjs +145 -120
- package/verify/index.mjs +58 -64
- package/vue-cron/index.mjs +2 -1180
- package/vue-qr-code/index.mjs +30 -54
- package/vue-quill-editor/index.mjs +123 -99
- package/vue-tags-input/index.mjs +348 -431
- package/vue-tree-select/index.mjs +2 -2627
- package/vue-video-player/index.mjs +135 -136
- package/watermark/index.mjs +46 -74
- package/web-types.json +197 -975
- package/x-input-tag/index.mjs +144 -106
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
- package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
- package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
- package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
- package/chunks/ElementTaskConfig.Bko0kgTp.mjs +0 -317
- package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
- package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
- package/chunks/MonacoEditor.D31t4FTy.mjs +0 -327
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
- package/chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs +0 -10
- package/chunks/confirmable-mixin.B2TtLAdk.mjs +0 -86
- package/chunks/core.0Exl13Mz.mjs +0 -54
- package/chunks/dataformat.CpqOeGBl.mjs +0 -154
- package/chunks/dic.Dkl-leRW.mjs +0 -128
- package/chunks/dictionary.DGt59Ir7.mjs +0 -68
- package/chunks/dictionary.DqiP9x2m.mjs +0 -25
- package/chunks/event.9aDS6jcw.mjs +0 -236
- package/chunks/form-input.CvFdwlEV.mjs +0 -31
- package/chunks/form-item.LWjePsPa.mjs +0 -233
- package/chunks/form-pick.BFTIVn_i.mjs +0 -11
- package/chunks/form-validate.CVarNHKX.mjs +0 -12
- package/chunks/helper.BiMLcEEk.mjs +0 -41
- package/chunks/index.9OxHjTIE.mjs +0 -16
- package/chunks/index.B2TRddqf.mjs +0 -184
- package/chunks/index.BmYCjxZQ.mjs +0 -47
- package/chunks/init.DAsXSoLW.mjs +0 -122
- package/chunks/packages.ByyangTp.mjs +0 -58
- package/chunks/permission.CO31YIkD.mjs +0 -16
- package/chunks/slot.DXIbhGat.mjs +0 -27
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
- package/chunks/tab-mixin.BNK6dxLN.mjs +0 -81
- package/chunks/util.DqFv_pWg.mjs +0 -241
- package/chunks/utilSelf.Csq1766E.mjs +0 -48
- package/chunks/utils.DRcxC1Fb.mjs +0 -60
- package/color-picker/index.mjs +0 -78
- package/egd-collapse/index.mjs +0 -62
- package/egd-collapse-item/index.mjs +0 -72
- package/form-input-number/index.mjs +0 -69
- package/form-input-number/style.css +0 -1
- package/input-number/index.mjs +0 -232
- package/input-number/style.css +0 -1
- package/keep-view-alive/index.mjs +0 -117
- package/search-popover/index.mjs +0 -118
- package/search-popover/style.css +0 -1
- /package/{base.css → utils/style.css} +0 -0
package/vue-cron/index.mjs
CHANGED
|
@@ -1,1180 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { n as L } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
-
const F = {
|
|
5
|
-
Seconds: {
|
|
6
|
-
name: "秒",
|
|
7
|
-
every: "每秒钟,允许的通配符[* / , -]",
|
|
8
|
-
interval: ["从", "秒钟开始,每", "秒钟执行一次"],
|
|
9
|
-
specific: "指定",
|
|
10
|
-
cycle: ["周期从", " - ", "秒"]
|
|
11
|
-
},
|
|
12
|
-
Minutes: {
|
|
13
|
-
name: "分",
|
|
14
|
-
every: "每分钟,允许的通配符[* / , -]",
|
|
15
|
-
interval: ["从", "分钟开始,每", "分钟执行一次"],
|
|
16
|
-
specific: "指定",
|
|
17
|
-
cycle: ["周期从", " - ", "分"]
|
|
18
|
-
},
|
|
19
|
-
Hours: {
|
|
20
|
-
name: "时",
|
|
21
|
-
every: "每小时,允许的通配符[* / , -]",
|
|
22
|
-
interval: ["从", "小时开始,每", "小时执行一次"],
|
|
23
|
-
specific: "指定",
|
|
24
|
-
cycle: ["周期从", " - ", "小时"]
|
|
25
|
-
},
|
|
26
|
-
Day: {
|
|
27
|
-
name: "天",
|
|
28
|
-
every: "每一天,允许的通配符[* / , - L W]",
|
|
29
|
-
intervalDay: ["从第", "天开始,每", "天执行一次"],
|
|
30
|
-
specificDay: "指定天",
|
|
31
|
-
lastDay: "每月的最后一天",
|
|
32
|
-
lastWorkday: "每月的最后一个工作日",
|
|
33
|
-
beforeEndMonth: ["每月倒数第", "天"],
|
|
34
|
-
nearestWorkday: ["距离本月", "号最近的一个工作日(周一至周五)"]
|
|
35
|
-
},
|
|
36
|
-
Week: {
|
|
37
|
-
name: "周",
|
|
38
|
-
every: "每周,允许的通配符[* / , - L #]",
|
|
39
|
-
intervalWeek: ["从", "开始,每", "天执行一次"],
|
|
40
|
-
specificWeek: "指定星期",
|
|
41
|
-
lastWeek: ["每月的最后一个"],
|
|
42
|
-
someWeekday: ["每月第", "周的"]
|
|
43
|
-
},
|
|
44
|
-
Month: {
|
|
45
|
-
name: "月",
|
|
46
|
-
every: "每个月,允许的通配符[* / , -]",
|
|
47
|
-
interval: ["从", "月开始,每", "月执行一次"],
|
|
48
|
-
specific: "指定",
|
|
49
|
-
cycle: ["周期从", " - ", "月"]
|
|
50
|
-
},
|
|
51
|
-
Year: {
|
|
52
|
-
name: "年",
|
|
53
|
-
every: "每一年,允许的通配符[* / , -]",
|
|
54
|
-
interval: ["从", "年开始,每", "年执行一次"],
|
|
55
|
-
specific: "指定",
|
|
56
|
-
cycle: ["周期从", " - ", "年"]
|
|
57
|
-
},
|
|
58
|
-
Save: "确定",
|
|
59
|
-
Close: "取消"
|
|
60
|
-
}, w = (n, e) => n - e;
|
|
61
|
-
function b(n, e) {
|
|
62
|
-
return n.reduce((t, s, a) => (t.push(...e(s, a, n)), t), []);
|
|
63
|
-
}
|
|
64
|
-
const W = {
|
|
65
|
-
"@yearly": "0 0 0 1 1 * *",
|
|
66
|
-
"@annually": "0 0 0 1 1 * *",
|
|
67
|
-
"@monthly": "0 0 0 1 * * *",
|
|
68
|
-
"@weekly": "0 0 0 * * 0 *",
|
|
69
|
-
"@daily": "0 0 0 * * * *",
|
|
70
|
-
"@midnight": "0 0 0 * * * *",
|
|
71
|
-
"@hourly": "0 0 * * * * *"
|
|
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;
|
|
73
|
-
var S;
|
|
74
|
-
(function(n) {
|
|
75
|
-
n.IncrementLargerThanRange = "IncrementLargerThanRange";
|
|
76
|
-
})(S || (S = {}));
|
|
77
|
-
function T(n) {
|
|
78
|
-
let e = n.trim().toLowerCase();
|
|
79
|
-
W[e] && (e = W[e]);
|
|
80
|
-
const t = e.split(/\s+/g);
|
|
81
|
-
if (t.length < 5 || t.length > 7)
|
|
82
|
-
throw new Error("Expression must have at least 5 fields, and no more than 7 fields");
|
|
83
|
-
switch (t.length) {
|
|
84
|
-
case 5:
|
|
85
|
-
t.unshift("0");
|
|
86
|
-
case 6:
|
|
87
|
-
t.push("*");
|
|
88
|
-
}
|
|
89
|
-
return [
|
|
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])
|
|
96
|
-
];
|
|
97
|
-
}
|
|
98
|
-
function E(n, e, t) {
|
|
99
|
-
const s = [];
|
|
100
|
-
for (let a of n) {
|
|
101
|
-
let i;
|
|
102
|
-
a.step > 1 && a.step > (i = a.rangeLength(e, t)) && s.push({
|
|
103
|
-
type: S.IncrementLargerThanRange,
|
|
104
|
-
message: `Increment (${a.step}) is larger than range (${i}) for expression '${a.itemString}'`
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
return s;
|
|
108
|
-
}
|
|
109
|
-
class f {
|
|
110
|
-
constructor(e) {
|
|
111
|
-
this.field = e;
|
|
112
|
-
}
|
|
113
|
-
parse() {
|
|
114
|
-
return this.field.split(",").map((e) => y.parse(e, this.first, this.last, !0));
|
|
115
|
-
}
|
|
116
|
-
get items() {
|
|
117
|
-
return this._items || (this._items = this.parse()), this._items;
|
|
118
|
-
}
|
|
119
|
-
get values() {
|
|
120
|
-
return f.getValues(this.items, this.first, this.last);
|
|
121
|
-
}
|
|
122
|
-
get warnings() {
|
|
123
|
-
return E(this.items, this.first, this.last);
|
|
124
|
-
}
|
|
125
|
-
static getValues(e, t, s) {
|
|
126
|
-
return Array.from(new Set(b(e, (a) => a.values(t, s)))).sort(w);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
class y {
|
|
130
|
-
constructor(e) {
|
|
131
|
-
this.itemString = e, this.step = 1;
|
|
132
|
-
}
|
|
133
|
-
rangeLength(e, t) {
|
|
134
|
-
var s, a, i, r;
|
|
135
|
-
const c = (a = (s = this.range) === null || s === void 0 ? void 0 : s.from) !== null && a !== void 0 ? a : e, o = (r = (i = this.range) === null || i === void 0 ? void 0 : i.to) !== null && r !== void 0 ? r : t;
|
|
136
|
-
return o < c ? t - c + (o - e) + 1 : o - c;
|
|
137
|
-
}
|
|
138
|
-
values(e, t) {
|
|
139
|
-
const s = this.range ? this.range.from : e, a = this.rangeLength(e, t);
|
|
140
|
-
return Array(Math.floor(a / this.step) + 1).fill(0).map((i, r) => e + (s - e + this.step * r) % (t - e + 1));
|
|
141
|
-
}
|
|
142
|
-
get any() {
|
|
143
|
-
return this.range === void 0 && this.step === 1;
|
|
144
|
-
}
|
|
145
|
-
get single() {
|
|
146
|
-
return !!this.range && this.range.from === this.range.to;
|
|
147
|
-
}
|
|
148
|
-
static parse(e, t, s, a = !1, i) {
|
|
149
|
-
var r;
|
|
150
|
-
const c = new y(e), [o, l, d, m, p] = (r = e.match(/^(?:(\*)|([0-9]+)|([0-9]+-[0-9]+))(?:\/([1-9][0-9]*))?$/)) !== null && r !== void 0 ? r : [];
|
|
151
|
-
if (!o)
|
|
152
|
-
throw new Error("Field item invalid format");
|
|
153
|
-
if (p && (c.step = parseInt(p, 10)), d) {
|
|
154
|
-
let u = parseInt(d, 10);
|
|
155
|
-
if (u = i ? i(u) : u, u < t || u > s)
|
|
156
|
-
throw new Error("Field item out of valid value range");
|
|
157
|
-
c.range = {
|
|
158
|
-
from: u,
|
|
159
|
-
to: p ? void 0 : u
|
|
160
|
-
};
|
|
161
|
-
} else if (m) {
|
|
162
|
-
const [u, k] = m.split("-").map((M) => {
|
|
163
|
-
const I = parseInt(M, 10);
|
|
164
|
-
return i ? i(I) : I;
|
|
165
|
-
});
|
|
166
|
-
if (u < t || u > s || k < t || k > s || k < u && !a)
|
|
167
|
-
throw new Error("Field item range invalid, either value out of valid range or start greater than end in non wraparound field");
|
|
168
|
-
c.range = {
|
|
169
|
-
from: u,
|
|
170
|
-
to: k
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
return c;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
y.asterisk = new y("*");
|
|
177
|
-
class C extends f {
|
|
178
|
-
constructor() {
|
|
179
|
-
super(...arguments), this.first = 0, this.last = 59;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
class B extends f {
|
|
183
|
-
constructor() {
|
|
184
|
-
super(...arguments), this.first = 0, this.last = 23;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
class P {
|
|
188
|
-
constructor(e, t) {
|
|
189
|
-
this.lastDay = !1, this.lastWeekday = !1, this.daysItems = [], this.nearestWeekdayItems = [], this.daysOfWeekItems = [], this.lastDaysOfWeekItems = [], this.nthDaysOfWeekItems = [];
|
|
190
|
-
for (let i of e.split(",").map((r) => r === "?" ? "*" : r))
|
|
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));
|
|
192
|
-
const s = t.replace(U, (i) => R.indexOf(i) + ""), a = (i) => y.parse(i, 0, 6, !0, (r) => r === 7 ? 0 : r);
|
|
193
|
-
for (let i of s.split(",").map((r) => r === "?" ? "*" : r)) {
|
|
194
|
-
const r = i.lastIndexOf("#");
|
|
195
|
-
if (i.endsWith("l"))
|
|
196
|
-
this.lastDaysOfWeekItems.push(a(i.slice(0, -1)));
|
|
197
|
-
else if (r !== -1) {
|
|
198
|
-
const c = i.slice(r + 1);
|
|
199
|
-
if (!/^[1-5]$/.test(c))
|
|
200
|
-
throw new Error("Field item nth of month (#) invalid");
|
|
201
|
-
this.nthDaysOfWeekItems.push({
|
|
202
|
-
item: a(i.slice(0, r)),
|
|
203
|
-
nth: parseInt(c, 10)
|
|
204
|
-
});
|
|
205
|
-
} else
|
|
206
|
-
this.daysOfWeekItems.push(a(i));
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
get values() {
|
|
210
|
-
return D.fromField(this);
|
|
211
|
-
}
|
|
212
|
-
get warnings() {
|
|
213
|
-
const e = [], t = [
|
|
214
|
-
...this.daysItems,
|
|
215
|
-
...this.nearestWeekdayItems
|
|
216
|
-
], s = [
|
|
217
|
-
...this.daysOfWeekItems,
|
|
218
|
-
...this.lastDaysOfWeekItems,
|
|
219
|
-
...this.nthDaysOfWeekItems.map(({ item: a }) => a)
|
|
220
|
-
];
|
|
221
|
-
return e.push(...E(t, 1, 31), ...E(s, 0, 6)), e;
|
|
222
|
-
}
|
|
223
|
-
get allDays() {
|
|
224
|
-
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;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
class D {
|
|
228
|
-
constructor() {
|
|
229
|
-
this.lastDay = !1, this.lastWeekday = !1, this.days = [], this.nearestWeekday = [], this.daysOfWeek = [], this.lastDaysOfWeek = [], this.nthDaysOfWeek = [];
|
|
230
|
-
}
|
|
231
|
-
static fromField(e) {
|
|
232
|
-
const t = new D(), s = (i) => i.filter((r) => !r.any);
|
|
233
|
-
t.lastDay = e.lastDay, t.lastWeekday = e.lastWeekday, t.days = f.getValues(e.allDays ? [y.asterisk] : s(e.daysItems), 1, 31), t.nearestWeekday = f.getValues(e.nearestWeekdayItems, 1, 31), t.daysOfWeek = f.getValues(s(e.daysOfWeekItems), 0, 6), t.lastDaysOfWeek = f.getValues(e.lastDaysOfWeekItems, 0, 6);
|
|
234
|
-
const a = /* @__PURE__ */ new Set();
|
|
235
|
-
for (let i of e.nthDaysOfWeekItems)
|
|
236
|
-
for (let r of i.item.values(0, 6)) {
|
|
237
|
-
let c = r * 10 + i.nth;
|
|
238
|
-
a.has(c) || (a.add(c), t.nthDaysOfWeek.push([r, i.nth]));
|
|
239
|
-
}
|
|
240
|
-
return t;
|
|
241
|
-
}
|
|
242
|
-
getDays(e, t) {
|
|
243
|
-
const s = new Set(this.days), a = new Date(e, t, 0).getDate(), i = new Date(e, t - 1, 1).getDay(), r = (c) => {
|
|
244
|
-
c > a && (c = a);
|
|
245
|
-
const o = (c + i - 1) % 7;
|
|
246
|
-
let l = c + (o === 0 ? 1 : o === 6 ? -1 : 0);
|
|
247
|
-
return l + (l < 1 ? 3 : l > a ? -3 : 0);
|
|
248
|
-
};
|
|
249
|
-
this.lastDay && s.add(a), this.lastWeekday && s.add(r(a));
|
|
250
|
-
for (const c of this.nearestWeekday)
|
|
251
|
-
s.add(r(c));
|
|
252
|
-
if (this.daysOfWeek.length || this.lastDaysOfWeek.length || this.nthDaysOfWeek.length) {
|
|
253
|
-
const c = Array(7).fill(0).map(() => []);
|
|
254
|
-
for (let o = 1; o < 36; o++)
|
|
255
|
-
c[(o + i - 1) % 7].push(o);
|
|
256
|
-
for (const o of this.daysOfWeek)
|
|
257
|
-
for (const l of c[o])
|
|
258
|
-
s.add(l);
|
|
259
|
-
for (const o of this.lastDaysOfWeek)
|
|
260
|
-
for (let l = c[o].length - 1; l >= 0; l--)
|
|
261
|
-
if (c[o][l] <= a) {
|
|
262
|
-
s.add(c[o][l]);
|
|
263
|
-
break;
|
|
264
|
-
}
|
|
265
|
-
for (const [o, l] of this.nthDaysOfWeek)
|
|
266
|
-
s.add(c[o][l - 1]);
|
|
267
|
-
}
|
|
268
|
-
return Array.from(s).filter((c) => c <= a).sort(w);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
class V extends f {
|
|
272
|
-
constructor(e) {
|
|
273
|
-
super(e.replace(Y, (t) => z.indexOf(t) + 1 + "")), this.first = 1, this.last = 12;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
class j extends f {
|
|
277
|
-
constructor(e) {
|
|
278
|
-
super(e), this.first = 1970, this.last = 2099, this.items;
|
|
279
|
-
}
|
|
280
|
-
parse() {
|
|
281
|
-
return this.field.split(",").map((e) => y.parse(e, 0, g));
|
|
282
|
-
}
|
|
283
|
-
get warnings() {
|
|
284
|
-
return E(this.items, this.first, g);
|
|
285
|
-
}
|
|
286
|
-
nextYear(e) {
|
|
287
|
-
var t;
|
|
288
|
-
return (t = this.items.reduce((s, a) => {
|
|
289
|
-
var i, r, c, o;
|
|
290
|
-
if (a.any)
|
|
291
|
-
s.push(e);
|
|
292
|
-
else if (a.single) {
|
|
293
|
-
const l = a.range.from;
|
|
294
|
-
l >= e && s.push(l);
|
|
295
|
-
} else {
|
|
296
|
-
const l = (r = (i = a.range) === null || i === void 0 ? void 0 : i.from) !== null && r !== void 0 ? r : this.first;
|
|
297
|
-
if (l > e)
|
|
298
|
-
s.push(l);
|
|
299
|
-
else {
|
|
300
|
-
const d = l + Math.ceil((e - l) / a.step) * a.step;
|
|
301
|
-
d <= ((o = (c = a.range) === null || c === void 0 ? void 0 : c.to) !== null && o !== void 0 ? o : g) && s.push(d);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
return s;
|
|
305
|
-
}, []).sort(w)[0]) !== null && t !== void 0 ? t : null;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
class h {
|
|
309
|
-
constructor(e, t = 1, s = 1, a = 0, i = 0, r = 0) {
|
|
310
|
-
this.year = e, this.month = t, this.day = s, this.hour = a, this.minute = i, this.second = r;
|
|
311
|
-
}
|
|
312
|
-
static fromDate(e, t) {
|
|
313
|
-
return t ? t.nativeDateToCronosDate(e) : new h(e.getFullYear(), e.getMonth() + 1, e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds());
|
|
314
|
-
}
|
|
315
|
-
toDate(e) {
|
|
316
|
-
return e ? e.cronosDateToNativeDate(this) : new Date(this.year, this.month - 1, this.day, this.hour, this.minute, this.second);
|
|
317
|
-
}
|
|
318
|
-
static fromUTCTimestamp(e) {
|
|
319
|
-
const t = new Date(e);
|
|
320
|
-
return new h(t.getUTCFullYear(), t.getUTCMonth() + 1, t.getUTCDate(), t.getUTCHours(), t.getUTCMinutes(), t.getUTCSeconds());
|
|
321
|
-
}
|
|
322
|
-
toUTCTimestamp() {
|
|
323
|
-
return Date.UTC(this.year, this.month - 1, this.day, this.hour, this.minute, this.second);
|
|
324
|
-
}
|
|
325
|
-
copyWith({ year: e = this.year, month: t = this.month, day: s = this.day, hour: a = this.hour, minute: i = this.minute, second: r = this.second } = {}) {
|
|
326
|
-
return new h(e, t, s, a, i, r);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
const _ = /* @__PURE__ */ new Map();
|
|
330
|
-
class O {
|
|
331
|
-
constructor(e) {
|
|
332
|
-
if (typeof e == "number") {
|
|
333
|
-
if (e > 840 || e < -840)
|
|
334
|
-
throw new Error("Invalid offset");
|
|
335
|
-
return this.fixedOffset = e, this;
|
|
336
|
-
}
|
|
337
|
-
const t = e.match(/^([+-]?)(0[1-9]|1[0-4])(?::?([0-5][0-9]))?$/);
|
|
338
|
-
if (t)
|
|
339
|
-
return this.fixedOffset = (t[1] === "-" ? -1 : 1) * (parseInt(t[2], 10) * 60 + (parseInt(t[3], 10) || 0)), this;
|
|
340
|
-
if (_.has(e))
|
|
341
|
-
return _.get(e);
|
|
342
|
-
try {
|
|
343
|
-
this.dateTimeFormat = new Intl.DateTimeFormat("en-US", {
|
|
344
|
-
hour12: !1,
|
|
345
|
-
timeZone: e,
|
|
346
|
-
year: "numeric",
|
|
347
|
-
month: "2-digit",
|
|
348
|
-
day: "2-digit",
|
|
349
|
-
hour: "2-digit",
|
|
350
|
-
minute: "2-digit",
|
|
351
|
-
second: "2-digit"
|
|
352
|
-
});
|
|
353
|
-
} catch {
|
|
354
|
-
throw new Error("Invalid IANA name or offset");
|
|
355
|
-
}
|
|
356
|
-
this.zoneName = e;
|
|
357
|
-
const s = (/* @__PURE__ */ new Date()).getUTCFullYear();
|
|
358
|
-
this.winterOffset = this.offset(Date.UTC(s, 0, 1)), this.summerOffset = this.offset(Date.UTC(s, 5, 1)), _.set(e, this);
|
|
359
|
-
}
|
|
360
|
-
toString() {
|
|
361
|
-
if (this.fixedOffset) {
|
|
362
|
-
const e = Math.abs(this.fixedOffset);
|
|
363
|
-
return [
|
|
364
|
-
this.fixedOffset < 0 ? "-" : "+",
|
|
365
|
-
Math.floor(e / 60).toString().padStart(2, "0"),
|
|
366
|
-
(e % 60).toString().padStart(2, "0")
|
|
367
|
-
].join("");
|
|
368
|
-
}
|
|
369
|
-
return this.zoneName;
|
|
370
|
-
}
|
|
371
|
-
offset(e) {
|
|
372
|
-
if (!this.dateTimeFormat)
|
|
373
|
-
return this.fixedOffset || 0;
|
|
374
|
-
const t = new Date(e), { year: s, month: a, day: i, hour: r, minute: c, second: o } = this.nativeDateToCronosDate(t), l = Date.UTC(s, a - 1, i, r, c, o), d = e - e % 1e3;
|
|
375
|
-
return (l - d) / 6e4;
|
|
376
|
-
}
|
|
377
|
-
nativeDateToCronosDate(e) {
|
|
378
|
-
return this.dateTimeFormat ? this.dateTimeFormat.formatToParts ? q(this.dateTimeFormat, e) : G(this.dateTimeFormat, e) : h.fromUTCTimestamp(e.getTime() + (this.fixedOffset || 0) * 6e4);
|
|
379
|
-
}
|
|
380
|
-
cronosDateToNativeDate(e) {
|
|
381
|
-
if (!this.dateTimeFormat)
|
|
382
|
-
return new Date(e.toUTCTimestamp() - (this.fixedOffset || 0) * 6e4);
|
|
383
|
-
const t = (e.month > 3 || e.month < 11 ? this.summerOffset : this.winterOffset) || 0, s = e.toUTCTimestamp();
|
|
384
|
-
let a = s - t * 6e4;
|
|
385
|
-
const i = this.offset(a);
|
|
386
|
-
if (t === i)
|
|
387
|
-
return new Date(a);
|
|
388
|
-
a -= (i - t) * 6e4;
|
|
389
|
-
const r = this.offset(a);
|
|
390
|
-
return i === r ? new Date(a) : new Date(s - Math.min(i, r) * 6e4);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
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));
|
|
395
|
-
return new h(r, a, i, c % 24, o, l);
|
|
396
|
-
}
|
|
397
|
-
function q(n, e) {
|
|
398
|
-
const t = n.formatToParts(e);
|
|
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));
|
|
400
|
-
}
|
|
401
|
-
const v = 3600 * 1e3, x = (n, e) => e.findIndex((t) => t >= n);
|
|
402
|
-
class $ {
|
|
403
|
-
constructor(e, t, s, a, i, r, c) {
|
|
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;
|
|
405
|
-
}
|
|
406
|
-
static parse(e, t = {}) {
|
|
407
|
-
var s;
|
|
408
|
-
const a = T(e);
|
|
409
|
-
if (t.strict) {
|
|
410
|
-
let r = b(a, (c) => c.warnings);
|
|
411
|
-
if (typeof t.strict == "object" && (r = r.filter((c) => !!t.strict[c.type])), r.length > 0)
|
|
412
|
-
throw new Error(`Strict mode: Parsing failed with ${r.length} warnings`);
|
|
413
|
-
}
|
|
414
|
-
const i = new $(e, a[0].values, a[1].values, a[2].values, a[3].values, a[4].values, a[5]);
|
|
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;
|
|
416
|
-
}
|
|
417
|
-
get warnings() {
|
|
418
|
-
if (!this._warnings) {
|
|
419
|
-
const e = T(this.cronString);
|
|
420
|
-
this._warnings = b(e, (t) => t.warnings);
|
|
421
|
-
}
|
|
422
|
-
return this._warnings;
|
|
423
|
-
}
|
|
424
|
-
toString() {
|
|
425
|
-
var e, t;
|
|
426
|
-
const s = !this.timezone || !!this.timezone.zoneName, a = Object.entries({
|
|
427
|
-
tz: (t = (e = this.timezone) === null || e === void 0 ? void 0 : e.toString()) !== null && t !== void 0 ? t : "Local",
|
|
428
|
-
skipRepeatedHour: s && this.skipRepeatedHour.toString(),
|
|
429
|
-
missingHour: s && this.missingHour
|
|
430
|
-
}).map(([i, r]) => r && i + ": " + r).filter((i) => i).join(", ");
|
|
431
|
-
return `${this.cronString} (${a})`;
|
|
432
|
-
}
|
|
433
|
-
nextDate(e = /* @__PURE__ */ new Date()) {
|
|
434
|
-
var t;
|
|
435
|
-
const s = h.fromDate(e, this.timezone);
|
|
436
|
-
if (((t = this.timezone) === null || t === void 0 ? void 0 : t.fixedOffset) !== void 0)
|
|
437
|
-
return this._next(s).date;
|
|
438
|
-
const a = e.getTime(), i = s.toUTCTimestamp(), r = h.fromDate(new Date(a - v), this.timezone).toUTCTimestamp(), c = h.fromDate(new Date(a + v), this.timezone).toUTCTimestamp(), o = c - i === 0, l = i - r === 0, d = i - r === v * 2;
|
|
439
|
-
if (this.skipRepeatedHour && l)
|
|
440
|
-
return this._next(s.copyWith({ minute: 59, second: 60 }), !1).date;
|
|
441
|
-
if (this.missingHour === "offset" && d) {
|
|
442
|
-
const u = this._next(s.copyWith({ hour: s.hour - 1 })).date;
|
|
443
|
-
if (!u || u.getTime() > a)
|
|
444
|
-
return u;
|
|
445
|
-
}
|
|
446
|
-
let { date: m, cronosDate: p } = this._next(s);
|
|
447
|
-
return this.missingHour !== "offset" && p && m && p.copyWith({ hour: p.hour + 1 }).toDate(this.timezone).getTime() === m.getTime() ? this.missingHour === "insert" ? p.copyWith({ minute: 0, second: 0 }).toDate(this.timezone) : this._next(p.copyWith({ minute: 59, second: 59 })).date : (this.skipRepeatedHour || (o && (!m || m.getTime() > a + v) && (m = this._next(s.copyWith({ minute: 0, second: 0 }), !1).date), m && m < e && (m = new Date(m.getTime() + v))), m);
|
|
448
|
-
}
|
|
449
|
-
_next(e, t = !0) {
|
|
450
|
-
const s = this._nextYear(t ? e.copyWith({ second: e.second + 1 }) : e);
|
|
451
|
-
return {
|
|
452
|
-
cronosDate: s,
|
|
453
|
-
date: s ? s.toDate(this.timezone) : null
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
nextNDates(e = /* @__PURE__ */ new Date(), t = 5) {
|
|
457
|
-
const s = [];
|
|
458
|
-
let a = e;
|
|
459
|
-
for (let i = 0; i < t; i++) {
|
|
460
|
-
const r = this.nextDate(a);
|
|
461
|
-
if (!r)
|
|
462
|
-
break;
|
|
463
|
-
a = r, s.push(r);
|
|
464
|
-
}
|
|
465
|
-
return s;
|
|
466
|
-
}
|
|
467
|
-
_nextYear(e) {
|
|
468
|
-
let t = e.year, s = null;
|
|
469
|
-
for (; !s; ) {
|
|
470
|
-
if (t = this.years.nextYear(t), t === null)
|
|
471
|
-
return null;
|
|
472
|
-
s = this._nextMonth(t === e.year ? e : new h(t)), t++;
|
|
473
|
-
}
|
|
474
|
-
return s;
|
|
475
|
-
}
|
|
476
|
-
_nextMonth(e) {
|
|
477
|
-
let t = x(e.month, this.months), s = null;
|
|
478
|
-
for (; !s; ) {
|
|
479
|
-
const a = this.months[t];
|
|
480
|
-
if (a === void 0)
|
|
481
|
-
return null;
|
|
482
|
-
s = this._nextDay(a === e.month ? e : new h(e.year, a)), t++;
|
|
483
|
-
}
|
|
484
|
-
return s;
|
|
485
|
-
}
|
|
486
|
-
_nextDay(e) {
|
|
487
|
-
const t = this.days.getDays(e.year, e.month);
|
|
488
|
-
let s = x(e.day, t), a = null;
|
|
489
|
-
for (; !a; ) {
|
|
490
|
-
const i = t[s];
|
|
491
|
-
if (i === void 0)
|
|
492
|
-
return null;
|
|
493
|
-
a = this._nextHour(i === e.day ? e : new h(e.year, e.month, i)), s++;
|
|
494
|
-
}
|
|
495
|
-
return a;
|
|
496
|
-
}
|
|
497
|
-
_nextHour(e) {
|
|
498
|
-
let t = x(e.hour, this.hours), s = null;
|
|
499
|
-
for (; !s; ) {
|
|
500
|
-
const a = this.hours[t];
|
|
501
|
-
if (a === void 0)
|
|
502
|
-
return null;
|
|
503
|
-
s = this._nextMinute(a === e.hour ? e : new h(e.year, e.month, e.day, a)), t++;
|
|
504
|
-
}
|
|
505
|
-
return s;
|
|
506
|
-
}
|
|
507
|
-
_nextMinute(e) {
|
|
508
|
-
let t = x(e.minute, this.minutes), s = null;
|
|
509
|
-
for (; !s; ) {
|
|
510
|
-
const a = this.minutes[t];
|
|
511
|
-
if (a === void 0)
|
|
512
|
-
return null;
|
|
513
|
-
s = this._nextSecond(a === e.minute ? e : new h(e.year, e.month, e.day, e.hour, a)), t++;
|
|
514
|
-
}
|
|
515
|
-
return s;
|
|
516
|
-
}
|
|
517
|
-
_nextSecond(e) {
|
|
518
|
-
const t = x(e.second, this.seconds), s = this.seconds[t];
|
|
519
|
-
return s === void 0 ? null : e.copyWith({ second: s });
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
const Q = {
|
|
523
|
-
name: "VueCron",
|
|
524
|
-
props: {
|
|
525
|
-
data: Object,
|
|
526
|
-
expression: String,
|
|
527
|
-
runsParser: Function,
|
|
528
|
-
quartz: {
|
|
529
|
-
type: Boolean,
|
|
530
|
-
default: !0
|
|
531
|
-
}
|
|
532
|
-
},
|
|
533
|
-
data() {
|
|
534
|
-
const n = (/* @__PURE__ */ new Date()).getFullYear();
|
|
535
|
-
return {
|
|
536
|
-
currentYear: n,
|
|
537
|
-
exps: [
|
|
538
|
-
{
|
|
539
|
-
type: "second",
|
|
540
|
-
expression: ""
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
type: "minute",
|
|
544
|
-
expression: ""
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
type: "hour",
|
|
548
|
-
expression: ""
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
type: "day",
|
|
552
|
-
expression: ""
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
type: "month",
|
|
556
|
-
expression: ""
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
type: "week",
|
|
560
|
-
expression: ""
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
type: "year",
|
|
564
|
-
expression: ""
|
|
565
|
-
}
|
|
566
|
-
],
|
|
567
|
-
second: {
|
|
568
|
-
cronEvery: "",
|
|
569
|
-
incrementStart: "1",
|
|
570
|
-
incrementIncrement: "3",
|
|
571
|
-
rangeStart: "",
|
|
572
|
-
rangeEnd: "",
|
|
573
|
-
specificSpecific: []
|
|
574
|
-
},
|
|
575
|
-
minute: {
|
|
576
|
-
cronEvery: "",
|
|
577
|
-
incrementStart: "1",
|
|
578
|
-
incrementIncrement: "3",
|
|
579
|
-
rangeStart: "",
|
|
580
|
-
rangeEnd: "",
|
|
581
|
-
specificSpecific: []
|
|
582
|
-
},
|
|
583
|
-
hour: {
|
|
584
|
-
cronEvery: "",
|
|
585
|
-
incrementStart: "1",
|
|
586
|
-
incrementIncrement: "3",
|
|
587
|
-
rangeStart: "",
|
|
588
|
-
rangeEnd: "",
|
|
589
|
-
specificSpecific: []
|
|
590
|
-
},
|
|
591
|
-
day: {
|
|
592
|
-
cronEvery: "",
|
|
593
|
-
incrementStart: "1",
|
|
594
|
-
incrementIncrement: "1",
|
|
595
|
-
rangeStart: "",
|
|
596
|
-
rangeEnd: "",
|
|
597
|
-
specificSpecific: [],
|
|
598
|
-
cronDaysBeforeEomMinus: "",
|
|
599
|
-
cronDaysNearestWeekday: ""
|
|
600
|
-
},
|
|
601
|
-
week: {
|
|
602
|
-
cronEvery: "",
|
|
603
|
-
incrementStart: "0",
|
|
604
|
-
incrementIncrement: "1",
|
|
605
|
-
specificSpecific: [],
|
|
606
|
-
cronLastSpecificDomDay: "0",
|
|
607
|
-
cronNthDayDay: "0",
|
|
608
|
-
cronNthDayNth: "1"
|
|
609
|
-
},
|
|
610
|
-
month: {
|
|
611
|
-
cronEvery: "",
|
|
612
|
-
incrementStart: "1",
|
|
613
|
-
incrementIncrement: "3",
|
|
614
|
-
rangeStart: "",
|
|
615
|
-
rangeEnd: "",
|
|
616
|
-
specificSpecific: []
|
|
617
|
-
},
|
|
618
|
-
year: {
|
|
619
|
-
cronEvery: "",
|
|
620
|
-
incrementStart: `${n}`,
|
|
621
|
-
incrementIncrement: "1",
|
|
622
|
-
rangeStart: "",
|
|
623
|
-
rangeEnd: "",
|
|
624
|
-
specificSpecific: []
|
|
625
|
-
},
|
|
626
|
-
output: {
|
|
627
|
-
second: "",
|
|
628
|
-
minute: "",
|
|
629
|
-
hour: "",
|
|
630
|
-
day: "",
|
|
631
|
-
month: "",
|
|
632
|
-
week: "",
|
|
633
|
-
year: ""
|
|
634
|
-
},
|
|
635
|
-
runs: [],
|
|
636
|
-
defaultStr: "0",
|
|
637
|
-
weekOptions: [
|
|
638
|
-
{
|
|
639
|
-
value: "0",
|
|
640
|
-
label: "星期天"
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
value: "1",
|
|
644
|
-
label: "星期一"
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
value: "2",
|
|
648
|
-
label: "星期二"
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
value: "3",
|
|
652
|
-
label: "星期三"
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
value: "4",
|
|
656
|
-
label: "星期四"
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
value: "5",
|
|
660
|
-
label: "星期五"
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
value: "6",
|
|
664
|
-
label: "星期六"
|
|
665
|
-
}
|
|
666
|
-
]
|
|
667
|
-
};
|
|
668
|
-
},
|
|
669
|
-
computed: {
|
|
670
|
-
text() {
|
|
671
|
-
return F;
|
|
672
|
-
},
|
|
673
|
-
secondsText() {
|
|
674
|
-
let n = "";
|
|
675
|
-
switch (this.second.cronEvery.toString()) {
|
|
676
|
-
case "1":
|
|
677
|
-
n = "*";
|
|
678
|
-
break;
|
|
679
|
-
case "2":
|
|
680
|
-
n = `${this.second.incrementStart}/${this.second.incrementIncrement}`;
|
|
681
|
-
break;
|
|
682
|
-
case "3":
|
|
683
|
-
this.second.specificSpecific.forEach((t) => {
|
|
684
|
-
n += `${t},`;
|
|
685
|
-
}), n = n.slice(0, -1);
|
|
686
|
-
break;
|
|
687
|
-
case "4":
|
|
688
|
-
n = `${this.second.rangeStart}-${this.second.rangeEnd}`;
|
|
689
|
-
break;
|
|
690
|
-
}
|
|
691
|
-
return n || this.defaultStr;
|
|
692
|
-
},
|
|
693
|
-
minutesText() {
|
|
694
|
-
let n = "";
|
|
695
|
-
switch (this.minute.cronEvery.toString()) {
|
|
696
|
-
case "1":
|
|
697
|
-
n = "*";
|
|
698
|
-
break;
|
|
699
|
-
case "2":
|
|
700
|
-
n = `${this.minute.incrementStart}/${this.minute.incrementIncrement}`;
|
|
701
|
-
break;
|
|
702
|
-
case "3":
|
|
703
|
-
this.minute.specificSpecific.forEach((t) => {
|
|
704
|
-
n += `${t},`;
|
|
705
|
-
}), n = n.slice(0, -1);
|
|
706
|
-
break;
|
|
707
|
-
case "4":
|
|
708
|
-
n = `${this.minute.rangeStart}-${this.minute.rangeEnd}`;
|
|
709
|
-
break;
|
|
710
|
-
}
|
|
711
|
-
return n || this.defaultStr;
|
|
712
|
-
},
|
|
713
|
-
hoursText() {
|
|
714
|
-
let n = "";
|
|
715
|
-
switch (this.hour.cronEvery.toString()) {
|
|
716
|
-
case "1":
|
|
717
|
-
n = "*";
|
|
718
|
-
break;
|
|
719
|
-
case "2":
|
|
720
|
-
n = `${this.hour.incrementStart}/${this.hour.incrementIncrement}`;
|
|
721
|
-
break;
|
|
722
|
-
case "3":
|
|
723
|
-
this.hour.specificSpecific.forEach((t) => {
|
|
724
|
-
n += `${t},`;
|
|
725
|
-
}), n = n.slice(0, -1);
|
|
726
|
-
break;
|
|
727
|
-
case "4":
|
|
728
|
-
n = `${this.hour.rangeStart}-${this.hour.rangeEnd}`;
|
|
729
|
-
break;
|
|
730
|
-
}
|
|
731
|
-
return n || this.defaultStr;
|
|
732
|
-
},
|
|
733
|
-
daysText() {
|
|
734
|
-
const n = this.day.cronEvery;
|
|
735
|
-
if (!n)
|
|
736
|
-
return "?";
|
|
737
|
-
let e = "";
|
|
738
|
-
switch (n.toString()) {
|
|
739
|
-
case "1":
|
|
740
|
-
e = "*";
|
|
741
|
-
break;
|
|
742
|
-
case "3":
|
|
743
|
-
e = `${this.day.incrementStart}/${this.day.incrementIncrement}`;
|
|
744
|
-
break;
|
|
745
|
-
case "5":
|
|
746
|
-
this.day.specificSpecific.forEach((t) => {
|
|
747
|
-
e += `${t},`;
|
|
748
|
-
}), e = e.slice(0, -1);
|
|
749
|
-
break;
|
|
750
|
-
case "6":
|
|
751
|
-
e = "L";
|
|
752
|
-
break;
|
|
753
|
-
case "7":
|
|
754
|
-
e = "LW";
|
|
755
|
-
break;
|
|
756
|
-
case "9":
|
|
757
|
-
e = `L-${this.day.cronDaysBeforeEomMinus}`;
|
|
758
|
-
break;
|
|
759
|
-
case "10":
|
|
760
|
-
e = `${this.day.cronDaysNearestWeekday}W`;
|
|
761
|
-
break;
|
|
762
|
-
}
|
|
763
|
-
return e;
|
|
764
|
-
},
|
|
765
|
-
weeksText() {
|
|
766
|
-
const n = this.week.cronEvery;
|
|
767
|
-
if (!n)
|
|
768
|
-
return "?";
|
|
769
|
-
let e = "";
|
|
770
|
-
switch (n.toString()) {
|
|
771
|
-
case "1":
|
|
772
|
-
e = "*";
|
|
773
|
-
break;
|
|
774
|
-
case "2":
|
|
775
|
-
e = `${this.week.incrementStart}/${this.week.incrementIncrement}`;
|
|
776
|
-
break;
|
|
777
|
-
case "4":
|
|
778
|
-
this.week.specificSpecific.forEach((t) => {
|
|
779
|
-
e += `${t},`;
|
|
780
|
-
}), e = e.slice(0, -1);
|
|
781
|
-
break;
|
|
782
|
-
case "8":
|
|
783
|
-
e = `${this.week.cronLastSpecificDomDay}L`;
|
|
784
|
-
break;
|
|
785
|
-
case "11":
|
|
786
|
-
e = `${this.week.cronNthDayDay}#${this.week.cronNthDayNth}`;
|
|
787
|
-
break;
|
|
788
|
-
}
|
|
789
|
-
return e;
|
|
790
|
-
},
|
|
791
|
-
weeksTextQuartz() {
|
|
792
|
-
const n = this.week.cronEvery;
|
|
793
|
-
if (!n)
|
|
794
|
-
return "?";
|
|
795
|
-
let e = "";
|
|
796
|
-
switch (n.toString()) {
|
|
797
|
-
case "1":
|
|
798
|
-
e = "*";
|
|
799
|
-
break;
|
|
800
|
-
case "2":
|
|
801
|
-
e = `${this.week.incrementStart}/${this.week.incrementIncrement}`;
|
|
802
|
-
break;
|
|
803
|
-
case "4":
|
|
804
|
-
e = this.week.specificSpecific.map((t) => Number(t) + 1).join(",");
|
|
805
|
-
break;
|
|
806
|
-
case "8":
|
|
807
|
-
e = `${Number(this.week.cronLastSpecificDomDay) + 1}L`;
|
|
808
|
-
break;
|
|
809
|
-
case "11":
|
|
810
|
-
e = `${Number(this.week.cronNthDayDay) + 1}#${this.week.cronNthDayNth}`;
|
|
811
|
-
break;
|
|
812
|
-
}
|
|
813
|
-
return e;
|
|
814
|
-
},
|
|
815
|
-
monthsText() {
|
|
816
|
-
let n = "";
|
|
817
|
-
switch (this.month.cronEvery.toString()) {
|
|
818
|
-
case "1":
|
|
819
|
-
n = "*";
|
|
820
|
-
break;
|
|
821
|
-
case "2":
|
|
822
|
-
n = `${this.month.incrementStart}/${this.month.incrementIncrement}`;
|
|
823
|
-
break;
|
|
824
|
-
case "3":
|
|
825
|
-
this.month.specificSpecific.forEach((t) => {
|
|
826
|
-
n += `${t},`;
|
|
827
|
-
}), n = n.slice(0, -1);
|
|
828
|
-
break;
|
|
829
|
-
case "4":
|
|
830
|
-
n = `${this.month.rangeStart}-${this.month.rangeEnd}`;
|
|
831
|
-
break;
|
|
832
|
-
}
|
|
833
|
-
return n || "1";
|
|
834
|
-
},
|
|
835
|
-
yearsText() {
|
|
836
|
-
let n = "";
|
|
837
|
-
switch (this.year.cronEvery.toString()) {
|
|
838
|
-
case "1":
|
|
839
|
-
n = "*";
|
|
840
|
-
break;
|
|
841
|
-
case "2":
|
|
842
|
-
n = `${this.year.incrementStart}/${this.year.incrementIncrement}`;
|
|
843
|
-
break;
|
|
844
|
-
case "3":
|
|
845
|
-
this.year.specificSpecific.forEach((t) => {
|
|
846
|
-
n += `${t},`;
|
|
847
|
-
}), n = n.slice(0, -1);
|
|
848
|
-
break;
|
|
849
|
-
case "4":
|
|
850
|
-
n = `${this.year.rangeStart}-${this.year.rangeEnd}`;
|
|
851
|
-
break;
|
|
852
|
-
}
|
|
853
|
-
return n || "*";
|
|
854
|
-
},
|
|
855
|
-
cron() {
|
|
856
|
-
return `${this.secondsText} ${this.minutesText} ${this.hoursText} ${this.daysText} ${this.monthsText} ${this.quartz ? this.weeksTextQuartz : this.weeksText} ${this.yearsText}`;
|
|
857
|
-
}
|
|
858
|
-
},
|
|
859
|
-
watch: {
|
|
860
|
-
data() {
|
|
861
|
-
this.rest(this.$data);
|
|
862
|
-
},
|
|
863
|
-
cron: {
|
|
864
|
-
immediate: !0,
|
|
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
|
-
}
|
|
872
|
-
}
|
|
873
|
-
},
|
|
874
|
-
expression: {
|
|
875
|
-
immediate: !0,
|
|
876
|
-
handler: "resolveExpression"
|
|
877
|
-
}
|
|
878
|
-
},
|
|
879
|
-
methods: {
|
|
880
|
-
copyCron() {
|
|
881
|
-
H(
|
|
882
|
-
this.cron,
|
|
883
|
-
() => {
|
|
884
|
-
this.$message.success("复制成功");
|
|
885
|
-
},
|
|
886
|
-
() => {
|
|
887
|
-
this.$message.error("复制失败");
|
|
888
|
-
}
|
|
889
|
-
);
|
|
890
|
-
},
|
|
891
|
-
getValue() {
|
|
892
|
-
return this.cron;
|
|
893
|
-
},
|
|
894
|
-
change() {
|
|
895
|
-
this.$emit("change", this.cron), this.close();
|
|
896
|
-
},
|
|
897
|
-
close() {
|
|
898
|
-
this.$emit("close");
|
|
899
|
-
},
|
|
900
|
-
rest(n) {
|
|
901
|
-
for (const e in n)
|
|
902
|
-
if (n[e] instanceof Object)
|
|
903
|
-
this.rest(n[e]);
|
|
904
|
-
else
|
|
905
|
-
switch (typeof n[e]) {
|
|
906
|
-
case "object":
|
|
907
|
-
n[e] = [];
|
|
908
|
-
break;
|
|
909
|
-
case "string":
|
|
910
|
-
n[e] = "";
|
|
911
|
-
break;
|
|
912
|
-
}
|
|
913
|
-
},
|
|
914
|
-
// 反向解析表达式
|
|
915
|
-
resolveExpression() {
|
|
916
|
-
var e;
|
|
917
|
-
if (!((e = this.expression) != null && e.length)) return;
|
|
918
|
-
const n = this.expression.split(" ");
|
|
919
|
-
if (n.length < 7)
|
|
920
|
-
throw Error("表达式格式不正确");
|
|
921
|
-
for (let t = 0; t < n.length; t++)
|
|
922
|
-
this.exps[t].expression = n[t];
|
|
923
|
-
this.exps.forEach((t) => {
|
|
924
|
-
switch (this.output[t.type] = t.expression, t.type) {
|
|
925
|
-
case "year":
|
|
926
|
-
case "month":
|
|
927
|
-
case "hour":
|
|
928
|
-
case "minute":
|
|
929
|
-
case "second":
|
|
930
|
-
this.commonParser(this[t.type], t.expression);
|
|
931
|
-
return;
|
|
932
|
-
case "week":
|
|
933
|
-
this.resolveWeek(t.expression);
|
|
934
|
-
return;
|
|
935
|
-
case "day":
|
|
936
|
-
this.resolveDay(t.expression);
|
|
937
|
-
}
|
|
938
|
-
});
|
|
939
|
-
},
|
|
940
|
-
// 年,月,时,分,秒
|
|
941
|
-
commonParser(n, e) {
|
|
942
|
-
e === "*" ? this.resolveStar(n) : e.indexOf("-") >= 0 ? this.resolveLine(n, e) : e.indexOf("/") >= 0 ? this.resolveSlash(n, e) : this.resolveComma(n, e);
|
|
943
|
-
},
|
|
944
|
-
resolveWeek(n) {
|
|
945
|
-
if (n.indexOf("/") >= 0)
|
|
946
|
-
this.week.cronEvery = "2", this.resolveSlash(this.week, n);
|
|
947
|
-
else if (n.indexOf(",") >= 0)
|
|
948
|
-
this.week.cronEvery = "4", this.resolveComma(this.week, n);
|
|
949
|
-
else if (n.indexOf("L") === n.length - 1)
|
|
950
|
-
this.week.cronEvery = "8", this.week.cronLastSpecificDomDay = n.slice(0, -1);
|
|
951
|
-
else if (n.indexOf("#") >= 0) {
|
|
952
|
-
this.week.cronEvery = "11";
|
|
953
|
-
const e = n.split("#");
|
|
954
|
-
this.week.cronNthDayDay = e[0], this.week.cronNthDayNth = e[1];
|
|
955
|
-
}
|
|
956
|
-
},
|
|
957
|
-
resolveDay(n) {
|
|
958
|
-
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" : /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]) : n.indexOf(",") >= 0 && this.resolveComma(this.day, n, "5");
|
|
959
|
-
},
|
|
960
|
-
resolveStar(n, e = "1") {
|
|
961
|
-
n.cronEvery = e;
|
|
962
|
-
},
|
|
963
|
-
resolveSlash(n, e, t = "2") {
|
|
964
|
-
n.cronEvery = t;
|
|
965
|
-
const s = e.split("/");
|
|
966
|
-
n.incrementStart = s[0], n.incrementIncrement = s[1];
|
|
967
|
-
},
|
|
968
|
-
resolveLine(n, e, t = "4") {
|
|
969
|
-
n.cronEvery = t;
|
|
970
|
-
const s = e.split("-");
|
|
971
|
-
n.rangeStart = s[0], n.rangeStart = s[1];
|
|
972
|
-
},
|
|
973
|
-
resolveComma(n, e, t = "3") {
|
|
974
|
-
n.cronEvery = t, n.specificSpecific = e.split(",");
|
|
975
|
-
},
|
|
976
|
-
setSecond(n) {
|
|
977
|
-
var e;
|
|
978
|
-
n === "3" ? (e = this.second.specificSpecific) != null && e.length || (this.second.specificSpecific = [0]) : this.second.specificSpecific = [];
|
|
979
|
-
},
|
|
980
|
-
setMinute(n) {
|
|
981
|
-
var e;
|
|
982
|
-
n === "3" ? (e = this.minute.specificSpecific) != null && e.length || (this.minute.specificSpecific = [0]) : this.minute.specificSpecific = [];
|
|
983
|
-
},
|
|
984
|
-
setHour(n) {
|
|
985
|
-
var e;
|
|
986
|
-
n === "3" ? (e = this.hour.specificSpecific) != null && e.length || (this.hour.specificSpecific = [0]) : this.hour.specificSpecific = [];
|
|
987
|
-
},
|
|
988
|
-
setMonth(n) {
|
|
989
|
-
var e;
|
|
990
|
-
n === "3" ? (e = this.month.specificSpecific) != null && e.length || (this.month.specificSpecific = [1]) : this.month.specificSpecific = [];
|
|
991
|
-
},
|
|
992
|
-
setYear(n) {
|
|
993
|
-
var e;
|
|
994
|
-
n === "3" ? (e = this.year.specificSpecific) != null && e.length || (this.year.specificSpecific = [(/* @__PURE__ */ new Date()).getFullYear()]) : this.year.specificSpecific = [];
|
|
995
|
-
},
|
|
996
|
-
setDay(n) {
|
|
997
|
-
var e;
|
|
998
|
-
this.week.cronEvery = "", n === "5" ? (e = this.day.specificSpecific) != null && e.length || (this.day.specificSpecific = [1]) : this.day.specificSpecific = [];
|
|
999
|
-
},
|
|
1000
|
-
setWeek(n) {
|
|
1001
|
-
var e;
|
|
1002
|
-
this.day.cronEvery = "", n === "4" ? (e = this.week.specificSpecific) != null && e.length || (this.week.specificSpecific = ["1"]) : this.week.specificSpecific = [];
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
};
|
|
1006
|
-
var Z = function() {
|
|
1007
|
-
var e = this, t = e._self._c;
|
|
1008
|
-
return t("div", { staticClass: "vue-cron" }, [t("ElTabs", { attrs: { type: "border-card" } }, [t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
1009
|
-
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Seconds.name))])];
|
|
1010
|
-
}, proxy: !0 }]) }, [t("ElRadioGroup", { staticClass: "tabBody", on: { input: e.setSecond }, model: { value: e.second.cronEvery, callback: function(s) {
|
|
1011
|
-
e.$set(e.second, "cronEvery", s);
|
|
1012
|
-
}, expression: "second.cronEvery" } }, [t("ElRadio", { attrs: { label: "1" } }, [e._v(e._s(e.text.Seconds.every))]), t("ElRadio", { attrs: { label: "4" } }, [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) {
|
|
1013
|
-
e.$set(e.second, "rangeStart", s);
|
|
1014
|
-
}, 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) {
|
|
1015
|
-
e.$set(e.second, "rangeEnd", s);
|
|
1016
|
-
}, expression: "second.rangeEnd" } }), e._v(" " + e._s(e.text.Seconds.cycle[2] || "") + " ")], 1), t("ElRadio", { attrs: { label: "2" } }, [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) {
|
|
1017
|
-
e.$set(e.second, "incrementStart", s);
|
|
1018
|
-
}, 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) {
|
|
1019
|
-
e.$set(e.second, "incrementIncrement", s);
|
|
1020
|
-
}, expression: "second.incrementIncrement" } }), e._v(" " + e._s(e.text.Seconds.interval[2] || "") + " ")], 1), t("ElRadio", { staticClass: "long", attrs: { label: "3" } }, [e._v(" " + e._s(e.text.Seconds.specific) + " "), t("ElSelect", { attrs: { size: "small", multiple: "" }, model: { value: e.second.specificSpecific, callback: function(s) {
|
|
1021
|
-
e.$set(e.second, "specificSpecific", s);
|
|
1022
|
-
}, expression: "second.specificSpecific" } }, e._l(60, function(s) {
|
|
1023
|
-
return t("ElOption", { key: s, attrs: { value: s - 1 } }, [e._v(e._s(s - 1))]);
|
|
1024
|
-
}), 1)], 1)], 1)], 1), t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
1025
|
-
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Minutes.name))])];
|
|
1026
|
-
}, proxy: !0 }]) }, [t("ElRadioGroup", { staticClass: "tabBody", on: { input: e.setMinute }, model: { value: e.minute.cronEvery, callback: function(s) {
|
|
1027
|
-
e.$set(e.minute, "cronEvery", s);
|
|
1028
|
-
}, expression: "minute.cronEvery" } }, [t("ElRadio", { attrs: { label: "1" } }, [e._v(e._s(e.text.Minutes.every))]), t("ElRadio", { attrs: { label: "4" } }, [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) {
|
|
1029
|
-
e.$set(e.minute, "rangeStart", s);
|
|
1030
|
-
}, 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) {
|
|
1031
|
-
e.$set(e.minute, "rangeEnd", s);
|
|
1032
|
-
}, expression: "minute.rangeEnd" } }), e._v(" " + e._s(e.text.Minutes.cycle[2]) + " ")], 1), t("ElRadio", { attrs: { label: "2" } }, [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) {
|
|
1033
|
-
e.$set(e.minute, "incrementStart", s);
|
|
1034
|
-
}, 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) {
|
|
1035
|
-
e.$set(e.minute, "incrementIncrement", s);
|
|
1036
|
-
}, expression: "minute.incrementIncrement" } }), e._v(" " + e._s(e.text.Minutes.interval[2] || "") + " ")], 1), t("ElRadio", { staticClass: "long", attrs: { label: "3" } }, [e._v(" " + e._s(e.text.Minutes.specific) + " "), t("ElSelect", { attrs: { size: "small", multiple: "" }, model: { value: e.minute.specificSpecific, callback: function(s) {
|
|
1037
|
-
e.$set(e.minute, "specificSpecific", s);
|
|
1038
|
-
}, expression: "minute.specificSpecific" } }, e._l(60, function(s) {
|
|
1039
|
-
return t("ElOption", { key: s, attrs: { value: s - 1 } }, [e._v(e._s(s - 1))]);
|
|
1040
|
-
}), 1)], 1)], 1)], 1), t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
1041
|
-
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Hours.name))])];
|
|
1042
|
-
}, proxy: !0 }]) }, [t("ElRadioGroup", { staticClass: "tabBody", on: { input: e.setHour }, model: { value: e.hour.cronEvery, callback: function(s) {
|
|
1043
|
-
e.$set(e.hour, "cronEvery", s);
|
|
1044
|
-
}, expression: "hour.cronEvery" } }, [t("ElRadio", { attrs: { label: "1" }, model: { value: e.hour.cronEvery, callback: function(s) {
|
|
1045
|
-
e.$set(e.hour, "cronEvery", s);
|
|
1046
|
-
}, expression: "hour.cronEvery" } }, [e._v(e._s(e.text.Hours.every))]), t("ElRadio", { attrs: { label: "4" }, model: { value: e.hour.cronEvery, callback: function(s) {
|
|
1047
|
-
e.$set(e.hour, "cronEvery", s);
|
|
1048
|
-
}, 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) {
|
|
1049
|
-
e.$set(e.hour, "rangeStart", s);
|
|
1050
|
-
}, 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) {
|
|
1051
|
-
e.$set(e.hour, "rangeEnd", s);
|
|
1052
|
-
}, expression: "hour.rangeEnd" } }), e._v(" " + e._s(e.text.Hours.cycle[2]) + " ")], 1), t("ElRadio", { attrs: { label: "2" }, model: { value: e.hour.cronEvery, callback: function(s) {
|
|
1053
|
-
e.$set(e.hour, "cronEvery", s);
|
|
1054
|
-
}, 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) {
|
|
1055
|
-
e.$set(e.hour, "incrementStart", s);
|
|
1056
|
-
}, 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) {
|
|
1057
|
-
e.$set(e.hour, "incrementIncrement", s);
|
|
1058
|
-
}, expression: "hour.incrementIncrement" } }), e._v(" " + e._s(e.text.Hours.interval[2]) + " ")], 1), t("ElRadio", { staticClass: "long", attrs: { label: "3" }, model: { value: e.hour.cronEvery, callback: function(s) {
|
|
1059
|
-
e.$set(e.hour, "cronEvery", s);
|
|
1060
|
-
}, 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) {
|
|
1061
|
-
e.$set(e.hour, "specificSpecific", s);
|
|
1062
|
-
}, expression: "hour.specificSpecific" } }, e._l(24, function(s) {
|
|
1063
|
-
return t("ElOption", { key: s, attrs: { value: s - 1 } }, [e._v(e._s(s - 1))]);
|
|
1064
|
-
}), 1)], 1)], 1)], 1), t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
1065
|
-
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Day.name))])];
|
|
1066
|
-
}, proxy: !0 }]) }, [t("ElRadioGroup", { staticClass: "tabBody", on: { input: e.setDay }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1067
|
-
e.$set(e.day, "cronEvery", s);
|
|
1068
|
-
}, expression: "day.cronEvery" } }, [t("ElRadio", { attrs: { label: "1" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1069
|
-
e.$set(e.day, "cronEvery", s);
|
|
1070
|
-
}, expression: "day.cronEvery" } }, [e._v(e._s(e.text.Day.every))]), t("ElRadio", { attrs: { label: "3" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1071
|
-
e.$set(e.day, "cronEvery", s);
|
|
1072
|
-
}, 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) {
|
|
1073
|
-
e.$set(e.day, "incrementStart", s);
|
|
1074
|
-
}, 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) {
|
|
1075
|
-
e.$set(e.day, "incrementIncrement", s);
|
|
1076
|
-
}, expression: "day.incrementIncrement" } }), e._v(" " + e._s(e.text.Day.intervalDay[2]) + " ")], 1), t("ElRadio", { staticClass: "long", attrs: { label: "5" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1077
|
-
e.$set(e.day, "cronEvery", s);
|
|
1078
|
-
}, 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) {
|
|
1079
|
-
e.$set(e.day, "specificSpecific", s);
|
|
1080
|
-
}, expression: "day.specificSpecific" } }, e._l(31, function(s) {
|
|
1081
|
-
return t("ElOption", { key: s, attrs: { value: s } }, [e._v(e._s(s))]);
|
|
1082
|
-
}), 1)], 1), t("ElRadio", { attrs: { label: "6" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1083
|
-
e.$set(e.day, "cronEvery", s);
|
|
1084
|
-
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.lastDay) + " ")]), t("ElRadio", { attrs: { label: "7" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1085
|
-
e.$set(e.day, "cronEvery", s);
|
|
1086
|
-
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.lastWorkday) + " ")]), t("ElRadio", { attrs: { label: "9" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1087
|
-
e.$set(e.day, "cronEvery", s);
|
|
1088
|
-
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.beforeEndMonth[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 31 }, model: { value: e.day.cronDaysBeforeEomMinus, callback: function(s) {
|
|
1089
|
-
e.$set(e.day, "cronDaysBeforeEomMinus", s);
|
|
1090
|
-
}, expression: "day.cronDaysBeforeEomMinus" } }), e._v(" " + e._s(e.text.Day.beforeEndMonth[1]) + " ")], 1), t("ElRadio", { attrs: { label: "10" }, model: { value: e.day.cronEvery, callback: function(s) {
|
|
1091
|
-
e.$set(e.day, "cronEvery", s);
|
|
1092
|
-
}, expression: "day.cronEvery" } }, [e._v(" " + e._s(e.text.Day.nearestWorkday[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 31 }, model: { value: e.day.cronDaysNearestWeekday, callback: function(s) {
|
|
1093
|
-
e.$set(e.day, "cronDaysNearestWeekday", s);
|
|
1094
|
-
}, expression: "day.cronDaysNearestWeekday" } }), e._v(" " + e._s(e.text.Day.nearestWorkday[1]) + " ")], 1)], 1)], 1), t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
1095
|
-
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Month.name))])];
|
|
1096
|
-
}, proxy: !0 }]) }, [t("ElRadioGroup", { staticClass: "tabBody", on: { input: e.setMonth }, model: { value: e.month.cronEvery, callback: function(s) {
|
|
1097
|
-
e.$set(e.month, "cronEvery", s);
|
|
1098
|
-
}, expression: "month.cronEvery" } }, [t("ElRadio", { attrs: { label: "1" }, model: { value: e.month.cronEvery, callback: function(s) {
|
|
1099
|
-
e.$set(e.month, "cronEvery", s);
|
|
1100
|
-
}, expression: "month.cronEvery" } }, [e._v(e._s(e.text.Month.every))]), t("ElRadio", { attrs: { label: "4" }, model: { value: e.month.cronEvery, callback: function(s) {
|
|
1101
|
-
e.$set(e.month, "cronEvery", s);
|
|
1102
|
-
}, 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) {
|
|
1103
|
-
e.$set(e.month, "rangeStart", s);
|
|
1104
|
-
}, 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) {
|
|
1105
|
-
e.$set(e.month, "rangeEnd", s);
|
|
1106
|
-
}, expression: "month.rangeEnd" } }), e._v(" " + e._s(e.text.Month.cycle[2]) + " ")], 1), t("ElRadio", { attrs: { label: "2" }, model: { value: e.month.cronEvery, callback: function(s) {
|
|
1107
|
-
e.$set(e.month, "cronEvery", s);
|
|
1108
|
-
}, 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) {
|
|
1109
|
-
e.$set(e.month, "incrementStart", s);
|
|
1110
|
-
}, 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) {
|
|
1111
|
-
e.$set(e.month, "incrementIncrement", s);
|
|
1112
|
-
}, expression: "month.incrementIncrement" } }), e._v(" " + e._s(e.text.Month.interval[2]) + " ")], 1), t("ElRadio", { staticClass: "long", attrs: { label: "3" }, model: { value: e.month.cronEvery, callback: function(s) {
|
|
1113
|
-
e.$set(e.month, "cronEvery", s);
|
|
1114
|
-
}, 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) {
|
|
1115
|
-
e.$set(e.month, "specificSpecific", s);
|
|
1116
|
-
}, expression: "month.specificSpecific" } }, e._l(12, function(s) {
|
|
1117
|
-
return t("ElOption", { key: s, attrs: { label: s, value: s } });
|
|
1118
|
-
}), 1)], 1)], 1)], 1), t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
1119
|
-
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Week.name))])];
|
|
1120
|
-
}, proxy: !0 }]) }, [t("ElRadioGroup", { staticClass: "tabBody", on: { input: e.setWeek }, model: { value: e.week.cronEvery, callback: function(s) {
|
|
1121
|
-
e.$set(e.week, "cronEvery", s);
|
|
1122
|
-
}, expression: "week.cronEvery" } }, [t("ElRadio", { attrs: { label: "1" } }, [e._v(e._s(e.text.Week.every))]), t("ElRadio", { attrs: { label: "2" } }, [e._v(" " + e._s(e.text.Week.intervalWeek[0]) + " "), t("ElSelect", { attrs: { size: "small" }, model: { value: e.week.incrementStart, callback: function(s) {
|
|
1123
|
-
e.$set(e.week, "incrementStart", s);
|
|
1124
|
-
}, expression: "week.incrementStart" } }, e._l(e.weekOptions, function(s) {
|
|
1125
|
-
return t("ElOption", { key: s.value, attrs: { label: s.label, value: s.value } });
|
|
1126
|
-
}), 1), e._v(" " + e._s(e.text.Week.intervalWeek[1]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 7 }, model: { value: e.week.incrementIncrement, callback: function(s) {
|
|
1127
|
-
e.$set(e.week, "incrementIncrement", s);
|
|
1128
|
-
}, expression: "week.incrementIncrement" } }), e._v(" " + e._s(e.text.Week.intervalWeek[2]) + " ")], 1), t("ElRadio", { staticClass: "long", attrs: { label: "4" } }, [e._v(" " + e._s(e.text.Week.specificWeek) + " "), t("ElSelect", { attrs: { size: "small", multiple: "" }, model: { value: e.week.specificSpecific, callback: function(s) {
|
|
1129
|
-
e.$set(e.week, "specificSpecific", s);
|
|
1130
|
-
}, expression: "week.specificSpecific" } }, e._l(e.weekOptions, function(s) {
|
|
1131
|
-
return t("ElOption", { key: s.value, attrs: { label: s.label, value: s.value } });
|
|
1132
|
-
}), 1)], 1), t("ElRadio", { attrs: { label: "8" } }, [e._v(" " + e._s(e.text.Week.lastWeek[0]) + " "), t("ElSelect", { attrs: { size: "small" }, model: { value: e.week.cronLastSpecificDomDay, callback: function(s) {
|
|
1133
|
-
e.$set(e.week, "cronLastSpecificDomDay", s);
|
|
1134
|
-
}, expression: "week.cronLastSpecificDomDay" } }, e._l(e.weekOptions, function(s) {
|
|
1135
|
-
return t("ElOption", { key: s.value, attrs: { value: s.value, label: s.label } });
|
|
1136
|
-
}), 1)], 1), t("ElRadio", { attrs: { label: "11" } }, [e._v(" " + e._s(e.text.Week.someWeekday[0]) + " "), t("ElInputNumber", { attrs: { size: "small", min: 1, max: 5 }, model: { value: e.week.cronNthDayNth, callback: function(s) {
|
|
1137
|
-
e.$set(e.week, "cronNthDayNth", s);
|
|
1138
|
-
}, expression: "week.cronNthDayNth" } }), e._v(" " + e._s(e.text.Week.someWeekday[1]) + " "), t("ElSelect", { attrs: { size: "small" }, model: { value: e.week.cronNthDayDay, callback: function(s) {
|
|
1139
|
-
e.$set(e.week, "cronNthDayDay", s);
|
|
1140
|
-
}, expression: "week.cronNthDayDay" } }, e._l(e.weekOptions, function(s) {
|
|
1141
|
-
return t("ElOption", { key: s.value, attrs: { label: s.label, value: s.value } });
|
|
1142
|
-
}), 1)], 1)], 1)], 1), t("ElTabPane", { scopedSlots: e._u([{ key: "label", fn: function() {
|
|
1143
|
-
return [t("span", [t("i", { staticClass: "el-icon-date" }), e._v(" " + e._s(e.text.Year.name))])];
|
|
1144
|
-
}, proxy: !0 }]) }, [t("ElRadioGroup", { staticClass: "tabBody", on: { input: e.setYear }, model: { value: e.year.cronEvery, callback: function(s) {
|
|
1145
|
-
e.$set(e.year, "cronEvery", s);
|
|
1146
|
-
}, expression: "year.cronEvery" } }, [t("ElRadio", { attrs: { label: "1" }, model: { value: e.year.cronEvery, callback: function(s) {
|
|
1147
|
-
e.$set(e.year, "cronEvery", s);
|
|
1148
|
-
}, expression: "year.cronEvery" } }, [e._v(e._s(e.text.Year.every))]), t("ElRadio", { attrs: { label: "4" }, model: { value: e.year.cronEvery, callback: function(s) {
|
|
1149
|
-
e.$set(e.year, "cronEvery", s);
|
|
1150
|
-
}, 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) {
|
|
1151
|
-
e.$set(e.year, "rangeStart", s);
|
|
1152
|
-
}, 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) {
|
|
1153
|
-
e.$set(e.year, "rangeEnd", s);
|
|
1154
|
-
}, expression: "year.rangeEnd" } }), e._v(" " + e._s(e.text.Year.cycle[2]) + " ")], 1), t("ElRadio", { attrs: { label: "2" }, model: { value: e.year.cronEvery, callback: function(s) {
|
|
1155
|
-
e.$set(e.year, "cronEvery", s);
|
|
1156
|
-
}, 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) {
|
|
1157
|
-
e.$set(e.year, "incrementStart", s);
|
|
1158
|
-
}, 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) {
|
|
1159
|
-
e.$set(e.year, "incrementIncrement", s);
|
|
1160
|
-
}, expression: "year.incrementIncrement" } }), e._v(" " + e._s(e.text.Year.interval[2]) + " ")], 1), t("ElRadio", { staticClass: "long", attrs: { label: "3" }, model: { value: e.year.cronEvery, callback: function(s) {
|
|
1161
|
-
e.$set(e.year, "cronEvery", s);
|
|
1162
|
-
}, 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) {
|
|
1163
|
-
e.$set(e.year, "specificSpecific", s);
|
|
1164
|
-
}, expression: "year.specificSpecific" } }, e._l(100, function(s) {
|
|
1165
|
-
return t("ElOption", { key: s, attrs: { label: `${2017 + s}`, value: 2017 + s } });
|
|
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) {
|
|
1167
|
-
return t("ul", { key: s, staticStyle: { "padding-left": "18px" } }, [t("li", { staticStyle: { "margin-bottom": "4px" } }, [e._v(e._s(s))])]);
|
|
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);
|
|
1169
|
-
}, J = [], K = /* @__PURE__ */ L(
|
|
1170
|
-
Q,
|
|
1171
|
-
Z,
|
|
1172
|
-
J,
|
|
1173
|
-
!1,
|
|
1174
|
-
null,
|
|
1175
|
-
null
|
|
1176
|
-
);
|
|
1177
|
-
const te = K.exports;
|
|
1178
|
-
export {
|
|
1179
|
-
te as default
|
|
1180
|
-
};
|
|
1
|
+
import { t as e } from "../chunks/VueCron.GfjodnyM.mjs";
|
|
2
|
+
export { e as default };
|