lato 3.18.0 → 3.18.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: a1135b4284e1c761094754ca918919b81d13159ca05b63e9fc4af80a4b7fe949
4
- data.tar.gz: 41505b5b1f4ad8124ccba0cbd25acc26b595e83bb8278119f0ace6c2d8570931
3
+ metadata.gz: 0e61b931ff0b3fe86aa8c722e1ca3b016be7799e935d072979de181a4e025b89
4
+ data.tar.gz: 487f4fc01d7f58be47a74556498922f05230869998d91cfb95459d766746d118
5
5
  SHA512:
6
- metadata.gz: 692216d780c5248e54a9352cc1630953ced6d0864775dff1ed60d19256f82e5a301a7aed32c4695a33b2cbc4a14f1fa3721fba5240613c6afbb76c5d6d97b6dd
7
- data.tar.gz: ee8f6ebe85e6b73539b432ebe29c8515f8f87fd72c839c12072f77d7962a949635825b0ff217731727d236d295d0bee6c2c25300e41a7657db01ca139dc4e8c5
6
+ metadata.gz: f82274922dc305b1e19a506b7958fd0c89dbb52ad00923bb1b9d1e72b16002a6f8e71bac6b4fde9f1af4ae4eb56884be3056b3ac5e99a735b9ecfb4fbb5a3acb
7
+ data.tar.gz: c8db5342fd6e9aa26b298ac91a9ed939907e8b02499603b4e5b2359f3b1cb9c891028d7f7d344c858f07cce16e9275c33a2de16c94538591db5a6b7fa5481737
@@ -123,11 +123,11 @@ export default class extends Controller {
123
123
  }
124
124
 
125
125
  if (options.actionSize) {
126
- this.modalDialogTargets[index].classList.add(`modal-${options.actionSize}`)
127
- } else {
128
- this.modalDialogTargets[index].classList.remove('modal-lg')
126
+ this.modalDialogTargets[index].classList.remove('modal-md')
129
127
  this.modalDialogTargets[index].classList.remove('modal-xl')
128
+ this.modalDialogTargets[index].classList.remove('modal-lg')
130
129
  this.modalDialogTargets[index].classList.remove('modal-sm')
130
+ this.modalDialogTargets[index].classList.add(`modal-${options.actionSize}`)
131
131
  }
132
132
 
133
133
  this.bsModals[index].show()
@@ -138,7 +138,7 @@ export default class extends Controller {
138
138
  const options = {}
139
139
  options.turboFrame = element.getAttribute('data-turbo-frame')
140
140
  options.actionTitle = element.getAttribute('data-action-title')
141
- options.actionSize = element.getAttribute('data-action-size')
141
+ options.actionSize = element.getAttribute('data-action-size') || 'md'
142
142
  options.actionRows = element.getAttribute('data-action-rows')
143
143
  options.actionRows = options.actionRows ? parseInt(options.actionRows) : 4
144
144
  return options
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "3.18.0"
2
+ VERSION = "3.18.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.18.0
4
+ version: 3.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-16 00:00:00.000000000 Z
11
+ date: 2025-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails