@gustavo-valsechi/client 1.4.121 → 1.4.122
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.
|
@@ -59,6 +59,8 @@ function InputSelectOption(props) {
|
|
|
59
59
|
const value2 = ((_a = Object.values(data || {})) == null ? void 0 : _a[0]) || "";
|
|
60
60
|
const normalize = (text) => import_lodash.default.deburr(text == null ? void 0 : text.toLowerCase());
|
|
61
61
|
if (import_lodash.default.isString(value2)) return import_lodash.default.includes(normalize(value2), normalize(filter));
|
|
62
|
+
console.log(typeof value2);
|
|
63
|
+
console.log(value2);
|
|
62
64
|
console.log(value2 == null ? void 0 : value2.textContent);
|
|
63
65
|
return import_lodash.default.includes(normalize(value2 == null ? void 0 : value2.textContent), normalize(filter));
|
|
64
66
|
});
|
|
@@ -26,6 +26,8 @@ function InputSelectOption(props) {
|
|
|
26
26
|
const value2 = ((_a = Object.values(data || {})) == null ? void 0 : _a[0]) || "";
|
|
27
27
|
const normalize = (text) => _.deburr(text == null ? void 0 : text.toLowerCase());
|
|
28
28
|
if (_.isString(value2)) return _.includes(normalize(value2), normalize(filter));
|
|
29
|
+
console.log(typeof value2);
|
|
30
|
+
console.log(value2);
|
|
29
31
|
console.log(value2 == null ? void 0 : value2.textContent);
|
|
30
32
|
return _.includes(normalize(value2 == null ? void 0 : value2.textContent), normalize(filter));
|
|
31
33
|
});
|
|
@@ -60,8 +60,9 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
60
60
|
element.style.zIndex = "-1";
|
|
61
61
|
insideMemory.splice(import_lodash.default.findIndex(insideMemory, (i) => i === index), 1);
|
|
62
62
|
};
|
|
63
|
-
const open = (target, index
|
|
63
|
+
const open = (target, index) => {
|
|
64
64
|
const element = containerRef.current[index];
|
|
65
|
+
const coords = getCoords(target.ref.current);
|
|
65
66
|
element.style.top = `${coords.top}px`;
|
|
66
67
|
element.style.left = `${coords.left}px`;
|
|
67
68
|
element.style.opacity = "1";
|
|
@@ -115,12 +116,13 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
115
116
|
const targetElement = containerRef.current[index];
|
|
116
117
|
element.addEventListener("click", () => {
|
|
117
118
|
const styles = window.getComputedStyle(targetElement);
|
|
119
|
+
console.log("opacity", styles.opacity);
|
|
120
|
+
console.log("target", target);
|
|
118
121
|
if (styles.opacity === "1") {
|
|
119
|
-
|
|
122
|
+
blur(index);
|
|
120
123
|
return;
|
|
121
124
|
}
|
|
122
|
-
|
|
123
|
-
open(target, index, coords);
|
|
125
|
+
open(target, index);
|
|
124
126
|
});
|
|
125
127
|
element.addEventListener("resize", () => {
|
|
126
128
|
import_lodash.default.forEach(containerRef.current, (elementRef) => blur(index));
|
|
@@ -26,8 +26,9 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
26
26
|
element.style.zIndex = "-1";
|
|
27
27
|
insideMemory.splice(_.findIndex(insideMemory, (i) => i === index), 1);
|
|
28
28
|
};
|
|
29
|
-
const open = (target, index
|
|
29
|
+
const open = (target, index) => {
|
|
30
30
|
const element = containerRef.current[index];
|
|
31
|
+
const coords = getCoords(target.ref.current);
|
|
31
32
|
element.style.top = `${coords.top}px`;
|
|
32
33
|
element.style.left = `${coords.left}px`;
|
|
33
34
|
element.style.opacity = "1";
|
|
@@ -81,12 +82,13 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
81
82
|
const targetElement = containerRef.current[index];
|
|
82
83
|
element.addEventListener("click", () => {
|
|
83
84
|
const styles = window.getComputedStyle(targetElement);
|
|
85
|
+
console.log("opacity", styles.opacity);
|
|
86
|
+
console.log("target", target);
|
|
84
87
|
if (styles.opacity === "1") {
|
|
85
|
-
|
|
88
|
+
blur(index);
|
|
86
89
|
return;
|
|
87
90
|
}
|
|
88
|
-
|
|
89
|
-
open(target, index, coords);
|
|
91
|
+
open(target, index);
|
|
90
92
|
});
|
|
91
93
|
element.addEventListener("resize", () => {
|
|
92
94
|
_.forEach(containerRef.current, (elementRef) => blur(index));
|