mensa 0.6.9 → 0.6.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/app/components/mensa/column_customizer/component.css +1 -1
- data/app/components/mensa/column_customizer/component.html.erb +1 -1
- data/app/components/mensa/filter_pill_list/component.css +1 -0
- data/app/components/mensa/table/component.css +21 -1
- data/app/components/mensa/view/component.css +2 -2
- data/app/components/mensa/view/paging.css +3 -3
- data/config/locales/en.yml +2 -0
- data/config/locales/nl.yml +2 -0
- data/lib/mensa/configuration.rb +2 -2
- data/lib/mensa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14b28a5dcb74e6d3bfccaa9180f0ba2299b1c5bff0adc6e9bbd2a17ff2d91c19
|
|
4
|
+
data.tar.gz: 552b80421e290566218fe4e7e495785f7208ffa8f397fd88859b4e4ad20d6a21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4848da1b5f33354d6dc79a8b6f76ed68e43744706ce34b808910186de399ae19d49e85409a561d11d74376c3a067f411697432664d2274c28a869e83136fdde9
|
|
7
|
+
data.tar.gz: 400e3c6400043dea964f3958a27704ae1b56dd7c475de8ba4f20a16b3b3b4682582e3229589d285b3f62377db326ff56b0ac17160544aa38369a11f6f4cc92ca
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -79,7 +79,7 @@ class UserTable < ApplicationTable
|
|
|
79
79
|
|
|
80
80
|
# Add system views
|
|
81
81
|
# Mensa will always create a systemview (:default) with name 'All' showing all records.
|
|
82
|
-
# If you want to rename it, for example because you don't show all records in your default scope, add it and give it a name like below.
|
|
82
|
+
# If you want to rename it, for example because you don't show all records in your default scope, or override it with filters, add it and give it a name like below.
|
|
83
83
|
view :default do
|
|
84
84
|
name "Default"
|
|
85
85
|
description "Some descriptive text"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<i class="<%= Mensa.config.icons[:column_customizer_toggle] %>"></i>
|
|
8
8
|
</button>
|
|
9
9
|
<div class="mensa-table__column_customizer__popover hidden" data-mensa-column-customizer-target="popover">
|
|
10
|
-
<p class="mensa-table__column_customizer__heading"
|
|
10
|
+
<p class="mensa-table__column_customizer__heading"><%= t("mensa.column_customizer.heading") %></p>
|
|
11
11
|
<ul>
|
|
12
12
|
<% table.columns.reject(&:internal?).each do |column| %>
|
|
13
13
|
<li class="mensa-table__column_customizer__row"
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
&__input {
|
|
20
20
|
@apply w-full bg-transparent text-xs text-gray-700 dark:text-gray-200 placeholder:text-gray-400;
|
|
21
21
|
/* Override @tailwindcss/forms — direct CSS beats attribute selector specificity */
|
|
22
|
+
background-color: transparent !important;
|
|
22
23
|
border: none !important;
|
|
23
24
|
outline: none !important;
|
|
24
25
|
box-shadow: none !important;
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
The controller and its column-list ul stay in the DOM so the search-input focus
|
|
9
9
|
handler can still open the column list. */
|
|
10
10
|
.mensa-table--view-filters-hidden
|
|
11
|
-
.mensa-table__search-bar__pills-area:not(
|
|
11
|
+
.mensa-table__search-bar__pills-area:not(
|
|
12
|
+
:has(.mensa-filter-pill:not([data-view-filter="true"]))
|
|
13
|
+
)
|
|
12
14
|
.mensa-table__add_filter__trigger {
|
|
13
15
|
display: none;
|
|
14
16
|
}
|
|
@@ -22,6 +24,24 @@
|
|
|
22
24
|
@apply flex items-center gap-2 px-2 py-1 border-b border-gray-200 dark:border-gray-600 bg-white dark:bg-gray-800;
|
|
23
25
|
}
|
|
24
26
|
|
|
27
|
+
turbo-frame {
|
|
28
|
+
@apply relative block;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
turbo-frame[aria-busy] {
|
|
32
|
+
@apply cursor-wait;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
turbo-frame[aria-busy] > * {
|
|
36
|
+
@apply opacity-50 grayscale pointer-events-none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
turbo-frame[aria-busy]::after {
|
|
40
|
+
content: "";
|
|
41
|
+
@apply absolute inset-0 z-10 bg-gray-50/30 dark:bg-gray-900/50;
|
|
42
|
+
pointer-events: all;
|
|
43
|
+
}
|
|
44
|
+
|
|
25
45
|
&__search-container {
|
|
26
46
|
@apply flex flex-1 min-w-0 items-stretch h-8 rounded-md bg-white dark:bg-gray-800;
|
|
27
47
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.mensa-table {
|
|
28
|
-
@apply bg-white dark:bg-gray-
|
|
28
|
+
@apply bg-white dark:bg-gray-800 dark:border-gray-800;
|
|
29
29
|
|
|
30
30
|
.mensa-table__checkbox-col {
|
|
31
31
|
@apply w-7 min-w-7 pl-1 pr-0 text-center;
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
@apply min-w-full divide-y divide-gray-50 dark:divide-gray-800 border-0;
|
|
85
85
|
|
|
86
86
|
thead {
|
|
87
|
-
@apply bg-gray-100 top-0 dark:bg-gray-700 dark:font-medium dark:text-gray-400
|
|
87
|
+
@apply bg-gray-100 top-0 dark:bg-gray-700 dark:font-medium dark:text-gray-400;
|
|
88
88
|
|
|
89
89
|
/* tr and th moved to header */
|
|
90
90
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.mensa-table {
|
|
2
2
|
.paging {
|
|
3
|
-
@apply flex items-center justify-between border-t border-gray-100 dark:border-gray-
|
|
3
|
+
@apply flex items-center justify-between border-t border-gray-100 dark:border-gray-700 bg-white dark:bg-gray-800 px-4 py-3 sm:px-6 text-sm;
|
|
4
4
|
|
|
5
5
|
.pagy {
|
|
6
6
|
@apply isolate inline-flex -space-x-px text-gray-500 dark:text-gray-400;
|
|
7
7
|
|
|
8
8
|
a:not(.gap) {
|
|
9
|
-
@apply relative inline-flex items-center px-4 py-1.5 text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-
|
|
9
|
+
@apply relative inline-flex items-center px-4 py-1.5 text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700 focus:z-20 no-underline;
|
|
10
10
|
|
|
11
11
|
&:first-child {
|
|
12
12
|
border-top-left-radius: 4px;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
&:not([href]) {
|
|
26
26
|
/* disabled links */
|
|
27
|
-
@apply bg-gray-100 dark:bg-gray-
|
|
27
|
+
@apply bg-gray-100 dark:bg-gray-800 hover:bg-gray-100 hover:dark:bg-gray-800 text-gray-700 dark:text-gray-100 text-opacity-25 dark:text-opacity-50 cursor-default;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&.current {
|
data/config/locales/en.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/lib/mensa/configuration.rb
CHANGED
|
@@ -55,7 +55,7 @@ module Mensa
|
|
|
55
55
|
control_bar_export: "fa-solid fa-file-export",
|
|
56
56
|
empty_state_icon: "fa-solid fa-magnifying-glass",
|
|
57
57
|
filter_pill_remove: "fa-solid fa-xmark",
|
|
58
|
-
filter_pill_list_search: "fa-solid fa-magnifying-glass",
|
|
58
|
+
filter_pill_list_search: "fa-solid fa-sm fa-magnifying-glass",
|
|
59
59
|
filter_pill_list_clear: "fa-solid fa-xmark",
|
|
60
60
|
header_order_indicator_asc: "fa-solid fa-sm fa-arrow-up",
|
|
61
61
|
header_order_indicator_desc: "fa-solid fa-sm fa-arrow-down",
|
|
@@ -89,7 +89,7 @@ module Mensa
|
|
|
89
89
|
# control_bar_export: "fa-light fa-file-export",
|
|
90
90
|
# empty_state_icon: "fa-light fa-magnifying-glass",
|
|
91
91
|
# filter_pill_remove: "fa-light fa-xmark",
|
|
92
|
-
# filter_pill_list_search: "fa-light fa-magnifying-glass",
|
|
92
|
+
# filter_pill_list_search: "fa-light fa-sm fa-magnifying-glass",
|
|
93
93
|
# filter_pill_list_clear: "fa-light fa-xmark",
|
|
94
94
|
# header_order_indicator_asc: "fa-regular fa-sm fa-arrow-up-short-wide",
|
|
95
95
|
# header_order_indicator_desc: "fa-regular fa-sm fa-arrow-down-wide-short",
|
data/lib/mensa/version.rb
CHANGED