@studiometa/js-toolkit 3.7.0 → 3.8.1-beta.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/Base/index.d.ts +1 -1
- package/Base/index.js +4 -1
- package/Base/index.js.map +2 -2
- package/decorators/index.d.ts +15 -15
- package/decorators/index.js +50 -15
- package/decorators/index.js.map +2 -2
- package/decorators/withScrolledInView/index.d.ts +2 -2
- package/decorators/withScrolledInView/index.js +6 -2
- package/decorators/withScrolledInView/index.js.map +2 -2
- package/helpers/index.d.ts +13 -12
- package/helpers/index.js +28 -13
- package/helpers/index.js.map +2 -2
- package/helpers/registerComponent.d.ts +17 -3
- package/helpers/registerComponent.js +22 -3
- package/helpers/registerComponent.js.map +2 -2
- package/helpers/registerComponents.d.ts +22 -0
- package/helpers/registerComponents.js +21 -0
- package/helpers/registerComponents.js.map +7 -0
- package/index.d.ts +5 -5
- package/index.js +113 -6
- package/index.js.map +2 -2
- package/package.json +1 -1
- package/services/index.d.ts +9 -9
- package/services/index.js +52 -9
- package/services/index.js.map +2 -2
- package/utils/css/index.d.ts +1 -1
- package/utils/css/index.js +4 -1
- package/utils/css/index.js.map +2 -2
- package/utils/dom/index.d.ts +2 -2
- package/utils/dom/index.js +7 -2
- package/utils/dom/index.js.map +2 -2
- package/utils/index.d.ts +16 -16
- package/utils/index.js +249 -17
- package/utils/index.js.map +2 -2
- package/utils/math/index.d.ts +2 -2
- package/utils/math/index.js +49 -2
- package/utils/math/index.js.map +2 -2
- package/utils/storage.d.ts +1 -1
- package/utils/storage.js +36 -1
- package/utils/storage.js.map +2 -2
- package/utils/string/index.d.ts +13 -13
- package/utils/string/index.js +33 -13
- package/utils/string/index.js.map +2 -2
package/services/index.js
CHANGED
|
@@ -1,10 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { AbstractService } from "./AbstractService.js";
|
|
2
|
+
import {
|
|
3
|
+
DragService,
|
|
4
|
+
useDrag
|
|
5
|
+
} from "./DragService.js";
|
|
6
|
+
import {
|
|
7
|
+
KeyService,
|
|
8
|
+
useKey
|
|
9
|
+
} from "./KeyService.js";
|
|
10
|
+
import {
|
|
11
|
+
LoadService,
|
|
12
|
+
useLoad
|
|
13
|
+
} from "./LoadService.js";
|
|
14
|
+
import {
|
|
15
|
+
MutationService,
|
|
16
|
+
useMutation
|
|
17
|
+
} from "./MutationService.js";
|
|
18
|
+
import {
|
|
19
|
+
PointerService,
|
|
20
|
+
usePointer
|
|
21
|
+
} from "./PointerService.js";
|
|
22
|
+
import {
|
|
23
|
+
RafService,
|
|
24
|
+
useRaf
|
|
25
|
+
} from "./RafService.js";
|
|
26
|
+
import {
|
|
27
|
+
ResizeService,
|
|
28
|
+
useResize
|
|
29
|
+
} from "./ResizeService.js";
|
|
30
|
+
import {
|
|
31
|
+
ScrollService,
|
|
32
|
+
useScroll
|
|
33
|
+
} from "./ScrollService.js";
|
|
34
|
+
export {
|
|
35
|
+
AbstractService,
|
|
36
|
+
DragService,
|
|
37
|
+
KeyService,
|
|
38
|
+
LoadService,
|
|
39
|
+
MutationService,
|
|
40
|
+
PointerService,
|
|
41
|
+
RafService,
|
|
42
|
+
ResizeService,
|
|
43
|
+
ScrollService,
|
|
44
|
+
useDrag,
|
|
45
|
+
useKey,
|
|
46
|
+
useLoad,
|
|
47
|
+
useMutation,
|
|
48
|
+
usePointer,
|
|
49
|
+
useRaf,
|
|
50
|
+
useResize,
|
|
51
|
+
useScroll
|
|
52
|
+
};
|
|
10
53
|
//# sourceMappingURL=index.js.map
|
package/services/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../packages/js-toolkit/services/index.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export { AbstractService, type ServiceConfig, type ServiceInterface } from './AbstractService.js';\nexport {\n DragService,\n useDrag,\n type DragServiceInterface,\n type DragServiceOptions,\n type DragServiceProps,\n} from './DragService.js';\nexport {\n KeyService,\n useKey,\n type KeyServiceInterface,\n type KeyServiceProps,\n} from './KeyService.js';\nexport {\n LoadService,\n useLoad,\n type LoadServiceInterface,\n type LoadServiceProps,\n} from './LoadService.js';\nexport {\n MutationService,\n useMutation,\n type MutationServiceInterface,\n type MutationServiceOptions,\n type MutationServiceProps,\n} from './MutationService.js';\nexport {\n PointerService,\n usePointer,\n type PointerServiceInterface,\n type PointerServiceProps,\n} from './PointerService.js';\nexport {\n RafService,\n useRaf,\n type RafServiceInterface,\n type RafServiceProps,\n} from './RafService.js';\nexport {\n ResizeService,\n useResize,\n type ResizeServiceInterface,\n type ResizeServiceProps,\n} from './ResizeService.js';\nexport {\n ScrollService,\n useScroll,\n type ScrollServiceInterface,\n type ScrollServiceProps,\n} from './ScrollService.js';\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,uBAAkE;AAC3E;AAAA,EACE;AAAA,EACA;AAAA,OAIK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAIK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/utils/css/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { animate, type Animate, type AnimateOptions, type CSSCustomPropertyName, type Keyframe, type NormalizedKeyframe, } from './animate.js';
|
|
2
2
|
export { add as addClass, remove as removeClass, toggle as toggleClass } from './classes.js';
|
|
3
3
|
export { add as addStyle, remove as removeStyle } from './styles.js';
|
|
4
4
|
export { getOffsetSizes } from './getOffsetSizes.js';
|
package/utils/css/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import {
|
|
2
|
+
animate
|
|
3
|
+
} from "./animate.js";
|
|
2
4
|
import { add, remove, toggle } from "./classes.js";
|
|
3
5
|
import { add as add2, remove as remove2 } from "./styles.js";
|
|
4
6
|
import { getOffsetSizes } from "./getOffsetSizes.js";
|
|
@@ -8,6 +10,7 @@ import { transition } from "./transition.js";
|
|
|
8
10
|
export {
|
|
9
11
|
add as addClass,
|
|
10
12
|
add2 as addStyle,
|
|
13
|
+
animate,
|
|
11
14
|
getOffsetSizes,
|
|
12
15
|
matrix,
|
|
13
16
|
remove as removeClass,
|
package/utils/css/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../packages/js-toolkit/utils/css/index.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export {\n animate,\n type Animate,\n type AnimateOptions,\n type CSSCustomPropertyName,\n type Keyframe,\n type NormalizedKeyframe,\n} from './animate.js';\nexport { add as addClass, remove as removeClass, toggle as toggleClass } from './classes.js';\nexport { add as addStyle, remove as removeStyle } from './styles.js';\nexport { getOffsetSizes } from './getOffsetSizes.js';\nexport { matrix } from './matrix.js';\nexport { transform } from './transform.js';\nexport { transition } from './transition.js';\nexport type { TransformProps } from './transform.js';\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA,EACE;AAAA,OAMK;AACP,SAAgB,KAAoB,QAAuB,cAAmB;AAC9E,SAAgB,OAAPA,MAA2B,UAAVC,eAA6B;AACvD,SAAS,sBAAsB;AAC/B,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;",
|
|
6
6
|
"names": ["add", "remove"]
|
|
7
7
|
}
|
package/utils/dom/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { getAncestorWhere, getAncestorWhereUntil } from './ancestors.js';
|
|
2
|
+
export { createElement } from './createElement.js';
|
package/utils/dom/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { getAncestorWhere, getAncestorWhereUntil } from "./ancestors.js";
|
|
2
|
+
import { createElement } from "./createElement.js";
|
|
3
|
+
export {
|
|
4
|
+
createElement,
|
|
5
|
+
getAncestorWhere,
|
|
6
|
+
getAncestorWhereUntil
|
|
7
|
+
};
|
|
3
8
|
//# sourceMappingURL=index.js.map
|
package/utils/dom/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../packages/js-toolkit/utils/dom/index.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export { getAncestorWhere, getAncestorWhereUntil } from './ancestors.js';\nexport { createElement } from './createElement.js';\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,kBAAkB,6BAA6B;AACxD,SAAS,qBAAqB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { debounce } from './debounce.js';
|
|
2
|
-
export
|
|
2
|
+
export { saveActiveElement, trapFocus, untrapFocus } from './trapFocus.js';
|
|
3
3
|
export { keyCodes } from './keyCodes.js';
|
|
4
4
|
export { memoize } from './memoize.js';
|
|
5
5
|
export { nextFrame } from './nextFrame.js';
|
|
@@ -8,22 +8,22 @@ export { nextMicrotask } from './nextMicrotask.js';
|
|
|
8
8
|
export { throttle } from './throttle.js';
|
|
9
9
|
export { scrollTo } from './scrollTo.js';
|
|
10
10
|
export { getComponentResolver } from './getComponentResolver.js';
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
11
|
+
export { isArray, isBoolean, isDefined, isDev, isEmpty, isEmptyString, isFunction, isNull, isNumber, isObject, isString, } from './is.js';
|
|
12
|
+
export { hasWindow } from './has.js';
|
|
13
|
+
export { addClass, addStyle, animate, getOffsetSizes, matrix, removeClass, removeStyle, toggleClass, transform, transition, type Animate, type AnimateOptions, type CSSCustomPropertyName, type Keyframe, type NormalizedKeyframe, type TransformProps, } from './css/index.js';
|
|
14
14
|
export { objectToURLSearchParams, push as historyPush, replace as historyReplace, } from './history.js';
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
15
|
+
export { boundingRectToCircle, collideCircleCircle, collideCircleRect, collidePointCircle, collidePointRect, collideRectRect, } from './collide/index.js';
|
|
16
|
+
export { clamp, clamp01, createEaseInOut, createEaseOut, createRange, damp, ease, easeInCirc, easeInCubic, easeInExpo, easeInOutCirc, easeInOutCubic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInQuad, easeInQuart, easeInQuint, easeInSine, easeLinear, easeOutCirc, easeOutCubic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easeOutSine, fold, inertiaFinalValue, lerp, map, mean, round, smoothTo, spring, wrap, type EasingFunction, } from './math/index.js';
|
|
17
|
+
export { camelCase, dashCase, endsWith, lowerCase, pascalCase, snakeCase, startsWith, upperCase, withLeadingCharacters, withLeadingSlash, withTrailingCharacters, withTrailingSlash, withoutLeadingCharacters, withoutLeadingCharactersRecursive, withoutLeadingSlash, withoutTrailingCharacters, withoutTrailingCharactersRecursive, withoutTrailingSlash, } from './string/index.js';
|
|
18
|
+
export { domScheduler, useScheduler } from './scheduler.js';
|
|
19
|
+
export { noop, noopValue } from './noop.js';
|
|
20
20
|
export { tween } from './tween.js';
|
|
21
21
|
export { Queue } from './Queue.js';
|
|
22
22
|
export { SmartQueue } from './SmartQueue.js';
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
23
|
+
export { createElement, getAncestorWhere, getAncestorWhereUntil } from './dom/index.js';
|
|
24
|
+
export { wait } from './wait.js';
|
|
25
|
+
export { random, randomInt, randomItem } from './random.js';
|
|
26
|
+
export { memo } from './memo.js';
|
|
27
|
+
export { loadElement, loadIframe, loadImage, loadLink, loadScript, type LoadElementsOptions, type LoadElementsReturnType, type LoadableElements, type LoadableElementsNames, } from './loadElement.js';
|
|
28
|
+
export { cache } from './cache.js';
|
|
29
|
+
export { createLocalStorage, createLocalStorageProvider, createMemoryStorageProvider, createNoopProvider, createSessionStorage, createSessionStorageProvider, createStorage, createUrlSearchParamsInHashProvider, createUrlSearchParamsInHashStorage, createUrlSearchParamsProvider, createUrlSearchParamsStorage, localStorageProvider, memoryStorageProvider, sessionStorageProvider, urlSearchParamsInHashProvider, urlSearchParamsProvider, type StorageInstance, type StorageOptions, type StorageProvider, type StorageSerializer, type UrlProviderOptions, } from './storage.js';
|
package/utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { debounce } from "./debounce.js";
|
|
2
|
-
|
|
2
|
+
import { saveActiveElement, trapFocus, untrapFocus } from "./trapFocus.js";
|
|
3
3
|
import { keyCodes } from "./keyCodes.js";
|
|
4
4
|
import { memoize } from "./memoize.js";
|
|
5
5
|
import { nextFrame } from "./nextFrame.js";
|
|
@@ -8,44 +8,276 @@ import { nextMicrotask } from "./nextMicrotask.js";
|
|
|
8
8
|
import { throttle } from "./throttle.js";
|
|
9
9
|
import { scrollTo } from "./scrollTo.js";
|
|
10
10
|
import { getComponentResolver } from "./getComponentResolver.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
import {
|
|
12
|
+
isArray,
|
|
13
|
+
isBoolean,
|
|
14
|
+
isDefined,
|
|
15
|
+
isDev,
|
|
16
|
+
isEmpty,
|
|
17
|
+
isEmptyString,
|
|
18
|
+
isFunction,
|
|
19
|
+
isNull,
|
|
20
|
+
isNumber,
|
|
21
|
+
isObject,
|
|
22
|
+
isString
|
|
23
|
+
} from "./is.js";
|
|
24
|
+
import { hasWindow } from "./has.js";
|
|
25
|
+
import {
|
|
26
|
+
addClass,
|
|
27
|
+
addStyle,
|
|
28
|
+
animate,
|
|
29
|
+
getOffsetSizes,
|
|
30
|
+
matrix,
|
|
31
|
+
removeClass,
|
|
32
|
+
removeStyle,
|
|
33
|
+
toggleClass,
|
|
34
|
+
transform,
|
|
35
|
+
transition
|
|
36
|
+
} from "./css/index.js";
|
|
14
37
|
import {
|
|
15
38
|
objectToURLSearchParams,
|
|
16
39
|
push,
|
|
17
40
|
replace
|
|
18
41
|
} from "./history.js";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
42
|
+
import {
|
|
43
|
+
boundingRectToCircle,
|
|
44
|
+
collideCircleCircle,
|
|
45
|
+
collideCircleRect,
|
|
46
|
+
collidePointCircle,
|
|
47
|
+
collidePointRect,
|
|
48
|
+
collideRectRect
|
|
49
|
+
} from "./collide/index.js";
|
|
50
|
+
import {
|
|
51
|
+
clamp,
|
|
52
|
+
clamp01,
|
|
53
|
+
createEaseInOut,
|
|
54
|
+
createEaseOut,
|
|
55
|
+
createRange,
|
|
56
|
+
damp,
|
|
57
|
+
ease,
|
|
58
|
+
easeInCirc,
|
|
59
|
+
easeInCubic,
|
|
60
|
+
easeInExpo,
|
|
61
|
+
easeInOutCirc,
|
|
62
|
+
easeInOutCubic,
|
|
63
|
+
easeInOutExpo,
|
|
64
|
+
easeInOutQuad,
|
|
65
|
+
easeInOutQuart,
|
|
66
|
+
easeInOutQuint,
|
|
67
|
+
easeInOutSine,
|
|
68
|
+
easeInQuad,
|
|
69
|
+
easeInQuart,
|
|
70
|
+
easeInQuint,
|
|
71
|
+
easeInSine,
|
|
72
|
+
easeLinear,
|
|
73
|
+
easeOutCirc,
|
|
74
|
+
easeOutCubic,
|
|
75
|
+
easeOutExpo,
|
|
76
|
+
easeOutQuad,
|
|
77
|
+
easeOutQuart,
|
|
78
|
+
easeOutQuint,
|
|
79
|
+
easeOutSine,
|
|
80
|
+
fold,
|
|
81
|
+
inertiaFinalValue,
|
|
82
|
+
lerp,
|
|
83
|
+
map,
|
|
84
|
+
mean,
|
|
85
|
+
round,
|
|
86
|
+
smoothTo,
|
|
87
|
+
spring,
|
|
88
|
+
wrap
|
|
89
|
+
} from "./math/index.js";
|
|
90
|
+
import {
|
|
91
|
+
camelCase,
|
|
92
|
+
dashCase,
|
|
93
|
+
endsWith,
|
|
94
|
+
lowerCase,
|
|
95
|
+
pascalCase,
|
|
96
|
+
snakeCase,
|
|
97
|
+
startsWith,
|
|
98
|
+
upperCase,
|
|
99
|
+
withLeadingCharacters,
|
|
100
|
+
withLeadingSlash,
|
|
101
|
+
withTrailingCharacters,
|
|
102
|
+
withTrailingSlash,
|
|
103
|
+
withoutLeadingCharacters,
|
|
104
|
+
withoutLeadingCharactersRecursive,
|
|
105
|
+
withoutLeadingSlash,
|
|
106
|
+
withoutTrailingCharacters,
|
|
107
|
+
withoutTrailingCharactersRecursive,
|
|
108
|
+
withoutTrailingSlash
|
|
109
|
+
} from "./string/index.js";
|
|
110
|
+
import { domScheduler, useScheduler } from "./scheduler.js";
|
|
111
|
+
import { noop, noopValue } from "./noop.js";
|
|
24
112
|
import { tween } from "./tween.js";
|
|
25
113
|
import { Queue } from "./Queue.js";
|
|
26
114
|
import { SmartQueue } from "./SmartQueue.js";
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
115
|
+
import { createElement, getAncestorWhere, getAncestorWhereUntil } from "./dom/index.js";
|
|
116
|
+
import { wait } from "./wait.js";
|
|
117
|
+
import { random, randomInt, randomItem } from "./random.js";
|
|
118
|
+
import { memo } from "./memo.js";
|
|
119
|
+
import {
|
|
120
|
+
loadElement,
|
|
121
|
+
loadIframe,
|
|
122
|
+
loadImage,
|
|
123
|
+
loadLink,
|
|
124
|
+
loadScript
|
|
125
|
+
} from "./loadElement.js";
|
|
126
|
+
import { cache } from "./cache.js";
|
|
127
|
+
import {
|
|
128
|
+
createLocalStorage,
|
|
129
|
+
createLocalStorageProvider,
|
|
130
|
+
createMemoryStorageProvider,
|
|
131
|
+
createNoopProvider,
|
|
132
|
+
createSessionStorage,
|
|
133
|
+
createSessionStorageProvider,
|
|
134
|
+
createStorage,
|
|
135
|
+
createUrlSearchParamsInHashProvider,
|
|
136
|
+
createUrlSearchParamsInHashStorage,
|
|
137
|
+
createUrlSearchParamsProvider,
|
|
138
|
+
createUrlSearchParamsStorage,
|
|
139
|
+
localStorageProvider,
|
|
140
|
+
memoryStorageProvider,
|
|
141
|
+
sessionStorageProvider,
|
|
142
|
+
urlSearchParamsInHashProvider,
|
|
143
|
+
urlSearchParamsProvider
|
|
144
|
+
} from "./storage.js";
|
|
34
145
|
export {
|
|
35
146
|
Queue,
|
|
36
147
|
SmartQueue,
|
|
148
|
+
addClass,
|
|
149
|
+
addStyle,
|
|
150
|
+
animate,
|
|
151
|
+
boundingRectToCircle,
|
|
152
|
+
cache,
|
|
153
|
+
camelCase,
|
|
154
|
+
clamp,
|
|
155
|
+
clamp01,
|
|
156
|
+
collideCircleCircle,
|
|
157
|
+
collideCircleRect,
|
|
158
|
+
collidePointCircle,
|
|
159
|
+
collidePointRect,
|
|
160
|
+
collideRectRect,
|
|
161
|
+
createEaseInOut,
|
|
162
|
+
createEaseOut,
|
|
163
|
+
createElement,
|
|
164
|
+
createLocalStorage,
|
|
165
|
+
createLocalStorageProvider,
|
|
166
|
+
createMemoryStorageProvider,
|
|
167
|
+
createNoopProvider,
|
|
168
|
+
createRange,
|
|
169
|
+
createSessionStorage,
|
|
170
|
+
createSessionStorageProvider,
|
|
171
|
+
createStorage,
|
|
172
|
+
createUrlSearchParamsInHashProvider,
|
|
173
|
+
createUrlSearchParamsInHashStorage,
|
|
174
|
+
createUrlSearchParamsProvider,
|
|
175
|
+
createUrlSearchParamsStorage,
|
|
176
|
+
damp,
|
|
177
|
+
dashCase,
|
|
37
178
|
debounce,
|
|
179
|
+
domScheduler,
|
|
180
|
+
ease,
|
|
181
|
+
easeInCirc,
|
|
182
|
+
easeInCubic,
|
|
183
|
+
easeInExpo,
|
|
184
|
+
easeInOutCirc,
|
|
185
|
+
easeInOutCubic,
|
|
186
|
+
easeInOutExpo,
|
|
187
|
+
easeInOutQuad,
|
|
188
|
+
easeInOutQuart,
|
|
189
|
+
easeInOutQuint,
|
|
190
|
+
easeInOutSine,
|
|
191
|
+
easeInQuad,
|
|
192
|
+
easeInQuart,
|
|
193
|
+
easeInQuint,
|
|
194
|
+
easeInSine,
|
|
195
|
+
easeLinear,
|
|
196
|
+
easeOutCirc,
|
|
197
|
+
easeOutCubic,
|
|
198
|
+
easeOutExpo,
|
|
199
|
+
easeOutQuad,
|
|
200
|
+
easeOutQuart,
|
|
201
|
+
easeOutQuint,
|
|
202
|
+
easeOutSine,
|
|
203
|
+
endsWith,
|
|
204
|
+
fold,
|
|
205
|
+
getAncestorWhere,
|
|
206
|
+
getAncestorWhereUntil,
|
|
38
207
|
getComponentResolver,
|
|
208
|
+
getOffsetSizes,
|
|
209
|
+
hasWindow,
|
|
39
210
|
push as historyPush,
|
|
40
211
|
replace as historyReplace,
|
|
212
|
+
inertiaFinalValue,
|
|
213
|
+
isArray,
|
|
214
|
+
isBoolean,
|
|
215
|
+
isDefined,
|
|
216
|
+
isDev,
|
|
217
|
+
isEmpty,
|
|
218
|
+
isEmptyString,
|
|
219
|
+
isFunction,
|
|
220
|
+
isNull,
|
|
221
|
+
isNumber,
|
|
222
|
+
isObject,
|
|
223
|
+
isString,
|
|
41
224
|
keyCodes,
|
|
225
|
+
lerp,
|
|
226
|
+
loadElement,
|
|
227
|
+
loadIframe,
|
|
228
|
+
loadImage,
|
|
229
|
+
loadLink,
|
|
230
|
+
loadScript,
|
|
231
|
+
localStorageProvider,
|
|
232
|
+
lowerCase,
|
|
233
|
+
map,
|
|
234
|
+
matrix,
|
|
235
|
+
mean,
|
|
236
|
+
memo,
|
|
42
237
|
memoize,
|
|
238
|
+
memoryStorageProvider,
|
|
43
239
|
nextFrame,
|
|
44
240
|
nextMicrotask,
|
|
45
241
|
nextTick,
|
|
242
|
+
noop,
|
|
243
|
+
noopValue,
|
|
46
244
|
objectToURLSearchParams,
|
|
245
|
+
pascalCase,
|
|
246
|
+
random,
|
|
247
|
+
randomInt,
|
|
248
|
+
randomItem,
|
|
249
|
+
removeClass,
|
|
250
|
+
removeStyle,
|
|
251
|
+
round,
|
|
252
|
+
saveActiveElement,
|
|
47
253
|
scrollTo,
|
|
254
|
+
sessionStorageProvider,
|
|
255
|
+
smoothTo,
|
|
256
|
+
snakeCase,
|
|
257
|
+
spring,
|
|
258
|
+
startsWith,
|
|
48
259
|
throttle,
|
|
49
|
-
|
|
260
|
+
toggleClass,
|
|
261
|
+
transform,
|
|
262
|
+
transition,
|
|
263
|
+
trapFocus,
|
|
264
|
+
tween,
|
|
265
|
+
untrapFocus,
|
|
266
|
+
upperCase,
|
|
267
|
+
urlSearchParamsInHashProvider,
|
|
268
|
+
urlSearchParamsProvider,
|
|
269
|
+
useScheduler,
|
|
270
|
+
wait,
|
|
271
|
+
withLeadingCharacters,
|
|
272
|
+
withLeadingSlash,
|
|
273
|
+
withTrailingCharacters,
|
|
274
|
+
withTrailingSlash,
|
|
275
|
+
withoutLeadingCharacters,
|
|
276
|
+
withoutLeadingCharactersRecursive,
|
|
277
|
+
withoutLeadingSlash,
|
|
278
|
+
withoutTrailingCharacters,
|
|
279
|
+
withoutTrailingCharactersRecursive,
|
|
280
|
+
withoutTrailingSlash,
|
|
281
|
+
wrap
|
|
50
282
|
};
|
|
51
283
|
//# sourceMappingURL=index.js.map
|
package/utils/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../packages/js-toolkit/utils/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { debounce } from './debounce.js';\nexport
|
|
5
|
-
"mappings": "AAAA,SAAS,gBAAgB;AACzB,
|
|
4
|
+
"sourcesContent": ["export { debounce } from './debounce.js';\nexport { saveActiveElement, trapFocus, untrapFocus } from './trapFocus.js';\nexport { keyCodes } from './keyCodes.js';\nexport { memoize } from './memoize.js';\nexport { nextFrame } from './nextFrame.js';\nexport { nextTick } from './nextTick.js';\nexport { nextMicrotask } from './nextMicrotask.js';\nexport { throttle } from './throttle.js';\nexport { scrollTo } from './scrollTo.js';\nexport { getComponentResolver } from './getComponentResolver.js';\nexport {\n isArray,\n isBoolean,\n isDefined,\n isDev,\n isEmpty,\n isEmptyString,\n isFunction,\n isNull,\n isNumber,\n isObject,\n isString,\n} from './is.js';\nexport { hasWindow } from './has.js';\nexport {\n addClass,\n addStyle,\n animate,\n getOffsetSizes,\n matrix,\n removeClass,\n removeStyle,\n toggleClass,\n transform,\n transition,\n type Animate,\n type AnimateOptions,\n type CSSCustomPropertyName,\n type Keyframe,\n type NormalizedKeyframe,\n type TransformProps,\n} from './css/index.js';\nexport {\n objectToURLSearchParams,\n push as historyPush,\n replace as historyReplace,\n} from './history.js';\nexport {\n boundingRectToCircle,\n collideCircleCircle,\n collideCircleRect,\n collidePointCircle,\n collidePointRect,\n collideRectRect,\n} from './collide/index.js';\nexport {\n clamp,\n clamp01,\n createEaseInOut,\n createEaseOut,\n createRange,\n damp,\n ease,\n easeInCirc,\n easeInCubic,\n easeInExpo,\n easeInOutCirc,\n easeInOutCubic,\n easeInOutExpo,\n easeInOutQuad,\n easeInOutQuart,\n easeInOutQuint,\n easeInOutSine,\n easeInQuad,\n easeInQuart,\n easeInQuint,\n easeInSine,\n easeLinear,\n easeOutCirc,\n easeOutCubic,\n easeOutExpo,\n easeOutQuad,\n easeOutQuart,\n easeOutQuint,\n easeOutSine,\n fold,\n inertiaFinalValue,\n lerp,\n map,\n mean,\n round,\n smoothTo,\n spring,\n wrap,\n type EasingFunction,\n} from './math/index.js';\nexport {\n camelCase,\n dashCase,\n endsWith,\n lowerCase,\n pascalCase,\n snakeCase,\n startsWith,\n upperCase,\n withLeadingCharacters,\n withLeadingSlash,\n withTrailingCharacters,\n withTrailingSlash,\n withoutLeadingCharacters,\n withoutLeadingCharactersRecursive,\n withoutLeadingSlash,\n withoutTrailingCharacters,\n withoutTrailingCharactersRecursive,\n withoutTrailingSlash,\n} from './string/index.js';\nexport { domScheduler, useScheduler } from './scheduler.js';\nexport { noop, noopValue } from './noop.js';\nexport { tween } from './tween.js';\nexport { Queue } from './Queue.js';\nexport { SmartQueue } from './SmartQueue.js';\nexport { createElement, getAncestorWhere, getAncestorWhereUntil } from './dom/index.js';\nexport { wait } from './wait.js';\nexport { random, randomInt, randomItem } from './random.js';\nexport { memo } from './memo.js';\nexport {\n loadElement,\n loadIframe,\n loadImage,\n loadLink,\n loadScript,\n type LoadElementsOptions,\n type LoadElementsReturnType,\n type LoadableElements,\n type LoadableElementsNames,\n} from './loadElement.js';\nexport { cache } from './cache.js';\nexport {\n createLocalStorage,\n createLocalStorageProvider,\n createMemoryStorageProvider,\n createNoopProvider,\n createSessionStorage,\n createSessionStorageProvider,\n createStorage,\n createUrlSearchParamsInHashProvider,\n createUrlSearchParamsInHashStorage,\n createUrlSearchParamsProvider,\n createUrlSearchParamsStorage,\n localStorageProvider,\n memoryStorageProvider,\n sessionStorageProvider,\n urlSearchParamsInHashProvider,\n urlSearchParamsProvider,\n type StorageInstance,\n type StorageOptions,\n type StorageProvider,\n type StorageSerializer,\n type UrlProviderOptions,\n} from './storage.js';\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,mBAAmB,WAAW,mBAAmB;AAC1D,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AACzB,SAAS,4BAA4B;AACrC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,iBAAiB;AAC1B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AACP;AAAA,EACE;AAAA,EACQ;AAAA,EACG;AAAA,OACN;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAAc,oBAAoB;AAC3C,SAAS,MAAM,iBAAiB;AAChC,SAAS,aAAa;AACtB,SAAS,aAAa;AACtB,SAAS,kBAAkB;AAC3B,SAAS,eAAe,kBAAkB,6BAA6B;AACvE,SAAS,YAAY;AACrB,SAAS,QAAQ,WAAW,kBAAkB;AAC9C,SAAS,YAAY;AACrB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP,SAAS,aAAa;AACtB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/utils/math/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as ease from './ease.js';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export { createEaseInOut, createEaseOut, type EasingFunction } from './createEases.js';
|
|
3
|
+
export { easeInCirc, easeInCubic, easeInExpo, easeInOutCirc, easeInOutCubic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInQuad, easeInQuart, easeInQuint, easeInSine, easeLinear, easeOutCirc, easeOutCubic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easeOutSine, } from './ease.js';
|
|
4
4
|
export { createRange } from './createRange.js';
|
|
5
5
|
export { clamp } from './clamp.js';
|
|
6
6
|
export { clamp01 } from './clamp01.js';
|
package/utils/math/index.js
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import * as ease from "./ease.js";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { createEaseInOut, createEaseOut } from "./createEases.js";
|
|
3
|
+
import {
|
|
4
|
+
easeInCirc,
|
|
5
|
+
easeInCubic,
|
|
6
|
+
easeInExpo,
|
|
7
|
+
easeInOutCirc,
|
|
8
|
+
easeInOutCubic,
|
|
9
|
+
easeInOutExpo,
|
|
10
|
+
easeInOutQuad,
|
|
11
|
+
easeInOutQuart,
|
|
12
|
+
easeInOutQuint,
|
|
13
|
+
easeInOutSine,
|
|
14
|
+
easeInQuad,
|
|
15
|
+
easeInQuart,
|
|
16
|
+
easeInQuint,
|
|
17
|
+
easeInSine,
|
|
18
|
+
easeLinear,
|
|
19
|
+
easeOutCirc,
|
|
20
|
+
easeOutCubic,
|
|
21
|
+
easeOutExpo,
|
|
22
|
+
easeOutQuad,
|
|
23
|
+
easeOutQuart,
|
|
24
|
+
easeOutQuint,
|
|
25
|
+
easeOutSine
|
|
26
|
+
} from "./ease.js";
|
|
4
27
|
import { createRange } from "./createRange.js";
|
|
5
28
|
import { clamp } from "./clamp.js";
|
|
6
29
|
import { clamp01 } from "./clamp01.js";
|
|
@@ -17,9 +40,33 @@ import { wrap } from "./wrap.js";
|
|
|
17
40
|
export {
|
|
18
41
|
clamp,
|
|
19
42
|
clamp01,
|
|
43
|
+
createEaseInOut,
|
|
44
|
+
createEaseOut,
|
|
20
45
|
createRange,
|
|
21
46
|
damp,
|
|
22
47
|
ease,
|
|
48
|
+
easeInCirc,
|
|
49
|
+
easeInCubic,
|
|
50
|
+
easeInExpo,
|
|
51
|
+
easeInOutCirc,
|
|
52
|
+
easeInOutCubic,
|
|
53
|
+
easeInOutExpo,
|
|
54
|
+
easeInOutQuad,
|
|
55
|
+
easeInOutQuart,
|
|
56
|
+
easeInOutQuint,
|
|
57
|
+
easeInOutSine,
|
|
58
|
+
easeInQuad,
|
|
59
|
+
easeInQuart,
|
|
60
|
+
easeInQuint,
|
|
61
|
+
easeInSine,
|
|
62
|
+
easeLinear,
|
|
63
|
+
easeOutCirc,
|
|
64
|
+
easeOutCubic,
|
|
65
|
+
easeOutExpo,
|
|
66
|
+
easeOutQuad,
|
|
67
|
+
easeOutQuart,
|
|
68
|
+
easeOutQuint,
|
|
69
|
+
easeOutSine,
|
|
23
70
|
fold,
|
|
24
71
|
inertiaFinalValue,
|
|
25
72
|
lerp,
|
package/utils/math/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../packages/js-toolkit/utils/math/index.ts"],
|
|
4
|
-
"sourcesContent": ["export * as ease from './ease.js';\nexport
|
|
5
|
-
"mappings": "AAAA,YAAY,UAAU;AACtB,
|
|
4
|
+
"sourcesContent": ["export * as ease from './ease.js';\nexport { createEaseInOut, createEaseOut, type EasingFunction } from './createEases.js';\nexport {\n easeInCirc,\n easeInCubic,\n easeInExpo,\n easeInOutCirc,\n easeInOutCubic,\n easeInOutExpo,\n easeInOutQuad,\n easeInOutQuart,\n easeInOutQuint,\n easeInOutSine,\n easeInQuad,\n easeInQuart,\n easeInQuint,\n easeInSine,\n easeLinear,\n easeOutCirc,\n easeOutCubic,\n easeOutExpo,\n easeOutQuad,\n easeOutQuart,\n easeOutQuint,\n easeOutSine,\n} from './ease.js';\nexport { createRange } from './createRange.js';\nexport { clamp } from './clamp.js';\nexport { clamp01 } from './clamp01.js';\nexport { damp } from './damp.js';\nexport { fold } from './fold.js';\nexport { spring } from './spring.js';\nexport { inertiaFinalValue } from './inertiaFinalValue.js';\nexport { lerp } from './lerp.js';\nexport { map } from './map.js';\nexport { round } from './round.js';\nexport { mean } from './mean.js';\nexport { smoothTo } from './smoothTo.js';\nexport { wrap } from './wrap.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,UAAU;AACtB,SAAS,iBAAiB,qBAA0C;AACpE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,mBAAmB;AAC5B,SAAS,aAAa;AACtB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,SAAS,yBAAyB;AAClC,SAAS,YAAY;AACrB,SAAS,WAAW;AACpB,SAAS,aAAa;AACtB,SAAS,YAAY;AACrB,SAAS,gBAAgB;AACzB,SAAS,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/utils/storage.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { createLocalStorage, createLocalStorageProvider, createMemoryStorageProvider, createNoopProvider, createSessionStorage, createSessionStorageProvider, createStorage, createUrlSearchParamsInHashProvider, createUrlSearchParamsInHashStorage, createUrlSearchParamsProvider, createUrlSearchParamsStorage, localStorageProvider, memoryStorageProvider, sessionStorageProvider, urlSearchParamsInHashProvider, urlSearchParamsProvider, type StorageInstance, type StorageOptions, type StorageProvider, type StorageSerializer, type UrlProviderOptions, } from './storage/index.js';
|
package/utils/storage.js
CHANGED
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
import {
|
|
2
|
+
createLocalStorage,
|
|
3
|
+
createLocalStorageProvider,
|
|
4
|
+
createMemoryStorageProvider,
|
|
5
|
+
createNoopProvider,
|
|
6
|
+
createSessionStorage,
|
|
7
|
+
createSessionStorageProvider,
|
|
8
|
+
createStorage,
|
|
9
|
+
createUrlSearchParamsInHashProvider,
|
|
10
|
+
createUrlSearchParamsInHashStorage,
|
|
11
|
+
createUrlSearchParamsProvider,
|
|
12
|
+
createUrlSearchParamsStorage,
|
|
13
|
+
localStorageProvider,
|
|
14
|
+
memoryStorageProvider,
|
|
15
|
+
sessionStorageProvider,
|
|
16
|
+
urlSearchParamsInHashProvider,
|
|
17
|
+
urlSearchParamsProvider
|
|
18
|
+
} from "./storage/index.js";
|
|
19
|
+
export {
|
|
20
|
+
createLocalStorage,
|
|
21
|
+
createLocalStorageProvider,
|
|
22
|
+
createMemoryStorageProvider,
|
|
23
|
+
createNoopProvider,
|
|
24
|
+
createSessionStorage,
|
|
25
|
+
createSessionStorageProvider,
|
|
26
|
+
createStorage,
|
|
27
|
+
createUrlSearchParamsInHashProvider,
|
|
28
|
+
createUrlSearchParamsInHashStorage,
|
|
29
|
+
createUrlSearchParamsProvider,
|
|
30
|
+
createUrlSearchParamsStorage,
|
|
31
|
+
localStorageProvider,
|
|
32
|
+
memoryStorageProvider,
|
|
33
|
+
sessionStorageProvider,
|
|
34
|
+
urlSearchParamsInHashProvider,
|
|
35
|
+
urlSearchParamsProvider
|
|
36
|
+
};
|
|
2
37
|
//# sourceMappingURL=storage.js.map
|
package/utils/storage.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../packages/js-toolkit/utils/storage.ts"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["export {\n createLocalStorage,\n createLocalStorageProvider,\n createMemoryStorageProvider,\n createNoopProvider,\n createSessionStorage,\n createSessionStorageProvider,\n createStorage,\n createUrlSearchParamsInHashProvider,\n createUrlSearchParamsInHashStorage,\n createUrlSearchParamsProvider,\n createUrlSearchParamsStorage,\n localStorageProvider,\n memoryStorageProvider,\n sessionStorageProvider,\n urlSearchParamsInHashProvider,\n urlSearchParamsProvider,\n type StorageInstance,\n type StorageOptions,\n type StorageProvider,\n type StorageSerializer,\n type UrlProviderOptions,\n} from './storage/index.js';\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|