-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #4682 - Animate directive renamed as AnimateOnScroll
- Loading branch information
1 parent
42c27d9
commit b52e8c4
Showing
17 changed files
with
118 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/** | ||
* | ||
* AnimateOnScroll manages PrimeFlex CSS classes declaratively to during enter/leave animations on scroll or on page load. | ||
* | ||
* [Live Demo](https://primevue.org/animateonscroll) | ||
* | ||
* @module animateonscroll | ||
*/ | ||
import { DirectiveBinding, ObjectDirective } from 'vue'; | ||
import { DirectiveHooks } from '../basedirective/BaseDirective'; | ||
import { PassThroughOptions } from '../passthrough'; | ||
import { PassThrough } from '../ts-helpers'; | ||
|
||
/** | ||
* Defines options of AnimateOnScroll. | ||
*/ | ||
export interface AnimateOnScrollOptions { | ||
/** | ||
* AnimateOnScroll scroll to add when item begins to get displayed. | ||
*/ | ||
enterClass?: string | undefined; | ||
/** | ||
* AnimateOnScroll scroll to add when item begins to get hidden. | ||
*/ | ||
leaveClass?: string | undefined; | ||
/** | ||
* Used to pass attributes to DOM elements inside the component. | ||
* @type {AnimateOnScrollDirectivePassThroughOptions} | ||
*/ | ||
pt?: PassThrough<AnimateOnScrollDirectivePassThroughOptions>; | ||
/** | ||
* Used to configure passthrough(pt) options of the component. | ||
* @type {PassThroughOptions} | ||
*/ | ||
ptOptions?: PassThroughOptions; | ||
} | ||
|
||
/** | ||
* Custom passthrough(pt) directive options. | ||
*/ | ||
export interface AnimateOnScrollDirectivePassThroughOptions { | ||
/** | ||
* Used to manage all lifecycle hooks | ||
* @see {@link BaseDirective.DirectiveHooks} | ||
*/ | ||
hooks?: DirectiveHooks; | ||
} | ||
|
||
/** | ||
* Defines modifiers of AnimateOnScroll. | ||
*/ | ||
export interface AnimateOnScrollDirectiveModifiers { | ||
/** | ||
* Whether the animation will be repeated | ||
* @defaultValue true | ||
*/ | ||
once?: boolean | undefined; | ||
} | ||
|
||
/** | ||
* Binding of AnimateOnScroll directive. | ||
*/ | ||
export interface AnimateOnScrollDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> { | ||
/** | ||
* Value of the AnimateOnScroll. | ||
*/ | ||
value?: AnimateOnScrollOptions | undefined; | ||
/** | ||
* Modifiers of the tooltip. | ||
* @type {AnimateOnScrollDirectiveModifiers} | ||
*/ | ||
modifiers?: AnimateOnScrollDirectiveModifiers | undefined; | ||
} | ||
|
||
/** | ||
* **PrimeVue - AnimateOnScroll** | ||
* | ||
* _AnimateOnScroll manages PrimeFlex CSS classes declaratively to during enter/leave animations on scroll or on page load._ | ||
* | ||
* [Live Demo](https://www.primevue.org/animateonscroll/) | ||
* --- --- | ||
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png) | ||
* | ||
*/ | ||
declare const AnimateOnScroll: ObjectDirective; | ||
|
||
export default AnimateOnScroll; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import BaseDirective from 'primevue/basedirective'; | ||
|
||
const BaseAnimateOnScroll = BaseDirective.extend({}); | ||
|
||
export default BaseAnimateOnScroll; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"main": "./animateonscroll.cjs.js", | ||
"module": "./animateonscroll.esm.js", | ||
"unpkg": "./animateonscroll.min.js", | ||
"types": "./AnimateOnScroll.d.ts" | ||
} |
3 changes: 3 additions & 0 deletions
3
components/lib/animateonscroll/style/AnimateOnScrollStyle.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { BaseStyle } from '../../base/style/BaseStyle'; | ||
|
||
export interface AnimateOnScrollStyle extends BaseStyle {} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"main": "./animateonscrollstyle.cjs.js", | ||
"module": "./animateonscrollstyle.esm.js", | ||
"unpkg": "./animateonscrollstyle.min.js", | ||
"types": "./AnimateOnScrollStyle.d.ts" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters