ninegrid2 6.807.0 → 6.809.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.
@@ -120968,25 +120968,33 @@ class nxCollapse extends HTMLElement {
120968
120968
  }
120969
120969
 
120970
120970
  // 복원 시 target 보이고 복원 버튼 사라짐
120971
+ /**
120971
120972
  this.shadowRoot.querySelector("button").addEventListener("click", () => {
120972
120973
  this.#target.classList.remove("nx-collapse");
120973
120974
  this.classList.remove("nx-collapse");
120974
120975
 
120975
120976
  this.#target.style.display = this.#targetPrevDisplay;
120976
120977
  this.style.display = "none";
120977
- });
120978
+ }); */
120978
120979
 
120979
120980
  this.shadowRoot.querySelector("button").addEventListener("click", () => {
120980
120981
  // STEP 1: 복원 대상에 애니메이션 클래스 부여
120981
120982
  this.#target.classList.remove("nx-collapse");
120982
120983
  this.#target.classList.add("nx-expand"); // expandReveal 적용
120983
120984
 
120984
- // STEP 2: 실제 화면에 표시
120985
- this.#target.style.display = this.#targetPrevDisplay;
120986
- this.style.display = "none"; // 복원 버튼은 사라짐
120985
+ setTimeout(() => {
120986
+ // STEP 2: target 줄어드는 shrinking 애니메이션 시작
120987
+ this.classList.remove("nx-collapse");
120988
+ this.classList.add("nx-expand");
120989
+ }, 100); // appearing 시작 후 100ms 딜레이로 target 축소 시작
120990
+
120987
120991
 
120988
- // STEP 3: 애니메이션이 끝난 후 pointer-events 복구 (선택적)
120989
120992
  setTimeout(() => {
120993
+ // STEP 2: 실제 화면에 표시
120994
+ this.#target.style.display = this.#targetPrevDisplay;
120995
+ this.style.display = "none"; // 복원 버튼은 사라짐
120996
+
120997
+ // STEP 3: 애니메이션이 끝난 후 pointer-events 복구 (선택적)
120990
120998
  this.#target.classList.remove("nx-expand");
120991
120999
  //this.#target.style.pointerEvents = "auto";
120992
121000
  }, 600); // 애니메이션과 동일한 시간
@@ -120964,25 +120964,33 @@ class nxCollapse extends HTMLElement {
120964
120964
  }
120965
120965
 
120966
120966
  // 복원 시 target 보이고 복원 버튼 사라짐
120967
+ /**
120967
120968
  this.shadowRoot.querySelector("button").addEventListener("click", () => {
120968
120969
  this.#target.classList.remove("nx-collapse");
120969
120970
  this.classList.remove("nx-collapse");
120970
120971
 
120971
120972
  this.#target.style.display = this.#targetPrevDisplay;
120972
120973
  this.style.display = "none";
120973
- });
120974
+ }); */
120974
120975
 
120975
120976
  this.shadowRoot.querySelector("button").addEventListener("click", () => {
120976
120977
  // STEP 1: 복원 대상에 애니메이션 클래스 부여
120977
120978
  this.#target.classList.remove("nx-collapse");
120978
120979
  this.#target.classList.add("nx-expand"); // expandReveal 적용
120979
120980
 
120980
- // STEP 2: 실제 화면에 표시
120981
- this.#target.style.display = this.#targetPrevDisplay;
120982
- this.style.display = "none"; // 복원 버튼은 사라짐
120981
+ setTimeout(() => {
120982
+ // STEP 2: target 줄어드는 shrinking 애니메이션 시작
120983
+ this.classList.remove("nx-collapse");
120984
+ this.classList.add("nx-expand");
120985
+ }, 100); // appearing 시작 후 100ms 딜레이로 target 축소 시작
120986
+
120983
120987
 
120984
- // STEP 3: 애니메이션이 끝난 후 pointer-events 복구 (선택적)
120985
120988
  setTimeout(() => {
120989
+ // STEP 2: 실제 화면에 표시
120990
+ this.#target.style.display = this.#targetPrevDisplay;
120991
+ this.style.display = "none"; // 복원 버튼은 사라짐
120992
+
120993
+ // STEP 3: 애니메이션이 끝난 후 pointer-events 복구 (선택적)
120986
120994
  this.#target.classList.remove("nx-expand");
120987
120995
  //this.#target.style.pointerEvents = "auto";
120988
120996
  }, 600); // 애니메이션과 동일한 시간
@@ -123,25 +123,33 @@ class nxCollapse extends HTMLElement {
123
123
  }
124
124
 
125
125
  // 복원 시 target 보이고 복원 버튼 사라짐
126
+ /**
126
127
  this.shadowRoot.querySelector("button").addEventListener("click", () => {
127
128
  this.#target.classList.remove("nx-collapse");
128
129
  this.classList.remove("nx-collapse");
129
130
 
130
131
  this.#target.style.display = this.#targetPrevDisplay;
131
132
  this.style.display = "none";
132
- });
133
+ }); */
133
134
 
134
135
  this.shadowRoot.querySelector("button").addEventListener("click", () => {
135
136
  // STEP 1: 복원 대상에 애니메이션 클래스 부여
136
137
  this.#target.classList.remove("nx-collapse");
137
138
  this.#target.classList.add("nx-expand"); // expandReveal 적용
138
139
 
139
- // STEP 2: 실제 화면에 표시
140
- this.#target.style.display = this.#targetPrevDisplay;
141
- this.style.display = "none"; // 복원 버튼은 사라짐
140
+ setTimeout(() => {
141
+ // STEP 2: target 줄어드는 shrinking 애니메이션 시작
142
+ this.classList.remove("nx-collapse");
143
+ this.classList.add("nx-expand");
144
+ }, 100); // appearing 시작 후 100ms 딜레이로 target 축소 시작
145
+
142
146
 
143
- // STEP 3: 애니메이션이 끝난 후 pointer-events 복구 (선택적)
144
147
  setTimeout(() => {
148
+ // STEP 2: 실제 화면에 표시
149
+ this.#target.style.display = this.#targetPrevDisplay;
150
+ this.style.display = "none"; // 복원 버튼은 사라짐
151
+
152
+ // STEP 3: 애니메이션이 끝난 후 pointer-events 복구 (선택적)
145
153
  this.#target.classList.remove("nx-expand");
146
154
  //this.#target.style.pointerEvents = "auto";
147
155
  }, 600); // 애니메이션과 동일한 시간
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.807.0",
4
+ "version": "6.809.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -123,25 +123,33 @@ class nxCollapse extends HTMLElement {
123
123
  }
124
124
 
125
125
  // 복원 시 target 보이고 복원 버튼 사라짐
126
+ /**
126
127
  this.shadowRoot.querySelector("button").addEventListener("click", () => {
127
128
  this.#target.classList.remove("nx-collapse");
128
129
  this.classList.remove("nx-collapse");
129
130
 
130
131
  this.#target.style.display = this.#targetPrevDisplay;
131
132
  this.style.display = "none";
132
- });
133
+ }); */
133
134
 
134
135
  this.shadowRoot.querySelector("button").addEventListener("click", () => {
135
136
  // STEP 1: 복원 대상에 애니메이션 클래스 부여
136
137
  this.#target.classList.remove("nx-collapse");
137
138
  this.#target.classList.add("nx-expand"); // expandReveal 적용
138
139
 
139
- // STEP 2: 실제 화면에 표시
140
- this.#target.style.display = this.#targetPrevDisplay;
141
- this.style.display = "none"; // 복원 버튼은 사라짐
140
+ setTimeout(() => {
141
+ // STEP 2: target 줄어드는 shrinking 애니메이션 시작
142
+ this.classList.remove("nx-collapse");
143
+ this.classList.add("nx-expand");
144
+ }, 100); // appearing 시작 후 100ms 딜레이로 target 축소 시작
145
+
142
146
 
143
- // STEP 3: 애니메이션이 끝난 후 pointer-events 복구 (선택적)
144
147
  setTimeout(() => {
148
+ // STEP 2: 실제 화면에 표시
149
+ this.#target.style.display = this.#targetPrevDisplay;
150
+ this.style.display = "none"; // 복원 버튼은 사라짐
151
+
152
+ // STEP 3: 애니메이션이 끝난 후 pointer-events 복구 (선택적)
145
153
  this.#target.classList.remove("nx-expand");
146
154
  //this.#target.style.pointerEvents = "auto";
147
155
  }, 600); // 애니메이션과 동일한 시간