glib-web 3.0.0 → 3.0.1

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: 1893d7f9752d6b6fa88f44c3cf3992aafff393b4b10638ca989b82859c47c716
4
- data.tar.gz: 7c19f36849c4ff6d58f1e53657c7f639b1a6d69fb1d4810c1a3a4d71ad652f8b
3
+ metadata.gz: 72eecba2c1fe97bbb3ef6f0be03e4d0f79a23a4dcca8c7f16bf3d1be9083a5b7
4
+ data.tar.gz: 526316d03db695e57c5a2a7e81110cb52f14d73ab5524ca7866c73a6e9230ffc
5
5
  SHA512:
6
- metadata.gz: 45a1be444dc544ac2957134c50cc8035ebd1a114b2eb724fbb3f2bc9d8cb845beca2f370670a6c74f46dcdd9892e4ac1b033c73ba20704a8ee2bd243733c4b94
7
- data.tar.gz: 0f31ccbe16452d786d71c0c314753c03cd7d92476b0a392b9231d3b07110a01db1c2788a1937ddf073489656a00f2fb73c92b81e6e3f6b108c97e9c4281c08d1
6
+ metadata.gz: fc68d49b58d90e62fa5c4f2cd82bbf2bde03123a63ecc3f3fe09875d8a886db320f0151c53c31cfc417d2cc88993f66b10350f2d9f00f8c70dda54bdccef1075
7
+ data.tar.gz: e4faf34c6746d568277406474f5c75ce05f52c0ce262102879adf13ac595e8f03102a169047d9a9993f952d6d3978de6f22677b9068796d14cb1b3fba3b6d878
@@ -24,7 +24,7 @@ module Glib
24
24
  }
25
25
 
26
26
  /* Make sure the hover highlight effect also has rounded corners */
27
- .rounded-corner:hover:after {
27
+ .rounded-corner:hover:before {
28
28
  border-radius: 16px;
29
29
  }
30
30
  </style>
@@ -29,6 +29,7 @@ class Glib::JsonUi::ActionBuilder
29
29
  bool :showClose
30
30
  string :fullscreen # mobile, always
31
31
  length :width
32
+ bool :closeOnBlur
32
33
 
33
34
  # def initialize(json, page)
34
35
  # @json = json
@@ -2,6 +2,7 @@ class Glib::JsonUi::ActionBuilder
2
2
  module Http
3
3
  class AbstractHttp < Action
4
4
  string :url, cache: true
5
+ bool :silent
5
6
 
6
7
  def formData(hash)
7
8
  form_data = {}
@@ -3,6 +3,7 @@ class Glib::JsonUi::ViewBuilder
3
3
 
4
4
  class AbstractField < View
5
5
  bool :readOnly
6
+ bool :disabled
6
7
  hash :validation
7
8
  bool :disableDirtyCheck
8
9
  action :onChange
@@ -4,5 +4,28 @@ action.components_update targetId: 'greeting', views: ->(update) do
4
4
  vertical.label text: "Hello #{name},"
5
5
  vertical.spacer height: 8
6
6
  vertical.label text: 'Nice to meet you'
7
+
8
+ vertical.spacer height: 8
9
+ vertical.panels_horizontal childViews: ->(horizontal) do
10
+ horizontal.label text: "Column1 #{DateTime.current.to_i}"
11
+ horizontal.spacer width: 8
12
+
13
+ horizontal.panels_vertical childViews: ->(inner_vertical) do
14
+ inner_vertical.label text: "Row1 #{DateTime.current.to_i}"
15
+ inner_vertical.label text: "Row2 #{DateTime.current.to_i}"
16
+
17
+ inner_vertical.panels_split content: ->(split) do
18
+ split.left childViews: ->(left) do
19
+ left.label text: "Left1 #{DateTime.current.to_i}"
20
+ left.label text: "Left2 #{DateTime.current.to_i}"
21
+ end
22
+
23
+ split.right childViews: ->(right) do
24
+ right.label text: "Right1 #{DateTime.current.to_i}"
25
+ right.label text: "Right2 #{DateTime.current.to_i}"
26
+ end
27
+ end
28
+ end
29
+ end
7
30
  end
8
31
  end
@@ -119,13 +119,17 @@ json_ui_page json do |page|
119
119
 
120
120
  scroll.spacer height: 20
121
121
  scroll.h1 text: 'Label combo (with onClick)'
122
- scroll.panels_horizontal childViews: ->(panel) do
123
- panel.label backgroundColor: '#b3bac2', text: 'Label 1'
124
- panel.label text: 'Label 2'
125
- panel.label backgroundColor: '#b3bac2', text: 'Label 3'
126
- end, onClick: ->(action) do
127
- action.windows_open url: json_ui_garage_url(path: 'home/blank')
128
- end
122
+ scroll.panels_horizontal \
123
+ padding: { left: 20, right: 20, top: 10, bottom: 10 },
124
+ styleClasses: ['rounded-corner'],
125
+ backgroundColor: '#b3bac2',
126
+ childViews: ->(panel) do
127
+ panel.label text: 'Label 1'
128
+ panel.label backgroundColor: '#ffffff', text: 'Label 2'
129
+ panel.label text: 'Label 3'
130
+ end, onClick: ->(action) do
131
+ action.windows_open url: json_ui_garage_url(path: 'home/blank')
132
+ end
129
133
 
130
134
  scroll.spacer height: 20
131
135
  scroll.h1 text: 'Drag-and-drop support'
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: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''