base_editing_bootstrap 2.0.0 → 2.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/assets/javascripts/nested_form_controller.js +9 -3
- data/lib/base_editing_bootstrap/VERSION +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 621ce2921cb1a39524a523807983ec5e099d0646d9eb06d40a15d4f8d59d9720
|
|
4
|
+
data.tar.gz: d7695f7d33150def36bdc1bf5ec357f4c6cb0367b5143ec152fb338d779fba5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3329ab7c65c74ff2e8b5e91a0f6e3d27f2599e8ad0800f02e53cdb9f70706145a879c147c5c6224d21ac602b2789c7cae531115e899a564060f2a953470b17c5
|
|
7
|
+
data.tar.gz: 56b1f76f086abb48c95e9a760af3d2cfc0f5e75bfe427119a74ebb990ef9e6d8fe1c69e559c9852eafa2db813546a0e461eb87449b8183ed4dc8639c18a324b6
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
|
|
3
3
|
|
|
4
4
|
- - -
|
|
5
|
+
## 2.0.1 - 2026-09-17
|
|
6
|
+
#### Bug Fixes
|
|
7
|
+
- Correzione limitazione numero sub_elements in nested - (7cc9889) - Marino Bonetti
|
|
8
|
+
|
|
9
|
+
- - -
|
|
10
|
+
|
|
5
11
|
## 2.0.0 - 2026-09-16
|
|
6
12
|
#### Features
|
|
7
13
|
- Titolo Custom nella index - (8b7f76c) - Marino Bonetti
|
|
@@ -3,18 +3,24 @@ import NestedForm from "@stimulus-components/rails-nested-form"
|
|
|
3
3
|
// Connects to data-controller="nested-form"
|
|
4
4
|
export default class extends NestedForm {
|
|
5
5
|
|
|
6
|
+
connect() {
|
|
7
|
+
super.connect()
|
|
8
|
+
this.check_for_enabling_add_button();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
6
12
|
static values = {
|
|
7
13
|
limit: Number,
|
|
8
14
|
}
|
|
9
15
|
|
|
10
16
|
add(e) {
|
|
11
17
|
super.add(e);
|
|
12
|
-
this.check_for_enabling_add_button(
|
|
18
|
+
this.check_for_enabling_add_button();
|
|
13
19
|
}
|
|
14
20
|
|
|
15
21
|
remove(e) {
|
|
16
22
|
super.remove(e);
|
|
17
|
-
this.check_for_enabling_add_button(
|
|
23
|
+
this.check_for_enabling_add_button();
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
// Elenco elementi presenti visibili (e quindi non settati per essere cancellati)
|
|
@@ -29,7 +35,7 @@ export default class extends NestedForm {
|
|
|
29
35
|
return count;
|
|
30
36
|
}
|
|
31
37
|
|
|
32
|
-
check_for_enabling_add_button(
|
|
38
|
+
check_for_enabling_add_button() {
|
|
33
39
|
if (this.hasLimitValue) {
|
|
34
40
|
if (this.total_active_elements() >= this.limitValue) {
|
|
35
41
|
// Aggiungiamo classe disable sull'elemento che ha lanciato questo evento
|
|
@@ -1 +1 @@
|
|
|
1
|
-
2.0.
|
|
1
|
+
2.0.1
|