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
package/lib/icon.js CHANGED
@@ -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 = 137);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 142);
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',
@@ -3337,7 +3337,7 @@ var getColor = function getColor($color, $n) {
3337
3337
  var getLightness = function getLightness($v, $i, $isLight) {
3338
3338
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
3339
3339
  $value = $value < 1 ? $value : 1;
3340
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "V"])($value, 2);
3340
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($value, 2);
3341
3341
  };
3342
3342
 
3343
3343
  /**
@@ -3361,7 +3361,7 @@ var getSaturation = function getSaturation($s, $i, $isLight) {
3361
3361
  $saturation = 0.1;
3362
3362
  }
3363
3363
  $saturation = $saturation > 0.06 ? $saturation : 0.06;
3364
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "V"])($saturation, 2);
3364
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($saturation, 2);
3365
3365
  };
3366
3366
 
3367
3367
  /**
@@ -3475,7 +3475,7 @@ var getRgb = function getRgb($color) {
3475
3475
 
3476
3476
  /***/ }),
3477
3477
 
3478
- /***/ 137:
3478
+ /***/ 142:
3479
3479
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3480
3480
 
3481
3481
  "use strict";
@@ -3491,7 +3491,7 @@ _src_icon_vue__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].install = function
3491
3491
 
3492
3492
  /***/ }),
3493
3493
 
