eoss 0.1.0-alpha.25 → 0.1.0-alpha.26

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 (254) hide show
  1. package/lib/0.js +1 -1
  2. package/lib/1.js +1 -1
  3. package/lib/10.js +1 -1
  4. package/lib/11.js +1 -1
  5. package/lib/12.js +1 -1
  6. package/lib/13.js +1 -1
  7. package/lib/14.js +1 -1
  8. package/lib/15.js +1 -1
  9. package/lib/16.js +1 -1
  10. package/lib/17.js +1 -1
  11. package/lib/18.js +1 -1
  12. package/lib/19.js +1 -1
  13. package/lib/20.js +1 -1
  14. package/lib/21.js +1 -1
  15. package/lib/22.js +1 -1
  16. package/lib/23.js +1 -1
  17. package/lib/24.js +1 -1
  18. package/lib/25.js +1 -1
  19. package/lib/26.js +1 -1
  20. package/lib/27.js +1 -1
  21. package/lib/28.js +1 -1
  22. package/lib/29.js +1 -1
  23. package/lib/3.js +1 -1
  24. package/lib/30.js +1 -1
  25. package/lib/31.js +1 -1
  26. package/lib/32.js +1 -1
  27. package/lib/33.js +1 -1
  28. package/lib/34.js +1 -1
  29. package/lib/35.js +1 -1
  30. package/lib/36.js +1 -1
  31. package/lib/37.js +1 -1
  32. package/lib/38.js +1 -1
  33. package/lib/39.js +1 -1
  34. package/lib/4.js +1 -1
  35. package/lib/40.js +1 -1
  36. package/lib/41.js +1 -1
  37. package/lib/42.js +1 -1
  38. package/lib/43.js +1 -1
  39. package/lib/44.js +1 -1
  40. package/lib/45.js +1 -1
  41. package/lib/46.js +1 -1
  42. package/lib/47.js +1 -1
  43. package/lib/48.js +1 -1
  44. package/lib/49.js +1 -1
  45. package/lib/5.js +1 -1
  46. package/lib/50.js +1 -1
  47. package/lib/51.js +1 -1
  48. package/lib/52.js +1 -1
  49. package/lib/53.js +1 -1
  50. package/lib/54.js +1 -1
  51. package/lib/55.js +1 -1
  52. package/lib/56.js +1 -1
  53. package/lib/57.js +1 -1
  54. package/lib/58.js +1 -1
  55. package/lib/59.js +1 -1
  56. package/lib/6.js +1 -1
  57. package/lib/60.js +1 -1
  58. package/lib/61.js +1 -1
  59. package/lib/62.js +1 -1
  60. package/lib/63.js +1 -1
  61. package/lib/64.js +1 -1
  62. package/lib/65.js +1 -1
  63. package/lib/66.js +1 -1
  64. package/lib/67.js +1 -1
  65. package/lib/68.js +1 -1
  66. package/lib/69.js +1 -1
  67. package/lib/7.js +1 -1
  68. package/lib/70.js +1 -1
  69. package/lib/71.js +1 -1
  70. package/lib/72.js +1 -1
  71. package/lib/73.js +1 -1
  72. package/lib/74.js +1 -1
  73. package/lib/75.js +1 -1
  74. package/lib/76.js +1 -1
  75. package/lib/77.js +1 -1
  76. package/lib/78.js +1 -1
  77. package/lib/79.js +1 -1
  78. package/lib/8.js +1 -1
  79. package/lib/80.js +1 -1
  80. package/lib/81.js +1 -1
  81. package/lib/9.js +1 -1
  82. package/lib/account-login.js +1000 -971
  83. package/lib/alert.js +2 -2
  84. package/lib/aside.js +2 -2
  85. package/lib/audit-trajectory.js +75 -71
  86. package/lib/autocomplete.js +2136 -1951
  87. package/lib/avatar.js +2 -2
  88. package/lib/backtop.js +2 -2
  89. package/lib/badge.js +2 -2
  90. package/lib/breadcrumb-item.js +4 -4
  91. package/lib/breadcrumb.js +4 -4
  92. package/lib/button-group.js +12 -12
  93. package/lib/button.js +2 -2
  94. package/lib/ca-login.js +913 -888
  95. package/lib/calendar.js +872 -847
  96. package/lib/card.js +2 -2
  97. package/lib/carousel-item.js +905 -880
  98. package/lib/carousel.js +1042 -1017
  99. package/lib/cascader-panel.js +926 -901
  100. package/lib/cascader.js +2022 -1837
  101. package/lib/checkbox-button.js +2 -2
  102. package/lib/checkbox-group.js +1000 -971
  103. package/lib/checkbox.js +2 -2
  104. package/lib/col.js +2 -2
  105. package/lib/collapse-item.js +2174 -1980
  106. package/lib/collapse.js +2175 -1980
  107. package/lib/color-picker.js +1112 -952
  108. package/lib/config/api.js +3 -0
  109. package/lib/container.js +2 -2
  110. package/lib/cron.js +2 -2
  111. package/lib/data-table.js +1007 -978
  112. package/lib/date-picker.js +2142 -1957
  113. package/lib/dialog.js +910 -885
  114. package/lib/divider.js +2 -2
  115. package/lib/drawer.js +2 -2
  116. package/lib/dropdown-item.js +4 -4
  117. package/lib/dropdown-menu.js +1104 -944
  118. package/lib/dropdown.js +925 -900
  119. package/lib/email-login.js +999 -970
  120. package/lib/empty.js +2 -2
  121. package/lib/eoss.common.js +8751 -4166
  122. package/lib/flip.js +2 -2
  123. package/lib/flow-group.js +906 -881
  124. package/lib/flow.js +1112 -1083
  125. package/lib/flows.js +1010 -981
  126. package/lib/footer.js +2 -2
  127. package/lib/form-item.js +909 -884
  128. package/lib/form.js +2185 -1986
  129. package/lib/guide.js +620 -0
  130. package/lib/header.js +2 -2
  131. package/lib/icon.js +981 -952
  132. package/lib/icons.js +2 -2
  133. package/lib/image-viewer.js +907 -882
  134. package/lib/image.js +4 -4
  135. package/lib/index.js +1 -1
  136. package/lib/infinite-scroll.js +2 -2
  137. package/lib/input-number.js +4 -4
  138. package/lib/input.js +910 -885
  139. package/lib/link.js +2 -2
  140. package/lib/loading.js +2 -2
  141. package/lib/login.js +1027 -998
  142. package/lib/lowcode.js +17336 -13510
  143. package/lib/main.js +14933 -14625
  144. package/lib/marquee.js +907 -882
  145. package/lib/menu-item-group.js +2 -2
  146. package/lib/menu-item.js +2 -2
  147. package/lib/menu.js +2011 -1826
  148. package/lib/message-box.js +923 -898
  149. package/lib/message.js +911 -886
  150. package/lib/notification.js +911 -886
  151. package/lib/option-group.js +2 -2
  152. package/lib/option.js +907 -882
  153. package/lib/page-header.js +2 -2
  154. package/lib/pagination.js +910 -885
  155. package/lib/phone-login.js +998 -969
  156. package/lib/popconfirm.js +12 -12
  157. package/lib/popover.js +2009 -1824
  158. package/lib/process-config.js +1015 -986
  159. package/lib/process-module.js +1001 -972
  160. package/lib/process-rule.js +1019 -990
  161. package/lib/progress.js +5 -5
  162. package/lib/qr-code.js +4 -4
  163. package/lib/qrcode-login.js +1057 -1028
  164. package/lib/radio-button.js +2 -2
  165. package/lib/radio-group.js +998 -969
  166. package/lib/radio.js +2 -2
  167. package/lib/rate.js +907 -882
  168. package/lib/row.js +2 -2
  169. package/lib/scrollbar.js +904 -879
  170. package/lib/select.js +2135 -1945
  171. package/lib/selector-panel.js +1009 -980
  172. package/lib/selector.js +1001 -972
  173. package/lib/slider.js +2 -2
  174. package/lib/step.js +2172 -1977
  175. package/lib/steps.js +907 -882
  176. package/lib/submenu.js +1119 -959
  177. package/lib/switch.js +907 -882
  178. package/lib/tab-pane.js +2 -2
  179. package/lib/table-column.js +906 -881
  180. package/lib/table.js +2236 -2047
  181. package/lib/tabs.js +911 -886
  182. package/lib/tag.js +2 -2
  183. package/lib/theme-chalk/base.css +1 -1
  184. package/lib/theme-chalk/guide.css +1 -0
  185. package/lib/theme-chalk/icon.css +1 -1
  186. package/lib/theme-chalk/index.css +1 -1
  187. package/lib/theme-chalk/lowcode-view.css +1 -0
  188. package/lib/theme-chalk/lowcode.css +1 -1
  189. package/lib/theme-chalk/main.css +1 -1
  190. package/lib/theme-chalk/pagination.css +1 -1
  191. package/lib/theme-chalk/select-dropdown.css +1 -1
  192. package/lib/theme-chalk/select.css +1 -1
  193. package/lib/theme-chalk/wujie.css +1 -0
  194. package/lib/time-picker.js +1977 -1792
  195. package/lib/time-select.js +1978 -1793
  196. package/lib/timeline-item.js +2 -2
  197. package/lib/timeline.js +2 -2
  198. package/lib/tips.js +998 -969
  199. package/lib/toolbar.js +2 -2
  200. package/lib/tooltip.js +2006 -1821
  201. package/lib/transfer.js +916 -891
  202. package/lib/tree-group.js +978 -949
  203. package/lib/tree.js +999 -970
  204. package/lib/update-history.js +76 -72
  205. package/lib/upload.js +1028 -999
  206. package/lib/utils/frame.js +133 -0
  207. package/lib/wujie.js +5037 -0
  208. package/package.json +3 -2
  209. package/packages/cascader/src/cascader.vue +1 -1
  210. package/packages/date-picker/src/picker.vue +1 -1
  211. package/packages/form/src/form-item-render.vue +10 -6
  212. package/packages/guide/index.js +8 -0
  213. package/packages/guide/src/directive.js +47 -0
  214. package/packages/guide/src/guide.vue +89 -0
  215. package/packages/guide/src/manager.js +133 -0
  216. package/packages/input/src/input.vue +1 -1
  217. package/packages/lowcode/src/aside.vue +41 -8
  218. package/packages/lowcode/src/attribute/bind.vue +2 -4
  219. package/packages/lowcode/src/attribute/dependency.vue +3 -16
  220. package/packages/lowcode/src/attribute/function.vue +2 -4
  221. package/packages/lowcode/src/attribute/property.vue +3 -15
  222. package/packages/lowcode/src/attribute/styles.vue +105 -11
  223. package/packages/lowcode/src/attribute.vue +5 -35
  224. package/packages/lowcode/src/canvas.vue +223 -97
  225. package/packages/lowcode/src/iframe.vue +60 -0
  226. package/packages/lowcode/src/lowcode.vue +32 -8
  227. package/packages/lowcode/src/pages.vue +1 -1
  228. package/packages/lowcode/src/render.vue +312 -70
  229. package/packages/lowcode/src/util/source-generator.js +7 -11
  230. package/packages/lowcode/src/util/source-parser.js +1 -1
  231. package/packages/lowcode-view/index.js +1 -1
  232. package/packages/lowcode-view/src/Iframe.vue +55 -0
  233. package/packages/lowcode-view/src/Modulels.vue +239 -0
  234. package/packages/lowcode-view/src/render.vue +337 -0
  235. package/packages/lowcode-view/src/view.vue +763 -0
  236. package/packages/main/src/components/pages.vue +11 -2
  237. package/packages/main/src/event-center.js +160 -0
  238. package/packages/main/src/minxs.js +60 -90
  239. package/packages/progress/src/progress.vue +1 -1
  240. package/packages/select/src/select.vue +2 -1
  241. package/packages/theme-chalk/src/common/var.scss +34 -10
  242. package/packages/theme-chalk/src/guide.scss +93 -0
  243. package/packages/theme-chalk/src/icon.scss +425 -426
  244. package/packages/theme-chalk/src/index.scss +2 -0
  245. package/packages/theme-chalk/src/lowcode-view.scss +288 -0
  246. package/packages/theme-chalk/src/lowcode.scss +11 -1
  247. package/packages/theme-chalk/src/select-dropdown.scss +1 -1
  248. package/packages/theme-chalk/src/wujie.scss +5 -0
  249. package/packages/wujie/index.js +10 -0
  250. package/packages/wujie/src/wujie.vue +205 -0
  251. package/src/config/api.js +3 -0
  252. package/src/index.js +325 -319
  253. package/src/utils/frame.js +102 -0
  254. package/packages/lowcode/src/view.vue +0 -187
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 133);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 137);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -91,32 +91,32 @@ module.exports =
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return noop; });
95
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return hasOwn; });
96
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return toObject; });
97
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return getValueByPath; });
98
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return getPropByPath; });
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return noop; });
95
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return hasOwn; });
96
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return toObject; });
97
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getValueByPath; });
98
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return getPropByPath; });
99
99
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return generateId; });
100
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return valueEquals; });
100
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return valueEquals; });
101
101
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return escapeRegexpString; });
102
102
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return arrayFindIndex; });
103
103
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFind; });
104
104
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return coerceTruthyValueToArray; });
105
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return isIE; });
106
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return isEdge; });
107
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return isFirefox; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return isIE; });
106
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return isEdge; });
107
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return isFirefox; });
108
108
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return autoprefixer; });
109
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return kebabCase; });
109
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return kebabCase; });
110
110
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return capitalize; });
111
111
  /* unused harmony export looseEqual */
112
112
  /* unused harmony export arrayEquals */
113
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isEqual; });
114
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return rafThrottle; });
113
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return isEqual; });
114
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return rafThrottle; });
115
115
  /* unused harmony export objToArray */
116
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return requestAnimationFrame; });
116
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return requestAnimationFrame; });
117
117
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return cancelAnimationFrame; });
118
118
  /* unused harmony export debounce */
119
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return throttle; });
119
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return throttle; });
120
120
  /* unused harmony export guid */
121
121
  /* unused harmony export uid */
122
122
  /* unused harmony export get */
@@ -124,7 +124,7 @@ module.exports =
124
124
  /* unused harmony export cloneDeep */
125
125
  /* unused harmony export grouping */
126
126
  /* unused harmony export pager */
127
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return getWinTop; });
127
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return getWinTop; });
128
128
  /* unused harmony export getFileType */
129
129
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrUnique; });
130
130
  /* unused harmony export average */
@@ -142,54 +142,54 @@ module.exports =
142
142
  /* unused harmony export exportXls */
143
143
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return extend; });
144
144
  /* unused harmony export getObjectType */
145
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return getParams; });
145
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return getParams; });
146
146
  /* unused harmony export getScript */
147
147
  /* unused harmony export getStyle */
148
148
  /* unused harmony export getTypeName */
149
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getTypePrefix; });
149
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return getTypePrefix; });
150
150
  /* unused harmony export getValues */
151
151
  /* unused harmony export getZoom */
152
152
  /* unused harmony export getLength */
153
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return timestampUrl; });
153
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return timestampUrl; });
154
154
  /* unused harmony export hasChars */
155
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return identical; });
156
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return indexOfObj; });
157
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return isEmpty; });
158
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return isExist; });
155
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return identical; });
156
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return indexOfObj; });
157
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return isEmpty; });
158
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isExist; });
159
159
  /* unused harmony export isFunction */
160
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return isObjectEqual; });
161
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return joinUrl; });
162
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return getHorizontalMargin; });
163
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return layoutWaterfall; });
160
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return isObjectEqual; });
161
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return joinUrl; });
162
+ /* unused harmony export getHorizontalMargin */
163
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return layoutWaterfall; });
164
164
  /* unused harmony export loadJs */
165
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return loading; });
165
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return loading; });
166
166
  /* unused harmony export lowerCase */
167
167
  /* unused harmony export overbrim */
168
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return queryParams; });
168
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return queryParams; });
169
169
  /* unused harmony export receiveMessage */
170
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return renderIcon; });
170
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return renderIcon; });
171
171
  /* unused harmony export replenish */
172
172
  /* unused harmony export rmbToCapital */
173
173
  /* unused harmony export setScale */
174
174
  /* unused harmony export sendMessage */
175
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return setFavicon; });
175
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return setFavicon; });
176
176
  /* unused harmony export sum */
177
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return startWith; });
177
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return startWith; });
178
178
  /* unused harmony export takeLeft */
179
179
  /* unused harmony export takeRight */
180
180
  /* unused harmony export trimWhitespace */
181
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return toFixed; });
181
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return toFixed; });
182
182
  /* unused harmony export toFunction */
183
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return updateTheme; });
183
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return updateTheme; });
184
184
  /* unused harmony export upperType */
185
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return urlJoinParams; });
186
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return uuid; });
187
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return watermark; });
185
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return urlJoinParams; });
186
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return uuid; });
187
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return watermark; });
188
188
  /* unused harmony export winTopOpen */
189
189
  /* unused harmony export confirm */
190
190
  /* unused harmony export success */
191
191
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return error; });
192
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return warning; });
192
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return warning; });
193
193
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
194
194
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
195
195
  /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
@@ -2172,7 +2172,7 @@ var loadJs = function loadJs(url, callback) {
2172
2172
  var loading = function loading() {
2173
2173
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '请求中...';
2174
2174
 
2175
- var Loading = __webpack_require__(18).default;
2175
+ var Loading = __webpack_require__(17).default;
2176
2176
  return Loading.service({
2177
2177
  text: text,
2178
2178
  spinner: 'es-icon-jiazai',
@@ -3384,7 +3384,7 @@ var getColor = function getColor($color, $n) {
3384
3384
  var getLightness = function getLightness($v, $i, $isLight) {
3385
3385
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
3386
3386
  $value = $value < 1 ? $value : 1;
3387
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "V"])($value, 2);
3387
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($value, 2);
3388
3388
  };
3389
3389
 
3390
3390
  /**
@@ -3408,7 +3408,7 @@ var getSaturation = function getSaturation($s, $i, $isLight) {
3408
3408
  $saturation = 0.1;
3409
3409
  }
3410
3410
  $saturation = $saturation > 0.06 ? $saturation : 0.06;
3411
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "V"])($saturation, 2);
3411
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($saturation, 2);
3412
3412
  };
3413
3413
 
3414
3414
  /**
@@ -3522,7 +3522,7 @@ var getRgb = function getRgb($color) {
3522
3522
 
3523
3523
  /***/ }),
3524
3524
 
3525
- /***/ 133:
3525
+ /***/ 137:
3526
3526
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3527
3527
 
3528
3528
  "use strict";
@@ -3539,7 +3539,7 @@ _checkbox_src_checkbox_group_vue__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]
3539
3539
 
3540
3540
  /***/ }),
3541
3541
 
