umaki 0.6.3 → 0.7.5
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/README.md +10 -2
- 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,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) => {
|
|
@@ -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 throttle = (fn, wait) => {
|
|
15
4
|
let lastCallTime = 0;
|
|
@@ -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 throttle = (fn, wait) => {
|
|
13
2
|
let lastCallTime = 0;
|
|
14
3
|
return (...args) => {
|
|
@@ -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 getGcd = require("./getGcd.cjs.js");
|
|
15
4
|
const getAspectRatio = (w, h) => {
|
|
@@ -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 { getGcd } from "./getGcd.es.js";
|
|
13
2
|
const getAspectRatio = (w, h) => {
|
|
14
3
|
const gcd = getGcd(w, h);
|
|
@@ -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 getClassNames = (target) => {
|
|
15
4
|
const list = String(target.classList).split(" ").filter((v) => v);
|
|
@@ -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 getClassNames = (target) => {
|
|
13
2
|
const list = String(target.classList).split(" ").filter((v) => v);
|
|
14
3
|
return list;
|
|
@@ -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 getDocumentHeight = () => document.body.clientHeight - window.innerHeight;
|
|
15
4
|
exports.getDocumentHeight = getDocumentHeight;
|
|
@@ -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 getDocumentHeight = () => document.body.clientHeight - window.innerHeight;
|
|
13
2
|
export {
|
|
14
3
|
getDocumentHeight
|
|
@@ -1,19 +1,7 @@
|
|
|
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 getEventPaths = (evt) => {
|
|
15
|
-
|
|
16
|
-
let path = ((_a = evt.composedPath) == null ? void 0 : _a.call(evt)) || null;
|
|
4
|
+
let path = evt.composedPath?.() || null;
|
|
17
5
|
const target = evt.target;
|
|
18
6
|
if (path != null) {
|
|
19
7
|
path = path.indexOf(window) < 0 ? path.concat([window]) : path;
|
|
@@ -1,17 +1,5 @@
|
|
|
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 getEventPaths = (evt) => {
|
|
13
|
-
|
|
14
|
-
let path = ((_a = evt.composedPath) == null ? void 0 : _a.call(evt)) || null;
|
|
2
|
+
let path = evt.composedPath?.() || null;
|
|
15
3
|
const target = evt.target;
|
|
16
4
|
if (path != null) {
|
|
17
5
|
path = path.indexOf(window) < 0 ? path.concat([window]) : path;
|
|
@@ -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 toPositiveNumber = require("../to/toPositiveNumber.cjs.js");
|
|
15
4
|
const getGcd = (a, b) => {
|
|
@@ -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 { toPositiveNumber } from "../to/toPositiveNumber.es.js";
|
|
13
2
|
const getGcd = (a, b) => {
|
|
14
3
|
const positiveA = toPositiveNumber(Math.abs(a));
|
|
@@ -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 md5 = require("md5");
|
|
15
4
|
const getGravatarUrl = (email, size) => {
|
|
@@ -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 md5 from "md5";
|
|
13
2
|
const getGravatarUrl = (email, size) => {
|
|
14
3
|
const normalizedEmail = email.trim().toLowerCase();
|
|
@@ -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 getOrientation = () => {
|
|
15
4
|
const isLandscape = window.matchMedia("(orientation: landscape)").matches;
|
|
@@ -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 getOrientation = () => {
|
|
13
2
|
const isLandscape = window.matchMedia("(orientation: landscape)").matches;
|
|
14
3
|
return isLandscape ? "landscape" : "portrait";
|
|
@@ -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 getParentList = (element) => {
|
|
15
4
|
const parentElement = element.parentElement;
|
|
@@ -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 getParentList = (element) => {
|
|
13
2
|
const parentElement = element.parentElement;
|
|
14
3
|
if (!parentElement) return [element];
|
|
@@ -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 queryString = require("query-string");
|
|
15
4
|
const queryStringOptions = {
|
|
@@ -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 queryString from "query-string";
|
|
13
2
|
const queryStringOptions = {
|
|
14
3
|
arrayFormat: "comma",
|
|
@@ -1,18 +1,9 @@
|
|
|
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 getRem = (px) => {
|
|
15
|
-
const
|
|
16
|
-
|
|
4
|
+
const rootFontSize = parseFloat(
|
|
5
|
+
getComputedStyle(document.documentElement).fontSize
|
|
6
|
+
);
|
|
7
|
+
return `${px / rootFontSize}rem`;
|
|
17
8
|
};
|
|
18
9
|
exports.getRem = getRem;
|
|
@@ -1,17 +1,8 @@
|
|
|
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 getRem = (px) => {
|
|
13
|
-
const
|
|
14
|
-
|
|
2
|
+
const rootFontSize = parseFloat(
|
|
3
|
+
getComputedStyle(document.documentElement).fontSize
|
|
4
|
+
);
|
|
5
|
+
return `${px / rootFontSize}rem`;
|
|
15
6
|
};
|
|
16
7
|
export {
|
|
17
8
|
getRem
|
|
@@ -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 = () => window.innerWidth - document.body.clientWidth;
|
|
15
4
|
exports.getScrollbarWidth = getScrollbarWidth;
|
|
@@ -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 getScrollbarWidth = () => window.innerWidth - document.body.clientWidth;
|
|
13
2
|
export {
|
|
14
3
|
getScrollbarWidth
|
|
@@ -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 store = require("store2");
|
|
15
4
|
const getSessionStorage = (key) => {
|
|
@@ -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 store from "store2";
|
|
13
2
|
const getSessionStorage = (key) => {
|
|
14
3
|
const value = store.session.get(key);
|
|
@@ -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 runes2 = require("runes2");
|
|
15
4
|
const getStringLength = (str) => runes2.runes(str).length;
|
|
@@ -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 { runes } from "runes2";
|
|
13
2
|
const getStringLength = (str) => runes(str).length;
|
|
14
3
|
export {
|
|
@@ -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 getStylePropertyValue = (key) => getComputedStyle(document.documentElement).getPropertyValue(key);
|
|
15
4
|
exports.getStylePropertyValue = getStylePropertyValue;
|
|
@@ -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 getStylePropertyValue = (key) => getComputedStyle(document.documentElement).getPropertyValue(key);
|
|
13
2
|
export {
|
|
14
3
|
getStylePropertyValue
|
|
@@ -1,16 +1,5 @@
|
|
|
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 getStylePropertyValue = require("./getStylePropertyValue.cjs.js");
|
|
15
|
-
const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue.getStylePropertyValue(key)) || 0;
|
|
4
|
+
const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue.getStylePropertyValue(key), 10) || 0;
|
|
16
5
|
exports.getStylePropertyValueToNumber = getStylePropertyValueToNumber;
|
|
@@ -1,16 +1,5 @@
|
|
|
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 { getStylePropertyValue } from "./getStylePropertyValue.es.js";
|
|
13
|
-
const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue(key)) || 0;
|
|
2
|
+
const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue(key), 10) || 0;
|
|
14
3
|
export {
|
|
15
4
|
getStylePropertyValueToNumber
|
|
16
5
|
};
|
|
@@ -1,18 +1,7 @@
|
|
|
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
|
-
const UAParser = require("ua-parser-js");
|
|
15
3
|
const isTouchSupport = require("../is/isTouchSupport.cjs.js");
|
|
4
|
+
const UAParser = require("ua-parser-js");
|
|
16
5
|
const getUaData = () => {
|
|
17
6
|
const parser = new UAParser();
|
|
18
7
|
const result = parser.getResult();
|
|
@@ -1,16 +1,5 @@
|
|
|
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
|
-
import UAParser from "ua-parser-js";
|
|
13
1
|
import { isTouchSupport } from "../is/isTouchSupport.es.js";
|
|
2
|
+
import UAParser from "ua-parser-js";
|
|
14
3
|
const getUaData = () => {
|
|
15
4
|
const parser = new UAParser();
|
|
16
5
|
const result = parser.getResult();
|
|
@@ -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("../config/getConfig.cjs.js");
|
|
15
4
|
const checkDeviceSize = () => {
|