3494
- /***/ 18:
3494
+ /***/ 17:
3495
3495
  /***/ (function(module, exports) {
3496
3496
 
3497
3497
  module.exports = require("eoss/lib/loading");
@@ -3555,736 +3555,759 @@ module.exports = require("lodash/get");
3555
3555
  /* unused harmony export getSecond */
3556
3556
  /* unused harmony export getWeekday */
3557
3557
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
3558
-
3559
-
3558
+ /* Modified from https://github.com/taylorhakes/fecha
3559
+ *
3560
+ * The MIT License (MIT)
3561
+ *
3562
+ * Copyright (c) 2015 Taylor Hakes
3563
+ *
3564
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
3565
+ * of this software and associated documentation files (the "Software"), to deal
3566
+ * in the Software without restriction, including without limitation the rights
3567
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3568
+ * copies of the Software, and to permit persons to whom the Software is
3569
+ * furnished to do so, subject to the following conditions:
3570
+ *
3571
+ * The above copyright notice and this permission notice shall be included in all
3572
+ * copies or substantial portions of the Software.
3573
+ *
3574
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3575
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3576
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3577
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3578
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3579
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3580
+ * SOFTWARE.
3581
+ */
3582
+
3583
+ /*eslint-disable*/
3584
+ // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
3585
+
3586
+
3560
3587
  /**
3561
3588
  * Parse or format dates
3562
3589
  * @class fecha
3563
- */
3564
- var fecha = {};
3565
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
3566
- var twoDigits = '\\d\\d?';
3567
- var threeDigits = '\\d{3}';
3568
- var fourDigits = '\\d{4}';
3569
- var word = '[^\\s]+';
3570
- var literal = /\[([^]*?)\]/gm;
3571
- var noop = function noop() {};
3572
-
3573
- function regexEscape(str) {
3574
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
3575
- }
3576
-
3577
- function shorten(arr, sLen) {
3578
- var newArr = [];
3579
- for (var i = 0, len = arr.length; i < len; i++) {
3580
- newArr.push(arr[i].substr(0, sLen));
3581
- }
3582
- return newArr;
3583
- }
3584
-
3585
- function monthUpdate() {
3586
- return function (d, v) {
3587
- var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
3588
- if (~index) {
3589
- d.month = index;
3590
- }
3591
- };
3592
- }
3593
-
3594
- function pad(val, len) {
3595
- val = String(val);
3596
- len = len || 2;
3597
- while (val.length < len) {
3598
- val = '0' + val;
3599
- }
3600
- return val;
3601
- }
3602
-
3603
- // 直接使用中文日期名称常量
3604
- var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
3605
- var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
3606
- var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
3607
- var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
3608
- var amPm = ['上午', '下午'];
3609
- var DoFn = function DoFn(D) {
3610
- return D + '日';
3611
- };
3612
-
3613
- var formatFlags = {
3614
- D: function D(dateObj) {
3615
- return dateObj.getDay();
3616
- },
3617
- DD: function DD(dateObj) {
3618
- return pad(dateObj.getDay());
3619
- },
3620
- Do: function Do(dateObj) {
3621
- return DoFn(dateObj.getDate());
3622
- },
3623
- d: function d(dateObj) {
3624
- return dateObj.getDate();
3625
- },
3626
- dd: function dd(dateObj) {
3627
- return pad(dateObj.getDate());
3628
- },
3629
- ddd: function ddd(dateObj) {
3630
- return dayNamesShort[dateObj.getDay()];
3631
- },
3632
- dddd: function dddd(dateObj) {
3633
- return dayNames[dateObj.getDay()];
3634
- },
3635
- M: function M(dateObj) {
3636
- return dateObj.getMonth() + 1;
3637
- },
3638
- MM: function MM(dateObj) {
3639
- return pad(dateObj.getMonth() + 1);
3640
- },
3641
- MMM: function MMM(dateObj) {
3642
- return monthNamesShort[dateObj.getMonth()];
3643
- },
3644
- MMMM: function MMMM(dateObj) {
3645
- return monthNames[dateObj.getMonth()];
3646
- },
3647
- yy: function yy(dateObj) {
3648
- return pad(String(dateObj.getFullYear()), 4).substr(2);
3649
- },
3650
- yyyy: function yyyy(dateObj) {
3651
- return pad(dateObj.getFullYear(), 4);
3652
- },
3653
- h: function h(dateObj) {
3654
- return dateObj.getHours() % 12 || 12;
3655
- },
3656
- hh: function hh(dateObj) {
3657
- return pad(dateObj.getHours() % 12 || 12);
3658
- },
3659
- H: function H(dateObj) {
3660
- return dateObj.getHours();
3661
- },
3662
- HH: function HH(dateObj) {
3663
- return pad(dateObj.getHours());
3664
- },
3665
- m: function m(dateObj) {
3666
- return dateObj.getMinutes();
3667
- },
3668
- mm: function mm(dateObj) {
3669
- return pad(dateObj.getMinutes());
3670
- },
3671
- s: function s(dateObj) {
3672
- return dateObj.getSeconds();
3673
- },
3674
- ss: function ss(dateObj) {
3675
- return pad(dateObj.getSeconds());
3676
- },
3677
- S: function S(dateObj) {
3678
- return Math.round(dateObj.getMilliseconds() / 100);
3679
- },
3680
- SS: function SS(dateObj) {
3681
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
3682
- },
3683
- SSS: function SSS(dateObj) {
3684
- return pad(dateObj.getMilliseconds(), 3);
3685
- },
3686
- a: function a(dateObj) {
3687
- return dateObj.getHours() < 12 ? '上午' : '下午';
3688
- },
3689
- A: function A(dateObj) {
3690
- return dateObj.getHours() < 12 ? '上午' : '下午';
3691
- },
3692
- ZZ: function ZZ(dateObj) {
3693
- var o = dateObj.getTimezoneOffset();
3694
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
3695
- }
3696
- };
3697
-
3698
- var parseFlags = {
3699
- d: [twoDigits, function (d, v) {
3700
- d.day = v;
3701
- }],
3702
- Do: [twoDigits + word, function (d, v) {
3703
- d.day = parseInt(v, 10);
3704
- }],
3705
- M: [twoDigits, function (d, v) {
3706
- d.month = v - 1;
3707
- }],
3708
- yy: [twoDigits, function (d, v) {
3709
- var da = new Date(),
3710
- cent = +('' + da.getFullYear()).substr(0, 2);
3711
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
3712
- }],
3713
- h: [twoDigits, function (d, v) {
3714
- d.hour = v;
3715
- }],
3716
- m: [twoDigits, function (d, v) {
3717
- d.minute = v;
3718
- }],
3719
- s: [twoDigits, function (d, v) {
3720
- d.second = v;
3721
- }],
3722
- yyyy: [fourDigits, function (d, v) {
3723
- d.year = v;
3724
- }],
3725
- S: ['\\d', function (d, v) {
3726
- d.millisecond = v * 100;
3727
- }],
3728
- SS: ['\\d{2}', function (d, v) {
3729
- d.millisecond = v * 10;
3730
- }],
3731
- SSS: [threeDigits, function (d, v) {
3732
- d.millisecond = v;
3733
- }],
3734
- D: [twoDigits, noop],
3735
- ddd: [word, noop],
3736
- MMM: [word, monthUpdate('monthNamesShort')],
3737
- MMMM: [word, monthUpdate('monthNames')],
3738
- a: [word, function (d, v) {
3739
- var val = v.toLowerCase();
3740
- if (val === '上午') {
3741
- d.isPm = false;
3742
- } else if (val === '下午') {
3743
- d.isPm = true;
3744
- }
3745
- }],
3746
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
3747
- var parts = (v + '').match(/([+-]|\d\d)/gi),
3748
- minutes = void 0;
3749
-
3750
- if (parts) {
3751
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
3752
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
3753
- }
3754
- }]
3755
- };
3756
- parseFlags.dd = parseFlags.d;
3757
- parseFlags.dddd = parseFlags.ddd;
3758
- parseFlags.DD = parseFlags.D;
3759
- parseFlags.mm = parseFlags.m;
3760
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
3761
- parseFlags.MM = parseFlags.M;
3762
- parseFlags.ss = parseFlags.s;
3763
- parseFlags.A = parseFlags.a;
3764
-
3765
- // Some common format strings
3766
- fecha.masks = {
3767
- default: 'ddd MMM dd yyyy HH:mm:ss',
3768
- shortDate: 'M/D/yy',
3769
- mediumDate: 'MMM d, yyyy',
3770
- longDate: 'MMMM d, yyyy',
3771
- fullDate: 'dddd, MMMM d, yyyy',
3772
- shortTime: 'HH:mm',
3773
- mediumTime: 'HH:mm:ss',
3774
- longTime: 'HH:mm:ss.SSS'
3775
- };
3776
-
3590
+ */
3591
+ const fecha = {};
3592
+ const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
3593
+ const twoDigits = '\\d\\d?';
3594
+ const threeDigits = '\\d{3}';
3595
+ const fourDigits = '\\d{4}';
3596
+ const word = '[^\\s]+';
3597
+ const literal = /\[([^]*?)\]/gm;
3598
+ const noop = function () {};
3599
+
3600
+ function regexEscape(str) {
3601
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
3602
+ }
3603
+
3604
+ function shorten(arr, sLen) {
3605
+ const newArr = [];
3606
+ for (let i = 0, len = arr.length; i < len; i++) {
3607
+ newArr.push(arr[i].substr(0, sLen));
3608
+ }
3609
+ return newArr;
3610
+ }
3611
+
3612
+ function monthUpdate() {
3613
+ return function (d, v) {
3614
+ const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
3615
+ if (~index) {
3616
+ d.month = index;
3617
+ }
3618
+ };
3619
+ }
3620
+
3621
+ function pad(val, len) {
3622
+ val = String(val);
3623
+ len = len || 2;
3624
+ while (val.length < len) {
3625
+ val = '0' + val;
3626
+ }
3627
+ return val;
3628
+ }
3629
+
3630
+ // 直接使用中文日期名称常量
3631
+ const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
3632
+ const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
3633
+ const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
3634
+ const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
3635
+ const amPm = ['上午', '下午'];
3636
+ const DoFn = function DoFn(D) {
3637
+ return D + '日';
3638
+ };
3639
+
3640
+ const formatFlags = {
3641
+ D: function(dateObj) {
3642
+ return dateObj.getDay();
3643
+ },
3644
+ DD: function(dateObj) {
3645
+ return pad(dateObj.getDay());
3646
+ },
3647
+ Do: function(dateObj) {
3648
+ return DoFn(dateObj.getDate());
3649
+ },
3650
+ d: function(dateObj) {
3651
+ return dateObj.getDate();
3652
+ },
3653
+ dd: function(dateObj) {
3654
+ return pad(dateObj.getDate());
3655
+ },
3656
+ ddd: function(dateObj) {
3657
+ return dayNamesShort[dateObj.getDay()];
3658
+ },
3659
+ dddd: function(dateObj) {
3660
+ return dayNames[dateObj.getDay()];
3661
+ },
3662
+ M: function(dateObj) {
3663
+ return dateObj.getMonth() + 1;
3664
+ },
3665
+ MM: function(dateObj) {
3666
+ return pad(dateObj.getMonth() + 1);
3667
+ },
3668
+ MMM: function(dateObj) {
3669
+ return monthNamesShort[dateObj.getMonth()];
3670
+ },
3671
+ MMMM: function(dateObj) {
3672
+ return monthNames[dateObj.getMonth()];
3673
+ },
3674
+ yy: function(dateObj) {
3675
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
3676
+ },
3677
+ yyyy: function(dateObj) {
3678
+ return pad(dateObj.getFullYear(), 4);
3679
+ },
3680
+ h: function(dateObj) {
3681
+ return dateObj.getHours() % 12 || 12;
3682
+ },
3683
+ hh: function(dateObj) {
3684
+ return pad(dateObj.getHours() % 12 || 12);
3685
+ },
3686
+ H: function(dateObj) {
3687
+ return dateObj.getHours();
3688
+ },
3689
+ HH: function(dateObj) {
3690
+ return pad(dateObj.getHours());
3691
+ },
3692
+ m: function(dateObj) {
3693
+ return dateObj.getMinutes();
3694
+ },
3695
+ mm: function(dateObj) {
3696
+ return pad(dateObj.getMinutes());
3697
+ },
3698
+ s: function(dateObj) {
3699
+ return dateObj.getSeconds();
3700
+ },
3701
+ ss: function(dateObj) {
3702
+ return pad(dateObj.getSeconds());
3703
+ },
3704
+ S: function(dateObj) {
3705
+ return Math.round(dateObj.getMilliseconds() / 100);
3706
+ },
3707
+ SS: function(dateObj) {
3708
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
3709
+ },
3710
+ SSS: function(dateObj) {
3711
+ return pad(dateObj.getMilliseconds(), 3);
3712
+ },
3713
+ a: function(dateObj) {
3714
+ return dateObj.getHours() < 12 ? '上午' : '下午';
3715
+ },
3716
+ A: function(dateObj) {
3717
+ return dateObj.getHours() < 12 ? '上午' : '下午';
3718
+ },
3719
+ ZZ: function(dateObj) {
3720
+ const o = dateObj.getTimezoneOffset();
3721
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
3722
+ }
3723
+ };
3724
+
3725
+ const parseFlags = {
3726
+ d: [twoDigits, function (d, v) {
3727
+ d.day = v;
3728
+ }],
3729
+ Do: [twoDigits + word, function (d, v) {
3730
+ d.day = parseInt(v, 10);
3731
+ }],
3732
+ M: [twoDigits, function (d, v) {
3733
+ d.month = v - 1;
3734
+ }],
3735
+ yy: [twoDigits, function (d, v) {
3736
+ const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
3737
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
3738
+ }],
3739
+ h: [twoDigits, function (d, v) {
3740
+ d.hour = v;
3741
+ }],
3742
+ m: [twoDigits, function (d, v) {
3743
+ d.minute = v;
3744
+ }],
3745
+ s: [twoDigits, function (d, v) {
3746
+ d.second = v;
3747
+ }],
3748
+ yyyy: [fourDigits, function (d, v) {
3749
+ d.year = v;
3750
+ }],
3751
+ S: ['\\d', function (d, v) {
3752
+ d.millisecond = v * 100;
3753
+ }],
3754
+ SS: ['\\d{2}', function (d, v) {
3755
+ d.millisecond = v * 10;
3756
+ }],
3757
+ SSS: [threeDigits, function (d, v) {
3758
+ d.millisecond = v;
3759
+ }],
3760
+ D: [twoDigits, noop],
3761
+ ddd: [word, noop],
3762
+ MMM: [word, monthUpdate('monthNamesShort')],
3763
+ MMMM: [word, monthUpdate('monthNames')],
3764
+ a: [word, function (d, v) {
3765
+ const val = v.toLowerCase();
3766
+ if (val === '上午') {
3767
+ d.isPm = false;
3768
+ } else if (val === '下午') {
3769
+ d.isPm = true;
3770
+ }
3771
+ }],
3772
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
3773
+ let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
3774
+
3775
+ if (parts) {
3776
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
3777
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
3778
+ }
3779
+ }]
3780
+ };
3781
+ parseFlags.dd = parseFlags.d;
3782
+ parseFlags.dddd = parseFlags.ddd;
3783
+ parseFlags.DD = parseFlags.D;
3784
+ parseFlags.mm = parseFlags.m;
3785
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
3786
+ parseFlags.MM = parseFlags.M;
3787
+ parseFlags.ss = parseFlags.s;
3788
+ parseFlags.A = parseFlags.a;
3789
+
3790
+
3791
+ // Some common format strings
3792
+ fecha.masks = {
3793
+ default: 'ddd MMM dd yyyy HH:mm:ss',
3794
+ shortDate: 'M/D/yy',
3795
+ mediumDate: 'MMM d, yyyy',
3796
+ longDate: 'MMMM d, yyyy',
3797
+ fullDate: 'dddd, MMMM d, yyyy',
3798
+ shortTime: 'HH:mm',
3799
+ mediumTime: 'HH:mm:ss',
3800
+ longTime: 'HH:mm:ss.SSS'
3801
+ };
3802
+
3777
3803
  /***
3778
3804
  * Format a date
3779
3805
  * @method format
3780
3806
  * @param {Date|number} dateObj
3781
3807
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
3782
- */
3783
- fecha.format = function (dateObj, mask) {
3784
- if (typeof dateObj === 'number') {
3785
- dateObj = new Date(dateObj);
3786
- }
3787
-
3788
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
3789
- throw new Error('Invalid Date in fecha.format');
3790
- }
3791
-
3792
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
3793
-
3794
- var literals = [];
3795
-
3796
- // Make literals inactive by replacing them with ??
3797
- mask = mask.replace(literal, function ($0, $1) {
3798
- literals.push($1);
3799
- return '@@@';
3800
- });
3801
- // Apply formatting rules
3802
- mask = mask.replace(token, function ($0) {
3803
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
3804
- });
3805
- // Inline literal values back into the formatted value
3806
- return mask.replace(/@@@/g, function () {
3807
- return literals.shift();
3808
- });
3809
- };
3810
-
3808
+ */
3809
+ fecha.format = function (dateObj, mask) {
3810
+ if (typeof dateObj === 'number') {
3811
+ dateObj = new Date(dateObj);
3812
+ }
3813
+
3814
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
3815
+ throw new Error('Invalid Date in fecha.format');
3816
+ }
3817
+
3818
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
3819
+
3820
+ const literals = [];
3821
+
3822
+ // Make literals inactive by replacing them with ??
3823
+ mask = mask.replace(literal, function($0, $1) {
3824
+ literals.push($1);
3825
+ return '@@@';
3826
+ });
3827
+ // Apply formatting rules
3828
+ mask = mask.replace(token, function ($0) {
3829
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
3830
+ });
3831
+ // Inline literal values back into the formatted value
3832
+ return mask.replace(/@@@/g, function() {
3833
+ return literals.shift();
3834
+ });
3835
+ };
3836
+
3811
3837
  /**
3812
3838
  * Parse a date string into an object, changes - into /
3813
3839
  * @method parse
3814
3840
  * @param {string} dateStr Date string
3815
3841
  * @param {string} format Date parse format
3816
3842
  * @returns {Date|boolean}
3817
- */
3818
- fecha.parse = function (dateStr, format) {
3819
- if (typeof format !== 'string') {
3820
- throw new Error('Invalid format in fecha.parse');
3821
- }
3822
-
3823
- format = fecha.masks[format] || format;
3824
-
3825
- // Avoid regular expression denial of service, fail early for really long strings
3826
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
3827
- if (dateStr.length > 1000) {
3828
- return null;
3829
- }
3830
-
3831
- var dateInfo = {};
3832
- var parseInfo = [];
3833
- var literals = [];
3834
- format = format.replace(literal, function ($0, $1) {
3835
- literals.push($1);
3836
- return '@@@';
3837
- });
3838
- var newFormat = regexEscape(format).replace(token, function ($0) {
3839
- if (parseFlags[$0]) {
3840
- var info = parseFlags[$0];
3841
- parseInfo.push(info[1]);
3842
- return '(' + info[0] + ')';
3843
- }
3844
-
3845
- return $0;
3846
- });
3847
- newFormat = newFormat.replace(/@@@/g, function () {
3848
- return literals.shift();
3849
- });
3850
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
3851
- if (!matches) {
3852
- return null;
3853
- }
3854
-
3855
- for (var i = 1; i < matches.length; i++) {
3856
- parseInfo[i - 1](dateInfo, matches[i]);
3857
- }
3858
-
3859
- var today = new Date();
3860
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
3861
- dateInfo.hour = +dateInfo.hour + 12;
3862
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
3863
- dateInfo.hour = 0;
3864
- }
3865
-
3866
- var date = void 0;
3867
- if (dateInfo.timezoneOffset != null) {
3868
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
3869
- 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));
3870
- } else {
3871
- 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);
3872
- }
3873
- return date;
3874
- };
3875
-
3876
- // 导出fecha对象
3877
-
3878
-
3879
- // 以下是从date-util.js合并的函数
3880
- var newArray = function newArray(start, end) {
3881
- var result = [];
3882
- for (var i = start; i <= end; i++) {
3883
- result.push(i);
3884
- }
3885
- return result;
3886
- };
3887
-
3888
- var getSettings = function getSettings() {
3889
- return {
3890
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
3891
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
3892
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
3893
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
3894
- amPm: ['上午', '下午']
3895
- };
3896
- };
3897
-
3898
- var toDate = function toDate(date) {
3899
- return isDate(date) ? new Date(date) : null;
3900
- };
3901
-
3902
- var isDate = function isDate(date) {
3903
- if (date === null || date === undefined) return false;
3904
- if (isNaN(new Date(date).getTime())) return false;
3905
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
3906
- return true;
3907
- };
3908
-
3909
- var isDateObject = function isDateObject(val) {
3910
- return val instanceof Date;
3911
- };
3912
-
3913
- var formatDate = function formatDate(date) {
3914
- var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
3915
-
3916
- // 处理多种输入类型
3917
- if (!date) return '';
3918
-
3919
- // 如果是时间戳,转成日期对象
3920
- if (typeof date === 'number') {
3921
- date = new Date(date);
3922
- }
3923
- // 如果是字符串,转成日期对象
3924
- if (typeof date === 'string') {
3925
- date = new Date(date);
3926
- }
3927
-
3928
- // 调用toDate进一步验证和转换
3929
- date = toDate(date);
3930
- if (!date) return '';
3931
-
3932
- // 兼容大写和小写的格式标记
3933
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
3934
- var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
3935
-
3936
- // 使用fecha库进行格式化,支持中文配置
3937
- var str = fecha.format(date, lowercaseFormat, getSettings());
3938
- return str;
3939
- };
3940
-
3941
- var parseDate = function parseDate(string, format) {
3942
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
3943
- };
3944
-
3945
- var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
3946
- if (month === 3 || month === 5 || month === 8 || month === 10) {
3947
- return 30;
3948
- }
3949
-
3950
- if (month === 1) {
3951
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
3952
- return 29;
3953
- } else {
3954
- return 28;
3955
- }
3956
- }
3957
-
3958
- return 31;
3959
- };
3960
-
3961
- var getDayCountOfYear = function getDayCountOfYear(year) {
3962
- var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
3963
- return isLeapYear ? 366 : 365;
3964
- };
3965
-
3966
- var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
3967
- var temp = new Date(date.getTime());
3968
- temp.setDate(1);
3969
- return temp.getDay();
3970
- };
3971
-
3972
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
3973
- // {prev, next} Date should work for Daylight Saving Time
3974
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
3975
- var prevDate = function prevDate(date) {
3976
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
3977
-
3978
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
3979
- };
3980
-
3981
- var nextDate = function nextDate(date) {
3982
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
3983
-
3984
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
3985
- };
3986
-
3987
- var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
3988
- var result = new Date(year, month, 1);
3989
- var day = result.getDay();
3990
-
3991
- if (day === 0) {
3992
- return prevDate(result, 7);
3993
- } else {
3994
- return prevDate(result, day);
3995
- }
3996
- };
3997
-
3998
- var getWeekNumber = function getWeekNumber(date) {
3999
- // 支持多种输入类型
4000
- if (!date || !isDate(date)) {
4001
- date = new Date();
4002
- }
4003
- if (typeof date === 'string') {
4004
- date = new Date(date);
4005
- }
4006
-
4007
- // 验证日期有效性
4008
- if (!isDate(date)) return null;
4009
-
4010
- var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
4011
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
4012
- // 将星期日的星期数设为7
4013
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
4014
- // 获取当年的第一天
4015
- var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
4016
- // 计算到最近的星期四的完整周数
4017
- var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
4018
- // 返回周数
4019
- return weekNo;
4020
- };
4021
-
4022
- var getRangeHours = function getRangeHours(ranges) {
4023
- var hours = [];
4024
- var disabledHours = [];
4025
-
4026
- (ranges || []).forEach(function (range) {
4027
- var value = range.map(function (date) {
4028
- return date.getHours();
4029
- });
4030
-
4031
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
4032
- });
4033
-
4034
- if (disabledHours.length) {
4035
- for (var i = 0; i < 24; i++) {
4036
- hours[i] = disabledHours.indexOf(i) === -1;
4037
- }
4038
- } else {
4039
- for (var _i = 0; _i < 24; _i++) {
4040
- hours[_i] = false;
4041
- }
4042
- }
4043
-
4044
- return hours;
4045
- };
4046
-
4047
- var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
4048
- if (amount <= 0) return [];
4049
- var temp = new Date(date.getTime());
4050
- temp.setDate(0);
4051
- var lastDay = temp.getDate();
4052
- return range(amount).map(function (_, index) {
4053
- return lastDay - (amount - index - 1);
4054
- });
4055
- };
4056
-
4057
- var getMonthDays = function getMonthDays(date) {
4058
- var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
4059
- var days = temp.getDate();
4060
- return range(days).map(function (_, index) {
4061
- return index + 1;
4062
- });
4063
- };
4064
-
4065
- function setRangeData(arr, start, end, value) {
4066
- for (var i = start; i < end; i++) {
4067
- arr[i] = value;
4068
- }
4069
- }
4070
-
4071
- var getRangeMinutes = function getRangeMinutes(ranges, hour) {
4072
- var minutes = new Array(60);
4073
-
4074
- if (ranges.length > 0) {
4075
- ranges.forEach(function (range) {
4076
- var start = range[0];
4077
- var end = range[1];
4078
- var startHour = start.getHours();
4079
- var startMinute = start.getMinutes();
4080
- var endHour = end.getHours();
4081
- var endMinute = end.getMinutes();
4082
- if (startHour === hour && endHour !== hour) {
4083
- setRangeData(minutes, startMinute, 60, true);
4084
- } else if (startHour === hour && endHour === hour) {
4085
- setRangeData(minutes, startMinute, endMinute + 1, true);
4086
- } else if (startHour !== hour && endHour === hour) {
4087
- setRangeData(minutes, 0, endMinute + 1, true);
4088
- } else if (startHour < hour && endHour > hour) {
4089
- setRangeData(minutes, 0, 60, true);
4090
- }
4091
- });
4092
- } else {
4093
- setRangeData(minutes, 0, 60, true);
4094
- }
4095
- return minutes;
4096
- };
4097
-
4098
- var range = function range(n) {
4099
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
4100
- return Array.apply(null, { length: n }).map(function (_, n) {
4101
- return n;
4102
- });
4103
- };
4104
-
4105
- var modifyDate = function modifyDate(date, y, m, d) {
4106
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
4107
- };
4108
-
4109
- var modifyTime = function modifyTime(date, h, m, s) {
4110
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
4111
- };
4112
-
4113
- var modifyWithTimeString = function modifyWithTimeString(date, time) {
4114
- if (date == null || !time) {
4115
- return date;
4116
- }
4117
- time = parseDate(time, 'HH:mm:ss');
4118
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
4119
- };
4120
-
4121
- var clearTime = function clearTime(date) {
4122
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
4123
- };
4124
-
4125
- var clearMilliseconds = function clearMilliseconds(date) {
4126
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
4127
- };
4128
-
4129
- var limitTimeRange = function limitTimeRange(date, ranges) {
4130
- var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
4131
-
4132
- // TODO: refactory a more elegant solution
4133
- if (ranges.length === 0) return date;
4134
- var normalizeDate = function normalizeDate(date) {
4135
- return fecha.parse(fecha.format(date, format), format);
4136
- };
4137
- var ndate = normalizeDate(date);
4138
- var nranges = ranges.map(function (range) {
4139
- return range.map(normalizeDate);
4140
- });
4141
- if (nranges.some(function (nrange) {
4142
- return ndate >= nrange[0] && ndate <= nrange[1];
4143
- })) return date;
4144
-
4145
- var minDate = nranges[0][0];
4146
- var maxDate = nranges[0][0];
4147
-
4148
- nranges.forEach(function (nrange) {
4149
- minDate = new Date(Math.min(nrange[0], minDate));
4150
- maxDate = new Date(Math.max(nrange[1], minDate));
4151
- });
4152
-
4153
- var ret = ndate < minDate ? minDate : maxDate;
4154
- // preserve Year/Month/Date
4155
- return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
4156
- };
4157
-
4158
- var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
4159
- var limitedDate = limitTimeRange(date, selectableRange, format);
4160
- return limitedDate.getTime() === date.getTime();
4161
- };
4162
-
4163
- var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
4164
- // clamp date to the number of days in `year`, `month`
4165
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
4166
- var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
4167
- return modifyDate(date, year, month, monthDate);
4168
- };
4169
-
4170
- var prevMonth = function prevMonth(date) {
4171
- var year = date.getFullYear();
4172
- var month = date.getMonth();
4173
- return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
4174
- };
4175
-
4176
- var nextMonth = function nextMonth(date) {
4177
- var year = date.getFullYear();
4178
- var month = date.getMonth();
4179
- return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
4180
- };
4181
-
4182
- var prevYear = function prevYear(date) {
4183
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
4184
-
4185
- var year = date.getFullYear();
4186
- var month = date.getMonth();
4187
- return changeYearMonthAndClampDate(date, year - amount, month);
4188
- };
4189
-
4190
- var nextYear = function nextYear(date) {
4191
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
4192
-
4193
- var year = date.getFullYear();
4194
- var month = date.getMonth();
4195
- return changeYearMonthAndClampDate(date, year + amount, month);
4196
- };
4197
-
4198
- var extractDateFormat = function extractDateFormat(format) {
4199
- return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
4200
- };
4201
-
4202
- var extractTimeFormat = function extractTimeFormat(format) {
4203
- return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
4204
- };
4205
-
4206
- var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
4207
- return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
4208
- };
4209
-
3843
+ */
3844
+ fecha.parse = function (dateStr, format) {
3845
+ if (typeof format !== 'string') {
3846
+ throw new Error('Invalid format in fecha.parse');
3847
+ }
3848
+
3849
+ format = fecha.masks[format] || format;
3850
+
3851
+ // Avoid regular expression denial of service, fail early for really long strings
3852
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
3853
+ if (dateStr.length > 1000) {
3854
+ return null;
3855
+ }
3856
+
3857
+ const dateInfo = {};
3858
+ const parseInfo = [];
3859
+ const literals = [];
3860
+ format = format.replace(literal, function($0, $1) {
3861
+ literals.push($1);
3862
+ return '@@@';
3863
+ });
3864
+ let newFormat = regexEscape(format).replace(token, function ($0) {
3865
+ if (parseFlags[$0]) {
3866
+ const info = parseFlags[$0];
3867
+ parseInfo.push(info[1]);
3868
+ return '(' + info[0] + ')';
3869
+ }
3870
+
3871
+ return $0;
3872
+ });
3873
+ newFormat = newFormat.replace(/@@@/g, function() {
3874
+ return literals.shift();
3875
+ });
3876
+ const matches = dateStr.match(new RegExp(newFormat, 'i'));
3877
+ if (!matches) {
3878
+ return null;
3879
+ }
3880
+
3881
+ for (let i = 1; i < matches.length; i++) {
3882
+ parseInfo[i - 1](dateInfo, matches[i]);
3883
+ }
3884
+
3885
+ const today = new Date();
3886
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
3887
+ dateInfo.hour = +dateInfo.hour + 12;
3888
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
3889
+ dateInfo.hour = 0;
3890
+ }
3891
+
3892
+ let date;
3893
+ if (dateInfo.timezoneOffset != null) {
3894
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
3895
+ date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
3896
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
3897
+ } else {
3898
+ date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
3899
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
3900
+ }
3901
+ return date;
3902
+ };
3903
+
3904
+ // 导出fecha对象
3905
+
3906
+
3907
+ // 以下是从date-util.js合并的函数
3908
+ const newArray = function(start, end) {
3909
+ let result = [];
3910
+ for (let i = start; i <= end; i++) {
3911
+ result.push(i);
3912
+ }
3913
+ return result;
3914
+ };
3915
+
3916
+ const getSettings = () => {
3917
+ return {
3918
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
3919
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
3920
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
3921
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
3922
+ amPm: ['上午', '下午']
3923
+ };
3924
+ };
3925
+
3926
+ const toDate = function(date) {
3927
+ return isDate(date) ? new Date(date) : null;
3928
+ };
3929
+
3930
+ const isDate = function(date) {
3931
+ if (date === null || date === undefined) return false;
3932
+ if (isNaN(new Date(date).getTime())) return false;
3933
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
3934
+ return true;
3935
+ };
3936
+
3937
+ const isDateObject = function(val) {
3938
+ return val instanceof Date;
3939
+ };
3940
+
3941
+ const formatDate = function (date, format = 'yyyy-MM-dd') {
3942
+ // 处理多种输入类型
3943
+ if (!date) return '';
3944
+
3945
+ // 如果是时间戳,转成日期对象
3946
+ if (typeof date === 'number') {
3947
+ date = new Date(date);
3948
+ }
3949
+ // 如果是字符串,转成日期对象
3950
+ if (typeof date === 'string') {
3951
+ date = new Date(date);
3952
+ }
3953
+
3954
+ // 调用toDate进一步验证和转换
3955
+ date = toDate(date);
3956
+ if (!date) return '';
3957
+
3958
+ // 兼容大写和小写的格式标记
3959
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
3960
+ const lowercaseFormat = format
3961
+ .replace(/YYYY/g, 'yyyy')
3962
+ .replace(/D/g, 'd')
3963
+
3964
+ // 使用fecha库进行格式化,支持中文配置
3965
+ const str = fecha.format(date, lowercaseFormat, getSettings());
3966
+ return str;
3967
+ };
3968
+
3969
+ const parseDate = function(string, format) {
3970
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
3971
+ };
3972
+
3973
+ const getDayCountOfMonth = function(year, month) {
3974
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
3975
+ return 30;
3976
+ }
3977
+
3978
+ if (month === 1) {
3979
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
3980
+ return 29;
3981
+ } else {
3982
+ return 28;
3983
+ }
3984
+ }
3985
+
3986
+ return 31;
3987
+ };
3988
+
3989
+ const getDayCountOfYear = function(year) {
3990
+ const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
3991
+ return isLeapYear ? 366 : 365;
3992
+ };
3993
+
3994
+ const getFirstDayOfMonth = function(date) {
3995
+ const temp = new Date(date.getTime());
3996
+ temp.setDate(1);
3997
+ return temp.getDay();
3998
+ };
3999
+
4000
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
4001
+ // {prev, next} Date should work for Daylight Saving Time
4002
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
4003
+ const prevDate = function(date, amount = 1) {
4004
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
4005
+ };
4006
+
4007
+ const nextDate = function(date, amount = 1) {
4008
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
4009
+ };
4010
+
4011
+ const getStartDateOfMonth = function(year, month) {
4012
+ const result = new Date(year, month, 1);
4013
+ const day = result.getDay();
4014
+
4015
+ if (day === 0) {
4016
+ return prevDate(result, 7);
4017
+ } else {
4018
+ return prevDate(result, day);
4019
+ }
4020
+ };
4021
+
4022
+ const getWeekNumber = function(date) {
4023
+ // 支持多种输入类型
4024
+ if (!date||!isDate(date)) {
4025
+ date = new Date();
4026
+ }
4027
+ if (typeof date === 'string') {
4028
+ date = new Date(date);
4029
+ }
4030
+
4031
+ // 验证日期有效性
4032
+ if (!isDate(date)) return null;
4033
+
4034
+ const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
4035
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
4036
+ // 将星期日的星期数设为7
4037
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
4038
+ // 获取当年的第一天
4039
+ const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
4040
+ // 计算到最近的星期四的完整周数
4041
+ const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
4042
+ // 返回周数
4043
+ return weekNo;
4044
+ };
4045
+
4046
+ const getRangeHours = function(ranges) {
4047
+ const hours = [];
4048
+ let disabledHours = [];
4049
+
4050
+ (ranges || []).forEach(range => {
4051
+ const value = range.map(date => date.getHours());
4052
+
4053
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
4054
+ });
4055
+
4056
+ if (disabledHours.length) {
4057
+ for (let i = 0; i < 24; i++) {
4058
+ hours[i] = disabledHours.indexOf(i) === -1;
4059
+ }
4060
+ } else {
4061
+ for (let i = 0; i < 24; i++) {
4062
+ hours[i] = false;
4063
+ }
4064
+ }
4065
+
4066
+ return hours;
4067
+ };
4068
+
4069
+ const getPrevMonthLastDays = (date, amount) => {
4070
+ if (amount <= 0) return [];
4071
+ const temp = new Date(date.getTime());
4072
+ temp.setDate(0);
4073
+ const lastDay = temp.getDate();
4074
+ return range(amount).map((_, index) => lastDay - (amount - index - 1));
4075
+ };
4076
+
4077
+ const getMonthDays = (date) => {
4078
+ const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
4079
+ const days = temp.getDate();
4080
+ return range(days).map((_, index) => index + 1);
4081
+ };
4082
+
4083
+ function setRangeData(arr, start, end, value) {
4084
+ for (let i = start; i < end; i++) {
4085
+ arr[i] = value;
4086
+ }
4087
+ }
4088
+
4089
+ const getRangeMinutes = function(ranges, hour) {
4090
+ const minutes = new Array(60);
4091
+
4092
+ if (ranges.length > 0) {
4093
+ ranges.forEach(range => {
4094
+ const start = range[0];
4095
+ const end = range[1];
4096
+ const startHour = start.getHours();
4097
+ const startMinute = start.getMinutes();
4098
+ const endHour = end.getHours();
4099
+ const endMinute = end.getMinutes();
4100
+ if (startHour === hour && endHour !== hour) {
4101
+ setRangeData(minutes, startMinute, 60, true);
4102
+ } else if (startHour === hour && endHour === hour) {
4103
+ setRangeData(minutes, startMinute, endMinute + 1, true);
4104
+ } else if (startHour !== hour && endHour === hour) {
4105
+ setRangeData(minutes, 0, endMinute + 1, true);
4106
+ } else if (startHour < hour && endHour > hour) {
4107
+ setRangeData(minutes, 0, 60, true);
4108
+ }
4109
+ });
4110
+ } else {
4111
+ setRangeData(minutes, 0, 60, true);
4112
+ }
4113
+ return minutes;
4114
+ };
4115
+
4116
+ const range = function(n) {
4117
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
4118
+ return Array.apply(null, {length: n}).map((_, n) => n);
4119
+ };
4120
+
4121
+ const modifyDate = function(date, y, m, d) {
4122
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
4123
+ };
4124
+
4125
+ const modifyTime = function(date, h, m, s) {
4126
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
4127
+ };
4128
+
4129
+ const modifyWithTimeString = (date, time) => {
4130
+ if (date == null || !time) {
4131
+ return date;
4132
+ }
4133
+ time = parseDate(time, 'HH:mm:ss');
4134
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
4135
+ };
4136
+
4137
+ const clearTime = function(date) {
4138
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
4139
+ };
4140
+
4141
+ const clearMilliseconds = function(date) {
4142
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
4143
+ };
4144
+
4145
+ const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
4146
+ // TODO: refactory a more elegant solution
4147
+ if (ranges.length === 0) return date;
4148
+ const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
4149
+ const ndate = normalizeDate(date);
4150
+ const nranges = ranges.map(range => range.map(normalizeDate));
4151
+ if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
4152
+
4153
+ let minDate = nranges[0][0];
4154
+ let maxDate = nranges[0][0];
4155
+
4156
+ nranges.forEach(nrange => {
4157
+ minDate = new Date(Math.min(nrange[0], minDate));
4158
+ maxDate = new Date(Math.max(nrange[1], minDate));
4159
+ });
4160
+
4161
+ const ret = ndate < minDate ? minDate : maxDate;
4162
+ // preserve Year/Month/Date
4163
+ return modifyDate(
4164
+ ret,
4165
+ date.getFullYear(),
4166
+ date.getMonth(),
4167
+ date.getDate()
4168
+ );
4169
+ };
4170
+
4171
+ const timeWithinRange = function(date, selectableRange, format) {
4172
+ const limitedDate = limitTimeRange(date, selectableRange, format);
4173
+ return limitedDate.getTime() === date.getTime();
4174
+ };
4175
+
4176
+ const changeYearMonthAndClampDate = function(date, year, month) {
4177
+ // clamp date to the number of days in `year`, `month`
4178
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
4179
+ const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
4180
+ return modifyDate(date, year, month, monthDate);
4181
+ };
4182
+
4183
+ const prevMonth = function(date) {
4184
+ const year = date.getFullYear();
4185
+ const month = date.getMonth();
4186
+ return month === 0
4187
+ ? changeYearMonthAndClampDate(date, year - 1, 11)
4188
+ : changeYearMonthAndClampDate(date, year, month - 1);
4189
+ };
4190
+
4191
+ const nextMonth = function(date) {
4192
+ const year = date.getFullYear();
4193
+ const month = date.getMonth();
4194
+ return month === 11
4195
+ ? changeYearMonthAndClampDate(date, year + 1, 0)
4196
+ : changeYearMonthAndClampDate(date, year, month + 1);
4197
+ };
4198
+
4199
+ const prevYear = function(date, amount = 1) {
4200
+ const year = date.getFullYear();
4201
+ const month = date.getMonth();
4202
+ return changeYearMonthAndClampDate(date, year - amount, month);
4203
+ };
4204
+
4205
+ const nextYear = function(date, amount = 1) {
4206
+ const year = date.getFullYear();
4207
+ const month = date.getMonth();
4208
+ return changeYearMonthAndClampDate(date, year + amount, month);
4209
+ };
4210
+
4211
+ const extractDateFormat = function(format) {
4212
+ return format
4213
+ .replace(/\W?m{1,2}|\W?ZZ/g, '')
4214
+ .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
4215
+ .trim();
4216
+ };
4217
+
4218
+ const extractTimeFormat = function(format) {
4219
+ return format
4220
+ .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
4221
+ .trim();
4222
+ };
4223
+
4224
+ const validateRangeInOneMonth = function(start, end) {
4225
+ return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
4226
+ };
4227
+
4210
4228
  /**
4211
4229
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
4212
4230
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
4213
4231
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
4214
4232
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
4215
4233
  * @returns {number} 工作日数量
4216
- */
4217
- var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
4218
- var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
4219
-
4220
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
4221
- throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
4222
- }
4223
-
4224
- var startDateObj = new Date(start_date);
4225
- var endDateObj = new Date(end_date);
4226
-
4227
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
4228
- throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
4229
- }
4230
-
4231
- if (startDateObj > endDateObj) {
4232
- throw new Error('Start date should be earlier than or equal to end date.');
4233
- }
4234
-
4235
- var workdays = 0;
4236
-
4237
- // Iterate through each day in the date range
4238
-
4239
- var _loop = function _loop(currentDate) {
4240
- // Check if the current day is a weekend (Saturday or Sunday)
4241
- var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
4242
-
4243
- // Check if the current day is a holiday
4244
- var isHoliday = holidays.some(function (holiday) {
4245
- var holidayDate = new Date(holiday);
4246
- return currentDate.toDateString() === holidayDate.toDateString();
4247
- });
4248
-
4249
- // If it's a workday (not a weekend or holiday), increment the workdays count
4250
- if (!isWeekend && !isHoliday) {
4251
- workdays++;
4252
- }
4253
- };
4254
-
4255
- for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
4256
- _loop(currentDate);
4257
- }
4258
-
4259
- return workdays;
4260
- };
4261
-
4234
+ */
4235
+ const calculateNetworkDays = function (start_date, end_date, holidays = []) {
4236
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
4237
+ throw new Error(
4238
+ "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
4239
+ );
4240
+ }
4241
+
4242
+ const startDateObj = new Date(start_date);
4243
+ const endDateObj = new Date(end_date);
4244
+
4245
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
4246
+ throw new Error(
4247
+ "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
4248
+ );
4249
+ }
4250
+
4251
+ if (startDateObj > endDateObj) {
4252
+ throw new Error('Start date should be earlier than or equal to end date.');
4253
+ }
4254
+
4255
+ let workdays = 0;
4256
+
4257
+ // Iterate through each day in the date range
4258
+ for (
4259
+ let currentDate = new Date(startDateObj);
4260
+ currentDate <= endDateObj;
4261
+ currentDate.setDate(currentDate.getDate() + 1)
4262
+ ) {
4263
+ // Check if the current day is a weekend (Saturday or Sunday)
4264
+ const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
4265
+
4266
+ // Check if the current day is a holiday
4267
+ const isHoliday = holidays.some((holiday) => {
4268
+ const holidayDate = new Date(holiday);
4269
+ return currentDate.toDateString() === holidayDate.toDateString();
4270
+ });
4271
+
4272
+ // If it's a workday (not a weekend or holiday), increment the workdays count
4273
+ if (!isWeekend && !isHoliday) {
4274
+ workdays++;
4275
+ }
4276
+ }
4277
+
4278
+ return workdays;
4279
+ };
4280
+
4262
4281
  /**
4263
4282
  * 日期加减天数
4264
4283
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
4265
4284
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
4266
4285
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
4267
- */
4268
- var dateAddDays = function dateAddDays(start_date, days) {
4269
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
4270
- 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.");
4271
- }
4272
-
4273
- var startDateObj = new Date(start_date);
4274
- if (isNaN(startDateObj.getTime())) {
4275
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
4276
- }
4277
-
4278
- var resultDateObj = new Date(startDateObj);
4279
- resultDateObj.setDate(resultDateObj.getDate() + days);
4280
-
4281
- var resultYear = resultDateObj.getFullYear();
4282
- var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
4283
- var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
4284
-
4285
- return resultYear + '-' + resultMonth + '-' + resultDay;
4286
- };
4287
-
4286
+ */
4287
+ const dateAddDays = function (start_date, days) {
4288
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
4289
+ throw new Error(
4290
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
4291
+ );
4292
+ }
4293
+
4294
+ const startDateObj = new Date(start_date);
4295
+ if (isNaN(startDateObj.getTime())) {
4296
+ throw new Error(
4297
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
4298
+ );
4299
+ }
4300
+
4301
+ const resultDateObj = new Date(startDateObj);
4302
+ resultDateObj.setDate(resultDateObj.getDate() + days);
4303
+
4304
+ const resultYear = resultDateObj.getFullYear();
4305
+ const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
4306
+ const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
4307
+
4308
+ return `${resultYear}-${resultMonth}-${resultDay}`;
4309
+ };
4310
+
4288
4311
  /**
4289
4312
  * 计算两个日期之间的差值
4290
4313
  * @date 2023年12月14日
@@ -4292,180 +4315,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
4292
4315
  * @param {String} end_date - 结束日期字符串
4293
4316
  * @param {String} unit - 单位:year/month/day
4294
4317
  * @returns {Number} 差值
4295
- */
4296
- var dateDiff = function dateDiff(start_date, end_date) {
4297
- var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
4298
-
4299
- // Assuming date strings are in "YYYY-MM-DD" format
4300
- var startDate = new Date(start_date);
4301
- var endDate = new Date(end_date);
4302
-
4303
- // If the date is invalid, return 0
4304
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
4305
- return 0;
4306
- }
4307
-
4308
- if (unit === 'year') {
4309
- return endDate.getFullYear() - startDate.getFullYear();
4310
- } else if (unit === 'month') {
4311
- return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
4312
- } else {
4313
- // Default to day
4314
- var timeDifference = endDate - startDate;
4315
- // Calculate days (86400000 milliseconds per day)
4316
- return Math.floor(timeDifference / 86400000);
4317
- }
4318
- };
4319
-
4318
+ */
4319
+ const dateDiff = function (start_date, end_date, unit = 'day') {
4320
+ // Assuming date strings are in "YYYY-MM-DD" format
4321
+ var startDate = new Date(start_date);
4322
+ var endDate = new Date(end_date);
4323
+
4324
+ // If the date is invalid, return 0
4325
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
4326
+ return 0;
4327
+ }
4328
+
4329
+ if (unit === 'year') {
4330
+ return endDate.getFullYear() - startDate.getFullYear();
4331
+ } else if (unit === 'month') {
4332
+ return (
4333
+ (endDate.getFullYear() - startDate.getFullYear()) * 12 +
4334
+ (endDate.getMonth() - startDate.getMonth())
4335
+ );
4336
+ } else {
4337
+ // Default to day
4338
+ var timeDifference = endDate - startDate;
4339
+ // Calculate days (86400000 milliseconds per day)
4340
+ return Math.floor(timeDifference / 86400000);
4341
+ }
4342
+ };
4343
+
4320
4344
  /**
4321
4345
  * 获取月份中的日期
4322
4346
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
4323
4347
  * @returns {number} 月份中的日期(1-31)
4324
- */
4325
- var dayOfMonth = function dayOfMonth(date) {
4326
- if (typeof date !== 'string') {
4327
- throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
4328
- }
4329
-
4330
- var dateObj = new Date(date);
4331
- if (isNaN(dateObj.getTime())) {
4332
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
4333
- }
4334
-
4335
- return dateObj.getDate();
4336
- };
4337
-
4348
+ */
4349
+ const dayOfMonth = function (date) {
4350
+ if (typeof date !== 'string') {
4351
+ throw new Error(
4352
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
4353
+ );
4354
+ }
4355
+
4356
+ const dateObj = new Date(date);
4357
+ if (isNaN(dateObj.getTime())) {
4358
+ throw new Error(
4359
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
4360
+ );
4361
+ }
4362
+
4363
+ return dateObj.getDate();
4364
+ };
4365
+
4338
4366
  /**
4339
4367
  * 获取当前日期
4340
4368
  * @date 2022年5月7日
4341
4369
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
4342
4370
  * @returns {string} 当前日期的格式化字符串
4343
- */
4344
- var getCurrentDate = function getCurrentDate() {
4345
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
4346
-
4347
- return formatDate(new Date(), format);
4348
- };
4349
-
4371
+ */
4372
+ const getCurrentDate = function (format = 'YYYY-MM-DD') {
4373
+ return formatDate(new Date(), format);
4374
+ };
4375
+
4350
4376
  /**
4351
4377
  * 获取当前日期时间
4352
4378
  * @date 2022年5月7日
4353
4379
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
4354
4380
  * @returns {string} 当前日期时间的格式化字符串
4355
- */
4356
- var getCurrentDateTime = function getCurrentDateTime() {
4357
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
4358
-
4359
- return formatDate(new Date(), format);
4360
- };
4361
-
4381
+ */
4382
+ const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
4383
+ return formatDate(new Date(), format);
4384
+ };
4385
+
4362
4386
  /**
4363
4387
  * 获取小时
4364
4388
  * @date 2022年5月7日
4365
4389
  * @param {Date|string} [date] - 日期对象或日期字符串
4366
4390
  * @returns {number} 小时数(0-23)
4367
- */
4368
- var getHour = function getHour(date) {
4369
- if (!date) {
4370
- return new Date().getHours();
4371
- }
4372
- if (typeof date === 'string') {
4373
- date = new Date(date);
4374
- }
4375
- return date.getHours();
4376
- };
4377
-
4391
+ */
4392
+ const getHour = function (date) {
4393
+ if (!date) {
4394
+ return new Date().getHours();
4395
+ }
4396
+ if (typeof date === 'string') {
4397
+ date = new Date(date);
4398
+ }
4399
+ return date.getHours();
4400
+ };
4401
+
4378
4402
  /**
4379
4403
  * 获取分钟
4380
4404
  * @date 2022年5月7日
4381
4405
  * @param {Date|string} [date] - 日期对象或日期字符串
4382
4406
  * @returns {number} 分钟数(0-59)
4383
- */
4384
- var getMinute = function getMinute(date) {
4385
- if (!date) {
4386
- return new Date().getMinutes();
4387
- }
4388
- if (typeof date === 'string') {
4389
- date = new Date(date);
4390
- }
4391
- return date.getMinutes();
4392
- };
4393
-
4407
+ */
4408
+ const getMinute = function (date) {
4409
+ if (!date) {
4410
+ return new Date().getMinutes();
4411
+ }
4412
+ if (typeof date === 'string') {
4413
+ date = new Date(date);
4414
+ }
4415
+ return date.getMinutes();
4416
+ };
4417
+
4394
4418
  /**
4395
4419
  * 获取月份
4396
4420
  * @date 2022年5月7日
4397
4421
  * @param {Date|string} [date] - 日期对象或日期字符串
4398
4422
  * @returns {number} 月份数(1-12)
4399
- */
4400
- var getMonth = function getMonth(date) {
4401
- if (!date) {
4402
- return new Date().getMonth() + 1;
4403
- }
4404
- if (typeof date === 'string') {
4405
- date = new Date(date);
4406
- }
4407
- return date.getMonth() + 1;
4408
- };
4409
-
4423
+ */
4424
+ const getMonth = function (date) {
4425
+ if (!date) {
4426
+ return new Date().getMonth() + 1;
4427
+ }
4428
+ if (typeof date === 'string') {
4429
+ date = new Date(date);
4430
+ }
4431
+ return date.getMonth() + 1;
4432
+ };
4433
+
4410
4434
  /**
4411
4435
  * 获取秒
4412
4436
  * @date 2022年5月7日
4413
4437
  * @param {Date|string} [date] - 日期对象或日期字符串
4414
4438
  * @returns {number} 秒数(0-59)
4415
- */
4416
- var getSecond = function getSecond(date) {
4417
- if (!date) {
4418
- return new Date().getSeconds();
4419
- }
4420
- if (typeof date === 'string') {
4421
- date = new Date(date);
4422
- }
4423
- return date.getSeconds();
4424
- };
4425
-
4439
+ */
4440
+ const getSecond = function (date) {
4441
+ if (!date) {
4442
+ return new Date().getSeconds();
4443
+ }
4444
+ if (typeof date === 'string') {
4445
+ date = new Date(date);
4446
+ }
4447
+ return date.getSeconds();
4448
+ };
4449
+
4426
4450
  /**
4427
4451
  * 获取星期几
4428
4452
  * @date 2022年5月7日
4429
4453
  * @param {Date|string} [date] - 日期对象或日期字符串
4430
4454
  * @returns {number} 星期几(0-6,0表示星期日)
4431
- */
4432
- var getWeekday = function getWeekday(date) {
4433
- if (!date) {
4434
- return new Date().getDay();
4435
- }
4436
- if (typeof date === 'string') {
4437
- date = new Date(date);
4438
- }
4439
- return date.getDay();
4440
- };
4441
-
4455
+ */
4456
+ const getWeekday = function (date) {
4457
+ if (!date) {
4458
+ return new Date().getDay();
4459
+ }
4460
+ if (typeof date === 'string') {
4461
+ date = new Date(date);
4462
+ }
4463
+ return date.getDay();
4464
+ };
4465
+
4466
+
4442
4467
  /**
4443
4468
  * @desc 获取上午/下午/晚上
4444
4469
  * @author huangbo
4445
4470
  * @date 2022年5月7日
4446
4471
  * @param {String} [time] - 时间
4447
- **/
4448
- var timeCycle = function timeCycle(time) {
4449
- var hour = 0;
4450
- if (!time) {
4451
- hour = new Date().getHours();
4452
- } else if (typeof time === 'string') {
4453
- // 从时间字符串中提取小时
4454
- var match = time.match(/^(\d{1,2})/);
4455
- if (match) {
4456
- hour = parseInt(match[1], 10);
4457
- }
4458
- } else if (typeof time === 'number') {
4459
- hour = time;
4460
- }
4461
- // 判断时间段
4462
- if (hour >= 5 && hour < 12) {
4463
- return '上午';
4464
- } else if (hour >= 12 && hour < 18) {
4465
- return '下午';
4466
- } else {
4467
- return '晚上';
4468
- }
4472
+ **/
4473
+ const timeCycle = function (time) {
4474
+ let hour = 0;
4475
+ if (!time) {
4476
+ hour = new Date().getHours();
4477
+ } else if (typeof time === 'string') {
4478
+ // 从时间字符串中提取小时
4479
+ const match = time.match(/^(\d{1,2})/);
4480
+ if (match) {
4481
+ hour = parseInt(match[1], 10);
4482
+ }
4483
+ } else if (typeof time === 'number') {
4484
+ hour = time;
4485
+ }
4486
+ // 判断时间段
4487
+ if (hour >= 5 && hour < 12) {
4488
+ return '上午';
4489
+ } else if (hour >= 12 && hour < 18) {
4490
+ return '下午';
4491
+ } else {
4492
+ return '晚上';
4493
+ }
4469
4494
  };
4470
4495
 
4471
4496
  /***/ }),
