ninegrid2 6.659.0 → 6.661.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.
@@ -120120,14 +120120,7 @@ class nxSideMenu extends HTMLElement
120120
120120
  .then(() => this.#init())
120121
120121
  .catch(error => console.error(error));
120122
120122
 
120123
-
120124
-
120125
120123
  setTimeout(() => {
120126
- console.log(ninegrid.querySelector("nx-side-menu-item.active"));
120127
-
120128
- const href = "/tmpl-a/doc-manager";
120129
- console.log(ninegrid.querySelector(`nx-side-menu-item[href="${href}"]`));
120130
-
120131
120124
  if (!ninegrid.querySelector("nx-side-menu-item.active", this.shadowRoot)) {
120132
120125
  const rawUrl = window.location.href; // 전체 URL
120133
120126
  const parsedUrl = new URL(rawUrl); // URL 객체로 파싱
@@ -120135,7 +120128,7 @@ class nxSideMenu extends HTMLElement
120135
120128
 
120136
120129
  const el = ninegrid.querySelector(`nx-side-menu-item[href="${href}"]`, this.shadowRoot);
120137
120130
  if (el) {
120138
- el.addClass("active");
120131
+ el.classList.add("active");
120139
120132
  }
120140
120133
  }
120141
120134
  }, 1000);
@@ -120116,14 +120116,7 @@ class nxSideMenu extends HTMLElement
120116
120116
  .then(() => this.#init())
120117
120117
  .catch(error => console.error(error));
120118
120118
 
120119
-
120120
-
120121
120119
  setTimeout(() => {
120122
- console.log(ninegrid.querySelector("nx-side-menu-item.active"));
120123
-
120124
- const href = "/tmpl-a/doc-manager";
120125
- console.log(ninegrid.querySelector(`nx-side-menu-item[href="${href}"]`));
120126
-
120127
120120
  if (!ninegrid.querySelector("nx-side-menu-item.active", this.shadowRoot)) {
120128
120121
  const rawUrl = window.location.href; // 전체 URL
120129
120122
  const parsedUrl = new URL(rawUrl); // URL 객체로 파싱
@@ -120131,7 +120124,7 @@ class nxSideMenu extends HTMLElement
120131
120124
 
120132
120125
  const el = ninegrid.querySelector(`nx-side-menu-item[href="${href}"]`, this.shadowRoot);
120133
120126
  if (el) {
120134
- el.addClass("active");
120127
+ el.classList.add("active");
120135
120128
  }
120136
120129
  }
120137
120130
  }, 1000);
@@ -16,14 +16,7 @@ class nxSideMenu extends HTMLElement
16
16
  .then(() => this.#init())
17
17
  .catch(error => console.error(error));
18
18
 
19
-
20
-
21
19
  setTimeout(() => {
22
- console.log(ninegrid.querySelector("nx-side-menu-item.active"));
23
-
24
- const href = "/tmpl-a/doc-manager";
25
- console.log(ninegrid.querySelector(`nx-side-menu-item[href="${href}"]`));
26
-
27
20
  if (!ninegrid.querySelector("nx-side-menu-item.active", this.shadowRoot)) {
28
21
  const rawUrl = window.location.href; // 전체 URL
29
22
  const parsedUrl = new URL(rawUrl); // URL 객체로 파싱
@@ -31,7 +24,7 @@ class nxSideMenu extends HTMLElement
31
24
 
32
25
  const el = ninegrid.querySelector(`nx-side-menu-item[href="${href}"]`, this.shadowRoot);
33
26
  if (el) {
34
- el.addClass("active");
27
+ el.classList.add("active");
35
28
  }
36
29
  }
37
30
  }, 1000);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.659.0",
4
+ "version": "6.661.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -16,14 +16,7 @@ class nxSideMenu extends HTMLElement
16
16
  .then(() => this.#init())
17
17
  .catch(error => console.error(error));
18
18
 
19
-
20
-
21
19
  setTimeout(() => {
22
- console.log(ninegrid.querySelector("nx-side-menu-item.active"));
23
-
24
- const href = "/tmpl-a/doc-manager";
25
- console.log(ninegrid.querySelector(`nx-side-menu-item[href="${href}"]`));
26
-
27
20
  if (!ninegrid.querySelector("nx-side-menu-item.active", this.shadowRoot)) {
28
21
  const rawUrl = window.location.href; // 전체 URL
29
22
  const parsedUrl = new URL(rawUrl); // URL 객체로 파싱
@@ -31,7 +24,7 @@ class nxSideMenu extends HTMLElement
31
24
 
32
25
  const el = ninegrid.querySelector(`nx-side-menu-item[href="${href}"]`, this.shadowRoot);
33
26
  if (el) {
34
- el.addClass("active");
27
+ el.classList.add("active");
35
28
  }
36
29
  }
37
30
  }, 1000);