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.
@@ -10729,26 +10729,31 @@ class ninegrid {
10729
10729
 
10730
10730
  if (!("shadow" in Element.prototype)) {
10731
10731
  Object.defineProperty(Element.prototype, "shadow", {
10732
- closest: function (selector) {
10733
- console.log(selector);
10734
- return "xx";
10735
- /**
10736
- let currentElement = this;
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
- while (currentElement) {
10739
- if (currentElement.matches(selector)) return currentElement;
10742
+ while (currentElement) {
10743
+ if (currentElement.matches(selector)) return currentElement;
10740
10744
 
10741
- // ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
10742
- if (currentElement.shadowRoot) {
10743
- const found = currentElement.shadowRoot.querySelector(selector);
10744
- if (found) return found;
10745
- }
10745
+ // ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
10746
+ if (currentElement.shadowRoot) {
10747
+ const found = currentElement.shadowRoot.querySelector(selector);
10748
+ if (found) return found;
10749
+ }
10746
10750
 
10747
- currentElement = currentElement.getRootNode()?.host || null; // ✅ Shadow DOM 내부 탐색
10748
- }
10751
+ currentElement = currentElement.getRootNode()?.host || null; // ✅ Shadow DOM 내부 탐색
10752
+ }
10749
10753
 
10750
- return null; */
10751
- },
10754
+ return null; */
10755
+ };
10756
+ }
10752
10757
  });
10753
10758
  }
10754
10759
  }
@@ -10727,26 +10727,31 @@ class ninegrid {
10727
10727
 
10728
10728
  if (!("shadow" in Element.prototype)) {
10729
10729
  Object.defineProperty(Element.prototype, "shadow", {
10730
- closest: function (selector) {
10731
- console.log(selector);
10732
- return "xx";
10733
- /**
10734
- let currentElement = this;
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
- while (currentElement) {
10737
- if (currentElement.matches(selector)) return currentElement;
10740
+ while (currentElement) {
10741
+ if (currentElement.matches(selector)) return currentElement;
10738
10742
 
10739
- // ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
10740
- if (currentElement.shadowRoot) {
10741
- const found = currentElement.shadowRoot.querySelector(selector);
10742
- if (found) return found;
10743
- }
10743
+ // ✅ Shadow Root를 가지고 있는 경우 내부에서 탐색
10744
+ if (currentElement.shadowRoot) {
10745
+ const found = currentElement.shadowRoot.querySelector(selector);
10746
+ if (found) return found;
10747
+ }
10744
10748
 
10745
- currentElement = currentElement.getRootNode()?.host || null; // ✅ Shadow DOM 내부 탐색
10746
- }
10749
+ currentElement = currentElement.getRootNode()?.host || null; // ✅ Shadow DOM 내부 탐색
10750
+ }
10747
10751
 
10748
- return null; */
10749
- },
10752
+ return null; */
10753
+ };
10754
+ }
10750
10755
  });
10751
10756
  }
10752
10757
  }
@@ -23,26 +23,31 @@ export class ninegrid {
23
23
 
24
24
  if (!("shadow" in Element.prototype)) {
25
25
  Object.defineProperty(Element.prototype, "shadow", {
26
- closest: function (selector) {
27
- console.log(selector);
28
- return "xx";
29
- /**
30
- let currentElement = this;
31
-
32
- while (currentElement) {
33
- if (currentElement.matches(selector)) return currentElement;
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
- currentElement = currentElement.getRootNode()?.host || null; // ✅ Shadow DOM 내부 탐색
42
- }
36
+ while (currentElement) {
37
+ if (currentElement.matches(selector)) return currentElement;
43
38
 
44
- return null; */
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.163.0",
4
+ "version": "6.164.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -23,26 +23,31 @@ export class ninegrid {
23
23
 
24
24
  if (!("shadow" in Element.prototype)) {
25
25
  Object.defineProperty(Element.prototype, "shadow", {
26
- closest: function (selector) {
27
- console.log(selector);
28
- return "xx";
29
- /**
30
- let currentElement = this;
31
-
32
- while (currentElement) {
33
- if (currentElement.matches(selector)) return currentElement;
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
- currentElement = currentElement.getRootNode()?.host || null; // ✅ Shadow DOM 내부 탐색
42
- }
36
+ while (currentElement) {
37
+ if (currentElement.matches(selector)) return currentElement;
43
38
 
44
- return null; */
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
  }