plutonium 0.19.11 → 0.19.13

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.
@@ -24313,8 +24313,29 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e4.byteLength}`), e4.tif
24313
24313
  }
24314
24314
  };
24315
24315
 
24316
+ // src/js/controllers/sidebar_controller.js
24317
+ var sidebar_controller_default = class extends Controller {
24318
+ };
24319
+
24320
+ // src/js/controllers/password_visibility_controller.js
24321
+ var password_visibility_controller_default = class extends Controller {
24322
+ static targets = ["password", "checkbox"];
24323
+ connect() {
24324
+ this.checkboxTarget.checked = false;
24325
+ }
24326
+ toggle() {
24327
+ if (this.passwordTarget.type == "password") {
24328
+ this.passwordTargets.forEach((passwordTarget) => passwordTarget.type = "text");
24329
+ } else {
24330
+ this.passwordTargets.forEach((passwordTarget) => passwordTarget.type = "password");
24331
+ }
24332
+ }
24333
+ };
24334
+
24316
24335
  // src/js/controllers/register_controllers.js
24317
24336
  function register_controllers_default(application2) {
24337
+ application2.register("password-visibility", password_visibility_controller_default);
24338
+ application2.register("sidebar", sidebar_controller_default);
24318
24339
  application2.register("resource-header", resource_header_controller_default);
24319
24340
  application2.register("nested-resource-form-fields", nested_resource_form_fields_controller_default);
24320
24341
  application2.register("form", form_controller_default);