ninegrid2 6.950.0 → 6.951.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 +11 -2
- package/dist/bundle.esm.js +11 -2
- package/dist/nx/nxStack.js +30 -0
- package/dist/nx/nxTitle.js +11 -2
- package/package.json +1 -1
- package/src/nx/nxStack.js +30 -0
- package/src/nx/nxTitle.js +11 -2
package/dist/bundle.cjs.js
CHANGED
|
@@ -121697,9 +121697,9 @@ customElements.define("nx-form", nxForm);
|
|
|
121697
121697
|
|
|
121698
121698
|
class nxTitle extends HTMLElement {
|
|
121699
121699
|
|
|
121700
|
-
|
|
121701
|
-
|
|
121702
121700
|
#breadcrumbPath = []; // Breadcrumb 경로를 저장할 내부 상태 초기화
|
|
121701
|
+
#dynamicPath = []; // 동적으로 추가할 빵 부스러기 경로 (상세 페이지 등)
|
|
121702
|
+
|
|
121703
121703
|
|
|
121704
121704
|
constructor() {
|
|
121705
121705
|
super();
|
|
@@ -121715,6 +121715,11 @@ class nxTitle extends HTMLElement {
|
|
|
121715
121715
|
document.removeEventListener('DOMContentLoaded', this.#init);
|
|
121716
121716
|
}
|
|
121717
121717
|
|
|
121718
|
+
setDynamicPath(pathArray) {
|
|
121719
|
+
this.#dynamicPath = pathArray;
|
|
121720
|
+
this.#generateBreadcrumb(); // 빵 부스러기 재생성 및 렌더링
|
|
121721
|
+
this.#renderer();
|
|
121722
|
+
}
|
|
121718
121723
|
|
|
121719
121724
|
#init = () => {
|
|
121720
121725
|
/**
|
|
@@ -121804,6 +121809,10 @@ class nxTitle extends HTMLElement {
|
|
|
121804
121809
|
caption: "Home",
|
|
121805
121810
|
});
|
|
121806
121811
|
|
|
121812
|
+
// 2. 동적으로 추가된 경로 (상세 페이지)
|
|
121813
|
+
// #dynamicPath 배열의 내용을 병합
|
|
121814
|
+
this.#breadcrumbPath = this.#breadcrumbPath.concat(this.#dynamicPath);
|
|
121815
|
+
|
|
121807
121816
|
//console.log(this.#breadcrumbPath);
|
|
121808
121817
|
//this.#breadcrumbPath = path;
|
|
121809
121818
|
//this.#renderer();
|
package/dist/bundle.esm.js
CHANGED
|
@@ -121693,9 +121693,9 @@ customElements.define("nx-form", nxForm);
|
|
|
121693
121693
|
|
|
121694
121694
|
class nxTitle extends HTMLElement {
|
|
121695
121695
|
|
|
121696
|
-
|
|
121697
|
-
|
|
121698
121696
|
#breadcrumbPath = []; // Breadcrumb 경로를 저장할 내부 상태 초기화
|
|
121697
|
+
#dynamicPath = []; // 동적으로 추가할 빵 부스러기 경로 (상세 페이지 등)
|
|
121698
|
+
|
|
121699
121699
|
|
|
121700
121700
|
constructor() {
|
|
121701
121701
|
super();
|
|
@@ -121711,6 +121711,11 @@ class nxTitle extends HTMLElement {
|
|
|
121711
121711
|
document.removeEventListener('DOMContentLoaded', this.#init);
|
|
121712
121712
|
}
|
|
121713
121713
|
|
|
121714
|
+
setDynamicPath(pathArray) {
|
|
121715
|
+
this.#dynamicPath = pathArray;
|
|
121716
|
+
this.#generateBreadcrumb(); // 빵 부스러기 재생성 및 렌더링
|
|
121717
|
+
this.#renderer();
|
|
121718
|
+
}
|
|
121714
121719
|
|
|
121715
121720
|
#init = () => {
|
|
121716
121721
|
/**
|
|
@@ -121800,6 +121805,10 @@ class nxTitle extends HTMLElement {
|
|
|
121800
121805
|
caption: "Home",
|
|
121801
121806
|
});
|
|
121802
121807
|
|
|
121808
|
+
// 2. 동적으로 추가된 경로 (상세 페이지)
|
|
121809
|
+
// #dynamicPath 배열의 내용을 병합
|
|
121810
|
+
this.#breadcrumbPath = this.#breadcrumbPath.concat(this.#dynamicPath);
|
|
121811
|
+
|
|
121803
121812
|
//console.log(this.#breadcrumbPath);
|
|
121804
121813
|
//this.#breadcrumbPath = path;
|
|
121805
121814
|
//this.#renderer();
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import ninegrid from "../index.js";
|
|
2
|
+
|
|
3
|
+
class nxStack extends HTMLElement {
|
|
4
|
+
constructor() {
|
|
5
|
+
super();
|
|
6
|
+
//this.attachShadow({ mode: 'open' });
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
connectedCallback() {
|
|
10
|
+
//this.#renderer();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
#renderer = () => {
|
|
14
|
+
|
|
15
|
+
const contents = this.innerHTML.trim();
|
|
16
|
+
this.innerHTML = ""; // 기존 내부 HTML 제거
|
|
17
|
+
|
|
18
|
+
// Shadow DOM 초기화 (새로운 콘텐츠를 위해)
|
|
19
|
+
//this.shadowRoot.innerHTML = "";
|
|
20
|
+
|
|
21
|
+
const htmlTmpl = document.createElement("template");
|
|
22
|
+
htmlTmpl.innerHTML = `
|
|
23
|
+
${contents};
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
this.appendChild(htmlTmpl.content.cloneNode(true));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
customElements.define('nx-stack', nxStack);
|
package/dist/nx/nxTitle.js
CHANGED
|
@@ -2,9 +2,9 @@ import ninegrid from "../index.js";
|
|
|
2
2
|
|
|
3
3
|
export class nxTitle extends HTMLElement {
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
5
|
#breadcrumbPath = []; // Breadcrumb 경로를 저장할 내부 상태 초기화
|
|
6
|
+
#dynamicPath = []; // 동적으로 추가할 빵 부스러기 경로 (상세 페이지 등)
|
|
7
|
+
|
|
8
8
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super();
|
|
@@ -20,6 +20,11 @@ export class nxTitle extends HTMLElement {
|
|
|
20
20
|
document.removeEventListener('DOMContentLoaded', this.#init);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
setDynamicPath(pathArray) {
|
|
24
|
+
this.#dynamicPath = pathArray;
|
|
25
|
+
this.#generateBreadcrumb(); // 빵 부스러기 재생성 및 렌더링
|
|
26
|
+
this.#renderer();
|
|
27
|
+
}
|
|
23
28
|
|
|
24
29
|
#init = () => {
|
|
25
30
|
/**
|
|
@@ -125,6 +130,10 @@ export class nxTitle extends HTMLElement {
|
|
|
125
130
|
caption: "Home",
|
|
126
131
|
});
|
|
127
132
|
|
|
133
|
+
// 2. 동적으로 추가된 경로 (상세 페이지)
|
|
134
|
+
// #dynamicPath 배열의 내용을 병합
|
|
135
|
+
this.#breadcrumbPath = this.#breadcrumbPath.concat(this.#dynamicPath);
|
|
136
|
+
|
|
128
137
|
//console.log(this.#breadcrumbPath);
|
|
129
138
|
//this.#breadcrumbPath = path;
|
|
130
139
|
//this.#renderer();
|
package/package.json
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import ninegrid from "../index.js";
|
|
2
|
+
|
|
3
|
+
class nxStack extends HTMLElement {
|
|
4
|
+
constructor() {
|
|
5
|
+
super();
|
|
6
|
+
//this.attachShadow({ mode: 'open' });
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
connectedCallback() {
|
|
10
|
+
//this.#renderer();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
#renderer = () => {
|
|
14
|
+
|
|
15
|
+
const contents = this.innerHTML.trim();
|
|
16
|
+
this.innerHTML = ""; // 기존 내부 HTML 제거
|
|
17
|
+
|
|
18
|
+
// Shadow DOM 초기화 (새로운 콘텐츠를 위해)
|
|
19
|
+
//this.shadowRoot.innerHTML = "";
|
|
20
|
+
|
|
21
|
+
const htmlTmpl = document.createElement("template");
|
|
22
|
+
htmlTmpl.innerHTML = `
|
|
23
|
+
${contents};
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
this.appendChild(htmlTmpl.content.cloneNode(true));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
customElements.define('nx-stack', nxStack);
|
package/src/nx/nxTitle.js
CHANGED
|
@@ -2,9 +2,9 @@ import ninegrid from "../index.js";
|
|
|
2
2
|
|
|
3
3
|
export class nxTitle extends HTMLElement {
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
5
|
#breadcrumbPath = []; // Breadcrumb 경로를 저장할 내부 상태 초기화
|
|
6
|
+
#dynamicPath = []; // 동적으로 추가할 빵 부스러기 경로 (상세 페이지 등)
|
|
7
|
+
|
|
8
8
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super();
|
|
@@ -20,6 +20,11 @@ export class nxTitle extends HTMLElement {
|
|
|
20
20
|
document.removeEventListener('DOMContentLoaded', this.#init);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
setDynamicPath(pathArray) {
|
|
24
|
+
this.#dynamicPath = pathArray;
|
|
25
|
+
this.#generateBreadcrumb(); // 빵 부스러기 재생성 및 렌더링
|
|
26
|
+
this.#renderer();
|
|
27
|
+
}
|
|
23
28
|
|
|
24
29
|
#init = () => {
|
|
25
30
|
/**
|
|
@@ -125,6 +130,10 @@ export class nxTitle extends HTMLElement {
|
|
|
125
130
|
caption: "Home",
|
|
126
131
|
});
|
|
127
132
|
|
|
133
|
+
// 2. 동적으로 추가된 경로 (상세 페이지)
|
|
134
|
+
// #dynamicPath 배열의 내용을 병합
|
|
135
|
+
this.#breadcrumbPath = this.#breadcrumbPath.concat(this.#dynamicPath);
|
|
136
|
+
|
|
128
137
|
//console.log(this.#breadcrumbPath);
|
|
129
138
|
//this.#breadcrumbPath = path;
|
|
130
139
|
//this.#renderer();
|