ninegrid2 6.781.0 → 6.783.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 +13 -0
- package/dist/bundle.esm.js +13 -0
- package/dist/nx/nxCollapse.js +13 -0
- package/package.json +1 -1
- package/src/nx/nxCollapse.js +13 -0
package/dist/bundle.cjs.js
CHANGED
|
@@ -120913,14 +120913,27 @@ class nxCollapse extends HTMLElement {
|
|
|
120913
120913
|
|
|
120914
120914
|
// collapse 시 target 숨기고 복원 버튼 등장
|
|
120915
120915
|
collapseBtn.addEventListener("click", () => {
|
|
120916
|
+
/**
|
|
120916
120917
|
this.#targetPrevDisplay = this.#target.style.display;
|
|
120917
120918
|
this.#target.style.display = "none";
|
|
120918
120919
|
this.style.display = "inline-block";
|
|
120920
|
+
*/
|
|
120921
|
+
|
|
120922
|
+
// fade-out 클래스 먼저 넣고 → 일정 시간 후 display: none
|
|
120923
|
+
this.#target.classList.add("fade-out");
|
|
120924
|
+
|
|
120925
|
+
setTimeout(() => {
|
|
120926
|
+
this.#targetPrevDisplay = this.#target.style.display;
|
|
120927
|
+
this.#target.style.display = "none";
|
|
120928
|
+
this.style.display = "inline-block";
|
|
120929
|
+
}, 300); // transition 시간과 맞춰서 300ms 딜레이
|
|
120930
|
+
|
|
120919
120931
|
});
|
|
120920
120932
|
}
|
|
120921
120933
|
|
|
120922
120934
|
// 복원 시 target 보이고 복원 버튼 사라짐
|
|
120923
120935
|
this.shadowRoot.querySelector("button").addEventListener("click", () => {
|
|
120936
|
+
this.#target.classList.remove("fade-out");
|
|
120924
120937
|
this.#target.style.display = this.#targetPrevDisplay;
|
|
120925
120938
|
this.style.display = "none";
|
|
120926
120939
|
});
|
package/dist/bundle.esm.js
CHANGED
|
@@ -120909,14 +120909,27 @@ class nxCollapse extends HTMLElement {
|
|
|
120909
120909
|
|
|
120910
120910
|
// collapse 시 target 숨기고 복원 버튼 등장
|
|
120911
120911
|
collapseBtn.addEventListener("click", () => {
|
|
120912
|
+
/**
|
|
120912
120913
|
this.#targetPrevDisplay = this.#target.style.display;
|
|
120913
120914
|
this.#target.style.display = "none";
|
|
120914
120915
|
this.style.display = "inline-block";
|
|
120916
|
+
*/
|
|
120917
|
+
|
|
120918
|
+
// fade-out 클래스 먼저 넣고 → 일정 시간 후 display: none
|
|
120919
|
+
this.#target.classList.add("fade-out");
|
|
120920
|
+
|
|
120921
|
+
setTimeout(() => {
|
|
120922
|
+
this.#targetPrevDisplay = this.#target.style.display;
|
|
120923
|
+
this.#target.style.display = "none";
|
|
120924
|
+
this.style.display = "inline-block";
|
|
120925
|
+
}, 300); // transition 시간과 맞춰서 300ms 딜레이
|
|
120926
|
+
|
|
120915
120927
|
});
|
|
120916
120928
|
}
|
|
120917
120929
|
|
|
120918
120930
|
// 복원 시 target 보이고 복원 버튼 사라짐
|
|
120919
120931
|
this.shadowRoot.querySelector("button").addEventListener("click", () => {
|
|
120932
|
+
this.#target.classList.remove("fade-out");
|
|
120920
120933
|
this.#target.style.display = this.#targetPrevDisplay;
|
|
120921
120934
|
this.style.display = "none";
|
|
120922
120935
|
});
|
package/dist/nx/nxCollapse.js
CHANGED
|
@@ -68,14 +68,27 @@ class nxCollapse extends HTMLElement {
|
|
|
68
68
|
|
|
69
69
|
// collapse 시 target 숨기고 복원 버튼 등장
|
|
70
70
|
collapseBtn.addEventListener("click", () => {
|
|
71
|
+
/**
|
|
71
72
|
this.#targetPrevDisplay = this.#target.style.display;
|
|
72
73
|
this.#target.style.display = "none";
|
|
73
74
|
this.style.display = "inline-block";
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
// fade-out 클래스 먼저 넣고 → 일정 시간 후 display: none
|
|
78
|
+
this.#target.classList.add("fade-out");
|
|
79
|
+
|
|
80
|
+
setTimeout(() => {
|
|
81
|
+
this.#targetPrevDisplay = this.#target.style.display;
|
|
82
|
+
this.#target.style.display = "none";
|
|
83
|
+
this.style.display = "inline-block";
|
|
84
|
+
}, 300); // transition 시간과 맞춰서 300ms 딜레이
|
|
85
|
+
|
|
74
86
|
});
|
|
75
87
|
}
|
|
76
88
|
|
|
77
89
|
// 복원 시 target 보이고 복원 버튼 사라짐
|
|
78
90
|
this.shadowRoot.querySelector("button").addEventListener("click", () => {
|
|
91
|
+
this.#target.classList.remove("fade-out");
|
|
79
92
|
this.#target.style.display = this.#targetPrevDisplay;
|
|
80
93
|
this.style.display = "none";
|
|
81
94
|
});
|
package/package.json
CHANGED
package/src/nx/nxCollapse.js
CHANGED
|
@@ -68,14 +68,27 @@ class nxCollapse extends HTMLElement {
|
|
|
68
68
|
|
|
69
69
|
// collapse 시 target 숨기고 복원 버튼 등장
|
|
70
70
|
collapseBtn.addEventListener("click", () => {
|
|
71
|
+
/**
|
|
71
72
|
this.#targetPrevDisplay = this.#target.style.display;
|
|
72
73
|
this.#target.style.display = "none";
|
|
73
74
|
this.style.display = "inline-block";
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
// fade-out 클래스 먼저 넣고 → 일정 시간 후 display: none
|
|
78
|
+
this.#target.classList.add("fade-out");
|
|
79
|
+
|
|
80
|
+
setTimeout(() => {
|
|
81
|
+
this.#targetPrevDisplay = this.#target.style.display;
|
|
82
|
+
this.#target.style.display = "none";
|
|
83
|
+
this.style.display = "inline-block";
|
|
84
|
+
}, 300); // transition 시간과 맞춰서 300ms 딜레이
|
|
85
|
+
|
|
74
86
|
});
|
|
75
87
|
}
|
|
76
88
|
|
|
77
89
|
// 복원 시 target 보이고 복원 버튼 사라짐
|
|
78
90
|
this.shadowRoot.querySelector("button").addEventListener("click", () => {
|
|
91
|
+
this.#target.classList.remove("fade-out");
|
|
79
92
|
this.#target.style.display = this.#targetPrevDisplay;
|
|
80
93
|
this.style.display = "none";
|
|
81
94
|
});
|