ui_bibz 4.0.0.beta16 → 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: 9a3cd0a14c5ea1f6ff3cdda6ea0f1d8bfb4a292ac7bb7a73c95432ea02ce1976
4
- data.tar.gz: e5c5dadd3eb4677741d9e1e0845f7c7c252e09a05445353559e1c271ea769480
3
+ metadata.gz: 701e9fbed51812909b28fc81168512c616ecd0e4303a7629677e15458ff2ebfe
4
+ data.tar.gz: 8a13ffe8508ef5a315f5c8cfd721e06501698e767cb7e5f5657fd3f37e1aa974
5
5
  SHA512:
6
- metadata.gz: 3f095dc57b226e7b3780ada538344100980eeff55383a55498d24d04a4ff42a3041f4847444f2df11042b2342f3328af4a32e3e833f3502fae3c2b7b0a0db2eb
7
- data.tar.gz: 94f43098fd85527dedd1afd1b1013a332348c659424e2ac7f28a83ddba125de6b91cebe85a1cd0562098d7251b0248ae41b86186406ef442a1ece212fd04cbfd
6
+ metadata.gz: 74d70d78e03676fc10fe43045c895d46e57a750400fc5eb8d27b8ceaf8b0989a1a5345e1c17bbbf84f34ed658347543fe834addb17589762a4a2738fd94e29ca
7
+ data.tar.gz: f319c66229aaaaf1655723780949f0123be0860a56ca6e009b348f5f26582242e305cd03b21c46509118dd3e70edf766a49a827c2dd7fcf5db546ddb7c1770d5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (4.0.0.beta16)
4
+ ui_bibz (4.0.0.beta17)
5
5
  bootstrap (~> 5.3.3)
6
6
  dartsass-rails
7
7
  rails (>= 7.1.0)
@@ -10,29 +10,29 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (8.0.1)
14
- actionpack (= 8.0.1)
15
- activesupport (= 8.0.1)
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.1)
20
- actionpack (= 8.0.1)
21
- activejob (= 8.0.1)
22
- activerecord (= 8.0.1)
23
- activestorage (= 8.0.1)
24
- activesupport (= 8.0.1)
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.1)
27
- actionpack (= 8.0.1)
28
- actionview (= 8.0.1)
29
- activejob (= 8.0.1)
30
- activesupport (= 8.0.1)
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.1)
34
- actionview (= 8.0.1)
35
- activesupport (= 8.0.1)
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.1)
44
- actionpack (= 8.0.1)
45
- activerecord (= 8.0.1)
46
- activestorage (= 8.0.1)
47
- activesupport (= 8.0.1)
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.1)
51
- activesupport (= 8.0.1)
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.1)
57
- activesupport (= 8.0.1)
56
+ activejob (8.0.2)
57
+ activesupport (= 8.0.2)
58
58
  globalid (>= 0.3.6)
59
- activemodel (8.0.1)
60
- activesupport (= 8.0.1)
61
- activerecord (8.0.1)
62
- activemodel (= 8.0.1)
63
- activesupport (= 8.0.1)
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.1)
66
- actionpack (= 8.0.1)
67
- activejob (= 8.0.1)
68
- activerecord (= 8.0.1)
69
- activesupport (= 8.0.1)
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.1)
71
+ activesupport (8.0.2)
72
72
  base64
73
73
  benchmark (>= 0.3)
74
74
  bigdecimal
@@ -87,7 +87,7 @@ 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)
90
+ bigdecimal (3.1.9)
91
91
  bootstrap (5.3.3)
92
92
  autoprefixer-rails (>= 9.1.0)
93
93
  popper_js (>= 2.11.8, < 3)
@@ -95,8 +95,8 @@ GEM
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)
@@ -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.29.2-x86_64-darwin)
116
+ google-protobuf (4.30.0-x86_64-darwin)
117
117
  bigdecimal
118
118
  rake (>= 13)
119
- google-protobuf (4.29.2-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
138
  io-console (0.8.0)
139
- irb (1.14.3)
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.9.1)
143
- language_server-protocol (3.17.0.3)
144
- logger (1.6.4)
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,62 +154,66 @@ GEM
152
154
  net-smtp
153
155
  marcel (1.0.4)
154
156
  mini_mime (1.1.5)
155
- minitest (5.25.4)
156
- net-imap (0.5.2)
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.17.2-x86_64-darwin)
168
+ nokogiri (1.18.3-x86_64-darwin)
167
169
  racc (~> 1.4)
168
- nokogiri (1.17.2-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.2)
189
+ psych (5.2.3)
185
190
  date
186
191
  stringio
187
- puma (6.5.0)
192
+ puma (6.6.0)
188
193
  nio4r (~> 2.0)
189
194
  racc (1.8.1)
190
- rack (3.1.8)
191
- rack-session (2.0.0)
195
+ rack (3.1.12)
196
+ rack-session (2.1.0)
197
+ base64 (>= 0.1.0)
192
198
  rack (>= 3.0.0)
193
- rack-test (2.1.0)
199
+ rack-test (2.2.0)
194
200
  rack (>= 1.3)
195
201
  rackup (2.2.1)
196
202
  rack (>= 3)
