lato 0.1.41 → 0.1.43

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: 3c546f12dcaa130c6ba08d7d731b307f0307d994f8e60cd6ca51aa78e4d5b522
4
- data.tar.gz: 7036a73ffcd0064d28e1e54649396dc9e5a155c691f6e2b3d52475940eb66322
3
+ metadata.gz: a34ec33506d24a255aa70857414131f233bcc5c812f3b38f139cd4e02cffc9f6
4
+ data.tar.gz: f88a6b9db1e9956281ead6dfe9858d62eb421158d45484184df1fbe822fbdd53
5
5
  SHA512:
6
- metadata.gz: e311e0ebc391f595aca7bf74cf2937da3e9ae1b6b4409c17a2fd523ff79e519448feca8aab1c1487535e7139089f4a56af66a773389f6572fb4d66af2896ba1f
7
- data.tar.gz: a5ad63fe639ec4fe4f6fd886502c7b1032d889b9e32e0131ee68888a2cf51bed14455de2ae5c0e0728f072a41e89a9e52804b236f96b6a31c15da11af149753d
6
+ metadata.gz: 9ca0377c4ec076da3438e2021ecdc089671ce9f5275e5531dbf9f772c077f6630728806f3f3d889708c2335cead5951e0c3b5bbe289e4cb58a2d7a38bed739c5
7
+ data.tar.gz: dde9d1be128466a57cfdceac660b5b6ab7cb2dd2b78465e29e7e42339bb7f7d13f6c7e2e7bb6b05cbcb970cb2884aed8913a08181619d0f3c8c1f21e70a0040c
@@ -11,8 +11,13 @@ document.addEventListener("turbo:before-visit", (e) => {
11
11
  })
12
12
 
13
13
  // Close all boostrap modals before page change with turbo
14
+ // NOTE: This is not a good solution, but it seems to work
14
15
  document.addEventListener("turbo:before-visit", (e) => {
15
- document.querySelectorAll('.modal').forEach((modal) => {
16
+ document.querySelectorAll('.modal.show').forEach((modal) => {
16
17
  modal.classList.remove('show')
17
18
  })
19
+
20
+ document.querySelectorAll('.modal-backdrop').forEach((backdrop) => {
21
+ backdrop.remove()
22
+ })
18
23
  })
@@ -81,7 +81,16 @@ export default class extends Controller {
81
81
  const index = this.getFreeModalIndex()
82
82
 
83
83
  if (options.turboFrame && options.turboFrame != '_top') {
84
- this.modalBodyTargets[index].innerHTML = `<turbo-frame id="${options.turboFrame}"></turbo-frame>`
84
+ this.modalBodyTargets[index].innerHTML = `
85
+ <turbo-frame id="${options.turboFrame}">
86
+ <div class="placeholder-glow">
87
+ <span class="placeholder placeholder-lg col-12"></span>
88
+ <span class="placeholder placeholder-lg col-12"></span>
89
+ <span class="placeholder placeholder-lg col-12"></span>
90
+ <span class="placeholder placeholder-lg col-12"></span>
91
+ </div>
92
+ </turbo-frame>
93
+ `
85
94
 
86
95
  if (options.actionTitle) {
87
96
  this.modalTitleTargets[index].innerHTML = options.actionTitle
@@ -40,7 +40,7 @@ collection_total = collection.respond_to?(:total_count) ? collection.total_count
40
40
 
41
41
  <ul class="list-group list-group-flush">
42
42
  <% collection.each do |member| %>
43
- <li class="list-group-item p-2 border-0 bg-light mb-3 rounded">
43
+ <li class="list-group-item p-2 border bg-light mb-3 rounded">
44
44
  <table class="table mb-0">
45
45
  <tbody>
46
46
  <% columns.each do |column| %>
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.41"
2
+ VERSION = "0.1.43"
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.1.41
4
+ version: 0.1.43
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-03-07 00:00:00.000000000 Z
11
+ date: 2023-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails