lato 0.3.9 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fd0952596b2c7e5ec492c78e17e6493890b7861ea270af6652831a0d4fd0a41
4
- data.tar.gz: f72f96a8051b081e467fcb8d998d1224079f0f19ec720394a246d2dd4f223ac8
3
+ metadata.gz: dc6429cabd8f06eababd110121d4931f8c4f4f3473a996e26fdc60de860748ed
4
+ data.tar.gz: 9f4934f7e092d0c8fa166b29c1fec2ab90ebabc9a1a95ef4b1e38fff72c052d3
5
5
  SHA512:
6
- metadata.gz: 6923a33238d0a0ab6c1fb82935af260b58c4eeecc18666a0c5387645fa6e89095f6233be8ad270cbf0864612216a2ae0e68c541f5263ce26ea10f98159d6ecee
7
- data.tar.gz: 5ddae3839c659121ae866ffa3054fb271defc418b2f605f6e1ed0d8f0bfb3e34b2a43b00f42af8856c0160bd7d8c64935f187710129ee7f35f8c68fd90afe41e
6
+ metadata.gz: 17280e2b7a1d0c2c38588deb5c7c7abb5461bba3ee1300bac99ee0489fb9d26da98763c6623ef0a7edc8e9dc00fb562150a97c8ec414640b7600f407719fbea9
7
+ data.tar.gz: ac4b10677de5ad4b769d4c200dcc30554adc5280c89904ed7574870548d70949f200d6c8c6611b62e43c12b7511cb59d110048fba481264a04181b52e0e4efe0
@@ -15,10 +15,15 @@ export default class extends Controller {
15
15
  connect() {}
16
16
 
17
17
  /**
18
- * Actions
18
+ * Events
19
19
  */
20
20
 
21
21
  onInputChange(e) {
22
22
  e.target.classList.remove('is-invalid')
23
23
  }
24
+
25
+ // NOTE: You can use this method to submit the form from outside the form or from custom DOM actions.
26
+ submit() {
27
+ this.element.submit()
28
+ }
24
29
  }
@@ -43,6 +43,9 @@ module Lato
43
43
  return nil if session.blank?
44
44
 
45
45
  (session.is_a?(String) ? JSON.parse(session) : session).with_indifferent_access
46
+ rescue StandardError => e
47
+ Rails.logger.error "Lato::Session.parse_session: #{e.message}"
48
+ nil
46
49
  end
47
50
  end
48
51
  end
@@ -1,6 +1,6 @@
1
1
  <div class="toast-container">
2
2
  <% if notice %>
3
- <div class="position-fixed bottom-0 end-0 p-3" style="z-index: 11">
3
+ <div class="position-fixed end-0 p-3" style="z-index: 11; top: 60px;">
4
4
  <div data-controller="lato-feedback" id="feedbackNotice" class="toast hide" role="alert" aria-live="assertive" aria-atomic="true">
5
5
  <div class="toast-header">
6
6
  <i class="bi bi-check-circle-fill text-success me-2"></i>
@@ -15,7 +15,7 @@
15
15
  <% end %>
16
16
 
17
17
  <% if alert %>
18
- <div class="position-fixed bottom-0 end-0 p-3" style="z-index: 11">
18
+ <div class="position-fixed end-0 p-3" style="z-index: 11; top: 60px;">
19
19
  <div data-controller="lato-feedback" id="feedbackAlert" class="toast hide" role="alert" aria-live="assertive" aria-atomic="true">
20
20
  <div class="toast-header">
21
21
  <i class="bi bi-check-circle-fill text-danger me-2"></i>
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.3.9"
2
+ VERSION = "0.3.11"
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: 0.3.9
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-10 00:00:00.000000000 Z
11
+ date: 2023-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails