Releases: MurhafSousli/ngx-gallery
v8.0.0
What's Changed
- feat(core): Add
isActive
to custom gallery template context, in 0b3f8bf. - refactor(core): Fix the iframe error regarding the
allow
attribute. - refactor(core): Change default navigation icons.
- refactor(core): Change default dots size.
- refactor(core): Change default counter styles.
- regret(core): Remove
itemLoaded
output. - regret(core): Remove
contentVisibilityAuto
option for version 8. - feat(core): Add
autoHeight
option, when set to true, the gallery height will fit the active item height. - feat(core): Add
autoItemSize
option, when set to true, the item will fit its image aspect ratio. - feat(core): Add
autoThumbSize
option, when set to true, the thumb will fit its image aspect ratio. - feat(core): Add
scrollBehavior
option. - feat(core): Add
navScrollBehavior
option. - feat(core): Add
thumbImageSize
option. - feat(core): Add more options to the video item.
- feat(core): Add
configSnapshot
toGalleryRef
class. - feat(core): Add an optional parameter
behavior
to allnext(behavior?)
,prev(behavior?)
,set(index, behavior?)
functions, fallbacks to thescrollBehavior
config. - refactor(core): Only display custom item template container when
itemTemplate
is provided. - feat(core): Use native
loading
attribute on allimg
andiframe
for native lazy loading. - refactor(core): Fix loop issue when sliding with using the mouse, in 1572bea.
- refactor(core): Remove
lazy-image
directive. - fix(core): Set current index in sliding event does not work if slider size number has fraction, in 58e89fb.
- fix(lightbox): close button is not displayed, in 506249b.
- feat(core): Use scrolling slider instead of transform method, allows touchpad scroll to slide the gallery as well as native sliding on mobile browser.
- feat(core): Add
resizeDebounceTime
option which is used to update the gallery on window resize event in 34a2723 and d867630. - feat(core): Add
slidingEase
andslidingDuration
to customize sliding ease and duration in 4c1db03. - feat(core): Add
thumbDetached
to detach thumb slider, closes #289 in 1f47484. - feat(core): Add
boxTemplate
to the gallery, closes #487 in f46e33a. - feat(core): Add
slidingDisabled
andthumbSlidingDisabled
options to enable/disable sliding on Mobile and Desktop using the touchpad. in 2451581. - feat(core): Add
mouseSlidingDisabled
andmouseThumbSlidingDisabled
options to enable/disable sliding on Desktop using the mouse. in 2451581. - feat(core): Images not shown, when number of images get larger, closes #484 in e819ebe.
- fix(core):
thumbView="contain"
Sliding thumbnails using gestures has an issue, closes #417 in e819ebe. - refactor(core): Remove
thumbMode
option from the gallery, in 18f71e3 - refactor(core): Remove
tapClick
event and use nativeclick
event, in 3d960cc. - refactor(core): Remove
ng-content
from the gallery, in 63e3b6b. - refactor(core): Remove
panSensitivity
option, in d1f8d34. - refactor(core): Remove
gestures
option, in 70cb00c. - refactor(core): Remove
reserveGesturesAction
option, in 4b07fc7. - refactor(core): Remove
zoomOut
option, in 19ba2b8.
Breaking changes:
HammerJs is only used for sliding using the mouse on desktop only, Sliding on mobile devices is now native scroll.
gestures
option has been deprecated.thumbMode
option has been deprecated, sliding thumbnails is free.zoomOut
has been deprecated.reserveGesturesAction
has been deprecated.panSensitivity
has been deprecated.- Remove
ng-content
from the gallery, useboxTemplate
option to add your custom layer. - The default value for
loadingStrategy
option has changed toLoadingStrategy.Preload
. - Added new dependency
bezier-easing
.
v8.0.0-beta.4
What's Changed
- feat(core): Add
contentVisibilityAuto
option to set the propercontent-visibility
andcontain-intrinsic-size
value on all gallery items/thumbs, in 73b20a9. - feat(core): Use native
loading
attribute on allimg
andiframe
for native lazy loading. - refactor(core): Fix loop issue when sliding with using the mouse, in 1572bea.
- refactor(core): Remove
lazy-image
directive. - fix(core): Set current index in sliding event does not work if slider size number has fraction, in 58e89fb.
- fix(lightbox): close button is not displayed, in 506249b.
Full Changelog: v8.0.0-beta.1...v8.0.0-beta.4
v8.0.0-beta.1
What's Changed
- v8.0.0 beta by @MurhafSousli in #488
Beta Stackblitz: https://stackblitz.com/edit/ngx-gallery-3e3kzf
Beta Demo: https://ngx-gallery-beta.netlify.app/#/
Installation
npm i ng-gallery@beta @angular/cdk bezier-easing
8.0.0-beta.1
- feat(core): Use scrolling slider instead of transform method, allows touchpad scroll to slide the gallery as well as native sliding on mobile browser.
- feat(core): Add
resizeDebounceTime
option which is used to update the gallery on window resize event in 34a2723 and d867630. - feat(core): Add
slidingEase
andslidingDuration
to customize sliding ease and duration in 4c1db03. - feat(core): Add
thumbDetached
to detach thumb slider, closes #289 in 1f47484. - feat(core): Add
boxTemplate
to the gallery, closes #487 in f46e33a. - feat(core): Add
slidingDisabled
andthumbSlidingDisabled
options to enable/disable sliding on Mobile and Desktop using the touchpad. in 2451581. - feat(core): Add
mouseSlidingDisabled
andmouseThumbSlidingDisabled
options to enable/disable sliding on Desktop using the mouse. in 2451581. - feat(core): Images not shown, when number of images get larger, closes #484 in e819ebe.
- fix(core):
thumbView="contain"
Sliding thumbnails using gestures has an issue, closes #417 in e819ebe. - refactor(core): Remove
thumbMode
option from the gallery, in 18f71e3 - refactor(core): Remove
tapClick
event and use nativeclick
event, in 3d960cc. - refactor(core): Remove
ng-content
from the gallery, in 63e3b6b. - refactor(core): Remove
panSensitivity
option, in d1f8d34. - refactor(core): Remove
gestures
option, in 70cb00c. - refactor(core): Remove
reserveGesturesAction
option, in 4b07fc7. - refactor(core): Remove
zoomOut
option, in 19ba2b8.
Breaking changes:
HammerJs is only used for sliding using the mouse on desktop only, Sliding on mobile devices is now native scroll.
gestures
option has been deprecated.thumbMode
option has been deprecated, sliding thumbnails is free.zoomOut
has been deprecated.reserveGesturesAction
has been deprecated.panSensitivity
has been deprecated.- Remove
ng-content
from the gallery, useboxTemplate
option to add your custom layer. - The default value for
loadingStrategy
option has changed toLoadingStrategy.Preload
. - Added new tiny dependency
bezier-easing
.
v7.1.2
What's Changed
- fix(core): Fix
reserveGestureAction
input and its default value in the lightbox, in ba95036. - fix(core): Update gallery sliding position properly on window resize, in f786d0a.
- fix(core): Slide bug with touch scroll with gallery thumbnails, related to #465 in eb1e60c in a26d63f.
Full Changelog: v7.1.1...v7.1.2
v7.1.1
What's Changed
- fix(core): Slide bug with touch scroll by @MurhafSousli in #476
- Ability to block the scrolling of page when sliding the gallery on mobile browser by @MurhafSousli in #478
Full Changelog: v7.1.0...v7.1.1
The new option reserveGesturesAction
blocks the page from accidently scrolling when user is not accurately sliding the gallery, this option is true
by default when using the lightbox.
v7.1.0
What's Changed
- fix(core): add missing attributes to thumb image and nav buttons by @MurhafSousli in #471
- feat(core): Settings change shouldn't require restart, closes #466 in ee71e52.
- fix(core): Unable to drag thumbnails properly, closes 473 in 8635701.
- fix(core): Setting gestures to false breaks the gallery, closes #464, #467 and #469 in a374603.
- fix(core): Set
alt
on gallery thumbnails and addrole="button"
to gallery nav, closes #468 in 57bebca. - fix(lightbox): Close icon in lightbox container being re-rendered all the time due to bug in template, closes #307 in 6bdc7a4.
- enhance(core, lightbox): Remove deprecated usage, in 23506eb.
Full Changelog: v7.0.4...v7.1.0
v7.0.4
What's Changed
- fix(core): imageSize option when set to contain by @MurhafSousli in #462
Full Changelog: v7.0.3...v7.0.4
v7.0.3
What's Changed
- fix initial sliding effect by @MurhafSousli in #459
- feat: Use
img
tag and addalt
attribute to gallery images by @MurhafSousli in #460
Full Changelog: v7.0.1...v7.0.3
v7.0.1
What's Changed
- fix: Gallery thumbs vertical slider does not navigate when direction by @MurhafSousli in #455
- Update dependencies for demo project by @vpetrusevici in #453
- enhance: Avoid triggering change detection on dragging by @MurhafSousli in #456
New Contributors
- @vpetrusevici made their first contribution in #453
Full Changelog: v7.0.0...v7.0.1