@daysnap/utils 0.1.14 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/docs/classes/Poller.md +9 -9
  2. package/docs/classes/Storage.md +13 -13
  3. package/docs/interfaces/EventBusCallback.md +1 -1
  4. package/docs/interfaces/PollerOptions.md +1 -1
  5. package/docs/interfaces/StorageManager.md +4 -4
  6. package/docs/interfaces/Trap.md +5 -5
  7. package/docs/modules.md +309 -142
  8. package/es/chunk-AAKGIVZB.js +21 -0
  9. package/es/chunk-BZ6JSRMY.js +8 -0
  10. package/es/chunk-MOZPLBC3.js +8 -0
  11. package/es/chunk-OOWZEABP.js +8 -0
  12. package/es/chunk-PXMH56CM.js +8 -0
  13. package/es/chunk-UDRRKKBB.js +12 -0
  14. package/es/crToBr.d.ts +6 -0
  15. package/es/crToBr.js +6 -0
  16. package/es/crlfToBr.d.ts +11 -0
  17. package/es/crlfToBr.js +8 -0
  18. package/es/filterEmptyValue.js +3 -3
  19. package/es/getDateBoundsByMonths.d.ts +1 -1
  20. package/es/getDaysOfMonth.d.ts +6 -0
  21. package/es/getDaysOfMonth.js +6 -0
  22. package/es/getMonthBounds.d.ts +1 -1
  23. package/es/getWeekBounds.d.ts +7 -0
  24. package/es/getWeekBounds.js +9 -0
  25. package/es/index.d.ts +6 -1
  26. package/es/index.js +123 -101
  27. package/es/isLeapYear.d.ts +7 -0
  28. package/es/isLeapYear.js +6 -0
  29. package/es/lfToBr.d.ts +6 -0
  30. package/es/lfToBr.js +6 -0
  31. package/es/storage/index.js +3 -3
  32. package/es/stringifyQuery.js +2 -2
  33. package/lib/chunk-4WWOJSX3.cjs +21 -0
  34. package/lib/chunk-EUH2FDMT.cjs +8 -0
  35. package/lib/chunk-TMCJ3HTA.cjs +12 -0
  36. package/lib/chunk-UTUKZLEN.cjs +8 -0
  37. package/lib/chunk-XSCXPGEI.cjs +8 -0
  38. package/lib/chunk-ZSDKKWIQ.cjs +8 -0
  39. package/lib/crToBr.cjs +6 -0
  40. package/lib/crToBr.d.cts +6 -0
  41. package/lib/crlfToBr.cjs +8 -0
  42. package/lib/crlfToBr.d.cts +11 -0
  43. package/lib/filterEmptyValue.cjs +4 -4
  44. package/lib/getDateBoundsByMonths.d.cts +1 -1
  45. package/lib/getDaysOfMonth.cjs +6 -0
  46. package/lib/getDaysOfMonth.d.cts +6 -0
  47. package/lib/getMonthBounds.d.cts +1 -1
  48. package/lib/getWeekBounds.cjs +9 -0
  49. package/lib/getWeekBounds.d.cts +7 -0
  50. package/lib/index.cjs +95 -73
  51. package/lib/index.d.cts +6 -1
  52. package/lib/isLeapYear.cjs +6 -0
  53. package/lib/isLeapYear.d.cts +7 -0
  54. package/lib/lfToBr.cjs +6 -0
  55. package/lib/lfToBr.d.cts +6 -0
  56. package/lib/storage/index.cjs +2 -2
  57. package/lib/stringifyQuery.cjs +3 -3
  58. package/package.json +1 -1
  59. package/es/chunk-S2FOFDX4.js +0 -8
  60. package/es/filterCRLF.d.ts +0 -6
  61. package/es/filterCRLF.js +0 -6
  62. package/lib/chunk-CXDOHSIF.cjs +0 -8
  63. package/lib/filterCRLF.cjs +0 -6
  64. package/lib/filterCRLF.d.cts +0 -6
  65. package/es/{chunk-NXEL6RMI.js → chunk-SMNIKKYG.js} +6 -6
  66. package/es/{chunk-VDXSQKQF.js → chunk-WXXFRKUS.js} +3 -3
  67. package/lib/{chunk-PYFTXKFI.cjs → chunk-4P4EJVBW.cjs} +4 -4
  68. package/lib/{chunk-73AXP7FD.cjs → chunk-4USHGA4P.cjs} +2 -2
