Skip to content

Releases: Ks89/angular-modal-gallery

5.0.1

27 Feb 22:46
Compare
Choose a tag to compare

Fix

  • I forgot to publish README.md on npmjs :)

Chores

  • update to 5.0.1 final in all examples

5.0.0 final

27 Feb 22:38
Compare
Choose a tag to compare

Features

  • Rewrite SCSS/CSS layout in a more powerful way with FLEXBOX fixing some well known bugs #98 #37 (BREAKING CHANGE)
  • Improve accessibility with ARIA #99 (BREAKING CHANGE)
  • Remove Angular 2 support (for instance replace Renderer with Renderer2) #70 (BREAKING CHANGE)
  • Update to Angular 5 #83
  • Partial support to Server-Side-Rendering (SSR) with Angular Universal (waiting for 'window' object on server side) #81 (BREAKING CHANGE)
  • Support for IE11 using navigator.mssaveblob #39
  • new class Image API (with modal and plain inner objects) (BREAKNIG CHANGE)
  • Improve modal layout with small previews and eventually also animations #48 (BREAKING CHANGE)
  • Thumbnail size/more options #91 (BREAKNIG CHANGE)
  • Completely rewrite "imagepointer feature" #49 (BREAKING CHANGE)
  • Square thumbnails are now supported #76 (BREAKING CHANGE)
  • Support configurable buttons with custom actions #79 and #92 (BREAKING CHANGE)
  • Infinite sliding will be disabled by default #84 (BREAKING CHANGE)
  • Click Outside will be enabled by default #85 (BREAKING CHANGE)
  • New image descriptions with figcaptions
  • remove Observable<Image[]> as input. I decided to switch to Image[] to simplify the sourcecode #105 (BREAKING CHANGE)
  • Remove all deprecated APIs (both showDownloadButton and showExtUrlButton)
  • prevent browser scrolling when modal gallery is opened

