ui_bibz 4.0.0.beta8 → 4.0.0.beta10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +89 -95
- data/app/assets/stylesheets/sass/containers/_panel.scss +5 -5
- data/app/assets/stylesheets/ui_bibz.sass +16 -16
- data/config/initializers/assets.rb +3 -3
- data/config/locales/fr.yml +4 -0
- data/lib/ui_bibz/builders/data_html_options_builder.rb +6 -4
- data/lib/ui_bibz/infos.rb +1 -1
- data/lib/ui_bibz/ui/core/component.rb +1 -1
- data/lib/ui_bibz/ui/ux/tables/extensions/sortable.rb +13 -9
- data/ui_bibz.gemspec +4 -5
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '080015eb1e845c649a32a36071964c5fa4cd00577cb2c31b4b5aff4ab9e795d6'
|
4
|
+
data.tar.gz: 3be70d906cea6cc6b12edc2b1c3defdeda61409cfd7fcd41a320dfa18b8d03e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 130a6ff22a9787851316d8f7f4d0a9bda219f7fd6ad4ce99bf1e92e382aa1ca336160475e7dcdfdb9d2b64e25dab04d040775018229fbdb2631ff0bcd9bb92ee
|
7
|
+
data.tar.gz: 1ccca479b148dced9d5bd7cfa08152031fb786da9dda1b440b7398361cb9e2197277b0de59081cb00af9321b33c7f507d30c4a4a6cb9e05cd3345bd4c710c1ca
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,44 +1,44 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ui_bibz (4.0.0.
|
5
|
-
bootstrap (~> 5.3.
|
6
|
-
dartsass-
|
4
|
+
ui_bibz (4.0.0.beta10)
|
5
|
+
bootstrap-propshaft (~> 5.3.2.2)
|
6
|
+
dartsass-rails
|
7
7
|
rails (>= 7.1.0)
|
8
8
|
will_paginate
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actioncable (7.1.
|
14
|
-
actionpack (= 7.1.
|
15
|
-
activesupport (= 7.1.
|
13
|
+
actioncable (7.1.3)
|
14
|
+
actionpack (= 7.1.3)
|
15
|
+
activesupport (= 7.1.3)
|
16
16
|
nio4r (~> 2.0)
|
17
17
|
websocket-driver (>= 0.6.1)
|
18
18
|
zeitwerk (~> 2.6)
|
19
|
-
actionmailbox (7.1.
|
20
|
-
actionpack (= 7.1.
|
21
|
-
activejob (= 7.1.
|
22
|
-
activerecord (= 7.1.
|
23
|
-
activestorage (= 7.1.
|
24
|
-
activesupport (= 7.1.
|
19
|
+
actionmailbox (7.1.3)
|
20
|
+
actionpack (= 7.1.3)
|
21
|
+
activejob (= 7.1.3)
|
22
|
+
activerecord (= 7.1.3)
|
23
|
+
activestorage (= 7.1.3)
|
24
|
+
activesupport (= 7.1.3)
|
25
25
|
mail (>= 2.7.1)
|
26
26
|
net-imap
|
27
27
|
net-pop
|
28
28
|
net-smtp
|
29
|
-
actionmailer (7.1.
|
30
|
-
actionpack (= 7.1.
|
31
|
-
actionview (= 7.1.
|
32
|
-
activejob (= 7.1.
|
33
|
-
activesupport (= 7.1.
|
29
|
+
actionmailer (7.1.3)
|
30
|
+
actionpack (= 7.1.3)
|
31
|
+
actionview (= 7.1.3)
|
32
|
+
activejob (= 7.1.3)
|
33
|
+
activesupport (= 7.1.3)
|
34
34
|
mail (~> 2.5, >= 2.5.4)
|
35
35
|
net-imap
|
36
36
|
net-pop
|
37
37
|
net-smtp
|
38
38
|
rails-dom-testing (~> 2.2)
|
39
|
-
actionpack (7.1.
|
40
|
-
actionview (= 7.1.
|
41
|
-
activesupport (= 7.1.
|
39
|
+
actionpack (7.1.3)
|
40
|
+
actionview (= 7.1.3)
|
41
|
+
activesupport (= 7.1.3)
|
42
42
|
nokogiri (>= 1.8.5)
|
43
43
|
racc
|
44
44
|
rack (>= 2.2.4)
|
@@ -46,35 +46,35 @@ GEM
|
|
46
46
|
rack-test (>= 0.6.3)
|
47
47
|
rails-dom-testing (~> 2.2)
|
48
48
|
rails-html-sanitizer (~> 1.6)
|
49
|
-
actiontext (7.1.
|
50
|
-
actionpack (= 7.1.
|
51
|
-
activerecord (= 7.1.
|
52
|
-
activestorage (= 7.1.
|
53
|
-
activesupport (= 7.1.
|
49
|
+
actiontext (7.1.3)
|
50
|
+
actionpack (= 7.1.3)
|
51
|
+
activerecord (= 7.1.3)
|
52
|
+
activestorage (= 7.1.3)
|
53
|
+
activesupport (= 7.1.3)
|
54
54
|
globalid (>= 0.6.0)
|
55
55
|
nokogiri (>= 1.8.5)
|
56
|
-
actionview (7.1.
|
57
|
-
activesupport (= 7.1.
|
56
|
+
actionview (7.1.3)
|
57
|
+
activesupport (= 7.1.3)
|
58
58
|
builder (~> 3.1)
|
59
59
|
erubi (~> 1.11)
|
60
60
|
rails-dom-testing (~> 2.2)
|
61
61
|
rails-html-sanitizer (~> 1.6)
|
62
|
-
activejob (7.1.
|
63
|
-
activesupport (= 7.1.
|
62
|
+
activejob (7.1.3)
|
63
|
+
activesupport (= 7.1.3)
|
64
64
|
globalid (>= 0.3.6)
|
65
|
-
activemodel (7.1.
|
66
|
-
activesupport (= 7.1.
|
67
|
-
activerecord (7.1.
|
68
|
-
activemodel (= 7.1.
|
69
|
-
activesupport (= 7.1.
|
65
|
+
activemodel (7.1.3)
|
66
|
+
activesupport (= 7.1.3)
|
67
|
+
activerecord (7.1.3)
|
68
|
+
activemodel (= 7.1.3)
|
69
|
+
activesupport (= 7.1.3)
|
70
70
|
timeout (>= 0.4.0)
|
71
|
-
activestorage (7.1.
|
72
|
-
actionpack (= 7.1.
|
73
|
-
activejob (= 7.1.
|
74
|
-
activerecord (= 7.1.
|
75
|
-
activesupport (= 7.1.
|
71
|
+
activestorage (7.1.3)
|
72
|
+
actionpack (= 7.1.3)
|
73
|
+
activejob (= 7.1.3)
|
74
|
+
activerecord (= 7.1.3)
|
75
|
+
activesupport (= 7.1.3)
|
76
76
|
marcel (~> 1.0)
|
77
|
-
activesupport (7.1.
|
77
|
+
activesupport (7.1.3)
|
78
78
|
base64
|
79
79
|
bigdecimal
|
80
80
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -89,24 +89,19 @@ GEM
|
|
89
89
|
execjs (~> 2)
|
90
90
|
awesome_print (1.9.2)
|
91
91
|
base64 (0.2.0)
|
92
|
-
bigdecimal (3.1.
|
93
|
-
bootstrap (5.3.2)
|
92
|
+
bigdecimal (3.1.6)
|
93
|
+
bootstrap-propshaft (5.3.2.2)
|
94
94
|
autoprefixer-rails (>= 9.1.0)
|
95
95
|
popper_js (>= 2.11.8, < 3)
|
96
96
|
builder (3.2.4)
|
97
97
|
byebug (11.1.3)
|
98
|
-
childprocess (
|
99
|
-
concurrent-ruby (1.2.
|
98
|
+
childprocess (5.0.0)
|
99
|
+
concurrent-ruby (1.2.3)
|
100
100
|
connection_pool (2.4.1)
|
101
101
|
crass (1.0.6)
|
102
|
-
dartsass-
|
103
|
-
|
104
|
-
|
105
|
-
dartsass-ruby (~> 3.0)
|
106
|
-
railties (>= 4.0.0)
|
107
|
-
sprockets (> 3.0)
|
108
|
-
sprockets-rails
|
109
|
-
tilt
|
102
|
+
dartsass-rails (0.5.0)
|
103
|
+
railties (>= 6.0.0)
|
104
|
+
sass-embedded (~> 1.63)
|
110
105
|
date (3.3.4)
|
111
106
|
docile (1.4.0)
|
112
107
|
drb (2.2.0)
|
@@ -120,7 +115,7 @@ GEM
|
|
120
115
|
railties (>= 3.0.0)
|
121
116
|
globalid (1.2.1)
|
122
117
|
activesupport (>= 6.1)
|
123
|
-
google-protobuf (3.25.
|
118
|
+
google-protobuf (3.25.2)
|
124
119
|
haml (6.3.0)
|
125
120
|
temple (>= 0.8.2)
|
126
121
|
thor
|
@@ -137,10 +132,10 @@ GEM
|
|
137
132
|
activesupport (>= 6.0.0)
|
138
133
|
railties (>= 6.0.0)
|
139
134
|
iniparse (1.5.0)
|
140
|
-
io-console (0.7.
|
141
|
-
irb (1.11.
|
135
|
+
io-console (0.7.2)
|
136
|
+
irb (1.11.1)
|
142
137
|
rdoc
|
143
|
-
reline (>= 0.
|
138
|
+
reline (>= 0.4.2)
|
144
139
|
json (2.7.1)
|
145
140
|
language_server-protocol (3.17.0.3)
|
146
141
|
loofah (2.22.0)
|
@@ -153,7 +148,7 @@ GEM
|
|
153
148
|
net-smtp
|
154
149
|
marcel (1.0.2)
|
155
150
|
mini_mime (1.1.5)
|
156
|
-
minitest (5.
|
151
|
+
minitest (5.21.2)
|
157
152
|
mutex_m (0.2.0)
|
158
153
|
net-imap (0.4.9.1)
|
159
154
|
date
|
@@ -169,21 +164,26 @@ GEM
|
|
169
164
|
racc (~> 1.4)
|
170
165
|
nokogiri (1.16.0-x86_64-linux)
|
171
166
|
racc (~> 1.4)
|
172
|
-
overcommit (0.
|
173
|
-
childprocess (>= 0.6.3, <
|
167
|
+
overcommit (0.62.0)
|
168
|
+
childprocess (>= 0.6.3, < 6)
|
174
169
|
iniparse (~> 1.4)
|
175
170
|
rexml (~> 3.2)
|
176
171
|
parallel (1.24.0)
|
177
|
-
parser (3.3.0.
|
172
|
+
parser (3.3.0.5)
|
178
173
|
ast (~> 2.4.1)
|
179
174
|
racc
|
180
175
|
popper_js (2.11.8)
|
176
|
+
propshaft (0.8.0)
|
177
|
+
actionpack (>= 7.0.0)
|
178
|
+
activesupport (>= 7.0.0)
|
179
|
+
rack
|
180
|
+
railties (>= 7.0.0)
|
181
181
|
psych (5.1.2)
|
182
182
|
stringio
|
183
183
|
puma (6.4.2)
|
184
184
|
nio4r (~> 2.0)
|
185
185
|
racc (1.7.3)
|
186
|
-
rack (3.0.
|
186
|
+
rack (3.0.9)
|
187
187
|
rack-session (2.0.0)
|
188
188
|
rack (>= 3.0.0)
|
189
189
|
rack-test (2.1.0)
|
@@ -191,20 +191,20 @@ GEM
|
|
191
191
|
rackup (2.1.0)
|
192
192
|
rack (>= 3)
|
193
193
|
webrick (~> 1.8)
|
194
|
-
rails (7.1.
|
195
|
-
actioncable (= 7.1.
|
196
|
-
actionmailbox (= 7.1.
|
197
|
-
actionmailer (= 7.1.
|
198
|
-
actionpack (= 7.1.
|
199
|
-
actiontext (= 7.1.
|
200
|
-
actionview (= 7.1.
|
201
|
-
activejob (= 7.1.
|
202
|
-
activemodel (= 7.1.
|
203
|
-
activerecord (= 7.1.
|
204
|
-
activestorage (= 7.1.
|
205
|
-
activesupport (= 7.1.
|
194
|
+
rails (7.1.3)
|
195
|
+
actioncable (= 7.1.3)
|
196
|
+
actionmailbox (= 7.1.3)
|
197
|
+
actionmailer (= 7.1.3)
|
198
|
+
actionpack (= 7.1.3)
|
199
|
+
actiontext (= 7.1.3)
|
200
|
+
actionview (= 7.1.3)
|
201
|
+
activejob (= 7.1.3)
|
202
|
+
activemodel (= 7.1.3)
|
203
|
+
activerecord (= 7.1.3)
|
204
|
+
activestorage (= 7.1.3)
|
205
|
+
activesupport (= 7.1.3)
|
206
206
|
bundler (>= 1.15.0)
|
207
|
-
railties (= 7.1.
|
207
|
+
railties (= 7.1.3)
|
208
208
|
rails-dom-testing (2.2.0)
|
209
209
|
activesupport (>= 5.0.0)
|
210
210
|
minitest
|
@@ -212,9 +212,9 @@ GEM
|
|
212
212
|
rails-html-sanitizer (1.6.0)
|
213
213
|
loofah (~> 2.21)
|
214
214
|
nokogiri (~> 1.14)
|
215
|
-
railties (7.1.
|
216
|
-
actionpack (= 7.1.
|
217
|
-
activesupport (= 7.1.
|
215
|
+
railties (7.1.3)
|
216
|
+
actionpack (= 7.1.3)
|
217
|
+
activesupport (= 7.1.3)
|
218
218
|
irb
|
219
219
|
rackup (>= 1.0.0)
|
220
220
|
rake (>= 12.2)
|
@@ -224,15 +224,15 @@ GEM
|
|
224
224
|
rake (13.1.0)
|
225
225
|
rdoc (6.6.2)
|
226
226
|
psych (>= 4.0.0)
|
227
|
-
regexp_parser (2.
|
227
|
+
regexp_parser (2.9.0)
|
228
228
|
reline (0.4.2)
|
229
229
|
io-console (~> 0.5)
|
230
230
|
rexml (3.2.6)
|
231
|
-
rubocop (1.
|
231
|
+
rubocop (1.60.2)
|
232
232
|
json (~> 2.3)
|
233
233
|
language_server-protocol (>= 3.17.0)
|
234
234
|
parallel (~> 1.10)
|
235
|
-
parser (>= 3.
|
235
|
+
parser (>= 3.3.0.2)
|
236
236
|
rainbow (>= 2.2.2, < 4.0)
|
237
237
|
regexp_parser (>= 1.8, < 3.0)
|
238
238
|
rexml (>= 3.2.5, < 4.0)
|
@@ -241,10 +241,10 @@ GEM
|
|
241
241
|
unicode-display_width (>= 2.4.0, < 3.0)
|
242
242
|
rubocop-ast (1.30.0)
|
243
243
|
parser (>= 3.2.1.0)
|
244
|
-
rubocop-minitest (0.34.
|
244
|
+
rubocop-minitest (0.34.5)
|
245
245
|
rubocop (>= 1.39, < 2.0)
|
246
246
|
rubocop-ast (>= 1.30.0, < 2.0)
|
247
|
-
rubocop-performance (1.20.
|
247
|
+
rubocop-performance (1.20.2)
|
248
248
|
rubocop (>= 1.48.1, < 2.0)
|
249
249
|
rubocop-ast (>= 1.30.0, < 2.0)
|
250
250
|
rubocop-rails (2.23.1)
|
@@ -254,10 +254,10 @@ GEM
|
|
254
254
|
rubocop-ast (>= 1.30.0, < 2.0)
|
255
255
|
ruby-progressbar (1.13.0)
|
256
256
|
ruby2_keywords (0.0.5)
|
257
|
-
sass-embedded (1.
|
258
|
-
google-protobuf (~> 3.
|
259
|
-
sass-embedded (1.
|
260
|
-
google-protobuf (~> 3.
|
257
|
+
sass-embedded (1.70.0-x86_64-darwin)
|
258
|
+
google-protobuf (~> 3.25)
|
259
|
+
sass-embedded (1.70.0-x86_64-linux-gnu)
|
260
|
+
google-protobuf (~> 3.25)
|
261
261
|
simple_form (5.3.0)
|
262
262
|
actionpack (>= 5.2)
|
263
263
|
activemodel (>= 5.2)
|
@@ -267,15 +267,8 @@ GEM
|
|
267
267
|
simplecov_json_formatter (~> 0.1)
|
268
268
|
simplecov-html (0.12.3)
|
269
269
|
simplecov_json_formatter (0.1.4)
|
270
|
-
|
271
|
-
|
272
|
-
rack (>= 2.2.4, < 4)
|
273
|
-
sprockets-rails (3.4.2)
|
274
|
-
actionpack (>= 5.2)
|
275
|
-
activesupport (>= 5.2)
|
276
|
-
sprockets (>= 3.0.0)
|
277
|
-
sqlite3 (1.7.0-x86_64-darwin)
|
278
|
-
sqlite3 (1.7.0-x86_64-linux)
|
270
|
+
sqlite3 (1.7.2-x86_64-darwin)
|
271
|
+
sqlite3 (1.7.2-x86_64-linux)
|
279
272
|
stringio (3.1.0)
|
280
273
|
temple (0.10.3)
|
281
274
|
thor (1.3.0)
|
@@ -305,6 +298,7 @@ DEPENDENCIES
|
|
305
298
|
importmap-rails
|
306
299
|
minitest
|
307
300
|
overcommit
|
301
|
+
propshaft
|
308
302
|
puma
|
309
303
|
rubocop
|
310
304
|
rubocop-ast
|
@@ -10,7 +10,7 @@ $panel-bg: $card-bg;
|
|
10
10
|
|
11
11
|
$panel-img-overlay-padding: 1.25rem !default;
|
12
12
|
|
13
|
-
$panel-group-margin: $panel-spacer/2 !default;
|
13
|
+
$panel-group-margin: calc($panel-spacer/2) !default;
|
14
14
|
$panel-deck-margin: $panel-group-margin !default;
|
15
15
|
|
16
16
|
$panel-columns-count: 3 !default;
|
@@ -80,7 +80,7 @@ $panel-columns-margin: $panel-spacer-y !default;
|
|
80
80
|
}
|
81
81
|
|
82
82
|
.panel-subtitle {
|
83
|
-
margin-top: -($panel-spacer-y / 2);
|
83
|
+
margin-top: -(calc($panel-spacer-y / 2));
|
84
84
|
margin-bottom: 0;
|
85
85
|
}
|
86
86
|
|
@@ -151,15 +151,15 @@ $panel-columns-margin: $panel-spacer-y !default;
|
|
151
151
|
//
|
152
152
|
|
153
153
|
.panel-header-tabs {
|
154
|
-
margin-right: -calc($panel-spacer-x / 2);
|
154
|
+
margin-right: -(calc($panel-spacer-x / 2));
|
155
155
|
margin-bottom: -$panel-spacer-y;
|
156
156
|
margin-left: 0;
|
157
157
|
border-bottom: 0;
|
158
158
|
}
|
159
159
|
|
160
160
|
.panel-header-pills {
|
161
|
-
margin-right: -calc($panel-spacer-x / 2);
|
162
|
-
margin-left: -calc($panel-spacer-x / 2);
|
161
|
+
margin-right: -(calc($panel-spacer-x / 2));
|
162
|
+
margin-left: -(calc($panel-spacer-x / 2));
|
163
163
|
}
|
164
164
|
|
165
165
|
// panel image
|
@@ -1,25 +1,25 @@
|
|
1
1
|
// libraries
|
2
|
-
@import bootstrap
|
2
|
+
@import 'bootstrap'
|
3
3
|
$fa-font-path: 'fontawesome'
|
4
|
-
@import fontawesome/fontawesome
|
5
|
-
@import fontawesome/solid
|
6
|
-
@import fontawesome/brands
|
7
|
-
@import multi-select
|
8
|
-
@import bootstrap-multiselect
|
9
|
-
@import bootstrap-markdown.min
|
10
|
-
@import bootstrap-switch.min
|
11
|
-
@import bootstrap-datepicker3.min
|
4
|
+
@import 'fontawesome/fontawesome'
|
5
|
+
@import 'fontawesome/solid'
|
6
|
+
@import 'fontawesome/brands'
|
7
|
+
@import 'multi-select'
|
8
|
+
@import 'bootstrap-multiselect'
|
9
|
+
@import 'bootstrap-markdown.min'
|
10
|
+
@import 'bootstrap-switch.min'
|
11
|
+
@import 'bootstrap-datepicker3.min'
|
12
12
|
|
13
13
|
$states_colors: $theme-colors
|
14
14
|
|
15
15
|
// Components
|
16
|
-
@import sass/
|
17
|
-
@import sass/
|
18
|
-
@import sass/
|
19
|
-
@import sass/
|
20
|
-
@import sass/
|
21
|
-
@import sass/
|
22
|
-
@import sass/
|
16
|
+
@import 'sass/boxes'
|
17
|
+
@import 'sass/containers'
|
18
|
+
@import 'sass/fixes'
|
19
|
+
@import 'sass/forms'
|
20
|
+
@import 'sass/navigations'
|
21
|
+
@import 'sass/notifications'
|
22
|
+
@import 'sass/tables'
|
23
23
|
|
24
24
|
// Other section
|
25
25
|
.ui-bibz-clear
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
Rails.application.config.assets.precompile += %w[bootstrap.min.js popper.js
|
4
|
-
|
5
|
-
|
3
|
+
# Rails.application.config.assets.precompile += %w[bootstrap.min.js popper.js
|
4
|
+
# jquery-3.7.0.min.js bootstrap-multiselect.min.js jquery.multi-select.min.js
|
5
|
+
# forms.js interfaces.js tables.js forms/formula.js forms/input-connected.js forms/jquery.multi-select-extend.js controllers/combobox_controller.js debounce.js"]
|
data/config/locales/fr.yml
CHANGED
@@ -3,12 +3,14 @@
|
|
3
3
|
module UiBibz::Builders
|
4
4
|
# Class to build html classes
|
5
5
|
class DataHtmlOptionsBuilder
|
6
|
+
include ActionView::Helpers::SanitizeHelper
|
6
7
|
attr_accessor :html_options
|
7
|
-
attr_reader :options
|
8
|
+
attr_reader :options, :content
|
8
9
|
|
9
|
-
def initialize(
|
10
|
-
@
|
10
|
+
def initialize(content, options, html_options)
|
11
|
+
@content = content
|
11
12
|
@options = options
|
13
|
+
@html_options = html_options
|
12
14
|
|
13
15
|
stimulus_data_html
|
14
16
|
hotwire_data_html
|
@@ -99,7 +101,7 @@ module UiBibz::Builders
|
|
99
101
|
when 'UiBibz::Ui::Core::Notifications::Tooltip'
|
100
102
|
options[:tooltip]
|
101
103
|
when 'TrueClass'
|
102
|
-
tooltip_content = html_options.delete(:title) || (
|
104
|
+
tooltip_content = html_options.delete(:title) || (sanitize(content) if options[:text] == false)
|
103
105
|
UiBibz::Ui::Core::Notifications::Tooltip.new(tooltip_content)
|
104
106
|
else
|
105
107
|
UiBibz::Ui::Core::Notifications::Tooltip.new(options[:tooltip])
|
data/lib/ui_bibz/infos.rb
CHANGED
@@ -62,7 +62,7 @@ module UiBibz::Ui::Core
|
|
62
62
|
@html_options = component_initialize_factory_method.html_options
|
63
63
|
@options = component_initialize_factory_method.options
|
64
64
|
|
65
|
-
@data_html_options_builder = UiBibz::Builders::DataHtmlOptionsBuilder.new(@
|
65
|
+
@data_html_options_builder = UiBibz::Builders::DataHtmlOptionsBuilder.new(@content, @options, @html_options)
|
66
66
|
|
67
67
|
init_options
|
68
68
|
init_component_html_options
|
@@ -9,15 +9,19 @@ module UiBibz::Ui::Ux::Tables
|
|
9
9
|
|
10
10
|
# header use i18n
|
11
11
|
def header(column, name = nil)
|
12
|
-
@column
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
@column = column
|
13
|
+
@name = name
|
14
|
+
if @name.nil?
|
15
|
+
defaults = [
|
16
|
+
header_name(name),
|
17
|
+
translate_headers_by_defaults,
|
18
|
+
translate_headers_by_defaults_active_record,
|
19
|
+
translate_headers_by_active_record,
|
20
|
+
default_header_name(name)
|
21
|
+
].compact
|
22
|
+
|
23
|
+
@name = UiBibz::Utils::Internationalization.new(translate_headers_by_model, default: defaults).translate
|
24
|
+
end
|
21
25
|
sortable? ? sortable_link : title
|
22
26
|
end
|
23
27
|
|
data/ui_bibz.gemspec
CHANGED
@@ -27,12 +27,11 @@ Gem::Specification.new do |s|
|
|
27
27
|
|
28
28
|
# Rails gems
|
29
29
|
s.add_dependency 'rails', '>= 7.1.0'
|
30
|
-
|
31
|
-
|
32
|
-
s.add_dependency '
|
33
|
-
s.add_dependency 'dartsass-sprockets', '~> 3.0.0'
|
30
|
+
# Switch to bootstrap 5.3.3 as soon as possible
|
31
|
+
s.add_dependency 'bootstrap-propshaft', '~> 5.3.2.2'
|
32
|
+
s.add_dependency 'dartsass-rails'
|
34
33
|
s.add_dependency 'will_paginate'
|
35
|
-
# Don't move factory_bot_rails to Gemfile
|
34
|
+
# Don't move factory_bot_rails to Gemfile else it will be loaded in test/dummy
|
36
35
|
s.add_development_dependency 'factory_bot_rails', '~> 4.0' # rubocop:disable Gemspec/DevelopmentDependencies
|
37
36
|
|
38
37
|
s.metadata['rubygems_mfa_required'] = 'true'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ui_bibz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.beta10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thooams [Thomas HUMMEL]
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01
|
11
|
+
date: 2024-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -25,33 +25,33 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 7.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: bootstrap
|
28
|
+
name: bootstrap-propshaft
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 5.3.
|
33
|
+
version: 5.3.2.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 5.3.
|
40
|
+
version: 5.3.2.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: dartsass-
|
42
|
+
name: dartsass-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: will_paginate
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|