@yelon/util 13.0.0 → 13.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (273) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +1 -1
  3. package/array/array-type.service.d.ts +0 -0
  4. package/array/array.d.ts +0 -0
  5. package/array/array.service.d.ts +0 -0
  6. package/array/index.d.ts +0 -0
  7. package/array/package.json +0 -0
  8. package/browser/browser.d.ts +0 -0
  9. package/browser/cookie.service.d.ts +0 -0
  10. package/browser/copy.d.ts +0 -0
  11. package/browser/index.d.ts +0 -0
  12. package/browser/is-empty.d.ts +0 -0
  13. package/browser/package.json +0 -0
  14. package/browser/scroll.service.d.ts +0 -0
  15. package/browser/style.d.ts +0 -0
  16. package/config/abc/date-picker.type.d.ts +0 -0
  17. package/config/abc/error-collect.type.d.ts +0 -0
  18. package/config/abc/image.type.d.ts +0 -0
  19. package/config/abc/index.d.ts +0 -0
  20. package/config/abc/loading.type.d.ts +0 -0
  21. package/config/abc/lodop.type.d.ts +0 -0
  22. package/config/abc/media.type.d.ts +0 -0
  23. package/config/abc/onboarding.type.d.ts +0 -0
  24. package/config/abc/page-header.type.d.ts +0 -0
  25. package/config/abc/pdf.type.d.ts +0 -0
  26. package/config/abc/qr.type.d.ts +0 -0
  27. package/config/abc/se.type.d.ts +0 -0
  28. package/config/abc/sg.type.d.ts +0 -0
  29. package/config/abc/st.type.d.ts +0 -0
  30. package/config/abc/sv.type.d.ts +0 -0
  31. package/config/abc/xlsx.type.d.ts +0 -0
  32. package/config/abc/zip.type.d.ts +0 -0
  33. package/config/acl/acl.type.d.ts +0 -0
  34. package/config/auth/auth.type.d.ts +0 -0
  35. package/config/bis/bis.type.d.ts +0 -0
  36. package/config/cache/cache.type.d.ts +0 -0
  37. package/config/chart/chart.type.d.ts +0 -0
  38. package/config/config.d.ts +0 -0
  39. package/config/config.service.d.ts +0 -0
  40. package/config/config.types.d.ts +0 -0
  41. package/config/index.d.ts +0 -0
  42. package/config/mock/mock.type.d.ts +0 -0
  43. package/config/package.json +0 -0
  44. package/config/sf/sf.type.d.ts +0 -0
  45. package/config/stomp/stomp.type.d.ts +0 -0
  46. package/config/theme/http.type.d.ts +0 -0
  47. package/config/theme/i18n.type.d.ts +0 -0
  48. package/config/theme/index.d.ts +0 -0
  49. package/config/theme/responsive.type.d.ts +0 -0
  50. package/config/util/array.type.d.ts +0 -0
  51. package/config/util/currency.type.d.ts +0 -0
  52. package/date-time/date-time.d.ts +0 -0
  53. package/date-time/index.d.ts +0 -0
  54. package/date-time/package.json +0 -0
  55. package/date-time/picker.d.ts +0 -0
  56. package/date-time/time.d.ts +5 -2
  57. package/decorator/convert.d.ts +0 -0
  58. package/decorator/decorator.d.ts +0 -0
  59. package/decorator/index.d.ts +0 -0
  60. package/decorator/package.json +0 -0
  61. package/decorator/zone-outside.d.ts +0 -0
  62. package/esm2020/array/array-type.service.mjs +0 -0
  63. package/esm2020/array/array.mjs +0 -0
  64. package/esm2020/array/array.service.mjs +3 -3
  65. package/esm2020/array/index.mjs +0 -0
  66. package/esm2020/browser/browser.mjs +0 -0
  67. package/esm2020/browser/cookie.service.mjs +3 -3
  68. package/esm2020/browser/copy.mjs +0 -0
  69. package/esm2020/browser/index.mjs +0 -0
  70. package/esm2020/browser/is-empty.mjs +0 -0
  71. package/esm2020/browser/scroll.service.mjs +3 -3
  72. package/esm2020/browser/style.mjs +0 -0
  73. package/esm2020/config/abc/date-picker.type.mjs +0 -0
  74. package/esm2020/config/abc/error-collect.type.mjs +0 -0
  75. package/esm2020/config/abc/image.type.mjs +0 -0
  76. package/esm2020/config/abc/index.mjs +0 -0
  77. package/esm2020/config/abc/loading.type.mjs +0 -0
  78. package/esm2020/config/abc/lodop.type.mjs +0 -0
  79. package/esm2020/config/abc/media.type.mjs +0 -0
  80. package/esm2020/config/abc/onboarding.type.mjs +0 -0
  81. package/esm2020/config/abc/page-header.type.mjs +0 -0
  82. package/esm2020/config/abc/pdf.type.mjs +0 -0
  83. package/esm2020/config/abc/qr.type.mjs +0 -0
  84. package/esm2020/config/abc/se.type.mjs +0 -0
  85. package/esm2020/config/abc/sg.type.mjs +0 -0
  86. package/esm2020/config/abc/st.type.mjs +0 -0
  87. package/esm2020/config/abc/sv.type.mjs +0 -0
  88. package/esm2020/config/abc/xlsx.type.mjs +0 -0
  89. package/esm2020/config/abc/zip.type.mjs +0 -0
  90. package/esm2020/config/acl/acl.type.mjs +0 -0
  91. package/esm2020/config/auth/auth.type.mjs +0 -0
  92. package/esm2020/config/bis/bis.type.mjs +0 -0
  93. package/esm2020/config/cache/cache.type.mjs +0 -0
  94. package/esm2020/config/chart/chart.type.mjs +0 -0
  95. package/esm2020/config/config.mjs +0 -0
  96. package/esm2020/config/config.service.mjs +3 -3
  97. package/esm2020/config/config.types.mjs +0 -0
  98. package/esm2020/config/index.mjs +0 -0
  99. package/esm2020/config/mock/mock.type.mjs +0 -0
  100. package/esm2020/config/sf/sf.type.mjs +0 -0
  101. package/esm2020/config/stomp/stomp.type.mjs +0 -0
  102. package/esm2020/config/theme/http.type.mjs +0 -0
  103. package/esm2020/config/theme/i18n.type.mjs +0 -0
  104. package/esm2020/config/theme/index.mjs +0 -0
  105. package/esm2020/config/theme/responsive.type.mjs +0 -0
  106. package/esm2020/config/util/array.type.mjs +0 -0
  107. package/esm2020/config/util/currency.type.mjs +0 -0
  108. package/esm2020/date-time/date-time.mjs +0 -0
  109. package/esm2020/date-time/index.mjs +0 -0
  110. package/esm2020/date-time/picker.mjs +0 -0
  111. package/esm2020/date-time/time.mjs +7 -6
  112. package/esm2020/decorator/convert.mjs +0 -0
  113. package/esm2020/decorator/decorator.mjs +0 -0
  114. package/esm2020/decorator/index.mjs +0 -0
  115. package/esm2020/decorator/zone-outside.mjs +0 -0
  116. package/esm2020/form/form.mjs +0 -0
  117. package/esm2020/form/index.mjs +0 -0
  118. package/esm2020/form/match-control.mjs +0 -0
  119. package/esm2020/form/validators.mjs +0 -0
  120. package/esm2020/format/currency.service.mjs +3 -3
  121. package/esm2020/format/currency.types.mjs +0 -0
  122. package/esm2020/format/format.mjs +0 -0
  123. package/esm2020/format/index.mjs +0 -0
  124. package/esm2020/format/string.mjs +0 -0
  125. package/esm2020/format/validate.mjs +0 -0
  126. package/esm2020/index.mjs +0 -0
  127. package/esm2020/math/in-range.mjs +0 -0
  128. package/esm2020/math/index.mjs +0 -0
  129. package/esm2020/math/math.mjs +0 -0
  130. package/esm2020/math/round.mjs +0 -0
  131. package/esm2020/other/assert.mjs +0 -0
  132. package/esm2020/other/deep.mjs +0 -0
  133. package/esm2020/other/index.mjs +0 -0
  134. package/esm2020/other/lazy.service.mjs +9 -24
  135. package/esm2020/other/logger.mjs +0 -0
  136. package/esm2020/other/other.mjs +0 -0
  137. package/esm2020/other/resize.mjs +0 -0
  138. package/esm2020/other/url.mjs +0 -0
  139. package/esm2020/pipes/currency/cny.pipe.mjs +3 -3
  140. package/esm2020/pipes/currency/index.mjs +0 -0
  141. package/esm2020/pipes/currency/mega.pipe.mjs +3 -3
  142. package/esm2020/pipes/currency/module.mjs +4 -4
  143. package/esm2020/pipes/currency/pipe-currency.mjs +0 -0
  144. package/esm2020/pipes/currency/price.pipe.mjs +3 -3
  145. package/esm2020/pipes/filter/filter.pipe.mjs +3 -3
  146. package/esm2020/pipes/filter/index.mjs +0 -0
  147. package/esm2020/pipes/filter/module.mjs +4 -4
  148. package/esm2020/pipes/filter/pipe-filter.mjs +0 -0
  149. package/esm2020/pipes/format/index.mjs +0 -0
  150. package/esm2020/pipes/format/mask.pipe.mjs +3 -3
  151. package/esm2020/pipes/format/module.mjs +4 -4
  152. package/esm2020/pipes/format/pipe-format.mjs +0 -0
  153. package/esm2020/pipes/index.mjs +0 -0
  154. package/esm2020/pipes/pipes.mjs +0 -0
  155. package/esm2020/token/index.mjs +0 -0
  156. package/esm2020/token/page-visibility.mjs +0 -0
  157. package/esm2020/token/token.mjs +0 -0
  158. package/esm2020/token/window.mjs +0 -0
  159. package/esm2020/yelon-util.mjs +0 -0
  160. package/fesm2015/array.mjs +3 -3
  161. package/fesm2015/array.mjs.map +0 -0
  162. package/fesm2015/browser.mjs +6 -6
  163. package/fesm2015/browser.mjs.map +0 -0
  164. package/fesm2015/config.mjs +3 -3
  165. package/fesm2015/config.mjs.map +0 -0
  166. package/fesm2015/date-time.mjs +6 -5
  167. package/fesm2015/date-time.mjs.map +1 -1
  168. package/fesm2015/decorator.mjs +0 -0
  169. package/fesm2015/decorator.mjs.map +0 -0
  170. package/fesm2015/form.mjs +0 -0
  171. package/fesm2015/form.mjs.map +0 -0
  172. package/fesm2015/format.mjs +3 -3
  173. package/fesm2015/format.mjs.map +0 -0
  174. package/fesm2015/math.mjs +0 -0
  175. package/fesm2015/math.mjs.map +0 -0
  176. package/fesm2015/other.mjs +8 -23
  177. package/fesm2015/other.mjs.map +1 -1
  178. package/fesm2015/pipe-currency.mjs +13 -13
  179. package/fesm2015/pipe-currency.mjs.map +0 -0
  180. package/fesm2015/pipe-filter.mjs +7 -7
  181. package/fesm2015/pipe-filter.mjs.map +0 -0
  182. package/fesm2015/pipe-format.mjs +7 -7
  183. package/fesm2015/pipe-format.mjs.map +0 -0
  184. package/fesm2015/pipes.mjs +0 -0
  185. package/fesm2015/pipes.mjs.map +0 -0
  186. package/fesm2015/token.mjs +0 -0
  187. package/fesm2015/token.mjs.map +0 -0
  188. package/fesm2015/yelon-util.mjs +0 -0
  189. package/fesm2015/yelon-util.mjs.map +0 -0
  190. package/fesm2020/array.mjs +3 -3
  191. package/fesm2020/array.mjs.map +0 -0
  192. package/fesm2020/browser.mjs +6 -6
  193. package/fesm2020/browser.mjs.map +0 -0
  194. package/fesm2020/config.mjs +3 -3
  195. package/fesm2020/config.mjs.map +0 -0
  196. package/fesm2020/date-time.mjs +6 -5
  197. package/fesm2020/date-time.mjs.map +1 -1
  198. package/fesm2020/decorator.mjs +0 -0
  199. package/fesm2020/decorator.mjs.map +0 -0
  200. package/fesm2020/form.mjs +0 -0
  201. package/fesm2020/form.mjs.map +0 -0
  202. package/fesm2020/format.mjs +3 -3
  203. package/fesm2020/format.mjs.map +0 -0
  204. package/fesm2020/math.mjs +0 -0
  205. package/fesm2020/math.mjs.map +0 -0
  206. package/fesm2020/other.mjs +8 -23
  207. package/fesm2020/other.mjs.map +1 -1
  208. package/fesm2020/pipe-currency.mjs +13 -13
  209. package/fesm2020/pipe-currency.mjs.map +0 -0
  210. package/fesm2020/pipe-filter.mjs +7 -7
  211. package/fesm2020/pipe-filter.mjs.map +0 -0
  212. package/fesm2020/pipe-format.mjs +7 -7
  213. package/fesm2020/pipe-format.mjs.map +0 -0
  214. package/fesm2020/pipes.mjs +0 -0
  215. package/fesm2020/pipes.mjs.map +0 -0
  216. package/fesm2020/token.mjs +0 -0
  217. package/fesm2020/token.mjs.map +0 -0
  218. package/fesm2020/yelon-util.mjs +0 -0
  219. package/fesm2020/yelon-util.mjs.map +0 -0
  220. package/form/form.d.ts +0 -0
  221. package/form/index.d.ts +0 -0
  222. package/form/match-control.d.ts +0 -0
  223. package/form/package.json +0 -0
  224. package/form/validators.d.ts +0 -0
  225. package/format/currency.service.d.ts +0 -0
  226. package/format/currency.types.d.ts +0 -0
  227. package/format/format.d.ts +0 -0
  228. package/format/index.d.ts +0 -0
  229. package/format/package.json +0 -0
  230. package/format/string.d.ts +0 -0
  231. package/format/validate.d.ts +0 -0
  232. package/index.d.ts +0 -0
  233. package/math/in-range.d.ts +0 -0
  234. package/math/index.d.ts +0 -0
  235. package/math/math.d.ts +0 -0
  236. package/math/package.json +0 -0
  237. package/math/round.d.ts +0 -0
  238. package/other/assert.d.ts +0 -0
  239. package/other/deep.d.ts +0 -0
  240. package/other/index.d.ts +0 -0
  241. package/other/lazy.service.d.ts +0 -0
  242. package/other/logger.d.ts +0 -0
  243. package/other/other.d.ts +0 -0
  244. package/other/package.json +0 -0
  245. package/other/resize.d.ts +0 -0
  246. package/other/url.d.ts +0 -0
  247. package/package.json +1 -1
  248. package/pipes/currency/cny.pipe.d.ts +0 -0
  249. package/pipes/currency/index.d.ts +0 -0
  250. package/pipes/currency/mega.pipe.d.ts +0 -0
  251. package/pipes/currency/module.d.ts +0 -0
  252. package/pipes/currency/package.json +0 -0
  253. package/pipes/currency/pipe-currency.d.ts +0 -0
  254. package/pipes/currency/price.pipe.d.ts +0 -0
  255. package/pipes/filter/filter.pipe.d.ts +0 -0
  256. package/pipes/filter/index.d.ts +0 -0
  257. package/pipes/filter/module.d.ts +0 -0
  258. package/pipes/filter/package.json +0 -0
  259. package/pipes/filter/pipe-filter.d.ts +0 -0
  260. package/pipes/format/index.d.ts +0 -0
  261. package/pipes/format/mask.pipe.d.ts +0 -0
  262. package/pipes/format/module.d.ts +0 -0
  263. package/pipes/format/package.json +0 -0
  264. package/pipes/format/pipe-format.d.ts +0 -0
  265. package/pipes/index.d.ts +0 -0
  266. package/pipes/package.json +0 -0
  267. package/pipes/pipes.d.ts +0 -0
  268. package/token/index.d.ts +0 -0
  269. package/token/package.json +0 -0
  270. package/token/page-visibility.d.ts +0 -0
  271. package/token/token.d.ts +0 -0
  272. package/token/window.d.ts +0 -0
  273. package/yelon-util.d.ts +0 -0
