ide-assi 0.486.0 → 0.488.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.
@@ -202882,6 +202882,7 @@ class IdeDiffPopup extends HTMLElement
202882
202882
  }
202883
202883
 
202884
202884
  popup = (chagedSource) => {
202885
+
202885
202886
  setTimeout(() => {
202886
202887
  for (const item of chagedSource) {
202887
202888
  const [type, diffData] = Object.entries(item)[0]; // 예: type = "mybatis", diffData = { asis, tobe }
@@ -202895,7 +202896,15 @@ class IdeDiffPopup extends HTMLElement
202895
202896
  );
202896
202897
  }
202897
202898
 
202898
- this.shadowRoot.querySelector('nx-tab').tabpage.hide("mybatis");
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
+ });
202907
+ //this.shadowRoot.querySelector('nx-tab').tabpage.hide("mybatis");
202899
202908
 
202900
202909
  this.shadowRoot.querySelector('nx-dialog')?.showModal();
202901
202910
  }, 100);
@@ -202878,6 +202878,7 @@ class IdeDiffPopup extends HTMLElement
202878
202878
  }
202879
202879
 
202880
202880
  popup = (chagedSource) => {
202881
+
202881
202882
  setTimeout(() => {
202882
202883
  for (const item of chagedSource) {
202883
202884
  const [type, diffData] = Object.entries(item)[0]; // 예: type = "mybatis", diffData = { asis, tobe }
@@ -202891,7 +202892,15 @@ class IdeDiffPopup extends HTMLElement
202891
202892
  );
202892
202893
  }
202893
202894
 
202894
- this.shadowRoot.querySelector('nx-tab').tabpage.hide("mybatis");
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
+ });
202903
+ //this.shadowRoot.querySelector('nx-tab').tabpage.hide("mybatis");
202895
202904
 
202896
202905
  this.shadowRoot.querySelector('nx-dialog')?.showModal();
202897
202906
  }, 100);
@@ -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,7 +51,15 @@ class IdeDiffPopup extends HTMLElement
50
51
  );
51
52
  }
52
53
 
53
- this.shadowRoot.querySelector('nx-tab').tabpage.hide("mybatis");
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
+ });
62
+ //this.shadowRoot.querySelector('nx-tab').tabpage.hide("mybatis");
54
63
 
55
64
  this.shadowRoot.querySelector('nx-dialog')?.showModal();
56
65
  }, 100);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.486.0",
4
+ "version": "0.488.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,7 +51,15 @@ class IdeDiffPopup extends HTMLElement
50
51
  );
51
52
  }
52
53
 
53
- this.shadowRoot.querySelector('nx-tab').tabpage.hide("mybatis");
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
+ });
62
+ //this.shadowRoot.querySelector('nx-tab').tabpage.hide("mybatis");
54
63
 
55
64
  this.shadowRoot.querySelector('nx-dialog')?.showModal();
56
65
  }, 100);