@@ -0,0 +1,21 @@
1
+ import {
2
+ formatDate
3
+ } from "./chunk-UMJU7UF2.js";
4
+ import {
5
+ normalizeDate
6
+ } from "./chunk-A3YS6665.js";
7
+
8
+ // src/getWeekBounds.ts
9
+ function getWeekBounds(value, sundayIsFirstDay = true, fmt) {
10
+ const start = normalizeDate(value);
11
+ const end = new Date(start);
12
+ const day = start.getDay();
13
+ const diffDay = sundayIsFirstDay ? day * -1 : day === 0 ? -6 : 1 - day;
14
+ start.setDate(start.getDate() + diffDay);
15
+ end.setDate(start.getDate() + 6);
16
+ return fmt ? [formatDate(start, fmt), formatDate(end, fmt)] : [start, end];
17
+ }
18
+
19
+ export {
20
+ getWeekBounds
21
+ };
@@ -0,0 +1,8 @@
1
+ // src/crToBr.ts
2
+ function crToBr(v) {
3
+ return v ? v.replace(/\r/gi, "<br/>") : v;
4
+ }
5
+
6
+ export {
7
+ crToBr
8
+ };
@@ -0,0 +1,8 @@
1
+ // src/isLeapYear.ts
2
+ function isLeapYear(year) {
3
+ return year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
4
+ }
5
+
6
+ export {
7
+ isLeapYear
8
+ };
@@ -0,0 +1,8 @@
1
+ // src/getDaysOfMonth.ts
2
+ function getDaysOfMonth(year, month) {
3
+ return new Date(year, month, 0).getDate();
4
+ }
5
+
6
+ export {
7
+ getDaysOfMonth
8
+ };
@@ -0,0 +1,8 @@
1
+ // src/lfToBr.ts
2
+ function lfToBr(v) {
3
+ return v ? v.replace(/\n/gi, "<br/>") : v;
4
+ }
5
+
6
+ export {
7
+ lfToBr
8
+ };
@@ -0,0 +1,12 @@
1
+ // src/crlfToBr.ts
2
+ function crlfToBr(v) {
3
+ return v ? v.replace(/\r|\n/gi, "<br/>") : v;
4
+ }
5
+ function filterCRLF(v) {
6
+ return v.replace(/\r|\n/gi, "<br/>");
7
+ }
8
+
9
+ export {
10
+ crlfToBr,
11
+ filterCRLF
12
+ };
package/es/crToBr.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * \r to <br/>
3
+ */
4
+ declare function crToBr(v: string): string;
5
+
6
+ export { crToBr };
package/es/crToBr.js ADDED
@@ -0,0 +1,6 @@
1
+ import {
2
+ crToBr
3
+ } from "./chunk-BZ6JSRMY.js";
4
+ export {
5
+ crToBr
6
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * \r \n to <br/>
3
+ */
4
+ declare function crlfToBr(v: string): string;
5
+ /**
6
+ * 替换字符串里面的回车换行符
7
+ * @deprecated 请使用 @see {@link crlfToBr}.
8
+ */
9
+ declare function filterCRLF(v: string): string;
10
+
11
+ export { crlfToBr, filterCRLF };
package/es/crlfToBr.js ADDED
@@ -0,0 +1,8 @@
1
+ import {
2
+ crlfToBr,
3
+ filterCRLF
4
+ } from "./chunk-UDRRKKBB.js";
5
+ export {
6
+ crlfToBr,
7
+ filterCRLF
8
+ };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  filterEmptyValue
3
- } from "./chunk-NXEL6RMI.js";
4
- import "./chunk-GVYBTJDA.js";
5
- import "./chunk-WCZPEH7E.js";
3
+ } from "./chunk-SMNIKKYG.js";
6
4
  import "./chunk-YGV2UKBN.js";
7
5
  import "./chunk-ELR2DZ56.js";
6
+ import "./chunk-GVYBTJDA.js";
7
+ import "./chunk-WCZPEH7E.js";
8
8
  import "./chunk-3KRJNCKB.js";
9
9
  import "./chunk-KOOGLWJ5.js";
10
10
  import "./chunk-CSZ7G34M.js";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 说明
