umaki 0.6.3 → 0.7.0
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/dist/_virtual/_commonjsHelpers.cjs.js +0 -13
- package/dist/_virtual/_commonjsHelpers.es.js +0 -13
- package/dist/_virtual/isBetween.cjs.js +6 -14
- package/dist/_virtual/isBetween.cjs2.js +4 -0
- package/dist/_virtual/isBetween.es.js +5 -13
- package/dist/_virtual/isBetween.es2.js +4 -0
- package/dist/_virtual/timezone.cjs.js +6 -14
- package/dist/_virtual/timezone.cjs2.js +4 -0
- package/dist/_virtual/timezone.es.js +5 -13
- package/dist/_virtual/timezone.es2.js +4 -0
- package/dist/_virtual/utc.cjs.js +6 -14
- package/dist/_virtual/utc.cjs2.js +4 -0
- package/dist/_virtual/utc.es.js +5 -13
- package/dist/_virtual/utc.es2.js +4 -0
- package/dist/index.cjs.js +4 -15
- package/dist/index.es.js +2 -13
- package/dist/libs/config/defaultConfig.cjs.js +0 -11
- package/dist/libs/config/defaultConfig.es.js +0 -11
- package/dist/libs/config/getConfig.cjs.js +0 -11
- package/dist/libs/config/getConfig.es.js +0 -11
- package/dist/libs/config/index.d.ts +1 -1
- package/dist/libs/config/setConfig.cjs.js +0 -11
- package/dist/libs/config/setConfig.es.js +0 -11
- package/dist/libs/control/bgScrollStop.cjs.js +0 -11
- package/dist/libs/control/bgScrollStop.es.js +0 -11
- package/dist/libs/control/pd.cjs.js +0 -11
- package/dist/libs/control/pd.es.js +0 -11
- package/dist/libs/control/scrollToHash.cjs.js +0 -11
- package/dist/libs/control/scrollToHash.es.js +0 -11
- package/dist/libs/control/videoPlayControl.cjs.js +0 -11
- package/dist/libs/control/videoPlayControl.es.js +0 -11
- package/dist/libs/convert/changeDateStringToSpecificFormat.cjs.js +2 -13
- package/dist/libs/convert/changeDateStringToSpecificFormat.es.js +2 -13
- package/dist/libs/convert/jsonStringToJsonObject.cjs.js +0 -11
- package/dist/libs/convert/jsonStringToJsonObject.es.js +0 -11
- package/dist/libs/eventControl/debounce.cjs.js +0 -11
- package/dist/libs/eventControl/debounce.es.js +0 -11
- package/dist/libs/eventControl/throttle.cjs.js +0 -11
- package/dist/libs/eventControl/throttle.es.js +0 -11
- package/dist/libs/get/getAspectRatio.cjs.js +0 -11
- package/dist/libs/get/getAspectRatio.es.js +0 -11
- package/dist/libs/get/getClassNames.cjs.js +0 -11
- package/dist/libs/get/getClassNames.es.js +0 -11
- package/dist/libs/get/getDocumentHeight.cjs.js +0 -11
- package/dist/libs/get/getDocumentHeight.es.js +0 -11
- package/dist/libs/get/getEventPaths.cjs.js +1 -13
- package/dist/libs/get/getEventPaths.es.js +1 -13
- package/dist/libs/get/getGcd.cjs.js +0 -11
- package/dist/libs/get/getGcd.es.js +0 -11
- package/dist/libs/get/getGravatarUrl.cjs.js +0 -11
- package/dist/libs/get/getGravatarUrl.es.js +0 -11
- package/dist/libs/get/getOrientation.cjs.js +0 -11
- package/dist/libs/get/getOrientation.es.js +0 -11
- package/dist/libs/get/getParentList.cjs.js +0 -11
- package/dist/libs/get/getParentList.es.js +0 -11
- package/dist/libs/get/getQueryParams.cjs.js +0 -11
- package/dist/libs/get/getQueryParams.es.js +0 -11
- package/dist/libs/get/getRem.cjs.js +4 -13
- package/dist/libs/get/getRem.d.ts +1 -0
- package/dist/libs/get/getRem.es.js +4 -13
- package/dist/libs/get/getScrollbarWidth.cjs.js +0 -11
- package/dist/libs/get/getScrollbarWidth.es.js +0 -11
- package/dist/libs/get/getSessionStorage.cjs.js +0 -11
- package/dist/libs/get/getSessionStorage.es.js +0 -11
- package/dist/libs/get/getStringLength.cjs.js +0 -11
- package/dist/libs/get/getStringLength.es.js +0 -11
- package/dist/libs/get/getStylePropertyValue.cjs.js +0 -11
- package/dist/libs/get/getStylePropertyValue.es.js +0 -11
- package/dist/libs/get/getStylePropertyValueToNumber.cjs.js +1 -12
- package/dist/libs/get/getStylePropertyValueToNumber.es.js +1 -12
- package/dist/libs/get/getUaData.cjs.js +1 -12
- package/dist/libs/get/getUaData.es.js +1 -12
- package/dist/libs/is/checkDeviceSize.cjs.js +0 -11
- package/dist/libs/is/checkDeviceSize.es.js +0 -11
- package/dist/libs/is/index.d.ts +1 -1
- package/dist/libs/is/isAfterDateTime.cjs.js +0 -11
- package/dist/libs/is/isAfterDateTime.es.js +0 -11
- package/dist/libs/is/isBetweenDateTime.cjs.js +1 -12
- package/dist/libs/is/isBetweenDateTime.es.js +1 -12
- package/dist/libs/is/isExistAllElements.cjs.js +0 -11
- package/dist/libs/is/isExistAllElements.es.js +0 -11
- package/dist/libs/is/isIpad.cjs.js +0 -11
- package/dist/libs/is/isIpad.es.js +0 -11
- package/dist/libs/is/isKeyExists.cjs.js +1 -12
- package/dist/libs/is/isKeyExists.es.js +1 -12
- package/dist/libs/is/isSafari.cjs.js +0 -11
- package/dist/libs/is/isSafari.es.js +0 -11
- package/dist/libs/is/isScrollable.cjs.js +0 -11
- package/dist/libs/is/isScrollable.es.js +0 -11
- package/dist/libs/is/isTouchSupport.cjs.js +2 -13
- package/dist/libs/is/isTouchSupport.es.js +2 -13
- package/dist/libs/remove/removeAllHtmlTags.cjs.js +0 -11
- package/dist/libs/remove/removeAllHtmlTags.es.js +0 -11
- package/dist/libs/remove/removeAttribute.cjs.js +0 -11
- package/dist/libs/remove/removeAttribute.es.js +0 -11
- package/dist/libs/remove/removeSessionStorage.cjs.js +0 -11
- package/dist/libs/remove/removeSessionStorage.es.js +0 -11
- package/dist/libs/remove/removeStylePropertyValue.cjs.js +0 -11
- package/dist/libs/remove/removeStylePropertyValue.es.js +0 -11
- package/dist/libs/security/htmlSanitize.cjs.js +0 -11
- package/dist/libs/security/htmlSanitize.es.js +0 -11
- package/dist/libs/set/set100vh.cjs.js +0 -11
- package/dist/libs/set/set100vh.es.js +0 -11
- package/dist/libs/set/set100vw.cjs.js +0 -11
- package/dist/libs/set/set100vw.es.js +0 -11
- package/dist/libs/set/setAttribute.cjs.js +0 -11
- package/dist/libs/set/setAttribute.es.js +0 -11
- package/dist/libs/set/setScrollPositionToCenter.cjs.js +0 -11
- package/dist/libs/set/setScrollPositionToCenter.es.js +0 -11
- package/dist/libs/set/setSessionStorage.cjs.js +0 -11
- package/dist/libs/set/setSessionStorage.es.js +0 -11
- package/dist/libs/set/setStylePropertyValue.cjs.js +0 -11
- package/dist/libs/set/setStylePropertyValue.es.js +0 -11
- package/dist/libs/to/toBoolean.cjs.js +0 -11
- package/dist/libs/to/toBoolean.es.js +0 -11
- package/dist/libs/to/toPositiveNumber.cjs.js +0 -11
- package/dist/libs/to/toPositiveNumber.es.js +0 -11
- package/dist/libs/transform/wrapTextWithSpans.cjs.js +0 -11
- package/dist/libs/transform/wrapTextWithSpans.es.js +0 -11
- package/dist/libs/wait/sleep.cjs.js +0 -11
- package/dist/libs/wait/sleep.es.js +0 -11
- package/dist/libs/wait/waitForAllMediaLoaded.cjs.js +0 -11
- package/dist/libs/wait/waitForAllMediaLoaded.es.js +0 -11
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.cjs.js +21 -28
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.es.js +20 -27
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.cjs.js +69 -76
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.es.js +68 -75
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.cjs.js +81 -88
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.es.js +80 -87
- package/package.json +19 -19
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.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
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
15
3
|
function getDefaultExportFromCjs(x) {
|
|
16
4
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
17
5
|
}
|
|
18
|
-
exports.commonjsGlobal = commonjsGlobal;
|
|
19
6
|
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.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
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
13
1
|
function getDefaultExportFromCjs(x) {
|
|
14
2
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
15
3
|
}
|
|
16
4
|
export {
|
|
17
|
-
commonjsGlobal,
|
|
18
5
|
getDefaultExportFromCjs
|
|
19
6
|
};
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
|
-
var isBetween = { exports: {} };
|
|
15
|
-
exports.__module = isBetween;
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
4
|
+
const isBetween$1 = require("../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.cjs.js");
|
|
5
|
+
var isBetweenExports = isBetween$1.__require();
|
|
6
|
+
const isBetween = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(isBetweenExports);
|
|
7
|
+
exports.default = isBetween;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
var isBetween = { exports: {} };
|
|
1
|
+
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
+
import { __require as requireIsBetween } from "../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.es.js";
|
|
3
|
+
var isBetweenExports = requireIsBetween();
|
|
4
|
+
const isBetween = /* @__PURE__ */ getDefaultExportFromCjs(isBetweenExports);
|
|
13
5
|
export {
|
|
14
|
-
isBetween as
|
|
6
|
+
isBetween as default
|
|
15
7
|
};
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
|
-
var timezone = { exports: {} };
|
|
15
|
-
exports.__module = timezone;
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
4
|
+
const timezone$1 = require("../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.cjs.js");
|
|
5
|
+
var timezoneExports = timezone$1.__require();
|
|
6
|
+
const timezone = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(timezoneExports);
|
|
7
|
+
exports.default = timezone;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
var timezone = { exports: {} };
|
|
1
|
+
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
+
import { __require as requireTimezone } from "../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.es.js";
|
|
3
|
+
var timezoneExports = requireTimezone();
|
|
4
|
+
const timezone = /* @__PURE__ */ getDefaultExportFromCjs(timezoneExports);
|
|
13
5
|
export {
|
|
14
|
-
timezone as
|
|
6
|
+
timezone as default
|
|
15
7
|
};
|
package/dist/_virtual/utc.cjs.js
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
|
-
var utc = { exports: {} };
|
|
15
|
-
exports.__module = utc;
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const _commonjsHelpers = require("./_commonjsHelpers.cjs.js");
|
|
4
|
+
const utc$1 = require("../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.cjs.js");
|
|
5
|
+
var utcExports = utc$1.__require();
|
|
6
|
+
const utc = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(utcExports);
|
|
7
|
+
exports.default = utc;
|
package/dist/_virtual/utc.es.js
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
var utc = { exports: {} };
|
|
1
|
+
import { getDefaultExportFromCjs } from "./_commonjsHelpers.es.js";
|
|
2
|
+
import { __require as requireUtc } from "../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.es.js";
|
|
3
|
+
var utcExports = requireUtc();
|
|
4
|
+
const utc = /* @__PURE__ */ getDefaultExportFromCjs(utcExports);
|
|
13
5
|
export {
|
|
14
|
-
utc as
|
|
6
|
+
utc as default
|
|
15
7
|
};
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.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
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const defaultConfig = require("./libs/config/defaultConfig.cjs.js");
|
|
14
4
|
const getConfig = require("./libs/config/getConfig.cjs.js");
|
|
15
5
|
const setConfig = require("./libs/config/setConfig.cjs.js");
|
|
16
|
-
const defaultConfig = require("./libs/config/defaultConfig.cjs.js");
|
|
17
6
|
const bgScrollStop = require("./libs/control/bgScrollStop.cjs.js");
|
|
18
7
|
const pd = require("./libs/control/pd.cjs.js");
|
|
19
8
|
const scrollToHash = require("./libs/control/scrollToHash.cjs.js");
|
|
@@ -38,9 +27,9 @@ const getStringLength = require("./libs/get/getStringLength.cjs.js");
|
|
|
38
27
|
const getStylePropertyValue = require("./libs/get/getStylePropertyValue.cjs.js");
|
|
39
28
|
const getStylePropertyValueToNumber = require("./libs/get/getStylePropertyValueToNumber.cjs.js");
|
|
40
29
|
const getUaData = require("./libs/get/getUaData.cjs.js");
|
|
30
|
+
const checkDeviceSize = require("./libs/is/checkDeviceSize.cjs.js");
|
|
41
31
|
const isAfterDateTime = require("./libs/is/isAfterDateTime.cjs.js");
|
|
42
32
|
const isBetweenDateTime = require("./libs/is/isBetweenDateTime.cjs.js");
|
|
43
|
-
const checkDeviceSize = require("./libs/is/checkDeviceSize.cjs.js");
|
|
44
33
|
const isExistAllElements = require("./libs/is/isExistAllElements.cjs.js");
|
|
45
34
|
const isIpad = require("./libs/is/isIpad.cjs.js");
|
|
46
35
|
const isKeyExists = require("./libs/is/isKeyExists.cjs.js");
|
|
@@ -63,10 +52,10 @@ const toPositiveNumber = require("./libs/to/toPositiveNumber.cjs.js");
|
|
|
63
52
|
const wrapTextWithSpans = require("./libs/transform/wrapTextWithSpans.cjs.js");
|
|
64
53
|
const sleep = require("./libs/wait/sleep.cjs.js");
|
|
65
54
|
const waitForAllMediaLoaded = require("./libs/wait/waitForAllMediaLoaded.cjs.js");
|
|
55
|
+
exports.defaultConfig = defaultConfig.defaultConfig;
|
|
66
56
|
exports.getConfig = getConfig.getConfig;
|
|
67
57
|
exports.getConfigValue = getConfig.getConfigValue;
|
|
68
58
|
exports.setConfig = setConfig.setConfig;
|
|
69
|
-
exports.defaultConfig = defaultConfig.defaultConfig;
|
|
70
59
|
exports.bgScrollStop = bgScrollStop.bgScrollStop;
|
|
71
60
|
exports.pd = pd.pd;
|
|
72
61
|
exports.scrollToHash = scrollToHash.scrollToHash;
|
|
@@ -91,9 +80,9 @@ exports.getStringLength = getStringLength.getStringLength;
|
|
|
91
80
|
exports.getStylePropertyValue = getStylePropertyValue.getStylePropertyValue;
|
|
92
81
|
exports.getStylePropertyValueToNumber = getStylePropertyValueToNumber.getStylePropertyValueToNumber;
|
|
93
82
|
exports.getUaData = getUaData.getUaData;
|
|
83
|
+
exports.checkDeviceSize = checkDeviceSize.checkDeviceSize;
|
|
94
84
|
exports.isAfterDateTime = isAfterDateTime.isAfterDateTime;
|
|
95
85
|
exports.isBetweenDateTime = isBetweenDateTime.isBetweenDateTime;
|
|
96
|
-
exports.checkDeviceSize = checkDeviceSize.checkDeviceSize;
|
|
97
86
|
exports.isExistAllElements = isExistAllElements.isExistAllElements;
|
|
98
87
|
exports.isIpad = isIpad.isIpad;
|
|
99
88
|
exports.isKeyExists = isKeyExists.isKeyExists;
|
package/dist/index.es.js
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.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
|
-
*/
|
|
1
|
+
import { defaultConfig } from "./libs/config/defaultConfig.es.js";
|
|
12
2
|
import { getConfig, getConfigValue } from "./libs/config/getConfig.es.js";
|
|
13
3
|
import { setConfig } from "./libs/config/setConfig.es.js";
|
|
14
|
-
import { defaultConfig } from "./libs/config/defaultConfig.es.js";
|
|
15
4
|
import { bgScrollStop } from "./libs/control/bgScrollStop.es.js";
|
|
16
5
|
import { pd } from "./libs/control/pd.es.js";
|
|
17
6
|
import { scrollToHash } from "./libs/control/scrollToHash.es.js";
|
|
@@ -36,9 +25,9 @@ import { getStringLength } from "./libs/get/getStringLength.es.js";
|
|
|
36
25
|
import { getStylePropertyValue } from "./libs/get/getStylePropertyValue.es.js";
|
|
37
26
|
import { getStylePropertyValueToNumber } from "./libs/get/getStylePropertyValueToNumber.es.js";
|
|
38
27
|
import { getUaData } from "./libs/get/getUaData.es.js";
|
|
28
|
+
import { checkDeviceSize } from "./libs/is/checkDeviceSize.es.js";
|
|
39
29
|
import { isAfterDateTime } from "./libs/is/isAfterDateTime.es.js";
|
|
40
30
|
import { isBetweenDateTime } from "./libs/is/isBetweenDateTime.es.js";
|
|
41
|
-
import { checkDeviceSize } from "./libs/is/checkDeviceSize.es.js";
|
|
42
31
|
import { isExistAllElements } from "./libs/is/isExistAllElements.es.js";
|
|
43
32
|
import { isIpad } from "./libs/is/isIpad.es.js";
|
|
44
33
|
import { isKeyExists } from "./libs/is/isKeyExists.es.js";
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.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
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const defaultConfig = {
|
|
15
4
|
BREAKPOINT: 768
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.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
1
|
const defaultConfig = {
|
|
13
2
|
BREAKPOINT: 768
|
|
14
3
|
};
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.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
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const defaultConfig = require("./defaultConfig.cjs.js");
|
|
15
4
|
const currentConfig = { ...defaultConfig.defaultConfig };
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.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
1
|
import { defaultConfig } from "./defaultConfig.es.js";
|
|
13
2
|
const currentConfig = { ...defaultConfig };
|
|
14
3
|
const getConfig = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Configuration functions
|
|
3
3
|
*/
|
|
4
|
+
export { defaultConfig } from './defaultConfig';
|
|
4
5
|
export { getConfig, getConfigValue } from './getConfig';
|
|
5
6
|
export { setConfig } from './setConfig';
|
|
6
|
-
export { defaultConfig } from './defaultConfig';
|
|
7
7
|
export type { UmakiConfig } from './types';
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.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
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const getConfig = require("./getConfig.cjs.js");
|
|
15
4
|
const setConfig = (config) => {
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.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
1
|
import { currentConfig } from "./getConfig.es.js";
|
|
13
2
|
const setConfig = (config) => {
|
|
14
3
|
Object.assign(currentConfig, config);
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.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
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const getScrollbarWidth = require("../get/getScrollbarWidth.cjs.js");
|
|
15
4
|
const bgScrollStop = (isStop = true) => {
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.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
1
|
import { getScrollbarWidth } from "../get/getScrollbarWidth.es.js";
|
|
13
2
|
const bgScrollStop = (isStop = true) => {
|
|
14
3
|
document.body.style.paddingRight = isStop ? `${getScrollbarWidth()}px` : "";
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.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
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const pd = (e) => e.preventDefault();
|
|
15
4
|
exports.pd = pd;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.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
1
|
const pd = (e) => e.preventDefault();
|
|
13
2
|
export {
|
|
14
3
|
pd
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.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
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const scrollToHash = async (hash, isSmooth = true, manualOffset) => {
|
|
15
4
|
const hashWithoutSharp = hash.replace("#", "");
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.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
1
|
const scrollToHash = async (hash, isSmooth = true, manualOffset) => {
|
|
13
2
|
const hashWithoutSharp = hash.replace("#", "");
|
|
14
3
|
const targetElement = document.getElementById(hashWithoutSharp);
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.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
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const toBoolean = require("../to/toBoolean.cjs.js");
|
|
15
4
|
const videoPlayControl = async (videoElement, state, currentTime) => {
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.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
1
|
import { toBoolean } from "../to/toBoolean.es.js";
|
|
13
2
|
const videoPlayControl = async (videoElement, state, currentTime) => {
|
|
14
3
|
if (state && videoElement.paused) {
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.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
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const dayjs = require("dayjs");
|
|
15
|
-
const timezone = require("../../
|
|
16
|
-
const utc = require("../../
|
|
4
|
+
const timezone = require("../../_virtual/timezone.cjs.js");
|
|
5
|
+
const utc = require("../../_virtual/utc.cjs.js");
|
|
17
6
|
const changeDateStringToSpecificFormat = (date, format = "YYYY年MM月DD日", tz) => {
|
|
18
7
|
if (tz) {
|
|
19
8
|
dayjs.extend(utc.default);
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.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
1
|
import dayjs from "dayjs";
|
|
13
|
-
import timezone from "../../
|
|
14
|
-
import utc from "../../
|
|
2
|
+
import timezone from "../../_virtual/timezone.es.js";
|
|
3
|
+
import utc from "../../_virtual/utc.es.js";
|
|
15
4
|
const changeDateStringToSpecificFormat = (date, format = "YYYY年MM月DD日", tz) => {
|
|
16
5
|
if (tz) {
|
|
17
6
|
dayjs.extend(utc);
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.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
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const jsonStringToJsonObject = (string) => {
|
|
15
4
|
try {
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.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
1
|
const jsonStringToJsonObject = (string) => {
|
|
13
2
|
try {
|
|
14
3
|
return JSON.parse(string);
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* name: umaki
|
|
4
|
-
* version: v0.6.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
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
14
3
|
const debounce = (fn, delay) => {
|
|
15
4
|
let timeoutId = null;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* name: umaki
|
|
3
|
-
* version: v0.6.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
1
|
const debounce = (fn, delay) => {
|
|
13
2
|
let timeoutId = null;
|
|
14
3
|
return (...args) => {
|