ui_bibz 4.0.0.beta15 → 4.0.0.beta17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c6042f78c374577c994b06ec4f7c93eee500dc42cd6fddcbce0cbe6912e2625
4
- data.tar.gz: cb6e88c37a90eb604b2057d3d23b88cf875b026ed646e55f1bb297faab1cf054
3
+ metadata.gz: 701e9fbed51812909b28fc81168512c616ecd0e4303a7629677e15458ff2ebfe
4
+ data.tar.gz: 8a13ffe8508ef5a315f5c8cfd721e06501698e767cb7e5f5657fd3f37e1aa974
5
5
  SHA512:
6
- metadata.gz: 8cf0d87b7450110c87783c3d418a179b067edfd1501fb15d8a2fc5ab6a4ee5ae3f892e2309eb97ca7fa37f8eff32b669187195ff28431a71e987241fc5363081
7
- data.tar.gz: c4568c8925f4732b397c93f85d1b41f1d7edc23a555d6797edc871f92dc1b65757e4e821bda3493d5ac3f0cf76b3a71dcab497cafcad38309fd08be256837f71
6
+ metadata.gz: 74d70d78e03676fc10fe43045c895d46e57a750400fc5eb8d27b8ceaf8b0989a1a5345e1c17bbbf84f34ed658347543fe834addb17589762a4a2738fd94e29ca
7
+ data.tar.gz: f319c66229aaaaf1655723780949f0123be0860a56ca6e009b348f5f26582242e305cd03b21c46509118dd3e70edf766a49a827c2dd7fcf5db546ddb7c1770d5
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (4.0.0.beta15)
5
- bootstrap-propshaft (~> 5.3.2.2)
4
+ ui_bibz (4.0.0.beta17)
5
+ bootstrap (~> 5.3.3)
6
6
  dartsass-rails
7
7
  rails (>= 7.1.0)
8
8
  will_paginate
@@ -10,29 +10,29 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (8.0.0)
14
- actionpack (= 8.0.0)
15
- activesupport (= 8.0.0)
13
+ actioncable (8.0.2)
14
+ actionpack (= 8.0.2)
15
+ activesupport (= 8.0.2)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
18
  zeitwerk (~> 2.6)
19
- actionmailbox (8.0.0)
20
- actionpack (= 8.0.0)
21
- activejob (= 8.0.0)
22
- activerecord (= 8.0.0)
23
- activestorage (= 8.0.0)
24
- activesupport (= 8.0.0)
19
+ actionmailbox (8.0.2)
20
+ actionpack (= 8.0.2)
21
+ activejob (= 8.0.2)
22
+ activerecord (= 8.0.2)
23
+ activestorage (= 8.0.2)
24
+ activesupport (= 8.0.2)
25
25
  mail (>= 2.8.0)
26
- actionmailer (8.0.0)
27
- actionpack (= 8.0.0)
28
- actionview (= 8.0.0)
29
- activejob (= 8.0.0)
30
- activesupport (= 8.0.0)
26
+ actionmailer (8.0.2)
27
+ actionpack (= 8.0.2)
28
+ actionview (= 8.0.2)
29
+ activejob (= 8.0.2)
30
+ activesupport (= 8.0.2)
31
31
  mail (>= 2.8.0)
32
32
  rails-dom-testing (~> 2.2)
33
- actionpack (8.0.0)
34
- actionview (= 8.0.0)
35
- activesupport (= 8.0.0)
33
+ actionpack (8.0.2)
34
+ actionview (= 8.0.2)
35
+ activesupport (= 8.0.2)
36
36
  nokogiri (>= 1.8.5)
37
37
  rack (>= 2.2.4)
38
38
  rack-session (>= 1.0.1)
@@ -40,35 +40,35 @@ GEM
40
40
  rails-dom-testing (~> 2.2)
41
41
  rails-html-sanitizer (~> 1.6)
42
42
  useragent (~> 0.16)
