plutonium 0.15.10 → 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: '09172a90865acf0fb8b929464cd3314470ad63ec7bc9dbfd2a5e132f1147ed3a'
4
- data.tar.gz: a652d15c85664a3ad4ae371988b19cc8a3a3846500d53e1b8ebe21ca0e82c77b
3
+ metadata.gz: 1a2d034ec1e776933ca9f8c1737968575728c25dc3a7fb587b32dd6c5228cf4f
4
+ data.tar.gz: 0f994eb1f8657df2f8fe0d0c6f7f04fd7ee283340428661fef2c80ba1b3512c5
5
5
  SHA512:
6
- metadata.gz: b04ba22b0c86f7de0e2319f9a984e3d9adc4d35b15f2bfaa227b6525a1e1912627badfa09bbb4c6726d2adc7fae29c6287912056bc5844d5a28ce273e0a07a0d
7
- data.tar.gz: 85d376dfe9514b215bfad51a7bf848a543bd37f6afb4af971b2c9da4d69ea8a4075dfec62dafad39f571b03e782348dd90287bb82d5389b6781ddc13509d8d4b
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