Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ngx-gallery/core

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngx-gallery/core - npm Package Versions

234

5.0.0-beta.0

Diff

Changelog

Source

5.0.0-beta.0

  • regret: Remove mode=intermediate option, closes #309 and #297 in b1df18c.

Breaking changes (There could be more breaking changes until version 5 is released which will make it compatible with Angular 9 and ivy)

  • The loadingMode option has been removed from the gallery component's input and from the global options.
murhaf
published 4.1.0-beta.0 •

murhaf
published 4.0.3 •

Changelog

Source

4.0.3

  • fix(core): Fix universal error, closes #262 in fc6c3f7.
  • fix(core): clean up state subject in <gallery-image> component in 7796b50.
murhaf
published 4.0.2-beta.0 •

Changelog

Source

4.0.2-beta.0

  • feat(core): Add thumbLoadingIcon and thumbLoadingError to gallery config, in 3f8cdca and f2cae92.
  • refactor(core): refactor the if/else logic in gallery image template, in f7d6a22.
murhaf
published 4.0.1 •

Changelog

Source

4.0.1

  • fix(core): Encapsulate the cache interceptor to gallery images only, closes #237 in 4616eec.
murhaf
published 4.0.0 •

Changelog

Source

4.0.0

  • feat(gallerize): Scan imageSrc and thumbSrc attributes for image sources, in 4826d52.
  • enhance(core, lightbox, gallerize): Ability to lazy load the library.
  • enhance(core, lightbox): Export GALLERY_CONFIG and LIGHTBOX_CONFIG tokens, in 56c704f and 9cab04b.
  • fix(core, lightbox): Add Optional() on injected config in gallery and lightbox services, closes #234 in 31624f9.
  • refactor(core, lightbox): Rename forRoot(config?) to withConfig(config), in 8446c1a.
  • refactor(lightbox): Remove providedIn: 'root' from Lightbox service and provid it locally in its module, in 7ba8dd9.

Breaking Changes

  • The function forRoot() has been removed from GalleryModule and LightboxModule.
  • Use GalleryModule.withConfig({ ... }) to set config that applies on a module and its children (same applies on LightboxModule).
  • To set global config across the entire app while still lazy load the library, provide the GALLERY_CONFIG token with the config value in the root module (same applies on LightboxModule with LIGHTBOX_CONFIG).
Example: Lazy load the library

In this example, will set global config without importing the library in the main bundle

  • Provide GALLERY_CONFIG value in the root module
import { GALLERY_CONFIG } from '@ngx-gallery/core';

@NgModule({
  providers: [
    {
      provide: GALLERY_CONFIG, 
      useValue: {
        dots: true,
        imageSize: 'cover'
      }
    }
  ]
})
export class AppModule { }
  • Import GalleryModule in a feature module
import { GalleryModule } from '@ngx-gallery/core';

@NgModule({
  imports: [
    GalleryModule
  ]
})
export class FeatureModule { }
murhaf
published 4.0.0-beta.1 •

Changelog

Source

4.0.0-beta.1

  • feat(core): Add indeterminate option to the radial progress, in df682c4.
  • enhance(core): Enhance thumbnails loading styles, in f34f90a.
  • fix(core): Expose [dotSize], [bulletsPosition] and [counterPosition] options as inputs, in 946a856.
  • fix(core): Add [loadingMode] option to gallery images which accepts determinate or indeterminate , in e8bdfb2.
  • regression(core): Fix undisplayed thumb image when a custom thumb template is used, in 34f2cc6.
  • enhance(gallerize): Run gallerize detector outside angular zone, makes opening the lightbox smoother, in 284925d and 98901b9.
murhaf
published 4.0.0-beta.0 •

Changelog

Source

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.

murhaf
published 3.3.1 •

Changelog

Source

3.3.1

  • fix(core): Remove duplicate delete execution in the destroyer function, in ae541ca
  • fix(core): Check galleryRef exists before deleting, in a2b32e2
  • fix(core): Remove duplicate config set, in 834c001
  • fix(core): Remove unnecessary PortalModule import from GalleryModule, in 46ef735
  • refactor(core): Use povidedIn: 'root' for the Gallery service, in 86eeaa7
  • fix(core, lightbox): Fix peer dependencies, in 236e540.
murhaf
published 3.3.0 •

Changelog

Source

3.3.0

  • refactor(core): Use Map<string, GalleryRef> for instances holder type instead of untyped object in ac08077.
  • refactor(core): Rename gallery state$ and config$ to state and config in 8de515b and 1e4fd06.
  • enhance(core): Improve instance destroyer, gallery delete its instance on component destroy in 65f3358.

Breaking Changes

  • Gallery can now be destroyed using its instance galleryRef.destroy().
  • In Gallery service the function destroy() has been removed.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc