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.
- checksums.yaml +4 -4
- data/README.md +24 -3
- data/Rakefile +0 -0
- data/app/assets/config/custom_table_manifest.js +0 -0
- data/app/assets/stylesheets/custom_table/application.scss +0 -0
- data/app/assets/stylesheets/custom_table/table.scss +52 -1
- data/app/controllers/concerns/custom_table_concern.rb +0 -0
- data/app/controllers/custom_table/application_controller.rb +0 -0
- data/app/controllers/custom_table/settings_controller.rb +2 -0
- data/app/helpers/custom_table/application_helper.rb +71 -20
- data/app/helpers/custom_table/fieldset_helper.rb +5 -4
- data/app/helpers/custom_table/icons_helper.rb +5 -0
- data/app/inputs/date_picker_input.rb +0 -0
- data/app/javascript/controllers/batch_actions_controller.js +34 -10
- data/app/javascript/controllers/table_controller.js +0 -0
- data/app/jobs/custom_table/application_job.rb +0 -0
- data/app/mailers/custom_table/application_mailer.rb +0 -0
- data/app/models/concerns/custom_table_settings.rb +1 -1
- data/app/models/custom_table/application_record.rb +0 -0
- data/app/views/custom_table/_download.haml +0 -0
- data/app/views/custom_table/_field.haml +0 -0
- data/app/views/custom_table/_field_plain.haml +0 -0
- data/app/views/custom_table/_fieldset.haml +0 -0
- data/app/views/custom_table/_filter.html.haml +21 -11
- data/app/views/custom_table/_settings.html.haml +3 -3
- data/app/views/custom_table/_table.html.haml +52 -21
- data/app/views/custom_table/_table.xlsx.axlsx +0 -0
- data/app/views/custom_table/_table_fe.xlsx.fast_excel +0 -0
- data/app/views/custom_table/_table_row.html.haml +16 -4
- data/app/views/custom_table/_table_row_data.html.haml +0 -0
- data/app/views/custom_table/settings/destroy.html.haml +0 -0
- data/app/views/custom_table/settings/edit.html.haml +0 -0
- data/app/views/custom_table/settings/update.html.haml +0 -0
- data/app/views/kaminari/bootstrap-5/_first_page.html.haml +3 -0
- data/app/views/kaminari/bootstrap-5/_last_page.html.haml +3 -0
- data/app/views/kaminari/bootstrap-5/_next_page.html.haml +3 -0
- data/app/views/kaminari/bootstrap-5/_paginator.html.haml +14 -0
- data/app/views/kaminari/bootstrap-5/_prev_page.haml.haml +3 -0
- data/app/views/layouts/custom_table/application.html.erb +0 -0
- data/config/initializers/simple_form_bootstrap.rb +21 -317
- data/config/locales/en.yml +8 -0
- data/config/locales/ru.yml +9 -0
- data/config/routes.rb +0 -0
- data/lib/custom_table/configuration.rb +12 -0
- data/lib/custom_table/engine.rb +0 -0
- data/lib/custom_table/version.rb +1 -1
- data/lib/custom_table.rb +0 -0
- data/lib/generators/custom_table/USAGE +0 -0
- data/lib/generators/custom_table/custom_table_generator.rb +0 -0
- data/lib/generators/custom_table/templates/initializer.rb +0 -0
- data/lib/generators/custom_table/templates/migration.rb +0 -0
- data/lib/tasks/custom_table_tasks.rake +0 -0
- metadata +22 -3
data/config/locales/ru.yml
CHANGED
@@ -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
|
data/lib/custom_table/engine.rb
CHANGED
File without changes
|
data/lib/custom_table/version.rb
CHANGED
data/lib/custom_table.rb
CHANGED
File without changes
|
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:
|
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-
|
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.
|
315
|
+
rubygems_version: 3.5.9
|
297
316
|
signing_key:
|
298
317
|
specification_version: 4
|
299
318
|
summary: Easy tables with filters
|