plutonium 0.15.11 → 0.15.13

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: 0577a5116150fb7b8c44f137d0b1b1067def5269a6118ef3be316493bc14b2ce
4
+ data.tar.gz: 9ae08c63ff07ec729b9b218b442be233294de59d9a84c2d82b485ba384b15e10
5
5
  SHA512:
6
- metadata.gz: d3a2fe33ca3ea7af06ead8067a0b806282f9103947bf85faa67bd7a6df069bbfce9e49d00c66faae7796e4aa4eecb9619d484c6322ab439d49f330991c60787d
7
- data.tar.gz: c089b043c6b74bc0fa1e889bd87d7fecfb3636625b26470df0a262467764f75ecb40a33ad3c1487976c58df0e9666ba38742c3ecb21f3bf3dfdeb693e55c1e0d
6
+ metadata.gz: 8b3ba0a9576dd68001b242af8a7e142349d9c2fb333c5ebe923ba626ba458dca35441f9e6840f68d8d4e4bfba95261ae69c6e7f8b0ac2b290aaeeb19f5630784
7
+ data.tar.gz: ad6a8504cecf29158667dc1acf5ebe83af0da863baf7ad524efe3e2e70c74153d214482f31a6ce860d5e2384f9191def0d95ce3a13dd6c42298a6b317e9f58a3
@@ -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