@@ -4672,7 +4697,7 @@ function isDefined(val) {
4672
4697
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doQrLogin; });
4673
4698
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return logout; });
4674
4699
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return initLogin; });
4675
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return switchUserTo; });
4700
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return switchUserTo; });
4676
4701
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return changeImg; });
4677
4702
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getLoginCode; });
4678
4703
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doCodeLogin; });
@@ -4690,13 +4715,13 @@ function isDefined(val) {
4690
4715
  /* unused harmony export scanCodeRetrialAuth */
4691
4716
  /* unused harmony export codeRetrialAuth */
4692
4717
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return doAssistanceQrLogin; });
4693
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return userOnline; });
4718
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return userOnline; });
4694
4719
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getUserAppWithTag; });
4695
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return recordUserApp; });
4720
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return recordUserApp; });
4696
4721
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getUserRecordApp; });
4697
4722
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return mainConfig; });
4698
4723
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return initUserSet; });
4699
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateUserInfo; });
4724
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return updateUserInfo; });
4700
4725
  /* unused harmony export getUserImgUrl */
4701
4726
  /* unused harmony export getDoorIndex */
4702
4727
  /* unused harmony export refreshOnlineUsers */
@@ -4708,22 +4733,22 @@ function isDefined(val) {
4708
4733
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getByType; });
4709
4734
  /* unused harmony export getUserCustomInfo */