2
+ * 获取月份开始时间、结束时间
3
3
  */
4
4
  declare function getDateBoundsByMonths(monthsCount: number, date: string | number | Date): [Date, Date];
5
5
  declare function getDateBoundsByMonths(monthsCount: number, date: string | number | Date, fmt: string): [string, string];
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 获取一个月当中的天数
3
+ */
4
+ declare function getDaysOfMonth(year: number, month: number): number;
5
+
6
+ export { getDaysOfMonth };
@@ -0,0 +1,6 @@
1
+ import {
2
+ getDaysOfMonth
3
+ } from "./chunk-OOWZEABP.js";
4
+ export {
5
+ getDaysOfMonth
6
+ };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 获取当前月份的开始时间和结束时间
2
+ * 获取月份的开始时间和结束时间
3
3
  */
4
4
  declare function getMonthBounds(value: string | number | Date): [Date, Date];
5
5
  declare function getMonthBounds(value: string | number | Date, fmt: string): [string, string];
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 获取一周的开始时间和结束时间
3
+ */
4
+ declare function getWeekBounds(value: string | number | Date, sundayIsFirstDay: boolean): [Date, Date];
5
+ declare function getWeekBounds(value: string | number | Date, sundayIsFirstDay: boolean, fmt: string): [string, string];
6
+
7
+ export { getWeekBounds };
@@ -0,0 +1,9 @@
1
+ import {
2
+ getWeekBounds
3
+ } from "./chunk-AAKGIVZB.js";
4
+ import "./chunk-UMJU7UF2.js";
5
+ import "./chunk-A3YS6665.js";
6
+ import "./chunk-F4QMON2N.js";
7
+ export {
8
+ getWeekBounds
9
+ };
package/es/index.d.ts CHANGED
@@ -11,10 +11,12 @@ export { clone } from './clone.js';
11
11
  export { cloneSimple } from './cloneSimple.js';
12
12
  export { compareVersion } from './compareVersion.js';
13
13
  export { compressImage } from './compressImage.js';
14
+ export { crToBr } from './crToBr.js';
14
15
  export { createFactory } from './createFactory.js';
15
16
  export { colorGenByHash } from './createHexColorByHash.js';
16
17
  export { createLinearFunction } from './createLinearFunction.js';
17
18
  export { createWithLoading } from './createWithLoading.js';
19
+ export { crlfToBr, filterCRLF } from './crlfToBr.js';
18
20
  export { debounce } from './debounce.js';
19
21
  export { atob, btoa } from './decode.js';
20
22
  export { downloadFile } from './downloadFile.js';
@@ -22,7 +24,6 @@ export { each } from './each.js';
22
24
  export { EventBusCallback, eventBus } from './eventBus.js';
23
25
  export { exitFullscreen } from './exitFullscreen.js';
24
26
  export { filterBankCardNo } from './filterBankCardNo.js';
25
- export { filterCRLF } from './filterCRLF.js';
26
27
  export { filterEmoji } from './filterEmoji.js';
27
28
  export { filterEmptyValue } from './filterEmptyValue.js';
28
29
  export { filterIdCard } from './filterIdCard.js';
@@ -39,6 +40,7 @@ export { formatPathParams } from './formatPathParams.js';
39
40
  export { getBlobByUrl } from './getBlobByUrl.js';
40
41
  export { getDateBoundsByMonths } from './getDateBoundsByMonths.js';
41
42
  export { getDayMillisecond } from './getDayMillisecond.js';
43
+ export { getDaysOfMonth } from './getDaysOfMonth.js';
42
44
  export { getImageInfo } from './getImageInfo.js';
43
45
  export { getMonthBounds } from './getMonthBounds.js';
44
46
  export { getRandom } from './getRandom.js';
@@ -47,6 +49,7 @@ export { getRandomNumber } from './getRandomNumber.js';
47
49
  export { getRangeDate } from './getRangeDate.js';
48
50
  export { getScrollTop } from './getScrollTop.js';
49
51
  export { getVideoInfo } from './getVideoInfo.js';
52
+ export { getWeekBounds } from './getWeekBounds.js';
50
53
  export { getWeekday } from './getWeekday.js';
51
54
  export { inBrowser } from './inBrowser.js';
52
55
  export { insertLink } from './insertLink.js';
