@studiometa/ui 0.2.13 → 0.2.14
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/atoms/AnchorScrollTo/AnchorScrollTo.cjs +3 -3
- package/atoms/AnchorScrollTo/AnchorScrollTo.d.ts +8 -15
- package/atoms/AnchorScrollTo/AnchorScrollTo.js +26 -1
- package/atoms/AnchorScrollTo/index.cjs +20 -0
- package/atoms/AnchorScrollTo/index.d.ts +1 -0
- package/atoms/AnchorScrollTo/index.js +1 -0
- package/atoms/Cursor/Cursor.cjs +16 -9
- package/atoms/Cursor/Cursor.d.ts +19 -117
- package/atoms/Cursor/Cursor.js +111 -1
- package/atoms/Cursor/index.cjs +20 -0
- package/atoms/Cursor/index.d.ts +1 -0
- package/atoms/Cursor/index.js +1 -0
- package/atoms/Figure/Figure.cjs +15 -9
- package/atoms/Figure/Figure.d.ts +18 -53
- package/atoms/Figure/Figure.js +56 -1
- package/atoms/Figure/FigureTwicPics.cjs +10 -10
- package/atoms/Figure/FigureTwicPics.d.ts +16 -37
- package/atoms/Figure/FigureTwicPics.js +51 -1
- package/atoms/Figure/index.cjs +4 -14
- package/atoms/Figure/index.d.ts +2 -2
- package/atoms/Figure/index.js +2 -1
- package/atoms/LargeText/LargeText.cjs +17 -10
- package/atoms/LargeText/LargeText.d.ts +19 -40
- package/atoms/LargeText/LargeText.js +68 -1
- package/atoms/LargeText/index.cjs +20 -0
- package/atoms/LargeText/index.d.ts +1 -0
- package/atoms/LargeText/index.js +1 -0
- package/atoms/LazyInclude/LazyInclude.cjs +2 -2
- package/atoms/LazyInclude/LazyInclude.d.ts +17 -36
- package/atoms/LazyInclude/LazyInclude.js +46 -1
- package/atoms/LazyInclude/index.cjs +20 -0
- package/atoms/LazyInclude/index.d.ts +1 -0
- package/atoms/LazyInclude/index.js +1 -0
- package/atoms/Prefetch/AbstractPrefetch.cjs +6 -6
- package/atoms/Prefetch/AbstractPrefetch.d.ts +12 -35
- package/atoms/Prefetch/AbstractPrefetch.js +58 -1
- package/atoms/Prefetch/PrefetchWhenOver.cjs +5 -8
- package/atoms/Prefetch/PrefetchWhenOver.d.ts +8 -14
- package/atoms/Prefetch/PrefetchWhenOver.js +19 -1
- package/atoms/Prefetch/PrefetchWhenVisible.cjs +5 -8
- package/atoms/Prefetch/PrefetchWhenVisible.d.ts +10 -14
- package/atoms/Prefetch/PrefetchWhenVisible.js +20 -1
- package/atoms/Prefetch/index.cjs +5 -16
- package/atoms/Prefetch/index.d.ts +3 -3
- package/atoms/Prefetch/index.js +3 -1
- package/atoms/ScrollAnimation/AbstractScrollAnimation.cjs +17 -14
- package/atoms/ScrollAnimation/AbstractScrollAnimation.d.ts +19 -89
- package/atoms/ScrollAnimation/AbstractScrollAnimation.js +67 -1
- package/atoms/ScrollAnimation/ScrollAnimation.cjs +5 -14
- package/atoms/ScrollAnimation/ScrollAnimation.d.ts +13 -51
- package/atoms/ScrollAnimation/ScrollAnimation.js +21 -1
- package/atoms/ScrollAnimation/ScrollAnimationChild.cjs +37 -14
- package/atoms/ScrollAnimation/ScrollAnimationChild.d.ts +19 -6
- package/atoms/ScrollAnimation/ScrollAnimationChild.js +53 -1
- package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.cjs +6 -9
- package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.d.ts +8 -2
- package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.js +17 -1
- package/atoms/ScrollAnimation/ScrollAnimationParent.cjs +8 -8
- package/atoms/ScrollAnimation/ScrollAnimationParent.d.ts +14 -26
- package/atoms/ScrollAnimation/ScrollAnimationParent.js +27 -1
- package/atoms/ScrollAnimation/ScrollAnimationWithEase.cjs +6 -9
- package/atoms/ScrollAnimation/ScrollAnimationWithEase.d.ts +15 -2
- package/atoms/ScrollAnimation/ScrollAnimationWithEase.js +17 -1
- package/atoms/ScrollAnimation/animationScrollWithEase.cjs +24 -16
- package/atoms/ScrollAnimation/animationScrollWithEase.d.ts +10 -8
- package/atoms/ScrollAnimation/animationScrollWithEase.js +36 -1
- package/atoms/ScrollAnimation/index.cjs +9 -24
- package/atoms/ScrollAnimation/index.d.ts +7 -7
- package/atoms/ScrollAnimation/index.js +7 -1
- package/atoms/ScrollReveal/ScrollReveal.cjs +7 -4
- package/atoms/ScrollReveal/ScrollReveal.d.ts +16 -59
- package/atoms/ScrollReveal/ScrollReveal.js +54 -1
- package/atoms/ScrollReveal/index.cjs +3 -12
- package/atoms/ScrollReveal/index.d.ts +1 -1
- package/atoms/ScrollReveal/index.js +1 -1
- package/atoms/index.cjs +5 -18
- package/atoms/index.d.ts +8 -8
- package/atoms/index.js +8 -1
- package/decorators/index.cjs +3 -12
- package/decorators/index.d.ts +1 -1
- package/decorators/index.js +1 -1
- package/decorators/withTransition.cjs +44 -29
- package/decorators/withTransition.d.ts +21 -33
- package/decorators/withTransition.js +60 -1
- package/index.cjs +1 -1
- package/index.d.ts +5 -5
- package/index.js +5 -1
- package/molecules/Accordion/Accordion.cjs +7 -10
- package/molecules/Accordion/Accordion.d.ts +5 -23
- package/molecules/Accordion/Accordion.js +19 -1
- package/molecules/Accordion/AccordionCore.cjs +6 -8
- package/molecules/Accordion/AccordionCore.d.ts +22 -70
- package/molecules/Accordion/AccordionCore.js +32 -1
- package/molecules/Accordion/AccordionItem.cjs +39 -23
- package/molecules/Accordion/AccordionItem.d.ts +24 -94
- package/molecules/Accordion/AccordionItem.js +153 -1
- package/molecules/Accordion/index.cjs +21 -0
- package/molecules/Accordion/index.d.ts +2 -0
- package/molecules/Accordion/index.js +2 -0
- package/molecules/Menu/Menu.cjs +6 -10
- package/molecules/Menu/Menu.d.ts +24 -84
- package/molecules/Menu/Menu.js +114 -1
- package/molecules/Menu/MenuBtn.cjs +7 -5
- package/molecules/Menu/MenuBtn.d.ts +7 -9
- package/molecules/Menu/MenuBtn.js +30 -1
- package/molecules/Menu/MenuList.cjs +13 -11
- package/molecules/Menu/MenuList.d.ts +16 -53
- package/molecules/Menu/MenuList.js +113 -1
- package/molecules/Menu/index.cjs +5 -16
- package/molecules/Menu/index.d.ts +3 -3
- package/molecules/Menu/index.js +3 -1
- package/molecules/Modal/Modal.cjs +42 -13
- package/molecules/Modal/Modal.d.ts +69 -140
- package/molecules/Modal/Modal.js +163 -1
- package/molecules/Modal/ModalWithTransition.cjs +4 -7
- package/molecules/Modal/ModalWithTransition.d.ts +6 -22
- package/molecules/Modal/ModalWithTransition.js +46 -1
- package/molecules/Modal/index.cjs +21 -0
- package/molecules/Modal/index.d.ts +2 -0
- package/molecules/Modal/index.js +2 -0
- package/molecules/Panel/Panel.cjs +41 -26
- package/molecules/Panel/Panel.d.ts +22 -21
- package/molecules/Panel/Panel.js +108 -1
- package/molecules/Panel/index.cjs +20 -0
- package/molecules/Panel/index.d.ts +1 -0
- package/molecules/Panel/index.js +1 -0
- package/molecules/Slider/AbstractSliderChild.cjs +7 -9
- package/molecules/Slider/AbstractSliderChild.d.ts +11 -30
- package/molecules/Slider/AbstractSliderChild.js +48 -1
- package/molecules/Slider/Slider.cjs +45 -30
- package/molecules/Slider/Slider.d.ts +40 -157
- package/molecules/Slider/Slider.js +279 -1
- package/molecules/Slider/SliderBtn.cjs +4 -7
- package/molecules/Slider/SliderBtn.d.ts +12 -23
- package/molecules/Slider/SliderBtn.js +34 -1
- package/molecules/Slider/SliderCount.cjs +4 -7
- package/molecules/Slider/SliderCount.d.ts +10 -16
- package/molecules/Slider/SliderCount.js +19 -1
- package/molecules/Slider/SliderDots.cjs +8 -8
- package/molecules/Slider/SliderDots.d.ts +11 -31
- package/molecules/Slider/SliderDots.js +32 -1
- package/molecules/Slider/SliderDrag.cjs +2 -2
- package/molecules/Slider/SliderDrag.d.ts +12 -30
- package/molecules/Slider/SliderDrag.js +34 -1
- package/molecules/Slider/SliderItem.cjs +12 -6
- package/molecules/Slider/SliderItem.d.ts +21 -33
- package/molecules/Slider/SliderItem.js +93 -1
- package/molecules/Slider/SliderProgress.cjs +4 -7
- package/molecules/Slider/SliderProgress.d.ts +10 -25
- package/molecules/Slider/SliderProgress.js +26 -1
- package/molecules/Slider/index.cjs +10 -26
- package/molecules/Slider/index.d.ts +8 -8
- package/molecules/Slider/index.js +8 -1
- package/molecules/Sticky/Sticky.cjs +16 -10
- package/molecules/Sticky/Sticky.d.ts +30 -68
- package/molecules/Sticky/Sticky.js +110 -1
- package/molecules/Sticky/index.cjs +20 -0
- package/molecules/Sticky/index.d.ts +1 -0
- package/molecules/Sticky/index.js +1 -0
- package/molecules/TableOfContent/TableOfContent.cjs +5 -8
- package/molecules/TableOfContent/TableOfContent.d.ts +19 -41
- package/molecules/TableOfContent/TableOfContent.js +42 -1
- package/molecules/TableOfContent/TableOfContentAnchor.cjs +9 -5
- package/molecules/TableOfContent/TableOfContentAnchor.d.ts +14 -17
- package/molecules/TableOfContent/TableOfContentAnchor.js +43 -1
- package/molecules/TableOfContent/index.cjs +4 -14
- package/molecules/TableOfContent/index.d.ts +2 -2
- package/molecules/TableOfContent/index.js +2 -1
- package/molecules/Tabs/Tabs.cjs +42 -22
- package/molecules/Tabs/Tabs.d.ts +28 -90
- package/molecules/Tabs/Tabs.js +123 -1
- package/molecules/Tabs/index.cjs +20 -0
- package/molecules/Tabs/index.d.ts +1 -0
- package/molecules/Tabs/index.js +1 -0
- package/molecules/index.cjs +7 -24
- package/molecules/index.d.ts +9 -10
- package/molecules/index.js +9 -1
- package/organisms/Frame/Frame.cjs +20 -43
- package/organisms/Frame/Frame.d.ts +21 -98
- package/organisms/Frame/Frame.js +161 -1
- package/organisms/Frame/FrameAnchor.cjs +2 -2
- package/organisms/Frame/FrameAnchor.d.ts +7 -16
- package/organisms/Frame/FrameAnchor.js +18 -1
- package/organisms/Frame/FrameForm.cjs +2 -2
- package/organisms/Frame/FrameForm.d.ts +10 -16
- package/organisms/Frame/FrameForm.js +18 -1
- package/organisms/Frame/FrameTarget.cjs +15 -7
- package/organisms/Frame/FrameTarget.d.ts +17 -26
- package/organisms/Frame/FrameTarget.js +79 -1
- package/organisms/Frame/index.cjs +6 -18
- package/organisms/Frame/index.d.ts +4 -4
- package/organisms/Frame/index.js +4 -1
- package/organisms/index.cjs +1 -1
- package/organisms/index.d.ts +1 -1
- package/organisms/index.js +1 -1
- package/package.json +2 -2
- package/primitives/Draggable/Draggable.cjs +9 -6
- package/primitives/Draggable/Draggable.d.ts +10 -11
- package/primitives/Draggable/Draggable.js +33 -1
- package/primitives/Draggable/index.cjs +20 -0
- package/primitives/Draggable/index.d.ts +1 -0
- package/primitives/Draggable/index.js +1 -0
- package/primitives/Sentinel/Sentinel.cjs +2 -2
- package/primitives/Sentinel/Sentinel.d.ts +6 -5
- package/primitives/Sentinel/Sentinel.js +15 -1
- package/primitives/Sentinel/index.cjs +20 -0
- package/primitives/Sentinel/index.d.ts +1 -0
- package/primitives/Sentinel/index.js +1 -0
- package/primitives/Transition/Transition.cjs +12 -3
- package/primitives/Transition/Transition.d.ts +13 -7
- package/primitives/Transition/Transition.js +16 -1
- package/primitives/Transition/index.cjs +20 -0
- package/primitives/Transition/index.d.ts +1 -0
- package/primitives/Transition/index.js +1 -0
- package/primitives/index.cjs +5 -16
- package/primitives/index.d.ts +3 -3
- package/primitives/index.js +3 -1
|
@@ -2,6 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
6
|
var __export = (target, all) => {
|
|
6
7
|
for (var name in all)
|
|
7
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -15,35 +16,42 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
16
|
return to;
|
|
16
17
|
};
|
|
17
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __publicField = (obj, key, value) => {
|
|
20
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
21
|
+
return value;
|
|
22
|
+
};
|
|
18
23
|
|
|
19
|
-
// packages/ui/atoms/ScrollAnimation/animationScrollWithEase.
|
|
24
|
+
// packages/ui/atoms/ScrollAnimation/animationScrollWithEase.ts
|
|
20
25
|
var animationScrollWithEase_exports = {};
|
|
21
26
|
__export(animationScrollWithEase_exports, {
|
|
22
|
-
|
|
27
|
+
animationScrollWithEase: () => animationScrollWithEase
|
|
23
28
|
});
|
|
24
29
|
module.exports = __toCommonJS(animationScrollWithEase_exports);
|
|
25
30
|
var import_utils = require("@studiometa/js-toolkit/utils");
|
|
26
31
|
var regex = /ease([A-Z])/;
|
|
27
|
-
var eases = Object.fromEntries(
|
|
32
|
+
var eases = Object.fromEntries(
|
|
33
|
+
Object.entries(import_utils.ease).filter(([name]) => name.startsWith("ease")).map(([name, value]) => [name.replace(regex, (match, $1) => $1.toLowerCase()), value])
|
|
34
|
+
);
|
|
28
35
|
function animationScrollWithEase(ScrollAnimation) {
|
|
29
|
-
|
|
30
|
-
static config = {
|
|
31
|
-
...ScrollAnimation.config,
|
|
32
|
-
name: `${ScrollAnimation.config.name}WithEase`,
|
|
33
|
-
options: {
|
|
34
|
-
...ScrollAnimation.config.options,
|
|
35
|
-
ease: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: "outExpo"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
36
|
+
class AnimationScrollWithEase extends ScrollAnimation {
|
|
41
37
|
render(progress) {
|
|
42
38
|
if (typeof eases[this.$options.ease] === "function") {
|
|
43
39
|
progress = eases[this.$options.ease](progress);
|
|
44
40
|
}
|
|
45
41
|
super.render(progress);
|
|
46
42
|
}
|
|
47
|
-
}
|
|
43
|
+
}
|
|
44
|
+
__publicField(AnimationScrollWithEase, "config", {
|
|
45
|
+
...ScrollAnimation.config,
|
|
46
|
+
name: `${ScrollAnimation.config.name}WithEase`,
|
|
47
|
+
options: {
|
|
48
|
+
...ScrollAnimation.config.options,
|
|
49
|
+
ease: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: "outExpo"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
return AnimationScrollWithEase;
|
|
48
56
|
}
|
|
49
57
|
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { BaseProps, BaseDecorator, BaseInterface } from '@studiometa/js-toolkit';
|
|
2
|
+
import type { AbstractScrollAnimation } from './AbstractScrollAnimation.js';
|
|
3
|
+
export interface AnimationScrollWithEaseProps extends BaseProps {
|
|
4
|
+
$options: {
|
|
5
|
+
ease: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export interface AnimationScrollWithEaseInterface extends BaseInterface {
|
|
9
|
+
}
|
|
4
10
|
/**
|
|
5
11
|
* Extend a `ScrollAnimation` component to use easings.
|
|
6
|
-
* @template {AbstractScrollAnimationConstructor} T
|
|
7
|
-
* @param {T} ScrollAnimation A child class of the `AbstractScrollAnimation` class.
|
|
8
|
-
* @returns {T}
|
|
9
12
|
*/
|
|
10
|
-
export
|
|
11
|
-
export type AbstractScrollAnimationConstructor = import('./AbstractScrollAnimation.js').AbstractScrollAnimationConstructor;
|
|
13
|
+
export declare function animationScrollWithEase<S extends AbstractScrollAnimation>(ScrollAnimation: typeof AbstractScrollAnimation): BaseDecorator<AnimationScrollWithEaseInterface, S, AnimationScrollWithEaseProps>;
|
|
@@ -1 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import { ease } from "@studiometa/js-toolkit/utils";
|
|
8
|
+
const regex = /ease([A-Z])/;
|
|
9
|
+
const eases = Object.fromEntries(
|
|
10
|
+
Object.entries(ease).filter(([name]) => name.startsWith("ease")).map(([name, value]) => [name.replace(regex, (match, $1) => $1.toLowerCase()), value])
|
|
11
|
+
);
|
|
12
|
+
function animationScrollWithEase(ScrollAnimation) {
|
|
13
|
+
class AnimationScrollWithEase extends ScrollAnimation {
|
|
14
|
+
render(progress) {
|
|
15
|
+
if (typeof eases[this.$options.ease] === "function") {
|
|
16
|
+
progress = eases[this.$options.ease](progress);
|
|
17
|
+
}
|
|
18
|
+
super.render(progress);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
__publicField(AnimationScrollWithEase, "config", {
|
|
22
|
+
...ScrollAnimation.config,
|
|
23
|
+
name: `${ScrollAnimation.config.name}WithEase`,
|
|
24
|
+
options: {
|
|
25
|
+
...ScrollAnimation.config.options,
|
|
26
|
+
ease: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "outExpo"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return AnimationScrollWithEase;
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
animationScrollWithEase
|
|
36
|
+
};
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
5
|
var __copyProps = (to, from, except, desc) => {
|
|
12
6
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
7
|
for (let key of __getOwnPropNames(from))
|
|
@@ -16,26 +10,17 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
10
|
}
|
|
17
11
|
return to;
|
|
18
12
|
};
|
|
19
|
-
var
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
15
|
|
|
22
|
-
// packages/ui/atoms/ScrollAnimation/index.
|
|
16
|
+
// packages/ui/atoms/ScrollAnimation/index.ts
|
|
23
17
|
var ScrollAnimation_exports = {};
|
|
24
|
-
__export(ScrollAnimation_exports, {
|
|
25
|
-
AbstractScrollAnimation: () => import_AbstractScrollAnimation.default,
|
|
26
|
-
ScrollAnimation: () => import_ScrollAnimation.default,
|
|
27
|
-
ScrollAnimationChild: () => import_ScrollAnimationChild.default,
|
|
28
|
-
ScrollAnimationChildWithEase: () => import_ScrollAnimationChildWithEase.default,
|
|
29
|
-
ScrollAnimationParent: () => import_ScrollAnimationParent.default,
|
|
30
|
-
ScrollAnimationWithEase: () => import_ScrollAnimationWithEase.default,
|
|
31
|
-
animationScrollWithEase: () => import_animationScrollWithEase.default
|
|
32
|
-
});
|
|
33
18
|
module.exports = __toCommonJS(ScrollAnimation_exports);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
19
|
+
__reExport(ScrollAnimation_exports, require("./AbstractScrollAnimation.cjs"), module.exports);
|
|
20
|
+
__reExport(ScrollAnimation_exports, require("./animationScrollWithEase.cjs"), module.exports);
|
|
21
|
+
__reExport(ScrollAnimation_exports, require("./ScrollAnimation.cjs"), module.exports);
|
|
22
|
+
__reExport(ScrollAnimation_exports, require("./ScrollAnimationWithEase.cjs"), module.exports);
|
|
23
|
+
__reExport(ScrollAnimation_exports, require("./ScrollAnimationChild.cjs"), module.exports);
|
|
24
|
+
__reExport(ScrollAnimation_exports, require("./ScrollAnimationChildWithEase.cjs"), module.exports);
|
|
25
|
+
__reExport(ScrollAnimation_exports, require("./ScrollAnimationParent.cjs"), module.exports);
|
|
41
26
|
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
1
|
+
export * from './AbstractScrollAnimation.js';
|
|
2
|
+
export * from './animationScrollWithEase.js';
|
|
3
|
+
export * from './ScrollAnimation.js';
|
|
4
|
+
export * from './ScrollAnimationWithEase.js';
|
|
5
|
+
export * from './ScrollAnimationChild.js';
|
|
6
|
+
export * from './ScrollAnimationChildWithEase.js';
|
|
7
|
+
export * from './ScrollAnimationParent.js';
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export * from "./AbstractScrollAnimation.js";
|
|
2
|
+
export * from "./animationScrollWithEase.js";
|
|
3
|
+
export * from "./ScrollAnimation.js";
|
|
4
|
+
export * from "./ScrollAnimationWithEase.js";
|
|
5
|
+
export * from "./ScrollAnimationChild.js";
|
|
6
|
+
export * from "./ScrollAnimationChildWithEase.js";
|
|
7
|
+
export * from "./ScrollAnimationParent.js";
|
|
@@ -21,17 +21,20 @@ var __publicField = (obj, key, value) => {
|
|
|
21
21
|
return value;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
// packages/ui/atoms/ScrollReveal/ScrollReveal.
|
|
24
|
+
// packages/ui/atoms/ScrollReveal/ScrollReveal.ts
|
|
25
25
|
var ScrollReveal_exports = {};
|
|
26
26
|
__export(ScrollReveal_exports, {
|
|
27
|
-
|
|
27
|
+
ScrollReveal: () => ScrollReveal
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(ScrollReveal_exports);
|
|
30
30
|
var import_js_toolkit = require("@studiometa/js-toolkit");
|
|
31
31
|
var import_primitives = require("../../primitives/index.cjs");
|
|
32
|
-
var _ScrollReveal = class extends (0, import_js_toolkit.withMountWhenInView)(
|
|
32
|
+
var _ScrollReveal = class extends (0, import_js_toolkit.withMountWhenInView)(
|
|
33
|
+
import_primitives.Transition
|
|
34
|
+
) {
|
|
33
35
|
get target() {
|
|
34
|
-
|
|
36
|
+
var _a;
|
|
37
|
+
return (_a = this.$refs.target) != null ? _a : this.$el;
|
|
35
38
|
}
|
|
36
39
|
mounted() {
|
|
37
40
|
if (!this.$options.repeat) {
|
|
@@ -1,77 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* $refs: {
|
|
14
|
-
* target?: HTMLElement,
|
|
15
|
-
* },
|
|
16
|
-
* $options: {
|
|
17
|
-
* repeat: boolean;
|
|
18
|
-
* }
|
|
19
|
-
* }} ScrollRevealInterface
|
|
20
|
-
*/
|
|
1
|
+
import { ScrollServiceProps } from '@studiometa/js-toolkit';
|
|
2
|
+
import type { BaseProps, BaseConfig } from '@studiometa/js-toolkit';
|
|
3
|
+
import { Transition } from '../../primitives/index.js';
|
|
4
|
+
export interface ScrollRevealProps extends BaseProps {
|
|
5
|
+
$refs: {
|
|
6
|
+
target?: HTMLElement;
|
|
7
|
+
};
|
|
8
|
+
$options: {
|
|
9
|
+
repeat: boolean;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
declare const ScrollReveal_base: import("@studiometa/js-toolkit").BaseDecorator<import("@studiometa/js-toolkit").WithMountWhenInViewInterface, Transition<BaseProps>, import("@studiometa/js-toolkit").WithMountWhenInViewProps>;
|
|
21
13
|
/**
|
|
22
14
|
* ScrollReveal class.
|
|
23
15
|
*/
|
|
24
|
-
export
|
|
16
|
+
export declare class ScrollReveal<T extends BaseProps = BaseProps> extends ScrollReveal_base<T & ScrollRevealProps> {
|
|
25
17
|
/**
|
|
26
18
|
* Config.
|
|
27
19
|
*/
|
|
28
|
-
static config:
|
|
29
|
-
name: string;
|
|
30
|
-
refs: string[];
|
|
31
|
-
options: {
|
|
32
|
-
enterKeep: {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
default: boolean;
|
|
35
|
-
};
|
|
36
|
-
repeat: BooleanConstructor;
|
|
37
|
-
intersectionObserver: {
|
|
38
|
-
type: ObjectConstructor;
|
|
39
|
-
default: () => {
|
|
40
|
-
threshold: number[];
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
debug?: boolean;
|
|
45
|
-
log?: boolean;
|
|
46
|
-
emits?: string[];
|
|
47
|
-
components?: import("@studiometa/js-toolkit/Base/index.js").BaseConfigComponents;
|
|
48
|
-
};
|
|
20
|
+
static config: BaseConfig;
|
|
49
21
|
/**
|
|
50
22
|
* Vertical scroll direction.
|
|
51
|
-
* @type {'UP'|'DOWN'|'NONE'}
|
|
52
23
|
*/
|
|
53
|
-
static scrollDirectionY: '
|
|
24
|
+
static scrollDirectionY: ScrollServiceProps['direction']['y'];
|
|
54
25
|
/**
|
|
55
26
|
* Get the transition target.
|
|
56
|
-
*
|
|
57
|
-
* @this {ScrollRevealInterface}
|
|
58
|
-
* @returns {HTMLElement}
|
|
59
27
|
*/
|
|
60
28
|
get target(): HTMLElement;
|
|
61
29
|
/**
|
|
62
30
|
* Trigger the `enter` transition on mount.
|
|
63
|
-
*
|
|
64
|
-
* @this {ScrollRevealInterface}
|
|
65
|
-
* @returns {void}
|
|
66
31
|
*/
|
|
67
|
-
mounted(
|
|
32
|
+
mounted(): void;
|
|
68
33
|
}
|
|
69
|
-
export type ScrollRevealInterface = ScrollReveal & {
|
|
70
|
-
$refs: {
|
|
71
|
-
target?: HTMLElement;
|
|
72
|
-
};
|
|
73
|
-
$options: {
|
|
74
|
-
repeat: boolean;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
34
|
export {};
|
|
@@ -1 +1,54 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import { withMountWhenInView, useScroll } from "@studiometa/js-toolkit";
|
|
8
|
+
import { Transition } from "../../primitives/index.js";
|
|
9
|
+
const _ScrollReveal = class extends withMountWhenInView(
|
|
10
|
+
Transition
|
|
11
|
+
) {
|
|
12
|
+
get target() {
|
|
13
|
+
var _a;
|
|
14
|
+
return (_a = this.$refs.target) != null ? _a : this.$el;
|
|
15
|
+
}
|
|
16
|
+
mounted() {
|
|
17
|
+
if (!this.$options.repeat) {
|
|
18
|
+
this.enter();
|
|
19
|
+
this.$terminate();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const scroll = useScroll();
|
|
23
|
+
if (!scroll.has("ScrollRevealRepeat")) {
|
|
24
|
+
scroll.add("ScrollRevealRepeat", (props) => {
|
|
25
|
+
_ScrollReveal.scrollDirectionY = props.direction.y;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
if (_ScrollReveal.scrollDirectionY !== "UP") {
|
|
29
|
+
this.enter();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
let ScrollReveal = _ScrollReveal;
|
|
34
|
+
__publicField(ScrollReveal, "config", {
|
|
35
|
+
...Transition.config,
|
|
36
|
+
name: "ScrollReveal",
|
|
37
|
+
refs: ["target"],
|
|
38
|
+
options: {
|
|
39
|
+
...Transition.config.options,
|
|
40
|
+
enterKeep: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: true
|
|
43
|
+
},
|
|
44
|
+
repeat: Boolean,
|
|
45
|
+
intersectionObserver: {
|
|
46
|
+
type: Object,
|
|
47
|
+
default: () => ({ threshold: [0, 1] })
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
__publicField(ScrollReveal, "scrollDirectionY", "NONE");
|
|
52
|
+
export {
|
|
53
|
+
ScrollReveal
|
|
54
|
+
};
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
5
|
var __copyProps = (to, from, except, desc) => {
|
|
12
6
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
7
|
for (let key of __getOwnPropNames(from))
|
|
@@ -16,14 +10,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
10
|
}
|
|
17
11
|
return to;
|
|
18
12
|
};
|
|
19
|
-
var
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
15
|
|
|
22
|
-
// packages/ui/atoms/ScrollReveal/index.
|
|
16
|
+
// packages/ui/atoms/ScrollReveal/index.ts
|
|
23
17
|
var ScrollReveal_exports = {};
|
|
24
|
-
__export(ScrollReveal_exports, {
|
|
25
|
-
ScrollReveal: () => import_ScrollReveal.default
|
|
26
|
-
});
|
|
27
18
|
module.exports = __toCommonJS(ScrollReveal_exports);
|
|
28
|
-
|
|
19
|
+
__reExport(ScrollReveal_exports, require("./ScrollReveal.cjs"), module.exports);
|
|
29
20
|
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './ScrollReveal.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from "./ScrollReveal.js";
|
package/atoms/index.cjs
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
5
|
var __copyProps = (to, from, except, desc) => {
|
|
12
6
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
7
|
for (let key of __getOwnPropNames(from))
|
|
@@ -17,24 +11,17 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
11
|
return to;
|
|
18
12
|
};
|
|
19
13
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
21
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
15
|
|
|
23
|
-
// packages/ui/atoms/index.
|
|
16
|
+
// packages/ui/atoms/index.ts
|
|
24
17
|
var atoms_exports = {};
|
|
25
|
-
__export(atoms_exports, {
|
|
26
|
-
AnchorScrollTo: () => import_AnchorScrollTo.default,
|
|
27
|
-
Cursor: () => import_Cursor.default,
|
|
28
|
-
LargeText: () => import_LargeText.default,
|
|
29
|
-
LazyInclude: () => import_LazyInclude.default
|
|
30
|
-
});
|
|
31
18
|
module.exports = __toCommonJS(atoms_exports);
|
|
19
|
+
__reExport(atoms_exports, require("./AnchorScrollTo/index.cjs"), module.exports);
|
|
20
|
+
__reExport(atoms_exports, require("./Cursor/index.cjs"), module.exports);
|
|
32
21
|
__reExport(atoms_exports, require("./Figure/index.cjs"), module.exports);
|
|
22
|
+
__reExport(atoms_exports, require("./LargeText/index.cjs"), module.exports);
|
|
23
|
+
__reExport(atoms_exports, require("./LazyInclude/index.cjs"), module.exports);
|
|
33
24
|
__reExport(atoms_exports, require("./Prefetch/index.cjs"), module.exports);
|
|
34
25
|
__reExport(atoms_exports, require("./ScrollAnimation/index.cjs"), module.exports);
|
|
35
26
|
__reExport(atoms_exports, require("./ScrollReveal/index.cjs"), module.exports);
|
|
36
|
-
var import_AnchorScrollTo = __toESM(require("./AnchorScrollTo/AnchorScrollTo.cjs"), 1);
|
|
37
|
-
var import_Cursor = __toESM(require("./Cursor/Cursor.cjs"), 1);
|
|
38
|
-
var import_LargeText = __toESM(require("./LargeText/LargeText.cjs"), 1);
|
|
39
|
-
var import_LazyInclude = __toESM(require("./LazyInclude/LazyInclude.cjs"), 1);
|
|
40
27
|
if (module.exports.default) module.exports = module.exports.default;
|
package/atoms/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
1
|
+
export * from './AnchorScrollTo/index.js';
|
|
2
|
+
export * from './Cursor/index.js';
|
|
3
|
+
export * from './Figure/index.js';
|
|
4
|
+
export * from './LargeText/index.js';
|
|
5
|
+
export * from './LazyInclude/index.js';
|
|
6
|
+
export * from './Prefetch/index.js';
|
|
7
|
+
export * from './ScrollAnimation/index.js';
|
|
8
|
+
export * from './ScrollReveal/index.js';
|
package/atoms/index.js
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
export*from
|
|
1
|
+
export * from "./AnchorScrollTo/index.js";
|
|
2
|
+
export * from "./Cursor/index.js";
|
|
3
|
+
export * from "./Figure/index.js";
|
|
4
|
+
export * from "./LargeText/index.js";
|
|
5
|
+
export * from "./LazyInclude/index.js";
|
|
6
|
+
export * from "./Prefetch/index.js";
|
|
7
|
+
export * from "./ScrollAnimation/index.js";
|
|
8
|
+
export * from "./ScrollReveal/index.js";
|
package/decorators/index.cjs
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
5
|
var __copyProps = (to, from, except, desc) => {
|
|
12
6
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
7
|
for (let key of __getOwnPropNames(from))
|
|
@@ -16,14 +10,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
10
|
}
|
|
17
11
|
return to;
|
|
18
12
|
};
|
|
19
|
-
var
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
15
|
|
|
22
|
-
// packages/ui/decorators/index.
|
|
16
|
+
// packages/ui/decorators/index.ts
|
|
23
17
|
var decorators_exports = {};
|
|
24
|
-
__export(decorators_exports, {
|
|
25
|
-
withTransition: () => import_withTransition.default
|
|
26
|
-
});
|
|
27
18
|
module.exports = __toCommonJS(decorators_exports);
|
|
28
|
-
|
|
19
|
+
__reExport(decorators_exports, require("./withTransition.cjs"), module.exports);
|
|
29
20
|
if (module.exports.default) module.exports = module.exports.default;
|
package/decorators/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './withTransition.js';
|
package/decorators/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from "./withTransition.js";
|
|
@@ -2,6 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
6
|
var __export = (target, all) => {
|
|
6
7
|
for (var name in all)
|
|
7
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -15,52 +16,66 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
16
|
return to;
|
|
16
17
|
};
|
|
17
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __publicField = (obj, key, value) => {
|
|
20
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
21
|
+
return value;
|
|
22
|
+
};
|
|
18
23
|
|
|
19
|
-
// packages/ui/decorators/withTransition.
|
|
24
|
+
// packages/ui/decorators/withTransition.ts
|
|
20
25
|
var withTransition_exports = {};
|
|
21
26
|
__export(withTransition_exports, {
|
|
22
|
-
|
|
27
|
+
withTransition: () => withTransition
|
|
23
28
|
});
|
|
24
29
|
module.exports = __toCommonJS(withTransition_exports);
|
|
25
30
|
var import_utils = require("@studiometa/js-toolkit/utils");
|
|
26
|
-
function delegateTransition(
|
|
27
|
-
return (0, import_utils.isArray)(
|
|
31
|
+
function delegateTransition(elementOrElements, name, endMode) {
|
|
32
|
+
return (0, import_utils.isArray)(elementOrElements) || elementOrElements instanceof NodeList ? Promise.all(
|
|
33
|
+
Array.from(elementOrElements).map((el) => (0, import_utils.transition)(el, name, endMode))
|
|
34
|
+
) : (0, import_utils.transition)(elementOrElements, name, endMode);
|
|
28
35
|
}
|
|
29
36
|
function withTransition(BaseClass) {
|
|
30
37
|
class Transition extends BaseClass {
|
|
31
|
-
static config = {
|
|
32
|
-
name: "Transition",
|
|
33
|
-
options: {
|
|
34
|
-
enterFrom: String,
|
|
35
|
-
enterActive: String,
|
|
36
|
-
enterTo: String,
|
|
37
|
-
enterKeep: Boolean,
|
|
38
|
-
leaveFrom: String,
|
|
39
|
-
leaveActive: String,
|
|
40
|
-
leaveTo: String,
|
|
41
|
-
leaveKeep: Boolean
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
38
|
get target() {
|
|
45
39
|
return this.$el;
|
|
46
40
|
}
|
|
47
|
-
enter(target) {
|
|
41
|
+
async enter(target) {
|
|
48
42
|
const { enterFrom, enterActive, enterTo, enterKeep, leaveTo } = this.$options;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
await delegateTransition(
|
|
44
|
+
target != null ? target : this.target,
|
|
45
|
+
{
|
|
46
|
+
from: (leaveTo + " " + enterFrom).trim(),
|
|
47
|
+
active: enterActive,
|
|
48
|
+
to: enterTo
|
|
49
|
+
},
|
|
50
|
+
enterKeep && "keep"
|
|
51
|
+
);
|
|
54
52
|
}
|
|
55
|
-
leave(target) {
|
|
53
|
+
async leave(target) {
|
|
56
54
|
const { leaveFrom, leaveActive, leaveTo, leaveKeep, enterTo } = this.$options;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
await delegateTransition(
|
|
56
|
+
target != null ? target : this.target,
|
|
57
|
+
{
|
|
58
|
+
from: (enterTo + " " + leaveFrom).trim(),
|
|
59
|
+
active: leaveActive,
|
|
60
|
+
to: leaveTo
|
|
61
|
+
},
|
|
62
|
+
leaveKeep && "keep"
|
|
63
|
+
);
|
|
62
64
|
}
|
|
63
65
|
}
|
|
66
|
+
__publicField(Transition, "config", {
|
|
67
|
+
name: "Transition",
|
|
68
|
+
options: {
|
|
69
|
+
enterFrom: String,
|
|
70
|
+
enterActive: String,
|
|
71
|
+
enterTo: String,
|
|
72
|
+
enterKeep: Boolean,
|
|
73
|
+
leaveFrom: String,
|
|
74
|
+
leaveActive: String,
|
|
75
|
+
leaveTo: String,
|
|
76
|
+
leaveKeep: Boolean
|
|
77
|
+
}
|
|
78
|
+
});
|
|
64
79
|
return Transition;
|
|
65
80
|
}
|
|
66
81
|
if (module.exports.default) module.exports = module.exports.default;
|