effective_datatables 4.7.16 → 4.8.16

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +215 -24
  4. data/app/assets/javascripts/effective_datatables/flash.js.coffee +1 -1
  5. data/app/assets/javascripts/effective_datatables/initialize.js.coffee +18 -5
  6. data/app/assets/javascripts/effective_datatables/inline_crud.js.coffee +42 -13
  7. data/app/assets/javascripts/effective_datatables/reorder.js.coffee +8 -2
  8. data/app/assets/javascripts/effective_datatables/reset.js.coffee +23 -2
  9. data/app/assets/javascripts/vendor/jquery.delayedChange.js +1 -2
  10. data/app/assets/stylesheets/dataTables/dataTables.bootstrap4.scss +1 -3
  11. data/app/helpers/effective_datatables_helper.rb +4 -1
  12. data/app/helpers/effective_datatables_private_helper.rb +12 -8
  13. data/app/models/effective/datatable.rb +34 -3
  14. data/app/models/effective/datatable_value_tool.rb +0 -6
  15. data/app/models/effective/effective_datatable/attributes.rb +1 -0
  16. data/app/models/effective/effective_datatable/compute.rb +6 -5
  17. data/app/models/effective/effective_datatable/cookie.rb +2 -0
  18. data/app/models/effective/effective_datatable/dsl/filters.rb +1 -1
  19. data/app/models/effective/effective_datatable/format.rb +9 -9
  20. data/app/models/effective/effective_datatable/params.rb +5 -0
  21. data/app/models/effective/effective_datatable/resource.rb +16 -9
  22. data/app/models/effective/effective_datatable/state.rb +1 -1
  23. data/app/views/effective/datatables/_active_storage_column.html.haml +4 -0
  24. data/app/views/effective/datatables/_bulk_actions_dropdown.html.haml +3 -2
  25. data/config/effective_datatables.rb +5 -1
  26. data/config/locales/en.yml +3 -1
  27. data/config/locales/es.yml +3 -1
  28. data/config/locales/nl.yml +3 -1
  29. data/lib/effective_datatables/version.rb +1 -1
  30. data/lib/effective_datatables.rb +4 -0
  31. metadata +7 -9
  32. data/app/datatables/effective_style_guide_datatable.rb +0 -47
  33. data/app/models/effective/access_denied.rb +0 -17
  34. data/app/views/effective/style_guide/_effective_datatables.html.haml +0 -1
@@ -1,17 +0,0 @@
1
- unless defined?(Effective::AccessDenied)
2
- module Effective
3
- class AccessDenied < StandardError
4
- attr_reader :action, :subject
5
-
6
- def initialize(message = nil, action = nil, subject = nil)
7
- @message = message
8
- @action = action
9
- @subject = subject
10
- end
11
-
12
- def to_s
13
- @message || I18n.t(:'unauthorized.default', :default => 'Access Denied')
14
- end
15
- end
16
- end
17
- end
@@ -1 +0,0 @@
1
- = render_datatable(EffectiveStyleGuideDatatable.new)