@ks89/angular-modal-gallery 14.0.0 → 15.0.0
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 +46 -0
- package/CONTRIBUTING.md +5 -5
- package/LICENSE +1 -1
- package/README.md +17 -21
- package/fesm2022/ks89-angular-modal-gallery.mjs +1112 -1058
- package/fesm2022/ks89-angular-modal-gallery.mjs.map +1 -1
- package/package.json +10 -10
- package/{index.d.ts → types/ks89-angular-modal-gallery.d.ts} +496 -547
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
+
# 15.0.0
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- Angular 21 is required **(BREAKING CHANGE)**
|
|
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 and to Angular 21
|
|
20
|
+
|
|
21
|
+
### Documentation
|
|
22
|
+
|
|
23
|
+
- upgrade doc website to Angular 21 and migrate to the new syntax
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# 15.0.0-alpha.1
|
|
27
|
+
|
|
28
|
+
Why this major release? Because I want to upgrade/rewrite to code to the latest angular features.
|
|
29
|
+
This requires a lot or refactoring and changes, so I prefer to release the new version as major release.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Refactor
|
|
33
|
+
|
|
34
|
+
- migrate to inject() function instead of using the constructor
|
|
35
|
+
- migrate to output<> syntax
|
|
36
|
+
- migrate to input<> syntax
|
|
37
|
+
- migrate to self-closing tags
|
|
38
|
+
- partial migration to signals
|
|
39
|
+
- huge refactor to tests to use the new syntax
|
|
40
|
+
- force 'strictTemplates: true' and 'noPropertyAccessFromIndexSignature: true' in tsconfig (recommended values) and adapt the library code to work with
|
|
41
|
+
|
|
42
|
+
### Examples
|
|
43
|
+
|
|
44
|
+
- upgrade all examples to the new syntax
|
|
45
|
+
|
|
46
|
+
|
|
1
47
|
# 14.0.0
|
|
2
48
|
|
|
3
49
|
### 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-21`
|
|
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-21 example
|
|
35
|
+
1. `cd examples/angular-cli-21`
|
|
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
|
|
@@ -55,9 +55,9 @@ Every time you'll run `npm install` inside an example's folder, you must rebuild
|
|
|
55
55
|
1. `cd examples/universal`
|
|
56
56
|
2. `npm start` => if everything is ok (also in browser's console), kill the process and go to the next step
|
|
57
57
|
3. `npm run build:dev`
|
|
58
|
-
4. `npm run serve:ssr` => if everything is ok (also in browser's console), kill the process and go to the next step
|
|
58
|
+
4. `npm run serve:ssr:universal` => if everything is ok (also in browser's console), kill the process and go to the next step
|
|
59
59
|
5. `npm run build:prod`
|
|
60
|
-
6. `npm run serve:ssr` => if everything is ok (also in browser's console), kill the process and go to the next step
|
|
60
|
+
6. `npm run serve:ssr:universal` => if everything is ok (also in browser's console), kill the process and go to the next step
|
|
61
61
|
7. `cd ../..`
|
|
62
62
|
|
|
63
63
|
# H. Create your pull request
|
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-2025-
|
|
131
|
+
- and many more... (check the official documentation [HERE](https://ks89.github.io/angular-modal-gallery-2025-v15.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-2025-
|
|
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-v15.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-2025-
|
|
150
|
+
[OFFICIAL DOCUMENTATION WEBSITE](https://ks89.github.io/angular-modal-gallery-2025-v15.github.io/)
|
|
151
151
|
|
|
152
152
|
<br>
|
|
153
153
|
|
|
@@ -173,36 +173,32 @@ From version @ks89/angular-modal-gallery >= 11.0.0, **mousetrap and hammerjs hav
|
|
|
173
173
|
| Angular 17 | = 11.1.1 | optional |
|
|
174
174
|
| Angular 18 | = 12.0.0 | optional |
|
|
175
175
|
| Angular 19 | = 13.0.0 | optional |
|
|
176
|
-
| Angular 20 | >=
|
|
176
|
+
| Angular 20 | >= 15.0.0 | optional |
|
|
177
177
|
|
|
178
178
|
<br>
|
|
179
179
|
|
|
180
180
|
## :fire: News :fire:
|
|
181
181
|
|
|
182
|
-
**More than
|
|
182
|
+
**More than 120 releases**, and more to come... :)
|
|
183
183
|
|
|
184
|
-
-
|
|
185
|
-
-
|
|
186
|
-
-
|
|
187
|
-
-
|
|
188
|
-
-
|
|
189
|
-
-
|
|
190
|
-
-
|
|
184
|
+
- 12/22/2025 - 15.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
185
|
+
- 09/12/2025 - 15.0.0-alpha.1 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
186
|
+
- 08/20/2025 - 14.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
187
|
+
- 12/22/2024 - 13.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
188
|
+
- 05/31/2024 - 12.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
189
|
+
- 01/21/2024 - 11.1.2 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
190
|
+
- ... (many 11.x.x versions)
|
|
191
191
|
- 07/08/2023 - 11.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
192
|
-
- 06/01/2023 - 11.0.0-rc.1 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
193
192
|
- 11/18/2022 - 10.0.1 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
194
193
|
- 11/17/2022 - 10.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
195
|
-
- 08/03/2022 - 10.0.0-rc.1 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
196
194
|
- 05/10/2022 - 9.1.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
197
|
-
-
|
|
198
|
-
- 04/14/2022 - 9.1.0-beta.1 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
199
|
-
- 11/15/2021 - 9.0.1 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
195
|
+
- ... (other 9.x.x versions)
|
|
200
196
|
- 11/06/2021 - 9.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
201
197
|
- 09/27/2021 - 8.0.1 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
202
198
|
- 07/10/2021 - 8.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
203
|
-
-
|
|
199
|
+
- ... (many beta 8.x.x versions)
|
|
204
200
|
- 12/05/2020 - 7.2.7 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
205
|
-
-
|
|
201
|
+
- ... (many minor 7.x.x versions)
|
|
206
202
|
- 12/06/2018 - 7.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
207
203
|
- 10/11/2018 - 6.3.0 - angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases)
|
|
208
204
|
- ... (many minor 6.x.x versions)
|
|
@@ -223,7 +219,7 @@ From version @ks89/angular-modal-gallery >= 11.0.0, **mousetrap and hammerjs hav
|
|
|
223
219
|
1. Question: **How can I remove images using DELETE button without issues?**<br>
|
|
224
220
|
**Answer**: **You cannot change the input image array. Instead, you should reassign it with a newer array** without the deleted element.
|
|
225
221
|
In other words, **you must think in a functional way**, without changing the input array of images.
|
|
226
|
-
For more information check this official demo [HERE](https://ks89.github.io/angular-modal-gallery-2025-
|
|
222
|
+
For more information check this official demo [HERE](https://ks89.github.io/angular-modal-gallery-2025-v15.github.io/demo/buttons-strategies).
|
|
227
223
|
|
|
228
224
|
<br>
|
|
229
225
|
|
|
@@ -261,7 +257,7 @@ In this way, [prettier](https://prettier.io/) will run using my configuration, a
|
|
|
261
257
|
|
|
262
258
|
The MIT License (MIT)
|
|
263
259
|
|
|
264
|
-
Copyright (c) 2017-
|
|
260
|
+
Copyright (c) 2017-2026 Stefano Cappa (Ks89)
|
|
265
261
|
|
|
266
262
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
267
263
|
of this software and associated documentation files (the "Software"), to deal
|