glib-web 4.27.3 → 4.28.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: 487e158495266c1b750d920c00fb564c5769a0b639a1e0d0d5c24e6bebacf2e4
4
- data.tar.gz: 2aa552aab47063a06e104e919db4810070222c115313b5a41435684a3a078388
3
+ metadata.gz: ee8313aa1ae50db85b81497dfa6d47de690106be60c0988f78140c58b4675684
4
+ data.tar.gz: af785896e1910e22e8976d6c704cdafd8526493af8e10c5f277bb39cf0c29dea
5
5
  SHA512:
6
- metadata.gz: 14effb4ee6956ed11a6a43cf38d6df7d8ff04026e42f97147b0fd5869469a7fd618cb65b4f6262f4709ae0cd7cbdd329339a6d34a7b0c9f23044ec71758acef2
7
- data.tar.gz: 9fe27e7f70c616537b6aaf940bfc55e915755124cac8a141e9450a5c7e679d38e848399b72437119c50b333c3269635f3a39dc4a7220d007597fc7101184448b
6
+ metadata.gz: 7a74d29938372885d743d1b4fedadff59f09c68b253e3cd02992c474012911226b83393d934ab0844512d9cfdbc1a9fb40c5a6fec2c97d2ea23c9379aa69a5b6
7
+ data.tar.gz: 07f3267385aaf07bf5a1267d8788142d07633377604ccc0ff43c5218e18dceebaefbe5f6cb09f453861429767919999c5c5a3db59536b981bc2b49ee88bb67a6
@@ -45,7 +45,7 @@ class Glib::JsonUi::ViewBuilder
45
45
  int :min
46
46
  int :max
47
47
  # https://www.chartjs.org/docs/latest/configuration/legend.html
48
- hash :legend, optional: [:position, :align, :display, :maxHeight, :maxWidth, :fullSize, :reverse, :labels, :rtl, :title]
48
+ hash :legend, optional: [:position, :align, :display, :maxHeight, :maxWidth, :fullSize, :reverse, :labels, :rtl, :title, :override]
49
49
  hash :plugins, optional: [:datalabels, :centerLabel, :customTooltip]
50
50
  end
51
51
  end
@@ -332,6 +332,7 @@ module Glib
332
332
  color :color
333
333
  string :text
334
334
  bool :indeterminate
335
+ bool :half
335
336
  end
336
337
 
337
338
  class ShareButton < View
@@ -2,7 +2,7 @@ page = json_ui_page json
2
2
 
3
3
  page.body childViews: ->(body) do
4
4
  body.panels_responsive padding: { all: 16 }, childViews: ->(res) do
5
- res.p text: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
5
+ res.fields_richText value: "<p>#{DateTime.current.to_fs(:rfc822)}</p><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>"
6
6
  res.spacer height: 8
7
7
  res.button text: 'close', onClick: ->(action) do
8
8
  action.sheets_close onClose: ->(saction) do
@@ -136,7 +136,7 @@ else
136
136
  end
137
137
  ],
138
138
  plugins: default_plugins,
139
- colors: ['lightgreen', 'whitesmoke', 'skyblue'], legend: { position: 'left' }
139
+ colors: ['#7A71F4', '#53B3E4', 'skyblue'], legend: { override: true }
140
140
 
141
141
  scroll.h2 text: 'Column chart (Stacked)'
142
142
  scroll.charts_column stacked: true, dataGroups: [
@@ -197,7 +197,7 @@ else
197
197
  }
198
198
  }),
199
199
  dataPoints: [{ title: 'Strawberry', value: 25 }, { title: 'Banana', value: 75 }],
200
- legend: { position: 'right' }
200
+ legend: { position: 'right', override: true }
201
201
 
202
202
  scroll.h2 text: 'Area chart'
203
203
  scroll.charts_area \
@@ -32,5 +32,9 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
32
32
 
33
33
  scroll.h2 text: 'Progress circle'
34
34
  scroll.spacer height: 6
35
- scroll.progressCircle size: 150, value: 35, text: '35%', width: 25, color: '#272551'
35
+ scroll.progressCircle size: 150, value: 35, width: 25, color: '#272551'
36
+
37
+ scroll.h2 text: 'Half Progress circle'
38
+ scroll.spacer height: 6
39
+ scroll.progressCircle size: 250, width: 35, value: 80, text: 'Section A Score', color: '#9E0A0A', half: true
36
40
  end
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.27.3
4
+ version: 4.28.0
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
@@ -94,7 +94,7 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- description:
97
+ description:
98
98
  email: ''
99
99
  executables: []
100
100
  extensions: []
@@ -394,10 +394,10 @@ files:
394
394
  - lib/glib/value.rb
395
395
  - lib/glib/version.rb
396
396
  - lib/tasks/db.rake
397
- homepage:
397
+ homepage:
398
398
  licenses: []
399
399
  metadata: {}
400
- post_install_message:
400
+ post_install_message:
401
401
  rdoc_options: []
402
402
  require_paths:
403
403
  - lib
@@ -413,7 +413,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
413
413
  version: '0'
414
414
  requirements: []
415
415
  rubygems_version: 3.4.6
416
- signing_key:
416
+ signing_key:
417
417
  specification_version: 4
418
418
  summary: ''
419
419
  test_files: []