@@ -69,6 +72,7 @@ export { isIOS } from './isIOS.js';
69
72
  export { isIdCard } from './isIdCard.js';
70
73
  export { isJSONString } from './isJSONString.js';
71
74
  export { isLan } from './isLan.js';
75
+ export { isLeapYear } from './isLeapYear.js';
72
76
  export { isLicenseCode } from './isLicenseCode.js';
73
77
  export { isMobile } from './isMobile.js';
74
78
  export { isNativeFunction } from './isNativeFunction.js';
@@ -87,6 +91,7 @@ export { isWeChat, isWeixin } from './isWeChat.js';
87
91
  export { isWeChatMiniProgram } from './isWeChatMiniProgram.js';
88
92
  export { isWindow } from './isWindow.js';
89
93
  export { kebabCase } from './kebabCase.js';
94
+ export { lfToBr } from './lfToBr.js';
90
95
  export { listGenerator } from './listGenerator.js';
91
96
  export { makePhoneCall } from './makePhoneCall.js';
92
97
  export { mousewheel } from './mousewheel.js';
package/es/index.js CHANGED
@@ -1,13 +1,3 @@
1
- import {
2
- toCDB
3
- } from "./chunk-J2Y5ZZA3.js";
4
- import {
5
- toDBC
6
- } from "./chunk-ONTP5SDE.js";
7
- import {
8
- createTrapInstance,
9
- trap
10
- } from "./chunk-LOPD7SSH.js";
11
1
  import {
12
2
  typeOf
13
3
  } from "./chunk-MTF3ACKC.js";
@@ -21,18 +11,12 @@ import {
21
11
  getCache,
22
12
  getLocal
23
13
  } from "./chunk-LG2TIXRB.js";
24
- import {
25
- Storage
26
- } from "./chunk-56QUZDMU.js";
27
14
  import {
28
15
  factory
29
16
  } from "./chunk-M6B3UGFI.js";
30
17
  import {
31
- scrollToTop
32
- } from "./chunk-P7QW362C.js";
33
- import {
34
- setScrollTop
35
- } from "./chunk-BULTIEJG.js";
18
+ Storage
19
+ } from "./chunk-56QUZDMU.js";
36
20
  import {
37
21
  splitArray
38
22
  } from "./chunk-BNF4U7EJ.js";
@@ -41,7 +25,7 @@ import {
41
25
  } from "./chunk-IF7JMIDO.js";
42
26
  import {
43
27
  stringifyQuery
44
- } from "./chunk-VDXSQKQF.js";
28
+ } from "./chunk-WXXFRKUS.js";
45
29
  import {
46
30
  stringifyQueryString
47
31
  } from "./chunk-TSFGLHCP.js";
@@ -51,17 +35,15 @@ import {
51
35
  throttleTrailing
52
36
  } from "./chunk-ASYHV5B7.js";
53
37
  import {
54
- pascalCase
55
- } from "./chunk-S7PUCGCQ.js";
56
- import {
57
- pick
58
- } from "./chunk-IPAT3N4P.js";
38
+ toCDB
39
+ } from "./chunk-J2Y5ZZA3.js";
59
40
  import {
60
- Poller
61
- } from "./chunk-GLJALZRT.js";
41
+ toDBC
42
+ } from "./chunk-ONTP5SDE.js";
62
43
  import {
63
- sleep
64
- } from "./chunk-TNIIDDN4.js";
44
+ createTrapInstance,
45
+ trap
46
+ } from "./chunk-LOPD7SSH.js";
65
47
  import {
66
48
  replaceCrlf
67
49
  } from "./chunk-GNGSV7F7.js";
@@ -78,14 +60,11 @@ import {
78
60
  round
79
61
  } from "./chunk-4BFL6RXS.js";
80
62
  import {
81
- omit
82
- } from "./chunk-6GTFQZL4.js";
83
- import {
84
- padding
85
- } from "./chunk-CCZL3GEW.js";
63
+ scrollToTop
64
+ } from "./chunk-P7QW362C.js";
86
65
  import {
87
- parseDate
88
- } from "./chunk-DWT2WM6H.js";
66
+ setScrollTop
67
+ } from "./chunk-BULTIEJG.js";
89
68
  import {
90
69
  parseError
91
70
  } from "./chunk-EJMUWNXI.js";
