@pinnacle0/web-ui 0.4.9-beta.1 → 0.4.9
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/admin/AdminApp/Menu.d.ts +8 -46
- package/admin/AdminApp/Menu.js +120 -144
- package/admin/AdminApp/Menu.js.map +1 -1
- package/admin/AdminApp/Navigator.d.ts +5 -28
- package/admin/AdminApp/Navigator.js +89 -142
- package/admin/AdminApp/Navigator.js.map +1 -1
- package/admin/AdminApp/RouteSwitch.js +2 -1
- package/admin/AdminApp/RouteSwitch.js.map +1 -1
- package/core/FlatList/VirtualFlatList/Item.d.ts +11 -0
- package/core/FlatList/VirtualFlatList/Item.js +20 -0
- package/core/FlatList/VirtualFlatList/Item.js.map +1 -0
- package/core/FlatList/VirtualFlatList/index.d.ts +8 -0
- package/core/FlatList/VirtualFlatList/index.js +111 -0
- package/core/FlatList/VirtualFlatList/index.js.map +1 -0
- package/core/FlatList/VirtualFlatList/index.less +22 -0
- package/core/FlatList/VirtualFlatList/type.d.ts +20 -0
- package/core/FlatList/VirtualFlatList/type.js +2 -0
- package/core/FlatList/VirtualFlatList/type.js.map +1 -0
- package/core/FlatList/index.d.ts +1 -3
- package/core/FlatList/index.js +27 -76
- package/core/FlatList/index.js.map +1 -1
- package/core/FlatList/shared/Footer/index.d.ts +8 -0
- package/core/FlatList/shared/Footer/index.js +13 -0
- package/core/FlatList/shared/Footer/index.js.map +1 -0
- package/core/FlatList/{Content → shared}/Footer/index.less +3 -2
- package/core/FlatList/shared/GetRowKey.d.ts +2 -0
- package/core/FlatList/shared/GetRowKey.js +12 -0
- package/core/FlatList/shared/GetRowKey.js.map +1 -0
- package/core/FlatList/{Refresh → shared/Spinner}/index.d.ts +1 -1
- package/core/FlatList/shared/Spinner/index.js +10 -0
- package/core/FlatList/shared/Spinner/index.js.map +1 -0
- package/core/FlatList/shared/Spinner/index.less +13 -0
- package/core/FlatList/shared/Wrapper/Loading.d.ts +8 -0
- package/core/FlatList/shared/Wrapper/Loading.js +7 -0
- package/core/FlatList/shared/Wrapper/Loading.js.map +1 -0
- package/core/FlatList/shared/Wrapper/index.d.ts +14 -0
- package/core/FlatList/shared/Wrapper/index.js +109 -0
- package/core/FlatList/shared/Wrapper/index.js.map +1 -0
- package/core/FlatList/shared/Wrapper/index.less +33 -0
- package/core/FlatList/shared/hooks/useBounceSwipe.d.ts +22 -0
- package/core/FlatList/shared/hooks/useBounceSwipe.js +111 -0
- package/core/FlatList/shared/hooks/useBounceSwipe.js.map +1 -0
- package/core/FlatList/shared/hooks/useElementScrollState.d.ts +8 -0
- package/core/FlatList/shared/hooks/useElementScrollState.js +38 -0
- package/core/FlatList/shared/hooks/useElementScrollState.js.map +1 -0
- package/core/FlatList/shared/hooks/useLoadingWithDelay.d.ts +9 -0
- package/core/FlatList/shared/hooks/useLoadingWithDelay.js +52 -0
- package/core/FlatList/shared/hooks/useLoadingWithDelay.js.map +1 -0
- package/core/FlatList/type.d.ts +37 -69
- package/core/FlatList/type.js +1 -1
- package/core/FlatList/type.js.map +1 -1
- package/hooks/useSwipe/controller.js +0 -1
- package/hooks/useSwipe/controller.js.map +1 -1
- package/hooks/useSwipe/type.d.ts +0 -1
- package/hooks/useSwipe/type.js.map +1 -1
- package/package.json +2 -4
- package/util/AdminNavigationUtil.d.ts +3 -3
- package/util/AdminNavigationUtil.js +4 -27
- package/util/AdminNavigationUtil.js.map +1 -1
- package/core/FlatList/Content/Footer/index.d.ts +0 -10
- package/core/FlatList/Content/Footer/index.js +0 -11
- package/core/FlatList/Content/Footer/index.js.map +0 -1
- package/core/FlatList/Content/index.d.ts +0 -9
- package/core/FlatList/Content/index.js +0 -71
- package/core/FlatList/Content/index.js.map +0 -1
- package/core/FlatList/Loader/index.d.ts +0 -3
- package/core/FlatList/Loader/index.js +0 -9
- package/core/FlatList/Loader/index.js.map +0 -1
- package/core/FlatList/Loader/index.less +0 -39
- package/core/FlatList/Refresh/index.js +0 -8
- package/core/FlatList/Refresh/index.js.map +0 -1
- package/core/FlatList/Refresh/index.less +0 -22
- package/core/FlatList/index.less +0 -36
- package/core/FlatList/useGap.d.ts +0 -2
- package/core/FlatList/useGap.js +0 -12
- package/core/FlatList/useGap.js.map +0 -1
- package/core/FlatList/util.d.ts +0 -8
- package/core/FlatList/util.js +0 -35
- package/core/FlatList/util.js.map +0 -1
- package/internal/polyfill/IntersectionObserver.d.ts +0 -1
- package/internal/polyfill/IntersectionObserver.js +0 -5
- package/internal/polyfill/IntersectionObserver.js.map +0 -1
package/core/FlatList/index.less
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
.g-flat-list {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-flow: column nowrap;
|
|
5
|
-
flex: 1;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
|
|
8
|
-
.g-flat-list-inner-wrapper {
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-flow: column nowrap;
|
|
11
|
-
flex: 1;
|
|
12
|
-
max-height: 100%;
|
|
13
|
-
will-change: transform;
|
|
14
|
-
transition-timing-function: cubic-bezier(0, 0.89, 0.26, 1.02);
|
|
15
|
-
transition-duration: 800ms;
|
|
16
|
-
|
|
17
|
-
.g-flat-list-refresh {
|
|
18
|
-
position: absolute;
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: auto;
|
|
21
|
-
transform: translateY(-100%);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.g-flat-list-scrollable {
|
|
25
|
-
display: flex;
|
|
26
|
-
height: 100%;
|
|
27
|
-
overflow: auto;
|
|
28
|
-
overscroll-behavior: none;
|
|
29
|
-
flex-flow: column nowrap;
|
|
30
|
-
|
|
31
|
-
.g-flat-list-content {
|
|
32
|
-
height: 100%;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
package/core/FlatList/useGap.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export var useGap = function (gap) {
|
|
2
|
-
if (!gap)
|
|
3
|
-
return {};
|
|
4
|
-
if (typeof gap === "number") {
|
|
5
|
-
return { paddingTop: gap, paddingBottom: gap, paddingLeft: gap, paddingRight: gap };
|
|
6
|
-
}
|
|
7
|
-
else {
|
|
8
|
-
var top_1 = gap.top, bottom = gap.bottom, left = gap.left, right = gap.right;
|
|
9
|
-
return { paddingTop: top_1, paddingBottom: bottom, paddingLeft: left, paddingRight: right };
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=useGap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useGap.js","sourceRoot":"","sources":["../../../src/core/FlatList/useGap.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,MAAM,GAAG,UAAC,GAAS;IAC5B,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACpB,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACzB,OAAO,EAAC,UAAU,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAC,CAAC;KACrF;SAAM;QACI,IAAA,KAAG,GAAyB,GAAG,IAA5B,EAAE,MAAM,GAAiB,GAAG,OAApB,EAAE,IAAI,GAAW,GAAG,KAAd,EAAE,KAAK,GAAI,GAAG,MAAP,CAAQ;QACvC,OAAO,EAAC,UAAU,EAAE,KAAG,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAC,CAAC;KAC3F;AACL,CAAC,CAAC"}
|
package/core/FlatList/util.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Direction } from "../../hooks/useSwipe";
|
|
2
|
-
import type { Boundary } from "./type";
|
|
3
|
-
export declare function isExceededBounary(delta: number, boundary: Boundary): boolean;
|
|
4
|
-
export declare function getBounaryFromStartDirection(direction: Direction): Boundary | null;
|
|
5
|
-
export declare function isScrollTop(element: HTMLElement): boolean;
|
|
6
|
-
export declare function isScrollBottom(element: HTMLElement): boolean;
|
|
7
|
-
export declare function isScrollLeft(element: HTMLElement): boolean;
|
|
8
|
-
export declare function isScrollRight(element: HTMLElement): boolean;
|
package/core/FlatList/util.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Direction } from "../../hooks/useSwipe";
|
|
2
|
-
var OVER_BOUNDARY_LIMIT = 40;
|
|
3
|
-
export function isExceededBounary(delta, boundary) {
|
|
4
|
-
switch (boundary) {
|
|
5
|
-
case "top":
|
|
6
|
-
return delta < -OVER_BOUNDARY_LIMIT;
|
|
7
|
-
case "bottom":
|
|
8
|
-
return delta > OVER_BOUNDARY_LIMIT;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export function getBounaryFromStartDirection(direction) {
|
|
12
|
-
switch (direction) {
|
|
13
|
-
case Direction.DOWN:
|
|
14
|
-
return "top";
|
|
15
|
-
case Direction.UP:
|
|
16
|
-
return "bottom";
|
|
17
|
-
default:
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export function isScrollTop(element) {
|
|
22
|
-
return element.scrollTop === 0;
|
|
23
|
-
}
|
|
24
|
-
export function isScrollBottom(element) {
|
|
25
|
-
var scrollTop = element.scrollTop, clientHeight = element.clientHeight, scrollHeight = element.scrollHeight;
|
|
26
|
-
return Math.ceil(scrollTop) + clientHeight >= scrollHeight;
|
|
27
|
-
}
|
|
28
|
-
export function isScrollLeft(element) {
|
|
29
|
-
return element.scrollLeft === 0;
|
|
30
|
-
}
|
|
31
|
-
export function isScrollRight(element) {
|
|
32
|
-
var scrollWidth = element.scrollWidth, scrollLeft = element.scrollLeft, clientWidth = element.clientWidth;
|
|
33
|
-
return Math.ceil(scrollLeft) + clientWidth >= scrollWidth;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=util.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3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;AAC9D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntersectionObserver.js","sourceRoot":"","sources":["../../../src/internal/polyfill/IntersectionObserver.ts"],"names":[],"mappings":"AAAA,IAAI,sBAAsB,IAAI,MAAM,KAAK,KAAK,EAAE;IAC5C,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACpC"}
|