rails_modal_manager 1.0.21 → 1.0.23

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: d03fb7db1ba740c753b18ba28d4f107a3cf64df060224b92f34cd1973132bcca
4
- data.tar.gz: e61d85e7cf871e4ee369c53928f8b71914894bc2223640dcb4d678a03ac5dda9
3
+ metadata.gz: 5acdc1ed0ff36aa9e8ae422cd42805e56097b6941fe386ab7b87848361b52fb5
4
+ data.tar.gz: ffe3cb57ec99a2027269d834f7578c392556b3e70fbe1ef964258227ffb89038
5
5
  SHA512:
6
- metadata.gz: c875b4bc4e68bd5aec361e19197005a73c98e8b5febf416c9eb2eb1ea0ad28bfac283d570d91bb1069d9b9bbcc48ab12a92b1d3d1ff0bfa52e4ff411c51765de
7
- data.tar.gz: 7bb93c94b22eeae957922a018a3c2b5d16a81eaeadf9aa89047d62499f746e890beaaa3a8dad39c0084cfe64367aeb0c60667bdd73a1d7dd276b82eaacc7cd18
6
+ metadata.gz: ed14825f59aea0340a4db2a3c2fac3ee375ba89107984a38a2e4740bf489ef26bca0e1d94d7ee45b979656f11396388d95dbdf2c36602bd9405439b5c24ee7fd
7
+ data.tar.gz: 33f3c11beccdc87a491c8afadfd1c81e9417aa98fe56f3cdf5f7c414a0a6ecb7837d7f55a190b27ccaa6ce0b9803975afc98775f24c4cf3ed2d40dedd9ad5d38
@@ -431,8 +431,6 @@ export default class extends Controller {
431
431
  modal.style.margin = '0'
432
432
  } else {
433
433
  // Reset full-size specific styles
434
- modal.style.right = ''
435
- modal.style.bottom = ''
436
434
  modal.style.borderRadius = ''
437
435
  modal.style.margin = ''
438
436
  modal.style.maxHeight = ''
@@ -454,6 +452,13 @@ export default class extends Controller {
454
452
  modal.style.height = ''
455
453
  }
456
454
 
455
+ // Reset all position styles before applying new position
456
+ modal.style.top = ''
457
+ modal.style.left = ''
458
+ modal.style.right = ''
459
+ modal.style.bottom = ''
460
+ modal.style.transform = ''
461
+
457
462
  // Apply position
458
463
  if (config.customPosition) {
459
464
  modal.style.top = `${config.customPosition.top}px`
@@ -3,12 +3,13 @@
3
3
 
4
4
  Locals:
5
5
  modal_id: String - The modal ID
6
- items: Array - Menu items [{id:, label:, icon_svg:, badge:, active:, disabled:, panel_id:, submenu_id:}]
6
+ items: Array - Menu items [{id:, label:, icon_svg:, badge:, active:, disabled:, panel_id:, submenu_id:, title:}]
7
7
  collapsed: Boolean - Initially collapsed (default: false)
8
8
 
9
9
  Item options:
10
10
  - panel_id: ID of the content panel to show when selected
11
11
  - submenu_id: ID of the submenu group to show when selected
12
+ - title: Tooltip text shown on hover
12
13
  %>
13
14
  <%
14
15
  modal_id ||= ""
@@ -35,6 +36,7 @@
35
36
  data-item-label="<%= item[:label] %>"
36
37
  <% if item[:panel_id].present? %>data-panel-id="<%= item[:panel_id] %>"<% end %>
37
38
  <% if item[:submenu_id].present? %>data-submenu-id="<%= item[:submenu_id] %>"<% end %>
39
+ <% if item[:title].present? %>title="<%= item[:title] %>"<% end %>
38
40
  data-action="click->rmm-sidebar#selectItem"
39
41
  <% if item[:disabled] %>aria-disabled="true"<% end %>>
40
42
  <% if item[:icon_svg].present? %>
@@ -3,7 +3,7 @@
3
3
 
4
4
  Locals:
5
5
  modal_id: String - The modal ID
6
- items: Array - Menu items [{id:, label:, icon_svg:, active:, disabled:, panel_id:, url:}]
6
+ items: Array - Menu items [{id:, label:, icon_svg:, active:, disabled:, panel_id:, url:, title:}]
7
7
  load_mode: String - 'preload' (default) or 'ajax'
8
8
  cache_ajax: Boolean - Cache AJAX responses (default: true)
9
9
 
@@ -39,6 +39,7 @@
39
39
  data-item-label="<%= item[:label] %>"
40
40
  <% if item[:panel_id].present? %>data-panel-id="<%= item[:panel_id] %>"<% end %>
41
41
  <% if item[:url].present? %>data-url="<%= item[:url] %>"<% end %>
42
+ <% if item[:title].present? %>title="<%= item[:title] %>"<% end %>
42
43
  data-action="click->rmm-submenu#selectItem"
43
44
  <% if item[:disabled] %>disabled<% end %>>
44
45
  <% if item[:icon_svg].present? %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsModalManager
4
- VERSION = "1.0.21"
4
+ VERSION = "1.0.23"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_modal_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.21
4
+ version: 1.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - reshacs