3542
- /***/ 18:
3542
+ /***/ 17:
3543
3543
  /***/ (function(module, exports) {
3544
3544
 
3545
3545
  module.exports = require("eoss/lib/loading");
@@ -3603,736 +3603,759 @@ module.exports = require("lodash/get");
3603
3603
  /* unused harmony export getSecond */
3604
3604
  /* unused harmony export getWeekday */
3605
3605
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
3606
-
3607
-
3606
+ /* Modified from https://github.com/taylorhakes/fecha
3607
+ *
3608
+ * The MIT License (MIT)
3609
+ *
3610
+ * Copyright (c) 2015 Taylor Hakes
3611
+ *
3612
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
3613
+ * of this software and associated documentation files (the "Software"), to deal
3614
+ * in the Software without restriction, including without limitation the rights
3615
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3616
+ * copies of the Software, and to permit persons to whom the Software is
3617
+ * furnished to do so, subject to the following conditions:
3618
+ *
3619
+ * The above copyright notice and this permission notice shall be included in all
3620
+ * copies or substantial portions of the Software.
3621
+ *
3622
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3623
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3624
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3625
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3626
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3627
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3628
+ * SOFTWARE.
3629
+ */
3630
+
3631
+ /*eslint-disable*/
3632
+ // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
3633
+
3634
+
3608
3635
  /**
3609
3636
  * Parse or format dates
3610
3637
  * @class fecha
3611
- */
3612
- var fecha = {};
3613
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
3614
- var twoDigits = '\\d\\d?';
3615
- var threeDigits = '\\d{3}';
3616
- var fourDigits = '\\d{4}';
3617
- var word = '[^\\s]+';
3618
- var literal = /\[([^]*?)\]/gm;
3619
- var noop = function noop() {};
3620
-
3621
- function regexEscape(str) {
3622
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
3623
- }
3624
-
3625
- function shorten(arr, sLen) {
3626
- var newArr = [];
3627
- for (var i = 0, len = arr.length; i < len; i++) {
3628
- newArr.push(arr[i].substr(0, sLen));
3629
- }
3630
- return newArr;
3631
- }
3632
-
3633
- function monthUpdate() {
3634
- return function (d, v) {
3635
- var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
3636
- if (~index) {
3637
- d.month = index;
3638
- }
3639
- };
3640
- }
3641
-
3642
- function pad(val, len) {
3643
- val = String(val);
3644
- len = len || 2;
3645
- while (val.length < len) {
3646
- val = '0' + val;
3647
- }
3648
- return val;
3649
- }
3650
-
3651
- // 直接使用中文日期名称常量
3652
- var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
3653
- var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
3654
- var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
3655
- var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
3656
- var amPm = ['上午', '下午'];
3657
- var DoFn = function DoFn(D) {
3658
- return D + '日';
3659
- };
3660
-
3661
- var formatFlags = {
3662
- D: function D(dateObj) {
3663
- return dateObj.getDay();
3664
- },
3665
- DD: function DD(dateObj) {
3666
- return pad(dateObj.getDay());
3667
- },
3668
- Do: function Do(dateObj) {
3669
- return DoFn(dateObj.getDate());
3670
- },
3671
- d: function d(dateObj) {
3672
- return dateObj.getDate();
3673
- },
3674
- dd: function dd(dateObj) {
3675
- return pad(dateObj.getDate());
3676
- },
3677
- ddd: function ddd(dateObj) {
3678
- return dayNamesShort[dateObj.getDay()];
3679
- },
3680
- dddd: function dddd(dateObj) {
3681
- return dayNames[dateObj.getDay()];
3682
- },
3683
- M: function M(dateObj) {
3684
- return dateObj.getMonth() + 1;
3685
- },
3686
- MM: function MM(dateObj) {
3687
- return pad(dateObj.getMonth() + 1);
3688
- },
3689
- MMM: function MMM(dateObj) {
3690
- return monthNamesShort[dateObj.getMonth()];
3691
- },
3692
- MMMM: function MMMM(dateObj) {
3693
- return monthNames[dateObj.getMonth()];
3694
- },
3695
- yy: function yy(dateObj) {
3696
- return pad(String(dateObj.getFullYear()), 4).substr(2);
3697
- },
3698
- yyyy: function yyyy(dateObj) {
3699
- return pad(dateObj.getFullYear(), 4);
3700
- },
3701
- h: function h(dateObj) {
3702
- return dateObj.getHours() % 12 || 12;
3703
- },
3704
- hh: function hh(dateObj) {
3705
- return pad(dateObj.getHours() % 12 || 12);
3706
- },
3707
- H: function H(dateObj) {
3708
- return dateObj.getHours();
3709
- },
3710
- HH: function HH(dateObj) {
3711
- return pad(dateObj.getHours());
3712
- },
3713
- m: function m(dateObj) {
3714
- return dateObj.getMinutes();
3715
- },
3716
- mm: function mm(dateObj) {
3717
- return pad(dateObj.getMinutes());
3718
- },
3719
- s: function s(dateObj) {
3720
- return dateObj.getSeconds();
3721
- },
3722
- ss: function ss(dateObj) {
3723
- return pad(dateObj.getSeconds());
3724
- },
3725
- S: function S(dateObj) {
3726
- return Math.round(dateObj.getMilliseconds() / 100);
3727
- },
3728
- SS: function SS(dateObj) {
3729
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
3730
- },
3731
- SSS: function SSS(dateObj) {
3732
- return pad(dateObj.getMilliseconds(), 3);
3733
- },
3734
- a: function a(dateObj) {
3735
- return dateObj.getHours() < 12 ? '上午' : '下午';
3736
- },
3737
- A: function A(dateObj) {
3738
- return dateObj.getHours() < 12 ? '上午' : '下午';
3739
- },
3740
- ZZ: function ZZ(dateObj) {
3741
- var o = dateObj.getTimezoneOffset();
3742
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
3743
- }
3744
- };
3745
-
3746
- var parseFlags = {
3747
- d: [twoDigits, function (d, v) {
3748
- d.day = v;
3749
- }],
3750
- Do: [twoDigits + word, function (d, v) {
3751
- d.day = parseInt(v, 10);
3752
- }],
3753
- M: [twoDigits, function (d, v) {
3754
- d.month = v - 1;
3755
- }],
3756
- yy: [twoDigits, function (d, v) {
3757
- var da = new Date(),
3758
- cent = +('' + da.getFullYear()).substr(0, 2);
3759
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
3760
- }],
3761
- h: [twoDigits, function (d, v) {
3762
- d.hour = v;
3763
- }],
3764
- m: [twoDigits, function (d, v) {
3765
- d.minute = v;
3766
- }],
3767
- s: [twoDigits, function (d, v) {
3768
- d.second = v;
3769
- }],
3770
- yyyy: [fourDigits, function (d, v) {
3771
- d.year = v;
3772
- }],
3773
- S: ['\\d', function (d, v) {
3774
- d.millisecond = v * 100;
3775
- }],
3776
- SS: ['\\d{2}', function (d, v) {
3777
- d.millisecond = v * 10;
3778
- }],
3779
- SSS: [threeDigits, function (d, v) {
3780
- d.millisecond = v;
3781
- }],
3782
- D: [twoDigits, noop],
3783
- ddd: [word, noop],
3784
- MMM: [word, monthUpdate('monthNamesShort')],
3785
- MMMM: [word, monthUpdate('monthNames')],
3786
- a: [word, function (d, v) {
3787
- var val = v.toLowerCase();
3788
- if (val === '上午') {
3789
- d.isPm = false;
3790
- } else if (val === '下午') {
3791
- d.isPm = true;
3792
- }
3793
- }],
3794
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
3795
- var parts = (v + '').match(/([+-]|\d\d)/gi),
3796
- minutes = void 0;
3797
-
3798
- if (parts) {
3799
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
3800
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
3801
- }
3802
- }]
3803
- };
3804
- parseFlags.dd = parseFlags.d;
3805
- parseFlags.dddd = parseFlags.ddd;
3806
- parseFlags.DD = parseFlags.D;
3807
- parseFlags.mm = parseFlags.m;
3808
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
3809
- parseFlags.MM = parseFlags.M;
3810
- parseFlags.ss = parseFlags.s;
3811
- parseFlags.A = parseFlags.a;
3812
-
3813
- // Some common format strings
3814
- fecha.masks = {
3815
- default: 'ddd MMM dd yyyy HH:mm:ss',
3816
- shortDate: 'M/D/yy',
3817
- mediumDate: 'MMM d, yyyy',
3818
- longDate: 'MMMM d, yyyy',
3819
- fullDate: 'dddd, MMMM d, yyyy',
3820
- shortTime: 'HH:mm',
3821
- mediumTime: 'HH:mm:ss',
3822
- longTime: 'HH:mm:ss.SSS'
3823
- };
3824
-
3638
+ */
3639
+ const fecha = {};
3640
+ const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
3641
+ const twoDigits = '\\d\\d?';
3642
+ const threeDigits = '\\d{3}';
3643
+ const fourDigits = '\\d{4}';
3644
+ const word = '[^\\s]+';
3645
+ const literal = /\[([^]*?)\]/gm;
3646
+ const noop = function () {};
3647
+
3648
+ function regexEscape(str) {
3649
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
3650
+ }
3651
+
3652
+ function shorten(arr, sLen) {
3653
+ const newArr = [];
3654
+ for (let i = 0, len = arr.length; i < len; i++) {
3655
+ newArr.push(arr[i].substr(0, sLen));
3656
+ }
3657
+ return newArr;
3658
+ }
3659
+
3660
+ function monthUpdate() {
3661
+ return function (d, v) {
3662
+ const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
3663
+ if (~index) {
3664
+ d.month = index;
3665
+ }
3666
+ };
3667
+ }
3668
+
3669
+ function pad(val, len) {
3670
+ val = String(val);
3671
+ len = len || 2;
3672
+ while (val.length < len) {
3673
+ val = '0' + val;
3674
+ }
3675
+ return val;
3676
+ }
3677
+
3678
+ // 直接使用中文日期名称常量
3679
+ const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
3680
+ const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
3681
+ const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
3682
+ const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
3683
+ const amPm = ['上午', '下午'];
3684
+ const DoFn = function DoFn(D) {
3685
+ return D + '日';
3686
+ };
3687
+
3688
+ const formatFlags = {
3689
+ D: function(dateObj) {
3690
+ return dateObj.getDay();
3691
+ },
3692
+ DD: function(dateObj) {
3693
+ return pad(dateObj.getDay());
3694
+ },
3695
+ Do: function(dateObj) {
3696
+ return DoFn(dateObj.getDate());
3697
+ },
3698
+ d: function(dateObj) {
3699
+ return dateObj.getDate();
3700
+ },
3701
+ dd: function(dateObj) {
3702
+ return pad(dateObj.getDate());
3703
+ },
3704
+ ddd: function(dateObj) {
3705
+ return dayNamesShort[dateObj.getDay()];
3706
+ },
3707
+ dddd: function(dateObj) {
3708
+ return dayNames[dateObj.getDay()];
3709
+ },
3710
+ M: function(dateObj) {
3711
+ return dateObj.getMonth() + 1;
3712
+ },
3713
+ MM: function(dateObj) {
3714
+ return pad(dateObj.getMonth() + 1);
3715
+ },
3716
+ MMM: function(dateObj) {
3717
+ return monthNamesShort[dateObj.getMonth()];
3718
+ },
3719
+ MMMM: function(dateObj) {
3720
+ return monthNames[dateObj.getMonth()];
3721
+ },
3722
+ yy: function(dateObj) {
3723
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
3724
+ },
3725
+ yyyy: function(dateObj) {
3726
+ return pad(dateObj.getFullYear(), 4);
3727
+ },
3728
+ h: function(dateObj) {
3729
+ return dateObj.getHours() % 12 || 12;
3730
+ },
3731
+ hh: function(dateObj) {
3732
+ return pad(dateObj.getHours() % 12 || 12);
3733
+ },
3734
+ H: function(dateObj) {
3735
+ return dateObj.getHours();
3736
+ },
3737
+ HH: function(dateObj) {
3738
+ return pad(dateObj.getHours());
3739
+ },
3740
+ m: function(dateObj) {
3741
+ return dateObj.getMinutes();
3742
+ },
3743
+ mm: function(dateObj) {
3744
+ return pad(dateObj.getMinutes());
3745
+ },
3746
+ s: function(dateObj) {
3747
+ return dateObj.getSeconds();
3748
+ },
3749
+ ss: function(dateObj) {
3750
+ return pad(dateObj.getSeconds());
3751
+ },
3752
+ S: function(dateObj) {
3753
+ return Math.round(dateObj.getMilliseconds() / 100);
3754
+ },
3755
+ SS: function(dateObj) {
3756
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
3757
+ },
3758
+ SSS: function(dateObj) {
3759
+ return pad(dateObj.getMilliseconds(), 3);
3760
+ },
3761
+ a: function(dateObj) {
3762
+ return dateObj.getHours() < 12 ? '上午' : '下午';
3763
+ },
3764
+ A: function(dateObj) {
3765
+ return dateObj.getHours() < 12 ? '上午' : '下午';
3766
+ },
3767
+ ZZ: function(dateObj) {
3768
+ const o = dateObj.getTimezoneOffset();
3769
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
3770
+ }
3771
+ };
3772
+
3773
+ const parseFlags = {
3774
+ d: [twoDigits, function (d, v) {
3775
+ d.day = v;
3776
+ }],
3777
+ Do: [twoDigits + word, function (d, v) {
3778
+ d.day = parseInt(v, 10);
3779
+ }],
3780
+ M: [twoDigits, function (d, v) {
3781
+ d.month = v - 1;
3782
+ }],
3783
+ yy: [twoDigits, function (d, v) {
3784
+ const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
3785
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
3786
+ }],
3787
+ h: [twoDigits, function (d, v) {
3788
+ d.hour = v;
3789
+ }],
3790
+ m: [twoDigits, function (d, v) {
3791
+ d.minute = v;
3792
+ }],
3793
+ s: [twoDigits, function (d, v) {
3794
+ d.second = v;
3795
+ }],
3796
+ yyyy: [fourDigits, function (d, v) {
3797
+ d.year = v;
3798
+ }],
3799
+ S: ['\\d', function (d, v) {
3800
+ d.millisecond = v * 100;
3801
+ }],
3802
+ SS: ['\\d{2}', function (d, v) {
3803
+ d.millisecond = v * 10;
3804
+ }],
3805
+ SSS: [threeDigits, function (d, v) {
3806
+ d.millisecond = v;
3807
+ }],
3808
+ D: [twoDigits, noop],
3809
+ ddd: [word, noop],
3810
+ MMM: [word, monthUpdate('monthNamesShort')],
3811
+ MMMM: [word, monthUpdate('monthNames')],
3812
+ a: [word, function (d, v) {
3813
+ const val = v.toLowerCase();
3814
+ if (val === '上午') {
3815
+ d.isPm = false;
3816
+ } else if (val === '下午') {
3817
+ d.isPm = true;
3818
+ }
3819
+ }],
3820
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
3821
+ let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
3822
+
3823
+ if (parts) {
3824
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
3825
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
3826
+ }
3827
+ }]
3828
+ };
3829
+ parseFlags.dd = parseFlags.d;
3830
+ parseFlags.dddd = parseFlags.ddd;
3831
+ parseFlags.DD = parseFlags.D;
3832
+ parseFlags.mm = parseFlags.m;
3833
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
3834
+ parseFlags.MM = parseFlags.M;
3835
+ parseFlags.ss = parseFlags.s;
3836
+ parseFlags.A = parseFlags.a;
3837
+
3838
+
3839
+ // Some common format strings
3840
+ fecha.masks = {
3841
+ default: 'ddd MMM dd yyyy HH:mm:ss',
3842
+ shortDate: 'M/D/yy',
3843
+ mediumDate: 'MMM d, yyyy',
3844
+ longDate: 'MMMM d, yyyy',
3845
+ fullDate: 'dddd, MMMM d, yyyy',
3846
+ shortTime: 'HH:mm',
3847
+ mediumTime: 'HH:mm:ss',
3848
+ longTime: 'HH:mm:ss.SSS'
3849
+ };
3850
+
3825
3851
  /***
3826
3852
  * Format a date
3827
3853
  * @method format
3828
3854
  * @param {Date|number} dateObj
3829
3855
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
3830
- */
3831
- fecha.format = function (dateObj, mask) {
3832
- if (typeof dateObj === 'number') {
3833
- dateObj = new Date(dateObj);
3834
- }
3835
-
3836
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
3837
- throw new Error('Invalid Date in fecha.format');
3838
- }
3839
-
3840
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
3841
-
3842
- var literals = [];
3843
-
3844
- // Make literals inactive by replacing them with ??
3845
- mask = mask.replace(literal, function ($0, $1) {
3846
- literals.push($1);
3847
- return '@@@';
3848
- });
3849
- // Apply formatting rules
3850
- mask = mask.replace(token, function ($0) {
3851
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
3852
- });
3853
- // Inline literal values back into the formatted value
3854
- return mask.replace(/@@@/g, function () {
3855
- return literals.shift();
3856
- });
3857
- };
3858
-
3856
+ */
3857
+ fecha.format = function (dateObj, mask) {
3858
+ if (typeof dateObj === 'number') {
3859
+ dateObj = new Date(dateObj);
3860
+ }
3861
+
3862
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
3863
+ throw new Error('Invalid Date in fecha.format');
3864
+ }
3865
+
3866
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
3867
+
3868
+ const literals = [];
3869
+
3870
+ // Make literals inactive by replacing them with ??
3871
+ mask = mask.replace(literal, function($0, $1) {
3872
+ literals.push($1);
3873
+ return '@@@';
3874
+ });
3875
+ // Apply formatting rules
3876
+ mask = mask.replace(token, function ($0) {
3877
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
3878
+ });
3879
+ // Inline literal values back into the formatted value
3880
+ return mask.replace(/@@@/g, function() {
3881
+ return literals.shift();
3882
+ });
3883
+ };
3884
+
3859
3885
  /**
3860
3886
  * Parse a date string into an object, changes - into /
3861
3887
  * @method parse
3862
3888
  * @param {string} dateStr Date string
3863
3889
  * @param {string} format Date parse format
3864
3890
  * @returns {Date|boolean}
3865
- */
3866
- fecha.parse = function (dateStr, format) {
3867
- if (typeof format !== 'string') {
3868
- throw new Error('Invalid format in fecha.parse');
3869
- }
3870
-
3871
- format = fecha.masks[format] || format;
3872
-
3873
- // Avoid regular expression denial of service, fail early for really long strings
3874
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
3875
- if (dateStr.length > 1000) {
3876
- return null;
3877
- }
3878
-
3879
- var dateInfo = {};
3880
- var parseInfo = [];
3881
- var literals = [];
3882
- format = format.replace(literal, function ($0, $1) {
3883
- literals.push($1);
3884
- return '@@@';
3885
- });
3886
- var newFormat = regexEscape(format).replace(token, function ($0) {
3887
- if (parseFlags[$0]) {
3888
- var info = parseFlags[$0];
3889
- parseInfo.push(info[1]);
3890
- return '(' + info[0] + ')';
3891
- }
3892
-
3893
- return $0;
3894
- });
3895
- newFormat = newFormat.replace(/@@@/g, function () {
3896
- return literals.shift();
3897
- });
3898
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
3899
- if (!matches) {
3900
- return null;
3901
- }
3902
-
3903
- for (var i = 1; i < matches.length; i++) {
3904
- parseInfo[i - 1](dateInfo, matches[i]);
3905
- }
3906
-
3907
- var today = new Date();
3908
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
3909
- dateInfo.hour = +dateInfo.hour + 12;
3910
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
3911
- dateInfo.hour = 0;
3912
- }
3913
-
3914
- var date = void 0;
3915
- if (dateInfo.timezoneOffset != null) {
3916
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
3917
- date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
3918
- } else {
3919
- date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
3920
- }
3921
- return date;
3922
- };
3923
-
3924
- // 导出fecha对象
3925
-
3926
-
3927
- // 以下是从date-util.js合并的函数
3928
- var newArray = function newArray(start, end) {
3929
- var result = [];
3930
- for (var i = start; i <= end; i++) {
3931
- result.push(i);
3932
- }
3933
- return result;
3934
- };
3935
-
3936
- var getSettings = function getSettings() {
3937
- return {
3938
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
3939
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
3940
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
3941
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
3942
- amPm: ['上午', '下午']
3943
- };
3944
- };
3945
-
3946
- var toDate = function toDate(date) {
3947
- return isDate(date) ? new Date(date) : null;
3948
- };
3949
-
3950
- var isDate = function isDate(date) {
3951
- if (date === null || date === undefined) return false;
3952
- if (isNaN(new Date(date).getTime())) return false;
3953
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
3954
- return true;
3955
- };
3956
-
3957
- var isDateObject = function isDateObject(val) {
3958
- return val instanceof Date;
3959
- };
3960
-
3961
- var formatDate = function formatDate(date) {
3962
- var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
3963
-
3964
- // 处理多种输入类型
3965
- if (!date) return '';
3966
-
3967
- // 如果是时间戳,转成日期对象
3968
- if (typeof date === 'number') {
3969
- date = new Date(date);
3970
- }
3971
- // 如果是字符串,转成日期对象
3972
- if (typeof date === 'string') {
3973
- date = new Date(date);
3974
- }
3975
-
3976
- // 调用toDate进一步验证和转换
3977
- date = toDate(date);
3978
- if (!date) return '';
3979
-
3980
- // 兼容大写和小写的格式标记
3981
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
3982
- var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
3983
-
3984
- // 使用fecha库进行格式化,支持中文配置
3985
- var str = fecha.format(date, lowercaseFormat, getSettings());
3986
- return str;
3987
- };
3988
-
3989
- var parseDate = function parseDate(string, format) {
3990
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
3991
- };
3992
-
3993
- var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
3994
- if (month === 3 || month === 5 || month === 8 || month === 10) {
3995
- return 30;
3996
- }
3997
-
3998
- if (month === 1) {
3999
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
4000
- return 29;
4001
- } else {
4002
- return 28;
4003
- }
4004
- }
4005
-
4006
- return 31;
4007
- };
4008
-
4009
- var getDayCountOfYear = function getDayCountOfYear(year) {
4010
- var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
4011
- return isLeapYear ? 366 : 365;
4012
- };
4013
-
4014
- var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
4015
- var temp = new Date(date.getTime());
4016
- temp.setDate(1);
4017
- return temp.getDay();
4018
- };
4019
-
4020
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
4021
- // {prev, next} Date should work for Daylight Saving Time
4022
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
4023
- var prevDate = function prevDate(date) {
4024
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
4025
-
4026
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
4027
- };
4028
-
4029
- var nextDate = function nextDate(date) {
4030
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
4031
-
4032
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
4033
- };
4034
-
4035
- var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
4036
- var result = new Date(year, month, 1);
4037
- var day = result.getDay();
4038
-
4039
- if (day === 0) {
4040
- return prevDate(result, 7);
4041
- } else {
4042
- return prevDate(result, day);
4043
- }
4044
- };
4045
-
4046
- var getWeekNumber = function getWeekNumber(date) {
4047
- // 支持多种输入类型
4048
- if (!date || !isDate(date)) {
4049
- date = new Date();
4050
- }
4051
- if (typeof date === 'string') {
4052
- date = new Date(date);
4053
- }
4054
-
4055
- // 验证日期有效性
4056
- if (!isDate(date)) return null;
4057
-
4058
- var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
4059
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
4060
- // 将星期日的星期数设为7
4061
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
4062
- // 获取当年的第一天
4063
- var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
4064
- // 计算到最近的星期四的完整周数
4065
- var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
4066
- // 返回周数
4067
- return weekNo;
4068
- };
4069
-
4070
- var getRangeHours = function getRangeHours(ranges) {
4071
- var hours = [];
4072
- var disabledHours = [];
4073
-
4074
- (ranges || []).forEach(function (range) {
4075
- var value = range.map(function (date) {
4076
- return date.getHours();
4077
- });
4078
-
4079
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
4080
- });
4081
-
4082
- if (disabledHours.length) {
4083
- for (var i = 0; i < 24; i++) {
4084
- hours[i] = disabledHours.indexOf(i) === -1;
4085
- }
4086
- } else {
4087
- for (var _i = 0; _i < 24; _i++) {
4088
- hours[_i] = false;
4089
- }
4090
- }
4091
-
4092
- return hours;
4093
- };
4094
-
4095
- var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
4096
- if (amount <= 0) return [];
4097
- var temp = new Date(date.getTime());
4098
- temp.setDate(0);
4099
- var lastDay = temp.getDate();
4100
- return range(amount).map(function (_, index) {
4101
- return lastDay - (amount - index - 1);
4102
- });
4103
- };
4104
-
4105
- var getMonthDays = function getMonthDays(date) {
4106
- var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
4107
- var days = temp.getDate();
4108
- return range(days).map(function (_, index) {
4109
- return index + 1;
4110
- });
4111
- };
4112
-
4113
- function setRangeData(arr, start, end, value) {
4114
- for (var i = start; i < end; i++) {
4115
- arr[i] = value;
4116
- }
4117
- }
4118
-
4119
- var getRangeMinutes = function getRangeMinutes(ranges, hour) {
4120
- var minutes = new Array(60);
4121
-
4122
- if (ranges.length > 0) {
4123
- ranges.forEach(function (range) {
4124
- var start = range[0];
4125
- var end = range[1];
4126
- var startHour = start.getHours();
4127
- var startMinute = start.getMinutes();
4128
- var endHour = end.getHours();
4129
- var endMinute = end.getMinutes();
4130
- if (startHour === hour && endHour !== hour) {
4131
- setRangeData(minutes, startMinute, 60, true);
4132
- } else if (startHour === hour && endHour === hour) {
4133
- setRangeData(minutes, startMinute, endMinute + 1, true);
4134
- } else if (startHour !== hour && endHour === hour) {
4135
- setRangeData(minutes, 0, endMinute + 1, true);
4136
- } else if (startHour < hour && endHour > hour) {
4137
- setRangeData(minutes, 0, 60, true);
4138
- }
4139
- });
4140
- } else {
4141
- setRangeData(minutes, 0, 60, true);
4142
- }
4143
- return minutes;
4144
- };
4145
-
4146
- var range = function range(n) {
4147
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
4148
- return Array.apply(null, { length: n }).map(function (_, n) {
4149
- return n;
4150
- });
4151
- };
4152
-
4153
- var modifyDate = function modifyDate(date, y, m, d) {
4154
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
4155
- };
4156
-
4157
- var modifyTime = function modifyTime(date, h, m, s) {
4158
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
4159
- };
4160
-
4161
- var modifyWithTimeString = function modifyWithTimeString(date, time) {
4162
- if (date == null || !time) {
4163
- return date;
4164
- }
4165
- time = parseDate(time, 'HH:mm:ss');
4166
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
4167
- };
4168
-
4169
- var clearTime = function clearTime(date) {
4170
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
4171
- };
4172
-
4173
- var clearMilliseconds = function clearMilliseconds(date) {
4174
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
4175
- };
4176
-
4177
- var limitTimeRange = function limitTimeRange(date, ranges) {
4178
- var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
4179
-
4180
- // TODO: refactory a more elegant solution
4181
- if (ranges.length === 0) return date;
4182
- var normalizeDate = function normalizeDate(date) {
4183
- return fecha.parse(fecha.format(date, format), format);
4184
- };
4185
- var ndate = normalizeDate(date);
4186
- var nranges = ranges.map(function (range) {
4187
- return range.map(normalizeDate);
4188
- });
4189
- if (nranges.some(function (nrange) {
4190
- return ndate >= nrange[0] && ndate <= nrange[1];
4191
- })) return date;
4192
-
4193
- var minDate = nranges[0][0];
4194
- var maxDate = nranges[0][0];
4195
-
4196
- nranges.forEach(function (nrange) {
4197
- minDate = new Date(Math.min(nrange[0], minDate));
4198
- maxDate = new Date(Math.max(nrange[1], minDate));
4199
- });
4200
-
4201
- var ret = ndate < minDate ? minDate : maxDate;
4202
- // preserve Year/Month/Date
4203
- return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
4204
- };
4205
-
4206
- var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
4207
- var limitedDate = limitTimeRange(date, selectableRange, format);
4208
- return limitedDate.getTime() === date.getTime();
4209
- };
4210
-
4211
- var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
4212
- // clamp date to the number of days in `year`, `month`
4213
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
4214
- var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
4215
- return modifyDate(date, year, month, monthDate);
4216
- };
4217
-
4218
- var prevMonth = function prevMonth(date) {
4219
- var year = date.getFullYear();
4220
- var month = date.getMonth();
4221
- return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
4222
- };
4223
-
4224
- var nextMonth = function nextMonth(date) {
4225
- var year = date.getFullYear();
4226
- var month = date.getMonth();
4227
- return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
4228
- };
4229
-
4230
- var prevYear = function prevYear(date) {
4231
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
4232
-
4233
- var year = date.getFullYear();
4234
- var month = date.getMonth();
4235
- return changeYearMonthAndClampDate(date, year - amount, month);
4236
- };
4237
-
4238
- var nextYear = function nextYear(date) {
4239
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
4240
-
4241
- var year = date.getFullYear();
4242
- var month = date.getMonth();
4243
- return changeYearMonthAndClampDate(date, year + amount, month);
4244
- };
4245
-
4246
- var extractDateFormat = function extractDateFormat(format) {
4247
- return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
4248
- };
4249
-
4250
- var extractTimeFormat = function extractTimeFormat(format) {
4251
- return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
4252
- };
4253
-
4254
- var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
4255
- return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
4256
- };
4257
-
3891
+ */
3892
+ fecha.parse = function (dateStr, format) {
3893
+ if (typeof format !== 'string') {
3894
+ throw new Error('Invalid format in fecha.parse');
3895
+ }
3896
+
3897
+ format = fecha.masks[format] || format;
3898
+
3899
+ // Avoid regular expression denial of service, fail early for really long strings
3900
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
3901
+ if (dateStr.length > 1000) {
3902
+ return null;
3903
+ }
3904
+
3905
+ const dateInfo = {};
3906
+ const parseInfo = [];
3907
+ const literals = [];
3908
+ format = format.replace(literal, function($0, $1) {
3909
+ literals.push($1);
3910
+ return '@@@';
3911
+ });
3912
+ let newFormat = regexEscape(format).replace(token, function ($0) {
3913
+ if (parseFlags[$0]) {
3914
+ const info = parseFlags[$0];
3915
+ parseInfo.push(info[1]);
3916
+ return '(' + info[0] + ')';
3917
+ }
3918
+
3919
+ return $0;
3920
+ });
3921
+ newFormat = newFormat.replace(/@@@/g, function() {
3922
+ return literals.shift();
3923
+ });
3924
+ const matches = dateStr.match(new RegExp(newFormat, 'i'));
3925
+ if (!matches) {
3926
+ return null;
3927
+ }
3928
+
3929
+ for (let i = 1; i < matches.length; i++) {
3930
+ parseInfo[i - 1](dateInfo, matches[i]);
3931
+ }
3932
+
3933
+ const today = new Date();
3934
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
3935
+ dateInfo.hour = +dateInfo.hour + 12;
3936
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
3937
+ dateInfo.hour = 0;
3938
+ }
3939
+
3940
+ let date;
3941
+ if (dateInfo.timezoneOffset != null) {
3942
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
3943
+ date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
3944
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
3945
+ } else {
3946
+ date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
3947
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
3948
+ }
3949
+ return date;
3950
+ };
3951
+
3952
+ // 导出fecha对象
3953
+
3954
+
3955
+ // 以下是从date-util.js合并的函数
3956
+ const newArray = function(start, end) {
3957
+ let result = [];
3958
+ for (let i = start; i <= end; i++) {
3959
+ result.push(i);
3960
+ }
3961
+ return result;
3962
+ };
3963
+
3964
+ const getSettings = () => {
3965
+ return {
3966
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
3967
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
3968
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
3969
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
3970
+ amPm: ['上午', '下午']
3971
+ };
3972
+ };
3973
+
3974
+ const toDate = function(date) {
3975
+ return isDate(date) ? new Date(date) : null;
3976
+ };
3977
+
3978
+ const isDate = function(date) {
3979
+ if (date === null || date === undefined) return false;
3980
+ if (isNaN(new Date(date).getTime())) return false;
3981
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
3982
+ return true;
3983
+ };
3984
+
3985
+ const isDateObject = function(val) {
3986
+ return val instanceof Date;
3987
+ };
3988
+
3989
+ const formatDate = function (date, format = 'yyyy-MM-dd') {
3990
+ // 处理多种输入类型
3991
+ if (!date) return '';
3992
+
3993
+ // 如果是时间戳,转成日期对象
3994
+ if (typeof date === 'number') {
3995
+ date = new Date(date);
3996
+ }
3997
+ // 如果是字符串,转成日期对象
3998
+ if (typeof date === 'string') {
3999
+ date = new Date(date);
4000
+ }
4001
+
4002
+ // 调用toDate进一步验证和转换
4003
+ date = toDate(date);
4004
+ if (!date) return '';
4005
+
4006
+ // 兼容大写和小写的格式标记
4007
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
4008
+ const lowercaseFormat = format
4009
+ .replace(/YYYY/g, 'yyyy')
4010
+ .replace(/D/g, 'd')
4011
+
4012
+ // 使用fecha库进行格式化,支持中文配置
4013
+ const str = fecha.format(date, lowercaseFormat, getSettings());
4014
+ return str;
4015
+ };
4016
+
4017
+ const parseDate = function(string, format) {
4018
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
4019
+ };
4020
+
4021
+ const getDayCountOfMonth = function(year, month) {
4022
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
4023
+ return 30;
4024
+ }
4025
+
4026
+ if (month === 1) {
4027
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
4028
+ return 29;
4029
+ } else {
4030
+ return 28;
4031
+ }
4032
+ }
4033
+
4034
+ return 31;
4035
+ };
4036
+
4037
+ const getDayCountOfYear = function(year) {
4038
+ const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
4039
+ return isLeapYear ? 366 : 365;
4040
+ };
4041
+
4042
+ const getFirstDayOfMonth = function(date) {
4043
+ const temp = new Date(date.getTime());
4044
+ temp.setDate(1);
4045
+ return temp.getDay();
4046
+ };
4047
+
4048
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
4049
+ // {prev, next} Date should work for Daylight Saving Time
4050
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
4051
+ const prevDate = function(date, amount = 1) {
4052
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
4053
+ };
4054
+
4055
+ const nextDate = function(date, amount = 1) {
4056
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
4057
+ };
4058
+
4059
+ const getStartDateOfMonth = function(year, month) {
4060
+ const result = new Date(year, month, 1);
4061
+ const day = result.getDay();
4062
+
4063
+ if (day === 0) {
4064
+ return prevDate(result, 7);
4065
+ } else {
4066
+ return prevDate(result, day);
4067
+ }
4068
+ };
4069
+
4070
+ const getWeekNumber = function(date) {
4071
+ // 支持多种输入类型
4072
+ if (!date||!isDate(date)) {
4073
+ date = new Date();
4074
+ }
4075
+ if (typeof date === 'string') {
4076
+ date = new Date(date);
4077
+ }
4078
+
4079
+ // 验证日期有效性
4080
+ if (!isDate(date)) return null;
4081
+
4082
+ const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
4083
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
4084
+ // 将星期日的星期数设为7
4085
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
4086
+ // 获取当年的第一天
4087
+ const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
4088
+ // 计算到最近的星期四的完整周数
4089
+ const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
4090
+ // 返回周数
4091
+ return weekNo;
4092
+ };
4093
+
4094
+ const getRangeHours = function(ranges) {
4095
+ const hours = [];
4096
+ let disabledHours = [];
4097
+
4098
+ (ranges || []).forEach(range => {
4099
+ const value = range.map(date => date.getHours());
4100
+
4101
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
4102
+ });
4103
+
4104
+ if (disabledHours.length) {
4105
+ for (let i = 0; i < 24; i++) {
4106
+ hours[i] = disabledHours.indexOf(i) === -1;
4107
+ }
4108
+ } else {
4109
+ for (let i = 0; i < 24; i++) {
4110
+ hours[i] = false;
4111
+ }
4112
+ }
4113
+
4114
+ return hours;
4115
+ };
4116
+
4117
+ const getPrevMonthLastDays = (date, amount) => {
4118
+ if (amount <= 0) return [];
4119
+ const temp = new Date(date.getTime());
4120
+ temp.setDate(0);
4121
+ const lastDay = temp.getDate();
4122
+ return range(amount).map((_, index) => lastDay - (amount - index - 1));
4123
+ };
4124
+
4125
+ const getMonthDays = (date) => {
4126
+ const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
4127
+ const days = temp.getDate();
4128
+ return range(days).map((_, index) => index + 1);
4129
+ };
4130
+
4131
+ function setRangeData(arr, start, end, value) {
4132
+ for (let i = start; i < end; i++) {
4133
+ arr[i] = value;
4134
+ }
4135
+ }
4136
+
4137
+ const getRangeMinutes = function(ranges, hour) {
4138
+ const minutes = new Array(60);
4139
+
4140
+ if (ranges.length > 0) {
4141
+ ranges.forEach(range => {
4142
+ const start = range[0];
4143
+ const end = range[1];
4144
+ const startHour = start.getHours();
4145
+ const startMinute = start.getMinutes();
4146
+ const endHour = end.getHours();
4147
+ const endMinute = end.getMinutes();
4148
+ if (startHour === hour && endHour !== hour) {
4149
+ setRangeData(minutes, startMinute, 60, true);
4150
+ } else if (startHour === hour && endHour === hour) {
4151
+ setRangeData(minutes, startMinute, endMinute + 1, true);
4152
+ } else if (startHour !== hour && endHour === hour) {
4153
+ setRangeData(minutes, 0, endMinute + 1, true);
4154
+ } else if (startHour < hour && endHour > hour) {
4155
+ setRangeData(minutes, 0, 60, true);
4156
+ }
4157
+ });
4158
+ } else {
4159
+ setRangeData(minutes, 0, 60, true);
4160
+ }
4161
+ return minutes;
4162
+ };
4163
+
4164
+ const range = function(n) {
4165
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
4166
+ return Array.apply(null, {length: n}).map((_, n) => n);
4167
+ };
4168
+
4169
+ const modifyDate = function(date, y, m, d) {
4170
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
4171
+ };
4172
+
4173
+ const modifyTime = function(date, h, m, s) {
4174
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
4175
+ };
4176
+
4177
+ const modifyWithTimeString = (date, time) => {
4178
+ if (date == null || !time) {
4179
+ return date;
4180
+ }
4181
+ time = parseDate(time, 'HH:mm:ss');
4182
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
4183
+ };
4184
+
4185
+ const clearTime = function(date) {
4186
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
4187
+ };
4188
+
4189
+ const clearMilliseconds = function(date) {
4190
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
4191
+ };
4192
+
4193
+ const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
4194
+ // TODO: refactory a more elegant solution
4195
+ if (ranges.length === 0) return date;
4196
+ const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
4197
+ const ndate = normalizeDate(date);
4198
+ const nranges = ranges.map(range => range.map(normalizeDate));
4199
+ if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
4200
+
4201
+ let minDate = nranges[0][0];
4202
+ let maxDate = nranges[0][0];
4203
+
4204
+ nranges.forEach(nrange => {
4205
+ minDate = new Date(Math.min(nrange[0], minDate));
4206
+ maxDate = new Date(Math.max(nrange[1], minDate));
4207
+ });
4208
+
4209
+ const ret = ndate < minDate ? minDate : maxDate;
4210
+ // preserve Year/Month/Date
4211
+ return modifyDate(
4212
+ ret,
4213
+ date.getFullYear(),
4214
+ date.getMonth(),
4215
+ date.getDate()
4216
+ );
4217
+ };
4218
+
4219
+ const timeWithinRange = function(date, selectableRange, format) {
4220
+ const limitedDate = limitTimeRange(date, selectableRange, format);
4221
+ return limitedDate.getTime() === date.getTime();
4222
+ };
4223
+
4224
+ const changeYearMonthAndClampDate = function(date, year, month) {
4225
+ // clamp date to the number of days in `year`, `month`
4226
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
4227
+ const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
4228
+ return modifyDate(date, year, month, monthDate);
4229
+ };
4230
+
4231
+ const prevMonth = function(date) {
4232
+ const year = date.getFullYear();
4233
+ const month = date.getMonth();
4234
+ return month === 0
4235
+ ? changeYearMonthAndClampDate(date, year - 1, 11)
4236
+ : changeYearMonthAndClampDate(date, year, month - 1);
4237
+ };
4238
+
4239
+ const nextMonth = function(date) {
4240
+ const year = date.getFullYear();
4241
+ const month = date.getMonth();
4242
+ return month === 11
4243
+ ? changeYearMonthAndClampDate(date, year + 1, 0)
4244
+ : changeYearMonthAndClampDate(date, year, month + 1);
4245
+ };
4246
+
4247
+ const prevYear = function(date, amount = 1) {
4248
+ const year = date.getFullYear();
4249
+ const month = date.getMonth();
4250
+ return changeYearMonthAndClampDate(date, year - amount, month);
4251
+ };
4252
+
4253
+ const nextYear = function(date, amount = 1) {
4254
+ const year = date.getFullYear();
4255
+ const month = date.getMonth();
4256
+ return changeYearMonthAndClampDate(date, year + amount, month);
4257
+ };
4258
+
4259
+ const extractDateFormat = function(format) {
4260
+ return format
4261
+ .replace(/\W?m{1,2}|\W?ZZ/g, '')
4262
+ .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
4263
+ .trim();
4264
+ };
4265
+
4266
+ const extractTimeFormat = function(format) {
4267
+ return format
4268
+ .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
4269
+ .trim();
4270
+ };
4271
+
4272
+ const validateRangeInOneMonth = function(start, end) {
4273
+ return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
4274
+ };
4275
+
4258
4276
  /**
4259
4277
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
4260
4278
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
4261
4279
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
4262
4280
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
4263
4281
  * @returns {number} 工作日数量
4264
- */
4265
- var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
4266
- var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
4267
-
4268
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
4269
- throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
4270
- }
4271
-
4272
- var startDateObj = new Date(start_date);
4273
- var endDateObj = new Date(end_date);
4274
-
4275
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
4276
- throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
4277
- }
4278
-
4279
- if (startDateObj > endDateObj) {
4280
- throw new Error('Start date should be earlier than or equal to end date.');
4281
- }
4282
-
4283
- var workdays = 0;
4284
-
4285
- // Iterate through each day in the date range
4286
-
4287
- var _loop = function _loop(currentDate) {
4288
- // Check if the current day is a weekend (Saturday or Sunday)
4289
- var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
4290
-
4291
- // Check if the current day is a holiday
4292
- var isHoliday = holidays.some(function (holiday) {
4293
- var holidayDate = new Date(holiday);
4294
- return currentDate.toDateString() === holidayDate.toDateString();
4295
- });
4296
-
4297
- // If it's a workday (not a weekend or holiday), increment the workdays count
4298
- if (!isWeekend && !isHoliday) {
4299
- workdays++;
4300
- }
4301
- };
4302
-
4303
- for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
4304
- _loop(currentDate);
4305
- }
4306
-
4307
- return workdays;
4308
- };
4309
-
4282
+ */
4283
+ const calculateNetworkDays = function (start_date, end_date, holidays = []) {
4284
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
4285
+ throw new Error(
4286
+ "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
4287
+ );
4288
+ }
4289
+
4290
+ const startDateObj = new Date(start_date);
4291
+ const endDateObj = new Date(end_date);
4292
+
4293
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
4294
+ throw new Error(
4295
+ "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
4296
+ );
4297
+ }
4298
+
4299
+ if (startDateObj > endDateObj) {
4300
+ throw new Error('Start date should be earlier than or equal to end date.');
4301
+ }
4302
+
4303
+ let workdays = 0;
4304
+
4305
+ // Iterate through each day in the date range
4306
+ for (
4307
+ let currentDate = new Date(startDateObj);
4308
+ currentDate <= endDateObj;
4309
+ currentDate.setDate(currentDate.getDate() + 1)
4310
+ ) {
4311
+ // Check if the current day is a weekend (Saturday or Sunday)
4312
+ const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
4313
+
4314
+ // Check if the current day is a holiday
4315
+ const isHoliday = holidays.some((holiday) => {
4316
+ const holidayDate = new Date(holiday);
4317
+ return currentDate.toDateString() === holidayDate.toDateString();
4318
+ });
4319
+
4320
+ // If it's a workday (not a weekend or holiday), increment the workdays count
4321
+ if (!isWeekend && !isHoliday) {
4322
+ workdays++;
4323
+ }
4324
+ }
4325
+
4326
+ return workdays;
4327
+ };
4328
+
4310
4329
  /**
4311
4330
  * 日期加减天数
4312
4331
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
4313
4332
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
4314
4333
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
4315
- */
4316
- var dateAddDays = function dateAddDays(start_date, days) {
4317
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
4318
- throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days.");
4319
- }
4320
-
4321
- var startDateObj = new Date(start_date);
4322
- if (isNaN(startDateObj.getTime())) {
4323
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
4324
- }
4325
-
4326
- var resultDateObj = new Date(startDateObj);
4327
- resultDateObj.setDate(resultDateObj.getDate() + days);
4328
-
4329
- var resultYear = resultDateObj.getFullYear();
4330
- var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
4331
- var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
4332
-
4333
- return resultYear + '-' + resultMonth + '-' + resultDay;
4334
- };
4335
-
4334
+ */
4335
+ const dateAddDays = function (start_date, days) {
4336
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
4337
+ throw new Error(
4338
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
4339
+ );
4340
+ }
4341
+
4342
+ const startDateObj = new Date(start_date);
4343
+ if (isNaN(startDateObj.getTime())) {
4344
+ throw new Error(
4345
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
4346
+ );
4347
+ }
4348
+
4349
+ const resultDateObj = new Date(startDateObj);
4350
+ resultDateObj.setDate(resultDateObj.getDate() + days);
4351
+
4352
+ const resultYear = resultDateObj.getFullYear();
4353
+ const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
4354
+ const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
4355
+
4356
+ return `${resultYear}-${resultMonth}-${resultDay}`;
4357
+ };
4358
+
4336
4359
  /**
4337
4360
  * 计算两个日期之间的差值
4338
4361
  * @date 2023年12月14日
@@ -4340,180 +4363,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
4340
4363
  * @param {String} end_date - 结束日期字符串
4341
4364
  * @param {String} unit - 单位:year/month/day
4342
4365
  * @returns {Number} 差值
4343
- */
4344
- var dateDiff = function dateDiff(start_date, end_date) {
4345
- var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
4346
-
4347
- // Assuming date strings are in "YYYY-MM-DD" format
4348
- var startDate = new Date(start_date);
4349
- var endDate = new Date(end_date);
4350
-
4351
- // If the date is invalid, return 0
4352
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
4353
- return 0;
4354
- }
4355
-
4356
- if (unit === 'year') {
4357
- return endDate.getFullYear() - startDate.getFullYear();
4358
- } else if (unit === 'month') {
4359
- return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
4360
- } else {
4361
- // Default to day
4362
- var timeDifference = endDate - startDate;
4363
- // Calculate days (86400000 milliseconds per day)
4364
- return Math.floor(timeDifference / 86400000);
4365
- }
4366
- };
4367
-
4366
+ */
4367
+ const dateDiff = function (start_date, end_date, unit = 'day') {
4368
+ // Assuming date strings are in "YYYY-MM-DD" format
4369
+ var startDate = new Date(start_date);
4370
+ var endDate = new Date(end_date);
4371
+
4372
+ // If the date is invalid, return 0
4373
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
4374
+ return 0;
4375
+ }
4376
+
4377
+ if (unit === 'year') {
4378
+ return endDate.getFullYear() - startDate.getFullYear();
4379
+ } else if (unit === 'month') {
4380
+ return (
4381
+ (endDate.getFullYear() - startDate.getFullYear()) * 12 +
4382
+ (endDate.getMonth() - startDate.getMonth())
4383
+ );
4384
+ } else {
4385
+ // Default to day
4386
+ var timeDifference = endDate - startDate;
4387
+ // Calculate days (86400000 milliseconds per day)
4388
+ return Math.floor(timeDifference / 86400000);
4389
+ }
4390
+ };
4391
+
4368
4392
  /**
4369
4393
  * 获取月份中的日期
4370
4394
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
4371
4395
  * @returns {number} 月份中的日期(1-31)
4372
- */
4373
- var dayOfMonth = function dayOfMonth(date) {
4374
- if (typeof date !== 'string') {
4375
- throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
4376
- }
4377
-
4378
- var dateObj = new Date(date);
4379
- if (isNaN(dateObj.getTime())) {
4380
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
4381
- }
4382
-
4383
- return dateObj.getDate();
4384
- };
4385
-
4396
+ */
4397
+ const dayOfMonth = function (date) {
4398
+ if (typeof date !== 'string') {
4399
+ throw new Error(
4400
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
4401
+ );
4402
+ }
4403
+
4404
+ const dateObj = new Date(date);
4405
+ if (isNaN(dateObj.getTime())) {
4406
+ throw new Error(
4407
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
4408
+ );
4409
+ }
4410
+
4411
+ return dateObj.getDate();
4412
+ };
4413
+
4386
4414
  /**
4387
4415
  * 获取当前日期
4388
4416
  * @date 2022年5月7日
4389
4417
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
4390
4418
  * @returns {string} 当前日期的格式化字符串
4391
- */
4392
- var getCurrentDate = function getCurrentDate() {
4393
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
4394
-
4395
- return formatDate(new Date(), format);
4396
- };
4397
-
4419
+ */
4420
+ const getCurrentDate = function (format = 'YYYY-MM-DD') {
4421
+ return formatDate(new Date(), format);
4422
+ };
4423
+
4398
4424
  /**
4399
4425
  * 获取当前日期时间
4400
4426
  * @date 2022年5月7日
4401
4427
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
4402
4428
  * @returns {string} 当前日期时间的格式化字符串
4403
- */
4404
- var getCurrentDateTime = function getCurrentDateTime() {
4405
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
4406
-
4407
- return formatDate(new Date(), format);
4408
- };
4409
-
4429
+ */
4430
+ const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
4431
+ return formatDate(new Date(), format);
4432
+ };
4433
+
4410
4434
  /**
4411
4435
  * 获取小时
4412
4436
  * @date 2022年5月7日
4413
4437
  * @param {Date|string} [date] - 日期对象或日期字符串
4414
4438
  * @returns {number} 小时数(0-23)
4415
- */
4416
- var getHour = function getHour(date) {
4417
- if (!date) {
4418
- return new Date().getHours();
4419
- }
4420
- if (typeof date === 'string') {
4421
- date = new Date(date);
4422
- }
4423
- return date.getHours();
4424
- };
4425
-
4439
+ */
4440
+ const getHour = function (date) {
4441
+ if (!date) {
4442
+ return new Date().getHours();
4443
+ }
4444
+ if (typeof date === 'string') {
4445
+ date = new Date(date);
4446
+ }
4447
+ return date.getHours();
4448
+ };
4449
+
4426
4450
  /**
4427
4451
  * 获取分钟
4428
4452
  * @date 2022年5月7日
4429
4453
  * @param {Date|string} [date] - 日期对象或日期字符串
4430
4454
  * @returns {number} 分钟数(0-59)
4431
- */
4432
- var getMinute = function getMinute(date) {
4433
- if (!date) {
4434
- return new Date().getMinutes();
4435
- }
4436
- if (typeof date === 'string') {
4437
- date = new Date(date);
4438
- }
4439
- return date.getMinutes();
4440
- };
4441
-
4455
+ */
4456
+ const getMinute = function (date) {
4457
+ if (!date) {
4458
+ return new Date().getMinutes();
4459
+ }
4460
+ if (typeof date === 'string') {
4461
+ date = new Date(date);
4462
+ }
4463
+ return date.getMinutes();
4464
+ };
4465
+
4442
4466
  /**
4443
4467
  * 获取月份
4444
4468
  * @date 2022年5月7日
4445
4469
  * @param {Date|string} [date] - 日期对象或日期字符串
4446
4470
  * @returns {number} 月份数(1-12)
4447
- */
4448
- var getMonth = function getMonth(date) {
4449
- if (!date) {
4450
- return new Date().getMonth() + 1;
4451
- }
4452
- if (typeof date === 'string') {
4453
- date = new Date(date);
4454
- }
4455
- return date.getMonth() + 1;
4456
- };
4457
-
4471
+ */
4472
+ const getMonth = function (date) {
4473
+ if (!date) {
4474
+ return new Date().getMonth() + 1;
4475
+ }
4476
+ if (typeof date === 'string') {
4477
+ date = new Date(date);
4478
+ }
4479
+ return date.getMonth() + 1;
4480
+ };
4481
+
4458
4482
  /**
4459
4483
  * 获取秒
4460
4484
  * @date 2022年5月7日
4461
4485
  * @param {Date|string} [date] - 日期对象或日期字符串
4462
4486
  * @returns {number} 秒数(0-59)
4463
- */
4464
- var getSecond = function getSecond(date) {
4465
- if (!date) {
4466
- return new Date().getSeconds();
4467
- }
4468
- if (typeof date === 'string') {
4469
- date = new Date(date);
4470
- }
4471
- return date.getSeconds();
4472
- };
4473
-
4487
+ */
4488
+ const getSecond = function (date) {
4489
+ if (!date) {
4490
+ return new Date().getSeconds();
4491
+ }
4492
+ if (typeof date === 'string') {
4493
+ date = new Date(date);
4494
+ }
4495
+ return date.getSeconds();
4496
+ };
4497
+
4474
4498
  /**
4475
4499
  * 获取星期几
4476
4500
  * @date 2022年5月7日
4477
4501
  * @param {Date|string} [date] - 日期对象或日期字符串
4478
4502
  * @returns {number} 星期几(0-6,0表示星期日)
4479
- */
4480
- var getWeekday = function getWeekday(date) {
4481
- if (!date) {
4482
- return new Date().getDay();
4483
- }
4484
- if (typeof date === 'string') {
4485
- date = new Date(date);
4486
- }
4487
- return date.getDay();
4488
- };
4489
-
4503
+ */
4504
+ const getWeekday = function (date) {
4505
+ if (!date) {
4506
+ return new Date().getDay();
4507
+ }
4508
+ if (typeof date === 'string') {
4509
+ date = new Date(date);
4510
+ }
4511
+ return date.getDay();
4512
+ };
4513
+
4514
+
4490
4515
  /**
4491
4516
  * @desc 获取上午/下午/晚上
4492
4517
  * @author huangbo
4493
4518
  * @date 2022年5月7日
4494
4519
  * @param {String} [time] - 时间
4495
- **/
4496
- var timeCycle = function timeCycle(time) {
4497
- var hour = 0;
4498
- if (!time) {
4499
- hour = new Date().getHours();
4500
- } else if (typeof time === 'string') {
4501
- // 从时间字符串中提取小时
4502
- var match = time.match(/^(\d{1,2})/);
4503
- if (match) {
4504
- hour = parseInt(match[1], 10);
4505
- }
4506
- } else if (typeof time === 'number') {
4507
- hour = time;
4508
- }
4509
- // 判断时间段
4510
- if (hour >= 5 && hour < 12) {
4511
- return '上午';
4512
- } else if (hour >= 12 && hour < 18) {
4513
- return '下午';
4514
- } else {
4515
- return '晚上';
4516
- }
4520
+ **/
4521
+ const timeCycle = function (time) {
4522
+ let hour = 0;
4523
+ if (!time) {
4524
+ hour = new Date().getHours();
4525
+ } else if (typeof time === 'string') {
4526
+ // 从时间字符串中提取小时
4527
+ const match = time.match(/^(\d{1,2})/);
4528
+ if (match) {
4529
+ hour = parseInt(match[1], 10);
4530
+ }
4531
+ } else if (typeof time === 'number') {
4532
+ hour = time;
4533
+ }
4534
+ // 判断时间段
4535
+ if (hour >= 5 && hour < 12) {
4536
+ return '上午';
4537
+ } else if (hour >= 12 && hour < 18) {
4538
+ return '下午';
4539
+ } else {
4540
+ return '晚上';
4541
+ }
4517
4542
  };
4518
4543
 
4519
4544
  /***/ }),