@@ -53,29 +53,14 @@ export class LazyService {
53
53
  const node = this.doc.createElement('script');
54
54
  node.type = 'text/javascript';
55
55
  node.src = path;
56
- node.charset = 'utf-8';
57
56
  if (innerContent) {
58
57
  node.innerHTML = innerContent;
59
58
  }
60
- if (node.readyState) {
61
- // IE
62
- node.onreadystatechange = () => {
63
- if (node.readyState === 'loaded' || node.readyState === 'complete') {
64
- node.onreadystatechange = null;
65
- onSuccess({
66
- path,
67
- status: 'ok'
68
- });
69
- }
70
- };
71
- }
72
- else {
73
- node.onload = () => onSuccess({
74
- path,
75
- status: 'ok'
76
- });
77
- }
78
- node.onerror = (error) => onSuccess({
59
+ node.onload = () => onSuccess({
60
+ path,
61
+ status: 'ok'
62
+ });
63
+ node.onerror = error => onSuccess({
79
64
  path,
80
65
  status: 'error',
81
66
  error
@@ -107,13 +92,13 @@ export class LazyService {
107
92
  });
108
93
  }
109
94
  }
110
- LazyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LazyService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
111
- LazyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LazyService, providedIn: 'root' });
112
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LazyService, decorators: [{
95
+ LazyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LazyService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
96
+ LazyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LazyService, providedIn: 'root' });
97
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LazyService, decorators: [{
113
98
  type: Injectable,
114
99
  args: [{ providedIn: 'root' }]
115
100
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
116
101
  type: Inject,
117
102
  args: [DOCUMENT]
118
103
  }] }]; } });
119
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9vdGhlci9sYXp5LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzNDLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxlQUFlLEVBQWMsTUFBTSxNQUFNLENBQUM7QUFDbkQsT0FBTyxFQUFFLE1BQU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HtcbiAgICAgICAgICBpZiAobm9kZS5yZWFkeVN0YXRlID09PSAnbG9hZGVkJyB8fCBub2RlLnJlYWR5U3RhdGUgPT09ICdjb21wbGV0ZScpIHtcbiAgICAgICAgICAgIG5vZGUub25yZWFkeXN0YXRlY2hhbmdlID0gbnVsbDtcbiAgICAgICAgICAgIG9uU3VjY2Vzcyh7XG4gICAgICAgICAgICAgIHBhdGgsXG4gICAgICAgICAgICAgIHN0YXR1czogJ29rJ1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgbm9kZS5vbmxvYWQgPSAoKSA9PlxuICAgICAgICAgIG9uU3VjY2Vzcyh7XG4gICAgICAgICAgICBwYXRoLFxuICAgICAgICAgICAgc3RhdHVzOiAnb2snXG4gICAgICAgICAgfSk7XG4gICAgICB9XG4gICAgICBub2RlLm9uZXJyb3IgPSAoZXJyb3I6IE56U2FmZUFueSkgPT5cbiAgICAgICAgb25TdWNjZXNzKHtcbiAgICAgICAgICBwYXRoLFxuICAgICAgICAgIHN0YXR1czogJ2Vycm9yJyxcbiAgICAgICAgICBlcnJvclxuICAgICAgICB9KTtcbiAgICAgIHRoaXMuZG9jLmdldEVsZW1lbnRzQnlUYWdOYW1lKCdoZWFkJylbMF0uYXBwZW5kQ2hpbGQobm9kZSk7XG4gICAgfSk7XG4gIH1cblxuICBsb2FkU3R5bGUocGF0aDogc3RyaW5nLCByZWw6IHN0cmluZyA9ICdzdHlsZXNoZWV0JywgaW5uZXJDb250ZW50Pzogc3RyaW5nKTogUHJvbWlzZTxMYXp5UmVzdWx0PiB7XG4gICAgcmV0dXJuIG5ldyBQcm9taXNlKHJlc29sdmUgPT4ge1xuICAgICAgaWYgKHRoaXMubGlzdFtwYXRoXSA9PT0gdHJ1ZSkge1xuICAgICAgICByZXNvbHZlKHRoaXMuY2FjaGVkW3BhdGhdKTtcbiAgICAgICAgcmV0dXJuO1xuICAgICAgfVxuXG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3BhdGhdKTtcbiAgICAgICAgcmV0dXJuO1xuICAgICAgfVxuXG4gICAgICB0aGlzLmxpc3RbcGF0aF0gPSB0cnVlO1xuXG4gICAgICBjb25zdCBub2RlID0gdGhpcy5kb2MuY3JlYXRlRWxlbWVudCgnbGluaycpIGFzIEhUTUxMaW5rRWxlbWVudDtcbiAgICAgIG5vZGUucmVsID0gcmVsO1xuICAgICAgbm9kZS50eXBlID0gJ3RleHQvY3NzJztcbiAgICAgIG5vZGUuaHJlZiA9IHBhdGg7XG4gICAgICBpZiAoaW5uZXJDb250ZW50KSB7XG4gICAgICAgIG5vZGUuaW5uZXJIVE1MID0gaW5uZXJDb250ZW50O1xuICAgICAgfVxuICAgICAgdGhpcy5kb2MuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2hlYWQnKVswXS5hcHBlbmRDaGlsZChub2RlKTtcbiAgICAgIGNvbnN0IGl0ZW06IExhenlSZXN1bHQgPSB7XG4gICAgICAgIHBhdGgsXG4gICAgICAgIHN0YXR1czogJ29rJ1xuICAgICAgfTtcbiAgICAgIHRoaXMuY2FjaGVkW3BhdGhdID0gaXRlbTtcbiAgICAgIHJlc29sdmUoaXRlbSk7XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
File without changes
File without changes
File without changes
File without changes
@@ -14,9 +14,9 @@ export class CurrencyCNYPipe {
14
14
  return this.srv.cny(value, options);
15
15
  }
