solid_litequeen 0.15.1 → 0.15.3

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: f112dd52c78339931b6851d91130de3a386300e29b4ca84470d637a0d8cfdbb9
4
- data.tar.gz: ffcaffbfa3caad295dd82ee7fd1aa86f0d7d5e24915badd9498b828afb18543c
3
+ metadata.gz: b73b49c89207256af88ff6c90f81537582a2e9705298abef25e1178a4a94308d
4
+ data.tar.gz: bf1d2d2071fe3cfcf25ef15095222b9a00986a812af0024c0851831ab58102c3
5
5
  SHA512:
6
- metadata.gz: e62a30f4f3995a3de6ec1ecd64abe9794ad06178375ed2773e0735d015bcb7aa9bb6799eda79af0440bb271fab816f4d72d8765311565af1631b797f4ddf409d
7
- data.tar.gz: a6fab70afc4519c9cf039c96581937a6f85b1d704b4c84e88ed7cbef0629743f1803daef3a7a60144e920c61706aff20f06eeace1e96d2fdb864ee528635b7b4
6
+ metadata.gz: 26db56e45303709952e3a3993172f128e26c33599920562e5f2077b1ab395fad709dc5d1d99c0114fe5f948c9674381c09aa5a34493b257894b8a07776809e58
7
+ data.tar.gz: b65b4acd3be0dd949cdaa805664d68deff5cba405d65d2b97622be1cd12d9205be9901df82e98f3bb70461aaa729d53d2903980431b13c1f7f7ff945f33e5013
@@ -19,6 +19,10 @@ export default class extends Controller {
19
19
  this.element?.close();
20
20
  }
21
21
 
22
+ close(){
23
+ this.element?.close()
24
+ }
25
+
22
26
  /**
23
27
  * Handles mouse events for the search dialog.
24
28
  * @param {MouseEvent} event - The mouse event triggered by user interaction.
@@ -16,6 +16,9 @@
16
16
  <style type="text/tailwindcss">
17
17
  @plugins "form";
18
18
 
19
+ :root{
20
+ color-scheme: light dark;
21
+ }
19
22
 
20
23
  @theme {
21
24
  --color-clifford: #da373d;
@@ -13,9 +13,13 @@
13
13
 
14
14
  <script>
15
15
  document.getElementById('database-select').addEventListener('change', function() {
16
- if (this.value) {
16
+ if(!this.value){
17
+ Turbo.visit('<%= database_path("") %>');
18
+ return
19
+ }
20
+
17
21
  Turbo.visit('<%= database_path("") %>' + this.value);
18
- }
22
+
19
23
  });
20
24
  </script>
21
25
  </div>
@@ -1,9 +1,9 @@
1
1
  <dialog id="<%= dialog_id %>" data-controller="dialog" class="w-[800px] m-auto overscroll-y-contain">
2
- <form method="submit" class="flex flex-row-reverse">
3
- <button formmethod="dialog" class="cursor-pointer mr-4 mt-2 outline-none">
2
+ <div class="flex flex-row-reverse">
3
+ <button data-action="click->dialog#close" class="cursor-pointer mr-4 mt-2 outline-none">
4
4
  <%= image_tag "solid_litequeen/icons/x.svg", class: "size-5" %>
5
5
  </button>
6
- </form>
6
+ </div>
7
7
 
8
8
  <h1 class="text-lg font-semibold text-center"><%= column_name %></h1>
9
9
 
@@ -1,9 +1,9 @@
1
1
  <dialog id="table_relationships" data-controller="dialog table-relations" data-relations="<%= @table_relations.to_json %>" class="w-[1000px] h-full m-auto overscroll-y-contain">
2
- <form method="submit" class="flex flex-row-reverse">
3
- <button formmethod="dialog" class="cursor-pointer mr-4 mt-2 outline-none">
2
+ <div class="flex flex-row-reverse">
3
+ <button data-action="click->dialog#close" class="cursor-pointer mr-4 mt-2 outline-none">
4
4
  <%= image_tag "solid_litequeen/icons/x.svg", class: "size-5" %>
5
5
  </button>
6
- </form>
6
+ </div>
7
7
  <h1 class="text-black text-center mt-4">Table Relationships</h1>
8
8
 
9
9
  <div class="w-full p-4 mx-auto overflow-x-auto">
@@ -195,11 +195,10 @@
195
195
 
196
196
  <dialog id="foreign-key-data" data-controller="dialog" class="w-[900px] m-auto overscroll-y-contain">
197
197
  <div class="flex flex-row-reverse">
198
- <form method="submit">
199
- <button formmethod="dialog" class="cursor-pointer mr-4 mt-2 outline-none">
200
- <%= image_tag "solid_litequeen/icons/x.svg", class: "size-5" %>
201
- </button>
202
- </form>
198
+ <button data-action="click->dialog#close" class="cursor-pointer mr-4 mt-2 outline-none">
199
+ <%= image_tag "solid_litequeen/icons/x.svg", class: "size-5" %>
200
+ </button>
201
+
203
202
  </div>
204
203
 
205
204
  <div class="overflow-x-auto relative">
@@ -1,3 +1,3 @@
1
1
  module SolidLitequeen
2
- VERSION = "0.15.1"
2
+ VERSION = "0.15.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_litequeen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vik Borges
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-15 00:00:00.000000000 Z
11
+ date: 2025-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails