glib-web 4.1.3 → 4.1.4

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: 59ce4822a2cbafa2933d7bf884df8eb63af65ebcd4046e4484a652fda583b5c6
4
- data.tar.gz: f652bfbdb23e198af85cd46f0afef1f753da089a196ff18a13c4cbc57bf834b2
3
+ metadata.gz: d36f47f5f0236550243e1344d2bdee89559141b549575142afbd1ea5a13464d1
4
+ data.tar.gz: c772a7b58eb06904c442d220a7eae112eaeb5416774a8db28623caa770ec95e5
5
5
  SHA512:
6
- metadata.gz: ed0d06a31f63ab5fe4deffdf1995f1a673d751595da56fbbc2e1e8b3e3c55d7466957945cbf17f6aa78f094130480ea9c41d29c092b17f45aa6f4c5b90df60e5
7
- data.tar.gz: 3ffb43696bb3c525282eead1ecd4232078acddc578091d056964b3c774e35e4c3be464a0ddb2230176a08d1a4578c53118d1cfe61893c6f802133d8cceecd7f2
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.panels_horizontal childViews: ->(hori) do
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'], value: check_group_value.include?(option['value']) ? option['value'] : nil, checkValue: option['value']
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
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: 4.1.3
4
+ version: 4.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''