16
16
  }
17
- CurrencyCNYPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyCNYPipe, deps: [{ token: i1.CurrencyService }], target: i0.ɵɵFactoryTarget.Pipe });
18
- CurrencyCNYPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyCNYPipe, name: "cny" });
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyCNYPipe, decorators: [{
17
+ CurrencyCNYPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyCNYPipe, deps: [{ token: i1.CurrencyService }], target: i0.ɵɵFactoryTarget.Pipe });
18
+ CurrencyCNYPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyCNYPipe, name: "cny" });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyCNYPipe, decorators: [{
20
20
  type: Pipe,
21
21
  args: [{ name: 'cny' }]
22
22
  }], ctorParameters: function () { return [{ type: i1.CurrencyService }]; } });
File without changes
@@ -17,9 +17,9 @@ export class CurrencyMegaPipe {
17
17
  return res.value + (this.isCN ? res.unitI18n : res.unit);
18
18
  }
19
19
  }
20
- CurrencyMegaPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyMegaPipe, deps: [{ token: i1.CurrencyService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
21
- CurrencyMegaPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyMegaPipe, name: "mega" });
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyMegaPipe, decorators: [{
20
+ CurrencyMegaPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyMegaPipe, deps: [{ token: i1.CurrencyService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
21
+ CurrencyMegaPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyMegaPipe, name: "mega" });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyMegaPipe, decorators: [{
23
23
  type: Pipe,
24
24
  args: [{ name: 'mega' }]
25
25
  }], ctorParameters: function () { return [{ type: i1.CurrencyService }, { type: undefined, decorators: [{
@@ -6,10 +6,10 @@ import * as i0 from "@angular/core";
6
6
  const PIPES = [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe];
7
7
  export class CurrencyPipeModule {
8
8
  }
9
- CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
- CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyPipeModule, declarations: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe], exports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe] });
11
- CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyPipeModule });
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyPipeModule, decorators: [{
9
+ CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
+ CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPipeModule, declarations: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe], exports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe] });
11
+ CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPipeModule });
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPipeModule, decorators: [{
13
13
  type: NgModule,
14
14
  args: [{
15
15
  declarations: PIPES,
File without changes
@@ -18,9 +18,9 @@ export class CurrencyPricePipe {
18
18
  return this.srv.format(value, options);
19
19
  }
20
20
  }
21
- CurrencyPricePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyPricePipe, deps: [{ token: i1.CurrencyService }], target: i0.ɵɵFactoryTarget.Pipe });
22
- CurrencyPricePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyPricePipe, name: "price" });
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyPricePipe, decorators: [{
21
+ CurrencyPricePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPricePipe, deps: [{ token: i1.CurrencyService }], target: i0.ɵɵFactoryTarget.Pipe });
22
+ CurrencyPricePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPricePipe, name: "price" });
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPricePipe, decorators: [{
24
24
  type: Pipe,
25
25
  args: [{ name: 'price' }]
26
26
  }], ctorParameters: function () { return [{ type: i1.CurrencyService }]; } });
@@ -10,9 +10,9 @@ export class FilterPipe {
10
10
  return array.filter(i => matcher(i, ...args));
11
11
  }
12
12
  }
13
- FilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
14
- FilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FilterPipe, name: "filter" });
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FilterPipe, decorators: [{
13
+ FilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
14
+ FilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipe, name: "filter" });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipe, decorators: [{
16
16
  type: Pipe,
17
17
  args: [{ name: 'filter' }]
18
18
  }] });
File without changes
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  const PIPES = [FilterPipe];
5
5
  export class FilterPipeModule {
6
6
  }
7
- FilterPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FilterPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
- FilterPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FilterPipeModule, declarations: [FilterPipe], exports: [FilterPipe] });
9
- FilterPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FilterPipeModule });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FilterPipeModule, decorators: [{
7
+ FilterPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ FilterPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipeModule, declarations: [FilterPipe], exports: [FilterPipe] });
9
+ FilterPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipeModule });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipeModule, decorators: [{
11
11
  type: NgModule,
12
12
  args: [{
13
13
  declarations: PIPES,
File without changes
File without changes
@@ -25,9 +25,9 @@ export class FormatMaskPipe {
25
25
  return formatMask(value, mask);
26
26
  }
27
27
  }
28
- FormatMaskPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FormatMaskPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
29
- FormatMaskPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FormatMaskPipe, name: "mask" });
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FormatMaskPipe, decorators: [{
28
+ FormatMaskPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatMaskPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
29
+ FormatMaskPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatMaskPipe, name: "mask" });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatMaskPipe, decorators: [{
31
31
  type: Pipe,
32
32
  args: [{ name: 'mask' }]
33
33
  }] });
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  const PIPES = [FormatMaskPipe];
5
5
  export class FormatPipeModule {
6
6
  }
7
- FormatPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FormatPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
- FormatPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FormatPipeModule, declarations: [FormatMaskPipe], exports: [FormatMaskPipe] });
9
- FormatPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FormatPipeModule });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: FormatPipeModule, decorators: [{
7
+ FormatPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ FormatPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatPipeModule, declarations: [FormatMaskPipe], exports: [FormatMaskPipe] });
9
+ FormatPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatPipeModule });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatPipeModule, decorators: [{
11
11
  type: NgModule,
12
12
  args: [{
13
13
  declarations: PIPES,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -240,9 +240,9 @@ class ArrayService {
240
240
  .values());
241
241
  }
242
242
  }
243
- ArrayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ArrayService, deps: [{ token: i1.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
244
- ArrayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ArrayService, providedIn: 'root' });
245
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ArrayService, decorators: [{
243
+ ArrayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ArrayService, deps: [{ token: i1.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
244
+ ArrayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ArrayService, providedIn: 'root' });
245
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ArrayService, decorators: [{
246
246
  type: Injectable,
247
247
  args: [{ providedIn: 'root' }]
248
248
  }], ctorParameters: function () { return [{ type: i1.YunzaiConfigService }]; } });
File without changes
@@ -92,9 +92,9 @@ class CookieService {
92
92
  this.doc.cookie = '';
93
93
  }
94
94
  }
95
- CookieService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CookieService, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
96
- CookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CookieService, providedIn: 'root' });
97
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CookieService, decorators: [{
95
+ CookieService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CookieService, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
96
+ CookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CookieService, providedIn: 'root' });
97
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CookieService, decorators: [{
98
98
  type: Injectable,
99
99
  args: [{ providedIn: 'root' }]
100
100
  }], ctorParameters: function () {
@@ -206,9 +206,9 @@ class ScrollService {
206
206
  this.scrollToElement(this._getDoc().body, topOffset);
207
207
  }
208
208
  }
209
- ScrollService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ScrollService, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
210
- ScrollService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ScrollService, providedIn: 'root' });
211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ScrollService, decorators: [{
209
+ ScrollService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ScrollService, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
210
+ ScrollService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ScrollService, providedIn: 'root' });
211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ScrollService, decorators: [{
212
212
  type: Injectable,
213
213
  args: [{ providedIn: 'root' }]
214
214
  }], ctorParameters: function () {
File without changes
@@ -34,9 +34,9 @@ class YunzaiConfigService {
34
34
  this.config[componentName] = Object.assign(Object.assign({}, this.config[componentName]), value);
35
35
  }
36
36
  }