@@ -4598,17 +4623,10 @@ module.exports = require("fetch-request-source");
4598
4623
 
4599
4624
  /***/ }),
4600
4625
 
4601
- /***/ 28:
4602
- /***/ (function(module, exports) {
4603
-
4604
- module.exports = require("qs");
4605
-
4606
- /***/ }),
4607
-
4608
4626
  /***/ 29:
4609
4627
  /***/ (function(module, exports) {
4610
4628
 
4611
- module.exports = require("axios");
4629
+ module.exports = require("qs");
4612
4630
 
4613
4631
  /***/ }),
4614
4632
 
@@ -4720,6 +4738,13 @@ function normalizeComponent(
4720
4738
  /***/ 30:
4721
4739
  /***/ (function(module, exports) {
4722
4740
 
4741
+ module.exports = require("axios");
4742
+
4743
+ /***/ }),
4744
+
4745
+ /***/ 31:
4746
+ /***/ (function(module, exports) {
4747
+
4723
4748
  module.exports = require("json-bigint");
4724
4749
 
4725
4750
  /***/ }),
@@ -4738,7 +4763,7 @@ module.exports = require("vue");
4738
4763
 
4739
4764
  /***/ }),
4740
4765
 
4741
- /***/ 44:
4766
+ /***/ 43:
4742
4767
  /***/ (function(module, exports) {
4743
4768
 
4744
4769
  module.exports = require("sortablejs");
@@ -5976,7 +6001,7 @@ render._withStripped = true
5976
6001
  // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=61423f1a&
5977
6002
 
5978
6003
  // EXTERNAL MODULE: external "sortablejs"
5979
- var external_sortablejs_ = __webpack_require__(44);
6004
+ var external_sortablejs_ = __webpack_require__(43);
5980
6005
  var external_sortablejs_default = /*#__PURE__*/__webpack_require__.n(external_sortablejs_);
5981
6006
 
5982
6007
  // EXTERNAL MODULE: ./src/mixins/emitter.js
@@ -6337,7 +6362,7 @@ var component = Object(componentNormalizer["a" /* default */])(
6337
6362
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doQrLogin; });
6338
6363
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return logout; });
6339
6364
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return initLogin; });
6340
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return switchUserTo; });
6365
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return switchUserTo; });
6341
6366
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return changeImg; });
6342
6367
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getLoginCode; });
6343
6368
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCodeLogin; });
@@ -6355,13 +6380,13 @@ var component = Object(componentNormalizer["a" /* default */])(
6355
6380
  /* unused harmony export scanCodeRetrialAuth */
6356
6381
  /* unused harmony export codeRetrialAuth */
6357
6382
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return doAssistanceQrLogin; });
6358
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return userOnline; });
6383
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return userOnline; });
6359
6384
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUserAppWithTag; });
6360
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return recordUserApp; });
6385
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return recordUserApp; });
6361
6386
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserRecordApp; });
6362
6387
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return mainConfig; });
6363
6388
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initUserSet; });
6364
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateUserInfo; });
6389
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateUserInfo; });
6365
6390
  /* unused harmony export getUserImgUrl */
