@ks89/angular-modal-gallery 13.0.0 → 15.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/CONTRIBUTING.md +3 -3
- package/LICENSE +1 -1
- package/README.md +9 -6
- package/fesm2022/ks89-angular-modal-gallery.mjs +1497 -1534
- package/fesm2022/ks89-angular-modal-gallery.mjs.map +1 -1
- package/index.d.ts +2475 -3
- package/package.json +9 -9
- package/lib/components/accessibility-default.d.ts +0 -5
- package/lib/components/accessible.component.d.ts +0 -50
- package/lib/components/carousel/carousel-previews/carousel-previews.component.d.ts +0 -195
- package/lib/components/carousel/carousel.component.d.ts +0 -276
- package/lib/components/components.d.ts +0 -15
- package/lib/components/current-image/current-image.component.d.ts +0 -282
- package/lib/components/current-image/loading-spinner/loading-spinner.component.d.ts +0 -55
- package/lib/components/dots/dots.component.d.ts +0 -81
- package/lib/components/modal-gallery/attach-to-overlay.service.d.ts +0 -20
- package/lib/components/modal-gallery/modal-gallery-ref.d.ts +0 -64
- package/lib/components/modal-gallery/modal-gallery.component.d.ts +0 -246
- package/lib/components/modal-gallery/modal-gallery.service.d.ts +0 -100
- package/lib/components/modal-gallery/modal-gallery.tokens.d.ts +0 -3
- package/lib/components/plain-gallery/plain-gallery.component.d.ts +0 -135
- package/lib/components/previews/previews.component.d.ts +0 -155
- package/lib/components/upper-buttons/upper-buttons-default.d.ts +0 -29
- package/lib/components/upper-buttons/upper-buttons.component.d.ts +0 -132
- package/lib/directives/a-tag-bg-image.directive.d.ts +0 -38
- package/lib/directives/click-outside.directive.d.ts +0 -24
- package/lib/directives/description.directive.d.ts +0 -33
- package/lib/directives/direction.directive.d.ts +0 -36
- package/lib/directives/directives.d.ts +0 -15
- package/lib/directives/fallback-image.directive.d.ts +0 -16
- package/lib/directives/keyboard-navigation.directive.d.ts +0 -24
- package/lib/directives/margin.directive.d.ts +0 -44
- package/lib/directives/max-size.directive.d.ts +0 -33
- package/lib/directives/size.directive.d.ts +0 -33
- package/lib/directives/swipe.directive.d.ts +0 -35
- package/lib/directives/wrap.directive.d.ts +0 -36
- package/lib/modal-gallery.module.d.ts +0 -32
- package/lib/model/accessibility.interface.d.ts +0 -40
- package/lib/model/action.enum.d.ts +0 -11
- package/lib/model/buttons-config.interface.d.ts +0 -57
- package/lib/model/carousel-config.interface.d.ts +0 -11
- package/lib/model/carousel-image-config.interface.d.ts +0 -8
- package/lib/model/carousel-preview-config.interface.d.ts +0 -22
- package/lib/model/current-image-config.interface.d.ts +0 -12
- package/lib/model/description.interface.d.ts +0 -39
- package/lib/model/dots-config.interface.d.ts +0 -6
- package/lib/model/image-internal.class.d.ts +0 -9
- package/lib/model/image.class.d.ts +0 -64
- package/lib/model/interaction-event.interface.d.ts +0 -6
- package/lib/model/keyboard-config.interface.d.ts +0 -8
- package/lib/model/keyboard.enum.d.ts +0 -13
- package/lib/model/lib-config.interface.d.ts +0 -39
- package/lib/model/loading-config.interface.d.ts +0 -19
- package/lib/model/max-size.interface.d.ts +0 -8
- package/lib/model/modal-gallery-config.interface.d.ts +0 -16
- package/lib/model/plain-gallery-config.interface.d.ts +0 -57
- package/lib/model/play-config.interface.d.ts +0 -8
- package/lib/model/preview-config.interface.d.ts +0 -12
- package/lib/model/size.interface.d.ts +0 -8
- package/lib/model/slide-config.interface.d.ts +0 -17
- package/lib/services/config.service.d.ts +0 -39
- package/lib/services/id-validator.service.d.ts +0 -25
- package/lib/utils/image.util.d.ts +0 -10
- package/lib/utils/user-input.util.d.ts +0 -80
- package/public-api.d.ts +0 -36
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
1
|
+
# 15.0.0-alpha.1
|
|
2
|
+
|
|
3
|
+
Why this major release? Because I want to upgrade/rewrite to code to the latest angular features.
|
|
4
|
+
This requires a lot or refactoring and changes, so I prefer to release the new version as major release.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Refactor
|
|
8
|
+
|
|
9
|
+
- migrate to inject() function instead of using the constructor
|
|
10
|
+
- migrate to output<> syntax
|
|
11
|
+
- migrate to input<> syntax
|
|
12
|
+
- migrate to self-closing tags
|
|
13
|
+
- partial migration to signals
|
|
14
|
+
- huge refactor to tests to use the new syntax
|
|
15
|
+
- force 'strictTemplates: true' and 'noPropertyAccessFromIndexSignature: true' in tsconfig (recommended values) and adapt the library code to work with
|
|
16
|
+
|
|
17
|
+
### Examples
|
|
18
|
+
|
|
19
|
+
- upgrade all examples to the new syntax
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# 14.0.0
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
- Angular 20 is required **(BREAKING CHANGE)**
|
|
27
|
+
|
|
28
|
+
### Refactor
|
|
29
|
+
|
|
30
|
+
- upgrade library removing ngIf, ngFor and ngSwitch to use control flow syntax (@if, @for and @switch)
|
|
31
|
+
|
|
32
|
+
### Examples
|
|
33
|
+
|
|
34
|
+
- upgrade all examples to Angular 20 and control flow syntax
|
|
35
|
+
|
|
36
|
+
### Documentation
|
|
37
|
+
|
|
38
|
+
- upgrade doc website to Angular 20 component based with control flow syntax
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# 13.0.0
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
- Angular 19 is required **(BREAKING CHANGE)**
|
|
46
|
+
|
|
47
|
+
|
|
1
48
|
# 12.0.0
|
|
2
49
|
|
|
3
50
|
### Features
|
package/CONTRIBUTING.md
CHANGED
|
@@ -10,7 +10,7 @@ Every time you'll run `npm install` inside an example's folder, you must rebuild
|
|
|
10
10
|
2. remove all `node_modules` and temp folders with compiled files (if necessary)
|
|
11
11
|
3. `npm install` (from the root of this project)
|
|
12
12
|
4. `npm run clean:all`
|
|
13
|
-
5. `cd examples/angular-cli-
|
|
13
|
+
5. `cd examples/angular-cli-20`
|
|
14
14
|
6. `npm install`
|
|
15
15
|
7. `cd ../..`
|
|
16
16
|
8. `cd examples/universal`
|
|
@@ -31,8 +31,8 @@ Every time you'll run `npm install` inside an example's folder, you must rebuild
|
|
|
31
31
|
6. `cd dist/angular-modal-gallery/browser && lite-server` => if everything is ok (also in browser's console), kill the process and go to the next step
|
|
32
32
|
7. `cd ../../../../..`
|
|
33
33
|
|
|
34
|
-
# C. Run angular-cli-
|
|
35
|
-
1. `cd examples/angular-cli-
|
|
34
|
+
# C. Run angular-cli-20 example
|
|
35
|
+
1. `cd examples/angular-cli-20`
|
|
36
36
|
2. `npm start` => if everything is ok (also in browser's console), kill the process and go to the next step
|
|
37
37
|
3. `npm run build:dev`
|
|
38
38
|
4. `cd dist/angular-cli/browser && lite-server` => if everything is ok (also in browser's console), kill the process and go to the next step
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -128,7 +128,7 @@ Despite its name, this library is more than for modal galleries, because I'm int
|
|
|
128
128
|
- configurable side-previews (visible only on bigger screen)
|
|
129
129
|
- configurable dots navigation (visible only on bigger screen)
|
|
130
130
|
- configurable previews (visible only on bigger screen)
|
|
131
|
-
- and many more... (check the official documentation [HERE](https://ks89.github.io/angular-modal-gallery-
|
|
131
|
+
- and many more... (check the official documentation [HERE](https://ks89.github.io/angular-modal-gallery-2025-v14.github.io/))
|
|
132
132
|
|
|
133
133
|
<br>
|
|
134
134
|
|
|
@@ -138,7 +138,7 @@ Despite its name, this library is more than for modal galleries, because I'm int
|
|
|
138
138
|
- `npm install --save @angular/cdk`
|
|
139
139
|
|
|
140
140
|
From version @ks89/angular-modal-gallery >= 5.0.0, **font-awesome isn't a mandatory dependency**.
|
|
141
|
-
You can use all default features without font-awesome. For more info, check official [documentation website](https://ks89.github.io/angular-modal-gallery-
|
|
141
|
+
You can use all default features without font-awesome. For more info, check official [documentation website](https://ks89.github.io/angular-modal-gallery-2025-v14.github.io/).
|
|
142
142
|
From version @ks89/angular-modal-gallery >= 11.0.0, **mousetrap and hammerjs have been removed as dependencies**.
|
|
143
143
|
|
|
144
144
|
<br>
|
|
@@ -147,7 +147,7 @@ From version @ks89/angular-modal-gallery >= 11.0.0, **mousetrap and hammerjs hav
|
|
|
147
147
|
|
|
148
148
|
*Image loading could be slow, because this website is hosted on Github pages*
|
|
149
149
|
|
|
150
|
-
[OFFICIAL DOCUMENTATION WEBSITE](https://ks89.github.io/angular-modal-gallery-
|
|
150
|
+
[OFFICIAL DOCUMENTATION WEBSITE](https://ks89.github.io/angular-modal-gallery-2025-v14.github.io/)
|
|
151
151
|
|
|
152
152
|
<br>
|
|
153
153
|
|
|
@@ -172,7 +172,8 @@ From version @ks89/angular-modal-gallery >= 11.0.0, **mousetrap and hammerjs hav
|
|
|
172
172
|
| Angular 16 | = 11.1.1 | optional |
|
|
173
173
|
| Angular 17 | = 11.1.1 | optional |
|
|
174
174
|
| Angular 18 | = 12.0.0 | optional |
|
|
175
|
-
| Angular 19 |
|
|
175
|
+
| Angular 19 | = 13.0.0 | optional |
|
|
176
|
+
| Angular 20 | >= 15.0.0 | optional |
|
|
176
177
|
|
|
177
178
|
<br>
|
|
178
179
|
|
|
@@ -180,6 +181,8 @@ From version @ks89/angular-modal-gallery >= 11.0.0, **mousetrap and hammerjs hav
|
|
|
180
181
|
|
|
181
182
|
**More than 100 releases in two years**, and more to come... :)
|
|
182
183
|
|
|
184
|
+
- 12/09/2025 - 15.0.0-alpha.1 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
185
|
+
- 20/08/2025 - 14.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
183
186
|
- 22/12/2024 - 13.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
184
187
|
- 31/05/2024 - 12.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
185
188
|
- 31/01/2024 - 11.1.2 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
@@ -221,7 +224,7 @@ From version @ks89/angular-modal-gallery >= 11.0.0, **mousetrap and hammerjs hav
|
|
|
221
224
|
1. Question: **How can I remove images using DELETE button without issues?**<br>
|
|
222
225
|
**Answer**: **You cannot change the input image array. Instead, you should reassign it with a newer array** without the deleted element.
|
|
223
226
|
In other words, **you must think in a functional way**, without changing the input array of images.
|
|
224
|
-
For more information check this official demo [HERE](https://ks89.github.io/angular-modal-gallery-
|
|
227
|
+
For more information check this official demo [HERE](https://ks89.github.io/angular-modal-gallery-2025-v14.github.io/demo/buttons-strategies).
|
|
225
228
|
|
|
226
229
|
<br>
|
|
227
230
|
|
|
@@ -259,7 +262,7 @@ In this way, [prettier](https://prettier.io/) will run using my configuration, a
|
|
|
259
262
|
|
|
260
263
|
The MIT License (MIT)
|
|
261
264
|
|
|
262
|
-
Copyright (c) 2017-
|
|
265
|
+
Copyright (c) 2017-2025 Stefano Cappa (Ks89)
|
|
263
266
|
|
|
264
267
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
265
268
|
of this software and associated documentation files (the "Software"), to deal
|