lato 3.11.5 → 3.11.7

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: d5c5a09699df9b3bf38945da760831ea4665b52442f36ac0d05fc1b962e78d7a
4
- data.tar.gz: df0526aa1220216bc79c117eccd41b6fa233cd27bf0bef825e01cd66a122235a
3
+ metadata.gz: df86f3c338023c7cb4253ba9fe107a7fc02ed7d0bcb8f036c408a5c1e31c9212
4
+ data.tar.gz: '08ca6bc541e1519b60394dfa1ad306580bde2f6ee0740e38bd451277c33c80e9'
5
5
  SHA512:
6
- metadata.gz: 36fa0b306360fe4acc52f12c90a1a4cebddab63a220da70788946ebd51ea93358654fbc6427e3375f81f22f58c78de9c24bc3d7277491cb1fea85a702b1af474
7
- data.tar.gz: 5bbfa598b9db7576116aa2ac378a13ddf9207f7f7bb598ce53b68ef4cd505cc5900be23031f093f11737aa6f5d654e39ed25fe05e6d6862efb36c0f77a7e4a9a
6
+ metadata.gz: a4b238b8473d9db464d0f089a9ff7263fc3c7cd6dcd97fb5b724c60933927d045ace59d08fc3e1475a46d20442ae22454fcd4f3bc39ff8e8624ececc19b24506
7
+ data.tar.gz: e7f1b73a0f6c1cc42bb4d845dd2e70afb18bf29121e296f3af8cfe900b188472724fbc7e46ab2aa9d2076a1d4ddf100e5bb01addbd46753cd919ac93fca50e56
data/README.md CHANGED
@@ -21,6 +21,7 @@ The front-end is designed to be responsive, mobile friendly and accessible.
21
21
  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:
22
22
 
23
23
  - [LatoSpaces](https://github.com/Lato-org/lato_spaces): A simple engine to manage multiple workspaces in the panel with user invitation and workspace roles;
24
+ - [LatoSettings](https://github.com/Lato-org/lato_settings): A simple engine to manage application settings from the UI panel;
24
25
 
25
26
  ## Installation
26
27
  Add required dependencies to your application's Gemfile:
@@ -48,7 +48,9 @@ export default class extends Controller {
48
48
  try {
49
49
  this.suggestShowLoading()
50
50
  setTimeout(async () => {
51
- const response = await fetch(this.pathValue + '?q=' + value)
51
+ const url = new URL(this.pathValue, window.location.origin)
52
+ url.searchParams.append('q', value)
53
+ const response = await fetch(url)
52
54
  const data = await response.json()
53
55
  this.suggestShow(data)
54
56
  }, 500)
@@ -127,7 +129,9 @@ export default class extends Controller {
127
129
 
128
130
  async setDefaultElementValue() {
129
131
  try {
130
- const response = await fetch(this.pathValue + '?value=' + this.element.value)
132
+ const url = new URL(this.pathValue, window.location.origin)
133
+ url.searchParams.append('value', this.element.value)
134
+ const response = await fetch(url)
131
135
  const data = await response.json()
132
136
  this.element.value = data?.label || this.element.value
133
137
  } catch (err) {
@@ -132,6 +132,11 @@ main, aside {
132
132
  }
133
133
  }
134
134
 
135
+ .lato-form-item-input-color {
136
+ width: 100%;
137
+ min-height: 38px;
138
+ }
139
+
135
140
  .lato-guide-tooltip {
136
141
 
137
142
  }
@@ -208,6 +208,20 @@ module Lato
208
208
  form.datetime_field key, options
209
209
  end
210
210
 
211
+ def lato_form_item_input_time(form, key, options = {})
212
+ _lato_form_input_options(form, key, options, :change, 'form-control')
213
+
214
+ form.time_field key, options
215
+ end
216
+
217
+ def lato_form_item_input_color(form, key, options = {})
218
+ _lato_form_input_options(form, key, options, :change, 'form-control')
219
+ options[:class] ||= []
220
+ options[:class].push('lato-form-item-input-color')
221
+
222
+ form.color_field key, options
223
+ end
224
+
211
225
  def lato_form_submit(form, label, options = {})
212
226
  options[:class] ||= []
213
227
  options[:class].push('btn')
@@ -6,4 +6,4 @@ module LatoUserApplication
6
6
  end
7
7
 
8
8
  # Add here custom methods
9
- end
9
+ end
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "3.11.5"
2
+ VERSION = "3.11.7"
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.11.5
4
+ version: 3.11.7
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-03-24 00:00:00.000000000 Z
11
+ date: 2025-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails