rails_modal_manager 1.0.20 → 1.0.22
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: 032a86086504f8c412e82ef62eb31bd7447655e4a650e908cd8e4977e130120f
|
|
4
|
+
data.tar.gz: 6461e3d90bcb1b5ad9a0800bf220c3aa23153804ba766c9525ab250a5380d4d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1657eb5b735b2a9ca6d602250a7d0929ab0cb0de155f3c8549aebce77d01d7311abfd5caed4f0f3c7a2262882320ffe9a410a933e6366e352d57a357d9fa5d05
|
|
7
|
+
data.tar.gz: cc5ed42014d8ea7011b940bf01d4471359de3a65f81096e032dbf1dbf750567754332bb26169aa92e7d8d4426ebc2f62897d34afd095f51680027d24a576b099
|
|
@@ -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`
|
|
@@ -96,6 +96,36 @@
|
|
|
96
96
|
</button>
|
|
97
97
|
<% end %>
|
|
98
98
|
|
|
99
|
+
<%# Custom header buttons (before size controls) %>
|
|
100
|
+
<% header_buttons.each do |btn| %>
|
|
101
|
+
<%
|
|
102
|
+
btn_id = btn[:id]
|
|
103
|
+
btn_icon = btn[:icon]
|
|
104
|
+
btn_icon_svg = btn[:icon_svg] || (btn_icon && header_button_icons[btn_icon])
|
|
105
|
+
btn_label = btn[:label]
|
|
106
|
+
btn_title = btn[:title] || ""
|
|
107
|
+
btn_variant = btn[:variant] || "default"
|
|
108
|
+
btn_onclick = btn[:onclick]
|
|
109
|
+
btn_data_action = btn[:data_action]
|
|
110
|
+
btn_class = "rmm-header-btn rmm-header-btn-custom"
|
|
111
|
+
btn_class += " rmm-header-btn-#{btn_variant}" if btn_variant != "default"
|
|
112
|
+
btn_class += " rmm-header-btn-text" if btn_label.present?
|
|
113
|
+
%>
|
|
114
|
+
<button type="button"
|
|
115
|
+
<% if btn_id.present? %>id="<%= btn_id %>"<% end %>
|
|
116
|
+
class="<%= btn_class %>"
|
|
117
|
+
<% if btn_onclick.present? %>onclick="<%= btn_onclick %>"<% end %>
|
|
118
|
+
<% if btn_data_action.present? %>data-action="<%= btn_data_action %>"<% end %>
|
|
119
|
+
title="<%= btn_title %>">
|
|
120
|
+
<% if btn_icon_svg.present? %>
|
|
121
|
+
<%= btn_icon_svg.html_safe %>
|
|
122
|
+
<% end %>
|
|
123
|
+
<% if btn_label.present? %>
|
|
124
|
+
<span class="rmm-header-btn-label"><%= btn_label %></span>
|
|
125
|
+
<% end %>
|
|
126
|
+
</button>
|
|
127
|
+
<% end %>
|
|
128
|
+
|
|
99
129
|
<% if show_size_controls %>
|
|
100
130
|
<%# Default size button - restores to original size %>
|
|
101
131
|
<button type="button"
|
|
@@ -128,36 +158,6 @@
|
|
|
128
158
|
</button>
|
|
129
159
|
<% end %>
|
|
130
160
|
|
|
131
|
-
<%# Custom header buttons %>
|
|
132
|
-
<% header_buttons.each do |btn| %>
|
|
133
|
-
<%
|
|
134
|
-
btn_id = btn[:id]
|
|
135
|
-
btn_icon = btn[:icon]
|
|
136
|
-
btn_icon_svg = btn[:icon_svg] || (btn_icon && header_button_icons[btn_icon])
|
|
137
|
-
btn_label = btn[:label]
|
|
138
|
-
btn_title = btn[:title] || ""
|
|
139
|
-
btn_variant = btn[:variant] || "default"
|
|
140
|
-
btn_onclick = btn[:onclick]
|
|
141
|
-
btn_data_action = btn[:data_action]
|
|
142
|
-
btn_class = "rmm-header-btn rmm-header-btn-custom"
|
|
143
|
-
btn_class += " rmm-header-btn-#{btn_variant}" if btn_variant != "default"
|
|
144
|
-
btn_class += " rmm-header-btn-text" if btn_label.present?
|
|
145
|
-
%>
|
|
146
|
-
<button type="button"
|
|
147
|
-
<% if btn_id.present? %>id="<%= btn_id %>"<% end %>
|
|
148
|
-
class="<%= btn_class %>"
|
|
149
|
-
<% if btn_onclick.present? %>onclick="<%= btn_onclick %>"<% end %>
|
|
150
|
-
<% if btn_data_action.present? %>data-action="<%= btn_data_action %>"<% end %>
|
|
151
|
-
title="<%= btn_title %>">
|
|
152
|
-
<% if btn_icon_svg.present? %>
|
|
153
|
-
<%= btn_icon_svg.html_safe %>
|
|
154
|
-
<% end %>
|
|
155
|
-
<% if btn_label.present? %>
|
|
156
|
-
<span class="rmm-header-btn-label"><%= btn_label %></span>
|
|
157
|
-
<% end %>
|
|
158
|
-
</button>
|
|
159
|
-
<% end %>
|
|
160
|
-
|
|
161
161
|
<% if closable %>
|
|
162
162
|
<button type="button"
|
|
163
163
|
class="rmm-header-btn rmm-close-btn"
|