197
- rails (8.0.1)
198
- actioncable (= 8.0.1)
199
- actionmailbox (= 8.0.1)
200
- actionmailer (= 8.0.1)
201
- actionpack (= 8.0.1)
202
- actiontext (= 8.0.1)
203
- actionview (= 8.0.1)
204
- activejob (= 8.0.1)
205
- activemodel (= 8.0.1)
206
- activerecord (= 8.0.1)
207
- activestorage (= 8.0.1)
208
- activesupport (= 8.0.1)
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)
209
215
  bundler (>= 1.15.0)
210
- railties (= 8.0.1)
216
+ railties (= 8.0.2)
211
217
  rails-dom-testing (2.2.0)
212
218
  activesupport (>= 5.0.0)
213
219
  minitest
@@ -215,9 +221,9 @@ GEM
215
221
  rails-html-sanitizer (1.6.2)
216
222
  loofah (~> 2.21)
217
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)
218
- railties (8.0.1)
219
- actionpack (= 8.0.1)
220
- activesupport (= 8.0.1)
224
+ railties (8.0.2)
225
+ actionpack (= 8.0.2)
226
+ activesupport (= 8.0.2)
221
227
  irb (~> 1.13)
222
228
  rackup (>= 1.0.0)
223
229
  rake (>= 12.2)
@@ -225,40 +231,44 @@ GEM
225
231
  zeitwerk (~> 2.6)
226
232
  rainbow (3.1.1)
227
233
  rake (13.2.1)
228
- rdoc (6.10.0)
234
+ rdoc (6.12.0)
229
235
  psych (>= 4.0.0)
230
- regexp_parser (2.9.3)
236
+ regexp_parser (2.10.0)
231
237
  reline (0.6.0)
232
238
  io-console (~> 0.5)
233
- rexml (3.4.0)
234
- rubocop (1.69.2)
239
+ rexml (3.4.1)
240
+ rubocop (1.74.0)
235
241
  json (~> 2.3)
236
- language_server-protocol (>= 3.17.0)
242
+ language_server-protocol (~> 3.17.0.2)
243
+ lint_roller (~> 1.1.0)
237
244
  parallel (~> 1.10)
238
245
  parser (>= 3.3.0.2)
239
246
  rainbow (>= 2.2.2, < 4.0)
240
247
  regexp_parser (>= 2.9.3, < 3.0)
241
- rubocop-ast (>= 1.36.2, < 2.0)
248
+ rubocop-ast (>= 1.38.0, < 2.0)
242
249
  ruby-progressbar (~> 1.7)
243
250
  unicode-display_width (>= 2.4.0, < 4.0)
244
- rubocop-ast (1.37.0)
251
+ rubocop-ast (1.38.1)
245
252
  parser (>= 3.3.1.0)
246
- rubocop-minitest (0.36.0)
247
- rubocop (>= 1.61, < 2.0)
248
- rubocop-ast (>= 1.31.1, < 2.0)
249
- rubocop-performance (1.23.0)
250
- rubocop (>= 1.48.1, < 2.0)
251
- rubocop-ast (>= 1.31.1, < 2.0)
252
- 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)
253
262
  activesupport (>= 4.2.0)
263
+ lint_roller (~> 1.1)
254
264
  rack (>= 1.1)
255
- rubocop (>= 1.52.0, < 2.0)
256
- rubocop-ast (>= 1.31.1, < 2.0)
265
+ rubocop (>= 1.72.1, < 2.0)
266
+ rubocop-ast (>= 1.38.0, < 2.0)
257
267
  ruby-progressbar (1.13.0)
258
- sass-embedded (1.83.0-x86_64-darwin)
259
- google-protobuf (~> 4.28)
260
- sass-embedded (1.83.0-x86_64-linux-gnu)
261
- google-protobuf (~> 4.28)
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)
262
272
  securerandom (0.4.1)
263
273
  simple_form (5.3.1)
264
274
  actionpack (>= 5.2)
@@ -269,26 +279,27 @@ GEM
269
279
  simplecov_json_formatter (~> 0.1)
270
280
  simplecov-html (0.13.1)
271
281
  simplecov_json_formatter (0.1.4)
272
- sqlite3 (2.4.1-x86_64-darwin)
273
- sqlite3 (2.4.1-x86_64-linux-gnu)
274
- 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)
275
285
  temple (0.10.3)
276
286
  thor (1.3.2)
277
- tilt (2.4.0)
287
+ tilt (2.6.0)
278
288
  timeout (0.4.3)
279
289
  tzinfo (2.0.6)
280
290
  concurrent-ruby (~> 1.0)
281
- unicode-display_width (3.1.2)
291
+ unicode-display_width (3.1.4)
282
292
  unicode-emoji (~> 4.0, >= 4.0.4)
283
293
  unicode-emoji (4.0.4)
284
- uri (1.0.2)
294
+ uri (1.0.3)
285
295
  useragent (0.16.11)
286
- websocket-driver (0.7.6)
296
+ websocket-driver (0.7.7)
297
+ base64
287
298
  websocket-extensions (>= 0.1.0)
288
299
  websocket-extensions (0.1.5)
289
300
  will_paginate (4.0.1)
290
301
  yard (0.9.37)
291
- zeitwerk (2.7.1)
302
+ zeitwerk (2.7.2)
292
303
 
293
304
  PLATFORMS
294
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);