plutonium 0.19.12 → 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.
@@ -24317,8 +24317,24 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e4.byteLength}`), e4.tif
24317
24317
  var sidebar_controller_default = class extends Controller {
24318
24318
  };
24319
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
+
24320
24335
  // src/js/controllers/register_controllers.js
24321
24336
  function register_controllers_default(application2) {
24337
+ application2.register("password-visibility", password_visibility_controller_default);
24322
24338
  application2.register("sidebar", sidebar_controller_default);
24323
24339
  application2.register("resource-header", resource_header_controller_default);
24324
24340
  application2.register("nested-resource-form-fields", nested_resource_form_fields_controller_default);