ninegrid2 6.163.0 → 6.164.0
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/bundle.cjs.js +21 -16
- package/dist/bundle.esm.js +21 -16
- package/dist/utils/ninegrid.js +23 -18
- package/package.json +1 -1
- package/src/utils/ninegrid.js +23 -18
package/dist/bundle.cjs.js
CHANGED
|
@@ -10729,26 +10729,31 @@ class ninegrid {
|
|
|
10729
10729
|
|
|
10730
10730
|
if (!("shadow" in Element.prototype)) {
|
|
10731
10731
|
Object.defineProperty(Element.prototype, "shadow", {
|
|
10732
|
-
|
|
10733
|
-
console.log(
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10732
|
+
get: function () {
|
|
10733
|
+
console.log("get");
|
|
10734
|
+
//const style = window.getComputedStyle(this);
|
|
10735
|
+
//console.log(this, style.display, style.visibility, style.opacity);
|
|
10736
|
+
return function (selector) {
|
|
10737
|
+
console.log(selector);
|
|
10738
|
+
return "xx";
|
|
10739
|
+
/**
|
|
10740
|
+
let currentElement = this;
|
|
10737
10741
|
|
|
10738
|
-
|
|
10739
|
-
|
|
10742
|
+
while (currentElement) {
|
|
10743
|
+
if (currentElement.matches(selector)) return currentElement;
|
|
10740
10744
|
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10745
|
+
// ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
|
|
10746
|
+
if (currentElement.shadowRoot) {
|
|
10747
|
+
const found = currentElement.shadowRoot.querySelector(selector);
|
|
10748
|
+
if (found) return found;
|
|
10749
|
+
}
|
|
10746
10750
|
|
|
10747
|
-
|
|
10748
|
-
|
|
10751
|
+
currentElement = currentElement.getRootNode()?.host || null; // ✅ Shadow DOM 내부 탐색
|
|
10752
|
+
}
|
|
10749
10753
|
|
|
10750
|
-
|
|
10751
|
-
|
|
10754
|
+
return null; */
|
|
10755
|
+
};
|
|
10756
|
+
}
|
|
10752
10757
|
});
|
|
10753
10758
|
}
|
|
10754
10759
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -10727,26 +10727,31 @@ class ninegrid {
|
|
|
10727
10727
|
|
|
10728
10728
|
if (!("shadow" in Element.prototype)) {
|
|
10729
10729
|
Object.defineProperty(Element.prototype, "shadow", {
|
|
10730
|
-
|
|
10731
|
-
console.log(
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
|
-
|
|
10730
|
+
get: function () {
|
|
10731
|
+
console.log("get");
|
|
10732
|
+
//const style = window.getComputedStyle(this);
|
|
10733
|
+
//console.log(this, style.display, style.visibility, style.opacity);
|
|
10734
|
+
return function (selector) {
|
|
10735
|
+
console.log(selector);
|
|
10736
|
+
return "xx";
|
|
10737
|
+
/**
|
|
10738
|
+
let currentElement = this;
|
|
10735
10739
|
|
|
10736
|
-
|
|
10737
|
-
|
|
10740
|
+
while (currentElement) {
|
|
10741
|
+
if (currentElement.matches(selector)) return currentElement;
|
|
10738
10742
|
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10743
|
+
// ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
|
|
10744
|
+
if (currentElement.shadowRoot) {
|
|
10745
|
+
const found = currentElement.shadowRoot.querySelector(selector);
|
|
10746
|
+
if (found) return found;
|
|
10747
|
+
}
|
|
10744
10748
|
|
|
10745
|
-
|
|
10746
|
-
|
|
10749
|
+
currentElement = currentElement.getRootNode()?.host || null; // ✅ Shadow DOM 내부 탐색
|
|
10750
|
+
}
|
|
10747
10751
|
|
|
10748
|
-
|
|
10749
|
-
|
|
10752
|
+
return null; */
|
|
10753
|
+
};
|
|
10754
|
+
}
|
|
10750
10755
|
});
|
|
10751
10756
|
}
|
|
10752
10757
|
}
|
package/dist/utils/ninegrid.js
CHANGED
|
@@ -23,26 +23,31 @@ export class ninegrid {
|
|
|
23
23
|
|
|
24
24
|
if (!("shadow" in Element.prototype)) {
|
|
25
25
|
Object.defineProperty(Element.prototype, "shadow", {
|
|
26
|
-
|
|
27
|
-
console.log(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
|
|
36
|
-
if (currentElement.shadowRoot) {
|
|
37
|
-
const found = currentElement.shadowRoot.querySelector(selector);
|
|
38
|
-
if (found) return found;
|
|
39
|
-
}
|
|
26
|
+
get: function () {
|
|
27
|
+
console.log("get");
|
|
28
|
+
//const style = window.getComputedStyle(this);
|
|
29
|
+
//console.log(this, style.display, style.visibility, style.opacity);
|
|
30
|
+
return function (selector) {
|
|
31
|
+
console.log(selector);
|
|
32
|
+
return "xx";
|
|
33
|
+
/**
|
|
34
|
+
let currentElement = this;
|
|
40
35
|
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
while (currentElement) {
|
|
37
|
+
if (currentElement.matches(selector)) return currentElement;
|
|
43
38
|
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
// ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
|
|
40
|
+
if (currentElement.shadowRoot) {
|
|
41
|
+
const found = currentElement.shadowRoot.querySelector(selector);
|
|
42
|
+
if (found) return found;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
currentElement = currentElement.getRootNode()?.host || null; // ✅ Shadow DOM 내부 탐색
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return null; */
|
|
49
|
+
};
|
|
50
|
+
}
|
|
46
51
|
});
|
|
47
52
|
}
|
|
48
53
|
}
|
package/package.json
CHANGED
package/src/utils/ninegrid.js
CHANGED
|
@@ -23,26 +23,31 @@ export class ninegrid {
|
|
|
23
23
|
|
|
24
24
|
if (!("shadow" in Element.prototype)) {
|
|
25
25
|
Object.defineProperty(Element.prototype, "shadow", {
|
|
26
|
-
|
|
27
|
-
console.log(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
|
|
36
|
-
if (currentElement.shadowRoot) {
|
|
37
|
-
const found = currentElement.shadowRoot.querySelector(selector);
|
|
38
|
-
if (found) return found;
|
|
39
|
-
}
|
|
26
|
+
get: function () {
|
|
27
|
+
console.log("get");
|
|
28
|
+
//const style = window.getComputedStyle(this);
|
|
29
|
+
//console.log(this, style.display, style.visibility, style.opacity);
|
|
30
|
+
return function (selector) {
|
|
31
|
+
console.log(selector);
|
|
32
|
+
return "xx";
|
|
33
|
+
/**
|
|
34
|
+
let currentElement = this;
|
|
40
35
|
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
while (currentElement) {
|
|
37
|
+
if (currentElement.matches(selector)) return currentElement;
|
|
43
38
|
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
// ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
|
|
40
|
+
if (currentElement.shadowRoot) {
|
|
41
|
+
const found = currentElement.shadowRoot.querySelector(selector);
|
|
42
|
+
if (found) return found;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
currentElement = currentElement.getRootNode()?.host || null; // ✅ Shadow DOM 내부 탐색
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return null; */
|
|
49
|
+
};
|
|
50
|
+
}
|
|
46
51
|
});
|
|
47
52
|
}
|
|
48
53
|
}
|