@@ -99,11 +78,17 @@ import {
99
78
  parseQueryString
100
79
  } from "./chunk-SZ7IZE42.js";
101
80
  import {
102
- isWindow
103
- } from "./chunk-QYCMY2T4.js";
81
+ pascalCase
82
+ } from "./chunk-S7PUCGCQ.js";
104
83
  import {
105
- kebabCase
106
- } from "./chunk-IPIA4Z65.js";
84
+ pick
85
+ } from "./chunk-IPAT3N4P.js";
86
+ import {
87
+ Poller
88
+ } from "./chunk-GLJALZRT.js";
89
+ import {
90
+ sleep
91
+ } from "./chunk-TNIIDDN4.js";
107
92
  import {
108
93
  makePhoneCall
109
94
  } from "./chunk-GYOXULKV.js";
@@ -117,11 +102,14 @@ import {
117
102
  normalizePath
118
103
  } from "./chunk-CMP4T3ZH.js";
119
104
  import {
120
- isRegExp
121
- } from "./chunk-Y4V5R7XA.js";
105
+ omit
106
+ } from "./chunk-6GTFQZL4.js";
122
107
  import {
123
- isType
124
- } from "./chunk-5EVWQVDV.js";
108
+ padding
109
+ } from "./chunk-CCZL3GEW.js";
110
+ import {
111
+ parseDate
112
+ } from "./chunk-DWT2WM6H.js";
125
113
  import {
126
114
  isUrl
127
115
  } from "./chunk-D5O4LXN3.js";
@@ -136,14 +124,14 @@ import {
136
124
  isWeChatMiniProgram
137
125
  } from "./chunk-SQ3L6IQW.js";
138
126
  import {
139
- isLicenseCode
140
- } from "./chunk-576ZRCUO.js";
127
+ isWindow
128
+ } from "./chunk-QYCMY2T4.js";
141
129
  import {
142
- isMobile
143
- } from "./chunk-L52JSZDZ.js";
130
+ kebabCase
131
+ } from "./chunk-IPIA4Z65.js";
144
132
  import {
145
- isNativeFunction
146
- } from "./chunk-4N33UIAB.js";
133
+ lfToBr
134
+ } from "./chunk-PXMH56CM.js";
147
135
  import {
148
136
  isNumber
149
137
  } from "./chunk-NCFA5IXM.js";
@@ -153,6 +141,36 @@ import {
153
141
  import {
154
142
  isPromise
155
143
  } from "./chunk-LJ4CEJ5C.js";
144
+ import {
145
+ isRegExp
146
+ } from "./chunk-Y4V5R7XA.js";
147
+ import {
148
+ isType
149
+ } from "./chunk-5EVWQVDV.js";
150
+ import {
151
+ isIdCard
152
+ } from "./chunk-UXSZFM5G.js";
153
+ import {
154
+ isJSONString
155
+ } from "./chunk-IIIHPNUB.js";
156
+ import {
157
+ isLan
158
+ } from "./chunk-VTSGSUL2.js";
159
+ import {
160
+ isLeapYear
161
+ } from "./chunk-MOZPLBC3.js";
162
+ import {
163
+ isLicenseCode
164
+ } from "./chunk-576ZRCUO.js";
165
+ import {
166
+ isMobile
167
+ } from "./chunk-L52JSZDZ.js";
168
+ import {
169
+ isNativeFunction
170
+ } from "./chunk-4N33UIAB.js";
171
+ import {
172
+ isEmail
173
+ } from "./chunk-JMUWQLHE.js";
156
174
  import {
157
175
  isError
158
176
  } from "./chunk-6UGTRW2S.js";
@@ -163,14 +181,14 @@ import {
163
181
  isIOS
164
182
  } from "./chunk-5BVFSCCX.js";
165
183
  import {
166
- isIdCard
167
- } from "./chunk-UXSZFM5G.js";
184
+ insertScript
185
+ } from "./chunk-SCEONZUJ.js";
168
186
  import {
169
- isJSONString
170
- } from "./chunk-IIIHPNUB.js";
187
+ insertStyle
188
+ } from "./chunk-FY3PSILS.js";
171
189
  import {
172
- isLan
173
- } from "./chunk-VTSGSUL2.js";
190
+ isAmount
191
+ } from "./chunk-YKTD7CLE.js";
174
192
  import {
175
193
  isAndroid
176
194
  } from "./chunk-SWLGSN5X.js";
