ariadne_view_components 0.0.30-arm64-darwin → 0.0.32-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa132f2c224a9bcfcf2192f77488ab8477d29485571d1e93902e6fb2243de99e
|
4
|
+
data.tar.gz: 06b78e5af5a40c27ddf783be347a73310d1649cd531d02bc49bd7d8d46004b7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 696dadf10a5da7d640e732fd10c16aa74a5f8e3357422dbaa2bbade8e2e2c134881cbdc34b444aa7101506c090f8a350c0e28e5037bda0e19fd50981fe7b30cb
|
7
|
+
data.tar.gz: cc77eace1816a4f8a6f0c3557dfd493bcf385d6b287ab03590d2a57104499d806b268053b0a486133fe11d00ccf566876e47cda8f51bd1097bf9ec0f7a63d4a1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.0.32](https://github.com/yettoapp/ariadne/tree/v0.0.32) (2023-03-21)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.31...v0.0.32)
|
6
|
+
|
7
|
+
## [v0.0.31](https://github.com/yettoapp/ariadne/tree/v0.0.31) (2023-03-21)
|
8
|
+
|
9
|
+
[Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.30...v0.0.31)
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- Fix form attrs [\#172](https://github.com/yettoapp/ariadne/pull/172) ([gjtorikian](https://github.com/gjtorikian))
|
14
|
+
|
3
15
|
## [v0.0.30](https://github.com/yettoapp/ariadne/tree/v0.0.30) (2023-03-08)
|
4
16
|
|
5
17
|
[Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.29...v0.0.30)
|
@@ -10,26 +10,16 @@ module Ariadne
|
|
10
10
|
def ariadne_form_with(model: nil, scope: nil, url: nil, format: nil, classes: "", attributes: {}, **options, &block)
|
11
11
|
options[:class] = class_names(DEFAULT_FORM_CLASSES, options[:class])
|
12
12
|
options[:builder] ||= Ariadne::FormBuilder
|
13
|
-
options[:html]
|
13
|
+
options[:html] = attributes
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
if key_name.start_with?("data-")
|
19
|
-
data[key_name.sub(/^data-/, "").to_sym] = value
|
20
|
-
true
|
21
|
-
else
|
22
|
-
false
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
data[:controller] = if data.fetch(:controller, {}).present?
|
27
|
-
"#{data[:controller]} ariadne-form"
|
15
|
+
data_controller = options[:html].fetch(:"data-controller", "")
|
16
|
+
options[:html][:"data-controller"] = if data_controller.present?
|
17
|
+
"#{data_controller} ariadne-form"
|
28
18
|
else
|
29
19
|
"ariadne-form"
|
30
20
|
end
|
31
21
|
|
32
|
-
form_with(model: model, scope: scope, url: url, format: format,
|
22
|
+
form_with(model: model, scope: scope, url: url, format: format, **options, &block)
|
33
23
|
end
|
34
24
|
end
|
35
25
|
end
|
@@ -41,13 +41,13 @@ module Ariadne
|
|
41
41
|
DEFAULT_CHECKBOX_CLASSES = "focus:ariadne-ring-slate-500 ariadne-h-4 ariadne-w-4 ariadne-text-slate-600 ariadne-border-slate-300 ariadne-rounded"
|
42
42
|
def check_box(object_name, method, options = {}, checked_value = "1", unchecked_value = "0")
|
43
43
|
options[:class] = class_names(DEFAULT_CHECKBOX_CLASSES, options.delete(:classes))
|
44
|
-
super(method, options, checked_value, unchecked_value)
|
44
|
+
super(object_name, method, options, checked_value, unchecked_value)
|
45
45
|
end
|
46
46
|
|
47
47
|
DEFAULT_RADIO_CLASSES = "focus:ariadne-ring-slate-500 ariadne-h-4 ariadne-w-4 ariadne-text-slate-600 ariadne-border-gray-300 ariadne-rounded"
|
48
|
-
def radio_button(method, tag_value, options = {})
|
48
|
+
def radio_button(object_name, method, tag_value, options = {})
|
49
49
|
options[:class] = class_names(DEFAULT_RADIO_CLASSES, options.delete(:classes))
|
50
|
-
super(method, tag_value, **options)
|
50
|
+
super(object_name, method, tag_value, **options)
|
51
51
|
end
|
52
52
|
|
53
53
|
DEFAULT_TEXTAREA_CLASSES = "ariadne-shadow-sm focus:ariadne-ring-slate-500 focus:ariadne-border-slate-500 ariadne-block ariadne-w-full sm:ariadne-text-sm ariadne-border ariadne-border-gray-300 ariadne-rounded-md"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ariadne_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.32
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tailwind_merge
|