glib-web 0.11.17 → 0.12.0

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: e487450f8fc9f676ba7c4c2f29033a716d80ed84262ab3eafcf157e9d12b3a87
4
- data.tar.gz: 2e5b9bc62c77f3af9dc82548f8f0542c5cbb2c194fc0bf71df40b707479b79ef
3
+ metadata.gz: c9e8ad5262dacc2b2f55f185f074bbfe36593c84bd46c4e030159bc47c554574
4
+ data.tar.gz: 5fd52c45a8f244f9607c460901f61c22bd8cc902c7fa7b0f261483df432153a0
5
5
  SHA512:
6
- metadata.gz: 7c47cb5db91b922e908b4a304744179085daaff190c66bdad48cd3e021062bf4cb9fd435e6945fe235f0dbb02e476b7e0723f693c654e6192d23fa51539fed04
7
- data.tar.gz: dc69d7f0707ec8267d83c5ebdf8ce3fc3d3b28682070ba05ef010f0fed6516677442106bfb2669421310f3dbb2a2e72d895d4fcc2f1be192d0e056550076d1f9
6
+ metadata.gz: 19a24fb0ea35460a5b5b83b352540387450048190f9ce656b30a903bc043c63a35ccd14f9614497cadac28783bdcb11e586258c3fc9874c7041e7f4e0210cc27
7
+ data.tar.gz: 0e98e1612ceca151ddfd294c10dbecb8a8858e8b07db331f0bc3907ba0e2ac870e29ecb09eeefea9f09f5c1c9aec9515aae11d863c31242a71566fc272a704d8
@@ -0,0 +1,10 @@
1
+ class Glib::JsonUi::ActionBuilder
2
+ module Tours
3
+
4
+ class Start < Action
5
+ hash :options
6
+ array :steps
7
+ int :startFrom
8
+ end
9
+ end
10
+ end
@@ -34,7 +34,6 @@ module Glib
34
34
  hash :valueIf
35
35
  hash :analytics
36
36
  hash :tooltip
37
- hash :tour
38
37
  array :extensions
39
38
 
40
39
 
@@ -1,5 +1,5 @@
1
1
  section.header padding: glib_json_padding_list, childViews: ->(header) do
2
- header.h3 text: 'Commands'
2
+ header.h3 id: 'commands', text: 'Commands'
3
3
  end
4
4
 
5
5
  section.rows builder: ->(template) do
@@ -1,6 +1,6 @@
1
1
 
2
2
  section.header padding: glib_json_padding_list, childViews: ->(header) do
3
- header.h3 text: 'HTTP'
3
+ header.h3 id: 'http', text: 'HTTP'
4
4
  end
5
5
 
6
6
  section.rows builder: ->(template) do
@@ -0,0 +1,37 @@
1
+ section.header padding: glib_json_padding_list, childViews: ->(header) do
2
+ header.h3 id: 'tours', text: 'Tours'
3
+ end
4
+
5
+ section.rows builder: ->(template) do
6
+ template.thumbnail title: 'tours/start', onClick: ->(action) do
7
+ action.tours_start options: { allowClose: false }, startFrom: 0, steps: [
8
+ {
9
+ element: '#http',
10
+ popover: {
11
+ className: 'popover-class',
12
+ title: 'This is http action',
13
+ description: 'Click highlighted element to continue',
14
+ showButtons: false
15
+ },
16
+ customBehavior: 'clickToNext'
17
+ },
18
+ {
19
+ element: '#commands',
20
+ popover: {
21
+ className: 'popover-class',
22
+ title: 'This is commands action',
23
+ description: 'Click next',
24
+ showButtons: true
25
+ }
26
+ },
27
+ {
28
+ element: '#tours',
29
+ popover: {
30
+ className: 'popover-class',
31
+ title: 'You are here!',
32
+ description: 'Finish'
33
+ }
34
+ }
35
+ ]
36
+ end
37
+ end
@@ -22,5 +22,7 @@ page.list sections: [
22
22
  render "#{@path_prefix}/actions/http", section: section
23
23
  end, ->(section) do
24
24
  render "#{@path_prefix}/actions/commands", section: section
25
+ end, ->(section) do
26
+ render "#{@path_prefix}/actions/tours", section: section
25
27
  end
26
28
  ]
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: 0.11.17
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -98,6 +98,7 @@ files:
98
98
  - app/helpers/glib/json_ui/action_builder/panels.rb
99
99
  - app/helpers/glib/json_ui/action_builder/sheets.rb
100
100
  - app/helpers/glib/json_ui/action_builder/snackbars.rb
101
+ - app/helpers/glib/json_ui/action_builder/tours.rb
101
102
  - app/helpers/glib/json_ui/action_builder/windows.rb
102
103
  - app/helpers/glib/json_ui/analytics_helper.rb
103
104
  - app/helpers/glib/json_ui/dynamic_field_builders.rb
@@ -136,6 +137,7 @@ files:
136
137
  - app/views/json_ui/garage/actions/_sheets.json.jbuilder
137
138
  - app/views/json_ui/garage/actions/_snackbars.json.jbuilder
138
139
  - app/views/json_ui/garage/actions/_timeouts.json.jbuilder
140
+ - app/views/json_ui/garage/actions/_tours.json.jbuilder
139
141
  - app/views/json_ui/garage/actions/_windows.json.jbuilder
140
142
  - app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder
141
143
  - app/views/json_ui/garage/actions/index.json.jbuilder
@@ -297,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
297
299
  - !ruby/object:Gem::Version
298
300
  version: '0'
299
301
  requirements: []
300
- rubygems_version: 3.1.6
302
+ rubygems_version: 3.1.4
301
303
  signing_key:
302
304
  specification_version: 4
303
305
  summary: ''