@@ -184,11 +202,17 @@ import {
184
202
  isDate
185
203
  } from "./chunk-A4YRDVZ4.js";
186
204
  import {
187
- isEmail
188
- } from "./chunk-JMUWQLHE.js";
205
+ getRangeDate
206
+ } from "./chunk-JZKIIY3L.js";
207
+ import {
208
+ getScrollTop
209
+ } from "./chunk-EFDRCKKS.js";
189
210
  import {
190
211
  getVideoInfo
191
212
  } from "./chunk-3ZZPPKM3.js";
213
+ import {
214
+ getWeekBounds
215
+ } from "./chunk-AAKGIVZB.js";
192
216
  import {
193
217
  getWeekday
194
218
  } from "./chunk-PSACVUUL.js";
@@ -199,17 +223,14 @@ import {
199
223
  insertLink
200
224
  } from "./chunk-FIHEVMN6.js";
201
225
  import {
202
- insertScript
203
- } from "./chunk-SCEONZUJ.js";
204
- import {
205
- insertStyle
206
- } from "./chunk-FY3PSILS.js";
207
- import {
208
- isAmount
209
- } from "./chunk-YKTD7CLE.js";
226
+ getDateBoundsByMonths
227
+ } from "./chunk-HNKJXGCC.js";
210
228
  import {
211
229
  getDayMillisecond
212
230
  } from "./chunk-ZGN3KUXE.js";
231
+ import {
232
+ getDaysOfMonth
233
+ } from "./chunk-OOWZEABP.js";
213
234
  import {
214
235
  getImageInfo
215
236
  } from "./chunk-ANF3VZYM.js";
@@ -229,14 +250,20 @@ import {
229
250
  listGenerator
230
251
  } from "./chunk-2SUOLGG5.js";
231
252
  import {
232
- getRangeDate
233
- } from "./chunk-JZKIIY3L.js";
234
- import {
235
- getScrollTop
236
- } from "./chunk-EFDRCKKS.js";
253
+ formatDateToZN
254
+ } from "./chunk-WXD7J2FR.js";
237
255
  import {
238
256
  formatAmount
239
257
  } from "./chunk-KDND6GRD.js";
258
+ import {
259
+ formatDate
260
+ } from "./chunk-UMJU7UF2.js";
261
+ import {
262
+ normalizeDate
263
+ } from "./chunk-A3YS6665.js";
264
+ import {
265
+ isString
266
+ } from "./chunk-F4QMON2N.js";
240
267
  import {
241
268
  formatDateStr
242
269
  } from "./chunk-3MBFDHEW.js";
@@ -256,29 +283,29 @@ import {
256
283
  getBlobByUrl
257
284
  } from "./chunk-4QMOXXPL.js";
258
285
  import {
259
- getDateBoundsByMonths
260
- } from "./chunk-HNKJXGCC.js";
286
+ exitFullscreen
287
+ } from "./chunk-GV4IJGB2.js";
261
288
  import {
262
- filterCRLF
263
- } from "./chunk-S2FOFDX4.js";
289
+ filterBankCardNo
290
+ } from "./chunk-JKCLDPOC.js";
264
291
  import {
265
292
  filterEmoji
266
293
  } from "./chunk-CNCI66H4.js";
267
294
  import {
268
295
  filterEmptyValue
269
- } from "./chunk-NXEL6RMI.js";
270
- import {
271
- isEmptyObject
272
- } from "./chunk-GVYBTJDA.js";
273
- import {
274
- isFunction
275
- } from "./chunk-WCZPEH7E.js";
296
+ } from "./chunk-SMNIKKYG.js";
276
297
  import {
277
298
  isEmpty
278
299
  } from "./chunk-YGV2UKBN.js";
279
300
  import {
280
301
  isEmptyArray
281
302
  } from "./chunk-ELR2DZ56.js";
303
+ import {
304
+ isEmptyObject
305
+ } from "./chunk-GVYBTJDA.js";
306
+ import {
307
+ isFunction
308
+ } from "./chunk-WCZPEH7E.js";
282
309
  import {
283
310
  isUndefined
284
311
  } from "./chunk-3KRJNCKB.js";
@@ -298,20 +325,15 @@ import {
298
325
  filterString
299
326
  } from "./chunk-KJX7IWF5.js";
