ultimate_turbo_modal 1.5.0 → 1.6.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/phlex/deferred_render_with_main_content.rb +2 -2
- data/lib/ultimate_turbo_modal/base.rb +17 -17
- data/lib/ultimate_turbo_modal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19886fb7dd818b59f8aad64fa2c917783e690d63797761b63dd2ef4422ef119a
|
4
|
+
data.tar.gz: a1c5449b028638a5b7d39b2ea7707accf037d402fc1361ffc8d075b28181bde4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8395f4d9a00f83fffcdb0293a967867b52a00e74ad3716bab49b5923f8c541e9a953246f3196abc434ddccc0daa3c8868caf78c6d915154b978ead3900628bc2
|
7
|
+
data.tar.gz: 17f6c1e20e67e8447fc41f3cbe708d4a2899acf9fcdfbd8ea753960c8daeb2789c572acbc9ee107b6524472ac2e78c1cb77d4b3b18cafa7911028c9336b801e4
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -107,26 +107,26 @@ class UltimateTurboModal::Base < Phlex::HTML
|
|
107
107
|
|
108
108
|
## HTML components
|
109
109
|
|
110
|
-
def modal(&)
|
110
|
+
def modal(&block)
|
111
111
|
outer_divs do
|
112
112
|
div_content do
|
113
113
|
div_header
|
114
|
-
div_main(&)
|
114
|
+
div_main(&block)
|
115
115
|
div_footer if footer?
|
116
116
|
end
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
120
|
-
def outer_divs(&)
|
120
|
+
def outer_divs(&block)
|
121
121
|
div_dialog do
|
122
122
|
div_overlay
|
123
123
|
div_outer do
|
124
|
-
div_inner(&)
|
124
|
+
div_inner(&block)
|
125
125
|
end
|
126
126
|
end
|
127
127
|
end
|
128
128
|
|
129
|
-
def div_dialog(&)
|
129
|
+
def div_dialog(&block)
|
130
130
|
div(id: "modal-container",
|
131
131
|
class: self.class::DIV_DIALOG_CLASSES,
|
132
132
|
role: "dialog",
|
@@ -152,30 +152,30 @@ class UltimateTurboModal::Base < Phlex::HTML
|
|
152
152
|
close_button: close_button?.to_s,
|
153
153
|
header_divider: header_divider?.to_s,
|
154
154
|
footer_divider: footer_divider?.to_s
|
155
|
-
}, &)
|
155
|
+
}, &block)
|
156
156
|
end
|
157
157
|
|
158
158
|
def div_overlay
|
159
159
|
div(id: "modal-overlay", class: self.class::DIV_OVERLAY_CLASSES)
|
160
160
|
end
|
161
161
|
|
162
|
-
def div_outer(&)
|
163
|
-
div(id: "modal-outer", class: self.class::DIV_OUTER_CLASSES, &)
|
162
|
+
def div_outer(&block)
|
163
|
+
div(id: "modal-outer", class: self.class::DIV_OUTER_CLASSES, &block)
|
164
164
|
end
|
165
165
|
|
166
|
-
def div_inner(&)
|
167
|
-
div(id: "modal-inner", class: self.class::DIV_INNER_CLASSES, &)
|
166
|
+
def div_inner(&block)
|
167
|
+
div(id: "modal-inner", class: self.class::DIV_INNER_CLASSES, &block)
|
168
168
|
end
|
169
169
|
|
170
|
-
def div_content(&)
|
171
|
-
div(id: "modal-content", class: self.class::DIV_CONTENT_CLASSES, data: {modal_target: "content"}, &)
|
170
|
+
def div_content(&block)
|
171
|
+
div(id: "modal-content", class: self.class::DIV_CONTENT_CLASSES, data: {modal_target: "content"}, &block)
|
172
172
|
end
|
173
173
|
|
174
|
-
def div_main(&)
|
175
|
-
div(id: "modal-main", class: self.class::DIV_MAIN_CLASSES, &)
|
174
|
+
def div_main(&block)
|
175
|
+
div(id: "modal-main", class: self.class::DIV_MAIN_CLASSES, &block)
|
176
176
|
end
|
177
177
|
|
178
|
-
def div_header(&)
|
178
|
+
def div_header(&block)
|
179
179
|
div(id: "modal-header", class: self.class::DIV_HEADER_CLASSES) do
|
180
180
|
div_title
|
181
181
|
button_close
|
@@ -207,13 +207,13 @@ class UltimateTurboModal::Base < Phlex::HTML
|
|
207
207
|
end
|
208
208
|
end
|
209
209
|
|
210
|
-
def close_button_tag(&)
|
210
|
+
def close_button_tag(&block)
|
211
211
|
button(type: "button",
|
212
212
|
aria: {label: "close"},
|
213
213
|
class: self.class::CLOSE_BUTTON_TAG_CLASSES,
|
214
214
|
data: {
|
215
215
|
action: @close_button_data_action
|
216
|
-
}, &)
|
216
|
+
}, &block)
|
217
217
|
end
|
218
218
|
|
219
219
|
def icon_close
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultimate_turbo_modal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carl Mercier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: phlex-rails
|