4710
4735
  /* unused harmony export updateUserCustomInfo */
4711
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveOrUpdate; });
4712
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return sysMsgPage; });
4736
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return saveOrUpdate; });
4737
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return sysMsgPage; });
4713
4738
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return ignoreSysMsg; });
4714
4739
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return ignoreAllSysMsg; });
4715
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return searchType; });
4740
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return searchType; });
4716
4741
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getSysParam; });
4717
4742
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getAdjunctProperties; });
4718
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploads; });
4719
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadOnlyOne; });
4743
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return uploads; });
4744
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return uploadOnlyOne; });
4720
4745
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getAdjunctFileInfos; });
4721
4746
  /* unused harmony export uploadSort */
4722
4747
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return downloadByAdjunctId; });
4723
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return uploadDownloads; });
4724
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return previewAdjunct; });
4725
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct2; });
4726
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunctOffice; });
4748
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return uploadDownloads; });
4749
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return previewAdjunct; });
4750
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return previewAdjunct2; });
4751
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return previewAdjunctOffice; });
4727
4752
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return delAdjunct; });
4728
4753
  /* unused harmony export upload_updateClassify */
4729
4754
  /* unused harmony export getDeleteAdjunctFileInfos */
@@ -4738,13 +4763,13 @@ function isDefined(val) {
4738
4763
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return gethelpdoc; });
4739
4764
  /* unused harmony export getCurrentuser */
