ide-assi 0.491.0 → 0.493.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.
@@ -121049,6 +121049,18 @@ class nxTab extends HTMLElement {
121049
121049
 
121050
121050
 
121051
121051
  this.tabpage = {
121052
+ show: (v) => {
121053
+ this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121054
+ if (el.innerText.trim() === v) {
121055
+ el.style.display = "unset";
121056
+ }
121057
+ });
121058
+ },
121059
+ showAll: () => {
121060
+ this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121061
+ el.style.display = "unset";
121062
+ });
121063
+ },
121052
121064
  hide: (v) => {
121053
121065
  this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121054
121066
  if (el.innerText.trim() === v) {
@@ -121066,11 +121078,16 @@ class nxTab extends HTMLElement {
121066
121078
  this.dispatchEvent(new CustomEvent(ninegrid.EVENT.TAB_LOAD, { bubbles: true, detail: {} }));
121067
121079
  }
121068
121080
 
121081
+ initialize = () => {
121082
+
121083
+ }
121084
+
121069
121085
  #renderTabs() {
121070
121086
  const tabs = this.shadowRoot.querySelector('.tabs');
121071
121087
  const contents = this.shadowRoot.querySelector('.tab-pages');
121072
121088
  const tabItems = this.querySelectorAll('nx-tab-page');
121073
121089
 
121090
+ /**
121074
121091
  tabItems.forEach((item, index) => {
121075
121092
  const tab = document.createElement('div');
121076
121093
  tab.classList.add('tab-button');
@@ -121083,6 +121100,20 @@ class nxTab extends HTMLElement {
121083
121100
  content.classList.add('tab-page');
121084
121101
  content.innerHTML = item.innerHTML;
121085
121102
  contents.appendChild(content);
121103
+ }); */
121104
+
121105
+ tabItems.forEach((item, index) => {
121106
+ const tab = document.createElement('div');
121107
+ tab.classList.add('tab-button');
121108
+ tab.textContent = item.getAttribute('caption');
121109
+ tab.setAttribute('data-target', `content${index}`);
121110
+ tabs.appendChild(tab);
121111
+
121112
+ const content = document.createElement('nx-tab-page');
121113
+ content.id = `content${index}`;
121114
+ content.classList.add('tab-page');
121115
+ content.innerHTML = item.innerHTML;
121116
+ contents.appendChild(content);
121086
121117
  });
121087
121118
 
121088
121119
  tabItems.forEach((item) => {
@@ -202883,6 +202914,8 @@ class IdeDiffPopup extends HTMLElement
202883
202914
 
202884
202915
  popup = (changedSource) => {
202885
202916
 
202917
+ const tab = this.shadowRoot.querySelector('nx-tab');
202918
+
202886
202919
  setTimeout(() => {
202887
202920
  for (const item of changedSource) {
202888
202921
  const [type, diffData] = Object.entries(item)[0]; // 예: type = "mybatis", diffData = { asis, tobe }
@@ -202897,7 +202930,6 @@ class IdeDiffPopup extends HTMLElement
202897
202930
  }
202898
202931
 
202899
202932
  const types = changedSource.map(item => Object.keys(item)[0]);
202900
- const tab = this.shadowRoot.querySelector('nx-tab');
202901
202933
  ninegrid.querySelectorAll("ide-diff", this.shadowRoot).forEach(el => {
202902
202934
  const type = el.className.trim();
202903
202935
  if (!types.includes(type)) {
@@ -121045,6 +121045,18 @@ class nxTab extends HTMLElement {
121045
121045
 
121046
121046
 
121047
121047
  this.tabpage = {
121048
+ show: (v) => {
121049
+ this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121050
+ if (el.innerText.trim() === v) {
121051
+ el.style.display = "unset";
121052
+ }
121053
+ });
121054
+ },
121055
+ showAll: () => {
121056
+ this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121057
+ el.style.display = "unset";
121058
+ });
121059
+ },
121048
121060
  hide: (v) => {
121049
121061
  this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121050
121062
  if (el.innerText.trim() === v) {
@@ -121062,11 +121074,16 @@ class nxTab extends HTMLElement {
121062
121074
  this.dispatchEvent(new CustomEvent(ninegrid.EVENT.TAB_LOAD, { bubbles: true, detail: {} }));
121063
121075
  }
121064
121076
 
121077
+ initialize = () => {
121078
+
121079
+ }
121080
+
121065
121081
  #renderTabs() {
121066
121082
  const tabs = this.shadowRoot.querySelector('.tabs');
121067
121083
  const contents = this.shadowRoot.querySelector('.tab-pages');
121068
121084
  const tabItems = this.querySelectorAll('nx-tab-page');
121069
121085
 
121086
+ /**
121070
121087
  tabItems.forEach((item, index) => {
121071
121088
  const tab = document.createElement('div');
121072
121089
  tab.classList.add('tab-button');
@@ -121079,6 +121096,20 @@ class nxTab extends HTMLElement {
121079
121096
  content.classList.add('tab-page');
121080
121097
  content.innerHTML = item.innerHTML;
121081
121098
  contents.appendChild(content);
121099
+ }); */
121100
+
121101
+ tabItems.forEach((item, index) => {
121102
+ const tab = document.createElement('div');
121103
+ tab.classList.add('tab-button');
121104
+ tab.textContent = item.getAttribute('caption');
121105
+ tab.setAttribute('data-target', `content${index}`);
121106
+ tabs.appendChild(tab);
121107
+
121108
+ const content = document.createElement('nx-tab-page');
121109
+ content.id = `content${index}`;
121110
+ content.classList.add('tab-page');
121111
+ content.innerHTML = item.innerHTML;
121112
+ contents.appendChild(content);
121082
121113
  });
121083
121114
 
121084
121115
  tabItems.forEach((item) => {
@@ -202879,6 +202910,8 @@ class IdeDiffPopup extends HTMLElement
202879
202910
 
202880
202911
  popup = (changedSource) => {
202881
202912
 
202913
+ const tab = this.shadowRoot.querySelector('nx-tab');
202914
+
202882
202915
  setTimeout(() => {
202883
202916
  for (const item of changedSource) {
202884
202917
  const [type, diffData] = Object.entries(item)[0]; // 예: type = "mybatis", diffData = { asis, tobe }
@@ -202893,7 +202926,6 @@ class IdeDiffPopup extends HTMLElement
202893
202926
  }
202894
202927
 
202895
202928
  const types = changedSource.map(item => Object.keys(item)[0]);
202896
- const tab = this.shadowRoot.querySelector('nx-tab');
202897
202929
  ninegrid.querySelectorAll("ide-diff", this.shadowRoot).forEach(el => {
202898
202930
  const type = el.className.trim();
202899
202931
  if (!types.includes(type)) {
@@ -38,6 +38,8 @@ class IdeDiffPopup extends HTMLElement
38
38
 
39
39
  popup = (changedSource) => {
40
40
 
41
+ const tab = this.shadowRoot.querySelector('nx-tab');
42
+
41
43
  setTimeout(() => {
42
44
  for (const item of changedSource) {
43
45
  const [type, diffData] = Object.entries(item)[0]; // 예: type = "mybatis", diffData = { asis, tobe }
@@ -52,7 +54,6 @@ class IdeDiffPopup extends HTMLElement
52
54
  }
53
55
 
54
56
  const types = changedSource.map(item => Object.keys(item)[0]);
55
- const tab = this.shadowRoot.querySelector('nx-tab');
56
57
  ninegrid.querySelectorAll("ide-diff", this.shadowRoot).forEach(el => {
57
58
  const type = el.className.trim();
58
59
  if (!types.includes(type)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.491.0",
4
+ "version": "0.493.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -38,6 +38,8 @@ class IdeDiffPopup extends HTMLElement
38
38
 
39
39
  popup = (changedSource) => {
40
40
 
41
+ const tab = this.shadowRoot.querySelector('nx-tab');
42
+
41
43
  setTimeout(() => {
42
44
  for (const item of changedSource) {
43
45
  const [type, diffData] = Object.entries(item)[0]; // 예: type = "mybatis", diffData = { asis, tobe }
@@ -52,7 +54,6 @@ class IdeDiffPopup extends HTMLElement
52
54
  }
53
55
 
54
56
  const types = changedSource.map(item => Object.keys(item)[0]);
55
- const tab = this.shadowRoot.querySelector('nx-tab');
56
57
  ninegrid.querySelectorAll("ide-diff", this.shadowRoot).forEach(el => {
57
58
  const type = el.className.trim();
58
59
  if (!types.includes(type)) {