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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 302d5085a1335ba7430617cf82afa3f3798c8232ac1fbcf628f937740bc0b625
|
4
|
+
data.tar.gz: eed26b32a540e4f038dd297bb8a655d3aba6c56a5565c814146ea5ed3eab62ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|