web47core 3.2.26 → 3.2.27
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 162eed61ad15d7cbaed5e916e0bf5e731e598d568f8c19e2e6e5cc7e1277d7a5
|
4
|
+
data.tar.gz: d747ed0781deddb5fe61666fa64017024a6e667c3f2f6eed1a45fd72bac61226
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4190457e9fa8455053ff4684c8c9670a04e6eba72c3688a11f986f48441157da143b7a9a17839709e67969efbfe9656d012b101fe0ae0b73e69bfe43d6dff384
|
7
|
+
data.tar.gz: f741ff60d6d5f4f80a5a5268454d89e2fd0886318211b864e40a0394ba9cecfc204f870ac97246cb19537105cb9c08ac8f260f496a2eac1db3db3e32c68315cd
|
@@ -73,8 +73,11 @@ module CoreCardNavItemsHelper
|
|
73
73
|
# @param [String] btn_class - The class of button that should be used, btn-primary is the default
|
74
74
|
# @return HTML - The HTML for the given tag
|
75
75
|
def card_nav_item_link(path, title, icon_name, confirm: nil, method: :get, btn_class: 'btn-primary')
|
76
|
-
data = { method: method }
|
77
|
-
|
76
|
+
data = { method: method, turbo_method: method }
|
77
|
+
if confirm.present?
|
78
|
+
data[:confirm] = confirm
|
79
|
+
data[:turbo_confirm] = confirm
|
80
|
+
end
|
78
81
|
content_tag(:li, class: 'nav-item me-2') do
|
79
82
|
link_to path, class: "#{btn_class} btn nav-link active", data: data do
|
80
83
|
concat(remix_icon(icon_name, classes: ['me-2'], tooltip_text: title))
|
@@ -18,8 +18,11 @@ module CoreDropdownHelper
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def dropdown_item(path, icon_name, action_name, method: :get, confirm: nil, classes: [])
|
21
|
-
data = { method: method }
|
22
|
-
|
21
|
+
data = { method: method, turbo_method: method }
|
22
|
+
if confirm.present?
|
23
|
+
data[:confirm] = confirm
|
24
|
+
data[:turbo_confirm] = confirm
|
25
|
+
end
|
23
26
|
classes << 'dropdown-item'
|
24
27
|
content_tag(:a, class: classes.join(' '), href: path, data: data) do
|
25
28
|
concat(menu_remix_icon(icon_name))
|
@@ -71,7 +71,7 @@ module CoreFloatingActionButtonHelper
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def floating_action_link(path, title, icon_name, confirm: nil, method: :get)
|
74
|
-
data = { confirm: confirm, title: title, method: method }
|
74
|
+
data = { confirm: confirm, turbo_confirm: confirm, title: title, method: method, turbo_method: method }
|
75
75
|
content_tag(:li) do
|
76
76
|
concat(content_tag(:a, class: 'dropdown-item', href: path, data: data) do
|
77
77
|
concat(menu_remix_icon(icon_name))
|
@@ -239,7 +239,7 @@ module CoreLinkHelper
|
|
239
239
|
def delete_link_tag(obj, path, options = {})
|
240
240
|
return unless can? :destroy, obj
|
241
241
|
|
242
|
-
data = { method: :delete }
|
242
|
+
data = { method: :delete, turbo_method: :delete }
|
243
243
|
confirmation_data(options, data, t('links.deletion_confirmation', name: obj.class.to_s.underscore.humanize))
|
244
244
|
link_classes = tooltip_data(options, data, I18n.t('ui_form.actions.delete'))
|
245
245
|
content_tag(:a, href: path, class: link_classes, data: data) do
|
@@ -254,7 +254,7 @@ module CoreLinkHelper
|
|
254
254
|
def delete_button_tag(obj, path, options = {})
|
255
255
|
return unless can? :destroy, obj
|
256
256
|
|
257
|
-
data = { method: :delete }
|
257
|
+
data = { method: :delete, turbo_method: :delete }
|
258
258
|
confirmation_data(options, data, t('links.deletion_confirmation', name: obj.class.to_s.underscore.humanize))
|
259
259
|
link_classes = tooltip_data(options, data)
|
260
260
|
%w[btn red].each { |c| link_classes << c unless link_classes.include?(c) }
|
@@ -445,7 +445,11 @@ module CoreLinkHelper
|
|
445
445
|
#
|
446
446
|
def confirmation_data(options, data, default = nil)
|
447
447
|
confirm = options[:confirm] || options[:confirmation] || default
|
448
|
-
|
448
|
+
if confirm.present?
|
449
|
+
data[:confirm] = confirm
|
450
|
+
data[:turbo_confirm] = confirm
|
451
|
+
end
|
452
|
+
data
|
449
453
|
end
|
450
454
|
|
451
455
|
def tooltip_data(options, data, default = nil)
|
data/lib/web47core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web47core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Schroeder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|