ninegrid2 6.877.0 → 6.881.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.
@@ -121027,6 +121027,8 @@ class nxTab extends HTMLElement {
121027
121027
  constructor() {
121028
121028
  super();
121029
121029
  this.attachShadow({ mode: 'open' });
121030
+
121031
+ console.log("constructor");
121030
121032
 
121031
121033
  this.shadowRoot.innerHTML = `
121032
121034
  <style>
@@ -121045,6 +121047,18 @@ class nxTab extends HTMLElement {
121045
121047
 
121046
121048
 
121047
121049
  this.tabpage = {
121050
+ show: (v) => {
121051
+ this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121052
+ if (el.innerText.trim() === v) {
121053
+ el.style.display = "unset";
121054
+ }
121055
+ });
121056
+ },
121057
+ showAll: () => {
121058
+ this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121059
+ el.style.display = "unset";
121060
+ });
121061
+ },
121048
121062
  hide: (v) => {
121049
121063
  this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121050
121064
  if (el.innerText.trim() === v) {
@@ -121058,6 +121072,7 @@ class nxTab extends HTMLElement {
121058
121072
 
121059
121073
 
121060
121074
  connectedCallback() {
121075
+ console.log("1--------");
121061
121076
  this.#init();
121062
121077
  this.dispatchEvent(new CustomEvent(ninegrid.EVENT.TAB_LOAD, { bubbles: true, detail: {} }));
121063
121078
  }
@@ -121023,6 +121023,8 @@ class nxTab extends HTMLElement {
121023
121023
  constructor() {
121024
121024
  super();
121025
121025
  this.attachShadow({ mode: 'open' });
121026
+
121027
+ console.log("constructor");
121026
121028
 
121027
121029
  this.shadowRoot.innerHTML = `
121028
121030
  <style>
@@ -121041,6 +121043,18 @@ class nxTab extends HTMLElement {
121041
121043
 
121042
121044
 
121043
121045
  this.tabpage = {
121046
+ show: (v) => {
121047
+ this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121048
+ if (el.innerText.trim() === v) {
121049
+ el.style.display = "unset";
121050
+ }
121051
+ });
121052
+ },
121053
+ showAll: () => {
121054
+ this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121055
+ el.style.display = "unset";
121056
+ });
121057
+ },
121044
121058
  hide: (v) => {
121045
121059
  this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
121046
121060
  if (el.innerText.trim() === v) {
@@ -121054,6 +121068,7 @@ class nxTab extends HTMLElement {
121054
121068
 
121055
121069
 
121056
121070
  connectedCallback() {
121071
+ console.log("1--------");
121057
121072
  this.#init();
121058
121073
  this.dispatchEvent(new CustomEvent(ninegrid.EVENT.TAB_LOAD, { bubbles: true, detail: {} }));
121059
121074
  }
package/dist/nx/nxTab.js CHANGED
@@ -4,6 +4,8 @@ class nxTab extends HTMLElement {
4
4
  constructor() {
5
5
  super();
6
6
  this.attachShadow({ mode: 'open' });
7
+
8
+ console.log("constructor")
7
9
 
8
10
  this.shadowRoot.innerHTML = `
9
11
  <style>
@@ -22,6 +24,18 @@ class nxTab extends HTMLElement {
22
24
 
23
25
 
24
26
  this.tabpage = {
27
+ show: (v) => {
28
+ this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
29
+ if (el.innerText.trim() === v) {
30
+ el.style.display = "unset";
31
+ }
32
+ })
33
+ },
34
+ showAll: () => {
35
+ this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
36
+ el.style.display = "unset";
37
+ })
38
+ },
25
39
  hide: (v) => {
26
40
  this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
27
41
  if (el.innerText.trim() === v) {
@@ -35,6 +49,7 @@ class nxTab extends HTMLElement {
35
49
 
36
50
 
37
51
  connectedCallback() {
52
+ console.log("1--------");
38
53
  this.#init();
39
54
  this.dispatchEvent(new CustomEvent(ninegrid.EVENT.TAB_LOAD, { bubbles: true, detail: {} }));
40
55
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.877.0",
4
+ "version": "6.881.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/nx/nxTab.js CHANGED
@@ -4,6 +4,8 @@ class nxTab extends HTMLElement {
4
4
  constructor() {
5
5
  super();
6
6
  this.attachShadow({ mode: 'open' });
7
+
8
+ console.log("constructor")
7
9
 
8
10
  this.shadowRoot.innerHTML = `
9
11
  <style>
@@ -22,6 +24,18 @@ class nxTab extends HTMLElement {
22
24
 
23
25
 
24
26
  this.tabpage = {
27
+ show: (v) => {
28
+ this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
29
+ if (el.innerText.trim() === v) {
30
+ el.style.display = "unset";
31
+ }
32
+ })
33
+ },
34
+ showAll: () => {
35
+ this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
36
+ el.style.display = "unset";
37
+ })
38
+ },
25
39
  hide: (v) => {
26
40
  this.shadowRoot.querySelectorAll(".tab-button").forEach((el, i) => {
27
41
  if (el.innerText.trim() === v) {
@@ -35,6 +49,7 @@ class nxTab extends HTMLElement {
35
49
 
36
50
 
37
51
  connectedCallback() {
52
+ console.log("1--------");
38
53
  this.#init();
39
54
  this.dispatchEvent(new CustomEvent(ninegrid.EVENT.TAB_LOAD, { bubbles: true, detail: {} }));
40
55
  }