6366
6391
  /* unused harmony export getDoorIndex */
6367
6392
  /* unused harmony export refreshOnlineUsers */
@@ -6373,22 +6398,22 @@ var component = Object(componentNormalizer["a" /* default */])(
6373
6398
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getByType; });
6374
6399
  /* unused harmony export getUserCustomInfo */
6375
6400
  /* unused harmony export updateUserCustomInfo */
6376
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveOrUpdate; });
6377
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return sysMsgPage; });
6401
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveOrUpdate; });
6402
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return sysMsgPage; });
6378
6403
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreSysMsg; });
6379
6404
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return ignoreAllSysMsg; });
6380
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return searchType; });
6405
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return searchType; });
6381
6406
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSysParam; });
6382
6407
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctProperties; });
6383
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploads; });
6384
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadOnlyOne; });
6408
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploads; });
6409
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadOnlyOne; });
6385
6410
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getAdjunctFileInfos; });
6386
6411
  /* unused harmony export uploadSort */
6387
6412
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return downloadByAdjunctId; });
6388
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return uploadDownloads; });
6389
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return previewAdjunct; });
6390
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct2; });
6391
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunctOffice; });
6413
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadDownloads; });
6414
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct; });
6415
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct2; });
6416
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunctOffice; });
6392
6417
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return delAdjunct; });
6393
6418
  /* unused harmony export upload_updateClassify */
