@lm_fe/components_m 0.1.201 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (621) hide show
  1. package/README.md +0 -0
  2. package/dist/BaseEditPanel/BaseEditPanelFormFC.d.ts +3 -0
  3. package/dist/BaseEditPanel/PanelWithChildFC.d.ts +10 -15
  4. package/dist/BaseList/index.d.ts +2 -2
  5. package/dist/BaseList/methods/index.d.ts +1 -4
  6. package/dist/BaseListOld/methods/index.d.ts +1 -5
  7. package/dist/BaseModalForm/DynamicForm.d.ts +0 -24
  8. package/dist/BaseModalForm/PatientList/index.d.ts +2 -2
  9. package/dist/BaseModalForm/index.d.ts +2 -2
  10. package/dist/BusinessComponents/BloodPressure/index.d.ts +2 -1
  11. package/dist/BusinessComponents/DiagnosisListInduced/index.d.ts +2 -1
  12. package/dist/BusinessComponents/DiagnosisListv2/template/index.d.ts +1 -2
  13. package/dist/BusinessComponents/HighriskGrade/index.d.ts +1 -1
  14. package/dist/BusinessComponents/HighriskSign/index.d.ts +1 -1
  15. package/dist/BusinessComponents/InspectionResultTextarea/utils.d.ts +0 -8
  16. package/dist/BusinessComponents/LaborProcess/index.d.ts +3 -3
  17. package/dist/BusinessComponents/NurseChildren/index.d.ts +5 -5
  18. package/dist/BusinessComponents/NurseChildren2/index.d.ts +1 -2
  19. package/dist/BusinessComponents/NursingFetusv2/index.d.ts +1 -2
  20. package/dist/BusinessComponents/NursingFetusv3/index.d.ts +3 -3
  21. package/dist/BusinessComponents/PregnancyHistory/config/index-table.d.ts +1 -1
  22. package/dist/BusinessComponents/ResultTextarea/index copy.d.ts +13 -0
  23. package/dist/BusinessComponents/ResultTextarea/index.d.ts +1 -1
  24. package/dist/BusinessComponents/ResultTextarea/utils.d.ts +0 -8
  25. package/dist/BusinessComponents/TemplateTexDeathclassification1/index.d.ts +2 -1
  26. package/dist/BusinessComponents/TemplateTextareav2/components/TemplateSelect.d.ts +2 -1
  27. package/dist/BusinessComponents/TreatmentProgram/TreatmentProgramTable/index.d.ts +3 -4
  28. package/dist/BusinessComponents/UltrosoundResultTextarea/utils.d.ts +0 -8
  29. package/dist/ConfigComponents/CheckboxWithInput/index.d.ts +2 -1
  30. package/dist/ConfigComponents/InputWithRange/index.d.ts +2 -1
  31. package/dist/ConfigComponents/NeonatalCareRecordTable/table/default.d.ts +3 -3
  32. package/dist/ConfigComponents/NeonatalCareRecordTable/table/gysy.d.ts +11 -11
  33. package/dist/ConfigComponents/NeonatalCareRecordTable/table/indx.d.ts +14 -14
  34. package/dist/ConfigComponents/NeonatalScaleExamination/table.d.ts +4 -4
  35. package/dist/ConfigComponents/NormalNursingTable/table.d.ts +1 -1
  36. package/dist/ConfigComponents/ObserMagnesiumsulphateTable/table.d.ts +3 -3
  37. package/dist/ConfigComponents/PastDeliveryNursingTable/table.d.ts +6 -6
  38. package/dist/ConfigComponents/PreDeliverNursingTable/table/default.d.ts +4 -4
  39. package/dist/ConfigComponents/SpecialNursingTable/table.d.ts +2 -2
  40. package/dist/FU_components/ArrayInput/index copy.d.ts +4 -0
  41. package/dist/FU_components/ArrayInput/index.d.ts +1 -4
  42. package/dist/FU_components/ArrayInput/types.d.ts +8 -9
  43. package/dist/FU_components/ArrayPanel/Display.d.ts +0 -1
  44. package/dist/FU_components/ArrayPanel/Inner.d.ts +5 -3
  45. package/dist/FU_components/CommonFormTabs/index.d.ts +1 -1
  46. package/dist/FU_components/CommonFormTabs/types.d.ts +4 -2
  47. package/dist/FU_components/CommonFormTabs/utils.d.ts +4 -0
  48. package/dist/FU_components/DateRange/index copy.d.ts +7 -0
  49. package/dist/FU_components/DateRange/index.d.ts +1 -7
  50. package/dist/FU_components/DateTimeInput/Inner.d.ts +2 -0
  51. package/dist/FU_components/DateTimeInput/index.d.ts +3 -1
  52. package/dist/FU_components/FormSection/FormSectionForm.d.ts +4 -0
  53. package/dist/FU_components/FormSection/RenderFormSectionComponent.d.ts +3 -3
  54. package/dist/FU_components/FormSection/form_control.d.ts +9 -0
  55. package/dist/FU_components/FormSection/helper.d.ts +7 -7
  56. package/dist/FU_components/FormSection/types.d.ts +4 -1
  57. package/dist/FU_components/FormSection/use_chrono.d.ts +17 -2
  58. package/dist/FU_components/HbvdnaInput/index.d.ts +2 -1
  59. package/dist/FU_components/HighriskGradeColorSpan/index.d.ts +1 -1
  60. package/dist/FU_components/IdNOButton/index copy.d.ts +1 -1
  61. package/dist/FU_components/MchcDriverStatus/Inner.d.ts +1 -1
  62. package/dist/FU_components/MyAutoComplete/index copy.d.ts +4 -0
  63. package/dist/FU_components/MyAutoComplete/index.d.ts +1 -4
  64. package/dist/FU_components/MyAutoComplete/types.d.ts +1 -1
  65. package/dist/FU_components/MyBaseList/methods/index.d.ts +1 -1
  66. package/dist/FU_components/MyBaseTable/strategies.d.ts +0 -5
  67. package/dist/FU_components/MyButton/{index.d.ts → index copy.d.ts } +1 -1
  68. package/dist/FU_components/MyEditTable/Inner.d.ts +4 -0
  69. package/dist/FU_components/MyEditTable/index.d.ts +2 -19
  70. package/dist/FU_components/MyEditTable/types.d.ts +16 -0
  71. package/dist/FU_components/MyReferralOrganizationSelect/index.d.ts +1 -1
  72. package/dist/FU_components/MySearchSelect/index.d.ts +2 -1
  73. package/dist/FU_components/MySelect/index.d.ts +1 -8
  74. package/dist/FU_components/MySelect/types.d.ts +3 -5
  75. package/dist/FU_components/OkButton/index.d.ts +2 -7
  76. package/dist/FU_components/PressureInput/index.d.ts +4 -0
  77. package/dist/FU_components/ResultTextarea/index.d.ts +19 -0
  78. package/dist/FU_components/index.d.ts +1 -3
  79. package/dist/FU_components/types.d.ts +1 -12
  80. package/dist/GeneralComponents/CaseTemplete/Inner.d.ts +4 -1
  81. package/dist/GeneralComponents/CheckboxGroupObject/index.d.ts +1 -1
  82. package/dist/GeneralComponents/CheckboxWithInput_gold/components.d.ts +200 -45
  83. package/dist/GeneralComponents/CheckboxWithInput_gold/index.d.ts +1 -5
  84. package/dist/GeneralComponents/CheckboxWithInput_gold/types.d.ts +1 -1
  85. package/dist/GeneralComponents/CheckboxWithInput_gold/utils.d.ts +0 -4
  86. package/dist/GeneralComponents/CustomIcon/index.d.ts +0 -1
  87. package/dist/GeneralComponents/DatePicker/Inner.d.ts +1 -1
  88. package/dist/GeneralComponents/DatePicker/index.d.ts +2 -2
  89. package/dist/GeneralComponents/DatePicker/utils.d.ts +35 -0
  90. package/dist/GeneralComponents/EditInTable/EditInTable_Inner copy.d.ts +3 -24
  91. package/dist/GeneralComponents/EditInTable/components.d.ts +1 -1
  92. package/dist/GeneralComponents/EditInTable/index.d.ts +2 -2
  93. package/dist/GeneralComponents/EditInTable/utils.d.ts +6 -1
  94. package/dist/GeneralComponents/ImageUploadPreview/Inner.d.ts +2 -1
  95. package/dist/GeneralComponents/ImageUploadPreview/index.d.ts +2 -1
  96. package/dist/GeneralComponents/InputNumber/index.d.ts +4 -4
  97. package/dist/GeneralComponents/MobileEditor/Inner.d.ts +6 -9
  98. package/dist/GeneralComponents/MobileEditor/index.d.ts +3 -2
  99. package/dist/GeneralComponents/UploadFile/index.d.ts +9 -1
  100. package/dist/GeneralComponents/UploadFileUrlEdit/index.d.ts +2 -1
  101. package/dist/MyForm/components/Base/CheckboxWithExtra.d.ts +3 -2
  102. package/dist/MyForm/components/MyButton/index.d.ts +1 -1
  103. package/dist/MyForm/components/MySelect/DefaultSelect.d.ts +3 -2
  104. package/dist/MyForm/components/MyTable/index.d.ts +1 -1
  105. package/dist/MyForm/components/MyTable/index2.d.ts +1 -1
  106. package/dist/MyForm/components/_MyFormComponent.d.ts +252 -0
  107. package/dist/MyForm/components/business/NormalButton/index.d.ts +1 -1
  108. package/dist/MyForm/components/business/PdProcedure/config/table.d.ts +1 -1
  109. package/dist/MyForm/components/business/PregnancyHistory/MyForm_Business_PregnancyHistory.d.ts +1 -1
  110. package/dist/MyForm/components/business/PregnancyHistory/config.d.ts +37 -9
  111. package/dist/MyForm/components/business/TextareaWithBtn/index.d.ts +4 -7
  112. package/dist/MyForm/form_new.d.ts +20 -1
  113. package/dist/a_chunks/.root.js +73 -130
  114. package/dist/a_chunks/.root10.js +124 -319
  115. package/dist/a_chunks/.root100.js +22 -393
  116. package/dist/a_chunks/.root101.js +83 -987
  117. package/dist/a_chunks/.root102.js +13 -278
  118. package/dist/a_chunks/.root103.js +83 -128
  119. package/dist/a_chunks/.root104.js +64 -277
  120. package/dist/a_chunks/.root105.js +133 -492
  121. package/dist/a_chunks/.root106.js +45 -106
  122. package/dist/a_chunks/.root107.js +43 -210
  123. package/dist/a_chunks/.root108.js +71 -174
  124. package/dist/a_chunks/.root109.js +38 -910
  125. package/dist/a_chunks/.root11.js +55 -89
  126. package/dist/a_chunks/.root110.js +46 -939
  127. package/dist/a_chunks/.root111.js +188 -169
  128. package/dist/a_chunks/.root112.js +16 -414
  129. package/dist/a_chunks/.root113.js +23 -257
  130. package/dist/a_chunks/.root114.js +1994 -163
  131. package/dist/a_chunks/.root115.js +33 -343
  132. package/dist/a_chunks/.root116.js +67 -150
  133. package/dist/a_chunks/.root117.js +35 -124
  134. package/dist/a_chunks/.root118.js +49 -523
  135. package/dist/a_chunks/.root119.js +58 -580
  136. package/dist/a_chunks/.root12.js +133 -117
  137. package/dist/a_chunks/.root120.js +62 -277
  138. package/dist/a_chunks/.root121.js +75 -512
  139. package/dist/a_chunks/.root122.js +75 -633
  140. package/dist/a_chunks/.root123.js +29 -669
  141. package/dist/a_chunks/.root124.js +57 -273
  142. package/dist/a_chunks/.root125.js +107 -200
  143. package/dist/a_chunks/.root126.js +179 -81
  144. package/dist/a_chunks/.root127.js +85 -792
  145. package/dist/a_chunks/.root128.js +108 -260
  146. package/dist/a_chunks/.root129.js +172 -1085
  147. package/dist/a_chunks/.root13.js +284 -119
  148. package/dist/a_chunks/.root130.js +200 -532
  149. package/dist/a_chunks/.root131.js +2 -242
  150. package/dist/a_chunks/.root132.js +185 -131
  151. package/dist/a_chunks/.root133.js +324 -180
  152. package/dist/a_chunks/.root134.js +13 -409
  153. package/dist/a_chunks/.root135.js +160 -1135
  154. package/dist/a_chunks/.root14.js +251 -316
  155. package/dist/a_chunks/.root15.js +58 -266
  156. package/dist/a_chunks/.root16.js +74 -240
  157. package/dist/a_chunks/.root17.js +38 -127
  158. package/dist/a_chunks/.root18.js +87 -148
  159. package/dist/a_chunks/.root19.js +182 -109
  160. package/dist/a_chunks/.root2.js +97 -163
  161. package/dist/a_chunks/.root20.js +237 -157
  162. package/dist/a_chunks/.root21.js +19 -258
  163. package/dist/a_chunks/.root22.js +20 -320
  164. package/dist/a_chunks/.root23.js +197 -20
  165. package/dist/a_chunks/.root24.js +190 -89
  166. package/dist/a_chunks/.root25.js +73 -196
  167. package/dist/a_chunks/.root26.js +102 -257
  168. package/dist/a_chunks/.root27.js +69 -142
  169. package/dist/a_chunks/.root28.js +79 -375
  170. package/dist/a_chunks/.root29.js +34 -542
  171. package/dist/a_chunks/.root3.js +103 -170
  172. package/dist/a_chunks/.root30.js +19 -2226
  173. package/dist/a_chunks/.root31.js +50 -279
  174. package/dist/a_chunks/.root32.js +49 -81
  175. package/dist/a_chunks/.root33.js +49 -84
  176. package/dist/a_chunks/.root34.js +200 -223
  177. package/dist/a_chunks/.root35.js +112 -279
  178. package/dist/a_chunks/.root36.js +136 -158
  179. package/dist/a_chunks/.root37.js +19 -146
  180. package/dist/a_chunks/.root38.js +101 -78
  181. package/dist/a_chunks/.root39.js +581 -34
  182. package/dist/a_chunks/.root4.js +635 -1056
  183. package/dist/a_chunks/.root40.js +25 -268
  184. package/dist/a_chunks/.root41.js +312 -18
  185. package/dist/a_chunks/.root42.js +138 -192
  186. package/dist/a_chunks/.root43.js +62 -128
  187. package/dist/a_chunks/.root44.js +264 -36
  188. package/dist/a_chunks/.root45.js +257 -20
  189. package/dist/a_chunks/.root46.js +2274 -47
  190. package/dist/a_chunks/.root47.js +490 -227
  191. package/dist/a_chunks/.root48.js +190 -160
  192. package/dist/a_chunks/.root49.js +168 -74
  193. package/dist/a_chunks/.root5.js +98 -349
  194. package/dist/a_chunks/.root50.js +146 -190
  195. package/dist/a_chunks/.root51.js +379 -305
  196. package/dist/a_chunks/.root52.js +237 -101
  197. package/dist/a_chunks/.root53.js +29 -296
  198. package/dist/a_chunks/.root54.js +69 -23
  199. package/dist/a_chunks/.root55.js +71 -660
  200. package/dist/a_chunks/.root56.js +356 -3320
  201. package/dist/a_chunks/.root57.js +206 -544
  202. package/dist/a_chunks/.root58.js +275 -185
  203. package/dist/a_chunks/.root59.js +150 -147
  204. package/dist/a_chunks/.root6.js +1003 -188
  205. package/dist/a_chunks/.root60.js +132 -882
  206. package/dist/a_chunks/.root61.js +288 -98
  207. package/dist/a_chunks/.root62.js +293 -213
  208. package/dist/a_chunks/.root63.js +299 -294
  209. package/dist/a_chunks/.root64.js +295 -450
  210. package/dist/a_chunks/.root65.js +924 -458
  211. package/dist/a_chunks/.root66.js +58 -1053
  212. package/dist/a_chunks/.root67.js +813 -255
  213. package/dist/a_chunks/.root68.js +892 -192
  214. package/dist/a_chunks/.root69.js +80 -1070
  215. package/dist/a_chunks/.root7.js +269 -725
  216. package/dist/a_chunks/.root70.js +333 -830
  217. package/dist/a_chunks/.root71.js +155 -376
  218. package/dist/a_chunks/.root72.js +245 -204
  219. package/dist/a_chunks/.root73.js +76 -148
  220. package/dist/a_chunks/.root74.js +54 -344
  221. package/dist/a_chunks/.root75.js +610 -530
  222. package/dist/a_chunks/.root76.js +34 -533
  223. package/dist/a_chunks/.root77.js +140 -328
  224. package/dist/a_chunks/.root78.js +472 -286
  225. package/dist/a_chunks/.root79.js +199 -2292
  226. package/dist/a_chunks/.root8.js +128 -163
  227. package/dist/a_chunks/.root80.js +476 -168
  228. package/dist/a_chunks/.root81.js +530 -535
  229. package/dist/a_chunks/.root82.js +565 -248
  230. package/dist/a_chunks/.root83.js +126 -242
  231. package/dist/a_chunks/.root84.js +14 -241
  232. package/dist/a_chunks/.root85.js +678 -430
  233. package/dist/a_chunks/.root86.js +161 -317
  234. package/dist/a_chunks/.root87.js +455 -88
  235. package/dist/a_chunks/.root88.js +175 -98
  236. package/dist/a_chunks/.root89.js +63 -237
  237. package/dist/a_chunks/.root9.js +93 -675
  238. package/dist/a_chunks/.root90.js +108 -348
  239. package/dist/a_chunks/.root91.js +331 -124
  240. package/dist/a_chunks/.root92.js +438 -139
  241. package/dist/a_chunks/.root93.js +102 -434
  242. package/dist/a_chunks/.root94.js +821 -346
  243. package/dist/a_chunks/.root95.js +39 -214
  244. package/dist/a_chunks/.root96.js +57 -349
  245. package/dist/a_chunks/.root97.js +274 -510
  246. package/dist/a_chunks/.root98.js +22 -366
  247. package/dist/a_chunks/.root99.js +57 -375
  248. package/dist/a_chunks/Inner.js +149 -262
  249. package/dist/a_chunks/TableEditableCell.js +12 -10
  250. package/dist/a_chunks/TemplateModal.js +111 -132
  251. package/dist/a_chunks/deathclassification.js +17 -33
  252. package/dist/a_chunks/index.js +2930 -5417
  253. package/dist/a_chunks/index2.js +2 -4
  254. package/dist/doctor-end/index.d.ts +0 -2
  255. package/dist/index.d.ts +3 -8
  256. package/dist/index.js +8 -77
  257. package/dist/layout/header.d.ts +0 -1
  258. package/dist/modals/index.d.ts +1 -16
  259. package/dist/modals/meta.d.ts +1 -16
  260. package/dist/newly-component/hepatitis-new-baby/components/Form.d.ts +2 -1
  261. package/dist/newly-component/hepatitis-new-baby/index.d.ts +2 -1
  262. package/dist/selects/NormalSelect/index.d.ts +1 -1
  263. package/dist/selects/SelectWithNo/index copy.d.ts +2 -0
  264. package/dist/selects/SelectWithNo/index.d.ts +2 -2
  265. package/dist/utils/InterceptComponent.d.ts +1 -0
  266. package/dist/utils/dictionary.d.ts +2 -13
  267. package/dist/utils/format.d.ts +4 -4
  268. package/dist/utils/index.d.ts +1 -1
  269. package/dist/utils/useMarshal.d.ts +3 -3
  270. package/dist/utils/utils.d.ts +0 -4
  271. package/package.json +32 -19
  272. package/dist/ConfigComponents/OxytocinNursingTable/EditInTable/BaseTable.d.ts +0 -5
  273. package/dist/ConfigComponents/OxytocinNursingTable/EditInTable/EditInTableNoForm.d.ts +0 -51
  274. package/dist/ConfigComponents/OxytocinNursingTable/EditInTable/index.d.ts +0 -49
  275. package/dist/ConfigComponents/OxytocinNursingTable/index.d.ts +0 -2
  276. package/dist/ConfigComponents/OxytocinNursingTable/table/default.d.ts +0 -255
  277. package/dist/ConfigComponents/OxytocinNursingTable/table/gysy.d.ts +0 -234
  278. package/dist/ConfigComponents/OxytocinNursingTable/table/index.d.ts +0 -3
  279. package/dist/ConfigComponents/RevertEditInTable/index.d.ts +0 -1
  280. package/dist/FU_components/FormSection/utils.d.ts +0 -81
  281. package/dist/FU_components/SimpleForm/components/TabForm/index.d.ts +0 -14
  282. package/dist/FU_components/SimpleForm/components/extra/Custom.d.ts +0 -5
  283. package/dist/FU_components/SimpleForm/components/extra/SimpleSelect.d.ts +0 -6
  284. package/dist/FU_components/SimpleForm/index.d.ts +0 -45
  285. package/dist/FU_components/SimpleForm/types/help.d.ts +0 -3
  286. package/dist/FU_components/SimpleForm/types/lmTypes.d.ts +0 -85
  287. package/dist/FU_components/SimpleForm/types/metaTypes.d.ts +0 -28
  288. package/dist/GeneralComponents/CustomFormField/index.d.ts +0 -12
  289. package/dist/GeneralComponents/EditInTable/EditInTable_Inner copy 2.d.ts +0 -24
  290. package/dist/GeneralComponents/IconSelect/index.d.ts +0 -5
  291. package/dist/GeneralComponents/SelectTable/index.d.ts +0 -44
  292. package/dist/GeneralComponents/SoDiaoEditor/config.d.ts +0 -44
  293. package/dist/GeneralComponents/SoDiaoEditor/index.d.ts +0 -11
  294. package/dist/a_chunks/.root.js.map +0 -1
  295. package/dist/a_chunks/.root10.js.map +0 -1
  296. package/dist/a_chunks/.root100.js.map +0 -1
  297. package/dist/a_chunks/.root101.js.map +0 -1
  298. package/dist/a_chunks/.root102.js.map +0 -1
  299. package/dist/a_chunks/.root103.js.map +0 -1
  300. package/dist/a_chunks/.root104.js.map +0 -1
  301. package/dist/a_chunks/.root105.js.map +0 -1
  302. package/dist/a_chunks/.root106.js.map +0 -1
  303. package/dist/a_chunks/.root107.js.map +0 -1
  304. package/dist/a_chunks/.root108.js.map +0 -1
  305. package/dist/a_chunks/.root109.js.map +0 -1
  306. package/dist/a_chunks/.root11.js.map +0 -1
  307. package/dist/a_chunks/.root110.js.map +0 -1
  308. package/dist/a_chunks/.root111.js.map +0 -1
  309. package/dist/a_chunks/.root112.js.map +0 -1
  310. package/dist/a_chunks/.root113.js.map +0 -1
  311. package/dist/a_chunks/.root114.js.map +0 -1
  312. package/dist/a_chunks/.root115.js.map +0 -1
  313. package/dist/a_chunks/.root116.js.map +0 -1
  314. package/dist/a_chunks/.root117.js.map +0 -1
  315. package/dist/a_chunks/.root118.js.map +0 -1
  316. package/dist/a_chunks/.root119.js.map +0 -1
  317. package/dist/a_chunks/.root12.js.map +0 -1
  318. package/dist/a_chunks/.root120.js.map +0 -1
  319. package/dist/a_chunks/.root121.js.map +0 -1
  320. package/dist/a_chunks/.root122.js.map +0 -1
  321. package/dist/a_chunks/.root123.js.map +0 -1
  322. package/dist/a_chunks/.root124.js.map +0 -1
  323. package/dist/a_chunks/.root125.js.map +0 -1
  324. package/dist/a_chunks/.root126.js.map +0 -1
  325. package/dist/a_chunks/.root127.js.map +0 -1
  326. package/dist/a_chunks/.root128.js.map +0 -1
  327. package/dist/a_chunks/.root129.js.map +0 -1
  328. package/dist/a_chunks/.root13.js.map +0 -1
  329. package/dist/a_chunks/.root130.js.map +0 -1
  330. package/dist/a_chunks/.root131.js.map +0 -1
  331. package/dist/a_chunks/.root132.js.map +0 -1
  332. package/dist/a_chunks/.root133.js.map +0 -1
  333. package/dist/a_chunks/.root134.js.map +0 -1
  334. package/dist/a_chunks/.root135.js.map +0 -1
  335. package/dist/a_chunks/.root136.js +0 -507
  336. package/dist/a_chunks/.root136.js.map +0 -1
  337. package/dist/a_chunks/.root137.js +0 -570
  338. package/dist/a_chunks/.root137.js.map +0 -1
  339. package/dist/a_chunks/.root138.js +0 -197
  340. package/dist/a_chunks/.root138.js.map +0 -1
  341. package/dist/a_chunks/.root139.js +0 -903
  342. package/dist/a_chunks/.root139.js.map +0 -1
  343. package/dist/a_chunks/.root14.js.map +0 -1
  344. package/dist/a_chunks/.root140.js +0 -267
  345. package/dist/a_chunks/.root140.js.map +0 -1
  346. package/dist/a_chunks/.root141.js +0 -179
  347. package/dist/a_chunks/.root141.js.map +0 -1
  348. package/dist/a_chunks/.root142.js +0 -114
  349. package/dist/a_chunks/.root142.js.map +0 -1
  350. package/dist/a_chunks/.root143.js +0 -133
  351. package/dist/a_chunks/.root143.js.map +0 -1
  352. package/dist/a_chunks/.root144.js +0 -351
  353. package/dist/a_chunks/.root144.js.map +0 -1
  354. package/dist/a_chunks/.root145.js +0 -99
  355. package/dist/a_chunks/.root145.js.map +0 -1
  356. package/dist/a_chunks/.root146.js +0 -136
  357. package/dist/a_chunks/.root146.js.map +0 -1
  358. package/dist/a_chunks/.root147.js +0 -445
  359. package/dist/a_chunks/.root147.js.map +0 -1
  360. package/dist/a_chunks/.root148.js +0 -618
  361. package/dist/a_chunks/.root148.js.map +0 -1
  362. package/dist/a_chunks/.root149.js +0 -329
  363. package/dist/a_chunks/.root149.js.map +0 -1
  364. package/dist/a_chunks/.root15.js.map +0 -1
  365. package/dist/a_chunks/.root150.js +0 -381
  366. package/dist/a_chunks/.root150.js.map +0 -1
  367. package/dist/a_chunks/.root151.js +0 -299
  368. package/dist/a_chunks/.root151.js.map +0 -1
  369. package/dist/a_chunks/.root152.js +0 -105
  370. package/dist/a_chunks/.root152.js.map +0 -1
  371. package/dist/a_chunks/.root153.js +0 -117
  372. package/dist/a_chunks/.root153.js.map +0 -1
  373. package/dist/a_chunks/.root154.js +0 -101
  374. package/dist/a_chunks/.root154.js.map +0 -1
  375. package/dist/a_chunks/.root155.js +0 -279
  376. package/dist/a_chunks/.root155.js.map +0 -1
  377. package/dist/a_chunks/.root156.js +0 -91
  378. package/dist/a_chunks/.root156.js.map +0 -1
  379. package/dist/a_chunks/.root157.js +0 -154
  380. package/dist/a_chunks/.root157.js.map +0 -1
  381. package/dist/a_chunks/.root158.js +0 -213
  382. package/dist/a_chunks/.root158.js.map +0 -1
  383. package/dist/a_chunks/.root159.js +0 -122
  384. package/dist/a_chunks/.root159.js.map +0 -1
  385. package/dist/a_chunks/.root16.js.map +0 -1
  386. package/dist/a_chunks/.root160.js +0 -123
  387. package/dist/a_chunks/.root160.js.map +0 -1
  388. package/dist/a_chunks/.root161.js +0 -45
  389. package/dist/a_chunks/.root161.js.map +0 -1
  390. package/dist/a_chunks/.root162.js +0 -46
  391. package/dist/a_chunks/.root162.js.map +0 -1
  392. package/dist/a_chunks/.root163.js +0 -77
  393. package/dist/a_chunks/.root163.js.map +0 -1
  394. package/dist/a_chunks/.root164.js +0 -206
  395. package/dist/a_chunks/.root164.js.map +0 -1
  396. package/dist/a_chunks/.root165.js +0 -108
  397. package/dist/a_chunks/.root165.js.map +0 -1
  398. package/dist/a_chunks/.root166.js +0 -108
  399. package/dist/a_chunks/.root166.js.map +0 -1
  400. package/dist/a_chunks/.root167.js +0 -2074
  401. package/dist/a_chunks/.root167.js.map +0 -1
  402. package/dist/a_chunks/.root168.js +0 -112
  403. package/dist/a_chunks/.root168.js.map +0 -1
  404. package/dist/a_chunks/.root169.js +0 -147
  405. package/dist/a_chunks/.root169.js.map +0 -1
  406. package/dist/a_chunks/.root17.js.map +0 -1
  407. package/dist/a_chunks/.root170.js +0 -114
  408. package/dist/a_chunks/.root170.js.map +0 -1
  409. package/dist/a_chunks/.root171.js +0 -59
  410. package/dist/a_chunks/.root171.js.map +0 -1
  411. package/dist/a_chunks/.root172.js +0 -69
  412. package/dist/a_chunks/.root172.js.map +0 -1
  413. package/dist/a_chunks/.root173.js +0 -146
  414. package/dist/a_chunks/.root173.js.map +0 -1
  415. package/dist/a_chunks/.root174.js +0 -112
  416. package/dist/a_chunks/.root174.js.map +0 -1
  417. package/dist/a_chunks/.root175.js +0 -113
  418. package/dist/a_chunks/.root175.js.map +0 -1
  419. package/dist/a_chunks/.root176.js +0 -109
  420. package/dist/a_chunks/.root176.js.map +0 -1
  421. package/dist/a_chunks/.root177.js +0 -129
  422. package/dist/a_chunks/.root177.js.map +0 -1
  423. package/dist/a_chunks/.root178.js +0 -182
  424. package/dist/a_chunks/.root178.js.map +0 -1
  425. package/dist/a_chunks/.root179.js +0 -253
  426. package/dist/a_chunks/.root179.js.map +0 -1
  427. package/dist/a_chunks/.root18.js.map +0 -1
  428. package/dist/a_chunks/.root180.js +0 -458
  429. package/dist/a_chunks/.root180.js.map +0 -1
  430. package/dist/a_chunks/.root181.js +0 -1511
  431. package/dist/a_chunks/.root181.js.map +0 -1
  432. package/dist/a_chunks/.root182.js +0 -91
  433. package/dist/a_chunks/.root182.js.map +0 -1
  434. package/dist/a_chunks/.root183.js +0 -115
  435. package/dist/a_chunks/.root183.js.map +0 -1
  436. package/dist/a_chunks/.root184.js +0 -1202
  437. package/dist/a_chunks/.root184.js.map +0 -1
  438. package/dist/a_chunks/.root185.js +0 -83
  439. package/dist/a_chunks/.root185.js.map +0 -1
  440. package/dist/a_chunks/.root186.js +0 -267
  441. package/dist/a_chunks/.root186.js.map +0 -1
  442. package/dist/a_chunks/.root187.js +0 -18
  443. package/dist/a_chunks/.root187.js.map +0 -1
  444. package/dist/a_chunks/.root19.js.map +0 -1
  445. package/dist/a_chunks/.root2.js.map +0 -1
  446. package/dist/a_chunks/.root20.js.map +0 -1
  447. package/dist/a_chunks/.root21.js.map +0 -1
  448. package/dist/a_chunks/.root22.js.map +0 -1
  449. package/dist/a_chunks/.root23.js.map +0 -1
  450. package/dist/a_chunks/.root24.js.map +0 -1
  451. package/dist/a_chunks/.root25.js.map +0 -1
  452. package/dist/a_chunks/.root26.js.map +0 -1
  453. package/dist/a_chunks/.root27.js.map +0 -1
  454. package/dist/a_chunks/.root28.js.map +0 -1
  455. package/dist/a_chunks/.root29.js.map +0 -1
  456. package/dist/a_chunks/.root3.js.map +0 -1
  457. package/dist/a_chunks/.root30.js.map +0 -1
  458. package/dist/a_chunks/.root31.js.map +0 -1
  459. package/dist/a_chunks/.root32.js.map +0 -1
  460. package/dist/a_chunks/.root33.js.map +0 -1
  461. package/dist/a_chunks/.root34.js.map +0 -1
  462. package/dist/a_chunks/.root35.js.map +0 -1
  463. package/dist/a_chunks/.root36.js.map +0 -1
  464. package/dist/a_chunks/.root37.js.map +0 -1
  465. package/dist/a_chunks/.root38.js.map +0 -1
  466. package/dist/a_chunks/.root39.js.map +0 -1
  467. package/dist/a_chunks/.root4.js.map +0 -1
  468. package/dist/a_chunks/.root40.js.map +0 -1
  469. package/dist/a_chunks/.root41.js.map +0 -1
  470. package/dist/a_chunks/.root42.js.map +0 -1
  471. package/dist/a_chunks/.root43.js.map +0 -1
  472. package/dist/a_chunks/.root44.js.map +0 -1
  473. package/dist/a_chunks/.root45.js.map +0 -1
  474. package/dist/a_chunks/.root46.js.map +0 -1
  475. package/dist/a_chunks/.root47.js.map +0 -1
  476. package/dist/a_chunks/.root48.js.map +0 -1
  477. package/dist/a_chunks/.root49.js.map +0 -1
  478. package/dist/a_chunks/.root5.js.map +0 -1
  479. package/dist/a_chunks/.root50.js.map +0 -1
  480. package/dist/a_chunks/.root51.js.map +0 -1
  481. package/dist/a_chunks/.root52.js.map +0 -1
  482. package/dist/a_chunks/.root53.js.map +0 -1
  483. package/dist/a_chunks/.root54.js.map +0 -1
  484. package/dist/a_chunks/.root55.js.map +0 -1
  485. package/dist/a_chunks/.root56.js.map +0 -1
  486. package/dist/a_chunks/.root57.js.map +0 -1
  487. package/dist/a_chunks/.root58.js.map +0 -1
  488. package/dist/a_chunks/.root59.js.map +0 -1
  489. package/dist/a_chunks/.root6.js.map +0 -1
  490. package/dist/a_chunks/.root60.js.map +0 -1
  491. package/dist/a_chunks/.root61.js.map +0 -1
  492. package/dist/a_chunks/.root62.js.map +0 -1
  493. package/dist/a_chunks/.root63.js.map +0 -1
  494. package/dist/a_chunks/.root64.js.map +0 -1
  495. package/dist/a_chunks/.root65.js.map +0 -1
  496. package/dist/a_chunks/.root66.js.map +0 -1
  497. package/dist/a_chunks/.root67.js.map +0 -1
  498. package/dist/a_chunks/.root68.js.map +0 -1
  499. package/dist/a_chunks/.root69.js.map +0 -1
  500. package/dist/a_chunks/.root7.js.map +0 -1
  501. package/dist/a_chunks/.root70.js.map +0 -1
  502. package/dist/a_chunks/.root71.js.map +0 -1
  503. package/dist/a_chunks/.root72.js.map +0 -1
  504. package/dist/a_chunks/.root73.js.map +0 -1
  505. package/dist/a_chunks/.root74.js.map +0 -1
  506. package/dist/a_chunks/.root75.js.map +0 -1
  507. package/dist/a_chunks/.root76.js.map +0 -1
  508. package/dist/a_chunks/.root77.js.map +0 -1
  509. package/dist/a_chunks/.root78.js.map +0 -1
  510. package/dist/a_chunks/.root79.js.map +0 -1
  511. package/dist/a_chunks/.root8.js.map +0 -1
  512. package/dist/a_chunks/.root80.js.map +0 -1
  513. package/dist/a_chunks/.root81.js.map +0 -1
  514. package/dist/a_chunks/.root82.js.map +0 -1
  515. package/dist/a_chunks/.root83.js.map +0 -1
  516. package/dist/a_chunks/.root84.js.map +0 -1
  517. package/dist/a_chunks/.root85.js.map +0 -1
  518. package/dist/a_chunks/.root86.js.map +0 -1
  519. package/dist/a_chunks/.root87.js.map +0 -1
  520. package/dist/a_chunks/.root88.js.map +0 -1
  521. package/dist/a_chunks/.root89.js.map +0 -1
  522. package/dist/a_chunks/.root9.js.map +0 -1
  523. package/dist/a_chunks/.root90.js.map +0 -1
  524. package/dist/a_chunks/.root91.js.map +0 -1
  525. package/dist/a_chunks/.root92.js.map +0 -1
  526. package/dist/a_chunks/.root93.js.map +0 -1
  527. package/dist/a_chunks/.root94.js.map +0 -1
  528. package/dist/a_chunks/.root95.js.map +0 -1
  529. package/dist/a_chunks/.root96.js.map +0 -1
  530. package/dist/a_chunks/.root97.js.map +0 -1
  531. package/dist/a_chunks/.root98.js.map +0 -1
  532. package/dist/a_chunks/.root99.js.map +0 -1
  533. package/dist/a_chunks/Inner.js.map +0 -1
  534. package/dist/a_chunks/TableEditableCell.js.map +0 -1
  535. package/dist/a_chunks/TemplateModal.js.map +0 -1
  536. package/dist/a_chunks/_commonjsHelpers.js +0 -22
  537. package/dist/a_chunks/_commonjsHelpers.js.map +0 -1
  538. package/dist/a_chunks/common-table-item.js +0 -771
  539. package/dist/a_chunks/common-table-item.js.map +0 -1
  540. package/dist/a_chunks/data.js +0 -570
  541. package/dist/a_chunks/data.js.map +0 -1
  542. package/dist/a_chunks/deathclassification.js.map +0 -1
  543. package/dist/a_chunks/func.js +0 -277
  544. package/dist/a_chunks/func.js.map +0 -1
  545. package/dist/a_chunks/index.js.map +0 -1
  546. package/dist/a_chunks/index2.js.map +0 -1
  547. package/dist/a_chunks/index3.js +0 -479
  548. package/dist/a_chunks/index3.js.map +0 -1
  549. package/dist/a_chunks/index4.js +0 -119
  550. package/dist/a_chunks/index4.js.map +0 -1
  551. package/dist/a_chunks/requestMethods.js +0 -56
  552. package/dist/a_chunks/requestMethods.js.map +0 -1
  553. package/dist/curve/components/BmiCanvas/index.d.ts +0 -29
  554. package/dist/curve/components/FetusCanvas/config.d.ts +0 -3
  555. package/dist/curve/components/FetusCanvas/index.d.ts +0 -26
  556. package/dist/curve/components/FetusCanvas/requestMethods.d.ts +0 -9
  557. package/dist/curve/components/FetusCanvasNICHD/config.d.ts +0 -3
  558. package/dist/curve/components/FetusCanvasNICHD/data.d.ts +0 -84
  559. package/dist/curve/components/FetusCanvasNICHD/index.d.ts +0 -28
  560. package/dist/curve/components/Pregnogram/index.d.ts +0 -19
  561. package/dist/curve/components/api.d.ts +0 -23
  562. package/dist/curve/components-new/BmiCanvas/index.d.ts +0 -22
  563. package/dist/curve/components-new/FetusCanvas/config.d.ts +0 -3
  564. package/dist/curve/components-new/FetusCanvas/index.d.ts +0 -19
  565. package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +0 -9
  566. package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +0 -3
  567. package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +0 -84
  568. package/dist/curve/components-new/FetusCanvasNICHD/index.d.ts +0 -21
  569. package/dist/curve/components-new/Pregnogram/index.d.ts +0 -13
  570. package/dist/curve/data.d.ts +0 -120
  571. package/dist/curve/func.d.ts +0 -9
  572. package/dist/curve/index.d.ts +0 -5
  573. package/dist/curve/intro-steps.d.ts +0 -7
  574. package/dist/doctor-end/DiagReminder_copy/index.d.ts +0 -3
  575. package/dist/doctor-end/ScarredUterus/index.d.ts +0 -15
  576. package/dist/doctor-end/SyphilisManagement/index.d.ts +0 -15
  577. package/dist/doctor-end/Thrombus/index.d.ts +0 -22
  578. package/dist/doctor-end/high-risk-warn/add-diagnoses/add-diagnoses.d.ts +0 -11
  579. package/dist/doctor-end/high-risk-warn/high-risk-warn.d.ts +0 -15
  580. package/dist/doctor-end/high-risk-warn/util.d.ts +0 -12
  581. package/dist/doctor-end/message-multiterm-modal/message-multiterm-modal.d.ts +0 -11
  582. package/dist/index.js.map +0 -1
  583. package/dist/layout/components/MenuSearch/Inner.d.ts +0 -7
  584. package/dist/layout/components/MenuSearch/index.d.ts +0 -1
  585. package/dist/layout/index.d.ts +0 -1
  586. package/dist/modals/entries/StupidTemplateModal2/components/TemplateSelect.d.ts +0 -2
  587. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +0 -22
  588. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +0 -16
  589. package/dist/modals/entries/modal_form/index.d.ts +0 -27
  590. package/dist/modals/entries/print_modal/index.d.ts +0 -3
  591. package/dist/modals/entries/template_modal3/EditModal.d.ts +0 -1
  592. package/dist/modals/entries/template_modal3/common.d.ts +0 -4
  593. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +0 -1
  594. package/dist/modals/entries/template_modal3/index copy 2.d.ts +0 -19
  595. package/dist/modals/entries/template_modal3/index copy.d.ts +0 -22
  596. package/dist/modals/entries/template_modal3/index.d.ts +0 -18
  597. package/dist/modals/entries/template_modal3/methods/index.d.ts +0 -15
  598. package/dist/modals/entries/template_modal3/types.d.ts +0 -28
  599. package/dist/modals/entries/test/index.d.ts +0 -6
  600. package/dist/modals/entries/text_search/index.d.ts +0 -8
  601. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +0 -7
  602. package/dist/modals/entries//345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250/index.d.ts +0 -9
  603. package/dist/modals/entries//346/242/205/346/257/222/347/256/241/347/220/206/index.d.ts +0 -7
  604. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/ThrombusGysy.d.ts +0 -9
  605. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/components.d.ts +0 -7
  606. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/config.d.ts +0 -28
  607. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/utils.d.ts +0 -9
  608. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/Default/ThrombusDefault.d.ts +0 -7
  609. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/index.d.ts +0 -3
  610. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/types.d.ts +0 -5
  611. package/dist/modals/entries//347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250/index.d.ts +0 -6
  612. package/dist/modals/entries//350/257/212/346/226/255/345/216/206/345/217/262/index.d.ts +0 -8
  613. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/add-diagnoses/add-diagnoses.d.ts +0 -12
  614. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/index.d.ts +0 -20
  615. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/util.d.ts +0 -66
  616. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskSign.d.ts +0 -13
  617. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskTimeline.d.ts +0 -9
  618. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index copy.d.ts" +0 -12
  619. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index.d.ts +0 -13
  620. package/dist/utils/adapter.d.ts +0 -97
  621. /package/dist/FU_components/MyBaseList/{_MyBaseList.d.ts → _MyBaseList copy.d.ts} +0 -0
