ninegrid2 6.658.0 → 6.659.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 +16 -5
- package/dist/bundle.esm.js +16 -5
- package/dist/etc/nxSideMenu.js +16 -5
- package/package.json +1 -1
- package/src/etc/nxSideMenu.js +16 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -120120,13 +120120,24 @@ class nxSideMenu extends HTMLElement
|
|
|
120120
120120
|
.then(() => this.#init())
|
|
120121
120121
|
.catch(error => console.error(error));
|
|
120122
120122
|
|
|
120123
|
-
|
|
120124
|
-
const parsedUrl = new URL(rawUrl); // URL 객체로 파싱
|
|
120125
|
-
const cleanPath = parsedUrl.pathname; // 👉 경로만 추출
|
|
120126
|
-
console.log("1.=======================", cleanPath);
|
|
120123
|
+
|
|
120127
120124
|
|
|
120128
120125
|
setTimeout(() => {
|
|
120129
|
-
console.log(ninegrid.
|
|
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
|
+
if (!ninegrid.querySelector("nx-side-menu-item.active", this.shadowRoot)) {
|
|
120132
|
+
const rawUrl = window.location.href; // 전체 URL
|
|
120133
|
+
const parsedUrl = new URL(rawUrl); // URL 객체로 파싱
|
|
120134
|
+
const href = parsedUrl.pathname; // 👉 경로만 추출
|
|
120135
|
+
|
|
120136
|
+
const el = ninegrid.querySelector(`nx-side-menu-item[href="${href}"]`, this.shadowRoot);
|
|
120137
|
+
if (el) {
|
|
120138
|
+
el.addClass("active");
|
|
120139
|
+
}
|
|
120140
|
+
}
|
|
120130
120141
|
}, 1000);
|
|
120131
120142
|
|
|
120132
120143
|
};
|
package/dist/bundle.esm.js
CHANGED
|
@@ -120116,13 +120116,24 @@ class nxSideMenu extends HTMLElement
|
|
|
120116
120116
|
.then(() => this.#init())
|
|
120117
120117
|
.catch(error => console.error(error));
|
|
120118
120118
|
|
|
120119
|
-
|
|
120120
|
-
const parsedUrl = new URL(rawUrl); // URL 객체로 파싱
|
|
120121
|
-
const cleanPath = parsedUrl.pathname; // 👉 경로만 추출
|
|
120122
|
-
console.log("1.=======================", cleanPath);
|
|
120119
|
+
|
|
120123
120120
|
|
|
120124
120121
|
setTimeout(() => {
|
|
120125
|
-
console.log(ninegrid.
|
|
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
|
+
if (!ninegrid.querySelector("nx-side-menu-item.active", this.shadowRoot)) {
|
|
120128
|
+
const rawUrl = window.location.href; // 전체 URL
|
|
120129
|
+
const parsedUrl = new URL(rawUrl); // URL 객체로 파싱
|
|
120130
|
+
const href = parsedUrl.pathname; // 👉 경로만 추출
|
|
120131
|
+
|
|
120132
|
+
const el = ninegrid.querySelector(`nx-side-menu-item[href="${href}"]`, this.shadowRoot);
|
|
120133
|
+
if (el) {
|
|
120134
|
+
el.addClass("active");
|
|
120135
|
+
}
|
|
120136
|
+
}
|
|
120126
120137
|
}, 1000);
|
|
120127
120138
|
|
|
120128
120139
|
};
|
package/dist/etc/nxSideMenu.js
CHANGED
|
@@ -16,13 +16,24 @@ class nxSideMenu extends HTMLElement
|
|
|
16
16
|
.then(() => this.#init())
|
|
17
17
|
.catch(error => console.error(error));
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
const parsedUrl = new URL(rawUrl); // URL 객체로 파싱
|
|
21
|
-
const cleanPath = parsedUrl.pathname; // 👉 경로만 추출
|
|
22
|
-
console.log("1.=======================", cleanPath);
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
setTimeout(() => {
|
|
25
|
-
console.log(ninegrid.
|
|
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
|
+
if (!ninegrid.querySelector("nx-side-menu-item.active", this.shadowRoot)) {
|
|
28
|
+
const rawUrl = window.location.href; // 전체 URL
|
|
29
|
+
const parsedUrl = new URL(rawUrl); // URL 객체로 파싱
|
|
30
|
+
const href = parsedUrl.pathname; // 👉 경로만 추출
|
|
31
|
+
|
|
32
|
+
const el = ninegrid.querySelector(`nx-side-menu-item[href="${href}"]`, this.shadowRoot);
|
|
33
|
+
if (el) {
|
|
34
|
+
el.addClass("active");
|
|
35
|
+
}
|
|
36
|
+
}
|
|
26
37
|
}, 1000);
|
|
27
38
|
|
|
28
39
|
};
|
package/package.json
CHANGED
package/src/etc/nxSideMenu.js
CHANGED
|
@@ -16,13 +16,24 @@ class nxSideMenu extends HTMLElement
|
|
|
16
16
|
.then(() => this.#init())
|
|
17
17
|
.catch(error => console.error(error));
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
const parsedUrl = new URL(rawUrl); // URL 객체로 파싱
|
|
21
|
-
const cleanPath = parsedUrl.pathname; // 👉 경로만 추출
|
|
22
|
-
console.log("1.=======================", cleanPath);
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
setTimeout(() => {
|
|
25
|
-
console.log(ninegrid.
|
|
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
|
+
if (!ninegrid.querySelector("nx-side-menu-item.active", this.shadowRoot)) {
|
|
28
|
+
const rawUrl = window.location.href; // 전체 URL
|
|
29
|
+
const parsedUrl = new URL(rawUrl); // URL 객체로 파싱
|
|
30
|
+
const href = parsedUrl.pathname; // 👉 경로만 추출
|
|
31
|
+
|
|
32
|
+
const el = ninegrid.querySelector(`nx-side-menu-item[href="${href}"]`, this.shadowRoot);
|
|
33
|
+
if (el) {
|
|
34
|
+
el.addClass("active");
|
|
35
|
+
}
|
|
36
|
+
}
|
|
26
37
|
}, 1000);
|
|
27
38
|
|
|
28
39
|
};
|