lato 3.13.9 → 3.13.11

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: e4bb96ca665f26bae7342b8bc6013dccd68518b0afa385979a6baf3a13f48049
4
- data.tar.gz: afe9b15cb7688366523079d8f78ad08692c7f6b1497f674c33c8954ecb6c4af5
3
+ metadata.gz: f8c09f1550b6a5e0adbfaed391511cfd9cc7f0f421d4d1ff67d1695c9c4823b0
4
+ data.tar.gz: 35ff7291582aa1d0a488b497d515b6fdd106a41cbc28226d454d105d70ea2328
5
5
  SHA512:
6
- metadata.gz: 98f239d1eaf566b72e5d566600a5adb8f3f23b88e3545aeacb47f8c2600f702c64aebb2348a8b42015f3a1fe51a4a71489b5fbfd1c55b28545502a983bd31dbe
7
- data.tar.gz: a04360c292f45c3076c6e764a2c99776a01cce3045f94a3ffe4044d8cf470a109e7a93903980a3c9b2d8185583ead83c8494a56eed74616f7a298b5bab4957fe
6
+ metadata.gz: 3c5e5675d65e1a9853bbc4eeb2cc47999343fbcb20964344259fe652a5c63d2d0d5b896c8013565f7af40b52e00e9048739a7ac0650d5e7fcedef34ed341e54e
7
+ data.tar.gz: 31a617fda2fe937e0f44bcce4f0e586875217f636e838c09f57570c994e165234d09901aec45028ad6d922c13b81ffb8290677853c47278b8e9df831de0b7641
data/README.md CHANGED
@@ -19,9 +19,9 @@ The gem is ready to be used with the **latest Rails 7+** features like **[ESM im
19
19
 
20
20
  ## Full documentation
21
21
 
22
- The full documentation is available at: 👉 👉 [THIS LINK](https://auuu.link/s/lato) 👈 👈
22
+ The full documentation is available at: 👉 👉 [THIS LINK](https://lato-oss.gregoriogalante.com) 👈 👈
23
23
 
24
- You can also use the [Lato AI Agent](http://lato.gregoriogalante.com/AI.html) directly on your browser to generate code and get helps with the gem.
24
+ You can also use the [Lato AI Agent](https://lato-oss.gregoriogalante.com/AI.html) directly on your browser to generate code and get helps with the gem.
25
25
 
26
26
  ## Eco-system
27
27
  The idea behind Lato is to create an eco-system of engines that can improve the functionalities of the panel. The following engines are already available:
@@ -86,7 +86,7 @@ export default class extends Controller {
86
86
  suggestShow(data = []) {
87
87
  if (this.optionsList) this.optionsList.remove()
88
88
  this.optionsList = document.createElement('ul')
89
- this.optionsList.classList.add('list-group')
89
+ this.optionsList.classList.add('list-group', 'border')
90
90
  this.optionsList.style.position = 'fixed'
91
91
  this.optionsList.style.width = this.element.offsetWidth + 'px'
92
92
  this.optionsList.style.maxHeight = '200px'
@@ -127,6 +127,14 @@ export default class extends Controller {
127
127
  if (this.optionsList) this.optionsList.remove()
128
128
  }
129
129
 
130
+ suggestReposition() {
131
+ if (!this.optionsList) return
132
+
133
+ const elementRect = this.element.getBoundingClientRect()
134
+ this.optionsList.style.top = elementRect.bottom + 'px'
135
+ this.optionsList.style.left = elementRect.left + 'px'
136
+ }
137
+
130
138
  async setDefaultElementValue() {
131
139
  try {
132
140
  const url = new URL(this.pathValue, window.location.origin)
@@ -146,10 +154,10 @@ export default class extends Controller {
146
154
  }
147
155
 
148
156
  onWindowScroll(event) {
149
- this.suggestHide()
157
+ this.suggestReposition()
150
158
  }
151
159
 
152
160
  onWindowResize(event) {
153
- this.suggestHide()
161
+ this.suggestReposition()
154
162
  }
155
163
  }
@@ -145,6 +145,15 @@ main, aside {
145
145
  min-height: 38px;
146
146
  }
147
147
 
148
- .lato-guide-tooltip {
148
+ /** Print style */
149
149
 
150
+ @media print {
151
+ header, aside, footer {
152
+ display: none !important;
153
+ }
154
+
155
+ main {
156
+ padding-top: 0 !important;
157
+ width: 100% !important;
158
+ }
150
159
  }
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "3.13.9"
2
+ VERSION = "3.13.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: 3.13.9
4
+ version: 3.13.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: 2025-06-05 00:00:00.000000000 Z
11
+ date: 2025-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails