custom_table 0.1.0 → 1.0.3

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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -3
  3. data/Rakefile +0 -0
  4. data/app/assets/config/custom_table_manifest.js +0 -0
  5. data/app/assets/stylesheets/custom_table/application.scss +0 -0
  6. data/app/assets/stylesheets/custom_table/table.scss +52 -1
  7. data/app/controllers/concerns/custom_table_concern.rb +0 -0
  8. data/app/controllers/custom_table/application_controller.rb +0 -0
  9. data/app/controllers/custom_table/settings_controller.rb +2 -0
  10. data/app/helpers/custom_table/application_helper.rb +71 -20
  11. data/app/helpers/custom_table/fieldset_helper.rb +5 -4
  12. data/app/helpers/custom_table/icons_helper.rb +5 -0
  13. data/app/inputs/date_picker_input.rb +0 -0
  14. data/app/javascript/controllers/batch_actions_controller.js +34 -10
  15. data/app/javascript/controllers/table_controller.js +0 -0
  16. data/app/jobs/custom_table/application_job.rb +0 -0
  17. data/app/mailers/custom_table/application_mailer.rb +0 -0
  18. data/app/models/concerns/custom_table_settings.rb +1 -1
  19. data/app/models/custom_table/application_record.rb +0 -0
  20. data/app/views/custom_table/_download.haml +0 -0
  21. data/app/views/custom_table/_field.haml +0 -0
  22. data/app/views/custom_table/_field_plain.haml +0 -0
  23. data/app/views/custom_table/_fieldset.haml +0 -0
  24. data/app/views/custom_table/_filter.html.haml +21 -11
  25. data/app/views/custom_table/_settings.html.haml +3 -3
  26. data/app/views/custom_table/_table.html.haml +52 -21
  27. data/app/views/custom_table/_table.xlsx.axlsx +0 -0
  28. data/app/views/custom_table/_table_fe.xlsx.fast_excel +0 -0
  29. data/app/views/custom_table/_table_row.html.haml +16 -4
  30. data/app/views/custom_table/_table_row_data.html.haml +0 -0
  31. data/app/views/custom_table/settings/destroy.html.haml +0 -0
  32. data/app/views/custom_table/settings/edit.html.haml +0 -0
  33. data/app/views/custom_table/settings/update.html.haml +0 -0
  34. data/app/views/kaminari/bootstrap-5/_first_page.html.haml +3 -0
  35. data/app/views/kaminari/bootstrap-5/_last_page.html.haml +3 -0
  36. data/app/views/kaminari/bootstrap-5/_next_page.html.haml +3 -0
  37. data/app/views/kaminari/bootstrap-5/_paginator.html.haml +14 -0
  38. data/app/views/kaminari/bootstrap-5/_prev_page.haml.haml +3 -0
  39. data/app/views/layouts/custom_table/application.html.erb +0 -0
  40. data/config/initializers/simple_form_bootstrap.rb +21 -317
  41. data/config/locales/en.yml +8 -0
  42. data/config/locales/ru.yml +9 -0
  43. data/config/routes.rb +0 -0
  44. data/lib/custom_table/configuration.rb +12 -0
  45. data/lib/custom_table/engine.rb +0 -0
  46. data/lib/custom_table/version.rb +1 -1
  47. data/lib/custom_table.rb +0 -0
  48. data/lib/generators/custom_table/USAGE +0 -0
  49. data/lib/generators/custom_table/custom_table_generator.rb +0 -0
  50. data/lib/generators/custom_table/templates/initializer.rb +0 -0
  51. data/lib/generators/custom_table/templates/migration.rb +0 -0
  52. data/lib/tasks/custom_table_tasks.rake +0 -0
  53. metadata +22 -3
@@ -16,3 +16,12 @@ ru:
16
16
  huge_xlsx_alert: Слишком много записей для экспорта в формате Excel. Попробуйте %{csv}
17
17
  quick_search: Быстрый поиск
18
18
  download_only_selected_fields: Скачать только выбранные колонки
19
+ show_all_filters: Показать все фильтры
20
+ batch_update: Изменить выбранные
21
+ batch_destroy: Удалить выбранные
22
+ batch_action_description: Укажите галочками поля, которые вы хотите изменить
23
+ batch_selected_items_count:
24
+ one: "Одна запись выбрана для изменения"
25
+ few: "%{count} записи выбрано для изменения"
26
+ many: "%{count} записей выбрано для изменения"
27
+
data/config/routes.rb CHANGED
File without changes
@@ -1,9 +1,21 @@
1
1
  module CustomTable
2
2
  class Configuration
3
3
  attr_accessor :icons_framework
4
+ attr_accessor :filter_outer_wrapper_class, :filter_inner_wrapper_class
5
+ attr_accessor :show_search_icon
6
+ attr_accessor :move_totals_top
7
+ attr_accessor :date_format
8
+ attr_accessor :datetime_format
4
9
 
5
10
  def initialize
6
11
  @icons_framework = :bi
12
+ @filter_outer_wrapper_class = "card"
13
+ @filter_inner_wrapper_class = "card-body bg-light"
14
+ @show_search_icon = false
15
+ @move_totals_top = false
16
+ @date_format = :default
17
+ @datetime_format = :short
18
+
7
19
  end
8
20
 
9
21
  end
File without changes
@@ -1,3 +1,3 @@
1
1
  module CustomTable
2
- VERSION = "0.1.0"
2
+ VERSION = "1.0.3"
3
3
  end
data/lib/custom_table.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grigory
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-28 00:00:00.000000000 Z
11
+ date: 2024-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sassc-rails
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sqlite3
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rails
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -259,6 +273,11 @@ files:
259
273
  - app/views/custom_table/settings/destroy.html.haml
260
274
  - app/views/custom_table/settings/edit.html.haml
261
275
  - app/views/custom_table/settings/update.html.haml
276
+ - app/views/kaminari/bootstrap-5/_first_page.html.haml
277
+ - app/views/kaminari/bootstrap-5/_last_page.html.haml
278
+ - app/views/kaminari/bootstrap-5/_next_page.html.haml
279
+ - app/views/kaminari/bootstrap-5/_paginator.html.haml
280
+ - app/views/kaminari/bootstrap-5/_prev_page.haml.haml
262
281
  - app/views/layouts/custom_table/application.html.erb
263
282
  - config/initializers/simple_form_bootstrap.rb
264
283
  - config/locales/en.yml
@@ -293,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
293
312
  - !ruby/object:Gem::Version
294
313
  version: '0'
295
314
  requirements: []
296
- rubygems_version: 3.4.10
315
+ rubygems_version: 3.5.9
297
316
  signing_key:
298
317
  specification_version: 4
299
318
  summary: Easy tables with filters