ninegrid2 6.153.0 → 6.155.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.
@@ -10715,11 +10715,11 @@ class ninegrid {
10715
10715
  }
10716
10716
 
10717
10717
  static extendElementPrototype() {
10718
- console.log(1111);
10719
10718
  if (!("isHidden" in Element.prototype)) { // ✅ 이미 존재하는 경우 중복 정의 방지
10720
10719
  Object.defineProperty(Element.prototype, "isHidden", {
10721
10720
  get: function () {
10722
10721
  const style = window.getComputedStyle(this);
10722
+ console.log(style.display, style.visibility, style.opacity);
10723
10723
  return style.display === "none" || style.visibility === "hidden" || style.opacity === "0";
10724
10724
  }
10725
10725
  });
@@ -18157,9 +18157,12 @@ class ngFilterButton extends HTMLElement
18157
18157
  e.preventDefault();
18158
18158
  e.stopPropagation();
18159
18159
 
18160
- this.#owner.shadowRoot.querySelector('ng-filter-panel');
18161
-
18160
+ const panel = this.#owner.shadowRoot.querySelector('ng-filter-panel');
18162
18161
 
18162
+ console.log(panel.isHidden);
18163
+
18164
+ panel.style.display = panel.isHidden ? 'flex' : 'none';
18165
+
18163
18166
 
18164
18167
 
18165
18168
  return;
@@ -10713,11 +10713,11 @@ class ninegrid {
10713
10713
  }
10714
10714
 
10715
10715
  static extendElementPrototype() {
10716
- console.log(1111);
10717
10716
  if (!("isHidden" in Element.prototype)) { // ✅ 이미 존재하는 경우 중복 정의 방지
10718
10717
  Object.defineProperty(Element.prototype, "isHidden", {
10719
10718
  get: function () {
10720
10719
  const style = window.getComputedStyle(this);
10720
+ console.log(style.display, style.visibility, style.opacity);
10721
10721
  return style.display === "none" || style.visibility === "hidden" || style.opacity === "0";
10722
10722
  }
10723
10723
  });
@@ -18155,9 +18155,12 @@ class ngFilterButton extends HTMLElement
18155
18155
  e.preventDefault();
18156
18156
  e.stopPropagation();
18157
18157
 
18158
- this.#owner.shadowRoot.querySelector('ng-filter-panel');
18159
-
18158
+ const panel = this.#owner.shadowRoot.querySelector('ng-filter-panel');
18160
18159
 
18160
+ console.log(panel.isHidden);
18161
+
18162
+ panel.style.display = panel.isHidden ? 'flex' : 'none';
18163
+
18161
18164
 
18162
18165
 
18163
18166
  return;
@@ -281,9 +281,12 @@ class ngFilterButton extends HTMLElement
281
281
  e.preventDefault();
282
282
  e.stopPropagation();
283
283
 
284
- var panel = this.#owner.shadowRoot.querySelector('ng-filter-panel');
285
-
284
+ const panel = this.#owner.shadowRoot.querySelector('ng-filter-panel');
286
285
 
286
+ console.log(panel.isHidden);
287
+
288
+ panel.style.display = panel.isHidden ? 'flex' : 'none';
289
+
287
290
 
288
291
 
289
292
  return;
@@ -9,11 +9,11 @@ export class ninegrid {
9
9
  }
10
10
 
11
11
  static extendElementPrototype() {
12
- console.log(1111);
13
12
  if (!("isHidden" in Element.prototype)) { // ✅ 이미 존재하는 경우 중복 정의 방지
14
13
  Object.defineProperty(Element.prototype, "isHidden", {
15
14
  get: function () {
16
15
  const style = window.getComputedStyle(this);
16
+ console.log(style.display, style.visibility, style.opacity);
17
17
  return style.display === "none" || style.visibility === "hidden" || style.opacity === "0";
18
18
  }
19
19
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.153.0",
4
+ "version": "6.155.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -281,9 +281,12 @@ class ngFilterButton extends HTMLElement
281
281
  e.preventDefault();
282
282
  e.stopPropagation();
283
283
 
284
- var panel = this.#owner.shadowRoot.querySelector('ng-filter-panel');
285
-
284
+ const panel = this.#owner.shadowRoot.querySelector('ng-filter-panel');
286
285
 
286
+ console.log(panel.isHidden);
287
+
288
+ panel.style.display = panel.isHidden ? 'flex' : 'none';
289
+
287
290
 
288
291
 
289
292
  return;
@@ -9,11 +9,11 @@ export class ninegrid {
9
9
  }
10
10
 
11
11
  static extendElementPrototype() {
12
- console.log(1111);
13
12
  if (!("isHidden" in Element.prototype)) { // ✅ 이미 존재하는 경우 중복 정의 방지
14
13
  Object.defineProperty(Element.prototype, "isHidden", {
15
14
  get: function () {
16
15
  const style = window.getComputedStyle(this);
16
+ console.log(style.display, style.visibility, style.opacity);
17
17
  return style.display === "none" || style.visibility === "hidden" || style.opacity === "0";
18
18
  }
19
19
  });