4740
4765
  /* unused harmony export mainDetail */
4741
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toStartFlow; });
4742
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return tempSave; });
4766
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartFlow; });
4767
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tempSave; });
4743
4768
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return commonOpion; });
4744
4769
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
4745
4770
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return editCommonOpion; });
4746
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return saveCommonOpinion; });
4747
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return updateCommonOpinion; });
4771
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return saveCommonOpinion; });
4772
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateCommonOpinion; });
4748
4773
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return deleteCommonOpion; });
4749
4774
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getProcessDefList; });
4750
4775
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getNodeInfo; });
@@ -4753,27 +4778,27 @@ function isDefined(val) {
4753
4778
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findSysCodes; });
4754
4779
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getNotificationMsg; });
4755
4780
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getHandleInfoHtml; });
4756
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskHandleHtml; });
4781
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskHandleHtml; });
4757
4782
  /* unused harmony export getView */
4758
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return register; });
4759
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pendedhistoryList; });
4760
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskRejectHtml; });
4761
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskRejectHtml; });
4762
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return toStartTaskRead; });
4763
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskReadIndex; });
4764
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return taskReadHtml; });
4765
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return rejectAndEnd; });
4766
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toSendMsg; });
4767
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return sendMsg; });
4783
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return register; });
4784
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pendedhistoryList; });
4785
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskRejectHtml; });
4786
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskRejectHtml; });
4787
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return toStartTaskRead; });
4788
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toStartTaskReadIndex; });
4789
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return taskReadHtml; });
4790
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return rejectAndEnd; });
4791
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return toSendMsg; });
4792
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return sendMsg; });
4768
4793
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return endFlowHtml; });
4769
4794
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return handleInfo; });
4770
4795
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return loginUserInfo; });
4771
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return wss; });
4772
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return topic; });
4796
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return wss; });
4797
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return topic; });
4773
4798
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getPresetCustomInfo; });
4774
4799
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getPresetNodeInfo; });
4775
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTransferIndex; });
4776
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTransfer; });
4800
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskTransferIndex; });
4801
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskTransfer; });
4777
4802
  /* unused harmony export toPresetInfoListIndex */
