glib-web 3.1.0 → 3.2.1

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: 1db2e4081d9ad6f54c2626b75123ac3f027749b7459b18db376c8d7dc9223c04
4
- data.tar.gz: 37a176aa91ed55346c5ec137cc6c80ade9c15c0d9a9b80f02b30749bd986626e
3
+ metadata.gz: 94dea11102f74468be0ee879e6c259479b6e7c26b48c28684068b2449149a66c
4
+ data.tar.gz: ed45e4c192581de4fcbfd5e7bf66684b470fd0fa2b9ccd917c2ad118e8919037
5
5
  SHA512:
6
- metadata.gz: d131210d0e18d05ae520c13aa7eeea57383fefd27828fb82a8acc567d670b5fbf0e02351426d4cb1dcb19b3e7ba0c8fa51f2e28fcd3978af4221e8a44f9d8166
7
- data.tar.gz: a363d75ce45ed9f17e5bfd95f8bddc897064d032a03a0dfe973327411e513cf726088cd144308a70c7fcb3c3bd93c9a6f920131081534802b43c170ab035a96c
6
+ metadata.gz: 1956190c7b8ec98df1bff39ebc090150a312fa0b3a20b8bd18b42c95a9e7cff70c1f81b53b2cac20fa1adf80f499eb71e3067b8f8c758f3a7b54b3bef2d4636c
7
+ data.tar.gz: a84f1537272d78e471544d5973b55b6855d2e2b645c7e0b2d2d75cebc489b4f60d7a9c44113054e2581dd884ac8478fdcf33c625d650e2f5434ce015913577ba
@@ -10,8 +10,11 @@ class Glib::JsonUi::ActionBuilder
10
10
  string :viewId
11
11
  action :onScroll
12
12
  bool :animate
13
- string :placement
13
+ string :placement # `top` or `bottom`
14
14
  string :panelId
15
+
16
+ # Scroll even when the target component is already in view.
17
+ bool :force
15
18
  end
16
19
  end
17
20
  end
@@ -39,15 +39,15 @@ class Glib::JsonUi::ViewBuilder
39
39
  end
40
40
 
41
41
  def field_label(prop, args)
42
- I18n.t("dt_models.#{@model_name}.#{prop}.label", args.merge(default: nil)) || I18n.t("activerecord.attributes.#{@model_name}.#{prop}", args)
42
+ I18n.t("dt_models.#{@model_name}.#{prop}.label", **args.merge(default: nil)) || I18n.t("activerecord.attributes.#{@model_name}.#{prop}", **args)
43
43
  end
44
44
 
45
45
  def hint_label(prop, args)
46
- I18n.t("dt_models.#{@model_name}.#{prop}.hint", args.merge(default: nil))
46
+ I18n.t("dt_models.#{@model_name}.#{prop}.hint", **args.merge(default: nil))
47
47
  end
48
48
 
49
49
  def placeholder_label(prop, args)
50
- I18n.t("dt_models.#{@model_name}.#{prop}.placeholder", args.merge(default: nil))
50
+ I18n.t("dt_models.#{@model_name}.#{prop}.placeholder", **args.merge(default: nil))
51
51
  end
52
52
 
53
53
  def field_validation(prop)
@@ -11,8 +11,13 @@ section.rows builder: ->(template) do
11
11
  end
12
12
 
13
13
  template.thumbnail title: 'panels/scrollTo', onClick: ->(action) do
14
- action.panels_scrollTo viewId: 'scroll_anchor', animate: true, onScroll: ->(subaction) do
15
- subaction.dialogs_alert message: 'Bottom reached'
16
- end
14
+ action.panels_scrollTo \
15
+ viewId: 'scroll_anchor',
16
+ force: true,
17
+ animate: true,
18
+ placement: 'top',
19
+ onScroll: ->(subaction) do
20
+ subaction.dialogs_alert message: 'Component becomes in view'
21
+ end
17
22
  end
18
23
  end
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.1.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -318,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
318
318
  - !ruby/object:Gem::Version
319
319
  version: '0'
320
320
  requirements: []
321
- rubygems_version: 3.1.4
321
+ rubygems_version: 3.1.6
322
322
  signing_key:
323
323
  specification_version: 4
324
324
  summary: ''