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 +4 -4
- data/app/assets/plutonium.js +3 -9
- data/app/assets/plutonium.js.map +2 -2
- data/app/assets/plutonium.min.js +5 -5
- data/app/assets/plutonium.min.js.map +3 -3
- data/app/views/plutonium/_flash_alerts.html.erb +1 -2
- data/app/views/plutonium/_flash_toasts.html.erb +1 -2
- data/lib/plutonium/ui/dyna_frame/host.rb +1 -1
- data/lib/plutonium/version.rb +1 -1
- data/src/js/controllers/resource_dismiss_controller.js +3 -13
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a2d034ec1e776933ca9f8c1737968575728c25dc3a7fb587b32dd6c5228cf4f
|
4
|
+
data.tar.gz: 0f994eb1f8657df2f8fe0d0c6f7f04fd7ee283340428661fef2c80ba1b3512c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff981ad9ed022bee850d739e62735c1b2c9e245faddb2e4bbb6f1f58ef80078817b6cb45fba0c6029c2c231185e551566206dfbefed6543517934c5493c22946
|
7
|
+
data.tar.gz: 5ccde2c6d8903aad15afe8d0b968f3a14f71e005302dcb4b772f39250fd86e27d92445be58a034f4f906535767b76aca6a6ebcce1a671c6ee4a9b9d326874688
|
data/app/assets/plutonium.js
CHANGED
@@ -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.
|
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
|
-
|
7164
|
-
this.
|
7157
|
+
dismiss() {
|
7158
|
+
this.element.remove();
|
7165
7159
|
}
|
7166
7160
|
};
|
7167
7161
|
|