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 +4 -4
- data/app/helpers/glib/json_ui/menu_builder.rb +1 -1
- data/app/helpers/glib/json_ui/view_builder/fields.rb +1 -0
- data/app/views/json_ui/garage/_nav_menu.json.jbuilder +11 -0
- data/app/views/json_ui/garage/actions/_reload.json.jbuilder +6 -0
- data/app/views/json_ui/garage/views/popovers_open.json.jbuilder +2 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a129200d9f396b24db166b36cb58d42ed7b4b82fef85effb1e4782b85b619a31
|
4
|
+
data.tar.gz: 8ff5a30a9cdd8bb2fd89372a239da566a35b4617effd71a35fe73f3bccb436cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 293918253138add8bf8cdac4478a149b70f937fefb30aeb48883ea0e0cc5c85141a1e1210045a91a42780ab625e81c27181253fc234fa7863823e802987a6fbe
|
7
|
+
data.tar.gz: c939145b8d54205bcafb938791a6ab7f837895c8ddd42a80d20a4e963aef843228f2ec87b293c53b7d8578870e118ba7576c69251506e513c4fdb1b472a75bf0
|
@@ -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.
|
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.
|
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: []
|