ninegrid2 6.923.0 → 6.925.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.
@@ -120517,6 +120517,8 @@ class nxSideMenuItem extends HTMLElement
120517
120517
  this.#caption = this.innerText.trim();
120518
120518
 
120519
120519
  console.log("nxSideMenuItem", this.#caption);
120520
+ this.data.caption = this.#caption;
120521
+ this.setAttribute("data-caption", this.#caption);
120520
120522
 
120521
120523
  ninegrid.waitForInnerHTML(this)
120522
120524
  .then(() => this.#init())
@@ -121722,7 +121724,7 @@ class nxTitle extends HTMLElement {
121722
121724
 
121723
121725
  // 1. 현재 활성화된 메뉴 항목의 캡션을 추가 (예: '심의자료')
121724
121726
  const currentActiveCaption = activeMenuItem.getAttribute("title") || activeMenuItem.caption;//activeMenuItem.caption;
121725
- console.log("nxTitle", activeMenuItem.caption);
121727
+ console.log("nxTitle", activeMenuItem.caption, activeMenuItem.data, activeMenuItem);
121726
121728
 
121727
121729
  if (currentActiveCaption) {
121728
121730
  tempPath.unshift(currentActiveCaption); // 맨 앞에 추가
@@ -120513,6 +120513,8 @@ class nxSideMenuItem extends HTMLElement
120513
120513
  this.#caption = this.innerText.trim();
120514
120514
 
120515
120515
  console.log("nxSideMenuItem", this.#caption);
120516
+ this.data.caption = this.#caption;
120517
+ this.setAttribute("data-caption", this.#caption);
120516
120518
 
120517
120519
  ninegrid.waitForInnerHTML(this)
120518
120520
  .then(() => this.#init())
@@ -121718,7 +121720,7 @@ class nxTitle extends HTMLElement {
121718
121720
 
121719
121721
  // 1. 현재 활성화된 메뉴 항목의 캡션을 추가 (예: '심의자료')
121720
121722
  const currentActiveCaption = activeMenuItem.getAttribute("title") || activeMenuItem.caption;//activeMenuItem.caption;
121721
- console.log("nxTitle", activeMenuItem.caption);
121723
+ console.log("nxTitle", activeMenuItem.caption, activeMenuItem.data, activeMenuItem);
121722
121724
 
121723
121725
  if (currentActiveCaption) {
121724
121726
  tempPath.unshift(currentActiveCaption); // 맨 앞에 추가
@@ -365,6 +365,8 @@ class nxSideMenuItem extends HTMLElement
365
365
  this.#caption = this.innerText.trim();
366
366
 
367
367
  console.log("nxSideMenuItem", this.#caption);
368
+ this.data.caption = this.#caption;
369
+ this.setAttribute("data-caption", this.#caption);
368
370
 
369
371
  ninegrid.waitForInnerHTML(this)
370
372
  .then(() => this.#init())
@@ -52,7 +52,7 @@ class nxTitle extends HTMLElement {
52
52
 
53
53
  // 1. 현재 활성화된 메뉴 항목의 캡션을 추가 (예: '심의자료')
54
54
  const currentActiveCaption = activeMenuItem.getAttribute("title") || activeMenuItem.caption;//activeMenuItem.caption;
55
- console.log("nxTitle", activeMenuItem.caption);
55
+ console.log("nxTitle", activeMenuItem.caption, activeMenuItem.data, activeMenuItem);
56
56
 
57
57
  if (currentActiveCaption) {
58
58
  tempPath.unshift(currentActiveCaption); // 맨 앞에 추가
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.923.0",
4
+ "version": "6.925.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -365,6 +365,8 @@ class nxSideMenuItem extends HTMLElement
365
365
  this.#caption = this.innerText.trim();
366
366
 
367
367
  console.log("nxSideMenuItem", this.#caption);
368
+ this.data.caption = this.#caption;
369
+ this.setAttribute("data-caption", this.#caption);
368
370
 
369
371
  ninegrid.waitForInnerHTML(this)
370
372
  .then(() => this.#init())
package/src/nx/nxTitle.js CHANGED
@@ -52,7 +52,7 @@ class nxTitle extends HTMLElement {
52
52
 
53
53
  // 1. 현재 활성화된 메뉴 항목의 캡션을 추가 (예: '심의자료')
54
54
  const currentActiveCaption = activeMenuItem.getAttribute("title") || activeMenuItem.caption;//activeMenuItem.caption;
55
- console.log("nxTitle", activeMenuItem.caption);
55
+ console.log("nxTitle", activeMenuItem.caption, activeMenuItem.data, activeMenuItem);
56
56
 
57
57
  if (currentActiveCaption) {
58
58
  tempPath.unshift(currentActiveCaption); // 맨 앞에 추가