mensa 0.6.1 → 0.6.2
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/app/components/mensa/header/component.css +7 -11
- data/app/components/mensa/view/component.css +19 -11
- data/app/components/mensa/view/component.html.erb +2 -2
- data/app/controllers/mensa/tables/exports_controller.rb +1 -1
- data/config/locales/en.yml +0 -1
- data/config/locales/nl.yml +0 -1
- data/lib/generators/mensa/templates/config/initializers/mensa.rb +1 -0
- data/lib/mensa/configuration.rb +5 -4
- data/lib/mensa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f85cdb0a26916745236f68e8a5e2cc5e0241f9f1555f4c4a4dcc408cd94c3786
|
|
4
|
+
data.tar.gz: 9d12eb7e55e07a595490511329bbf87fb171bf7ca2d1f07f50c92581ce688488
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 465070cf2e47b03b4d240a9d3f36a1f1129574a25d1492cb3a57612d5e6156a57ba40dd9cf887f4ee1ee14e5fbbe8ca20a217c73241da4ac12440d0b8ffcb059
|
|
7
|
+
data.tar.gz: ebdbace0651138de47cc6c26237df580b6c30f49b1735a686d98061b16f14e844d5f7edebd9936ea42e8a8dfd5c57f3f82580bad9a1c9f31f68bd1e77c7d21c7
|
data/Gemfile.lock
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
th {
|
|
7
|
-
@apply top-0 z-10 py-2 px-2 align-bottom text-left text-sm font-medium text-gray-500 border-b border-gray-200 dark:border-gray-600 whitespace-nowrap;
|
|
7
|
+
@apply top-0 z-10 py-1 pt-[7px] pb-2 px-2 align-bottom text-left text-sm font-medium text-gray-500 border-b border-gray-200 dark:border-gray-600 whitespace-nowrap;
|
|
8
8
|
|
|
9
9
|
&:first-child {
|
|
10
10
|
@apply pl-4;
|
|
@@ -15,20 +15,24 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.container {
|
|
18
|
-
@apply h-
|
|
18
|
+
@apply h-5 flex items-center;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.title {
|
|
22
22
|
@apply w-full;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
&.actions {
|
|
26
|
+
@apply text-center;
|
|
27
|
+
}
|
|
28
|
+
|
|
25
29
|
/* For sortable columns the link takes over the cell's padding so
|
|
26
30
|
the entire th area — including what was padding — is clickable. */
|
|
27
31
|
&:has(.order) {
|
|
28
32
|
@apply p-0;
|
|
29
33
|
|
|
30
34
|
.order {
|
|
31
|
-
@apply flex items-center gap-1 w-full
|
|
35
|
+
@apply flex items-center gap-1 w-full pt-[7px] pb-2 px-2;
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
&:first-child .order {
|
|
@@ -41,12 +45,4 @@
|
|
|
41
45
|
}
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
|
-
|
|
45
|
-
&__column_edit {
|
|
46
|
-
thead {
|
|
47
|
-
th {
|
|
48
|
-
@apply cursor-grab;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
48
|
}
|
|
@@ -9,12 +9,10 @@
|
|
|
9
9
|
top: 0;
|
|
10
10
|
left: 0;
|
|
11
11
|
z-index: 10;
|
|
12
|
-
@apply pt-
|
|
12
|
+
@apply pt-[7px] pb-2 bg-gray-100 dark:bg-gray-700 border-b border-gray-200 dark:border-gray-600;
|
|
13
13
|
|
|
14
14
|
&__content {
|
|
15
|
-
|
|
16
|
-
pl-3 aligns the checkbox with the checkbox column (w-8, pl-4). */
|
|
17
|
-
@apply h-4 flex items-center gap-2 pl-4;
|
|
15
|
+
@apply h-5 flex items-center gap-2 pl-2;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
&__count {
|
|
@@ -30,11 +28,15 @@
|
|
|
30
28
|
@apply bg-white dark:bg-gray-500 dark:border-gray-700;
|
|
31
29
|
|
|
32
30
|
.mensa-table__checkbox-col {
|
|
33
|
-
@apply w-
|
|
31
|
+
@apply w-7 min-w-7 pl-1 pr-0 text-center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.mensa-table__checkbox-col .container {
|
|
35
|
+
@apply justify-center;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
.mensa-table__select-all {
|
|
37
|
-
@apply h-4 w-4 rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 cursor-pointer;
|
|
39
|
+
@apply inline-block h-4 w-4 rounded border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 cursor-pointer;
|
|
38
40
|
appearance: none;
|
|
39
41
|
|
|
40
42
|
&:hover {
|
|
@@ -85,10 +87,6 @@
|
|
|
85
87
|
@apply bg-gray-100 top-0 dark:bg-gray-700 dark:font-medium dark:text-gray-400 dark:lowercase;
|
|
86
88
|
|
|
87
89
|
/* tr and th moved to header */
|
|
88
|
-
|
|
89
|
-
.mensa-table__checkbox-col {
|
|
90
|
-
@apply pr-2;
|
|
91
|
-
}
|
|
92
90
|
}
|
|
93
91
|
|
|
94
92
|
tbody {
|
|
@@ -99,7 +97,7 @@
|
|
|
99
97
|
}
|
|
100
98
|
|
|
101
99
|
td {
|
|
102
|
-
@apply px-2
|
|
100
|
+
@apply px-2 pt-[5px] pb-1.5 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400;
|
|
103
101
|
|
|
104
102
|
&:first-child {
|
|
105
103
|
@apply pl-4;
|
|
@@ -110,5 +108,15 @@
|
|
|
110
108
|
}
|
|
111
109
|
}
|
|
112
110
|
}
|
|
111
|
+
|
|
112
|
+
thead th.mensa-table__checkbox-col,
|
|
113
|
+
tbody td.mensa-table__checkbox-col {
|
|
114
|
+
@apply w-7 min-w-7 pl-1 pr-0 text-center;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
thead th.actions,
|
|
118
|
+
tbody td.actions {
|
|
119
|
+
@apply w-px whitespace-nowrap px-2 text-center;
|
|
120
|
+
}
|
|
113
121
|
}
|
|
114
122
|
}
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
</th>
|
|
28
28
|
<% end %>
|
|
29
29
|
<% if table.actions? && Mensa.config.row_actions_position == :front %>
|
|
30
|
-
<th
|
|
30
|
+
<th class="actions" aria-label="Actions"><i class="<%= Mensa.config.icons[:action_column_header] %>" aria-hidden="true"></i></th>
|
|
31
31
|
<% end %>
|
|
32
32
|
<%= render(Mensa::Header::Component.with_collection(table.display_columns, table: table)) %>
|
|
33
33
|
<% if table.actions? && Mensa.config.row_actions_position == :back %>
|
|
34
|
-
<th
|
|
34
|
+
<th class="actions" aria-label="Actions"><i class="<%= Mensa.config.icons[:action_column_header] %>" aria-hidden="true"></i></th>
|
|
35
35
|
<% end %>
|
|
36
36
|
</tr>
|
|
37
37
|
</thead>
|
data/config/locales/en.yml
CHANGED
data/config/locales/nl.yml
CHANGED
|
@@ -26,6 +26,7 @@ Mensa.setup do |config|
|
|
|
26
26
|
filter_pill_list_clear: "fa-solid fa-xmark",
|
|
27
27
|
header_order_indicator_asc: "fa-solid fa-arrow-up",
|
|
28
28
|
header_order_indicator_desc: "fa-solid fa-arrow-down",
|
|
29
|
+
action_column_header: "fa-solid fa-ellipsis",
|
|
29
30
|
views_trigger: "fa-solid fa-sort",
|
|
30
31
|
views_option_selected: "fa-solid fa-check",
|
|
31
32
|
views_option_menu: "fa-solid fa-ellipsis",
|
data/lib/mensa/configuration.rb
CHANGED
|
@@ -57,8 +57,9 @@ module Mensa
|
|
|
57
57
|
filter_pill_remove: "fa-solid fa-xmark",
|
|
58
58
|
filter_pill_list_search: "fa-solid fa-magnifying-glass",
|
|
59
59
|
filter_pill_list_clear: "fa-solid fa-xmark",
|
|
60
|
-
header_order_indicator_asc: "fa-solid fa-arrow-up",
|
|
61
|
-
header_order_indicator_desc: "fa-solid fa-arrow-down",
|
|
60
|
+
header_order_indicator_asc: "fa-solid fa-sm fa-arrow-up",
|
|
61
|
+
header_order_indicator_desc: "fa-solid fa-sm fa-arrow-down",
|
|
62
|
+
action_column_header: "fa-solid fa-ellipsis",
|
|
62
63
|
views_trigger: "fa-solid fa-sort",
|
|
63
64
|
views_option_selected: "fa-solid fa-check",
|
|
64
65
|
views_option_menu: "fa-solid fa-ellipsis",
|
|
@@ -90,8 +91,8 @@ module Mensa
|
|
|
90
91
|
# filter_pill_remove: "fa-light fa-xmark",
|
|
91
92
|
# filter_pill_list_search: "fa-light fa-magnifying-glass",
|
|
92
93
|
# filter_pill_list_clear: "fa-light fa-xmark",
|
|
93
|
-
# header_order_indicator_asc: "fa-regular fa-arrow-up-short-wide",
|
|
94
|
-
# header_order_indicator_desc: "fa-regular fa-arrow-down-wide-short",
|
|
94
|
+
# header_order_indicator_asc: "fa-regular fa-sm fa-arrow-up-short-wide",
|
|
95
|
+
# header_order_indicator_desc: "fa-regular fa-sm fa-arrow-down-wide-short",
|
|
95
96
|
# views_trigger: "fa-light fa-sort",
|
|
96
97
|
# views_option_selected: "fa-light fa-check",
|
|
97
98
|
# views_option_menu: "fa-light fa-ellipsis",
|
data/lib/mensa/version.rb
CHANGED
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.6.
|
|
4
|
+
version: 0.6.2
|
|
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: 2026-06-
|
|
11
|
+
date: 2026-06-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|