mensa 0.2.3 → 0.2.5
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/CHANGELOG.md +6 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +6 -3
- data/README.md +17 -3
- data/app/assets/stylesheets/mensa/application.css +1 -1
- data/app/components/mensa/add_filter/component.html.slim +4 -4
- data/app/components/mensa/add_filter/component.rb +1 -1
- data/app/components/mensa/add_filter/component_controller.js +21 -23
- data/app/components/mensa/control_bar/component.html.slim +1 -1
- data/app/components/mensa/control_bar/component.rb +2 -2
- data/app/components/mensa/filter_pill/component.html.slim +6 -0
- data/app/components/mensa/filter_pill/component.rb +15 -0
- data/app/components/mensa/{filter → filter_pill}/component_controller.js +1 -1
- data/app/components/mensa/filter_pill_list/component.html.slim +8 -0
- data/app/components/mensa/{filter_list → filter_pill_list}/component.rb +1 -1
- data/app/components/mensa/filter_pill_list/component_controller.js +50 -0
- data/app/components/mensa/header/component.rb +1 -1
- data/app/components/mensa/row_action/component.rb +1 -1
- data/app/components/mensa/search/component.html.slim +1 -1
- data/app/components/mensa/search/component.rb +1 -1
- data/app/components/mensa/search/component_controller.js +2 -2
- data/app/components/mensa/table/component.html.slim +3 -3
- data/app/components/mensa/table/component_controller.js +14 -2
- data/app/components/mensa/table_row/component.rb +1 -1
- data/app/components/mensa/views/component.css +10 -1
- data/app/components/mensa/views/component.html.slim +1 -1
- data/app/components/mensa/views/component_controller.js +9 -0
- data/app/controllers/mensa/application_controller.rb +1 -1
- data/app/controllers/mensa/tables/filters_controller.rb +2 -1
- data/app/controllers/mensa/tables_controller.rb +4 -10
- data/app/helpers/mensa/application_helper.rb +0 -1
- data/app/javascript/mensa/controllers/application_controller.js +5 -21
- data/app/javascript/mensa/controllers/index.js +4 -4
- data/app/jobs/mensa/export_job.rb +10 -11
- data/app/tables/mensa/action.rb +3 -1
- data/app/tables/mensa/base.rb +10 -15
- data/app/tables/mensa/cell.rb +6 -6
- data/app/tables/mensa/column.rb +16 -24
- data/app/tables/mensa/config/action_dsl.rb +1 -1
- data/app/tables/mensa/config/dsl_logic.rb +8 -4
- data/app/tables/mensa/config/table_dsl.rb +4 -1
- data/app/tables/mensa/config/view_dsl.rb +1 -0
- data/app/tables/mensa/config_readers.rb +15 -3
- data/app/tables/mensa/filter.rb +11 -14
- data/app/tables/mensa/row.rb +1 -1
- data/app/tables/mensa/scope.rb +3 -3
- data/app/tables/mensa/system_view.rb +1 -2
- data/app/views/mensa/tables/filters/show.turbo_stream.slim +7 -6
- data/app/views/mensa/tables/show.html.slim +2 -0
- data/app/views/mensa/tables/show.turbo_stream.slim +1 -1
- data/bin/setup +1 -1
- data/config/locales/en.yml +1 -1
- data/config/locales/nl.yml +1 -1
- data/db/migrate/20251112143558_add_description_to_table_view.rb +6 -0
- data/lib/generators/mensa/tailwind_config_generator.rb +3 -3
- data/lib/generators/mensa/templates/config/initializers/mensa.rb +1 -1
- data/lib/mensa/configuration.rb +2 -3
- data/lib/mensa/engine.rb +9 -9
- data/lib/mensa/version.rb +1 -1
- data/lib/mensa.rb +2 -2
- data/lib/tasks/mensa_tasks.rake +1 -1
- data/mensa.gemspec +1 -1
- metadata +13 -9
- data/app/components/mensa/filter_list/component.html.slim +0 -14
- data/app/components/mensa/filter_list/component_controller.js +0 -14
- /data/{rubocop.yml → .rubocop.yml} +0 -0
- /data/app/components/mensa/{filter_list → filter_pill_list}/component.css +0 -0
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mensa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom de Grunt
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: caxlsx_rails
|
|
@@ -178,6 +178,8 @@ files:
|
|
|
178
178
|
- ".gem_release.yml"
|
|
179
179
|
- ".github/workflows/gem-push.yml"
|
|
180
180
|
- ".gitignore"
|
|
181
|
+
- ".rubocop.yml"
|
|
182
|
+
- CHANGELOG.md
|
|
181
183
|
- Gemfile
|
|
182
184
|
- Gemfile.lock
|
|
183
185
|
- MIT-LICENSE
|
|
@@ -198,11 +200,13 @@ files:
|
|
|
198
200
|
- app/components/mensa/control_bar/component.css
|
|
199
201
|
- app/components/mensa/control_bar/component.html.slim
|
|
200
202
|
- app/components/mensa/control_bar/component.rb
|
|
201
|
-
- app/components/mensa/
|
|
202
|
-
- app/components/mensa/
|
|
203
|
-
- app/components/mensa/
|
|
204
|
-
- app/components/mensa/
|
|
205
|
-
- app/components/mensa/
|
|
203
|
+
- app/components/mensa/filter_pill/component.html.slim
|
|
204
|
+
- app/components/mensa/filter_pill/component.rb
|
|
205
|
+
- app/components/mensa/filter_pill/component_controller.js
|
|
206
|
+
- app/components/mensa/filter_pill_list/component.css
|
|
207
|
+
- app/components/mensa/filter_pill_list/component.html.slim
|
|
208
|
+
- app/components/mensa/filter_pill_list/component.rb
|
|
209
|
+
- app/components/mensa/filter_pill_list/component_controller.js
|
|
206
210
|
- app/components/mensa/header/component.css
|
|
207
211
|
- app/components/mensa/header/component.html.slim
|
|
208
212
|
- app/components/mensa/header/component.rb
|
|
@@ -272,6 +276,7 @@ files:
|
|
|
272
276
|
- config/locales/nl.yml
|
|
273
277
|
- config/routes.rb
|
|
274
278
|
- db/migrate/20240201184752_create_mensa_table_views.rb
|
|
279
|
+
- db/migrate/20251112143558_add_description_to_table_view.rb
|
|
275
280
|
- docs/filters.png
|
|
276
281
|
- docs/table.png
|
|
277
282
|
- lib/generators/mensa/install_generator.rb
|
|
@@ -285,7 +290,6 @@ files:
|
|
|
285
290
|
- mensa.gemspec
|
|
286
291
|
- package-lock.json
|
|
287
292
|
- package.json
|
|
288
|
-
- rubocop.yml
|
|
289
293
|
- vendor/javascript/@rails--request.js.js
|
|
290
294
|
homepage: https://github.com/entdec/mensa
|
|
291
295
|
licenses:
|
|
@@ -293,7 +297,7 @@ licenses:
|
|
|
293
297
|
metadata:
|
|
294
298
|
homepage_uri: https://github.com/entdec/mensa
|
|
295
299
|
source_code_uri: https://github.com/entdec/mensa
|
|
296
|
-
changelog_uri: https://github.com/entdec/mensa/CHANGELOG
|
|
300
|
+
changelog_uri: https://github.com/entdec/mensa/blob/main/CHANGELOG.md
|
|
297
301
|
post_install_message: |
|
|
298
302
|
Mensa requires additional setup. Please run the following
|
|
299
303
|
command to install the necessary files:
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
.mensa-table__filters.hidden data-mensa-table-target="filterList"
|
|
2
|
-
.block
|
|
3
|
-
nav
|
|
4
|
-
.flex.space-x-2.overflow-none.whitespace-nowrap.scroll-p-0[aria-label="Tabs"]
|
|
5
|
-
/ existing filters first
|
|
6
|
-
- table.active_filters.each do |filter|
|
|
7
|
-
.relative data-controller="mensa-filter" data-mensa-filter-column-name-value=filter.column.name data-mensa-filter-value-value=filter.value data-mensa-filter-operator-value=filter.operator
|
|
8
|
-
button.relative.w-full.cursor-default.rounded-md.bg-white.dark:bg-gray-800.py-1.5.pl-3.text-left.text-gray-900.dark:text-gray-400.shadow-sm.ring-1.ring-inset.ring-gray-300.dark:ring-gray-600.focus:outline-none.focus:ring-2.focus:ring-primary-600.sm:text-sm.sm:leading-6[type="button" aria-haspopup="listbox" aria-expanded="true" aria-labelledby="listbox-label"]
|
|
9
|
-
span.block.truncate.pr-6
|
|
10
|
-
= filter
|
|
11
|
-
span.pointer-events-none.absolute.inset-y-0.right-0.flex.items-center.pr-2
|
|
12
|
-
.fal.fa-angle-down
|
|
13
|
-
|
|
14
|
-
= render Mensa::AddFilter::Component.new(table: table)
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import ApplicationController from 'mensa/controllers/application_controller'
|
|
2
|
-
|
|
3
|
-
export default class FilterListComponentController extends ApplicationController {
|
|
4
|
-
static targets = [
|
|
5
|
-
'list',
|
|
6
|
-
]
|
|
7
|
-
static values = {
|
|
8
|
-
supportsViews: Boolean
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
connect() {
|
|
12
|
-
super.connect()
|
|
13
|
-
}
|
|
14
|
-
}
|
|
File without changes
|
|
File without changes
|