umaki 0.4.2 → 0.4.3

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 (112) hide show
  1. package/README.md +15 -18
  2. package/dist/_virtual/_commonjsHelpers.cjs.js +1 -1
  3. package/dist/_virtual/_commonjsHelpers.es.js +1 -1
  4. package/dist/_virtual/isBetween.cjs.js +1 -1
  5. package/dist/_virtual/isBetween.es.js +1 -1
  6. package/dist/_virtual/timezone.cjs.js +15 -0
  7. package/dist/_virtual/timezone.es.js +15 -0
  8. package/dist/_virtual/utc.cjs.js +15 -0
  9. package/dist/_virtual/utc.es.js +15 -0
  10. package/dist/index.cjs.js +1 -1
  11. package/dist/index.es.js +1 -1
  12. package/dist/libs/control/bgScrollStop.cjs.js +1 -1
  13. package/dist/libs/control/bgScrollStop.es.js +1 -1
  14. package/dist/libs/control/pd.cjs.js +1 -1
  15. package/dist/libs/control/pd.es.js +1 -1
  16. package/dist/libs/control/scrollToHash.cjs.js +1 -1
  17. package/dist/libs/control/scrollToHash.es.js +1 -1
  18. package/dist/libs/control/videoPlayControl.cjs.js +1 -1
  19. package/dist/libs/control/videoPlayControl.es.js +1 -1
  20. package/dist/libs/convert/changeDateStringToSpecificFormat.cjs.js +9 -3
  21. package/dist/libs/convert/changeDateStringToSpecificFormat.d.ts +3 -4
  22. package/dist/libs/convert/changeDateStringToSpecificFormat.es.js +9 -3
  23. package/dist/libs/convert/changeDateStringToSpecificFormat.test.d.ts +1 -0
  24. package/dist/libs/convert/jsonStringToJsonObject.cjs.js +1 -1
  25. package/dist/libs/convert/jsonStringToJsonObject.es.js +1 -1
  26. package/dist/libs/eventControl/debounce.cjs.js +1 -1
  27. package/dist/libs/eventControl/debounce.es.js +1 -1
  28. package/dist/libs/eventControl/throttle.cjs.js +1 -1
  29. package/dist/libs/eventControl/throttle.es.js +1 -1
  30. package/dist/libs/get/getAspectRatio.cjs.js +1 -1
  31. package/dist/libs/get/getAspectRatio.es.js +1 -1
  32. package/dist/libs/get/getClassNames.cjs.js +1 -1
  33. package/dist/libs/get/getClassNames.es.js +1 -1
  34. package/dist/libs/get/getDocumentHeight.cjs.js +1 -1
  35. package/dist/libs/get/getDocumentHeight.es.js +1 -1
  36. package/dist/libs/get/getEventPaths.cjs.js +1 -1
  37. package/dist/libs/get/getEventPaths.es.js +1 -1
  38. package/dist/libs/get/getGcd.cjs.js +1 -1
  39. package/dist/libs/get/getGcd.es.js +1 -1
  40. package/dist/libs/get/getOrientation.cjs.js +1 -1
  41. package/dist/libs/get/getOrientation.es.js +1 -1
  42. package/dist/libs/get/getParentList.cjs.js +1 -1
  43. package/dist/libs/get/getParentList.es.js +1 -1
  44. package/dist/libs/get/getQueryParams.cjs.js +1 -1
  45. package/dist/libs/get/getQueryParams.es.js +1 -1
  46. package/dist/libs/get/getRem.cjs.js +1 -1
  47. package/dist/libs/get/getRem.es.js +1 -1
  48. package/dist/libs/get/getScrollbarWidth.cjs.js +1 -1
  49. package/dist/libs/get/getScrollbarWidth.es.js +1 -1
  50. package/dist/libs/get/getSessionStorage.cjs.js +1 -1
  51. package/dist/libs/get/getSessionStorage.es.js +1 -1
  52. package/dist/libs/get/getStringLength.cjs.js +1 -1
  53. package/dist/libs/get/getStringLength.es.js +1 -1
  54. package/dist/libs/get/getStylePropertyValue.cjs.js +1 -1
  55. package/dist/libs/get/getStylePropertyValue.es.js +1 -1
  56. package/dist/libs/get/getStylePropertyValueToNumber.cjs.js +1 -1
  57. package/dist/libs/get/getStylePropertyValueToNumber.es.js +1 -1
  58. package/dist/libs/get/getUaData.cjs.js +1 -1
  59. package/dist/libs/get/getUaData.es.js +1 -1
  60. package/dist/libs/is/isBetweenDateTime.cjs.js +1 -1
  61. package/dist/libs/is/isBetweenDateTime.es.js +1 -1
  62. package/dist/libs/is/isExistAllElements.cjs.js +1 -1
  63. package/dist/libs/is/isExistAllElements.es.js +1 -1
  64. package/dist/libs/is/isIpad.cjs.js +1 -1
  65. package/dist/libs/is/isIpad.es.js +1 -1
  66. package/dist/libs/is/isKeyExists.cjs.js +1 -1
  67. package/dist/libs/is/isKeyExists.es.js +1 -1
  68. package/dist/libs/is/isSafari.cjs.js +1 -1
  69. package/dist/libs/is/isSafari.es.js +1 -1
  70. package/dist/libs/is/isScrollable.cjs.js +1 -1
  71. package/dist/libs/is/isScrollable.es.js +1 -1
  72. package/dist/libs/is/isTouchSupport.cjs.js +1 -1
  73. package/dist/libs/is/isTouchSupport.es.js +1 -1
  74. package/dist/libs/remove/removeAllHtmlTags.cjs.js +1 -1
  75. package/dist/libs/remove/removeAllHtmlTags.es.js +1 -1
  76. package/dist/libs/remove/removeAttribute.cjs.js +1 -1
  77. package/dist/libs/remove/removeAttribute.es.js +1 -1
  78. package/dist/libs/remove/removeSessionStorage.cjs.js +1 -1
  79. package/dist/libs/remove/removeSessionStorage.es.js +1 -1
  80. package/dist/libs/remove/removeStylePropertyValue.cjs.js +1 -1
  81. package/dist/libs/remove/removeStylePropertyValue.es.js +1 -1
  82. package/dist/libs/security/htmlSanitize.cjs.js +1 -1
  83. package/dist/libs/security/htmlSanitize.es.js +1 -1
  84. package/dist/libs/set/set100vh.cjs.js +1 -1
  85. package/dist/libs/set/set100vh.es.js +1 -1
  86. package/dist/libs/set/set100vw.cjs.js +1 -1
  87. package/dist/libs/set/set100vw.es.js +1 -1
  88. package/dist/libs/set/setAttribute.cjs.js +1 -1
  89. package/dist/libs/set/setAttribute.es.js +1 -1
  90. package/dist/libs/set/setScrollPositionToCenter.cjs.js +1 -1
  91. package/dist/libs/set/setScrollPositionToCenter.es.js +1 -1
  92. package/dist/libs/set/setSessionStorage.cjs.js +1 -1
  93. package/dist/libs/set/setSessionStorage.es.js +1 -1
  94. package/dist/libs/set/setStylePropertyValue.cjs.js +1 -1
  95. package/dist/libs/set/setStylePropertyValue.es.js +1 -1
  96. package/dist/libs/to/toBoolean.cjs.js +1 -1
  97. package/dist/libs/to/toBoolean.es.js +1 -1
  98. package/dist/libs/to/toPositiveNumber.cjs.js +1 -1
  99. package/dist/libs/to/toPositiveNumber.es.js +1 -1
  100. package/dist/libs/transform/wrapTextWithSpans.cjs.js +1 -1
  101. package/dist/libs/transform/wrapTextWithSpans.es.js +1 -1
  102. package/dist/libs/wait/sleep.cjs.js +1 -1
  103. package/dist/libs/wait/sleep.es.js +1 -1
  104. package/dist/libs/wait/waitForAllMediaLoaded.cjs.js +1 -1
  105. package/dist/libs/wait/waitForAllMediaLoaded.es.js +1 -1
  106. package/dist/node_modules/dayjs/plugin/isBetween.cjs.js +1 -1
  107. package/dist/node_modules/dayjs/plugin/isBetween.es.js +1 -1
  108. package/dist/node_modules/dayjs/plugin/timezone.cjs.js +78 -0
  109. package/dist/node_modules/dayjs/plugin/timezone.es.js +78 -0
  110. package/dist/node_modules/dayjs/plugin/utc.cjs.js +91 -0
  111. package/dist/node_modules/dayjs/plugin/utc.es.js +91 -0
  112. package/package.json +1 -1