300
327
  import {
301
- formatDateToZN
302
- } from "./chunk-WXD7J2FR.js";
303
- import {
304
- formatDate
305
- } from "./chunk-UMJU7UF2.js";
306
- import {
307
- normalizeDate
308
- } from "./chunk-A3YS6665.js";
309
- import {
310
- isString
311
- } from "./chunk-F4QMON2N.js";
328
+ createLinearFunction
329
+ } from "./chunk-53VI5KBY.js";
312
330
  import {
313
331
  createWithLoading
314
332
  } from "./chunk-OC64NXZ2.js";
333
+ import {
334
+ crlfToBr,
335
+ filterCRLF
336
+ } from "./chunk-UDRRKKBB.js";
315
337
  import {
316
338
  debounce
317
339
  } from "./chunk-FBJWICWM.js";
@@ -328,12 +350,6 @@ import {
328
350
  import {
329
351
  eventBus
330
352
  } from "./chunk-HYCW7PL5.js";
331
- import {
332
- exitFullscreen
333
- } from "./chunk-GV4IJGB2.js";
334
- import {
335
- filterBankCardNo
336
- } from "./chunk-JKCLDPOC.js";
337
353
  import {
338
354
  clamp
339
355
  } from "./chunk-W52BRMSD.js";
@@ -355,15 +371,15 @@ import {
355
371
  import {
356
372
  compressImage
357
373
  } from "./chunk-ZUMPS2U2.js";
374
+ import {
375
+ crToBr
376
+ } from "./chunk-BZ6JSRMY.js";
358
377
  import {
359
378
  createFactory
360
379
  } from "./chunk-T22U5E3X.js";
361
380
  import {
362
381
  colorGenByHash
363
382
  } from "./chunk-ADGGLX7E.js";
364
- import {
365
- createLinearFunction
366
- } from "./chunk-53VI5KBY.js";
367
383
  import {
368
384
  ato
369
385
  } from "./chunk-KEADPNJL.js";
@@ -407,10 +423,12 @@ export {
407
423
  colorGenByHash,
408
424
  compareVersion,
409
425
  compressImage,
426
+ crToBr,
410
427
  createFactory,
411
428
  createLinearFunction,
412
429
  createTrapInstance,
413
430
  createWithLoading,
431
+ crlfToBr,
414
432
  debounce,
415
433
  downloadFile,
416
434
  each,
@@ -436,6 +454,7 @@ export {
436
454
  getCache,
437
455
  getDateBoundsByMonths,
438
456
  getDayMillisecond,
457
+ getDaysOfMonth,
439
458
  getImageInfo,
440
459
  getLocal,
441
460
  getMonthBounds,
@@ -445,6 +464,7 @@ export {
445
464
  getRangeDate,
446
465
  getScrollTop,
447
466
  getVideoInfo,
467
+ getWeekBounds,
448
468
  getWeekday,
449
469
  inBrowser,
450
470
  insertLink,
@@ -467,6 +487,7 @@ export {
467
487
  isIdCard,
468
488
  isJSONString,
469
489
  isLan,
490
+ isLeapYear,
470
491
  isLicenseCode,
471
492
  isMobile,
472
493
  isNativeFunction,
@@ -486,6 +507,7 @@ export {
486
507
  isWeixin,
487
508
  isWindow,
488
509
  kebabCase,
510
+ lfToBr,
489
511
  listGenerator,
490
512
  makePhoneCall,
491
513
  mousewheel,
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 判断是否是闰年
3
+ * 规则:四年一闰,百年不闰,四百年再闰
4
+ */
5
+ declare function isLeapYear(year: number): boolean;
6
+
7
+ export { isLeapYear };
@@ -0,0 +1,6 @@
1
+ import {
2
+ isLeapYear
3
+ } from "./chunk-MOZPLBC3.js";
4
+ export {
5
+ isLeapYear
6
+ };
package/es/lfToBr.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * \n to <br/>
3
+ */
4
+ declare function lfToBr(v: string): string;
5
+
6
+ export { lfToBr };
package/es/lfToBr.js ADDED
@@ -0,0 +1,6 @@
1
+ import {
2
+ lfToBr
3
+ } from "./chunk-PXMH56CM.js";
4
+ export {
5
+ lfToBr
6
+ };