43
- actiontext (8.0.0)
44
- actionpack (= 8.0.0)
45
- activerecord (= 8.0.0)
46
- activestorage (= 8.0.0)
47
- activesupport (= 8.0.0)
43
+ actiontext (8.0.2)
44
+ actionpack (= 8.0.2)
45
+ activerecord (= 8.0.2)
46
+ activestorage (= 8.0.2)
47
+ activesupport (= 8.0.2)
48
48
  globalid (>= 0.6.0)
49
49
  nokogiri (>= 1.8.5)
50
- actionview (8.0.0)
51
- activesupport (= 8.0.0)
50
+ actionview (8.0.2)
51
+ activesupport (= 8.0.2)
52
52
  builder (~> 3.1)
53
53
  erubi (~> 1.11)
54
54
  rails-dom-testing (~> 2.2)
55
55
  rails-html-sanitizer (~> 1.6)
56
- activejob (8.0.0)
57
- activesupport (= 8.0.0)
56
+ activejob (8.0.2)
57
+ activesupport (= 8.0.2)
58
58
  globalid (>= 0.3.6)
59
- activemodel (8.0.0)
60
- activesupport (= 8.0.0)
61
- activerecord (8.0.0)
62
- activemodel (= 8.0.0)
63
- activesupport (= 8.0.0)
59
+ activemodel (8.0.2)
60
+ activesupport (= 8.0.2)
61
+ activerecord (8.0.2)
62
+ activemodel (= 8.0.2)
63
+ activesupport (= 8.0.2)
64
64
  timeout (>= 0.4.0)
65
- activestorage (8.0.0)
66
- actionpack (= 8.0.0)
67
- activejob (= 8.0.0)
68
- activerecord (= 8.0.0)
69
- activesupport (= 8.0.0)
65
+ activestorage (8.0.2)
66
+ actionpack (= 8.0.2)
67
+ activejob (= 8.0.2)
68
+ activerecord (= 8.0.2)
69
+ activesupport (= 8.0.2)
70
70
  marcel (~> 1.0)
71
- activesupport (8.0.0)
71
+ activesupport (8.0.2)
72
72
  base64
73
73
  benchmark (>= 0.3)
74
74
  bigdecimal
@@ -87,24 +87,24 @@ GEM
87
87
  awesome_print (1.9.2)
88
88
  base64 (0.2.0)
89
89
  benchmark (0.4.0)
90
- bigdecimal (3.1.8)
91
- bootstrap-propshaft (5.3.2.2)
90
+ bigdecimal (3.1.9)
91
+ bootstrap (5.3.3)
92
92
  autoprefixer-rails (>= 9.1.0)
93
93
  popper_js (>= 2.11.8, < 3)
94
94
  builder (3.3.0)
95
95
  byebug (11.1.3)
96
96
  childprocess (5.1.0)
97
97
  logger (~> 1.5)
98
- concurrent-ruby (1.3.4)
99
- connection_pool (2.4.1)
98
+ concurrent-ruby (1.3.5)
99
+ connection_pool (2.5.0)
100
100
  crass (1.0.6)
101
101
  dartsass-rails (0.5.1)
102
102
  railties (>= 6.0.0)
103
103
  sass-embedded (~> 1.63)
104
- date (3.4.0)
104
+ date (3.4.1)
105
105
  docile (1.4.1)
106
106
  drb (2.2.1)
107
- erubi (1.13.0)
107
+ erubi (1.13.1)
108
108
  execjs (2.10.0)
109
109
  factory_bot (4.11.1)
110
110
  activesupport (>= 3.0.0)
@@ -113,10 +113,10 @@ GEM
113
113
  railties (>= 3.0.0)
114
114
  globalid (1.2.1)
115
115
  activesupport (>= 6.1)
116
- google-protobuf (4.28.3-x86_64-darwin)
116
+ google-protobuf (4.30.0-x86_64-darwin)
117
117
  bigdecimal
118
118
  rake (>= 13)
119
- google-protobuf (4.28.3-x86_64-linux)
119
+ google-protobuf (4.30.0-x86_64-linux)
120
120
  bigdecimal
121
121
  rake (>= 13)
122
122
  haml (6.3.0)
@@ -128,21 +128,23 @@ GEM
128
128
  activesupport (>= 5.1)
129
129
  haml (>= 4.0.6)
130
130
  railties (>= 5.1)
131
- i18n (1.14.6)
131
+ i18n (1.14.7)
132
132
  concurrent-ruby (~> 1.0)
133
- importmap-rails (2.0.3)
133
+ importmap-rails (2.1.0)
134
134
  actionpack (>= 6.0.0)
135
135
  activesupport (>= 6.0.0)
136
136
  railties (>= 6.0.0)
137
137
  iniparse (1.5.0)
138
- io-console (0.7.2)
139
- irb (1.14.1)
138
+ io-console (0.8.0)
139
+ irb (1.15.1)
140
+ pp (>= 0.6.0)
140
141
  rdoc (>= 4.0.0)
141
142
  reline (>= 0.4.2)
142
- json (2.8.1)
143
- language_server-protocol (3.17.0.3)
144
- logger (1.6.1)
145
- loofah (2.23.1)
143
+ json (2.10.2)
144
+ language_server-protocol (3.17.0.4)
145
+ lint_roller (1.1.0)
146
+ logger (1.6.6)
147
+ loofah (2.24.0)
146
148
  crass (~> 1.0.2)
147
149
  nokogiri (>= 1.12.0)
148
150
  mail (2.8.1)
@@ -152,71 +154,76 @@ GEM
152
154
  net-smtp
153
155
  marcel (1.0.4)
154
156
  mini_mime (1.1.5)
155
- minitest (5.25.1)
156
- net-imap (0.5.1)
157
+ minitest (5.25.5)
158
+ net-imap (0.5.6)
157
159
  date
158
160
  net-protocol
159
161
  net-pop (0.1.2)
160
162
  net-protocol
161
163
  net-protocol (0.2.2)
162
164
  timeout
163
- net-smtp (0.5.0)
165
+ net-smtp (0.5.1)
164
166
  net-protocol
165
167
  nio4r (2.7.4)
166
- nokogiri (1.16.7-x86_64-darwin)
168
+ nokogiri (1.18.3-x86_64-darwin)
167
169
  racc (~> 1.4)
168
- nokogiri (1.16.7-x86_64-linux)
170
+ nokogiri (1.18.3-x86_64-linux-gnu)
169
171
  racc (~> 1.4)
170
- overcommit (0.64.1)
172
+ overcommit (0.67.1)
171
173
  childprocess (>= 0.6.3, < 6)
172
174
  iniparse (~> 1.4)
173
175
  rexml (>= 3.3.9)
174
176
  parallel (1.26.3)
175
- parser (3.3.6.0)
177
+ parser (3.3.7.1)
176
178
  ast (~> 2.4.1)
177
179
  racc
178
180
  popper_js (2.11.8)
181
+ pp (0.6.2)
182
+ prettyprint
183
+ prettyprint (0.2.0)
179
184
  propshaft (1.1.0)
180
185
  actionpack (>= 7.0.0)
181
186
  activesupport (>= 7.0.0)
182
187
  rack
183
188
  railties (>= 7.0.0)
184
- psych (5.2.0)
189
+ psych (5.2.3)
190
+ date
185
191
  stringio
186
- puma (6.4.3)
192
+ puma (6.6.0)
187
193
  nio4r (~> 2.0)
188
194
  racc (1.8.1)
189
- rack (3.1.8)
190
- rack-session (2.0.0)
195
+ rack (3.1.12)
196
+ rack-session (2.1.0)
197
+ base64 (>= 0.1.0)
191
198
  rack (>= 3.0.0)
192
- rack-test (2.1.0)
199
+ rack-test (2.2.0)
193
200
  rack (>= 1.3)
194
- rackup (2.2.0)
201
+ rackup (2.2.1)
195
202
  rack (>= 3)