37
- YunzaiConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: YunzaiConfigService, deps: [{ token: YUNZAI_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
38
- YunzaiConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: YunzaiConfigService, providedIn: 'root' });
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: YunzaiConfigService, decorators: [{
37
+ YunzaiConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: YunzaiConfigService, deps: [{ token: YUNZAI_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
38
+ YunzaiConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: YunzaiConfigService, providedIn: 'root' });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: YunzaiConfigService, decorators: [{
40
40
  type: Injectable,
41
41
  args: [{ providedIn: 'root' }]
42
42
  }], ctorParameters: function () {
File without changes
@@ -7,14 +7,15 @@ import { parse, addDays, startOfYear, subYears, endOfYear, startOfMonth, subMont
7
7
  *
8
8
  * @param type 类型,带 `-` 表示过去一个时间,若指定 `number` 表示天数
9
9
  * @param time 开始时间
10
+ * @param ignoreMaxTime 忽略追加结束日期的最大时间值
10
11
  */
11
- function getTimeDistance(type, time) {
12
+ function getTimeDistance(type, time, options) {
12
13
  time = time
13
14
  ? typeof time === 'string'
14
15
  ? parse(time, 'yyyy-MM-dd HH:mm:ss', new Date())
15
16
  : new Date(time)
16
17
  : new Date();
17
- const options = { weekStartsOn: 1 };
18
+ const opt = { weekStartsOn: 1 };
18
19
  let res;
19
20
  switch (type) {
20
21
  case 'today':
@@ -27,10 +28,10 @@ function getTimeDistance(type, time) {
27
28
  res = [addDays(time, -1), addDays(time, -1)];
28
29
  break;
29
30
  case 'week':
30
- res = [startOfWeek(time, options), endOfWeek(time, options)];
31
+ res = [startOfWeek(time, opt), endOfWeek(time, opt)];
31
32
  break;
32
33
  case '-week':
33
- res = [startOfWeek(subWeeks(time, 1), options), endOfWeek(subWeeks(time, 1), options)];
34
+ res = [startOfWeek(subWeeks(time, 1), opt), endOfWeek(subWeeks(time, 1), opt)];
34
35
  break;
35
36
  case 'month':
36
37
  res = [startOfMonth(time), endOfMonth(time)];
@@ -48,7 +49,7 @@ function getTimeDistance(type, time) {
48
49
  res = type > 0 ? [time, addDays(time, type)] : [addDays(time, type), time];
49
50
  break;
50
51
  }
51
- return fixEndTimeOfRange(res);
52
+ return (options === null || options === void 0 ? void 0 : options.ignoreMaxTime) ? res : fixEndTimeOfRange(res);
52
53
  }
53
54
  /**
54
55
  * fix time is the most, big value
@@ -1 +1 @@
1
- {"version":3,"file":"date-time.mjs","sources":["../../../../packages/util/date-time/time.ts","../../../../packages/util/date-time/picker.ts","../../../../packages/util/date-time/date-time.ts"],"sourcesContent":["import {\n addDays,\n endOfDay,\n endOfMonth,\n endOfWeek,\n endOfYear,\n parse,\n parseISO,\n startOfDay,\n startOfMonth,\n startOfWeek,\n startOfYear,\n subMonths,\n subWeeks,\n subYears\n} from 'date-fns';\n\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\n/**\n * Get the time range, return `[ Date, Date]` for the start and end dates\n *\n * 获取时间范围\n *\n * @param type 类型,带 `-` 表示过去一个时间,若指定 `number` 表示天数\n * @param time 开始时间\n */\nexport function getTimeDistance(\n type: 'today' | '-today' | 'yesterday' | 'week' | '-week' | 'month' | '-month' | 'year' | '-year' | number,\n time?: Date | string | number\n): [Date, Date] {\n time = time\n ? typeof time === 'string'\n ? parse(time, 'yyyy-MM-dd HH:mm:ss', new Date())\n : new Date(time)\n : new Date();\n const options: { weekStartsOn: 1 } = { weekStartsOn: 1 };\n\n let res: [Date, Date];\n switch (type) {\n case 'today':\n res = [time, time];\n break;\n case '-today':\n res = [addDays(time, -1), time];\n break;\n case 'yesterday':\n res = [addDays(time, -1), addDays(time, -1)];\n break;\n case 'week':\n res = [startOfWeek(time, options), endOfWeek(time, options)];\n break;\n case '-week':\n res = [startOfWeek(subWeeks(time, 1), options), endOfWeek(subWeeks(time, 1), options)];\n break;\n case 'month':\n res = [startOfMonth(time), endOfMonth(time)];\n break;\n case '-month':\n res = [startOfMonth(subMonths(time, 1)), endOfMonth(subMonths(time, 1))];\n break;\n case 'year':\n res = [startOfYear(time), endOfYear(time)];\n break;\n case '-year':\n res = [startOfYear(subYears(time, 1)), endOfYear(subYears(time, 1))];\n break;\n default:\n res = type > 0 ? [time, addDays(time, type)] : [addDays(time, type), time];\n break;\n }\n return fixEndTimeOfRange(res);\n}\n\n/**\n * fix time is the most, big value\n */\nexport function fixEndTimeOfRange(dates: [Date, Date]): [Date, Date] {\n return [startOfDay(dates[0]), endOfDay(dates[1])];\n}\n\nexport type ToDateOptions = string | { formatString?: string; defaultValue?: NzSafeAny };\n\n/**\n * Return the date parsed from string using the given format string\n * - If the argument is a number, it is treated as a timestamp.\n *\n * @param formatString If parsing fails try to parse the date by pressing `formatString`\n * @param defaultValue If parsing fails returned default value, default: `new Date(NaN)`\n */\nexport function toDate(value: Date | string | number, options?: ToDateOptions): Date {\n if (typeof options === 'string') options = { formatString: options };\n const { formatString, defaultValue } = {\n formatString: 'yyyy-MM-dd HH:mm:ss',\n defaultValue: new Date(NaN),\n ...options\n };\n if (value == null) {\n return defaultValue;\n }\n if (value instanceof Date) {\n return value;\n }\n if (typeof value === 'number' || (typeof value === 'string' && /[0-9]{10,13}/.test(value))) {\n return new Date(+value);\n }\n let tryDate = parseISO(value);\n if (isNaN(tryDate as NzSafeAny)) {\n tryDate = parse(value, formatString!, new Date());\n }\n\n return isNaN(tryDate as NzSafeAny) ? defaultValue : tryDate;\n}\n","import { addDays, addSeconds, differenceInCalendarDays, format } from 'date-fns';\n\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { DisabledDateFn, DisabledTimeConfig, DisabledTimeFn } from 'ng-zorro-antd/date-picker';\n\n// TODO: timezone process\nexport class DateTimePickerUtil {\n /**\n * Current local time\n *\n * 当前本地时间\n */\n get now(): Date {\n return new Date();\n }\n /**\n * Current local date (not including time part)\n *\n * 当前本地日期(不包含时间部分)\n */\n get date(): Date {\n return this.removeTime(this.now);\n }\n /**\n * Remove the time part of the date\n *\n * 移除日期的时间部分\n */\n removeTime(d: Date): Date {\n return new Date(d.toDateString());\n }\n /**\n * Format date-time\n *\n * 格式化日期\n */\n format(d: number | Date, formatString: string = 'yyyy-MM-dd HH:mm:ss'): string {\n return format(d, formatString);\n }\n private genTick(count: number): number[] {\n return new Array(count).fill(0).map((_, idx) => idx);\n }\n /**\n * Calculate the number of days between two dates, `0` means the same day\n *\n * 计算两个日期相差天数,`0` 表示同一天\n */\n getDiffDays(dateLeft: Date | number, dateRight?: Date | number): number {\n return differenceInCalendarDays(\n dateLeft,\n typeof dateRight === 'number' ? addDays(this.date, dateRight) : dateRight || this.date\n );\n }\n /**\n * Disabled Before date (Default: today), Generally serves `nzDisabledDate`\n *\n * 禁用之前日期(默认:今天),一般服务于 `nzDisabledDate`\n */\n disabledBeforeDate(options?: { offsetDays?: Date | number }): DisabledDateFn {\n return (d): boolean => this.getDiffDays(d, options?.offsetDays) < 0;\n }\n /**\n * Disabled After date (Default: today), Generally serves `nzDisabledDate`\n *\n * 禁用之后日期(默认:今天),一般服务于 `nzDisabledDate`\n */\n disabledAfterDate(options?: { offsetDays?: Date | number }): DisabledDateFn {\n return (d): boolean => this.getDiffDays(d, options?.offsetDays) > 0;\n }\n private baseDisabledTime(type: 'before' | 'after', offsetSeconds?: number): DisabledTimeFn {\n const tick24 = this.genTick(24);\n const tick60 = this.genTick(60);\n return (current): DisabledTimeConfig => {\n const cur = current as Date;\n if (cur == null) {\n return {} as NzSafeAny;\n }\n const now = addSeconds(this.now, offsetSeconds || 0);\n const nowHours = now.getHours();\n const nowMinutes = now.getMinutes();\n const curHours = cur.getHours();\n const isToday = this.getDiffDays(this.removeTime(cur)) === 0;\n return {\n nzDisabledHours: () => {\n if (!isToday) return [];\n return type === 'before' ? tick24.slice(0, nowHours) : tick24.slice(nowHours + 1);\n },\n nzDisabledMinutes: () => {\n if (isToday && curHours === nowHours) {\n return type === 'before' ? tick60.slice(0, nowMinutes) : tick60.slice(nowMinutes + 1);\n }\n return [];\n },\n nzDisabledSeconds: () => {\n if (isToday && curHours === nowHours && cur.getMinutes() === nowMinutes) {\n const nowSeconds = now.getSeconds();\n return type === 'before' ? tick60.slice(0, nowSeconds) : tick60.slice(nowSeconds + 1);\n }\n return [];\n }\n };\n };\n }\n /**\n * Disabled Before time (Default: now), Generally serves `nzDisabledTime`\n *\n * 禁用之前时间(默认:现在),一般服务于 `nzDisabledTime`\n */\n disabledBeforeTime(options?: { offsetSeconds?: number }): DisabledTimeFn {\n return this.baseDisabledTime('before', options?.offsetSeconds);\n }\n /**\n * Disabled After time (Default: now), Generally serves `nzDisabledTime`\n *\n * 禁用之后时间(默认:现在),一般服务于 `nzDisabledTime`\n */\n disabledAfterTime(options?: { offsetSeconds?: number }): DisabledTimeFn {\n return this.baseDisabledTime('after', options?.offsetSeconds);\n }\n}\n\nexport const dateTimePickerUtil = new DateTimePickerUtil();\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAmBA;;;;;;;;SAQgB,eAAe,CAC7B,IAA0G,EAC1G,IAA6B;IAE7B,IAAI,GAAG,IAAI;UACP,OAAO,IAAI,KAAK,QAAQ;cACtB,KAAK,CAAC,IAAI,EAAE,qBAAqB,EAAE,IAAI,IAAI,EAAE,CAAC;cAC9C,IAAI,IAAI,CAAC,IAAI,CAAC;UAChB,IAAI,IAAI,EAAE,CAAC;IACf,MAAM,OAAO,GAAwB,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;IAEzD,IAAI,GAAiB,CAAC;IACtB,QAAQ,IAAI;QACV,KAAK,OAAO;YACV,GAAG,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACnB,MAAM;QACR,KAAK,QAAQ;YACX,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;YAChC,MAAM;QACR,KAAK,WAAW;YACd,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;YAC7C,MAAM;QAC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rD,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,CAAC,CAAC;KAChE;;;;;;IAMD,iBAAiB,CAAC,OAAoC;QACpD,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,CAAC,CAAC;KAC/D;CACF;MAEY,kBAAkB,GAAG,IAAI,kBAAkB;;ACzHxD;;;;;;"}
1
+ {"version":3,"file":"date-time.mjs","sources":["../../../../packages/util/date-time/time.ts","../../../../packages/util/date-time/picker.ts","../../../../packages/util/date-time/date-time.ts"],"sourcesContent":["import {\n addDays,\n endOfDay,\n endOfMonth,\n endOfWeek,\n endOfYear,\n parse,\n parseISO,\n startOfDay,\n startOfMonth,\n startOfWeek,\n startOfYear,\n subMonths,\n subWeeks,\n subYears\n} from 'date-fns';\n\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\n/**\n * Get the time range, return `[ Date, Date]` for the start and end dates\n *\n * 获取时间范围\n *\n * @param type 类型,带 `-` 表示过去一个时间,若指定 `number` 表示天数\n * @param time 开始时间\n * @param ignoreMaxTime 忽略追加结束日期的最大时间值\n */\nexport function getTimeDistance(\n type: 'today' | '-today' | 'yesterday' | 'week' | '-week' | 'month' | '-month' | 'year' | '-year' | number,\n time?: Date | string | number,\n options?: { ignoreMaxTime?: boolean }\n): [Date, Date] {\n time = time\n ? typeof time === 'string'\n ? parse(time, 'yyyy-MM-dd HH:mm:ss', new Date())\n : new Date(time)\n : new Date();\n const opt: { weekStartsOn: 1 } = { weekStartsOn: 1 };\n\n let res: [Date, Date];\n switch (type) {\n case 'today':\n res = [time, time];\n break;\n case '-today':\n res = [addDays(time, -1), time];\n break;\n case 'yesterday':\n res = [addDays(time, -1), addDays(time, -1)];\n break;\n case 'week':\n res = [startOfWeek(time, opt), endOfWeek(time, opt)];\n break;\n case '-week':\n res = [startOfWeek(subWeeks(time, 1), opt), endOfWeek(subWeeks(time, 1), opt)];\n break;\n case 'month':\n res = [startOfMonth(time), endOfMonth(time)];\n break;\n case '-month':\n res = [startOfMonth(subMonths(time, 1)), endOfMonth(subMonths(time, 1))];\n break;\n case 'year':\n res = [startOfYear(time), endOfYear(time)];\n break;\n case '-year':\n res = [startOfYear(subYears(time, 1)), endOfYear(subYears(time, 1))];\n break;\n default:\n res = type > 0 ? [time, addDays(time, type)] : [addDays(time, type), time];\n break;\n }\n return options?.ignoreMaxTime ? res : fixEndTimeOfRange(res);\n}\n\n/**\n * fix time is the most, big value\n */\nexport function fixEndTimeOfRange(dates: [Date, Date]): [Date, Date] {\n return [startOfDay(dates[0]), endOfDay(dates[1])];\n}\n\nexport type ToDateOptions = string | { formatString?: string; defaultValue?: NzSafeAny };\n\n/**\n * Return the date parsed from string using the given format string\n * - If the argument is a number, it is treated as a timestamp.\n *\n * @param formatString If parsing fails try to parse the date by pressing `formatString`\n * @param defaultValue If parsing fails returned default value, default: `new Date(NaN)`\n */\nexport function toDate(value?: Date | string | number | null, options?: ToDateOptions): Date {\n if (typeof options === 'string') options = { formatString: options };\n const { formatString, defaultValue } = {\n formatString: 'yyyy-MM-dd HH:mm:ss',\n defaultValue: new Date(NaN),\n ...options\n };\n if (value == null) {\n return defaultValue;\n }\n if (value instanceof Date) {\n return value;\n }\n if (typeof value === 'number' || (typeof value === 'string' && /[0-9]{10,13}/.test(value))) {\n return new Date(+value);\n }\n let tryDate = parseISO(value);\n if (isNaN(tryDate as NzSafeAny)) {\n tryDate = parse(value, formatString!, new Date());\n }\n\n return isNaN(tryDate as NzSafeAny) ? defaultValue : tryDate;\n}\n","import { addDays, addSeconds, differenceInCalendarDays, format } from 'date-fns';\n\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport { DisabledDateFn, DisabledTimeConfig, DisabledTimeFn } from 'ng-zorro-antd/date-picker';\n\n// TODO: timezone process\nexport class DateTimePickerUtil {\n /**\n * Current local time\n *\n * 当前本地时间\n */\n get now(): Date {\n return new Date();\n }\n /**\n * Current local date (not including time part)\n *\n * 当前本地日期(不包含时间部分)\n */\n get date(): Date {\n return this.removeTime(this.now);\n }\n /**\n * Remove the time part of the date\n *\n * 移除日期的时间部分\n */\n removeTime(d: Date): Date {\n return new Date(d.toDateString());\n }\n /**\n * Format date-time\n *\n * 格式化日期\n */\n format(d: number | Date, formatString: string = 'yyyy-MM-dd HH:mm:ss'): string {\n return format(d, formatString);\n }\n private genTick(count: number): number[] {\n return new Array(count).fill(0).map((_, idx) => idx);\n }\n /**\n * Calculate the number of days between two dates, `0` means the same day\n *\n * 计算两个日期相差天数,`0` 表示同一天\n */\n getDiffDays(dateLeft: Date | number, dateRight?: Date | number): number {\n return differenceInCalendarDays(\n dateLeft,\n typeof dateRight === 'number' ? addDays(this.date, dateRight) : dateRight || this.date\n );\n }\n /**\n * Disabled Before date (Default: today), Generally serves `nzDisabledDate`\n *\n * 禁用之前日期(默认:今天),一般服务于 `nzDisabledDate`\n */\n disabledBeforeDate(options?: { offsetDays?: Date | number }): DisabledDateFn {\n return (d): boolean => this.getDiffDays(d, options?.offsetDays) < 0;\n }\n /**\n * Disabled After date (Default: today), Generally serves `nzDisabledDate`\n *\n * 禁用之后日期(默认:今天),一般服务于 `nzDisabledDate`\n */\n disabledAfterDate(options?: { offsetDays?: Date | number }): DisabledDateFn {\n return (d): boolean => this.getDiffDays(d, options?.offsetDays) > 0;\n }\n private baseDisabledTime(type: 'before' | 'after', offsetSeconds?: number): DisabledTimeFn {\n const tick24 = this.genTick(24);\n const tick60 = this.genTick(60);\n return (current): DisabledTimeConfig => {\n const cur = current as Date;\n if (cur == null) {\n return {} as NzSafeAny;\n }\n const now = addSeconds(this.now, offsetSeconds || 0);\n const nowHours = now.getHours();\n const nowMinutes = now.getMinutes();\n const curHours = cur.getHours();\n const isToday = this.getDiffDays(this.removeTime(cur)) === 0;\n return {\n nzDisabledHours: () => {\n if (!isToday) return [];\n return type === 'before' ? tick24.slice(0, nowHours) : tick24.slice(nowHours + 1);\n },\n nzDisabledMinutes: () => {\n if (isToday && curHours === nowHours) {\n return type === 'before' ? tick60.slice(0, nowMinutes) : tick60.slice(nowMinutes + 1);\n }\n return [];\n },\n nzDisabledSeconds: () => {\n if (isToday && curHours === nowHours && cur.getMinutes() === nowMinutes) {\n const nowSeconds = now.getSeconds();\n return type === 'before' ? tick60.slice(0, nowSeconds) : tick60.slice(nowSeconds + 1);\n }\n return [];\n }\n };\n };\n }\n /**\n * Disabled Before time (Default: now), Generally serves `nzDisabledTime`\n *\n * 禁用之前时间(默认:现在),一般服务于 `nzDisabledTime`\n */\n disabledBeforeTime(options?: { offsetSeconds?: number }): DisabledTimeFn {\n return this.baseDisabledTime('before', options?.offsetSeconds);\n }\n /**\n * Disabled After time (Default: now), Generally serves `nzDisabledTime`\n *\n * 禁用之后时间(默认:现在),一般服务于 `nzDisabledTime`\n */\n disabledAfterTime(options?: { offsetSeconds?: number }): DisabledTimeFn {\n return this.baseDisabledTime('after', options?.offsetSeconds);\n }\n}\n\nexport const dateTimePickerUtil = new DateTimePickerUtil();\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAmBA;;;;;;;;;SASgB,eAAe,CAC7B,IAA0G,EAC1G,IAA6B,EAC7B,OAAqC;IAErC,IAAI,GAAG,IAAI;UACP,OAAO,IAAI,KAAK,QAAQ;cACtB,KAAK,CAAC,IAAI,EAAE,qBAAqB,EAAE,IAAI,IAAI,EAAE,CAAC;cAC9C,IAAI,IAAI,CAAC,IAAI,CAAC;UAChB,IAAI,IAAI,EAAE,CAAC;IACf,MAAM,GAAG,GAAwB,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;IAErD,IAAI,GAAiB,CAAC;IACtB,QAAQ,IAAI;QACV,KAAK,OAAO;YACV,GAAG,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACnB,MAAM;QACR,KAAK,QAAQ;YACX,GAAG,GAAG,CAAC,OA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BACvE,MAAM,UAAU,GAAG,GAAG,CAAC,UAAU,EAAE,CAAC;wBACpC,OAAO,IAAI,KAAK,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC;qBACvF;oBACD,OAAO,EAAE,CAAC;iBACX;aACF,CAAC;SACH,CAAC;KACH;;;;;;IAMD,kBAAkB,CAAC,OAAoC;QACrD,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,CAAC,CAAC;KAChE;;;;;;IAMD,iBAAiB,CAAC,OAAoC;QACpD,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,CAAC,CAAC;KAC/D;CACF;MAEY,kBAAkB,GAAG,IAAI,kBAAkB;;ACzHxD;;;;;;"}
File without changes
File without changes
package/fesm2015/form.mjs CHANGED
File without changes
File without changes
@@ -390,9 +390,9 @@ class CurrencyService {
390
390
  return ret;
391
391
  }
392
392
  }
393
- CurrencyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyService, deps: [{ token: i1.YunzaiConfigService }, { token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Injectable });
394
- CurrencyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyService, providedIn: 'root' });
395
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CurrencyService, decorators: [{
393
+ CurrencyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyService, deps: [{ token: i1.YunzaiConfigService }, { token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Injectable });
394
+ CurrencyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyService, providedIn: 'root' });
395
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyService, decorators: [{
396
396
  type: Injectable,
397
397
  args: [{ providedIn: 'root' }]
398
398
  }], ctorParameters: function () {
File without changes
package/fesm2015/math.mjs CHANGED
File without changes
File without changes
@@ -163,29 +163,14 @@ class LazyService {
163
163
  const node = this.doc.createElement('script');
164
164
  node.type = 'text/javascript';
165
165
  node.src = path;
166
- node.charset = 'utf-8';
167
166
  if (innerContent) {
168
167
  node.innerHTML = innerContent;
169
168
  }
170
- if (node.readyState) {
171
- // IE
172
- node.onreadystatechange = () => {
173
- if (node.readyState === 'loaded' || node.readyState === 'complete') {
174
- node.onreadystatechange = null;
175
- onSuccess({
176
- path,
177
- status: 'ok'
178
- });
179
- }
180
- };
181
- }
182
- else {
183
- node.onload = () => onSuccess({
184
- path,
185
- status: 'ok'
186
- });
187
- }
188
- node.onerror = (error) => onSuccess({
169
+ node.onload = () => onSuccess({
170
+ path,
171
+ status: 'ok'
172
+ });
173
+ node.onerror = error => onSuccess({
189
174
  path,
190
175
  status: 'error',
191
176
  error
@@ -217,9 +202,9 @@ class LazyService {
217
202
  });
218
203
  }
219
204
  }
220
- LazyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LazyService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
221
- LazyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LazyService, providedIn: 'root' });
222
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: LazyService, decorators: [{
205
+ LazyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LazyService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
206
+ LazyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LazyService, providedIn: 'root' });
207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: LazyService, decorators: [{
223
208
  type: Injectable,
224
209
  args: [{ providedIn: 'root' }]
225
210
  }], ctorParameters: function () {