ariadne_view_components 0.0.52-x86_64-linux → 0.0.53-x86_64-linux
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/CHANGELOG.md +2 -0
- data/app/assets/javascripts/ariadne_view_components.js +1 -1
- data/app/assets/javascripts/ariadne_view_components.js.map +1 -1
- data/app/components/ariadne/options_controller/options_controller.js +3 -1
- data/app/components/ariadne/options_controller/options_controller.ts +4 -1
- data/lib/ariadne/view_components/version.rb +1 -1
- metadata +3 -3
@@ -32,12 +32,14 @@ class OptionsController extends SyncedBooleanAttributesController {
|
|
32
32
|
}
|
33
33
|
optionTargetConnected(element) {
|
34
34
|
const key = __classPrivateFieldGet(this, _OptionsController_instances, "m", _OptionsController_getElementKey).call(this, element);
|
35
|
-
|
35
|
+
const isActive = this.activeOptionsValue[key] || this.doesElementHaveOnAttrs(element);
|
36
|
+
if (isActive) {
|
36
37
|
__classPrivateFieldGet(this, _OptionsController_instances, "m", _OptionsController_activateKey).call(this, key);
|
37
38
|
}
|
38
39
|
else {
|
39
40
|
__classPrivateFieldGet(this, _OptionsController_instances, "m", _OptionsController_deactivateKey).call(this, key);
|
40
41
|
}
|
42
|
+
this.updateAttributesForElement(element, isActive);
|
41
43
|
}
|
42
44
|
getValueForElement(element) {
|
43
45
|
var _a;
|
@@ -53,11 +53,14 @@ export default class OptionsController
|
|
53
53
|
|
54
54
|
optionTargetConnected(element: Element) {
|
55
55
|
const key = this.#getElementKey(element)
|
56
|
-
|
56
|
+
const isActive = this.activeOptionsValue[key] || this.doesElementHaveOnAttrs(element)
|
57
|
+
if (isActive) {
|
57
58
|
this.#activateKey(key)
|
58
59
|
} else {
|
59
60
|
this.#deactivateKey(key)
|
60
61
|
}
|
62
|
+
|
63
|
+
this.updateAttributesForElement(element, isActive)
|
61
64
|
}
|
62
65
|
|
63
66
|
#shouldChangeState(isCurrentlyActive: boolean, wasSelected: boolean) {
|
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.53
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tailwind_merge
|
@@ -342,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
342
342
|
- !ruby/object:Gem::Version
|
343
343
|
version: '0'
|
344
344
|
requirements: []
|
345
|
-
rubygems_version: 3.4.
|
345
|
+
rubygems_version: 3.4.16
|
346
346
|
signing_key:
|
347
347
|
specification_version: 4
|
348
348
|
summary: ViewComponents for the Ariadne Design System
|