ide-assi 0.485.0 → 0.487.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.
@@ -121048,7 +121048,7 @@ class nxTab extends HTMLElement {
121048
121048
  this.switchTabHandler = this.#switchTab.bind(this);
121049
121049
 
121050
121050
 
121051
- this.tappage = {
121051
+ this.tabpage = {
121052
121052
  hide: (v) => {
121053
121053
  this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121054
121054
  if (el.innerText.trim() === v) {
@@ -121060,6 +121060,7 @@ class nxTab extends HTMLElement {
121060
121060
  }
121061
121061
 
121062
121062
 
121063
+
121063
121064
  connectedCallback() {
121064
121065
  this.#init();
121065
121066
  this.dispatchEvent(new CustomEvent(ninegrid.EVENT.TAB_LOAD, { bubbles: true, detail: {} }));
@@ -202881,6 +202882,7 @@ class IdeDiffPopup extends HTMLElement
202881
202882
  }
202882
202883
 
202883
202884
  popup = (chagedSource) => {
202885
+
202884
202886
  setTimeout(() => {
202885
202887
  for (const item of chagedSource) {
202886
202888
  const [type, diffData] = Object.entries(item)[0]; // 예: type = "mybatis", diffData = { asis, tobe }
@@ -202894,8 +202896,14 @@ class IdeDiffPopup extends HTMLElement
202894
202896
  );
202895
202897
  }
202896
202898
 
202897
- console.log(this.shadowRoot.querySelector('nx-tab'), this.shadowRoot.querySelector('nx-tab').tabpage);
202898
-
202899
+ const types = changedSource.map(item => Object.keys(item)[0]);
202900
+ const tab = this.shadowRoot.querySelector('nx-tab');
202901
+ ninegrid.querySelector("ide-diff", this.shadowRoot).forEach(el => {
202902
+ const type = el.className.trim();
202903
+ if (!types.includes(type)) {
202904
+ tab.tabpage.hide(type);
202905
+ }
202906
+ });
202899
202907
  //this.shadowRoot.querySelector('nx-tab').tabpage.hide("mybatis");
202900
202908
 
202901
202909
  this.shadowRoot.querySelector('nx-dialog')?.showModal();
@@ -121044,7 +121044,7 @@ class nxTab extends HTMLElement {
121044
121044
  this.switchTabHandler = this.#switchTab.bind(this);
121045
121045
 
121046
121046
 
121047
- this.tappage = {
121047
+ this.tabpage = {
121048
121048
  hide: (v) => {
121049
121049
  this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121050
121050
  if (el.innerText.trim() === v) {
@@ -121056,6 +121056,7 @@ class nxTab extends HTMLElement {
121056
121056
  }
121057
121057
 
121058
121058
 
121059
+
121059
121060
  connectedCallback() {
121060
121061
  this.#init();
121061
121062
  this.dispatchEvent(new CustomEvent(ninegrid.EVENT.TAB_LOAD, { bubbles: true, detail: {} }));
@@ -202877,6 +202878,7 @@ class IdeDiffPopup extends HTMLElement
202877
202878
  }
202878
202879
 
202879
202880
  popup = (chagedSource) => {
202881
+
202880
202882
  setTimeout(() => {
202881
202883
  for (const item of chagedSource) {
202882
202884
  const [type, diffData] = Object.entries(item)[0]; // 예: type = "mybatis", diffData = { asis, tobe }
@@ -202890,8 +202892,14 @@ class IdeDiffPopup extends HTMLElement
202890
202892
  );
202891
202893
  }
202892
202894
 
202893
- console.log(this.shadowRoot.querySelector('nx-tab'), this.shadowRoot.querySelector('nx-tab').tabpage);
202894
-
202895
+ const types = changedSource.map(item => Object.keys(item)[0]);
202896
+ const tab = this.shadowRoot.querySelector('nx-tab');
202897
+ ninegrid.querySelector("ide-diff", this.shadowRoot).forEach(el => {
202898
+ const type = el.className.trim();
202899
+ if (!types.includes(type)) {
202900
+ tab.tabpage.hide(type);
202901
+ }
202902
+ });
202895
202903
  //this.shadowRoot.querySelector('nx-tab').tabpage.hide("mybatis");
202896
202904
 
202897
202905
  this.shadowRoot.querySelector('nx-dialog')?.showModal();
@@ -37,6 +37,7 @@ class IdeDiffPopup extends HTMLElement
37
37
  }
38
38
 
39
39
  popup = (chagedSource) => {
40
+
40
41
  setTimeout(() => {
41
42
  for (const item of chagedSource) {
42
43
  const [type, diffData] = Object.entries(item)[0]; // 예: type = "mybatis", diffData = { asis, tobe }
@@ -50,8 +51,14 @@ class IdeDiffPopup extends HTMLElement
50
51
  );
51
52
  }
52
53
 
53
- console.log(this.shadowRoot.querySelector('nx-tab'), this.shadowRoot.querySelector('nx-tab').tabpage);
54
-
54
+ const types = changedSource.map(item => Object.keys(item)[0]);
55
+ const tab = this.shadowRoot.querySelector('nx-tab');
56
+ ninegrid.querySelector("ide-diff", this.shadowRoot).forEach(el => {
57
+ const type = el.className.trim();
58
+ if (!types.includes(type)) {
59
+ tab.tabpage.hide(type);
60
+ }
61
+ });
55
62
  //this.shadowRoot.querySelector('nx-tab').tabpage.hide("mybatis");
56
63
 
57
64
  this.shadowRoot.querySelector('nx-dialog')?.showModal();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.485.0",
4
+ "version": "0.487.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -37,6 +37,7 @@ class IdeDiffPopup extends HTMLElement
37
37
  }
38
38
 
39
39
  popup = (chagedSource) => {
40
+
40
41
  setTimeout(() => {
41
42
  for (const item of chagedSource) {
42
43
  const [type, diffData] = Object.entries(item)[0]; // 예: type = "mybatis", diffData = { asis, tobe }
@@ -50,8 +51,14 @@ class IdeDiffPopup extends HTMLElement
50
51
  );
51
52
  }
52
53
 
53
- console.log(this.shadowRoot.querySelector('nx-tab'), this.shadowRoot.querySelector('nx-tab').tabpage);
54
-
54
+ const types = changedSource.map(item => Object.keys(item)[0]);
55
+ const tab = this.shadowRoot.querySelector('nx-tab');
56
+ ninegrid.querySelector("ide-diff", this.shadowRoot).forEach(el => {
57
+ const type = el.className.trim();
58
+ if (!types.includes(type)) {
59
+ tab.tabpage.hide(type);
60
+ }
61
+ });
55
62
  //this.shadowRoot.querySelector('nx-tab').tabpage.hide("mybatis");
56
63
 
57
64
  this.shadowRoot.querySelector('nx-dialog')?.showModal();