@unicom-cloud/utils 0.1.15 → 0.1.17
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.
- package/class-name/index.js +5 -5
- package/constant/index.js +24 -2
- package/constant/platform.js +13 -12
- package/constant.js +24 -2
- package/content-disposition/index.js +3 -3
- package/date/convertTime.js +4 -4
- package/event-emitter/index.js +2 -4
- package/filesize/types/constants.d.ts +81 -0
- package/filesize/types/filesize.d.ts +97 -0
- package/index.js +66 -60
- package/js-cookie/index.d.ts +116 -0
- package/js-cookie/index.js +4 -0
- package/js-cookie/src/api.js +56 -0
- package/js-cookie/src/assign.js +11 -0
- package/js-cookie/src/converter.js +14 -0
- package/jsCookie.js +4 -0
- package/lunar/lib/Holiday.js +2 -6
- package/lunar/lib/HolidayUtil.js +113 -100
- package/lunar/lib/I18n.js +395 -975
- package/lunar/lib/JieQi.js +12 -16
- package/lunar/lib/Lunar.js +224 -672
- package/lunar/lib/LunarMonth.js +35 -98
- package/lunar/lib/LunarTime.js +24 -103
- package/lunar/lib/LunarUtil.js +426 -1728
- package/lunar/lib/LunarYear.js +473 -566
- package/lunar/lib/ShouXingUtil.js +6714 -6690
- package/lunar/lib/Solar.js +24 -49
- package/lunar/lib/SolarHalfYear.js +0 -2
- package/lunar/lib/SolarMonth.js +4 -6
- package/lunar/lib/SolarSeason.js +0 -2
- package/lunar/lib/SolarUtil.js +238 -226
- package/lunar/lib/SolarWeek.js +7 -11
- package/lunar/lib/SolarYear.js +0 -1
- package/nzh/nzh.d.ts +74 -0
- package/package.json +1 -1
- package/query-string/base.d.ts +717 -0
- package/query-string/base.js +268 -0
- package/query-string/index.d.ts +16 -0
- package/query-string/index.js +4 -0
- package/query-string/splitOnFirst.js +14 -0
- package/queryString.js +4 -0
- package/random/index.js +56 -35
- package/snapdom/src/api/preCache.js +51 -28
- package/snapdom/src/core/cache.js +1 -4
- package/snapdom/src/core/capture.js +45 -44
- package/snapdom/src/core/clone.js +82 -66
- package/snapdom/src/core/prepare.js +168 -46
- package/snapdom/src/modules/background.js +29 -19
- package/snapdom/src/modules/fonts.js +146 -91
- package/snapdom/src/modules/images.js +14 -9
- package/snapdom/src/modules/pseudo.js +55 -58
- package/snapdom/src/modules/styles.js +22 -22
- package/snapdom/src/modules/svgDefs.js +39 -20
- package/snapdom/src/utils/cssTools.js +58 -51
- package/snapdom/src/utils/helpers.js +197 -140
- package/snapdom/types/snapdom.d.ts +101 -0
- package/tinycolor/src/conversion.js +1 -1
- package/tinycolor/src/index.js +2 -19
- package/turbo-stream/src/encode.js +5 -8
- package/turbo-stream/src/shared.js +117 -119
- package/types/constant/index.d.ts +11 -0
- package/types/constant/platform.d.ts +1 -0
- package/types/index.d.ts +3 -0
- package/types/js-cookie/index.d.ts +1 -0
- package/types/js-cookie/src/api.d.mts +2 -0
- package/types/js-cookie/src/assign.d.mts +1 -0
- package/types/js-cookie/src/converter.d.mts +5 -0
- package/types/lunar/lib/Lunar.d.ts +0 -98
- package/types/lunar/lib/LunarMonth.d.ts +0 -12
- package/types/lunar/lib/LunarTime.d.ts +0 -22
- package/types/lunar/lib/LunarUtil.d.ts +0 -90
- package/types/lunar/lib/LunarYear.d.ts +0 -30
- package/types/lunar/lib/Solar.d.ts +0 -5
- package/types/query-string/base.d.ts +11 -0
- package/types/query-string/index.d.ts +2 -0
- package/types/query-string/splitOnFirst.d.ts +1 -0
- package/types/random/index.d.ts +14 -23
- package/types/snapdom/src/api/preCache.d.ts +2 -5
- package/types/snapdom/src/core/cache.d.ts +0 -3
- package/types/snapdom/src/core/clone.d.ts +1 -1
- package/types/snapdom/src/modules/background.d.ts +16 -6
- package/types/snapdom/src/modules/fonts.d.ts +5 -1
- package/types/snapdom/src/modules/pseudo.d.ts +1 -1
- package/types/snapdom/src/modules/styles.d.ts +1 -1
- package/types/snapdom/src/modules/svgDefs.d.ts +13 -13
- package/types/snapdom/src/utils/cssTools.d.ts +2 -10
- package/types/snapdom/src/utils/helpers.d.ts +13 -7
- package/types/tinycolor/src/conversion.d.ts +1 -1
- package/types/turbo-stream/src/shared.d.ts +3 -3
- package/url-toolkit/src/url-toolkit.d.ts +22 -0
package/lunar/lib/JieQi.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { LunarUtil as a } from "./LunarUtil.js";
|
|
2
|
-
class
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
let i = !1, r = !1, t, s;
|
|
9
|
-
for (t = 0, s = a.JIE_QI.length; t < s; t++)
|
|
10
|
-
if (a.JIE_QI[t] === e) {
|
|
11
|
-
t % 2 == 0 ? r = !0 : i = !0;
|
|
2
|
+
class _ {
|
|
3
|
+
constructor(t, h) {
|
|
4
|
+
let i = !1, r = !1, e, s;
|
|
5
|
+
for (e = 0, s = a.JIE_QI.length; e < s; e++)
|
|
6
|
+
if (a.JIE_QI[e] === t) {
|
|
7
|
+
e % 2 == 0 ? r = !0 : i = !0;
|
|
12
8
|
break;
|
|
13
9
|
}
|
|
14
|
-
this._name =
|
|
10
|
+
this._name = t, this._solar = h, this._jie = i, this._qi = r;
|
|
15
11
|
}
|
|
16
12
|
getName() {
|
|
17
13
|
return this._name;
|
|
@@ -19,11 +15,11 @@ class h {
|
|
|
19
15
|
getSolar() {
|
|
20
16
|
return this._solar;
|
|
21
17
|
}
|
|
22
|
-
setName(
|
|
23
|
-
this._name =
|
|
18
|
+
setName(t) {
|
|
19
|
+
this._name = t;
|
|
24
20
|
}
|
|
25
|
-
setSolar(
|
|
26
|
-
this._solar =
|
|
21
|
+
setSolar(t) {
|
|
22
|
+
this._solar = t;
|
|
27
23
|
}
|
|
28
24
|
isJie() {
|
|
29
25
|
return this._jie;
|
|
@@ -36,5 +32,5 @@ class h {
|
|
|
36
32
|
}
|
|
37
33
|
}
|
|
38
34
|
export {
|
|
39
|
-
|
|
35
|
+
_ as JieQi
|
|
40
36
|
};
|