plutonium 0.15.15 → 0.15.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/plutonium.js +9 -9
- data/app/assets/plutonium.js.map +2 -2
- data/app/assets/plutonium.min.js +1 -1
- data/app/assets/plutonium.min.js.map +2 -2
- data/app/views/plutonium/_resource_header.html.erb +1 -1
- data/lib/generators/pu/gem/state_machines/state_machines_generator.rb +20 -0
- data/lib/plutonium/interaction/base.rb +20 -9
- data/lib/plutonium/resource/controllers/interactive_actions.rb +3 -3
- data/lib/plutonium/ui/color_mode_selector.rb +1 -1
- data/lib/plutonium/ui/component/methods.rb +1 -0
- data/lib/plutonium/ui/display/resource.rb +1 -1
- data/lib/plutonium/ui/form/concerns/renders_nested_resource_fields.rb +4 -4
- data/lib/plutonium/ui/form/query.rb +1 -1
- data/lib/plutonium/ui/form/resource.rb +2 -2
- data/lib/plutonium/ui/layout/base.rb +1 -1
- data/lib/plutonium/ui/layout/header.rb +3 -3
- data/lib/plutonium/ui/layout/sidebar.rb +0 -2
- data/lib/plutonium/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- data/src/js/controllers/header_controller.js +9 -9
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a19b3d772cd65c45437466aab60afeb70d235bac9c2da42daf4153a3cefec7e0
|
4
|
+
data.tar.gz: d07fd148541e1a8b04db4da812552d60ee0070b62dcd6cc56df8adf4dc67e6c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ad497ecf8b3e56fab630b2ac3e6388d26a75ed784cec0fa5275f5307062f3a20916df91ff053d061b5cab8b31c51d677e30df633ea838849731812f6e67333d
|
7
|
+
data.tar.gz: 8c4088f28c64b474217bcbe2e71cf73c522b75486573a05b999a486cf1eeaf788508f53754dbf537651c354ef8fb8a24e01f60b7f3acadbbcd8fe80591df7ad1
|
data/app/assets/plutonium.js
CHANGED
@@ -2650,7 +2650,7 @@
|
|
2650
2650
|
|
2651
2651
|
// src/js/controllers/header_controller.js
|
2652
2652
|
var header_controller_default = class extends Controller {
|
2653
|
-
static targets = ["
|
2653
|
+
static targets = ["openIcon", "closeIcon"];
|
2654
2654
|
static outlets = ["sidebar"];
|
2655
2655
|
static values = {
|
2656
2656
|
placement: { type: String, default: "left" },
|
@@ -2695,10 +2695,10 @@
|
|
2695
2695
|
} else {
|
2696
2696
|
this.#togglePlacementClasses(this.placementValue, true);
|
2697
2697
|
}
|
2698
|
-
this.
|
2699
|
-
this.
|
2700
|
-
this.
|
2701
|
-
this.
|
2698
|
+
this.openIconTarget.classList.add("hidden");
|
2699
|
+
this.openIconTarget.setAttribute("aria-hidden", "true");
|
2700
|
+
this.closeIconTarget.classList.remove("hidden");
|
2701
|
+
this.closeIconTarget.setAttribute("aria-hidden", "false");
|
2702
2702
|
this.sidebarOutlet.element.setAttribute("aria-modal", "true");
|
2703
2703
|
this.sidebarOutlet.element.setAttribute("role", "dialog");
|
2704
2704
|
this.sidebarOutlet.element.removeAttribute("aria-hidden");
|
@@ -2717,10 +2717,10 @@
|
|
2717
2717
|
} else {
|
2718
2718
|
this.#togglePlacementClasses(this.placementValue, false);
|
2719
2719
|
}
|
2720
|
-
this.
|
2721
|
-
this.
|
2722
|
-
this.
|
2723
|
-
this.
|
2720
|
+
this.openIconTarget.classList.remove("hidden");
|
2721
|
+
this.openIconTarget.setAttribute("aria-hidden", "false");
|
2722
|
+
this.closeIconTarget.classList.add("hidden");
|
2723
|
+
this.closeIconTarget.setAttribute("aria-hidden", "true");
|
2724
2724
|
this.sidebarOutlet.element.setAttribute("aria-hidden", "true");
|
2725
2725
|
this.sidebarOutlet.element.removeAttribute("aria-modal");
|
2726
2726
|
this.sidebarOutlet.element.removeAttribute("role");
|