ad2games-ui_components 2.0.9 → 2.0.10

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.
@@ -33,11 +33,12 @@ $(document).on 'uic:domchange', (e) ->
33
33
  (val) -> val && val.toString().length > 0
34
34
  end_date = _.find [$el.data('endDate'), $end_input.val(), yesterday],
35
35
  (val) -> val && val.toString().length > 0
36
+ opens = _.find [$el.data('opens')]
36
37
 
37
38
  options = _.extend({},
38
39
  defaults,
39
40
  _.pick($el.data(), ['dateLimit', 'ranges', 'submitOnChange']),
40
- { startDate: start_date, endDate: end_date })
41
+ { startDate: start_date, endDate: end_date, opens: opens })
41
42
 
42
43
  options.ranges = _.mapObject(options.ranges, (v, k) -> _.map(v, (v) -> moment(v)))
43
44
  options.startDate = moment(options.startDate)
@@ -11,6 +11,7 @@ class DateRangeCell < FormCellBase
11
11
  'days, months)'
12
12
  attribute :start_date, description: 'Default start date'
13
13
  attribute :end_date, description: 'Default end date'
14
+ attribute :opens, description: "Direction in which the dropdown opens. Accepts: 'right' (default), 'left', 'center'"
14
15
  attribute :submit_on_change, description: 'Whether the enclosing form should be ' \
15
16
  'automatically submitted on value change'
16
17
 
@@ -40,7 +41,7 @@ class DateRangeCell < FormCellBase
40
41
  end
41
42
 
42
43
  def data
43
- options.slice(:ranges, :date_limit, :submit_on_change).merge(
44
+ options.slice(:ranges, :date_limit, :opens, :submit_on_change).merge(
44
45
  start_date: start_date.to_s, end_date: end_date.to_s,
45
46
  start: "##{id}_from", end: "##{id}_to")
46
47
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module UiComponents
3
- VERSION = '2.0.9'
3
+ VERSION = '2.0.10'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ad2games-ui_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-28 00:00:00.000000000 Z
11
+ date: 2016-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -309,6 +309,7 @@ files:
309
309
  - app/assets/javascripts/ui_components/submit_on_change.coffee
310
310
  - app/assets/javascripts/ui_components/toolbar.coffee
311
311
  - app/assets/javascripts/ui_components/turbolinks_progressbar.coffee
312
+ - app/assets/javascripts/webpack.js
312
313
  - app/assets/stylesheets/a2g_ui_components.scss
313
314
  - app/assets/stylesheets/default_theme/button.scss
314
315
  - app/assets/stylesheets/default_theme/common.scss
@@ -324,6 +325,7 @@ files:
324
325
  - app/assets/stylesheets/ui_components/date_range.scss
325
326
  - app/assets/stylesheets/ui_components/markdown_textarea.scss
326
327
  - app/assets/stylesheets/variables.scss
328
+ - app/assets/webpack/webpack-bundle.js
327
329
  - app/cells/checkbox_list/checkbox_list.yml
328
330
  - app/cells/checkbox_list/checkbox_list_cell.rb
329
331
  - app/cells/datagrid_filter/datagrid_filter.yml