ninegrid2 6.805.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.
- package/dist/bundle.cjs.js +43 -14
- package/dist/bundle.esm.js +43 -14
- package/dist/nx/nxCollapse.js +43 -14
- package/package.json +1 -1
- package/src/nx/nxCollapse.js +43 -14
package/dist/bundle.cjs.js
CHANGED
|
@@ -120912,7 +120912,12 @@ class nxCollapse extends HTMLElement {
|
|
|
120912
120912
|
animation: collapseShrink 0.7s ease forwards;
|
|
120913
120913
|
pointer-events: none; /* 클릭 방지 */
|
|
120914
120914
|
}
|
|
120915
|
-
|
|
120915
|
+
|
|
120916
|
+
${shadowRoot ? ":host(.nx-expand)" : ".nx-expand"} {
|
|
120917
|
+
animation: expandShrink 0.6s ease forwards;
|
|
120918
|
+
pointer-events: none; /* 클릭 방지 */
|
|
120919
|
+
}
|
|
120920
|
+
|
|
120916
120921
|
@keyframes collapseShrink {
|
|
120917
120922
|
0% {
|
|
120918
120923
|
opacity: 1;
|
|
@@ -120925,10 +120930,21 @@ class nxCollapse extends HTMLElement {
|
|
|
120925
120930
|
transform-origin: top right;
|
|
120926
120931
|
}
|
|
120927
120932
|
}
|
|
120933
|
+
|
|
120934
|
+
@keyframes expandShrink {
|
|
120935
|
+
0% {
|
|
120936
|
+
opacity: 0;
|
|
120937
|
+
transform: scale(0.5);
|
|
120938
|
+
transform-origin: top right;
|
|
120939
|
+
}
|
|
120940
|
+
100% {
|
|
120941
|
+
opacity: 1;
|
|
120942
|
+
transform: scale(1);
|
|
120943
|
+
transform-origin: top right;
|
|
120944
|
+
}
|
|
120945
|
+
}
|
|
120928
120946
|
`;
|
|
120929
120947
|
|
|
120930
|
-
console.log(style);
|
|
120931
|
-
|
|
120932
120948
|
(shadowRoot || this.#target).appendChild(style);
|
|
120933
120949
|
|
|
120934
120950
|
// collapse 시 target 숨기고 복원 버튼 등장
|
|
@@ -120939,7 +120955,6 @@ class nxCollapse extends HTMLElement {
|
|
|
120939
120955
|
|
|
120940
120956
|
setTimeout(() => {
|
|
120941
120957
|
// STEP 2: target이 줄어드는 shrinking 애니메이션 시작
|
|
120942
|
-
|
|
120943
120958
|
this.style.display = "inline-block";
|
|
120944
120959
|
this.classList.add("nx-collapse");
|
|
120945
120960
|
}, 100); // appearing 시작 후 100ms 딜레이로 target 축소 시작
|
|
@@ -120948,29 +120963,43 @@ class nxCollapse extends HTMLElement {
|
|
|
120948
120963
|
// STEP 3: 실제 target 숨기기
|
|
120949
120964
|
this.#targetPrevDisplay = this.#target.style.display;
|
|
120950
120965
|
this.#target.style.display = "none";
|
|
120951
|
-
},
|
|
120966
|
+
}, 500); // shrinking 애니메이션이 끝나고 실제 제거
|
|
120952
120967
|
});
|
|
120953
120968
|
}
|
|
120954
120969
|
|
|
120955
120970
|
// 복원 시 target 보이고 복원 버튼 사라짐
|
|
120971
|
+
/**
|
|
120956
120972
|
this.shadowRoot.querySelector("button").addEventListener("click", () => {
|
|
120957
120973
|
this.#target.classList.remove("nx-collapse");
|
|
120958
120974
|
this.classList.remove("nx-collapse");
|
|
120959
120975
|
|
|
120960
120976
|
this.#target.style.display = this.#targetPrevDisplay;
|
|
120961
120977
|
this.style.display = "none";
|
|
120962
|
-
});
|
|
120963
|
-
}
|
|
120978
|
+
}); */
|
|
120964
120979
|
|
|
120965
|
-
|
|
120966
|
-
|
|
120967
|
-
|
|
120980
|
+
this.shadowRoot.querySelector("button").addEventListener("click", () => {
|
|
120981
|
+
// STEP 1: 복원 대상에 애니메이션 클래스 부여
|
|
120982
|
+
this.#target.classList.remove("nx-collapse");
|
|
120983
|
+
this.#target.classList.add("nx-expand"); // expandReveal 적용
|
|
120968
120984
|
|
|
120969
|
-
|
|
120970
|
-
|
|
120971
|
-
|
|
120972
|
-
|
|
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
|
+
|
|
120991
|
+
|
|
120992
|
+
setTimeout(() => {
|
|
120993
|
+
// STEP 2: 실제 화면에 표시
|
|
120994
|
+
this.#target.style.display = this.#targetPrevDisplay;
|
|
120995
|
+
this.style.display = "none"; // 복원 버튼은 사라짐
|
|
120996
|
+
|
|
120997
|
+
// STEP 3: 애니메이션이 끝난 후 pointer-events 복구 (선택적)
|
|
120998
|
+
this.#target.classList.remove("nx-expand");
|
|
120999
|
+
//this.#target.style.pointerEvents = "auto";
|
|
121000
|
+
}, 600); // 애니메이션과 동일한 시간
|
|
120973
121001
|
});
|
|
121002
|
+
|
|
120974
121003
|
}
|
|
120975
121004
|
}
|
|
120976
121005
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -120908,7 +120908,12 @@ class nxCollapse extends HTMLElement {
|
|
|
120908
120908
|
animation: collapseShrink 0.7s ease forwards;
|
|
120909
120909
|
pointer-events: none; /* 클릭 방지 */
|
|
120910
120910
|
}
|
|
120911
|
-
|
|
120911
|
+
|
|
120912
|
+
${shadowRoot ? ":host(.nx-expand)" : ".nx-expand"} {
|
|
120913
|
+
animation: expandShrink 0.6s ease forwards;
|
|
120914
|
+
pointer-events: none; /* 클릭 방지 */
|
|
120915
|
+
}
|
|
120916
|
+
|
|
120912
120917
|
@keyframes collapseShrink {
|
|
120913
120918
|
0% {
|
|
120914
120919
|
opacity: 1;
|
|
@@ -120921,10 +120926,21 @@ class nxCollapse extends HTMLElement {
|
|
|
120921
120926
|
transform-origin: top right;
|
|
120922
120927
|
}
|
|
120923
120928
|
}
|
|
120929
|
+
|
|
120930
|
+
@keyframes expandShrink {
|
|
120931
|
+
0% {
|
|
120932
|
+
opacity: 0;
|
|
120933
|
+
transform: scale(0.5);
|
|
120934
|
+
transform-origin: top right;
|
|
120935
|
+
}
|
|
120936
|
+
100% {
|
|
120937
|
+
opacity: 1;
|
|
120938
|
+
transform: scale(1);
|
|
120939
|
+
transform-origin: top right;
|
|
120940
|
+
}
|
|
120941
|
+
}
|
|
120924
120942
|
`;
|
|
120925
120943
|
|
|
120926
|
-
console.log(style);
|
|
120927
|
-
|
|
120928
120944
|
(shadowRoot || this.#target).appendChild(style);
|
|
120929
120945
|
|
|
120930
120946
|
// collapse 시 target 숨기고 복원 버튼 등장
|
|
@@ -120935,7 +120951,6 @@ class nxCollapse extends HTMLElement {
|
|
|
120935
120951
|
|
|
120936
120952
|
setTimeout(() => {
|
|
120937
120953
|
// STEP 2: target이 줄어드는 shrinking 애니메이션 시작
|
|
120938
|
-
|
|
120939
120954
|
this.style.display = "inline-block";
|
|
120940
120955
|
this.classList.add("nx-collapse");
|
|
120941
120956
|
}, 100); // appearing 시작 후 100ms 딜레이로 target 축소 시작
|
|
@@ -120944,29 +120959,43 @@ class nxCollapse extends HTMLElement {
|
|
|
120944
120959
|
// STEP 3: 실제 target 숨기기
|
|
120945
120960
|
this.#targetPrevDisplay = this.#target.style.display;
|
|
120946
120961
|
this.#target.style.display = "none";
|
|
120947
|
-
},
|
|
120962
|
+
}, 500); // shrinking 애니메이션이 끝나고 실제 제거
|
|
120948
120963
|
});
|
|
120949
120964
|
}
|
|
120950
120965
|
|
|
120951
120966
|
// 복원 시 target 보이고 복원 버튼 사라짐
|
|
120967
|
+
/**
|
|
120952
120968
|
this.shadowRoot.querySelector("button").addEventListener("click", () => {
|
|
120953
120969
|
this.#target.classList.remove("nx-collapse");
|
|
120954
120970
|
this.classList.remove("nx-collapse");
|
|
120955
120971
|
|
|
120956
120972
|
this.#target.style.display = this.#targetPrevDisplay;
|
|
120957
120973
|
this.style.display = "none";
|
|
120958
|
-
});
|
|
120959
|
-
}
|
|
120974
|
+
}); */
|
|
120960
120975
|
|
|
120961
|
-
|
|
120962
|
-
|
|
120963
|
-
|
|
120976
|
+
this.shadowRoot.querySelector("button").addEventListener("click", () => {
|
|
120977
|
+
// STEP 1: 복원 대상에 애니메이션 클래스 부여
|
|
120978
|
+
this.#target.classList.remove("nx-collapse");
|
|
120979
|
+
this.#target.classList.add("nx-expand"); // expandReveal 적용
|
|
120964
120980
|
|
|
120965
|
-
|
|
120966
|
-
|
|
120967
|
-
|
|
120968
|
-
|
|
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
|
+
|
|
120987
|
+
|
|
120988
|
+
setTimeout(() => {
|
|
120989
|
+
// STEP 2: 실제 화면에 표시
|
|
120990
|
+
this.#target.style.display = this.#targetPrevDisplay;
|
|
120991
|
+
this.style.display = "none"; // 복원 버튼은 사라짐
|
|
120992
|
+
|
|
120993
|
+
// STEP 3: 애니메이션이 끝난 후 pointer-events 복구 (선택적)
|
|
120994
|
+
this.#target.classList.remove("nx-expand");
|
|
120995
|
+
//this.#target.style.pointerEvents = "auto";
|
|
120996
|
+
}, 600); // 애니메이션과 동일한 시간
|
|
120969
120997
|
});
|
|
120998
|
+
|
|
120970
120999
|
}
|
|
120971
121000
|
}
|
|
120972
121001
|
|
package/dist/nx/nxCollapse.js
CHANGED
|
@@ -67,7 +67,12 @@ class nxCollapse extends HTMLElement {
|
|
|
67
67
|
animation: collapseShrink 0.7s ease forwards;
|
|
68
68
|
pointer-events: none; /* 클릭 방지 */
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
|
|
71
|
+
${shadowRoot ? ":host(.nx-expand)" : ".nx-expand"} {
|
|
72
|
+
animation: expandShrink 0.6s ease forwards;
|
|
73
|
+
pointer-events: none; /* 클릭 방지 */
|
|
74
|
+
}
|
|
75
|
+
|
|
71
76
|
@keyframes collapseShrink {
|
|
72
77
|
0% {
|
|
73
78
|
opacity: 1;
|
|
@@ -80,10 +85,21 @@ class nxCollapse extends HTMLElement {
|
|
|
80
85
|
transform-origin: top right;
|
|
81
86
|
}
|
|
82
87
|
}
|
|
88
|
+
|
|
89
|
+
@keyframes expandShrink {
|
|
90
|
+
0% {
|
|
91
|
+
opacity: 0;
|
|
92
|
+
transform: scale(0.5);
|
|
93
|
+
transform-origin: top right;
|
|
94
|
+
}
|
|
95
|
+
100% {
|
|
96
|
+
opacity: 1;
|
|
97
|
+
transform: scale(1);
|
|
98
|
+
transform-origin: top right;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
83
101
|
`;
|
|
84
102
|
|
|
85
|
-
console.log(style);
|
|
86
|
-
|
|
87
103
|
(shadowRoot || this.#target).appendChild(style);
|
|
88
104
|
|
|
89
105
|
// collapse 시 target 숨기고 복원 버튼 등장
|
|
@@ -94,7 +110,6 @@ class nxCollapse extends HTMLElement {
|
|
|
94
110
|
|
|
95
111
|
setTimeout(() => {
|
|
96
112
|
// STEP 2: target이 줄어드는 shrinking 애니메이션 시작
|
|
97
|
-
|
|
98
113
|
this.style.display = "inline-block";
|
|
99
114
|
this.classList.add("nx-collapse");
|
|
100
115
|
}, 100); // appearing 시작 후 100ms 딜레이로 target 축소 시작
|
|
@@ -103,29 +118,43 @@ class nxCollapse extends HTMLElement {
|
|
|
103
118
|
// STEP 3: 실제 target 숨기기
|
|
104
119
|
this.#targetPrevDisplay = this.#target.style.display;
|
|
105
120
|
this.#target.style.display = "none";
|
|
106
|
-
},
|
|
121
|
+
}, 500); // shrinking 애니메이션이 끝나고 실제 제거
|
|
107
122
|
});
|
|
108
123
|
}
|
|
109
124
|
|
|
110
125
|
// 복원 시 target 보이고 복원 버튼 사라짐
|
|
126
|
+
/**
|
|
111
127
|
this.shadowRoot.querySelector("button").addEventListener("click", () => {
|
|
112
128
|
this.#target.classList.remove("nx-collapse");
|
|
113
129
|
this.classList.remove("nx-collapse");
|
|
114
130
|
|
|
115
131
|
this.#target.style.display = this.#targetPrevDisplay;
|
|
116
132
|
this.style.display = "none";
|
|
117
|
-
});
|
|
118
|
-
}
|
|
133
|
+
}); */
|
|
119
134
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
135
|
+
this.shadowRoot.querySelector("button").addEventListener("click", () => {
|
|
136
|
+
// STEP 1: 복원 대상에 애니메이션 클래스 부여
|
|
137
|
+
this.#target.classList.remove("nx-collapse");
|
|
138
|
+
this.#target.classList.add("nx-expand"); // expandReveal 적용
|
|
139
|
+
|
|
140
|
+
setTimeout(() => {
|
|
141
|
+
// STEP 2: target이 줄어드는 shrinking 애니메이션 시작
|
|
142
|
+
this.classList.remove("nx-collapse");
|
|
143
|
+
this.classList.add("nx-expand");
|
|
144
|
+
}, 100); // appearing 시작 후 100ms 딜레이로 target 축소 시작
|
|
123
145
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
146
|
+
|
|
147
|
+
setTimeout(() => {
|
|
148
|
+
// STEP 2: 실제 화면에 표시
|
|
149
|
+
this.#target.style.display = this.#targetPrevDisplay;
|
|
150
|
+
this.style.display = "none"; // 복원 버튼은 사라짐
|
|
151
|
+
|
|
152
|
+
// STEP 3: 애니메이션이 끝난 후 pointer-events 복구 (선택적)
|
|
153
|
+
this.#target.classList.remove("nx-expand");
|
|
154
|
+
//this.#target.style.pointerEvents = "auto";
|
|
155
|
+
}, 600); // 애니메이션과 동일한 시간
|
|
128
156
|
});
|
|
157
|
+
|
|
129
158
|
}
|
|
130
159
|
}
|
|
131
160
|
|
package/package.json
CHANGED
package/src/nx/nxCollapse.js
CHANGED
|
@@ -67,7 +67,12 @@ class nxCollapse extends HTMLElement {
|
|
|
67
67
|
animation: collapseShrink 0.7s ease forwards;
|
|
68
68
|
pointer-events: none; /* 클릭 방지 */
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
|
|
71
|
+
${shadowRoot ? ":host(.nx-expand)" : ".nx-expand"} {
|
|
72
|
+
animation: expandShrink 0.6s ease forwards;
|
|
73
|
+
pointer-events: none; /* 클릭 방지 */
|
|
74
|
+
}
|
|
75
|
+
|
|
71
76
|
@keyframes collapseShrink {
|
|
72
77
|
0% {
|
|
73
78
|
opacity: 1;
|
|
@@ -80,10 +85,21 @@ class nxCollapse extends HTMLElement {
|
|
|
80
85
|
transform-origin: top right;
|
|
81
86
|
}
|
|
82
87
|
}
|
|
88
|
+
|
|
89
|
+
@keyframes expandShrink {
|
|
90
|
+
0% {
|
|
91
|
+
opacity: 0;
|
|
92
|
+
transform: scale(0.5);
|
|
93
|
+
transform-origin: top right;
|
|
94
|
+
}
|
|
95
|
+
100% {
|
|
96
|
+
opacity: 1;
|
|
97
|
+
transform: scale(1);
|
|
98
|
+
transform-origin: top right;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
83
101
|
`;
|
|
84
102
|
|
|
85
|
-
console.log(style);
|
|
86
|
-
|
|
87
103
|
(shadowRoot || this.#target).appendChild(style);
|
|
88
104
|
|
|
89
105
|
// collapse 시 target 숨기고 복원 버튼 등장
|
|
@@ -94,7 +110,6 @@ class nxCollapse extends HTMLElement {
|
|
|
94
110
|
|
|
95
111
|
setTimeout(() => {
|
|
96
112
|
// STEP 2: target이 줄어드는 shrinking 애니메이션 시작
|
|
97
|
-
|
|
98
113
|
this.style.display = "inline-block";
|
|
99
114
|
this.classList.add("nx-collapse");
|
|
100
115
|
}, 100); // appearing 시작 후 100ms 딜레이로 target 축소 시작
|
|
@@ -103,29 +118,43 @@ class nxCollapse extends HTMLElement {
|
|
|
103
118
|
// STEP 3: 실제 target 숨기기
|
|
104
119
|
this.#targetPrevDisplay = this.#target.style.display;
|
|
105
120
|
this.#target.style.display = "none";
|
|
106
|
-
},
|
|
121
|
+
}, 500); // shrinking 애니메이션이 끝나고 실제 제거
|
|
107
122
|
});
|
|
108
123
|
}
|
|
109
124
|
|
|
110
125
|
// 복원 시 target 보이고 복원 버튼 사라짐
|
|
126
|
+
/**
|
|
111
127
|
this.shadowRoot.querySelector("button").addEventListener("click", () => {
|
|
112
128
|
this.#target.classList.remove("nx-collapse");
|
|
113
129
|
this.classList.remove("nx-collapse");
|
|
114
130
|
|
|
115
131
|
this.#target.style.display = this.#targetPrevDisplay;
|
|
116
132
|
this.style.display = "none";
|
|
117
|
-
});
|
|
118
|
-
}
|
|
133
|
+
}); */
|
|
119
134
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
135
|
+
this.shadowRoot.querySelector("button").addEventListener("click", () => {
|
|
136
|
+
// STEP 1: 복원 대상에 애니메이션 클래스 부여
|
|
137
|
+
this.#target.classList.remove("nx-collapse");
|
|
138
|
+
this.#target.classList.add("nx-expand"); // expandReveal 적용
|
|
139
|
+
|
|
140
|
+
setTimeout(() => {
|
|
141
|
+
// STEP 2: target이 줄어드는 shrinking 애니메이션 시작
|
|
142
|
+
this.classList.remove("nx-collapse");
|
|
143
|
+
this.classList.add("nx-expand");
|
|
144
|
+
}, 100); // appearing 시작 후 100ms 딜레이로 target 축소 시작
|
|
123
145
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
146
|
+
|
|
147
|
+
setTimeout(() => {
|
|
148
|
+
// STEP 2: 실제 화면에 표시
|
|
149
|
+
this.#target.style.display = this.#targetPrevDisplay;
|
|
150
|
+
this.style.display = "none"; // 복원 버튼은 사라짐
|
|
151
|
+
|
|
152
|
+
// STEP 3: 애니메이션이 끝난 후 pointer-events 복구 (선택적)
|
|
153
|
+
this.#target.classList.remove("nx-expand");
|
|
154
|
+
//this.#target.style.pointerEvents = "auto";
|
|
155
|
+
}, 600); // 애니메이션과 동일한 시간
|
|
128
156
|
});
|
|
157
|
+
|
|
129
158
|
}
|
|
130
159
|
}
|
|
131
160
|
|