glib-web 3.2.1 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94dea11102f74468be0ee879e6c259479b6e7c26b48c28684068b2449149a66c
4
- data.tar.gz: ed45e4c192581de4fcbfd5e7bf66684b470fd0fa2b9ccd917c2ad118e8919037
3
+ metadata.gz: 302d5085a1335ba7430617cf82afa3f3798c8232ac1fbcf628f937740bc0b625
4
+ data.tar.gz: eed26b32a540e4f038dd297bb8a655d3aba6c56a5565c814146ea5ed3eab62ad
5
5
  SHA512:
6
- metadata.gz: 1956190c7b8ec98df1bff39ebc090150a312fa0b3a20b8bd18b42c95a9e7cff70c1f81b53b2cac20fa1adf80f499eb71e3067b8f8c758f3a7b54b3bef2d4636c
7
- data.tar.gz: a84f1537272d78e471544d5973b55b6855d2e2b645c7e0b2d2d75cebc489b4f60d7a9c44113054e2581dd884ac8478fdcf33c625d650e2f5434ce015913577ba
6
+ metadata.gz: b02f13486ae0dd560280cab7bfc96807b21e85740e12de62127db2cc3aab41339639dadcb51833b0de2993f1bdd6ff1b35bbc065e71754ec4af1632ce9901b88
7
+ data.tar.gz: e91e1e637e38e8b045be1f262b73bc66823ee4f87200a0f48e1c513a5ed9a3264010d02f7f1a8becc01fb338227d2e3e78cff0338946d889d27f66335d2123dd
@@ -36,7 +36,7 @@ class Glib::JsonUi::ViewBuilder
36
36
 
37
37
  class Line < View
38
38
  include Series
39
-
39
+ array :colors
40
40
  # idea for the future
41
41
  # hash :nextPage
42
42
  end
@@ -45,15 +45,18 @@ class Glib::JsonUi::ViewBuilder
45
45
  include Series
46
46
 
47
47
  bool :stacked
48
+ array :colors
48
49
  end
49
50
 
50
51
  class Pie < View
51
52
  include Series
53
+ array :colors
52
54
 
53
55
  end
54
56
 
55
57
  class Area < View
56
58
  include Series
59
+ array :colors
57
60
  end
58
61
 
59
62
  end
@@ -149,6 +149,7 @@ class Glib::JsonUi::ViewBuilder
149
149
  # `html` or `markdown`
150
150
  string :produce
151
151
  string :accept
152
+ string :cacheKey
152
153
  end
153
154
 
154
155
  class Country < AbstractField
@@ -306,6 +307,7 @@ class Glib::JsonUi::ViewBuilder
306
307
  class Otp < AbstractField
307
308
  int :length
308
309
  string :type
310
+ string :align
309
311
  end
310
312
 
311
313
  class Rating < AbstractField
@@ -33,6 +33,22 @@ page.form \
33
33
  length: 20,
34
34
  type: 'text'
35
35
 
36
+ form.spacer height: 20
37
+ form.h2 text: 'OTP with Value If'
38
+ form.fields_otp name: 'user[otp_summary4]', width: 'matchParent', value: 60000, length: 5
39
+ form.fields_otp name: 'user[otp_summary5]', width: 'matchParent', length: 5, valueIf: {
40
+ "*": [
41
+ {
42
+ "var": 'user[otp_summary4]'
43
+ },
44
+ (20/100.to_f)
45
+ ]
46
+ }
47
+
48
+ form.spacer height: 20
49
+ form.h2 text: 'OTP with Alignment right'
50
+ form.fields_otp name: 'user[otp_summary6]', width: 'matchParent', type: 'text', value: '1234', align: 'right', length: 5
51
+
36
52
  form.spacer height: 20
37
53
  form.fields_submit text: 'Submit'
38
54
  end
@@ -42,7 +42,8 @@ else
42
42
  }
43
43
  json.points points.map { |k, v| { x: k, y: v } }
44
44
  end
45
- ]
45
+ ],
46
+ colors: ['#79AC78', '#3085C3']
46
47
 
47
48
  # scroll.spacer height: 20
48
49
  # scroll.h1 text: 'Line chart using remote data'
@@ -77,7 +78,8 @@ else
77
78
  }
78
79
  json.points points
79
80
  end
80
- ]
81
+ ],
82
+ colors: ['#b00', '#666', '#E55604']
81
83
 
82
84
  scroll.h2 text: 'Column chart (Stacked)'
83
85
  scroll.charts_column stacked: true, dataGroups: [
@@ -140,7 +142,8 @@ else
140
142
  json.title 'June'
141
143
  json.value 20
142
144
  end
143
- ]
145
+ ],
146
+ colors: ['#5B0888']
144
147
  end
145
148
  end
146
149
 
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.2.1
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''