glib-web 4.1.3 → 4.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/json_ui/garage/test_page/index.json.jbuilder +12 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d36f47f5f0236550243e1344d2bdee89559141b549575142afbd1ea5a13464d1
|
4
|
+
data.tar.gz: c772a7b58eb06904c442d220a7eae112eaeb5416774a8db28623caa770ec95e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 176d31f10a75945b693d0e0f26497d19a95ee63863d9cf585004cfe4b9011c64d5908ee622b3a0a83dd01b3a7d4c8babee9cd84af5c2ec3315aaac8e860dc536
|
7
|
+
data.tar.gz: e75efdc5c2b79a11c380d3905cb2d8d495c74cb01c88264dc0b362c0393007037d3bb814af0bb70ec0c82ce6779db51ca9ecd2be2f7ebb79a2880636645508ae
|
@@ -5,13 +5,13 @@ page = json_ui_page json
|
|
5
5
|
page.body childViews: ->(body) do
|
6
6
|
body.panels_responsive padding: glib_json_padding_body, childViews: ->(res) do
|
7
7
|
res.panels_column lg: { cols: 6 }, childViews: ->(col) do
|
8
|
-
res.h2 text: 'Reactivity'
|
8
|
+
res.h2 text: 'Reactivity & validation'
|
9
9
|
res.spacer height: 8
|
10
10
|
res.panels_form \
|
11
11
|
url: json_ui_garage_url(path: 'forms/generic_post'),
|
12
12
|
method: 'post',
|
13
13
|
childViews: ->(form) do
|
14
|
-
form.
|
14
|
+
form.panels_flow innerPadding: { bottom: 0 }, width: 'matchParent', childViews: ->(hori) do
|
15
15
|
hori.button text: 'components/set', onClick: ->(action) do
|
16
16
|
action.runMultiple childActions: ->(saction) do
|
17
17
|
saction.components_set targetId: 'text', data: { value: 'Doe John' }
|
@@ -42,6 +42,10 @@ page.body childViews: ->(body) do
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
45
|
+
hori.spacer width: 4
|
46
|
+
hori.button text: 'hide select', onClick: ->(action) do
|
47
|
+
action.components_set targetId: 'select', data: { displayed: false }
|
48
|
+
end
|
45
49
|
end
|
46
50
|
|
47
51
|
form.spacer height: 8
|
@@ -53,7 +57,7 @@ page.body childViews: ->(body) do
|
|
53
57
|
|
54
58
|
form.fields_date width: 'matchParent', name: 'user[date]', id: 'date', value: Date.new(2024, 7, 24), validation: validation
|
55
59
|
form.hr width: 'matchParent'
|
56
|
-
form.fields_select multiple: true, width: 'matchParent', name: 'user[select]', id: 'select', options: options, value: ['option1', 'option2'], validation: validation
|
60
|
+
form.fields_select multiple: true, width: 'matchParent', name: 'user[select][]', id: 'select', options: options, value: ['option1', 'option2'], validation: validation
|
57
61
|
form.hr width: 'matchParent'
|
58
62
|
form.fields_chipGroup width: 'matchParent', name: 'user[chip_group]', id: 'chip_group', options: options, value: ['option2'], validation: validation
|
59
63
|
form.hr width: 'matchParent'
|
@@ -66,7 +70,7 @@ page.body childViews: ->(body) do
|
|
66
70
|
check_group_value = ['option3', 'option1']
|
67
71
|
form.fields_checkGroup width: 'matchParent', name: 'user[check_group]', id: 'check_group', value: check_group_value, validation: validation, childViews: ->(radio) do
|
68
72
|
options.each do |option|
|
69
|
-
radio.fields_check label: option['text'],
|
73
|
+
radio.fields_check label: option['text'], checkValue: option['value']
|
70
74
|
end
|
71
75
|
end
|
72
76
|
form.hr width: 'matchParent'
|
@@ -100,6 +104,10 @@ page.body childViews: ->(body) do
|
|
100
104
|
ssaction.dialogs_show updateExisting: true, disableCloseButton: true, content: ->(sdialog) do
|
101
105
|
sdialog.body padding: glib_json_padding_body, childViews: ->(ssbody) do
|
102
106
|
ssbody.h1 text: 'Hello world (updated)'
|
107
|
+
ssbody.spacer height: 8
|
108
|
+
ssbody.button text: 'close', onClick: ->(xaction) do
|
109
|
+
xaction.dialogs_close
|
110
|
+
end
|
103
111
|
end
|
104
112
|
end
|
105
113
|
end
|