4778
4803
  /* unused harmony export deletePresetInfo */
4779
4804
  /* unused harmony export historyListJson */
@@ -4781,24 +4806,24 @@ function isDefined(val) {
4781
4806
  /* unused harmony export pressListJson */
4782
4807
  /* unused harmony export deleteFlow */
4783
4808
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return isCanStartSubFlow; });
4784
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskUnionExamine; });
4785
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskUnionExamine; });
4786
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskTakeAdvice; });
4787
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskTakeAdvice; });
4788
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskStartDraft; });
4789
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskSupervise; });
4790
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSuperviseSub; });
4791
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskStartDraft; });
4792
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toTaskReview; });
4793
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return taskReview; });
4794
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionSeal; });
4795
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionSeal; });
4796
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTwoOfficesDispatch; });
4797
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return twoOfficesDispatch; });
4798
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toResetProcessIndex; });
4799
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return resetProcess; });
4800
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toTaskContinuationIndex; });
4801
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return taskContinuation; });
4809
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskUnionExamine; });
4810
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskUnionExamine; });
4811
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskTakeAdvice; });
4812
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskTakeAdvice; });
4813
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toTaskStartDraft; });
4814
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toTaskSupervise; });
4815
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskSuperviseSub; });
4816
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskStartDraft; });
4817
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toTaskReview; });
4818
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return taskReview; });
4819
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskUnionSeal; });
4820
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskUnionSeal; });
4821
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTwoOfficesDispatch; });
4822
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return twoOfficesDispatch; });
4823
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return toResetProcessIndex; });
4824
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return resetProcess; });
4825
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toTaskContinuationIndex; });
4826
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return taskContinuation; });
4802
4827
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getFreeStartFlowParams; });
4803
4828
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return freeStartFlowWithSubmitTask; });
4804
4829
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkForeignOrgStartedCircularRead; });
@@ -4806,7 +4831,7 @@ function isDefined(val) {
4806
4831
  /* unused harmony export fyListJson */
4807
4832
  /* unused harmony export circularReadWithdraw */
4808
4833
  /* unused harmony export taskReadWithDraw */
4809
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
4834
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
4810
4835
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return checkBusinessIdStartedReadTransferHandle; });
4811
4836
  /* unused harmony export sendList */
