plutonium 0.15.11 → 0.15.12

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: 02f41dc7dbc1acba39129993dfb099f4239793bc554fc1394808994d26cafa3b
4
- data.tar.gz: 76a3998821276f287638849e0db4333a28b693531e491b438f84da0462c8347a
3
+ metadata.gz: 1a2d034ec1e776933ca9f8c1737968575728c25dc3a7fb587b32dd6c5228cf4f
4
+ data.tar.gz: 0f994eb1f8657df2f8fe0d0c6f7f04fd7ee283340428661fef2c80ba1b3512c5
5
5
  SHA512:
6
- metadata.gz: d3a2fe33ca3ea7af06ead8067a0b806282f9103947bf85faa67bd7a6df069bbfce9e49d00c66faae7796e4aa4eecb9619d484c6322ab439d49f330991c60787d
7
- data.tar.gz: c089b043c6b74bc0fa1e889bd87d7fecfb3636625b26470df0a262467764f75ecb40a33ad3c1487976c58df0e9666ba38742c3ecb21f3bf3dfdeb693e55c1e0d
6
+ metadata.gz: ff981ad9ed022bee850d739e62735c1b2c9e245faddb2e4bbb6f1f58ef80078817b6cb45fba0c6029c2c231185e551566206dfbefed6543517934c5493c22946
7
+ data.tar.gz: 5ccde2c6d8903aad15afe8d0b968f3a14f71e005302dcb4b772f39250fd86e27d92445be58a034f4f906535767b76aca6a6ebcce1a671c6ee4a9b9d326874688
@@ -3561,7 +3561,6 @@
3561
3561
  window.Dismiss = Dismiss;
3562
3562
  window.initDismisses = initDismisses;
3563
3563
  }
3564
- var dismiss_default = Dismiss;
3565
3564
 
3566
3565
  // node_modules/@popperjs/core/lib/enums.js
3567
3566
  var top = "top";
@@ -7138,18 +7137,14 @@
7138
7137
 
7139
7138
  // src/js/controllers/resource_dismiss_controller.js
7140
7139
  var resource_dismiss_controller_default = class extends Controller {
7141
- static targets = ["trigger", "target"];
7142
7140
  static values = {
7143
7141
  after: Number
7144
7142
  };
7145
7143
  connect() {
7146
7144
  console.log(`resource-dismiss connected: ${this.element}`);
7147
- this.dismiss = new dismiss_default(this.targetTarget, this.triggerTarget);
7148
- console.log(this.hasAfterValue);
7149
- console.log(this.afterValue);
7150
7145
  if (this.hasAfterValue && this.afterValue > 0) {
7151
7146
  this.autoDismissTimeout = setTimeout(() => {
7152
- this.hide();
7147
+ this.dismiss();
7153
7148
  this.autoDismissTimeout = null;
7154
7149
  }, this.afterValue);
7155
7150
  }
@@ -7157,11 +7152,10 @@
7157
7152
  disconnect() {
7158
7153
  if (this.autoDismissTimeout)
7159
7154
  clearTimeout(this.autoDismissTimeout);
7160
- this.dismiss = null;
7161
7155
  this.autoDismissTimeout = null;
7162
7156
  }
7163
- hide() {
7164
- this.dismiss.hide();
7157
+ dismiss() {
7158
+ this.element.remove();
7165
7159
  }
7166
7160
  };
7167
7161