196
- rails (8.0.0)
197
- actioncable (= 8.0.0)
198
- actionmailbox (= 8.0.0)
199
- actionmailer (= 8.0.0)
200
- actionpack (= 8.0.0)
201
- actiontext (= 8.0.0)
202
- actionview (= 8.0.0)
203
- activejob (= 8.0.0)
204
- activemodel (= 8.0.0)
205
- activerecord (= 8.0.0)
206
- activestorage (= 8.0.0)
207
- activesupport (= 8.0.0)
203
+ rails (8.0.2)
204
+ actioncable (= 8.0.2)
205
+ actionmailbox (= 8.0.2)
206
+ actionmailer (= 8.0.2)
207
+ actionpack (= 8.0.2)
208
+ actiontext (= 8.0.2)
209
+ actionview (= 8.0.2)
210
+ activejob (= 8.0.2)
211
+ activemodel (= 8.0.2)
212
+ activerecord (= 8.0.2)
213
+ activestorage (= 8.0.2)
214
+ activesupport (= 8.0.2)
208
215
  bundler (>= 1.15.0)
209
- railties (= 8.0.0)
216
+ railties (= 8.0.2)
210
217
  rails-dom-testing (2.2.0)
211
218
  activesupport (>= 5.0.0)
212
219
  minitest
213
220
  nokogiri (>= 1.6)
214
- rails-html-sanitizer (1.6.0)
221
+ rails-html-sanitizer (1.6.2)
215
222
  loofah (~> 2.21)
216
- nokogiri (~> 1.14)
217
- railties (8.0.0)
218
- actionpack (= 8.0.0)
219
- activesupport (= 8.0.0)
223
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
224
+ railties (8.0.2)
225
+ actionpack (= 8.0.2)
226
+ activesupport (= 8.0.2)
220
227
  irb (~> 1.13)
221
228
  rackup (>= 1.0.0)
222
229
  rake (>= 12.2)
@@ -224,41 +231,45 @@ GEM
224
231
  zeitwerk (~> 2.6)
225
232
  rainbow (3.1.1)
226
233
  rake (13.2.1)
227
- rdoc (6.7.0)
234
+ rdoc (6.12.0)
228
235
  psych (>= 4.0.0)
229
- regexp_parser (2.9.2)
230
- reline (0.5.11)
236
+ regexp_parser (2.10.0)
237
+ reline (0.6.0)
231
238
  io-console (~> 0.5)
232
- rexml (3.3.9)
233
- rubocop (1.68.0)
239
+ rexml (3.4.1)
240
+ rubocop (1.74.0)
234
241
  json (~> 2.3)
235
- language_server-protocol (>= 3.17.0)
242
+ language_server-protocol (~> 3.17.0.2)
243
+ lint_roller (~> 1.1.0)
236
244
  parallel (~> 1.10)
237
245
  parser (>= 3.3.0.2)
238
246
  rainbow (>= 2.2.2, < 4.0)
239
- regexp_parser (>= 2.4, < 3.0)
240
- rubocop-ast (>= 1.32.2, < 2.0)
247
+ regexp_parser (>= 2.9.3, < 3.0)
248
+ rubocop-ast (>= 1.38.0, < 2.0)
241
249
  ruby-progressbar (~> 1.7)
242
- unicode-display_width (>= 2.4.0, < 3.0)
243
- rubocop-ast (1.34.1)
250
+ unicode-display_width (>= 2.4.0, < 4.0)
251
+ rubocop-ast (1.38.1)
244
252
  parser (>= 3.3.1.0)
