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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5acdc1ed0ff36aa9e8ae422cd42805e56097b6941fe386ab7b87848361b52fb5
|
|
4
|
+
data.tar.gz: ffe3cb57ec99a2027269d834f7578c392556b3e70fbe1ef964258227ffb89038
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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? %>
|