@yelon/util 13.2.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 +0 -0
  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 +3 -3
  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 +3 -3
  177. package/fesm2015/other.mjs.map +0 -0
  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 +3 -3
  207. package/fesm2020/other.mjs.map +0 -0
  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
@@ -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,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vF;oBACD,OAAO,EAAE,CAAC;iBACX;gBACD,iBAAiB,EAAE;oBACjB,IAAI,OAAO,IAAI,QAAQ,KAAK,QAAQ,IAAI,GAAG,CAAC,UAAU,EAAE,KAAK,UAAU,EAAE;wBACvE,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,EAAE,aAAa,CAAC,CAAC;KAChE;;;;;;IAMD,iBAAiB,CAAC,OAAoC;QACpD,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,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,IA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AI,QAAQ,KAAK,QAAQ,EAAE;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;gBACD,iBAAiB,EAAE;oBACjB,IAAI,OAAO,IAAI,QAAQ,KAAK,QAAQ,IAAI,GAAG,CAAC,UAAU,EAAE,KAAK,UAAU,EAAE;wBACvE,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,EAAE,aAAa,CAAC,CAAC;KAChE;;;;;;IAMD,iBAAiB,CAAC,OAAoC;QACpD,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;KAC/D;CACF;MAEY,kBAAkB,GAAG,IAAI,kBAAkB;;ACzHxD;;;;;;"}
File without changes
File without changes
package/fesm2020/form.mjs CHANGED
File without changes
File without changes
@@ -410,9 +410,9 @@ class CurrencyService {
410
410
  return ret;
411
411
  }
412
412
  }
413
- CurrencyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyService, deps: [{ token: i1.YunzaiConfigService }, { token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Injectable });
414
- CurrencyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyService, providedIn: 'root' });
415
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyService, decorators: [{
413
+ 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 });
414
+ CurrencyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyService, providedIn: 'root' });
415
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyService, decorators: [{
416
416
  type: Injectable,
417
417
  args: [{ providedIn: 'root' }]
418
418
  }], ctorParameters: function () { return [{ type: i1.YunzaiConfigService }, { type: undefined, decorators: [{
File without changes
package/fesm2020/math.mjs CHANGED
File without changes
File without changes
@@ -202,9 +202,9 @@ class LazyService {
202
202
  });
203
203
  }
204
204
  }
205
- LazyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LazyService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
206
- LazyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LazyService, providedIn: 'root' });
207
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", 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: [{
208
208
  type: Injectable,
209
209
  args: [{ providedIn: 'root' }]
210
210
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
File without changes
@@ -18,9 +18,9 @@ class CurrencyMegaPipe {
18
18
  return res.value + (this.isCN ? res.unitI18n : res.unit);
19
19
  }
20
20
  }
21
- CurrencyMegaPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyMegaPipe, deps: [{ token: i1.CurrencyService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
22
- CurrencyMegaPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyMegaPipe, name: "mega" });
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyMegaPipe, decorators: [{
21
+ 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 });
22
+ CurrencyMegaPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyMegaPipe, name: "mega" });
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyMegaPipe, decorators: [{
24
24
  type: Pipe,
25
25
  args: [{ name: 'mega' }]
26
26
  }], ctorParameters: function () { return [{ type: i1.CurrencyService }, { type: undefined, decorators: [{
@@ -45,9 +45,9 @@ class CurrencyPricePipe {
45
45
  return this.srv.format(value, options);
46
46
  }
47
47
  }
48
- CurrencyPricePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPricePipe, deps: [{ token: i1.CurrencyService }], target: i0.ɵɵFactoryTarget.Pipe });
49
- CurrencyPricePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPricePipe, name: "price" });
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPricePipe, decorators: [{
48
+ CurrencyPricePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPricePipe, deps: [{ token: i1.CurrencyService }], target: i0.ɵɵFactoryTarget.Pipe });
49
+ CurrencyPricePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPricePipe, name: "price" });
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPricePipe, decorators: [{
51
51
  type: Pipe,
52
52
  args: [{ name: 'price' }]
53
53
  }], ctorParameters: function () { return [{ type: i1.CurrencyService }]; } });
@@ -65,9 +65,9 @@ class CurrencyCNYPipe {
65
65
  return this.srv.cny(value, options);
66
66
  }
67
67
  }
68
- CurrencyCNYPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyCNYPipe, deps: [{ token: i1.CurrencyService }], target: i0.ɵɵFactoryTarget.Pipe });
69
- CurrencyCNYPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyCNYPipe, name: "cny" });
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyCNYPipe, decorators: [{
68
+ CurrencyCNYPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyCNYPipe, deps: [{ token: i1.CurrencyService }], target: i0.ɵɵFactoryTarget.Pipe });
69
+ CurrencyCNYPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyCNYPipe, name: "cny" });
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyCNYPipe, decorators: [{
71
71
  type: Pipe,
72
72
  args: [{ name: 'cny' }]
73
73
  }], ctorParameters: function () { return [{ type: i1.CurrencyService }]; } });