6394
6419
  /* unused harmony export getDeleteAdjunctFileInfos */
@@ -6403,13 +6428,13 @@ var component = Object(componentNormalizer["a" /* default */])(
6403
6428
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return gethelpdoc; });
6404
6429
  /* unused harmony export getCurrentuser */
6405
6430
  /* unused harmony export mainDetail */
6406
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toStartFlow; });
6407
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return tempSave; });
6431
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartFlow; });
6432
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tempSave; });
6408
6433
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return commonOpion; });
6409
6434
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
6410
6435
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return editCommonOpion; });
6411
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return saveCommonOpinion; });
6412
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return updateCommonOpinion; });
6436
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveCommonOpinion; });
6437
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateCommonOpinion; });
6413
6438
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return deleteCommonOpion; });
6414
6439
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getProcessDefList; });
6415
6440
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getNodeInfo; });
@@ -6418,27 +6443,27 @@ var component = Object(componentNormalizer["a" /* default */])(
6418
6443
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCodes; });
6419
6444
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNotificationMsg; });
6420
6445
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getHandleInfoHtml; });
6421
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskHandleHtml; });
6446
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskHandleHtml; });
6422
6447
  /* unused harmony export getView */
6423
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return register; });
6424
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pendedhistoryList; });
6425
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskRejectHtml; });
6426
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskRejectHtml; });
6427
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartTaskRead; });
6428
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskReadIndex; });
6429
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskReadHtml; });
6430
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return rejectAndEnd; });
6431
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toSendMsg; });
6432
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return sendMsg; });
6448
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return register; });
6449
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pendedhistoryList; });
6450
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskRejectHtml; });
6451
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskRejectHtml; });
6452
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskRead; });
6453
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskReadIndex; });
6454
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskReadHtml; });
6455
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return rejectAndEnd; });
6456
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toSendMsg; });
6457
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return sendMsg; });
6433
6458
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowHtml; });
6434
6459
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return handleInfo; });
6435
6460
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return loginUserInfo; });
6436
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return wss; });
6437
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return topic; });
6461
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return wss; });
6462
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return topic; });
6438
6463
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getPresetCustomInfo; });
6439
6464
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetNodeInfo; });
6440
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTransferIndex; });
6441
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTransfer; });
6465
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTransferIndex; });
6466
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTransfer; });
6442
6467
  /* unused harmony export toPresetInfoListIndex */
