@ngx-gallery/core
Advanced tools
Changelog
5.0.0-beta.0
loadingMode
option has been removed from the gallery component's input and from the global options.Changelog
4.0.0
imageSrc
and thumbSrc
attributes for image sources, in 4826d52.GALLERY_CONFIG
and LIGHTBOX_CONFIG
tokens, in 56c704f and 9cab04b.Optional()
on injected config in gallery and lightbox services, closes #234 in 31624f9.forRoot(config?)
to withConfig(config)
, in 8446c1a.providedIn: 'root'
from Lightbox
service and provid it locally in its module, in 7ba8dd9.forRoot()
has been removed from GalleryModule
and LightboxModule
.GalleryModule.withConfig({ ... })
to set config that applies on a module and its children (same applies on LightboxModule
).GALLERY_CONFIG
token with the config value in the root module (same applies on LightboxModule
with LIGHTBOX_CONFIG
).In this example, will set global config without importing the library in the main bundle
GALLERY_CONFIG
value in the root moduleimport { GALLERY_CONFIG } from '@ngx-gallery/core';
@NgModule({
providers: [
{
provide: GALLERY_CONFIG,
useValue: {
dots: true,
imageSize: 'cover'
}
}
]
})
export class AppModule { }
GalleryModule
in a feature moduleimport { GalleryModule } from '@ngx-gallery/core';
@NgModule({
imports: [
GalleryModule
]
})
export class FeatureModule { }
Changelog
4.0.0-beta.1
[dotSize]
, [bulletsPosition]
and [counterPosition]
options as inputs, in 946a856.[loadingMode]
option to gallery images which accepts determinate
or indeterminate
, in e8bdfb2.Changelog
4.0.0-beta.0
update(core, lightbox, gallerize): Update peer dependencies, closes #228 in bd8cdd3.
feat(core): Add bulletsPosition
option, closes #211 in 263d297.
feat(core): Add dotsSize
option, in e2e58b6.
feat(core): Add counterPosition
option, closes in ce7a8ad.
feat(core): Use HttpClient
to load and cache images in [lazyImage]
directive, in 15c3e88.
feat(core): Replace icon loader with a new radial progress component to report image loading progress while keeping the svg loading icon as an option, in a1028e8.
feat(core): Add default error template to <gallery-image>
in case if loading failed and add loadingError
option for custom error template, in cd258f5 and 9dbf6c4.
enhance(core): Enhance gallery dots styles, in de8d22b.
enhance(core): Allow gallery image to use unsafe URLs, closes #218 in da1ace1.
enhance(core): Use animationFrameScheduler
for smoother sliding animation, in 38b0aa6.
fix(core): Fix vertical scroll when using the gallery on touch devices, closes #161 in a239c29. (kudos goes to @harm-less)
refactor(core): [lazyImage]
directive => (loaded)
event no longer emits on error.
feat(lightbox): Set the focus back on the previously focused element when the lightbox is closed, in 266eddb.
feat(lightbox): Add role
, ariaLabel
, ariaLabelledBy
and ariaDescribedBy
attributes to the lightbox config LightboxConfig
, in a11d20d, 5b550e7.
enhance(lightbox): Import overlay default styles from @angular/cdk/overlay
, in 54c5d88.
enhance(lightbox): Improve lightbox styles, in 4a52161.
enhance(lightbox): Update lightbox overlay animation, closes #224 in bec077f.
refactor(lightbox): Use disposeOnNavigation
instead of Location
service, in 2262164.
Changelog
3.3.1
PortalModule
import from GalleryModule
, in 46ef735povidedIn: 'root'
for the Gallery
service, in 86eeaa7Changelog
3.3.0
Map<string, GalleryRef>
for instances holder type instead of untyped object in ac08077.state$
and config$
to state
and config
in 8de515b and 1e4fd06.galleryRef.destroy()
.Gallery
service the function destroy()
has been removed.