@@ -75,10 +75,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
75
75
  const PIPES = [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe];
76
76
  class CurrencyPipeModule {
77
77
  }
78
- CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
79
- CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPipeModule, declarations: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe], exports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe] });
80
- CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPipeModule });
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CurrencyPipeModule, decorators: [{
78
+ CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
79
+ CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPipeModule, declarations: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe], exports: [CurrencyMegaPipe, CurrencyPricePipe, CurrencyCNYPipe] });
80
+ CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPipeModule });
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: CurrencyPipeModule, decorators: [{
82
82
  type: NgModule,
83
83
  args: [{
84
84
  declarations: PIPES,
File without changes
@@ -11,9 +11,9 @@ class FilterPipe {
11
11
  return array.filter(i => matcher(i, ...args));
12
12
  }
13
13
  }
14
- FilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
15
- FilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FilterPipe, name: "filter" });
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FilterPipe, decorators: [{
14
+ FilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
15
+ FilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipe, name: "filter" });
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipe, decorators: [{
17
17
  type: Pipe,
18
18
  args: [{ name: 'filter' }]
19
19
  }] });
@@ -21,10 +21,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
21
21
  const PIPES = [FilterPipe];
22
22
  class FilterPipeModule {
23
23
  }
24
- FilterPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FilterPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
25
- FilterPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FilterPipeModule, declarations: [FilterPipe], exports: [FilterPipe] });
26
- FilterPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FilterPipeModule });
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FilterPipeModule, decorators: [{
24
+ FilterPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
25
+ FilterPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipeModule, declarations: [FilterPipe], exports: [FilterPipe] });
26
+ FilterPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipeModule });
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FilterPipeModule, decorators: [{
28
28
  type: NgModule,
29
29
  args: [{
30
30
  declarations: PIPES,
File without changes
@@ -26,9 +26,9 @@ class FormatMaskPipe {
26
26
  return formatMask(value, mask);
27
27
  }
28
28
  }
29
- FormatMaskPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormatMaskPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
30
- FormatMaskPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormatMaskPipe, name: "mask" });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormatMaskPipe, decorators: [{
29
+ FormatMaskPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatMaskPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
30
+ FormatMaskPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatMaskPipe, name: "mask" });
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatMaskPipe, decorators: [{
32
32
  type: Pipe,
33
33
  args: [{ name: 'mask' }]
34
34
  }] });
@@ -36,10 +36,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
36
36
  const PIPES = [FormatMaskPipe];
37
37
  class FormatPipeModule {
38
38
  }
39
- FormatPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormatPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
40
- FormatPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormatPipeModule, declarations: [FormatMaskPipe], exports: [FormatMaskPipe] });
41
- FormatPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormatPipeModule });
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormatPipeModule, decorators: [{
39
+ FormatPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
40
+ FormatPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatPipeModule, declarations: [FormatMaskPipe], exports: [FormatMaskPipe] });
41
+ FormatPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatPipeModule });
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: FormatPipeModule, decorators: [{
43
43
  type: NgModule,
44
44
  args: [{
45
45
  declarations: PIPES,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/form/form.d.ts CHANGED
File without changes
package/form/index.d.ts CHANGED
File without changes
File without changes
package/form/package.json CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
package/format/index.d.ts CHANGED
File without changes
File without changes
File without changes
File without changes
package/index.d.ts CHANGED
File without changes
File without changes
package/math/index.d.ts CHANGED
File without changes
package/math/math.d.ts CHANGED
File without changes
package/math/package.json CHANGED
File without changes
package/math/round.d.ts CHANGED
File without changes
package/other/assert.d.ts CHANGED
File without changes
package/other/deep.d.ts CHANGED
File without changes
package/other/index.d.ts CHANGED
File without changes
File without changes
package/other/logger.d.ts CHANGED
File without changes
package/other/other.d.ts CHANGED
File without changes
File without changes
package/other/resize.d.ts CHANGED
File without changes
package/other/url.d.ts CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yelon/util",
3
- "version": "13.2.0",
3
+ "version": "13.2.1",
4
4
  "author": "devcui<devcui@outlook.com>",
5
5
  "license": "MIT",
6
6
  "dependencies": {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/pipes/index.d.ts CHANGED
File without changes
File without changes
package/pipes/pipes.d.ts CHANGED
File without changes
package/token/index.d.ts CHANGED
File without changes
File without changes
File without changes
package/token/token.d.ts CHANGED
File without changes
package/token/window.d.ts CHANGED
File without changes
package/yelon-util.d.ts CHANGED
File without changes