@sysvale/cuida 3.65.0 → 3.65.1
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.
- package/dist/@sysvale/cuida.es.js +10 -3
- package/dist/@sysvale/cuida.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -30521,6 +30521,11 @@ const Rre = {
|
|
|
30521
30521
|
default: "Nova funcionalidade!",
|
|
30522
30522
|
validator: (t) => t.length <= 22
|
|
30523
30523
|
},
|
|
30524
|
+
startOnScroll: {
|
|
30525
|
+
type: Boolean,
|
|
30526
|
+
default: !1,
|
|
30527
|
+
required: !1
|
|
30528
|
+
},
|
|
30524
30529
|
url: {
|
|
30525
30530
|
type: String,
|
|
30526
30531
|
default: "",
|
|
@@ -30556,11 +30561,13 @@ const Rre = {
|
|
|
30556
30561
|
}
|
|
30557
30562
|
},
|
|
30558
30563
|
mounted() {
|
|
30559
|
-
this.id = `floating-assistant$-${this._uid}`, this.pulsarId = `floating-assistant-pulsar$-${this._uid}`, this.containerId = `floating-assistant-container$-${this._uid}`, window.addEventListener("scroll", this.startAnimation,
|
|
30564
|
+
this.id = `floating-assistant$-${this._uid}`, this.pulsarId = `floating-assistant-pulsar$-${this._uid}`, this.containerId = `floating-assistant-container$-${this._uid}`, this.startOnScroll ? window.addEventListener("scroll", this.startAnimation) : window.addEventListener("load", this.startAnimation);
|
|
30560
30565
|
},
|
|
30561
30566
|
methods: {
|
|
30562
30567
|
startAnimation() {
|
|
30563
|
-
this.isScrolledIntoView()
|
|
30568
|
+
this.startOnScroll && !this.isScrolledIntoView() || (setTimeout(() => {
|
|
30569
|
+
document.getElementById(this.id).classList.add("animation");
|
|
30570
|
+
}, 1e3), this.startOnScroll && window.removeEventListener("scroll", this.startAnimation));
|
|
30564
30571
|
},
|
|
30565
30572
|
isScrolledIntoView() {
|
|
30566
30573
|
const t = window.scrollY, e = t + window.innerHeight, n = document.getElementById(this.id).getBoundingClientRect();
|
|
@@ -30662,7 +30669,7 @@ function Zre(t, e, n, i, s, r) {
|
|
|
30662
30669
|
])
|
|
30663
30670
|
], 10, Nre);
|
|
30664
30671
|
}
|
|
30665
|
-
const Xre = /* @__PURE__ */ he(Rre, [["render", Zre], ["__scopeId", "data-v-
|
|
30672
|
+
const Xre = /* @__PURE__ */ he(Rre, [["render", Zre], ["__scopeId", "data-v-6b0e1964"]]);
|
|
30666
30673
|
const Yp = {
|
|
30667
30674
|
directives: {
|
|
30668
30675
|
"on-click-outside": vr.directive
|