@@ -0,0 +1,78 @@
1
+ /*!
2
+ * name: umaki
3
+ * version: v0.4.3
4
+ * description: A utility that is often used in web production.
5
+ * author: TsubasaHiga
6
+ * homepage: https://github.com/TsubasaHiga/umaki
7
+ * Released under the MIT License
8
+ *
9
+ * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
+ * For license information, please see LICENSE.txt
11
+ */
12
+ import { commonjsGlobal, getDefaultExportFromCjs } from "../../../_virtual/_commonjsHelpers.es.js";
13
+ import { __module as timezone$1 } from "../../../_virtual/timezone.es.js";
14
+ (function(module, exports) {
15
+ !function(t, e) {
16
+ module.exports = e();
17
+ }(commonjsGlobal, function() {
18
+ var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
19
+ return function(n, i, o) {
20
+ var r, a = function(t2, n2, i2) {
21
+ void 0 === i2 && (i2 = {});
22
+ var o2 = new Date(t2), r2 = function(t3, n3) {
23
+ void 0 === n3 && (n3 = {});
24
+ var i3 = n3.timeZoneName || "short", o3 = t3 + "|" + i3, r3 = e[o3];
25
+ return r3 || (r3 = new Intl.DateTimeFormat("en-US", { hour12: false, timeZone: t3, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: i3 }), e[o3] = r3), r3;
26
+ }(n2, i2);
27
+ return r2.formatToParts(o2);
28
+ }, u = function(e2, n2) {
29
+ for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
30
+ var f2 = i2[u2], s2 = f2.type, m = f2.value, c = t[s2];
31
+ c >= 0 && (r2[c] = parseInt(m, 10));
32
+ }
33
+ var d = r2[3], l = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
34
+ return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
35
+ }, f = i.prototype;
36
+ f.tz = function(t2, e2) {
37
+ void 0 === t2 && (t2 = r);
38
+ var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t2 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s2 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
39
+ if (!Number(s2)) n2 = this.utcOffset(0, e2);
40
+ else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
41
+ var m = n2.utcOffset();
42
+ n2 = n2.add(i2 - m, "minute");
43
+ }
44
+ return n2.$x.$timezone = t2, n2;
45
+ }, f.offsetName = function(t2) {
46
+ var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t2 }).find(function(t3) {
47
+ return "timezonename" === t3.type.toLowerCase();
48
+ });
49
+ return n2 && n2.value;
50
+ };
51
+ var s = f.startOf;
52
+ f.startOf = function(t2, e2) {
53
+ if (!this.$x || !this.$x.$timezone) return s.call(this, t2, e2);
54
+ var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
55
+ return s.call(n2, t2, e2).tz(this.$x.$timezone, true);
56
+ }, o.tz = function(t2, e2, n2) {
57
+ var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
58
+ if ("string" != typeof t2) return o(t2).tz(a2);
59
+ var s2 = function(t3, e3, n3) {
60
+ var i3 = t3 - 60 * e3 * 1e3, o2 = u(i3, n3);
61
+ if (e3 === o2) return [i3, e3];
62
+ var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
63
+ return o2 === r2 ? [i3, o2] : [t3 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
64
+ }(o.utc(t2, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
65
+ return d.$x.$timezone = a2, d;
66
+ }, o.tz.guess = function() {
67
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
68
+ }, o.tz.setDefault = function(t2) {
69
+ r = t2;
70
+ };
71
+ };
72
+ });
73
+ })(timezone$1);
74
+ var timezoneExports = timezone$1.exports;
75
+ const timezone = /* @__PURE__ */ getDefaultExportFromCjs(timezoneExports);
76
+ export {
77
+ timezone as default
78
+ };
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ /*!
3
+ * name: umaki
4
+ * version: v0.4.3
5
+ * description: A utility that is often used in web production.
6
+ * author: TsubasaHiga
7
+ * homepage: https://github.com/TsubasaHiga/umaki
8
+ * Released under the MIT License
9
+ *
10
+ * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
+ * For license information, please see LICENSE.txt
12
+ */
13
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
14
+ const _commonjsHelpers = require("../../../_virtual/_commonjsHelpers.cjs.js");
15
+ const utc$1 = require("../../../_virtual/utc.cjs.js");
16
+ (function(module2, exports2) {
17
+ !function(t, i) {
18
+ module2.exports = i();
19
+ }(_commonjsHelpers.commonjsGlobal, function() {
20
+ var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
21
+ return function(s, f, n) {
22
+ var u = f.prototype;
23
+ n.utc = function(t2) {
24
+ var i2 = { date: t2, utc: true, args: arguments };
25
+ return new f(i2);
26
+ }, u.utc = function(i2) {
27
+ var e2 = n(this.toDate(), { locale: this.$L, utc: true });
28
+ return i2 ? e2.add(this.utcOffset(), t) : e2;
29
+ }, u.local = function() {
30
+ return n(this.toDate(), { locale: this.$L, utc: false });
31
+ };
32
+ var o = u.parse;
33
+ u.parse = function(t2) {
34
+ t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), o.call(this, t2);
35
+ };
36
+ var r = u.init;
37
+ u.init = function() {
38
+ if (this.$u) {
39
+ var t2 = this.$d;
40
+ this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
41
+ } else r.call(this);
42
+ };
43
+ var a = u.utcOffset;
44
+ u.utcOffset = function(s2, f2) {
45
+ var n2 = this.$utils().u;
46
+ if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
47
+ if ("string" == typeof s2 && (s2 = function(t2) {
48
+ void 0 === t2 && (t2 = "");
49
+ var s3 = t2.match(i);
50
+ if (!s3) return null;
51
+ var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
52
+ return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
53
+ }(s2), null === s2)) return this;
54
+ var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2, o2 = this;
55
+ if (f2) return o2.$offset = u2, o2.$u = 0 === s2, o2;
56
+ if (0 !== s2) {
57
+ var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
58
+ (o2 = this.local().add(u2 + r2, t)).$offset = u2, o2.$x.$localOffset = r2;
59
+ } else o2 = this.utc();
60
+ return o2;
61
+ };
62
+ var h = u.format;
63
+ u.format = function(t2) {
64
+ var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
65
+ return h.call(this, i2);
66
+ }, u.valueOf = function() {
67
+ var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
68
+ return this.$d.valueOf() - 6e4 * t2;
69
+ }, u.isUTC = function() {
70
+ return !!this.$u;
71
+ }, u.toISOString = function() {
72
+ return this.toDate().toISOString();
73
+ }, u.toString = function() {
74
+ return this.toDate().toUTCString();
75
+ };
76
+ var l = u.toDate;
77
+ u.toDate = function(t2) {
78
+ return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
79
+ };
80
+ var c = u.diff;
81
+ u.diff = function(t2, i2, e2) {
82
+ if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
83
+ var s2 = this.local(), f2 = n(t2).local();
84
+ return c.call(s2, f2, i2, e2);
85
+ };
86
+ };
87
+ });
88
+ })(utc$1.__module);
89
+ var utcExports = utc$1.__module.exports;
90
+ const utc = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(utcExports);
91
+ exports.default = utc;
@@ -0,0 +1,91 @@
1
+ /*!
2
+ * name: umaki
3
+ * version: v0.4.3
4
+ * description: A utility that is often used in web production.
5
+ * author: TsubasaHiga
6
+ * homepage: https://github.com/TsubasaHiga/umaki
7
+ * Released under the MIT License
8
+ *
9
+ * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
+ * For license information, please see LICENSE.txt
11
+ */
12
+ import { commonjsGlobal, getDefaultExportFromCjs } from "../../../_virtual/_commonjsHelpers.es.js";
13
+ import { __module as utc$1 } from "../../../_virtual/utc.es.js";
14
+ (function(module, exports) {
15
+ !function(t, i) {
16
+ module.exports = i();
17
+ }(commonjsGlobal, function() {
18
+ var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
19
+ return function(s, f, n) {
20
+ var u = f.prototype;
21
+ n.utc = function(t2) {
22
+ var i2 = { date: t2, utc: true, args: arguments };
23
+ return new f(i2);
24
+ }, u.utc = function(i2) {
25
+ var e2 = n(this.toDate(), { locale: this.$L, utc: true });
26
+ return i2 ? e2.add(this.utcOffset(), t) : e2;
27
+ }, u.local = function() {
28
+ return n(this.toDate(), { locale: this.$L, utc: false });
29
+ };
30
+ var o = u.parse;
31
+ u.parse = function(t2) {
32
+ t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), o.call(this, t2);
33
+ };
34
+ var r = u.init;
35
+ u.init = function() {
36
+ if (this.$u) {
37
+ var t2 = this.$d;
38
+ this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
39
+ } else r.call(this);
40
+ };
41
+ var a = u.utcOffset;
42
+ u.utcOffset = function(s2, f2) {
43
+ var n2 = this.$utils().u;
44
+ if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
45
+ if ("string" == typeof s2 && (s2 = function(t2) {
46
+ void 0 === t2 && (t2 = "");
47
+ var s3 = t2.match(i);
48
+ if (!s3) return null;
49
+ var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
50
+ return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
51
+ }(s2), null === s2)) return this;
52
+ var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2, o2 = this;
53
+ if (f2) return o2.$offset = u2, o2.$u = 0 === s2, o2;
54
+ if (0 !== s2) {
55
+ var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
56
+ (o2 = this.local().add(u2 + r2, t)).$offset = u2, o2.$x.$localOffset = r2;
57
+ } else o2 = this.utc();
58
+ return o2;
59
+ };
60
+ var h = u.format;
61
+ u.format = function(t2) {
62
+ var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
63
+ return h.call(this, i2);
64
+ }, u.valueOf = function() {
65
+ var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
66
+ return this.$d.valueOf() - 6e4 * t2;
67
+ }, u.isUTC = function() {
68
+ return !!this.$u;
69
+ }, u.toISOString = function() {
70
+ return this.toDate().toISOString();
71
+ }, u.toString = function() {
72
+ return this.toDate().toUTCString();
73
+ };
74
+ var l = u.toDate;
75
+ u.toDate = function(t2) {
76
+ return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
77
+ };
78
+ var c = u.diff;
79
+ u.diff = function(t2, i2, e2) {
80
+ if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
81
+ var s2 = this.local(), f2 = n(t2).local();
82
+ return c.call(s2, f2, i2, e2);
83
+ };
84
+ };
85
+ });
86
+ })(utc$1);
87
+ var utcExports = utc$1.exports;
88
+ const utc = /* @__PURE__ */ getDefaultExportFromCjs(utcExports);
89
+ export {
90
+ utc as default
91
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umaki",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "A utility that is often used in web production.",
5
5
  "author": "TsubasaHiga",
6
6
  "homepage": "https://github.com/TsubasaHiga/umaki",