glib-web 3.6.1 → 3.8.1
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: b72f7c02474a721398c60f153fbdd616ed2c2ab88d22fa9da4ef09fc314d632e
|
|
4
|
+
data.tar.gz: 972c69195d11c87ec3778c5d911ac788ba0c0236bc6d4830cf361cbc84914b44
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 359795ce00de01bbf2fd732235eded82fa3220137aa3707b720f02204f9268f7ec0a66f71f3cdf3dcfbb2e54babd9138191c88e5b4f5f1c6d4a6d235ff095c9b
|
|
7
|
+
data.tar.gz: 3138fc48fc4f6563bf30cc4c3d41a0223eb12d0a07ef63a3e844246931b87f3d34d62cf147d0b577620a44e8c85eefd8cc5e5c48112a9087779e91a246c50ba6
|
|
@@ -15,5 +15,5 @@ page.form options.merge(childViews: ->(form) do
|
|
|
15
15
|
form.fields_text name: "user[field#{i}]", width: 'matchParent', label: "Field#{i}"
|
|
16
16
|
end
|
|
17
17
|
form.button text: 'Submit', onClick: ->(action) { action.forms_submit }
|
|
18
|
-
form.fab icon: 'send', onClick: ->(action) { action.forms_submit }
|
|
18
|
+
form.fab icon: 'send', styleClasses: ['primary', 'icon'], onClick: ->(action) { action.forms_submit }
|
|
19
19
|
end)
|
|
@@ -186,6 +186,92 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
|
|
|
186
186
|
end
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
+
form.spacer height: 20
|
|
190
|
+
form.h1 text: 'Show/hide without send data'
|
|
191
|
+
form.fields_check name: 'user[loadif1]', label: 'Show one field', checkValue: 'true', uncheckValue: 'false', value: 'true'
|
|
192
|
+
form.spacer height: 4
|
|
193
|
+
form.fields_text \
|
|
194
|
+
name: 'user[loadif_target1]', value: 'This field should not be submitted when it is hidden',
|
|
195
|
+
width: 'matchParent',
|
|
196
|
+
loadIf: {
|
|
197
|
+
"==": [
|
|
198
|
+
{
|
|
199
|
+
"var": 'user[loadif1]'
|
|
200
|
+
},
|
|
201
|
+
'true'
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
form.spacer height: 8
|
|
206
|
+
form.fields_check name: 'user[loadif2]', label: 'Show & hide many field', checkValue: 'true', uncheckValue: 'false', value: 'false'
|
|
207
|
+
form.spacer height: 4
|
|
208
|
+
form.panels_responsive \
|
|
209
|
+
width: 'matchParent',
|
|
210
|
+
loadIf: {
|
|
211
|
+
"==": [
|
|
212
|
+
{
|
|
213
|
+
"var": 'user[loadif2]'
|
|
214
|
+
},
|
|
215
|
+
'true'
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
childViews: ->(res) do
|
|
219
|
+
form.fields_text name: 'user[loadif_target2]', width: 'matchParent', value: 'Value 1'
|
|
220
|
+
form.spacer height: 4
|
|
221
|
+
form.fields_textarea name: 'user[loadif_target3]', width: 'matchParent', value: 'Value 2'
|
|
222
|
+
form.spacer height: 4
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
form.panels_responsive \
|
|
226
|
+
width: 'matchParent',
|
|
227
|
+
loadIf: {
|
|
228
|
+
"==": [
|
|
229
|
+
{
|
|
230
|
+
"var": 'user[loadif2]'
|
|
231
|
+
},
|
|
232
|
+
'false'
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
childViews: ->(res) do
|
|
236
|
+
form.fields_richText name: 'user[loadIf_target4]', width: 'matchParent', value: 'Value 3'
|
|
237
|
+
form.spacer height: 4
|
|
238
|
+
form.fields_radioGroup name: 'user[loadIf_target5]', width: 'matchParent', value: 'choice_1', childViews: ->(group) do
|
|
239
|
+
group.fields_radio label: 'Choice 1', value: 'choice_1'
|
|
240
|
+
group.fields_radio label: 'Choice 2', value: 'choice_2'
|
|
241
|
+
group.fields_radio label: 'Choice 3', value: 'choice_3'
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
form.spacer height: 8
|
|
247
|
+
form.fields_check name: 'user[loadif3]', label: 'Show target nested panels', checkValue: 'true', uncheckValue: 'false', value: 'false'
|
|
248
|
+
form.panels_responsive \
|
|
249
|
+
loadIf: { "==": [{ "var": 'user[loadif3]' }, 'true'] },
|
|
250
|
+
styleClass: 'border-2',
|
|
251
|
+
width: 'matchParent',
|
|
252
|
+
padding: { top: 8, right: 8, bottom: 8, left: 8 },
|
|
253
|
+
childViews: ->(res) do
|
|
254
|
+
res.panels_responsive \
|
|
255
|
+
styleClass: 'border-2',
|
|
256
|
+
width: 'matchParent',
|
|
257
|
+
padding: { top: 8, right: 8, bottom: 8, left: 8 },
|
|
258
|
+
childViews: ->(sres) do
|
|
259
|
+
sres.fields_text name: 'user[loadif_target6]', width: 'matchParent', value: 'Value 4'
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
form.spacer height: 8
|
|
264
|
+
|
|
265
|
+
form.button text: 'Reload component', onClick: ->(action) { action.windows_reload url: json_ui_garage_current_url({ key: SecureRandom.hex(3) }) }
|
|
266
|
+
|
|
267
|
+
if !params[:key]
|
|
268
|
+
form.fields_check name: 'user[loadif4]', label: 'Show reload component 1', checkValue: 'true', uncheckValue: 'false', value: 'false'
|
|
269
|
+
form.fields_text name: 'user[loadif_target7]', width: 'matchParent', value: 'Value 5', loadIf: { "==": [{ "var": 'user[loadif4]' }, 'true'] }
|
|
270
|
+
else
|
|
271
|
+
form.fields_check name: 'user[loadif5]', label: 'Show reload component 2', checkValue: 'true', uncheckValue: 'false', value: 'false'
|
|
272
|
+
form.fields_text name: 'user[loadif_target8]', width: 'matchParent', value: params[:key], loadIf: { "==": [{ "var": 'user[loadif5]' }, 'true'] }
|
|
273
|
+
end
|
|
274
|
+
|
|
189
275
|
form.spacer height: 20
|
|
190
276
|
form.fields_submit text: 'Submit'
|
|
191
277
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: glib-web
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ''
|
|
@@ -318,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
318
318
|
- !ruby/object:Gem::Version
|
|
319
319
|
version: '0'
|
|
320
320
|
requirements: []
|
|
321
|
-
rubygems_version: 3.1.
|
|
321
|
+
rubygems_version: 3.1.4
|
|
322
322
|
signing_key:
|
|
323
323
|
specification_version: 4
|
|
324
324
|
summary: ''
|