├── .gitignore
├── README.md
├── dist
└── ngx-image-gallery
│ ├── README.md
│ ├── bundles
│ ├── ngx-image-gallery.umd.js
│ ├── ngx-image-gallery.umd.js.map
│ ├── ngx-image-gallery.umd.min.js
│ └── ngx-image-gallery.umd.min.js.map
│ ├── esm2015
│ ├── lib
│ │ ├── components
│ │ │ └── ngx-image-gallery
│ │ │ │ └── ngx-image-gallery.component.js
│ │ ├── directives
│ │ │ ├── click-outside.directive.js
│ │ │ └── mousewheel.directive.js
│ │ ├── index.js
│ │ └── ngx-image-gallery.conf.js
│ ├── ngx-image-gallery.js
│ └── public-api.js
│ ├── esm5
│ ├── lib
│ │ ├── components
│ │ │ └── ngx-image-gallery
│ │ │ │ └── ngx-image-gallery.component.js
│ │ ├── directives
│ │ │ ├── click-outside.directive.js
│ │ │ └── mousewheel.directive.js
│ │ ├── index.js
│ │ └── ngx-image-gallery.conf.js
│ ├── ngx-image-gallery.js
│ └── public-api.js
│ ├── fesm2015
│ ├── ngx-image-gallery.js
│ └── ngx-image-gallery.js.map
│ ├── fesm5
│ ├── ngx-image-gallery.js
│ └── ngx-image-gallery.js.map
│ ├── lib
│ ├── components
│ │ └── ngx-image-gallery
│ │ │ └── ngx-image-gallery.component.d.ts
│ ├── directives
│ │ ├── click-outside.directive.d.ts
│ │ └── mousewheel.directive.d.ts
│ ├── index.d.ts
│ └── ngx-image-gallery.conf.d.ts
│ ├── ngx-image-gallery.d.ts
│ ├── ngx-image-gallery.metadata.json
│ ├── package.json
│ └── public-api.d.ts
├── docs
├── 3rdpartylicenses.txt
├── favicon.ico
├── index.html
├── main-es2015.68a712c660a282149625.js
├── main-es5.68a712c660a282149625.js
├── polyfills-es2015.1f913f16a2d346cc8bdc.js
├── polyfills-es5.1a3c78b07cd6f16c6e9a.js
├── runtime-es2015.0811dcefd377500b5b1a.js
├── runtime-es5.0811dcefd377500b5b1a.js
└── styles.09e2c710755c8867a460.css
├── preview
├── .editorconfig
├── .gitignore
├── README.md
├── angular.json
├── browserslist
├── e2e
│ ├── protractor.conf.js
│ ├── src
│ │ ├── app.e2e-spec.ts
│ │ └── app.po.ts
│ └── tsconfig.json
├── karma.conf.js
├── package-lock.json
├── package.json
├── src
│ ├── app
│ │ ├── app.component.html
│ │ ├── app.component.scss
│ │ ├── app.component.ts
│ │ └── app.module.ts
│ ├── assets
│ │ └── .gitkeep
│ ├── environments
│ │ ├── environment.prod.ts
│ │ └── environment.ts
│ ├── favicon.ico
│ ├── index.html
│ ├── main.ts
│ ├── polyfills.ts
│ ├── styles.scss
│ ├── test.ts
│ ├── tsconfig.app.json
│ ├── tsconfig.spec.json
│ └── typings.d.ts
├── tsconfig.app.json
├── tsconfig.json
├── tsconfig.spec.json
└── tslint.json
└── src
├── .editorconfig
├── .gitignore
├── angular.json
├── package-lock.json
├── package.json
├── projects
└── ngx-image-gallery
│ ├── README.md
│ ├── karma.conf.js
│ ├── ng-package.json
│ ├── package.json
│ ├── src
│ ├── lib
│ │ ├── components
│ │ │ └── ngx-image-gallery
│ │ │ │ ├── ngx-image-gallery.component.html
│ │ │ │ ├── ngx-image-gallery.component.js
│ │ │ │ ├── ngx-image-gallery.component.scss
│ │ │ │ └── ngx-image-gallery.component.ts
│ │ ├── directives
│ │ │ ├── click-outside.directive.js
│ │ │ ├── click-outside.directive.ts
│ │ │ ├── mousewheel.directive.js
│ │ │ └── mousewheel.directive.ts
│ │ ├── index.ts
│ │ └── ngx-image-gallery.conf.ts
│ ├── public-api.ts
│ └── test.ts
│ ├── tsconfig.lib.json
│ ├── tsconfig.lib.prod.json
│ ├── tsconfig.spec.json
│ └── tslint.json
├── tsconfig.json
└── tslint.json
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # This project is no longer maintained. Please consider other image galleries.
2 | ---
3 |
4 | # ngx-image-gallery
5 | Probably the best Angular 4+ modal and inline image gallery. Angular upgrade for ng-image-gallery.
6 |
7 | 
8 |
9 | [](https://www.npmjs.com/package/ngx-image-gallery)
10 | [](https://www.npmjs.com/package/ngx-image-gallery)
11 | [](https://www.npmjs.com/package/ngx-image-gallery)
12 | [](https://thatisuday.github.io/ngx-image-gallery)
13 |
14 | ## Prerequisites
15 |
16 | - Hammerjs (required for swipe)
17 | ```
18 | npm i -S hammerjs lodash
19 | ```
20 |
21 | Then import hammerjs into your project (tip: in you main.ts file), e.g:
22 | ```
23 | import 'hammerjs';
24 | import { enableProdMode } from '@angular/core';
25 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
26 |
27 | import { AppModule } from './app/app.module';
28 | import { environment } from './environments/environment';
29 |
30 | if (environment.production) {
31 | enableProdMode();
32 | }
33 |
34 | document.addEventListener('DOMContentLoaded', () => {
35 | platformBrowserDynamic().bootstrapModule(AppModule)
36 | .catch(err => console.log(err));
37 | });
38 |
39 | ```
40 |
41 |
42 | ## Install
43 | ```bash
44 | npm install --save @web-aid-kit/ngx-image-gallery
45 | ```
46 |
47 | ## Import
48 | ```typescript
49 | import { NgxImageGalleryModule } from '@web-aid-kit/ngx-image-gallery';
50 |
51 | @NgModule({
52 | ...,
53 | imports: [
54 | NgxImageGalleryModule,
55 | ...
56 | ]
57 | })
58 | export class AppModule { }
59 | ```
60 |
61 | ## Use
62 |
63 | ```html
64 | // app.component.html
65 |
66 |
75 | ```
76 |
77 | ## Configure
78 | ```ts
79 | import { Component, OnInit, ViewChild } from '@angular/core';
80 | import { NgxImageGalleryComponent, GALLERY_IMAGE, GALLERY_CONF } from '@web-aid-kit/ngx-image-gallery';
81 |
82 | @Component({
83 | selector: 'app-root',
84 | templateUrl: './app.component.html',
85 | styleUrls: ['./app.component.scss']
86 | })
87 | export class AppComponent implements OnInit {
88 | // get reference to gallery component
89 | @ViewChild(NgxImageGalleryComponent) ngxImageGallery: NgxImageGalleryComponent;
90 |
91 | // gallery configuration
92 | conf: GALLERY_CONF = {
93 | imageOffset: '0px',
94 | showDeleteControl: false,
95 | showImageTitle: false,
96 | };
97 |
98 | // gallery images
99 | images: GALLERY_IMAGE[] = [
100 | {
101 | url: "https://images.pexels.com/photos/669013/pexels-photo-669013.jpeg?w=1260",
102 | altText: 'woman-in-black-blazer-holding-blue-cup',
103 | title: 'woman-in-black-blazer-holding-blue-cup',
104 | thumbnailUrl: "https://images.pexels.com/photos/669013/pexels-photo-669013.jpeg?w=60"
105 | },
106 | {
107 | url: "https://images.pexels.com/photos/669006/pexels-photo-669006.jpeg?w=1260",
108 | altText: 'two-woman-standing-on-the-ground-and-staring-at-the-mountain',
109 | extUrl: 'https://www.pexels.com/photo/two-woman-standing-on-the-ground-and-staring-at-the-mountain-669006/',
110 | thumbnailUrl: "https://images.pexels.com/photos/669006/pexels-photo-669006.jpeg?w=60"
111 | },
112 | ];
113 |
114 | constructor(){}
115 |
116 | ngOnInit() {}
117 |
118 | // METHODS
119 | // open gallery
120 | openGallery(index: number = 0) {
121 | this.ngxImageGallery.open(index);
122 | }
123 |
124 | // close gallery
125 | closeGallery() {
126 | this.ngxImageGallery.close();
127 | }
128 |
129 | // set new active(visible) image in gallery
130 | newImage(index: number = 0) {
131 | this.ngxImageGallery.setActiveImage(index);
132 | }
133 |
134 | // next image in gallery
135 | nextImage(index: number = 0) {
136 | this.ngxImageGallery.next();
137 | }
138 |
139 | // prev image in gallery
140 | prevImage(index: number = 0) {
141 | this.ngxImageGallery.prev();
142 | }
143 |
144 | /**************************************************/
145 |
146 | // EVENTS
147 | // callback on gallery opened
148 | galleryOpened(index) {
149 | console.info('Gallery opened at index ', index);
150 | }
151 |
152 | // callback on gallery closed
153 | galleryClosed() {
154 | console.info('Gallery closed.');
155 | }
156 |
157 | // callback on gallery image clicked
158 | galleryImageClicked(index) {
159 | console.info('Gallery image clicked with index ', index);
160 | }
161 |
162 | // callback on gallery image changed
163 | galleryImageChanged(index) {
164 | console.info('Gallery image changed to index ', index);
165 | }
166 |
167 | // callback on user clicked delete button
168 | deleteImage(index) {
169 | console.info('Delete image at index ', index);
170 | }
171 | }
172 | ```
173 |
174 | ### Interfaces
175 | ```ts
176 | // gallery configuration
177 | export interface GALLERY_CONF {
178 | imageBorderRadius?: string; // css border radius of image (default 3px)
179 | imageOffset?: string; // add gap between image and it's container (default 20px)
180 | imagePointer? :boolean; // show a pointer on image, should be true when handling onImageClick event (default false)
181 | showDeleteControl?: boolean; // show image delete icon (default false)
182 | showCloseControl?: boolean; // show gallery close icon (default true)
183 | showExtUrlControl?: boolean; // show image external url icon (default true)
184 | showImageTitle?: boolean; // show image title text (default true)
185 | showThumbnails?: boolean; // show thumbnails (default true)
186 | closeOnEsc?: boolean; // close gallery on `Esc` button press (default true)
187 | reactToKeyboard?: boolean; // change image on keyboard arrow press (default true)
188 | reactToMouseWheel?: boolean; // change image on mouse wheel scroll (default true)
189 | reactToRightClick?: boolean; // disable right click on gallery (default false)
190 | thumbnailSize?: number; // thumbnail size (default 30)
191 | backdropColor?: string; // gallery backdrop (background) color (default rgba(13,13,14,0.85))
192 | inline?: boolean; // make gallery inline (default false)
193 | showArrows?: boolean; // show prev / next arrows (default true)
194 | }
195 |
196 | // gallery image
197 | export interface GALLERY_IMAGE {
198 | url: string; // url of the image
199 | thumbnailUrl?: string; // thumbnail url (recommended), if not present, gallery will use `url` property to get thumbnail image.
200 | altText?: string; // alt text for image
201 | title?: string; // title of the image
202 | extUrl?: string; // external url of image
203 | extUrlTarget?: string; // external url target e.g. '_blank', '_self' etc.
204 | }
205 | ```
206 |
207 | > All properties ending with `?` are optional.
208 |
209 | # Make gallery inline
210 | You can make gallery **inline** like a carousel by setting `conf.inline` to `true` but make sure to change `conf.backdropColor` as well if you need white backdrop color. Also `width` and `height` of the gallery can be adjusted by manually applying css styles with `!important` flag on gallery element.
211 |
212 | # Dynamic Update
213 | You can update gallery images `images` and gallery configuration `conf` anytime you want even when gallery is opened but due to Angular's change detection restrictions you must assign these variable to new value instead of changing internal properties as mentioned below.
214 |
215 | ```ts
216 | // change images
217 | this.images = this.images.concat([...]);
218 |
219 | // change conf
220 | this.conf = {...};
221 | ```
222 |
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/README.md:
--------------------------------------------------------------------------------
1 | # Need maintainers
2 | Due to my hectic schedule, it is getting hard to maintain this repository. If anybody is interested to work on this project, please give a pull request to fix some critical issues and enhancements.
3 |
4 | ---
5 |
6 | # ngx-image-gallery
7 | Probably the best Angular 4+ modal and inline image gallery. Angular upgrade for ng-image-gallery.
8 |
9 | [](https://thatisuday.github.io)
10 |
11 | [](https://www.npmjs.com/package/ngx-image-gallery)
12 | [](https://www.npmjs.com/package/ngx-image-gallery)
13 | [](https://www.npmjs.com/package/ngx-image-gallery)
14 | [](https://thatisuday.github.io/ngx-image-gallery)
15 |
16 | ## Prerequisites
17 |
18 | - Hammerjs (required for swipe)
19 | ```
20 | npm i -S hammerjs lodash
21 | ```
22 |
23 | Then import hammerjs into your project (tip: in you main.ts file), e.g:
24 | ```
25 | import 'hammerjs';
26 | import { enableProdMode } from '@angular/core';
27 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
28 |
29 | import { AppModule } from './app/app.module';
30 | import { environment } from './environments/environment';
31 |
32 | if (environment.production) {
33 | enableProdMode();
34 | }
35 |
36 | document.addEventListener('DOMContentLoaded', () => {
37 | platformBrowserDynamic().bootstrapModule(AppModule)
38 | .catch(err => console.log(err));
39 | });
40 |
41 | ```
42 |
43 |
44 | ## Install
45 | ```bash
46 | npm install --save @web-aid-kit/ngx-image-gallery
47 | ```
48 |
49 | ## Import
50 | ```typescript
51 | import { NgxImageGalleryModule } from '@web-aid-kit/ngx-image-gallery';
52 |
53 | @NgModule({
54 | ...,
55 | imports: [
56 | NgxImageGalleryModule,
57 | ...
58 | ]
59 | })
60 | export class AppModule { }
61 | ```
62 |
63 | ## Use
64 |
65 | ```html
66 | // app.component.html
67 |
68 |
77 | ```
78 |
79 | ## Configure
80 | ```ts
81 | import { Component, OnInit, ViewChild } from '@angular/core';
82 | import { NgxImageGalleryComponent, GALLERY_IMAGE, GALLERY_CONF } from '@web-aid-kit/ngx-image-gallery';
83 |
84 | @Component({
85 | selector: 'app-root',
86 | templateUrl: './app.component.html',
87 | styleUrls: ['./app.component.scss']
88 | })
89 | export class AppComponent implements OnInit {
90 | // get reference to gallery component
91 | @ViewChild(NgxImageGalleryComponent) ngxImageGallery: NgxImageGalleryComponent;
92 |
93 | // gallery configuration
94 | conf: GALLERY_CONF = {
95 | imageOffset: '0px',
96 | showDeleteControl: false,
97 | showImageTitle: false,
98 | };
99 |
100 | // gallery images
101 | images: GALLERY_IMAGE[] = [
102 | {
103 | url: "https://images.pexels.com/photos/669013/pexels-photo-669013.jpeg?w=1260",
104 | altText: 'woman-in-black-blazer-holding-blue-cup',
105 | title: 'woman-in-black-blazer-holding-blue-cup',
106 | thumbnailUrl: "https://images.pexels.com/photos/669013/pexels-photo-669013.jpeg?w=60"
107 | },
108 | {
109 | url: "https://images.pexels.com/photos/669006/pexels-photo-669006.jpeg?w=1260",
110 | altText: 'two-woman-standing-on-the-ground-and-staring-at-the-mountain',
111 | extUrl: 'https://www.pexels.com/photo/two-woman-standing-on-the-ground-and-staring-at-the-mountain-669006/',
112 | thumbnailUrl: "https://images.pexels.com/photos/669006/pexels-photo-669006.jpeg?w=60"
113 | },
114 | ];
115 |
116 | constructor(){}
117 |
118 | ngOnInit() {}
119 |
120 | // METHODS
121 | // open gallery
122 | openGallery(index: number = 0) {
123 | this.ngxImageGallery.open(index);
124 | }
125 |
126 | // close gallery
127 | closeGallery() {
128 | this.ngxImageGallery.close();
129 | }
130 |
131 | // set new active(visible) image in gallery
132 | newImage(index: number = 0) {
133 | this.ngxImageGallery.setActiveImage(index);
134 | }
135 |
136 | // next image in gallery
137 | nextImage(index: number = 0) {
138 | this.ngxImageGallery.next();
139 | }
140 |
141 | // prev image in gallery
142 | prevImage(index: number = 0) {
143 | this.ngxImageGallery.prev();
144 | }
145 |
146 | /**************************************************/
147 |
148 | // EVENTS
149 | // callback on gallery opened
150 | galleryOpened(index) {
151 | console.info('Gallery opened at index ', index);
152 | }
153 |
154 | // callback on gallery closed
155 | galleryClosed() {
156 | console.info('Gallery closed.');
157 | }
158 |
159 | // callback on gallery image clicked
160 | galleryImageClicked(index) {
161 | console.info('Gallery image clicked with index ', index);
162 | }
163 |
164 | // callback on gallery image changed
165 | galleryImageChanged(index) {
166 | console.info('Gallery image changed to index ', index);
167 | }
168 |
169 | // callback on user clicked delete button
170 | deleteImage(index) {
171 | console.info('Delete image at index ', index);
172 | }
173 | }
174 | ```
175 |
176 | ### Interfaces
177 | ```ts
178 | // gallery configuration
179 | export interface GALLERY_CONF {
180 | imageBorderRadius?: string; // css border radius of image (default 3px)
181 | imageOffset?: string; // add gap between image and it's container (default 20px)
182 | imagePointer? :boolean; // show a pointer on image, should be true when handling onImageClick event (default false)
183 | showDeleteControl?: boolean; // show image delete icon (default false)
184 | showCloseControl?: boolean; // show gallery close icon (default true)
185 | showExtUrlControl?: boolean; // show image external url icon (default true)
186 | showImageTitle?: boolean; // show image title text (default true)
187 | showThumbnails?: boolean; // show thumbnails (default true)
188 | closeOnEsc?: boolean; // close gallery on `Esc` button press (default true)
189 | reactToKeyboard?: boolean; // change image on keyboard arrow press (default true)
190 | reactToMouseWheel?: boolean; // change image on mouse wheel scroll (default true)
191 | reactToRightClick?: boolean; // disable right click on gallery (default false)
192 | thumbnailSize?: number; // thumbnail size (default 30)
193 | backdropColor?: string; // gallery backdrop (background) color (default rgba(13,13,14,0.85))
194 | inline?: boolean; // make gallery inline (default false)
195 | showArrows?: boolean; // show prev / next arrows (default true)
196 | }
197 |
198 | // gallery image
199 | export interface GALLERY_IMAGE {
200 | url: string; // url of the image
201 | thumbnailUrl?: string; // thumbnail url (recommended), if not present, gallery will use `url` property to get thumbnail image.
202 | altText?: string; // alt text for image
203 | title?: string; // title of the image
204 | extUrl?: string; // external url of image
205 | extUrlTarget?: string; // external url target e.g. '_blank', '_self' etc.
206 | }
207 | ```
208 |
209 | > All properties ending with `?` are optional.
210 |
211 | # Make gallery inline
212 | You can make gallery **inline** like a carousel by setting `conf.inline` to `true` but make sure to change `conf.backdropColor` as well if you need white backdrop color. Also `width` and `height` of the gallery can be adjusted by manually applying css styles with `!important` flag on gallery element.
213 |
214 | # Dynamic Update
215 | You can update gallery images `images` and gallery configuration `conf` anytime you want even when gallery is opened but due to Angular's change detection restrictions you must assign these variable to new value instead of changing internal properties as mentioned below.
216 |
217 | ```ts
218 | // change images
219 | this.images = this.images.concat([...]);
220 |
221 | // change conf
222 | this.conf = {...};
223 | ```
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/bundles/ngx-image-gallery.umd.min.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["ng://ngx-image-gallery/lib/components/ngx-image-gallery/ngx-image-gallery.component.ts","ng://ngx-image-gallery/lib/directives/click-outside.directive.ts","ng://ngx-image-gallery/lib/directives/mousewheel.directive.ts","ng://ngx-image-gallery/lib/index.ts"],"names":["KEY_CODES","37","39","27","DEFAULT_CONF","imageBorderRadius","imageOffset","imagePointer","showDeleteControl","showCloseControl","showExtUrlControl","showImageTitle","showThumbnails","closeOnEsc","reactToKeyboard","reactToMouseWheel","reactToRightClick","thumbnailSize","backdropColor","inline","showArrows","NgxImageGalleryComponent","sanitizer","galleryElem","renderer","cdRef","_this","this","opened","conf","images","onOpen","EventEmitter","onClose","onDelete","onImageChange","onImageClicked","onError","loading","activeImageIndex","thumbnailMargin","thumbnailsScrollerLeftMargin","fitThumbnails","debounce","thumbnailParams","thumbnailsRenderParams","newThumbnailMargin","debouncedPrev","prev","leading","trailing","debouncedNext","next","Object","defineProperty","prototype","length","thumbnailsContainerWidth","thumbnailsElem","nativeElement","offsetWidth","thumbnailsInView","Math","floor","newThumbnailSize","outThumbnails","setGalleryConf","assign","loadImage","index","galleryImage","_cached","Promise","resolve","reject","image","Image","src","url","onload","onerror","error","activateImage","imageIndex","emit","then","_imageIndex","detectChanges","setTimeout","scrollThumbnails","catch","console","warn","ngOnInit","setStyle","addClass","open","ngOnChanges","changes","firstChange","currentValue","previousValue","onKeyboardInput","event","keyCode","close","onWindowResize","onFirstImage","onLastImage","setActiveImage","deleteImage","mouseWheelUp","mouseWheelDown","clickOnImage","rightClickOnImage","stopPropagation","DomSanitizer","ElementRef","Renderer2","ChangeDetectorRef","__decorate","HostBinding","Input","Output","ViewChild","HostListener","tslib","Component","selector","template","ClickOutsideDirective","_elementRef","clickOutside","onClick","$event","targetElement","contains","Directive","MouseWheelDirective","onMouseWheelChrome","mouseWheelFunc","onMouseWheelFirefox","onMouseWheelIE","window","delta","max","min","wheelDelta","detail","returnValue","preventDefault","NgxImageGalleryModule","NgModule","imports","CommonModule","declarations","exports"],"mappings":"ufAsBA,IAAMA,EAAY,CACdC,GAAI,OACJC,GAAI,QACJC,GAAI,OAIFC,EAA6B,CAC/BC,kBAAmB,MACnBC,YAAa,OACbC,cAAc,EACdC,mBAAmB,EACnBC,kBAAkB,EAClBC,mBAAmB,EACnBC,gBAAgB,EAChBC,gBAAgB,EAChBC,YAAY,EACZC,iBAAiB,EACjBC,mBAAmB,EACnBC,mBAAmB,EACnBC,cAAe,GACfC,cAAe,sBACfC,QAAQ,EACRC,YAAY,gBAoLZ,SAAAC,EACWC,EACCC,EACAC,EACAC,GAJZ,IAAAC,EAAAC,KACWA,KAAAL,UAAAA,EACCK,KAAAJ,YAAAA,EACAI,KAAAH,SAAAA,EACAG,KAAAF,MAAAA,EA7KiBE,KAAAC,QAAkB,EAGtCD,KAAAE,KAAqB,GAGrBF,KAAAG,OAA0B,GAGzBH,KAAAI,OAAS,IAAIC,EAAAA,aACbL,KAAAM,QAAU,IAAID,EAAAA,aACdL,KAAAO,SAAW,IAAIF,EAAAA,aACfL,KAAAQ,cAAgB,IAAIH,EAAAA,aACpBL,KAAAS,eAAiB,IAAIJ,EAAAA,aACrBL,KAAAU,QAAU,IAAIL,EAAAA,aAQxBL,KAAAW,SAAmB,EAGnBX,KAAAY,iBAA2B,KAG3BZ,KAAAa,gBAA0B,UAC1Bb,KAAAc,6BAAuC,MAmH/Bd,KA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AAAA,aAAa,iBAAkB,CAAC,oDAISL,EAAAA,WAAAA,CAAzCK,EAAAA,aAAa,eAAgB,CAAC,+CAZpBa,EAAmBZ,EAAAN,WAAA,CAD/BiB,EAAAA,UAAU,CAAET,SAAU,kBACVU,mBCwBb,SAAAa,KACA,OADaA,EAAqBzB,EAAAN,WAAA,CAfjCgC,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,cAEJC,aAAc,CACVtI,EACAqH,EACAR,GAEJ0B,QAAS,CACLvI,EACAqH,EACAR,MAGKqB","sourcesContent":["import {\n Component,\n OnInit,\n HostBinding,\n Input,\n HostListener,\n ElementRef,\n Renderer2,\n EventEmitter,\n Output,\n OnChanges,\n SimpleChanges,\n ViewChild,\n ChangeDetectorRef\n} from '@angular/core';\n\nimport {assign, debounce} from 'lodash';\n\nimport {GALLERY_CONF, GALLERY_IMAGE} from '../../ngx-image-gallery.conf';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n// key codes to react\nconst KEY_CODES = {\n 37: 'LEFT',\n 39: 'RIGHT',\n 27: 'ESC'\n};\n\n// default gallery configuration\nconst DEFAULT_CONF: GALLERY_CONF = {\n imageBorderRadius: '3px',\n imageOffset: '20px',\n imagePointer: false,\n showDeleteControl: false,\n showCloseControl: true,\n showExtUrlControl: true,\n showImageTitle: true,\n showThumbnails: true,\n closeOnEsc: true,\n reactToKeyboard: true,\n reactToMouseWheel: true,\n reactToRightClick: false,\n thumbnailSize: 30,\n backdropColor: 'rgba(13,13,14,0.85)',\n inline: false,\n showArrows: true\n};\n\n@Component({\n selector: 'ngx-image-gallery',\n templateUrl: './ngx-image-gallery.component.html',\n styleUrls: ['./ngx-image-gallery.component.scss']\n})\nexport class NgxImageGalleryComponent implements OnInit, OnChanges {\n\n // gallery opened memory\n @HostBinding('class.active') opened: boolean = false;\n\n // gallery configuration\n @Input() conf: GALLERY_CONF = {};\n\n // gallery images\n @Input() images: GALLERY_IMAGE[] = [];\n\n // event emmiters\n @Output() onOpen = new EventEmitter();\n @Output() onClose = new EventEmitter();\n @Output() onDelete = new EventEmitter();\n @Output() onImageChange = new EventEmitter();\n @Output() onImageClicked = new EventEmitter();\n @Output() onError = new EventEmitter();\n\n // thumbnails container\n @ViewChild('thumbnails') thumbnailsElem: ElementRef;\n\n /***************************************************/\n\n // loading animation memory\n loading: boolean = false;\n\n // current active image index\n activeImageIndex: number = null;\n\n // thumbnail margin and scroll position\n thumbnailMargin: string = '0px 8px';\n thumbnailsScrollerLeftMargin: string = '0px';\n\n // active image\n get activeImage(): GALLERY_IMAGE {\n return this.images[this.activeImageIndex];\n }\n\n // if gallery is on : first image\n get onFirstImage(): boolean {\n return this.activeImageIndex == 0;\n }\n\n // if gallery is on : last image\n get onLastImage(): boolean {\n return this.activeImageIndex == (this.images.length - 1);\n }\n\n // get thumbnails viewport rendering parameters\n get thumbnailsRenderParams(): { thumbnailsInView: number, newThumbnailMargin: number, newThumbnailSize: number, thumbnailsScrollerLeftMargin: any } {\n let thumbnailsContainerWidth = this.thumbnailsElem.nativeElement.offsetWidth;\n\n let thumbnailMargin = 16;\n let thumbnailSize = thumbnailMargin + this.conf.thumbnailSize;\n let thumbnailsInView = Math.floor(thumbnailsContainerWidth / thumbnailSize);\n let extraSpaceInThumbnailsContainer = thumbnailsContainerWidth - (thumbnailsInView * thumbnailSize);\n let extraMargin = extraSpaceInThumbnailsContainer / thumbnailsInView;\n\n let newThumbnailMargin = thumbnailMargin + extraMargin;\n let newThumbnailSize = newThumbnailMargin + this.conf.thumbnailSize;\n\n let relativePositionOfActiveImageThumbnailToScroller = thumbnailsInView - (thumbnailsInView - this.activeImageIndex);\n let thumbnailsScrollerLeftMargin: any;\n\n if (relativePositionOfActiveImageThumbnailToScroller > thumbnailsInView - 2) {\n var outThumbnails = ((this.activeImageIndex + 1) - thumbnailsInView) + 1;\n\n if (this.activeImageIndex != (this.images.length - 1)) {\n thumbnailsScrollerLeftMargin = '-' + (newThumbnailSize * outThumbnails) + 'px';\n }\n else {\n thumbnailsScrollerLeftMargin = '-' + (newThumbnailSize * (outThumbnails - 1)) + 'px';\n }\n } else {\n thumbnailsScrollerLeftMargin = '0px';\n }\n\n return {\n thumbnailsInView,\n newThumbnailMargin,\n newThumbnailSize,\n thumbnailsScrollerLeftMargin\n };\n }\n\n // set gallery configuration\n private setGalleryConf(conf: GALLERY_CONF) {\n this.conf = assign(DEFAULT_CONF, conf);\n }\n\n // load image and return promise\n private loadImage(index: number): Promise {\n const galleryImage: GALLERY_IMAGE = this.images[index];\n\n // check if image is cached\n if (galleryImage._cached) {\n return Promise.resolve(index);\n }\n else {\n return new Promise((resolve, reject) => {\n this.loading = true;\n\n let image = new Image();\n image.src = galleryImage.url;\n\n image.onload = () => {\n this.loading = false;\n galleryImage._cached = true;\n resolve(index);\n };\n\n image.onerror = (error) => {\n this.loading = false;\n reject(error);\n };\n });\n }\n }\n\n // activate image (set active image)\n private activateImage(imageIndex: number) {\n // prevent loading if already loading\n if (this.loading) return false;\n\n // emit event\n this.onImageChange.emit(imageIndex);\n\n this.loadImage(imageIndex)\n .then(_imageIndex => {\n this.activeImageIndex = _imageIndex;\n // Trigger change detection manually to support ChangeDetectionStrategy.OnPush\n this.cdRef.detectChanges();\n\n // scroll thumbnails\n setTimeout(() => {\n this.fitThumbnails();\n setTimeout(() => this.scrollThumbnails(), 300);\n });\n })\n .catch(error => {\n console.warn(error)\n this.onError.next(error);\n });\n }\n\n // adjust thumbnail margin to perfectly fit viewport\n private fitThumbnails = debounce(() => {\n // if thumbnails not visible, return false\n if (this.conf.showThumbnails == false) return false;\n\n let thumbnailParams = this.thumbnailsRenderParams;\n this.thumbnailMargin = '0 ' + (thumbnailParams.newThumbnailMargin / 2) + 'px';\n }, 300);\n\n // scroll thumbnails to perfectly position active image thumbnail in viewport\n private scrollThumbnails() {\n // if thumbnails not visible, return false\n if (this.conf.showThumbnails == false) return false;\n\n let thumbnailParams = this.thumbnailsRenderParams;\n this.thumbnailsScrollerLeftMargin = thumbnailParams.thumbnailsScrollerLeftMargin;\n }\n\n // debounced prev\n private debouncedPrev = debounce(() => this.prev(), 100, {'leading': true, 'trailing': false});\n\n // debounced next\n private debouncedNext = debounce(() => this.next(), 100, {'leading': true, 'trailing': false});\n\n /***************************************************/\n\n constructor(\n public sanitizer: DomSanitizer,\n private galleryElem: ElementRef,\n private renderer: Renderer2,\n private cdRef: ChangeDetectorRef\n ) {}\n\n ngOnInit() {\n // create final gallery configuration\n this.setGalleryConf(this.conf);\n\n // apply backdrop color\n this.renderer.setStyle(this.galleryElem.nativeElement, 'background-color', this.conf.backdropColor);\n\n // gallery inline class and auto open\n if (this.conf.inline) {\n this.renderer.addClass(this.galleryElem.nativeElement, 'inline');\n this.open(0);\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n // when gallery configuration changes\n if (changes.conf && changes.conf.firstChange == false) {\n this.setGalleryConf(changes.conf.currentValue);\n\n // apply backdrop color\n this.renderer.setStyle(this.galleryElem.nativeElement, 'background-color', this.conf.backdropColor);\n\n // gallery inline class and auto open\n if ((changes.conf.previousValue.inline != true) && this.conf.inline) {\n this.renderer.addClass(this.galleryElem.nativeElement, 'inline');\n this.open(0);\n }\n }\n\n // when gallery images changes\n if (changes.images && changes.images.firstChange == false) {\n this.images = changes.images.currentValue;\n\n if (this.images.length) {\n this.activateImage(0);\n }\n }\n\n }\n\n // keyboard event\n @HostListener('window:keydown', ['$event'])\n public onKeyboardInput(event: KeyboardEvent) {\n if (this.conf.reactToKeyboard && this.opened && !this.loading) {\n if (KEY_CODES[event.keyCode] == 'RIGHT') {\n this.next();\n }\n else if (KEY_CODES[event.keyCode] == 'LEFT') {\n this.prev();\n }\n else if ((KEY_CODES[event.keyCode] == 'ESC') && this.conf.closeOnEsc) {\n this.close();\n }\n }\n }\n\n // window resize event\n @HostListener('window:resize', ['$event'])\n public onWindowResize(event: Event) {\n if (this.opened && !this.loading) {\n this.fitThumbnails();\n setTimeout(() => this.scrollThumbnails(), 300);\n }\n }\n\n /***************************************************/\n\n // open gallery\n open(index: number = 0) {\n if (this.images.length) {\n this.opened = true;\n\n // emit event\n this.onOpen.emit(index);\n\n // activate image at given index\n this.activateImage(index);\n }\n else {\n console.warn('No images provided to ngx-image-gallery!');\n }\n }\n\n // close gallery\n close() {\n this.opened = false;\n this.activeImageIndex = 0;\n\n // emit event\n this.onClose.emit();\n }\n\n // change prev image\n prev() {\n if (this.onFirstImage == false) {\n this.activateImage(this.activeImageIndex - 1);\n }\n }\n\n // change next image\n next() {\n if (this.onLastImage == false) {\n this.activateImage(this.activeImageIndex + 1);\n }\n }\n\n // set image (activate)\n setActiveImage(index: number) {\n this.activateImage(index);\n }\n\n // delete image\n deleteImage(index: number) {\n this.onDelete.emit(index);\n }\n\n // mouse wheel up (prev image)\n mouseWheelUp() {\n if (this.conf.reactToMouseWheel) {\n this.debouncedNext();\n }\n }\n\n // mouse wheel down (next image)\n mouseWheelDown() {\n if (this.conf.reactToMouseWheel) {\n this.debouncedPrev();\n }\n }\n\n // click on image\n clickOnImage(index: number) {\n this.onImageClicked.emit(index);\n }\n\n // right click on image\n rightClickOnImage(event: Event) {\n event.stopPropagation();\n return this.conf.reactToRightClick;\n }\n\n}\n","import { Directive, ElementRef, Output, EventEmitter, HostListener } from '@angular/core';\n\n@Directive({\n selector: '[clickOutside]'\n})\nexport class ClickOutsideDirective {\n @Output() clickOutside: EventEmitter = new EventEmitter();\n\n constructor(private _elementRef: ElementRef) {}\n\n @HostListener('document:click', ['$event', '$event.target'])\n public onClick($event, targetElement) {\n const isClickedInside = this._elementRef.nativeElement.contains(targetElement);\n if (!isClickedInside) {\n this.clickOutside.emit($event);\n }\n }\n}","import { Directive, Output, HostListener, EventEmitter } from '@angular/core';\n\n@Directive({ selector: '[mouseWheel]' })\nexport class MouseWheelDirective {\n @Output() mouseWheelUp = new EventEmitter();\n @Output() mouseWheelDown = new EventEmitter();\n\n @HostListener('mousewheel', ['$event']) onMouseWheelChrome(event: any) {\n this.mouseWheelFunc(event);\n }\n\n @HostListener('DOMMouseScroll', ['$event']) onMouseWheelFirefox(event: any) {\n this.mouseWheelFunc(event);\n }\n\n @HostListener('onmousewheel', ['$event']) onMouseWheelIE(event: any) {\n this.mouseWheelFunc(event);\n }\n\n mouseWheelFunc(event: any) {\n var event = window.event || event; // old IE support\n var delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));\n if(delta > 0) {\n this.mouseWheelUp.emit(event);\n } else if(delta < 0) {\n this.mouseWheelDown.emit(event);\n }\n // for IE\n event.returnValue = false;\n // for Chrome and Firefox\n if(event.preventDefault) {\n event.preventDefault();\n }\n }\n}","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgxImageGalleryComponent} from './components/ngx-image-gallery/ngx-image-gallery.component';\nimport {ClickOutsideDirective} from './directives/click-outside.directive';\nimport {MouseWheelDirective} from './directives/mousewheel.directive';\n\nexport * from './components/ngx-image-gallery/ngx-image-gallery.component';\nexport * from './directives/click-outside.directive';\nexport * from './directives/mousewheel.directive';\nexport * from './ngx-image-gallery.conf';\n\n@NgModule({\n imports: [\n CommonModule\n ],\n declarations: [\n NgxImageGalleryComponent,\n MouseWheelDirective,\n ClickOutsideDirective\n ],\n exports: [\n NgxImageGalleryComponent,\n MouseWheelDirective,\n ClickOutsideDirective\n ]\n})\nexport class NgxImageGalleryModule {\n}\n"]}
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/esm2015/lib/directives/click-outside.directive.js:
--------------------------------------------------------------------------------
1 | import { __decorate } from "tslib";
2 | import { Directive, ElementRef, Output, EventEmitter, HostListener } from '@angular/core';
3 | let ClickOutsideDirective = class ClickOutsideDirective {
4 | constructor(_elementRef) {
5 | this._elementRef = _elementRef;
6 | this.clickOutside = new EventEmitter();
7 | }
8 | onClick($event, targetElement) {
9 | const isClickedInside = this._elementRef.nativeElement.contains(targetElement);
10 | if (!isClickedInside) {
11 | this.clickOutside.emit($event);
12 | }
13 | }
14 | };
15 | ClickOutsideDirective.ctorParameters = () => [
16 | { type: ElementRef }
17 | ];
18 | __decorate([
19 | Output()
20 | ], ClickOutsideDirective.prototype, "clickOutside", void 0);
21 | __decorate([
22 | HostListener('document:click', ['$event', '$event.target'])
23 | ], ClickOutsideDirective.prototype, "onClick", null);
24 | ClickOutsideDirective = __decorate([
25 | Directive({
26 | selector: '[clickOutside]'
27 | })
28 | ], ClickOutsideDirective);
29 | export { ClickOutsideDirective };
30 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpY2stb3V0c2lkZS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtaW1hZ2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9kaXJlY3RpdmVzL2NsaWNrLW91dHNpZGUuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUsxRixJQUFhLHFCQUFxQixHQUFsQyxNQUFhLHFCQUFxQjtJQUdoQyxZQUFvQixXQUF1QjtRQUF2QixnQkFBVyxHQUFYLFdBQVcsQ0FBWTtRQUZqQyxpQkFBWSxHQUFzQixJQUFJLFlBQVksRUFBRSxDQUFDO0lBRWpCLENBQUM7SUFHeEMsT0FBTyxDQUFDLE1BQU0sRUFBRSxhQUFhO1FBQ2xDLE1BQU0sZUFBZSxHQUFHLElBQUksQ0FBQyxXQUFXLENBQUMsYUFBYSxDQUFDLFFBQVEsQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUMvRSxJQUFJLENBQUMsZUFBZSxFQUFFO1lBQ3BCLElBQUksQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDO1NBQ2hDO0lBQ0gsQ0FBQztDQUNGLENBQUE7O1lBVGtDLFVBQVU7O0FBRmpDO0lBQVQsTUFBTSxFQUFFOzJEQUFzRDtBQUsvRDtJQURDLFlBQVksQ0FBQyxnQkFBZ0IsRUFBRSxDQUFDLFFBQVEsRUFBRSxlQUFlLENBQUMsQ0FBQztvREFNM0Q7QUFYVSxxQkFBcUI7SUFIakMsU0FBUyxDQUFDO1FBQ1QsUUFBUSxFQUFFLGdCQUFnQjtLQUMzQixDQUFDO0dBQ1cscUJBQXFCLENBWWpDO1NBWlkscUJBQXFCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGlyZWN0aXZlLCBFbGVtZW50UmVmLCBPdXRwdXQsIEV2ZW50RW1pdHRlciwgSG9zdExpc3RlbmVyIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBEaXJlY3RpdmUoe1xuICBzZWxlY3RvcjogJ1tjbGlja091dHNpZGVdJ1xufSlcbmV4cG9ydCBjbGFzcyBDbGlja091dHNpZGVEaXJlY3RpdmUge1xuICBAT3V0cHV0KCkgY2xpY2tPdXRzaWRlOiBFdmVudEVtaXR0ZXI8YW55PiA9IG5ldyBFdmVudEVtaXR0ZXIoKTtcblxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIF9lbGVtZW50UmVmOiBFbGVtZW50UmVmKSB7fVxuXG4gIEBIb3N0TGlzdGVuZXIoJ2RvY3VtZW50OmNsaWNrJywgWyckZXZlbnQnLCAnJGV2ZW50LnRhcmdldCddKVxuICBwdWJsaWMgb25DbGljaygkZXZlbnQsIHRhcmdldEVsZW1lbnQpIHtcbiAgICBjb25zdCBpc0NsaWNrZWRJbnNpZGUgPSB0aGlzLl9lbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQuY29udGFpbnModGFyZ2V0RWxlbWVudCk7XG4gICAgaWYgKCFpc0NsaWNrZWRJbnNpZGUpIHtcbiAgICAgIHRoaXMuY2xpY2tPdXRzaWRlLmVtaXQoJGV2ZW50KTtcbiAgICB9XG4gIH1cbn0iXX0=
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/esm2015/lib/directives/mousewheel.directive.js:
--------------------------------------------------------------------------------
1 | import { __decorate } from "tslib";
2 | import { Directive, Output, HostListener, EventEmitter } from '@angular/core';
3 | let MouseWheelDirective = class MouseWheelDirective {
4 | constructor() {
5 | this.mouseWheelUp = new EventEmitter();
6 | this.mouseWheelDown = new EventEmitter();
7 | }
8 | onMouseWheelChrome(event) {
9 | this.mouseWheelFunc(event);
10 | }
11 | onMouseWheelFirefox(event) {
12 | this.mouseWheelFunc(event);
13 | }
14 | onMouseWheelIE(event) {
15 | this.mouseWheelFunc(event);
16 | }
17 | mouseWheelFunc(event) {
18 | var event = window.event || event; // old IE support
19 | var delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));
20 | if (delta > 0) {
21 | this.mouseWheelUp.emit(event);
22 | }
23 | else if (delta < 0) {
24 | this.mouseWheelDown.emit(event);
25 | }
26 | // for IE
27 | event.returnValue = false;
28 | // for Chrome and Firefox
29 | if (event.preventDefault) {
30 | event.preventDefault();
31 | }
32 | }
33 | };
34 | __decorate([
35 | Output()
36 | ], MouseWheelDirective.prototype, "mouseWheelUp", void 0);
37 | __decorate([
38 | Output()
39 | ], MouseWheelDirective.prototype, "mouseWheelDown", void 0);
40 | __decorate([
41 | HostListener('mousewheel', ['$event'])
42 | ], MouseWheelDirective.prototype, "onMouseWheelChrome", null);
43 | __decorate([
44 | HostListener('DOMMouseScroll', ['$event'])
45 | ], MouseWheelDirective.prototype, "onMouseWheelFirefox", null);
46 | __decorate([
47 | HostListener('onmousewheel', ['$event'])
48 | ], MouseWheelDirective.prototype, "onMouseWheelIE", null);
49 | MouseWheelDirective = __decorate([
50 | Directive({ selector: '[mouseWheel]' })
51 | ], MouseWheelDirective);
52 | export { MouseWheelDirective };
53 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW91c2V3aGVlbC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtaW1hZ2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mYWxzZTtcbiAgICAvLyBmb3IgQ2hyb21lIGFuZCBGaXJlZm94XG4gICAgaWYoZXZlbnQucHJldmVudERlZmF1bHQpIHtcbiAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICB9XG4gIH1cbn0iXX0=
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/esm2015/lib/index.js:
--------------------------------------------------------------------------------
1 | import { __decorate } from "tslib";
2 | import { NgModule } from '@angular/core';
3 | import { CommonModule } from '@angular/common';
4 | import { NgxImageGalleryComponent } from './components/ngx-image-gallery/ngx-image-gallery.component';
5 | import { ClickOutsideDirective } from './directives/click-outside.directive';
6 | import { MouseWheelDirective } from './directives/mousewheel.directive';
7 | export * from './components/ngx-image-gallery/ngx-image-gallery.component';
8 | export * from './directives/click-outside.directive';
9 | export * from './directives/mousewheel.directive';
10 | let NgxImageGalleryModule = class NgxImageGalleryModule {
11 | };
12 | NgxImageGalleryModule = __decorate([
13 | NgModule({
14 | imports: [
15 | CommonModule
16 | ],
17 | declarations: [
18 | NgxImageGalleryComponent,
19 | MouseWheelDirective,
20 | ClickOutsideDirective
21 | ],
22 | exports: [
23 | NgxImageGalleryComponent,
24 | MouseWheelDirective,
25 | ClickOutsideDirective
26 | ]
27 | })
28 | ], NgxImageGalleryModule);
29 | export { NgxImageGalleryModule };
30 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtaW1hZ2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFFN0MsT0FBTyxFQUFDLHdCQUF3QixFQUFDLE1BQU0sNERBQTR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ICogZnJvbSAnLi9jb21wb25lbnRzL25neC1pbWFnZS1nYWxsZXJ5L25neC1pbWFnZS1nYWxsZXJ5LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2RpcmVjdGl2ZXMvY2xpY2stb3V0c2lkZS5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9kaXJlY3RpdmVzL21vdXNld2hlZWwuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vbmd4LWltYWdlLWdhbGxlcnkuY29uZic7XG5cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW1xuICAgICAgICBDb21tb25Nb2R1bGVcbiAgICBdLFxuICAgIGRlY2xhcmF0aW9uczogW1xuICAgICAgICBOZ3hJbWFnZUdhbGxlcnlDb21wb25lbnQsXG4gICAgICAgIE1vdXNlV2hlZWxEaXJlY3RpdmUsXG4gICAgICAgIENsaWNrT3V0c2lkZURpcmVjdGl2ZVxuICAgIF0sXG4gICAgZXhwb3J0czogW1xuICAgICAgICBOZ3hJbWFnZUdhbGxlcnlDb21wb25lbnQsXG4gICAgICAgIE1vdXNlV2hlZWxEaXJlY3RpdmUsXG4gICAgICAgIENsaWNrT3V0c2lkZURpcmVjdGl2ZVxuICAgIF1cbn0pXG5leHBvcnQgY2xhc3MgTmd4SW1hZ2VHYWxsZXJ5TW9kdWxlIHtcbn1cbiJdfQ==
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/esm2015/lib/ngx-image-gallery.conf.js:
--------------------------------------------------------------------------------
1 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWltYWdlLWdhbGxlcnkuY29uZi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1pbWFnZS1nYWxsZXJ5LyIsInNvdXJjZXMiOlsibGliL25neC1pbWFnZS1nYWxsZXJ5LmNvbmYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgR0FMTEVSWV9DT05GIHtcblx0aW1hZ2VCb3JkZXJSYWRpdXM/OiBzdHJpbmc7XG4gICAgaW1hZ2VPZmZzZXQ/OiBzdHJpbmc7XG4gICAgaW1hZ2VQb2ludGVyPyA6Ym9vbGVhbjtcbiAgICBzaG93RGVsZXRlQ29udHJvbD86IGJvb2xlYW47XG5cdHNob3dDbG9zZUNvbnRyb2w/OiBib29sZWFuO1xuXHRzaG93RXh0VXJsQ29udHJvbD86IGJvb2xlYW47XG5cdHNob3dBcnJvd3M/OiBib29sZWFuO1xuXHRzaG93SW1hZ2VUaXRsZT86IGJvb2xlYW47XG5cdHNob3dUaHVtYm5haWxzPzogYm9vbGVhbjtcblx0Y2xvc2VPbkVzYz86IGJvb2xlYW47XG5cdHJlYWN0VG9LZXlib2FyZD86IGJvb2xlYW47XG5cdHJlYWN0VG9Nb3VzZVdoZWVsPzogYm9vbGVhbjtcblx0cmVhY3RUb1JpZ2h0Q2xpY2s/OiBib29sZWFuO1xuXHR0aHVtYm5haWxTaXplPzogbnVtYmVyO1xuXHRiYWNrZHJvcENvbG9yPzogc3RyaW5nO1xuXHRpbmxpbmU/OiBib29sZWFuO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEdBTExFUllfSU1BR0Uge1xuXHRfY2FjaGVkPzogYm9vbGVhbjtcblx0dXJsOiBzdHJpbmc7XG5cdHRodW1ibmFpbFVybD86IHN0cmluZztcblx0YWx0VGV4dD86IHN0cmluZztcblx0dGl0bGU/OiBzdHJpbmc7XG5cdGV4dFVybD86IHN0cmluZztcblx0ZXh0VXJsVGFyZ2V0Pzogc3RyaW5nO1xufSJdfQ==
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/esm2015/ngx-image-gallery.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Generated bundle index. Do not edit.
3 | */
4 | export * from './public-api';
5 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWltYWdlLWdhbGxlcnkuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtaW1hZ2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbIm5neC1pbWFnZS1nYWxsZXJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/esm2015/public-api.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Public API Surface of ngx-image-gallery
3 | */
4 | export * from './lib/index';
5 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1pbWFnZS1nYWxsZXJ5LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsYUFBYSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBuZ3gtaW1hZ2UtZ2FsbGVyeVxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2luZGV4JztcbiJdfQ==
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/esm5/lib/directives/click-outside.directive.js:
--------------------------------------------------------------------------------
1 | import { __decorate } from "tslib";
2 | import { Directive, ElementRef, Output, EventEmitter, HostListener } from '@angular/core';
3 | var ClickOutsideDirective = /** @class */ (function () {
4 | function ClickOutsideDirective(_elementRef) {
5 | this._elementRef = _elementRef;
6 | this.clickOutside = new EventEmitter();
7 | }
8 | ClickOutsideDirective.prototype.onClick = function ($event, targetElement) {
9 | var isClickedInside = this._elementRef.nativeElement.contains(targetElement);
10 | if (!isClickedInside) {
11 | this.clickOutside.emit($event);
12 | }
13 | };
14 | ClickOutsideDirective.ctorParameters = function () { return [
15 | { type: ElementRef }
16 | ]; };
17 | __decorate([
18 | Output()
19 | ], ClickOutsideDirective.prototype, "clickOutside", void 0);
20 | __decorate([
21 | HostListener('document:click', ['$event', '$event.target'])
22 | ], ClickOutsideDirective.prototype, "onClick", null);
23 | ClickOutsideDirective = __decorate([
24 | Directive({
25 | selector: '[clickOutside]'
26 | })
27 | ], ClickOutsideDirective);
28 | return ClickOutsideDirective;
29 | }());
30 | export { ClickOutsideDirective };
31 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpY2stb3V0c2lkZS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtaW1hZ2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9kaXJlY3RpdmVzL2NsaWNrLW91dHNpZGUuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUsxRjtJQUdFLCtCQUFvQixXQUF1QjtRQUF2QixnQkFBVyxHQUFYLFdBQVcsQ0FBWTtRQUZqQyxpQkFBWSxHQUFzQixJQUFJLFlBQVksRUFBRSxDQUFDO0lBRWpCLENBQUM7SUFHeEMsdUNBQU8sR0FBZCxVQUFlLE1BQU0sRUFBRSxhQUFhO1FBQ2xDLElBQU0sZUFBZSxHQUFHLElBQUksQ0FBQyxXQUFXLENBQUMsYUFBYSxDQUFDLFFBQVEsQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUMvRSxJQUFJLENBQUMsZUFBZSxFQUFFO1lBQ3BC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JnZXRFbGVtZW50KTtcbiAgICBpZiAoIWlzQ2xpY2tlZEluc2lkZSkge1xuICAgICAgdGhpcy5jbGlja091dHNpZGUuZW1pdCgkZXZlbnQpO1xuICAgIH1cbiAgfVxufSJdfQ==
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/esm5/lib/directives/mousewheel.directive.js:
--------------------------------------------------------------------------------
1 | import { __decorate } from "tslib";
2 | import { Directive, Output, HostListener, EventEmitter } from '@angular/core';
3 | var MouseWheelDirective = /** @class */ (function () {
4 | function MouseWheelDirective() {
5 | this.mouseWheelUp = new EventEmitter();
6 | this.mouseWheelDown = new EventEmitter();
7 | }
8 | MouseWheelDirective.prototype.onMouseWheelChrome = function (event) {
9 | this.mouseWheelFunc(event);
10 | };
11 | MouseWheelDirective.prototype.onMouseWheelFirefox = function (event) {
12 | this.mouseWheelFunc(event);
13 | };
14 | MouseWheelDirective.prototype.onMouseWheelIE = function (event) {
15 | this.mouseWheelFunc(event);
16 | };
17 | MouseWheelDirective.prototype.mouseWheelFunc = function (event) {
18 | var event = window.event || event; // old IE support
19 | var delta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));
20 | if (delta > 0) {
21 | this.mouseWheelUp.emit(event);
22 | }
23 | else if (delta < 0) {
24 | this.mouseWheelDown.emit(event);
25 | }
26 | // for IE
27 | event.returnValue = false;
28 | // for Chrome and Firefox
29 | if (event.preventDefault) {
30 | event.preventDefault();
31 | }
32 | };
33 | __decorate([
34 | Output()
35 | ], MouseWheelDirective.prototype, "mouseWheelUp", void 0);
36 | __decorate([
37 | Output()
38 | ], MouseWheelDirective.prototype, "mouseWheelDown", void 0);
39 | __decorate([
40 | HostListener('mousewheel', ['$event'])
41 | ], MouseWheelDirective.prototype, "onMouseWheelChrome", null);
42 | __decorate([
43 | HostListener('DOMMouseScroll', ['$event'])
44 | ], MouseWheelDirective.prototype, "onMouseWheelFirefox", null);
45 | __decorate([
46 | HostListener('onmousewheel', ['$event'])
47 | ], MouseWheelDirective.prototype, "onMouseWheelIE", null);
48 | MouseWheelDirective = __decorate([
49 | Directive({ selector: '[mouseWheel]' })
50 | ], MouseWheelDirective);
51 | return MouseWheelDirective;
52 | }());
53 | export { MouseWheelDirective };
54 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW91c2V3aGVlbC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtaW1hZ2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9kaXJlY3RpdmVzL21vdXNld2hlZWwuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRzlFO0lBQUE7UUFDWSxpQkFBWSxHQUFHLElBQUksWUFBWSxFQUFFLENBQUM7UUFDbEMsbUJBQWMsR0FBRyxJQUFJLFlBQVksRUFBRSxDQUFDO0lBNkJoRCxDQUFDO0lBM0J5QyxnREFBa0IsR0FBbEIsVUFBbUIsS0FBVTtRQUNuRSxJQUFJLENBQUMsY0FBYyxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQzdCLENBQUM7SUFFMkMsaURBQW1CLEdBQW5CLFVBQW9CLEtBQVU7UUFDeEUsSUFBSSxDQUFDLGNBQWMsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUM3QixDQUFDO0lBRXlDLDRDQUFjLEdBQWQsVUFBZSxLQUFVO1FBQ2pFLElBQUksQ0FBQyxjQUFjLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDN0IsQ0FBQztJQUVELDRDQUFjLEdBQWQsVUFBZSxLQUFVO1FBQ3ZCLElBQUksS0FBSyxHQUFHLE1BQU0sQ0FBQyxLQUFLLElBQUksS0FBSyxDQUFDLENBQUMsaUJBQWlCO1FBQ3BELElBQUksS0FBSyxHQUFH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KGRlbHRhID4gMCkge1xuICAgICAgICB0aGlzLm1vdXNlV2hlZWxVcC5lbWl0KGV2ZW50KTtcbiAgICB9IGVsc2UgaWYoZGVsdGEgPCAwKSB7XG4gICAgICAgIHRoaXMubW91c2VXaGVlbERvd24uZW1pdChldmVudCk7XG4gICAgfVxuICAgIC8vIGZvciBJRVxuICAgIGV2ZW50LnJldHVyblZhbHVlID0gZmFsc2U7XG4gICAgLy8gZm9yIENocm9tZSBhbmQgRmlyZWZveFxuICAgIGlmKGV2ZW50LnByZXZlbnREZWZhdWx0KSB7XG4gICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgfVxuICB9XG59Il19
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/esm5/lib/index.js:
--------------------------------------------------------------------------------
1 | import { __decorate } from "tslib";
2 | import { NgModule } from '@angular/core';
3 | import { CommonModule } from '@angular/common';
4 | import { NgxImageGalleryComponent } from './components/ngx-image-gallery/ngx-image-gallery.component';
5 | import { ClickOutsideDirective } from './directives/click-outside.directive';
6 | import { MouseWheelDirective } from './directives/mousewheel.directive';
7 | export * from './components/ngx-image-gallery/ngx-image-gallery.component';
8 | export * from './directives/click-outside.directive';
9 | export * from './directives/mousewheel.directive';
10 | var NgxImageGalleryModule = /** @class */ (function () {
11 | function NgxImageGalleryModule() {
12 | }
13 | NgxImageGalleryModule = __decorate([
14 | NgModule({
15 | imports: [
16 | CommonModule
17 | ],
18 | declarations: [
19 | NgxImageGalleryComponent,
20 | MouseWheelDirective,
21 | ClickOutsideDirective
22 | ],
23 | exports: [
24 | NgxImageGalleryComponent,
25 | MouseWheelDirective,
26 | ClickOutsideDirective
27 | ]
28 | })
29 | ], NgxImageGalleryModule);
30 | return NgxImageGalleryModule;
31 | }());
32 | export { NgxImageGalleryModule };
33 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtaW1h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3gtaW1hZ2UtZ2FsbGVyeS9uZ3gtaW1hZ2UtZ2FsbGVyeS5jb21wb25lbnQnO1xuaW1wb3J0IHtDbGlja091dHNpZGVEaXJlY3RpdmV9IGZyb20gJy4vZGlyZWN0aXZlcy9jbGljay1vdXRzaWRlLmRpcmVjdGl2ZSc7XG5pbXBvcnQge01vdXNlV2hlZWxEaXJlY3RpdmV9IGZyb20gJy4vZGlyZWN0aXZlcy9tb3VzZXdoZWVsLmRpcmVjdGl2ZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vY29tcG9uZW50cy9uZ3gtaW1hZ2UtZ2FsbGVyeS9uZ3gtaW1hZ2UtZ2FsbGVyeS5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9kaXJlY3RpdmVzL2NsaWNrLW91dHNpZGUuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vZGlyZWN0aXZlcy9tb3VzZXdoZWVsLmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL25neC1pbWFnZS1nYWxsZXJ5LmNvbmYnO1xuXG5ATmdNb2R1bGUoe1xuICAgIGltcG9ydHM6IFtcbiAgICAgICAgQ29tbW9uTW9kdWxlXG4gICAgXSxcbiAgICBkZWNsYXJhdGlvbnM6IFtcbiAgICAgICAgTmd4SW1hZ2VHYWxsZXJ5Q29tcG9uZW50LFxuICAgICAgICBNb3VzZVdoZWVsRGlyZWN0aXZlLFxuICAgICAgICBDbGlja091dHNpZGVEaXJlY3RpdmVcbiAgICBdLFxuICAgIGV4cG9ydHM6IFtcbiAgICAgICAgTmd4SW1hZ2VHYWxsZXJ5Q29tcG9uZW50LFxuICAgICAgICBNb3VzZVdoZWVsRGlyZWN0aXZlLFxuICAgICAgICBDbGlja091dHNpZGVEaXJlY3RpdmVcbiAgICBdXG59KVxuZXhwb3J0IGNsYXNzIE5neEltYWdlR2FsbGVyeU1vZHVsZSB7XG59XG4iXX0=
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/esm5/lib/ngx-image-gallery.conf.js:
--------------------------------------------------------------------------------
1 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWltYWdlLWdhbGxlcnkuY29uZi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1pbWFnZS1nYWxsZXJ5LyIsInNvdXJjZXMiOlsibGliL25neC1pbWFnZS1nYWxsZXJ5LmNvbmYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgR0FMTEVSWV9DT05GIHtcblx0aW1hZ2VCb3JkZXJSYWRpdXM/OiBzdHJpbmc7XG4gICAgaW1hZ2VPZmZzZXQ/OiBzdHJpbmc7XG4gICAgaW1hZ2VQb2ludGVyPyA6Ym9vbGVhbjtcbiAgICBzaG93RGVsZXRlQ29udHJvbD86IGJvb2xlYW47XG5cdHNob3dDbG9zZUNvbnRyb2w/OiBib29sZWFuO1xuXHRzaG93RXh0VXJsQ29udHJvbD86IGJvb2xlYW47XG5cdHNob3dBcnJvd3M/OiBib29sZWFuO1xuXHRzaG93SW1hZ2VUaXRsZT86IGJvb2xlYW47XG5cdHNob3dUaHVtYm5haWxzPzogYm9vbGVhbjtcblx0Y2xvc2VPbkVzYz86IGJvb2xlYW47XG5cdHJlYWN0VG9LZXlib2FyZD86IGJvb2xlYW47XG5cdHJlYWN0VG9Nb3VzZVdoZWVsPzogYm9vbGVhbjtcblx0cmVhY3RUb1JpZ2h0Q2xpY2s/OiBib29sZWFuO1xuXHR0aHVtYm5haWxTaXplPzogbnVtYmVyO1xuXHRiYWNrZHJvcENvbG9yPzogc3RyaW5nO1xuXHRpbmxpbmU/OiBib29sZWFuO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEdBTExFUllfSU1BR0Uge1xuXHRfY2FjaGVkPzogYm9vbGVhbjtcblx0dXJsOiBzdHJpbmc7XG5cdHRodW1ibmFpbFVybD86IHN0cmluZztcblx0YWx0VGV4dD86IHN0cmluZztcblx0dGl0bGU/OiBzdHJpbmc7XG5cdGV4dFVybD86IHN0cmluZztcblx0ZXh0VXJsVGFyZ2V0Pzogc3RyaW5nO1xufSJdfQ==
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/esm5/ngx-image-gallery.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Generated bundle index. Do not edit.
3 | */
4 | export * from './public-api';
5 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWltYWdlLWdhbGxlcnkuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtaW1hZ2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbIm5neC1pbWFnZS1nYWxsZXJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/esm5/public-api.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Public API Surface of ngx-image-gallery
3 | */
4 | export * from './lib/index';
5 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1pbWFnZS1nYWxsZXJ5LyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsYUFBYSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBuZ3gtaW1hZ2UtZ2FsbGVyeVxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2luZGV4JztcbiJdfQ==
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/lib/components/ngx-image-gallery/ngx-image-gallery.component.d.ts:
--------------------------------------------------------------------------------
1 | import { OnInit, ElementRef, Renderer2, EventEmitter, OnChanges, SimpleChanges, ChangeDetectorRef } from '@angular/core';
2 | import { GALLERY_CONF, GALLERY_IMAGE } from '../../ngx-image-gallery.conf';
3 | import { DomSanitizer } from '@angular/platform-browser';
4 | export declare class NgxImageGalleryComponent implements OnInit, OnChanges {
5 | sanitizer: DomSanitizer;
6 | private galleryElem;
7 | private renderer;
8 | private cdRef;
9 | opened: boolean;
10 | conf: GALLERY_CONF;
11 | images: GALLERY_IMAGE[];
12 | onOpen: EventEmitter;
13 | onClose: EventEmitter;
14 | onDelete: EventEmitter;
15 | onImageChange: EventEmitter;
16 | onImageClicked: EventEmitter;
17 | onError: EventEmitter;
18 | thumbnailsElem: ElementRef;
19 | /***************************************************/
20 | loading: boolean;
21 | activeImageIndex: number;
22 | thumbnailMargin: string;
23 | thumbnailsScrollerLeftMargin: string;
24 | get activeImage(): GALLERY_IMAGE;
25 | get onFirstImage(): boolean;
26 | get onLastImage(): boolean;
27 | get thumbnailsRenderParams(): {
28 | thumbnailsInView: number;
29 | newThumbnailMargin: number;
30 | newThumbnailSize: number;
31 | thumbnailsScrollerLeftMargin: any;
32 | };
33 | private setGalleryConf;
34 | private loadImage;
35 | private activateImage;
36 | private fitThumbnails;
37 | private scrollThumbnails;
38 | private debouncedPrev;
39 | private debouncedNext;
40 | /***************************************************/
41 | constructor(sanitizer: DomSanitizer, galleryElem: ElementRef, renderer: Renderer2, cdRef: ChangeDetectorRef);
42 | ngOnInit(): void;
43 | ngOnChanges(changes: SimpleChanges): void;
44 | onKeyboardInput(event: KeyboardEvent): void;
45 | onWindowResize(event: Event): void;
46 | /***************************************************/
47 | open(index?: number): void;
48 | close(): void;
49 | prev(): void;
50 | next(): void;
51 | setActiveImage(index: number): void;
52 | deleteImage(index: number): void;
53 | mouseWheelUp(): void;
54 | mouseWheelDown(): void;
55 | clickOnImage(index: number): void;
56 | rightClickOnImage(event: Event): boolean;
57 | }
58 |
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/lib/directives/click-outside.directive.d.ts:
--------------------------------------------------------------------------------
1 | import { ElementRef, EventEmitter } from '@angular/core';
2 | export declare class ClickOutsideDirective {
3 | private _elementRef;
4 | clickOutside: EventEmitter;
5 | constructor(_elementRef: ElementRef);
6 | onClick($event: any, targetElement: any): void;
7 | }
8 |
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/lib/directives/mousewheel.directive.d.ts:
--------------------------------------------------------------------------------
1 | import { EventEmitter } from '@angular/core';
2 | export declare class MouseWheelDirective {
3 | mouseWheelUp: EventEmitter;
4 | mouseWheelDown: EventEmitter;
5 | onMouseWheelChrome(event: any): void;
6 | onMouseWheelFirefox(event: any): void;
7 | onMouseWheelIE(event: any): void;
8 | mouseWheelFunc(event: any): void;
9 | }
10 |
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/lib/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './components/ngx-image-gallery/ngx-image-gallery.component';
2 | export * from './directives/click-outside.directive';
3 | export * from './directives/mousewheel.directive';
4 | export * from './ngx-image-gallery.conf';
5 | export declare class NgxImageGalleryModule {
6 | }
7 |
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/lib/ngx-image-gallery.conf.d.ts:
--------------------------------------------------------------------------------
1 | export interface GALLERY_CONF {
2 | imageBorderRadius?: string;
3 | imageOffset?: string;
4 | imagePointer?: boolean;
5 | showDeleteControl?: boolean;
6 | showCloseControl?: boolean;
7 | showExtUrlControl?: boolean;
8 | showArrows?: boolean;
9 | showImageTitle?: boolean;
10 | showThumbnails?: boolean;
11 | closeOnEsc?: boolean;
12 | reactToKeyboard?: boolean;
13 | reactToMouseWheel?: boolean;
14 | reactToRightClick?: boolean;
15 | thumbnailSize?: number;
16 | backdropColor?: string;
17 | inline?: boolean;
18 | }
19 | export interface GALLERY_IMAGE {
20 | _cached?: boolean;
21 | url: string;
22 | thumbnailUrl?: string;
23 | altText?: string;
24 | title?: string;
25 | extUrl?: string;
26 | extUrlTarget?: string;
27 | }
28 |
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/ngx-image-gallery.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * Generated bundle index. Do not edit.
3 | */
4 | export * from './public-api';
5 |
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@web-aid-kit/ngx-image-gallery",
3 | "version": "v1.0.0-beta",
4 | "peerDependencies": {
5 | "@angular/common": "^9.0.7",
6 | "@angular/core": "^9.0.7",
7 | "hammerjs": "^2.0.8",
8 | "lodash": "^4.17.15",
9 | "tslib": "^1.10.0"
10 | },
11 | "main": "bundles/ngx-image-gallery.umd.js",
12 | "module": "fesm5/ngx-image-gallery.js",
13 | "es2015": "fesm2015/ngx-image-gallery.js",
14 | "esm5": "esm5/ngx-image-gallery.js",
15 | "esm2015": "esm2015/ngx-image-gallery.js",
16 | "fesm5": "fesm5/ngx-image-gallery.js",
17 | "fesm2015": "fesm2015/ngx-image-gallery.js",
18 | "typings": "ngx-image-gallery.d.ts",
19 | "metadata": "ngx-image-gallery.metadata.json",
20 | "sideEffects": false
21 | }
22 |
--------------------------------------------------------------------------------
/dist/ngx-image-gallery/public-api.d.ts:
--------------------------------------------------------------------------------
1 | export * from './lib/index';
2 |
--------------------------------------------------------------------------------
/docs/3rdpartylicenses.txt:
--------------------------------------------------------------------------------
1 | @angular-devkit/build-angular
2 | MIT
3 | The MIT License
4 |
5 | Copyright (c) 2017 Google, Inc.
6 |
7 | Permission is hereby granted, free of charge, to any person obtaining a copy
8 | of this software and associated documentation files (the "Software"), to deal
9 | in the Software without restriction, including without limitation the rights
10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | copies of the Software, and to permit persons to whom the Software is
12 | furnished to do so, subject to the following conditions:
13 |
14 | The above copyright notice and this permission notice shall be included in all
15 | copies or substantial portions of the Software.
16 |
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 | SOFTWARE.
24 |
25 |
26 | @angular/common
27 | MIT
28 |
29 | @angular/core
30 | MIT
31 |
32 | @angular/forms
33 | MIT
34 |
35 | @angular/platform-browser
36 | MIT
37 |
38 | core-js
39 | MIT
40 | Copyright (c) 2014-2020 Denis Pushkarev
41 |
42 | Permission is hereby granted, free of charge, to any person obtaining a copy
43 | of this software and associated documentation files (the "Software"), to deal
44 | in the Software without restriction, including without limitation the rights
45 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
46 | copies of the Software, and to permit persons to whom the Software is
47 | furnished to do so, subject to the following conditions:
48 |
49 | The above copyright notice and this permission notice shall be included in
50 | all copies or substantial portions of the Software.
51 |
52 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
54 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
55 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
56 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
57 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
58 | THE SOFTWARE.
59 |
60 |
61 | hammerjs
62 | MIT
63 | The MIT License (MIT)
64 |
65 | Copyright (C) 2011-2014 by Jorik Tangelder (Eight Media)
66 |
67 | Permission is hereby granted, free of charge, to any person obtaining a copy
68 | of this software and associated documentation files (the "Software"), to deal
69 | in the Software without restriction, including without limitation the rights
70 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
71 | copies of the Software, and to permit persons to whom the Software is
72 | furnished to do so, subject to the following conditions:
73 |
74 | The above copyright notice and this permission notice shall be included in
75 | all copies or substantial portions of the Software.
76 |
77 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
78 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
79 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
80 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
81 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
82 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
83 | THE SOFTWARE.
84 |
85 |
86 | lodash
87 | MIT
88 | Copyright OpenJS Foundation and other contributors
89 |
90 | Based on Underscore.js, copyright Jeremy Ashkenas,
91 | DocumentCloud and Investigative Reporters & Editors
92 |
93 | This software consists of voluntary contributions made by many
94 | individuals. For exact contribution history, see the revision history
95 | available at https://github.com/lodash/lodash
96 |
97 | The following license applies to all parts of this software except as
98 | documented below:
99 |
100 | ====
101 |
102 | Permission is hereby granted, free of charge, to any person obtaining
103 | a copy of this software and associated documentation files (the
104 | "Software"), to deal in the Software without restriction, including
105 | without limitation the rights to use, copy, modify, merge, publish,
106 | distribute, sublicense, and/or sell copies of the Software, and to
107 | permit persons to whom the Software is furnished to do so, subject to
108 | the following conditions:
109 |
110 | The above copyright notice and this permission notice shall be
111 | included in all copies or substantial portions of the Software.
112 |
113 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
114 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
115 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
116 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
117 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
118 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
119 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
120 |
121 | ====
122 |
123 | Copyright and related rights for sample code are waived via CC0. Sample
124 | code is defined as all source code displayed within the prose of the
125 | documentation.
126 |
127 | CC0: http://creativecommons.org/publicdomain/zero/1.0/
128 |
129 | ====
130 |
131 | Files located in the node_modules and vendor directories are externally
132 | maintained libraries used by this software which have their own
133 | licenses; we recommend you read them, as their terms may differ from the
134 | terms above.
135 |
136 |
137 | ngx-image-gallery
138 |
139 | regenerator-runtime
140 | MIT
141 | MIT License
142 |
143 | Copyright (c) 2014-present, Facebook, Inc.
144 |
145 | Permission is hereby granted, free of charge, to any person obtaining a copy
146 | of this software and associated documentation files (the "Software"), to deal
147 | in the Software without restriction, including without limitation the rights
148 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
149 | copies of the Software, and to permit persons to whom the Software is
150 | furnished to do so, subject to the following conditions:
151 |
152 | The above copyright notice and this permission notice shall be included in all
153 | copies or substantial portions of the Software.
154 |
155 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
156 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
157 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
158 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
159 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
160 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
161 | SOFTWARE.
162 |
163 |
164 | rxjs
165 | Apache-2.0
166 | Apache License
167 | Version 2.0, January 2004
168 | http://www.apache.org/licenses/
169 |
170 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
171 |
172 | 1. Definitions.
173 |
174 | "License" shall mean the terms and conditions for use, reproduction,
175 | and distribution as defined by Sections 1 through 9 of this document.
176 |
177 | "Licensor" shall mean the copyright owner or entity authorized by
178 | the copyright owner that is granting the License.
179 |
180 | "Legal Entity" shall mean the union of the acting entity and all
181 | other entities that control, are controlled by, or are under common
182 | control with that entity. For the purposes of this definition,
183 | "control" means (i) the power, direct or indirect, to cause the
184 | direction or management of such entity, whether by contract or
185 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
186 | outstanding shares, or (iii) beneficial ownership of such entity.
187 |
188 | "You" (or "Your") shall mean an individual or Legal Entity
189 | exercising permissions granted by this License.
190 |
191 | "Source" form shall mean the preferred form for making modifications,
192 | including but not limited to software source code, documentation
193 | source, and configuration files.
194 |
195 | "Object" form shall mean any form resulting from mechanical
196 | transformation or translation of a Source form, including but
197 | not limited to compiled object code, generated documentation,
198 | and conversions to other media types.
199 |
200 | "Work" shall mean the work of authorship, whether in Source or
201 | Object form, made available under the License, as indicated by a
202 | copyright notice that is included in or attached to the work
203 | (an example is provided in the Appendix below).
204 |
205 | "Derivative Works" shall mean any work, whether in Source or Object
206 | form, that is based on (or derived from) the Work and for which the
207 | editorial revisions, annotations, elaborations, or other modifications
208 | represent, as a whole, an original work of authorship. For the purposes
209 | of this License, Derivative Works shall not include works that remain
210 | separable from, or merely link (or bind by name) to the interfaces of,
211 | the Work and Derivative Works thereof.
212 |
213 | "Contribution" shall mean any work of authorship, including
214 | the original version of the Work and any modifications or additions
215 | to that Work or Derivative Works thereof, that is intentionally
216 | submitted to Licensor for inclusion in the Work by the copyright owner
217 | or by an individual or Legal Entity authorized to submit on behalf of
218 | the copyright owner. For the purposes of this definition, "submitted"
219 | means any form of electronic, verbal, or written communication sent
220 | to the Licensor or its representatives, including but not limited to
221 | communication on electronic mailing lists, source code control systems,
222 | and issue tracking systems that are managed by, or on behalf of, the
223 | Licensor for the purpose of discussing and improving the Work, but
224 | excluding communication that is conspicuously marked or otherwise
225 | designated in writing by the copyright owner as "Not a Contribution."
226 |
227 | "Contributor" shall mean Licensor and any individual or Legal Entity
228 | on behalf of whom a Contribution has been received by Licensor and
229 | subsequently incorporated within the Work.
230 |
231 | 2. Grant of Copyright License. Subject to the terms and conditions of
232 | this License, each Contributor hereby grants to You a perpetual,
233 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
234 | copyright license to reproduce, prepare Derivative Works of,
235 | publicly display, publicly perform, sublicense, and distribute the
236 | Work and such Derivative Works in Source or Object form.
237 |
238 | 3. Grant of Patent License. Subject to the terms and conditions of
239 | this License, each Contributor hereby grants to You a perpetual,
240 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
241 | (except as stated in this section) patent license to make, have made,
242 | use, offer to sell, sell, import, and otherwise transfer the Work,
243 | where such license applies only to those patent claims licensable
244 | by such Contributor that are necessarily infringed by their
245 | Contribution(s) alone or by combination of their Contribution(s)
246 | with the Work to which such Contribution(s) was submitted. If You
247 | institute patent litigation against any entity (including a
248 | cross-claim or counterclaim in a lawsuit) alleging that the Work
249 | or a Contribution incorporated within the Work constitutes direct
250 | or contributory patent infringement, then any patent licenses
251 | granted to You under this License for that Work shall terminate
252 | as of the date such litigation is filed.
253 |
254 | 4. Redistribution. You may reproduce and distribute copies of the
255 | Work or Derivative Works thereof in any medium, with or without
256 | modifications, and in Source or Object form, provided that You
257 | meet the following conditions:
258 |
259 | (a) You must give any other recipients of the Work or
260 | Derivative Works a copy of this License; and
261 |
262 | (b) You must cause any modified files to carry prominent notices
263 | stating that You changed the files; and
264 |
265 | (c) You must retain, in the Source form of any Derivative Works
266 | that You distribute, all copyright, patent, trademark, and
267 | attribution notices from the Source form of the Work,
268 | excluding those notices that do not pertain to any part of
269 | the Derivative Works; and
270 |
271 | (d) If the Work includes a "NOTICE" text file as part of its
272 | distribution, then any Derivative Works that You distribute must
273 | include a readable copy of the attribution notices contained
274 | within such NOTICE file, excluding those notices that do not
275 | pertain to any part of the Derivative Works, in at least one
276 | of the following places: within a NOTICE text file distributed
277 | as part of the Derivative Works; within the Source form or
278 | documentation, if provided along with the Derivative Works; or,
279 | within a display generated by the Derivative Works, if and
280 | wherever such third-party notices normally appear. The contents
281 | of the NOTICE file are for informational purposes only and
282 | do not modify the License. You may add Your own attribution
283 | notices within Derivative Works that You distribute, alongside
284 | or as an addendum to the NOTICE text from the Work, provided
285 | that such additional attribution notices cannot be construed
286 | as modifying the License.
287 |
288 | You may add Your own copyright statement to Your modifications and
289 | may provide additional or different license terms and conditions
290 | for use, reproduction, or distribution of Your modifications, or
291 | for any such Derivative Works as a whole, provided Your use,
292 | reproduction, and distribution of the Work otherwise complies with
293 | the conditions stated in this License.
294 |
295 | 5. Submission of Contributions. Unless You explicitly state otherwise,
296 | any Contribution intentionally submitted for inclusion in the Work
297 | by You to the Licensor shall be under the terms and conditions of
298 | this License, without any additional terms or conditions.
299 | Notwithstanding the above, nothing herein shall supersede or modify
300 | the terms of any separate license agreement you may have executed
301 | with Licensor regarding such Contributions.
302 |
303 | 6. Trademarks. This License does not grant permission to use the trade
304 | names, trademarks, service marks, or product names of the Licensor,
305 | except as required for reasonable and customary use in describing the
306 | origin of the Work and reproducing the content of the NOTICE file.
307 |
308 | 7. Disclaimer of Warranty. Unless required by applicable law or
309 | agreed to in writing, Licensor provides the Work (and each
310 | Contributor provides its Contributions) on an "AS IS" BASIS,
311 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
312 | implied, including, without limitation, any warranties or conditions
313 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
314 | PARTICULAR PURPOSE. You are solely responsible for determining the
315 | appropriateness of using or redistributing the Work and assume any
316 | risks associated with Your exercise of permissions under this License.
317 |
318 | 8. Limitation of Liability. In no event and under no legal theory,
319 | whether in tort (including negligence), contract, or otherwise,
320 | unless required by applicable law (such as deliberate and grossly
321 | negligent acts) or agreed to in writing, shall any Contributor be
322 | liable to You for damages, including any direct, indirect, special,
323 | incidental, or consequential damages of any character arising as a
324 | result of this License or out of the use or inability to use the
325 | Work (including but not limited to damages for loss of goodwill,
326 | work stoppage, computer failure or malfunction, or any and all
327 | other commercial damages or losses), even if such Contributor
328 | has been advised of the possibility of such damages.
329 |
330 | 9. Accepting Warranty or Additional Liability. While redistributing
331 | the Work or Derivative Works thereof, You may choose to offer,
332 | and charge a fee for, acceptance of support, warranty, indemnity,
333 | or other liability obligations and/or rights consistent with this
334 | License. However, in accepting such obligations, You may act only
335 | on Your own behalf and on Your sole responsibility, not on behalf
336 | of any other Contributor, and only if You agree to indemnify,
337 | defend, and hold each Contributor harmless for any liability
338 | incurred by, or claims asserted against, such Contributor by reason
339 | of your accepting any such warranty or additional liability.
340 |
341 | END OF TERMS AND CONDITIONS
342 |
343 | APPENDIX: How to apply the Apache License to your work.
344 |
345 | To apply the Apache License to your work, attach the following
346 | boilerplate notice, with the fields enclosed by brackets "[]"
347 | replaced with your own identifying information. (Don't include
348 | the brackets!) The text should be enclosed in the appropriate
349 | comment syntax for the file format. We also recommend that a
350 | file or class name and description of purpose be included on the
351 | same "printed page" as the copyright notice for easier
352 | identification within third-party archives.
353 |
354 | Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
355 |
356 | Licensed under the Apache License, Version 2.0 (the "License");
357 | you may not use this file except in compliance with the License.
358 | You may obtain a copy of the License at
359 |
360 | http://www.apache.org/licenses/LICENSE-2.0
361 |
362 | Unless required by applicable law or agreed to in writing, software
363 | distributed under the License is distributed on an "AS IS" BASIS,
364 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
365 | See the License for the specific language governing permissions and
366 | limitations under the License.
367 |
368 |
369 |
370 | webpack
371 | MIT
372 | Copyright JS Foundation and other contributors
373 |
374 | Permission is hereby granted, free of charge, to any person obtaining
375 | a copy of this software and associated documentation files (the
376 | 'Software'), to deal in the Software without restriction, including
377 | without limitation the rights to use, copy, modify, merge, publish,
378 | distribute, sublicense, and/or sell copies of the Software, and to
379 | permit persons to whom the Software is furnished to do so, subject to
380 | the following conditions:
381 |
382 | The above copyright notice and this permission notice shall be
383 | included in all copies or substantial portions of the Software.
384 |
385 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
386 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
387 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
388 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
389 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
390 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
391 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
392 |
393 |
394 | zone.js
395 | MIT
396 | The MIT License
397 |
398 | Copyright (c) 2010-2020 Google LLC. http://angular.io/license
399 |
400 | Permission is hereby granted, free of charge, to any person obtaining a copy
401 | of this software and associated documentation files (the "Software"), to deal
402 | in the Software without restriction, including without limitation the rights
403 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
404 | copies of the Software, and to permit persons to whom the Software is
405 | furnished to do so, subject to the following conditions:
406 |
407 | The above copyright notice and this permission notice shall be included in
408 | all copies or substantial portions of the Software.
409 |
410 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
411 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
412 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
413 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
414 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
415 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
416 | THE SOFTWARE.
417 |
--------------------------------------------------------------------------------
/docs/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/web-aid-kit/ngx-image-gallery/2a3108a834037fb9377aa1cc0f7834679fc2bfbd/docs/favicon.ico
--------------------------------------------------------------------------------
/docs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Preview
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/runtime-es2015.0811dcefd377500b5b1a.js:
--------------------------------------------------------------------------------
1 | !function(e){function r(r){for(var n,l,f=r[0],i=r[1],p=r[2],c=0,s=[];c 0.5%
9 | last 2 versions
10 | Firefox ESR
11 | not dead
12 | not IE 9-11 # For IE 9-11 support, remove 'not'.
--------------------------------------------------------------------------------
/preview/e2e/protractor.conf.js:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | // Protractor configuration file, see link for more information
3 | // https://github.com/angular/protractor/blob/master/lib/config.ts
4 |
5 | const { SpecReporter } = require('jasmine-spec-reporter');
6 |
7 | /**
8 | * @type { import("protractor").Config }
9 | */
10 | exports.config = {
11 | allScriptsTimeout: 11000,
12 | specs: [
13 | './src/**/*.e2e-spec.ts'
14 | ],
15 | capabilities: {
16 | browserName: 'chrome'
17 | },
18 | directConnect: true,
19 | baseUrl: 'http://localhost:4200/',
20 | framework: 'jasmine',
21 | jasmineNodeOpts: {
22 | showColors: true,
23 | defaultTimeoutInterval: 30000,
24 | print: function() {}
25 | },
26 | onPrepare() {
27 | require('ts-node').register({
28 | project: require('path').join(__dirname, './tsconfig.json')
29 | });
30 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
31 | }
32 | };
--------------------------------------------------------------------------------
/preview/e2e/src/app.e2e-spec.ts:
--------------------------------------------------------------------------------
1 | import { AppPage } from './app.po';
2 | import { browser, logging } from 'protractor';
3 |
4 | describe('workspace-project App', () => {
5 | let page: AppPage;
6 |
7 | beforeEach(() => {
8 | page = new AppPage();
9 | });
10 |
11 | it('should display welcome message', () => {
12 | page.navigateTo();
13 | expect(page.getTitleText()).toEqual('preview app is running!');
14 | });
15 |
16 | afterEach(async () => {
17 | // Assert that there are no errors emitted from the browser
18 | const logs = await browser.manage().logs().get(logging.Type.BROWSER);
19 | expect(logs).not.toContain(jasmine.objectContaining({
20 | level: logging.Level.SEVERE,
21 | } as logging.Entry));
22 | });
23 | });
24 |
--------------------------------------------------------------------------------
/preview/e2e/src/app.po.ts:
--------------------------------------------------------------------------------
1 | import { browser, by, element } from 'protractor';
2 |
3 | export class AppPage {
4 | navigateTo(): Promise {
5 | return browser.get(browser.baseUrl) as Promise;
6 | }
7 |
8 | getTitleText(): Promise {
9 | return element(by.css('app-root .content span')).getText() as Promise;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/preview/e2e/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../out-tsc/e2e",
5 | "module": "commonjs",
6 | "target": "es5",
7 | "types": [
8 | "jasmine",
9 | "jasminewd2",
10 | "node"
11 | ]
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/preview/karma.conf.js:
--------------------------------------------------------------------------------
1 | // Karma configuration file, see link for more information
2 | // https://karma-runner.github.io/1.0/config/configuration-file.html
3 |
4 | module.exports = function (config) {
5 | config.set({
6 | basePath: '',
7 | frameworks: ['jasmine', '@angular-devkit/build-angular'],
8 | plugins: [
9 | require('karma-jasmine'),
10 | require('karma-chrome-launcher'),
11 | require('karma-jasmine-html-reporter'),
12 | require('karma-coverage-istanbul-reporter'),
13 | require('@angular-devkit/build-angular/plugins/karma')
14 | ],
15 | client: {
16 | clearContext: false // leave Jasmine Spec Runner output visible in browser
17 | },
18 | coverageIstanbulReporter: {
19 | dir: require('path').join(__dirname, './coverage/preview'),
20 | reports: ['html', 'lcovonly', 'text-summary'],
21 | fixWebpackSourcePaths: true
22 | },
23 | reporters: ['progress', 'kjhtml'],
24 | port: 9876,
25 | colors: true,
26 | logLevel: config.LOG_INFO,
27 | autoWatch: true,
28 | browsers: ['Chrome'],
29 | singleRun: false,
30 | restartOnFileChange: true
31 | });
32 | };
33 |
--------------------------------------------------------------------------------
/preview/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "preview",
3 | "version": "0.0.0",
4 | "scripts": {
5 | "start": "ng serve",
6 | "build": "ng build --prod"
7 | },
8 | "private": true,
9 | "dependencies": {
10 | "@angular/animations": "~9.0.7",
11 | "@angular/common": "~9.0.7",
12 | "@angular/compiler": "~9.0.7",
13 | "@angular/core": "~9.0.7",
14 | "@angular/forms": "~9.0.7",
15 | "@angular/platform-browser": "~9.0.7",
16 | "@angular/platform-browser-dynamic": "~9.0.7",
17 | "@angular/router": "~9.0.7",
18 | "hammerjs": "^2.0.8",
19 | "lodash": "^4.17.15",
20 | "ngx-image-gallery": "^2.0.3",
21 | "rxjs": "~6.5.4",
22 | "tslib": "^1.10.0",
23 | "zone.js": "~0.10.2"
24 | },
25 | "devDependencies": {
26 | "@angular-devkit/build-angular": "~0.900.7",
27 | "@angular/cli": "~9.0.7",
28 | "@angular/compiler-cli": "~9.0.7",
29 | "@angular/language-service": "~9.0.7",
30 | "@types/node": "^12.11.1",
31 | "@types/jasmine": "~3.5.0",
32 | "@types/jasminewd2": "~2.0.3",
33 | "codelyzer": "^5.1.2",
34 | "jasmine-core": "~3.5.0",
35 | "jasmine-spec-reporter": "~4.2.1",
36 | "karma": "~4.3.0",
37 | "karma-chrome-launcher": "~3.1.0",
38 | "karma-coverage-istanbul-reporter": "~2.1.0",
39 | "karma-jasmine": "~2.0.1",
40 | "karma-jasmine-html-reporter": "^1.4.2",
41 | "protractor": "~5.4.3",
42 | "ts-node": "~8.3.0",
43 | "tslint": "~5.18.0",
44 | "typescript": "~3.7.5"
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/preview/src/app/app.component.html:
--------------------------------------------------------------------------------
1 |