glib-web 4.36.8 → 4.36.9

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: 46f0038f026665e4c7c8cefecd766bf728ca5c807ef1216b42ae0fab40fd644a
4
- data.tar.gz: 06e074f158733ce9ea65bef4b53cddadabbe5eb468cb20175fbb8dc1352c7c81
3
+ metadata.gz: a129200d9f396b24db166b36cb58d42ed7b4b82fef85effb1e4782b85b619a31
4
+ data.tar.gz: 8ff5a30a9cdd8bb2fd89372a239da566a35b4617effd71a35fe73f3bccb436cf
5
5
  SHA512:
6
- metadata.gz: 6428f530b4309e009f66905ec030ee68acbd98b9543ef4480e8835408fe3601d856d98e6e517cd2d76e33a4311ee3e0b873c1e51179a5d68da5b35663e1dc2c9
7
- data.tar.gz: 61a08e0100e9d85582933e4931f19162e5b5303f309370420d0dc4d3cdd0c183dd9a5a4b325c506e4974ec913cc20518497251cfa76583615c67137bf8ddf47c
6
+ metadata.gz: 293918253138add8bf8cdac4478a149b70f937fefb30aeb48883ea0e0cc5c85141a1e1210045a91a42780ab625e81c27181253fc234fa7863823e802987a6fbe
7
+ data.tar.gz: c939145b8d54205bcafb938791a6ab7f837895c8ddd42a80d20a4e963aef843228f2ec87b293c53b7d8578870e118ba7576c69251506e513c4fdb1b472a75bf0
@@ -20,7 +20,7 @@ module Glib
20
20
  icon :icon
21
21
  action :onClick
22
22
  bool :disabled
23
- # hash :tooltip
23
+ bool :expanded
24
24
  singleton_array :styleClass, :styleClasses
25
25
 
26
26
  def childButtons(block)
@@ -324,6 +324,7 @@ class Glib::JsonUi::ViewBuilder
324
324
 
325
325
  class Radio < View
326
326
  string :label
327
+ string :subtitle
327
328
  string :value
328
329
  action :onClick
329
330
  string :offIcon
@@ -58,6 +58,17 @@ if local_assigns[:top_nav] || json_ui_app_is_web?
58
58
  menu.divider
59
59
  menu.label text: 'Misc Menu'
60
60
 
61
+ menu.button icon: 'list', text: 'Parent', expanded: true, onClick: ->(action) do
62
+ end, childButtons: ->(parent) do
63
+ parent.button text: 'Child 1', onClick: ->(action) do
64
+ action.windows_open url: json_ui_garage_url(path: 'lists/index')
65
+ end
66
+ parent.button text: 'Child 2', onClick: ->(action) do
67
+ action.windows_open url: json_ui_garage_url(path: 'forms/index')
68
+ end
69
+ end
70
+
71
+
61
72
  menu.button icon: 'notifications', text: 'Notifications', onClick: ->(action) do
62
73
  action.windows_open url: json_ui_garage_url(path: 'notifications/index')
63
74
  end
@@ -16,6 +16,12 @@ section.rows builder: ->(template) do
16
16
  action.windows_reload url: json_ui_garage_url(path: 'actions/index', reload_counter: reload_counter + 1)
17
17
  end
18
18
 
19
+ template.thumbnail title: 'windows/reload (onReload)', onClick: ->(action) do
20
+ action.windows_reload onReload: ->(saction) do
21
+ saction.snackbars_alert message: 'onReload called'
22
+ end
23
+ end
24
+
19
25
  template.thumbnail title: "components/replace (counter: #{reload_counter})", onClick: ->(action) do
20
26
  action.http_get url: json_ui_garage_url(path: 'actions/partial_update', reload_counter: reload_counter + 1)
21
27
  end
@@ -3,7 +3,8 @@ sleep 1
3
3
  page = json_ui_page json
4
4
 
5
5
  page.body childViews: ->(body) do
6
- body.panels_responsive styleClass: 'popover-menu', childViews: ->(sres) do
6
+ body.panels_form styleClass: 'popover-menu', childViews: ->(sres) do
7
+ sres.fields_select options: ['A', 'B'].map { |v| { text: v, value: v } }, name: 'user[select]', label: 'Select', width: 'matchParent'
7
8
  sres.p text: "Current time: #{DateTime.current}", styleClass: 'pb-2'
8
9
  sres.button text: 'Update', onClick: ->(action) do
9
10
  action.popovers_open url: json_ui_garage_url(path: 'views/popovers_open', key: params[:key]), key: params[:key], updateExisting: true
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.36.8
4
+ version: 4.36.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2019-10-04 00:00:00.000000000 Z
@@ -136,7 +136,7 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
- description:
139
+ description:
140
140
  email: ''
141
141
  executables: []
142
142
  extensions: []
@@ -446,10 +446,10 @@ files:
446
446
  - lib/glib/value.rb
447
447
  - lib/glib/version.rb
448
448
  - lib/tasks/db.rake
449
- homepage:
449
+ homepage:
450
450
  licenses: []
451
451
  metadata: {}
452
- post_install_message:
452
+ post_install_message:
453
453
  rdoc_options: []
454
454
  require_paths:
455
455
  - lib
@@ -465,7 +465,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
465
465
  version: '0'
466
466
  requirements: []
467
467
  rubygems_version: 3.4.6
468
- signing_key:
468
+ signing_key:
469
469
  specification_version: 4
470
470
  summary: ''
471
471
  test_files: []