4812
4837
  /* unused harmony export sendInfo */
@@ -4820,23 +4845,24 @@ function isDefined(val) {
4820
4845
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getNodeInfoForStart; });
4821
4846
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return freeStartFlow; });
4822
4847
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getUrgencyLevelChangedNotificationType; });
4823
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return toFreeTaskCircularRead; });
4848
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return toFreeTaskCircularRead; });
4824
4849
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeTaskCircularRead; });
4825
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageLists; });
4850
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageLists; });
4826
4851
  /* unused harmony export publishedLists */
4827
4852
  /* unused harmony export pageInfo */
4828
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return pageSave; });
4829
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageUpdate; });
4853
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return pageGroup; });
4854
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return pageSave; });
4855
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return pageUpdate; });
4830
4856
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return pageDelete; });
4831
4857
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchSave; });
4832
4858
  /* unused harmony export batchUpdate */
4833
4859
  /* unused harmony export batchDelete */
4834
4860
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchList; });
4835
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processListJson; });
4836
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processInfo; });
4837
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return processDeleteJson; });
4838
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processSave; });
4839
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processUpdate; });
4861
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return processListJson; });
4862
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return processInfo; });
4863
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return processDeleteJson; });
4864
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return processSave; });
4865
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return processUpdate; });
4840
4866
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return nodeListJson; });
4841
4867
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return nodeDeleteJson; });
4842
4868
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return nodeSave; });
@@ -4847,22 +4873,22 @@ function isDefined(val) {
4847
4873
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return moduleDelete; });
4848
4874
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return moduleSave; });
4849
4875
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return moduleUpdate; });
4850
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleListJson; });
4851
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleEdit; });
4852
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleRead; });
4853
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleSave; });
4876
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return ruleListJson; });
4877
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return ruleEdit; });
4878
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return ruleRead; });
4879
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleSave; });
4854
4880
  /* unused harmony export ruleSupplement */
