ninegrid2 6.768.0 → 6.769.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.
@@ -120884,12 +120884,7 @@ class nxCollapse extends HTMLElement {
120884
120884
  collapseBtn.style.marginBottom = "8px";
120885
120885
 
120886
120886
  const shadowRoot = this.#target.shadowRoot;
120887
- if (shadowRoot) {
120888
- shadowRoot.insertBefore(collapseBtn, shadowRoot.firstChild);
120889
- }
120890
- else {
120891
- this.#target.insertBefore(collapseBtn, this.#target.firstChild);
120892
- }
120887
+ (shadowRoot || this.#target).appendChild(collapseBtn);
120893
120888
 
120894
120889
  // collapse 시 target 숨기고 복원 버튼 등장
120895
120890
  collapseBtn.addEventListener("click", () => {
@@ -120880,12 +120880,7 @@ class nxCollapse extends HTMLElement {
120880
120880
  collapseBtn.style.marginBottom = "8px";
120881
120881
 
120882
120882
  const shadowRoot = this.#target.shadowRoot;
120883
- if (shadowRoot) {
120884
- shadowRoot.insertBefore(collapseBtn, shadowRoot.firstChild);
120885
- }
120886
- else {
120887
- this.#target.insertBefore(collapseBtn, this.#target.firstChild);
120888
- }
120883
+ (shadowRoot || this.#target).appendChild(collapseBtn);
120889
120884
 
120890
120885
  // collapse 시 target 숨기고 복원 버튼 등장
120891
120886
  collapseBtn.addEventListener("click", () => {
@@ -39,12 +39,7 @@ class nxCollapse extends HTMLElement {
39
39
  collapseBtn.style.marginBottom = "8px";
40
40
 
41
41
  const shadowRoot = this.#target.shadowRoot;
42
- if (shadowRoot) {
43
- shadowRoot.insertBefore(collapseBtn, shadowRoot.firstChild);
44
- }
45
- else {
46
- this.#target.insertBefore(collapseBtn, this.#target.firstChild);
47
- }
42
+ (shadowRoot || this.#target).appendChild(collapseBtn);
48
43
 
49
44
  // collapse 시 target 숨기고 복원 버튼 등장
50
45
  collapseBtn.addEventListener("click", () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.768.0",
4
+ "version": "6.769.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -39,12 +39,7 @@ class nxCollapse extends HTMLElement {
39
39
  collapseBtn.style.marginBottom = "8px";
40
40
 
41
41
  const shadowRoot = this.#target.shadowRoot;
42
- if (shadowRoot) {
43
- shadowRoot.insertBefore(collapseBtn, shadowRoot.firstChild);
44
- }
45
- else {
46
- this.#target.insertBefore(collapseBtn, this.#target.firstChild);
47
- }
42
+ (shadowRoot || this.#target).appendChild(collapseBtn);
48
43
 
49
44
  // collapse 시 target 숨기고 복원 버튼 등장
50
45
  collapseBtn.addEventListener("click", () => {