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