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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 578382a177ded9163d28c479c32ece3169171a37c6ac7c5d9adeb3e4f58227e1
4
- data.tar.gz: 42c3f714db4e91312b41af27193e80cc71e44812ffa3f57bb8ad4322a4eafe26
3
+ metadata.gz: 621ce2921cb1a39524a523807983ec5e099d0646d9eb06d40a15d4f8d59d9720
4
+ data.tar.gz: d7695f7d33150def36bdc1bf5ec357f4c6cb0367b5143ec152fb338d779fba5d
5
5
  SHA512:
6
- metadata.gz: 1ffb2c56f74111af0a0986734baedad0f935afa0c9a584a0a574e3a8c2665d781e7687b17e836bbfa6d544b606f8d946f5bd34a4a76fbb740a18c17a82616893
7
- data.tar.gz: 6f73ef0c8d248eb7352a072a5fce8176dbec1be015407db370b303ab73c759a99bf0b3ee6ec96cd85b8de72c234f95a01885ab9f5b7192ca9dba6920ce80084c
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(e);
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(e);
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(e) {
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.0
1
+ 2.0.1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base_editing_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino Bonetti