245
- rubocop-minitest (0.36.0)
246
- rubocop (>= 1.61, < 2.0)
247
- rubocop-ast (>= 1.31.1, < 2.0)
248
- rubocop-performance (1.22.1)
249
- rubocop (>= 1.48.1, < 2.0)
250
- rubocop-ast (>= 1.31.1, < 2.0)
251
- rubocop-rails (2.27.0)
253
+ rubocop-minitest (0.37.1)
254
+ lint_roller (~> 1.1)
255
+ rubocop (>= 1.72.1, < 2.0)
256
+ rubocop-ast (>= 1.38.0, < 2.0)
257
+ rubocop-performance (1.24.0)
258
+ lint_roller (~> 1.1)
259
+ rubocop (>= 1.72.1, < 2.0)
260
+ rubocop-ast (>= 1.38.0, < 2.0)
261
+ rubocop-rails (2.30.3)
252
262
  activesupport (>= 4.2.0)
263
+ lint_roller (~> 1.1)
253
264
  rack (>= 1.1)
254
- rubocop (>= 1.52.0, < 2.0)
255
- rubocop-ast (>= 1.31.1, < 2.0)
265
+ rubocop (>= 1.72.1, < 2.0)
266
+ rubocop-ast (>= 1.38.0, < 2.0)
256
267
  ruby-progressbar (1.13.0)
257
- sass-embedded (1.80.6-x86_64-darwin)
258
- google-protobuf (~> 4.28)
259
- sass-embedded (1.80.6-x86_64-linux-gnu)
260
- google-protobuf (~> 4.28)
261
- securerandom (0.3.1)
268
+ sass-embedded (1.85.1-x86_64-darwin)
269
+ google-protobuf (~> 4.29)
270
+ sass-embedded (1.85.1-x86_64-linux-gnu)
271
+ google-protobuf (~> 4.29)
272
+ securerandom (0.4.1)
262
273
  simple_form (5.3.1)
263
274
  actionpack (>= 5.2)
264
275
  activemodel (>= 5.2)
@@ -268,24 +279,27 @@ GEM
268
279
  simplecov_json_formatter (~> 0.1)
269
280
  simplecov-html (0.13.1)
270
281
  simplecov_json_formatter (0.1.4)
271
- sqlite3 (2.2.0-x86_64-darwin)
272
- sqlite3 (2.2.0-x86_64-linux-gnu)
273
- stringio (3.1.2)
282
+ sqlite3 (2.6.0-x86_64-darwin)
283
+ sqlite3 (2.6.0-x86_64-linux-gnu)
284
+ stringio (3.1.5)
274
285
  temple (0.10.3)
275
286
  thor (1.3.2)
276
- tilt (2.4.0)
277
- timeout (0.4.2)
287
+ tilt (2.6.0)
288
+ timeout (0.4.3)
278
289
  tzinfo (2.0.6)
279
290
  concurrent-ruby (~> 1.0)
280
- unicode-display_width (2.6.0)
281
- uri (1.0.1)
282
- useragent (0.16.10)
283
- websocket-driver (0.7.6)
291
+ unicode-display_width (3.1.4)
292
+ unicode-emoji (~> 4.0, >= 4.0.4)
293
+ unicode-emoji (4.0.4)
294
+ uri (1.0.3)
295
+ useragent (0.16.11)
296
+ websocket-driver (0.7.7)
297
+ base64
284
298
  websocket-extensions (>= 0.1.0)
285
299
  websocket-extensions (0.1.5)
286
300
  will_paginate (4.0.1)
287
301
  yard (0.9.37)
288
- zeitwerk (2.7.1)
302
+ zeitwerk (2.7.2)
289
303
 
290
304
  PLATFORMS
291
305
  x86_64-darwin-22