6443
6468
  /* unused harmony export deletePresetInfo */
6444
6469
  /* unused harmony export historyListJson */
@@ -6446,24 +6471,24 @@ var component = Object(componentNormalizer["a" /* default */])(
6446
6471
  /* unused harmony export pressListJson */
6447
6472
  /* unused harmony export deleteFlow */
6448
6473
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isCanStartSubFlow; });
6449
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskUnionExamine; });
6450
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskUnionExamine; });
6451
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskTakeAdvice; });
6452
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskTakeAdvice; });
6453
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskStartDraft; });
6454
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskSupervise; });
6455
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSuperviseSub; });
6456
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskStartDraft; });
6457
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskReview; });
6458
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskReview; });
6459
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionSeal; });
6460
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionSeal; });
6461
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTwoOfficesDispatch; });
6462
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return twoOfficesDispatch; });
6463
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toResetProcessIndex; });
6464
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return resetProcess; });
6465
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toTaskContinuationIndex; });
6466
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return taskContinuation; });
6474
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionExamine; });
6475
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionExamine; });
6476
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTakeAdvice; });
6477
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTakeAdvice; });
6478
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskStartDraft; });
6479
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSupervise; });
6480
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSuperviseSub; });
6481
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskStartDraft; });
6482
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskReview; });
6483
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskReview; });
6484
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionSeal; });
6485
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionSeal; });
6486
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTwoOfficesDispatch; });
6487
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return twoOfficesDispatch; });
6488
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toResetProcessIndex; });
6489
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return resetProcess; });
6490
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskContinuationIndex; });
6491
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskContinuation; });
6467
6492
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getFreeStartFlowParams; });
6468
6493
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlowWithSubmitTask; });
6469
6494
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkForeignOrgStartedCircularRead; });
@@ -6471,7 +6496,7 @@ var component = Object(componentNormalizer["a" /* default */])(
6471
6496
  /* unused harmony export fyListJson */
6472
6497
  /* unused harmony export circularReadWithdraw */
6473
6498
  /* unused harmony export taskReadWithDraw */
6474
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
6499
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
6475
6500
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return checkBusinessIdStartedReadTransferHandle; });
6476
6501
  /* unused harmony export sendList */
