ui_bibz 3.0.0.alpha12 → 3.0.0.beta5
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/.github/workflows/ci.yml +28 -0
- data/.github/workflows/dependencies-checker.yml +13 -0
- data/.github/workflows/linter.yml +16 -0
- data/.rubocop.yml +1 -0
- data/Gemfile.lock +36 -37
- data/README.md +8 -8
- data/lib/ui_bibz/infos.rb +3 -3
- data/lib/ui_bibz/ui/core/boxes/components/card_body.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/buttons/button.rb +4 -4
- data/lib/ui_bibz/ui/core/forms/buttons/button_link.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb +24 -6
- data/lib/ui_bibz/ui/core/forms/dropdowns/split_dropdown.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/nav_dropdown.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/nav_link_link.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/nav_link_span.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/link.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/nav.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/navbar.rb +2 -2
- data/lib/ui_bibz/ui/core/navigations/toolbar.rb +1 -1
- data/lib/ui_bibz/ui/core/notifications/components/alert_header.rb +1 -1
- data/lib/ui_bibz/ui/core/notifications/components/toast_header.rb +5 -5
- data/lib/ui_bibz/ui/core/notifications/toast.rb +1 -1
- data/lib/ui_bibz/ui/core/windows/components/modal_header.rb +1 -1
- data/lib/ui_bibz/ui/core/windows/modal.rb +2 -2
- data/lib/ui_bibz/ui/extensions/core/component/popover_extension.rb +6 -6
- data/test/simple_form_test.rb +1 -1
- data/test/ui/core/boxes/card_test.rb +2 -2
- data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
- data/test/ui/core/forms/buttons/button_link_test.rb +1 -1
- data/test/ui/core/forms/buttons/button_test.rb +6 -6
- data/test/ui/core/forms/dropdowns/dropdown_test.rb +5 -5
- data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
- data/test/ui/core/forms/surrounds/surround_field_test.rb +1 -1
- data/test/ui/core/navigations/link_test.rb +1 -1
- data/test/ui/core/navigations/nav_test.rb +2 -2
- data/test/ui/core/navigations/navbar_test.rb +4 -4
- data/test/ui/core/navigations/tab_group_test.rb +5 -5
- data/test/ui/core/navigations/toolbar_test.rb +1 -1
- data/test/ui/core/notifications/alert_test.rb +1 -1
- data/test/ui/core/notifications/spinner_test.rb +1 -1
- data/test/ui/core/notifications/toast_test.rb +1 -1
- data/test/ui/core/windows/modal_test.rb +2 -2
- data/test/ui/ux/containers/panel_test.rb +4 -4
- data/ui_bibz.gemspec +2 -3
- metadata +10 -22
- data/.github/workflows/ruby.yml +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ccac331a44d9938a4f9ea2787c60f399837b32fa9b841c1b4aa586b67aaa82a
|
4
|
+
data.tar.gz: a8acf6abd32f1e4c2e878e618a3e31fc56f61d349b7c835ef9c5339563339d23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 398d31ea38d03b1d8c7c5f2a66760fd806752a6a038d43c0a23268e62e888a53a8c4ad90be65c81af6d6ecf203f4d4e3f63953cc79e43dd3a0d6f314daa2dc5a
|
7
|
+
data.tar.gz: c0da50a80beb20a6368a7e667e8735125db964fc8ca1de5d5fe101237835b7f7e51e1c85c74d6c52f266ae8684122d2b690d194d65cd10fc1a6f6802b51d8bf4
|
@@ -0,0 +1,28 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on: [push]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v2
|
12
|
+
|
13
|
+
- name: Set up Ruby with .ruby-version file
|
14
|
+
uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
bundler-cache: true
|
17
|
+
|
18
|
+
- name: Install gems
|
19
|
+
run: |
|
20
|
+
gem install bundler
|
21
|
+
bundle install --jobs 4 --retry 3
|
22
|
+
|
23
|
+
- name: Test with Rake
|
24
|
+
uses: paambaati/codeclimate-action@v2.7.5
|
25
|
+
env:
|
26
|
+
CC_TEST_REPORTER_ID: 7e50558afc7a861280e3194a765a159e9ea5bdd22d2ebe6c13e5e23fe914c66b
|
27
|
+
with:
|
28
|
+
coverageCommand: bundle exec rake
|
@@ -0,0 +1,13 @@
|
|
1
|
+
name: Dependencies Checker
|
2
|
+
|
3
|
+
on: pull_request
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
audit:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
steps:
|
9
|
+
- uses: actions/checkout@v2
|
10
|
+
- name: 'Bundler Audit'
|
11
|
+
uses: andrewmcodes/bundler-audit-action@main
|
12
|
+
env:
|
13
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ui_bibz (3.0.0.
|
5
|
-
rails (~> 6.0.3, >= 6.0.3.2)
|
4
|
+
ui_bibz (3.0.0.beta5)
|
6
5
|
will-paginate-i18n
|
7
|
-
will_paginate (~> 3.
|
6
|
+
will_paginate (~> 3.3.0)
|
8
7
|
will_paginate-bootstrap4
|
9
8
|
|
10
9
|
GEM
|
@@ -65,16 +64,14 @@ GEM
|
|
65
64
|
minitest (~> 5.1)
|
66
65
|
tzinfo (~> 1.1)
|
67
66
|
zeitwerk (~> 2.2, >= 2.2.2)
|
68
|
-
ast (2.4.
|
67
|
+
ast (2.4.2)
|
69
68
|
awesome_print (1.8.0)
|
70
69
|
builder (3.2.4)
|
71
70
|
byebug (11.1.3)
|
72
71
|
childprocess (4.0.0)
|
73
|
-
|
74
|
-
simplecov
|
75
|
-
concurrent-ruby (1.1.7)
|
72
|
+
concurrent-ruby (1.1.8)
|
76
73
|
crass (1.0.6)
|
77
|
-
docile (1.3.
|
74
|
+
docile (1.3.5)
|
78
75
|
erubi (1.10.0)
|
79
76
|
erubis (2.7.0)
|
80
77
|
factory_bot (4.11.1)
|
@@ -98,14 +95,14 @@ GEM
|
|
98
95
|
haml (>= 4.0, < 6)
|
99
96
|
nokogiri (>= 1.6.0)
|
100
97
|
ruby_parser (~> 3.5)
|
101
|
-
i18n (1.8.
|
98
|
+
i18n (1.8.7)
|
102
99
|
concurrent-ruby (~> 1.0)
|
103
100
|
iniparse (1.5.0)
|
104
101
|
jquery-rails (4.4.0)
|
105
102
|
rails-dom-testing (>= 1, < 3)
|
106
103
|
railties (>= 4.2.0)
|
107
104
|
thor (>= 0.14, < 2.0)
|
108
|
-
loofah (2.
|
105
|
+
loofah (2.9.0)
|
109
106
|
crass (~> 1.0.2)
|
110
107
|
nokogiri (>= 1.5.9)
|
111
108
|
mail (2.7.1)
|
@@ -115,17 +112,19 @@ GEM
|
|
115
112
|
method_source (1.0.0)
|
116
113
|
mimemagic (0.3.5)
|
117
114
|
mini_mime (1.0.2)
|
118
|
-
mini_portile2 (2.
|
119
|
-
minitest (5.14.
|
115
|
+
mini_portile2 (2.5.0)
|
116
|
+
minitest (5.14.3)
|
120
117
|
nio4r (2.5.4)
|
121
|
-
nokogiri (1.
|
122
|
-
mini_portile2 (~> 2.
|
118
|
+
nokogiri (1.11.1)
|
119
|
+
mini_portile2 (~> 2.5.0)
|
120
|
+
racc (~> 1.4)
|
123
121
|
overcommit (0.57.0)
|
124
122
|
childprocess (>= 0.6.3, < 5)
|
125
123
|
iniparse (~> 1.4)
|
126
124
|
parallel (1.20.1)
|
127
|
-
parser (
|
125
|
+
parser (3.0.0.0)
|
128
126
|
ast (~> 2.4.1)
|
127
|
+
racc (1.5.2)
|
129
128
|
rack (2.2.3)
|
130
129
|
rack-test (1.1.0)
|
131
130
|
rack (>= 1.0, < 3)
|
@@ -156,37 +155,37 @@ GEM
|
|
156
155
|
rake (>= 0.8.7)
|
157
156
|
thor (>= 0.20.3, < 2.0)
|
158
157
|
rainbow (3.0.0)
|
159
|
-
rake (13.0.
|
160
|
-
regexp_parser (2.0.
|
158
|
+
rake (13.0.3)
|
159
|
+
regexp_parser (2.0.3)
|
161
160
|
rexml (3.2.4)
|
162
|
-
rubocop (1.
|
161
|
+
rubocop (1.8.1)
|
163
162
|
parallel (~> 1.10)
|
164
|
-
parser (>=
|
163
|
+
parser (>= 3.0.0.0)
|
165
164
|
rainbow (>= 2.2.2, < 4.0)
|
166
|
-
regexp_parser (>= 1.8)
|
165
|
+
regexp_parser (>= 1.8, < 3.0)
|
167
166
|
rexml
|
168
|
-
rubocop-ast (>= 1.
|
167
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
169
168
|
ruby-progressbar (~> 1.7)
|
170
|
-
unicode-display_width (>= 1.4.0, <
|
171
|
-
rubocop-ast (1.
|
169
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
170
|
+
rubocop-ast (1.4.1)
|
172
171
|
parser (>= 2.7.1.5)
|
173
|
-
rubocop-minitest (0.10.
|
174
|
-
rubocop (>= 0.87)
|
175
|
-
rubocop-performance (1.9.
|
172
|
+
rubocop-minitest (0.10.3)
|
173
|
+
rubocop (>= 0.87, < 2.0)
|
174
|
+
rubocop-performance (1.9.2)
|
176
175
|
rubocop (>= 0.90.0, < 2.0)
|
177
176
|
rubocop-ast (>= 0.4.0)
|
178
|
-
rubocop-rails (2.
|
177
|
+
rubocop-rails (2.9.1)
|
179
178
|
activesupport (>= 4.2.0)
|
180
179
|
rack (>= 1.1)
|
181
|
-
rubocop (>= 0.
|
182
|
-
ruby-progressbar (1.
|
183
|
-
ruby_parser (3.15.
|
180
|
+
rubocop (>= 0.90.0, < 2.0)
|
181
|
+
ruby-progressbar (1.11.0)
|
182
|
+
ruby_parser (3.15.1)
|
184
183
|
sexp_processor (~> 4.9)
|
185
|
-
sexp_processor (4.15.
|
184
|
+
sexp_processor (4.15.2)
|
186
185
|
simple_form (5.0.3)
|
187
186
|
actionpack (>= 5.0)
|
188
187
|
activemodel (>= 5.0)
|
189
|
-
simplecov (0.
|
188
|
+
simplecov (0.21.2)
|
190
189
|
docile (~> 1.1)
|
191
190
|
simplecov-html (~> 0.11)
|
192
191
|
simplecov_json_formatter (~> 0.1)
|
@@ -201,17 +200,17 @@ GEM
|
|
201
200
|
sprockets (>= 3.0.0)
|
202
201
|
sqlite3 (1.4.2)
|
203
202
|
temple (0.8.2)
|
204
|
-
thor (1.0
|
203
|
+
thor (1.1.0)
|
205
204
|
thread_safe (0.3.6)
|
206
205
|
tilt (2.0.10)
|
207
|
-
tzinfo (1.2.
|
206
|
+
tzinfo (1.2.9)
|
208
207
|
thread_safe (~> 0.1)
|
209
|
-
unicode-display_width (
|
208
|
+
unicode-display_width (2.0.0)
|
210
209
|
websocket-driver (0.7.3)
|
211
210
|
websocket-extensions (>= 0.1.0)
|
212
211
|
websocket-extensions (0.1.5)
|
213
212
|
will-paginate-i18n (0.1.15)
|
214
|
-
will_paginate (3.
|
213
|
+
will_paginate (3.3.0)
|
215
214
|
will_paginate-bootstrap4 (0.2.2)
|
216
215
|
will_paginate (~> 3.0, >= 3.0.0)
|
217
216
|
zeitwerk (2.4.2)
|
@@ -222,12 +221,12 @@ PLATFORMS
|
|
222
221
|
DEPENDENCIES
|
223
222
|
awesome_print
|
224
223
|
byebug
|
225
|
-
codeclimate-test-reporter
|
226
224
|
factory_bot_rails (~> 4.0)
|
227
225
|
haml-rails
|
228
226
|
jquery-rails (>= 3.1.0)
|
229
227
|
minitest
|
230
228
|
overcommit
|
229
|
+
rails (~> 6.0.3, >= 6.0.3.2)
|
231
230
|
rubocop
|
232
231
|
rubocop-ast
|
233
232
|
rubocop-minitest
|
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|

|
2
2
|
|
3
|
-
[](
|
4
|
-
[](https://badge.fury.io/rb/ui_bibz)
|
4
|
+
[](https://codeclimate.com/github/thooams/ui_bibz/maintainability)
|
5
|
+
[](https://codeclimate.com/github/thooams/ui_bibz/test_coverage)
|
6
|
+
[](https://hakiri.io/github/thooams/ui_bibz/main)
|
7
|
+
[](https://github.com/thooams/ui_bibz/actions)
|
8
|
+
[](https://github.com/thooams/chart_bibz/actions)
|
9
|
+
[](http://inch-ci.org/github/thooams/ui_bibz)
|
10
10
|
|
11
11
|
This project rocks and uses MIT-LICENSE.
|
12
12
|
|
@@ -22,7 +22,7 @@ Full documentation is here with bootstrap 5:
|
|
22
22
|
[Ui Bibz v3](http://hummel.link/ui-bibz/)
|
23
23
|
|
24
24
|
Older documentation is here with bootstrap 4:
|
25
|
-
[Ui Bibz v2.5](http://hummel.link/
|
25
|
+
[Ui Bibz v2.5](http://hummel.link/ui-bibz/docs/v2.5/)
|
26
26
|
|
27
27
|
|
28
28
|
## Donate
|
data/lib/ui_bibz/infos.rb
CHANGED
@@ -3,15 +3,15 @@
|
|
3
3
|
module UiBibz
|
4
4
|
NAME = 'Ui Bibz'
|
5
5
|
SLUG = 'ui_bibz'
|
6
|
-
BOOTSTRAP_VERSION = '5.0.0.
|
6
|
+
BOOTSTRAP_VERSION = '5.0.0.beta1'
|
7
7
|
DESCRIPTION = "A Rails Interface Framework using Bootstrap #{BOOTSTRAP_VERSION}."
|
8
8
|
SUMMARY = "Ui Bibz is an Ui Framework that allows you to build an interface very quickly and simply using Bootstrap #{BOOTSTRAP_VERSION}."
|
9
9
|
LICENSE = 'MIT'
|
10
10
|
FONTAWESOME_VERSION = '5.15.1'
|
11
11
|
HOMEPAGE = 'https://hummel.link/ui-bibz/'
|
12
|
-
REPO = 'git+https://github.com/thooams/
|
12
|
+
REPO = 'git+https://github.com/thooams/ui_bibz.git'
|
13
13
|
EMAIL = 'thomas@hummel.link'
|
14
14
|
AUTHOR = 'Thooams [Thomas HUMMEL]'
|
15
|
-
VERSION = '3.0.0.
|
15
|
+
VERSION = '3.0.0.beta5'
|
16
16
|
AUTHORS = ['Thooams'].freeze
|
17
17
|
end
|
@@ -46,7 +46,7 @@ module UiBibz::Ui::Core::Boxes::Components
|
|
46
46
|
# Render html tag
|
47
47
|
def pre_render
|
48
48
|
if options[:collapse]
|
49
|
-
content_tag :div, class: join_classes('collapse', show), id: options[:collapse], "data-parent": "##{options[:parent_collapse]}" do
|
49
|
+
content_tag :div, class: join_classes('collapse', show), id: options[:collapse], "data-bs-parent": "##{options[:parent_collapse]}" do
|
50
50
|
content_tag :div, @items.join.html_safe, html_options
|
51
51
|
end
|
52
52
|
else
|
@@ -83,8 +83,8 @@ module UiBibz::Ui::Core::Forms::Buttons
|
|
83
83
|
def collapse
|
84
84
|
# Must be flat hash not deep hash
|
85
85
|
{
|
86
|
-
"data-toggle": :collapse,
|
87
|
-
"data-target": "##{options[:collapse]}",
|
86
|
+
"data-bs-toggle": :collapse,
|
87
|
+
"data-bs-target": "##{options[:collapse]}",
|
88
88
|
"aria-controls": options[:collapse],
|
89
89
|
"aria-expanded": options[:expand_collapse].nil? ? false : options[:expand_collapse]
|
90
90
|
}
|
@@ -99,7 +99,7 @@ module UiBibz::Ui::Core::Forms::Buttons
|
|
99
99
|
end
|
100
100
|
|
101
101
|
def toggle
|
102
|
-
{ 'data-toggle' => 'button', 'aria-pressed' => false, 'autocomplete' => 'off' }
|
102
|
+
{ 'data-bs-toggle' => 'button', 'aria-pressed' => false, 'autocomplete' => 'off' }
|
103
103
|
end
|
104
104
|
|
105
105
|
def active_html_options
|
@@ -121,7 +121,7 @@ module UiBibz::Ui::Core::Forms::Buttons
|
|
121
121
|
end
|
122
122
|
|
123
123
|
def spinner_html
|
124
|
-
opts = { size: :sm, tag: :span, class: options[:text] == false ? nil : '
|
124
|
+
opts = { size: :sm, tag: :span, class: options[:text] == false ? nil : 'me-2' }
|
125
125
|
opts = opts.merge(options[:spinner]) if options[:spinner].is_a? Hash
|
126
126
|
|
127
127
|
UiBibz::Ui::Core::Notifications::Spinner.new(nil, opts).render
|
@@ -78,7 +78,7 @@ module UiBibz::Ui::Core::Forms::Buttons
|
|
78
78
|
def collapse
|
79
79
|
# Must be flat hash not deep hash
|
80
80
|
{
|
81
|
-
"data-toggle": :collapse,
|
81
|
+
"data-bs-toggle": :collapse,
|
82
82
|
"aria-controls": options[:collapse],
|
83
83
|
"aria-expanded": options[:expand_collaspe].nil? ? false : options[:expand_collaspe]
|
84
84
|
}
|
@@ -31,8 +31,8 @@ module UiBibz::Ui::Core::Forms::Dropdowns
|
|
31
31
|
# * +theme+ - Symbol, defaut: +:dark+
|
32
32
|
# * +position+ - Symbol
|
33
33
|
# (+:up+, +:right+, +:down+, +:left+)
|
34
|
-
# * +alignment+ - Symbol
|
35
|
-
# (+:right)
|
34
|
+
# * +alignment+ - Symbol/Hash - eq. { direction: :start, size: :lg }
|
35
|
+
# (+:left+, +:right+, +:start+, +:end+)
|
36
36
|
#
|
37
37
|
# ==== Signatures
|
38
38
|
#
|
@@ -119,9 +119,9 @@ module UiBibz::Ui::Core::Forms::Dropdowns
|
|
119
119
|
def button_html
|
120
120
|
html_button = options[:html_button] || {}
|
121
121
|
if options[:tag] == :a
|
122
|
-
content_tag dropdown_tag, button_content, { class: join_classes('btn', button_status, state, size, 'dropdown-toggle'), role: 'button', 'data-toggle' => 'dropdown', 'aria-
|
122
|
+
content_tag dropdown_tag, button_content, { class: join_classes('btn', button_status, state, size, 'dropdown-toggle'), role: 'button', 'data-bs-toggle' => 'dropdown', 'aria-expanded' => false, 'id' => id }.merge(html_button)
|
123
123
|
else
|
124
|
-
content_tag dropdown_tag, button_content, { class: join_classes('btn', button_status, state, size, 'dropdown-toggle'), type: 'button', 'data-toggle' => 'dropdown', 'aria-
|
124
|
+
content_tag dropdown_tag, button_content, { class: join_classes('btn', button_status, state, size, 'dropdown-toggle'), type: 'button', 'data-bs-toggle' => 'dropdown', 'aria-expanded' => false, 'id' => id }.merge(html_button)
|
125
125
|
end
|
126
126
|
end
|
127
127
|
|
@@ -134,11 +134,17 @@ module UiBibz::Ui::Core::Forms::Dropdowns
|
|
134
134
|
end
|
135
135
|
|
136
136
|
def alignment
|
137
|
-
|
137
|
+
return nil if @options[:alignment].nil?
|
138
|
+
|
139
|
+
if @options[:alignment].is_a? Hash
|
140
|
+
['dropdown-menu', @options[:alignment][:size], match_direction[@options[:alignment][:direction]]].join('-')
|
141
|
+
else
|
142
|
+
"dropdown-menu-#{match_direction[@options[:alignment]]}"
|
143
|
+
end
|
138
144
|
end
|
139
145
|
|
140
146
|
def position
|
141
|
-
"drop#{@options[:position] ||
|
147
|
+
"drop#{match_direction[@options[:position] || :down]}"
|
142
148
|
end
|
143
149
|
|
144
150
|
def open
|
@@ -173,5 +179,17 @@ module UiBibz::Ui::Core::Forms::Dropdowns
|
|
173
179
|
def theme
|
174
180
|
'dropdown-menu-dark' if @options[:theme]
|
175
181
|
end
|
182
|
+
|
183
|
+
# Match end and start directions
|
184
|
+
def match_direction
|
185
|
+
{
|
186
|
+
up: 'up',
|
187
|
+
right: 'end',
|
188
|
+
down: 'down',
|
189
|
+
left: 'start',
|
190
|
+
start: 'start',
|
191
|
+
end: 'end'
|
192
|
+
}.with_indifferent_access
|
193
|
+
end
|
176
194
|
end
|
177
195
|
end
|
@@ -78,7 +78,7 @@ module UiBibz::Ui::Core::Forms::Dropdowns
|
|
78
78
|
|
79
79
|
def split_html
|
80
80
|
content_tag :button, split_content, class: split_classes, type: 'button',
|
81
|
-
'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false
|
81
|
+
'data-bs-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false
|
82
82
|
end
|
83
83
|
|
84
84
|
def split_content
|
@@ -53,7 +53,7 @@ module UiBibz::Ui::Core::Forms::Numbers
|
|
53
53
|
sf.text_field formula_field_name, nil, text_field_formula_html_options
|
54
54
|
sf.addon '=', class: 'formula-field-sign'
|
55
55
|
sf.text_field content, nil, text_field_input_html_options
|
56
|
-
sf.addon formula_field_alert_glyph, { class: 'formula-field-alert' }, { data: { toggle: 'tooltip' } }
|
56
|
+
sf.addon formula_field_alert_glyph, { class: 'formula-field-alert' }, { data: { "bs-toggle": 'tooltip' } }
|
57
57
|
sf.addon @options[:prepend] unless @options[:prepend].nil?
|
58
58
|
end.render
|
59
59
|
end
|
@@ -60,7 +60,7 @@ module UiBibz::Ui::Core::Navigations
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def link_html
|
63
|
-
content_tag :a, button_content, class: join_classes(size, state, 'dropdown-toggle', 'nav-link'), href: '#', 'data-toggle' => 'dropdown', 'aria-expanded' => false
|
63
|
+
content_tag :a, button_content, class: join_classes(size, state, 'dropdown-toggle', 'nav-link'), href: '#', 'data-bs-toggle' => 'dropdown', 'aria-expanded' => false
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
@@ -40,7 +40,7 @@ module UiBibz::Ui::Core::Navigations
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def component_html_options
|
43
|
-
html_tag_base = { 'data-toggle' => 'tab', role: 'tab' }
|
43
|
+
html_tag_base = { 'data-bs-toggle' => 'tab', role: 'tab' }
|
44
44
|
case options[:nav_type]
|
45
45
|
when 'nav-tabs'
|
46
46
|
html_tag_base
|