@@ -0,0 +1,102 @@
1
+ // import * as bootstrap from "bootstrap";
2
+ // (function ($bs) {
3
+ // const CLASS_NAME = "has-child-dropdown-show";
4
+ // $bs.Dropdown.prototype.toggle = (function (_orginal) {
5
+ // return function () {
6
+ // document.querySelectorAll("." + CLASS_NAME).forEach(function (e) {
7
+ // e.classList.remove(CLASS_NAME);
8
+ // });
9
+ // let dd = this._element
10
+ // .closest(".dropdown")
11
+ // ?.parentNode?.closest(".dropdown");
12
+ // for (; dd && dd !== document; dd = dd.parentNode.closest(".dropdown")) {
13
+ // dd.classList.add(CLASS_NAME);
14
+ // }
15
+ // return _orginal.call(this);
16
+ // };
17
+ // })($bs.Dropdown.prototype.toggle);
18
+ //
19
+ // document.querySelectorAll(".dropdown").forEach(function (dd) {
20
+ // dd.addEventListener("hide.bs.dropdown", function (e) {
21
+ // if (this.classList.contains(CLASS_NAME)) {
22
+ // this.classList.remove(CLASS_NAME);
23
+ // e.preventDefault();
24
+ // }
25
+ // e.stopPropagation(); // do not need pop in multi level mode
26
+ // });
27
+ // });
28
+ //
29
+ // // for hover
30
+ // document
31
+ // .querySelectorAll(".dropdown-hover, .dropdown-hover-all .dropdown")
32
+ // .forEach(function (dd) {
33
+ // dd.addEventListener("mouseenter", function (e) {
34
+ // let toggle = e.target.querySelector(
35
+ // ':scope>[data-bs-toggle="dropdown"]',
36
+ // );
37
+ // if (!toggle.classList.contains("show")) {
38
+ // $bs.Dropdown.getOrCreateInstance(toggle).toggle();
39
+ // dd.classList.add(CLASS_NAME);
40
+ // $bs.Dropdown.clearMenus();
41
+ // }
42
+ // });
43
+ // dd.addEventListener("mouseleave", function (e) {
44
+ // let toggle = e.target.querySelector(
45
+ // ':scope>[data-bs-toggle="dropdown"]',
46
+ // );
47
+ // if (toggle.classList.contains("show")) {
48
+ // $bs.Dropdown.getOrCreateInstance(toggle).toggle();
49
+ // }
50
+ // });
51
+ // });
52
+ // })(bootstrap);
53
+
54
+ import * as bootstrap from "bootstrap";
55
+
56
+ function initDropdowns() {
57
+ const CLASS_NAME = "has-child-dropdown-show";
58
+ document.querySelectorAll("." + CLASS_NAME).forEach((e) => {
59
+ e.classList.remove(CLASS_NAME);
60
+ });
61
+
62
+ document.querySelectorAll(".dropdown").forEach((dd) => {
63
+ dd.addEventListener("hide.bs.dropdown", function (e) {
64
+ if (this.classList.contains(CLASS_NAME)) {
65
+ this.classList.remove(CLASS_NAME);
66
+ e.preventDefault();
67
+ }
68
+ e.stopPropagation();
69
+ });
70
+ });
71
+
72
+ // for hover
73
+ document
74
+ .querySelectorAll(".dropdown-hover, .dropdown-hover-all .dropdown")
75
+ .forEach((dd) => {
76
+ dd.addEventListener("mouseenter", function (e) {
77
+ let toggle = e.target.querySelector(
78
+ ':scope>[data-bs-toggle="dropdown"]',
79
+ );
80
+ if (!toggle.classList.contains("show")) {
81
+ bootstrap.Dropdown.getOrCreateInstance(toggle).toggle();
82
+ dd.classList.add(CLASS_NAME);
83
+ bootstrap.Dropdown.clearMenus();
84
+ }
85
+ });
86
+
87
+ dd.addEventListener("mouseleave", function (e) {
88
+ let toggle = e.target.querySelector(
89
+ ':scope>[data-bs-toggle="dropdown"]',
90
+ );
91
+ if (toggle.classList.contains("show")) {
92
+ bootstrap.Dropdown.getOrCreateInstance(toggle).toggle();
93
+ }
94
+ });
95
+ });
96
+ }
97
+
98
+ // Exécute le script au chargement initial
99
+ document.addEventListener("DOMContentLoaded", initDropdowns);
100
+
101
+ // Ré-exécute le script après chaque changement de page avec Turbo
102
+ document.addEventListener("turbo:load", initDropdowns);