Performances

  • Performance improvements with trackById and OnPush (BREAKING CHANGE) (Commit 3cb5643 and #103)
  • add onpush strategy also to modal-gallery.component

Bugfixes

  • Fix a bug on Microsoft Edge Desktop #108

Chores

  • add credits and licenses to all images, icons and so on
  • test everything on IE11, Edge, iOS, Android...and what about iPhone X?
  • add sonarcloud.io
  • release the umd bundle on a CDN like unpkg.com (update: available HERE )

Demos

  • Update systemjs example to 5.0.0
  • Update webpack example to 5.0.0
  • Update angular-cli example to 5.0.0
  • Add new universal example to use SSR
  • Add new angular-cli-material example with Angular Material
  • switch from plnkr.co to stackblitz.com
  • Support "https://github.com/mgechev/angular-seed" #56 (it's also working with angular-modal-gallery >= 4.0.0)

Docs

  • Add a MINIMAL migration guide from 4.x.x to 5.0.0
  • Update public documentation website to 5.0.0
  • Publish public documentation website on a private VPS (coming soon in a week)
  • Update library documentation with typedocs to 5.0.0
  • add compodoc

Internal lib changes

  • General refactoring reorganizing the structure of this project and splitting some components #42 (BREAKING CHANGE)
  • Update unit testing to 5.0.0
  • choose which are the right entry points in package.json as described by angular package format 5 specifications

5.0.0-rc.3

24 Feb 18:34
Compare
Choose a tag to compare
5.0.0-rc.3 Pre-release
Pre-release

Bugfixes

  • full description is working again (broken since beta releases)

Others

  • add PayPal donation button and prettier badge

5.0.0-rc.2

23 Feb 23:41
Compare
Choose a tag to compare
5.0.0-rc.2 Pre-release
Pre-release

Features

  • temporary remove REFRESH button (BREAKING CHANGE) waiting to re-write a stable implementation to use it in future releases

Others

  • update all official examples

5.0.0-rc.1

17 Feb 17:23
Compare
Choose a tag to compare
5.0.0-rc.1 Pre-release
Pre-release

Click here for the official live example

Bugfixes

  • fix prod/aot build with strictNullChecks and add fullTemplateTypeCheck, preserveWhiteSpace, strictInjectionParameters, strictNullChecks to all examples. Reported by @Enngage #122
  • permit to remove images without to break previews
  • loading spinner is working again. Also I updated all examples with new images (modal+thumb) to show in a better way spinners #120

Internal library changes

  • PlainImage and ModalImage should share only common things, instead of extending a class with all params. This is really confusing.

Unit testing

  • complete unit testing

5.0.0-beta.2

10 Feb 21:04
Compare
Choose a tag to compare
5.0.0-beta.2 Pre-release
Pre-release

Click here for the official live example

Bugfixes

  • when slideConfig doesn't contain the 'infinite' property should disable inifinte sliding
  • fix accessibility bug in current-image when inifinte === true

Unit testing

  • add unit tests for current-image and modal-gallery

5.0.0-beta.1

24 Jan 22:17
Compare
Choose a tag to compare
5.0.0-beta.1 Pre-release
Pre-release

Click here for the official live example

Features

  • (requested by @Enngage) configure exturl button to navigate to an external url also in a new tab, instead of only in the current one #116
  • expose as public constants both default accessibility config, all button default configs and default size
  • increase the maximum size of current modal image reducing useless spacing and margins

Bugfixes

  • (thanks to @Enngage) current image should be centered also vertically

Unit testing

  • add unit tests for background, previews, dots, loading spinner, plain-gallery

5.0.0-alpha.5

14 Jan 00:46
Compare
Choose a tag to compare
5.0.0-alpha.5 Pre-release
Pre-release

Click here for the official live example

Features

  • add accessibility features to plain-gallery
  • improve PlainGalleryConfig.advanced adding the new 'additionalBackground' property BREAKING CHANGE

Bugfixes

  • fix some small bugs everywhere, in particular in upper-buttons.component

Internal library changes

  • switch to Nwrl nx workspace
  • improve scss with sass-lint and ts files with prettier
  • add both e2e and unit tests support with Nwrl nx workspace
  • move getIndex to utils
  • general refactoring to import from model/index and utils/index

CI

  • add sonarcloud.io analysys
  • fix and update all CI config files
  • add Jenkins 2 (both local macOS and remote config on a private vps)

Docs

  • add Typedoc also for interfaces, enums, classes, directives and so on

Others

  • add prettier config with both .prettierignore and .prettierrc.json
  • add sass-lint config with .sass-lint.yml

Unit testing

  • add tests for all services
  • add tests for all directive except for keyboard-navigation.directive
  • add test for upper-buttons.component

5.0.0-alpha.4

24 Dec 21:36
Compare
Choose a tag to compare
5.0.0-alpha.4 Pre-release
Pre-release

Click here for the official live example

Features

  • change all "Size" objects using strings to be able to set also 'auto' (apply the same fix to ksSize)
  • update all default sizes to support rectangle images (not only squared)
  • initial implementation of plain gallery with different layouts (row, column, grid) #91
  • re-implement 'image pointer' feature #49
  • add square thumbnails feature #76 with an API to choose between <img> and <a> for thumbs
  • new class Image API (with modal and plain inner objects)
  • add official examples of plain gallery (row with breakConfig, column with breakConfig, grid, row with image pointer, column with image pointer, custom row of images with description)
  • define APIs for plain gallery:
    PlainGalleryConfig = {
      strategy: ENUM of type PlainGalleryStrategy (ROW, COLUM, GRID, CUSTOM)
      layout: // PlainGalleryLayout type that can be either LineLayout, GridLayout or AdvancedLayout
      advanced?: AdvancedConfig {
        aTags: boolean // images will be shown as <a> tags with background instead of <img>
      }
    }
    
    Size = {
      width: string, // it can be '50px', percentage, 'auto' and so on
      height: string // the same for width
    }
    
    BreakConfig = {
      length: number,  //  number of images to show
      wrap: boolean // refers to the [wrap property of flex-box](https://css-tricks.com/snippets/css/a-guide-to-flexbox/#article-header-id-4)
    }
    
    LineLayout = {
      breakConfig: BreakConfig;
      justify: string; string // refers to the [justify property of flex-box](https://css-tricks.com/snippets/css/a-guide-to-flexbox/#article-header-id-6)
      size: Size;
    }
    
    GridLayout = {
      breakConfig: BreakConfig;
      size: Size;
    }
      
    AdvancedLayout = {
      modalOpenerByIndex: number, // index of the image to open
      hideDefaultPlainGallery: boolean  // set to true to hide the defaut gallery (prevent multiple plain galleries)
    }
    

Bugfixes

  • central image is now shown on Microsoft Edge Desktop #108
  • fix click-outside.directive on both Edge, IE and Firefox, changing event.toElement to event.target
  • fix typedoc support to build the documentation

Chores

  • add license attributions (in README and in the main angular-cli example) to both icons and spinners authors
  • add CI scripts (TravisCI, AppVeyor, CircleCI)
  • badges in README.md

Demos

  • update all demos to alpha 4
  • refactor systemjs demo moving html in an external file

Docs

  • Complete library documentation with typedocs

5.0.0-alpha.3

09 Dec 16:23
Compare
Choose a tag to compare
5.0.0-alpha.3 Pre-release
Pre-release

Features

  • prevent browser scrolling when modal gallery is opened (implemented thanks to this hide scrollbar to fix right margin (thanks to @Enngage))

Bugfixes

  • hide scrollbar to fix right margin (thanks to @Enngage)
  • restore isFirstImage and isLastImage to show previews again after reached the boundaries
  • add height:auto to previews to display also rectangular images