4855
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return ruleUndore; });
4856
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return ruleAdd; });
4881
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleUndore; });
4882
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return ruleAdd; });
4857
4883
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return companyDetail; });
4858
4884
  /* unused harmony export issueDetailList */
4859
4885
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return deleteRule; });
4860
4886
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSysParamV1; });
4861
4887
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return companyList; });
4862
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return supplement; });
4888
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return supplement; });
4863
4889
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return isAddSource; });
4864
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return tiggerInTime; });
4865
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return updateHistory; });
4890
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return tiggerInTime; });
4891
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return updateHistory; });
4866
4892
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
4867
4893
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeInTime; });
4868
4894
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
@@ -5144,6 +5170,9 @@ var pageLists = '/main2/pageComponentConfig/listJson';
5144
5170
  var publishedLists = '/main2/pageComponentConfig/listPublished';
5145
5171
  // 获取自定义配置详情
5146
5172
  var pageInfo = '/main2/pageComponentConfig/info';
5173
+ // 获取自定义配置授权列表
5174
+ var pageGroup = 'main2/pageComponentTarget/listByConfigIdAndTypeGroup';
5175
+
5147
5176
  // 保存自定义配置,发布也调这个接口但要加上字段status=1
5148
5177
  var pageSave = '/main2/pageComponentConfig/save';
5149
5178
  // 更新自定义配置
@@ -5320,7 +5349,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5320
5349
  */
5321
5350
  preview: {
5322
5351
  type: String,
5323
- default: api["Eb" /* previewAdjunct */] + '?adjunctId='
5352
+ default: api["Fb" /* previewAdjunct */] + '?adjunctId='
5324
5353
  },
5325
5354
  /**
5326
5355
  * 图标内容
@@ -5454,7 +5483,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5454
5483
  var base64Prefixes = ['data:image/jpg;base64', 'data:image/jpeg;base64', 'data:image/png;base64', 'data:image/gif;base64'];
5455
5484
 
5456
5485
  // 检查是否以http、https或/开头
5457
- if (Object(util["S" /* startWith */])(value, ['http', 'https', '/'])) {
5486
+ if (Object(util["R" /* startWith */])(value, ['http', 'https', '/'])) {
5458
5487
  return true;
5459
5488
  }
5460
5489
 
@@ -5485,7 +5514,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5485
5514
  if (!value) return false;
5486
5515
 
5487
5516
  // 检查是否以<svg标签开头
5488
- if (Object(util["S" /* startWith */])(value, '<svg')) {
5517
+ if (Object(util["R" /* startWith */])(value, '<svg')) {
5489
5518
  return true;
5490
5519
  }
5491
5520
 
@@ -5500,7 +5529,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5500
5529
  }
5501
5530
 
5502
5531
  // 检查是否是SVG路径内容(以d=开头)
5503
- if (Object(util["S" /* startWith */])(value, 'd=')) {
5532
+ if (Object(util["R" /* startWith */])(value, 'd=')) {
5504
5533
  return true;
5505
5534
  }
5506
5535
 
@@ -5522,7 +5551,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
5522
5551
  this.tag = 'img';
5523
5552
  this.url = contents;
5524
5553
  this.code = '';
5525
- } else if (Object(util["S" /* startWith */])(contents, 'd=')) {
5554
+ } else if (Object(util["R" /* startWith */])(contents, 'd=')) {
5526
5555
  // 渲染SVG路径内容
5527
5556
  this.tag = 'i';
5528
5557
  this.baseClass = '';