6477
6502
  /* unused harmony export sendInfo */
@@ -6485,23 +6510,24 @@ var component = Object(componentNormalizer["a" /* default */])(
6485
6510
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfoForStart; });
6486
6511
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return freeStartFlow; });
6487
6512
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getUrgencyLevelChangedNotificationType; });
6488
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return toFreeTaskCircularRead; });
6513
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toFreeTaskCircularRead; });
6489
6514
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeTaskCircularRead; });
6490
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageLists; });
6515
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageLists; });
6491
6516
  /* unused harmony export publishedLists */
6492
6517
  /* unused harmony export pageInfo */
6493
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageSave; });
6494
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageUpdate; });
6518
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageGroup; });
6519
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageSave; });
6520
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageUpdate; });
6495
6521
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return pageDelete; });
6496
6522
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchSave; });
6497
6523
  /* unused harmony export batchUpdate */
6498
6524
  /* unused harmony export batchDelete */
6499
6525
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchList; });
6500
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processListJson; });
6501
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processInfo; });
6502
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return processDeleteJson; });
6503
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processSave; });
6504
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processUpdate; });
6526
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processListJson; });
6527
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processInfo; });
6528
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processDeleteJson; });
6529
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processSave; });
6530
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processUpdate; });
6505
6531
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeListJson; });
6506
6532
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return nodeDeleteJson; });
6507
6533
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeSave; });
@@ -6512,22 +6538,22 @@ var component = Object(componentNormalizer["a" /* default */])(
6512
6538
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return moduleDelete; });
6513
6539
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleSave; });
6514
6540
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleUpdate; });
6515
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleListJson; });
6516
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleEdit; });
6517
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleRead; });
6518
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleSave; });
6541
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleListJson; });
6542
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleEdit; });
6543
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleRead; });
6544
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleSave; });
6519
6545
  /* unused harmony export ruleSupplement */
6520
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleUndore; });
6521
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return ruleAdd; });
6546
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleUndore; });
6547
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleAdd; });
6522
6548
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return companyDetail; });
6523
6549
  /* unused harmony export issueDetailList */
6524
6550
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteRule; });
6525
6551
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParamV1; });
6526
6552
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyList; });
6527
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return supplement; });
6553
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return supplement; });
6528
6554
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return isAddSource; });
6529
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tiggerInTime; });
6530
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateHistory; });
6555
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tiggerInTime; });
6556
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateHistory; });
6531
6557
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
6532
6558
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeInTime; });
6533
6559
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
@@ -6809,6 +6835,9 @@ var pageLists = '/main2/pageComponentConfig/listJson';
6809
6835
  var publishedLists = '/main2/pageComponentConfig/listPublished';
6810
6836
  // 获取自定义配置详情
6811
6837
  var pageInfo = '/main2/pageComponentConfig/info';
6838
+ // 获取自定义配置授权列表
6839
+ var pageGroup = 'main2/pageComponentTarget/listByConfigIdAndTypeGroup';
6840
+
6812
6841
  // 保存自定义配置,发布也调这个接口但要加上字段status=1
6813
6842
  var pageSave = '/main2/pageComponentConfig/save';
6814
6843
  // 更新自定义配置
@@ -6916,12 +6945,12 @@ module.exports = require("eoss/lib/message-box");
6916
6945
  /* unused harmony export downloadZip */
6917
6946
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
6918
6947
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
6919
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
6948
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29);
6920
6949
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
6921
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
6950
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30);
6922
6951
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
6923
6952
  /* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
6924
- /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30);
6953
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31);
6925
6954
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
6926
6955
  /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
6927
6956
  /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24);
@@ -7163,7 +7192,7 @@ var ajax = function ajax(_ref) {
7163
7192
  delete params[key];
7164
7193
  }
7165
7194
  }
7166
- url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: url, param: encodedParams });
7195
+ url = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: url, param: encodedParams });
7167
7196
  }
7168
7197
  } else {
7169
7198
  params = {};
@@ -7521,7 +7550,7 @@ function redirectToLogin() {
7521
7550
 
7522
7551
  if (loginPage) {
7523
7552
  // 处理相对路径
7524
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "S"])(loginPage, ['http', '/'], true)) {
7553
+ if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
7525
7554
  var pathname = '';
7526
7555
  try {
7527
7556
  pathname = window.top.location.pathname;
@@ -7553,7 +7582,7 @@ function redirectToLogin() {
7553
7582
  * @returns {Promise} 认证完成后 resolve
7554
7583
  */
7555
7584
  var initAuth = function initAuth() {
7556
- var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "t"])();
7585
+ var params = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])();
7557
7586
  var token = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('token') || Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('Authorization');
7558
7587
 
7559
7588
  // 已有 token 或没有认证参数,直接返回
@@ -7561,7 +7590,7 @@ var initAuth = function initAuth() {
7561
7590
  return Promise.resolve();
7562
7591
  }
7563
7592
 
7564
- var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "L"])('页面加载中...');
7593
+ var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('页面加载中...');
7565
7594
 
7566
7595
  return ajax({
7567
7596
  method: 'post',
@@ -7640,7 +7669,7 @@ var isLogined = function isLogined(_ref3) {
7640
7669
 
7641
7670
  // 处理cookie参数
7642
7671
  if (cookie === undefined) {
7643
- cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "t"])({ name: 'cookie' });
7672
+ cookie = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* getParams */ "s"])({ name: 'cookie' });
7644
7673
  }
7645
7674
 
7646
7675
  // 处理登录页面路径
@@ -7655,7 +7684,7 @@ var isLogined = function isLogined(_ref3) {
7655
7684
  sessionStorage.setItem('loginPage', loginPage);
7656
7685
 
7657
7686
  // 处理相对路径
7658
- if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "S"])(loginPage, ['http', '/'], true)) {
7687
+ if (!Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* startWith */ "R"])(loginPage, ['http', '/'], true)) {
7659
7688
  if (pathname !== '/') {
7660
7689
  var pathParts = pathname.split('/');
7661
7690
  pathParts.splice(pathParts.length - 1);
@@ -7680,7 +7709,7 @@ var isLogined = function isLogined(_ref3) {
7680
7709
 
7681
7710
  // 处理重定向
7682
7711
  if (redirect && (to.path === '/main' || to.path === '/login')) {
7683
- window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: '.' + to.path + '.html', param: to.query }));
7712
+ window.location.replace(Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: '.' + to.path + '.html', param: to.query }));
7684
7713
  } else {
7685
7714
  next();
7686
7715
  }
@@ -7883,7 +7912,7 @@ var downloadFile = function downloadFile(_ref6) {
7883
7912
 
7884
7913
  // 拼接URL参数
7885
7914
  if (Object.keys(params).length > 0) {
7886
- downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: downloadUrl, param: params });
7915
+ downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
7887
7916
  }
7888
7917
  } else if (file.raw) {
7889
7918
  downloadUrl = URL.createObjectURL(file.raw);
@@ -7929,7 +7958,7 @@ var downloadZip = function downloadZip(_ref7) {
7929
7958
  code = _ref7.code,
7930
7959
  option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
7931
7960
 
7932
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Mc"] };
7961
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Nc"] };
7933
7962
 
7934
7963
  // 处理URL和参数
7935
7964
  var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
@@ -7945,7 +7974,7 @@ var downloadZip = function downloadZip(_ref7) {
7945
7974
 
7946
7975
  // 拼接URL参数
7947
7976
  if (Object.keys(params).length > 0) {
7948
- downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "Y"])({ url: downloadUrl, param: params });
7977
+ downloadUrl = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* urlJoinParams */ "X"])({ url: downloadUrl, param: params });
7949
7978
  }
7950
7979
 
7951
7980
  // 创建a标签
@@ -8050,7 +8079,7 @@ var getTableData = function getTableData(_ref9) {
8050
8079
  onSuccess = _ref9.onSuccess,
8051
8080
  onError = _ref9.onError;
8052
8081
 
8053
- var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "L"])('数据加载中...');
8082
+ var loadingInstance = Object(_util__WEBPACK_IMPORTED_MODULE_6__[/* loading */ "K"])('数据加载中...');
8054
8083
  return new Promise(function (resolve, reject) {
8055
8084
  ajax({
8056
8085
  method: method,