@@ -1,2074 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
- import _inherits from "@babel/runtime/helpers/inherits";
7
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
- import React, { PureComponent } from 'react';
11
- import 'antd/es/input/style';
12
- import _Input from 'antd/es/input';
13
- import 'antd/es/radio/style';
14
- import _Radio from 'antd/es/radio';
15
- import 'antd/es/tabs/style';
16
- import _Tabs from 'antd/es/tabs';
17
- import 'antd/es/row/style';
18
- import _Row from 'antd/es/row';
19
- import 'antd/es/input-number/style';
20
- import _InputNumber from 'antd/es/input-number';
21
- import 'antd/es/col/style';
22
- import _Col from 'antd/es/col';
23
- import 'antd/es/checkbox/style';
24
- import _Checkbox from 'antd/es/checkbox';
25
- import 'classnames';
26
- import { b as styleInject } from './index.js';
27
- import { LazyAntd } from '@lm_fe/components';
28
- import '@lm_fe/env';
29
- import 'lodash/isFunction';
30
- import '@ant-design/icons';
31
- import 'antd/es/space/style';
32
- import 'antd/es/space';
33
- import 'lodash/set';
34
- import 'lodash/map';
35
- import 'lodash/indexOf';
36
- import 'lodash/get';
37
- import 'lodash/compact';
38
- import '@lm_fe/utils';
39
- import 'dayjs';
40
- import 'lodash/isString';
41
- import 'lodash/isNumber';
42
- import 'lodash/isBoolean';
43
- import 'antd/es/divider/style';
44
- import 'antd/es/divider';
45
- import 'antd/es/button/style';
46
- import 'antd/es/button';
47
- import 'lodash/isEmpty';
48
- import 'antd/es/switch/style';
49
- import 'antd/es/switch';
50
- import 'antd/es/form/style';
51
- import 'antd/es/form';
52
- import 'lodash/join';
53
- import 'lodash/isEqual';
54
- import 'lodash/isArray';
55
- import 'lodash/identity';
56
- import 'lodash/cloneDeep';
57
- import '@lm_fe/service';
58
- import 'lodash/isObject';
59
- import 'lodash/keys';
60
- import 'lodash/keyBy';
61
- import 'lodash/isNil';
62
- import 'antd/es/tooltip/style';
63
- import 'antd/es/tooltip';
64
- import 'antd/es/spin/style';
65
- import 'antd/es/spin';
66
- import 'antd/es/message/style';
67
- import 'antd/es/message';
68
- import 'lodash/has';
69
- import 'antd/es/modal/style';
70
- import 'antd/es/modal';
71
- import 'lodash/size';
72
- import 'lodash/includes';
73
- import 'lodash/forEach';
74
- import 'lodash/filter';
75
- import 'react-to-print';
76
- import 'lodash/concat';
77
- import 'lodash/reduce';
78
- import 'lodash/debounce';
79
- import 'lodash/pickBy';
80
- import 'antd/es/auto-complete/style';
81
- import 'antd/es/auto-complete';
82
- import 'lodash/nth';
83
- import 'lodash/assign';
84
- import 'antd/es/popover/style';
85
- import 'antd/es/popover';
86
- import 'antd/es/menu/style';
87
- import 'antd/es/menu';
88
- import 'store';
89
- import 'antd/es/popconfirm/style';
90
- import 'antd/es/popconfirm';
91
- import 'lodash/last';
92
- import 'lodash/toUpper';
93
- var zh = {
94
- thecycle: '按周期',
95
- from: '从',
96
- from1: ' 周期从',
97
- Every: ' 每',
98
- doOne: '执行一次',
99
- appoint: '指定',
100
- noappoint: '不指定',
101
- second: '秒',
102
- second1: '秒',
103
- EverySecond: '每一秒钟',
104
- secondstart: '秒开始,',
105
- minute: '分',
106
- minute1: '分钟',
107
- Everyminute: '每一分钟',
108
- minutestart: '分开始,',
109
- hour: '时',
110
- hour1: '小时',
111
- Everyhour: '每一小时',
112
- hourstart: '时开始,',
113
- day: '日',
114
- day1: '日',
115
- Everyday: '每一日',
116
- daystart: '日开始,',
117
- month: '月',
118
- month1: '月',
119
- Everymonth: '每一月',
120
- Everymonth1: '每月',
121
- latestDays: '号最近的工作日',
122
- monthstart: '月开始,',
123
- monthend: '每月的最后一天',
124
- week: '周',
125
- week1: '星期',
126
- week2: ',的星期',
127
- week3: '周',
128
- monthweek: '本月第',
129
- Everyweek: '每一周',
130
- weekend: '本月的最后一个星期'
131
- };
132
- var en = {
133
- thecycle: 'The cycle',
134
- from: 'From',
135
- from1: ' from',
136
- Every: ' every',
137
- doOne: ' to do one time',
138
- appoint: 'Appoint',
139
- noappoint: 'No Appoint',
140
- second: 'Second',
141
- second1: 'second',
142
- EverySecond: 'Every second',
143
- secondstart: 'start,',
144
- minute: 'Minute',
145
- minute1: 'minute',
146
- Everyminute: 'Every minute',
147
- minutestart: 'start,',
148
- hour: 'Hour',
149
- hour1: 'hour',
150
- Everyhour: 'Every hour',
151
- hourstart: 'start,',
152
- day: 'Day',
153
- day1: 'day',
154
- Everyday: 'Every day',
155
- daystart: 'start,',
156
- month: 'Month',
157
- month1: 'month',
158
- Everymonth: 'Every month',
159
- Everymonth1: 'Every month',
160
- latestDays: 'latest workday',
161
- monthstart: 'start,',
162
- monthend: 'The last day of the month',
163
- week: 'Week',
164
- week1: ' week',
165
- week2: ',week',
166
- week3: 'week',
167
- monthweek: 'Every month number',
168
- Everyweek: 'Every Week',
169
- weekend: 'The last week of the month'
170
- };
171
- var getI18n = function getI18n(locale) {
172
- if (locale === 'zh_CN' || locale === 'zh-CN' || locale === 'zh-Hans-CN' || locale === 'zh_Hans_CN') {
173
- return zh;
174
- }
175
- if (locale === 'en_US' || locale === 'en-US') {
176
- return en;
177
- }
178
- };
179
-
180
- /**
181
- * Validates a cron expression.
182
- *
183
- * @param cronExpression The expression to validate
184
- * @return True is expression is valid
185
- */
186
- function cronValidate(cronExpression) {
187
- if (!cronExpression) {
188
- return false;
189
- }
190
- //alert("校验函数的开始!");
191
- var cronParams = cronExpression.split(" ");
192
- if (cronParams.length < 6 || cronParams.length > 7) {
193
- return false;
194
- }
195
-
196
- //CronTrigger cronTrigger = new CronTrigger();
197
- //cronTrigger.setCronExpression( cronExpression );
198
-
199
- if (cronParams[3] == "?" || cronParams[5] == "?") {
200
- //Check seconds param
201
- if (!checkSecondsField(cronParams[0])) {
202
- return false;
203
- }
204
-
205
- //Check minutes param
206
- if (!checkMinutesField(cronParams[1])) {
207
- return false;
208
- }
209
-
210
- //Check hours param
211
- if (!checkHoursField(cronParams[2])) {
212
- return false;
213
- }
214
-
215
- //Check day-of-month param
216
- if (!checkDayOfMonthField(cronParams[3])) {
217
- return false;
218
- }
219
-
220
- //Check months param
221
- if (!checkMonthsField(cronParams[4])) {
222
- return false;
223
- }
224
-
225
- //Check day-of-week param
226
- if (!checkDayOfWeekField(cronParams[5])) {
227
- return false;
228
- }
229
-
230
- //Check year param
231
- if (cronParams.length == 7) {
232
- if (!checkYearField(cronParams[6])) {
233
- return false;
234
- }
235
- }
236
- return true;
237
- } else {
238
- return false;
239
- }
240
- }
241
- function checkSecondsField(secondsField) {
242
- return checkField(secondsField, 0, 59);
243
- }
244
- function checkField(secondsField, minimal, maximal) {
245
- if (secondsField.indexOf("-") > -1) {
246
- var startValue = secondsField.substring(0, secondsField.indexOf("-"));
247
- var endValue = secondsField.substring(secondsField.indexOf("-") + 1);
248
- if (!(checkIntValue(startValue, minimal, maximal, true) && checkIntValue(endValue, minimal, maximal, true))) {
249
- return false;
250
- }
251
- try {
252
- var startVal = parseInt(startValue, 10);
253
- var endVal = parseInt(endValue, 10);
254
- return endVal > startVal;
255
- } catch (e) {
256
- return false;
257
- }
258
- } else if (secondsField.indexOf(",") > -1) {
259
- return checkListField(secondsField, minimal, maximal);
260
- } else if (secondsField.indexOf("/") > -1) {
261
- return checkIncrementField(secondsField, minimal, maximal);
262
- } else if (secondsField.indexOf("*") != -1) {
263
- return true;
264
- } else {
265
- return checkIntValue(secondsField, minimal, maximal);
266
- }
267
- }
268
- function checkIntValue(value, minimal, maximal, checkExtremity) {
269
- try {
270
- var val = parseInt(value, 10);
271
- //判断是否为整数
272
- if (value == val) {
273
- if (checkExtremity) {
274
- if (val < minimal || val > maximal) {
275
- return false;
276
- }
277
- }
278
- return true;
279
- }
280
- return false;
281
- } catch (e) {
282
- return false;
283
- }
284
- }
285
- function checkMinutesField(minutesField) {
286
- return checkField(minutesField, 0, 59);
287
- }
288
- function checkHoursField(hoursField) {
289
- return checkField(hoursField, 0, 23);
290
- }
291
- function checkDayOfMonthField(dayOfMonthField) {
292
- if (dayOfMonthField == "?") {
293
- return true;
294
- }
295
- if (dayOfMonthField.indexOf("L") >= 0) {
296
- return checkFieldWithLetter(dayOfMonthField, "L", 1, 7, -1, -1);
297
- } else if (dayOfMonthField.indexOf("W") >= 0) {
298
- return checkFieldWithLetter(dayOfMonthField, "W", 1, 31, -1, -1);
299
- } else if (dayOfMonthField.indexOf("C") >= 0) {
300
- return checkFieldWithLetter(dayOfMonthField, "C", 1, 31, -1, -1);
301
- } else {
302
- return checkField(dayOfMonthField, 1, 31);
303
- }
304
- }
305
- function checkMonthsField(monthsField) {
306
- /* monthsField = StringUtils.replace( monthsField, "JAN", "1" );
307
- monthsField = StringUtils.replace( monthsField, "FEB", "2" );
308
- monthsField = StringUtils.replace( monthsField, "MAR", "3" );
309
- monthsField = StringUtils.replace( monthsField, "APR", "4" );
310
- monthsField = StringUtils.replace( monthsField, "MAY", "5" );
311
- monthsField = StringUtils.replace( monthsField, "JUN", "6" );
312
- monthsField = StringUtils.replace( monthsField, "JUL", "7" );
313
- monthsField = StringUtils.replace( monthsField, "AUG", "8" );
314
- monthsField = StringUtils.replace( monthsField, "SEP", "9" );
315
- monthsField = StringUtils.replace( monthsField, "OCT", "10" );
316
- monthsField = StringUtils.replace( monthsField, "NOV", "11" );
317
- monthsField = StringUtils.replace( monthsField, "DEC", "12" );*/
318
-
319
- monthsField.replace("JAN", "1");
320
- monthsField.replace("FEB", "2");
321
- monthsField.replace("MAR", "3");
322
- monthsField.replace("APR", "4");
323
- monthsField.replace("MAY", "5");
324
- monthsField.replace("JUN", "6");
325
- monthsField.replace("JUL", "7");
326
- monthsField.replace("AUG", "8");
327
- monthsField.replace("SEP", "9");
328
- monthsField.replace("OCT", "10");
329
- monthsField.replace("NOV", "11");
330
- monthsField.replace("DEC", "12");
331
- return checkField(monthsField, 1, 31);
332
- }
333
- function checkDayOfWeekField(dayOfWeekField) {
334
- /* dayOfWeekField = StringUtils.replace( dayOfWeekField, "SUN", "1" );
335
- dayOfWeekField = StringUtils.replace( dayOfWeekField, "MON", "2" );
336
- dayOfWeekField = StringUtils.replace( dayOfWeekField, "TUE", "3" );
337
- dayOfWeekField = StringUtils.replace( dayOfWeekField, "WED", "4" );
338
- dayOfWeekField = StringUtils.replace( dayOfWeekField, "THU", "5" );
339
- dayOfWeekField = StringUtils.replace( dayOfWeekField, "FRI", "6" );
340
- dayOfWeekField = StringUtils.replace( dayOfWeekField, "SAT", "7" );*/
341
-
342
- dayOfWeekField.replace("SUN", "1");
343
- dayOfWeekField.replace("MON", "2");
344
- dayOfWeekField.replace("TUE", "3");
345
- dayOfWeekField.replace("WED", "4");
346
- dayOfWeekField.replace("THU", "5");
347
- dayOfWeekField.replace("FRI", "6");
348
- dayOfWeekField.replace("SAT", "7");
349
- if (dayOfWeekField == "?") {
350
- return true;
351
- }
352
- if (dayOfWeekField.indexOf("L") >= 0) {
353
- return checkFieldWithLetter(dayOfWeekField, "L", 1, 7, -1, -1);
354
- } else if (dayOfWeekField.indexOf("C") >= 0) {
355
- return checkFieldWithLetter(dayOfWeekField, "C", 1, 7, -1, -1);
356
- } else if (dayOfWeekField.indexOf("#") >= 0) {
357
- return checkFieldWithLetter(dayOfWeekField, "#", 1, 7, 1, 5);
358
- } else {
359
- return checkField(dayOfWeekField, 1, 7);
360
- }
361
- }
362
- function checkYearField(yearField) {
363
- return checkField(yearField, 1970, 2099);
364
- }
365
- function checkFieldWithLetter(value, letter, minimalBefore, maximalBefore, minimalAfter, maximalAfter) {
366
- var canBeAlone = false;
367
- var canHaveIntBefore = false;
368
- var canHaveIntAfter = false;
369
- var mustHaveIntBefore = false;
370
- var mustHaveIntAfter = false;
371
- if (letter == "L") {
372
- canBeAlone = true;
373
- canHaveIntBefore = true;
374
- canHaveIntAfter = false;
375
- mustHaveIntBefore = false;
376
- mustHaveIntAfter = false;
377
- }
378
- if (letter == "W" || letter == "C") {
379
- canBeAlone = false;
380
- canHaveIntBefore = true;
381
- canHaveIntAfter = false;
382
- mustHaveIntBefore = true;
383
- mustHaveIntAfter = false;
384
- }
385
- if (letter == "#") {
386
- canBeAlone = false;
387
- canHaveIntBefore = true;
388
- canHaveIntAfter = true;
389
- mustHaveIntBefore = true;
390
- mustHaveIntAfter = true;
391
- }
392
- var beforeLetter = "";
393
- var afterLetter = "";
394
- if (value.indexOf(letter) >= 0) {
395
- beforeLetter = value.substring(0, value.indexOf(letter));
396
- }
397
- if (!value.endsWith(letter)) {
398
- afterLetter = value.substring(value.indexOf(letter) + 1);
399
- }
400
- if (value.indexOf(letter) >= 0) {
401
- if (letter == value) {
402
- return canBeAlone;
403
- }
404
- if (canHaveIntBefore) {
405
- if (mustHaveIntBefore && beforeLetter.length == 0) {
406
- return false;
407
- }
408
- if (!checkIntValue(beforeLetter, minimalBefore, maximalBefore, true)) {
409
- return false;
410
- }
411
- } else {
412
- if (beforeLetter.length > 0) {
413
- return false;
414
- }
415
- }
416
- if (canHaveIntAfter) {
417
- if (mustHaveIntAfter && afterLetter.length == 0) {
418
- return false;
419
- }
420
- if (!checkIntValue(afterLetter, minimalAfter, maximalAfter, true)) {
421
- return false;
422
- }
423
- } else {
424
- if (afterLetter.length > 0) {
425
- return false;
426
- }
427
- }
428
- }
429
- return true;
430
- }
431
-
432
- /* function checkIntValue(value, minimal, maximal) {
433
- return checkIntValue(value, minimal, maximal, true);
434
- } */
435
-
436
- function checkIncrementField(value, minimal, maximal) {
437
- var start = value.substring(0, value.indexOf("/"));
438
- var increment = value.substring(value.indexOf("/") + 1);
439
- if (!("*" == start)) {
440
- return checkIntValue(start, minimal, maximal, true) && checkIntValue(increment, minimal, maximal, false);
441
- } else {
442
- return checkIntValue(increment, minimal, maximal, true);
443
- }
444
- }
445
- function checkListField(value, minimal, maximal) {
446
- var st = value.split(",").sort(function (x, y) {
447
- return Number(x) - Number(y);
448
- });
449
- var values = new Array(st.length);
450
- for (var j = 0; j < st.length; j++) {
451
- values[j] = st[j];
452
- }
453
- var previousValue = -1;
454
- for (var i = 0; i < values.length; i++) {
455
- var currentValue = values[i];
456
- if (!checkIntValue(currentValue, minimal, maximal, true)) {
457
- return false;
458
- }
459
- try {
460
- var val = parseInt(currentValue, 10);
461
- if (val <= previousValue) {
462
- return false;
463
- } else {
464
- previousValue = val;
465
- }
466
- } catch (e) {
467
- // we have always an int
468
- }
469
- }
470
- return true;
471
- }
472
- var css_248z = ".cron-select {\n border-radius: 3px;\n background: #fff;\n border: 1px solid #ccc;\n box-shadow: 0 1px 5px #ccc;\n}\n.cron-select .ant-tabs-bar {\n margin-bottom: 0px;\n}\n.cron-select .ant-tabs-tabpane-active {\n padding-left: 10px;\n padding-bottom: 3px;\n}\n.cron-select .ant-tabs-tabpane-active .ant-radio-group {\n width: 100%;\n height: 100%;\n}\n.cron-select .ant-checkbox-group {\n display: block;\n}\n.cron-select .ant-input-number {\n width: 100px !important;\n}\n.cron-select .ant-tabs-tab {\n padding: 12px 16px;\n}\n";
473
- styleInject(css_248z);
474
- var Tree$1 = LazyAntd.Tree,
475
- TreeSelect$1 = LazyAntd.TreeSelect,
476
- Select$1 = LazyAntd.Select,
477
- Table$1 = LazyAntd.Table,
478
- Dropdown$1 = LazyAntd.Dropdown;
479
- var RadioGroup = _Radio.Group;
480
- var CheckboxGroup = _Checkbox.Group;
481
- var options = [];
482
- var hourOptions = [];
483
- var daysForMonOptions = [];
484
- var monthOptions = [];
485
- var weekOptions = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'];
486
- for (var i = 0; i < 60; i++) {
487
- options.push(i.toString());
488
- }
489
- for (var _i = 0; _i < 24; _i++) {
490
- hourOptions.push(_i.toString());
491
- }
492
- for (var _i2 = 1; _i2 < 32; _i2++) {
493
- daysForMonOptions.push(_i2.toString());
494
- }
495
- for (var _i3 = 1; _i3 < 13; _i3++) {
496
- monthOptions.push(_i3.toString());
497
- }
498
- // for (let i = 1; i < 8; i++) { weekOptions.push(i.toString()); }
499
- var CRON = /*#__PURE__*/function (_React$Component) {
500
- function CRON(props) {
501
- var _this;
502
- _classCallCheck(this, CRON);
503
- _this = _callSuper(this, CRON, [props]);
504
- // 生成复选框
505
- // eslint-disable-next-line react/sort-comp
506
- _defineProperty(_this, "createChecks", function (data, radiochecked, radio) {
507
- return data.map(function (index) {
508
- return /*#__PURE__*/React.createElement(_Col, {
509
- key: index,
510
- span: data.length === 7 ? 3 : 4
511
- }, /*#__PURE__*/React.createElement(_Checkbox, {
512
- disabled: radiochecked !== radio,
513
- value: index.toString()
514
- }, index));
515
- });
516
- });
517
- // eslint-disable-next-line class-methods-use-this
518
- _defineProperty(_this, "isShowDom", function (chartsType, arr) {
519
- return arr.includes(chartsType);
520
- });
521
- // CRONtabs页切换回调
522
- _defineProperty(_this, "callback", function (key) {
523
- _this.setState({
524
- TabsActiveKey: key
525
- });
526
- });
527
- _defineProperty(_this, "changeState", function (obj) {
528
- _this.setState(obj, function () {
529
- _this.creatCron();
530
- });
531
- });
532
- // ---------------------------------------秒-------------------------------------------------------------------------------------
533
- // CRON-秒-radio选择回调
534
- _defineProperty(_this, "onSecondRadioChange", function (e) {
535
- var SecondRadiochecked = e.target.value;
536
- _this.setState({
537
- SecondRadiochecked: SecondRadiochecked
538
- });
539
- // eslint-disable-next-line default-case
540
- switch (SecondRadiochecked) {
541
- case 1:
542
- _this.changeState({
543
- secondVal: '*'
544
- });
545
- break;
546
- case 2:
547
- _this.changeState({
548
- secondVal: "".concat(_this.state.secondCycleStart, "-").concat(_this.state.secondCycleEnd)
549
- });
550
- break;
551
- case 3:
552
- _this.changeState({
553
- secondVal: "".concat(_this.state.secondStart, "/").concat(_this.state.secondEvery)
554
- });
555
- break;
556
- case 4:
557
- _this.changeState({
558
- secondVal: _this.state.secondChecked
559
- });
560
- break;
561
- }
562
- });
563
- // CRON-秒-指定周期-周期开始值输入框的回调
564
- _defineProperty(_this, "secondCycleStart", function (value) {
565
- _this.setState({
566
- secondCycleStart: value
567
- });
568
- if (_this.state.SecondRadiochecked === 2) {
569
- _this.changeState({
570
- secondVal: "".concat(value, "-").concat(_this.state.secondCycleEnd)
571
- });
572
- }
573
- });
574
- // CRON-秒-指定周期-周期结束值输入框的回调
575
- _defineProperty(_this, "secondCycleEnd", function (value) {
576
- _this.setState({
577
- secondCycleEnd: value
578
- });
579
- if (_this.state.SecondRadiochecked === 2) {
580
- _this.changeState({
581
- secondVal: "".concat(_this.state.secondCycleStart, "-").concat(value)
582
- });
583
- }
584
- });
585
- // CRON-秒-指定从几秒开始
586
- _defineProperty(_this, "secondStart", function (value) {
587
- _this.setState({
588
- secondStart: value
589
- });
590
- if (_this.state.SecondRadiochecked === 3) {
591
- _this.changeState({
592
- secondVal: "".concat(value, "/").concat(_this.state.secondEvery)
593
- });
594
- }
595
- });
596
- // CRON-秒-指定每几秒执行一次
597
- _defineProperty(_this, "secondEvery", function (value) {
598
- _this.setState({
599
- secondEvery: value
600
- });
601
- if (_this.state.SecondRadiochecked === 3) {
602
- _this.changeState({
603
- secondVal: "".concat(_this.state.secondStart, "/").concat(value)
604
- });
605
- }
606
- });
607
- // CRON-秒-指定选择复选框
608
- _defineProperty(_this, "onSecndcheckChange", function (checkedValues) {
609
- var secondChecked = checkedValues.length > 0 ? checkedValues.join(',') : '0';
610
- _this.setState({
611
- secondChecked: secondChecked
612
- });
613
- if (_this.state.SecondRadiochecked === 4) {
614
- _this.changeState({
615
- secondVal: secondChecked
616
- });
617
- }
618
- });
619
- // ---------------------------------------秒-------------------------------------------------------------------------------------
620
- // ---------------------------------------分-------------------------------------------------------------------------------------
621
- // CRON-分钟-radio选择回调
622
- _defineProperty(_this, "onMinuteRadioChange", function (e) {
623
- var minuteRadiochecked = e.target.value;
624
- _this.setState({
625
- minuteRadiochecked: minuteRadiochecked
626
- });
627
- // eslint-disable-next-line default-case
628
- switch (minuteRadiochecked) {
629
- case 1:
630
- _this.changeState({
631
- minVal: '*'
632
- });
633
- break;
634
- case 2:
635
- _this.changeState({
636
- minVal: "".concat(_this.state.minuteCycleStart, "-").concat(_this.state.minuteCycleEnd)
637
- });
638
- break;
639
- case 3:
640
- _this.changeState({
641
- minVal: "".concat(_this.state.minuteStart, "/").concat(_this.state.minuteEvery)
642
- });
643
- break;
644
- case 4:
645
- _this.changeState({
646
- minVal: _this.state.minuteChecked
647
- });
648
- break;
649
- }
650
- });
651
- // CRON-分钟-指定周期-周期开始值输入框的回调
652
- _defineProperty(_this, "minuteCycleStart", function (value) {
653
- _this.setState({
654
- minuteCycleStart: value
655
- });
656
- if (_this.state.minuteRadiochecked === 2) {
657
- _this.changeState({
658
- minVal: "".concat(value, "-").concat(_this.state.minuteCycleEnd)
659
- });
660
- }
661
- });
662
- // CRON-分钟-指定周期-周期结束值输入框的回调
663
- _defineProperty(_this, "minuteCycleEnd", function (value) {
664
- _this.setState({
665
- minuteCycleEnd: value
666
- });
667
- if (_this.state.minuteRadiochecked === 2) {
668
- _this.changeState({
669
- minVal: "".concat(_this.state.minuteCycleStart, "-").concat(value)
670
- });
671
- }
672
- });
673
- // CRON-分钟-指定从几秒开始
674
- _defineProperty(_this, "minuteStart", function (value) {
675
- _this.setState({
676
- minuteStart: value
677
- });
678
- if (_this.state.minuteRadiochecked === 3) {
679
- _this.changeState({
680
- minVal: "".concat(value, "/").concat(_this.state.minuteEvery)
681
- });
682
- }
683
- });
684
- // CRON-分钟-指定每几秒执行一次
685
- _defineProperty(_this, "minuteEvery", function (value) {
686
- _this.setState({
687
- minuteEvery: value
688
- });
689
- if (_this.state.minuteRadiochecked === 3) {
690
- _this.changeState({
691
- minVal: "".concat(_this.state.minuteStart, "/").concat(value)
692
- });
693
- }
694
- });
695
- // CRON-分钟-指定选择复选框
696
- _defineProperty(_this, "onMinuteCheckChange", function (checkedValues) {
697
- var minuteChecked = checkedValues.length > 0 ? checkedValues.join(',') : '0';
698
- _this.setState({
699
- minuteChecked: minuteChecked
700
- });
701
- if (_this.state.minuteRadiochecked === 4) {
702
- _this.changeState({
703
- minVal: minuteChecked
704
- });
705
- }
706
- });
707
- // ---------------------------------------分-------------------------------------------------------------------------------------
708
- // ---------------------------------------时-------------------------------------------------------------------------------------
709
- // CRON-小时-radio选择回调
710
- _defineProperty(_this, "onHourRadioChange", function (e) {
711
- var hourRadiochecked = e.target.value;
712
- _this.setState({
713
- hourRadiochecked: hourRadiochecked
714
- });
715
- // eslint-disable-next-line default-case
716
- switch (hourRadiochecked) {
717
- case 1:
718
- _this.changeState({
719
- hourVal: '*'
720
- });
721
- break;
722
- case 2:
723
- _this.changeState({
724
- hourVal: "".concat(_this.state.hourCycleStart, "-").concat(_this.state.hourCycleEnd)
725
- });
726
- break;
727
- case 3:
728
- _this.changeState({
729
- hourVal: "".concat(_this.state.hourStart, "/").concat(_this.state.hourEvery)
730
- });
731
- break;
732
- case 4:
733
- _this.changeState({
734
- hourVal: _this.state.hourChecked
735
- });
736
- break;
737
- }
738
- });
739
- // CRON-小时-指定周期-周期开始值输入框的回调
740
- _defineProperty(_this, "hourCycleStart", function (value) {
741
- _this.setState({
742
- hourCycleStart: value
743
- });
744
- if (_this.state.hourRadiochecked === 2) {
745
- _this.changeState({
746
- hourVal: "".concat(value, "-").concat(_this.state.hourCycleEnd)
747
- });
748
- }
749
- });
750
- // CRON-小时-指定周期-周期结束值输入框的回调
751
- _defineProperty(_this, "hourCycleEnd", function (value) {
752
- _this.setState({
753
- hourCycleEnd: value
754
- });
755
- if (_this.state.hourRadiochecked === 2) {
756
- _this.changeState({
757
- hourVal: "".concat(_this.state.hourCycleStart, "-").concat(value)
758
- });
759
- }
760
- });
761
- // CRON-小时-指定从几秒开始
762
- _defineProperty(_this, "hourStart", function (value) {
763
- _this.setState({
764
- hourStart: value
765
- });
766
- if (_this.state.hourRadiochecked === 3) {
767
- _this.changeState({
768
- hourVal: "".concat(value, "/").concat(_this.state.hourEvery)
769
- });
770
- }
771
- });
772
- // CRON-小时-指定每几秒执行一次
773
- _defineProperty(_this, "hourEvery", function (value) {
774
- _this.setState({
775
- hourEvery: value
776
- });
777
- if (_this.state.hourRadiochecked === 3) {
778
- _this.changeState({
779
- hourVal: "".concat(_this.state.hourStart, "/").concat(value)
780
- });
781
- }
782
- });
783
- // CRON-小时-指定选择复选框
784
- _defineProperty(_this, "onHourCheckChange", function (checkedValues) {
785
- var hourChecked = checkedValues.length > 0 ? checkedValues.join(',') : '0';
786
- _this.setState({
787
- hourChecked: hourChecked
788
- });
789
- if (_this.state.hourRadiochecked === 4) {
790
- _this.changeState({
791
- hourVal: hourChecked
792
- });
793
- }
794
- });
795
- // ---------------------------------------时-------------------------------------------------------------------------------------
796
- // ---------------------------------------日-------------------------------------------------------------------------------------
797
- // CRON-日-radio选择回调
798
- _defineProperty(_this, "onDaysRadioChange", function (e) {
799
- var daysRadiochecked = e.target.value;
800
- _this.setState({
801
- daysRadiochecked: daysRadiochecked
802
- });
803
- if (daysRadiochecked !== 2) {
804
- _this.changeState({
805
- dayOfWekVal: '?',
806
- weekRadiochecked: 2
807
- });
808
- }
809
- // eslint-disable-next-line default-case
810
- switch (daysRadiochecked) {
811
- case 1:
812
- _this.changeState({
813
- dayOfMonVal: '*'
814
- });
815
- break;
816
- case 2:
817
- _this.changeState({
818
- dayOfMonVal: '?'
819
- });
820
- break;
821
- case 3:
822
- _this.changeState({
823
- dayOfMonVal: "".concat(_this.state.daysCycleStart, "-").concat(_this.state.daysCycleEnd)
824
- });
825
- break;
826
- case 4:
827
- _this.changeState({
828
- dayOfMonVal: "".concat(_this.state.daysStart, "/").concat(_this.state.daysEvery)
829
- });
830
- break;
831
- case 5:
832
- _this.changeState({
833
- dayOfMonVal: "".concat(_this.state.daysForWorking, "W")
834
- });
835
- break;
836
- case 6:
837
- _this.changeState({
838
- dayOfMonVal: 'L'
839
- });
840
- break;
841
- case 7:
842
- _this.changeState({
843
- dayOfMonVal: _this.state.daysChecked
844
- });
845
- break;
846
- }
847
- });
848
- // CRON-日-指定周期-周期开始值输入框的回调
849
- _defineProperty(_this, "daysCycleStart", function (value) {
850
- _this.setState({
851
- daysCycleStart: value
852
- });
853
- if (_this.state.daysRadiochecked === 3) {
854
- _this.changeState({
855
- dayOfMonVal: "".concat(value, "-").concat(_this.state.daysCycleEnd)
856
- });
857
- }
858
- });
859
- // CRON-日-指定周期-周期结束值输入框的回调
860
- _defineProperty(_this, "daysCycleEnd", function (value) {
861
- _this.setState({
862
- daysCycleEnd: value
863
- });
864
- if (_this.state.daysRadiochecked === 3) {
865
- _this.changeState({
866
- dayOfMonVal: "".concat(_this.state.daysCycleStart, "-").concat(value)
867
- });
868
- }
869
- });
870
- // CRON-日-指定从多少开始
871
- _defineProperty(_this, "daysStart", function (value) {
872
- _this.setState({
873
- daysStart: value
874
- });
875
- if (_this.state.daysRadiochecked === 4) {
876
- _this.changeState({
877
- dayOfMonVal: "".concat(value, "/").concat(_this.state.daysEvery)
878
- });
879
- }
880
- });
881
- // CRON-日-指定每多久执行一次
882
- _defineProperty(_this, "daysEvery", function (value) {
883
- _this.setState({
884
- daysEvery: value
885
- });
886
- if (_this.state.daysRadiochecked === 4) {
887
- _this.changeState({
888
- dayOfMonVal: "".concat(_this.state.daysStart, "/").concat(value)
889
- });
890
- }
891
- });
892
- // CRON-日-指定最近日期的工作日执行
893
- _defineProperty(_this, "daysForWorking", function (value) {
894
- _this.setState({
895
- daysForWorking: value
896
- });
897
- if (_this.state.daysRadiochecked === 5) {
898
- _this.setState({
899
- dayOfMonVal: "".concat(value, "W")
900
- });
901
- }
902
- });
903
- // CRON-日-指定选择复选框
904
- _defineProperty(_this, "onDaysCheckChange", function (checkedValues) {
905
- var daysChecked = checkedValues.length > 0 ? checkedValues.join(',') : '1';
906
- _this.setState({
907
- daysChecked: daysChecked
908
- });
909
- if (_this.state.daysRadiochecked === 7) {
910
- _this.changeState({
911
- dayOfMonVal: daysChecked
912
- });
913
- }
914
- });
915
- // ---------------------------------------日-------------------------------------------------------------------------------------
916
- // ---------------------------------------月-------------------------------------------------------------------------------------
917
- // CRON-月-radio选择回调
918
- _defineProperty(_this, "onMonthRadioChange", function (e) {
919
- var monthRadiochecked = e.target.value;
920
- _this.setState({
921
- monthRadiochecked: monthRadiochecked
922
- });
923
- // eslint-disable-next-line default-case
924
- switch (monthRadiochecked) {
925
- case 1:
926
- _this.changeState({
927
- MonVal: '*'
928
- });
929
- break;
930
- // case 2: this.changeState({ MonVal: '?' }); break;
931
- case 3:
932
- _this.changeState({
933
- MonVal: "".concat(_this.state.monthCycleStart, "-").concat(_this.state.monthCycleEnd)
934
- });
935
- break;
936
- case 4:
937
- _this.changeState({
938
- MonVal: "".concat(_this.state.monthStart, "/").concat(_this.state.monthEvery)
939
- });
940
- break;
941
- case 5:
942
- _this.changeState({
943
- MonVal: _this.state.monthChecked
944
- });
945
- break;
946
- }
947
- });
948
- // CRON-月-指定周期-周期开始值输入框的回调
949
- _defineProperty(_this, "monthCycleStart", function (value) {
950
- _this.setState({
951
- monthCycleStart: value
952
- });
953
- if (_this.state.monthRadiochecked === 3) {
954
- _this.changeState({
955
- MonVal: "".concat(value, "-").concat(_this.state.monthCycleEnd)
956
- });
957
- }
958
- });
959
- // CRON-月-指定周期-周期结束值输入框的回调
960
- _defineProperty(_this, "monthCycleEnd", function (value) {
961
- _this.setState({
962
- monthCycleEnd: value
963
- });
964
- if (_this.state.monthRadiochecked === 3) {
965
- _this.changeState({
966
- MonVal: "".concat(_this.state.monthCycleStart, "-").concat(value)
967
- });
968
- }
969
- });
970
- // CRON-月-指定从多久开始
971
- _defineProperty(_this, "monthStart", function (value) {
972
- _this.setState({
973
- monthStart: value
974
- });
975
- if (_this.state.monthRadiochecked === 4) {
976
- _this.changeState({
977
- MonVal: "".concat(value, "/").concat(_this.state.monthEvery)
978
- });
979
- }
980
- });
981
- // CRON-月-指定每多久执行一次
982
- _defineProperty(_this, "monthEvery", function (value) {
983
- _this.setState({
984
- monthEvery: value
985
- });
986
- if (_this.state.monthRadiochecked === 4) {
987
- _this.changeState({
988
- MonVal: "".concat(_this.state.monthStart, "/").concat(value)
989
- });
990
- }
991
- });
992
- // CRON-月-指定选择复选框
993
- _defineProperty(_this, "onMonthCheckChange", function (checkedValues) {
994
- var monthChecked = checkedValues.length > 0 ? checkedValues.join(',') : '1';
995
- _this.setState({
996
- monthChecked: monthChecked
997
- });
998
- if (_this.state.monthRadiochecked === 5) {
999
- _this.changeState({
1000
- MonVal: monthChecked
1001
- });
1002
- }
1003
- });
1004
- // ---------------------------------------月-------------------------------------------------------------------------------------
1005
- // CRON-周-radio选择回调
1006
- _defineProperty(_this, "onWeekRadioChange", function (e) {
1007
- var weekRadiochecked = e.target.value;
1008
- _this.setState({
1009
- weekRadiochecked: weekRadiochecked
1010
- });
1011
- if (weekRadiochecked !== 2) {
1012
- _this.changeState({
1013
- dayOfMonVal: '?',
1014
- daysRadiochecked: 2
1015
- });
1016
- }
1017
- // eslint-disable-next-line default-case
1018
- switch (weekRadiochecked) {
1019
- case 1:
1020
- _this.changeState({
1021
- dayOfWekVal: '*'
1022
- });
1023
- break;
1024
- case 2:
1025
- _this.changeState({
1026
- dayOfWekVal: '?'
1027
- });
1028
- break;
1029
- case 3:
1030
- _this.changeState({
1031
- dayOfWekVal: "".concat(_this.state.weekCycleStart, "-").concat(_this.state.weekCycleEnd)
1032
- });
1033
- break;
1034
- case 4:
1035
- _this.changeState({
1036
- dayOfWekVal: "".concat(_this.state.weekEvery, "#").concat(_this.state.weekStart)
1037
- });
1038
- break;
1039
- case 5:
1040
- _this.changeState({
1041
- dayOfWekVal: "".concat(_this.state.weekEnd, "L")
1042
- });
1043
- break;
1044
- case 6:
1045
- _this.changeState({
1046
- dayOfWekVal: _this.state.weekChecked
1047
- });
1048
- break;
1049
- }
1050
- });
1051
- // CRON-周-指定周期-周期开始值输入框的回调
1052
- _defineProperty(_this, "weekCycleStart", function (value) {
1053
- _this.setState({
1054
- weekCycleStart: value
1055
- });
1056
- if (_this.state.weekRadiochecked === 3) {
1057
- _this.changeState({
1058
- dayOfWekVal: "".concat(value, "-").concat(_this.state.weekCycleEnd)
1059
- });
1060
- }
1061
- });
1062
- // CRON-周-指定周期-周期结束值输入框的回调
1063
- _defineProperty(_this, "weekCycleEnd", function (value) {
1064
- _this.setState({
1065
- weekCycleEnd: value
1066
- });
1067
- if (_this.state.weekRadiochecked === 3) {
1068
- _this.changeState({
1069
- dayOfWekVal: "".concat(_this.state.weekCycleStart, "-").concat(value)
1070
- });
1071
- }
1072
- });
1073
- // CRON-周-指定该月的第几周
1074
- _defineProperty(_this, "weekStart", function (value) {
1075
- _this.setState({
1076
- weekStart: value
1077
- });
1078
- if (_this.state.weekRadiochecked === 4) {
1079
- _this.changeState({
1080
- dayOfWekVal: "".concat(_this.state.weekEvery, "#").concat(value)
1081
- });
1082
- }
1083
- });
1084
- // CRON-周-指定星期几
1085
- _defineProperty(_this, "weekEvery", function (value) {
1086
- _this.setState({
1087
- weekEvery: value
1088
- });
1089
- if (_this.state.weekRadiochecked === 4) {
1090
- _this.changeState({
1091
- dayOfWekVal: "".concat(value, "#").concat(_this.state.weekStart)
1092
- });
1093
- }
1094
- });
1095
- // CRON-周-每月最后一个星其几
1096
- _defineProperty(_this, "changeweekEnd", function (value) {
1097
- _this.setState({
1098
- weekEnd: value
1099
- });
1100
- if (_this.state.weekRadiochecked === 5) {
1101
- _this.changeState({
1102
- dayOfWekVal: "".concat(value, "L")
1103
- });
1104
- }
1105
- });
1106
- // CRON-周-指定选择复选框
1107
- _defineProperty(_this, "onWeekCheckChange", function (checkedValues) {
1108
- var weekChecked = checkedValues.length > 0 ? checkedValues.join(',') : 'MON';
1109
- _this.setState({
1110
- weekChecked: weekChecked
1111
- });
1112
- if (_this.state.weekRadiochecked === 6) {
1113
- _this.changeState({
1114
- dayOfWekVal: weekChecked
1115
- });
1116
- }
1117
- });
1118
- // CRON-年-radio选择回调
1119
- _defineProperty(_this, "onYearRadioChange", function (e) {
1120
- var yearRadiochecked = e.target.value;
1121
- _this.setState({
1122
- yearRadiochecked: yearRadiochecked
1123
- });
1124
- // eslint-disable-next-line default-case
1125
- switch (yearRadiochecked) {
1126
- case 1:
1127
- _this.setState({
1128
- yearVal: ''
1129
- });
1130
- break;
1131
- case 2:
1132
- _this.setState({
1133
- yearVal: '*'
1134
- });
1135
- break;
1136
- case 3:
1137
- _this.setState({
1138
- yearVal: "".concat(_this.state.yearCycleStart, "-").concat(_this.state.yearCycleEnd)
1139
- });
1140
- break;
1141
- }
1142
- if (yearRadiochecked !== 2) {
1143
- var _this$state = _this.state,
1144
- secondVal = _this$state.secondVal,
1145
- minVal = _this$state.minVal,
1146
- hourVal = _this$state.hourVal,
1147
- dayOfMonVal = _this$state.dayOfMonVal,
1148
- MonVal = _this$state.MonVal,
1149
- dayOfWekVal = _this$state.dayOfWekVal;
1150
- if (secondVal === '*') {
1151
- _this.setState({
1152
- secondVal: '0'
1153
- });
1154
- }
1155
- if (minVal === '*') {
1156
- _this.setState({
1157
- minVal: '0'
1158
- });
1159
- }
1160
- if (hourVal === '*') {
1161
- _this.setState({
1162
- hourVal: '0'
1163
- });
1164
- }
1165
- if (dayOfMonVal === '*') {
1166
- _this.setState({
1167
- dayOfMonVal: '0'
1168
- });
1169
- }
1170
- if (MonVal === '*') {
1171
- _this.setState({
1172
- MonVal: '0'
1173
- });
1174
- }
1175
- if (dayOfWekVal === '*') {
1176
- _this.setState({
1177
- dayOfWekVal: '?'
1178
- });
1179
- }
1180
- }
1181
- });
1182
- // CRON-年-指定周期-周期开始值输入框的回调
1183
- _defineProperty(_this, "yearCycleStart", function (e) {
1184
- if (_this.state.yearRadiochecked === 3) {
1185
- _this.setState({
1186
- yearVal: "".concat(e.target.value, "-").concat(_this.state.yearCycleEnd)
1187
- });
1188
- }
1189
- _this.setState({
1190
- yearCycleStart: e.target.value
1191
- });
1192
- });
1193
- // CRON-年-指定周期-周期结束值输入框的回调
1194
- _defineProperty(_this, "yearCycleEnd", function (e) {
1195
- if (_this.state.yearRadiochecked === 3) {
1196
- _this.setState({
1197
- yearVal: "".concat(_this.state.yearCycleStart, "-").concat(e.target.value)
1198
- });
1199
- }
1200
- _this.setState({
1201
- yearCycleEnd: e.target.value
1202
- });
1203
- });
1204
- _defineProperty(_this, "creatCron", function () {
1205
- var _this$state2 = _this.state,
1206
- secondVal = _this$state2.secondVal,
1207
- minVal = _this$state2.minVal,
1208
- hourVal = _this$state2.hourVal,
1209
- dayOfMonVal = _this$state2.dayOfMonVal,
1210
- MonVal = _this$state2.MonVal,
1211
- dayOfWekVal = _this$state2.dayOfWekVal,
1212
- yearVal = _this$state2.yearVal;
1213
- var str = "".concat(secondVal, " ").concat(minVal, " ").concat(hourVal, " ").concat(dayOfMonVal, " ").concat(MonVal, " ").concat(dayOfWekVal);
1214
- var onChange = _this.props.onChange;
1215
- if (onChange) {
1216
- onChange(str);
1217
- }
1218
- });
1219
- var _value = props.value,
1220
- _props$type = props.type,
1221
- type = _props$type === void 0 ? ['minute', 'hour', 'day', 'month'] : _props$type;
1222
- var values = _value && _value !== '' && cronValidate(_value) ? _value : '0 0 0 * * ?';
1223
- var cronArr = values.split(' ');
1224
- var time = ['second', 'minute', 'hour', 'day', 'month', 'week'];
1225
- var TabsActiveKey = 1;
1226
- for (var _i4 = 0; _i4 < time.length; _i4++) {
1227
- if (type.indexOf(time[_i4]) > -1) {
1228
- TabsActiveKey = _i4 + 1;
1229
- break;
1230
- }
1231
- }
1232
-
1233
- // 秒
1234
- var second = cronArr[0];
1235
- var secondCycleStart = 1;
1236
- var secondCycleEnd = 1;
1237
- var secondStart = 1;
1238
- var secondEvery = 1;
1239
- var _secondChecked = '0';
1240
- var _SecondRadiochecked = 1;
1241
- if (second === '*') {
1242
- _SecondRadiochecked = 1;
1243
- } else if (second.indexOf('-') > -1) {
1244
- _SecondRadiochecked = 2;
1245
- var _second$split = second.split('-');
1246
- var _second$split2 = _slicedToArray(_second$split, 2);
1247
- secondCycleStart = _second$split2[0];
1248
- secondCycleEnd = _second$split2[1];
1249
- } else if (second.indexOf('/') > -1) {
1250
- _SecondRadiochecked = 3;
1251
- var _second$split3 = second.split('/');
1252
- var _second$split4 = _slicedToArray(_second$split3, 2);
1253
- secondStart = _second$split4[0];
1254
- secondEvery = _second$split4[1];
1255
- } else {
1256
- _SecondRadiochecked = 4;
1257
- _secondChecked = second;
1258
- }
1259
- // 分
1260
- var minute = cronArr[1];
1261
- var minuteCycleStart = 1;
1262
- var minuteCycleEnd = 1;
1263
- var minuteStart = 1;
1264
- var minuteEvery = 1;
1265
- var _minuteChecked = '0';
1266
- var _minuteRadiochecked = 1;
1267
- if (minute === '*') {
1268
- _minuteRadiochecked = 1;
1269
- } else if (minute.indexOf('-') > -1) {
1270
- _minuteRadiochecked = 2;
1271
- var _minute$split = minute.split('-');
1272
- var _minute$split2 = _slicedToArray(_minute$split, 2);
1273
- minuteCycleStart = _minute$split2[0];
1274
- minuteCycleEnd = _minute$split2[1];
1275
- } else if (minute.indexOf('/') > -1) {
1276
- _minuteRadiochecked = 3;
1277
- var _minute$split3 = minute.split('/');
1278
- var _minute$split4 = _slicedToArray(_minute$split3, 2);
1279
- minuteStart = _minute$split4[0];
1280
- minuteEvery = _minute$split4[1];
1281
- } else {
1282
- _minuteRadiochecked = 4;
1283
- _minuteChecked = minute;
1284
- }
1285
- // 时
1286
- var hour = cronArr[2];
1287
- var hourCycleStart = 1;
1288
- var hourCycleEnd = 1;
1289
- var hourStart = 1;
1290
- var hourEvery = 1;
1291
- var _hourChecked = '0';
1292
- var _hourRadiochecked = 1;
1293
- if (hour === '*') {
1294
- _hourRadiochecked = 1;
1295
- } else if (hour.indexOf('-') > -1) {
1296
- _hourRadiochecked = 2;
1297
- var _hour$split = hour.split('-');
1298
- var _hour$split2 = _slicedToArray(_hour$split, 2);
1299
- hourCycleStart = _hour$split2[0];
1300
- hourCycleEnd = _hour$split2[1];
1301
- } else if (hour.indexOf('/') > -1) {
1302
- _hourRadiochecked = 3;
1303
- var _hour$split3 = hour.split('/');
1304
- var _hour$split4 = _slicedToArray(_hour$split3, 2);
1305
- hourStart = _hour$split4[0];
1306
- hourEvery = _hour$split4[1];
1307
- } else {
1308
- _hourRadiochecked = 4;
1309
- _hourChecked = hour;
1310
- }
1311
-
1312
- // 天
1313
- var day = cronArr[3];
1314
- var daysCycleStart = 1;
1315
- var daysCycleEnd = 1;
1316
- var daysStart = 1;
1317
- var daysEvery = 1;
1318
- var _daysChecked = '1';
1319
- var daysForWorking = 1;
1320
- var _daysRadiochecked = 1;
1321
- if (day === '*') {
1322
- _daysRadiochecked = 1;
1323
- } else if (day === '?') {
1324
- _daysRadiochecked = 2;
1325
- } else if (day.indexOf('-') > -1) {
1326
- _daysRadiochecked = 3;
1327
- var _day$split = day.split('-');
1328
- var _day$split2 = _slicedToArray(_day$split, 2);
1329
- daysCycleStart = _day$split2[0];
1330
- daysCycleEnd = _day$split2[1];
1331
- } else if (day.indexOf('/') > -1) {
1332
- _daysRadiochecked = 4;
1333
- var _day$split3 = day.split('/');
1334
- var _day$split4 = _slicedToArray(_day$split3, 2);
1335
- daysStart = _day$split4[0];
1336
- daysEvery = _day$split4[1];
1337
- } else if (day.indexOf('W') > -1) {
1338
- _daysRadiochecked = 5;
1339
- daysForWorking = day.slice(0, day.length - 1);
1340
- } else if (day.indexOf('L') > -1) {
1341
- _daysRadiochecked = 6;
1342
- } else {
1343
- _daysRadiochecked = 7;
1344
- _daysChecked = day;
1345
- }
1346
-
1347
- // 月
1348
- var month = cronArr[4];
1349
- var monthCycleStart = 1;
1350
- var monthCycleEnd = 1;
1351
- var monthStart = 1;
1352
- var monthEvery = 1;
1353
- var _monthChecked = '1';
1354
- var _monthRadiochecked = 1;
1355
- if (month === '*') {
1356
- _monthRadiochecked = 1;
1357
- } else if (month.indexOf('-') > -1) {
1358
- _monthRadiochecked = 3;
1359
- var _month$split = month.split('-');
1360
- var _month$split2 = _slicedToArray(_month$split, 2);
1361
- monthCycleStart = _month$split2[0];
1362
- monthCycleEnd = _month$split2[1];
1363
- } else if (month.indexOf('/') > -1) {
1364
- _monthRadiochecked = 4;
1365
- var _month$split3 = month.split('/');
1366
- var _month$split4 = _slicedToArray(_month$split3, 2);
1367
- monthStart = _month$split4[0];
1368
- monthEvery = _month$split4[1];
1369
- } else {
1370
- _monthRadiochecked = 5;
1371
- _monthChecked = month;
1372
- }
1373
-
1374
- // 周
1375
- var week = cronArr[5];
1376
- var weekCycleStart = 'MON';
1377
- var weekCycleEnd = 'MON';
1378
- var weekStart = 1; // 指定第几周
1379
- var weekEvery = 'MON'; // 指定星期几
1380
- var _weekChecked = 'MON';
1381
- var weekEnd = 'MON';
1382
- var _weekRadiochecked = 2;
1383
- if (week === '*') {
1384
- _weekRadiochecked = 1;
1385
- } else if (week === '?') {
1386
- _weekRadiochecked = 2;
1387
- } else if (week.indexOf('-') > -1) {
1388
- _weekRadiochecked = 3;
1389
- var _week$split = week.split('-');
1390
- var _week$split2 = _slicedToArray(_week$split, 2);
1391
- weekCycleStart = _week$split2[0];
1392
- weekCycleEnd = _week$split2[1];
1393
- } else if (week.indexOf('/') > -1) {
1394
- _weekRadiochecked = 4;
1395
- var _week$split3 = week.split('/');
1396
- var _week$split4 = _slicedToArray(_week$split3, 2);
1397
- weekStart = _week$split4[0];
1398
- weekEvery = _week$split4[1];
1399
- } else if (week.indexOf('L') > -1) {
1400
- _weekRadiochecked = 5;
1401
- weekEnd = week.slice(0, week.length - 1);
1402
- } else {
1403
- _weekRadiochecked = 6;
1404
- _weekChecked = week;
1405
- }
1406
- _this.state = {
1407
- secondVal: second,
1408
- // 秒
1409
- minVal: minute,
1410
- // 分
1411
- hourVal: hour,
1412
- // 时
1413
- dayOfMonVal: day,
1414
- // 天
1415
- MonVal: month,
1416
- // 月
1417
- dayOfWekVal: week,
1418
- // 周
1419
- yearVal: '',
1420
- // 年
1421
-
1422
- secondCycleStart: secondCycleStart,
1423
- // 周期开始
1424
- secondCycleEnd: secondCycleEnd,
1425
- // 周期结束
1426
- secondStart: secondStart,
1427
- // CRON-秒-几秒开始
1428
- secondEvery: secondEvery,
1429
- // CRON-秒-每几秒执行一次
1430
- secondChecked: _secondChecked,
1431
- // CRON-秒-默认指定多选
1432
- SecondRadiochecked: _SecondRadiochecked,
1433
- // CRON-秒-单选按钮
1434
-
1435
- minuteCycleStart: minuteCycleStart,
1436
- // 分
1437
- minuteCycleEnd: minuteCycleEnd,
1438
- minuteStart: minuteStart,
1439
- minuteEvery: minuteEvery,
1440
- minuteChecked: _minuteChecked,
1441
- minuteRadiochecked: _minuteRadiochecked,
1442
- hourCycleStart: hourCycleStart,
1443
- hourCycleEnd: hourCycleEnd,
1444
- hourStart: hourStart,
1445
- hourEvery: hourEvery,
1446
- hourChecked: _hourChecked,
1447
- hourRadiochecked: _hourRadiochecked,
1448
- daysCycleStart: daysCycleStart,
1449
- daysCycleEnd: daysCycleEnd,
1450
- daysStart: daysStart,
1451
- daysEvery: daysEvery,
1452
- daysChecked: _daysChecked,
1453
- daysForWorking: daysForWorking,
1454
- daysRadiochecked: _daysRadiochecked,
1455
- monthCycleStart: monthCycleStart,
1456
- monthCycleEnd: monthCycleEnd,
1457
- monthStart: monthStart,
1458
- monthEvery: monthEvery,
1459
- monthChecked: _monthChecked,
1460
- monthRadiochecked: _monthRadiochecked,
1461
- weekCycleStart: weekCycleStart,
1462
- weekCycleEnd: weekCycleEnd,
1463
- weekStart: weekStart,
1464
- // 第几周
1465
- weekEvery: weekEvery,
1466
- // 星期几
1467
- weekChecked: _weekChecked,
1468
- weekEnd: weekEnd,
1469
- weekRadiochecked: _weekRadiochecked,
1470
- yearCycleStart: '',
1471
- yearCycleEnd: '',
1472
- yearRadiochecked: 1,
1473
- TabsActiveKey: TabsActiveKey,
1474
- type: type
1475
- };
1476
- return _this;
1477
- }
1478
- _inherits(CRON, _React$Component);
1479
- return _createClass(CRON, [{
1480
- key: "render",
1481
- value: function render() {
1482
- var radioStyle = {
1483
- display: 'block',
1484
- height: '30px',
1485
- lineHeight: '30px'
1486
- };
1487
- var _this$state3 = this.state,
1488
- _this$state3$SecondRa = _this$state3.SecondRadiochecked,
1489
- SecondRadiochecked = _this$state3$SecondRa === void 0 ? '1' : _this$state3$SecondRa,
1490
- secondCycleStart = _this$state3.secondCycleStart,
1491
- secondCycleEnd = _this$state3.secondCycleEnd,
1492
- secondStart = _this$state3.secondStart,
1493
- secondEvery = _this$state3.secondEvery,
1494
- secondChecked = _this$state3.secondChecked,
1495
- minuteCycleStart = _this$state3.minuteCycleStart,
1496
- minuteCycleEnd = _this$state3.minuteCycleEnd,
1497
- minuteStart = _this$state3.minuteStart,
1498
- minuteEvery = _this$state3.minuteEvery,
1499
- minuteChecked = _this$state3.minuteChecked,
1500
- minuteRadiochecked = _this$state3.minuteRadiochecked,
1501
- hourCycleStart = _this$state3.hourCycleStart,
1502
- hourCycleEnd = _this$state3.hourCycleEnd,
1503
- hourStart = _this$state3.hourStart,
1504
- hourEvery = _this$state3.hourEvery,
1505
- hourChecked = _this$state3.hourChecked,
1506
- hourRadiochecked = _this$state3.hourRadiochecked,
1507
- daysCycleStart = _this$state3.daysCycleStart,
1508
- daysCycleEnd = _this$state3.daysCycleEnd,
1509
- daysStart = _this$state3.daysStart,
1510
- daysEvery = _this$state3.daysEvery,
1511
- daysChecked = _this$state3.daysChecked,
1512
- daysForWorking = _this$state3.daysForWorking,
1513
- daysRadiochecked = _this$state3.daysRadiochecked,
1514
- monthCycleStart = _this$state3.monthCycleStart,
1515
- monthCycleEnd = _this$state3.monthCycleEnd,
1516
- monthStart = _this$state3.monthStart,
1517
- monthEvery = _this$state3.monthEvery,
1518
- monthChecked = _this$state3.monthChecked,
1519
- monthRadiochecked = _this$state3.monthRadiochecked,
1520
- weekCycleStart = _this$state3.weekCycleStart,
1521
- weekCycleEnd = _this$state3.weekCycleEnd,
1522
- weekStart = _this$state3.weekStart,
1523
- weekEvery = _this$state3.weekEvery,
1524
- weekChecked = _this$state3.weekChecked,
1525
- weekEnd = _this$state3.weekEnd,
1526
- weekRadiochecked = _this$state3.weekRadiochecked,
1527
- TabsActiveKey = _this$state3.TabsActiveKey,
1528
- type = _this$state3.type;
1529
- var _this$props = this.props,
1530
- _this$props$style = _this$props.style,
1531
- style = _this$props$style === void 0 ? {
1532
- width: 576
1533
- } : _this$props$style,
1534
- className = _this$props.className,
1535
- _this$props$lang = _this$props.lang,
1536
- lang = _this$props$lang === void 0 ? 'zh_CN' : _this$props$lang;
1537
- var i18n = getI18n(lang); // 国际化
1538
- // const Cls = classnames('cron', className);
1539
-
1540
- var children = weekOptions.map(function (w) {
1541
- return /*#__PURE__*/React.createElement(Select$1.Option, {
1542
- key: w,
1543
- value: w
1544
- }, w);
1545
- });
1546
- return /*#__PURE__*/React.createElement("div", {
1547
- className: "cron-select",
1548
- style: style
1549
- }, /*#__PURE__*/React.createElement(_Tabs, {
1550
- defaultActiveKey: String(TabsActiveKey),
1551
- onChange: this.callback
1552
- }, this.isShowDom('second', type) && /*#__PURE__*/React.createElement(_Tabs.TabPane, {
1553
- tab: i18n.second,
1554
- key: "1"
1555
- }, /*#__PURE__*/React.createElement(RadioGroup, {
1556
- name: "radiogroup",
1557
- value: SecondRadiochecked,
1558
- onChange: this.onSecondRadioChange
1559
- }, /*#__PURE__*/React.createElement(_Radio, {
1560
- style: radioStyle,
1561
- value: 1
1562
- }, i18n.EverySecond), /*#__PURE__*/React.createElement(_Radio, {
1563
- style: radioStyle,
1564
- value: 2
1565
- }, i18n.from, /*#__PURE__*/React.createElement(_InputNumber, {
1566
- disabled: SecondRadiochecked !== 2,
1567
- min: 0,
1568
- max: 59,
1569
- value: secondCycleStart,
1570
- onChange: this.secondCycleStart,
1571
- style: {
1572
- width: 100
1573
- }
1574
- }), "\xA0-", /*#__PURE__*/React.createElement(_InputNumber, {
1575
- disabled: SecondRadiochecked !== 2,
1576
- min: 0,
1577
- max: 59,
1578
- value: secondCycleEnd,
1579
- onChange: this.secondCycleEnd,
1580
- style: {
1581
- width: 100
1582
- }
1583
- }), i18n.second1), /*#__PURE__*/React.createElement(_Radio, {
1584
- style: radioStyle,
1585
- value: 3
1586
- }, i18n.from, /*#__PURE__*/React.createElement(_InputNumber, {
1587
- disabled: SecondRadiochecked !== 3,
1588
- min: 0,
1589
- max: 59,
1590
- value: secondStart,
1591
- onChange: this.secondStart,
1592
- style: {
1593
- width: 100
1594
- }
1595
- }), i18n.secondstart, i18n.Every, /*#__PURE__*/React.createElement(_InputNumber, {
1596
- disabled: SecondRadiochecked !== 3,
1597
- min: 0,
1598
- max: 59,
1599
- value: secondEvery,
1600
- onChange: this.secondEvery,
1601
- style: {
1602
- width: 100
1603
- }
1604
- }), i18n.second1, i18n.doOne), /*#__PURE__*/React.createElement(_Radio, {
1605
- style: radioStyle,
1606
- value: 4
1607
- }, i18n.appoint, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CheckboxGroup, {
1608
- value: secondChecked.split(','),
1609
- style: {
1610
- width: '100%'
1611
- },
1612
- onChange: this.onSecndcheckChange
1613
- }, /*#__PURE__*/React.createElement(_Row, null, " ", this.createChecks(options, SecondRadiochecked, 4), " "))))), this.isShowDom('minute', type) && /*#__PURE__*/React.createElement(_Tabs.TabPane, {
1614
- tab: i18n.minute,
1615
- key: "2"
1616
- }, /*#__PURE__*/React.createElement(RadioGroup, {
1617
- name: "radiogroup",
1618
- value: minuteRadiochecked,
1619
- onChange: this.onMinuteRadioChange
1620
- }, /*#__PURE__*/React.createElement(_Radio, {
1621
- style: radioStyle,
1622
- value: 1
1623
- }, i18n.Everyminute), /*#__PURE__*/React.createElement(_Radio, {
1624
- style: radioStyle,
1625
- value: 2
1626
- }, i18n.from, /*#__PURE__*/React.createElement(_InputNumber, {
1627
- disabled: minuteRadiochecked !== 2,
1628
- min: 0,
1629
- max: 59,
1630
- value: minuteCycleStart,
1631
- onChange: this.minuteCycleStart,
1632
- style: {
1633
- width: 100
1634
- }
1635
- }), "\xA0-", /*#__PURE__*/React.createElement(_InputNumber, {
1636
- disabled: minuteRadiochecked !== 2,
1637
- min: 0,
1638
- max: 59,
1639
- value: minuteCycleEnd,
1640
- onChange: this.minuteCycleEnd,
1641
- style: {
1642
- width: 100
1643
- }
1644
- }), i18n.minute1), /*#__PURE__*/React.createElement(_Radio, {
1645
- style: radioStyle,
1646
- value: 3
1647
- }, i18n.from, /*#__PURE__*/React.createElement(_InputNumber, {
1648
- disabled: minuteRadiochecked !== 3,
1649
- min: 0,
1650
- max: 59,
1651
- value: minuteStart,
1652
- onChange: this.minuteStart,
1653
- style: {
1654
- width: 100
1655
- }
1656
- }), i18n.minutestart, i18n.Every, /*#__PURE__*/React.createElement(_InputNumber, {
1657
- disabled: minuteRadiochecked !== 3,
1658
- min: 0,
1659
- max: 59,
1660
- value: minuteEvery,
1661
- onChange: this.minuteEvery,
1662
- style: {
1663
- width: 100
1664
- }
1665
- }), i18n.minute1, i18n.doOne), /*#__PURE__*/React.createElement(_Radio, {
1666
- style: radioStyle,
1667
- value: 4
1668
- }, i18n.appoint, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CheckboxGroup, {
1669
- value: minuteChecked.split(','),
1670
- style: {
1671
- width: '100%'
1672
- },
1673
- onChange: this.onMinuteCheckChange
1674
- }, /*#__PURE__*/React.createElement(_Row, null, " ", this.createChecks(options, minuteRadiochecked, 4), " "))))), this.isShowDom('hour', type) && /*#__PURE__*/React.createElement(_Tabs.TabPane, {
1675
- tab: i18n.hour,
1676
- key: "3"
1677
- }, /*#__PURE__*/React.createElement(RadioGroup, {
1678
- name: "radiogroup",
1679
- value: hourRadiochecked,
1680
- onChange: this.onHourRadioChange
1681
- }, /*#__PURE__*/React.createElement(_Radio, {
1682
- style: radioStyle,
1683
- value: 1
1684
- }, i18n.Everyhour), /*#__PURE__*/React.createElement(_Radio, {
1685
- style: radioStyle,
1686
- value: 2
1687
- }, i18n.from, /*#__PURE__*/React.createElement(_InputNumber, {
1688
- disabled: hourRadiochecked !== 2,
1689
- min: 0,
1690
- max: 23,
1691
- value: hourCycleStart,
1692
- onChange: this.hourCycleStart,
1693
- style: {
1694
- width: 100
1695
- }
1696
- }), "\xA0-", /*#__PURE__*/React.createElement(_InputNumber, {
1697
- disabled: hourRadiochecked !== 2,
1698
- min: 0,
1699
- max: 23,
1700
- value: hourCycleEnd,
1701
- onChange: this.hourCycleEnd,
1702
- style: {
1703
- width: 100
1704
- }
1705
- }), i18n.hour1), /*#__PURE__*/React.createElement(_Radio, {
1706
- style: radioStyle,
1707
- value: 3
1708
- }, i18n.from, /*#__PURE__*/React.createElement(_InputNumber, {
1709
- disabled: hourRadiochecked !== 3,
1710
- min: 0,
1711
- max: 23,
1712
- value: hourStart,
1713
- onChange: this.hourStart,
1714
- style: {
1715
- width: 100
1716
- }
1717
- }), i18n.hourstart, i18n.Every, /*#__PURE__*/React.createElement(_InputNumber, {
1718
- disabled: hourRadiochecked !== 3,
1719
- min: 0,
1720
- max: 23,
1721
- value: hourEvery,
1722
- onChange: this.hourEvery,
1723
- style: {
1724
- width: 100
1725
- }
1726
- }), i18n.hour1, i18n.doOne), /*#__PURE__*/React.createElement(_Radio, {
1727
- style: radioStyle,
1728
- value: 4
1729
- }, i18n.appoint, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CheckboxGroup, {
1730
- value: hourChecked.split(','),
1731
- style: {
1732
- width: '100%'
1733
- },
1734
- onChange: this.onHourCheckChange
1735
- }, /*#__PURE__*/React.createElement(_Row, null, " ", this.createChecks(hourOptions, hourRadiochecked, 4), " "))))), this.isShowDom('day', type) && /*#__PURE__*/React.createElement(_Tabs.TabPane, {
1736
- tab: i18n.day,
1737
- key: "4"
1738
- }, /*#__PURE__*/React.createElement(RadioGroup, {
1739
- name: "radiogroup",
1740
- value: daysRadiochecked,
1741
- onChange: this.onDaysRadioChange
1742
- }, /*#__PURE__*/React.createElement(_Radio, {
1743
- style: radioStyle,
1744
- value: 1
1745
- }, i18n.Everyday), /*#__PURE__*/React.createElement(_Radio, {
1746
- style: radioStyle,
1747
- value: 2
1748
- }, i18n.noappoint), /*#__PURE__*/React.createElement(_Radio, {
1749
- style: radioStyle,
1750
- value: 3
1751
- }, i18n.from, /*#__PURE__*/React.createElement(_InputNumber, {
1752
- disabled: daysRadiochecked !== 3,
1753
- min: 1,
1754
- max: 31,
1755
- value: daysCycleStart,
1756
- onChange: this.daysCycleStart,
1757
- style: {
1758
- width: 100
1759
- }
1760
- }), "\xA0-", /*#__PURE__*/React.createElement(_InputNumber, {
1761
- disabled: daysRadiochecked !== 3,
1762
- min: 1,
1763
- max: 31,
1764
- value: daysCycleEnd,
1765
- onChange: this.daysCycleEnd,
1766
- style: {
1767
- width: 100
1768
- }
1769
- }), i18n.day1), /*#__PURE__*/React.createElement(_Radio, {
1770
- style: radioStyle,
1771
- value: 4
1772
- }, i18n.from, /*#__PURE__*/React.createElement(_InputNumber, {
1773
- disabled: daysRadiochecked !== 4,
1774
- min: 1,
1775
- max: 31,
1776
- value: daysStart,
1777
- onChange: this.daysStart,
1778
- style: {
1779
- width: 100
1780
- }
1781
- }), i18n.daystart, i18n.Every, /*#__PURE__*/React.createElement(_InputNumber, {
1782
- disabled: daysRadiochecked !== 4,
1783
- min: 1,
1784
- max: 31,
1785
- value: daysEvery,
1786
- onChange: this.daysEvery,
1787
- style: {
1788
- width: 100
1789
- }
1790
- }), i18n.day1, i18n.doOne), /*#__PURE__*/React.createElement(_Radio, {
1791
- style: radioStyle,
1792
- value: 7
1793
- }, i18n.appoint, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CheckboxGroup, {
1794
- value: daysChecked.split(','),
1795
- style: {
1796
- width: '100%'
1797
- },
1798
- onChange: this.onDaysCheckChange
1799
- }, /*#__PURE__*/React.createElement(_Row, null, " ", this.createChecks(daysForMonOptions, daysRadiochecked, 7), " "))))), this.isShowDom('month', type) && /*#__PURE__*/React.createElement(_Tabs.TabPane, {
1800
- tab: i18n.month,
1801
- key: "5"
1802
- }, /*#__PURE__*/React.createElement(RadioGroup, {
1803
- name: "radiogroup",
1804
- value: monthRadiochecked,
1805
- onChange: this.onMonthRadioChange
1806
- }, /*#__PURE__*/React.createElement(_Radio, {
1807
- style: radioStyle,
1808
- value: 1
1809
- }, i18n.Everymonth), /*#__PURE__*/React.createElement(_Radio, {
1810
- style: radioStyle,
1811
- value: 3
1812
- }, i18n.from, /*#__PURE__*/React.createElement(_InputNumber, {
1813
- disabled: monthRadiochecked !== 3,
1814
- min: 1,
1815
- max: 12,
1816
- value: monthCycleStart,
1817
- onChange: this.monthCycleStart,
1818
- style: {
1819
- width: 100
1820
- }
1821
- }), "\xA0-", /*#__PURE__*/React.createElement(_InputNumber, {
1822
- disabled: monthRadiochecked !== 3,
1823
- min: 1,
1824
- max: 12,
1825
- value: monthCycleEnd,
1826
- onChange: this.monthCycleEnd,
1827
- style: {
1828
- width: 100
1829
- }
1830
- }), i18n.month1), /*#__PURE__*/React.createElement(_Radio, {
1831
- style: radioStyle,
1832
- value: 4
1833
- }, i18n.from, /*#__PURE__*/React.createElement(_InputNumber, {
1834
- disabled: monthRadiochecked !== 4,
1835
- min: 1,
1836
- max: 12,
1837
- value: monthStart,
1838
- onChange: this.monthStart,
1839
- style: {
1840
- width: 100
1841
- }
1842
- }), i18n.monthstart, i18n.Every, /*#__PURE__*/React.createElement(_InputNumber, {
1843
- disabled: monthRadiochecked !== 4,
1844
- min: 1,
1845
- max: 12,
1846
- value: monthEvery,
1847
- onChange: this.monthEvery,
1848
- style: {
1849
- width: 100
1850
- }
1851
- }), i18n.month1, i18n.doOne), /*#__PURE__*/React.createElement(_Radio, {
1852
- style: radioStyle,
1853
- value: 5
1854
- }, i18n.appoint, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CheckboxGroup, {
1855
- value: monthChecked.split(','),
1856
- style: {
1857
- width: '100%'
1858
- },
1859
- onChange: this.onMonthCheckChange
1860
- }, /*#__PURE__*/React.createElement(_Row, null, " ", this.createChecks(monthOptions, monthRadiochecked, 5), " "))))), this.isShowDom('week', type) && /*#__PURE__*/React.createElement(_Tabs.TabPane, {
1861
- tab: i18n.week,
1862
- key: "6"
1863
- }, /*#__PURE__*/React.createElement(RadioGroup, {
1864
- name: "radiogroup",
1865
- value: weekRadiochecked,
1866
- onChange: this.onWeekRadioChange
1867
- }, /*#__PURE__*/React.createElement(_Radio, {
1868
- style: radioStyle,
1869
- value: 1
1870
- }, i18n.Everyweek), /*#__PURE__*/React.createElement(_Radio, {
1871
- style: radioStyle,
1872
- value: 2
1873
- }, i18n.noappoint), /*#__PURE__*/React.createElement(_Radio, {
1874
- style: radioStyle,
1875
- value: 3
1876
- }, i18n.from, i18n.week1, /*#__PURE__*/React.createElement(Select$1, {
1877
- disabled: weekRadiochecked !== 3,
1878
- value: weekCycleStart,
1879
- onChange: this.weekCycleStart,
1880
- style: {
1881
- width: 100
1882
- }
1883
- }, children), "\xA0-", /*#__PURE__*/React.createElement(Select$1, {
1884
- disabled: weekRadiochecked !== 3,
1885
- value: weekCycleEnd,
1886
- onChange: this.weekCycleEnd,
1887
- style: {
1888
- width: 100
1889
- }
1890
- }, children)), /*#__PURE__*/React.createElement(_Radio, {
1891
- style: radioStyle,
1892
- value: 4
1893
- }, i18n.monthweek, /*#__PURE__*/React.createElement(_InputNumber, {
1894
- disabled: weekRadiochecked !== 4,
1895
- min: 1,
1896
- max: 5,
1897
- value: weekStart,
1898
- onChange: this.weekStart,
1899
- style: {
1900
- width: 100
1901
- }
1902
- }), i18n.week3, i18n.week2, /*#__PURE__*/React.createElement(Select$1, {
1903
- disabled: weekRadiochecked !== 4,
1904
- value: weekEvery,
1905
- onChange: this.weekEvery,
1906
- style: {
1907
- width: 100
1908
- }
1909
- }, children)), /*#__PURE__*/React.createElement(_Radio, {
1910
- style: radioStyle,
1911
- value: 5
1912
- }, i18n.weekend, /*#__PURE__*/React.createElement(Select$1, {
1913
- disabled: weekRadiochecked !== 5,
1914
- value: weekEnd,
1915
- onChange: this.changeweekEnd,
1916
- style: {
1917
- width: 100
1918
- }
1919
- }, children)), /*#__PURE__*/React.createElement(_Radio, {
1920
- style: radioStyle,
1921
- value: 6
1922
- }, i18n.appoint, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CheckboxGroup, {
1923
- value: weekChecked.split(','),
1924
- style: {
1925
- width: '100%'
1926
- },
1927
- onChange: this.onWeekCheckChange
1928
- }, /*#__PURE__*/React.createElement(_Row, null, " ", this.createChecks(weekOptions, weekRadiochecked, 6), " ")))))));
1929
- }
1930
- }]);
1931
- }(React.Component);
1932
- var Tree = LazyAntd.Tree,
1933
- TreeSelect = LazyAntd.TreeSelect,
1934
- Select = LazyAntd.Select,
1935
- Table = LazyAntd.Table,
1936
- Dropdown = LazyAntd.Dropdown;
1937
- var InputCron = /*#__PURE__*/function (_PureComponent) {
1938
- function InputCron() {
1939
- var _this2;
1940
- _classCallCheck(this, InputCron);
1941
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1942
- args[_key] = arguments[_key];
1943
- }
1944
- _this2 = _callSuper(this, InputCron, [].concat(args));
1945
- _defineProperty(_this2, "state", {
1946
- dateVisible: false,
1947
- value: undefined,
1948
- inputWay: 'manual'
1949
- });
1950
- _defineProperty(_this2, "handleChange", function (value) {
1951
- _this2.setState({
1952
- value: value
1953
- });
1954
- var onChange = _this2.props.onChange;
1955
- onChange && onChange(value);
1956
- });
1957
- _defineProperty(_this2, "clear", function () {
1958
- _this2.setState({
1959
- value: null
1960
- });
1961
- });
1962
- _defineProperty(_this2, "handleRadioChange", function (e) {
1963
- _this2.setState({
1964
- inputWay: e.target.value
1965
- });
1966
- });
1967
- _defineProperty(_this2, "handleInputChange", function (e) {
1968
- _this2.setState({
1969
- value: e.target.value
1970
- });
1971
- var onChange = _this2.props.onChange;
1972
- onChange && onChange(e.target.value);
1973
- });
1974
- return _this2;
1975
- }
1976
- _inherits(InputCron, _PureComponent);
1977
- return _createClass(InputCron, [{
1978
- key: "render",
1979
- value: function render() {
1980
- var _this3 = this;
1981
- var _this$state4 = this.state,
1982
- dateVisible = _this$state4.dateVisible,
1983
- value = _this$state4.value,
1984
- inputWay = _this$state4.inputWay;
1985
- var _this$props2 = this.props,
1986
- style = _this$props2.style,
1987
- lang = _this$props2.lang,
1988
- type = _this$props2.type,
1989
- width = _this$props2.width;
1990
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Radio.Group, {
1991
- onChange: this.handleRadioChange,
1992
- style: {
1993
- marginBottom: 8
1994
- },
1995
- value: inputWay
1996
- }, /*#__PURE__*/React.createElement(_Radio, {
1997
- value: "select"
1998
- }, "\u9009\u62E9"), /*#__PURE__*/React.createElement(_Radio, {
1999
- value: "manual"
2000
- }, "\u624B\u52A8")), inputWay === 'select' ? /*#__PURE__*/React.createElement(Dropdown, {
2001
- trigger: ['click'],
2002
- placement: "bottomLeft",
2003
- visible: dateVisible,
2004
- onVisibleChange: function onVisibleChange(visible) {
2005
- return _this3.setState({
2006
- dateVisible: visible
2007
- });
2008
- },
2009
- overlay: /*#__PURE__*/React.createElement(CRON, {
2010
- onChange: this.handleChange,
2011
- value: value,
2012
- style: style,
2013
- lang: lang,
2014
- type: type
2015
- })
2016
- }, /*#__PURE__*/React.createElement(_Input, {
2017
- readOnly: true,
2018
- value: value,
2019
- style: {
2020
- width: width
2021
- }
2022
- })) : /*#__PURE__*/React.createElement(_Input, {
2023
- value: value,
2024
- style: {
2025
- width: width
2026
- },
2027
- onChange: this.handleInputChange
2028
- }));
2029
- }
2030
- }], [{
2031
- key: "getDerivedStateFromProps",
2032
- value: function getDerivedStateFromProps(nextProps, prevState) {
2033
- var nextValue = nextProps.value;
2034
- var prevValue = prevState.value;
2035
- if (nextValue !== prevValue) {
2036
- return {
2037
- value: nextValue
2038
- };
2039
- }
2040
- return null;
2041
- }
2042
- }]);
2043
- }(PureComponent);
2044
- var InputCron$1 = InputCron;
2045
- var CronSelect = /*#__PURE__*/function (_React$Component2) {
2046
- function CronSelect() {
2047
- var _this4;
2048
- _classCallCheck(this, CronSelect);
2049
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2050
- args[_key2] = arguments[_key2];
2051
- }
2052
- _this4 = _callSuper(this, CronSelect, [].concat(args));
2053
- _defineProperty(_this4, "handleChange", function (data) {
2054
- var onChange = _this4.props.onChange;
2055
- onChange && onChange(data);
2056
- });
2057
- return _this4;
2058
- }
2059
- _inherits(CronSelect, _React$Component2);
2060
- return _createClass(CronSelect, [{
2061
- key: "render",
2062
- value: function render() {
2063
- var value = this.props.value;
2064
- return /*#__PURE__*/React.createElement(InputCron$1, {
2065
- onChange: this.handleChange,
2066
- lang: "zh_CN",
2067
- type: ['second', 'minute', 'hour', 'day', 'month', 'week'],
2068
- value: value
2069
- });
2070
- }
2071
- }]);
2072
- }(React.Component);
2073
- export { CronSelect as default };
2074
- //# sourceMappingURL=.root167.js.map